feat(compat): support DSH 0.1.2-alpha.1 source contracts - #105
Open
Grivn wants to merge 1 commit into
Open
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.
摘要 / Summary
在保留 DSH 0.1.1-rc.2 可复现 npm 基线的同时,新增 0.1.2-alpha.1 源码链接与 CI 验证流程,并适配 Client runtime 拆分、Workspace/locale/slot 契约和统一认证后的 Host RPC API。同步移除失效的
remoteAccess配置,并以中英文文档记录插件作者需要关注的上游变化。关联 Issue 或背景 / Related Issue or Context
N/A。该 PR 直接响应维护者对 DSH 0.1.2-alpha.1 插件兼容性研究和适配的请求,属于仓库明确接受的兼容性工作。研究基于 alpha release 和 rc.2-to-alpha 完整比较。
直接影响 Mnemon 的上游变化包括:
dsh-client-runtime被 controller/store/renderer 拆分;Chat slot contract 迁移;Workspace snapshot 删除recentWorkspaceId;locale ID 开放扩展;Host RPC 删除逐方法 authority;旧 ApiProxy 被 Remote/gateway 取代但通用 Connection channel 保留;subagent 模型与 token 统计调整,而 Mnemon 的 child-local projection shim 仍有必要。涉及区域 / Affected Areas
PR 类型 / PR Type
最新代码确认 / Latest Codebase Confirmation
main分支开发,或在提交前已 rebase 或合并最新main。 / I developed from the latestmain, or rebased or merged the latestmainbefore submitting.同步命令 / Sync command:
提交前结果为
0 0,适配分支直接基于最新origin/main。AI 编码披露 / AI Coding Disclosure
使用的 AI 模型 / AI model used:
OpenAI GPT-5
使用的编码 Agent 工具 / Coding Agent tool used:
Codex desktop
仓库规范检查 / Repository Rules
@deepseek-ai/*package 输出。 / I did not modify DSH source or point tsconfig at a DSH checkout; normal dependencies use published npm contracts, while alpha verification overlays only package outputs built from the official tag.src/shared/contracts.ts为准,没有在两侧重复定义 wire DTO。 / The Client and Host boundary still usessrc/shared/contracts.tsas the single source for wire DTOs.lib/文件。 / I did not commit tokens, credentials, private memory, unredacted logs, or generatedlib/files.兼容性与数据安全 / Compatibility and Data Safety
node_modules中链接官方 tag 的构建产物,并可精确恢复原 registry 链接。remoteAccess已从 schema、resolved config、示例 patch 和评估 profile 删除。迁移到 DSH 0.1.2 时应从本地 patch 删除该键。loopback/trusted-host逐方法权限层;所有 Mnemon channel 都依赖 DSH launch-token-derived 浏览器会话认证。writeEnabled=false仍是产品级 mutation guard,而不是认证边界。本地验证 / Local Validation
执行的命令 / Commands run:
结果摘要 / Result summary:
DSH 0.1.2-alpha.1 源码链与恢复后的 0.1.1-rc.2 registry 链均通过完整验证:48 个测试文件通过、521 项测试通过,1 项 Windows-only 测试按预期跳过;typecheck、确定性构建、真实 headless profile、package contents/public entries、publint 与 attw 全部通过。最终重复 link → alpha typecheck → restore,确认 CLI 版本从
0.1.2-alpha.1恢复为0.1.1-rc.2,且恢复前后的 registry link fingerprint 相同。用户可见变更证据 / Local Feature Evidence
证据 / Evidence:
N/A。该 PR 是源码契约、Host 注册、配置迁移和 CI 兼容性改造,没有新增需要截图展示的用户功能;可观察的迁移行为由配置、RPC 与完整集成测试覆盖。