pi-baton 0.4.0 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -4,7 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  This project follows semantic versioning.
6
6
 
7
- ## [0.4.0] - 2026-06-20
7
+ ## [0.5.0] - 2026-06-23
8
+
9
+ ### Added
10
+
11
+ - `/baton:run` continuous run engine executes the active idle run through isolated subagent steps to a terminal state.
12
+ - Step records persist under `.pi/baton/runs/<run>/steps/` and raw outputs under `outputs/`.
13
+ - Terminal run summaries report the failing step as `last step` when step execution fails.
14
+
15
+ ### Changed
16
+
17
+ - Expanded `run-engine` tests for step/output persistence, state transitions, and failure `last step` reporting.
18
+
19
+ ## [0.4.0] - 2026-06-22
8
20
 
9
21
  ### Added
10
22
 
@@ -12,6 +24,11 @@ This project follows semantic versioning.
12
24
  - `/baton:status` reports workflow name, task brief, last/current step, run state, iteration count, and run directory.
13
25
  - Single active run guard blocks a second `/baton:start` and points users to `/baton:status` or `/baton:run`.
14
26
  - Run manifests persist under `.pi/baton/runs/` with an active-run pointer.
27
+ - Expanded workflow schema validation tests covering required fields, linear `next` transitions, review `on_accept` / `on_reject` branches, and invalid YAML handling at discovery time.
28
+
29
+ ### Changed
30
+
31
+ - Workflow selection display names continue to come from YAML `name`; invalid or incomplete workflow documents now fail with explicit validation errors during `/baton:start` and `/baton:run` discovery.
15
32
 
16
33
  ## [0.3.0] - 2026-06-18
17
34
 
package/lib/run-engine.ts CHANGED
@@ -242,7 +242,7 @@ export async function runContinuous(options: RunEngineOptions): Promise<RunResul
242
242
  manifest = await updateRunState(options.cwd, manifest.id, {
243
243
  state: "failed",
244
244
  failureReason,
245
- lastStep: manifest.lastStep,
245
+ lastStep: currentStep ?? manifest.lastStep,
246
246
  currentStep,
247
247
  });
248
248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-baton",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Pi-native workflow baton runner with per-step model switching and isolated step context.",
5
5
  "type": "module",
6
6
  "license": "MIT",