squidclaw 3.0.23 → 3.0.24
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-s5e9zidf.js → accounts-C7pGQPcS.js} +2 -2
- package/dist/{accounts-DeqNOvBo.js → accounts-Cuwg9Tan.js} +1 -1
- package/dist/{accounts-Bkb-J8V6.js → accounts-DjhBQg_8.js} +2 -2
- package/dist/{accounts-B6F_XCgS.js → accounts-DwGoZKGm.js} +17 -17
- package/dist/{acp-cli-BwG98FYT.js → acp-cli-Ch55Vzud.js} +8 -8
- package/dist/{active-listener-6-Svu8Dx.js → active-listener-DPc_PGsA.js} +2 -2
- package/dist/{agent-scope-Cq4vDGrK.js → agent-scope-nEVgVklg.js} +17 -17
- package/dist/{agents-DXKtU4Il.js → agents-B-ig6ydU.js} +14 -14
- package/dist/{agents.config-BM-2SLCh.js → agents.config-w_Z6Fb4-.js} +2 -2
- package/dist/{api-key-rotation-TRwuCWbu.js → api-key-rotation-DVyYtQxC.js} +2 -2
- package/dist/{api-key-rotation-6i41mEc9.js → api-key-rotation-JPmjv-c0.js} +1 -1
- package/dist/{audio-preflight-1KULThhV.js → audio-preflight-BUCBED7N.js} +32 -32
- package/dist/{audio-preflight-C-JCwUKe.js → audio-preflight-CZ--cSZh.js} +34 -34
- package/dist/{audio-transcription-runner-C3N9eAGM.js → audio-transcription-runner-Cv0Q47cM.js} +12 -12
- package/dist/{audio-transcription-runner-DvQksGUE.js → audio-transcription-runner-D-uxpkbd.js} +23 -23
- package/dist/{audit-DLTgNDFw.js → audit-JLT1FqTt.js} +29 -29
- package/dist/{audit-membership-runtime-w23FnNAN.js → audit-membership-runtime-DyLj-uhz.js} +4 -4
- package/dist/{auth-CuObxnC4.js → auth-BlP9BwaD.js} +1 -1
- package/dist/{auth-choice-BVQQneHM.js → auth-choice-Czu7271G.js} +13 -13
- package/dist/{auth-choice-CXepQc7c.js → auth-choice-ORZHjbsv.js} +11 -11
- package/dist/{auth-choice.apply-helpers-p1y_DmDT.js → auth-choice.apply-helpers-CdoXMtxm.js} +1 -1
- package/dist/{auth-profiles-CX4YYu7Z.js → auth-profiles-9T4j6jMy.js} +16 -16
- package/dist/{auth-token-Dlk7MMsC.js → auth-token-BFc70pes.js} +1 -1
- package/dist/{banner-DMfuBV69.js → banner-CwNmI5G-.js} +2 -2
- package/dist/{bonjour-discovery-BHz2I6_W.js → bonjour-discovery-eqJcK09r.js} +1 -1
- package/dist/{browser-cli-Dvwk4zAD.js → browser-cli-DCDPC5sg.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +51 -51
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +59 -61
- package/dist/{call-BlWEBz99.js → call-D7jOWSFr.js} +10 -10
- package/dist/{channel-account-context-CQ6rCiGI.js → channel-account-context-DJ3rHgVO.js} +5 -5
- package/dist/{channel-activity-CxJbx4sD.js → channel-activity-CPpt4XaL.js} +3 -3
- package/dist/{channel-activity-BZKeZQH-.js → channel-activity-wuB3-cfR.js} +1 -1
- package/dist/{channel-options-CQ-gER0J.js → channel-options-BS7BSU_5.js} +3 -3
- package/dist/{channel-selection-BqwS1Rlq.js → channel-selection-CFWQq1nS.js} +1 -1
- package/dist/{channel-web-LLzBxZrT.js → channel-web-C1qYz-HK.js} +17 -17
- package/dist/{channels-cli-D4xUEYYC.js → channels-cli-CVNqp5q7.js} +93 -93
- package/dist/{channels-status-issues-Dz1_R7Ah.js → channels-status-issues-Erzzhl2e.js} +1 -1
- package/dist/{chrome-CoRiYsNu.js → chrome-DiktJpMU.js} +4 -4
- package/dist/{chrome-Qbvnl6so.js → chrome-OgCChbC_.js} +18 -18
- package/dist/{clawbot-cli-2Zlim_pH.js → clawbot-cli-C3bt-FEP.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-CAID9zkL.js → cli-Jyqv2jm8.js} +73 -73
- package/dist/{client-G9E5HGM2.js → client-COy24r9W.js} +2 -2
- package/dist/{command-registry-AHS8_9da.js → command-registry-DCojicSG.js} +11 -11
- package/dist/{command-secret-targets-DAu5nw-j.js → command-secret-targets-CZjP-Bm5.js} +4 -4
- package/dist/{commands-CnX9I_l4.js → commands-DDHiW-As.js} +1 -1
- package/dist/{commands-registry-_r_JONI4.js → commands-registry--ITOJ-cM.js} +3 -3
- package/dist/{commands-registry-B44COZFz.js → commands-registry-BJjv8_oR.js} +4 -4
- package/dist/{completion-cli-BR1r9_h4.js → completion-cli-DCTv7Ejv.js} +13 -13
- package/dist/{config-cli-D0A8Awoo.js → config-cli-CSPSSP_R.js} +7 -7
- package/dist/{config-guard-BHy2f0hU.js → config-guard-CFauJm79.js} +3 -3
- package/dist/{config-validation-BkvDORAk.js → config-validation-Bt3LfFJ0.js} +3 -3
- package/dist/{configure-XmOqwwy9.js → configure-DAol2gT6.js} +17 -17
- package/dist/{control-ui-assets-BYEy341x.js → control-ui-assets-d6VtDSeo.js} +1 -1
- package/dist/{cron-cli-QwZcnjJc.js → cron-cli-yS1ww1k2.js} +11 -11
- package/dist/{daemon-cli-kJfDhzr8.js → daemon-cli-B-yZvTqZ.js} +15 -15
- package/dist/{daemon-install-Chxlu9Kv.js → daemon-install-CbPLNiIP.js} +4 -4
- package/dist/{daemon-install-helpers-CJtiW2RE.js → daemon-install-helpers-CZDVO_MU.js} +11 -11
- package/dist/{deliver-CL2RW5UB.js → deliver-D-IQEJ52.js} +7 -7
- package/dist/{deliver-BC5egJvm.js → deliver-DMTUTpTM.js} +21 -21
- package/dist/deliver-runtime-B80olQwJ.js +36 -0
- package/dist/deliver-runtime-zICm26tE.js +61 -0
- package/dist/deps-send-discord.runtime-C_9HZQko.js +36 -0
- package/dist/deps-send-discord.runtime-GIuvX7Xw.js +26 -0
- package/dist/deps-send-imessage.runtime-B3TC7G80.js +25 -0
- package/dist/deps-send-imessage.runtime-BMhGsWds.js +35 -0
- package/dist/deps-send-signal.runtime-BGhjYiu6.js +34 -0
- package/dist/deps-send-signal.runtime-CuVJyw7n.js +24 -0
- package/dist/deps-send-slack.runtime-DjBCu-RX.js +32 -0
- package/dist/deps-send-slack.runtime-cbfFoLZ4.js +22 -0
- package/dist/deps-send-telegram.runtime-CRyP-xDQ.js +27 -0
- package/dist/{deps-send-telegram.runtime-BHaZAs2h.js → deps-send-telegram.runtime-Irv0ky5l.js} +16 -16
- package/dist/deps-send-whatsapp.runtime-4aOUBP2J.js +60 -0
- package/dist/deps-send-whatsapp.runtime-CU257URT.js +119 -0
- package/dist/{devices-cli-DlQGTogF.js → devices-cli-CPgutgUT.js} +8 -8
- package/dist/{diagnostic-CLEtu0MC.js → diagnostic-B4w80e4D.js} +1 -1
- package/dist/{diagnostic-C2lklhkn.js → diagnostic-CnVwZNbm.js} +2 -2
- package/dist/{diagnostics--O6mo6KH.js → diagnostics-m7hHHbuE.js} +5 -5
- package/dist/{directory-cli-K9qIwxYa.js → directory-cli-DqObADBL.js} +7 -7
- package/dist/{dns-cli-qtX-WNMF.js → dns-cli-CKbwsWBv.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-CZoEdMS-.js → doctor-completion--7PR_Vqz.js} +2 -2
- package/dist/{doctor-config-flow-C-h3yV4z.js → doctor-config-flow-BDF7TR6O.js} +15 -15
- package/dist/{enable-C8FNY18p.js → enable--Q7yLTZm.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{errors-DfgAh2Ml.js → errors-kkRuS2Cs.js} +1 -1
- package/dist/{exec-approvals-allowlist-CtSREgYh.js → exec-approvals-allowlist-B9bcJkGP.js} +1 -1
- package/dist/{exec-approvals-cli-BmM4RpVn.js → exec-approvals-cli-homtziYt.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-CfQeDABF.js → exec-safe-bin-runtime-policy-DECo77U6.js} +2 -2
- package/dist/{fetch-b8tSR7_e.js → fetch-DP-JjB6Z.js} +5 -5
- package/dist/{fetch-guard-D16tjNsZ.js → fetch-guard-BDy975wP.js} +2 -2
- package/dist/{fetch-guard-Dvzi3MjK.js → fetch-guard-CbtWqa1E.js} +1 -1
- package/dist/{fetch-CtoC2wgs.js → fetch-lq0SDLLE.js} +3 -3
- package/dist/{frontmatter-CjKtFduT.js → frontmatter-Cq1TcIQ2.js} +3 -3
- package/dist/fs-safe-BPQ-per2.js +352 -0
- package/dist/{fs-safe-CwHbZdFH.js → fs-safe-BoB4X3GD.js} +4 -4
- package/dist/{gateway-cli-BJHBChfI.js → gateway-cli-B3oqskb4.js} +153 -153
- package/dist/{gateway-rpc-D0AmaBzR.js → gateway-rpc-BBBN9ZJk.js} +1 -1
- package/dist/{github-copilot-token-Cw3tAXM9.js → github-copilot-token-B5cPlwaz.js} +7 -7
- package/dist/{health-XFKFZ7ZJ.js → health-CjXrJkCb.js} +11 -11
- package/dist/{hooks-cli-CXsZK8H9.js → hooks-cli--aKmd8c9.js} +81 -81
- package/dist/{hooks-status-DMFBAUq8.js → hooks-status-BlgSVDvN.js} +1 -1
- package/dist/{image-DSWTfuxv.js → image-BcYt63Jx.js} +5 -5
- package/dist/{image-ByqExb8z.js → image-kKMG59st.js} +6 -6
- package/dist/{image-ops-BoN1E_WZ.js → image-ops-Dg8iraUV.js} +2 -2
- package/dist/{image-ops-B2uuLIGD.js → image-ops-LFsSCTyI.js} +10 -10
- package/dist/image-runtime-BqIv7p_K.js +29 -0
- package/dist/image-runtime-Cxoxcx04.js +55 -0
- package/dist/{inspect-4c1uL0x5.js → inspect-CzsXBsew.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-sHllwvAI.js → ipv4-B95173MB.js} +1 -1
- package/dist/{ir-BukzlgSp.js → ir-C7He5vmn.js} +8 -8
- package/dist/{ir-Dut0zXyS.js → ir-CKK03mBV.js} +8 -8
- package/dist/{issue-format-DCcINW-9.js → issue-format-CbTfB8Hy.js} +1 -1
- package/dist/{json-files-CuJjdF_0.js → json-files-rR19q30D.js} +8 -8
- package/dist/{legacy-names-B0wgIP0Q.js → legacy-names-aGJJuzM_.js} +1 -1
- package/dist/{lifecycle-core-CqFEhwHn.js → lifecycle-core-ChKClWdw.js} +5 -5
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-oGKcCLZ5.js → logger-CnTSBL7T.js} +7 -7
- package/dist/{login-DJ357UQV.js → login-CeKDrz6_.js} +5 -5
- package/dist/{login-zoeewfBu.js → login-CjzRATwO.js} +3 -3
- package/dist/{login-qr-B8P_EAd-.js → login-qr-CX0rs3A6.js} +6 -6
- package/dist/{login-qr-C0fDBnpM.js → login-qr-KbOpR0GQ.js} +10 -10
- package/dist/{logs-cli-D30BUN6y.js → logs-cli-DvHsw1WZ.js} +9 -9
- package/dist/{manager-5OzUkYLf.js → manager-BVfTfggO.js} +14 -14
- package/dist/{manager-BPGhs30n.js → manager-DINhLnMi.js} +13 -13
- package/dist/{manager-runtime-BxXpVt3x.js → manager-runtime-BXJJSlzC.js} +9 -9
- package/dist/manager-runtime-D6ckUNSs.js +18 -0
- package/dist/{manifest-registry-7kwtbCH-.js → manifest-registry-1ACGW3OR.js} +1 -1
- package/dist/{memory-cli-Dj8tyFtt.js → memory-cli-u8eyO3Ec.js} +12 -12
- package/dist/{model-B8p-EsdJ.js → model-D7hZpWTB.js} +2 -2
- package/dist/{model-catalog-BWuvEv1x.js → model-catalog-Drh9Rois.js} +3 -3
- package/dist/{model-picker-CLhaaagi.js → model-picker-DK_vvKCV.js} +4 -4
- package/dist/{model-selection-CHnojCCK.js → model-selection-DuNLFQPR.js} +43 -43
- package/dist/{models-5VXwJBU2.js → models-CFXLX9IF.js} +17 -17
- package/dist/{models-cli-Br56IHfy.js → models-cli-PHQyKESa.js} +78 -78
- package/dist/{models-config-poV-4Xlx.js → models-config-DAastTau.js} +6 -6
- package/dist/{net-CCnbGop3.js → net-CIh5ellr.js} +2 -2
- package/dist/{node-cli-C8hvYquX.js → node-cli-o9qcU9GJ.js} +33 -33
- package/dist/{node-command-policy-B_D5ucTj.js → node-command-policy-BeTSnoyk.js} +1 -1
- package/dist/{node-service-Z0JprJda.js → node-service-OVe0_CIs.js} +1 -1
- package/dist/{nodes-cli-IIc8fTKT.js → nodes-cli-kGx_Qa3c.js} +16 -16
- package/dist/{nodes-screen-DFFmbaXE.js → nodes-screen-BrMJzhot.js} +7 -7
- package/dist/{npm-pack-install-B887us7R.js → npm-pack-install-Dn3FiWXB.js} +18 -18
- package/dist/{npm-resolution-CKtyq4FH.js → npm-resolution-ky_uAlXE.js} +4 -4
- package/dist/{onboard-lFwpCpC3.js → onboard-D1Qy64JK.js} +6 -6
- package/dist/{onboard-channels-_kVo3Apf.js → onboard-channels-oJCC_sJX.js} +21 -21
- package/dist/{onboard-custom-CZtjqrY7.js → onboard-custom-CRpsaM3g.js} +4 -4
- package/dist/{onboard-helpers-BP429__H.js → onboard-helpers-DwEZeaoe.js} +10 -10
- package/dist/{onboard-hooks-CTbjgLDl.js → onboard-hooks-DyxckB2C.js} +4 -4
- package/dist/{onboard-remote-BlZB0AE9.js → onboard-remote-ZgpWNq9Z.js} +4 -4
- package/dist/{onboard-skills-BT2YOXeP.js → onboard-skills-DEijVfCg.js} +4 -4
- package/dist/{onboarding-EEd_g8Zg.js → onboarding-Mxqy4O1E.js} +14 -14
- package/dist/{onboarding.finalize-Cs1ukjFN.js → onboarding.finalize-DiOMx6A5.js} +90 -90
- package/dist/{onboarding.gateway-config-C6N8r5Is.js → onboarding.gateway-config-9wkBCzzO.js} +18 -18
- package/dist/{onboarding.secret-input-BTK1IG-J.js → onboarding.secret-input-DRnoQSlI.js} +1 -1
- package/dist/{openai-model-default-COzeuAI4.js → openai-model-default-DqE4bNtd.js} +2 -2
- package/dist/{outbound-qTioiTJg.js → outbound-C9svt6RH.js} +6 -6
- package/dist/{outbound-B7m9Vcd2.js → outbound-CwzUo-rx.js} +3 -3
- package/dist/{outbound-attachment-fdEhzyl9.js → outbound-attachment-Bedqixj2.js} +2 -2
- package/dist/{outbound-attachment-rlW7G5df.js → outbound-attachment-DwupUxYF.js} +2 -2
- package/dist/{pairing-cli-NhoRKes6.js → pairing-cli-CsYP0at7.js} +8 -8
- package/dist/{pairing-labels-CnTvFrUT.js → pairing-labels-CX4CtqRa.js} +1 -1
- package/dist/{pairing-store-D0eOXyby.js → pairing-store-BC4mnG9S.js} +3 -3
- package/dist/{path-alias-guards-Cpsiv2KL.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-CSdAWKDO.js → paths-DA5srn0U.js} +5 -5
- package/dist/{paths-CXClY8zC.js → paths-DSd911Oe.js} +4 -4
- package/dist/{pi-embedded-DUtpCH0X.js → pi-embedded-BiC4tIJ8.js} +162 -162
- package/dist/{pi-embedded-helpers-CYR1UemI.js → pi-embedded-helpers-Di58J7Eh.js} +52 -52
- package/dist/{pi-embedded-helpers-qCAK_a65.js → pi-embedded-helpers-DtCOZSv-.js} +6 -6
- package/dist/{pi-model-discovery-CKUePiDc.js → pi-model-discovery-Cr1q2cJt.js} +1 -1
- package/dist/pi-model-discovery-V-InbjOM.js +134 -0
- package/dist/pi-model-discovery-runtime--t6tAlar.js +11 -0
- package/dist/{pi-model-discovery-runtime-CNLKih0w.js → pi-model-discovery-runtime-BHmdAKBK.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-B_LUttg1.js → pi-tools.before-tool-call.runtime-Bpk4qTgV.js} +9 -9
- package/dist/{pi-tools.before-tool-call.runtime-Bba7rXQq.js → pi-tools.before-tool-call.runtime-duKHqrMc.js} +5 -5
- package/dist/{pi-tools.policy-BwWnFLLV.js → pi-tools.policy-D3RA94WF.js} +5 -5
- package/dist/{plugin-auto-enable-DJkHW_LG.js → plugin-auto-enable-a3TK3OPT.js} +3 -3
- package/dist/{plugin-registry-D3PnPE1D.js → plugin-registry-CFqqDqQV.js} +3 -3
- package/dist/plugin-sdk/accounts-CUEuUR3C.js +46 -0
- package/dist/plugin-sdk/accounts-D0W2pELU.js +288 -0
- package/dist/plugin-sdk/accounts-ucj0odJq.js +35 -0
- package/dist/plugin-sdk/active-listener-BO7eBEG_.js +50 -0
- package/dist/plugin-sdk/api-key-rotation-C4C_mDsg.js +181 -0
- package/dist/plugin-sdk/audio-preflight-Cqdo0JKm.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-DnEooIyE.js +2176 -0
- package/dist/plugin-sdk/audit-membership-runtime-B9b-zRwg.js +58 -0
- package/dist/plugin-sdk/channel-activity-BMWLw4o2.js +94 -0
- package/dist/plugin-sdk/channel-web-B8bj7MB9.js +2256 -0
- package/dist/plugin-sdk/chrome-CV-q0Lmc.js +2415 -0
- package/dist/plugin-sdk/commands-registry-e7YoqrbP.js +1125 -0
- package/dist/plugin-sdk/config-B2B64aX0.js +17911 -0
- package/dist/plugin-sdk/deliver-BkyBtcLR.js +1694 -0
- package/dist/plugin-sdk/deliver-runtime-O4lwAWMw.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-BAeeBldY.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-EL-CfikZ.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BeemHeUu.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-DTttkC0N.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-Dsf9Cnka.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-DvdFo6lj.js +57 -0
- package/dist/plugin-sdk/diagnostic-DPRVoKTk.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-F0Fnqisy.js +156 -0
- package/dist/{fs-safe-DPYj7h8A.js → plugin-sdk/fs-safe-Dqmpk-Fr.js} +6 -6
- package/dist/plugin-sdk/image-cBW8L8pp.js +2310 -0
- package/dist/plugin-sdk/image-ops-BP8ix1GC.js +584 -0
- package/dist/plugin-sdk/image-runtime-9xkgSlNz.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/ir-DWEc6zOp.js +1296 -0
- package/dist/plugin-sdk/local-roots-BIPT8uAO.js +186 -0
- package/dist/plugin-sdk/logger-DDdrdbDu.js +1163 -0
- package/dist/plugin-sdk/login-BMTiGutN.js +57 -0
- package/dist/plugin-sdk/login-qr-BFxqYUkc.js +320 -0
- package/dist/plugin-sdk/manager-BD-aYaZ8.js +3917 -0
- package/dist/plugin-sdk/manager-runtime-C5bRwUlz.js +15 -0
- package/dist/plugin-sdk/outbound-Bm07xvO6.js +212 -0
- package/dist/plugin-sdk/outbound-attachment-DLsaxDsc.js +19 -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-BExwPvTh.js +9627 -0
- package/dist/{pi-model-discovery-o-WX5w2t.js → plugin-sdk/pi-model-discovery-DdctvBeX.js} +2 -2
- package/dist/plugin-sdk/pi-model-discovery-runtime-DrtpLJjk.js +8 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-rgTz3FBl.js +354 -0
- package/dist/plugin-sdk/plugins-BN64HHZA.js +864 -0
- package/dist/{proxy-fetch-C2v-Utgg.js → plugin-sdk/proxy-fetch-ZPEvp58f.js} +1 -1
- package/dist/plugin-sdk/pw-ai-DBm3RdBK.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-NmPEVjIo.js → plugin-sdk/redact-BoNEjbpF.js} +1 -1
- package/dist/plugin-sdk/reply-Bp49JV3f.js +98828 -0
- package/dist/plugin-sdk/resolve-outbound-target-DXfjGlZQ.js +40 -0
- package/dist/plugin-sdk/run-with-concurrency-5DMu9szx.js +1994 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-D2hkJBa-.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-C06I4adi.js +19 -0
- package/dist/plugin-sdk/send-B9xnwtQ-.js +540 -0
- package/dist/plugin-sdk/send-BxySs-Cu.js +2587 -0
- package/dist/plugin-sdk/send-D9THKp_J.js +414 -0
- package/dist/plugin-sdk/send-DCuaaP2w.js +503 -0
- package/dist/plugin-sdk/send-Dm_-_xje.js +3135 -0
- package/dist/plugin-sdk/session-DDzIZHxt.js +169 -0
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/skill-commands-DRvqtuFC.js +342 -0
- package/dist/plugin-sdk/skills-BWwlfbVj.js +1428 -0
- package/dist/plugin-sdk/slash-commands.runtime-BzYsaTST.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-Cty8EAD9.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-sg98L8BK.js +16 -0
- package/dist/plugin-sdk/ssrf-DOBwjFow.js +202 -0
- package/dist/plugin-sdk/store-BKDR_-Qk.js +81 -0
- package/dist/plugin-sdk/subagent-registry-runtime-Dz50ieim.js +52 -0
- package/dist/plugin-sdk/tables-GIj79us5.js +55 -0
- package/dist/{target-errors-D0ZJUbbf.js → plugin-sdk/target-errors-jlLHihbX.js} +2 -2
- package/dist/plugin-sdk/thinking-BgdUnMZ2.js +1206 -0
- package/dist/{tokens-D2XhLqIz.js → plugin-sdk/tokens-CTIYTLWu.js} +1 -1
- package/dist/plugin-sdk/tool-images-GSlvf6RP.js +274 -0
- package/dist/plugin-sdk/web-BK9mCTAc.js +56 -0
- package/dist/plugin-sdk/whatsapp-actions-DQpK_5Ds.js +80 -0
- package/dist/{plugins-BDTkSIi7.js → plugins-Bc7YM9X-.js} +2 -2
- package/dist/{plugins-AqsVZZk3.js → plugins-DvejjZnJ.js} +11 -11
- package/dist/{plugins-cli-BA_2daJe.js → plugins-cli-vQi8tFye.js} +83 -83
- package/dist/{ports-Be82TlEg.js → ports-BzfeaNjw.js} +1 -1
- package/dist/{ports-0jLyYbvQ.js → ports-DMeUt80n.js} +2 -2
- package/dist/{program-D_xdLzmM.js → program-Nott_VTb.js} +81 -81
- package/dist/{prompt-select-styled-BsheNEnh.js → prompt-select-styled-7mnlZgrQ.js} +40 -40
- package/dist/{provider-auth-helpers-B5kD4Lt6.js → provider-auth-helpers-_77rN3Zc.js} +5 -5
- package/dist/{proxy-env-CQTuxZoS.js → proxy-env-BiKHVg2h.js} +1 -1
- package/dist/{proxy-env-DXXfs2WL.js → proxy-env-D-fike7s.js} +1 -1
- package/dist/proxy-fetch-lH6RsRTE.js +38 -0
- package/dist/{push-apns-BbenjEX4.js → push-apns-Ce1zzNYB.js} +5 -5
- package/dist/{pw-ai-1NQPuno2.js → pw-ai-B8ymIYub.js} +14 -14
- package/dist/{pw-ai-wo5t_KO_.js → pw-ai-CAhTwexx.js} +18 -18
- package/dist/{qmd-manager-CO-shcLU.js → qmd-manager-BN0siR2Z.js} +10 -10
- package/dist/qmd-manager-BsL_hcOB.js +1454 -0
- package/dist/{qr-cli-DSMYIp-D.js → qr-cli-DzjBpGix.js} +2 -2
- package/dist/{query-expansion-DI9INxTg.js → query-expansion-C0HUJbRn.js} +12 -12
- package/dist/{query-expansion-DlQOkf-g.js → query-expansion-Dzxt6kXo.js} +6 -6
- package/dist/redact-DvzicBMu.js +319 -0
- package/dist/{redact-snapshot-B2YFI3cO.js → redact-snapshot-C0McNGqh.js} +1 -1
- package/dist/{register.agent-Dk_5V5oA.js → register.agent-DtjNdvUh.js} +94 -94
- package/dist/register.configure-BkwbM-hb.js +165 -0
- package/dist/{register.maintenance-CluQOq8b.js → register.maintenance-DERKsSgi.js} +95 -95
- package/dist/{register.message-BCTXT5yK.js → register.message-DkYxt6gZ.js} +74 -74
- package/dist/{register.onboard-C64oXnvq.js → register.onboard-BtfW83M0.js} +18 -18
- package/dist/{register.setup-Dl3nk2Ui.js → register.setup-Ba9gMkRk.js} +21 -21
- package/dist/{register.status-health-sessions-BHtbPeCO.js → register.status-health-sessions-BILdpWJV.js} +88 -88
- package/dist/{register.subclis-CDMFyaKR.js → register.subclis-Dfm_Zu31.js} +31 -31
- package/dist/{rpc-DA9IhLVG.js → rpc-mau2U4RG.js} +1 -1
- package/dist/{run-main-BcA22Ipv.js → run-main-BF7ybLIy.js} +93 -93
- package/dist/{run-with-concurrency-FczpX8ng.js → run-with-concurrency-BFR3ReeF.js} +4 -4
- package/dist/{runtime-BnbzNRr6.js → runtime-Bcmv4Epp.js} +3 -3
- package/dist/{runtime-config-collectors-CXJdhHRo.js → runtime-config-collectors-Bsjz4isf.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-DRoK8G8H.js → runtime-whatsapp-login.runtime-COUEKxmy.js} +7 -7
- package/dist/runtime-whatsapp-login.runtime-DxV9iv6l.js +13 -0
- package/dist/{runtime-whatsapp-outbound.runtime-C9OiwkWh.js → runtime-whatsapp-outbound.runtime-BaWH6-ns.js} +15 -15
- package/dist/runtime-whatsapp-outbound.runtime-DQqIlwhS.js +22 -0
- package/dist/{sandbox-cli-BwK2slfh.js → sandbox-cli-DOxm7fjR.js} +25 -25
- package/dist/{sandbox-C3TbYIHd.js → sandbox-ixDhkfHu.js} +18 -18
- package/dist/{secrets-cli-Beu2lcrf.js → secrets-cli-DvXznMUb.js} +11 -11
- package/dist/{security-cli-CcpKH_lC.js → security-cli-3WOXvJR-.js} +42 -42
- package/dist/{send-Bx9CqcZr.js → send-4nRsZJXH.js} +7 -7
- package/dist/{send-D5D0ZGht.js → send-BGlcHjUD.js} +26 -26
- package/dist/{send-EVcbFVqn.js → send-BPgrWmUX.js} +5 -5
- package/dist/{send-DtHQ7_6Z.js → send-BTUU1jWM.js} +8 -8
- package/dist/{send-RDqyJwZx.js → send-BVyLW1cn.js} +8 -8
- package/dist/{send-z-sMjqvX.js → send-BpkluEZ5.js} +4 -4
- package/dist/{send-CLI3CiQv.js → send-BuBTLRMz.js} +6 -6
- package/dist/{send-B9H0BkfO.js → send-DdBbRpTP.js} +6 -6
- package/dist/{send-DEs83M9V.js → send-Do2preUU.js} +11 -11
- package/dist/{send-B5QEmMJ4.js → send-dTQd-IyJ.js} +5 -5
- package/dist/{server-Bm-IxvZZ.js → server-DMAPnkgM.js} +20 -20
- package/dist/{server-context-Dw_4lGoI.js → server-context-Dd8UynDU.js} +12 -12
- package/dist/{server-lifecycle-DYgHYif9.js → server-lifecycle-BEZ2jsQ6.js} +2 -2
- package/dist/{server-middleware-BVAEuQs7.js → server-middleware-B_LyQkOL.js} +1 -1
- package/dist/{server-node-events-Q0cT2ifj.js → server-node-events-dr5CaM3M.js} +74 -74
- package/dist/{service-DSqxS6_D.js → service-B5T42CWZ.js} +15 -15
- package/dist/{session-DLTCuoUD.js → session-CnCwDJke.js} +8 -8
- package/dist/{session-D0jodcgT.js → session-eXSdl5mb.js} +1 -1
- package/dist/{session-utils-XY6JwRhT.js → session-utils-D12gSo5W.js} +6 -6
- package/dist/{sessions-CMqv9JEu.js → sessions-C16G7L5c.js} +4 -4
- package/dist/{sessions-BWptzMw0.js → sessions-DgnXAQCc.js} +15 -15
- package/dist/{shared-BbVxcRzb.js → shared-BYny1RCF.js} +3 -3
- package/dist/{shared-D5DTxBPH.js → shared-By6_qr_R.js} +1 -1
- package/dist/{skill-commands-fU-Mejn9.js → skill-commands-BcigmiOW.js} +5 -5
- package/dist/{skill-commands-BwTLQRR8.js → skill-commands-Cz45_nme.js} +9 -9
- package/dist/{skill-scanner-CvS725eQ.js → skill-scanner--QKHR8U0.js} +6 -6
- package/dist/{skills-B9N2bqKU.js → skills-CdCS1HeL.js} +22 -22
- package/dist/{skills-C85azDXm.js → skills-EwyaIyKC.js} +3 -3
- package/dist/{skills-cli-ZXx6BNar.js → skills-cli-CqEjN0Yj.js} +5 -5
- package/dist/{skills-install-KD6dzNoZ.js → skills-install-CXVKvhIE.js} +6 -6
- package/dist/{skills-status-DkO7rxE8.js → skills-status-Bv8Xt7Lc.js} +1 -1
- package/dist/{slash-commands.runtime-CPlXJtuM.js → slash-commands.runtime-Bi99B_EP.js} +11 -11
- package/dist/slash-commands.runtime-CZz6v6b3.js +16 -0
- package/dist/slash-dispatch.runtime-SO7HOe8q.js +56 -0
- package/dist/slash-dispatch.runtime-reuPLnse.js +114 -0
- package/dist/slash-skill-commands.runtime-Bawt7j0r.js +20 -0
- package/dist/{slash-skill-commands.runtime-Cnfq_5LN.js → slash-skill-commands.runtime-DOXmvOtU.js} +15 -15
- package/dist/{squidclaw-root-BQfLymzj.js → squidclaw-root-JXyRbQLJ.js} +8 -8
- package/dist/{status-cU9cJReo.js → status-Dnl-Um1D.js} +27 -27
- package/dist/{status.update-CiLU9RPF.js → status.update-BGIm6we4.js} +2 -2
- package/dist/{store-BEIcnlgx.js → store-BTkIx401.js} +5 -5
- package/dist/{store-CvQ41zCV.js → store-D9z0dn7D.js} +2 -2
- package/dist/{subagent-registry-CIgFD2oi.js → subagent-registry-CQA6P2FO.js} +149 -149
- package/dist/subagent-registry-runtime-CqgIWcSl.js +114 -0
- package/dist/subagent-registry-runtime-D2rUxU5J.js +56 -0
- package/dist/{subsystem-BaLYRf7D.js → subsystem-6v7sWnAD.js} +14 -14
- package/dist/{system-cli-i1FWZDjn.js → system-cli-CJAQxYHv.js} +9 -9
- package/dist/{system-run-command-COqCNIBg.js → system-run-command-BaSqmSwR.js} +1 -1
- package/dist/{systemd-Cj2cX_ZP.js → systemd-B86VePXs.js} +9 -9
- package/dist/{systemd-hints-46PqJfaq.js → systemd-hints-BmFWZu_j.js} +6 -6
- package/dist/{systemd-linger-6Jd9K5p2.js → systemd-linger-w7fvBU-1.js} +1 -1
- package/dist/{tables-BRYYxYs7.js → tables-BTFiZyRU.js} +1 -1
- package/dist/{tables-CIpKClDV.js → tables-CGh4CW_h.js} +1 -1
- package/dist/{tailnet-CZANZjq6.js → tailnet-DJq7Mi1o.js} +1 -1
- package/dist/target-errors-C_rnMuJ2.js +195 -0
- package/dist/{target-errors-CRQlPF1u.js → target-errors-DgNRx3Nr.js} +2 -2
- package/dist/{thinking-B-A99X3F.js → thinking-B75CXkTT.js} +7 -7
- package/dist/tokens-DfbMVF9y.js +52 -0
- package/dist/{tool-images-CyzWvDUu.js → tool-images-D6mmxuWS.js} +1 -1
- package/dist/{tool-images-Zn6jVmkX.js → tool-images-Dp5OiXeA.js} +2 -2
- package/dist/{tui-CC_AbfZr.js → tui-BbcmzKaA.js} +6 -6
- package/dist/{tui-cli-DiJ7zKUD.js → tui-cli-Dv3jSm3x.js} +32 -32
- package/dist/{update-1JhjCqjy.js → update-BhRrb6BI.js} +3 -3
- package/dist/{update-cli-DM_dUip_.js → update-cli-Oe0fP8x9.js} +104 -104
- package/dist/{update-runner-BBJZmfZ4.js → update-runner-DdA6xBa9.js} +16 -16
- package/dist/{web-CEdWU_u3.js → web-QsxgXbNK.js} +55 -55
- package/dist/web-w04Gvwqi.js +118 -0
- package/dist/{webhooks-cli-CzDd8ikc.js → webhooks-cli-CJLug1QH.js} +6 -6
- package/dist/{whatsapp-actions-Cuy0qeQK.js → whatsapp-actions-CzqsuSGx.js} +21 -21
- package/dist/{whatsapp-actions-MR_bBjXO.js → whatsapp-actions-_ca5OtHq.js} +17 -17
- package/dist/{with-timeout-BZ_Teugb.js → with-timeout-CFfRudNc.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-TqfVSQuO.js → workspace-kVMIaBrV.js} +20 -20
- package/dist/{wsl-CvQfS6aU.js → wsl-CsGe5QCP.js} +2 -2
- package/package.json +1 -1
- package/dist/deliver-runtime-B6NtHUuv.js +0 -36
- package/dist/deliver-runtime-C08pF1_3.js +0 -61
- package/dist/deps-send-discord.runtime-CUTAK2hy.js +0 -26
- package/dist/deps-send-discord.runtime-r80y9aXF.js +0 -36
- package/dist/deps-send-imessage.runtime-BmocBgPM.js +0 -35
- package/dist/deps-send-imessage.runtime-CQOiEIuA.js +0 -25
- package/dist/deps-send-signal.runtime-ByJt6qz-.js +0 -34
- package/dist/deps-send-signal.runtime-wN7MkzLw.js +0 -24
- package/dist/deps-send-slack.runtime-C3UUEG9J.js +0 -32
- package/dist/deps-send-slack.runtime-HEEwW4uU.js +0 -22
- package/dist/deps-send-telegram.runtime-DHlcnjQO.js +0 -27
- package/dist/deps-send-whatsapp.runtime-C2x2R2Ow.js +0 -60
- package/dist/deps-send-whatsapp.runtime-__ogpmJj.js +0 -119
- package/dist/image-runtime-BSVF52oe.js +0 -29
- package/dist/image-runtime-cza2NTiZ.js +0 -55
- package/dist/manager-runtime-BB9lcoFR.js +0 -18
- package/dist/pi-model-discovery-runtime-DBkQoIJw.js +0 -11
- package/dist/register.configure-C8OFfGln.js +0 -165
- package/dist/runtime-whatsapp-login.runtime-DumUjKRz.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-Cgu2MfqR.js +0 -22
- package/dist/slash-commands.runtime-CjBXruwG.js +0 -16
- package/dist/slash-dispatch.runtime-BOMEVFk0.js +0 -114
- package/dist/slash-dispatch.runtime-CGd3HarH.js +0 -56
- package/dist/slash-skill-commands.runtime-DYK20Lxf.js +0 -20
- package/dist/subagent-registry-runtime-DGTjU9Lb.js +0 -114
- package/dist/subagent-registry-runtime-m9bFJFix.js +0 -56
- package/dist/web-CZhZC1EA.js +0 -118
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import "./globals-BrhVUl-N.js";
|
|
2
|
+
import "./paths-CHIu6D1E.js";
|
|
3
|
+
import "./subsystem-Bw5n50gj.js";
|
|
4
|
+
import "./boolean-DtWR5bt3.js";
|
|
5
|
+
import "./auth-profiles-9T4j6jMy.js";
|
|
6
|
+
import "./agent-scope-nEVgVklg.js";
|
|
7
|
+
import "./utils-D6vohX1h.js";
|
|
8
|
+
import "./squidclaw-root-JXyRbQLJ.js";
|
|
9
|
+
import "./logger-DL3N22PJ.js";
|
|
10
|
+
import "./exec-TSiqsZw1.js";
|
|
11
|
+
import "./registry-BXcl3IkC.js";
|
|
12
|
+
import "./github-copilot-token-CxitgiZA.js";
|
|
13
|
+
import "./host-env-security-lcjXF83D.js";
|
|
14
|
+
import "./version-3so140Zi.js";
|
|
15
|
+
import "./env-vars-mSSOl7Rv.js";
|
|
16
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
17
|
+
import "./dock-W3cGg46W.js";
|
|
18
|
+
import "./model-D7hZpWTB.js";
|
|
19
|
+
import "./pi-model-discovery-Cr1q2cJt.js";
|
|
20
|
+
import "./diagnostic-B4w80e4D.js";
|
|
21
|
+
import "./frontmatter-CFoRh1fy.js";
|
|
22
|
+
import "./skills-EwyaIyKC.js";
|
|
23
|
+
import "./path-alias-guards-DeOVetT7.js";
|
|
24
|
+
import "./message-channel-DqvtYF2o.js";
|
|
25
|
+
import "./sessions-DgnXAQCc.js";
|
|
26
|
+
import "./plugins-Bc7YM9X-.js";
|
|
27
|
+
import "./accounts-BH9Qo1sQ.js";
|
|
28
|
+
import "./accounts-Cuwg9Tan.js";
|
|
29
|
+
import "./logging-CcxUDNcI.js";
|
|
30
|
+
import "./accounts-B1RxFghM.js";
|
|
31
|
+
import "./send-BpkluEZ5.js";
|
|
32
|
+
import "./send-Do2preUU.js";
|
|
33
|
+
import { a as isSubagentSessionRunActive, n as countPendingDescendantRuns, r as countPendingDescendantRunsExcludingRun, s as resolveRequesterForChildSession, t as countActiveDescendantRuns } from "./subagent-registry-CQA6P2FO.js";
|
|
34
|
+
import "./paths-Dn_rzeZN.js";
|
|
35
|
+
import "./chat-envelope-thy05gXR.js";
|
|
36
|
+
import "./client-COy24r9W.js";
|
|
37
|
+
import "./call-D7jOWSFr.js";
|
|
38
|
+
import "./pairing-token-B_ig96RO.js";
|
|
39
|
+
import "./net-CIh5ellr.js";
|
|
40
|
+
import "./tailnet-DJq7Mi1o.js";
|
|
41
|
+
import "./tokens-DOVPgjwZ.js";
|
|
42
|
+
import "./with-timeout-CFfRudNc.js";
|
|
43
|
+
import "./deliver-D-IQEJ52.js";
|
|
44
|
+
import "./image-ops-LFsSCTyI.js";
|
|
45
|
+
import "./send-BVyLW1cn.js";
|
|
46
|
+
import "./pi-embedded-helpers-DtCOZSv-.js";
|
|
47
|
+
import "./sandbox-ixDhkfHu.js";
|
|
48
|
+
import "./tool-catalog-BRRysafL.js";
|
|
49
|
+
import "./chrome-DiktJpMU.js";
|
|
50
|
+
import "./tailscale-DHGqQR08.js";
|
|
51
|
+
import "./auth-BlP9BwaD.js";
|
|
52
|
+
import "./server-context-Dd8UynDU.js";
|
|
53
|
+
import "./paths-D6mnO6Ni.js";
|
|
54
|
+
import "./redact-DknVdX-O.js";
|
|
55
|
+
import "./errors-BnRmsfe-.js";
|
|
56
|
+
import "./fs-safe-BPQ-per2.js";
|
|
57
|
+
import "./proxy-env-BiKHVg2h.js";
|
|
58
|
+
import "./store-BTkIx401.js";
|
|
59
|
+
import "./ports-DMeUt80n.js";
|
|
60
|
+
import "./trash-DUuU677G.js";
|
|
61
|
+
import "./server-middleware-B_LyQkOL.js";
|
|
62
|
+
import "./tool-images-D6mmxuWS.js";
|
|
63
|
+
import "./thinking-CrcT589P.js";
|
|
64
|
+
import "./models-config-DAastTau.js";
|
|
65
|
+
import "./exec-approvals-allowlist-B9bcJkGP.js";
|
|
66
|
+
import "./exec-safe-bin-runtime-policy-DECo77U6.js";
|
|
67
|
+
import "./model-catalog-Drh9Rois.js";
|
|
68
|
+
import "./fetch-lq0SDLLE.js";
|
|
69
|
+
import "./audio-transcription-runner-D-uxpkbd.js";
|
|
70
|
+
import "./fetch-guard-CbtWqa1E.js";
|
|
71
|
+
import "./image-BcYt63Jx.js";
|
|
72
|
+
import "./tool-display-BisOZb2_.js";
|
|
73
|
+
import "./api-key-rotation-JPmjv-c0.js";
|
|
74
|
+
import "./proxy-fetch-DfeBVFag.js";
|
|
75
|
+
import "./ir-C7He5vmn.js";
|
|
76
|
+
import "./render-CCLsW6Lz.js";
|
|
77
|
+
import "./target-errors-C_rnMuJ2.js";
|
|
78
|
+
import "./commands-DDHiW-As.js";
|
|
79
|
+
import "./commands-registry--ITOJ-cM.js";
|
|
80
|
+
import "./fetch-By9arPco.js";
|
|
81
|
+
import "./pairing-store-BC4mnG9S.js";
|
|
82
|
+
import "./exec-approvals-Db6myg-N.js";
|
|
83
|
+
import "./nodes-screen-BrMJzhot.js";
|
|
84
|
+
import "./system-run-command-BaSqmSwR.js";
|
|
85
|
+
import "./session-utils-D12gSo5W.js";
|
|
86
|
+
import "./session-cost-usage-BL2HPuc5.js";
|
|
87
|
+
import "./skill-commands-BcigmiOW.js";
|
|
88
|
+
import "./workspace-dirs-D8D-Ghcl.js";
|
|
89
|
+
import "./channel-activity-wuB3-cfR.js";
|
|
90
|
+
import "./tables-CGh4CW_h.js";
|
|
91
|
+
import "./server-lifecycle-BEZ2jsQ6.js";
|
|
92
|
+
import "./stagger-C4U8O7GM.js";
|
|
93
|
+
import "./channel-selection-CFWQq1nS.js";
|
|
94
|
+
import "./plugin-auto-enable-a3TK3OPT.js";
|
|
95
|
+
import "./send-BPgrWmUX.js";
|
|
96
|
+
import "./outbound-attachment-Bedqixj2.js";
|
|
97
|
+
import "./delivery-queue-D-91NTFS.js";
|
|
98
|
+
import "./send-BuBTLRMz.js";
|
|
99
|
+
import "./pi-tools.policy-D3RA94WF.js";
|
|
100
|
+
import "./proxy-Dgwoliym.js";
|
|
101
|
+
import "./runtime-config-collectors-Bsjz4isf.js";
|
|
102
|
+
import "./command-secret-targets-CZjP-Bm5.js";
|
|
103
|
+
import "./onboard-helpers-DwEZeaoe.js";
|
|
104
|
+
import "./prompt-style-D_i_ws0g.js";
|
|
105
|
+
import "./pairing-labels-CX4CtqRa.js";
|
|
106
|
+
import "./memory-cli-u8eyO3Ec.js";
|
|
107
|
+
import "./manager-BVfTfggO.js";
|
|
108
|
+
import "./query-expansion-C0HUJbRn.js";
|
|
109
|
+
import "./links-Dye6HsRG.js";
|
|
110
|
+
import "./cli-utils-BKqG4ZT-.js";
|
|
111
|
+
import "./help-format-CpR5cEGe.js";
|
|
112
|
+
import "./progress-DuhDspl6.js";
|
|
113
|
+
|
|
114
|
+
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, resolveRequesterForChildSession };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import "./paths-DA5srn0U.js";
|
|
3
|
+
import "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import "./workspace-kVMIaBrV.js";
|
|
5
|
+
import "./logger-CnTSBL7T.js";
|
|
6
|
+
import "./model-selection-DuNLFQPR.js";
|
|
7
|
+
import "./github-copilot-token-B5cPlwaz.js";
|
|
8
|
+
import "./legacy-names-aGJJuzM_.js";
|
|
9
|
+
import "./thinking-B75CXkTT.js";
|
|
10
|
+
import "./tokens-DfbMVF9y.js";
|
|
11
|
+
import { G as resolveRequesterForChildSession, H as countPendingDescendantRuns, U as countPendingDescendantRunsExcludingRun, V as countActiveDescendantRuns, W as isSubagentSessionRunActive } from "./pi-embedded-BiC4tIJ8.js";
|
|
12
|
+
import "./plugins-DvejjZnJ.js";
|
|
13
|
+
import "./accounts-DwGoZKGm.js";
|
|
14
|
+
import "./send-DdBbRpTP.js";
|
|
15
|
+
import "./send-BTUU1jWM.js";
|
|
16
|
+
import "./deliver-DMTUTpTM.js";
|
|
17
|
+
import "./diagnostic-CnVwZNbm.js";
|
|
18
|
+
import "./accounts-C7pGQPcS.js";
|
|
19
|
+
import "./image-ops-Dg8iraUV.js";
|
|
20
|
+
import "./send-BGlcHjUD.js";
|
|
21
|
+
import "./pi-model-discovery-V-InbjOM.js";
|
|
22
|
+
import "./pi-embedded-helpers-Di58J7Eh.js";
|
|
23
|
+
import "./chrome-OgCChbC_.js";
|
|
24
|
+
import "./frontmatter-Cq1TcIQ2.js";
|
|
25
|
+
import "./skills-CdCS1HeL.js";
|
|
26
|
+
import "./path-alias-guards-DORgbZ1w.js";
|
|
27
|
+
import "./redact-DvzicBMu.js";
|
|
28
|
+
import "./errors-kkRuS2Cs.js";
|
|
29
|
+
import "./fs-safe-BoB4X3GD.js";
|
|
30
|
+
import "./proxy-env-D-fike7s.js";
|
|
31
|
+
import "./store-D9z0dn7D.js";
|
|
32
|
+
import "./accounts-DjhBQg_8.js";
|
|
33
|
+
import "./paths-DSd911Oe.js";
|
|
34
|
+
import "./tool-images-Dp5OiXeA.js";
|
|
35
|
+
import "./image-kKMG59st.js";
|
|
36
|
+
import "./audio-transcription-runner-Cv0Q47cM.js";
|
|
37
|
+
import "./fetch-DP-JjB6Z.js";
|
|
38
|
+
import "./fetch-guard-BDy975wP.js";
|
|
39
|
+
import "./api-key-rotation-DVyYtQxC.js";
|
|
40
|
+
import "./proxy-fetch-lH6RsRTE.js";
|
|
41
|
+
import "./ir-CKK03mBV.js";
|
|
42
|
+
import "./render-DW7AcFdD.js";
|
|
43
|
+
import "./target-errors-DgNRx3Nr.js";
|
|
44
|
+
import "./commands-registry-BJjv8_oR.js";
|
|
45
|
+
import "./skill-commands-Cz45_nme.js";
|
|
46
|
+
import "./fetch-tZXOZ9FV.js";
|
|
47
|
+
import "./channel-activity-CPpt4XaL.js";
|
|
48
|
+
import "./tables-BTFiZyRU.js";
|
|
49
|
+
import "./send-dTQd-IyJ.js";
|
|
50
|
+
import "./outbound-attachment-DwupUxYF.js";
|
|
51
|
+
import "./send-4nRsZJXH.js";
|
|
52
|
+
import "./proxy-CecQTx_Z.js";
|
|
53
|
+
import "./manager-DINhLnMi.js";
|
|
54
|
+
import "./query-expansion-Dzxt6kXo.js";
|
|
55
|
+
|
|
56
|
+
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, resolveRequesterForChildSession };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as resolveConfigPath } from "./paths-
|
|
1
|
+
import { r as resolveConfigPath } from "./paths-DA5srn0U.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import chalk, { Chalk } from "chalk";
|
|
6
6
|
import { Logger } from "tslog";
|
|
7
7
|
import JSON5 from "json5";
|
|
@@ -54,15 +54,15 @@ function getCommandPathInternal(argv, depth, opts) {
|
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/infra/tmp-squidclaw-dir.ts
|
|
56
56
|
const POSIX_SQUIDCLAW_TMP_DIR = "/tmp/squidclaw";
|
|
57
|
-
const TMP_DIR_ACCESS_MODE =
|
|
57
|
+
const TMP_DIR_ACCESS_MODE = syncFs.constants.W_OK | syncFs.constants.X_OK;
|
|
58
58
|
function isNodeErrorWithCode(err, code) {
|
|
59
59
|
return typeof err === "object" && err !== null && "code" in err && err.code === code;
|
|
60
60
|
}
|
|
61
61
|
function resolvePreferredSquidClawTmpDir(options = {}) {
|
|
62
|
-
const accessSync = options.accessSync ??
|
|
63
|
-
const chmodSync = options.chmodSync ??
|
|
64
|
-
const lstatSync = options.lstatSync ??
|
|
65
|
-
const mkdirSync = options.mkdirSync ??
|
|
62
|
+
const accessSync = options.accessSync ?? syncFs.accessSync;
|
|
63
|
+
const chmodSync = options.chmodSync ?? syncFs.chmodSync;
|
|
64
|
+
const lstatSync = options.lstatSync ?? syncFs.lstatSync;
|
|
65
|
+
const mkdirSync = options.mkdirSync ?? syncFs.mkdirSync;
|
|
66
66
|
const warn = options.warn ?? ((message) => console.warn(message));
|
|
67
67
|
const getuid = options.getuid ?? (() => {
|
|
68
68
|
try {
|
|
@@ -155,8 +155,8 @@ function resolvePreferredSquidClawTmpDir(options = {}) {
|
|
|
155
155
|
function readLoggingConfig() {
|
|
156
156
|
const configPath = resolveConfigPath();
|
|
157
157
|
try {
|
|
158
|
-
if (!
|
|
159
|
-
const raw =
|
|
158
|
+
if (!syncFs.existsSync(configPath)) return;
|
|
159
|
+
const raw = syncFs.readFileSync(configPath, "utf-8");
|
|
160
160
|
const logging = JSON5.parse(raw)?.logging;
|
|
161
161
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
162
162
|
return logging;
|
|
@@ -344,7 +344,7 @@ function buildLogger(settings) {
|
|
|
344
344
|
for (const transport of externalTransports) attachExternalTransport(logger, transport);
|
|
345
345
|
return logger;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
syncFs.mkdirSync(path.dirname(settings.file), { recursive: true });
|
|
348
348
|
if (isRollingPath(settings.file)) pruneOldRollingLogs(path.dirname(settings.file));
|
|
349
349
|
let currentFileBytes = getCurrentLogFileBytes(settings.file);
|
|
350
350
|
let warnedAboutSizeCap = false;
|
|
@@ -383,14 +383,14 @@ function resolveMaxLogFileBytes(raw) {
|
|
|
383
383
|
}
|
|
384
384
|
function getCurrentLogFileBytes(file) {
|
|
385
385
|
try {
|
|
386
|
-
return
|
|
386
|
+
return syncFs.statSync(file).size;
|
|
387
387
|
} catch {
|
|
388
388
|
return 0;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
function appendLogLine(file, line) {
|
|
392
392
|
try {
|
|
393
|
-
|
|
393
|
+
syncFs.appendFileSync(file, line, { encoding: "utf8" });
|
|
394
394
|
return true;
|
|
395
395
|
} catch {
|
|
396
396
|
return false;
|
|
@@ -442,14 +442,14 @@ function isRollingPath(file) {
|
|
|
442
442
|
}
|
|
443
443
|
function pruneOldRollingLogs(dir) {
|
|
444
444
|
try {
|
|
445
|
-
const entries =
|
|
445
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
446
446
|
const cutoff = Date.now() - MAX_LOG_AGE_MS;
|
|
447
447
|
for (const entry of entries) {
|
|
448
448
|
if (!entry.isFile()) continue;
|
|
449
449
|
if (!entry.name.startsWith(`${LOG_PREFIX}-`) || !entry.name.endsWith(LOG_SUFFIX)) continue;
|
|
450
450
|
const fullPath = path.join(dir, entry.name);
|
|
451
451
|
try {
|
|
452
|
-
if (
|
|
452
|
+
if (syncFs.statSync(fullPath).mtimeMs < cutoff) syncFs.rmSync(fullPath, { force: true });
|
|
453
453
|
} catch {}
|
|
454
454
|
}
|
|
455
455
|
} catch {}
|
|
@@ -2,10 +2,10 @@ import { p as theme, t as danger } from "./globals-BrhVUl-N.js";
|
|
|
2
2
|
import "./paths-CHIu6D1E.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-Bw5n50gj.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import "./auth-profiles-9T4j6jMy.js";
|
|
6
|
+
import "./agent-scope-nEVgVklg.js";
|
|
7
7
|
import "./utils-D6vohX1h.js";
|
|
8
|
-
import "./squidclaw-root-
|
|
8
|
+
import "./squidclaw-root-JXyRbQLJ.js";
|
|
9
9
|
import "./logger-DL3N22PJ.js";
|
|
10
10
|
import "./exec-TSiqsZw1.js";
|
|
11
11
|
import "./registry-BXcl3IkC.js";
|
|
@@ -13,16 +13,16 @@ import "./github-copilot-token-CxitgiZA.js";
|
|
|
13
13
|
import "./host-env-security-lcjXF83D.js";
|
|
14
14
|
import "./version-3so140Zi.js";
|
|
15
15
|
import "./env-vars-mSSOl7Rv.js";
|
|
16
|
-
import "./manifest-registry-
|
|
16
|
+
import "./manifest-registry-1ACGW3OR.js";
|
|
17
17
|
import "./message-channel-DqvtYF2o.js";
|
|
18
|
-
import "./client-
|
|
19
|
-
import "./call-
|
|
18
|
+
import "./client-COy24r9W.js";
|
|
19
|
+
import "./call-D7jOWSFr.js";
|
|
20
20
|
import "./pairing-token-B_ig96RO.js";
|
|
21
|
-
import "./net-
|
|
22
|
-
import "./tailnet-
|
|
21
|
+
import "./net-CIh5ellr.js";
|
|
22
|
+
import "./tailnet-DJq7Mi1o.js";
|
|
23
23
|
import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
24
24
|
import "./progress-DuhDspl6.js";
|
|
25
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
25
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BBBN9ZJk.js";
|
|
26
26
|
|
|
27
27
|
//#region src/cli/system-cli.ts
|
|
28
28
|
const normalizeWakeMode = (raw) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sn as resolveInlineCommandMatch, _n as unwrapDispatchWrappersForResolution, bn as POSIX_INLINE_COMMAND_FLAGS, dn as extractShellWrapperCommand, gn as normalizeExecutableToken, pn as hasEnvManipulationBeforeShellWrapper, xn as POWERSHELL_INLINE_COMMAND_FLAGS, yn as unwrapKnownShellMultiplexerInvocation } from "./auth-profiles-
|
|
1
|
+
import { Sn as resolveInlineCommandMatch, _n as unwrapDispatchWrappersForResolution, bn as POSIX_INLINE_COMMAND_FLAGS, dn as extractShellWrapperCommand, gn as normalizeExecutableToken, pn as hasEnvManipulationBeforeShellWrapper, xn as POWERSHELL_INLINE_COMMAND_FLAGS, yn as unwrapKnownShellMultiplexerInvocation } from "./auth-profiles-9T4j6jMy.js";
|
|
2
2
|
|
|
3
3
|
//#region src/infra/system-run-command.ts
|
|
4
4
|
function formatExecCommand(argv) {
|
|
@@ -4,7 +4,7 @@ import { d as resolveGatewayServiceDescription, f as resolveGatewaySystemdServic
|
|
|
4
4
|
import { execFile } from "node:child_process";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fsPromises from "node:fs/promises";
|
|
8
8
|
|
|
9
9
|
//#region src/daemon/exec-file.ts
|
|
10
10
|
async function execFileUtf8(command, args, options = {}) {
|
|
@@ -300,7 +300,7 @@ function resolveSystemdUserUnitPath(env) {
|
|
|
300
300
|
async function readSystemdServiceExecStart(env) {
|
|
301
301
|
const unitPath = resolveSystemdUnitPath(env);
|
|
302
302
|
try {
|
|
303
|
-
const content = await
|
|
303
|
+
const content = await fsPromises.readFile(unitPath, "utf8");
|
|
304
304
|
let execStart = "";
|
|
305
305
|
let workingDirectory = "";
|
|
306
306
|
const environment = {};
|
|
@@ -384,12 +384,12 @@ async function assertSystemdAvailable() {
|
|
|
384
384
|
async function installSystemdService({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
385
385
|
await assertSystemdAvailable();
|
|
386
386
|
const unitPath = resolveSystemdUnitPath(env);
|
|
387
|
-
await
|
|
387
|
+
await fsPromises.mkdir(path.dirname(unitPath), { recursive: true });
|
|
388
388
|
let backedUp = false;
|
|
389
389
|
try {
|
|
390
|
-
await
|
|
390
|
+
await fsPromises.access(unitPath);
|
|
391
391
|
const backupPath = `${unitPath}.bak`;
|
|
392
|
-
await
|
|
392
|
+
await fsPromises.copyFile(unitPath, backupPath);
|
|
393
393
|
backedUp = true;
|
|
394
394
|
} catch {}
|
|
395
395
|
const unit = buildSystemdUnit({
|
|
@@ -402,7 +402,7 @@ async function installSystemdService({ env, stdout, programArguments, workingDir
|
|
|
402
402
|
workingDirectory,
|
|
403
403
|
environment
|
|
404
404
|
});
|
|
405
|
-
await
|
|
405
|
+
await fsPromises.writeFile(unitPath, unit, "utf8");
|
|
406
406
|
const unitName = `${resolveGatewaySystemdServiceName(env.SQUIDCLAW_PROFILE)}.service`;
|
|
407
407
|
const reload = await execSystemctl(sysArgs(["daemon-reload"]));
|
|
408
408
|
if (reload.code !== 0) throw new Error(`systemctl daemon-reload failed: ${reload.stderr || reload.stdout}`.trim());
|
|
@@ -428,7 +428,7 @@ async function uninstallSystemdService({ env, stdout }) {
|
|
|
428
428
|
]));
|
|
429
429
|
const unitPath = resolveSystemdUnitPath(env);
|
|
430
430
|
try {
|
|
431
|
-
await
|
|
431
|
+
await fsPromises.unlink(unitPath);
|
|
432
432
|
stdout.write(`${formatLine("Removed systemd service", unitPath)}\n`);
|
|
433
433
|
} catch {
|
|
434
434
|
stdout.write(`Systemd service not found at ${unitPath}\n`);
|
|
@@ -512,7 +512,7 @@ async function findLegacySystemdUnits(env) {
|
|
|
512
512
|
const unitPath = resolveSystemdUnitPathForName(env, name);
|
|
513
513
|
let exists = false;
|
|
514
514
|
try {
|
|
515
|
-
await
|
|
515
|
+
await fsPromises.access(unitPath);
|
|
516
516
|
exists = true;
|
|
517
517
|
} catch {}
|
|
518
518
|
let enabled = false;
|
|
@@ -538,7 +538,7 @@ async function uninstallLegacySystemdUnits({ env, stdout }) {
|
|
|
538
538
|
]));
|
|
539
539
|
else stdout.write(`systemctl unavailable; removed legacy unit file only: ${unit.name}.service\n`);
|
|
540
540
|
try {
|
|
541
|
-
await
|
|
541
|
+
await fsPromises.unlink(unit.unitPath);
|
|
542
542
|
stdout.write(`${formatLine("Removed legacy systemd service", unit.unitPath)}\n`);
|
|
543
543
|
} catch {
|
|
544
544
|
stdout.write(`Legacy systemd unit not found at ${unit.unitPath}\n`);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { K as isBunRuntime, q as isNodeRuntime } from "./globals-BrhVUl-N.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-D8-lYArk.js";
|
|
3
|
-
import { c as isVersionManagedNodePath, f as resolveSystemNodePath, o as getMinimalServicePathPartsFromEnv, s as isSystemNodePath } from "./daemon-install-helpers-
|
|
4
|
-
import { o as resolveSystemdUserUnitPath } from "./systemd-
|
|
5
|
-
import { c as resolveLaunchAgentPlistPath } from "./service-
|
|
3
|
+
import { c as isVersionManagedNodePath, f as resolveSystemNodePath, o as getMinimalServicePathPartsFromEnv, s as isSystemNodePath } from "./daemon-install-helpers-CZDVO_MU.js";
|
|
4
|
+
import { o as resolveSystemdUserUnitPath } from "./systemd-B86VePXs.js";
|
|
5
|
+
import { c as resolveLaunchAgentPlistPath } from "./service-B5T42CWZ.js";
|
|
6
6
|
import { t as formatRuntimeStatusWithDetails } from "./runtime-status-CL_bKfj_.js";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fsPromises from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region src/daemon/runtime-format.ts
|
|
11
11
|
function formatRuntimeStatus(runtime) {
|
|
@@ -86,7 +86,7 @@ async function auditSystemdUnit(env, issues) {
|
|
|
86
86
|
const unitPath = resolveSystemdUserUnitPath(env);
|
|
87
87
|
let content = "";
|
|
88
88
|
try {
|
|
89
|
-
content = await
|
|
89
|
+
content = await fsPromises.readFile(unitPath, "utf8");
|
|
90
90
|
} catch {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
@@ -114,7 +114,7 @@ async function auditLaunchdPlist(env, issues) {
|
|
|
114
114
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
115
115
|
let content = "";
|
|
116
116
|
try {
|
|
117
|
-
content = await
|
|
117
|
+
content = await fsPromises.readFile(plistPath, "utf8");
|
|
118
118
|
} catch {
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as note } from "./note-IoQo8Ol0.js";
|
|
3
|
-
import { d as enableSystemdUserLinger, f as readSystemdUserLingerStatus, r as isSystemdUserServiceAvailable } from "./systemd-
|
|
3
|
+
import { d as enableSystemdUserLinger, f as readSystemdUserLingerStatus, r as isSystemdUserServiceAvailable } from "./systemd-B86VePXs.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/systemd-linger.ts
|
|
6
6
|
var systemd_linger_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { c as detectMime } from "./image-ops-LFsSCTyI.js";
|
|
2
|
+
import { r as sanitizeToolResultImages } from "./tool-images-D6mmxuWS.js";
|
|
3
|
+
import fsPromises from "node:fs/promises";
|
|
4
|
+
|
|
5
|
+
//#region src/agents/tools/common.ts
|
|
6
|
+
var ToolInputError = class extends Error {
|
|
7
|
+
constructor(message) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.status = 400;
|
|
10
|
+
this.name = "ToolInputError";
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
var ToolAuthorizationError = class extends ToolInputError {
|
|
14
|
+
constructor(message) {
|
|
15
|
+
super(message);
|
|
16
|
+
this.status = 403;
|
|
17
|
+
this.name = "ToolAuthorizationError";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
function createActionGate(actions) {
|
|
21
|
+
return (key, defaultValue = true) => {
|
|
22
|
+
const value = actions?.[key];
|
|
23
|
+
if (value === void 0) return defaultValue;
|
|
24
|
+
return value !== false;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function toSnakeCaseKey(key) {
|
|
28
|
+
return key.replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2").replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase();
|
|
29
|
+
}
|
|
30
|
+
function readParamRaw(params, key) {
|
|
31
|
+
if (Object.hasOwn(params, key)) return params[key];
|
|
32
|
+
const snakeKey = toSnakeCaseKey(key);
|
|
33
|
+
if (snakeKey !== key && Object.hasOwn(params, snakeKey)) return params[snakeKey];
|
|
34
|
+
}
|
|
35
|
+
function readStringParam(params, key, options = {}) {
|
|
36
|
+
const { required = false, trim = true, label = key, allowEmpty = false } = options;
|
|
37
|
+
const raw = readParamRaw(params, key);
|
|
38
|
+
if (typeof raw !== "string") {
|
|
39
|
+
if (required) throw new ToolInputError(`${label} required`);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const value = trim ? raw.trim() : raw;
|
|
43
|
+
if (!value && !allowEmpty) {
|
|
44
|
+
if (required) throw new ToolInputError(`${label} required`);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function readStringOrNumberParam(params, key, options = {}) {
|
|
50
|
+
const { required = false, label = key } = options;
|
|
51
|
+
const raw = readParamRaw(params, key);
|
|
52
|
+
if (typeof raw === "number" && Number.isFinite(raw)) return String(raw);
|
|
53
|
+
if (typeof raw === "string") {
|
|
54
|
+
const value = raw.trim();
|
|
55
|
+
if (value) return value;
|
|
56
|
+
}
|
|
57
|
+
if (required) throw new ToolInputError(`${label} required`);
|
|
58
|
+
}
|
|
59
|
+
function readNumberParam(params, key, options = {}) {
|
|
60
|
+
const { required = false, label = key, integer = false } = options;
|
|
61
|
+
const raw = readParamRaw(params, key);
|
|
62
|
+
let value;
|
|
63
|
+
if (typeof raw === "number" && Number.isFinite(raw)) value = raw;
|
|
64
|
+
else if (typeof raw === "string") {
|
|
65
|
+
const trimmed = raw.trim();
|
|
66
|
+
if (trimmed) {
|
|
67
|
+
const parsed = Number.parseFloat(trimmed);
|
|
68
|
+
if (Number.isFinite(parsed)) value = parsed;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (value === void 0) {
|
|
72
|
+
if (required) throw new ToolInputError(`${label} required`);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
return integer ? Math.trunc(value) : value;
|
|
76
|
+
}
|
|
77
|
+
function readStringArrayParam(params, key, options = {}) {
|
|
78
|
+
const { required = false, label = key } = options;
|
|
79
|
+
const raw = readParamRaw(params, key);
|
|
80
|
+
if (Array.isArray(raw)) {
|
|
81
|
+
const values = raw.filter((entry) => typeof entry === "string").map((entry) => entry.trim()).filter(Boolean);
|
|
82
|
+
if (values.length === 0) {
|
|
83
|
+
if (required) throw new ToolInputError(`${label} required`);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
return values;
|
|
87
|
+
}
|
|
88
|
+
if (typeof raw === "string") {
|
|
89
|
+
const value = raw.trim();
|
|
90
|
+
if (!value) {
|
|
91
|
+
if (required) throw new ToolInputError(`${label} required`);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
return [value];
|
|
95
|
+
}
|
|
96
|
+
if (required) throw new ToolInputError(`${label} required`);
|
|
97
|
+
}
|
|
98
|
+
function readReactionParams(params, options) {
|
|
99
|
+
const emojiKey = options.emojiKey ?? "emoji";
|
|
100
|
+
const removeKey = options.removeKey ?? "remove";
|
|
101
|
+
const remove = typeof params[removeKey] === "boolean" ? params[removeKey] : false;
|
|
102
|
+
const emoji = readStringParam(params, emojiKey, {
|
|
103
|
+
required: true,
|
|
104
|
+
allowEmpty: true
|
|
105
|
+
});
|
|
106
|
+
if (remove && !emoji) throw new ToolInputError(options.removeErrorMessage);
|
|
107
|
+
return {
|
|
108
|
+
emoji,
|
|
109
|
+
remove,
|
|
110
|
+
isEmpty: !emoji
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function jsonResult(payload) {
|
|
114
|
+
return {
|
|
115
|
+
content: [{
|
|
116
|
+
type: "text",
|
|
117
|
+
text: JSON.stringify(payload, null, 2)
|
|
118
|
+
}],
|
|
119
|
+
details: payload
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
async function imageResult(params) {
|
|
123
|
+
return await sanitizeToolResultImages({
|
|
124
|
+
content: [{
|
|
125
|
+
type: "text",
|
|
126
|
+
text: params.extraText ?? `MEDIA:${params.path}`
|
|
127
|
+
}, {
|
|
128
|
+
type: "image",
|
|
129
|
+
data: params.base64,
|
|
130
|
+
mimeType: params.mimeType
|
|
131
|
+
}],
|
|
132
|
+
details: {
|
|
133
|
+
path: params.path,
|
|
134
|
+
...params.details
|
|
135
|
+
}
|
|
136
|
+
}, params.label, params.imageSanitization);
|
|
137
|
+
}
|
|
138
|
+
async function imageResultFromFile(params) {
|
|
139
|
+
const buf = await fsPromises.readFile(params.path);
|
|
140
|
+
const mimeType = await detectMime({ buffer: buf.slice(0, 256) }) ?? "image/png";
|
|
141
|
+
return await imageResult({
|
|
142
|
+
label: params.label,
|
|
143
|
+
path: params.path,
|
|
144
|
+
base64: buf.toString("base64"),
|
|
145
|
+
mimeType,
|
|
146
|
+
extraText: params.extraText,
|
|
147
|
+
details: params.details,
|
|
148
|
+
imageSanitization: params.imageSanitization
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Validate and parse an `availableTags` parameter from untrusted input.
|
|
153
|
+
* Returns `undefined` when the value is missing or not an array.
|
|
154
|
+
* Entries that lack a string `name` are silently dropped.
|
|
155
|
+
*/
|
|
156
|
+
function parseAvailableTags(raw) {
|
|
157
|
+
if (raw === void 0 || raw === null) return;
|
|
158
|
+
if (!Array.isArray(raw)) return;
|
|
159
|
+
const result = raw.filter((t) => typeof t === "object" && t !== null && typeof t.name === "string").map((t) => ({
|
|
160
|
+
...t.id !== void 0 && typeof t.id === "string" ? { id: t.id } : {},
|
|
161
|
+
name: t.name,
|
|
162
|
+
...typeof t.moderated === "boolean" ? { moderated: t.moderated } : {},
|
|
163
|
+
...t.emoji_id === null || typeof t.emoji_id === "string" ? { emoji_id: t.emoji_id } : {},
|
|
164
|
+
...t.emoji_name === null || typeof t.emoji_name === "string" ? { emoji_name: t.emoji_name } : {}
|
|
165
|
+
}));
|
|
166
|
+
return result.length ? result : void 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/infra/outbound/target-errors.ts
|
|
171
|
+
function missingTargetMessage(provider, hint) {
|
|
172
|
+
return `Delivering to ${provider} requires target${formatTargetHint(hint)}`;
|
|
173
|
+
}
|
|
174
|
+
function missingTargetError(provider, hint) {
|
|
175
|
+
return new Error(missingTargetMessage(provider, hint));
|
|
176
|
+
}
|
|
177
|
+
function ambiguousTargetMessage(provider, raw, hint) {
|
|
178
|
+
return `Ambiguous target "${raw}" for ${provider}. Provide a unique name or an explicit id.${formatTargetHint(hint, true)}`;
|
|
179
|
+
}
|
|
180
|
+
function ambiguousTargetError(provider, raw, hint) {
|
|
181
|
+
return new Error(ambiguousTargetMessage(provider, raw, hint));
|
|
182
|
+
}
|
|
183
|
+
function unknownTargetMessage(provider, raw, hint) {
|
|
184
|
+
return `Unknown target "${raw}" for ${provider}.${formatTargetHint(hint, true)}`;
|
|
185
|
+
}
|
|
186
|
+
function unknownTargetError(provider, raw, hint) {
|
|
187
|
+
return new Error(unknownTargetMessage(provider, raw, hint));
|
|
188
|
+
}
|
|
189
|
+
function formatTargetHint(hint, withLabel = false) {
|
|
190
|
+
if (!hint) return "";
|
|
191
|
+
return withLabel ? ` Hint: ${hint}` : ` ${hint}`;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
//#endregion
|
|
195
|
+
export { ToolInputError as a, imageResultFromFile as c, readNumberParam as d, readReactionParams as f, readStringParam as h, ToolAuthorizationError as i, jsonResult as l, readStringOrNumberParam as m, missingTargetError as n, createActionGate as o, readStringArrayParam as p, unknownTargetError as r, imageResult as s, ambiguousTargetError as t, parseAvailableTags as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as sanitizeToolResultImages } from "./tool-images-
|
|
1
|
+
import { b as detectMime } from "./image-ops-Dg8iraUV.js";
|
|
2
|
+
import { r as sanitizeToolResultImages } from "./tool-images-Dp5OiXeA.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/tools/common.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
2
|
-
import { h as normalizeE164, u as escapeRegExp } from "./logger-
|
|
3
|
-
import { Ht as CHAT_CHANNEL_ORDER, Ut as getChatChannelMeta, Zt as requireActivePluginRegistry } from "./model-selection-
|
|
4
|
-
import { a as normalizeWhatsAppTarget, b as resolveDiscordAccount, l as resolveTelegramAccount, m as resolveSlackReplyToMode, p as resolveSlackAccount } from "./plugins-
|
|
5
|
-
import { h as resolveAccountEntry, n as resolveWhatsAppAccount } from "./accounts-
|
|
6
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
7
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
1
|
+
import { G as normalizeAccountId } from "./workspace-kVMIaBrV.js";
|
|
2
|
+
import { h as normalizeE164, u as escapeRegExp } from "./logger-CnTSBL7T.js";
|
|
3
|
+
import { Ht as CHAT_CHANNEL_ORDER, Ut as getChatChannelMeta, Zt as requireActivePluginRegistry } from "./model-selection-DuNLFQPR.js";
|
|
4
|
+
import { a as normalizeWhatsAppTarget, b as resolveDiscordAccount, l as resolveTelegramAccount, m as resolveSlackReplyToMode, p as resolveSlackAccount } from "./plugins-DvejjZnJ.js";
|
|
5
|
+
import { h as resolveAccountEntry, n as resolveWhatsAppAccount } from "./accounts-DwGoZKGm.js";
|
|
6
|
+
import { n as resolveSignalAccount } from "./accounts-C7pGQPcS.js";
|
|
7
|
+
import { t as resolveIMessageAccount } from "./accounts-DjhBQg_8.js";
|
|
8
8
|
|
|
9
9
|
//#region src/config/types.tools.ts
|
|
10
10
|
const TOOLS_BY_SENDER_KEY_TYPES = [
|