@gavin-hu/my-pi-agent 0.12.0 → 0.13.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.
Files changed (153) hide show
  1. package/README.md +28 -21
  2. package/README.zh-CN.md +30 -22
  3. package/extensions/bytefly/README.md +139 -67
  4. package/extensions/bytefly/chrome.ts +7 -2
  5. package/extensions/bytefly/doctor/register.ts +6 -0
  6. package/extensions/bytefly/doctor/runtime.ts +36 -6
  7. package/extensions/bytefly/footer/collect/snapshot.ts +12 -2
  8. package/extensions/bytefly/footer/config.ts +7 -1
  9. package/extensions/bytefly/footer/delegation.ts +100 -0
  10. package/extensions/bytefly/footer/register.ts +13 -2
  11. package/extensions/bytefly/footer/render/lines.ts +2 -0
  12. package/extensions/bytefly/footer/render/segments.ts +27 -0
  13. package/extensions/bytefly/footer/types.ts +11 -0
  14. package/extensions/bytefly/index.ts +4 -3
  15. package/extensions/bytefly/notify/config.ts +2 -0
  16. package/extensions/bytefly/notify/format.ts +19 -1
  17. package/extensions/bytefly/notify/register.ts +37 -13
  18. package/extensions/bytefly/notify/types.ts +2 -0
  19. package/extensions/bytefly/panel/commands.ts +34 -13
  20. package/extensions/bytefly/panel/settings.ts +98 -16
  21. package/extensions/bytefly/update/cache.ts +73 -0
  22. package/extensions/bytefly/update/format.ts +65 -10
  23. package/extensions/bytefly/update/register.ts +99 -13
  24. package/extensions/bytefly/update/state.ts +13 -1
  25. package/extensions/document/README.md +22 -12
  26. package/extensions/document/config.ts +4 -0
  27. package/extensions/document/deadline.ts +61 -0
  28. package/extensions/document/tool.ts +13 -2
  29. package/extensions/file-browse/README.md +12 -8
  30. package/extensions/file-browse/client.ts +6 -7
  31. package/extensions/file-browse/files.ts +0 -4
  32. package/extensions/file-browse/git.ts +9 -10
  33. package/extensions/file-browse/html.ts +17 -7
  34. package/extensions/file-browse/router.ts +24 -15
  35. package/extensions/goal/README.md +7 -1
  36. package/extensions/goal/schema.ts +6 -2
  37. package/extensions/goal/types.ts +6 -2
  38. package/extensions/job/README.md +16 -12
  39. package/extensions/job/runtime.ts +23 -6
  40. package/extensions/job/status.ts +4 -2
  41. package/extensions/memory/README.md +55 -13
  42. package/extensions/memory/commands.ts +20 -2
  43. package/extensions/memory/doctor.ts +137 -0
  44. package/extensions/memory/format.ts +24 -7
  45. package/extensions/memory/runtime.ts +49 -0
  46. package/extensions/memory/store.ts +31 -0
  47. package/extensions/memory/tui.ts +136 -12
  48. package/extensions/plan/README.md +60 -29
  49. package/extensions/plan/commands.ts +67 -8
  50. package/extensions/plan/index.ts +35 -11
  51. package/extensions/plan/plan-index.ts +234 -0
  52. package/extensions/plan/plan-text.ts +95 -0
  53. package/extensions/plan/plans.ts +90 -1
  54. package/extensions/plan/review.ts +12 -9
  55. package/extensions/plan/runtime.ts +72 -27
  56. package/extensions/plan/steps.ts +35 -25
  57. package/extensions/plan/todos.ts +24 -2
  58. package/extensions/plan/tools.ts +124 -24
  59. package/extensions/plan/tui.ts +7 -28
  60. package/extensions/plan/types.ts +9 -0
  61. package/extensions/plan/web-page.ts +2 -2
  62. package/extensions/plan/web.ts +12 -11
  63. package/extensions/rewind/README.md +28 -8
  64. package/extensions/rewind/commands.ts +1 -1
  65. package/extensions/rewind/format.ts +4 -4
  66. package/extensions/rewind/git.ts +56 -18
  67. package/extensions/rewind/index.ts +3 -5
  68. package/extensions/rewind/path-picker.ts +198 -0
  69. package/extensions/rewind/paths.ts +128 -0
  70. package/extensions/rewind/restore.ts +69 -28
  71. package/extensions/rewind/rewind.ts +80 -3
  72. package/extensions/rewind/runtime.ts +13 -5
  73. package/extensions/rewind/snapshot-run.ts +5 -2
  74. package/extensions/rewind/types.ts +2 -0
  75. package/extensions/subagent/README.md +7 -1
  76. package/extensions/subagent/accounting.ts +34 -0
  77. package/extensions/subagent/index.ts +23 -1
  78. package/extensions/subagent/stream.ts +2 -0
  79. package/extensions/subagent/types.ts +2 -0
  80. package/extensions/watch/README.md +8 -3
  81. package/extensions/watch/index.ts +19 -0
  82. package/extensions/web-access/README.md +43 -13
  83. package/extensions/web-access/charset.ts +58 -0
  84. package/extensions/web-access/fetch/find.ts +11 -7
  85. package/extensions/web-access/fetch/format.ts +64 -18
  86. package/extensions/web-access/fetch/page.ts +5 -1
  87. package/extensions/web-access/fetch/tool.ts +19 -18
  88. package/extensions/web-access/http.ts +49 -8
  89. package/extensions/web-access/search/facts.ts +38 -0
  90. package/extensions/web-access/search/tool.ts +13 -0
  91. package/extensions/web-access/text.ts +50 -11
  92. package/extensions/worktree/README.md +74 -15
  93. package/extensions/worktree/config.ts +11 -0
  94. package/extensions/worktree/exit.ts +35 -3
  95. package/extensions/worktree/gaps.ts +74 -0
  96. package/extensions/worktree/guard.ts +50 -4
  97. package/extensions/worktree/handoff.ts +55 -0
  98. package/extensions/worktree/index.ts +12 -2
  99. package/extensions/worktree/runtime.ts +20 -0
  100. package/extensions/worktree/status.ts +15 -2
  101. package/extensions/worktree/tools.ts +3 -2
  102. package/lib/README.md +10 -8
  103. package/lib/events.ts +86 -1
  104. package/lib/goal-state.ts +95 -0
  105. package/lib/requirements.ts +282 -62
  106. package/lib/tui/README.md +91 -0
  107. package/lib/tui/glyphs.ts +1 -0
  108. package/lib/web/layout.ts +12 -2
  109. package/package.json +5 -3
  110. package/themes/bytefly-dark.json +1 -1
  111. package/assets/chrome.png +0 -0
  112. package/assets/file-browse.png +0 -0
  113. package/assets/job.png +0 -0
  114. package/assets/plan-review.png +0 -0
  115. package/assets/question.png +0 -0
  116. package/assets/rewind.png +0 -0
  117. package/assets/todo.png +0 -0
  118. package/assets/tool-renderings.png +0 -0
  119. package/assets/tools/ask_user_question-cancelled.png +0 -0
  120. package/assets/tools/ask_user_question.png +0 -0
  121. package/assets/tools/bash.png +0 -0
  122. package/assets/tools/edit.png +0 -0
  123. package/assets/tools/enter_plan_mode.png +0 -0
  124. package/assets/tools/enter_worktree.png +0 -0
  125. package/assets/tools/exit_plan_mode.png +0 -0
  126. package/assets/tools/exit_worktree.png +0 -0
  127. package/assets/tools/find.png +0 -0
  128. package/assets/tools/goal.png +0 -0
  129. package/assets/tools/grep.png +0 -0
  130. package/assets/tools/job.png +0 -0
  131. package/assets/tools/list_worktrees.png +0 -0
  132. package/assets/tools/ls.png +0 -0
  133. package/assets/tools/memory-long-subject.png +0 -0
  134. package/assets/tools/memory.png +0 -0
  135. package/assets/tools/notice.png +0 -0
  136. package/assets/tools/open_path.png +0 -0
  137. package/assets/tools/prune_worktrees.png +0 -0
  138. package/assets/tools/read.png +0 -0
  139. package/assets/tools/read_doc-running.png +0 -0
  140. package/assets/tools/read_doc.png +0 -0
  141. package/assets/tools/run_doctor.png +0 -0
  142. package/assets/tools/send_wechat.png +0 -0
  143. package/assets/tools/set_plan_steps.png +0 -0
  144. package/assets/tools/subagent.png +0 -0
  145. package/assets/tools/todo.png +0 -0
  146. package/assets/tools/turn-rule.png +0 -0
  147. package/assets/tools/user-message.png +0 -0
  148. package/assets/tools/watch.png +0 -0
  149. package/assets/tools/web_fetch-rejected.png +0 -0
  150. package/assets/tools/web_fetch.png +0 -0
  151. package/assets/tools/web_search.png +0 -0
  152. package/assets/tools/write.png +0 -0
  153. package/assets/tools/write_plan.png +0 -0
package/README.md CHANGED
@@ -3,13 +3,13 @@
3
3
  **English** · [简体中文](./README.zh-CN.md)
4
4
 
5
5
  [![CI](https://github.com/gavin-hu/my-pi-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/gavin-hu/my-pi-agent/actions/workflows/ci.yml)
6
+ [![npm](https://img.shields.io/npm/v/%40gavin-hu%2Fmy-pi-agent)](https://www.npmjs.com/package/@gavin-hu/my-pi-agent)
6
7
  [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
7
8
  [![built for Pi](https://img.shields.io/badge/built%20for-Pi-5A4FCF)](https://pi.dev)
8
9
 
9
- Plan before you act, delegate the work, keep the main checkout clean, and carry
10
- context across sessions. `my-pi-agent` is a single [Pi](https://pi.dev) package
11
- that adds sixteen extensions and two themes — install the pack, turn off what
12
- you do not want, and keep using Pi unchanged.
10
+ `my-pi-agent` is a single [Pi](https://pi.dev) package that adds a curated set
11
+ of extensions and themes to the agent you already use — install the pack, turn
12
+ off what you do not want, and keep using Pi unchanged.
13
13
 
14
14
  ![A terminal window running the Pi TUI with the bytefly header, hint row, context and loaded extensions, a turn separator, and the status bar](assets/chrome.png)
15
15
 
@@ -20,7 +20,6 @@ you do not want, and keep using Pi unchanged.
20
20
  - [What you get](#what-you-get)
21
21
  - [Configuration](#configuration)
22
22
  - [Documentation](#documentation)
23
- - [Requirements](#requirements)
24
23
  - [Contributing](#contributing)
25
24
  - [License](#license)
26
25
 
@@ -52,11 +51,16 @@ Requires a working [Pi](https://pi.dev) installation.
52
51
  ```bash
53
52
  pi install npm:@gavin-hu/my-pi-agent # install from npm
54
53
  pi install git:github.com/gavin-hu/my-pi-agent # install from git
55
- pi install git:github.com/gavin-hu/my-pi-agent@v0.8.0 # pin a release
54
+ pi install git:github.com/gavin-hu/my-pi-agent@v0.13.0 # pin a release
56
55
  pi install ./ -l # project-local (.pi/settings.json)
57
56
  pi -e . # try it for one run
58
57
  ```
59
58
 
59
+ `git` on `PATH` is needed by [`worktree`](./extensions/worktree/) and
60
+ [`rewind`](./extensions/rewind/); everything else degrades or disables cleanly,
61
+ and `/bytefly doctor` names what is missing, including optional runtime pieces.
62
+ Windows, macOS, and Linux all work, and the full check suite runs on each in CI.
63
+
60
64
  Then, from inside Pi:
61
65
 
62
66
  - `/bytefly [extension] [refresh]` opens the control center on Extensions, lists
@@ -73,9 +77,14 @@ Then, from inside Pi:
73
77
  - `/settings` → **Theme** selects a theme.
74
78
  - `/plan <task>` starts a task in read-only planning mode.
75
79
 
80
+ One thing the pack does on its own: once per interactive session, `bytefly` asks
81
+ npm for the newest published version and marks the header when yours is older.
82
+ Nothing about the session is sent, and `PI_OFFLINE` skips the request;
83
+ [`docs/security.md`](./docs/security.md) covers the trust boundaries.
84
+
76
85
  ## What you get
77
86
 
78
- Sixteen extensions and two themes, grouped by what you are trying to do. Each
87
+ Sixteen extensions, grouped by what you are trying to do, plus two themes. Each
79
88
  extension's own `README.md` has the full tool and command surface.
80
89
 
81
90
  ### Plan and delegate
@@ -112,8 +121,16 @@ extension's own `README.md` has the full tool and command surface.
112
121
 
113
122
  | Extension | Tools and commands | What it does |
114
123
  |---|---|---|
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. |
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. |
124
+ | [`bytefly`](./extensions/bytefly/) | `/bytefly` (with the `doctor` and `settings` subcommands), `run_doctor` | The visible layer: a themed header with a width-adaptive footer, a live elapsed counter on Pi's working row, 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. |
125
+
126
+ ### Themes
127
+
128
+ [`bytefly-dark`](./themes/bytefly-dark.json) is a GitHub-inspired dark palette
129
+ and [`bytefly-light`](./themes/bytefly-light.json) its light companion, with
130
+ optional automatic light/dark switching. Installing the pack does not change
131
+ your theme: pick one through `/settings` → **Theme**, or set
132
+ `"theme": "bytefly-light/bytefly-dark"` for switching. The screenshots in this
133
+ README use `bytefly-dark`.
117
134
 
118
135
  ### Screens
119
136
 
@@ -148,7 +165,7 @@ document, `bytefly.json`, read from `<agent-dir>/bytefly.json` and merged with
148
165
  `<cwd>/.pi/bytefly.json` (project wins), under a top-level section named for the
149
166
  extension. Each extension's `README.md` covers the behaviour around its keys,
150
167
  [`docs/configuration.md`](./docs/configuration.md) indexes the sections, and
151
- [`docs/references/configuration-reference.md`](./docs/references/configuration-reference.md) lists
168
+ [`docs/references/bytefly-config.md`](./docs/references/bytefly-config.md) lists
152
169
  every key with its type, default, and bounds.
153
170
 
154
171
  Every extension is on by default. To load the pack without some of them, set
@@ -170,22 +187,12 @@ stops the factories from registering; to drop the whole package, use Pi's
170
187
  | [Getting started](./docs/getting-started.md) | Requirements, install options, verifying the load, themes. |
171
188
  | [Extensions](./docs/extensions.md) | The full catalog of every extension and theme. |
172
189
  | [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. |
190
+ | [Configuration reference](./docs/references/bytefly-config.md) | Every `bytefly.json` section and key, with its type, default, and bounds. |
174
191
  | [Architecture](./docs/architecture.md) | How the package, its extensions, and `lib/` fit together. |
175
192
  | [Development](./docs/development.md) | Local setup, checks, tests, cross-platform notes, and the release process. |
176
193
  | [Security](./docs/security.md) | Trust boundaries for the loopback and remote surfaces. |
177
194
  | [Roadmap](./ROADMAP.md) | Where the pack is going, grouped by the README's promises, with the evidence behind each item. |
178
195
 
179
- ## Requirements
180
-
181
- - **Pi** — a working installation; `my-pi-agent` is a package, not a fork.
182
- - **OS** — Windows, macOS, and Linux; the full check suite runs on all three in
183
- CI.
184
- - **git** on `PATH` for the `worktree` and `rewind` extensions; everything else
185
- degrades or disables cleanly, and `/bytefly doctor` tells you what is missing.
186
- - Optional runtime pieces (for example a browser for HTML exports) are reported
187
- per extension by `/bytefly doctor`.
188
-
189
196
  ## Contributing
190
197
 
191
198
  Contributions are welcome. Start with [`CONTRIBUTING.md`](./CONTRIBUTING.md) for
package/README.zh-CN.md CHANGED
@@ -3,12 +3,12 @@
3
3
  [English](./README.md) · **简体中文**
4
4
 
5
5
  [![CI](https://github.com/gavin-hu/my-pi-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/gavin-hu/my-pi-agent/actions/workflows/ci.yml)
6
+ [![npm](https://img.shields.io/npm/v/%40gavin-hu%2Fmy-pi-agent)](https://www.npmjs.com/package/@gavin-hu/my-pi-agent)
6
7
  [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
7
8
  [![built for Pi](https://img.shields.io/badge/built%20for-Pi-5A4FCF)](https://pi.dev)
8
9
 
9
- 先规划,再行动;委派工作,保持主检出区干净,并让上下文跨会话延续。
10
- `my-pi-agent` 是一个 [Pi](https://pi.dev) 包,新增十六个扩展和两个主题 —— 安装
11
- 整个包,关掉你不需要的部分,其余照常使用 Pi。
10
+ `my-pi-agent` 是一个 [Pi](https://pi.dev) 包,在你已经使用的智能体之上新增一组精选
11
+ 扩展和主题 —— 安装整个包,关掉你不需要的部分,其余照常使用 Pi。
12
12
 
13
13
  ![一个运行 Pi TUI 的终端窗口,包含 bytefly 头部、提示行、上下文与已加载扩展、回合分隔线以及状态栏](assets/chrome.png)
14
14
 
@@ -19,7 +19,6 @@
19
19
  - [包含内容](#包含内容)
20
20
  - [配置](#配置)
21
21
  - [文档](#文档)
22
- - [环境要求](#环境要求)
23
22
  - [参与贡献](#参与贡献)
24
23
  - [许可证](#许可证)
25
24
 
@@ -48,27 +47,36 @@ Pi 提供一个精简而锐利的内核。这个包是在其之上的一层,
48
47
  ```bash
49
48
  pi install npm:@gavin-hu/my-pi-agent # 从 npm 安装
50
49
  pi install git:github.com/gavin-hu/my-pi-agent # 从 git 安装
51
- pi install git:github.com/gavin-hu/my-pi-agent@v0.8.0 # 固定到某个版本
50
+ pi install git:github.com/gavin-hu/my-pi-agent@v0.13.0 # 固定到某个版本
52
51
  pi install ./ -l # 仅项目本地(.pi/settings.json)
53
52
  pi -e . # 试运行一次
54
53
  ```
55
54
 
55
+ `git` 需在 `PATH` 上,供 [`worktree`](./extensions/worktree/) 与
56
+ [`rewind`](./extensions/rewind/) 使用;其余部分会优雅降级或禁用,
57
+ `/bytefly doctor` 会指出缺少什么,包括可选的运行时组件。
58
+ Windows、macOS 和 Linux 均可运行,完整检查套件在每个平台上都会执行。
59
+
56
60
  然后在 Pi 中:
57
61
 
58
62
  - `/bytefly [extension] [refresh]` 打开控制中心的 Extensions 区,列出每个已加载扩展
59
- 及其运行时健康状况,并启用或禁用一个扩展。
60
- - `/bytefly settings` 打开控制中心的 Settings 区:bytefly 启动 TUI、桌面通知、
61
- 转录轨道字形、输出内边距和硬件光标;用 `Space`/`Enter` 修改,用 `Tab` 切换
62
- Global/Project 作用域。
63
+ 及其运行时健康状况,启用或禁用一个扩展,并用 `x` 清除项目级覆盖。
64
+ - `/bytefly settings` 打开控制中心的 Settings 区:bytefly 启动 TUI、桌面通知及其
65
+ 投递方式、主动健康检查、货币与费用精度、转录轨道字形、输出内边距和硬件光标;
66
+ 用 `Space`/`Enter` 修改,用 `Tab` 切换 Global/Project 作用域。
63
67
  - `/bytefly doctor [extension] [refresh]` 打印 doctor 报告(`run_doctor` 的文本),
64
68
  检查每个已启用扩展在运行时是否具备所需条件。
65
69
  - `/settings` → **Theme** 选择主题。
66
70
  - `/plan <任务>` 以只读规划模式开始一个任务。
67
71
 
72
+ 还有一件包会自行做的事:每次交互式会话启动时,`bytefly` 向 npm 询问最新发布
73
+ 版本,当你的版本较旧时在头部标出。不会发送任何会话内容,`PI_OFFLINE` 可跳过
74
+ 该请求;信任边界见 [`docs/security.md`](./docs/security.md)。
75
+
68
76
  ## 包含内容
69
77
 
70
- 十六个扩展和两个主题,按你想达成的目标分组。每个扩展自己的 `README.md` 提供完整的
71
- 工具与命令说明。
78
+ 十六个扩展,按你想达成的目标分组,外加两个主题。每个扩展自己的 `README.md`
79
+ 提供完整的工具与命令说明。
72
80
 
73
81
  ### 规划与委派
74
82
 
@@ -104,8 +112,15 @@ pi -e . # 试运行一次
104
112
 
105
113
  | 扩展 | 工具与命令 | 说明 |
106
114
  |---|---|---|
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
- | [`bytefly-dark`](./themes/bytefly-dark.json) / [`bytefly-light`](./themes/bytefly-light.json) | `/settings` → **Theme** | GitHub 风格的深色调色板及其浅色搭档,并支持可选的自动浅色/深色切换。 |
115
+ | [`bytefly`](./extensions/bytefly/) | `/bytefly`(`doctor`、`settings` 子命令)、`run_doctor` | 可见的那一层:主题化头部配宽度自适应页脚,Pi 工作行上实时计时,转录中每个工具块以调用行为标题、结果正文挂在其下方。`/bytefly` 可开关扩展并集中存放精选设置;可选的 `notify` 会在一次运行、后台任务或待回答的问题需要你时发出系统通知。`bytefly.json` 是每个扩展都会读取的配置文档。 |
116
+
117
+ ### 主题
118
+
119
+ [`bytefly-dark`](./themes/bytefly-dark.json) 是 GitHub 风格的深色调色板,
120
+ [`bytefly-light`](./themes/bytefly-light.json) 是其浅色搭档,并支持可选的自动
121
+ 浅色/深色切换。安装本包不会改变你的主题:通过 `/settings` → **Theme** 选择,
122
+ 或设置 `"theme": "bytefly-light/bytefly-dark"` 以自动切换。本 README 的截图
123
+ 使用 `bytefly-dark`。
109
124
 
110
125
  ### 截图
111
126
 
@@ -138,7 +153,7 @@ pi -e . # 试运行一次
138
153
  `<agent-dir>/bytefly.json` 读取,并与 `<cwd>/.pi/bytefly.json` 合并(项目优先),
139
154
  位于一个以扩展名命名的顶层 section 下。每个扩展的 `README.md` 说明其键位的行为,
140
155
  [`docs/configuration.md`](./docs/configuration.md) 为其建立索引,
141
- [`docs/references/configuration-reference.md`](./docs/references/configuration-reference.md) 逐个列出每个键的
156
+ [`docs/references/bytefly-config.md`](./docs/references/bytefly-config.md) 逐个列出每个键的
142
157
  类型、默认值和取值范围。
143
158
 
144
159
  每个扩展默认都开启。若要在加载整包时排除其中一些,把 `PI_DISABLED_EXTENSIONS`
@@ -159,19 +174,12 @@ Pi 的 `--no-extensions`,或从你的设置中删除该包。
159
174
  | [快速开始](./docs/getting-started.md) | 环境要求、安装选项、验证加载、主题。 |
160
175
  | [扩展](./docs/extensions.md) | 所有扩展与主题的完整目录。 |
161
176
  | [配置](./docs/configuration.md) | 配置文件解析、按扩展索引、环境变量。 |
177
+ | [配置参考](./docs/references/bytefly-config.md) | 列出 `bytefly.json` 的每个 section 与键,包括类型、默认值和取值范围。 |
162
178
  | [架构](./docs/architecture.md) | 包、各扩展与 `lib/` 如何协同。 |
163
179
  | [开发](./docs/development.md) | 本地设置、检查、测试、跨平台注意事项与发布流程。 |
164
180
  | [安全](./docs/security.md) | 回环与远程界面的信任边界。 |
165
181
  | [路线图](./ROADMAP.md) | 包的下一步方向,按 README 的承诺分组,并列出每条事项的依据。 |
166
182
 
167
- ## 环境要求
168
-
169
- - **Pi** —— 需要一个可用的安装;`my-pi-agent` 是一个包,不是分叉。
170
- - **操作系统** —— Windows、macOS 和 Linux;完整检查套件在三者的 CI 上都会运行。
171
- - **git** 需在 `PATH` 上,供 `worktree` 和 `rewind` 扩展使用;其余部分会优雅降级或
172
- 禁用,`/bytefly doctor` 会告诉你缺什么。
173
- - 可选的运行时组件(例如用于 HTML 导出的浏览器)由 `/bytefly doctor` 按扩展报告。
174
-
175
183
  ## 参与贡献
176
184
 
177
185
  欢迎贡献。请先阅读 [`CONTRIBUTING.md`](./CONTRIBUTING.md),了解设置、worktree