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,11 +1,11 @@
|
|
|
1
1
|
import { f as normalizeE164, s as escapeRegExp } from "./utils-C5daYcFn.js";
|
|
2
|
-
import { p as getChatChannelMeta, u as CHAT_CHANNEL_ORDER, y as requireActivePluginRegistry } from "./subsystem-
|
|
3
|
-
import { h as normalizeAccountId } from "./session-key-
|
|
2
|
+
import { p as getChatChannelMeta, u as CHAT_CHANNEL_ORDER, y as requireActivePluginRegistry } from "./subsystem-BgxIzx7w.js";
|
|
3
|
+
import { h as normalizeAccountId } from "./session-key-C2n-VILA.js";
|
|
4
4
|
import { t as resolveAccountEntry } from "./account-lookup-0KDSp5Mj.js";
|
|
5
|
-
import { C as resolveDiscordAccount, d as resolveTelegramAccount, g as resolveSlackReplyToMode, h as resolveSlackAccount, o as normalizeWhatsAppTarget } from "./plugins-
|
|
6
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
7
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
8
|
-
import { i as resolveSignalAccount } from "./accounts-
|
|
5
|
+
import { C as resolveDiscordAccount, d as resolveTelegramAccount, g as resolveSlackReplyToMode, h as resolveSlackAccount, o as normalizeWhatsAppTarget } from "./plugins-HyUNaoYP.js";
|
|
6
|
+
import { i as resolveWhatsAppAccount } from "./accounts-Y6fBCsx_.js";
|
|
7
|
+
import { r as resolveIMessageAccount } from "./accounts-B5BNJ_lk.js";
|
|
8
|
+
import { i as resolveSignalAccount } from "./accounts-DOwpPNpJ.js";
|
|
9
9
|
|
|
10
10
|
//#region src/config/types.tools.ts
|
|
11
11
|
const TOOLS_BY_SENDER_KEY_TYPES = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as resolveCliName } from "./cli-name-C6rJGl18.js";
|
|
2
2
|
import { t as note } from "./note-Dlv4NmlQ.js";
|
|
3
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
3
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-BFZAm27l.js";
|
|
4
4
|
import { t as resolveRemoteClawPackageRoot } from "./remoteclaw-root-DybYl8PL.js";
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as resolveCliName } from "./cli-name-BicfmwQX.js";
|
|
2
|
-
import { t as note } from "./note-
|
|
3
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
2
|
+
import { t as note } from "./note-xRSpyX5s.js";
|
|
3
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-UVOmQ6zG.js";
|
|
4
4
|
import { t as resolveRemoteClawPackageRoot } from "./remoteclaw-root-C2HV2VeC.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { f as resolveLegacyStateDirs, h as resolveStateDir, m as resolveOAuthDir, p as resolveNewStateDir, t as CONFIG_PATH } from "./paths-BTaH3rLn.js";
|
|
2
2
|
import { h as resolveHomeDir } from "./utils-C5daYcFn.js";
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import { $ as resolveDiscordPreviewStreamMode, d as RemoteClawSchema, et as resolveSlackNativeStreaming, n as migrateLegacyConfig, nt as resolveTelegramPreviewStreamMode, o as readConfigFileSnapshot, tt as resolveSlackStreamingMode } from "./config-
|
|
6
|
-
import { f as parseToolsBySenderTypedKey } from "./dock-
|
|
3
|
+
import { m as DEFAULT_ACCOUNT_ID, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, s as normalizeAgentId } from "./session-key-C2n-VILA.js";
|
|
4
|
+
import { s as resolveDefaultAgentId } from "./agent-scope-Dzc3Pxwr.js";
|
|
5
|
+
import { $ as resolveDiscordPreviewStreamMode, d as RemoteClawSchema, et as resolveSlackNativeStreaming, n as migrateLegacyConfig, nt as resolveTelegramPreviewStreamMode, o as readConfigFileSnapshot, tt as resolveSlackStreamingMode } from "./config-BXKZbG-n.js";
|
|
6
|
+
import { f as parseToolsBySenderTypedKey } from "./dock-_qq4sBie.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-DgXcqxBt.js";
|
|
8
|
-
import { d as resolveTelegramAccount, l as listTelegramAccountIds } from "./plugins-
|
|
9
|
-
import {
|
|
8
|
+
import { d as resolveTelegramAccount, l as listTelegramAccountIds } from "./plugins-HyUNaoYP.js";
|
|
9
|
+
import { K as canonicalizeMainSessionAlias, s as saveSessionStore } from "./store-qGKdk2ZD.js";
|
|
10
10
|
import { t as collectProviderDangerousNameMatchingScopes } from "./dangerous-name-matching-DaVRgwer.js";
|
|
11
|
-
import { t as note } from "./note-
|
|
12
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
11
|
+
import { t as note } from "./note-xRSpyX5s.js";
|
|
12
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-Cd9WE5kB.js";
|
|
13
13
|
import { t as isWithinDir } from "./path-safety-juI2XbO1.js";
|
|
14
14
|
import { t as fetchTelegramChatId } from "./api-BeQMq2iS.js";
|
|
15
15
|
import { a as isMattermostMutableAllowEntry, c as normalizeTelegramAllowFromEntry, i as isMSTeamsMutableAllowEntry, n as isGoogleChatMutableAllowEntry, o as isSlackMutableAllowEntry, r as isIrcMutableAllowEntry, s as isNumericTelegramUserId, t as isDiscordMutableAllowEntry } from "./mutable-allowlist-detectors-U5ThQr9V.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Gt as resolveNewStateDir, Kt as resolveOAuthDir, Nt as CONFIG_PATH, Wt as resolveLegacyStateDirs, qt as resolveStateDir, tt as resolveHomeDir } from "./entry.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-CVfo8I5f.js";
|
|
3
3
|
import { m as DEFAULT_ACCOUNT_ID, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, s as normalizeAgentId } from "./session-key-C2n-VILA.js";
|
|
4
|
-
import { $ as resolveDiscordPreviewStreamMode, d as RemoteClawSchema, et as resolveSlackNativeStreaming, n as migrateLegacyConfig, nt as resolveTelegramPreviewStreamMode, o as readConfigFileSnapshot, tt as resolveSlackStreamingMode } from "./config-
|
|
5
|
-
import { s as resolveDefaultAgentId } from "./agent-scope-
|
|
6
|
-
import { f as parseToolsBySenderTypedKey } from "./dock-
|
|
7
|
-
import {
|
|
8
|
-
import { d as resolveTelegramAccount, l as listTelegramAccountIds } from "./plugins-
|
|
4
|
+
import { $ as resolveDiscordPreviewStreamMode, d as RemoteClawSchema, et as resolveSlackNativeStreaming, n as migrateLegacyConfig, nt as resolveTelegramPreviewStreamMode, o as readConfigFileSnapshot, tt as resolveSlackStreamingMode } from "./config-CtIjLqOj.js";
|
|
5
|
+
import { s as resolveDefaultAgentId } from "./agent-scope-BDF8U7HM.js";
|
|
6
|
+
import { f as parseToolsBySenderTypedKey } from "./dock-BtLbLczG.js";
|
|
7
|
+
import { K as canonicalizeMainSessionAlias, m as saveSessionStore } from "./sessions-BxAqEHHy.js";
|
|
8
|
+
import { d as resolveTelegramAccount, l as listTelegramAccountIds } from "./plugins-BtMu6L8i.js";
|
|
9
9
|
import { t as note } from "./note-Dlv4NmlQ.js";
|
|
10
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
10
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-7lj3ONi8.js";
|
|
11
11
|
import { t as isWithinDir } from "./path-safety-DkT9RmTG.js";
|
|
12
12
|
import { t as collectProviderDangerousNameMatchingScopes } from "./dangerous-name-matching-BzmiLXmA.js";
|
|
13
13
|
import { t as fetchTelegramChatId } from "./api-CxX8-gGz.js";
|
package/dist/entry.js
CHANGED
|
@@ -1449,8 +1449,6 @@ const DEAD_HOOKS = new Set([
|
|
|
1449
1449
|
"before_agent_start",
|
|
1450
1450
|
"llm_input",
|
|
1451
1451
|
"llm_output",
|
|
1452
|
-
"before_compaction",
|
|
1453
|
-
"after_compaction",
|
|
1454
1452
|
"tool_result_persist"
|
|
1455
1453
|
]);
|
|
1456
1454
|
function createPluginRegistry(registryParams) {
|
|
@@ -2609,7 +2607,7 @@ if (!isMainModule({
|
|
|
2609
2607
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
2610
2608
|
process$1.argv = parsed.argv;
|
|
2611
2609
|
}
|
|
2612
|
-
import("./run-main-
|
|
2610
|
+
import("./run-main-DPXDf7bs.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
2613
2611
|
console.error("[remoteclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
2614
2612
|
process$1.exitCode = 1;
|
|
2615
2613
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as shouldLogVerbose, T as danger } from "./utils-C5daYcFn.js";
|
|
2
|
-
import { n as logError, t as logDebug } from "./logger-
|
|
2
|
+
import { n as logError, t as logDebug } from "./logger-BiVcvOhw.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
5
|
import { execFile, spawn } from "node:child_process";
|
|
@@ -196,10 +196,6 @@ body {
|
|
|
196
196
|
color: var(--error);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.tree-compaction {
|
|
200
|
-
color: var(--borderAccent);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
199
|
.tree-branch-summary {
|
|
204
200
|
color: var(--warning);
|
|
205
201
|
}
|
|
@@ -565,38 +561,6 @@ body {
|
|
|
565
561
|
font-weight: bold;
|
|
566
562
|
}
|
|
567
563
|
|
|
568
|
-
/* Compaction / Branch Summary - matches customMessage colors from TUI */
|
|
569
|
-
.compaction {
|
|
570
|
-
background: var(--customMessageBg);
|
|
571
|
-
border-radius: 4px;
|
|
572
|
-
padding: var(--line-height);
|
|
573
|
-
cursor: pointer;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.compaction-label {
|
|
577
|
-
color: var(--customMessageLabel);
|
|
578
|
-
font-weight: bold;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
.compaction-collapsed {
|
|
582
|
-
color: var(--customMessageText);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.compaction-content {
|
|
586
|
-
display: none;
|
|
587
|
-
color: var(--customMessageText);
|
|
588
|
-
white-space: pre-wrap;
|
|
589
|
-
margin-top: var(--line-height);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.compaction.expanded .compaction-collapsed {
|
|
593
|
-
display: none;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.compaction.expanded .compaction-content {
|
|
597
|
-
display: block;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
564
|
/* System prompt */
|
|
601
565
|
.system-prompt {
|
|
602
566
|
background: var(--customMessageBg);
|
|
@@ -374,18 +374,12 @@
|
|
|
374
374
|
typeof entry.content === "string" ? entry.content : extractContent(entry.content),
|
|
375
375
|
);
|
|
376
376
|
break;
|
|
377
|
-
case "compaction":
|
|
378
|
-
parts.push("compaction");
|
|
379
|
-
break;
|
|
380
377
|
case "branch_summary":
|
|
381
378
|
parts.push("branch summary", entry.summary);
|
|
382
379
|
break;
|
|
383
380
|
case "model_change":
|
|
384
381
|
parts.push("model", entry.modelId);
|
|
385
382
|
break;
|
|
386
|
-
case "thinking_level_change":
|
|
387
|
-
parts.push("thinking", entry.thinkingLevel);
|
|
388
|
-
break;
|
|
389
383
|
}
|
|
390
384
|
|
|
391
385
|
return parts.join(" ").toLowerCase();
|
|
@@ -419,7 +413,7 @@
|
|
|
419
413
|
}
|
|
420
414
|
|
|
421
415
|
// Apply filter mode
|
|
422
|
-
const isSettingsEntry = ["label", "custom", "model_change"
|
|
416
|
+
const isSettingsEntry = ["label", "custom", "model_change"].includes(
|
|
423
417
|
entry.type,
|
|
424
418
|
);
|
|
425
419
|
let passesFilter = true;
|
|
@@ -756,11 +750,6 @@
|
|
|
756
750
|
}
|
|
757
751
|
return labelHtml + `<span class="tree-muted">[${escapeHtml(msg.role)}]</span>`;
|
|
758
752
|
}
|
|
759
|
-
case "compaction":
|
|
760
|
-
return (
|
|
761
|
-
labelHtml +
|
|
762
|
-
`<span class="tree-compaction">[compaction: ${Math.round(entry.tokensBefore / 1000)}k tokens]</span>`
|
|
763
|
-
);
|
|
764
753
|
case "branch_summary": {
|
|
765
754
|
const summary = truncate(normalize(entry.summary || ""));
|
|
766
755
|
return (
|
|
@@ -778,8 +767,6 @@
|
|
|
778
767
|
}
|
|
779
768
|
case "model_change":
|
|
780
769
|
return labelHtml + `<span class="tree-muted">[model: ${escapeHtml(entry.modelId)}]</span>`;
|
|
781
|
-
case "thinking_level_change":
|
|
782
|
-
return labelHtml + `<span class="tree-muted">[thinking: ${escapeHtml(entry.thinkingLevel)}]</span>`;
|
|
783
770
|
default:
|
|
784
771
|
return labelHtml + `<span class="tree-muted">[${escapeHtml(entry.type)}]</span>`;
|
|
785
772
|
}
|
|
@@ -1351,14 +1338,6 @@
|
|
|
1351
1338
|
return `<div class="model-change" id="${entryId}">${tsHtml}Switched to model: <span class="model-name">${escapeHtml(entry.provider)}/${escapeHtml(entry.modelId)}</span></div>`;
|
|
1352
1339
|
}
|
|
1353
1340
|
|
|
1354
|
-
if (entry.type === "compaction") {
|
|
1355
|
-
return `<div class="compaction" id="${entryId}" onclick="this.classList.toggle('expanded')">
|
|
1356
|
-
<div class="compaction-label">[compaction]</div>
|
|
1357
|
-
<div class="compaction-collapsed">Compacted from ${entry.tokensBefore.toLocaleString()} tokens</div>
|
|
1358
|
-
<div class="compaction-content"><strong>Compacted from ${entry.tokensBefore.toLocaleString()} tokens</strong>\n\n${escapeHtml(entry.summary)}</div>
|
|
1359
|
-
</div>`;
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
1341
|
if (entry.type === "branch_summary") {
|
|
1363
1342
|
return `<div class="branch-summary" id="${entryId}">${tsHtml}
|
|
1364
1343
|
<div class="branch-summary-header">Branch Summary</div>
|
|
@@ -1385,7 +1364,6 @@
|
|
|
1385
1364
|
assistantMessages = 0,
|
|
1386
1365
|
toolResults = 0;
|
|
1387
1366
|
let customMessages = 0,
|
|
1388
|
-
compactions = 0,
|
|
1389
1367
|
branchSummaries = 0,
|
|
1390
1368
|
toolCalls = 0;
|
|
1391
1369
|
const tokens = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
|
|
@@ -1420,8 +1398,6 @@
|
|
|
1420
1398
|
if (msg.role === "toolResult") {
|
|
1421
1399
|
toolResults++;
|
|
1422
1400
|
}
|
|
1423
|
-
} else if (entry.type === "compaction") {
|
|
1424
|
-
compactions++;
|
|
1425
1401
|
} else if (entry.type === "branch_summary") {
|
|
1426
1402
|
branchSummaries++;
|
|
1427
1403
|
} else if (entry.type === "custom_message") {
|
|
@@ -1434,7 +1410,6 @@
|
|
|
1434
1410
|
assistantMessages,
|
|
1435
1411
|
toolResults,
|
|
1436
1412
|
customMessages,
|
|
1437
|
-
compactions,
|
|
1438
1413
|
branchSummaries,
|
|
1439
1414
|
toolCalls,
|
|
1440
1415
|
tokens,
|
|
@@ -1479,9 +1454,6 @@
|
|
|
1479
1454
|
if (globalStats.customMessages) {
|
|
1480
1455
|
msgParts.push(`${globalStats.customMessages} custom`);
|
|
1481
1456
|
}
|
|
1482
|
-
if (globalStats.compactions) {
|
|
1483
|
-
msgParts.push(`${globalStats.compactions} compactions`);
|
|
1484
|
-
}
|
|
1485
1457
|
if (globalStats.branchSummaries) {
|
|
1486
1458
|
msgParts.push(`${globalStats.branchSummaries} branch summaries`);
|
|
1487
1459
|
}
|
|
@@ -1759,9 +1731,6 @@
|
|
|
1759
1731
|
document.querySelectorAll(".tool-output.expandable").forEach((el) => {
|
|
1760
1732
|
el.classList.toggle("expanded", toolOutputsExpanded);
|
|
1761
1733
|
});
|
|
1762
|
-
document.querySelectorAll(".compaction").forEach((el) => {
|
|
1763
|
-
el.classList.toggle("expanded", toolOutputsExpanded);
|
|
1764
|
-
});
|
|
1765
1734
|
};
|
|
1766
1735
|
|
|
1767
1736
|
// Keyboard shortcuts
|
package/dist/extensionAPI.js
CHANGED
|
@@ -15,14 +15,6 @@ import AjvPkg from "ajv";
|
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
|
|
18
|
-
//#region src/config/model-input.ts
|
|
19
|
-
function resolveAgentModelPrimaryValue(model) {
|
|
20
|
-
if (typeof model === "string") return model.trim() || void 0;
|
|
21
|
-
if (!model || typeof model !== "object") return;
|
|
22
|
-
return model.primary?.trim() || void 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
18
|
//#region src/infra/home-dir.ts
|
|
27
19
|
function normalize(value) {
|
|
28
20
|
const trimmed = value?.trim();
|
|
@@ -1096,6 +1088,11 @@ function resolveAgentWorkspaceDir(cfg, agentId) {
|
|
|
1096
1088
|
if (configured) return stripNullBytes(resolveUserPath(configured));
|
|
1097
1089
|
throw new Error(`agent '${id}' has no workspace configured — set agents.list[].workspace in remoteclaw.json`);
|
|
1098
1090
|
}
|
|
1091
|
+
function resolveAgentWorkspaceDirOrNull(cfg, agentId) {
|
|
1092
|
+
const configured = resolveAgentConfig(cfg, normalizeAgentId(agentId))?.workspace?.trim();
|
|
1093
|
+
if (configured) return stripNullBytes(resolveUserPath(configured));
|
|
1094
|
+
return null;
|
|
1095
|
+
}
|
|
1099
1096
|
function resolveAgentDir(cfg, agentId) {
|
|
1100
1097
|
const id = normalizeAgentId(agentId);
|
|
1101
1098
|
const configured = resolveAgentConfig(cfg, id)?.agentDir?.trim();
|
|
@@ -1104,11 +1101,6 @@ function resolveAgentDir(cfg, agentId) {
|
|
|
1104
1101
|
return path.join(root, "agents", id, "agent");
|
|
1105
1102
|
}
|
|
1106
1103
|
|
|
1107
|
-
//#endregion
|
|
1108
|
-
//#region src/agents/defaults.ts
|
|
1109
|
-
const DEFAULT_PROVIDER = "anthropic";
|
|
1110
|
-
const DEFAULT_MODEL = "claude-opus-4-6";
|
|
1111
|
-
|
|
1112
1104
|
//#endregion
|
|
1113
1105
|
//#region src/agents/identity.ts
|
|
1114
1106
|
function resolveAgentIdentity(cfg, agentId) {
|
|
@@ -2168,7 +2160,9 @@ function applyContextPruningDefaults(cfg) {
|
|
|
2168
2160
|
};
|
|
2169
2161
|
modelsMutated = true;
|
|
2170
2162
|
}
|
|
2171
|
-
const
|
|
2163
|
+
const rawModel = defaults.model;
|
|
2164
|
+
const rawPrimary = typeof rawModel === "string" ? rawModel : rawModel?.primary;
|
|
2165
|
+
const primary = resolvePrimaryModelRef(typeof rawPrimary === "string" ? rawPrimary : void 0);
|
|
2172
2166
|
if (primary) {
|
|
2173
2167
|
const parsedPrimary = parseModelRef(primary, "anthropic");
|
|
2174
2168
|
if (isAnthropicCacheRetentionTarget(parsedPrimary)) {
|
|
@@ -2201,25 +2195,6 @@ function applyContextPruningDefaults(cfg) {
|
|
|
2201
2195
|
}
|
|
2202
2196
|
};
|
|
2203
2197
|
}
|
|
2204
|
-
function applyCompactionDefaults(cfg) {
|
|
2205
|
-
const defaults = cfg.agents?.defaults;
|
|
2206
|
-
if (!defaults) return cfg;
|
|
2207
|
-
const compaction = defaults?.compaction;
|
|
2208
|
-
if (compaction?.mode) return cfg;
|
|
2209
|
-
return {
|
|
2210
|
-
...cfg,
|
|
2211
|
-
agents: {
|
|
2212
|
-
...cfg.agents,
|
|
2213
|
-
defaults: {
|
|
2214
|
-
...defaults,
|
|
2215
|
-
compaction: {
|
|
2216
|
-
...compaction,
|
|
2217
|
-
mode: "safeguard"
|
|
2218
|
-
}
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
};
|
|
2222
|
-
}
|
|
2223
2198
|
|
|
2224
2199
|
//#endregion
|
|
2225
2200
|
//#region src/config/env-preserve.ts
|
|
@@ -4657,13 +4632,6 @@ function parseDurationMs(raw, opts) {
|
|
|
4657
4632
|
return ms;
|
|
4658
4633
|
}
|
|
4659
4634
|
|
|
4660
|
-
//#endregion
|
|
4661
|
-
//#region src/config/zod-schema.agent-model.ts
|
|
4662
|
-
const AgentModelSchema = z.union([z.string(), z.object({
|
|
4663
|
-
primary: z.string().optional(),
|
|
4664
|
-
fallbacks: z.array(z.string()).optional()
|
|
4665
|
-
}).strict()]);
|
|
4666
|
-
|
|
4667
4635
|
//#endregion
|
|
4668
4636
|
//#region src/config/zod-schema.allowdeny.ts
|
|
4669
4637
|
const AllowDenyActionSchema = z.union([z.literal("allow"), z.literal("deny")]);
|
|
@@ -5050,7 +5018,6 @@ const HeartbeatSchema = z.object({
|
|
|
5050
5018
|
}).strict().optional(),
|
|
5051
5019
|
model: z.string().optional(),
|
|
5052
5020
|
session: z.string().optional(),
|
|
5053
|
-
includeReasoning: z.boolean().optional(),
|
|
5054
5021
|
target: z.string().optional(),
|
|
5055
5022
|
to: z.string().optional(),
|
|
5056
5023
|
accountId: z.string().optional(),
|
|
@@ -5195,7 +5162,7 @@ const AgentEntrySchema = z.object({
|
|
|
5195
5162
|
name: z.string().optional(),
|
|
5196
5163
|
workspace: z.string().optional(),
|
|
5197
5164
|
agentDir: z.string().optional(),
|
|
5198
|
-
model:
|
|
5165
|
+
model: z.unknown().optional(),
|
|
5199
5166
|
skills: z.array(z.string()).optional(),
|
|
5200
5167
|
humanDelay: HumanDelaySchema.optional(),
|
|
5201
5168
|
heartbeat: HeartbeatSchema,
|
|
@@ -5204,11 +5171,7 @@ const AgentEntrySchema = z.object({
|
|
|
5204
5171
|
groupChat: GroupChatSchema,
|
|
5205
5172
|
subagents: z.object({
|
|
5206
5173
|
allowAgents: z.array(z.string()).optional(),
|
|
5207
|
-
model: z.
|
|
5208
|
-
primary: z.string().optional(),
|
|
5209
|
-
fallbacks: z.array(z.string()).optional()
|
|
5210
|
-
}).strict()]).optional(),
|
|
5211
|
-
thinking: z.string().optional()
|
|
5174
|
+
model: z.unknown().optional()
|
|
5212
5175
|
}).strict().optional(),
|
|
5213
5176
|
editableFiles: z.array(z.string()).optional(),
|
|
5214
5177
|
tools: AgentToolsSchema
|
|
@@ -5254,13 +5217,10 @@ const ToolsSchema = z.object({
|
|
|
5254
5217
|
//#endregion
|
|
5255
5218
|
//#region src/config/zod-schema.agent-defaults.ts
|
|
5256
5219
|
const AgentDefaultsSchema = z.object({
|
|
5257
|
-
model:
|
|
5258
|
-
imageModel:
|
|
5259
|
-
models: z.
|
|
5260
|
-
|
|
5261
|
-
params: z.record(z.string(), z.unknown()).optional(),
|
|
5262
|
-
streaming: z.boolean().optional()
|
|
5263
|
-
}).strict()).optional(),
|
|
5220
|
+
model: z.unknown().optional(),
|
|
5221
|
+
imageModel: z.unknown().optional(),
|
|
5222
|
+
models: z.unknown().optional(),
|
|
5223
|
+
workspace: z.string().optional(),
|
|
5264
5224
|
repoRoot: z.string().optional(),
|
|
5265
5225
|
skipBootstrap: z.boolean().optional(),
|
|
5266
5226
|
bootstrapMaxChars: z.number().int().positive().optional(),
|
|
@@ -5275,7 +5235,7 @@ const AgentDefaultsSchema = z.object({
|
|
|
5275
5235
|
envelopeTimestamp: z.union([z.literal("on"), z.literal("off")]).optional(),
|
|
5276
5236
|
envelopeElapsed: z.union([z.literal("on"), z.literal("off")]).optional(),
|
|
5277
5237
|
contextTokens: z.number().int().positive().optional(),
|
|
5278
|
-
cliBackends: z.
|
|
5238
|
+
cliBackends: z.unknown().optional(),
|
|
5279
5239
|
contextPruning: z.object({
|
|
5280
5240
|
mode: z.union([z.literal("off"), z.literal("cache-ttl")]).optional(),
|
|
5281
5241
|
ttl: z.string().optional(),
|
|
@@ -5297,21 +5257,6 @@ const AgentDefaultsSchema = z.object({
|
|
|
5297
5257
|
placeholder: z.string().optional()
|
|
5298
5258
|
}).strict().optional()
|
|
5299
5259
|
}).strict().optional(),
|
|
5300
|
-
compaction: z.object({
|
|
5301
|
-
mode: z.union([z.literal("default"), z.literal("safeguard")]).optional(),
|
|
5302
|
-
reserveTokens: z.number().int().nonnegative().optional(),
|
|
5303
|
-
keepRecentTokens: z.number().int().positive().optional(),
|
|
5304
|
-
reserveTokensFloor: z.number().int().nonnegative().optional(),
|
|
5305
|
-
maxHistoryShare: z.number().min(.1).max(.9).optional()
|
|
5306
|
-
}).strict().optional(),
|
|
5307
|
-
thinkingDefault: z.union([
|
|
5308
|
-
z.literal("off"),
|
|
5309
|
-
z.literal("minimal"),
|
|
5310
|
-
z.literal("low"),
|
|
5311
|
-
z.literal("medium"),
|
|
5312
|
-
z.literal("high"),
|
|
5313
|
-
z.literal("xhigh")
|
|
5314
|
-
]).optional(),
|
|
5315
5260
|
verboseDefault: z.union([
|
|
5316
5261
|
z.literal("off"),
|
|
5317
5262
|
z.literal("on"),
|
|
@@ -5341,8 +5286,7 @@ const AgentDefaultsSchema = z.object({
|
|
|
5341
5286
|
maxSpawnDepth: z.number().int().min(1).max(5).optional().describe("Maximum nesting depth for sub-agent spawning. 1 = no nesting (default), 2 = sub-agents can spawn sub-sub-agents."),
|
|
5342
5287
|
maxChildrenPerAgent: z.number().int().min(1).max(20).optional().describe("Maximum number of active children a single agent session can spawn (default: 5)."),
|
|
5343
5288
|
archiveAfterMinutes: z.number().int().positive().optional(),
|
|
5344
|
-
model:
|
|
5345
|
-
thinking: z.string().optional(),
|
|
5289
|
+
model: z.unknown().optional(),
|
|
5346
5290
|
runTimeoutSeconds: z.number().int().min(0).optional(),
|
|
5347
5291
|
announceTimeoutMs: z.number().int().positive().optional()
|
|
5348
5292
|
}).strict().optional(),
|
|
@@ -5353,7 +5297,9 @@ const AgentDefaultsSchema = z.object({
|
|
|
5353
5297
|
z.literal("gemini"),
|
|
5354
5298
|
z.literal("codex"),
|
|
5355
5299
|
z.literal("opencode")
|
|
5356
|
-
]).optional()
|
|
5300
|
+
]).optional(),
|
|
5301
|
+
runtimeArgs: z.array(z.string()).optional(),
|
|
5302
|
+
runtimeEnv: z.record(z.string(), z.string()).optional()
|
|
5357
5303
|
}).strict().optional();
|
|
5358
5304
|
|
|
5359
5305
|
//#endregion
|
|
@@ -7270,7 +7216,8 @@ function validateIdentityAvatar(config) {
|
|
|
7270
7216
|
});
|
|
7271
7217
|
continue;
|
|
7272
7218
|
}
|
|
7273
|
-
|
|
7219
|
+
const workspaceDir = resolveAgentWorkspaceDirOrNull(config, entry.id ?? resolveDefaultAgentId(config));
|
|
7220
|
+
if (workspaceDir != null && !isWorkspaceAvatarPath(avatar, workspaceDir)) issues.push({
|
|
7274
7221
|
path: `agents.list.${index}.identity.avatar`,
|
|
7275
7222
|
message: "identity.avatar must stay within the agent workspace."
|
|
7276
7223
|
});
|
|
@@ -7346,7 +7293,7 @@ function validateConfigObjectWithPluginsBase(raw, opts) {
|
|
|
7346
7293
|
if (registryInfo) return registryInfo;
|
|
7347
7294
|
const registry = loadPluginManifestRegistry({
|
|
7348
7295
|
config,
|
|
7349
|
-
workspaceDir:
|
|
7296
|
+
workspaceDir: resolveAgentWorkspaceDirOrNull(config, resolveDefaultAgentId(config)) ?? void 0
|
|
7350
7297
|
});
|
|
7351
7298
|
const knownIds = new Set(registry.plugins.map((record) => record.id));
|
|
7352
7299
|
const normalizedPlugins = normalizePluginsConfig(config.plugins);
|
|
@@ -7949,7 +7896,7 @@ function createConfigIO(overrides = {}) {
|
|
|
7949
7896
|
deps.logger.warn(`Config warnings:\\n${details}`);
|
|
7950
7897
|
}
|
|
7951
7898
|
warnIfConfigFromFuture(validated.config, deps.logger);
|
|
7952
|
-
const cfg = applyTalkConfigNormalization(applyModelDefaults(
|
|
7899
|
+
const cfg = applyTalkConfigNormalization(applyModelDefaults(applyContextPruningDefaults(applyAgentDefaults(applySessionDefaults(applyLoggingDefaults(applyMessageDefaults(validated.config)))))));
|
|
7953
7900
|
normalizeConfigPaths(cfg);
|
|
7954
7901
|
const duplicates = findDuplicateAgentDirs(cfg, {
|
|
7955
7902
|
env: deps.env,
|
|
@@ -8009,7 +7956,7 @@ function createConfigIO(overrides = {}) {
|
|
|
8009
7956
|
parsed: {},
|
|
8010
7957
|
resolved: {},
|
|
8011
7958
|
valid: true,
|
|
8012
|
-
config: applyTalkApiKey(applyTalkConfigNormalization(applyModelDefaults(
|
|
7959
|
+
config: applyTalkApiKey(applyTalkConfigNormalization(applyModelDefaults(applyContextPruningDefaults(applyAgentDefaults(applySessionDefaults(applyMessageDefaults({}))))))),
|
|
8013
7960
|
hash,
|
|
8014
7961
|
issues: [],
|
|
8015
7962
|
warnings: [],
|
|
@@ -10088,6 +10035,7 @@ var CLIRuntimeBase = class CLIRuntimeBase {
|
|
|
10088
10035
|
}
|
|
10089
10036
|
async *execute(params) {
|
|
10090
10037
|
const args = this.buildArgs(params);
|
|
10038
|
+
if (params.extraArgs && params.extraArgs.length > 0) args.push(...params.extraArgs);
|
|
10091
10039
|
const env = {
|
|
10092
10040
|
...process.env,
|
|
10093
10041
|
...this.buildEnv(params),
|
|
@@ -10105,6 +10053,7 @@ var CLIRuntimeBase = class CLIRuntimeBase {
|
|
|
10105
10053
|
const startMs = Date.now();
|
|
10106
10054
|
const stderrChunks = [];
|
|
10107
10055
|
let aborted = false;
|
|
10056
|
+
let yieldedEvents = false;
|
|
10108
10057
|
let escalationTimer;
|
|
10109
10058
|
const killWithEscalation = () => {
|
|
10110
10059
|
if (escalationTimer === void 0) escalationTimer = setTimeout(() => {
|
|
@@ -10183,6 +10132,7 @@ var CLIRuntimeBase = class CLIRuntimeBase {
|
|
|
10183
10132
|
while (eventQueue.length > 0) {
|
|
10184
10133
|
const event = eventQueue.shift();
|
|
10185
10134
|
if (event === null || event === void 0) break;
|
|
10135
|
+
yieldedEvents = true;
|
|
10186
10136
|
yield event;
|
|
10187
10137
|
}
|
|
10188
10138
|
}
|
|
@@ -10190,9 +10140,15 @@ var CLIRuntimeBase = class CLIRuntimeBase {
|
|
|
10190
10140
|
if (watchdogTimer !== void 0) clearTimeout(watchdogTimer);
|
|
10191
10141
|
params.abortSignal?.removeEventListener("abort", onAbort);
|
|
10192
10142
|
}
|
|
10193
|
-
await exitPromise;
|
|
10143
|
+
const { code: exitCode } = await exitPromise;
|
|
10194
10144
|
if (escalationTimer !== void 0) clearTimeout(escalationTimer);
|
|
10195
10145
|
const durationMs = Date.now() - startMs;
|
|
10146
|
+
const stderr = stderrChunks.join("");
|
|
10147
|
+
if (stderr && (exitCode !== 0 || !yieldedEvents)) yield {
|
|
10148
|
+
type: "error",
|
|
10149
|
+
message: stderr.trim(),
|
|
10150
|
+
code: "CLI_STDERR"
|
|
10151
|
+
};
|
|
10196
10152
|
if (watchdogFired) yield {
|
|
10197
10153
|
type: "error",
|
|
10198
10154
|
message: `Watchdog timeout: no output for ${this.timeoutMs}ms`,
|
|
@@ -10210,7 +10166,8 @@ var CLIRuntimeBase = class CLIRuntimeBase {
|
|
|
10210
10166
|
sessionId: void 0,
|
|
10211
10167
|
durationMs,
|
|
10212
10168
|
usage: void 0,
|
|
10213
|
-
aborted
|
|
10169
|
+
aborted,
|
|
10170
|
+
stderr: stderr || void 0
|
|
10214
10171
|
}
|
|
10215
10172
|
};
|
|
10216
10173
|
}
|
|
@@ -11075,12 +11032,37 @@ const SUPPORTED_PROVIDERS = [
|
|
|
11075
11032
|
"codex",
|
|
11076
11033
|
"opencode"
|
|
11077
11034
|
];
|
|
11035
|
+
const validatedCommands = /* @__PURE__ */ new Set();
|
|
11036
|
+
/**
|
|
11037
|
+
* Verify that a CLI binary exists on PATH.
|
|
11038
|
+
*
|
|
11039
|
+
* Results are cached per process lifetime so the `which` lookup runs at most
|
|
11040
|
+
* once per command.
|
|
11041
|
+
*/
|
|
11042
|
+
function validateExecutable(command) {
|
|
11043
|
+
if (validatedCommands.has(command)) return;
|
|
11044
|
+
try {
|
|
11045
|
+
execFileSync("which", [command], { stdio: "ignore" });
|
|
11046
|
+
validatedCommands.add(command);
|
|
11047
|
+
} catch {
|
|
11048
|
+
throw new Error(`Runtime '${command}' is configured but the '${command}' binary was not found on PATH. Install it or set agents.defaults.runtime to a different provider.`);
|
|
11049
|
+
}
|
|
11050
|
+
}
|
|
11078
11051
|
function createCliRuntime(provider) {
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
case "
|
|
11082
|
-
|
|
11083
|
-
|
|
11052
|
+
const normalized = provider.trim().toLowerCase();
|
|
11053
|
+
switch (normalized) {
|
|
11054
|
+
case "claude":
|
|
11055
|
+
validateExecutable(normalized);
|
|
11056
|
+
return new ClaudeCliRuntime();
|
|
11057
|
+
case "gemini":
|
|
11058
|
+
validateExecutable(normalized);
|
|
11059
|
+
return new GeminiCliRuntime();
|
|
11060
|
+
case "codex":
|
|
11061
|
+
validateExecutable(normalized);
|
|
11062
|
+
return new CodexCliRuntime();
|
|
11063
|
+
case "opencode":
|
|
11064
|
+
validateExecutable(normalized);
|
|
11065
|
+
return new OpenCodeCliRuntime();
|
|
11084
11066
|
default: throw new Error(`Unknown runtime provider "${provider}". Supported providers: ${SUPPORTED_PROVIDERS.join(", ")}`);
|
|
11085
11067
|
}
|
|
11086
11068
|
}
|
|
@@ -11231,6 +11213,8 @@ var ChannelBridge = class {
|
|
|
11231
11213
|
#workspaceDir;
|
|
11232
11214
|
#chunkLimit;
|
|
11233
11215
|
#mcpServerPath;
|
|
11216
|
+
#runtimeArgs;
|
|
11217
|
+
#runtimeEnv;
|
|
11234
11218
|
constructor(options) {
|
|
11235
11219
|
this.#provider = options.provider;
|
|
11236
11220
|
this.#sessionMap = options.sessionMap;
|
|
@@ -11239,6 +11223,8 @@ var ChannelBridge = class {
|
|
|
11239
11223
|
this.#workspaceDir = options.workspaceDir ?? DEFAULT_WORKSPACE_DIR;
|
|
11240
11224
|
this.#chunkLimit = options.chunkLimit;
|
|
11241
11225
|
this.#mcpServerPath = options.mcpServerPath ?? DEFAULT_MCP_SERVER_PATH;
|
|
11226
|
+
this.#runtimeArgs = options.runtimeArgs;
|
|
11227
|
+
this.#runtimeEnv = options.runtimeEnv;
|
|
11242
11228
|
}
|
|
11243
11229
|
/**
|
|
11244
11230
|
* Process an incoming channel message through the full agent execution pipeline.
|
|
@@ -11277,7 +11263,7 @@ var ChannelBridge = class {
|
|
|
11277
11263
|
const mcpServers = this.#buildMcpConfig(message, sessionKey, sideEffectsFile);
|
|
11278
11264
|
const runtime = createCliRuntime(this.#provider);
|
|
11279
11265
|
let workspaceDir = this.#workspaceDir;
|
|
11280
|
-
let
|
|
11266
|
+
let hookEnv;
|
|
11281
11267
|
const runId = randomUUID();
|
|
11282
11268
|
if (hookRunner?.hasHooks("before_runtime_spawn")) {
|
|
11283
11269
|
const spawnResult = await hookRunner.runBeforeRuntimeSpawn({
|
|
@@ -11294,7 +11280,7 @@ var ChannelBridge = class {
|
|
|
11294
11280
|
runtimeName: this.#provider
|
|
11295
11281
|
});
|
|
11296
11282
|
if (spawnResult?.workspaceDir) workspaceDir = spawnResult.workspaceDir;
|
|
11297
|
-
if (spawnResult?.env)
|
|
11283
|
+
if (spawnResult?.env) hookEnv = spawnResult.env;
|
|
11298
11284
|
}
|
|
11299
11285
|
const adapter = new DeliveryAdapter(this.#chunkLimit !== void 0 ? { chunkLimit: this.#chunkLimit } : void 0);
|
|
11300
11286
|
let runResult;
|
|
@@ -11307,7 +11293,11 @@ var ChannelBridge = class {
|
|
|
11307
11293
|
mcpServers,
|
|
11308
11294
|
abortSignal,
|
|
11309
11295
|
workingDirectory: workspaceDir,
|
|
11310
|
-
env:
|
|
11296
|
+
env: this.#runtimeEnv || hookEnv ? {
|
|
11297
|
+
...this.#runtimeEnv,
|
|
11298
|
+
...hookEnv
|
|
11299
|
+
} : void 0,
|
|
11300
|
+
extraArgs: this.#runtimeArgs
|
|
11311
11301
|
}));
|
|
11312
11302
|
payloads = await adapter.process(captured.events, callbacks);
|
|
11313
11303
|
runResult = captured.getResult();
|
|
@@ -11517,4 +11507,4 @@ function resolveGatewayCredentialsFromConfig(params) {
|
|
|
11517
11507
|
}
|
|
11518
11508
|
|
|
11519
11509
|
//#endregion
|
|
11520
|
-
export { ChannelBridge,
|
|
11510
|
+
export { ChannelBridge, ensureAgentWorkspace, loadSessionStore, resolveAgentDir, resolveAgentIdentity, resolveAgentTimeoutMs, resolveAgentWorkspaceDir, resolveGatewayCredentialsFromConfig, resolveGatewayPort, resolveSessionFilePath, resolveStorePath, saveSessionStore };
|