fix(deps): declare @deepseek-ai/schemastery as peerDependency, not dependency

The host (dsh) bundles schemastery and expects plugins to share that single
instance (the schema type registry is module-level). Declaring it as a
dependency with ~3.18.5 makes pnpm install a profile-local 3.18.x copy that
cannot match the host's 3.19.0 on dsh 0.2.2+, so Node's nearest-resolution
loads two instances and the nearer copy shadows the core service.

Verified 3.18.5 and 3.19.0 export identical APIs (26/26) and this plugin
only uses the default export, so sharing the host instance is safe.

Fixes #546

(cherry picked from commit f3591ace5d7984bb89a9ae4e80ed063159e9f985)
This commit is contained in:
gardenerHan authored and Menghuan1918 committed 2026-11-08 11:38:45 +08:00
1 parent ee04b5d4b3
commit 1ea716b6d6
1 file changed
+1 -1
+1 -1
View File
@@ -94,6 +94,7 @@
"license": "MIT",
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.5",
"@deepseek-ai/schemastery": ">=3.18.5 <4",
"@deepseek-ai/dsh-agent": "^0.2.2-rc.1",
"@deepseek-ai/dsh-client-locale": "^0.2.2-rc.1",
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.2-rc.1",
@@ -142,7 +143,6 @@
"@codemirror/search": "^6.7.1",
"@codemirror/state": "^6.7.1",
"@codemirror/view": "^6.43.8",
"@deepseek-ai/schemastery": "~3.18.5",
"@formkit/auto-animate": "^0.10.0",
"@lezer/highlight": "^1.2.3",
"@xterm/addon-fit": "^0.11.0",