@gavin-hu/my-pi-agent 0.11.3 → 0.12.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 +13 -8
- package/README.zh-CN.md +5 -3
- package/assets/chrome.png +0 -0
- package/assets/plan-review.png +0 -0
- package/extensions/bytefly/README.md +291 -207
- package/extensions/bytefly/doctor/runtime.ts +16 -0
- package/extensions/bytefly/doctor/tools.ts +1 -3
- package/extensions/bytefly/footer/price/config.ts +54 -15
- package/extensions/bytefly/footer/price/price.ts +20 -7
- package/extensions/bytefly/footer/price/types.ts +13 -7
- package/extensions/bytefly/footer/render/format.ts +3 -2
- package/extensions/bytefly/footer/render/segments.ts +3 -2
- package/extensions/bytefly/footer/types.ts +1 -0
- package/extensions/bytefly/header/component.ts +21 -6
- package/extensions/bytefly/header/config.ts +3 -0
- package/extensions/bytefly/header/register.ts +34 -3
- package/extensions/bytefly/index.ts +13 -3
- package/extensions/bytefly/panel/settings-runtime.ts +71 -28
- package/extensions/bytefly/panel/settings.ts +201 -38
- package/extensions/bytefly/panel/tui/entries.ts +58 -0
- package/extensions/bytefly/panel/tui/extensions-view.ts +86 -0
- package/extensions/bytefly/panel/tui/frame.ts +71 -0
- package/extensions/bytefly/panel/tui/nav.ts +75 -0
- package/extensions/bytefly/panel/tui/settings-view.ts +115 -0
- package/extensions/bytefly/panel/tui.ts +205 -319
- package/extensions/bytefly/picker/runtime.ts +61 -2
- package/extensions/bytefly/picker/toggle.ts +56 -0
- package/extensions/bytefly/update/check.ts +59 -0
- package/extensions/bytefly/update/format.ts +32 -0
- package/extensions/bytefly/update/register.ts +72 -0
- package/extensions/bytefly/update/state.ts +28 -0
- package/extensions/bytefly/update/version.ts +83 -0
- package/extensions/document/README.md +2 -2
- package/extensions/document/tool.ts +1 -3
- package/extensions/file-open/README.md +30 -15
- package/extensions/file-open/index.ts +4 -3
- package/extensions/file-open/open.ts +52 -21
- package/extensions/goal/README.md +39 -13
- package/extensions/goal/clarify-prompt.ts +5 -36
- package/extensions/goal/clarify.ts +55 -86
- package/extensions/goal/commands.ts +41 -35
- package/extensions/goal/format.ts +12 -4
- package/extensions/goal/tools.ts +28 -8
- package/extensions/goal/tui.ts +1 -1
- package/extensions/memory/README.md +1 -1
- package/extensions/plan/README.md +24 -8
- package/extensions/plan/blocks.ts +1 -35
- package/extensions/plan/commands.ts +18 -12
- package/extensions/plan/plans.ts +1 -1
- package/extensions/plan/policy.ts +4 -3
- package/extensions/plan/review.ts +243 -0
- package/extensions/plan/runtime.ts +4 -0
- package/extensions/plan/steps.ts +34 -23
- package/extensions/plan/todos.ts +5 -58
- package/extensions/plan/tools.ts +66 -222
- package/extensions/plan/tui.ts +17 -9
- package/extensions/plan/types.ts +3 -0
- package/extensions/plan/web-client.ts +51 -18
- package/extensions/plan/web-page.ts +5 -0
- package/extensions/plan/web-router.ts +11 -3
- package/extensions/plan/web.ts +100 -36
- package/extensions/question/README.md +1 -1
- package/extensions/question/tools.ts +1 -1
- package/extensions/subagent/index.ts +0 -2
- package/extensions/todo/README.md +19 -11
- package/extensions/todo/index.ts +5 -3
- package/extensions/todo/nudge.ts +58 -9
- package/extensions/todo/runtime.ts +28 -17
- package/extensions/web-access/README.md +3 -3
- package/extensions/web-access/fetch/tool.ts +1 -3
- package/extensions/web-access/search/tool.ts +1 -3
- package/extensions/wechat/README.md +22 -11
- package/extensions/wechat/bridge.ts +90 -22
- package/extensions/wechat/commands.ts +45 -1
- package/extensions/wechat/doctor.ts +1 -0
- package/extensions/wechat/index.ts +3 -1
- package/extensions/wechat/status-screen.ts +32 -2
- package/extensions/wechat/tools.ts +0 -2
- package/lib/README.md +2 -1
- package/lib/config.ts +43 -1
- package/lib/env.ts +12 -0
- package/lib/requirements.ts +76 -2
- package/lib/todo-state.ts +62 -0
- package/lib/tui/glyphs.ts +1 -0
- package/package.json +1 -1
- package/assets/bytefly.schema.json +0 -785
package/README.md
CHANGED
|
@@ -60,11 +60,13 @@ pi -e . # try it for one run
|
|
|
60
60
|
Then, from inside Pi:
|
|
61
61
|
|
|
62
62
|
- `/bytefly [extension] [refresh]` opens the control center on Extensions, lists
|
|
63
|
-
every loaded extension with its runtime health,
|
|
63
|
+
every loaded extension with its runtime health, enables or disables one, and
|
|
64
|
+
clears a project override with `x`.
|
|
64
65
|
- `/bytefly settings` opens the control center's Settings section: bytefly
|
|
65
|
-
startup TUI, desktop notifications
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
startup TUI, desktop notifications and their delivery method, the proactive
|
|
67
|
+
health check, the currency and cost precision, the transcript
|
|
68
|
+
rail glyph, output padding, and the hardware cursor, with `Space`/`Enter` to
|
|
69
|
+
change a value and `Tab` for Global/Project scope.
|
|
68
70
|
- `/bytefly doctor [extension] [refresh]` prints the doctor report —
|
|
69
71
|
`run_doctor`'s text — and checks that each enabled extension has what it needs
|
|
70
72
|
at runtime.
|
|
@@ -110,7 +112,7 @@ extension's own `README.md` has the full tool and command surface.
|
|
|
110
112
|
|
|
111
113
|
| Extension | Tools and commands | What it does |
|
|
112
114
|
|---|---|---|
|
|
113
|
-
| [`bytefly`](./extensions/bytefly/) | `/bytefly` (with the `doctor` and `settings` subcommands), `run_doctor` | A themed header and width-adaptive footer, a two-row `You` nameplate on each user message, a rule between completed turns, a shared transcript notice, a tool block that leads with its call line and rails its result body two columns under it (the rail glyph is the `chrome.rail` setting), a live elapsed counter on Pi's working row, the `/bytefly` control center — an Extensions section that lists every extension with its health and enables or disables one, plus a Settings section with
|
|
115
|
+
| [`bytefly`](./extensions/bytefly/) | `/bytefly` (with the `doctor` and `settings` subcommands), `run_doctor` | A themed header and width-adaptive footer, a two-row `You` nameplate on each user message, a rule between completed turns, a shared transcript notice, a tool block that leads with its call line and rails its result body two columns under it (the rail glyph is the `chrome.rail` setting), a live elapsed counter on Pi's working row, the `/bytefly` control center — an Extensions section that lists every extension with its health and enables or disables one, plus a Settings section with ten curated preferences across six groups, including inline text editing for the notification title (`/bytefly settings`) — `/bytefly doctor` prints the doctor report, and an opt-in `notify` capability that raises OS notifications when a run or a background job finishes or the agent asks for input, and one startup check of the published npm version, marked `↑0.12.0` in the header and announced in a transcript notice. DeepSeek is priced out of the box, and `bytefly.json` is the shared config document every extension reads. |
|
|
114
116
|
| [`bytefly-dark`](./themes/bytefly-dark.json) / [`bytefly-light`](./themes/bytefly-light.json) | `/settings` → **Theme** | A GitHub-inspired dark palette and its light companion, with optional automatic light/dark switching. |
|
|
115
117
|
|
|
116
118
|
### Screens
|
|
@@ -144,9 +146,10 @@ one image per tool under [`assets/tools/`](./assets/tools).
|
|
|
144
146
|
Most extensions need no configuration. Every setting lives in one shared
|
|
145
147
|
document, `bytefly.json`, read from `<agent-dir>/bytefly.json` and merged with
|
|
146
148
|
`<cwd>/.pi/bytefly.json` (project wins), under a top-level section named for the
|
|
147
|
-
extension. Each extension's `README.md`
|
|
148
|
-
[`docs/configuration.md`](./docs/configuration.md) indexes
|
|
149
|
-
[`
|
|
149
|
+
extension. Each extension's `README.md` covers the behaviour around its keys,
|
|
150
|
+
[`docs/configuration.md`](./docs/configuration.md) indexes the sections, and
|
|
151
|
+
[`docs/references/configuration-reference.md`](./docs/references/configuration-reference.md) lists
|
|
152
|
+
every key with its type, default, and bounds.
|
|
150
153
|
|
|
151
154
|
Every extension is on by default. To load the pack without some of them, set
|
|
152
155
|
`PI_DISABLED_EXTENSIONS` to a comma- or whitespace-separated list of extension
|
|
@@ -167,9 +170,11 @@ stops the factories from registering; to drop the whole package, use Pi's
|
|
|
167
170
|
| [Getting started](./docs/getting-started.md) | Requirements, install options, verifying the load, themes. |
|
|
168
171
|
| [Extensions](./docs/extensions.md) | The full catalog of every extension and theme. |
|
|
169
172
|
| [Configuration](./docs/configuration.md) | Config-file resolution, the per-extension index, environment variables. |
|
|
173
|
+
| [Configuration reference](./docs/references/configuration-reference.md) | Every `bytefly.json` section and key, with its type, default, and bounds. |
|
|
170
174
|
| [Architecture](./docs/architecture.md) | How the package, its extensions, and `lib/` fit together. |
|
|
171
175
|
| [Development](./docs/development.md) | Local setup, checks, tests, cross-platform notes, and the release process. |
|
|
172
176
|
| [Security](./docs/security.md) | Trust boundaries for the loopback and remote surfaces. |
|
|
177
|
+
| [Roadmap](./ROADMAP.md) | Where the pack is going, grouped by the README's promises, with the evidence behind each item. |
|
|
173
178
|
|
|
174
179
|
## Requirements
|
|
175
180
|
|
package/README.zh-CN.md
CHANGED
|
@@ -104,7 +104,7 @@ pi -e . # 试运行一次
|
|
|
104
104
|
|
|
105
105
|
| 扩展 | 工具与命令 | 说明 |
|
|
106
106
|
|---|---|---|
|
|
107
|
-
| [`bytefly`](./extensions/bytefly/) | `/bytefly`(`doctor`、`settings` 子命令)、`run_doctor` | 主题化头部与宽度自适应页脚、每条用户消息上方的两行 `You` 铭牌、已完成回合之间的分隔线、共享的转录通知、以调用行为标题并将结果正文挂在轨道下两列的工具块(轨道字形由 `chrome.rail` 设置)、Pi 工作行上的实时用时计数、`/bytefly` 控制中心——Extensions 区列出每个扩展及其健康状况并启用或禁用一个扩展,另有一个 Settings
|
|
107
|
+
| [`bytefly`](./extensions/bytefly/) | `/bytefly`(`doctor`、`settings` 子命令)、`run_doctor` | 主题化头部与宽度自适应页脚、每条用户消息上方的两行 `You` 铭牌、已完成回合之间的分隔线、共享的转录通知、以调用行为标题并将结果正文挂在轨道下两列的工具块(轨道字形由 `chrome.rail` 设置)、Pi 工作行上的实时用时计数、`/bytefly` 控制中心——Extensions 区列出每个扩展及其健康状况并启用或禁用一个扩展,另有一个 Settings 区,按六个分组提供十项常用偏好(`/bytefly settings`);`/bytefly doctor` 打印 doctor 报告;以及可选的 `notify` 能力:当一次运行或后台任务结束、或智能体请求输入时发出系统通知;另外每次交互式会话启动时会检查 npm 上已发布的版本,落后时在头部标出 `↑0.12.0` 并发出一次转录通知。DeepSeek 开箱即定价,`bytefly.json` 是每个扩展都会读取的共享配置文档。 |
|
|
108
108
|
| [`bytefly-dark`](./themes/bytefly-dark.json) / [`bytefly-light`](./themes/bytefly-light.json) | `/settings` → **Theme** | GitHub 风格的深色调色板及其浅色搭档,并支持可选的自动浅色/深色切换。 |
|
|
109
109
|
|
|
110
110
|
### 截图
|
|
@@ -136,9 +136,10 @@ pi -e . # 试运行一次
|
|
|
136
136
|
|
|
137
137
|
大多数扩展无需配置。所有设置都在一个共享文档 `bytefly.json` 中,从
|
|
138
138
|
`<agent-dir>/bytefly.json` 读取,并与 `<cwd>/.pi/bytefly.json` 合并(项目优先),
|
|
139
|
-
位于一个以扩展名命名的顶层 section 下。每个扩展的 `README.md`
|
|
139
|
+
位于一个以扩展名命名的顶层 section 下。每个扩展的 `README.md` 说明其键位的行为,
|
|
140
140
|
[`docs/configuration.md`](./docs/configuration.md) 为其建立索引,
|
|
141
|
-
[`
|
|
141
|
+
[`docs/references/configuration-reference.md`](./docs/references/configuration-reference.md) 逐个列出每个键的
|
|
142
|
+
类型、默认值和取值范围。
|
|
142
143
|
|
|
143
144
|
每个扩展默认都开启。若要在加载整包时排除其中一些,把 `PI_DISABLED_EXTENSIONS`
|
|
144
145
|
设为一个以逗号或空白分隔的扩展名列表(即 [`extensions/`](./extensions/) 下的目录
|
|
@@ -161,6 +162,7 @@ Pi 的 `--no-extensions`,或从你的设置中删除该包。
|
|
|
161
162
|
| [架构](./docs/architecture.md) | 包、各扩展与 `lib/` 如何协同。 |
|
|
162
163
|
| [开发](./docs/development.md) | 本地设置、检查、测试、跨平台注意事项与发布流程。 |
|
|
163
164
|
| [安全](./docs/security.md) | 回环与远程界面的信任边界。 |
|
|
165
|
+
| [路线图](./ROADMAP.md) | 包的下一步方向,按 README 的承诺分组,并列出每条事项的依据。 |
|
|
164
166
|
|
|
165
167
|
## 环境要求
|
|
166
168
|
|
package/assets/chrome.png
CHANGED
|
Binary file
|
package/assets/plan-review.png
CHANGED
|
Binary file
|