fix(desktop): declare @assistant-ui/core as a direct dependency

Twenty-odd desktop files import `@assistant-ui/core` directly, but it was
never in `dependencies` — it resolved only because react 0.15 pulled core
0.3.2 and npm hoisted it to the workspace root. react 0.14.24 wants core
^0.2.19, which nests under `react/node_modules`, so the undeclared imports
stop resolving and the build fails on `@assistant-ui/core/internal`.

Declare it so resolution doesn't depend on hoisting luck either way.
This commit is contained in:
Brooklyn Nicholson
2026-08-01 01:03:53 -05:00
parent 41e4b96233
commit 5826450d17
2 changed files with 62 additions and 78 deletions
+1
View File
@@ -64,6 +64,7 @@
"test:e2e:update-snapshots": "npm run build && WLR_BACKENDS=headless WLR_NO_HARDWARE_CURSORS=1 cage -- npx playwright test e2e/ --reporter=list --update-snapshots"
},
"dependencies": {
"@assistant-ui/core": "0.2.23",
"@assistant-ui/react": "0.14.24",
"@assistant-ui/react-streamdown": "0.3.5",
"@audiowave/react": "0.6.2",
+61 -78
View File
@@ -71,6 +71,7 @@
"name": "hermes",
"version": "0.17.0",
"dependencies": {
"@assistant-ui/core": "0.2.23",
"@assistant-ui/react": "0.14.24",
"@assistant-ui/react-streamdown": "0.3.5",
"@audiowave/react": "0.6.2",
@@ -248,84 +249,6 @@
}
}
},
"apps/desktop/node_modules/@assistant-ui/react/node_modules/@assistant-ui/core": {
"version": "0.2.23",
"resolved": "https://registry.npmjs.org/@assistant-ui/core/-/core-0.2.23.tgz",
"integrity": "sha512-mD/sWrdH4SF1POxWE0Wn8jrxOSnuGOJfj8j5coDuEtdtoevQT3Z8LzD5mkd2UdyXHIkwFsMb3/vIL1kH8XKyGg==",
"license": "MIT",
"dependencies": {
"assistant-stream": "^0.3.28",
"nanoid": "^6.0.0"
},
"peerDependencies": {
"@assistant-ui/store": "^0.2.13",
"@assistant-ui/tap": "^0.9.0",
"@types/react": "*",
"assistant-cloud": "^0.1.31",
"react": "^18 || ^19",
"zustand": "^5.0.11"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"assistant-cloud": {
"optional": true
},
"react": {
"optional": true
},
"zustand": {
"optional": true
}
}
},
"apps/desktop/node_modules/@assistant-ui/react/node_modules/@assistant-ui/core/node_modules/nanoid": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-6.0.0.tgz",
"integrity": "sha512-mkUH+rPkwU2qPadJ0oJZOjeZ5Mxn8Q1UhevwkTRWNuUZzyia3h4rhzK39hxaHTk0o2OxB8W2SQ6A8k23ZDi1pQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"license": "MIT",
"bin": {
"nanoid": "bin/nanoid.js"
},
"engines": {
"node": "^22 || ^24 || >=26"
}
},
"apps/desktop/node_modules/@assistant-ui/react/node_modules/@assistant-ui/store": {
"version": "0.2.22",
"resolved": "https://registry.npmjs.org/@assistant-ui/store/-/store-0.2.22.tgz",
"integrity": "sha512-RdUFLOFJ3ZwIoOZYrRvps3OAODwnWoUAuNfqbROKrj5qtlQsIJRqxUNdLTjcf4AimhkjCwOaFacGHHm9lE4qBw==",
"license": "MIT",
"dependencies": {
"use-effect-event": "^2.0.3"
},
"peerDependencies": {
"@assistant-ui/tap": "^0.9.0",
"@types/react": "*",
"react": "^18 || ^19"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"apps/desktop/node_modules/@assistant-ui/react/node_modules/@assistant-ui/store/node_modules/use-effect-event": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/use-effect-event/-/use-effect-event-2.0.3.tgz",
"integrity": "sha512-fz1en+z3fYXCXx3nMB8hXDMuygBltifNKZq29zDx+xNJ+1vEs6oJlYd9sK31vxJ0YI534VUsHEBY0k2BATsmBQ==",
"license": "MIT",
"peerDependencies": {
"react": "^18.3 || ^19.0.0-0"
}
},
"apps/desktop/node_modules/@assistant-ui/react/node_modules/nanoid": {
"version": "5.1.16",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.16.tgz",
@@ -434,6 +357,57 @@
"dev": true,
"license": "MIT"
},
"node_modules/@assistant-ui/core": {
"version": "0.2.23",
"resolved": "https://registry.npmjs.org/@assistant-ui/core/-/core-0.2.23.tgz",
"integrity": "sha512-mD/sWrdH4SF1POxWE0Wn8jrxOSnuGOJfj8j5coDuEtdtoevQT3Z8LzD5mkd2UdyXHIkwFsMb3/vIL1kH8XKyGg==",
"license": "MIT",
"dependencies": {
"assistant-stream": "^0.3.28",
"nanoid": "^6.0.0"
},
"peerDependencies": {
"@assistant-ui/store": "^0.2.13",
"@assistant-ui/tap": "^0.9.0",
"@types/react": "*",
"assistant-cloud": "^0.1.31",
"react": "^18 || ^19",
"zustand": "^5.0.11"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"assistant-cloud": {
"optional": true
},
"react": {
"optional": true
},
"zustand": {
"optional": true
}
}
},
"node_modules/@assistant-ui/store": {
"version": "0.2.22",
"resolved": "https://registry.npmjs.org/@assistant-ui/store/-/store-0.2.22.tgz",
"integrity": "sha512-RdUFLOFJ3ZwIoOZYrRvps3OAODwnWoUAuNfqbROKrj5qtlQsIJRqxUNdLTjcf4AimhkjCwOaFacGHHm9lE4qBw==",
"license": "MIT",
"dependencies": {
"use-effect-event": "^2.0.3"
},
"peerDependencies": {
"@assistant-ui/tap": "^0.9.0",
"@types/react": "*",
"react": "^18 || ^19"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/@assistant-ui/tap": {
"version": "0.9.8",
"resolved": "https://registry.npmjs.org/@assistant-ui/tap/-/tap-0.9.8.tgz",
@@ -17868,6 +17842,15 @@
}
}
},
"node_modules/use-effect-event": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/use-effect-event/-/use-effect-event-2.0.3.tgz",
"integrity": "sha512-fz1en+z3fYXCXx3nMB8hXDMuygBltifNKZq29zDx+xNJ+1vEs6oJlYd9sK31vxJ0YI534VUsHEBY0k2BATsmBQ==",
"license": "MIT",
"peerDependencies": {
"react": "^18.3 || ^19.0.0-0"
}
},
"node_modules/use-isomorphic-layout-effect": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.2.1.tgz",