Repository navigation
feat(dsh-plugin): 适配 DSH 0.2.3-alpha.3 与 React 19 运行时 - #20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
适配 DeepSeek Harness
0.2.3-alpha.3客户端 React 19 运行时、动态客户端包类型路径与宿主路由鉴权变更,确保zcode-executor可被新版 DSH 正确加载并保持0.2.1/0.2.2向后兼容。Changes
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,验证挂载与卸载清理全过。