설치
npx -y @deepseek-ai/dsh plugin --profile web-desktop add https://github.com/xiyuepcl/dsh-approval-translator/releases/download/v0.1.1/dsh-translator-0.1.1.tgz이 명령은 GitHub 저장소 주소에서 생성됩니다. 실행 전에 업스트림 README와 소스를 검토하고 재현성이 필요하면 release 또는 commit을 고정하세요.
README
유지 관리자가 작성한 문서 스냅샷입니다.
DSH审批汉化 · dsh-translator
DSH审批汉化 — DeepSeek 驱动的 DeepSeek Harness (dsh) 审批弹窗自动汉化插件。
Agent 请求审批(如沙箱权限升级)时,审批弹窗的说明文字会在到达浏览器之前被翻译成简体中文——弹窗原生渲染中文,React 重渲染也无法还原。命令行为保持英文(它是命令,不是说明)。
Approval dialog auto-translation for DeepSeek Harness (dsh). The reason text is translated to Simplified Chinese before it reaches the browser, so React can never revert it; the command line stays English on purpose.
安装 Install
npx -y @deepseek-ai/dsh plugin --profile web-desktop add https://github.com/xiyuepcl/dsh-approval-translator/releases/download/v0.1.1/dsh-translator-0.1.1.tgz
(桌面客户端 EAC 4.x 用 web-desktop profile;CLI 网页版用 web。)装完重启 Web 服务/EAC 即可。无需配置——使用你已配置的 DeepSeek provider/凭据(每次审批约 1 秒 + 少量 token)。
EAC 4.x uses the
web-desktopprofile; the CLI web usesweb. Replace the profile name accordingly.
原理 How it works
- Node 半边以
ctx.on('approval/request', ..., true)(prepend)挂一个瀑布监听器,抢在官方答案器之前用ctx.llm翻译req.reason。 - 持久化的
approval/asked审计事件保留英文原文;只有展示给用户的文本被翻译。 - 已是中文或不可翻译的 reason 原样放行;翻译失败绝不影响审批(仅记录一条错误日志)。
- 浏览器半边是无操作(早先的 DOM 改写方案被 React 重渲染击败,已弃用)。
卸载 Uninstall
npx -y @deepseek-ai/dsh plugin --profile web-desktop remove dsh-translator
License
MIT
프로젝트 파일 및 신호
표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.
저장소 정보
- 언어
- JavaScript
- 라이선스
- MIT
- 최신 릴리스
- v0.1.1
- 마지막 업데이트
- 2026. 8. 18. AM 12:46
신중하게 설치하기
소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.