pi-task-dispatcher 3.0.1 → 3.0.2

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/README.md CHANGED
@@ -6,7 +6,7 @@ Each delegation runs in an isolated, in-memory Pi RPC session. After every cohes
6
6
 
7
7
  ## Features
8
8
 
9
- - **Four worker roles:** prescribed mechanical execution, bounded assistant work, broader engineering, and media design.
9
+ - **Four worker roles:** prescribed mechanical execution, fallback assistant work, broader engineering, and media design.
10
10
  - **Enforced supervision:** a private parent-child IPC gate calls `ctx.abort()` after persisted tool results; pausing does not depend on the worker following a prompt.
11
11
  - **Explicit control:** continue, revise, recalculate, compact, checkpoint, cancel, or take over.
12
12
  - **Resumable context:** continuation uses the same in-memory worker session and completed tool results.
@@ -38,7 +38,7 @@ pi install npm:pi-task-dispatcher
38
38
  | Tool | Responsibility |
39
39
  | --- | --- |
40
40
  | `delegate_mechanical` | Execute prescribed work whose method and expected result are already known. |
41
- | `delegate_assistant` | Perform bounded, low-complexity interpretation, synthesis, or routine updates. |
41
+ | `delegate_assistant` | Perform the user-requested work when no other worker role applies; the orchestrator does not perform that work directly. |
42
42
  | `delegate_engineering` | Investigate or implement uncertain, cross-component, or technically intensive work. |
43
43
  | `delegate_designer` | Create or edit image assets and process image, video, or audio files with available tools. |
44
44
  | `delegate_control` | Apply one explicit manager decision to a paused delegation. |
@@ -51,10 +51,12 @@ Only one live delegation is currently permitted. A terminal delegation may be in
51
51
  | Role | Selection rule |
52
52
  | --- | --- |
53
53
  | Mechanic | The method and expected result are known; execute exact steps. |
54
- | Assistant | The task needs limited judgment but remains bounded, low-risk, and locally verifiable. It does not assume manager authority or make architectural decisions. |
54
+ | Assistant | When no other worker role applies, use `delegate_assistant` for the user-requested work instead of having the orchestrator perform it directly. |
55
55
  | Engineer | The cause, design, or implementation path is uncertain or spans components. |
56
56
  | Designer | The requested result is an image, video, audio, or related media asset or transformation. |
57
57
 
58
+ The orchestrator retains responsibility for delegation decisions, worker supervision, integration of delegated results, and the final response.
59
+
58
60
  The designer can inspect images with `read`, use image models through `codemode`, and run explicitly selected command-line media programs through `bash` or `powershell`. Generated codemode images are runtime-temporary until the worker deliberately copies a selected output to the requested workspace destination and verifies it. Video and audio generation depends on explicitly available command-line programs or services; editing workflows can use programs such as `ffmpeg` when installed.
59
61
 
60
62
  ## Starting a delegation
@@ -227,7 +227,7 @@ Own only the supplied image, video, audio, or media-asset objective while the ca
227
227
 
228
228
  const ROLE_DESCRIPTIONS: Record<Role, string> = {
229
229
  mechanic: "Start a supervised mechanical delegation for prescribed execution with a known method and result.",
230
- assistant: "Start a supervised assistant delegation for bounded, low-complexity interpretation, synthesis, or routine updates.",
230
+ assistant: "Start a supervised assistant delegation for a subtask you would otherwise perform directly, when no other worker role applies.",
231
231
  engineer: "Start a supervised engineering delegation for uncertain, cross-component, or implementation-intensive work.",
232
232
  designer: "Start a supervised media-design delegation for image generation or editing and command-line image, video, or audio processing.",
233
233
  };
@@ -1313,6 +1313,9 @@ function registerDelegate(pi: ExtensionAPI, role: Role): void {
1313
1313
  description: ROLE_DESCRIPTIONS[role],
1314
1314
  promptSnippet: `${name}: start a supervised ${role} delegation that pauses after each completed action batch`,
1315
1315
  promptGuidelines: [
1316
+ ...(role === "assistant"
1317
+ ? ["When no other worker role applies, use delegate_assistant for the user-requested work instead of performing it directly. Retain delegation decisions, worker supervision, result integration, and the final response."]
1318
+ : []),
1316
1319
  "Supply semantic workload units rather than raw turn or timeout values.",
1317
1320
  "Inspect every paused state and choose continue, revise, recalculate, compact, checkpoint, cancel, or take over.",
1318
1321
  "Worker reports remain evidence to review, not proof of correctness.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-task-dispatcher",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Run configurable Pi worker models as supervised, observable, resumable jobs.",
5
5
  "type": "module",
6
6
  "keywords": [