dsh-i18n
Manifest validdsh-i18n
DeepSeek Harness 汉化插件:拦截工具执行结果和工具执行错误,把可安全替换的英文标记自动替换为中文,带设置开关。
功能
- 工具结果标记(
tools/execute结果):[exit code: N]→[退出码:N][timed out after Nms]→[超时:N毫秒后][killed by signal: ...]→[被信号终止:...][stderr]→[标准错误](no output)→(无输出)[sandbox: file access denied under ...]→[沙箱:文件访问被拒绝,模式 ...]- 等 20+ 条规则
- 工具执行错误(
tools/execute抛错,catch 后翻译):invalid arguments: missing required property "X"→无效参数:缺少必填属性 "X"unknown tool "X"→未知工具 "X"code run failed (...)→代码运行失败(...)tool arguments must be lossless JSON→工具参数必须是可无损序列化的 JSON
- 子代理错误:
subagent "X" is unavailable→子代理 "X" 不可用no subagent provider registered for "X"→没有为子代理提供商 "X" 注册
- 会话恢复错误:
resume failed for session "X"→恢复会话 "X" 失败 - 设置开关:设置 → 通用 →「工具结果汉化」,可随时打开/关闭。
agent/request-error 的 failure 与 agent/error 的 error 是 Harness 核心按原样派发的不可变事实。插件不修改它们,因此这两类核心错误保留原始文本,避免在错误处理路径中再次抛错并中断对话。
安装
方式一:本地插件(junction)
# 1. 建 junction
New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\web\node_modules\dsh-i18n" -Target "本插件源码路径"
# 2. 在 cordis.patch.yml 加 insert 条目
# - insert:
# - id: dsh-i18n
# name: 'dsh-i18n'
# 3. 重启 dsh web
方式二:npm 包(待发布)
dsh plugin --profile web add dsh-i18n
架构
- Host 半区(
lib/index.js):ctx.on('tools/execute')拦截结果,按规则表替换文本;installSettingsSection注册{enabled: boolean}设置。 - Client 半区(
lib/client.js):window.__ModuleLoader__.load包裹,注册settings.general.item开关,用connection.api.settings读写。 - 双面插件声明:
package.json的dsh.client字段 +exports["./client"]。
开发
# 语法检查
node --check lib/index.js
node --check lib/client.js
# 规则测试
node test-localize.cjs
许可
MIT
Comments
Loading…
From the same category
by anywhere-labs
为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 30.4k
↓ 108/wk
MIT
TypeScript
Oct 10, 2026
dsh plugin --profile web add dsh-plugin-desktopby zhu1090093659
DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
★ 8.6k
↓ 119/wk
Apache-2.0
TypeScript
Oct 10, 2026
dsh plugin --profile web add dsh-webA collection of independent Web UI plugins and skins, including task boards, Git graphs, mobile access, and live token stats.
★ 7.6k
↓ 119/wk
Apache-2.0
TypeScript
dsh plugin --profile web add dsh-webby omdsh-dev
开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git,
★ 4.1k
↓ 35.2k/wk
MIT
TypeScript
Oct 9, 2026
dsh plugin --profile web add dsh-better-sidebarby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 2k
↓ 29.4k/wk
Apache-2.0
TypeScript
Oct 10, 2026
dsh plugin --profile web add dsh-contextby shaobeichen
把 DeepSeek Harness 装进你的口袋:电脑上跑 dsh web,手机扫码即同步访问(局域网 + 公网,实时同屏)Put DeepSeek Harness in your pocket: run dsh web on your computer and access it synchronously by scanning a QR code on your phone (LAN +
★ 1.6k
↓ 3.1k/wk
GPL-2.0
JavaScript
Sep 16, 2026
dsh plugin --profile web add dsh-pocket