From cb5dc148d5f78453aec50a0dcfb95c517b50f4a3 Mon Sep 17 00:00:00 2001 From: Zhang GH <5351707+iuyo5678@users.noreply.github.com> Date: Tue, 8 Sep 2026 16:58:20 +0800 Subject: [PATCH] fix(dsh-plugin): remove obsolete client runtime host dependency Keep dsh-client-runtime as a development-only type dependency. Remove its peer metadata, client injection entry, and runtime external allowance so newer hosts do not preflight a package they no longer ship. Fixes #193 --- packages/dsh-plugin-browserskill/package.json | 5 ----- packages/dsh-plugin-browserskill/src/client/index.ts | 1 + packages/dsh-plugin-browserskill/tsdown.config.ts | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/dsh-plugin-browserskill/package.json b/packages/dsh-plugin-browserskill/package.json index 427b435..6ab53d4 100644 --- a/packages/dsh-plugin-browserskill/package.json +++ b/packages/dsh-plugin-browserskill/package.json @@ -47,7 +47,6 @@ "client": { "platform": "web", "inject": [ - "@deepseek-ai/dsh-client-runtime", "@deepseek-ai/dsh-client-ui-tool", "@deepseek-ai/dsh-client-ui-layout" ], @@ -69,7 +68,6 @@ "peerDependencies": { "@deepseek-ai/cordis": "^4.0.1", "@deepseek-ai/dsh-attachment": "^0.1.0-rc.6", - "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.6", "@deepseek-ai/dsh-client-ui-attachment": "^0.1.0-rc.6", "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.6", "@deepseek-ai/dsh-client-ui-tool": "^0.1.0-rc.6", @@ -82,9 +80,6 @@ "@deepseek-ai/dsh-attachment": { "optional": true }, - "@deepseek-ai/dsh-client-runtime": { - "optional": true - }, "@deepseek-ai/dsh-client-ui-attachment": { "optional": true }, diff --git a/packages/dsh-plugin-browserskill/src/client/index.ts b/packages/dsh-plugin-browserskill/src/client/index.ts index 024a68a..d7eac0d 100644 --- a/packages/dsh-plugin-browserskill/src/client/index.ts +++ b/packages/dsh-plugin-browserskill/src/client/index.ts @@ -7,6 +7,7 @@ */ import type { ImageAttachmentRef } from "@deepseek-ai/dsh-attachment"; +// Development-only types for the injected services; newer hosts no longer ship this package. import type { ClientContext, ISessions, SessionId } from "@deepseek-ai/dsh-client-runtime/client"; // Type-only: pulls the 'shell.overlay' SlotMap merge into scope. import type {} from "@deepseek-ai/dsh-client-ui-layout/client"; diff --git a/packages/dsh-plugin-browserskill/tsdown.config.ts b/packages/dsh-plugin-browserskill/tsdown.config.ts index f5f1137..8de9c33 100644 --- a/packages/dsh-plugin-browserskill/tsdown.config.ts +++ b/packages/dsh-plugin-browserskill/tsdown.config.ts @@ -25,7 +25,6 @@ const CLIENT_EXTERNALS: readonly string[] = [ "@deepseek-ai/dsh-client-ui-primitives", "@deepseek-ai/dsh-client-ui-attachment", "@deepseek-ai/dsh-client-schema-form", - "@deepseek-ai/dsh-client-runtime/client", ]; /** Wire/type layers with no shared runtime identity: safe to inline. */