openclaw-multi-auto 1.3.1 → 1.3.2
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-BVgYdU9W.js → accounts-BtEMxtPK.js} +1 -1
- package/dist/{accounts-L9ByEpnP.js → accounts-C9HcPI9h.js} +2 -2
- package/dist/{accounts-BU-CeDai.js → accounts-CUYZBSKh.js} +1 -1
- package/dist/{accounts-BOzyfwW4.js → accounts-C_lW3Ag9.js} +2 -2
- package/dist/{accounts-yfBeCZtS.js → accounts-Tgelvk0C.js} +17 -17
- package/dist/{accounts-DJaYqD2E.js → accounts-khXX75l1.js} +7 -7
- package/dist/{acp-cli-oWFHnS7i.js → acp-cli-CA2oCCEA.js} +8 -8
- package/dist/{active-listener-D1yqT1cw.js → active-listener-BEdprTkn.js} +2 -2
- package/dist/{agent-scope-BRElciAf.js → agent-scope-NQ9CtXYN.js} +17 -17
- package/dist/{agents-CujsWz9d.js → agents-BWVlofyv.js} +14 -14
- package/dist/{agents.config-C42STger.js → agents.config-QVfqc4C-.js} +2 -2
- package/dist/{api-key-rotation-DtsNS2Nb.js → api-key-rotation-BJpKWXy0.js} +2 -2
- package/dist/{api-key-rotation-BbuLHl0_.js → api-key-rotation-Vix80AUw.js} +1 -1
- package/dist/{audio-preflight-DpxQCpsA.js → audio-preflight-BMvgEQ5j.js} +32 -32
- package/dist/{audio-preflight-Yg1vzPE1.js → audio-preflight-DUtdCXjJ.js} +34 -34
- package/dist/{audio-transcription-runner-D1cvrZ6s.js → audio-transcription-runner-DYKvqK54.js} +23 -23
- package/dist/{audio-transcription-runner-28fcRNNi.js → audio-transcription-runner-gLFfz8fr.js} +12 -12
- package/dist/{audit-membership-runtime-DWyHWAHM.js → audit-membership-runtime-Dntemq07.js} +4 -4
- package/dist/{audit-DtlAv66L.js → audit-oC--RZy0.js} +29 -29
- package/dist/{auth-Mj21c_GN.js → auth-YB6m93-M.js} +1 -1
- package/dist/{auth-choice-CEycltU4.js → auth-choice-CsSQLEkP.js} +13 -13
- package/dist/{auth-choice-CGHVedXa.js → auth-choice-gp-h1aBd.js} +11 -11
- package/dist/{auth-choice.apply-helpers-D4YQXYfc.js → auth-choice.apply-helpers-CPpuynsT.js} +1 -1
- package/dist/{auth-profiles-CdLTlJLc.js → auth-profiles-15pq9j9V.js} +16 -16
- package/dist/{auth-token-7kzDLVhb.js → auth-token-Bwn8N6KA.js} +1 -1
- package/dist/{banner-CpzKVd4-.js → banner-hcZ0XNXv.js} +2 -2
- package/dist/{bonjour-discovery-BuS9wF_p.js → bonjour-discovery-2btw06uD.js} +1 -1
- package/dist/{browser-cli-BVtbvQ3Z.js → browser-cli-C4PdLYHy.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +51 -51
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +51 -51
- package/dist/{call-Dp9SDkqK.js → call-CZgRbVYm.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-ESLVGdUf.js → channel-account-context-BYiOuxnf.js} +5 -5
- package/dist/{channel-activity-xHOMiarp.js → channel-activity-BDnjYF7B.js} +3 -3
- package/dist/{channel-activity-LfmEkdDN.js → channel-activity-D9K6yeu8.js} +1 -1
- package/dist/{channel-options-CsYaFB_4.js → channel-options-DJkf_8wi.js} +3 -3
- package/dist/{channel-selection-DFJsYFPo.js → channel-selection-BpIsCVV5.js} +1 -1
- package/dist/{channel-web-DzRsJEE4.js → channel-web-wb1My1Yi.js} +17 -17
- package/dist/{channels-cli-CpfeOXtJ.js → channels-cli-DlQONtY9.js} +93 -93
- package/dist/{channels-status-issues-6V9ktlZD.js → channels-status-issues-Hj-GOSVm.js} +1 -1
- package/dist/{chrome-DwizpzOC.js → chrome-DxxEKrY7.js} +18 -18
- package/dist/{chrome-CyM61Cn2.js → chrome-L_icBVLq.js} +4 -4
- package/dist/{clawbot-cli-COtnakIJ.js → clawbot-cli-CyTZUVIJ.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-jnT1hYPO.js → cli-CNTrB-ni.js} +73 -73
- package/dist/{client-C-wA75vx.js → client-g0366Z73.js} +2 -2
- package/dist/{command-registry-g5tDqdAU.js → command-registry-VOmumlmD.js} +11 -11
- package/dist/{command-secret-targets-u3eWn-W3.js → command-secret-targets-CIMuIdbL.js} +4 -4
- package/dist/{commands-C8pWcFs_.js → commands-DU7At3rY.js} +1 -1
- package/dist/{commands-registry-J6nVL3BQ.js → commands-registry-B_WUa9KB.js} +3 -3
- package/dist/{commands-registry-V1zZ5pPC.js → commands-registry-D5qXbFJn.js} +4 -4
- package/dist/{completion-cli-DQsyli3B.js → completion-cli-pqdmKVTo.js} +13 -13
- package/dist/{config-cli-DUycVHoC.js → config-cli-BqznmzlM.js} +7 -7
- package/dist/{config-guard--Obk2MGi.js → config-guard-D8jiLjr7.js} +3 -3
- package/dist/{config-validation-iOxszdEd.js → config-validation-BngLiGoq.js} +3 -3
- package/dist/{configure-Al_pz_5z.js → configure-B--Umf_O.js} +17 -17
- package/dist/{control-ui-assets-DpjfNcTC.js → control-ui-assets-C9ewbI8z.js} +1 -1
- package/dist/{cron-cli-CQ5EZw_b.js → cron-cli-DCRPpI1m.js} +11 -11
- package/dist/{daemon-cli-Bb80Mzv5.js → daemon-cli-DtBzKM_d.js} +15 -15
- package/dist/{daemon-install-B09ifLcJ.js → daemon-install-ckPBUAjJ.js} +4 -4
- package/dist/{daemon-install-helpers-CYpECiEx.js → daemon-install-helpers-BWf-PrgA.js} +11 -11
- package/dist/{deliver-D4o6VIur.js → deliver-DbdywYJE.js} +21 -21
- package/dist/{deliver-CxF9h9PE.js → deliver-b93aBgie.js} +7 -7
- package/dist/deliver-runtime-BFs7iAZF.js +36 -0
- package/dist/deliver-runtime-CdWd-JQI.js +61 -0
- package/dist/deps-send-discord.runtime-BltWu9GW.js +36 -0
- package/dist/deps-send-discord.runtime-DZUccI6Z.js +26 -0
- package/dist/deps-send-imessage.runtime-CF3OpoqY.js +25 -0
- package/dist/deps-send-imessage.runtime-CdCif3t7.js +35 -0
- package/dist/deps-send-signal.runtime-Cw4-ozeO.js +24 -0
- package/dist/deps-send-signal.runtime-fHqkSmMW.js +34 -0
- package/dist/deps-send-slack.runtime-BDsDhS1P.js +22 -0
- package/dist/deps-send-slack.runtime-CkyZO7ln.js +32 -0
- package/dist/{deps-send-telegram.runtime-B6wp3kx8.js → deps-send-telegram.runtime-C--B69CN.js} +16 -16
- package/dist/deps-send-telegram.runtime-D_4xVasO.js +27 -0
- package/dist/deps-send-whatsapp.runtime-BkoMLlCM.js +119 -0
- package/dist/deps-send-whatsapp.runtime-DK8jqd14.js +60 -0
- package/dist/{devices-cli-C0dUbeL4.js → devices-cli-D6V059Dh.js} +8 -8
- package/dist/{diagnostic-BfiudAAN.js → diagnostic-BpP9UBCE.js} +1 -1
- package/dist/{diagnostic-Bn4PZjMZ.js → diagnostic-Co6Kghr-.js} +2 -2
- package/dist/{diagnostics-DCWM_8Ur.js → diagnostics---0c2_jo.js} +5 -5
- package/dist/{directory-cli-Dlws13Di.js → directory-cli-RYC34-EU.js} +7 -7
- package/dist/{dns-cli-But7QdAw.js → dns-cli-CElNoV5S.js} +5 -5
- package/dist/{dock-BbUkruOF.js → dock-nA2DVPCV.js} +4 -4
- package/dist/{docs-cli-Ck2IKAtw.js → docs-cli-Bv7ltPvi.js} +4 -4
- package/dist/{doctor-completion-Nat1HXE1.js → doctor-completion-CQIiN7rY.js} +2 -2
- package/dist/{doctor-config-flow-WCCoUXeB.js → doctor-config-flow-BOAryh5P.js} +15 -15
- package/dist/{enable-C3H8BtN4.js → enable-688HYBNS.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{errors-CCLeFWAg.js → errors-xt401nuk.js} +1 -1
- package/dist/{exec-approvals-allowlist-ySf2Yo5n.js → exec-approvals-allowlist-C0Eya3rT.js} +1 -1
- package/dist/{exec-approvals-cli-DhLLOys6.js → exec-approvals-cli-BYYerKp8.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-DnXViOlF.js → exec-safe-bin-runtime-policy-BmJmfDRo.js} +2 -2
- package/dist/{fetch-D-SiVqBm.js → fetch-BhAHVdwx.js} +3 -3
- package/dist/{fetch-BlJWzEP6.js → fetch-DuraYswo.js} +5 -5
- package/dist/{fetch-guard-CKYBfJ66.js → fetch-guard-BbBdhWz_.js} +1 -1
- package/dist/{fetch-guard-ChYBwfiy.js → fetch-guard-DWr0d00H.js} +2 -2
- package/dist/{frontmatter-CvaMP376.js → frontmatter-BkTfEZ93.js} +3 -3
- package/dist/{fs-safe-jMDpsYew.js → fs-safe-CFLs-j60.js} +24 -24
- package/dist/{fs-safe-0jAo_Whb.js → fs-safe-CTYUrIgQ.js} +4 -4
- package/dist/{gateway-cli--atF6LYo.js → gateway-cli-DOYWSRqa.js} +153 -153
- package/dist/{gateway-rpc-DYyQQ1z9.js → gateway-rpc-w6t8Eq_1.js} +1 -1
- package/dist/{github-copilot-token-D13V9YBz.js → github-copilot-token-BDioPmd6.js} +7 -7
- package/dist/{health-BDJ72U4Z.js → health-C1EstYHd.js} +11 -11
- package/dist/{hooks-cli-r0UX8B9a.js → hooks-cli-BFMve5sG.js} +81 -81
- package/dist/{hooks-status-CxBdpBry.js → hooks-status-DBnEWOEP.js} +1 -1
- package/dist/{image-CyHTO86Q.js → image-Bw71y73Q.js} +5 -5
- package/dist/{image-Bbn53mzj.js → image-eT7Y-nP5.js} +6 -6
- package/dist/{image-ops-pjs5W0CZ.js → image-ops-AJL9tN3_.js} +10 -10
- package/dist/{image-ops-CehkHxmW.js → image-ops-BuUnEOE0.js} +2 -2
- package/dist/image-runtime-6jhrqcle.js +55 -0
- package/dist/image-runtime-BcAK3n8a.js +29 -0
- package/dist/{inspect-BeU4yMp2.js → inspect-CUxeDA8c.js} +4 -4
- package/dist/{install-safe-path-BiL8OJvK.js → install-safe-path-BX58wFBl.js} +25 -25
- package/dist/{installs-BwKmG0Uy.js → installs-B-xr0Fzq.js} +9 -9
- package/dist/{ipv4-BoGwfnEw.js → ipv4-C4Yt-xid.js} +1 -1
- package/dist/{ir-DAP-B-Xw.js → ir-B83looB-.js} +8 -8
- package/dist/{ir-Da7Ahsqc.js → ir-otKVkb4a.js} +8 -8
- package/dist/{issue-format-CJ89_-9v.js → issue-format-DSksfKiV.js} +1 -1
- package/dist/{json-files-CuJjdF_0.js → json-files-rR19q30D.js} +8 -8
- package/dist/{legacy-names-TyzbVqa_.js → legacy-names-DOC03BkU.js} +1 -1
- package/dist/{lifecycle-core-BzuWBBm8.js → lifecycle-core-DVwen0ks.js} +5 -5
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-DMZQQtxK.js → logger-BfjWMCSD.js} +7 -7
- package/dist/{login-VkQ9MW3d.js → login-BcRaGQb6.js} +3 -3
- package/dist/{login-DiCctRo1.js → login-CrIwcrVI.js} +5 -5
- package/dist/{login-qr-MUbXgjtd.js → login-qr-BpPDZdl_.js} +10 -10
- package/dist/{login-qr-BVMQ-xQz.js → login-qr-C9D47WEZ.js} +6 -6
- package/dist/{logs-cli-DWHhSnWs.js → logs-cli-B3TG2lp8.js} +9 -9
- package/dist/{manager-BW_NSIMl.js → manager-1bvuGrNR.js} +13 -13
- package/dist/{manager-BUBwl6M6.js → manager-iwcRf3Xc.js} +14 -14
- package/dist/{manager-runtime-H9iQnw64.js → manager-runtime-D3KqpRT7.js} +9 -9
- package/dist/manager-runtime-FO1Sx3W8.js +18 -0
- package/dist/{manifest-registry-DVviqWVY.js → manifest-registry-CJb8odRF.js} +1 -1
- package/dist/{memory-cli-DarWCbU6.js → memory-cli-DGsJx7YM.js} +12 -12
- package/dist/{model-BLV8y_N-.js → model-B792l3Cn.js} +2 -2
- package/dist/{model-catalog-DTcBkUlX.js → model-catalog-DZ6kl2Ko.js} +3 -3
- package/dist/{model-picker-D-fTOOzb.js → model-picker-6fHys0wK.js} +4 -4
- package/dist/{model-selection-idoqPmw0.js → model-selection-Dna0Gz1k.js} +43 -43
- package/dist/{models-CmjutMmh.js → models-DerrMmwF.js} +17 -17
- package/dist/{models-cli-BZFQX22p.js → models-cli-BkTZg_4v.js} +78 -78
- package/dist/{models-config-DNcDbV_G.js → models-config-Dabs9Kdv.js} +6 -6
- package/dist/{net-D5fSREu4.js → net-BAIqYNz0.js} +2 -2
- package/dist/{node-cli-Cnq-PJTp.js → node-cli-DoEq4zeG.js} +33 -33
- package/dist/{node-command-policy-B5BMBBJP.js → node-command-policy-DRhSc90G.js} +1 -1
- package/dist/{node-service-BpYZAvpl.js → node-service-CcgtNIeT.js} +1 -1
- package/dist/{nodes-cli-CkrDOWpv.js → nodes-cli--d9RiCnK.js} +16 -16
- package/dist/{nodes-screen-DfsQohWd.js → nodes-screen-BTND5VDq.js} +7 -7
- package/dist/{npm-pack-install-E-mkrZ55.js → npm-pack-install-CGUDOSKz.js} +18 -18
- package/dist/{npm-resolution-BUUmg5ON.js → npm-resolution-CAoULCWM.js} +4 -4
- package/dist/{onboard-DINGSS9R.js → onboard-CMZRkPVc.js} +6 -6
- package/dist/{onboard-channels-Di4MjWDY.js → onboard-channels-SlJu6XWJ.js} +21 -21
- package/dist/{onboard-custom-DITBQuWQ.js → onboard-custom-EzfL89yz.js} +4 -4
- package/dist/{onboard-helpers-DO7u2ZOy.js → onboard-helpers-lGpaVp03.js} +10 -10
- package/dist/{onboard-hooks-K02_ZWDq.js → onboard-hooks-B7TMiJoY.js} +4 -4
- package/dist/{onboard-remote-5-ugiSN2.js → onboard-remote-nvWS7on7.js} +4 -4
- package/dist/{onboard-skills-CSzbC2KZ.js → onboard-skills-hz91W03u.js} +4 -4
- package/dist/{onboarding-BM4dvUK6.js → onboarding-CTPuMVQI.js} +14 -14
- package/dist/{onboarding.finalize-p_RDh7ET.js → onboarding.finalize-DLzl5ZOg.js} +87 -87
- package/dist/{onboarding.gateway-config-DldlRfms.js → onboarding.gateway-config-C4MoTr60.js} +18 -18
- package/dist/{onboarding.secret-input-BIRIJiCU.js → onboarding.secret-input-BFD0OW4X.js} +1 -1
- package/dist/{openai-model-default-CY2Nk4cn.js → openai-model-default-h4LbSR7f.js} +2 -2
- package/dist/{openclaw-root-BFfBQ6FD.js → openclaw-root-BU3lu8pM.js} +8 -8
- package/dist/{outbound-C2kanETZ.js → outbound-ChDjtuD6.js} +6 -6
- package/dist/{outbound-attachment-DfWsfe2N.js → outbound-attachment-CAJBGcna.js} +2 -2
- package/dist/{outbound-attachment-DBrYWX8h.js → outbound-attachment-DqHlD21U.js} +2 -2
- package/dist/{outbound-DPdJe7e1.js → outbound-kbHYt1JW.js} +3 -3
- package/dist/{pairing-cli-D2VZxWg3.js → pairing-cli-CXbmkz7Z.js} +8 -8
- package/dist/{pairing-labels-D4rnJ5pJ.js → pairing-labels-CaPLIhlh.js} +1 -1
- package/dist/{pairing-store-BXArq4hn.js → pairing-store-Brs9aNn_.js} +3 -3
- package/dist/{path-alias-guards-DqXRZmsL.js → path-alias-guards-BzvdLvTI.js} +1 -1
- package/dist/{path-alias-guards-DbNvNQar.js → path-alias-guards-DhIwq92y.js} +3 -3
- package/dist/{path-safety-ClQO4BB6.js → path-safety-BjIM4N4t.js} +1 -1
- package/dist/{paths-CCxysrzL.js → paths-Bkr-BCxW.js} +4 -4
- package/dist/{paths-BB_1ZWOj.js → paths-Cv63xST_.js} +9 -9
- package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
- package/dist/{pi-embedded-BaGj07T0.js → pi-embedded-BQQa91aA.js} +158 -158
- package/dist/{pi-embedded-helpers-wy0DZvx1.js → pi-embedded-helpers-CLXm10bV.js} +52 -52
- package/dist/{pi-embedded-helpers-oXDyXTD8.js → pi-embedded-helpers-DC2OtKrl.js} +6 -6
- package/dist/{pi-model-discovery-CECkJMCt.js → pi-model-discovery-DOb5RTev.js} +1 -1
- package/dist/{pi-model-discovery-BGgOlX8N.js → pi-model-discovery-Dymwdjt0.js} +7 -7
- package/dist/pi-model-discovery-runtime-BeY4EUPp.js +11 -0
- package/dist/{pi-model-discovery-runtime-g7UP-SFR.js → pi-model-discovery-runtime-DShjmiiF.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-Df7B-ggW.js → pi-tools.before-tool-call.runtime-B079pVah.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-BuLxSyx9.js → pi-tools.before-tool-call.runtime-Cwab_5W1.js} +9 -9
- package/dist/{pi-tools.policy-CydUEzFi.js → pi-tools.policy-DZ-X86Va.js} +5 -5
- package/dist/{plugin-auto-enable-BE4ZVjAL.js → plugin-auto-enable-BCMqEDjQ.js} +3 -3
- package/dist/{plugin-registry-DXW3eyib.js → plugin-registry-BPlCWMur.js} +3 -3
- package/dist/{plugins-CWkRQYDj.js → plugins-4Rj4OjLY.js} +11 -11
- package/dist/{plugins-VAZrrfgw.js → plugins-DCxT-37x.js} +2 -2
- package/dist/{plugins-cli-BQJOOVMx.js → plugins-cli-D9ILEfyb.js} +83 -83
- package/dist/{ports-DMkRSlnH.js → ports-BlCLhwbc.js} +1 -1
- package/dist/{ports-DogAV7pa.js → ports-CER5YPnN.js} +2 -2
- package/dist/{program-BA11qFx1.js → program-CV56xn7w.js} +81 -81
- package/dist/{prompt-select-styled-B0GS28ia.js → prompt-select-styled-BOa5I_PU.js} +40 -40
- package/dist/{provider-auth-helpers-CrGL-jik.js → provider-auth-helpers-c6mNCUXO.js} +5 -5
- package/dist/{proxy-env-wKO3g8Yv.js → proxy-env-BMrSVckF.js} +1 -1
- package/dist/{proxy-env-Cq5gdrbj.js → proxy-env-DlmzDx8x.js} +1 -1
- package/dist/{proxy-fetch-CCjEYbFm.js → proxy-fetch-B2pEfjbR.js} +1 -1
- package/dist/{push-apns-BEwBjZ0a.js → push-apns-FOkPD05E.js} +5 -5
- package/dist/{pw-ai-CnbxziFP.js → pw-ai-CxBU3aK5.js} +18 -18
- package/dist/{pw-ai-Cl1Lc7RC.js → pw-ai-DNMjFMqH.js} +14 -14
- package/dist/{qmd-manager-BsYsO9Ii.js → qmd-manager-BtIKUaO9.js} +10 -10
- package/dist/{qmd-manager-Dp6PJ8zQ.js → qmd-manager-DEJMqoGd.js} +20 -20
- package/dist/{qr-cli-CFz9kS5X.js → qr-cli-BD2jK4fg.js} +2 -2
- package/dist/{query-expansion-BrSWVbaE.js → query-expansion-1UTIWjP6.js} +12 -12
- package/dist/{query-expansion-DtLc3wjL.js → query-expansion-CX-1fS52.js} +6 -6
- package/dist/{redact-ClbcYG1J.js → redact-COik8ET1.js} +1 -1
- package/dist/{redact-snapshot-Bs4goggz.js → redact-snapshot-D_qQD4A-.js} +1 -1
- package/dist/{register.agent-D641ju8B.js → register.agent-tbPA5YAy.js} +94 -94
- package/dist/register.configure-DuwRrXc2.js +165 -0
- package/dist/{register.maintenance-BFkk8MEH.js → register.maintenance-DrqDlV5b.js} +95 -95
- package/dist/{register.message-D5uE_Hop.js → register.message-CoKXNaU0.js} +74 -74
- package/dist/{register.onboard-zHFvSwFr.js → register.onboard-CSWOSL9O.js} +18 -18
- package/dist/{register.setup-uTbv3_P1.js → register.setup-DBx5JX6h.js} +21 -21
- package/dist/{register.status-health-sessions-CB7t-JQx.js → register.status-health-sessions-D1bPtfep.js} +88 -88
- package/dist/{register.subclis-MEiNmuy5.js → register.subclis-QGJNmjss.js} +31 -31
- package/dist/{rpc-DVfuVmy9.js → rpc-DkMrTUww.js} +1 -1
- package/dist/{run-main-mrvunzuy.js → run-main-CPftxqTe.js} +92 -92
- package/dist/{run-with-concurrency-D_ZpbgEG.js → run-with-concurrency-BgYfgkXT.js} +4 -4
- package/dist/{runtime-C87FQrrv.js → runtime-MAH2Oph4.js} +3 -3
- package/dist/{runtime-config-collectors-BQaC477D.js → runtime-config-collectors-BJMV6Mt1.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-DjdgScUI.js → runtime-whatsapp-login.runtime-CGYWl9eB.js} +7 -7
- package/dist/runtime-whatsapp-login.runtime-DUb55byQ.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-Bii_xSfI.js +22 -0
- package/dist/{runtime-whatsapp-outbound.runtime-B74K7opl.js → runtime-whatsapp-outbound.runtime-hZEfYaRM.js} +15 -15
- package/dist/{sandbox-Ct-_lzi1.js → sandbox-0TbzPJaS.js} +18 -18
- package/dist/{sandbox-cli-C3RoXFRE.js → sandbox-cli-NLaxffXl.js} +25 -25
- package/dist/{secrets-cli-B3hqCxvs.js → secrets-cli-KLGbYet6.js} +11 -11
- package/dist/{security-cli-DcHIyXr7.js → security-cli-EIEkcYVb.js} +42 -42
- package/dist/{send-Dx2RkUOZ.js → send-6lz6rNVP.js} +6 -6
- package/dist/{send-vmONuVgL.js → send-BHTiZcH3.js} +26 -26
- package/dist/{send-CnRP4P-G.js → send-BW-ZtYG3.js} +5 -5
- package/dist/{send-2zKwf9NW.js → send-BtZAqquW.js} +11 -11
- package/dist/{send-DAQAKa9Z.js → send-CxgWxXZc.js} +6 -6
- package/dist/{send-5o2p_xjn.js → send-DAMtu9kK.js} +4 -4
- package/dist/{send-Bj776ESJ.js → send-L7gRiwyd.js} +7 -7
- package/dist/{send-DcxmcFi_.js → send-PE6cwoTe.js} +8 -8
- package/dist/{send-BQERFNyo.js → send-dfu6_rgf.js} +5 -5
- package/dist/{send-u1Bo4CSn.js → send-sC6ka831.js} +8 -8
- package/dist/{server-context-8pDe2iyd.js → server-context-HJVwPQYn.js} +12 -12
- package/dist/{server-Ci4xtuR9.js → server-kUElNhlY.js} +20 -20
- package/dist/{server-lifecycle-k5daSrde.js → server-lifecycle-BE32unpZ.js} +2 -2
- package/dist/{server-middleware-DMiFT9xU.js → server-middleware-AS2VOYkK.js} +1 -1
- package/dist/{server-node-events-BmnPjNXE.js → server-node-events-DkbZzI6P.js} +74 -74
- package/dist/{service-BhOFtHSw.js → service-CyStNr3d.js} +15 -15
- package/dist/{session-DkOjpX3_.js → session-CaCx4rPH.js} +1 -1
- package/dist/{session-A4QhBRvH.js → session-D8ImowSs.js} +8 -8
- package/dist/{session-utils-DKRmXD2l.js → session-utils-CGqb1oeq.js} +6 -6
- package/dist/{sessions-svLGrv0Z.js → sessions-BV6HNW4h.js} +4 -4
- package/dist/{sessions-BOWPuhe5.js → sessions-BmVDW-7q.js} +15 -15
- package/dist/{shared-CjuadLFV.js → shared-DUQavBtY.js} +3 -3
- package/dist/{shared-CbAkLNrg.js → shared-JW74idb0.js} +1 -1
- package/dist/{skill-commands-CMzBZKG2.js → skill-commands-DNqJ-kwn.js} +9 -9
- package/dist/{skill-commands-TpUsdjev.js → skill-commands-WtIJG0CI.js} +5 -5
- package/dist/{skill-scanner-BZvvItef.js → skill-scanner-DIFsGcqE.js} +6 -6
- package/dist/{skills-CE_iqvM5.js → skills-7ODkHQYp.js} +22 -22
- package/dist/{skills-DR-vacol.js → skills-7T9PwwL6.js} +3 -3
- package/dist/{skills-cli-oay0tY8Z.js → skills-cli-DPavvthL.js} +5 -5
- package/dist/{skills-install-Vmi7xYfa.js → skills-install-BoLfaoWv.js} +6 -6
- package/dist/{skills-status-BmN697ff.js → skills-status-CK5Gnf6i.js} +1 -1
- package/dist/{slash-commands.runtime-BfaheruW.js → slash-commands.runtime-CMGx2xHy.js} +11 -11
- package/dist/slash-commands.runtime-CVw6566g.js +16 -0
- package/dist/slash-dispatch.runtime-B9Ygtzi4.js +56 -0
- package/dist/slash-dispatch.runtime-BAeJXa56.js +114 -0
- package/dist/{slash-skill-commands.runtime-D34BKAN-.js → slash-skill-commands.runtime-ChU2tck2.js} +15 -15
- package/dist/slash-skill-commands.runtime-DxZ4z5h6.js +20 -0
- package/dist/{status-BcQchPaC.js → status-Bp-K1BEf.js} +27 -27
- package/dist/{status.update-B20UBTDq.js → status.update-ZYUSggzS.js} +2 -2
- package/dist/{store--eR1R_UX.js → store-D89wDcz9.js} +2 -2
- package/dist/{store-DDkqo1sO.js → store-DeASfYEV.js} +5 -5
- package/dist/{subagent-registry-CPxHbyN5.js → subagent-registry-8qHIVhRq.js} +149 -149
- package/dist/subagent-registry-runtime-DL1Wv7nA.js +56 -0
- package/dist/subagent-registry-runtime-DVomlbm6.js +114 -0
- package/dist/{subsystem-Di1z8l0Z.js → subsystem-B45WV3qB.js} +14 -14
- package/dist/{system-cli-D2yIJoKU.js → system-cli-C2xNfuQM.js} +9 -9
- package/dist/{system-run-command-BmhbnLTE.js → system-run-command-BPWZk7KI.js} +1 -1
- package/dist/{systemd-DjWVSbAG.js → systemd-Cf-0XKYu.js} +9 -9
- package/dist/{systemd-hints-Do-aQ9jw.js → systemd-hints-CYllYKO0.js} +6 -6
- package/dist/{systemd-linger-DpmnYgKU.js → systemd-linger-zllO90bD.js} +1 -1
- package/dist/{tables-BxyIF0w4.js → tables-CV7Afb0h.js} +1 -1
- package/dist/{tables-d739Y1xW.js → tables-mE4cJBN2.js} +1 -1
- package/dist/{tailnet-0_FsdHP-.js → tailnet-DJFUq7_R.js} +1 -1
- package/dist/{target-errors-CBI2Ga0y.js → target-errors-iVxliVqA.js} +4 -4
- package/dist/{target-errors-KOHiT_JA.js → target-errors-mnlwhAjP.js} +2 -2
- package/dist/{thinking-DXYisHiZ.js → thinking-BeGmb5k6.js} +7 -7
- package/dist/{tokens-DxnY9ui_.js → tokens-q32vI39c.js} +1 -1
- package/dist/{tool-images-CNPfeCmU.js → tool-images-Bn6dB14u.js} +1 -1
- package/dist/{tool-images-2cBx1W8h.js → tool-images-RZdHiZcG.js} +2 -2
- package/dist/{tui-DL6NZZEa.js → tui-DTVy-YhN.js} +6 -6
- package/dist/{tui-cli-BNAYhvpu.js → tui-cli-CexRLJ3a.js} +32 -32
- package/dist/{update-DlS-d52F.js → update-DijPxK0g.js} +3 -3
- package/dist/{update-cli-D8-DqIs2.js → update-cli-9NslG4yR.js} +104 -104
- package/dist/{update-runner-CzTQ7BJT.js → update-runner-B6_UqreW.js} +16 -16
- package/dist/{web-CzWRVmFt.js → web-Btj-e8kN.js} +55 -55
- package/dist/web-DGoa03ue.js +118 -0
- package/dist/{webhooks-cli-QdaQhvbT.js → webhooks-cli-B4ZcXTtw.js} +6 -6
- package/dist/{whatsapp-actions-iEArE_Ez.js → whatsapp-actions-BHbJJyqw.js} +21 -21
- package/dist/{whatsapp-actions-Bp8F0cOF.js → whatsapp-actions-Jm4VW1Ve.js} +17 -17
- package/dist/{with-timeout-BMMWHlH3.js → with-timeout-C8-tY12i.js} +3 -3
- package/dist/{workspace-v76gFdZu.js → workspace-CIGzK2_w.js} +1 -1
- package/dist/{workspace-CUVC6GX1.js → workspace-U-DyR64O.js} +20 -20
- package/dist/{workspace-dirs-Cz_Zgtg2.js → workspace-dirs-D4SMysgC.js} +1 -1
- package/dist/{wsl-CvQfS6aU.js → wsl-CsGe5QCP.js} +2 -2
- package/package.json +2 -2
- package/scripts/npm_publish.sh +15 -0
- package/dist/deliver-runtime-DixuU_uB.js +0 -61
- package/dist/deliver-runtime-P-G3bPjW.js +0 -36
- package/dist/deps-send-discord.runtime-CDcLcDSt.js +0 -36
- package/dist/deps-send-discord.runtime-DnbhTFX9.js +0 -26
- package/dist/deps-send-imessage.runtime-BGPUVMIE.js +0 -35
- package/dist/deps-send-imessage.runtime-BOiQ6mDx.js +0 -25
- package/dist/deps-send-signal.runtime-CTcl388M.js +0 -24
- package/dist/deps-send-signal.runtime-DQDD44_O.js +0 -34
- package/dist/deps-send-slack.runtime-CCqBz4Kg.js +0 -22
- package/dist/deps-send-slack.runtime-Cpy77gBG.js +0 -32
- package/dist/deps-send-telegram.runtime-DGSKTCpH.js +0 -27
- package/dist/deps-send-whatsapp.runtime-CJkTHkah.js +0 -60
- package/dist/deps-send-whatsapp.runtime-D2sVAclS.js +0 -119
- package/dist/image-runtime-B2qh5seQ.js +0 -55
- package/dist/image-runtime-CVv2ra9J.js +0 -29
- package/dist/manager-runtime-BN6VevdC.js +0 -18
- package/dist/pi-model-discovery-runtime-Bwmi4Ev8.js +0 -11
- package/dist/register.configure-BrDOSLIq.js +0 -165
- package/dist/runtime-whatsapp-login.runtime-IeylZEl4.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-ClBRuLsq.js +0 -22
- package/dist/slash-commands.runtime-Cpn2tYW4.js +0 -16
- package/dist/slash-dispatch.runtime-D0xInkf3.js +0 -114
- package/dist/slash-dispatch.runtime-DoBAQBU5.js +0 -56
- package/dist/slash-skill-commands.runtime-DKMvvdDW.js +0 -20
- package/dist/subagent-registry-runtime-SkB2tTaE.js +0 -114
- package/dist/subagent-registry-runtime-ppWS3tVu.js +0 -56
- package/dist/web-DWiOofzq.js +0 -118
|
@@ -3,111 +3,111 @@ import { g as resolveStateDir, r as STATE_DIR, u as resolveGatewayPort, y as res
|
|
|
3
3
|
import { d as defaultRuntime, t as createSubsystemLogger, u as createNonExitingRuntime } from "./subsystem-BmoaLBy-.js";
|
|
4
4
|
import { t as parseBooleanValue$1 } from "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
6
|
-
import { Ar as resolveReasoningDefault, At as AVATAR_MAX_BYTES, Dn as applyMergePatch, Dr as resolveDefaultModelForAgent, Er as resolveConfiguredModelRef, Fi as DEFAULT_CONTEXT_TOKENS, Fn as resolveSlackNativeStreaming, Ft as isSupportedLocalAvatarExtension, G as writeConfigFile, Gn as resolveOwnerDisplaySetting, Gt as getConfigValueAtPath, Hn as resolveAgentMaxConcurrent, Ht as resetConfigOverrides, Ii as DEFAULT_MODEL, In as resolveSlackStreamingMode, J as TELEGRAM_COMMAND_NAME_PATTERN, Jn as listProfilesForProvider, Jt as unsetConfigValueAtPath, K as validateConfigObjectWithPlugins, Kt as parseConfigPath, Li as DEFAULT_PROVIDER, Mr as resolveSubagentSpawnModelSelection, Mt as isAvatarHttpUrl, Nn as mapStreamingModeToSlackLegacyDraftStreamMode, Nr as resolveThinkingDefault, Pi as splitTrailingAuthProfile, Pn as resolveDiscordPreviewStreamMode, Pt as isPathWithinRoot, Q as isInboundPathAllowed, Ri as resolveAuthProfileDisplayLabel, Sr as normalizeProviderId, U as resolveConfigSnapshotHash, Ut as setConfigOverride, V as readConfigFileSnapshot, Vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vt as getConfigOverrides, Wt as unsetConfigOverride, X as resolveTelegramCustomCommands, Xr as resolveRetryConfig, Y as normalizeTelegramCommandName, Yn as markAuthProfileGood, Zr as retryAsync, _i as resolveModelAuthMode, a as getSoonestCooldownExpiry, ai as OLLAMA_NATIVE_BASE_URL, bi as resolveShellEnvFallbackTimeoutMs, br as normalizeModelRef$2, c as markAuthProfileUsed, ci as buildAssistantMessageWithZeroUsage, cr as withFileLock, d as resolveApiKeyForProfile, di as getApiKeyForModel, er as ensureAuthProfileStore, et as resolveIMessageAttachmentRoots, f as evaluateStoredCredentialEligibility, fi as getCustomProviderApiKey, fr as buildAllowedModelSet, gi as resolveEnvApiKey, hr as findNormalizedProviderValue, i as clearExpiredCooldowns, ji as normalizeSecretInput, jt as isAvatarDataUrl, kr as resolveModelRefFromString, li as buildStreamErrorAssistantMessage, mi as resolveApiKeyForProvider, mr as buildModelAliasIndex, nn as buildEnforcedShellCommand, nt as normalizeScpRemoteHost, o as isProfileInCooldown, oi as createOllamaStreamFn, or as resolveAuthStorePathForDisplay, p as resolveTokenExpiryState, pi as requireApiKey, pr as buildConfiguredAllowlistKeys, pt as parseDurationMs, qn as dedupeProfileIds, qt as setConfigValueAtPath, r as resolveAuthProfileOrder, rt as parseNonNegativeByteSize, s as markAuthProfileFailure, si as buildAssistantMessage, sr as resolveOpenClawAgentDir, tt as resolveIMessageRemoteAttachmentRoots, u as resolveProfilesUnavailableReason, ui as buildUsageWithNoCost, vr as isCliProvider, yi as getShellPathFromLoginShell, yr as modelKey, z as loadConfig, zt as validateJsonSchemaValue } from "./auth-profiles-
|
|
6
|
+
import { Ar as resolveReasoningDefault, At as AVATAR_MAX_BYTES, Dn as applyMergePatch, Dr as resolveDefaultModelForAgent, Er as resolveConfiguredModelRef, Fi as DEFAULT_CONTEXT_TOKENS, Fn as resolveSlackNativeStreaming, Ft as isSupportedLocalAvatarExtension, G as writeConfigFile, Gn as resolveOwnerDisplaySetting, Gt as getConfigValueAtPath, Hn as resolveAgentMaxConcurrent, Ht as resetConfigOverrides, Ii as DEFAULT_MODEL, In as resolveSlackStreamingMode, J as TELEGRAM_COMMAND_NAME_PATTERN, Jn as listProfilesForProvider, Jt as unsetConfigValueAtPath, K as validateConfigObjectWithPlugins, Kt as parseConfigPath, Li as DEFAULT_PROVIDER, Mr as resolveSubagentSpawnModelSelection, Mt as isAvatarHttpUrl, Nn as mapStreamingModeToSlackLegacyDraftStreamMode, Nr as resolveThinkingDefault, Pi as splitTrailingAuthProfile, Pn as resolveDiscordPreviewStreamMode, Pt as isPathWithinRoot, Q as isInboundPathAllowed, Ri as resolveAuthProfileDisplayLabel, Sr as normalizeProviderId, U as resolveConfigSnapshotHash, Ut as setConfigOverride, V as readConfigFileSnapshot, Vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vt as getConfigOverrides, Wt as unsetConfigOverride, X as resolveTelegramCustomCommands, Xr as resolveRetryConfig, Y as normalizeTelegramCommandName, Yn as markAuthProfileGood, Zr as retryAsync, _i as resolveModelAuthMode, a as getSoonestCooldownExpiry, ai as OLLAMA_NATIVE_BASE_URL, bi as resolveShellEnvFallbackTimeoutMs, br as normalizeModelRef$2, c as markAuthProfileUsed, ci as buildAssistantMessageWithZeroUsage, cr as withFileLock, d as resolveApiKeyForProfile, di as getApiKeyForModel, er as ensureAuthProfileStore, et as resolveIMessageAttachmentRoots, f as evaluateStoredCredentialEligibility, fi as getCustomProviderApiKey, fr as buildAllowedModelSet, gi as resolveEnvApiKey, hr as findNormalizedProviderValue, i as clearExpiredCooldowns, ji as normalizeSecretInput, jt as isAvatarDataUrl, kr as resolveModelRefFromString, li as buildStreamErrorAssistantMessage, mi as resolveApiKeyForProvider, mr as buildModelAliasIndex, nn as buildEnforcedShellCommand, nt as normalizeScpRemoteHost, o as isProfileInCooldown, oi as createOllamaStreamFn, or as resolveAuthStorePathForDisplay, p as resolveTokenExpiryState, pi as requireApiKey, pr as buildConfiguredAllowlistKeys, pt as parseDurationMs, qn as dedupeProfileIds, qt as setConfigValueAtPath, r as resolveAuthProfileOrder, rt as parseNonNegativeByteSize, s as markAuthProfileFailure, si as buildAssistantMessage, sr as resolveOpenClawAgentDir, tt as resolveIMessageRemoteAttachmentRoots, u as resolveProfilesUnavailableReason, ui as buildUsageWithNoCost, vr as isCliProvider, yi as getShellPathFromLoginShell, yr as modelKey, z as loadConfig, zt as validateJsonSchemaValue } from "./auth-profiles-15pq9j9V.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
8
|
-
import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-
|
|
8
|
+
import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-NQ9CtXYN.js";
|
|
9
9
|
import { D as resolveThreadParentSessionKey, E as parseAgentSessionKey, S as isAcpSessionKey, T as isSubagentSessionKey, _ as normalizeAccountId$2, b as deriveSessionChatType, c as normalizeAgentId, d as resolveThreadSessionKeys, f as sanitizeAgentId, g as DEFAULT_ACCOUNT_ID, i as buildAgentPeerSessionKey, l as normalizeMainKey, n as DEFAULT_MAIN_KEY, o as classifySessionKeyShape, p as scopedHeartbeatWakeOptions, r as buildAgentMainSessionKey, s as isValidAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, v as normalizeOptionalAccountId, w as isCronSessionKey, x as getSubagentDepth, y as isBlockedObjectKey } from "./session-key-k6urs9r-.js";
|
|
10
10
|
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-6WlODK5w.js";
|
|
11
|
-
import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveOpenClawPackageRoot } from "./openclaw-root-
|
|
11
|
+
import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveOpenClawPackageRoot } from "./openclaw-root-BU3lu8pM.js";
|
|
12
12
|
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-9wCpWqHD.js";
|
|
13
13
|
import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-GR2kPVc1.js";
|
|
14
14
|
import { E as triggerInternalHook, M as normalizeResolvedSecretInputString, S as matchPluginCommand, _ as normalizePluginHttpPath, b as getPluginCommandSpecs, c as normalizeChannelId$1, d as getActivePluginRegistryKey, g as createPluginRegistry, k as coerceSecretRef, 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-C3qkO1RG.js";
|
|
15
15
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-Byc_YVYE.js";
|
|
16
16
|
import { n as isDangerousHostEnvVarName } from "./host-env-security-lcjXF83D.js";
|
|
17
17
|
import { t as VERSION } from "./version-DdJhsIqk.js";
|
|
18
|
-
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-
|
|
19
|
-
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-
|
|
18
|
+
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-CJb8odRF.js";
|
|
19
|
+
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-nA2DVPCV.js";
|
|
20
20
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-kzSMVKJz.js";
|
|
21
21
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-BAST85mP.js";
|
|
22
|
-
import { i as buildModelAliasLines, n as resolveModel } from "./model-
|
|
23
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
24
|
-
import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-
|
|
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-
|
|
22
|
+
import { i as buildModelAliasLines, n as resolveModel } from "./model-B792l3Cn.js";
|
|
23
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DOb5RTev.js";
|
|
24
|
+
import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-BpP9UBCE.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-7T9PwwL6.js";
|
|
26
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DhIwq92y.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-CIqYyQ36.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, at as resolveConversationLabel, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, lt as resolveGroupSessionKey, 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-
|
|
29
|
-
import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-
|
|
30
|
-
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-
|
|
31
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
32
|
-
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
33
|
-
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-
|
|
34
|
-
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, 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 buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-
|
|
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, at as resolveConversationLabel, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, lt as resolveGroupSessionKey, 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-BmVDW-7q.js";
|
|
29
|
+
import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-DCxT-37x.js";
|
|
30
|
+
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-khXX75l1.js";
|
|
31
|
+
import { r as resolveIMessageAccount } from "./accounts-CUYZBSKh.js";
|
|
32
|
+
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BtEMxtPK.js";
|
|
33
|
+
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-DAMtu9kK.js";
|
|
34
|
+
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, 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 buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-BtZAqquW.js";
|
|
35
35
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, t as resolveDefaultSessionStorePath } from "./paths-DvFmz0MB.js";
|
|
36
36
|
import { i as normalizeInputProvenance, n as applyInputProvenanceToUserMessage, r as hasInterSessionUserProvenance } from "./input-provenance-C8z9KgIz.js";
|
|
37
|
-
import { r as writeJsonAtomic } from "./json-files-
|
|
37
|
+
import { r as writeJsonAtomic } from "./json-files-rR19q30D.js";
|
|
38
38
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-DgzPL8Hc.js";
|
|
39
|
-
import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-
|
|
40
|
-
import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-
|
|
41
|
-
import { r as isLoopbackHost } from "./net-
|
|
39
|
+
import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-g0366Z73.js";
|
|
40
|
+
import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-CZgRbVYm.js";
|
|
41
|
+
import { r as isLoopbackHost } from "./net-BAIqYNz0.js";
|
|
42
42
|
import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-CUTymVVV.js";
|
|
43
43
|
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-6laAe_ss.js";
|
|
44
|
-
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-
|
|
44
|
+
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-C8-tY12i.js";
|
|
45
45
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-_dzDDlFo.js";
|
|
46
|
-
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-
|
|
46
|
+
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-b93aBgie.js";
|
|
47
47
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-Bz6Ajr4f.js";
|
|
48
|
-
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-
|
|
49
|
-
import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as splitTelegramCaption, a as reactMessageTelegram, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramHtml, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildSenderName, y as loadCronStore, z as resolveTelegramReplyId } from "./send-
|
|
50
|
-
import { A as isTransientHttpError, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ 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 parseImageDimensionError, k as isRawApiErrorPayload, 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 isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-
|
|
51
|
-
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-
|
|
52
|
-
import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-
|
|
53
|
-
import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-
|
|
54
|
-
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-
|
|
48
|
+
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-AJL9tN3_.js";
|
|
49
|
+
import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as splitTelegramCaption, a as reactMessageTelegram, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramHtml, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildSenderName, y as loadCronStore, z as resolveTelegramReplyId } from "./send-sC6ka831.js";
|
|
50
|
+
import { A as isTransientHttpError, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ 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 parseImageDimensionError, k as isRawApiErrorPayload, 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 isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-DC2OtKrl.js";
|
|
51
|
+
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-0TbzPJaS.js";
|
|
52
|
+
import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-L_icBVLq.js";
|
|
53
|
+
import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-HJVwPQYn.js";
|
|
54
|
+
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-Cv63xST_.js";
|
|
55
55
|
import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-TY4yJzrg.js";
|
|
56
56
|
import { i as formatUncaughtError, r as formatErrorMessage, s as readErrorName } from "./errors-BbXSsOtF.js";
|
|
57
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
58
|
-
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-
|
|
59
|
-
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
60
|
-
import { i as resolveLsofCommandSync } from "./ports-
|
|
61
|
-
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-
|
|
57
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-CFLs-j60.js";
|
|
58
|
+
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-BMrSVckF.js";
|
|
59
|
+
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-DeASfYEV.js";
|
|
60
|
+
import { i as resolveLsofCommandSync } from "./ports-CER5YPnN.js";
|
|
61
|
+
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-Bn6dB14u.js";
|
|
62
62
|
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-CrcT589P.js";
|
|
63
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
64
|
-
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-
|
|
65
|
-
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-
|
|
66
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
67
|
-
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-
|
|
68
|
-
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-
|
|
63
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-Dabs9Kdv.js";
|
|
64
|
+
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-C0Eya3rT.js";
|
|
65
|
+
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-BmJmfDRo.js";
|
|
66
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-DZ6kl2Ko.js";
|
|
67
|
+
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-BhAHVdwx.js";
|
|
68
|
+
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-DYKvqK54.js";
|
|
69
69
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Mawkd1Br.js";
|
|
70
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
71
|
-
import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-
|
|
70
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BbBdhWz_.js";
|
|
71
|
+
import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-Bw71y73Q.js";
|
|
72
72
|
import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-CvlNC8XD.js";
|
|
73
73
|
import { t as makeProxyFetch } from "./proxy-fetch-DezNPSn_.js";
|
|
74
|
-
import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-
|
|
75
|
-
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-
|
|
76
|
-
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-
|
|
77
|
-
import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-
|
|
74
|
+
import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-otKVkb4a.js";
|
|
75
|
+
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-iVxliVqA.js";
|
|
76
|
+
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-DU7At3rY.js";
|
|
77
|
+
import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-B_WUa9KB.js";
|
|
78
78
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-Cep8cXb2.js";
|
|
79
79
|
import { n as formatTimeAgo } from "./format-relative-Czf5fUjn.js";
|
|
80
|
-
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-
|
|
80
|
+
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-Brs9aNn_.js";
|
|
81
81
|
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-BXpO0clf.js";
|
|
82
|
-
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-
|
|
82
|
+
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-BTND5VDq.js";
|
|
83
83
|
import { t as killProcessTree$1 } from "./kill-tree-0NV2m8EI.js";
|
|
84
|
-
import { t as formatExecCommand } from "./system-run-command-
|
|
84
|
+
import { t as formatExecCommand } from "./system-run-command-BPWZk7KI.js";
|
|
85
85
|
import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-DO_ibeH6.js";
|
|
86
86
|
import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-CZ0b60YO.js";
|
|
87
|
-
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-
|
|
87
|
+
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-CGqb1oeq.js";
|
|
88
88
|
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-TIBv8Nm4.js";
|
|
89
89
|
import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-eNPY7j3q.js";
|
|
90
|
-
import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-
|
|
91
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
90
|
+
import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-WtIJG0CI.js";
|
|
91
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-D9K6yeu8.js";
|
|
92
92
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-PN66jbnR.js";
|
|
93
93
|
import { n as normalizePollInput } from "./polls-C67dmFc-.js";
|
|
94
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
94
|
+
import { t as convertMarkdownTables } from "./tables-CV7Afb0h.js";
|
|
95
95
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-C8Mfdyag.js";
|
|
96
96
|
import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-C4U8O7GM.js";
|
|
97
|
-
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-
|
|
98
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
99
|
-
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-
|
|
100
|
-
import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-
|
|
97
|
+
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-BpIsCVV5.js";
|
|
98
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-BCMqEDjQ.js";
|
|
99
|
+
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-BW-ZtYG3.js";
|
|
100
|
+
import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-CxgWxXZc.js";
|
|
101
101
|
import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined$1 } from "./allow-from-DzfdGdp7.js";
|
|
102
102
|
import { t as parseTimeoutMs } from "./parse-timeout-DUdeaMqF.js";
|
|
103
103
|
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-ChoRoJgR.js";
|
|
104
|
-
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-
|
|
104
|
+
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-DZ-X86Va.js";
|
|
105
105
|
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-CXdnb6je.js";
|
|
106
|
-
import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-
|
|
107
|
-
import { r as detectBinary } from "./onboard-helpers-
|
|
108
|
-
import { t as resolvePairingIdLabel } from "./pairing-labels-
|
|
109
|
-
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-
|
|
110
|
-
import { r as resolveMemorySearchConfig } from "./manager-
|
|
106
|
+
import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-CIMuIdbL.js";
|
|
107
|
+
import { r as detectBinary } from "./onboard-helpers-lGpaVp03.js";
|
|
108
|
+
import { t as resolvePairingIdLabel } from "./pairing-labels-CaPLIhlh.js";
|
|
109
|
+
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-DGsJx7YM.js";
|
|
110
|
+
import { r as resolveMemorySearchConfig } from "./manager-iwcRf3Xc.js";
|
|
111
111
|
import { i as resolveContextWindowInfo, n as CONTEXT_WINDOW_WARN_BELOW_TOKENS, r as evaluateContextWindowGuard, t as CONTEXT_WINDOW_HARD_MIN_TOKENS } from "./context-window-guard-EeoVR--t.js";
|
|
112
112
|
import { createRequire } from "node:module";
|
|
113
113
|
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -117,7 +117,7 @@ import path, { isAbsolute } from "node:path";
|
|
|
117
117
|
import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
118
118
|
import JSON5 from "json5";
|
|
119
119
|
import { inspect } from "node:util";
|
|
120
|
-
import
|
|
120
|
+
import fsPromises from "node:fs/promises";
|
|
121
121
|
import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
|
|
122
122
|
import crypto, { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
123
123
|
import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
|
|
@@ -5150,7 +5150,7 @@ async function resolveAgentSessionDirs(stateDir) {
|
|
|
5150
5150
|
const agentsDir = path.join(stateDir, "agents");
|
|
5151
5151
|
let entries = [];
|
|
5152
5152
|
try {
|
|
5153
|
-
entries = await
|
|
5153
|
+
entries = await fsPromises.readdir(agentsDir, { withFileTypes: true });
|
|
5154
5154
|
} catch (err) {
|
|
5155
5155
|
if (err.code === "ENOENT") return [];
|
|
5156
5156
|
throw err;
|
|
@@ -8266,7 +8266,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
8266
8266
|
//#region src/media-understanding/echo-transcript.ts
|
|
8267
8267
|
let deliverRuntimePromise$2 = null;
|
|
8268
8268
|
function loadDeliverRuntime$2() {
|
|
8269
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
8269
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-CdWd-JQI.js");
|
|
8270
8270
|
return deliverRuntimePromise$2;
|
|
8271
8271
|
}
|
|
8272
8272
|
const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
@@ -13102,7 +13102,7 @@ async function resolveSandboxWorkdir(params) {
|
|
|
13102
13102
|
cwd: process.cwd(),
|
|
13103
13103
|
root: params.sandbox.workspaceDir
|
|
13104
13104
|
});
|
|
13105
|
-
if (!(await
|
|
13105
|
+
if (!(await fsPromises.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
|
|
13106
13106
|
const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
|
|
13107
13107
|
const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
|
|
13108
13108
|
return {
|
|
@@ -14346,13 +14346,13 @@ async function validateScriptFileForShellBleed(params) {
|
|
|
14346
14346
|
cwd: params.workdir,
|
|
14347
14347
|
root: params.workdir
|
|
14348
14348
|
});
|
|
14349
|
-
stat = await
|
|
14349
|
+
stat = await fsPromises.stat(absPath);
|
|
14350
14350
|
} catch {
|
|
14351
14351
|
return;
|
|
14352
14352
|
}
|
|
14353
14353
|
if (!stat.isFile()) return;
|
|
14354
14354
|
if (stat.size > 512 * 1024) return;
|
|
14355
|
-
const content = await
|
|
14355
|
+
const content = await fsPromises.readFile(absPath, "utf-8");
|
|
14356
14356
|
const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
|
|
14357
14357
|
if (first) {
|
|
14358
14358
|
const idx = first.index;
|
|
@@ -23734,7 +23734,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
23734
23734
|
*/
|
|
23735
23735
|
let deliverRuntimePromise$1 = null;
|
|
23736
23736
|
function loadDeliverRuntime$1() {
|
|
23737
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
23737
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-CdWd-JQI.js");
|
|
23738
23738
|
return deliverRuntimePromise$1;
|
|
23739
23739
|
}
|
|
23740
23740
|
/**
|
|
@@ -23858,7 +23858,7 @@ async function emitResetCommandHooks(params) {
|
|
|
23858
23858
|
try {
|
|
23859
23859
|
const messages = [];
|
|
23860
23860
|
if (sessionFile) {
|
|
23861
|
-
const content = await
|
|
23861
|
+
const content = await fsPromises.readFile(sessionFile, "utf-8");
|
|
23862
23862
|
for (const line of content.split("\n")) {
|
|
23863
23863
|
if (!line.trim()) continue;
|
|
23864
23864
|
try {
|
|
@@ -24687,7 +24687,7 @@ async function createModelSelectionState(params) {
|
|
|
24687
24687
|
}
|
|
24688
24688
|
}
|
|
24689
24689
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
24690
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
24690
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-15pq9j9V.js").then((n) => n.t);
|
|
24691
24691
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
24692
24692
|
const providerKey = normalizeProviderId(provider);
|
|
24693
24693
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -28283,7 +28283,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
28283
28283
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
|
|
28284
28284
|
throw new Error("jsonlPath outside allowed roots");
|
|
28285
28285
|
}
|
|
28286
|
-
const canonical = await
|
|
28286
|
+
const canonical = await fsPromises.realpath(resolved).catch(() => resolved);
|
|
28287
28287
|
if (!isInboundPathAllowed({
|
|
28288
28288
|
filePath: canonical,
|
|
28289
28289
|
roots
|
|
@@ -28291,7 +28291,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
28291
28291
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
|
|
28292
28292
|
throw new Error("jsonlPath outside allowed roots");
|
|
28293
28293
|
}
|
|
28294
|
-
return await
|
|
28294
|
+
return await fsPromises.readFile(canonical, "utf8");
|
|
28295
28295
|
}
|
|
28296
28296
|
const CanvasToolSchema = Type.Object({
|
|
28297
28297
|
action: stringEnum(CANVAS_ACTIONS),
|
|
@@ -29106,27 +29106,27 @@ function resolveRestartSentinelPath(env = process.env) {
|
|
|
29106
29106
|
}
|
|
29107
29107
|
async function writeRestartSentinel(payload, env = process.env) {
|
|
29108
29108
|
const filePath = resolveRestartSentinelPath(env);
|
|
29109
|
-
await
|
|
29109
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
29110
29110
|
const data = {
|
|
29111
29111
|
version: 1,
|
|
29112
29112
|
payload
|
|
29113
29113
|
};
|
|
29114
|
-
await
|
|
29114
|
+
await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
|
|
29115
29115
|
return filePath;
|
|
29116
29116
|
}
|
|
29117
29117
|
async function readRestartSentinel(env = process.env) {
|
|
29118
29118
|
const filePath = resolveRestartSentinelPath(env);
|
|
29119
29119
|
try {
|
|
29120
|
-
const raw = await
|
|
29120
|
+
const raw = await fsPromises.readFile(filePath, "utf-8");
|
|
29121
29121
|
let parsed;
|
|
29122
29122
|
try {
|
|
29123
29123
|
parsed = JSON.parse(raw);
|
|
29124
29124
|
} catch {
|
|
29125
|
-
await
|
|
29125
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
29126
29126
|
return null;
|
|
29127
29127
|
}
|
|
29128
29128
|
if (!parsed || parsed.version !== 1 || !parsed.payload) {
|
|
29129
|
-
await
|
|
29129
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
29130
29130
|
return null;
|
|
29131
29131
|
}
|
|
29132
29132
|
return parsed;
|
|
@@ -29138,7 +29138,7 @@ async function consumeRestartSentinel(env = process.env) {
|
|
|
29138
29138
|
const filePath = resolveRestartSentinelPath(env);
|
|
29139
29139
|
const parsed = await readRestartSentinel(env);
|
|
29140
29140
|
if (!parsed) return null;
|
|
29141
|
-
await
|
|
29141
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
29142
29142
|
return parsed;
|
|
29143
29143
|
}
|
|
29144
29144
|
function formatRestartSentinelMessage(payload) {
|
|
@@ -39874,18 +39874,18 @@ function appendImagePathsToPrompt(prompt, paths) {
|
|
|
39874
39874
|
return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
|
|
39875
39875
|
}
|
|
39876
39876
|
async function writeCliImages(images) {
|
|
39877
|
-
const tempDir = await
|
|
39877
|
+
const tempDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-images-"));
|
|
39878
39878
|
const paths = [];
|
|
39879
39879
|
for (let i = 0; i < images.length; i += 1) {
|
|
39880
39880
|
const image = images[i];
|
|
39881
39881
|
const ext = resolveImageExtension(image.mimeType);
|
|
39882
39882
|
const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
|
|
39883
39883
|
const buffer = Buffer.from(image.data, "base64");
|
|
39884
|
-
await
|
|
39884
|
+
await fsPromises.writeFile(filePath, buffer, { mode: 384 });
|
|
39885
39885
|
paths.push(filePath);
|
|
39886
39886
|
}
|
|
39887
39887
|
const cleanup = async () => {
|
|
39888
|
-
await
|
|
39888
|
+
await fsPromises.rm(tempDir, {
|
|
39889
39889
|
recursive: true,
|
|
39890
39890
|
force: true
|
|
39891
39891
|
});
|
|
@@ -43852,7 +43852,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
43852
43852
|
const log$9 = createSubsystemLogger("session-maintenance-warning");
|
|
43853
43853
|
let deliverRuntimePromise = null;
|
|
43854
43854
|
function loadDeliverRuntime() {
|
|
43855
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
43855
|
+
deliverRuntimePromise ??= import("./deliver-runtime-CdWd-JQI.js");
|
|
43856
43856
|
return deliverRuntimePromise;
|
|
43857
43857
|
}
|
|
43858
43858
|
function shouldSendWarning() {
|
|
@@ -44433,7 +44433,7 @@ async function stageSandboxMedia(params) {
|
|
|
44433
44433
|
const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(CONFIG_DIR, "media", "remote-cache", sessionKey) : null;
|
|
44434
44434
|
const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
|
|
44435
44435
|
if (!effectiveWorkspaceDir) return;
|
|
44436
|
-
await
|
|
44436
|
+
await fsPromises.mkdir(effectiveWorkspaceDir, { recursive: true });
|
|
44437
44437
|
const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
|
|
44438
44438
|
cfg,
|
|
44439
44439
|
accountId: ctx.AccountId
|
|
@@ -44492,8 +44492,8 @@ async function stageLocalFileIntoRoot(params) {
|
|
|
44492
44492
|
}
|
|
44493
44493
|
async function stageRemoteFileIntoRoot(params) {
|
|
44494
44494
|
const tmpRoot = resolvePreferredOpenClawTmpDir();
|
|
44495
|
-
await
|
|
44496
|
-
const tmpDir = await
|
|
44495
|
+
await fsPromises.mkdir(tmpRoot, { recursive: true });
|
|
44496
|
+
const tmpDir = await fsPromises.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
|
|
44497
44497
|
const tmpPath = path.join(tmpDir, "download");
|
|
44498
44498
|
try {
|
|
44499
44499
|
await scpFile(params.remoteHost, params.remotePath, tmpPath);
|
|
@@ -44504,7 +44504,7 @@ async function stageRemoteFileIntoRoot(params) {
|
|
|
44504
44504
|
maxBytes: params.maxBytes
|
|
44505
44505
|
});
|
|
44506
44506
|
} finally {
|
|
44507
|
-
await
|
|
44507
|
+
await fsPromises.rm(tmpDir, {
|
|
44508
44508
|
recursive: true,
|
|
44509
44509
|
force: true
|
|
44510
44510
|
}).catch(() => {});
|
|
@@ -48812,7 +48812,7 @@ const VISION_PROVIDERS = [
|
|
|
48812
48812
|
];
|
|
48813
48813
|
let imageRuntimePromise = null;
|
|
48814
48814
|
function loadImageRuntime() {
|
|
48815
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
48815
|
+
imageRuntimePromise ??= import("./image-runtime-6jhrqcle.js");
|
|
48816
48816
|
return imageRuntimePromise;
|
|
48817
48817
|
}
|
|
48818
48818
|
/**
|
|
@@ -48878,7 +48878,7 @@ async function describeStickerImage(params) {
|
|
|
48878
48878
|
const { provider, model } = resolved;
|
|
48879
48879
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
48880
48880
|
try {
|
|
48881
|
-
const buffer = await
|
|
48881
|
+
const buffer = await fsPromises.readFile(imagePath);
|
|
48882
48882
|
const { describeImageWithModel } = await loadImageRuntime();
|
|
48883
48883
|
return (await describeImageWithModel({
|
|
48884
48884
|
buffer,
|
|
@@ -50640,7 +50640,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
50640
50640
|
const needsPreflightTranscription = !params.isDirectMessage && params.shouldRequireMention && hasAudioAttachment && !hasTypedText && params.mentionRegexes.length > 0;
|
|
50641
50641
|
let transcript;
|
|
50642
50642
|
if (needsPreflightTranscription) try {
|
|
50643
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
50643
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DUtdCXjJ.js");
|
|
50644
50644
|
const audioUrls = audioAttachments.map((att) => att.url).filter((url) => typeof url === "string" && url.length > 0);
|
|
50645
50645
|
if (audioUrls.length > 0) transcript = await transcribeFirstAudio({
|
|
50646
50646
|
ctx: {
|
|
@@ -55462,27 +55462,27 @@ let slackSenderRuntimePromise = null;
|
|
|
55462
55462
|
let signalSenderRuntimePromise = null;
|
|
55463
55463
|
let imessageSenderRuntimePromise = null;
|
|
55464
55464
|
function loadWhatsAppSenderRuntime() {
|
|
55465
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
55465
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-BkoMLlCM.js");
|
|
55466
55466
|
return whatsappSenderRuntimePromise;
|
|
55467
55467
|
}
|
|
55468
55468
|
function loadTelegramSenderRuntime() {
|
|
55469
|
-
telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-
|
|
55469
|
+
telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-C--B69CN.js");
|
|
55470
55470
|
return telegramSenderRuntimePromise;
|
|
55471
55471
|
}
|
|
55472
55472
|
function loadDiscordSenderRuntime() {
|
|
55473
|
-
discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-
|
|
55473
|
+
discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-BltWu9GW.js");
|
|
55474
55474
|
return discordSenderRuntimePromise;
|
|
55475
55475
|
}
|
|
55476
55476
|
function loadSlackSenderRuntime() {
|
|
55477
|
-
slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-
|
|
55477
|
+
slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-CkyZO7ln.js");
|
|
55478
55478
|
return slackSenderRuntimePromise;
|
|
55479
55479
|
}
|
|
55480
55480
|
function loadSignalSenderRuntime() {
|
|
55481
|
-
signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-
|
|
55481
|
+
signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-fHqkSmMW.js");
|
|
55482
55482
|
return signalSenderRuntimePromise;
|
|
55483
55483
|
}
|
|
55484
55484
|
function loadIMessageSenderRuntime() {
|
|
55485
|
-
imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-
|
|
55485
|
+
imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-CdCif3t7.js");
|
|
55486
55486
|
return imessageSenderRuntimePromise;
|
|
55487
55487
|
}
|
|
55488
55488
|
function createDefaultDeps() {
|
|
@@ -56655,10 +56655,10 @@ function estimateDurationSeconds(pcm) {
|
|
|
56655
56655
|
return pcm.length / (bytesPerSample * SAMPLE_RATE);
|
|
56656
56656
|
}
|
|
56657
56657
|
async function writeWavFile(pcm) {
|
|
56658
|
-
const tempDir = await
|
|
56658
|
+
const tempDir = await fsPromises.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "discord-voice-"));
|
|
56659
56659
|
const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
|
|
56660
56660
|
const wav = buildWavBuffer(pcm);
|
|
56661
|
-
await
|
|
56661
|
+
await fsPromises.writeFile(filePath, wav);
|
|
56662
56662
|
scheduleTempCleanup(tempDir);
|
|
56663
56663
|
return {
|
|
56664
56664
|
path: filePath,
|
|
@@ -56667,7 +56667,7 @@ async function writeWavFile(pcm) {
|
|
|
56667
56667
|
}
|
|
56668
56668
|
function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
|
|
56669
56669
|
setTimeout(() => {
|
|
56670
|
-
|
|
56670
|
+
fsPromises.rm(tempDir, {
|
|
56671
56671
|
recursive: true,
|
|
56672
56672
|
force: true
|
|
56673
56673
|
}).catch((err) => {
|
|
@@ -61233,7 +61233,7 @@ function normalizeAllowList$1(list) {
|
|
|
61233
61233
|
async function detectRemoteHostFromCliPath(cliPath) {
|
|
61234
61234
|
try {
|
|
61235
61235
|
const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
|
|
61236
|
-
const content = await
|
|
61236
|
+
const content = await fsPromises.readFile(expanded, "utf8");
|
|
61237
61237
|
const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
|
|
61238
61238
|
if (userHostMatch) return userHostMatch[1];
|
|
61239
61239
|
return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
|
|
@@ -68202,15 +68202,15 @@ let slashCommandsRuntimePromise = null;
|
|
|
68202
68202
|
let slashDispatchRuntimePromise = null;
|
|
68203
68203
|
let slashSkillCommandsRuntimePromise = null;
|
|
68204
68204
|
function loadSlashCommandsRuntime() {
|
|
68205
|
-
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-
|
|
68205
|
+
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-CMGx2xHy.js");
|
|
68206
68206
|
return slashCommandsRuntimePromise;
|
|
68207
68207
|
}
|
|
68208
68208
|
function loadSlashDispatchRuntime() {
|
|
68209
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
68209
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-BAeJXa56.js");
|
|
68210
68210
|
return slashDispatchRuntimePromise;
|
|
68211
68211
|
}
|
|
68212
68212
|
function loadSlashSkillCommandsRuntime() {
|
|
68213
|
-
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-
|
|
68213
|
+
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-ChU2tck2.js");
|
|
68214
68214
|
return slashSkillCommandsRuntimePromise;
|
|
68215
68215
|
}
|
|
68216
68216
|
const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
|
|
@@ -71575,7 +71575,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
71575
71575
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
71576
71576
|
let preflightTranscript;
|
|
71577
71577
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
71578
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
71578
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DUtdCXjJ.js");
|
|
71579
71579
|
preflightTranscript = await transcribeFirstAudio({
|
|
71580
71580
|
ctx: {
|
|
71581
71581
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -73046,7 +73046,7 @@ function resolveCommandHashPath(accountId, botIdentity) {
|
|
|
73046
73046
|
}
|
|
73047
73047
|
async function readCachedCommandHash(accountId, botIdentity) {
|
|
73048
73048
|
try {
|
|
73049
|
-
return (await
|
|
73049
|
+
return (await fsPromises.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
|
|
73050
73050
|
} catch {
|
|
73051
73051
|
return null;
|
|
73052
73052
|
}
|
|
@@ -73054,8 +73054,8 @@ async function readCachedCommandHash(accountId, botIdentity) {
|
|
|
73054
73054
|
async function writeCachedCommandHash(accountId, botIdentity, hash) {
|
|
73055
73055
|
const filePath = resolveCommandHashPath(accountId, botIdentity);
|
|
73056
73056
|
try {
|
|
73057
|
-
await
|
|
73058
|
-
await
|
|
73057
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
73058
|
+
await fsPromises.writeFile(filePath, hash, "utf-8");
|
|
73059
73059
|
} catch {}
|
|
73060
73060
|
}
|
|
73061
73061
|
function syncTelegramMenuCommands(params) {
|
|
@@ -73899,7 +73899,7 @@ function safeParseState(raw) {
|
|
|
73899
73899
|
async function readTelegramUpdateOffset(params) {
|
|
73900
73900
|
const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
|
|
73901
73901
|
try {
|
|
73902
|
-
const parsed = safeParseState(await
|
|
73902
|
+
const parsed = safeParseState(await fsPromises.readFile(filePath, "utf-8"));
|
|
73903
73903
|
const expectedBotId = extractBotIdFromToken(params.botToken);
|
|
73904
73904
|
if (expectedBotId && parsed?.botId && parsed.botId !== expectedBotId) return null;
|
|
73905
73905
|
if (expectedBotId && parsed?.botId === null) return null;
|
|
@@ -73923,7 +73923,7 @@ async function writeTelegramUpdateOffset(params) {
|
|
|
73923
73923
|
async function deleteTelegramUpdateOffset(params) {
|
|
73924
73924
|
const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
|
|
73925
73925
|
try {
|
|
73926
|
-
await
|
|
73926
|
+
await fsPromises.unlink(filePath);
|
|
73927
73927
|
} catch (err) {
|
|
73928
73928
|
if (err.code === "ENOENT") return;
|
|
73929
73929
|
throw err;
|
|
@@ -74397,7 +74397,7 @@ function createWhatsAppLoginTool() {
|
|
|
74397
74397
|
force: Type.Optional(Type.Boolean())
|
|
74398
74398
|
}),
|
|
74399
74399
|
execute: async (_toolCallId, args) => {
|
|
74400
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
74400
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-C9D47WEZ.js");
|
|
74401
74401
|
if ((args?.action ?? "start") === "wait") {
|
|
74402
74402
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
74403
74403
|
return {
|
|
@@ -74472,23 +74472,23 @@ let webOutboundPromise = null;
|
|
|
74472
74472
|
let webLoginPromise = null;
|
|
74473
74473
|
let whatsappActionsPromise = null;
|
|
74474
74474
|
function loadWebOutbound() {
|
|
74475
|
-
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-
|
|
74475
|
+
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-hZEfYaRM.js");
|
|
74476
74476
|
return webOutboundPromise;
|
|
74477
74477
|
}
|
|
74478
74478
|
function loadWebLogin() {
|
|
74479
|
-
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-
|
|
74479
|
+
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-CGYWl9eB.js");
|
|
74480
74480
|
return webLoginPromise;
|
|
74481
74481
|
}
|
|
74482
74482
|
function loadWebLoginQr() {
|
|
74483
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
74483
|
+
webLoginQrPromise ??= import("./login-qr-C9D47WEZ.js");
|
|
74484
74484
|
return webLoginQrPromise;
|
|
74485
74485
|
}
|
|
74486
74486
|
function loadWebChannel() {
|
|
74487
|
-
webChannelPromise ??= import("./web-
|
|
74487
|
+
webChannelPromise ??= import("./web-DGoa03ue.js");
|
|
74488
74488
|
return webChannelPromise;
|
|
74489
74489
|
}
|
|
74490
74490
|
function loadWhatsAppActions() {
|
|
74491
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
74491
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-Jm4VW1Ve.js");
|
|
74492
74492
|
return whatsappActionsPromise;
|
|
74493
74493
|
}
|
|
74494
74494
|
function createRuntimeWhatsApp() {
|
|
@@ -75800,7 +75800,7 @@ function resolvePluginTools(params) {
|
|
|
75800
75800
|
//#endregion
|
|
75801
75801
|
//#region src/agents/apply-patch-update.ts
|
|
75802
75802
|
async function defaultReadFile(filePath) {
|
|
75803
|
-
return
|
|
75803
|
+
return fsPromises.readFile(filePath, "utf8");
|
|
75804
75804
|
}
|
|
75805
75805
|
async function applyUpdateHunk(filePath, chunks, options) {
|
|
75806
75806
|
const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
|
|
@@ -76121,7 +76121,7 @@ function resolvePatchFileOps(options) {
|
|
|
76121
76121
|
const workspaceOnly = options.workspaceOnly !== false;
|
|
76122
76122
|
return {
|
|
76123
76123
|
readFile: async (filePath) => {
|
|
76124
|
-
if (!workspaceOnly) return await
|
|
76124
|
+
if (!workspaceOnly) return await fsPromises.readFile(filePath, "utf8");
|
|
76125
76125
|
const opened = await openBoundaryFile({
|
|
76126
76126
|
absolutePath: filePath,
|
|
76127
76127
|
rootPath: options.cwd,
|
|
@@ -76136,7 +76136,7 @@ function resolvePatchFileOps(options) {
|
|
|
76136
76136
|
},
|
|
76137
76137
|
writeFile: async (filePath, content) => {
|
|
76138
76138
|
if (!workspaceOnly) {
|
|
76139
|
-
await
|
|
76139
|
+
await fsPromises.writeFile(filePath, content, "utf8");
|
|
76140
76140
|
return;
|
|
76141
76141
|
}
|
|
76142
76142
|
const relative = toRelativeSandboxPath(options.cwd, filePath);
|
|
@@ -76147,8 +76147,8 @@ function resolvePatchFileOps(options) {
|
|
|
76147
76147
|
encoding: "utf8"
|
|
76148
76148
|
});
|
|
76149
76149
|
},
|
|
76150
|
-
remove: (filePath) =>
|
|
76151
|
-
mkdirp: (dir) =>
|
|
76150
|
+
remove: (filePath) => fsPromises.rm(filePath),
|
|
76151
|
+
mkdirp: (dir) => fsPromises.mkdir(dir, { recursive: true }).then(() => {})
|
|
76152
76152
|
};
|
|
76153
76153
|
}
|
|
76154
76154
|
async function ensureDir(filePath, ops) {
|
|
@@ -76410,7 +76410,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
|
|
|
76410
76410
|
const MAX_LOOP_WARNING_KEYS = 256;
|
|
76411
76411
|
let beforeToolCallRuntimePromise = null;
|
|
76412
76412
|
function loadBeforeToolCallRuntime() {
|
|
76413
|
-
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-
|
|
76413
|
+
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-B079pVah.js");
|
|
76414
76414
|
return beforeToolCallRuntimePromise;
|
|
76415
76415
|
}
|
|
76416
76416
|
function buildAdjustedParamsKey(params) {
|
|
@@ -76648,7 +76648,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
|
|
|
76648
76648
|
if (!pathParam || !newText) throw err;
|
|
76649
76649
|
try {
|
|
76650
76650
|
const absolutePath = resolveHostEditPath(root, pathParam);
|
|
76651
|
-
const content = await
|
|
76651
|
+
const content = await fsPromises.readFile(absolutePath, "utf-8");
|
|
76652
76652
|
const hasNew = content.includes(newText);
|
|
76653
76653
|
const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
|
|
76654
76654
|
if (hasNew && !stillHasOld) return {
|
|
@@ -77130,14 +77130,14 @@ function createSandboxEditOperations(params) {
|
|
|
77130
77130
|
}
|
|
77131
77131
|
async function writeHostFile(absolutePath, content) {
|
|
77132
77132
|
const resolved = path.resolve(absolutePath);
|
|
77133
|
-
await
|
|
77134
|
-
await
|
|
77133
|
+
await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
77134
|
+
await fsPromises.writeFile(resolved, content, "utf-8");
|
|
77135
77135
|
}
|
|
77136
77136
|
function createHostWriteOperations(root, options) {
|
|
77137
77137
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
77138
77138
|
mkdir: async (dir) => {
|
|
77139
77139
|
const resolved = path.resolve(dir);
|
|
77140
|
-
await
|
|
77140
|
+
await fsPromises.mkdir(resolved, { recursive: true });
|
|
77141
77141
|
},
|
|
77142
77142
|
writeFile: writeHostFile
|
|
77143
77143
|
};
|
|
@@ -77150,7 +77150,7 @@ function createHostWriteOperations(root, options) {
|
|
|
77150
77150
|
cwd: root,
|
|
77151
77151
|
root
|
|
77152
77152
|
});
|
|
77153
|
-
await
|
|
77153
|
+
await fsPromises.mkdir(resolved, { recursive: true });
|
|
77154
77154
|
},
|
|
77155
77155
|
writeFile: async (absolutePath, content) => {
|
|
77156
77156
|
await writeFileWithinRoot({
|
|
@@ -77166,12 +77166,12 @@ function createHostEditOperations(root, options) {
|
|
|
77166
77166
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
77167
77167
|
readFile: async (absolutePath) => {
|
|
77168
77168
|
const resolved = path.resolve(absolutePath);
|
|
77169
|
-
return await
|
|
77169
|
+
return await fsPromises.readFile(resolved);
|
|
77170
77170
|
},
|
|
77171
77171
|
writeFile: writeHostFile,
|
|
77172
77172
|
access: async (absolutePath) => {
|
|
77173
77173
|
const resolved = path.resolve(absolutePath);
|
|
77174
|
-
await
|
|
77174
|
+
await fsPromises.access(resolved);
|
|
77175
77175
|
}
|
|
77176
77176
|
};
|
|
77177
77177
|
return {
|
|
@@ -78009,7 +78009,7 @@ async function repairSessionFileIfNeeded(params) {
|
|
|
78009
78009
|
};
|
|
78010
78010
|
let content;
|
|
78011
78011
|
try {
|
|
78012
|
-
content = await
|
|
78012
|
+
content = await fsPromises.readFile(sessionFile, "utf-8");
|
|
78013
78013
|
} catch (err) {
|
|
78014
78014
|
if (err?.code === "ENOENT") return {
|
|
78015
78015
|
repaired: false,
|
|
@@ -78057,15 +78057,15 @@ async function repairSessionFileIfNeeded(params) {
|
|
|
78057
78057
|
const backupPath = `${sessionFile}.bak-${process.pid}-${Date.now()}`;
|
|
78058
78058
|
const tmpPath = `${sessionFile}.repair-${process.pid}-${Date.now()}.tmp`;
|
|
78059
78059
|
try {
|
|
78060
|
-
const stat = await
|
|
78061
|
-
await
|
|
78062
|
-
if (stat) await
|
|
78063
|
-
await
|
|
78064
|
-
if (stat) await
|
|
78065
|
-
await
|
|
78060
|
+
const stat = await fsPromises.stat(sessionFile).catch(() => null);
|
|
78061
|
+
await fsPromises.writeFile(backupPath, content, "utf-8");
|
|
78062
|
+
if (stat) await fsPromises.chmod(backupPath, stat.mode);
|
|
78063
|
+
await fsPromises.writeFile(tmpPath, cleaned, "utf-8");
|
|
78064
|
+
if (stat) await fsPromises.chmod(tmpPath, stat.mode);
|
|
78065
|
+
await fsPromises.rename(tmpPath, sessionFile);
|
|
78066
78066
|
} catch (err) {
|
|
78067
78067
|
try {
|
|
78068
|
-
await
|
|
78068
|
+
await fsPromises.unlink(tmpPath);
|
|
78069
78069
|
} catch (cleanupErr) {
|
|
78070
78070
|
params.warn?.(`session file repair cleanup failed: ${cleanupErr instanceof Error ? cleanupErr.message : "unknown error"} (${path.basename(tmpPath)})`);
|
|
78071
78071
|
}
|
|
@@ -79837,7 +79837,7 @@ async function prewarmSessionFile(sessionFile) {
|
|
|
79837
79837
|
if (!isSessionManagerCacheEnabled()) return;
|
|
79838
79838
|
if (isSessionManagerCached(sessionFile)) return;
|
|
79839
79839
|
try {
|
|
79840
|
-
const handle = await
|
|
79840
|
+
const handle = await fsPromises.open(sessionFile, "r");
|
|
79841
79841
|
try {
|
|
79842
79842
|
const buffer = Buffer$1.alloc(4096);
|
|
79843
79843
|
await handle.read(buffer, 0, buffer.length, 0);
|
|
@@ -80204,7 +80204,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
80204
80204
|
} catch (err) {
|
|
80205
80205
|
return fail(describeUnknownError(err));
|
|
80206
80206
|
}
|
|
80207
|
-
await
|
|
80207
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
80208
80208
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
80209
80209
|
const sandbox = await resolveSandboxContext({
|
|
80210
80210
|
config: params.config,
|
|
@@ -80212,7 +80212,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
80212
80212
|
workspaceDir: resolvedWorkspace
|
|
80213
80213
|
});
|
|
80214
80214
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
80215
|
-
await
|
|
80215
|
+
await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
|
|
80216
80216
|
await ensureSessionHeader({
|
|
80217
80217
|
sessionFile: params.sessionFile,
|
|
80218
80218
|
sessionId: params.sessionId,
|
|
@@ -81097,12 +81097,12 @@ function getQueuedFileWriter(writers, filePath) {
|
|
|
81097
81097
|
const existing = writers.get(filePath);
|
|
81098
81098
|
if (existing) return existing;
|
|
81099
81099
|
const dir = path.dirname(filePath);
|
|
81100
|
-
const ready =
|
|
81100
|
+
const ready = fsPromises.mkdir(dir, { recursive: true }).catch(() => void 0);
|
|
81101
81101
|
let queue = Promise.resolve();
|
|
81102
81102
|
const writer = {
|
|
81103
81103
|
filePath,
|
|
81104
81104
|
write: (line) => {
|
|
81105
|
-
queue = queue.then(() => ready).then(() =>
|
|
81105
|
+
queue = queue.then(() => ready).then(() => fsPromises.appendFile(filePath, line, "utf8")).catch(() => void 0);
|
|
81106
81106
|
}
|
|
81107
81107
|
};
|
|
81108
81108
|
writers.set(filePath, writer);
|
|
@@ -84020,7 +84020,7 @@ async function prepareSessionManagerForRun(params) {
|
|
|
84020
84020
|
return;
|
|
84021
84021
|
}
|
|
84022
84022
|
if (params.hadSessionFile && header && !hasAssistant) {
|
|
84023
|
-
await
|
|
84023
|
+
await fsPromises.writeFile(params.sessionFile, "", "utf-8");
|
|
84024
84024
|
sm.fileEntries = [header];
|
|
84025
84025
|
sm.byId?.clear?.();
|
|
84026
84026
|
sm.labelsById?.clear?.();
|
|
@@ -84738,7 +84738,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
84738
84738
|
const prevCwd = process.cwd();
|
|
84739
84739
|
const runAbortController = new AbortController();
|
|
84740
84740
|
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"}`);
|
|
84741
|
-
await
|
|
84741
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
84742
84742
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
84743
84743
|
const sandbox = await resolveSandboxContext({
|
|
84744
84744
|
config: params.config,
|
|
@@ -84746,7 +84746,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
84746
84746
|
workspaceDir: resolvedWorkspace
|
|
84747
84747
|
});
|
|
84748
84748
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
84749
|
-
await
|
|
84749
|
+
await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
|
|
84750
84750
|
let restoreSkillEnv;
|
|
84751
84751
|
process.chdir(effectiveWorkspace);
|
|
84752
84752
|
try {
|
|
@@ -85016,7 +85016,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
85016
85016
|
sessionFile: params.sessionFile,
|
|
85017
85017
|
warn: (message) => log$3.warn(message)
|
|
85018
85018
|
});
|
|
85019
|
-
const hadSessionFile = await
|
|
85019
|
+
const hadSessionFile = await fsPromises.stat(params.sessionFile).then(() => true).catch(() => false);
|
|
85020
85020
|
const transcriptPolicy = resolveTranscriptPolicy({
|
|
85021
85021
|
modelApi: params.model?.api,
|
|
85022
85022
|
provider: params.provider,
|
|
@@ -86145,7 +86145,7 @@ async function runEmbeddedPiAgent(params) {
|
|
|
86145
86145
|
const copilotAuthRetry = authRetryPending;
|
|
86146
86146
|
authRetryPending = false;
|
|
86147
86147
|
attemptedThinking.add(thinkLevel);
|
|
86148
|
-
await
|
|
86148
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
86149
86149
|
const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
|
|
86150
86150
|
const attempt = await runEmbeddedAttempt({
|
|
86151
86151
|
sessionId: params.sessionId,
|
|
@@ -86951,7 +86951,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
86951
86951
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
86952
86952
|
let subagentRegistryRuntimePromise = null;
|
|
86953
86953
|
function loadSubagentRegistryRuntime() {
|
|
86954
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
86954
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-DVomlbm6.js");
|
|
86955
86955
|
return subagentRegistryRuntimePromise;
|
|
86956
86956
|
}
|
|
86957
86957
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|