pi-branch-out 0.1.6 → 0.1.8
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 +8 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,6 +34,8 @@ After installing, copy `extensions/branch-out/config.json.example` to `extension
|
|
|
34
34
|
|
|
35
35
|
Both arguments are optional and independent.
|
|
36
36
|
|
|
37
|
+
`/branch` works while the parent is responding or running tools. The child starts with the session entries saved when you run the command; an unfinished streamed response and later tool results are not included. The parent continues its turn.
|
|
38
|
+
|
|
37
39
|
- **`--model <query>`** — target model for the child session. Accepts a fully qualified `provider/model-id` or a fuzzy query scoped to the current provider. If the query does not resolve safely the child keeps the parent's model.
|
|
38
40
|
- **`message`** — prefilled text in the child session's editor with a 10-second auto-submit countdown. Typing anything or pressing `Esc` cancels the countdown; `Enter` sends immediately.
|
|
39
41
|
|
|
@@ -108,10 +110,14 @@ Routing is automatic and tried in this order:
|
|
|
108
110
|
5. iTerm2 — detected via `TERM_PROGRAM=iTerm.app`
|
|
109
111
|
6. Terminal.app — detected via `TERM_PROGRAM=Apple_Terminal`
|
|
110
112
|
7. Ghostty — detected via `GHOSTTY_RESOURCES_DIR` or `TERM_PROGRAM` containing `ghostty`
|
|
111
|
-
8.
|
|
113
|
+
8. Warp — detected via `TERM_PROGRAM=WarpTerminal`
|
|
114
|
+
|
|
115
|
+
If no backend is detected, macOS tries iTerm2 and Terminal.app before falling back to an Alacritty window; other platforms fall back to Alacritty. These fallbacks require `launchMode: "tab"`.
|
|
112
116
|
|
|
113
117
|
The Orca backend opens the fork beside the terminal that ran `/branch` and uses Pi's current working directory. Orca supports `right` (horizontal) and `down` (vertical) splits and requires `launchMode: "split"`.
|
|
114
118
|
|
|
119
|
+
The Warp backend opens the fork in a new tab in Warp's active window and uses Pi's current working directory. It works with Warp Stable on macOS and Linux when Pi runs on the same machine as Warp, not in an SSH session. It requires `launchMode: "tab"`; for splits inside Warp, run Pi in tmux with `launchMode: "split"`. Each launch writes a temporary [Tab Config](https://docs.warp.dev/terminal/windows/tab-configs/) named `tmp_pi_branch_*.toml`, which the new tab deletes as it starts. If a launch never opens a tab, delete the leftover file from `~/.warp/tab_configs/` on macOS or `${XDG_DATA_HOME:-$HOME/.local/share}/warp-terminal/tab_configs/` on Linux.
|
|
120
|
+
|
|
115
121
|
### Backend capability matrix
|
|
116
122
|
|
|
117
123
|
| Backend | `tab` | `split` — static directions | `split` — rotating policies |
|
|
@@ -122,6 +128,7 @@ The Orca backend opens the fork beside the terminal that ran `/branch` and uses
|
|
|
122
128
|
| iTerm2 | ✓ | `right` `down` | — (use fallback list) |
|
|
123
129
|
| Terminal.app | ✓ | — (error) | — (error) |
|
|
124
130
|
| Ghostty | — (new window) | — (error) | — (error) |
|
|
131
|
+
| Warp | ✓ | — (error) | — (error) |
|
|
125
132
|
|
|
126
133
|
Backends without a default for the requested `splitDirection` fail fast with an explicit error. Use a comma-separated preference list to select a supported direction across backends (e.g. `"counterclockwise,right"`).
|
|
127
134
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-branch-out",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Fork the current Pi session into a split terminal pane or new tab with rotating layout policies, and with optional model and message queuing, and support for cmux, tmux, iTerm2, Terminal.app, Ghostty, and Orca.",
|
|
3
|
+
"version": "0.1.8",
|
|
4
|
+
"description": "Fork the current Pi session into a split terminal pane or new tab with rotating layout policies, and with optional model and message queuing, and support for cmux, tmux, iTerm2, Terminal.app, Ghostty, Warp, and Orca.",
|
|
5
5
|
"keywords": ["pi-package", "pi", "pi-coding-agent"],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|