-
Notifications
You must be signed in to change notification settings - Fork 122
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.ts的installMemberSelectionRuntime()同样调用ctx.subagents.registerContinuableSetup—— 更老的版本也绕不开。
结论:目前没有任何可安装版本兼容 Harness 0.1.2-rc.1 公开发布版。
Reproduce
npx @deepseek-ai/dsh@0.1.2-rc.1环境(当前 npm latest 就是它)dsh plugin --profile web add @nanmicoder/dsh-agent-teamsdsh --profile web→ 启动失败,完整 stack 如上
Suggestions
- 适配
0.1.2-rc.1公开版的subagents服务 API(或等价的新挂载点); - 挂载时 feature-detect:
typeof ctx.subagents.registerContinuableSetup === 'function'不成立时给出明确版本提示而非裸 TypeError,把整个 web 启动打挂; - README 标注当前兼容的 Harness 公开版本线(0.1.15 ↔ alpha.2 内测线),避免 rc.1 用户误装后整个 profile 起不来。
Workaround
dsh plugin --profile web remove @nanmicoder/dsh-agent-teams 后重启即可恢复(其余 15 个插件正常)。
期待适配,感谢这个项目 🙌
Activity
Metadata
Metadata
Assignees
Labels
No labels