winclaw 2026.3.21 → 2026.3.22
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-CTJXIABG.js → accounts-8qwgz384.js} +1 -1
- package/dist/{accounts-CLKFSM00.js → accounts-BpS-Awr5.js} +1 -1
- package/dist/{accounts-cYG8442L.js → accounts-BrWJjaKS.js} +7 -7
- package/dist/{acp-cli-BbN2vTHD.js → acp-cli-BMM5ssNE.js} +8 -8
- package/dist/{agent-scope-D-i-vMLS.js → agent-scope-Dany4R2i.js} +17 -17
- package/dist/{agents-_gcdm-kb.js → agents-AMH_Bmb6.js} +14 -14
- package/dist/{agents.config-BkgsJJng.js → agents.config-6n_jmCMa.js} +2 -2
- package/dist/{api-key-rotation-D_JdsLIl.js → api-key-rotation-C9ywPLG3.js} +1 -1
- package/dist/{audio-preflight-CdgtLVh2.js → audio-preflight-D7UvXGlQ.js} +34 -34
- package/dist/{audio-preflight-CBWXmKyj.js → audio-preflight-DHeEYciJ.js} +4 -4
- package/dist/{audio-transcription-runner-DpvjaNmr.js → audio-transcription-runner-1-9PFrzh.js} +1 -1
- package/dist/{audio-transcription-runner-DGZYB2Wq.js → audio-transcription-runner-nnwJufig.js} +23 -23
- package/dist/{audit-DdcsBl_-.js → audit-DV_kf1sd.js} +29 -29
- package/dist/{auth-CU4HqNch.js → auth-Ahj-1B5R.js} +1 -1
- package/dist/{auth-choice-CtzD_rrW.js → auth-choice-NjkwJsBG.js} +13 -13
- package/dist/{auth-choice-i771W71t.js → auth-choice-dFTD1hLR.js} +11 -11
- package/dist/{auth-choice.apply-helpers-Bmj9LZnO.js → auth-choice.apply-helpers-ClzwLPaB.js} +1 -1
- package/dist/{auth-profiles-CmoHF97e.js → auth-profiles-DF0cLC20.js} +16 -16
- package/dist/{auth-token-C_S_Uszj.js → auth-token-BXCBtI3p.js} +1 -1
- package/dist/{banner-C-01b-if.js → banner-BB4DFL8E.js} +2 -2
- package/dist/{bonjour-discovery-BxCVyJLG.js → bonjour-discovery-BVSpbdjs.js} +1 -1
- package/dist/{browser-cli-Rt_P1-M1.js → browser-cli-DAcccrxR.js} +12 -12
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-BLyRfBMl.js → call-DEKH5GO9.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-B4ofKr9t.js → channel-account-context-D4Yftz20.js} +5 -5
- package/dist/{channel-activity-CPWF8YR5.js → channel-activity-D03SwGPA.js} +1 -1
- package/dist/{channel-options-it9Z3dNk.js → channel-options-C7dYNZsy.js} +3 -3
- package/dist/{channel-selection-5G2iw3CB.js → channel-selection-Bke39fer.js} +1 -1
- package/dist/{channel-web-CJ_jcZSw.js → channel-web-BOrAGcza.js} +17 -17
- package/dist/{channels-cli-miFqkj2-.js → channels-cli-4YLI7Ar_.js} +93 -93
- package/dist/{channels-status-issues-DpfEWI4l.js → channels-status-issues-wCgCdUDu.js} +1 -1
- package/dist/{chrome-RAfAR4xV.js → chrome-BDFA9lPV.js} +4 -4
- package/dist/{chrome-GsaZ074n.js → chrome-Cr8R7xl_.js} +8 -8
- package/dist/{clawbot-cli-HvFYYAc6.js → clawbot-cli-B96xAtzs.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-BozE7JCS.js +154 -0
- package/dist/{client-DCxDsURZ.js → client-jNFqrgw6.js} +2 -2
- package/dist/{command-registry-m8nfRV-J.js → command-registry-qDpes5Yr.js} +11 -11
- package/dist/{command-secret-targets-BfqkoJyp.js → command-secret-targets-Dd4qCPSg.js} +4 -4
- package/dist/{commands-4mnxaSoA.js → commands-DmBkhPD-.js} +1 -1
- package/dist/{commands-registry-h5KiQe_S.js → commands-registry-BB289Bg8.js} +3 -3
- package/dist/{completion-cli-B-8mTxbh.js → completion-cli-DzZieT3i.js} +13 -13
- package/dist/{config-cli-1ecjxVfC.js → config-cli-Dk1yc6M9.js} +7 -7
- package/dist/{config-guard-DlzKrdcR.js → config-guard-3fwTO4Mb.js} +3 -3
- package/dist/{config-validation-E-3Wz4C4.js → config-validation-5pIaju5U.js} +3 -3
- package/dist/{configure-B-tOY-wa.js → configure-CuqZCxTb.js} +17 -17
- package/dist/{control-ui-assets-B0DdamQU.js → control-ui-assets-5F0FEjfM.js} +1 -1
- package/dist/{cron-cli-DpVGzupl.js → cron-cli-BIa0VxDk.js} +11 -11
- package/dist/{daemon-cli-CqwUFobu.js → daemon-cli-BE11O7QX.js} +16 -16
- package/dist/{daemon-install-C029NlXk.js → daemon-install-DNhR8NtL.js} +4 -4
- package/dist/{daemon-install-helpers-D1YQ03lO.js → daemon-install-helpers-DWmF3oFP.js} +11 -11
- package/dist/{deliver-BX-UVg7x.js → deliver-CqiBzHnh.js} +7 -7
- package/dist/{deliver-CtyrAYix.js → deliver-r4_Yp7-C.js} +1 -1
- package/dist/{deliver-runtime-Bvh4te8E.js → deliver-runtime-CIXUsI5k.js} +3 -3
- package/dist/deliver-runtime-DJsAB9LW.js +57 -0
- package/dist/deps-send-discord.runtime-M8Cl0fms.js +32 -0
- package/dist/deps-send-imessage.runtime-Bing_Bvm.js +31 -0
- package/dist/deps-send-signal.runtime-CEnhoskG.js +30 -0
- package/dist/deps-send-slack.runtime-DeKWrOdA.js +28 -0
- package/dist/deps-send-telegram.runtime-K5LxxPog.js +34 -0
- package/dist/{deps-send-whatsapp.runtime-BJV7VcRP.js → deps-send-whatsapp.runtime-BXDQiU2D.js} +7 -7
- package/dist/deps-send-whatsapp.runtime-Cie2nrT8.js +115 -0
- package/dist/{devices-cli-Cpq_Gt1l.js → devices-cli-BJgUG9fc.js} +8 -8
- package/dist/{diagnostic-DIPYflOJ.js → diagnostic-BCcd-_zI.js} +1 -1
- package/dist/{diagnostics-KfpqzhsS.js → diagnostics-BDjbQJxP.js} +5 -5
- package/dist/{directory-cli-CPBPE8N1.js → directory-cli-CJ_l_BnF.js} +7 -7
- package/dist/{dns-cli-CI7HzCVI.js → dns-cli-CFau82Y7.js} +5 -5
- package/dist/{dock-ClcGZ0LV.js → dock-C-w5XvOS.js} +4 -4
- package/dist/{docs-cli-DkQBHXw-.js → docs-cli-BRob5CHm.js} +4 -4
- package/dist/{doctor-completion-DEdT-_9v.js → doctor-completion-DB39JNV7.js} +2 -2
- package/dist/{doctor-config-flow-D6rEqOwb.js → doctor-config-flow-BzYwmYwv.js} +15 -15
- package/dist/{enable-sRe0nI5a.js → enable-Qw-mz6ta.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-B5ZdMbz6.js → exec-approvals-allowlist-BkdJCc3F.js} +1 -1
- package/dist/{exec-approvals-cli-BFxdGk9c.js → exec-approvals-cli-DsDGgzyV.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-CB8atBLm.js → exec-safe-bin-runtime-policy-C5pAgyiz.js} +2 -2
- package/dist/{fetch-CdvuNDFE.js → fetch-BwrGQrFL.js} +3 -3
- package/dist/{fetch-guard-D-W6TRJN.js → fetch-guard-CHht1LfT.js} +1 -1
- package/dist/{plugin-sdk/fs-safe-DRACrdwg.js → fs-safe-B8J4dv27.js} +6 -6
- package/dist/{gateway-cli-C_4mlmOW.js → gateway-cli-BdyXCC2C.js} +154 -154
- package/dist/{gateway-rpc-Dg3CGljP.js → gateway-rpc-ICMh7-Qs.js} +1 -1
- package/dist/{health-C5a0wlfE.js → health-Boe965-L.js} +11 -11
- package/dist/{hooks-cli-C79J_WG7.js → hooks-cli-DI0sn396.js} +81 -81
- package/dist/{hooks-status-Cjg5SLpX.js → hooks-status-CQjtRM1s.js} +1 -1
- package/dist/{image-7s8Q2r40.js → image-DoOVDHql.js} +1 -1
- package/dist/{image-EjGWXbei.js → image-Dpt9TurJ.js} +5 -5
- package/dist/{image-ops-eFMqXMDE.js → image-ops-DWGnyTvC.js} +10 -10
- package/dist/image-runtime-HfAsK5X3.js +51 -0
- package/dist/{image-runtime-QNP_uABR.js → image-runtime-Wym8Keh3.js} +3 -3
- package/dist/{inspect-XmcWN97u.js → inspect-DbVcDDi7.js} +4 -4
- package/dist/{install-safe-path-DNotGe9T.js → install-safe-path-FR9r9Dmi.js} +25 -25
- package/dist/{installs-zKF10nZF.js → installs-7zsfIb7P.js} +9 -9
- package/dist/{ipv4-DIKCnoyz.js → ipv4-CfrDjvjo.js} +1 -1
- package/dist/{ir-CJPPU4LU.js → ir-B-FffSKU.js} +8 -8
- package/dist/{issue-format-DCF2SXK_.js → issue-format-NmLUfbBT.js} +1 -1
- package/dist/{json-files-kWpauJWO.js → json-files-D9ZHO8Ud.js} +8 -8
- package/dist/{lifecycle-core-BLhI5nRz.js → lifecycle-core-Di83_FGS.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{login-D26qK4NQ.js → login-BrdFlfV0.js} +3 -3
- package/dist/{login-qr-CMgMlRCI.js → login-qr-Ci3FVgS9.js} +6 -6
- package/dist/{logs-cli-Cn7bGSc7.js → logs-cli-DUl4D14l.js} +9 -9
- package/dist/{manager-f6tniCBN.js → manager-2Wice7pq.js} +14 -14
- package/dist/manager-runtime-BrpO8pJp.js +22 -0
- package/dist/{manifest-registry-CI-UuKUO.js → manifest-registry-_liSV_Vx.js} +1 -1
- package/dist/{memory-cli-C2Yq9ryD.js → memory-cli-BgZK6A-T.js} +12 -12
- package/dist/{model-CXGHDOeN.js → model-C4J88Gi3.js} +2 -2
- package/dist/{model-catalog-08ftNXDk.js → model-catalog-BYxSwIkt.js} +3 -3
- package/dist/{model-picker-CTRi5Yhj.js → model-picker-DAr8DpKu.js} +4 -4
- package/dist/{models-Do96D4zT.js → models-DqwqcGxg.js} +17 -17
- package/dist/{models-cli-pblTciC_.js → models-cli-BFfUYhHp.js} +78 -78
- package/dist/{models-config-DYJ-p9kt.js → models-config-CJq2ywhf.js} +6 -6
- package/dist/{net-DQYHvbkN.js → net-C7TXXUto.js} +2 -2
- package/dist/{node-cli-CsQwAHzH.js → node-cli-DMpZsjse.js} +33 -33
- package/dist/{node-command-policy-BHdicfMO.js → node-command-policy-DGMJi4xw.js} +1 -1
- package/dist/{node-service-CLtiUeNO.js → node-service-L9-L8-7x.js} +1 -1
- package/dist/{nodes-cli-Dlilj-Pf.js → nodes-cli-BcyY77Cc.js} +16 -16
- package/dist/{nodes-screen-CL-8raxt.js → nodes-screen-B6QVlwKO.js} +7 -7
- package/dist/{npm-pack-install-DZvYhRnM.js → npm-pack-install-B3VCcNWC.js} +18 -18
- package/dist/{npm-resolution-DE7xcGkg.js → npm-resolution-0-Scs5nn.js} +4 -4
- package/dist/{onboard-CReGZ3G9.js → onboard-C9gtA3_b.js} +6 -6
- package/dist/{onboard-channels-ljMkIe7O.js → onboard-channels-NBqfiIc3.js} +21 -21
- package/dist/{onboard-custom-DoJDTzAW.js → onboard-custom-Cv61U_sa.js} +4 -4
- package/dist/{onboard-helpers-7lOdCHhD.js → onboard-helpers-Djj9SkyR.js} +10 -10
- package/dist/{onboard-hooks-BTD0YhRI.js → onboard-hooks-DRkLf5gL.js} +4 -4
- package/dist/{onboard-remote-Bj9uk3zW.js → onboard-remote-o8XtWCa_.js} +4 -4
- package/dist/{onboard-skills-1KAA9UrK.js → onboard-skills-TATKa-gc.js} +4 -4
- package/dist/{onboarding-CoH1hPY0.js → onboarding-C_LQ6doG.js} +14 -14
- package/dist/{onboarding.finalize-DzRWtkmA.js → onboarding.finalize-uHWzNBrm.js} +87 -87
- package/dist/{onboarding.gateway-config-s11ZLxLE.js → onboarding.gateway-config-ByvXJY2k.js} +18 -18
- package/dist/{onboarding.secret-input-D5VKqHdN.js → onboarding.secret-input-Cw4uIgyl.js} +1 -1
- package/dist/{openai-model-default-sYh2slgj.js → openai-model-default-Db9joqm4.js} +2 -2
- package/dist/{outbound-D0KF3CHY.js → outbound-DgsIsXfj.js} +3 -3
- package/dist/{outbound-attachment-CEC4H3tX.js → outbound-attachment-CjhkSZBR.js} +2 -2
- package/dist/{pairing-cli-4Nrc-V_v.js → pairing-cli-D0KKynjI.js} +8 -8
- package/dist/{pairing-labels-e3Pnen1C.js → pairing-labels-Ev8O2qBX.js} +1 -1
- package/dist/{pairing-store-Kslw_Wa0.js → pairing-store-CI0hWzZk.js} +3 -3
- package/dist/{plugin-sdk/path-alias-guards-CaCBZRHc.js → path-alias-guards-BoydiaPL.js} +1 -1
- package/dist/{path-safety-Cq9rwfZN.js → path-safety-CSCsbd-j.js} +1 -1
- package/dist/{paths-C5mR1YC-.js → paths-BVQ0udwc.js} +9 -9
- package/dist/{pi-embedded-DUO1eQ_J.js → pi-embedded-CD3oPGOP.js} +24 -24
- package/dist/{pi-embedded-helpers-BWpzwT6B.js → pi-embedded-helpers-Be8qWeKb.js} +6 -6
- package/dist/{pi-embedded-helpers-BMGRFCuV.js → pi-embedded-helpers-BthBxPYi.js} +3 -3
- package/dist/{pi-model-discovery-CibSv4gC.js → pi-model-discovery-CgxnCHvU.js} +1 -1
- package/dist/{pi-model-discovery-runtime-DhBE8w94.js → pi-model-discovery-runtime-CqYOz48r.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-D6h4CmLs.js → pi-tools.before-tool-call.runtime-CPnt06zM.js} +5 -5
- package/dist/{pi-tools.policy-BqpmC_c4.js → pi-tools.policy-DGbCC2Ji.js} +5 -5
- package/dist/{plugin-auto-enable-DnSZLbIH.js → plugin-auto-enable-Crpu18wt.js} +3 -3
- package/dist/{plugin-registry-DckyegZB.js → plugin-registry-Dbu4pN4B.js} +3 -3
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/telegram.js +2 -2
- package/dist/{plugins-C1OgLvb4.js → plugins-IFacUN_Q.js} +2 -2
- package/dist/{plugins-cli-C6Oo9R6E.js → plugins-cli-CCpaWcyg.js} +83 -83
- package/dist/{ports-CfOim1GC.js → ports-DqZBwUsy.js} +2 -2
- package/dist/{ports-Dw-3Gxsb.js → ports-FLn4cVl7.js} +1 -1
- package/dist/{probe-D3f6QMfy.js → probe-CHRXpP2F.js} +2 -2
- package/dist/{program-CEJ6CsoR.js → program-Br4Re78f.js} +81 -81
- package/dist/{prompt-select-styled-D-f3R2mt.js → prompt-select-styled-w-CGGgrT.js} +40 -40
- package/dist/{provider-auth-helpers-CN4iPBfs.js → provider-auth-helpers-BVCos07y.js} +5 -5
- package/dist/{proxy-env-B7GwrH5p.js → proxy-env-Bx8OhutV.js} +1 -1
- package/dist/{push-apns-BEZdCQsM.js → push-apns-Cdl2nskU.js} +5 -5
- package/dist/{pw-ai-Ckb-165q.js → pw-ai-BpQw305H.js} +18 -18
- package/dist/{pw-ai-D6e8FGb0.js → pw-ai-CJfoHUhH.js} +1 -1
- package/dist/{plugin-sdk/qmd-manager-JiY1T3wh.js → qmd-manager-COHJs6wn.js} +15 -11
- package/dist/{qr-cli-BI54tdt3.js → qr-cli-Bzo00_vR.js} +2 -2
- package/dist/{query-expansion-Cja4xprw.js → query-expansion-IQFdQdeu.js} +12 -12
- package/dist/{redact-snapshot-YrAxVxTI.js → redact-snapshot-Bfefch_D.js} +1 -1
- package/dist/{register.agent-BjxrirHi.js → register.agent-CVpohSrc.js} +94 -94
- package/dist/register.configure-CiIuig3f.js +162 -0
- package/dist/{register.maintenance-BfdiJ7KX.js → register.maintenance-CpVfbR8z.js} +95 -95
- package/dist/{register.message-BszoJEBm.js → register.message-CJErVRcL.js} +74 -74
- package/dist/{register.onboard-CbJU4Y-3.js → register.onboard-Cm5fn9dF.js} +18 -18
- package/dist/{register.setup-BTTBsCT0.js → register.setup-DIBDbMN8.js} +21 -21
- package/dist/{register.status-health-sessions-C3Ji8sqv.js → register.status-health-sessions-Bu3abDYw.js} +89 -89
- package/dist/{register.subclis-2iN-TxPh.js → register.subclis-DTiQUgvr.js} +31 -31
- package/dist/{rpc-4GcuaLHq.js → rpc-CkwrblZ9.js} +1 -1
- package/dist/{run-main-BEtPk_9z.js → run-main-4p7ridqP.js} +92 -92
- package/dist/{runtime-4RU4PT-H.js → runtime-C-9xWVep.js} +3 -3
- package/dist/{runtime-config-collectors-Ca2llf68.js → runtime-config-collectors-vw9ITu9W.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-DOTrH3Wz.js → runtime-whatsapp-login.runtime-CrytFUOh.js} +7 -7
- package/dist/runtime-whatsapp-outbound.runtime-DOHkvY0R.js +28 -0
- package/dist/{sandbox-D19lOCVP.js → sandbox-CDjV0Crv.js} +18 -18
- package/dist/{sandbox-cli-DAZxiFQz.js → sandbox-cli-CyS9Kzp1.js} +25 -25
- package/dist/{secrets-cli-Bd2eDDOJ.js → secrets-cli-BPXW13bC.js} +11 -11
- package/dist/{security-cli-C6oO69to.js → security-cli-DfuX1PAw.js} +43 -43
- package/dist/{send-DR5zNR-6.js → send-BTQQeOIu.js} +6 -6
- package/dist/{send-3vnK2por.js → send-CFsJh6px.js} +11 -11
- package/dist/{send-DTvtOsK3.js → send-CM55Cnqy.js} +4 -4
- package/dist/{send-Bz5LPBFx.js → send-D7wKzeqg.js} +8 -8
- package/dist/{send-CEgqE2b1.js → send-DUJqLDEQ.js} +5 -5
- package/dist/{server-vPpafyBR.js → server-57rjxu9J.js} +20 -20
- package/dist/{server-context-FT_S05Zu.js → server-context-DdGwcBos.js} +12 -12
- package/dist/{server-lifecycle-YV61YmRr.js → server-lifecycle-TD7uRUJM.js} +2 -2
- package/dist/{server-middleware-BPI-0Duw.js → server-middleware-Dqzu_N47.js} +1 -1
- package/dist/{server-node-events-BozhXo6J.js → server-node-events-CstHr-4q.js} +74 -74
- package/dist/{service-Aratsspm.js → service-B45ntxm9.js} +15 -15
- package/dist/{session-C4iQQHfw.js → session-BO7rj_9P.js} +1 -1
- package/dist/{session-utils-CTpXGSxL.js → session-utils-DqzU9P2d.js} +6 -6
- package/dist/{sessions-CZvR93mC.js → sessions-BPbCt7hk.js} +4 -4
- package/dist/{sessions-Cvvux3S6.js → sessions-BUNwVEqF.js} +15 -15
- package/dist/{shared-ByZODVse.js → shared-CeHWQzSU.js} +3 -3
- package/dist/{shared-Cj-SPh02.js → shared-CpqkgNHp.js} +1 -1
- package/dist/{skill-commands-CzaT61kL.js → skill-commands-BlmjGaIe.js} +5 -5
- package/dist/{skill-scanner-DqqhF5of.js → skill-scanner-DOOfjrYo.js} +6 -6
- package/dist/{skills-BpN5EUZU.js → skills-CFYm0xdh.js} +3 -3
- package/dist/{skills-cli-Bk2WM5gn.js → skills-cli-Dmbm2-L8.js} +5 -5
- package/dist/{skills-install-0pjIZu1-.js → skills-install-DSB3T8VY.js} +6 -6
- package/dist/{skills-status-Bu28FGtt.js → skills-status-CmWpjTMz.js} +1 -1
- package/dist/{slash-commands.runtime-CU--cvcd.js → slash-commands.runtime-CTVGYo20.js} +11 -11
- package/dist/{slash-dispatch.runtime-DDLolsGY.js → slash-dispatch.runtime-CQmhrE1-.js} +6 -6
- package/dist/slash-dispatch.runtime-yKnwVCI5.js +110 -0
- package/dist/slash-skill-commands.runtime-BCG9eUm1.js +29 -0
- package/dist/{status-B5hylgEQ.js → status-DPFQHdBI.js} +28 -28
- package/dist/{status.update-CdaaXiD4.js → status.update-ZhDibzTU.js} +2 -2
- package/dist/{store-LSg8jeyh.js → store-Dgl-neCe.js} +5 -5
- package/dist/{subagent-registry-iD-ynHA9.js → subagent-registry-DPqc72Pw.js} +149 -149
- package/dist/{subagent-registry-runtime-DfMDVaOY.js → subagent-registry-runtime-BYxLgcCY.js} +6 -6
- package/dist/subagent-registry-runtime-DE-5902Y.js +110 -0
- package/dist/{system-cli-B8wmT3y0.js → system-cli-BiiO_z6k.js} +9 -9
- package/dist/{system-run-command-Ft0meR8i.js → system-run-command-CUMrwy8H.js} +1 -1
- package/dist/{systemd-CVY4-XuL.js → systemd-BNMfPHLS.js} +9 -9
- package/dist/{systemd-hints-GPX9Y1X7.js → systemd-hints-O9SJa5Ku.js} +6 -6
- package/dist/{systemd-linger-CyioH9ho.js → systemd-linger-CDgtOmPf.js} +1 -1
- package/dist/{tables-B6p8P9wY.js → tables-Bjpb4vEC.js} +1 -1
- package/dist/{tailnet-yScEfa2T.js → tailnet-C4yxhmDk.js} +1 -1
- package/dist/{plugin-sdk/target-errors-Hoj2qirZ.js → target-errors-Bd8kj4z9.js} +2 -2
- package/dist/{tool-images-Cp3hNFNZ.js → tool-images-DbchBdq5.js} +1 -1
- package/dist/{tui-BPqNtl51.js → tui-BVOPPCMP.js} +6 -6
- package/dist/{tui-cli-BZE2zssw.js → tui-cli-B2jmEXCo.js} +32 -32
- package/dist/{update-u6OtnABh.js → update-DF240Zd0.js} +3 -3
- package/dist/{update-cli-C1nysDmM.js → update-cli-PDG-KYWB.js} +105 -105
- package/dist/{update-runner-BpzbDTnQ.js → update-runner-BkpGT3AA.js} +16 -16
- package/dist/{web-CodV11ZY.js → web-0SOsmYmI.js} +6 -6
- package/dist/web-20qjCzeI.js +114 -0
- package/dist/{webhooks-cli-D4O_OfXU.js → webhooks-cli-N_vV0iXR.js} +6 -6
- package/dist/{whatsapp-actions-By2rV868.js → whatsapp-actions-X768ziyc.js} +17 -17
- package/dist/{winclaw-root-D0OUuGl7.js → winclaw-root-DEqOOeOw.js} +8 -8
- package/dist/{with-timeout-Cng0KnPd.js → with-timeout-DJb5ULbL.js} +3 -3
- package/dist/{workspace-vYy4qLQz.js → workspace-Cx-f7PO5.js} +1 -1
- package/dist/{workspace-dirs-C13vnqQQ.js → workspace-dirs-C5erYAob.js} +1 -1
- package/dist/{wsl-C9d12M7y.js → wsl-BisEqrSr.js} +2 -2
- package/package.json +1 -1
- package/dist/cli-Da0pNyXg.js +0 -154
- package/dist/deliver-runtime-Co5o7uv0.js +0 -57
- package/dist/deps-send-discord.runtime-D0BtA9iO.js +0 -32
- package/dist/deps-send-imessage.runtime-89fweiea.js +0 -31
- package/dist/deps-send-signal.runtime-BA3mNq_v.js +0 -30
- package/dist/deps-send-slack.runtime-DiA-Ieod.js +0 -28
- package/dist/deps-send-telegram.runtime-C9bLOnbt.js +0 -34
- package/dist/deps-send-whatsapp.runtime-Dflrvnq-.js +0 -115
- package/dist/fs-safe-Dha0DfFC.js +0 -352
- package/dist/image-runtime-CGAobfgI.js +0 -51
- package/dist/manager-runtime-BifbXCuI.js +0 -22
- package/dist/path-alias-guards-9OJ1UBCd.js +0 -43
- package/dist/plugin-sdk/accounts-B9lBByhz.js +0 -35
- package/dist/plugin-sdk/accounts-Bl6fp04N.js +0 -288
- package/dist/plugin-sdk/accounts-CQWq_42g.js +0 -46
- package/dist/plugin-sdk/active-listener-Dc-P7jeX.js +0 -50
- package/dist/plugin-sdk/api-key-rotation-DSOB99GV.js +0 -181
- package/dist/plugin-sdk/audio-preflight-DYTxAG0v.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-Bndij5Q1.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-ZTTIhQhs.js +0 -58
- package/dist/plugin-sdk/channel-activity-ChRCQNSc.js +0 -94
- package/dist/plugin-sdk/channel-web-CfZNFYCV.js +0 -2256
- package/dist/plugin-sdk/chrome-DNpRdbZ1.js +0 -2415
- package/dist/plugin-sdk/commands-registry-Bq1HqcJU.js +0 -1125
- package/dist/plugin-sdk/config-Cyo0rHBx.js +0 -17959
- package/dist/plugin-sdk/deliver-mBruQPRt.js +0 -1719
- package/dist/plugin-sdk/deliver-runtime-ByVt0evu.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-C2fc3t93.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-D4m7X6j4.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-DwGJRjyX.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-7J491hID.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-DAKGyd6b.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BxQ5tZO2.js +0 -57
- package/dist/plugin-sdk/diagnostic-B3ZoSFoM.js +0 -319
- package/dist/plugin-sdk/errors-DdSHGcgi.js +0 -54
- package/dist/plugin-sdk/fetch-guard-Uhk4tySC.js +0 -156
- package/dist/plugin-sdk/image-CEBZ8sRh.js +0 -2314
- package/dist/plugin-sdk/image-ops-Dye2ozSZ.js +0 -584
- package/dist/plugin-sdk/image-runtime-CabQkSZn.js +0 -25
- package/dist/plugin-sdk/ir-CruONUHn.js +0 -1296
- package/dist/plugin-sdk/local-roots-BYSlR-at.js +0 -186
- package/dist/plugin-sdk/logger-C_vnHQg2.js +0 -1163
- package/dist/plugin-sdk/login-bdsdinOj.js +0 -57
- package/dist/plugin-sdk/login-qr-BYAvyop9.js +0 -320
- package/dist/plugin-sdk/manager-AOQxrU7P.js +0 -3929
- package/dist/plugin-sdk/manager-runtime-CijO5giX.js +0 -15
- package/dist/plugin-sdk/outbound-FdiP5J7H.js +0 -212
- package/dist/plugin-sdk/outbound-attachment-DZphVgq7.js +0 -19
- package/dist/plugin-sdk/paths-ICLB349I.js +0 -166
- package/dist/plugin-sdk/pi-embedded-helpers-tHjfJzH4.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-DQV-B6bn.js +0 -134
- package/dist/plugin-sdk/pi-model-discovery-runtime-MJmZTIax.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-7DPjo7Ey.js +0 -354
- package/dist/plugin-sdk/plugins-BQHnLb2v.js +0 -864
- package/dist/plugin-sdk/proxy-fetch-BpMu-RpD.js +0 -38
- package/dist/plugin-sdk/pw-ai-DAMRoo8O.js +0 -1938
- package/dist/plugin-sdk/query-expansion-CuaTloKx.js +0 -1011
- package/dist/plugin-sdk/redact-BznLQ6I5.js +0 -319
- package/dist/plugin-sdk/reply-Cx_4UtvJ.js +0 -100211
- package/dist/plugin-sdk/resolve-outbound-target-BDjhohcf.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-BcPenaKJ.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DqezqoLI.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Dgnv_x4o.js +0 -19
- package/dist/plugin-sdk/send-BWz-g7wE.js +0 -540
- package/dist/plugin-sdk/send-DB9pUM0k.js +0 -414
- package/dist/plugin-sdk/send-QPap4wBN.js +0 -503
- package/dist/plugin-sdk/send-gz4Lq5tL.js +0 -2587
- package/dist/plugin-sdk/send-tyEtWeMX.js +0 -3135
- package/dist/plugin-sdk/session-88GgvJcW.js +0 -169
- package/dist/plugin-sdk/skill-commands-ClwX3DoE.js +0 -353
- package/dist/plugin-sdk/skills-B2FPl9ca.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-CGAfyDkY.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DN7TWAWh.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-C4i9B-79.js +0 -16
- package/dist/plugin-sdk/ssrf-D3NQgatK.js +0 -202
- package/dist/plugin-sdk/store-CDmdRGxP.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-CprGCjIU.js +0 -52
- package/dist/plugin-sdk/tables-j2CMtAoX.js +0 -55
- package/dist/plugin-sdk/thinking-Dh6B0ZhB.js +0 -1206
- package/dist/plugin-sdk/tokens-PExiD061.js +0 -52
- package/dist/plugin-sdk/tool-images-D7ah30xm.js +0 -274
- package/dist/plugin-sdk/web-D9wJfMr_.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-BjarJorO.js +0 -80
- package/dist/qmd-manager-oU4X85hj.js +0 -1452
- package/dist/register.configure-MduIRRMt.js +0 -162
- package/dist/runtime-whatsapp-outbound.runtime-CNnM5MdE.js +0 -28
- package/dist/slash-dispatch.runtime-D5Cl7j1v.js +0 -110
- package/dist/slash-skill-commands.runtime-DnvHGcVS.js +0 -29
- package/dist/subagent-registry-runtime-LH0OBaWN.js +0 -110
- package/dist/target-errors-HJQQHC3B.js +0 -195
- package/dist/web-DxHq9RWt.js +0 -114
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { _ as escapeRegExp } from "./logger-C_vnHQg2.js";
|
|
2
|
-
|
|
3
|
-
//#region src/auto-reply/tokens.ts
|
|
4
|
-
const HEARTBEAT_TOKEN = "HEARTBEAT_OK";
|
|
5
|
-
const SILENT_REPLY_TOKEN = "NO_REPLY";
|
|
6
|
-
const silentExactRegexByToken = /* @__PURE__ */ new Map();
|
|
7
|
-
const silentTrailingRegexByToken = /* @__PURE__ */ new Map();
|
|
8
|
-
function getSilentExactRegex(token) {
|
|
9
|
-
const cached = silentExactRegexByToken.get(token);
|
|
10
|
-
if (cached) return cached;
|
|
11
|
-
const escaped = escapeRegExp(token);
|
|
12
|
-
const regex = new RegExp(`^\\s*${escaped}\\s*$`);
|
|
13
|
-
silentExactRegexByToken.set(token, regex);
|
|
14
|
-
return regex;
|
|
15
|
-
}
|
|
16
|
-
function getSilentTrailingRegex(token) {
|
|
17
|
-
const cached = silentTrailingRegexByToken.get(token);
|
|
18
|
-
if (cached) return cached;
|
|
19
|
-
const escaped = escapeRegExp(token);
|
|
20
|
-
const regex = new RegExp(`(?:^|\\s+|\\*+)${escaped}\\s*$`);
|
|
21
|
-
silentTrailingRegexByToken.set(token, regex);
|
|
22
|
-
return regex;
|
|
23
|
-
}
|
|
24
|
-
function isSilentReplyText(text, token = SILENT_REPLY_TOKEN) {
|
|
25
|
-
if (!text) return false;
|
|
26
|
-
return getSilentExactRegex(token).test(text);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Strip a trailing silent reply token from mixed-content text.
|
|
30
|
-
* Returns the remaining text with the token removed (trimmed).
|
|
31
|
-
* If the result is empty, the entire message should be treated as silent.
|
|
32
|
-
*/
|
|
33
|
-
function stripSilentToken(text, token = SILENT_REPLY_TOKEN) {
|
|
34
|
-
return text.replace(getSilentTrailingRegex(token), "").trim();
|
|
35
|
-
}
|
|
36
|
-
function isSilentReplyPrefixText(text, token = SILENT_REPLY_TOKEN) {
|
|
37
|
-
if (!text) return false;
|
|
38
|
-
const trimmed = text.trimStart();
|
|
39
|
-
if (!trimmed) return false;
|
|
40
|
-
if (trimmed !== trimmed.toUpperCase()) return false;
|
|
41
|
-
const normalized = trimmed.toUpperCase();
|
|
42
|
-
if (!normalized) return false;
|
|
43
|
-
if (normalized.length < 2) return false;
|
|
44
|
-
if (/[^A-Z_]/.test(normalized)) return false;
|
|
45
|
-
const tokenUpper = token.toUpperCase();
|
|
46
|
-
if (!tokenUpper.startsWith(normalized)) return false;
|
|
47
|
-
if (normalized.includes("_")) return true;
|
|
48
|
-
return tokenUpper === SILENT_REPLY_TOKEN && normalized === "NO";
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
export { stripSilentToken as a, isSilentReplyText as i, SILENT_REPLY_TOKEN as n, isSilentReplyPrefixText as r, HEARTBEAT_TOKEN as t };
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { a as createSubsystemLogger } from "./logger-C_vnHQg2.js";
|
|
2
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-Dye2ozSZ.js";
|
|
3
|
-
|
|
4
|
-
//#region src/media/base64.ts
|
|
5
|
-
function estimateBase64DecodedBytes(base64) {
|
|
6
|
-
let effectiveLen = 0;
|
|
7
|
-
for (let i = 0; i < base64.length; i += 1) {
|
|
8
|
-
if (base64.charCodeAt(i) <= 32) continue;
|
|
9
|
-
effectiveLen += 1;
|
|
10
|
-
}
|
|
11
|
-
if (effectiveLen === 0) return 0;
|
|
12
|
-
let padding = 0;
|
|
13
|
-
let end = base64.length - 1;
|
|
14
|
-
while (end >= 0 && base64.charCodeAt(end) <= 32) end -= 1;
|
|
15
|
-
if (end >= 0 && base64[end] === "=") {
|
|
16
|
-
padding = 1;
|
|
17
|
-
end -= 1;
|
|
18
|
-
while (end >= 0 && base64.charCodeAt(end) <= 32) end -= 1;
|
|
19
|
-
if (end >= 0 && base64[end] === "=") padding = 2;
|
|
20
|
-
}
|
|
21
|
-
const estimated = Math.floor(effectiveLen * 3 / 4) - padding;
|
|
22
|
-
return Math.max(0, estimated);
|
|
23
|
-
}
|
|
24
|
-
const BASE64_CHARS_RE = /^[A-Za-z0-9+/]+={0,2}$/;
|
|
25
|
-
/**
|
|
26
|
-
* Normalize and validate a base64 string.
|
|
27
|
-
* Returns canonical base64 (no whitespace) or undefined when invalid.
|
|
28
|
-
*/
|
|
29
|
-
function canonicalizeBase64(base64) {
|
|
30
|
-
const cleaned = base64.replace(/\s+/g, "");
|
|
31
|
-
if (!cleaned || cleaned.length % 4 !== 0 || !BASE64_CHARS_RE.test(cleaned)) return;
|
|
32
|
-
return cleaned;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/agents/image-sanitization.ts
|
|
37
|
-
const DEFAULT_IMAGE_MAX_DIMENSION_PX = 1200;
|
|
38
|
-
const DEFAULT_IMAGE_MAX_BYTES = 5 * 1024 * 1024;
|
|
39
|
-
function resolveImageSanitizationLimits(cfg) {
|
|
40
|
-
const configured = cfg?.agents?.defaults?.imageMaxDimensionPx;
|
|
41
|
-
if (typeof configured !== "number" || !Number.isFinite(configured)) return {};
|
|
42
|
-
return { maxDimensionPx: Math.max(1, Math.floor(configured)) };
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/agents/tool-images.ts
|
|
47
|
-
const MAX_IMAGE_DIMENSION_PX = DEFAULT_IMAGE_MAX_DIMENSION_PX;
|
|
48
|
-
const MAX_IMAGE_BYTES = DEFAULT_IMAGE_MAX_BYTES;
|
|
49
|
-
const log = createSubsystemLogger("agents/tool-images");
|
|
50
|
-
function isImageBlock(block) {
|
|
51
|
-
if (!block || typeof block !== "object") return false;
|
|
52
|
-
const rec = block;
|
|
53
|
-
return rec.type === "image" && typeof rec.data === "string" && typeof rec.mimeType === "string";
|
|
54
|
-
}
|
|
55
|
-
function isTextBlock(block) {
|
|
56
|
-
if (!block || typeof block !== "object") return false;
|
|
57
|
-
const rec = block;
|
|
58
|
-
return rec.type === "text" && typeof rec.text === "string";
|
|
59
|
-
}
|
|
60
|
-
function inferMimeTypeFromBase64(base64) {
|
|
61
|
-
const trimmed = base64.trim();
|
|
62
|
-
if (!trimmed) return;
|
|
63
|
-
if (trimmed.startsWith("/9j/")) return "image/jpeg";
|
|
64
|
-
if (trimmed.startsWith("iVBOR")) return "image/png";
|
|
65
|
-
if (trimmed.startsWith("R0lGOD")) return "image/gif";
|
|
66
|
-
}
|
|
67
|
-
function formatBytesShort(bytes) {
|
|
68
|
-
if (!Number.isFinite(bytes) || bytes < 1024) return `${Math.max(0, Math.round(bytes))}B`;
|
|
69
|
-
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)}KB`;
|
|
70
|
-
return `${(bytes / (1024 * 1024)).toFixed(2)}MB`;
|
|
71
|
-
}
|
|
72
|
-
function parseMediaPathFromText(text) {
|
|
73
|
-
for (const line of text.split(/\r?\n/u)) {
|
|
74
|
-
const trimmed = line.trim();
|
|
75
|
-
if (!trimmed.startsWith("MEDIA:")) continue;
|
|
76
|
-
const raw = trimmed.slice(6).trim();
|
|
77
|
-
if (!raw) continue;
|
|
78
|
-
return (raw.match(/^`([^`]+)`$/u)?.[1] ?? raw).trim();
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function fileNameFromPathLike(pathLike) {
|
|
82
|
-
const value = pathLike.trim();
|
|
83
|
-
if (!value) return;
|
|
84
|
-
try {
|
|
85
|
-
const candidate = new URL(value).pathname.split("/").filter(Boolean).at(-1);
|
|
86
|
-
return candidate && candidate.length > 0 ? candidate : void 0;
|
|
87
|
-
} catch {}
|
|
88
|
-
const candidate = value.replaceAll("\\", "/").split("/").filter(Boolean).at(-1);
|
|
89
|
-
return candidate && candidate.length > 0 ? candidate : void 0;
|
|
90
|
-
}
|
|
91
|
-
function inferImageFileName(params) {
|
|
92
|
-
const rec = params.block;
|
|
93
|
-
for (const key of [
|
|
94
|
-
"fileName",
|
|
95
|
-
"filename",
|
|
96
|
-
"path",
|
|
97
|
-
"url"
|
|
98
|
-
]) {
|
|
99
|
-
const raw = rec[key];
|
|
100
|
-
if (typeof raw !== "string" || raw.trim().length === 0) continue;
|
|
101
|
-
const candidate = fileNameFromPathLike(raw);
|
|
102
|
-
if (candidate) return candidate;
|
|
103
|
-
}
|
|
104
|
-
if (typeof rec.name === "string" && rec.name.trim().length > 0) return rec.name.trim();
|
|
105
|
-
if (params.mediaPathHint) {
|
|
106
|
-
const candidate = fileNameFromPathLike(params.mediaPathHint);
|
|
107
|
-
if (candidate) return candidate;
|
|
108
|
-
}
|
|
109
|
-
if (typeof params.label === "string" && params.label.startsWith("read:")) {
|
|
110
|
-
const candidate = fileNameFromPathLike(params.label.slice(5));
|
|
111
|
-
if (candidate) return candidate;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
async function resizeImageBase64IfNeeded(params) {
|
|
115
|
-
const buf = Buffer.from(params.base64, "base64");
|
|
116
|
-
const meta = await getImageMetadata(buf);
|
|
117
|
-
const width = meta?.width;
|
|
118
|
-
const height = meta?.height;
|
|
119
|
-
const overBytes = buf.byteLength > params.maxBytes;
|
|
120
|
-
const hasDimensions = typeof width === "number" && typeof height === "number";
|
|
121
|
-
const overDimensions = hasDimensions && (width > params.maxDimensionPx || height > params.maxDimensionPx);
|
|
122
|
-
if (hasDimensions && !overBytes && width <= params.maxDimensionPx && height <= params.maxDimensionPx) return {
|
|
123
|
-
base64: params.base64,
|
|
124
|
-
mimeType: params.mimeType,
|
|
125
|
-
resized: false,
|
|
126
|
-
width,
|
|
127
|
-
height
|
|
128
|
-
};
|
|
129
|
-
const maxDim = hasDimensions ? Math.max(width ?? 0, height ?? 0) : params.maxDimensionPx;
|
|
130
|
-
const sideStart = maxDim > 0 ? Math.min(params.maxDimensionPx, maxDim) : params.maxDimensionPx;
|
|
131
|
-
const sideGrid = buildImageResizeSideGrid(params.maxDimensionPx, sideStart);
|
|
132
|
-
let smallest = null;
|
|
133
|
-
for (const side of sideGrid) for (const quality of IMAGE_REDUCE_QUALITY_STEPS) {
|
|
134
|
-
const out = await resizeToJpeg({
|
|
135
|
-
buffer: buf,
|
|
136
|
-
maxSide: side,
|
|
137
|
-
quality,
|
|
138
|
-
withoutEnlargement: true
|
|
139
|
-
});
|
|
140
|
-
if (!smallest || out.byteLength < smallest.size) smallest = {
|
|
141
|
-
buffer: out,
|
|
142
|
-
size: out.byteLength
|
|
143
|
-
};
|
|
144
|
-
if (out.byteLength <= params.maxBytes) {
|
|
145
|
-
const sourcePixels = typeof width === "number" && typeof height === "number" ? `${width}x${height}px` : "unknown";
|
|
146
|
-
const sourceWithFile = params.fileName ? `${params.fileName} ${sourcePixels}` : sourcePixels;
|
|
147
|
-
const byteReductionPct = buf.byteLength > 0 ? Number(((buf.byteLength - out.byteLength) / buf.byteLength * 100).toFixed(1)) : 0;
|
|
148
|
-
log.info(`Image resized to fit limits: ${sourceWithFile} ${formatBytesShort(buf.byteLength)} -> ${formatBytesShort(out.byteLength)} (-${byteReductionPct}%)`, {
|
|
149
|
-
label: params.label,
|
|
150
|
-
fileName: params.fileName,
|
|
151
|
-
sourceMimeType: params.mimeType,
|
|
152
|
-
sourceWidth: width,
|
|
153
|
-
sourceHeight: height,
|
|
154
|
-
sourceBytes: buf.byteLength,
|
|
155
|
-
maxBytes: params.maxBytes,
|
|
156
|
-
maxDimensionPx: params.maxDimensionPx,
|
|
157
|
-
triggerOverBytes: overBytes,
|
|
158
|
-
triggerOverDimensions: overDimensions,
|
|
159
|
-
outputMimeType: "image/jpeg",
|
|
160
|
-
outputBytes: out.byteLength,
|
|
161
|
-
outputQuality: quality,
|
|
162
|
-
outputMaxSide: side,
|
|
163
|
-
byteReductionPct
|
|
164
|
-
});
|
|
165
|
-
return {
|
|
166
|
-
base64: out.toString("base64"),
|
|
167
|
-
mimeType: "image/jpeg",
|
|
168
|
-
resized: true,
|
|
169
|
-
width,
|
|
170
|
-
height
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
const best = smallest?.buffer ?? buf;
|
|
175
|
-
const maxMb = (params.maxBytes / (1024 * 1024)).toFixed(0);
|
|
176
|
-
const gotMb = (best.byteLength / (1024 * 1024)).toFixed(2);
|
|
177
|
-
const sourcePixels = typeof width === "number" && typeof height === "number" ? `${width}x${height}px` : "unknown";
|
|
178
|
-
const sourceWithFile = params.fileName ? `${params.fileName} ${sourcePixels}` : sourcePixels;
|
|
179
|
-
log.warn(`Image resize failed to fit limits: ${sourceWithFile} best=${formatBytesShort(best.byteLength)} limit=${formatBytesShort(params.maxBytes)}`, {
|
|
180
|
-
label: params.label,
|
|
181
|
-
fileName: params.fileName,
|
|
182
|
-
sourceMimeType: params.mimeType,
|
|
183
|
-
sourceWidth: width,
|
|
184
|
-
sourceHeight: height,
|
|
185
|
-
sourceBytes: buf.byteLength,
|
|
186
|
-
maxDimensionPx: params.maxDimensionPx,
|
|
187
|
-
maxBytes: params.maxBytes,
|
|
188
|
-
smallestCandidateBytes: best.byteLength,
|
|
189
|
-
triggerOverBytes: overBytes,
|
|
190
|
-
triggerOverDimensions: overDimensions
|
|
191
|
-
});
|
|
192
|
-
throw new Error(`Image could not be reduced below ${maxMb}MB (got ${gotMb}MB)`);
|
|
193
|
-
}
|
|
194
|
-
async function sanitizeContentBlocksImages(blocks, label, opts = {}) {
|
|
195
|
-
const maxDimensionPx = Math.max(opts.maxDimensionPx ?? MAX_IMAGE_DIMENSION_PX, 1);
|
|
196
|
-
const maxBytes = Math.max(opts.maxBytes ?? MAX_IMAGE_BYTES, 1);
|
|
197
|
-
const out = [];
|
|
198
|
-
let mediaPathHint;
|
|
199
|
-
for (const block of blocks) {
|
|
200
|
-
if (isTextBlock(block)) {
|
|
201
|
-
const mediaPath = parseMediaPathFromText(block.text);
|
|
202
|
-
if (mediaPath) mediaPathHint = mediaPath;
|
|
203
|
-
}
|
|
204
|
-
if (!isImageBlock(block)) {
|
|
205
|
-
out.push(block);
|
|
206
|
-
continue;
|
|
207
|
-
}
|
|
208
|
-
const data = block.data.trim();
|
|
209
|
-
if (!data) {
|
|
210
|
-
out.push({
|
|
211
|
-
type: "text",
|
|
212
|
-
text: `[${label}] omitted empty image payload`
|
|
213
|
-
});
|
|
214
|
-
continue;
|
|
215
|
-
}
|
|
216
|
-
const canonicalData = canonicalizeBase64(data);
|
|
217
|
-
if (!canonicalData) {
|
|
218
|
-
out.push({
|
|
219
|
-
type: "text",
|
|
220
|
-
text: `[${label}] omitted image payload: invalid base64`
|
|
221
|
-
});
|
|
222
|
-
continue;
|
|
223
|
-
}
|
|
224
|
-
try {
|
|
225
|
-
const mimeType = inferMimeTypeFromBase64(canonicalData) ?? block.mimeType;
|
|
226
|
-
const resized = await resizeImageBase64IfNeeded({
|
|
227
|
-
base64: canonicalData,
|
|
228
|
-
mimeType,
|
|
229
|
-
maxDimensionPx,
|
|
230
|
-
maxBytes,
|
|
231
|
-
label,
|
|
232
|
-
fileName: inferImageFileName({
|
|
233
|
-
block,
|
|
234
|
-
label,
|
|
235
|
-
mediaPathHint
|
|
236
|
-
})
|
|
237
|
-
});
|
|
238
|
-
out.push({
|
|
239
|
-
...block,
|
|
240
|
-
data: resized.base64,
|
|
241
|
-
mimeType: resized.resized ? resized.mimeType : mimeType
|
|
242
|
-
});
|
|
243
|
-
} catch (err) {
|
|
244
|
-
out.push({
|
|
245
|
-
type: "text",
|
|
246
|
-
text: `[${label}] omitted image payload: ${String(err)}`
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
return out;
|
|
251
|
-
}
|
|
252
|
-
async function sanitizeImageBlocks(images, label, opts = {}) {
|
|
253
|
-
if (images.length === 0) return {
|
|
254
|
-
images,
|
|
255
|
-
dropped: 0
|
|
256
|
-
};
|
|
257
|
-
const next = (await sanitizeContentBlocksImages(images, label, opts)).filter(isImageBlock);
|
|
258
|
-
return {
|
|
259
|
-
images: next,
|
|
260
|
-
dropped: Math.max(0, images.length - next.length)
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
async function sanitizeToolResultImages(result, label, opts = {}) {
|
|
264
|
-
const content = Array.isArray(result.content) ? result.content : [];
|
|
265
|
-
if (!content.some((b) => isImageBlock(b) || isTextBlock(b))) return result;
|
|
266
|
-
const next = await sanitizeContentBlocksImages(content, label, opts);
|
|
267
|
-
return {
|
|
268
|
-
...result,
|
|
269
|
-
content: next
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
//#endregion
|
|
274
|
-
export { canonicalizeBase64 as a, resolveImageSanitizationLimits as i, sanitizeImageBlocks as n, estimateBase64DecodedBytes as o, sanitizeToolResultImages as r, sanitizeContentBlocksImages as t };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-BcPenaKJ.js";
|
|
2
|
-
import { _ as webAuthExists, c as logWebSelfId, d as pickWebChannel, o as WA_WEB_AUTH_DIR } from "./accounts-Bl6fp04N.js";
|
|
3
|
-
import "./reply-Cx_4UtvJ.js";
|
|
4
|
-
import "./paths-BEfQqXwE.js";
|
|
5
|
-
import "./github-copilot-token-BCc3snHh.js";
|
|
6
|
-
import "./config-Cyo0rHBx.js";
|
|
7
|
-
import "./logger-C_vnHQg2.js";
|
|
8
|
-
import "./thinking-Dh6B0ZhB.js";
|
|
9
|
-
import "./image-ops-Dye2ozSZ.js";
|
|
10
|
-
import "./pi-embedded-helpers-tHjfJzH4.js";
|
|
11
|
-
import "./plugins-BQHnLb2v.js";
|
|
12
|
-
import "./accounts-B9lBByhz.js";
|
|
13
|
-
import "./accounts-CQWq_42g.js";
|
|
14
|
-
import "./send-tyEtWeMX.js";
|
|
15
|
-
import "./paths-ICLB349I.js";
|
|
16
|
-
import "./fetch-J9xZaNrT.js";
|
|
17
|
-
import "./redact-BznLQ6I5.js";
|
|
18
|
-
import "./errors-DdSHGcgi.js";
|
|
19
|
-
import "./channel-activity-ChRCQNSc.js";
|
|
20
|
-
import "./path-alias-guards-CaCBZRHc.js";
|
|
21
|
-
import "./fs-safe-DRACrdwg.js";
|
|
22
|
-
import "./ssrf-D3NQgatK.js";
|
|
23
|
-
import "./fetch-guard-Uhk4tySC.js";
|
|
24
|
-
import "./local-roots-BYSlR-at.js";
|
|
25
|
-
import "./ir-CruONUHn.js";
|
|
26
|
-
import "./render-A563BsDG.js";
|
|
27
|
-
import "./tables-j2CMtAoX.js";
|
|
28
|
-
import "./send-QPap4wBN.js";
|
|
29
|
-
import "./send-gz4Lq5tL.js";
|
|
30
|
-
import "./tool-images-D7ah30xm.js";
|
|
31
|
-
import "./target-errors-Hoj2qirZ.js";
|
|
32
|
-
import "./send-DB9pUM0k.js";
|
|
33
|
-
import "./audio-transcription-runner-Bndij5Q1.js";
|
|
34
|
-
import "./tokens-PExiD061.js";
|
|
35
|
-
import "./skill-commands-ClwX3DoE.js";
|
|
36
|
-
import "./skills-B2FPl9ca.js";
|
|
37
|
-
import "./chrome-DNpRdbZ1.js";
|
|
38
|
-
import "./deliver-mBruQPRt.js";
|
|
39
|
-
import "./diagnostic-B3ZoSFoM.js";
|
|
40
|
-
import "./store-CDmdRGxP.js";
|
|
41
|
-
import "./commands-registry-Bq1HqcJU.js";
|
|
42
|
-
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-CfZNFYCV.js";
|
|
43
|
-
import "./image-CEBZ8sRh.js";
|
|
44
|
-
import "./api-key-rotation-DSOB99GV.js";
|
|
45
|
-
import "./proxy-fetch-BpMu-RpD.js";
|
|
46
|
-
import "./pi-model-discovery-DQV-B6bn.js";
|
|
47
|
-
import "./send-BWz-g7wE.js";
|
|
48
|
-
import "./outbound-attachment-DZphVgq7.js";
|
|
49
|
-
import "./proxy-DNZXaj7f.js";
|
|
50
|
-
import "./manager-AOQxrU7P.js";
|
|
51
|
-
import "./query-expansion-CuaTloKx.js";
|
|
52
|
-
import { t as sendMessageWhatsApp } from "./outbound-FdiP5J7H.js";
|
|
53
|
-
import { i as waitForWaConnection, t as createWaSocket } from "./session-88GgvJcW.js";
|
|
54
|
-
import { t as loginWeb } from "./login-bdsdinOj.js";
|
|
55
|
-
|
|
56
|
-
export { WA_WEB_AUTH_DIR, createWaSocket, logWebSelfId, loginWeb, monitorWebChannel, monitorWebInbox, pickWebChannel, sendMessageWhatsApp, waitForWaConnection, webAuthExists };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-BcPenaKJ.js";
|
|
2
|
-
import { i as resolveWhatsAppAccount } from "./accounts-Bl6fp04N.js";
|
|
3
|
-
import "./paths-BEfQqXwE.js";
|
|
4
|
-
import "./github-copilot-token-BCc3snHh.js";
|
|
5
|
-
import "./config-Cyo0rHBx.js";
|
|
6
|
-
import "./logger-C_vnHQg2.js";
|
|
7
|
-
import "./image-ops-Dye2ozSZ.js";
|
|
8
|
-
import "./plugins-BQHnLb2v.js";
|
|
9
|
-
import "./path-alias-guards-CaCBZRHc.js";
|
|
10
|
-
import "./fs-safe-DRACrdwg.js";
|
|
11
|
-
import "./ssrf-D3NQgatK.js";
|
|
12
|
-
import "./fetch-guard-Uhk4tySC.js";
|
|
13
|
-
import "./local-roots-BYSlR-at.js";
|
|
14
|
-
import "./ir-CruONUHn.js";
|
|
15
|
-
import "./render-A563BsDG.js";
|
|
16
|
-
import "./tables-j2CMtAoX.js";
|
|
17
|
-
import "./tool-images-D7ah30xm.js";
|
|
18
|
-
import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, o as createActionGate } from "./target-errors-Hoj2qirZ.js";
|
|
19
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BDjhohcf.js";
|
|
20
|
-
import { r as sendReactionWhatsApp } from "./outbound-FdiP5J7H.js";
|
|
21
|
-
|
|
22
|
-
//#region src/agents/tools/whatsapp-target-auth.ts
|
|
23
|
-
function resolveAuthorizedWhatsAppOutboundTarget(params) {
|
|
24
|
-
const account = resolveWhatsAppAccount({
|
|
25
|
-
cfg: params.cfg,
|
|
26
|
-
accountId: params.accountId
|
|
27
|
-
});
|
|
28
|
-
const resolution = resolveWhatsAppOutboundTarget({
|
|
29
|
-
to: params.chatJid,
|
|
30
|
-
allowFrom: account.allowFrom ?? [],
|
|
31
|
-
mode: "implicit"
|
|
32
|
-
});
|
|
33
|
-
if (!resolution.ok) throw new ToolAuthorizationError(`WhatsApp ${params.actionLabel} blocked: chatJid "${params.chatJid}" is not in the configured allowFrom list for account "${account.accountId}".`);
|
|
34
|
-
return {
|
|
35
|
-
to: resolution.to,
|
|
36
|
-
accountId: account.accountId
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/agents/tools/whatsapp-actions.ts
|
|
42
|
-
async function handleWhatsAppAction(params, cfg) {
|
|
43
|
-
const action = readStringParam(params, "action", { required: true });
|
|
44
|
-
const isActionEnabled = createActionGate(cfg.channels?.whatsapp?.actions);
|
|
45
|
-
if (action === "react") {
|
|
46
|
-
if (!isActionEnabled("reactions")) throw new Error("WhatsApp reactions are disabled.");
|
|
47
|
-
const chatJid = readStringParam(params, "chatJid", { required: true });
|
|
48
|
-
const messageId = readStringParam(params, "messageId", { required: true });
|
|
49
|
-
const { emoji, remove, isEmpty } = readReactionParams(params, { removeErrorMessage: "Emoji is required to remove a WhatsApp reaction." });
|
|
50
|
-
const participant = readStringParam(params, "participant");
|
|
51
|
-
const accountId = readStringParam(params, "accountId");
|
|
52
|
-
const fromMeRaw = params.fromMe;
|
|
53
|
-
const fromMe = typeof fromMeRaw === "boolean" ? fromMeRaw : void 0;
|
|
54
|
-
const resolved = resolveAuthorizedWhatsAppOutboundTarget({
|
|
55
|
-
cfg,
|
|
56
|
-
chatJid,
|
|
57
|
-
accountId,
|
|
58
|
-
actionLabel: "reaction"
|
|
59
|
-
});
|
|
60
|
-
const resolvedEmoji = remove ? "" : emoji;
|
|
61
|
-
await sendReactionWhatsApp(resolved.to, messageId, resolvedEmoji, {
|
|
62
|
-
verbose: false,
|
|
63
|
-
fromMe,
|
|
64
|
-
participant: participant ?? void 0,
|
|
65
|
-
accountId: resolved.accountId
|
|
66
|
-
});
|
|
67
|
-
if (!remove && !isEmpty) return jsonResult({
|
|
68
|
-
ok: true,
|
|
69
|
-
added: emoji
|
|
70
|
-
});
|
|
71
|
-
return jsonResult({
|
|
72
|
-
ok: true,
|
|
73
|
-
removed: true
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
throw new Error(`Unsupported WhatsApp action: ${action}`);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
//#endregion
|
|
80
|
-
export { handleWhatsAppAction };
|