@gavin-hu/my-pi-agent 0.16.0 → 0.17.0
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/README.md +14 -8
- package/README.zh-CN.md +14 -9
- package/extensions/bytefly/README.md +174 -101
- package/extensions/bytefly/footer/collect/entries.ts +1 -6
- package/extensions/bytefly/footer/collect/snapshot.ts +23 -9
- package/extensions/bytefly/footer/price/price.ts +12 -8
- package/extensions/bytefly/footer/register.ts +13 -1
- package/extensions/bytefly/footer/types.ts +11 -0
- package/extensions/bytefly/footer/unpriced.ts +36 -0
- package/extensions/bytefly/header/component.ts +15 -29
- package/extensions/bytefly/header/identity.ts +71 -0
- package/extensions/bytefly/header/register.ts +9 -3
- package/extensions/bytefly/index.ts +13 -5
- package/extensions/bytefly/message/format.ts +20 -13
- package/extensions/bytefly/message/register.ts +8 -7
- package/extensions/bytefly/panel/commands.ts +46 -25
- package/extensions/bytefly/panel/format.ts +49 -14
- package/extensions/bytefly/panel/join.ts +35 -9
- package/extensions/bytefly/panel/settings.ts +10 -27
- package/extensions/bytefly/panel/skills.ts +51 -0
- package/extensions/bytefly/panel/tui/extensions-view.ts +7 -61
- package/extensions/bytefly/panel/tui/frame.ts +9 -1
- package/extensions/bytefly/panel/tui/list-view.ts +72 -0
- package/extensions/bytefly/panel/tui/nav.ts +71 -3
- package/extensions/bytefly/panel/tui/settings-section.ts +250 -0
- package/extensions/bytefly/panel/tui/skills-view.ts +50 -0
- package/extensions/bytefly/panel/tui.ts +223 -331
- package/extensions/bytefly/panel/types.ts +26 -8
- package/extensions/bytefly/picker/discovery.ts +32 -27
- package/extensions/bytefly/picker/resources.ts +16 -8
- package/extensions/bytefly/picker/runtime.ts +62 -34
- package/extensions/bytefly/picker/toggle.ts +16 -10
- package/extensions/bytefly/picker/types.ts +31 -13
- package/extensions/bytefly/update/format.ts +66 -8
- package/extensions/bytefly/update/patch.ts +66 -0
- package/extensions/bytefly/update/register.ts +4 -11
- package/extensions/bytefly/update/release.ts +65 -0
- package/extensions/bytefly/update/state.ts +14 -0
- package/extensions/bytefly/update/suppress.ts +47 -29
- package/extensions/bytefly/update/types.ts +15 -5
- package/extensions/check/tui.ts +2 -0
- package/extensions/context/README.md +21 -11
- package/extensions/context/format.ts +10 -8
- package/extensions/context/report.ts +21 -8
- package/extensions/context/tui.ts +26 -10
- package/extensions/context/types.ts +5 -3
- package/extensions/file-browse/README.md +29 -1
- package/extensions/file-browse/client.ts +16 -463
- package/extensions/file-browse/html.ts +7 -5
- package/extensions/file-browse/palette.ts +224 -0
- package/extensions/file-browse/router.ts +2 -2
- package/extensions/file-browse/styles.ts +8 -3
- package/extensions/file-browse/tree.ts +381 -0
- package/extensions/file-read/README.md +4 -1
- package/extensions/file-read/extract/odt.ts +7 -5
- package/extensions/goal/tools.ts +6 -11
- package/extensions/job/index.ts +20 -45
- package/extensions/job/tools.ts +51 -77
- package/extensions/memory/tools.ts +4 -6
- package/extensions/memory/tui.ts +5 -1
- package/extensions/plan/README.md +88 -33
- package/extensions/plan/commands.ts +19 -4
- package/extensions/plan/config.ts +27 -0
- package/extensions/plan/plan-index.ts +3 -1
- package/extensions/plan/plans.ts +31 -13
- package/extensions/plan/review.ts +34 -14
- package/extensions/plan/runtime.ts +3 -1
- package/extensions/plan/steps.ts +43 -14
- package/extensions/plan/tools/cancel.ts +79 -0
- package/extensions/plan/tools/enter.ts +10 -10
- package/extensions/plan/tools/exit.ts +54 -43
- package/extensions/plan/tools/steps.ts +7 -19
- package/extensions/plan/tools/write.ts +22 -29
- package/extensions/plan/tools.ts +5 -2
- package/extensions/plan/tui.ts +9 -7
- package/extensions/plan/types.ts +8 -0
- package/extensions/plan/web-chrome.ts +101 -0
- package/extensions/plan/web-client.ts +98 -311
- package/extensions/plan/web-markdown.ts +222 -0
- package/extensions/plan/web-page.ts +28 -2
- package/extensions/plan/web-router.ts +2 -2
- package/extensions/rewind/checklist.ts +4 -0
- package/extensions/rewind/review-tui.ts +3 -1
- package/extensions/rewind/rewind-tui.ts +4 -0
- package/extensions/subagent/README.md +25 -12
- package/extensions/subagent/format.ts +72 -25
- package/extensions/subagent/index.ts +21 -47
- package/extensions/subagent/orchestrate.ts +18 -41
- package/extensions/subagent/render.ts +29 -42
- package/extensions/subagent/stream.ts +24 -18
- package/extensions/subagent/types.ts +7 -0
- package/extensions/todo/tools.ts +5 -6
- package/extensions/todo/tui.ts +5 -1
- package/extensions/watch/index.ts +10 -35
- package/extensions/watch/tools.ts +31 -59
- package/extensions/wechat/README.md +40 -18
- package/extensions/wechat/bridge.ts +38 -40
- package/extensions/wechat/client.ts +1 -4
- package/extensions/wechat/commands.ts +1 -1
- package/extensions/wechat/interaction.ts +25 -4
- package/extensions/wechat/login-screen.ts +2 -3
- package/extensions/wechat/notices.ts +7 -5
- package/extensions/wechat/prompt.ts +19 -4
- package/extensions/wechat/qrcode.ts +9 -9
- package/extensions/wechat/slash.ts +14 -0
- package/extensions/wechat/status-screen.ts +2 -2
- package/extensions/wechat/tools.ts +3 -11
- package/extensions/worktree/README.md +48 -12
- package/extensions/worktree/commands.ts +109 -65
- package/extensions/worktree/enter.ts +1 -1
- package/extensions/worktree/exit.ts +11 -1
- package/extensions/worktree/lifecycle.ts +9 -1
- package/extensions/worktree/screen.ts +263 -0
- package/extensions/worktree/status.ts +84 -38
- package/lib/README.md +7 -6
- package/lib/config.ts +12 -0
- package/lib/format.ts +6 -2
- package/lib/interaction.ts +18 -1
- package/lib/report.ts +75 -2
- package/lib/tool-result.ts +54 -4
- package/lib/tui/README.md +16 -8
- package/lib/tui/chrome.ts +27 -6
- package/lib/tui/dock-screen.ts +6 -2
- package/lib/tui/gauge.ts +9 -5
- package/lib/usage.ts +26 -0
- package/lib/web/README.md +131 -0
- package/lib/web/base.ts +19 -2
- package/lib/web/components.ts +10 -6
- package/lib/web/layout.ts +2 -0
- package/lib/web/markup.ts +2 -1
- package/lib/web/runtime.ts +103 -25
- package/lib/web/tokens.ts +23 -7
- package/package.json +3 -1
- package/skills/changelog/SKILL.md +57 -45
- package/skills/next/SKILL.md +184 -0
package/README.md
CHANGED
|
@@ -74,9 +74,12 @@ Then, from inside Pi:
|
|
|
74
74
|
every loaded extension with its runtime health, enables or disables one, and
|
|
75
75
|
clears a project override with `x`.
|
|
76
76
|
- `/bytefly settings` opens the control center's Settings section: one flat list
|
|
77
|
-
of the
|
|
77
|
+
of the thirteen preferences a session changes, each with its value beside the
|
|
78
78
|
label, `Space`/`Enter` to change one and `Tab` for Global/Project scope. Every
|
|
79
79
|
other key is a `bytefly.json` edit, listed in the configuration reference.
|
|
80
|
+
- `/bytefly skills` opens the control center's Skills section: one row per Pi
|
|
81
|
+
skill with its enable checkbox, its declared description underneath, and
|
|
82
|
+
`Space` to switch it on or off for the active scope.
|
|
80
83
|
- `/bytefly doctor [extension] [refresh]` prints the doctor report —
|
|
81
84
|
`run_doctor`'s text — and checks that each enabled extension has what it needs
|
|
82
85
|
at runtime.
|
|
@@ -87,9 +90,11 @@ Then, from inside Pi:
|
|
|
87
90
|
|
|
88
91
|
One thing the pack does on its own: once per interactive session, `bytefly`
|
|
89
92
|
asks Pi's package manager which configured packages are behind, suppresses Pi's
|
|
90
|
-
own startup update
|
|
91
|
-
`pi update --extensions
|
|
92
|
-
|
|
93
|
+
own startup update blocks, and posts one themed notice naming
|
|
94
|
+
`pi update --extensions`, plus one for a newer Pi that names `pi update` and the
|
|
95
|
+
changelog; a new version also marks the header — this package's, and Pi's own.
|
|
96
|
+
Nothing about the session is sent — Pi's own release request is only re-rendered —
|
|
97
|
+
and `PI_OFFLINE` skips the check;
|
|
93
98
|
[`docs/security.md`](./docs/security.md) covers the trust boundaries.
|
|
94
99
|
|
|
95
100
|
## What you get
|
|
@@ -101,7 +106,7 @@ to do. Each extension's own `README.md` has the full tool and command surface.
|
|
|
101
106
|
|
|
102
107
|
| Extension | Tools and commands | What it does |
|
|
103
108
|
|---|---|---|
|
|
104
|
-
| [`plan`](./extensions/plan/) | `enter_plan_mode`, `write_plan`, `exit_plan_mode`, `set_plan_steps`, `/plan`, `--plan` | Read-only planning: the model investigates, saves a plan under `.pi/plans`, and you approve it before anything is written. Review in the TUI, or open it in a browser to leave inline comments. The `init` skill uses the same review to create or update a project's `AGENTS.md`. |
|
|
109
|
+
| [`plan`](./extensions/plan/) | `enter_plan_mode`, `write_plan`, `exit_plan_mode`, `cancel_plan_mode`, `set_plan_steps`, `/plan`, `--plan` | Read-only planning: the model investigates, saves a plan under `.pi/plans`, and you approve it before anything is written. Review in the TUI, or open it in a browser to leave inline comments. The `init` skill uses the same review to create or update a project's `AGENTS.md`. |
|
|
105
110
|
| [`check`](./extensions/check/) | `run_check`, `/check` | Detect the project's test, lint, or typecheck command (or take `check.command`), run it in a supervised process, and turn failures into a navigable `file:line` list. |
|
|
106
111
|
| [`subagent`](./extensions/subagent/) | `subagent`, `/agents` | Delegate a task to a specialist agent (`explorer`, `planner`, `reviewer`, `worker`, `researcher`, `tester`, `debugger`, `documenter`) in its own Pi process — single, parallel, chained, or in the background, with a footer chip while it runs and a finish notice. |
|
|
107
112
|
| [`todo`](./extensions/todo/) | `todo`, `/todos` | A persistent task list (`pending` / `in_progress` / `completed`) with a one-line widget. |
|
|
@@ -115,7 +120,7 @@ to do. Each extension's own `README.md` has the full tool and command surface.
|
|
|
115
120
|
|
|
116
121
|
| Extension | Tools and commands | What it does |
|
|
117
122
|
|---|---|---|
|
|
118
|
-
| [`worktree`](./extensions/worktree/) | `enter_worktree`, `exit_worktree`, `prune_worktrees`, `list_worktrees`, `/worktree
|
|
123
|
+
| [`worktree`](./extensions/worktree/) | `enter_worktree`, `exit_worktree`, `prune_worktrees`, `list_worktrees`, `/worktree` (screen), `/worktree enter|exit|prune`, `--worktree` | Work inside an isolated `git worktree` on its own branch; the built-in read/write/edit/bash tools follow, and cleanup refuses to throw work away. |
|
|
119
124
|
| [`rewind`](./extensions/rewind/) | `/rewind`, `/review`, `↺ N` status chip | Snapshot the repo on every prompt under `refs/pi/rewind`, restore code, conversation, or both, and review the latest turn's changes before reverting a file. |
|
|
120
125
|
| [`memory`](./extensions/memory/) | `memory`, `/memory` | Durable cross-session notes as human-editable markdown, injected into each run and managed through the `/memory` picker. |
|
|
121
126
|
|
|
@@ -133,7 +138,7 @@ to do. Each extension's own `README.md` has the full tool and command surface.
|
|
|
133
138
|
|
|
134
139
|
| Extension | Tools and commands | What it does |
|
|
135
140
|
|---|---|---|
|
|
136
|
-
| [`bytefly`](./extensions/bytefly/) | `/bytefly` (with the `doctor`, `settings`, and `update` subcommands), `run_doctor` | The visible layer: a themed header with a width-adaptive footer, a live run line on Pi's working row (tool, tool count, and elapsed time), and a transcript where every tool block leads with its call line and rails its result under it. `/bytefly` switches extensions and holds the curated settings; opt-in `notify` raises OS notifications when a run, a job, or a question needs you. `bytefly.json` is the config document every extension reads. |
|
|
141
|
+
| [`bytefly`](./extensions/bytefly/) | `/bytefly` (with the `doctor`, `settings`, `skills`, and `update` subcommands), `run_doctor` | The visible layer: a themed header with a width-adaptive footer, a live run line on Pi's working row (tool, tool count, and elapsed time), and a transcript where every tool block leads with its call line and rails its result under it. `/bytefly` switches extensions and skills and holds the curated settings; opt-in `notify` raises OS notifications when a run, a job, or a question needs you, and Pi's own startup update blocks become themed notices and header markers. `bytefly.json` is the config document every extension reads. |
|
|
137
142
|
|
|
138
143
|
### Skills
|
|
139
144
|
|
|
@@ -145,7 +150,8 @@ advertised to the model, and its instructions load only when the task matches
|
|
|
145
150
|
|---|---|
|
|
146
151
|
| [`init`](./skills/init/SKILL.md) | Creates or updates a project's `AGENTS.md` through a built-in interactive interview and plan review, from repository evidence. |
|
|
147
152
|
| [`refactor`](./skills/refactor/SKILL.md) | Audits a project or path for refactoring opportunities: duplication, oversized modules, coupling, drift, and high-churn code with weak tests. Returns a ranked shortlist with evidence and verification commands; discovery is read-only. |
|
|
148
|
-
| [`changelog`](./skills/changelog/SKILL.md) |
|
|
153
|
+
| [`changelog`](./skills/changelog/SKILL.md) | Records one user-visible bullet in the same commit as the change, audits commits since the last tag for missing or weak entries, and curates a release section from the project's own rules. |
|
|
154
|
+
| [`next`](./skills/next/SKILL.md) | Triages what to do next — loose work, a broken or unfinished promise — from the tree or from this conversation (`/skill:next session`), with the words and a path after the command saying what to ask and where to look. Read-only, and capped at a short ranked list with evidence and the command that starts each. |
|
|
149
155
|
|
|
150
156
|
### Themes
|
|
151
157
|
|
package/README.zh-CN.md
CHANGED
|
@@ -64,9 +64,11 @@ Windows、macOS 和 Linux 均可运行,完整检查套件在每个平台上都
|
|
|
64
64
|
|
|
65
65
|
- `/bytefly [extension] [refresh]` 打开控制中心的 Extensions 区,列出每个已加载扩展
|
|
66
66
|
及其运行时健康状况,启用或禁用一个扩展,并用 `x` 清除项目级覆盖。
|
|
67
|
-
- `/bytefly settings` 打开控制中心的 Settings
|
|
67
|
+
- `/bytefly settings` 打开控制中心的 Settings 区:一次会话会改动的十三项设置排成
|
|
68
68
|
一列,值紧跟在名称之后;用 `Space`/`Enter` 修改,用 `Tab` 切换 Global/Project
|
|
69
69
|
作用域。其余键都是 `bytefly.json` 编辑,见配置参考。
|
|
70
|
+
- `/bytefly skills` 打开控制中心的 Skills 区:每个 Pi 技能一行,带启用复选框与
|
|
71
|
+
`SKILL.md` 声明的描述,用 `Space` 在当前作用域开关它。
|
|
70
72
|
- `/bytefly doctor [extension] [refresh]` 打印 doctor 报告(`run_doctor` 的文本),
|
|
71
73
|
检查每个已启用扩展在运行时是否具备所需条件。
|
|
72
74
|
- `/bytefly update` 立即重跑包更新检查,报告可更新的包、本包版本与 release URL,
|
|
@@ -75,20 +77,22 @@ Windows、macOS 和 Linux 均可运行,完整检查套件在每个平台上都
|
|
|
75
77
|
- `/skill:init` 通过内置的简短访谈和先审阅的计划创建或更新 `AGENTS.md`。
|
|
76
78
|
|
|
77
79
|
还有一件包会自行做的事:每次交互式会话启动时,`bytefly` 询问 Pi 的包管理器
|
|
78
|
-
哪些已配置的包有更新,抑制 Pi
|
|
79
|
-
和 `pi update --extensions
|
|
80
|
-
|
|
80
|
+
哪些已配置的包有更新,抑制 Pi 自己的启动更新块,并用主题化 notice 列出它们
|
|
81
|
+
和 `pi update --extensions`;Pi 自身的新版本也由它绘制,提示 `pi update` 与
|
|
82
|
+
changelog。新版本还会标在头部 —— 本包的与 Pi 自己的。不会发送任何会话内容
|
|
83
|
+
(Pi 自己的版本请求只是被重新绘制),`PI_OFFLINE` 可跳过检查;信任边界见
|
|
84
|
+
[`docs/security.md`](./docs/security.md)。
|
|
81
85
|
|
|
82
86
|
## 包含内容
|
|
83
87
|
|
|
84
|
-
18 个扩展、
|
|
88
|
+
18 个扩展、4 个随包技能,以及 2 个主题,按你想达成的目标分组。每个扩展自己的 `README.md`
|
|
85
89
|
提供完整的工具与命令说明。
|
|
86
90
|
|
|
87
91
|
### 规划与委派
|
|
88
92
|
|
|
89
93
|
| 扩展 | 工具与命令 | 说明 |
|
|
90
94
|
|---|---|---|
|
|
91
|
-
| [`plan`](./extensions/plan/) | `enter_plan_mode`, `write_plan`, `exit_plan_mode`, `set_plan_steps`, `/plan`, `--plan` | 只读规划:模型先调研,把计划保存到 `.pi/plans` 下,你在写入任何内容前先批准。可在 TUI 中审阅,或在浏览器中打开以留下行内评论。`init` 技能复用同一审阅流程来创建或更新项目的 `AGENTS.md`。 |
|
|
95
|
+
| [`plan`](./extensions/plan/) | `enter_plan_mode`, `write_plan`, `exit_plan_mode`, `cancel_plan_mode`, `set_plan_steps`, `/plan`, `--plan` | 只读规划:模型先调研,把计划保存到 `.pi/plans` 下,你在写入任何内容前先批准。可在 TUI 中审阅,或在浏览器中打开以留下行内评论。`init` 技能复用同一审阅流程来创建或更新项目的 `AGENTS.md`。 |
|
|
92
96
|
| [`check`](./extensions/check/) | `run_check`, `/check` | 检测项目的测试、lint 或类型检查命令(或使用 `check.command`),在受监管的进程中运行,并把失败整理成可导航的 `file:line` 列表。 |
|
|
93
97
|
| [`subagent`](./extensions/subagent/) | `subagent`, `/agents` | 把任务委派给专职智能体(`explorer`、`planner`、`reviewer`、`worker`、`researcher`、`tester`、`debugger`、`documenter`),运行在它自己的 Pi 进程中 —— 单个、并行、链式或在后台运行;后台运行时在页脚显示数量,完成后发出提示。 |
|
|
94
98
|
| [`todo`](./extensions/todo/) | `todo`, `/todos` | 持久任务列表(`pending` / `in_progress` / `completed`),配一行式 widget。 |
|
|
@@ -102,7 +106,7 @@ Windows、macOS 和 Linux 均可运行,完整检查套件在每个平台上都
|
|
|
102
106
|
|
|
103
107
|
| 扩展 | 工具与命令 | 说明 |
|
|
104
108
|
|---|---|---|
|
|
105
|
-
| [`worktree`](./extensions/worktree/) | `enter_worktree`, `exit_worktree`, `prune_worktrees`, `list_worktrees`, `/worktree
|
|
109
|
+
| [`worktree`](./extensions/worktree/) | `enter_worktree`, `exit_worktree`, `prune_worktrees`, `list_worktrees`, `/worktree` (screen), `/worktree enter|exit|prune`, `--worktree` | 在隔离的 `git worktree` 里、在独立分支上工作;内置的 read/write/edit/bash 工具会跟随,清理时也不会丢弃工作。 |
|
|
106
110
|
| [`rewind`](./extensions/rewind/) | `/rewind`, `/review`, `↺ N` 状态标记 | 每次提示时在 `refs/pi/rewind` 下对仓库生成快照,可恢复代码、对话或两者,并在还原文件前审阅本轮改动。 |
|
|
107
111
|
| [`memory`](./extensions/memory/) | `memory`, `/memory` | 跨会话的持久笔记,以可人工编辑的 Markdown 保存,注入每次运行,并通过 `/memory` 选择器管理。 |
|
|
108
112
|
|
|
@@ -120,7 +124,7 @@ Windows、macOS 和 Linux 均可运行,完整检查套件在每个平台上都
|
|
|
120
124
|
|
|
121
125
|
| 扩展 | 工具与命令 | 说明 |
|
|
122
126
|
|---|---|---|
|
|
123
|
-
| [`bytefly`](./extensions/bytefly/) | `/bytefly`(`doctor`、`settings`、`update` 子命令)、`run_doctor` | 可见的那一层:主题化头部配宽度自适应页脚,Pi 工作行上实时显示工具、调用次数与计时,转录中每个工具块以调用行为标题、结果正文挂在其下方。`/bytefly`
|
|
127
|
+
| [`bytefly`](./extensions/bytefly/) | `/bytefly`(`doctor`、`settings`、`skills`、`update` 子命令)、`run_doctor` | 可见的那一层:主题化头部配宽度自适应页脚,Pi 工作行上实时显示工具、调用次数与计时,转录中每个工具块以调用行为标题、结果正文挂在其下方。`/bytefly` 可开关扩展与技能,并集中存放精选设置;可选的 `notify` 会在一次运行、后台任务或待回答的问题需要你时发出系统通知,Pi 自己的启动更新块也会变成主题化 notice 与头部标记。`bytefly.json` 是每个扩展都会读取的配置文档。 |
|
|
124
128
|
|
|
125
129
|
### 技能
|
|
126
130
|
|
|
@@ -130,7 +134,8 @@ Windows、macOS 和 Linux 均可运行,完整检查套件在每个平台上都
|
|
|
130
134
|
|---|---|
|
|
131
135
|
| [`init`](./skills/init/SKILL.md) | 基于仓库证据,通过内置的交互式访谈和计划审阅创建或更新项目的 `AGENTS.md`。 |
|
|
132
136
|
| [`refactor`](./skills/refactor/SKILL.md) | 审计项目或路径中的重构机会:重复代码、过大的模块、耦合、结构漂移,以及测试薄弱且改动频繁的代码。返回带证据和验证命令的排序清单;发现阶段只读。 |
|
|
133
|
-
| [`changelog`](./skills/changelog/SKILL.md) |
|
|
137
|
+
| [`changelog`](./skills/changelog/SKILL.md) | 在变更的同一次提交中记录一条用户可见的条目,审计上一个 tag 以来缺失或薄弱的条目,并按项目自己的规则整理发布段落。 |
|
|
138
|
+
| [`next`](./skills/next/SKILL.md) | 梳理接下来该做什么——未收尾的工作、已破坏或未兑现的承诺——可基于代码树或本次会话(`/skill:next session`),命令后的文字说明问什么、路径说明看哪里。只读,输出带证据和启动命令的简短排序清单。 |
|
|
134
139
|
|
|
135
140
|
### 主题
|
|
136
141
|
|