@juicesharp/rpiv-pi 2.13.9 → 2.13.10
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 +7 -6
- package/docs/architecture.md +5 -3
- package/docs/lanes.md +3 -3
- package/extensions/rpiv-core/lane-switcher.ts +12 -1
- package/extensions/rpiv-core/session-hooks.ts +2 -1
- package/extensions/rpiv-core/setup-command.ts +20 -4
- package/extensions/rpiv-core/siblings.ts +9 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ Now run a pipeline:
|
|
|
49
49
|
brief, slices it, designs each slice in parallel, gates the plan, then implements and
|
|
50
50
|
validates; see [docs/workflows.md](./docs/workflows.md) for the full stage list and
|
|
51
51
|
the other pipelines. The run detaches immediately: a lane appears in
|
|
52
|
-
the dock under your editor with live progress while you keep typing. Press `ctrl+q` —
|
|
52
|
+
the dock under your editor with live progress while you keep typing. Press `ctrl+q` (`alt+l` on Windows and WSL) —
|
|
53
53
|
or `↓` on an empty prompt, or `/lanes` — to step in, replay the transcript, answer a
|
|
54
54
|
parked question with `⏎`, or stop the run with `x`.
|
|
55
55
|
|
|
@@ -95,7 +95,7 @@ no overrides.
|
|
|
95
95
|
| Setting | What it does | Default |
|
|
96
96
|
| --- | --- | --- |
|
|
97
97
|
| `/rpiv-models` | Pick model + reasoning effort for the global default, a subagent, a skill, a workflow stage, or a preset stage | no overrides |
|
|
98
|
-
| `RPIV_LANES_HOTKEY` | Rebind the lane-browser hotkey to any Pi key id, or set `off` to register none | `ctrl+q` |
|
|
98
|
+
| `RPIV_LANES_HOTKEY` | Rebind the lane-browser hotkey to any Pi key id, or set `off` to register none | `ctrl+q` (`alt+l` on Windows and WSL) |
|
|
99
99
|
| `RPIV_BASH_TIMEOUT_MS` | Per-command bash watchdog inside detached child sessions, clamped to 5 s–30 min | `180000` (3 min) |
|
|
100
100
|
|
|
101
101
|
## Reference
|
|
@@ -134,15 +134,16 @@ You need no build step and no native dependency.
|
|
|
134
134
|
| Session-start banner: *bundled agents need attention* | A bundled agent changed upstream and your on-disk copy was edited | Run `/rpiv-update-agents` — it overwrites rpiv-managed files, and never touches agents you added yourself |
|
|
135
135
|
| `/rpiv-setup` or `/rpiv-models` says it requires interactive mode | Running headless | Install manually with `pi install npm:<pkg>`, or hand-edit `models.json` |
|
|
136
136
|
| `/rpiv-setup` fails on one package | Network or registry issue | Retry that package with `pi install npm:<pkg>`, then re-run `/rpiv-setup` |
|
|
137
|
-
| `/lanes` reports *No in-flight runs* (and
|
|
138
|
-
| `ctrl+q` does nothing | `RPIV_LANES_HOTKEY` is set to `off`, empty, or an unrecognized key id | Unset it, or use `/lanes` |
|
|
137
|
+
| `/lanes` reports *No in-flight runs* (and the hotkey does nothing) | Nothing is running | Expected — the browser only opens over live lanes |
|
|
138
|
+
| The lane hotkey (`ctrl+q`, or `alt+l` on Windows and WSL) does nothing | `RPIV_LANES_HOTKEY` is set to `off`, empty, or an unrecognized key id | Unset it, or use `/lanes` |
|
|
139
139
|
| A stage stalls, then reports a per-command timeout | A bash command wedged past the watchdog | Raise `RPIV_BASH_TIMEOUT_MS` (max 1800000) before starting Pi |
|
|
140
140
|
| `/rpiv-models` reports *No models available* | Pi has no provider configured | Run `/login`, or add a provider to `~/.pi/agent/models.json` |
|
|
141
141
|
|
|
142
142
|
## Related
|
|
143
143
|
|
|
144
144
|
`/rpiv-setup` installs the ones marked auto; the rest are standalone
|
|
145
|
-
`pi install npm:@juicesharp/rpiv-<name>`.
|
|
145
|
+
`pi install npm:@juicesharp/rpiv-<name>`. rpiv-advisor is optional: setup lists its install
|
|
146
|
+
command but leaves it to you, and Pi starts without a warning when it is absent.
|
|
146
147
|
|
|
147
148
|
| Package | Role | Auto |
|
|
148
149
|
| --- | --- | :---: |
|
|
@@ -150,7 +151,7 @@ You need no build step and no native dependency.
|
|
|
150
151
|
| [`@juicesharp/rpiv-args`](https://www.npmjs.com/package/@juicesharp/rpiv-args) | `$1` / `$ARGUMENTS` placeholders in skill bodies | ✓ |
|
|
151
152
|
| [`@juicesharp/rpiv-ask-user-question`](https://www.npmjs.com/package/@juicesharp/rpiv-ask-user-question) | Structured questionnaires back to you | ✓ |
|
|
152
153
|
| [`@juicesharp/rpiv-todo`](https://www.npmjs.com/package/@juicesharp/rpiv-todo) | Live task overlay surviving `/reload` | ✓ |
|
|
153
|
-
| [`@juicesharp/rpiv-advisor`](https://www.npmjs.com/package/@juicesharp/rpiv-advisor) | Escalate to a stronger reviewer model |
|
|
154
|
+
| [`@juicesharp/rpiv-advisor`](https://www.npmjs.com/package/@juicesharp/rpiv-advisor) | Escalate to a stronger reviewer model | — |
|
|
154
155
|
| [`@juicesharp/rpiv-web-tools`](https://www.npmjs.com/package/@juicesharp/rpiv-web-tools) | Web search + fetch with pluggable providers | ✓ |
|
|
155
156
|
| [`@juicesharp/rpiv-i18n`](https://www.npmjs.com/package/@juicesharp/rpiv-i18n) | Localization SDK for the rpiv TUI strings | ✓ |
|
|
156
157
|
| [`@juicesharp/rpiv-warp`](https://www.npmjs.com/package/@juicesharp/rpiv-warp) | Warp Blocked badge on parked lane questions | — |
|
package/docs/architecture.md
CHANGED
|
@@ -38,7 +38,7 @@ the siblings contribute capability.
|
|
|
38
38
|
| `/rpiv-update-agents` | always | |
|
|
39
39
|
| `/rpiv-models` | always | Interactive only |
|
|
40
40
|
| `/lanes` | always | No-ops with a notice when nothing is running |
|
|
41
|
-
| `ctrl+q` | conditionally | Skipped entirely when `RPIV_LANES_HOTKEY` disables it |
|
|
41
|
+
| `ctrl+q` (`alt+l` on Windows and WSL) | conditionally | Skipped entirely when `RPIV_LANES_HOTKEY` disables it |
|
|
42
42
|
| `/skill:<name>` × 30 | Pi, from the manifest | |
|
|
43
43
|
| `--rpiv-debug` flag | always | Reveals the hidden injected messages below |
|
|
44
44
|
|
|
@@ -110,14 +110,16 @@ loaded with `pi -e`. They no longer trigger the missing-siblings banner, and
|
|
|
110
110
|
`/rpiv-setup` does not install a second copy whose tools would conflict. No sibling is
|
|
111
111
|
statically imported from the entry graph; a test enforces that.
|
|
112
112
|
|
|
113
|
-
`/rpiv-setup` installs whichever of these eight packages are neither declared nor loaded
|
|
113
|
+
`/rpiv-setup` installs whichever of these eight packages are neither declared nor loaded, except
|
|
114
|
+
`@juicesharp/rpiv-advisor`. That one is optional: nothing in rpiv-pi needs it, so a missing copy
|
|
115
|
+
raises no banner and setup only names its `pi install` command:
|
|
114
116
|
|
|
115
117
|
| Package | Provides |
|
|
116
118
|
| --- | --- |
|
|
117
119
|
| `@tintinweb/pi-subagents` | `Agent`, `get_subagent_result`, `steer_subagent` tools |
|
|
118
120
|
| `@juicesharp/rpiv-ask-user-question` | `ask_user_question` tool |
|
|
119
121
|
| `@juicesharp/rpiv-todo` | `todo` tool, `/todos`, overlay widget |
|
|
120
|
-
| `@juicesharp/rpiv-advisor` | `advisor` tool and `/advisor` |
|
|
122
|
+
| `@juicesharp/rpiv-advisor` (optional) | `advisor` tool and `/advisor` |
|
|
121
123
|
| `@juicesharp/rpiv-i18n` | `/languages`, `--locale`, the i18n SDK |
|
|
122
124
|
| `@juicesharp/rpiv-web-tools` | `web_search`, `web_fetch`, `/web-tools` |
|
|
123
125
|
| `@juicesharp/rpiv-args` | `$N` / `$ARGUMENTS` substitution in skill bodies |
|
package/docs/lanes.md
CHANGED
|
@@ -21,10 +21,10 @@ From an **empty** prompt (no text typed, no autocomplete open, at least one lane
|
|
|
21
21
|
| Trigger | Notes |
|
|
22
22
|
| --- | --- |
|
|
23
23
|
| `/lanes` | Always available |
|
|
24
|
-
| `ctrl+q` | Global hotkey; requires a UI, at least one lane, and that you are not already focused into a run |
|
|
24
|
+
| `ctrl+q` (`alt+l` on Windows and WSL) | Global hotkey; requires a UI, at least one lane, and that you are not already focused into a run |
|
|
25
25
|
| `↓` on an empty prompt | See above |
|
|
26
26
|
|
|
27
|
-
With no runs in flight, `/lanes` notifies `No in-flight runs.`;
|
|
27
|
+
With no runs in flight, `/lanes` notifies `No in-flight runs.`; the hotkey silently does
|
|
28
28
|
nothing.
|
|
29
29
|
|
|
30
30
|
## Inside the browser
|
|
@@ -72,7 +72,7 @@ opt-in; without it nothing changes.
|
|
|
72
72
|
|
|
73
73
|
| Variable | Default | Effect |
|
|
74
74
|
| --- | --- | --- |
|
|
75
|
-
| `RPIV_LANES_HOTKEY` | `ctrl+q` | Rebind the browser hotkey to any Pi key id. Set it to `off`, `none`, `false`, `disabled`, or empty to register no hotkey at all — `/lanes` still works. An unrecognized key id registers but never fires |
|
|
75
|
+
| `RPIV_LANES_HOTKEY` | `ctrl+q` (`alt+l` on Windows and WSL, where Pi reserves `ctrl+q`) | Rebind the browser hotkey to any Pi key id. Set it to `off`, `none`, `false`, `disabled`, or empty to register no hotkey at all — `/lanes` still works. An unrecognized key id registers but never fires |
|
|
76
76
|
| `RPIV_BASH_TIMEOUT_MS` | `180000` (3 min) | Per-command watchdog on bash calls inside detached child sessions. Clamped to 5 000–1 800 000 ms; a non-numeric or non-positive value falls back to the default. Read once at load, so export it before starting Pi |
|
|
77
77
|
|
|
78
78
|
When a bash call exceeds the watchdog the child session aborts that command and the
|
|
@@ -44,13 +44,24 @@ import { isModuleNotFound } from "./utils.ts";
|
|
|
44
44
|
* Pi's keymap. So the binding is OVERRIDABLE: set `RPIV_LANES_HOTKEY` to a
|
|
45
45
|
* different KeyId to rebind, or to `off`/`none`/empty to disable the hotkey entirely
|
|
46
46
|
* and rely on the always-safe `/lanes` command. `/lanes` is always available.
|
|
47
|
+
*
|
|
48
|
+
* Under Windows keybindings (Windows, and Linux under WSL) Pi binds ctrl+q to its reserved
|
|
49
|
+
* follow-up action (Pi #8372), so Pi skips our shortcut and warns at every launch — the
|
|
50
|
+
* default there is `alt+l` instead (#252).
|
|
47
51
|
*/
|
|
48
52
|
const DEFAULT_HOTKEY = "ctrl+q";
|
|
53
|
+
const WINDOWS_DEFAULT_HOTKEY = "alt+l";
|
|
54
|
+
|
|
55
|
+
/** Mirrors Pi's `useWindowsKeybindings` (not exported): Windows, or Linux under WSL. */
|
|
56
|
+
function usesWindowsKeybindings(): boolean {
|
|
57
|
+
const { WSL_DISTRO_NAME, WSL_INTEROP } = process.env;
|
|
58
|
+
return process.platform === "win32" || (process.platform === "linux" && Boolean(WSL_DISTRO_NAME || WSL_INTEROP));
|
|
59
|
+
}
|
|
49
60
|
|
|
50
61
|
/** Resolve the switcher hotkey from the environment; undefined = no hotkey. */
|
|
51
62
|
function resolveHotkey(): string | undefined {
|
|
52
63
|
const raw = process.env.RPIV_LANES_HOTKEY;
|
|
53
|
-
if (raw === undefined) return DEFAULT_HOTKEY; // back-compat default
|
|
64
|
+
if (raw === undefined) return usesWindowsKeybindings() ? WINDOWS_DEFAULT_HOTKEY : DEFAULT_HOTKEY; // back-compat default
|
|
54
65
|
const v = raw.trim();
|
|
55
66
|
if (v === "" || /^(off|none|false|disabled?)$/i.test(v)) return undefined;
|
|
56
67
|
return v;
|
|
@@ -268,7 +268,8 @@ function notifyCleanup(ui: UI, result: CleanupResult): void {
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
function warnMissingSiblings(ui: UI, loaded: LoadedSiblingSources): void {
|
|
271
|
-
|
|
271
|
+
// Optional siblings are left out — rpiv-pi works without them (#167).
|
|
272
|
+
const missing = findMissingSiblings(loaded).filter((s) => !s.optional);
|
|
272
273
|
if (missing.length === 0) return;
|
|
273
274
|
// Leading newline so Pi's "Warning: " severity prefix sits on its own
|
|
274
275
|
// line; every box row then gets Pi's 1-space continuation indent
|
|
@@ -31,6 +31,11 @@ const msgInstalling = (pkg: string) => `Installing ${pkg}…`;
|
|
|
31
31
|
const msgInstalledLine = (pkgs: string[]) => `✓ Installed: ${pkgs.join(", ")}`;
|
|
32
32
|
const msgFailedHeader = () => `✗ Failed:`;
|
|
33
33
|
const msgFailedLine = (pkg: string, err: string) => ` ${pkg}: ${err}`;
|
|
34
|
+
const msgOptionalHint = (optional: SiblingPlugin[]) =>
|
|
35
|
+
[
|
|
36
|
+
"Optional, not installed — add any with `pi install`:",
|
|
37
|
+
...optional.map((o) => ` • pi install ${o.pkg} (provides ${o.provides})`),
|
|
38
|
+
].join("\n");
|
|
34
39
|
const msgLegacyPruned = (entries: string[]) =>
|
|
35
40
|
`Removed legacy subagent library from settings.json: ${entries.join(", ")}. Run \`pi uninstall\` to free disk space, then restart Pi.`;
|
|
36
41
|
|
|
@@ -39,7 +44,7 @@ type UI = {
|
|
|
39
44
|
confirm: (title: string, body: string) => Promise<boolean>;
|
|
40
45
|
};
|
|
41
46
|
|
|
42
|
-
function buildConfirmBody(missing: SiblingPlugin[], legacyEntries: string[]): string {
|
|
47
|
+
function buildConfirmBody(missing: SiblingPlugin[], optional: SiblingPlugin[], legacyEntries: string[]): string {
|
|
43
48
|
const lines: string[] = ["rpiv-pi will apply the following changes:", ""];
|
|
44
49
|
if (missing.length > 0) {
|
|
45
50
|
lines.push("Install via `pi install`:");
|
|
@@ -52,6 +57,10 @@ function buildConfirmBody(missing: SiblingPlugin[], legacyEntries: string[]): st
|
|
|
52
57
|
for (const entry of legacyEntries) lines.push(` • ${entry}`);
|
|
53
58
|
lines.push("");
|
|
54
59
|
}
|
|
60
|
+
if (optional.length > 0) {
|
|
61
|
+
lines.push(msgOptionalHint(optional));
|
|
62
|
+
lines.push("");
|
|
63
|
+
}
|
|
55
64
|
lines.push(`Your \`${settingsPath}\` will be updated. Proceed?`);
|
|
56
65
|
return lines.join("\n");
|
|
57
66
|
}
|
|
@@ -73,14 +82,21 @@ async function handleSetupCommand(
|
|
|
73
82
|
return;
|
|
74
83
|
}
|
|
75
84
|
|
|
76
|
-
|
|
85
|
+
// Optional siblings are named, never installed: the confirm is all-or-nothing, so
|
|
86
|
+
// installing them would override a user who left one out on purpose (#167).
|
|
87
|
+
const allMissing = findMissingSiblings(readLoadedSiblingSources(pi));
|
|
88
|
+
const missing = allMissing.filter((s) => !s.optional);
|
|
89
|
+
const optional = allMissing.filter((s) => s.optional);
|
|
77
90
|
const legacyEntries = findLegacySiblings();
|
|
78
91
|
if (missing.length === 0 && legacyEntries.length === 0) {
|
|
79
|
-
ctx.ui.notify(
|
|
92
|
+
ctx.ui.notify(
|
|
93
|
+
optional.length > 0 ? `${MSG_NOTHING_TO_DO}\n\n${msgOptionalHint(optional)}` : MSG_NOTHING_TO_DO,
|
|
94
|
+
"info",
|
|
95
|
+
);
|
|
80
96
|
return;
|
|
81
97
|
}
|
|
82
98
|
|
|
83
|
-
const confirmed = await ctx.ui.confirm(MSG_CONFIRM_TITLE, buildConfirmBody(missing, legacyEntries));
|
|
99
|
+
const confirmed = await ctx.ui.confirm(MSG_CONFIRM_TITLE, buildConfirmBody(missing, optional, legacyEntries));
|
|
84
100
|
if (!confirmed) {
|
|
85
101
|
ctx.ui.notify(MSG_CANCELLED, "info");
|
|
86
102
|
return;
|
|
@@ -30,6 +30,13 @@ export interface SiblingPlugin {
|
|
|
30
30
|
readonly marker?: string;
|
|
31
31
|
/** What the sibling provides — shown in /rpiv-setup confirmation and reports. */
|
|
32
32
|
readonly provides: string;
|
|
33
|
+
/**
|
|
34
|
+
* Nothing in rpiv-pi needs it to work — skills that use it fall back without it.
|
|
35
|
+
* A missing optional sibling raises no session_start warning, and /rpiv-setup
|
|
36
|
+
* names it with its install command instead of installing it, so a user who
|
|
37
|
+
* leaves it out (or runs their own replacement) is never nagged or overridden (#167).
|
|
38
|
+
*/
|
|
39
|
+
readonly optional?: true;
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
export const SIBLINGS: readonly SiblingPlugin[] = [
|
|
@@ -54,6 +61,8 @@ export const SIBLINGS: readonly SiblingPlugin[] = [
|
|
|
54
61
|
pkg: "npm:@juicesharp/rpiv-advisor",
|
|
55
62
|
matches: /rpiv-advisor/i,
|
|
56
63
|
provides: "advisor tool + /advisor command",
|
|
64
|
+
// Opt-in reviewer: code-review probes for the tool and reconciles inline without it.
|
|
65
|
+
optional: true,
|
|
57
66
|
},
|
|
58
67
|
{
|
|
59
68
|
pkg: "npm:@juicesharp/rpiv-i18n",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-pi",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.10",
|
|
4
4
|
"description": "A skill-based development workflow for Pi Agent. 30 contract-carrying skills (discover → research → design → plan → implement → validate → code-review → commit, and more), the 15 named subagents they dispatch, and four built-in /wf workflows that chain them end to end in detached parallel runs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@juicesharp/rpiv-config": "^2.13.
|
|
55
|
+
"@juicesharp/rpiv-config": "^2.13.10"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@earendil-works/pi-ai": "*",
|