pi-branch-out 0.1.7 → 0.1.9

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 +7 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -34,7 +34,7 @@ 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.
37
+ `/branch` works while the parent is responding or running tools. The child starts with the entries on the parent's active path when you run the command, even if the session file is behind. An unfinished streamed response and later tool results are not included. The parent continues its turn.
38
38
 
39
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.
40
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.
@@ -110,10 +110,14 @@ Routing is automatic and tried in this order:
110
110
  5. iTerm2 — detected via `TERM_PROGRAM=iTerm.app`
111
111
  6. Terminal.app — detected via `TERM_PROGRAM=Apple_Terminal`
112
112
  7. Ghostty — detected via `GHOSTTY_RESOURCES_DIR` or `TERM_PROGRAM` containing `ghostty`
113
- 8. Alacritty window
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"`.
114
116
 
115
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"`.
116
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
+
117
121
  ### Backend capability matrix
118
122
 
119
123
  | Backend | `tab` | `split` — static directions | `split` — rotating policies |
@@ -124,6 +128,7 @@ The Orca backend opens the fork beside the terminal that ran `/branch` and uses
124
128
  | iTerm2 | ✓ | `right` `down` | — (use fallback list) |
125
129
  | Terminal.app | ✓ | — (error) | — (error) |
126
130
  | Ghostty | — (new window) | — (error) | — (error) |
131
+ | Warp | ✓ | — (error) | — (error) |
127
132
 
128
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"`).
129
134
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-branch-out",
3
- "version": "0.1.7",
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.9",
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": {