@vimsucks/pi-goon 0.3.0 → 0.3.1

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 (2) hide show
  1. package/README.md +31 -29
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,38 +1,38 @@
1
1
  # @vimsucks/pi-goon
2
2
 
3
- 通过 `/goon` 继续当前 Pi 会话,不向模型发送新的继续提示词。
3
+ Resume the current Pi session with `/goon` without sending a new continuation prompt to the model.
4
4
 
5
- ## 安装
5
+ ## Installation
6
6
 
7
- 要求 Pi 1.0.0 或更新版本。
7
+ Requires Pi 1.0.0 or later.
8
8
 
9
- 当前可以从 GitHub 安装:
9
+ Install from npm:
10
10
 
11
11
  ```sh
12
- pi install git:github.com/vimsucks/pi-goon
12
+ pi install npm:@vimsucks/pi-goon
13
13
  ```
14
14
 
15
- npm 包名为 `@vimsucks/pi-goon`。发布到 npm 后,可以使用以下命令安装:
15
+ Or install from GitHub:
16
16
 
17
17
  ```sh
18
- pi install npm:@vimsucks/pi-goon
18
+ pi install git:github.com/vimsucks/pi-goon
19
19
  ```
20
20
 
21
- 安装后,在当前会话执行 `/reload`,或重新启动 Pi。
21
+ After installation, run `/reload` in the current session or restart Pi.
22
22
 
23
- ## 使用
23
+ ## Usage
24
24
 
25
- - `/goon`:启动隐形继续。若当前正在生成,Pi 将继续请求加入原生 follow-up 队列。
26
- - `/goon status`:显示会话是否空闲,以及最后一条 assistant 消息的文本。
27
- - `/goon help`:显示命令帮助。
25
+ - `/goon`: start an invisible continuation. If the agent is already running, Pi queues the continuation through its native follow-up queue.
26
+ - `/goon status`: show whether the session is idle and the text of the last assistant message.
27
+ - `/goon help`: show command help.
28
28
 
29
- 网络请求失败或取消生成后,只要会话仍然存在,就可以执行 `/goon`。如果 Pi 已经退出,先恢复原会话,再执行 `/goon`。
29
+ After a network request fails or you cancel generation, run `/goon` to resume the task in the same session. If Pi has exited, reopen the original session before running `/goon`.
30
30
 
31
- ## 快捷键配置
31
+ ## Keyboard shortcut
32
32
 
33
- 默认快捷键为 `Alt+G`,行为与 `/goon` 相同。快捷键不会提交或清空输入框中的文字。运行 `/hotkeys` 可以检查 Pi 当前启用的快捷键。
33
+ The default shortcut is `Alt+G`. It performs the same action as `/goon` without submitting or clearing text in the editor. Run `/hotkeys` to inspect the active shortcuts.
34
34
 
35
- 要修改快捷键,在 `~/.pi/agent/settings.json` 中添加 `goon` 配置,保留已有的其他字段:
35
+ To change the shortcut, add a `goon` object to `~/.pi/agent/settings.json`. Keep the other settings in that file:
36
36
 
37
37
  ```json
38
38
  {
@@ -42,32 +42,34 @@ pi install npm:@vimsucks/pi-goon
42
42
  }
43
43
  ```
44
44
 
45
- `goon.shortcut` 使用 Pi 按键标识符,例如 `alt+g`、`ctrl+alt+g` 或 `f6`。设为 `null` 可以禁用快捷键,`/goon` 命令仍然可用。缺少配置文件或 `goon.shortcut` 字段时,扩展使用 `alt+g`。
45
+ `goon.shortcut` accepts Pi key identifiers such as `alt+g`, `ctrl+alt+g`, or `f6`. Set it to `null` to disable the shortcut; `/goon` remains available. If the settings file or the `goon.shortcut` field is absent, the extension uses `alt+g`.
46
+
47
+ The extension no longer reads `goon.json`. If you have that file, move its `shortcut` value to `goon.shortcut` in `settings.json`.
46
48
 
47
- 扩展不再读取旧的 `goon.json`。如果已有该文件,将其中的 `shortcut` 值迁入 `settings.json` 的 `goon.shortcut` 字段。
49
+ If `PI_CODING_AGENT_DIR` is set, the extension reads `settings.json` from that directory. Only user-level settings apply; the extension does not read project settings.
48
50
 
49
- 如果设置了 `PI_CODING_AGENT_DIR`,配置文件位于该目录下的 `settings.json`。配置仅作用于当前用户,不读取项目配置。修改配置后,执行 `/reload`。如果配置无效,Pi 会报告加载错误;修正配置后再次执行 `/reload`。
51
+ After changing the configuration, run `/reload`. If the configuration is invalid, Pi reports a loading error. Correct the configuration and run `/reload` again.
50
52
 
51
- 快捷键由 Pi 原生机制处理。与其他快捷键冲突时,按 Pi 的冲突规则处理。macOS 终端需要将 Option 配置为 Alt/Meta,才能发送 `Alt+G`。
53
+ Pi handles the shortcut through its native shortcut mechanism and applies its normal conflict rules. On macOS, configure the terminal to treat Option as Alt/Meta so it can send `Alt+G`. In Otty, open **Settings → Controls → Option as Alt** and select **Left** or **Both**. Otherwise, Option+G may insert `©` instead of triggering the shortcut.
52
54
 
53
- ## 工作方式与限制
55
+ ## How it works and limitations
54
56
 
55
- 扩展通过 `pi.sendMessage()` 添加一条隐藏标记,并启动原生会话轮次。`context` 事件处理器在模型请求发出前移除该标记。模型不会收到新的 `go on` 提示词,界面也不会显示该标记,但会话文件仍保留隐藏记录。
57
+ The extension uses `pi.sendMessage()` to add a hidden marker and start a native session turn. A `context` handler removes the marker before Pi sends a request to the model. The model receives no new `go on` prompt, and the marker is not displayed in the UI. The session journal still contains a hidden bookkeeping entry.
56
58
 
57
- 存在标记时,处理器还会移除末尾失败或取消的 assistant 消息。它保留带工具调用的消息,防止破坏工具调用与结果的配对。处理器不改写会话历史。
59
+ When a marker is present, the handler also removes trailing failed or aborted assistant messages from the request. It retains messages with tool calls to preserve tool-call/result pairs. It does not rewrite session history.
58
60
 
59
- 扩展不会自动恢复,也不保证从中断的某个字精确接续。它保留 Pi 原生队列、重试和压缩行为。
61
+ The extension does not resume automatically or guarantee continuation from the exact character where generation stopped. It preserves Pi's native queues, retries, and compaction behavior.
60
62
 
61
- ## 验证
63
+ ## Development check
62
64
 
63
- 使用 Node.js 24 或更新版本运行无网络检查:
65
+ Use Node.js 24 or later to run the offline check:
64
66
 
65
67
  ```sh
66
68
  npm test
67
69
  ```
68
70
 
69
- ## 来源与许可
71
+ ## Attribution and license
70
72
 
71
- 本项目基于 [monotykamary/pi-invisible-continue](https://github.com/monotykamary/pi-invisible-continue) 的 npm 版本 `0.3.16`。原作者为 Tom X Nguyen,原包声明 MIT 许可。本项目保留其隐形继续与消息过滤逻辑,将命令改为 `/goon`,并使用独立的 `pi-goon:resume` 标记。
73
+ This project is based on npm version `0.3.16` of [monotykamary/pi-invisible-continue](https://github.com/monotykamary/pi-invisible-continue), authored by Tom X Nguyen and declared under the MIT license. It retains the invisible continuation and message-filtering logic, renames the command to `/goon`, and uses its own `pi-goon:resume` marker.
72
74
 
73
- 许可见 [LICENSE](LICENSE)。
75
+ See [LICENSE](LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vimsucks/pi-goon",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Resume a Pi session invisibly with /goon, without a new prompt for the model",
5
5
  "type": "module",
6
6
  "author": "vimsucks",