Skip to content

feat(dsh-plugin): 适配 DSH 0.2.3-alpha.3 与 React 19 运行时 - #20

Merged
KyoMio merged 1 commit into
mainfrom
feat/dsh-0.2.3-alpha.3
Nov 28, 2026
Merged

KyoMio merged 1 commit into
mainfrom
feat/dsh-0.2.3-alpha.3

Conversation

@KyoMio

@KyoMio KyoMio commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Why

适配 DeepSeek Harness 0.2.3-alpha.3 客户端 React 19 运行时、动态客户端包类型路径与宿主路由鉴权变更,确保 zcode-executor 可被新版 DSH 正确加载并保持 0.2.1/0.2.2 向后兼容。

Changes

  • React 19 兼容:package.json 与 dsh-plugin/package.json 将 peerDependencies.react 放宽为 ^18.2.0 || ^19.3.1;dsh-plugin 开发依赖升至 0.2.3-alpha.3、cordis@4.2.0-alpha.2、schemastery@3.20.0-alpha.2 与 @types/react@~19.3.0。
  • 动态客户端包类型与引入规范:dsh-plugin/tsconfig.client.json 更新 ui-slots / ui-primitives 及其 /client 子路径到 lib/types/client/index.d.ts;dsh-plugin/src/client/register-tab.ts 改用 @deepseek-ai/dsh-client-ui-slots/client;更新 dsh-plugin/src/client/index.tsx 构建标识并重建 dsh-plugin/lib/。
  • 路由鉴权 503 映射:dsh-plugin/src/routes.ts 将 Admission 扩展至 401 | 403 | 503(503 映射为 code: 'authentication-unavailable'),保留 deps.admit(req) 兼容旧宿主。
  • 回归测试:更新 dsh-plugin/test/routes.test.mjs(覆盖 503 拒绝)与 test/dsh-manifest.test.mjs(React 19 与 0.2.3-alpha.3 清单守卫)。

Verification

  • cd dsh-plugin && npm run verify && node --test test:两套 tsconfig 零错误,112/112 通过。
  • npm test && npm run verify:904/904 通过,边界与 checkJs 检查全过。
  • 使用真实 cordis@4.2.0-alpha.2 与 schemastery@3.20.0-alpha.2 加载构建后的 dsh-plugin/lib/index.js 与 dsh-plugin/lib/client.js,验证挂载与卸载清理全过。

@KyoMio
KyoMio merged commit 3b783b8 into main Nov 28, 2026
3 checks passed
@KyoMio
KyoMio deleted the feat/dsh-0.2.3-alpha.3 branch November 28, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant