← 返回列表
D

dsh-plugin-translation

v0.1.0 · 0 天前发布

Translation toolkit for DeepSeek Harness agents: sentence segmentation, term/glossary extraction, source-target QA (numbers, units, placeholders, brackets, length), tone guides, and a durable translation memory in the session workspace

deepseek-harnessdshdsh-plugincordispluginbundletranslationglossarymemoqa

README

dsh-plugin-translation

面向 DeepSeek Harness agent 的翻译工具包:分块、术语提取、译文质检、语气指南与持久化翻译记忆。模型负责翻译,插件负责切分、校验与记忆。

安装

bash
dsh plugin --profile <profile> add dsh-plugin-translation

重启 DSH 后,translate_kit 工具全局注册。

工具

| 动作 | 用途 |
| --- | --- |
| segment | 把长文本切成编号分块,便于分块翻译 |
| glossary | 提取候选术语(缩写、驼峰词、域名、数字+单位、邮箱、URL)及出现次数 |
| check | 译文质检:数字/单位、括号配对、长度比例、重复标点 |
| tone | 语气指南(正式 / 口语 / 技术,中 / 英) |
| memo_get | 读取翻译记忆(新的在前) |
| memo_add | 保存一条源文→译文到会话工作区内的记忆文件 |

配置

均为可选项,写在组合行的 config 里:

| 键 | 默认值 | 含义 |
| --- | --- | --- |
| personaSection | true | 是否注册翻译提示词段 |
| sectionOrder | 6 | 提示词段顺序(persona 为 0,升序) |
| memoFile | .dsh/translation-memo.md | 记忆文件路径(相对会话工作区,运行时校验不可逃逸) |
| maxMemoEntries | 200 | 记忆文件保留的

查看完整 README →

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
MIT
npm
dsh-plugin-translation
Repo
git+https://github.com/863683348/dsh-plugin-translation.git
Engines
{}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}