pi-baton 0.6.0 → 0.7.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +54 -4
  3. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -4,6 +4,24 @@ 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.7.1] - 2026-06-27
8
+
9
+ ### Changed
10
+
11
+ - README aligned to the current Pi extension template: added `Features`, `Release`, `Security`, and `Links` sections; expanded install flows (`npm`, GitHub, project-local, and `pi -e`); and updated `Package contents` to match the published tarball.
12
+
13
+ ## [0.7.0] - 2026-06-25
14
+
15
+ ### Added
16
+
17
+ - Command handler tests for `/baton:new`, `/baton:start`, `/baton:run`, and `/baton:status` covering scaffold creation, inline validation, active-run guard, and no-active-run messaging.
18
+ - Handoff payload shape tests for implement, linear, and fix transitions.
19
+ - Run-store tests for active-run visibility across idle, running, and terminal states.
20
+
21
+ ### Changed
22
+
23
+ - Finalizes the shipped builtin `default-review-loop` workflow (`worker` / `reviewer` / `worker`) with full v1 command-surface test coverage.
24
+
7
25
  ## [0.6.0] - 2026-06-25
8
26
 
9
27
  ### Added
package/README.md CHANGED
@@ -5,9 +5,12 @@
5
5
  </p>
6
6
 
7
7
  [![CI](https://github.com/eiei114/pi-baton/actions/workflows/ci.yml/badge.svg)](https://github.com/eiei114/pi-baton/actions/workflows/ci.yml)
8
+ [![Publish](https://github.com/eiei114/pi-baton/actions/workflows/publish.yml/badge.svg)](https://github.com/eiei114/pi-baton/actions/workflows/publish.yml)
8
9
  [![npm version](https://img.shields.io/npm/v/pi-baton.svg)](https://www.npmjs.com/package/pi-baton)
10
+ [![npm downloads](https://img.shields.io/npm/dm/pi-baton.svg)](https://www.npmjs.com/package/pi-baton)
9
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
10
12
  [![Pi package](https://img.shields.io/badge/pi-package-purple.svg)](https://pi.dev/packages)
13
+ [![Trusted Publishing](https://img.shields.io/badge/npm-Trusted%20Publishing-blue.svg)](docs/release.md)
11
14
 
12
15
  > Run YAML-defined review loops in Pi with per-step model switching and isolated step context.
13
16
 
@@ -15,6 +18,8 @@
15
18
 
16
19
  Pi Baton is a Pi-native workflow baton runner. Define `implement → review → fix` loops in YAML, and let Pi Baton execute them with automatic baton handoff between isolated subagent steps.
17
20
 
21
+ ## Features
22
+
18
23
  - **Per-step model switching** — fast model for implement, strong model for review
19
24
  - **Isolated step context** — no shared conversation pollution between steps
20
25
  - **Structured review contract** — `accept`/`reject` with mandatory findings or acceptance notes
@@ -22,24 +27,46 @@ Pi Baton is a Pi-native workflow baton runner. Define `implement → review →
22
27
 
23
28
  ## Install
24
29
 
30
+ Install the published npm package with Pi:
31
+
25
32
  ```bash
26
33
  pi install npm:pi-baton
27
34
  ```
28
35
 
29
- Project-local:
36
+ Pin a specific version when you want reproducible installs:
37
+
38
+ ```bash
39
+ pi install npm:pi-baton@0.7.1
40
+ ```
41
+
42
+ Install into the current project instead of your user Pi settings:
30
43
 
31
44
  ```bash
32
45
  pi install npm:pi-baton -l
33
46
  ```
34
47
 
35
- GitHub:
48
+ Or install from GitHub:
36
49
 
37
50
  ```bash
38
51
  pi install git:github.com/eiei114/pi-baton
39
52
  ```
40
53
 
54
+ Try it without permanently installing:
55
+
56
+ ```bash
57
+ pi -e npm:pi-baton
58
+ ```
59
+
41
60
  ## Quick start
42
61
 
62
+ Try this package locally from a clone of this repository:
63
+
64
+ ```bash
65
+ pi -e .
66
+ ```
67
+
68
+ Then run:
69
+
43
70
  ```txt
44
71
  /baton:new create a workflow scaffold
45
72
  /baton:start choose workflow + task brief → idle run
@@ -102,12 +129,12 @@ steps:
102
129
 
103
130
  | Path | Purpose |
104
131
  |---|---|
105
- | `extensions/` | 4 slash-command entrypoint (`/baton:new`, `/baton:start`, `/baton:run`, `/baton:status`) |
132
+ | `extensions/` | Slash-command entrypoints (`/baton:new`, `/baton:start`, `/baton:run`, `/baton:status`) |
106
133
  | `lib/` | Workflow parser, run engine, subagent runner, review contract, UI widget |
107
134
  | `agents/` | Builtin `worker` and `reviewer` subagent definitions |
108
135
  | `workflows/` | Builtin `default-review-loop.yaml` |
109
136
  | `assets/` | README / package branding assets |
110
- | `docs/` | Release docs |
137
+ | `docs/` | Release and maintainer docs |
111
138
 
112
139
  ## Development
113
140
 
@@ -116,6 +143,29 @@ npm install
116
143
  npm run ci
117
144
  ```
118
145
 
146
+ ## Release
147
+
148
+ This package uses npm Trusted Publishing with GitHub Actions OIDC — no `NPM_TOKEN` is required.
149
+
150
+ ```bash
151
+ npm version patch
152
+ git push
153
+ ```
154
+
155
+ On `main`, version bumps trigger auto-release and publish workflows. See [`docs/release.md`](docs/release.md) for setup details.
156
+
157
+ ## Security
158
+
159
+ Pi packages can execute code with your local permissions. Review extensions before installing third-party packages.
160
+
161
+ For vulnerability reporting, see [`SECURITY.md`](SECURITY.md).
162
+
163
+ ## Links
164
+
165
+ - npm: https://www.npmjs.com/package/pi-baton
166
+ - GitHub: https://github.com/eiei114/pi-baton
167
+ - Issues: https://github.com/eiei114/pi-baton/issues
168
+
119
169
  ## License
120
170
 
121
171
  MIT
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "pi-baton",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "Pi-native workflow baton runner with per-step model switching and isolated step context.",
5
5
  "type": "module",
6
+ "engines": {
7
+ "node": ">=22.6.0"
8
+ },
6
9
  "license": "MIT",
7
10
  "author": "eiei114",
8
11
  "keywords": [
@@ -58,7 +61,7 @@
58
61
  "@earendil-works/pi-ai": "latest",
59
62
  "@earendil-works/pi-coding-agent": "latest",
60
63
  "typebox": "latest",
61
- "@types/node": "^22.0.0",
64
+ "@types/node": "^26.0.1",
62
65
  "typescript": "^6.0.3"
63
66
  }
64
67
  }