DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-cot-translation-reader

L

dsh-cot-translation-reader

Discovered

Show the official COT machine translation inside dsh-better-display's reading view · 让阅读页显示官方「思考过程机器翻译」的译文

Machine translated

dsh-cot-translation-reader

在 dsh-better-display 的「阅读」页签里显示 DeepSeek Harness 官方「思考过程机器翻译」的译文。

官方 COT 翻译组合包把译文注册在 conversation.chat.reasoning.body 插槽上,而阅读页用自己的组件渲染思考,所以那个插槽在阅读页里永远不会渲染——装了翻译包看起来却像没翻译。本插件补上这段适配:注册到 reading view 的 dsh-better-display.text-transform 缝,把译文交给阅读页绘制。

依赖

组件作用
dsh-better-display ≥ 0.3.9提供 dsh-better-display.text-transform 缝
@deepseek-ai/dsh-experimental-cot-translation-bundle提供 cotTranslation 服务与翻译设置(翻译服务、目标语言)

两个都缺任意一个时,本插件安静地不生效,不报错、不改界面。

安装

# npm(推荐)
pnpm add dsh-cot-translation-reader

# 从 GitHub 安装(跟踪 main,不用等发布)
pnpm add github:LingMoe404/dsh-cot-translation-reader

# 本地目录
pnpm add file:../dsh-cot-translation-reader

装完重启 DSH(Desktop 从托盘完全退出;Web Host 重开一次),然后把 dsh-cot-translation-reader 加进 profile package.json 的 dsh.profile.bundles(插件管理器安装时会自动写)。

行为

  • 只改显示:会话记录、折叠、复制回答拿到的都是原文。
  • 流式生成中的最后一段保持原文,只翻译已经完成的段落。
  • 翻译失败时保留原文并在控制台 warn,不会打断阅读。
  • 逐段请求,单次长度遵守 Host 返回的 maxTextChars;同一段译文不会重复请求。
  • 关闭插件或卸载时中止进行中的请求。

发布

推一个 v* tag 就会发布:.github/workflows/publish.yml 通过 npm **Trusted Publishing(OIDC)**换取短期凭据,仓库和本机都不保存任何 npm token,也不需要动态码。

git tag -a v0.1.2 -m "v0.1.2"
git push origin v0.1.2

开发

npm ci
npm run typecheck
npm test
npm run build     # 需要 tsdown + 内置的 tools/client-build.js

tools/client-build.js 是从 DeepSeek Harness 公共构建产物里复刻的客户端打包配方(见文件头注释),因此构建不需要完整的 Harness 源码树。

相关

许可

MIT

Comments

Loading…

Similar plugins

dsh-cot-translate

by MUMU-DADA

DSH 思维链/推理翻译插件:把 reasoning 实时翻译成中文,本地模型优先,原文与上下文不变 | Display-layer reasoning translation for DeepSeek Harness, local-first, 9 UI languages

Development & InfrastructureManifest valid

★ 1

MIT

TypeScript

Oct 20, 2026

dsh plugin --profile web add dsh-cot-translate

by Eyeing0721

DSH Web 插件:展开英文思考块即时呈现中文译文,不改动任何会话原文。

UI & ExperienceDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 2

MIT

JavaScript

Sep 18, 2026

dsh plugin --profile web add dsh-cot-en2cn

Prompt, reasoning and response translation for DeepSeek Harness.

Tools & CapabilitiesManifest valid

★ 0

MIT

TypeScript

dsh plugin --profile web add dsh-prompt-translation

Adds a Reading tab to the DSH web client that shows process steps and live reasoning in source order, collapses successful turns to the final answer, and keeps the original tabs, composer, and tooling

UI & ExperienceManifest valid

★ 2

NOASSERTION

TypeScript

dsh plugin --profile web add dsh-clearview

by mtdx2001

Display-layer translation for the DeepSeek Harness Web UI: thinking chain, task cards and answers in 8 languages - pure display layer, originals untouched, local-first with failover.

Manifest valid

★ 0

MIT

JavaScript

Aug 30, 2026

dsh plugin --profile web add dsh-think-translate

by SHAN5246992ZHUI

Select text in any Windows app and get a translation-only always-on-top card. DSH plugin (Windows only, zero deps, no build).

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 1

NOASSERTION

JavaScript

Oct 24, 2026

dsh plugin --profile web add dsh-select-translate