@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 +4 -0
- package/docs/async-runs.md +6 -9
- package/docs/template-recipes.md +5 -5
- package/docs/tool-registry.md +10 -10
- package/package.json +1 -1
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.
|
package/docs/async-runs.md
CHANGED
|
@@ -188,22 +188,19 @@ Shape:
|
|
|
188
188
|
|
|
189
189
|
```json
|
|
190
190
|
{
|
|
191
|
-
"
|
|
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
|
-
"
|
|
197
|
+
"body": { "track": "/Music/track.flac", "index": 3, "count": 42 }
|
|
197
198
|
}
|
|
198
199
|
```
|
|
199
200
|
|
|
200
|
-
`level` is `info`, `warning`, or `error`.
|
|
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
|
-
-
|
|
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
|
|
package/docs/template-recipes.md
CHANGED
|
@@ -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
|
-
"
|
|
174
|
-
"description": "Start
|
|
175
|
-
"args": ["
|
|
176
|
-
"template": "
|
|
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 `
|
|
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
|
|
package/docs/tool-registry.md
CHANGED
|
@@ -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
|
|
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=
|
|
54
|
-
description="Start
|
|
55
|
-
template="
|
|
56
|
-
args="
|
|
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/
|
|
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
|
-
"
|
|
97
|
-
"description": "Start
|
|
98
|
-
"args": ["
|
|
99
|
-
"template": "
|
|
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
|
```
|