remoteclaw 0.1.0-next.2abd2fa → 0.1.0-next.4ca8fbb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-DBohBlww.js → accounts-6bE7_6RL.js} +1 -1
- package/dist/{accounts-BFy_Z3od.js → accounts-B1aJFYXr.js} +1 -1
- package/dist/{accounts-iODF3SK2.js → accounts-Cl_cFv9X.js} +1 -1
- package/dist/{accounts-DqRQ75w3.js → accounts-Dn9h7HHT.js} +1 -1
- package/dist/{ack-reactions-B11TAC2D.js → ack-reactions-C5kPZvda.js} +1 -1
- package/dist/{ack-reactions-BWVjL4H6.js → ack-reactions-obWeK7Rw.js} +1 -1
- package/dist/{acp-cli-CGo6fJVZ.js → acp-cli-B-wqDGbE.js} +11 -11
- package/dist/{acp-cli-CA1xMmVo.js → acp-cli-BWhVu-KY.js} +2 -2
- package/dist/{agent-D2RVoS5g.js → agent-D0tKpxob.js} +10 -10
- package/dist/{agent-CTizRPIJ.js → agent-DfNHqNSe.js} +16 -16
- package/dist/{agent-helpers-B6VfZ9_u.js → agent-helpers-D_9mS2Ti.js} +1 -1
- package/dist/{agent-scope-BGYzhtWQ.js → agent-scope-9WY5O-KK.js} +2 -2
- package/dist/{agents-BuYn-obw.js → agents-VeVj5NN9.js} +4 -4
- package/dist/{agents.config-BSTxuTVd.js → agents.config-BPGQ3Qyn.js} +1 -1
- package/dist/{audio-preflight-co8gjlPX.js → audio-preflight-Dj6hBcFR.js} +12 -12
- package/dist/{audit-oH4urD3G.js → audit-C1GUK9MZ.js} +13 -13
- package/dist/{audit-qgtCT3ik.js → audit-CakTmUvV.js} +3 -3
- package/dist/{auth-CAczFgAO.js → auth-C6VDYgb7.js} +1 -1
- package/dist/{auth-profiles-D8vKiBPq.js → auth-profiles-CeDgZz_7.js} +2 -2
- package/dist/{banner-Cf978khN.js → banner-D0g6Jqg7.js} +4 -4
- package/dist/{binaries-DXW6oATV.js → binaries-X6FW-wD4.js} +1 -1
- package/dist/{bindings-DQZAu8Wv.js → bindings-B582pDIa.js} +2 -2
- package/dist/{bonjour-discovery-DdAk1VyO.js → bonjour-discovery-BtPaR8vb.js} +2 -2
- package/dist/boot/handler.js +29 -29
- package/dist/{browser-cli-DAgi_aQk.js → browser-cli-ZGejewVU.js} +23 -23
- package/dist/{browser-cli-CZC4h5V4.js → browser-cli-apM-sb95.js} +8 -8
- package/dist/build-info.json +3 -3
- package/dist/{call-BbwtB9Y-.js → call-C1c3rcy7.js} +1 -1
- package/dist/{call-PivL7Uex.js → call-EndUQoN2.js} +4 -4
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-DFmaYwfk.js → catalog-BMf9kYo4.js} +2 -2
- package/dist/{catalog-BqO6yem_.js → catalog-DTOwqzdA.js} +1 -1
- package/dist/{channel-account-context-q-o0pG1A.js → channel-account-context-CjXyzMXE.js} +1 -1
- package/dist/{channel-activity-C-G4n9BK.js → channel-activity-BZbNMyql.js} +2 -2
- package/dist/{channel-activity-BaCNOZpP.js → channel-activity-BeRrcCd8.js} +3 -3
- package/dist/{channel-options-DFnypY5S.js → channel-options-A-6mAxk3.js} +5 -5
- package/dist/{channel-options-Cyappik_.js → channel-options-CUMGATrC.js} +2 -2
- package/dist/{channel-selection-BGl53D5K.js → channel-selection-CJXZTxae.js} +2 -2
- package/dist/{channel-web-kRC3UYBJ.js → channel-web-BI274Kbc.js} +24 -24
- package/dist/{channel-web-DmhVkWbP.js → channel-web-tkULzsN2.js} +7 -7
- package/dist/{channels-cli-C5XRkPJl.js → channels-cli-GMS9bQeR.js} +30 -30
- package/dist/{channels-cli-D6TqCI0m.js → channels-cli-GQ1h5nQo.js} +82 -82
- package/dist/{channels-status-issues-CUc9mpeW.js → channels-status-issues-BDAHISWe.js} +1 -1
- package/dist/{chrome-CFeWdP0Y.js → chrome-5KCwEdqq.js} +7 -7
- package/dist/{chrome-0QaGKb3L.js → chrome-bU1D1n_G.js} +4 -4
- package/dist/{chunk-D0Y_w4oX.js → chunk-DAjFKt2g.js} +1 -1
- package/dist/{clack-prompter-B7tOxhJd.js → clack-prompter-CabwzmG4.js} +4 -4
- package/dist/{cleanup-utils-CqAVZz2b.js → cleanup-utils-o2MM9xyf.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-BRKebcMX.js +130 -0
- package/dist/{cli-BR2J3c4l.js → cli-DaI8rboT.js} +20 -20
- package/dist/{clipboard-D7_SKHPK.js → clipboard-B2j4qGIl.js} +1 -1
- package/dist/command-logger/handler.js +1 -1
- package/dist/{command-registry-CYjvOp8W.js → command-registry-Bs3-JoFa.js} +11 -11
- package/dist/{commands-D_-bgTlO.js → commands-C2uNKRTf.js} +2 -2
- package/dist/{commands-registry-Ci8_cFk9.js → commands-registry-BvESmXoK.js} +4 -4
- package/dist/{common-CMI-qsF8.js → common-Cp3rsBqx.js} +1 -1
- package/dist/{completion-cli-CYDjEZSt.js → completion-cli-Bq8ob7bJ.js} +4 -4
- package/dist/{completion-cli-8iZJqfmX.js → completion-cli-yFjHOtnN.js} +2 -2
- package/dist/{config-FHu9Bn4R.js → config-CKjn6ORX.js} +5 -3
- package/dist/{config-D5XU45KD.js → config-Dx2muBSJ.js} +9 -7
- package/dist/{config-cli-RC9qMgJq.js → config-cli-DPSj7xEW.js} +9 -9
- package/dist/{config-cli-Gehy4sav.js → config-cli-uCJAolq3.js} +3 -3
- package/dist/{config-guard-cB5a_ANg.js → config-guard-C2g3LlWk.js} +2 -2
- package/dist/{config-guard-J-Q_DFWk.js → config-guard-D1htIUcx.js} +19 -19
- package/dist/{config-validation-BPNyd9_3.js → config-validation-CqVJLiYT.js} +1 -1
- package/dist/{config-validation-BPWuvhVe.js → config-validation-D3Up1-Pq.js} +1 -1
- package/dist/{configure-CC2XdRRm.js → configure-CExN5RUz.js} +19 -19
- package/dist/{configure-DxFBJuhZ.js → configure-sLl4dSHU.js} +5 -5
- package/dist/{control-auth-D0tpV3ts.js → control-auth--fCnBrmu.js} +1 -1
- package/dist/{control-auth-_-0PGRUs.js → control-auth-894Ezu61.js} +2 -2
- package/dist/{control-ui-assets-W1AUuGrO.js → control-ui-assets-D4yaD8jm.js} +1 -1
- package/dist/{cron-cli-BzERxhr5.js → cron-cli-CzNB7gey.js} +15 -15
- package/dist/{cron-cli-C8j_uslU.js → cron-cli-kN6pZBMh.js} +3 -3
- package/dist/{daemon-cli-C95XNbX0.js → daemon-cli-Bf5va8oF.js} +13 -13
- package/dist/{daemon-cli-e6sURMqd.js → daemon-cli-TuWhoQ3H.js} +3 -3
- package/dist/daemon-cli.js +20 -19
- package/dist/{daemon-install-DDshfT0J.js → daemon-install-DrTvAWhM.js} +9 -9
- package/dist/{deliver-912khjLK.js → deliver-Dm7GkHXJ.js} +4 -4
- package/dist/{deliver-D56J4-1F.js → deliver-wTlFm59G.js} +8 -8
- package/dist/{devices-cli-0qDhTgZR.js → devices-cli-CAcVSiHC.js} +2 -2
- package/dist/{devices-cli-6SKMR2bV.js → devices-cli-rX6imHCj.js} +11 -11
- package/dist/{diagnostics-99iCgBUh.js → diagnostics-HGkN467d.js} +1 -1
- package/dist/{directory-cli-D3IKCHmn.js → directory-cli-D83Q7y5H.js} +14 -14
- package/dist/{directory-cli-5YXdoVdn.js → directory-cli-DVfyUHCz.js} +1 -1
- package/dist/{dm-policy-shared-4rkjhcrM.js → dm-policy-shared-BBfEyAN1.js} +2 -2
- package/dist/{dns-cli-11CtErVU.js → dns-cli-5SrjpIcy.js} +1 -1
- package/dist/{dns-cli-SiEd_1Lq.js → dns-cli-Canj4LtY.js} +9 -9
- package/dist/{dock-CQuu41bw.js → dock-O8ArYwed.js} +6 -6
- package/dist/{doctor-completion-CZwpEhIK.js → doctor-completion-BPBjYlMB.js} +2 -2
- package/dist/{doctor-completion-BR1SlAT3.js → doctor-completion-C56A3tON.js} +1 -1
- package/dist/{doctor-config-flow-BVkHcvoj.js → doctor-config-flow-DXnCqDd9.js} +3 -3
- package/dist/{doctor-config-flow-DVYRn0An.js → doctor-config-flow-DZG6oOAj.js} +8 -8
- package/dist/{enable-DcJnkzfz.js → enable-DMIq6evt.js} +1 -1
- package/dist/entry.js +14 -14
- package/dist/{env-DeF64iu0.js → env-Br2Bl6Ht.js} +1 -1
- package/dist/{errors-8F-77i6m.js → errors-BpAidYqH.js} +1 -1
- package/dist/{exec-DbKuYyM1.js → exec-C6ACg_Mn.js} +2 -2
- package/dist/extensionAPI.js +22 -15
- package/dist/{fetch-BFSBLBkA.js → fetch-BFuS-EfP.js} +1 -1
- package/dist/{gateway-cli-Nob0g_4y.js → gateway-cli-CN3qPG2T.js} +39 -39
- package/dist/{gateway-cli-BEEZhCHv.js → gateway-cli-CqSlcKnb.js} +113 -113
- package/dist/{gateway-rpc-CksB-N83.js → gateway-rpc-BxH8V6gB.js} +3 -3
- package/dist/{gateway-rpc-Dq44SkOv.js → gateway-rpc-CMsfRKML.js} +1 -1
- package/dist/{gmail-setup-utils-nkabbKOE.js → gmail-setup-utils-BPmUIqso.js} +2 -2
- package/dist/{health-SOuaKNRa.js → health-DeNxtGCn.js} +8 -8
- package/dist/{health-RT-F3hzT.js → health-DwKPQOTn.js} +17 -17
- package/dist/{health-format-BG95OE6N.js → health-format-Bygse7KA.js} +1 -1
- package/dist/{heartbeat-visibility-CGG-G7px.js → heartbeat-visibility-BvJaUOFC.js} +1 -1
- package/dist/{heartbeat-visibility-BxkZjE5m.js → heartbeat-visibility-EBPnhcaa.js} +1 -1
- package/dist/{help-format-DAxf0l_h.js → help-format-sqWgYEdL.js} +1 -1
- package/dist/{hook-runner-global-DJ14gXFP.js → hook-runner-global-BSklbS52.js} +1 -1
- package/dist/{hooks-cli-RuEn0-oy.js → hooks-cli-BuWpetaT.js} +69 -69
- package/dist/{hooks-cli-DyEKryW8.js → hooks-cli-C1BG-IlR.js} +22 -22
- package/dist/{image-ops-Bi6JPSkD.js → image-ops-DRdKC0uO.js} +1 -1
- package/dist/{import-DQ6NI4Fz.js → import-B6Xn6yAg.js} +82 -2
- package/dist/{import-D8BBZQgl.js → import-CIIB1Q1J.js} +84 -4
- package/dist/{inbound-path-policy-Bg4gZBx-.js → inbound-path-policy-C_Qo8rqg.js} +1 -1
- package/dist/index.js +82 -82
- package/dist/{inspect-vYIL1oA0.js → inspect-B1Fq39RC.js} +3 -3
- package/dist/{installs-pWdqG8HL.js → installs-B1rNHwnF.js} +1 -1
- package/dist/{installs-aM5dWAyn.js → installs-ClyOD2BY.js} +3 -3
- package/dist/{ir-BpaAMTfW.js → ir-Ch9FC9Z_.js} +4 -4
- package/dist/{links-C3soDNDH.js → links-Cm43Vcft.js} +1 -1
- package/dist/{loader-y9MhJewT.js → loader-Bkhoi4yR.js} +25 -25
- package/dist/{loader-Ccwsh8Sh.js → loader-DrZ6VM0f.js} +63 -63
- package/dist/{local-roots-nImrw2WR.js → local-roots-z2u_s7jG.js} +3 -3
- package/dist/{logger-Bw3cFE5t.js → logger-pznB_IdT.js} +2 -2
- package/dist/{logging-C-nxX2fn.js → logging-D8R0sLY9.js} +1 -1
- package/dist/{login-DOmWDMeP.js → login-BIgEFDBJ.js} +1 -1
- package/dist/{login-C_Kt57nO.js → login-CqST6Yyp.js} +5 -5
- package/dist/{login-qr-D0u6fdeO.js → login-qr-ChZo1oB2.js} +9 -9
- package/dist/{login-qr-CXU0wC5K.js → login-qr-lciTI8Ue.js} +1 -1
- package/dist/{logs-cli-CschwP4d.js → logs-cli-B4DaUuwW.js} +12 -12
- package/dist/{logs-cli-D7ayUvz_.js → logs-cli-BBWcmNEs.js} +3 -3
- package/dist/{markdown-tables-CrmghPAr.js → markdown-tables-hhOWaw8L.js} +1 -1
- package/dist/{media-CojxZ45J.js → media-BrtsoHDf.js} +56 -49
- package/dist/{message-action-names-WglOO_DT.js → message-action-names-DYTTi8gx.js} +10 -10
- package/dist/{message-action-names-CtEZcmlU.js → message-action-names-oFjla2Uc.js} +19 -19
- package/dist/{message-channel-DzJqHVZD.js → message-channel-BlYrtmIp.js} +1 -1
- package/dist/{nodes-cli-CQmlfx0K.js → nodes-cli-BAYWaRF9.js} +16 -16
- package/dist/{nodes-cli-C2SoKfCv.js → nodes-cli-C0b4ae_w.js} +2 -2
- package/dist/{nodes-screen-BR9sYoPa.js → nodes-screen-Bmp1l9wY.js} +1 -1
- package/dist/{note-kvWV4xtw.js → note-DR8A0G5H.js} +1 -1
- package/dist/{npm-registry-spec-0qiKawvv.js → npm-registry-spec-Cobb5KYR.js} +2 -2
- package/dist/{npm-resolution-6v_Zm-9G.js → npm-resolution-D6VFpSMk.js} +4 -4
- package/dist/{npm-resolution-BFz7LeoN.js → npm-resolution-DCVQ6Y0K.js} +2 -2
- package/dist/{onboard-RI4vNTZd.js → onboard-CyM-s2Q9.js} +4 -4
- package/dist/{onboard-CgyU-mDL.js → onboard-Dt9aqz5a.js} +9 -9
- package/dist/{onboard-channels-DyAd1OZr.js → onboard-channels-BMwYGHjJ.js} +8 -8
- package/dist/{onboard-channels-DN5JoKPd.js → onboard-channels-Cm2oMc5h.js} +20 -20
- package/dist/{onboard-helpers-sDc2Ky6H.js → onboard-helpers-DC1_Uz_K.js} +8 -8
- package/dist/{onboard-helpers-BCzZUD0z.js → onboard-helpers-zH14EFKa.js} +13 -13
- package/dist/{onboard-remote-CJrMtttl.js → onboard-remote-DKLIRtxz.js} +3 -3
- package/dist/{onboard-remote-hyQIBguz.js → onboard-remote-G7myeQp9.js} +1 -1
- package/dist/{onboarding-DCu1iBTV.js → onboarding-CJzQIK_p.js} +15 -24
- package/dist/{onboarding-zKMitzpb.js → onboarding-DcL0Bg41.js} +22 -31
- package/dist/{onboarding.finalize-D5JkVJgg.js → onboarding.finalize-C-2u_67y.js} +18 -18
- package/dist/{onboarding.finalize-ClHhYE2E.js → onboarding.finalize-C7V8SbPj.js} +64 -64
- package/dist/{onboarding.gateway-config-DFh71Ndn.js → onboarding.gateway-config-DbL694q5.js} +22 -22
- package/dist/{onboarding.gateway-config-VBk6AP9U.js → onboarding.gateway-config-mAUMPQtE.js} +4 -4
- package/dist/{outbound-BYlZshIw.js → outbound-BSrQB04F.js} +6 -6
- package/dist/{outbound-CFfJC1j5.js → outbound-UQ05e6hy.js} +1 -1
- package/dist/{outbound-attachment-BCNs1u1F.js → outbound-attachment-DIiKB_mP.js} +2 -2
- package/dist/{outbound-attachment-B_0D60Yr.js → outbound-attachment-DvxfVMMN.js} +2 -2
- package/dist/{pairing-cli-BeydfoF9.js → pairing-cli-Dg7flTtc.js} +1 -1
- package/dist/{pairing-cli-DWzX866x.js → pairing-cli-DyOmIkR8.js} +13 -13
- package/dist/{pairing-labels-B-N8S5Fc.js → pairing-labels-BiSZLitI.js} +1 -1
- package/dist/{pairing-store-BxdqFZGK.js → pairing-store-BgAv4uN8.js} +2 -2
- package/dist/{path-env-DR5vn3QL.js → path-env-ErEKbxOI.js} +1 -1
- package/dist/{plugin-auto-enable-D23gv7Aw.js → plugin-auto-enable-C2C0yYb0.js} +5 -5
- package/dist/{plugin-auto-enable-DuPS9XiJ.js → plugin-auto-enable-CqeLGGEe.js} +2 -2
- package/dist/{plugin-registry-DeHwd2jk.js → plugin-registry-ByWYnPMd.js} +2 -2
- package/dist/{plugin-registry-CNu_1KZz.js → plugin-registry-D1XLfwHj.js} +4 -4
- package/dist/plugin-sdk/config/types.tools.d.ts +1 -1
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +1 -0
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +1 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +1 -0
- package/dist/plugin-sdk/index.js +20 -19
- package/dist/plugin-sdk/terminal/palette.d.ts +2 -2
- package/dist/{plugins-woGRXMzU.js → plugins-BXkDApVh.js} +5 -5
- package/dist/{plugins-cli-DV82scUw.js → plugins-cli-Dq7-gN1i.js} +71 -71
- package/dist/{plugins-cli-Qj1UyIZO.js → plugins-cli-TDt5Ap1o.js} +23 -23
- package/dist/{ports-DrruB2fK.js → ports-DIYJq-SY.js} +4 -4
- package/dist/{ports-GT1yV-Tg.js → ports-DPL-Pzfh.js} +2 -2
- package/dist/{program-CQmIaRUI.js → program-Dm6RlSCG.js} +28 -28
- package/dist/{program-context-DEU6ACnL.js → program-context-CR8elel3.js} +34 -34
- package/dist/{progress-CBkSaM6z.js → progress--dapuyZA.js} +1 -1
- package/dist/{prompt-Bllj1dhc.js → prompt-BVZVovoB.js} +1 -1
- package/dist/{prompt-select-styled-BhTN6zE2.js → prompt-select-styled-CLzKernl.js} +30 -30
- package/dist/{prompt-select-styled-WopXnjIy.js → prompt-select-styled-D--1U3Qh.js} +8 -8
- package/dist/{prompt-style-DVEm3BZW.js → prompt-style-D0LUnqXi.js} +1 -1
- package/dist/{provider-dispatcher-Bfauw6zz.js → provider-dispatcher-CbJCfJNB.js} +7 -7
- package/dist/{provider-dispatcher-B4QMe-I6.js → provider-dispatcher-pOqMXfLQ.js} +4 -4
- package/dist/{push-apns-C0LyG-WB.js → push-apns-CLmNS5AZ.js} +4 -4
- package/dist/{pw-ai-D9n6-Wa6.js → pw-ai-B2LkFeUC.js} +2 -2
- package/dist/{pw-ai-T280E6Mn.js → pw-ai-CwC1FQEH.js} +12 -12
- package/dist/{qr-cli-DVECWTHN.js → qr-cli-9iFACuGt.js} +9 -9
- package/dist/{qr-cli-hSLixZCe.js → qr-cli-CDRHTGnv.js} +1 -1
- package/dist/{redact-eZq1uwNK.js → redact-BsoXOV1y.js} +1 -1
- package/dist/{redact-snapshot-BZYLIqe-.js → redact-snapshot-CJApG-fd.js} +1 -1
- package/dist/{redact-snapshot-C6hVx_9I.js → redact-snapshot-DR_-YlRl.js} +2 -2
- package/dist/{register.agent-Dmj-sgEl.js → register.agent-BYxDAKY7.js} +82 -82
- package/dist/{register.agent-IspcBFeD.js → register.agent-CUANybY6.js} +30 -30
- package/dist/{register.configure-PPkU_4Ea.js → register.configure-BP0t9Uwl.js} +30 -30
- package/dist/register.configure-DyhKPvnk.js +130 -0
- package/dist/{register.import-DLng8g-e.js → register.import-Dc7m8NdP.js} +8 -8
- package/dist/{register.import-Bs-UkOs-.js → register.import-DdLGUSEK.js} +1 -1
- package/dist/{register.maintenance-BbpkJil3.js → register.maintenance-gcZeh5o7.js} +93 -93
- package/dist/{register.maintenance-C5nkOQxa.js → register.maintenance-haVwPL96.js} +29 -29
- package/dist/{register.message-D16isu4u.js → register.message-CKl_lHTO.js} +69 -69
- package/dist/{register.message-C83Hi1b3.js → register.message-ZbmkQ5ht.js} +22 -22
- package/dist/{register.onboard-B8EzX3wY.js → register.onboard-D-5OnZ0M.js} +7 -7
- package/dist/{register.onboard-CyRbr_0V.js → register.onboard-DYdJLgGd.js} +30 -30
- package/dist/{register.setup-Dz6GwMnu.js → register.setup-Cj7MYjtC.js} +30 -30
- package/dist/{register.setup-DWyoowAz.js → register.setup-hF1vdJl1.js} +7 -7
- package/dist/{register.status-health-sessions-DXIWG47y.js → register.status-health-sessions-BBFNCrfS.js} +72 -72
- package/dist/{register.status-health-sessions-CbQOfycz.js → register.status-health-sessions-ClYWL_wb.js} +18 -18
- package/dist/{register.subclis-DeGP5UPU.js → register.subclis-l2adzhui.js} +23 -23
- package/dist/{replies-BKrzM0QI.js → replies-BGYU-p0J.js} +1 -1
- package/dist/{replies-Cl2gYBVt.js → replies-Bn1oXSB8.js} +3 -3
- package/dist/{reply-DSKC8kyS.js → reply-Cepi2flR.js} +9 -9
- package/dist/{reply-CCu_DY64.js → reply-CmeV20ii.js} +32 -32
- package/dist/{reply-directives-BHJKp1Du.js → reply-directives-DOPAdviR.js} +3 -3
- package/dist/{reply-directives-CD2WycBM.js → reply-directives-DspqGGVJ.js} +1 -1
- package/dist/{reply-payloads-D_BM1Anb.js → reply-payloads-MIecsqo-.js} +5 -5
- package/dist/{reply-prefix-Q4DOJSn_.js → reply-prefix-4zLS7A1Y.js} +1 -1
- package/dist/{resolve-route-DGEgTEif.js → resolve-route-BDGdM-l3.js} +4 -4
- package/dist/{response-prefix-template-rVZQOViK.js → response-prefix-template-CSxp9HN5.js} +1 -1
- package/dist/{retry-BhuXOEVR.js → retry-CxXVRdes.js} +1 -1
- package/dist/{retry-DUjAzOBy.js → retry-D_-vU9CD.js} +1 -1
- package/dist/{run-main-Um5xhxla.js → run-main-D0u55bX8.js} +38 -56
- package/dist/{runner-yVJ4HB2K.js → runner-BbLPl1dz.js} +6 -6
- package/dist/{secure-random-Pl9rPl0l.js → secure-random-B7stcuHs.js} +1 -1
- package/dist/{security-cli-DP5QJpa5.js → security-cli-BvhB_SJV.js} +4 -4
- package/dist/{security-cli-CdwbWZUj.js → security-cli-DZ_pwUS6.js} +29 -29
- package/dist/{send-DHldI3gf.js → send-5HyMBvLh.js} +6 -6
- package/dist/{send-Ds63eF4a.js → send-B0elLDis.js} +6 -6
- package/dist/{send-YRVDWfSs.js → send-Bh75o8GE.js} +1 -1
- package/dist/{send-B84axiIa.js → send-C2BVmzi6.js} +7 -7
- package/dist/{send-BN_zYVlx.js → send-CHquO379.js} +5 -5
- package/dist/{send-Bx9bUGav.js → send-CltrzWlk.js} +1 -1
- package/dist/send-D9zlp5S9.js +11 -0
- package/dist/{send-BqVOxAmK.js → send-DD5szdZD.js} +13 -13
- package/dist/{send-CGXyTF22.js → send-DIO6FcGs.js} +4 -4
- package/dist/{send-xnwty9cY.js → send-DWzItTE9.js} +1 -1
- package/dist/{send-C3pdJ6p-.js → send-JUsdp68w.js} +9 -9
- package/dist/{send-CBGSXjfD.js → send-W1ofaGo7.js} +1 -1
- package/dist/{send-D1aYEG-k.js → send-fmudAAFF.js} +3 -3
- package/dist/{send-D_DUQJ6H.js → send-jN0cqz2d.js} +1 -1
- package/dist/{send-B1_Ymjb9.js → send-pZWXl_O3.js} +11 -11
- package/dist/{send-D08Je6DL.js → send-uNEzfw9q.js} +6 -6
- package/dist/{server-DhXw25Jq.js → server-55CHFsiA.js} +22 -22
- package/dist/{server-BQFoyCRR.js → server-Bk0uMX7-.js} +5 -5
- package/dist/{server-lifecycle-Coyr6Lda.js → server-lifecycle-CEOTZr99.js} +6 -6
- package/dist/{server-lifecycle-BjCCyD3w.js → server-lifecycle-DGais-nv.js} +11 -11
- package/dist/{server-node-events-De4WZQQD.js → server-node-events-BT_YSlcA.js} +9 -9
- package/dist/{server-node-events-dXXayuqY.js → server-node-events-CiqYClwC.js} +39 -39
- package/dist/{service-fp29z5Ww.js → service-BHos7oX8.js} +1 -1
- package/dist/{session-xKIW6gL2.js → session-aUptxSVD.js} +2 -2
- package/dist/{session-dirs-Cj5xi7zX.js → session-dirs-BADAi9Iz.js} +4 -4
- package/dist/{session-utils-CEtEq6bi.js → session-utils-BuXY8tQT.js} +2 -2
- package/dist/{session-utils-WmlWAs1r.js → session-utils-ByK5sFXr.js} +3 -3
- package/dist/{sessions-Bw4LRnSr.js → sessions-B_zoH4sM.js} +3 -3
- package/dist/{sessions--PykPynp.js → sessions-BntNl3-l.js} +1 -1
- package/dist/{status-CtzYFLLF.js → status-B47idaLU.js} +9 -9
- package/dist/{status-DiN1cq2p.js → status-Dof6X4RY.js} +22 -22
- package/dist/{status.update-CBmPXwYN.js → status.update-CVnonGHu.js} +1 -1
- package/dist/{store-C3tOpizT.js → store-BPZo49zT.js} +1 -1
- package/dist/{store-SusmIfz7.js → store-BsEwlSm1.js} +6 -6
- package/dist/{store-CPJXuhvQ.js → store-Bxy7EHAf.js} +5 -5
- package/dist/{subagent-registry-Db4Ho_2Y.js → subagent-registry-DN3omJzH.js} +5 -5
- package/dist/{subagent-registry-Du_j0Fnt.js → subagent-registry-NTmURwBx.js} +12 -12
- package/dist/{subsystem-BUXAJwPD.js → subsystem-C_FedsH7.js} +31 -31
- package/dist/{subsystem-COd61u0P.js → subsystem-CrJCqjAh.js} +1 -1
- package/dist/{system-cli-DYCpLO3T.js → system-cli-ByjvquTo.js} +12 -12
- package/dist/{system-cli-eAk5wVbP.js → system-cli-C8iA6NZ0.js} +3 -3
- package/dist/{systemd-TfK8GuTx.js → systemd-B5lyaCc3.js} +2 -2
- package/dist/{systemd-linger-Axnc1xCb.js → systemd-linger-DRPSEQVw.js} +2 -2
- package/dist/{table-DPTzZyhu.js → table-CpmqqcxJ.js} +1 -1
- package/dist/{tables-PxcSPSO0.js → tables-BO6GU4qX.js} +1 -1
- package/dist/{tables-TWiml6b1.js → tables-D_PTzthR.js} +1 -1
- package/dist/{tailscale-DTATQxAG.js → tailscale-Dxyz13fn.js} +2 -2
- package/dist/{targets-C1NeMn2J.js → targets-B-hWtwfx.js} +3 -3
- package/dist/{targets-JCISV-hS.js → targets-CMhBAn87.js} +3 -3
- package/dist/{targets-D-u6Kyio.js → targets-Cm1X3IyA.js} +2 -2
- package/dist/{targets-DfqPGOmM.js → targets-D1e9eyXc.js} +10 -10
- package/dist/{targets-DB4vBpIQ.js → targets-DK9MVsjx.js} +2 -2
- package/dist/{tokens-DzFOtLlW.js → tokens-qLtFu3nT.js} +1 -1
- package/dist/{tool-display-sgNwLOBj.js → tool-display-B-nr7cSF.js} +2 -2
- package/dist/{tool-images-BNfIJ_Kj.js → tool-images-DVrUJEqc.js} +2 -2
- package/dist/{trash-D_Jd_yQZ.js → trash-DzrtBoP1.js} +2 -2
- package/dist/{tui-CyHwc2uX.js → tui-ByoaOs-l.js} +2 -2
- package/dist/{tui-CHc0EfJO.js → tui-C9l1U4r8.js} +7 -7
- package/dist/{tui-cli-BvwbrIYO.js → tui-cli-1Jp507CR.js} +25 -25
- package/dist/{tui-cli-C9I18SfW.js → tui-cli-DvjBEn7h.js} +3 -3
- package/dist/{update-DxyjwCL2.js → update-Cj-HdoD2.js} +3 -3
- package/dist/{update-IX7vdqA8.js → update-CrKl8Exj.js} +2 -2
- package/dist/{update-cli-DkAWmUrp.js → update-cli-C7WnLi19.js} +34 -34
- package/dist/{update-cli-CBeXUSzq.js → update-cli-b3W8RwJh.js} +100 -100
- package/dist/{usage-CYlQW4M2.js → usage-DY7X9Iud.js} +56 -56
- package/dist/{utils-LBKvDoPx.js → utils-C5daYcFn.js} +13 -13
- package/dist/{web-Dquzwqf4.js → web-B9EiMNAf.js} +14 -14
- package/dist/web-Bp50XopI.js +76 -0
- package/dist/{web-BUYUdnRH.js → web-C5EBMd1-.js} +16 -16
- package/dist/{webhooks-cli-BpZHQlVd.js → webhooks-cli-D7kHy94s.js} +1 -1
- package/dist/{webhooks-cli-B7Vw3CMz.js → webhooks-cli-o4indVra.js} +10 -10
- package/dist/{whatsapp-actions-DaA291Ya.js → whatsapp-actions-BOMh8Mlv.js} +2 -2
- package/dist/{whatsapp-actions-D5HXezjp.js → whatsapp-actions-CT2Z1Iab.js} +21 -21
- package/dist/{widearea-dns-DSoaA-eH.js → widearea-dns-BXGCmXnD.js} +1 -1
- package/dist/{workspace-B8PA8oxJ.js → workspace-Bnn6LXsc.js} +4 -4
- package/dist/{workspace-B4ZvVYT9.js → workspace-C6kLpOuR.js} +1 -1
- package/package.json +1 -1
- package/dist/cli-C1q1vSmN.js +0 -130
- package/dist/register.configure-BqJEqyGL.js +0 -130
- package/dist/send-CKavrhXj.js +0 -11
- package/dist/web-tS8diboh.js +0 -76
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { D as parseByteSize, E as parseDurationMs, F as resolveSlackAccount, H as normalizeChatType, I as resolveSlackReplyToMode, J as normalizeMessageChannel, M as resolveWhatsAppAccount, N as resolveTelegramAccount, O as getChannelPlugin, R as resolveDiscordAccount, U as INTERNAL_MESSAGE_CHANNEL, V as resolveAccountEntry, W as isDeliverableMessageChannel, ct as normalizeAgentId, et as normalizeProviderId$1, ft as normalizeAccountId$1, j as normalizeWhatsAppTarget, lt as normalizeMainKey, mt as deriveSessionChatType, ot as DEFAULT_AGENT_ID, pt as normalizeOptionalAccountId, q as listDeliverableMessageChannels, st as buildAgentMainSessionKey, tt as formatCliCommand, v as parseFenceSpans, x as loadConfig } from "./media-
|
|
2
|
-
import { F as expandHomePrefix, I as resolveRequiredHomeDir, P as resolveStateDir, a as normalizeAnyChannelId, c as requireActivePluginRegistry, f as normalizeE164, m as resolveUserPath, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-
|
|
3
|
-
import { a as isPidAlive, i as resolveProcessScopedMap, r as parseTelegramTarget } from "./targets-
|
|
4
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
5
|
-
import { n as resolveSignalAccount } from "./secure-random-
|
|
1
|
+
import { D as parseByteSize, E as parseDurationMs, F as resolveSlackAccount, H as normalizeChatType, I as resolveSlackReplyToMode, J as normalizeMessageChannel, M as resolveWhatsAppAccount, N as resolveTelegramAccount, O as getChannelPlugin, R as resolveDiscordAccount, U as INTERNAL_MESSAGE_CHANNEL, V as resolveAccountEntry, W as isDeliverableMessageChannel, ct as normalizeAgentId, et as normalizeProviderId$1, ft as normalizeAccountId$1, j as normalizeWhatsAppTarget, lt as normalizeMainKey, mt as deriveSessionChatType, ot as DEFAULT_AGENT_ID, pt as normalizeOptionalAccountId, q as listDeliverableMessageChannels, st as buildAgentMainSessionKey, tt as formatCliCommand, v as parseFenceSpans, x as loadConfig } from "./media-BrtsoHDf.js";
|
|
2
|
+
import { F as expandHomePrefix, I as resolveRequiredHomeDir, P as resolveStateDir, a as normalizeAnyChannelId, c as requireActivePluginRegistry, f as normalizeE164, m as resolveUserPath, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-C_FedsH7.js";
|
|
3
|
+
import { a as isPidAlive, i as resolveProcessScopedMap, r as parseTelegramTarget } from "./targets-CMhBAn87.js";
|
|
4
|
+
import { t as resolveIMessageAccount } from "./accounts-6bE7_6RL.js";
|
|
5
|
+
import { n as resolveSignalAccount } from "./secure-random-B7stcuHs.js";
|
|
6
6
|
import path, { join } from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fsSync from "node:fs";
|
|
8
8
|
import os, { homedir, tmpdir } from "node:os";
|
|
9
|
-
import fs
|
|
9
|
+
import fs, { mkdir, mkdtemp, readFile, readdir, rm, rmdir, writeFile } from "node:fs/promises";
|
|
10
10
|
import crypto, { randomUUID } from "node:crypto";
|
|
11
11
|
import { spawn } from "node:child_process";
|
|
12
12
|
import { createInterface } from "node:readline";
|
|
@@ -31,8 +31,8 @@ const log$4 = createSubsystemLogger("agents/auth-profiles");
|
|
|
31
31
|
//#region src/infra/json-file.ts
|
|
32
32
|
function loadJsonFile(pathname) {
|
|
33
33
|
try {
|
|
34
|
-
if (!
|
|
35
|
-
const raw =
|
|
34
|
+
if (!fsSync.existsSync(pathname)) return;
|
|
35
|
+
const raw = fsSync.readFileSync(pathname, "utf8");
|
|
36
36
|
return JSON.parse(raw);
|
|
37
37
|
} catch {
|
|
38
38
|
return;
|
|
@@ -40,12 +40,12 @@ function loadJsonFile(pathname) {
|
|
|
40
40
|
}
|
|
41
41
|
function saveJsonFile(pathname, data) {
|
|
42
42
|
const dir = path.dirname(pathname);
|
|
43
|
-
if (!
|
|
43
|
+
if (!fsSync.existsSync(dir)) fsSync.mkdirSync(dir, {
|
|
44
44
|
recursive: true,
|
|
45
45
|
mode: 448
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
fsSync.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
48
|
+
fsSync.chmodSync(pathname, 384);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
@@ -151,7 +151,7 @@ function loadAuthProfileStoreForAgent(agentDir, _options) {
|
|
|
151
151
|
if (shouldWrite && legacy !== null) {
|
|
152
152
|
const legacyPath = resolveLegacyAuthStorePath(agentDir);
|
|
153
153
|
try {
|
|
154
|
-
|
|
154
|
+
fsSync.unlinkSync(legacyPath);
|
|
155
155
|
} catch (err) {
|
|
156
156
|
if (err?.code !== "ENOENT") log$4.warn("failed to delete legacy auth.json after migration", {
|
|
157
157
|
err,
|
|
@@ -1211,7 +1211,7 @@ function resolveStructuralSessionFallbackPath(candidateAbsPath, expectedAgentId)
|
|
|
1211
1211
|
}
|
|
1212
1212
|
function safeRealpathSync(filePath) {
|
|
1213
1213
|
try {
|
|
1214
|
-
return
|
|
1214
|
+
return fsSync.realpathSync(filePath);
|
|
1215
1215
|
} catch {
|
|
1216
1216
|
return;
|
|
1217
1217
|
}
|
|
@@ -1484,7 +1484,7 @@ async function releaseHeldLock(normalizedSessionFile, held, opts = {}) {
|
|
|
1484
1484
|
await held.handle.close();
|
|
1485
1485
|
} catch {}
|
|
1486
1486
|
try {
|
|
1487
|
-
await fs
|
|
1487
|
+
await fs.rm(held.lockPath, { force: true });
|
|
1488
1488
|
} catch {}
|
|
1489
1489
|
})();
|
|
1490
1490
|
try {
|
|
@@ -1504,7 +1504,7 @@ function releaseAllLocksSync() {
|
|
|
1504
1504
|
if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
|
|
1505
1505
|
} catch {}
|
|
1506
1506
|
try {
|
|
1507
|
-
|
|
1507
|
+
fsSync.rmSync(held.lockPath, { force: true });
|
|
1508
1508
|
} catch {}
|
|
1509
1509
|
HELD_LOCKS.delete(sessionFile);
|
|
1510
1510
|
}
|
|
@@ -1563,7 +1563,7 @@ function registerCleanupHandlers() {
|
|
|
1563
1563
|
}
|
|
1564
1564
|
async function readLockPayload(lockPath) {
|
|
1565
1565
|
try {
|
|
1566
|
-
const raw = await fs
|
|
1566
|
+
const raw = await fs.readFile(lockPath, "utf8");
|
|
1567
1567
|
const parsed = JSON.parse(raw);
|
|
1568
1568
|
const payload = {};
|
|
1569
1569
|
if (typeof parsed.pid === "number") payload.pid = parsed.pid;
|
|
@@ -1600,7 +1600,7 @@ async function shouldReclaimContendedLockFile(lockPath, details, staleMs, nowMs)
|
|
|
1600
1600
|
if (!details.stale) return false;
|
|
1601
1601
|
if (!lockInspectionNeedsMtimeStaleFallback(details)) return true;
|
|
1602
1602
|
try {
|
|
1603
|
-
const stat = await fs
|
|
1603
|
+
const stat = await fs.stat(lockPath);
|
|
1604
1604
|
return Math.max(0, nowMs - stat.mtimeMs) > staleMs;
|
|
1605
1605
|
} catch (error) {
|
|
1606
1606
|
return error?.code !== "ENOENT";
|
|
@@ -1613,10 +1613,10 @@ async function acquireSessionWriteLock(params) {
|
|
|
1613
1613
|
const maxHoldMs = resolvePositiveMs(params.maxHoldMs, DEFAULT_MAX_HOLD_MS);
|
|
1614
1614
|
const sessionFile = path.resolve(params.sessionFile);
|
|
1615
1615
|
const sessionDir = path.dirname(sessionFile);
|
|
1616
|
-
await fs
|
|
1616
|
+
await fs.mkdir(sessionDir, { recursive: true });
|
|
1617
1617
|
let normalizedDir = sessionDir;
|
|
1618
1618
|
try {
|
|
1619
|
-
normalizedDir = await fs
|
|
1619
|
+
normalizedDir = await fs.realpath(sessionDir);
|
|
1620
1620
|
} catch {}
|
|
1621
1621
|
const normalizedSessionFile = path.join(normalizedDir, path.basename(sessionFile));
|
|
1622
1622
|
const lockPath = `${normalizedSessionFile}.lock`;
|
|
@@ -1634,7 +1634,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
1634
1634
|
attempt += 1;
|
|
1635
1635
|
let handle = null;
|
|
1636
1636
|
try {
|
|
1637
|
-
handle = await fs
|
|
1637
|
+
handle = await fs.open(lockPath, "wx");
|
|
1638
1638
|
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
1639
1639
|
await handle.writeFile(JSON.stringify({
|
|
1640
1640
|
pid: process.pid,
|
|
@@ -1657,14 +1657,14 @@ async function acquireSessionWriteLock(params) {
|
|
|
1657
1657
|
await handle.close();
|
|
1658
1658
|
} catch {}
|
|
1659
1659
|
try {
|
|
1660
|
-
await fs
|
|
1660
|
+
await fs.rm(lockPath, { force: true });
|
|
1661
1661
|
} catch {}
|
|
1662
1662
|
}
|
|
1663
1663
|
if (err.code !== "EEXIST") throw err;
|
|
1664
1664
|
const payload = await readLockPayload(lockPath);
|
|
1665
1665
|
const nowMs = Date.now();
|
|
1666
1666
|
if (await shouldReclaimContendedLockFile(lockPath, inspectLockPayload(payload, staleMs, nowMs), staleMs, nowMs)) {
|
|
1667
|
-
await fs
|
|
1667
|
+
await fs.rm(lockPath, { force: true });
|
|
1668
1668
|
continue;
|
|
1669
1669
|
}
|
|
1670
1670
|
const delay = Math.min(1e3, 50 * attempt);
|
|
@@ -1796,14 +1796,14 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
1796
1796
|
function canonicalizePathForComparison$1(filePath) {
|
|
1797
1797
|
const resolved = path.resolve(filePath);
|
|
1798
1798
|
try {
|
|
1799
|
-
return
|
|
1799
|
+
return fsSync.realpathSync(resolved);
|
|
1800
1800
|
} catch {
|
|
1801
1801
|
return resolved;
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
1804
|
function archiveFileOnDisk(filePath, reason) {
|
|
1805
1805
|
const archived = `${filePath}.${reason}.${formatSessionArchiveTimestamp()}`;
|
|
1806
|
-
|
|
1806
|
+
fsSync.renameSync(filePath, archived);
|
|
1807
1807
|
return archived;
|
|
1808
1808
|
}
|
|
1809
1809
|
/**
|
|
@@ -1819,7 +1819,7 @@ function archiveSessionTranscripts(opts) {
|
|
|
1819
1819
|
const relative = path.relative(storeDir, candidatePath);
|
|
1820
1820
|
if (!relative || relative.startsWith("..") || path.isAbsolute(relative)) continue;
|
|
1821
1821
|
}
|
|
1822
|
-
if (!
|
|
1822
|
+
if (!fsSync.existsSync(candidatePath)) continue;
|
|
1823
1823
|
try {
|
|
1824
1824
|
archived.push(archiveFileOnDisk(candidatePath, opts.reason));
|
|
1825
1825
|
} catch {}
|
|
@@ -1837,15 +1837,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
|
|
|
1837
1837
|
let removed = 0;
|
|
1838
1838
|
let scanned = 0;
|
|
1839
1839
|
for (const dir of directories) {
|
|
1840
|
-
const entries = await
|
|
1840
|
+
const entries = await fsSync.promises.readdir(dir).catch(() => []);
|
|
1841
1841
|
for (const entry of entries) {
|
|
1842
1842
|
const timestamp = parseSessionArchiveTimestamp(entry, reason);
|
|
1843
1843
|
if (timestamp == null) continue;
|
|
1844
1844
|
scanned += 1;
|
|
1845
1845
|
if (now - timestamp <= opts.olderThanMs) continue;
|
|
1846
1846
|
const fullPath = path.join(dir, entry);
|
|
1847
|
-
if (!(await
|
|
1848
|
-
await
|
|
1847
|
+
if (!(await fsSync.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
|
|
1848
|
+
await fsSync.promises.rm(fullPath).catch(() => void 0);
|
|
1849
1849
|
removed += 1;
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
@@ -1951,7 +1951,7 @@ function isCacheEnabled(ttlMs) {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
function getFileMtimeMs(filePath) {
|
|
1953
1953
|
try {
|
|
1954
|
-
return
|
|
1954
|
+
return fsSync.statSync(filePath).mtimeMs;
|
|
1955
1955
|
} catch {
|
|
1956
1956
|
return;
|
|
1957
1957
|
}
|
|
@@ -1966,7 +1966,7 @@ const NOOP_LOGGER = {
|
|
|
1966
1966
|
function canonicalizePathForComparison(filePath) {
|
|
1967
1967
|
const resolved = path.resolve(filePath);
|
|
1968
1968
|
try {
|
|
1969
|
-
return
|
|
1969
|
+
return fsSync.realpathSync(resolved);
|
|
1970
1970
|
} catch {
|
|
1971
1971
|
return resolved;
|
|
1972
1972
|
}
|
|
@@ -2024,12 +2024,12 @@ function resolveReferencedSessionTranscriptPaths(params) {
|
|
|
2024
2024
|
return referenced;
|
|
2025
2025
|
}
|
|
2026
2026
|
async function readSessionsDirFiles(sessionsDir) {
|
|
2027
|
-
const dirEntries = await
|
|
2027
|
+
const dirEntries = await fsSync.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
2028
2028
|
const files = [];
|
|
2029
2029
|
for (const dirent of dirEntries) {
|
|
2030
2030
|
if (!dirent.isFile()) continue;
|
|
2031
2031
|
const filePath = path.join(sessionsDir, dirent.name);
|
|
2032
|
-
const stat = await
|
|
2032
|
+
const stat = await fsSync.promises.stat(filePath).catch(() => null);
|
|
2033
2033
|
if (!stat?.isFile()) continue;
|
|
2034
2034
|
files.push({
|
|
2035
2035
|
path: filePath,
|
|
@@ -2042,9 +2042,9 @@ async function readSessionsDirFiles(sessionsDir) {
|
|
|
2042
2042
|
return files;
|
|
2043
2043
|
}
|
|
2044
2044
|
async function removeFileIfExists(filePath) {
|
|
2045
|
-
const stat = await
|
|
2045
|
+
const stat = await fsSync.promises.stat(filePath).catch(() => null);
|
|
2046
2046
|
if (!stat?.isFile()) return 0;
|
|
2047
|
-
await
|
|
2047
|
+
await fsSync.promises.rm(filePath, { force: true }).catch(() => void 0);
|
|
2048
2048
|
return stat.size;
|
|
2049
2049
|
}
|
|
2050
2050
|
async function removeFileForBudget(params) {
|
|
@@ -2267,7 +2267,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
2267
2267
|
const maxReadAttempts = process.platform === "win32" ? 3 : 1;
|
|
2268
2268
|
const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
|
|
2269
2269
|
for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
|
|
2270
|
-
const raw =
|
|
2270
|
+
const raw = fsSync.readFileSync(storePath, "utf-8");
|
|
2271
2271
|
if (raw.length === 0 && attempt < maxReadAttempts - 1) {
|
|
2272
2272
|
Atomics.wait(retryBuf, 0, 0, 50);
|
|
2273
2273
|
continue;
|
|
@@ -2460,7 +2460,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
async function getSessionFileSize(storePath) {
|
|
2462
2462
|
try {
|
|
2463
|
-
return (await
|
|
2463
|
+
return (await fsSync.promises.stat(storePath)).size;
|
|
2464
2464
|
} catch {
|
|
2465
2465
|
return null;
|
|
2466
2466
|
}
|
|
@@ -2477,7 +2477,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
2477
2477
|
if (fileSize <= maxBytes) return false;
|
|
2478
2478
|
const backupPath = `${storePath}.bak.${Date.now()}`;
|
|
2479
2479
|
try {
|
|
2480
|
-
await
|
|
2480
|
+
await fsSync.promises.rename(storePath, backupPath);
|
|
2481
2481
|
log$3.info("rotated session store file", {
|
|
2482
2482
|
backupPath: path.basename(backupPath),
|
|
2483
2483
|
sizeBytes: fileSize
|
|
@@ -2488,11 +2488,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
2488
2488
|
try {
|
|
2489
2489
|
const dir = path.dirname(storePath);
|
|
2490
2490
|
const baseName = path.basename(storePath);
|
|
2491
|
-
const backups = (await
|
|
2491
|
+
const backups = (await fsSync.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
|
|
2492
2492
|
const maxBackups = 3;
|
|
2493
2493
|
if (backups.length > maxBackups) {
|
|
2494
2494
|
const toDelete = backups.slice(maxBackups);
|
|
2495
|
-
for (const old of toDelete) await
|
|
2495
|
+
for (const old of toDelete) await fsSync.promises.unlink(path.join(dir, old)).catch(() => void 0);
|
|
2496
2496
|
log$3.info("cleaned up old session store backups", { deleted: toDelete.length });
|
|
2497
2497
|
}
|
|
2498
2498
|
} catch {}
|
|
@@ -2597,14 +2597,14 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
2597
2597
|
});
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
|
-
await
|
|
2600
|
+
await fsSync.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
2601
2601
|
const json = JSON.stringify(store, null, 2);
|
|
2602
2602
|
if (process.platform === "win32") {
|
|
2603
2603
|
const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
|
|
2604
2604
|
try {
|
|
2605
|
-
await
|
|
2605
|
+
await fsSync.promises.writeFile(tmp, json, "utf-8");
|
|
2606
2606
|
for (let i = 0; i < 5; i++) try {
|
|
2607
|
-
await
|
|
2607
|
+
await fsSync.promises.rename(tmp, storePath);
|
|
2608
2608
|
break;
|
|
2609
2609
|
} catch {
|
|
2610
2610
|
if (i < 4) await new Promise((r) => setTimeout(r, 50 * (i + 1)));
|
|
@@ -2614,27 +2614,27 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
2614
2614
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") return;
|
|
2615
2615
|
throw err;
|
|
2616
2616
|
} finally {
|
|
2617
|
-
await
|
|
2617
|
+
await fsSync.promises.rm(tmp, { force: true }).catch(() => void 0);
|
|
2618
2618
|
}
|
|
2619
2619
|
return;
|
|
2620
2620
|
}
|
|
2621
2621
|
const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
|
|
2622
2622
|
try {
|
|
2623
|
-
await
|
|
2623
|
+
await fsSync.promises.writeFile(tmp, json, {
|
|
2624
2624
|
mode: 384,
|
|
2625
2625
|
encoding: "utf-8"
|
|
2626
2626
|
});
|
|
2627
|
-
await
|
|
2628
|
-
await
|
|
2627
|
+
await fsSync.promises.rename(tmp, storePath);
|
|
2628
|
+
await fsSync.promises.chmod(storePath, 384);
|
|
2629
2629
|
} catch (err) {
|
|
2630
2630
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") {
|
|
2631
2631
|
try {
|
|
2632
|
-
await
|
|
2633
|
-
await
|
|
2632
|
+
await fsSync.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
2633
|
+
await fsSync.promises.writeFile(storePath, json, {
|
|
2634
2634
|
mode: 384,
|
|
2635
2635
|
encoding: "utf-8"
|
|
2636
2636
|
});
|
|
2637
|
-
await
|
|
2637
|
+
await fsSync.promises.chmod(storePath, 384);
|
|
2638
2638
|
} catch (err2) {
|
|
2639
2639
|
if ((err2 && typeof err2 === "object" && "code" in err2 ? String(err2.code) : null) === "ENOENT") return;
|
|
2640
2640
|
throw err2;
|
|
@@ -2643,7 +2643,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
throw err;
|
|
2645
2645
|
} finally {
|
|
2646
|
-
await
|
|
2646
|
+
await fsSync.promises.rm(tmp, { force: true });
|
|
2647
2647
|
}
|
|
2648
2648
|
}
|
|
2649
2649
|
async function updateSessionStore(storePath, mutator, opts) {
|
|
@@ -2825,8 +2825,8 @@ function resolveMirroredTranscriptText(params) {
|
|
|
2825
2825
|
return trimmed ? trimmed : null;
|
|
2826
2826
|
}
|
|
2827
2827
|
async function ensureSessionHeader(params) {
|
|
2828
|
-
if (
|
|
2829
|
-
await
|
|
2828
|
+
if (fsSync.existsSync(params.sessionFile)) return;
|
|
2829
|
+
await fsSync.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
|
|
2830
2830
|
const header = {
|
|
2831
2831
|
type: "session",
|
|
2832
2832
|
version: CURRENT_SESSION_VERSION,
|
|
@@ -2834,7 +2834,7 @@ async function ensureSessionHeader(params) {
|
|
|
2834
2834
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2835
2835
|
cwd: process.cwd()
|
|
2836
2836
|
};
|
|
2837
|
-
await
|
|
2837
|
+
await fsSync.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
|
|
2838
2838
|
encoding: "utf-8",
|
|
2839
2839
|
mode: 384
|
|
2840
2840
|
});
|
|
@@ -2910,7 +2910,7 @@ async function appendAssistantMessageToSessionTranscript(params) {
|
|
|
2910
2910
|
timestamp: Date.now()
|
|
2911
2911
|
}
|
|
2912
2912
|
};
|
|
2913
|
-
await
|
|
2913
|
+
await fsSync.promises.appendFile(sessionFile, `${JSON.stringify(line)}\n`, "utf-8");
|
|
2914
2914
|
emitSessionTranscriptUpdate(sessionFile);
|
|
2915
2915
|
return {
|
|
2916
2916
|
ok: true,
|
|
@@ -2996,7 +2996,7 @@ const DEFAULT_CONTEXT_TOKENS = 2e5;
|
|
|
2996
2996
|
//#endregion
|
|
2997
2997
|
//#region src/agents/workspace.ts
|
|
2998
2998
|
async function ensureAgentWorkspace(dir) {
|
|
2999
|
-
await fs
|
|
2999
|
+
await fs.mkdir(dir, { recursive: true });
|
|
3000
3000
|
return dir;
|
|
3001
3001
|
}
|
|
3002
3002
|
|
|
@@ -326,8 +326,8 @@ function pruneOldRollingLogs(dir) {
|
|
|
326
326
|
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region src/terminal/palette.ts
|
|
329
|
-
const
|
|
330
|
-
accent: "#
|
|
329
|
+
const PALETTE = {
|
|
330
|
+
accent: "#FF5A36",
|
|
331
331
|
accentBright: "#FF7A3D",
|
|
332
332
|
accentDim: "#D14A22",
|
|
333
333
|
info: "#FF8A5B",
|
|
@@ -343,17 +343,17 @@ const hasForceColor = typeof process.env.FORCE_COLOR === "string" && process.env
|
|
|
343
343
|
const baseChalk = process.env.NO_COLOR && !hasForceColor ? new Chalk({ level: 0 }) : chalk;
|
|
344
344
|
const hex = (value) => baseChalk.hex(value);
|
|
345
345
|
const theme = {
|
|
346
|
-
accent: hex(
|
|
347
|
-
accentBright: hex(
|
|
348
|
-
accentDim: hex(
|
|
349
|
-
info: hex(
|
|
350
|
-
success: hex(
|
|
351
|
-
warn: hex(
|
|
352
|
-
error: hex(
|
|
353
|
-
muted: hex(
|
|
354
|
-
heading: baseChalk.bold.hex(
|
|
355
|
-
command: hex(
|
|
356
|
-
option: hex(
|
|
346
|
+
accent: hex(PALETTE.accent),
|
|
347
|
+
accentBright: hex(PALETTE.accentBright),
|
|
348
|
+
accentDim: hex(PALETTE.accentDim),
|
|
349
|
+
info: hex(PALETTE.info),
|
|
350
|
+
success: hex(PALETTE.success),
|
|
351
|
+
warn: hex(PALETTE.warn),
|
|
352
|
+
error: hex(PALETTE.error),
|
|
353
|
+
muted: hex(PALETTE.muted),
|
|
354
|
+
heading: baseChalk.bold.hex(PALETTE.accent),
|
|
355
|
+
command: hex(PALETTE.accentBright),
|
|
356
|
+
option: hex(PALETTE.warn)
|
|
357
357
|
};
|
|
358
358
|
const isRich = () => Boolean(baseChalk.level > 0);
|
|
359
359
|
const colorize = (rich, color, value) => rich ? color(value) : value;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./auth-profiles-BquJGKLC.js";
|
|
2
2
|
import "./file-lock-CzBL_VIx.js";
|
|
3
|
-
import "./config-
|
|
3
|
+
import "./config-CKjn6ORX.js";
|
|
4
4
|
import "./host-env-security-szwfmhC4.js";
|
|
5
5
|
import "./inbound-path-policy-sdr5Ji0k.js";
|
|
6
6
|
import "./env-vars-7aZqKPhk.js";
|
|
7
7
|
import "./agent-scope-C50VuLKh.js";
|
|
8
8
|
import "./dock-BqNINg7k.js";
|
|
9
9
|
import "./message-channel-uWMAiywE.js";
|
|
10
|
-
import "./sessions
|
|
10
|
+
import "./sessions-BntNl3-l.js";
|
|
11
11
|
import "./plugins-BflZz0sp.js";
|
|
12
12
|
import { _ as webAuthExists, c as logWebSelfId, d as pickWebChannel, o as WA_WEB_AUTH_DIR } from "./accounts-BTXSfPWi.js";
|
|
13
13
|
import "./accounts-BxGS70Do.js";
|
|
@@ -16,21 +16,21 @@ import "./bindings-CRU_udk8.js";
|
|
|
16
16
|
import "./targets-D7OKVXMI.js";
|
|
17
17
|
import "./chat-envelope-DEZ-5RY8.js";
|
|
18
18
|
import "./strip-inbound-meta-DjKcSFaW.js";
|
|
19
|
-
import "./call-
|
|
19
|
+
import "./call-C1c3rcy7.js";
|
|
20
20
|
import "./net-Cg8AQeke.js";
|
|
21
21
|
import "./logger-BWMPnILd.js";
|
|
22
22
|
import "./ip-D0zgNmBV.js";
|
|
23
23
|
import "./tailnet-CEudzG0i.js";
|
|
24
24
|
import "./lanes-cHJ5arWg.js";
|
|
25
|
-
import "./subagent-registry-
|
|
25
|
+
import "./subagent-registry-DN3omJzH.js";
|
|
26
26
|
import "./response-prefix-template-up4REfuR.js";
|
|
27
27
|
import "./agent-helpers-CTx5KKJu.js";
|
|
28
28
|
import "./tool-images-kloBqxqK.js";
|
|
29
29
|
import "./exec-DkFE7lqU.js";
|
|
30
30
|
import "./image-ops-DWytvdh_.js";
|
|
31
31
|
import "./tokens-B-jmvNR9.js";
|
|
32
|
-
import "./reply-
|
|
33
|
-
import "./hook-runner-global-
|
|
32
|
+
import "./reply-Cepi2flR.js";
|
|
33
|
+
import "./hook-runner-global-BSklbS52.js";
|
|
34
34
|
import "./redact-Dx1Fue21.js";
|
|
35
35
|
import "./tool-display-Br6mwaJc.js";
|
|
36
36
|
import "./markdown-tables-jrnSPvZ6.js";
|
|
@@ -38,7 +38,7 @@ import "./chunk-CSQfUhgF.js";
|
|
|
38
38
|
import "./media-DN7yRfrH.js";
|
|
39
39
|
import "./render-uf6PvGMV.js";
|
|
40
40
|
import "./tables-DI5LGEr1.js";
|
|
41
|
-
import { n as sendMessageWhatsApp } from "./outbound-
|
|
41
|
+
import { n as sendMessageWhatsApp } from "./outbound-UQ05e6hy.js";
|
|
42
42
|
import "./fs-safe-DSwT85uK.js";
|
|
43
43
|
import "./mime-Cxh_64P6.js";
|
|
44
44
|
import "./ssrf-Ck9HDZpv.js";
|
|
@@ -49,22 +49,22 @@ import "./commands-registry-CWJv6xe2.js";
|
|
|
49
49
|
import "./audio-VBcVDa08.js";
|
|
50
50
|
import "./runner-z92MWZ3m.js";
|
|
51
51
|
import "./errors-DZ199hOo.js";
|
|
52
|
-
import "./targets-
|
|
52
|
+
import "./targets-DK9MVsjx.js";
|
|
53
53
|
import "./pairing-store-CTkD51uW.js";
|
|
54
54
|
import "./fetch-CEDsOiql.js";
|
|
55
55
|
import "./retry-DnqPAqWp.js";
|
|
56
56
|
import "./client-C61M8zI3.js";
|
|
57
57
|
import "./channel-activity-DTKGf3j5.js";
|
|
58
|
-
import "./send-
|
|
58
|
+
import "./send-W1ofaGo7.js";
|
|
59
59
|
import "./session-cost-usage-DX09eTPU.js";
|
|
60
|
-
import "./reply-directives-
|
|
61
|
-
import "./provider-dispatcher-
|
|
60
|
+
import "./reply-directives-DspqGGVJ.js";
|
|
61
|
+
import "./provider-dispatcher-pOqMXfLQ.js";
|
|
62
62
|
import "./store-v3P-OWhi.js";
|
|
63
63
|
import "./reply-prefix-DBLCYiup.js";
|
|
64
|
-
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-
|
|
65
|
-
import "./ack-reactions-
|
|
64
|
+
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-tkULzsN2.js";
|
|
65
|
+
import "./ack-reactions-C5kPZvda.js";
|
|
66
66
|
import { i as waitForWaConnection, t as createWaSocket } from "./session-DBL5nHDy.js";
|
|
67
67
|
import "./resolve-route-CBVbY0xS.js";
|
|
68
|
-
import { t as loginWeb } from "./login-
|
|
68
|
+
import { t as loginWeb } from "./login-BIgEFDBJ.js";
|
|
69
69
|
|
|
70
70
|
export { WA_WEB_AUTH_DIR, createWaSocket, logWebSelfId, loginWeb, monitorWebChannel, monitorWebInbox, pickWebChannel, sendMessageWhatsApp, waitForWaConnection, webAuthExists };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import "./paths-BTaH3rLn.js";
|
|
2
|
+
import "./utils-C5daYcFn.js";
|
|
3
|
+
import "./agent-helpers-D_9mS2Ti.js";
|
|
4
|
+
import "./reply-CmeV20ii.js";
|
|
5
|
+
import "./agent-scope-9WY5O-KK.js";
|
|
6
|
+
import "./subsystem-CrJCqjAh.js";
|
|
7
|
+
import "./runtime-DJNp29jv.js";
|
|
8
|
+
import "./ansi-D04X81yq.js";
|
|
9
|
+
import "./subagent-registry-NTmURwBx.js";
|
|
10
|
+
import "./message-channel-BlYrtmIp.js";
|
|
11
|
+
import "./targets-Cm1X3IyA.js";
|
|
12
|
+
import "./config-Dx2muBSJ.js";
|
|
13
|
+
import "./env-Br2Bl6Ht.js";
|
|
14
|
+
import "./host-env-security-Bms2_EMV.js";
|
|
15
|
+
import "./inbound-path-policy-C_Qo8rqg.js";
|
|
16
|
+
import "./env-vars-CLGbxdpL.js";
|
|
17
|
+
import "./dock-O8ArYwed.js";
|
|
18
|
+
import "./runner-BbLPl1dz.js";
|
|
19
|
+
import "./logger-pznB_IdT.js";
|
|
20
|
+
import "./ip-C9q3Oq20.js";
|
|
21
|
+
import "./ssrf-m7kFIobZ.js";
|
|
22
|
+
import "./local-roots-z2u_s7jG.js";
|
|
23
|
+
import "./exec-C6ACg_Mn.js";
|
|
24
|
+
import "./tool-images-DVrUJEqc.js";
|
|
25
|
+
import "./redact-BsoXOV1y.js";
|
|
26
|
+
import "./errors-BpAidYqH.js";
|
|
27
|
+
import "./mime-BS3jhcZE.js";
|
|
28
|
+
import "./auth-profiles-CeDgZz_7.js";
|
|
29
|
+
import "./file-lock-CIvloidc.js";
|
|
30
|
+
import "./plugins-BXkDApVh.js";
|
|
31
|
+
import { _ as webAuthExists, c as logWebSelfId, d as pickWebChannel, o as WA_WEB_AUTH_DIR } from "./accounts-B1aJFYXr.js";
|
|
32
|
+
import "./accounts-Dn9h7HHT.js";
|
|
33
|
+
import "./accounts-Cl_cFv9X.js";
|
|
34
|
+
import "./bindings-B582pDIa.js";
|
|
35
|
+
import "./tokens-qLtFu3nT.js";
|
|
36
|
+
import "./reply-payloads-MIecsqo-.js";
|
|
37
|
+
import "./targets-D1e9eyXc.js";
|
|
38
|
+
import "./commands-C2uNKRTf.js";
|
|
39
|
+
import "./commands-registry-BvESmXoK.js";
|
|
40
|
+
import "./pairing-store-BgAv4uN8.js";
|
|
41
|
+
import "./fetch-C6XKGA11.js";
|
|
42
|
+
import "./retry-CxXVRdes.js";
|
|
43
|
+
import "./client-DdpmATKq.js";
|
|
44
|
+
import "./chat-envelope-el7Uo-Fe.js";
|
|
45
|
+
import "./store-BsEwlSm1.js";
|
|
46
|
+
import "./strip-inbound-meta-jy3bkUab.js";
|
|
47
|
+
import "./audio-DPOuhNq7.js";
|
|
48
|
+
import "./call-EndUQoN2.js";
|
|
49
|
+
import "./net-D6D0wgcF.js";
|
|
50
|
+
import "./tailnet-PnMrjwGT.js";
|
|
51
|
+
import "./lanes-ByWMUgrz.js";
|
|
52
|
+
import "./response-prefix-template-CSxp9HN5.js";
|
|
53
|
+
import "./image-ops-DRdKC0uO.js";
|
|
54
|
+
import "./tool-display-B-nr7cSF.js";
|
|
55
|
+
import "./channel-activity-BeRrcCd8.js";
|
|
56
|
+
import "./send-JUsdp68w.js";
|
|
57
|
+
import "./fs-safe-DkBhNAc3.js";
|
|
58
|
+
import "./ir-Ch9FC9Z_.js";
|
|
59
|
+
import "./chunk-DAjFKt2g.js";
|
|
60
|
+
import "./markdown-tables-hhOWaw8L.js";
|
|
61
|
+
import "./render-CCLsW6Lz.js";
|
|
62
|
+
import "./tables-D_PTzthR.js";
|
|
63
|
+
import "./session-cost-usage-yYi525j3.js";
|
|
64
|
+
import "./common-Cp3rsBqx.js";
|
|
65
|
+
import "./reply-directives-DOPAdviR.js";
|
|
66
|
+
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-BI274Kbc.js";
|
|
67
|
+
import { n as sendMessageWhatsApp } from "./outbound-BSrQB04F.js";
|
|
68
|
+
import "./ack-reactions-obWeK7Rw.js";
|
|
69
|
+
import { i as waitForWaConnection, t as createWaSocket } from "./session-aUptxSVD.js";
|
|
70
|
+
import "./resolve-route-BDGdM-l3.js";
|
|
71
|
+
import "./provider-dispatcher-CbJCfJNB.js";
|
|
72
|
+
import "./store-BPZo49zT.js";
|
|
73
|
+
import "./reply-prefix-4zLS7A1Y.js";
|
|
74
|
+
import { t as loginWeb } from "./login-CqST6Yyp.js";
|
|
75
|
+
|
|
76
|
+
export { WA_WEB_AUTH_DIR, createWaSocket, logWebSelfId, loginWeb, monitorWebChannel, monitorWebInbox, pickWebChannel, sendMessageWhatsApp, waitForWaConnection, webAuthExists };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { R as resolveDiscordAccount, T as mergeInboundPathRoots, U as INTERNAL_MESSAGE_CHANNEL, X as GATEWAY_CLIENT_IDS, Z as GATEWAY_CLIENT_MODES, dt as DEFAULT_ACCOUNT_ID, f as getDefaultMediaLocalRoots, ft as normalizeAccountId, g as resolveChunkMode, h as chunkMarkdownTextWithMode, p as resolveMarkdownTableMode, t as loadWebMedia, tt as formatCliCommand, w as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, x as loadConfig, z as normalizeDiscordToken } from "./media-
|
|
2
|
-
import { C as getChildLogger, g as toWhatsappJid, i as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-
|
|
3
|
-
import { L as INPUT_PROVENANCE_KIND_VALUES } from "./usage-
|
|
4
|
-
import "./targets-
|
|
5
|
-
import "./accounts-
|
|
6
|
-
import { t as generateSecureUuid } from "./secure-random-
|
|
7
|
-
import "./fetch-
|
|
8
|
-
import "./retry-
|
|
9
|
-
import { n as resolveDiscordTarget, t as parseDiscordTarget } from "./targets-
|
|
10
|
-
import "./store-
|
|
11
|
-
import "./send-
|
|
12
|
-
import { n as createDiscordRetryRunner, t as recordChannelActivity } from "./channel-activity-
|
|
1
|
+
import { R as resolveDiscordAccount, T as mergeInboundPathRoots, U as INTERNAL_MESSAGE_CHANNEL, X as GATEWAY_CLIENT_IDS, Z as GATEWAY_CLIENT_MODES, dt as DEFAULT_ACCOUNT_ID, f as getDefaultMediaLocalRoots, ft as normalizeAccountId, g as resolveChunkMode, h as chunkMarkdownTextWithMode, p as resolveMarkdownTableMode, t as loadWebMedia, tt as formatCliCommand, w as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, x as loadConfig, z as normalizeDiscordToken } from "./media-BrtsoHDf.js";
|
|
2
|
+
import { C as getChildLogger, g as toWhatsappJid, i as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as escapeRegExp } from "./subsystem-C_FedsH7.js";
|
|
3
|
+
import { L as INPUT_PROVENANCE_KIND_VALUES } from "./usage-DY7X9Iud.js";
|
|
4
|
+
import "./targets-CMhBAn87.js";
|
|
5
|
+
import "./accounts-6bE7_6RL.js";
|
|
6
|
+
import { t as generateSecureUuid } from "./secure-random-B7stcuHs.js";
|
|
7
|
+
import "./fetch-BFuS-EfP.js";
|
|
8
|
+
import "./retry-D_-vU9CD.js";
|
|
9
|
+
import { n as resolveDiscordTarget, t as parseDiscordTarget } from "./targets-B-hWtwfx.js";
|
|
10
|
+
import "./store-Bxy7EHAf.js";
|
|
11
|
+
import "./send-C2BVmzi6.js";
|
|
12
|
+
import { n as createDiscordRetryRunner, t as recordChannelActivity } from "./channel-activity-BZbNMyql.js";
|
|
13
13
|
import "./render-6ahYfPwj.js";
|
|
14
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
15
|
-
import "./send-
|
|
14
|
+
import { t as convertMarkdownTables } from "./tables-BO6GU4qX.js";
|
|
15
|
+
import "./send-DD5szdZD.js";
|
|
16
16
|
import path, { join } from "node:path";
|
|
17
|
-
import
|
|
17
|
+
import fsSync, { constants, readFileSync } from "node:fs";
|
|
18
18
|
import os, { homedir } from "node:os";
|
|
19
19
|
import JSON5 from "json5";
|
|
20
20
|
import { promisify } from "node:util";
|
|
21
|
-
import fs
|
|
21
|
+
import fs from "node:fs/promises";
|
|
22
22
|
import crypto, { randomUUID } from "node:crypto";
|
|
23
23
|
import { execFile } from "node:child_process";
|
|
24
24
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ct as theme, Ht as resolveGatewayPort, Nt as CONFIG_PATH, W as displayPath, _ as defaultRuntime, dt as danger } from "./entry.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-CVfo8I5f.js";
|
|
3
|
-
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-
|
|
3
|
+
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-CKjn6ORX.js";
|
|
4
4
|
import "./host-env-security-szwfmhC4.js";
|
|
5
5
|
import "./inbound-path-policy-sdr5Ji0k.js";
|
|
6
6
|
import "./env-vars-7aZqKPhk.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-BTaH3rLn.js";
|
|
2
|
-
import { L as theme, T as danger, i as displayPath } from "./utils-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
2
|
+
import { L as theme, T as danger, i as displayPath } from "./utils-C5daYcFn.js";
|
|
3
|
+
import "./agent-scope-9WY5O-KK.js";
|
|
4
|
+
import "./subsystem-CrJCqjAh.js";
|
|
5
5
|
import { n as defaultRuntime } from "./runtime-DJNp29jv.js";
|
|
6
6
|
import "./ansi-D04X81yq.js";
|
|
7
|
-
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-
|
|
8
|
-
import "./env-
|
|
7
|
+
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-Dx2muBSJ.js";
|
|
8
|
+
import "./env-Br2Bl6Ht.js";
|
|
9
9
|
import "./host-env-security-Bms2_EMV.js";
|
|
10
|
-
import "./inbound-path-policy-
|
|
10
|
+
import "./inbound-path-policy-C_Qo8rqg.js";
|
|
11
11
|
import "./env-vars-CLGbxdpL.js";
|
|
12
|
-
import "./logger-
|
|
13
|
-
import { t as runCommandWithTimeout } from "./exec-
|
|
12
|
+
import "./logger-pznB_IdT.js";
|
|
13
|
+
import { t as runCommandWithTimeout } from "./exec-C6ACg_Mn.js";
|
|
14
14
|
import { t as formatCliCommand } from "./command-format-DgXcqxBt.js";
|
|
15
|
-
import { t as formatDocsLink } from "./links-
|
|
16
|
-
import { C as normalizeServePath, S as normalizeHooksPath, T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, a as ensureTopic, b as generateHookToken, c as DEFAULT_GMAIL_LABEL, d as DEFAULT_GMAIL_SERVE_BIND, f as DEFAULT_GMAIL_SERVE_PATH, g as buildDefaultHookUrl, h as DEFAULT_GMAIL_TOPIC, i as ensureTailscaleEndpoint, l as DEFAULT_GMAIL_MAX_BYTES, m as DEFAULT_GMAIL_SUBSCRIPTION, n as ensureGcloudAuth, o as resolveProjectIdFromGogCredentials, p as DEFAULT_GMAIL_SERVE_PORT, r as ensureSubscription, s as runGcloud, t as ensureDependency, u as DEFAULT_GMAIL_RENEW_MINUTES, v as buildGogWatchStartArgs, w as parseTopicPath, x as mergeHookPresets, y as buildTopicPath } from "./gmail-setup-utils-
|
|
15
|
+
import { t as formatDocsLink } from "./links-Cm43Vcft.js";
|
|
16
|
+
import { C as normalizeServePath, S as normalizeHooksPath, T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, a as ensureTopic, b as generateHookToken, c as DEFAULT_GMAIL_LABEL, d as DEFAULT_GMAIL_SERVE_BIND, f as DEFAULT_GMAIL_SERVE_PATH, g as buildDefaultHookUrl, h as DEFAULT_GMAIL_TOPIC, i as ensureTailscaleEndpoint, l as DEFAULT_GMAIL_MAX_BYTES, m as DEFAULT_GMAIL_SUBSCRIPTION, n as ensureGcloudAuth, o as resolveProjectIdFromGogCredentials, p as DEFAULT_GMAIL_SERVE_PORT, r as ensureSubscription, s as runGcloud, t as ensureDependency, u as DEFAULT_GMAIL_RENEW_MINUTES, v as buildGogWatchStartArgs, w as parseTopicPath, x as mergeHookPresets, y as buildTopicPath } from "./gmail-setup-utils-BPmUIqso.js";
|
|
17
17
|
import { spawn } from "node:child_process";
|
|
18
18
|
|
|
19
19
|
//#region src/hooks/gmail-ops.ts
|