863683348/dsh-plugin-translation ↗★ 0
dsh-plugin-translation
用于 DeepSeek Harness 智能体的翻译工具包:句子分段、术语/词汇表提取、源语-目标语质量保证、语气指南以及会话工作区中的持久翻译记忆。
AI 分析
核心用于辅助高质量翻译任务,提供文本分段、术语提取、格式对齐校验及持久化翻译记忆。适合需要进行专业翻译、本地化或跨语言内容校对的用户。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 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
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 |
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) |
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