@juicesharp/rpiv-pi 2.2.0 → 2.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.
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  Turn "build this feature" into a run of named stages — discover → research → design →
13
13
  plan → implement → validate → code-review → commit — each one writing a reviewable
14
14
  Markdown artifact under `.rpiv/artifacts/` that the next stage consumes. rpiv-pi adds 27
15
- skills, 15 specialist subagents, and five ready-made `/wf` pipelines to
15
+ skills, 15 specialist subagents, and three ready-made `/wf` pipelines to
16
16
  [Pi Agent](https://github.com/badlogic/pi-mono), and runs every stage in a detached child
17
17
  session you watch from a lane dock below your editor. It is for developers who want
18
18
  structured, reviewable multi-stage work instead of one very long chat turn.
@@ -42,12 +42,13 @@ otherwise see [docs/models-config.md](./docs/models-config.md).
42
42
  Now run a pipeline:
43
43
 
44
44
  ```
45
- /wf ship "add a --json flag to the export command"
45
+ /wf build "add a --json flag to the export command"
46
46
  ```
47
47
 
48
- `ship` chains `blueprint → implement → validate → commit` — `blueprint` collapses
49
- design and planning into one phased plan; see [docs/workflows.md](./docs/workflows.md)
50
- for the other pipelines' stage lists. The run detaches immediately: a lane appears in
48
+ `build` is the default — run `/wf "<task>"` and it resolves here. It captures your
49
+ brief, slices it, designs each slice in parallel, gates the plan, then implements and
50
+ validates; see [docs/workflows.md](./docs/workflows.md) for the full stage list and
51
+ the other pipelines. The run detaches immediately: a lane appears in
51
52
  the dock under your editor with live progress while you keep typing. Press `ctrl+q` —
52
53
  or `↓` on an empty prompt, or `/lanes` — to step in, replay the transcript, answer a
53
54
  parked question with `⏎`, or stop the run with `x`.
@@ -75,7 +76,7 @@ Prefer one stage at a time? Every skill also stands alone:
75
76
  - **Questions that never get lost** — when a detached stage needs input it parks the
76
77
  question on its lane with a badge instead of hijacking your prompt; `⏎` on the flagged
77
78
  lane arms it inline.
78
- - **Five pipelines out of the box** — `ship`, `arch`, `vet`, `polish`, and `build`, so
79
+ - **Three pipelines out of the box** — `build`, `vet`, and `polish`, so
79
80
  you never have to author a workflow to get value.
80
81
  - **Cheap models for cheap stages** — `/rpiv-models` sets model and reasoning-effort
81
82
  overrides per skill, per stage, per workflow, or per subagent, with a typo-catcher for
@@ -101,7 +102,7 @@ no overrides.
101
102
 
102
103
  - [docs/skills.md](./docs/skills.md) — all 27 skills: what each consumes, what it writes,
103
104
  and which ones the model may pick on its own.
104
- - [docs/workflows.md](./docs/workflows.md) — the five `/wf` pipelines stage by stage,
105
+ - [docs/workflows.md](./docs/workflows.md) — the three `/wf` pipelines stage by stage,
105
106
  plus hand-driven recipes for when you don't want a whole pipeline.
106
107
  - [docs/lanes.md](./docs/lanes.md) — the dock, the lane browser's full key map, parked
107
108
  questions, and the lane environment variables.
@@ -119,7 +120,7 @@ no overrides.
119
120
  | [Pi Agent](https://github.com/badlogic/pi-mono) | The host. Install it globally so `pi` is on your PATH |
120
121
  | A model provider | Pi's own `/login` or `~/.pi/agent/models.json` — see [docs/models-config.md](./docs/models-config.md) |
121
122
  | [`@tintinweb/pi-subagents`](https://www.npmjs.com/package/@tintinweb/pi-subagents) | Supplies the `Agent` tool. Without it the parallel-analysis skills cannot dispatch. Installed by `/rpiv-setup` |
122
- | [`@juicesharp/rpiv-workflow`](https://www.npmjs.com/package/@juicesharp/rpiv-workflow) | Supplies `/wf`. Without it the five built-in workflows do not register. Installed by `/rpiv-setup` |
123
+ | [`@juicesharp/rpiv-workflow`](https://www.npmjs.com/package/@juicesharp/rpiv-workflow) | Supplies `/wf`. Without it the three built-in workflows do not register. Installed by `/rpiv-setup` |
123
124
  | `git` *(optional)* | Branch, commit, and user context. If it fails, injection is skipped and nothing else changes |
124
125
  | Node.js 22+ | Runtime for Pi and rpiv-pi's bundled scripts |
125
126
 
package/docs/lanes.md CHANGED
@@ -35,15 +35,16 @@ The browser replays the selected lane's transcript, tool calls included.
35
35
  | --- | --- |
36
36
  | `↑` / `↓` | Move along the lane spine. `↑` on the top row backs out |
37
37
  | `⏎` | Arm the parked question on a flagged lane, inline |
38
- | `PgUp` / `PgDn` | Scroll the transcript. Scrolling away from the tail switches the footer from `following` to `paused` |
38
+ | `PgUp` / `PgDn` | Scroll the transcript |
39
39
  | `t` | Expand or collapse tool output |
40
+ | `s` | Show or hide the per-stage token breakdown |
40
41
  | `x` | Stop the selected run |
41
42
  | `esc` / `←` | Back out to the prompt |
42
43
 
43
44
  The footer states the live contract:
44
45
 
45
46
  ```
46
- ↑/↓ lanes · ⏎ answer · following · PgUp/PgDn scroll · t expand · x stop · ↑/←/esc back
47
+ ↑/↓ lanes · ⏎ answer · PgUp/PgDn scroll · t expand · s stages · x stop · ↑/←/esc back
47
48
  ```
48
49
 
49
50
  ## Parked questions
@@ -123,8 +123,8 @@ still parses on read for back-compatibility; new saves emit the slash form.
123
123
  ### Typo detection
124
124
 
125
125
  A session-start check reports record keys that pass schema validation but would silently
126
- never apply — `skills.committ`, `agents.codebase-analzyer`, `presets.shipp`,
127
- `presets.ship.stages.plann`. It warns once per process with the dotted path. The
126
+ never apply — `skills.committ`, `agents.codebase-analzyer`, `presets.buildd`,
127
+ `presets.build.stages.plann`. It warns once per process with the dotted path. The
128
128
  `agents` and `skills` axes are always checked; `stages` and `presets` are checked only
129
129
  when the workflow runner can supply the universe of names, so you never get a false
130
130
  warning from a workflow it could not see.
@@ -154,22 +154,22 @@ skills inherit the same overrides through the cascade's skill rung.
154
154
  {
155
155
  "defaults": "anthropic/claude-opus-4-7",
156
156
  "presets": {
157
- "ship": {
157
+ "build": {
158
158
  "stages": {
159
159
  "plan": "openai/gpt-5.5",
160
- "design": { "model": "openai/gpt-5.5", "thinking": "high" }
160
+ "research": { "model": "openai/gpt-5.5", "thinking": "high" }
161
161
  }
162
162
  },
163
163
  "polish": {
164
164
  "stages": {
165
- "plan": "zai/glm-4-7"
165
+ "blueprint": "zai/glm-4-7"
166
166
  }
167
167
  }
168
168
  }
169
169
  }
170
170
  ```
171
171
 
172
- `/wf ship`'s plan and design stages use GPT-5.5, `/wf polish`'s plan stage uses GLM, and
172
+ `/wf build`'s plan and research stages use GPT-5.5, `/wf polish`'s blueprint stage uses GLM, and
173
173
  everything else falls through to Opus.
174
174
 
175
175
  **A subagent on a cheaper model**
package/docs/workflows.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Workflows and recipes
2
2
 
3
- The five `/wf` pipelines `@juicesharp/rpiv-pi` contributes, and the hand-driven
3
+ The three `/wf` pipelines `@juicesharp/rpiv-pi` contributes, and the hand-driven
4
4
  skill chains to reach for when you don't want a whole pipeline.
5
5
 
6
6
  `/wf` itself ships with [`@juicesharp/rpiv-workflow`](https://www.npmjs.com/package/@juicesharp/rpiv-workflow),
@@ -19,21 +19,7 @@ session start; if the runner is not installed, the built-ins simply do not appea
19
19
  A run appears as a lane in the dock under your editor. You keep typing in the main
20
20
  session while it works — see [lanes.md](./lanes.md).
21
21
 
22
- ## The five built-in workflows
23
-
24
- ### `ship`
25
-
26
- `blueprint → implement → validate → commit`
27
-
28
- Fast path with no research and no review. Best when the change is small and the
29
- approach is already obvious.
30
-
31
- ### `arch`
32
-
33
- `research → design → plan → implement → validate → code-review → (design loop | commit)`
34
-
35
- Design-led pipeline for complex changes touching many files or layers. Best when the
36
- approach itself has to be worked out before planning.
22
+ ## The three built-in workflows
37
23
 
38
24
  ### `vet`
39
25
 
@@ -53,7 +39,7 @@ each phase's plan must build on the ones before it.
53
39
 
54
40
  `goal → research → slice → slice gate (+ fix loop) → design-slice (parallel fanout) → design-review → synthesize → plan gate → elaborate (parallel fanout) → re-grade → implement → validate → commit`
55
41
 
56
- Ship, sliced. It captures your brief verbatim as a goal artifact — the north star the
42
+ Your brief, sliced. It captures your brief verbatim as a goal artifact — the north star the
57
43
  quality gates and `validate` anchor against — then decomposes the work into vertical
58
44
  slices, designs each in parallel, takes one consolidated developer checkpoint on the
59
45
  proposed interfaces, synthesizes hierarchically, and grades the plan before and after
@@ -61,7 +47,7 @@ code is elaborated into it. Three automated gates plus one human checkpoint.
61
47
 
62
48
  ## Review loops
63
49
 
64
- `arch`, `vet`, and `polish` gate on the numeric `blockers_count` a `code-review`
50
+ `vet` and `polish` gate on the numeric `blockers_count` a `code-review`
65
51
  artifact reports: greater than zero routes back into a fix stage, zero routes to
66
52
  `commit`. The runner's default backward-jump budget is 2, so a review loop runs at
67
53
  most three times before the workflow stops looping.
@@ -32,7 +32,7 @@ import {
32
32
  type ArtifactParser,
33
33
  defineParser,
34
34
  type Outcome,
35
- type ParseCtx,
35
+ type ParseContext,
36
36
  transcriptPathCollector,
37
37
  // Runner-free entry — keeps the ~530ms engine off the startup path.
38
38
  } from "@juicesharp/rpiv-workflow/registration";
@@ -73,7 +73,7 @@ export function rpivBucketCollector(bucket: string): ArtifactCollector {
73
73
  * with no frontmatter at all already does.
74
74
  */
75
75
  export const frontmatterParser: ArtifactParser<undefined, "artifact-md", Record<string, unknown>> = defineParser({
76
- parse(ctx: ParseCtx<undefined>) {
76
+ parse(ctx: ParseContext<undefined>) {
77
77
  const primary = ctx.artifacts[0];
78
78
  if (primary?.handle.kind !== "fs") {
79
79
  return {