@bitseek/claw 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-C7-qIj9S.js → accounts-C0g5--0e.js} +1 -1
- package/dist/{accounts-BuH44wOf.js → accounts-Dr4JgFGK.js} +1 -1
- package/dist/{accounts-YiXpEWQB.js → accounts-ESSExMvC.js} +7 -7
- package/dist/{acp-cli-C0E6TWGs.js → acp-cli-CbjSFq1x.js} +8 -8
- package/dist/{agent-scope-CY2-lUIY.js → agent-scope-CJelRKYY.js} +1 -1
- package/dist/{agents-ORCxWsDn.js → agents-BqONdWNu.js} +15 -15
- package/dist/{agents.config-DrY6s7HL.js → agents.config-2cTTTDPj.js} +2 -2
- package/dist/{agents.config-CvgerNZr.js → agents.config-DhIvFsFv.js} +1 -1
- package/dist/{api-key-rotation-C7SJO4Nd.js → api-key-rotation-7AxlAIU7.js} +1 -1
- package/dist/{audio-preflight-DXJR9ICy.js → audio-preflight-C2pZmbnM.js} +4 -4
- package/dist/{audio-preflight-FcKPBDaM.js → audio-preflight-uJePeeJ2.js} +36 -36
- package/dist/{audio-transcription-runner-S9u5-nsu.js → audio-transcription-runner-CQ4BMvGX.js} +1 -1
- package/dist/{audio-transcription-runner-DLL_6E3Z.js → audio-transcription-runner-DgoTt2Qi.js} +22 -22
- package/dist/{audit-Bq33mo12.js → audit-Dp7M6JvG.js} +29 -29
- package/dist/{auth-BH8QpwSt.js → auth-CzuZwE7M.js} +1 -1
- package/dist/{auth-choice-BkF1geyi.js → auth-choice-CxRgsY3j.js} +6 -6
- package/dist/{auth-choice-BogsyP9d.js → auth-choice-D6WGnKQk.js} +4 -4
- package/dist/{auth-choice-o_B6r3SA.js → auth-choice-Da9Ml4DK.js} +16 -16
- package/dist/{auth-choice-BDXGghAn.js → auth-choice-lhaABxGx.js} +13 -13
- package/dist/{auth-choice.apply-helpers-D9JJjYV4.js → auth-choice.apply-helpers-ir8GviGs.js} +1 -1
- package/dist/{auth-profiles-1D0rBps3.js → auth-profiles-Ncv1fyN5.js} +16 -16
- package/dist/{auth-token-3AxkbvQY.js → auth-token-BTTsYSXG.js} +4 -3
- package/dist/{auth-token-KkSq49WV.js → auth-token-KZZH9ZpM.js} +3 -2
- package/dist/{banner-iVOjYALn.js → banner-CMCfl-_K.js} +2 -2
- package/dist/{bindings-8T2naFRm.js → bindings-C2tByF8e.js} +1 -1
- package/dist/{bonjour-discovery-Dfc3n2GZ.js → bonjour-discovery-CC78xmYI.js} +1 -1
- package/dist/{browser-cli-YWbP4I14.js → browser-cli-vRHyP5Tu.js} +12 -12
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-DKqpA9Z1.js → call-BolSRDlL.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-Df8XiNL_.js → channel-account-context-DSofwLgp.js} +5 -5
- package/dist/{channel-options-Bhkc7_f4.js → channel-options-Didnr81h.js} +1 -1
- package/dist/{channel-options-DBkdFJpv.js → channel-options-gDhT85r4.js} +3 -3
- package/dist/{channel-selection-DvH0eFfq.js → channel-selection-DAkTNagG.js} +1 -1
- package/dist/{channel-web-DFMP-9oI.js → channel-web-C45x6ahP.js} +18 -18
- package/dist/{channel-web-B0P0EVvO.js → channel-web-rP0VBNIt.js} +1 -1
- package/dist/{channels-cli-Cpg0eE35.js → channels-cli-BpiA2BQE.js} +8 -8
- package/dist/{channels-cli-Cb31JAsk.js → channels-cli-CZQbGl-H.js} +97 -97
- package/dist/{channels-status-issues-DbgzPgIT.js → channels-status-issues-ib5LY9cR.js} +1 -1
- package/dist/{chrome-Cs1O_rOB.js → chrome-DNZHZwLH.js} +4 -4
- package/dist/{chrome-Dvo1iZKa.js → chrome-DWfXErGH.js} +8 -8
- package/dist/{clawbot-cli-DS7XFNhh.js → clawbot-cli-B0Hd9quY.js} +5 -5
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-C3lgF34a.js → cli-Cvdtw0CY.js} +3 -3
- package/dist/{cli-DnShryy2.js → cli-D5yg1LCm.js} +78 -78
- package/dist/{client-CbelTUyH.js → client-D3Y8sx9i.js} +2 -2
- package/dist/{command-registry-BPSOtew_.js → command-registry-DshPN0jE.js} +13 -13
- package/dist/{commands-B8GXg7jc.js → commands-CvjTbnpO.js} +1 -1
- package/dist/{commands-registry-CL_GSOWa.js → commands-registry-CMWIA5nS.js} +3 -3
- package/dist/{completion-cli-DaFk2P3E.js → completion-cli-BD1Wf-K1.js} +1 -1
- package/dist/{completion-cli-D5rxhSoX.js → completion-cli-Ds2kVMMx.js} +13 -13
- package/dist/{config-cli-CnGjfuxR.js → config-cli-BtvOIDkG.js} +7 -7
- package/dist/{config-cli-CgcDfxer.js → config-cli-C-yIXgGr.js} +1 -1
- package/dist/{config-guard-KdPUbj6b.js → config-guard-D3uYbBeN.js} +3 -3
- package/dist/{config-validation-BAPzXTIZ.js → config-validation-C_edTHc_.js} +3 -3
- package/dist/{configure-vAteyJCB.js → configure-CgbTpfrx.js} +17 -17
- package/dist/{configure-DQNSyoHA.js → configure-DflayaB2.js} +4 -4
- package/dist/constants-BJMtcGm_.js +16 -0
- package/dist/constants-D1Q8yQ1_.js +16 -0
- package/dist/{context-window-guard-BEDyA5YL.js → context-window-guard-BqrKjiIm.js} +1 -1
- package/dist/{context-window-guard-DeogNTcc.js → context-window-guard-DfLcl4Sl.js} +1 -1
- package/dist/control-ui/assets/index-CZbqZLPL.js.map +1 -1
- package/dist/{control-ui-assets-DOt9K_XQ.js → control-ui-assets-CTp_YbTN.js} +1 -1
- package/dist/{cron-cli-BODa5Hjv.js → cron-cli-DrMOzU3j.js} +12 -12
- package/dist/{daemon-cli-0UQHVorp.js → daemon-cli-SPY75752.js} +15 -15
- package/dist/{daemon-install-IXSut9Ak.js → daemon-install-BWb3fVhk.js} +4 -4
- package/dist/{daemon-install-helpers-CVMHs8zT.js → daemon-install-helpers-DJg83rPu.js} +11 -11
- package/dist/{dashboard-DKQ1mukA.js → dashboard-CCwQ2XPE.js} +2 -2
- package/dist/{deliver-CC3F9Kbq.js → deliver-DRKtTsvj.js} +7 -7
- package/dist/{deliver-NVEoeWVm.js → deliver-zrYSWfQ5.js} +1 -1
- package/dist/{devices-cli-BxHaos-D.js → devices-cli-DEi-I2cs.js} +8 -8
- package/dist/{diagnostic-C6IGpsPB.js → diagnostic-D2YBqJR0.js} +1 -1
- package/dist/{diagnostics-DKQWCTrs.js → diagnostics-D16lnwhz.js} +5 -5
- package/dist/{directory-cli-CM0yj3EJ.js → directory-cli-C-hoa-kc.js} +8 -8
- package/dist/{dns-cli-4V7j2QJt.js → dns-cli-bfQXNsnB.js} +5 -5
- package/dist/{dock-6qH4Y0HH.js → dock-DXBor-4C.js} +4 -4
- package/dist/{docs-cli-B4OKIYf3.js → docs-cli-Bk3ByNGZ.js} +4 -4
- package/dist/{doctor-completion-C8NZ7PLx.js → doctor-completion-DpsPIdur.js} +2 -2
- package/dist/{doctor-completion-D1lF2gak.js → doctor-completion-f2gLNSUa.js} +1 -1
- package/dist/{doctor-config-flow-CRh5VUYo.js → doctor-config-flow-DhnDuMG9.js} +15 -15
- package/dist/{enable-Dg2l-a-F.js → enable-DUzrhH2H.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-CuJvX5ng.js → exec-approvals-allowlist-BjI4jCdB.js} +1 -1
- package/dist/{exec-approvals-cli-CG_sEqkm.js → exec-approvals-cli-DjgEYE6-.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-Dvdq9iDc.js → exec-safe-bin-runtime-policy-DJT0CbIu.js} +2 -2
- package/dist/{fetch-CIaHb2Cp.js → fetch-Ch8LsU9k.js} +3 -3
- package/dist/{fetch-guard-t4V7UlQC.js → fetch-guard-B3dFBAUH.js} +1 -1
- package/dist/{fs-safe-keI0663i.js → fs-safe-Bbp_1S9D.js} +24 -24
- package/dist/{gateway-cli-BKlWGZ1k.js → gateway-cli-3rP04OO5.js} +11 -11
- package/dist/{gateway-cli-Cq0anbXD.js → gateway-cli-CbVaqoxB.js} +163 -163
- package/dist/{gateway-rpc-BT-pYZR-.js → gateway-rpc-CH4zohVW.js} +1 -1
- package/dist/{health-B-UhwtkZ.js → health-DaN3xECS.js} +1 -1
- package/dist/{health-DF5uVHJ8.js → health-Gkd0akfz.js} +14 -14
- package/dist/{hooks-cli-C8hrIyKL.js → hooks-cli-gRM8FMyG.js} +86 -86
- package/dist/{hooks-cli-BNyDiG6r.js → hooks-cli-n5Weiheq.js} +4 -4
- package/dist/{hooks-status-DD2TFR4J.js → hooks-status-BjqUFVk2.js} +1 -1
- package/dist/{image-NGniYRpo.js → image-2aQoIIQl.js} +5 -5
- package/dist/{image-CSuemKkK.js → image-DnxYCkHO.js} +1 -1
- package/dist/{image-ops-lN_xsQHN.js → image-ops-Di37o6bN.js} +10 -10
- package/dist/index.js +8 -8
- package/dist/{inspect-BxpKPHIb.js → inspect-8xmwRHN0.js} +4 -4
- package/dist/{install-safe-path-BP03c-sO.js → install-safe-path-lyrY4AbG.js} +25 -25
- package/dist/{installs-CpGSqQzs.js → installs-B-WNFE2v.js} +9 -9
- package/dist/{ipv4-yOt1RWEn.js → ipv4-aGQhzP5g.js} +1 -1
- package/dist/{ir-DSD5UBLt.js → ir-CPt8jJjC.js} +6 -6
- package/dist/{issue-format-oiZHuL_T.js → issue-format-Bm-71lmf.js} +1 -1
- package/dist/{json-files-1hhV5hS6.js → json-files-DrZ4qfxw.js} +8 -8
- package/dist/{lifecycle-core-B6CCivG-.js → lifecycle-core-BBoysuYG.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{login-DMdb2smS.js → login-CUi8T8WR.js} +3 -3
- package/dist/{login-qr-D4Z_nKS0.js → login-qr-BaGgKfeX.js} +6 -6
- package/dist/{logs-cli-CyIoR_sQ.js → logs-cli-BeBjeWxt.js} +9 -9
- package/dist/{manager-B9EfOw_y.js → manager-C5ViXKTz.js} +14 -14
- package/dist/{manifest-registry-CBF8Vfz8.js → manifest-registry-Kbw8YPsZ.js} +1 -1
- package/dist/{markdown-tables-w90v38Ry.js → markdown-tables-B1FRFNMI.js} +1 -1
- package/dist/{memory-cli-CuLSqZSI.js → memory-cli-DF4DARLw.js} +12 -12
- package/dist/{model-Bkq6198v.js → model-D49_t4Rw.js} +2 -2
- package/dist/{model-catalog-DgMq7sEI.js → model-catalog-B9xOhfnS.js} +3 -3
- package/dist/{model-picker-GYsO_IgK.js → model-picker-DaLz-bqQ.js} +4 -4
- package/dist/{models-Bht60MxY.js → models-CJodAVSF.js} +18 -18
- package/dist/{models-cli-S6G_2scT.js → models-cli-B1Dwj01V.js} +5 -5
- package/dist/{models-cli-BgBuBuEk.js → models-cli-Ceb37L0t.js} +83 -83
- package/dist/{models-config-SG5a8tJD.js → models-config-BJTF5xb7.js} +6 -6
- package/dist/{net-DfmnTN89.js → net-B6xk1xkz.js} +2 -2
- package/dist/{node-cli-Csot4WhY.js → node-cli-hD2wltn8.js} +33 -33
- package/dist/{node-command-policy-zI2Nd_XZ.js → node-command-policy-bP6LYXJe.js} +1 -1
- package/dist/{node-service-DHWADbz3.js → node-service-B10h5Sui.js} +1 -1
- package/dist/{nodes-cli-BJF1Kb0I.js → nodes-cli-BaO6VigE.js} +16 -16
- package/dist/{nodes-screen-C9ytNi_p.js → nodes-screen-DIBoM5tG.js} +7 -7
- package/dist/{npm-pack-install-BkSJrEoq.js → npm-pack-install-C9DS0YeS.js} +18 -18
- package/dist/{npm-resolution-B74nY0RB.js → npm-resolution-B5fqS6mO.js} +5 -5
- package/dist/{npm-resolution-DIvETHTU.js → npm-resolution-dNC8uD0I.js} +1 -1
- package/dist/{onboard-B6HW9q6Q.js → onboard-CE9V4Lb7.js} +6 -6
- package/dist/{onboard-channels-DJVM_aUx.js → onboard-channels-DPIysHDh.js} +20 -20
- package/dist/{onboard-channels-pzjW5IfR.js → onboard-channels-DQ1rkv4c.js} +1 -1
- package/dist/{onboard-custom-2Dhma9aa.js → onboard-custom-BhL4byJI.js} +1 -1
- package/dist/{onboard-custom-CRXcWyfJ.js → onboard-custom-Ca3nnlVy.js} +3 -3
- package/dist/{onboard-custom.shared-CNcCdRsS.js → onboard-custom.shared-D6P-b1Wa.js} +3 -3
- package/dist/{onboard-custom.shared-BVWW8dhE.js → onboard-custom.shared-vjI8sl9Q.js} +1 -1
- package/dist/{onboard-helpers-2jZi8DyE.js → onboard-helpers-D-l_4GyD.js} +11 -11
- package/dist/{onboard-hooks-D8MxBe6j.js → onboard-hooks-DDwA_gb0.js} +4 -4
- package/dist/{onboard-CnMe8gwt.js → onboard-qD3I6PJW.js} +3 -3
- package/dist/{onboard-remote-Dfkyladm.js → onboard-remote-B023mLV2.js} +3 -3
- package/dist/{onboard-skills-rw0449ZN.js → onboard-skills-UbGzjecs.js} +4 -4
- package/dist/{onboarding-DHOKHrHh.js → onboarding-CjwEj4uN.js} +4 -4
- package/dist/{onboarding-Cnod4Rtf.js → onboarding-_GD-DZHG.js} +13 -13
- package/dist/{onboarding.finalize-CRJ2ikq7.js → onboarding.finalize-B5hA5lV8.js} +7 -7
- package/dist/{onboarding.finalize-Boa2idzu.js → onboarding.finalize-kX5lNpGT.js} +91 -91
- package/dist/{onboarding.gateway-config-DYsZSw1-.js → onboarding.gateway-config-Dvu99ZRI.js} +18 -18
- package/dist/{openai-model-default-D4FwcmmB.js → openai-model-default-BHaYGK6i.js} +2 -2
- package/dist/{openai-model-default-DUmVSDlR.js → openai-model-default-op8vboY6.js} +1 -1
- package/dist/{outbound-B33AvY5n.js → outbound-DP_Pdp7e.js} +4 -4
- package/dist/{outbound-attachment-BGnMFNUJ.js → outbound-attachment-C1mspOfp.js} +2 -2
- package/dist/{pairing-cli-Df3Pa86k.js → pairing-cli-BwaiwEE0.js} +9 -9
- package/dist/{pairing-labels-DsUsf_bd.js → pairing-labels-BDzfGlP0.js} +1 -1
- package/dist/{pairing-store-DISFyfXe.js → pairing-store-DVasdu6J.js} +3 -3
- package/dist/{path-alias-guards-GklztZEg.js → path-alias-guards-CwNBr-6E.js} +3 -3
- package/dist/{path-safety-D310le-T.js → path-safety-Bpqz1wi_.js} +1 -1
- package/dist/{paths-BDiNGPdu.js → paths-C2VtkO4T.js} +9 -9
- package/dist/{pi-embedded-C1bjl5QY.js → pi-embedded-BQqt592d.js} +22 -22
- package/dist/{pi-embedded-helpers-jjDKx95g.js → pi-embedded-helpers-BYOv7Q7E.js} +6 -6
- package/dist/{pi-embedded-helpers-BUAKpUH7.js → pi-embedded-helpers-Bo7e-QzJ.js} +3 -3
- package/dist/{pi-model-discovery-D4cae7Aa.js → pi-model-discovery-B7QZQW84.js} +1 -1
- package/dist/{pi-tools.policy-Cjhz5iy7.js → pi-tools.policy-CUqhItn9.js} +5 -5
- package/dist/{plugin-auto-enable-Bz7g0nLn.js → plugin-auto-enable-BJBnaUzA.js} +3 -3
- package/dist/{plugin-registry-C-GmY3jR.js → plugin-registry-2CmN8Jv2.js} +1 -1
- package/dist/{plugin-registry-MDhg7Qi4.js → plugin-registry-NaHPDM1s.js} +3 -3
- package/dist/plugin-sdk/bitseek/constants.d.ts +3 -1
- package/dist/{plugins-DaKbDkTU.js → plugins-BYHJoTB8.js} +2 -2
- package/dist/{plugins-cli-C48Zjd96.js → plugins-cli-DwKgp7q7.js} +88 -88
- package/dist/{plugins-cli-Dmby2yHh.js → plugins-cli-o6KJO4Qe.js} +4 -4
- package/dist/{ports-rhtsAoOq.js → ports-Bjm5w0DD.js} +2 -2
- package/dist/{ports-CkYr4Wsz.js → ports-CmP85Z6Y.js} +1 -1
- package/dist/{program-SWTF9VwN.js → program-BTBw45uK.js} +86 -86
- package/dist/{program-context-BEi8inrG.js → program-context-CqvVc2Bn.js} +18 -18
- package/dist/{prompt-select-styled-CmtT9U6P.js → prompt-select-styled-7VZwhnhd.js} +39 -39
- package/dist/{prompt-select-styled-uWynTnGe.js → prompt-select-styled-DK1SacDX.js} +4 -4
- package/dist/{provider-auth-helpers-DnnYgfnU.js → provider-auth-helpers-CzSm0FSu.js} +5 -5
- package/dist/{provider-auth-helpers-D-NWKlbH.js → provider-auth-helpers-hI1pbI9r.js} +2 -2
- package/dist/{proxy-env-zRmsnQyF.js → proxy-env-B3cJLAXi.js} +1 -1
- package/dist/{push-apns-DpNqlhRp.js → push-apns-DMeB2M_b.js} +5 -5
- package/dist/{push-apns-CxuflGia.js → push-apns-DZ0qaSFA.js} +1 -1
- package/dist/{pw-ai-shcztqUJ.js → pw-ai-BuJ96cBK.js} +15 -15
- package/dist/{pw-ai-K29PikaU.js → pw-ai-Cu3cnNF0.js} +1 -1
- package/dist/{qmd-manager-Dkj5bE5Q.js → qmd-manager-CU27lJu6.js} +20 -20
- package/dist/{qr-cli-CVeJLILo.js → qr-cli-D5wWchj3.js} +1 -1
- package/dist/{query-expansion-C_gNfBxn.js → query-expansion-DTVQFgNJ.js} +12 -12
- package/dist/{redact-snapshot-jjHvRNNQ.js → redact-snapshot-DiQrZF-C.js} +1 -1
- package/dist/{register.agent-KPyI7NIX.js → register.agent-BBOmACUM.js} +99 -99
- package/dist/{register.agent-CM2WrDiT.js → register.agent-D9rmYCMS.js} +10 -10
- package/dist/register.configure-BJ7l1h-A.js +175 -0
- package/dist/{register.configure-DO4EtzQf.js → register.configure-CZF2XAPO.js} +13 -13
- package/dist/{register.init-fbZRTWnn.js → register.init-BXkISfms.js} +18 -17
- package/dist/{register.init--ZybjVz2.js → register.init-BvMr7cj9.js} +3 -2
- package/dist/{register.maintenance-5ovOEoCx.js → register.maintenance-FKHpDu3E.js} +101 -101
- package/dist/{register.maintenance-BEr69U9Q.js → register.maintenance-qjXr4IGe.js} +9 -9
- package/dist/{register.message-C4WVGh_P.js → register.message-BME4m1Jr.js} +79 -79
- package/dist/{register.message-5nFfiTjN.js → register.message-Cs0mwtTw.js} +4 -4
- package/dist/{register.onboard-CYlc-JLy.js → register.onboard--_sGklZ6.js} +18 -18
- package/dist/{register.onboard-DRJusS4p.js → register.onboard-BzpyjklK.js} +2 -2
- package/dist/{register.setup-CFj3zDQ5.js → register.setup-Degyv4Bj.js} +2 -2
- package/dist/{register.setup-Cz9kVlNj.js → register.setup-qYawYgIM.js} +21 -21
- package/dist/{register.start-BesEIeyG.js → register.start-DErNT3nQ.js} +17 -17
- package/dist/{register.status-health-sessions-BPLHKCVT.js → register.status-health-sessions-Czq26k6E.js} +93 -93
- package/dist/{register.status-health-sessions-5YEbsmFq.js → register.status-health-sessions-wp3A615j.js} +5 -5
- package/dist/{register.subclis-BPpxGpDU.js → register.subclis-DkDc3aKk.js} +31 -31
- package/dist/{replies--7kgWzUI.js → replies-BTbk1yj0.js} +1 -1
- package/dist/{reply-DocHuCQP.js → reply-OEcNPoWd.js} +4 -4
- package/dist/{reply-prefix-Db6C8_77.js → reply-prefix-CQi-DNJ_.js} +1 -1
- package/dist/{resolve-route-DqGvgUbS.js → resolve-route-qkwCBMOn.js} +2 -2
- package/dist/{rpc-Da_4fj6k.js → rpc-Cnf8pyqe.js} +1 -1
- package/dist/{run-main-D4CxtTIj.js → run-main-VaM4RFaa.js} +97 -97
- package/dist/{runtime-Dtwe1yzQ.js → runtime-BKPQGwlu.js} +2 -2
- package/dist/{sandbox-7BPxFdm0.js → sandbox-FcGYiz2w.js} +18 -18
- package/dist/{sandbox-cli-fNztPATd.js → sandbox-cli-I_Ee8o_F.js} +26 -26
- package/dist/{secrets-cli-Buc9vA9M.js → secrets-cli-Y5Ae8654.js} +10 -10
- package/dist/{security-cli-CBa6BNve.js → security-cli-Cxh4Msyp.js} +43 -43
- package/dist/{send-B_g5mC7P.js → send-BCFY4Zon.js} +6 -6
- package/dist/{send-BIDQVuz-.js → send-BND_guiq.js} +6 -6
- package/dist/{send-B9F6v1RI.js → send-BaweV9LV.js} +5 -5
- package/dist/{send-Xi705BIB.js → send-CApiXnSH.js} +8 -8
- package/dist/{send-Dt2MU1Ez.js → send-aCOVuBQ6.js} +11 -11
- package/dist/{server-DGSKOG9H.js → server-B9tR6Pn2.js} +19 -19
- package/dist/{server-context-PzcGGZd6.js → server-context-CEq3QrPf.js} +12 -12
- package/dist/{server-lifecycle-DKHhAN2b.js → server-lifecycle-Dm-2uq1J.js} +2 -2
- package/dist/{server-middleware-DV0oZmRx.js → server-middleware-Bm0ro16L.js} +1 -1
- package/dist/{server-node-events-C_CyfSiL.js → server-node-events-BE-B31Iv.js} +79 -79
- package/dist/{server-node-events-CZ-3bwB5.js → server-node-events-h5NyibKC.js} +4 -4
- package/dist/{service-BP_KUPqt.js → service-D_q10odK.js} +15 -15
- package/dist/{session-zBCRyIT4.js → session-BilXyYPK.js} +1 -1
- package/dist/{session-meta-DVRsY69Q.js → session-meta-BmvLv08s.js} +1 -1
- package/dist/{session-utils-CJnxY0Iq.js → session-utils-DdRL6aoq.js} +6 -6
- package/dist/{sessions-DvmE9uli.js → sessions-ChAmoyIS.js} +15 -15
- package/dist/{sessions-D6w_y8HL.js → sessions-CktkDWsc.js} +4 -4
- package/dist/{shared-CdPG7WbR.js → shared-CYOVnE8Z.js} +1 -1
- package/dist/{shared-BpCAsQdK.js → shared-ChzS9n9t.js} +3 -3
- package/dist/{skill-commands-xxmr2qwC.js → skill-commands-BIN2pI7T.js} +5 -5
- package/dist/{skill-scanner-CWbaA3Xe.js → skill-scanner-CSmiOSFd.js} +6 -6
- package/dist/{skills-Cn4HFdI6.js → skills-CqO2kuTQ.js} +3 -3
- package/dist/{skills-cli-fx9XRVfF.js → skills-cli-CCfNGx-q.js} +5 -5
- package/dist/{skills-install-8BRmLudM.js → skills-install-3PLvMn_P.js} +6 -6
- package/dist/{skills-status-KyIZObis.js → skills-status-C1TG3OK0.js} +1 -1
- package/dist/{status-DGYiEE9b.js → status-CmNVuywF.js} +2 -2
- package/dist/{status-Cpa2ZBOB.js → status-D_I-fLJF.js} +26 -26
- package/dist/{status.update-dR_eb-sA.js → status.update-BX7tZJju.js} +2 -2
- package/dist/{store-C-5s51Gr.js → store-H4Sy0kJE.js} +5 -5
- package/dist/{subagent-registry-BFi2AvAR.js → subagent-registry-D4xGq2uc.js} +158 -158
- package/dist/{system-cli-0oaOfAhE.js → system-cli-zS6TKEZN.js} +9 -9
- package/dist/{system-run-command--za6p_x3.js → system-run-command-Bnym6gCM.js} +1 -1
- package/dist/{systemd-BKKFcgDX.js → systemd-B-TNk1de.js} +9 -9
- package/dist/{systemd-hints-DWiwN7xP.js → systemd-hints-BtHGM1Jb.js} +6 -6
- package/dist/{systemd-linger-CxIMr-zT.js → systemd-linger-CTeOH7Nl.js} +1 -1
- package/dist/{tables-Dxff0JSr.js → tables-CQmtKuyg.js} +1 -1
- package/dist/{tailnet-Cu8EdqyP.js → tailnet-DcxtJZA8.js} +1 -1
- package/dist/{target-errors-BF6f4DMR.js → target-errors-B_xyg1kW.js} +4 -4
- package/dist/{tool-images-BdyT10Li.js → tool-images-D1tcg9xW.js} +1 -1
- package/dist/{tui-CpmJvFb8.js → tui-CaNLNBF2.js} +6 -6
- package/dist/{tui-cli-C3paex8S.js → tui-cli-YnPauYsR.js} +33 -33
- package/dist/{update-DeX-3j-N.js → update-Cn9hdCvW.js} +3 -3
- package/dist/{update-cli-BFovLSoE.js → update-cli-CWS0bKZV.js} +109 -109
- package/dist/{update-cli-GRNVZJPC.js → update-cli-Do4BIFSd.js} +9 -9
- package/dist/{update-runner-BEeaojMB.js → update-runner-BUth8QlB.js} +16 -16
- package/dist/{update-runner-C_NOsmrM.js → update-runner-D5vyQGte.js} +1 -1
- package/dist/{web-JHPqOF_6.js → web-Bc1AWW4q.js} +4 -4
- package/dist/{web-_gRUr5dM.js → web-C5gLi1bN.js} +6 -6
- package/dist/web-CQqnJkMB.js +127 -0
- package/dist/{webhooks-cli-D8OXryhs.js → webhooks-cli-BI8a49sS.js} +6 -6
- package/dist/{whatsapp-actions-DXHJuREZ.js → whatsapp-actions-DdiWBZ9X.js} +19 -19
- package/dist/{with-timeout-CL7ogNKf.js → with-timeout-DbFn1lEx.js} +3 -3
- package/dist/{workspace-V4tpdXSA.js → workspace-AgsRlsqX.js} +1 -1
- package/dist/{workspace-DzeL98px.js → workspace-BHfqkuYN.js} +23 -23
- package/dist/{workspace-dirs-pZ_2cckP.js → workspace-dirs-DxSNfi_Q.js} +1 -1
- package/dist/{wsl-CiVud8tt.js → wsl-KDz114y6.js} +2 -2
- package/docs/install/installer.md +7 -0
- package/package.json +6 -1
- package/dist/constants-CLQ_6hKz.js +0 -10
- package/dist/constants-DnSTSxcE.js +0 -10
- package/dist/register.configure-CLQG7kfp.js +0 -175
- package/dist/web-DgzOP2dY.js +0 -127
|
@@ -4,124 +4,124 @@ import { g as resolveStateDir, r as STATE_DIR, u as resolveGatewayPort, y as res
|
|
|
4
4
|
import { d as defaultRuntime, t as createSubsystemLogger, u as createNonExitingRuntime } from "./subsystem-DjdBljTA.js";
|
|
5
5
|
import { t as parseBooleanValue$1 } from "./boolean-DtWR5bt3.js";
|
|
6
6
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
7
|
-
import { $n as resolveAuthStorePathForDisplay, $r as buildAssistantMessageWithZeroUsage, Ai as DEFAULT_MODEL, Bn as listProfilesForProvider, Bt as unsetConfigValueAtPath, Cr as resolveReasoningDefault, Ct as isAvatarDataUrl, Dn as resolveSlackNativeStreaming, Dt as isSupportedLocalAvatarExtension, En as resolveDiscordPreviewStreamMode, Er as resolveThinkingDefault, Et as isPathWithinRoot, Ft as setConfigOverride, G as isInboundPathAllowed, H as normalizeTelegramCommandName, I as resolveConfigSnapshotHash, It as unsetConfigOverride, J as resolveIMessageRemoteAttachmentRoots, Jt as buildEnforcedShellCommand, Kn as ensureAuthProfileStore, Ln as resolveOwnerDisplaySetting, Lt as getConfigValueAtPath, M as loadConfig, Mi as resolveAuthProfileDisplayLabel, Nn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Nt as getConfigOverrides, Oi as splitTrailingAuthProfile, On as resolveSlackStreamingMode, P as readConfigFileSnapshot, Pn as resolveAgentMaxConcurrent, Pt as resetConfigOverrides, Qr as buildAssistantMessage, R as writeConfigFile, Rt as parseConfigPath, Si as normalizeSecretInput, Sr as resolveModelRefFromString, St as AVATAR_MAX_BYTES, Tn as mapStreamingModeToSlackLegacyDraftStreamMode, Tr as resolveSubagentSpawnModelSelection, U as resolveTelegramCustomCommands, V as TELEGRAM_COMMAND_NAME_PATTERN, Vn as markAuthProfileGood, X as parseNonNegativeByteSize, Xr as OLLAMA_NATIVE_BASE_URL, Y as normalizeScpRemoteHost, Zr as createOllamaStreamFn, a as markAuthProfileFailure, ai as resolveApiKeyForProvider, ar as buildAllowedModelSet, at as parseDurationMs, br as resolveDefaultModelForAgent, c as resolveProfilesUnavailableReason, ci as resolveModelAuthMode, cr as findNormalizedProviderValue, di as resolveShellEnvFallbackTimeoutMs, dr as isCliProvider, ei as buildStreamErrorAssistantMessage, er as resolveOpenClawAgentDir, fr as modelKey, hr as normalizeProviderId, i as isProfileInCooldown, ii as requireApiKey, ji as DEFAULT_PROVIDER, jt as validateJsonSchemaValue, ki as DEFAULT_CONTEXT_TOKENS, l as resolveApiKeyForProfile, n as resolveAuthProfileOrder, ni as getApiKeyForModel, o as markAuthProfileUsed, or as buildConfiguredAllowlistKeys, pr as normalizeModelRef$2, q as resolveIMessageAttachmentRoots, r as getSoonestCooldownExpiry, ri as getCustomProviderApiKey, si as resolveEnvApiKey, sr as buildModelAliasIndex, ti as buildUsageWithNoCost, tr as withFileLock, ui as getShellPathFromLoginShell, wt as isAvatarHttpUrl, yn as applyMergePatch, yr as resolveConfiguredModelRef, z as validateConfigObjectWithPlugins, zn as dedupeProfileIds, zt as setConfigValueAtPath } from "./auth-profiles-
|
|
7
|
+
import { $n as resolveAuthStorePathForDisplay, $r as buildAssistantMessageWithZeroUsage, Ai as DEFAULT_MODEL, Bn as listProfilesForProvider, Bt as unsetConfigValueAtPath, Cr as resolveReasoningDefault, Ct as isAvatarDataUrl, Dn as resolveSlackNativeStreaming, Dt as isSupportedLocalAvatarExtension, En as resolveDiscordPreviewStreamMode, Er as resolveThinkingDefault, Et as isPathWithinRoot, Ft as setConfigOverride, G as isInboundPathAllowed, H as normalizeTelegramCommandName, I as resolveConfigSnapshotHash, It as unsetConfigOverride, J as resolveIMessageRemoteAttachmentRoots, Jt as buildEnforcedShellCommand, Kn as ensureAuthProfileStore, Ln as resolveOwnerDisplaySetting, Lt as getConfigValueAtPath, M as loadConfig, Mi as resolveAuthProfileDisplayLabel, Nn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Nt as getConfigOverrides, Oi as splitTrailingAuthProfile, On as resolveSlackStreamingMode, P as readConfigFileSnapshot, Pn as resolveAgentMaxConcurrent, Pt as resetConfigOverrides, Qr as buildAssistantMessage, R as writeConfigFile, Rt as parseConfigPath, Si as normalizeSecretInput, Sr as resolveModelRefFromString, St as AVATAR_MAX_BYTES, Tn as mapStreamingModeToSlackLegacyDraftStreamMode, Tr as resolveSubagentSpawnModelSelection, U as resolveTelegramCustomCommands, V as TELEGRAM_COMMAND_NAME_PATTERN, Vn as markAuthProfileGood, X as parseNonNegativeByteSize, Xr as OLLAMA_NATIVE_BASE_URL, Y as normalizeScpRemoteHost, Zr as createOllamaStreamFn, a as markAuthProfileFailure, ai as resolveApiKeyForProvider, ar as buildAllowedModelSet, at as parseDurationMs, br as resolveDefaultModelForAgent, c as resolveProfilesUnavailableReason, ci as resolveModelAuthMode, cr as findNormalizedProviderValue, di as resolveShellEnvFallbackTimeoutMs, dr as isCliProvider, ei as buildStreamErrorAssistantMessage, er as resolveOpenClawAgentDir, fr as modelKey, hr as normalizeProviderId, i as isProfileInCooldown, ii as requireApiKey, ji as DEFAULT_PROVIDER, jt as validateJsonSchemaValue, ki as DEFAULT_CONTEXT_TOKENS, l as resolveApiKeyForProfile, n as resolveAuthProfileOrder, ni as getApiKeyForModel, o as markAuthProfileUsed, or as buildConfiguredAllowlistKeys, pr as normalizeModelRef$2, q as resolveIMessageAttachmentRoots, r as getSoonestCooldownExpiry, ri as getCustomProviderApiKey, si as resolveEnvApiKey, sr as buildModelAliasIndex, ti as buildUsageWithNoCost, tr as withFileLock, ui as getShellPathFromLoginShell, wt as isAvatarHttpUrl, yn as applyMergePatch, yr as resolveConfiguredModelRef, z as validateConfigObjectWithPlugins, zn as dedupeProfileIds, zt as setConfigValueAtPath } from "./auth-profiles-Ncv1fyN5.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-CVXyxgq3.js";
|
|
9
|
-
import { _ as resolveAgentModelPrimaryValue, a as resolveAgentDir, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, g as resolveAgentModelFallbackValues, h as resolveSessionAgentIds, i as resolveAgentConfig, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as toAgentModelListLike } from "./agent-scope-
|
|
9
|
+
import { _ as resolveAgentModelPrimaryValue, a as resolveAgentDir, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, g as resolveAgentModelFallbackValues, h as resolveSessionAgentIds, i as resolveAgentConfig, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as toAgentModelListLike } from "./agent-scope-CJelRKYY.js";
|
|
10
10
|
import { C as isCronSessionKey, E as resolveThreadParentSessionKey, T as parseAgentSessionKey, _ as normalizeOptionalAccountId, b as getSubagentDepth, c as normalizeAgentId, d as resolveThreadSessionKeys, f as sanitizeAgentId, g as normalizeAccountId$2, h as DEFAULT_ACCOUNT_ID, l as normalizeMainKey, o as classifySessionKeyShape, r as buildAgentMainSessionKey, s as isValidAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, v as isBlockedObjectKey, w as isSubagentSessionKey, x as isAcpSessionKey, y as deriveSessionChatType } from "./session-key-BLprDJYq.js";
|
|
11
11
|
import { C as sliceUtf16Safe, E as isPlainObject, S as sleep$1, T as truncateUtf16Safe, b as shortenHomeInString, c as escapeRegExp, p as normalizeE164, r as clampInt, t as CONFIG_DIR, u as isRecord$1, v as resolveUserPath, x as shortenHomePath } from "./utils-DIzy5B5o.js";
|
|
12
|
-
import { C as openBoundaryFileSync, N as normalizeWindowsPathForComparison, S as openBoundaryFile, a as DEFAULT_IDENTITY_FILENAME, d as ensureAgentWorkspace, f as filterBootstrapFilesForSession, g as resolveWorkspaceAttachmentsRoot, m as loadWorkspaceBootstrapFiles, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, y as resolveOpenClawPackageRoot } from "./workspace-
|
|
12
|
+
import { C as openBoundaryFileSync, N as normalizeWindowsPathForComparison, S as openBoundaryFile, a as DEFAULT_IDENTITY_FILENAME, d as ensureAgentWorkspace, f as filterBootstrapFilesForSession, g as resolveWorkspaceAttachmentsRoot, m as loadWorkspaceBootstrapFiles, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, y as resolveOpenClawPackageRoot } from "./workspace-BHfqkuYN.js";
|
|
13
13
|
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-BJMfryJd.js";
|
|
14
14
|
import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-CEAvKSx9.js";
|
|
15
15
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-CulJ9J5l.js";
|
|
16
16
|
import { n as isDangerousHostEnvVarName } from "./host-env-security-CJMD0__Z.js";
|
|
17
17
|
import { t as VERSION } from "./version-CGDNfh5C.js";
|
|
18
18
|
import { E as triggerInternalHook, S as matchPluginCommand, _ as normalizePluginHttpPath, b as getPluginCommandSpecs, c as normalizeChannelId$1, d as getActivePluginRegistryKey, g as createPluginRegistry, m as setActivePluginRegistry, n as CHAT_CHANNEL_ORDER, p as requireActivePluginRegistry, s as normalizeAnyChannelId, u as getActivePluginRegistry, v as clearPluginCommands, w as createInternalHookEvent, x as listPluginCommands, y as executePluginCommand } from "./registry-7fg1BnMw.js";
|
|
19
|
-
import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverOpenClawPlugins } from "./manifest-registry-
|
|
20
|
-
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-
|
|
19
|
+
import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverOpenClawPlugins } from "./manifest-registry-Kbw8YPsZ.js";
|
|
20
|
+
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-DXBor-4C.js";
|
|
21
21
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-kzSMVKJz.js";
|
|
22
22
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-KDiSpWTU.js";
|
|
23
|
-
import { i as buildModelAliasLines, n as resolveModel } from "./model-
|
|
24
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
25
|
-
import { a as resolveSkillsPromptForRun, d as resolveSandboxInputPath, h as applySkillEnvOverridesFromSnapshot, i as loadWorkspaceSkillEntries, l as assertMediaNotDataUrl, m as applySkillEnvOverrides, p as resolveSandboxedMediaSource, r as buildWorkspaceSkillSnapshot, u as assertSandboxPath } from "./skills-
|
|
26
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
23
|
+
import { i as buildModelAliasLines, n as resolveModel } from "./model-D49_t4Rw.js";
|
|
24
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-B7QZQW84.js";
|
|
25
|
+
import { a as resolveSkillsPromptForRun, d as resolveSandboxInputPath, h as applySkillEnvOverridesFromSnapshot, i as loadWorkspaceSkillEntries, l as assertMediaNotDataUrl, m as applySkillEnvOverrides, p as resolveSandboxedMediaSource, r as buildWorkspaceSkillSnapshot, u as assertSandboxPath } from "./skills-CqO2kuTQ.js";
|
|
26
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-CwNBr-6E.js";
|
|
27
27
|
import { a as isInternalMessageChannel, c as listDeliverableMessageChannels, d as resolveMessageChannel, h as GATEWAY_CLIENT_NAMES, i as isGatewayMessageChannel, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, o as isMarkdownCapableMessageChannel, p as GATEWAY_CLIENT_IDS, t as INTERNAL_MESSAGE_CHANNEL, u as resolveGatewayMessageChannel } from "./message-channel-BiM2wKMK.js";
|
|
28
|
-
import { C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveSessionResetPolicy, H as resolveSessionKey, J as DEFAULT_RESET_TRIGGERS, K as resolveSessionResetType, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as evaluateSessionFreshness, V as resolveSessionLockMaxHoldFromTimeout, W as resolveChannelResetConfig, X as resolveFreshSessionTotalTokens, Y as mergeSessionEntry, Z as setSessionRuntimeModel, _ as isCacheEnabled, a as resolveAndPersistSessionFile, b as deliveryContextKey, c as recordSessionMetaFromInbound, ct as resolveGroupSessionKey, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, n as parseSessionThreadInfo, o as loadSessionStore, q as resolveThreadFlag, r as appendAssistantMessageToSessionTranscript, rt as deriveSessionMetaPatch, s as readSessionUpdatedAt, t as extractDeliveryInfo, tt as resolveMainSessionKey, u as updateLastRoute, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession, z as acquireSessionWriteLock } from "./sessions-
|
|
28
|
+
import { C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveSessionResetPolicy, H as resolveSessionKey, J as DEFAULT_RESET_TRIGGERS, K as resolveSessionResetType, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as evaluateSessionFreshness, V as resolveSessionLockMaxHoldFromTimeout, W as resolveChannelResetConfig, X as resolveFreshSessionTotalTokens, Y as mergeSessionEntry, Z as setSessionRuntimeModel, _ as isCacheEnabled, a as resolveAndPersistSessionFile, b as deliveryContextKey, c as recordSessionMetaFromInbound, ct as resolveGroupSessionKey, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, n as parseSessionThreadInfo, o as loadSessionStore, q as resolveThreadFlag, r as appendAssistantMessageToSessionTranscript, rt as deriveSessionMetaPatch, s as readSessionUpdatedAt, t as extractDeliveryInfo, tt as resolveMainSessionKey, u as updateLastRoute, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession, z as acquireSessionWriteLock } from "./sessions-ChAmoyIS.js";
|
|
29
29
|
import { t as normalizeChatType } from "./chat-type-CfYBRycO.js";
|
|
30
30
|
import { n as resolveConversationLabel } from "./conversation-label-mOUC6IlY.js";
|
|
31
31
|
import { t as resolveAccountEntry } from "./account-lookup-9wuXWwa_.js";
|
|
32
|
-
import { C as resolveDiscordAccount, _ as isWhatsAppGroupJid, a as createTelegramActionGate, g as resolveSlackBotToken, h as resolveSlackAppToken, l as resolveTelegramAccount, m as resolveSlackReplyToMode, n as listChannelPlugins, o as listEnabledTelegramAccounts, p as resolveSlackAccount, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeWhatsAppTarget, w as normalizeDiscordToken, x as listEnabledDiscordAccounts, y as createDiscordActionGate } from "./plugins-
|
|
33
|
-
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-
|
|
34
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
35
|
-
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
36
|
-
import { t as buildChannelAccountBindings } from "./bindings-
|
|
37
|
-
import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-
|
|
38
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-
|
|
32
|
+
import { C as resolveDiscordAccount, _ as isWhatsAppGroupJid, a as createTelegramActionGate, g as resolveSlackBotToken, h as resolveSlackAppToken, l as resolveTelegramAccount, m as resolveSlackReplyToMode, n as listChannelPlugins, o as listEnabledTelegramAccounts, p as resolveSlackAccount, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeWhatsAppTarget, w as normalizeDiscordToken, x as listEnabledDiscordAccounts, y as createDiscordActionGate } from "./plugins-BYHJoTB8.js";
|
|
33
|
+
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-ESSExMvC.js";
|
|
34
|
+
import { r as resolveIMessageAccount } from "./accounts-Dr4JgFGK.js";
|
|
35
|
+
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-C0g5--0e.js";
|
|
36
|
+
import { t as buildChannelAccountBindings } from "./bindings-C2tByF8e.js";
|
|
37
|
+
import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-BaweV9LV.js";
|
|
38
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-aCOVuBQ6.js";
|
|
39
39
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, t as resolveDefaultSessionStorePath } from "./paths-CFzDnbY4.js";
|
|
40
40
|
import { i as normalizeInputProvenance, n as applyInputProvenanceToUserMessage, r as hasInterSessionUserProvenance } from "./input-provenance-BDYpbBeC.js";
|
|
41
|
-
import { r as writeJsonAtomic } from "./json-files-
|
|
41
|
+
import { r as writeJsonAtomic } from "./json-files-DrZ4qfxw.js";
|
|
42
42
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-GAEkuGlu.js";
|
|
43
|
-
import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-
|
|
44
|
-
import { a as randomIdempotencyKey, d as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-
|
|
45
|
-
import { r as isLoopbackHost } from "./net-
|
|
43
|
+
import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-D3Y8sx9i.js";
|
|
44
|
+
import { a as randomIdempotencyKey, d as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-BolSRDlL.js";
|
|
45
|
+
import { r as isLoopbackHost } from "./net-B6xk1xkz.js";
|
|
46
46
|
import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-DfK6Oke5.js";
|
|
47
47
|
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-Cfwlih4q.js";
|
|
48
|
-
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-
|
|
48
|
+
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-DbFn1lEx.js";
|
|
49
49
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-C6AVByhV.js";
|
|
50
|
-
import { A as initializeGlobalHookRunner, C as toInternalMessagePreprocessedContext, D as toPluginMessageReceivedEvent, E as toPluginMessageContext, O as fireAndForgetHook, S as deriveInboundMessageHookContext, T as toInternalMessageTranscribedContext, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, w as toInternalMessageReceivedContext, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-
|
|
51
|
-
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-
|
|
50
|
+
import { A as initializeGlobalHookRunner, C as toInternalMessagePreprocessedContext, D as toPluginMessageReceivedEvent, E as toPluginMessageContext, O as fireAndForgetHook, S as deriveInboundMessageHookContext, T as toInternalMessageTranscribedContext, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, w as toInternalMessageReceivedContext, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-DRKtTsvj.js";
|
|
51
|
+
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-D2YBqJR0.js";
|
|
52
52
|
import { n as getDiagnosticSessionState } from "./diagnostic-session-state-B5Z0I32_.js";
|
|
53
|
-
import { A as buildTypingThreadParams, B as resolveTelegramReplyId, C as buildGroupLabel, D as buildTelegramGroupPeerId, E as buildTelegramGroupFrom, F as normalizeForwardedContext, G as normalizeDmAllowFromWithStore$1, H as resolveTelegramThreadSpec, I as resolveTelegramDirectPeerId, J as toLocationContext, K as resolveSenderAllowMatch$1, L as resolveTelegramForumThreadId, M as expandTextLinks, N as extractTelegramLocation, O as buildTelegramParentPeer, P as hasBotMention, R as resolveTelegramGroupAllowFromContext, T as buildSenderName, U as isSenderAllowed$1, V as resolveTelegramStreamMode, W as normalizeAllowFrom$2, X as parseTelegramTarget, Y as isVoiceCompatibleAudio, Z as resolveTelegramTargetChatType, _ as resolveTelegramFetch, a as reactMessageTelegram, b as loadCronStore, c as sendStickerTelegram, d as wasSentByBot, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as describeReplyTarget, k as buildTelegramThreadParams, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as formatLocationText, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildSenderLabel, x as resolveCronStorePath, y as withTelegramApiErrorLogging, z as resolveTelegramMediaPlaceholder } from "./send-
|
|
54
|
-
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
55
|
-
import { A as isRawApiErrorPayload, B as sanitizeGoogleTurnOrdering, C as isCloudCodeAssistFormatError, D as isFailoverErrorMessage, E as isFailoverAssistantError, F as sanitizeUserFacingText, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as isTransientHttpError, N as parseImageDimensionError, O as isLikelyContextOverflowError, P as parseImageSizeError, R as resolveBootstrapMaxChars, S as isBillingAssistantError, T as isContextOverflowError, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as isTimeoutErrorMessage, k as isRateLimitAssistantError, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isCompactionFailureError, x as isAuthPermanentErrorMessage, y as getApiErrorPayloadFingerprint, z as resolveBootstrapTotalMaxChars } from "./pi-embedded-helpers-
|
|
56
|
-
import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-
|
|
57
|
-
import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-
|
|
58
|
-
import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-
|
|
59
|
-
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-
|
|
53
|
+
import { A as buildTypingThreadParams, B as resolveTelegramReplyId, C as buildGroupLabel, D as buildTelegramGroupPeerId, E as buildTelegramGroupFrom, F as normalizeForwardedContext, G as normalizeDmAllowFromWithStore$1, H as resolveTelegramThreadSpec, I as resolveTelegramDirectPeerId, J as toLocationContext, K as resolveSenderAllowMatch$1, L as resolveTelegramForumThreadId, M as expandTextLinks, N as extractTelegramLocation, O as buildTelegramParentPeer, P as hasBotMention, R as resolveTelegramGroupAllowFromContext, T as buildSenderName, U as isSenderAllowed$1, V as resolveTelegramStreamMode, W as normalizeAllowFrom$2, X as parseTelegramTarget, Y as isVoiceCompatibleAudio, Z as resolveTelegramTargetChatType, _ as resolveTelegramFetch, a as reactMessageTelegram, b as loadCronStore, c as sendStickerTelegram, d as wasSentByBot, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as describeReplyTarget, k as buildTelegramThreadParams, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as formatLocationText, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildSenderLabel, x as resolveCronStorePath, y as withTelegramApiErrorLogging, z as resolveTelegramMediaPlaceholder } from "./send-CApiXnSH.js";
|
|
54
|
+
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-Di37o6bN.js";
|
|
55
|
+
import { A as isRawApiErrorPayload, B as sanitizeGoogleTurnOrdering, C as isCloudCodeAssistFormatError, D as isFailoverErrorMessage, E as isFailoverAssistantError, F as sanitizeUserFacingText, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as isTransientHttpError, N as parseImageDimensionError, O as isLikelyContextOverflowError, P as parseImageSizeError, R as resolveBootstrapMaxChars, S as isBillingAssistantError, T as isContextOverflowError, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as isTimeoutErrorMessage, k as isRateLimitAssistantError, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isCompactionFailureError, x as isAuthPermanentErrorMessage, y as getApiErrorPayloadFingerprint, z as resolveBootstrapTotalMaxChars } from "./pi-embedded-helpers-BYOv7Q7E.js";
|
|
56
|
+
import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-FcGYiz2w.js";
|
|
57
|
+
import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-DNZHZwLH.js";
|
|
58
|
+
import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-CEq3QrPf.js";
|
|
59
|
+
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-C2VtkO4T.js";
|
|
60
60
|
import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-C54hrUru.js";
|
|
61
61
|
import { i as formatUncaughtError, r as formatErrorMessage, s as readErrorName } from "./errors-vO-8U3CP.js";
|
|
62
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
63
|
-
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-
|
|
64
|
-
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
65
|
-
import { i as resolveLsofCommandSync } from "./ports-
|
|
66
|
-
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-
|
|
62
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-Bbp_1S9D.js";
|
|
63
|
+
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-B3cJLAXi.js";
|
|
64
|
+
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-H4Sy0kJE.js";
|
|
65
|
+
import { i as resolveLsofCommandSync } from "./ports-Bjm5w0DD.js";
|
|
66
|
+
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-D1tcg9xW.js";
|
|
67
67
|
import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels, u as resolveResponseUsageMode } from "./thinking-BxCyPtl0.js";
|
|
68
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
69
|
-
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-
|
|
70
|
-
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-
|
|
71
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
72
|
-
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-
|
|
73
|
-
import { a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$1, v as resolveAttachmentKind } from "./audio-transcription-runner-
|
|
68
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-BJTF5xb7.js";
|
|
69
|
+
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-BjI4jCdB.js";
|
|
70
|
+
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-DJT0CbIu.js";
|
|
71
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-B9xOhfnS.js";
|
|
72
|
+
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-Ch8LsU9k.js";
|
|
73
|
+
import { a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$1, v as resolveAttachmentKind } from "./audio-transcription-runner-DgoTt2Qi.js";
|
|
74
74
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-COrrU_w2.js";
|
|
75
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
76
|
-
import { S as minimaxUnderstandImage, _ as stripThinkingTagsFromText, a as decodeDataUrl, b as isInsideCode, c as extractAssistantThinking, d as formatReasoningMessage, f as inferToolMetaFromArgs, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractThinkingFromTaggedStream, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as isAssistantMessage, r as coerceImageAssistantText, s as extractAssistantText$1, u as extractThinkingFromTaggedText, v as stripReasoningTagsFromText, x as extractTextFromChatContent, y as findCodeRegions } from "./image-
|
|
75
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-B3dFBAUH.js";
|
|
76
|
+
import { S as minimaxUnderstandImage, _ as stripThinkingTagsFromText, a as decodeDataUrl, b as isInsideCode, c as extractAssistantThinking, d as formatReasoningMessage, f as inferToolMetaFromArgs, g as stripMinimaxToolCallXml, h as stripDowngradedToolCallText, i as coerceImageModelConfig, l as extractThinkingFromTaggedStream, m as promoteThinkingTagsToBlocks, o as resolveProviderVisionModelFromConfig, p as isAssistantMessage, r as coerceImageAssistantText, s as extractAssistantText$1, u as extractThinkingFromTaggedText, v as stripReasoningTagsFromText, x as extractTextFromChatContent, y as findCodeRegions } from "./image-2aQoIIQl.js";
|
|
77
77
|
import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-BlfqPjyM.js";
|
|
78
78
|
import { t as makeProxyFetch } from "./proxy-fetch-GMe0fonX.js";
|
|
79
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
79
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-CQi-DNJ_.js";
|
|
80
80
|
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-Cct6991k.js";
|
|
81
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
82
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-
|
|
83
|
-
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-
|
|
84
|
-
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-
|
|
85
|
-
import { a as listChatCommands, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody } from "./commands-registry-
|
|
81
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-B1FRFNMI.js";
|
|
82
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-CPt8jJjC.js";
|
|
83
|
+
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-B_xyg1kW.js";
|
|
84
|
+
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-CvjTbnpO.js";
|
|
85
|
+
import { a as listChatCommands, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody } from "./commands-registry-CMWIA5nS.js";
|
|
86
86
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-DrgeDGXO.js";
|
|
87
87
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-BAIuE19S.js";
|
|
88
88
|
import { n as retryAsync } from "./retry-D-mebgYT.js";
|
|
89
89
|
import { n as formatTimeAgo } from "./format-relative-DdvuDKIv.js";
|
|
90
|
-
import { c as readJsonFileWithFallback, d as listPairingChannels, i as readChannelAllowFromStore, l as writeJsonFileAtomically, o as removeChannelAllowFromStoreEntry, s as upsertChannelPairingRequest, t as addChannelAllowFromStoreEntry } from "./pairing-store-
|
|
90
|
+
import { c as readJsonFileWithFallback, d as listPairingChannels, i as readChannelAllowFromStore, l as writeJsonFileAtomically, o as removeChannelAllowFromStoreEntry, s as upsertChannelPairingRequest, t as addChannelAllowFromStoreEntry } from "./pairing-store-DVasdu6J.js";
|
|
91
91
|
import { d as resolveExecApprovals, f as resolveExecApprovalsFromFile, i as maxAsk, l as recordAllowlistUse, n as addAllowlistEntry, o as minSecurity, u as requiresExecApproval } from "./exec-approvals-BdDof9Fq.js";
|
|
92
|
-
import { C as mergePathPrepend, S as findPathKey, a as canvasSnapshotTempPath, b as buildNodeShellCommand, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeCameraPayloadToFile, i as parseEnvPairs, l as parseCameraSnapPayload, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as parsePreparedSystemRunPayload, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile, w as normalizePathPrepend, x as applyPathPrepend } from "./nodes-screen-
|
|
92
|
+
import { C as mergePathPrepend, S as findPathKey, a as canvasSnapshotTempPath, b as buildNodeShellCommand, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeCameraPayloadToFile, i as parseEnvPairs, l as parseCameraSnapPayload, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as parsePreparedSystemRunPayload, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile, w as normalizePathPrepend, x as applyPathPrepend } from "./nodes-screen-DIBoM5tG.js";
|
|
93
93
|
import { t as killProcessTree$1 } from "./kill-tree-B3qqul4J.js";
|
|
94
|
-
import { t as formatExecCommand } from "./system-run-command
|
|
94
|
+
import { t as formatExecCommand } from "./system-run-command-Bnym6gCM.js";
|
|
95
95
|
import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-kOyUD0le.js";
|
|
96
96
|
import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-BUg_QUd4.js";
|
|
97
|
-
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, u as lookupContextTokens } from "./session-utils-
|
|
97
|
+
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, u as lookupContextTokens } from "./session-utils-DdRL6aoq.js";
|
|
98
98
|
import { c as hasNonzeroUsage, l as makeZeroUsageSnapshot, n as loadCostUsageSummary, o as derivePromptTokens, r as loadSessionCostSummary, s as deriveSessionTotalTokens, u as normalizeUsage } from "./session-cost-usage-BrBOYp_s.js";
|
|
99
99
|
import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-BzVVjHV2.js";
|
|
100
|
-
import { b as ensureSkillsWatcher, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, x as getSkillsSnapshotVersion } from "./skill-commands-
|
|
100
|
+
import { b as ensureSkillsWatcher, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, x as getSkillsSnapshotVersion } from "./skill-commands-BIN2pI7T.js";
|
|
101
101
|
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-CfjrVNGV.js";
|
|
102
102
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BRu0610C.js";
|
|
103
103
|
import { n as normalizePollInput } from "./polls-DXeUmcgz.js";
|
|
104
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
104
|
+
import { t as convertMarkdownTables } from "./tables-CQmtKuyg.js";
|
|
105
105
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-CVdMnAs9.js";
|
|
106
106
|
import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-Bi1uV655.js";
|
|
107
|
-
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-
|
|
108
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
109
|
-
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-
|
|
110
|
-
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-
|
|
111
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
107
|
+
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-DAkTNagG.js";
|
|
108
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-BJBnaUzA.js";
|
|
109
|
+
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-BND_guiq.js";
|
|
110
|
+
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-BCFY4Zon.js";
|
|
111
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-qkwCBMOn.js";
|
|
112
112
|
import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined$1 } from "./allow-from-Dw5EiUPa.js";
|
|
113
113
|
import { t as parseTimeoutMs } from "./parse-timeout-kGl8Fsas.js";
|
|
114
114
|
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-iQzznKb6.js";
|
|
115
|
-
import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-
|
|
115
|
+
import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-CUqhItn9.js";
|
|
116
116
|
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-CAHqhE34.js";
|
|
117
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies
|
|
118
|
-
import { r as detectBinary } from "./onboard-helpers-
|
|
119
|
-
import { t as resolvePairingIdLabel } from "./pairing-labels-
|
|
120
|
-
import { t as recordInboundSessionMetaSafe } from "./session-meta-
|
|
121
|
-
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-
|
|
122
|
-
import { r as resolveMemorySearchConfig } from "./manager-
|
|
123
|
-
import {
|
|
124
|
-
import { a as resolveContextWindowInfo, i as resolveContextWindowHardMinTokens, n as CONTEXT_WINDOW_WARN_BELOW_TOKENS, r as evaluateContextWindowGuard } from "./context-window-guard-
|
|
117
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-BTbk1yj0.js";
|
|
118
|
+
import { r as detectBinary } from "./onboard-helpers-D-l_4GyD.js";
|
|
119
|
+
import { t as resolvePairingIdLabel } from "./pairing-labels-BDzfGlP0.js";
|
|
120
|
+
import { t as recordInboundSessionMetaSafe } from "./session-meta-BmvLv08s.js";
|
|
121
|
+
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-DF4DARLw.js";
|
|
122
|
+
import { r as resolveMemorySearchConfig } from "./manager-C5ViXKTz.js";
|
|
123
|
+
import { s as BITSEEK_PROVIDER_ID } from "./constants-D1Q8yQ1_.js";
|
|
124
|
+
import { a as resolveContextWindowInfo, i as resolveContextWindowHardMinTokens, n as CONTEXT_WINDOW_WARN_BELOW_TOKENS, r as evaluateContextWindowGuard } from "./context-window-guard-BqrKjiIm.js";
|
|
125
125
|
import { createRequire } from "node:module";
|
|
126
126
|
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
127
127
|
import { fileURLToPath } from "node:url";
|
|
@@ -130,7 +130,7 @@ import os, { homedir } from "node:os";
|
|
|
130
130
|
import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
131
131
|
import JSON5 from "json5";
|
|
132
132
|
import { inspect } from "node:util";
|
|
133
|
-
import
|
|
133
|
+
import fs$1 from "node:fs/promises";
|
|
134
134
|
import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
|
|
135
135
|
import crypto, { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
136
136
|
import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
|
|
@@ -5075,7 +5075,7 @@ async function resolveAgentSessionDirs(stateDir) {
|
|
|
5075
5075
|
const agentsDir = path.join(stateDir, "agents");
|
|
5076
5076
|
let entries = [];
|
|
5077
5077
|
try {
|
|
5078
|
-
entries = await
|
|
5078
|
+
entries = await fs$1.readdir(agentsDir, { withFileTypes: true });
|
|
5079
5079
|
} catch (err) {
|
|
5080
5080
|
if (err.code === "ENOENT") return [];
|
|
5081
5081
|
throw err;
|
|
@@ -8142,7 +8142,7 @@ async function sendTranscriptEcho(params) {
|
|
|
8142
8142
|
}
|
|
8143
8143
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
8144
8144
|
try {
|
|
8145
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
8145
|
+
const { deliverOutboundPayloads } = await import("./deliver-DRKtTsvj.js").then((n) => n.n);
|
|
8146
8146
|
await deliverOutboundPayloads({
|
|
8147
8147
|
cfg,
|
|
8148
8148
|
channel: normalizedChannel,
|
|
@@ -12944,7 +12944,7 @@ async function resolveSandboxWorkdir(params) {
|
|
|
12944
12944
|
cwd: process.cwd(),
|
|
12945
12945
|
root: params.sandbox.workspaceDir
|
|
12946
12946
|
});
|
|
12947
|
-
if (!(await
|
|
12947
|
+
if (!(await fs$1.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
|
|
12948
12948
|
const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
|
|
12949
12949
|
const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
|
|
12950
12950
|
return {
|
|
@@ -14188,13 +14188,13 @@ async function validateScriptFileForShellBleed(params) {
|
|
|
14188
14188
|
cwd: params.workdir,
|
|
14189
14189
|
root: params.workdir
|
|
14190
14190
|
});
|
|
14191
|
-
stat = await
|
|
14191
|
+
stat = await fs$1.stat(absPath);
|
|
14192
14192
|
} catch {
|
|
14193
14193
|
return;
|
|
14194
14194
|
}
|
|
14195
14195
|
if (!stat.isFile()) return;
|
|
14196
14196
|
if (stat.size > 512 * 1024) return;
|
|
14197
|
-
const content = await
|
|
14197
|
+
const content = await fs$1.readFile(absPath, "utf-8");
|
|
14198
14198
|
const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
|
|
14199
14199
|
if (first) {
|
|
14200
14200
|
const idx = first.index;
|
|
@@ -23283,7 +23283,7 @@ async function routeReply(params) {
|
|
|
23283
23283
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
23284
23284
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
23285
23285
|
try {
|
|
23286
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
23286
|
+
const { deliverOutboundPayloads } = await import("./deliver-DRKtTsvj.js").then((n) => n.n);
|
|
23287
23287
|
const outboundSession = buildOutboundSessionContext({
|
|
23288
23288
|
cfg,
|
|
23289
23289
|
agentId: resolvedAgentId,
|
|
@@ -23363,7 +23363,7 @@ async function emitResetCommandHooks(params) {
|
|
|
23363
23363
|
try {
|
|
23364
23364
|
const messages = [];
|
|
23365
23365
|
if (sessionFile) {
|
|
23366
|
-
const content = await
|
|
23366
|
+
const content = await fs$1.readFile(sessionFile, "utf-8");
|
|
23367
23367
|
for (const line of content.split("\n")) {
|
|
23368
23368
|
if (!line.trim()) continue;
|
|
23369
23369
|
try {
|
|
@@ -24149,7 +24149,7 @@ async function createModelSelectionState(params) {
|
|
|
24149
24149
|
}
|
|
24150
24150
|
}
|
|
24151
24151
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
24152
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
24152
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-Ncv1fyN5.js").then((n) => n.t);
|
|
24153
24153
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
24154
24154
|
const providerKey = normalizeProviderId(provider);
|
|
24155
24155
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -27745,7 +27745,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
27745
27745
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
|
|
27746
27746
|
throw new Error("jsonlPath outside allowed roots");
|
|
27747
27747
|
}
|
|
27748
|
-
const canonical = await
|
|
27748
|
+
const canonical = await fs$1.realpath(resolved).catch(() => resolved);
|
|
27749
27749
|
if (!isInboundPathAllowed({
|
|
27750
27750
|
filePath: canonical,
|
|
27751
27751
|
roots
|
|
@@ -27753,7 +27753,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
27753
27753
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
|
|
27754
27754
|
throw new Error("jsonlPath outside allowed roots");
|
|
27755
27755
|
}
|
|
27756
|
-
return await
|
|
27756
|
+
return await fs$1.readFile(canonical, "utf8");
|
|
27757
27757
|
}
|
|
27758
27758
|
const CanvasToolSchema = Type.Object({
|
|
27759
27759
|
action: stringEnum(CANVAS_ACTIONS),
|
|
@@ -28568,27 +28568,27 @@ function resolveRestartSentinelPath(env = process.env) {
|
|
|
28568
28568
|
}
|
|
28569
28569
|
async function writeRestartSentinel(payload, env = process.env) {
|
|
28570
28570
|
const filePath = resolveRestartSentinelPath(env);
|
|
28571
|
-
await
|
|
28571
|
+
await fs$1.mkdir(path.dirname(filePath), { recursive: true });
|
|
28572
28572
|
const data = {
|
|
28573
28573
|
version: 1,
|
|
28574
28574
|
payload
|
|
28575
28575
|
};
|
|
28576
|
-
await
|
|
28576
|
+
await fs$1.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
|
|
28577
28577
|
return filePath;
|
|
28578
28578
|
}
|
|
28579
28579
|
async function readRestartSentinel(env = process.env) {
|
|
28580
28580
|
const filePath = resolveRestartSentinelPath(env);
|
|
28581
28581
|
try {
|
|
28582
|
-
const raw = await
|
|
28582
|
+
const raw = await fs$1.readFile(filePath, "utf-8");
|
|
28583
28583
|
let parsed;
|
|
28584
28584
|
try {
|
|
28585
28585
|
parsed = JSON.parse(raw);
|
|
28586
28586
|
} catch {
|
|
28587
|
-
await
|
|
28587
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
28588
28588
|
return null;
|
|
28589
28589
|
}
|
|
28590
28590
|
if (!parsed || parsed.version !== 1 || !parsed.payload) {
|
|
28591
|
-
await
|
|
28591
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
28592
28592
|
return null;
|
|
28593
28593
|
}
|
|
28594
28594
|
return parsed;
|
|
@@ -28600,7 +28600,7 @@ async function consumeRestartSentinel(env = process.env) {
|
|
|
28600
28600
|
const filePath = resolveRestartSentinelPath(env);
|
|
28601
28601
|
const parsed = await readRestartSentinel(env);
|
|
28602
28602
|
if (!parsed) return null;
|
|
28603
|
-
await
|
|
28603
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
28604
28604
|
return parsed;
|
|
28605
28605
|
}
|
|
28606
28606
|
function formatRestartSentinelMessage(payload) {
|
|
@@ -38791,18 +38791,18 @@ function appendImagePathsToPrompt(prompt, paths) {
|
|
|
38791
38791
|
return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
|
|
38792
38792
|
}
|
|
38793
38793
|
async function writeCliImages(images) {
|
|
38794
|
-
const tempDir = await
|
|
38794
|
+
const tempDir = await fs$1.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-images-"));
|
|
38795
38795
|
const paths = [];
|
|
38796
38796
|
for (let i = 0; i < images.length; i += 1) {
|
|
38797
38797
|
const image = images[i];
|
|
38798
38798
|
const ext = resolveImageExtension(image.mimeType);
|
|
38799
38799
|
const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
|
|
38800
38800
|
const buffer = Buffer.from(image.data, "base64");
|
|
38801
|
-
await
|
|
38801
|
+
await fs$1.writeFile(filePath, buffer, { mode: 384 });
|
|
38802
38802
|
paths.push(filePath);
|
|
38803
38803
|
}
|
|
38804
38804
|
const cleanup = async () => {
|
|
38805
|
-
await
|
|
38805
|
+
await fs$1.rm(tempDir, {
|
|
38806
38806
|
recursive: true,
|
|
38807
38807
|
force: true
|
|
38808
38808
|
});
|
|
@@ -42705,7 +42705,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
42705
42705
|
return;
|
|
42706
42706
|
}
|
|
42707
42707
|
try {
|
|
42708
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
42708
|
+
const { deliverOutboundPayloads } = await import("./deliver-DRKtTsvj.js").then((n) => n.n);
|
|
42709
42709
|
const outboundSession = buildOutboundSessionContext({
|
|
42710
42710
|
cfg: params.cfg,
|
|
42711
42711
|
sessionKey: params.sessionKey
|
|
@@ -43212,7 +43212,7 @@ async function stageSandboxMedia(params) {
|
|
|
43212
43212
|
const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(CONFIG_DIR, "media", "remote-cache", sessionKey) : null;
|
|
43213
43213
|
const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
|
|
43214
43214
|
if (!effectiveWorkspaceDir) return;
|
|
43215
|
-
await
|
|
43215
|
+
await fs$1.mkdir(effectiveWorkspaceDir, { recursive: true });
|
|
43216
43216
|
const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
|
|
43217
43217
|
cfg,
|
|
43218
43218
|
accountId: ctx.AccountId
|
|
@@ -43271,8 +43271,8 @@ async function stageLocalFileIntoRoot(params) {
|
|
|
43271
43271
|
}
|
|
43272
43272
|
async function stageRemoteFileIntoRoot(params) {
|
|
43273
43273
|
const tmpRoot = resolvePreferredOpenClawTmpDir();
|
|
43274
|
-
await
|
|
43275
|
-
const tmpDir = await
|
|
43274
|
+
await fs$1.mkdir(tmpRoot, { recursive: true });
|
|
43275
|
+
const tmpDir = await fs$1.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
|
|
43276
43276
|
const tmpPath = path.join(tmpDir, "download");
|
|
43277
43277
|
try {
|
|
43278
43278
|
await scpFile(params.remoteHost, params.remotePath, tmpPath);
|
|
@@ -43283,7 +43283,7 @@ async function stageRemoteFileIntoRoot(params) {
|
|
|
43283
43283
|
maxBytes: params.maxBytes
|
|
43284
43284
|
});
|
|
43285
43285
|
} finally {
|
|
43286
|
-
await
|
|
43286
|
+
await fs$1.rm(tmpDir, {
|
|
43287
43287
|
recursive: true,
|
|
43288
43288
|
force: true
|
|
43289
43289
|
}).catch(() => {});
|
|
@@ -47629,8 +47629,8 @@ async function describeStickerImage(params) {
|
|
|
47629
47629
|
const { provider, model } = resolved;
|
|
47630
47630
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
47631
47631
|
try {
|
|
47632
|
-
const buffer = await
|
|
47633
|
-
const { describeImageWithModel } = await import("./image-
|
|
47632
|
+
const buffer = await fs$1.readFile(imagePath);
|
|
47633
|
+
const { describeImageWithModel } = await import("./image-2aQoIIQl.js").then((n) => n.n);
|
|
47634
47634
|
return (await describeImageWithModel({
|
|
47635
47635
|
buffer,
|
|
47636
47636
|
fileName: "sticker.webp",
|
|
@@ -49219,7 +49219,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
49219
49219
|
const needsPreflightTranscription = !params.isDirectMessage && params.shouldRequireMention && hasAudioAttachment && !hasTypedText && params.mentionRegexes.length > 0;
|
|
49220
49220
|
let transcript;
|
|
49221
49221
|
if (needsPreflightTranscription) try {
|
|
49222
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
49222
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-uJePeeJ2.js");
|
|
49223
49223
|
const audioUrls = audioAttachments.map((att) => att.url).filter((url) => typeof url === "string" && url.length > 0);
|
|
49224
49224
|
if (audioUrls.length > 0) transcript = await transcribeFirstAudio({
|
|
49225
49225
|
ctx: {
|
|
@@ -53795,27 +53795,27 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
53795
53795
|
function createDefaultDeps() {
|
|
53796
53796
|
return {
|
|
53797
53797
|
sendMessageWhatsApp: async (...args) => {
|
|
53798
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
53798
|
+
const { sendMessageWhatsApp } = await import("./web-CQqnJkMB.js");
|
|
53799
53799
|
return await sendMessageWhatsApp(...args);
|
|
53800
53800
|
},
|
|
53801
53801
|
sendMessageTelegram: async (...args) => {
|
|
53802
|
-
const { sendMessageTelegram } = await import("./send-
|
|
53802
|
+
const { sendMessageTelegram } = await import("./send-CApiXnSH.js").then((n) => n.l);
|
|
53803
53803
|
return await sendMessageTelegram(...args);
|
|
53804
53804
|
},
|
|
53805
53805
|
sendMessageDiscord: async (...args) => {
|
|
53806
|
-
const { sendMessageDiscord } = await import("./send-
|
|
53806
|
+
const { sendMessageDiscord } = await import("./send-aCOVuBQ6.js").then((n) => n.t);
|
|
53807
53807
|
return await sendMessageDiscord(...args);
|
|
53808
53808
|
},
|
|
53809
53809
|
sendMessageSlack: async (...args) => {
|
|
53810
|
-
const { sendMessageSlack } = await import("./send-
|
|
53810
|
+
const { sendMessageSlack } = await import("./send-BaweV9LV.js").then((n) => n.n);
|
|
53811
53811
|
return await sendMessageSlack(...args);
|
|
53812
53812
|
},
|
|
53813
53813
|
sendMessageSignal: async (...args) => {
|
|
53814
|
-
const { sendMessageSignal } = await import("./send-
|
|
53814
|
+
const { sendMessageSignal } = await import("./send-BND_guiq.js").then((n) => n.i);
|
|
53815
53815
|
return await sendMessageSignal(...args);
|
|
53816
53816
|
},
|
|
53817
53817
|
sendMessageIMessage: async (...args) => {
|
|
53818
|
-
const { sendMessageIMessage } = await import("./send-
|
|
53818
|
+
const { sendMessageIMessage } = await import("./send-BCFY4Zon.js").then((n) => n.n);
|
|
53819
53819
|
return await sendMessageIMessage(...args);
|
|
53820
53820
|
}
|
|
53821
53821
|
};
|
|
@@ -54956,10 +54956,10 @@ function estimateDurationSeconds(pcm) {
|
|
|
54956
54956
|
return pcm.length / (bytesPerSample * SAMPLE_RATE);
|
|
54957
54957
|
}
|
|
54958
54958
|
async function writeWavFile(pcm) {
|
|
54959
|
-
const tempDir = await
|
|
54959
|
+
const tempDir = await fs$1.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "discord-voice-"));
|
|
54960
54960
|
const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
|
|
54961
54961
|
const wav = buildWavBuffer(pcm);
|
|
54962
|
-
await
|
|
54962
|
+
await fs$1.writeFile(filePath, wav);
|
|
54963
54963
|
scheduleTempCleanup(tempDir);
|
|
54964
54964
|
return {
|
|
54965
54965
|
path: filePath,
|
|
@@ -54968,7 +54968,7 @@ async function writeWavFile(pcm) {
|
|
|
54968
54968
|
}
|
|
54969
54969
|
function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
|
|
54970
54970
|
setTimeout(() => {
|
|
54971
|
-
|
|
54971
|
+
fs$1.rm(tempDir, {
|
|
54972
54972
|
recursive: true,
|
|
54973
54973
|
force: true
|
|
54974
54974
|
}).catch((err) => {
|
|
@@ -59265,7 +59265,7 @@ function normalizeAllowList$1(list) {
|
|
|
59265
59265
|
async function detectRemoteHostFromCliPath(cliPath) {
|
|
59266
59266
|
try {
|
|
59267
59267
|
const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
|
|
59268
|
-
const content = await
|
|
59268
|
+
const content = await fs$1.readFile(expanded, "utf8");
|
|
59269
59269
|
const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
|
|
59270
59270
|
if (userHostMatch) return userHostMatch[1];
|
|
59271
59271
|
return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
|
|
@@ -65887,7 +65887,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
65887
65887
|
}
|
|
65888
65888
|
let commandsRegistry;
|
|
65889
65889
|
async function getCommandsRegistry() {
|
|
65890
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
65890
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-CMWIA5nS.js").then((n) => n.n);
|
|
65891
65891
|
return commandsRegistry;
|
|
65892
65892
|
}
|
|
65893
65893
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -66217,14 +66217,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
66217
66217
|
const channelName = channelInfo?.name;
|
|
66218
66218
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
66219
66219
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
66220
|
-
import("./resolve-route-
|
|
66220
|
+
import("./resolve-route-qkwCBMOn.js").then((n) => n.r),
|
|
66221
66221
|
import("./inbound-context-DrgeDGXO.js").then((n) => n.n),
|
|
66222
66222
|
Promise.resolve().then(() => provider_dispatcher_exports)
|
|
66223
66223
|
]);
|
|
66224
66224
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
|
|
66225
66225
|
import("./conversation-label-mOUC6IlY.js").then((n) => n.t),
|
|
66226
|
-
import("./reply-prefix-
|
|
66227
|
-
import("./session-meta-
|
|
66226
|
+
import("./reply-prefix-CQi-DNJ_.js").then((n) => n.n),
|
|
66227
|
+
import("./session-meta-BmvLv08s.js").then((n) => n.n)
|
|
66228
66228
|
]);
|
|
66229
66229
|
const route = resolveAgentRoute({
|
|
66230
66230
|
cfg,
|
|
@@ -66289,9 +66289,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
66289
66289
|
});
|
|
66290
66290
|
const deliverSlashPayloads = async (replies) => {
|
|
66291
66291
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
66292
|
-
import("./replies
|
|
66292
|
+
import("./replies-BTbk1yj0.js").then((n) => n.r),
|
|
66293
66293
|
import("./chunk-Cct6991k.js").then((n) => n.s),
|
|
66294
|
-
import("./markdown-tables-
|
|
66294
|
+
import("./markdown-tables-B1FRFNMI.js").then((n) => n.t)
|
|
66295
66295
|
]);
|
|
66296
66296
|
await deliverSlackSlashReplies({
|
|
66297
66297
|
replies,
|
|
@@ -66344,7 +66344,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
66344
66344
|
let nativeCommands = [];
|
|
66345
66345
|
if (nativeEnabled) {
|
|
66346
66346
|
reg = await getCommandsRegistry();
|
|
66347
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
66347
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-BIN2pI7T.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
66348
66348
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
66349
66349
|
skillCommands,
|
|
66350
66350
|
provider: "slack"
|
|
@@ -69253,7 +69253,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
69253
69253
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
69254
69254
|
let preflightTranscript;
|
|
69255
69255
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
69256
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
69256
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-uJePeeJ2.js");
|
|
69257
69257
|
preflightTranscript = await transcribeFirstAudio({
|
|
69258
69258
|
ctx: {
|
|
69259
69259
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -70615,7 +70615,7 @@ function resolveCommandHashPath(accountId, botIdentity) {
|
|
|
70615
70615
|
}
|
|
70616
70616
|
async function readCachedCommandHash(accountId, botIdentity) {
|
|
70617
70617
|
try {
|
|
70618
|
-
return (await
|
|
70618
|
+
return (await fs$1.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
|
|
70619
70619
|
} catch {
|
|
70620
70620
|
return null;
|
|
70621
70621
|
}
|
|
@@ -70623,8 +70623,8 @@ async function readCachedCommandHash(accountId, botIdentity) {
|
|
|
70623
70623
|
async function writeCachedCommandHash(accountId, botIdentity, hash) {
|
|
70624
70624
|
const filePath = resolveCommandHashPath(accountId, botIdentity);
|
|
70625
70625
|
try {
|
|
70626
|
-
await
|
|
70627
|
-
await
|
|
70626
|
+
await fs$1.mkdir(path.dirname(filePath), { recursive: true });
|
|
70627
|
+
await fs$1.writeFile(filePath, hash, "utf-8");
|
|
70628
70628
|
} catch {}
|
|
70629
70629
|
}
|
|
70630
70630
|
function syncTelegramMenuCommands(params) {
|
|
@@ -71462,7 +71462,7 @@ function safeParseState(raw) {
|
|
|
71462
71462
|
async function readTelegramUpdateOffset(params) {
|
|
71463
71463
|
const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
|
|
71464
71464
|
try {
|
|
71465
|
-
const parsed = safeParseState(await
|
|
71465
|
+
const parsed = safeParseState(await fs$1.readFile(filePath, "utf-8"));
|
|
71466
71466
|
const expectedBotId = extractBotIdFromToken(params.botToken);
|
|
71467
71467
|
if (expectedBotId && parsed?.botId && parsed.botId !== expectedBotId) return null;
|
|
71468
71468
|
if (expectedBotId && parsed?.botId === null) return null;
|
|
@@ -71486,7 +71486,7 @@ async function writeTelegramUpdateOffset(params) {
|
|
|
71486
71486
|
async function deleteTelegramUpdateOffset(params) {
|
|
71487
71487
|
const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
|
|
71488
71488
|
try {
|
|
71489
|
-
await
|
|
71489
|
+
await fs$1.unlink(filePath);
|
|
71490
71490
|
} catch (err) {
|
|
71491
71491
|
if (err.code === "ENOENT") return;
|
|
71492
71492
|
throw err;
|
|
@@ -71960,7 +71960,7 @@ function createWhatsAppLoginTool() {
|
|
|
71960
71960
|
force: Type.Optional(Type.Boolean())
|
|
71961
71961
|
}),
|
|
71962
71962
|
execute: async (_toolCallId, args) => {
|
|
71963
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
71963
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-BaGgKfeX.js");
|
|
71964
71964
|
if ((args?.action ?? "start") === "wait") {
|
|
71965
71965
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
71966
71966
|
return {
|
|
@@ -72035,23 +72035,23 @@ let webLoginQrPromise = null;
|
|
|
72035
72035
|
let webChannelPromise = null;
|
|
72036
72036
|
let whatsappActionsPromise = null;
|
|
72037
72037
|
function loadWebOutbound() {
|
|
72038
|
-
webOutboundPromise ??= import("./outbound-
|
|
72038
|
+
webOutboundPromise ??= import("./outbound-DP_Pdp7e.js").then((n) => n.t);
|
|
72039
72039
|
return webOutboundPromise;
|
|
72040
72040
|
}
|
|
72041
72041
|
function loadWebLogin() {
|
|
72042
|
-
webLoginPromise ??= import("./login-
|
|
72042
|
+
webLoginPromise ??= import("./login-CUi8T8WR.js").then((n) => n.n);
|
|
72043
72043
|
return webLoginPromise;
|
|
72044
72044
|
}
|
|
72045
72045
|
function loadWebLoginQr() {
|
|
72046
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
72046
|
+
webLoginQrPromise ??= import("./login-qr-BaGgKfeX.js");
|
|
72047
72047
|
return webLoginQrPromise;
|
|
72048
72048
|
}
|
|
72049
72049
|
function loadWebChannel() {
|
|
72050
|
-
webChannelPromise ??= import("./web-
|
|
72050
|
+
webChannelPromise ??= import("./web-CQqnJkMB.js");
|
|
72051
72051
|
return webChannelPromise;
|
|
72052
72052
|
}
|
|
72053
72053
|
function loadWhatsAppActions() {
|
|
72054
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
72054
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-DdiWBZ9X.js");
|
|
72055
72055
|
return whatsappActionsPromise;
|
|
72056
72056
|
}
|
|
72057
72057
|
function createRuntimeWhatsApp() {
|
|
@@ -73094,7 +73094,7 @@ function resolvePluginTools(params) {
|
|
|
73094
73094
|
//#endregion
|
|
73095
73095
|
//#region src/agents/apply-patch-update.ts
|
|
73096
73096
|
async function defaultReadFile(filePath) {
|
|
73097
|
-
return
|
|
73097
|
+
return fs$1.readFile(filePath, "utf8");
|
|
73098
73098
|
}
|
|
73099
73099
|
async function applyUpdateHunk(filePath, chunks, options) {
|
|
73100
73100
|
const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
|
|
@@ -73415,7 +73415,7 @@ function resolvePatchFileOps(options) {
|
|
|
73415
73415
|
const workspaceOnly = options.workspaceOnly !== false;
|
|
73416
73416
|
return {
|
|
73417
73417
|
readFile: async (filePath) => {
|
|
73418
|
-
if (!workspaceOnly) return await
|
|
73418
|
+
if (!workspaceOnly) return await fs$1.readFile(filePath, "utf8");
|
|
73419
73419
|
const opened = await openBoundaryFile({
|
|
73420
73420
|
absolutePath: filePath,
|
|
73421
73421
|
rootPath: options.cwd,
|
|
@@ -73430,7 +73430,7 @@ function resolvePatchFileOps(options) {
|
|
|
73430
73430
|
},
|
|
73431
73431
|
writeFile: async (filePath, content) => {
|
|
73432
73432
|
if (!workspaceOnly) {
|
|
73433
|
-
await
|
|
73433
|
+
await fs$1.writeFile(filePath, content, "utf8");
|
|
73434
73434
|
return;
|
|
73435
73435
|
}
|
|
73436
73436
|
const relative = toRelativeSandboxPath(options.cwd, filePath);
|
|
@@ -73441,8 +73441,8 @@ function resolvePatchFileOps(options) {
|
|
|
73441
73441
|
encoding: "utf8"
|
|
73442
73442
|
});
|
|
73443
73443
|
},
|
|
73444
|
-
remove: (filePath) =>
|
|
73445
|
-
mkdirp: (dir) =>
|
|
73444
|
+
remove: (filePath) => fs$1.rm(filePath),
|
|
73445
|
+
mkdirp: (dir) => fs$1.mkdir(dir, { recursive: true }).then(() => {})
|
|
73446
73446
|
};
|
|
73447
73447
|
}
|
|
73448
73448
|
async function ensureDir(filePath, ops) {
|
|
@@ -73742,7 +73742,7 @@ async function runBeforeToolCallHook(args) {
|
|
|
73742
73742
|
const params = args.params;
|
|
73743
73743
|
if (args.ctx?.sessionKey) {
|
|
73744
73744
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-CDEk5vOn.js");
|
|
73745
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
73745
|
+
const { logToolLoopAction } = await import("./diagnostic-D2YBqJR0.js").then((n) => n.n);
|
|
73746
73746
|
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-DCdq9caP.js");
|
|
73747
73747
|
const sessionState = getDiagnosticSessionState({
|
|
73748
73748
|
sessionKey: args.ctx.sessionKey,
|
|
@@ -74313,7 +74313,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
|
|
|
74313
74313
|
if (!pathParam || !newText) throw err;
|
|
74314
74314
|
try {
|
|
74315
74315
|
const absolutePath = resolveHostEditPath(root, pathParam);
|
|
74316
|
-
const content = await
|
|
74316
|
+
const content = await fs$1.readFile(absolutePath, "utf-8");
|
|
74317
74317
|
const hasNew = content.includes(newText);
|
|
74318
74318
|
const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
|
|
74319
74319
|
if (hasNew && !stillHasOld) return {
|
|
@@ -74416,14 +74416,14 @@ function createSandboxEditOperations(params) {
|
|
|
74416
74416
|
}
|
|
74417
74417
|
async function writeHostFile(absolutePath, content) {
|
|
74418
74418
|
const resolved = path.resolve(absolutePath);
|
|
74419
|
-
await
|
|
74420
|
-
await
|
|
74419
|
+
await fs$1.mkdir(path.dirname(resolved), { recursive: true });
|
|
74420
|
+
await fs$1.writeFile(resolved, content, "utf-8");
|
|
74421
74421
|
}
|
|
74422
74422
|
function createHostWriteOperations(root, options) {
|
|
74423
74423
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
74424
74424
|
mkdir: async (dir) => {
|
|
74425
74425
|
const resolved = path.resolve(dir);
|
|
74426
|
-
await
|
|
74426
|
+
await fs$1.mkdir(resolved, { recursive: true });
|
|
74427
74427
|
},
|
|
74428
74428
|
writeFile: writeHostFile
|
|
74429
74429
|
};
|
|
@@ -74436,7 +74436,7 @@ function createHostWriteOperations(root, options) {
|
|
|
74436
74436
|
cwd: root,
|
|
74437
74437
|
root
|
|
74438
74438
|
});
|
|
74439
|
-
await
|
|
74439
|
+
await fs$1.mkdir(resolved, { recursive: true });
|
|
74440
74440
|
},
|
|
74441
74441
|
writeFile: async (absolutePath, content) => {
|
|
74442
74442
|
await writeFileWithinRoot({
|
|
@@ -74452,12 +74452,12 @@ function createHostEditOperations(root, options) {
|
|
|
74452
74452
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
74453
74453
|
readFile: async (absolutePath) => {
|
|
74454
74454
|
const resolved = path.resolve(absolutePath);
|
|
74455
|
-
return await
|
|
74455
|
+
return await fs$1.readFile(resolved);
|
|
74456
74456
|
},
|
|
74457
74457
|
writeFile: writeHostFile,
|
|
74458
74458
|
access: async (absolutePath) => {
|
|
74459
74459
|
const resolved = path.resolve(absolutePath);
|
|
74460
|
-
await
|
|
74460
|
+
await fs$1.access(resolved);
|
|
74461
74461
|
}
|
|
74462
74462
|
};
|
|
74463
74463
|
return {
|
|
@@ -75295,7 +75295,7 @@ async function repairSessionFileIfNeeded(params) {
|
|
|
75295
75295
|
};
|
|
75296
75296
|
let content;
|
|
75297
75297
|
try {
|
|
75298
|
-
content = await
|
|
75298
|
+
content = await fs$1.readFile(sessionFile, "utf-8");
|
|
75299
75299
|
} catch (err) {
|
|
75300
75300
|
if (err?.code === "ENOENT") return {
|
|
75301
75301
|
repaired: false,
|
|
@@ -75343,15 +75343,15 @@ async function repairSessionFileIfNeeded(params) {
|
|
|
75343
75343
|
const backupPath = `${sessionFile}.bak-${process.pid}-${Date.now()}`;
|
|
75344
75344
|
const tmpPath = `${sessionFile}.repair-${process.pid}-${Date.now()}.tmp`;
|
|
75345
75345
|
try {
|
|
75346
|
-
const stat = await
|
|
75347
|
-
await
|
|
75348
|
-
if (stat) await
|
|
75349
|
-
await
|
|
75350
|
-
if (stat) await
|
|
75351
|
-
await
|
|
75346
|
+
const stat = await fs$1.stat(sessionFile).catch(() => null);
|
|
75347
|
+
await fs$1.writeFile(backupPath, content, "utf-8");
|
|
75348
|
+
if (stat) await fs$1.chmod(backupPath, stat.mode);
|
|
75349
|
+
await fs$1.writeFile(tmpPath, cleaned, "utf-8");
|
|
75350
|
+
if (stat) await fs$1.chmod(tmpPath, stat.mode);
|
|
75351
|
+
await fs$1.rename(tmpPath, sessionFile);
|
|
75352
75352
|
} catch (err) {
|
|
75353
75353
|
try {
|
|
75354
|
-
await
|
|
75354
|
+
await fs$1.unlink(tmpPath);
|
|
75355
75355
|
} catch (cleanupErr) {
|
|
75356
75356
|
params.warn?.(`session file repair cleanup failed: ${cleanupErr instanceof Error ? cleanupErr.message : "unknown error"} (${path.basename(tmpPath)})`);
|
|
75357
75357
|
}
|
|
@@ -76952,7 +76952,7 @@ async function prewarmSessionFile(sessionFile) {
|
|
|
76952
76952
|
if (!isSessionManagerCacheEnabled()) return;
|
|
76953
76953
|
if (isSessionManagerCached(sessionFile)) return;
|
|
76954
76954
|
try {
|
|
76955
|
-
const handle = await
|
|
76955
|
+
const handle = await fs$1.open(sessionFile, "r");
|
|
76956
76956
|
try {
|
|
76957
76957
|
const buffer = Buffer$1.alloc(4096);
|
|
76958
76958
|
await handle.read(buffer, 0, buffer.length, 0);
|
|
@@ -77308,7 +77308,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
77308
77308
|
} catch (err) {
|
|
77309
77309
|
return fail(describeUnknownError(err));
|
|
77310
77310
|
}
|
|
77311
|
-
await
|
|
77311
|
+
await fs$1.mkdir(resolvedWorkspace, { recursive: true });
|
|
77312
77312
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
77313
77313
|
const sandbox = await resolveSandboxContext({
|
|
77314
77314
|
config: params.config,
|
|
@@ -77316,7 +77316,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
77316
77316
|
workspaceDir: resolvedWorkspace
|
|
77317
77317
|
});
|
|
77318
77318
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
77319
|
-
await
|
|
77319
|
+
await fs$1.mkdir(effectiveWorkspace, { recursive: true });
|
|
77320
77320
|
await ensureSessionHeader({
|
|
77321
77321
|
sessionFile: params.sessionFile,
|
|
77322
77322
|
sessionId: params.sessionId,
|
|
@@ -78226,12 +78226,12 @@ function getQueuedFileWriter(writers, filePath) {
|
|
|
78226
78226
|
const existing = writers.get(filePath);
|
|
78227
78227
|
if (existing) return existing;
|
|
78228
78228
|
const dir = path.dirname(filePath);
|
|
78229
|
-
const ready =
|
|
78229
|
+
const ready = fs$1.mkdir(dir, { recursive: true }).catch(() => void 0);
|
|
78230
78230
|
let queue = Promise.resolve();
|
|
78231
78231
|
const writer = {
|
|
78232
78232
|
filePath,
|
|
78233
78233
|
write: (line) => {
|
|
78234
|
-
queue = queue.then(() => ready).then(() =>
|
|
78234
|
+
queue = queue.then(() => ready).then(() => fs$1.appendFile(filePath, line, "utf8")).catch(() => void 0);
|
|
78235
78235
|
}
|
|
78236
78236
|
};
|
|
78237
78237
|
writers.set(filePath, writer);
|
|
@@ -81149,7 +81149,7 @@ async function prepareSessionManagerForRun(params) {
|
|
|
81149
81149
|
return;
|
|
81150
81150
|
}
|
|
81151
81151
|
if (params.hadSessionFile && header && !hasAssistant) {
|
|
81152
|
-
await
|
|
81152
|
+
await fs$1.writeFile(params.sessionFile, "", "utf-8");
|
|
81153
81153
|
sm.fileEntries = [header];
|
|
81154
81154
|
sm.byId?.clear?.();
|
|
81155
81155
|
sm.labelsById?.clear?.();
|
|
@@ -81883,7 +81883,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
81883
81883
|
const prevCwd = process.cwd();
|
|
81884
81884
|
const runAbortController = new AbortController();
|
|
81885
81885
|
log$3.debug(`embedded run start: runId=${params.runId} sessionId=${params.sessionId} provider=${params.provider} model=${params.modelId} thinking=${params.thinkLevel} messageChannel=${params.messageChannel ?? params.messageProvider ?? "unknown"}`);
|
|
81886
|
-
await
|
|
81886
|
+
await fs$1.mkdir(resolvedWorkspace, { recursive: true });
|
|
81887
81887
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
81888
81888
|
const sandbox = await resolveSandboxContext({
|
|
81889
81889
|
config: params.config,
|
|
@@ -81891,7 +81891,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
81891
81891
|
workspaceDir: resolvedWorkspace
|
|
81892
81892
|
});
|
|
81893
81893
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
81894
|
-
await
|
|
81894
|
+
await fs$1.mkdir(effectiveWorkspace, { recursive: true });
|
|
81895
81895
|
let restoreSkillEnv;
|
|
81896
81896
|
process.chdir(effectiveWorkspace);
|
|
81897
81897
|
try {
|
|
@@ -82135,7 +82135,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
82135
82135
|
sessionFile: params.sessionFile,
|
|
82136
82136
|
warn: (message) => log$3.warn(message)
|
|
82137
82137
|
});
|
|
82138
|
-
const hadSessionFile = await
|
|
82138
|
+
const hadSessionFile = await fs$1.stat(params.sessionFile).then(() => true).catch(() => false);
|
|
82139
82139
|
const transcriptPolicy = resolveTranscriptPolicy({
|
|
82140
82140
|
modelApi: params.model?.api,
|
|
82141
82141
|
provider: params.provider,
|
|
@@ -83278,7 +83278,7 @@ async function runEmbeddedPiAgent(params) {
|
|
|
83278
83278
|
const copilotAuthRetry = authRetryPending;
|
|
83279
83279
|
authRetryPending = false;
|
|
83280
83280
|
attemptedThinking.add(thinkLevel);
|
|
83281
|
-
await
|
|
83281
|
+
await fs$1.mkdir(resolvedWorkspace, { recursive: true });
|
|
83282
83282
|
const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
|
|
83283
83283
|
const attempt = await runEmbeddedAttempt({
|
|
83284
83284
|
sessionId: params.sessionId,
|