pi-repoprompt-cli 0.2.10 → 0.3.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.
|
@@ -7,6 +7,8 @@ It provides two Pi tools:
|
|
|
7
7
|
- `rp_bind` — bind to a specific RepoPrompt **window id** + **compose tab** (routing)
|
|
8
8
|
- `rp_exec` — run `rp-cli -e <cmd>` against that binding
|
|
9
9
|
|
|
10
|
+
For discovery, prefer `windows` first: since v2.1.x, RepoPrompt includes tab/context reporting directly in that output, so you often no longer need a separate `workspace tabs` step just to find a bind target.
|
|
11
|
+
|
|
10
12
|
Diff blocks in `rp_exec` output use `delta` when installed (honoring the user's global git/delta color config), with graceful fallback otherwise
|
|
11
13
|
|
|
12
14
|
When enabled (default), `rp_exec` also auto-tracks `read` / `cat` / `read_file` calls and updates RepoPrompt selection with owned file/slice context. The owned selection state is branch-safe across `/tree` and `/fork`, and replays after reconnect/restart using workspace-aware rebinding
|
|
@@ -100,7 +102,7 @@ These are **Pi slash commands** (for the chat UI), not `rp_exec` commands:
|
|
|
100
102
|
|
|
101
103
|
## Smoke test
|
|
102
104
|
|
|
103
|
-
1) Bind:
|
|
105
|
+
1) Bind (after checking `windows` for the current window/tab names):
|
|
104
106
|
|
|
105
107
|
```text
|
|
106
108
|
/rpbind 4 Compose
|
|
@@ -857,7 +857,7 @@ function isSafeSingleCommandToRunUnbound(cmd: string): boolean {
|
|
|
857
857
|
if (commandName === "windows") return true;
|
|
858
858
|
if (commandName === "help") return true;
|
|
859
859
|
if (commandName === "refresh" && args.length === 0) return true;
|
|
860
|
-
if (commandName === "tabs" && args.length === 0) return true;
|
|
860
|
+
if (commandName === "tabs" && (args.length === 0 || args[0] === "list")) return true;
|
|
861
861
|
|
|
862
862
|
if (commandName === "workspace") {
|
|
863
863
|
const action = args[0] ?? "";
|
|
@@ -879,7 +879,7 @@ function isSafeSingleCommandToRunUnbound(cmd: string): boolean {
|
|
|
879
879
|
|
|
880
880
|
if (normalized === "workspace list") return true;
|
|
881
881
|
if (normalized === "workspace tabs") return true;
|
|
882
|
-
if (normalized === "tabs") return true;
|
|
882
|
+
if (normalized === "tabs" || normalized === "tabs list") return true;
|
|
883
883
|
|
|
884
884
|
if (normalized.startsWith("workspace switch ") && normalized.includes("--new-window")) return true;
|
|
885
885
|
if (normalized.startsWith("workspace create ") && normalized.includes("--new-window")) return true;
|
|
@@ -2958,7 +2958,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
2958
2958
|
text:
|
|
2959
2959
|
"Blocked rp_exec because it is not bound to a window+tab. " +
|
|
2960
2960
|
"Do not fall back to native Pi tools—bind first. " +
|
|
2961
|
-
"Run `windows`
|
|
2961
|
+
"Run `windows` (it now reports tabs/context IDs) or `tabs list`, then bind with rp_bind(windowId, tab). " +
|
|
2962
2962
|
"If RepoPrompt is in single-window mode, windowId is usually 1",
|
|
2963
2963
|
},
|
|
2964
2964
|
],
|
package/package.json
CHANGED