@qqbrowser/openclaw-qbot 0.0.88 → 0.0.89

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.
Files changed (156) hide show
  1. package/dist/{agents-Dxk5oWw_.js → agents-BBYlUP5T.js} +1 -1
  2. package/dist/{agents.config-CXoN8qvY.js → agents.config-CoZtnyKH.js} +1 -1
  3. package/dist/{agents.config-D6kg-4Ct.js → agents.config-Dyqz-Sk-.js} +1 -1
  4. package/dist/{auth-choice-COKpi33u.js → auth-choice-CVvPBerD.js} +1 -1
  5. package/dist/{auth-choice-K5eGX1sj.js → auth-choice-DSNX3Hdu.js} +1 -1
  6. package/dist/{banner-DsZegXc3.js → banner-C4Bgn_Gf.js} +1 -1
  7. package/dist/build-info.json +3 -3
  8. package/dist/bundled/boot-md/handler.js +1 -1
  9. package/dist/bundled/session-memory/handler.js +1 -1
  10. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  11. package/dist/{channel-options-BU9Qf5Cq.js → channel-options-9lP0IBR0.js} +1 -1
  12. package/dist/{channel-options-C-h17ZYO.js → channel-options-C9PHeVlU.js} +1 -1
  13. package/dist/{channel-web-DmmMXUdc.js → channel-web-DhNCVKla.js} +1 -1
  14. package/dist/{channel-web-C2Z4xKq3.js → channel-web-NeSGV-e7.js} +1 -1
  15. package/dist/{channels-cli-WBY_CB2-.js → channels-cli-CWu-PrIl.js} +1 -1
  16. package/dist/{channels-cli-DM6DIc_P.js → channels-cli-DHD8V6-q.js} +1 -1
  17. package/dist/{cli-DXZKyKLK.js → cli-BWE7sLVx.js} +1 -1
  18. package/dist/{cli-RLbxgNsy.js → cli-DF5ZcuuX.js} +1 -1
  19. package/dist/{command-registry-CIBlcDrG.js → command-registry-DIOnYWDt.js} +1 -1
  20. package/dist/{compact-BfHim3cA.js → compact-DgbuvsDF.js} +6 -6
  21. package/dist/{compact.runtime-C_urV0W5.js → compact.runtime-B5zaMKSa.js} +1 -1
  22. package/dist/{compact.runtime-eUr8DtWw.js → compact.runtime-B6qfwW6l.js} +1 -1
  23. package/dist/{compact.runtime-DtLl0dZ5.js → compact.runtime-BofMQvNu.js} +1 -1
  24. package/dist/{compact.runtime-BpYpUiXf.js → compact.runtime-C-OsuZNM.js} +1 -1
  25. package/dist/{completion-cli-BYf6ef-t.js → completion-cli-CckNzelT.js} +1 -1
  26. package/dist/{completion-cli-Dsi5-gGE.js → completion-cli-F60ntV7X.js} +1 -1
  27. package/dist/{config-cli-GwzrxUR-.js → config-cli-1Ut82gjz.js} +1 -1
  28. package/dist/{config-cli-IpFnLniP.js → config-cli-BVtPmTcO.js} +1 -1
  29. package/dist/{configure-Cx7WvgVM.js → configure-3Kgwf3gj.js} +1 -1
  30. package/dist/{configure-DIVEkxxF.js → configure-Bpy51qkb.js} +1 -1
  31. package/dist/{deps-send-whatsapp.runtime-CdAcLrxO.js → deps-send-whatsapp.runtime-CI4UsY0E.js} +1 -1
  32. package/dist/{deps-send-whatsapp.runtime-Dj_dh7mb.js → deps-send-whatsapp.runtime-CJbg_i22.js} +1 -1
  33. package/dist/{deps-send-whatsapp.runtime-DJOAewju.js → deps-send-whatsapp.runtime-CPhSRgv3.js} +1 -1
  34. package/dist/{deps-send-whatsapp.runtime-BfuHSQxE.js → deps-send-whatsapp.runtime-DLRNnLUS.js} +1 -1
  35. package/dist/{doctor-completion-BcvWFszV.js → doctor-completion-CucfTzWR.js} +1 -1
  36. package/dist/{doctor-completion-CQMvGm9I.js → doctor-completion-D76qqYqG.js} +1 -1
  37. package/dist/entry.js +1 -1
  38. package/dist/extensionAPI.js +1 -1
  39. package/dist/{gateway-cli-CBK9IHgW.js → gateway-cli-BKWQlBHk.js} +2 -2
  40. package/dist/{gateway-cli-BUcUT6It.js → gateway-cli-DtqcCdL7.js} +2 -2
  41. package/dist/{health-CiTej6rM.js → health-BXDoFh4Q.js} +1 -1
  42. package/dist/{health-Pqtl8jCk.js → health-xCl2atiY.js} +1 -1
  43. package/dist/{hooks-cli-C6nsAzQh.js → hooks-cli-B2j44Nvk.js} +1 -1
  44. package/dist/{hooks-cli-BR-m9Vxi.js → hooks-cli-DT0Hmbz-.js} +1 -1
  45. package/dist/index.js +2 -2
  46. package/dist/llm-slug-generator.js +1 -1
  47. package/dist/{models-CxaUXLzo.js → models-DhX1F_Pj.js} +1 -1
  48. package/dist/{models-cli-DuamSrQA.js → models-cli-B-kAey2t.js} +1 -1
  49. package/dist/{models-cli-DM55mW-t.js → models-cli-B53yy1mw.js} +1 -1
  50. package/dist/{npm-resolution-CKwFeFIB.js → npm-resolution-BIifLd1f.js} +1 -1
  51. package/dist/{npm-resolution-9bO0TPQF.js → npm-resolution-C2Ow0mqR.js} +1 -1
  52. package/dist/{onboard-BU0gG29k.js → onboard-D9IefEER.js} +2 -2
  53. package/dist/{onboard-channels-CsKyM82H.js → onboard-channels-B8JZHEaQ.js} +1 -1
  54. package/dist/{onboard-channels-BK5KINY9.js → onboard-channels-ByD6UdVu.js} +1 -1
  55. package/dist/{onboard-BlGJhhEF.js → onboard-qMIhLeRM.js} +2 -2
  56. package/dist/{onboarding-CM_9Fyo2.js → onboarding-CddGtlY5.js} +1 -1
  57. package/dist/{onboarding-Kz5K9mKB.js → onboarding-CgqsAteJ.js} +1 -1
  58. package/dist/{onboarding.finalize-DstFPCVD.js → onboarding.finalize-BgCWB7kF.js} +1 -1
  59. package/dist/{onboarding.finalize-C96gv5GP.js → onboarding.finalize-CkHWKgcF.js} +1 -1
  60. package/dist/{pi-embedded-BHryO0s2.js → pi-embedded-C6L57IhI.js} +6 -6
  61. package/dist/{pi-embedded-D_03X4gB.js → pi-embedded-CN25rQwp.js} +6 -6
  62. package/dist/{plugin-registry-DyreKTxc.js → plugin-registry-Cido8VxT.js} +1 -1
  63. package/dist/{plugin-registry-Dsb86j5r.js → plugin-registry-CpPyaWT0.js} +1 -1
  64. package/dist/plugin-sdk/{channel-web-BDO73YAY.js → channel-web-DgBEXyWx.js} +1 -1
  65. package/dist/plugin-sdk/{channel-web-C0hljM9U.js → channel-web-T7e1VB_g.js} +1 -1
  66. package/dist/plugin-sdk/{compact.runtime-B-jUdCSu.js → compact.runtime-B0qhTLAN.js} +1 -1
  67. package/dist/plugin-sdk/{compact.runtime-iEjcWTOi.js → compact.runtime-C5aI5KIg.js} +1 -1
  68. package/dist/plugin-sdk/{compact.runtime-BspLSIc1.js → compact.runtime-Da9JL-Re.js} +1 -1
  69. package/dist/plugin-sdk/{compact.runtime-CMWw2lwa.js → compact.runtime-DuWXCPO4.js} +1 -1
  70. package/dist/plugin-sdk/{compact.runtime-HnqzVAl7.js → compact.runtime-F35snTaz.js} +1 -1
  71. package/dist/plugin-sdk/{compact.runtime-C2keFFLA.js → compact.runtime-kL8PhhSi.js} +1 -1
  72. package/dist/plugin-sdk/compat.js +1 -1
  73. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BRm24Qy-.js → deps-send-whatsapp.runtime-BWVV9ImJ.js} +1 -1
  74. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-Bw9eegUO.js → deps-send-whatsapp.runtime-BdOLZ0P3.js} +1 -1
  75. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-DdS9G3TR.js → deps-send-whatsapp.runtime-DMD-mrgL.js} +1 -1
  76. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-ClvlojBM.js → deps-send-whatsapp.runtime-DNaHPuYl.js} +1 -1
  77. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-DjAB5JP0.js → deps-send-whatsapp.runtime-DkmDJ3eX.js} +1 -1
  78. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-yd5qmNGP.js → deps-send-whatsapp.runtime-nRQWODTL.js} +1 -1
  79. package/dist/plugin-sdk/{dispatch-BtGxkC47.js → dispatch--4Vuy9oL.js} +6 -6
  80. package/dist/plugin-sdk/{dispatch-BO5EIrCx.js → dispatch-DPafUBvi.js} +6 -6
  81. package/dist/plugin-sdk/{dispatch-DABpoSJj.js → dispatch-DzdnDix3.js} +6 -6
  82. package/dist/plugin-sdk/{dispatch-DfBUhUa2.js → dispatch-_3aPMKVc.js} +6 -6
  83. package/dist/plugin-sdk/{dispatch-BFVL83hy.js → dispatch-v8f5j6tA.js} +6 -6
  84. package/dist/plugin-sdk/index.js +1 -1
  85. package/dist/plugin-sdk/irc.js +1 -1
  86. package/dist/plugin-sdk/matrix.js +1 -1
  87. package/dist/plugin-sdk/msteams.js +1 -1
  88. package/dist/plugin-sdk/nextcloud-talk.js +1 -1
  89. package/dist/plugin-sdk/{reply-0QJVop5g.js → reply-FZOMaPdT.js} +6 -6
  90. package/dist/plugin-sdk/{slash-dispatch.runtime-I6_T20Yd.js → slash-dispatch.runtime-CV3coyWo.js} +1 -1
  91. package/dist/plugin-sdk/{slash-dispatch.runtime-BwEZoF7O.js → slash-dispatch.runtime-CYrhiT19.js} +1 -1
  92. package/dist/plugin-sdk/{slash-dispatch.runtime-W9VRo3lf.js → slash-dispatch.runtime-CkVpd9xh.js} +1 -1
  93. package/dist/plugin-sdk/{slash-dispatch.runtime-CaemgmaW.js → slash-dispatch.runtime-CzBVRyba.js} +1 -1
  94. package/dist/plugin-sdk/{slash-dispatch.runtime-B4nePbcc.js → slash-dispatch.runtime-DjGJDpWI.js} +1 -1
  95. package/dist/plugin-sdk/{slash-dispatch.runtime-ByQEhvcx.js → slash-dispatch.runtime-WIHCc0nP.js} +1 -1
  96. package/dist/plugin-sdk/{subagent-registry-runtime-pjzgZyiw.js → subagent-registry-runtime-4o_8yfyB.js} +1 -1
  97. package/dist/plugin-sdk/{subagent-registry-runtime-ikSo08Bh.js → subagent-registry-runtime-BJxZkq6N.js} +1 -1
  98. package/dist/plugin-sdk/{subagent-registry-runtime-BPHOIYnR.js → subagent-registry-runtime-BRl0zIp-.js} +1 -1
  99. package/dist/plugin-sdk/{subagent-registry-runtime-C2TUyWmj.js → subagent-registry-runtime-C-2UF0IM.js} +1 -1
  100. package/dist/plugin-sdk/{subagent-registry-runtime-Co3rxlYB.js → subagent-registry-runtime-bCP-yDZd.js} +1 -1
  101. package/dist/plugin-sdk/{subagent-registry-runtime-Wu14xqj_.js → subagent-registry-runtime-lM2A6bas.js} +1 -1
  102. package/dist/plugin-sdk/{web-Bgl0ILbD.js → web--MzzmLKe.js} +1 -1
  103. package/dist/plugin-sdk/{web-BzRQSS8R.js → web-BoQezxCE.js} +1 -1
  104. package/dist/plugin-sdk/{web-CK9n5ZfK.js → web-CgFT-LB5.js} +1 -1
  105. package/dist/plugin-sdk/{web-3TYyfPQG.js → web-CskfGkR8.js} +1 -1
  106. package/dist/plugin-sdk/{web-WIpdyZZQ.js → web-KZ3WEX08.js} +1 -1
  107. package/dist/plugin-sdk/{web-BCOXLnUB.js → web-sUKMDnvE.js} +1 -1
  108. package/dist/plugin-sdk/whatsapp.js +1 -1
  109. package/dist/{plugins-cli-B_m-0xTz.js → plugins-cli-7Rom2MRn.js} +1 -1
  110. package/dist/{plugins-cli-fpI_fBTE.js → plugins-cli-ULYhpcRr.js} +1 -1
  111. package/dist/{program-B52FJo5X.js → program-C8M8kVC0.js} +2 -2
  112. package/dist/{program-context-9FmjmgRi.js → program-context-DNheupaq.js} +1 -1
  113. package/dist/{prompt-select-styled-7bpPt2PG.js → prompt-select-styled-BfSAWDfm.js} +1 -1
  114. package/dist/{prompt-select-styled-bL9scez3.js → prompt-select-styled-Qtie1Z5m.js} +1 -1
  115. package/dist/{provider-auth-helpers-CatlYQ1x.js → provider-auth-helpers-PSez6fyE.js} +1 -1
  116. package/dist/{provider-auth-helpers-DgQEZQZm.js → provider-auth-helpers-fIKVMJmj.js} +1 -1
  117. package/dist/{push-apns-Bc0uTUFe.js → push-apns-CZ3x5b7S.js} +1 -1
  118. package/dist/{push-apns-Dq1z7GKZ.js → push-apns-D4QwEU4o.js} +1 -1
  119. package/dist/{register.agent-Cjvn_JC_.js → register.agent-CQCSZoM3.js} +1 -1
  120. package/dist/{register.agent-DZ68nNV_.js → register.agent-CkdmFMol.js} +1 -1
  121. package/dist/{register.configure-DAq-OZQ_.js → register.configure-CY7jH_t-.js} +1 -1
  122. package/dist/{register.configure-DNeVIlZk.js → register.configure-jvsFtsEY.js} +1 -1
  123. package/dist/{register.maintenance-Cx5TbFUH.js → register.maintenance-Cn2-JBxc.js} +1 -1
  124. package/dist/{register.maintenance-BGD-EdYb.js → register.maintenance-DbdyMqnN.js} +1 -1
  125. package/dist/{register.message-BVBF2xBA.js → register.message-8Pxm1wyr.js} +1 -1
  126. package/dist/{register.message-BahjRagK.js → register.message-DxNX0-7A.js} +1 -1
  127. package/dist/{register.onboard-BYsU9URi.js → register.onboard-BeuVHdxu.js} +1 -1
  128. package/dist/{register.onboard-CsUvw9JY.js → register.onboard-D9LNxSOp.js} +1 -1
  129. package/dist/{register.setup-DUGQ3LjU.js → register.setup-AyriKZAD.js} +1 -1
  130. package/dist/{register.setup-Czz8kiz8.js → register.setup-D6sjApkR.js} +1 -1
  131. package/dist/{register.status-health-sessions-DwQDXdjY.js → register.status-health-sessions-C3YEi9ej.js} +1 -1
  132. package/dist/{register.status-health-sessions-C-6pt1vC.js → register.status-health-sessions-DLibm4n2.js} +1 -1
  133. package/dist/{register.subclis-nr-J0DsM.js → register.subclis-DMwBX73g.js} +1 -1
  134. package/dist/{reply-Bv0w_dst.js → reply-JaJmymld.js} +6 -6
  135. package/dist/{run-main-C9SR6tqO.js → run-main-BtJ9Rvkf.js} +1 -1
  136. package/dist/{server-node-events-DBU3p4Am.js → server-node-events-B1xc0xHC.js} +1 -1
  137. package/dist/{server-node-events-duTsLOu5.js → server-node-events-DkYb_tMY.js} +1 -1
  138. package/dist/{slash-dispatch.runtime-BKW0b-z4.js → slash-dispatch.runtime-5FhvH4vs.js} +1 -1
  139. package/dist/{slash-dispatch.runtime-Dllhj5El.js → slash-dispatch.runtime-8bdhjt7e.js} +1 -1
  140. package/dist/{slash-dispatch.runtime-BykVo525.js → slash-dispatch.runtime-BSGNAoT3.js} +1 -1
  141. package/dist/{slash-dispatch.runtime-CwKA-3Mz.js → slash-dispatch.runtime-DzFzghS8.js} +1 -1
  142. package/dist/{status-BUdDRE9f.js → status-Ln-hRgxh.js} +1 -1
  143. package/dist/{status-QCEyD_DK.js → status-XJoKJIPd.js} +1 -1
  144. package/dist/{subagent-registry-runtime-ANqbVbfo.js → subagent-registry-runtime-CMgr0_UE.js} +1 -1
  145. package/dist/{subagent-registry-runtime-CWrWUjll.js → subagent-registry-runtime-DA3RtD85.js} +1 -1
  146. package/dist/{subagent-registry-runtime-CA_UwsAM.js → subagent-registry-runtime-DDF1mHS2.js} +1 -1
  147. package/dist/{subagent-registry-runtime-DjLSmsYn.js → subagent-registry-runtime-DTliYOy2.js} +1 -1
  148. package/dist/{update-cli-2Prf30Co.js → update-cli-DhZZ9nIA.js} +1 -1
  149. package/dist/{update-cli-BZ7xaJXP.js → update-cli-T5qjfgGh.js} +1 -1
  150. package/dist/{update-runner-Dmea_7oZ.js → update-runner-C6Z9RGJ6.js} +1 -1
  151. package/dist/{update-runner-CzyTP7xB.js → update-runner-DThdoQ9_.js} +1 -1
  152. package/dist/{web-BYWPQTzp.js → web-BinddLZf.js} +1 -1
  153. package/dist/{web-B90WZv9Y.js → web-CWJIsRZO.js} +1 -1
  154. package/dist/{web-DTS3rwm1.js → web-D995jmBq.js} +1 -1
  155. package/dist/{web-BvZz642s.js → web-F5nE_LwQ.js} +1 -1
  156. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import{A as e,N as t,p as n,v as r,w as i}from"./subsystem-C7tbdlOl.js";import"./paths-BRJCySMM.js";import"./boolean-D15s2V33.js";import{Mc as a,No as o,Ro as s,ko as c}from"./auth-profiles-BkhVHtgY.js";import{t as l}from"./command-format-CLxIPuLR.js";import{d as u,f as d}from"./agent-scope-DjUQMckI.js";import{_ as f}from"./session-key-C7F_iqYg.js";import{u as p}from"./utils-bGrn0y-f.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-ByNUYL2n.js";import"./env-overrides-fatFjayp.js";import"./version-q3SkUw2K.js";import"./registry-Bfa_Ykoc.js";import"./skills-DaxiAYb1.js";import"./frontmatter-C7mzDNxd.js";import{lt as m,n as h,r as g,t as _,u as v}from"./plugins-CAHuRRVU.js";import"./logger-CzE2MhuY.js";import"./exec-CEAb_WUd.js";import"./windows-spawn-BgzBBwXL.js";import"./redact-Dhbd2Ou5.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-DrzTb7KS.js";import{i as y}from"./send-CkCusmbI.js";import{at as b,et as x}from"./send-BlGs1R4s.js";import{d as S,in as C,rn as w}from"./compact-BfHim3cA.js";import"./paths-Iw1AJLOG.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-JhtjMTo0.js";import"./tokens-DymrUOGE.js";import"./with-timeout-c1CzdShT.js";import"./deliver-BN5gbKUv.js";import"./diagnostic-ou4gNcG4.js";import"./send-CfpqUapa.js";import"./pi-model-discovery-Cqrh3PhQ.js";import"./exec-approvals-allowlist-DIBvoVsb.js";import"./exec-safe-bin-runtime-policy-y_ErZVFQ.js";import"./model-catalog--OA2KRxM.js";import"./fetch-Br9U2aWg.js";import"./audio-transcription-runner-hG3NgjtU.js";import"./fetch-guard-DOIM5NkG.js";import"./image-B6Fxt2ke.js";import"./tool-display-D4Lgnaij.js";import"./api-key-rotation-DIZSxMN4.js";import"./proxy-fetch-CCr-fxQ0.js";import"./ir-C205jOes.js";import"./render-DrrPmnMI.js";import"./target-errors-Befv_gd6.js";import"./commands-DcqfHXoH.js";import"./commands-registry-D2F_aNf1.js";import"./session-cost-usage-B0e3Qwrd.js";import"./session-utils-DtXFoDhI.js";import"./sqlite-C-YpDuDl.js";import{n as T}from"./call-B4oR7TXC.js";import{_ as E,v as ee}from"./pi-tools.policy-3jwvBbGG.js";import"./fetch-D6B2WSW_.js";import{n as D}from"./format-relative-BqI9wboy.js";import"./pairing-store-BXGybj6M.js";import"./exec-approvals-Dapj8H1y.js";import"./nodes-screen-DX6jz8OP.js";import"./restart-C27sljk1.js";import"./system-run-command-D6cuoREz.js";import"./skill-commands-FzYyVr7Q.js";import"./workspace-dirs-BTT7_AQX.js";import"./pairing-token-ByzqGayx.js";import"./channel-activity-W1yPxWJ3.js";import"./tables-Df7TI1wy.js";import"./runtime-web-tools-CzHbhY0M.js";import"./runtime-CHjN1UTv.js";import"./stagger-BDJo4a4e.js";import{n as O}from"./channel-selection-mEfryJZM.js";import{a as te}from"./plugin-auto-enable-Czb-XnGx.js";import"./send-CeULjLp_.js";import"./outbound-attachment-CxQjEgw4.js";import"./delivery-queue-C3NiY2Ub.js";import"./send-CLQzNoUy.js";import"./fetch-yQOUtDBh.js";import{n as k,s as A}from"./command-secret-targets-BzThfkzp.js";import"./connection-auth-C0uJgiku.js";import"./onboard-helpers-bAJ8ELmK.js";import"./prompt-style-LoGJ9Sd_.js";import"./pairing-labels-DdIEj5Sz.js";import"./search-manager-B35sLSi1.js";import"./manager-hztaxN5m.js";import"./memory-cli-Bp_xpCbr.js";import{t as j}from"./links-DRsshHiS.js";import{n as ne}from"./cli-utils-C_maQ2m4.js";import{t as re}from"./help-format-BlhzdN7j.js";import{n as M}from"./progress-CR--5qDW.js";import"./outbound-oZvGDvMN.js";import"./channel-web-C2Z4xKq3.js";import"./session-DEKfZpeT.js";import"./login-DBZS2wqQ.js";import"./provider-env-vars-Dt0Q29Su.js";import{t as N}from"./command-options-BpOUDl2S.js";import{n as ie}from"./api-BeG0ObSq.js";import"./note-DwFvlGbe.js";import{t as P}from"./clack-prompter-BMrD-gme.js";import{i as F,n as ae,t as I}from"./config-validation--1aWVt-R.js";import{n as oe}from"./agents.config-CXoN8qvY.js";import"./enable-uPEnjeSA.js";import"./install-safe-path-CsJz9H0r.js";import"./npm-pack-install-iwQfZww0.js";import"./skill-scanner-Dnbtf-do.js";import"./installs-dF8HShgp.js";import"./plugin-install-plan-BR9H2a7p.js";import{a as se,i as ce,r as le}from"./onboard-channels-CsKyM82H.js";import"./auth-choice.apply-helpers-D9NDHoxl.js";import"./issue-format-CH9G9Aj1.js";import{n as ue,t as L}from"./status-C28peER5.js";import{t as de}from"./parse-log-line-CsYLg7Qu.js";import{t as fe}from"./channels-status-issues-N5UAZzhw.js";import"./plugin-registry-Dsb86j5r.js";import{t as R}from"./channel-options-C-h17ZYO.js";import z from"node:fs/promises";function pe(e){let t=f(e.accountId),n=_(e.channel)?.setup?.applyAccountName;return n?n({cfg:e.cfg,accountId:t,name:e.name}):e.cfg}function me(e){let t=f(e.accountId),n=_(e.channel)?.setup?.applyAccountConfig;return n?n({cfg:e.cfg,accountId:t,input:e.input}):e.cfg}async function B(e=n,t){let r=await I(e);if(!r)return null;let{resolvedConfig:i,diagnostics:a}=await A({config:r,commandName:t?.commandName??`channels`,targetIds:k(),mode:t?.mode});for(let t of a)e.log(`[secrets] ${t}`);return i}function he(e){let t=e.accountId||`default`;return e.name?.trim()?`${t} (${e.name.trim()})`:t}const V=e=>_(e)?.meta.label??e;function H(e){let t=V(e.channel),n=he({accountId:e.accountId,name:e.name});return`${e.channelStyle?e.channelStyle(t):t} ${e.accountStyle?e.accountStyle(n):n}`}function U(e){return e?.hasFlags===!1}function W(e){if(!e?.trim())return;let t=e.split(/[\n,;]+/g).map(e=>e.trim()).filter(Boolean);return t.length>0?t:void 0}function ge(e,t){let n=e.trim().toLowerCase();if(n)return te({workspaceDir:t?u(t,d(t)):void 0}).find(e=>e.id.toLowerCase()===n?!0:(e.meta.aliases??[]).some(e=>e.trim().toLowerCase()===n))}async function _e(e,t=n,r){let i=await B(t);if(!i)return;let a=i;if(U(r)){let e=P(),n=[],r={};await e.intro(`Channel setup`);let a=await le(i,t,e,{allowDisable:!1,allowSignalInstall:!0,promptAccountIds:!0,onSelection:e=>{n=e},onAccountId:(e,t)=>{r[e]=t}});if(n.length===0){await e.outro(`No channels selected.`);return}if(await e.confirm({message:`Add display names for these accounts? (optional)`,initialValue:!1}))for(let t of n){let n=r[t]??`default`,i=_(t),o=i?.config.resolveAccount(a,n),s=i?.config.describeAccount?.(o,a)?.name??o?.name,c=await e.text({message:`${t} account name (${n})`,initialValue:s});c?.trim()&&(a=pe({cfg:a,channel:t,accountId:n,name:c}))}let o=n.map(e=>({channel:e,accountId:r[e]?.trim()})).filter(e=>!!e.accountId);if(o.length>0&&await e.confirm({message:`Bind configured channel accounts to agents now?`,initialValue:!0})){let t=oe(a),n=d(a);for(let r of o){let i=await e.select({message:`Route ${r.channel} account "${r.accountId}" to agent`,options:t.map(e=>({value:e.id,label:e.isDefault?`${e.id} (default)`:e.id})),initialValue:n}),o=ae(a,[{agentId:i,match:{channel:r.channel,accountId:r.accountId}}]);a=o.config,(o.added.length>0||o.updated.length>0)&&await e.note([...o.added.map(e=>`Added: ${F(e)}`),...o.updated.map(e=>`Updated: ${F(e)}`)].join(`
1
+ import{A as e,N as t,p as n,v as r,w as i}from"./subsystem-C7tbdlOl.js";import"./paths-BRJCySMM.js";import"./boolean-D15s2V33.js";import{Mc as a,No as o,Ro as s,ko as c}from"./auth-profiles-BkhVHtgY.js";import{t as l}from"./command-format-CLxIPuLR.js";import{d as u,f as d}from"./agent-scope-DjUQMckI.js";import{_ as f}from"./session-key-C7F_iqYg.js";import{u as p}from"./utils-bGrn0y-f.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-ByNUYL2n.js";import"./env-overrides-fatFjayp.js";import"./version-q3SkUw2K.js";import"./registry-Bfa_Ykoc.js";import"./skills-DaxiAYb1.js";import"./frontmatter-C7mzDNxd.js";import{lt as m,n as h,r as g,t as _,u as v}from"./plugins-CAHuRRVU.js";import"./logger-CzE2MhuY.js";import"./exec-CEAb_WUd.js";import"./windows-spawn-BgzBBwXL.js";import"./redact-Dhbd2Ou5.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-DrzTb7KS.js";import{i as y}from"./send-CkCusmbI.js";import{at as b,et as x}from"./send-BlGs1R4s.js";import{d as S,in as C,rn as w}from"./compact-DgbuvsDF.js";import"./paths-Iw1AJLOG.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-JhtjMTo0.js";import"./tokens-DymrUOGE.js";import"./with-timeout-c1CzdShT.js";import"./deliver-BN5gbKUv.js";import"./diagnostic-ou4gNcG4.js";import"./send-CfpqUapa.js";import"./pi-model-discovery-Cqrh3PhQ.js";import"./exec-approvals-allowlist-DIBvoVsb.js";import"./exec-safe-bin-runtime-policy-y_ErZVFQ.js";import"./model-catalog--OA2KRxM.js";import"./fetch-Br9U2aWg.js";import"./audio-transcription-runner-hG3NgjtU.js";import"./fetch-guard-DOIM5NkG.js";import"./image-B6Fxt2ke.js";import"./tool-display-D4Lgnaij.js";import"./api-key-rotation-DIZSxMN4.js";import"./proxy-fetch-CCr-fxQ0.js";import"./ir-C205jOes.js";import"./render-DrrPmnMI.js";import"./target-errors-Befv_gd6.js";import"./commands-DcqfHXoH.js";import"./commands-registry-D2F_aNf1.js";import"./session-cost-usage-B0e3Qwrd.js";import"./session-utils-DtXFoDhI.js";import"./sqlite-C-YpDuDl.js";import{n as T}from"./call-B4oR7TXC.js";import{_ as E,v as ee}from"./pi-tools.policy-3jwvBbGG.js";import"./fetch-D6B2WSW_.js";import{n as D}from"./format-relative-BqI9wboy.js";import"./pairing-store-BXGybj6M.js";import"./exec-approvals-Dapj8H1y.js";import"./nodes-screen-DX6jz8OP.js";import"./restart-C27sljk1.js";import"./system-run-command-D6cuoREz.js";import"./skill-commands-FzYyVr7Q.js";import"./workspace-dirs-BTT7_AQX.js";import"./pairing-token-ByzqGayx.js";import"./channel-activity-W1yPxWJ3.js";import"./tables-Df7TI1wy.js";import"./runtime-web-tools-CzHbhY0M.js";import"./runtime-CHjN1UTv.js";import"./stagger-BDJo4a4e.js";import{n as O}from"./channel-selection-mEfryJZM.js";import{a as te}from"./plugin-auto-enable-Czb-XnGx.js";import"./send-CeULjLp_.js";import"./outbound-attachment-CxQjEgw4.js";import"./delivery-queue-C3NiY2Ub.js";import"./send-CLQzNoUy.js";import"./fetch-yQOUtDBh.js";import{n as k,s as A}from"./command-secret-targets-BzThfkzp.js";import"./connection-auth-C0uJgiku.js";import"./onboard-helpers-bAJ8ELmK.js";import"./prompt-style-LoGJ9Sd_.js";import"./pairing-labels-DdIEj5Sz.js";import"./search-manager-B35sLSi1.js";import"./manager-hztaxN5m.js";import"./memory-cli-Bp_xpCbr.js";import{t as j}from"./links-DRsshHiS.js";import{n as ne}from"./cli-utils-C_maQ2m4.js";import{t as re}from"./help-format-BlhzdN7j.js";import{n as M}from"./progress-CR--5qDW.js";import"./outbound-oZvGDvMN.js";import"./channel-web-NeSGV-e7.js";import"./session-DEKfZpeT.js";import"./login-DBZS2wqQ.js";import"./provider-env-vars-Dt0Q29Su.js";import{t as N}from"./command-options-BpOUDl2S.js";import{n as ie}from"./api-BeG0ObSq.js";import"./note-DwFvlGbe.js";import{t as P}from"./clack-prompter-BMrD-gme.js";import{i as F,n as ae,t as I}from"./config-validation--1aWVt-R.js";import{n as oe}from"./agents.config-CoZtnyKH.js";import"./enable-uPEnjeSA.js";import"./install-safe-path-CsJz9H0r.js";import"./npm-pack-install-iwQfZww0.js";import"./skill-scanner-Dnbtf-do.js";import"./installs-dF8HShgp.js";import"./plugin-install-plan-BR9H2a7p.js";import{a as se,i as ce,r as le}from"./onboard-channels-B8JZHEaQ.js";import"./auth-choice.apply-helpers-D9NDHoxl.js";import"./issue-format-CH9G9Aj1.js";import{n as ue,t as L}from"./status-C28peER5.js";import{t as de}from"./parse-log-line-CsYLg7Qu.js";import{t as fe}from"./channels-status-issues-N5UAZzhw.js";import"./plugin-registry-CpPyaWT0.js";import{t as R}from"./channel-options-C9PHeVlU.js";import z from"node:fs/promises";function pe(e){let t=f(e.accountId),n=_(e.channel)?.setup?.applyAccountName;return n?n({cfg:e.cfg,accountId:t,name:e.name}):e.cfg}function me(e){let t=f(e.accountId),n=_(e.channel)?.setup?.applyAccountConfig;return n?n({cfg:e.cfg,accountId:t,input:e.input}):e.cfg}async function B(e=n,t){let r=await I(e);if(!r)return null;let{resolvedConfig:i,diagnostics:a}=await A({config:r,commandName:t?.commandName??`channels`,targetIds:k(),mode:t?.mode});for(let t of a)e.log(`[secrets] ${t}`);return i}function he(e){let t=e.accountId||`default`;return e.name?.trim()?`${t} (${e.name.trim()})`:t}const V=e=>_(e)?.meta.label??e;function H(e){let t=V(e.channel),n=he({accountId:e.accountId,name:e.name});return`${e.channelStyle?e.channelStyle(t):t} ${e.accountStyle?e.accountStyle(n):n}`}function U(e){return e?.hasFlags===!1}function W(e){if(!e?.trim())return;let t=e.split(/[\n,;]+/g).map(e=>e.trim()).filter(Boolean);return t.length>0?t:void 0}function ge(e,t){let n=e.trim().toLowerCase();if(n)return te({workspaceDir:t?u(t,d(t)):void 0}).find(e=>e.id.toLowerCase()===n?!0:(e.meta.aliases??[]).some(e=>e.trim().toLowerCase()===n))}async function _e(e,t=n,r){let i=await B(t);if(!i)return;let a=i;if(U(r)){let e=P(),n=[],r={};await e.intro(`Channel setup`);let a=await le(i,t,e,{allowDisable:!1,allowSignalInstall:!0,promptAccountIds:!0,onSelection:e=>{n=e},onAccountId:(e,t)=>{r[e]=t}});if(n.length===0){await e.outro(`No channels selected.`);return}if(await e.confirm({message:`Add display names for these accounts? (optional)`,initialValue:!1}))for(let t of n){let n=r[t]??`default`,i=_(t),o=i?.config.resolveAccount(a,n),s=i?.config.describeAccount?.(o,a)?.name??o?.name,c=await e.text({message:`${t} account name (${n})`,initialValue:s});c?.trim()&&(a=pe({cfg:a,channel:t,accountId:n,name:c}))}let o=n.map(e=>({channel:e,accountId:r[e]?.trim()})).filter(e=>!!e.accountId);if(o.length>0&&await e.confirm({message:`Bind configured channel accounts to agents now?`,initialValue:!0})){let t=oe(a),n=d(a);for(let r of o){let i=await e.select({message:`Route ${r.channel} account "${r.accountId}" to agent`,options:t.map(e=>({value:e.id,label:e.isDefault?`${e.id} (default)`:e.id})),initialValue:n}),o=ae(a,[{agentId:i,match:{channel:r.channel,accountId:r.accountId}}]);a=o.config,(o.added.length>0||o.updated.length>0)&&await e.note([...o.added.map(e=>`Added: ${F(e)}`),...o.updated.map(e=>`Updated: ${F(e)}`)].join(`
2
2
  `),`Routing bindings`),o.conflicts.length>0&&await e.note([`Skipped bindings already claimed by another agent:`,...o.conflicts.map(e=>`- ${F(e.binding)} (agent=${e.existingAgentId})`)].join(`
3
3
  `),`Routing bindings`)}}await s(a),await e.outro(`Channels updated.`);return}let o=String(e.channel??``),c=g(o),l=c?void 0:ge(o,a);if(!c&&l){let e=P(),n=u(a,d(a)),r=await ce({cfg:a,entry:l,prompter:e,runtime:t,workspaceDir:n});if(a=r.cfg,!r.installed)return;se({cfg:a,runtime:t,workspaceDir:n}),c=g(l.id)??l.id}if(!c){let n=l?`Plugin ${l.meta.label} could not be loaded after install.`:`Unknown channel: ${String(e.channel??``)}`;t.error(n),t.exit(1);return}let p=_(c);if(!p?.setup?.applyAccountConfig){t.error(`Channel ${c} does not support add.`),t.exit(1);return}let m=e.useEnv===!0,h=typeof e.initialSyncLimit==`number`?e.initialSyncLimit:typeof e.initialSyncLimit==`string`&&e.initialSyncLimit.trim()?Number.parseInt(e.initialSyncLimit,10):void 0,y=W(e.groupChannels),b=W(e.dmAllowlist),x={name:e.name,token:e.token,tokenFile:e.tokenFile,botToken:e.botToken,appToken:e.appToken,signalNumber:e.signalNumber,cliPath:e.cliPath,dbPath:e.dbPath,service:e.service,region:e.region,authDir:e.authDir,httpUrl:e.httpUrl,httpHost:e.httpHost,httpPort:e.httpPort,webhookPath:e.webhookPath,webhookUrl:e.webhookUrl,audienceType:e.audienceType,audience:e.audience,homeserver:e.homeserver,userId:e.userId,accessToken:e.accessToken,password:e.password,deviceName:e.deviceName,initialSyncLimit:h,useEnv:m,ship:e.ship,url:e.url,code:e.code,groupChannels:y,dmAllowlist:b,autoDiscoverChannels:e.autoDiscoverChannels},C=p.setup.resolveAccountId?.({cfg:a,accountId:e.account,input:x})??f(e.account),w=p.setup.validateInput?.({cfg:a,accountId:C,input:x});if(w){t.error(w),t.exit(1);return}let T=c===`telegram`?v({cfg:a,accountId:C}).token.trim():``;C!==`default`&&(a=ie({cfg:a,channelKey:c})),a=me({cfg:a,channel:c,accountId:C,input:x}),c===`telegram`&&T!==v({cfg:a,accountId:C}).token.trim()&&await S({accountId:C}),await s(a),t.log(`Added ${V(c)} account "${C}".`)}function G(e,t){if(e){if(Array.isArray(e)){for(let n of e)typeof n==`string`&&n.trim()&&t.push(n.trim());return}if(typeof e==`string`){let n=e.trim();if(!n)return;let r=n.split(/[,\s]+/).map(e=>e.trim());for(let e of r)e&&t.push(e);return}if(p(e))for(let n of Object.values(e))(Array.isArray(n)||typeof n==`string`)&&G(n,t)}}function ve(e){return Array.from(new Set(e.map(e=>e.trim()).filter(Boolean))).toSorted()}function ye(e){if(!p(e))return[];let t=[];return G(e.scopes,t),G(e.scope,t),p(e.info)&&(G(e.info.scopes,t),G(e.info.scope,t),G(e.info.user_scopes,t),G(e.info.bot_scopes,t)),ve(t)}function be(e){if(!p(e))return;let t=e.error;return typeof t==`string`&&t.trim()?t.trim():void 0}async function xe(e,t){try{let n=await e.apiCall(t);return p(n)?n:null}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function K(e,t){let n=y(e,{timeout:t}),r=[`auth.scopes`,`apps.permissions.info`],i=[];for(let e of r){let t=await xe(n,e),r=ye(t);if(r.length>0)return{ok:!0,scopes:r,source:e};let a=be(t);a&&i.push(`${e}: ${a}`)}return{ok:!1,error:i.length>0?i.join(` | `):`no scopes returned`}}const Se=[`ViewChannel`,`SendMessages`],Ce={"ChannelMessage.Read.All":`channel history`,"Chat.Read.All":`chat history`,"Channel.ReadBasic.All":`channel list`,"Team.ReadBasic.All":`team list`,"TeamsActivity.Read.All":`teams activity`,"Sites.Read.All":`files (SharePoint)`,"Files.Read.All":`files (OneDrive)`};function we(e,t=1e4){let n=Number(e);return!Number.isFinite(n)||n<=0?t:n}function Te(e){if(!e)return`unknown`;let t=[];return e.chatTypes?.length&&t.push(`chatTypes=${e.chatTypes.join(`,`)}`),e.polls&&t.push(`polls`),e.reactions&&t.push(`reactions`),e.edit&&t.push(`edit`),e.unsend&&t.push(`unsend`),e.reply&&t.push(`reply`),e.effects&&t.push(`effects`),e.groupManagement&&t.push(`groupManagement`),e.threads&&t.push(`threads`),e.media&&t.push(`media`),e.nativeCommands&&t.push(`nativeCommands`),e.blockStreaming&&t.push(`blockStreaming`),t.length?t.join(` `):`none`}function Ee(e){if(!e)return;let t=b(e,{defaultKind:`channel`});return t?t.kind===`channel`?{raw:e,normalized:t.normalized,kind:`channel`,channelId:t.id}:t.kind===`user`?{raw:e,normalized:t.normalized,kind:`user`}:{raw:e,normalized:t.normalized}:{raw:e}}function De(e){return e?[`messageContent=${e.messageContent??`unknown`}`,`guildMembers=${e.guildMembers??`unknown`}`,`presence=${e.presence??`unknown`}`].join(` `):`unknown`}function Oe(t,n){let r=[];if(!n||typeof n!=`object`)return r;let i=n;if(t===`discord`){let t=i.bot;if(t?.username){let n=t.id?` (${t.id})`:``;r.push(`Bot: ${e.accent(`@${t.username}`)}${n}`)}let n=i.application;n?.intents&&r.push(`Intents: ${De(n.intents)}`)}if(t===`telegram`){let t=i.bot;if(t?.username){let n=t.id?` (${t.id})`:``;r.push(`Bot: ${e.accent(`@${t.username}`)}${n}`)}let n=[],a=t?.canJoinGroups,o=t?.canReadAllGroupMessages,s=t?.supportsInlineQueries;typeof a==`boolean`&&n.push(`joinGroups=${a}`),typeof o==`boolean`&&n.push(`readAllGroupMessages=${o}`),typeof s==`boolean`&&n.push(`inlineQueries=${s}`),n.length>0&&r.push(`Flags: ${n.join(` `)}`);let c=i.webhook;c?.url!==void 0&&r.push(`Webhook: ${c.url||`none`}`)}if(t===`slack`){let t=i.bot,n=i.team;if(t?.name&&r.push(`Bot: ${e.accent(`@${t.name}`)}`),n?.name||n?.id){let e=n?.id?` (${n.id})`:``;r.push(`Team: ${n?.name??`unknown`}${e}`)}}if(t===`signal`){let e=i.version;e&&r.push(`Signal daemon: ${e}`)}if(t===`msteams`){let t=typeof i.appId==`string`?i.appId.trim():``;t&&r.push(`App: ${e.accent(t)}`);let n=i.graph;if(n){let t=Array.isArray(n.roles)?n.roles.map(e=>String(e).trim()).filter(Boolean):[],i=typeof n.scopes==`string`?n.scopes.split(/\s+/).map(e=>e.trim()).filter(Boolean):Array.isArray(n.scopes)?n.scopes.map(e=>String(e).trim()).filter(Boolean):[];if(n.ok===!1)r.push(`Graph: ${e.error(n.error??`failed`)}`);else if(t.length>0||i.length>0){let e=e=>{let t=Ce[e];return t?`${e} (${t})`:e};t.length>0&&r.push(`Graph roles: ${t.map(e).join(`, `)}`),i.length>0&&r.push(`Graph scopes: ${i.map(e).join(`, `)}`)}else n.ok===!0&&r.push(`Graph: ok`)}}let a=typeof i.ok==`boolean`?i.ok:void 0;if(a===!0&&r.length===0&&r.push(`Probe: ok`),a===!1){let t=typeof i.error==`string`&&i.error?` (${i.error})`:``;r.push(`Probe: ${e.error(`failed${t}`)}`)}return r}async function ke(e){let t=Ee(e.target?.trim());if(!t)return{};if(t.kind!==`channel`||!t.channelId)return{target:t,report:{error:`Target looks like a DM user; pass channel:<id> to audit channel permissions.`}};let n=e.account.token?.trim();if(!n)return{target:t,report:{channelId:t.channelId,error:`Discord bot token missing for permission audit.`}};try{let r=await x(t.channelId,{token:n,accountId:e.account.accountId??void 0}),i=Se.filter(e=>!r.permissions.includes(e));return{target:t,report:{channelId:r.channelId,guildId:r.guildId,isDm:r.isDm,channelType:r.channelType,permissions:r.permissions,missingRequired:i.length?i:[],raw:r.raw}}}catch(e){return{target:t,report:{channelId:t.channelId,error:e instanceof Error?e.message:String(e)}}}}async function Ae(e){let{plugin:t,cfg:n,timeoutMs:r}=e,i=e.accountOverride?[e.accountOverride]:(()=>{let e=t.config.listAccountIds(n);return e.length>0?e:[m({plugin:t,cfg:n,accountIds:e})]})(),a=[],o=t.actions?.listActions?.({cfg:n})??[],s=Array.from(new Set([`send`,`broadcast`,...o.map(e=>String(e))]));for(let o of i){let i=t.config.resolveAccount(n,o),c=t.config.isConfigured?await t.config.isConfigured(i,n):!!i,l=t.config.isEnabled?t.config.isEnabled(i,n):i.enabled!==!1,u;if(c&&l&&t.status?.probeAccount)try{u=await t.status.probeAccount({account:i,timeoutMs:r,cfg:n})}catch(e){u={ok:!1,error:e instanceof Error?e.message:String(e)}}let d;if(t.id===`slack`&&c&&l){let e=i.botToken?.trim(),t=i.userToken?.trim(),n=[];e?n.push({tokenType:`bot`,result:await K(e,r)}):n.push({tokenType:`bot`,result:{ok:!1,error:`Slack bot token missing.`}}),t&&n.push({tokenType:`user`,result:await K(t,r)}),d=n}let f,p;if(t.id===`discord`&&e.target){let t=await ke({account:i,target:e.target});f=t.target,p=t.report}a.push({channel:t.id,accountId:o,accountName:typeof i.name==`string`&&i.name?.trim()||void 0,configured:c,enabled:l,support:t.capabilities,probe:u,target:f,channelPermissions:p,actions:s,slackScopes:d})}return a}async function je(t,i=n){let a=await B(i);if(!a)return;let o=we(t.timeout,1e4),s=typeof t.channel==`string`?t.channel.trim().toLowerCase():``,c=typeof t.target==`string`?t.target.trim():``;if(t.account&&(!s||s===`all`)){i.error(r(`--account requires a specific --channel.`)),i.exit(1);return}if(c&&s!==`discord`){i.error(r(`--target requires --channel discord.`)),i.exit(1);return}let l=h(),u=!s||s===`all`?l:(()=>{let e=_(s);return e?[e]:null})();if(!u||u.length===0){i.error(r(`Unknown channel "${s}".`)),i.exit(1);return}let d=[];for(let e of u){let n=t.account?.trim()||void 0;d.push(...await Ae({plugin:e,cfg:a,timeoutMs:o,accountOverride:n,target:c&&e.id===`discord`?c:void 0}))}if(t.json){i.log(JSON.stringify({channels:d},null,2));return}let f=[];for(let t of d){let n=H({channel:t.channel,accountId:t.accountId,name:t.accountName,channelStyle:e.accent,accountStyle:e.heading});if(f.push(e.heading(n)),f.push(`Support: ${Te(t.support)}`),t.actions&&t.actions.length>0&&f.push(`Actions: ${t.actions.join(`, `)}`),t.configured===!1||t.enabled===!1){let e=t.configured===!1?`not configured`:`configured`,n=t.enabled===!1?`disabled`:`enabled`;f.push(`Status: ${e}, ${n}`)}let r=Oe(t.channel,t.probe);if(r.length>0?f.push(...r):t.configured&&t.enabled&&f.push(e.muted(`Probe: unavailable`)),t.channel===`slack`&&t.slackScopes)for(let n of t.slackScopes){let t=n.result.source?` (${n.result.source})`:``,r=n.tokenType===`user`?`User scopes`:`Bot scopes`;n.result.ok&&n.result.scopes?.length?f.push(`${r}${t}: ${n.result.scopes.join(`, `)}`):n.result.error&&f.push(`${r}: ${e.error(n.result.error)}`)}if(t.channel===`discord`&&t.channelPermissions){let n=t.channelPermissions;if(n.error)f.push(`Permissions: ${e.error(n.error)}`);else{let t=n.permissions?.length?n.permissions.join(`, `):`none`,r=n.channelId?` (${n.channelId})`:``;f.push(`Permissions${r}: ${t}`),n.missingRequired&&n.missingRequired.length>0?f.push(`${e.warn(`Missing required:`)} ${n.missingRequired.join(`, `)}`):f.push(e.success(`Missing required: none`))}}else t.channel===`discord`&&c&&!t.channelPermissions&&f.push(e.muted(`Permissions: skipped (no target).`));f.push(``)}i.log(f.join(`
4
4
  `).trimEnd())}const q=t=>t===`none`?e.error(t):t===`env`?e.accent(t):e.success(t);function Me(t){return t===!1?e.error(`disabled`):e.success(`enabled`)}function Ne(t){return t?e.success(`configured`):e.warn(`not configured`)}function Pe(e){return`token=${q(e||`none`)}`}function J(e,t){return`${e}=${q(t||`none`)}`}function Fe(t){return t?e.success(`linked`):e.warn(`not linked`)}function Ie(e){return e.meta.showConfigured!==!1}function Le(t){let{channel:n,snapshot:r}=t,i=H({channel:n.id,accountId:r.accountId,name:r.name,channelStyle:e.accent,accountStyle:e.heading}),a=[];return r.linked!==void 0&&a.push(Fe(r.linked)),Ie(n)&&typeof r.configured==`boolean`&&a.push(Ne(r.configured)),r.tokenSource&&a.push(Pe(r.tokenSource)),r.botTokenSource&&a.push(J(`bot`,r.botTokenSource)),r.appTokenSource&&a.push(J(`app`,r.appTokenSource)),r.baseUrl&&a.push(`base=${e.muted(r.baseUrl)}`),typeof r.enabled==`boolean`&&a.push(Me(r.enabled)),`- ${i}: ${a.join(`, `)}`}async function Re(e){try{return await M({label:`Fetching usage snapshot…`,indeterminate:!0,enabled:!0},async()=>await w())}catch(t){return e.error(String(t)),null}}async function ze(t,r=n){let i=await B(r);if(!i)return;let o=t.usage!==!1,s=h(),c=a(),l=Object.entries(c.profiles).map(([e,t])=>({id:e,provider:t.provider,type:t.type,isExternal:!1}));if(t.json){let e=o?await w():void 0,t={};for(let e of s)t[e.id]=e.config.listAccountIds(i);let n={chat:t,auth:l,...e?{usage:e}:{}};r.log(JSON.stringify(n,null,2));return}let u=[];u.push(e.heading(`Chat channels:`));for(let e of s){let t=e.config.listAccountIds(i);if(!(!t||t.length===0))for(let n of t){let t=await L({plugin:e,cfg:i,accountId:n});u.push(Le({channel:e,snapshot:t}))}}if(u.push(``),u.push(e.heading(`Auth providers (OAuth + API keys):`)),l.length===0)u.push(e.muted(`- none`));else for(let t of l){let n=t.isExternal?e.muted(` (synced)`):``;u.push(`- ${e.accent(t.id)} (${e.success(t.type)}${n})`)}if(r.log(u.join(`
@@ -1 +1 @@
1
- import{t as e}from"./subsystem-C7tbdlOl.js";import"./paths-BRJCySMM.js";import"./boolean-D15s2V33.js";import{ko as t}from"./auth-profiles-BkhVHtgY.js";import{d as n,f as r}from"./agent-scope-DjUQMckI.js";import"./utils-bGrn0y-f.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-ByNUYL2n.js";import"./env-overrides-fatFjayp.js";import"./version-q3SkUw2K.js";import"./registry-Bfa_Ykoc.js";import"./skills-DaxiAYb1.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-CAHuRRVU.js";import"./logger-CzE2MhuY.js";import"./exec-CEAb_WUd.js";import"./windows-spawn-BgzBBwXL.js";import"./redact-Dhbd2Ou5.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-DrzTb7KS.js";import"./send-CkCusmbI.js";import"./send-BlGs1R4s.js";import{l as i}from"./compact-BfHim3cA.js";import"./paths-Iw1AJLOG.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-JhtjMTo0.js";import"./tokens-DymrUOGE.js";import"./with-timeout-c1CzdShT.js";import"./deliver-BN5gbKUv.js";import"./diagnostic-ou4gNcG4.js";import"./send-CfpqUapa.js";import"./pi-model-discovery-Cqrh3PhQ.js";import"./exec-approvals-allowlist-DIBvoVsb.js";import"./exec-safe-bin-runtime-policy-y_ErZVFQ.js";import"./model-catalog--OA2KRxM.js";import"./fetch-Br9U2aWg.js";import"./audio-transcription-runner-hG3NgjtU.js";import"./fetch-guard-DOIM5NkG.js";import"./image-B6Fxt2ke.js";import"./tool-display-D4Lgnaij.js";import"./api-key-rotation-DIZSxMN4.js";import"./proxy-fetch-CCr-fxQ0.js";import"./ir-C205jOes.js";import"./render-DrrPmnMI.js";import"./target-errors-Befv_gd6.js";import"./commands-DcqfHXoH.js";import"./commands-registry-D2F_aNf1.js";import"./session-cost-usage-B0e3Qwrd.js";import"./session-utils-DtXFoDhI.js";import"./sqlite-C-YpDuDl.js";import"./call-B4oR7TXC.js";import"./pi-tools.policy-3jwvBbGG.js";import"./fetch-D6B2WSW_.js";import"./pairing-store-BXGybj6M.js";import"./exec-approvals-Dapj8H1y.js";import"./nodes-screen-DX6jz8OP.js";import"./restart-C27sljk1.js";import"./system-run-command-D6cuoREz.js";import"./skill-commands-FzYyVr7Q.js";import"./workspace-dirs-BTT7_AQX.js";import"./pairing-token-ByzqGayx.js";import"./channel-activity-W1yPxWJ3.js";import"./tables-Df7TI1wy.js";import"./runtime-web-tools-CzHbhY0M.js";import"./runtime-CHjN1UTv.js";import"./stagger-BDJo4a4e.js";import"./channel-selection-mEfryJZM.js";import"./plugin-auto-enable-Czb-XnGx.js";import"./send-CeULjLp_.js";import"./outbound-attachment-CxQjEgw4.js";import"./delivery-queue-C3NiY2Ub.js";import"./send-CLQzNoUy.js";import"./fetch-yQOUtDBh.js";import"./command-secret-targets-BzThfkzp.js";import"./connection-auth-C0uJgiku.js";import"./onboard-helpers-bAJ8ELmK.js";import"./prompt-style-LoGJ9Sd_.js";import"./pairing-labels-DdIEj5Sz.js";import"./search-manager-B35sLSi1.js";import"./manager-hztaxN5m.js";import"./memory-cli-Bp_xpCbr.js";import"./links-DRsshHiS.js";import"./cli-utils-C_maQ2m4.js";import"./help-format-BlhzdN7j.js";import"./progress-CR--5qDW.js";const a=e(`plugins`);function o(e,o){let s=o??t(),c=n(s,r(s)),l={info:e=>a.info(e),warn:e=>a.warn(e),error:e=>a.error(e),debug:e=>a.debug(e)},u=i({config:s,workspaceDir:c,logger:l}),d=new Set(e.commands.map(e=>e.name()));for(let t of u.cliRegistrars){if(t.commands.length>0){let e=t.commands.filter(e=>d.has(e));if(e.length>0){a.debug(`plugin CLI register skipped (${t.pluginId}): command already registered (${e.join(`, `)})`);continue}}try{let n=t.register({program:e,config:s,workspaceDir:c,logger:l});n&&typeof n.then==`function`&&n.catch(e=>{a.warn(`plugin CLI register failed (${t.pluginId}): ${String(e)}`)});for(let e of t.commands)d.add(e)}catch(e){a.warn(`plugin CLI register failed (${t.pluginId}): ${String(e)}`)}}}export{o as registerPluginCliCommands};
1
+ import{t as e}from"./subsystem-C7tbdlOl.js";import"./paths-BRJCySMM.js";import"./boolean-D15s2V33.js";import{ko as t}from"./auth-profiles-BkhVHtgY.js";import{d as n,f as r}from"./agent-scope-DjUQMckI.js";import"./utils-bGrn0y-f.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-ByNUYL2n.js";import"./env-overrides-fatFjayp.js";import"./version-q3SkUw2K.js";import"./registry-Bfa_Ykoc.js";import"./skills-DaxiAYb1.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-CAHuRRVU.js";import"./logger-CzE2MhuY.js";import"./exec-CEAb_WUd.js";import"./windows-spawn-BgzBBwXL.js";import"./redact-Dhbd2Ou5.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-DrzTb7KS.js";import"./send-CkCusmbI.js";import"./send-BlGs1R4s.js";import{l as i}from"./compact-DgbuvsDF.js";import"./paths-Iw1AJLOG.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-JhtjMTo0.js";import"./tokens-DymrUOGE.js";import"./with-timeout-c1CzdShT.js";import"./deliver-BN5gbKUv.js";import"./diagnostic-ou4gNcG4.js";import"./send-CfpqUapa.js";import"./pi-model-discovery-Cqrh3PhQ.js";import"./exec-approvals-allowlist-DIBvoVsb.js";import"./exec-safe-bin-runtime-policy-y_ErZVFQ.js";import"./model-catalog--OA2KRxM.js";import"./fetch-Br9U2aWg.js";import"./audio-transcription-runner-hG3NgjtU.js";import"./fetch-guard-DOIM5NkG.js";import"./image-B6Fxt2ke.js";import"./tool-display-D4Lgnaij.js";import"./api-key-rotation-DIZSxMN4.js";import"./proxy-fetch-CCr-fxQ0.js";import"./ir-C205jOes.js";import"./render-DrrPmnMI.js";import"./target-errors-Befv_gd6.js";import"./commands-DcqfHXoH.js";import"./commands-registry-D2F_aNf1.js";import"./session-cost-usage-B0e3Qwrd.js";import"./session-utils-DtXFoDhI.js";import"./sqlite-C-YpDuDl.js";import"./call-B4oR7TXC.js";import"./pi-tools.policy-3jwvBbGG.js";import"./fetch-D6B2WSW_.js";import"./pairing-store-BXGybj6M.js";import"./exec-approvals-Dapj8H1y.js";import"./nodes-screen-DX6jz8OP.js";import"./restart-C27sljk1.js";import"./system-run-command-D6cuoREz.js";import"./skill-commands-FzYyVr7Q.js";import"./workspace-dirs-BTT7_AQX.js";import"./pairing-token-ByzqGayx.js";import"./channel-activity-W1yPxWJ3.js";import"./tables-Df7TI1wy.js";import"./runtime-web-tools-CzHbhY0M.js";import"./runtime-CHjN1UTv.js";import"./stagger-BDJo4a4e.js";import"./channel-selection-mEfryJZM.js";import"./plugin-auto-enable-Czb-XnGx.js";import"./send-CeULjLp_.js";import"./outbound-attachment-CxQjEgw4.js";import"./delivery-queue-C3NiY2Ub.js";import"./send-CLQzNoUy.js";import"./fetch-yQOUtDBh.js";import"./command-secret-targets-BzThfkzp.js";import"./connection-auth-C0uJgiku.js";import"./onboard-helpers-bAJ8ELmK.js";import"./prompt-style-LoGJ9Sd_.js";import"./pairing-labels-DdIEj5Sz.js";import"./search-manager-B35sLSi1.js";import"./manager-hztaxN5m.js";import"./memory-cli-Bp_xpCbr.js";import"./links-DRsshHiS.js";import"./cli-utils-C_maQ2m4.js";import"./help-format-BlhzdN7j.js";import"./progress-CR--5qDW.js";const a=e(`plugins`);function o(e,o){let s=o??t(),c=n(s,r(s)),l={info:e=>a.info(e),warn:e=>a.warn(e),error:e=>a.error(e),debug:e=>a.debug(e)},u=i({config:s,workspaceDir:c,logger:l}),d=new Set(e.commands.map(e=>e.name()));for(let t of u.cliRegistrars){if(t.commands.length>0){let e=t.commands.filter(e=>d.has(e));if(e.length>0){a.debug(`plugin CLI register skipped (${t.pluginId}): command already registered (${e.join(`, `)})`);continue}}try{let n=t.register({program:e,config:s,workspaceDir:c,logger:l});n&&typeof n.then==`function`&&n.catch(e=>{a.warn(`plugin CLI register failed (${t.pluginId}): ${String(e)}`)});for(let e of t.commands)d.add(e)}catch(e){a.warn(`plugin CLI register failed (${t.pluginId}): ${String(e)}`)}}}export{o as registerPluginCliCommands};
@@ -1 +1 @@
1
- import"./paths-DfDmyG-r.js";import{t as e}from"./subsystem-B35lZH6M.js";import"./utils-eSzw3-BW.js";import{Gs as t}from"./model-selection-D_WMcs-m.js";import{S as n}from"./reply-Bv0w_dst.js";import{d as r,f as i}from"./agent-scope-DauKPN2a.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-HBWzEstG.js";import"./boolean-Ch3DfXPy.js";import"./env-DEV6pFi3.js";import"./env-overrides-CYDvuetI.js";import"./registry-DwigmP92.js";import"./skills-sxAZFqk6.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CPVBLi22.js";import"./logger-DMM_uqZu.js";import"./exec-Ble6PWIi.js";import"./windows-spawn-ylt31bST.js";import"./redact-DtCbW9Lh.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-alPucxwR.js";import"./send-BjtuHdPu.js";import"./send-hasPbLlg.js";import"./paths-wWzafjVT.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-Blz-FPzD.js";import"./image-CX5WRMvG.js";import"./models-config-C5gOZ_nc.js";import"./tool-display-C3cLzGSo.js";import"./fetch-guard-vEM0OBSM.js";import"./api-key-rotation-WckBsEDu.js";import"./local-roots-CFjRwfz-.js";import"./model-catalog-CXPniyHC.js";import"./proxy-fetch-C2wlnGrt.js";import"./tokens-DH__4wsg.js";import"./deliver-2PlJp__j.js";import"./commands-DwmEeRNm.js";import"./commands-registry-BU4HdCpx.js";import"./call-bAaUSED1.js";import"./read-only-account-inspect-O_P5quS_.js";import"./send-D7fq-nJ3.js";import"./pi-model-discovery-a98ybLTx.js";import"./ir-BQmB5KFM.js";import"./render-CtSBbJxV.js";import"./target-errors-CNaozwgN.js";import"./with-timeout-DHfOS7eC.js";import"./diagnostic-J-Dby8Y5.js";import"./exec-approvals-allowlist-DtUEPDK1.js";import"./exec-safe-bin-runtime-policy-CbFmGEO0.js";import"./exec-approvals-CZ6LJByp.js";import"./nodes-screen-Daq3OqWy.js";import"./restart-F8FFXkby.js";import"./system-run-command-zYUx5RNl.js";import"./runtime-web-tools-Cs8NdOZU.js";import"./runtime-n_o60Cbj.js";import"./stagger-Ch71fX1z.js";import"./channel-selection-CVjAE1aK.js";import"./plugin-auto-enable-BACDL0lj.js";import"./send-DIiiAeSV.js";import"./outbound-attachment-BHK3lwtT.js";import"./fetch-D0ctXgLA.js";import"./delivery-queue-BavBjrc5.js";import"./send-Du5iNpc_.js";import"./pairing-store-DYDGw_J1.js";import"./session-cost-usage-C7K68CQv.js";import"./sqlite-DayONBPh.js";import"./channel-activity-BPEitbxC.js";import"./tables-DoACu3IR.js";import"./fetch-MmzBES-O.js";import"./skill-commands-CPsCP-Wn.js";import"./workspace-dirs-BT0ehvIx.js";import"./pairing-token-BNYR9_wD.js";import"./command-secret-targets-BPZrI3UX.js";import"./connection-auth-BNIAz5tD.js";import"./onboard-helpers-Dn0KiH64.js";import"./prompt-style-Ct-2QSEG.js";import"./pairing-labels-D_pIiFsE.js";import"./memory-cli-BohipG7v.js";import"./manager-Dc0951tf.js";import"./links-CmkiG3i0.js";import"./cli-utils-Cfu5AugP.js";import"./help-format-BY8dc9BS.js";import"./progress-CDXE9V22.js";const a=e(`plugins`);function o(e,o){let s=o??t(),c=r(s,i(s)),l={info:e=>a.info(e),warn:e=>a.warn(e),error:e=>a.error(e),debug:e=>a.debug(e)},u=n({config:s,workspaceDir:c,logger:l}),d=new Set(e.commands.map(e=>e.name()));for(let t of u.cliRegistrars){if(t.commands.length>0){let e=t.commands.filter(e=>d.has(e));if(e.length>0){a.debug(`plugin CLI register skipped (${t.pluginId}): command already registered (${e.join(`, `)})`);continue}}try{let n=t.register({program:e,config:s,workspaceDir:c,logger:l});n&&typeof n.then==`function`&&n.catch(e=>{a.warn(`plugin CLI register failed (${t.pluginId}): ${String(e)}`)});for(let e of t.commands)d.add(e)}catch(e){a.warn(`plugin CLI register failed (${t.pluginId}): ${String(e)}`)}}}export{o as registerPluginCliCommands};
1
+ import"./paths-DfDmyG-r.js";import{t as e}from"./subsystem-B35lZH6M.js";import"./utils-eSzw3-BW.js";import{Gs as t}from"./model-selection-D_WMcs-m.js";import{S as n}from"./reply-JaJmymld.js";import{d as r,f as i}from"./agent-scope-DauKPN2a.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-HBWzEstG.js";import"./boolean-Ch3DfXPy.js";import"./env-DEV6pFi3.js";import"./env-overrides-CYDvuetI.js";import"./registry-DwigmP92.js";import"./skills-sxAZFqk6.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CPVBLi22.js";import"./logger-DMM_uqZu.js";import"./exec-Ble6PWIi.js";import"./windows-spawn-ylt31bST.js";import"./redact-DtCbW9Lh.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-alPucxwR.js";import"./send-BjtuHdPu.js";import"./send-hasPbLlg.js";import"./paths-wWzafjVT.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-Blz-FPzD.js";import"./image-CX5WRMvG.js";import"./models-config-C5gOZ_nc.js";import"./tool-display-C3cLzGSo.js";import"./fetch-guard-vEM0OBSM.js";import"./api-key-rotation-WckBsEDu.js";import"./local-roots-CFjRwfz-.js";import"./model-catalog-CXPniyHC.js";import"./proxy-fetch-C2wlnGrt.js";import"./tokens-DH__4wsg.js";import"./deliver-2PlJp__j.js";import"./commands-DwmEeRNm.js";import"./commands-registry-BU4HdCpx.js";import"./call-bAaUSED1.js";import"./read-only-account-inspect-O_P5quS_.js";import"./send-D7fq-nJ3.js";import"./pi-model-discovery-a98ybLTx.js";import"./ir-BQmB5KFM.js";import"./render-CtSBbJxV.js";import"./target-errors-CNaozwgN.js";import"./with-timeout-DHfOS7eC.js";import"./diagnostic-J-Dby8Y5.js";import"./exec-approvals-allowlist-DtUEPDK1.js";import"./exec-safe-bin-runtime-policy-CbFmGEO0.js";import"./exec-approvals-CZ6LJByp.js";import"./nodes-screen-Daq3OqWy.js";import"./restart-F8FFXkby.js";import"./system-run-command-zYUx5RNl.js";import"./runtime-web-tools-Cs8NdOZU.js";import"./runtime-n_o60Cbj.js";import"./stagger-Ch71fX1z.js";import"./channel-selection-CVjAE1aK.js";import"./plugin-auto-enable-BACDL0lj.js";import"./send-DIiiAeSV.js";import"./outbound-attachment-BHK3lwtT.js";import"./fetch-D0ctXgLA.js";import"./delivery-queue-BavBjrc5.js";import"./send-Du5iNpc_.js";import"./pairing-store-DYDGw_J1.js";import"./session-cost-usage-C7K68CQv.js";import"./sqlite-DayONBPh.js";import"./channel-activity-BPEitbxC.js";import"./tables-DoACu3IR.js";import"./fetch-MmzBES-O.js";import"./skill-commands-CPsCP-Wn.js";import"./workspace-dirs-BT0ehvIx.js";import"./pairing-token-BNYR9_wD.js";import"./command-secret-targets-BPZrI3UX.js";import"./connection-auth-BNIAz5tD.js";import"./onboard-helpers-Dn0KiH64.js";import"./prompt-style-Ct-2QSEG.js";import"./pairing-labels-D_pIiFsE.js";import"./memory-cli-BohipG7v.js";import"./manager-Dc0951tf.js";import"./links-CmkiG3i0.js";import"./cli-utils-Cfu5AugP.js";import"./help-format-BY8dc9BS.js";import"./progress-CDXE9V22.js";const a=e(`plugins`);function o(e,o){let s=o??t(),c=r(s,i(s)),l={info:e=>a.info(e),warn:e=>a.warn(e),error:e=>a.error(e),debug:e=>a.debug(e)},u=n({config:s,workspaceDir:c,logger:l}),d=new Set(e.commands.map(e=>e.name()));for(let t of u.cliRegistrars){if(t.commands.length>0){let e=t.commands.filter(e=>d.has(e));if(e.length>0){a.debug(`plugin CLI register skipped (${t.pluginId}): command already registered (${e.join(`, `)})`);continue}}try{let n=t.register({program:e,config:s,workspaceDir:c,logger:l});n&&typeof n.then==`function`&&n.catch(e=>{a.warn(`plugin CLI register failed (${t.pluginId}): ${String(e)}`)});for(let e of t.commands)d.add(e)}catch(e){a.warn(`plugin CLI register failed (${t.pluginId}): ${String(e)}`)}}}export{o as registerPluginCliCommands};
@@ -1 +1 @@
1
- import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{J as t,Z as n}from"./subsystem-C7tbdlOl.js";import{i as r,o as i,s as a}from"./register.subclis-nr-J0DsM.js";var o=e({getCoreCliCommandNames:()=>u,getCoreCliCommandsWithSubcommands:()=>d,registerCoreCliByName:()=>m,registerCoreCliCommands:()=>h,registerProgramCommands:()=>g});const s=e=>!n(e),c=[{commands:[{name:`setup`,description:`Initialize local config and agent workspace`,hasSubcommands:!1}],register:async({program:e})=>{(await import(`./register.setup-DUGQ3LjU.js`)).registerSetupCommand(e)}},{commands:[{name:`onboard`,description:`Interactive onboarding wizard for gateway, workspace, and skills`,hasSubcommands:!1}],register:async({program:e})=>{(await import(`./register.onboard-CsUvw9JY.js`)).registerOnboardCommand(e)}},{commands:[{name:`configure`,description:`Interactive setup wizard for credentials, channels, gateway, and agent defaults`,hasSubcommands:!1}],register:async({program:e})=>{(await import(`./register.configure-DNeVIlZk.js`)).registerConfigureCommand(e)}},{commands:[{name:`config`,description:`Non-interactive config helpers (get/set/unset/file/validate). Default: starts setup wizard.`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./config-cli-IpFnLniP.js`)).registerConfigCli(e)}},{commands:[{name:`backup`,description:`Create and verify local backup archives for OpenClaw state`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./register.backup-ojgQKx5C.js`)).registerBackupCommand(e)}},{commands:[{name:`doctor`,description:`Health checks + quick fixes for the gateway and channels`,hasSubcommands:!1},{name:`dashboard`,description:`Open the Control UI with your current token`,hasSubcommands:!1},{name:`reset`,description:`Reset local config/state (keeps the CLI installed)`,hasSubcommands:!1},{name:`uninstall`,description:`Uninstall the gateway service + local data (CLI remains)`,hasSubcommands:!1}],register:async({program:e})=>{(await import(`./register.maintenance-BGD-EdYb.js`)).registerMaintenanceCommands(e)}},{commands:[{name:`message`,description:`Send, read, and manage messages`,hasSubcommands:!0}],register:async({program:e,ctx:t})=>{(await import(`./register.message-BahjRagK.js`)).registerMessageCommands(e,t)}},{commands:[{name:`memory`,description:`Search and reindex memory files`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./memory-cli-Bp_xpCbr.js`).then(e=>e.t)).registerMemoryCli(e)}},{commands:[{name:`agent`,description:`Run one agent turn via the Gateway`,hasSubcommands:!1},{name:`agents`,description:`Manage isolated agents (workspaces, auth, routing)`,hasSubcommands:!0}],register:async({program:e,ctx:t})=>{(await import(`./register.agent-Cjvn_JC_.js`)).registerAgentCommands(e,{agentChannelOptions:t.agentChannelOptions})}},{commands:[{name:`status`,description:`Show channel health and recent session recipients`,hasSubcommands:!1},{name:`health`,description:`Fetch health from the running gateway`,hasSubcommands:!1},{name:`sessions`,description:`List stored conversation sessions`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./register.status-health-sessions-DwQDXdjY.js`)).registerStatusHealthSessionsCommands(e)}},{commands:[{name:`browser`,description:`Manage OpenClaw's dedicated browser (Chrome/Chromium)`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./browser-cli-BZGDjYGu.js`)).registerBrowserCli(e)}}];function l(e){let t=new Set,n=[];for(let r of c)for(let i of r.commands)e&&!e(i)||t.has(i.name)||(t.add(i.name),n.push(i.name));return n}function u(){return l()}function d(){return l(e=>e.hasSubcommands)}function f(e,t){for(let n of t.commands)i(e,n.name)}function p(e,t,n,r){let i=e.command(r.name).description(r.description);i.allowUnknownOption(!0),i.allowExcessArguments(!0),i.action(async(...r)=>{f(e,n),await n.register({program:e,ctx:t,argv:process.argv}),await a(e,r)})}async function m(e,t,n,r=process.argv){let i=c.find(e=>e.commands.some(e=>e.name===n));return i?(f(e,i),await i.register({program:e,ctx:t,argv:r}),!0):!1}function h(e,n,r){let i=t(r);if(i&&s(r)){let t=c.find(e=>e.commands.some(e=>e.name===i));if(t){let r=t.commands.find(e=>e.name===i);r&&p(e,n,t,r);return}}for(let t of c)for(let r of t.commands)p(e,n,t,r)}function g(e,t,n=process.argv){h(e,t,n),r(e,n)}export{g as a,m as i,u as n,d as r,o as t};
1
+ import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{J as t,Z as n}from"./subsystem-C7tbdlOl.js";import{i as r,o as i,s as a}from"./register.subclis-DMwBX73g.js";var o=e({getCoreCliCommandNames:()=>u,getCoreCliCommandsWithSubcommands:()=>d,registerCoreCliByName:()=>m,registerCoreCliCommands:()=>h,registerProgramCommands:()=>g});const s=e=>!n(e),c=[{commands:[{name:`setup`,description:`Initialize local config and agent workspace`,hasSubcommands:!1}],register:async({program:e})=>{(await import(`./register.setup-AyriKZAD.js`)).registerSetupCommand(e)}},{commands:[{name:`onboard`,description:`Interactive onboarding wizard for gateway, workspace, and skills`,hasSubcommands:!1}],register:async({program:e})=>{(await import(`./register.onboard-D9LNxSOp.js`)).registerOnboardCommand(e)}},{commands:[{name:`configure`,description:`Interactive setup wizard for credentials, channels, gateway, and agent defaults`,hasSubcommands:!1}],register:async({program:e})=>{(await import(`./register.configure-jvsFtsEY.js`)).registerConfigureCommand(e)}},{commands:[{name:`config`,description:`Non-interactive config helpers (get/set/unset/file/validate). Default: starts setup wizard.`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./config-cli-BVtPmTcO.js`)).registerConfigCli(e)}},{commands:[{name:`backup`,description:`Create and verify local backup archives for OpenClaw state`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./register.backup-ojgQKx5C.js`)).registerBackupCommand(e)}},{commands:[{name:`doctor`,description:`Health checks + quick fixes for the gateway and channels`,hasSubcommands:!1},{name:`dashboard`,description:`Open the Control UI with your current token`,hasSubcommands:!1},{name:`reset`,description:`Reset local config/state (keeps the CLI installed)`,hasSubcommands:!1},{name:`uninstall`,description:`Uninstall the gateway service + local data (CLI remains)`,hasSubcommands:!1}],register:async({program:e})=>{(await import(`./register.maintenance-DbdyMqnN.js`)).registerMaintenanceCommands(e)}},{commands:[{name:`message`,description:`Send, read, and manage messages`,hasSubcommands:!0}],register:async({program:e,ctx:t})=>{(await import(`./register.message-DxNX0-7A.js`)).registerMessageCommands(e,t)}},{commands:[{name:`memory`,description:`Search and reindex memory files`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./memory-cli-Bp_xpCbr.js`).then(e=>e.t)).registerMemoryCli(e)}},{commands:[{name:`agent`,description:`Run one agent turn via the Gateway`,hasSubcommands:!1},{name:`agents`,description:`Manage isolated agents (workspaces, auth, routing)`,hasSubcommands:!0}],register:async({program:e,ctx:t})=>{(await import(`./register.agent-CQCSZoM3.js`)).registerAgentCommands(e,{agentChannelOptions:t.agentChannelOptions})}},{commands:[{name:`status`,description:`Show channel health and recent session recipients`,hasSubcommands:!1},{name:`health`,description:`Fetch health from the running gateway`,hasSubcommands:!1},{name:`sessions`,description:`List stored conversation sessions`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./register.status-health-sessions-C3YEi9ej.js`)).registerStatusHealthSessionsCommands(e)}},{commands:[{name:`browser`,description:`Manage OpenClaw's dedicated browser (Chrome/Chromium)`,hasSubcommands:!0}],register:async({program:e})=>{(await import(`./browser-cli-BZGDjYGu.js`)).registerBrowserCli(e)}}];function l(e){let t=new Set,n=[];for(let r of c)for(let i of r.commands)e&&!e(i)||t.has(i.name)||(t.add(i.name),n.push(i.name));return n}function u(){return l()}function d(){return l(e=>e.hasSubcommands)}function f(e,t){for(let n of t.commands)i(e,n.name)}function p(e,t,n,r){let i=e.command(r.name).description(r.description);i.allowUnknownOption(!0),i.allowExcessArguments(!0),i.action(async(...r)=>{f(e,n),await n.register({program:e,ctx:t,argv:process.argv}),await a(e,r)})}async function m(e,t,n,r=process.argv){let i=c.find(e=>e.commands.some(e=>e.name===n));return i?(f(e,i),await i.register({program:e,ctx:t,argv:r}),!0):!1}function h(e,n,r){let i=t(r);if(i&&s(r)){let t=c.find(e=>e.commands.some(e=>e.name===i));if(t){let r=t.commands.find(e=>e.name===i);r&&p(e,n,t,r);return}}for(let t of c)for(let r of t.commands)p(e,n,t,r)}function g(e,t,n=process.argv){h(e,t,n),r(e,n)}export{g as a,m as i,u as n,d as r,o as t};