pi-fabric 0.30.0 → 0.30.2

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.
@@ -58,7 +58,7 @@ export const loadStateFilePreview = (entry, cwd) => {
58
58
  const allLines = decoded.split("\n");
59
59
  const boundedLines = allLines.slice(0, MAX_FILE_LINES);
60
60
  const preview = {
61
- path: path.relative(root, absolute) || path.basename(absolute),
61
+ path: (path.relative(root, absolute) || path.basename(absolute)).split(path.sep).join("/"),
62
62
  language: languageFromPath(absolute) ?? "text",
63
63
  content: boundedLines.join("\n"),
64
64
  lines: boundedLines,
@@ -1 +1 @@
1
- {"version":3,"file":"state-file-preview.js","sourceRoot":"","sources":["../../src/ui/state-file-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC;AACjC,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,WAAW,GAAG,EAAE,CAAC;AAUvB,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkC,CAAC;AAExD,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAsB,EAAE;IACtE,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1B,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAChE,MAAM,MAAM,GAAG,KAAgC,CAAC;QAChD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC;QAC7C,IA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AO,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,QAAQ,EAAE,CAAC;QAC3F,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;QACjE,MAAM,KAAK,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,iBAAiB,CAAC,CAAC,CAAC,kBAAkB,CAAC;QAC/E,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC;AAC9D,CAAC,CAAC"}
package/docs/agents.md CHANGED
@@ -90,7 +90,7 @@ The default `prewalk.mode` is `"in-place"`:
90
90
 
91
91
  In-place mode does not spawn a child, does not fork the transcript, and does not require `agents.enabled`. Pi's public extension model switch currently records the model in the session and updates Pi's default model setting; the executor therefore remains selected after prewalk. Switching can fail before continuation if the model is unavailable or unauthenticated, in which case the outer result clearly reports the failure and Main remains idle.
92
92
 
93
- Set `prewalk.mode` to `"trajectory"` to opt into the former child-based behavior. Fabric forks the exact finalized outer call/result into a Pi child, starts the selected executor in the shared workspace, and waits. Main intentionally remains idle after that child finishes. The parent Fabric card and activity UI show the synthetic `agents.handoff` call, child identity, live status/current tool, nested preview, metrics, and terminal result, so the wait is not silent. Trajectory mode requires enabled agents and remains the behavior of explicit `agents.handoff()`.
93
+ Set `prewalk.mode` to `"trajectory"` to opt into the child-based behavior. Fabric forks the exact finalized outer call/result into a Pi child, starts the selected executor in the shared workspace, and waits. When the child finishes, Fabric replaces the boundary result with the executor's report and queues a hidden continuation: Main verifies the implementation with the relevant checks and summarizes instead of going idle, redoing nothing the executor completed. The executor's reasoning effort comes from `prewalk.thinking`, inheriting `agents.thinking` when unset. The parent Fabric card and activity UI show the synthetic `agents.handoff` call, child identity, live status/current tool, nested preview, metrics, and terminal result, so the wait is not silent. Trajectory mode requires enabled agents and remains the behavior of explicit `agents.handoff()`.
94
94
 
95
95
  Prewalk adds no system-prompt instructions. Its hidden continuation is queued only after a matching mutation boundary; it is not an open-ended per-turn nudge. If a captured task settles without a monitored trigger, prewalk disarms instead of leaking into the next task. An explicit successful `agents.handoff()` takes precedence over automatic prewalk. Both modes require full code mode and are unavailable in Schema enforce mode.
96
96
 
@@ -113,18 +113,21 @@ Configuration documents are versioned with `configVersion`. Fabric migrates each
113
113
  `prewalk.model` is the optional Pi `provider/model` selected by `/fabric prewalk`. `prewalk.mode` chooses how execution continues:
114
114
 
115
115
  - `"in-place"` (default) switches Main to the executor model and queues a hidden follow-up in the same session.
116
- - `"trajectory"` forks the finalized outer Fabric call/result to a visible Pi child and waits; Main is idle when the child finishes.
116
+ - `"trajectory"` forks the finalized outer Fabric call/result to a visible Pi child and waits; when the child finishes, a hidden continuation turn has Main verify the work and summarize instead of going idle.
117
117
 
118
118
  ```json
119
119
  {
120
120
  "prewalk": {
121
121
  "mode": "in-place",
122
122
  "model": "anthropic/claude-haiku-4-5",
123
+ "thinking": "high",
123
124
  "alwaysRearm": true
124
125
  }
125
126
  }
126
127
  ```
127
128
 
129
+ `prewalk.thinking` is the optional reasoning effort (`off` / `minimal` / `low` / `medium` / `high` / `xhigh` / `max`) for the trajectory child executor, clamped to each model's supported levels. When unset, the executor inherits `agents.thinking`; in-place mode keeps Main's session level.
130
+
128
131
  `prewalk.alwaysRearm` defaults to `false`. When enabled, prewalk returns to an armed, taskless state after each continuation or settled task. The settings UI labels an unset model **Ask each time**; non-interactive sessions must configure a model. In-place mode does not require child agents. Trajectory mode requires `agents.enabled` and exposes child spawn, progress, nested tools, metrics, and completion in Main's Fabric activity UI.
129
132
 
130
133
  Pi's public `setModel` extension API persists the in-place executor as the active session model and updates Pi's default model setting. Fabric does not silently restore the planner model after the task.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-fabric",
3
- "version": "0.30.0",
3
+ "version": "0.30.2",
4
4
  "description": "A programmable tool and agent runtime for Pi",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -90,11 +90,11 @@ The guest result is `{ scheduled: true, status: "deferred", boundary: "fabric_ex
90
90
 
91
91
  ## Automatic prewalk
92
92
 
93
- `/fabric prewalk [task]` arms one automatic continuation when a Fabric invocation contains a successful `pi.edit`, `pi.write`, or `schema.commit`. With a task it submits immediately; without one it captures the next user input. The executor comes from `prewalk.model` or an interactive choice. `prewalk.alwaysRearm` keeps the controller armed until `/fabric prewalk --off`.
93
+ `/fabric prewalk [task]` arms one automatic continuation when a Fabric invocation contains a successful `pi.edit`, `pi.write`, or `schema.commit`. With a task it submits immediately; without one it captures the next user input. The executor comes from `prewalk.model` or an interactive choice, and its reasoning effort from `prewalk.thinking` (inheriting `agents.thinking` when unset). `prewalk.alwaysRearm` keeps the controller armed until `/fabric prewalk --off`.
94
94
 
95
95
  The default `prewalk.mode: "in-place"` switches Main to the executor model at the finalized outer boundary and queues one hidden follow-up to continue the existing task. It does not spawn or wait for a child. The outer tool terminates the old-model automatic turn, then Pi drains the queued continuation on the newly selected model. This mode requires full code mode but not enabled agents; Pi's public model switch also updates its persisted default model.
96
96
 
97
- Set `prewalk.mode: "trajectory"` to fork the finalized call/result into a Pi child and wait. Main remains idle afterward by design. The parent activity card shows the handoff call, child, progress/current tool, nested tools, metrics, and result. Trajectory mode requires enabled agents. Both modes let all nested calls settle before the boundary, disarm a triggerless completed task, defer to explicit `agents.handoff()`, and are disabled by Schema enforce mode. Use `/fabric prewalk --status` or `/fabric prewalk --off`.
97
+ Set `prewalk.mode: "trajectory"` to fork the finalized call/result into a Pi child and wait. A hidden follow-up then has Main verify the child's work and summarize, so it never settles idle by design. The parent activity card shows the handoff call, child, progress/current tool, nested tools, metrics, and result. Trajectory mode requires enabled agents. Both modes let all nested calls settle before the boundary, disarm a triggerless completed task, defer to explicit `agents.handoff()`, and are disabled by Schema enforce mode. Use `/fabric prewalk --status` or `/fabric prewalk --off`.
98
98
 
99
99
  Use `/fabric agents` to list children and `/fabric attach <id>` for the attach command. Abort signals propagate to the transport and selected child process. Claude runs use official `claude -p` stream JSON with `dontAsk`, `--tools`, and `--allowedTools`; `extensions: false` adds Claude safe mode. One-shot Claude sessions use `--no-session-persistence`. Claude cannot use `recursive: true`, `fabric_exec`, or direct mesh APIs.
100
100