@llblab/pi-actors 0.12.4 → 0.12.5

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 +4 -0
  2. package/README.md +20 -13
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.12.5: README Actor Recipe Example
6
+
7
+ - `[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.
8
+
5
9
  ## 0.12.4: Actor Runtime Positioning
6
10
 
7
11
  - `[Docs]` Reframed README and package metadata around `pi-actors` as an actor runtime and orchestrator for agent-managed local processes, while preserving the persistent actor-tool registry as one capability. Impact: new readers see how templates, recipes, mailboxes, messages, artifacts, and run state turn any trusted local process into an agent-controllable actor.
package/README.md CHANGED
@@ -126,17 +126,24 @@ Move to actor recipes when work is long-running, parallel, service-like, or agen
126
126
 
127
127
  ```json
128
128
  {
129
- "name": "shader-ring-8-parallel",
129
+ "name": "docs-review",
130
130
  "async": true,
131
- "parallel": true,
132
- "template": ["..."]
131
+ "args": ["scope:path", "model:string"],
132
+ "defaults": {
133
+ "model": "openai-codex/gpt-5.5"
134
+ },
135
+ "mailbox": {
136
+ "accepts": ["control.stop"],
137
+ "emits": ["review.completed", "run.failed"]
138
+ },
139
+ "template": "pi -p --model {model} --no-tools \"Review {scope} for unclear actor-runtime onboarding. Return concise findings.\""
133
140
  }
134
141
  ```
135
142
 
136
143
  Expose a reusable actor recipe as a normal capability:
137
144
 
138
145
  ```text
139
- register_tool name=shader_ring description="Start shader ring" template="shader-ring-8-parallel.json" args="theme,out_dir"
146
+ register_tool name=docs_review description="Start an async docs review actor" template="docs-review.json" args="scope:path,model:string=openai-codex/gpt-5.5"
140
147
  ```
141
148
 
142
149
  `Task` is the user's work item. `Template` is the execution graph. `Actor recipe` is saved JSON. `Run` is one actor instance with status, logs, messages, cancellation, artifacts, and ambient triangles.
@@ -203,13 +210,13 @@ register_tool name=transcribe \
203
210
  For reusable actor workflows, keep the large template and mailbox contract in a recipe file and register a small tool:
204
211
 
205
212
  ```text
206
- register_tool name=shader_ring \
207
- description="Start the shader ring recipe" \
208
- template="shader-ring-8-parallel.json" \
209
- args="theme,out_dir"
213
+ register_tool name=docs_review \
214
+ description="Start an async docs review actor" \
215
+ template="docs-review.json" \
216
+ args="scope:path,model:string=openai-codex/gpt-5.5"
210
217
  ```
211
218
 
212
- If the recipe file contains `async: true`, calling `shader_ring` starts a detached run and returns metadata immediately. If `async` is omitted or false, the same recipe runs foreground and returns normal tool output.
219
+ If the recipe file contains `async: true`, calling `docs_review` starts a detached run and returns metadata immediately. If `async` is omitted or false, the same recipe runs foreground and returns normal tool output.
213
220
 
214
221
  A recipe can also be co-located in `actors-tools.json` when keeping metadata and the recipe body together is clearer:
215
222
 
@@ -262,10 +269,10 @@ The commands above persist entries like this in `~/.pi/agent/actors-tools.json`;
262
269
  "description": "Run pi as a non-interactive sub-agent",
263
270
  "template": "pi -p --model {model=openai-codex/gpt-5.5} --no-tools {prompt}"
264
271
  },
265
- "shader_ring": {
266
- "description": "Start the shader ring recipe",
267
- "args": ["theme", "out_dir"],
268
- "template": "shader-ring-8-parallel.json"
272
+ "docs_review": {
273
+ "description": "Start an async docs review actor",
274
+ "args": ["scope:path", "model:string=openai-codex/gpt-5.5"],
275
+ "template": "docs-review.json"
269
276
  }
270
277
  }
271
278
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-actors",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "private": false,
5
5
  "description": "Actor runtime and orchestrator for agent-managed local processes",
6
6
  "type": "module",