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
|
@@ -2,10 +2,10 @@ import { p as theme } from "./globals-BrhVUl-N.js";
|
|
|
2
2
|
import "./paths-CHIu6D1E.js";
|
|
3
3
|
import { d as defaultRuntime } from "./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,13 +13,13 @@ 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-
|
|
16
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
17
17
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DqvtYF2o.js";
|
|
18
|
-
import { Vt as approveDevicePairing, Wt as listDevicePairing, Xt as summarizeDeviceTokens } from "./client-
|
|
19
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
18
|
+
import { Vt as approveDevicePairing, Wt as listDevicePairing, Xt as summarizeDeviceTokens } from "./client-XYT0IAgJ.js";
|
|
19
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-BSt3WRnY.js";
|
|
20
20
|
import "./pairing-token-B_ig96RO.js";
|
|
21
|
-
import { r as isLoopbackHost } from "./net-
|
|
22
|
-
import "./tailnet-
|
|
21
|
+
import { r as isLoopbackHost } from "./net-CmP6gw-e.js";
|
|
22
|
+
import "./tailnet-CUG3_Vq2.js";
|
|
23
23
|
import { n as formatTimeAgo } from "./format-relative-Czf5fUjn.js";
|
|
24
24
|
import { n as withProgress } from "./progress-DuhDspl6.js";
|
|
25
25
|
import { t as renderTable } from "./table-DbDCX_6t.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-Bw5n50gj.js";
|
|
2
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
2
|
+
import { z as loadConfig } from "./auth-profiles-CwmInMDd.js";
|
|
3
3
|
|
|
4
4
|
//#region src/logging/diagnostic-session-state.ts
|
|
5
5
|
const diagnosticSessionStates = /* @__PURE__ */ new Map();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
2
|
-
import
|
|
1
|
+
import { s as resolveGatewayLogPaths } from "./service-DsnrBnut.js";
|
|
2
|
+
import fsPromises from "node:fs/promises";
|
|
3
3
|
|
|
4
4
|
//#region src/daemon/diagnostics.ts
|
|
5
5
|
const GATEWAY_LOG_ERROR_PATTERNS = [
|
|
@@ -11,7 +11,7 @@ const GATEWAY_LOG_ERROR_PATTERNS = [
|
|
|
11
11
|
];
|
|
12
12
|
async function readLastLogLine(filePath) {
|
|
13
13
|
try {
|
|
14
|
-
const lines = (await
|
|
14
|
+
const lines = (await fsPromises.readFile(filePath, "utf8")).split(/\r?\n/).map((line) => line.trim());
|
|
15
15
|
for (let i = lines.length - 1; i >= 0; i -= 1) if (lines[i]) return lines[i];
|
|
16
16
|
return null;
|
|
17
17
|
} catch {
|
|
@@ -20,8 +20,8 @@ async function readLastLogLine(filePath) {
|
|
|
20
20
|
}
|
|
21
21
|
async function readLastGatewayErrorLine(env) {
|
|
22
22
|
const { stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
23
|
-
const stderrRaw = await
|
|
24
|
-
const stdoutRaw = await
|
|
23
|
+
const stderrRaw = await fsPromises.readFile(stderrPath, "utf8").catch(() => "");
|
|
24
|
+
const stdoutRaw = await fsPromises.readFile(stdoutPath, "utf8").catch(() => "");
|
|
25
25
|
const lines = [...stderrRaw.split(/\r?\n/), ...stdoutRaw.split(/\r?\n/)].map((line) => line.trim());
|
|
26
26
|
for (let i = lines.length - 1; i >= 0; i -= 1) {
|
|
27
27
|
const line = lines[i];
|
|
@@ -2,10 +2,10 @@ import { p as theme, t as danger } from "./globals-BrhVUl-N.js";
|
|
|
2
2
|
import "./paths-CHIu6D1E.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-Bw5n50gj.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { z as loadConfig } from "./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,12 +13,12 @@ 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-
|
|
16
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
17
17
|
import "./message-channel-DqvtYF2o.js";
|
|
18
|
-
import { t as getChannelPlugin } from "./plugins-
|
|
19
|
-
import "./accounts-
|
|
18
|
+
import { t as getChannelPlugin } from "./plugins-Bc7YM9X-.js";
|
|
19
|
+
import "./accounts-BH9Qo1sQ.js";
|
|
20
20
|
import "./logging-CcxUDNcI.js";
|
|
21
|
-
import { n as resolveMessageChannelSelection } from "./channel-selection-
|
|
21
|
+
import { n as resolveMessageChannelSelection } from "./channel-selection-CFWQq1nS.js";
|
|
22
22
|
import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
23
23
|
import { t as formatHelpExamples } from "./help-format-CpR5cEGe.js";
|
|
24
24
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D7MilaX-.js";
|
|
@@ -2,10 +2,10 @@ import { p as theme } from "./globals-BrhVUl-N.js";
|
|
|
2
2
|
import "./paths-CHIu6D1E.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-Bw5n50gj.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { z as loadConfig } from "./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,8 +13,8 @@ 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 { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-
|
|
16
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
17
|
+
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-CUG3_Vq2.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
19
19
|
import { t as renderTable } from "./table-DbDCX_6t.js";
|
|
20
20
|
import { n as resolveWideAreaDiscoveryDomain, t as getWideAreaZonePath } from "./widearea-dns-BCMIEFUS.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as normalizeAccountId } from "./session-key-k6urs9r-.js";
|
|
2
2
|
import { c as escapeRegExp, p as normalizeE164 } from "./utils-D6vohX1h.js";
|
|
3
3
|
import { a as getChatChannelMeta, n as CHAT_CHANNEL_ORDER, p as requireActivePluginRegistry } from "./registry-BXcl3IkC.js";
|
|
4
|
-
import { b as resolveSlackReplyToMode, k as resolveDiscordAccount, l as resolveTelegramAccount, w as normalizeWhatsAppTarget, y as resolveSlackAccount } from "./plugins-
|
|
5
|
-
import { i as resolveWhatsAppAccount, y as resolveAccountEntry } from "./accounts-
|
|
6
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
7
|
-
import { i as resolveSignalAccount } from "./accounts-
|
|
4
|
+
import { b as resolveSlackReplyToMode, k as resolveDiscordAccount, l as resolveTelegramAccount, w as normalizeWhatsAppTarget, y as resolveSlackAccount } from "./plugins-Bc7YM9X-.js";
|
|
5
|
+
import { i as resolveWhatsAppAccount, y as resolveAccountEntry } from "./accounts-BH9Qo1sQ.js";
|
|
6
|
+
import { r as resolveIMessageAccount } from "./accounts-Cuwg9Tan.js";
|
|
7
|
+
import { i as resolveSignalAccount } from "./accounts-B1RxFghM.js";
|
|
8
8
|
|
|
9
9
|
//#region src/config/types.tools.ts
|
|
10
10
|
const TOOLS_BY_SENDER_KEY_TYPES = [
|
|
@@ -4,15 +4,15 @@ import { d as defaultRuntime } from "./subsystem-Bw5n50gj.js";
|
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-D8-lYArk.js";
|
|
6
6
|
import "./utils-D6vohX1h.js";
|
|
7
|
-
import "./squidclaw-root-
|
|
7
|
+
import "./squidclaw-root-JXyRbQLJ.js";
|
|
8
8
|
import "./logger-DL3N22PJ.js";
|
|
9
9
|
import { t as runCommandWithTimeout } from "./exec-TSiqsZw1.js";
|
|
10
10
|
import "./registry-BXcl3IkC.js";
|
|
11
11
|
import "./host-env-security-lcjXF83D.js";
|
|
12
|
-
import "./manifest-registry-
|
|
12
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
13
13
|
import { d as hasBinary } from "./frontmatter-CFoRh1fy.js";
|
|
14
|
-
import "./skills-
|
|
15
|
-
import "./path-alias-guards-
|
|
14
|
+
import "./skills-EwyaIyKC.js";
|
|
15
|
+
import "./path-alias-guards-DeOVetT7.js";
|
|
16
16
|
import "./redact-DknVdX-O.js";
|
|
17
17
|
import "./errors-BnRmsfe-.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as resolveCliName } from "./command-format-D8-lYArk.js";
|
|
2
|
-
import { t as resolveSquidClawPackageRoot } from "./squidclaw-root-
|
|
2
|
+
import { t as resolveSquidClawPackageRoot } from "./squidclaw-root-JXyRbQLJ.js";
|
|
3
3
|
import { t as note } from "./note-IoQo8Ol0.js";
|
|
4
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
4
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-PRzaDsjO.js";
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as resolveSquidClawPackageRoot } from "./squidclaw-root-CnE19yKj.js";
|
|
2
2
|
import { r as resolveCliName } from "./command-format-z1t1m-Kx.js";
|
|
3
3
|
import { t as note } from "./note-CBt9wSWa.js";
|
|
4
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
4
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-CuLOFt3t.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
7
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { f as resolveLegacyStateDirs, g as resolveStateDir, m as resolveOAuthDir, p as resolveNewStateDir, t as CONFIG_PATH } from "./paths-CHIu6D1E.js";
|
|
2
|
-
import { Fn as resolveSlackNativeStreaming, I as migrateLegacyConfig, In as resolveSlackStreamingMode, Ln as resolveTelegramPreviewStreamMode, Mn as formatSlackStreamingBooleanMigrationMessage, Pn as resolveDiscordPreviewStreamMode, Qt as normalizeTrustedSafeBinDirs, V as readConfigFileSnapshot, Xt as isTrustedSafeBinPath, Yt as getTrustedSafeBinDirs, jn as formatSlackStreamModeMigrationMessage, ln as resolveCommandResolutionFromArgv, q as SquidClawSchema } from "./auth-profiles-
|
|
2
|
+
import { Fn as resolveSlackNativeStreaming, I as migrateLegacyConfig, In as resolveSlackStreamingMode, Ln as resolveTelegramPreviewStreamMode, Mn as formatSlackStreamingBooleanMigrationMessage, Pn as resolveDiscordPreviewStreamMode, Qt as normalizeTrustedSafeBinDirs, V as readConfigFileSnapshot, Xt as isTrustedSafeBinPath, Yt as getTrustedSafeBinDirs, jn as formatSlackStreamModeMigrationMessage, ln as resolveCommandResolutionFromArgv, q as SquidClawSchema } from "./auth-profiles-CwmInMDd.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-D8-lYArk.js";
|
|
4
|
-
import { d as resolveDefaultAgentId } from "./agent-scope-
|
|
4
|
+
import { d as resolveDefaultAgentId } from "./agent-scope-nEVgVklg.js";
|
|
5
5
|
import { _ as normalizeAccountId, c as normalizeAgentId, g as DEFAULT_ACCOUNT_ID, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, v as normalizeOptionalAccountId } from "./session-key-k6urs9r-.js";
|
|
6
6
|
import { g as resolveHomeDir, u as isRecord } from "./utils-D6vohX1h.js";
|
|
7
7
|
import { l as normalizeChatChannelId } from "./registry-BXcl3IkC.js";
|
|
8
|
-
import { f as parseToolsBySenderTypedKey } from "./dock-
|
|
9
|
-
import { Q as canonicalizeMainSessionAlias, l as saveSessionStore } from "./sessions-
|
|
10
|
-
import { d as formatChannelAccountsDefaultPath, f as formatSetExplicitDefaultInstruction, l as resolveTelegramAccount, p as formatSetExplicitDefaultToConfiguredInstruction, s as listTelegramAccountIds } from "./plugins-
|
|
11
|
-
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-
|
|
12
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
13
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
8
|
+
import { f as parseToolsBySenderTypedKey } from "./dock-W3cGg46W.js";
|
|
9
|
+
import { Q as canonicalizeMainSessionAlias, l as saveSessionStore } from "./sessions-oQJONGWF.js";
|
|
10
|
+
import { d as formatChannelAccountsDefaultPath, f as formatSetExplicitDefaultInstruction, l as resolveTelegramAccount, p as formatSetExplicitDefaultToConfiguredInstruction, s as listTelegramAccountIds } from "./plugins-Bc7YM9X-.js";
|
|
11
|
+
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-DhLi-jyO.js";
|
|
12
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-iHMQLc47.js";
|
|
13
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-COht5jxQ.js";
|
|
14
14
|
import { t as collectProviderDangerousNameMatchingScopes } from "./dangerous-name-matching-CXdnb6je.js";
|
|
15
15
|
import { r as shouldMoveSingleAccountChannelKey, t as fetchTelegramChatId } from "./api-D_ieZ9ip.js";
|
|
16
16
|
import { t as note } from "./note-IoQo8Ol0.js";
|
|
17
|
-
import { t as isWithinDir } from "./path-safety-
|
|
18
|
-
import { n as formatConfigIssueLines } from "./issue-format-
|
|
17
|
+
import { t as isWithinDir } from "./path-safety-D7CjFQvf.js";
|
|
18
|
+
import { n as formatConfigIssueLines } from "./issue-format-BP_8Uzq5.js";
|
|
19
19
|
import { a as isMattermostMutableAllowEntry, c as normalizeTelegramAllowFromEntry, i as isMSTeamsMutableAllowEntry, n as isGoogleChatMutableAllowEntry, o as isSlackMutableAllowEntry, r as isIrcMutableAllowEntry, s as isNumericTelegramUserId, t as isDiscordMutableAllowEntry } from "./mutable-allowlist-detectors-DHXBcz_e.js";
|
|
20
20
|
import os from "node:os";
|
|
21
21
|
import path from "node:path";
|
|
22
22
|
import fs from "node:fs";
|
|
23
23
|
import JSON5 from "json5";
|
|
24
|
-
import
|
|
24
|
+
import fsPromises from "node:fs/promises";
|
|
25
25
|
|
|
26
26
|
//#region src/commands/doctor-legacy-config.ts
|
|
27
27
|
function normalizeCompatibilityConfigValues(cfg) {
|
|
@@ -2134,7 +2134,7 @@ async function maybeMigrateLegacyConfig() {
|
|
|
2134
2134
|
const targetDir = path.join(home, ".squidclaw");
|
|
2135
2135
|
const targetPath = path.join(targetDir, "squidclaw.json");
|
|
2136
2136
|
try {
|
|
2137
|
-
await
|
|
2137
|
+
await fsPromises.access(targetPath);
|
|
2138
2138
|
return changes;
|
|
2139
2139
|
} catch {}
|
|
2140
2140
|
const legacyCandidates = [
|
|
@@ -2144,14 +2144,14 @@ async function maybeMigrateLegacyConfig() {
|
|
|
2144
2144
|
];
|
|
2145
2145
|
let legacyPath = null;
|
|
2146
2146
|
for (const candidate of legacyCandidates) try {
|
|
2147
|
-
await
|
|
2147
|
+
await fsPromises.access(candidate);
|
|
2148
2148
|
legacyPath = candidate;
|
|
2149
2149
|
break;
|
|
2150
2150
|
} catch {}
|
|
2151
2151
|
if (!legacyPath) return changes;
|
|
2152
|
-
await
|
|
2152
|
+
await fsPromises.mkdir(targetDir, { recursive: true });
|
|
2153
2153
|
try {
|
|
2154
|
-
await
|
|
2154
|
+
await fsPromises.copyFile(legacyPath, targetPath, fsPromises.constants.COPYFILE_EXCL);
|
|
2155
2155
|
changes.push(`Migrated legacy config: ${legacyPath} -> ${targetPath}`);
|
|
2156
2156
|
} catch {}
|
|
2157
2157
|
return changes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as normalizeChatChannelId } from "./registry-BXcl3IkC.js";
|
|
2
|
-
import { r as ensurePluginAllowlisted } from "./plugin-auto-enable-
|
|
2
|
+
import { r as ensurePluginAllowlisted } from "./plugin-auto-enable-COht5jxQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/toggle-config.ts
|
|
5
5
|
function setPluginEnabledInConfig(config, pluginId, enabled) {
|
package/dist/entry.js
CHANGED
|
@@ -370,7 +370,7 @@ if (!isMainModule({
|
|
|
370
370
|
}
|
|
371
371
|
function tryHandleRootHelpFastPath(argv) {
|
|
372
372
|
if (!isRootHelpInvocation(argv)) return false;
|
|
373
|
-
import("./program-
|
|
373
|
+
import("./program-C459C7fE.js").then(({ buildProgram }) => {
|
|
374
374
|
buildProgram().outputHelp();
|
|
375
375
|
}).catch((error) => {
|
|
376
376
|
console.error("[squidclaw] Failed to display help:", error instanceof Error ? error.stack ?? error.message : error);
|
|
@@ -389,7 +389,7 @@ if (!isMainModule({
|
|
|
389
389
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
390
390
|
process$1.argv = parsed.argv;
|
|
391
391
|
}
|
|
392
|
-
if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-
|
|
392
|
+
if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-2d0yMxyZ.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
393
393
|
console.error("[squidclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
394
394
|
process$1.exitCode = 1;
|
|
395
395
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as validateSafeBinArgv, Xt as isTrustedSafeBinPath, an as splitCommandChain, cn as resolveAllowlistCandidatePath, fn as extractShellWrapperInlineCommand, hn as isShellWrapperExecutable, ln as resolveCommandResolutionFromArgv, mn as isDispatchWrapperExecutable, on as DEFAULT_SAFE_BINS, rn as isWindowsPlatform, sn as matchAllowlist, tn as analyzeShellCommand, vn as unwrapKnownDispatchWrapperInvocation, wn as SAFE_BIN_PROFILES, yn as unwrapKnownShellMultiplexerInvocation } from "./auth-profiles-
|
|
1
|
+
import { $t as validateSafeBinArgv, Xt as isTrustedSafeBinPath, an as splitCommandChain, cn as resolveAllowlistCandidatePath, fn as extractShellWrapperInlineCommand, hn as isShellWrapperExecutable, ln as resolveCommandResolutionFromArgv, mn as isDispatchWrapperExecutable, on as DEFAULT_SAFE_BINS, rn as isWindowsPlatform, sn as matchAllowlist, tn as analyzeShellCommand, vn as unwrapKnownDispatchWrapperInvocation, wn as SAFE_BIN_PROFILES, yn as unwrapKnownShellMultiplexerInvocation } from "./auth-profiles-CwmInMDd.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-approvals-allowlist.ts
|
|
@@ -2,10 +2,10 @@ import { f as isRich, p as theme } from "./globals-BrhVUl-N.js";
|
|
|
2
2
|
import "./paths-CHIu6D1E.js";
|
|
3
3
|
import { d as defaultRuntime } from "./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,26 +13,26 @@ 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-
|
|
16
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
17
17
|
import "./message-channel-DqvtYF2o.js";
|
|
18
|
-
import "./client-
|
|
19
|
-
import "./call-
|
|
18
|
+
import "./client-XYT0IAgJ.js";
|
|
19
|
+
import "./call-BSt3WRnY.js";
|
|
20
20
|
import "./pairing-token-B_ig96RO.js";
|
|
21
|
-
import "./net-
|
|
22
|
-
import "./tailnet-
|
|
23
|
-
import "./exec-approvals-allowlist-
|
|
21
|
+
import "./net-CmP6gw-e.js";
|
|
22
|
+
import "./tailnet-CUG3_Vq2.js";
|
|
23
|
+
import "./exec-approvals-allowlist-DOxIMtXP.js";
|
|
24
24
|
import { n as formatTimeAgo } from "./format-relative-Czf5fUjn.js";
|
|
25
25
|
import { c as readExecApprovalsSnapshot, p as saveExecApprovals } from "./exec-approvals-Db6myg-N.js";
|
|
26
26
|
import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
27
27
|
import "./progress-DuhDspl6.js";
|
|
28
|
-
import { n as callGatewayFromCli } from "./gateway-rpc-
|
|
29
|
-
import "./systemd-
|
|
30
|
-
import "./service-
|
|
28
|
+
import { n as callGatewayFromCli } from "./gateway-rpc-F18gNFkP.js";
|
|
29
|
+
import "./systemd-BrFu3I64.js";
|
|
30
|
+
import "./service-DsnrBnut.js";
|
|
31
31
|
import { t as renderTable } from "./table-DbDCX_6t.js";
|
|
32
|
-
import { t as describeUnknownError } from "./shared-
|
|
33
|
-
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-
|
|
32
|
+
import { t as describeUnknownError } from "./shared-tolKQpGA.js";
|
|
33
|
+
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-B8VkWVmY.js";
|
|
34
34
|
import JSON5 from "json5";
|
|
35
|
-
import
|
|
35
|
+
import fsPromises from "node:fs/promises";
|
|
36
36
|
|
|
37
37
|
//#region src/cli/exec-approvals-cli.ts
|
|
38
38
|
async function readStdin() {
|
|
@@ -329,7 +329,7 @@ function registerExecApprovalsCli(program) {
|
|
|
329
329
|
if (!opts.file && !opts.stdin) exitWithError("Provide --file or --stdin.");
|
|
330
330
|
if (opts.file && opts.stdin) exitWithError("Use either --file or --stdin (not both).");
|
|
331
331
|
const { source, nodeId, targetLabel, baseHash } = await loadWritableSnapshotTarget(opts);
|
|
332
|
-
const raw = opts.stdin ? await readStdin() : await
|
|
332
|
+
const raw = opts.stdin ? await readStdin() : await fsPromises.readFile(String(opts.file), "utf8");
|
|
333
333
|
let file;
|
|
334
334
|
try {
|
|
335
335
|
file = JSON5.parse(raw);
|
package/dist/{exec-safe-bin-runtime-policy-CSWN6lxg.js → exec-safe-bin-runtime-policy-DhLi-jyO.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { En as resolveSafeBinProfiles, Qt as normalizeTrustedSafeBinDirs, Tn as normalizeSafeBinProfileFixtures, Yt as getTrustedSafeBinDirs, Zt as listWritableExplicitTrustedSafeBinDirs } from "./auth-profiles-
|
|
2
|
-
import { i as resolveSafeBins } from "./exec-approvals-allowlist-
|
|
1
|
+
import { En as resolveSafeBinProfiles, Qt as normalizeTrustedSafeBinDirs, Tn as normalizeSafeBinProfileFixtures, Yt as getTrustedSafeBinDirs, Zt as listWritableExplicitTrustedSafeBinDirs } from "./auth-profiles-CwmInMDd.js";
|
|
2
|
+
import { i as resolveSafeBins } from "./exec-approvals-allowlist-DOxIMtXP.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-safe-bin-runtime-policy.ts
|
|
5
5
|
const INTERPRETER_LIKE_SAFE_BINS = new Set([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { k as resolvePreferredSquidClawTmpDir } from "./globals-BrhVUl-N.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-CHIu6D1E.js";
|
|
3
|
-
import { u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
3
|
+
import { u as resolveAgentWorkspaceDir } from "./agent-scope-nEVgVklg.js";
|
|
4
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-LFsSCTyI.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-C-CRoLDY.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/media/local-roots.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as logWarn } from "./logger-DL3N22PJ.js";
|
|
2
|
-
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
2
|
+
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-DkDM4lyi.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-Mawkd1Br.js";
|
|
4
4
|
import { EnvHttpProxyAgent } from "undici";
|
|
5
5
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as expandHomePrefix } from "./paths-CHIu6D1E.js";
|
|
2
|
-
import { d as hasNodeErrorCode, f as isNotFoundPathError, m as isSymlinkOpenError, p as isPathInside, s as sameFileIdentity } from "./squidclaw-root-
|
|
2
|
+
import { d as hasNodeErrorCode, f as isNotFoundPathError, m as isSymlinkOpenError, p as isPathInside, s as sameFileIdentity } from "./squidclaw-root-JXyRbQLJ.js";
|
|
3
3
|
import { i as logWarn } from "./logger-DL3N22PJ.js";
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-DeOVetT7.js";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { constants } from "node:fs";
|
|
8
|
-
import
|
|
8
|
+
import fsPromises from "node:fs/promises";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { pipeline } from "node:stream/promises";
|
|
11
11
|
|
|
@@ -25,19 +25,19 @@ const ensureTrailingSep = (value) => value.endsWith(path.sep) ? value : value +
|
|
|
25
25
|
async function expandRelativePathWithHome(relativePath) {
|
|
26
26
|
let home = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
27
27
|
try {
|
|
28
|
-
home = await
|
|
28
|
+
home = await fsPromises.realpath(home);
|
|
29
29
|
} catch {}
|
|
30
30
|
return expandHomePrefix(relativePath, { home });
|
|
31
31
|
}
|
|
32
32
|
async function openVerifiedLocalFile(filePath, options) {
|
|
33
33
|
try {
|
|
34
|
-
if ((await
|
|
34
|
+
if ((await fsPromises.lstat(filePath)).isDirectory()) throw new SafeOpenError("not-file", "not a file");
|
|
35
35
|
} catch (err) {
|
|
36
36
|
if (err instanceof SafeOpenError) throw err;
|
|
37
37
|
}
|
|
38
38
|
let handle;
|
|
39
39
|
try {
|
|
40
|
-
handle = await
|
|
40
|
+
handle = await fsPromises.open(filePath, OPEN_READ_FLAGS);
|
|
41
41
|
} catch (err) {
|
|
42
42
|
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
|
|
43
43
|
if (isSymlinkOpenError(err)) throw new SafeOpenError("symlink", "symlink open blocked", { cause: err });
|
|
@@ -45,13 +45,13 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
45
45
|
throw err;
|
|
46
46
|
}
|
|
47
47
|
try {
|
|
48
|
-
const [stat, lstat] = await Promise.all([handle.stat(),
|
|
48
|
+
const [stat, lstat] = await Promise.all([handle.stat(), fsPromises.lstat(filePath)]);
|
|
49
49
|
if (lstat.isSymbolicLink()) throw new SafeOpenError("symlink", "symlink not allowed");
|
|
50
50
|
if (!stat.isFile()) throw new SafeOpenError("not-file", "not a file");
|
|
51
51
|
if (options?.rejectHardlinks && stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
52
52
|
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during read");
|
|
53
|
-
const realPath = await
|
|
54
|
-
const realStat = await
|
|
53
|
+
const realPath = await fsPromises.realpath(filePath);
|
|
54
|
+
const realStat = await fsPromises.stat(realPath);
|
|
55
55
|
if (options?.rejectHardlinks && realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
56
56
|
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
57
57
|
return {
|
|
@@ -69,7 +69,7 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
69
69
|
async function resolvePathWithinRoot(params) {
|
|
70
70
|
let rootReal;
|
|
71
71
|
try {
|
|
72
|
-
rootReal = await
|
|
72
|
+
rootReal = await fsPromises.realpath(params.rootDir);
|
|
73
73
|
} catch (err) {
|
|
74
74
|
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "root dir not found");
|
|
75
75
|
throw err;
|
|
@@ -170,7 +170,7 @@ function buildAtomicWriteTempPath(targetPath) {
|
|
|
170
170
|
return path.join(dir, `.${base}.${process.pid}.${randomUUID()}.tmp`);
|
|
171
171
|
}
|
|
172
172
|
async function writeTempFileForAtomicReplace(params) {
|
|
173
|
-
const tempHandle = await
|
|
173
|
+
const tempHandle = await fsPromises.open(params.tempPath, OPEN_WRITE_CREATE_FLAGS, params.mode);
|
|
174
174
|
try {
|
|
175
175
|
if (typeof params.data === "string") await tempHandle.writeFile(params.data, params.encoding ?? "utf8");
|
|
176
176
|
else await tempHandle.writeFile(params.data);
|
|
@@ -180,7 +180,7 @@ async function writeTempFileForAtomicReplace(params) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
async function verifyAtomicWriteResult(params) {
|
|
183
|
-
const rootWithSep = ensureTrailingSep(await
|
|
183
|
+
const rootWithSep = ensureTrailingSep(await fsPromises.realpath(params.rootDir));
|
|
184
184
|
const opened = await openVerifiedLocalFile(params.targetPath, { rejectHardlinks: true });
|
|
185
185
|
try {
|
|
186
186
|
if (!sameFileIdentity(opened.stat, params.expectedStat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
@@ -191,13 +191,13 @@ async function verifyAtomicWriteResult(params) {
|
|
|
191
191
|
}
|
|
192
192
|
async function resolveOpenedFileRealPathForHandle(handle, ioPath) {
|
|
193
193
|
try {
|
|
194
|
-
return await
|
|
194
|
+
return await fsPromises.realpath(ioPath);
|
|
195
195
|
} catch (err) {
|
|
196
196
|
if (!isNotFoundPathError(err)) throw err;
|
|
197
197
|
}
|
|
198
198
|
const fdCandidates = process.platform === "linux" ? [`/proc/self/fd/${handle.fd}`, `/dev/fd/${handle.fd}`] : process.platform === "win32" ? [] : [`/dev/fd/${handle.fd}`];
|
|
199
199
|
for (const fdPath of fdCandidates) try {
|
|
200
|
-
return await
|
|
200
|
+
return await fsPromises.realpath(fdPath);
|
|
201
201
|
} catch {}
|
|
202
202
|
throw new SafeOpenError("path-mismatch", "unable to resolve opened file path");
|
|
203
203
|
}
|
|
@@ -212,10 +212,10 @@ async function openWritableFileWithinRoot(params) {
|
|
|
212
212
|
} catch (err) {
|
|
213
213
|
throw new SafeOpenError("invalid-path", "path alias escape blocked", { cause: err });
|
|
214
214
|
}
|
|
215
|
-
if (params.mkdir !== false) await
|
|
215
|
+
if (params.mkdir !== false) await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
216
216
|
let ioPath = resolved;
|
|
217
217
|
try {
|
|
218
|
-
const resolvedRealPath = await
|
|
218
|
+
const resolvedRealPath = await fsPromises.realpath(resolved);
|
|
219
219
|
if (!isPathInside(rootWithSep, resolvedRealPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
220
220
|
ioPath = resolvedRealPath;
|
|
221
221
|
} catch (err) {
|
|
@@ -227,10 +227,10 @@ async function openWritableFileWithinRoot(params) {
|
|
|
227
227
|
let createdForWrite = false;
|
|
228
228
|
try {
|
|
229
229
|
try {
|
|
230
|
-
handle = await
|
|
230
|
+
handle = await fsPromises.open(ioPath, OPEN_WRITE_EXISTING_FLAGS, fileMode);
|
|
231
231
|
} catch (err) {
|
|
232
232
|
if (!isNotFoundPathError(err)) throw err;
|
|
233
|
-
handle = await
|
|
233
|
+
handle = await fsPromises.open(ioPath, OPEN_WRITE_CREATE_FLAGS, fileMode);
|
|
234
234
|
createdForWrite = true;
|
|
235
235
|
}
|
|
236
236
|
} catch (err) {
|
|
@@ -244,7 +244,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
244
244
|
if (!stat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
245
245
|
if (stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
246
246
|
try {
|
|
247
|
-
const lstat = await
|
|
247
|
+
const lstat = await fsPromises.lstat(ioPath);
|
|
248
248
|
if (lstat.isSymbolicLink() || !lstat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
249
249
|
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
250
250
|
} catch (err) {
|
|
@@ -252,7 +252,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
252
252
|
}
|
|
253
253
|
const realPath = await resolveOpenedFileRealPathForHandle(handle, ioPath);
|
|
254
254
|
openedRealPath = realPath;
|
|
255
|
-
const realStat = await
|
|
255
|
+
const realStat = await fsPromises.stat(realPath);
|
|
256
256
|
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
257
257
|
if (realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
258
258
|
if (!isPathInside(rootWithSep, realPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
@@ -267,7 +267,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
267
267
|
const cleanupCreatedPath = createdForWrite && err instanceof SafeOpenError;
|
|
268
268
|
const cleanupPath = openedRealPath ?? ioPath;
|
|
269
269
|
await handle.close().catch(() => {});
|
|
270
|
-
if (cleanupCreatedPath) await
|
|
270
|
+
if (cleanupCreatedPath) await fsPromises.rm(cleanupPath, { force: true }).catch(() => {});
|
|
271
271
|
throw err;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -290,7 +290,7 @@ async function writeFileWithinRoot(params) {
|
|
|
290
290
|
encoding: params.encoding,
|
|
291
291
|
mode: targetMode || 384
|
|
292
292
|
});
|
|
293
|
-
await
|
|
293
|
+
await fsPromises.rename(tempPath, destinationPath);
|
|
294
294
|
tempPath = null;
|
|
295
295
|
try {
|
|
296
296
|
await verifyAtomicWriteResult({
|
|
@@ -303,7 +303,7 @@ async function writeFileWithinRoot(params) {
|
|
|
303
303
|
throw err;
|
|
304
304
|
}
|
|
305
305
|
} finally {
|
|
306
|
-
if (tempPath) await
|
|
306
|
+
if (tempPath) await fsPromises.rm(tempPath, { force: true }).catch(() => {});
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
async function copyFileWithinRoot(params) {
|
|
@@ -331,7 +331,7 @@ async function copyFileWithinRoot(params) {
|
|
|
331
331
|
});
|
|
332
332
|
await pipeline(sourceStream, targetStream);
|
|
333
333
|
} catch (err) {
|
|
334
|
-
if (target?.createdForWrite) await
|
|
334
|
+
if (target?.createdForWrite) await fsPromises.rm(target.openedRealPath, { force: true }).catch(() => {});
|
|
335
335
|
throw err;
|
|
336
336
|
} finally {
|
|
337
337
|
if (!sourceClosedByStream) await source.handle.close().catch(() => {});
|