squidclaw 3.0.33 → 3.0.34
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-BFS_qklA.js → accounts-CB2Or0mr.js} +2 -2
- package/dist/{accounts-DfrJiFJJ.js → accounts-Cop2dSRo.js} +2 -2
- package/dist/{accounts-pMDX8iho.js → accounts-CqITV0Ga.js} +4 -4
- package/dist/{acp-cli-BeT7oXUu.js → acp-cli-Cgh0knV4.js} +2 -2
- package/dist/{active-listener-CH2vJ3EZ.js → active-listener-B6G6kmsb.js} +2 -2
- package/dist/{agents.config-Cav8LwTL.js → agents.config-DOZdl-eO.js} +1 -1
- package/dist/{api-key-rotation-DCBXT0v7.js → api-key-rotation-Da2qYrP7.js} +2 -2
- package/dist/{audio-preflight-WUW8KeL4.js → audio-preflight-CB33NBGY.js} +6 -6
- package/dist/{audio-preflight-Ckq8A2xS.js → audio-preflight-CXP7KNn_.js} +4 -4
- package/dist/{audio-preflight-B5XvcdFX.js → audio-preflight-yiMsGLW7.js} +30 -30
- package/dist/{audio-transcription-runner-Bd34S1mx.js → audio-transcription-runner-BOxTuqbS.js} +1 -1
- package/dist/{audio-transcription-runner-BkEXZq6_.js → audio-transcription-runner-CCZC5tJf.js} +1 -1
- package/dist/{audio-transcription-runner-DUC0ItDY.js → audio-transcription-runner-Mha07yP4.js} +12 -12
- package/dist/{audit-CL1tJbCc.js → audit-BhpEYysK.js} +6 -6
- package/dist/{audit-membership-runtime-czdecfjJ.js → audit-membership-runtime-By9-qSwl.js} +3 -3
- package/dist/{auth-choice-CbIT_f15.js → auth-choice-CW-WPa0J.js} +2 -2
- package/dist/{browser-cli-Bjw4bzsY.js → browser-cli-BsOTPzD6.js} +3 -3
- 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/HOOK.md +2 -1
- package/dist/bundled/session-memory/handler.js +142 -55
- package/dist/{call-BZMmsZnA.js → call-CsRvPUMG.js} +1 -1
- package/dist/{channel-activity-7QMEKenc.js → channel-activity-Du1kh0t3.js} +3 -3
- package/dist/{channel-options-ByYVebwk.js → channel-options-DiLSWw11.js} +1 -1
- package/dist/{channel-web-DRCZstY9.js → channel-web-B9qThdZn.js} +3 -3
- package/dist/{channels-cli-fZ8vLR-3.js → channels-cli-DPzzCs8D.js} +21 -21
- package/dist/{chrome-B3h5980A.js → chrome-AmH-OPlL.js} +8 -8
- package/dist/{chrome-BTwG9Gvh.js → chrome-C2CliEWR.js} +15 -15
- package/dist/{chrome-uzcvgAW9.js → chrome-DLZaNSqV.js} +8 -8
- package/dist/{clawbot-cli-Aal6iAhy.js → clawbot-cli-Y6f5RzmX.js} +4 -4
- package/dist/{cli-DDzqaV2x.js → cli-Cegwo5rc.js} +16 -16
- package/dist/{client-gy8bx9Xy.js → client-DYXM5N_N.js} +4 -4
- package/dist/{command-secret-targets-QzzK0cvw.js → command-secret-targets-4lxt7RD_.js} +2 -2
- package/dist/{commands-registry-BIi1tG__.js → commands-registry-6jWzz0mk.js} +4 -4
- package/dist/{completion-cli-cvF7VIAg.js → completion-cli-BLY0f3DS.js} +1 -1
- package/dist/{config-cli-BeARZFf8.js → config-cli-B7X83S8T.js} +1 -1
- package/dist/{configure-D3v5-GDg.js → configure-Hiahxtwa.js} +6 -6
- package/dist/{cron-cli-DjN_8kik.js → cron-cli-DIoOoMCm.js} +3 -3
- package/dist/{daemon-cli-D-GtS9tA.js → daemon-cli-DyGOGB4b.js} +2 -2
- package/dist/{deliver-KuyvhwaK.js → deliver-Baa4v4N-.js} +1 -1
- package/dist/{deliver-e7dtX7aI.js → deliver-DGXG0w_w.js} +1 -1
- package/dist/{deliver-DZCNXFM8.js → deliver-Ddw3EsOV.js} +11 -11
- package/dist/deliver-runtime-CF9aNwHW.js +36 -0
- package/dist/{deliver-runtime-CJeRn4Mi.js → deliver-runtime-Cld2SPeU.js} +5 -5
- package/dist/{deliver-runtime-DPjMYovi.js → deliver-runtime-Do2EXjHh.js} +3 -3
- package/dist/deps-send-discord.runtime-BdlL7AnG.js +26 -0
- package/dist/deps-send-imessage.runtime-BQx5JSa_.js +25 -0
- package/dist/deps-send-signal.runtime-dgrmoRN9.js +24 -0
- package/dist/deps-send-slack.runtime-CCOjVEQr.js +22 -0
- package/dist/deps-send-telegram.runtime-BgwTF5zt.js +27 -0
- package/dist/deps-send-whatsapp.runtime-C_zE7G9V.js +60 -0
- package/dist/{deps-send-whatsapp.runtime-B155kzJI.js → deps-send-whatsapp.runtime-DhuS0SeA.js} +7 -7
- package/dist/{deps-send-whatsapp.runtime-cpKOCWZ7.js → deps-send-whatsapp.runtime-Di849gV3.js} +18 -18
- package/dist/{devices-cli-CxBvKU-k.js → devices-cli-DJ5t9Awn.js} +2 -2
- package/dist/{diagnostic-4Dbmo6KU.js → diagnostic-B74jJPqv.js} +2 -2
- package/dist/{doctor-completion-BIsKBzEq.js → doctor-completion-kjDYgxZk.js} +1 -1
- package/dist/{errors-Dih7OXdL.js → errors-CCLnP2Fs.js} +1 -1
- package/dist/{exec-approvals-cli-BWJVqTGx.js → exec-approvals-cli-qbq31pxo.js} +4 -4
- package/dist/extensionAPI.js +6 -6
- package/dist/{fetch-COEkF6YP.js → fetch-OMudX6HR.js} +4 -4
- package/dist/{fetch-guard-CcP28UT1.js → fetch-guard-DBZ7o2IA.js} +2 -2
- package/dist/{frontmatter-LLGh43CC.js → frontmatter-vSrur-r-.js} +3 -3
- package/dist/{fs-safe-NHJJ1b9f.js → fs-safe-Dy2_iDiY.js} +3 -3
- package/dist/{gateway-cli-D6hF-7r8.js → gateway-cli-lvhI_G2p.js} +28 -28
- package/dist/{gateway-rpc-CMY4PORW.js → gateway-rpc-DXJlCFNJ.js} +1 -1
- package/dist/{health-B6rkscPh.js → health-TD-34Yp-.js} +3 -3
- package/dist/{hooks-cli-CsLbZW55.js → hooks-cli-C6DWUB-U.js} +17 -17
- package/dist/{image-Dkl58_nM.js → image-Ccz6ndn7.js} +1 -1
- package/dist/{image-COAbpp2B.js → image-CdfqhHaX.js} +6 -6
- package/dist/{image-CBBib8Ld.js → image-DI75geX3.js} +1 -1
- package/dist/{image-ops-QLLBkxzG.js → image-ops-BQmWYj-1.js} +2 -2
- package/dist/image-runtime-BFxy3jl0.js +29 -0
- package/dist/{image-runtime-BinILRte.js → image-runtime-BWARi-r4.js} +3 -3
- package/dist/{image-runtime-2ePySomG.js → image-runtime-Obmeae9a.js} +5 -5
- package/dist/index.js +21 -21
- package/dist/{ir-RKRKj5a9.js → ir-DEPhOdwg.js} +8 -8
- package/dist/{legacy-names-CR_H5NWa.js → legacy-names-CDxprteD.js} +1 -1
- package/dist/llm-slug-generator.js +49 -49
- package/dist/{logger-D20iS3B-.js → logger-onBePS9K.js} +1 -1
- package/dist/{login-C1_lumKW.js → login-BPzRFY6S.js} +5 -5
- package/dist/{login-qr-D0Gij2UC.js → login-qr-BZbSxC-5.js} +8 -8
- package/dist/{logs-cli-Dv4wWIJZ.js → logs-cli-C4B9RucB.js} +3 -3
- package/dist/{manager-B_QaG_-L.js → manager-D3ROcs7_.js} +9 -9
- package/dist/manager-runtime-Dup90ARI.js +18 -0
- package/dist/{memory-cli-CgsaxpRr.js → memory-cli-C7wo32BJ.js} +1 -1
- package/dist/{model-selection-Bjj4oU16.js → model-selection-Bh4BR1_K.js} +10 -10
- package/dist/{models-cli-Cs6QUPHJ.js → models-cli-CGWYDv56.js} +17 -17
- package/dist/{node-cli-QeGnYeqt.js → node-cli-DhcjrGhX.js} +5 -5
- package/dist/{node-command-policy-CzqB-8ah.js → node-command-policy-CPjB6YQt.js} +1 -1
- package/dist/{nodes-cli-u94LkIig.js → nodes-cli-CmE8JKKq.js} +3 -3
- package/dist/{npm-resolution-DptUU3y3.js → npm-resolution-Bwt62vuA.js} +1 -1
- package/dist/{onboard-CJX_C5lq.js → onboard-BP7rTtCO.js} +3 -3
- package/dist/{onboard-channels-CA3x3tGg.js → onboard-channels-D2p7QNyT.js} +2 -2
- package/dist/{onboard-helpers-DZtoPn8i.js → onboard-helpers-JS-Lbczt.js} +1 -1
- package/dist/{onboard-remote-BvW9CIHn.js → onboard-remote-Bf-wwh2S.js} +1 -1
- package/dist/{onboard-skills-D19L2KkN.js → onboard-skills-CUip0jpN.js} +1 -1
- package/dist/{onboarding-CvKwUVhN.js → onboarding-LbGi6oDz.js} +7 -7
- package/dist/{onboarding.finalize-CxclFJxn.js → onboarding.finalize-CWcaxeIO.js} +21 -21
- package/dist/{onboarding.gateway-config-DvYcbETj.js → onboarding.gateway-config-BfJ7jZ3-.js} +4 -4
- package/dist/{outbound-ChkqJkiM.js → outbound-BApjXYwN.js} +6 -6
- package/dist/{outbound-attachment-CRXa01xP.js → outbound-attachment-1Yd0-JW2.js} +2 -2
- package/dist/{path-alias-guards-DgNuZPBA.js → path-alias-guards-B63g_1Gb.js} +1 -1
- package/dist/{paths-7EEBmI5a.js → paths-BJWEyNJy.js} +1 -1
- package/dist/{pi-embedded-BULXCFPg.js → pi-embedded-BPU69pec.js} +70 -70
- package/dist/{pi-embedded-CLTN3qXD.js → pi-embedded-Cajbf_ri.js} +131 -131
- package/dist/{pi-embedded-helpers-CuiXHzQ1.js → pi-embedded-helpers-DBZo6ghW.js} +1 -1
- package/dist/{pi-embedded-helpers-CQJfmPVp.js → pi-embedded-helpers-u_th5KKV.js} +3 -3
- package/dist/{pi-embedded-helpers-1Z1aUoto.js → pi-embedded-helpers-xpgo_nwz.js} +19 -19
- package/dist/{pi-model-discovery-DSuyTtRM.js → pi-model-discovery-BbCPyLm5.js} +1 -1
- package/dist/pi-model-discovery-runtime-BeF5ldX8.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-BCq4EKHD.js → pi-tools.before-tool-call.runtime-s89v8h6G.js} +7 -7
- package/dist/{pi-tools.policy-FpqAOqvu.js → pi-tools.policy-BYTs7z53.js} +1 -1
- package/dist/{plugin-registry-Cpf1qgAz.js → plugin-registry-FXXByNP3.js} +1 -1
- package/dist/plugin-sdk/accounts-BXFDqY90.js +288 -0
- package/dist/plugin-sdk/accounts-DU7Js54-.js +46 -0
- package/dist/plugin-sdk/accounts-DxiB_4z4.js +35 -0
- package/dist/plugin-sdk/active-listener-DRKcesNb.js +50 -0
- package/dist/plugin-sdk/api-key-rotation-k1ZNheUH.js +181 -0
- package/dist/plugin-sdk/audio-preflight-Be1sKsob.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-jhHyCc_7.js +2176 -0
- package/dist/plugin-sdk/audit-membership-runtime-B9b-zRwg.js +58 -0
- package/dist/plugin-sdk/channel-activity-Bq1Y9RiB.js +94 -0
- package/dist/plugin-sdk/channel-web-AsdjtnvN.js +2256 -0
- package/dist/plugin-sdk/chrome-DOnBMnlx.js +2415 -0
- package/dist/plugin-sdk/commands-registry-D0py59pz.js +1125 -0
- package/dist/plugin-sdk/config-B16xKqSo.js +17912 -0
- package/dist/plugin-sdk/deliver-BqXXtIuw.js +1694 -0
- package/dist/plugin-sdk/deliver-runtime-D0xZkt8n.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-BM6ppx2Q.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-3w5PhXGu.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-yH9cQl3_.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-Bh4gw-L5.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-C_CtsWgt.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BF4vx9Ho.js +57 -0
- package/dist/plugin-sdk/diagnostic-DUbajFSl.js +319 -0
- package/dist/plugin-sdk/errors-B8oJXuCF.js +54 -0
- package/dist/plugin-sdk/fetch-guard-Cgyq6Jv9.js +156 -0
- package/dist/plugin-sdk/fs-safe-BW1ypSDS.js +352 -0
- package/dist/plugin-sdk/image-BPXnvxYL.js +2310 -0
- package/dist/plugin-sdk/image-ops-BBY2fn9x.js +584 -0
- package/dist/plugin-sdk/image-runtime-S-TzaJpg.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/ir-BJsqyZfm.js +1296 -0
- package/dist/plugin-sdk/local-roots-C1ETRlaC.js +186 -0
- package/dist/plugin-sdk/logger-DDdrdbDu.js +1163 -0
- package/dist/plugin-sdk/login-DtS9DDnV.js +57 -0
- package/dist/plugin-sdk/login-qr-B9YeeJ37.js +320 -0
- package/dist/plugin-sdk/manager-Dn7j3n0d.js +3917 -0
- package/dist/plugin-sdk/manager-runtime-UK1-iA2B.js +15 -0
- package/dist/plugin-sdk/outbound-B8ca8vE3.js +212 -0
- package/dist/plugin-sdk/outbound-attachment-BppFIMQa.js +19 -0
- package/dist/plugin-sdk/path-alias-guards-BX-3FprC.js +43 -0
- package/dist/plugin-sdk/paths-CjFcHB_C.js +166 -0
- package/dist/plugin-sdk/pi-embedded-helpers-BeYjP1MW.js +9627 -0
- package/dist/plugin-sdk/pi-model-discovery-B_qCKuSW.js +134 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-CZNiNFlm.js +8 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-cZdrrV27.js +354 -0
- package/dist/plugin-sdk/plugins-rivB8KaQ.js +864 -0
- package/dist/{proxy-fetch-ChIxNDe3.js → plugin-sdk/proxy-fetch-ZPEvp58f.js} +1 -1
- package/dist/plugin-sdk/pw-ai-qaWZD0yx.js +1938 -0
- package/dist/plugin-sdk/qmd-manager-izn0N9V3.js +1448 -0
- package/dist/plugin-sdk/query-expansion-C1Nx0XAb.js +1011 -0
- package/dist/{redact-BSwbgwaV.js → plugin-sdk/redact-BoNEjbpF.js} +1 -1
- package/dist/plugin-sdk/reply-DNSpho0-.js +98763 -0
- package/dist/plugin-sdk/resolve-outbound-target-YiPIGXVN.js +40 -0
- package/dist/plugin-sdk/run-with-concurrency-vfuRiXdY.js +2023 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BgwMJs4X.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Y7maoii7.js +19 -0
- package/dist/plugin-sdk/send-BSD6Pkrk.js +414 -0
- package/dist/plugin-sdk/send-C4KxEJe1.js +503 -0
- package/dist/plugin-sdk/send-D3XVKGvq.js +540 -0
- package/dist/plugin-sdk/send-DFrnRiWm.js +3135 -0
- package/dist/plugin-sdk/send-Dh1f5xjE.js +2587 -0
- package/dist/plugin-sdk/session-D5c0BIEo.js +169 -0
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/skill-commands-CnqkEfhS.js +342 -0
- package/dist/plugin-sdk/skills-DSbDUvmU.js +1428 -0
- package/dist/plugin-sdk/slack.js +2 -2
- package/dist/plugin-sdk/slash-commands.runtime-Dbtq7ppF.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BhAks953.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-QGNWVO9S.js +16 -0
- package/dist/plugin-sdk/ssrf-DvsjfpC2.js +202 -0
- package/dist/plugin-sdk/store-DG90hxe6.js +81 -0
- package/dist/plugin-sdk/subagent-registry-runtime-Db83OZ3_.js +52 -0
- package/dist/plugin-sdk/tables-DNlQ8oQ3.js +55 -0
- package/dist/{target-errors-BMTA5KVE.js → plugin-sdk/target-errors-BlVYPwVC.js} +2 -2
- package/dist/plugin-sdk/thinking-DT2ZR60x.js +1206 -0
- package/dist/{tokens-Cdk21tF_.js → plugin-sdk/tokens-CTIYTLWu.js} +1 -1
- package/dist/plugin-sdk/tool-images-DroS1EaM.js +274 -0
- package/dist/plugin-sdk/web-42d5VBZj.js +56 -0
- package/dist/plugin-sdk/whatsapp-actions-DR2aYq5f.js +80 -0
- package/dist/{plugins-D-K4oUXz.js → plugins-D8QbEQB8.js} +6 -6
- package/dist/{plugins-cli-DWmGTrQi.js → plugins-cli-BmfpsKs2.js} +17 -17
- package/dist/{program-context-CIEsO7ba.js → program-context-Cc5-MG37.js} +34 -34
- package/dist/{prompt-select-styled-4uvdkCmK.js → prompt-select-styled-BmJHQFIe.js} +10 -10
- package/dist/{provider-auth-helpers-Ds4co7pd.js → provider-auth-helpers-BrYxePGn.js} +1 -1
- package/dist/{proxy-env-D9oPe73i.js → proxy-env-DS2YEWWX.js} +1 -1
- package/dist/proxy-fetch-08-dhqxn.js +38 -0
- package/dist/{push-apns-wyGqUoCL.js → push-apns-BH6u2jeD.js} +1 -1
- package/dist/{pw-ai-DS32O9Ei.js → pw-ai-Bxj7Voze.js} +1 -1
- package/dist/{pw-ai-DXis1Gal.js → pw-ai-Do8UJz-Y.js} +1 -1
- package/dist/{pw-ai-4QFtj-s9.js → pw-ai-rD2G8OP-.js} +12 -12
- package/dist/{qmd-manager-CIcyVJmI.js → qmd-manager-B9vC7u4w.js} +9 -9
- package/dist/{qr-cli-DhqLEdBe.js → qr-cli-t7wb_tRQ.js} +1 -1
- package/dist/{query-expansion-BMExPdLO.js → query-expansion-o9Ib6_Rk.js} +4 -4
- package/dist/redact-rnJm_Z5E.js +319 -0
- package/dist/{register.agent-IRNp0fr-.js → register.agent-eYMqq7DM.js} +21 -21
- package/dist/{register.configure-D4ecAwAg.js → register.configure-5ZU_WG0B.js} +24 -24
- package/dist/{register.maintenance-YOZ3sMNS.js → register.maintenance-Di-_iCcy.js} +22 -22
- package/dist/{register.message-ozARKUco.js → register.message-BJEQ0tWj.js} +17 -17
- package/dist/{register.onboard-BtzGW6wy.js → register.onboard-D8V8BiRf.js} +5 -5
- package/dist/{register.setup-CaZETnfd.js → register.setup-CuD_ucSh.js} +5 -5
- package/dist/{register.status-health-sessions-qS3pe6Kw.js → register.status-health-sessions-CfcRluvS.js} +20 -20
- package/dist/{reply-d12k6JyN.js → reply-DM6COks_.js} +30 -30
- package/dist/{rpc-BnWL4MCX.js → rpc-BAWL8_DO.js} +1 -1
- package/dist/{run-with-concurrency-hJFK7PcO.js → run-with-concurrency-C3dKaL_j.js} +3 -3
- package/dist/runtime-whatsapp-login.runtime-BVm0A03Y.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-d8oRCgsW.js +22 -0
- package/dist/{sandbox-cli-CO9AcpuP.js → sandbox-cli-B_c94l3B.js} +3 -3
- package/dist/{sandbox-4_YzlsBa.js → sandbox-dnsTApLp.js} +2 -2
- package/dist/{secrets-cli-CE_fukZS.js → secrets-cli-ES-9H2pj.js} +3 -3
- package/dist/{security-cli-D-jh37Iy.js → security-cli-B5H4tjcT.js} +8 -8
- package/dist/{send-DySBiOxg.js → send-6s7HVGcN.js} +7 -7
- package/dist/{send-BMtxl7vL.js → send-BdQyKIzE.js} +5 -5
- package/dist/{send-DJcNRhf_.js → send-CAzswJK6.js} +8 -8
- package/dist/{send-CNzGOCHa.js → send-DKB7vlw3.js} +6 -6
- package/dist/{send-pUHxPU20.js → send-Q5SBsGfY.js} +14 -14
- package/dist/{server-COF4C6UQ.js → server-DWce8-ko.js} +4 -4
- package/dist/{server-context-DWRUW3Oc.js → server-context-CYPsJeRg.js} +3 -3
- package/dist/{server-lifecycle-DSRW9YyS.js → server-lifecycle-CL57-qY-.js} +2 -2
- package/dist/{server-node-events-DcI3BKLU.js → server-node-events-CM2wrNgk.js} +17 -17
- package/dist/{session-DOFapRIv.js → session-D2CiV8TN.js} +4 -4
- package/dist/{skill-commands-yvTkQtnt.js → skill-commands-CgJiKg3Q.js} +5 -5
- package/dist/{skills-BjHeDO5V.js → skills-DNyMj13y.js} +7 -7
- package/dist/slash-commands.runtime-Cvnjq5gh.js +16 -0
- package/dist/{slash-dispatch.runtime-CnIrfAgj.js → slash-dispatch.runtime-9OkfqjfK.js} +16 -16
- package/dist/{slash-dispatch.runtime-DidWtkRY.js → slash-dispatch.runtime-UHClfKIh.js} +6 -6
- package/dist/slash-dispatch.runtime-YGQtou1U.js +56 -0
- package/dist/slash-skill-commands.runtime-BbZPUdhN.js +20 -0
- package/dist/{status-Cxc7ROTK.js → status-DLXPWgfm.js} +7 -7
- package/dist/{store-C3iBzr-_.js → store-Bdm7wypS.js} +2 -2
- package/dist/{subagent-registry-runtime-Dup_yrOH.js → subagent-registry-runtime-BYDycq2m.js} +6 -6
- package/dist/{subagent-registry-runtime-DqbU91-h.js → subagent-registry-runtime-CQR_M6WF.js} +16 -16
- package/dist/subagent-registry-runtime-DoZWJdY9.js +56 -0
- package/dist/{subsystem-CWsKV5VU.js → subsystem-BJ89YjCN.js} +2 -2
- package/dist/{system-cli-B0wBc7tJ.js → system-cli-CUOkjFj4.js} +3 -3
- package/dist/{tables-Bv8tJ0qC.js → tables-MEAoO_QC.js} +1 -1
- package/dist/target-errors-qetEoXTB.js +195 -0
- package/dist/{thinking-BB_GM390.js → thinking-CaLooOu4.js} +7 -7
- package/dist/tokens-9NF8L9Uh.js +52 -0
- package/dist/{tool-images-HRwkh81U.js → tool-images-CkmNQqHm.js} +2 -2
- package/dist/{tui-BNyyikcb.js → tui-ChZP3wJ7.js} +3 -3
- package/dist/{tui-cli-DsuDwgRG.js → tui-cli-nXP__ZM8.js} +7 -7
- package/dist/{update-cli-CqGNnerP.js → update-cli-XGRmAcuW.js} +23 -23
- package/dist/{update-runner-BGYtEI5Z.js → update-runner-7klqnWFq.js} +1 -1
- package/dist/{web-BQbhCFGN.js → web-6kCngkSg.js} +17 -17
- package/dist/{web-Cp2nm6U4.js → web-CGbFuIR9.js} +6 -6
- package/dist/{web-BbpOMti_.js → web-ajuJjPrA.js} +53 -53
- package/dist/{whatsapp-actions-CuLcPfQ9.js → whatsapp-actions-DuJpyhRe.js} +19 -19
- package/dist/{with-timeout-DINiEgLx.js → with-timeout-CtjR5hW9.js} +2 -2
- package/dist/{workspace-MO4aE903.js → workspace-CkozFUzc.js} +2 -2
- package/package.json +2 -2
- package/dist/deliver-runtime-BJoBkkm_.js +0 -36
- package/dist/deps-send-discord.runtime-Dlb1pOSn.js +0 -26
- package/dist/deps-send-imessage.runtime-DmVvqFTt.js +0 -25
- package/dist/deps-send-signal.runtime-DPX_GcJK.js +0 -24
- package/dist/deps-send-slack.runtime-s7wb1ssP.js +0 -22
- package/dist/deps-send-telegram.runtime-DcIT4v5p.js +0 -27
- package/dist/deps-send-whatsapp.runtime-DfAhniLS.js +0 -60
- package/dist/image-runtime-Dkwf1-U3.js +0 -29
- package/dist/manager-runtime-DPiPNTWB.js +0 -18
- package/dist/pi-model-discovery-runtime-CRif8A8F.js +0 -11
- package/dist/runtime-whatsapp-login.runtime-DTnmQLV1.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-Da-07rzo.js +0 -22
- package/dist/slash-commands.runtime-FS9JZ9BW.js +0 -16
- package/dist/slash-dispatch.runtime-BZw5XlvY.js +0 -56
- package/dist/slash-skill-commands.runtime-BZIbPU6x.js +0 -20
- package/dist/subagent-registry-runtime-Blx4zbr0.js +0 -56
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-vfuRiXdY.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-8xF5kDne.js";
|
|
3
|
+
import { X as resolvePreferredSquidClawTmpDir } from "./logger-DDdrdbDu.js";
|
|
4
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-BBY2fn9x.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Cgyq6Jv9.js";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
|
|
8
|
+
//#region src/media/read-response-with-limit.ts
|
|
9
|
+
async function readResponseWithLimit(res, maxBytes, opts) {
|
|
10
|
+
const onOverflow = opts?.onOverflow ?? ((params) => /* @__PURE__ */ new Error(`Content too large: ${params.size} bytes (limit: ${params.maxBytes} bytes)`));
|
|
11
|
+
const body = res.body;
|
|
12
|
+
if (!body || typeof body.getReader !== "function") {
|
|
13
|
+
const fallback = Buffer.from(await res.arrayBuffer());
|
|
14
|
+
if (fallback.length > maxBytes) throw onOverflow({
|
|
15
|
+
size: fallback.length,
|
|
16
|
+
maxBytes,
|
|
17
|
+
res
|
|
18
|
+
});
|
|
19
|
+
return fallback;
|
|
20
|
+
}
|
|
21
|
+
const reader = body.getReader();
|
|
22
|
+
const chunks = [];
|
|
23
|
+
let total = 0;
|
|
24
|
+
try {
|
|
25
|
+
while (true) {
|
|
26
|
+
const { done, value } = await reader.read();
|
|
27
|
+
if (done) break;
|
|
28
|
+
if (value?.length) {
|
|
29
|
+
total += value.length;
|
|
30
|
+
if (total > maxBytes) {
|
|
31
|
+
try {
|
|
32
|
+
await reader.cancel();
|
|
33
|
+
} catch {}
|
|
34
|
+
throw onOverflow({
|
|
35
|
+
size: total,
|
|
36
|
+
maxBytes,
|
|
37
|
+
res
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
chunks.push(value);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
} finally {
|
|
44
|
+
try {
|
|
45
|
+
reader.releaseLock();
|
|
46
|
+
} catch {}
|
|
47
|
+
}
|
|
48
|
+
return Buffer.concat(chunks.map((chunk) => Buffer.from(chunk)), total);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/media/fetch.ts
|
|
53
|
+
var MediaFetchError = class extends Error {
|
|
54
|
+
constructor(code, message) {
|
|
55
|
+
super(message);
|
|
56
|
+
this.code = code;
|
|
57
|
+
this.name = "MediaFetchError";
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
function stripQuotes(value) {
|
|
61
|
+
return value.replace(/^["']|["']$/g, "");
|
|
62
|
+
}
|
|
63
|
+
function parseContentDispositionFileName(header) {
|
|
64
|
+
if (!header) return;
|
|
65
|
+
const starMatch = /filename\*\s*=\s*([^;]+)/i.exec(header);
|
|
66
|
+
if (starMatch?.[1]) {
|
|
67
|
+
const cleaned = stripQuotes(starMatch[1].trim());
|
|
68
|
+
const encoded = cleaned.split("''").slice(1).join("''") || cleaned;
|
|
69
|
+
try {
|
|
70
|
+
return path.basename(decodeURIComponent(encoded));
|
|
71
|
+
} catch {
|
|
72
|
+
return path.basename(encoded);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const match = /filename\s*=\s*([^;]+)/i.exec(header);
|
|
76
|
+
if (match?.[1]) return path.basename(stripQuotes(match[1].trim()));
|
|
77
|
+
}
|
|
78
|
+
async function readErrorBodySnippet(res, maxChars = 200) {
|
|
79
|
+
try {
|
|
80
|
+
const text = await res.text();
|
|
81
|
+
if (!text) return;
|
|
82
|
+
const collapsed = text.replace(/\s+/g, " ").trim();
|
|
83
|
+
if (!collapsed) return;
|
|
84
|
+
if (collapsed.length <= maxChars) return collapsed;
|
|
85
|
+
return `${collapsed.slice(0, maxChars)}…`;
|
|
86
|
+
} catch {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
async function fetchRemoteMedia(options) {
|
|
91
|
+
const { url, fetchImpl, requestInit, filePathHint, maxBytes, maxRedirects, ssrfPolicy, lookupFn } = options;
|
|
92
|
+
let res;
|
|
93
|
+
let finalUrl = url;
|
|
94
|
+
let release = null;
|
|
95
|
+
try {
|
|
96
|
+
const result = await fetchWithSsrFGuard(withStrictGuardedFetchMode({
|
|
97
|
+
url,
|
|
98
|
+
fetchImpl,
|
|
99
|
+
init: requestInit,
|
|
100
|
+
maxRedirects,
|
|
101
|
+
policy: ssrfPolicy,
|
|
102
|
+
lookupFn
|
|
103
|
+
}));
|
|
104
|
+
res = result.response;
|
|
105
|
+
finalUrl = result.finalUrl;
|
|
106
|
+
release = result.release;
|
|
107
|
+
} catch (err) {
|
|
108
|
+
throw new MediaFetchError("fetch_failed", `Failed to fetch media from ${url}: ${String(err)}`);
|
|
109
|
+
}
|
|
110
|
+
try {
|
|
111
|
+
if (!res.ok) {
|
|
112
|
+
const statusText = res.statusText ? ` ${res.statusText}` : "";
|
|
113
|
+
const redirected = finalUrl !== url ? ` (redirected to ${finalUrl})` : "";
|
|
114
|
+
let detail = `HTTP ${res.status}${statusText}`;
|
|
115
|
+
if (!res.body) detail = `HTTP ${res.status}${statusText}; empty response body`;
|
|
116
|
+
else {
|
|
117
|
+
const snippet = await readErrorBodySnippet(res);
|
|
118
|
+
if (snippet) detail += `; body: ${snippet}`;
|
|
119
|
+
}
|
|
120
|
+
throw new MediaFetchError("http_error", `Failed to fetch media from ${url}${redirected}: ${detail}`);
|
|
121
|
+
}
|
|
122
|
+
const contentLength = res.headers.get("content-length");
|
|
123
|
+
if (maxBytes && contentLength) {
|
|
124
|
+
const length = Number(contentLength);
|
|
125
|
+
if (Number.isFinite(length) && length > maxBytes) throw new MediaFetchError("max_bytes", `Failed to fetch media from ${url}: content length ${length} exceeds maxBytes ${maxBytes}`);
|
|
126
|
+
}
|
|
127
|
+
const buffer = maxBytes ? await readResponseWithLimit(res, maxBytes, { onOverflow: ({ maxBytes, res }) => new MediaFetchError("max_bytes", `Failed to fetch media from ${res.url || url}: payload exceeds maxBytes ${maxBytes}`) }) : Buffer.from(await res.arrayBuffer());
|
|
128
|
+
let fileNameFromUrl;
|
|
129
|
+
try {
|
|
130
|
+
const parsed = new URL(finalUrl);
|
|
131
|
+
fileNameFromUrl = path.basename(parsed.pathname) || void 0;
|
|
132
|
+
} catch {}
|
|
133
|
+
const headerFileName = parseContentDispositionFileName(res.headers.get("content-disposition"));
|
|
134
|
+
let fileName = headerFileName || fileNameFromUrl || (filePathHint ? path.basename(filePathHint) : void 0);
|
|
135
|
+
const filePathForMime = headerFileName && path.extname(headerFileName) ? headerFileName : filePathHint ?? finalUrl;
|
|
136
|
+
const contentType = await detectMime({
|
|
137
|
+
buffer,
|
|
138
|
+
headerMime: res.headers.get("content-type"),
|
|
139
|
+
filePath: filePathForMime
|
|
140
|
+
});
|
|
141
|
+
if (fileName && !path.extname(fileName) && contentType) {
|
|
142
|
+
const ext = extensionForMime(contentType);
|
|
143
|
+
if (ext) fileName = `${fileName}${ext}`;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
buffer,
|
|
147
|
+
contentType: contentType ?? void 0,
|
|
148
|
+
fileName
|
|
149
|
+
};
|
|
150
|
+
} finally {
|
|
151
|
+
if (release) await release();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/media/local-roots.ts
|
|
157
|
+
let cachedPreferredTmpDir;
|
|
158
|
+
function resolveCachedPreferredTmpDir() {
|
|
159
|
+
if (!cachedPreferredTmpDir) cachedPreferredTmpDir = resolvePreferredSquidClawTmpDir();
|
|
160
|
+
return cachedPreferredTmpDir;
|
|
161
|
+
}
|
|
162
|
+
function buildMediaLocalRoots(stateDir, options = {}) {
|
|
163
|
+
const resolvedStateDir = path.resolve(stateDir);
|
|
164
|
+
return [
|
|
165
|
+
options.preferredTmpDir ?? resolveCachedPreferredTmpDir(),
|
|
166
|
+
path.join(resolvedStateDir, "media"),
|
|
167
|
+
path.join(resolvedStateDir, "agents"),
|
|
168
|
+
path.join(resolvedStateDir, "workspace"),
|
|
169
|
+
path.join(resolvedStateDir, "sandboxes")
|
|
170
|
+
];
|
|
171
|
+
}
|
|
172
|
+
function getDefaultMediaLocalRoots() {
|
|
173
|
+
return buildMediaLocalRoots(resolveStateDir());
|
|
174
|
+
}
|
|
175
|
+
function getAgentScopedMediaLocalRoots(cfg, agentId) {
|
|
176
|
+
const roots = buildMediaLocalRoots(resolveStateDir());
|
|
177
|
+
if (!agentId?.trim()) return roots;
|
|
178
|
+
const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId);
|
|
179
|
+
if (!workspaceDir) return roots;
|
|
180
|
+
const normalizedWorkspaceDir = path.resolve(workspaceDir);
|
|
181
|
+
if (!roots.includes(normalizedWorkspaceDir)) roots.push(normalizedWorkspaceDir);
|
|
182
|
+
return roots;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
//#endregion
|
|
186
|
+
export { readResponseWithLimit as a, fetchRemoteMedia as i, getDefaultMediaLocalRoots as n, MediaFetchError as r, getAgentScopedMediaLocalRoots as t };
|