Skip to content

v0.11.0 — 适配 DSH 0.2.1 / DSH 0.2.1 compatibility

Choose a tag to compare

@Dclef Dclef released this 17 Oct 13:56
· 15 commits to main since this release

适配 DSH 0.2.1 的外部子智能体契约

DSH 0.2.1 把原生子智能体的创建收拢到 subagents 服务的 startActivation,并且只把外部 provider 的子代理建模成非交互的 External 行。旧版直接用 runtime.start,在 0.2.1 上会直接失效。

本版变化(0.11.0)

  • 跟随新契约:provider 由宿主服务启动,返回一个宿主尚未注册的子会话 id;External 目录行由宿主写入,运行结果、取消和后台机制不变
  • 镜像留在 cursor_code:可点击的镜像子会话由 cursor_code 直接启动 provider 创建,cursor_subagent 不再重复写一行目录,避免宿主报 DUPLICATE_CHILD
  • 递归上限仍在插件里:宿主现在把深度预算完全交给 provider(maxDepth: provider-managed),maxChildDepth 于是在创建任何进程、子会话之前由插件执行
  • 尊重宿主传入的 cwd:startActivation 解析好的工作区优先于插件自己的推断
  • 版本声明:包顶层 engines.dsh: ^0.2.0-rc.1(已在 0.2.1-rc.2 上验证),并删除 DSH 0.2.1 已移除的工具配置项(backgroundMode、enableRunInBackground)
  • 插件市场:目录条目已于 2026-10-17 合并,可以直接在 dshmarket 里搜索安装
  • npm 公共源:0.11.0 已发布为 dsh-cursor-dev,按包名安装不再返回 404;目录下一次探测后,市场卡片会显示版本与 DSH ^0.2.0-rc.1 宿主要求

安装

# 插件市场(条目解析为 github:Dclef/dsh-cursor-dev)
# 或按包名从 npm 公共源安装(0.11.0 起)
dsh plugin add dsh-cursor-dev

# 或从 Git 来源跟进最新改动
dsh plugin add git+https://github.com/Dclef/dsh-cursor-dev.git

# 或使用本 Release 附带的固定快照
dsh plugin add "D:/Downloads/dsh-cursor-dev-0.11.0.tgz"

安装或升级后完整重启一次 DSH 再刷新页面。要求 DSH ^0.2.0-rc.1(建议 0.2.1-rc.2)、Node.js ^22.19.0 || >=24.0.0、已登录的 Cursor CLI。详见 安装指南。


DSH 0.2.1 external subagent compatibility

DSH 0.2.1 moved native child creation into the subagents service's startActivation and models external providers as a non-interactive External row. The old runtime.start call no longer exists, so the previous release would fail outright.

New in 0.11.0

  • Follows the new contract: the host service starts the provider and receives a child id it has not registered yet; the host writes the External catalog row, while results, cancellation and background runs behave as before
  • The mirror belongs to cursor_code: the clickable mirrored child is created by cursor_code, which starts the provider directly; cursor_subagent no longer writes a second row, which the host rejects with DUPLICATE_CHILD
  • The recursion cap stays in the plugin: the host now hands the whole depth budget to the provider (maxDepth: provider-managed), so maxChildDepth is enforced before any process or child session exists
  • Honours the request cwd: the workspace resolved by startActivation wins over the plugin's own guess
  • Declarations: top-level engines.dsh: ^0.2.0-rc.1 (verified against 0.2.1-rc.2), and the tool-config keys removed in DSH 0.2.1 (backgroundMode, enableRunInBackground) are gone
  • Market: the dshmarket catalog entry was merged on 2026-10-17, so the plugin can be installed from the market
  • npm: 0.11.0 is published to the public npm registry as dsh-cursor-dev, so bare-name installs work and the market card shows the version and the DSH ^0.2.0-rc.1 host requirement after the catalog's next probe

Install

dsh plugin add dsh-cursor-dev
dsh plugin add git+https://github.com/Dclef/dsh-cursor-dev.git
dsh plugin add "D:/Downloads/dsh-cursor-dev-0.11.0.tgz"

Restart DSH completely after installing or upgrading, then refresh the page. Requires DSH ^0.2.0-rc.1 (0.2.1-rc.2 recommended), Node.js ^22.19.0 || >=24.0.0, and an authenticated Cursor CLI. See the install guide.

Verify: 210 offline tests pass on the released tree (213 with the three live CLI/account tests).