@ashx-j/lunr 0.2.18 → 0.2.20
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/CHANGELOG.md +31 -1
- package/README.md +2 -2
- package/dist/builtin-extensions/ashxj-tui.d.ts +2 -2
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +11 -8
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +0 -2
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts +6 -4
- package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/broker/spawn.js +93 -49
- package/dist/builtin-extensions/pi-intercom/broker/spawn.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.js +351 -351
- package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +80 -43
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts +18 -8
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +36 -11
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +4 -3
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +21 -12
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts +7 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js +225 -15
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts +29 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js +179 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts +89 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js +541 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +9 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js +34 -9
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js +1 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js +35 -8
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js +3 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js +54 -38
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts +3 -6
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js +64 -5
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +21 -8
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +62 -16
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js +75 -18
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts +13 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js +67 -11
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js +5 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +13 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts +3 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js +68 -11
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/formatters.d.ts +12 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/formatters.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/formatters.js +21 -2
- package/dist/builtin-extensions/pi-subagents/src/shared/formatters.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +16 -4
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +24 -6
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +44 -4
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +227 -133
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.d.ts +2 -13
- package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.js +5 -91
- package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.js.map +1 -1
- package/dist/core/permissions.d.ts +1 -0
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +8 -4
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +0 -5
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/runtime-bridges.d.ts.map +1 -1
- package/dist/core/runtime-bridges.js +0 -2
- package/dist/core/runtime-bridges.js.map +1 -1
- package/dist/core/subagent-cancellation.d.ts +21 -0
- package/dist/core/subagent-cancellation.d.ts.map +1 -0
- package/dist/core/subagent-cancellation.js +53 -0
- package/dist/core/subagent-cancellation.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +12 -18
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +12 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +29 -22
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/node-runtime/{agent-session-services-35WNVGMR.js → agent-session-services-75JKASCW.js} +3 -3
- package/dist/node-runtime/{builtin-extensions-QATGXENO.js → builtin-extensions-X4JMM4ZS.js} +3 -3
- package/dist/node-runtime/{chunk-XATUM2HK.js → chunk-25I2BHAA.js} +1 -1
- package/dist/node-runtime/{chunk-MCUNIRD5.js → chunk-46ECNOLF.js} +477 -246
- package/dist/node-runtime/{chunk-J26TSGDL.js → chunk-6N22HULO.js} +8 -5
- package/dist/node-runtime/{chunk-NI6OTSBH.js → chunk-AL2FMKKM.js} +7 -7
- package/dist/node-runtime/chunk-AOFXZQKA.js +24 -0
- package/dist/node-runtime/chunk-BBUVIEZB.js +51 -0
- package/dist/node-runtime/{chunk-EBF6COVM.js → chunk-ELWEXVO5.js} +7 -7
- package/dist/node-runtime/{chunk-R5EDISSV.js → chunk-JHYKXIMM.js} +5 -2
- package/dist/node-runtime/{chunk-ATGA2WLC.js → chunk-JYNNB7DU.js} +397 -34
- package/dist/node-runtime/{chunk-ZBV7FAHG.js → chunk-K3646JTM.js} +17 -118
- package/dist/node-runtime/{chunk-PNJSG3IZ.js → chunk-LTYWTR3V.js} +1 -369
- package/dist/node-runtime/{chunk-G4P75AIS.js → chunk-QKFMBRAL.js} +47 -54
- package/dist/node-runtime/cli-runtime.js +1 -1
- package/dist/node-runtime/{command-AAV3YRR5.js → command-RBTRL55A.js} +1 -1
- package/dist/node-runtime/{gateway-OAC4OBBL.js → gateway-L4ANRTVE.js} +2 -2
- package/dist/node-runtime/index.js +10 -9
- package/dist/node-runtime/{interactive-mode-2SZUO53H.js → interactive-mode-HPUNH7SV.js} +5 -4
- package/dist/node-runtime/{interactive-view-S6J3QHEF.js → interactive-view-ILS6TAN5.js} +1 -1
- package/dist/node-runtime/{lunr-cron-AUUYP4N4.js → lunr-cron-NNYTWTGF.js} +2 -2
- package/dist/node-runtime/main.js +8 -8
- package/dist/node-runtime/{pi-intercom-EEMBGQID.js → pi-intercom-DDQMRNPJ.js} +96 -76
- package/dist/node-runtime/{pi-subagents-7YJ3I4VE.js → pi-subagents-T5WMMLBB.js} +1040 -318
- package/dist/node-runtime/rpc-entry.js +8 -8
- package/dist/node-runtime/{runtime-bridges-3RKBDLNA.js → runtime-bridges-NJQERQ72.js} +2 -4
- package/dist/node-runtime/{subagent-executor-5Q5A4HJ2.js → subagent-executor-SRFC26SJ.js} +168 -249
- package/docs/features.md +17 -3
- package/docs/keybindings.md +3 -1
- package/docs/settings.md +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
- package/dist/builtin-extensions/lunr-settings-tools.d.ts +0 -4
- package/dist/builtin-extensions/lunr-settings-tools.d.ts.map +0 -1
- package/dist/builtin-extensions/lunr-settings-tools.js +0 -120
- package/dist/builtin-extensions/lunr-settings-tools.js.map +0 -1
- package/dist/core/settings-tools-bridge.d.ts +0 -35
- package/dist/core/settings-tools-bridge.d.ts.map +0 -1
- package/dist/core/settings-tools-bridge.js +0 -56
- package/dist/core/settings-tools-bridge.js.map +0 -1
- package/dist/modes/interactive/injected-context.d.ts +0 -2
- package/dist/modes/interactive/injected-context.d.ts.map +0 -1
- package/dist/modes/interactive/injected-context.js +0 -7
- package/dist/modes/interactive/injected-context.js.map +0 -1
- package/dist/node-runtime/chunk-3NMWLTPV.js +0 -64
|
@@ -6,6 +6,10 @@ import {
|
|
|
6
6
|
checkForUpdate,
|
|
7
7
|
markUpdateNotified
|
|
8
8
|
} from "./chunk-KWA4OC2J.js";
|
|
9
|
+
import {
|
|
10
|
+
SubagentEscapeSequence,
|
|
11
|
+
getSubagentCancellation
|
|
12
|
+
} from "./chunk-BBUVIEZB.js";
|
|
9
13
|
import {
|
|
10
14
|
copyToClipboard,
|
|
11
15
|
readClipboardText
|
|
@@ -31,13 +35,25 @@ import {
|
|
|
31
35
|
import {
|
|
32
36
|
MissingSessionCwdError,
|
|
33
37
|
SessionImportFileNotFoundError,
|
|
38
|
+
beginTurn,
|
|
39
|
+
captureTreeChanges,
|
|
40
|
+
clearRollback,
|
|
41
|
+
disableRollbackForSession,
|
|
42
|
+
enableRollbackForSession,
|
|
34
43
|
formatCatalogRefreshSummary,
|
|
35
44
|
formatMissingSessionCwdPrompt,
|
|
36
45
|
hasGrokCliXaiAuth,
|
|
46
|
+
initRollback,
|
|
47
|
+
isRollbackEnabled,
|
|
48
|
+
isRollbackSessionForceEnabled,
|
|
49
|
+
migrateRollbackSession,
|
|
37
50
|
parseSkillBlock,
|
|
51
|
+
peekRollbackTurnsConsumed,
|
|
38
52
|
refreshModelCandidatesForInit,
|
|
53
|
+
rollbackLastTurn,
|
|
54
|
+
setRollbackWarningHandler,
|
|
39
55
|
stripJsonComments
|
|
40
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-JYNNB7DU.js";
|
|
41
57
|
import {
|
|
42
58
|
computeFileLists,
|
|
43
59
|
createFileOps,
|
|
@@ -96,21 +112,9 @@ import {
|
|
|
96
112
|
getModelTiersBridge
|
|
97
113
|
} from "./chunk-W3CVH5RX.js";
|
|
98
114
|
import {
|
|
99
|
-
beginTurn,
|
|
100
|
-
captureTreeChanges,
|
|
101
|
-
clearRollback,
|
|
102
|
-
disableRollbackForSession,
|
|
103
|
-
enableRollbackForSession,
|
|
104
115
|
getAllPlanUsageResults,
|
|
105
|
-
getUsageServiceBridge
|
|
106
|
-
|
|
107
|
-
isRollbackEnabled,
|
|
108
|
-
isRollbackSessionForceEnabled,
|
|
109
|
-
migrateRollbackSession,
|
|
110
|
-
peekRollbackTurnsConsumed,
|
|
111
|
-
rollbackLastTurn,
|
|
112
|
-
setRollbackWarningHandler
|
|
113
|
-
} from "./chunk-PNJSG3IZ.js";
|
|
116
|
+
getUsageServiceBridge
|
|
117
|
+
} from "./chunk-LTYWTR3V.js";
|
|
114
118
|
import {
|
|
115
119
|
convertToPng,
|
|
116
120
|
processImage
|
|
@@ -124,7 +128,7 @@ import {
|
|
|
124
128
|
resetPermissions,
|
|
125
129
|
restorePermissionModeAfterPlan,
|
|
126
130
|
setPermissionMode
|
|
127
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-6N22HULO.js";
|
|
128
132
|
import {
|
|
129
133
|
getGlobalInstructionsPath,
|
|
130
134
|
getModelInstructionsPath
|
|
@@ -1230,8 +1234,8 @@ var OSC133_ZONE_START = "\x1B]133;A\x07", OSC133_ZONE_END = "\x1B]133;B\x07", OS
|
|
|
1230
1234
|
updateContent(message, options) {
|
|
1231
1235
|
this.lastMessage = message, this.thinkingSource = options?.thinkingSource, this.contentContainer.clear();
|
|
1232
1236
|
let sourceMessage = this.thinkingSource ?? message, sourceThinkingRuns = collectThinkingRuns(sourceMessage.content);
|
|
1233
|
-
|
|
1234
|
-
let isFirstTextBlock = !0, thinkingRunIndex = -1
|
|
1237
|
+
message.content.some((c) => c.type === "text" && c.text.trim() || !this.hideThinkingBlock && c.type === "thinking" && c.thinking.trim()) && this.contentContainer.addChild(new Spacer(1));
|
|
1238
|
+
let isFirstTextBlock = !0, thinkingRunIndex = -1;
|
|
1235
1239
|
for (let i = 0; i < message.content.length; i++) {
|
|
1236
1240
|
let content = message.content[i];
|
|
1237
1241
|
if (content.type === "text" && content.text.trim()) {
|
|
@@ -1249,18 +1253,12 @@ var OSC133_ZONE_START = "\x1B]133;A\x07", OSC133_ZONE_END = "\x1B]133;B\x07", OS
|
|
|
1249
1253
|
let thinking = thinkingContent.thinking.trim();
|
|
1250
1254
|
thinking && displayBlocks.push(thinking);
|
|
1251
1255
|
}
|
|
1252
|
-
i
|
|
1253
|
-
let thinkingBlocks = sourceThinkingRuns[thinkingRunIndex] ?? displayBlocks;
|
|
1254
|
-
if (thinkingBlocks.length === 0 || this.hideThinkingBlock)
|
|
1256
|
+
if (i--, displayBlocks.length === 0 || this.hideThinkingBlock)
|
|
1255
1257
|
continue;
|
|
1256
|
-
|
|
1258
|
+
let sourceBlocks = sourceThinkingRuns[thinkingRunIndex] ?? [], fullyRevealed = displayBlocks.length === sourceBlocks.length && displayBlocks.every((block, index) => block === sourceBlocks[index]);
|
|
1259
|
+
this.renderThinkingRun(thinkingRunIndex, displayBlocks, message, i, fullyRevealed);
|
|
1257
1260
|
}
|
|
1258
1261
|
}
|
|
1259
|
-
if (!this.hideThinkingBlock && !renderedThinking && sourceThinkingRuns.length > 0) {
|
|
1260
|
-
thinkingRunIndex = 0;
|
|
1261
|
-
let thinkingBlocks = sourceThinkingRuns[0] ?? [];
|
|
1262
|
-
thinkingBlocks.length > 0 && this.renderThinkingRun(thinkingRunIndex, thinkingBlocks, message, -1);
|
|
1263
|
-
}
|
|
1264
1262
|
let hasToolCalls = message.content.some((c) => c.type === "toolCall");
|
|
1265
1263
|
if (this.hasToolCalls = hasToolCalls, message.stopReason === "length")
|
|
1266
1264
|
this.contentContainer.addChild(new Spacer(1)), this.contentContainer.addChild(new Text(theme.fg("error", "Error: Model stopped because it reached the maximum output token limit. The response may be incomplete."), this.outputPad, 0));
|
|
@@ -1274,8 +1272,8 @@ var OSC133_ZONE_START = "\x1B]133;A\x07", OSC133_ZONE_END = "\x1B]133;B\x07", OS
|
|
|
1274
1272
|
}
|
|
1275
1273
|
}
|
|
1276
1274
|
}
|
|
1277
|
-
renderThinkingRun(thinkingRunIndex, thinkingBlocks, displayMessage, displayIndex) {
|
|
1278
|
-
let hasVisibleContentAfter = displayIndex >= 0 ? displayMessage.content.slice(displayIndex + 1).some((c) => c.type === "text" && c.text.trim() || c.type === "thinking" && c.thinking.trim()) : displayMessage.content.some((c) => c.type === "text" && c.text.trim()), runComplete = isThinkingRunComplete(!1, this.thinkingTimings?.[thinkingRunIndex], this.thinkingTimings !== void 0), wrap = (inner) => {
|
|
1275
|
+
renderThinkingRun(thinkingRunIndex, thinkingBlocks, displayMessage, displayIndex, fullyRevealed) {
|
|
1276
|
+
let hasVisibleContentAfter = displayIndex >= 0 ? displayMessage.content.slice(displayIndex + 1).some((c) => c.type === "text" && c.text.trim() || c.type === "thinking" && c.thinking.trim()) : displayMessage.content.some((c) => c.type === "text" && c.text.trim()), runComplete = fullyRevealed && isThinkingRunComplete(!1, this.thinkingTimings?.[thinkingRunIndex], this.thinkingTimings !== void 0), wrap = (inner) => {
|
|
1279
1277
|
this.contentContainer.addChild(new ThinkingRunBlock(this, thinkingRunIndex, inner));
|
|
1280
1278
|
};
|
|
1281
1279
|
if (this.thinkingCollapse && !this.isRunExpanded(thinkingRunIndex) && runComplete) {
|
|
@@ -1328,7 +1326,7 @@ function collectThinkingRuns(content) {
|
|
|
1328
1326
|
let thinking = thinkingContent.thinking.trim();
|
|
1329
1327
|
thinking && blocks.push(thinking);
|
|
1330
1328
|
}
|
|
1331
|
-
|
|
1329
|
+
runs.push(blocks);
|
|
1332
1330
|
}
|
|
1333
1331
|
return runs;
|
|
1334
1332
|
}
|
|
@@ -3976,7 +3974,13 @@ var ToolExecutionComponent = class extends Container14 {
|
|
|
3976
3974
|
return !!this.result?.isError && this.groupFollowed && !this.expanded && !this.isPartial && this.getRenderShell() === "default" && this.toolName !== "subagent" && this.toolName !== "subagent_wait";
|
|
3977
3975
|
}
|
|
3978
3976
|
shouldSkipCompactResult() {
|
|
3979
|
-
|
|
3977
|
+
if (this.result === void 0 || this.isPartial || this.expanded)
|
|
3978
|
+
return !1;
|
|
3979
|
+
if (this.toolName === "subagent") {
|
|
3980
|
+
let details = this.result.details;
|
|
3981
|
+
return !(this.result.isError || Array.isArray(details?.results) && details.results.length > 0 || details?.mode === "management");
|
|
3982
|
+
}
|
|
3983
|
+
return this.result.isError ? this.shouldHideGroupedErrorBody() : this.getRenderShell() === "default";
|
|
3980
3984
|
}
|
|
3981
3985
|
formatHoistedGroupErrors() {
|
|
3982
3986
|
if (this.groupFollowed || this.expanded)
|
|
@@ -4976,12 +4980,6 @@ var UserMessageList = class {
|
|
|
4976
4980
|
}
|
|
4977
4981
|
};
|
|
4978
4982
|
|
|
4979
|
-
// packages/coding-agent/dist/modes/interactive/injected-context.js
|
|
4980
|
-
function buildInjectedContextLines(paths) {
|
|
4981
|
-
let labels = paths.map((path3) => path3.trim()).filter((path3) => path3.length > 0);
|
|
4982
|
-
return labels.length === 0 ? [] : ["injected context", ...labels.map((path3) => ` ${path3}`)];
|
|
4983
|
-
}
|
|
4984
|
-
|
|
4985
4983
|
// packages/coding-agent/dist/modes/interactive/skill-tag-autocomplete.js
|
|
4986
4984
|
import { fuzzyFilter as fuzzyFilter4 } from "@ashx-j/lunr-tui";
|
|
4987
4985
|
function extractSkillTagPrefix(textBeforeCursor, character) {
|
|
@@ -5335,6 +5333,7 @@ var InteractiveMode = class _InteractiveMode {
|
|
|
5335
5333
|
hiddenThinkingLabel = this.defaultHiddenThinkingLabel;
|
|
5336
5334
|
lastSigintTime = 0;
|
|
5337
5335
|
lastEscapeTime = 0;
|
|
5336
|
+
subagentEscape = new SubagentEscapeSequence();
|
|
5338
5337
|
anthropicSubscriptionWarningShown = !1;
|
|
5339
5338
|
// Status line tracking (for mutating immediately-sequential status updates)
|
|
5340
5339
|
lastStatusSpacer = void 0;
|
|
@@ -6470,6 +6469,15 @@ ${message}`, ["Yes", "No"], opts) === "Yes";
|
|
|
6470
6469
|
// =========================================================================
|
|
6471
6470
|
setupKeyHandlers() {
|
|
6472
6471
|
this.defaultEditor.onEscape = () => {
|
|
6472
|
+
let sessionId = this.session.sessionId, cancellation = getSubagentCancellation(sessionId), escapeAction = this.subagentEscape.press(sessionId, cancellation?.hasActiveRuns() ?? !1);
|
|
6473
|
+
if (escapeAction) {
|
|
6474
|
+
this.lastEscapeTime = 0, this.session.isStreaming ? this.restoreQueuedMessagesToEditor({ abort: !0 }) : this.session.isBashRunning && this.session.abortBash(), escapeAction === "children" && cancellation && cancellation.stop().then(({ requested, failed }) => {
|
|
6475
|
+
this.session.sessionId === sessionId && (failed ? this.showError(`Could not request stop for ${failed} async runs. Inspect subagent status.`) : requested && this.showStatus(`Stopping ${requested} async ${requested === 1 ? "run" : "runs"}`));
|
|
6476
|
+
}).catch((error) => {
|
|
6477
|
+
this.session.sessionId === sessionId && this.showError(error instanceof Error ? error.message : String(error));
|
|
6478
|
+
});
|
|
6479
|
+
return;
|
|
6480
|
+
}
|
|
6473
6481
|
if (this.session.isStreaming)
|
|
6474
6482
|
this.restoreQueuedMessagesToEditor({ abort: !0 });
|
|
6475
6483
|
else if (this.session.isBashRunning)
|
|
@@ -7141,7 +7149,7 @@ ${message}`, ["Yes", "No"], opts) === "Yes";
|
|
|
7141
7149
|
this.renderSessionEntries(entries, {
|
|
7142
7150
|
updateFooter: !0,
|
|
7143
7151
|
populateHistory: !0
|
|
7144
|
-
}), this.
|
|
7152
|
+
}), this.renderProjectTrustWarningIfNeeded();
|
|
7145
7153
|
let compactionCount = this.sessionManager.getEntries().filter((e) => e.type === "compaction").length;
|
|
7146
7154
|
if (compactionCount > 0) {
|
|
7147
7155
|
let times = compactionCount === 1 ? "1 time" : `${compactionCount} times`;
|
|
@@ -7160,22 +7168,7 @@ ${message}`, ["Yes", "No"], opts) === "Yes";
|
|
|
7160
7168
|
});
|
|
7161
7169
|
}
|
|
7162
7170
|
rebuildChatFromMessages() {
|
|
7163
|
-
this.chatContainer.clear(), this.renderSessionEntries(this.sessionManager.buildContextEntries())
|
|
7164
|
-
}
|
|
7165
|
-
sessionHasConversation() {
|
|
7166
|
-
return this.sessionManager.getEntries().some((entry) => entry.type === "message" && (entry.message.role === "user" || entry.message.role === "assistant"));
|
|
7167
|
-
}
|
|
7168
|
-
renderInjectedContextIfNeeded() {
|
|
7169
|
-
if (this.sessionHasConversation())
|
|
7170
|
-
return;
|
|
7171
|
-
let paths = this.session.resourceLoader.getAgentsFiles().agentsFiles.map((file) => this.formatContextPath(file.path)), lines = buildInjectedContextLines(paths);
|
|
7172
|
-
if (lines.length === 0)
|
|
7173
|
-
return;
|
|
7174
|
-
this.chatContainer.children.length > 0 && this.chatContainer.addChild(new Spacer19(1));
|
|
7175
|
-
let [title, ...files] = lines;
|
|
7176
|
-
this.chatContainer.addChild(new Text21(theme.fg("customMessageLabel", title ?? "injected context") + (files.length > 0 ? `
|
|
7177
|
-
${theme.fg("dim", files.join(`
|
|
7178
|
-
`))}` : ""), 1, 0));
|
|
7171
|
+
this.chatContainer.clear(), this.renderSessionEntries(this.sessionManager.buildContextEntries());
|
|
7179
7172
|
}
|
|
7180
7173
|
// =========================================================================
|
|
7181
7174
|
// Key handlers
|
|
@@ -57,7 +57,7 @@ var args = process.argv.slice(2), startupBenchmark = process.env.PI_STARTUP_BENC
|
|
|
57
57
|
markStartupMilestone("mode_routed");
|
|
58
58
|
var startupView;
|
|
59
59
|
if (preloadMode === "interactive") {
|
|
60
|
-
let { InteractiveView } = await import("./interactive-view-
|
|
60
|
+
let { InteractiveView } = await import("./interactive-view-ILS6TAN5.js");
|
|
61
61
|
startupView = new InteractiveView(), startupView.start(), await startupView.waitForFirstFrame(), startupView.isExitRequested && process.exit(0);
|
|
62
62
|
}
|
|
63
63
|
var startRuntime = async () => {
|
|
@@ -5,7 +5,7 @@ import "./chunk-BRJX2PRC.js";
|
|
|
5
5
|
async function handleGatewayCommand(args) {
|
|
6
6
|
if (args[0] !== "gateway")
|
|
7
7
|
return !1;
|
|
8
|
-
let { runGateway } = await import("./gateway-
|
|
8
|
+
let { runGateway } = await import("./gateway-L4ANRTVE.js"), code = await runGateway(args.slice(1));
|
|
9
9
|
return process.exitCode = code, !0;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
listSessions,
|
|
6
6
|
splitMessage,
|
|
7
7
|
startGatewayCron
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ELWEXVO5.js";
|
|
9
9
|
import {
|
|
10
10
|
gatewayConfigPath,
|
|
11
11
|
isFeatureEnabled,
|
|
@@ -30,7 +30,7 @@ import "./chunk-AD6VXAO7.js";
|
|
|
30
30
|
import {
|
|
31
31
|
NO_HANDLER_REASON,
|
|
32
32
|
registerApprovalHandler
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-6N22HULO.js";
|
|
34
34
|
import "./chunk-M3LZLQW2.js";
|
|
35
35
|
import "./chunk-RQ2Q5IYR.js";
|
|
36
36
|
import "./chunk-QZMODZQ2.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
TreeSelectorComponent,
|
|
20
20
|
UserMessageComponent,
|
|
21
21
|
UserMessageSelectorComponent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QKFMBRAL.js";
|
|
23
23
|
import "./chunk-G6LRAP36.js";
|
|
24
24
|
import {
|
|
25
25
|
attachJsonlLineReader,
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
runPrintMode
|
|
31
31
|
} from "./chunk-OCVIXVTZ.js";
|
|
32
32
|
import "./chunk-KWA4OC2J.js";
|
|
33
|
+
import "./chunk-BBUVIEZB.js";
|
|
33
34
|
import {
|
|
34
35
|
copyToClipboard
|
|
35
36
|
} from "./chunk-Q5ZU2VRT.js";
|
|
@@ -38,14 +39,14 @@ import "./chunk-6BEIBLQ3.js";
|
|
|
38
39
|
import "./chunk-7N3YHTYF.js";
|
|
39
40
|
import {
|
|
40
41
|
main
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-AL2FMKKM.js";
|
|
43
|
+
import "./chunk-K3646JTM.js";
|
|
43
44
|
import "./chunk-4DJ6HEGH.js";
|
|
44
45
|
import {
|
|
45
46
|
ProjectTrustStore,
|
|
46
47
|
hasTrustRequiringProjectResources
|
|
47
48
|
} from "./chunk-AROOY4BB.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-25I2BHAA.js";
|
|
49
50
|
import {
|
|
50
51
|
AgentSession,
|
|
51
52
|
AgentSessionRuntime,
|
|
@@ -60,7 +61,7 @@ import {
|
|
|
60
61
|
readStoredCredential,
|
|
61
62
|
wrapRegisteredTool,
|
|
62
63
|
wrapRegisteredTools
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-JYNNB7DU.js";
|
|
64
65
|
import {
|
|
65
66
|
DEFAULT_COMPACTION_SETTINGS,
|
|
66
67
|
calculateContextTokens,
|
|
@@ -150,19 +151,19 @@ import {
|
|
|
150
151
|
import {
|
|
151
152
|
convertToLlm
|
|
152
153
|
} from "./chunk-FVDOXRUD.js";
|
|
153
|
-
import "./chunk-
|
|
154
|
+
import "./chunk-AOFXZQKA.js";
|
|
154
155
|
import "./chunk-W3CVH5RX.js";
|
|
155
|
-
import "./chunk-
|
|
156
|
+
import "./chunk-LTYWTR3V.js";
|
|
156
157
|
import "./chunk-PL6JKXWI.js";
|
|
157
158
|
import {
|
|
158
159
|
convertToPng,
|
|
159
160
|
formatDimensionNote,
|
|
160
161
|
resizeImage
|
|
161
162
|
} from "./chunk-AD6VXAO7.js";
|
|
162
|
-
import "./chunk-
|
|
163
|
+
import "./chunk-6N22HULO.js";
|
|
163
164
|
import "./chunk-M3LZLQW2.js";
|
|
164
165
|
import "./chunk-RQ2Q5IYR.js";
|
|
165
|
-
import "./chunk-
|
|
166
|
+
import "./chunk-JHYKXIMM.js";
|
|
166
167
|
import {
|
|
167
168
|
CustomEditor
|
|
168
169
|
} from "./chunk-H2EOZYMP.js";
|
|
@@ -3,15 +3,16 @@ import {
|
|
|
3
3
|
InteractiveMode,
|
|
4
4
|
formatResumeCommand,
|
|
5
5
|
startInteractiveToolInstalls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QKFMBRAL.js";
|
|
7
7
|
import "./chunk-G6LRAP36.js";
|
|
8
8
|
import "./chunk-KWA4OC2J.js";
|
|
9
|
+
import "./chunk-BBUVIEZB.js";
|
|
9
10
|
import "./chunk-Q5ZU2VRT.js";
|
|
10
11
|
import "./chunk-NUIFPZWX.js";
|
|
11
12
|
import "./chunk-6BEIBLQ3.js";
|
|
12
13
|
import "./chunk-7N3YHTYF.js";
|
|
13
14
|
import "./chunk-AROOY4BB.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JYNNB7DU.js";
|
|
15
16
|
import "./chunk-STERBGUB.js";
|
|
16
17
|
import "./chunk-4CSFRBCN.js";
|
|
17
18
|
import "./chunk-OBMWP3I5.js";
|
|
@@ -26,9 +27,9 @@ import "./chunk-CBGB57XT.js";
|
|
|
26
27
|
import "./chunk-GKLEQ3I4.js";
|
|
27
28
|
import "./chunk-FVDOXRUD.js";
|
|
28
29
|
import "./chunk-W3CVH5RX.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-LTYWTR3V.js";
|
|
30
31
|
import "./chunk-AD6VXAO7.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-6N22HULO.js";
|
|
32
33
|
import "./chunk-M3LZLQW2.js";
|
|
33
34
|
import "./chunk-RQ2Q5IYR.js";
|
|
34
35
|
import "./chunk-H2EOZYMP.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
setCronDeliverValidator,
|
|
14
14
|
startScheduler,
|
|
15
15
|
updateJob
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ELWEXVO5.js";
|
|
17
17
|
import {
|
|
18
18
|
loadGatewayConfig
|
|
19
19
|
} from "./chunk-4I23VTC4.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
typebox_exports
|
|
27
27
|
} from "./chunk-PL6JKXWI.js";
|
|
28
28
|
import "./chunk-AD6VXAO7.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-6N22HULO.js";
|
|
30
30
|
import "./chunk-M3LZLQW2.js";
|
|
31
31
|
import "./chunk-RQ2Q5IYR.js";
|
|
32
32
|
import "./chunk-FQMM2EZ2.js";
|
|
@@ -2,12 +2,12 @@ import { createRequire as __lunrRequire } from "node:module"; const require = __
|
|
|
2
2
|
import {
|
|
3
3
|
main,
|
|
4
4
|
readPipedStdin
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-AL2FMKKM.js";
|
|
6
|
+
import "./chunk-K3646JTM.js";
|
|
7
7
|
import "./chunk-4DJ6HEGH.js";
|
|
8
8
|
import "./chunk-AROOY4BB.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-25I2BHAA.js";
|
|
10
|
+
import "./chunk-JYNNB7DU.js";
|
|
11
11
|
import "./chunk-STERBGUB.js";
|
|
12
12
|
import "./chunk-4CSFRBCN.js";
|
|
13
13
|
import "./chunk-OBMWP3I5.js";
|
|
@@ -21,15 +21,15 @@ import "./chunk-CSFI6YXL.js";
|
|
|
21
21
|
import "./chunk-CBGB57XT.js";
|
|
22
22
|
import "./chunk-GKLEQ3I4.js";
|
|
23
23
|
import "./chunk-FVDOXRUD.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-AOFXZQKA.js";
|
|
25
25
|
import "./chunk-W3CVH5RX.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-LTYWTR3V.js";
|
|
27
27
|
import "./chunk-PL6JKXWI.js";
|
|
28
28
|
import "./chunk-AD6VXAO7.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-6N22HULO.js";
|
|
30
30
|
import "./chunk-M3LZLQW2.js";
|
|
31
31
|
import "./chunk-RQ2Q5IYR.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-JHYKXIMM.js";
|
|
33
33
|
import "./chunk-H2EOZYMP.js";
|
|
34
34
|
import "./chunk-PVCDKGR6.js";
|
|
35
35
|
import "./chunk-OR4L3IB2.js";
|