wednesdayai 0.5.1-dev.49 → 0.5.1-dev.52
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/{acp-cli-CSDr9rFY.js → acp-cli-B4dS4wV-.js} +11 -11
- package/dist/{agent-scope-Daay3L1Q.js → agent-scope-m37qEcFM.js} +21 -21
- package/dist/{agent-turn-enqueue-Ca29Rbkz.js → agent-turn-enqueue-ArRzUyAk.js} +6 -6
- package/dist/{agent-turn-execute-B4iUpIbf.js → agent-turn-execute-CM4O0yRh.js} +155 -155
- package/dist/{agent-turn-recovery-adapter-CN7R7ZpE.js → agent-turn-recovery-adapter-CV9hCfhV.js} +3 -3
- package/dist/{agent-turn-runner-y6DgnCcB.js → agent-turn-runner-DoUxdVA8.js} +4 -4
- package/dist/{agents-BR_k8DOr.js → agents-8IrzkYKe.js} +21 -21
- package/dist/{agents.config-ClrzdK7g.js → agents.config-B22brY93.js} +3 -3
- package/dist/{api-key-rotation-ZuntHnbE.js → api-key-rotation-D42o6Zng.js} +1 -1
- package/dist/{audio-preflight-BIOdIaYS.js → audio-preflight-C3hxTGYi.js} +37 -37
- package/dist/{audio-transcription-runner-Cn0jB-li.js → audio-transcription-runner-BCsXP8-1.js} +27 -27
- package/dist/{audit-TBCP_6jm.js → audit-BvrCpsTe.js} +31 -31
- package/dist/{auth-nD5DAjKr.js → auth-B4_HVLhd.js} +4 -4
- package/dist/{auth-choice-35J0xM6Z.js → auth-choice-DPnina-M.js} +15 -15
- package/dist/{auth-choice-Bq8CC1lU.js → auth-choice-kM9PIJr4.js} +13 -13
- package/dist/{auth-choice.apply-helpers-YNiPajEk.js → auth-choice.apply-helpers-DVZh64eB.js} +1 -1
- package/dist/{auth-token-BzoQdUL6.js → auth-token-CrC72-Fb.js} +2 -2
- package/dist/{banner-MupqYLcq.js → banner-CP6z-7_Z.js} +4 -4
- package/dist/{bonjour-discovery-CVCaA_iW.js → bonjour-discovery-CXRsUe5D.js} +3 -3
- package/dist/{browser-cli-UBdCgnrs.js → browser-cli-B_4FyxW8.js} +19 -19
- package/dist/build-info.json +3 -3
- package/dist/{call-xzY_YjPJ.js → call-DiXPYDxn.js} +12 -12
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-Cgiem_zz.js → channel-account-context-Df3_ZrlO.js} +7 -7
- package/dist/{channel-options-ceRWPyZu.js → channel-options-DqiC37-O.js} +3 -3
- package/dist/{channel-selection-CTSiOhj4.js → channel-selection-CggPBiFX.js} +1 -1
- package/dist/{channels-cli-BwgQPXDo.js → channels-cli-DL63TJdS.js} +122 -122
- package/dist/{channels-status-issues-CnBn-qEt.js → channels-status-issues-CdXaTFd3.js} +1 -1
- package/dist/{chrome-DJwFDuoy.js → chrome-o2uZSWIt.js} +6 -6
- package/dist/{chunk-Cac92Mfe.js → chunk-CWJj0yTC.js} +3 -3
- package/dist/{clack-prompter-Cjs9OUc5.js → clack-prompter-BKD0RJgm.js} +5 -5
- package/dist/clawbot-cli-sFSfxALD.js +33 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-DZ1p-qqR.js +168 -0
- package/dist/{client-BHIM--Lw.js → client-B3-vuVAE.js} +4 -4
- package/dist/{client-profiles-C576THk-.js → client-profiles-Bc3sF7Zy.js} +2 -2
- package/dist/{clipboard-BNyun_kb.js → clipboard-DbPKCnXY.js} +1 -1
- package/dist/{command-queue-QaMaW8lR.js → command-queue-D8Y7Hgzy.js} +1 -1
- package/dist/{command-registry-DupEgpR0.js → command-registry-CjWadaVi.js} +14 -14
- package/dist/{command-secret-targets-DSyP6TXo.js → command-secret-targets-DfQv7jnw.js} +4 -4
- package/dist/{commands-W2-5cDc4.js → commands-CVdmhZKr.js} +1 -1
- package/dist/{commands-registry-D7RtFxju.js → commands-registry-B4aR17xV.js} +3 -3
- package/dist/{completion-cli-FCJfJebn.js → completion-cli-CNuhIsey.js} +16 -16
- package/dist/{config-cli-VIY_NYNB.js → config-cli-BUhVl5pE.js} +10 -10
- package/dist/{config-guard-Bmr1IhWb.js → config-guard-buy7Cjbp.js} +4 -4
- package/dist/{config-validation-D51v90j4.js → config-validation-Bv5bbuxd.js} +4 -4
- package/dist/{configure-DY9M7xe9.js → configure-D2cKTH1K.js} +25 -25
- package/dist/{control-ui-assets-Dm1xGH5K.js → control-ui-assets-CTBYi2MG.js} +3 -3
- package/dist/{controller-_1HRMACq.js → controller-CEWtbHG6.js} +1 -1
- package/dist/{credentials-BeQIuOVH.js → credentials-Db9gEJyX.js} +1 -1
- package/dist/{cron-cli-Df48V_il.js → cron-cli-iv9AjWjS.js} +14 -14
- package/dist/{daemon-cli-BaePnoF7.js → daemon-cli-P_RNqlTz.js} +19 -19
- package/dist/{daemon-install-DWcz5r6O.js → daemon-install-D-kvx3V5.js} +10 -10
- package/dist/{daemon-install-helpers-Dhf36TZZ.js → daemon-install-helpers-9DICPTya.js} +13 -13
- package/dist/{delete-agent-sessions-uGdBmFVU.js → delete-agent-sessions-BfuIBVng.js} +1 -1
- package/dist/{deliver-CsBM7Sux.js → deliver-vnUlcBpf.js} +12 -12
- package/dist/{devices-cli-DJfaFSmn.js → devices-cli-a6nbvYoE.js} +13 -13
- package/dist/{diagnostic-DAPS8u-k.js → diagnostic-DJz53yyc.js} +4 -4
- package/dist/{diagnostics-nXbz9WIN.js → diagnostics-CCJvDjHM.js} +5 -5
- package/dist/{directory-cli-BLhDYrKO.js → directory-cli-DZt6_oyq.js} +11 -11
- package/dist/{dm-policy-shared-BruH8gYz.js → dm-policy-shared-B2rRMZjX.js} +5 -5
- package/dist/{dns-cli-B5kFZNM_.js → dns-cli-Cr7olDhH.js} +10 -10
- package/dist/{docs-cli-CA-BUSdK.js → docs-cli-D0IbS-w_.js} +9 -9
- package/dist/{doctor-completion-DPfr7dYc.js → doctor-completion-CTN0KnCG.js} +3 -3
- package/dist/{doctor-config-flow-CwSjXDoe.js → doctor-config-flow-BcbZEvhN.js} +17 -17
- package/dist/{enable-DiygfPTs.js → enable-FeowesRW.js} +2 -2
- package/dist/entry.js +4 -4
- package/dist/{exec-DgfbhlVq.js → exec-BadOxgw_.js} +2 -2
- package/dist/{exec-approvals-allowlist-BQNCcnrB.js → exec-approvals-allowlist-CvMIZ3Av.js} +1 -1
- package/dist/{exec-approvals-cli-Cwg4-I6U.js → exec-approvals-cli-TIjMcgyZ.js} +22 -22
- package/dist/{exec-approvals-ClDOrgGo.js → exec-approvals-iao6P-Sv.js} +2 -2
- package/dist/{exec-safe-bin-runtime-policy-B_c-JxLa.js → exec-safe-bin-runtime-policy-18lfJBlE.js} +2 -2
- package/dist/{extension-relay-auth-zGWI5gYg.js → extension-relay-auth-DaJK0rd5.js} +10 -10
- package/dist/{fetch---jlJUEM.js → fetch-COhcdJbk.js} +5 -5
- package/dist/{fetch-guard-iae-zVNj.js → fetch-guard-ChaY1JfD.js} +2 -2
- package/dist/{fs-safe-9jT9nWzE.js → fs-safe-CJ7BaYqw.js} +25 -25
- package/dist/{gateway-cli-B5anPDYc.js → gateway-cli-BrOSHlSK.js} +200 -200
- package/dist/{gateway-rpc-CJhrbhwy.js → gateway-rpc-qeYBKW7U.js} +3 -3
- package/dist/{globals-BRyHSrWD.js → globals-3lUHnZas.js} +7 -7
- package/dist/{gmail-setup-utils-BjW3d-63.js → gmail-setup-utils-CobB8zXB.js} +2 -2
- package/dist/{health-DR2dYPoD.js → health-Dff2iJXm.js} +11 -11
- package/dist/{health-format-fI8G4Mpf.js → health-format-CiSn_s8O.js} +1 -1
- package/dist/{heartbeat-tick-btylKJi7.js → heartbeat-tick-DsC4du2J.js} +1 -1
- package/dist/{help-format-CoaYSXD2.js → help-format-vSbRPQ2Y.js} +1 -1
- package/dist/{helpers-BSIlmKX7.js → helpers-CmFDbO4C.js} +1 -1
- package/dist/{hooks-cli-DRa-pNVn.js → hooks-cli-Cg_LIDvE.js} +110 -110
- package/dist/{hooks-status-CHpefcMx.js → hooks-status-Cz3FinlP.js} +2 -2
- package/dist/{identity-cli-CNcWNIW-.js → identity-cli-Cvp7fIZM.js} +20 -20
- package/dist/{identity-links-avuUsTN6.js → identity-links-DP7R0NPE.js} +4 -4
- package/dist/{identity-links-live-BL__Ecwf.js → identity-links-live-Bi60qFYK.js} +1 -1
- package/dist/{image-ops-CaP-qXCU.js → image-ops-fsbohlx7.js} +11 -11
- package/dist/{inspect-CoNYULj4.js → inspect-dN8Sghor.js} +4 -4
- package/dist/{install-safe-path-D9kvfVs4.js → install-safe-path-D8uZKU9M.js} +25 -25
- package/dist/{installs-Bs4nGu6t.js → installs-Di1c2v3h.js} +10 -10
- package/dist/{ipv4-ClJ3jo3P.js → ipv4-2ElrM9Sz.js} +2 -2
- package/dist/{ir-3e4BsvCp.js → ir-G6mp02Um.js} +8 -8
- package/dist/{issue-format-CcyrT_ll.js → issue-format-CEhsl7Wj.js} +1 -1
- package/dist/{jobs-Dh5LHEXG.js → jobs-BXFDvC34.js} +3 -3
- package/dist/{json-files--SPKjIRq.js → json-files-DQ0SWA8I.js} +7 -7
- package/dist/{lifecycle-core-CC9SYYk6.js → lifecycle-core-m816LTRQ.js} +9 -9
- package/dist/{links-DhEAHyJK.js → links-CdYxxGpz.js} +1 -1
- package/dist/{log-tail-BKVxlVAs.js → log-tail-BGUoZ3uj.js} +7 -7
- package/dist/{logging-CbulhL7o.js → logging-BcooikJ6.js} +1 -1
- package/dist/{logs-cli-6mdXA28U.js → logs-cli-DBMjDhb-.js} +18 -18
- package/dist/{manager-zP9NLy9y.js → manager-NberoPlo.js} +14 -14
- package/dist/{manager-ByvI6Ro3.js → manager-kfVhbDC5.js} +9 -9
- package/dist/{markdown-tables-DXuYgzLS.js → markdown-tables-CIDos_m6.js} +2 -2
- package/dist/{memory-cli-BuY1OqI1.js → memory-cli-CTBlq72D.js} +19 -19
- package/dist/{model-Cnbe29aL.js → model-DLnu2ZHK.js} +2 -2
- package/dist/{model-catalog-qSGqRSeB.js → model-catalog-DShV9nqu.js} +4 -4
- package/dist/{model-picker-Esi1b_6D.js → model-picker-DWhiEZI7.js} +4 -4
- package/dist/{models-ZMCaSPw_.js → models-Cz5Kterd.js} +22 -22
- package/dist/{models-cli-CAMmJjvq.js → models-cli-BoDMHZu8.js} +110 -110
- package/dist/{models-config-CzWBExZR.js → models-config-MT7bTyDD.js} +7 -7
- package/dist/{node-cli-CwcTuNzE.js → node-cli-C_4LoQOV.js} +43 -43
- package/dist/{node-command-policy-E6RVVTJQ.js → node-command-policy-BBvAh8Rh.js} +1 -1
- package/dist/{node-service-Dvf6aAZJ.js → node-service-DCKAYWfS.js} +1 -1
- package/dist/{nodes-cli-BuQlqtRW.js → nodes-cli-DGvDAyok.js} +23 -23
- package/dist/{nodes-screen-DLNLgCSg.js → nodes-screen-4mQTqYUN.js} +8 -8
- package/dist/{note-CVlhiP2P.js → note-IQhv9g1L.js} +2 -2
- package/dist/{npm-pack-install-D_Sj0nv2.js → npm-pack-install-D4CH04qy.js} +23 -23
- package/dist/{npm-resolution-zax_R0pB.js → npm-resolution-DaMWVeZe.js} +5 -5
- package/dist/{nudge-D9rNDPko.js → nudge-DAMdAd6o.js} +9 -9
- package/dist/{oauth-tls-preflight-DLH5IYXS.js → oauth-tls-preflight-CkoqXyrR.js} +1 -1
- package/dist/{onboard-DD3dH3k9.js → onboard-DD49foBa.js} +11 -11
- package/dist/{onboard-channels-BBE-Agqp.js → onboard-channels-CpiuyfFX.js} +24 -24
- package/dist/{onboard-custom-CEY7uEmj.js → onboard-custom-Dk2A4Q3G.js} +4 -4
- package/dist/{onboard-helpers-BMVut_hd.js → onboard-helpers-CyIeOf0n.js} +13 -13
- package/dist/{onboard-hooks-CG-FJnI-.js → onboard-hooks-o9_Jnoi3.js} +6 -6
- package/dist/{onboard-remote-DEpMgQbz.js → onboard-remote-lRnElN1u.js} +5 -5
- package/dist/{onboard-skills-Bg7_D4v3.js → onboard-skills-DG2pTqSo.js} +4 -4
- package/dist/{onboarding-DAr0y1xl.js → onboarding-DSJ6YXNm.js} +18 -18
- package/dist/{onboarding.finalize-CAdOP28d.js → onboarding.finalize-D8gRbG5W.js} +118 -118
- package/dist/{onboarding.gateway-config-CFZaPfh1.js → onboarding.gateway-config-DylTeRCh.js} +21 -21
- package/dist/{onboarding.secret-input-W2xyIofP.js → onboarding.secret-input-Dj09etVn.js} +1 -1
- package/dist/{openai-model-default-CfAtGL15.js → openai-model-default-DqnRWGwj.js} +2 -2
- package/dist/{openclaw-root-C3plUO0H.js → openclaw-root-Bh3xNyXD.js} +2 -2
- package/dist/{operator-commands-B1hJ80gq.js → operator-commands-BDQn-b94.js} +6 -6
- package/dist/{outbound-attachment-B1pU8jDT.js → outbound-attachment-BeP7tvsZ.js} +2 -2
- package/dist/{outbound-message-hooks-DUjjvy1L.js → outbound-message-hooks-D7aalpVP.js} +5 -5
- package/dist/{pairing-cli-Beyds7bN.js → pairing-cli-C1W78CCz.js} +19 -19
- package/dist/{pairing-labels-CF503Gm6.js → pairing-labels-BgUdVYgJ.js} +1 -1
- package/dist/{pairing-store-CyVCFIGE.js → pairing-store-BIeHwICv.js} +4 -4
- package/dist/{path-alias-guards-PMiJhZq7.js → path-alias-guards-BL542Mqz.js} +3 -3
- package/dist/{path-safety-BspQHYKd.js → path-safety-tfrNWosi.js} +1 -1
- package/dist/{pi-embedded-helpers-CPciDfKU.js → pi-embedded-helpers-mGzreJbk.js} +6 -6
- package/dist/{pi-embedded-recovery-adapter-Dih7eQN6.js → pi-embedded-recovery-adapter-5ipqXFw0.js} +37 -37
- package/dist/{pi-embedded-utils-CuKpG3OL.js → pi-embedded-utils-DC8eBUz9.js} +2 -2
- package/dist/{pi-model-discovery-BGjjAfS_.js → pi-model-discovery-Cv0FIBjp.js} +1 -1
- package/dist/{pid-alive-SdfUhiUL.js → pid-alive-dd2LsB9B.js} +1 -1
- package/dist/{plugin-auto-enable-CkSukyUJ.js → plugin-auto-enable-Clq5aaN8.js} +2 -2
- package/dist/{plugin-owned-work-recovery-adapter--0U5isrX.js → plugin-owned-work-recovery-adapter-tahoDsQP.js} +7 -7
- package/dist/{plugin-registry-Bj2UEGYL.js → plugin-registry-Co2I2dee.js} +4 -4
- package/dist/{plugins-cli-DxRN4ecF.js → plugins-cli-BbCRBZ8E.js} +113 -113
- package/dist/{plugins-U6rjKH4S.js → plugins-s69ApVox.js} +32 -32
- package/dist/{ports-C39ULrzN.js → ports-CbVKJEbZ.js} +2 -2
- package/dist/{ports-Bou4KIns.js → ports-D3N8WNv7.js} +3 -3
- package/dist/{program-15ahbGoV.js → program-DZV-02XU.js} +109 -109
- package/dist/{progress-CNFYgWmi.js → progress-CSthTuLH.js} +2 -2
- package/dist/{prompt-select-styled-UplxBFKi.js → prompt-select-styled-GsqEjvHR.js} +48 -48
- package/dist/{prompt-style-BDFZg96K.js → prompt-style-C6yO0kan.js} +1 -1
- package/dist/{provider-auth-helpers-BVUg3rt9.js → provider-auth-helpers-DL--wYUD.js} +6 -6
- package/dist/{proxy-env-DlwU1FI0.js → proxy-env-BwHmf2xr.js} +1 -1
- package/dist/{push-apns-Brgo5FF_.js → push-apns-DDrvx1KA.js} +10 -10
- package/dist/{pw-ai-BuxU6NcI.js → pw-ai-9MdWRxeB.js} +17 -17
- package/dist/{qmd-manager-Co6bGTb-.js → qmd-manager-D6HnLpUI.js} +25 -25
- package/dist/{qmd-scope-C73b3Bad.js → qmd-scope-B3hEskxa.js} +1 -1
- package/dist/{qr-cli-BatJFHjG.js → qr-cli-3HQW1ysr.js} +10 -10
- package/dist/{query-expansion-Db-cwB6N.js → query-expansion-Ba0qHd1X.js} +10 -10
- package/dist/{reconcile-bundled-pSk1Enkt.js → reconcile-bundled-ETwvh8Lp.js} +3 -3
- package/dist/{recorder-Co7XfeXs.js → recorder-DWp7wJN5.js} +2 -2
- package/dist/{recovery-adapter-D4N2DA4U.js → recovery-adapter-D7ZF1aEL.js} +3 -3
- package/dist/{recovery-adapter-Bd5Lx0lD.js → recovery-adapter-Keltudpw.js} +2 -2
- package/dist/{recovery-adapter-Ce8bGqr6.js → recovery-adapter-ke4F4Py1.js} +7 -7
- package/dist/{recovery-prompt-BNuvIRHh.js → recovery-prompt-BDu5Z1ac.js} +1 -1
- package/dist/{redact-snapshot-CWZRUrKd.js → redact-snapshot-CIe93cqM.js} +2 -2
- package/dist/{register.agent-qsvG5d6b.js → register.agent-BPzxR5eF.js} +124 -124
- package/dist/register.configure-B3_fTtgY.js +172 -0
- package/dist/{register.maintenance-FoAdPMFW.js → register.maintenance-BMcTylyl.js} +132 -132
- package/dist/{register.message-jqWymiCX.js → register.message-C5pBU08J.js} +103 -103
- package/dist/{register.onboard-KhVcvpjS.js → register.onboard-Czx8Kmyg.js} +26 -26
- package/dist/{register.setup-6Dis4a-c.js → register.setup-CTInxp0P.js} +29 -29
- package/dist/{register.status-health-sessions-DRwbJpYv.js → register.status-health-sessions-B5Rv4Dsf.js} +122 -122
- package/dist/{register.subclis-9qtDZp7M.js → register.subclis-DZL7ZFwa.js} +35 -35
- package/dist/{replies-NOlwewVf.js → replies-CrZI5K0e.js} +5 -5
- package/dist/{reply-directives-BN2i_45e.js → reply-directives-CF6_EhVh.js} +2 -2
- package/dist/{reply-prefix-w4MwKPHk.js → reply-prefix-CeZ9Uz8z.js} +1 -1
- package/dist/{reset-9GUBHVgp.js → reset-D-mCgUpD.js} +1 -1
- package/dist/{resolve-route-CrsHJxmf.js → resolve-route-yDs92eUQ.js} +6 -6
- package/dist/{rpc-hQ8QyZfR.js → rpc-Do5rvfno.js} +3 -3
- package/dist/{run-main-D8aWBZut.js → run-main-BYRPATOb.js} +122 -122
- package/dist/{runs-CIwQKryx.js → runs-C1AHoTDq.js} +7 -7
- package/dist/{runtime-config-dhfqY0Av.js → runtime-config-DYgOR0MD.js} +1 -1
- package/dist/{runtime-config-collectors-DvDpcifN.js → runtime-config-collectors-BLVuIB75.js} +1 -1
- package/dist/{runtime-guard-SZPrkFGc.js → runtime-guard-BmktwqCK.js} +1 -1
- package/dist/{runtime-DcEApmUI.js → runtime-iNm_LniP.js} +4 -4
- package/dist/{sandbox-DUHQEePj.js → sandbox-Da_kzIjf.js} +21 -21
- package/dist/{sandbox-cli-DlQR1_hY.js → sandbox-cli-DuSmbDES.js} +33 -33
- package/dist/{secrets-cli-DbI7GN_9.js → secrets-cli-CTwKCtw5.js} +16 -16
- package/dist/{security-cli-BiKOgX17.js → security-cli-N9bUi8Q4.js} +47 -47
- package/dist/{send-T7B6Djpm.js → send-B2OFN92Q.js} +7 -7
- package/dist/{send-CCpmsTaF.js → send-BrIw5gc4.js} +6 -6
- package/dist/{send-D1_IMV2p.js → send-DDirI-zY.js} +13 -13
- package/dist/{send-BgoXf_pU.js → send-DUG-oCDA.js} +6 -6
- package/dist/{server-aWUVSCfe.js → server-CTE0rQkl.js} +23 -23
- package/dist/{server-context-6JE_fAZa.js → server-context-BFf0C9iy.js} +12 -12
- package/dist/{server-lifecycle-DrkkrkLG.js → server-lifecycle-HSz4A7oj.js} +3 -3
- package/dist/{server-middleware-C4sFNt38.js → server-middleware-BfsPD7V5.js} +1 -1
- package/dist/{server-node-events-M-He8yAD.js → server-node-events-Dfykgqkj.js} +103 -103
- package/dist/{service-D7MwyeF6.js → service-BvpFqVNe.js} +15 -15
- package/dist/{session-consumer-agents-CvPuQmfS.js → session-consumer-agents-BRMrM2o-.js} +1 -1
- package/dist/{session-consumer-claim-sweep-BwHCvVar.js → session-consumer-claim-sweep-C-w92Ik5.js} +9 -9
- package/dist/{session-key-DCnSJLJC.js → session-key-D0gYNgj1.js} +1 -1
- package/dist/{session-meta-AHw8bwC2.js → session-meta-B_9mMU72.js} +1 -1
- package/dist/{session-storage-2RXtwc2B.js → session-storage-BDHA7onc.js} +22 -22
- package/dist/{session-storage-owner-C2S5c5Ct.js → session-storage-owner-CE7dPxVq.js} +53 -53
- package/dist/{session-store-targets-Dfi0lJu6.js → session-store-targets-DSlE2YTH.js} +3 -3
- package/dist/{session-utils-N1E2Os2e.js → session-utils-Qu1Mxoz3.js} +9 -9
- package/dist/{sessions-ByIiYDOv.js → sessions-BJTO-2xk.js} +17 -17
- package/dist/{sessions-CiGjB89K.js → sessions-CbISkp7n.js} +5 -5
- package/dist/{sessions-CDZSxsqg.js → sessions-DcU-v_tQ.js} +6 -6
- package/dist/{sessions-claims-status-Due9OmHi.js → sessions-claims-status-BVw2gdh3.js} +11 -11
- package/dist/{sessions-maintenance-core-mGWdB4w9.js → sessions-maintenance-core-BhBRIGU4.js} +8 -8
- package/dist/{setup-helpers-Db5Eiwfz.js → setup-helpers-llVNLaGg.js} +1 -1
- package/dist/{shared-BD85Vehr.js → shared-DWSJKo_J.js} +4 -4
- package/dist/{shared-Dj_9K6TV.js → shared-DiKdnJLT.js} +2 -2
- package/dist/{skill-commands-RbKycCIr.js → skill-commands-ByQ7_wSo.js} +7 -7
- package/dist/{skill-scanner-_B-P9k6R.js → skill-scanner-BF0g0j0b.js} +7 -7
- package/dist/{skills-DQXl0zPN.js → skills-B_8rpYgx.js} +6 -6
- package/dist/{skills-cli-CoFk-jGI.js → skills-cli-DPCY-cBo.js} +9 -9
- package/dist/{skills-install-CbZM96Md.js → skills-install-7wyldk9K.js} +9 -9
- package/dist/{skills-status-BzrUtJEQ.js → skills-status-B6eaKM8l.js} +3 -3
- package/dist/{status-1Hex6Hbe.js → status-BEBudOEO.js} +49 -49
- package/dist/{status.update-BfbrrxHR.js → status.update-DFxOh1ri.js} +2 -2
- package/dist/{storage-config-Dz2pNq3V.js → storage-config-JrkJ-0mD.js} +4 -4
- package/dist/{store-DNFja7Ml.js → store-BbFKZJKS.js} +7 -7
- package/dist/{subsystem-BNf8H-Zm.js → subsystem-xTuYkxuQ.js} +1 -1
- package/dist/{supervisor-BTx-mYVb.js → supervisor-SBLvQOVa.js} +2 -2
- package/dist/{system-cli-CCnFtRmN.js → system-cli-D1NTf4-m.js} +13 -13
- package/dist/{system-run-command-Dn4pjv1t.js → system-run-command-D5kMl0NY.js} +2 -2
- package/dist/{systemd-dCivcEEh.js → systemd-BT6dJ-0G.js} +11 -11
- package/dist/{systemd-hints-DKKIvtLc.js → systemd-hints-e6hBRMDf.js} +9 -9
- package/dist/{systemd-linger-OHTcLrbQ.js → systemd-linger-BSyMrbbt.js} +2 -2
- package/dist/{table-C7H5Lwhe.js → table-BVq_qQUE.js} +2 -2
- package/dist/{tables-BcvyK02n.js → tables-CfbMQJYc.js} +1 -1
- package/dist/{tailnet-CImZKZJW.js → tailnet-QfxqR4vE.js} +1 -1
- package/dist/{tailscale-B18BMO5n.js → tailscale-D0OOOayz.js} +2 -2
- package/dist/{task-pipeline-boot-MOBuVbRZ.js → task-pipeline-boot-DHHiFfrN.js} +103 -103
- package/dist/{task-runlog-retention-BSWFe7it.js → task-runlog-retention-COTIMum4.js} +5 -5
- package/dist/{tasks-DSspLa-k.js → tasks-DX3vGbQp.js} +11 -11
- package/dist/{tokens-CifyLNEm.js → tokens-BLTw7hkA.js} +1 -1
- package/dist/{tool-display-C8fJRy0v.js → tool-display-DgVBn6pw.js} +1 -1
- package/dist/{tool-loop-detection-DNtwIsX0.js → tool-loop-detection-DWOtmjfd.js} +2 -2
- package/dist/{trash-DeXdzEHp.js → trash-DFORyVVD.js} +3 -3
- package/dist/{tui-DiBWn1ps.js → tui-Y47OkCY6.js} +9 -9
- package/dist/{tui-cli-0XkkeQf6.js → tui-cli-BK9oKFut.js} +35 -35
- package/dist/{update-cli-vPcjjv5_.js → update-cli-sh07vJot.js} +142 -142
- package/dist/{update-DRgOzhPi.js → update-fBTm6-oX.js} +3 -3
- package/dist/{update-runner-Dcaoqle4.js → update-runner-u1A5zaMd.js} +18 -18
- package/dist/{user-run-recording-B9LdfyWT.js → user-run-recording-CxBc2Jon.js} +2 -2
- package/dist/{validation-cli-DHqNm53i.js → validation-cli-DHucU5a8.js} +102 -102
- package/dist/{web-cli-BtHivcdm.js → web-cli-4yA2eTYI.js} +3 -3
- package/dist/{webhooks-cli-C695mkPl.js → webhooks-cli-B4XnYSad.js} +10 -10
- package/dist/{widearea-dns-cOQiZHOu.js → widearea-dns-D_Hocera.js} +1 -1
- package/dist/{with-timeout-TcIyDCxH.js → with-timeout-Ckdjpoqb.js} +6 -6
- package/dist/{workspace-DDuzC-ch.js → workspace-UYxvaf5A.js} +2 -2
- package/dist/{workspace-dirs-D56GdN_R.js → workspace-dirs-CqcsAdcV.js} +1 -1
- package/dist/{ws-CQqP1z5x.js → ws-B_HpEvRE.js} +2 -2
- package/dist/{wsl-DBdhRAWE.js → wsl-Be9W0qZW.js} +2 -2
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/identity-oidc/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/kokoro/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/ui-surfaces/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/clawbot-cli-DkKjzk5H.js +0 -33
- package/dist/cli-BmswsRzN.js +0 -168
- package/dist/register.configure-CYUHzWqX.js +0 -172
|
@@ -1,131 +1,131 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Dt as sliceUtf16Safe, Et as sleep$1, H as openBoundaryFileSync, L as isBlockedObjectKey, N as INCLUDE_KEY, O as normalizeLogLevel, Ot as truncateUtf16Safe, Q as normalizeWindowsPathForComparison, St as resolveUserPath, Tt as shortenHomePath, V as openBoundaryFile, _t as isRecord$1, a as logVerbose, c as shouldLogVerbose, ct as CONFIG_DIR, ht as escapeRegExp, kt as resolvePreferredOpenClawTmpDir, m as getChildLogger, p as theme, t as danger, tt as isDangerousHostEnvVarName, u as warn, ut as clampInt, vt as normalizeE164, wt as shortenHomeInString, x as appendFileLog } from "./globals-
|
|
2
|
+
import { Dt as sliceUtf16Safe, Et as sleep$1, H as openBoundaryFileSync, L as isBlockedObjectKey, N as INCLUDE_KEY, O as normalizeLogLevel, Ot as truncateUtf16Safe, Q as normalizeWindowsPathForComparison, St as resolveUserPath, Tt as shortenHomePath, V as openBoundaryFile, _t as isRecord$1, a as logVerbose, c as shouldLogVerbose, ct as CONFIG_DIR, ht as escapeRegExp, kt as resolvePreferredOpenClawTmpDir, m as getChildLogger, p as theme, t as danger, tt as isDangerousHostEnvVarName, u as warn, ut as clampInt, vt as normalizeE164, wt as shortenHomeInString, x as appendFileLog } from "./globals-3lUHnZas.js";
|
|
3
3
|
import { _ as expandHomePrefix, g as resolveStateDir, u as resolveGatewayPort, y as resolveRequiredHomeDir } from "./paths-BMo6kTge.js";
|
|
4
4
|
import { n as resolveProcessScopedMap, t as isPlainObject } from "./plain-object-Doc_YkH1.js";
|
|
5
|
-
import { m as defaultRuntime, p as createNonExitingRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
+
import { m as defaultRuntime, p as createNonExitingRuntime, t as createSubsystemLogger } from "./subsystem-xTuYkxuQ.js";
|
|
6
6
|
import { t as parseBooleanValue$1 } from "./boolean-C71HJEcH.js";
|
|
7
7
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
8
|
-
import { f as mergeDelayedAgentTurn, h as WORKSPACE_LANE_DENIED_REASON, l as enqueueAgentTurn, m as setDelayedReleaseHold, p as peekDelayedAgentTurn, r as AGENT_TURN_TOPIC, s as clearDelayedReleaseHold, u as isClaimableAgentTurnWorkId } from "./agent-turn-enqueue-
|
|
9
|
-
import { $i as getSoonestCooldownExpiry, $r as resolveDefaultModelForAgent, $s as resolveSlackNativeStreaming, $t as resolveSlackReplyToMode, A as listPluginCommands, Aa as getConfigOverrides, Ai as OLLAMA_NATIVE_BASE_URL, At as resolveSessionFilePath, Bn as GATEWAY_CLIENT_IDS, Br as findNormalizedProviderValue, Bt as resolveParentSessionGroupId, Cn as deliveryContextFromSession, Cs as safeStatSync, Dn as normalizeSessionDeliveryFields, E as buildPluginHealthReport, Ec as normalizeSecretInput, En as normalizeDeliveryContext, F as getSpeechProvider, Fa as parseConfigPath, Fi as buildUsageWithNoCost, Fn as listDeliverableMessageChannels, Ft as resolveStorePath, G as createInternalHookEvent, Ga as resolveIMessageRemoteAttachmentRoots, Gc as resolveOwnerDisplaySetting, Go as isAvatarHttpUrl, Gr as normalizeModelRef$2, Gt as normalizeSignalMessagingTarget, Ha as isInboundPathAllowed, Hc as resolveShellEnvFallbackTimeoutMs, Hi as resolveModelAuthMode, Hn as GATEWAY_CLIENT_NAMES, I as isBuiltinTtsProvider, Ia as setConfigValueAtPath, Ic as splitTrailingAuthProfile, Ii as getApiKeyForModel, In as normalizeMessageChannel, It as deriveSessionMetaPatch, J as StorageReadAccessError, Jo as isSupportedLocalAvatarExtension, Jt as normalizeStringEntries, Ka as normalizeScpRemoteHost, Kc as readTaskWorkStates, Kn as normalizeAccountId$1, Kt as normalizeAtHashSlug, L as replaceSpeechProviders, La as unsetConfigValueAtPath, Lc as DEFAULT_CONTEXT_TOKENS, Li as getCustomProviderApiKey, Ln as resolveGatewayMessageChannel, Lr as buildAllowedModelSet, M as registerPluginCommand, Ma as setConfigOverride, Mi as buildAssistantMessage, Mn as isInternalMessageChannel, Mt as resolveSessionTranscriptPath, N as BUILTIN_TTS_PROVIDER_IDS, Na as unsetConfigOverride, Nc as normalizeResolvedSecretInputString, Ni as buildAssistantMessageWithZeroUsage, Nn as isMarkdownCapableMessageChannel, Nr as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Ns as normalizeAnyChannelId, O as clearPluginCommands, On as INTERNAL_MESSAGE_CHANNEL, Os as CHAT_CHANNEL_ORDER, P as getRegisteredSpeechProviders, Pa as getConfigValueAtPath, Pi as buildStreamErrorAssistantMessage, Ps as normalizeChannelId$2, Q as requireSessionStorageRuntime, Qi as resolveAuthProfileOrder, Qo as buildChannelAccountBindings, Qr as resolveConfiguredModelRef, Qs as resolveDiscordPreviewStreamMode, Qt as resolveSlackAccount, Rc as DEFAULT_MODEL, Ri as requireApiKey, Rn as resolveMessageChannel, Rr as buildConfiguredAllowlistKeys, Si as retryAsync, Sn as resolveAccountEntry, Ss as isPathInside, T as normalizePluginHttpPath, Tn as mergeDeliveryContext, To as parseDurationMs, Tr as applyMergePatch, U as normalizeProviderId, Uo as AVATAR_MAX_BYTES, Ur as isCliProvider, Ut as getChannelDock, Vc as getShellPathFromLoginShell, Vi as resolveEnvApiKey, Vn as GATEWAY_CLIENT_MODES, Wa as resolveIMessageAttachmentRoots, Wo as isAvatarDataUrl, Wr as modelKey, Wt as listChannelDocks, X as getConversationReadQuery, Xn as CtxProjectionCorruptionError, Y as createConversationReadQuery, Yn as resolveSessionLockMaxHoldFromTimeout, Yr as parseModelRef, Yt as normalizeStringEntriesLower, Z as SessionStorageUnavailableError, Zs as mapStreamingModeToSlackLegacyDraftStreamMode, _ as clearRegisteredPluginApis, _c as resolveAuthStorePathForDisplay, _n as resolveDiscordAccount, _r as buildEnforcedShellCommand, _t as resolveFreshSessionTotalTokens, a as formatAllowlistMatchMeta, aa as resolveApiKeyForProfile, ac as markAuthProfileGood, ai as resolveThinkingDefault, an as resolveSignalAccount, ar as readConfigFileSnapshot, bc as withFileLock, bn as resolveChannelGroupRequireMention, c as getActivePluginRegistry, ct as recordSessionMetaFromInbound, ds as isBundledChannelEnabledByChannelConfig, dt as updateLastRoute, ea as isProfileInCooldown, ec as resolveSlackStreamingMode, el as discardBufferedPluginTaskPasses, en as resolveSlackAppToken, f as requireActivePluginRegistry, fn as resolveIMessageAccount, ft as updateSessionStore, g as addRegisteredPluginApi, gs as resolveMemorySlotDecision, gt as mergeSessionEntry, hn as listEnabledDiscordAccounts, ht as DEFAULT_RESET_TRIGGERS, ia as resolveProfilesUnavailableReason, ic as listProfilesForProvider, ii as resolveSubagentSpawnModelSelection, il as replaceBufferedPluginTaskPasses, is as loadPluginManifestRegistry, it as loadSessionStore, j as matchPluginCommand, ja as resetConfigOverrides, ji as createOllamaStreamFn, jn as isGatewayMessageChannel, jt as resolveSessionFilePathOptions, k as executePluginCommand, kn as isDeliverableMessageChannel, l as getActivePluginRegistryKey, ln as resolveWhatsAppAccount, lr as writeConfigFile, ls as BUNDLED_ENABLED_BY_DEFAULT, m as setActivePluginRegistry, ms as resolveEffectiveEnableState, n as listChannelPlugins, na as markAuthProfileUsed, ni as resolveReasoningDefault, nl as listBufferedPluginTaskPasses, nn as listEnabledSignalAccounts, nt as getConfiguredSessionStorageRuntime, o as resolveAllowlistMatchByCandidates, on as isWhatsAppGroupJid, or as readConfigFileSnapshotForWrite, pn as createDiscordActionGate, ps as normalizePluginsConfig, pt as updateSessionStoreEntry, q as triggerInternalHook, qa as parseNonNegativeByteSize, qn as acquireSessionWriteLock, qo as isPathWithinRoot, qr as normalizeProviderId$1, qt as normalizeHyphenSlug, r as normalizeChannelId$1, rc as dedupeProfileIds, ro as resolveExecPolicyPreset, rr as loadConfig, s as getActiveGatewayPluginRegistry, sl as RecoveryAdmissionError, sn as normalizeWhatsAppTarget, st as readSessionUpdatedAt, t as getChannelPlugin, ta as markAuthProfileFailure, ti as resolveModelRefFromString, tn as resolveSlackBotToken, ts as validateJsonSchemaValue, uc as ensureAuthProfileStore, us as applyTestPluginDefaults, vc as resolveOpenClawAgentDir, vn as normalizeDiscordToken, vt as setSessionRuntimeModel, wn as deliveryContextKey, xa as runTasksWithConcurrency, xc as resolveAuthProfileDisplayLabel, xs as discoverOpenClawPlugins, y as createPluginRegistry, yn as resolveChannelGroupPolicy, za as validateConfigObjectWithPlugins, zc as DEFAULT_PROVIDER, zr as buildModelAliasIndex, zt as resolveGroupSessionKey } from "./plugins-
|
|
8
|
+
import { f as mergeDelayedAgentTurn, h as WORKSPACE_LANE_DENIED_REASON, l as enqueueAgentTurn, m as setDelayedReleaseHold, p as peekDelayedAgentTurn, r as AGENT_TURN_TOPIC, s as clearDelayedReleaseHold, u as isClaimableAgentTurnWorkId } from "./agent-turn-enqueue-ArRzUyAk.js";
|
|
9
|
+
import { $i as getSoonestCooldownExpiry, $r as resolveDefaultModelForAgent, $s as resolveSlackNativeStreaming, $t as resolveSlackReplyToMode, A as listPluginCommands, Aa as getConfigOverrides, Ai as OLLAMA_NATIVE_BASE_URL, At as resolveSessionFilePath, Bn as GATEWAY_CLIENT_IDS, Br as findNormalizedProviderValue, Bt as resolveParentSessionGroupId, Cn as deliveryContextFromSession, Cs as safeStatSync, Dn as normalizeSessionDeliveryFields, E as buildPluginHealthReport, Ec as normalizeSecretInput, En as normalizeDeliveryContext, F as getSpeechProvider, Fa as parseConfigPath, Fi as buildUsageWithNoCost, Fn as listDeliverableMessageChannels, Ft as resolveStorePath, G as createInternalHookEvent, Ga as resolveIMessageRemoteAttachmentRoots, Gc as resolveOwnerDisplaySetting, Go as isAvatarHttpUrl, Gr as normalizeModelRef$2, Gt as normalizeSignalMessagingTarget, Ha as isInboundPathAllowed, Hc as resolveShellEnvFallbackTimeoutMs, Hi as resolveModelAuthMode, Hn as GATEWAY_CLIENT_NAMES, I as isBuiltinTtsProvider, Ia as setConfigValueAtPath, Ic as splitTrailingAuthProfile, Ii as getApiKeyForModel, In as normalizeMessageChannel, It as deriveSessionMetaPatch, J as StorageReadAccessError, Jo as isSupportedLocalAvatarExtension, Jt as normalizeStringEntries, Ka as normalizeScpRemoteHost, Kc as readTaskWorkStates, Kn as normalizeAccountId$1, Kt as normalizeAtHashSlug, L as replaceSpeechProviders, La as unsetConfigValueAtPath, Lc as DEFAULT_CONTEXT_TOKENS, Li as getCustomProviderApiKey, Ln as resolveGatewayMessageChannel, Lr as buildAllowedModelSet, M as registerPluginCommand, Ma as setConfigOverride, Mi as buildAssistantMessage, Mn as isInternalMessageChannel, Mt as resolveSessionTranscriptPath, N as BUILTIN_TTS_PROVIDER_IDS, Na as unsetConfigOverride, Nc as normalizeResolvedSecretInputString, Ni as buildAssistantMessageWithZeroUsage, Nn as isMarkdownCapableMessageChannel, Nr as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Ns as normalizeAnyChannelId, O as clearPluginCommands, On as INTERNAL_MESSAGE_CHANNEL, Os as CHAT_CHANNEL_ORDER, P as getRegisteredSpeechProviders, Pa as getConfigValueAtPath, Pi as buildStreamErrorAssistantMessage, Ps as normalizeChannelId$2, Q as requireSessionStorageRuntime, Qi as resolveAuthProfileOrder, Qo as buildChannelAccountBindings, Qr as resolveConfiguredModelRef, Qs as resolveDiscordPreviewStreamMode, Qt as resolveSlackAccount, Rc as DEFAULT_MODEL, Ri as requireApiKey, Rn as resolveMessageChannel, Rr as buildConfiguredAllowlistKeys, Si as retryAsync, Sn as resolveAccountEntry, Ss as isPathInside, T as normalizePluginHttpPath, Tn as mergeDeliveryContext, To as parseDurationMs, Tr as applyMergePatch, U as normalizeProviderId, Uo as AVATAR_MAX_BYTES, Ur as isCliProvider, Ut as getChannelDock, Vc as getShellPathFromLoginShell, Vi as resolveEnvApiKey, Vn as GATEWAY_CLIENT_MODES, Wa as resolveIMessageAttachmentRoots, Wo as isAvatarDataUrl, Wr as modelKey, Wt as listChannelDocks, X as getConversationReadQuery, Xn as CtxProjectionCorruptionError, Y as createConversationReadQuery, Yn as resolveSessionLockMaxHoldFromTimeout, Yr as parseModelRef, Yt as normalizeStringEntriesLower, Z as SessionStorageUnavailableError, Zs as mapStreamingModeToSlackLegacyDraftStreamMode, _ as clearRegisteredPluginApis, _c as resolveAuthStorePathForDisplay, _n as resolveDiscordAccount, _r as buildEnforcedShellCommand, _t as resolveFreshSessionTotalTokens, a as formatAllowlistMatchMeta, aa as resolveApiKeyForProfile, ac as markAuthProfileGood, ai as resolveThinkingDefault, an as resolveSignalAccount, ar as readConfigFileSnapshot, bc as withFileLock, bn as resolveChannelGroupRequireMention, c as getActivePluginRegistry, ct as recordSessionMetaFromInbound, ds as isBundledChannelEnabledByChannelConfig, dt as updateLastRoute, ea as isProfileInCooldown, ec as resolveSlackStreamingMode, el as discardBufferedPluginTaskPasses, en as resolveSlackAppToken, f as requireActivePluginRegistry, fn as resolveIMessageAccount, ft as updateSessionStore, g as addRegisteredPluginApi, gs as resolveMemorySlotDecision, gt as mergeSessionEntry, hn as listEnabledDiscordAccounts, ht as DEFAULT_RESET_TRIGGERS, ia as resolveProfilesUnavailableReason, ic as listProfilesForProvider, ii as resolveSubagentSpawnModelSelection, il as replaceBufferedPluginTaskPasses, is as loadPluginManifestRegistry, it as loadSessionStore, j as matchPluginCommand, ja as resetConfigOverrides, ji as createOllamaStreamFn, jn as isGatewayMessageChannel, jt as resolveSessionFilePathOptions, k as executePluginCommand, kn as isDeliverableMessageChannel, l as getActivePluginRegistryKey, ln as resolveWhatsAppAccount, lr as writeConfigFile, ls as BUNDLED_ENABLED_BY_DEFAULT, m as setActivePluginRegistry, ms as resolveEffectiveEnableState, n as listChannelPlugins, na as markAuthProfileUsed, ni as resolveReasoningDefault, nl as listBufferedPluginTaskPasses, nn as listEnabledSignalAccounts, nt as getConfiguredSessionStorageRuntime, o as resolveAllowlistMatchByCandidates, on as isWhatsAppGroupJid, or as readConfigFileSnapshotForWrite, pn as createDiscordActionGate, ps as normalizePluginsConfig, pt as updateSessionStoreEntry, q as triggerInternalHook, qa as parseNonNegativeByteSize, qn as acquireSessionWriteLock, qo as isPathWithinRoot, qr as normalizeProviderId$1, qt as normalizeHyphenSlug, r as normalizeChannelId$1, rc as dedupeProfileIds, ro as resolveExecPolicyPreset, rr as loadConfig, s as getActiveGatewayPluginRegistry, sl as RecoveryAdmissionError, sn as normalizeWhatsAppTarget, st as readSessionUpdatedAt, t as getChannelPlugin, ta as markAuthProfileFailure, ti as resolveModelRefFromString, tn as resolveSlackBotToken, ts as validateJsonSchemaValue, uc as ensureAuthProfileStore, us as applyTestPluginDefaults, vc as resolveOpenClawAgentDir, vn as normalizeDiscordToken, vt as setSessionRuntimeModel, wn as deliveryContextKey, xa as runTasksWithConcurrency, xc as resolveAuthProfileDisplayLabel, xs as discoverOpenClawPlugins, y as createPluginRegistry, yn as resolveChannelGroupPolicy, za as validateConfigObjectWithPlugins, zc as DEFAULT_PROVIDER, zr as buildModelAliasIndex, zt as resolveGroupSessionKey } from "./plugins-s69ApVox.js";
|
|
10
10
|
import { c as optionalStringEnum, f as applyTargetToParams, l as stringEnum, m as actionRequiresTarget, o as channelTargetSchema, p as actionHasTarget, s as channelTargetsSchema } from "./retry-policy-By-oqFVH.js";
|
|
11
11
|
import { t as VERSION } from "./version-BdUvZ8Ep.js";
|
|
12
|
-
import { A as normalizeOptionalAccountId, B as isSubagentSessionKey, C as sanitizeAgentId, E as toAgentStoreSessionKey, F as isAcpSessionKey, H as resolveThreadParentSessionKey, L as isCronSessionKey, M as HEARTBEAT_SESSION_KEY_SEGMENT, N as WAKE_GATE_SESSION_KEY_SEGMENT, O as DEFAULT_ACCOUNT_ID, P as getSubagentDepth, S as resolveThreadSessionKeys, V as parseAgentSessionKey, W as stripAgentSessionKeyPrefix, _ as resolveAgentIdFromSessionKey, a as buildAgentMainSessionKey, d as isKnownAgentMainSessionKey, f as isValidAgentId, j as BACKGROUND_SESSION_KEY_SEGMENT, k as normalizeAccountId$2, m as normalizeMainKey, p as normalizeAgentId, r as DEVICE_SENDER_PREFIX, s as classifySessionKeyShape, t as DEFAULT_AGENT_ID, v as resolveCanonicalIdentity, y as resolveConfiguredCanonicalIdentity, z as isHeartbeatChildOfSessionKey } from "./session-key-
|
|
13
|
-
import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, P as resolveAgentModelFallbackValues, _ 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, y as DEFAULT_HEARTBEAT_FILENAME } from "./agent-scope-
|
|
14
|
-
import { a as logInfo, i as logError, n as runExec, o as logWarn, r as logDebug, t as runCommandWithTimeout } from "./exec-
|
|
15
|
-
import { n as resolveOpenClawPackageRoot } from "./openclaw-root-
|
|
12
|
+
import { A as normalizeOptionalAccountId, B as isSubagentSessionKey, C as sanitizeAgentId, E as toAgentStoreSessionKey, F as isAcpSessionKey, H as resolveThreadParentSessionKey, L as isCronSessionKey, M as HEARTBEAT_SESSION_KEY_SEGMENT, N as WAKE_GATE_SESSION_KEY_SEGMENT, O as DEFAULT_ACCOUNT_ID, P as getSubagentDepth, S as resolveThreadSessionKeys, V as parseAgentSessionKey, W as stripAgentSessionKeyPrefix, _ as resolveAgentIdFromSessionKey, a as buildAgentMainSessionKey, d as isKnownAgentMainSessionKey, f as isValidAgentId, j as BACKGROUND_SESSION_KEY_SEGMENT, k as normalizeAccountId$2, m as normalizeMainKey, p as normalizeAgentId, r as DEVICE_SENDER_PREFIX, s as classifySessionKeyShape, t as DEFAULT_AGENT_ID, v as resolveCanonicalIdentity, y as resolveConfiguredCanonicalIdentity, z as isHeartbeatChildOfSessionKey } from "./session-key-D0gYNgj1.js";
|
|
13
|
+
import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, P as resolveAgentModelFallbackValues, _ 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, y as DEFAULT_HEARTBEAT_FILENAME } from "./agent-scope-m37qEcFM.js";
|
|
14
|
+
import { a as logInfo, i as logError, n as runExec, o as logWarn, r as logDebug, t as runCommandWithTimeout } from "./exec-BadOxgw_.js";
|
|
15
|
+
import { n as resolveOpenClawPackageRoot } from "./openclaw-root-Bh3xNyXD.js";
|
|
16
16
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-CmScvpk-.js";
|
|
17
17
|
import { n as docsSiteUrl, t as DOCS_SITE_URL } from "./docs-site-OVFfji6N.js";
|
|
18
18
|
import { t as formatCliCommand } from "./command-format-DZa6U7Yk.js";
|
|
19
19
|
import { n as resolveConversationLabel, r as normalizeChatType } from "./conversation-label-BO6vpkmD.js";
|
|
20
|
-
import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-
|
|
21
|
-
import { $ as setChannelPermissionDiscord, A as readMessagesDiscord, At as buildChannelKeyCandidates, B as kickMemberDiscord, C as createThreadDiscord, Ct as shouldEmitDiscordReactionNotification, D as listPinsDiscord, Dt as resolveTimestampMs, E as fetchMessageDiscord, Et as resolveDiscordSystemLocation, F as createScheduledEventDiscord, G as listGuildEmojisDiscord, H as listScheduledEventsDiscord, I as fetchChannelInfoDiscord, J as createChannelDiscord, K as uploadEmojiDiscord, L as fetchMemberInfoDiscord, M as unpinMessageDiscord, Mt as resolveChannelEntryMatchWithFallback, N as addRoleDiscord, O as listThreadsDiscord, Ot as fetchDiscord, P as banMemberDiscord, Q as removeChannelPermissionDiscord, R as fetchRoleInfoDiscord, S as recordChannelActivity, St as resolveGroupDmAllow, T as editMessageDiscord, Tt as formatDiscordUserTag, U as removeRoleDiscord, V as listGuildChannelsDiscord, W as timeoutMemberDiscord, X as editChannelDiscord, Y as deleteChannelDiscord, Z as moveChannelDiscord, _ as sendPollDiscord, _t as resolveDiscordGuildEntry, a as removeReactionDiscord, at as createDiscordClient, b as sendWebhookMessageDiscord, bt as resolveDiscordOwnerAllowFrom, c as formatDiscordComponentEventText, ct as parseDiscordTarget, d as parseDiscordModalCustomId, dt as listDiscordDirectoryPeersLive, et as stripUndefinedFields, f as parseDiscordModalCustomIdForCarbon, ft as isDiscordGroupAllowedByPolicy, g as sendMessageDiscord, gt as resolveDiscordChannelConfigWithFallback, h as resolveDiscordModalEntry, ht as resolveDiscordAllowListMatch, i as removeOwnReactionsDiscord, it as normalizePollInput, j as searchMessagesDiscord, jt as normalizeChannelSlug, k as pinMessageDiscord, kt as applyChannelMatchMeta, l as parseDiscordComponentCustomId, lt as resolveDiscordChannelId, m as resolveDiscordComponentEntry, mt as normalizeDiscordSlug, n as fetchReactionsDiscord, nt as hasAnyGuildPermissionDiscord, o as sendDiscordComponentMessage, ot as createDiscordRestClient, p as readDiscordComponentSpec, pt as normalizeDiscordAllowList, q as uploadStickerDiscord, r as reactMessageDiscord, rt as chunkDiscordTextWithMode, s as createDiscordFormModal, st as createDiscordRetryRunner, tt as fetchChannelPermissionsDiscord, u as parseDiscordComponentCustomIdForCarbon, ut as listDiscordDirectoryGroupsLive, v as sendStickerDiscord, vt as resolveDiscordMemberAccessState, w as deleteMessageDiscord, wt as formatDiscordReactionEmoji, x as getChannelActivity, xt as resolveDiscordShouldRequireMention, y as sendVoiceMessageDiscord, yt as resolveDiscordOwnerAccess, z as fetchVoiceStatusDiscord } from "./send-
|
|
20
|
+
import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-B2OFN92Q.js";
|
|
21
|
+
import { $ as setChannelPermissionDiscord, A as readMessagesDiscord, At as buildChannelKeyCandidates, B as kickMemberDiscord, C as createThreadDiscord, Ct as shouldEmitDiscordReactionNotification, D as listPinsDiscord, Dt as resolveTimestampMs, E as fetchMessageDiscord, Et as resolveDiscordSystemLocation, F as createScheduledEventDiscord, G as listGuildEmojisDiscord, H as listScheduledEventsDiscord, I as fetchChannelInfoDiscord, J as createChannelDiscord, K as uploadEmojiDiscord, L as fetchMemberInfoDiscord, M as unpinMessageDiscord, Mt as resolveChannelEntryMatchWithFallback, N as addRoleDiscord, O as listThreadsDiscord, Ot as fetchDiscord, P as banMemberDiscord, Q as removeChannelPermissionDiscord, R as fetchRoleInfoDiscord, S as recordChannelActivity, St as resolveGroupDmAllow, T as editMessageDiscord, Tt as formatDiscordUserTag, U as removeRoleDiscord, V as listGuildChannelsDiscord, W as timeoutMemberDiscord, X as editChannelDiscord, Y as deleteChannelDiscord, Z as moveChannelDiscord, _ as sendPollDiscord, _t as resolveDiscordGuildEntry, a as removeReactionDiscord, at as createDiscordClient, b as sendWebhookMessageDiscord, bt as resolveDiscordOwnerAllowFrom, c as formatDiscordComponentEventText, ct as parseDiscordTarget, d as parseDiscordModalCustomId, dt as listDiscordDirectoryPeersLive, et as stripUndefinedFields, f as parseDiscordModalCustomIdForCarbon, ft as isDiscordGroupAllowedByPolicy, g as sendMessageDiscord, gt as resolveDiscordChannelConfigWithFallback, h as resolveDiscordModalEntry, ht as resolveDiscordAllowListMatch, i as removeOwnReactionsDiscord, it as normalizePollInput, j as searchMessagesDiscord, jt as normalizeChannelSlug, k as pinMessageDiscord, kt as applyChannelMatchMeta, l as parseDiscordComponentCustomId, lt as resolveDiscordChannelId, m as resolveDiscordComponentEntry, mt as normalizeDiscordSlug, n as fetchReactionsDiscord, nt as hasAnyGuildPermissionDiscord, o as sendDiscordComponentMessage, ot as createDiscordRestClient, p as readDiscordComponentSpec, pt as normalizeDiscordAllowList, q as uploadStickerDiscord, r as reactMessageDiscord, rt as chunkDiscordTextWithMode, s as createDiscordFormModal, st as createDiscordRetryRunner, tt as fetchChannelPermissionsDiscord, u as parseDiscordComponentCustomIdForCarbon, ut as listDiscordDirectoryGroupsLive, v as sendStickerDiscord, vt as resolveDiscordMemberAccessState, w as deleteMessageDiscord, wt as formatDiscordReactionEmoji, x as getChannelActivity, xt as resolveDiscordShouldRequireMention, y as sendVoiceMessageDiscord, yt as resolveDiscordOwnerAccess, z as fetchVoiceStatusDiscord } from "./send-DDirI-zY.js";
|
|
22
22
|
import { n as formatTimeAgo } from "./format-relative-8ufJCb1A.js";
|
|
23
|
-
import { At as stripMessageCarriers, Cn as formatMessageStamp, Ct as buildInboundMetaSystemPrompt, Dt as getMessageIngress, Et as attachMessageIngress, Ot as isRepresentableEpochMs, Tn as resolveTimezone, Tt as renderInboundUserContext, _n as makeZeroUsageSnapshot, _t as sanitizeJsonb, an as HIDDEN_HEARTBEAT_CUSTOM_TYPE, bt as mergePromptContributions, gn as hasNonzeroUsage, hn as deriveSessionTotalTokens, jt as resolveSenderLabel, kt as messageTime, mn as derivePromptTokens, vn as normalizeUsage, vt as sha256, wn as formatZonedTimestamp, wt as collectInboundUserContext, xt as toJsonValue$1, yt as createCurrentUserPromptEnvelope } from "./storage-config-
|
|
24
|
-
import { C as clearActiveCoordinationDepth, S as shouldResolveSessionIdInput, _ as resolveDisplaySessionKey, b as resolveSessionReference, c as buildAgentToAgentMessageContext, d as isReplySkip, f as resolvePingPongTurns, g as resolveSandboxedSessionToolContext, h as resolveEffectiveSessionToolsVisibility, l as buildAgentToAgentReplyContext, m as createSessionVisibilityGuard, n as requestAuthorizedNudge, o as AuthorizationError, p as createAgentToAgentPolicy, r as requestNudge, s as buildAgentToAgentAnnounceContext, u as isAnnounceSkip, v as resolveInternalSessionKey, w as setActiveCoordinationDepth, x as resolveVisibleSessionReference, y as resolveMainSessionAlias } from "./nudge-
|
|
23
|
+
import { At as stripMessageCarriers, Cn as formatMessageStamp, Ct as buildInboundMetaSystemPrompt, Dt as getMessageIngress, Et as attachMessageIngress, Ot as isRepresentableEpochMs, Tn as resolveTimezone, Tt as renderInboundUserContext, _n as makeZeroUsageSnapshot, _t as sanitizeJsonb, an as HIDDEN_HEARTBEAT_CUSTOM_TYPE, bt as mergePromptContributions, gn as hasNonzeroUsage, hn as deriveSessionTotalTokens, jt as resolveSenderLabel, kt as messageTime, mn as derivePromptTokens, vn as normalizeUsage, vt as sha256, wn as formatZonedTimestamp, wt as collectInboundUserContext, xt as toJsonValue$1, yt as createCurrentUserPromptEnvelope } from "./storage-config-JrkJ-0mD.js";
|
|
24
|
+
import { C as clearActiveCoordinationDepth, S as shouldResolveSessionIdInput, _ as resolveDisplaySessionKey, b as resolveSessionReference, c as buildAgentToAgentMessageContext, d as isReplySkip, f as resolvePingPongTurns, g as resolveSandboxedSessionToolContext, h as resolveEffectiveSessionToolsVisibility, l as buildAgentToAgentReplyContext, m as createSessionVisibilityGuard, n as requestAuthorizedNudge, o as AuthorizationError, p as createAgentToAgentPolicy, r as requestNudge, s as buildAgentToAgentAnnounceContext, u as isAnnounceSkip, v as resolveInternalSessionKey, w as setActiveCoordinationDepth, x as resolveVisibleSessionReference, y as resolveMainSessionAlias } from "./nudge-DAMdAd6o.js";
|
|
25
25
|
import { t as redactIdentifier } from "./redact-identifier-BcqQpFrh.js";
|
|
26
26
|
import { t as KeyedAsyncQueue } from "./keyed-async-queue-DbliSjuz.js";
|
|
27
27
|
import { t as CommandLane } from "./lanes-BN1DVTrA.js";
|
|
28
28
|
import { n as isDiagnosticsEnabled, t as emitDiagnosticEvent } from "./diagnostic-events-D2ujPUHb.js";
|
|
29
|
-
import { i as getAgentTurnRuntime, o as tryGetAgentTurnRuntime } from "./agent-turn-runner-
|
|
30
|
-
import { a as resolveSessionRunStore, n as deriveSessionRunId, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-
|
|
31
|
-
import { A as isRateLimitAssistantError, B as resolveBootstrapTotalMaxChars, C as isBillingAssistantError, D as isFailoverAssistantError, E as isContextOverflowError, F as sanitizeUserFacingText, I as isAuthPermanentErrorMessage, L as isTimeoutErrorMessage, M as isTransientHttpError, N as parseImageDimensionError, O as isFailoverErrorMessage, P as parseImageSizeError, R as buildBootstrapContextFiles, S as isAuthAssistantError, T as isCompactionFailureError, V as sanitizeGoogleTurnOrdering, _ as classifyFailoverReason, a as isMessagingToolDuplicateNormalized, b as formatRawAssistantErrorForUi, c as sanitizeImageBlocks, d as canonicalizeBase64, f as estimateBase64DecodedBytes, g as BILLING_ERROR_USER_MESSAGE, h as isGoogleModelApi, j as isRawApiErrorPayload, k as isLikelyContextOverflowError, l as sanitizeToolResultImages, m as downgradeOpenAIReasoningBlocks, n as validateGeminiTurns, o as normalizeTextForComparison, p as downgradeOpenAIFunctionCallReasoningPairs, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as resolveImageSanitizationLimits, v as formatAssistantErrorText, w as isCloudCodeAssistFormatError, x as getApiErrorPayloadFingerprint, y as formatBillingErrorMessage, z as resolveBootstrapMaxChars } from "./pi-embedded-helpers-
|
|
32
|
-
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, x as expandToolGroups, y as mergeAlsoAllowPolicy } from "./sandbox-
|
|
29
|
+
import { i as getAgentTurnRuntime, o as tryGetAgentTurnRuntime } from "./agent-turn-runner-DoUxdVA8.js";
|
|
30
|
+
import { a as resolveSessionRunStore, n as deriveSessionRunId, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-DWp7wJN5.js";
|
|
31
|
+
import { A as isRateLimitAssistantError, B as resolveBootstrapTotalMaxChars, C as isBillingAssistantError, D as isFailoverAssistantError, E as isContextOverflowError, F as sanitizeUserFacingText, I as isAuthPermanentErrorMessage, L as isTimeoutErrorMessage, M as isTransientHttpError, N as parseImageDimensionError, O as isFailoverErrorMessage, P as parseImageSizeError, R as buildBootstrapContextFiles, S as isAuthAssistantError, T as isCompactionFailureError, V as sanitizeGoogleTurnOrdering, _ as classifyFailoverReason, a as isMessagingToolDuplicateNormalized, b as formatRawAssistantErrorForUi, c as sanitizeImageBlocks, d as canonicalizeBase64, f as estimateBase64DecodedBytes, g as BILLING_ERROR_USER_MESSAGE, h as isGoogleModelApi, j as isRawApiErrorPayload, k as isLikelyContextOverflowError, l as sanitizeToolResultImages, m as downgradeOpenAIReasoningBlocks, n as validateGeminiTurns, o as normalizeTextForComparison, p as downgradeOpenAIFunctionCallReasoningPairs, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as resolveImageSanitizationLimits, v as formatAssistantErrorText, w as isCloudCodeAssistFormatError, x as getApiErrorPayloadFingerprint, y as formatBillingErrorMessage, z as resolveBootstrapMaxChars } from "./pi-embedded-helpers-mGzreJbk.js";
|
|
32
|
+
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, x as expandToolGroups, y as mergeAlsoAllowPolicy } from "./sandbox-Da_kzIjf.js";
|
|
33
33
|
import { i as listCoreToolIds } from "./tool-catalog-U-EwFx72.js";
|
|
34
|
-
import { c as resolveExistingPathsWithinRoot, g as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as DEFAULT_UPLOAD_DIR } from "./extension-relay-auth-
|
|
35
|
-
import { i as isLoopbackHost } from "./ws-
|
|
36
|
-
import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-
|
|
37
|
-
import { a as resolveBrowserControlAuth } from "./server-context-
|
|
38
|
-
import { a as resolveSkillsPromptForRun, d as assertSandboxPath, f as resolveSandboxInputPath, g as applySkillEnvOverridesFromSnapshot, h as applySkillEnvOverrides, i as loadWorkspaceSkillEntries, m as resolveSandboxedMediaSource, o as skillsSnapshotSourceDiffers, r as buildWorkspaceSkillSnapshot, u as assertMediaNotDataUrl } from "./skills-
|
|
39
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
34
|
+
import { c as resolveExistingPathsWithinRoot, g as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as DEFAULT_UPLOAD_DIR } from "./extension-relay-auth-DaJK0rd5.js";
|
|
35
|
+
import { i as isLoopbackHost } from "./ws-B_HpEvRE.js";
|
|
36
|
+
import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-Db9gEJyX.js";
|
|
37
|
+
import { a as resolveBrowserControlAuth } from "./server-context-BFf0C9iy.js";
|
|
38
|
+
import { a as resolveSkillsPromptForRun, d as assertSandboxPath, f as resolveSandboxInputPath, g as applySkillEnvOverridesFromSnapshot, h as applySkillEnvOverrides, i as loadWorkspaceSkillEntries, m as resolveSandboxedMediaSource, o as skillsSnapshotSourceDiffers, r as buildWorkspaceSkillSnapshot, u as assertMediaNotDataUrl } from "./skills-B_8rpYgx.js";
|
|
39
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-BL542Mqz.js";
|
|
40
40
|
import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-B36-B8no.js";
|
|
41
41
|
import { c as readErrorName, i as formatErrorMessage, o as hasErrnoCode } from "./errors-DRGEw4PB.js";
|
|
42
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
43
|
-
import { a as isBlockedHostnameOrIp, l as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-
|
|
44
|
-
import { _ as mediaKindFromMime, c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, h as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as normalizeMimeType$1, p as kindFromMime, s as resizeToJpeg, u as getFileExtension } from "./image-ops-
|
|
45
|
-
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
46
|
-
import { r as resolveBrowserConfig } from "./trash-
|
|
47
|
-
import { i as resolveLsofCommandSync } from "./ports-
|
|
42
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-CJ7BaYqw.js";
|
|
43
|
+
import { a as isBlockedHostnameOrIp, l as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-BwHmf2xr.js";
|
|
44
|
+
import { _ as mediaKindFromMime, c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, h as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as normalizeMimeType$1, p as kindFromMime, s as resizeToJpeg, u as getFileExtension } from "./image-ops-fsbohlx7.js";
|
|
45
|
+
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-BbFKZJKS.js";
|
|
46
|
+
import { r as resolveBrowserConfig } from "./trash-DFORyVVD.js";
|
|
47
|
+
import { i as resolveLsofCommandSync } from "./ports-D3N8WNv7.js";
|
|
48
48
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-DtCWpKko.js";
|
|
49
49
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-C2TggqdC.js";
|
|
50
|
-
import { $ as resolveExplicitAgentSessionKey, A as DB_SESSION_HYDRATION_LIMIT, B as CHARS_PER_TOKEN_ESTIMATE$2, C as hasHookForPlugin, D as resolveProviderPromptCacheKey, E as buildPluginTurnIdentity, F as sessionLikelyHasOversizedToolResults, G as getToolResultText$1, H as createMessageCharEstimateCache, I as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, K as isToolResultMessage, L as TOOL_RESULT_TEXT_WEIGHT, M as pickLeaf, N as capToolResultContent, O as resolveProviderRuntimeIdentity, P as HARD_MAX_TOOL_RESULT_CHARS, Q as resolveAgentMainSessionKey, R as truncateTextHeadTail, T as buildPluginRuntimeIdentity, U as estimateContextChars$1, V as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, W as estimateMessageCharsCached, X as resolveSessionKey, Z as canonicalizeMainSessionAlias, _ as sanitizeToolCallIdsForCloudCodeAssist, a as resolveMirroredTranscriptText, b as initializeGlobalHookRunner, c as runSerializedBySession, d as openRawToolResultStash, et as resolveMainSessionKey, f as repairToolUseResultPairing, g as canonicalToolCallIdBase, h as stripToolResultDetails, i as appendAssistantMessageToSessionTranscript, j as eventOrder, l as drainPendingPrimaryWrites, m as sanitizeToolUseResultPairing, n as parseSessionThreadInfo, p as sanitizeToolCallInputs, q as parseInlineDirectives$1, r as resolveAndPersistSessionFile, s as openDbSessionManager, t as extractDeliveryInfo, u as guardSessionManager, v as getGlobalHookRunner, w as promptBuildResultToContribution, y as getGlobalPluginRegistry, z as truncateToolResultToChars } from "./sessions-
|
|
51
|
-
import { a as resolveSessionResetType, i as resolveSessionResetPolicy, o as resolveThreadFlag, r as resolveChannelResetConfig, t as evaluateSessionFreshness } from "./reset-
|
|
50
|
+
import { $ as resolveExplicitAgentSessionKey, A as DB_SESSION_HYDRATION_LIMIT, B as CHARS_PER_TOKEN_ESTIMATE$2, C as hasHookForPlugin, D as resolveProviderPromptCacheKey, E as buildPluginTurnIdentity, F as sessionLikelyHasOversizedToolResults, G as getToolResultText$1, H as createMessageCharEstimateCache, I as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, K as isToolResultMessage, L as TOOL_RESULT_TEXT_WEIGHT, M as pickLeaf, N as capToolResultContent, O as resolveProviderRuntimeIdentity, P as HARD_MAX_TOOL_RESULT_CHARS, Q as resolveAgentMainSessionKey, R as truncateTextHeadTail, T as buildPluginRuntimeIdentity, U as estimateContextChars$1, V as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, W as estimateMessageCharsCached, X as resolveSessionKey, Z as canonicalizeMainSessionAlias, _ as sanitizeToolCallIdsForCloudCodeAssist, a as resolveMirroredTranscriptText, b as initializeGlobalHookRunner, c as runSerializedBySession, d as openRawToolResultStash, et as resolveMainSessionKey, f as repairToolUseResultPairing, g as canonicalToolCallIdBase, h as stripToolResultDetails, i as appendAssistantMessageToSessionTranscript, j as eventOrder, l as drainPendingPrimaryWrites, m as sanitizeToolUseResultPairing, n as parseSessionThreadInfo, p as sanitizeToolCallInputs, q as parseInlineDirectives$1, r as resolveAndPersistSessionFile, s as openDbSessionManager, t as extractDeliveryInfo, u as guardSessionManager, v as getGlobalHookRunner, w as promptBuildResultToContribution, y as getGlobalPluginRegistry, z as truncateToolResultToChars } from "./sessions-CbISkp7n.js";
|
|
51
|
+
import { a as resolveSessionResetType, i as resolveSessionResetPolicy, o as resolveThreadFlag, r as resolveChannelResetConfig, t as evaluateSessionFreshness } from "./reset-D-mCgUpD.js";
|
|
52
52
|
import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-D6nhygeZ.js";
|
|
53
|
-
import { g as normalizeHttpWebhookUrl, p as inferLegacyName } from "./jobs-
|
|
53
|
+
import { g as normalizeHttpWebhookUrl, p as inferLegacyName } from "./jobs-BXFDvC34.js";
|
|
54
54
|
import { i as normalizeInputProvenance, r as hasInterSessionUserProvenance } from "./input-provenance-CFnw8yhY.js";
|
|
55
55
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-B3T8sCtD.js";
|
|
56
56
|
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-C8O_Wyg8.js";
|
|
57
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
58
|
-
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
59
|
-
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-
|
|
60
|
-
import { E as resetCommandPollCount, T as recordCommandPoll, _ as logToolExecutionStarted, c as logMessageQueued, f as logRunCompleted, g as logToolExecutionCompleted, h as logToolExecutionBlocked, m as logSessionStateChange, p as logRunStarted, s as logMessageProcessed, u as logModelCallError, v as recordSystemPromptHashComparison, w as boundDiagnosticContent, y as refreshRunProgress } from "./diagnostic-
|
|
57
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-CeZ9Uz8z.js";
|
|
58
|
+
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-BLTw7hkA.js";
|
|
59
|
+
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-Ckdjpoqb.js";
|
|
60
|
+
import { E as resetCommandPollCount, T as recordCommandPoll, _ as logToolExecutionStarted, c as logMessageQueued, f as logRunCompleted, g as logToolExecutionCompleted, h as logToolExecutionBlocked, m as logSessionStateChange, p as logRunStarted, s as logMessageProcessed, u as logModelCallError, v as recordSystemPromptHashComparison, w as boundDiagnosticContent, y as refreshRunProgress } from "./diagnostic-DJz53yyc.js";
|
|
61
61
|
import { d as redactChannelCorrelation, o as getDiagnosticSessionState } from "./diagnostic-session-state-DtZQSPqI.js";
|
|
62
|
-
import { c as getCommandLaneSnapshots, f as isQueuedCommandCancellation, i as clearCommandLane, l as getQueueSize, o as enqueueCommandInLane, t as CommandLaneAbortedError } from "./command-queue-
|
|
63
|
-
import { i as buildModelAliasLines, n as resolveModel } from "./model-
|
|
64
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
65
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
66
|
-
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-
|
|
67
|
-
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-
|
|
68
|
-
import { n as resolveLearningWorkspaceDir, t as resolveSessionConsumerAgentIds } from "./session-consumer-agents-
|
|
69
|
-
import { t as resolveLiveIdentityLinks } from "./identity-links-live-
|
|
70
|
-
import { a as linkIdentity, l as unknownIdentityError, s as normalizeIdentityLinkValue, t as IdentityLinkError } from "./identity-links-
|
|
71
|
-
import { Wn as SESSION_LABEL_MAX_LENGTH, n as gatewayErrorReason, or as issueDeviceBootstrapToken, t as GatewayClient } from "./client-
|
|
72
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
62
|
+
import { c as getCommandLaneSnapshots, f as isQueuedCommandCancellation, i as clearCommandLane, l as getQueueSize, o as enqueueCommandInLane, t as CommandLaneAbortedError } from "./command-queue-D8Y7Hgzy.js";
|
|
63
|
+
import { i as buildModelAliasLines, n as resolveModel } from "./model-DLnu2ZHK.js";
|
|
64
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Cv0FIBjp.js";
|
|
65
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-MT7bTyDD.js";
|
|
66
|
+
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-CvMIZ3Av.js";
|
|
67
|
+
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-18lfJBlE.js";
|
|
68
|
+
import { n as resolveLearningWorkspaceDir, t as resolveSessionConsumerAgentIds } from "./session-consumer-agents-BRMrM2o-.js";
|
|
69
|
+
import { t as resolveLiveIdentityLinks } from "./identity-links-live-Bi60qFYK.js";
|
|
70
|
+
import { a as linkIdentity, l as unknownIdentityError, s as normalizeIdentityLinkValue, t as IdentityLinkError } from "./identity-links-DP7R0NPE.js";
|
|
71
|
+
import { Wn as SESSION_LABEL_MAX_LENGTH, n as gatewayErrorReason, or as issueDeviceBootstrapToken, t as GatewayClient } from "./client-B3-vuVAE.js";
|
|
72
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-DShV9nqu.js";
|
|
73
73
|
import { t as extractTextFromChatContent } from "./chat-content-DC8ReKwD.js";
|
|
74
|
-
import { a as formatReasoningMessage, d as stripThinkingTagsFromText, f as stripReasoningTagsFromText, l as stripDowngradedToolCallText, n as extractAssistantThinking, o as inferToolMetaFromArgs, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-
|
|
75
|
-
import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-
|
|
76
|
-
import { A as coerceImageAssistantText, C as stripCarriedTranscriptFromBody, D as registerUnhandledRejectionHandler, M as decodeDataUrl, N as resolveProviderVisionModelFromConfig, a as resolveMediaAttachmentLocalRoots, c as minimaxUnderstandImage, d as resolveConcurrency, g as CLI_OUTPUT_MAX_BUFFER, h as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, j as coerceImageModelConfig, k as resolveAttachmentKind, l as applyTemplate, m as normalizeMediaUnderstandingChatType, n as buildProviderRegistry, o as runCapability, p as resolveTimeoutMs$1, r as createMediaAttachmentCache, t as runAudioTranscription, w as buildRandomTempFilePath } from "./audio-transcription-runner-
|
|
77
|
-
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit } from "./fetch
|
|
74
|
+
import { a as formatReasoningMessage, d as stripThinkingTagsFromText, f as stripReasoningTagsFromText, l as stripDowngradedToolCallText, n as extractAssistantThinking, o as inferToolMetaFromArgs, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-DC8eBUz9.js";
|
|
75
|
+
import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-DgVBn6pw.js";
|
|
76
|
+
import { A as coerceImageAssistantText, C as stripCarriedTranscriptFromBody, D as registerUnhandledRejectionHandler, M as decodeDataUrl, N as resolveProviderVisionModelFromConfig, a as resolveMediaAttachmentLocalRoots, c as minimaxUnderstandImage, d as resolveConcurrency, g as CLI_OUTPUT_MAX_BUFFER, h as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, j as coerceImageModelConfig, k as resolveAttachmentKind, l as applyTemplate, m as normalizeMediaUnderstandingChatType, n as buildProviderRegistry, o as runCapability, p as resolveTimeoutMs$1, r as createMediaAttachmentCache, t as runAudioTranscription, w as buildRandomTempFilePath } from "./audio-transcription-runner-BCsXP8-1.js";
|
|
77
|
+
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit } from "./fetch-COhcdJbk.js";
|
|
78
78
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-HcJru1Yp.js";
|
|
79
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
79
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-ChaY1JfD.js";
|
|
80
80
|
import { t as USER_CLIENT_BOOTSTRAP_PROFILE } from "./user-client-bootstrap-profile-BvP3LYya.js";
|
|
81
81
|
import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-CRaaWHld.js";
|
|
82
82
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-C8ISjiS4.js";
|
|
83
|
-
import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-
|
|
84
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
85
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-
|
|
86
|
-
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-
|
|
87
|
-
import { a as listChatCommands, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as isCommandEnabled, l as normalizeCommandBody, m as shouldHandleTextCommands, o as listChatCommandsForConfig, p as serializeCommandArgs, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-
|
|
88
|
-
import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-
|
|
83
|
+
import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-CWJj0yTC.js";
|
|
84
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CIDos_m6.js";
|
|
85
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-G6mp02Um.js";
|
|
86
|
+
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-CVdmhZKr.js";
|
|
87
|
+
import { a as listChatCommands, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as isCommandEnabled, l as normalizeCommandBody, m as shouldHandleTextCommands, o as listChatCommandsForConfig, p as serializeCommandArgs, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-B4aR17xV.js";
|
|
88
|
+
import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-CxBc2Jon.js";
|
|
89
89
|
import { t as withTimeout$5 } from "./with-timeout-Cr_em4EE.js";
|
|
90
|
-
import { _ as AcpRuntimeError, c as validateRuntimeCwdInput, d as validateRuntimePermissionProfileInput, f as isSessionIdentityPending, g as ACP_TURN_INTERRUPTED_MESSAGE, h as requireAcpRuntimeBackend, i as resolveSessionStorePathForAcp, l as validateRuntimeModeInput, m as getAcpRuntimeBackend, o as parseRuntimeTimeoutSecondsInput, p as resolveSessionIdentityFromMeta, r as readAcpSessionEntry, s as validateRuntimeConfigOptionInput, t as getAcpSessionManager, u as validateRuntimeModelInput, v as toAcpRuntimeError } from "./manager-
|
|
91
|
-
import { b as resolveLeastPrivilegeOperatorScopesForMethod, i as callGatewayLeastPrivilege, n as callGateway, s as randomIdempotencyKey, t as buildGatewayConnectionDetails } from "./call-
|
|
92
|
-
import { C as endModelCall, D as onAgentEvent, O as registerAgentRunContext, S as createInlineCodeState, T as emitAgentEvent, _ as handleMessageEnd, b as emitEmbeddedAgentEvent, g as waitForEmbeddedPiRunEnd, h as setActiveEmbeddedRun, i as endInFlightEmbeddedAttempt, n as beginInFlightEmbeddedAttempt, p as queueEmbeddedPiMessage, r as clearActiveEmbeddedRun, s as isEmbeddedPiRunActive, t as abortEmbeddedPiRun, u as isEmbeddedPiRunStreaming, v as handleMessageStart, w as clearAgentRunContext, x as buildCodeSpanIndex, y as handleMessageUpdate } from "./runs-
|
|
93
|
-
import { a as toInternalMessageReceivedContext, c as toPluginMessageReceivedEvent, d as resolveOutboundSessionId, i as toInternalMessagePreprocessedContext, l as fireAndForgetHook, n as createMessageSentEmitter, o as toInternalMessageTranscribedContext, r as deriveInboundMessageHookContext, s as toPluginMessageContext, t as applyMessageSendingHook, u as buildOutboundSessionContext } from "./outbound-message-hooks-
|
|
94
|
-
import { _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as throwIfAborted, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, l as loadChannelOutboundAdapter, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as stampReplyActivity, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-
|
|
90
|
+
import { _ as AcpRuntimeError, c as validateRuntimeCwdInput, d as validateRuntimePermissionProfileInput, f as isSessionIdentityPending, g as ACP_TURN_INTERRUPTED_MESSAGE, h as requireAcpRuntimeBackend, i as resolveSessionStorePathForAcp, l as validateRuntimeModeInput, m as getAcpRuntimeBackend, o as parseRuntimeTimeoutSecondsInput, p as resolveSessionIdentityFromMeta, r as readAcpSessionEntry, s as validateRuntimeConfigOptionInput, t as getAcpSessionManager, u as validateRuntimeModelInput, v as toAcpRuntimeError } from "./manager-kfVhbDC5.js";
|
|
91
|
+
import { b as resolveLeastPrivilegeOperatorScopesForMethod, i as callGatewayLeastPrivilege, n as callGateway, s as randomIdempotencyKey, t as buildGatewayConnectionDetails } from "./call-DiXPYDxn.js";
|
|
92
|
+
import { C as endModelCall, D as onAgentEvent, O as registerAgentRunContext, S as createInlineCodeState, T as emitAgentEvent, _ as handleMessageEnd, b as emitEmbeddedAgentEvent, g as waitForEmbeddedPiRunEnd, h as setActiveEmbeddedRun, i as endInFlightEmbeddedAttempt, n as beginInFlightEmbeddedAttempt, p as queueEmbeddedPiMessage, r as clearActiveEmbeddedRun, s as isEmbeddedPiRunActive, t as abortEmbeddedPiRun, u as isEmbeddedPiRunStreaming, v as handleMessageStart, w as clearAgentRunContext, x as buildCodeSpanIndex, y as handleMessageUpdate } from "./runs-C1AHoTDq.js";
|
|
93
|
+
import { a as toInternalMessageReceivedContext, c as toPluginMessageReceivedEvent, d as resolveOutboundSessionId, i as toInternalMessagePreprocessedContext, l as fireAndForgetHook, n as createMessageSentEmitter, o as toInternalMessageTranscribedContext, r as deriveInboundMessageHookContext, s as toPluginMessageContext, t as applyMessageSendingHook, u as buildOutboundSessionContext } from "./outbound-message-hooks-D7aalpVP.js";
|
|
94
|
+
import { _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as throwIfAborted, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, l as loadChannelOutboundAdapter, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as stampReplyActivity, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-vnUlcBpf.js";
|
|
95
95
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-Bb6ywExV.js";
|
|
96
|
-
import { C as computeBackoff, E as transcriptEntriesToMessages, S as resolveContextTokensForModel, T as readFullTranscriptEntriesFromBackend, _ as countToolResults, b as stripMessageIdHints, f as capArrayByJsonBytes, g as jsonUtf8Bytes, o as loadCombinedSessionStoreForGateway, s as loadSessionEntry, v as extractToolCallNames, w as sleepWithAbort, x as lookupContextTokens, y as stripEnvelope } from "./session-utils-
|
|
96
|
+
import { C as computeBackoff, E as transcriptEntriesToMessages, S as resolveContextTokensForModel, T as readFullTranscriptEntriesFromBackend, _ as countToolResults, b as stripMessageIdHints, f as capArrayByJsonBytes, g as jsonUtf8Bytes, o as loadCombinedSessionStoreForGateway, s as loadSessionEntry, v as extractToolCallNames, w as sleepWithAbort, x as lookupContextTokens, y as stripEnvelope } from "./session-utils-Qu1Mxoz3.js";
|
|
97
97
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-DrSJthuO.js";
|
|
98
|
-
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-
|
|
99
|
-
import { a as maxAsk, d as requiresExecApproval, f as resolveExecApprovals, n as addAllowlistEntry, p as resolveExecApprovalsFromFile, s as minSecurity, u as recordAllowlistUse } from "./exec-approvals-
|
|
100
|
-
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-
|
|
101
|
-
import { a as detectRuntimeShell, c as sanitizeBinaryOutput, o as getShellConfig, s as killProcessTree, t as getProcessSupervisor } from "./supervisor-
|
|
98
|
+
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-BIeHwICv.js";
|
|
99
|
+
import { a as maxAsk, d as requiresExecApproval, f as resolveExecApprovals, n as addAllowlistEntry, p as resolveExecApprovalsFromFile, s as minSecurity, u as recordAllowlistUse } from "./exec-approvals-iao6P-Sv.js";
|
|
100
|
+
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-4mQTqYUN.js";
|
|
101
|
+
import { a as detectRuntimeShell, c as sanitizeBinaryOutput, o as getShellConfig, s as killProcessTree, t as getProcessSupervisor } from "./supervisor-SBLvQOVa.js";
|
|
102
102
|
import { t as killProcessTree$1 } from "./kill-tree-BleBZVN1.js";
|
|
103
|
-
import { n as formatExecCommand } from "./system-run-command-
|
|
103
|
+
import { n as formatExecCommand } from "./system-run-command-D5kMl0NY.js";
|
|
104
104
|
import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-Cp2220Vx.js";
|
|
105
105
|
import { i as formatDurationSeconds, t as formatDurationCompact$1 } from "./format-duration-DeLiQNNv.js";
|
|
106
|
-
import { b as ensureSkillsWatcher, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, x as getSkillsSnapshotVersion } from "./skill-commands-
|
|
107
|
-
import { t as redactConfigObject } from "./redact-snapshot-
|
|
108
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
106
|
+
import { b as ensureSkillsWatcher, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, x as getSkillsSnapshotVersion } from "./skill-commands-ByQ7_wSo.js";
|
|
107
|
+
import { t as redactConfigObject } from "./redact-snapshot-CIe93cqM.js";
|
|
108
|
+
import { t as convertMarkdownTables } from "./tables-CfbMQJYc.js";
|
|
109
109
|
import { p as resolveGatewaySystemdServiceName, u as resolveGatewayLaunchAgentLabel } from "./constants-0vZLJnYn.js";
|
|
110
110
|
import { n as stripLeadingInboundMetadata, t as stripInboundMetadata } from "./strip-inbound-meta-DiC5t8zU.js";
|
|
111
|
-
import { a as resolvePinnedMainDmOwnerFromAllowlist, c as mergeDmAllowFromSources, d as filterToolsByPolicy, f as isToolAllowedByPolicies, h as resolveSubagentToolPolicy, i as resolveDmGroupAccessWithLists, l as resolveCommandAuthorizedFromAuthorizers, m as resolveGroupToolPolicy, n as readStoreAllowFromForDmPolicy, o as firstDefined$1, p as resolveEffectiveToolPolicy, s as isSenderIdAllowed, t as DM_GROUP_ACCESS_REASON, u as resolveControlCommandGate } from "./dm-policy-shared-
|
|
112
|
-
import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-
|
|
113
|
-
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-
|
|
114
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
115
|
-
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-
|
|
116
|
-
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-
|
|
117
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
111
|
+
import { a as resolvePinnedMainDmOwnerFromAllowlist, c as mergeDmAllowFromSources, d as filterToolsByPolicy, f as isToolAllowedByPolicies, h as resolveSubagentToolPolicy, i as resolveDmGroupAccessWithLists, l as resolveCommandAuthorizedFromAuthorizers, m as resolveGroupToolPolicy, n as readStoreAllowFromForDmPolicy, o as firstDefined$1, p as resolveEffectiveToolPolicy, s as isSenderIdAllowed, t as DM_GROUP_ACCESS_REASON, u as resolveControlCommandGate } from "./dm-policy-shared-B2rRMZjX.js";
|
|
112
|
+
import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-CF6_EhVh.js";
|
|
113
|
+
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-CggPBiFX.js";
|
|
114
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-Clq5aaN8.js";
|
|
115
|
+
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-DUG-oCDA.js";
|
|
116
|
+
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-BrIw5gc4.js";
|
|
117
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-yDs92eUQ.js";
|
|
118
118
|
import { t as parseTimeoutMs } from "./parse-timeout-C5BXA4OT.js";
|
|
119
|
-
import { t as recordInboundSessionMetaSafe } from "./session-meta-
|
|
119
|
+
import { t as recordInboundSessionMetaSafe } from "./session-meta-B_9mMU72.js";
|
|
120
120
|
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-CTQpOYZ9.js";
|
|
121
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$2, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
122
|
-
import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-
|
|
123
|
-
import { r as detectBinary } from "./onboard-helpers-
|
|
124
|
-
import { t as resolvePairingIdLabel } from "./pairing-labels-
|
|
125
|
-
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-
|
|
126
|
-
import { r as resolveMemorySearchConfig } from "./manager-
|
|
121
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$2, t as createSlackReplyDeliveryPlan } from "./replies-CrZI5K0e.js";
|
|
122
|
+
import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-DfQv7jnw.js";
|
|
123
|
+
import { r as detectBinary } from "./onboard-helpers-CyIeOf0n.js";
|
|
124
|
+
import { t as resolvePairingIdLabel } from "./pairing-labels-BgUdVYgJ.js";
|
|
125
|
+
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-CTBlq72D.js";
|
|
126
|
+
import { r as resolveMemorySearchConfig } from "./manager-NberoPlo.js";
|
|
127
127
|
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-Ck-sJu-P.js";
|
|
128
|
-
import { r as isPipelineHeartbeatInFlight } from "./heartbeat-tick-
|
|
128
|
+
import { r as isPipelineHeartbeatInFlight } from "./heartbeat-tick-DsC4du2J.js";
|
|
129
129
|
import { createRequire } from "node:module";
|
|
130
130
|
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
131
131
|
import { fileURLToPath } from "node:url";
|
|
@@ -133,7 +133,7 @@ import os, { homedir } from "node:os";
|
|
|
133
133
|
import path, { basename } from "node:path";
|
|
134
134
|
import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
135
135
|
import JSON5 from "json5";
|
|
136
|
-
import
|
|
136
|
+
import fsPromises from "node:fs/promises";
|
|
137
137
|
import { inspect } from "node:util";
|
|
138
138
|
import crypto$1, { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
139
139
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1184,7 +1184,7 @@ function resolveWorkspaceLane(params) {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
async function pathExists(targetPath) {
|
|
1186
1186
|
try {
|
|
1187
|
-
await
|
|
1187
|
+
await fsPromises.access(targetPath);
|
|
1188
1188
|
return true;
|
|
1189
1189
|
} catch {
|
|
1190
1190
|
return false;
|
|
@@ -1192,7 +1192,7 @@ async function pathExists(targetPath) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
async function getExistingPathState(targetPath) {
|
|
1194
1194
|
try {
|
|
1195
|
-
const stats = await
|
|
1195
|
+
const stats = await fsPromises.lstat(targetPath);
|
|
1196
1196
|
if (stats.isSymbolicLink()) return "other";
|
|
1197
1197
|
return stats.isDirectory() ? "directory" : "other";
|
|
1198
1198
|
} catch {
|
|
@@ -1201,7 +1201,7 @@ async function getExistingPathState(targetPath) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
async function pathLexicallyExists(targetPath) {
|
|
1203
1203
|
try {
|
|
1204
|
-
await
|
|
1204
|
+
await fsPromises.lstat(targetPath);
|
|
1205
1205
|
return true;
|
|
1206
1206
|
} catch {
|
|
1207
1207
|
return false;
|
|
@@ -1268,7 +1268,7 @@ async function resolveWorkspaceLaneForTurn(params) {
|
|
|
1268
1268
|
const config = resolveWorkspaceLaneConfig(params.cfg, resolution.agentId);
|
|
1269
1269
|
if ((config?.create ?? "on-first-message") !== "on-first-message") return resolution;
|
|
1270
1270
|
const existed = pathState === "directory";
|
|
1271
|
-
if (!existed) await
|
|
1271
|
+
if (!existed) await fsPromises.mkdir(resolution.effectiveWorkspaceDir, { recursive: true });
|
|
1272
1272
|
for (const file of config?.copiedOnCreate ?? DEFAULT_COPIED_ON_CREATE_FILES) {
|
|
1273
1273
|
const decision = await copyIfMissing({
|
|
1274
1274
|
sourceRoot: resolution.personaWorkspaceDir,
|
|
@@ -6081,7 +6081,7 @@ async function imageResult(params) {
|
|
|
6081
6081
|
}, params.label, params.imageSanitization);
|
|
6082
6082
|
}
|
|
6083
6083
|
async function imageResultFromFile(params) {
|
|
6084
|
-
const buf = await
|
|
6084
|
+
const buf = await fsPromises.readFile(params.path);
|
|
6085
6085
|
const mimeType = await detectMime({ buffer: buf.slice(0, 256) }) ?? "image/png";
|
|
6086
6086
|
return await imageResult({
|
|
6087
6087
|
label: params.label,
|
|
@@ -7093,7 +7093,7 @@ async function routeReply(params) {
|
|
|
7093
7093
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
7094
7094
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
7095
7095
|
try {
|
|
7096
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7096
|
+
const { deliverOutboundPayloads } = await import("./deliver-vnUlcBpf.js").then((n) => n.n);
|
|
7097
7097
|
const outboundSession = buildOutboundSessionContext({
|
|
7098
7098
|
cfg,
|
|
7099
7099
|
agentId: resolvedAgentId,
|
|
@@ -11958,7 +11958,7 @@ async function sendTranscriptEcho(params) {
|
|
|
11958
11958
|
}
|
|
11959
11959
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
11960
11960
|
try {
|
|
11961
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
11961
|
+
const { deliverOutboundPayloads } = await import("./deliver-vnUlcBpf.js").then((n) => n.n);
|
|
11962
11962
|
await deliverOutboundPayloads({
|
|
11963
11963
|
cfg,
|
|
11964
11964
|
channel: normalizedChannel,
|
|
@@ -15882,7 +15882,7 @@ async function resolveSandboxWorkdir(params) {
|
|
|
15882
15882
|
cwd: process.cwd(),
|
|
15883
15883
|
root: params.sandbox.workspaceDir
|
|
15884
15884
|
});
|
|
15885
|
-
if (!(await
|
|
15885
|
+
if (!(await fsPromises.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
|
|
15886
15886
|
const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
|
|
15887
15887
|
const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
|
|
15888
15888
|
return {
|
|
@@ -17132,13 +17132,13 @@ async function validateScriptFileForShellBleed(params) {
|
|
|
17132
17132
|
cwd: params.workdir,
|
|
17133
17133
|
root: params.workdir
|
|
17134
17134
|
});
|
|
17135
|
-
stat = await
|
|
17135
|
+
stat = await fsPromises.stat(absPath);
|
|
17136
17136
|
} catch {
|
|
17137
17137
|
return;
|
|
17138
17138
|
}
|
|
17139
17139
|
if (!stat.isFile()) return;
|
|
17140
17140
|
if (stat.size > 512 * 1024) return;
|
|
17141
|
-
const content = await
|
|
17141
|
+
const content = await fsPromises.readFile(absPath, "utf-8");
|
|
17142
17142
|
const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
|
|
17143
17143
|
if (first) {
|
|
17144
17144
|
const idx = first.index;
|
|
@@ -28116,7 +28116,7 @@ async function createModelSelectionState(params) {
|
|
|
28116
28116
|
}
|
|
28117
28117
|
}
|
|
28118
28118
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
28119
|
-
const { ensureAuthProfileStore } = await import("./plugins-
|
|
28119
|
+
const { ensureAuthProfileStore } = await import("./plugins-s69ApVox.js").then((n) => n.Zi);
|
|
28120
28120
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
28121
28121
|
const providerKey = normalizeProviderId$1(provider);
|
|
28122
28122
|
if (!profile || normalizeProviderId$1(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -31648,7 +31648,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
31648
31648
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
|
|
31649
31649
|
throw new Error("jsonlPath outside allowed roots");
|
|
31650
31650
|
}
|
|
31651
|
-
const canonical = await
|
|
31651
|
+
const canonical = await fsPromises.realpath(resolved).catch(() => resolved);
|
|
31652
31652
|
if (!isInboundPathAllowed({
|
|
31653
31653
|
filePath: canonical,
|
|
31654
31654
|
roots
|
|
@@ -31656,7 +31656,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
31656
31656
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
|
|
31657
31657
|
throw new Error("jsonlPath outside allowed roots");
|
|
31658
31658
|
}
|
|
31659
|
-
return await
|
|
31659
|
+
return await fsPromises.readFile(canonical, "utf8");
|
|
31660
31660
|
}
|
|
31661
31661
|
const CanvasToolSchema = Type.Object({
|
|
31662
31662
|
action: stringEnum(CANVAS_ACTIONS),
|
|
@@ -32507,27 +32507,27 @@ function resolveRestartSentinelPath(env = process.env) {
|
|
|
32507
32507
|
}
|
|
32508
32508
|
async function writeRestartSentinel(payload, env = process.env) {
|
|
32509
32509
|
const filePath = resolveRestartSentinelPath(env);
|
|
32510
|
-
await
|
|
32510
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
32511
32511
|
const data = {
|
|
32512
32512
|
version: 1,
|
|
32513
32513
|
payload
|
|
32514
32514
|
};
|
|
32515
|
-
await
|
|
32515
|
+
await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
|
|
32516
32516
|
return filePath;
|
|
32517
32517
|
}
|
|
32518
32518
|
async function readRestartSentinel(env = process.env) {
|
|
32519
32519
|
const filePath = resolveRestartSentinelPath(env);
|
|
32520
32520
|
try {
|
|
32521
|
-
const raw = await
|
|
32521
|
+
const raw = await fsPromises.readFile(filePath, "utf-8");
|
|
32522
32522
|
let parsed;
|
|
32523
32523
|
try {
|
|
32524
32524
|
parsed = JSON.parse(raw);
|
|
32525
32525
|
} catch {
|
|
32526
|
-
await
|
|
32526
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
32527
32527
|
return null;
|
|
32528
32528
|
}
|
|
32529
32529
|
if (!parsed || parsed.version !== 1 || !parsed.payload) {
|
|
32530
|
-
await
|
|
32530
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
32531
32531
|
return null;
|
|
32532
32532
|
}
|
|
32533
32533
|
return parsed;
|
|
@@ -32539,7 +32539,7 @@ async function consumeRestartSentinel(env = process.env) {
|
|
|
32539
32539
|
const filePath = resolveRestartSentinelPath(env);
|
|
32540
32540
|
const parsed = await readRestartSentinel(env);
|
|
32541
32541
|
if (!parsed) return null;
|
|
32542
|
-
await
|
|
32542
|
+
await fsPromises.unlink(filePath).catch(() => {});
|
|
32543
32543
|
return parsed;
|
|
32544
32544
|
}
|
|
32545
32545
|
function formatRestartSentinelMessage(payload) {
|
|
@@ -43113,18 +43113,18 @@ function appendImagePathsToPrompt(prompt, paths) {
|
|
|
43113
43113
|
return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
|
|
43114
43114
|
}
|
|
43115
43115
|
async function writeCliImages(images) {
|
|
43116
|
-
const tempDir = await
|
|
43116
|
+
const tempDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-images-"));
|
|
43117
43117
|
const paths = [];
|
|
43118
43118
|
for (let i = 0; i < images.length; i += 1) {
|
|
43119
43119
|
const image = images[i];
|
|
43120
43120
|
const ext = resolveImageExtension(image.mimeType);
|
|
43121
43121
|
const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
|
|
43122
43122
|
const buffer = Buffer.from(image.data, "base64");
|
|
43123
|
-
await
|
|
43123
|
+
await fsPromises.writeFile(filePath, buffer, { mode: 384 });
|
|
43124
43124
|
paths.push(filePath);
|
|
43125
43125
|
}
|
|
43126
43126
|
const cleanup = async () => {
|
|
43127
|
-
await
|
|
43127
|
+
await fsPromises.rm(tempDir, {
|
|
43128
43128
|
recursive: true,
|
|
43129
43129
|
force: true
|
|
43130
43130
|
});
|
|
@@ -46684,7 +46684,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
46684
46684
|
return;
|
|
46685
46685
|
}
|
|
46686
46686
|
try {
|
|
46687
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
46687
|
+
const { deliverOutboundPayloads } = await import("./deliver-vnUlcBpf.js").then((n) => n.n);
|
|
46688
46688
|
const outboundSession = buildOutboundSessionContext({
|
|
46689
46689
|
cfg: params.cfg,
|
|
46690
46690
|
sessionKey: params.sessionKey
|
|
@@ -47633,7 +47633,7 @@ async function stageSandboxMedia(params) {
|
|
|
47633
47633
|
const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(workspaceDir, ".openclaw", "media", "remote-cache", sessionKey) : null;
|
|
47634
47634
|
const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
|
|
47635
47635
|
if (!effectiveWorkspaceDir) return;
|
|
47636
|
-
await
|
|
47636
|
+
await fsPromises.mkdir(effectiveWorkspaceDir, { recursive: true });
|
|
47637
47637
|
const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
|
|
47638
47638
|
cfg,
|
|
47639
47639
|
accountId: ctx.AccountId
|
|
@@ -47692,8 +47692,8 @@ async function stageLocalFileIntoRoot(params) {
|
|
|
47692
47692
|
}
|
|
47693
47693
|
async function stageRemoteFileIntoRoot(params) {
|
|
47694
47694
|
const tmpRoot = resolvePreferredOpenClawTmpDir();
|
|
47695
|
-
await
|
|
47696
|
-
const tmpDir = await
|
|
47695
|
+
await fsPromises.mkdir(tmpRoot, { recursive: true });
|
|
47696
|
+
const tmpDir = await fsPromises.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
|
|
47697
47697
|
const tmpPath = path.join(tmpDir, "download");
|
|
47698
47698
|
try {
|
|
47699
47699
|
await scpFile(params.remoteHost, params.remotePath, tmpPath);
|
|
@@ -47704,7 +47704,7 @@ async function stageRemoteFileIntoRoot(params) {
|
|
|
47704
47704
|
maxBytes: params.maxBytes
|
|
47705
47705
|
});
|
|
47706
47706
|
} finally {
|
|
47707
|
-
await
|
|
47707
|
+
await fsPromises.rm(tmpDir, {
|
|
47708
47708
|
recursive: true,
|
|
47709
47709
|
force: true
|
|
47710
47710
|
}).catch(() => {});
|
|
@@ -53538,7 +53538,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
53538
53538
|
let transcript;
|
|
53539
53539
|
let carry;
|
|
53540
53540
|
if (needsPreflightTranscription) try {
|
|
53541
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
53541
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-C3hxTGYi.js");
|
|
53542
53542
|
const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
|
|
53543
53543
|
if (uploadable.length > 0) {
|
|
53544
53544
|
const preflight = await transcribeFirstAudio({
|
|
@@ -58260,19 +58260,19 @@ function createDefaultDeps() {
|
|
|
58260
58260
|
};
|
|
58261
58261
|
}),
|
|
58262
58262
|
sendMessageDiscord: async (...args) => {
|
|
58263
|
-
const { sendMessageDiscord } = await import("./send-
|
|
58263
|
+
const { sendMessageDiscord } = await import("./send-DDirI-zY.js").then((n) => n.t);
|
|
58264
58264
|
return await sendMessageDiscord(...args);
|
|
58265
58265
|
},
|
|
58266
58266
|
sendMessageSlack: async (...args) => {
|
|
58267
|
-
const { sendMessageSlack } = await import("./send-
|
|
58267
|
+
const { sendMessageSlack } = await import("./send-B2OFN92Q.js").then((n) => n.n);
|
|
58268
58268
|
return await sendMessageSlack(...args);
|
|
58269
58269
|
},
|
|
58270
58270
|
sendMessageSignal: async (...args) => {
|
|
58271
|
-
const { sendMessageSignal } = await import("./send-
|
|
58271
|
+
const { sendMessageSignal } = await import("./send-DUG-oCDA.js").then((n) => n.i);
|
|
58272
58272
|
return await sendMessageSignal(...args);
|
|
58273
58273
|
},
|
|
58274
58274
|
sendMessageIMessage: async (...args) => {
|
|
58275
|
-
const { sendMessageIMessage } = await import("./send-
|
|
58275
|
+
const { sendMessageIMessage } = await import("./send-BrIw5gc4.js").then((n) => n.n);
|
|
58276
58276
|
return await sendMessageIMessage(...args);
|
|
58277
58277
|
}
|
|
58278
58278
|
};
|
|
@@ -59527,10 +59527,10 @@ function estimateDurationSeconds(pcm) {
|
|
|
59527
59527
|
return pcm.length / (bytesPerSample * SAMPLE_RATE);
|
|
59528
59528
|
}
|
|
59529
59529
|
async function writeWavFile(pcm) {
|
|
59530
|
-
const tempDir = await
|
|
59530
|
+
const tempDir = await fsPromises.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "discord-voice-"));
|
|
59531
59531
|
const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
|
|
59532
59532
|
const wav = buildWavBuffer(pcm);
|
|
59533
|
-
await
|
|
59533
|
+
await fsPromises.writeFile(filePath, wav);
|
|
59534
59534
|
scheduleTempCleanup(tempDir);
|
|
59535
59535
|
return {
|
|
59536
59536
|
path: filePath,
|
|
@@ -59539,7 +59539,7 @@ async function writeWavFile(pcm) {
|
|
|
59539
59539
|
}
|
|
59540
59540
|
function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
|
|
59541
59541
|
setTimeout(() => {
|
|
59542
|
-
|
|
59542
|
+
fsPromises.rm(tempDir, {
|
|
59543
59543
|
recursive: true,
|
|
59544
59544
|
force: true
|
|
59545
59545
|
}).catch((err) => {
|
|
@@ -63959,7 +63959,7 @@ function normalizeAllowList$1(list) {
|
|
|
63959
63959
|
async function detectRemoteHostFromCliPath(cliPath) {
|
|
63960
63960
|
try {
|
|
63961
63961
|
const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
|
|
63962
|
-
const content = await
|
|
63962
|
+
const content = await fsPromises.readFile(expanded, "utf8");
|
|
63963
63963
|
const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
|
|
63964
63964
|
if (userHostMatch) return userHostMatch[1];
|
|
63965
63965
|
return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
|
|
@@ -70771,7 +70771,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
70771
70771
|
}
|
|
70772
70772
|
let commandsRegistry;
|
|
70773
70773
|
async function getCommandsRegistry() {
|
|
70774
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
70774
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-B4aR17xV.js").then((n) => n.n);
|
|
70775
70775
|
return commandsRegistry;
|
|
70776
70776
|
}
|
|
70777
70777
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -71101,14 +71101,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71101
71101
|
const channelName = channelInfo?.name;
|
|
71102
71102
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
71103
71103
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
71104
|
-
import("./resolve-route-
|
|
71104
|
+
import("./resolve-route-yDs92eUQ.js").then((n) => n.r),
|
|
71105
71105
|
import("./inbound-context-Bb6ywExV.js").then((n) => n.n),
|
|
71106
71106
|
Promise.resolve().then(() => provider_dispatcher_exports)
|
|
71107
71107
|
]);
|
|
71108
71108
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
|
|
71109
71109
|
import("./conversation-label-BO6vpkmD.js").then((n) => n.t),
|
|
71110
|
-
import("./reply-prefix-
|
|
71111
|
-
import("./session-meta-
|
|
71110
|
+
import("./reply-prefix-CeZ9Uz8z.js").then((n) => n.n),
|
|
71111
|
+
import("./session-meta-B_9mMU72.js").then((n) => n.n)
|
|
71112
71112
|
]);
|
|
71113
71113
|
const route = resolveAgentRoute({
|
|
71114
71114
|
cfg,
|
|
@@ -71173,9 +71173,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71173
71173
|
});
|
|
71174
71174
|
const deliverSlashPayloads = async (replies) => {
|
|
71175
71175
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode, resolveChunkNewlinePacking }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
71176
|
-
import("./replies-
|
|
71177
|
-
import("./chunk-
|
|
71178
|
-
import("./markdown-tables-
|
|
71176
|
+
import("./replies-CrZI5K0e.js").then((n) => n.r),
|
|
71177
|
+
import("./chunk-CWJj0yTC.js").then((n) => n.s),
|
|
71178
|
+
import("./markdown-tables-CIDos_m6.js").then((n) => n.t)
|
|
71179
71179
|
]);
|
|
71180
71180
|
await deliverSlackSlashReplies({
|
|
71181
71181
|
replies,
|
|
@@ -71229,7 +71229,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71229
71229
|
let nativeCommands = [];
|
|
71230
71230
|
if (nativeEnabled) {
|
|
71231
71231
|
reg = await getCommandsRegistry();
|
|
71232
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
71232
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-ByQ7_wSo.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
71233
71233
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
71234
71234
|
skillCommands,
|
|
71235
71235
|
provider: "slack"
|
|
@@ -72242,7 +72242,7 @@ function createPluginRuntime(options = {}) {
|
|
|
72242
72242
|
workStates: readTaskWorkStates
|
|
72243
72243
|
},
|
|
72244
72244
|
resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
|
|
72245
|
-
sessions: { startUserRun: async (params) => (await import("./user-run-recording-
|
|
72245
|
+
sessions: { startUserRun: async (params) => (await import("./user-run-recording-CxBc2Jon.js").then((n) => n.n)).startUserSessionRun(params) }
|
|
72246
72246
|
};
|
|
72247
72247
|
Object.defineProperty(runtime, "analysis", {
|
|
72248
72248
|
enumerable: true,
|
|
@@ -73165,7 +73165,7 @@ function resolvePluginWebSearchProviders(params) {
|
|
|
73165
73165
|
//#endregion
|
|
73166
73166
|
//#region src/agents/apply-patch-update.ts
|
|
73167
73167
|
async function defaultReadFile(filePath) {
|
|
73168
|
-
return
|
|
73168
|
+
return fsPromises.readFile(filePath, "utf8");
|
|
73169
73169
|
}
|
|
73170
73170
|
async function applyUpdateHunk(filePath, chunks, options) {
|
|
73171
73171
|
const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
|
|
@@ -73486,7 +73486,7 @@ function resolvePatchFileOps(options) {
|
|
|
73486
73486
|
const workspaceOnly = options.workspaceOnly !== false;
|
|
73487
73487
|
return {
|
|
73488
73488
|
readFile: async (filePath) => {
|
|
73489
|
-
if (!workspaceOnly) return await
|
|
73489
|
+
if (!workspaceOnly) return await fsPromises.readFile(filePath, "utf8");
|
|
73490
73490
|
const opened = await openBoundaryFile({
|
|
73491
73491
|
absolutePath: filePath,
|
|
73492
73492
|
rootPath: options.cwd,
|
|
@@ -73501,7 +73501,7 @@ function resolvePatchFileOps(options) {
|
|
|
73501
73501
|
},
|
|
73502
73502
|
writeFile: async (filePath, content) => {
|
|
73503
73503
|
if (!workspaceOnly) {
|
|
73504
|
-
await
|
|
73504
|
+
await fsPromises.writeFile(filePath, content, "utf8");
|
|
73505
73505
|
return;
|
|
73506
73506
|
}
|
|
73507
73507
|
const relative = toRelativeSandboxPath(options.cwd, filePath);
|
|
@@ -73512,8 +73512,8 @@ function resolvePatchFileOps(options) {
|
|
|
73512
73512
|
encoding: "utf8"
|
|
73513
73513
|
});
|
|
73514
73514
|
},
|
|
73515
|
-
remove: (filePath) =>
|
|
73516
|
-
mkdirp: (dir) =>
|
|
73515
|
+
remove: (filePath) => fsPromises.rm(filePath),
|
|
73516
|
+
mkdirp: (dir) => fsPromises.mkdir(dir, { recursive: true }).then(() => {})
|
|
73517
73517
|
};
|
|
73518
73518
|
}
|
|
73519
73519
|
async function ensureDir(filePath, ops) {
|
|
@@ -73792,7 +73792,7 @@ async function recordLoopOutcome(args) {
|
|
|
73792
73792
|
if (!args.ctx?.sessionKey) return;
|
|
73793
73793
|
try {
|
|
73794
73794
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-DtZQSPqI.js").then((n) => n.n);
|
|
73795
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
73795
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-DWOtmjfd.js");
|
|
73796
73796
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
73797
73797
|
sessionKey: args.ctx.sessionKey,
|
|
73798
73798
|
sessionId: args.ctx?.agentId
|
|
@@ -73819,8 +73819,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
73819
73819
|
const params = args.params;
|
|
73820
73820
|
if (args.ctx?.sessionKey) {
|
|
73821
73821
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-DtZQSPqI.js").then((n) => n.n);
|
|
73822
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
73823
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
73822
|
+
const { logToolLoopAction } = await import("./diagnostic-DJz53yyc.js").then((n) => n.r);
|
|
73823
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-DWOtmjfd.js");
|
|
73824
73824
|
const sessionState = getDiagnosticSessionState({
|
|
73825
73825
|
sessionKey: args.ctx.sessionKey,
|
|
73826
73826
|
sessionId: args.ctx?.agentId
|
|
@@ -74038,7 +74038,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
|
|
|
74038
74038
|
if (!pathParam || !newText) throw err;
|
|
74039
74039
|
try {
|
|
74040
74040
|
const absolutePath = resolveHostEditPath(root, pathParam);
|
|
74041
|
-
const content = await
|
|
74041
|
+
const content = await fsPromises.readFile(absolutePath, "utf-8");
|
|
74042
74042
|
const hasNew = content.includes(newText);
|
|
74043
74043
|
const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
|
|
74044
74044
|
if (hasNew && !stillHasOld) return {
|
|
@@ -74509,14 +74509,14 @@ function createSandboxEditOperations(params) {
|
|
|
74509
74509
|
}
|
|
74510
74510
|
async function writeHostFile(absolutePath, content) {
|
|
74511
74511
|
const resolved = path.resolve(absolutePath);
|
|
74512
|
-
await
|
|
74513
|
-
await
|
|
74512
|
+
await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
74513
|
+
await fsPromises.writeFile(resolved, content, "utf-8");
|
|
74514
74514
|
}
|
|
74515
74515
|
function createHostWriteOperations(root, options) {
|
|
74516
74516
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
74517
74517
|
mkdir: async (dir) => {
|
|
74518
74518
|
const resolved = path.resolve(dir);
|
|
74519
|
-
await
|
|
74519
|
+
await fsPromises.mkdir(resolved, { recursive: true });
|
|
74520
74520
|
},
|
|
74521
74521
|
writeFile: writeHostFile
|
|
74522
74522
|
};
|
|
@@ -74529,7 +74529,7 @@ function createHostWriteOperations(root, options) {
|
|
|
74529
74529
|
cwd: root,
|
|
74530
74530
|
root
|
|
74531
74531
|
});
|
|
74532
|
-
await
|
|
74532
|
+
await fsPromises.mkdir(resolved, { recursive: true });
|
|
74533
74533
|
},
|
|
74534
74534
|
writeFile: async (absolutePath, content) => {
|
|
74535
74535
|
await writeFileWithinRoot({
|
|
@@ -74545,12 +74545,12 @@ function createHostEditOperations(root, options) {
|
|
|
74545
74545
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
74546
74546
|
readFile: async (absolutePath) => {
|
|
74547
74547
|
const resolved = path.resolve(absolutePath);
|
|
74548
|
-
return await
|
|
74548
|
+
return await fsPromises.readFile(resolved);
|
|
74549
74549
|
},
|
|
74550
74550
|
writeFile: writeHostFile,
|
|
74551
74551
|
access: async (absolutePath) => {
|
|
74552
74552
|
const resolved = path.resolve(absolutePath);
|
|
74553
|
-
await
|
|
74553
|
+
await fsPromises.access(resolved);
|
|
74554
74554
|
}
|
|
74555
74555
|
};
|
|
74556
74556
|
return {
|
|
@@ -77300,7 +77300,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
77300
77300
|
} catch (err) {
|
|
77301
77301
|
return fail(describeUnknownError(err));
|
|
77302
77302
|
}
|
|
77303
|
-
await
|
|
77303
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
77304
77304
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
77305
77305
|
const sandbox = await resolveSandboxContext({
|
|
77306
77306
|
config: params.config,
|
|
@@ -77309,7 +77309,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
77309
77309
|
workspaceLane: params.workspaceLane
|
|
77310
77310
|
});
|
|
77311
77311
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
77312
|
-
await
|
|
77312
|
+
await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
|
|
77313
77313
|
let restoreSkillEnv;
|
|
77314
77314
|
const releaseWorkspaceCwd = acquireWorkspaceCwd(effectiveWorkspace);
|
|
77315
77315
|
try {
|
|
@@ -83769,7 +83769,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
83769
83769
|
let embeddedAttemptBegun = false;
|
|
83770
83770
|
const runAbortController = new AbortController();
|
|
83771
83771
|
log$31.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"}`);
|
|
83772
|
-
await
|
|
83772
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
83773
83773
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
83774
83774
|
const toolSessionKey = params.toolSessionKey?.trim() || sandboxSessionKey;
|
|
83775
83775
|
const sandbox = params.skipSandbox ? null : await resolveSandboxContext({
|
|
@@ -83779,7 +83779,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
83779
83779
|
workspaceLane: params.workspaceLane
|
|
83780
83780
|
});
|
|
83781
83781
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
83782
|
-
await
|
|
83782
|
+
await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
|
|
83783
83783
|
let restoreSkillEnv;
|
|
83784
83784
|
const releaseWorkspaceCwd = params.skipCwdChange ? void 0 : acquireWorkspaceCwd(effectiveWorkspace);
|
|
83785
83785
|
const rawToolResultStash = openRawToolResultStash(params.sessionId);
|
|
@@ -85670,7 +85670,7 @@ async function runEmbeddedPiAgent(params) {
|
|
|
85670
85670
|
const copilotAuthRetry = authRetryPending;
|
|
85671
85671
|
authRetryPending = false;
|
|
85672
85672
|
attemptedThinking.add(thinkLevel);
|
|
85673
|
-
await
|
|
85673
|
+
await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
|
|
85674
85674
|
const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
|
|
85675
85675
|
const attempt = await runEmbeddedAttempt({
|
|
85676
85676
|
sessionId: params.sessionId,
|
|
@@ -86897,7 +86897,7 @@ async function runModelGate(spec, ctx) {
|
|
|
86897
86897
|
const isolatedSessionId = randomNonce;
|
|
86898
86898
|
const isolatedRunId = randomNonce;
|
|
86899
86899
|
const tmpBaseDir = resolvePreferredOpenClawTmpDir();
|
|
86900
|
-
tmpDir = await
|
|
86900
|
+
tmpDir = await fsPromises.mkdtemp(path.join(tmpBaseDir, "wake-gate-"));
|
|
86901
86901
|
const workspaceDir = tmpDir;
|
|
86902
86902
|
const prompt = spec.prompt ?? DEFAULT_MODEL_PROMPT;
|
|
86903
86903
|
const timeoutMs = spec.timeoutMs ?? DEFAULT_MODEL_TIMEOUT_MS;
|
|
@@ -86955,7 +86955,7 @@ async function runModelGate(spec, ctx) {
|
|
|
86955
86955
|
log$1.warn("model gate error", { error: err instanceof Error ? err.message : String(err) });
|
|
86956
86956
|
return { wake: false };
|
|
86957
86957
|
} finally {
|
|
86958
|
-
if (tmpDir) await
|
|
86958
|
+
if (tmpDir) await fsPromises.rm(tmpDir, {
|
|
86959
86959
|
recursive: true,
|
|
86960
86960
|
force: true
|
|
86961
86961
|
}).catch(() => void 0);
|
|
@@ -87353,7 +87353,7 @@ async function resolveHeartbeatPreflight(params) {
|
|
|
87353
87353
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, params.agentId);
|
|
87354
87354
|
const heartbeatFilePath = path.join(workspaceDir, DEFAULT_HEARTBEAT_FILENAME);
|
|
87355
87355
|
try {
|
|
87356
|
-
if (isHeartbeatContentEffectivelyEmpty(await
|
|
87356
|
+
if (isHeartbeatContentEffectivelyEmpty(await fsPromises.readFile(heartbeatFilePath, "utf-8"))) return {
|
|
87357
87357
|
...basePreflight,
|
|
87358
87358
|
skipReason: "empty-heartbeat-file"
|
|
87359
87359
|
};
|