squidclaw 3.3.3 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-BH9Qo1sQ.js → accounts-BK8I0Svb.js} +7 -7
- package/dist/{accounts-Cuwg9Tan.js → accounts-DeqNOvBo.js} +1 -1
- package/dist/{accounts-B1RxFghM.js → accounts-KzgPbLHP.js} +1 -1
- package/dist/{acp-cli-BC9OAf3z.js → acp-cli-BDUN_3hr.js} +8 -8
- package/dist/{agent-scope-CfsErfyG.js → agent-scope-DipdnGE4.js} +17 -17
- package/dist/{agents-CCBxQ9aq.js → agents-Dp7Z49KS.js} +14 -14
- package/dist/{agents.config-BLyNI6Wo.js → agents.config-BiYGJTBo.js} +2 -2
- package/dist/{api-key-rotation-D8zY84vq.js → api-key-rotation-ijs2sHFd.js} +1 -1
- package/dist/{audio-preflight-D2V9uUvO.js → audio-preflight-BdE85axf.js} +34 -34
- package/dist/{audio-transcription-runner-Caxzri8M.js → audio-transcription-runner-t9ywC3Mg.js} +23 -23
- package/dist/{audit-C-YgUaul.js → audit-DLLdL6Gd.js} +29 -29
- package/dist/{auth-BLnmRBQV.js → auth-CgVB2OQr.js} +1 -1
- package/dist/{auth-choice-gdt59E8k.js → auth-choice-BJBbpLg9.js} +13 -13
- package/dist/{auth-choice-BtLMBliK.js → auth-choice-DFMaBDZ1.js} +11 -11
- package/dist/{auth-choice.apply-helpers-CjGIIfKh.js → auth-choice.apply-helpers-C-L13mHO.js} +1 -1
- package/dist/{auth-profiles-ByQNLJzP.js → auth-profiles-BiJk4pUv.js} +16 -16
- package/dist/{auth-token-Gu6sWtZS.js → auth-token-B3--XmAN.js} +1 -1
- package/dist/{banner-C9hwqM49.js → banner-BR76eqqR.js} +2 -2
- package/dist/{bonjour-discovery-Bh8Ao0vC.js → bonjour-discovery-B_XMK5ai.js} +1 -1
- package/dist/{browser-cli-CGjcwRKx.js → browser-cli-B45YlTHC.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/{call-BPIaCRGe.js → call-G7vZ_wCI.js} +10 -10
- package/dist/{channel-account-context-DJ3rHgVO.js → channel-account-context-CQ6rCiGI.js} +5 -5
- package/dist/{channel-activity-CNDuTc8D.js → channel-activity-CGBzdEGf.js} +1 -1
- package/dist/{channel-options-D0gk9W37.js → channel-options-CAVwZvHb.js} +3 -3
- package/dist/{channel-selection-DAoy4Z1P.js → channel-selection-D_NFb2hE.js} +1 -1
- package/dist/{channel-web-Duua4ZPa.js → channel-web-CmwN58t5.js} +17 -17
- package/dist/{channels-cli-D15lUa6m.js → channels-cli-BvI7PrnS.js} +93 -93
- package/dist/{channels-status-issues-DPzsKH4n.js → channels-status-issues-B87XQLLd.js} +1 -1
- package/dist/{chrome-Bs3-hdWP.js → chrome-fM6BTTNA.js} +4 -4
- package/dist/{clawbot-cli-ClfRwHPU.js → clawbot-cli-jwxDns9G.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-zfxNQ-Jj.js → cli-IgnHd9vV.js} +73 -73
- package/dist/{client-DFgW99bv.js → client-X5m1ssRl.js} +2 -2
- package/dist/{command-registry-okNPqigX.js → command-registry-D-1yrjO5.js} +11 -11
- package/dist/{command-secret-targets-Blzote2A.js → command-secret-targets-DElQTuoe.js} +4 -4
- package/dist/{commands-Bn-GGRiA.js → commands-Di_crduW.js} +1 -1
- package/dist/{commands-registry-DOyhmv7L.js → commands-registry-CvlKGwPE.js} +3 -3
- package/dist/{completion-cli-C_kX-zqx.js → completion-cli-DDG6rQHB.js} +13 -13
- package/dist/{completion-cli-DMPoKYSD.js → completion-cli-YquOT8ke.js} +1 -1
- package/dist/{config-cli-KQxg7BTe.js → config-cli-BIaTdZ_7.js} +7 -7
- package/dist/{config-guard-CTKbpGkQ.js → config-guard-CDl-VzWM.js} +3 -3
- package/dist/{config-validation-xBuowa-r.js → config-validation-BAFa1Cym.js} +3 -3
- package/dist/{configure-B3Nlvr4W.js → configure-BXLSTN8m.js} +17 -17
- package/dist/{control-ui-assets-d6VtDSeo.js → control-ui-assets-BYEy341x.js} +1 -1
- package/dist/{cron-cli-i7RdrGzx.js → cron-cli-DeHX-jJX.js} +11 -11
- package/dist/{daemon-cli-Ot9TBJ_l.js → daemon-cli-Cc8upFpL.js} +15 -15
- package/dist/{daemon-install-CbPLNiIP.js → daemon-install-Chxlu9Kv.js} +4 -4
- package/dist/{daemon-install-helpers-CZDVO_MU.js → daemon-install-helpers-CJtiW2RE.js} +11 -11
- package/dist/{deliver-DYffOszC.js → deliver-CyR05tXq.js} +7 -7
- package/dist/deliver-runtime-BY48Cyf6.js +61 -0
- package/dist/deps-send-discord.runtime-CiS_YGKd.js +36 -0
- package/dist/deps-send-imessage.runtime-h5CDiZZu.js +35 -0
- package/dist/deps-send-signal.runtime-C9s3Y1Zu.js +34 -0
- package/dist/deps-send-slack.runtime-Dqb-9qwc.js +32 -0
- package/dist/{deps-send-telegram.runtime-C7I8qHRq.js → deps-send-telegram.runtime-aNU8_XlK.js} +16 -16
- package/dist/deps-send-whatsapp.runtime-0tUP9kuA.js +119 -0
- package/dist/{devices-cli-CEW04UTp.js → devices-cli-DVV5P4ZJ.js} +8 -8
- package/dist/{diagnostic-CT4BKCiT.js → diagnostic-Du3b17ba.js} +1 -1
- package/dist/{diagnostics-m7hHHbuE.js → diagnostics--O6mo6KH.js} +5 -5
- package/dist/{directory-cli-4K5ehIEb.js → directory-cli-DaE3Quiv.js} +7 -7
- package/dist/{dns-cli-Cwgde6km.js → dns-cli-waaEVY0o.js} +5 -5
- package/dist/{dock-0fXeq35m.js → dock-gKJjfuaV.js} +4 -4
- package/dist/{docs-cli-BpZtes_j.js → docs-cli--gGxz79Z.js} +4 -4
- package/dist/{doctor-completion-Dzzgvaw-.js → doctor-completion-B63lREru.js} +2 -2
- package/dist/{doctor-completion-D6js0phx.js → doctor-completion-CoKUBmAB.js} +1 -1
- package/dist/{doctor-config-flow-CjyicsHv.js → doctor-config-flow-BtioG6ZI.js} +15 -15
- package/dist/{enable-DMJvBRPK.js → enable-Cbwq508X.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist--CDwsotI.js → exec-approvals-allowlist-Bl6dLcC4.js} +1 -1
- package/dist/{exec-approvals-cli-Bni7tZhv.js → exec-approvals-cli-_eztu6zG.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-BOmyNeKa.js → exec-safe-bin-runtime-policy-CYHAJAOy.js} +2 -2
- package/dist/{fetch-CODl9dwL.js → fetch-BWLAZtR0.js} +3 -3
- package/dist/{fetch-guard-C9XQ9W19.js → fetch-guard-aHbB2ECM.js} +1 -1
- package/dist/{fs-safe-BPQ-per2.js → fs-safe-DPYj7h8A.js} +24 -24
- package/dist/{gateway-cli-C_bDC15s.js → gateway-cli-BP1USKKw.js} +153 -153
- package/dist/{gateway-cli-DZSjLGTJ.js → gateway-cli-CIhENRqY.js} +1 -1
- package/dist/{gateway-rpc-mBKSbosL.js → gateway-rpc-CyI4qv4e.js} +1 -1
- package/dist/{health-L85P9rRI.js → health-CxqVSgKj.js} +11 -11
- package/dist/{hooks-cli-JUGj7_IF.js → hooks-cli-C-8A82OA.js} +81 -81
- package/dist/{hooks-status-BlgSVDvN.js → hooks-status-DMFBAUq8.js} +1 -1
- package/dist/{image-C3rClBur.js → image-Czt09HO2.js} +5 -5
- package/dist/{image-ops-LFsSCTyI.js → image-ops-B2uuLIGD.js} +10 -10
- package/dist/image-runtime-C_sKgCPT.js +55 -0
- package/dist/index.js +1 -1
- package/dist/{inspect-CzsXBsew.js → inspect-4c1uL0x5.js} +4 -4
- package/dist/{install-safe-path-DqI19VEv.js → install-safe-path-3muwy3fu.js} +25 -25
- package/dist/{installs-P-pYAJm1.js → installs-BiQDtPF0.js} +9 -9
- package/dist/{ipv4-Bx85fwxr.js → ipv4-B1l08IQ5.js} +1 -1
- package/dist/{ir-CLdz27UA.js → ir-Cg5iUcsz.js} +8 -8
- package/dist/{issue-format-DzzpkEKh.js → issue-format-NbalyyoF.js} +1 -1
- package/dist/{json-files-rR19q30D.js → json-files-CuJjdF_0.js} +8 -8
- package/dist/{lifecycle-core-DAOEq9od.js → lifecycle-core-BDDTVhGJ.js} +5 -5
- package/dist/{login-B6agIh-B.js → login-BtteffgM.js} +3 -3
- package/dist/{login-qr-eRvH4Sfc.js → login-qr-CL3cPNm6.js} +6 -6
- package/dist/{logs-cli-DjsOTLd0.js → logs-cli-_68C9pAz.js} +9 -9
- package/dist/{manager-CFg5CNjB.js → manager-D-epQZzu.js} +14 -14
- package/dist/{manager-runtime-BucyWusE.js → manager-runtime-dxiaLn0X.js} +9 -9
- package/dist/{manifest-registry-1ACGW3OR.js → manifest-registry-7kwtbCH-.js} +1 -1
- package/dist/{memory-cli-K8RTw22V.js → memory-cli-DdlNObR_.js} +12 -12
- package/dist/{model-D3QKHUD9.js → model-CLOEFgm1.js} +2 -2
- package/dist/{model-catalog-INp1o1zX.js → model-catalog-cPBfdmCZ.js} +3 -3
- package/dist/{model-picker-DNBHh9Px.js → model-picker-k5b4kcsx.js} +4 -4
- package/dist/{models-BpPghvyy.js → models-Bf5dNlFg.js} +17 -17
- package/dist/{models-cli-DotYKjDq.js → models-cli-DHlY3RwP.js} +78 -78
- package/dist/{models-config-BNIPxtHv.js → models-config-C7GR26HJ.js} +6 -6
- package/dist/{net-QB4dfP4-.js → net-CggAM2eK.js} +2 -2
- package/dist/{node-cli-tuLexrKG.js → node-cli-CF6bOApq.js} +33 -33
- package/dist/{node-command-policy-X4KnAuD8.js → node-command-policy--2bsadiu.js} +1 -1
- package/dist/{node-service-OVe0_CIs.js → node-service-Z0JprJda.js} +1 -1
- package/dist/{nodes-cli-BtHrRe7o.js → nodes-cli-DdF0Apr8.js} +16 -16
- package/dist/{nodes-screen-CKhKFccI.js → nodes-screen-Cihyp_1V.js} +7 -7
- package/dist/{npm-pack-install-Dn3FiWXB.js → npm-pack-install-B887us7R.js} +18 -18
- package/dist/{npm-resolution-BTi5J55i.js → npm-resolution-2sjQlpdP.js} +4 -4
- package/dist/{onboard-qnQqEy5h.js → onboard-BYwFqDe-.js} +1 -1
- package/dist/{onboard-channels-CUpUBnOj.js → onboard-channels-Bw372mQX.js} +21 -21
- package/dist/{onboard-custom-DIM8V39k.js → onboard-custom-XW3Q4ERz.js} +4 -4
- package/dist/{onboard-CaDp4p48.js → onboard-gmbrf0mc.js} +6 -6
- package/dist/{onboard-helpers-D10-c0nt.js → onboard-helpers-DfWsh9P_.js} +10 -10
- package/dist/{onboard-hooks-DW4qt57e.js → onboard-hooks-7zSvhf8S.js} +4 -4
- package/dist/{onboard-remote-PNWR1AHo.js → onboard-remote-qJCXQTPO.js} +4 -4
- package/dist/{onboard-skills-DRzcoNmr.js → onboard-skills-DFMLJn-8.js} +4 -4
- package/dist/{onboarding-mo7rwJC-.js → onboarding-C7eyvBep.js} +1 -1
- package/dist/{onboarding-D1z3JAaB.js → onboarding-OrcdwciM.js} +14 -14
- package/dist/{onboarding.finalize-CWzwBDG8.js → onboarding.finalize-Bf3EExjS.js} +142 -145
- package/dist/{onboarding.finalize-D8igsmtY.js → onboarding.finalize-DZBXbwYe.js} +55 -58
- package/dist/{onboarding.gateway-config-BzzDFZhl.js → onboarding.gateway-config-CeOavTRn.js} +18 -18
- package/dist/{onboarding.secret-input-ajPT5cjy.js → onboarding.secret-input-h4sXfwga.js} +1 -1
- package/dist/{openai-model-default-lBZZvWbf.js → openai-model-default-BIEWI0T4.js} +2 -2
- package/dist/{outbound-yJzuZMJK.js → outbound-DrmXuI1w.js} +3 -3
- package/dist/{outbound-attachment-BRjY-xU5.js → outbound-attachment-ELXt01nc.js} +2 -2
- package/dist/{pairing-cli-BHW9JIfG.js → pairing-cli-BPn6V6ca.js} +8 -8
- package/dist/{pairing-labels-DGiyVpfH.js → pairing-labels-ieaV5SBV.js} +1 -1
- package/dist/{pairing-store-BWvzmAq8.js → pairing-store-BNRzMsGf.js} +3 -3
- package/dist/{path-alias-guards-DeOVetT7.js → path-alias-guards-vfYYQFIg.js} +3 -3
- package/dist/{path-safety-D7CjFQvf.js → path-safety-C95DzArw.js} +1 -1
- package/dist/{paths-D6mnO6Ni.js → paths-DfuVHiHu.js} +9 -9
- package/dist/{pi-embedded-helpers-13zhzo1T.js → pi-embedded-helpers-DQHj960w.js} +6 -6
- package/dist/{pi-model-discovery-Cj7zDFgN.js → pi-model-discovery-D4t0ZFCY.js} +1 -1
- package/dist/{pi-model-discovery-runtime-CylBYw6s.js → pi-model-discovery-runtime-SKeRi7Gx.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-CEWBYhqI.js → pi-tools.before-tool-call.runtime-DjzR6iNJ.js} +5 -5
- package/dist/{pi-tools.policy-Bhg8uG0h.js → pi-tools.policy-DgElG9m2.js} +5 -5
- package/dist/{plugin-auto-enable-D_3GnV1a.js → plugin-auto-enable-BLhZ9NWX.js} +3 -3
- package/dist/{plugin-registry-CY6rt9xp.js → plugin-registry-BgKtjZBZ.js} +3 -3
- package/dist/plugin-sdk/{accounts-BhCAa-05.js → accounts-BLOLIF6Q.js} +2 -2
- package/dist/plugin-sdk/accounts-BXFDqY90.js +288 -0
- package/dist/plugin-sdk/{accounts-DKXGC2Vu.js → accounts-BvzvDHNx.js} +3 -3
- package/dist/plugin-sdk/{accounts-BChIl5as.js → accounts-ByCKM_Y3.js} +2 -2
- package/dist/plugin-sdk/accounts-DU7Js54-.js +46 -0
- package/dist/plugin-sdk/accounts-DxiB_4z4.js +35 -0
- package/dist/plugin-sdk/{active-listener-TTbK9PGk.js → active-listener-Ccj2fSCa.js} +2 -2
- package/dist/plugin-sdk/active-listener-DRKcesNb.js +50 -0
- package/dist/plugin-sdk/{api-key-rotation-BqhYVBBK.js → api-key-rotation-0Xm0okk5.js} +2 -2
- package/dist/plugin-sdk/api-key-rotation-k1ZNheUH.js +181 -0
- package/dist/plugin-sdk/{audio-preflight-DAf0ptAM.js → audio-preflight-B_pcDw8d.js} +26 -26
- package/dist/plugin-sdk/audio-preflight-Be1sKsob.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-jhHyCc_7.js +2176 -0
- package/dist/plugin-sdk/{audio-transcription-runner-CBASOlbc.js → audio-transcription-runner-u6tijzUS.js} +11 -11
- package/dist/plugin-sdk/audit-membership-runtime-B9b-zRwg.js +58 -0
- package/dist/plugin-sdk/{audit-membership-runtime-Xl20kCBe.js → audit-membership-runtime-DHQDvH4u.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-95JVLzNY.js → channel-activity-BVUdxSNs.js} +3 -3
- package/dist/plugin-sdk/channel-activity-Bq1Y9RiB.js +94 -0
- package/dist/plugin-sdk/channel-web-AsdjtnvN.js +2256 -0
- package/dist/plugin-sdk/{channel-web-DCkC6Ydu.js → channel-web-BX2s-JXF.js} +18 -18
- package/dist/plugin-sdk/{chrome-BlXpNOQu.js → chrome-6EkqVcyR.js} +6 -6
- package/dist/plugin-sdk/chrome-DOnBMnlx.js +2415 -0
- package/dist/plugin-sdk/{commands-registry-C9y_w3eW.js → commands-registry-CDHo6SSs.js} +4 -4
- package/dist/plugin-sdk/commands-registry-D0py59pz.js +1125 -0
- package/dist/plugin-sdk/{common-CEwMUbms.js → common-Emz6EPQM.js} +2 -2
- package/dist/plugin-sdk/config-B16xKqSo.js +17912 -0
- package/dist/plugin-sdk/{config-sMifxgre.js → config-CMjn_DSB.js} +7 -7
- package/dist/plugin-sdk/deliver-BqXXtIuw.js +1694 -0
- package/dist/plugin-sdk/{deliver-2zt3NeFA.js → deliver-Cz6GluMN.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-CjCJkoFM.js +32 -0
- package/dist/plugin-sdk/deliver-runtime-D0xZkt8n.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-BM6ppx2Q.js +23 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-C4AEwjGl.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-3w5PhXGu.js +22 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-DCdEe-_E.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BNO6SPmR.js +21 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-yH9cQl3_.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-BChVBURL.js +19 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-Bh4gw-L5.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-C_CtsWgt.js +24 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-DyCorUw2.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BF4vx9Ho.js +57 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-DoOYrpKa.js +57 -0
- package/dist/plugin-sdk/diagnostic-DUbajFSl.js +319 -0
- package/dist/plugin-sdk/{diagnostic-CU_mni6m.js → diagnostic-DhO2TqL_.js} +2 -2
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/plugin-sdk/{errors-CgRPdp3o.js → errors-9oVz7reJ.js} +1 -1
- package/dist/plugin-sdk/errors-B8oJXuCF.js +54 -0
- package/dist/plugin-sdk/{fetch-guard-BxMLJbqt.js → fetch-guard-CGQ35-A_.js} +2 -2
- package/dist/plugin-sdk/fetch-guard-Cgyq6Jv9.js +156 -0
- package/dist/plugin-sdk/{fs-safe-5aQcM_qM.js → fs-safe-B26UxJny.js} +3 -3
- package/dist/plugin-sdk/fs-safe-BW1ypSDS.js +352 -0
- package/dist/plugin-sdk/image-BPXnvxYL.js +2310 -0
- package/dist/plugin-sdk/{image-BJXV9IMV.js → image-DPgEp54d.js} +6 -6
- package/dist/plugin-sdk/image-ops-BBY2fn9x.js +584 -0
- package/dist/plugin-sdk/{image-ops-DovJMvdf.js → image-ops-CbKrfi-N.js} +2 -2
- package/dist/plugin-sdk/image-runtime-DN6PHT8G.js +25 -0
- package/dist/plugin-sdk/image-runtime-S-TzaJpg.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-DE2ewdq5.js → ir-4JdLS2Hz.js} +7 -7
- package/dist/plugin-sdk/ir-BJsqyZfm.js +1296 -0
- package/dist/plugin-sdk/local-roots-C1ETRlaC.js +186 -0
- package/dist/plugin-sdk/{local-roots-CIwDgpY2.js → local-roots-T6lXDGzr.js} +4 -4
- package/dist/plugin-sdk/{logger-DIb2cGHp.js → logger-Bg4vIUJn.js} +2 -2
- package/dist/plugin-sdk/logger-DDdrdbDu.js +1163 -0
- package/dist/plugin-sdk/{login-CLIcsAVy.js → login-BNCjks0C.js} +4 -4
- package/dist/plugin-sdk/login-DtS9DDnV.js +57 -0
- package/dist/plugin-sdk/login-qr-B9YeeJ37.js +320 -0
- package/dist/plugin-sdk/{login-qr-BlxjA0vQ.js → login-qr-CTjNgxhl.js} +5 -5
- package/dist/plugin-sdk/{manager-CpAGPHeX.js → manager-D__CoDGL.js} +8 -8
- package/dist/plugin-sdk/manager-Dn7j3n0d.js +3917 -0
- package/dist/plugin-sdk/manager-runtime-B9aBGLrF.js +15 -0
- package/dist/plugin-sdk/manager-runtime-UK1-iA2B.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/outbound-B8ca8vE3.js +212 -0
- package/dist/plugin-sdk/{outbound-DDpRevO_.js → outbound-DTQ-9Cjw.js} +5 -5
- package/dist/plugin-sdk/outbound-attachment-BppFIMQa.js +19 -0
- package/dist/plugin-sdk/{outbound-attachment-CVavq5II.js → outbound-attachment-CdHX9v0q.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-BfpU4lAT.js → path-alias-guards-BX-3FprC.js} +1 -1
- package/dist/plugin-sdk/path-alias-guards-DSCFtpsd.js +43 -0
- package/dist/plugin-sdk/{paths-CK3lTJYw.js → paths-BQHqKGA8.js} +1 -1
- package/dist/plugin-sdk/paths-CjFcHB_C.js +166 -0
- package/dist/plugin-sdk/{pi-embedded-helpers-Cb_h9zSJ.js → pi-embedded-helpers-B7nmCbf7.js} +16 -16
- package/dist/plugin-sdk/pi-embedded-helpers-BeYjP1MW.js +9627 -0
- package/dist/plugin-sdk/pi-model-discovery-B_qCKuSW.js +134 -0
- package/dist/plugin-sdk/{pi-model-discovery-B3B3R7L9.js → pi-model-discovery-DyDwYiK3.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-CN6ZaL0W.js +8 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-CZNiNFlm.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DivpBAM0.js → pi-tools.before-tool-call.runtime-D_f6TDo7.js} +4 -4
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-cZdrrV27.js +354 -0
- package/dist/plugin-sdk/{plugins-BlTrm4bw.js → plugins-BSPvol4w.js} +4 -4
- package/dist/plugin-sdk/plugins-rivB8KaQ.js +864 -0
- package/dist/plugin-sdk/{proxy-env-Cdh-OQYk.js → proxy-env-D-iVYTBk.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-Dt5BedH8.js → proxy-fetch-Cf3IUSDw.js} +1 -1
- package/dist/plugin-sdk/proxy-fetch-ZPEvp58f.js +38 -0
- package/dist/plugin-sdk/{pw-ai-DEDRpMlY.js → pw-ai-BO445UDA.js} +9 -9
- package/dist/plugin-sdk/pw-ai-qaWZD0yx.js +1938 -0
- package/dist/plugin-sdk/{qmd-manager-Ct9rtJjd.js → qmd-manager-81ezWnIN.js} +7 -7
- package/dist/plugin-sdk/qmd-manager-izn0N9V3.js +1448 -0
- package/dist/plugin-sdk/{query-expansion-OdwWuN1S.js → query-expansion-C1Nx0XAb.js} +5 -5
- package/dist/plugin-sdk/query-expansion-DxTmIU4K.js +1011 -0
- package/dist/plugin-sdk/{redact-9WsNyb7S.js → redact-BoNEjbpF.js} +1 -1
- package/dist/plugin-sdk/redact-DfACyt0X.js +319 -0
- package/dist/plugin-sdk/{reply-wZhosbPd.js → reply-DJ3rbbnv.js} +73 -73
- package/dist/plugin-sdk/reply-DNSpho0-.js +98763 -0
- package/dist/plugin-sdk/{resolve-outbound-target-BJmCIkW_.js → resolve-outbound-target-DtQd8TzZ.js} +2 -2
- package/dist/plugin-sdk/resolve-outbound-target-YiPIGXVN.js +40 -0
- package/dist/plugin-sdk/{run-with-concurrency-EUEKeAa8.js → run-with-concurrency-CYcPpb5E.js} +1 -1
- package/dist/plugin-sdk/run-with-concurrency-vfuRiXdY.js +2023 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BgwMJs4X.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-ai8hcGi_.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BzvoaI1G.js +19 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Y7maoii7.js +19 -0
- package/dist/plugin-sdk/{send-Drs4JqVD.js → send-B9GVkvTk.js} +5 -5
- package/dist/plugin-sdk/{send-BMWyVUhm.js → send-BPEn9L0o.js} +13 -13
- package/dist/plugin-sdk/send-BSD6Pkrk.js +414 -0
- package/dist/plugin-sdk/send-C4KxEJe1.js +503 -0
- package/dist/plugin-sdk/{send-0C4KdD-T.js → send-CGjI0pJn.js} +7 -7
- package/dist/plugin-sdk/{send-oo6mQbab.js → send-CZ6HDwDu.js} +8 -8
- package/dist/plugin-sdk/send-D3XVKGvq.js +540 -0
- package/dist/plugin-sdk/{send-BGWGV_mz.js → send-D6nUI0S3.js} +6 -6
- package/dist/plugin-sdk/send-DFrnRiWm.js +3135 -0
- package/dist/plugin-sdk/send-Dh1f5xjE.js +2587 -0
- package/dist/plugin-sdk/{session-CXVARKFK.js → session-Bwjlseuf.js} +3 -3
- package/dist/plugin-sdk/session-D5c0BIEo.js +169 -0
- package/dist/plugin-sdk/{skill-commands-CoqGFLfM.js → skill-commands-BpB2Oe8e.js} +4 -4
- package/dist/plugin-sdk/skill-commands-CnqkEfhS.js +342 -0
- package/dist/plugin-sdk/{skills-di-5uS9y.js → skills-CaQpr1kx.js} +6 -6
- package/dist/plugin-sdk/skills-DSbDUvmU.js +1428 -0
- package/dist/plugin-sdk/slash-commands.runtime-BH06o3dH.js +13 -0
- package/dist/plugin-sdk/slash-commands.runtime-Dbtq7ppF.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BhAks953.js +52 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BotYesgY.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-CzPvxiUD.js +16 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-QGNWVO9S.js +16 -0
- package/dist/plugin-sdk/ssrf-DvsjfpC2.js +202 -0
- package/dist/plugin-sdk/store-DG90hxe6.js +81 -0
- package/dist/plugin-sdk/{store-Dn_E3uaN.js → store-K6C7eOpg.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-BbcgUYOO.js +52 -0
- package/dist/plugin-sdk/subagent-registry-runtime-Db83OZ3_.js +52 -0
- package/dist/plugin-sdk/{tables-_e9wMygc.js → tables-CeWt6UjS.js} +1 -1
- package/dist/plugin-sdk/tables-DNlQ8oQ3.js +55 -0
- package/dist/{target-errors-C_rnMuJ2.js → plugin-sdk/target-errors-BlVYPwVC.js} +4 -4
- package/dist/plugin-sdk/thinking-DT2ZR60x.js +1206 -0
- package/dist/plugin-sdk/{thinking-Cih_nxDY.js → thinking-gpcjIDQZ.js} +7 -7
- package/dist/plugin-sdk/{tokens-CLE20fRI.js → tokens-CTIYTLWu.js} +1 -1
- package/dist/plugin-sdk/tokens-DAL_5WHL.js +52 -0
- package/dist/plugin-sdk/{tool-images-D6a1Ua4p.js → tool-images-DroS1EaM.js} +2 -2
- package/dist/plugin-sdk/tool-images-l3TE_qXt.js +274 -0
- package/dist/plugin-sdk/web-42d5VBZj.js +56 -0
- package/dist/plugin-sdk/web-DZ7nBzZy.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-UAnHjKbE.js → whatsapp-actions-CbzdjX4B.js} +17 -17
- package/dist/plugin-sdk/whatsapp-actions-DR2aYq5f.js +80 -0
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins-DFPxMLnR.js → plugins-DuLOFZmO.js} +2 -2
- package/dist/{plugins-cli-Bfq4OJMG.js → plugins-cli-CKr9IyQL.js} +83 -83
- package/dist/{ports-DMeUt80n.js → ports-0jLyYbvQ.js} +2 -2
- package/dist/{ports-BzfeaNjw.js → ports-Be82TlEg.js} +1 -1
- package/dist/{program-Crlu6-Fd.js → program-D5HYdN0q.js} +81 -81
- package/dist/{program-context-BUiGRFn1.js → program-context-CWU-LWnL.js} +6 -6
- package/dist/{prompt-select-styled-DPnXlfvv.js → prompt-select-styled-C_C2Ae8a.js} +40 -40
- package/dist/{prompt-select-styled-BeIW1IXq.js → prompt-select-styled-CjkK2AWX.js} +1 -1
- package/dist/{provider-auth-helpers-C_1HJDfj.js → provider-auth-helpers-DG7hKvxV.js} +5 -5
- package/dist/{proxy-env-CNlcVWhf.js → proxy-env-D16ubrT6.js} +1 -1
- package/dist/{push-apns-C4uEslA7.js → push-apns-BZeUZhYN.js} +5 -5
- package/dist/{pw-ai-Dg9fGMve.js → pw-ai-BrmQq6dp.js} +18 -18
- package/dist/{qmd-manager-D4nXiiAn.js → qmd-manager-CToc7FPg.js} +20 -20
- package/dist/{qr-cli-CN6kEeE-.js → qr-cli-23hgWtLn.js} +2 -2
- package/dist/{query-expansion-C0HUJbRn.js → query-expansion-DI9INxTg.js} +12 -12
- package/dist/{redact-snapshot-CiS6G7vm.js → redact-snapshot-B8W0RynI.js} +1 -1
- package/dist/{register.agent-BMr61y_S.js → register.agent-C9tZejQm.js} +94 -94
- package/dist/register.configure-DJj2p4b3.js +165 -0
- package/dist/{register.maintenance-BETLfpr3.js → register.maintenance-BnT8sF7e.js} +4 -4
- package/dist/{register.maintenance-DWquSvC1.js → register.maintenance-CVWvM_w8.js} +95 -95
- package/dist/{register.message-CqqQmFqh.js → register.message-DexwH4xh.js} +74 -74
- package/dist/{register.onboard-FYANtcb-.js → register.onboard-B68iwPcU.js} +2 -2
- package/dist/{register.onboard-CJqPKqea.js → register.onboard-Bx2xxYE0.js} +18 -18
- package/dist/{register.setup-DzAgPerh.js → register.setup-BgRFFdoH.js} +21 -21
- package/dist/{register.setup-_38deeF2.js → register.setup-DkztcYGa.js} +2 -2
- package/dist/{register.status-health-sessions-CHCnEwLO.js → register.status-health-sessions-CmNMtNSk.js} +88 -88
- package/dist/{register.subclis-DX9OFUYu.js → register.subclis-Bb6WLUhM.js} +31 -31
- package/dist/{rpc-DFxhwitx.js → rpc-BquITS9w.js} +1 -1
- package/dist/{run-main-BjSdMh29.js → run-main-CApmG6CS.js} +93 -93
- package/dist/{runtime-By5SpbLU.js → runtime-_Vk5eISV.js} +3 -3
- package/dist/{runtime-config-collectors-B104qPur.js → runtime-config-collectors-wQYiGNzB.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-B4XQqxLZ.js → runtime-whatsapp-login.runtime-Cf3JhAPA.js} +7 -7
- package/dist/{runtime-whatsapp-outbound.runtime-CTfBy0k0.js → runtime-whatsapp-outbound.runtime-bw4l8Cm5.js} +15 -15
- package/dist/{sandbox-DaQ1ruwH.js → sandbox-CbGxVENW.js} +18 -18
- package/dist/{sandbox-cli-BzmKYlDs.js → sandbox-cli-WvgvhVoi.js} +25 -25
- package/dist/{secrets-cli-C2iidz4Q.js → secrets-cli-BJFHNFFa.js} +11 -11
- package/dist/{security-cli-D3PfmNhS.js → security-cli-BVezJLE_.js} +42 -42
- package/dist/{send-BWMSp9_W.js → send-Bu3eP6CW.js} +4 -4
- package/dist/{send-BdZJcfei.js → send-C2ol3xJd.js} +8 -8
- package/dist/{send-DHmaiFb3.js → send-Cj7csKER.js} +6 -6
- package/dist/{send-BcCUXoKV.js → send-D8WRsTcF.js} +5 -5
- package/dist/{send-BbUl6LvV.js → send-DynShEUL.js} +11 -11
- package/dist/{server-BThRQKrb.js → server-TkeA4LLX.js} +20 -20
- package/dist/{server-context-D9dHt5TX.js → server-context-C56AfkmJ.js} +12 -12
- package/dist/{server-lifecycle-DwoqIphm.js → server-lifecycle-CUR6g-z-.js} +2 -2
- package/dist/{server-middleware-i-VrGsvO.js → server-middleware-Dxlv5GU2.js} +1 -1
- package/dist/{server-node-events-67QUoOob.js → server-node-events-EsqtDPMI.js} +74 -74
- package/dist/{service-B5T42CWZ.js → service-DSqxS6_D.js} +15 -15
- package/dist/{session-eXSdl5mb.js → session-D0jodcgT.js} +1 -1
- package/dist/{session-utils-PIpg5nvE.js → session-utils-CZALjD6h.js} +6 -6
- package/dist/{sessions-CDicf15r.js → sessions-BLTjLVQT.js} +4 -4
- package/dist/{sessions-A97O0F1f.js → sessions-gTKLgF0i.js} +15 -15
- package/dist/{shared-CJet4A6J.js → shared-4aGIUkwm.js} +3 -3
- package/dist/{shared-By6_qr_R.js → shared-D5DTxBPH.js} +1 -1
- package/dist/{skill-commands-DBT6aOGs.js → skill-commands-CigVnmMu.js} +5 -5
- package/dist/{skill-scanner--QKHR8U0.js → skill-scanner-CvS725eQ.js} +6 -6
- package/dist/{skills-EwyaIyKC.js → skills-C85azDXm.js} +3 -3
- package/dist/{skills-cli-CblUgygP.js → skills-cli-B2fk0u1F.js} +5 -5
- package/dist/{skills-install-Bg63KYLo.js → skills-install-_Qv7iwIj.js} +6 -6
- package/dist/{skills-status-Bv8Xt7Lc.js → skills-status-DkO7rxE8.js} +1 -1
- package/dist/{slash-commands.runtime-BueY2Beh.js → slash-commands.runtime-CF70sEb6.js} +11 -11
- package/dist/slash-dispatch.runtime-BpDcu-GU.js +114 -0
- package/dist/{slash-skill-commands.runtime-ByvvwWOf.js → slash-skill-commands.runtime-6s4Ap-WA.js} +15 -15
- package/dist/{squidclaw-root-JXyRbQLJ.js → squidclaw-root-BQfLymzj.js} +8 -8
- package/dist/{status-Doe6Z9h6.js → status-yDvMiWJC.js} +27 -27
- package/dist/{status.update-BGIm6we4.js → status.update-CiLU9RPF.js} +2 -2
- package/dist/{store-BTkIx401.js → store-BEIcnlgx.js} +5 -5
- package/dist/{subagent-registry-o5rZt_4e.js → subagent-registry-BE1B0_sO.js} +149 -149
- package/dist/subagent-registry-runtime-DNx1w9Cr.js +114 -0
- package/dist/{system-cli-BGFIr82s.js → system-cli-DAKISNim.js} +9 -9
- package/dist/{system-run-command-BqoUyRkT.js → system-run-command-BOHXAwW8.js} +1 -1
- package/dist/{systemd-B86VePXs.js → systemd-Cj2cX_ZP.js} +9 -9
- package/dist/{systemd-hints-BmFWZu_j.js → systemd-hints-46PqJfaq.js} +6 -6
- package/dist/{systemd-linger-w7fvBU-1.js → systemd-linger-6Jd9K5p2.js} +1 -1
- package/dist/{tables-Cw6nUurn.js → tables-DOgKzkCQ.js} +1 -1
- package/dist/{tailnet-QKMSnz19.js → tailnet-BlV0IR7G.js} +1 -1
- package/dist/target-errors-CRQlPF1u.js +195 -0
- package/dist/{tool-images-D6mmxuWS.js → tool-images-CyzWvDUu.js} +1 -1
- package/dist/{tui-BxsFozJB.js → tui-DN34soFB.js} +6 -6
- package/dist/{tui-cli-Bf1E1ENY.js → tui-cli-CG0r8wIF.js} +32 -32
- package/dist/{update-BhRrb6BI.js → update-1JhjCqjy.js} +3 -3
- package/dist/{update-cli-Bh_QpVMZ.js → update-cli-DoKsKvCz.js} +4 -4
- package/dist/{update-cli-yUlN0mCs.js → update-cli-VQSBFHlu.js} +104 -104
- package/dist/{update-runner-DCLBBKeT.js → update-runner-EXHdNkfq.js} +16 -16
- package/dist/web-DfVBXj7E.js +118 -0
- package/dist/{webhooks-cli-BCqXOihQ.js → webhooks-cli-CJpcVOhV.js} +6 -6
- package/dist/{whatsapp-actions-I7z57XJA.js → whatsapp-actions-BYzAF3jo.js} +17 -17
- package/dist/{with-timeout-CX0CGi5G.js → with-timeout-D8mIrgj5.js} +3 -3
- package/dist/{workspace-BbO-M3Jv.js → workspace-D5vNjk5G.js} +1 -1
- package/dist/{workspace-dirs-DJbX0g4E.js → workspace-dirs-CKrd0E4k.js} +1 -1
- package/dist/{wsl-CsGe5QCP.js → wsl-CvQfS6aU.js} +2 -2
- package/extensions/googlechat/node_modules/.bin/squidclaw +2 -2
- package/extensions/memory-core/node_modules/.bin/squidclaw +2 -2
- package/package.json +1 -1
- package/dist/deliver-runtime-CCCnLu1l.js +0 -61
- package/dist/deps-send-discord.runtime-C1qYROSU.js +0 -36
- package/dist/deps-send-imessage.runtime-Dz14pqUt.js +0 -35
- package/dist/deps-send-signal.runtime-BxlxMy_x.js +0 -34
- package/dist/deps-send-slack.runtime-BoIAdT0Z.js +0 -32
- package/dist/deps-send-whatsapp.runtime-NrQGDJy9.js +0 -119
- package/dist/image-runtime-BawEM2qj.js +0 -55
- package/dist/plugin-sdk/deliver-runtime-Dx0Sg-lg.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-bKwjojX0.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-DcxfdKGE.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-79rGat6V.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-DfMO701H.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-Bnjwm6SU.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CS50_Jgh.js +0 -57
- package/dist/plugin-sdk/image-runtime-f-WKB3Bx.js +0 -25
- package/dist/plugin-sdk/manager-runtime-DAKJEbuY.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-Bm4bHwpO.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-D74eZbH7.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BidSddX5.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-CseiMacz.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-88gX6CLk.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-BNrQNIZ7.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-Cv8RHTjT.js +0 -52
- package/dist/plugin-sdk/web-C4tTN9Xu.js +0 -56
- package/dist/register.configure-7_PUrx8F.js +0 -165
- package/dist/slash-dispatch.runtime-B3gbmyOu.js +0 -114
- package/dist/subagent-registry-runtime-C0GbHEOo.js +0 -114
- package/dist/web-1FVB4fsI.js +0 -118
- package/extensions/diagnostics-otel/node_modules/.bin/acorn +0 -21
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +0 -21
|
@@ -3,111 +3,111 @@ import { g as resolveStateDir, r as STATE_DIR, u as resolveGatewayPort, y as res
|
|
|
3
3
|
import { d as defaultRuntime, t as createSubsystemLogger, u as createNonExitingRuntime } from "./subsystem-Bw5n50gj.js";
|
|
4
4
|
import { t as parseBooleanValue$1 } from "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
6
|
-
import { Ar as resolveReasoningDefault, At as AVATAR_MAX_BYTES, Dn as applyMergePatch, Dr as resolveDefaultModelForAgent, Er as resolveConfiguredModelRef, Fi as DEFAULT_CONTEXT_TOKENS, Fn as resolveSlackNativeStreaming, Ft as isSupportedLocalAvatarExtension, G as writeConfigFile, Gn as resolveOwnerDisplaySetting, Gt as getConfigValueAtPath, Hn as resolveAgentMaxConcurrent, Ht as resetConfigOverrides, Ii as DEFAULT_MODEL, In as resolveSlackStreamingMode, J as TELEGRAM_COMMAND_NAME_PATTERN, Jn as listProfilesForProvider, Jt as unsetConfigValueAtPath, K as validateConfigObjectWithPlugins, Kt as parseConfigPath, Li as DEFAULT_PROVIDER, Mr as resolveSubagentSpawnModelSelection, Mt as isAvatarHttpUrl, Nn as mapStreamingModeToSlackLegacyDraftStreamMode, Nr as resolveThinkingDefault, Pi as splitTrailingAuthProfile, Pn as resolveDiscordPreviewStreamMode, Pt as isPathWithinRoot, Q as isInboundPathAllowed, Ri as resolveAuthProfileDisplayLabel, Sr as normalizeProviderId, U as resolveConfigSnapshotHash, Ut as setConfigOverride, V as readConfigFileSnapshot, Vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vt as getConfigOverrides, Wt as unsetConfigOverride, X as resolveTelegramCustomCommands, Xr as resolveRetryConfig, Y as normalizeTelegramCommandName, Yn as markAuthProfileGood, Zr as retryAsync, _i as resolveModelAuthMode, a as getSoonestCooldownExpiry, ai as OLLAMA_NATIVE_BASE_URL, bi as resolveShellEnvFallbackTimeoutMs, br as normalizeModelRef$2, c as markAuthProfileUsed, ci as buildAssistantMessageWithZeroUsage, cr as withFileLock, d as resolveApiKeyForProfile, di as getApiKeyForModel, er as ensureAuthProfileStore, et as resolveIMessageAttachmentRoots, f as evaluateStoredCredentialEligibility, fi as getCustomProviderApiKey, fr as buildAllowedModelSet, gi as resolveEnvApiKey, hr as findNormalizedProviderValue, i as clearExpiredCooldowns, ji as normalizeSecretInput, jt as isAvatarDataUrl, kr as resolveModelRefFromString, li as buildStreamErrorAssistantMessage, mi as resolveApiKeyForProvider, mr as buildModelAliasIndex, nn as buildEnforcedShellCommand, nt as normalizeScpRemoteHost, o as isProfileInCooldown, oi as createOllamaStreamFn, or as resolveAuthStorePathForDisplay, p as resolveTokenExpiryState, pi as requireApiKey, pr as buildConfiguredAllowlistKeys, pt as parseDurationMs, qn as dedupeProfileIds, qt as setConfigValueAtPath, r as resolveAuthProfileOrder, rt as parseNonNegativeByteSize, s as markAuthProfileFailure, si as buildAssistantMessage, sr as resolveSquidClawAgentDir, tt as resolveIMessageRemoteAttachmentRoots, u as resolveProfilesUnavailableReason, ui as buildUsageWithNoCost, vr as isCliProvider, yi as getShellPathFromLoginShell, yr as modelKey, z as loadConfig, zt as validateJsonSchemaValue } from "./auth-profiles-
|
|
6
|
+
import { Ar as resolveReasoningDefault, At as AVATAR_MAX_BYTES, Dn as applyMergePatch, Dr as resolveDefaultModelForAgent, Er as resolveConfiguredModelRef, Fi as DEFAULT_CONTEXT_TOKENS, Fn as resolveSlackNativeStreaming, Ft as isSupportedLocalAvatarExtension, G as writeConfigFile, Gn as resolveOwnerDisplaySetting, Gt as getConfigValueAtPath, Hn as resolveAgentMaxConcurrent, Ht as resetConfigOverrides, Ii as DEFAULT_MODEL, In as resolveSlackStreamingMode, J as TELEGRAM_COMMAND_NAME_PATTERN, Jn as listProfilesForProvider, Jt as unsetConfigValueAtPath, K as validateConfigObjectWithPlugins, Kt as parseConfigPath, Li as DEFAULT_PROVIDER, Mr as resolveSubagentSpawnModelSelection, Mt as isAvatarHttpUrl, Nn as mapStreamingModeToSlackLegacyDraftStreamMode, Nr as resolveThinkingDefault, Pi as splitTrailingAuthProfile, Pn as resolveDiscordPreviewStreamMode, Pt as isPathWithinRoot, Q as isInboundPathAllowed, Ri as resolveAuthProfileDisplayLabel, Sr as normalizeProviderId, U as resolveConfigSnapshotHash, Ut as setConfigOverride, V as readConfigFileSnapshot, Vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vt as getConfigOverrides, Wt as unsetConfigOverride, X as resolveTelegramCustomCommands, Xr as resolveRetryConfig, Y as normalizeTelegramCommandName, Yn as markAuthProfileGood, Zr as retryAsync, _i as resolveModelAuthMode, a as getSoonestCooldownExpiry, ai as OLLAMA_NATIVE_BASE_URL, bi as resolveShellEnvFallbackTimeoutMs, br as normalizeModelRef$2, c as markAuthProfileUsed, ci as buildAssistantMessageWithZeroUsage, cr as withFileLock, d as resolveApiKeyForProfile, di as getApiKeyForModel, er as ensureAuthProfileStore, et as resolveIMessageAttachmentRoots, f as evaluateStoredCredentialEligibility, fi as getCustomProviderApiKey, fr as buildAllowedModelSet, gi as resolveEnvApiKey, hr as findNormalizedProviderValue, i as clearExpiredCooldowns, ji as normalizeSecretInput, jt as isAvatarDataUrl, kr as resolveModelRefFromString, li as buildStreamErrorAssistantMessage, mi as resolveApiKeyForProvider, mr as buildModelAliasIndex, nn as buildEnforcedShellCommand, nt as normalizeScpRemoteHost, o as isProfileInCooldown, oi as createOllamaStreamFn, or as resolveAuthStorePathForDisplay, p as resolveTokenExpiryState, pi as requireApiKey, pr as buildConfiguredAllowlistKeys, pt as parseDurationMs, qn as dedupeProfileIds, qt as setConfigValueAtPath, r as resolveAuthProfileOrder, rt as parseNonNegativeByteSize, s as markAuthProfileFailure, si as buildAssistantMessage, sr as resolveSquidClawAgentDir, tt as resolveIMessageRemoteAttachmentRoots, u as resolveProfilesUnavailableReason, ui as buildUsageWithNoCost, vr as isCliProvider, yi as getShellPathFromLoginShell, yr as modelKey, z as loadConfig, zt as validateJsonSchemaValue } from "./auth-profiles-BiJk4pUv.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-D8-lYArk.js";
|
|
8
|
-
import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-
|
|
8
|
+
import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-DipdnGE4.js";
|
|
9
9
|
import { D as resolveThreadParentSessionKey, E as parseAgentSessionKey, S as isAcpSessionKey, T as isSubagentSessionKey, _ as normalizeAccountId$2, b as deriveSessionChatType, c as normalizeAgentId, d as resolveThreadSessionKeys, f as sanitizeAgentId, g as DEFAULT_ACCOUNT_ID, i as buildAgentPeerSessionKey, l as normalizeMainKey, n as DEFAULT_MAIN_KEY, o as classifySessionKeyShape, p as scopedHeartbeatWakeOptions, r as buildAgentMainSessionKey, s as isValidAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, v as normalizeOptionalAccountId, w as isCronSessionKey, x as getSubagentDepth, y as isBlockedObjectKey } from "./session-key-k6urs9r-.js";
|
|
10
10
|
import { C as sliceUtf16Safe, E as isPlainObject, S as sleep$1, T as truncateUtf16Safe, b as shortenHomeInString, c as escapeRegExp, p as normalizeE164, r as clampInt, t as CONFIG_DIR, u as isRecord$1, v as resolveUserPath, x as shortenHomePath } from "./utils-D6vohX1h.js";
|
|
11
|
-
import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveSquidClawPackageRoot } from "./squidclaw-root-
|
|
11
|
+
import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveSquidClawPackageRoot } from "./squidclaw-root-BQfLymzj.js";
|
|
12
12
|
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-DL3N22PJ.js";
|
|
13
13
|
import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-TSiqsZw1.js";
|
|
14
14
|
import { E as triggerInternalHook, M as normalizeResolvedSecretInputString, S as matchPluginCommand, _ as normalizePluginHttpPath, b as getPluginCommandSpecs, c as normalizeChannelId$1, d as getActivePluginRegistryKey, g as createPluginRegistry, k as coerceSecretRef, m as setActivePluginRegistry, n as CHAT_CHANNEL_ORDER, p as requireActivePluginRegistry, s as normalizeAnyChannelId, u as getActivePluginRegistry, v as clearPluginCommands, w as createInternalHookEvent, x as listPluginCommands, y as executePluginCommand } from "./registry-BXcl3IkC.js";
|
|
15
15
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-CxitgiZA.js";
|
|
16
16
|
import { n as isDangerousHostEnvVarName } from "./host-env-security-lcjXF83D.js";
|
|
17
17
|
import { t as VERSION } from "./version-3so140Zi.js";
|
|
18
|
-
import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverSquidClawPlugins } from "./manifest-registry-
|
|
19
|
-
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-
|
|
18
|
+
import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverSquidClawPlugins } from "./manifest-registry-7kwtbCH-.js";
|
|
19
|
+
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-gKJjfuaV.js";
|
|
20
20
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-kzSMVKJz.js";
|
|
21
21
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-BAST85mP.js";
|
|
22
|
-
import { i as buildModelAliasLines, n as resolveModel } from "./model-
|
|
23
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
24
|
-
import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-
|
|
25
|
-
import { a as resolveSkillsPromptForRun, d as resolveSandboxInputPath, h as applySkillEnvOverridesFromSnapshot, i as loadWorkspaceSkillEntries, l as assertMediaNotDataUrl, m as applySkillEnvOverrides, p as resolveSandboxedMediaSource, r as buildWorkspaceSkillSnapshot, u as assertSandboxPath } from "./skills-
|
|
26
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
22
|
+
import { i as buildModelAliasLines, n as resolveModel } from "./model-CLOEFgm1.js";
|
|
23
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-D4t0ZFCY.js";
|
|
24
|
+
import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-Du3b17ba.js";
|
|
25
|
+
import { a as resolveSkillsPromptForRun, d as resolveSandboxInputPath, h as applySkillEnvOverridesFromSnapshot, i as loadWorkspaceSkillEntries, l as assertMediaNotDataUrl, m as applySkillEnvOverrides, p as resolveSandboxedMediaSource, r as buildWorkspaceSkillSnapshot, u as assertSandboxPath } from "./skills-C85azDXm.js";
|
|
26
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-vfYYQFIg.js";
|
|
27
27
|
import { a as isInternalMessageChannel, c as listDeliverableMessageChannels, d as resolveMessageChannel, h as GATEWAY_CLIENT_NAMES, i as isGatewayMessageChannel, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, o as isMarkdownCapableMessageChannel, p as GATEWAY_CLIENT_IDS, t as INTERNAL_MESSAGE_CHANNEL, u as resolveGatewayMessageChannel } from "./message-channel-DqvtYF2o.js";
|
|
28
|
-
import { C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveSessionResetPolicy, H as resolveSessionKey, J as DEFAULT_RESET_TRIGGERS, K as resolveSessionResetType, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as evaluateSessionFreshness, V as resolveSessionLockMaxHoldFromTimeout, W as resolveChannelResetConfig, X as resolveFreshSessionTotalTokens, Y as mergeSessionEntry, Z as setSessionRuntimeModel, _ as isCacheEnabled, a as resolveAndPersistSessionFile, at as resolveConversationLabel, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, lt as resolveGroupSessionKey, n as parseSessionThreadInfo, o as loadSessionStore, q as resolveThreadFlag, r as appendAssistantMessageToSessionTranscript, rt as deriveSessionMetaPatch, s as readSessionUpdatedAt, t as extractDeliveryInfo, tt as resolveMainSessionKey, u as updateLastRoute, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession, z as acquireSessionWriteLock } from "./sessions-
|
|
29
|
-
import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-
|
|
30
|
-
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-
|
|
31
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
32
|
-
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
33
|
-
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-
|
|
34
|
-
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-
|
|
28
|
+
import { C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveSessionResetPolicy, H as resolveSessionKey, J as DEFAULT_RESET_TRIGGERS, K as resolveSessionResetType, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as evaluateSessionFreshness, V as resolveSessionLockMaxHoldFromTimeout, W as resolveChannelResetConfig, X as resolveFreshSessionTotalTokens, Y as mergeSessionEntry, Z as setSessionRuntimeModel, _ as isCacheEnabled, a as resolveAndPersistSessionFile, at as resolveConversationLabel, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, lt as resolveGroupSessionKey, n as parseSessionThreadInfo, o as loadSessionStore, q as resolveThreadFlag, r as appendAssistantMessageToSessionTranscript, rt as deriveSessionMetaPatch, s as readSessionUpdatedAt, t as extractDeliveryInfo, tt as resolveMainSessionKey, u as updateLastRoute, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession, z as acquireSessionWriteLock } from "./sessions-gTKLgF0i.js";
|
|
29
|
+
import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-DuLOFZmO.js";
|
|
30
|
+
import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-BK8I0Svb.js";
|
|
31
|
+
import { r as resolveIMessageAccount } from "./accounts-DeqNOvBo.js";
|
|
32
|
+
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-KzgPbLHP.js";
|
|
33
|
+
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-Bu3eP6CW.js";
|
|
34
|
+
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-DynShEUL.js";
|
|
35
35
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, t as resolveDefaultSessionStorePath } from "./paths-Dn_rzeZN.js";
|
|
36
36
|
import { i as normalizeInputProvenance, n as applyInputProvenanceToUserMessage, r as hasInterSessionUserProvenance } from "./input-provenance-C8z9KgIz.js";
|
|
37
|
-
import { r as writeJsonAtomic } from "./json-files-
|
|
37
|
+
import { r as writeJsonAtomic } from "./json-files-CuJjdF_0.js";
|
|
38
38
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-DgzPL8Hc.js";
|
|
39
|
-
import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-
|
|
40
|
-
import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-
|
|
41
|
-
import { r as isLoopbackHost } from "./net-
|
|
39
|
+
import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-X5m1ssRl.js";
|
|
40
|
+
import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-G7vZ_wCI.js";
|
|
41
|
+
import { r as isLoopbackHost } from "./net-CggAM2eK.js";
|
|
42
42
|
import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-CyQeGziJ.js";
|
|
43
43
|
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-DOVPgjwZ.js";
|
|
44
|
-
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-
|
|
44
|
+
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-D8mIrgj5.js";
|
|
45
45
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-_dzDDlFo.js";
|
|
46
|
-
import { A as initializeGlobalHookRunner, C as toInternalMessagePreprocessedContext, D as toPluginMessageReceivedEvent, E as toPluginMessageContext, O as fireAndForgetHook, S as deriveInboundMessageHookContext, T as toInternalMessageTranscribedContext, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, w as toInternalMessageReceivedContext, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-
|
|
46
|
+
import { A as initializeGlobalHookRunner, C as toInternalMessagePreprocessedContext, D as toPluginMessageReceivedEvent, E as toPluginMessageContext, O as fireAndForgetHook, S as deriveInboundMessageHookContext, T as toInternalMessageTranscribedContext, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, w as toInternalMessageReceivedContext, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-CyR05tXq.js";
|
|
47
47
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-Bz6Ajr4f.js";
|
|
48
|
-
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
49
|
-
import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as splitTelegramCaption, a as reactMessageTelegram, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramHtml, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildSenderName, y as loadCronStore, z as resolveTelegramReplyId } from "./send-
|
|
50
|
-
import { A as isTransientHttpError, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-
|
|
51
|
-
import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-
|
|
52
|
-
import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-
|
|
53
|
-
import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-
|
|
54
|
-
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-
|
|
48
|
+
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-B2uuLIGD.js";
|
|
49
|
+
import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as splitTelegramCaption, a as reactMessageTelegram, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramHtml, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildSenderName, y as loadCronStore, z as resolveTelegramReplyId } from "./send-C2ol3xJd.js";
|
|
50
|
+
import { A as isTransientHttpError, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-DQHj960w.js";
|
|
51
|
+
import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-CbGxVENW.js";
|
|
52
|
+
import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-fM6BTTNA.js";
|
|
53
|
+
import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-C56AfkmJ.js";
|
|
54
|
+
import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-DfuVHiHu.js";
|
|
55
55
|
import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-DknVdX-O.js";
|
|
56
56
|
import { i as formatUncaughtError, r as formatErrorMessage, s as readErrorName } from "./errors-BnRmsfe-.js";
|
|
57
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
58
|
-
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-
|
|
59
|
-
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
60
|
-
import { i as resolveLsofCommandSync } from "./ports-
|
|
61
|
-
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-
|
|
57
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-DPYj7h8A.js";
|
|
58
|
+
import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-D16ubrT6.js";
|
|
59
|
+
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-BEIcnlgx.js";
|
|
60
|
+
import { i as resolveLsofCommandSync } from "./ports-0jLyYbvQ.js";
|
|
61
|
+
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-CyzWvDUu.js";
|
|
62
62
|
import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels, u as resolveResponseUsageMode } from "./thinking-CrcT589P.js";
|
|
63
|
-
import { t as ensureSquidClawModelsJson } from "./models-config-
|
|
64
|
-
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist
|
|
65
|
-
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-
|
|
66
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
67
|
-
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-
|
|
68
|
-
import { a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$1, v as resolveAttachmentKind } from "./audio-transcription-runner-
|
|
63
|
+
import { t as ensureSquidClawModelsJson } from "./models-config-C7GR26HJ.js";
|
|
64
|
+
import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-Bl6dLcC4.js";
|
|
65
|
+
import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-CYHAJAOy.js";
|
|
66
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-cPBfdmCZ.js";
|
|
67
|
+
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-BWLAZtR0.js";
|
|
68
|
+
import { a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$1, v as resolveAttachmentKind } from "./audio-transcription-runner-t9ywC3Mg.js";
|
|
69
69
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Mawkd1Br.js";
|
|
70
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
71
|
-
import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-
|
|
70
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-aHbB2ECM.js";
|
|
71
|
+
import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-Czt09HO2.js";
|
|
72
72
|
import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-BisOZb2_.js";
|
|
73
73
|
import { t as makeProxyFetch } from "./proxy-fetch-DfeBVFag.js";
|
|
74
|
-
import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-
|
|
75
|
-
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-
|
|
76
|
-
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-
|
|
77
|
-
import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-
|
|
74
|
+
import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-Cg5iUcsz.js";
|
|
75
|
+
import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-CRQlPF1u.js";
|
|
76
|
+
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-Di_crduW.js";
|
|
77
|
+
import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-CvlKGwPE.js";
|
|
78
78
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-By9arPco.js";
|
|
79
79
|
import { n as formatTimeAgo } from "./format-relative-Czf5fUjn.js";
|
|
80
|
-
import { c as readJsonFileWithFallback, d as listPairingChannels, i as readChannelAllowFromStore, l as writeJsonFileAtomically, o as removeChannelAllowFromStoreEntry, s as upsertChannelPairingRequest, t as addChannelAllowFromStoreEntry } from "./pairing-store-
|
|
80
|
+
import { c as readJsonFileWithFallback, d as listPairingChannels, i as readChannelAllowFromStore, l as writeJsonFileAtomically, o as removeChannelAllowFromStoreEntry, s as upsertChannelPairingRequest, t as addChannelAllowFromStoreEntry } from "./pairing-store-BNRzMsGf.js";
|
|
81
81
|
import { d as resolveExecApprovals, f as resolveExecApprovalsFromFile, i as maxAsk, l as recordAllowlistUse, n as addAllowlistEntry, o as minSecurity, u as requiresExecApproval } from "./exec-approvals-Db6myg-N.js";
|
|
82
|
-
import { C as mergePathPrepend, S as findPathKey, a as canvasSnapshotTempPath, b as buildNodeShellCommand, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeCameraPayloadToFile, i as parseEnvPairs, l as parseCameraSnapPayload, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as parsePreparedSystemRunPayload, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile, w as normalizePathPrepend, x as applyPathPrepend } from "./nodes-screen-
|
|
82
|
+
import { C as mergePathPrepend, S as findPathKey, a as canvasSnapshotTempPath, b as buildNodeShellCommand, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeCameraPayloadToFile, i as parseEnvPairs, l as parseCameraSnapPayload, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as parsePreparedSystemRunPayload, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile, w as normalizePathPrepend, x as applyPathPrepend } from "./nodes-screen-Cihyp_1V.js";
|
|
83
83
|
import { t as killProcessTree$1 } from "./kill-tree-0NV2m8EI.js";
|
|
84
|
-
import { t as formatExecCommand } from "./system-run-command-
|
|
84
|
+
import { t as formatExecCommand } from "./system-run-command-BOHXAwW8.js";
|
|
85
85
|
import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-DO_ibeH6.js";
|
|
86
86
|
import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-CZ0b60YO.js";
|
|
87
|
-
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-
|
|
87
|
+
import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-CZALjD6h.js";
|
|
88
88
|
import { c as hasNonzeroUsage, l as makeZeroUsageSnapshot, n as loadCostUsageSummary, o as derivePromptTokens, r as loadSessionCostSummary, s as deriveSessionTotalTokens, u as normalizeUsage } from "./session-cost-usage-BL2HPuc5.js";
|
|
89
89
|
import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-eNPY7j3q.js";
|
|
90
|
-
import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-
|
|
91
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
90
|
+
import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-CigVnmMu.js";
|
|
91
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-CGBzdEGf.js";
|
|
92
92
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-PN66jbnR.js";
|
|
93
93
|
import { n as normalizePollInput } from "./polls-C67dmFc-.js";
|
|
94
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
94
|
+
import { t as convertMarkdownTables } from "./tables-DOgKzkCQ.js";
|
|
95
95
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-vBANYkEo.js";
|
|
96
96
|
import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-C4U8O7GM.js";
|
|
97
|
-
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-
|
|
98
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
99
|
-
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-
|
|
100
|
-
import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-
|
|
97
|
+
import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-D_NFb2hE.js";
|
|
98
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-BLhZ9NWX.js";
|
|
99
|
+
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-D8WRsTcF.js";
|
|
100
|
+
import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-Cj7csKER.js";
|
|
101
101
|
import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined$1 } from "./allow-from-DzfdGdp7.js";
|
|
102
102
|
import { t as parseTimeoutMs } from "./parse-timeout-DUdeaMqF.js";
|
|
103
103
|
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-tA6LTRr3.js";
|
|
104
|
-
import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-
|
|
104
|
+
import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-DgElG9m2.js";
|
|
105
105
|
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-CXdnb6je.js";
|
|
106
|
-
import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-
|
|
107
|
-
import { r as detectBinary } from "./onboard-helpers-
|
|
108
|
-
import { t as resolvePairingIdLabel } from "./pairing-labels-
|
|
109
|
-
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-
|
|
110
|
-
import { r as resolveMemorySearchConfig } from "./manager-
|
|
106
|
+
import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-DElQTuoe.js";
|
|
107
|
+
import { r as detectBinary } from "./onboard-helpers-DfWsh9P_.js";
|
|
108
|
+
import { t as resolvePairingIdLabel } from "./pairing-labels-ieaV5SBV.js";
|
|
109
|
+
import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-DdlNObR_.js";
|
|
110
|
+
import { r as resolveMemorySearchConfig } from "./manager-D-epQZzu.js";
|
|
111
111
|
import { i as resolveContextWindowInfo, n as CONTEXT_WINDOW_WARN_BELOW_TOKENS, r as evaluateContextWindowGuard, t as CONTEXT_WINDOW_HARD_MIN_TOKENS } from "./context-window-guard-EeoVR--t.js";
|
|
112
112
|
import { createRequire } from "node:module";
|
|
113
113
|
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -117,7 +117,7 @@ import path, { isAbsolute } from "node:path";
|
|
|
117
117
|
import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
118
118
|
import JSON5 from "json5";
|
|
119
119
|
import { inspect } from "node:util";
|
|
120
|
-
import
|
|
120
|
+
import fs$1, { appendFile, mkdir } from "node:fs/promises";
|
|
121
121
|
import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
|
|
122
122
|
import crypto, { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
123
123
|
import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
|
|
@@ -5153,7 +5153,7 @@ async function resolveAgentSessionDirs(stateDir) {
|
|
|
5153
5153
|
const agentsDir = path.join(stateDir, "agents");
|
|
5154
5154
|
let entries = [];
|
|
5155
5155
|
try {
|
|
5156
|
-
entries = await
|
|
5156
|
+
entries = await fs$1.readdir(agentsDir, { withFileTypes: true });
|
|
5157
5157
|
} catch (err) {
|
|
5158
5158
|
if (err.code === "ENOENT") return [];
|
|
5159
5159
|
throw err;
|
|
@@ -8286,7 +8286,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
8286
8286
|
//#region src/media-understanding/echo-transcript.ts
|
|
8287
8287
|
let deliverRuntimePromise$2 = null;
|
|
8288
8288
|
function loadDeliverRuntime$2() {
|
|
8289
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
8289
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-BY48Cyf6.js");
|
|
8290
8290
|
return deliverRuntimePromise$2;
|
|
8291
8291
|
}
|
|
8292
8292
|
const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
@@ -13122,7 +13122,7 @@ async function resolveSandboxWorkdir(params) {
|
|
|
13122
13122
|
cwd: process.cwd(),
|
|
13123
13123
|
root: params.sandbox.workspaceDir
|
|
13124
13124
|
});
|
|
13125
|
-
if (!(await
|
|
13125
|
+
if (!(await fs$1.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
|
|
13126
13126
|
const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
|
|
13127
13127
|
const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
|
|
13128
13128
|
return {
|
|
@@ -14366,13 +14366,13 @@ async function validateScriptFileForShellBleed(params) {
|
|
|
14366
14366
|
cwd: params.workdir,
|
|
14367
14367
|
root: params.workdir
|
|
14368
14368
|
});
|
|
14369
|
-
stat = await
|
|
14369
|
+
stat = await fs$1.stat(absPath);
|
|
14370
14370
|
} catch {
|
|
14371
14371
|
return;
|
|
14372
14372
|
}
|
|
14373
14373
|
if (!stat.isFile()) return;
|
|
14374
14374
|
if (stat.size > 512 * 1024) return;
|
|
14375
|
-
const content = await
|
|
14375
|
+
const content = await fs$1.readFile(absPath, "utf-8");
|
|
14376
14376
|
const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
|
|
14377
14377
|
if (first) {
|
|
14378
14378
|
const idx = first.index;
|
|
@@ -23883,7 +23883,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
23883
23883
|
*/
|
|
23884
23884
|
let deliverRuntimePromise$1 = null;
|
|
23885
23885
|
function loadDeliverRuntime$1() {
|
|
23886
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
23886
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-BY48Cyf6.js");
|
|
23887
23887
|
return deliverRuntimePromise$1;
|
|
23888
23888
|
}
|
|
23889
23889
|
/**
|
|
@@ -24007,7 +24007,7 @@ async function emitResetCommandHooks(params) {
|
|
|
24007
24007
|
try {
|
|
24008
24008
|
const messages = [];
|
|
24009
24009
|
if (sessionFile) {
|
|
24010
|
-
const content = await
|
|
24010
|
+
const content = await fs$1.readFile(sessionFile, "utf-8");
|
|
24011
24011
|
for (const line of content.split("\n")) {
|
|
24012
24012
|
if (!line.trim()) continue;
|
|
24013
24013
|
try {
|
|
@@ -24837,7 +24837,7 @@ async function createModelSelectionState(params) {
|
|
|
24837
24837
|
}
|
|
24838
24838
|
}
|
|
24839
24839
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
24840
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
24840
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-BiJk4pUv.js").then((n) => n.t);
|
|
24841
24841
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
24842
24842
|
const providerKey = normalizeProviderId(provider);
|
|
24843
24843
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -28433,7 +28433,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
28433
28433
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
|
|
28434
28434
|
throw new Error("jsonlPath outside allowed roots");
|
|
28435
28435
|
}
|
|
28436
|
-
const canonical = await
|
|
28436
|
+
const canonical = await fs$1.realpath(resolved).catch(() => resolved);
|
|
28437
28437
|
if (!isInboundPathAllowed({
|
|
28438
28438
|
filePath: canonical,
|
|
28439
28439
|
roots
|
|
@@ -28441,7 +28441,7 @@ async function readJsonlFromPath(jsonlPath) {
|
|
|
28441
28441
|
if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
|
|
28442
28442
|
throw new Error("jsonlPath outside allowed roots");
|
|
28443
28443
|
}
|
|
28444
|
-
return await
|
|
28444
|
+
return await fs$1.readFile(canonical, "utf8");
|
|
28445
28445
|
}
|
|
28446
28446
|
const CanvasToolSchema = Type.Object({
|
|
28447
28447
|
action: stringEnum(CANVAS_ACTIONS),
|
|
@@ -29256,27 +29256,27 @@ function resolveRestartSentinelPath(env = process.env) {
|
|
|
29256
29256
|
}
|
|
29257
29257
|
async function writeRestartSentinel(payload, env = process.env) {
|
|
29258
29258
|
const filePath = resolveRestartSentinelPath(env);
|
|
29259
|
-
await
|
|
29259
|
+
await fs$1.mkdir(path.dirname(filePath), { recursive: true });
|
|
29260
29260
|
const data = {
|
|
29261
29261
|
version: 1,
|
|
29262
29262
|
payload
|
|
29263
29263
|
};
|
|
29264
|
-
await
|
|
29264
|
+
await fs$1.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
|
|
29265
29265
|
return filePath;
|
|
29266
29266
|
}
|
|
29267
29267
|
async function readRestartSentinel(env = process.env) {
|
|
29268
29268
|
const filePath = resolveRestartSentinelPath(env);
|
|
29269
29269
|
try {
|
|
29270
|
-
const raw = await
|
|
29270
|
+
const raw = await fs$1.readFile(filePath, "utf-8");
|
|
29271
29271
|
let parsed;
|
|
29272
29272
|
try {
|
|
29273
29273
|
parsed = JSON.parse(raw);
|
|
29274
29274
|
} catch {
|
|
29275
|
-
await
|
|
29275
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
29276
29276
|
return null;
|
|
29277
29277
|
}
|
|
29278
29278
|
if (!parsed || parsed.version !== 1 || !parsed.payload) {
|
|
29279
|
-
await
|
|
29279
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
29280
29280
|
return null;
|
|
29281
29281
|
}
|
|
29282
29282
|
return parsed;
|
|
@@ -29288,7 +29288,7 @@ async function consumeRestartSentinel(env = process.env) {
|
|
|
29288
29288
|
const filePath = resolveRestartSentinelPath(env);
|
|
29289
29289
|
const parsed = await readRestartSentinel(env);
|
|
29290
29290
|
if (!parsed) return null;
|
|
29291
|
-
await
|
|
29291
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
29292
29292
|
return parsed;
|
|
29293
29293
|
}
|
|
29294
29294
|
function formatRestartSentinelMessage(payload) {
|
|
@@ -40392,18 +40392,18 @@ function appendImagePathsToPrompt(prompt, paths) {
|
|
|
40392
40392
|
return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
|
|
40393
40393
|
}
|
|
40394
40394
|
async function writeCliImages(images) {
|
|
40395
|
-
const tempDir = await
|
|
40395
|
+
const tempDir = await fs$1.mkdtemp(path.join(os.tmpdir(), "squidclaw-cli-images-"));
|
|
40396
40396
|
const paths = [];
|
|
40397
40397
|
for (let i = 0; i < images.length; i += 1) {
|
|
40398
40398
|
const image = images[i];
|
|
40399
40399
|
const ext = resolveImageExtension(image.mimeType);
|
|
40400
40400
|
const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
|
|
40401
40401
|
const buffer = Buffer.from(image.data, "base64");
|
|
40402
|
-
await
|
|
40402
|
+
await fs$1.writeFile(filePath, buffer, { mode: 384 });
|
|
40403
40403
|
paths.push(filePath);
|
|
40404
40404
|
}
|
|
40405
40405
|
const cleanup = async () => {
|
|
40406
|
-
await
|
|
40406
|
+
await fs$1.rm(tempDir, {
|
|
40407
40407
|
recursive: true,
|
|
40408
40408
|
force: true
|
|
40409
40409
|
});
|
|
@@ -44375,7 +44375,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
44375
44375
|
const log$9 = createSubsystemLogger("session-maintenance-warning");
|
|
44376
44376
|
let deliverRuntimePromise = null;
|
|
44377
44377
|
function loadDeliverRuntime() {
|
|
44378
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
44378
|
+
deliverRuntimePromise ??= import("./deliver-runtime-BY48Cyf6.js");
|
|
44379
44379
|
return deliverRuntimePromise;
|
|
44380
44380
|
}
|
|
44381
44381
|
function shouldSendWarning() {
|
|
@@ -44956,7 +44956,7 @@ async function stageSandboxMedia(params) {
|
|
|
44956
44956
|
const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(CONFIG_DIR, "media", "remote-cache", sessionKey) : null;
|
|
44957
44957
|
const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
|
|
44958
44958
|
if (!effectiveWorkspaceDir) return;
|
|
44959
|
-
await
|
|
44959
|
+
await fs$1.mkdir(effectiveWorkspaceDir, { recursive: true });
|
|
44960
44960
|
const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
|
|
44961
44961
|
cfg,
|
|
44962
44962
|
accountId: ctx.AccountId
|
|
@@ -45015,8 +45015,8 @@ async function stageLocalFileIntoRoot(params) {
|
|
|
45015
45015
|
}
|
|
45016
45016
|
async function stageRemoteFileIntoRoot(params) {
|
|
45017
45017
|
const tmpRoot = resolvePreferredSquidClawTmpDir();
|
|
45018
|
-
await
|
|
45019
|
-
const tmpDir = await
|
|
45018
|
+
await fs$1.mkdir(tmpRoot, { recursive: true });
|
|
45019
|
+
const tmpDir = await fs$1.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
|
|
45020
45020
|
const tmpPath = path.join(tmpDir, "download");
|
|
45021
45021
|
try {
|
|
45022
45022
|
await scpFile(params.remoteHost, params.remotePath, tmpPath);
|
|
@@ -45027,7 +45027,7 @@ async function stageRemoteFileIntoRoot(params) {
|
|
|
45027
45027
|
maxBytes: params.maxBytes
|
|
45028
45028
|
});
|
|
45029
45029
|
} finally {
|
|
45030
|
-
await
|
|
45030
|
+
await fs$1.rm(tmpDir, {
|
|
45031
45031
|
recursive: true,
|
|
45032
45032
|
force: true
|
|
45033
45033
|
}).catch(() => {});
|
|
@@ -49335,7 +49335,7 @@ const VISION_PROVIDERS = [
|
|
|
49335
49335
|
];
|
|
49336
49336
|
let imageRuntimePromise = null;
|
|
49337
49337
|
function loadImageRuntime() {
|
|
49338
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
49338
|
+
imageRuntimePromise ??= import("./image-runtime-C_sKgCPT.js");
|
|
49339
49339
|
return imageRuntimePromise;
|
|
49340
49340
|
}
|
|
49341
49341
|
/**
|
|
@@ -49401,7 +49401,7 @@ async function describeStickerImage(params) {
|
|
|
49401
49401
|
const { provider, model } = resolved;
|
|
49402
49402
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
49403
49403
|
try {
|
|
49404
|
-
const buffer = await
|
|
49404
|
+
const buffer = await fs$1.readFile(imagePath);
|
|
49405
49405
|
const { describeImageWithModel } = await loadImageRuntime();
|
|
49406
49406
|
return (await describeImageWithModel({
|
|
49407
49407
|
buffer,
|
|
@@ -51231,7 +51231,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
51231
51231
|
hasTypedText
|
|
51232
51232
|
};
|
|
51233
51233
|
try {
|
|
51234
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
51234
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BdE85axf.js");
|
|
51235
51235
|
if (params.abortSignal?.aborted) return {
|
|
51236
51236
|
hasAudioAttachment,
|
|
51237
51237
|
hasTypedText
|
|
@@ -56187,27 +56187,27 @@ let slackSenderRuntimePromise = null;
|
|
|
56187
56187
|
let signalSenderRuntimePromise = null;
|
|
56188
56188
|
let imessageSenderRuntimePromise = null;
|
|
56189
56189
|
function loadWhatsAppSenderRuntime() {
|
|
56190
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
56190
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-0tUP9kuA.js");
|
|
56191
56191
|
return whatsappSenderRuntimePromise;
|
|
56192
56192
|
}
|
|
56193
56193
|
function loadTelegramSenderRuntime() {
|
|
56194
|
-
telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-
|
|
56194
|
+
telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-aNU8_XlK.js");
|
|
56195
56195
|
return telegramSenderRuntimePromise;
|
|
56196
56196
|
}
|
|
56197
56197
|
function loadDiscordSenderRuntime() {
|
|
56198
|
-
discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-
|
|
56198
|
+
discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-CiS_YGKd.js");
|
|
56199
56199
|
return discordSenderRuntimePromise;
|
|
56200
56200
|
}
|
|
56201
56201
|
function loadSlackSenderRuntime() {
|
|
56202
|
-
slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-
|
|
56202
|
+
slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-Dqb-9qwc.js");
|
|
56203
56203
|
return slackSenderRuntimePromise;
|
|
56204
56204
|
}
|
|
56205
56205
|
function loadSignalSenderRuntime() {
|
|
56206
|
-
signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-
|
|
56206
|
+
signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-C9s3Y1Zu.js");
|
|
56207
56207
|
return signalSenderRuntimePromise;
|
|
56208
56208
|
}
|
|
56209
56209
|
function loadIMessageSenderRuntime() {
|
|
56210
|
-
imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-
|
|
56210
|
+
imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-h5CDiZZu.js");
|
|
56211
56211
|
return imessageSenderRuntimePromise;
|
|
56212
56212
|
}
|
|
56213
56213
|
function createDefaultDeps() {
|
|
@@ -57380,10 +57380,10 @@ function estimateDurationSeconds(pcm) {
|
|
|
57380
57380
|
return pcm.length / (bytesPerSample * SAMPLE_RATE);
|
|
57381
57381
|
}
|
|
57382
57382
|
async function writeWavFile(pcm) {
|
|
57383
|
-
const tempDir = await
|
|
57383
|
+
const tempDir = await fs$1.mkdtemp(path.join(resolvePreferredSquidClawTmpDir(), "discord-voice-"));
|
|
57384
57384
|
const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
|
|
57385
57385
|
const wav = buildWavBuffer(pcm);
|
|
57386
|
-
await
|
|
57386
|
+
await fs$1.writeFile(filePath, wav);
|
|
57387
57387
|
scheduleTempCleanup(tempDir);
|
|
57388
57388
|
return {
|
|
57389
57389
|
path: filePath,
|
|
@@ -57392,7 +57392,7 @@ async function writeWavFile(pcm) {
|
|
|
57392
57392
|
}
|
|
57393
57393
|
function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
|
|
57394
57394
|
setTimeout(() => {
|
|
57395
|
-
|
|
57395
|
+
fs$1.rm(tempDir, {
|
|
57396
57396
|
recursive: true,
|
|
57397
57397
|
force: true
|
|
57398
57398
|
}).catch((err) => {
|
|
@@ -62035,7 +62035,7 @@ function normalizeAllowList$1(list) {
|
|
|
62035
62035
|
async function detectRemoteHostFromCliPath(cliPath) {
|
|
62036
62036
|
try {
|
|
62037
62037
|
const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
|
|
62038
|
-
const content = await
|
|
62038
|
+
const content = await fs$1.readFile(expanded, "utf8");
|
|
62039
62039
|
const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
|
|
62040
62040
|
if (userHostMatch) return userHostMatch[1];
|
|
62041
62041
|
return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
|
|
@@ -69023,15 +69023,15 @@ let slashCommandsRuntimePromise = null;
|
|
|
69023
69023
|
let slashDispatchRuntimePromise = null;
|
|
69024
69024
|
let slashSkillCommandsRuntimePromise = null;
|
|
69025
69025
|
function loadSlashCommandsRuntime() {
|
|
69026
|
-
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-
|
|
69026
|
+
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-CF70sEb6.js");
|
|
69027
69027
|
return slashCommandsRuntimePromise;
|
|
69028
69028
|
}
|
|
69029
69029
|
function loadSlashDispatchRuntime() {
|
|
69030
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
69030
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-BpDcu-GU.js");
|
|
69031
69031
|
return slashDispatchRuntimePromise;
|
|
69032
69032
|
}
|
|
69033
69033
|
function loadSlashSkillCommandsRuntime() {
|
|
69034
|
-
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-
|
|
69034
|
+
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-6s4Ap-WA.js");
|
|
69035
69035
|
return slashSkillCommandsRuntimePromise;
|
|
69036
69036
|
}
|
|
69037
69037
|
const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
|
|
@@ -72396,7 +72396,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
72396
72396
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
72397
72397
|
let preflightTranscript;
|
|
72398
72398
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
72399
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
72399
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BdE85axf.js");
|
|
72400
72400
|
preflightTranscript = await transcribeFirstAudio({
|
|
72401
72401
|
ctx: {
|
|
72402
72402
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -73893,7 +73893,7 @@ function resolveCommandHashPath(accountId, botIdentity) {
|
|
|
73893
73893
|
}
|
|
73894
73894
|
async function readCachedCommandHash(accountId, botIdentity) {
|
|
73895
73895
|
try {
|
|
73896
|
-
return (await
|
|
73896
|
+
return (await fs$1.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
|
|
73897
73897
|
} catch {
|
|
73898
73898
|
return null;
|
|
73899
73899
|
}
|
|
@@ -73901,8 +73901,8 @@ async function readCachedCommandHash(accountId, botIdentity) {
|
|
|
73901
73901
|
async function writeCachedCommandHash(accountId, botIdentity, hash) {
|
|
73902
73902
|
const filePath = resolveCommandHashPath(accountId, botIdentity);
|
|
73903
73903
|
try {
|
|
73904
|
-
await
|
|
73905
|
-
await
|
|
73904
|
+
await fs$1.mkdir(path.dirname(filePath), { recursive: true });
|
|
73905
|
+
await fs$1.writeFile(filePath, hash, "utf-8");
|
|
73906
73906
|
} catch {}
|
|
73907
73907
|
}
|
|
73908
73908
|
function syncTelegramMenuCommands(params) {
|
|
@@ -74746,7 +74746,7 @@ function safeParseState(raw) {
|
|
|
74746
74746
|
async function readTelegramUpdateOffset(params) {
|
|
74747
74747
|
const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
|
|
74748
74748
|
try {
|
|
74749
|
-
const parsed = safeParseState(await
|
|
74749
|
+
const parsed = safeParseState(await fs$1.readFile(filePath, "utf-8"));
|
|
74750
74750
|
const expectedBotId = extractBotIdFromToken(params.botToken);
|
|
74751
74751
|
if (expectedBotId && parsed?.botId && parsed.botId !== expectedBotId) return null;
|
|
74752
74752
|
if (expectedBotId && parsed?.botId === null) return null;
|
|
@@ -74770,7 +74770,7 @@ async function writeTelegramUpdateOffset(params) {
|
|
|
74770
74770
|
async function deleteTelegramUpdateOffset(params) {
|
|
74771
74771
|
const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
|
|
74772
74772
|
try {
|
|
74773
|
-
await
|
|
74773
|
+
await fs$1.unlink(filePath);
|
|
74774
74774
|
} catch (err) {
|
|
74775
74775
|
if (err.code === "ENOENT") return;
|
|
74776
74776
|
throw err;
|
|
@@ -75244,7 +75244,7 @@ function createWhatsAppLoginTool() {
|
|
|
75244
75244
|
force: Type.Optional(Type.Boolean())
|
|
75245
75245
|
}),
|
|
75246
75246
|
execute: async (_toolCallId, args) => {
|
|
75247
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
75247
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CL3cPNm6.js");
|
|
75248
75248
|
if ((args?.action ?? "start") === "wait") {
|
|
75249
75249
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
75250
75250
|
return {
|
|
@@ -75319,23 +75319,23 @@ let webOutboundPromise = null;
|
|
|
75319
75319
|
let webLoginPromise = null;
|
|
75320
75320
|
let whatsappActionsPromise = null;
|
|
75321
75321
|
function loadWebOutbound() {
|
|
75322
|
-
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-
|
|
75322
|
+
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-bw4l8Cm5.js");
|
|
75323
75323
|
return webOutboundPromise;
|
|
75324
75324
|
}
|
|
75325
75325
|
function loadWebLogin() {
|
|
75326
|
-
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-
|
|
75326
|
+
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-Cf3JhAPA.js");
|
|
75327
75327
|
return webLoginPromise;
|
|
75328
75328
|
}
|
|
75329
75329
|
function loadWebLoginQr() {
|
|
75330
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
75330
|
+
webLoginQrPromise ??= import("./login-qr-CL3cPNm6.js");
|
|
75331
75331
|
return webLoginQrPromise;
|
|
75332
75332
|
}
|
|
75333
75333
|
function loadWebChannel() {
|
|
75334
|
-
webChannelPromise ??= import("./web-
|
|
75334
|
+
webChannelPromise ??= import("./web-DfVBXj7E.js");
|
|
75335
75335
|
return webChannelPromise;
|
|
75336
75336
|
}
|
|
75337
75337
|
function loadWhatsAppActions() {
|
|
75338
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
75338
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-BYzAF3jo.js");
|
|
75339
75339
|
return whatsappActionsPromise;
|
|
75340
75340
|
}
|
|
75341
75341
|
function createRuntimeWhatsApp() {
|
|
@@ -76647,7 +76647,7 @@ function resolvePluginTools(params) {
|
|
|
76647
76647
|
//#endregion
|
|
76648
76648
|
//#region src/agents/apply-patch-update.ts
|
|
76649
76649
|
async function defaultReadFile(filePath) {
|
|
76650
|
-
return
|
|
76650
|
+
return fs$1.readFile(filePath, "utf8");
|
|
76651
76651
|
}
|
|
76652
76652
|
async function applyUpdateHunk(filePath, chunks, options) {
|
|
76653
76653
|
const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
|
|
@@ -76968,7 +76968,7 @@ function resolvePatchFileOps(options) {
|
|
|
76968
76968
|
const workspaceOnly = options.workspaceOnly !== false;
|
|
76969
76969
|
return {
|
|
76970
76970
|
readFile: async (filePath) => {
|
|
76971
|
-
if (!workspaceOnly) return await
|
|
76971
|
+
if (!workspaceOnly) return await fs$1.readFile(filePath, "utf8");
|
|
76972
76972
|
const opened = await openBoundaryFile({
|
|
76973
76973
|
absolutePath: filePath,
|
|
76974
76974
|
rootPath: options.cwd,
|
|
@@ -76983,7 +76983,7 @@ function resolvePatchFileOps(options) {
|
|
|
76983
76983
|
},
|
|
76984
76984
|
writeFile: async (filePath, content) => {
|
|
76985
76985
|
if (!workspaceOnly) {
|
|
76986
|
-
await
|
|
76986
|
+
await fs$1.writeFile(filePath, content, "utf8");
|
|
76987
76987
|
return;
|
|
76988
76988
|
}
|
|
76989
76989
|
const relative = toRelativeSandboxPath(options.cwd, filePath);
|
|
@@ -76994,8 +76994,8 @@ function resolvePatchFileOps(options) {
|
|
|
76994
76994
|
encoding: "utf8"
|
|
76995
76995
|
});
|
|
76996
76996
|
},
|
|
76997
|
-
remove: (filePath) =>
|
|
76998
|
-
mkdirp: (dir) =>
|
|
76997
|
+
remove: (filePath) => fs$1.rm(filePath),
|
|
76998
|
+
mkdirp: (dir) => fs$1.mkdir(dir, { recursive: true }).then(() => {})
|
|
76999
76999
|
};
|
|
77000
77000
|
}
|
|
77001
77001
|
async function ensureDir(filePath, ops) {
|
|
@@ -77257,7 +77257,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
|
|
|
77257
77257
|
const MAX_LOOP_WARNING_KEYS = 256;
|
|
77258
77258
|
let beforeToolCallRuntimePromise = null;
|
|
77259
77259
|
function loadBeforeToolCallRuntime() {
|
|
77260
|
-
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-
|
|
77260
|
+
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-DjzR6iNJ.js");
|
|
77261
77261
|
return beforeToolCallRuntimePromise;
|
|
77262
77262
|
}
|
|
77263
77263
|
function buildAdjustedParamsKey(params) {
|
|
@@ -77495,7 +77495,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
|
|
|
77495
77495
|
if (!pathParam || !newText) throw err;
|
|
77496
77496
|
try {
|
|
77497
77497
|
const absolutePath = resolveHostEditPath(root, pathParam);
|
|
77498
|
-
const content = await
|
|
77498
|
+
const content = await fs$1.readFile(absolutePath, "utf-8");
|
|
77499
77499
|
const hasNew = content.includes(newText);
|
|
77500
77500
|
const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
|
|
77501
77501
|
if (hasNew && !stillHasOld) return {
|
|
@@ -77977,14 +77977,14 @@ function createSandboxEditOperations(params) {
|
|
|
77977
77977
|
}
|
|
77978
77978
|
async function writeHostFile(absolutePath, content) {
|
|
77979
77979
|
const resolved = path.resolve(absolutePath);
|
|
77980
|
-
await
|
|
77981
|
-
await
|
|
77980
|
+
await fs$1.mkdir(path.dirname(resolved), { recursive: true });
|
|
77981
|
+
await fs$1.writeFile(resolved, content, "utf-8");
|
|
77982
77982
|
}
|
|
77983
77983
|
function createHostWriteOperations(root, options) {
|
|
77984
77984
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
77985
77985
|
mkdir: async (dir) => {
|
|
77986
77986
|
const resolved = path.resolve(dir);
|
|
77987
|
-
await
|
|
77987
|
+
await fs$1.mkdir(resolved, { recursive: true });
|
|
77988
77988
|
},
|
|
77989
77989
|
writeFile: writeHostFile
|
|
77990
77990
|
};
|
|
@@ -77997,7 +77997,7 @@ function createHostWriteOperations(root, options) {
|
|
|
77997
77997
|
cwd: root,
|
|
77998
77998
|
root
|
|
77999
77999
|
});
|
|
78000
|
-
await
|
|
78000
|
+
await fs$1.mkdir(resolved, { recursive: true });
|
|
78001
78001
|
},
|
|
78002
78002
|
writeFile: async (absolutePath, content) => {
|
|
78003
78003
|
await writeFileWithinRoot({
|
|
@@ -78013,12 +78013,12 @@ function createHostEditOperations(root, options) {
|
|
|
78013
78013
|
if (!(options?.workspaceOnly ?? false)) return {
|
|
78014
78014
|
readFile: async (absolutePath) => {
|
|
78015
78015
|
const resolved = path.resolve(absolutePath);
|
|
78016
|
-
return await
|
|
78016
|
+
return await fs$1.readFile(resolved);
|
|
78017
78017
|
},
|
|
78018
78018
|
writeFile: writeHostFile,
|
|
78019
78019
|
access: async (absolutePath) => {
|
|
78020
78020
|
const resolved = path.resolve(absolutePath);
|
|
78021
|
-
await
|
|
78021
|
+
await fs$1.access(resolved);
|
|
78022
78022
|
}
|
|
78023
78023
|
};
|
|
78024
78024
|
return {
|
|
@@ -78856,7 +78856,7 @@ async function repairSessionFileIfNeeded(params) {
|
|
|
78856
78856
|
};
|
|
78857
78857
|
let content;
|
|
78858
78858
|
try {
|
|
78859
|
-
content = await
|
|
78859
|
+
content = await fs$1.readFile(sessionFile, "utf-8");
|
|
78860
78860
|
} catch (err) {
|
|
78861
78861
|
if (err?.code === "ENOENT") return {
|
|
78862
78862
|
repaired: false,
|
|
@@ -78904,15 +78904,15 @@ async function repairSessionFileIfNeeded(params) {
|
|
|
78904
78904
|
const backupPath = `${sessionFile}.bak-${process.pid}-${Date.now()}`;
|
|
78905
78905
|
const tmpPath = `${sessionFile}.repair-${process.pid}-${Date.now()}.tmp`;
|
|
78906
78906
|
try {
|
|
78907
|
-
const stat = await
|
|
78908
|
-
await
|
|
78909
|
-
if (stat) await
|
|
78910
|
-
await
|
|
78911
|
-
if (stat) await
|
|
78912
|
-
await
|
|
78907
|
+
const stat = await fs$1.stat(sessionFile).catch(() => null);
|
|
78908
|
+
await fs$1.writeFile(backupPath, content, "utf-8");
|
|
78909
|
+
if (stat) await fs$1.chmod(backupPath, stat.mode);
|
|
78910
|
+
await fs$1.writeFile(tmpPath, cleaned, "utf-8");
|
|
78911
|
+
if (stat) await fs$1.chmod(tmpPath, stat.mode);
|
|
78912
|
+
await fs$1.rename(tmpPath, sessionFile);
|
|
78913
78913
|
} catch (err) {
|
|
78914
78914
|
try {
|
|
78915
|
-
await
|
|
78915
|
+
await fs$1.unlink(tmpPath);
|
|
78916
78916
|
} catch (cleanupErr) {
|
|
78917
78917
|
params.warn?.(`session file repair cleanup failed: ${cleanupErr instanceof Error ? cleanupErr.message : "unknown error"} (${path.basename(tmpPath)})`);
|
|
78918
78918
|
}
|
|
@@ -80684,7 +80684,7 @@ async function prewarmSessionFile(sessionFile) {
|
|
|
80684
80684
|
if (!isSessionManagerCacheEnabled()) return;
|
|
80685
80685
|
if (isSessionManagerCached(sessionFile)) return;
|
|
80686
80686
|
try {
|
|
80687
|
-
const handle = await
|
|
80687
|
+
const handle = await fs$1.open(sessionFile, "r");
|
|
80688
80688
|
try {
|
|
80689
80689
|
const buffer = Buffer$1.alloc(4096);
|
|
80690
80690
|
await handle.read(buffer, 0, buffer.length, 0);
|
|
@@ -81051,7 +81051,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
81051
81051
|
} catch (err) {
|
|
81052
81052
|
return fail(describeUnknownError(err));
|
|
81053
81053
|
}
|
|
81054
|
-
await
|
|
81054
|
+
await fs$1.mkdir(resolvedWorkspace, { recursive: true });
|
|
81055
81055
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
81056
81056
|
const sandbox = await resolveSandboxContext({
|
|
81057
81057
|
config: params.config,
|
|
@@ -81059,7 +81059,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
81059
81059
|
workspaceDir: resolvedWorkspace
|
|
81060
81060
|
});
|
|
81061
81061
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
81062
|
-
await
|
|
81062
|
+
await fs$1.mkdir(effectiveWorkspace, { recursive: true });
|
|
81063
81063
|
await ensureSessionHeader({
|
|
81064
81064
|
sessionFile: params.sessionFile,
|
|
81065
81065
|
sessionId: params.sessionId,
|
|
@@ -81944,12 +81944,12 @@ function getQueuedFileWriter(writers, filePath) {
|
|
|
81944
81944
|
const existing = writers.get(filePath);
|
|
81945
81945
|
if (existing) return existing;
|
|
81946
81946
|
const dir = path.dirname(filePath);
|
|
81947
|
-
const ready =
|
|
81947
|
+
const ready = fs$1.mkdir(dir, { recursive: true }).catch(() => void 0);
|
|
81948
81948
|
let queue = Promise.resolve();
|
|
81949
81949
|
const writer = {
|
|
81950
81950
|
filePath,
|
|
81951
81951
|
write: (line) => {
|
|
81952
|
-
queue = queue.then(() => ready).then(() =>
|
|
81952
|
+
queue = queue.then(() => ready).then(() => fs$1.appendFile(filePath, line, "utf8")).catch(() => void 0);
|
|
81953
81953
|
}
|
|
81954
81954
|
};
|
|
81955
81955
|
writers.set(filePath, writer);
|
|
@@ -84867,7 +84867,7 @@ async function prepareSessionManagerForRun(params) {
|
|
|
84867
84867
|
return;
|
|
84868
84868
|
}
|
|
84869
84869
|
if (params.hadSessionFile && header && !hasAssistant) {
|
|
84870
|
-
await
|
|
84870
|
+
await fs$1.writeFile(params.sessionFile, "", "utf-8");
|
|
84871
84871
|
sm.fileEntries = [header];
|
|
84872
84872
|
sm.byId?.clear?.();
|
|
84873
84873
|
sm.labelsById?.clear?.();
|
|
@@ -85585,7 +85585,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
85585
85585
|
const prevCwd = process.cwd();
|
|
85586
85586
|
const runAbortController = new AbortController();
|
|
85587
85587
|
log$3.debug(`embedded run start: runId=${params.runId} sessionId=${params.sessionId} provider=${params.provider} model=${params.modelId} thinking=${params.thinkLevel} messageChannel=${params.messageChannel ?? params.messageProvider ?? "unknown"}`);
|
|
85588
|
-
await
|
|
85588
|
+
await fs$1.mkdir(resolvedWorkspace, { recursive: true });
|
|
85589
85589
|
const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
|
|
85590
85590
|
const sandbox = await resolveSandboxContext({
|
|
85591
85591
|
config: params.config,
|
|
@@ -85593,7 +85593,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
85593
85593
|
workspaceDir: resolvedWorkspace
|
|
85594
85594
|
});
|
|
85595
85595
|
const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
|
|
85596
|
-
await
|
|
85596
|
+
await fs$1.mkdir(effectiveWorkspace, { recursive: true });
|
|
85597
85597
|
let restoreSkillEnv;
|
|
85598
85598
|
process.chdir(effectiveWorkspace);
|
|
85599
85599
|
try {
|
|
@@ -85863,7 +85863,7 @@ async function runEmbeddedAttempt(params) {
|
|
|
85863
85863
|
sessionFile: params.sessionFile,
|
|
85864
85864
|
warn: (message) => log$3.warn(message)
|
|
85865
85865
|
});
|
|
85866
|
-
const hadSessionFile = await
|
|
85866
|
+
const hadSessionFile = await fs$1.stat(params.sessionFile).then(() => true).catch(() => false);
|
|
85867
85867
|
const transcriptPolicy = resolveTranscriptPolicy({
|
|
85868
85868
|
modelApi: params.model?.api,
|
|
85869
85869
|
provider: params.provider,
|
|
@@ -86992,7 +86992,7 @@ async function runEmbeddedPiAgent(params) {
|
|
|
86992
86992
|
const copilotAuthRetry = authRetryPending;
|
|
86993
86993
|
authRetryPending = false;
|
|
86994
86994
|
attemptedThinking.add(thinkLevel);
|
|
86995
|
-
await
|
|
86995
|
+
await fs$1.mkdir(resolvedWorkspace, { recursive: true });
|
|
86996
86996
|
const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
|
|
86997
86997
|
const attempt = await runEmbeddedAttempt({
|
|
86998
86998
|
sessionId: params.sessionId,
|
|
@@ -87798,7 +87798,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
87798
87798
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
87799
87799
|
let subagentRegistryRuntimePromise = null;
|
|
87800
87800
|
function loadSubagentRegistryRuntime() {
|
|
87801
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
87801
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-DNx1w9Cr.js");
|
|
87802
87802
|
return subagentRegistryRuntimePromise;
|
|
87803
87803
|
}
|
|
87804
87804
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|