Skip to content

支持 DeepSeek Harness 插件安装:宿主级挂载连续性插件并完成本机安装 #102

Description

@mindcarver

结果与范围

用户要求 Thinloop 以插件形式真正安装进 DeepSeek Harness(DSH)。当前状态:十二个 Skill 已链接到 ~/.dsh/skills,但连续性 Cordis 插件 .dsh-plugin/continuity.mjs 未挂载——~/.dsh/cordis.patch.yml 为空数组,旧文档要求把它手工加进 agent preset 的 agent.cordis.yml,且本机残留一份已与 0.1.5-rc.1 shipped standard preset 漂移的 ~/.dsh/.agent-presets/standard-thinloop/ 拷贝。

范围内:

  • 把 DSH 插件挂载方式修正为宿主级用户 patch 层($DSH_HOME/cordis.patch.yml,必要时含 profile 层),覆盖全部 preset(含 Electron desktop),消除 preset 拷贝漂移;
  • 插件 steer 消息 provenance 改为 plugin 来源(对齐官方 dsh-hooks-codex 桥的 Stop 处理);
  • .dsh-plugin/README.md、docs/installation.md、docs/verification.md 同步新挂载与验证方式;
  • config/platform-capabilities.json 与 scripts/verify-install.mjs 增加只读挂载检查(无 CLI 探测,纯文件系统);
  • 测试更新与新增;版本推进 0.17.1 并补发布说明;
  • 本机实际安装:写入 home 级挂载行、移除陈旧 standard-thinloop preset、完成组合与运行时验证。

范围外:其他平台行为、Skill 内容、DSH 源码修改、DSH 宿主升级。

方案与确认

实施方案:DSH 的 profile 组合顺序为 bundle patch → profile cordis.patch.yml → home 级 $DSH_HOME/cordis.patch.yml;desktop 宿主经 runProfile 使用同一组合代码(apps/desktop-host/src/index.ts),因此 home 级行对所有 profile 生效。dsh-scope 的事件过滤规则允许未打标签的宿主监听器接收 agent 作用域派发的 agent/turn-stopping(祖先可观察后代活动),与官方 dsh-hooks-codex/dsh-hooks-claude-code 桥的挂载形态一致,无需复制 agent preset。挂载行使用 file:/// 绝对 URL 指向源码检出内的 .dsh-plugin/continuity.mjs。

方案确认:需要确认:否;状态:默认免确认。

验收与任务

  • A1:node scripts/verify-install.mjs --platform dsh 能识别挂载状态——挂载行存在且指向当前源码时 hooks 检查为 PASS;未挂载时保持 MANUAL(skills-only 安装仍是受支持形态);fixture 测试覆盖两态。
  • A2:真实 DSH headless 会话行为验证——存在 SCD 管理但不可恢复的 .scd/tasks/current.md 时 Agent 停止前被纠正消息打断并补齐;无状态文件时静默不干预。
  • T1:.dsh-plugin/continuity.mjs 纠正消息 source 改为 { kind: "plugin", plugin: "thinloop-continuity" }。
  • T2:更新 .dsh-plugin/README.md、docs/installation.md、docs/verification.md 的挂载与验证说明。
  • T3:config/platform-capabilities.json 增加 DSH 挂载描述,scripts/verify-install.mjs 增加只读挂载检查。
  • T4:更新 tests/platform-capabilities.test.mjs 预期并新增挂载检查测试;tests/plugin-compatibility.test.mjs 增加 DSH 插件结构断言。
  • T5:版本推进 0.17.1(含全部版本表面)并新增 docs/releases/v0.17.1.md。
  • T6:本机安装——~/.dsh/cordis.patch.yml 写入挂载行;移除陈旧 ~/.dsh/.agent-presets/standard-thinloop/;dsh --profile web --dump-config 组合包含插件行;提示 desktop 需重启生效。

验证

  • A1:尚未执行。
  • A2:尚未执行。

完成审计

  • 验收闭合:A1、A2 待验证。
  • 实施账目:T1–T6 待完成。
  • 交付状态:精确差异、检查、独立验收、合并与清理待完成。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions