Skip to content

Navigation Menu

Sign in
Sign up

Harness 0.1.2-rc.1 (public npm) fails to boot: ctx.subagents.registerContinuableSetup is not a function — no installable version works (0.1.15/0.1.14 verified, 0.1.13 source has same call) #132

Open

Description

Environment

  • DeepSeek Harness: @deepseek-ai/dsh@0.1.2-rc.1(npm 公开发布版,web profile,Node 22.20.0,Windows)
  • Plugin: @nanmicoder/dsh-agent-teams@0.1.15(npm latest,dsh plugin --profile web add @nanmicoder/dsh-agent-teams)

Symptom

dsh web 启动即失败,插件树加载错误:

Error: dsh: plugin tree failed to load: failed to apply loader entry include (cordis:include):
failed to apply loader entry agent-teams (@nanmicoder/dsh-agent-teams):
ctx.subagents.registerContinuableSetup is not a function
TypeError: ctx.subagents.registerContinuableSetup is not a function
 at installMemberSelectionRuntime (.../dsh-agent-teams/lib/members.js:194:19)
 at registerAgentTeamsTools (.../dsh-agent-teams/lib/tools.js:316:30)
 at new apply (.../dsh-agent-teams/lib/index.js:137:31)

Root cause

ctx.subagents 服务对象在 0.1.2-rc.1 上存在(否则会报 Cannot read properties of undefined),但缺少 registerContinuableSetup 方法。0.1.15 的 peerDependencies 全部声明 ^0.1.2-alpha.2——推测该 API 在 0.1.2-alpha.2 内测线中存在,而公开发布的 0.1.2-rc.1 中已移除/改名。

Downgrade path verified dead

  • 0.1.14:在独立测试 profile 实测,同样的错误;
  • v0.1.13 源码 src/members.tsinstallMemberSelectionRuntime() 同样调用 ctx.subagents.registerContinuableSetup —— 更老的版本也绕不开。

结论:目前没有任何可安装版本兼容 Harness 0.1.2-rc.1 公开发布版。

Reproduce

  1. npx @deepseek-ai/dsh@0.1.2-rc.1 环境(当前 npm latest 就是它)
  2. dsh plugin --profile web add @nanmicoder/dsh-agent-teams
  3. dsh --profile web → 启动失败,完整 stack 如上

Suggestions

  1. 适配 0.1.2-rc.1 公开版的 subagents 服务 API(或等价的新挂载点);
  2. 挂载时 feature-detect:typeof ctx.subagents.registerContinuableSetup === 'function' 不成立时给出明确版本提示而非裸 TypeError,把整个 web 启动打挂;
  3. README 标注当前兼容的 Harness 公开版本线(0.1.15 ↔ alpha.2 内测线),避免 rc.1 用户误装后整个 profile 起不来。

Workaround

dsh plugin --profile web remove @nanmicoder/dsh-agent-teams 后重启即可恢复(其余 15 个插件正常)。

期待适配,感谢这个项目 🙌

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

      AltStyle によって変換されたページ (->オリジナル) /