863683348/dsh-plugin-translation
Translation toolkit for DeepSeek Harness agents: sentence segmentation, term/glossary extraction, source-target QA, tone guides, and a durable translation memory in the session workspace
已收录
0
Tools
Bundle 已验证
预览
功能介绍
为 DSH agent 提供翻译工具包:句子分块、术语与术语表提取、译文质检(数字、单位、括号)、语气指南与工作区持久化翻译记忆。
适合
- 处理长文档、需要有界分块、术语提取和源译文一致性检查的译者。
- 需要通过工作区持久化翻译记忆和术语表,在同一工作区的多个会话中复用术语的团队。
- 需要正式、口语或技术语气指南,并检查数字、单位和括号的中英翻译流程。
不适合
- 不适合替代译者或翻译模型,因为翻译由模型完成,插件负责分块、检查和存储。
- 不适合语义准确性认证或替代人工质量审校,因为文档中的质检聚焦数字、单位、括号、长度比例和标点等结构信号。
- 不适合在互不相关的工作区间共享同一翻译记忆,因为记忆和术语表文件受工作区边界限制。
README
dsh-plugin-translation
A translation toolkit for DeepSeek Harness agents: chunking, glossary extraction, source–target QA, tone guides, and a durable translation memory. The model translates; the plugin chunks, checks, and remembers.
Install
dsh plugin --profile <profile> add dsh-plugin-translation
Restart DSH. The translate_kit tool is registered host-wide.
Tool
| action | purpose |
|---|---|
segment |
Split text into numbered, bounded chunks for chunked translation |
glossary |
Extract candidate terms (acronyms, camelCase, domains, numbers+units, emails, URLs) with counts |
check |
Source–target QA: numbers/units, brackets, length ratio, doubled punctuation |
tone |
Register-specific tone guide (formal / colloquial / technical, en / zh) |
memo_get |
Read the translation memory (newest first) |
memo_add |
Save a source→target pair to the memory file in the session workspace |
glossary_get |
Read the durable glossary (newest first) |
glossary_add |
Add or update a source→target glossary term in the workspace glossary file |
glossary_remove |
Remove a glossary term by source |
consistency |
Cross-segment terminology consistency check against the glossary |
Config
All optional, on the composition row’s config:
| key | default | meaning |
|---|---|---|
personaSection |
true |
register the translation prompt-guidance section |
sectionOrder |
6 |
prompt section order (persona is 0, ascending) |
memoFile |
.dsh/translation-memo.md |
memory file path (relative to the session workspace; cannot escape it) |
glossaryFile |
.dsh/translation-glossary.md |
glossary file path (relative to the session workspace; cannot escape it) |
maxGlossaryEntries |
200 |
entries kept in the glossary file |
maxMemoEntries |
200 |
entries kept in the memory file |
Design
Pure logic (lib/translation.js) has zero DSH/Cordis imports and is unit-tested in isolation; lib/index.js is the thin Cordis plugin. Memory access goes through ctx.fs and every resolved path is containment-checked against the session workspace.
License
MIT
Roadmap
See ROADMAP.md — next five versions (v0.2.0 – v0.6.0): glossary management & consistency, tone memory & quality scoring, side-by-side diff & placeholder protection, conflict detection & effort stats, glossary versioning & batch pipeline.
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:863683348/dsh-plugin-translation。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。