remoteclaw 0.1.0-next.87fb2cd → 0.1.0-next.9da39bb
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 +1 -1
- package/dist/{accounts-Dn9h7HHT.js → accounts-B5BNJ_lk.js} +2 -2
- package/dist/{accounts-Bexa80SB.js → accounts-BvXnQloJ.js} +1 -1
- package/dist/{accounts-Cl_cFv9X.js → accounts-DOwpPNpJ.js} +2 -2
- package/dist/{accounts-B1aJFYXr.js → accounts-Y6fBCsx_.js} +2 -2
- package/dist/{ack-reactions-B11TAC2D.js → ack-reactions-BFKo3Koo.js} +1 -1
- package/dist/{ack-reactions-CDUSdN8O.js → ack-reactions-Dwyidw3T.js} +2 -2
- package/dist/{acp-cli-CA1xMmVo.js → acp-cli-BCyjX4K5.js} +4 -8
- package/dist/{acp-cli-Dr83tqAg.js → acp-cli-aE-ffske.js} +15 -19
- package/dist/{active-listener-VzhWW8W6.js → active-listener-COHBjEry.js} +1 -1
- package/dist/{agent-D2RVoS5g.js → agent-AIzSM1vK.js} +27 -55
- package/dist/{agent-CFKgqSEH.js → agent-CgX8kUig.js} +35 -63
- package/dist/{agent-helpers-CTx5KKJu.js → agent-helpers-D83kfcF9.js} +1 -207
- package/dist/{agent-helpers-D_9mS2Ti.js → agent-helpers-Dv4rPlt_.js} +2 -208
- package/dist/{agent-scope-C50VuLKh.js → agent-scope-BDF8U7HM.js} +1 -21
- package/dist/{agent-scope-9WY5O-KK.js → agent-scope-Dzc3Pxwr.js} +3 -23
- package/dist/{agents-BBXCuDMp.js → agents-DVBdkX-G.js} +8 -8
- package/dist/{agents.config-p3V3b9u6.js → agents.config-BgeMZRrc.js} +1 -1
- package/dist/{agents.config-BPGQ3Qyn.js → agents.config-SHo6gmD5.js} +2 -2
- package/dist/{audio-preflight-Dj6hBcFR.js → audio-preflight-BcEEwEC8.js} +11 -11
- package/dist/{audio-preflight-BwmCYeuM.js → audio-preflight-zKteixjl.js} +3 -3
- package/dist/{audit-DhIKIeXD.js → audit-BmJMYEgJ.js} +30 -19
- package/dist/{audit-qgtCT3ik.js → audit-CRs3V3Gm.js} +24 -13
- package/dist/{auth-C6VDYgb7.js → auth-BZ9W_93P.js} +4 -4
- package/dist/{auth-profiles-CeDgZz_7.js → auth-profiles-DJsaxEsz.js} +2 -2
- package/dist/{banner-HCssFZcB.js → banner-W9C_U_lK.js} +1 -1
- package/dist/{binaries-X6FW-wD4.js → binaries-DdAb_BxQ.js} +2 -2
- package/dist/{bindings-B582pDIa.js → bindings-C6J0GYWO.js} +3 -3
- package/dist/{bindings-CRU_udk8.js → bindings-D0yqi_XP.js} +1 -1
- package/dist/{bonjour-discovery-BtPaR8vb.js → bonjour-discovery-STZGcDQV.js} +2 -2
- package/dist/boot/handler.js +30 -57
- package/dist/{browser-cli-TB-GNoZq.js → browser-cli-BvaV-ivh.js} +17 -17
- package/dist/{browser-cli-HH45lxP0.js → browser-cli-DE-ol_Wn.js} +4 -4
- package/dist/build-info.json +3 -3
- package/dist/{call-ByOzoLDI.js → call-DStm6xNU.js} +8 -10
- package/dist/{call-BbwtB9Y-.js → call-VMoa73XV.js} +1 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-BqO6yem_.js → catalog-BVgiPlVN.js} +1 -1
- package/dist/{catalog-BY7OPtnz.js → catalog-DhWKDMFJ.js} +1 -1
- package/dist/{channel-account-context-CjXyzMXE.js → channel-account-context-BlOGpmo5.js} +2 -2
- package/dist/{channel-activity-hPfValKp.js → channel-activity-BZtWpdKA.js} +2 -2
- package/dist/{channel-activity-BeRrcCd8.js → channel-activity-Bb_Sbkt-.js} +2 -2
- package/dist/{channel-options-BQ61blla.js → channel-options-GJjALKXu.js} +3 -3
- package/dist/{channel-options-BLdLu0xk.js → channel-options-OcjVSFmE.js} +5 -5
- package/dist/{channel-selection-CJXZTxae.js → channel-selection-B5SqfNeA.js} +2 -2
- package/dist/{channel-selection-NNPbxnyZ.js → channel-selection-FwTh5pB-.js} +1 -1
- package/dist/{channel-web-DmhVkWbP.js → channel-web-BAXPDOsk.js} +18 -18
- package/dist/{channel-web-D1_mlyPg.js → channel-web-BoPiMjGj.js} +26 -26
- package/dist/{channels-cli-DAu1TXTH.js → channels-cli-CIQlC5iz.js} +52 -52
- package/dist/{channels-cli-C4O8pp1S.js → channels-cli-MR1Snp4Y.js} +87 -87
- package/dist/{channels-status-issues-BDAHISWe.js → channels-status-issues-DRBiGjad.js} +1 -1
- package/dist/{channels-status-issues-DwRDzwrV.js → channels-status-issues-DxKE4Gv8.js} +1 -1
- package/dist/{chat-envelope-el7Uo-Fe.js → chat-envelope-CRqgofiw.js} +1 -1
- package/dist/{chrome-CNDtczoM.js → chrome-BPS0qqQn.js} +4 -4
- package/dist/{chrome-CdcwZN9t.js → chrome-DrFJnK8A.js} +1 -1
- package/dist/{chunk-DAjFKt2g.js → chunk-DtPQ4ACP.js} +2 -2
- package/dist/{clack-prompter-CabwzmG4.js → clack-prompter-gcnWKHgT.js} +3 -3
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-D-Bz1t1R.js +130 -0
- package/dist/{cli-Ci4DmAyk.js → cli-DxIYdlMx.js} +41 -41
- package/dist/{clipboard-B2j4qGIl.js → clipboard-DyO56X0d.js} +1 -1
- package/dist/command-logger/handler.js +1 -1
- package/dist/{command-registry-DxsFXB5t.js → command-registry-B-ZqoIvL.js} +11 -11
- package/dist/{commands-C2uNKRTf.js → commands-CX-o6Gzn.js} +1 -1
- package/dist/{commands-CDonBOrw.js → commands-ChY7s9hy.js} +1 -1
- package/dist/{commands-registry-CWJv6xe2.js → commands-registry-C-NFTH7P.js} +4 -5
- package/dist/{commands-registry-BvESmXoK.js → commands-registry-C_sd8Lmg.js} +5 -6
- package/dist/{common-Cp3rsBqx.js → common-XY1OwAbh.js} +1 -1
- package/dist/{completion-cli-DD3pVpPn.js → completion-cli-BFZAm27l.js} +2 -2
- package/dist/{completion-cli-B-X5nwdT.js → completion-cli-UVOmQ6zG.js} +2 -2
- package/dist/{config-BqY7k-L8.js → config-BXKZbG-n.js} +24 -69
- package/dist/{config-FHu9Bn4R.js → config-CtIjLqOj.js} +21 -66
- package/dist/{config-cli-CPH_PfVk.js → config-cli-BTQy5H3-.js} +4 -4
- package/dist/{config-cli-Czvt02PC.js → config-cli-CRplAGa2.js} +10 -10
- package/dist/{config-guard-cB5a_ANg.js → config-guard-B6oyGiZ9.js} +2 -2
- package/dist/{config-guard-5oI2BiSY.js → config-guard-C485TINq.js} +21 -21
- package/dist/{config-validation-J3cJ0OCa.js → config-validation-BAktOB-P.js} +1 -1
- package/dist/{config-validation-BPNyd9_3.js → config-validation-BvZBGQog.js} +1 -1
- package/dist/{configure-DiQaHI3s.js → configure-BF69cahc.js} +17 -17
- package/dist/{configure-Bi_9d94n.js → configure-BSIKQq18.js} +10 -10
- package/dist/{constants-BmRFoHl0.js → constants-DQTT0rbk.js} +7 -4
- package/dist/{constants-C9WPAluB.js → constants-QiF_zDC2.js} +7 -4
- package/dist/{control-auth-q4zZXaoS.js → control-auth-ByQ2UTJl.js} +3 -3
- package/dist/{control-auth-D0tpV3ts.js → control-auth-CSw3eEqF.js} +1 -1
- package/dist/control-ui/assets/{index-B4ZM1lW1.js → index-CuY3pfh1.js} +798 -820
- package/dist/control-ui/assets/index-CuY3pfh1.js.map +1 -0
- package/dist/control-ui/assets/{index-PED72sKF.css → index-D_fjkN3g.css} +1 -1
- package/dist/control-ui/index.html +2 -2
- package/dist/{control-ui-assets-D4yaD8jm.js → control-ui-assets-GJ4R_9nc.js} +2 -2
- package/dist/{cron-cli-Bfh7ftYz.js → cron-cli-CZqe2JG5.js} +18 -18
- package/dist/{cron-cli-C8j_uslU.js → cron-cli-bjoM1LJG.js} +6 -6
- package/dist/{daemon-cli-lTsfNeDm.js → daemon-cli-C6yedkyX.js} +17 -17
- package/dist/{daemon-cli-DQFZB1yM.js → daemon-cli-C7WWH6Ep.js} +9 -9
- package/dist/daemon-cli.js +29 -82
- package/dist/{daemon-install-CcohRvKV.js → daemon-install-D_TMhoqo.js} +4 -4
- package/dist/{daemon-install-DrTvAWhM.js → daemon-install-PDNZKHDV.js} +11 -11
- package/dist/{daemon-install-helpers-DIUzSFG1.js → daemon-install-helpers-B3iDmuw1.js} +1 -1
- package/dist/{daemon-install-helpers-CFGAfRlj.js → daemon-install-helpers-CWPt9X4V.js} +2 -2
- package/dist/{deliver-912khjLK.js → deliver-BQagyoLa.js} +6 -6
- package/dist/{deliver-D78pwuPC.js → deliver-DjOzd2jc.js} +9 -9
- package/dist/{devices-cli-CstkYXzr.js → devices-cli-DLrY-vXI.js} +15 -15
- package/dist/{devices-cli-0qDhTgZR.js → devices-cli-a0bPBWE-.js} +3 -3
- package/dist/{diagnostics-VC0cz7kX.js → diagnostics-CgSF6bdG.js} +1 -1
- package/dist/{diagnostics-HGkN467d.js → diagnostics-pnhexb9O.js} +1 -1
- package/dist/{directory-cli-duhBZl2c.js → directory-cli-XQdcVHdI.js} +14 -14
- package/dist/{directory-cli-5YXdoVdn.js → directory-cli-hp37Nspg.js} +5 -5
- package/dist/{dm-policy-shared-D8lgnmrC.js → dm-policy-shared-38ZSwYRy.js} +2 -2
- package/dist/{dm-policy-shared-BBfEyAN1.js → dm-policy-shared-BZRzLFhP.js} +2 -2
- package/dist/{dns-cli-11CtErVU.js → dns-cli-D4vlN3bm.js} +2 -2
- package/dist/{dns-cli-Sr6SB9ei.js → dns-cli-_FTDx5xD.js} +9 -9
- package/dist/{dock-BqNINg7k.js → dock-BtLbLczG.js} +1 -1
- package/dist/{dock-O8ArYwed.js → dock-_qq4sBie.js} +6 -6
- package/dist/{doctor-completion-B1UlvZFx.js → doctor-completion-NWQY57nZ.js} +1 -1
- package/dist/{doctor-completion-C0j7b_f8.js → doctor-completion-Pc12ptB2.js} +2 -2
- package/dist/{doctor-config-flow-BiShkCxs.js → doctor-config-flow-D3NAVY4u.js} +8 -8
- package/dist/{doctor-config-flow-BVkHcvoj.js → doctor-config-flow-xcnm1Sg5.js} +6 -6
- package/dist/{enable-DMIq6evt.js → enable-CJBIf5Q9.js} +1 -1
- package/dist/entry.js +1 -3
- package/dist/{env-Br2Bl6Ht.js → env-DUb5GiQe.js} +1 -1
- package/dist/{exec-C6ACg_Mn.js → exec-D6PvFXKb.js} +1 -1
- package/dist/export-html/template.css +0 -36
- package/dist/export-html/template.js +1 -32
- package/dist/extensionAPI.js +78 -88
- package/dist/{fetch-Bmv93nu9.js → fetch-1v6uP2tC.js} +1 -1
- package/dist/{gateway-cli-DuMjB8Ff.js → gateway-cli-DK60ibmy.js} +130 -149
- package/dist/{gateway-cli-D4cDhvZx.js → gateway-cli-xnU8Zeob.js} +184 -203
- package/dist/{gateway-rpc-Dq44SkOv.js → gateway-rpc-b8DDxKNk.js} +1 -1
- package/dist/{gateway-rpc-B4jTtupy.js → gateway-rpc-lloSJpSO.js} +3 -3
- package/dist/{gmail-setup-utils-BPmUIqso.js → gmail-setup-utils-DcvTRsFv.js} +1 -1
- package/dist/{health-SOuaKNRa.js → health-CBn9k6sb.js} +18 -25
- package/dist/{health-wr-JDHlc.js → health-DvHxqlAs.js} +26 -33
- package/dist/{heartbeat-visibility-ossI_l4t.js → heartbeat-visibility-BjRX-UuR.js} +1 -1
- package/dist/{heartbeat-visibility-BxkZjE5m.js → heartbeat-visibility-DZoDleYM.js} +1 -1
- package/dist/{helpers-kkeXif0Q.js → helpers-CN0aEvFf.js} +1 -1
- package/dist/{hook-runner-global-DJ14gXFP.js → hook-runner-global-DVQOzWKP.js} +4 -4
- package/dist/{hooks-cli-eqPYjw4l.js → hooks-cli-BhK-Q2mO.js} +71 -71
- package/dist/{hooks-cli-BUTtESiX.js → hooks-cli-DdFgfE3a.js} +43 -43
- package/dist/{image-ops-DRdKC0uO.js → image-ops-DBBLmYIV.js} +1 -1
- package/dist/{import-DQ6NI4Fz.js → import-B6Xn6yAg.js} +82 -2
- package/dist/{import-Be73VPF2.js → import-D2W4jaSE.js} +84 -4
- package/dist/{inbound-path-policy-C_Qo8rqg.js → inbound-path-policy-gHabNHWN.js} +1 -1
- package/dist/index.js +82 -82
- package/dist/{inspect-Dt8hogS3.js → inspect-BAPmGK9E.js} +6 -6
- package/dist/{inspect-B1Fq39RC.js → inspect-Cm2C9Ogh.js} +6 -6
- package/dist/{installs-pWdqG8HL.js → installs-BCAutccF.js} +1 -1
- package/dist/{installs-C8apg11p.js → installs-D1q4YUri.js} +2 -2
- package/dist/{ir-Ch9FC9Z_.js → ir-BpaWuxJC.js} +3 -3
- package/dist/{loader-u9FC6kYG.js → loader-D8Fp-_-g.js} +88 -309
- package/dist/{loader-Cuq-saEl.js → loader-DMtv1-eP.js} +70 -291
- package/dist/{local-roots-BrH0Q63K.js → local-roots-CWQNmgUt.js} +1 -1
- package/dist/{local-roots-z2u_s7jG.js → local-roots-DJo8GN9l.js} +2 -2
- package/dist/{logger-pznB_IdT.js → logger-BiVcvOhw.js} +2 -2
- package/dist/{login-DOmWDMeP.js → login-BLWuoXgk.js} +1 -1
- package/dist/{login-CYq-visu.js → login-DcLXhiXp.js} +5 -5
- package/dist/{login-qr-D85vVatX.js → login-qr-B7xqVGLa.js} +10 -10
- package/dist/{login-qr-CXU0wC5K.js → login-qr-CHX7SBSI.js} +2 -2
- package/dist/{logs-cli-D7ayUvz_.js → logs-cli-Be_gsxmt.js} +4 -4
- package/dist/{logs-cli-Cu2S08Y3.js → logs-cli-DDXsLG4-.js} +14 -14
- package/dist/{markdown-tables-hhOWaw8L.js → markdown-tables-42YE9A_H.js} +2 -2
- package/dist/{markdown-tables-jrnSPvZ6.js → markdown-tables-Bry8gXRC.js} +1 -1
- package/dist/{media-DOQIalam.js → media-BeBx3iHu.js} +30 -78
- package/dist/{media-DN7yRfrH.js → media-DNm8s1nv.js} +1 -1
- package/dist/{message-action-names-EsOcuFpq.js → message-action-names-BiJJY8F4.js} +17 -17
- package/dist/{message-action-names-Dk9kxwRd.js → message-action-names-BxTBtpYU.js} +24 -24
- package/dist/{message-channel-BlYrtmIp.js → message-channel-DF4I2vOK.js} +1 -1
- package/dist/{net-D6D0wgcF.js → net-Dl7oQfqm.js} +1 -1
- package/dist/{node-cli-Q2-n3Fgv.js → node-cli-DploXEZI.js} +1 -1
- package/dist/{nodes-cli-C2SoKfCv.js → nodes-cli-Dn27q6Li.js} +3 -3
- package/dist/{nodes-cli-BDq-4dHm.js → nodes-cli-yCpAOWVc.js} +15 -15
- package/dist/{note-DR8A0G5H.js → note-xRSpyX5s.js} +1 -1
- package/dist/{npm-registry-spec-Cobb5KYR.js → npm-registry-spec-BQzh4vvV.js} +1 -1
- package/dist/{npm-resolution-BmgD7x45.js → npm-resolution-CV1VtDq6.js} +4 -4
- package/dist/{npm-resolution-DNYcV-Br.js → npm-resolution-DY50j4jB.js} +3 -3
- package/dist/{onboard-uvDMehqu.js → onboard-66sal4TH.js} +11 -11
- package/dist/{onboard-Dy0q82Mj.js → onboard-CRFWNh60.js} +7 -7
- package/dist/{onboard-channels-9QS_7iph.js → onboard-channels-C1lJpRWd.js} +20 -20
- package/dist/{onboard-channels-EH2wvu6Y.js → onboard-channels-Cv-p_MDh.js} +11 -11
- package/dist/{onboard-config-y-2cgT0V.js → onboard-config-CLLvYuqo.js} +17 -2
- package/dist/{onboard-config-BCTthQ7J.js → onboard-config-CM9pKGnR.js} +17 -2
- package/dist/{onboard-helpers-Jy3345Jk.js → onboard-helpers-CSiK1DGB.js} +4 -4
- package/dist/{onboard-helpers-ChPmr3lh.js → onboard-helpers-CfH4S4p-.js} +9 -9
- package/dist/{onboard-remote-CM6Yl1oL.js → onboard-remote-Gb6uG0-e.js} +3 -3
- package/dist/{onboard-remote-Id80PV28.js → onboard-remote-Umk9b-4Z.js} +1 -1
- package/dist/{onboarding-DlXBAIDc.js → onboarding-BCVNKXZi.js} +11 -11
- package/dist/{onboarding-BVtzeopT.js → onboarding-BYAmj_f_.js} +14 -14
- package/dist/{onboarding.finalize-GIK3ktiW.js → onboarding.finalize-B9Wj2G6v.js} +68 -68
- package/dist/{onboarding.finalize-Dve-3p-y.js → onboarding.finalize-XszRDMw9.js} +39 -39
- package/dist/{onboarding.gateway-config-DW-09FX5.js → onboarding.gateway-config--b_-yoA6.js} +8 -8
- package/dist/{onboarding.gateway-config-BCV5T35-.js → onboarding.gateway-config-D4H5Skqb.js} +25 -25
- package/dist/{outbound-CFfJC1j5.js → outbound-0OjyS1ay.js} +4 -4
- package/dist/{outbound-CjFRpudN.js → outbound-DVyzk1hn.js} +6 -6
- package/dist/{outbound-attachment-BxMSma9v.js → outbound-attachment-CvF-d7SO.js} +2 -2
- package/dist/{outbound-attachment-DIiKB_mP.js → outbound-attachment-H1yBQoS2.js} +1 -1
- package/dist/{outbound-attachment-o0seS0CP.js → outbound-attachment-rwH8tE_j.js} +1 -1
- package/dist/{pairing-cli-BeydfoF9.js → pairing-cli-CoJZ8dTg.js} +6 -6
- package/dist/{pairing-cli-GgwzEWJX.js → pairing-cli-Ldq1VdFE.js} +13 -13
- package/dist/{pairing-labels-B_53dY5L.js → pairing-labels-BEzEtY3m.js} +1 -1
- package/dist/{pairing-labels-BiSZLitI.js → pairing-labels-DNY1LXbl.js} +1 -1
- package/dist/{pairing-store-BgAv4uN8.js → pairing-store-DlhFf9Sd.js} +1 -1
- package/dist/{pairing-store-CTkD51uW.js → pairing-store-ePSWRBuX.js} +1 -1
- package/dist/{path-env-ErEKbxOI.js → path-env-DdE_hfAk.js} +1 -1
- package/dist/{plugin-auto-enable-DuPS9XiJ.js → plugin-auto-enable-7lj3ONi8.js} +2 -2
- package/dist/{plugin-auto-enable-CloCFyTz.js → plugin-auto-enable-Cd9WE5kB.js} +4 -4
- package/dist/{plugin-registry-DnO3azwy.js → plugin-registry-B9resZ4x.js} +4 -4
- package/dist/{plugin-registry-D5QsH-IS.js → plugin-registry-oufihHBl.js} +3 -3
- package/dist/plugin-sdk/agents/agent-helpers.d.ts +0 -1
- package/dist/plugin-sdk/agents/agent-types.d.ts +1 -6
- package/dist/plugin-sdk/agents/agent-utils.d.ts +0 -14
- package/dist/plugin-sdk/agents/provider-utils.d.ts +0 -1
- package/dist/plugin-sdk/agents/subagent-spawn.d.ts +0 -1
- package/dist/plugin-sdk/agents/tools/sessions-helpers.d.ts +0 -1
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-execution.d.ts +0 -1
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-utils.d.ts +0 -2
- package/dist/plugin-sdk/auto-reply/reply/commands-status.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/commands-types.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.levels.d.ts +1 -7
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.params.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.parse.d.ts +1 -7
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.shared.d.ts +1 -4
- package/dist/plugin-sdk/auto-reply/reply/directives.d.ts +3 -15
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives.d.ts +1 -5
- package/dist/plugin-sdk/auto-reply/reply/get-reply-inline-actions.d.ts +1 -5
- package/dist/plugin-sdk/auto-reply/reply/get-reply-run.d.ts +1 -5
- package/dist/plugin-sdk/auto-reply/reply/queue/types.d.ts +1 -3
- package/dist/plugin-sdk/auto-reply/reply/response-prefix-template.d.ts +4 -6
- package/dist/plugin-sdk/auto-reply/reply/session-run-accounting.d.ts +0 -7
- package/dist/plugin-sdk/auto-reply/reply/session-updates.d.ts +0 -10
- package/dist/plugin-sdk/auto-reply/reply.d.ts +1 -1
- package/dist/plugin-sdk/auto-reply/status.d.ts +2 -6
- package/dist/plugin-sdk/auto-reply/thinking.d.ts +0 -11
- package/dist/plugin-sdk/auto-reply/types.d.ts +1 -2
- package/dist/plugin-sdk/commands/agent/session.d.ts +1 -2
- package/dist/plugin-sdk/config/defaults.d.ts +0 -1
- package/dist/plugin-sdk/config/sessions/types.d.ts +0 -8
- package/dist/plugin-sdk/config/types.agent-defaults.d.ts +21 -112
- package/dist/plugin-sdk/config/types.messages.d.ts +1 -2
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +8 -66
- package/dist/plugin-sdk/config/zod-schema.agent-runtime.d.ts +2 -13
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +10 -76
- package/dist/plugin-sdk/config/zod-schema.d.ts +10 -76
- package/dist/plugin-sdk/daemon/constants.d.ts +2 -2
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +1 -3
- package/dist/plugin-sdk/gateway/protocol/schema/sessions.d.ts +0 -2
- package/dist/plugin-sdk/gateway/session-utils.types.d.ts +0 -2
- package/dist/plugin-sdk/index.js +34 -95
- package/dist/plugin-sdk/middleware/channel-bridge.d.ts +4 -0
- package/dist/plugin-sdk/middleware/runtime-factory.d.ts +42 -0
- package/dist/plugin-sdk/middleware/types.d.ts +4 -0
- package/dist/{plugins-BflZz0sp.js → plugins-BtMu6L8i.js} +1 -1
- package/dist/{plugins-BXkDApVh.js → plugins-HyUNaoYP.js} +5 -5
- package/dist/{plugins-cli-Cf_RP_bn.js → plugins-cli-DiSLhdtP.js} +73 -73
- package/dist/{plugins-cli-DmbjYnO9.js → plugins-cli-ZwfTL788.js} +44 -44
- package/dist/{ports-DIYJq-SY.js → ports-DmM4pHmC.js} +3 -3
- package/dist/{ports-DPL-Pzfh.js → ports-nkccaDJy.js} +1 -1
- package/dist/{program-BaATq6CL.js → program-IV8xqENm.js} +49 -49
- package/dist/{program-context-C7b5MQbg.js → program-context-CCQfPhMi.js} +35 -35
- package/dist/{progress--dapuyZA.js → progress-C248R1Az.js} +1 -1
- package/dist/{prompt-select-styled-aqjxCbwP.js → prompt-select-styled-Dke0P6Lu.js} +19 -19
- package/dist/{prompt-select-styled-BAsxl6hj.js → prompt-select-styled-iKOStqrD.js} +31 -31
- package/dist/{provider-dispatcher-mAkRbPyH.js → provider-dispatcher-CN8WlGTX.js} +7 -7
- package/dist/{provider-dispatcher-B4QMe-I6.js → provider-dispatcher-DaNI6eMi.js} +6 -6
- package/dist/{push-apns-CLmNS5AZ.js → push-apns-CHI8oGCz.js} +4 -4
- package/dist/{pw-ai-ulOU3Ya1.js → pw-ai-BCATW7oj.js} +13 -13
- package/dist/{pw-ai-DuK87zsJ.js → pw-ai-DuWJR2bD.js} +3 -3
- package/dist/{qr-cli-hSLixZCe.js → qr-cli-BAbl97GR.js} +2 -2
- package/dist/{qr-cli-9WQBnauO.js → qr-cli-x6XLL1gs.js} +9 -9
- package/dist/{redact-snapshot-D2P_lRgf.js → redact-snapshot-CYzH7d_A.js} +2 -14
- package/dist/{redact-snapshot-BZYLIqe-.js → redact-snapshot-DsVGs4aN.js} +1 -13
- package/dist/{register.agent-DZL_fw2K.js → register.agent-CeceQfAP.js} +85 -85
- package/dist/{register.agent-CquY2yLI.js → register.agent-u1lNeFpV.js} +51 -51
- package/dist/{register.configure-C2HjaKO0.js → register.configure-AUH9J-JC.js} +55 -55
- package/dist/register.configure-nSogUhv7.js +130 -0
- package/dist/{register.import-CaJ0DS1t.js → register.import-BlsrD54G.js} +6 -6
- package/dist/{register.import-Bs-UkOs-.js → register.import-DdLGUSEK.js} +1 -1
- package/dist/{register.maintenance-CslelbHK.js → register.maintenance-CuLaszSR.js} +94 -94
- package/dist/{register.maintenance-Dd4fn6oX.js → register.maintenance-DTyGossb.js} +58 -58
- package/dist/{register.message-D2xmx0xB.js → register.message-BxezY8SV.js} +43 -43
- package/dist/{register.message-_Q8ehgQP.js → register.message-qrIalqDa.js} +71 -71
- package/dist/{register.onboard-CIupEYmX.js → register.onboard-CEAyr7D4.js} +11 -11
- package/dist/{register.onboard-BFSwh5g4.js → register.onboard-CO0NFyXJ.js} +30 -30
- package/dist/{register.setup-Bm1Jtx0c.js → register.setup-CMRdfoDN.js} +11 -11
- package/dist/{register.setup-7pk1r-54.js → register.setup-DWk6iVd_.js} +30 -30
- package/dist/{register.status-health-sessions-C-Pbi-qq.js → register.status-health-sessions-5pEWY3wf.js} +77 -82
- package/dist/{register.status-health-sessions-Cn4yWBWw.js → register.status-health-sessions-mMvRo8AQ.js} +40 -40
- package/dist/{register.subclis-DXmLofHX.js → register.subclis-9E3Ugk1T.js} +23 -23
- package/dist/{replies-BkXDql3c.js → replies-jKtjhQ-s.js} +2 -2
- package/dist/{replies-BKrzM0QI.js → replies-pwJGu9Jo.js} +1 -1
- package/dist/{reply-n8KWtBQB.js → reply-BbHyKA6K.js} +849 -1239
- package/dist/{reply-DSKC8kyS.js → reply-DUQyOCMK.js} +828 -1218
- package/dist/{reply-directives-CBeNSCHL.js → reply-directives-BdJZaTkb.js} +2 -2
- package/dist/{reply-directives-CD2WycBM.js → reply-directives-C6mKDSxU.js} +1 -1
- package/dist/{reply-payloads-CeL_cBnD.js → reply-payloads-B2kcd0dL.js} +6 -6
- package/dist/{reply-prefix-4zLS7A1Y.js → reply-prefix-BDI1sLXA.js} +1 -2
- package/dist/{reply-prefix-DBLCYiup.js → reply-prefix-SGmUA9cV.js} +1 -2
- package/dist/{resolve-route-CBVbY0xS.js → resolve-route-BNRMZ0km.js} +2 -2
- package/dist/{resolve-route-BDGdM-l3.js → resolve-route-CrSio4RY.js} +4 -4
- package/dist/{response-prefix-template-CSxp9HN5.js → response-prefix-template-C0XvOOPH.js} +4 -6
- package/dist/{response-prefix-template-up4REfuR.js → response-prefix-template-CA8pfT6v.js} +4 -6
- package/dist/{retry-C81p7BZU.js → retry-bFj4k6Ii.js} +1 -1
- package/dist/{run-main-CuA7VmAq.js → run-main-DPXDf7bs.js} +59 -77
- package/dist/{runner-z92MWZ3m.js → runner-B-FXPgK0.js} +1 -1
- package/dist/{runner-BbLPl1dz.js → runner-BvtNyNts.js} +4 -4
- package/dist/{runtime-guard-DZ_xuCc4.js → runtime-guard-CTl7OnCR.js} +1 -1
- package/dist/{secure-random-D2IOpBkk.js → secure-random-BJve6bb_.js} +1 -1
- package/dist/{security-cli-DP5QJpa5.js → security-cli-B_AEHvW8.js} +11 -11
- package/dist/{security-cli-BR3Y1FBJ.js → security-cli-h7bLwDzZ.js} +28 -28
- package/dist/{send-CBGSXjfD.js → send-1XO1XSXO.js} +6 -6
- package/dist/{send-BWSo3i3H.js → send-8yz2-_HH.js} +10 -10
- package/dist/{send-D_DUQJ6H.js → send-AlMsDde2.js} +4 -4
- package/dist/{send-DPttDPIR.js → send-B1iHZJdx.js} +6 -6
- package/dist/{send-dzS4fa9O.js → send-B2JN7CQJ.js} +5 -5
- package/dist/{send-DyftOlFD.js → send-BHlgcDpz.js} +3 -3
- package/dist/{send-CRS-OcnW.js → send-BNHQKlx7.js} +7 -7
- package/dist/{send-Lij9A7lk.js → send-CGHEEbNo.js} +6 -6
- package/dist/{send-0uEtKwU_.js → send-CGKCk8lN.js} +8 -8
- package/dist/{send-Bx9bUGav.js → send-CVf8xWQj.js} +4 -4
- package/dist/{send-xUPOqzUr.js → send-Cf2gNkoT.js} +4 -4
- package/dist/{send-YRVDWfSs.js → send-DJ0Zx-Ma.js} +4 -4
- package/dist/{send-B3O7bzYU.js → send-DkTW0Swe.js} +7 -7
- package/dist/{send-BkSUAGj6.js → send-KFCtT3Z5.js} +7 -7
- package/dist/send-mVVMFwmx.js +11 -0
- package/dist/{send-xnwty9cY.js → send-rnY4Ef4N.js} +6 -6
- package/dist/{server-LdLsvPPw.js → server-DUElvT3m.js} +6 -6
- package/dist/{server-BE5lybcS.js → server-GtJ6JX-O.js} +22 -22
- package/dist/{server-lifecycle-B3Rdmq7-.js → server-lifecycle-B4d1rFOm.js} +6 -6
- package/dist/{server-lifecycle-CFmE_Adm.js → server-lifecycle-t_S9_eG-.js} +9 -9
- package/dist/{server-node-events-d7eK4LBW.js → server-node-events-C5OhVZlR.js} +42 -46
- package/dist/{server-node-events-De4WZQQD.js → server-node-events-Cu-NnHZa.js} +20 -24
- package/dist/{service-Bjqii5nW.js → service-3Xcd2WIW.js} +2 -2
- package/dist/{service-BHos7oX8.js → service-BOIQUlgm.js} +2 -2
- package/dist/{session-aUptxSVD.js → session-DMl4z_Wj.js} +1 -1
- package/dist/{session-cost-usage-yYi525j3.js → session-cost-usage-DES0ywek.js} +4 -4
- package/dist/{session-dirs-BADAi9Iz.js → session-dirs-CHjQfl7x.js} +3 -3
- package/dist/{session-utils-CEtEq6bi.js → session-utils-CpZCzfZc.js} +12 -15
- package/dist/{session-utils-CiXbZkM2.js → session-utils-R7nW6YZu.js} +14 -17
- package/dist/{sessions-Bw4LRnSr.js → sessions-B4ejSv2C.js} +6 -11
- package/dist/{sessions--PykPynp.js → sessions-BxAqEHHy.js} +4 -29
- package/dist/{status-CrGLegI6.js → status-Dlp6uU5L.js} +17 -24
- package/dist/{status-D_3sszaS.js → status-lkm2lXHS.js} +28 -35
- package/dist/{status.update-CVnonGHu.js → status.update-DMfgnqeT.js} +1 -1
- package/dist/{store-C6w1sB5x.js → store-C_Dj8ASh.js} +2 -2
- package/dist/{store-DoOPG3rl.js → store-qGKdk2ZD.js} +10 -35
- package/dist/{subagent-registry-C-xI2uK4.js → subagent-registry-CpkkkUbU.js} +16 -21
- package/dist/{subagent-registry-Db4Ho_2Y.js → subagent-registry-DzPNxhIk.js} +10 -15
- package/dist/{subsystem-CrJCqjAh.js → subsystem-BgxIzx7w.js} +2 -4
- package/dist/{subsystem-CDhxwtDd.js → subsystem-rxNDBm7l.js} +2 -2
- package/dist/{system-cli-eAk5wVbP.js → system-cli-BZH8XgMa.js} +4 -4
- package/dist/{system-cli-CCKzF3uh.js → system-cli-B_HNwxrH.js} +14 -14
- package/dist/{systemd-B5lyaCc3.js → systemd-DCwD8aqg.js} +2 -2
- package/dist/{systemd-DSnlM3jX.js → systemd-eqdgvF51.js} +1 -1
- package/dist/{systemd-linger-_0_-RY4v.js → systemd-linger-CsQTTKKC.js} +1 -1
- package/dist/{systemd-linger-DRPSEQVw.js → systemd-linger-KG9RYSlH.js} +2 -2
- package/dist/{table-CpmqqcxJ.js → table-CGS1Ml9r.js} +1 -1
- package/dist/{tables-D_PTzthR.js → tables-6CkQRTJR.js} +1 -1
- package/dist/{tables-DI5LGEr1.js → tables-CamcS9gx.js} +1 -1
- package/dist/{tables-DcQUNIvB.js → tables-HN31BKCH.js} +1 -1
- package/dist/{tailscale-Dxyz13fn.js → tailscale-dtzyN0aT.js} +1 -1
- package/dist/{targets-Cm1X3IyA.js → targets-BEON1rlZ.js} +4 -4
- package/dist/{targets-B2vBpQdr.js → targets-BXHW0zVC.js} +97 -25
- package/dist/{targets-B54vK3wc.js → targets-BlVk-r3Q.js} +3 -3
- package/dist/{targets-DB4vBpIQ.js → targets-CYY3iBkV.js} +91 -19
- package/dist/{targets-D7OKVXMI.js → targets-Cvzqesmd.js} +1 -1
- package/dist/{targets-DyybKefq.js → targets-IkURIBGL.js} +1 -1
- package/dist/thinking-DeEBjYPc.js +88 -0
- package/dist/thinking-l-rrvZwu.js +88 -0
- package/dist/{tool-images-DVrUJEqc.js → tool-images-C6LHSeSs.js} +2 -2
- package/dist/{trash-DzrtBoP1.js → trash-7yJovaAx.js} +1 -1
- package/dist/{tui-CyHwc2uX.js → tui-DK5-19m7.js} +7 -80
- package/dist/{tui-cli-C9I18SfW.js → tui-cli-BuGYX7LC.js} +10 -10
- package/dist/{tui-cli-C7kQj9ef.js → tui-cli-u_3fCMg-.js} +26 -26
- package/dist/{tui-cHd20SZm.js → tui-gEa1FBSQ.js} +13 -86
- package/dist/{update-IX7vdqA8.js → update-COwDCdga.js} +2 -2
- package/dist/{update-DeQGoaIC.js → update-NMU1foyo.js} +2 -2
- package/dist/{update-cli-C52dmo3x.js → update-cli-B5gans2I.js} +62 -62
- package/dist/{update-cli-DY_iE1E5.js → update-cli-sW0u7h-c.js} +100 -100
- package/dist/{usage-B--dL37U.js → usage-CAM9Q3bX.js} +91 -122
- package/dist/{web-DMweaNnG.js → web-BnhT_Tfr.js} +14 -16
- package/dist/web-CcocPSQX.js +76 -0
- package/dist/{web-Dquzwqf4.js → web-D5JAxqw3.js} +32 -32
- package/dist/{webhooks-cli-CqFX8Ywl.js → webhooks-cli-C3H1XPNG.js} +10 -10
- package/dist/{webhooks-cli-BpZHQlVd.js → webhooks-cli-DqSPJMDG.js} +2 -2
- package/dist/{whatsapp-actions-C31Zdwez.js → whatsapp-actions-CDqFo3GP.js} +22 -22
- package/dist/{whatsapp-actions-DaA291Ya.js → whatsapp-actions-DNKQ1h0G.js} +9 -9
- package/dist/{workspace-B8qk__ff.js → workspace-C-QwN1zu.js} +3 -3
- package/dist/{workspace-B4ZvVYT9.js → workspace-CEBaVctV.js} +1 -1
- package/extensions/matrix/src/matrix/monitor/replies.ts +0 -24
- package/extensions/mattermost/src/mattermost/monitor-helpers.ts +0 -1
- package/package.json +3 -3
- package/dist/cli-BuMX-jRY.js +0 -130
- package/dist/control-ui/assets/index-B4ZM1lW1.js.map +0 -1
- package/dist/defaults-B5KStIBg.js +0 -7
- package/dist/defaults-xUAL2Z-F.js +0 -7
- package/dist/plugin-sdk/agents/agent-helpers/thinking.d.ts +0 -5
- package/dist/plugin-sdk/agents/defaults.d.ts +0 -3
- package/dist/plugin-sdk/auto-reply/model-runtime.d.ts +0 -17
- package/dist/plugin-sdk/config/model-input.d.ts +0 -9
- package/dist/plugin-sdk/config/zod-schema.agent-model.d.ts +0 -5
- package/dist/plugin-sdk/sessions/model-overrides.d.ts +0 -14
- package/dist/plugin-sdk/telegram/reasoning-lane-coordinator.d.ts +0 -18
- package/dist/register.configure-D7Di47Lb.js +0 -130
- package/dist/send-uchxcHYC.js +0 -11
- package/dist/session-key-5YLnn_qf.js +0 -235
- package/dist/web-CMxp78WA.js +0 -76
- /package/dist/{ansi-D04X81yq.js → ansi-aRwLYlzD.js} +0 -0
- /package/dist/{audio-DPOuhNq7.js → audio-B_mzy948.js} +0 -0
- /package/dist/{audio-VBcVDa08.js → audio-DDvXRwh-.js} +0 -0
- /package/dist/{client-DdpmATKq.js → client-CwnX0nXo.js} +0 -0
- /package/dist/{credentials-DFsi1_e8.js → credentials-C82aU5z-.js} +0 -0
- /package/dist/{fetch-C6XKGA11.js → fetch-Du9BJ20J.js} +0 -0
- /package/dist/{format-relative-79_Y1n2Y.js → format-relative-C6kUHuOj.js} +0 -0
- /package/dist/{inbound-context-DS_kpIYI.js → inbound-context-D94rw0Oq.js} +0 -0
- /package/dist/{input-provenance-Bn6thJNm.js → input-provenance-BDPOaXFk.js} +0 -0
- /package/dist/{json-files-CmpYSF4G.js → json-files-Ct2lDInr.js} +0 -0
- /package/dist/{lanes-ByWMUgrz.js → lanes-DKkroN9D.js} +0 -0
- /package/dist/{retry-CxXVRdes.js → retry-BbVJvOUo.js} +0 -0
- /package/dist/{runtime-DJNp29jv.js → runtime-Ds3E9SqF.js} +0 -0
- /package/dist/{secret-equal-BbHdTtqY.js → secret-equal-DgjJcvjv.js} +0 -0
- /package/dist/{strip-inbound-meta-jy3bkUab.js → strip-inbound-meta-B21Qdh8I.js} +0 -0
- /package/dist/{tailnet-PnMrjwGT.js → tailnet-wUV6epIk.js} +0 -0
- /package/dist/{targets-C-2xwh9f.js → targets-DfXObWaL.js} +0 -0
- /package/dist/{usage-format-DAaPzr_z.js → usage-format-C6Iz_Ws9.js} +0 -0
- /package/dist/{usage-BtQcAnf6.js → usage-sF5tij7A.js} +0 -0
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import { At as normalizeLogLevel, F as createPluginRegistry, Ft as STATE_DIR, I as normalizePluginHttpPath, L as clearPluginCommands, M as requireActivePluginRegistry, Mt as resolvePreferredRemoteClawTmpDir, N as setActivePluginRegistry, Q as normalizeE164, R as executePluginCommand, V as matchPluginCommand, Y as isRecord$1, _ as defaultRuntime, bt as warn, dt as danger, g as createNonExitingRuntime, ht as logVerbose, lt as truncateUtf16Safe, o as createSubsystemLogger, qt as resolveStateDir, rt as resolveUserPath, vt as shouldLogVerbose, wt as getChildLogger, z as getPluginCommandSpecs } from "./entry.js";
|
|
2
2
|
import { n as saveJsonFile, t as loadJsonFile } from "./json-file-ChO_R9yh.js";
|
|
3
3
|
import { c as normalizeMainKey, h as normalizeAccountId$2, l as resolveAgentIdFromSessionKey, m as DEFAULT_ACCOUNT_ID, u as resolveThreadSessionKeys } from "./session-key-C2n-VILA.js";
|
|
4
|
-
import { $ as resolveDiscordPreviewStreamMode, A as loadPluginManifestRegistry, B as resolveEffectiveEnableState, C as isPathWithinRoot, M as isPathInside, N as safeStatSync, O as validateJsonSchemaValue, Q as mapStreamingModeToSlackLegacyDraftStreamMode, R as applyTestPluginDefaults, b as isAvatarDataUrl, et as resolveSlackNativeStreaming, f as TELEGRAM_COMMAND_NAME_PATTERN, h as normalizeScpRemoteHost, i as loadConfig, j as discoverRemoteClawPlugins, l as writeConfigFile, m as resolveTelegramCustomCommands, p as normalizeTelegramCommandName, st as isPathInsideWithRealpath, tt as resolveSlackStreamingMode, ut as resolveAgentMaxConcurrent, w as isSupportedLocalAvatarExtension, x as isAvatarHttpUrl, y as AVATAR_MAX_BYTES, z as normalizePluginsConfig } from "./config-
|
|
4
|
+
import { $ as resolveDiscordPreviewStreamMode, A as loadPluginManifestRegistry, B as resolveEffectiveEnableState, C as isPathWithinRoot, M as isPathInside, N as safeStatSync, O as validateJsonSchemaValue, Q as mapStreamingModeToSlackLegacyDraftStreamMode, R as applyTestPluginDefaults, b as isAvatarDataUrl, et as resolveSlackNativeStreaming, f as TELEGRAM_COMMAND_NAME_PATTERN, h as normalizeScpRemoteHost, i as loadConfig, j as discoverRemoteClawPlugins, l as writeConfigFile, m as resolveTelegramCustomCommands, p as normalizeTelegramCommandName, st as isPathInsideWithRealpath, tt as resolveSlackStreamingMode, ut as resolveAgentMaxConcurrent, w as isSupportedLocalAvatarExtension, x as isAvatarHttpUrl, y as AVATAR_MAX_BYTES, z as normalizePluginsConfig } from "./config-CtIjLqOj.js";
|
|
5
5
|
import { a as resolveIMessageAttachmentRoots, n as isInboundPathAllowed, o as resolveIMessageRemoteAttachmentRoots } from "./inbound-path-policy-sdr5Ji0k.js";
|
|
6
|
-
import { a as resolveAgentWorkspaceDir, i as resolveAgentDir, s as resolveDefaultAgentId } from "./agent-scope-
|
|
7
|
-
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, r as normalizeSignalMessagingTarget, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-
|
|
8
|
-
import { R as resolveSessionKey, d as readSessionUpdatedAt, f as recordSessionMetaFromInbound, h as updateLastRoute, l as loadSessionStore } from "./sessions
|
|
6
|
+
import { a as resolveAgentWorkspaceDir, i as resolveAgentDir, s as resolveDefaultAgentId } from "./agent-scope-BDF8U7HM.js";
|
|
7
|
+
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, r as normalizeSignalMessagingTarget, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-BtLbLczG.js";
|
|
8
|
+
import { R as resolveSessionKey, d as readSessionUpdatedAt, f as recordSessionMetaFromInbound, h as updateLastRoute, l as loadSessionStore } from "./sessions-BxAqEHHy.js";
|
|
9
9
|
import { n as resolveConversationLabel } from "./conversation-label-C4SDz4sT.js";
|
|
10
10
|
import { t as resolveAccountEntry } from "./account-lookup-zvANGr2x.js";
|
|
11
|
-
import { C as resolveDiscordAccount, _ as resolveSlackAppToken, c as listEnabledTelegramAccounts, d as resolveTelegramAccount, f as resolveTelegramToken, h as resolveSlackAccount, l as listTelegramAccountIds, s as createTelegramActionGate, v as resolveSlackBotToken, w as normalizeDiscordToken, x as listEnabledDiscordAccounts, y as createDiscordActionGate } from "./plugins-
|
|
11
|
+
import { C as resolveDiscordAccount, _ as resolveSlackAppToken, c as listEnabledTelegramAccounts, d as resolveTelegramAccount, f as resolveTelegramToken, h as resolveSlackAccount, l as listTelegramAccountIds, s as createTelegramActionGate, v as resolveSlackBotToken, w as normalizeDiscordToken, x as listEnabledDiscordAccounts, y as createDiscordActionGate } from "./plugins-BtMu6L8i.js";
|
|
12
12
|
import { _ as webAuthExists, c as logWebSelfId, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-BTXSfPWi.js";
|
|
13
13
|
import { r as resolveIMessageAccount } from "./accounts-BxGS70Do.js";
|
|
14
14
|
import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-CNY1TGj1.js";
|
|
15
15
|
import { n as resolveSlackChannelId, t as parseSlackTarget } from "./targets-CmC5m7Ey.js";
|
|
16
|
-
import { C as applyChannelMatchMeta, E as resolveChannelEntryMatchWithFallback, S as fetchDiscord, _ as shouldEmitDiscordReactionNotification, a as listDiscordDirectoryPeersLive, b as resolveDiscordSystemLocation, c as normalizeDiscordAllowList, d as resolveDiscordChannelConfigWithFallback, f as resolveDiscordGuildEntry, g as resolveGroupDmAllow, h as resolveDiscordShouldRequireMention, i as listDiscordDirectoryGroupsLive, l as normalizeDiscordSlug, m as resolveDiscordOwnerAllowFrom, n as resolveDiscordChannelId, o as allowListMatches$1, p as resolveDiscordMemberAccessState, s as isDiscordGroupAllowedByPolicy, u as resolveDiscordAllowListMatch, v as formatDiscordReactionEmoji, w as buildChannelKeyCandidates, x as resolveTimestampMs, y as formatDiscordUserTag } from "./targets-
|
|
16
|
+
import { C as applyChannelMatchMeta, E as resolveChannelEntryMatchWithFallback, S as fetchDiscord, _ as shouldEmitDiscordReactionNotification, a as listDiscordDirectoryPeersLive, b as resolveDiscordSystemLocation, c as normalizeDiscordAllowList, d as resolveDiscordChannelConfigWithFallback, f as resolveDiscordGuildEntry, g as resolveGroupDmAllow, h as resolveDiscordShouldRequireMention, i as listDiscordDirectoryGroupsLive, l as normalizeDiscordSlug, m as resolveDiscordOwnerAllowFrom, n as resolveDiscordChannelId, o as allowListMatches$1, p as resolveDiscordMemberAccessState, s as isDiscordGroupAllowedByPolicy, u as resolveDiscordAllowListMatch, v as formatDiscordReactionEmoji, w as buildChannelKeyCandidates, x as resolveTimestampMs, y as formatDiscordUserTag } from "./targets-Cvzqesmd.js";
|
|
17
17
|
import { m as resolveStorePath } from "./chat-envelope-DEZ-5RY8.js";
|
|
18
18
|
import { n as logError, t as logDebug } from "./logger-BWMPnILd.js";
|
|
19
|
-
import {
|
|
20
|
-
import { a as resolveEffectiveMessagesConfig, i as resolveAgentIdentity, o as resolveHumanDelayConfig, r as resolveAckReaction } from "./response-prefix-template-
|
|
19
|
+
import { dt as logWebhookReceived, ft as startDiagnosticHeartbeat, ht as isDiagnosticsEnabled, k as stripReasoningTagsFromText, lt as logWebhookError, pt as stopDiagnosticHeartbeat, ut as logWebhookProcessed } from "./subagent-registry-DzPNxhIk.js";
|
|
20
|
+
import { a as resolveEffectiveMessagesConfig, i as resolveAgentIdentity, o as resolveHumanDelayConfig, r as resolveAckReaction } from "./response-prefix-template-CA8pfT6v.js";
|
|
21
21
|
import { t as runCommandWithTimeout } from "./exec-DkFE7lqU.js";
|
|
22
22
|
import { i as getImageMetadata, s as resizeToJpeg } from "./image-ops-DWytvdh_.js";
|
|
23
|
-
import { A as
|
|
24
|
-
import { n as initializeGlobalHookRunner } from "./hook-runner-global-
|
|
25
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
23
|
+
import { A as matchesMentionPatterns, At as textToSpeechTelephony, G as formatThreadBindingTtlLabel, H as createNoopThreadBindingManager, K as buildCommandsPaginationKeyboard, Nt as parseTtsDirectives, Pt as processLineMessage, T as isAbortRequestText, U as createThreadBindingManager, W as isRecentlyUnboundThreadWebhookMessage, _ as shouldComputeCommandAuthorized, at as resolveSlackUserAllowlist, ct as resolveChannelConfigWrites, g as isControlCommandMessage, h as hasControlCommand, j as matchesMentionWithExplicit, k as buildMentionRegexes, kt as textToSpeech, m as withNormalizedTimestamp, n as createTypingKeepaliveLoop, nt as buildCommandsMessagePaginated, ot as resolveDiscordUserAllowlist, st as listGuilds, wt as resolveTtsConfig } from "./reply-DUQyOCMK.js";
|
|
24
|
+
import { n as initializeGlobalHookRunner } from "./hook-runner-global-DVQOzWKP.js";
|
|
25
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Bry8gXRC.js";
|
|
26
26
|
import { t as generateSecureToken } from "./secure-random-_dzDDlFo.js";
|
|
27
27
|
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-CSQfUhgF.js";
|
|
28
|
-
import { t as loadWebMedia } from "./media-
|
|
29
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
28
|
+
import { t as loadWebMedia } from "./media-DNm8s1nv.js";
|
|
29
|
+
import { t as convertMarkdownTables } from "./tables-CamcS9gx.js";
|
|
30
30
|
import { t as getActiveWebListener } from "./active-listener-z0qVEcom.js";
|
|
31
31
|
import { o as isGifMedia, t as detectMime, u as mediaKindFromMime } from "./mime-Cxh_64P6.js";
|
|
32
32
|
import { n as fetchWithTimeout } from "./fetch-timeout-DoySHqfO.js";
|
|
33
33
|
import { o as normalizeHostname } from "./ssrf-Ck9HDZpv.js";
|
|
34
|
-
import { i as fetchRemoteMedia, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
34
|
+
import { i as fetchRemoteMedia, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-CWQNmgUt.js";
|
|
35
35
|
import { a as jsonResult, c as readReactionParams, d as readStringParam, l as readStringArrayParam, o as parseAvailableTags, r as createActionGate, s as readNumberParam, u as readStringOrNumberParam } from "./common-DSVmydhm.js";
|
|
36
|
-
import { i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled } from "./commands-
|
|
37
|
-
import { c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, i as listChatCommands, l as parseCommandArgs, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices } from "./commands-registry-
|
|
38
|
-
import { t as finalizeInboundContext } from "./inbound-context-
|
|
39
|
-
import { n as isVoiceCompatibleAudio } from "./audio-
|
|
40
|
-
import { a as runCapability, f as registerUnhandledRejectionHandler, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry, u as buildRandomTempFilePath } from "./runner-
|
|
36
|
+
import { i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled } from "./commands-ChY7s9hy.js";
|
|
37
|
+
import { c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, i as listChatCommands, l as parseCommandArgs, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices } from "./commands-registry-C-NFTH7P.js";
|
|
38
|
+
import { t as finalizeInboundContext } from "./inbound-context-D94rw0Oq.js";
|
|
39
|
+
import { n as isVoiceCompatibleAudio } from "./audio-DDvXRwh-.js";
|
|
40
|
+
import { a as runCapability, f as registerUnhandledRejectionHandler, n as createMediaAttachmentCache, r as normalizeMediaAttachments, t as buildProviderRegistry, u as buildRandomTempFilePath } from "./runner-B-FXPgK0.js";
|
|
41
41
|
import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-DZ199hOo.js";
|
|
42
|
-
import {
|
|
43
|
-
import { i as readChannelAllowFromStore, s as upsertChannelPairingRequest } from "./pairing-store-
|
|
42
|
+
import { v as enqueueSystemEvent } from "./targets-CYY3iBkV.js";
|
|
43
|
+
import { i as readChannelAllowFromStore, s as upsertChannelPairingRequest } from "./pairing-store-ePSWRBuX.js";
|
|
44
44
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-CEDsOiql.js";
|
|
45
45
|
import { n as retryAsync } from "./retry-DnqPAqWp.js";
|
|
46
46
|
import { n as resolveSlackWebClientOptions, t as createSlackWebClient } from "./client-C61M8zI3.js";
|
|
47
47
|
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-DTKGf3j5.js";
|
|
48
|
-
import { $ as hasAnyGuildPermissionDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, D as pinMessageDiscord, E as listThreadsDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, Q as fetchChannelPermissionsDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, T as listPinsDiscord, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, a as removeReactionDiscord, b as sendWebhookMessageDiscord, c as formatDiscordComponentEventText, d as parseDiscordModalCustomId, et as chunkDiscordTextWithMode, f as parseDiscordModalCustomIdForCarbon, g as sendMessageDiscord, h as resolveDiscordModalEntry, i as removeOwnReactionsDiscord, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, m as resolveDiscordComponentEntry, n as fetchReactionsDiscord, o as sendDiscordComponentMessage, p as readDiscordComponentSpec, q as deleteChannelDiscord, r as reactMessageDiscord, s as createDiscordFormModal, u as parseDiscordComponentCustomIdForCarbon, v as sendStickerDiscord, w as fetchMessageDiscord, x as createThreadDiscord, y as sendVoiceMessageDiscord, z as listGuildChannelsDiscord } from "./send-
|
|
48
|
+
import { $ as hasAnyGuildPermissionDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, D as pinMessageDiscord, E as listThreadsDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, Q as fetchChannelPermissionsDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, T as listPinsDiscord, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, a as removeReactionDiscord, b as sendWebhookMessageDiscord, c as formatDiscordComponentEventText, d as parseDiscordModalCustomId, et as chunkDiscordTextWithMode, f as parseDiscordModalCustomIdForCarbon, g as sendMessageDiscord, h as resolveDiscordModalEntry, i as removeOwnReactionsDiscord, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, m as resolveDiscordComponentEntry, n as fetchReactionsDiscord, o as sendDiscordComponentMessage, p as readDiscordComponentSpec, q as deleteChannelDiscord, r as reactMessageDiscord, s as createDiscordFormModal, u as parseDiscordComponentCustomIdForCarbon, v as sendStickerDiscord, w as fetchMessageDiscord, x as createThreadDiscord, y as sendVoiceMessageDiscord, z as listGuildChannelsDiscord } from "./send-1XO1XSXO.js";
|
|
49
49
|
import { i as resolveTelegramTargetChatType } from "./targets-UncQvCVs.js";
|
|
50
|
-
import { a as createReplyDispatcher, c as dispatchReplyFromConfig, i as dispatchInboundMessage, l as createDedupeCache, n as dispatchReplyWithDispatcher, o as createReplyDispatcherWithTyping, t as dispatchReplyWithBufferedBlockDispatcher, u as pruneMapToMaxSize } from "./provider-dispatcher-
|
|
50
|
+
import { a as createReplyDispatcher, c as dispatchReplyFromConfig, i as dispatchInboundMessage, l as createDedupeCache, n as dispatchReplyWithDispatcher, o as createReplyDispatcherWithTyping, t as dispatchReplyWithBufferedBlockDispatcher, u as pruneMapToMaxSize } from "./provider-dispatcher-DaNI6eMi.js";
|
|
51
51
|
import { n as saveMediaBuffer } from "./store-v3P-OWhi.js";
|
|
52
|
-
import { t as createReplyPrefixOptions } from "./reply-prefix-
|
|
53
|
-
import { C as computeBackoff, S as resolveInboundDebounceMs, a as formatInboundEnvelope, b as recordPendingHistoryEntryIfEnabled, d as GROUP_POLICY_BLOCKED_LABEL, f as resolveAllowlistProviderRuntimeGroupPolicy, g as DEFAULT_GROUP_HISTORY_LIMIT, h as warnMissingProviderGroupPolicyFallbackOnce, i as formatAgentEnvelope, l as resolveMentionGatingWithBypass, m as resolveOpenProviderRuntimeGroupPolicy, n as shouldAckReaction, o as formatInboundFromLabel, p as resolveDefaultGroupPolicy, s as resolveEnvelopeFormatOptions, t as removeAckReactionAfterReply, u as buildPairingReply, v as buildPendingHistoryContextFromMap, w as sleepWithAbort, x as createInboundDebouncer, y as clearHistoryEntriesIfEnabled } from "./ack-reactions-
|
|
52
|
+
import { t as createReplyPrefixOptions } from "./reply-prefix-BDI1sLXA.js";
|
|
53
|
+
import { C as computeBackoff, S as resolveInboundDebounceMs, a as formatInboundEnvelope, b as recordPendingHistoryEntryIfEnabled, d as GROUP_POLICY_BLOCKED_LABEL, f as resolveAllowlistProviderRuntimeGroupPolicy, g as DEFAULT_GROUP_HISTORY_LIMIT, h as warnMissingProviderGroupPolicyFallbackOnce, i as formatAgentEnvelope, l as resolveMentionGatingWithBypass, m as resolveOpenProviderRuntimeGroupPolicy, n as shouldAckReaction, o as formatInboundFromLabel, p as resolveDefaultGroupPolicy, s as resolveEnvelopeFormatOptions, t as removeAckReactionAfterReply, u as buildPairingReply, v as buildPendingHistoryContextFromMap, w as sleepWithAbort, x as createInboundDebouncer, y as clearHistoryEntriesIfEnabled } from "./ack-reactions-BFKo3Koo.js";
|
|
54
54
|
import { n as formatDurationPrecise, r as formatDurationSeconds } from "./format-duration-CqUERz51.js";
|
|
55
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
55
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-BNRMZ0km.js";
|
|
56
56
|
import { n as toLocationContext, t as formatLocationText } from "./location-GbZ0bBRU.js";
|
|
57
|
-
import { a as validateSlackBlocksArray, i as parseSlackBlocksInput, o as buildSlackBlocksFallbackText, t as sendMessageSlack } from "./send-
|
|
58
|
-
import { c as signalRpcRequest, l as streamSignalEvents, n as sendReadReceiptSignal, o as resolveSignalRpcContext, r as sendTypingSignal, s as signalCheck, t as sendMessageSignal } from "./send-
|
|
59
|
-
import { A as describeReplyTarget, B as resolveTelegramThreadSpec, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramForumThreadId, G as isSenderIdAllowed, H as normalizeAllowFromWithStore$1, I as resolveTelegramGroupAllowFromContext, K as mergeAllowFromSources, L as resolveTelegramMediaPlaceholder, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramReplyId, S as buildGroupLabel, T as buildTelegramGroupFrom, U as resolveSenderAllowMatch, V as isSenderAllowed$1, W as firstDefined$1, _ as markdownToTelegramHtml, a as reactMessageTelegram, b as resolveTelegramFetch, c as sendStickerTelegram, g as markdownToTelegramChunks, h as isRecoverableTelegramNetworkError, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, m as wasSentByBot, n as createForumTopicTelegram, o as sendMessageTelegram, q as withTelegramApiErrorLogging, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as resolveTelegramVoiceSend, v as renderTelegramHtmlText, w as buildSenderName, x as splitTelegramCaption, y as wrapFileReferencesInHtml, z as resolveTelegramStreamMode } from "./send-
|
|
57
|
+
import { a as validateSlackBlocksArray, i as parseSlackBlocksInput, o as buildSlackBlocksFallbackText, t as sendMessageSlack } from "./send-AlMsDde2.js";
|
|
58
|
+
import { c as signalRpcRequest, l as streamSignalEvents, n as sendReadReceiptSignal, o as resolveSignalRpcContext, r as sendTypingSignal, s as signalCheck, t as sendMessageSignal } from "./send-DJ0Zx-Ma.js";
|
|
59
|
+
import { A as describeReplyTarget, B as resolveTelegramThreadSpec, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramForumThreadId, G as isSenderIdAllowed, H as normalizeAllowFromWithStore$1, I as resolveTelegramGroupAllowFromContext, K as mergeAllowFromSources, L as resolveTelegramMediaPlaceholder, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramReplyId, S as buildGroupLabel, T as buildTelegramGroupFrom, U as resolveSenderAllowMatch, V as isSenderAllowed$1, W as firstDefined$1, _ as markdownToTelegramHtml, a as reactMessageTelegram, b as resolveTelegramFetch, c as sendStickerTelegram, g as markdownToTelegramChunks, h as isRecoverableTelegramNetworkError, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, m as wasSentByBot, n as createForumTopicTelegram, o as sendMessageTelegram, q as withTelegramApiErrorLogging, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as resolveTelegramVoiceSend, v as renderTelegramHtmlText, w as buildSenderName, x as splitTelegramCaption, y as wrapFileReferencesInHtml, z as resolveTelegramStreamMode } from "./send-rnY4Ef4N.js";
|
|
60
60
|
import { t as makeProxyFetch } from "./proxy-DpNv2cSV.js";
|
|
61
61
|
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-BzmiLXmA.js";
|
|
62
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
63
|
-
import { t as agentCommand } from "./agent-
|
|
64
|
-
import { a as normalizeIMessageHandle, c as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, i as isAllowedIMessageSender, r as formatIMessageChatTarget, s as createIMessageRpcClient, t as sendMessageIMessage } from "./send-
|
|
65
|
-
import { n as detectBinary } from "./onboard-helpers-
|
|
66
|
-
import { t as resolvePairingIdLabel } from "./pairing-labels-
|
|
62
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-pwJGu9Jo.js";
|
|
63
|
+
import { t as agentCommand } from "./agent-AIzSM1vK.js";
|
|
64
|
+
import { a as normalizeIMessageHandle, c as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, i as isAllowedIMessageSender, r as formatIMessageChatTarget, s as createIMessageRpcClient, t as sendMessageIMessage } from "./send-CVf8xWQj.js";
|
|
65
|
+
import { n as detectBinary } from "./onboard-helpers-CSiK1DGB.js";
|
|
66
|
+
import { t as resolvePairingIdLabel } from "./pairing-labels-DNY1LXbl.js";
|
|
67
67
|
import { createRequire } from "node:module";
|
|
68
68
|
import { spawn } from "node:child_process";
|
|
69
69
|
import { fileURLToPath } from "node:url";
|
|
@@ -2986,7 +2986,7 @@ function createWhatsAppLoginTool() {
|
|
|
2986
2986
|
force: Type.Optional(Type.Boolean())
|
|
2987
2987
|
}),
|
|
2988
2988
|
execute: async (_toolCallId, args) => {
|
|
2989
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
2989
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CHX7SBSI.js");
|
|
2990
2990
|
if ((args?.action ?? "start") === "wait") {
|
|
2991
2991
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
2992
2992
|
return {
|
|
@@ -4271,7 +4271,7 @@ async function preflightDiscordMessage(params) {
|
|
|
4271
4271
|
let preflightTranscript;
|
|
4272
4272
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
4273
4273
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
4274
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
4274
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-zKteixjl.js");
|
|
4275
4275
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
4276
4276
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
4277
4277
|
ctx: {
|
|
@@ -6039,7 +6039,7 @@ async function processDiscordMessage(ctx) {
|
|
|
6039
6039
|
mode: "strict",
|
|
6040
6040
|
trim: "both"
|
|
6041
6041
|
});
|
|
6042
|
-
if (!cleaned
|
|
6042
|
+
if (!cleaned) return;
|
|
6043
6043
|
if (cleaned === lastPartialText) return;
|
|
6044
6044
|
hasStreamedMessage = true;
|
|
6045
6045
|
if (discordStreamMode === "partial") {
|
|
@@ -17046,7 +17046,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
17046
17046
|
}
|
|
17047
17047
|
let commandsRegistry;
|
|
17048
17048
|
async function getCommandsRegistry() {
|
|
17049
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
17049
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-C-NFTH7P.js").then((n) => n.n);
|
|
17050
17050
|
return commandsRegistry;
|
|
17051
17051
|
}
|
|
17052
17052
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -17388,14 +17388,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
17388
17388
|
const channelName = channelInfo?.name;
|
|
17389
17389
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
17390
17390
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
17391
|
-
import("./resolve-route-
|
|
17392
|
-
import("./inbound-context-
|
|
17393
|
-
import("./provider-dispatcher-
|
|
17391
|
+
import("./resolve-route-BNRMZ0km.js").then((n) => n.r),
|
|
17392
|
+
import("./inbound-context-D94rw0Oq.js").then((n) => n.n),
|
|
17393
|
+
import("./provider-dispatcher-DaNI6eMi.js").then((n) => n.r)
|
|
17394
17394
|
]);
|
|
17395
17395
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordSessionMetaFromInbound, resolveStorePath }] = await Promise.all([
|
|
17396
17396
|
import("./conversation-label-C4SDz4sT.js").then((n) => n.t),
|
|
17397
|
-
import("./reply-prefix-
|
|
17398
|
-
import("./sessions
|
|
17397
|
+
import("./reply-prefix-BDI1sLXA.js").then((n) => n.n),
|
|
17398
|
+
import("./sessions-BxAqEHHy.js").then((n) => n.t)
|
|
17399
17399
|
]);
|
|
17400
17400
|
const route = resolveAgentRoute({
|
|
17401
17401
|
cfg,
|
|
@@ -17463,9 +17463,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
17463
17463
|
});
|
|
17464
17464
|
const deliverSlashPayloads = async (replies) => {
|
|
17465
17465
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
17466
|
-
import("./replies-
|
|
17466
|
+
import("./replies-pwJGu9Jo.js").then((n) => n.r),
|
|
17467
17467
|
import("./chunk-CSQfUhgF.js").then((n) => n.s),
|
|
17468
|
-
import("./markdown-tables-
|
|
17468
|
+
import("./markdown-tables-Bry8gXRC.js").then((n) => n.t)
|
|
17469
17469
|
]);
|
|
17470
17470
|
await deliverSlackSlashReplies({
|
|
17471
17471
|
replies,
|
|
@@ -19699,7 +19699,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
19699
19699
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
19700
19700
|
let preflightTranscript;
|
|
19701
19701
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
19702
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
19702
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-zKteixjl.js");
|
|
19703
19703
|
preflightTranscript = await transcribeFirstAudio({
|
|
19704
19704
|
ctx: {
|
|
19705
19705
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -20244,108 +20244,11 @@ function createLaneTextDeliverer(params) {
|
|
|
20244
20244
|
};
|
|
20245
20245
|
}
|
|
20246
20246
|
|
|
20247
|
-
//#endregion
|
|
20248
|
-
//#region src/telegram/reasoning-lane-coordinator.ts
|
|
20249
|
-
const REASONING_MESSAGE_PREFIX = "Reasoning:\n";
|
|
20250
|
-
const REASONING_TAG_PREFIXES = [
|
|
20251
|
-
"<think",
|
|
20252
|
-
"<thinking",
|
|
20253
|
-
"<thought",
|
|
20254
|
-
"<antthinking",
|
|
20255
|
-
"</think",
|
|
20256
|
-
"</thinking",
|
|
20257
|
-
"</thought",
|
|
20258
|
-
"</antthinking"
|
|
20259
|
-
];
|
|
20260
|
-
const THINKING_TAG_RE = /<\s*(\/?)\s*(?:think(?:ing)?|thought|antthinking)\b[^<>]*>/gi;
|
|
20261
|
-
function extractThinkingFromTaggedStreamOutsideCode(text) {
|
|
20262
|
-
if (!text) return "";
|
|
20263
|
-
const codeRegions = findCodeRegions(text);
|
|
20264
|
-
let result = "";
|
|
20265
|
-
let lastIndex = 0;
|
|
20266
|
-
let inThinking = false;
|
|
20267
|
-
THINKING_TAG_RE.lastIndex = 0;
|
|
20268
|
-
for (const match of text.matchAll(THINKING_TAG_RE)) {
|
|
20269
|
-
const idx = match.index ?? 0;
|
|
20270
|
-
if (isInsideCode(idx, codeRegions)) continue;
|
|
20271
|
-
if (inThinking) result += text.slice(lastIndex, idx);
|
|
20272
|
-
inThinking = !(match[1] === "/");
|
|
20273
|
-
lastIndex = idx + match[0].length;
|
|
20274
|
-
}
|
|
20275
|
-
if (inThinking) result += text.slice(lastIndex);
|
|
20276
|
-
return result.trim();
|
|
20277
|
-
}
|
|
20278
|
-
function isPartialReasoningTagPrefix(text) {
|
|
20279
|
-
const trimmed = text.trimStart().toLowerCase();
|
|
20280
|
-
if (!trimmed.startsWith("<")) return false;
|
|
20281
|
-
if (trimmed.includes(">")) return false;
|
|
20282
|
-
return REASONING_TAG_PREFIXES.some((prefix) => prefix.startsWith(trimmed));
|
|
20283
|
-
}
|
|
20284
|
-
function splitTelegramReasoningText(text) {
|
|
20285
|
-
if (typeof text !== "string") return {};
|
|
20286
|
-
const trimmed = text.trim();
|
|
20287
|
-
if (isPartialReasoningTagPrefix(trimmed)) return {};
|
|
20288
|
-
if (trimmed.startsWith(REASONING_MESSAGE_PREFIX) && trimmed.length > 11) return { reasoningText: trimmed };
|
|
20289
|
-
const taggedReasoning = extractThinkingFromTaggedStreamOutsideCode(text);
|
|
20290
|
-
const strippedAnswer = stripReasoningTagsFromText(text, {
|
|
20291
|
-
mode: "strict",
|
|
20292
|
-
trim: "both"
|
|
20293
|
-
});
|
|
20294
|
-
if (!taggedReasoning && strippedAnswer === text) return { answerText: text };
|
|
20295
|
-
return {
|
|
20296
|
-
reasoningText: taggedReasoning ? formatReasoningMessage(taggedReasoning) : void 0,
|
|
20297
|
-
answerText: strippedAnswer || void 0
|
|
20298
|
-
};
|
|
20299
|
-
}
|
|
20300
|
-
function createTelegramReasoningStepState() {
|
|
20301
|
-
let reasoningStatus = "none";
|
|
20302
|
-
let bufferedFinalAnswer;
|
|
20303
|
-
const noteReasoningHint = () => {
|
|
20304
|
-
if (reasoningStatus === "none") reasoningStatus = "hinted";
|
|
20305
|
-
};
|
|
20306
|
-
const noteReasoningDelivered = () => {
|
|
20307
|
-
reasoningStatus = "delivered";
|
|
20308
|
-
};
|
|
20309
|
-
const shouldBufferFinalAnswer = () => {
|
|
20310
|
-
return reasoningStatus === "hinted" && !bufferedFinalAnswer;
|
|
20311
|
-
};
|
|
20312
|
-
const bufferFinalAnswer = (value) => {
|
|
20313
|
-
bufferedFinalAnswer = value;
|
|
20314
|
-
};
|
|
20315
|
-
const takeBufferedFinalAnswer = () => {
|
|
20316
|
-
const value = bufferedFinalAnswer;
|
|
20317
|
-
bufferedFinalAnswer = void 0;
|
|
20318
|
-
return value;
|
|
20319
|
-
};
|
|
20320
|
-
const resetForNextStep = () => {
|
|
20321
|
-
reasoningStatus = "none";
|
|
20322
|
-
bufferedFinalAnswer = void 0;
|
|
20323
|
-
};
|
|
20324
|
-
return {
|
|
20325
|
-
noteReasoningHint,
|
|
20326
|
-
noteReasoningDelivered,
|
|
20327
|
-
shouldBufferFinalAnswer,
|
|
20328
|
-
bufferFinalAnswer,
|
|
20329
|
-
takeBufferedFinalAnswer,
|
|
20330
|
-
resetForNextStep
|
|
20331
|
-
};
|
|
20332
|
-
}
|
|
20333
|
-
|
|
20334
20247
|
//#endregion
|
|
20335
20248
|
//#region src/telegram/bot-message-dispatch.ts
|
|
20336
20249
|
const EMPTY_RESPONSE_FALLBACK$1 = "No response generated. Please try again.";
|
|
20337
20250
|
/** Minimum chars before sending first streaming message (improves push notification UX) */
|
|
20338
20251
|
const DRAFT_MIN_INITIAL_CHARS = 30;
|
|
20339
|
-
function resolveTelegramReasoningLevel(params) {
|
|
20340
|
-
const { cfg, sessionKey, agentId } = params;
|
|
20341
|
-
if (!sessionKey) return "off";
|
|
20342
|
-
try {
|
|
20343
|
-
const store = loadSessionStore(resolveStorePath(cfg.session?.store, { agentId }), { skipCache: true });
|
|
20344
|
-
const level = (store[sessionKey.toLowerCase()] ?? store[sessionKey])?.reasoningLevel;
|
|
20345
|
-
if (level === "on" || level === "stream") return level;
|
|
20346
|
-
} catch {}
|
|
20347
|
-
return "off";
|
|
20348
|
-
}
|
|
20349
20252
|
const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode, streamMode, textLimit, telegramCfg, opts }) => {
|
|
20350
20253
|
const { ctxPayload, msg, chatId, isGroup, threadSpec, historyKey, historyLimit, groupHistories, route, skillFilter, sendTyping, sendRecordVoice, ackReactionPromise, reactionApi, removeAckAfterReply, statusReactionController } = context;
|
|
20351
20254
|
const draftMaxChars = Math.min(textLimit, 4096);
|
|
@@ -20359,21 +20262,12 @@ const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode
|
|
|
20359
20262
|
parseMode: "HTML"
|
|
20360
20263
|
});
|
|
20361
20264
|
const accountBlockStreamingEnabled = typeof telegramCfg.blockStreaming === "boolean" ? telegramCfg.blockStreaming : cfg.agents?.defaults?.blockStreamingDefault === "on";
|
|
20362
|
-
const resolvedReasoningLevel = resolveTelegramReasoningLevel({
|
|
20363
|
-
cfg,
|
|
20364
|
-
sessionKey: ctxPayload.SessionKey,
|
|
20365
|
-
agentId: route.agentId
|
|
20366
|
-
});
|
|
20367
|
-
const forceBlockStreamingForReasoning = resolvedReasoningLevel === "on";
|
|
20368
|
-
const streamReasoningDraft = resolvedReasoningLevel === "stream";
|
|
20369
20265
|
const previewStreamingEnabled = streamMode !== "off";
|
|
20370
|
-
const canStreamAnswerDraft = previewStreamingEnabled && !accountBlockStreamingEnabled
|
|
20371
|
-
const canStreamReasoningDraft = canStreamAnswerDraft || streamReasoningDraft;
|
|
20266
|
+
const canStreamAnswerDraft = previewStreamingEnabled && !accountBlockStreamingEnabled;
|
|
20372
20267
|
const draftReplyToMessageId = replyToMode !== "off" && typeof msg.message_id === "number" ? msg.message_id : void 0;
|
|
20373
20268
|
const draftMinInitialChars = DRAFT_MIN_INITIAL_CHARS;
|
|
20374
20269
|
const mediaLocalRoots = getAgentScopedMediaLocalRoots(cfg, route.agentId);
|
|
20375
20270
|
const archivedAnswerPreviews = [];
|
|
20376
|
-
const archivedReasoningPreviewIds = [];
|
|
20377
20271
|
const createDraftLane = (laneName, enabled) => {
|
|
20378
20272
|
return {
|
|
20379
20273
|
stream: enabled ? createTelegramDraftStream({
|
|
@@ -20384,11 +20278,7 @@ const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode
|
|
|
20384
20278
|
replyToMessageId: draftReplyToMessageId,
|
|
20385
20279
|
minInitialChars: draftMinInitialChars,
|
|
20386
20280
|
renderText: renderDraftPreview,
|
|
20387
|
-
onSupersededPreview: laneName === "answer"
|
|
20388
|
-
if (laneName === "reasoning") {
|
|
20389
|
-
if (!archivedReasoningPreviewIds.includes(preview.messageId)) archivedReasoningPreviewIds.push(preview.messageId);
|
|
20390
|
-
return;
|
|
20391
|
-
}
|
|
20281
|
+
onSupersededPreview: laneName === "answer" ? (preview) => {
|
|
20392
20282
|
archivedAnswerPreviews.push({
|
|
20393
20283
|
messageId: preview.messageId,
|
|
20394
20284
|
textSnapshot: preview.textSnapshot
|
|
@@ -20403,29 +20293,13 @@ const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode
|
|
|
20403
20293
|
};
|
|
20404
20294
|
const lanes = {
|
|
20405
20295
|
answer: createDraftLane("answer", canStreamAnswerDraft),
|
|
20406
|
-
reasoning:
|
|
20296
|
+
reasoning: {
|
|
20297
|
+
stream: void 0,
|
|
20298
|
+
lastPartialText: "",
|
|
20299
|
+
hasStreamedMessage: false
|
|
20300
|
+
}
|
|
20407
20301
|
};
|
|
20408
20302
|
const answerLane = lanes.answer;
|
|
20409
|
-
const reasoningLane = lanes.reasoning;
|
|
20410
|
-
let splitReasoningOnNextStream = false;
|
|
20411
|
-
const reasoningStepState = createTelegramReasoningStepState();
|
|
20412
|
-
const splitTextIntoLaneSegments = (text) => {
|
|
20413
|
-
const split = splitTelegramReasoningText(text);
|
|
20414
|
-
const segments = [];
|
|
20415
|
-
const suppressReasoning = resolvedReasoningLevel === "off";
|
|
20416
|
-
if (split.reasoningText && !suppressReasoning) segments.push({
|
|
20417
|
-
lane: "reasoning",
|
|
20418
|
-
text: split.reasoningText
|
|
20419
|
-
});
|
|
20420
|
-
if (split.answerText) segments.push({
|
|
20421
|
-
lane: "answer",
|
|
20422
|
-
text: split.answerText
|
|
20423
|
-
});
|
|
20424
|
-
return {
|
|
20425
|
-
segments,
|
|
20426
|
-
suppressedReasoningOnly: Boolean(split.reasoningText) && suppressReasoning && !split.answerText
|
|
20427
|
-
};
|
|
20428
|
-
};
|
|
20429
20303
|
const resetDraftLaneState = (lane) => {
|
|
20430
20304
|
lane.lastPartialText = "";
|
|
20431
20305
|
lane.hasStreamedMessage = false;
|
|
@@ -20439,21 +20313,11 @@ const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode
|
|
|
20439
20313
|
lane.lastPartialText = text;
|
|
20440
20314
|
laneStream.update(text);
|
|
20441
20315
|
};
|
|
20442
|
-
const ingestDraftLaneSegments = (text) => {
|
|
20443
|
-
const split = splitTextIntoLaneSegments(text);
|
|
20444
|
-
for (const segment of split.segments) {
|
|
20445
|
-
if (segment.lane === "reasoning") {
|
|
20446
|
-
reasoningStepState.noteReasoningHint();
|
|
20447
|
-
reasoningStepState.noteReasoningDelivered();
|
|
20448
|
-
}
|
|
20449
|
-
updateDraftFromPartial(lanes[segment.lane], segment.text);
|
|
20450
|
-
}
|
|
20451
|
-
};
|
|
20452
20316
|
const flushDraftLane = async (lane) => {
|
|
20453
20317
|
if (!lane.stream) return;
|
|
20454
20318
|
await lane.stream.flush();
|
|
20455
20319
|
};
|
|
20456
|
-
const disableBlockStreaming = !previewStreamingEnabled ? true :
|
|
20320
|
+
const disableBlockStreaming = !previewStreamingEnabled ? true : typeof telegramCfg.blockStreaming === "boolean" ? !telegramCfg.blockStreaming : canStreamAnswerDraft ? true : void 0;
|
|
20457
20321
|
const { onModelSelected, ...prefixOptions } = createReplyPrefixOptions({
|
|
20458
20322
|
cfg,
|
|
20459
20323
|
agentId: route.agentId,
|
|
@@ -20590,71 +20454,21 @@ const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode
|
|
|
20590
20454
|
typingCallbacks,
|
|
20591
20455
|
deliver: async (payload, info) => {
|
|
20592
20456
|
const previewButtons = (payload.channelData?.telegram)?.buttons;
|
|
20593
|
-
const split = splitTextIntoLaneSegments(payload.text);
|
|
20594
|
-
const segments = split.segments;
|
|
20595
20457
|
const hasMedia = Boolean(payload.mediaUrl) || (payload.mediaUrls?.length ?? 0) > 0;
|
|
20596
|
-
const
|
|
20597
|
-
|
|
20598
|
-
if (!buffered) return;
|
|
20599
|
-
const bufferedButtons = (buffered.payload.channelData?.telegram)?.buttons;
|
|
20458
|
+
const text = payload.text;
|
|
20459
|
+
if (typeof text === "string" && text.length > 0) {
|
|
20600
20460
|
await deliverLaneText({
|
|
20601
20461
|
laneName: "answer",
|
|
20602
|
-
text
|
|
20603
|
-
payload: buffered.payload,
|
|
20604
|
-
infoKind: "final",
|
|
20605
|
-
previewButtons: bufferedButtons
|
|
20606
|
-
});
|
|
20607
|
-
reasoningStepState.resetForNextStep();
|
|
20608
|
-
};
|
|
20609
|
-
for (const segment of segments) {
|
|
20610
|
-
if (segment.lane === "answer" && info.kind === "final" && reasoningStepState.shouldBufferFinalAnswer()) {
|
|
20611
|
-
reasoningStepState.bufferFinalAnswer({
|
|
20612
|
-
payload,
|
|
20613
|
-
text: segment.text
|
|
20614
|
-
});
|
|
20615
|
-
continue;
|
|
20616
|
-
}
|
|
20617
|
-
if (segment.lane === "reasoning") reasoningStepState.noteReasoningHint();
|
|
20618
|
-
const result = await deliverLaneText({
|
|
20619
|
-
laneName: segment.lane,
|
|
20620
|
-
text: segment.text,
|
|
20462
|
+
text,
|
|
20621
20463
|
payload,
|
|
20622
20464
|
infoKind: info.kind,
|
|
20623
|
-
previewButtons
|
|
20624
|
-
allowPreviewUpdateForNonFinal: segment.lane === "reasoning"
|
|
20465
|
+
previewButtons
|
|
20625
20466
|
});
|
|
20626
|
-
if (segment.lane === "reasoning") {
|
|
20627
|
-
if (result !== "skipped") {
|
|
20628
|
-
reasoningStepState.noteReasoningDelivered();
|
|
20629
|
-
await flushBufferedFinalAnswer();
|
|
20630
|
-
}
|
|
20631
|
-
continue;
|
|
20632
|
-
}
|
|
20633
|
-
if (info.kind === "final") {
|
|
20634
|
-
if (reasoningLane.hasStreamedMessage) finalizedPreviewByLane.reasoning = true;
|
|
20635
|
-
reasoningStepState.resetForNextStep();
|
|
20636
|
-
}
|
|
20637
|
-
}
|
|
20638
|
-
if (segments.length > 0) return;
|
|
20639
|
-
if (split.suppressedReasoningOnly) {
|
|
20640
|
-
if (hasMedia) await sendPayload(typeof payload.text === "string" ? {
|
|
20641
|
-
...payload,
|
|
20642
|
-
text: ""
|
|
20643
|
-
} : payload);
|
|
20644
|
-
if (info.kind === "final") await flushBufferedFinalAnswer();
|
|
20645
|
-
return;
|
|
20646
|
-
}
|
|
20647
|
-
if (info.kind === "final") {
|
|
20648
|
-
await answerLane.stream?.stop();
|
|
20649
|
-
await reasoningLane.stream?.stop();
|
|
20650
|
-
reasoningStepState.resetForNextStep();
|
|
20651
|
-
}
|
|
20652
|
-
if (!(hasMedia || typeof payload.text !== "string" || payload.text.length > 0)) {
|
|
20653
|
-
if (info.kind === "final") await flushBufferedFinalAnswer();
|
|
20654
20467
|
return;
|
|
20655
20468
|
}
|
|
20469
|
+
if (info.kind === "final") await answerLane.stream?.stop();
|
|
20470
|
+
if (!(hasMedia || typeof text !== "string" || text.length > 0)) return;
|
|
20656
20471
|
await sendPayload(payload);
|
|
20657
|
-
if (info.kind === "final") await flushBufferedFinalAnswer();
|
|
20658
20472
|
},
|
|
20659
20473
|
onSkip: (_payload, info) => {
|
|
20660
20474
|
if (info.reason !== "silent") deliveryState.markNonSilentSkip();
|
|
@@ -20667,17 +20481,8 @@ const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode
|
|
|
20667
20481
|
replyOptions: {
|
|
20668
20482
|
skillFilter,
|
|
20669
20483
|
disableBlockStreaming,
|
|
20670
|
-
onPartialReply: answerLane.stream
|
|
20671
|
-
onReasoningStream: reasoningLane.stream ? (payload) => {
|
|
20672
|
-
if (splitReasoningOnNextStream) {
|
|
20673
|
-
reasoningLane.stream?.forceNewMessage();
|
|
20674
|
-
resetDraftLaneState(reasoningLane);
|
|
20675
|
-
splitReasoningOnNextStream = false;
|
|
20676
|
-
}
|
|
20677
|
-
ingestDraftLaneSegments(payload.text);
|
|
20678
|
-
} : void 0,
|
|
20484
|
+
onPartialReply: answerLane.stream ? (payload) => updateDraftFromPartial(answerLane, payload.text) : void 0,
|
|
20679
20485
|
onAssistantMessageStart: answerLane.stream ? async () => {
|
|
20680
|
-
reasoningStepState.resetForNextStep();
|
|
20681
20486
|
if (answerLane.hasStreamedMessage) {
|
|
20682
20487
|
const previewMessageId = answerLane.stream?.messageId();
|
|
20683
20488
|
if (typeof previewMessageId === "number") archivedAnswerPreviews.push({
|
|
@@ -20688,9 +20493,6 @@ const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode
|
|
|
20688
20493
|
}
|
|
20689
20494
|
resetDraftLaneState(answerLane);
|
|
20690
20495
|
} : void 0,
|
|
20691
|
-
onReasoningEnd: reasoningLane.stream ? () => {
|
|
20692
|
-
splitReasoningOnNextStream = reasoningLane.hasStreamedMessage;
|
|
20693
|
-
} : void 0,
|
|
20694
20496
|
onToolStart: statusReactionController ? async (payload) => {
|
|
20695
20497
|
await statusReactionController.setTool(payload.name);
|
|
20696
20498
|
} : void 0,
|
|
@@ -20698,39 +20500,16 @@ const dispatchTelegramMessage = async ({ context, bot, cfg, runtime, replyToMode
|
|
|
20698
20500
|
}
|
|
20699
20501
|
}));
|
|
20700
20502
|
} finally {
|
|
20701
|
-
const
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
}, {
|
|
20706
|
-
laneName: "reasoning",
|
|
20707
|
-
lane: reasoningLane
|
|
20708
|
-
}];
|
|
20709
|
-
for (const laneState of lanesToCleanup) {
|
|
20710
|
-
const stream = laneState.lane.stream;
|
|
20711
|
-
if (!stream) continue;
|
|
20712
|
-
const shouldClear = !finalizedPreviewByLane[laneState.laneName];
|
|
20713
|
-
const existing = streamCleanupStates.get(stream);
|
|
20714
|
-
if (!existing) {
|
|
20715
|
-
streamCleanupStates.set(stream, { shouldClear });
|
|
20716
|
-
continue;
|
|
20717
|
-
}
|
|
20718
|
-
existing.shouldClear = existing.shouldClear && shouldClear;
|
|
20719
|
-
}
|
|
20720
|
-
for (const [stream, cleanupState] of streamCleanupStates) {
|
|
20721
|
-
await stream.stop();
|
|
20722
|
-
if (cleanupState.shouldClear) await stream.clear();
|
|
20503
|
+
const answerStream = answerLane.stream;
|
|
20504
|
+
if (answerStream) {
|
|
20505
|
+
await answerStream.stop();
|
|
20506
|
+
if (!finalizedPreviewByLane.answer) await answerStream.clear();
|
|
20723
20507
|
}
|
|
20724
20508
|
for (const archivedPreview of archivedAnswerPreviews) try {
|
|
20725
20509
|
await bot.api.deleteMessage(chatId, archivedPreview.messageId);
|
|
20726
20510
|
} catch (err) {
|
|
20727
20511
|
logVerbose(`telegram: archived answer preview cleanup failed (${archivedPreview.messageId}): ${String(err)}`);
|
|
20728
20512
|
}
|
|
20729
|
-
for (const messageId of archivedReasoningPreviewIds) try {
|
|
20730
|
-
await bot.api.deleteMessage(chatId, messageId);
|
|
20731
|
-
} catch (err) {
|
|
20732
|
-
logVerbose(`telegram: archived reasoning preview cleanup failed (${messageId}): ${String(err)}`);
|
|
20733
|
-
}
|
|
20734
20513
|
}
|
|
20735
20514
|
let sentFallback = false;
|
|
20736
20515
|
const deliverySummary = deliveryState.snapshot();
|
|
@@ -21942,23 +21721,23 @@ let webLoginQrPromise = null;
|
|
|
21942
21721
|
let webChannelPromise = null;
|
|
21943
21722
|
let whatsappActionsPromise = null;
|
|
21944
21723
|
function loadWebOutbound() {
|
|
21945
|
-
webOutboundPromise ??= import("./outbound-
|
|
21724
|
+
webOutboundPromise ??= import("./outbound-0OjyS1ay.js").then((n) => n.t);
|
|
21946
21725
|
return webOutboundPromise;
|
|
21947
21726
|
}
|
|
21948
21727
|
function loadWebLogin() {
|
|
21949
|
-
webLoginPromise ??= import("./login-
|
|
21728
|
+
webLoginPromise ??= import("./login-BLWuoXgk.js").then((n) => n.n);
|
|
21950
21729
|
return webLoginPromise;
|
|
21951
21730
|
}
|
|
21952
21731
|
function loadWebLoginQr() {
|
|
21953
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
21732
|
+
webLoginQrPromise ??= import("./login-qr-CHX7SBSI.js");
|
|
21954
21733
|
return webLoginQrPromise;
|
|
21955
21734
|
}
|
|
21956
21735
|
function loadWebChannel() {
|
|
21957
|
-
webChannelPromise ??= import("./web-
|
|
21736
|
+
webChannelPromise ??= import("./web-D5JAxqw3.js");
|
|
21958
21737
|
return webChannelPromise;
|
|
21959
21738
|
}
|
|
21960
21739
|
function loadWhatsAppActions() {
|
|
21961
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
21740
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-DNKQ1h0G.js");
|
|
21962
21741
|
return whatsappActionsPromise;
|
|
21963
21742
|
}
|
|
21964
21743
|
function createPluginRuntime() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Mt as resolvePreferredRemoteClawTmpDir, qt as resolveStateDir } from "./entry.js";
|
|
2
|
-
import { a as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
+
import { a as resolveAgentWorkspaceDir } from "./agent-scope-BDF8U7HM.js";
|
|
3
3
|
import { i as logWarn } from "./logger-BWMPnILd.js";
|
|
4
4
|
import { n as extensionForMime, t as detectMime } from "./mime-Cxh_64P6.js";
|
|
5
5
|
import { t as bindAbortRelay } from "./fetch-timeout-DoySHqfO.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as resolveStateDir } from "./paths-BTaH3rLn.js";
|
|
2
2
|
import { Z as resolvePreferredRemoteClawTmpDir } from "./utils-C5daYcFn.js";
|
|
3
|
-
import { a as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { i as logWarn } from "./logger-
|
|
3
|
+
import { a as resolveAgentWorkspaceDir } from "./agent-scope-Dzc3Pxwr.js";
|
|
4
|
+
import { i as logWarn } from "./logger-BiVcvOhw.js";
|
|
5
5
|
import { t as bindAbortRelay } from "./fetch-timeout-DTIN7CGM.js";
|
|
6
6
|
import { a as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-m7kFIobZ.js";
|
|
7
7
|
import { n as extensionForMime, t as detectMime } from "./mime-BS3jhcZE.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as logVerboseConsole, E as info, P as warn, T as danger, z as getLogger } from "./utils-C5daYcFn.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { n as defaultRuntime } from "./runtime-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BgxIzx7w.js";
|
|
3
|
+
import { n as defaultRuntime } from "./runtime-Ds3E9SqF.js";
|
|
4
4
|
|
|
5
5
|
//#region src/logger.ts
|
|
6
6
|
const subsystemPrefixRe = /^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { _ as defaultRuntime, dt as danger, ft as info, yt as success } from "./entry.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-CVfo8I5f.js";
|
|
4
|
-
import { i as loadConfig } from "./config-
|
|
4
|
+
import { i as loadConfig } from "./config-CtIjLqOj.js";
|
|
5
5
|
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-BTXSfPWi.js";
|
|
6
6
|
import { r as logInfo } from "./logger-BWMPnILd.js";
|
|
7
7
|
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-DBL5nHDy.js";
|