@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.
- package/CHANGELOG.md +4 -0
- package/README.md +20 -13
- 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": "
|
|
129
|
+
"name": "docs-review",
|
|
130
130
|
"async": true,
|
|
131
|
-
"
|
|
132
|
-
"
|
|
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=
|
|
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=
|
|
207
|
-
description="Start
|
|
208
|
-
template="
|
|
209
|
-
args="
|
|
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 `
|
|
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
|
-
"
|
|
266
|
-
"description": "Start
|
|
267
|
-
"args": ["
|
|
268
|
-
"template": "
|
|
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
|
```
|