Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Merge remote-tracking branch 'origin/dev' into feat/desktop-app-profile

Fei2411116dce47b099
diff --cc app/README.md
index 1a9f9e6d,78f28600..95a10282
--- a/app/README.md
+++ b/app/README.md
@@@ -52,14 -38,12 +52,15 @@@ Never point `DS_BOT_HOME` at `~/.dsh` o
| File | What it does |
|---|---|
- | `src/main.mjs` | Main process: one instance, the `dsh-app://app` scheme (the window's build, and `/api/` forwarded to the Host), the window |
+ | `src/main.mjs` | Main process: one instance, the `dsh-app://app` scheme (the window's build, and `/api/` forwarded to the Host), the window. The window has no title bar: a band along the top of the page moves it, and the system's window buttons sit in that band |
| `src/host-process.mjs` | Starts the Host in Electron's Node mode and owns its exit |
-| `src/host.mjs` | The Host: creates the profile `ds-bot` (`dsh-base`, `dsh-web-app`, `ds-bot`), boots it with `runProfile()` on a loopback port and reports the launch URL |
+| `src/host.mjs` | The Host: boots the profile with `runProfile()` and reports the launch URL |
+| `src/profile.mjs` | The profile: its name, its bundles, and its creation and update |
+| `engine/` | The bundle `deepseek-bot-engine`: `cordis.patch.yml`, `preset-standard.patch.yml`, and `index.js`, which trades the launch token for the Host cookie |
+| `test/` | `npm test`: the composition of the profile |
| `src/web.mjs` | The window's files, the launch-token cookie exchange and the request forwarding |
- | `ui/` | The window: React, built with Vite (`vite.config.js`) into `ui/dist`. It uses ds-bot's `api/bot` channel and its live feed `api/bot/feed`, and takes the Bot marks, themes and copy from `../ds-bot/src/client/` |
+ | `ui/` | The window: React, built with Vite (`vite.config.js`) into `ui/dist`. It draws the plugin's own Bot views from `../ds-bot/src/client/` (sidebar, chat rows, docks, dialogs and their stylesheets) and puts its own Markdown in place of DSH's. It uses ds-bot's `api/bot` channel and its live feed `api/bot/feed` |
+ | `assets/` | The app icon: `icon.svg`, `icon.png` (1024 px) and `icon.ico` (Windows, 16 to 256 px). `npm run icon` (`scripts/icon.mjs`) draws them again from the Main Bot's whale in `../ds-bot` |
The Host installs plugins with the app's own pnpm (`node_modules/pnpm`).
diff --cc app/package.json
index 97a62f49,ef4803c3..a5ab863c
--- a/app/package.json
+++ b/app/package.json
@@@ -11,7 -11,7 +11,8 @@@
"build": "vite build",
"start": "vite build && electron .",
"shot": "node scripts/shot.mjs",
- "icon": "node scripts/icon.mjs"
++ "icon": "node scripts/icon.mjs",
+ "test": "node --test \"test/*.test.mjs\""
},
"dependencies": {
"@deepseek-ai/dsh": "0.2.0-rc.2",
diff --cc docs/plans/2026-10-16-desktop-app.md
index 6a9e1e4b,72c01a3f..0dd8f225
--- a/docs/plans/2026-10-16-desktop-app.md
+++ b/docs/plans/2026-10-16-desktop-app.md
@@@ -24,8 -24,11 +24,12 @@@
- 插件版和桌面应用用同一份 `ds-bot`,插件版不变。
- 安装包和 `ds-bot` 用同一个版本号。
+- 引擎的 profile 由三个 bundle 叠成:DSH 的 `dsh-base`、桌面应用的引擎层 `deepseek-bot-engine`、`ds-bot`,用户装的插件排在后面。引擎层只放引擎用的东西:给 ds-bot 接口用的本机传输、ds-bot 用到的宿主服务、Bot 会话用的 `standard` 预设(不带目标)。DSH 网页前端的部分一个都不加载。每次启动时,引擎把这三个 bundle 排回最前面。
+ ### 界面
+
+ - Bot 详情里显示这个 Bot 当前对话的轮数、输出速度(tok/s)、缓存命中和上下文用量。插件版里这一行在 DSH 输入框下面的状态栏,窗口里没有这个状态栏。
+
### DSH 版本
- 安装包锁定一个 DSH 版本,只跟 DSH 的 rc 版本,不跟 alpha 版本。现在是 0.2.0-rc.2。
@@@ -63,18 -66,23 +67,25 @@@
- 不 fork DSH,不给 DSH 打补丁。
- 不把 DSH 的网页前端当作 Bot 界面的底层,也不原样加载 DSH 的界面插件。
- 不做 npm 安装的桌面应用,也不做在 DSH Desktop 里一键安装。
- - 桌面应用里没有 DSH 的 Agent 模式。
- 第一版不带 Office 技能。
+ ## 暂时不做
+
+ 以后再看要不要加。插件版里照旧都有。
+
+ - DSH 的右侧栏(文件、终端)。
+ - 设置里的「经典 Agent 模式」(切到 DSH 自己的界面)。
+
## 已知限制
- - 窗口里目前只有团队列表和 Bot 的私聊:能选模型、聊天、看回复一边写一边出来、回答提问卡片。群聊、Bot 详情和设置、记忆、Markdown 排版、工具卡片、首次启动和导入、DeepSeek 账号登录、每个 Bot 的浏览器、更新和安装包还没有。模型和密钥目前用环境变量,或数据位置里的 `.env`、`.credentials.yaml` 设置。
+ - 窗口里还没有:群聊的历史消息、工具卡片和审批、Bot 详情里的轮数和用量、首次启动和导入、DeepSeek 账号登录、每个 Bot 的浏览器、更新和安装包。侧栏每一行的最新一句只显示打开窗口以后的新消息。插件版里打开 DSH 自己界面的入口(连接插件、管理模型、Harness 设置,「+」里的添加文件和引用对话)窗口里也没有。模型和密钥目前用环境变量,或数据位置里的 `.env`、`.credentials.yaml` 设置。
- 不签名:Windows 第一次运行会弹出 SmartScreen 警告,macOS 要在系统设置里手动放行。
- 会话里记着工作文件夹的完整路径,不能改。所以导入和搬工作文件夹都要换段。
+- 安装的 `@deepseek-ai/dsh` 包带着 DSH 的网页前端,所以安装包里仍有这些文件,只是不加载。
## 变更
- 2026-10-17:电脑操作和浏览器操作的提供方由用户选,PR #278。
- - 2026-10-17:窗口换成自己的界面(团队列表和 Bot 的私聊),PR #279。
+ - 2026-10-17:窗口换成自己的界面,用插件版的 Bot 界面画:团队侧栏、Bot 的私聊、详情、搜索、新建和设置;窗口无边框,PR #279。
+ - 2026-10-17:Bot 详情要显示轮数、tok/s、缓存命中和上下文;DSH 的右侧栏和「经典 Agent 模式」暂时不做,PR #279。
+- 2026-10-17:引擎的 profile 换成桌面应用自己的组合,不再加载 DSH 的网页前端。