Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

feat(preset): 新增预设 billion-context(非推荐、不默认勾选)

hairyfe4a432c3ff6a
diff --git a/README.en.md b/README.en.md
index 078ab8a2..160900b9 100644
--- a/README.en.md
+++ b/README.en.md
@@ -59,6 +59,7 @@ Plugins offered in the first-run wizard; select what you need and install on dem
- [DSH Rewind](https://github.com/SiriLee/dsh-rewind) — in-window conversation rewind that never forks a new session, plus a lightweight workspace backup that restores files along with the rewind (Recommended)
- [DSH Bridge](https://github.com/wenbin-wb/dsh-bridge) — LAN QR-code connect, Cloudflare and self-hosted public tunnels, plus WeChat / QQ / Feishu / Telegram bot conversations so you can keep working on your local Harness from anywhere; includes built-in access authentication and tamper safeguards (Recommended)
- [DSH-IM](https://github.com/xmanrui/dsh-im) — connect WeChat, Feishu, DingTalk, WeCom, QQ, Slack, Telegram, Discord, WhatsApp, iMessage and more to your local Harness, managed from an "IM" sidebar panel (Recommended)
+- [Billion Context](https://github.com/ranxianglei/billion-context) — context compression as a native DSH plugin: folds conversation history as it grows so long sessions keep running within a small context window, restoring folded content on demand via `decompress` / `search_context` (not pre-checked)
> The preset list is maintained by the desktop project. To request a new or updated preset, open an issue in [deepseek-harness-desktop](https://github.com/dsh-tauri/deepseek-harness-desktop/issues).
diff --git a/README.md b/README.md
index a5bb6be5..d8304a6d 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,7 @@
- [DSH Rewind](https://github.com/SiriLee/dsh-rewind) — 同窗口内对话回退,从不新建会话分支;自带轻量工作区备份,回退时可一并还原文件(推荐)
- [DSH Bridge](https://github.com/wenbin-wb/dsh-bridge) — 手机扫码局域网直连、Cloudflare 与自建公网隧道,以及微信 / QQ / 飞书 / Telegram 机器人对话,人不在电脑前也能接着用本机 Harness;内置访问安全认证与防篡改守护(推荐)
- [DSH-IM](https://github.com/xmanrui/dsh-im) — 让微信、飞书、钉钉、企业微信、QQ、Slack、Telegram、Discord、WhatsApp、iMessage 等渠道接入本机 Harness,并在左侧栏「IM」面板中统一管理(推荐)
+- [Billion Context](https://github.com/ranxianglei/billion-context) — 以原生 DSH 插件形式做上下文压缩:会话增长时自动折叠历史,小上下文窗口也能长时间连续工作,并可按需 `decompress` / `search_context` 还原折叠内容(默认不勾选)
> 预设插件清单由桌面端维护。为避免不稳定的预设插件导致软件异常,如需新增或更新预设,请在 [deepseek-harness-desktop/issues](https://github.com/dsh-tauri/deepseek-harness-desktop/issues) 提起请求。
diff --git a/src-tauri/resources/manifest.jsonc b/src-tauri/resources/manifest.jsonc
index bc0e8943..dc0493aa 100644
--- a/src-tauri/resources/manifest.jsonc
+++ b/src-tauri/resources/manifest.jsonc
@@ -212,6 +212,16 @@
{ "version": "^4.29.0", "dsh": "^0.1.7-rc.1" },
{ "version": "^4.30.0", "dsh": "^0.2.0-rc.1" }
]
+ },
+ {
+ "id": "billion-context",
+ "spec": "billion-context",
+ "name": "Billion Context",
+ "description": "Context compression for DeepSeek Harness: folds conversation history as it grows so long sessions keep running within a small context window, and restores folded content on demand via decompress / search_context.",
+ "repo": "https://github.com/ranxianglei/billion-context",
+ "recommended": false,
+ "checked": false,
+ "version": "latest"
}
]
},
diff --git a/test/preinstall-uncheck.test.ts b/test/preinstall-uncheck.test.ts
index e917cd2f..3d403160 100644
--- a/test/preinstall-uncheck.test.ts
+++ b/test/preinstall-uncheck.test.ts
@@ -68,6 +68,17 @@ describe('unchecked preset suppresses first-run preselection', () => {
})
})
+// ── Suite B3 — 非推荐预设既不标推荐也不预选(behavior) ────────────────────────
+// 缺省语义:recommended / checked 未声明即为 false,故断言按 `?? false` 取值。
+describe('non-recommended preset stays fully opt-in', () => {
+ it('declares Billion Context without the recommended chip and without preselecting it', () => {
+ const entry = readManifest().plugins.preset.find(p => p.id === 'billion-context')
+ expect(entry).toBeDefined()
+ expect(entry?.recommended ?? false).toBe(false)
+ expect(entry?.checked ?? false).toBe(false)
+ })
+})
+
// ── Suite D — store empty-selection guard (behavior, regression lock) ────────
// vi.mock 工厂会被提升到文件顶部,必须先经 vi.hoisted 声明模块级 mock 状态,
// 否则工厂执行时引用未初始化的绑定(Vitest 4.x 语义)。