@ashx-j/lunr-dev 0.2.40-dev.55.1 → 0.2.40-dev.58.1
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/dist/builtin-extensions/pi-subagents/src/runs/background/attempt-usage.d.ts +5 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/attempt-usage.js +31 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/child-stream.d.ts +65 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/child-stream.js +456 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/parallel-group-status.d.ts +42 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/parallel-group-status.js +79 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/run-log.d.ts +18 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/run-log.js +43 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/runner-event-log.d.ts +3 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/runner-event-log.js +70 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/runner-single-step.d.ts +92 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/runner-single-step.js +491 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/runner-status.d.ts +64 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/runner-status.js +26 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts +1 -115
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +17 -1160
- package/dist/core/credential-files.d.ts +3 -2
- package/dist/core/credential-files.js +10 -4
- package/dist/core/permissions.d.ts +6 -0
- package/dist/core/permissions.js +6 -0
- package/dist/core/tool-call-hooks.js +3 -2
- package/dist/node-runtime/{acp-mode-CFYSYACH.js → acp-mode-5KZPFZBO.js} +2 -2
- package/dist/node-runtime/{agent-session-services-3ZHQJIKF.js → agent-session-services-KH5CIGC3.js} +5 -5
- package/dist/node-runtime/{builtin-extensions-YJ7F6GND.js → builtin-extensions-RZS4SMIS.js} +3 -3
- package/dist/node-runtime/{chunk-5HVA5ECB.js → chunk-AKQRASEH.js} +9 -9
- package/dist/node-runtime/{chunk-4ZEDT3YW.js → chunk-BJXBM6KD.js} +3 -3
- package/dist/node-runtime/{chunk-BNNBTBXY.js → chunk-EJMB4PAV.js} +3 -3
- package/dist/node-runtime/{chunk-HVXDYQNN.js → chunk-JI7AUY2T.js} +1 -1
- package/dist/node-runtime/{chunk-ITVBE3HR.js → chunk-JJTHGEUS.js} +5 -4
- package/dist/node-runtime/{chunk-3UQ7ZNLI.js → chunk-K24P7GMM.js} +7 -7
- package/dist/node-runtime/{chunk-KTCZH72R.js → chunk-LGRRFSE7.js} +3 -2
- package/dist/node-runtime/{chunk-7LCR56AK.js → chunk-NWYFKXP5.js} +1 -1
- package/dist/node-runtime/{chunk-SV42POA3.js → chunk-PGWSMQ4K.js} +1 -1
- package/dist/node-runtime/{chunk-YDMZHLBV.js → chunk-QX5I7QEW.js} +1 -1
- package/dist/node-runtime/{chunk-BNZXW77G.js → chunk-RXDLSXEC.js} +1 -1
- package/dist/node-runtime/{chunk-N574FRFF.js → chunk-TSZESZ6H.js} +2 -2
- package/dist/node-runtime/{chunk-CDILDA4F.js → chunk-U7MTVVT3.js} +2 -2
- package/dist/node-runtime/{chunk-G3PARFR4.js → chunk-UTZCCNFC.js} +5 -5
- package/dist/node-runtime/{chunk-U2LTTIWZ.js → chunk-WYJUGRVE.js} +1 -1
- package/dist/node-runtime/{chunk-7LNPTBQJ.js → chunk-XPKOWSYN.js} +6 -2
- package/dist/node-runtime/{chunk-2ZI6Q6JG.js → chunk-YFXGOLZ6.js} +1 -1
- package/dist/node-runtime/{command-H52R5R2G.js → command-6S6C62CX.js} +1 -1
- package/dist/node-runtime/{commands-7EETGZ7V.js → commands-GSZWAQJW.js} +5 -5
- package/dist/node-runtime/{commands-CV2JUYHM.js → commands-MM2TPV5I.js} +4 -4
- package/dist/node-runtime/{direct-tool-executor-DNZ2MS6Z.js → direct-tool-executor-WJLVHH7U.js} +6 -6
- package/dist/node-runtime/{gateway-OHPDCOOB.js → gateway-CWIWPUVC.js} +6 -6
- package/dist/node-runtime/index.js +10 -10
- package/dist/node-runtime/{init-G23PFPKF.js → init-P3RQ6EFK.js} +5 -5
- package/dist/node-runtime/{interactive-mode-7GX3UJFX.js → interactive-mode-2L5JMVKQ.js} +6 -6
- package/dist/node-runtime/{lunr-cron-SV2EXYKV.js → lunr-cron-LT3O64NO.js} +4 -4
- package/dist/node-runtime/main.js +7 -7
- package/dist/node-runtime/{mobile-commands-JQJU35OT.js → mobile-commands-PFXEWP2R.js} +3 -3
- package/dist/node-runtime/{pi-mcp-adapter-NKAL5CFR.js → pi-mcp-adapter-2OP5BBC6.js} +8 -8
- package/dist/node-runtime/{pi-subagents-WS6OU5MG.js → pi-subagents-G2T5XRAX.js} +6 -6
- package/dist/node-runtime/{print-mode-Y363FXY4.js → print-mode-S6ZUVPMU.js} +6 -6
- package/dist/node-runtime/{proxy-modes-EEYRUGQL.js → proxy-modes-RD2PQ6UH.js} +6 -6
- package/dist/node-runtime/rpc-entry.js +7 -7
- package/dist/node-runtime/{rpc-mode-ENVT7AXW.js → rpc-mode-C33WERBG.js} +3 -3
- package/dist/node-runtime/{src-Y3S2FIS5.js → src-J6FSKIFT.js} +1 -1
- package/dist/node-runtime/{subagent-executor-LPVOWPMG.js → subagent-executor-RTGKJ35C.js} +5 -5
- package/install-lock/package-lock.json +24 -24
- package/install-lock/package.json +2 -2
- package/npm-shrinkwrap.json +12 -12
- package/package.json +4 -4
|
@@ -1,116 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type ArtifactConfig, type ArtifactPaths, type ChainOutputMap, type CostSummary, type ModelAttempt, type NestedRouteInfo, type ResolvedTurnBudget, type ToolBudgetState, type TurnBudgetState, type Usage } from "../../shared/types.ts";
|
|
3
|
-
import { type BuiltRunnerSubagentStep as SubagentStep } from "../shared/parallel-utils.ts";
|
|
4
|
-
import { type ProtocolOutputLimit } from "../shared/child-protocol.ts";
|
|
5
|
-
import { type ChildWatchdogStateSnapshot } from "../../watchdog/child-status.ts";
|
|
6
|
-
interface ChildUsage {
|
|
7
|
-
measurement?: "reported" | "partial" | "estimated" | "unknown";
|
|
8
|
-
costSource?: "reported" | "estimated" | "unknown";
|
|
9
|
-
input?: number;
|
|
10
|
-
inputTokens?: number;
|
|
11
|
-
output?: number;
|
|
12
|
-
outputTokens?: number;
|
|
13
|
-
cacheRead?: number;
|
|
14
|
-
cacheWrite?: number;
|
|
15
|
-
cost?: {
|
|
16
|
-
total?: number;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
type ChildMessage = Message & {
|
|
20
|
-
model?: string;
|
|
21
|
-
errorMessage?: string;
|
|
22
|
-
usage?: ChildUsage;
|
|
23
|
-
};
|
|
24
|
-
interface ChildEvent {
|
|
25
|
-
type?: string;
|
|
26
|
-
message?: ChildMessage;
|
|
27
|
-
toolName?: string;
|
|
28
|
-
args?: Record<string, unknown>;
|
|
29
|
-
willRetry?: unknown;
|
|
30
|
-
}
|
|
31
|
-
/** Context for running a single step */
|
|
32
|
-
interface SingleStepContext {
|
|
33
|
-
supervisorSessionId?: string;
|
|
34
|
-
previousOutput: string;
|
|
35
|
-
handoffToNext?: boolean;
|
|
36
|
-
outputs?: ChainOutputMap;
|
|
37
|
-
placeholder: string;
|
|
38
|
-
cwd: string;
|
|
39
|
-
sessionCwd?: string;
|
|
40
|
-
sessionEnabled: boolean;
|
|
41
|
-
sessionDir?: string;
|
|
42
|
-
artifactsDir?: string;
|
|
43
|
-
artifactConfig?: Partial<ArtifactConfig>;
|
|
44
|
-
id: string;
|
|
45
|
-
flatIndex: number;
|
|
46
|
-
flatStepCount: number;
|
|
47
|
-
outputFile: string;
|
|
48
|
-
steerInboxDir?: string;
|
|
49
|
-
steerCapabilityPath?: string;
|
|
50
|
-
steerAckDir?: string;
|
|
51
|
-
transcriptPath?: string;
|
|
52
|
-
piPackageRoot?: string;
|
|
53
|
-
piArgv1?: string;
|
|
54
|
-
registerInterrupt?: (interrupt: (() => void) | undefined) => void;
|
|
55
|
-
registerTimeout?: (interrupt: (() => void) | undefined) => void;
|
|
56
|
-
registerStop?: (stop: (() => void) | undefined) => void;
|
|
57
|
-
registerTurnBudgetAbort?: (abort: ((message: string, state?: TurnBudgetState) => void) | undefined) => void;
|
|
58
|
-
timeoutSignal?: AbortSignal;
|
|
59
|
-
stopSignal?: AbortSignal;
|
|
60
|
-
timeoutMessage?: string;
|
|
61
|
-
stopMessage?: string;
|
|
62
|
-
turnBudget?: ResolvedTurnBudget;
|
|
63
|
-
childIntercomTarget?: string;
|
|
64
|
-
orchestratorIntercomTarget?: string;
|
|
65
|
-
nestedRoute?: NestedRouteInfo;
|
|
66
|
-
onAttemptStart?: (attempt: {
|
|
67
|
-
model?: string;
|
|
68
|
-
thinking?: string;
|
|
69
|
-
}) => void;
|
|
70
|
-
onChildEvent?: (event: ChildEvent) => void;
|
|
71
|
-
onWriterProcess?: (writer: {
|
|
72
|
-
state: "none" | "spawning";
|
|
73
|
-
} | {
|
|
74
|
-
state: "running";
|
|
75
|
-
pid: number;
|
|
76
|
-
}) => void;
|
|
77
|
-
skipAcceptance?: () => boolean;
|
|
78
|
-
}
|
|
79
|
-
/** Run a single pi agent step, returning output and metadata */
|
|
80
|
-
export declare function runSingleStep(step: SubagentStep, ctx: SingleStepContext): Promise<{
|
|
81
|
-
childId?: string;
|
|
82
|
-
description?: string;
|
|
83
|
-
permissions?: "full" | "read-only";
|
|
84
|
-
agent: string;
|
|
85
|
-
output: string;
|
|
86
|
-
exitCode: number | null;
|
|
87
|
-
error?: string;
|
|
88
|
-
protocolError?: ProtocolOutputLimit;
|
|
89
|
-
model?: string;
|
|
90
|
-
attemptedModels?: string[];
|
|
91
|
-
modelAttempts?: ModelAttempt[];
|
|
92
|
-
artifactPaths?: ArtifactPaths;
|
|
93
|
-
transcriptPath?: string;
|
|
94
|
-
transcriptError?: string;
|
|
95
|
-
interrupted?: boolean;
|
|
96
|
-
timedOut?: boolean;
|
|
97
|
-
stopped?: boolean;
|
|
98
|
-
turnBudget?: TurnBudgetState;
|
|
99
|
-
turnBudgetExceeded?: boolean;
|
|
100
|
-
wrapUpRequested?: boolean;
|
|
101
|
-
toolBudget?: ToolBudgetState;
|
|
102
|
-
toolBudgetBlocked?: boolean;
|
|
103
|
-
sessionFile?: string;
|
|
104
|
-
receiptUsage?: Usage;
|
|
105
|
-
usageRequests?: import("../../../../../core/usage-accounting.ts").AccountedRequest[];
|
|
106
|
-
intercomTarget?: string;
|
|
107
|
-
totalCost?: CostSummary;
|
|
108
|
-
completionGuardTriggered?: boolean;
|
|
109
|
-
structuredOutput?: unknown;
|
|
110
|
-
structuredOutputPath?: string;
|
|
111
|
-
structuredOutputSchemaPath?: string;
|
|
112
|
-
acceptance?: import("../../shared/types.ts").AcceptanceLedger;
|
|
113
|
-
watchdog?: ChildWatchdogStateSnapshot;
|
|
114
|
-
}>;
|
|
115
|
-
export {};
|
|
1
|
+
export { runSingleStep } from "./runner-single-step.ts";
|
|
116
2
|
//# sourceMappingURL=subagent-runner.d.ts.map
|