personal-bot 0.2.13 → 0.2.15
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/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/README.md +10 -11
- package/README.zh-CN.md +10 -11
- package/docs/README.md +2 -2
- package/docs/adr/0001-claude-skill-discovery.md +1 -1
- package/docs/agent-collaboration.md +3 -3
- package/docs/architecture-guidelines.md +1 -1
- package/docs/capability-design.md +2 -2
- package/docs/claude-code-design.md +10 -11
- package/docs/claude-code.md +8 -15
- package/docs/dsh.md +7 -8
- package/docs/file-storage.md +2 -3
- package/docs/installation-design.md +4 -5
- package/docs/interaction-design.md +1 -1
- package/docs/model-context.md +9 -10
- package/docs/release.md +6 -6
- package/docs/technical-design.md +18 -23
- package/docs/workspace-configuration.md +5 -8
- package/hooks/hooks.json +1 -4
- package/lib/client.js +3 -15
- package/lib/common/schema.d.ts +2 -0
- package/lib/common/schema.js +10 -0
- package/lib/common/validation.d.ts +0 -2
- package/lib/common/validation.js +0 -10
- package/lib/extension/acp-member.js +1 -3
- package/lib/extension/acp-worker.js +3 -22
- package/lib/extension/claude-hooks.d.ts +0 -6
- package/lib/extension/claude-hooks.js +5 -31
- package/lib/extension/dsh/acp-member.js +1 -2
- package/lib/extension/dsh/command.js +4 -8
- package/lib/extension/dsh/management.d.ts +1 -1
- package/lib/extension/dsh/management.js +5 -4
- package/lib/extension/dsh/workspace.d.ts +1 -9
- package/lib/extension/dsh/workspace.js +4 -29
- package/lib/extension/setup-cli.js +4 -4
- package/lib/integrations/dsh/resources.d.ts +1 -5
- package/lib/integrations/dsh/resources.js +2 -5
- package/lib/integrations/installation/processes.js +0 -15
- package/lib/tools/agents/dsh-tool.js +2 -1
- package/lib/tools/history/contract.js +2 -1
- package/lib/tools/history/dsh-tool.js +2 -1
- package/lib/tools/teams/dsh-tool.js +2 -1
- package/lib/ui/dsh/management.js +1 -9
- package/lib/ui/dsh/styles.d.ts +1 -1
- package/lib/ui/dsh/styles.js +2 -2
- package/lib/ui/presentation.js +1 -1
- package/package.json +1 -5
- package/resources/claude/skills/pbot/SKILL.md +2 -3
- package/resources/prompts/workspace.md +1 -1
- package/resources/references/compute.md +6 -8
- package/scripts/README.md +5 -9
- package/src/common/schema.ts +11 -0
- package/src/common/validation.ts +0 -11
- package/src/extension/acp-member.ts +1 -3
- package/src/extension/acp-worker.ts +3 -12
- package/src/extension/claude-hooks.ts +5 -25
- package/src/extension/command.ts +7 -16
- package/src/extension/dsh/acp-member.ts +1 -2
- package/src/extension/dsh/command.ts +4 -7
- package/src/extension/dsh/management.ts +5 -4
- package/src/extension/dsh/workspace.ts +5 -25
- package/src/extension/events.ts +2 -11
- package/src/extension/lifecycle.ts +8 -23
- package/src/extension/setup-cli.ts +4 -4
- package/src/extension/subagent-entry.ts +6 -12
- package/src/integrations/dsh/resources.ts +2 -5
- package/src/integrations/installation/processes.ts +0 -13
- package/src/integrations/pi/pi-agents.ts +12 -5
- package/src/pbot.ts +1 -2
- package/src/tools/agents/dsh-tool.ts +2 -1
- package/src/tools/agents/tool.ts +2 -1
- package/src/tools/history/contract.ts +2 -1
- package/src/tools/history/dsh-tool.ts +2 -1
- package/src/tools/teams/dsh-tool.ts +2 -1
- package/src/tools/teams/tool.ts +2 -1
- package/src/ui/dsh/management.ts +2 -8
- package/src/ui/dsh/styles.ts +2 -2
- package/src/ui/presentation.ts +1 -1
- package/lib/integrations/process.d.ts +0 -14
- package/lib/integrations/process.js +0 -48
- package/lib/integrations/python-activation.d.ts +0 -2
- package/lib/integrations/python-activation.js +0 -29
- package/lib/services/workspace/python-environment-service.d.ts +0 -21
- package/lib/services/workspace/python-environment-service.js +0 -66
- package/npm-shrinkwrap.json +0 -13544
- package/python/README.md +0 -72
- package/python/requirements.lock +0 -38
- package/scripts/setup-python.py +0 -170
- package/src/integrations/process.ts +0 -40
- package/src/integrations/python-activation.ts +0 -23
- package/src/services/workspace/python-environment-service.ts +0 -61
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"plugins": [
|
|
7
7
|
{
|
|
8
8
|
"name": "personal-bot",
|
|
9
|
-
"version": "0.2.
|
|
10
|
-
"description": "Workspace materials, skills, native experts
|
|
9
|
+
"version": "0.2.15",
|
|
10
|
+
"description": "Workspace materials, skills, and native experts.",
|
|
11
11
|
"source": {
|
|
12
12
|
"source": "npm",
|
|
13
13
|
"package": "personal-bot",
|
|
14
|
-
"version": "0.2.
|
|
14
|
+
"version": "0.2.15"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "personal-bot",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Workspace materials, skills, native experts
|
|
3
|
+
"version": "0.2.15",
|
|
4
|
+
"description": "Workspace materials, skills, and native experts.",
|
|
5
5
|
"skills": [
|
|
6
6
|
"./resources/skills",
|
|
7
7
|
"./resources/claude/skills"
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ English | [简体中文](README.zh-CN.md)
|
|
|
4
4
|
|
|
5
5
|
**A personal assistant connecting knowledge, research, and action.**
|
|
6
6
|
|
|
7
|
-
Personal Bot provides a workspace-scoped [Pi](https://pi.dev) extension, a native dsh Web integration, and a standard Claude Code plugin. It supports organizing materials, project work, research, specialist collaboration, and authorized operations. Pi/dsh add managed specialists, teams, and history search. Claude uses native skills, Agent/teams, and Node command hooks. All three share workspace materials and
|
|
7
|
+
Personal Bot provides a workspace-scoped [Pi](https://pi.dev) extension, a native dsh Web integration, and a standard Claude Code plugin. It supports organizing materials, project work, research, specialist collaboration, and authorized operations. Pi/dsh add managed specialists, teams, and history search. Claude uses native skills, Agent/teams, and Node command hooks. All three share workspace materials and professional methods.
|
|
8
8
|
|
|
9
9
|
Claude's model-driven context, skills, and specialist behavior still need validation in an approved native model environment. See the [Claude Code guide](docs/claude-code.md) (Chinese) for operations.
|
|
10
10
|
|
|
@@ -22,7 +22,7 @@ A missing, disabled, or invalid config leaves Personal Bot inactive; only the cu
|
|
|
22
22
|
|
|
23
23
|
### Pi setup wizard
|
|
24
24
|
|
|
25
|
-
Linux and macOS require Node.js 22.19
|
|
25
|
+
Linux and macOS require Node.js 22.19+ and npm. Run in an interactive terminal:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
npx personal-bot@latest setup
|
|
@@ -32,7 +32,7 @@ npx personal-bot@latest setup --workspace ~/pbot-workspace
|
|
|
32
32
|
|
|
33
33
|
The wizard selects or creates a directory, installs or updates Pi, and installs Personal Bot for that workspace. Task Conductor and Pi Web Access are selected by default on the first installation; later runs preselect installed plugins. Ordinary npm sources update to the latest stable version. Local, Git, and pinned sources are kept by default, with an option to switch. Deselecting a plugin preserves its installation.
|
|
34
34
|
|
|
35
|
-
Missing tmux is installed through an existing Homebrew or supported Linux package manager.
|
|
35
|
+
Missing tmux is installed through an existing Homebrew or supported Linux package manager. After installation, the wizard can start Pi and run `/pbot init`. Follow Pi's prompts for project trust, login, and model selection.
|
|
36
36
|
|
|
37
37
|
For a persistent short command, install the CLI globally:
|
|
38
38
|
|
|
@@ -56,7 +56,7 @@ pi
|
|
|
56
56
|
|
|
57
57
|
### dsh
|
|
58
58
|
|
|
59
|
-
You need Node.js 24.9+, npm,
|
|
59
|
+
You need Node.js 24.9+, npm, and pnpm. Follow the installed dsh release's `engines` if it requires a newer runtime. Use its native profiles and plugin manager:
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
62
|
npm install -g @deepseek-ai/dsh@latest pnpm@latest
|
|
@@ -78,17 +78,17 @@ The desktop application installs `personal-bot@latest` through its native Plugin
|
|
|
78
78
|
|
|
79
79
|
### Claude Code
|
|
80
80
|
|
|
81
|
-
Use an interactive Claude Code terminal on Linux or macOS with **Claude Code 2.1.325
|
|
81
|
+
Use an interactive Claude Code terminal on Linux or macOS with **Claude Code 2.1.325+** and **Node.js 22.19+**. Install through Claude's native marketplace command:
|
|
82
82
|
|
|
83
83
|
```text
|
|
84
84
|
/plugin install personal-bot --marketplace realqiyan/personal-bot
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
Choose the installation scope through Claude's plugin manager, then use `/personal-bot:pbot init` and `/personal-bot:pbot status` in the target workspace. These are native skills: the model runs the corresponding Node CLI through Bash. For deterministic execution, run `node /absolute/path/to/plugin/lib/claude.js init
|
|
87
|
+
Choose the installation scope through Claude's plugin manager, then use `/personal-bot:pbot init` and `/personal-bot:pbot status` in the target workspace. These are native skills: the model runs the corresponding Node CLI through Bash. For deterministic execution, run `node /absolute/path/to/plugin/lib/claude.js init` or `node /absolute/path/to/plugin/lib/claude.js status` with `CLAUDE_PROJECT_DIR` set to the workspace root. Claude owns login, models, permissions, native agents, teams, and MCP configuration; `pbot setup` remains the Pi installer.
|
|
88
88
|
|
|
89
89
|
For native teams, the user enables Claude's experimental feature with `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` before starting Claude. pbot does not change this setting or provide pbot team scheduling in Claude. Continue work explicitly after returning to a session; native resume/rewind does not restore in-process teammates.
|
|
90
90
|
|
|
91
|
-
The
|
|
91
|
+
The standard plugin provides materials, skills, and native specialists. Existing Claude history archives and old control records remain preserved. See the [Claude guide](docs/claude-code.md) (Chinese) for operations.
|
|
92
92
|
|
|
93
93
|
### Optional: ACP specialist programs
|
|
94
94
|
|
|
@@ -132,18 +132,17 @@ Describe the task directly: organize materials, compare findings, delegate a rev
|
|
|
132
132
|
| --- | --- |
|
|
133
133
|
| `/pbot` | Open the workspace menu |
|
|
134
134
|
| `/pbot init` | Enable the workspace and create missing material directories and root `AGENTS.md` |
|
|
135
|
-
| `/pbot status` | Inspect activation, workspace,
|
|
135
|
+
| `/pbot status` | Inspect activation, workspace, and version |
|
|
136
136
|
| `/pbot history [text]` | Search exchanges and summaries, then read originals |
|
|
137
137
|
| `/pbot agents` | Inspect, enter, rename, stop, or send instructions to specialists |
|
|
138
138
|
| `/pbot teams` | Inspect teams and public messages; start rounds, pause, or close |
|
|
139
|
-
| `/pbot python setup` | Retry shared Python preparation |
|
|
140
139
|
| `/reload` | Pi's native command to reload extensions and resources |
|
|
141
140
|
|
|
142
141
|
- **Initialization and materials:** `/pbot init` creates missing materials and enables the workspace, preserving existing materials and other configuration fields. Pi reloads on first activation; an already running workspace loads a newly created root AGENTS after `/reload`.
|
|
143
142
|
- **Native tools:** Use CLI tools through Bash and MCP through the host's configuration. Add Pi project connections with `pi mcp add --local <server> ...` and inspect their source with `/mcp`. See the [connection skill](resources/skills/provider-connections/SKILL.md).
|
|
144
143
|
- **History:** Pi/dsh refresh and summarize their own sources and query all existing archives, including preserved Claude archives. Originals are searchable first; after a main interaction, the current model fills pending summaries through additional model calls. New input cancels that work first. Claude uses native session history. See [history](docs/history.md).
|
|
145
144
|
- **Specialists and teams:** Default Pi specialists require tmux; dsh uses native sessions. Pi/dsh pbot teams support ordered discussions and parallel rounds; pause and drain their work before private tasks. Claude uses native Agent and native team tools. Pi/dsh ACP calls Pi, dsh, and Claude Code for independent conversations, reports, and explicit restoration. ACP model and thinking are independently optional; omitted values use the target host defaults. See [specialist collaboration](docs/agent-collaboration.md).
|
|
146
|
-
- **
|
|
145
|
+
- **Calculations:** Use native Bash with the project's interpreter, dependencies, and working directory. The [Python calculation reference](resources/references/compute.md) covers common methods; [indicators and backtesting](resources/references/compute-finance.md) covers financial calculations. Install the tools and libraries required by the project in its chosen environment.
|
|
147
146
|
- **Material maintenance:** Ask the assistant to organize a project, repeat an analysis with its existing definitions, or check a delivery. The [maintenance skill](resources/skills/project-maintenance/SKILL.md) updates current guidance and extracts reusable methods while preserving formal materials, history, and backups.
|
|
148
147
|
|
|
149
148
|
Use `pi --resume` to select the main session explicitly; `pi --continue` can select the most recently active child. Enter managed specialists through `/pbot agents`. Opening a stopped specialist's saved session leaves it idle; use resume with a new instruction to continue work. Keep one writer per running session.
|
|
@@ -166,7 +165,7 @@ Existing layouts and agreements take precedence. Fetch queryable data when neede
|
|
|
166
165
|
|
|
167
166
|
## Updates and operating scope
|
|
168
167
|
|
|
169
|
-
Current release: **0.2.
|
|
168
|
+
Current release: **0.2.15**. Update through the host's native package manager. For a local Pi source, update the checkout, run `npm ci --ignore-scripts` when dependencies change, then reload or restart. Stop active specialists before changing versions. Recreate specialists across compatibility lines; existing materials, history, and backups are preserved.
|
|
170
169
|
|
|
171
170
|
Operations follow the user's request, existing agreements, and required confirmations. Bash, Python, MCP, and extensions use the actual account and credential permissions. Enforce hard limits through read-only credentials, service controls, or restricted environments. Trades, transfers, and ledger changes require authorization for those operations. After cancellation, timeout, or disconnection, query native status before retrying to avoid duplicate execution.
|
|
172
171
|
|
package/README.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**连接知识、研究与行动的个人助手。**
|
|
6
6
|
|
|
7
|
-
Personal Bot 提供按工作区加载的 [Pi](https://pi.dev) 扩展、原生 dsh Web 接入和标准 Claude Code 插件,支持资料整理、项目推进、研究分析、专家协作和已授权的业务操作。Pi/dsh 提供受管专家、团队和历史查询;Claude 使用原生技能、Agent/teams 与 Node command hooks
|
|
7
|
+
Personal Bot 提供按工作区加载的 [Pi](https://pi.dev) 扩展、原生 dsh Web 接入和标准 Claude Code 插件,支持资料整理、项目推进、研究分析、专家协作和已授权的业务操作。Pi/dsh 提供受管专家、团队和历史查询;Claude 使用原生技能、Agent/teams 与 Node command hooks。三个宿主共用工作区资料和专业方法。
|
|
8
8
|
|
|
9
9
|
Claude 的模型上下文、技能调用与专家行为还需在批准的原生模型环境验证。操作见 [Claude Code 指南](docs/claude-code.md)。
|
|
10
10
|
|
|
@@ -22,7 +22,7 @@ Claude 的模型上下文、技能调用与专家行为还需在批准的原生
|
|
|
22
22
|
|
|
23
23
|
### Pi 安装向导
|
|
24
24
|
|
|
25
|
-
支持 Linux 和 macOS,需要 Node.js 22.19
|
|
25
|
+
支持 Linux 和 macOS,需要 Node.js 22.19+ 和 npm。在交互终端运行:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
npx personal-bot@latest setup
|
|
@@ -32,7 +32,7 @@ npx personal-bot@latest setup --workspace ~/pbot-workspace
|
|
|
32
32
|
|
|
33
33
|
向导选择或创建目录,安装或更新 Pi,再为该工作区安装 Personal Bot。首次默认勾选 Task Conductor 和 Pi Web Access;后续按已有安装预选。普通 npm 来源更新到最新稳定版,本地、Git 和固定版本默认保留,可选择切换。取消勾选会保留已有插件。
|
|
34
34
|
|
|
35
|
-
缺少 tmux 时使用已有 Homebrew 或受支持的 Linux
|
|
35
|
+
缺少 tmux 时使用已有 Homebrew 或受支持的 Linux 包管理器安装。安装完成后可启动 Pi 并执行 `/pbot init`;项目信任、登录和模型选择按 Pi 提示操作。
|
|
36
36
|
|
|
37
37
|
需要固定短命令时,可全局安装 CLI:
|
|
38
38
|
|
|
@@ -56,7 +56,7 @@ pi
|
|
|
56
56
|
|
|
57
57
|
### dsh
|
|
58
58
|
|
|
59
|
-
需要 Node.js 24.9+、npm
|
|
59
|
+
需要 Node.js 24.9+、npm 和 pnpm;新版本的要求以 dsh `engines` 为准。使用原生 profile 和插件管理器安装:
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
62
|
npm install -g @deepseek-ai/dsh@latest pnpm@latest
|
|
@@ -78,17 +78,17 @@ dsh plugin --profile pbot update personal-bot --latest
|
|
|
78
78
|
|
|
79
79
|
### Claude Code
|
|
80
80
|
|
|
81
|
-
使用 Linux 或 macOS 的交互式 Claude Code 终端,需要 **Claude Code 2.1.325
|
|
81
|
+
使用 Linux 或 macOS 的交互式 Claude Code 终端,需要 **Claude Code 2.1.325+** 和 **Node.js 22.19+**。通过 Claude 原生 marketplace 命令安装:
|
|
82
82
|
|
|
83
83
|
```text
|
|
84
84
|
/plugin install personal-bot --marketplace realqiyan/personal-bot
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
安装范围由 Claude 原生插件管理选择,再在目标工作区使用 `/personal-bot:pbot init` 和 `/personal-bot:pbot status`。它们是原生技能,由模型通过 Bash 执行对应 Node CLI。需要确定性执行时,将 `CLAUDE_PROJECT_DIR` 设为工作区根,直接运行 `node /absolute/path/to/plugin/lib/claude.js init
|
|
87
|
+
安装范围由 Claude 原生插件管理选择,再在目标工作区使用 `/personal-bot:pbot init` 和 `/personal-bot:pbot status`。它们是原生技能,由模型通过 Bash 执行对应 Node CLI。需要确定性执行时,将 `CLAUDE_PROJECT_DIR` 设为工作区根,直接运行 `node /absolute/path/to/plugin/lib/claude.js init` 或 `node /absolute/path/to/plugin/lib/claude.js status`。登录、模型、权限、原生专家、团队和 MCP 由 Claude 管理;`pbot setup` 仍是 Pi 安装器。
|
|
88
88
|
|
|
89
89
|
原生团队由用户在启动 Claude 前设置 `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` 启用。pbot 不修改该设置,也不在 Claude 中提供 pbot 团队调度。返回会话后明确要求继续工作;原生 resume/rewind 不恢复进程内 teammate。
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
标准插件提供资料、技能与原生专家,既有 Claude 历史归档和旧控制记录原地保留。操作见 [Claude 指南](docs/claude-code.md)。
|
|
92
92
|
|
|
93
93
|
### 可选安装 ACP 专家程序
|
|
94
94
|
|
|
@@ -132,18 +132,17 @@ Pi 用户从工作区运行 `pi install --local npm:task-conductor-plugin`,重
|
|
|
132
132
|
| --- | --- |
|
|
133
133
|
| `/pbot` | 打开工作区菜单 |
|
|
134
134
|
| `/pbot init` | 启用工作区,补建资料目录与缺失的根 `AGENTS.md` |
|
|
135
|
-
| `/pbot status` |
|
|
135
|
+
| `/pbot status` | 查看启用状态、工作区和版本 |
|
|
136
136
|
| `/pbot history [关键词]` | 搜索历史问答与摘要,展开原文 |
|
|
137
137
|
| `/pbot agents` | 查看、进入、重命名、停止专家,或补充要求 |
|
|
138
138
|
| `/pbot teams` | 查看团队与公共消息,开始轮次、暂停或关闭 |
|
|
139
|
-
| `/pbot python setup` | 重试共享 Python 环境准备 |
|
|
140
139
|
| `/reload` | Pi 原生命令,重载扩展与资源 |
|
|
141
140
|
|
|
142
141
|
- **初始化与资料准备**:`/pbot init` 补建资料并启用工作区,保留已有资料与其他配置字段。Pi 首次启用时自动重载;已启动时补建的根 AGENTS 经 `/reload` 加载。
|
|
143
142
|
- **原生工具**:CLI 通过 Bash 使用,MCP 使用宿主配置。Pi 新增项目连接时执行 `pi mcp add --local <server> ...`,通过 `/mcp` 查看来源。接入方法见[技能](resources/skills/provider-connections/SKILL.md)。
|
|
144
143
|
- **历史回溯**:Pi/dsh 刷新和整理自己的来源,查询已有各来源归档,包括保留的 Claude 归档。原文先可查询,主交互结束后用当前模型补齐摘要,会产生额外模型调用;新输入优先取消整理。Claude 使用原生会话历史。详见[历史对话](docs/history.md)。
|
|
145
144
|
- **专家与团队**:默认 Pi 专家需要 tmux,dsh 使用原生会话。Pi/dsh 的 pbot 团队可组织轮流讨论与并行轮次,切换私人工作前先暂停并等待在途工作结束;Claude 使用原生 Agent 与团队工具。Pi/dsh 的 ACP 调用 Pi、dsh 和 Claude Code,支持独立对话、报告及显式恢复。ACP 的 model、thinking 均可单独省略,省略项使用目标宿主默认值。详见[专家协作](docs/agent-collaboration.md)。
|
|
146
|
-
-
|
|
145
|
+
- **计算**:通过原生 Bash,使用项目声明的解释器、依赖与工作目录。通用方法见 [Python 计算](resources/references/compute.md),金融计算另见[指标与回测](resources/references/compute-finance.md)。项目所需工具与库在选定环境中安装。
|
|
147
146
|
- **资料维护**:可请助手整理项目、按既有口径重做分析或检查交付。按[维护技能](resources/skills/project-maintenance/SKILL.md)更新当前说明、提炼方法,保留正式资料、历史与备份。
|
|
148
147
|
|
|
149
148
|
Pi 主会话恢复用 `pi --resume` 明确选择;`pi --continue` 可能选中最近活跃的子会话。受管专家从 `/pbot agents` 进入,停止后打开原会话会保持待命,携新要求继续时使用 resume。运行中的会话只保留一个写入进程。
|
|
@@ -166,7 +165,7 @@ Pi 主会话恢复用 `pi --resume` 明确选择;`pi --continue` 可能选中
|
|
|
166
165
|
|
|
167
166
|
## 更新与操作范围
|
|
168
167
|
|
|
169
|
-
当前版本为 **0.2.
|
|
168
|
+
当前版本为 **0.2.15**。通过宿主原生包管理更新;本地 Pi 来源更新源码,依赖变化后运行 `npm ci --ignore-scripts`,再重载或重启。更换版本前停止活动专家;不同兼容线的专家需重新创建,旧资料、历史和备份保留。
|
|
170
169
|
|
|
171
170
|
操作按用户请求、已有约定和必要确认执行。Bash、Python、MCP 和扩展使用实际账户与凭据权限;硬限制应由只读凭据、服务端控制或受限环境提供。交易、转账和账本修改需要相应授权。取消、超时或断连后,先查原生状态再决定是否重试,避免重复执行。
|
|
172
171
|
|
package/docs/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
- [项目介绍与安装](../README.zh-CN.md) / [English](../README.md)
|
|
6
6
|
- [dsh 使用](dsh.md):profile、插件、Web 管理与聊天命令
|
|
7
|
-
- [Claude Code 使用](claude-code.md):标准插件安装、原生技能、CLI
|
|
7
|
+
- [Claude Code 使用](claude-code.md):标准插件安装、原生技能、CLI 与专家
|
|
8
8
|
- [工作区配置](workspace-configuration.md):三宿主共用启用、静态技能例外与配置生效
|
|
9
9
|
- [专家协作](agent-collaboration.md):原生专家、Pi/dsh 的 pbot 团队、Claude 原生团队与 ACP
|
|
10
10
|
- [历史对话](history.md):Pi/dsh 查询、摘要与既有归档兼容
|
|
11
|
-
- [Python
|
|
11
|
+
- [Python 计算](../resources/references/compute.md):项目运行与第三方库方法;[指标与回测](../resources/references/compute-finance.md)
|
|
12
12
|
- [领域术语](../CONTEXT.md)
|
|
13
13
|
|
|
14
14
|
## 开发
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# Claude Code 保留原生技能发现
|
|
2
2
|
|
|
3
|
-
Claude Code 标准插件采用原生静态技能发现,允许未启用的工作区显示 Personal Bot 技能名称与简介。共用 `.pbot/config.json`
|
|
3
|
+
Claude Code 标准插件采用原生静态技能发现,允许未启用的工作区显示 Personal Bot 技能名称与简介。共用 `.pbot/config.json` 控制上下文注入;PreToolUse 对 Skill 调用、UserPromptExpansion 对用户直接展开的技能拦截未启用工作区的 pbot 工作方法,保留 `personal-bot:pbot` 初始化技能可用。技能发现、正文加载和模型调用遵循宿主机制,不增加动态目录或私有技能加载器。
|
|
@@ -22,7 +22,7 @@ Pi 的 start 支持 noExtensions、noSkills、noPromptTemplates 和 noContextFil
|
|
|
22
22
|
|
|
23
23
|
以下附件、进程模型与 TUI 说明面向 Pi;dsh 的差异见下一节。初始 files 相对工作区根目录解析。子入口在每份附件前标出绝对来源路径,保留 Pi 原生 read 的文本、图像及截断提示;未读完的附件由成员沿该路径续读。message 与 prompts 合并为一次输入,不继承父聊天历史。
|
|
24
24
|
|
|
25
|
-
初始模型与思考级别默认继承主会话;恢复时交由 Pi 使用保存的原生模型配置,不重新传入初始模型选项。模型不可用或缺少认证时仍遵循 Pi 的原生回退与错误行为。子会话从自己的 cwd 和 Pi agent dir 取得原生配置与认证,不继承父进程临时注册的模型或 MCP
|
|
25
|
+
初始模型与思考级别默认继承主会话;恢复时交由 Pi 使用保存的原生模型配置,不重新传入初始模型选项。模型不可用或缺少认证时仍遵循 Pi 的原生回退与错误行为。子会话从自己的 cwd 和 Pi agent dir 取得原生配置与认证,不继承父进程临时注册的模型或 MCP。Pi 专家在启动与恢复时继承当前父进程的环境变量,终端身份由新 tmux pane 设置;父进程已删除的变量不会从 tmux server 的缓存中重新传入。环境与授权规则见[工具与执行](capability-design.md)。
|
|
26
26
|
|
|
27
27
|
## dsh 专家
|
|
28
28
|
|
|
@@ -36,7 +36,7 @@ dsh 使用原生 provider/model/reasoning effort,拒绝 Pi 专属扩展、提
|
|
|
36
36
|
|
|
37
37
|
## Claude 原生专家与团队
|
|
38
38
|
|
|
39
|
-
Claude 插件通过静态 Markdown agent 提供 `personal-bot:general-purpose`,由原生 Agent 创建专家。构建从共享职责生成该文件;工作区启用后,SubagentStart
|
|
39
|
+
Claude 插件通过静态 Markdown agent 提供 `personal-bot:general-purpose`,由原生 Agent 创建专家。构建从共享职责生成该文件;工作区启用后,SubagentStart 仅为这一类型补充公共约定、工作区专家职责、根资料及工作区与资源路径。模型、effort、权限、完成通知与会话记录遵循 Claude 原生规则,pbot 不读取私有团队格式来判断成员身份。
|
|
40
40
|
|
|
41
41
|
完成后明确发送要求可继续原生专家上下文。团队需要用户在启动环境中设置 `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`,并自行选择原生 teammateMode;pbot 安装与 init 不修改开关。成员通过原生消息与任务工具交流,组织和状态由 Claude 管理。
|
|
42
42
|
|
|
@@ -72,7 +72,7 @@ ACP 成员支持待命、独立委派、持续对话、状态、固定周期报
|
|
|
72
72
|
|
|
73
73
|
返回的 transport 为 acp,selection 给出 provider、model 和有效 thinking,包含宿主默认值。Claude 的 model 保留配置别名,resolvedModel 在原生会话报告后给出实际模型 ID;Pi 详情与 dsh 工作区页一起显示两者。Claude 的默认思考等级遵循原生环境设置,显式 thinking 只覆盖当前成员的启动配置。capabilities 给出当前能力。首批不提供运行中 steer、团队通信和完整原生记录;工具在忙碌时拒绝 steer,团队使用原生专家。Pi 专属启动开关只对 Pi 目标生效;Claude 的工具与技能通过 Claude 原生配置选择。
|
|
74
74
|
|
|
75
|
-
成员加载公共约定、general-purpose
|
|
75
|
+
成员加载公共约定、general-purpose 职责、工作区同名补充及 `workspaceRoot`、`resourceRoot`,并按需使用包内技能。Claude 的原生技能目录中可见 personal-bot:provider-connections 和 personal-bot:project-maintenance,用户与项目技能继续沿用 Claude 配置。计算使用目标宿主可用的项目环境。
|
|
76
76
|
|
|
77
77
|
Pi 的 `/pbot agents` 对 ACP 成员提供任务、报告、补充要求及携新要求恢复;原生 Pi 成员继续通过 tmux 进入。dsh 专家页展示 ACP 任务与报告,也支持人工消息和附件。
|
|
78
78
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
## 复用宿主
|
|
10
10
|
|
|
11
|
-
各宿主负责自己的主会话、模型配置、工具、UI、资源发现与会话恢复。Pi/dsh 共享专家、团队与历史服务;Claude 使用标准 command hooks、原生技能和 Markdown agent
|
|
11
|
+
各宿主负责自己的主会话、模型配置、工具、UI、资源发现与会话恢复。Pi/dsh 共享专家、团队与历史服务;Claude 使用标准 command hooks、原生技能和 Markdown agent,共享资料准备与专业方法。Claude 的专家及团队交给原生 Agent/teams,跨宿主 ACP 委派保留在 Pi/dsh。按宿主实际需要装配能力,不构建通用 Host 平台。
|
|
12
12
|
|
|
13
13
|
角色定义职责,技能描述专业方法,代码实现需要确定执行的规则。优先使用原生 CLI/MCP,执行权限由实际凭据、外部服务和运行环境约束。
|
|
14
14
|
|
|
@@ -26,9 +26,9 @@ dsh 使用当前安装版本的原生 MCP 组件和 profile 配置,模型与
|
|
|
26
26
|
|
|
27
27
|
Claude 新增项目连接使用 `claude mcp add --scope project <server> ...`,写入工作区 `.mcp.json`;删除使用 `claude mcp remove --scope project <server>`。local、project、user 是不同原生范围,按实际用途选择;用户未要求跨项目时使用 project。通过当前会话 `/mcp` 检查连接、认证、配置来源和工具,CLI 状态不替代活动会话状态。原生 Agent、团队、消息和任务工具沿用 Claude 权限与认证,实验团队开关由用户管理。
|
|
28
28
|
|
|
29
|
-
Claude 插件通过标准 Node command hooks
|
|
29
|
+
Claude 插件通过标准 Node command hooks 加载上下文,通过原生 `/personal-bot:pbot init|status` 技能调用同一 CLI。确定性操作可直接运行 `node <plugin>/lib/claude.js init|status`。工作区根固定为 `CLAUDE_PROJECT_DIR`,不随 Bash cwd 改变。Claude 的 Agent、团队、MCP 与会话由宿主管理;pbot 不在该宿主注册业务工具或 MCP 服务。原生技能与专家的上下文加载方式见[模型上下文](model-context.md)。
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
各宿主的 Python 计算通过原生 Bash,使用项目声明的解释器、依赖与工作目录。通用方法见 [Python 计算](../resources/references/compute.md),指标与回测按需读取[专门参考](../resources/references/compute-finance.md)。
|
|
32
32
|
|
|
33
33
|
## ACP 子会话
|
|
34
34
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Claude Code 标准插件接入
|
|
2
2
|
|
|
3
|
-
Claude
|
|
3
|
+
Claude 接入聚焦工作区资料、专业技能与原生通用专家。使用公开的 command hooks、Markdown skills 和 Markdown agents;主会话、原生工具、MCP、团队和恢复由 Claude 管理。使用操作见[Claude 指南](claude-code.md),共用模块见[技术设计](technical-design.md)。
|
|
4
4
|
|
|
5
5
|
## 范围与依赖
|
|
6
6
|
|
|
7
7
|
Claude 插件不实现 pbot 面板、历史采集与检索、摘要、ACP 委派或 pbot 团队调度。Pi/dsh 的历史和 ACP 保留,其中 Claude 作为 ACP 目标的 SDK 适配继续由 ACP 模块负责。现有归档、控制记录和备份保留;持久合同不因功能收敛而迁移。
|
|
8
8
|
|
|
9
|
-
插件不依赖 function-hooks/mod、`claude-code` 类型声明、Node MCP server、内部 transcript、私有团队配置、父进程启动参数或原生消息收据。Claude hooks 使用 Node
|
|
9
|
+
插件不依赖 function-hooks/mod、`claude-code` 类型声明、Node MCP server、内部 transcript、私有团队配置、父进程启动参数或原生消息收据。Claude hooks 使用 Node 内置模块和共用工作区服务。Claude SDK 仍是 Pi/dsh 的 Claude ACP 目标所需可选 peer 与精确开发依赖,Claude 插件本身不加载它。
|
|
10
10
|
|
|
11
11
|
## 入口与行为
|
|
12
12
|
|
|
@@ -16,30 +16,29 @@ Claude 插件不实现 pbot 面板、历史采集与检索、摘要、ACP 委派
|
|
|
16
16
|
| `hooks/hooks.json` | 用 command + args 启动独立 Node hook,JSON 经 stdin/stdout 传递 |
|
|
17
17
|
| `src/claude.ts` | hook/CLI 进程入口;错误写 stderr |
|
|
18
18
|
| `src/extension/claude-hooks.ts` | 固定根目录、启用检查、资料组装与命令执行 |
|
|
19
|
-
| `resources/claude/skills/pbot/SKILL.md` | 通过原生技能执行 init、status
|
|
19
|
+
| `resources/claude/skills/pbot/SKILL.md` | 通过原生技能执行 init、status |
|
|
20
20
|
| `resources/claude/agents/general-purpose.md` | 构建时由共用专家职责生成的原生 Agent 声明 |
|
|
21
21
|
|
|
22
|
-
根目录使用公开 `CLAUDE_PROJECT_DIR`;普通 Node 命令无此变量时使用 cwd。仅检查该根的 `.pbot/config.json`。缺失、false
|
|
22
|
+
根目录使用公开 `CLAUDE_PROJECT_DIR`;普通 Node 命令无此变量时使用 cwd。仅检查该根的 `.pbot/config.json`。缺失、false 或无效配置不加入业务资料。初始化沿用共用 `initializeWorkspace`,保留用户文件、`CLAUDE.md` 与未知配置字段。
|
|
23
23
|
|
|
24
24
|
| hook | 行为 |
|
|
25
25
|
| --- | --- |
|
|
26
|
-
| `
|
|
27
|
-
| `UserPromptSubmit` | 重读配置和当前资料,加入公共约定、角色、AGENTS 与环境状态 |
|
|
26
|
+
| `UserPromptSubmit` | 重读配置和当前资料,加入公共约定、角色、AGENTS 及工作区与资源路径 |
|
|
28
27
|
| `SubagentStart` | 仅为插件的 `personal-bot:general-purpose` 加入当前专家资料 |
|
|
29
28
|
| `PreToolUse` / `Skill`、`UserPromptExpansion` | 检查模型调用和用户直接展开的 pbot 工作方法;未启用时拦截并提供初始化提示,保留 pbot 管理技能入口 |
|
|
30
29
|
|
|
31
30
|
每次 hook 都是短生命周期进程,不保存宿主实例、心跳或租约。受管 ACP 目标用 pbot 自有环境标记跳过重复注入。宿主明确提供子代理身份时使用专家职责;独立原生团队的职责仍由 Claude 自己组织,不读取私有身份文件。
|
|
32
31
|
|
|
33
|
-
##
|
|
32
|
+
## 命令与停用
|
|
34
33
|
|
|
35
|
-
|
|
34
|
+
`init` 补建工作区资料并启用共用配置;`status` 只读取工作区和配置状态。原生 `/personal-bot:pbot` 是模型技能;需要确定性执行时直接运行 Node 命令。
|
|
36
35
|
|
|
37
|
-
|
|
36
|
+
停用配置后停止后续业务资料注入与工作方法调用。原生会话、团队及插件卸载由 Claude 管理,已有环境、用户资料、历史与备份保留。计算通过原生 Bash 使用项目环境,方法按任务读取。
|
|
38
37
|
|
|
39
38
|
## 升级与验证
|
|
40
39
|
|
|
41
40
|
最低及当前原生检查基线是 Claude Code 2.1.325;Node 消费基线为 22.19+,完整开发使用 Linux、Node 24.9+。后续升级检查公开 hook 输入/输出、manifest、技能与专家发现,不再维护 Claude 内部记录版本白名单或大型宿主声明快照。
|
|
42
41
|
|
|
43
|
-
本地测试使用真实临时目录、Node
|
|
42
|
+
本地测试使用真实临时目录、Node 进程及共用服务,核对固定根、停用无副作用、配置保留、错误处理和结构化 hook 输出。消费检查安装实际 tarball 并执行原生 `claude plugin validate`,另将 tarball 直接解压,在没有 node_modules 的条件下执行确定性命令、hook 和启用工作区的资料读取。原生 marketplace 缓存不安装 npm 依赖,因此解包后的 Node 入口必须独立运行。
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
真实模型验收在已批准且不含个人凭据的环境完成,核对:首任务资料与工作区、资源路径可见;工作区资料修改在下一轮生效;技能加载;原生专家职责与继续;用户选择的原生团队行为。无模型的进程测试与静态校验只报告实际覆盖范围,不替代这些模型行为检查。结果写任务、PR 或 CI,不维护验证日记。
|
package/docs/claude-code.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Claude Code 使用
|
|
2
2
|
|
|
3
|
-
Personal Bot 在 Claude Code
|
|
3
|
+
Personal Bot 在 Claude Code 中提供工作区资料、专业技能和原生通用专家。会话、模型、工具、MCP、团队与恢复由 Claude 自己管理。
|
|
4
4
|
|
|
5
5
|
## 安装与启用
|
|
6
6
|
|
|
7
|
-
支持 Linux 和 macOS,需要 Node.js 22.19
|
|
7
|
+
支持 Linux 和 macOS,需要 Node.js 22.19+。Claude Code 当前最低及开发检查基线为 2.1.325。按[官方指南](https://code.claude.com/docs/en/quickstart)完成原生登录或 API 配置,然后在 Claude 中安装:
|
|
8
8
|
|
|
9
9
|
```text
|
|
10
10
|
/plugin install personal-bot --marketplace realqiyan/personal-bot
|
|
@@ -17,21 +17,20 @@ Personal Bot 在 Claude Code 中提供工作区资料、专业技能、原生通
|
|
|
17
17
|
/personal-bot:pbot status
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
这是 Claude 的原生技能入口,会由模型执行插件的 Node 命令。`init` 补建资料目录和根 `AGENTS.md`,将该根目录 `.pbot/config.json` 的 `enabled` 设为 true
|
|
20
|
+
这是 Claude 的原生技能入口,会由模型执行插件的 Node 命令。`init` 补建资料目录和根 `AGENTS.md`,将该根目录 `.pbot/config.json` 的 `enabled` 设为 true。已有资料、配置字段和 `CLAUDE.md` 保留。未配置、停用或配置无效时,插件只提供初始化提示;技能与专家的静态目录仍可能可见。
|
|
21
21
|
|
|
22
22
|
需要直接执行确定性命令时,使用实际插件目录:
|
|
23
23
|
|
|
24
24
|
```sh
|
|
25
25
|
node /absolute/path/to/personal-bot/lib/claude.js init
|
|
26
26
|
node /absolute/path/to/personal-bot/lib/claude.js status
|
|
27
|
-
node /absolute/path/to/personal-bot/lib/claude.js python setup
|
|
28
27
|
```
|
|
29
28
|
|
|
30
|
-
从工作区根目录执行。Claude hook 中的根目录取 `CLAUDE_PROJECT_DIR`,固定为启动项目;在普通 shell 中未提供该变量时使用当前目录。`status`
|
|
29
|
+
从工作区根目录执行。Claude hook 中的根目录取 `CLAUDE_PROJECT_DIR`,固定为启动项目;在普通 shell 中未提供该变量时使用当前目录。`status` 只读工作区及当前配置状态。`pbot setup` 仍是 Pi 安装器,Claude 的安装、更新、认证、模型和权限使用原生入口。
|
|
31
30
|
|
|
32
31
|
## 资料、技能与专家
|
|
33
32
|
|
|
34
|
-
每次用户提交任务时,标准 command hook 读取共用启用配置,并加入公共工作约定、协调者职责、根 `AGENTS.md
|
|
33
|
+
每次用户提交任务时,标准 command hook 读取共用启用配置,并加入公共工作约定、协调者职责、根 `AGENTS.md`、工作区角色补充及工作区与资源路径。修改配置或资料后在下一次任务生效。Claude 原生加载 `CLAUDE.md`、用户规则和原生工具;用户在 `CLAUDE.md` 中另行导入 `AGENTS.md` 时,也会保留其原生来源。
|
|
35
34
|
|
|
36
35
|
专业方法使用 `/personal-bot:project-maintenance` 和 `/personal-bot:provider-connections`。插件提供这些技能的静态目录,正文由 Claude 按需加载;未启用工作区时执行方法会提示先初始化。自己的项目技能放在 Claude 原生 `.claude/skills/<name>/SKILL.md`,已有布局与配置保持原样。
|
|
37
36
|
|
|
@@ -39,17 +38,11 @@ node /absolute/path/to/personal-bot/lib/claude.js python setup
|
|
|
39
38
|
|
|
40
39
|
Claude 接入不提供 pbot 管理面板、历史工具、历史采集、自动摘要或 ACP 委派。查询旧 Claude 会话使用原生 `/resume` 等入口。Pi/dsh 保留自己的 pbot 历史与 ACP 功能,也仍可将 Claude 作为 ACP 目标;该目标适配独立于这里的插件 hooks。
|
|
41
40
|
|
|
42
|
-
##
|
|
41
|
+
## 计算与项目环境
|
|
43
42
|
|
|
44
|
-
|
|
43
|
+
计算通过 Claude 原生 Bash,使用项目声明的解释器、依赖与工作目录。通用运行方法见 [Python 计算](../resources/references/compute.md),技术指标与回测另见[计算参考](../resources/references/compute-finance.md)。所需 Python 版本与第三方库按项目要求选择和安装。
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
"/absolute/path/to/shared/.venv/bin/python" -I -c 'import numpy; print(numpy.__version__)'
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
准备失败时,hook 提示或当次 `init`、`python setup` 结果包含安装错误;`status` 只检查当前环境,不保留先前进程的安装日志。修复条件后运行 `/personal-bot:pbot python setup`。项目构建和测试使用项目声明的环境。
|
|
51
|
-
|
|
52
|
-
插件不修改 Claude 的 PATH、shell 启动文件或系统 Python。停用共用配置后,后续任务停止加入资料和准备环境;禁用或卸载插件按 Claude 原生操作完成。资料、历史、旧控制记录和共享 venv 保留。
|
|
45
|
+
停用共用配置后,后续任务停止加入 pbot 资料;禁用或卸载插件按 Claude 原生操作完成。用户已有环境、资料、历史、旧控制记录和备份保留。
|
|
53
46
|
|
|
54
47
|
## 依赖与开发检查
|
|
55
48
|
|
package/docs/dsh.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# dsh 使用说明
|
|
2
2
|
|
|
3
|
-
Personal Bot 使用 dsh 原生 Web
|
|
3
|
+
Personal Bot 使用 dsh 原生 Web 界面,提供工作区资料、专家、团队和历史查询。它与 Pi 共用资料、角色、方法及协作规则,各自管理原生会话、模型配置、认证与 MCP。
|
|
4
4
|
|
|
5
5
|
安装和更新使用 dsh 最新版,最低宿主版本为 `0.2.2-rc.1`。本文区分终端命令与聊天框中的 `/pbot` 命令,升级后可查看实际安装版的帮助。
|
|
6
6
|
|
|
7
7
|
## 安装与首次启动(CLI + 浏览器)
|
|
8
8
|
|
|
9
|
-
需要 Node.js 24.9+、npm
|
|
9
|
+
需要 Node.js 24.9+、npm 和 pnpm。新版本的 Node.js 要求以 dsh 的 engines 为准。安装使用原生插件与 profile:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
npm view @deepseek-ai/dsh@latest version engines --json
|
|
@@ -27,7 +27,7 @@ dsh 启动 Web 服务并通常自动打开浏览器。SSH 或 `--no-open` 模式
|
|
|
27
27
|
/pbot
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
`status` 显示未启用或已启动状态;`init` 补建资料目录和根 AGENTS,保留已有资料与其他配置字段,并立即启用此目录下已打开的主会话;裸 `/pbot`
|
|
30
|
+
`status` 显示未启用或已启动状态;`init` 补建资料目录和根 AGENTS,保留已有资料与其他配置字段,并立即启用此目录下已打开的主会话;裸 `/pbot` 打开管理界面。
|
|
31
31
|
|
|
32
32
|
一个 profile 可管理多个工作区。通过原生工作区选择器指定目录;默认使用系统 Documents。pbot 绑定主会话创建时的根目录,后续 cwd 变化只影响相对路径解析。
|
|
33
33
|
|
|
@@ -81,7 +81,7 @@ dsh plugin --profile pbot list personal-bot --depth 0
|
|
|
81
81
|
dsh --profile pbot
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
`update personal-bot --latest` 只选择 Personal Bot 更新到当前 `latest`,允许越过原先保存的版本范围;不带 `--latest` 的 update 受已有声明限制。更新后用 `/pbot status`
|
|
84
|
+
`update personal-bot --latest` 只选择 Personal Bot 更新到当前 `latest`,允许越过原先保存的版本范围;不带 `--latest` 的 update 受已有声明限制。更新后用 `/pbot status` 核对版本与工作区状态,旧专家需显式恢复。停用或重载插件也可能释放专家。
|
|
85
85
|
|
|
86
86
|
`dsh plugin --profile pbot` 后面的包管理参数交给 pnpm,必须选对 profile:
|
|
87
87
|
|
|
@@ -122,7 +122,7 @@ dsh --profile pbot
|
|
|
122
122
|
|
|
123
123
|
在 DeepSeek Harness 的“插件 → 添加插件”中安装并启用 `personal-bot@latest`,也可输入本地 tarball 的绝对路径。应用提供运行时和包管理,宿主与插件分别通过应用更新。
|
|
124
124
|
|
|
125
|
-
桌面应用使用独立的 desktop profile;CLI 的 pbot profile
|
|
125
|
+
桌面应用使用独立的 desktop profile;CLI 的 pbot profile 分开管理。安装后选择工作区和主会话,用 `/pbot status` 检查工作区状态。
|
|
126
126
|
|
|
127
127
|
## Task Conductor
|
|
128
128
|
|
|
@@ -159,7 +159,7 @@ task-conductor setup
|
|
|
159
159
|
|
|
160
160
|
| 页签 | 操作 |
|
|
161
161
|
| --- | --- |
|
|
162
|
-
| 工作区 |
|
|
162
|
+
| 工作区 | 启动状态、来源、目录、模型和历史整理状态;初始化启用或准备资料 |
|
|
163
163
|
| 专家 | 创建、重命名、停止、显式恢复;人工对话、附件和完整原生记录 |
|
|
164
164
|
| 团队 | 固定成员与职责、有限轮次、暂停、关闭、公共原文和长消息分页 |
|
|
165
165
|
| 历史 | 按来源与时间查询 Pi/dsh 及既有 Claude 归档,读取问答和摘要,沿父子节点导航 |
|
|
@@ -179,9 +179,8 @@ task-conductor setup
|
|
|
179
179
|
| 命令 | 用途 |
|
|
180
180
|
| --- | --- |
|
|
181
181
|
| `/pbot` | 在 Web 中打开管理界面;服务端直接执行空参数命令时返回 status |
|
|
182
|
-
| `/pbot status` |
|
|
182
|
+
| `/pbot status` | 查看工作区、版本、模型、历史、专家和团队状态 |
|
|
183
183
|
| `/pbot init` | 可选地补建资料目录与缺失的根 `AGENTS.md` |
|
|
184
|
-
| `/pbot python setup` | 重试共享 Python 环境准备并在当前 Host 进程激活 |
|
|
185
184
|
| `/pbot agent {"action":"list"}` | 专家管理,全部 action 见下表 |
|
|
186
185
|
| `/pbot chat {"agentId":"AGENT_ID","text":"补充要求"}` | 人工对话,可附文件;自动先暂停所属团队 |
|
|
187
186
|
| `/pbot records {"agentId":"AGENT_ID"}` | 读取原生专家事件,或 ACP 专家的任务与报告 |
|
package/docs/file-storage.md
CHANGED
|
@@ -17,9 +17,8 @@
|
|
|
17
17
|
| Claude 原生会话与团队存储 | 主会话、专家与团队均由 Claude 管理,pbot 不解析其私有格式 |
|
|
18
18
|
| Claude 配置根已有的 pbot/subagents/、sources/、receipts/、team-sources/ | 旧接入留下的控制记录与引用,保留只读,不由标准插件接管 |
|
|
19
19
|
| 工作区 .pbot/history/ | Pi/dsh 问答、摘要与节点关系,以及既有 Claude 归档;Pi/dsh 查询,各写本来源 |
|
|
20
|
-
| 用户级 pbot/python/.venv | 共享 Python 环境 |
|
|
21
20
|
|
|
22
|
-
各宿主管理自己的主会话、对话与原生配置。Pi/dsh 的 ACP 成员由所属主会话的控制目录管理,其对端上下文由目标宿主保存和恢复。Claude
|
|
21
|
+
各宿主管理自己的主会话、对话与原生配置。Pi/dsh 的 ACP 成员由所属主会话的控制目录管理,其对端上下文由目标宿主保存和恢复。Claude 标准插件只准备工作区资料,不建立会话控制或历史采集目录。Personal Bot 的工作区资料是普通文件,启用配置集中在 `.pbot/config.json`,不维护工作区格式版本。详细目录用途见[项目 README](../README.zh-CN.md#工作区资料)。
|
|
23
22
|
|
|
24
23
|
## 资料准备
|
|
25
24
|
|
|
@@ -86,6 +85,6 @@ I/O 失败后当前文件实例停止后续写入,不能因下一次读取成
|
|
|
86
85
|
|
|
87
86
|
0.2.0 使用新的子会话兼容线。0.1.x 的控制记录、团队记录和独立目录中的 session.jsonl 原地保留,不导入、不迁移、不自动恢复;当前列表与后台扫描不接管旧兼容线。更新前先用旧版停止活动成员,更新后重新 start。
|
|
88
87
|
|
|
89
|
-
|
|
88
|
+
加载、资料准备和重载保留已有环境、资料、历史记录及备份。Pi/dsh 扩展管理自己的子会话与历史存档,不自动导入或转换其他应用数据。
|
|
90
89
|
|
|
91
90
|
复制工作区前停止旧实例。包含 `.pbot/history/` 的副本会带上已有各来源的问答与摘要,但不会转移用户级原生会话、运行进程、环境或认证;不支持多机同时写入同步目录。
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
```mermaid
|
|
8
8
|
flowchart TD
|
|
9
|
-
A[
|
|
9
|
+
A[检查平台与 Node/npm] --> B[选择或创建工作区]
|
|
10
10
|
B --> C[读取 Pi 原生配置与包来源]
|
|
11
11
|
C --> D[选择插件与来源处理方式]
|
|
12
12
|
D --> E[展示并确认安装计划]
|
|
@@ -25,12 +25,11 @@ flowchart TD
|
|
|
25
25
|
| Pi | 当前用户共享;缺失时通过 npm 安装,已有持久安装调用原生 `pi update` |
|
|
26
26
|
| pbot 与可选插件 | 安装到所选工作区,使用 Pi 原生包管理 |
|
|
27
27
|
| tmux | 已有时复用;缺失时通过已有 Homebrew、apt、dnf、pacman、zypper 或 apk 安装 |
|
|
28
|
-
| Python | 检查 3.11+、venv 与 ensurepip;共享 venv 由 pbot 加载时准备 |
|
|
29
28
|
| 工作区启用 | 由 `/pbot init` 创建或更新 `.pbot/config.json` 的 enabled,保留其他字段;无效配置报错 |
|
|
30
29
|
| 工作区资料 | 由 `/pbot init` 补建,保留已有内容 |
|
|
31
30
|
| 插件的外部服务 | 按对应插件的安装与配置流程处理 |
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
系统适配器只安装 tmux,提权交给原生终端。升级共享 Pi 会影响其他工作区的后续启动;更换 pbot 版本前先停止活动专家。
|
|
34
33
|
|
|
35
34
|
## 插件选择
|
|
36
35
|
|
|
@@ -62,14 +61,14 @@ Git 和本地目录必须存在,且 package.json 有有效包名;独立单
|
|
|
62
61
|
|
|
63
62
|
用户选择启动后,子进程以工作区为 cwd 并继承终端,执行 `pi "/pbot init"`。Pi 完成项目信任和扩展加载后分发命令,初始化结束仍留在同一交互会话。
|
|
64
63
|
|
|
65
|
-
本次启动临时加载 `setup-guard`:若 `/pbot init` 未被注册命令处理,拦截该输入并请求 Pi 关闭,避免落入模型请求。引导文件缺失时不启动 Pi
|
|
64
|
+
本次启动临时加载 `setup-guard`:若 `/pbot init` 未被注册命令处理,拦截该输入并请求 Pi 关闭,避免落入模型请求。引导文件缺失时不启动 Pi。资料初始化结果由 pbot 报告。
|
|
66
65
|
|
|
67
66
|
| 情况 | 后续处理 |
|
|
68
67
|
| --- | --- |
|
|
69
68
|
| 必要环境、tmux、Pi 或 pbot 失败 | 停止依赖步骤并显示修复方法 |
|
|
70
69
|
| 可选插件失败 | 继续其他插件,汇总后由用户选择是否启动 Pi |
|
|
71
70
|
| 下载中断或用户取消 | 保留已完成步骤;重跑时重新读取实际状态 |
|
|
72
|
-
| Pi
|
|
71
|
+
| Pi 启动或初始化失败 | 按所属组件的错误处理,保留安装结果 |
|
|
73
72
|
|
|
74
73
|
各包管理器独立执行,安装器不做整体回滚或删除环境来重试,也不保存安装完成标记。选择进入 Pi 后,失败的可选插件仍记为失败。
|
|
75
74
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
## Claude 原生入口
|
|
16
16
|
|
|
17
|
-
Claude 使用原生技能和 Agent/teams 界面。`/personal-bot:pbot init`、`status
|
|
17
|
+
Claude 使用原生技能和 Agent/teams 界面。`/personal-bot:pbot init`、`status` 是标准技能请求,由模型通过 Bash 调用同一 Node CLI;需要确定性执行时直接运行 `node <plugin>/lib/claude.js init|status`。状态输出集中展示工作区与配置信息。
|
|
18
18
|
|
|
19
19
|
专家由原生 Agent 使用 `personal-bot:general-purpose` 创建,团队的成员、通信、任务和完成通知由 Claude 管理。用户自行设置实验团队开关与 teammate mode;返回会话后明确要求继续,原生 resume/rewind 不恢复进程内 teammate。
|
|
20
20
|
|