From 06ff7d3a6c49305eea8062ddd82ad5fb915dd1bc Mon Sep 17 00:00:00 2001 From: creatixchu Date: Thu, 19 Nov 2026 12:38:29 +0800 Subject: [PATCH] Declare shared Agent dispatch and tool protocol dependencies for CUA --- packages/experimental/cua/package.json | 7 ++++--- pnpm-lock.yaml | 6 +++--- scripts/package-dependency-policy.ts | 4 +++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/experimental/cua/package.json b/packages/experimental/cua/package.json index 426d042d73..63d4424cd8 100644 --- a/packages/experimental/cua/package.json +++ b/packages/experimental/cua/package.json @@ -102,7 +102,8 @@ "@deepseek-ai/dsh-scope": "workspace:*", "@deepseek-ai/dsh-ptc-runtime-node": "workspace:*", "@deepseek-ai/dsh-tools": "workspace:*", - "@deepseek-ai/dsh-tool-executor-ptc": "workspace:*" + "@deepseek-ai/dsh-tool-executor-ptc": "workspace:*", + "@deepseek-ai/dsh-agent": "workspace:*" }, "dependencies": { "@deepseek-ai/dsh-brand": "workspace:*", @@ -110,7 +111,8 @@ "zod": "4.6.6", "@deepseek-ai/dsh-atomic-write": "workspace:*", "@deepseek-ai/dsh-typert-protocol": "workspace:*", - "@deepseek-ai/dsh-storage-domain": "workspace:*" + "@deepseek-ai/dsh-storage-domain": "workspace:*", + "@deepseek-ai/dsh-llm": "workspace:*" }, "devDependencies": { "@deepseek-ai/dsh-computer-use": "workspace:*", @@ -126,7 +128,6 @@ "@deepseek-ai/dsh-attachment": "workspace:*", "@deepseek-ai/dsh-attachment-local": "workspace:*", "@deepseek-ai/dsh-error": "workspace:*", - "@deepseek-ai/dsh-llm": "workspace:*", "@deepseek-ai/dsh-session": "workspace:*", "@deepseek-ai/dsh-session-projection": "workspace:*", "@deepseek-ai/dsh-system-prompt": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4964dd920d..8414a6d664 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10572,6 +10572,9 @@ importers: '@deepseek-ai/dsh-brand': specifier: workspace:* version: link:../../util/brand + '@deepseek-ai/dsh-llm': + specifier: workspace:* + version: link:../../llm/llm '@deepseek-ai/dsh-storage-domain': specifier: workspace:* version: link:../../storage/storage-domain @@ -10675,9 +10678,6 @@ importers: '@deepseek-ai/dsh-hmr': specifier: workspace:* version: link:../../boot/hmr - '@deepseek-ai/dsh-llm': - specifier: workspace:* - version: link:../../llm/llm '@deepseek-ai/dsh-llm-deepseek': specifier: workspace:* version: link:../../llm/llm-deepseek diff --git a/scripts/package-dependency-policy.ts b/scripts/package-dependency-policy.ts index 25ab4379e6..13e290c5ca 100644 --- a/scripts/package-dependency-policy.ts +++ b/scripts/package-dependency-policy.ts @@ -76,6 +76,8 @@ const SAFE_HOST_DEPENDENCY_EXPORTS = { /** Runtime exports that require every consumer to resolve the provider's shared peer instance. */ const PEER_REQUIRED_HOST_EXPORTS = { + // Agent notifications must use the installed Agent and scope dispatch implementation. + '@deepseek-ai/dsh-agent': ['emitAgentEvent'], // Profile settings must match the installed Node provider's configuration schema. '@deepseek-ai/dsh-ptc-runtime-node/configuration': ['resolvePersistentExecution'], // CUA mounts the installed provider and shares executor error classes with PTC. @@ -102,7 +104,7 @@ const PEER_REQUIRED_HOST_EXPORTS = { // Imported titles follow the installed title service's normalization. '@deepseek-ai/dsh-session-title': ['normalizeSessionTitle'], // Error classes have instance identity; CUA and Liveshare throw the registry's own copy so `instanceof` against it matches. - '@deepseek-ai/dsh-tools': ['defineTool', 'ToolArgsError', 'ToolContextUnavailableError'], + '@deepseek-ai/dsh-tools': ['defineTool', 'ToolArgsError', 'ToolContextUnavailableError', 'RUN_CODE_NAME'], // Readers recognize a deadline's TimeoutReason only by `instanceof` against their own copy. '@deepseek-ai/dsh-timeout': ['deadline', 'timeoutOf'], // Imported web tool results must render exactly like the installed web tools' results and cards.