@ashx-j/lunr 0.2.24 → 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 +24 -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 +4 -9
- package/dist/gateway/adapters/discord.js.map +1 -1
- package/dist/gateway/adapters/telegram.d.ts.map +1 -1
- package/dist/gateway/adapters/telegram.js +7 -0
- package/dist/gateway/adapters/telegram.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts +4 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +57 -17
- package/dist/gateway/agent-bridge.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/buttons.d.ts.map +1 -1
- package/dist/gateway/buttons.js +29 -19
- package/dist/gateway/buttons.js.map +1 -1
- package/dist/gateway/commands.d.ts +2 -0
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +35 -18
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/config.d.ts +1 -0
- package/dist/gateway/config.d.ts.map +1 -1
- package/dist/gateway/config.js +2 -0
- package/dist/gateway/config.js.map +1 -1
- package/dist/gateway/cron.d.ts +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +22 -8
- package/dist/gateway/cron.js.map +1 -1
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +26 -26
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/mobile-commands.d.ts.map +1 -1
- package/dist/gateway/mobile-commands.js +11 -11
- package/dist/gateway/mobile-commands.js.map +1 -1
- package/dist/gateway/presenter.d.ts +12 -1
- package/dist/gateway/presenter.d.ts.map +1 -1
- package/dist/gateway/presenter.js +148 -50
- package/dist/gateway/presenter.js.map +1 -1
- package/dist/gateway/router.d.ts +5 -5
- package/dist/gateway/router.d.ts.map +1 -1
- package/dist/gateway/router.js +95 -43
- package/dist/gateway/router.js.map +1 -1
- package/dist/gateway/service.d.ts.map +1 -1
- package/dist/gateway/service.js +13 -4
- package/dist/gateway/service.js.map +1 -1
- package/dist/gateway/setup.d.ts +5 -0
- package/dist/gateway/setup.d.ts.map +1 -1
- package/dist/gateway/setup.js +101 -43
- package/dist/gateway/setup.js.map +1 -1
- package/dist/gateway/stream.d.ts +6 -5
- package/dist/gateway/stream.d.ts.map +1 -1
- package/dist/gateway/stream.js +24 -11
- package/dist/gateway/stream.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-IEF7LQWD.js → agent-session-services-5YXS2PLF.js} +13 -10
- package/dist/node-runtime/{builtin-extensions-EBAWTH4M.js → builtin-extensions-I2HIFEMY.js} +3 -2
- package/dist/node-runtime/{chunk-K5AGHH57.js → chunk-2CFDTH5B.js} +7 -3
- package/dist/node-runtime/{chunk-VWCE2HSZ.js → chunk-2HMIRK7W.js} +4 -4
- package/dist/node-runtime/chunk-2IDTZAG5.js +1415 -0
- package/dist/node-runtime/{chunk-IGV54Q5V.js → chunk-3MISGG4S.js} +137 -76
- package/dist/node-runtime/chunk-4SBQAI4T.js +2185 -0
- package/dist/node-runtime/{chunk-WHLRAGUQ.js → chunk-5B5QN3ZQ.js} +16 -16
- 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-R3K2F5GI.js → chunk-B4HP6ZWM.js} +2 -0
- package/dist/node-runtime/{chunk-OCVIXVTZ.js → chunk-D5UCKPBQ.js} +12 -1
- package/dist/node-runtime/chunk-DVQSHCVP.js +97 -0
- 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-RORY2HMJ.js → chunk-I74LN5JG.js} +16 -1
- package/dist/node-runtime/chunk-IKU6Y7DL.js +287 -0
- package/dist/node-runtime/{chunk-QM43FEAE.js → chunk-L24TPBS4.js} +6 -5
- package/dist/node-runtime/{chunk-DE2JB6J5.js → chunk-LJTIVM7I.js} +7 -7
- package/dist/node-runtime/{chunk-DSIKTUPW.js → chunk-LWJXTA6Z.js} +274 -2433
- package/dist/node-runtime/{chunk-YVI6L6LU.js → chunk-P7XBVXGT.js} +36 -21
- package/dist/node-runtime/{chunk-OVX6X377.js → chunk-PTFBPO3C.js} +1 -1
- package/dist/node-runtime/{chunk-F4FLTQKV.js → chunk-RAK2QA2B.js} +186 -1529
- package/dist/node-runtime/{chunk-L3LX4SNR.js → chunk-RCR3XAQY.js} +36 -8
- package/dist/node-runtime/chunk-RGQAEOM5.js +81 -0
- package/dist/node-runtime/{chunk-UWPJL22I.js → chunk-SLVOAQOY.js} +15 -4
- package/dist/node-runtime/chunk-SN2KSMPQ.js +1364 -0
- package/dist/node-runtime/{chunk-FU6OODRZ.js → chunk-SPVDBUOS.js} +1 -1
- package/dist/node-runtime/{chunk-5Q3EHOHI.js → chunk-T4DA4XE7.js} +19 -17
- package/dist/node-runtime/chunk-U5F4IC7R.js +53 -0
- package/dist/node-runtime/{chunk-UP2XBVH5.js → chunk-UOEDI7RP.js} +1 -1
- package/dist/node-runtime/{chunk-Y73WPE6S.js → chunk-UVWCDQYF.js} +79 -44
- package/dist/node-runtime/{chunk-ZXSGTGJ6.js → chunk-WIF24I7G.js} +21 -5
- package/dist/node-runtime/{chunk-OF7PWMG4.js → chunk-X3PGBLQ7.js} +3 -87
- 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-7BG7VVTS.js → command-FSBU2EVZ.js} +5 -5
- package/dist/node-runtime/{commands-NZLSOHPE.js → commands-EMBQQVVT.js} +4 -2
- package/dist/node-runtime/{commands-QFDKNQTL.js → commands-NAAL7KNT.js} +7 -6
- package/dist/node-runtime/{config-RORQUQFG.js → config-D4QUPAHX.js} +1 -1
- package/dist/node-runtime/{direct-tool-executor-77GW4F5P.js → direct-tool-executor-4D7UXYU4.js} +7 -4
- package/dist/node-runtime/{gateway-TWR3N65G.js → gateway-DQM333YV.js} +140 -85
- package/dist/node-runtime/index.js +28 -21
- package/dist/node-runtime/{init-HS6NQXSK.js → init-P5AUV77I.js} +4 -2
- package/dist/node-runtime/{install-cli-VAP6KBFN.js → install-cli-NN4YAU44.js} +3 -3
- package/dist/node-runtime/{interactive-mode-6J5VZ2TT.js → interactive-mode-YOHZVMKX.js} +14 -11
- package/dist/node-runtime/{lunr-browser-J5ZZYVGM.js → lunr-browser-IR7TL3J7.js} +3 -3
- package/dist/node-runtime/lunr-computer-use-Y23CCDIJ.js +158 -0
- package/dist/node-runtime/{lunr-cron-CXOL37AL.js → lunr-cron-USHC4LXH.js} +9 -7
- package/dist/node-runtime/main.js +19 -15
- package/dist/node-runtime/{mcp-auth-flow-QIXHW6QN.js → mcp-auth-flow-QVLFVLEO.js} +2 -1
- package/dist/node-runtime/{mobile-commands-VTBM5DSZ.js → mobile-commands-O5LCHL32.js} +6 -5
- package/dist/node-runtime/{package-manager-cli-ZLW5DZXF.js → package-manager-cli-Q7BL6KZO.js} +12 -8
- package/dist/node-runtime/{pi-mcp-adapter-5UKBZP44.js → pi-mcp-adapter-3PHF4KZ4.js} +5 -5
- package/dist/node-runtime/{pi-subagents-XPCLLKIM.js → pi-subagents-7IBSSGEW.js} +27 -21
- 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 +19 -15
- package/dist/node-runtime/runtime-EFPPD2UW.js +21 -0
- package/dist/node-runtime/{runtime-bridges-QYXUX2TG.js → runtime-bridges-7WVCLI76.js} +6 -5
- package/dist/node-runtime/{service-ISSP6VHE.js → service-MDQIPQ26.js} +1 -1
- package/dist/node-runtime/{settings-manager-WCQDUVQB.js → settings-manager-DJDM5AHM.js} +5 -4
- package/dist/node-runtime/setup-PFBWRNUI.js +215 -0
- package/dist/node-runtime/{subagent-executor-OTNISDQU.js → subagent-executor-LPZ4BHWE.js} +32 -14
- package/dist/node-runtime/{update-cli-VBR2777K.js → update-cli-HNMOTNGX.js} +5 -4
- 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 +9 -7
- 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/setup-YRBKH2LD.js +0 -155
|
@@ -2,38 +2,42 @@
|
|
|
2
2
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
main
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-T4DA4XE7.js";
|
|
6
|
+
import "./chunk-DVQSHCVP.js";
|
|
7
|
+
import "./chunk-L24TPBS4.js";
|
|
8
|
+
import "./chunk-X3PGBLQ7.js";
|
|
8
9
|
import "./chunk-YPHAIRZT.js";
|
|
9
10
|
import "./chunk-PL6JKXWI.js";
|
|
10
11
|
import "./chunk-5ZH3ZFIZ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-PTFBPO3C.js";
|
|
13
|
+
import "./chunk-LJTIVM7I.js";
|
|
14
|
+
import "./chunk-SN2KSMPQ.js";
|
|
13
15
|
import "./chunk-CCCN2UCX.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-OBMWP3I5.js";
|
|
16
|
+
import "./chunk-RAK2QA2B.js";
|
|
16
17
|
import "./chunk-DVGWF6A2.js";
|
|
18
|
+
import "./chunk-OBMWP3I5.js";
|
|
17
19
|
import "./chunk-QFWG2RVL.js";
|
|
18
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-YWOJIGFY.js";
|
|
19
21
|
import "./chunk-53YJI7JU.js";
|
|
20
22
|
import "./chunk-5ZQXRPMC.js";
|
|
21
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XHIRAZ26.js";
|
|
24
|
+
import "./chunk-5Q4A37RB.js";
|
|
22
25
|
import "./chunk-KJ6DWS3K.js";
|
|
23
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-SPVDBUOS.js";
|
|
24
27
|
import {
|
|
25
28
|
configureHttpDispatcher
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-I74LN5JG.js";
|
|
30
|
+
import "./chunk-UOEDI7RP.js";
|
|
31
|
+
import "./chunk-2HMIRK7W.js";
|
|
29
32
|
import "./chunk-HTFRRDSF.js";
|
|
30
33
|
import "./chunk-URD2SLIT.js";
|
|
31
34
|
import "./chunk-GYIXXQAO.js";
|
|
32
35
|
import "./chunk-GJ2RDBRL.js";
|
|
33
36
|
import "./chunk-CGBXPL3E.js";
|
|
34
37
|
import "./chunk-BBUVIEZB.js";
|
|
35
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-WIF24I7G.js";
|
|
36
39
|
import "./chunk-M3LZLQW2.js";
|
|
40
|
+
import "./chunk-FY4A63RK.js";
|
|
37
41
|
import "./chunk-KKUTQQV7.js";
|
|
38
42
|
import "./chunk-CSFI6YXL.js";
|
|
39
43
|
import "./chunk-I54LGHWM.js";
|
|
@@ -52,7 +56,7 @@ import "./chunk-H2EOZYMP.js";
|
|
|
52
56
|
import "./chunk-5EFIU3OM.js";
|
|
53
57
|
import "./chunk-PVCDKGR6.js";
|
|
54
58
|
import "./chunk-OR4L3IB2.js";
|
|
55
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-B4HP6ZWM.js";
|
|
56
60
|
import "./chunk-E24EO34J.js";
|
|
57
61
|
import "./chunk-CCZJ3PYY.js";
|
|
58
62
|
import "./chunk-QH6YL7VK.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
CUA_VERSION,
|
|
4
|
+
assertOwnedPath,
|
|
5
|
+
installRuntime,
|
|
6
|
+
resolveRuntimeArchive,
|
|
7
|
+
runtimeEnvironment,
|
|
8
|
+
runtimeInventory
|
|
9
|
+
} from "./chunk-5B6VKFEV.js";
|
|
10
|
+
import "./chunk-URD2SLIT.js";
|
|
11
|
+
import "./chunk-FQMM2EZ2.js";
|
|
12
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
13
|
+
import "./chunk-BRJX2PRC.js";
|
|
14
|
+
export {
|
|
15
|
+
CUA_VERSION,
|
|
16
|
+
assertOwnedPath,
|
|
17
|
+
installRuntime,
|
|
18
|
+
resolveRuntimeArchive,
|
|
19
|
+
runtimeEnvironment,
|
|
20
|
+
runtimeInventory
|
|
21
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
bindRuntimeBridges
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-SPVDBUOS.js";
|
|
5
|
+
import "./chunk-I74LN5JG.js";
|
|
6
|
+
import "./chunk-UOEDI7RP.js";
|
|
7
|
+
import "./chunk-2HMIRK7W.js";
|
|
8
8
|
import "./chunk-URD2SLIT.js";
|
|
9
|
+
import "./chunk-FY4A63RK.js";
|
|
9
10
|
import "./chunk-4EULYYR4.js";
|
|
10
11
|
import "./chunk-UJOCPOMX.js";
|
|
11
12
|
import "./chunk-2TKODGBZ.js";
|
|
12
13
|
import "./chunk-2MI5OPMN.js";
|
|
13
14
|
import "./chunk-IMLCWLPI.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-B4HP6ZWM.js";
|
|
15
16
|
import "./chunk-FQMM2EZ2.js";
|
|
16
17
|
import "./chunk-Q4Q6D4IY.js";
|
|
17
18
|
import "./chunk-BRJX2PRC.js";
|
|
@@ -8,13 +8,14 @@ import {
|
|
|
8
8
|
bindSubagentCommunicationSetting,
|
|
9
9
|
parseSkillTagCharacter,
|
|
10
10
|
subagentCommunicationEnabled
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-I74LN5JG.js";
|
|
12
|
+
import "./chunk-UOEDI7RP.js";
|
|
13
|
+
import "./chunk-2HMIRK7W.js";
|
|
14
14
|
import "./chunk-URD2SLIT.js";
|
|
15
|
+
import "./chunk-FY4A63RK.js";
|
|
15
16
|
import "./chunk-UJOCPOMX.js";
|
|
16
17
|
import "./chunk-IMLCWLPI.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-B4HP6ZWM.js";
|
|
18
19
|
import "./chunk-FQMM2EZ2.js";
|
|
19
20
|
import "./chunk-Q4Q6D4IY.js";
|
|
20
21
|
import "./chunk-BRJX2PRC.js";
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
readSecret
|
|
4
|
+
} from "./chunk-H4K3JDRB.js";
|
|
5
|
+
import {
|
|
6
|
+
createPairingStore
|
|
7
|
+
} from "./chunk-RMQZU2YU.js";
|
|
8
|
+
import {
|
|
9
|
+
configureStartup,
|
|
10
|
+
loadServiceSettings,
|
|
11
|
+
startGatewayService
|
|
12
|
+
} from "./chunk-SLVOAQOY.js";
|
|
13
|
+
import {
|
|
14
|
+
createStartupTui,
|
|
15
|
+
showStartupInput,
|
|
16
|
+
startStartupTui
|
|
17
|
+
} from "./chunk-X3PGBLQ7.js";
|
|
18
|
+
import "./chunk-YPHAIRZT.js";
|
|
19
|
+
import "./chunk-RAK2QA2B.js";
|
|
20
|
+
import "./chunk-DVGWF6A2.js";
|
|
21
|
+
import "./chunk-OBMWP3I5.js";
|
|
22
|
+
import {
|
|
23
|
+
SettingsManager
|
|
24
|
+
} from "./chunk-I74LN5JG.js";
|
|
25
|
+
import "./chunk-UOEDI7RP.js";
|
|
26
|
+
import {
|
|
27
|
+
loadInstallFeatures,
|
|
28
|
+
saveInstallFeatures
|
|
29
|
+
} from "./chunk-2HMIRK7W.js";
|
|
30
|
+
import "./chunk-URD2SLIT.js";
|
|
31
|
+
import "./chunk-CGBXPL3E.js";
|
|
32
|
+
import "./chunk-FY4A63RK.js";
|
|
33
|
+
import "./chunk-UJOCPOMX.js";
|
|
34
|
+
import "./chunk-IMLCWLPI.js";
|
|
35
|
+
import "./chunk-5EFIU3OM.js";
|
|
36
|
+
import {
|
|
37
|
+
loadGatewayConfig,
|
|
38
|
+
saveGatewayConfig
|
|
39
|
+
} from "./chunk-B4HP6ZWM.js";
|
|
40
|
+
import "./chunk-QH6YL7VK.js";
|
|
41
|
+
import "./chunk-HMBGROQK.js";
|
|
42
|
+
import "./chunk-I6R76AG7.js";
|
|
43
|
+
import "./chunk-6VYZ5UFP.js";
|
|
44
|
+
import "./chunk-GS42T6MX.js";
|
|
45
|
+
import {
|
|
46
|
+
getSelectListTheme,
|
|
47
|
+
theme
|
|
48
|
+
} from "./chunk-RDDAZOMU.js";
|
|
49
|
+
import "./chunk-FQMM2EZ2.js";
|
|
50
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
51
|
+
import "./chunk-BRJX2PRC.js";
|
|
52
|
+
|
|
53
|
+
// packages/coding-agent/dist/gateway/setup.js
|
|
54
|
+
import { existsSync, realpathSync, statSync } from "node:fs";
|
|
55
|
+
import { resolve } from "node:path";
|
|
56
|
+
import { Container, SelectList, Spacer, Text } from "@ashx-j/lunr-tui";
|
|
57
|
+
async function validateBotToken(platform, token) {
|
|
58
|
+
let url = platform === "telegram" ? `https://api.telegram.org/bot${token}/getMe` : "https://discord.com/api/v10/users/@me", response;
|
|
59
|
+
try {
|
|
60
|
+
response = await fetch(url, {
|
|
61
|
+
headers: platform === "discord" ? { Authorization: `Bot ${token}` } : {},
|
|
62
|
+
signal: AbortSignal.timeout(15e3)
|
|
63
|
+
});
|
|
64
|
+
} catch {
|
|
65
|
+
throw new Error(`${platform}: could not reach the bot API. Check your connection and try again.`);
|
|
66
|
+
}
|
|
67
|
+
if (!response.ok)
|
|
68
|
+
throw new Error(`${platform}: token check failed with HTTP ${response.status}. Check the token and bot permissions.`);
|
|
69
|
+
let value = await response.json();
|
|
70
|
+
if (!value || typeof value != "object")
|
|
71
|
+
throw new Error(`${platform}: unexpected bot API response.`);
|
|
72
|
+
let user = platform === "telegram" && "result" in value ? value.result : value;
|
|
73
|
+
if (!user || typeof user != "object" || !("id" in user))
|
|
74
|
+
throw new Error(`${platform}: bot identity was missing.`);
|
|
75
|
+
return "username" in user && typeof user.username == "string" ? user.username : String(user.id);
|
|
76
|
+
}
|
|
77
|
+
async function selectSetupOption(settings, title, options, initial) {
|
|
78
|
+
let ui = await createStartupTui(settings);
|
|
79
|
+
try {
|
|
80
|
+
return await new Promise((resolve2) => {
|
|
81
|
+
let list = new SelectList(options.map((option, index) => ({ label: option.label, value: String(index) })), 8, getSelectListTheme());
|
|
82
|
+
list.setSelectedIndex(Math.max(0, options.findIndex((option) => option.value === initial))), list.onSelect = (item) => resolve2(options[Number(item.value)].value), list.onCancel = () => resolve2(void 0);
|
|
83
|
+
let panel = new Container();
|
|
84
|
+
panel.addChild(new Text(theme.fg("accent", title), 1, 0)), panel.addChild(new Spacer(1)), panel.addChild(list), panel.addChild(new Text("Up/Down to navigate, Enter to select, Esc to cancel", 1, 1)), ui.addChild(panel), ui.setFocus(list), startStartupTui(ui, settings);
|
|
85
|
+
});
|
|
86
|
+
} finally {
|
|
87
|
+
ui.clear(), ui.requestRender(), await new Promise((resolve2) => setTimeout(resolve2, 25)), ui.stop();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
async function setupGateway() {
|
|
91
|
+
if (!process.stdin.isTTY || !process.stdout.isTTY)
|
|
92
|
+
throw new Error("Run lunr gateway setup in a terminal. Bot tokens are entered privately, not as command arguments.");
|
|
93
|
+
let uiSettings = SettingsManager.inMemory({ theme: "moon" }), cancelled = new Error("Setup cancelled."), saved = !1, choose = async (title, options, initial) => {
|
|
94
|
+
let value = await selectSetupOption(uiSettings, title, options, initial);
|
|
95
|
+
if (value === void 0)
|
|
96
|
+
throw cancelled;
|
|
97
|
+
return value;
|
|
98
|
+
}, ask = async (title) => {
|
|
99
|
+
let value = await showStartupInput(uiSettings, title);
|
|
100
|
+
if (value === void 0)
|
|
101
|
+
throw cancelled;
|
|
102
|
+
return value.trim();
|
|
103
|
+
}, cfg = loadGatewayConfig();
|
|
104
|
+
try {
|
|
105
|
+
console.log(`Set up lunR on your phone
|
|
106
|
+
Your computer must stay awake and connected to the internet.
|
|
107
|
+
`);
|
|
108
|
+
let choice = await choose("Connect a chat platform", [
|
|
109
|
+
{ label: "Telegram", value: "telegram" },
|
|
110
|
+
{ label: "Discord", value: "discord" },
|
|
111
|
+
{ label: "Both", value: "both" }
|
|
112
|
+
], cfg.discord.enabled ? cfg.telegram.enabled ? "both" : "discord" : "telegram");
|
|
113
|
+
for (let platform of ["telegram", "discord"]) {
|
|
114
|
+
if (choice !== platform && choice !== "both")
|
|
115
|
+
continue;
|
|
116
|
+
console.log(platform === "telegram" ? `
|
|
117
|
+
Telegram
|
|
118
|
+
1. Open https://t.me/BotFather and send /newbot.
|
|
119
|
+
2. Follow its prompts and copy the bot token.
|
|
120
|
+
3. Open your new bot and send /whoami. If your ID was not configured, it sends a pairing code for local approval.
|
|
121
|
+
Guide: https://core.telegram.org/bots/tutorial` : `
|
|
122
|
+
Discord
|
|
123
|
+
1. Open https://discord.com/developers/applications and create an application.
|
|
124
|
+
2. Open Bot, create or reset its token, and enable Message Content Intent for ordinary chat.
|
|
125
|
+
3. Under Installation, add bot and applications.commands scopes. Grant View Channels, Send Messages, Read Message History, Attach Files, and thread permissions if needed.
|
|
126
|
+
4. Use the install link to add your bot. In Discord, enable Developer Mode and copy your user ID.
|
|
127
|
+
Guide: https://docs.discord.com/developers/quick-start/getting-started`);
|
|
128
|
+
let token = cfg[platform].token;
|
|
129
|
+
if ((!token || await choose(`${platform} bot token`, [
|
|
130
|
+
{ label: "Keep the saved token", value: !1 },
|
|
131
|
+
{ label: "Enter a different token", value: !0 }
|
|
132
|
+
])) && (token = (await readSecret(`${platform} bot token`))?.trim()), !token)
|
|
133
|
+
throw new Error("No token entered. Existing configuration was not changed.");
|
|
134
|
+
console.log(`Connected bot: ${await validateBotToken(platform, token)}`), cfg[platform].token = token, cfg[platform].enabled = !0, cfg.owners ??= { telegram: [], discord: [] };
|
|
135
|
+
let ownerChoice = await choose(`${platform} gateway access`, [
|
|
136
|
+
...cfg.owners[platform].length || cfg[platform].allowedUsers.length ? [{ label: "Keep the approved users", value: "keep" }] : [],
|
|
137
|
+
{ label: "Enter my user ID", value: "enter" },
|
|
138
|
+
{ label: "Approve a pairing code later on this computer", value: "later" }
|
|
139
|
+
]), owner = ownerChoice === "enter" ? await ask(`Your ${platform} user ID`) : "";
|
|
140
|
+
if (ownerChoice === "enter" && !/^\d+$/.test(owner))
|
|
141
|
+
throw new Error("User IDs contain digits only.");
|
|
142
|
+
owner && (cfg.owners[platform] = [.../* @__PURE__ */ new Set([...cfg.owners[platform], owner])], cfg[platform].allowedUsers = [.../* @__PURE__ */ new Set([...cfg[platform].allowedUsers, owner])]);
|
|
143
|
+
}
|
|
144
|
+
let folders = [.../* @__PURE__ */ new Set([cfg.defaultProject, ...cfg.projectRoots ?? [], process.cwd()])].filter((folder2) => !!folder2), root = await choose("Default project", [
|
|
145
|
+
...folders.map((value) => ({ label: value, value })),
|
|
146
|
+
{ label: "Enter another folder path", value: null }
|
|
147
|
+
]) ?? await ask("Project folder path");
|
|
148
|
+
if (!root)
|
|
149
|
+
throw new Error("Enter a project folder. Nothing saved.");
|
|
150
|
+
let path = resolve(root);
|
|
151
|
+
if (!existsSync(path) || !statSync(path).isDirectory())
|
|
152
|
+
throw new Error("That project folder does not exist.");
|
|
153
|
+
cfg.defaultProject = realpathSync(path), cfg.projectRoots = [.../* @__PURE__ */ new Set([...cfg.projectRoots ?? [], cfg.defaultProject])];
|
|
154
|
+
let startup = await choose("Automatic startup", [
|
|
155
|
+
{ label: "Off. Start manually", value: "off" },
|
|
156
|
+
{ label: "When I sign in", value: "login" },
|
|
157
|
+
{ label: "When the computer boots", value: "boot" }
|
|
158
|
+
], loadServiceSettings().startup);
|
|
159
|
+
startup === "boot" && console.log("Boot startup may require administrator permission or OS-managed account credentials. lunR does not save your account password.");
|
|
160
|
+
let { ModelRuntime } = await import("./model-runtime-OO5HFLWE.js"), models = await (await ModelRuntime.create({ allowModelNetwork: !1 })).getAvailable();
|
|
161
|
+
if (!models.length)
|
|
162
|
+
throw new Error("No saved model credentials found. Open lunr locally and use /login, then rerun gateway setup. Nothing saved.");
|
|
163
|
+
let settings = SettingsManager.create(cfg.defaultProject), providers = [...new Set(models.map((model2) => model2.provider))], provider = await choose("Model provider", providers.map((value) => ({ label: value, value })), settings.getDefaultProvider()), choices = models.filter((model2) => model2.provider === provider), model = await choose("Model", choices.map((value) => ({ label: value.id, value })), choices.find((model2) => model2.id === settings.getDefaultModel()));
|
|
164
|
+
if (!await choose(`Save gateway settings?
|
|
165
|
+
Project: ${cfg.defaultProject}
|
|
166
|
+
Model: ${model.provider}/${model.id}
|
|
167
|
+
Startup: ${startup}`, [
|
|
168
|
+
{ label: "Save", value: !0 },
|
|
169
|
+
{ label: "Cancel", value: !1 }
|
|
170
|
+
])) {
|
|
171
|
+
console.log("Cancelled. Nothing saved.");
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
saveGatewayConfig(cfg), saved = !0, settings.setDefaultModelAndProvider(model.provider, model.id), await settings.flush();
|
|
175
|
+
let features = loadInstallFeatures();
|
|
176
|
+
features.features["chat-platforms"] = {
|
|
177
|
+
enabled: !0,
|
|
178
|
+
options: {
|
|
179
|
+
...features.features["chat-platforms"]?.options,
|
|
180
|
+
autostart: loadServiceSettings().startup !== "off"
|
|
181
|
+
}
|
|
182
|
+
}, saveInstallFeatures(features);
|
|
183
|
+
try {
|
|
184
|
+
await configureStartup(startup);
|
|
185
|
+
} finally {
|
|
186
|
+
features.features["chat-platforms"].options.autostart = loadServiceSettings().startup !== "off", saveInstallFeatures(features);
|
|
187
|
+
}
|
|
188
|
+
await choose("Start the gateway now?", [
|
|
189
|
+
{ label: "Start now", value: !0 },
|
|
190
|
+
{ label: "Not now", value: !1 }
|
|
191
|
+
]) && console.log(await startGatewayService()), console.log(`
|
|
192
|
+
If you entered your user ID, send /start to your bot, then send a task. Otherwise send /whoami, then on this computer run:
|
|
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.`);
|
|
195
|
+
} catch (error) {
|
|
196
|
+
if (error !== cancelled)
|
|
197
|
+
throw error;
|
|
198
|
+
console.log(saved ? "Settings saved. Start the gateway with lunr gateway start." : "Cancelled. Nothing saved.");
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function approveGatewayOwner(platform, code) {
|
|
202
|
+
if (platform !== "telegram" && platform !== "discord")
|
|
203
|
+
throw new Error("Choose telegram or discord.");
|
|
204
|
+
let user = createPairingStore().approve(platform, code);
|
|
205
|
+
if (!user)
|
|
206
|
+
throw new Error("Pairing code is invalid or expired.");
|
|
207
|
+
let cfg = loadGatewayConfig();
|
|
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.`;
|
|
209
|
+
}
|
|
210
|
+
export {
|
|
211
|
+
approveGatewayOwner,
|
|
212
|
+
selectSetupOption,
|
|
213
|
+
setupGateway,
|
|
214
|
+
validateBotToken
|
|
215
|
+
};
|
|
@@ -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-
|
|
205
|
-
import "./chunk-
|
|
206
|
-
import "./chunk-
|
|
208
|
+
} from "./chunk-I74LN5JG.js";
|
|
209
|
+
import "./chunk-UOEDI7RP.js";
|
|
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 {
|
|
@@ -217,7 +222,7 @@ import "./chunk-UJOCPOMX.js";
|
|
|
217
222
|
import "./chunk-IMLCWLPI.js";
|
|
218
223
|
import "./chunk-UAEOTO52.js";
|
|
219
224
|
import "./chunk-RQ2Q5IYR.js";
|
|
220
|
-
import "./chunk-
|
|
225
|
+
import "./chunk-B4HP6ZWM.js";
|
|
221
226
|
import "./chunk-GS42T6MX.js";
|
|
222
227
|
import "./chunk-RDDAZOMU.js";
|
|
223
228
|
import "./chunk-FQMM2EZ2.js";
|
|
@@ -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,13 +6,14 @@ import {
|
|
|
6
6
|
import "./chunk-DVGWF6A2.js";
|
|
7
7
|
import {
|
|
8
8
|
SettingsManager
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-I74LN5JG.js";
|
|
10
|
+
import "./chunk-UOEDI7RP.js";
|
|
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
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-B4HP6ZWM.js";
|
|
16
17
|
import {
|
|
17
18
|
APP_NAME,
|
|
18
19
|
NPM_CLI_PACKAGE,
|