squidclaw 3.0.5 → 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-C_l8KCRi.js → accounts-CK_sHUyT.js} +2 -2
- package/dist/{accounts-B3tweNWP.js → accounts-CkF7YwoF.js} +4 -4
- package/dist/{accounts-DeqNOvBo.js → accounts-Cuwg9Tan.js} +1 -1
- package/dist/{accounts-ZiDDa9KJ.js → accounts-DbloMfwT.js} +2 -2
- package/dist/{acp-cli-BWSZnzfY.js → acp-cli-CLRuoXWa.js} +8 -8
- package/dist/{active-listener-Ccd2xBZE.js → active-listener-AepfNSUY.js} +2 -2
- package/dist/{agent-scope-Cq4vDGrK.js → agent-scope-nEVgVklg.js} +17 -17
- package/dist/{agents-IDAdnabb.js → agents-rUKtNaUK.js} +14 -14
- package/dist/{agents.config-DF51cWyU.js → agents.config-DFuCqhIm.js} +1 -1
- package/dist/{agents.config-iIxcfoac.js → agents.config-DsnQkHm9.js} +2 -2
- package/dist/{api-key-rotation-C-dRYWuo.js → api-key-rotation-BHFJiYbw.js} +2 -2
- package/dist/{api-key-rotation-Ck41sTpR.js → api-key-rotation-CsMKifj6.js} +1 -1
- package/dist/{audio-preflight-BYOECG4f.js → audio-preflight-BKgdc7dS.js} +30 -30
- package/dist/{audio-preflight-C9GE3WMm.js → audio-preflight-CzOW6WUm.js} +34 -34
- package/dist/{audio-transcription-runner-CPEhpuLO.js → audio-transcription-runner-BnbdYMDl.js} +12 -12
- 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/{audit-membership-runtime-CPJnbh0Q.js → audit-membership-runtime-DyLj-uhz.js} +3 -3
- package/dist/{auth-BN5Ax7XQ.js → auth-C5nn2VmD.js} +1 -1
- package/dist/{auth-choice-Da4gjROu.js → auth-choice-8xkQwsCU.js} +3 -3
- package/dist/{auth-choice-CqmB4z69.js → auth-choice-B4oZiQl3.js} +13 -13
- package/dist/{auth-choice-BnBwCCXv.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-BBId5XNb.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/bundled/boot-md/handler.js +49 -49
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +49 -49
- 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-activity-Dmu5wZZC.js → channel-activity-C5kTj83_.js} +3 -3
- package/dist/{channel-options-C5QMYKJH.js → channel-options-BNOKnBE0.js} +3 -3
- package/dist/{channel-options-BTUJmt49.js → channel-options-BsIX_w4i.js} +1 -1
- package/dist/{channel-selection-BqwS1Rlq.js → channel-selection-CFWQq1nS.js} +1 -1
- package/dist/{channel-web-BDBaYap6.js → channel-web-BTKQul7k.js} +1 -1
- package/dist/{channel-web-DXQukfrw.js → channel-web-BaF7Svv2.js} +17 -17
- package/dist/{channels-cli-CodE2_4U.js → channels-cli-C1WKiZuu.js} +93 -93
- package/dist/{channels-cli-nZFTWJm3.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-BuS4b_BB.js → chrome-CjxCwFA9.js} +15 -15
- 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-xa7nfGYO.js → cli-CfB7Ynj1.js} +2 -2
- package/dist/{cli-cvjr3PJM.js → cli-DQxrr5jc.js} +73 -73
- package/dist/{client-cfjtRboM.js → client-XYT0IAgJ.js} +2 -2
- package/dist/{command-registry-De6cz7-E.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/{commands-registry-BjVOLvf0.js → commands-registry-D6ZOTo1C.js} +4 -4
- package/dist/{completion-cli-DFItGNcw.js → completion-cli-CuLOFt3t.js} +1 -1
- package/dist/{completion-cli-D-XlEj2O.js → completion-cli-PRzaDsjO.js} +13 -13
- package/dist/{config-cli-CiS7hyXQ.js → config-cli-C0rMJEvV.js} +1 -1
- package/dist/{config-cli-DIU6V325.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-BMXU0of9.js → configure-BZg51IRW.js} +17 -17
- package/dist/{configure-COgj88fo.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-Doz3CsCY.js → daemon-cli-B7j3r4qt.js} +1 -1
- package/dist/{daemon-cli-CE2oMOil.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-C8FulfkW.js → deliver-D-f6Wa3i.js} +11 -11
- package/dist/{deliver-BkXhWlhP.js → deliver-f-YZpnF5.js} +7 -7
- package/dist/deliver-runtime-COMirbwL.js +61 -0
- package/dist/deliver-runtime-_egya0QZ.js +36 -0
- package/dist/deps-send-discord.runtime-BRE0s2nz.js +26 -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-imessage.runtime-DbIRBnmD.js +25 -0
- package/dist/deps-send-signal.runtime-B4h6X3o4.js +24 -0
- package/dist/deps-send-signal.runtime-DnMP5CEo.js +34 -0
- package/dist/deps-send-slack.runtime-BWXOnOxS.js +22 -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-telegram.runtime-YvauJtgv.js +27 -0
- package/dist/{deps-send-whatsapp.runtime-Bk0MRFLz.js → deps-send-whatsapp.runtime-Bqxr0eK9.js} +4 -4
- package/dist/deps-send-whatsapp.runtime-CiG6xd2e.js +60 -0
- 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/{diagnostic-D2vYK6Fg.js → diagnostic-ySwZga6c.js} +2 -2
- 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-BiDcNo6Q.js → doctor-completion-Ce6ELjT5.js} +2 -2
- package/dist/{doctor-completion-8rS5Omw7.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/{errors-KKxnQK8G.js → errors-kkRuS2Cs.js} +1 -1
- 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-DCLFwngk.js → fetch-BLS7EMnx.js} +4 -4
- package/dist/{fetch-guard-C34T9Lg9.js → fetch-guard-C-CRoLDY.js} +1 -1
- package/dist/{fetch-guard-bk7uDnb8.js → fetch-guard-D0fXNJls.js} +2 -2
- package/dist/{frontmatter-EuNpTTq9.js → frontmatter-Cq1TcIQ2.js} +3 -3
- package/dist/fs-safe-BPQ-per2.js +352 -0
- package/dist/{fs-safe-DdANjYLv.js → fs-safe-BoB4X3GD.js} +3 -3
- package/dist/{gateway-cli-CVV2dd-0.js → gateway-cli-BJsxsz40.js} +10 -10
- package/dist/{gateway-cli-COXjaMFJ.js → gateway-cli-BZDvkqJu.js} +153 -153
- package/dist/{gateway-rpc-CdMQ58t-.js → gateway-rpc-F18gNFkP.js} +1 -1
- package/dist/{health-CODYcJkj.js → health-3pSJD-u-.js} +11 -11
- package/dist/{health-CHe6jetL.js → health-CrEBegrW.js} +1 -1
- package/dist/{hooks-cli-f3VAZszh.js → hooks-cli-BPUmvGPb.js} +3 -3
- package/dist/{hooks-cli-Cd9srSlj.js → hooks-cli-CU94KjOw.js} +81 -81
- package/dist/{hooks-status-DMFBAUq8.js → hooks-status-BlgSVDvN.js} +1 -1
- package/dist/{image-DYXL4Dt_.js → image-C-C7hQ26.js} +6 -6
- package/dist/{image-ops-Dly8SSF7.js → image-ops-CdgypS_g.js} +2 -2
- 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-D7n4dID4.js +29 -0
- 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-BxAD7czj.js → ir-BvisJWXv.js} +8 -8
- 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/{legacy-names-CrhimhR4.js → legacy-names-aGJJuzM_.js} +1 -1
- package/dist/{lifecycle-core-C6bIL3hq.js → lifecycle-core-Bj47aKSO.js} +5 -5
- package/dist/llm-slug-generator.js +49 -49
- package/dist/{logger-CNkhF83z.js → logger-CnTSBL7T.js} +1 -1
- package/dist/{login-BfH1AL2k.js → login-BMeLPUiO.js} +5 -5
- package/dist/{login-BEjm9EOB.js → login-DYouthtN.js} +3 -3
- package/dist/{login-qr-c2E295av.js → login-qr-B2B67qqQ.js} +8 -8
- 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-Bw9MibiQ.js → manager-DdxMYEDd.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/manager-runtime-BMygJEz3.js +18 -0
- 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/{model-selection-aT08Cbr0.js → model-selection-ag9BmVct.js} +10 -10
- package/dist/{models-BtRE9AsP.js → models-B554bYQk.js} +17 -17
- package/dist/{models-cli-Dj4eTFQ6.js → models-cli-6F6W0KTG.js} +78 -78
- package/dist/{models-cli-Vn7VG0Mg.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-DEbLpq7-.js → npm-resolution-Cc8AvA7u.js} +1 -1
- package/dist/{npm-resolution-DRj9EZYQ.js → npm-resolution-_EeE_Ujp.js} +4 -4
- package/dist/{onboard-Dzozp7bp.js → onboard-BBE2XnYk.js} +6 -6
- package/dist/{onboard-DRyS50DA.js → onboard-Drnwax3G.js} +4 -4
- package/dist/{onboard-channels-HPa4NzTv.js → onboard-channels-BB39kGye.js} +2 -2
- package/dist/{onboard-channels-CZ5_aWYh.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-PXSBTzql.js → onboard-helpers-DHa51Syk.js} +11 -11
- package/dist/{onboard-helpers-R4b3Kr01.js → onboard-helpers-DKMtUE3F.js} +1 -1
- package/dist/{onboard-hooks-CTbjgLDl.js → onboard-hooks-DyxckB2C.js} +4 -4
- package/dist/{onboard-remote-xgST1KeC.js → onboard-remote-BcqJ3Tz_.js} +1 -1
- package/dist/{onboard-remote-9ShnuysR.js → onboard-remote-DIdDJK99.js} +4 -4
- package/dist/{onboard-skills-B7Q69fhO.js → onboard-skills-UY8CYY-W.js} +1 -1
- package/dist/{onboard-skills-DOaiUlDS.js → onboard-skills-tmtzDwJK.js} +4 -4
- package/dist/{onboarding-DpKLGw-P.js → onboarding-CzKQyWBA.js} +14 -14
- package/dist/{onboarding-D8yzBiwp.js → onboarding-gTeRtrT0.js} +9 -9
- package/dist/{onboarding.finalize-Blks6x4H.js → onboarding.finalize-Yn7Z20A9.js} +87 -87
- package/dist/{onboarding.finalize-YFmR3rfz.js → onboarding.finalize-qUj9NQZX.js} +6 -6
- package/dist/{onboarding.gateway-config-BLIUBAtE.js → onboarding.gateway-config-BuZAc2S6.js} +1 -1
- package/dist/{onboarding.gateway-config-4L8AnL42.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-BJNHKrk8.js → outbound-DHDBvGLA.js} +6 -6
- package/dist/{outbound-attachment-BLSOzWVO.js → outbound-attachment-CGkDHHwN.js} +2 -2
- package/dist/{outbound-attachment-qvD-NbIp.js → outbound-attachment-CqXiWbKN.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-VI6pee_i.js → path-alias-guards-DORgbZ1w.js} +1 -1
- package/dist/path-alias-guards-DeOVetT7.js +43 -0
- package/dist/{path-safety-C95DzArw.js → path-safety-D7CjFQvf.js} +1 -1
- package/dist/{paths-DfuVHiHu.js → paths-D6mnO6Ni.js} +9 -9
- package/dist/{paths-DH4hVuGM.js → paths-DSd911Oe.js} +1 -1
- package/dist/{pi-embedded-CZFbSZlb.js → pi-embedded-CHzwPt6X.js} +85 -85
- package/dist/{pi-embedded-helpers-BFbdgYu8.js → pi-embedded-helpers-BVBXhn3i.js} +6 -6
- package/dist/{pi-embedded-helpers-CSG6fsiY.js → pi-embedded-helpers-Bse_QhEf.js} +19 -19
- package/dist/{pi-model-discovery-BbP0l7V0.js → pi-model-discovery-DAzuqPoG.js} +1 -1
- 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-model-discovery-runtime-Dpu7Jm2L.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-CS0hOgiM.js → pi-tools.before-tool-call.runtime-2Sp1jmlg.js} +7 -7
- 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-DURw0MYp.js → plugin-registry-C3_4F3FU.js} +1 -1
- package/dist/{plugin-registry-8GqJnXZm.js → plugin-registry-FJ90EneI.js} +3 -3
- package/dist/plugin-sdk/accounts-BNuRM3rG.js +288 -0
- package/dist/plugin-sdk/accounts-CGTYP7Rh.js +46 -0
- package/dist/plugin-sdk/accounts-CcS9IAhD.js +35 -0
- package/dist/plugin-sdk/active-listener-CTsLn1AX.js +50 -0
- package/dist/plugin-sdk/api-key-rotation-Bhck7wki.js +181 -0
- package/dist/plugin-sdk/audio-preflight-CRGLqp-g.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-RXsskMMk.js +2176 -0
- package/dist/plugin-sdk/audit-membership-runtime-B9b-zRwg.js +58 -0
- package/dist/plugin-sdk/channel-activity-gPvD1D7S.js +94 -0
- package/dist/plugin-sdk/channel-web-LGl1zPJt.js +2256 -0
- package/dist/plugin-sdk/chrome-9Y_LcUg1.js +2415 -0
- package/dist/plugin-sdk/commands-registry-CcdEPxVg.js +1125 -0
- package/dist/plugin-sdk/config-CrQ5bCrw.js +17912 -0
- package/dist/plugin-sdk/deliver-D3xr5AkB.js +1694 -0
- package/dist/plugin-sdk/deliver-runtime-B79ZQu69.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-BOQZIqC8.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-CuHOc9Ka.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-iPynghkE.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-DNTbE5jS.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-7CR-xtCF.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-bUi8kghi.js +57 -0
- package/dist/plugin-sdk/diagnostic-BXkLYs_9.js +319 -0
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/plugin-sdk/errors-B8oJXuCF.js +54 -0
- package/dist/plugin-sdk/fetch-guard-C55uvn27.js +156 -0
- package/dist/{fs-safe-DPYj7h8A.js → plugin-sdk/fs-safe-Dqmpk-Fr.js} +6 -6
- package/dist/plugin-sdk/image-3xW7IJdq.js +2310 -0
- package/dist/plugin-sdk/image-ops-BjK2qZZn.js +584 -0
- package/dist/plugin-sdk/image-runtime-CZZJJqcW.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/ir-CS7uuQhN.js +1296 -0
- package/dist/plugin-sdk/local-roots-DmOKwiNW.js +186 -0
- package/dist/plugin-sdk/logger-DDdrdbDu.js +1163 -0
- package/dist/plugin-sdk/login-BSEeU27Y.js +57 -0
- package/dist/plugin-sdk/login-qr-BwWJsDSj.js +320 -0
- package/dist/plugin-sdk/manager-DiXPCubI.js +3917 -0
- package/dist/plugin-sdk/manager-runtime-Ct0m9UJC.js +15 -0
- package/dist/plugin-sdk/outbound-attachment-BoFx05zw.js +19 -0
- package/dist/plugin-sdk/outbound-cpqK1GFe.js +212 -0
- package/dist/{path-alias-guards-vfYYQFIg.js → plugin-sdk/path-alias-guards-gBhrAn14.js} +1 -1
- package/dist/plugin-sdk/paths-C6W4VHoa.js +166 -0
- package/dist/plugin-sdk/pi-embedded-helpers-C-B9B6Sp.js +9627 -0
- package/dist/plugin-sdk/pi-model-discovery-BGEeoPzN.js +134 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-BHZ_Htob.js +8 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-ByN_xThw.js +354 -0
- package/dist/plugin-sdk/plugins-D5cdn70e.js +864 -0
- package/dist/{proxy-fetch-xYMu9mkn.js → plugin-sdk/proxy-fetch-ZPEvp58f.js} +1 -1
- package/dist/plugin-sdk/pw-ai-C_QOIuin.js +1938 -0
- package/dist/{qmd-manager-BkSWV1Q1.js → plugin-sdk/qmd-manager-6bozlfFg.js} +11 -17
- package/dist/plugin-sdk/query-expansion-eeVz_aEm.js +1011 -0
- package/dist/{redact-CNCiJdri.js → plugin-sdk/redact-BoNEjbpF.js} +1 -1
- package/dist/plugin-sdk/reply-CQUX_haM.js +98828 -0
- package/dist/plugin-sdk/resolve-outbound-target-Dbz0O8cR.js +40 -0
- package/dist/plugin-sdk/run-with-concurrency-5DMu9szx.js +1994 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-OthrtsLL.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Q2HL0zL3.js +19 -0
- package/dist/plugin-sdk/send-BACEu1Un.js +414 -0
- package/dist/plugin-sdk/send-BU4OoR7u.js +2587 -0
- package/dist/plugin-sdk/send-DbxOJ_BC.js +3135 -0
- package/dist/plugin-sdk/send-n932vjT5.js +540 -0
- package/dist/plugin-sdk/send-uCPS53j8.js +503 -0
- package/dist/plugin-sdk/session-DenDKR_-.js +169 -0
- package/dist/plugin-sdk/skill-commands-BK1KDKmS.js +342 -0
- package/dist/plugin-sdk/skills-D4am-zkO.js +1428 -0
- package/dist/plugin-sdk/slash-commands.runtime-DWfFqMZw.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-pnWH5AjM.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-DxvNWv_E.js +16 -0
- package/dist/plugin-sdk/ssrf-2WBi1Tzx.js +202 -0
- package/dist/plugin-sdk/store-BKDMuvyn.js +81 -0
- package/dist/plugin-sdk/subagent-registry-runtime-hH9ADku1.js +52 -0
- package/dist/plugin-sdk/tables-CrDYcv_b.js +55 -0
- package/dist/{target-errors-CRQlPF1u.js → plugin-sdk/target-errors-aOwE-MIU.js} +2 -2
- package/dist/plugin-sdk/thinking-D41FMh9T.js +1206 -0
- package/dist/{tokens-B9Gk6Ss5.js → plugin-sdk/tokens-CTIYTLWu.js} +1 -1
- package/dist/plugin-sdk/tool-images-CWc54lpI.js +274 -0
- package/dist/plugin-sdk/web-DjKONHqF.js +56 -0
- package/dist/plugin-sdk/whatsapp-actions-DEZcm_CZ.js +80 -0
- package/dist/plugin-sdk/zalouser.js +2 -2
- package/dist/{plugins-BDTkSIi7.js → plugins-Bc7YM9X-.js} +2 -2
- package/dist/{plugins-Cg99ej4a.js → plugins-DXkm70nK.js} +6 -6
- package/dist/{plugins-cli-DpZYmju3.js → plugins-cli-CTRNVYrz.js} +83 -83
- package/dist/{plugins-cli-DmTsD71d.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-DSb6ocNC.js → program-C459C7fE.js} +81 -81
- package/dist/{program-context-ooZUt2gS.js → program-context-CQGS-T69.js} +18 -18
- package/dist/{prompt-select-styled-Dt-WhnQ0.js → prompt-select-styled-CbU0kt6K.js} +5 -5
- package/dist/{prompt-select-styled-BflFyz9P.js → prompt-select-styled-Db5isrWq.js} +40 -40
- package/dist/{provider-auth-helpers-DVomEnsq.js → provider-auth-helpers-BdoxZkJ5.js} +1 -1
- package/dist/{provider-auth-helpers-o8UcxFzE.js → provider-auth-helpers-CHA2RYGH.js} +5 -5
- package/dist/{proxy-env-BNo93HMb.js → proxy-env-D75CWSOo.js} +1 -1
- package/dist/{proxy-env-BDzLr-Xu.js → proxy-env-DkDM4lyi.js} +1 -1
- package/dist/proxy-fetch-lH6RsRTE.js +38 -0
- package/dist/{push-apns-C7qyD1SB.js → push-apns-Bmzz46UG.js} +1 -1
- package/dist/{push-apns-ByOCwUIb.js → push-apns-QRl14PL-.js} +5 -5
- package/dist/{pw-ai-DL4-zFQ2.js → pw-ai-BkViDf6X.js} +18 -18
- package/dist/{pw-ai-DGILOk_h.js → pw-ai-BwRP3TWc.js} +12 -12
- package/dist/{qmd-manager-BWffUeZv.js → qmd-manager-BN0siR2Z.js} +9 -9
- package/dist/qmd-manager-BsL_hcOB.js +1454 -0
- 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/{query-expansion-yY0Xn9Kw.js → query-expansion-Dzxt6kXo.js} +4 -4
- package/dist/redact-DvzicBMu.js +319 -0
- package/dist/{redact-snapshot-COZ-I-Tx.js → redact-snapshot-j2UcqIGl.js} +1 -1
- package/dist/{register.agent-CqJmJqZY.js → register.agent-BcHDGbDj.js} +8 -8
- package/dist/{register.agent-fGunIm89.js → register.agent-CKuJqUxQ.js} +94 -94
- package/dist/register.configure--iuZf-Se.js +165 -0
- package/dist/{register.configure-BYOtTrkD.js → register.configure-C7zgVxZQ.js} +12 -12
- package/dist/{register.maintenance-BvrntMJ0.js → register.maintenance-BvXK5kse.js} +95 -95
- package/dist/{register.maintenance-q9TelW4m.js → register.maintenance-HxvARfCH.js} +8 -8
- package/dist/{register.message-CIpJNwpb.js → register.message-CZKi0dsZ.js} +3 -3
- package/dist/{register.message-gTJNayB2.js → register.message-CexCaCLj.js} +74 -74
- package/dist/{register.onboard-CdLxC6e6.js → register.onboard-BSoXszGW.js} +3 -3
- package/dist/{register.onboard-CWYauTOU.js → register.onboard-CYj4_MtL.js} +18 -18
- package/dist/{register.setup-BVQjSCo7.js → register.setup-BCIiKYDH.js} +3 -3
- package/dist/{register.setup-BCWevQ6z.js → register.setup-COivNCUG.js} +21 -21
- package/dist/{register.status-health-sessions-D6Z0cWR2.js → register.status-health-sessions-B1n45-Cb.js} +4 -4
- package/dist/{register.status-health-sessions-7J5qMNiH.js → register.status-health-sessions-DV9c3uve.js} +88 -88
- package/dist/{register.subclis-CaQKvJ0R.js → register.subclis-DMvO_J4V.js} +31 -31
- package/dist/{reply-lnANjYYy.js → reply-LaODRY80.js} +5 -5
- package/dist/{rpc-C4LCuyHT.js → rpc-B8VkWVmY.js} +1 -1
- package/dist/{run-main-fZjFwk8-.js → run-main-2d0yMxyZ.js} +93 -93
- package/dist/{run-with-concurrency-D05zyBvx.js → run-with-concurrency-BFR3ReeF.js} +3 -3
- 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-login.runtime-DSR-m0FW.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-Blywd_bv.js +22 -0
- 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-Ds2QFFHB.js → send-C98RfcAb.js} +5 -5
- package/dist/{send-rtczuBFr.js → send-Co5Bqwuo.js} +6 -6
- package/dist/{send-Dp0cFCnc.js → send-DcJ1pKjV.js} +4 -4
- package/dist/{send-Dg2OQTBD.js → send-DjL7KlMV.js} +8 -8
- package/dist/{send-CVe_wjZr.js → send-Do7hKDL9.js} +7 -7
- package/dist/{send-DxZOuYSz.js → send-NhE5ebSK.js} +8 -8
- package/dist/{send-DTmXRnXD.js → send-bW7jDv8D.js} +14 -14
- 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-ByTGIHN6.js → server-node-events-7TeThsXp.js} +74 -74
- package/dist/{server-node-events-CZSHLRjW.js → server-node-events-BZFU_fm1.js} +3 -3
- package/dist/{service-D6lUMZKF.js → service-DsnrBnut.js} +15 -15
- package/dist/{session-B-spPtFw.js → session-QSn69XeJ.js} +4 -4
- 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-commands-BU_EPKGI.js → skill-commands-Bi_jchJn.js} +5 -5
- package/dist/{skill-scanner-CvS725eQ.js → skill-scanner--QKHR8U0.js} +6 -6
- package/dist/{skills-BMJJ-o7Q.js → skills-CTV78w4q.js} +7 -7
- 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-63MUmCBt.js +16 -0
- 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-oqezzRLs.js → slash-dispatch.runtime-DLLn0I6r.js} +2 -2
- package/dist/slash-dispatch.runtime-DuJRl-LD.js +56 -0
- package/dist/slash-skill-commands.runtime-B3MSSAQ-.js +20 -0
- 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-CLisA75R.js → status-BHMVPBt8.js} +27 -27
- package/dist/{status-DWG2unIb.js → status-FEZLL4zc.js} +3 -3
- package/dist/{status.update-CiLU9RPF.js → status.update-BGIm6we4.js} +2 -2
- package/dist/{store-BZJ7k8zI.js → store-B89Hj8Ub.js} +2 -2
- package/dist/{store-BEIcnlgx.js → store-BTkIx401.js} +5 -5
- package/dist/{subagent-registry-DIG5cv0C.js → subagent-registry-O65q5PYJ.js} +149 -149
- package/dist/subagent-registry-runtime-CHCU3Vzl.js +114 -0
- package/dist/{subagent-registry-runtime-Dn9NdIkG.js → subagent-registry-runtime-CMaj_reT.js} +2 -2
- package/dist/subagent-registry-runtime-COygB9b1.js +56 -0
- package/dist/{subsystem-DwbSi7gL.js → subsystem-6v7sWnAD.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/{tables-DCs7kcl5.js → tables-DGHzaXQz.js} +1 -1
- package/dist/{tailnet-BTCJZWyh.js → tailnet-CUG3_Vq2.js} +1 -1
- package/dist/target-errors-C_rnMuJ2.js +195 -0
- package/dist/{target-errors-p185Iwir.js → target-errors-CweAa7L9.js} +2 -2
- package/dist/{thinking-C7-zgrYU.js → thinking-SdNGqtJE.js} +7 -7
- package/dist/tokens-DfbMVF9y.js +52 -0
- package/dist/{tool-images-gH3TaDhx.js → tool-images-8BKrL7Bn.js} +2 -2
- 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-CxWkuyMh.js → update-cli-MNc9pQ8Z.js} +104 -104
- package/dist/{update-cli-BOA7uNXd.js → update-cli-XQA8HnPH.js} +9 -9
- package/dist/{update-runner-4xWzr8_S.js → update-runner-D91Jmj0S.js} +16 -16
- package/dist/{update-runner-CBzd_nJ6.js → update-runner-DVgVKydP.js} +1 -1
- package/dist/web-CPFzvE3y.js +118 -0
- package/dist/{web-COBpRjL9.js → web-D9tKNsmC.js} +3 -3
- package/dist/{web-DNTMnpXn.js → web-DyCuTR9b.js} +53 -53
- 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/{whatsapp-actions-BcYHedDV.js → whatsapp-actions-BDkbnZVH.js} +19 -19
- 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/{workspace-C1XiGBnY.js → workspace-kVMIaBrV.js} +2 -2
- package/dist/{wsl-CvQfS6aU.js → wsl-CsGe5QCP.js} +2 -2
- package/package.json +1 -1
- package/dist/deliver-runtime-DAHX6Egt.js +0 -36
- package/dist/deliver-runtime-DbymeppL.js +0 -61
- package/dist/deps-send-discord.runtime-6_M_KIhD.js +0 -26
- package/dist/deps-send-discord.runtime-OZDSsMD1.js +0 -36
- package/dist/deps-send-imessage.runtime-BI2MiGBZ.js +0 -35
- package/dist/deps-send-imessage.runtime-KQo4sl7j.js +0 -25
- package/dist/deps-send-signal.runtime-BlfNS-W1.js +0 -34
- package/dist/deps-send-signal.runtime-_JnikN9v.js +0 -24
- package/dist/deps-send-slack.runtime-AAGitgm1.js +0 -22
- package/dist/deps-send-slack.runtime-CkRysg88.js +0 -32
- package/dist/deps-send-telegram.runtime-CVNYJjEt.js +0 -27
- package/dist/deps-send-whatsapp.runtime-5oLdo69Y.js +0 -60
- package/dist/deps-send-whatsapp.runtime-DSZbuJSf.js +0 -119
- package/dist/image-runtime-BL0nz9jO.js +0 -55
- package/dist/image-runtime-DsgEYYCB.js +0 -29
- package/dist/manager-runtime-BaiUrBAz.js +0 -18
- package/dist/pi-model-discovery-runtime-DHUCh3qR.js +0 -11
- package/dist/register.configure-BSC7QkD7.js +0 -165
- package/dist/runtime-whatsapp-login.runtime-B4wlBpXd.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-Bw-aS4TH.js +0 -22
- package/dist/slash-commands.runtime-BVe8kFs6.js +0 -16
- package/dist/slash-dispatch.runtime--zkPOYs8.js +0 -56
- package/dist/slash-dispatch.runtime-aOd34tJL.js +0 -114
- package/dist/slash-skill-commands.runtime-DWkdPFic.js +0 -20
- package/dist/subagent-registry-runtime-Cwu64xxS.js +0 -114
- package/dist/subagent-registry-runtime-DcF6pbCz.js +0 -56
- package/dist/web-B4plqfoT.js +0 -118
|
@@ -3,12 +3,12 @@ import { g as resolveStateDir, i as isNixMode, l as resolveGatewayLockDir, o as
|
|
|
3
3
|
import { a as setConsoleSubsystemFilter, d as defaultRuntime, n as runtimeForLogger, o as setConsoleTimestampPrefix, t as createSubsystemLogger } from "./subsystem-Bw5n50gj.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { i as logAcceptedEnvOption, r as isTruthyEnvValue } from "./entry.js";
|
|
6
|
-
import { At as AVATAR_MAX_BYTES, B as parseConfigJson5, Bn as buildTalkConfigResponse, Dn as applyMergePatch, Dr as resolveDefaultModelForAgent, Er as resolveConfiguredModelRef, Fi as DEFAULT_CONTEXT_TOKENS, G as writeConfigFile, H as readConfigFileSnapshotForWrite, Hn as resolveAgentMaxConcurrent, I as migrateLegacyConfig, Ii as DEFAULT_MODEL, K as validateConfigObjectWithPlugins, Li as DEFAULT_PROVIDER, Lt as looksLikeAvatarPath, Mt as isAvatarHttpUrl, Nr as resolveThinkingDefault, Nt as isAvatarImageDataUrl, On as applyLegacyMigrations, Or as resolveHooksGmailModel, R as createConfigIO, U as resolveConfigSnapshotHash, Un as resolveSubagentMaxConcurrent, V as readConfigFileSnapshot, dr as isPidAlive, fr as buildAllowedModelSet, gr as getModelRefStatus, ji as normalizeSecretInput, jr as resolveSubagentConfiguredModelSelection, kn as ensureControlUiAllowedOriginsForNonLoopbackBind, mt as parseByteSize, pt as parseDurationMs, q as SquidClawSchema, vr as isCliProvider, wr as resolveAllowedModelRef, xr as normalizeModelSelection, z as loadConfig } from "./auth-profiles-
|
|
6
|
+
import { At as AVATAR_MAX_BYTES, B as parseConfigJson5, Bn as buildTalkConfigResponse, Dn as applyMergePatch, Dr as resolveDefaultModelForAgent, Er as resolveConfiguredModelRef, Fi as DEFAULT_CONTEXT_TOKENS, G as writeConfigFile, H as readConfigFileSnapshotForWrite, Hn as resolveAgentMaxConcurrent, I as migrateLegacyConfig, Ii as DEFAULT_MODEL, K as validateConfigObjectWithPlugins, Li as DEFAULT_PROVIDER, Lt as looksLikeAvatarPath, Mt as isAvatarHttpUrl, Nr as resolveThinkingDefault, Nt as isAvatarImageDataUrl, On as applyLegacyMigrations, Or as resolveHooksGmailModel, R as createConfigIO, U as resolveConfigSnapshotHash, Un as resolveSubagentMaxConcurrent, V as readConfigFileSnapshot, dr as isPidAlive, fr as buildAllowedModelSet, gr as getModelRefStatus, ji as normalizeSecretInput, jr as resolveSubagentConfiguredModelSelection, kn as ensureControlUiAllowedOriginsForNonLoopbackBind, mt as parseByteSize, pt as parseDurationMs, q as SquidClawSchema, vr as isCliProvider, wr as resolveAllowedModelRef, xr as normalizeModelSelection, z as loadConfig } from "./auth-profiles-CwmInMDd.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-D8-lYArk.js";
|
|
8
|
-
import { A as resolveDefaultAgentWorkspaceDir, C as DEFAULT_SOUL_FILENAME, E as ensureAgentWorkspace, O as isWorkspaceOnboardingCompleted, S as DEFAULT_MEMORY_FILENAME, T as DEFAULT_USER_FILENAME, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, g as DEFAULT_AGENTS_FILENAME, i as resolveAgentConfig, j as resolveWorkspaceTemplateDir, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, n as listAgentEntries, r as listAgentIds, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME, w as DEFAULT_TOOLS_FILENAME, x as DEFAULT_MEMORY_ALT_FILENAME, y as DEFAULT_HEARTBEAT_FILENAME } from "./agent-scope-
|
|
8
|
+
import { A as resolveDefaultAgentWorkspaceDir, C as DEFAULT_SOUL_FILENAME, E as ensureAgentWorkspace, O as isWorkspaceOnboardingCompleted, S as DEFAULT_MEMORY_FILENAME, T as DEFAULT_USER_FILENAME, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, g as DEFAULT_AGENTS_FILENAME, i as resolveAgentConfig, j as resolveWorkspaceTemplateDir, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, n as listAgentEntries, r as listAgentIds, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME, w as DEFAULT_TOOLS_FILENAME, x as DEFAULT_MEMORY_ALT_FILENAME, y as DEFAULT_HEARTBEAT_FILENAME } from "./agent-scope-nEVgVklg.js";
|
|
9
9
|
import { C as isCronRunSessionKey, E as parseAgentSessionKey, T as isSubagentSessionKey, _ as normalizeAccountId$1, c as normalizeAgentId, g as DEFAULT_ACCOUNT_ID, h as toAgentStoreSessionKey, l as normalizeMainKey, m as toAgentRequestSessionKey, o as classifySessionKeyShape, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey } from "./session-key-k6urs9r-.js";
|
|
10
10
|
import { E as isPlainObject, S as sleep, T as truncateUtf16Safe, n as clamp, s as ensureDir, v as resolveUserPath, x as shortenHomePath } from "./utils-D6vohX1h.js";
|
|
11
|
-
import { a as openBoundaryFileSync, f as isNotFoundPathError, g as matchesSkillFilter, i as openBoundaryFile, o as openVerifiedFileSync, s as sameFileIdentity, t as resolveSquidClawPackageRoot } from "./squidclaw-root-
|
|
11
|
+
import { a as openBoundaryFileSync, f as isNotFoundPathError, g as matchesSkillFilter, i as openBoundaryFile, o as openVerifiedFileSync, s as sameFileIdentity, t as resolveSquidClawPackageRoot } from "./squidclaw-root-JXyRbQLJ.js";
|
|
12
12
|
import { i as logWarn, t as logDebug } from "./logger-DL3N22PJ.js";
|
|
13
13
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-TSiqsZw1.js";
|
|
14
14
|
import { C as clearInternalHooks, E as triggerInternalHook, T as registerInternalHook, h as createEmptyPluginRegistry, t as CHANNEL_IDS, u as getActivePluginRegistry, w as createInternalHookEvent } from "./registry-BXcl3IkC.js";
|
|
@@ -16,105 +16,105 @@ import "./github-copilot-token-CxitgiZA.js";
|
|
|
16
16
|
import "./host-env-security-lcjXF83D.js";
|
|
17
17
|
import { n as resolveRuntimeServiceVersion, t as VERSION } from "./version-3so140Zi.js";
|
|
18
18
|
import "./env-vars-mSSOl7Rv.js";
|
|
19
|
-
import { u as isTestDefaultMemorySlotDisabled } from "./manifest-registry-
|
|
20
|
-
import "./dock-
|
|
21
|
-
import "./model-
|
|
22
|
-
import "./pi-model-discovery-
|
|
23
|
-
import { d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, m as isDiagnosticsEnabled } from "./diagnostic-
|
|
19
|
+
import { u as isTestDefaultMemorySlotDisabled } from "./manifest-registry-1ACGW3OR.js";
|
|
20
|
+
import "./dock-W3cGg46W.js";
|
|
21
|
+
import "./model-CFAguW1X.js";
|
|
22
|
+
import "./pi-model-discovery-IkNhzHow.js";
|
|
23
|
+
import { d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, m as isDiagnosticsEnabled } from "./diagnostic-Io9OfTj2.js";
|
|
24
24
|
import { d as hasBinary } from "./frontmatter-CFoRh1fy.js";
|
|
25
|
-
import { i as loadWorkspaceSkillEntries, r as buildWorkspaceSkillSnapshot } from "./skills-
|
|
26
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
27
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status-
|
|
25
|
+
import { i as loadWorkspaceSkillEntries, r as buildWorkspaceSkillSnapshot } from "./skills-EwyaIyKC.js";
|
|
26
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-DeOVetT7.js";
|
|
27
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status-Bv8Xt7Lc.js";
|
|
28
28
|
import { _ as normalizeGatewayClientMode, f as GATEWAY_CLIENT_CAPS, g as hasGatewayClientCap, h as GATEWAY_CLIENT_NAMES, i as isGatewayMessageChannel, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, p as GATEWAY_CLIENT_IDS, r as isGatewayCliClient, s as isWebchatClient, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-DqvtYF2o.js";
|
|
29
|
-
import { $ as resolveAgentMainSessionKey, A as readSessionPreviewItemsFromTranscript, B as cleanStaleLockFiles, C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, G as resolveSessionResetPolicy, I as stripInlineDirectiveTagsForDisplay, L as stripInlineDirectiveTagsFromMessageForDisplay, M as resolveSessionTranscriptCandidates, N as stripEnvelopeFromMessage, O as cleanupArchivedSessionTranscripts, P as stripEnvelopeFromMessages, Q as canonicalizeMainSessionAlias, R as jsonUtf8Bytes, T as archiveFileOnDisk, U as evaluateSessionFreshness, Y as mergeSessionEntry, Z as setSessionRuntimeModel, d as updateSessionStore, et as resolveExplicitAgentSessionKey, it as snapshotSessionOrigin, k as readSessionMessages, n as parseSessionThreadInfo, nt as resolveMainSessionKeyFromConfig, o as loadSessionStore, t as extractDeliveryInfo, tt as resolveMainSessionKey, x as mergeDeliveryContext, y as deliveryContextFromSession } from "./sessions-
|
|
30
|
-
import { m as buildChannelAccountBindings, n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin, w as normalizeWhatsAppTarget } from "./plugins-
|
|
31
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
32
|
-
import "./accounts-
|
|
29
|
+
import { $ as resolveAgentMainSessionKey, A as readSessionPreviewItemsFromTranscript, B as cleanStaleLockFiles, C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, G as resolveSessionResetPolicy, I as stripInlineDirectiveTagsForDisplay, L as stripInlineDirectiveTagsFromMessageForDisplay, M as resolveSessionTranscriptCandidates, N as stripEnvelopeFromMessage, O as cleanupArchivedSessionTranscripts, P as stripEnvelopeFromMessages, Q as canonicalizeMainSessionAlias, R as jsonUtf8Bytes, T as archiveFileOnDisk, U as evaluateSessionFreshness, Y as mergeSessionEntry, Z as setSessionRuntimeModel, d as updateSessionStore, et as resolveExplicitAgentSessionKey, it as snapshotSessionOrigin, k as readSessionMessages, n as parseSessionThreadInfo, nt as resolveMainSessionKeyFromConfig, o as loadSessionStore, t as extractDeliveryInfo, tt as resolveMainSessionKey, x as mergeDeliveryContext, y as deliveryContextFromSession } from "./sessions-oQJONGWF.js";
|
|
30
|
+
import { m as buildChannelAccountBindings, n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin, w as normalizeWhatsAppTarget } from "./plugins-Bc7YM9X-.js";
|
|
31
|
+
import { i as resolveWhatsAppAccount } from "./accounts-BH9Qo1sQ.js";
|
|
32
|
+
import "./accounts-Cuwg9Tan.js";
|
|
33
33
|
import "./logging-CcxUDNcI.js";
|
|
34
|
-
import "./accounts-
|
|
35
|
-
import "./send-
|
|
36
|
-
import "./send-
|
|
37
|
-
import { $n as DEFAULT_INPUT_IMAGE_MAX_BYTES, $r as emitAgentEvent, $t as stripLegacyDeliveryFields, Ar as resolveTtsAutoMode, At as resetDirectoryCache, B as resolveAgentAvatar, Bt as writeRestartSentinel, Cn as setGatewaySigusr1RestartPolicy, Cr as resolveUserTimezone, D as handleSlackHttpRequest, Dn as normalizeGroupActivation, Dr as isTtsEnabled, Dt as resolveSessionDeliveryTarget, En as unbindThreadBindingsBySessionKey, Er as getTtsProvider, Et as resolveOutboundTarget, F as resolveAgentDeliveryPlan, Fn as resolveBootstrapWarningSignaturesSeen, Fr as setTtsProvider, Ft as formatDoctorNonInteractiveHint, Gr as waitForActiveTasks, Gt as normalizeOptionalAgentId, Hr as markGatewayDraining, Ht as normalizeCronJobCreate, I as resolveAgentOutboundTarget, In as formatZonedTimestamp, Ir as textToSpeech, It as formatRestartSentinelMessage, J as buildHistoryContextFromEntries, Jt as normalizePayloadToSystemText, Kr as CommandLane, Kt as normalizeOptionalSessionKey, L as createOutboundSendDeps, Lr as OPENAI_TTS_MODELS, Mr as resolveTtsPrefsPath, Mt as runWithModelFallback, N as agentCommandFromIngress, Nr as resolveTtsProviderOrder, O as readJsonBodyWithLimit, Or as isTtsProviderConfigured, Ot as resolveOutboundChannelPlugin, Pr as setTtsEnabled, Pt as consumeRestartSentinel, Qn as ACP_SESSION_IDENTITY_RENDERER_VERSION, Qr as clearAgentRunContext, Qt as hasLegacyDeliveryHints, R as createDefaultDeps, Rr as OPENAI_TTS_VOICES, Rt as summarizeRestartSentinel, Sn as scheduleGatewaySigusr1Restart, T as resolveAgentOutboundIdentity, Tn as triggerSquidClawRestart, Tr as clearBootstrapSnapshot, Un as enqueueSystemEvent, Ur as resetAllLanes, Ut as normalizeCronJobPatch, Vr as getTotalQueueSize, Vt as normalizeHttpWebhookUrl, W as createReplyPrefixOptions, Wn as isSystemEventContextChanged, Wr as setCommandLaneConcurrency, Wt as inferLegacyName, Xt as migrateLegacyCronPayload, Yt as normalizeRequiredName, Zr as stripHeartbeatToken, Zt as buildDeliveryFromLegacyPayload, _ as getPluginToolMeta, _n as consumeGatewaySigusr1RestartAuthorization, _r as getAcpSessionManager, _t as readLatestAssistantReply, an as isExternalHookSession, ar as normalizeMimeList, at as dispatchInboundMessage, b as loadSquidClawPlugins, bn as isGatewaySigusr1RestartExternallyAllowed, bt as ensureOutboundSessionEntry, c as runSubagentAnnounceFlow, cn as resolveSessionAuthProfileOverride, cr as resolveAgentTimeoutMs, d as abortEmbeddedPiRun, ei as getAgentRunContext, er as DEFAULT_INPUT_IMAGE_MIMES, f as getActiveEmbeddedRunCount, ft as resolveCronStyleNow, gn as buildOutboundSessionContext, gt as createSquidClawTools, h as buildDefaultToolPolicyPipelineSteps, hn as parseVerboseOverride, ht as runCliAgent, i as initSubagentRegistry, in as getHookType, ir as extractImageContentFromSource, jr as resolveTtsConfig, k as requestBodyErrorToText, kn as loadProviderUsageSummary, kr as resolveTtsApiKey, l as clearSessionQueues, lr as normalizeSendPolicy, m as applyToolPolicyPipeline, mn as applyVerboseOverride, mr as stopSubagentsForRequester, mt as setCliSessionId, ni as registerAgentRunContext, nn as buildSafeExternalPrompt, nr as DEFAULT_INPUT_TIMEOUT_MS, o as listDescendantRunsForRequester, on as applyBrowserProxyPaths, or as resolveInputFileLimits, ot as createReplyDispatcher, p as waitForEmbeddedPiRunEnd, pn as applyModelOverrideToSessionEntry, pr as isAbortRequestText, pt as getCliSessionId, qn as requestHeartbeatNow, qr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, qt as normalizeOptionalText, rn as detectSuspiciousPatterns, rr as extractFileContentFromSource, sn as persistBrowserProxyFiles, st as getTotalPendingReplies, t as countActiveDescendantRuns, ti as onAgentEvent, tr as DEFAULT_INPUT_MAX_REDIRECTS, u as runEmbeddedPiAgent, ur as resolveSendPolicy, ut as buildBareSessionResetPrompt, v as resolvePluginTools, vn as deferGatewayRestartUntilIdle, vr as resolveAgentSessionDirs, vt as resolveAnnounceTargetFromKey, wn as setPreRestartDeferralCheck, x as createPluginRuntime, xn as markGatewaySigusr1RestartHandled, xt as resolveOutboundSessionRoute, yn as emitGatewayRestart, yr as resolveAgentIdentity, z as createOutboundSendDeps$1, zr as getActiveTaskCount } from "./subagent-registry-
|
|
34
|
+
import "./accounts-B1RxFghM.js";
|
|
35
|
+
import "./send-DcJ1pKjV.js";
|
|
36
|
+
import "./send-BobtsK6j.js";
|
|
37
|
+
import { $n as DEFAULT_INPUT_IMAGE_MAX_BYTES, $r as emitAgentEvent, $t as stripLegacyDeliveryFields, Ar as resolveTtsAutoMode, At as resetDirectoryCache, B as resolveAgentAvatar, Bt as writeRestartSentinel, Cn as setGatewaySigusr1RestartPolicy, Cr as resolveUserTimezone, D as handleSlackHttpRequest, Dn as normalizeGroupActivation, Dr as isTtsEnabled, Dt as resolveSessionDeliveryTarget, En as unbindThreadBindingsBySessionKey, Er as getTtsProvider, Et as resolveOutboundTarget, F as resolveAgentDeliveryPlan, Fn as resolveBootstrapWarningSignaturesSeen, Fr as setTtsProvider, Ft as formatDoctorNonInteractiveHint, Gr as waitForActiveTasks, Gt as normalizeOptionalAgentId, Hr as markGatewayDraining, Ht as normalizeCronJobCreate, I as resolveAgentOutboundTarget, In as formatZonedTimestamp, Ir as textToSpeech, It as formatRestartSentinelMessage, J as buildHistoryContextFromEntries, Jt as normalizePayloadToSystemText, Kr as CommandLane, Kt as normalizeOptionalSessionKey, L as createOutboundSendDeps, Lr as OPENAI_TTS_MODELS, Mr as resolveTtsPrefsPath, Mt as runWithModelFallback, N as agentCommandFromIngress, Nr as resolveTtsProviderOrder, O as readJsonBodyWithLimit, Or as isTtsProviderConfigured, Ot as resolveOutboundChannelPlugin, Pr as setTtsEnabled, Pt as consumeRestartSentinel, Qn as ACP_SESSION_IDENTITY_RENDERER_VERSION, Qr as clearAgentRunContext, Qt as hasLegacyDeliveryHints, R as createDefaultDeps, Rr as OPENAI_TTS_VOICES, Rt as summarizeRestartSentinel, Sn as scheduleGatewaySigusr1Restart, T as resolveAgentOutboundIdentity, Tn as triggerSquidClawRestart, Tr as clearBootstrapSnapshot, Un as enqueueSystemEvent, Ur as resetAllLanes, Ut as normalizeCronJobPatch, Vr as getTotalQueueSize, Vt as normalizeHttpWebhookUrl, W as createReplyPrefixOptions, Wn as isSystemEventContextChanged, Wr as setCommandLaneConcurrency, Wt as inferLegacyName, Xt as migrateLegacyCronPayload, Yt as normalizeRequiredName, Zr as stripHeartbeatToken, Zt as buildDeliveryFromLegacyPayload, _ as getPluginToolMeta, _n as consumeGatewaySigusr1RestartAuthorization, _r as getAcpSessionManager, _t as readLatestAssistantReply, an as isExternalHookSession, ar as normalizeMimeList, at as dispatchInboundMessage, b as loadSquidClawPlugins, bn as isGatewaySigusr1RestartExternallyAllowed, bt as ensureOutboundSessionEntry, c as runSubagentAnnounceFlow, cn as resolveSessionAuthProfileOverride, cr as resolveAgentTimeoutMs, d as abortEmbeddedPiRun, ei as getAgentRunContext, er as DEFAULT_INPUT_IMAGE_MIMES, f as getActiveEmbeddedRunCount, ft as resolveCronStyleNow, gn as buildOutboundSessionContext, gt as createSquidClawTools, h as buildDefaultToolPolicyPipelineSteps, hn as parseVerboseOverride, ht as runCliAgent, i as initSubagentRegistry, in as getHookType, ir as extractImageContentFromSource, jr as resolveTtsConfig, k as requestBodyErrorToText, kn as loadProviderUsageSummary, kr as resolveTtsApiKey, l as clearSessionQueues, lr as normalizeSendPolicy, m as applyToolPolicyPipeline, mn as applyVerboseOverride, mr as stopSubagentsForRequester, mt as setCliSessionId, ni as registerAgentRunContext, nn as buildSafeExternalPrompt, nr as DEFAULT_INPUT_TIMEOUT_MS, o as listDescendantRunsForRequester, on as applyBrowserProxyPaths, or as resolveInputFileLimits, ot as createReplyDispatcher, p as waitForEmbeddedPiRunEnd, pn as applyModelOverrideToSessionEntry, pr as isAbortRequestText, pt as getCliSessionId, qn as requestHeartbeatNow, qr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, qt as normalizeOptionalText, rn as detectSuspiciousPatterns, rr as extractFileContentFromSource, sn as persistBrowserProxyFiles, st as getTotalPendingReplies, t as countActiveDescendantRuns, ti as onAgentEvent, tr as DEFAULT_INPUT_MAX_REDIRECTS, u as runEmbeddedPiAgent, ur as resolveSendPolicy, ut as buildBareSessionResetPrompt, v as resolvePluginTools, vn as deferGatewayRestartUntilIdle, vr as resolveAgentSessionDirs, vt as resolveAnnounceTargetFromKey, wn as setPreRestartDeferralCheck, x as createPluginRuntime, xn as markGatewaySigusr1RestartHandled, xt as resolveOutboundSessionRoute, yn as emitGatewayRestart, yr as resolveAgentIdentity, z as createOutboundSendDeps$1, zr as getActiveTaskCount } from "./subagent-registry-O65q5PYJ.js";
|
|
38
38
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, s as resolveSessionTranscriptsDirForAgent } from "./paths-Dn_rzeZN.js";
|
|
39
39
|
import { i as normalizeInputProvenance } from "./input-provenance-C8z9KgIz.js";
|
|
40
40
|
import "./chat-envelope-thy05gXR.js";
|
|
41
|
-
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-
|
|
42
|
-
import { $ as validateNodePairRejectParams, $t as roleScopesAllow, A as validateCronStatusParams, At as validateWizardStartParams, B as validateExecApprovalsGetParams, C as validateConfigSetParams, Ct as validateToolsCatalogParams, D as validateCronRemoveParams, Dt as validateWebLoginWaitParams, E as validateCronListParams, Et as validateWebLoginStartParams, F as validateDevicePairRemoveParams, G as validateModelsListParams, Gt as rejectDevicePairing, H as validateExecApprovalsNodeSetParams, Ht as ensureDeviceToken, I as validateDeviceTokenRevokeParams, It as parseSessionLabel, J as validateNodeInvokeParams, Jt as revokeDeviceToken, K as validateNodeDescribeParams, Kt as removePairedDevice, L as validateDeviceTokenRotateParams, Lt as buildDeviceAuthPayload, M as validateDevicePairApproveParams, Mt as PROTOCOL_VERSION, N as validateDevicePairListParams, Nt as ErrorCodes, O as validateCronRunParams, Ot as validateWizardCancelParams, P as validateDevicePairRejectParams, Pt as errorShape, Q as validateNodePairListParams, Qt as verifyDeviceToken, R as validateExecApprovalRequestParams, Rt as buildDeviceAuthPayloadV3, S as validateConfigSchemaParams, St as validateTalkModeParams, T as validateCronAddParams, Tt as validateWakeParams, U as validateExecApprovalsSetParams, Ut as getPairedDevice, V as validateExecApprovalsNodeGetParams, Vt as approveDevicePairing, W as validateLogsTailParams, Wt as listDevicePairing, X as validateNodeListParams, Xt as summarizeDeviceTokens, Y as validateNodeInvokeResultParams, Yt as rotateDeviceToken, Z as validateNodePairApproveParams, Zt as updatePairedDeviceMetadata, _ as validateChatInjectParams, _t as validateSkillsBinsParams, a as validateAgentWaitParams, at as validateRequestFrame, b as validateConfigGetParams, bt as validateSkillsUpdateParams, c as validateAgentsFilesGetParams, ct as validateSendParams, d as validateAgentsListParams, dt as validateSessionsListParams, et as validateNodePairRequestParams, f as validateAgentsUpdateParams, ft as validateSessionsPatchParams, g as validateChatHistoryParams, gt as validateSessionsUsageParams, h as validateChatAbortParams, ht as validateSessionsResolveParams, i as validateAgentParams, in as verifyDeviceSignature, it as validatePushTestParams, j as validateCronUpdateParams, jt as validateWizardStatusParams, k as validateCronRunsParams, kt as validateWizardNextParams, l as validateAgentsFilesListParams, lt as validateSessionsCompactParams, m as validateChannelsStatusParams, mt as validateSessionsResetParams, n as formatValidationErrors, nt as validateNodeRenameParams, o as validateAgentsCreateParams, ot as validateSecretsResolveParams, p as validateChannelsLogoutParams, pt as validateSessionsPreviewParams, q as validateNodeEventParams, qt as requestDevicePairing, r as validateAgentIdentityParams, rn as normalizeDevicePublicKeyBase64Url, rt as validatePollParams, s as validateAgentsDeleteParams, st as validateSecretsResolveResult, tn as deriveDeviceIdFromPublicKey, tt as validateNodePairVerifyParams, u as validateAgentsFilesSetParams, ut as validateSessionsDeleteParams, v as validateChatSendParams, vt as validateSkillsInstallParams, w as validateConnectParams, wt as validateUpdateRunParams, x as validateConfigPatchParams, xt as validateTalkConfigParams, y as validateConfigApplyParams, yt as validateSkillsStatusParams, z as validateExecApprovalResolveParams, zt as normalizeDeviceMetadataForAuth } from "./client-
|
|
43
|
-
import { c as ADMIN_SCOPE$3, d as isNodeRoleMethod, n as callGateway, p as loadGatewayTlsRuntime$1, u as authorizeOperatorScopesForMethod } from "./call-
|
|
41
|
+
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-rR19q30D.js";
|
|
42
|
+
import { $ as validateNodePairRejectParams, $t as roleScopesAllow, A as validateCronStatusParams, At as validateWizardStartParams, B as validateExecApprovalsGetParams, C as validateConfigSetParams, Ct as validateToolsCatalogParams, D as validateCronRemoveParams, Dt as validateWebLoginWaitParams, E as validateCronListParams, Et as validateWebLoginStartParams, F as validateDevicePairRemoveParams, G as validateModelsListParams, Gt as rejectDevicePairing, H as validateExecApprovalsNodeSetParams, Ht as ensureDeviceToken, I as validateDeviceTokenRevokeParams, It as parseSessionLabel, J as validateNodeInvokeParams, Jt as revokeDeviceToken, K as validateNodeDescribeParams, Kt as removePairedDevice, L as validateDeviceTokenRotateParams, Lt as buildDeviceAuthPayload, M as validateDevicePairApproveParams, Mt as PROTOCOL_VERSION, N as validateDevicePairListParams, Nt as ErrorCodes, O as validateCronRunParams, Ot as validateWizardCancelParams, P as validateDevicePairRejectParams, Pt as errorShape, Q as validateNodePairListParams, Qt as verifyDeviceToken, R as validateExecApprovalRequestParams, Rt as buildDeviceAuthPayloadV3, S as validateConfigSchemaParams, St as validateTalkModeParams, T as validateCronAddParams, Tt as validateWakeParams, U as validateExecApprovalsSetParams, Ut as getPairedDevice, V as validateExecApprovalsNodeGetParams, Vt as approveDevicePairing, W as validateLogsTailParams, Wt as listDevicePairing, X as validateNodeListParams, Xt as summarizeDeviceTokens, Y as validateNodeInvokeResultParams, Yt as rotateDeviceToken, Z as validateNodePairApproveParams, Zt as updatePairedDeviceMetadata, _ as validateChatInjectParams, _t as validateSkillsBinsParams, a as validateAgentWaitParams, at as validateRequestFrame, b as validateConfigGetParams, bt as validateSkillsUpdateParams, c as validateAgentsFilesGetParams, ct as validateSendParams, d as validateAgentsListParams, dt as validateSessionsListParams, et as validateNodePairRequestParams, f as validateAgentsUpdateParams, ft as validateSessionsPatchParams, g as validateChatHistoryParams, gt as validateSessionsUsageParams, h as validateChatAbortParams, ht as validateSessionsResolveParams, i as validateAgentParams, in as verifyDeviceSignature, it as validatePushTestParams, j as validateCronUpdateParams, jt as validateWizardStatusParams, k as validateCronRunsParams, kt as validateWizardNextParams, l as validateAgentsFilesListParams, lt as validateSessionsCompactParams, m as validateChannelsStatusParams, mt as validateSessionsResetParams, n as formatValidationErrors, nt as validateNodeRenameParams, o as validateAgentsCreateParams, ot as validateSecretsResolveParams, p as validateChannelsLogoutParams, pt as validateSessionsPreviewParams, q as validateNodeEventParams, qt as requestDevicePairing, r as validateAgentIdentityParams, rn as normalizeDevicePublicKeyBase64Url, rt as validatePollParams, s as validateAgentsDeleteParams, st as validateSecretsResolveResult, tn as deriveDeviceIdFromPublicKey, tt as validateNodePairVerifyParams, u as validateAgentsFilesSetParams, ut as validateSessionsDeleteParams, v as validateChatSendParams, vt as validateSkillsInstallParams, w as validateConnectParams, wt as validateUpdateRunParams, x as validateConfigPatchParams, xt as validateTalkConfigParams, y as validateConfigApplyParams, yt as validateSkillsStatusParams, z as validateExecApprovalResolveParams, zt as normalizeDeviceMetadataForAuth } from "./client-XYT0IAgJ.js";
|
|
43
|
+
import { c as ADMIN_SCOPE$3, d as isNodeRoleMethod, n as callGateway, p as loadGatewayTlsRuntime$1, u as authorizeOperatorScopesForMethod } from "./call-BSt3WRnY.js";
|
|
44
44
|
import "./pairing-token-B_ig96RO.js";
|
|
45
45
|
import { t as safeEqualSecret } from "./secret-equal-Gla36CGi.js";
|
|
46
|
-
import { a as isTrustedProxyAddress, c as pickPrimaryLanIPv4, d as resolveGatewayListenHosts, f as rawDataToString, l as resolveClientIp, n as isLoopbackAddress, o as isValidIPv4, r as isLoopbackHost, s as normalizeHostHeader, t as isLocalishHost, u as resolveGatewayBindHost } from "./net-
|
|
47
|
-
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-
|
|
46
|
+
import { a as isTrustedProxyAddress, c as pickPrimaryLanIPv4, d as resolveGatewayListenHosts, f as rawDataToString, l as resolveClientIp, n as isLoopbackAddress, o as isValidIPv4, r as isLoopbackHost, s as normalizeHostHeader, t as isLocalishHost, u as resolveGatewayBindHost } from "./net-CmP6gw-e.js";
|
|
47
|
+
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-CUG3_Vq2.js";
|
|
48
48
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-DOVPgjwZ.js";
|
|
49
|
-
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext } from "./with-timeout-
|
|
50
|
-
import { j as runGlobalGatewayStopSafely, k as getGlobalHookRunner, o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads } from "./deliver-
|
|
51
|
-
import { c as detectMime } from "./image-ops-
|
|
52
|
-
import { b as resolveCronStorePath, x as saveCronStore, y as loadCronStore } from "./send-
|
|
53
|
-
import "./pi-embedded-helpers-
|
|
54
|
-
import { C as resolveToolProfilePolicy, _ as collectExplicitAllowlist, y as mergeAlsoAllowPolicy } from "./sandbox-
|
|
49
|
+
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext } from "./with-timeout-DLPklM0i.js";
|
|
50
|
+
import { j as runGlobalGatewayStopSafely, k as getGlobalHookRunner, o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads } from "./deliver-f-YZpnF5.js";
|
|
51
|
+
import { c as detectMime } from "./image-ops-LFsSCTyI.js";
|
|
52
|
+
import { b as resolveCronStorePath, x as saveCronStore, y as loadCronStore } from "./send-NhE5ebSK.js";
|
|
53
|
+
import "./pi-embedded-helpers-BVBXhn3i.js";
|
|
54
|
+
import { C as resolveToolProfilePolicy, _ as collectExplicitAllowlist, y as mergeAlsoAllowPolicy } from "./sandbox-WsTfTuEp.js";
|
|
55
55
|
import { i as listCoreToolSections, n as PROFILE_OPTIONS, o as resolveCoreToolProfiles } from "./tool-catalog-BRRysafL.js";
|
|
56
|
-
import "./chrome-
|
|
56
|
+
import "./chrome-DybExwN8.js";
|
|
57
57
|
import { i as enableTailscaleServe, n as disableTailscaleServe, o as getTailnetHostname, r as enableTailscaleFunnel, t as disableTailscaleFunnel } from "./tailscale-DHGqQR08.js";
|
|
58
|
-
import { a as resolveGatewayAuth, c as AUTH_RATE_LIMIT_SCOPE_SHARED_SECRET, i as isLocalDirectRequest, l as createAuthRateLimiter, n as authorizeHttpGatewayConnect, o as AUTH_RATE_LIMIT_SCOPE_DEVICE_TOKEN, r as authorizeWsControlUiGatewayConnect, s as AUTH_RATE_LIMIT_SCOPE_HOOK_AUTH, t as assertGatewayAuthConfigured, u as normalizeRateLimitClientIp } from "./auth-
|
|
59
|
-
import { l as ensureGatewayStartupAuth, u as mergeGatewayTailscaleConfig } from "./server-context-
|
|
60
|
-
import "./paths-
|
|
58
|
+
import { a as resolveGatewayAuth, c as AUTH_RATE_LIMIT_SCOPE_SHARED_SECRET, i as isLocalDirectRequest, l as createAuthRateLimiter, n as authorizeHttpGatewayConnect, o as AUTH_RATE_LIMIT_SCOPE_DEVICE_TOKEN, r as authorizeWsControlUiGatewayConnect, s as AUTH_RATE_LIMIT_SCOPE_HOOK_AUTH, t as assertGatewayAuthConfigured, u as normalizeRateLimitClientIp } from "./auth-C5nn2VmD.js";
|
|
59
|
+
import { l as ensureGatewayStartupAuth, u as mergeGatewayTailscaleConfig } from "./server-context-BHejgqzS.js";
|
|
60
|
+
import "./paths-D6mnO6Ni.js";
|
|
61
61
|
import { a as testRegexWithBoundedInput, i as compileSafeRegex } from "./redact-DknVdX-O.js";
|
|
62
62
|
import { o as isErrno, r as formatErrorMessage } from "./errors-BnRmsfe-.js";
|
|
63
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
64
|
-
import { n as SsrFBlockedError } from "./proxy-env-
|
|
65
|
-
import "./store-
|
|
66
|
-
import { n as inspectPortUsage, o as formatPortDiagnostics, t as ensurePortAvailable } from "./ports-
|
|
63
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-BPQ-per2.js";
|
|
64
|
+
import { n as SsrFBlockedError } from "./proxy-env-DkDM4lyi.js";
|
|
65
|
+
import "./store-BTkIx401.js";
|
|
66
|
+
import { n as inspectPortUsage, o as formatPortDiagnostics, t as ensurePortAvailable } from "./ports-DMeUt80n.js";
|
|
67
67
|
import { t as movePathToTrash } from "./trash-DUuU677G.js";
|
|
68
|
-
import "./server-middleware-
|
|
69
|
-
import "./tool-images-
|
|
68
|
+
import "./server-middleware-60oUYecQ.js";
|
|
69
|
+
import "./tool-images-D6mmxuWS.js";
|
|
70
70
|
import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels } from "./thinking-CrcT589P.js";
|
|
71
|
-
import "./models-config-
|
|
72
|
-
import "./exec-approvals-allowlist-
|
|
73
|
-
import "./exec-safe-bin-runtime-policy-
|
|
74
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
75
|
-
import "./fetch-
|
|
76
|
-
import { g as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
77
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
78
|
-
import { b as extractTextFromChatContent } from "./image-
|
|
71
|
+
import "./models-config-D96CeX01.js";
|
|
72
|
+
import "./exec-approvals-allowlist-DOxIMtXP.js";
|
|
73
|
+
import "./exec-safe-bin-runtime-policy-DhLi-jyO.js";
|
|
74
|
+
import { n as loadModelCatalog } from "./model-catalog-Cc2Y6aO9.js";
|
|
75
|
+
import "./fetch-BClIo0ZD.js";
|
|
76
|
+
import { g as registerUnhandledRejectionHandler } from "./audio-transcription-runner-C5qJ-fgR.js";
|
|
77
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-C-CRoLDY.js";
|
|
78
|
+
import { b as extractTextFromChatContent } from "./image-pyJhsETJ.js";
|
|
79
79
|
import "./tool-display-BisOZb2_.js";
|
|
80
|
-
import "./api-key-rotation-
|
|
80
|
+
import "./api-key-rotation-CsMKifj6.js";
|
|
81
81
|
import "./proxy-fetch-DfeBVFag.js";
|
|
82
|
-
import "./ir-
|
|
82
|
+
import "./ir-CpO3-MQs.js";
|
|
83
83
|
import "./render-CCLsW6Lz.js";
|
|
84
|
-
import { a as ToolInputError } from "./target-errors-
|
|
85
|
-
import { r as isRestartEnabled } from "./commands-
|
|
86
|
-
import "./commands-registry-
|
|
84
|
+
import { a as ToolInputError } from "./target-errors-C_rnMuJ2.js";
|
|
85
|
+
import { r as isRestartEnabled } from "./commands-DDHiW-As.js";
|
|
86
|
+
import "./commands-registry-C4UO-mlJ.js";
|
|
87
87
|
import "./fetch-By9arPco.js";
|
|
88
|
-
import { a as readChannelAllowFromStoreSync } from "./pairing-store-
|
|
88
|
+
import { a as readChannelAllowFromStoreSync } from "./pairing-store-iHMQLc47.js";
|
|
89
89
|
import { a as mergeExecApprovalsSocketDefaults, c as readExecApprovalsSnapshot, p as saveExecApprovals, r as ensureExecApprovals, s as normalizeExecApprovals, t as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS } from "./exec-approvals-Db6myg-N.js";
|
|
90
|
-
import { _ as matchSystemRunApprovalBinding, g as buildSystemRunApprovalBinding, h as resolveSystemRunApprovalRuntimeContext, m as resolveSystemRunApprovalRequestContext, v as missingSystemRunApprovalBinding, y as toSystemRunApprovalMismatchError } from "./nodes-screen-
|
|
91
|
-
import { n as resolveSystemRunCommand } from "./system-run-command-
|
|
92
|
-
import { a as loadCombinedSessionStoreForGateway, c as resolveGatewaySessionStoreTarget, f as computeBackoff, i as listSessionsFromStore, l as resolveSessionModelRef, o as loadSessionEntry, p as sleepWithAbort, r as listAgentsForGateway, s as pruneLegacyStoreKeys, t as canonicalizeSpawnedByForAgent, u as lookupContextTokens } from "./session-utils-
|
|
90
|
+
import { _ as matchSystemRunApprovalBinding, g as buildSystemRunApprovalBinding, h as resolveSystemRunApprovalRuntimeContext, m as resolveSystemRunApprovalRequestContext, v as missingSystemRunApprovalBinding, y as toSystemRunApprovalMismatchError } from "./nodes-screen-Bv_hP-W3.js";
|
|
91
|
+
import { n as resolveSystemRunCommand } from "./system-run-command-B0gZa8Pc.js";
|
|
92
|
+
import { a as loadCombinedSessionStoreForGateway, c as resolveGatewaySessionStoreTarget, f as computeBackoff, i as listSessionsFromStore, l as resolveSessionModelRef, o as loadSessionEntry, p as sleepWithAbort, r as listAgentsForGateway, s as pruneLegacyStoreKeys, t as canonicalizeSpawnedByForAgent, u as lookupContextTokens } from "./session-utils-BD5Z6cCa.js";
|
|
93
93
|
import { c as hasNonzeroUsage, i as loadSessionUsageTimeSeries, n as loadCostUsageSummary, r as loadSessionCostSummary, s as deriveSessionTotalTokens, t as discoverAllSessions } from "./session-cost-usage-BL2HPuc5.js";
|
|
94
94
|
import { n as formatTokenCount, r as formatUsd } from "./usage-format-eNPY7j3q.js";
|
|
95
|
-
import { _ as updatePairedNodeMetadata, a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, c as refreshRemoteBinsForConnectedNodes, d as setSkillsRemoteRegistry, f as approveNodePairing, g as requestNodePairing, h as renamePairedNode, l as refreshRemoteNodeBins, m as rejectNodePairing, o as primeRemoteSkillsCache, p as listNodePairing, s as recordRemoteNodeInfo, u as removeRemoteNodeInfo, v as verifyNodeToken, x as registerSkillsChangeListener } from "./skill-commands-
|
|
96
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-
|
|
97
|
-
import { t as getChannelActivity } from "./channel-activity-
|
|
95
|
+
import { _ as updatePairedNodeMetadata, a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, c as refreshRemoteBinsForConnectedNodes, d as setSkillsRemoteRegistry, f as approveNodePairing, g as requestNodePairing, h as renamePairedNode, l as refreshRemoteNodeBins, m as rejectNodePairing, o as primeRemoteSkillsCache, p as listNodePairing, s as recordRemoteNodeInfo, u as removeRemoteNodeInfo, v as verifyNodeToken, x as registerSkillsChangeListener } from "./skill-commands-BAE31S6L.js";
|
|
96
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-D8D-Ghcl.js";
|
|
97
|
+
import { t as getChannelActivity } from "./channel-activity-Bsu4_sQM.js";
|
|
98
98
|
import { n as normalizePollInput } from "./polls-C67dmFc-.js";
|
|
99
|
-
import "./tables-
|
|
100
|
-
import "./server-lifecycle-
|
|
99
|
+
import "./tables-7v1wqCPH.js";
|
|
100
|
+
import "./server-lifecycle-BAtwXGHD.js";
|
|
101
101
|
import { i as parseAbsoluteTimeMs, n as resolveCronStaggerMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-C4U8O7GM.js";
|
|
102
|
-
import { n as resolveMessageChannelSelection } from "./channel-selection-
|
|
103
|
-
import { i as buildChannelUiCatalog, t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
104
|
-
import "./send-
|
|
105
|
-
import "./outbound-attachment-
|
|
102
|
+
import { n as resolveMessageChannelSelection } from "./channel-selection-CFWQq1nS.js";
|
|
103
|
+
import { i as buildChannelUiCatalog, t as applyPluginAutoEnable } from "./plugin-auto-enable-COht5jxQ.js";
|
|
104
|
+
import "./send-6jRKGsRs.js";
|
|
105
|
+
import "./outbound-attachment-CGkDHHwN.js";
|
|
106
106
|
import "./delivery-queue-D-91NTFS.js";
|
|
107
|
-
import "./send-
|
|
108
|
-
import { a as resolveSubagentToolPolicy, i as resolveGroupToolPolicy, r as resolveEffectiveToolPolicy } from "./pi-tools.policy-
|
|
107
|
+
import "./send-BxrUZpiG.js";
|
|
108
|
+
import { a as resolveSubagentToolPolicy, i as resolveGroupToolPolicy, r as resolveEffectiveToolPolicy } from "./pi-tools.policy-BoLQW6Wp.js";
|
|
109
109
|
import "./proxy-Dgwoliym.js";
|
|
110
|
-
import { f as isKnownSecretTargetId, n as GATEWAY_AUTH_SURFACE_PATHS, r as evaluateGatewayAuthSurfaceStates } from "./runtime-config-collectors-
|
|
111
|
-
import "./command-secret-targets-
|
|
112
|
-
import { C as normalizeControlUiBasePath, S as buildControlUiAvatarUrl, c as handleReset, w as resolveAssistantAvatarUrl, x as CONTROL_UI_AVATAR_PREFIX } from "./onboard-helpers-
|
|
110
|
+
import { f as isKnownSecretTargetId, n as GATEWAY_AUTH_SURFACE_PATHS, r as evaluateGatewayAuthSurfaceStates } from "./runtime-config-collectors-BTU0eKTb.js";
|
|
111
|
+
import "./command-secret-targets-DN9JuQaB.js";
|
|
112
|
+
import { C as normalizeControlUiBasePath, S as buildControlUiAvatarUrl, c as handleReset, w as resolveAssistantAvatarUrl, x as CONTROL_UI_AVATAR_PREFIX } from "./onboard-helpers-DHa51Syk.js";
|
|
113
113
|
import "./prompt-style-D_i_ws0g.js";
|
|
114
|
-
import "./pairing-labels-
|
|
115
|
-
import { i as resolveMemoryBackendConfig, r as getMemorySearchManager } from "./memory-cli-
|
|
116
|
-
import { r as resolveMemorySearchConfig } from "./manager-
|
|
117
|
-
import "./query-expansion-
|
|
114
|
+
import "./pairing-labels-CUV6LNM1.js";
|
|
115
|
+
import { i as resolveMemoryBackendConfig, r as getMemorySearchManager } from "./memory-cli-nLUA3TJJ.js";
|
|
116
|
+
import { r as resolveMemorySearchConfig } from "./manager-GxUrWGzI.js";
|
|
117
|
+
import "./query-expansion-C0HUJbRn.js";
|
|
118
118
|
import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
119
119
|
import { n as runCommandWithRuntime } from "./cli-utils-BKqG4ZT-.js";
|
|
120
120
|
import { t as formatHelpExamples } from "./help-format-CpR5cEGe.js";
|
|
@@ -125,44 +125,44 @@ import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-Dpi4An5r.
|
|
|
125
125
|
import { n as inheritOptionFromParent } from "./command-options-DVCpMofi.js";
|
|
126
126
|
import { t as WizardCancelledError } from "./prompts-l_pUOv42.js";
|
|
127
127
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D7MilaX-.js";
|
|
128
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
129
|
-
import { t as isWithinDir } from "./path-safety-
|
|
130
|
-
import "./install-safe-path-
|
|
131
|
-
import "./skill-scanner
|
|
132
|
-
import { n as formatConfigIssueLines } from "./issue-format-
|
|
128
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-DsnQkHm9.js";
|
|
129
|
+
import { t as isWithinDir } from "./path-safety-D7CjFQvf.js";
|
|
130
|
+
import "./install-safe-path-DqI19VEv.js";
|
|
131
|
+
import "./skill-scanner--QKHR8U0.js";
|
|
132
|
+
import { n as formatConfigIssueLines } from "./issue-format-BP_8Uzq5.js";
|
|
133
133
|
import { t as buildChannelAccountSnapshot } from "./status-dOhj12u0.js";
|
|
134
|
-
import "./channels-status-issues-
|
|
135
|
-
import { a as buildBaseHints, i as applySensitiveHints, n as redactConfigSnapshot, o as mapSensitivePaths, r as restoreRedactedValues, s as applyDerivedTags, t as redactConfigObject } from "./redact-snapshot-
|
|
136
|
-
import "./daemon-install-helpers-
|
|
134
|
+
import "./channels-status-issues-Erzzhl2e.js";
|
|
135
|
+
import { a as buildBaseHints, i as applySensitiveHints, n as redactConfigSnapshot, o as mapSensitivePaths, r as restoreRedactedValues, s as applyDerivedTags, t as redactConfigObject } from "./redact-snapshot-j2UcqIGl.js";
|
|
136
|
+
import "./daemon-install-helpers-CZDVO_MU.js";
|
|
137
137
|
import "./runtime-guard-BPoq8vFM.js";
|
|
138
|
-
import "./systemd-
|
|
139
|
-
import "./service-
|
|
140
|
-
import "./lifecycle-core-
|
|
141
|
-
import "./systemd-hints-
|
|
138
|
+
import "./systemd-BrFu3I64.js";
|
|
139
|
+
import "./service-DsnrBnut.js";
|
|
140
|
+
import "./lifecycle-core-Bj47aKSO.js";
|
|
141
|
+
import "./systemd-hints-e5KJNDJB.js";
|
|
142
142
|
import { t as parsePort$1 } from "./parse-port-CboE2EQm.js";
|
|
143
|
-
import { n as addGatewayServiceCommands } from "./daemon-cli-
|
|
144
|
-
import "./diagnostics-
|
|
143
|
+
import { n as addGatewayServiceCommands } from "./daemon-cli-Ca-rxRI7.js";
|
|
144
|
+
import "./diagnostics-DQI0oT2F.js";
|
|
145
145
|
import "./table-DbDCX_6t.js";
|
|
146
146
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-BCMIEFUS.js";
|
|
147
|
-
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-
|
|
148
|
-
import { a as probeGateway, n as collectEnabledInsecureOrDangerousFlags } from "./audit-
|
|
149
|
-
import { t as discoverGatewayBeacons } from "./bonjour-discovery-
|
|
150
|
-
import { i as pickGatewaySelfPresence, r as getStatusSummary } from "./status-
|
|
151
|
-
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-
|
|
152
|
-
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-
|
|
153
|
-
import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-
|
|
154
|
-
import { a as resolveCommandSecretsFromActiveRuntimeSnapshot, i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-
|
|
155
|
-
import "./onboarding.secret-input-
|
|
156
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
157
|
-
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-
|
|
147
|
+
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-tolKQpGA.js";
|
|
148
|
+
import { a as probeGateway, n as collectEnabledInsecureOrDangerousFlags } from "./audit-DqYxJJda.js";
|
|
149
|
+
import { t as discoverGatewayBeacons } from "./bonjour-discovery-CirYvFAM.js";
|
|
150
|
+
import { i as pickGatewaySelfPresence, r as getStatusSummary } from "./status-BHMVPBt8.js";
|
|
151
|
+
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-3pSJD-u-.js";
|
|
152
|
+
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-d6VtDSeo.js";
|
|
153
|
+
import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-DJ3rHgVO.js";
|
|
154
|
+
import { a as resolveCommandSecretsFromActiveRuntimeSnapshot, i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-CDZM2wLQ.js";
|
|
155
|
+
import "./onboarding.secret-input-CZllOF9-.js";
|
|
156
|
+
import { t as runOnboardingWizard } from "./onboarding-CzKQyWBA.js";
|
|
157
|
+
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-QRl14PL-.js";
|
|
158
158
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-BDpWdYq5.js";
|
|
159
|
-
import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-
|
|
160
|
-
import "./node-service-
|
|
161
|
-
import "./status.update-
|
|
162
|
-
import { t as installSkill } from "./skills-install-
|
|
163
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
164
|
-
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-
|
|
165
|
-
import { n as forceFreePortAndWait, r as waitForPortBindable } from "./ports-
|
|
159
|
+
import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-D-TrkI3I.js";
|
|
160
|
+
import "./node-service-CKaruDMJ.js";
|
|
161
|
+
import "./status.update-BGIm6we4.js";
|
|
162
|
+
import { t as installSkill } from "./skills-install-CnnbnjQD.js";
|
|
163
|
+
import { t as runGatewayUpdate } from "./update-runner-D91Jmj0S.js";
|
|
164
|
+
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-BbO-M3Jv.js";
|
|
165
|
+
import { n as forceFreePortAndWait, r as waitForPortBindable } from "./ports-BzfeaNjw.js";
|
|
166
166
|
import { spawn, spawnSync } from "node:child_process";
|
|
167
167
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
168
168
|
import os from "node:os";
|
|
@@ -171,7 +171,7 @@ import * as fsSync from "node:fs";
|
|
|
171
171
|
import fs from "node:fs";
|
|
172
172
|
import chalk from "chalk";
|
|
173
173
|
import { isDeepStrictEqual } from "node:util";
|
|
174
|
-
import
|
|
174
|
+
import fsPromises from "node:fs/promises";
|
|
175
175
|
import crypto, { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
176
176
|
import { z } from "zod";
|
|
177
177
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
@@ -1241,7 +1241,7 @@ function resolveCheckIntervalMs(cfg) {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
async function readState(statePath) {
|
|
1243
1243
|
try {
|
|
1244
|
-
const raw = await
|
|
1244
|
+
const raw = await fsPromises.readFile(statePath, "utf-8");
|
|
1245
1245
|
const parsed = JSON.parse(raw);
|
|
1246
1246
|
return parsed && typeof parsed === "object" ? parsed : {};
|
|
1247
1247
|
} catch {
|
|
@@ -1322,7 +1322,7 @@ async function runAutoUpdateCommand(params) {
|
|
|
1322
1322
|
path.join(params.root, "dist", "index.mjs")
|
|
1323
1323
|
];
|
|
1324
1324
|
for (const candidate of candidates) try {
|
|
1325
|
-
await
|
|
1325
|
+
await fsPromises.access(candidate);
|
|
1326
1326
|
argv.push(execPath, candidate, ...baseArgs);
|
|
1327
1327
|
break;
|
|
1328
1328
|
} catch {}
|
|
@@ -4453,20 +4453,20 @@ async function drainPendingWrite(filePath) {
|
|
|
4453
4453
|
if (pending) await pending.catch(() => void 0);
|
|
4454
4454
|
}
|
|
4455
4455
|
async function pruneIfNeeded(filePath, opts) {
|
|
4456
|
-
const stat = await
|
|
4456
|
+
const stat = await fsPromises.stat(filePath).catch(() => null);
|
|
4457
4457
|
if (!stat || stat.size <= opts.maxBytes) return;
|
|
4458
|
-
const lines = (await
|
|
4458
|
+
const lines = (await fsPromises.readFile(filePath, "utf-8").catch(() => "")).split("\n").map((l) => l.trim()).filter(Boolean);
|
|
4459
4459
|
const kept = lines.slice(Math.max(0, lines.length - opts.keepLines));
|
|
4460
4460
|
const { randomBytes } = await import("node:crypto");
|
|
4461
4461
|
const tmp = `${filePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
4462
|
-
await
|
|
4463
|
-
await
|
|
4462
|
+
await fsPromises.writeFile(tmp, `${kept.join("\n")}\n`, "utf-8");
|
|
4463
|
+
await fsPromises.rename(tmp, filePath);
|
|
4464
4464
|
}
|
|
4465
4465
|
async function appendCronRunLog(filePath, entry, opts) {
|
|
4466
4466
|
const resolved = path.resolve(filePath);
|
|
4467
4467
|
const next = (writesByPath.get(resolved) ?? Promise.resolve()).catch(() => void 0).then(async () => {
|
|
4468
|
-
await
|
|
4469
|
-
await
|
|
4468
|
+
await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
4469
|
+
await fsPromises.appendFile(resolved, `${JSON.stringify(entry)}\n`, "utf-8");
|
|
4470
4470
|
await pruneIfNeeded(resolved, {
|
|
4471
4471
|
maxBytes: opts?.maxBytes ?? DEFAULT_CRON_RUN_LOG_MAX_BYTES,
|
|
4472
4472
|
keepLines: opts?.keepLines ?? DEFAULT_CRON_RUN_LOG_KEEP_LINES
|
|
@@ -4560,7 +4560,7 @@ function filterRunLogEntries(entries, opts) {
|
|
|
4560
4560
|
async function readCronRunLogEntriesPage(filePath, opts) {
|
|
4561
4561
|
await drainPendingWrite(filePath);
|
|
4562
4562
|
const limit = Math.max(1, Math.min(200, Math.floor(opts?.limit ?? 50)));
|
|
4563
|
-
const raw = await
|
|
4563
|
+
const raw = await fsPromises.readFile(path.resolve(filePath), "utf-8").catch(() => "");
|
|
4564
4564
|
const statuses = normalizeRunStatuses(opts);
|
|
4565
4565
|
const deliveryStatuses = normalizeDeliveryStatuses(opts);
|
|
4566
4566
|
const query = opts?.query?.trim().toLowerCase() ?? "";
|
|
@@ -4596,7 +4596,7 @@ async function readCronRunLogEntriesPageAll(opts) {
|
|
|
4596
4596
|
const query = opts.query?.trim().toLowerCase() ?? "";
|
|
4597
4597
|
const sortDir = opts.sortDir === "asc" ? "asc" : "desc";
|
|
4598
4598
|
const runsDir = path.resolve(path.dirname(path.resolve(opts.storePath)), "runs");
|
|
4599
|
-
const jsonlFiles = (await
|
|
4599
|
+
const jsonlFiles = (await fsPromises.readdir(runsDir, { withFileTypes: true }).catch(() => [])).filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map((entry) => path.join(runsDir, entry.name));
|
|
4600
4600
|
if (jsonlFiles.length === 0) return {
|
|
4601
4601
|
entries: [],
|
|
4602
4602
|
total: 0,
|
|
@@ -4607,7 +4607,7 @@ async function readCronRunLogEntriesPageAll(opts) {
|
|
|
4607
4607
|
};
|
|
4608
4608
|
await Promise.all(jsonlFiles.map((f) => drainPendingWrite(f)));
|
|
4609
4609
|
const filtered = filterRunLogEntries((await Promise.all(jsonlFiles.map(async (filePath) => {
|
|
4610
|
-
return parseAllRunLogEntries(await
|
|
4610
|
+
return parseAllRunLogEntries(await fsPromises.readFile(filePath, "utf-8").catch(() => ""));
|
|
4611
4611
|
}))).flat(), {
|
|
4612
4612
|
statuses,
|
|
4613
4613
|
deliveryStatuses,
|
|
@@ -10015,7 +10015,7 @@ function resolveWorkspaceFilePathResultOrThrow(params) {
|
|
|
10015
10015
|
}
|
|
10016
10016
|
async function resolveWorkspaceRealPath(workspaceDir) {
|
|
10017
10017
|
try {
|
|
10018
|
-
return await
|
|
10018
|
+
return await fsPromises.realpath(workspaceDir);
|
|
10019
10019
|
} catch {
|
|
10020
10020
|
return path.resolve(workspaceDir);
|
|
10021
10021
|
}
|
|
@@ -10044,7 +10044,7 @@ async function resolveAgentWorkspaceFilePath(params) {
|
|
|
10044
10044
|
};
|
|
10045
10045
|
let candidateLstat;
|
|
10046
10046
|
try {
|
|
10047
|
-
candidateLstat = await
|
|
10047
|
+
candidateLstat = await fsPromises.lstat(candidatePath);
|
|
10048
10048
|
} catch (err) {
|
|
10049
10049
|
return resolveWorkspaceFilePathResultOrThrow({
|
|
10050
10050
|
error: err,
|
|
@@ -10055,7 +10055,7 @@ async function resolveAgentWorkspaceFilePath(params) {
|
|
|
10055
10055
|
if (candidateLstat.isSymbolicLink()) {
|
|
10056
10056
|
let targetReal;
|
|
10057
10057
|
try {
|
|
10058
|
-
targetReal = await
|
|
10058
|
+
targetReal = await fsPromises.realpath(candidatePath);
|
|
10059
10059
|
} catch (err) {
|
|
10060
10060
|
return resolveWorkspaceFilePathResultOrThrow({
|
|
10061
10061
|
error: err,
|
|
@@ -10065,7 +10065,7 @@ async function resolveAgentWorkspaceFilePath(params) {
|
|
|
10065
10065
|
}
|
|
10066
10066
|
let targetStat;
|
|
10067
10067
|
try {
|
|
10068
|
-
targetStat = await
|
|
10068
|
+
targetStat = await fsPromises.stat(targetReal);
|
|
10069
10069
|
} catch (err) {
|
|
10070
10070
|
return resolveWorkspaceFilePathResultOrThrow({
|
|
10071
10071
|
error: err,
|
|
@@ -10103,13 +10103,13 @@ async function resolveAgentWorkspaceFilePath(params) {
|
|
|
10103
10103
|
return {
|
|
10104
10104
|
kind: "ready",
|
|
10105
10105
|
requestPath,
|
|
10106
|
-
ioPath: await
|
|
10106
|
+
ioPath: await fsPromises.realpath(candidatePath).catch(() => candidatePath),
|
|
10107
10107
|
workspaceReal
|
|
10108
10108
|
};
|
|
10109
10109
|
}
|
|
10110
10110
|
async function statFileSafely(filePath) {
|
|
10111
10111
|
try {
|
|
10112
|
-
const [stat, lstat] = await Promise.all([
|
|
10112
|
+
const [stat, lstat] = await Promise.all([fsPromises.stat(filePath), fsPromises.lstat(filePath)]);
|
|
10113
10113
|
if (lstat.isSymbolicLink() || !stat.isFile()) return null;
|
|
10114
10114
|
if (stat.nlink > 1) return null;
|
|
10115
10115
|
if (!sameFileIdentity(stat, lstat)) return null;
|
|
@@ -10203,7 +10203,7 @@ function respondAgentNotFound(respond, agentId) {
|
|
|
10203
10203
|
async function moveToTrashBestEffort(pathname) {
|
|
10204
10204
|
if (!pathname) return;
|
|
10205
10205
|
try {
|
|
10206
|
-
await
|
|
10206
|
+
await fsPromises.access(pathname);
|
|
10207
10207
|
} catch {
|
|
10208
10208
|
return;
|
|
10209
10209
|
}
|
|
@@ -10279,7 +10279,7 @@ const agentsHandlers = {
|
|
|
10279
10279
|
dir: workspaceDir,
|
|
10280
10280
|
ensureBootstrapFiles: !Boolean(nextConfig.agents?.defaults?.skipBootstrap)
|
|
10281
10281
|
});
|
|
10282
|
-
await
|
|
10282
|
+
await fsPromises.mkdir(resolveSessionTranscriptsDirForAgent(agentId), { recursive: true });
|
|
10283
10283
|
await writeConfigFile(nextConfig);
|
|
10284
10284
|
const safeName = sanitizeIdentityLine(rawName);
|
|
10285
10285
|
const emoji = resolveOptionalStringParam(params.emoji);
|
|
@@ -10292,7 +10292,7 @@ const agentsHandlers = {
|
|
|
10292
10292
|
...avatar ? [`- Avatar: ${sanitizeIdentityLine(avatar)}`] : [],
|
|
10293
10293
|
""
|
|
10294
10294
|
];
|
|
10295
|
-
await
|
|
10295
|
+
await fsPromises.appendFile(identityPath, lines.join("\n"), "utf-8");
|
|
10296
10296
|
respond(true, {
|
|
10297
10297
|
ok: true,
|
|
10298
10298
|
agentId,
|
|
@@ -10327,9 +10327,9 @@ const agentsHandlers = {
|
|
|
10327
10327
|
});
|
|
10328
10328
|
if (avatar) {
|
|
10329
10329
|
const workspace = workspaceDir ?? resolveAgentWorkspaceDir(nextConfig, agentId);
|
|
10330
|
-
await
|
|
10330
|
+
await fsPromises.mkdir(workspace, { recursive: true });
|
|
10331
10331
|
const identityPath = path.join(workspace, DEFAULT_IDENTITY_FILENAME);
|
|
10332
|
-
await
|
|
10332
|
+
await fsPromises.appendFile(identityPath, `\n- Avatar: ${sanitizeIdentityLine(avatar)}\n`, "utf-8");
|
|
10333
10333
|
}
|
|
10334
10334
|
respond(true, {
|
|
10335
10335
|
ok: true,
|
|
@@ -10453,7 +10453,7 @@ const agentsHandlers = {
|
|
|
10453
10453
|
const resolved = resolveAgentWorkspaceFileOrRespondError(params, respond);
|
|
10454
10454
|
if (!resolved) return;
|
|
10455
10455
|
const { agentId, workspaceDir, name } = resolved;
|
|
10456
|
-
await
|
|
10456
|
+
await fsPromises.mkdir(workspaceDir, { recursive: true });
|
|
10457
10457
|
const filePath = path.join(workspaceDir, name);
|
|
10458
10458
|
const resolvedPath = await resolveWorkspaceFilePathOrRespond({
|
|
10459
10459
|
respond,
|
|
@@ -12784,14 +12784,14 @@ function isRollingLogFile(file) {
|
|
|
12784
12784
|
return ROLLING_LOG_RE.test(path.basename(file));
|
|
12785
12785
|
}
|
|
12786
12786
|
async function resolveLogFile(file) {
|
|
12787
|
-
if (await
|
|
12787
|
+
if (await fsPromises.stat(file).catch(() => null)) return file;
|
|
12788
12788
|
if (!isRollingLogFile(file)) return file;
|
|
12789
12789
|
const dir = path.dirname(file);
|
|
12790
|
-
const entries = await
|
|
12790
|
+
const entries = await fsPromises.readdir(dir, { withFileTypes: true }).catch(() => null);
|
|
12791
12791
|
if (!entries) return file;
|
|
12792
12792
|
return (await Promise.all(entries.filter((entry) => entry.isFile() && ROLLING_LOG_RE.test(entry.name)).map(async (entry) => {
|
|
12793
12793
|
const fullPath = path.join(dir, entry.name);
|
|
12794
|
-
const fileStat = await
|
|
12794
|
+
const fileStat = await fsPromises.stat(fullPath).catch(() => null);
|
|
12795
12795
|
return fileStat ? {
|
|
12796
12796
|
path: fullPath,
|
|
12797
12797
|
mtimeMs: fileStat.mtimeMs
|
|
@@ -12799,7 +12799,7 @@ async function resolveLogFile(file) {
|
|
|
12799
12799
|
}))).filter((entry) => Boolean(entry)).toSorted((a, b) => b.mtimeMs - a.mtimeMs)[0]?.path ?? file;
|
|
12800
12800
|
}
|
|
12801
12801
|
async function readLogSlice(params) {
|
|
12802
|
-
const stat = await
|
|
12802
|
+
const stat = await fsPromises.stat(params.file).catch(() => null);
|
|
12803
12803
|
if (!stat) return {
|
|
12804
12804
|
cursor: 0,
|
|
12805
12805
|
size: 0,
|
|
@@ -12837,7 +12837,7 @@ async function readLogSlice(params) {
|
|
|
12837
12837
|
truncated,
|
|
12838
12838
|
reset
|
|
12839
12839
|
};
|
|
12840
|
-
const handle = await
|
|
12840
|
+
const handle = await fsPromises.open(params.file, "r");
|
|
12841
12841
|
try {
|
|
12842
12842
|
let prefix = "";
|
|
12843
12843
|
if (start > 0) {
|
|
@@ -13819,7 +13819,7 @@ const nodeHandlers = {
|
|
|
13819
13819
|
const p = params;
|
|
13820
13820
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
13821
13821
|
await respondUnavailableOnThrow(respond, async () => {
|
|
13822
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
13822
|
+
const { handleNodeEvent } = await import("./server-node-events-7TeThsXp.js");
|
|
13823
13823
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
13824
13824
|
await handleNodeEvent({
|
|
13825
13825
|
deps: context.deps,
|
|
@@ -16850,7 +16850,7 @@ function normalizeAgentPayload(payload) {
|
|
|
16850
16850
|
async function startBrowserControlServerIfEnabled() {
|
|
16851
16851
|
if (isTruthyEnvValue(process.env.SQUIDCLAW_SKIP_BROWSER_CONTROL_SERVER)) return null;
|
|
16852
16852
|
const override = process.env.SQUIDCLAW_BROWSER_CONTROL_MODULE?.trim();
|
|
16853
|
-
const mod = override ? await import(override) : await import("./server-
|
|
16853
|
+
const mod = override ? await import(override) : await import("./server-FGj_ECLz.js");
|
|
16854
16854
|
const start = typeof mod.startBrowserControlServiceFromConfig === "function" ? mod.startBrowserControlServiceFromConfig : mod.startBrowserControlServerFromConfig;
|
|
16855
16855
|
const stop = typeof mod.stopBrowserControlService === "function" ? mod.stopBrowserControlService : mod.stopBrowserControlServer;
|
|
16856
16856
|
if (!start) return null;
|
|
@@ -17078,7 +17078,7 @@ async function resolveFileWithinRoot(rootReal, urlPath) {
|
|
|
17078
17078
|
if (normalized.endsWith("/")) return await tryOpen(path.posix.join(rel, "index.html"));
|
|
17079
17079
|
const candidate = path.join(rootReal, rel);
|
|
17080
17080
|
try {
|
|
17081
|
-
const st = await
|
|
17081
|
+
const st = await fsPromises.lstat(candidate);
|
|
17082
17082
|
if (st.isSymbolicLink()) return null;
|
|
17083
17083
|
if (st.isDirectory()) return await tryOpen(path.posix.join(rel, "index.html"));
|
|
17084
17084
|
} catch {}
|
|
@@ -17115,8 +17115,8 @@ async function resolveA2uiRoot() {
|
|
|
17115
17115
|
for (const dir of candidates) try {
|
|
17116
17116
|
const indexPath = path.join(dir, "index.html");
|
|
17117
17117
|
const bundlePath = path.join(dir, "a2ui.bundle.js");
|
|
17118
|
-
await
|
|
17119
|
-
await
|
|
17118
|
+
await fsPromises.stat(indexPath);
|
|
17119
|
+
await fsPromises.stat(bundlePath);
|
|
17120
17120
|
return dir;
|
|
17121
17121
|
} catch {}
|
|
17122
17122
|
return null;
|
|
@@ -17125,7 +17125,7 @@ async function resolveA2uiRootReal() {
|
|
|
17125
17125
|
if (cachedA2uiRootReal !== void 0 && (cachedA2uiRootReal !== null || Date.now() - cachedA2uiResolvedAtMs < A2UI_ROOT_RETRY_NULL_AFTER_MS)) return cachedA2uiRootReal;
|
|
17126
17126
|
if (!resolvingA2uiRoot) resolvingA2uiRoot = (async () => {
|
|
17127
17127
|
const root = await resolveA2uiRoot();
|
|
17128
|
-
cachedA2uiRootReal = root ? await
|
|
17128
|
+
cachedA2uiRootReal = root ? await fsPromises.realpath(root) : null;
|
|
17129
17129
|
cachedA2uiResolvedAtMs = Date.now();
|
|
17130
17130
|
resolvingA2uiRoot = null;
|
|
17131
17131
|
return cachedA2uiRootReal;
|
|
@@ -17346,13 +17346,13 @@ function normalizeBasePath(rawPath) {
|
|
|
17346
17346
|
}
|
|
17347
17347
|
async function prepareCanvasRoot(rootDir) {
|
|
17348
17348
|
await ensureDir(rootDir);
|
|
17349
|
-
const rootReal = await
|
|
17349
|
+
const rootReal = await fsPromises.realpath(rootDir);
|
|
17350
17350
|
try {
|
|
17351
17351
|
const indexPath = path.join(rootReal, "index.html");
|
|
17352
|
-
await
|
|
17352
|
+
await fsPromises.stat(indexPath);
|
|
17353
17353
|
} catch {
|
|
17354
17354
|
try {
|
|
17355
|
-
await
|
|
17355
|
+
await fsPromises.writeFile(path.join(rootReal, "index.html"), defaultIndexHTML(), "utf8");
|
|
17356
17356
|
} catch {}
|
|
17357
17357
|
}
|
|
17358
17358
|
return rootReal;
|
|
@@ -20398,7 +20398,7 @@ async function resolveGatewayOwnerStatus(pid, payload, platform, port) {
|
|
|
20398
20398
|
}
|
|
20399
20399
|
async function readLockPayload(lockPath) {
|
|
20400
20400
|
try {
|
|
20401
|
-
const raw = await
|
|
20401
|
+
const raw = await fsPromises.readFile(lockPath, "utf8");
|
|
20402
20402
|
const parsed = JSON.parse(raw);
|
|
20403
20403
|
if (typeof parsed.pid !== "number") return null;
|
|
20404
20404
|
if (typeof parsed.createdAt !== "string") return null;
|
|
@@ -20433,11 +20433,11 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
20433
20433
|
const platform = opts.platform ?? process.platform;
|
|
20434
20434
|
const port = opts.port;
|
|
20435
20435
|
const { lockPath, configPath } = resolveGatewayLockPath(env);
|
|
20436
|
-
await
|
|
20436
|
+
await fsPromises.mkdir(path.dirname(lockPath), { recursive: true });
|
|
20437
20437
|
const startedAt = Date.now();
|
|
20438
20438
|
let lastPayload = null;
|
|
20439
20439
|
while (Date.now() - startedAt < timeoutMs) try {
|
|
20440
|
-
const handle = await
|
|
20440
|
+
const handle = await fsPromises.open(lockPath, "wx");
|
|
20441
20441
|
const startTime = platform === "linux" ? readLinuxStartTime(process.pid) : null;
|
|
20442
20442
|
const payload = {
|
|
20443
20443
|
pid: process.pid,
|
|
@@ -20451,7 +20451,7 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
20451
20451
|
configPath,
|
|
20452
20452
|
release: async () => {
|
|
20453
20453
|
await handle.close().catch(() => void 0);
|
|
20454
|
-
await
|
|
20454
|
+
await fsPromises.rm(lockPath, { force: true });
|
|
20455
20455
|
}
|
|
20456
20456
|
};
|
|
20457
20457
|
} catch (err) {
|
|
@@ -20460,7 +20460,7 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
20460
20460
|
const ownerPid = lastPayload?.pid;
|
|
20461
20461
|
const ownerStatus = ownerPid ? await resolveGatewayOwnerStatus(ownerPid, lastPayload, platform, port) : "unknown";
|
|
20462
20462
|
if (ownerStatus === "dead" && ownerPid) {
|
|
20463
|
-
await
|
|
20463
|
+
await fsPromises.rm(lockPath, { force: true });
|
|
20464
20464
|
continue;
|
|
20465
20465
|
}
|
|
20466
20466
|
if (ownerStatus !== "alive") {
|
|
@@ -20470,13 +20470,13 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
20470
20470
|
stale = Number.isFinite(createdAt) ? Date.now() - createdAt > staleMs : false;
|
|
20471
20471
|
}
|
|
20472
20472
|
if (!stale) try {
|
|
20473
|
-
const st = await
|
|
20473
|
+
const st = await fsPromises.stat(lockPath);
|
|
20474
20474
|
stale = Date.now() - st.mtimeMs > staleMs;
|
|
20475
20475
|
} catch {
|
|
20476
20476
|
stale = false;
|
|
20477
20477
|
}
|
|
20478
20478
|
if (stale) {
|
|
20479
|
-
await
|
|
20479
|
+
await fsPromises.rm(lockPath, { force: true });
|
|
20480
20480
|
continue;
|
|
20481
20481
|
}
|
|
20482
20482
|
}
|
|
@@ -22828,7 +22828,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
22828
22828
|
if (!minimalTestGateway) cron.start().catch((err) => logCron.error(`failed to start: ${String(err)}`));
|
|
22829
22829
|
if (!minimalTestGateway) (async () => {
|
|
22830
22830
|
const { recoverPendingDeliveries } = await import("./delivery-queue-D-91NTFS.js").then((n) => n.n);
|
|
22831
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
22831
|
+
const { deliverOutboundPayloads } = await import("./deliver-f-YZpnF5.js").then((n) => n.n);
|
|
22832
22832
|
await recoverPendingDeliveries({
|
|
22833
22833
|
deliver: deliverOutboundPayloads,
|
|
22834
22834
|
log: log.child("delivery-recovery"),
|