From 1ea716b6d6034dc482d6ca637a3934773daa7fbc Mon Sep 17 00:00:00 2001 From: gardenerHan <1129982332@qq.com> Date: Sun, 8 Nov 2026 04:13:34 +0800 Subject: [PATCH] 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) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5b874b97..34533431 100644 --- a/package.json +++ b/package.json @@ -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",