remoteclaw 0.1.0-next.4891ef1 → 0.1.0-next.4bacc0a
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/README.md +2 -2
- package/dist/accounts-B1M3fOxL.js +272 -0
- package/dist/accounts-B2W5oxhg.js +205 -0
- package/dist/accounts-C-y2axYg.js +206 -0
- package/dist/accounts-CIVjmTg9.js +270 -0
- package/dist/accounts-D1awQXKu.js +36 -0
- package/dist/accounts-DHkGVGUR.js +36 -0
- package/dist/accounts-DxiA8O82.js +32 -0
- package/dist/accounts-XFgBY644.js +47 -0
- package/dist/accounts-_ZuNC5bz.js +47 -0
- package/dist/ack-reactions-DGb1BV3H.js +621 -0
- package/dist/ack-reactions-tQSpuqK2.js +621 -0
- package/dist/acp-cli-DIA_3vQZ.js +1311 -0
- package/dist/acp-cli-zqbhD1DX.js +1316 -0
- package/dist/active-listener--jrUO-8L.js +37 -0
- package/dist/active-listener-DtU9K0MR.js +37 -0
- package/dist/agent-4FmmSYRv.js +687 -0
- package/dist/agent-BCI6iuIY.js +688 -0
- package/dist/agent-helpers-5F0tdxud.js +400 -0
- package/dist/agent-scope-Bh9nmtg4.js +113 -0
- package/dist/agent-scope-DTb3Ch2n.js +115 -0
- package/dist/agents-CNLkk6G9.js +769 -0
- package/dist/agents.config-BNWmD0Bu.js +106 -0
- package/dist/agents.config-BhJJYzzq.js +106 -0
- package/dist/ansi-DtaiOnt1.js +107 -0
- package/dist/audio-ClIuKwkl.js +43 -0
- package/dist/audio-DqlIYYTb.js +43 -0
- package/dist/audit-hDhHs3w_.js +3089 -0
- package/dist/audit-qqKaPpLO.js +3089 -0
- package/dist/auth-B-QK8JhI.js +315 -0
- package/dist/auth-C1zx1O24.js +314 -0
- package/dist/auth-DDmNYVMW.js +448 -0
- package/dist/auth-DH1wEw0w.js +448 -0
- package/dist/banner-BclrJq3n.js +294 -0
- package/dist/binaries-QJ-UTgL-.js +13 -0
- package/dist/bindings-C3lpuVzp.js +69 -0
- package/dist/bindings-C_CjV_Hn.js +69 -0
- package/dist/bonjour-discovery-AQMJqY4V.js +378 -0
- package/dist/bonjour-discovery-BLcPWHFJ.js +378 -0
- package/dist/boot/handler.js +17 -33
- package/dist/browser-cli-CC6SnllN.js +1690 -0
- package/dist/browser-cli-DYJ4S4CO.js +1694 -0
- package/dist/build-info.json +3 -3
- package/dist/call-CSmbiFMC.js +518 -0
- package/dist/call-D8cxT6bG.js +517 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/catalog-ByMaJFz3.js +186 -0
- package/dist/catalog-CE_wM5aU.js +186 -0
- package/dist/channel-account-context-BHIy71Yh.js +133 -0
- package/dist/channel-account-context-DXU_-EkJ.js +133 -0
- package/dist/channel-activity-BatlvP_U.js +292 -0
- package/dist/channel-activity-BhT7NQ_v.js +94 -0
- package/dist/channel-activity-CvjEwpJz.js +94 -0
- package/dist/channel-options-C8AZY6VZ.js +32 -0
- package/dist/channel-options-tNKIMQUN.js +33 -0
- package/dist/channel-selection-70krtmbE.js +51 -0
- package/dist/channel-selection-JAPuFQZ8.js +51 -0
- package/dist/channel-web-CrOnNg1k.js +2134 -0
- package/dist/channel-web-DE6OD55R.js +2132 -0
- package/dist/channels-cli-C8BNPigj.js +1436 -0
- package/dist/channels-cli-DIzl_k_-.js +1440 -0
- package/dist/channels-status-issues-D3YiR8sv.js +18 -0
- package/dist/channels-status-issues-DbIh1oHa.js +18 -0
- package/dist/chat-envelope-AJFUAuBM.js +248 -0
- package/dist/chat-envelope-BrfcPlDM.js +248 -0
- package/dist/chrome-BeaTqYN1.js +1732 -0
- package/dist/chrome-BzSuZRjW.js +1733 -0
- package/dist/chunk-BAMyFYtF.js +341 -0
- package/dist/chunk-BzVoFUZL.js +341 -0
- package/dist/clack-prompter-C6mBTOzE.js +122 -0
- package/dist/clack-prompter-DKcYqv3o.js +121 -0
- package/dist/cleanup-utils-Cb-leJcy.js +94 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-B6AGF6fr.js +131 -0
- package/dist/cli-C9EbF3KP.js +135 -0
- package/dist/client-1TPQCsEe.js +2311 -0
- package/dist/client-CBpe99dr.js +2311 -0
- package/dist/clipboard-A06eV_5C.js +31 -0
- package/dist/clipboard-DQBl3coj.js +31 -0
- package/dist/command-format-BiiNHkWG.js +18 -0
- package/dist/command-format-Dntg_tnC.js +32 -0
- package/dist/command-logger/handler.js +1 -1
- package/dist/command-registry-D40POIzZ.js +215 -0
- package/dist/commands-C4DkI87R.js +41 -0
- package/dist/commands-XQdmoIQH.js +41 -0
- package/dist/commands-registry-BCQY2YF6.js +888 -0
- package/dist/commands-registry-vJAudfjZ.js +887 -0
- package/dist/common-CBefYisq.js +156 -0
- package/dist/common-D4fL3S2m.js +156 -0
- package/dist/completion-cli-B6m6jZLL.js +452 -0
- package/dist/completion-cli-BiCPR2lp.js +452 -0
- package/dist/config-BGBdHM4d.js +3317 -0
- package/dist/config-D5GvY-FV.js +3315 -0
- package/dist/config-cli--G23lpVK.js +247 -0
- package/dist/config-cli-OZNsWBjq.js +243 -0
- package/dist/config-guard-Bo2vbE5h.js +92 -0
- package/dist/config-guard-CXw7C7pK.js +75 -0
- package/dist/config-validation-CrpIHCqu.js +18 -0
- package/dist/config-validation-De89UINd.js +18 -0
- package/dist/configure-D-9ALyyU.js +885 -0
- package/dist/configure-DOrV1lTP.js +883 -0
- package/dist/constants-BBVTjb1j.js +75 -0
- package/dist/constants-PMRtHBHU.js +75 -0
- package/dist/control-auth-BM4aF05Y.js +397 -0
- package/dist/control-auth-DA5uJYRx.js +397 -0
- package/dist/control-ui/assets/index-DdiU_ccM.css +1 -0
- package/dist/control-ui/assets/index-kVUYi64u.js +7723 -0
- package/dist/control-ui/assets/index-kVUYi64u.js.map +1 -0
- package/dist/control-ui/index.html +2 -2
- package/dist/control-ui-assets-DO1L6M0S.js +186 -0
- package/dist/control-ui-assets-S_TLo6Fs.js +186 -0
- package/dist/conversation-label-CMOfgCVl.js +36 -0
- package/dist/cron-cli-BiFPx-xh.js +495 -0
- package/dist/cron-cli-Dzl6yNu1.js +499 -0
- package/dist/daemon-cli-DE7uXQlE.js +735 -0
- package/dist/daemon-cli-DRu7T7Wm.js +737 -0
- package/dist/daemon-cli.js +130 -1115
- package/dist/daemon-install-LufHc-Sn.js +60 -0
- package/dist/daemon-install-WEBvqVOj.js +56 -0
- package/dist/daemon-install-helpers-4BLEBjpg.js +504 -0
- package/dist/daemon-install-helpers-DVr51zvE.js +504 -0
- package/dist/deliver-DbewpOK8.js +481 -0
- package/dist/deliver-wEMkZIkx.js +481 -0
- package/dist/delivery-queue-BDvalA10.js +244 -0
- package/dist/delivery-queue-BLMWPoKl.js +244 -0
- package/dist/devices-cli-D2LYfqmh.js +319 -0
- package/dist/devices-cli-VpehpAt7.js +323 -0
- package/dist/diagnostics-BzzhTQzK.js +35 -0
- package/dist/diagnostics-DILtxtcE.js +35 -0
- package/dist/directory-cli-CEjNMMa7.js +221 -0
- package/dist/directory-cli-Dgg_Ojwe.js +225 -0
- package/dist/dispatcher-BfckuKGc.js +174 -0
- package/dist/dispatcher-DgTSz24n.js +173 -0
- package/dist/dm-policy-shared-BmeH1dAT.js +22 -0
- package/dist/dm-policy-shared-CwrtJe4S.js +22 -0
- package/dist/dns-cli-CEvpe4Wj.js +199 -0
- package/dist/dns-cli-CwyJSYuY.js +203 -0
- package/dist/dock-B11SgsLw.js +907 -0
- package/dist/dock-CfDQ4NG5.js +906 -0
- package/dist/doctor-completion-7E09j_Hn.js +92 -0
- package/dist/doctor-completion-84DD6M4A.js +92 -0
- package/dist/doctor-config-flow-DLnbRmI3.js +979 -0
- package/dist/doctor-config-flow-hVMD0o-U.js +978 -0
- package/dist/enable-C3I9dWel.js +59 -0
- package/dist/enable-DnwKeWnR.js +59 -0
- package/dist/entry.js +62 -6
- package/dist/env-DyyqmxSM.js +60 -0
- package/dist/env-vars-CD2_baIP.js +43 -0
- package/dist/env-vars-a7S70ba7.js +43 -0
- package/dist/errors-0dfGxeYQ.js +35 -0
- package/dist/errors-C1kDByVU.js +35 -0
- package/dist/exec-CAk1dxq_.js +164 -0
- package/dist/exec-epNpA1aU.js +164 -0
- package/dist/extensionAPI.js +391 -1163
- package/dist/fetch-BMQq41sB.js +281 -0
- package/dist/fetch-Cky99wYB.js +281 -0
- package/dist/fetch-D3tw4B4n.js +67 -0
- package/dist/fetch-DTsU2XnC.js +67 -0
- package/dist/fetch-x76dXepM.js +67 -0
- package/dist/file-lock-DWH0TfVu.js +107 -0
- package/dist/file-lock-DXW9h9ek.js +107 -0
- package/dist/fs-safe-BjSd07M4.js +115 -0
- package/dist/fs-safe-aWIhCWlb.js +125 -0
- package/dist/gateway-cli-CP8YfTYU.js +24131 -0
- package/dist/gateway-cli-zU67QCU0.js +24127 -0
- package/dist/gateway-rpc-D-eafbv6.js +28 -0
- package/dist/gateway-rpc-DSdwBDFr.js +28 -0
- package/dist/gmail-setup-utils-CKyh29_R.js +422 -0
- package/dist/gmail-setup-utils-DquflkMR.js +423 -0
- package/dist/health-Ca8k3XiI.js +1414 -0
- package/dist/health-Srr0N8FD.js +1417 -0
- package/dist/health-format-BE5TK5bs.js +28 -0
- package/dist/heartbeat-visibility-C4A-YBzj.js +125 -0
- package/dist/heartbeat-visibility-DQPfjB5k.js +125 -0
- package/dist/help-format-D3JhWp1E.js +17 -0
- package/dist/helpers-DAEoFkbn.js +10 -0
- package/dist/hook-runner-global-BavufFlA.js +527 -0
- package/dist/hooks-cli-CdH1id3A.js +1221 -0
- package/dist/hooks-cli-CkuAEOko.js +1217 -0
- package/dist/host-env-security-BGibnCbS.js +106 -0
- package/dist/host-env-security-axRnIi8d.js +106 -0
- package/dist/image-ops-CX41n0v5.js +354 -0
- package/dist/image-ops-DSL3eFfQ.js +354 -0
- package/dist/import-BhNvnEH8.js +606 -0
- package/dist/import-BjigZath.js +604 -0
- package/dist/inbound-context-Cuu0thCw.js +68 -0
- package/dist/index.js +133 -106
- package/dist/inspect-BEpFbi0c.js +286 -0
- package/dist/inspect-BeNNpWna.js +286 -0
- package/dist/installs-B-8Ozx8_.js +319 -0
- package/dist/installs-CSc5pkvH.js +319 -0
- package/dist/ipv4-DNo9AFDu.js +46 -0
- package/dist/ipv4-VfoVR5uR.js +46 -0
- package/dist/ir-DrtSug8w.js +972 -0
- package/dist/lifecycle-core-CnMNSZn4.js +476 -0
- package/dist/lifecycle-core-DSCwoxfj.js +474 -0
- package/dist/links-CtGBIrG8.js +15 -0
- package/dist/loader-28PmG8eA.js +22397 -0
- package/dist/loader-pXoBPh3P.js +22400 -0
- package/dist/logger-ASsO5Nz-.js +49 -0
- package/dist/logging-Cd9y2AdQ.js +20 -0
- package/dist/logging-DRwtiLIS.js +1 -0
- package/dist/logging-fywhKCmE.js +1 -0
- package/dist/login-ChDTXr1q.js +62 -0
- package/dist/login-Zye8v8hH.js +61 -0
- package/dist/login-qr-B0RqTjUe.js +325 -0
- package/dist/login-qr-LUXbEuu5.js +329 -0
- package/dist/logs-cli-CC8v6eQf.js +240 -0
- package/dist/logs-cli-CKDRn23O.js +236 -0
- package/dist/markdown-tables-CnRv9nvJ.js +29 -0
- package/dist/markdown-tables-oihI35yw.js +29 -0
- package/dist/media-B-8kf3Nr.js +9444 -0
- package/dist/media-Cagro_bu.js +971 -0
- package/dist/message-action-names-CRLIdB59.js +2520 -0
- package/dist/message-action-names-CYOorv6v.js +2520 -0
- package/dist/message-channel-CtcVHawF.js +91 -0
- package/dist/message-channel-tuc9CdEw.js +91 -0
- package/dist/mime-CAqaK3kp.js +146 -0
- package/dist/mime-ViuhRuMM.js +146 -0
- package/dist/net-DSkFMHJ8.js +225 -0
- package/dist/net-DTqfFYzt.js +225 -0
- package/dist/node-cli-DJI4vbc9.js +1386 -0
- package/dist/node-cli-bGJbu8Vp.js +1390 -0
- package/dist/node-service-RyMlWp8N.js +67 -0
- package/dist/node-service-TL9b6Qfz.js +67 -0
- package/dist/nodes-cli-7EvJFv5v.js +1346 -0
- package/dist/nodes-cli-C126Mcbt.js +1350 -0
- package/dist/nodes-screen-B7HJugJ0.js +250 -0
- package/dist/nodes-screen-nCRd71Mk.js +250 -0
- package/dist/note-B6142LyJ.js +92 -0
- package/dist/note-D-EI0czq.js +92 -0
- package/dist/npm-registry-spec-PPyRXSpx.js +786 -0
- package/dist/npm-registry-spec-uUmDWe6v.js +786 -0
- package/dist/npm-resolution-Bg_IMe5P.js +86 -0
- package/dist/npm-resolution-rrlxsWBc.js +86 -0
- package/dist/onboard-CI8VTiNo.js +645 -0
- package/dist/onboard-DkfmcPAG.js +647 -0
- package/dist/onboard-auth-cNtb3FTP.js +211 -0
- package/dist/onboard-auth-gwz-0mZ6.js +207 -0
- package/dist/onboard-channels-BYRO8MWv.js +2618 -0
- package/dist/onboard-channels-D_e5Dx-Z.js +2619 -0
- package/dist/onboard-helpers-C4MriC6p.js +358 -0
- package/dist/onboard-helpers-DjOL63Uz.js +357 -0
- package/dist/onboard-remote-BAmxDFTE.js +127 -0
- package/dist/onboard-remote-Ci18SJ7f.js +127 -0
- package/dist/onboarding-idnjiVqu.js +588 -0
- package/dist/onboarding-kE2XqhlY.js +586 -0
- package/dist/onboarding.finalize-B5_cvtMy.js +402 -0
- package/dist/onboarding.finalize-CSR6Yrq8.js +404 -0
- package/dist/onboarding.gateway-config-CihpeZus.js +202 -0
- package/dist/onboarding.gateway-config-D39bsDZf.js +196 -0
- package/dist/outbound-DODe8j2l.js +221 -0
- package/dist/outbound-Dxzinfk_.js +220 -0
- package/dist/outbound-attachment-BnWiSmn5.js +18 -0
- package/dist/outbound-attachment-CBhZL0TE.js +18 -0
- package/dist/outbound-attachment-Dy81GG5g.js +18 -0
- package/dist/pairing-cli-BrwlW6ea.js +130 -0
- package/dist/pairing-cli-D0KVPOSb.js +126 -0
- package/dist/pairing-labels-CEfQ0pTF.js +9 -0
- package/dist/pairing-labels-CO1L_7yM.js +9 -0
- package/dist/pairing-store-C66fjIHW.js +459 -0
- package/dist/pairing-store-C7Ab4mnE.js +460 -0
- package/dist/path-env-DMKJ1GE3.js +89 -0
- package/dist/path-env-Dq-jhL2Z.js +89 -0
- package/dist/path-safety-BFE0XmGC.js +14 -0
- package/dist/path-safety-BJ8ge6Ho.js +14 -0
- package/dist/paths-DHuXVC00.js +229 -0
- package/dist/plugin-auto-enable-CBe4hZrO.js +288 -0
- package/dist/plugin-auto-enable-CC0Hd0--.js +289 -0
- package/dist/plugin-registry-CZeFvsH-.js +33 -0
- package/dist/plugin-registry-S-iRIyuD.js +33 -0
- package/dist/plugin-sdk/agents/agent-scope.d.ts +8 -21
- package/dist/plugin-sdk/agents/subagent-registry.store.d.ts +0 -1
- package/dist/plugin-sdk/auth/env-injection.d.ts +8 -10
- package/dist/plugin-sdk/auth/index.d.ts +4 -2
- package/dist/plugin-sdk/auth/order.d.ts +8 -0
- package/dist/plugin-sdk/auth/profiles.d.ts +1 -0
- package/dist/plugin-sdk/auth/provider-auth.d.ts +0 -6
- package/dist/plugin-sdk/auth/types.d.ts +33 -1
- package/dist/plugin-sdk/auth/usage.d.ts +80 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-utils.d.ts +4 -35
- package/dist/plugin-sdk/auto-reply/reply/commands-status.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/commands-subagents/shared.d.ts +1 -1
- package/dist/plugin-sdk/auto-reply/reply/commands-types.d.ts +1 -10
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.levels.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.params.d.ts +1 -8
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.parse.d.ts +1 -23
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.persist.d.ts +1 -3
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.shared.d.ts +0 -22
- package/dist/plugin-sdk/auto-reply/reply/directives.d.ts +2 -29
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-apply.d.ts +0 -8
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-utils.d.ts +0 -1
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives.d.ts +1 -15
- package/dist/plugin-sdk/auto-reply/reply/get-reply-inline-actions.d.ts +1 -8
- package/dist/plugin-sdk/auto-reply/reply/get-reply-run.d.ts +1 -11
- package/dist/plugin-sdk/auto-reply/reply/queue/types.d.ts +1 -15
- package/dist/plugin-sdk/auto-reply/reply.d.ts +1 -1
- package/dist/plugin-sdk/auto-reply/status.d.ts +2 -7
- package/dist/plugin-sdk/auto-reply/templating.d.ts +0 -4
- package/dist/plugin-sdk/auto-reply/thinking.d.ts +0 -4
- package/dist/plugin-sdk/auto-reply/types.d.ts +0 -2
- package/dist/plugin-sdk/channels/dock.d.ts +1 -2
- package/dist/plugin-sdk/channels/plugins/types.adapters.d.ts +0 -6
- package/dist/plugin-sdk/channels/plugins/types.core.d.ts +1 -0
- package/dist/plugin-sdk/channels/plugins/types.d.ts +1 -1
- package/dist/plugin-sdk/channels/plugins/types.plugin.d.ts +1 -2
- package/dist/plugin-sdk/channels/voice-credentials.d.ts +26 -0
- package/dist/plugin-sdk/commands/onboard-helpers.d.ts +1 -6
- package/dist/plugin-sdk/commands/onboard-types.d.ts +2 -6
- package/dist/plugin-sdk/config/legacy.migrations.d.ts +2 -1
- package/dist/plugin-sdk/config/legacy.shared.d.ts +0 -9
- package/dist/plugin-sdk/config/sessions/types.d.ts +0 -16
- package/dist/plugin-sdk/config/types.agent-defaults.d.ts +1 -17
- package/dist/plugin-sdk/config/types.agents-shared.d.ts +0 -6
- package/dist/plugin-sdk/config/types.agents.d.ts +3 -6
- package/dist/plugin-sdk/config/types.base.d.ts +0 -1
- package/dist/plugin-sdk/config/types.discord.d.ts +0 -2
- package/dist/plugin-sdk/config/types.irc.d.ts +0 -1
- package/dist/plugin-sdk/config/types.messages.d.ts +0 -4
- package/dist/plugin-sdk/config/types.remoteclaw.d.ts +2 -2
- package/dist/plugin-sdk/config/types.slack.d.ts +0 -2
- package/dist/plugin-sdk/config/types.telegram.d.ts +0 -4
- package/dist/plugin-sdk/config/types.tools.d.ts +0 -73
- package/dist/plugin-sdk/config/types.tts.d.ts +2 -1
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +0 -6
- package/dist/plugin-sdk/config/zod-schema.agent-runtime.d.ts +8 -200
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +3 -15
- package/dist/plugin-sdk/config/zod-schema.core.d.ts +6 -234
- package/dist/plugin-sdk/config/zod-schema.d.ts +100 -317
- package/dist/plugin-sdk/config/zod-schema.providers-core.d.ts +148 -185
- package/dist/plugin-sdk/config/zod-schema.providers-whatsapp.d.ts +12 -12
- package/dist/plugin-sdk/config/zod-schema.providers.d.ts +88 -106
- package/dist/plugin-sdk/config/zod-schema.session.d.ts +4 -10
- package/dist/plugin-sdk/discord/monitor/allow-list.d.ts +0 -2
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +11 -16
- package/dist/plugin-sdk/gateway/protocol/schema/sessions.d.ts +0 -5
- package/dist/plugin-sdk/gateway/protocol/schema/types.d.ts +1 -1
- package/dist/plugin-sdk/gateway/protocol/schema.d.ts +1 -1
- package/dist/plugin-sdk/gateway/server/ws-types.d.ts +2 -0
- package/dist/plugin-sdk/gateway/session-utils.types.d.ts +0 -1
- package/dist/plugin-sdk/index.js +773 -1275
- package/dist/plugin-sdk/infra/agent-events.d.ts +1 -1
- package/dist/plugin-sdk/line/config-schema.d.ts +4 -6
- package/dist/plugin-sdk/line/types.d.ts +0 -1
- package/dist/plugin-sdk/logging/levels.d.ts +1 -1
- package/dist/plugin-sdk/middleware/cli-runtime-base.d.ts +6 -0
- package/dist/plugin-sdk/middleware/media-capability.d.ts +21 -0
- package/dist/plugin-sdk/middleware/runtimes/claude.d.ts +10 -0
- package/dist/plugin-sdk/middleware/runtimes/codex.d.ts +4 -0
- package/dist/plugin-sdk/middleware/runtimes/gemini.d.ts +11 -0
- package/dist/plugin-sdk/middleware/runtimes/opencode.d.ts +4 -0
- package/dist/plugin-sdk/middleware/types.d.ts +5 -1
- package/dist/plugin-sdk/plugin-sdk/index.d.ts +5 -1
- package/dist/plugin-sdk/plugins/manifest-registry.d.ts +2 -1
- package/dist/plugin-sdk/plugins/manifest.d.ts +4 -5
- package/dist/plugin-sdk/plugins/registry.d.ts +18 -0
- package/dist/plugin-sdk/plugins/types.d.ts +4 -0
- package/dist/plugin-sdk/slack/manifest.d.ts +17 -0
- package/dist/plugin-sdk/slack/monitor/channel-config.d.ts +0 -2
- package/dist/plugin-sdk/stt/defaults.d.ts +2 -0
- package/dist/plugin-sdk/stt/preflight.d.ts +14 -0
- package/dist/plugin-sdk/stt/providers/deepgram/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/google/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/groq/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/index.d.ts +4 -0
- package/dist/plugin-sdk/stt/providers/mistral/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/providers/openai/index.d.ts +2 -0
- package/dist/plugin-sdk/stt/stt.d.ts +27 -0
- package/dist/plugin-sdk/stt/types.d.ts +22 -0
- package/dist/plugin-sdk/telegram/bot-message-context.d.ts +0 -1
- package/dist/plugin-sdk/telegram/group-config-helpers.d.ts +0 -1
- package/dist/plugin-sdk/tts/providers/edge.d.ts +2 -0
- package/dist/plugin-sdk/tts/providers/elevenlabs.d.ts +2 -0
- package/dist/plugin-sdk/tts/providers/index.d.ts +4 -0
- package/dist/plugin-sdk/tts/providers/openai.d.ts +2 -0
- package/dist/plugin-sdk/tts/tts.d.ts +13 -5
- package/dist/plugin-sdk/tts/types.d.ts +21 -0
- package/dist/plugins-C8_auHpt.js +254 -0
- package/dist/plugins-DU9mp8MB.js +255 -0
- package/dist/plugins-cli-CXZQ5FPw.js +803 -0
- package/dist/plugins-cli-Dc2VQtvJ.js +807 -0
- package/dist/ports-B4hTs4XH.js +96 -0
- package/dist/ports-CZEhYDiS.js +370 -0
- package/dist/ports-DALdfBQy.js +96 -0
- package/dist/ports-gRBeuUtp.js +316 -0
- package/dist/preflight-Bq8rimP-.js +667 -0
- package/dist/preflight-DyYbEp9X.js +667 -0
- package/dist/program-B0hp1kgD.js +250 -0
- package/dist/program-context-DE0l46gt.js +474 -0
- package/dist/progress-BcwxtM9Q.js +124 -0
- package/dist/prompt-CZpYe6wn.js +21 -0
- package/dist/prompt-select-styled-B3ZPmHW0.js +1672 -0
- package/dist/prompt-select-styled-DsFXYaBj.js +1669 -0
- package/dist/prompt-style-BpUMhEHC.js +9 -0
- package/dist/provider-auth-B7QgxlKt.js +187 -0
- package/dist/provider-auth-j-EQvvIk.js +187 -0
- package/dist/provider-dispatcher-B820-fik.js +660 -0
- package/dist/provider-dispatcher-CxKVoLdw.js +659 -0
- package/dist/push-apns--nEiZmEN.js +711 -0
- package/dist/push-apns-BtS6B6lb.js +713 -0
- package/dist/pw-ai-BwBVKLct.js +1911 -0
- package/dist/pw-ai-DyzvrHKJ.js +1908 -0
- package/dist/qr-cli-C4HHW09i.js +349 -0
- package/dist/qr-cli-DFO2wyUN.js +353 -0
- package/dist/redact-Ci96Gj0O.js +191 -0
- package/dist/redact-snapshot-7MFpoVP2.js +1934 -0
- package/dist/redact-snapshot-DpDhkCo8.js +1934 -0
- package/dist/register.agent-CSUZx8Dc.js +1029 -0
- package/dist/register.agent-DTP_PzXn.js +292 -0
- package/dist/register.configure-ClTyT7wT.js +135 -0
- package/dist/register.configure-I4tFpZMt.js +130 -0
- package/dist/register.import-BtUT7dsb.js +31 -0
- package/dist/register.import-CJn1_3-H.js +29 -0
- package/dist/register.maintenance-B1RLsUI0.js +503 -0
- package/dist/register.maintenance-C2fIoDXM.js +501 -0
- package/dist/register.message-Bbv4ZcaI.js +691 -0
- package/dist/register.message-CQvLVbWI.js +687 -0
- package/dist/register.onboard-6PU_0_9i.js +96 -0
- package/dist/register.onboard-DT8DQMEj.js +92 -0
- package/dist/register.setup-Brfginnt.js +114 -0
- package/dist/register.setup-CpId06YI.js +118 -0
- package/dist/register.status-health-sessions-DEFrMWtJ.js +428 -0
- package/dist/register.status-health-sessions-rzQx17ft.js +666 -0
- package/dist/register.subclis-DUhe8a5G.js +267 -0
- package/dist/replies-CA92V3E5.js +136 -0
- package/dist/replies-CjWFL5Vv.js +136 -0
- package/dist/reply-BMMbuWJN.js +12363 -0
- package/dist/reply-DAgokQOR.js +12360 -0
- package/dist/reply-directives-DPIZC2fK.js +182 -0
- package/dist/reply-directives-DTp3vgkp.js +182 -0
- package/dist/reply-payloads-igz8ascB.js +527 -0
- package/dist/reply-prefix-By6KthrM.js +37 -0
- package/dist/reply-prefix-DJDxPCaD.js +37 -0
- package/dist/resolve-route-BSOvamNo.js +249 -0
- package/dist/resolve-route-BtHlIkRM.js +249 -0
- package/dist/response-prefix-template-Cagi4GFH.js +134 -0
- package/dist/response-prefix-template-DN7J85WH.js +134 -0
- package/dist/retry-CDrH81GP.js +77 -0
- package/dist/retry-Dar_7pCv.js +77 -0
- package/dist/run-main-BrKeAVt1.js +308 -0
- package/dist/runtime-guard-DAHXelsb.js +60 -0
- package/dist/runtime-status-CR9445g5.js +12 -0
- package/dist/runtime-status-hFVEC3wO.js +12 -0
- package/dist/secure-random-BGBm0HFJ.js +44 -0
- package/dist/security-cli-BbDCDTOp.js +488 -0
- package/dist/security-cli-CGmoy4qZ.js +483 -0
- package/dist/send--xWyv2_b.js +547 -0
- package/dist/send-2zwWZyrX.js +374 -0
- package/dist/send-BEUCCzUq.js +492 -0
- package/dist/send-BJuqKs8v.js +349 -0
- package/dist/send-BmQkjoJ1.js +332 -0
- package/dist/send-CXqS-vLw.js +1776 -0
- package/dist/send-CjmRAn9Z.js +2245 -0
- package/dist/send-DEt1umR3.js +1779 -0
- package/dist/send-DG5y-iqB.js +1178 -0
- package/dist/send-DKsXVwEC.js +426 -0
- package/dist/send-DbQ0FC9r.js +547 -0
- package/dist/send-IuBKrKV5.js +349 -0
- package/dist/send-X7r4EOzN.js +11 -0
- package/dist/send-i1ITI8q3.js +29 -0
- package/dist/send-oieHe3e7.js +492 -0
- package/dist/send-qEODjB0S.js +2245 -0
- package/dist/server-BVnVpkAr.js +206 -0
- package/dist/server-D8b-5qTh.js +202 -0
- package/dist/server-lifecycle-BelzXysI.js +2437 -0
- package/dist/server-lifecycle-CACdQU_L.js +2437 -0
- package/dist/server-node-events-BUOQW3xs.js +395 -0
- package/dist/server-node-events-DtqiaaKH.js +391 -0
- package/dist/service-C2j81L86.js +670 -0
- package/dist/service-C8a0SXHD.js +670 -0
- package/dist/session-C6VKWvx6.js +170 -0
- package/dist/session-cost-usage-0Vs4hgMe.js +627 -0
- package/dist/session-cost-usage-C-DsaOfN.js +627 -0
- package/dist/session-dirs-CO1f2ArM.js +318 -0
- package/dist/session-dirs-DoboH7Oy.js +318 -0
- package/dist/session-enM9-2If.js +170 -0
- package/dist/session-utils-CwLnTYzo.js +621 -0
- package/dist/session-utils-DSt3sVK2.js +621 -0
- package/dist/sessions-Cp8ubxLG.js +245 -0
- package/dist/sessions-DPz1bZs3.js +2553 -0
- package/dist/shell-env-DBS5su07.js +163 -0
- package/dist/shell-env-c3j5zcU9.js +163 -0
- package/dist/ssrf-8wNqPNzN.js +183 -0
- package/dist/ssrf-CJIdPXuS.js +183 -0
- package/dist/status-CrHMJADG.js +1940 -0
- package/dist/status-IFPFwhMf.js +1936 -0
- package/dist/status.update-BmuDZ7E7.js +449 -0
- package/dist/status.update-Mf6HSRvU.js +449 -0
- package/dist/store-CPL5eW4Q.js +53 -0
- package/dist/store-CzhBjUCN.js +64 -0
- package/dist/store-DCmzSrnY.js +2555 -0
- package/dist/store-LXf4lUUA.js +64 -0
- package/dist/subagent-registry-Bit2eXL9.js +4839 -0
- package/dist/subagent-registry-ULuU4W_S.js +4841 -0
- package/dist/subsystem-BAW_f3DI.js +1195 -0
- package/dist/subsystem-DGSHVL8I.js +1081 -0
- package/dist/system-cli-CRhwNCB7.js +77 -0
- package/dist/system-cli-_k_742Iz.js +73 -0
- package/dist/systemd-40Rij3QR.js +547 -0
- package/dist/systemd-5C97CSzd.js +547 -0
- package/dist/systemd-hints-CyQqHq1i.js +278 -0
- package/dist/systemd-hints-Dbpv6gQ1.js +278 -0
- package/dist/systemd-linger-B2rPbnAi.js +75 -0
- package/dist/systemd-linger-DDvkfxH-.js +75 -0
- package/dist/table-DFx25vNb.js +279 -0
- package/dist/tables--bCm_5lK.js +55 -0
- package/dist/tables-Cr5BNXEH.js +55 -0
- package/dist/tables-Dwk7Bdoa.js +55 -0
- package/dist/tailnet-Da-_9e8E.js +40 -0
- package/dist/tailnet-xt92Yaop.js +40 -0
- package/dist/tailscale-CnV0JWca.js +230 -0
- package/dist/tailscale-VkEC8dzj.js +230 -0
- package/dist/targets-2gBXfl7n.js +649 -0
- package/dist/targets-BEoT8nkD.js +220 -0
- package/dist/targets-BGmw5-Hz.js +2606 -0
- package/dist/targets-C99szk_e.js +114 -0
- package/dist/targets-CmC5m7Ey.js +53 -0
- package/dist/targets-DlAg69Fz.js +2607 -0
- package/dist/targets-XACRumYG.js +649 -0
- package/dist/targets-_UWmnyI9.js +53 -0
- package/dist/thinking-4nOZPunr.js +60 -0
- package/dist/thinking-ZfH2V9Os.js +60 -0
- package/dist/tokens-TtJJxzRr.js +21 -0
- package/dist/tool-display-Bxs_1jIn.js +785 -0
- package/dist/tool-display-D9p_Ttkq.js +785 -0
- package/dist/tool-images-9Ron321Q.js +263 -0
- package/dist/tool-images-BWhy6WRN.js +263 -0
- package/dist/trash-BpB96kHe.js +125 -0
- package/dist/trash-De0DLz-t.js +125 -0
- package/dist/tui-Db4WhFPF.js +3237 -0
- package/dist/tui-DfmNkKbl.js +3237 -0
- package/dist/tui-cli-CJAXjtsX.js +67 -0
- package/dist/tui-cli-RsUUJDSv.js +63 -0
- package/dist/types.tools-BBb2rl3g.js +23 -0
- package/dist/types.tools-BDJw1yFx.js +23 -0
- package/dist/update-BU5zV4V_.js +349 -0
- package/dist/update-DsUUSr9B.js +349 -0
- package/dist/update-cli-C05m9bJx.js +1147 -0
- package/dist/update-cli-tYY_Qyzy.js +1149 -0
- package/dist/usage-e_TRmpmG.js +5465 -0
- package/dist/utils-DPoNpP7D.js +631 -0
- package/dist/voice-credentials-2CrKpa7L.js +46 -0
- package/dist/voice-credentials-D3p2WZRD.js +46 -0
- package/dist/web-D97y0YGd.js +79 -0
- package/dist/web-DBuJf8yN.js +74 -0
- package/dist/web-DOflYfOC.js +3051 -0
- package/dist/webhooks-cli-BW2WVFq4.js +334 -0
- package/dist/webhooks-cli-Dajc4kFj.js +330 -0
- package/dist/whatsapp-actions-BY_oyE-7.js +131 -0
- package/dist/whatsapp-actions-CzAcNtyI.js +126 -0
- package/dist/widearea-dns-CQqZIeu8.js +127 -0
- package/dist/workspace-BtN5SbNh.js +439 -0
- package/dist/workspace-j_XROwWd.js +441 -0
- package/dist/zod-schema-FtfyAb0p.js +2713 -0
- package/dist/zod-schema-ugOLZQJ3.js +2713 -0
- package/extensions/feishu/remoteclaw.plugin.json +0 -1
- package/extensions/feishu/src/config-schema.ts +1 -1
- package/extensions/irc/src/config-schema.ts +1 -1
- package/extensions/irc/src/inbound.ts +0 -1
- package/extensions/irc/src/types.ts +0 -1
- package/extensions/matrix/src/config-schema.ts +1 -1
- package/extensions/matrix/src/matrix/monitor/handler.ts +1 -1
- package/extensions/matrix/src/types.ts +0 -2
- package/extensions/nextcloud-talk/src/config-schema.ts +1 -1
- package/extensions/nextcloud-talk/src/inbound.ts +0 -1
- package/extensions/nextcloud-talk/src/types.ts +1 -2
- package/extensions/tlon/src/monitor/index.ts +1 -6
- package/extensions/voice-call/index.ts +18 -1
- package/package.json +1 -2
- package/dist/accounts-Aqbb2_Fn.js +0 -270
- package/dist/accounts-CYi-JUU1.js +0 -272
- package/dist/accounts-CvHzFyp1.js +0 -36
- package/dist/accounts-D3fAPVzU.js +0 -36
- package/dist/accounts-DZmv4bXS.js +0 -47
- package/dist/accounts-Dde0z8df.js +0 -32
- package/dist/accounts-yC-Ql9rZ.js +0 -47
- package/dist/ack-reactions-C_NNCwlN.js +0 -446
- package/dist/ack-reactions-YJE_u_IF.js +0 -446
- package/dist/acp-cli-BnQeadji.js +0 -1324
- package/dist/acp-cli-_cks_Lvs.js +0 -1318
- package/dist/active-listener-DKYgax8D.js +0 -37
- package/dist/active-listener-K-gHEsyV.js +0 -37
- package/dist/agent-Dn3lEdFN.js +0 -703
- package/dist/agent-fA5dDdGX.js +0 -704
- package/dist/agent-helpers-D7NhvM9Z.js +0 -400
- package/dist/agent-scope-BrDeaWWf.js +0 -116
- package/dist/agent-scope-CJW7vnF8.js +0 -114
- package/dist/agents-BaTonpbE.js +0 -760
- package/dist/agents.config-Dg9ZQl-w.js +0 -116
- package/dist/agents.config-THRuzfs5.js +0 -116
- package/dist/ansi-aRwLYlzD.js +0 -14
- package/dist/audio-BZvgJdlv.js +0 -43
- package/dist/audio-CgwsD4uc.js +0 -43
- package/dist/audio-preflight-CSxDYOk4.js +0 -69
- package/dist/audio-preflight-jt9fs20r.js +0 -64
- package/dist/audit-7k3efXdf.js +0 -3149
- package/dist/audit-DQft5ak_.js +0 -3149
- package/dist/auth-BYtRHj--.js +0 -448
- package/dist/auth-CfNgYSQF.js +0 -180
- package/dist/auth-DQBj_DA7.js +0 -448
- package/dist/auth-EwcWsPDt.js +0 -181
- package/dist/banner-FS77mzcX.js +0 -294
- package/dist/binaries-DPlY0cvi.js +0 -13
- package/dist/bindings-Cr-mXPiq.js +0 -69
- package/dist/bindings-Dr0bGRst.js +0 -69
- package/dist/bonjour-discovery-BKHQWWQn.js +0 -378
- package/dist/bonjour-discovery-D4g8uh38.js +0 -378
- package/dist/browser-cli-BMGShNyH.js +0 -1689
- package/dist/browser-cli-COMCsEgy.js +0 -1694
- package/dist/call-Dqo6kbkN.js +0 -2827
- package/dist/call-OUZMy2rk.js +0 -2826
- package/dist/catalog-CMicVL2I.js +0 -185
- package/dist/catalog-CTjf0roq.js +0 -185
- package/dist/channel-account-context-5hI72gYX.js +0 -550
- package/dist/channel-account-context-rFlv9fcH.js +0 -550
- package/dist/channel-activity-C1EIGNu1.js +0 -94
- package/dist/channel-activity-CEM5YJQs.js +0 -94
- package/dist/channel-activity-hL4KZrCz.js +0 -292
- package/dist/channel-options-CFItcI2c.js +0 -33
- package/dist/channel-options-dIkcoMHD.js +0 -32
- package/dist/channel-selection-ByShtuhp.js +0 -51
- package/dist/channel-selection-DRNp47md.js +0 -51
- package/dist/channel-web-B_4Zei6t.js +0 -2136
- package/dist/channel-web-Bww7234-.js +0 -2134
- package/dist/channels-cli-Ci4wDZZ3.js +0 -1428
- package/dist/channels-cli-jREbm930.js +0 -1423
- package/dist/channels-status-issues-C-aMtk-n.js +0 -18
- package/dist/channels-status-issues-Pz2omjVp.js +0 -18
- package/dist/chat-envelope-CQkxqiAp.js +0 -248
- package/dist/chat-envelope-CY1yvCc-.js +0 -248
- package/dist/chrome-CnQU46kX.js +0 -1733
- package/dist/chrome-DNikl4VQ.js +0 -1732
- package/dist/chunk-B7Qk7ACV.js +0 -341
- package/dist/chunk-C2vxqDKb.js +0 -341
- package/dist/clack-prompter-DxWF9EMV.js +0 -122
- package/dist/clack-prompter-UsUyNqRE.js +0 -121
- package/dist/cleanup-utils-yPa4b4YC.js +0 -94
- package/dist/cli-CLX-3zih.js +0 -127
- package/dist/cli-DO8vDcUu.js +0 -132
- package/dist/clipboard-DrMbwy6W.js +0 -31
- package/dist/clipboard-DuI4jJgy.js +0 -31
- package/dist/command-format-5Mm4OX03.js +0 -32
- package/dist/command-format-LFmgWzKJ.js +0 -18
- package/dist/command-registry-Bh_cI3oH.js +0 -215
- package/dist/commands-BSutwoQ9.js +0 -41
- package/dist/commands-CuX98AIv.js +0 -41
- package/dist/commands-registry-D8LoaUeU.js +0 -892
- package/dist/commands-registry-datKw4NJ.js +0 -891
- package/dist/common-0pVkAEMe.js +0 -156
- package/dist/common-nSRorWd3.js +0 -156
- package/dist/completion-cli-Ca2_mlgb.js +0 -452
- package/dist/completion-cli-WJZgfX1b.js +0 -452
- package/dist/config-CSkWl_q0.js +0 -4225
- package/dist/config-Z5vhysno.js +0 -4223
- package/dist/config-cli-b8gRJe1h.js +0 -248
- package/dist/config-cli-zza7RG3W.js +0 -243
- package/dist/config-guard-D2pPfuWT.js +0 -75
- package/dist/config-guard-DSMdtqh5.js +0 -99
- package/dist/config-validation-B_f7GMXB.js +0 -18
- package/dist/config-validation-Bgrd2M7q.js +0 -18
- package/dist/configure-B0V7mHm3.js +0 -889
- package/dist/configure-BL8zjwBd.js +0 -891
- package/dist/constants-DNKY4Ei3.js +0 -70
- package/dist/constants-QiF_zDC2.js +0 -70
- package/dist/control-auth-ByLWpGmj.js +0 -397
- package/dist/control-auth-CMgYC6bI.js +0 -397
- package/dist/control-ui/assets/index-CuY3pfh1.js +0 -7716
- package/dist/control-ui/assets/index-CuY3pfh1.js.map +0 -1
- package/dist/control-ui/assets/index-D_fjkN3g.css +0 -1
- package/dist/control-ui-assets-Be7wYtPV.js +0 -186
- package/dist/control-ui-assets-x-FU54VZ.js +0 -186
- package/dist/conversation-label-tLwAlqLf.js +0 -36
- package/dist/cron-cli-CCD11ZIl.js +0 -497
- package/dist/cron-cli-UdG8AdsF.js +0 -492
- package/dist/daemon-cli-DylDBbK9.js +0 -1199
- package/dist/daemon-cli-KNMfdVj-.js +0 -1197
- package/dist/daemon-install-BTH9Hr-r.js +0 -56
- package/dist/daemon-install-CnUT0dtr.js +0 -61
- package/dist/daemon-install-helpers-C3AdCemv.js +0 -463
- package/dist/daemon-install-helpers-DsBl9bBo.js +0 -463
- package/dist/deliver-CiN6VwcX.js +0 -481
- package/dist/deliver-D07D18kt.js +0 -481
- package/dist/delivery-queue-1d--YXgK.js +0 -244
- package/dist/delivery-queue-CZOATijD.js +0 -244
- package/dist/devices-cli-DjA1_DgQ.js +0 -323
- package/dist/devices-cli-c9Wz_pzF.js +0 -318
- package/dist/diagnostics-Bwm27ePU.js +0 -46
- package/dist/diagnostics-CIPDL1bH.js +0 -46
- package/dist/directory-cli-CV8H71eb.js +0 -224
- package/dist/directory-cli-Ck10mXCz.js +0 -219
- package/dist/dm-policy-shared-CUJow99p.js +0 -22
- package/dist/dm-policy-shared-cQeANZBI.js +0 -22
- package/dist/dns-cli-CRoAvkaQ.js +0 -199
- package/dist/dns-cli-U8TKnutF.js +0 -204
- package/dist/dock-CVCmU_Yv.js +0 -929
- package/dist/dock-Cj4PKiUh.js +0 -928
- package/dist/doctor-completion-BRNtT5T_.js +0 -92
- package/dist/doctor-completion-Die_Sq3a.js +0 -92
- package/dist/doctor-config-flow-B89ZE4Bk.js +0 -1935
- package/dist/doctor-config-flow-iPzjMVUg.js +0 -1934
- package/dist/enable-CqdyoDNA.js +0 -59
- package/dist/enable-DpHVKtoJ.js +0 -59
- package/dist/env-DUb5GiQe.js +0 -60
- package/dist/env-vars-CDr9IXFl.js +0 -43
- package/dist/env-vars-CLX_DBNR.js +0 -43
- package/dist/errors-24e316-U.js +0 -35
- package/dist/errors-CgC58q_F.js +0 -35
- package/dist/exec-D7Bp9Kzi.js +0 -164
- package/dist/exec-DLgyrvcf.js +0 -164
- package/dist/fetch-CYi6j9LI.js +0 -67
- package/dist/fetch-Cw0TofAa.js +0 -67
- package/dist/fetch-DNEsm4Ur.js +0 -67
- package/dist/file-lock-CkrYG1r7.js +0 -107
- package/dist/file-lock-DFd595E7.js +0 -107
- package/dist/fs-safe-DSwT85uK.js +0 -88
- package/dist/fs-safe-Du75CIw7.js +0 -98
- package/dist/gateway-cli-BQFOG-zr.js +0 -23721
- package/dist/gateway-cli-CBedrUDH.js +0 -23726
- package/dist/gateway-rpc-C3ziRxqz.js +0 -28
- package/dist/gateway-rpc-DN_P6dMN.js +0 -28
- package/dist/gmail-setup-utils-CUTCdGWa.js +0 -423
- package/dist/gmail-setup-utils-uqZ7m5TH.js +0 -422
- package/dist/health-BV9AMNVJ.js +0 -1414
- package/dist/health-DnH6uCrp.js +0 -1417
- package/dist/health-format-DsqB_lOC.js +0 -28
- package/dist/heartbeat-visibility-CZsg3uin.js +0 -125
- package/dist/heartbeat-visibility-DtdGhGi3.js +0 -125
- package/dist/help-format-D-X9bY8s.js +0 -17
- package/dist/helpers-D1ViXWK0.js +0 -10
- package/dist/hook-runner-global-DVKhou29.js +0 -527
- package/dist/hooks-cli-DORj2z5O.js +0 -1219
- package/dist/hooks-cli-o4MXYZtX.js +0 -1224
- package/dist/host-env-security-Bms2_EMV.js +0 -92
- package/dist/host-env-security-CbiODGvQ.js +0 -92
- package/dist/image-ops-Brp1SxLh.js +0 -354
- package/dist/image-ops-kUTMt_X-.js +0 -354
- package/dist/import-BOyEfv3s.js +0 -519
- package/dist/import-Df9qaDn2.js +0 -517
- package/dist/inbound-context-CXKhKQz4.js +0 -68
- package/dist/inbound-path-policy-BurOAu44.js +0 -90
- package/dist/inbound-path-policy-Bv1SSBX0.js +0 -90
- package/dist/inspect-BiW5KWS-.js +0 -559
- package/dist/inspect-DXr8ki5k.js +0 -559
- package/dist/installs-C83NIvWN.js +0 -325
- package/dist/installs-Cjh7Aon0.js +0 -325
- package/dist/ipv4-D1oXJaNu.js +0 -46
- package/dist/ipv4-D83xJ7X5.js +0 -46
- package/dist/ir-DSRvbFiq.js +0 -940
- package/dist/links-CPYVK7l1.js +0 -15
- package/dist/loader-DBCuIoUQ.js +0 -22404
- package/dist/loader-Df8lbJ6O.js +0 -22401
- package/dist/local-roots-09zAPZxt.js +0 -314
- package/dist/local-roots-CJVCfYzc.js +0 -313
- package/dist/logger-ANaZk_PW.js +0 -49
- package/dist/logging-DEDs-xX7.js +0 -20
- package/dist/login-BASSFCd8.js +0 -61
- package/dist/login-Diwrffhg.js +0 -62
- package/dist/login-qr-D62uNqK8.js +0 -324
- package/dist/login-qr-DMz0a5fd.js +0 -329
- package/dist/logs-cli-B6CFt4LV.js +0 -240
- package/dist/logs-cli-DOfyh2Yi.js +0 -235
- package/dist/markdown-tables--ARiu9Y1.js +0 -29
- package/dist/markdown-tables-CMPFjRFj.js +0 -29
- package/dist/media-DyXncdbb.js +0 -940
- package/dist/media-DyiZapYY.js +0 -10452
- package/dist/message-action-names-CJJnLMYE.js +0 -2521
- package/dist/message-action-names-DQ0nkHVY.js +0 -2521
- package/dist/message-channel-BHrK-j5D.js +0 -91
- package/dist/message-channel-DF4I2vOK.js +0 -91
- package/dist/mime-C4zhIbPz.js +0 -149
- package/dist/mime-Cxh_64P6.js +0 -149
- package/dist/net-B7tLlwbU.js +0 -225
- package/dist/net-DE2kzvsY.js +0 -225
- package/dist/node-cli-BJEaXcTB.js +0 -24
- package/dist/node-cli-BcYDUwDf.js +0 -24
- package/dist/nodes-cli-BOmTbFgD.js +0 -1345
- package/dist/nodes-cli-BQQnkyrb.js +0 -1350
- package/dist/nodes-screen-BbGQN2wt.js +0 -250
- package/dist/nodes-screen-id-Bb6Id.js +0 -250
- package/dist/note-BzfrQZI0.js +0 -92
- package/dist/note-xaYg6Lfa.js +0 -92
- package/dist/npm-registry-spec-V7j5Uas_.js +0 -786
- package/dist/npm-registry-spec-ja6-spul.js +0 -786
- package/dist/npm-resolution-DBTfruSZ.js +0 -86
- package/dist/npm-resolution-DmUKRSuY.js +0 -86
- package/dist/onboard-C3sec7Dx.js +0 -438
- package/dist/onboard-CMO3if3d.js +0 -436
- package/dist/onboard-channels-CefA_hEU.js +0 -2548
- package/dist/onboard-channels-DbcMcJ2p.js +0 -2547
- package/dist/onboard-helpers-BhG0nUZM.js +0 -364
- package/dist/onboard-helpers-DzoT97o-.js +0 -363
- package/dist/onboard-remote-BFU2wKgI.js +0 -127
- package/dist/onboard-remote-CuRRh-6W.js +0 -127
- package/dist/onboarding-BKoe3_gX.js +0 -588
- package/dist/onboarding-DgC0DvDZ.js +0 -586
- package/dist/onboarding.finalize-BtX7pwt2.js +0 -400
- package/dist/onboarding.finalize-DJ-BBlKK.js +0 -403
- package/dist/onboarding.gateway-config-BaVZugTI.js +0 -193
- package/dist/onboarding.gateway-config-DmgQVfLO.js +0 -200
- package/dist/outbound-6vgCW1Bp.js +0 -220
- package/dist/outbound-B34AeKpd.js +0 -221
- package/dist/outbound-attachment-9eMFwFrm.js +0 -18
- package/dist/outbound-attachment-D2QJXHUK.js +0 -18
- package/dist/outbound-attachment-e72S5Wk3.js +0 -18
- package/dist/pairing-cli-DDYb9ulI.js +0 -129
- package/dist/pairing-cli-KUiTqdZ_.js +0 -124
- package/dist/pairing-labels-B3ymC59s.js +0 -9
- package/dist/pairing-labels-_ahX1Iwx.js +0 -9
- package/dist/pairing-store-DAdsH-_X.js +0 -459
- package/dist/pairing-store-hEFX87_3.js +0 -460
- package/dist/path-env-DvGXF1PK.js +0 -89
- package/dist/path-env-nhpk9bHU.js +0 -89
- package/dist/path-guards-CIx4hURU.js +0 -31
- package/dist/path-guards-lL3tZoxY.js +0 -31
- package/dist/path-safety-Bm08v8w8.js +0 -14
- package/dist/path-safety-CphcstYi.js +0 -14
- package/dist/paths-BTaH3rLn.js +0 -232
- package/dist/plugin-auto-enable-B-ZbQJGk.js +0 -301
- package/dist/plugin-auto-enable-BlO7PQGZ.js +0 -302
- package/dist/plugin-registry-C4kXABn2.js +0 -33
- package/dist/plugin-registry-De9coZhz.js +0 -33
- package/dist/plugin-sdk/auth/session-override.d.ts +0 -17
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.auth.d.ts +0 -18
- package/dist/plugin-sdk/auto-reply/reply/elevated-allowlist-matcher.d.ts +0 -20
- package/dist/plugin-sdk/auto-reply/reply/elevated-unavailable.d.ts +0 -8
- package/dist/plugin-sdk/auto-reply/reply/reply-elevated.d.ts +0 -16
- package/dist/plugin-sdk/compat/legacy-names.d.ts +0 -8
- package/dist/plugin-sdk/config/legacy.migrations.part-1.d.ts +0 -2
- package/dist/plugin-sdk/config/legacy.migrations.part-2.d.ts +0 -2
- package/dist/plugin-sdk/config/legacy.migrations.part-3.d.ts +0 -2
- package/dist/plugin-sdk/cron/legacy-delivery.d.ts +0 -3
- package/dist/plugin-sdk/cron/payload-migration.d.ts +0 -3
- package/dist/plugin-sdk/link-understanding/apply.d.ts +0 -10
- package/dist/plugin-sdk/link-understanding/defaults.d.ts +0 -2
- package/dist/plugin-sdk/link-understanding/detect.d.ts +0 -3
- package/dist/plugin-sdk/link-understanding/format.d.ts +0 -4
- package/dist/plugin-sdk/link-understanding/runner.d.ts +0 -11
- package/dist/plugin-sdk/media/input-files.d.ts +0 -95
- package/dist/plugin-sdk/media-understanding/apply.d.ts +0 -19
- package/dist/plugin-sdk/media-understanding/attachments.d.ts +0 -49
- package/dist/plugin-sdk/media-understanding/audio-preflight.d.ts +0 -16
- package/dist/plugin-sdk/media-understanding/concurrency.d.ts +0 -1
- package/dist/plugin-sdk/media-understanding/defaults.d.ts +0 -12
- package/dist/plugin-sdk/media-understanding/errors.d.ts +0 -6
- package/dist/plugin-sdk/media-understanding/format.d.ts +0 -7
- package/dist/plugin-sdk/media-understanding/fs.d.ts +0 -1
- package/dist/plugin-sdk/media-understanding/output-extract.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/anthropic/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/deepgram/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/google/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/google/video.d.ts +0 -3
- package/dist/plugin-sdk/media-understanding/providers/groq/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/index.d.ts +0 -4
- package/dist/plugin-sdk/media-understanding/providers/minimax/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/mistral/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/moonshot/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/moonshot/video.d.ts +0 -3
- package/dist/plugin-sdk/media-understanding/providers/openai/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/providers/zai/index.d.ts +0 -2
- package/dist/plugin-sdk/media-understanding/resolve.d.ts +0 -44
- package/dist/plugin-sdk/media-understanding/runner.d.ts +0 -34
- package/dist/plugin-sdk/media-understanding/runner.entries.d.ts +0 -33
- package/dist/plugin-sdk/media-understanding/scope.d.ts +0 -9
- package/dist/plugin-sdk/media-understanding/types.d.ts +0 -74
- package/dist/plugin-sdk/media-understanding/video.d.ts +0 -2
- package/dist/plugin-sdk/utils/mask-api-key.d.ts +0 -1
- package/dist/plugin-sdk/utils/run-with-concurrency.d.ts +0 -11
- package/dist/plugins-7B167wIj.js +0 -453
- package/dist/plugins-C3RTS5Jy.js +0 -455
- package/dist/plugins-cli-DGAsK7PO.js +0 -795
- package/dist/plugins-cli-Dk45Xuun.js +0 -800
- package/dist/ports-B_lYgIyN.js +0 -316
- package/dist/ports-BrGekhfF.js +0 -96
- package/dist/ports-CU98RMVJ.js +0 -96
- package/dist/ports-C_5EshUM.js +0 -370
- package/dist/program-B32o2rDY.js +0 -246
- package/dist/program-context-B_XLUL3M.js +0 -474
- package/dist/progress-gsZJl831.js +0 -124
- package/dist/prompt-BXeXEH0o.js +0 -21
- package/dist/prompt-select-styled-BWFdmNgl.js +0 -1650
- package/dist/prompt-select-styled-D9Uu62Cv.js +0 -1647
- package/dist/prompt-style-BzXtlA1Y.js +0 -9
- package/dist/provider-dispatcher-DyDeJ2RM.js +0 -660
- package/dist/provider-dispatcher-mUIILa_5.js +0 -659
- package/dist/push-apns-EUvNahMw.js +0 -713
- package/dist/push-apns-xD9poCq1.js +0 -711
- package/dist/pw-ai-CQ_ErGyT.js +0 -1908
- package/dist/pw-ai-DmTYkP_M.js +0 -1912
- package/dist/qr-cli-CserVCUj.js +0 -349
- package/dist/qr-cli-dSY8Jcjr.js +0 -354
- package/dist/redact-Cj9LoKIG.js +0 -191
- package/dist/redact-snapshot-C4RWjjs9.js +0 -2016
- package/dist/redact-snapshot-aZAJCPqx.js +0 -2016
- package/dist/register.agent-Ru4VYTxE.js +0 -288
- package/dist/register.agent-YiuOk6ec.js +0 -1017
- package/dist/register.configure-CLZ2gail.js +0 -126
- package/dist/register.configure-CTW6KCvM.js +0 -132
- package/dist/register.import-DdsgxEKs.js +0 -29
- package/dist/register.import-WPNTmvRj.js +0 -32
- package/dist/register.maintenance-BBe-L7B6.js +0 -496
- package/dist/register.maintenance-CyQ3KN4R.js +0 -499
- package/dist/register.message-C-Ua9J93.js +0 -688
- package/dist/register.message-Cl7xVOtU.js +0 -683
- package/dist/register.onboard-BiuFMWuc.js +0 -259
- package/dist/register.onboard-c_UsLCtt.js +0 -264
- package/dist/register.setup-C8gXD3eZ.js +0 -111
- package/dist/register.setup-sqj4OGax.js +0 -116
- package/dist/register.status-health-sessions-BfpBzwl3.js +0 -425
- package/dist/register.status-health-sessions-ChNv4h8Z.js +0 -666
- package/dist/register.subclis-BdaJaBPV.js +0 -267
- package/dist/replies-10JzBkPW.js +0 -136
- package/dist/replies-BQusKLeB.js +0 -136
- package/dist/reply-CW31UifG.js +0 -13671
- package/dist/reply-Dd-eqX_k.js +0 -13674
- package/dist/reply-directives-8s8hoVAG.js +0 -182
- package/dist/reply-directives-CmPgo60i.js +0 -182
- package/dist/reply-payloads-NlHsO4JU.js +0 -527
- package/dist/reply-prefix-Bto_wLwa.js +0 -37
- package/dist/reply-prefix-Dej_5SDE.js +0 -37
- package/dist/resolve-route-CKycdke1.js +0 -249
- package/dist/resolve-route-DlJHHITX.js +0 -249
- package/dist/response-prefix-template-CBr9RICF.js +0 -134
- package/dist/response-prefix-template-SN9HSK00.js +0 -134
- package/dist/retry-B19gMxS7.js +0 -77
- package/dist/retry-BMUvSHT-.js +0 -77
- package/dist/run-main-iK68U9pY.js +0 -304
- package/dist/runner-DHV1DbSV.js +0 -2289
- package/dist/runner-GAXv51HH.js +0 -2289
- package/dist/runtime-Ds3E9SqF.js +0 -94
- package/dist/runtime-guard-BMa-MbRw.js +0 -60
- package/dist/secure-random-B22q_Bpm.js +0 -44
- package/dist/security-cli-CYMdMsaI.js +0 -486
- package/dist/security-cli-SZoU0VXF.js +0 -480
- package/dist/send-2UWyzHA4.js +0 -492
- package/dist/send-BD7xe6fW.js +0 -2245
- package/dist/send-BPZSuv8R.js +0 -547
- package/dist/send-BdbDK7Gm.js +0 -1776
- package/dist/send-C0a60RHn.js +0 -349
- package/dist/send-CEYq6PHx.js +0 -11
- package/dist/send-CVy5b1Z3.js +0 -349
- package/dist/send-CYI3ZSbp.js +0 -29
- package/dist/send-D64qEY1N.js +0 -1779
- package/dist/send-DHQ_PjNs.js +0 -492
- package/dist/send-DZR-_UV3.js +0 -547
- package/dist/send-DbkjaWxS.js +0 -1174
- package/dist/send-FePh9AL3.js +0 -426
- package/dist/send-Tc6nYSJQ.js +0 -2245
- package/dist/send-WsTzM5wz.js +0 -332
- package/dist/send-t33E5qpm.js +0 -374
- package/dist/server-B1KDlN4a.js +0 -207
- package/dist/server-BBFfC210.js +0 -202
- package/dist/server-lifecycle-C_kkMdO7.js +0 -2437
- package/dist/server-lifecycle-_gBPCxJ8.js +0 -2437
- package/dist/server-node-events-CXiHQUt0.js +0 -391
- package/dist/server-node-events-Cx5Fx94M.js +0 -396
- package/dist/service-DZNs7x-w.js +0 -670
- package/dist/service-r8kPiYnQ.js +0 -670
- package/dist/session-DkLYlMBm.js +0 -170
- package/dist/session-assFIC3H.js +0 -170
- package/dist/session-cost-usage-Dtm3t6lF.js +0 -627
- package/dist/session-cost-usage-bMbCS0Yv.js +0 -627
- package/dist/session-dirs-C81oNyFN.js +0 -947
- package/dist/session-dirs-D0KbSK3q.js +0 -947
- package/dist/session-utils-BVFN0nL4.js +0 -622
- package/dist/session-utils-ZhX2v-OC.js +0 -622
- package/dist/sessions-3glPunYr.js +0 -2569
- package/dist/sessions-CkGvMwES.js +0 -247
- package/dist/shell-env-CsV_IkJj.js +0 -163
- package/dist/shell-env-hZW9j-Uc.js +0 -163
- package/dist/ssrf-DC0zFdz4.js +0 -183
- package/dist/ssrf-UNL0fUGf.js +0 -183
- package/dist/status--ffV7AWP.js +0 -2061
- package/dist/status-DtdzvKiS.js +0 -2065
- package/dist/status.update-954Fhbjr.js +0 -79
- package/dist/status.update-B2umkV3j.js +0 -79
- package/dist/store-BSc6aGZT.js +0 -2571
- package/dist/store-BhG9XHsF.js +0 -64
- package/dist/store-C2dbfXzu.js +0 -53
- package/dist/store-CzdZLRld.js +0 -64
- package/dist/subagent-registry-C80j7tqi.js +0 -4856
- package/dist/subagent-registry-DuM_Lj5f.js +0 -4854
- package/dist/subsystem-BgxIzx7w.js +0 -1137
- package/dist/subsystem-SgROXN1v.js +0 -1079
- package/dist/system-cli-ChDx6W4P.js +0 -72
- package/dist/system-cli-D8z0NQtf.js +0 -77
- package/dist/systemd-B_f-wDxc.js +0 -547
- package/dist/systemd-DXNd4qOC.js +0 -547
- package/dist/systemd-linger-1B4ULj46.js +0 -75
- package/dist/systemd-linger-BNoRZo8N.js +0 -75
- package/dist/table-CU9MUMy2.js +0 -279
- package/dist/tables-361UXJ4C.js +0 -55
- package/dist/tables-DK0bS_Of.js +0 -55
- package/dist/tables-DKUrXUwR.js +0 -55
- package/dist/tailnet-CB_Y1J-4.js +0 -40
- package/dist/tailnet-CIjiTkjf.js +0 -40
- package/dist/tailscale-CVH3JEAh.js +0 -230
- package/dist/tailscale-D9tfMGNs.js +0 -230
- package/dist/targets-0jpoUVZb.js +0 -2444
- package/dist/targets-8evo3fZH.js +0 -2445
- package/dist/targets-B4rMyQFJ.js +0 -53
- package/dist/targets-BX9_lbJ2.js +0 -220
- package/dist/targets-BzeP3ZHj.js +0 -650
- package/dist/targets-D3WkRcT8.js +0 -120
- package/dist/targets-rdWlC6Y-.js +0 -53
- package/dist/targets-vYAaa-34.js +0 -650
- package/dist/thinking-dksVQLY3.js +0 -88
- package/dist/thinking-l-rrvZwu.js +0 -88
- package/dist/tokens-DAFBx5qr.js +0 -21
- package/dist/tool-display-DPxFoqpo.js +0 -785
- package/dist/tool-display-Kb0G4otf.js +0 -785
- package/dist/tool-images-CmLjncli.js +0 -263
- package/dist/tool-images-DFd3tVJP.js +0 -263
- package/dist/trash-B5GquK_R.js +0 -125
- package/dist/trash-CmkALnFO.js +0 -125
- package/dist/tui-cbCqqaXc.js +0 -3319
- package/dist/tui-cli-DiosSnPx.js +0 -60
- package/dist/tui-cli-euPOv4PT.js +0 -65
- package/dist/tui-hml22wsk.js +0 -3319
- package/dist/update-Bemi0zlX.js +0 -349
- package/dist/update-CHtOiEVf.js +0 -349
- package/dist/update-cli-B6u8fXVa.js +0 -1375
- package/dist/update-cli-KUr1HZE_.js +0 -1372
- package/dist/usage-Sxdd273c.js +0 -5333
- package/dist/utils-C5daYcFn.js +0 -631
- package/dist/web-D62v10mP.js +0 -72
- package/dist/web-DAxA23gu.js +0 -78
- package/dist/web-m1dC9LOH.js +0 -3071
- package/dist/webhooks-cli-CyTfI18g.js +0 -330
- package/dist/webhooks-cli-DW8P9jL_.js +0 -335
- package/dist/whatsapp-actions-CANxWPbG.js +0 -130
- package/dist/whatsapp-actions-DX_8e1lY.js +0 -124
- package/dist/widearea-dns-fETWNpyh.js +0 -127
- package/dist/workspace-BxtrYz-g.js +0 -449
- package/dist/workspace-QdYobHCO.js +0 -447
- package/dist/zod-schema-C1zZtGYm.js +0 -2696
- package/dist/zod-schema-CR7FaEW2.js +0 -2696
- /package/dist/{account-lookup-R1ParPyR.js → account-lookup-CIY_RKhi.js} +0 -0
- /package/dist/{agent-helpers-Bzz_tiPK.js → agent-helpers-Bs2nBXeI.js} +0 -0
- /package/dist/{api-DSIfHPts.js → api-BE4ZCWWB.js} +0 -0
- /package/dist/{api-DTwcrkBE.js → api-wsk9zRVi.js} +0 -0
- /package/dist/{brew-DJvEvRfG.js → brew-V4lMBeE3.js} +0 -0
- /package/dist/{chat-type-BPBtOjer.js → chat-type-BP9akbag.js} +0 -0
- /package/dist/{cleanup-utils-zWAqOnW8.js → cleanup-utils-ZC2zvntc.js} +0 -0
- /package/dist/{cli-name-3MdfbvIR.js → cli-name-BZsYSp9l.js} +0 -0
- /package/dist/{cli-name-CpSGz3mA.js → cli-name-CRe5Ow_t.js} +0 -0
- /package/dist/{cli-utils-DLQmX9d8.js → cli-utils-BUOtyfnU.js} +0 -0
- /package/dist/{cli-utils-DVWIt9Ob.js → cli-utils-CGB3cBZm.js} +0 -0
- /package/dist/{client-D5m46AuY.js → client-9dK56xly.js} +0 -0
- /package/dist/{client-Fi2k2G9Z.js → client-D-R1YdRD.js} +0 -0
- /package/dist/{command-options-Eo_ESfC0.js → command-options-CnHA4TzR.js} +0 -0
- /package/dist/{command-options-criepGrH.js → command-options-D2nN4AXX.js} +0 -0
- /package/dist/{config-eval-DbGlbDlp.js → config-eval-BQIR-wSg.js} +0 -0
- /package/dist/{config-eval-Yxi-wJPE.js → config-eval-Bh82JoXK.js} +0 -0
- /package/dist/{constants-BlFnttWm.js → constants-C7j1VA2S.js} +0 -0
- /package/dist/{constants-wpkIJk8U.js → constants-DoYLsBmv.js} +0 -0
- /package/dist/{credentials-Bqu9Xdfz.js → credentials-C_RoJFmK.js} +0 -0
- /package/dist/{credentials-DQ28n4lc.js → credentials-DM_Dj0m8.js} +0 -0
- /package/dist/{daemon-runtime-CMnbwryP.js → daemon-runtime-9oDBR7YW.js} +0 -0
- /package/dist/{daemon-runtime-aQhinwSL.js → daemon-runtime-CzFI2dPw.js} +0 -0
- /package/dist/{dangerous-name-matching-B4MRPcn-.js → dangerous-name-matching-BlTBBZns.js} +0 -0
- /package/dist/{dangerous-name-matching-UV0YfXlV.js → dangerous-name-matching-CSq9sJDG.js} +0 -0
- /package/dist/{dangerous-tools-BU0t3SUd.js → dangerous-tools-BRmbBvRf.js} +0 -0
- /package/dist/{dangerous-tools-Ce1dELvv.js → dangerous-tools-D4jtl72G.js} +0 -0
- /package/dist/{fetch-timeout-DoySHqfO.js → fetch-timeout-CytN1wiO.js} +0 -0
- /package/dist/{fetch-timeout-jOIu9Xud.js → fetch-timeout-DBRRPNBi.js} +0 -0
- /package/dist/{file-identity-BxlKD8Ys.js → file-identity-CeRK5CJC.js} +0 -0
- /package/dist/{format-duration-DQ1Dl3YB.js → format-duration-B-Uv5nOi.js} +0 -0
- /package/dist/{format-relative-8dpVUfzZ.js → format-relative-Czf5fUjn.js} +0 -0
- /package/dist/{format-relative-Cywx6ldk.js → format-relative-zwkkXJvs.js} +0 -0
- /package/dist/{health-format-FHquW42d.js → health-format-DF54wvUU.js} +0 -0
- /package/dist/{heartbeat-wake-AkM9ZRL2.js → heartbeat-wake-CvHncCjP.js} +0 -0
- /package/dist/{heartbeat-wake-Y97geucO.js → heartbeat-wake-DLxQm6-U.js} +0 -0
- /package/dist/{help-format-Ca9FzlcN.js → help-format-CJQ7APRn.js} +0 -0
- /package/dist/{helpers-CpIyUra4.js → helpers-n2CtWpm9.js} +0 -0
- /package/dist/{helpers-BPOeGmd1.js → helpers-ndPQWl6m.js} +0 -0
- /package/dist/{inbound-context-BtA228jl.js → inbound-context-BLy-G2Eq.js} +0 -0
- /package/dist/{input-provenance-BgfeDgck.js → input-provenance-gIfDn1ki.js} +0 -0
- /package/dist/{input-provenance-duDehu0D.js → input-provenance-wkso1o5V.js} +0 -0
- /package/dist/{ip-kVgrMfw-.js → ip-D4VG5EJO.js} +0 -0
- /package/dist/{ip-o-YLqTzQ.js → ip-MwCwRA7c.js} +0 -0
- /package/dist/{json-file-DY96R8LK.js → json-file-BW22hGtf.js} +0 -0
- /package/dist/{json-file-DNead8D_.js → json-file-DwRAfAAy.js} +0 -0
- /package/dist/{json-files-DW71C3QC.js → json-files-BI20PLIm.js} +0 -0
- /package/dist/{json-files-CjOU2Hds.js → json-files-Dy52honG.js} +0 -0
- /package/dist/{lanes-3Hy9dOzA.js → lanes-1CBKdsiR.js} +0 -0
- /package/dist/{lanes-BmSbfjW9.js → lanes-DqVYfPRG.js} +0 -0
- /package/dist/{links-NSE5DGnq.js → links-CwTlzaPe.js} +0 -0
- /package/dist/{location-C8XO7UyG.js → location-Qo8Ii1zo.js} +0 -0
- /package/dist/{logger-DWcHNtdK.js → logger-B8BE0PyS.js} +0 -0
- /package/dist/{logger-DsFoLpk4.js → logger-CPvz-aPM.js} +0 -0
- /package/dist/{logger-n5cQNuVr.js → logger-cL0D2DCr.js} +0 -0
- /package/dist/{logging-BEw3xi9W.js → logging-DTEoeoa3.js} +0 -0
- /package/dist/{mutable-allowlist-detectors-DbdlW-cX.js → mutable-allowlist-detectors-BXE7Hr7F.js} +0 -0
- /package/dist/{mutable-allowlist-detectors-U5ThQr9V.js → mutable-allowlist-detectors-CtKavajp.js} +0 -0
- /package/dist/{onboard-config-BeFaSbOY.js → onboard-config-DOmXYEvJ.js} +0 -0
- /package/dist/{onboard-config-x054Cod3.js → onboard-config-JmR21VYa.js} +0 -0
- /package/dist/{parse-log-line-DTl9swsB.js → parse-log-line-GisaZn5H.js} +0 -0
- /package/dist/{parse-log-line-LEXRMnqc.js → parse-log-line-ZsbwG_u7.js} +0 -0
- /package/dist/{parse-timeout-C7ggYYiO.js → parse-timeout-BpphuwYl.js} +0 -0
- /package/dist/{parse-timeout-o1QTe1VR.js → parse-timeout-CE6BjmGU.js} +0 -0
- /package/dist/plugin-sdk/gateway/protocol/schema/{agents-models-skills.d.ts → agents-models.d.ts} +0 -0
- /package/dist/plugin-sdk/{media-understanding → stt}/providers/deepgram/audio.d.ts +0 -0
- /package/dist/plugin-sdk/{media-understanding → stt}/providers/google/audio.d.ts +0 -0
- /package/dist/plugin-sdk/{media-understanding → stt}/providers/google/inline-data.d.ts +0 -0
- /package/dist/plugin-sdk/{media-understanding → stt}/providers/openai/audio.d.ts +0 -0
- /package/dist/plugin-sdk/{media-understanding → stt}/providers/shared.d.ts +0 -0
- /package/dist/{plugins-allowlist-Cf3EjAjw.js → plugins-allowlist-A38nxBRG.js} +0 -0
- /package/dist/{plugins-allowlist-Dml1TRY5.js → plugins-allowlist-D2tS9tcu.js} +0 -0
- /package/dist/{polls-CwwHzYBM.js → polls-BLyT08ZI.js} +0 -0
- /package/dist/{polls-DdY_LCOM.js → polls-BmymsJEe.js} +0 -0
- /package/dist/{ports-lsof-Dv4WDRbi.js → ports-lsof-CDyv5GJd.js} +0 -0
- /package/dist/{process-scoped-map-C7KeadUK.js → process-scoped-map-BCJR56ZB.js} +0 -0
- /package/dist/{process-scoped-map-CuVgan0a.js → process-scoped-map-Cb1EHPyN.js} +0 -0
- /package/dist/{program-context-Bqg7MHJh.js → program-context-DlXnmuB7.js} +0 -0
- /package/dist/{progress-DSHP8RB4.js → progress-DRLmcFiG.js} +0 -0
- /package/dist/{prompt-B2SgjtOJ.js → prompt-BRGfic91.js} +0 -0
- /package/dist/{prompt-style-D-ViRLW_.js → prompt-style-CUuA6OCy.js} +0 -0
- /package/dist/{provider-utils-FaBmofiq.js → provider-utils-C9kBVF1f.js} +0 -0
- /package/dist/{proxy-BUoQO1tr.js → proxy-BMJL0Qog.js} +0 -0
- /package/dist/{proxy-dRhp8Ykw.js → proxy-D-qGA1vm.js} +0 -0
- /package/dist/{pw-ai-state-Cg1RrEiW.js → pw-ai-state--TxTVwRW.js} +0 -0
- /package/dist/{pw-ai-state-DidjiYBK.js → pw-ai-state-CwXeO5d0.js} +0 -0
- /package/dist/{redact-BlqmrEU3.js → redact-BW8tobyp.js} +0 -0
- /package/dist/{redact-identifier-BTIWtaa-.js → redact-identifier-Bv5SUUw-.js} +0 -0
- /package/dist/{remoteclaw-root-CtzHY_u8.js → remoteclaw-root-BfPjgewe.js} +0 -0
- /package/dist/{remoteclaw-root-bO85B6Kq.js → remoteclaw-root-E4-hmb4E.js} +0 -0
- /package/dist/{render-DrBfVs0u.js → render-BhKzKdV0.js} +0 -0
- /package/dist/{render-uf6PvGMV.js → render-e7fENCYH.js} +0 -0
- /package/dist/{retry-CByUYDAZ.js → retry-BWv_fy4u.js} +0 -0
- /package/dist/{runtime-guard-D-cp6ZAE.js → runtime-guard-Bhx-pb8_.js} +0 -0
- /package/dist/{secret-equal-CF39pFqv.js → secret-equal-D6AoXne1.js} +0 -0
- /package/dist/{secret-equal-D7A3Bol7.js → secret-equal-DLnUuWM3.js} +0 -0
- /package/dist/{secure-random-BOP0UuZY.js → secure-random-Ba4Y5xG5.js} +0 -0
- /package/dist/{secure-random-_dzDDlFo.js → secure-random-CRVHgtmO.js} +0 -0
- /package/dist/{session-key-C2n-VILA.js → session-key-CgKWfjoZ.js} +0 -0
- /package/dist/{stagger-CjeisVRF.js → stagger--wvODnNe.js} +0 -0
- /package/dist/{stagger-Cu9_3JD_.js → stagger-BLmTO4cK.js} +0 -0
- /package/dist/{status-DaSGMHlt.js → status-1zVD-Clq.js} +0 -0
- /package/dist/{status-bTdQW3Mt.js → status-BtRY0nXQ.js} +0 -0
- /package/dist/{strip-inbound-meta-0cvL6itU.js → strip-inbound-meta-zmUXypSS.js} +0 -0
- /package/dist/{strip-inbound-meta-DuDjnGjC.js → strip-inbound-meta-zqtN9FTK.js} +0 -0
- /package/dist/{table-iXOQchYB.js → table-On3hkCqi.js} +0 -0
- /package/dist/{target-errors-DdIAPcMM.js → target-errors-GZXDqlUu.js} +0 -0
- /package/dist/{targets-CE4AYRI9.js → targets-B46m7u5J.js} +0 -0
- /package/dist/{targets-B_d_1z3N.js → targets-D01MJGnh.js} +0 -0
- /package/dist/{targets-WSwPflb6.js → targets-D7PT_rdO.js} +0 -0
- /package/dist/{text-format-BQ3z_OXA.js → text-format-DarxU3JH.js} +0 -0
- /package/dist/{text-format-CahQpVRb.js → text-format-Ds92M9UT.js} +0 -0
- /package/dist/{tokens-gcZ7MOvD.js → tokens-Dw7ZdYwT.js} +0 -0
- /package/dist/{usage-C1lHaofV.js → usage-BIzKZ5dT.js} +0 -0
- /package/dist/{usage-CRJFqYf8.js → usage-BvZOzIC7.js} +0 -0
- /package/dist/{usage-format-Bs8DkQtr.js → usage-format-CmniSPCG.js} +0 -0
- /package/dist/{usage-format-CRVpDVj1.js → usage-format-D_KQYQ-w.js} +0 -0
- /package/dist/{version-Ba6dSSl9.js → version-CVMnqdzu.js} +0 -0
- /package/dist/{widearea-dns-C5Fr8Rr1.js → widearea-dns-D01FFYZ8.js} +0 -0
- /package/dist/{workspace-BIiYRjA3.js → workspace-BJCKO8Ns.js} +0 -0
- /package/dist/{workspace-DkGLVfOl.js → workspace-BisvA9oA.js} +0 -0
- /package/dist/{wsl-mFuShVrc.js → wsl-PDLKeX04.js} +0 -0
- /package/dist/{wsl-Cs-gowFJ.js → wsl-kFaeW76c.js} +0 -0
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<picture>
|
|
5
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/remoteclaw/remoteclaw/main/docs/assets/remoteclaw-logo-text.png">
|
|
6
|
-
<img src="https://raw.githubusercontent.com/remoteclaw/remoteclaw/main/docs/assets/remoteclaw-logo-text-dark.png" alt="RemoteClaw" width="500">
|
|
5
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/remoteclaw/remoteclaw/main/docs/public/assets/remoteclaw-logo-text.png">
|
|
6
|
+
<img src="https://raw.githubusercontent.com/remoteclaw/remoteclaw/main/docs/public/assets/remoteclaw-logo-text-dark.png" alt="RemoteClaw" width="500">
|
|
7
7
|
</picture>
|
|
8
8
|
</p>
|
|
9
9
|
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { p as resolveOAuthDir } from "./paths-DHuXVC00.js";
|
|
2
|
+
import { E as info, N as success, R as getChildLogger, _ as resolveUserPath, d as jidToE164 } from "./utils-DPoNpP7D.js";
|
|
3
|
+
import { i as defaultRuntime } from "./ansi-DtaiOnt1.js";
|
|
4
|
+
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-CgKWfjoZ.js";
|
|
5
|
+
import { t as resolveAccountEntry } from "./account-lookup-CIY_RKhi.js";
|
|
6
|
+
import { t as formatCliCommand } from "./command-format-Dntg_tnC.js";
|
|
7
|
+
import fs from "node:fs";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import fs$1 from "node:fs/promises";
|
|
10
|
+
|
|
11
|
+
//#region src/channels/plugins/account-helpers.ts
|
|
12
|
+
function createAccountListHelpers(channelKey) {
|
|
13
|
+
function listConfiguredAccountIds(cfg) {
|
|
14
|
+
const accounts = (cfg.channels?.[channelKey])?.accounts;
|
|
15
|
+
if (!accounts || typeof accounts !== "object") return [];
|
|
16
|
+
return Object.keys(accounts).filter(Boolean);
|
|
17
|
+
}
|
|
18
|
+
function listAccountIds(cfg) {
|
|
19
|
+
const ids = listConfiguredAccountIds(cfg);
|
|
20
|
+
if (ids.length === 0) return [DEFAULT_ACCOUNT_ID];
|
|
21
|
+
return ids.toSorted((a, b) => a.localeCompare(b));
|
|
22
|
+
}
|
|
23
|
+
function resolveDefaultAccountId(cfg) {
|
|
24
|
+
const ids = listAccountIds(cfg);
|
|
25
|
+
if (ids.includes(DEFAULT_ACCOUNT_ID)) return DEFAULT_ACCOUNT_ID;
|
|
26
|
+
return ids[0] ?? DEFAULT_ACCOUNT_ID;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
listConfiguredAccountIds,
|
|
30
|
+
listAccountIds,
|
|
31
|
+
resolveDefaultAccountId
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/web/auth-store.ts
|
|
37
|
+
function resolveDefaultWebAuthDir() {
|
|
38
|
+
return path.join(resolveOAuthDir(), "whatsapp", DEFAULT_ACCOUNT_ID);
|
|
39
|
+
}
|
|
40
|
+
const WA_WEB_AUTH_DIR = resolveDefaultWebAuthDir();
|
|
41
|
+
function resolveWebCredsPath(authDir) {
|
|
42
|
+
return path.join(authDir, "creds.json");
|
|
43
|
+
}
|
|
44
|
+
function resolveWebCredsBackupPath(authDir) {
|
|
45
|
+
return path.join(authDir, "creds.json.bak");
|
|
46
|
+
}
|
|
47
|
+
function hasWebCredsSync(authDir) {
|
|
48
|
+
try {
|
|
49
|
+
const stats = fs.statSync(resolveWebCredsPath(authDir));
|
|
50
|
+
return stats.isFile() && stats.size > 1;
|
|
51
|
+
} catch {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function readCredsJsonRaw(filePath) {
|
|
56
|
+
try {
|
|
57
|
+
if (!fs.existsSync(filePath)) return null;
|
|
58
|
+
const stats = fs.statSync(filePath);
|
|
59
|
+
if (!stats.isFile() || stats.size <= 1) return null;
|
|
60
|
+
return fs.readFileSync(filePath, "utf-8");
|
|
61
|
+
} catch {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function maybeRestoreCredsFromBackup(authDir) {
|
|
66
|
+
const logger = getChildLogger({ module: "web-session" });
|
|
67
|
+
try {
|
|
68
|
+
const credsPath = resolveWebCredsPath(authDir);
|
|
69
|
+
const backupPath = resolveWebCredsBackupPath(authDir);
|
|
70
|
+
const raw = readCredsJsonRaw(credsPath);
|
|
71
|
+
if (raw) {
|
|
72
|
+
JSON.parse(raw);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const backupRaw = readCredsJsonRaw(backupPath);
|
|
76
|
+
if (!backupRaw) return;
|
|
77
|
+
JSON.parse(backupRaw);
|
|
78
|
+
fs.copyFileSync(backupPath, credsPath);
|
|
79
|
+
try {
|
|
80
|
+
fs.chmodSync(credsPath, 384);
|
|
81
|
+
} catch {}
|
|
82
|
+
logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
|
|
83
|
+
} catch {}
|
|
84
|
+
}
|
|
85
|
+
async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
86
|
+
const resolvedAuthDir = resolveUserPath(authDir);
|
|
87
|
+
maybeRestoreCredsFromBackup(resolvedAuthDir);
|
|
88
|
+
const credsPath = resolveWebCredsPath(resolvedAuthDir);
|
|
89
|
+
try {
|
|
90
|
+
await fs$1.access(resolvedAuthDir);
|
|
91
|
+
} catch {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
try {
|
|
95
|
+
const stats = await fs$1.stat(credsPath);
|
|
96
|
+
if (!stats.isFile() || stats.size <= 1) return false;
|
|
97
|
+
const raw = await fs$1.readFile(credsPath, "utf-8");
|
|
98
|
+
JSON.parse(raw);
|
|
99
|
+
return true;
|
|
100
|
+
} catch {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
async function clearLegacyBaileysAuthState(authDir) {
|
|
105
|
+
const entries = await fs$1.readdir(authDir, { withFileTypes: true });
|
|
106
|
+
const shouldDelete = (name) => {
|
|
107
|
+
if (name === "oauth.json") return false;
|
|
108
|
+
if (name === "creds.json" || name === "creds.json.bak") return true;
|
|
109
|
+
if (!name.endsWith(".json")) return false;
|
|
110
|
+
return /^(app-state-sync|session|sender-key|pre-key)-/.test(name);
|
|
111
|
+
};
|
|
112
|
+
await Promise.all(entries.map(async (entry) => {
|
|
113
|
+
if (!entry.isFile()) return;
|
|
114
|
+
if (!shouldDelete(entry.name)) return;
|
|
115
|
+
await fs$1.rm(path.join(authDir, entry.name), { force: true });
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
async function logoutWeb(params) {
|
|
119
|
+
const runtime = params.runtime ?? defaultRuntime;
|
|
120
|
+
const resolvedAuthDir = resolveUserPath(params.authDir ?? resolveDefaultWebAuthDir());
|
|
121
|
+
if (!await webAuthExists(resolvedAuthDir)) {
|
|
122
|
+
runtime.log(info("No WhatsApp Web session found; nothing to delete."));
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
|
|
126
|
+
else await fs$1.rm(resolvedAuthDir, {
|
|
127
|
+
recursive: true,
|
|
128
|
+
force: true
|
|
129
|
+
});
|
|
130
|
+
runtime.log(success("Cleared WhatsApp Web credentials."));
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
134
|
+
try {
|
|
135
|
+
const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
|
|
136
|
+
if (!fs.existsSync(credsPath)) return {
|
|
137
|
+
e164: null,
|
|
138
|
+
jid: null
|
|
139
|
+
};
|
|
140
|
+
const raw = fs.readFileSync(credsPath, "utf-8");
|
|
141
|
+
const jid = JSON.parse(raw)?.me?.id ?? null;
|
|
142
|
+
return {
|
|
143
|
+
e164: jid ? jidToE164(jid, { authDir }) : null,
|
|
144
|
+
jid
|
|
145
|
+
};
|
|
146
|
+
} catch {
|
|
147
|
+
return {
|
|
148
|
+
e164: null,
|
|
149
|
+
jid: null
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Return the age (in milliseconds) of the cached WhatsApp web auth state, or null when missing.
|
|
155
|
+
* Helpful for heartbeats/observability to spot stale credentials.
|
|
156
|
+
*/
|
|
157
|
+
function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
|
|
158
|
+
try {
|
|
159
|
+
const stats = fs.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
|
|
160
|
+
return Date.now() - stats.mtimeMs;
|
|
161
|
+
} catch {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function logWebSelfId(authDir = resolveDefaultWebAuthDir(), runtime = defaultRuntime, includeChannelPrefix = false) {
|
|
166
|
+
const { e164, jid } = readWebSelfId(authDir);
|
|
167
|
+
const details = e164 || jid ? `${e164 ?? "unknown"}${jid ? ` (jid ${jid})` : ""}` : "unknown";
|
|
168
|
+
const prefix = includeChannelPrefix ? "Web Channel: " : "";
|
|
169
|
+
runtime.log(info(`${prefix}${details}`));
|
|
170
|
+
}
|
|
171
|
+
async function pickWebChannel(pref, authDir = resolveDefaultWebAuthDir()) {
|
|
172
|
+
const choice = pref === "auto" ? "web" : pref;
|
|
173
|
+
if (!await webAuthExists(authDir)) throw new Error(`No WhatsApp Web session found. Run \`${formatCliCommand("remoteclaw channels login --channel whatsapp --verbose")}\` to link.`);
|
|
174
|
+
return choice;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/web/accounts.ts
|
|
179
|
+
const { listConfiguredAccountIds, listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("whatsapp");
|
|
180
|
+
const listWhatsAppAccountIds = listAccountIds;
|
|
181
|
+
const resolveDefaultWhatsAppAccountId = resolveDefaultAccountId;
|
|
182
|
+
function listWhatsAppAuthDirs(cfg) {
|
|
183
|
+
const oauthDir = resolveOAuthDir();
|
|
184
|
+
const whatsappDir = path.join(oauthDir, "whatsapp");
|
|
185
|
+
const authDirs = new Set([oauthDir, path.join(whatsappDir, DEFAULT_ACCOUNT_ID)]);
|
|
186
|
+
const accountIds = listConfiguredAccountIds(cfg);
|
|
187
|
+
for (const accountId of accountIds) authDirs.add(resolveWhatsAppAuthDir({
|
|
188
|
+
cfg,
|
|
189
|
+
accountId
|
|
190
|
+
}).authDir);
|
|
191
|
+
try {
|
|
192
|
+
const entries = fs.readdirSync(whatsappDir, { withFileTypes: true });
|
|
193
|
+
for (const entry of entries) {
|
|
194
|
+
if (!entry.isDirectory()) continue;
|
|
195
|
+
authDirs.add(path.join(whatsappDir, entry.name));
|
|
196
|
+
}
|
|
197
|
+
} catch {}
|
|
198
|
+
return Array.from(authDirs);
|
|
199
|
+
}
|
|
200
|
+
function hasAnyWhatsAppAuth(cfg) {
|
|
201
|
+
return listWhatsAppAuthDirs(cfg).some((authDir) => hasWebCredsSync(authDir));
|
|
202
|
+
}
|
|
203
|
+
function resolveAccountConfig(cfg, accountId) {
|
|
204
|
+
return resolveAccountEntry(cfg.channels?.whatsapp?.accounts, accountId);
|
|
205
|
+
}
|
|
206
|
+
function resolveDefaultAuthDir(accountId) {
|
|
207
|
+
return path.join(resolveOAuthDir(), "whatsapp", normalizeAccountId(accountId));
|
|
208
|
+
}
|
|
209
|
+
function resolveLegacyAuthDir() {
|
|
210
|
+
return resolveOAuthDir();
|
|
211
|
+
}
|
|
212
|
+
function legacyAuthExists(authDir) {
|
|
213
|
+
try {
|
|
214
|
+
return fs.existsSync(path.join(authDir, "creds.json"));
|
|
215
|
+
} catch {
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function resolveWhatsAppAuthDir(params) {
|
|
220
|
+
const accountId = params.accountId.trim() || DEFAULT_ACCOUNT_ID;
|
|
221
|
+
const configured = resolveAccountConfig(params.cfg, accountId)?.authDir?.trim();
|
|
222
|
+
if (configured) return {
|
|
223
|
+
authDir: resolveUserPath(configured),
|
|
224
|
+
isLegacy: false
|
|
225
|
+
};
|
|
226
|
+
const defaultDir = resolveDefaultAuthDir(accountId);
|
|
227
|
+
if (accountId === DEFAULT_ACCOUNT_ID) {
|
|
228
|
+
const legacyDir = resolveLegacyAuthDir();
|
|
229
|
+
if (legacyAuthExists(legacyDir) && !legacyAuthExists(defaultDir)) return {
|
|
230
|
+
authDir: legacyDir,
|
|
231
|
+
isLegacy: true
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
authDir: defaultDir,
|
|
236
|
+
isLegacy: false
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function resolveWhatsAppAccount(params) {
|
|
240
|
+
const rootCfg = params.cfg.channels?.whatsapp;
|
|
241
|
+
const accountId = params.accountId?.trim() || resolveDefaultWhatsAppAccountId(params.cfg);
|
|
242
|
+
const accountCfg = resolveAccountConfig(params.cfg, accountId);
|
|
243
|
+
const enabled = accountCfg?.enabled !== false;
|
|
244
|
+
const { authDir, isLegacy } = resolveWhatsAppAuthDir({
|
|
245
|
+
cfg: params.cfg,
|
|
246
|
+
accountId
|
|
247
|
+
});
|
|
248
|
+
return {
|
|
249
|
+
accountId,
|
|
250
|
+
name: accountCfg?.name?.trim() || void 0,
|
|
251
|
+
enabled,
|
|
252
|
+
sendReadReceipts: accountCfg?.sendReadReceipts ?? rootCfg?.sendReadReceipts ?? true,
|
|
253
|
+
messagePrefix: accountCfg?.messagePrefix ?? rootCfg?.messagePrefix ?? params.cfg.messages?.messagePrefix,
|
|
254
|
+
authDir,
|
|
255
|
+
isLegacyAuthDir: isLegacy,
|
|
256
|
+
selfChatMode: accountCfg?.selfChatMode ?? rootCfg?.selfChatMode,
|
|
257
|
+
dmPolicy: accountCfg?.dmPolicy ?? rootCfg?.dmPolicy,
|
|
258
|
+
allowFrom: accountCfg?.allowFrom ?? rootCfg?.allowFrom,
|
|
259
|
+
groupAllowFrom: accountCfg?.groupAllowFrom ?? rootCfg?.groupAllowFrom,
|
|
260
|
+
groupPolicy: accountCfg?.groupPolicy ?? rootCfg?.groupPolicy,
|
|
261
|
+
textChunkLimit: accountCfg?.textChunkLimit ?? rootCfg?.textChunkLimit,
|
|
262
|
+
chunkMode: accountCfg?.chunkMode ?? rootCfg?.chunkMode,
|
|
263
|
+
mediaMaxMb: accountCfg?.mediaMaxMb ?? rootCfg?.mediaMaxMb,
|
|
264
|
+
blockStreaming: accountCfg?.blockStreaming ?? rootCfg?.blockStreaming,
|
|
265
|
+
ackReaction: accountCfg?.ackReaction ?? rootCfg?.ackReaction,
|
|
266
|
+
groups: accountCfg?.groups ?? rootCfg?.groups,
|
|
267
|
+
debounceMs: accountCfg?.debounceMs ?? rootCfg?.debounceMs
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
//#endregion
|
|
272
|
+
export { webAuthExists as _, resolveWhatsAppAuthDir as a, logWebSelfId as c, pickWebChannel as d, readCredsJsonRaw as f, resolveWebCredsPath as g, resolveWebCredsBackupPath as h, resolveWhatsAppAccount as i, logoutWeb as l, resolveDefaultWebAuthDir as m, listWhatsAppAccountIds as n, WA_WEB_AUTH_DIR as o, readWebSelfId as p, resolveDefaultWhatsAppAccountId as r, getWebAuthAgeMs as s, hasAnyWhatsAppAuth as t, maybeRestoreCredsFromBackup as u, createAccountListHelpers as v };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { n as isTruthyEnvValue, o as createSubsystemLogger } from "./entry.js";
|
|
2
|
+
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-BF-9YzxC.js";
|
|
3
|
+
import { t as resolveAccountEntry } from "./account-lookup-C0ndrpt-.js";
|
|
4
|
+
import { i as resolveDefaultAgentBoundAccountId, r as listBoundAccountIds } from "./bindings-C_CjV_Hn.js";
|
|
5
|
+
import fs from "node:fs";
|
|
6
|
+
import util from "node:util";
|
|
7
|
+
|
|
8
|
+
//#region src/channels/plugins/account-action-gate.ts
|
|
9
|
+
function createAccountActionGate(params) {
|
|
10
|
+
return (key, defaultValue = true) => {
|
|
11
|
+
const accountValue = params.accountActions?.[key];
|
|
12
|
+
if (accountValue !== void 0) return accountValue;
|
|
13
|
+
const baseValue = params.baseActions?.[key];
|
|
14
|
+
if (baseValue !== void 0) return baseValue;
|
|
15
|
+
return defaultValue;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/telegram/token.ts
|
|
21
|
+
function resolveTelegramToken(cfg, opts = {}) {
|
|
22
|
+
const accountId = normalizeAccountId(opts.accountId);
|
|
23
|
+
const telegramCfg = cfg?.channels?.telegram;
|
|
24
|
+
const resolveAccountCfg = (id) => {
|
|
25
|
+
const accounts = telegramCfg?.accounts;
|
|
26
|
+
if (!accounts || typeof accounts !== "object" || Array.isArray(accounts)) return;
|
|
27
|
+
const direct = accounts[id];
|
|
28
|
+
if (direct) return direct;
|
|
29
|
+
const matchKey = Object.keys(accounts).find((key) => normalizeAccountId(key) === id);
|
|
30
|
+
return matchKey ? accounts[matchKey] : void 0;
|
|
31
|
+
};
|
|
32
|
+
const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
|
|
33
|
+
const accountTokenFile = accountCfg?.tokenFile?.trim();
|
|
34
|
+
if (accountTokenFile) {
|
|
35
|
+
if (!fs.existsSync(accountTokenFile)) {
|
|
36
|
+
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
|
|
37
|
+
return {
|
|
38
|
+
token: "",
|
|
39
|
+
source: "none"
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
const token = fs.readFileSync(accountTokenFile, "utf-8").trim();
|
|
44
|
+
if (token) return {
|
|
45
|
+
token,
|
|
46
|
+
source: "tokenFile"
|
|
47
|
+
};
|
|
48
|
+
} catch (err) {
|
|
49
|
+
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile read failed: ${String(err)}`);
|
|
50
|
+
return {
|
|
51
|
+
token: "",
|
|
52
|
+
source: "none"
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
token: "",
|
|
57
|
+
source: "none"
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const accountToken = accountCfg?.botToken?.trim();
|
|
61
|
+
if (accountToken) return {
|
|
62
|
+
token: accountToken,
|
|
63
|
+
source: "config"
|
|
64
|
+
};
|
|
65
|
+
const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
|
|
66
|
+
const tokenFile = telegramCfg?.tokenFile?.trim();
|
|
67
|
+
if (tokenFile && allowEnv) {
|
|
68
|
+
if (!fs.existsSync(tokenFile)) {
|
|
69
|
+
opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
|
|
70
|
+
return {
|
|
71
|
+
token: "",
|
|
72
|
+
source: "none"
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
try {
|
|
76
|
+
const token = fs.readFileSync(tokenFile, "utf-8").trim();
|
|
77
|
+
if (token) return {
|
|
78
|
+
token,
|
|
79
|
+
source: "tokenFile"
|
|
80
|
+
};
|
|
81
|
+
} catch (err) {
|
|
82
|
+
opts.logMissingFile?.(`channels.telegram.tokenFile read failed: ${String(err)}`);
|
|
83
|
+
return {
|
|
84
|
+
token: "",
|
|
85
|
+
source: "none"
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const configToken = telegramCfg?.botToken?.trim();
|
|
90
|
+
if (configToken && allowEnv) return {
|
|
91
|
+
token: configToken,
|
|
92
|
+
source: "config"
|
|
93
|
+
};
|
|
94
|
+
const envToken = allowEnv ? (opts.envToken ?? process.env.TELEGRAM_BOT_TOKEN)?.trim() : "";
|
|
95
|
+
if (envToken) return {
|
|
96
|
+
token: envToken,
|
|
97
|
+
source: "env"
|
|
98
|
+
};
|
|
99
|
+
return {
|
|
100
|
+
token: "",
|
|
101
|
+
source: "none"
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/telegram/accounts.ts
|
|
107
|
+
const log = createSubsystemLogger("telegram/accounts");
|
|
108
|
+
function formatDebugArg(value) {
|
|
109
|
+
if (typeof value === "string") return value;
|
|
110
|
+
if (value instanceof Error) return value.stack ?? value.message;
|
|
111
|
+
return util.inspect(value, {
|
|
112
|
+
colors: false,
|
|
113
|
+
depth: null,
|
|
114
|
+
compact: true,
|
|
115
|
+
breakLength: Infinity
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
const debugAccounts = (...args) => {
|
|
119
|
+
if (isTruthyEnvValue(process.env.REMOTECLAW_DEBUG_TELEGRAM_ACCOUNTS)) {
|
|
120
|
+
const parts = args.map((arg) => formatDebugArg(arg));
|
|
121
|
+
log.warn(parts.join(" ").trim());
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
function listConfiguredAccountIds(cfg) {
|
|
125
|
+
const accounts = cfg.channels?.telegram?.accounts;
|
|
126
|
+
if (!accounts || typeof accounts !== "object") return [];
|
|
127
|
+
const ids = /* @__PURE__ */ new Set();
|
|
128
|
+
for (const key of Object.keys(accounts)) {
|
|
129
|
+
if (!key) continue;
|
|
130
|
+
ids.add(normalizeAccountId(key));
|
|
131
|
+
}
|
|
132
|
+
return [...ids];
|
|
133
|
+
}
|
|
134
|
+
function listTelegramAccountIds(cfg) {
|
|
135
|
+
const ids = Array.from(new Set([...listConfiguredAccountIds(cfg), ...listBoundAccountIds(cfg, "telegram")]));
|
|
136
|
+
debugAccounts("listTelegramAccountIds", ids);
|
|
137
|
+
if (ids.length === 0) return [DEFAULT_ACCOUNT_ID];
|
|
138
|
+
return ids.toSorted((a, b) => a.localeCompare(b));
|
|
139
|
+
}
|
|
140
|
+
function resolveDefaultTelegramAccountId(cfg) {
|
|
141
|
+
const boundDefault = resolveDefaultAgentBoundAccountId(cfg, "telegram");
|
|
142
|
+
if (boundDefault) return boundDefault;
|
|
143
|
+
const ids = listTelegramAccountIds(cfg);
|
|
144
|
+
if (ids.includes(DEFAULT_ACCOUNT_ID)) return DEFAULT_ACCOUNT_ID;
|
|
145
|
+
return ids[0] ?? DEFAULT_ACCOUNT_ID;
|
|
146
|
+
}
|
|
147
|
+
function resolveAccountConfig(cfg, accountId) {
|
|
148
|
+
const normalized = normalizeAccountId(accountId);
|
|
149
|
+
return resolveAccountEntry(cfg.channels?.telegram?.accounts, normalized);
|
|
150
|
+
}
|
|
151
|
+
function mergeTelegramAccountConfig(cfg, accountId) {
|
|
152
|
+
const { accounts: _ignored, ...base } = cfg.channels?.telegram ?? {};
|
|
153
|
+
const account = resolveAccountConfig(cfg, accountId) ?? {};
|
|
154
|
+
return {
|
|
155
|
+
...base,
|
|
156
|
+
...account
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function createTelegramActionGate(params) {
|
|
160
|
+
const accountId = normalizeAccountId(params.accountId);
|
|
161
|
+
return createAccountActionGate({
|
|
162
|
+
baseActions: params.cfg.channels?.telegram?.actions,
|
|
163
|
+
accountActions: resolveAccountConfig(params.cfg, accountId)?.actions
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function resolveTelegramAccount(params) {
|
|
167
|
+
const hasExplicitAccountId = Boolean(params.accountId?.trim());
|
|
168
|
+
const baseEnabled = params.cfg.channels?.telegram?.enabled !== false;
|
|
169
|
+
const resolve = (accountId) => {
|
|
170
|
+
const merged = mergeTelegramAccountConfig(params.cfg, accountId);
|
|
171
|
+
const accountEnabled = merged.enabled !== false;
|
|
172
|
+
const enabled = baseEnabled && accountEnabled;
|
|
173
|
+
const tokenResolution = resolveTelegramToken(params.cfg, { accountId });
|
|
174
|
+
debugAccounts("resolve", {
|
|
175
|
+
accountId,
|
|
176
|
+
enabled,
|
|
177
|
+
tokenSource: tokenResolution.source
|
|
178
|
+
});
|
|
179
|
+
return {
|
|
180
|
+
accountId,
|
|
181
|
+
enabled,
|
|
182
|
+
name: merged.name?.trim() || void 0,
|
|
183
|
+
token: tokenResolution.token,
|
|
184
|
+
tokenSource: tokenResolution.source,
|
|
185
|
+
config: merged
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
const primary = resolve(normalizeAccountId(params.accountId));
|
|
189
|
+
if (hasExplicitAccountId) return primary;
|
|
190
|
+
if (primary.tokenSource !== "none") return primary;
|
|
191
|
+
const fallbackId = resolveDefaultTelegramAccountId(params.cfg);
|
|
192
|
+
if (fallbackId === primary.accountId) return primary;
|
|
193
|
+
const fallback = resolve(fallbackId);
|
|
194
|
+
if (fallback.tokenSource === "none") return primary;
|
|
195
|
+
return fallback;
|
|
196
|
+
}
|
|
197
|
+
function listEnabledTelegramAccounts(cfg) {
|
|
198
|
+
return listTelegramAccountIds(cfg).map((accountId) => resolveTelegramAccount({
|
|
199
|
+
cfg,
|
|
200
|
+
accountId
|
|
201
|
+
})).filter((account) => account.enabled);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
//#endregion
|
|
205
|
+
export { resolveTelegramAccount as a, resolveDefaultTelegramAccountId as i, listEnabledTelegramAccounts as n, resolveTelegramToken as o, listTelegramAccountIds as r, createAccountActionGate as s, createTelegramActionGate as t };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-BAW_f3DI.js";
|
|
2
|
+
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-CgKWfjoZ.js";
|
|
3
|
+
import { t as isTruthyEnvValue } from "./env-DyyqmxSM.js";
|
|
4
|
+
import { t as resolveAccountEntry } from "./account-lookup-CIY_RKhi.js";
|
|
5
|
+
import { i as resolveDefaultAgentBoundAccountId, r as listBoundAccountIds } from "./bindings-C3lpuVzp.js";
|
|
6
|
+
import fs from "node:fs";
|
|
7
|
+
import util from "node:util";
|
|
8
|
+
|
|
9
|
+
//#region src/channels/plugins/account-action-gate.ts
|
|
10
|
+
function createAccountActionGate(params) {
|
|
11
|
+
return (key, defaultValue = true) => {
|
|
12
|
+
const accountValue = params.accountActions?.[key];
|
|
13
|
+
if (accountValue !== void 0) return accountValue;
|
|
14
|
+
const baseValue = params.baseActions?.[key];
|
|
15
|
+
if (baseValue !== void 0) return baseValue;
|
|
16
|
+
return defaultValue;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/telegram/token.ts
|
|
22
|
+
function resolveTelegramToken(cfg, opts = {}) {
|
|
23
|
+
const accountId = normalizeAccountId(opts.accountId);
|
|
24
|
+
const telegramCfg = cfg?.channels?.telegram;
|
|
25
|
+
const resolveAccountCfg = (id) => {
|
|
26
|
+
const accounts = telegramCfg?.accounts;
|
|
27
|
+
if (!accounts || typeof accounts !== "object" || Array.isArray(accounts)) return;
|
|
28
|
+
const direct = accounts[id];
|
|
29
|
+
if (direct) return direct;
|
|
30
|
+
const matchKey = Object.keys(accounts).find((key) => normalizeAccountId(key) === id);
|
|
31
|
+
return matchKey ? accounts[matchKey] : void 0;
|
|
32
|
+
};
|
|
33
|
+
const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
|
|
34
|
+
const accountTokenFile = accountCfg?.tokenFile?.trim();
|
|
35
|
+
if (accountTokenFile) {
|
|
36
|
+
if (!fs.existsSync(accountTokenFile)) {
|
|
37
|
+
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
|
|
38
|
+
return {
|
|
39
|
+
token: "",
|
|
40
|
+
source: "none"
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
const token = fs.readFileSync(accountTokenFile, "utf-8").trim();
|
|
45
|
+
if (token) return {
|
|
46
|
+
token,
|
|
47
|
+
source: "tokenFile"
|
|
48
|
+
};
|
|
49
|
+
} catch (err) {
|
|
50
|
+
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile read failed: ${String(err)}`);
|
|
51
|
+
return {
|
|
52
|
+
token: "",
|
|
53
|
+
source: "none"
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
token: "",
|
|
58
|
+
source: "none"
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const accountToken = accountCfg?.botToken?.trim();
|
|
62
|
+
if (accountToken) return {
|
|
63
|
+
token: accountToken,
|
|
64
|
+
source: "config"
|
|
65
|
+
};
|
|
66
|
+
const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
|
|
67
|
+
const tokenFile = telegramCfg?.tokenFile?.trim();
|
|
68
|
+
if (tokenFile && allowEnv) {
|
|
69
|
+
if (!fs.existsSync(tokenFile)) {
|
|
70
|
+
opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
|
|
71
|
+
return {
|
|
72
|
+
token: "",
|
|
73
|
+
source: "none"
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
const token = fs.readFileSync(tokenFile, "utf-8").trim();
|
|
78
|
+
if (token) return {
|
|
79
|
+
token,
|
|
80
|
+
source: "tokenFile"
|
|
81
|
+
};
|
|
82
|
+
} catch (err) {
|
|
83
|
+
opts.logMissingFile?.(`channels.telegram.tokenFile read failed: ${String(err)}`);
|
|
84
|
+
return {
|
|
85
|
+
token: "",
|
|
86
|
+
source: "none"
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const configToken = telegramCfg?.botToken?.trim();
|
|
91
|
+
if (configToken && allowEnv) return {
|
|
92
|
+
token: configToken,
|
|
93
|
+
source: "config"
|
|
94
|
+
};
|
|
95
|
+
const envToken = allowEnv ? (opts.envToken ?? process.env.TELEGRAM_BOT_TOKEN)?.trim() : "";
|
|
96
|
+
if (envToken) return {
|
|
97
|
+
token: envToken,
|
|
98
|
+
source: "env"
|
|
99
|
+
};
|
|
100
|
+
return {
|
|
101
|
+
token: "",
|
|
102
|
+
source: "none"
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/telegram/accounts.ts
|
|
108
|
+
const log = createSubsystemLogger("telegram/accounts");
|
|
109
|
+
function formatDebugArg(value) {
|
|
110
|
+
if (typeof value === "string") return value;
|
|
111
|
+
if (value instanceof Error) return value.stack ?? value.message;
|
|
112
|
+
return util.inspect(value, {
|
|
113
|
+
colors: false,
|
|
114
|
+
depth: null,
|
|
115
|
+
compact: true,
|
|
116
|
+
breakLength: Infinity
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
const debugAccounts = (...args) => {
|
|
120
|
+
if (isTruthyEnvValue(process.env.REMOTECLAW_DEBUG_TELEGRAM_ACCOUNTS)) {
|
|
121
|
+
const parts = args.map((arg) => formatDebugArg(arg));
|
|
122
|
+
log.warn(parts.join(" ").trim());
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
function listConfiguredAccountIds(cfg) {
|
|
126
|
+
const accounts = cfg.channels?.telegram?.accounts;
|
|
127
|
+
if (!accounts || typeof accounts !== "object") return [];
|
|
128
|
+
const ids = /* @__PURE__ */ new Set();
|
|
129
|
+
for (const key of Object.keys(accounts)) {
|
|
130
|
+
if (!key) continue;
|
|
131
|
+
ids.add(normalizeAccountId(key));
|
|
132
|
+
}
|
|
133
|
+
return [...ids];
|
|
134
|
+
}
|
|
135
|
+
function listTelegramAccountIds(cfg) {
|
|
136
|
+
const ids = Array.from(new Set([...listConfiguredAccountIds(cfg), ...listBoundAccountIds(cfg, "telegram")]));
|
|
137
|
+
debugAccounts("listTelegramAccountIds", ids);
|
|
138
|
+
if (ids.length === 0) return [DEFAULT_ACCOUNT_ID];
|
|
139
|
+
return ids.toSorted((a, b) => a.localeCompare(b));
|
|
140
|
+
}
|
|
141
|
+
function resolveDefaultTelegramAccountId(cfg) {
|
|
142
|
+
const boundDefault = resolveDefaultAgentBoundAccountId(cfg, "telegram");
|
|
143
|
+
if (boundDefault) return boundDefault;
|
|
144
|
+
const ids = listTelegramAccountIds(cfg);
|
|
145
|
+
if (ids.includes(DEFAULT_ACCOUNT_ID)) return DEFAULT_ACCOUNT_ID;
|
|
146
|
+
return ids[0] ?? DEFAULT_ACCOUNT_ID;
|
|
147
|
+
}
|
|
148
|
+
function resolveAccountConfig(cfg, accountId) {
|
|
149
|
+
const normalized = normalizeAccountId(accountId);
|
|
150
|
+
return resolveAccountEntry(cfg.channels?.telegram?.accounts, normalized);
|
|
151
|
+
}
|
|
152
|
+
function mergeTelegramAccountConfig(cfg, accountId) {
|
|
153
|
+
const { accounts: _ignored, ...base } = cfg.channels?.telegram ?? {};
|
|
154
|
+
const account = resolveAccountConfig(cfg, accountId) ?? {};
|
|
155
|
+
return {
|
|
156
|
+
...base,
|
|
157
|
+
...account
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function createTelegramActionGate(params) {
|
|
161
|
+
const accountId = normalizeAccountId(params.accountId);
|
|
162
|
+
return createAccountActionGate({
|
|
163
|
+
baseActions: params.cfg.channels?.telegram?.actions,
|
|
164
|
+
accountActions: resolveAccountConfig(params.cfg, accountId)?.actions
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function resolveTelegramAccount(params) {
|
|
168
|
+
const hasExplicitAccountId = Boolean(params.accountId?.trim());
|
|
169
|
+
const baseEnabled = params.cfg.channels?.telegram?.enabled !== false;
|
|
170
|
+
const resolve = (accountId) => {
|
|
171
|
+
const merged = mergeTelegramAccountConfig(params.cfg, accountId);
|
|
172
|
+
const accountEnabled = merged.enabled !== false;
|
|
173
|
+
const enabled = baseEnabled && accountEnabled;
|
|
174
|
+
const tokenResolution = resolveTelegramToken(params.cfg, { accountId });
|
|
175
|
+
debugAccounts("resolve", {
|
|
176
|
+
accountId,
|
|
177
|
+
enabled,
|
|
178
|
+
tokenSource: tokenResolution.source
|
|
179
|
+
});
|
|
180
|
+
return {
|
|
181
|
+
accountId,
|
|
182
|
+
enabled,
|
|
183
|
+
name: merged.name?.trim() || void 0,
|
|
184
|
+
token: tokenResolution.token,
|
|
185
|
+
tokenSource: tokenResolution.source,
|
|
186
|
+
config: merged
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
const primary = resolve(normalizeAccountId(params.accountId));
|
|
190
|
+
if (hasExplicitAccountId) return primary;
|
|
191
|
+
if (primary.tokenSource !== "none") return primary;
|
|
192
|
+
const fallbackId = resolveDefaultTelegramAccountId(params.cfg);
|
|
193
|
+
if (fallbackId === primary.accountId) return primary;
|
|
194
|
+
const fallback = resolve(fallbackId);
|
|
195
|
+
if (fallback.tokenSource === "none") return primary;
|
|
196
|
+
return fallback;
|
|
197
|
+
}
|
|
198
|
+
function listEnabledTelegramAccounts(cfg) {
|
|
199
|
+
return listTelegramAccountIds(cfg).map((accountId) => resolveTelegramAccount({
|
|
200
|
+
cfg,
|
|
201
|
+
accountId
|
|
202
|
+
})).filter((account) => account.enabled);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
//#endregion
|
|
206
|
+
export { resolveTelegramAccount as a, resolveDefaultTelegramAccountId as i, listEnabledTelegramAccounts as n, resolveTelegramToken as o, listTelegramAccountIds as r, createAccountActionGate as s, createTelegramActionGate as t };
|