@termix-it/cryptoclaw 1.1.7 → 1.1.9
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-CvCASRYY.js → accounts-7nNRr4R3.js} +1 -1
- package/dist/{accounts-Du96Wx8V.js → accounts-BE0b9CWs.js} +1 -1
- package/dist/{accounts-hPtcpdFk.js → accounts-BIr_ieyH.js} +1 -1
- package/dist/{accounts-LGj1Il6r.js → accounts-BcrjW3D1.js} +1 -1
- package/dist/{accounts-Bdbf4Fn_.js → accounts-CKpnUMZd.js} +16 -16
- package/dist/{accounts-BkK7T7q3.js → accounts-yWl6UnE5.js} +7 -7
- package/dist/{acp-cli-BVLYN9b6.js → acp-cli-BkRJvbhG.js} +8 -8
- package/dist/{active-listener-CJdR33z9.js → active-listener-ClXqZUsD.js} +1 -1
- package/dist/{agent-scope-DnGYstsz.js → agent-scope-CRf0l_Gq.js} +17 -17
- package/dist/{agents-DmV9pcSX.js → agents-DF9-Gawd.js} +14 -14
- package/dist/{agents.config-BlbII3kh.js → agents.config-D-kz_GD7.js} +2 -2
- package/dist/{api-key-rotation-bH-pRnX0.js → api-key-rotation-C20s2VP6.js} +1 -1
- package/dist/{api-key-rotation-DX2h8ORX.js → api-key-rotation-CUJC6xSi.js} +2 -2
- package/dist/{audio-preflight-ZycldM-G.js → audio-preflight--MDRrrlB.js} +33 -33
- package/dist/{audio-preflight-BxFoXiPf.js → audio-preflight-Det_pb9p.js} +34 -34
- package/dist/{audio-transcription-runner-DU6wV8vt.js → audio-transcription-runner-CgLX4N3r.js} +12 -12
- package/dist/{audio-transcription-runner-D1MyUZ7c.js → audio-transcription-runner-DKJsRpdc.js} +23 -23
- package/dist/{audit-B5zuu-5Z.js → audit-B-SXg-Xk.js} +29 -29
- package/dist/{audit-membership-runtime-Dg3H6a5z.js → audit-membership-runtime-Ch2lLD_u.js} +5 -5
- package/dist/{auth-22wVQqM3.js → auth-XpPQf9A8.js} +1 -1
- package/dist/{auth-choice-MPAsBFfw.js → auth-choice-CLs5WpL3.js} +11 -11
- package/dist/{auth-choice-CEgBDcRt.js → auth-choice-DGDwkTV6.js} +13 -13
- package/dist/{auth-choice.apply-helpers-DXntDnow.js → auth-choice.apply-helpers-lwbv0OFA.js} +1 -1
- package/dist/{auth-profiles-O2Q8_o0a.js → auth-profiles-Dhb7Y6H5.js} +16 -16
- package/dist/{auth-token-Jtjowoeg.js → auth-token-B8r2bVLN.js} +1 -1
- package/dist/{banner-CjhJhSHE.js → banner-CxQq-XAy.js} +2 -2
- package/dist/{bonjour-discovery-BrgT_UZ5.js → bonjour-discovery-BG6bPBFk.js} +1 -1
- package/dist/{browser-cli-DhGYbRc3.js → browser-cli-Bs9Jn2SN.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +52 -52
- package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +52 -52
- package/dist/bundled/soul-evil/handler.js +5 -5
- package/dist/{call-DUvxsaBy.js → call-d1gA727i.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-1e3thcpb.js → channel-account-context-Crd0PQwN.js} +5 -5
- package/dist/{channel-activity-DvY5-NBa.js → channel-activity-32lmgAZH.js} +3 -3
- package/dist/{channel-activity-BdjzKjf6.js → channel-activity-I7fJP8eL.js} +1 -1
- package/dist/{channel-options-uHVlMBJK.js → channel-options-COkismPi.js} +3 -3
- package/dist/{channel-selection-H4NMMvR3.js → channel-selection-BgyyrS1w.js} +1 -1
- package/dist/{channel-web-v-nG1mnb.js → channel-web-DZGV2k-s.js} +17 -17
- package/dist/{channels-cli-CaRBsVKj.js → channels-cli-DIC4XXvf.js} +93 -93
- package/dist/{channels-status-issues-CUJB3e53.js → channels-status-issues-e73oAXc5.js} +1 -1
- package/dist/{chrome-BDn3oCxA.js → chrome-CtEQV_6p.js} +26 -26
- package/dist/{chrome-CYBD3o7s.js → chrome-dfA2MJQH.js} +4 -4
- package/dist/{clawbot-cli-DQDZpHp6.js → clawbot-cli-B--Pll5v.js} +11 -11
- package/dist/{cli-CnYD8U_2.js → cli-Df4l1wtv.js} +73 -73
- package/dist/{client-DPmb6CIu.js → client-BEF5fXj0.js} +2 -2
- package/dist/{command-registry-CSJb-2Si.js → command-registry-CBfNNhgy.js} +11 -11
- package/dist/{command-secret-targets-DjEo9W7_.js → command-secret-targets-CnULpcUz.js} +4 -4
- package/dist/{commands-CUPc3v8D.js → commands-NJXpIW-o.js} +1 -1
- package/dist/{commands-registry-C3lrGFPc.js → commands-registry-FnGtnvb0.js} +4 -4
- package/dist/{commands-registry-BLcZaG1W.js → commands-registry-leOuyQey.js} +3 -3
- package/dist/{completion-cli-GV-mihuA.js → completion-cli-Bai3pUlw.js} +1 -1
- package/dist/{completion-cli-BpRlBZPa.js → completion-cli-FP9HAEQ3.js} +13 -13
- package/dist/{config-cli-BGy3uFX6.js → config-cli-9yew-sxg.js} +7 -7
- package/dist/{config-guard-CiLylaoa.js → config-guard-QxrUunD8.js} +3 -3
- package/dist/{config-validation-CmNLlf8O.js → config-validation-XC8HKQ95.js} +3 -3
- package/dist/{configure-Dcjc_rvn.js → configure-DeAtHK8r.js} +17 -17
- package/dist/{control-ui-assets-DsgdrhIz.js → control-ui-assets-C08JRwwL.js} +1 -1
- package/dist/{cron-cli-C0KJ0GIR.js → cron-cli-TmXvhnuy.js} +11 -11
- package/dist/{daemon-cli-DVxXbSSo.js → daemon-cli-CxdLAg0T.js} +15 -15
- package/dist/{daemon-install-Cwmezi6s.js → daemon-install-Z0aYOW9C.js} +4 -4
- package/dist/{daemon-install-helpers-BAt1F-Sd.js → daemon-install-helpers-DoeVkj6M.js} +11 -11
- package/dist/{deliver-CIws33al.js → deliver-32OxViWG.js} +20 -20
- package/dist/{deliver-g75DXZ54.js → deliver-KC6M1Po5.js} +7 -7
- package/dist/deliver-runtime-C5J_x4jO.js +62 -0
- package/dist/deliver-runtime-DGYhS7K1.js +37 -0
- package/dist/deps-send-discord.runtime-BJmezHoH.js +27 -0
- package/dist/{deps-send-discord.runtime-BpCYDmRD.js → deps-send-discord.runtime-C2JzTkWt.js} +16 -16
- package/dist/deps-send-imessage.runtime-BFk4Fvrd.js +36 -0
- package/dist/deps-send-imessage.runtime-Dsq-J7FK.js +26 -0
- package/dist/deps-send-signal.runtime-2kRNCAkm.js +25 -0
- package/dist/deps-send-signal.runtime-Lw_dTkGz.js +35 -0
- package/dist/deps-send-slack.runtime-DoM54spr.js +23 -0
- package/dist/{deps-send-slack.runtime-CESru84F.js → deps-send-slack.runtime-Ucy4geO1.js} +14 -14
- package/dist/deps-send-telegram.runtime-DGtmyBk2.js +28 -0
- package/dist/{deps-send-telegram.runtime-BJGQ2OvJ.js → deps-send-telegram.runtime-DHzRQJe0.js} +16 -16
- package/dist/deps-send-whatsapp.runtime-B_ZiouDf.js +61 -0
- package/dist/deps-send-whatsapp.runtime-CvFgs4NK.js +120 -0
- package/dist/{devices-cli-wlLcQp00.js → devices-cli-Cez-Kjzm.js} +8 -8
- package/dist/{diagnostic-DUVtQcqK.js → diagnostic-DlgnWiS3.js} +1 -1
- package/dist/{diagnostic-tCJa7Lw4.js → diagnostic-UO82MQjo.js} +2 -2
- package/dist/{diagnostics-CKx5Fdba.js → diagnostics-B9N9Gclp.js} +5 -5
- package/dist/{directory-cli-DKKgOcpZ.js → directory-cli-DElz98Vj.js} +7 -7
- package/dist/{dns-cli-D1chgoht.js → dns-cli-NR3uBIKu.js} +5 -5
- package/dist/{dock-BApnjSMS.js → dock-DhwktiRh.js} +4 -4
- package/dist/{docs-cli-BvOheJtP.js → docs-cli-DL6UVBO7.js} +4 -4
- package/dist/{doctor-completion-CUfmZ2QW.js → doctor-completion-BQBZQyQq.js} +1 -1
- package/dist/{doctor-completion-C-EngqIL.js → doctor-completion-CCNHTpp9.js} +2 -2
- package/dist/{doctor-config-flow-CoBBtWrG.js → doctor-config-flow-CN_hFkSO.js} +15 -15
- package/dist/{enable-D4na731V.js → enable-DTsxqYdj.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{plugin-sdk/errors-x0EvNKYN.js → errors-BwBpGOBV.js} +1 -1
- package/dist/{exec-approvals-allowlist-CyY44YOj.js → exec-approvals-allowlist-BMnVDBPF.js} +1 -1
- package/dist/{exec-approvals-cli-mrJDJoMt.js → exec-approvals-cli-OEgUH8zR.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-BP-hoGyD.js → exec-safe-bin-runtime-policy-DH8C1i7S.js} +2 -2
- package/dist/{fetch-DpZmzITI.js → fetch-CZCJhSwX.js} +3 -3
- package/dist/{fetch-BAOdAoIM.js → fetch-DozurFmr.js} +5 -5
- package/dist/{fetch-guard-CLZ6u2jq.js → fetch-guard-B5ANJDou.js} +1 -1
- package/dist/{fetch-guard-B158yrdn.js → fetch-guard-XtFb6zM7.js} +2 -2
- package/dist/{frontmatter-BMvyqQHI.js → frontmatter-Cy6ESb-O.js} +3 -3
- package/dist/{fs-safe-CnDw0p6S.js → fs-safe-B5PDQs4d.js} +24 -24
- package/dist/{fs-safe-dXrcaQOs.js → fs-safe-YxZ8RAEw.js} +4 -4
- package/dist/{gateway-cli-Dsw3_ijn.js → gateway-cli-CyeZq5AC.js} +1 -1
- package/dist/{gateway-cli-Bzuh64lS.js → gateway-cli-DLWVlNsd.js} +153 -153
- package/dist/{gateway-rpc-sfxU7DjV.js → gateway-rpc-Cs0KliQu.js} +1 -1
- package/dist/{github-copilot-token-DDa7O18e.js → github-copilot-token-D7knylDF.js} +7 -7
- package/dist/{health-ysQviffW.js → health-DD6PJgN8.js} +11 -11
- package/dist/{hooks-cli-DHi_8Dym.js → hooks-cli-BeB2OkD-.js} +81 -81
- package/dist/{hooks-status-DBxEspfP.js → hooks-status-DyvZhQMV.js} +1 -1
- package/dist/{image-TyVVUbmF.js → image-B2LPzwKF.js} +6 -6
- package/dist/{image-DqLDeq0S.js → image-Cb-G2N6H.js} +5 -5
- package/dist/{image-ops-DQnLLCmy.js → image-ops-CX39q-u7.js} +10 -10
- package/dist/{image-ops-Lq3nZ855.js → image-ops-gm8VfGiD.js} +2 -2
- package/dist/image-runtime-7mmAmEoX.js +56 -0
- package/dist/image-runtime-BL3D208M.js +30 -0
- package/dist/index.js +1 -1
- package/dist/{inspect-DmEOlMyu.js → inspect-DCCTTM2p.js} +4 -4
- package/dist/{install-safe-path-lYB1n1zs.js → install-safe-path-B-vV6gg0.js} +25 -25
- package/dist/{installs-BqdehfDe.js → installs-D2BwpBpI.js} +9 -9
- package/dist/{ipv4-Dw7o7EN4.js → ipv4-B7QK2crX.js} +1 -1
- package/dist/{ir-Dpb1g0jL.js → ir-B7IR3m4T.js} +7 -7
- package/dist/{ir-BFLOrX1v.js → ir-BJoTxOuZ.js} +8 -8
- package/dist/{issue-format-B3rjIDp2.js → issue-format-D_dmhPpa.js} +1 -1
- package/dist/{json-files-Gs9H0Aq3.js → json-files-DKBWexTJ.js} +8 -8
- package/dist/{legacy-names-iGQfUMAW.js → legacy-names-TrN6kryB.js} +1 -1
- package/dist/{lifecycle-core-f8bB01eE.js → lifecycle-core-BdCUsFAO.js} +5 -5
- package/dist/llm-slug-generator.js +52 -52
- package/dist/{logger-DeYjzyXs.js → logger-CV2IWsAW.js} +1 -1
- package/dist/{login-Yxw0ePBs.js → login-ByMSGK1J.js} +3 -3
- package/dist/{login-C0ZsBFpc.js → login-C6CkDgLi.js} +5 -5
- package/dist/{login-qr-BJCPbTFZ.js → login-qr-CDwnwe9P.js} +6 -6
- package/dist/{login-qr-1rURNNTB.js → login-qr-WEr1WQvg.js} +11 -11
- package/dist/{logs-cli-D5fWLF2F.js → logs-cli-skIcVW3V.js} +9 -9
- package/dist/{manager-DSkj7L3Z.js → manager-BWh3BVp1.js} +13 -13
- package/dist/{manager-CLRUN9PX.js → manager-CJIx-nFA.js} +14 -14
- package/dist/{manager-runtime-BxaiDdDE.js → manager-runtime-C21y6GjQ.js} +9 -9
- package/dist/manager-runtime-CJHBIXOb.js +19 -0
- package/dist/{manifest-registry-ZTwWlNy8.js → manifest-registry-B-2nrmVS.js} +1 -1
- package/dist/{memory-cli-1oaIDOW8.js → memory-cli-BKJMqEje.js} +12 -12
- package/dist/{model-4MYhtwmk.js → model-BF-E_mpk.js} +2 -2
- package/dist/{model-catalog-Bq8ljVOk.js → model-catalog-C2xpcL9w.js} +3 -3
- package/dist/{model-picker-MNBPQ3J0.js → model-picker-B_jBkcxo.js} +4 -4
- package/dist/{model-selection-7_ya2Uju.js → model-selection-BiqOlgFe.js} +43 -43
- package/dist/{models-cli-CDfSk6DT.js → models-cli-QTm186Iq.js} +78 -78
- package/dist/{models-config-rHYOUx9N.js → models-config-Bzcv6yHw.js} +6 -6
- package/dist/{models-DT64zDal.js → models-kMN-tUPU.js} +17 -17
- package/dist/{net-WImcDVCL.js → net-B4T9jJmY.js} +2 -2
- package/dist/{node-cli-0d0U2A1N.js → node-cli-pYAcollM.js} +33 -33
- package/dist/{node-command-policy-BsxOgSi5.js → node-command-policy-CEkzpJ-E.js} +1 -1
- package/dist/{node-service-BvafMFan.js → node-service-DoeR9Tg_.js} +1 -1
- package/dist/{nodes-cli-b8Ghnuxt.js → nodes-cli-Bx2ytnbF.js} +16 -16
- package/dist/{nodes-screen-ChMr3Xvv.js → nodes-screen-D4GSrs9P.js} +7 -7
- package/dist/{npm-pack-install-Cq3pNk7b.js → npm-pack-install-CR0ksmYd.js} +18 -18
- package/dist/{npm-resolution-MRSgQLVD.js → npm-resolution-BkWQgNIO.js} +4 -4
- package/dist/{onboard-BJVoYoHZ.js → onboard-BCnqRDky.js} +1 -1
- package/dist/{onboard-BOHGDo4g.js → onboard-CQ-YoTSl.js} +6 -6
- package/dist/{onboard-channels-puO2LD6g.js → onboard-channels-B2GvfCnG.js} +21 -21
- package/dist/{onboard-custom-Cpf2aU9S.js → onboard-custom-DygXBNvm.js} +4 -4
- package/dist/{onboard-helpers-CEIyWqFt.js → onboard-helpers-DBgIqxpx.js} +10 -10
- package/dist/{onboard-hooks-cPtbvxIQ.js → onboard-hooks-CKJoEftC.js} +4 -4
- package/dist/{onboard-remote-BWxqa7D6.js → onboard-remote-eycsmUSY.js} +4 -4
- package/dist/{onboard-skills-BjGs7gMo.js → onboard-skills-qZsTdEYi.js} +4 -4
- package/dist/{onboarding-6IEtOwuP.js → onboarding-BY3YZMkn.js} +16 -16
- package/dist/{onboarding-CsT6rGtX.js → onboarding-DR-2kdRy.js} +3 -3
- package/dist/{onboarding.finalize-DbT65Q0d.js → onboarding.finalize-B_gI9SXJ.js} +87 -87
- package/dist/{onboarding.finalize-DrToeErV.js → onboarding.finalize-CEgugO0l.js} +3 -3
- package/dist/{onboarding.gateway-config-CkT0qEDp.js → onboarding.gateway-config-D0IdOPlC.js} +18 -18
- package/dist/{onboarding.secret-input-C7qPkRfU.js → onboarding.secret-input-B92nv1e5.js} +1 -1
- package/dist/{openai-model-default-C4ZEdxRm.js → openai-model-default-hj3S7o-G.js} +2 -2
- package/dist/{openclaw-root-3A_8MzYe.js → openclaw-root-CcI1kSyI.js} +8 -8
- package/dist/{outbound-C4dZ6V9n.js → outbound-DSVwKSv4.js} +6 -6
- package/dist/{outbound-attachment-CvEoWB03.js → outbound-attachment-CcY_Rg0-.js} +2 -2
- package/dist/{outbound-attachment-BV-XqIuc.js → outbound-attachment-DFjyJ3Np.js} +2 -2
- package/dist/{outbound-ChrgPoxb.js → outbound-ev7SVuPh.js} +3 -3
- package/dist/{pairing-cli-DAiiAM8B.js → pairing-cli-BEwqqs3y.js} +8 -8
- package/dist/{pairing-labels-CGVQ42A3.js → pairing-labels-CAXv-Bhv.js} +1 -1
- package/dist/{pairing-store-W5camsG4.js → pairing-store-Cw7fg9R2.js} +3 -3
- package/dist/{path-alias-guards-CQsCVlSQ.js → path-alias-guards-C74pGxcZ.js} +3 -3
- package/dist/{path-alias-guards-CBjJlK0T.js → path-alias-guards-Gzq1eAOo.js} +1 -1
- package/dist/{path-safety-BrZp6wHv.js → path-safety-Ck76OVAf.js} +1 -1
- package/dist/{paths-DvmtmdGA.js → paths-A42qSVaB.js} +9 -9
- package/dist/{paths-CZ0nrg7g.js → paths-BWg7M5Yy.js} +3 -3
- package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
- package/dist/{pi-embedded-CD6DgdIO.js → pi-embedded-DkdNpxSe.js} +168 -168
- package/dist/{pi-embedded-helpers-B5RhZxjN.js → pi-embedded-helpers-B_qa7ikD.js} +52 -52
- package/dist/{pi-embedded-helpers-66TKj98I.js → pi-embedded-helpers-CU3j5zQw.js} +6 -6
- package/dist/{pi-model-discovery-Bs768Cx7.js → pi-model-discovery-Ci3qWkfz.js} +1 -1
- package/dist/{pi-model-discovery-Cv6-G7zn.js → pi-model-discovery-FwBV8Q5J.js} +7 -7
- package/dist/pi-model-discovery-runtime-BozG-CtU.js +12 -0
- package/dist/{pi-model-discovery-runtime-DEV-guE_.js → pi-model-discovery-runtime-CQWul9Vg.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-BfpR8xeI.js → pi-tools.before-tool-call.runtime-2r6sdUt5.js} +10 -10
- package/dist/{pi-tools.before-tool-call.runtime-gtwRqfD1.js → pi-tools.before-tool-call.runtime-C3GLLjEH.js} +5 -5
- package/dist/{pi-tools.policy-CQSaeIZr.js → pi-tools.policy-DwQdI7Kl.js} +5 -5
- package/dist/{plugin-auto-enable-z-6f3_56.js → plugin-auto-enable-apzoyUq4.js} +3 -3
- package/dist/{plugin-registry-DvUq6zds.js → plugin-registry-B8gsdjW8.js} +3 -3
- package/dist/plugin-sdk/{accounts-C4br4nlZ.js → accounts-BOVsvZ69.js} +3 -3
- package/dist/plugin-sdk/{accounts-DTNnTWpJ.js → accounts-BkuioOq8.js} +2 -2
- package/dist/plugin-sdk/{accounts-BypsQT27.js → accounts-C1Yf8rUO.js} +2 -2
- package/dist/plugin-sdk/{active-listener-B5t82gRU.js → active-listener-CYvTJUbv.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-BFNdrCf9.js → api-key-rotation-CLAvYiCX.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-B7ivxhvF.js → audio-preflight-B1iVdt7A.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-B8OUiy7P.js → audio-transcription-runner-6TQq2i9u.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-Re50ULXH.js → audit-membership-runtime-DS34hPU6.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-Dx1jbA3a.js → channel-activity-BcVbdzzf.js} +3 -3
- package/dist/plugin-sdk/{channel-web-BiTTQ4xr.js → channel-web-CXMt7BY7.js} +18 -18
- package/dist/plugin-sdk/{chrome-wTqnW5U7.js → chrome-DifgiNQb.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-BWv4oM2P.js → commands-registry-BwfAoL8g.js} +4 -4
- package/dist/plugin-sdk/{config-cWsVJMRn.js → config-DdConC4M.js} +7 -7
- package/dist/plugin-sdk/{deliver-Ba8ti0Um.js → deliver-30LL_FDf.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-BzekNyDR.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DAQdyr0A.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-DeN3xqBZ.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BzOTNsH2.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-RJ6do6c_.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-CT8fXkjj.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-B3vpd-GR.js +57 -0
- package/dist/plugin-sdk/{diagnostic-DJkCYiHJ.js → diagnostic-BiLQ5uMU.js} +2 -2
- package/dist/{errors-DqgvfHhI.js → plugin-sdk/errors-C-TFeu_U.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-B4oIrtQU.js → fetch-guard-su5BIIz5.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-BGLuaVDw.js → fs-safe-B0eWdlGT.js} +3 -3
- package/dist/plugin-sdk/{image-D9cX-W4_.js → image-BHgCDBaW.js} +6 -6
- package/dist/plugin-sdk/{image-ops-N60pMFiM.js → image-ops-D5EPN96N.js} +2 -2
- package/dist/plugin-sdk/image-runtime-usFQghD_.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-DvNCG3HQ.js → ir-BVqIWdpl.js} +7 -7
- package/dist/plugin-sdk/{local-roots-DJr1PN3z.js → local-roots-CCfvGuoX.js} +4 -4
- package/dist/plugin-sdk/{logger-COmHOvdm.js → logger-z1vqlUc1.js} +2 -2
- package/dist/plugin-sdk/{login-CoU-pP8D.js → login-1hsZj0g8.js} +4 -4
- package/dist/plugin-sdk/{login-qr-wRFAAkU1.js → login-qr-mIn4oSE6.js} +5 -5
- package/dist/plugin-sdk/{manager-BlnM_iwm.js → manager-CKCJdSeL.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-C8E7uQRc.js +15 -0
- package/dist/plugin-sdk/{outbound-Cw6160wa.js → outbound-DVpHFwMf.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-DWhUVfia.js → outbound-attachment-DXCuJPzV.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-Ck7kqOtM.js → path-alias-guards-Ddj-jk91.js} +1 -1
- package/dist/plugin-sdk/{paths-C_3UIAbs.js → paths-MqZfQzk4.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-3l1dRoEY.js → pi-embedded-helpers-De-tYNO5.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-Bi4ewLKb.js → pi-model-discovery-CmWdgrld.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-BInvqyx7.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DJbnwybV.js → pi-tools.before-tool-call.runtime-DZs_C8RL.js} +4 -4
- package/dist/plugin-sdk/{plugins-Bm4rp8IX.js → plugins-Df9rHggh.js} +4 -4
- package/dist/plugin-sdk/{proxy-fetch-BZAtM2fT.js → proxy-fetch-DxlXp4Yi.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-CslJ6u1B.js → pw-ai-BcFVaXMO.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-BV37X-4s.js → qmd-manager-CgAY74JQ.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-B7JBWi3Y.js → query-expansion-X3iK3wW4.js} +4 -4
- package/dist/plugin-sdk/{redact-DZTeCKgA.js → redact-DIGZ7dEc.js} +1 -1
- package/dist/plugin-sdk/{reply-SL3TFM_1.js → reply-CPlMOjnY.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-8WMGshxA.js → resolve-outbound-target--JkNiVR3.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-CbyBbGss.js → run-with-concurrency-CAg6hblr.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-VulSN6Vo.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-KEv7zH3k.js +19 -0
- package/dist/plugin-sdk/{send-DAZltiIW.js → send-BR0ocVRg.js} +8 -8
- package/dist/plugin-sdk/{send-CnZwc5Xm.js → send-BfMo4yKi.js} +13 -13
- package/dist/plugin-sdk/{send-DGJpvm7n.js → send-BosYVCS8.js} +5 -5
- package/dist/plugin-sdk/{send-DbUkzyXv.js → send-C1N0kX50.js} +7 -7
- package/dist/plugin-sdk/{send-DbhdUm2I.js → send-DyAZa1y0.js} +6 -6
- package/dist/plugin-sdk/{session-Cpth1H2A.js → session-xR2DLzse.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-X5gpohJ1.js → skill-commands-DHOHDbOQ.js} +4 -4
- package/dist/plugin-sdk/{skills-s-HEpPkh.js → skills-LpJmo0DO.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-Bh4gVuZZ.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BrC7vdR-.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-ztQcIAHF.js +16 -0
- package/dist/plugin-sdk/{ssrf-BlFOb1TL.js → ssrf-Ctw5peX0.js} +1 -1
- package/dist/plugin-sdk/{store-DuNHlb8J.js → store-BECFHajU.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-S1tiTKcN.js +52 -0
- package/dist/plugin-sdk/{tables-DBVdEzq2.js → tables-BGPXRfUo.js} +1 -1
- package/dist/plugin-sdk/{target-errors-CX2np2l6.js → target-errors-EppfnloD.js} +2 -2
- package/dist/plugin-sdk/{thinking-B9UJvomD.js → thinking-DwXFSbD_.js} +7 -7
- package/dist/plugin-sdk/{tokens-XT-8y62w.js → tokens-DuRErjk3.js} +1 -1
- package/dist/plugin-sdk/{tool-images-CJ10KuSq.js → tool-images-6BfTarJB.js} +2 -2
- package/dist/plugin-sdk/web-B9un2u9S.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-CgqENBb8.js → whatsapp-actions-k9k_HQg1.js} +17 -17
- package/dist/{plugins-Crz4XiBW.js → plugins-Burzc1_i.js} +10 -10
- package/dist/{plugins-BPdE2epV.js → plugins-DPzGpZa7.js} +2 -2
- package/dist/{plugins-cli-D_HZ8IcN.js → plugins-cli-DzdzJs7b.js} +83 -83
- package/dist/{ports-DfNdy6Sc.js → ports-jMaAsRpr.js} +2 -2
- package/dist/{ports-DGlQBAf1.js → ports-tNwRP0LA.js} +1 -1
- package/dist/{program-CKWx208-.js → program-Rna_eew4.js} +81 -81
- package/dist/{program-context-DkcaWwi4.js → program-context-BfnHzkXT.js} +6 -6
- package/dist/{prompt-select-styled-CbN_Mt7I.js → prompt-select-styled-1nWCPZKF.js} +40 -40
- package/dist/{prompt-select-styled-CMY_nBLN.js → prompt-select-styled-BDi5UBUn.js} +1 -1
- package/dist/{provider-auth-helpers-CrGaU-6B.js → provider-auth-helpers-DlZjYqHx.js} +5 -5
- package/dist/{proxy-env-yDqp-Ahu.js → proxy-env-C05eD8Tt.js} +1 -1
- package/dist/{proxy-env--152Piqf.js → proxy-env-CKsbj01c.js} +1 -1
- package/dist/{proxy-fetch-BNoCHTJq.js → proxy-fetch-C_2Ejh5T.js} +1 -1
- package/dist/{push-apns-BcgP-1tO.js → push-apns-BNZHhyJh.js} +5 -5
- package/dist/{pw-ai-BfVnhdW1.js → pw-ai-BbxaV2Cy.js} +15 -15
- package/dist/{pw-ai-lyRZ2lRj.js → pw-ai-DYmnLtI5.js} +18 -18
- package/dist/{qmd-manager-Q-iay5w2.js → qmd-manager-CtnM6lKC.js} +20 -20
- package/dist/{qmd-manager-CGRr_vXf.js → qmd-manager-JjGGwn8R.js} +11 -11
- package/dist/{qr-cli-M55o9uQ3.js → qr-cli-CiaeVLGo.js} +2 -2
- package/dist/{query-expansion-QQ7-fKJN.js → query-expansion-CGww5_oH.js} +12 -12
- package/dist/{query-expansion-BbZnWoPn.js → query-expansion-DkXzaUOH.js} +6 -6
- package/dist/{redact-DLKBjGbP.js → redact-C-aJRv5O.js} +1 -1
- package/dist/{redact-snapshot-DtttUfNB.js → redact-snapshot-Bg3sMcIL.js} +1 -1
- package/dist/{register.agent-Cb82_m36.js → register.agent-zhueqr8n.js} +94 -94
- package/dist/register.configure-Bi9KnPuo.js +166 -0
- package/dist/{register.maintenance-BpUAzsp4.js → register.maintenance-BoigTo1u.js} +4 -4
- package/dist/{register.maintenance-BPqW1lws.js → register.maintenance-RJM2wCjj.js} +95 -95
- package/dist/{register.message-BPMXTFeN.js → register.message-CnEQThm-.js} +74 -74
- package/dist/{register.onboard-Cehu9gcA.js → register.onboard--1jxOBJy.js} +2 -2
- package/dist/{register.onboard-DJaBbqh_.js → register.onboard-BtBM_7Qe.js} +18 -18
- package/dist/{register.setup-D16BxCi3.js → register.setup-B_O283DR.js} +2 -2
- package/dist/{register.setup-BqX8kJu2.js → register.setup-o2PFpqW-.js} +21 -21
- package/dist/{register.status-health-sessions-Cr554peJ.js → register.status-health-sessions-CVjLnoAQ.js} +88 -88
- package/dist/{register.subclis-CD2aBcEc.js → register.subclis-Cm8zQPce.js} +31 -31
- package/dist/{rpc-C3fo7Fc4.js → rpc-B2top5G1.js} +1 -1
- package/dist/{run-main-DT-sx35e.js → run-main-Bcwtj17t.js} +92 -92
- package/dist/{run-with-concurrency-Cy32RsV5.js → run-with-concurrency-CYTs7gPY.js} +4 -4
- package/dist/{runtime-aCMkJumC.js → runtime-Bwd93vnw.js} +3 -3
- package/dist/{runtime-config-collectors-BArtbEg9.js → runtime-config-collectors-CrW6OjTr.js} +1 -1
- package/dist/runtime-whatsapp-login.runtime-BU92rhCA.js +14 -0
- package/dist/{runtime-whatsapp-login.runtime-BoLTF-OO.js → runtime-whatsapp-login.runtime-D08ghHWe.js} +7 -7
- package/dist/{runtime-whatsapp-outbound.runtime-CQSrwbqD.js → runtime-whatsapp-outbound.runtime-B3NjGGpU.js} +15 -15
- package/dist/runtime-whatsapp-outbound.runtime-DZy-sAPP.js +23 -0
- package/dist/{sandbox-CswRLZuX.js → sandbox-BvR_Auee.js} +18 -18
- package/dist/{sandbox-cli-CvsjCdCm.js → sandbox-cli-myJWqWAa.js} +25 -25
- package/dist/{secrets-cli-6shNNxcY.js → secrets-cli-1xQw45fy.js} +11 -11
- package/dist/{security-cli-aM0KmhSS.js → security-cli-o0C0Tcn_.js} +42 -42
- package/dist/{send-DhC9fy39.js → send-BXBEWheN.js} +5 -5
- package/dist/{send-BsLP4ooQ.js → send-CgUKGlTT.js} +4 -4
- package/dist/{send-rltgPz0P.js → send-ChW15YPB.js} +25 -25
- package/dist/{send-DIjmqe2S.js → send-Cj0LCSvd.js} +7 -7
- package/dist/{send-CFJQjYMY.js → send-CkTGqTX7.js} +11 -11
- package/dist/{send-Br8GGwD9.js → send-CzH87tPi.js} +6 -6
- package/dist/{send-CRTDD5rW.js → send-DDKqu28r.js} +7 -7
- package/dist/{send-DaH87GbQ.js → send-Dtf_Rspz.js} +8 -8
- package/dist/{send-CjE4bDH3.js → send-hOoCA9jX.js} +6 -6
- package/dist/{send-rDDHhjBl.js → send-q-l5fncb.js} +5 -5
- package/dist/{server-pG33jNj1.js → server-BtfPMtk8.js} +20 -20
- package/dist/{server-context-Chb0NTKM.js → server-context-jBMc5KL9.js} +12 -12
- package/dist/{server-lifecycle-B2vW1X8l.js → server-lifecycle-B5N_h0YG.js} +2 -2
- package/dist/{server-middleware-BwS1-Xql.js → server-middleware-Bt0-4Zx7.js} +1 -1
- package/dist/{server-node-events-DKjcwxsN.js → server-node-events-8TZ5uZ7a.js} +74 -74
- package/dist/{service-ByGIhP5D.js → service-CC8D6AOn.js} +15 -15
- package/dist/{session-C-semPd7.js → session-1PuqW42w.js} +1 -1
- package/dist/{session-ZkhbSK-_.js → session-BzKpA5X4.js} +8 -8
- package/dist/{session-utils-DQdPC90P.js → session-utils-B61AjjG6.js} +6 -6
- package/dist/{sessions-_J4_CA-P.js → sessions-D1iVO-At.js} +15 -15
- package/dist/{sessions-ColhCohs.js → sessions-eRTHXGkn.js} +4 -4
- package/dist/{shared-hHKmh3AF.js → shared-3WRMPSAF.js} +3 -3
- package/dist/{shared-ZPmPfnoa.js → shared-D0de8v-p.js} +1 -1
- package/dist/{skill-commands-H-0YJw4z.js → skill-commands-C6S5sumb.js} +5 -5
- package/dist/{skill-commands-BbrUWmMz.js → skill-commands-CIcvUo1A.js} +9 -9
- package/dist/{skill-scanner-C04nRvTZ.js → skill-scanner-CC_bdAdQ.js} +6 -6
- package/dist/{skills-zY2xHnd5.js → skills-DU6_fNPx.js} +22 -22
- package/dist/{skills-BJsPKAnb.js → skills-EgqBDxQ-.js} +3 -3
- package/dist/{skills-cli-Dlle8Jal.js → skills-cli-B62v0B8Y.js} +5 -5
- package/dist/{skills-install-Y62tfBpX.js → skills-install-DNWnoHCI.js} +6 -6
- package/dist/{skills-status-Ck_Xn7qD.js → skills-status-Bnyg73Jn.js} +1 -1
- package/dist/slash-commands.runtime-CXJJf0jq.js +17 -0
- package/dist/{slash-commands.runtime-Chf-kE5X.js → slash-commands.runtime-DZBOZGXG.js} +11 -11
- package/dist/slash-dispatch.runtime-CnDWfnhw.js +57 -0
- package/dist/slash-dispatch.runtime-DwWpNqdA.js +115 -0
- package/dist/{slash-skill-commands.runtime-BJJnGhEx.js → slash-skill-commands.runtime-B4sqth9E.js} +15 -15
- package/dist/slash-skill-commands.runtime-NPMuDGFx.js +21 -0
- package/dist/{status-DX3J1HLf.js → status-CKWYXIIT.js} +27 -27
- package/dist/{status.update-Bt1iuijX.js → status.update-CO_hSO5b.js} +2 -2
- package/dist/{store-C5Xnn6ks.js → store-DcxsUE2f.js} +2 -2
- package/dist/{store-DFGXphHz.js → store-ihYI8Jc3.js} +5 -5
- package/dist/{subagent-registry-D15JW57h.js → subagent-registry-0UHaPcka.js} +149 -149
- package/dist/subagent-registry-runtime-CeHVZoXv.js +115 -0
- package/dist/subagent-registry-runtime-R6EArAuY.js +57 -0
- package/dist/{subsystem-D7UWJNhH.js → subsystem-CEiApUN8.js} +14 -14
- package/dist/{system-cli-C-E7OxVj.js → system-cli-CAm_NHpc.js} +9 -9
- package/dist/{system-run-command-B4X3kEB0.js → system-run-command-Brwa-hul.js} +1 -1
- package/dist/{systemd-Z2v3LHpX.js → systemd-CULbJju8.js} +9 -9
- package/dist/{systemd-hints-DhbLId9K.js → systemd-hints-D9XaooZC.js} +6 -6
- package/dist/{systemd-linger-B6KsEYH6.js → systemd-linger-SLVqtYjz.js} +1 -1
- package/dist/{tables-BjzJIB8C.js → tables-DTb5mzup.js} +1 -1
- package/dist/{tables-3AsJttWw.js → tables-Devzuq-q.js} +1 -1
- package/dist/{tailnet-CrF4jOdB.js → tailnet-KUL9QhBk.js} +1 -1
- package/dist/{target-errors-DXOQGMiV.js → target-errors-D5MoCoCl.js} +4 -4
- package/dist/{target-errors-Bh5rgTYp.js → target-errors-jNfnUab4.js} +2 -2
- package/dist/{thinking-BEanj93W.js → thinking-BJkp7vCP.js} +6 -6
- package/dist/{tokens-D44Sg_H7.js → tokens-tz04P2cO.js} +1 -1
- package/dist/{tool-images-BOfCiGuh.js → tool-images-CEFl9wsx.js} +1 -1
- package/dist/{tool-images-hnyXsODy.js → tool-images-DRyUUf-X.js} +2 -2
- package/dist/{tui-CkQCGUpD.js → tui-CRYLJSVD.js} +6 -6
- package/dist/{tui-cli-BpyTGK67.js → tui-cli-DB82w6p8.js} +32 -32
- package/dist/{update-BB9JebC9.js → update-B1gR_Fep.js} +3 -3
- package/dist/{update-cli-DqrqytDz.js → update-cli-BDOF9xoT.js} +4 -4
- package/dist/{update-cli-JuUmzkri.js → update-cli-C1DALvzD.js} +104 -104
- package/dist/{update-runner-Dq6iBeiC.js → update-runner-Bw1MljLh.js} +16 -16
- package/dist/{utils-BYUbDw97.js → utils-BFS4zK3g.js} +7 -7
- package/dist/web-BVIL9iG1.js +119 -0
- package/dist/{web-C2ixiS4L.js → web-fbVaDaVW.js} +56 -56
- package/dist/{webhooks-cli-BY1niEMR.js → webhooks-cli-B3iWJR9P.js} +6 -6
- package/dist/{whatsapp-actions-BuO3DPPZ.js → whatsapp-actions-B53LlFl5.js} +17 -17
- package/dist/{whatsapp-actions-D9Mgw_FD.js → whatsapp-actions-CMHMrQzp.js} +22 -22
- package/dist/{with-timeout-a_kBhS5N.js → with-timeout-B5BHCMsa.js} +3 -3
- package/dist/{workspace-cnS4Cq6e.js → workspace-D6GL2anS.js} +21 -21
- package/dist/{workspace-CiGqHbhA.js → workspace-D8DzE384.js} +1 -1
- package/dist/{workspace-dirs-C9jwceid.js → workspace-dirs-_RQ0G-Vf.js} +1 -1
- package/dist/{wsl-DCEQRUtE.js → wsl-CzuO5aHB.js} +2 -2
- package/extensions/blockchain/package.json +1 -3
- package/package.json +1 -1
- package/dist/deliver-runtime-D0Xl5o_r.js +0 -37
- package/dist/deliver-runtime-FL5_bhMe.js +0 -62
- package/dist/deps-send-discord.runtime-DW7EsqB3.js +0 -27
- package/dist/deps-send-imessage.runtime-C9MPsbI1.js +0 -26
- package/dist/deps-send-imessage.runtime-Hx8SNVrk.js +0 -36
- package/dist/deps-send-signal.runtime-5-zcMae_.js +0 -35
- package/dist/deps-send-signal.runtime-Cx7m-MT1.js +0 -25
- package/dist/deps-send-slack.runtime-gSE6on2e.js +0 -23
- package/dist/deps-send-telegram.runtime-DWF59L9O.js +0 -28
- package/dist/deps-send-whatsapp.runtime-CtO9Pt8F.js +0 -120
- package/dist/deps-send-whatsapp.runtime-DQqdJ-WY.js +0 -61
- package/dist/image-runtime-BzWmZQi8.js +0 -30
- package/dist/image-runtime-Dny90w7z.js +0 -56
- package/dist/manager-runtime-BN3RhlSg.js +0 -19
- package/dist/pi-model-discovery-runtime-DsYnhIro.js +0 -12
- package/dist/plugin-sdk/deliver-runtime-Qmy3w63D.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-Db6_7ZAc.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-C_EYS_sH.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-DK121Bh0.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-AaWSr7fe.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-Dylx-xTp.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-81uWD-yI.js +0 -57
- package/dist/plugin-sdk/image-runtime-BBiuMz7E.js +0 -25
- package/dist/plugin-sdk/manager-runtime-Ccj_7Z0c.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-jmgr21i6.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-_T4-3_NI.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DDvDCva6.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-BoVuWmR3.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-eYhiYLqH.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-CyuOIQN-.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-BQN30Vt4.js +0 -52
- package/dist/plugin-sdk/web-ZPe2mrXE.js +0 -56
- package/dist/register.configure-BWs4EgtE.js +0 -166
- package/dist/runtime-whatsapp-login.runtime-DF2whIjt.js +0 -14
- package/dist/runtime-whatsapp-outbound.runtime-9BSn7L2P.js +0 -23
- package/dist/slash-commands.runtime-CxlppU-H.js +0 -17
- package/dist/slash-dispatch.runtime-BaKhHnG2.js +0 -57
- package/dist/slash-dispatch.runtime-ByKS2u9M.js +0 -115
- package/dist/slash-skill-commands.runtime-CyXuXpqz.js +0 -21
- package/dist/subagent-registry-runtime-B12EGepi.js +0 -115
- package/dist/subagent-registry-runtime-BocGtsA4.js +0 -57
- package/dist/web-BA84rOuO.js +0 -119
|
@@ -4,111 +4,111 @@ import { i as defaultRuntime, r as createNonExitingRuntime } from "./ansi-D8xB67
|
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-sfEQP4fF.js";
|
|
5
5
|
import { t as parseBooleanValue$1 } from "./boolean-ydSOedIP.js";
|
|
6
6
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
7
|
-
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-
|
|
7
|
+
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-Dhb7Y6H5.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-MESnUO9S.js";
|
|
9
|
-
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-
|
|
9
|
+
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-CRf0l_Gq.js";
|
|
10
10
|
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-CC77ya0a.js";
|
|
11
11
|
import { C as sliceUtf16Safe, E as isPlainObject, S as sleep$1, T as truncateUtf16Safe, b as shortenHomeInString, c as escapeRegExp, p as normalizeE164, r as clampInt, t as CONFIG_DIR, u as isRecord$1, v as resolveUserPath, x as shortenHomePath } from "./utils-BnC3HGtm.js";
|
|
12
|
-
import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveOpenClawPackageRoot } from "./openclaw-root-
|
|
12
|
+
import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveOpenClawPackageRoot } from "./openclaw-root-CcI1kSyI.js";
|
|
13
13
|
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-BX552_3d.js";
|
|
14
14
|
import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-DQcHcbQy.js";
|
|
15
15
|
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-CwKS6RIg.js";
|
|
16
16
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-DS1iTsaA.js";
|
|
17
17
|
import { n as isDangerousHostEnvVarName } from "./host-env-security-DkAVVuaw.js";
|
|
18
18
|
import { t as VERSION } from "./version-5hWIVAVM.js";
|
|
19
|
-
import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverOpenClawPlugins } from "./manifest-registry-
|
|
20
|
-
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-
|
|
19
|
+
import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverOpenClawPlugins } from "./manifest-registry-B-2nrmVS.js";
|
|
20
|
+
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-DhwktiRh.js";
|
|
21
21
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-BsDJWzgM.js";
|
|
22
22
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-CWxXXI1r.js";
|
|
23
|
-
import { i as buildModelAliasLines, n as resolveModel } from "./model-
|
|
24
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
25
|
-
import { a as 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-
|
|
26
|
-
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-
|
|
27
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
23
|
+
import { i as buildModelAliasLines, n as resolveModel } from "./model-BF-E_mpk.js";
|
|
24
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Ci3qWkfz.js";
|
|
25
|
+
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-DlgnWiS3.js";
|
|
26
|
+
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-EgqBDxQ-.js";
|
|
27
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-C74pGxcZ.js";
|
|
28
28
|
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-DOGMhglv.js";
|
|
29
|
-
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-
|
|
30
|
-
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-
|
|
31
|
-
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-
|
|
32
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
33
|
-
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
34
|
-
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-
|
|
35
|
-
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-
|
|
29
|
+
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-D1iVO-At.js";
|
|
30
|
+
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-DPzGpZa7.js";
|
|
31
|
+
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-yWl6UnE5.js";
|
|
32
|
+
import { r as resolveIMessageAccount } from "./accounts-BcrjW3D1.js";
|
|
33
|
+
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BE0b9CWs.js";
|
|
34
|
+
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-CgUKGlTT.js";
|
|
35
|
+
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-CkTGqTX7.js";
|
|
36
36
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, t as resolveDefaultSessionStorePath } from "./paths-0JI_ndQl.js";
|
|
37
37
|
import { i as normalizeInputProvenance, n as applyInputProvenanceToUserMessage, r as hasInterSessionUserProvenance } from "./input-provenance-C6EIah7A.js";
|
|
38
|
-
import { r as writeJsonAtomic } from "./json-files-
|
|
38
|
+
import { r as writeJsonAtomic } from "./json-files-DKBWexTJ.js";
|
|
39
39
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-Cso7-m1w.js";
|
|
40
|
-
import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-
|
|
41
|
-
import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-
|
|
42
|
-
import { r as isLoopbackHost } from "./net-
|
|
40
|
+
import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-BEF5fXj0.js";
|
|
41
|
+
import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-d1gA727i.js";
|
|
42
|
+
import { r as isLoopbackHost } from "./net-B4T9jJmY.js";
|
|
43
43
|
import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-CZ0gzXYo.js";
|
|
44
44
|
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-Bvd3SiSa.js";
|
|
45
|
-
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-
|
|
45
|
+
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-B5BHCMsa.js";
|
|
46
46
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-B3f7Ri2X.js";
|
|
47
|
-
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-
|
|
47
|
+
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-KC6M1Po5.js";
|
|
48
48
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-DiKdrXM6.js";
|
|
49
|
-
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-
|
|
50
|
-
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-
|
|
51
|
-
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-
|
|
52
|
-
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-
|
|
53
|
-
import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-
|
|
54
|
-
import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-
|
|
55
|
-
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-
|
|
49
|
+
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-CX39q-u7.js";
|
|
50
|
+
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-Dtf_Rspz.js";
|
|
51
|
+
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-CU3j5zQw.js";
|
|
52
|
+
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-BvR_Auee.js";
|
|
53
|
+
import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-dfA2MJQH.js";
|
|
54
|
+
import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-jBMc5KL9.js";
|
|
55
|
+
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-A42qSVaB.js";
|
|
56
56
|
import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-BWh_1W9T.js";
|
|
57
57
|
import { i as formatUncaughtError, r as formatErrorMessage, s as readErrorName } from "./errors-By-4EgM8.js";
|
|
58
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
59
|
-
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env
|
|
60
|
-
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
61
|
-
import { i as resolveLsofCommandSync } from "./ports-
|
|
62
|
-
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-
|
|
58
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-B5PDQs4d.js";
|
|
59
|
+
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-CKsbj01c.js";
|
|
60
|
+
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-ihYI8Jc3.js";
|
|
61
|
+
import { i as resolveLsofCommandSync } from "./ports-jMaAsRpr.js";
|
|
62
|
+
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-CEFl9wsx.js";
|
|
63
63
|
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-pYqswKJZ.js";
|
|
64
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
65
|
-
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-
|
|
66
|
-
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-
|
|
67
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
68
|
-
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-
|
|
69
|
-
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-
|
|
64
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-Bzcv6yHw.js";
|
|
65
|
+
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-BMnVDBPF.js";
|
|
66
|
+
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-DH8C1i7S.js";
|
|
67
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-C2xpcL9w.js";
|
|
68
|
+
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-CZCJhSwX.js";
|
|
69
|
+
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-DKJsRpdc.js";
|
|
70
70
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-CGz7ZD6t.js";
|
|
71
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
72
|
-
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-
|
|
71
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-B5ANJDou.js";
|
|
72
|
+
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-Cb-G2N6H.js";
|
|
73
73
|
import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-D0sL9f1X.js";
|
|
74
74
|
import { t as makeProxyFetch } from "./proxy-fetch-D-ure8qR.js";
|
|
75
|
-
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-
|
|
76
|
-
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-
|
|
77
|
-
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-
|
|
78
|
-
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-
|
|
75
|
+
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-BJoTxOuZ.js";
|
|
76
|
+
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-D5MoCoCl.js";
|
|
77
|
+
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-NJXpIW-o.js";
|
|
78
|
+
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-leOuyQey.js";
|
|
79
79
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-ClO55vUs.js";
|
|
80
80
|
import { n as formatTimeAgo } from "./format-relative-TU8IDQdE.js";
|
|
81
|
-
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-
|
|
81
|
+
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-Cw7fg9R2.js";
|
|
82
82
|
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-BeSUKnM9.js";
|
|
83
|
-
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-
|
|
83
|
+
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-D4GSrs9P.js";
|
|
84
84
|
import { t as killProcessTree$1 } from "./kill-tree-CHHp_N3W.js";
|
|
85
|
-
import { t as formatExecCommand } from "./system-run-command-
|
|
85
|
+
import { t as formatExecCommand } from "./system-run-command-Brwa-hul.js";
|
|
86
86
|
import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-CsfMqnJF.js";
|
|
87
87
|
import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-C9ZBnsdW.js";
|
|
88
|
-
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-
|
|
88
|
+
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-B61AjjG6.js";
|
|
89
89
|
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-DpRTkZDz.js";
|
|
90
90
|
import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-EdDmn0JB.js";
|
|
91
|
-
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-
|
|
92
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
91
|
+
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-C6S5sumb.js";
|
|
92
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-I7fJP8eL.js";
|
|
93
93
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-D4kbhq3K.js";
|
|
94
94
|
import { n as normalizePollInput } from "./polls-BOHtEDuW.js";
|
|
95
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
95
|
+
import { t as convertMarkdownTables } from "./tables-Devzuq-q.js";
|
|
96
96
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-94o94Cc7.js";
|
|
97
97
|
import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-D34qqlHi.js";
|
|
98
|
-
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-
|
|
99
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
100
|
-
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-
|
|
101
|
-
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-
|
|
98
|
+
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-BgyyrS1w.js";
|
|
99
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-apzoyUq4.js";
|
|
100
|
+
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-BXBEWheN.js";
|
|
101
|
+
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-CzH87tPi.js";
|
|
102
102
|
import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined$1 } from "./allow-from-CeTt9ZgH.js";
|
|
103
103
|
import { t as parseTimeoutMs } from "./parse-timeout-widuTpq9.js";
|
|
104
104
|
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-BP8735PS.js";
|
|
105
|
-
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-
|
|
105
|
+
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-DwQdI7Kl.js";
|
|
106
106
|
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-B5o24WD5.js";
|
|
107
|
-
import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-
|
|
108
|
-
import { r as detectBinary } from "./onboard-helpers-
|
|
109
|
-
import { t as resolvePairingIdLabel } from "./pairing-labels-
|
|
110
|
-
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-
|
|
111
|
-
import { r as resolveMemorySearchConfig } from "./manager-
|
|
107
|
+
import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-CnULpcUz.js";
|
|
108
|
+
import { r as detectBinary } from "./onboard-helpers-DBgIqxpx.js";
|
|
109
|
+
import { t as resolvePairingIdLabel } from "./pairing-labels-CAXv-Bhv.js";
|
|
110
|
+
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-BKJMqEje.js";
|
|
111
|
+
import { r as resolveMemorySearchConfig } from "./manager-CJIx-nFA.js";
|
|
112
112
|
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-TbxRwj1g.js";
|
|
113
113
|
import { createRequire } from "node:module";
|
|
114
114
|
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -120,7 +120,7 @@ import JSON5 from "json5";
|
|
|
120
120
|
import { inspect } from "node:util";
|
|
121
121
|
import crypto, { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
122
122
|
import WebSocket from "ws";
|
|
123
|
-
import
|
|
123
|
+
import fsPromises from "node:fs/promises";
|
|
124
124
|
import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
|
|
125
125
|
import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
|
|
126
126
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
@@ -5151,7 +5151,7 @@ async function resolveAgentSessionDirs(stateDir) {
|
|
|
5151
5151
|
const agentsDir = path.join(stateDir, "agents");
|
|
5152
5152
|
let entries = [];
|
|
5153
5153
|
try {
|
|
5154
|
-
entries = await
|
|
5154
|
+
entries = await fsPromises.readdir(agentsDir, { withFileTypes: true });
|
|
5155
5155
|
} catch (err) {
|
|
5156
5156
|
if (err.code === "ENOENT") return [];
|
|
5157
5157
|
throw err;
|
|
@@ -8267,7 +8267,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
8267
8267
|
//#region src/media-understanding/echo-transcript.ts
|
|
8268
8268
|
let deliverRuntimePromise$2 = null;
|
|
8269
8269
|
function loadDeliverRuntime$2() {
|
|
8270
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
8270
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-C5J_x4jO.js");
|
|
8271
8271
|
return deliverRuntimePromise$2;
|
|
8272
8272
|
}
|
|
8273
8273
|
const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
@@ -13103,7 +13103,7 @@ async function resolveSandboxWorkdir(params) {
|
|
|
13103
13103
|
cwd: process.cwd(),
|
|
13104
13104
|
root: params.sandbox.workspaceDir
|
|
13105
13105
|
});
|
|
13106
|
-
if (!(await
|
|
13106
|
+
if (!(await fsPromises.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
|
|
13107
13107
|
const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
|
|
13108
13108
|
const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
|
|
13109
13109
|
return {
|
|
@@ -14347,13 +14347,13 @@ async function validateScriptFileForShellBleed(params) {
|
|
|
14347
14347
|
cwd: params.workdir,
|
|
14348
14348
|
root: params.workdir
|
|
14349
14349
|
});
|
|
14350
|
-
stat = await
|
|
14350
|
+
stat = await fsPromises.stat(absPath);
|
|
14351
14351
|
} catch {
|
|
14352
14352
|
return;
|
|
14353
14353
|
}
|
|
14354
14354
|
if (!stat.isFile()) return;
|
|
14355
14355
|
if (stat.size > 512 * 1024) return;
|
|
14356
|
-
const content = await
|
|
14356
|
+
const content = await fsPromises.readFile(absPath, "utf-8");
|
|
14357
14357
|
const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
|
|
14358
14358
|
if (first) {
|
|
14359
14359
|
const idx = first.index;
|
|
@@ -23744,7 +23744,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
23744
23744
|
*/
|
|
23745
23745
|
let deliverRuntimePromise$1 = null;
|
|
23746
23746
|
function loadDeliverRuntime$1() {
|
|
23747
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
23747
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-C5J_x4jO.js");
|
|
23748
23748
|
return deliverRuntimePromise$1;
|
|
23749
23749
|
}
|
|
23750
23750
|
/**
|
|
@@ -23868,7 +23868,7 @@ async function emitResetCommandHooks(params) {
|
|
|
23868
23868
|
try {
|
|
23869
23869
|
const messages = [];
|
|
23870
23870
|
if (sessionFile) {
|
|
23871
|
-
const content = await
|
|
23871
|
+
const content = await fsPromises.readFile(sessionFile, "utf-8");
|
|
23872
23872
|
for (const line of content.split("\n")) {
|
|
23873
23873
|
if (!line.trim()) continue;
|
|
23874
23874
|
try {
|
|
@@ -24697,7 +24697,7 @@ async function createModelSelectionState(params) {
|
|
|
24697
24697
|
}
|
|
24698
24698
|
}
|
|
24699
24699
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
24700
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
24700
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-Dhb7Y6H5.js").then((n) => n.t);
|
|
24701
24701
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
24702
24702
|
const providerKey = normalizeProviderId(provider);
|
|
24703
24703
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -28293,7 +28293,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
28293
28293
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
|
|
28294
28294
|
throw new Error("jsonlPath outside allowed roots");
|
|
28295
28295
|
}
|
|
28296
|
-
const canonical = await
|
|
28296
|
+
const canonical = await fsPromises.realpath(resolved).catch(() => resolved);
|
|
28297
28297
|
if (!isInboundPathAllowed({
|
|
28298
28298
|
filePath: canonical,
|
|
28299
28299
|
roots
|
|
@@ -28301,7 +28301,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
28301
28301
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
|
|
28302
28302
|
throw new Error("jsonlPath outside allowed roots");
|
|
28303
28303
|
}
|
|
28304
|
-
return await
|
|
28304
|
+
return await fsPromises.readFile(canonical, "utf8");
|
|
28305
28305
|
}
|
|
28306
28306
|
const CanvasToolSchema = Type.Object({
|
|
28307
28307
|
action: stringEnum(CANVAS_ACTIONS),
|
|
@@ -29116,27 +29116,27 @@ function resolveRestartSentinelPath(env = process.env) {
|
|
|
29116
29116
|
}
|
|
29117
29117
|
async function writeRestartSentinel(payload, env = process.env) {
|
|
29118
29118
|
const filePath = resolveRestartSentinelPath(env);
|
|
29119
|
-
await
|
|
29119
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
29120
29120
|
const data = {
|
|
29121
29121
|
version: 1,
|
|
29122
29122
|
payload
|
|
29123
29123
|
};
|
|
29124
|
-
await
|
|
29124
|
+
await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
|
|
29125
29125
|
return filePath;
|
|
29126
29126
|
}
|
|
29127
29127
|
async function readRestartSentinel(env = process.env) {
|
|
29128
29128
|
const filePath = resolveRestartSentinelPath(env);
|
|
29129
29129
|
try {
|
|
29130
|
-
const raw = await
|
|
29130
|
+
const raw = await fsPromises.readFile(filePath, "utf-8");
|
|
29131
29131
|
let parsed;
|
|
29132
29132
|
try {
|
|
29133
29133
|
parsed = JSON.parse(raw);
|
|
29134
29134
|
} catch {
|
|
29135
|
-
await
|
|
29135
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
29136
29136
|
return null;
|
|
29137
29137
|
}
|
|
29138
29138
|
if (!parsed || parsed.version !== 1 || !parsed.payload) {
|
|
29139
|
-
await
|
|
29139
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
29140
29140
|
return null;
|
|
29141
29141
|
}
|
|
29142
29142
|
return parsed;
|
|
@@ -29148,7 +29148,7 @@ async function consumeRestartSentinel(env = process.env) {
|
|
|
29148
29148
|
const filePath = resolveRestartSentinelPath(env);
|
|
29149
29149
|
const parsed = await readRestartSentinel(env);
|
|
29150
29150
|
if (!parsed) return null;
|
|
29151
|
-
await
|
|
29151
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
29152
29152
|
return parsed;
|
|
29153
29153
|
}
|
|
29154
29154
|
function formatRestartSentinelMessage(payload) {
|
|
@@ -39844,18 +39844,18 @@ function appendImagePathsToPrompt(prompt, paths) {
|
|
|
39844
39844
|
return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
|
|
39845
39845
|
}
|
|
39846
39846
|
async function writeCliImages(images) {
|
|
39847
|
-
const tempDir = await
|
|
39847
|
+
const tempDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-images-"));
|
|
39848
39848
|
const paths = [];
|
|
39849
39849
|
for (let i = 0; i < images.length; i += 1) {
|
|
39850
39850
|
const image = images[i];
|
|
39851
39851
|
const ext = resolveImageExtension(image.mimeType);
|
|
39852
39852
|
const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
|
|
39853
39853
|
const buffer = Buffer.from(image.data, "base64");
|
|
39854
|
-
await
|
|
39854
|
+
await fsPromises.writeFile(filePath, buffer, { mode: 384 });
|
|
39855
39855
|
paths.push(filePath);
|
|
39856
39856
|
}
|
|
39857
39857
|
const cleanup = async () => {
|
|
39858
|
-
await
|
|
39858
|
+
await fsPromises.rm(tempDir, {
|
|
39859
39859
|
recursive: true,
|
|
39860
39860
|
force: true
|
|
39861
39861
|
});
|
|
@@ -43814,7 +43814,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
43814
43814
|
const log$9 = createSubsystemLogger("session-maintenance-warning");
|
|
43815
43815
|
let deliverRuntimePromise = null;
|
|
43816
43816
|
function loadDeliverRuntime() {
|
|
43817
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
43817
|
+
deliverRuntimePromise ??= import("./deliver-runtime-C5J_x4jO.js");
|
|
43818
43818
|
return deliverRuntimePromise;
|
|
43819
43819
|
}
|
|
43820
43820
|
function shouldSendWarning() {
|
|
@@ -44395,7 +44395,7 @@ async function stageSandboxMedia(params) {
|
|
|
44395
44395
|
const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(CONFIG_DIR, "media", "remote-cache", sessionKey) : null;
|
|
44396
44396
|
const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
|
|
44397
44397
|
if (!effectiveWorkspaceDir) return;
|
|
44398
|
-
await
|
|
44398
|
+
await fsPromises.mkdir(effectiveWorkspaceDir, { recursive: true });
|
|
44399
44399
|
const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
|
|
44400
44400
|
cfg,
|
|
44401
44401
|
accountId: ctx.AccountId
|
|
@@ -44454,8 +44454,8 @@ async function stageLocalFileIntoRoot(params) {
|
|
|
44454
44454
|
}
|
|
44455
44455
|
async function stageRemoteFileIntoRoot(params) {
|
|
44456
44456
|
const tmpRoot = resolvePreferredOpenClawTmpDir();
|
|
44457
|
-
await
|
|
44458
|
-
const tmpDir = await
|
|
44457
|
+
await fsPromises.mkdir(tmpRoot, { recursive: true });
|
|
44458
|
+
const tmpDir = await fsPromises.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
|
|
44459
44459
|
const tmpPath = path.join(tmpDir, "download");
|
|
44460
44460
|
try {
|
|
44461
44461
|
await scpFile(params.remoteHost, params.remotePath, tmpPath);
|
|
@@ -44466,7 +44466,7 @@ async function stageRemoteFileIntoRoot(params) {
|
|
|
44466
44466
|
maxBytes: params.maxBytes
|
|
44467
44467
|
});
|
|
44468
44468
|
} finally {
|
|
44469
|
-
await
|
|
44469
|
+
await fsPromises.rm(tmpDir, {
|
|
44470
44470
|
recursive: true,
|
|
44471
44471
|
force: true
|
|
44472
44472
|
}).catch(() => {});
|
|
@@ -48754,7 +48754,7 @@ const VISION_PROVIDERS = [
|
|
|
48754
48754
|
];
|
|
48755
48755
|
let imageRuntimePromise = null;
|
|
48756
48756
|
function loadImageRuntime() {
|
|
48757
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
48757
|
+
imageRuntimePromise ??= import("./image-runtime-7mmAmEoX.js");
|
|
48758
48758
|
return imageRuntimePromise;
|
|
48759
48759
|
}
|
|
48760
48760
|
/**
|
|
@@ -48820,7 +48820,7 @@ async function describeStickerImage(params) {
|
|
|
48820
48820
|
const { provider, model } = resolved;
|
|
48821
48821
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
48822
48822
|
try {
|
|
48823
|
-
const buffer = await
|
|
48823
|
+
const buffer = await fsPromises.readFile(imagePath);
|
|
48824
48824
|
const { describeImageWithModel } = await loadImageRuntime();
|
|
48825
48825
|
return (await describeImageWithModel({
|
|
48826
48826
|
buffer,
|
|
@@ -50582,7 +50582,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
50582
50582
|
const needsPreflightTranscription = !params.isDirectMessage && params.shouldRequireMention && hasAudioAttachment && !hasTypedText && params.mentionRegexes.length > 0;
|
|
50583
50583
|
let transcript;
|
|
50584
50584
|
if (needsPreflightTranscription) try {
|
|
50585
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
50585
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-Det_pb9p.js");
|
|
50586
50586
|
const audioUrls = audioAttachments.map((att) => att.url).filter((url) => typeof url === "string" && url.length > 0);
|
|
50587
50587
|
if (audioUrls.length > 0) transcript = await transcribeFirstAudio({
|
|
50588
50588
|
ctx: {
|
|
@@ -55404,27 +55404,27 @@ let slackSenderRuntimePromise = null;
|
|
|
55404
55404
|
let signalSenderRuntimePromise = null;
|
|
55405
55405
|
let imessageSenderRuntimePromise = null;
|
|
55406
55406
|
function loadWhatsAppSenderRuntime() {
|
|
55407
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
55407
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-CvFgs4NK.js");
|
|
55408
55408
|
return whatsappSenderRuntimePromise;
|
|
55409
55409
|
}
|
|
55410
55410
|
function loadTelegramSenderRuntime() {
|
|
55411
|
-
telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-
|
|
55411
|
+
telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-DHzRQJe0.js");
|
|
55412
55412
|
return telegramSenderRuntimePromise;
|
|
55413
55413
|
}
|
|
55414
55414
|
function loadDiscordSenderRuntime() {
|
|
55415
|
-
discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-
|
|
55415
|
+
discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-C2JzTkWt.js");
|
|
55416
55416
|
return discordSenderRuntimePromise;
|
|
55417
55417
|
}
|
|
55418
55418
|
function loadSlackSenderRuntime() {
|
|
55419
|
-
slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-
|
|
55419
|
+
slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-Ucy4geO1.js");
|
|
55420
55420
|
return slackSenderRuntimePromise;
|
|
55421
55421
|
}
|
|
55422
55422
|
function loadSignalSenderRuntime() {
|
|
55423
|
-
signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-
|
|
55423
|
+
signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-Lw_dTkGz.js");
|
|
55424
55424
|
return signalSenderRuntimePromise;
|
|
55425
55425
|
}
|
|
55426
55426
|
function loadIMessageSenderRuntime() {
|
|
55427
|
-
imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-
|
|
55427
|
+
imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-BFk4Fvrd.js");
|
|
55428
55428
|
return imessageSenderRuntimePromise;
|
|
55429
55429
|
}
|
|
55430
55430
|
function createDefaultDeps() {
|
|
@@ -56597,10 +56597,10 @@ function estimateDurationSeconds(pcm) {
|
|
|
56597
56597
|
return pcm.length / (bytesPerSample * SAMPLE_RATE);
|
|
56598
56598
|
}
|
|
56599
56599
|
async function writeWavFile(pcm) {
|
|
56600
|
-
const tempDir = await
|
|
56600
|
+
const tempDir = await fsPromises.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "discord-voice-"));
|
|
56601
56601
|
const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
|
|
56602
56602
|
const wav = buildWavBuffer(pcm);
|
|
56603
|
-
await
|
|
56603
|
+
await fsPromises.writeFile(filePath, wav);
|
|
56604
56604
|
scheduleTempCleanup(tempDir);
|
|
56605
56605
|
return {
|
|
56606
56606
|
path: filePath,
|
|
@@ -56609,7 +56609,7 @@ async function writeWavFile(pcm) {
|
|
|
56609
56609
|
}
|
|
56610
56610
|
function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
|
|
56611
56611
|
setTimeout(() => {
|
|
56612
|
-
|
|
56612
|
+
fsPromises.rm(tempDir, {
|
|
56613
56613
|
recursive: true,
|
|
56614
56614
|
force: true
|
|
56615
56615
|
}).catch((err) => {
|
|
@@ -61175,7 +61175,7 @@ function normalizeAllowList$1(list) {
|
|
|
61175
61175
|
async function detectRemoteHostFromCliPath(cliPath) {
|
|
61176
61176
|
try {
|
|
61177
61177
|
const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
|
|
61178
|
-
const content = await
|
|
61178
|
+
const content = await fsPromises.readFile(expanded, "utf8");
|
|
61179
61179
|
const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
|
|
61180
61180
|
if (userHostMatch) return userHostMatch[1];
|
|
61181
61181
|
return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
|
|
@@ -68144,15 +68144,15 @@ let slashCommandsRuntimePromise = null;
|
|
|
68144
68144
|
let slashDispatchRuntimePromise = null;
|
|
68145
68145
|
let slashSkillCommandsRuntimePromise = null;
|
|
68146
68146
|
function loadSlashCommandsRuntime() {
|
|
68147
|
-
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-
|
|
68147
|
+
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-DZBOZGXG.js");
|
|
68148
68148
|
return slashCommandsRuntimePromise;
|
|
68149
68149
|
}
|
|
68150
68150
|
function loadSlashDispatchRuntime() {
|
|
68151
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
68151
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-DwWpNqdA.js");
|
|
68152
68152
|
return slashDispatchRuntimePromise;
|
|
68153
68153
|
}
|
|
68154
68154
|
function loadSlashSkillCommandsRuntime() {
|
|
68155
|
-
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-
|
|
68155
|
+
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-B4sqth9E.js");
|
|
68156
68156
|
return slashSkillCommandsRuntimePromise;
|
|
68157
68157
|
}
|
|
68158
68158
|
const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
|
|
@@ -71517,7 +71517,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
71517
71517
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
71518
71518
|
let preflightTranscript;
|
|
71519
71519
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
71520
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
71520
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-Det_pb9p.js");
|
|
71521
71521
|
preflightTranscript = await transcribeFirstAudio({
|
|
71522
71522
|
ctx: {
|
|
71523
71523
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -72988,7 +72988,7 @@ function resolveCommandHashPath(accountId, botIdentity) {
|
|
|
72988
72988
|
}
|
|
72989
72989
|
async function readCachedCommandHash(accountId, botIdentity) {
|
|
72990
72990
|
try {
|
|
72991
|
-
return (await
|
|
72991
|
+
return (await fsPromises.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
|
|
72992
72992
|
} catch {
|
|
72993
72993
|
return null;
|
|
72994
72994
|
}
|
|
@@ -72996,8 +72996,8 @@ async function readCachedCommandHash(accountId, botIdentity) {
|
|
|
72996
72996
|
async function writeCachedCommandHash(accountId, botIdentity, hash) {
|
|
72997
72997
|
const filePath = resolveCommandHashPath(accountId, botIdentity);
|
|
72998
72998
|
try {
|
|
72999
|
-
await
|
|
73000
|
-
await
|
|
72999
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
73000
|
+
await fsPromises.writeFile(filePath, hash, "utf-8");
|
|
73001
73001
|
} catch {}
|
|
73002
73002
|
}
|
|
73003
73003
|
function syncTelegramMenuCommands(params) {
|
|
@@ -73841,7 +73841,7 @@ function safeParseState(raw) {
|
|
|
73841
73841
|
async function readTelegramUpdateOffset(params) {
|
|
73842
73842
|
const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
|
|
73843
73843
|
try {
|
|
73844
|
-
const parsed = safeParseState(await
|
|
73844
|
+
const parsed = safeParseState(await fsPromises.readFile(filePath, "utf-8"));
|
|
73845
73845
|
const expectedBotId = extractBotIdFromToken(params.botToken);
|
|
73846
73846
|
if (expectedBotId && parsed?.botId && parsed.botId !== expectedBotId) return null;
|
|
73847
73847
|
if (expectedBotId && parsed?.botId === null) return null;
|
|
@@ -73865,7 +73865,7 @@ async function writeTelegramUpdateOffset(params) {
|
|
|
73865
73865
|
async function deleteTelegramUpdateOffset(params) {
|
|
73866
73866
|
const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
|
|
73867
73867
|
try {
|
|
73868
|
-
await
|
|
73868
|
+
await fsPromises.unlink(filePath);
|
|
73869
73869
|
} catch (err) {
|
|
73870
73870
|
if (err.code === "ENOENT") return;
|
|
73871
73871
|
throw err;
|
|
@@ -74339,7 +74339,7 @@ function createWhatsAppLoginTool() {
|
|
|
74339
74339
|
force: Type.Optional(Type.Boolean())
|
|
74340
74340
|
}),
|
|
74341
74341
|
execute: async (_toolCallId, args) => {
|
|
74342
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
74342
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CDwnwe9P.js");
|
|
74343
74343
|
if ((args?.action ?? "start") === "wait") {
|
|
74344
74344
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
74345
74345
|
return {
|
|
@@ -74414,23 +74414,23 @@ let webOutboundPromise = null;
|
|
|
74414
74414
|
let webLoginPromise = null;
|
|
74415
74415
|
let whatsappActionsPromise = null;
|
|
74416
74416
|
function loadWebOutbound() {
|
|
74417
|
-
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-
|
|
74417
|
+
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-B3NjGGpU.js");
|
|
74418
74418
|
return webOutboundPromise;
|
|
74419
74419
|
}
|
|
74420
74420
|
function loadWebLogin() {
|
|
74421
|
-
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-
|
|
74421
|
+
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-D08ghHWe.js");
|
|
74422
74422
|
return webLoginPromise;
|
|
74423
74423
|
}
|
|
74424
74424
|
function loadWebLoginQr() {
|
|
74425
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
74425
|
+
webLoginQrPromise ??= import("./login-qr-CDwnwe9P.js");
|
|
74426
74426
|
return webLoginQrPromise;
|
|
74427
74427
|
}
|
|
74428
74428
|
function loadWebChannel() {
|
|
74429
|
-
webChannelPromise ??= import("./web-
|
|
74429
|
+
webChannelPromise ??= import("./web-BVIL9iG1.js");
|
|
74430
74430
|
return webChannelPromise;
|
|
74431
74431
|
}
|
|
74432
74432
|
function loadWhatsAppActions() {
|
|
74433
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
74433
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-B53LlFl5.js");
|
|
74434
74434
|
return whatsappActionsPromise;
|
|
74435
74435
|
}
|
|
74436
74436
|
function createRuntimeWhatsApp() {
|
|
@@ -75568,7 +75568,7 @@ function resolvePluginTools(params) {
|
|
|
75568
75568
|
//#endregion
|
|
75569
75569
|
//#region src/agents/apply-patch-update.ts
|
|
75570
75570
|
async function defaultReadFile(filePath) {
|
|
75571
|
-
return
|
|
75571
|
+
return fsPromises.readFile(filePath, "utf8");
|
|
75572
75572
|
}
|
|
75573
75573
|
async function applyUpdateHunk(filePath, chunks, options) {
|
|
75574
75574
|
const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
|
|
@@ -75889,7 +75889,7 @@ function resolvePatchFileOps(options) {
|
|
|
75889
75889
|
const workspaceOnly = options.workspaceOnly !== false;
|
|
75890
75890
|
return {
|
|
75891
75891
|
readFile: async (filePath) => {
|
|
75892
|
-
if (!workspaceOnly) return await
|
|
75892
|
+
if (!workspaceOnly) return await fsPromises.readFile(filePath, "utf8");
|
|
75893
75893
|
const opened = await openBoundaryFile({
|
|
75894
75894
|
absolutePath: filePath,
|
|
75895
75895
|
rootPath: options.cwd,
|
|
@@ -75904,7 +75904,7 @@ function resolvePatchFileOps(options) {
|
|
|
75904
75904
|
},
|
|
75905
75905
|
writeFile: async (filePath, content) => {
|
|
75906
75906
|
if (!workspaceOnly) {
|
|
75907
|
-
await
|
|
75907
|
+
await fsPromises.writeFile(filePath, content, "utf8");
|
|
75908
75908
|
return;
|
|
75909
75909
|
}
|
|
75910
75910
|
const relative = toRelativeSandboxPath(options.cwd, filePath);
|
|
@@ -75915,8 +75915,8 @@ function resolvePatchFileOps(options) {
|
|
|
75915
75915
|
encoding: "utf8"
|
|
75916
75916
|
});
|
|
75917
75917
|
},
|
|
75918
|
-
remove: (filePath) =>
|
|
75919
|
-
mkdirp: (dir) =>
|
|
75918
|
+
remove: (filePath) => fsPromises.rm(filePath),
|
|
75919
|
+
mkdirp: (dir) => fsPromises.mkdir(dir, { recursive: true }).then(() => {})
|
|
75920
75920
|
};
|
|
75921
75921
|
}
|
|
75922
75922
|
async function ensureDir(filePath, ops) {
|
|
@@ -76178,7 +76178,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
|
|
|
76178
76178
|
const MAX_LOOP_WARNING_KEYS = 256;
|
|
76179
76179
|
let beforeToolCallRuntimePromise = null;
|
|
76180
76180
|
function loadBeforeToolCallRuntime() {
|
|
76181
|
-
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-
|
|
76181
|
+
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-C3GLLjEH.js");
|
|
76182
76182
|
return beforeToolCallRuntimePromise;
|
|
76183
76183
|
}
|
|
76184
76184
|
function buildAdjustedParamsKey(params) {
|
|
@@ -76416,7 +76416,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
|
|
|
76416
76416
|
if (!pathParam || !newText) throw err;
|
|
76417
76417
|
try {
|
|
76418
76418
|
const absolutePath = resolveHostEditPath(root, pathParam);
|
|
76419
|
-
const content = await
|
|
76419
|
+
const content = await fsPromises.readFile(absolutePath, "utf-8");
|
|
76420
76420
|
const hasNew = content.includes(newText);
|
|
76421
76421
|
const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
|
|
76422
76422
|
if (hasNew && !stillHasOld) return {
|
|
@@ -76898,14 +76898,14 @@ function createSandboxEditOperations(params) {
|
|
|
76898
76898
|
}
|
|
76899
76899
|
async function writeHostFile(absolutePath, content) {
|
|
76900
76900
|
const resolved = path.resolve(absolutePath);
|
|
76901
|
-
await
|
|
76902
|
-
await
|
|
76901
|
+
await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
76902
|
+
await fsPromises.writeFile(resolved, content, "utf-8");
|
|
76903
76903
|
}
|
|
76904
76904
|
function createHostWriteOperations(root, options) {
|
|
76905
76905
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
76906
76906
|
mkdir: async (dir) => {
|
|
76907
76907
|
const resolved = path.resolve(dir);
|
|
76908
|
-
await
|
|
76908
|
+
await fsPromises.mkdir(resolved, { recursive: true });
|
|
76909
76909
|
},
|
|
76910
76910
|
writeFile: writeHostFile
|
|
76911
76911
|
};
|
|
@@ -76918,7 +76918,7 @@ function createHostWriteOperations(root, options) {
|
|
|
76918
76918
|
cwd: root,
|
|
76919
76919
|
root
|
|
76920
76920
|
});
|
|
76921
|
-
await
|
|
76921
|
+
await fsPromises.mkdir(resolved, { recursive: true });
|
|
76922
76922
|
},
|
|
76923
76923
|
writeFile: async (absolutePath, content) => {
|
|
76924
76924
|
await writeFileWithinRoot({
|
|
@@ -76934,12 +76934,12 @@ function createHostEditOperations(root, options) {
|
|
|
76934
76934
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
76935
76935
|
readFile: async (absolutePath) => {
|
|
76936
76936
|
const resolved = path.resolve(absolutePath);
|
|
76937
|
-
return await
|
|
76937
|
+
return await fsPromises.readFile(resolved);
|
|
76938
76938
|
},
|
|
76939
76939
|
writeFile: writeHostFile,
|
|
76940
76940
|
access: async (absolutePath) => {
|
|
76941
76941
|
const resolved = path.resolve(absolutePath);
|
|
76942
|
-
await
|
|
76942
|
+
await fsPromises.access(resolved);
|
|
76943
76943
|
}
|
|
76944
76944
|
};
|
|
76945
76945
|
return {
|
|
@@ -77777,7 +77777,7 @@ async function repairSessionFileIfNeeded(params) {
|
|
|
77777
77777
|
};
|
|
77778
77778
|
let content;
|
|
77779
77779
|
try {
|
|
77780
|
-
content = await
|
|
77780
|
+
content = await fsPromises.readFile(sessionFile, "utf-8");
|
|
77781
77781
|
} catch (err) {
|
|
77782
77782
|
if (err?.code === "ENOENT") return {
|
|
77783
77783
|
repaired: false,
|
|
@@ -77825,15 +77825,15 @@ async function repairSessionFileIfNeeded(params) {
|
|
|
77825
77825
|
const backupPath = `${sessionFile}.bak-${process.pid}-${Date.now()}`;
|
|
77826
77826
|
const tmpPath = `${sessionFile}.repair-${process.pid}-${Date.now()}.tmp`;
|
|
77827
77827
|
try {
|
|
77828
|
-
const stat = await
|
|
77829
|
-
await
|
|
77830
|
-
if (stat) await
|
|
77831
|
-
await
|
|
77832
|
-
if (stat) await
|
|
77833
|
-
await
|
|
77828
|
+
const stat = await fsPromises.stat(sessionFile).catch(() => null);
|
|
77829
|
+
await fsPromises.writeFile(backupPath, content, "utf-8");
|
|
77830
|
+
if (stat) await fsPromises.chmod(backupPath, stat.mode);
|
|
77831
|
+
await fsPromises.writeFile(tmpPath, cleaned, "utf-8");
|
|
77832
|
+
if (stat) await fsPromises.chmod(tmpPath, stat.mode);
|
|
77833
|
+
await fsPromises.rename(tmpPath, sessionFile);
|
|
77834
77834
|
} catch (err) {
|
|
77835
77835
|
try {
|
|
77836
|
-
await
|
|
77836
|
+
await fsPromises.unlink(tmpPath);
|
|
77837
77837
|
} catch (cleanupErr) {
|
|
77838
77838
|
params.warn?.(`session file repair cleanup failed: ${cleanupErr instanceof Error ? cleanupErr.message : "unknown error"} (${path.basename(tmpPath)})`);
|
|
77839
77839
|
}
|
|
@@ -79605,7 +79605,7 @@ async function prewarmSessionFile(sessionFile) {
|
|
|
79605
79605
|
if (!isSessionManagerCacheEnabled()) return;
|
|
79606
79606
|
if (isSessionManagerCached(sessionFile)) return;
|
|
79607
79607
|
try {
|
|
79608
|
-
const handle = await
|
|
79608
|
+
const handle = await fsPromises.open(sessionFile, "r");
|
|
79609
79609
|
try {
|
|
79610
79610
|
const buffer = Buffer$1.alloc(4096);
|
|
79611
79611
|
await handle.read(buffer, 0, buffer.length, 0);
|
|
@@ -79972,7 +79972,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
79972
79972
|
} catch (err) {
|
|
79973
79973
|
return fail(describeUnknownError(err));
|
|
79974
79974
|
}
|
|
79975
|
-
await
|
|
79975
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
79976
79976
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
79977
79977
|
const sandbox = await resolveSandboxContext({
|
|
79978
79978
|
config: params.config,
|
|
@@ -79980,7 +79980,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
79980
79980
|
workspaceDir: resolvedWorkspace
|
|
79981
79981
|
});
|
|
79982
79982
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
79983
|
-
await
|
|
79983
|
+
await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
|
|
79984
79984
|
await ensureSessionHeader({
|
|
79985
79985
|
sessionFile: params.sessionFile,
|
|
79986
79986
|
sessionId: params.sessionId,
|
|
@@ -80865,12 +80865,12 @@ function getQueuedFileWriter(writers, filePath) {
|
|
|
80865
80865
|
const existing = writers.get(filePath);
|
|
80866
80866
|
if (existing) return existing;
|
|
80867
80867
|
const dir = path.dirname(filePath);
|
|
80868
|
-
const ready =
|
|
80868
|
+
const ready = fsPromises.mkdir(dir, { recursive: true }).catch(() => void 0);
|
|
80869
80869
|
let queue = Promise.resolve();
|
|
80870
80870
|
const writer = {
|
|
80871
80871
|
filePath,
|
|
80872
80872
|
write: (line) => {
|
|
80873
|
-
queue = queue.then(() => ready).then(() =>
|
|
80873
|
+
queue = queue.then(() => ready).then(() => fsPromises.appendFile(filePath, line, "utf8")).catch(() => void 0);
|
|
80874
80874
|
}
|
|
80875
80875
|
};
|
|
80876
80876
|
writers.set(filePath, writer);
|
|
@@ -83788,7 +83788,7 @@ async function prepareSessionManagerForRun(params) {
|
|
|
83788
83788
|
return;
|
|
83789
83789
|
}
|
|
83790
83790
|
if (params.hadSessionFile && header && !hasAssistant) {
|
|
83791
|
-
await
|
|
83791
|
+
await fsPromises.writeFile(params.sessionFile, "", "utf-8");
|
|
83792
83792
|
sm.fileEntries = [header];
|
|
83793
83793
|
sm.byId?.clear?.();
|
|
83794
83794
|
sm.labelsById?.clear?.();
|
|
@@ -84506,7 +84506,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
84506
84506
|
const prevCwd = process.cwd();
|
|
84507
84507
|
const runAbortController = new AbortController();
|
|
84508
84508
|
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"}`);
|
|
84509
|
-
await
|
|
84509
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
84510
84510
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
84511
84511
|
const sandbox = await resolveSandboxContext({
|
|
84512
84512
|
config: params.config,
|
|
@@ -84514,7 +84514,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
84514
84514
|
workspaceDir: resolvedWorkspace
|
|
84515
84515
|
});
|
|
84516
84516
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
84517
|
-
await
|
|
84517
|
+
await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
|
|
84518
84518
|
let restoreSkillEnv;
|
|
84519
84519
|
process.chdir(effectiveWorkspace);
|
|
84520
84520
|
try {
|
|
@@ -84784,7 +84784,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
84784
84784
|
sessionFile: params.sessionFile,
|
|
84785
84785
|
warn: (message) => log$3.warn(message)
|
|
84786
84786
|
});
|
|
84787
|
-
const hadSessionFile = await
|
|
84787
|
+
const hadSessionFile = await fsPromises.stat(params.sessionFile).then(() => true).catch(() => false);
|
|
84788
84788
|
const transcriptPolicy = resolveTranscriptPolicy({
|
|
84789
84789
|
modelApi: params.model?.api,
|
|
84790
84790
|
provider: params.provider,
|
|
@@ -85913,7 +85913,7 @@ async function runEmbeddedPiAgent(params) {
|
|
|
85913
85913
|
const copilotAuthRetry = authRetryPending;
|
|
85914
85914
|
authRetryPending = false;
|
|
85915
85915
|
attemptedThinking.add(thinkLevel);
|
|
85916
|
-
await
|
|
85916
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
85917
85917
|
const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
|
|
85918
85918
|
const attempt = await runEmbeddedAttempt({
|
|
85919
85919
|
sessionId: params.sessionId,
|
|
@@ -86719,7 +86719,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
86719
86719
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
86720
86720
|
let subagentRegistryRuntimePromise = null;
|
|
86721
86721
|
function loadSubagentRegistryRuntime() {
|
|
86722
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
86722
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-CeHVZoXv.js");
|
|
86723
86723
|
return subagentRegistryRuntimePromise;
|
|
86724
86724
|
}
|
|
86725
86725
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|