@ashx-j/lunr 0.2.25 → 0.2.26
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 +16 -1
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +1 -0
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-computer-use.d.ts +3 -0
- package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -0
- package/dist/builtin-extensions/lunr-computer-use.js +179 -0
- package/dist/builtin-extensions/lunr-computer-use.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +1 -1
- 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 -4
- 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 +8 -5
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +11 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.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 +3 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +15 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.js +5 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/chain-outputs.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +5 -3
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/core/computer-use/adapter.d.ts +28 -0
- package/dist/core/computer-use/adapter.d.ts.map +1 -0
- package/dist/core/computer-use/adapter.js +133 -0
- package/dist/core/computer-use/adapter.js.map +1 -0
- package/dist/core/computer-use/image.d.ts +27 -0
- package/dist/core/computer-use/image.d.ts.map +1 -0
- package/dist/core/computer-use/image.js +72 -0
- package/dist/core/computer-use/image.js.map +1 -0
- package/dist/core/computer-use/lease.d.ts +18 -0
- package/dist/core/computer-use/lease.d.ts.map +1 -0
- package/dist/core/computer-use/lease.js +129 -0
- package/dist/core/computer-use/lease.js.map +1 -0
- package/dist/core/computer-use/macos-runtime.d.ts +14 -0
- package/dist/core/computer-use/macos-runtime.d.ts.map +1 -0
- package/dist/core/computer-use/macos-runtime.js +148 -0
- package/dist/core/computer-use/macos-runtime.js.map +1 -0
- package/dist/core/computer-use/policy.d.ts +19 -0
- package/dist/core/computer-use/policy.d.ts.map +1 -0
- package/dist/core/computer-use/policy.js +67 -0
- package/dist/core/computer-use/policy.js.map +1 -0
- package/dist/core/computer-use/release.generated.d.ts +31 -0
- package/dist/core/computer-use/release.generated.d.ts.map +1 -0
- package/dist/core/computer-use/release.generated.js +36 -0
- package/dist/core/computer-use/release.generated.js.map +1 -0
- package/dist/core/computer-use/runtime.d.ts +13 -0
- package/dist/core/computer-use/runtime.d.ts.map +1 -0
- package/dist/core/computer-use/runtime.js +158 -0
- package/dist/core/computer-use/runtime.js.map +1 -0
- package/dist/core/computer-use/schemas.d.ts +100 -0
- package/dist/core/computer-use/schemas.d.ts.map +1 -0
- package/dist/core/computer-use/schemas.js +79 -0
- package/dist/core/computer-use/schemas.js.map +1 -0
- package/dist/core/computer-use/windows-desktop.d.ts +3 -0
- package/dist/core/computer-use/windows-desktop.d.ts.map +1 -0
- package/dist/core/computer-use/windows-desktop.js +48 -0
- package/dist/core/computer-use/windows-desktop.js.map +1 -0
- package/dist/core/computer-use/workflow.d.ts +38 -0
- package/dist/core/computer-use/workflow.d.ts.map +1 -0
- package/dist/core/computer-use/workflow.js +560 -0
- package/dist/core/computer-use/workflow.js.map +1 -0
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +4 -0
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/permissions.d.ts +1 -1
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +14 -3
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +9 -0
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/settings-manager.d.ts +6 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +19 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/subagent-event-transport.d.ts +3 -0
- package/dist/core/subagent-event-transport.d.ts.map +1 -0
- package/dist/core/subagent-event-transport.js +61 -0
- package/dist/core/subagent-event-transport.js.map +1 -0
- package/dist/gateway/adapters/discord.d.ts.map +1 -1
- package/dist/gateway/adapters/discord.js +2 -2
- package/dist/gateway/adapters/discord.js.map +1 -1
- package/dist/gateway/approval.d.ts.map +1 -1
- package/dist/gateway/approval.js +3 -3
- package/dist/gateway/approval.js.map +1 -1
- package/dist/gateway/authz.d.ts +4 -4
- package/dist/gateway/authz.d.ts.map +1 -1
- package/dist/gateway/authz.js +8 -12
- package/dist/gateway/authz.js.map +1 -1
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +2 -6
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +20 -6
- package/dist/gateway/cron.js.map +1 -1
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +3 -3
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/mobile-commands.d.ts.map +1 -1
- package/dist/gateway/mobile-commands.js +8 -8
- package/dist/gateway/mobile-commands.js.map +1 -1
- package/dist/gateway/presenter.d.ts.map +1 -1
- package/dist/gateway/presenter.js +3 -3
- package/dist/gateway/presenter.js.map +1 -1
- package/dist/gateway/router.d.ts.map +1 -1
- package/dist/gateway/router.js +5 -7
- package/dist/gateway/router.js.map +1 -1
- package/dist/gateway/setup.d.ts.map +1 -1
- package/dist/gateway/setup.js +6 -4
- package/dist/gateway/setup.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +4 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +20 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +8 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +9 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/node-runtime/adapter-VFG7WNPX.js +17 -0
- package/dist/node-runtime/{agent-session-services-YXXFCP5J.js → agent-session-services-5YXS2PLF.js} +10 -8
- package/dist/node-runtime/{builtin-extensions-ZLAX7TUH.js → builtin-extensions-I2HIFEMY.js} +3 -2
- package/dist/node-runtime/{chunk-3XPLBUEM.js → chunk-2CFDTH5B.js} +7 -3
- package/dist/node-runtime/chunk-2IDTZAG5.js +1415 -0
- package/dist/node-runtime/{chunk-QTU6AKNJ.js → chunk-3MISGG4S.js} +11 -15
- package/dist/node-runtime/chunk-4SBQAI4T.js +2185 -0
- package/dist/node-runtime/{chunk-TORR5XBV.js → chunk-5B5QN3ZQ.js} +12 -12
- package/dist/node-runtime/chunk-5B6VKFEV.js +180 -0
- package/dist/node-runtime/{chunk-AD6VXAO7.js → chunk-5Q4A37RB.js} +15 -104
- package/dist/node-runtime/{chunk-4TLO4PO2.js → chunk-7IQGBKBJ.js} +7 -1401
- package/dist/node-runtime/{chunk-OCVIXVTZ.js → chunk-D5UCKPBQ.js} +12 -1
- package/dist/node-runtime/{chunk-7S3T6YEA.js → chunk-DVQSHCVP.js} +1 -1
- package/dist/node-runtime/{chunk-HFVZUPFJ.js → chunk-E75WFZ33.js} +2 -2
- package/dist/node-runtime/chunk-FY4A63RK.js +73 -0
- package/dist/node-runtime/{chunk-6XL67VVY.js → chunk-I74LN5JG.js} +15 -0
- package/dist/node-runtime/chunk-IKU6Y7DL.js +287 -0
- package/dist/node-runtime/{chunk-WF7PGWRZ.js → chunk-L24TPBS4.js} +5 -4
- package/dist/node-runtime/{chunk-VQFSUJJG.js → chunk-LJTIVM7I.js} +7 -7
- package/dist/node-runtime/{chunk-DSIKTUPW.js → chunk-LWJXTA6Z.js} +274 -2433
- package/dist/node-runtime/{chunk-E4D3IGP2.js → chunk-P7XBVXGT.js} +6 -7
- package/dist/node-runtime/{chunk-OVX6X377.js → chunk-PTFBPO3C.js} +1 -1
- package/dist/node-runtime/{chunk-RC7DMV45.js → chunk-RCR3XAQY.js} +34 -6
- package/dist/node-runtime/chunk-RGQAEOM5.js +81 -0
- package/dist/node-runtime/{chunk-YCUZEGJG.js → chunk-SN2KSMPQ.js} +6 -3
- package/dist/node-runtime/{chunk-NRKGMJYU.js → chunk-SPVDBUOS.js} +1 -1
- package/dist/node-runtime/{chunk-IJIFHRTB.js → chunk-T4DA4XE7.js} +19 -19
- package/dist/node-runtime/chunk-U5F4IC7R.js +53 -0
- package/dist/node-runtime/{chunk-KWIYUUZK.js → chunk-UVWCDQYF.js} +27 -18
- package/dist/node-runtime/{chunk-ZXSGTGJ6.js → chunk-WIF24I7G.js} +21 -5
- package/dist/node-runtime/{chunk-2HHLJWGD.js → chunk-X3PGBLQ7.js} +2 -2
- package/dist/node-runtime/chunk-XHIRAZ26.js +108 -0
- package/dist/node-runtime/{chunk-YDO2F2IA.js → chunk-YWOJIGFY.js} +1 -1
- package/dist/node-runtime/{command-6WDOYKS6.js → command-FSBU2EVZ.js} +3 -3
- package/dist/node-runtime/{commands-NZLSOHPE.js → commands-EMBQQVVT.js} +4 -2
- package/dist/node-runtime/{commands-QC6VUZJQ.js → commands-NAAL7KNT.js} +5 -4
- package/dist/node-runtime/{direct-tool-executor-77GW4F5P.js → direct-tool-executor-4D7UXYU4.js} +7 -4
- package/dist/node-runtime/{gateway-INAYBF4Q.js → gateway-DQM333YV.js} +18 -19
- package/dist/node-runtime/index.js +23 -19
- package/dist/node-runtime/{init-HS6NQXSK.js → init-P5AUV77I.js} +4 -2
- package/dist/node-runtime/{install-cli-KL4UDDAD.js → install-cli-NN4YAU44.js} +1 -1
- package/dist/node-runtime/{interactive-mode-Z5M7WYYZ.js → interactive-mode-YOHZVMKX.js} +11 -9
- package/dist/node-runtime/lunr-computer-use-Y23CCDIJ.js +158 -0
- package/dist/node-runtime/{lunr-cron-LWIZJM2N.js → lunr-cron-USHC4LXH.js} +6 -4
- package/dist/node-runtime/main.js +16 -14
- package/dist/node-runtime/{mcp-auth-flow-QIXHW6QN.js → mcp-auth-flow-QVLFVLEO.js} +2 -1
- package/dist/node-runtime/{mobile-commands-J7OJEKFO.js → mobile-commands-O5LCHL32.js} +4 -3
- package/dist/node-runtime/{package-manager-cli-VYZM5WHN.js → package-manager-cli-Q7BL6KZO.js} +7 -6
- package/dist/node-runtime/{pi-mcp-adapter-5UKBZP44.js → pi-mcp-adapter-3PHF4KZ4.js} +5 -5
- package/dist/node-runtime/{pi-subagents-DNY7EAIG.js → pi-subagents-7IBSSGEW.js} +24 -18
- package/dist/node-runtime/{print-mode-XSFM26EL.js → print-mode-XQ76CYMT.js} +2 -1
- package/dist/node-runtime/{proxy-modes-LGEUYD7R.js → proxy-modes-5FAPSZEZ.js} +7 -4
- package/dist/node-runtime/rpc-entry.js +16 -14
- package/dist/node-runtime/runtime-EFPPD2UW.js +21 -0
- package/dist/node-runtime/{runtime-bridges-VRDDR73P.js → runtime-bridges-7WVCLI76.js} +3 -2
- package/dist/node-runtime/{settings-manager-J4SPQPDJ.js → settings-manager-DJDM5AHM.js} +2 -1
- package/dist/node-runtime/{setup-CQ2NLVK5.js → setup-PFBWRNUI.js} +10 -9
- package/dist/node-runtime/{subagent-executor-KZZQGAKV.js → subagent-executor-LPZ4BHWE.js} +29 -11
- package/dist/node-runtime/{update-cli-GTFJC7XK.js → update-cli-HNMOTNGX.js} +2 -1
- package/dist/node-runtime/workflow-OHPBEFO4.js +637 -0
- package/dist/utils/image-resize-core.d.ts +2 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +10 -0
- package/dist/utils/image-resize-core.js.map +1 -1
- package/docs/computer-use.md +362 -0
- package/docs/features.md +8 -6
- 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/install-lock/package-lock.json +3841 -0
- package/install-lock/package.json +18 -0
- package/native/computer-use/LICENSE.md +21 -0
- package/npm-shrinkwrap.json +3822 -0
- package/package.json +15 -9
- package/dist/node-runtime/{chunk-LQP3RB67.js → chunk-RAK2QA2B.js} +3 -3
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
createStartupTui,
|
|
15
15
|
showStartupInput,
|
|
16
16
|
startStartupTui
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X3PGBLQ7.js";
|
|
18
18
|
import "./chunk-YPHAIRZT.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-OBMWP3I5.js";
|
|
19
|
+
import "./chunk-RAK2QA2B.js";
|
|
21
20
|
import "./chunk-DVGWF6A2.js";
|
|
21
|
+
import "./chunk-OBMWP3I5.js";
|
|
22
22
|
import {
|
|
23
23
|
SettingsManager
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-I74LN5JG.js";
|
|
25
25
|
import "./chunk-UOEDI7RP.js";
|
|
26
26
|
import {
|
|
27
27
|
loadInstallFeatures,
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2HMIRK7W.js";
|
|
30
30
|
import "./chunk-URD2SLIT.js";
|
|
31
31
|
import "./chunk-CGBXPL3E.js";
|
|
32
|
+
import "./chunk-FY4A63RK.js";
|
|
32
33
|
import "./chunk-UJOCPOMX.js";
|
|
33
34
|
import "./chunk-IMLCWLPI.js";
|
|
34
35
|
import "./chunk-5EFIU3OM.js";
|
|
@@ -131,8 +132,8 @@ Guide: https://docs.discord.com/developers/quick-start/getting-started`);
|
|
|
131
132
|
])) && (token = (await readSecret(`${platform} bot token`))?.trim()), !token)
|
|
132
133
|
throw new Error("No token entered. Existing configuration was not changed.");
|
|
133
134
|
console.log(`Connected bot: ${await validateBotToken(platform, token)}`), cfg[platform].token = token, cfg[platform].enabled = !0, cfg.owners ??= { telegram: [], discord: [] };
|
|
134
|
-
let ownerChoice = await choose(`${platform}
|
|
135
|
-
...cfg.owners[platform].length ? [{ label: "Keep the
|
|
135
|
+
let ownerChoice = await choose(`${platform} gateway access`, [
|
|
136
|
+
...cfg.owners[platform].length || cfg[platform].allowedUsers.length ? [{ label: "Keep the approved users", value: "keep" }] : [],
|
|
136
137
|
{ label: "Enter my user ID", value: "enter" },
|
|
137
138
|
{ label: "Approve a pairing code later on this computer", value: "later" }
|
|
138
139
|
]), owner = ownerChoice === "enter" ? await ask(`Your ${platform} user ID`) : "";
|
|
@@ -189,8 +190,8 @@ Startup: ${startup}`, [
|
|
|
189
190
|
{ label: "Not now", value: !1 }
|
|
190
191
|
]) && console.log(await startGatewayService()), console.log(`
|
|
191
192
|
If you entered your user ID, send /start to your bot, then send a task. Otherwise send /whoami, then on this computer run:
|
|
192
|
-
lunr gateway pair approve <telegram|discord> <code>
|
|
193
|
-
|
|
193
|
+
lunr gateway pair approve <telegram|discord> <code>
|
|
194
|
+
Approval grants full gateway access, including local projects and saved sessions. Only approve people you trust with this computer.`);
|
|
194
195
|
} catch (error) {
|
|
195
196
|
if (error !== cancelled)
|
|
196
197
|
throw error;
|
|
@@ -204,7 +205,7 @@ function approveGatewayOwner(platform, code) {
|
|
|
204
205
|
if (!user)
|
|
205
206
|
throw new Error("Pairing code is invalid or expired.");
|
|
206
207
|
let cfg = loadGatewayConfig();
|
|
207
|
-
return cfg.owners ??= { telegram: [], discord: [] }, cfg.owners[platform] = [.../* @__PURE__ */ new Set([...cfg.owners[platform], user])], cfg[platform].allowedUsers = [.../* @__PURE__ */ new Set([...cfg[platform].allowedUsers, user])], saveGatewayConfig(cfg), `Approved ${platform}
|
|
208
|
+
return cfg.owners ??= { telegram: [], discord: [] }, cfg.owners[platform] = [.../* @__PURE__ */ new Set([...cfg.owners[platform], user])], cfg[platform].allowedUsers = [.../* @__PURE__ */ new Set([...cfg[platform].allowedUsers, user])], saveGatewayConfig(cfg), `Approved ${platform} user ${user}. Gateway access includes local projects and saved sessions.`;
|
|
208
209
|
}
|
|
209
210
|
export {
|
|
210
211
|
approveGatewayOwner,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
writeNestedControlRequest,
|
|
180
180
|
writeNestedEvent,
|
|
181
181
|
writePrivateAtomicJson
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-2CFDTH5B.js";
|
|
183
183
|
import {
|
|
184
184
|
DEFAULT_CONTROL_CONFIG,
|
|
185
185
|
buildControlEvent,
|
|
@@ -190,23 +190,28 @@ import {
|
|
|
190
190
|
resolveControlConfig,
|
|
191
191
|
shouldNotifyControlEvent
|
|
192
192
|
} from "./chunk-OAR4TYZE.js";
|
|
193
|
+
import {
|
|
194
|
+
createChildEventDecoder
|
|
195
|
+
} from "./chunk-U5F4IC7R.js";
|
|
193
196
|
import {
|
|
194
197
|
READ_ONLY_WRITE_SPAWN_ERROR,
|
|
195
198
|
resolveChildPermissions,
|
|
196
199
|
snapshotParentPermissionMode
|
|
197
|
-
} from "./chunk-
|
|
198
|
-
import "./chunk-
|
|
200
|
+
} from "./chunk-PTFBPO3C.js";
|
|
201
|
+
import "./chunk-YWOJIGFY.js";
|
|
199
202
|
import "./chunk-53YJI7JU.js";
|
|
200
203
|
import "./chunk-5ZQXRPMC.js";
|
|
201
|
-
import "./chunk-
|
|
204
|
+
import "./chunk-XHIRAZ26.js";
|
|
205
|
+
import "./chunk-5Q4A37RB.js";
|
|
202
206
|
import {
|
|
203
207
|
subagentCommunicationEnabled
|
|
204
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-I74LN5JG.js";
|
|
205
209
|
import "./chunk-UOEDI7RP.js";
|
|
206
210
|
import "./chunk-2HMIRK7W.js";
|
|
207
211
|
import "./chunk-URD2SLIT.js";
|
|
208
|
-
import "./chunk-
|
|
212
|
+
import "./chunk-WIF24I7G.js";
|
|
209
213
|
import "./chunk-M3LZLQW2.js";
|
|
214
|
+
import "./chunk-FY4A63RK.js";
|
|
210
215
|
import "./chunk-KKUTQQV7.js";
|
|
211
216
|
import "./chunk-CSFI6YXL.js";
|
|
212
217
|
import {
|
|
@@ -1945,11 +1950,19 @@ async function runSingleAttempt(runtimeCwd, spec, task, model, options, shared)
|
|
|
1945
1950
|
progress.durationMs = Date.now() - startTime;
|
|
1946
1951
|
let output = (result2.timedOut || result2.turnBudgetExceeded) && result2.finalOutput ? result2.finalOutput : getFinalOutput(result2.messages);
|
|
1947
1952
|
emitUpdateSnapshot(output || "(running...)");
|
|
1948
|
-
}, processLine = (line) => {
|
|
1953
|
+
}, decodeChildEvent = createChildEventDecoder(), processLine = (line) => {
|
|
1949
1954
|
if (!line.trim())
|
|
1950
1955
|
return;
|
|
1951
|
-
|
|
1952
|
-
|
|
1956
|
+
let evt, assembled;
|
|
1957
|
+
try {
|
|
1958
|
+
assembled = decodeChildEvent(line);
|
|
1959
|
+
} catch {
|
|
1960
|
+
jsonlWriter.writeLine(line), shared.transcriptWriter?.writeStdoutLine(line);
|
|
1961
|
+
return;
|
|
1962
|
+
}
|
|
1963
|
+
if (assembled === void 0)
|
|
1964
|
+
return;
|
|
1965
|
+
line = assembled, jsonlWriter.writeLine(line);
|
|
1953
1966
|
try {
|
|
1954
1967
|
evt = JSON.parse(line);
|
|
1955
1968
|
} catch {
|
|
@@ -3199,6 +3212,11 @@ function validateChainOutputBindingsWithContext(steps, dynamicFanoutConfig = {},
|
|
|
3199
3212
|
available.add(name);
|
|
3200
3213
|
}
|
|
3201
3214
|
}
|
|
3215
|
+
function withChainHandoff(task, hasNextStep) {
|
|
3216
|
+
return hasNextStep ? `${task}
|
|
3217
|
+
|
|
3218
|
+
Your final output will be handed to the next agent. Briefly summarize results, relevant references, verification, and remaining work.` : task;
|
|
3219
|
+
}
|
|
3202
3220
|
function resolveOutputReferences(template, outputs) {
|
|
3203
3221
|
return template.replace(OUTPUT_REF_PATTERN, (rawReference, name) => {
|
|
3204
3222
|
if (!SAFE_OUTPUT_NAME_PATTERN2.test(name))
|
|
@@ -3308,7 +3326,7 @@ async function runParallelChainTasks(input) {
|
|
|
3308
3326
|
if (toolBudget.error)
|
|
3309
3327
|
throw new Error(toolBudget.error);
|
|
3310
3328
|
let taskCwd = input.worktreeSetup ? input.worktreeSetup.worktrees[taskIndex].agentCwd : resolveChildCwd(input.cwd ?? input.ctx.cwd, task.cwd), outputPath = typeof behavior.output == "string" ? path6.isAbsolute(behavior.output) ? behavior.output : path6.join(input.chainDir, behavior.output) : void 0;
|
|
3311
|
-
taskStr = injectSingleOutputInstruction(taskStr, outputPath, taskChildConfig);
|
|
3329
|
+
taskStr = withChainHandoff(injectSingleOutputInstruction(taskStr, outputPath, taskChildConfig), input.stepIndex < input.totalSteps - 1);
|
|
3312
3330
|
let interruptController = new AbortController();
|
|
3313
3331
|
input.foregroundControl && (input.foregroundControl.currentAgent = task.description || task.agent, input.foregroundControl.currentChildId = task.agent, input.foregroundControl.currentIndex = input.globalTaskIndex + taskIndex, input.foregroundControl.currentActivityState = void 0, input.foregroundControl.updatedAt = Date.now(), input.foregroundControl.interrupt = () => interruptController.signal.aborted ? !1 : (interruptController.abort(), input.foregroundControl.currentActivityState = void 0, input.foregroundControl.updatedAt = Date.now(), !0));
|
|
3314
3332
|
let structuredRuntime = task.outputSchema ? createStructuredOutputRuntime(task.outputSchema, path6.join(input.chainDir, "structured-output")) : void 0, result2 = await runSync(input.ctx.cwd, normalizeChildSpec({
|
|
@@ -3833,7 +3851,7 @@ ${failureSummary}`;
|
|
|
3833
3851
|
availableModels,
|
|
3834
3852
|
preferredProvider: ctx.model?.provider
|
|
3835
3853
|
}), outputPath = typeof behavior.output == "string" ? path6.isAbsolute(behavior.output) ? behavior.output : path6.join(chainDir, behavior.output) : void 0;
|
|
3836
|
-
stepTask = injectSingleOutputInstruction(stepTask, outputPath, agentConfig);
|
|
3854
|
+
stepTask = withChainHandoff(injectSingleOutputInstruction(stepTask, outputPath, agentConfig), stepIndex < totalSteps - 1);
|
|
3837
3855
|
let validationError = validateFileOnlyOutputMode(behavior.outputMode, outputPath, `Chain step ${stepIndex + 1} (${seqStep.agent})`);
|
|
3838
3856
|
if (validationError)
|
|
3839
3857
|
return buildChainExecutionErrorResult(validationError, makeDetailsInput({ currentStepIndex: stepIndex, currentFlatIndex: globalTaskIndex }));
|
|
@@ -6,10 +6,11 @@ import {
|
|
|
6
6
|
import "./chunk-DVGWF6A2.js";
|
|
7
7
|
import {
|
|
8
8
|
SettingsManager
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I74LN5JG.js";
|
|
10
10
|
import "./chunk-UOEDI7RP.js";
|
|
11
11
|
import "./chunk-2HMIRK7W.js";
|
|
12
12
|
import "./chunk-URD2SLIT.js";
|
|
13
|
+
import "./chunk-FY4A63RK.js";
|
|
13
14
|
import "./chunk-UJOCPOMX.js";
|
|
14
15
|
import "./chunk-IMLCWLPI.js";
|
|
15
16
|
import "./chunk-B4HP6ZWM.js";
|