Repository navigation
Releases: MUMU-DADA/dsh-cot-translate
Release list
v0.2.0 — 隐私优先的在线翻译开关
dsh-cot-translate v0.2.0
隐私优先的在线翻译开关,兼容 DSH 0.2.1-rc.2。
重要变更
- 在线翻译(Google)改为显式开关,默认关闭。 本地模型不可用时直接显示原文,不再静默把思考内容发给第三方。
- 设置页新增「允许在线翻译(Google)」;只有手动开启后,本地失败才会把自然语言片段发给 Google。
- 兼容 DSH
0.2.0-rc.2/0.2.1-rc.2,peer 范围放宽到^0.2.0-rc.2 || ^0.2.1-rc.2。 - 增加与
@changfenhuang/dsh-genui的共存回归测试(对方只接管dsh-ui代码块 / toolview,不替换assistant-step)。 - 四语 README、ARCHITECTURE / DECISIONS / ROADMAP 更新,新增 ADR-023;9 种界面语言 64/64 key。
安装
下载 dsh-cot-translate-0.2.0.tgz,然后:
dsh plugin --profile web add <path-to-downloaded-tgz>
安装后完整重启 DSH Desktop。压缩包包含编译后的插件代码与类型声明;模型权重和 llama.cpp 二进制需另行下载。源码安装需要 Node.js ^22.19.0 或 >=24,npm ci 会自动构建。
隐私边界
默认只在本机推理,翻译请求不出本机。只有显式开启「允许在线翻译(Google)」后,本地模型不可用时才会把自然语言片段发送给 Google。客户端仍会剥离代码块、路径、URL 与函数调用,但这不是通用的秘密脱敏保证。译文缓存只存译文,原文不落盘,可一键清空。
验证
- 74 项自动化测试通过(含默认不发起在线请求、fail-open、代码保护、缓存、i18n、HTTP E2E)。
tsc --noEmit通过。- 9 种 UI 语言字典 64/64 key。
- 发布 tarball 已构建并检查内容(版本
0.2.0,53 个文件,含lib/、四语 README 与文档)。
v0.1.0 — Multilingual reasoning translation
dsh-cot-translate v0.1.0
首次公开发布 / First public release.
Features
- Display-only, paragraph-aligned reasoning translation without changing conversation history or model context.
- Nine UI languages and four README languages; 33+ translation target languages.
- Local llama.cpp / optional Ollama, optional conversation-model translation, and Google fallback.
- Model downloads, configurable local port, and a 50 MB translation cache.
Install
Download dsh-cot-translate-0.1.0.tgz from this release, then run:
dsh plugin --profile web add <path-to-downloaded-tgz>
Restart DSH Desktop completely. The tarball contains compiled plugin code and type declarations; model weights and llama.cpp binaries are separate downloads. Source installations require Node.js ^22.19.0 or >=24; npm ci builds the plugin automatically.
Compatibility baseline: DSH 0.2.0-rc.2 + Cordis 4.0.4 (DSH Desktop 0.5.23).
Privacy and scope
Google fallback sends natural-language translation segments to Google when earlier providers are unavailable. Pattern-based code/path filtering is not a general secret-redaction guarantee. Cached translations may contain sensitive content; the cache can be cleared in settings. No telemetry is added.
The plugin is MIT-licensed; models and runtime binaries retain their upstream licenses. See THIRD_PARTY_LICENSES.md.
Full interactive Desktop language-switching validation is still pending; automated rendering and integration checks are listed below. This release does not claim macOS/Linux live-app validation.
Validation
- TypeScript check and production build passed.
- 72 automated tests passed, including runtime recovery, invalid-body rejection, log redaction, cache clearing, and text preservation regressions.
- All nine UI dictionaries cover 62/62 keys.
- Clean source installation (
npm ci) and built entry-point loading passed. - Release tarball installed successfully in an empty consumer project; all declared entry points exist, and the host entry point loads. Packaged-content privacy scan passed.