xiyuepcl/dsh-translator

xiyuepcl★ 0JavaScript最后同步: 2026-08-17

在 GitHub 打开

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

README 摘要

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 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 License MIT

在 GitHub 查看完整 README →
工具/开发approvaldeepseek-harnessdshdsh-plugintranslationweb uiagent

分类