OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Hemuchuan/dsh-bilingual
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DeepSeek Harness 桌面端(DSH Desktop) 的聊天界面加一个「双语」开关:开启后,助手回复的每一段原文下面自动追加另一种语言(逐段翻译 / 中英对照)。
适用平台: DSH Desktop(Windows / macOS / Linux 的桌面应用)。插件安装到
profiles/desktop;同一套 Web GUI 架构下也可用于dsh web,当前主要在桌面端验证。

3. 重要物理性质 3. Important physical properties);### 3. 重要物理性质 3. Important physical properties
- **标量性**:磁通量是标量,但有正负之分。正负号取决于所选曲面的法线方向。
**Scalar nature**: Magnetic flux is a scalar quantity, but it can be positive or negative.
The sign depends on the direction of the normal to the selected surface.
- **高斯磁定律**:通过任意闭合曲面的净磁通量永远等于零。
**Gauss's Law of Magnetism**: The net magnetic flux through any closed surface is always zero.
已发布为 npm 包 dsh-bilingual@0.1.7:
dsh plugin --profile desktop add dsh-bilingual
也可以在 DSH 的插件市场里搜索 dsh-bilingual 或 逐段翻译。
本插件也可以按「本地 link」方式装进桌面 profile:
# 1. 退出 DSH(或装完后再重启)
# 2. 在插件目录执行:
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\bin\node.exe" install.mjs --profile desktop
# 3. 重新打开 DSH
install.mjs 会做三件事(都会先备份 package.json):
profiles/<profile>/package.json 的 dependencies 里加
"dsh-bilingual": "link:<本目录>";dsh.profile.bundles 里加 "dsh-bilingual";profiles/<profile>/node_modules/dsh-bilingual 建一个指向本目录的 junction。也可以用 DSH 的插件管理器以「本地链接」方式安装;本质是同样三件事。
DEEPSEEK_API_KEY(~/.dsh/.credentials.yaml 里的凭据),通常不用再填;sk-...,点「保存」,再点「测试连接」;DEEPSEEK_API_KEY > DSH 凭据;~/.dsh/dsh-bilingual.json(DSH_HOME 下),不会写进会话,也不会回传到浏览器;deepseek-chat,Base URL 默认 https://api.deepseek.com,可改成任意 OpenAI 兼容端点。sessionStorage,只对当前标签页生效;lib/client.js)以 priority: -10 影子注册
conversation.chat.node 的 assistant-step 渲染器;正文块从数据层拿原始 Markdown,
经 lib/markdown.cjs 的行级切分后,把译文插回同一份 Markdown,再交给官方
MarkdownText 渲染。标题/列表/引用因此保留原结构,列表译文仍在同一个 <li> 里。lib/index.js)注册同源路由 /api/dsh-bilingual/*,代理 DeepSeek
chat/completions:Key 只在服务端,浏览器不直连;批量请求、超时、错误归一化都在这里。lib/markdown.cjs)负责切分、语言判断、译文清洗与拼装,有独立单测。# 构建:把 markdown.cjs 内联进 client.template.js → client.js
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\bin\node.exe" build.mjs
# 测试(Markdown 切分/拼装、宿主路由、客户端 bundle 注册)
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\bin\node.exe" --test tests/*.test.mjs
修改 lib/client.js 或 lib/index.js 后需要重启 DSH;只改客户端 bundle 时,重启后刷新页面即可。
node.data.blocks / MarkdownText,需要跟着适配;渲染抛错时会退回纯文本,不会白屏。profiles/desktop/package.json:从 dependencies 删掉 dsh-bilingual,从
dsh.profile.bundles 删掉 dsh-bilingual;profiles/desktop/node_modules/dsh-bilingual(junction,不删源码);可选:删除 ~/.dsh/dsh-bilingual.json(会一并删掉保存的 Key)。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: rag。