DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-computer-use-compat

j

dsh-computer-use-compat

Discovered

Backfill prompt-section order keys that DSH core 0.1.5-rc.2 lacks, so the official DeepSeek Harness computer-use providers can load on an older host.

dsh-computer-use-compat

Backfill the prompt-section order keys that DSH core 0.1.5-rc.2 lacks, so the official Computer Use providers can load on an older host.

给老宿主回填 system prompt 段位表里缺失的键,让官方 Computer Use 插件在 core 0.1.5-rc.2 上也能加载。

license

拥有:prompt section order 键 TOOL_COMPUTER_USE 的回填(宿主 core 0.1.5-rc.2 缺该键)。 冲突时:必须排在 computer-use / computer-use-native 之前 insert,否则 native provider 拿到 undefined order 会整体回滚(section() 抛 TypeError)。 回滚:删该 insert 块 —— 代价是 computer-use 系列同时失去加载能力。


它解决什么

官方的 Computer Use 包(@deepseek-ai/dsh-computer-use@0.1.6-alpha.1 + @deepseek-ai/dsh-experimental-computer-use-cua-driver-native@0.1.6-alpha.1)在 native provider 的 systemPrompt.section() 里这样取段位:

order: inner.systemPrompt.getSectionOrder("TOOL_COMPUTER_USE")

而 core 0.1.5-rc.2 的 dsh-system-prompt 里 SECTION_ORDERS 表没有 TOOL_COMPUTER_USE (0.1.6-alpha 才加入,官方值 3000)。getSectionOrder 对未知键返回 undefined, section() 又写着 if (!Number.isFinite(section.order)) throw new TypeError(...) —— 于是 provider 的 apply 必然抛错、整块回滚,一个 cua_driver_native__* 工具都注册不上。

它做什么

只做一件事:包裹 ctx.systemPrompt.getSectionOrder,为缺失的键返回官方同一个数值:

键值
TOOL_COMPUTER_USE3000
MCP_SERVERS3100

其余键原样透传;用 Symbol.for('dsh-computer-use-compat.patched') 防重复打补丁; 卸载时经 ctx.effect 还原原方法。不改应用产物、不触碰 DSH 本体,删掉插件即完全回退。

dsh-computer-use-compat  (host only)
  └─ ctx.systemPrompt.getSectionOrder  ← 猴子补丁,只补缺口

安装

两种装法任选其一(都会往 profile 的 dependencies 加一项,再配一行 insert):

# ① npm(快,走 registry)
dsh plugin --profile <profile> add dsh-computer-use-compat

# ② GitHub(源码直装,跟随 main 分支)
dsh plugin --profile <profile> add github:jipika/dsh-computer-use-compat

然后在 ~/.dsh/profiles/<profile>/cordis.patch.yml 里 insert 一行:

- insert:
    - id: dsh-computer-use-compat
      name: dsh-computer-use-compat

顺序要求:这行必须排在 computer-use provider 之前,补丁才会早于 provider 的 apply 生效 (插件 inject = ['systemPrompt', 'tools'],等这两个服务就绪后再打补丁)。

desktop profile 被 Electron 独占,CLI 子命令会被拒;手改 profile 的 package.json (dependencies 加 github:jipika/dsh-computer-use-compat)+ pnpm install,再 insert 同一行, 重启应用才生效。

调试

设置 DSH_CU_COMPAT_DEBUG=1 启动,插件会在 5 秒后打印一次工具注册情况 (依次探测 schemas / sdkSchemas / view / names / list,把结果打到 host 日志)。

已知限制

  • 数值是硬编码的官方 3000 / 3100,官方改值即失效(改这个文件即可)。
  • 依赖 ctx.systemPrompt.getSectionOrder 这个内部 API 与 provider 的 apply 时序。
  • 只解决「段位表缺键」这一类不兼容;core 0.1.6-alpha 起官方已自带这些键,本插件会成为无害的透传。

License

MIT © 2026 jipika

Comments

Loading…

Similar plugins

@chi-hong22/dsh-mdbox

by Chi-hong22

DeepSeek Harness Web composer markdown editing helper: Shift+Enter list continuation with ordered-list auto-renumbering and Tab indent

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 14, 2026

dsh plugin --profile web add @chi-hong22/dsh-mdbox

by 904915452

DeepSeek Harness plugin: configurable keyboard shortcuts (settings UI + input history + approval/plan hotkeys)

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 17, 2026

dsh plugin --profile web add @zhangqingyu/dsh-keyboard-shortcuts

by rvaim

dsh-compat 是 DeepSeek Harness(DSH)的旧插件兼容层。它让原本面向 Claude Code、Codex 的插件尽量保持原目录与语义运行,而不是把每个插件重新迁移成 DSH 原生插件。

Manifest valid

★ 0

↓ 96/wk

MIT

TypeScript

Aug 15, 2026

dsh plugin --profile web add @rvaim/dsh-compat

by archyciao

DeepSeek Harness (dsh) 插件:设置页「关于」- 版本显示/检查更新/一键重启

Manifest valid

★ 0

JavaScript

Sep 9, 2026

dsh plugin --profile web add dsh-about-updater

by leolee9086

Independent cross-platform desktop computer-use plugins for DeepSeek Harness (region capture via a bundled native helper)

Manifest valid

★ 0

MIT

JavaScript

Oct 4, 2026

dsh plugin --profile web add dsh-computer-use

by CuteSamurai24

Small file memory for DeepSeek Harness. The model writes markdown, the host injects it.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Aug 18, 2026

dsh plugin --profile web add dsh-md-memory