personal-bot 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTEXT.md +40 -59
- package/README.md +59 -119
- package/README.zh-CN.md +63 -117
- package/docs/README.md +21 -19
- package/docs/agent-collaboration.md +9 -11
- package/docs/architecture-guidelines.md +2 -2
- package/docs/capability-design.md +4 -12
- package/docs/dsh.en.md +48 -42
- package/docs/dsh.md +30 -92
- package/docs/file-storage.md +2 -2
- package/docs/history.md +4 -4
- package/docs/installation-design.md +54 -199
- package/docs/model-context.md +23 -37
- package/docs/model-instruction-guidelines.md +2 -2
- package/docs/release.md +5 -5
- package/docs/technical-design.md +5 -3
- package/lib/common/typebox.LICENSE +23 -0
- package/lib/common/typebox.js +4740 -0
- package/lib/extension/dsh/command.js +1 -1
- package/lib/extension/dsh/management.js +1 -1
- package/lib/tools/agents/contract.js +1 -1
- package/lib/tools/agents/dsh-contract.js +1 -1
- package/lib/tools/history/contract.js +1 -1
- package/lib/tools/teams/contract.js +1 -1
- package/npm-shrinkwrap.json +5 -2
- package/package.json +99 -31
- package/python/README.md +4 -4
- package/resources/prompts/workspace.md +3 -3
- package/scripts/README.md +16 -15
- package/docs/dsh-implementation-plan.md +0 -160
- package/docs/dsh-support-proposal.md +0 -298
- package/docs/subagent-upgrade-proposal.md +0 -357
- package/docs/validation.md +0 -189
package/docs/dsh.en.md
CHANGED
|
@@ -4,43 +4,24 @@ English | [简体中文](dsh.md)
|
|
|
4
4
|
|
|
5
5
|
Personal Bot uses dsh's native Web interface for workspace materials, specialists, teams, history, and Python preparation. Pi and dsh share materials, roles, methods, and collaboration rules while owning their own native sessions, model settings, authentication, and MCP configuration.
|
|
6
6
|
|
|
7
|
-
Install and update with
|
|
8
|
-
|
|
9
|
-
This guide separates terminal commands from `/pbot` commands entered in chat. After an upgrade, consult the installed version's help. Completed checks and remaining real-model acceptance work are recorded in the [implementation record](dsh-implementation-plan.md) and [validation](validation.md).
|
|
7
|
+
Install and update with the latest dsh release. The minimum host version is `0.2.2-rc.1`. This guide separates terminal commands from `/pbot` chat commands; consult the installed version's help after updates.
|
|
10
8
|
|
|
11
9
|
## Installation and first start: CLI and browser
|
|
12
10
|
|
|
13
|
-
You need Node.js 24.9+, npm, pnpm, and Python 3.11+ with venv/ensurepip.
|
|
14
|
-
|
|
15
|
-
In a terminal, check the requirements and install the latest dsh and pnpm, which native plugin management requires:
|
|
11
|
+
You need Node.js 24.9+, npm, pnpm, and Python 3.11+ with venv/ensurepip. Follow dsh's engines if a newer release raises its runtime requirement. Install through native profiles and plugin management:
|
|
16
12
|
|
|
17
13
|
```bash
|
|
18
|
-
node --version
|
|
19
|
-
npm --version
|
|
20
|
-
python3 --version
|
|
21
14
|
npm view @deepseek-ai/dsh@latest version engines --json
|
|
22
15
|
npm install -g @deepseek-ai/dsh@latest pnpm@latest
|
|
23
|
-
|
|
24
|
-
pnpm --version
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Run this only when first creating a separate `pbot` Web profile:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
16
|
+
# First creation only; this replaces an existing profile of the same name.
|
|
30
17
|
dsh --profile pbot --from-default-profile web --dump-config
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
`pbot` is a profile name you choose; use the same name in subsequent commands. `--from-default-profile web` **replaces an existing profile of the same name**. Here, `--dump-config` prints the configuration and exits after creation; it does not make the entire command read-only. Do not repeat it during updates.
|
|
34
|
-
|
|
35
|
-
Install Personal Bot and start the profile:
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
18
|
dsh plugin --profile pbot add personal-bot@latest
|
|
39
|
-
dsh plugin --profile pbot list personal-bot --depth 0
|
|
40
19
|
dsh --profile pbot
|
|
41
20
|
```
|
|
42
21
|
|
|
43
|
-
|
|
22
|
+
`pbot` is a profile name you choose; use it consistently. Do not repeat `--from-default-profile` when updating an existing profile.
|
|
23
|
+
|
|
24
|
+
dsh starts the Web server and normally opens a browser. Over SSH or with `--no-open`, open the printed URL yourself; keep its access token private. Select a workspace and main session, configure models and authentication, then enter in chat:
|
|
44
25
|
|
|
45
26
|
```text
|
|
46
27
|
/pbot status
|
|
@@ -48,9 +29,9 @@ dsh starts the Web server, prints a URL containing an access token, and normally
|
|
|
48
29
|
/pbot
|
|
49
30
|
```
|
|
50
31
|
|
|
51
|
-
`status`
|
|
32
|
+
`status` inspects state; optional `init` creates missing material directories and root AGENTS while preserving existing files; bare `/pbot` opens management. Loading the plugin prepares the user's shared Python venv. If preparation fails, repair the prerequisites and run `/pbot python setup`.
|
|
52
33
|
|
|
53
|
-
One profile can manage multiple workspaces.
|
|
34
|
+
One profile can manage multiple workspaces. Choose a directory through the native workspace picker; the default is the system Documents directory. pbot binds to the root at main-session creation. Later cwd changes affect relative path resolution.
|
|
54
35
|
|
|
55
36
|
## Daily startup and terminal commands
|
|
56
37
|
|
|
@@ -87,7 +68,7 @@ The three `--dump-*` options are mutually exclusive. Configuration output may co
|
|
|
87
68
|
| `--trusted-host app.example` | Add a hostname or host:port accepted by the native Host/Origin check |
|
|
88
69
|
| `--tls-cert /path/server-chain.pem --tls-key /path/server-key.pem` | Supply a certificate chain and unencrypted PEM private key together to enable listener HTTPS |
|
|
89
70
|
|
|
90
|
-
For
|
|
71
|
+
For proxy, network access, and authentication settings, see the [native dsh Web documentation](https://github.com/deepseek-ai/deepseek-harness/tree/main/packages/bundle/web-app).
|
|
91
72
|
|
|
92
73
|
## Updating, inspecting, and removing plugins
|
|
93
74
|
|
|
@@ -102,7 +83,7 @@ dsh plugin --profile pbot list personal-bot --depth 0
|
|
|
102
83
|
dsh --profile pbot
|
|
103
84
|
```
|
|
104
85
|
|
|
105
|
-
`update personal-bot --latest` selects only Personal Bot for an update to the current `latest`, even when that is outside the saved version range. Without `--latest`, update respects the existing declaration.
|
|
86
|
+
`update personal-bot --latest` selects only Personal Bot for an update to the current `latest`, even when that is outside the saved version range. Without `--latest`, update respects the existing declaration. After updating, check the version and environment with `/pbot status`. Previous specialists need explicit resumption. Disabling or reloading the plugin can also release specialists.
|
|
106
87
|
|
|
107
88
|
Package arguments after `dsh plugin --profile pbot` are forwarded to pnpm. Select the correct profile:
|
|
108
89
|
|
|
@@ -137,17 +118,42 @@ dsh plugin --profile pbot add /absolute/path/to/personal-bot-<version>.tgz
|
|
|
137
118
|
dsh --profile pbot
|
|
138
119
|
```
|
|
139
120
|
|
|
140
|
-
|
|
121
|
+
Rebuild and install a new tarball to update a local source. To switch to the registry, run `dsh plugin --profile pbot add personal-bot@latest`.
|
|
141
122
|
|
|
142
123
|
## Desktop application
|
|
143
124
|
|
|
144
|
-
In DeepSeek Harness,
|
|
125
|
+
In DeepSeek Harness, install and enable `personal-bot@latest` through **Plugins → Add plugin**, or enter an absolute local tarball path. Desktop provides its runtime and package manager. Update the host and plugins through the application.
|
|
126
|
+
|
|
127
|
+
Desktop uses its own desktop profile, separate from the CLI's pbot profile. It reads the login shell environment, where Python 3.11+ must be on PATH. After installation, select a workspace and main session and inspect the environment with `/pbot status`.
|
|
128
|
+
|
|
129
|
+
## Task Conductor
|
|
130
|
+
|
|
131
|
+
Use optional `task-conductor-plugin` for schedules, recurring workflows, and DAGs. Install the plugin and service separately; configuration and updates follow the [upstream integration guide](https://github.com/realqiyan/task-conductor/blob/master/docs/host-integrations.md).
|
|
132
|
+
|
|
133
|
+
The dsh integration is part of the unpublished Task Conductor 0.1.6 candidate. Until publication, build the plugin and service from the same source:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
cd /absolute/path/to/task-conductor
|
|
137
|
+
npm ci --ignore-scripts
|
|
138
|
+
npm pack
|
|
139
|
+
npm run pack:plugin
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Install using the actual generated tarball paths:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
dsh plugin --profile pbot add /absolute/path/to/task-conductor-plugin-<version>.tgz
|
|
146
|
+
npm install -g /absolute/path/to/task-conductor-<version>.tgz
|
|
147
|
+
task-conductor setup
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
For an existing service, follow the [upstream upgrade steps](https://github.com/realqiyan/task-conductor/blob/master/docs/upgrades.md) and preserve its service directory and data. Desktop users install the same plugin tarball through the application's Plugins page.
|
|
145
151
|
|
|
146
|
-
|
|
152
|
+
Restart the host and read `/using-task-conductor` in the main session. Use `/task-conductor status` to inspect the connection and `/task-conductor connect` after configuration repairs. The plugin creates a native MCP connection; adjust any existing connection with the same name through the upstream guide.
|
|
147
153
|
|
|
148
|
-
|
|
154
|
+
Notifications return to the session that submitted the task. Service tasks continue when pages or hosts close. Query and stop the current run and future recurrences separately.
|
|
149
155
|
|
|
150
|
-
|
|
156
|
+
To execute nodes with dsh, follow the upstream [custom ACP instructions](https://github.com/realqiyan/task-conductor/blob/master/plugin/skills/using-task-conductor/references/custom-acp.md). Register `dsh-acp` with dsh's canonical absolute executable path and `["--profile", "acp"]` arguments. Configure node models, tools, authentication, and Python separately.
|
|
151
157
|
|
|
152
158
|
## Management interface and lifecycle
|
|
153
159
|
|
|
@@ -164,9 +170,9 @@ Wide windows use side navigation; narrow windows use top navigation. Specialists
|
|
|
164
170
|
|
|
165
171
|
Pages query native Remotes without starting specialists, acknowledging model notifications, or generating summaries. Human commands retain native audit records. Closing the panel cancels uploads not yet accepted. Closing, refreshing, or reconnecting a page does not stop accepted work. If an outcome is unclear, inspect status and records before taking further action.
|
|
166
172
|
|
|
167
|
-
Disabling the server component, releasing its parent Agent, or fully quitting Desktop pauses scheduling and releases the specialists it owns. Reopening a page, restarting the host, or enabling the plugin reads saved records; continuing work requires explicit resumption.
|
|
173
|
+
Disabling the server component, releasing its parent Agent, or fully quitting Desktop pauses scheduling and releases the specialists it owns. Reopening a page, restarting the host, or enabling the plugin reads saved records; continuing work requires explicit resumption.
|
|
168
174
|
|
|
169
|
-
The main session needs a one-time native approval for write, edit, or apply_patch outside the original workspace. Those tools reject such changes from specialists.
|
|
175
|
+
The main session needs a one-time native approval for write, edit, or apply_patch outside the original workspace. Those tools reject such changes from specialists. Bash, Python, MCP, and extensions use actual account permissions; see [tools and execution](capability-design.md).
|
|
170
176
|
|
|
171
177
|
## Chat command reference
|
|
172
178
|
|
|
@@ -215,7 +221,7 @@ A start without initial text or files creates an idle specialist and makes no mo
|
|
|
215
221
|
| `tools` | A nonempty array of native capability tool names, not the `run_code` transport name; team members must retain `pbot_team_message` |
|
|
216
222
|
| `noSkills` | Defaults to false; true disables model skill discovery and the skill tool; explicit user skill commands retain native behavior |
|
|
217
223
|
|
|
218
|
-
Specialist creation and resume apply the parent's native preset, including its file tools, AGENTS files, and skill discovery, before applying specialist tool restrictions.
|
|
224
|
+
Specialist creation and resume apply the parent's native preset, including its file tools, AGENTS files, and skill discovery, before applying specialist tool restrictions. An explicit complete persona supplies its full behavior requirements through the host.
|
|
219
225
|
|
|
220
226
|
Pi-only `noExtensions`, `noPromptTemplates`, and `noContextFiles` are rejected. `send.delivery` is `steer` by default, to supplement current work, or `followUp`, for after current work. `send/resume` do not accept files, prompts, or model-change options. A team reservation blocks private send; pause the team and let in-flight work finish first.
|
|
221
227
|
|
|
@@ -234,7 +240,7 @@ After confirming that the specialist has stopped, resume with a new request:
|
|
|
234
240
|
/pbot agent {"action":"resume","agentId":"AGENT_ID","message":"Check the new material and report only what changed."}
|
|
235
241
|
```
|
|
236
242
|
|
|
237
|
-
Report read selects the latest cycle by default. Offset defaults to 0; limit defaults to 16000, with a range of 1–16000 UTF-16 code units. For subsequent pages, keep the returned `cycle.cycleId` and pass `nextOffset` as offset; null means the current report is fully read.
|
|
243
|
+
Report read selects the latest cycle by default. Offset defaults to 0; limit defaults to 16000, with a range of 1–16000 UTF-16 code units. For subsequent pages, keep the returned `cycle.cycleId` and pass `nextOffset` as offset; null means the current report is fully read. Inspect `cycle.state` and the report for work results. Human reads preserve the model's completion notification.
|
|
238
244
|
|
|
239
245
|
## Human chat and full records
|
|
240
246
|
|
|
@@ -245,7 +251,7 @@ Report read selects the latest cycle by default. Offset defaults to 0; limit def
|
|
|
245
251
|
/pbot records {"agentId":"AGENT_ID","offset":0,"limit":30}
|
|
246
252
|
```
|
|
247
253
|
|
|
248
|
-
Relative chat file paths use the specialist's cwd fixed at creation. Choose either server files or local input attachments, up to 32 per request. Image formats and byte limits follow native admission rules. Use native input controls for uploads; do not send a JSON `attachments` field. Chat automatically pauses the specialist's team first and rejects input if pausing fails. After a successful pause, it can steer in-flight work. A queued result means only that the input was queued. Human intervention creates interactive/mixed cycles that are not automatically published.
|
|
254
|
+
Relative chat file paths use the specialist's cwd fixed at creation. Choose either server files or local input attachments, up to 32 per request. Image formats and byte limits follow native admission rules. Use native input controls for uploads; do not send a JSON `attachments` field. Chat automatically pauses the specialist's team first and rejects input if pausing fails. After a successful pause, it can steer in-flight work. A queued result means only that the input was queued. Human intervention creates interactive/mixed cycles that are not automatically published. Create a new specialist when you need a separate confidential context. The specialist must be live; resume it first if stopped.
|
|
249
255
|
|
|
250
256
|
`records` reads complete events, distinct from the final report returned by agent read. It can read stopped specialists without resuming them or acknowledging notifications.
|
|
251
257
|
|
|
@@ -295,11 +301,11 @@ Pause does not stop specialists. Wait until status reports `activeCount=0` befor
|
|
|
295
301
|
/pbot team {"action":"close","teamId":"TEAM_ID"}
|
|
296
302
|
```
|
|
297
303
|
|
|
298
|
-
There is no team resume action; continue by starting a new run with a new instruction. A paused team may still have in-flight requests. Unresolved results can include failures, unknown outcomes, or mixed input and
|
|
304
|
+
There is no team resume action; continue by starting a new run with a new instruction. A paused team may still have in-flight requests. Unresolved results can include failures, unknown outcomes, or mixed input; query reports and actual status before continuing. Only normally completed, pure team responses are automatically published. See [specialist collaboration](agent-collaboration.md) for the full rules.
|
|
299
305
|
|
|
300
306
|
`/pbot post` requires teamId and nonblank text of at most 24000 characters. Optional `replyTo` references an existing message seq, ≥1. A stored result means only that the message was saved; it does not wake a model or add a round. Closed teams reject new posts. Human authors are user; the model tool `pbot_team_message` requires `action:"post"` or `action:"read"`, and the service determines coordinator/member authorship.
|
|
301
307
|
|
|
302
|
-
Public-message read defaults afterSeq to 0 and returns later messages. Seq starts at 1 and can select one message. Offset defaults to 0; a nonzero offset requires seq. Limit defaults to 16000, range 1–16000 UTF-16 code units across message bodies, not a message count. Finish a truncated body using its seq and `nextOffset`, then continue the list with the list's `nextAfterSeq` as afterSeq.
|
|
308
|
+
Public-message read defaults afterSeq to 0 and returns later messages. Seq starts at 1 and can select one message. Offset defaults to 0; a nonzero offset requires seq. Limit defaults to 16000, range 1–16000 UTF-16 code units across message bodies, not a message count. Finish a truncated body using its seq and `nextOffset`, then continue the list with the list's `nextAfterSeq` as afterSeq.
|
|
303
309
|
|
|
304
310
|
## History queries
|
|
305
311
|
|
|
@@ -330,4 +336,4 @@ Pi maintains `.pi/pbot/history/`, and dsh maintains `.dsh/pbot/history/`. Both q
|
|
|
330
336
|
| `pbot_team_message` | read, post; read uses team-read paging, and post takes teamId/text/optional replyTo |
|
|
331
337
|
| `pbot_history` | search, read |
|
|
332
338
|
|
|
333
|
-
Models use the actual tool schemas; people use the commands or management pages above. Chat and records are human management entries without model tools of the same names.
|
|
339
|
+
Models use the actual tool schemas; people use the commands or management pages above. Chat and records are human management entries without model tools of the same names.
|
package/docs/dsh.md
CHANGED
|
@@ -4,43 +4,24 @@
|
|
|
4
4
|
|
|
5
5
|
Personal Bot 使用 dsh 原生 Web 界面,提供工作区资料、专家、团队、历史查询和 Python 环境。它与 Pi 共用资料、角色、方法及协作规则,各自管理原生会话、模型配置、认证与 MCP。
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
本文分别介绍终端命令和聊天框中的 `/pbot` 命令。升级后以实际安装版的帮助为准。已完成检查及真实模型验收缺口见[实施记录](dsh-implementation-plan.md)和[验证](validation.md)。
|
|
7
|
+
安装和更新使用 dsh 最新版,最低宿主版本为 `0.2.2-rc.1`。本文区分终端命令与聊天框中的 `/pbot` 命令,升级后可查看实际安装版的帮助。
|
|
10
8
|
|
|
11
9
|
## 安装与首次启动(CLI + 浏览器)
|
|
12
10
|
|
|
13
|
-
需要 Node.js 24.9+、npm、pnpm,以及 Python 3.11+ 和 venv/ensurepip
|
|
14
|
-
|
|
15
|
-
在终端检查要求,安装最新 dsh 与插件管理所需的 pnpm:
|
|
11
|
+
需要 Node.js 24.9+、npm、pnpm,以及 Python 3.11+ 和 venv/ensurepip。新版本的 Node.js 要求以 dsh 的 engines 为准。安装使用原生插件与 profile:
|
|
16
12
|
|
|
17
13
|
```bash
|
|
18
|
-
node --version
|
|
19
|
-
npm --version
|
|
20
|
-
python3 --version
|
|
21
14
|
npm view @deepseek-ai/dsh@latest version engines --json
|
|
22
15
|
npm install -g @deepseek-ai/dsh@latest pnpm@latest
|
|
23
|
-
|
|
24
|
-
pnpm --version
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
仅首次创建独立的 `pbot` Web profile 时执行:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
16
|
+
# 仅首次创建;会覆盖已有同名 profile
|
|
30
17
|
dsh --profile pbot --from-default-profile web --dump-config
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
`pbot` 是可自选的 profile 名称,后续命令应保持一致。`--from-default-profile web` **会覆盖已有同名 profile**;这里的 `--dump-config` 只让创建后打印配置并退出,不会把整个命令变成只读操作。更新时不要重复执行。
|
|
34
|
-
|
|
35
|
-
安装 Personal Bot 并启动:
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
18
|
dsh plugin --profile pbot add personal-bot@latest
|
|
39
|
-
dsh plugin --profile pbot list personal-bot --depth 0
|
|
40
19
|
dsh --profile pbot
|
|
41
20
|
```
|
|
42
21
|
|
|
43
|
-
|
|
22
|
+
`pbot` 是可自选的 profile 名称,后续命令应保持一致。已有 profile 更新时不要重复执行 `--from-default-profile`。
|
|
23
|
+
|
|
24
|
+
dsh 启动 Web 服务并通常自动打开浏览器。SSH 或 `--no-open` 模式下手动打开输出的 URL;该地址含访问令牌,应妥善保管。选择工作区和主会话,配置模型与认证,再在聊天框执行:
|
|
44
25
|
|
|
45
26
|
```text
|
|
46
27
|
/pbot status
|
|
@@ -48,9 +29,9 @@ dsh 启动 Web 服务,输出带访问令牌的 URL,通常会自动打开浏
|
|
|
48
29
|
/pbot
|
|
49
30
|
```
|
|
50
31
|
|
|
51
|
-
`status`
|
|
32
|
+
`status` 查看状态;`init` 可选地补建资料目录和根 AGENTS,保留已有文件;裸 `/pbot` 打开管理界面。加载插件会自动准备当前用户共享的 Python venv。准备失败时修复基础环境,再运行 `/pbot python setup`。
|
|
52
33
|
|
|
53
|
-
一个 profile
|
|
34
|
+
一个 profile 可管理多个工作区。通过原生工作区选择器指定目录;默认使用系统 Documents。pbot 绑定主会话创建时的根目录,后续 cwd 变化只影响相对路径解析。
|
|
54
35
|
|
|
55
36
|
## 日常启动与终端命令
|
|
56
37
|
|
|
@@ -87,7 +68,7 @@ dsh --profile pbot --port 8080 --no-open
|
|
|
87
68
|
| `--trusted-host app.example` | 增加原生 Host/Origin 检查允许的主机名或主机名与端口 |
|
|
88
69
|
| `--tls-cert /path/server-chain.pem --tls-key /path/server-key.pem` | 成对指定证书链与未加密 PEM 私钥,为监听服务启用 HTTPS |
|
|
89
70
|
|
|
90
|
-
|
|
71
|
+
远程部署的代理、网络访问与认证设置见 [dsh 原生 Web 文档](https://github.com/deepseek-ai/deepseek-harness/tree/main/packages/bundle/web-app)。
|
|
91
72
|
|
|
92
73
|
## 更新、查询与移除插件
|
|
93
74
|
|
|
@@ -102,7 +83,7 @@ dsh plugin --profile pbot list personal-bot --depth 0
|
|
|
102
83
|
dsh --profile pbot
|
|
103
84
|
```
|
|
104
85
|
|
|
105
|
-
`update personal-bot --latest` 只选择 Personal Bot 更新到当前 `latest`,允许越过原先保存的版本范围;不带 `--latest` 的 update
|
|
86
|
+
`update personal-bot --latest` 只选择 Personal Bot 更新到当前 `latest`,允许越过原先保存的版本范围;不带 `--latest` 的 update 受已有声明限制。更新后用 `/pbot status` 核对版本与环境,旧专家需显式恢复。停用或重载插件也可能释放专家。
|
|
106
87
|
|
|
107
88
|
`dsh plugin --profile pbot` 后面的包管理参数交给 pnpm,必须选对 profile:
|
|
108
89
|
|
|
@@ -137,25 +118,19 @@ dsh plugin --profile pbot add /absolute/path/to/personal-bot-<version>.tgz
|
|
|
137
118
|
dsh --profile pbot
|
|
138
119
|
```
|
|
139
120
|
|
|
140
|
-
|
|
121
|
+
本地来源更新时重新构建并安装 tarball。切回 registry 来源时运行 `dsh plugin --profile pbot add personal-bot@latest`。
|
|
141
122
|
|
|
142
123
|
## 桌面应用
|
|
143
124
|
|
|
144
|
-
在 DeepSeek Harness 的“插件 →
|
|
145
|
-
|
|
146
|
-
CLI 的 `pbot` profile 与 Electron 管理的 `desktop` profile 分开;普通 npm dsh CLI 不管理 `desktop`,也不会把 CLI profile 的插件安装同步到应用。宿主更新使用桌面应用自身的更新方式,插件通过应用的原生插件页面更新。
|
|
125
|
+
在 DeepSeek Harness 的“插件 → 添加插件”中安装并启用 `personal-bot@latest`,也可输入本地 tarball 的绝对路径。应用提供运行时和包管理,宿主与插件分别通过应用更新。
|
|
147
126
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
已在 macOS 桌面应用 `0.2.2-rc.1`(内置 Node.js 24.21.0)通过 tarball 验证四页签、附件、完整记录、团队失败暂停、历史查询及刷新;隔离 Python 准备和 5 项原生库测试通过。这不代表从 registry 全新安装或成功模型流程已验收,见[验证记录](validation.md)。
|
|
127
|
+
桌面应用使用独立的 desktop profile;CLI 的 pbot profile 分开管理。应用从登录 Shell 读取环境,Python 3.11+ 应在该 PATH 中可见。安装后选择工作区和主会话,用 `/pbot status` 检查环境。
|
|
151
128
|
|
|
152
129
|
## Task Conductor
|
|
153
130
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
### 安装未发布接入
|
|
131
|
+
周期任务、重复流程和 DAG 使用可选的 `task-conductor-plugin`。插件与服务分别安装,配置和更新见[上游接入指南](https://github.com/realqiyan/task-conductor/blob/master/docs/host-integrations.md)。
|
|
157
132
|
|
|
158
|
-
dsh 接入包含于尚未发布的 Task Conductor
|
|
133
|
+
dsh 接入包含于尚未发布的 Task Conductor 0.1.6 候选版本。发布前从同一源码构建插件和服务:
|
|
159
134
|
|
|
160
135
|
```bash
|
|
161
136
|
cd /absolute/path/to/task-conductor
|
|
@@ -164,58 +139,21 @@ npm pack
|
|
|
164
139
|
npm run pack:plugin
|
|
165
140
|
```
|
|
166
141
|
|
|
167
|
-
|
|
142
|
+
使用实际生成的 tarball 路径安装:
|
|
168
143
|
|
|
169
144
|
```bash
|
|
170
|
-
dsh plugin --profile pbot add /absolute/path/to/task-conductor
|
|
171
|
-
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
使用桌面应用时,在应用原生“插件 → 添加插件”中安装并启用同一 tarball。CLI 与桌面 profile 分开,安装一个不会同步到另一个。已有同名插件时切换其来源,只保留一份;后续源码更新重新打包并安装,不能用 registry `update --latest` 获取尚未发布的改动。
|
|
175
|
-
|
|
176
|
-
插件安装不安装或初始化服务。新安装配套服务时,在终端使用本地服务包,再由上游技能指导 setup:
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
npm install -g /absolute/path/to/task-conductor/task-conductor-<version>.tgz
|
|
145
|
+
dsh plugin --profile pbot add /absolute/path/to/task-conductor-plugin-<version>.tgz
|
|
146
|
+
npm install -g /absolute/path/to/task-conductor-<version>.tgz
|
|
180
147
|
task-conductor setup
|
|
181
148
|
```
|
|
182
149
|
|
|
183
|
-
已有服务按[
|
|
184
|
-
|
|
185
|
-
### 主会话连接与通知
|
|
186
|
-
|
|
187
|
-
重启相应 dsh 宿主,打开主会话,在聊天框调用 `/using-task-conductor`,或让模型通过原生 skill 工具读取同名技能。技能由插件的原生文件系统 provider 提供,详细安装、任务契约和排障方法均以上游技能为准。
|
|
188
|
-
|
|
189
|
-
聊天命令 `/task-conductor status` 查看当前会话连接与通知归属;完成 setup、注册执行端或修复连接后,用 `/task-conductor connect` 重连。默认连接使用宿主 PATH 中的 `task-conductor` 和默认服务 home。自定义安装时,在启动宿主的环境中设置 `TASK_CONDUCTOR_PREFLIGHT_COMMAND` 为实际程序绝对路径、`TASK_CONDUCTOR_PREFLIGHT_HOME` 为原服务目录,使插件连接、检查与通知使用同一服务。
|
|
190
|
-
|
|
191
|
-
插件为每个根 Agent 建立使用该会话 cwd 的原生 MCP 连接。通过 dsh 的工具发现使用实际名称,例如 `mcp__task-conductor__executor_list` 和 `mcp__task-conductor__task_list`;`task-conductor` 中的连字符保留。普通专家不会因共享 profile 而获得一份独立的协调连接。避免另行注册同名手工 MCP;已有连接按[上游接入说明](https://github.com/realqiyan/task-conductor/blob/master/docs/host-integrations.md)调整来源。原生技能仍可用于服务未就绪时的设置和排障。
|
|
192
|
-
|
|
193
|
-
提交任务时使用目标项目的绝对 `workspace`。通知归属于提交任务的原生持久 Session;恢复原会话后可以补收待处理事件,同项目其他会话不会代收。关闭页面、主会话或 dsh 不停止已提交的服务任务,需通过 Task Conductor 查询和控制;取消当前 run 与停止未来周期分别操作。
|
|
194
|
-
|
|
195
|
-
### 使用 dsh 执行节点
|
|
196
|
-
|
|
197
|
-
以 dsh 为主会话宿主和用 dsh 执行任务节点是两项独立配置。节点通过现有自定义 ACP 注册机制接入,使用 ID `dsh-acp`;`dsh` 不是内置执行端 ID。dsh 的原生命令为 `dsh --profile acp`,可用 `dsh --profile acp --help` 查看当前版本帮助,无需 `--stdio` 参数。
|
|
198
|
-
|
|
199
|
-
在 Task Conductor 管理员 CLI 或 Web 中注册本机 dsh 的规范绝对可执行路径。使用解析符号链接后的实际路径,以下 JSON 中的路径须替换:
|
|
200
|
-
|
|
201
|
-
```json
|
|
202
|
-
{
|
|
203
|
-
"id": "dsh-acp",
|
|
204
|
-
"command": "/absolute/canonical/path/to/dsh/lib/bin.js",
|
|
205
|
-
"args": ["--profile", "acp"]
|
|
206
|
-
}
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
将无秘密的 JSON 保存到选定文件后,在已运行的同一服务实例注册并查询:
|
|
150
|
+
已有服务按[上游升级步骤](https://github.com/realqiyan/task-conductor/blob/master/docs/upgrades.md)更新,保留原服务目录与数据。桌面用户在应用的插件页安装同一插件包。
|
|
210
151
|
|
|
211
|
-
|
|
212
|
-
task-conductor executor register --file /absolute/private/dsh-acp.json --yes
|
|
213
|
-
task-conductor executor show dsh-acp
|
|
214
|
-
```
|
|
152
|
+
重启宿主后,在主会话读取 `/using-task-conductor`;用 `/task-conductor status` 查看连接,修复配置后用 `/task-conductor connect` 重连。插件创建原生 MCP 连接,已有同名连接先按上游指南调整来源。
|
|
215
153
|
|
|
216
|
-
|
|
154
|
+
任务通知回到提交任务的原会话。关闭页面或宿主后服务任务继续运行,当前 run 与未来周期分别查询、停止。
|
|
217
155
|
|
|
218
|
-
ACP
|
|
156
|
+
使用 dsh 执行任务节点时,按上游[自定义 ACP 方法](https://github.com/realqiyan/task-conductor/blob/master/plugin/skills/using-task-conductor/references/custom-acp.md)注册 `dsh-acp`,提供 dsh 的规范绝对可执行路径和 `["--profile", "acp"]` 参数。节点的模型、工具、认证和 Python 环境单独配置。
|
|
219
157
|
|
|
220
158
|
## 管理界面与生命周期
|
|
221
159
|
|
|
@@ -232,9 +170,9 @@ ACP 节点使用后台继承的环境与 dsh 的 `acp` profile,模型认证、
|
|
|
232
170
|
|
|
233
171
|
页面通过原生 Remote 查询,不启动专家、领取模型通知或生成摘要。人工命令会保留原生审计记录。关闭面板会取消尚未接纳的上传;关闭、刷新或重连页面不停止已经接纳的工作。结果不明确时先查询状态与记录,再决定后续动作。
|
|
234
172
|
|
|
235
|
-
服务端组件停用、所属父 Agent
|
|
173
|
+
服务端组件停用、所属父 Agent 释放或整个桌面应用退出,会暂停安排并释放其拥有的专家。重新打开页面、重启宿主或启用插件只读取保存记录,需要明确恢复才继续工作。
|
|
236
174
|
|
|
237
|
-
主会话使用原生 write、edit、apply_patch
|
|
175
|
+
主会话使用原生 write、edit、apply_patch 修改原工作区外文件时要求一次原生批准;专家的这些工具拒绝越界修改。Bash、Python、MCP 和扩展使用实际账户权限,详见[工具与执行](capability-design.md)。
|
|
238
176
|
|
|
239
177
|
## 聊天命令总表
|
|
240
178
|
|
|
@@ -283,7 +221,7 @@ ACP 节点使用后台继承的环境与 dsh 的 `acp` profile,模型认证、
|
|
|
283
221
|
| `tools` | 非空的原生能力工具名数组,不用 `run_code` 传输名;团队成员需保留 `pbot_team_message` |
|
|
284
222
|
| `noSkills` | 默认 false;true 关闭该专家的模型技能目录与 skill 工具,用户显式技能命令仍按宿主处理 |
|
|
285
223
|
|
|
286
|
-
专家创建和恢复时应用父会话的原生 preset,保留其文件工具、AGENTS
|
|
224
|
+
专家创建和恢复时应用父会话的原生 preset,保留其文件工具、AGENTS 和技能发现,再应用专家工具限制。显式 complete persona 由宿主按其完整配置提供行为要求。
|
|
287
225
|
|
|
288
226
|
Pi 专属的 `noExtensions`、`noPromptTemplates`、`noContextFiles` 在 dsh 中拒绝。`send.delivery` 为 `steer`(默认,补充当前工作)或 `followUp`(当前工作之后)。`send/resume` 不支持 files、prompts 或模型切换参数。成员被团队占用时私人 send 被拒绝,应先 pause 并等在途工作结束。
|
|
289
227
|
|
|
@@ -302,7 +240,7 @@ Pi 专属的 `noExtensions`、`noPromptTemplates`、`noContextFiles` 在 dsh 中
|
|
|
302
240
|
/pbot agent {"action":"resume","agentId":"AGENT_ID","message":"核对新增资料,只报告变化。"}
|
|
303
241
|
```
|
|
304
242
|
|
|
305
|
-
报告 read 默认选择最近周期,offset 默认 0,limit 默认及上限均为 16000,最小 1,单位为 UTF-16 代码单元。续读固定返回的 `cycle.cycleId`,并把 `nextOffset` 传回 offset;null
|
|
243
|
+
报告 read 默认选择最近周期,offset 默认 0,limit 默认及上限均为 16000,最小 1,单位为 UTF-16 代码单元。续读固定返回的 `cycle.cycleId`,并把 `nextOffset` 传回 offset;null 表示当前报告读完。工作结果查看 `cycle.state` 与报告;人工读取保留模型的完成通知。
|
|
306
244
|
|
|
307
245
|
## 人工对话与完整记录
|
|
308
246
|
|
|
@@ -313,7 +251,7 @@ Pi 专属的 `noExtensions`、`noPromptTemplates`、`noContextFiles` 在 dsh 中
|
|
|
313
251
|
/pbot records {"agentId":"AGENT_ID","offset":0,"limit":30}
|
|
314
252
|
```
|
|
315
253
|
|
|
316
|
-
chat 的相对文件路径以专家创建时固定的 cwd 为基准。服务器 files 与本机输入框附件二选一,每次最多 32 个;图片格式及字节上限遵循宿主准入。上传附件使用原生输入框,不传 JSON `attachments` 字段。chat 自动先暂停所属团队,暂停失败不接纳输入;成功后可对在途工作 steer。返回 queued 仅表示入队。人工接管的 interactive/mixed
|
|
254
|
+
chat 的相对文件路径以专家创建时固定的 cwd 为基准。服务器 files 与本机输入框附件二选一,每次最多 32 个;图片格式及字节上限遵循宿主准入。上传附件使用原生输入框,不传 JSON `attachments` 字段。chat 自动先暂停所属团队,暂停失败不接纳输入;成功后可对在途工作 steer。返回 queued 仅表示入队。人工接管的 interactive/mixed 周期不自动公开;需要独立保密上下文时新建专家。专家必须存活,停止后先 resume。
|
|
317
255
|
|
|
318
256
|
`records` 读取完整事件,不等同于 `agent read` 的最终报告;停止后可冷读,不恢复专家或领取通知。
|
|
319
257
|
|
|
@@ -363,11 +301,11 @@ pause 不停止专家;等待 status 的 `activeCount=0` 后才可 close:
|
|
|
363
301
|
/pbot team {"action":"close","teamId":"TEAM_ID"}
|
|
364
302
|
```
|
|
365
303
|
|
|
366
|
-
没有 team resume;继续时用新 instruction 发起 run。paused 仍可能有在途请求;unresolved
|
|
304
|
+
没有 team resume;继续时用新 instruction 发起 run。paused 仍可能有在途请求;unresolved 可包含失败、未知或混合输入,继续前先查询报告与实际状态。正常完成的纯团队答复才自动公开。完整规则见[专家协作](agent-collaboration.md)。
|
|
367
305
|
|
|
368
306
|
`/pbot post` 必填 teamId、非空 text(最多 24000 字符),可选 `replyTo` 引用已有消息 seq(≥1)。返回 stored 只表示保存,不唤醒模型或增加轮次;关闭团队不能再 post。人工作者为 user;模型 `pbot_team_message` 必须带 `action:"post"` 或 `action:"read"`,作者由服务确定为 coordinator/member。
|
|
369
307
|
|
|
370
|
-
公共消息 read 的 afterSeq 默认 0,只返回后续消息;seq 从 1 开始,可指定单条。offset 默认 0,非零时必须同时指定 seq。limit 默认及上限为 16000,最小 1,是正文合计的 UTF-16 代码单元数,不是消息条数。先按消息的 `nextOffset` 固定 seq 读完正文,再将列表的 `nextAfterSeq` 传回 afterSeq
|
|
308
|
+
公共消息 read 的 afterSeq 默认 0,只返回后续消息;seq 从 1 开始,可指定单条。offset 默认 0,非零时必须同时指定 seq。limit 默认及上限为 16000,最小 1,是正文合计的 UTF-16 代码单元数,不是消息条数。先按消息的 `nextOffset` 固定 seq 读完正文,再将列表的 `nextAfterSeq` 传回 afterSeq 继续列表。
|
|
371
309
|
|
|
372
310
|
## 历史查询
|
|
373
311
|
|
|
@@ -398,4 +336,4 @@ Pi 维护 `.pi/pbot/history/`,dsh 维护 `.dsh/pbot/history/`。两者共同
|
|
|
398
336
|
| `pbot_team_message` | read、post;read 分页同 team read,post 使用 teamId/text/可选 replyTo |
|
|
399
337
|
| `pbot_history` | search、read |
|
|
400
338
|
|
|
401
|
-
模型使用实际工具 schema;人工使用上面的命令或管理页。chat、records
|
|
339
|
+
模型使用实际工具 schema;人工使用上面的命令或管理页。chat、records 是人工管理入口,没有同名模型工具。
|
package/docs/file-storage.md
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
新 agent 以 agentId 作为原生 session ID,通过 `--session-id` 由 Pi 创建。默认文件位于当前 Pi agent dir 的 `sessions/<Pi 编码的 cwd>/<时间戳>_<sessionId>.jsonl`;遵循子进程的原生环境变量与 settings,不自行编码目录或生成文件名。父会话一次性的 `--session-dir` 参数不会自动传给子进程。
|
|
42
42
|
|
|
43
|
-
Pi 对没有用户或助手消息的会话延迟落盘。`session-ref.json` 初始为 `{ "file": null }`;子入口在领取请求或接受人工输入前固定 Pi
|
|
43
|
+
Pi 对没有用户或助手消息的会话延迟落盘。`session-ref.json` 初始为 `{ "file": null }`;子入口在领取请求或接受人工输入前固定 Pi 返回的实际路径,已存在的原生文件在载入时固定引用。固定后不清空、不改指向,恢复时使用该位置。
|
|
44
44
|
|
|
45
45
|
恢复已绑定会话使用 `--session <绝对路径>`,不根据最近会话或当前目录设置重新选择。文件缺失、非法记录、身份或 cwd 不匹配时拒绝恢复;引用已固定但输入尚未落盘的崩溃窗口也不创建空白替代。只有从未交付输入的待命会话可以重新由 Pi 创建。报告使用 Pi 原生解析器和内存树按固定叶节点只读提取,不写入或迁移 JSONL。
|
|
46
46
|
|
|
@@ -68,4 +68,4 @@ I/O 失败后当前文件实例停止后续写入,不能因下一次读取成
|
|
|
68
68
|
|
|
69
69
|
加载、资料准备和重载保留已有资料、历史记录及备份。扩展管理自己的子会话、历史存档与 Python 环境,不自动导入或转换其他应用数据。
|
|
70
70
|
|
|
71
|
-
复制工作区前停止旧实例。包含两种 history
|
|
71
|
+
复制工作区前停止旧实例。包含两种 history 目录的副本会带上问答与摘要,但不会转移用户级原生会话、运行进程、环境或认证;不支持多机同时写入同步目录。
|
package/docs/history.md
CHANGED
|
@@ -33,7 +33,7 @@ dsh 通过公开 SessionQuery 冷读本工作区根会话与按父关系关联
|
|
|
33
33
|
|
|
34
34
|
新人工输入、下一模型步骤、所属资源关闭或 Pi 会话切换会取消当前整理。失败保留待处理内容与警告,下次正常交互结束再试。超长输入分段概括再合并,完整原文保留;摘要失败不妨碍原文查询。来源扫描错误与摘要错误分别保留,刷新成功不会掩盖尚未修复的摘要失败。
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
摘要产生额外模型调用。原生上下文、压缩、模型路由和认证继续由宿主管理。
|
|
37
37
|
|
|
38
38
|
## 存储与并发
|
|
39
39
|
|
|
@@ -46,8 +46,8 @@ dsh 通过公开 SessionQuery 冷读本工作区根会话与按父关系关联
|
|
|
46
46
|
|
|
47
47
|
Pi 保留既有旧索引处理:将当前 Pi agent dir 中旧 `pbot/history/` 下属于本工作区且尚未存在的记录复制到工作区,保留旧副本,不覆盖新归档;移除已有 Pi 归档中的旧 file 字段时保留正文、摘要和节点 ID。失败的旧目录读取可在后续刷新重试。dsh 不导入这些旧 Pi 记录,也不清理或回写 Pi 归档。
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
每个来源有独立的短写锁。原生扫描和模型调用在锁外进行,提交时重读最新归档;过时扫描不能覆盖后来保存的原文,过时摘要不能覆盖变更后的子节点或已提交摘要。一个来源损坏时,另一来源仍可查询并附带警告。多个进程同时整理可能产生重复模型调用。
|
|
50
50
|
|
|
51
|
-
服务位于 `services/history`,负责分组、查询、摘要队列与提交规则;`integrations/pi/history` 和 `integrations/dsh/history` 负责各自原生投影,`storage/history-files`
|
|
51
|
+
服务位于 `services/history`,负责分组、查询、摘要队列与提交规则;`integrations/pi/history` 和 `integrations/dsh/history` 负责各自原生投影,`storage/history-files` 负责校验、短锁与原子文件发布。命令和工具调用同一服务。查询使用全文扫描,不增加数据库或向量索引。
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
这些归档是用户历史资料。原生数据还在时可以重新提取;原生数据已不可用时,删除归档会失去这份历史。复制前停止原工作区的活动写入,不支持多机同时写同步目录。
|