DSH 插件化安装:宿主级挂载连续性插件(v0.17.1) - #103
Merged
Merged
Conversation
) - 挂载方式从复制 agent preset 改为 $DSH_HOME/cordis.patch.yml 的 insert 块, 覆盖全部 profile 与 preset(含 Electron desktop),消除 preset 拷贝漂移 - 纠正消息 provenance 改为 { kind: plugin, plugin: thinloop-continuity }, 对齐官方 dsh-hooks-codex Stop 桥 - verify-install 新增 DSH 只读挂载检查(无 CLI 探测),未挂载保持 MANUAL - 三处文档同步宿主级挂载与验证方式;版本推进 0.17.1 并新增发布说明 - 测试:挂载/未挂载/DSH_HOME/foreign-row fixture 用例与插件结构断言
8 tasks
2 tasks
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.
Refs #102
范围摘要
.dsh-plugin/continuity.mjs的挂载方式从「复制 agent preset 的agent.cordis.yml」改为宿主级用户 patch 层:在$DSH_HOME/cordis.patch.yml以insert列表追加thinloop-continuity条目,对全部 profile 与 agent preset 生效(含 Electron desktop 宿主经runProfile的同一组合代码),消除 preset 拷贝随 DSH 升级漂移的问题。dsh-scope事件过滤对未打标签的监听器始终放行(祖先作用域可观察后代活动),宿主层ctx.on("agent/turn-stopping")能收到每个 Agent 的停止事件,与官方dsh-hooks-codex/dsh-hooks-claude-code桥的挂载形态一致。source从{ kind: "user" }改为{ kind: "plugin", plugin: "thinloop-continuity" },与官方 Stop 桥一致,不再把纠正归因于人类用户。scripts/verify-install.mjs新增 DSH 只读挂载检查:扫描$DSH_HOME/cordis.patch.yml与$DSH_HOME/profiles/*/cordis.patch.yml(跳过node_modulesbundle patch),挂载行指向当前源码时hooks为PASS,未挂载保持MANUAL(skills-only 仍是受支持形态);不运行任何 CLI 探测。.dsh-plugin/README.md、docs/installation.md、docs/verification.md同步宿主级挂载(含 patch 层必须用insert、裸行会报entry not found的实测结论)与验证方式。docs/releases/v0.17.1.md。风险
desktopprofile 由 Electron 独占管理,home 级挂载需重启 desktop 宿主后生效(启动时应用 patch 层)。验收证据
node --test tests/platform-capabilities.test.mjs48/48 通过,新增 4 个 DSH 用例(home patch 挂载 PASS、profile patch 绝对路径 PASS、foreign 行与 bundle patch 忽略保持 MANUAL、DSH_HOME覆盖);本机node scripts/verify-install.mjs --platform dsh在挂载后为[PASS](skills 12/12、version 0.17.1、hooks 1/1 mounted via~/.dsh/cordis.patch.yml)。dsh --profile headless+--patch模型 overlay):managed_by: scd-quickdev、缺六章节)目录中,Agent 停止前被纠正消息打断(stderr 推理记录收到纠正),补齐状态后(140 → 2996 字节,validateState复核issues: [])才允许停止,exit 0。dsh --profile headless --dump-config与dsh --profile web --dump-config均包含thinloop-continuity行且零 patch 错误;裸行形式实测报entry "thinloop-continuity" not found(文档已记录正确形式)。node --test tests/*.test.mjs:266/269 通过,3 个失败在干净main上同样失败(本机 Node 代理环境向子进程 stderr 注入UNDICI-EHPA警告,与本次差异无文件交集)。node scripts/check-version.mjsPASS(11 surfaces 0.17.1);node scripts/sync-routing-kernel.mjs --check通过;四个评测定义校验全部 PASS。