@ashx-j/lunr-dev 0.2.40-dev.55.1 → 0.2.40-dev.59.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/lunr-browser.d.ts +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +1 -1
- 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/builtin-extensions/pi-subagents/src/tui/communication.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +1 -1
- package/dist/cli/config-selector.js +1 -1
- package/dist/cli/startup-ui.js +1 -1
- package/dist/core/agent-session.js +1 -1
- package/dist/core/credential-files.d.ts +3 -2
- package/dist/core/credential-files.js +10 -4
- package/dist/core/export-html/index.js +1 -1
- package/dist/core/export-html/tool-renderer.d.ts +1 -1
- package/dist/core/extensions/runner.js +1 -1
- package/dist/core/extensions/types.d.ts +1 -1
- package/dist/core/permissions.d.ts +6 -0
- package/dist/core/permissions.js +6 -0
- package/dist/core/resource-loader.d.ts +1 -1
- package/dist/core/resource-loader.js +1 -1
- package/dist/{modes/interactive → core}/theme/theme.d.ts +1 -1
- package/dist/{modes/interactive → core}/theme/theme.js +4 -4
- package/dist/core/tool-call-hooks.js +3 -2
- package/dist/gateway/agent-bridge.js +1 -1
- package/dist/gateway/setup.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/main.js +1 -1
- package/dist/modes/interactive/chat-history.js +1 -1
- package/dist/modes/interactive/components/assistant-message.js +1 -1
- package/dist/modes/interactive/components/bash-execution.js +1 -1
- package/dist/modes/interactive/components/boot-screen.js +1 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +1 -1
- package/dist/modes/interactive/components/config-selector.js +1 -1
- package/dist/modes/interactive/components/context-view.js +1 -1
- package/dist/modes/interactive/components/copyable-text.js +1 -1
- package/dist/modes/interactive/components/custom-entry.js +1 -1
- package/dist/modes/interactive/components/custom-message.js +1 -1
- package/dist/modes/interactive/components/diff.js +1 -1
- package/dist/modes/interactive/components/dynamic-border.js +1 -1
- package/dist/modes/interactive/components/extension-editor.js +1 -1
- package/dist/modes/interactive/components/extension-input.js +1 -1
- package/dist/modes/interactive/components/extension-selector.js +1 -1
- package/dist/modes/interactive/components/footer.js +1 -1
- package/dist/modes/interactive/components/injected-prompt-message.js +1 -1
- package/dist/modes/interactive/components/keybinding-hints.js +1 -1
- package/dist/modes/interactive/components/login-dialog.js +1 -1
- package/dist/modes/interactive/components/model-selector.js +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +1 -1
- package/dist/modes/interactive/components/onboarding.js +1 -1
- package/dist/modes/interactive/components/plan-message.js +1 -1
- package/dist/modes/interactive/components/processes-selector.js +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +1 -1
- package/dist/modes/interactive/components/session-selector.js +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +1 -1
- package/dist/modes/interactive/components/settings-selector.js +1 -1
- package/dist/modes/interactive/components/show-images-selector.js +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +1 -1
- package/dist/modes/interactive/components/status-indicator.js +1 -1
- package/dist/modes/interactive/components/theme-selector.js +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +1 -1
- package/dist/modes/interactive/components/thinking-tail.js +1 -1
- package/dist/modes/interactive/components/tool-execution.js +1 -1
- package/dist/modes/interactive/components/tree-selector.js +1 -1
- package/dist/modes/interactive/components/trust-selector.js +1 -1
- package/dist/modes/interactive/components/usage-view.js +1 -1
- package/dist/modes/interactive/components/user-message-selector.js +1 -1
- package/dist/modes/interactive/components/user-message.js +1 -1
- package/dist/modes/interactive/extension-dialogs.d.ts +1 -1
- package/dist/modes/interactive/extension-dialogs.js +1 -1
- package/dist/modes/interactive/extension-widgets.d.ts +1 -1
- package/dist/modes/interactive/extension-widgets.js +1 -1
- package/dist/modes/interactive/help-commands.js +1 -1
- package/dist/modes/interactive/interactive-mode.js +1 -1
- package/dist/modes/interactive/loaded-resources.js +1 -1
- package/dist/modes/interactive/login-flow.js +1 -1
- package/dist/modes/interactive/session-exit.js +1 -1
- package/dist/modes/interactive/session-naming.js +1 -1
- package/dist/modes/interactive/settings-screen.js +1 -1
- package/dist/modes/interactive/theme/theme-controller.d.ts +1 -1
- package/dist/modes/interactive/theme/theme-controller.js +1 -1
- package/dist/modes/interactive/tool-renderers/bash.js +1 -1
- package/dist/modes/interactive/tool-renderers/read.js +1 -1
- package/dist/modes/interactive/tool-renderers/render-utils.d.ts +1 -1
- package/dist/modes/interactive/tool-renderers/write.js +1 -1
- package/dist/modes/interactive/usage-commands.js +1 -1
- package/dist/modes/rpc/rpc-mode.js +1 -1
- 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-UOVUJAX2.js} +8 -8
- package/dist/node-runtime/{builtin-extensions-YJ7F6GND.js → builtin-extensions-JNJRND4E.js} +3 -3
- package/dist/node-runtime/{chunk-GPNTGRL2.js → chunk-3RR3PVJB.js} +2 -2
- package/dist/node-runtime/{chunk-HVXDYQNN.js → chunk-6DVUDNS7.js} +2 -2
- package/dist/node-runtime/{chunk-5F7VOA34.js → chunk-AW6PDL4D.js} +1 -1
- package/dist/node-runtime/{chunk-VP2H4TI5.js → chunk-BJIF7GMV.js} +3 -3
- package/dist/node-runtime/{chunk-5HVA5ECB.js → chunk-BQROL43X.js} +17 -17
- package/dist/node-runtime/{chunk-BNNBTBXY.js → chunk-EJMB4PAV.js} +3 -3
- package/dist/node-runtime/{chunk-G3PARFR4.js → chunk-FCINT2KC.js} +7 -7
- package/dist/node-runtime/{chunk-KURXPCGO.js → chunk-FNS42TPZ.js} +3 -3
- package/dist/node-runtime/{chunk-N574FRFF.js → chunk-GAWWLIGY.js} +3 -3
- package/dist/node-runtime/{chunk-27QDDTTV.js → chunk-HYOPEHDE.js} +2 -2
- package/dist/node-runtime/{chunk-5JVP2JX4.js → chunk-JARNU4J4.js} +3 -3
- package/dist/node-runtime/{chunk-ITHKNPG4.js → chunk-JZK2WJ7U.js} +1 -1
- package/dist/node-runtime/{chunk-PLBYKAZC.js → chunk-KETNCBTB.js} +2 -2
- package/dist/node-runtime/{chunk-KTCZH72R.js → chunk-LGRRFSE7.js} +3 -2
- package/dist/node-runtime/{chunk-OXFD2OMR.js → chunk-LY6VVOF4.js} +3 -3
- package/dist/node-runtime/{chunk-DJB7P2V7.js → chunk-MEDBJXCC.js} +1 -1
- package/dist/node-runtime/{chunk-SV42POA3.js → chunk-PGWSMQ4K.js} +1 -1
- package/dist/node-runtime/{chunk-7LCR56AK.js → chunk-QDQAKIVU.js} +1 -1
- package/dist/node-runtime/{chunk-GNT2AURO.js → chunk-QP4I6GEW.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-U2LTTIWZ.js → chunk-RXG6DWO2.js} +1 -1
- package/dist/node-runtime/{chunk-ITVBE3HR.js → chunk-S46QLY2F.js} +10 -9
- package/dist/node-runtime/{chunk-CDILDA4F.js → chunk-U7MTVVT3.js} +2 -2
- package/dist/node-runtime/{chunk-MNYG5WLT.js → chunk-WBLSU6YV.js} +3 -3
- package/dist/node-runtime/{chunk-7LNPTBQJ.js → chunk-XPKOWSYN.js} +6 -2
- package/dist/node-runtime/{chunk-4ZEDT3YW.js → chunk-XXGJ7Z3C.js} +11 -11
- package/dist/node-runtime/{chunk-3UQ7ZNLI.js → chunk-Y7DFMHY5.js} +8 -8
- package/dist/node-runtime/{chunk-2ZI6Q6JG.js → chunk-YFXGOLZ6.js} +1 -1
- package/dist/node-runtime/cli-runtime.js +1 -1
- package/dist/node-runtime/{command-H52R5R2G.js → command-6GJNLXGD.js} +3 -3
- package/dist/node-runtime/{commands-CV2JUYHM.js → commands-2UG5F4VT.js} +6 -6
- package/dist/node-runtime/{commands-7EETGZ7V.js → commands-GSZWAQJW.js} +5 -5
- package/dist/node-runtime/{direct-tool-executor-DNZ2MS6Z.js → direct-tool-executor-WJLVHH7U.js} +6 -6
- package/dist/node-runtime/{export-html-7TEMZLK2.js → export-html-SW3CIZRJ.js} +1 -1
- package/dist/node-runtime/{extension-input-MNEKUZDZ.js → extension-input-DFQ76UJG.js} +4 -4
- package/dist/node-runtime/{extension-selector-6WJHCCQI.js → extension-selector-MWHCRWHQ.js} +4 -4
- package/dist/node-runtime/{gateway-OHPDCOOB.js → gateway-UDWVYEGX.js} +8 -8
- package/dist/node-runtime/{goal-PJ2NLX6M.js → goal-CVGA3XFI.js} +1 -1
- package/dist/node-runtime/index.js +22 -22
- package/dist/node-runtime/{init-G23PFPKF.js → init-P3RQ6EFK.js} +5 -5
- package/dist/node-runtime/{install-cli-4LUSDUPO.js → install-cli-YIIFVCFM.js} +1 -1
- package/dist/node-runtime/{interactive-mode-7GX3UJFX.js → interactive-mode-VCPSTUAW.js} +16 -16
- package/dist/node-runtime/{interactive-view-TUYWWEUV.js → interactive-view-GDP6M6UP.js} +6 -6
- package/dist/node-runtime/{lunr-cron-SV2EXYKV.js → lunr-cron-3VI5CLK3.js} +6 -6
- package/dist/node-runtime/main.js +17 -17
- package/dist/node-runtime/{mobile-commands-JQJU35OT.js → mobile-commands-HQXEYAF6.js} +5 -5
- package/dist/node-runtime/{package-manager-cli-FICMQY2Q.js → package-manager-cli-B6G22R6O.js} +9 -9
- package/dist/node-runtime/{pi-mcp-adapter-NKAL5CFR.js → pi-mcp-adapter-2OP5BBC6.js} +8 -8
- package/dist/node-runtime/{pi-prompt-template-model-63LFES2U.js → pi-prompt-template-model-UL2T2HLL.js} +2 -2
- package/dist/node-runtime/{pi-subagents-WS6OU5MG.js → pi-subagents-YVVMY4B4.js} +8 -8
- package/dist/node-runtime/{print-mode-Y363FXY4.js → print-mode-M52NLHKG.js} +9 -9
- package/dist/node-runtime/{proxy-modes-EEYRUGQL.js → proxy-modes-RD2PQ6UH.js} +6 -6
- package/dist/node-runtime/rpc-entry.js +17 -17
- package/dist/node-runtime/{rpc-mode-ENVT7AXW.js → rpc-mode-WAHP6U73.js} +4 -4
- package/dist/node-runtime/{session-selector-AF6V7DP6.js → session-selector-JABBEHK5.js} +4 -4
- package/dist/node-runtime/{setup-OHLYSWTW.js → setup-7IC2PQIB.js} +6 -6
- 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/dist/node-runtime/{theme-AY3J7JHP.js → theme-MVESIOLX.js} +1 -1
- package/dist/node-runtime/{tool-renderers-4RDKHPPB.js → tool-renderers-KL5EPAMN.js} +3 -3
- package/dist/startup/interactive-view.js +1 -1
- 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
|