@nredd/pi-subagents 0.22.0-nredd.5 → 0.22.0-nredd.7
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 +38 -8
- package/package.json +1 -1
- package/src/agent-manager.ts +307 -110
- package/src/index.ts +40 -17
- package/src/invocation-config.ts +5 -19
- package/src/nested-tools.ts +9 -0
- package/src/process-budget.ts +343 -0
- package/src/schedule.ts +5 -1
- package/src/settings.ts +75 -2
- package/src/types.ts +6 -0
package/src/types.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type { ThinkingLevel } from "@earendil-works/pi-ai";
|
|
6
6
|
import type { AgentSession } from "@earendil-works/pi-coding-agent";
|
|
7
|
+
import type { BudgetLease } from "./process-budget.js";
|
|
7
8
|
import type { LifetimeUsage } from "./usage.js";
|
|
8
9
|
|
|
9
10
|
export type { ThinkingLevel };
|
|
@@ -204,6 +205,11 @@ export interface AgentRecord {
|
|
|
204
205
|
* thing that moves it, together with the counters.
|
|
205
206
|
*/
|
|
206
207
|
chargedPool?: Pool;
|
|
208
|
+
/**
|
|
209
|
+
* This run's process-wide budget lease (`process-budget.ts`), held from
|
|
210
|
+
* admission until the run settles. Spawns and resumes alike; cleared on release.
|
|
211
|
+
*/
|
|
212
|
+
budgetLease?: BudgetLease;
|
|
207
213
|
/**
|
|
208
214
|
* Removes the listener that stops this run when its caller's signal aborts.
|
|
209
215
|
* At most one is armed at a time — queueing arms one, starting replaces it.
|