@dougbots/avenor-pi 0.15.0 → 0.16.0

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
@@ -117,8 +117,12 @@ Available tools for LLM sub-agent management:
117
117
  | `avenor_result` | Wait for a run and return its complete final output without transcript details |
118
118
  | `avenor_inspect` | Review a bounded transcript, tool activity, permissions, and final output |
119
119
  | `avenor_answer_permission` | Answer a pending permission request |
120
- | `avenor_follow_up` | Resume a completed run with a follow-up message |
120
+ | `avenor_message` | One messaging tool with an explicit `action`: `tell`, `ask`, `reply`, `resume`, `withdraw` or `control_reply`. Every result states the outcome and, for a failed ask, whether it can still be withdrawn. |
121
+ | `avenor_peers` | One peers tool with an explicit `action`: `list` (the default), `rename` or `last`. `last` returns the target's last agent message with its stop reason, or the empty result when the target has no completed turn yet. |
121
122
  | `avenor_events` | Read events from a run |
123
+ | `avenor_kill` | Kill a run |
124
+ | `avenor_workflow_status`, `avenor_workflow_wait`, `avenor_workflow_inspect`, `avenor_workflow_events`, `avenor_workflow_complete`, `avenor_workflow_gate`, `avenor_workflow_controller_status` | Inspect and drive workflow instances |
125
+ | `avenor_workflow_cancel` | Cancel a workflow instance (`workflow_id`, `actor`, `reason`) |
122
126
  | `avenor_shutdown` | Shut down the avenor supervisor |
123
127
 
124
128
  ### Direct and roster spawns
@@ -194,7 +198,7 @@ is not an `avenor_spawn` parameter and applies only to Pi-backed child runs.
194
198
  2. tool call returns → completion preview with status + session_id
195
199
  3. avenor_result → retrieve the complete final output when needed
196
200
  4. avenor_inspect → inspect transcript and tool details when needed
197
- 5. avenor_follow_up → optionally iterate
201
+ 5. avenor_message → action "resume" to optionally iterate
198
202
  6. avenor_shutdown → clean up when finished
199
203
  ```
200
204
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { InspectResult, StatusResult, Supervisor, answerPermissionTool, attachOwner, brokerReceiveTool, brokerReplyTool, dial, eventsTool, followUpTool, inspectTool, killTool, observeRun, resultTool, shutdownTool, spawnTool, statusTool, workflowCompleteTool, workflowControllerStatusTool, workflowEventsTool, workflowGateTool, workflowInspectTool, workflowReadyTool, workflowStatusTool, workflowWaitTool } from "@dougbots/avenor-core";
1
+ import { InspectResult, MessageProvider, StatusResult, Supervisor, answerPermissionTool, attachOwner, brokerReceiveTool, dial, eventsTool, getSupervisorClient, inspectTool, killTool, messageTool, observeRun, resultTool, shutdownTool, spawnTool, statusTool, workflowCancelTool, workflowCompleteTool, workflowControllerStatusTool, workflowEventsTool, workflowGateTool, workflowInspectTool, workflowReadyTool, workflowStatusTool, workflowWaitTool } from "@dougbots/avenor-core";
2
2
  import { EventBus, ExtensionAPI } from "@earendil-works/pi-coding-agent";
3
3
 
4
4
  //#region src/subagent-broker.d.ts
@@ -122,11 +122,10 @@ interface ExtensionDeps {
122
122
  statusTool: typeof statusTool;
123
123
  eventsTool: typeof eventsTool;
124
124
  answerPermissionTool: typeof answerPermissionTool;
125
- followUpTool: typeof followUpTool;
125
+ messageTool: typeof messageTool;
126
126
  inspectTool: typeof inspectTool;
127
127
  resultTool: typeof resultTool;
128
128
  brokerReceiveTool: typeof brokerReceiveTool;
129
- brokerReplyTool: typeof brokerReplyTool;
130
129
  shutdownTool: typeof shutdownTool;
131
130
  killTool: typeof killTool;
132
131
  workflowStatusTool: typeof workflowStatusTool;
@@ -137,6 +136,11 @@ interface ExtensionDeps {
137
136
  workflowGateTool: typeof workflowGateTool;
138
137
  workflowControllerStatusTool: typeof workflowControllerStatusTool;
139
138
  workflowReadyTool: typeof workflowReadyTool;
139
+ workflowCancelTool: typeof workflowCancelTool;
140
+ /** Resolve the bound provider for one supervisor, creating it on demand. */
141
+ hostProviderFor?: (supervisorId: string | undefined) => Promise<MessageProvider>;
142
+ /** Dial a supervisor for the default host provider; tests inject a fake client. */
143
+ getSupervisorClient?: typeof getSupervisorClient;
140
144
  observeRun: typeof observeRun;
141
145
  dial: typeof dial;
142
146
  attachOwner: typeof attachOwner;