xiyuepcl/dsh-translator0

dsh-translator

DeepSeek-powered approval translation for DeepSeek Harness (dsh): approval dialogs show their reason natively in Chinese

AI 분석

核心用途是在审批请求(如沙箱提权)到达浏览器前,将原因文本原生汉化。适合需要中文审批提示的 DSH 用户,依赖已配置的 DeepSeek 凭据。

패키지
dsh-translator
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 17.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiyuepcl/dsh-translator

dsh-translator

DeepSeek-powered approval translation for DeepSeek Harness (dsh).

When the agent requests approval (e.g. a sandbox escalation), the approval dialog's reason text is translated into Simplified Chinese before it reaches the browser — the dialog renders natively in Chinese and React re-renders cannot revert it.

Install

npx -y @deepseek-ai/dsh plugin --profile web add https://github.com/xiyuepcl/dsh-translator/releases/download/v0.1.0/dsh-translator-0.1.0.tgz

Then restart the web UI / EAC. No configuration needed — it uses your configured DeepSeek provider/credential (a few tokens per approval, ~1s latency).

How it works

  • Node half prepends an approval/request waterfall listener (via ctx.on(..., true) so it runs ahead of the web answerer) that translates req.reason with the harness's own ctx.llm.
  • The durable approval/asked audit event keeps the original English reason; only the displayed text is translated.
  • Already-Chinese or untranslatable reasons pass through untouched; translation failures never block an approval.
  • Browser half is a deliberate no-op (the earlier DOM-walking approach was defeated by React re-renders).

Uninstall

npx -y @deepseek-ai/dsh plugin --profile web remove dsh-translator (then delete the bundles entry if it lingers)

License

MIT