@llblab/pi-actors 0.12.5 → 0.12.6

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.12.6: Documentation Example Alignment
6
+
7
+ - `[Docs]` Replaced remaining shader-ring recipe examples in registry and template-recipe docs with the concrete docs-review actor recipe example, aligned test fixtures, and changed async-run outbox docs to show actor message envelopes without public delivery knobs. Impact: public docs now consistently demonstrate useful actor wrapping and keep coordinator attention policy out of recipe-authored message examples.
8
+
5
9
  ## 0.12.5: README Actor Recipe Example
6
10
 
7
11
  - `[Docs]` Replaced the placeholder shader-ring onboarding recipe with a concrete async docs-review actor recipe that includes typed args, mailbox metadata, and a real launch template. Impact: README onboarding now demonstrates actor wrapping instead of an abstract placeholder.
@@ -188,22 +188,19 @@ Shape:
188
188
 
189
189
  ```json
190
190
  {
191
- "event": "player.track",
191
+ "type": "player.track",
192
+ "to": "coordinator",
193
+ "from": "run:music-player",
192
194
  "summary": "Now playing: track.flac",
193
195
  "level": "info",
194
- "delivery": "log",
195
196
  "ts": "2026-05-19T00:00:00.000Z",
196
- "data": { "track": "/Music/track.flac", "index": 3, "count": 42 }
197
+ "body": { "track": "/Music/track.flac", "index": 3, "count": 42 }
197
198
  }
198
199
  ```
199
200
 
200
- `level` is `info`, `warning`, or `error`. `delivery` is `log`, `notify`, or `followup`:
201
+ `level` is `info`, `warning`, or `error`. The public message describes sender, receiver, type, summary, and body; it does not choose notification mechanics. Runtime attention policy infers whether a coordinator-bound message stays available for explicit `inspect`, becomes a UI notification, or re-enters the launching coordinator as compact follow-up context.
201
202
 
202
- - `log`: stored only; read explicitly with `inspect view=events`.
203
- - `notify`: shown as a UI notification to the launching coordinator session.
204
- - `followup`: notification plus compact follow-up context to the launching coordinator session.
205
-
206
- Use `followup` for completion and decision-point messages that should reach the coordinator, not for every progress tick. Packaged multi-agent branch completion is a completion message and should bubble by default. Follow-up path lists use Markdown hierarchy: a section heading, `- Base: ...`, and `- Files: ...`, so repeated run-state prefixes do not flood agent context.
203
+ Use coordinator-bound messages for completion and decision points, not for every progress tick. Packaged multi-agent branch completion is a completion message and should bubble by default. Follow-up path lists use Markdown hierarchy: a section heading, `- Base: ...`, and `- Files: ...`, so repeated run-state prefixes do not flood agent context.
207
204
 
208
205
  ## Cancellation And Ownership
209
206
 
@@ -170,15 +170,15 @@ A registered tool can point at an actor recipe by storing the recipe path or nam
170
170
 
171
171
  ```json
172
172
  {
173
- "shader_ring": {
174
- "description": "Start the shader ring recipe",
175
- "args": ["theme", "out_dir"],
176
- "template": "shader-ring-8-parallel.json"
173
+ "docs_review": {
174
+ "description": "Start an async docs review actor",
175
+ "args": ["scope:path", "model:string=openai-codex/gpt-5.5"],
176
+ "template": "docs-review.json"
177
177
  }
178
178
  }
179
179
  ```
180
180
 
181
- If `shader-ring-8-parallel.json` contains `async: true`, calling `shader_ring` starts a detached run and returns metadata. If `async` is omitted or false, calling `shader_ring` executes the recipe foreground and returns normal tool output.
181
+ If `docs-review.json` contains `async: true`, calling `docs_review` starts a detached actor run and returns metadata. If `async` is omitted or false, calling `docs_review` executes the recipe foreground and returns normal tool output.
182
182
 
183
183
  A registered tool may also co-locate an actor recipe directly in `actors-tools.json`:
184
184
 
@@ -47,16 +47,16 @@ Use `update=true` to overwrite an existing tool. Omit `template` and co-located
47
47
  ]
48
48
  ```
49
49
 
50
- For reusable workflows, register a small tool whose `template` points to a template recipe instead of embedding a large parallel template in the tool itself:
50
+ For reusable actor workflows, register a small tool whose `template` points to an actor recipe instead of embedding the launch graph in the tool itself:
51
51
 
52
52
  ```text
53
- register_tool name=shader_ring \
54
- description="Start the shader ring recipe" \
55
- template="shader-ring-8-parallel.json" \
56
- args="theme,out_dir"
53
+ register_tool name=docs_review \
54
+ description="Start an async docs review actor" \
55
+ template="docs-review.json" \
56
+ args="scope:path,model:string=openai-codex/gpt-5.5"
57
57
  ```
58
58
 
59
- This stores the recipe path in the registry as `template`. If `~/.pi/agent/recipes/shader-ring-8-parallel.json` contains `async: true`, calling the tool starts a detached run and returns metadata immediately. If `async` is omitted or false, the same recipe runs foreground and returns normal tool output.
59
+ This stores the recipe path in the registry as `template`. If `~/.pi/agent/recipes/docs-review.json` contains `async: true`, calling the tool starts a detached actor run and returns metadata immediately. If `async` is omitted or false, the same recipe runs foreground and returns normal tool output.
60
60
 
61
61
  When co-location is clearer than a separate file, the registry entry may include recipe fields directly beside tool metadata:
62
62
 
@@ -93,10 +93,10 @@ Tool names come from the top-level registry keys. Tool entries define `template`
93
93
  "description": "Run pi as a non-interactive sub-agent",
94
94
  "template": "pi -p --model {model=openai-codex/gpt-5.5} --no-tools {prompt}"
95
95
  },
96
- "shader_ring": {
97
- "description": "Start the shader ring recipe",
98
- "args": ["theme", "out_dir"],
99
- "template": "shader-ring-8-parallel.json"
96
+ "docs_review": {
97
+ "description": "Start an async docs review actor",
98
+ "args": ["scope:path", "model:string=openai-codex/gpt-5.5"],
99
+ "template": "docs-review.json"
100
100
  }
101
101
  }
102
102
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-actors",
3
- "version": "0.12.5",
3
+ "version": "0.12.6",
4
4
  "private": false,
5
5
  "description": "Actor runtime and orchestrator for agent-managed local processes",
6
6
  "type": "module",