squidclaw 3.0.4 → 3.0.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-KzgPbLHP.js → accounts-B1RxFghM.js} +1 -1
- package/dist/{accounts-BK8I0Svb.js → accounts-BH9Qo1sQ.js} +7 -7
- package/dist/{accounts-DeqNOvBo.js → accounts-Cuwg9Tan.js} +1 -1
- package/dist/{acp-cli-BWSZnzfY.js → acp-cli-CLRuoXWa.js} +8 -8
- package/dist/{agent-scope-Cq4vDGrK.js → agent-scope-nEVgVklg.js} +17 -17
- package/dist/{agents-JnnOlm2G.js → agents-rUKtNaUK.js} +14 -14
- package/dist/{agents.config-BeGeS2jv.js → agents.config-DFuCqhIm.js} +1 -1
- package/dist/{agents.config-DHJBQ7uA.js → agents.config-DsnQkHm9.js} +2 -2
- package/dist/{api-key-rotation-Ck41sTpR.js → api-key-rotation-CsMKifj6.js} +1 -1
- package/dist/{audio-preflight-C9GE3WMm.js → audio-preflight-CzOW6WUm.js} +34 -34
- package/dist/{audio-transcription-runner-Xzc1NTsq.js → audio-transcription-runner-C5qJ-fgR.js} +23 -23
- package/dist/{audit-CZB7BwiK.js → audit-DqYxJJda.js} +29 -29
- package/dist/{auth-BN5Ax7XQ.js → auth-C5nn2VmD.js} +1 -1
- package/dist/{auth-choice-DQbCl-4F.js → auth-choice-8xkQwsCU.js} +3 -3
- package/dist/{auth-choice-CqmB4z69.js → auth-choice-B4oZiQl3.js} +13 -13
- package/dist/{auth-choice-xwYK6txn.js → auth-choice-B7f4gR8i.js} +11 -11
- package/dist/{auth-choice-GeqOp4st.js → auth-choice-BP67-Scf.js} +2 -2
- package/dist/{auth-choice.apply-helpers-CAYfHKSv.js → auth-choice.apply-helpers-gvgwMfOS.js} +1 -1
- package/dist/{auth-profiles-CvmKVnsR.js → auth-profiles-CwmInMDd.js} +16 -16
- package/dist/{auth-token-D8eHvwMb.js → auth-token-DA4-9AiC.js} +1 -1
- package/dist/{banner-BxibaqUz.js → banner-X4Hg28Jc.js} +2 -2
- package/dist/{bonjour-discovery-D3MmCuyu.js → bonjour-discovery-CirYvFAM.js} +1 -1
- package/dist/{browser-cli-DiQ1Yrni.js → browser-cli-mblKkWN0.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/{call-v5CyFgM7.js → call-BSt3WRnY.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-CQ6rCiGI.js → channel-account-context-DJ3rHgVO.js} +5 -5
- package/dist/{channel-activity-2DTItbwL.js → channel-activity-Bsu4_sQM.js} +1 -1
- package/dist/{channel-options-BKsCYdHu.js → channel-options-BNOKnBE0.js} +3 -3
- package/dist/{channel-options-FdCN4cFo.js → channel-options-BsIX_w4i.js} +1 -1
- package/dist/{channel-selection-BqwS1Rlq.js → channel-selection-CFWQq1nS.js} +1 -1
- package/dist/{channel-web-BkYtM8H5.js → channel-web-BTKQul7k.js} +1 -1
- package/dist/{channel-web-BFUPrpIe.js → channel-web-BaF7Svv2.js} +17 -17
- package/dist/{channels-cli-CZzGaGvG.js → channels-cli-C1WKiZuu.js} +93 -93
- package/dist/{channels-cli-BxhfVD-R.js → channels-cli-DYzFGZh_.js} +7 -7
- package/dist/{channels-status-issues-Dz1_R7Ah.js → channels-status-issues-Erzzhl2e.js} +1 -1
- package/dist/{chrome-CBaHshBY.js → chrome-DybExwN8.js} +4 -4
- package/dist/{clawbot-cli-DbHuxiC3.js → clawbot-cli-AkJg44bt.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-GSev2Q95.js → cli-CfB7Ynj1.js} +2 -2
- package/dist/{cli-bXiYaLre.js → cli-DQxrr5jc.js} +73 -73
- package/dist/{client-cfjtRboM.js → client-XYT0IAgJ.js} +2 -2
- package/dist/{command-registry-CxiSVXru.js → command-registry-BpxHWT9Y.js} +11 -11
- package/dist/{command-secret-targets-DjorlW8u.js → command-secret-targets-DN9JuQaB.js} +4 -4
- package/dist/{commands-CnX9I_l4.js → commands-DDHiW-As.js} +1 -1
- package/dist/{commands-registry-BI_sjTho.js → commands-registry-C4UO-mlJ.js} +3 -3
- package/dist/{completion-cli-slzdOlRV.js → completion-cli-CuLOFt3t.js} +1 -1
- package/dist/{completion-cli-s0fxD0OE.js → completion-cli-PRzaDsjO.js} +13 -13
- package/dist/{config-cli-C0mk9eRl.js → config-cli-C0rMJEvV.js} +1 -1
- package/dist/{config-cli-DhHEA_Nc.js → config-cli-D6JN7i8p.js} +7 -7
- package/dist/{config-guard-BQAx_rXT.js → config-guard-CowcGBh0.js} +3 -3
- package/dist/{config-validation-DBB2ib3F.js → config-validation-BEyUXW7d.js} +3 -3
- package/dist/{configure-FRd92XZ8.js → configure-BZg51IRW.js} +17 -17
- package/dist/{configure-CeLdVVyh.js → configure-J_r5yf-x.js} +8 -8
- package/dist/{control-ui-assets-BYEy341x.js → control-ui-assets-d6VtDSeo.js} +1 -1
- package/dist/{cron-cli-kx4mDvyb.js → cron-cli-Dxj_PFB9.js} +11 -11
- package/dist/{daemon-cli-CNi-QjEX.js → daemon-cli-B7j3r4qt.js} +1 -1
- package/dist/{daemon-cli-DN2TnjHQ.js → daemon-cli-Ca-rxRI7.js} +15 -15
- package/dist/{daemon-install-helpers-CJtiW2RE.js → daemon-install-helpers-CZDVO_MU.js} +11 -11
- package/dist/{daemon-install-MOrssUh2.js → daemon-install-v-mqoHye.js} +4 -4
- package/dist/{deliver-BkXhWlhP.js → deliver-f-YZpnF5.js} +7 -7
- package/dist/deliver-runtime-COMirbwL.js +61 -0
- package/dist/deps-send-discord.runtime-DolibeT1.js +36 -0
- package/dist/deps-send-imessage.runtime-C-ZmN2L6.js +35 -0
- package/dist/deps-send-signal.runtime-DnMP5CEo.js +34 -0
- package/dist/deps-send-slack.runtime-Cieqzbk_.js +32 -0
- package/dist/{deps-send-telegram.runtime-DFzAh4tt.js → deps-send-telegram.runtime-CU9Pew2o.js} +16 -16
- package/dist/{deps-send-whatsapp.runtime-BcxCalPD.js → deps-send-whatsapp.runtime-Bqxr0eK9.js} +4 -4
- package/dist/deps-send-whatsapp.runtime-D5qwjBlI.js +119 -0
- package/dist/{devices-cli-DsLz4bXV.js → devices-cli-DIg7WYwm.js} +8 -8
- package/dist/{diagnostic-B2HYyQ8L.js → diagnostic-Io9OfTj2.js} +1 -1
- package/dist/{diagnostics-B7TvAs1Y.js → diagnostics-DQI0oT2F.js} +5 -5
- package/dist/{directory-cli-D8-5sEMN.js → directory-cli-Dy3Q9XMb.js} +7 -7
- package/dist/{dns-cli-CLhU3R0X.js → dns-cli-CLPgP1NM.js} +5 -5
- package/dist/{dock-DJJAj46v.js → dock-W3cGg46W.js} +4 -4
- package/dist/{docs-cli--gGxz79Z.js → docs-cli-BpZtes_j.js} +4 -4
- package/dist/{doctor-completion-mnJOkoQ_.js → doctor-completion-Ce6ELjT5.js} +2 -2
- package/dist/{doctor-completion-I-WDZUs1.js → doctor-completion-CtzmXwE3.js} +1 -1
- package/dist/{doctor-config-flow-DXsHAt2t.js → doctor-config-flow-Dc1HKudQ.js} +15 -15
- package/dist/{enable-Dp5n5D46.js → enable-Do8jn9gg.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-C9ZJK4Gd.js → exec-approvals-allowlist-DOxIMtXP.js} +1 -1
- package/dist/{exec-approvals-cli-DJgyhlQI.js → exec-approvals-cli-DGpM86zY.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-CSWN6lxg.js → exec-safe-bin-runtime-policy-DhLi-jyO.js} +2 -2
- package/dist/{fetch-BA3uuEpf.js → fetch-BClIo0ZD.js} +3 -3
- package/dist/{fetch-guard-C34T9Lg9.js → fetch-guard-C-CRoLDY.js} +1 -1
- package/dist/{fs-safe-DPYj7h8A.js → fs-safe-BPQ-per2.js} +24 -24
- package/dist/{gateway-cli-BHfkbI0u.js → gateway-cli-BJsxsz40.js} +10 -10
- package/dist/{gateway-cli-B5rTNvd7.js → gateway-cli-BZDvkqJu.js} +153 -153
- package/dist/{gateway-rpc-CdMQ58t-.js → gateway-rpc-F18gNFkP.js} +1 -1
- package/dist/{health-dZqyhpdR.js → health-3pSJD-u-.js} +11 -11
- package/dist/{health-CJgEuWuG.js → health-CrEBegrW.js} +1 -1
- package/dist/{hooks-cli-C0wWJOBW.js → hooks-cli-BPUmvGPb.js} +3 -3
- package/dist/{hooks-cli-BD4Ww1dF.js → hooks-cli-CU94KjOw.js} +81 -81
- package/dist/{hooks-status-DMFBAUq8.js → hooks-status-BlgSVDvN.js} +1 -1
- package/dist/{image-ops-B2uuLIGD.js → image-ops-LFsSCTyI.js} +10 -10
- package/dist/{image-DMU5SnGB.js → image-pyJhsETJ.js} +5 -5
- package/dist/image-runtime-OEuSJixg.js +55 -0
- package/dist/index.js +7 -7
- package/dist/{inspect-Bwnw_UjM.js → inspect-CecVmtMp.js} +4 -4
- package/dist/{install-safe-path-3muwy3fu.js → install-safe-path-DqI19VEv.js} +25 -25
- package/dist/{installs-BiQDtPF0.js → installs-P-pYAJm1.js} +9 -9
- package/dist/{ipv4-Cl0LHiMy.js → ipv4-CB0e8hdy.js} +1 -1
- package/dist/{ir-tkiWcHy6.js → ir-CpO3-MQs.js} +8 -8
- package/dist/{issue-format-CVVBG2XC.js → issue-format-BP_8Uzq5.js} +1 -1
- package/dist/{json-files-CuJjdF_0.js → json-files-rR19q30D.js} +8 -8
- package/dist/{lifecycle-core-C6bIL3hq.js → lifecycle-core-Bj47aKSO.js} +5 -5
- package/dist/{login-BEjm9EOB.js → login-DYouthtN.js} +3 -3
- package/dist/{login-qr-CbXbfbKZ.js → login-qr-CrLstrfx.js} +6 -6
- package/dist/{logs-cli-DLymQphh.js → logs-cli-BWxd4Vlu.js} +9 -9
- package/dist/{manager-Co4qUpQq.js → manager-GxUrWGzI.js} +14 -14
- package/dist/{manager-runtime-C4uErAXw.js → manager-runtime-B6dQZ95S.js} +9 -9
- package/dist/{manifest-registry-7kwtbCH-.js → manifest-registry-1ACGW3OR.js} +1 -1
- package/dist/{memory-cli-BpGa2Md3.js → memory-cli-nLUA3TJJ.js} +12 -12
- package/dist/{model-B3UWkUkt.js → model-CFAguW1X.js} +2 -2
- package/dist/{model-catalog-D3BDTSon.js → model-catalog-Cc2Y6aO9.js} +3 -3
- package/dist/{model-picker-fn9-5czQ.js → model-picker-42DaAd5Q.js} +4 -4
- package/dist/{model-picker-9eBMXztF.js → model-picker-XxRh755s.js} +8 -8
- package/dist/{models-BXT0s4KJ.js → models-B554bYQk.js} +17 -17
- package/dist/{models-cli-BwPFxWK2.js → models-cli-6F6W0KTG.js} +78 -78
- package/dist/{models-cli-BtLc9uPC.js → models-cli-BMZpp0w-.js} +3 -3
- package/dist/{models-config-Cfv2TQXX.js → models-config-D96CeX01.js} +6 -6
- package/dist/{net-nlF6thgH.js → net-CmP6gw-e.js} +2 -2
- package/dist/{node-cli-BNY4sO1l.js → node-cli-CF7gqWi6.js} +33 -33
- package/dist/{node-command-policy-CWFxjK-r.js → node-command-policy-D-TrkI3I.js} +1 -1
- package/dist/{node-service-DJ2PdPiI.js → node-service-CKaruDMJ.js} +1 -1
- package/dist/{nodes-cli-B2U9aqFb.js → nodes-cli-C7C1I10u.js} +16 -16
- package/dist/{nodes-screen-IsdPNZvL.js → nodes-screen-Bv_hP-W3.js} +7 -7
- package/dist/{npm-pack-install-B887us7R.js → npm-pack-install-Dn3FiWXB.js} +18 -18
- package/dist/{npm-resolution-DWpNPsBF.js → npm-resolution-Cc8AvA7u.js} +1 -1
- package/dist/{npm-resolution-Djbuzx6o.js → npm-resolution-_EeE_Ujp.js} +4 -4
- package/dist/{onboard-CCJCvPgf.js → onboard-BBE2XnYk.js} +6 -6
- package/dist/{onboard-BP2Cr_Xy.js → onboard-Drnwax3G.js} +4 -4
- package/dist/{onboard-channels-CHrtFmhi.js → onboard-channels-BB39kGye.js} +2 -2
- package/dist/{onboard-channels-CXjnFvP1.js → onboard-channels-Blm8a9Xa.js} +21 -21
- package/dist/{onboard-custom-CrTCsoex.js → onboard-custom-CCmKBt2X.js} +4 -4
- package/dist/{onboard-custom-CjB43f8l.js → onboard-custom-CpzXkv9M.js} +1 -1
- package/dist/{onboard-helpers-ByttGRIZ.js → onboard-helpers-DHa51Syk.js} +20 -16
- package/dist/{onboard-helpers-Bvpkyuwm.js → onboard-helpers-DKMtUE3F.js} +10 -6
- package/dist/{onboard-hooks-CTbjgLDl.js → onboard-hooks-DyxckB2C.js} +4 -4
- package/dist/{onboard-remote-DxBaaS6o.js → onboard-remote-BcqJ3Tz_.js} +1 -1
- package/dist/{onboard-remote-Cfx2v9OI.js → onboard-remote-DIdDJK99.js} +4 -4
- package/dist/{onboard-skills-B7pHg1lN.js → onboard-skills-UY8CYY-W.js} +1 -1
- package/dist/{onboard-skills-PCnCZ6Od.js → onboard-skills-tmtzDwJK.js} +4 -4
- package/dist/{onboarding-D5G87dvM.js → onboarding-CzKQyWBA.js} +14 -14
- package/dist/{onboarding-D7CIbxzd.js → onboarding-gTeRtrT0.js} +9 -9
- package/dist/{onboarding.finalize-B1MmYTFV.js → onboarding.finalize-Yn7Z20A9.js} +87 -87
- package/dist/{onboarding.finalize-Cxzl-fYU.js → onboarding.finalize-qUj9NQZX.js} +6 -6
- package/dist/{onboarding.gateway-config-DNUJ0seU.js → onboarding.gateway-config-BuZAc2S6.js} +1 -1
- package/dist/{onboarding.gateway-config-DDdX0W74.js → onboarding.gateway-config-DXSZjMAQ.js} +18 -18
- package/dist/{onboarding.secret-input-Blkshntx.js → onboarding.secret-input-CZllOF9-.js} +1 -1
- package/dist/{openai-model-default-BYZDBOLH.js → openai-model-default-B9Uvm-HD.js} +2 -2
- package/dist/{outbound-attachment-BLSOzWVO.js → outbound-attachment-CGkDHHwN.js} +2 -2
- package/dist/{outbound-erFyoasR.js → outbound-eY3iircJ.js} +3 -3
- package/dist/{pairing-cli-Cm5KvsLg.js → pairing-cli-qUIV_ogK.js} +8 -8
- package/dist/{pairing-labels-IQFEI8BA.js → pairing-labels-CUV6LNM1.js} +1 -1
- package/dist/{pairing-store-DQlHmWN8.js → pairing-store-iHMQLc47.js} +3 -3
- package/dist/{path-alias-guards-vfYYQFIg.js → path-alias-guards-DeOVetT7.js} +3 -3
- package/dist/{path-safety-C95DzArw.js → path-safety-D7CjFQvf.js} +1 -1
- package/dist/{paths-DfuVHiHu.js → paths-D6mnO6Ni.js} +9 -9
- package/dist/{pi-embedded-helpers-BFbdgYu8.js → pi-embedded-helpers-BVBXhn3i.js} +6 -6
- package/dist/{pi-model-discovery-CUhGY1J_.js → pi-model-discovery-IkNhzHow.js} +1 -1
- package/dist/{pi-model-discovery-runtime-BH5_gJ5L.js → pi-model-discovery-runtime-CifWOHbQ.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-UE6shJzT.js → pi-tools.before-tool-call.runtime-CA2a1iBP.js} +5 -5
- package/dist/{pi-tools.policy-COmj0F9F.js → pi-tools.policy-BoLQW6Wp.js} +5 -5
- package/dist/{plugin-auto-enable-BcF0qNu9.js → plugin-auto-enable-COht5jxQ.js} +3 -3
- package/dist/{plugin-registry-DtuxmgWx.js → plugin-registry-C3_4F3FU.js} +1 -1
- package/dist/{plugin-registry-CLEhrKYA.js → plugin-registry-FJ90EneI.js} +3 -3
- package/dist/plugin-sdk/{accounts-kr-Gz1hk.js → accounts-DghIDNk2.js} +2 -2
- package/dist/plugin-sdk/{accounts-CxUSDHsT.js → accounts-YTdQYQFr.js} +3 -3
- package/dist/plugin-sdk/{accounts-PSzw-z3S.js → accounts-h__dTrLK.js} +2 -2
- package/dist/plugin-sdk/{active-listener-BQNrTcR3.js → active-listener-_PRYjtJv.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-DE4gr5YM.js → api-key-rotation-mVDSAkKQ.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-_xgGaeho.js → audio-preflight-BZlQM-qX.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-Dwc0Eh-B.js → audio-transcription-runner-CrYTX8py.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-DHQDvH4u.js → audit-membership-runtime-Xl20kCBe.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-XajEg_DL.js → channel-activity-gwxRn4wF.js} +3 -3
- package/dist/plugin-sdk/{channel-web-KtqCp4mz.js → channel-web-1WF-Nabe.js} +18 -18
- package/dist/plugin-sdk/{chrome-diV5m81I.js → chrome-BXbYwXRH.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-DwZAJuut.js → commands-registry-0w-aZenK.js} +4 -4
- package/dist/plugin-sdk/{common-CqnO92P8.js → common-DBOCt6Yv.js} +2 -2
- package/dist/plugin-sdk/{config-DYbtdrsT.js → config-pRtEoVyZ.js} +7 -7
- package/dist/plugin-sdk/{deliver-DG_7Uagn.js → deliver-FjlJrtZk.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-DEzvpBW1.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-Bhusa_Hi.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-bmakPm5f.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-n00sfFto.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-BvM3Z-Mr.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-CPuMkcmo.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BzO6S-KX.js +57 -0
- package/dist/plugin-sdk/{diagnostic-CT7v_kM2.js → diagnostic-Dt2i3afe.js} +2 -2
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/plugin-sdk/{errors-9oVz7reJ.js → errors-CgRPdp3o.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Or5BCq0E.js → fetch-guard-DyPZh8r2.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DFbwq9CS.js → fs-safe-DqCO1D4C.js} +3 -3
- package/dist/plugin-sdk/{image-rycGCqJO.js → image-CQ9TZ9vq.js} +6 -6
- package/dist/plugin-sdk/{image-ops-CMsocOob.js → image-ops-sw0uZ0GN.js} +2 -2
- package/dist/plugin-sdk/image-runtime-17_mTqsy.js +25 -0
- package/dist/plugin-sdk/{ir-DihI2SIz.js → ir-BVZ5kUMb.js} +7 -7
- package/dist/plugin-sdk/{local-roots-1xVosTZ4.js → local-roots-fO3ZgW3G.js} +4 -4
- package/dist/plugin-sdk/{logger-Bg4vIUJn.js → logger-DIb2cGHp.js} +2 -2
- package/dist/plugin-sdk/{login-YhFrVUWo.js → login-Dg5cxB_3.js} +4 -4
- package/dist/plugin-sdk/{login-qr-SpUTuwYv.js → login-qr-C3Vn30cq.js} +5 -5
- package/dist/plugin-sdk/{manager-DrzOPeMD.js → manager-BR-TwWTH.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-CvI9wF8N.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/{outbound-Cc4cUn9K.js → outbound-1a3Z_QJ2.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-Dtp3hQgc.js → outbound-attachment-BTQjD4YE.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DA0MhfkG.js → path-alias-guards-TnxupPQC.js} +1 -1
- package/dist/plugin-sdk/{paths-CP67O8eN.js → paths-B7_75Pdr.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-BDJ_4Plh.js → pi-embedded-helpers-DZRNadD8.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-Mk0GTDJl.js → pi-model-discovery-DGh6xekX.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-DjjBdPYt.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DV72wTDb.js → pi-tools.before-tool-call.runtime-BZ9XgG_x.js} +4 -4
- package/dist/plugin-sdk/{plugins-DSs2-fnK.js → plugins-B8pWVYug.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-Ib4-LUh-.js → proxy-env-BOlkiW1-.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-Cf3IUSDw.js → proxy-fetch-Dt5BedH8.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DIx2wpkY.js → pw-ai-C17A1o4w.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-Ov9ElEfG.js → qmd-manager-Bei6TaFq.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-CzjwW461.js → query-expansion-POz2za8a.js} +4 -4
- package/dist/plugin-sdk/{redact-DfACyt0X.js → redact-9WsNyb7S.js} +1 -1
- package/dist/plugin-sdk/{reply-CWWUd_JS.js → reply-BFbijn6_.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-BOkvxZtM.js → resolve-outbound-target-B9iFEh0y.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-kVooFCVo.js → run-with-concurrency-DmTrN5JG.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DzhkSmLi.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DyILWezU.js +19 -0
- package/dist/plugin-sdk/{send-BP1fSEBR.js → send-BGZo6HW1.js} +5 -5
- package/dist/plugin-sdk/{send-D9CSOGul.js → send-BisREGBZ.js} +6 -6
- package/dist/plugin-sdk/{send-BeLBlAsQ.js → send-BqkUDZed.js} +13 -13
- package/dist/plugin-sdk/{send-DLKxJJYV.js → send-D6_nNvi0.js} +8 -8
- package/dist/plugin-sdk/{send-XZ6IXCtL.js → send-Dj7XEcZN.js} +7 -7
- package/dist/plugin-sdk/{session-DtLUYWvY.js → session-D4KDs7Hq.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-Bv7EZypt.js → skill-commands-D_xeseiI.js} +4 -4
- package/dist/plugin-sdk/{skills-BzXN4uev.js → skills-Bs2b3JfV.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-CUb5sqqf.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-DCB6bGjB.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-BqEweE4K.js +16 -0
- package/dist/plugin-sdk/{store-DnJhFFW5.js → store-B7ESm9_L.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-CCUW4SbM.js +52 -0
- package/dist/plugin-sdk/{tables-CpmqssLF.js → tables-1vhBJPK_.js} +1 -1
- package/dist/plugin-sdk/{thinking-1UCPuD9d.js → thinking-DjaClmzi.js} +7 -7
- package/dist/plugin-sdk/{tokens-DAL_5WHL.js → tokens-CLE20fRI.js} +1 -1
- package/dist/plugin-sdk/{tool-images-RX4QTMnt.js → tool-images-B95xcwiR.js} +2 -2
- package/dist/plugin-sdk/web-DeRmHQ4_.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-BF6ih4Gi.js → whatsapp-actions-BYpcWkTN.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/plugin-sdk/zalouser.js +2 -2
- package/dist/{plugins-BDTkSIi7.js → plugins-Bc7YM9X-.js} +2 -2
- package/dist/{plugins-cli-KPz6APX0.js → plugins-cli-CTRNVYrz.js} +83 -83
- package/dist/{plugins-cli-Cs3UUJew.js → plugins-cli-CkuJp8xp.js} +3 -3
- package/dist/{ports-Be82TlEg.js → ports-BzfeaNjw.js} +1 -1
- package/dist/{ports-0jLyYbvQ.js → ports-DMeUt80n.js} +2 -2
- package/dist/{program-2J-jgdfk.js → program-C459C7fE.js} +81 -81
- package/dist/{program-context-SjYSWx_N.js → program-context-CQGS-T69.js} +18 -18
- package/dist/{prompt-select-styled-DPnVmH8f.js → prompt-select-styled-CbU0kt6K.js} +5 -5
- package/dist/{prompt-select-styled-Baiu3mAU.js → prompt-select-styled-Db5isrWq.js} +40 -40
- package/dist/{provider-auth-helpers-CxUWqt95.js → provider-auth-helpers-BdoxZkJ5.js} +1 -1
- package/dist/{provider-auth-helpers-hhFVhZdv.js → provider-auth-helpers-CHA2RYGH.js} +5 -5
- package/dist/{proxy-env-BDzLr-Xu.js → proxy-env-DkDM4lyi.js} +1 -1
- package/dist/{push-apns-BQjV_93G.js → push-apns-Bmzz46UG.js} +1 -1
- package/dist/{push-apns-BBkpZyNR.js → push-apns-QRl14PL-.js} +5 -5
- package/dist/{pw-ai-DL4-zFQ2.js → pw-ai-BkViDf6X.js} +18 -18
- package/dist/{qmd-manager-BkSWV1Q1.js → qmd-manager-BsL_hcOB.js} +20 -20
- package/dist/{qr-cli-ycULxbDe.js → qr-cli-Lue0weA0.js} +2 -2
- package/dist/{query-expansion-DI9INxTg.js → query-expansion-C0HUJbRn.js} +12 -12
- package/dist/{redact-snapshot-COZ-I-Tx.js → redact-snapshot-j2UcqIGl.js} +1 -1
- package/dist/{register.agent-reU63wQ5.js → register.agent-BcHDGbDj.js} +8 -8
- package/dist/{register.agent-DYq06QHS.js → register.agent-CKuJqUxQ.js} +94 -94
- package/dist/register.configure--iuZf-Se.js +165 -0
- package/dist/{register.configure-Ao1K2uze.js → register.configure-C7zgVxZQ.js} +12 -12
- package/dist/{register.maintenance-pLpE2oF-.js → register.maintenance-BvXK5kse.js} +95 -95
- package/dist/{register.maintenance-DMbs8w2m.js → register.maintenance-HxvARfCH.js} +8 -8
- package/dist/{register.message-BmsovYS6.js → register.message-CZKi0dsZ.js} +3 -3
- package/dist/{register.message-Bp4SDXWk.js → register.message-CexCaCLj.js} +74 -74
- package/dist/{register.onboard-Cb8xLIye.js → register.onboard-BSoXszGW.js} +3 -3
- package/dist/{register.onboard-IMrHOeW_.js → register.onboard-CYj4_MtL.js} +18 -18
- package/dist/{register.setup-CX8IUmew.js → register.setup-BCIiKYDH.js} +3 -3
- package/dist/{register.setup-DU7IDzAv.js → register.setup-COivNCUG.js} +21 -21
- package/dist/{register.status-health-sessions-CBPZoj51.js → register.status-health-sessions-B1n45-Cb.js} +4 -4
- package/dist/{register.status-health-sessions-N6SFc-UY.js → register.status-health-sessions-DV9c3uve.js} +88 -88
- package/dist/{register.subclis-BIbL6FBV.js → register.subclis-DMvO_J4V.js} +31 -31
- package/dist/{reply-CB1p166g.js → reply-LaODRY80.js} +5 -5
- package/dist/{rpc-C4LCuyHT.js → rpc-B8VkWVmY.js} +1 -1
- package/dist/{run-main-CpDZPsC_.js → run-main-2d0yMxyZ.js} +93 -93
- package/dist/{runtime-p-NlFhs9.js → runtime-CDZM2wLQ.js} +3 -3
- package/dist/{runtime-config-collectors-nl4J0eGm.js → runtime-config-collectors-BTU0eKTb.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-EkEBg3KF.js → runtime-whatsapp-login.runtime-BO0mX9_r.js} +7 -7
- package/dist/{runtime-whatsapp-outbound.runtime-DburiWRT.js → runtime-whatsapp-outbound.runtime-CwpvqY32.js} +15 -15
- package/dist/{sandbox-De3f2XMI.js → sandbox-WsTfTuEp.js} +18 -18
- package/dist/{sandbox-cli-mDvQrS3E.js → sandbox-cli-Sgsu6dPU.js} +25 -25
- package/dist/{secrets-cli-Qgj7B-Ac.js → secrets-cli-D2Nyn2HJ.js} +11 -11
- package/dist/{security-cli-kZfh-l3V.js → security-cli-uIuuoX2g.js} +42 -42
- package/dist/{send-BCE8qHfO.js → send-6jRKGsRs.js} +5 -5
- package/dist/{send-DomUTnc_.js → send-BobtsK6j.js} +11 -11
- package/dist/{send-e5FYMOJj.js → send-BxrUZpiG.js} +6 -6
- package/dist/{send-Dp0cFCnc.js → send-DcJ1pKjV.js} +4 -4
- package/dist/{send-DxZOuYSz.js → send-NhE5ebSK.js} +8 -8
- package/dist/{server-DUUdvkpq.js → server-FGj_ECLz.js} +20 -20
- package/dist/{server-context-DPghueRG.js → server-context-BHejgqzS.js} +12 -12
- package/dist/{server-lifecycle-D80aUXgn.js → server-lifecycle-BAtwXGHD.js} +2 -2
- package/dist/{server-middleware-oNgBIITD.js → server-middleware-60oUYecQ.js} +1 -1
- package/dist/{server-node-events-Ctjzvlem.js → server-node-events-7TeThsXp.js} +74 -74
- package/dist/{server-node-events-DrCKK0J4.js → server-node-events-BZFU_fm1.js} +3 -3
- package/dist/{service-D6lUMZKF.js → service-DsnrBnut.js} +15 -15
- package/dist/{session-D0jodcgT.js → session-eXSdl5mb.js} +1 -1
- package/dist/{session-utils-BrZ1ZzVq.js → session-utils-BD5Z6cCa.js} +6 -6
- package/dist/{sessions-C-_rnutd.js → sessions-PQyVIndD.js} +4 -4
- package/dist/{sessions-C5HWgT1_.js → sessions-oQJONGWF.js} +15 -15
- package/dist/{shared-DIMaxrU0.js → shared-B7szWIQb.js} +3 -3
- package/dist/{shared-BpdBkle5.js → shared-tolKQpGA.js} +1 -1
- package/dist/{skill-commands-CQlR5HNK.js → skill-commands-BAE31S6L.js} +5 -5
- package/dist/{skill-scanner-CvS725eQ.js → skill-scanner--QKHR8U0.js} +6 -6
- package/dist/{skills-C85azDXm.js → skills-EwyaIyKC.js} +3 -3
- package/dist/{skills-cli-C4VYbHrW.js → skills-cli-DCXgBe7w.js} +5 -5
- package/dist/{skills-install-St1w23Ub.js → skills-install-CnnbnjQD.js} +6 -6
- package/dist/{skills-status-DkO7rxE8.js → skills-status-Bv8Xt7Lc.js} +1 -1
- package/dist/{slash-commands.runtime-BPntiJaM.js → slash-commands.runtime-Dcrcjgcb.js} +11 -11
- package/dist/slash-dispatch.runtime-B7O4Wz6b.js +114 -0
- package/dist/{slash-dispatch.runtime-DRGqAgwa.js → slash-dispatch.runtime-DLLn0I6r.js} +2 -2
- package/dist/{slash-skill-commands.runtime-DK73fWGb.js → slash-skill-commands.runtime-ClUG1YOE.js} +15 -15
- package/dist/{squidclaw-root-BQfLymzj.js → squidclaw-root-JXyRbQLJ.js} +8 -8
- package/dist/{status-BkfSGlOi.js → status-BHMVPBt8.js} +27 -27
- package/dist/{status-DdW571-j.js → status-FEZLL4zc.js} +3 -3
- package/dist/{status.update-CiLU9RPF.js → status.update-BGIm6we4.js} +2 -2
- package/dist/{store-BEIcnlgx.js → store-BTkIx401.js} +5 -5
- package/dist/{subagent-registry-DGrfQVN3.js → subagent-registry-O65q5PYJ.js} +149 -149
- package/dist/subagent-registry-runtime-CHCU3Vzl.js +114 -0
- package/dist/{subagent-registry-runtime-DatTO2LD.js → subagent-registry-runtime-CMaj_reT.js} +2 -2
- package/dist/{system-cli-DcsDrms5.js → system-cli-CiuvFiDQ.js} +9 -9
- package/dist/{system-run-command-_TWqwVYR.js → system-run-command-B0gZa8Pc.js} +1 -1
- package/dist/{systemd-CD8s-qZ_.js → systemd-BrFu3I64.js} +9 -9
- package/dist/{systemd-hints-CuQVI0A1.js → systemd-hints-e5KJNDJB.js} +6 -6
- package/dist/{systemd-linger-BVu_9dOp.js → systemd-linger-DIBXRxA8.js} +1 -1
- package/dist/{tables-C2W8-cTf.js → tables-7v1wqCPH.js} +1 -1
- package/dist/{tailnet-BTCJZWyh.js → tailnet-CUG3_Vq2.js} +1 -1
- package/dist/{target-errors-CRQlPF1u.js → target-errors-C_rnMuJ2.js} +4 -4
- package/dist/{tool-images-CyzWvDUu.js → tool-images-D6mmxuWS.js} +1 -1
- package/dist/{tui-Dihw6VdK.js → tui-GobDRguA.js} +6 -6
- package/dist/{tui-cli-3NDOn7Es.js → tui-cli-CJFzVxnV.js} +32 -32
- package/dist/{update-1JhjCqjy.js → update-BhRrb6BI.js} +3 -3
- package/dist/{update-cli-BwhvSo1R.js → update-cli-MNc9pQ8Z.js} +104 -104
- package/dist/{update-cli-TQEfxhWF.js → update-cli-XQA8HnPH.js} +9 -9
- package/dist/{update-runner-CT9YRLtn.js → update-runner-D91Jmj0S.js} +16 -16
- package/dist/{update-runner-CqVLeGYA.js → update-runner-DVgVKydP.js} +1 -1
- package/dist/web-CPFzvE3y.js +118 -0
- package/dist/{web-B2qXyOb9.js → web-D9tKNsmC.js} +3 -3
- package/dist/{webhooks-cli-BhL0q4w0.js → webhooks-cli-L3FWqivw.js} +6 -6
- package/dist/{whatsapp-actions-DiE2QeMS.js → whatsapp-actions-B1MuSaby.js} +17 -17
- package/dist/{with-timeout-Cz134FWR.js → with-timeout-DLPklM0i.js} +3 -3
- package/dist/{workspace-D5vNjk5G.js → workspace-BbO-M3Jv.js} +1 -1
- package/dist/{workspace-dirs-CjMIsQti.js → workspace-dirs-D8D-Ghcl.js} +1 -1
- package/dist/{wsl-CvQfS6aU.js → wsl-CsGe5QCP.js} +2 -2
- package/package.json +1 -1
- package/dist/deliver-runtime-DbymeppL.js +0 -61
- package/dist/deps-send-discord.runtime-OZDSsMD1.js +0 -36
- package/dist/deps-send-imessage.runtime-BI2MiGBZ.js +0 -35
- package/dist/deps-send-signal.runtime-BlfNS-W1.js +0 -34
- package/dist/deps-send-slack.runtime-CkRysg88.js +0 -32
- package/dist/deps-send-whatsapp.runtime-Dl4ro-Df.js +0 -119
- package/dist/image-runtime-BL0nz9jO.js +0 -55
- package/dist/plugin-sdk/deliver-runtime-BdTC7uKE.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-CObCNMt3.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-DlWgi2DH.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-Cz7FT8J8.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-D4vDoRsg.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-DjTVED_m.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CRWOIKRC.js +0 -57
- package/dist/plugin-sdk/image-runtime-Cjz368oj.js +0 -25
- package/dist/plugin-sdk/manager-runtime-CF55pBNe.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-BrwtJHPU.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DitS0I1z.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-CYCr6A3v.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-Bx1K1iqP.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DVn338JI.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-Dbi_YzPO.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-FhP0l-Rw.js +0 -52
- package/dist/plugin-sdk/web-AtEy-48y.js +0 -56
- package/dist/register.configure-CCkfhF-7.js +0 -165
- package/dist/slash-dispatch.runtime-uqWhoI6q.js +0 -114
- package/dist/subagent-registry-runtime-Dsrz3yIh.js +0 -114
- package/dist/web-FqoNMI-k.js +0 -118
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as normalizeAccountId } from "./session-key-k6urs9r-.js";
|
|
2
|
-
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-
|
|
2
|
+
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-BH9Qo1sQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -6,7 +6,7 @@ import { _ as normalizeAccountId, g as DEFAULT_ACCOUNT_ID, v as normalizeOptiona
|
|
|
6
6
|
import { f as jidToE164, v as resolveUserPath } from "./utils-D6vohX1h.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
|
-
import
|
|
9
|
+
import fsPromises from "node:fs/promises";
|
|
10
10
|
|
|
11
11
|
//#region src/routing/account-lookup.ts
|
|
12
12
|
function resolveAccountEntry(accounts, accountId) {
|
|
@@ -105,14 +105,14 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
105
105
|
maybeRestoreCredsFromBackup(resolvedAuthDir);
|
|
106
106
|
const credsPath = resolveWebCredsPath(resolvedAuthDir);
|
|
107
107
|
try {
|
|
108
|
-
await
|
|
108
|
+
await fsPromises.access(resolvedAuthDir);
|
|
109
109
|
} catch {
|
|
110
110
|
return false;
|
|
111
111
|
}
|
|
112
112
|
try {
|
|
113
|
-
const stats = await
|
|
113
|
+
const stats = await fsPromises.stat(credsPath);
|
|
114
114
|
if (!stats.isFile() || stats.size <= 1) return false;
|
|
115
|
-
const raw = await
|
|
115
|
+
const raw = await fsPromises.readFile(credsPath, "utf-8");
|
|
116
116
|
JSON.parse(raw);
|
|
117
117
|
return true;
|
|
118
118
|
} catch {
|
|
@@ -120,7 +120,7 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
async function clearLegacyBaileysAuthState(authDir) {
|
|
123
|
-
const entries = await
|
|
123
|
+
const entries = await fsPromises.readdir(authDir, { withFileTypes: true });
|
|
124
124
|
const shouldDelete = (name) => {
|
|
125
125
|
if (name === "oauth.json") return false;
|
|
126
126
|
if (name === "creds.json" || name === "creds.json.bak") return true;
|
|
@@ -130,7 +130,7 @@ async function clearLegacyBaileysAuthState(authDir) {
|
|
|
130
130
|
await Promise.all(entries.map(async (entry) => {
|
|
131
131
|
if (!entry.isFile()) return;
|
|
132
132
|
if (!shouldDelete(entry.name)) return;
|
|
133
|
-
await
|
|
133
|
+
await fsPromises.rm(path.join(authDir, entry.name), { force: true });
|
|
134
134
|
}));
|
|
135
135
|
}
|
|
136
136
|
async function logoutWeb(params) {
|
|
@@ -141,7 +141,7 @@ async function logoutWeb(params) {
|
|
|
141
141
|
return false;
|
|
142
142
|
}
|
|
143
143
|
if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
|
|
144
|
-
else await
|
|
144
|
+
else await fsPromises.rm(resolvedAuthDir, {
|
|
145
145
|
recursive: true,
|
|
146
146
|
force: true
|
|
147
147
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as normalizeAccountId } from "./session-key-k6urs9r-.js";
|
|
2
|
-
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-
|
|
2
|
+
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-BH9Qo1sQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -3,10 +3,10 @@ import "./paths-CHIu6D1E.js";
|
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-Bw5n50gj.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { n as isMainModule } from "./entry.js";
|
|
6
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
7
|
-
import "./agent-scope-
|
|
6
|
+
import { z as loadConfig } from "./auth-profiles-CwmInMDd.js";
|
|
7
|
+
import "./agent-scope-nEVgVklg.js";
|
|
8
8
|
import { v as resolveUserPath, x as shortenHomePath } from "./utils-D6vohX1h.js";
|
|
9
|
-
import "./squidclaw-root-
|
|
9
|
+
import "./squidclaw-root-JXyRbQLJ.js";
|
|
10
10
|
import "./logger-DL3N22PJ.js";
|
|
11
11
|
import "./exec-TSiqsZw1.js";
|
|
12
12
|
import "./registry-BXcl3IkC.js";
|
|
@@ -14,13 +14,13 @@ import "./github-copilot-token-CxitgiZA.js";
|
|
|
14
14
|
import "./host-env-security-lcjXF83D.js";
|
|
15
15
|
import { t as VERSION } from "./version-3so140Zi.js";
|
|
16
16
|
import "./env-vars-mSSOl7Rv.js";
|
|
17
|
-
import "./manifest-registry-
|
|
17
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
18
18
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DqvtYF2o.js";
|
|
19
|
-
import { t as GatewayClient } from "./client-
|
|
20
|
-
import { s as resolveGatewayCredentialsWithSecretInputs, t as buildGatewayConnectionDetails } from "./call-
|
|
19
|
+
import { t as GatewayClient } from "./client-XYT0IAgJ.js";
|
|
20
|
+
import { s as resolveGatewayCredentialsWithSecretInputs, t as buildGatewayConnectionDetails } from "./call-BSt3WRnY.js";
|
|
21
21
|
import "./pairing-token-B_ig96RO.js";
|
|
22
|
-
import "./net-
|
|
23
|
-
import "./tailnet-
|
|
22
|
+
import "./net-CmP6gw-e.js";
|
|
23
|
+
import "./tailnet-CUG3_Vq2.js";
|
|
24
24
|
import { r as isKnownCoreToolId } from "./tool-catalog-BRRysafL.js";
|
|
25
25
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-BTikdM3p.js";
|
|
26
26
|
import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
@@ -2,13 +2,13 @@ import { g as resolveStateDir, y as resolveRequiredHomeDir } from "./paths-CHIu6
|
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-Bw5n50gj.js";
|
|
3
3
|
import { E as parseAgentSessionKey, T as isSubagentSessionKey, c as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, w as isCronSessionKey } from "./session-key-k6urs9r-.js";
|
|
4
4
|
import { m as pathExists, v as resolveUserPath } from "./utils-D6vohX1h.js";
|
|
5
|
-
import { _ as normalizeSkillFilter, i as openBoundaryFile, t as resolveSquidClawPackageRoot } from "./squidclaw-root-
|
|
5
|
+
import { _ as normalizeSkillFilter, i as openBoundaryFile, t as resolveSquidClawPackageRoot } from "./squidclaw-root-JXyRbQLJ.js";
|
|
6
6
|
import { t as runCommandWithTimeout } from "./exec-TSiqsZw1.js";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "node:fs";
|
|
11
|
-
import
|
|
11
|
+
import fsPromises from "node:fs/promises";
|
|
12
12
|
|
|
13
13
|
//#region src/config/model-input.ts
|
|
14
14
|
function resolveAgentModelPrimaryValue(model) {
|
|
@@ -150,7 +150,7 @@ async function loadTemplate(name) {
|
|
|
150
150
|
const templateDir = await resolveWorkspaceTemplateDir();
|
|
151
151
|
const templatePath = path.join(templateDir, name);
|
|
152
152
|
try {
|
|
153
|
-
return stripFrontMatter(await
|
|
153
|
+
return stripFrontMatter(await fsPromises.readFile(templatePath, "utf-8"));
|
|
154
154
|
} catch {
|
|
155
155
|
throw new Error(`Missing workspace template: ${name} (${templatePath}). Ensure docs/reference/templates are packaged.`);
|
|
156
156
|
}
|
|
@@ -165,7 +165,7 @@ async function loadTemplate(name) {
|
|
|
165
165
|
}
|
|
166
166
|
async function writeFileIfMissing(filePath, content) {
|
|
167
167
|
try {
|
|
168
|
-
await
|
|
168
|
+
await fsPromises.writeFile(filePath, content, {
|
|
169
169
|
encoding: "utf-8",
|
|
170
170
|
flag: "wx"
|
|
171
171
|
});
|
|
@@ -177,7 +177,7 @@ async function writeFileIfMissing(filePath, content) {
|
|
|
177
177
|
}
|
|
178
178
|
async function fileExists(filePath) {
|
|
179
179
|
try {
|
|
180
|
-
await
|
|
180
|
+
await fsPromises.access(filePath);
|
|
181
181
|
return true;
|
|
182
182
|
} catch {
|
|
183
183
|
return false;
|
|
@@ -201,7 +201,7 @@ function parseWorkspaceOnboardingState(raw) {
|
|
|
201
201
|
}
|
|
202
202
|
async function readWorkspaceOnboardingState(statePath) {
|
|
203
203
|
try {
|
|
204
|
-
return parseWorkspaceOnboardingState(await
|
|
204
|
+
return parseWorkspaceOnboardingState(await fsPromises.readFile(statePath, "utf-8")) ?? { version: WORKSPACE_STATE_VERSION };
|
|
205
205
|
} catch (err) {
|
|
206
206
|
if (err.code !== "ENOENT") throw err;
|
|
207
207
|
return { version: WORKSPACE_STATE_VERSION };
|
|
@@ -215,20 +215,20 @@ async function isWorkspaceOnboardingCompleted(dir) {
|
|
|
215
215
|
return typeof state.onboardingCompletedAt === "string" && state.onboardingCompletedAt.trim().length > 0;
|
|
216
216
|
}
|
|
217
217
|
async function writeWorkspaceOnboardingState(statePath, state) {
|
|
218
|
-
await
|
|
218
|
+
await fsPromises.mkdir(path.dirname(statePath), { recursive: true });
|
|
219
219
|
const payload = `${JSON.stringify(state, null, 2)}\n`;
|
|
220
220
|
const tmpPath = `${statePath}.tmp-${process.pid}-${Date.now().toString(36)}`;
|
|
221
221
|
try {
|
|
222
|
-
await
|
|
223
|
-
await
|
|
222
|
+
await fsPromises.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
223
|
+
await fsPromises.rename(tmpPath, statePath);
|
|
224
224
|
} catch (err) {
|
|
225
|
-
await
|
|
225
|
+
await fsPromises.unlink(tmpPath).catch(() => {});
|
|
226
226
|
throw err;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
async function hasGitRepo(dir) {
|
|
230
230
|
try {
|
|
231
|
-
await
|
|
231
|
+
await fsPromises.stat(path.join(dir, ".git"));
|
|
232
232
|
return true;
|
|
233
233
|
} catch {
|
|
234
234
|
return false;
|
|
@@ -258,7 +258,7 @@ async function ensureGitRepo(dir, isBrandNewWorkspace) {
|
|
|
258
258
|
}
|
|
259
259
|
async function ensureAgentWorkspace(params) {
|
|
260
260
|
const dir = resolveUserPath(params?.dir?.trim() ? params.dir.trim() : DEFAULT_AGENT_WORKSPACE_DIR);
|
|
261
|
-
await
|
|
261
|
+
await fsPromises.mkdir(dir, { recursive: true });
|
|
262
262
|
if (!params?.ensureBootstrapFiles) return { dir };
|
|
263
263
|
const agentsPath = path.join(dir, DEFAULT_AGENTS_FILENAME);
|
|
264
264
|
const soulPath = path.join(dir, DEFAULT_SOUL_FILENAME);
|
|
@@ -285,7 +285,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
285
285
|
const paths = [...templatePaths, ...userContentPaths];
|
|
286
286
|
return (await Promise.all(paths.map(async (p) => {
|
|
287
287
|
try {
|
|
288
|
-
await
|
|
288
|
+
await fsPromises.access(p);
|
|
289
289
|
return true;
|
|
290
290
|
} catch {
|
|
291
291
|
return false;
|
|
@@ -318,7 +318,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
318
318
|
if (!state.bootstrapSeededAt && bootstrapExists) markState({ bootstrapSeededAt: nowIso() });
|
|
319
319
|
if (!state.onboardingCompletedAt && state.bootstrapSeededAt && !bootstrapExists) markState({ onboardingCompletedAt: nowIso() });
|
|
320
320
|
if (!state.bootstrapSeededAt && !state.onboardingCompletedAt && !bootstrapExists) {
|
|
321
|
-
const [identityContent, userContent] = await Promise.all([
|
|
321
|
+
const [identityContent, userContent] = await Promise.all([fsPromises.readFile(identityPath, "utf-8"), fsPromises.readFile(userPath, "utf-8")]);
|
|
322
322
|
const hasUserContent = await (async () => {
|
|
323
323
|
const indicators = [
|
|
324
324
|
path.join(dir, "memory"),
|
|
@@ -326,7 +326,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
326
326
|
path.join(dir, ".git")
|
|
327
327
|
];
|
|
328
328
|
for (const indicator of indicators) try {
|
|
329
|
-
await
|
|
329
|
+
await fsPromises.access(indicator);
|
|
330
330
|
return true;
|
|
331
331
|
} catch {}
|
|
332
332
|
return false;
|
|
@@ -357,7 +357,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
357
357
|
for (const name of candidates) {
|
|
358
358
|
const filePath = path.join(resolvedDir, name);
|
|
359
359
|
try {
|
|
360
|
-
await
|
|
360
|
+
await fsPromises.access(filePath);
|
|
361
361
|
entries.push({
|
|
362
362
|
name,
|
|
363
363
|
filePath
|
|
@@ -370,7 +370,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
370
370
|
for (const entry of entries) {
|
|
371
371
|
let key = entry.filePath;
|
|
372
372
|
try {
|
|
373
|
-
key = await
|
|
373
|
+
key = await fsPromises.realpath(entry.filePath);
|
|
374
374
|
} catch {}
|
|
375
375
|
if (seen.has(key)) continue;
|
|
376
376
|
seen.add(key);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { d as defaultRuntime } from "./subsystem-Bw5n50gj.js";
|
|
3
|
-
import { G as writeConfigFile, ar as resolveAuthStorePath, er as ensureAuthProfileStore } from "./auth-profiles-
|
|
3
|
+
import { G as writeConfigFile, ar as resolveAuthStorePath, er as ensureAuthProfileStore } from "./auth-profiles-CwmInMDd.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-D8-lYArk.js";
|
|
5
|
-
import { a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
+
import { a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-nEVgVklg.js";
|
|
6
6
|
import { c as normalizeAgentId, g as DEFAULT_ACCOUNT_ID, t as DEFAULT_AGENT_ID } from "./session-key-k6urs9r-.js";
|
|
7
7
|
import { v as resolveUserPath, x as shortenHomePath } from "./utils-D6vohX1h.js";
|
|
8
|
-
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
9
|
-
import { U as parseIdentityMarkdown, V as identityHasValues } from "./subagent-registry-
|
|
8
|
+
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-Bc7YM9X-.js";
|
|
9
|
+
import { U as parseIdentityMarkdown, V as identityHasValues } from "./subagent-registry-O65q5PYJ.js";
|
|
10
10
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-Dn_rzeZN.js";
|
|
11
|
-
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-
|
|
11
|
+
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-DHa51Syk.js";
|
|
12
12
|
import { t as WizardCancelledError } from "./prompts-l_pUOv42.js";
|
|
13
13
|
import { t as createClackPrompter } from "./clack-prompter-DU01bRlk.js";
|
|
14
14
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D7MilaX-.js";
|
|
15
|
-
import { a as parseBindingSpecs, i as describeBinding, n as applyAgentBindings, o as removeAgentBindings, r as buildChannelBindings, t as requireValidConfigSnapshot } from "./config-validation-
|
|
16
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
17
|
-
import { r as setupChannels } from "./onboard-channels-
|
|
15
|
+
import { a as parseBindingSpecs, i as describeBinding, n as applyAgentBindings, o as removeAgentBindings, r as buildChannelBindings, t as requireValidConfigSnapshot } from "./config-validation-BEyUXW7d.js";
|
|
16
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-DsnQkHm9.js";
|
|
17
|
+
import { r as setupChannels } from "./onboard-channels-Blm8a9Xa.js";
|
|
18
18
|
import { n as logConfigUpdated } from "./logging-ZAeFsd9K.js";
|
|
19
19
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-4mupmvzh.js";
|
|
20
|
-
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-
|
|
20
|
+
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-B7f4gR8i.js";
|
|
21
21
|
import path from "node:path";
|
|
22
|
-
import
|
|
22
|
+
import fsPromises from "node:fs/promises";
|
|
23
23
|
|
|
24
24
|
//#region src/commands/agents.command-shared.ts
|
|
25
25
|
function createQuietRuntime(runtime) {
|
|
@@ -266,7 +266,7 @@ async function agentsUnbindCommand(opts, runtime = defaultRuntime) {
|
|
|
266
266
|
//#region src/commands/agents.commands.add.ts
|
|
267
267
|
async function fileExists(pathname) {
|
|
268
268
|
try {
|
|
269
|
-
await
|
|
269
|
+
await fsPromises.stat(pathname);
|
|
270
270
|
return true;
|
|
271
271
|
} catch {
|
|
272
272
|
return false;
|
|
@@ -408,8 +408,8 @@ async function agentsAddCommand(opts, runtime = defaultRuntime, params) {
|
|
|
408
408
|
message: `Copy auth profiles from "${defaultAgentId}"?`,
|
|
409
409
|
initialValue: false
|
|
410
410
|
})) {
|
|
411
|
-
await
|
|
412
|
-
await
|
|
411
|
+
await fsPromises.mkdir(path.dirname(destAuthPath), { recursive: true });
|
|
412
|
+
await fsPromises.copyFile(sourceAuthPath, destAuthPath);
|
|
413
413
|
await prompter.note(`Copied auth profiles from "${defaultAgentId}".`, "Auth profiles");
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -557,7 +557,7 @@ const coerceTrimmed = (value) => {
|
|
|
557
557
|
};
|
|
558
558
|
async function loadIdentityFromFile(filePath) {
|
|
559
559
|
try {
|
|
560
|
-
const parsed = parseIdentityMarkdown(await
|
|
560
|
+
const parsed = parseIdentityMarkdown(await fsPromises.readFile(filePath, "utf-8"));
|
|
561
561
|
if (!identityHasValues(parsed)) return null;
|
|
562
562
|
return parsed;
|
|
563
563
|
} catch {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nn as identityHasValues, rn as loadAgentIdentityFromWorkspace } from "./reply-
|
|
1
|
+
import { nn as identityHasValues, rn as loadAgentIdentityFromWorkspace } from "./reply-LaODRY80.js";
|
|
2
2
|
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-C1XMay0T.js";
|
|
3
3
|
import { c as normalizeAgentId } from "./session-key-CIXZm7v4.js";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
1
|
+
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-nEVgVklg.js";
|
|
2
2
|
import { c as normalizeAgentId } from "./session-key-k6urs9r-.js";
|
|
3
|
-
import { H as loadAgentIdentityFromWorkspace, V as identityHasValues } from "./subagent-registry-
|
|
3
|
+
import { H as loadAgentIdentityFromWorkspace, V as identityHasValues } from "./subagent-registry-O65q5PYJ.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
6
6
|
function findAgentEntryIndex(list, agentId) {
|
|
@@ -2,10 +2,10 @@ import { a as logVerbose, c as shouldLogVerbose } from "./globals-BrhVUl-N.js";
|
|
|
2
2
|
import "./paths-CHIu6D1E.js";
|
|
3
3
|
import "./subsystem-Bw5n50gj.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import "./auth-profiles-CwmInMDd.js";
|
|
6
|
+
import "./agent-scope-nEVgVklg.js";
|
|
7
7
|
import "./utils-D6vohX1h.js";
|
|
8
|
-
import "./squidclaw-root-
|
|
8
|
+
import "./squidclaw-root-JXyRbQLJ.js";
|
|
9
9
|
import "./logger-DL3N22PJ.js";
|
|
10
10
|
import "./exec-TSiqsZw1.js";
|
|
11
11
|
import "./registry-BXcl3IkC.js";
|
|
@@ -13,49 +13,49 @@ import "./github-copilot-token-CxitgiZA.js";
|
|
|
13
13
|
import "./host-env-security-lcjXF83D.js";
|
|
14
14
|
import "./version-3so140Zi.js";
|
|
15
15
|
import "./env-vars-mSSOl7Rv.js";
|
|
16
|
-
import "./manifest-registry-
|
|
17
|
-
import "./dock-
|
|
16
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
17
|
+
import "./dock-W3cGg46W.js";
|
|
18
18
|
import "./frontmatter-CFoRh1fy.js";
|
|
19
|
-
import "./skills-
|
|
20
|
-
import "./path-alias-guards-
|
|
19
|
+
import "./skills-EwyaIyKC.js";
|
|
20
|
+
import "./path-alias-guards-DeOVetT7.js";
|
|
21
21
|
import "./message-channel-DqvtYF2o.js";
|
|
22
|
-
import "./sessions-
|
|
23
|
-
import "./plugins-
|
|
24
|
-
import "./accounts-
|
|
25
|
-
import "./accounts-
|
|
22
|
+
import "./sessions-oQJONGWF.js";
|
|
23
|
+
import "./plugins-Bc7YM9X-.js";
|
|
24
|
+
import "./accounts-BH9Qo1sQ.js";
|
|
25
|
+
import "./accounts-Cuwg9Tan.js";
|
|
26
26
|
import "./logging-CcxUDNcI.js";
|
|
27
|
-
import "./accounts-
|
|
27
|
+
import "./accounts-B1RxFghM.js";
|
|
28
28
|
import "./paths-Dn_rzeZN.js";
|
|
29
29
|
import "./chat-envelope-thy05gXR.js";
|
|
30
|
-
import "./net-
|
|
31
|
-
import "./tailnet-
|
|
32
|
-
import "./image-ops-
|
|
33
|
-
import "./pi-embedded-helpers-
|
|
34
|
-
import "./sandbox-
|
|
30
|
+
import "./net-CmP6gw-e.js";
|
|
31
|
+
import "./tailnet-CUG3_Vq2.js";
|
|
32
|
+
import "./image-ops-LFsSCTyI.js";
|
|
33
|
+
import "./pi-embedded-helpers-BVBXhn3i.js";
|
|
34
|
+
import "./sandbox-WsTfTuEp.js";
|
|
35
35
|
import "./tool-catalog-BRRysafL.js";
|
|
36
|
-
import "./chrome-
|
|
36
|
+
import "./chrome-DybExwN8.js";
|
|
37
37
|
import "./tailscale-DHGqQR08.js";
|
|
38
|
-
import "./auth-
|
|
39
|
-
import "./server-context-
|
|
40
|
-
import "./paths-
|
|
38
|
+
import "./auth-C5nn2VmD.js";
|
|
39
|
+
import "./server-context-BHejgqzS.js";
|
|
40
|
+
import "./paths-D6mnO6Ni.js";
|
|
41
41
|
import "./redact-DknVdX-O.js";
|
|
42
42
|
import "./errors-BnRmsfe-.js";
|
|
43
|
-
import "./fs-safe-
|
|
44
|
-
import "./proxy-env-
|
|
45
|
-
import "./store-
|
|
46
|
-
import "./ports-
|
|
43
|
+
import "./fs-safe-BPQ-per2.js";
|
|
44
|
+
import "./proxy-env-DkDM4lyi.js";
|
|
45
|
+
import "./store-BTkIx401.js";
|
|
46
|
+
import "./ports-DMeUt80n.js";
|
|
47
47
|
import "./trash-DUuU677G.js";
|
|
48
|
-
import "./server-middleware-
|
|
49
|
-
import "./tool-images-
|
|
48
|
+
import "./server-middleware-60oUYecQ.js";
|
|
49
|
+
import "./tool-images-D6mmxuWS.js";
|
|
50
50
|
import "./thinking-CrcT589P.js";
|
|
51
|
-
import "./models-config-
|
|
52
|
-
import "./model-catalog-
|
|
53
|
-
import "./fetch-
|
|
54
|
-
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
55
|
-
import "./fetch-guard-
|
|
56
|
-
import "./image-
|
|
51
|
+
import "./models-config-D96CeX01.js";
|
|
52
|
+
import "./model-catalog-Cc2Y6aO9.js";
|
|
53
|
+
import "./fetch-BClIo0ZD.js";
|
|
54
|
+
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-C5qJ-fgR.js";
|
|
55
|
+
import "./fetch-guard-C-CRoLDY.js";
|
|
56
|
+
import "./image-pyJhsETJ.js";
|
|
57
57
|
import "./tool-display-BisOZb2_.js";
|
|
58
|
-
import "./api-key-rotation-
|
|
58
|
+
import "./api-key-rotation-CsMKifj6.js";
|
|
59
59
|
import "./proxy-fetch-DfeBVFag.js";
|
|
60
60
|
|
|
61
61
|
//#region src/media-understanding/audio-preflight.ts
|
package/dist/{audio-transcription-runner-Xzc1NTsq.js → audio-transcription-runner-C5qJ-fgR.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { a as logVerbose, c as shouldLogVerbose, k as resolvePreferredSquidClawTmpDir } from "./globals-BrhVUl-N.js";
|
|
2
|
-
import { $ as mergeInboundPathRoots, Q as isInboundPathAllowed, Sr as normalizeProviderId, Vr as normalizeGoogleModelId, Z as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, et as resolveIMessageAttachmentRoots, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-
|
|
3
|
-
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-
|
|
2
|
+
import { $ as mergeInboundPathRoots, Q as isInboundPathAllowed, Sr as normalizeProviderId, Vr as normalizeGoogleModelId, Z as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, et as resolveIMessageAttachmentRoots, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-CwmInMDd.js";
|
|
3
|
+
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-nEVgVklg.js";
|
|
4
4
|
import { n as runExec } from "./exec-TSiqsZw1.js";
|
|
5
|
-
import { j as normalizeChatType } from "./plugins-
|
|
6
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
5
|
+
import { j as normalizeChatType } from "./plugins-Bc7YM9X-.js";
|
|
6
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-LFsSCTyI.js";
|
|
7
7
|
import { i as formatUncaughtError, n as extractErrorCode, s as readErrorName, t as collectErrorGraphCandidates } from "./errors-BnRmsfe-.js";
|
|
8
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
9
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-
|
|
8
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-Cc2Y6aO9.js";
|
|
9
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-BClIo0ZD.js";
|
|
10
10
|
import { n as fetchWithTimeout } from "./fetch-timeout-Mawkd1Br.js";
|
|
11
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
12
|
-
import { t as describeImageWithModel } from "./image-
|
|
13
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
11
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-C-CRoLDY.js";
|
|
12
|
+
import { t as describeImageWithModel } from "./image-pyJhsETJ.js";
|
|
13
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-CsMKifj6.js";
|
|
14
14
|
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-DfeBVFag.js";
|
|
15
15
|
import process$1 from "node:process";
|
|
16
16
|
import { fileURLToPath } from "node:url";
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { constants } from "node:fs";
|
|
20
|
-
import
|
|
20
|
+
import fsPromises from "node:fs/promises";
|
|
21
21
|
import crypto from "node:crypto";
|
|
22
22
|
|
|
23
23
|
//#region src/media-understanding/attachments.normalize.ts
|
|
@@ -426,7 +426,7 @@ var MediaAttachmentCache = class {
|
|
|
426
426
|
const size = await this.ensureLocalStat(entry);
|
|
427
427
|
if (entry.resolvedPath) {
|
|
428
428
|
if (size !== void 0 && size > params.maxBytes) throw new MediaUnderstandingSkipError("maxBytes", `Attachment ${params.attachmentIndex + 1} exceeds maxBytes ${params.maxBytes}`);
|
|
429
|
-
const buffer = await
|
|
429
|
+
const buffer = await fsPromises.readFile(entry.resolvedPath);
|
|
430
430
|
entry.buffer = buffer;
|
|
431
431
|
entry.bufferMime = entry.bufferMime ?? entry.attachment.mime ?? await detectMime({
|
|
432
432
|
buffer,
|
|
@@ -496,10 +496,10 @@ var MediaAttachmentCache = class {
|
|
|
496
496
|
prefix: "squidclaw-media",
|
|
497
497
|
extension: path.extname(bufferResult.fileName || "") || ""
|
|
498
498
|
});
|
|
499
|
-
await
|
|
499
|
+
await fsPromises.writeFile(tmpPath, bufferResult.buffer);
|
|
500
500
|
entry.tempPath = tmpPath;
|
|
501
501
|
entry.tempCleanup = async () => {
|
|
502
|
-
await
|
|
502
|
+
await fsPromises.unlink(tmpPath).catch(() => {});
|
|
503
503
|
};
|
|
504
504
|
return {
|
|
505
505
|
path: tmpPath,
|
|
@@ -546,12 +546,12 @@ var MediaAttachmentCache = class {
|
|
|
546
546
|
if (entry.statSize !== void 0) return entry.statSize;
|
|
547
547
|
try {
|
|
548
548
|
const currentPath = entry.resolvedPath;
|
|
549
|
-
const stat = await
|
|
549
|
+
const stat = await fsPromises.stat(currentPath);
|
|
550
550
|
if (!stat.isFile()) {
|
|
551
551
|
entry.resolvedPath = void 0;
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
const canonicalPath = await
|
|
554
|
+
const canonicalPath = await fsPromises.realpath(currentPath).catch(() => currentPath);
|
|
555
555
|
if (!isInboundPathAllowed({
|
|
556
556
|
filePath: canonicalPath,
|
|
557
557
|
roots: await this.getCanonicalLocalPathRoots()
|
|
@@ -573,7 +573,7 @@ var MediaAttachmentCache = class {
|
|
|
573
573
|
if (this.canonicalLocalPathRoots) return await this.canonicalLocalPathRoots;
|
|
574
574
|
this.canonicalLocalPathRoots = (async () => mergeInboundPathRoots(this.localPathRoots, await Promise.all(this.localPathRoots.map(async (root) => {
|
|
575
575
|
if (root.includes("*")) return root;
|
|
576
|
-
return await
|
|
576
|
+
return await fsPromises.realpath(root).catch(() => root);
|
|
577
577
|
}))))();
|
|
578
578
|
return await this.canonicalLocalPathRoots;
|
|
579
579
|
}
|
|
@@ -646,7 +646,7 @@ const MIN_AUDIO_FILE_BYTES = 1024;
|
|
|
646
646
|
async function fileExists(filePath) {
|
|
647
647
|
if (!filePath) return false;
|
|
648
648
|
try {
|
|
649
|
-
await
|
|
649
|
+
await fsPromises.stat(filePath);
|
|
650
650
|
return true;
|
|
651
651
|
} catch {
|
|
652
652
|
return false;
|
|
@@ -1237,7 +1237,7 @@ async function resolveCliOutput(params) {
|
|
|
1237
1237
|
const commandId = commandBase(params.command);
|
|
1238
1238
|
const fileOutput = commandId === "whisper-cli" ? resolveWhisperCppOutputPath(params.args) : commandId === "whisper" ? resolveWhisperOutputPath(params.args, params.mediaPath) : commandId === "parakeet-mlx" ? resolveParakeetOutputPath(params.args, params.mediaPath) : null;
|
|
1239
1239
|
if (fileOutput && await fileExists(fileOutput)) try {
|
|
1240
|
-
const content = await
|
|
1240
|
+
const content = await fsPromises.readFile(fileOutput, "utf8");
|
|
1241
1241
|
if (content.trim()) return content.trim();
|
|
1242
1242
|
} catch {}
|
|
1243
1243
|
if (commandId === "gemini") {
|
|
@@ -1546,10 +1546,10 @@ async function runCliEntry(params) {
|
|
|
1546
1546
|
timeoutMs
|
|
1547
1547
|
});
|
|
1548
1548
|
if (capability === "audio") assertMinAudioSize({
|
|
1549
|
-
size: (await
|
|
1549
|
+
size: (await fsPromises.stat(pathResult.path)).size,
|
|
1550
1550
|
attachmentIndex: params.attachmentIndex
|
|
1551
1551
|
});
|
|
1552
|
-
const outputDir = await
|
|
1552
|
+
const outputDir = await fsPromises.mkdtemp(path.join(resolvePreferredSquidClawTmpDir(), "squidclaw-media-cli-"));
|
|
1553
1553
|
const mediaPath = pathResult.path;
|
|
1554
1554
|
const outputBase = path.join(outputDir, path.parse(mediaPath).name);
|
|
1555
1555
|
const templCtx = {
|
|
@@ -1583,7 +1583,7 @@ async function runCliEntry(params) {
|
|
|
1583
1583
|
model: command
|
|
1584
1584
|
};
|
|
1585
1585
|
} finally {
|
|
1586
|
-
await
|
|
1586
|
+
await fsPromises.rm(outputDir, {
|
|
1587
1587
|
recursive: true,
|
|
1588
1588
|
force: true
|
|
1589
1589
|
}).catch(() => {});
|
|
@@ -1627,9 +1627,9 @@ function candidateBinaryNames(name) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
async function isExecutable(filePath) {
|
|
1629
1629
|
try {
|
|
1630
|
-
if (!(await
|
|
1630
|
+
if (!(await fsPromises.stat(filePath)).isFile()) return false;
|
|
1631
1631
|
if (process.platform === "win32") return true;
|
|
1632
|
-
await
|
|
1632
|
+
await fsPromises.access(filePath, constants.X_OK);
|
|
1633
1633
|
return true;
|
|
1634
1634
|
} catch {
|
|
1635
1635
|
return false;
|