@qqbrowser/openclaw-qbot 0.10.1 → 0.10.2

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 (214) hide show
  1. package/dist/{agents-Cd1yL8fG.js → agents-CCGNI0th.js} +1 -1
  2. package/dist/{agents.config-CaRMmWS8.js → agents.config-B9_IT_un.js} +1 -1
  3. package/dist/{agents.config-DSCcdYtv.js → agents.config-D8Q8p7re.js} +1 -1
  4. package/dist/{auth-choice-MqcWuVyu.js → auth-choice-DacG9sC7.js} +1 -1
  5. package/dist/{auth-choice-BmI4sIGs.js → auth-choice-EAV1bi1K.js} +1 -1
  6. package/dist/{banner-CAtilyXr.js → banner-DiQjNe9B.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-CCqtIYCc.js → channel-options-DcI5T_Su.js} +1 -1
  12. package/dist/{channel-options-CKoyPq8p.js → channel-options-llKYy0-2.js} +1 -1
  13. package/dist/{channel-web-CwUfYqjg.js → channel-web-Qr8ST6tz.js} +1 -1
  14. package/dist/{channel-web-CCSMlUux.js → channel-web-TKrgB4oQ.js} +1 -1
  15. package/dist/{channels-cli-BfgVv5jH.js → channels-cli-BtyzpSQo.js} +1 -1
  16. package/dist/{channels-cli-BvGXgERj.js → channels-cli-CrdwqyiA.js} +1 -1
  17. package/dist/{cli-Bt--1dhL.js → cli-BDzG5MP5.js} +1 -1
  18. package/dist/{cli-CBg8KhmQ.js → cli-BY5POVX1.js} +1 -1
  19. package/dist/{command-registry-D_jtBegA.js → command-registry-DtMCIKRu.js} +1 -1
  20. package/dist/{compact-CYbPi7_-.js → compact-uyQDx8pN.js} +36 -36
  21. package/dist/{compact.runtime-BQu-8DFN.js → compact.runtime-BvWn8-VF.js} +1 -1
  22. package/dist/{compact.runtime-D-fOpaU3.js → compact.runtime-CbCNReBm.js} +1 -1
  23. package/dist/{compact.runtime-owWgKVDf.js → compact.runtime-DcRVnY_G.js} +1 -1
  24. package/dist/{compact.runtime-CrzmR0tV.js → compact.runtime-dgJTRf2V.js} +1 -1
  25. package/dist/{completion-cli-Bw_hBrlA.js → completion-cli-ByNU0Lbo.js} +1 -1
  26. package/dist/{completion-cli-BVbT_aR2.js → completion-cli-DHH7Zr2u.js} +1 -1
  27. package/dist/{config-cli-CwW76_j_.js → config-cli-BeVM5uz1.js} +1 -1
  28. package/dist/{config-cli-F-lkPjjz.js → config-cli-CcE1aKR3.js} +1 -1
  29. package/dist/{configure-DFlnM_zh.js → configure-CF42Va3r.js} +1 -1
  30. package/dist/{configure--c4tTVPz.js → configure-CYw7mK89.js} +1 -1
  31. package/dist/{deps-send-whatsapp.runtime-CqISN5vF.js → deps-send-whatsapp.runtime-7SqhJmWZ.js} +1 -1
  32. package/dist/{deps-send-whatsapp.runtime-C1zG74Si.js → deps-send-whatsapp.runtime-Bocaadqa.js} +1 -1
  33. package/dist/{deps-send-whatsapp.runtime-B5GMQIFv.js → deps-send-whatsapp.runtime-CjA6T7V6.js} +1 -1
  34. package/dist/{deps-send-whatsapp.runtime-CJnSJVnN.js → deps-send-whatsapp.runtime-DTyzQeR_.js} +1 -1
  35. package/dist/{doctor-completion-DI7mGC3D.js → doctor-completion-C15UB3EM.js} +1 -1
  36. package/dist/{doctor-completion-C9CPhCor.js → doctor-completion-KLuf1f33.js} +1 -1
  37. package/dist/entry.js +1 -1
  38. package/dist/extensionAPI.js +1 -1
  39. package/dist/{gateway-cli-BMmU2dsG.js → gateway-cli-CHyybU4X.js} +2 -2
  40. package/dist/{gateway-cli-Kp-caOwI.js → gateway-cli-DV3M2tJP.js} +2 -2
  41. package/dist/{health-B_-ZE5FK.js → health-2MbtCw6U.js} +1 -1
  42. package/dist/{health-CIZFVJEG.js → health-Dmtcw9K8.js} +1 -1
  43. package/dist/{hooks-cli-BoxAnC-E.js → hooks-cli-BaoD0-6l.js} +1 -1
  44. package/dist/{hooks-cli-CnCOjVv0.js → hooks-cli-DWCe4aHR.js} +1 -1
  45. package/dist/index.js +2 -2
  46. package/dist/llm-slug-generator.js +1 -1
  47. package/dist/{models-BBYqej07.js → models-DKf-4KoV.js} +1 -1
  48. package/dist/{models-cli-CMMhnlHo.js → models-cli-Bc8cIZ0A.js} +1 -1
  49. package/dist/{models-cli-CqbDyDn2.js → models-cli-Ble64nV3.js} +1 -1
  50. package/dist/{npm-resolution-CBlwQq3a.js → npm-resolution-BzXV2s2P.js} +1 -1
  51. package/dist/{npm-resolution--_-0q2ks.js → npm-resolution-CZUqHH_2.js} +1 -1
  52. package/dist/{onboard-DZG0HnuP.js → onboard-B8dVlGVk.js} +2 -2
  53. package/dist/{onboard-DlCEww7K.js → onboard-By9pkNca.js} +2 -2
  54. package/dist/{onboard-channels-BDMtq3ex.js → onboard-channels-C5lcb7dF.js} +1 -1
  55. package/dist/{onboard-channels-BO3AN_eA.js → onboard-channels-DFB6deX0.js} +1 -1
  56. package/dist/{onboarding-m-m__16h.js → onboarding-C7vbkuBI.js} +1 -1
  57. package/dist/{onboarding-CxRTJCBM.js → onboarding-DCldCoVy.js} +1 -1
  58. package/dist/{onboarding.finalize-BJxMhYUa.js → onboarding.finalize-C-b9zSIO.js} +1 -1
  59. package/dist/{onboarding.finalize-UiX3YmbI.js → onboarding.finalize-XCttW8IU.js} +1 -1
  60. package/dist/{pi-embedded-X_Svd4Wi.js → pi-embedded-CoHiJa9Q.js} +8 -8
  61. package/dist/{pi-embedded-6yGEd2xd.js → pi-embedded-DLlQ5e_w.js} +8 -8
  62. package/dist/{plugin-registry-DYwEy5eM.js → plugin-registry-C_HKxFxs.js} +1 -1
  63. package/dist/{plugin-registry-CN2aCPP7.js → plugin-registry-DBgXa8jD.js} +1 -1
  64. package/dist/plugin-sdk/{channel-web-Bg8DNyeb.js → channel-web-CMlv9Yzv.js} +1 -1
  65. package/dist/plugin-sdk/{channel-web-B795Ild9.cjs → channel-web-D1tzaMsH.cjs} +1 -1
  66. package/dist/plugin-sdk/{channel-web-D5zxPW-x.js → channel-web-DowgDxtO.js} +1 -1
  67. package/dist/plugin-sdk/{channel-web-CW42ALB5.cjs → channel-web-VsaRZCG2.cjs} +1 -1
  68. package/dist/plugin-sdk/{compact.runtime-Cr6oI5li.js → compact.runtime-B4M-VPyN.js} +1 -1
  69. package/dist/plugin-sdk/{compact.runtime-BR00C0_i.cjs → compact.runtime-BeWqnWW5.cjs} +1 -1
  70. package/dist/plugin-sdk/{compact.runtime-DOcQzBT5.cjs → compact.runtime-BnF9vU5j.cjs} +1 -1
  71. package/dist/plugin-sdk/{compact.runtime-D-3vVYGF.js → compact.runtime-C5vcsriA.js} +1 -1
  72. package/dist/plugin-sdk/{compact.runtime-BBqQuOlJ.cjs → compact.runtime-CS04yjUP.cjs} +1 -1
  73. package/dist/plugin-sdk/{compact.runtime-CGKItjCQ.js → compact.runtime-CepgZBh6.js} +1 -1
  74. package/dist/plugin-sdk/{compact.runtime-C-sPm0kL.cjs → compact.runtime-CuGn1L3D.cjs} +1 -1
  75. package/dist/plugin-sdk/{compact.runtime-CAiT8DtI.js → compact.runtime-DNocZUm6.js} +1 -1
  76. package/dist/plugin-sdk/{compact.runtime-CmQT69OD.cjs → compact.runtime-DQRsRwKH.cjs} +1 -1
  77. package/dist/plugin-sdk/{compact.runtime-BXuXwnQ_.cjs → compact.runtime-DnWYG9Ij.cjs} +1 -1
  78. package/dist/plugin-sdk/{compact.runtime-BxzvSPrQ.js → compact.runtime-W8dIsxRV.js} +1 -1
  79. package/dist/plugin-sdk/{compact.runtime-B1fslZX1.js → compact.runtime-hS2NXspw.js} +1 -1
  80. package/dist/plugin-sdk/compat.cjs +1 -1
  81. package/dist/plugin-sdk/compat.js +1 -1
  82. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-WXiE5pA7.js → deps-send-whatsapp.runtime-B5Nz8XrQ.js} +1 -1
  83. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-DKoOiTZZ.cjs → deps-send-whatsapp.runtime-B5R8WAYy.cjs} +1 -1
  84. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-DlO-S_iA.js → deps-send-whatsapp.runtime-B6ua6LoP.js} +1 -1
  85. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BUuj08qp.cjs → deps-send-whatsapp.runtime-BPMIzR5x.cjs} +1 -1
  86. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-iI9qWUzR.cjs → deps-send-whatsapp.runtime-Bpq7VeGO.cjs} +1 -1
  87. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-3kX5dnHC.js → deps-send-whatsapp.runtime-D3YUudyV.js} +1 -1
  88. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-Xn1KqyPS.js → deps-send-whatsapp.runtime-DFxWO5_f.js} +1 -1
  89. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-CE9LgvzJ.cjs → deps-send-whatsapp.runtime-DZ_pLOPK.cjs} +1 -1
  90. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-t0Z0IyDq.cjs → deps-send-whatsapp.runtime-DyoJd0Hw.cjs} +1 -1
  91. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-rOnSc6qE.js → deps-send-whatsapp.runtime-ZkaerhQ1.js} +1 -1
  92. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-QUlRFE48.cjs → deps-send-whatsapp.runtime-_wzNB18A.cjs} +1 -1
  93. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-DKVfDIzU.js → deps-send-whatsapp.runtime-bBd46QxW.js} +1 -1
  94. package/dist/plugin-sdk/{dispatch-DAaOM5c1.cjs → dispatch-B8dzPpi1.cjs} +8 -8
  95. package/dist/plugin-sdk/{dispatch-DYRrW05S.js → dispatch-B9FQyNfe.js} +36 -36
  96. package/dist/plugin-sdk/{dispatch-Dl0eaYcY.cjs → dispatch-BB5AfYlI.cjs} +8 -8
  97. package/dist/plugin-sdk/{dispatch-_tJF5hSh.cjs → dispatch-BIaey_BU.cjs} +8 -8
  98. package/dist/plugin-sdk/{dispatch-B13B2T1k.js → dispatch-BY1FkQOr.js} +8 -8
  99. package/dist/plugin-sdk/{dispatch-cPg1rBWu.cjs → dispatch-Bybxc9Yl.cjs} +8 -8
  100. package/dist/plugin-sdk/{dispatch-BlOkbw2U.js → dispatch-CADw_Fi7.js} +8 -8
  101. package/dist/plugin-sdk/{dispatch-Dap2ZPC9.js → dispatch-CZqPeEcw.js} +8 -8
  102. package/dist/plugin-sdk/{dispatch-BaBcLOry.js → dispatch-DafB1x1O.js} +8 -8
  103. package/dist/plugin-sdk/{dispatch-D2Km7gvG.cjs → dispatch-DcyylSdu.cjs} +8 -8
  104. package/dist/plugin-sdk/index.cjs +1 -1
  105. package/dist/plugin-sdk/index.js +1 -1
  106. package/dist/plugin-sdk/irc.cjs +1 -1
  107. package/dist/plugin-sdk/irc.js +1 -1
  108. package/dist/plugin-sdk/matrix.cjs +1 -1
  109. package/dist/plugin-sdk/matrix.js +1 -1
  110. package/dist/plugin-sdk/msteams.cjs +1 -1
  111. package/dist/plugin-sdk/msteams.js +1 -1
  112. package/dist/plugin-sdk/nextcloud-talk.cjs +1 -1
  113. package/dist/plugin-sdk/nextcloud-talk.js +1 -1
  114. package/dist/plugin-sdk/{reply-JD6VIW5N.cjs → reply-6D8nZUZ1.cjs} +8 -8
  115. package/dist/plugin-sdk/{reply-73PF8kN_.js → reply-gpVkJsEs.js} +8 -8
  116. package/dist/plugin-sdk/{slash-dispatch.runtime-DAgDLU__.js → slash-dispatch.runtime-2hUZv0o4.js} +1 -1
  117. package/dist/plugin-sdk/{slash-dispatch.runtime-BfheQLfD.js → slash-dispatch.runtime-B4sdtKqK.js} +1 -1
  118. package/dist/plugin-sdk/{slash-dispatch.runtime-CmVqJqfV.js → slash-dispatch.runtime-BCAWJ135.js} +1 -1
  119. package/dist/plugin-sdk/{slash-dispatch.runtime-wWa-kKvH.js → slash-dispatch.runtime-BJX-7mTD.js} +1 -1
  120. package/dist/plugin-sdk/{slash-dispatch.runtime-C6cMCwSp.js → slash-dispatch.runtime-BY3aBzxK.js} +1 -1
  121. package/dist/plugin-sdk/{slash-dispatch.runtime-BVXTmhZU.js → slash-dispatch.runtime-CHFbytW1.js} +1 -1
  122. package/dist/plugin-sdk/{slash-dispatch.runtime-BcO6NdxL.cjs → slash-dispatch.runtime-Cf-EuMPD.cjs} +1 -1
  123. package/dist/plugin-sdk/{slash-dispatch.runtime-CYmmyw9o.cjs → slash-dispatch.runtime-CukipBLa.cjs} +1 -1
  124. package/dist/plugin-sdk/{slash-dispatch.runtime-DNI9fZFo.cjs → slash-dispatch.runtime-D7JTU7km.cjs} +1 -1
  125. package/dist/plugin-sdk/{slash-dispatch.runtime-BQWrcjEG.cjs → slash-dispatch.runtime-DZq0olM2.cjs} +1 -1
  126. package/dist/plugin-sdk/{slash-dispatch.runtime-Cp5-cPgM.cjs → slash-dispatch.runtime-ILA0KH-p.cjs} +1 -1
  127. package/dist/plugin-sdk/{slash-dispatch.runtime-CD6AFEn3.cjs → slash-dispatch.runtime-_i2UiDTt.cjs} +1 -1
  128. package/dist/plugin-sdk/{subagent-registry-runtime-BINR9wKz.cjs → subagent-registry-runtime-7wfZ9Ydg.cjs} +1 -1
  129. package/dist/plugin-sdk/{subagent-registry-runtime-q6csFFiS.js → subagent-registry-runtime-B6Go3QMY.js} +1 -1
  130. package/dist/plugin-sdk/{subagent-registry-runtime-CPYQLLoh.cjs → subagent-registry-runtime-Bf71VzVF.cjs} +1 -1
  131. package/dist/plugin-sdk/{subagent-registry-runtime-DCd8DMgz.js → subagent-registry-runtime-CKlyWpvM.js} +1 -1
  132. package/dist/plugin-sdk/{subagent-registry-runtime-BfT45xXa.cjs → subagent-registry-runtime-CcyvhbJH.cjs} +1 -1
  133. package/dist/plugin-sdk/{subagent-registry-runtime-DYhr9YcP.js → subagent-registry-runtime-D4y3Fxlu.js} +1 -1
  134. package/dist/plugin-sdk/{subagent-registry-runtime-BBwsJL9B.cjs → subagent-registry-runtime-DFCUhuvT.cjs} +1 -1
  135. package/dist/plugin-sdk/{subagent-registry-runtime-CjnSOShL.js → subagent-registry-runtime-DWZUy1eI.js} +1 -1
  136. package/dist/plugin-sdk/{subagent-registry-runtime-B9uDb_ij.js → subagent-registry-runtime-DkCs3cQj.js} +1 -1
  137. package/dist/plugin-sdk/{subagent-registry-runtime-DB8YDuGj.js → subagent-registry-runtime-RrhCNI-u.js} +1 -1
  138. package/dist/plugin-sdk/{subagent-registry-runtime-iiOzLeYb.cjs → subagent-registry-runtime-S2yCcuWA.cjs} +1 -1
  139. package/dist/plugin-sdk/{subagent-registry-runtime-ClkQBnJu.cjs → subagent-registry-runtime-zTYi4rJR.cjs} +1 -1
  140. package/dist/plugin-sdk/{web-Bh78uOi8.cjs → web-C-_Bja5u.cjs} +1 -1
  141. package/dist/plugin-sdk/{web-C4ezqWIt.js → web-C7h16O4t.js} +1 -1
  142. package/dist/plugin-sdk/{web-B7d3p3kx.cjs → web-Cf2Ivjcn.cjs} +1 -1
  143. package/dist/plugin-sdk/{web-DFDao2So.cjs → web-CfvlhITy.cjs} +1 -1
  144. package/dist/plugin-sdk/{web-JciOW43P.js → web-DzgvdKmn.js} +1 -1
  145. package/dist/plugin-sdk/{web-Bg2LIMdb.cjs → web-RmaRbUK1.cjs} +1 -1
  146. package/dist/plugin-sdk/{web-SwpoHf2A.js → web-bHdImk0G.js} +1 -1
  147. package/dist/plugin-sdk/{web-DjbeDvyv.js → web-bT52Rp59.js} +1 -1
  148. package/dist/plugin-sdk/{web-vSFigMHz.cjs → web-pFlzmHcu.cjs} +1 -1
  149. package/dist/plugin-sdk/{web-BEuW8Yqw.js → web-rFQBs9b0.js} +1 -1
  150. package/dist/plugin-sdk/{web--8MBOleK.js → web-uQqWClDT.js} +1 -1
  151. package/dist/plugin-sdk/{web-BPQv-4Qv.cjs → web-wnw_PMil.cjs} +1 -1
  152. package/dist/plugin-sdk/whatsapp.cjs +1 -1
  153. package/dist/plugin-sdk/whatsapp.js +1 -1
  154. package/dist/{plugins-cli-PVHBZeb8.js → plugins-cli-BjLj52hA.js} +1 -1
  155. package/dist/{plugins-cli-CnXgwZzI.js → plugins-cli-CwQOOOym.js} +1 -1
  156. package/dist/ports-BDZyt9rk.js +2 -0
  157. package/dist/ports-DmJX-iq9.js +2 -0
  158. package/dist/{program-D53eGuSf.js → program-RvezCMDs.js} +2 -2
  159. package/dist/{program-context-n-ovYq69.js → program-context-C4vPkfWW.js} +1 -1
  160. package/dist/{prompt-select-styled-DolCW-_j.js → prompt-select-styled-C-zw_5_b.js} +1 -1
  161. package/dist/{prompt-select-styled-DZnefcrY.js → prompt-select-styled-CoP6cSMX.js} +1 -1
  162. package/dist/{provider-auth-helpers-BLm2bdp5.js → provider-auth-helpers-DeCLF5oV.js} +1 -1
  163. package/dist/{provider-auth-helpers-DPz0vN_c.js → provider-auth-helpers-Rv3hdZ7j.js} +1 -1
  164. package/dist/{push-apns-BBv62ncV.js → push-apns-BfTKAzRZ.js} +1 -1
  165. package/dist/{push-apns-DIV5dBPP.js → push-apns-CeY33Rxc.js} +1 -1
  166. package/dist/{register.agent-DQdoMfmw.js → register.agent-CANRVL5k.js} +1 -1
  167. package/dist/{register.agent-DHOTtB8X.js → register.agent-He4UYNpV.js} +1 -1
  168. package/dist/{register.configure-C2N82brC.js → register.configure-CqsxTDtC.js} +1 -1
  169. package/dist/{register.configure-C6zjzaEo.js → register.configure-CwuLuKsv.js} +1 -1
  170. package/dist/{register.maintenance-CStaPxaB.js → register.maintenance-B5cnDjLy.js} +1 -1
  171. package/dist/{register.maintenance-aKBTd9Zp.js → register.maintenance-CHJQh81L.js} +1 -1
  172. package/dist/{register.message-DHDcOA8X.js → register.message-CEcXemHd.js} +1 -1
  173. package/dist/{register.message-Dh72QHKA.js → register.message-DoA6MALf.js} +1 -1
  174. package/dist/{register.onboard-DB9FWAKT.js → register.onboard-B01N1AYH.js} +1 -1
  175. package/dist/{register.onboard-Bu9gpFlA.js → register.onboard-B5iQpfVG.js} +1 -1
  176. package/dist/{register.setup-D76IRs4s.js → register.setup-BTKZzyRh.js} +1 -1
  177. package/dist/{register.setup-CeG2ETmr.js → register.setup-CPGByOtO.js} +1 -1
  178. package/dist/{register.status-health-sessions-mPGKFjIz.js → register.status-health-sessions-CPmSNp3F.js} +1 -1
  179. package/dist/{register.status-health-sessions-Dtpd1P2M.js → register.status-health-sessions-hrQLxH-w.js} +1 -1
  180. package/dist/{register.subclis-Drp2dGBe.js → register.subclis-CqVDIyhT.js} +1 -1
  181. package/dist/{reply-DwfVhea1.js → reply-mWIMy_ju.js} +8 -8
  182. package/dist/{run-main-CjwjyWA6.js → run-main-B2f6FBb0.js} +1 -1
  183. package/dist/{server-node-events-CL0pWoMa.js → server-node-events-BtKnElP0.js} +1 -1
  184. package/dist/{server-node-events-ChPQ984b.js → server-node-events-DnyBXZtB.js} +1 -1
  185. package/dist/{slash-dispatch.runtime-jR7ZpRLo.js → slash-dispatch.runtime-B8S9VVjy.js} +1 -1
  186. package/dist/{slash-dispatch.runtime-CHDiNcch.js → slash-dispatch.runtime-CS58xiJF.js} +1 -1
  187. package/dist/{slash-dispatch.runtime-DgsOlRbg.js → slash-dispatch.runtime-CZrxUnBW.js} +1 -1
  188. package/dist/{slash-dispatch.runtime-Bh87LG5X.js → slash-dispatch.runtime-Cq_OU6GL.js} +1 -1
  189. package/dist/{status-o3Gfr-6l.js → status-C3OhTrWE.js} +1 -1
  190. package/dist/{status-BSHWBrg0.js → status-tL-XCvJC.js} +1 -1
  191. package/dist/{subagent-registry-runtime-B8nEWxYm.js → subagent-registry-runtime-BvPAovsV.js} +1 -1
  192. package/dist/{subagent-registry-runtime-D5PhzS7u.js → subagent-registry-runtime-ClREKCLG.js} +1 -1
  193. package/dist/{subagent-registry-runtime-C6xoTyr_.js → subagent-registry-runtime-D2cjV86K.js} +1 -1
  194. package/dist/{subagent-registry-runtime-DU6-3b5M.js → subagent-registry-runtime-dcrGDOTV.js} +1 -1
  195. package/dist/{update-cli-DU5tRH3c.js → update-cli-CZsuMrHE.js} +1 -1
  196. package/dist/{update-cli-CL_cUjuq.js → update-cli-DAPHNGDM.js} +1 -1
  197. package/dist/{update-runner-DG-1TYYc.js → update-runner-DZkN4otc.js} +1 -1
  198. package/dist/{update-runner-DABdlxfN.js → update-runner-DhaHCCx3.js} +1 -1
  199. package/dist/{web-C0WkwHal.js → web-BPloShgg.js} +1 -1
  200. package/dist/{web-u71NbOpT.js → web-BbOH61Lx.js} +1 -1
  201. package/dist/{web-DPQjx48C.js → web-CMSYMAHG.js} +1 -1
  202. package/dist/{web-Dfi2WjvN.js → web-WBvnAfBv.js} +1 -1
  203. package/extensions/qqbrowser-skill-control/index.js +1 -1
  204. package/node_modules/@google/genai/dist/index.cjs +8 -8
  205. package/node_modules/@google/genai/dist/index.mjs +8 -8
  206. package/node_modules/@google/genai/dist/node/index.cjs +8 -8
  207. package/node_modules/@google/genai/dist/node/index.mjs +8 -8
  208. package/node_modules/@google/genai/dist/vertex_internal/index.cjs +1 -1
  209. package/node_modules/@google/genai/dist/vertex_internal/index.js +1 -1
  210. package/node_modules/@google/genai/dist/web/index.mjs +8 -8
  211. package/node_modules/@google/genai/package.json +1 -1
  212. package/package.json +1 -1
  213. package/dist/ports-BAaLOkJp.js +0 -2
  214. package/dist/ports-DDWP1p0X.js +0 -2
@@ -1 +1 @@
1
- import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-BLbnMb5E.js";import{_ as e}from"./reply-DwfVhea1.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BwjMhAUa.js";import"./image-BP1cfEh1.js";import"./models-config-BlQ39qlq.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-7BAwnP4a.js";import"./api-key-rotation-Rz2ESQSA.js";import"./local-roots-aA-4ohTq.js";import"./model-catalog-D-hkNWin.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DUNkj4hy.js";import"./commands-CGpM84iR.js";import"./commands-registry-DlvNUkXz.js";import"./pairing-store-EmfFQVcs.js";import"./fetch-Dikjvc5M.js";import"./call-JB-cGR9n.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-BEZszppF.js";import"./send-NbU9-scF2.js";import"./pi-model-discovery-DnJkNRc-.js";import"./exec-approvals-allowlist-B-Yf6RsU.js";import"./exec-safe-bin-runtime-policy-CRPHdPbF.js";import"./ir-CNTx85qV.js";import"./render-D8OWO2hT.js";import"./target-errors-CoEHv_2r.js";import"./read-only-account-inspect-B0cm8yrv.js";import"./channel-selection-si1OzWyQ.js";import"./plugin-auto-enable-CTgkkJK7.js";import"./send-DmHpf5Fz.js";import"./outbound-attachment-9-8VNvRG.js";import"./delivery-queue-CKbauSFq.js";import"./send-AQ3CJLpI.js";import"./channel-activity-Dw6F-ehJ.js";import"./tables-fl9iXahm.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-DlHVddAk.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-B8RdfK2y.js";import"./restart-BeJuoXCx.js";import"./runtime-web-tools-C4F6aaRh.js";import"./command-secret-targets-CfXtLkLF.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-smZlFWxD.js";import"./onboard-helpers-D90u4wVK.js";import"./prompt-style-CXKekIBY.js";import"./pairing-labels-PIuZfthz.js";import"./memory-cli-BouV_wyL.js";import"./query-expansion-0OxEb1Io.js";import"./manager-CI6O4QH6.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-8nRBsfID.js";import"./system-run-command-E8ymBXHh.js";import"./runtime-DYttInEE.js";import"./stagger-DmFYysrJ.js";export{e as compactEmbeddedPiSessionDirect};
1
+ import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-BLbnMb5E.js";import{_ as e}from"./reply-mWIMy_ju.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BwjMhAUa.js";import"./image-BP1cfEh1.js";import"./models-config-BlQ39qlq.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-7BAwnP4a.js";import"./api-key-rotation-Rz2ESQSA.js";import"./local-roots-aA-4ohTq.js";import"./model-catalog-D-hkNWin.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DUNkj4hy.js";import"./commands-CGpM84iR.js";import"./commands-registry-DlvNUkXz.js";import"./pairing-store-EmfFQVcs.js";import"./fetch-Dikjvc5M.js";import"./call-JB-cGR9n.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-BEZszppF.js";import"./send-NbU9-scF2.js";import"./pi-model-discovery-DnJkNRc-.js";import"./exec-approvals-allowlist-B-Yf6RsU.js";import"./exec-safe-bin-runtime-policy-CRPHdPbF.js";import"./ir-CNTx85qV.js";import"./render-D8OWO2hT.js";import"./target-errors-CoEHv_2r.js";import"./read-only-account-inspect-B0cm8yrv.js";import"./channel-selection-si1OzWyQ.js";import"./plugin-auto-enable-CTgkkJK7.js";import"./send-DmHpf5Fz.js";import"./outbound-attachment-9-8VNvRG.js";import"./delivery-queue-CKbauSFq.js";import"./send-AQ3CJLpI.js";import"./channel-activity-Dw6F-ehJ.js";import"./tables-fl9iXahm.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-DlHVddAk.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-B8RdfK2y.js";import"./restart-BeJuoXCx.js";import"./runtime-web-tools-C4F6aaRh.js";import"./command-secret-targets-CfXtLkLF.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-smZlFWxD.js";import"./onboard-helpers-D90u4wVK.js";import"./prompt-style-CXKekIBY.js";import"./pairing-labels-PIuZfthz.js";import"./memory-cli-BouV_wyL.js";import"./query-expansion-0OxEb1Io.js";import"./manager-CI6O4QH6.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-8nRBsfID.js";import"./system-run-command-E8ymBXHh.js";import"./runtime-DYttInEE.js";import"./stagger-DmFYysrJ.js";export{e as compactEmbeddedPiSessionDirect};
@@ -1 +1 @@
1
- import"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-C8rZRS0X.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import{t as e}from"./compact-CYbPi7_-.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-SqSusZP3.js";import"./diagnostic-D1H7_8QG.js";import"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import"./audio-transcription-runner-BIKj1CBU.js";import"./fetch-guard-DaZmvp-L.js";import"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import"./target-errors-D6wejRd6.js";import"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import"./call-BWx7hNtl.js";import"./pi-tools.policy-B6q8YOfg.js";import"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import"./skill-commands-DCqPy_Aa.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import"./channel-activity-BhiLsKvM.js";import"./tables-DENKrP-W.js";import"./kill-tree-D6nPx1_o.js";import"./runtime-web-tools-BYhCkBV8.js";import"./runtime-CK7gqwEF.js";import"./node-shell-BVZylVP6.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-BPxE8JR7.js";import"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import"./onboard-helpers-DOlI17Ac.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import"./search-manager-CV2YsAym.js";import"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";export{e as compactEmbeddedPiSessionDirect};
1
+ import"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-C8rZRS0X.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import{t as e}from"./compact-uyQDx8pN.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-SqSusZP3.js";import"./diagnostic-D1H7_8QG.js";import"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import"./audio-transcription-runner-BIKj1CBU.js";import"./fetch-guard-DaZmvp-L.js";import"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import"./target-errors-D6wejRd6.js";import"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import"./call-BWx7hNtl.js";import"./pi-tools.policy-B6q8YOfg.js";import"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import"./skill-commands-DCqPy_Aa.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import"./channel-activity-BhiLsKvM.js";import"./tables-DENKrP-W.js";import"./kill-tree-D6nPx1_o.js";import"./runtime-web-tools-BYhCkBV8.js";import"./runtime-CK7gqwEF.js";import"./node-shell-BVZylVP6.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-BPxE8JR7.js";import"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import"./onboard-helpers-DOlI17Ac.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import"./search-manager-CV2YsAym.js";import"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";export{e as compactEmbeddedPiSessionDirect};
@@ -1 +1 @@
1
- import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-selection-DvekK9rZ.js";import{n as e}from"./pi-embedded-6yGEd2xd.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DiHS8tKf.js";import"./send-BjrfjBn9.js";import"./tokens-B2fq-rL6.js";import"./deliver-AM3FP5rj.js";import"./diagnostic-DtuQPRbp.js";import"./send-C4Lm4nmt.js";import"./pi-model-discovery-DVKXkQTR.js";import"./image-CcsuUB1B.js";import"./audio-transcription-runner-CQ7rq0d_.js";import"./fetch-D5wrJ0AX.js";import"./fetch-guard-oWKGrwV4.js";import"./api-key-rotation-BLt5E2Cw.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-B7mdG27k.js";import"./render-BXEUPIHe.js";import"./target-errors-sMFXKeAY.js";import"./commands-registry-gvMK7Pw9.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CPZcaV8-.js";import"./channel-activity-DmgWmSAG.js";import"./tables-D6J-isob.js";import"./send-CWVTcDAW.js";import"./outbound-attachment-Bah4dvuM.js";import"./send-swTiQAeK2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-iFi--Fru.js";export{e as compactEmbeddedPiSessionDirect};
1
+ import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-selection-DvekK9rZ.js";import{n as e}from"./pi-embedded-DLlQ5e_w.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DiHS8tKf.js";import"./send-BjrfjBn9.js";import"./tokens-B2fq-rL6.js";import"./deliver-AM3FP5rj.js";import"./diagnostic-DtuQPRbp.js";import"./send-C4Lm4nmt.js";import"./pi-model-discovery-DVKXkQTR.js";import"./image-CcsuUB1B.js";import"./audio-transcription-runner-CQ7rq0d_.js";import"./fetch-D5wrJ0AX.js";import"./fetch-guard-oWKGrwV4.js";import"./api-key-rotation-BLt5E2Cw.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-B7mdG27k.js";import"./render-BXEUPIHe.js";import"./target-errors-sMFXKeAY.js";import"./commands-registry-gvMK7Pw9.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CPZcaV8-.js";import"./channel-activity-DmgWmSAG.js";import"./tables-D6J-isob.js";import"./send-CWVTcDAW.js";import"./outbound-attachment-Bah4dvuM.js";import"./send-swTiQAeK2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-iFi--Fru.js";export{e as compactEmbeddedPiSessionDirect};
@@ -1 +1 @@
1
- import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import"./model-selection-D7mdJmGK.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import"./logger-5W0OocJW.js";import"./send-4h1tQwX3.js";import"./send-CciNyaWL.js";import{n as e}from"./pi-embedded-X_Svd4Wi.js";import"./tokens-CL2fSjGl.js";import"./deliver-BhWhLvQO.js";import"./diagnostic-VBPCgF9l.js";import"./send--9G8eXo4.js";import"./pi-model-discovery-BonZ1N3x.js";import"./image-BBO-0uLG.js";import"./audio-transcription-runner-9H9eUZ1D.js";import"./fetch-DBat25iG.js";import"./fetch-guard-DvaNcypz.js";import"./api-key-rotation-DayEfYpa.js";import"./proxy-fetch-BZ9O8Dvj.js";import"./ir-BTfsA9Dd.js";import"./render-CBsnn-2A.js";import"./target-errors-Dnkqss9y.js";import"./commands-registry-C5Hg7gyk.js";import"./fetch-_g8lZ8K8.js";import"./skill-commands-CtprBvm0.js";import"./channel-activity-htoVXTET.js";import"./tables-_t5V36m9.js";import"./send-hlES-kRl2.js";import"./outbound-attachment-E89zumcH.js";import"./send-7qgAI0ap.js";import"./fetch-BJT3BrkJ.js";import"./query-expansion-BUUx_oWg.js";import"./manager-CN_rQm1L.js";export{e as compactEmbeddedPiSessionDirect};
1
+ import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import"./model-selection-D7mdJmGK.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import"./logger-5W0OocJW.js";import"./send-4h1tQwX3.js";import"./send-CciNyaWL.js";import{n as e}from"./pi-embedded-CoHiJa9Q.js";import"./tokens-CL2fSjGl.js";import"./deliver-BhWhLvQO.js";import"./diagnostic-VBPCgF9l.js";import"./send--9G8eXo4.js";import"./pi-model-discovery-BonZ1N3x.js";import"./image-BBO-0uLG.js";import"./audio-transcription-runner-9H9eUZ1D.js";import"./fetch-DBat25iG.js";import"./fetch-guard-DvaNcypz.js";import"./api-key-rotation-DayEfYpa.js";import"./proxy-fetch-BZ9O8Dvj.js";import"./ir-BTfsA9Dd.js";import"./render-CBsnn-2A.js";import"./target-errors-Dnkqss9y.js";import"./commands-registry-C5Hg7gyk.js";import"./fetch-_g8lZ8K8.js";import"./skill-commands-CtprBvm0.js";import"./channel-activity-htoVXTET.js";import"./tables-_t5V36m9.js";import"./send-hlES-kRl2.js";import"./outbound-attachment-E89zumcH.js";import"./send-7qgAI0ap.js";import"./fetch-BJT3BrkJ.js";import"./query-expansion-BUUx_oWg.js";import"./manager-CN_rQm1L.js";export{e as compactEmbeddedPiSessionDirect};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{g as t}from"./paths-B4IRk3wi.js";import{A as n,i as r}from"./subsystem-C5XF2Fy5.js";import{h as i}from"./utils-UGOV_184.js";import{t as a}from"./links-CySwdMcF.js";import{a as o,c as s,l as c,r as l,t as u}from"./program-context-n-ovYq69.js";import d from"node:os";import f from"node:path";import p from"node:fs/promises";import{Option as m}from"commander";function h(e){return e.replace(/'/g,`'\\''`)}function g(e){let t=e.split(/[ ,|]+/);return{long:t.find(e=>e.startsWith(`--`))?.replace(/^--/,``),short:t.find(e=>e.startsWith(`-`)&&!e.startsWith(`--`))?.replace(/^-/,``)}}function _(e){let t=h(e.description);return`complete -c ${e.rootCmd} -n "${e.condition}" -a "${e.name}" -d '${t}'\n`}function v(e){let{short:t,long:n}=g(e.flags),r=h(e.description),i=`complete -c ${e.rootCmd} -n "${e.condition}"`;return t&&(i+=` -s ${t}`),n&&(i+=` -l ${n}`),i+=` -d '${r}'\n`,i}var y=e({completionCacheExists:()=>E,installCompletion:()=>R,isCompletionInstalled:()=>F,registerCompletionCli:()=>L,resolveCompletionCachePath:()=>T,resolveShellFromEnv:()=>S,usesSlowDynamicCompletion:()=>I});const b=[`zsh`,`bash`,`powershell`,`fish`];function x(e){return b.includes(e)}function S(e=process.env){let t=e.SHELL?.trim()??``,n=t?f.basename(t).toLowerCase():``;return n===`zsh`?`zsh`:n===`bash`?`bash`:n===`fish`?`fish`:n===`pwsh`||n===`powershell`?`powershell`:`zsh`}function C(e){let t=e.trim();return t?t.replace(/[^a-zA-Z0-9._-]/g,`-`):`openclaw`}function w(e=process.env){let n=t(e,d.homedir);return f.join(n,`completions`)}function T(e,t){let n=C(t),r=e===`powershell`?`ps1`:e===`fish`?`fish`:e===`bash`?`bash`:`zsh`;return f.join(w(),`${n}.${r}`)}async function E(e,t=`openclaw`){return i(T(e,t))}function D(e,t){return e===`zsh`?z(t):e===`bash`?U(t):e===`powershell`?G(t):K(t)}async function O(e){let t=w();await p.mkdir(t,{recursive:!0});for(let t of e.shells){let n=D(t,e.program),r=T(t,e.binName);await p.writeFile(r,n,`utf-8`)}}function k(e,t,n){return`source "${n}"`}function A(e){return e.trim()===`# OpenClaw Completion`}function j(e,t,n){return!!(e.includes(`${t} completion`)||n&&e.includes(n))}function M(e,t){return e.includes(`<(${t} completion`)||e.includes(`${t} completion`)&&e.includes(`| source`)}function N(e,t,n,r){let i=e.split(`
1
+ import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{g as t}from"./paths-B4IRk3wi.js";import{A as n,i as r}from"./subsystem-C5XF2Fy5.js";import{h as i}from"./utils-UGOV_184.js";import{t as a}from"./links-CySwdMcF.js";import{a as o,c as s,l as c,r as l,t as u}from"./program-context-C4vPkfWW.js";import d from"node:os";import f from"node:path";import p from"node:fs/promises";import{Option as m}from"commander";function h(e){return e.replace(/'/g,`'\\''`)}function g(e){let t=e.split(/[ ,|]+/);return{long:t.find(e=>e.startsWith(`--`))?.replace(/^--/,``),short:t.find(e=>e.startsWith(`-`)&&!e.startsWith(`--`))?.replace(/^-/,``)}}function _(e){let t=h(e.description);return`complete -c ${e.rootCmd} -n "${e.condition}" -a "${e.name}" -d '${t}'\n`}function v(e){let{short:t,long:n}=g(e.flags),r=h(e.description),i=`complete -c ${e.rootCmd} -n "${e.condition}"`;return t&&(i+=` -s ${t}`),n&&(i+=` -l ${n}`),i+=` -d '${r}'\n`,i}var y=e({completionCacheExists:()=>E,installCompletion:()=>R,isCompletionInstalled:()=>F,registerCompletionCli:()=>L,resolveCompletionCachePath:()=>T,resolveShellFromEnv:()=>S,usesSlowDynamicCompletion:()=>I});const b=[`zsh`,`bash`,`powershell`,`fish`];function x(e){return b.includes(e)}function S(e=process.env){let t=e.SHELL?.trim()??``,n=t?f.basename(t).toLowerCase():``;return n===`zsh`?`zsh`:n===`bash`?`bash`:n===`fish`?`fish`:n===`pwsh`||n===`powershell`?`powershell`:`zsh`}function C(e){let t=e.trim();return t?t.replace(/[^a-zA-Z0-9._-]/g,`-`):`openclaw`}function w(e=process.env){let n=t(e,d.homedir);return f.join(n,`completions`)}function T(e,t){let n=C(t),r=e===`powershell`?`ps1`:e===`fish`?`fish`:e===`bash`?`bash`:`zsh`;return f.join(w(),`${n}.${r}`)}async function E(e,t=`openclaw`){return i(T(e,t))}function D(e,t){return e===`zsh`?z(t):e===`bash`?U(t):e===`powershell`?G(t):K(t)}async function O(e){let t=w();await p.mkdir(t,{recursive:!0});for(let t of e.shells){let n=D(t,e.program),r=T(t,e.binName);await p.writeFile(r,n,`utf-8`)}}function k(e,t,n){return`source "${n}"`}function A(e){return e.trim()===`# OpenClaw Completion`}function j(e,t,n){return!!(e.includes(`${t} completion`)||n&&e.includes(n))}function M(e,t){return e.includes(`<(${t} completion`)||e.includes(`${t} completion`)&&e.includes(`| source`)}function N(e,t,n,r){let i=e.split(`
2
2
  `),a=[],o=!1;for(let e=0;e<i.length;e+=1){let r=i[e]??``;if(A(r)){o=!0,e+=1;continue}if(j(r,t,n)){o=!0;continue}a.push(r)}let s=a.join(`
3
3
  `).trimEnd(),c=`# OpenClaw Completion\n${r}`,l=s?`${s}\n\n${c}\n`:`${c}\n`;return{next:l,changed:l!==e,hadExisting:o}}function P(e){let t=process.env.HOME||d.homedir();return e===`zsh`?f.join(t,`.zshrc`):e===`bash`?f.join(t,`.bashrc`):e===`fish`?f.join(t,`.config`,`fish`,`config.fish`):process.platform===`win32`?f.join(process.env.USERPROFILE||t,`Documents`,`PowerShell`,`Microsoft.PowerShell_profile.ps1`):f.join(t,`.config`,`powershell`,`Microsoft.PowerShell_profile.ps1`)}async function F(e,t=`openclaw`){let n=P(e);if(!await i(n))return!1;let r=T(e,t),a=await i(r)?r:null;return(await p.readFile(n,`utf-8`)).split(`
4
4
  `).some(e=>A(e)||j(e,t,a))}async function I(e,t=`openclaw`){let n=P(e);if(!await i(n))return!1;let r=T(e,t),a=(await p.readFile(n,`utf-8`)).split(`
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{A as t,i as n}from"./subsystem-BLbY429l.js";import{g as r}from"./paths-BjD3T_xq.js";import{m as i}from"./utils-CGdo13HV.js";import{t as a}from"./links-CBnmRP9D.js";import{n as o,r as s}from"./register.subclis-Drp2dGBe.js";import{i as c,n as l}from"./command-registry-D_jtBegA.js";import{t as u}from"./program-context-CH9p6anW.js";import d from"node:os";import f from"node:path";import p from"node:fs/promises";import{Option as m}from"commander";function h(e){return e.replace(/'/g,`'\\''`)}function g(e){let t=e.split(/[ ,|]+/);return{long:t.find(e=>e.startsWith(`--`))?.replace(/^--/,``),short:t.find(e=>e.startsWith(`-`)&&!e.startsWith(`--`))?.replace(/^-/,``)}}function _(e){let t=h(e.description);return`complete -c ${e.rootCmd} -n "${e.condition}" -a "${e.name}" -d '${t}'\n`}function v(e){let{short:t,long:n}=g(e.flags),r=h(e.description),i=`complete -c ${e.rootCmd} -n "${e.condition}"`;return t&&(i+=` -s ${t}`),n&&(i+=` -l ${n}`),i+=` -d '${r}'\n`,i}var y=e({completionCacheExists:()=>E,installCompletion:()=>R,isCompletionInstalled:()=>F,registerCompletionCli:()=>L,resolveCompletionCachePath:()=>T,resolveShellFromEnv:()=>S,usesSlowDynamicCompletion:()=>I});const b=[`zsh`,`bash`,`powershell`,`fish`];function x(e){return b.includes(e)}function S(e=process.env){let t=e.SHELL?.trim()??``,n=t?f.basename(t).toLowerCase():``;return n===`zsh`?`zsh`:n===`bash`?`bash`:n===`fish`?`fish`:n===`pwsh`||n===`powershell`?`powershell`:`zsh`}function C(e){let t=e.trim();return t?t.replace(/[^a-zA-Z0-9._-]/g,`-`):`openclaw`}function w(e=process.env){let t=r(e,d.homedir);return f.join(t,`completions`)}function T(e,t){let n=C(t),r=e===`powershell`?`ps1`:e===`fish`?`fish`:e===`bash`?`bash`:`zsh`;return f.join(w(),`${n}.${r}`)}async function E(e,t=`openclaw`){return i(T(e,t))}function D(e,t){return e===`zsh`?z(t):e===`bash`?U(t):e===`powershell`?G(t):K(t)}async function O(e){let t=w();await p.mkdir(t,{recursive:!0});for(let t of e.shells){let n=D(t,e.program),r=T(t,e.binName);await p.writeFile(r,n,`utf-8`)}}function k(e,t,n){return`source "${n}"`}function A(e){return e.trim()===`# OpenClaw Completion`}function j(e,t,n){return!!(e.includes(`${t} completion`)||n&&e.includes(n))}function M(e,t){return e.includes(`<(${t} completion`)||e.includes(`${t} completion`)&&e.includes(`| source`)}function N(e,t,n,r){let i=e.split(`
1
+ import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{A as t,i as n}from"./subsystem-BLbY429l.js";import{g as r}from"./paths-BjD3T_xq.js";import{m as i}from"./utils-CGdo13HV.js";import{t as a}from"./links-CBnmRP9D.js";import{n as o,r as s}from"./register.subclis-CqVDIyhT.js";import{i as c,n as l}from"./command-registry-DtMCIKRu.js";import{t as u}from"./program-context-CH9p6anW.js";import d from"node:os";import f from"node:path";import p from"node:fs/promises";import{Option as m}from"commander";function h(e){return e.replace(/'/g,`'\\''`)}function g(e){let t=e.split(/[ ,|]+/);return{long:t.find(e=>e.startsWith(`--`))?.replace(/^--/,``),short:t.find(e=>e.startsWith(`-`)&&!e.startsWith(`--`))?.replace(/^-/,``)}}function _(e){let t=h(e.description);return`complete -c ${e.rootCmd} -n "${e.condition}" -a "${e.name}" -d '${t}'\n`}function v(e){let{short:t,long:n}=g(e.flags),r=h(e.description),i=`complete -c ${e.rootCmd} -n "${e.condition}"`;return t&&(i+=` -s ${t}`),n&&(i+=` -l ${n}`),i+=` -d '${r}'\n`,i}var y=e({completionCacheExists:()=>E,installCompletion:()=>R,isCompletionInstalled:()=>F,registerCompletionCli:()=>L,resolveCompletionCachePath:()=>T,resolveShellFromEnv:()=>S,usesSlowDynamicCompletion:()=>I});const b=[`zsh`,`bash`,`powershell`,`fish`];function x(e){return b.includes(e)}function S(e=process.env){let t=e.SHELL?.trim()??``,n=t?f.basename(t).toLowerCase():``;return n===`zsh`?`zsh`:n===`bash`?`bash`:n===`fish`?`fish`:n===`pwsh`||n===`powershell`?`powershell`:`zsh`}function C(e){let t=e.trim();return t?t.replace(/[^a-zA-Z0-9._-]/g,`-`):`openclaw`}function w(e=process.env){let t=r(e,d.homedir);return f.join(t,`completions`)}function T(e,t){let n=C(t),r=e===`powershell`?`ps1`:e===`fish`?`fish`:e===`bash`?`bash`:`zsh`;return f.join(w(),`${n}.${r}`)}async function E(e,t=`openclaw`){return i(T(e,t))}function D(e,t){return e===`zsh`?z(t):e===`bash`?U(t):e===`powershell`?G(t):K(t)}async function O(e){let t=w();await p.mkdir(t,{recursive:!0});for(let t of e.shells){let n=D(t,e.program),r=T(t,e.binName);await p.writeFile(r,n,`utf-8`)}}function k(e,t,n){return`source "${n}"`}function A(e){return e.trim()===`# OpenClaw Completion`}function j(e,t,n){return!!(e.includes(`${t} completion`)||n&&e.includes(n))}function M(e,t){return e.includes(`<(${t} completion`)||e.includes(`${t} completion`)&&e.includes(`| source`)}function N(e,t,n,r){let i=e.split(`
2
2
  `),a=[],o=!1;for(let e=0;e<i.length;e+=1){let r=i[e]??``;if(A(r)){o=!0,e+=1;continue}if(j(r,t,n)){o=!0;continue}a.push(r)}let s=a.join(`
3
3
  `).trimEnd(),c=`# OpenClaw Completion\n${r}`,l=s?`${s}\n\n${c}\n`:`${c}\n`;return{next:l,changed:l!==e,hadExisting:o}}function P(e){let t=process.env.HOME||d.homedir();return e===`zsh`?f.join(t,`.zshrc`):e===`bash`?f.join(t,`.bashrc`):e===`fish`?f.join(t,`.config`,`fish`,`config.fish`):process.platform===`win32`?f.join(process.env.USERPROFILE||t,`Documents`,`PowerShell`,`Microsoft.PowerShell_profile.ps1`):f.join(t,`.config`,`powershell`,`Microsoft.PowerShell_profile.ps1`)}async function F(e,t=`openclaw`){let n=P(e);if(!await i(n))return!1;let r=T(e,t),a=await i(r)?r:null;return(await p.readFile(n,`utf-8`)).split(`
4
4
  `).some(e=>A(e)||j(e,t,a))}async function I(e,t=`openclaw`){let n=P(e);if(!await i(n))return!1;let r=T(e,t),a=(await p.readFile(n,`utf-8`)).split(`
@@ -1 +1 @@
1
- import{A as e,E as t,p as n,v as r,y as i}from"./subsystem-BLbY429l.js";import{t as a}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Bo as o,Fo as s}from"./auth-profiles-C8rZRS0X.js";import{t as c}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import{y as l}from"./session-key-C7F_iqYg.js";import{x as u}from"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import{t as d}from"./links-CBnmRP9D.js";import{n as f,r as p}from"./issue-format-CN9PHzXY.js";import m from"json5";const h=[`models`,`providers`,`ollama`,`apiKey`],g=[`models`,`providers`,`ollama`];function _(e){return/^[0-9]+$/.test(e)}function v(e){let t=e.trim();if(!t)return[];let n=[],r=``,i=0;for(;i<t.length;){let a=t[i];if(a===`\\`){let e=t[i+1];e&&(r+=e),i+=2;continue}if(a===`.`){r&&n.push(r),r=``,i+=1;continue}if(a===`[`){r&&n.push(r),r=``;let a=t.indexOf(`]`,i);if(a===-1)throw Error(`Invalid path (missing "]"): ${e}`);let o=t.slice(i+1,a).trim();if(!o)throw Error(`Invalid path (empty "[]"): ${e}`);n.push(o),i=a+1;continue}r+=a,i+=1}return r&&n.push(r),n.map(e=>e.trim()).filter(Boolean)}function y(e,t){let n=e.trim();if(t.strictJson)try{return m.parse(n)}catch(e){throw Error(`Failed to parse JSON5 value: ${String(e)}`,{cause:e})}try{return m.parse(n)}catch{return e}}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return`Run \`${c(`openclaw doctor`)}\` ${e}`}function S(e){for(let t of e)if(!_(t)&&l(t))throw Error(`Invalid path segment: ${t}`)}function C(e,t){let n=e;for(let e of t){if(!n||typeof n!=`object`)return{found:!1};if(Array.isArray(n)){if(!_(e))return{found:!1};let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}let t=n;if(!b(t,e))return{found:!1};n=t[e]}return{found:!0,value:n}}function w(e,t,n){let r=e;for(let e=0;e<t.length-1;e+=1){let n=t[e],i=t[e+1],a=!!(i&&_(i));if(Array.isArray(r)){if(!_(n))throw Error(`Expected numeric index for array segment "${n}"`);let e=Number.parseInt(n,10),t=r[e];(!t||typeof t!=`object`)&&(r[e]=a?[]:{}),r=r[e];continue}if(!r||typeof r!=`object`)throw Error(`Cannot traverse into "${n}" (not an object)`);let o=r,s=b(o,n)?o[n]:void 0;(!s||typeof s!=`object`)&&(o[n]=a?[]:{}),r=o[n]}let i=t[t.length-1];if(Array.isArray(r)){if(!_(i))throw Error(`Expected numeric index for array segment "${i}"`);let e=Number.parseInt(i,10);r[e]=n;return}if(!r||typeof r!=`object`)throw Error(`Cannot set "${i}" (parent is not an object)`);r[i]=n}function T(e,t){let n=e;for(let e=0;e<t.length-1;e+=1){let r=t[e];if(!n||typeof n!=`object`)return!1;if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);if(!Number.isFinite(e)||e<0||e>=n.length)return!1;n=n[e];continue}let i=n;if(!b(i,r))return!1;n=i[r]}let r=t[t.length-1];if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);return!Number.isFinite(e)||e<0||e>=n.length?!1:(n.splice(e,1),!0)}if(!n||typeof n!=`object`)return!1;let i=n;return b(i,r)?(delete i[r],!0):!1}async function E(e=n){let t=await s();if(t.valid)return t;e.error(`Config invalid at ${u(t.path)}.`);for(let n of f(t.issues,`-`,{normalizeRoot:!0}))e.error(n);return e.error(x(`to repair, then retry.`)),e.exit(1),t}function D(e){let t=v(e);if(t.length===0)throw Error(`Path is empty.`);return S(t),t}function O(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function k(e,t){O(t,h)&&(C(e,g).found||w(e,g,{baseUrl:`http://127.0.0.1:11434`,api:`ollama`,models:[]}))}async function A(e){let t=e.runtime??n;try{let n=D(e.path),i=(await E(t)).config,a=C(i,n);if(!a.found){t.error(r(`Config path not found: ${e.path}`)),t.exit(1);return}if(e.json){t.log(JSON.stringify(a.value??null,null,2));return}if(typeof a.value==`string`||typeof a.value==`number`||typeof a.value==`boolean`){t.log(String(a.value));return}t.log(JSON.stringify(a.value??null,null,2))}catch(e){t.error(r(String(e))),t.exit(1)}}async function j(e){let t=e.runtime??n;try{let n=D(e.path),a=await E(t),s=structuredClone(a.resolved);if(!T(s,n)){t.error(r(`Config path not found: ${e.path}`)),t.exit(1);return}await o(s,{unsetPaths:[n]}),t.log(i(`Removed ${e.path}. Restart the gateway to apply.`))}catch(e){t.error(r(String(e))),t.exit(1)}}async function M(e){let t=e.runtime??n;try{let e=await s();t.log(u(e.path))}catch(e){t.error(r(String(e))),t.exit(1)}}async function N(e={}){let i=e.runtime??n,o=a??`openclaw.json`;try{let n=await s();o=n.path;let a=u(o);if(!n.exists){e.json?i.log(JSON.stringify({valid:!1,path:o,error:`file not found`})):i.error(r(`Config file not found: ${a}`)),i.exit(1);return}if(!n.valid){let t=p(n.issues);if(e.json)i.log(JSON.stringify({valid:!1,path:o,issues:t},null,2));else{i.error(r(`Config invalid at ${a}:`));for(let e of f(t,r(`×`),{normalizeRoot:!0}))i.error(` ${e}`);i.error(``),i.error(x(`to repair, or fix the keys above manually.`))}i.exit(1);return}e.json?i.log(JSON.stringify({valid:!0,path:o})):i.log(t(`Config valid: ${a}`))}catch(t){e.json?i.log(JSON.stringify({valid:!1,path:o,error:String(t)})):i.error(r(`Config validation error: ${String(t)}`)),i.exit(1)}}function P(t){let a=t.command(`config`).description(`Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${d(`/cli/config`,`docs.openclaw.ai/cli/config`)}\n`).option(`--section <section>`,`Configure wizard sections (repeatable). Use with no subcommand.`,(e,t)=>[...t,e],[]).action(async e=>{let{configureCommandFromSectionsArg:t}=await import(`./configure-DFlnM_zh.js`);await t(e.section,n)});a.command(`get`).description(`Get a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).option(`--json`,`Output JSON`,!1).action(async(e,t)=>{await A({path:e,json:!!t.json})}),a.command(`set`).description(`Set a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).argument(`<value>`,`Value (JSON5 or raw string)`).option(`--strict-json`,`Strict JSON5 parsing (error instead of raw string fallback)`,!1).option(`--json`,`Legacy alias for --strict-json`,!1).action(async(e,t,a)=>{try{let r=D(e),s=y(t,{strictJson:!!(a.strictJson||a.json)}),c=await E(),l=structuredClone(c.resolved);k(l,r),w(l,r,s),await o(l),n.log(i(`Updated ${e}. Restart the gateway to apply.`))}catch(e){n.error(r(String(e))),n.exit(1)}}),a.command(`unset`).description(`Remove a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).action(async e=>{await j({path:e})}),a.command(`file`).description(`Print the active config file path`).action(async()=>{await M({})}),a.command(`validate`).description(`Validate the current config against the schema without starting the gateway`).option(`--json`,`Output validation result as JSON`,!1).action(async e=>{await N({json:!!e.json})})}export{P as registerConfigCli,A as runConfigGet,j as runConfigUnset};
1
+ import{A as e,E as t,p as n,v as r,y as i}from"./subsystem-BLbY429l.js";import{t as a}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Bo as o,Fo as s}from"./auth-profiles-C8rZRS0X.js";import{t as c}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import{y as l}from"./session-key-C7F_iqYg.js";import{x as u}from"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import{t as d}from"./links-CBnmRP9D.js";import{n as f,r as p}from"./issue-format-CN9PHzXY.js";import m from"json5";const h=[`models`,`providers`,`ollama`,`apiKey`],g=[`models`,`providers`,`ollama`];function _(e){return/^[0-9]+$/.test(e)}function v(e){let t=e.trim();if(!t)return[];let n=[],r=``,i=0;for(;i<t.length;){let a=t[i];if(a===`\\`){let e=t[i+1];e&&(r+=e),i+=2;continue}if(a===`.`){r&&n.push(r),r=``,i+=1;continue}if(a===`[`){r&&n.push(r),r=``;let a=t.indexOf(`]`,i);if(a===-1)throw Error(`Invalid path (missing "]"): ${e}`);let o=t.slice(i+1,a).trim();if(!o)throw Error(`Invalid path (empty "[]"): ${e}`);n.push(o),i=a+1;continue}r+=a,i+=1}return r&&n.push(r),n.map(e=>e.trim()).filter(Boolean)}function y(e,t){let n=e.trim();if(t.strictJson)try{return m.parse(n)}catch(e){throw Error(`Failed to parse JSON5 value: ${String(e)}`,{cause:e})}try{return m.parse(n)}catch{return e}}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return`Run \`${c(`openclaw doctor`)}\` ${e}`}function S(e){for(let t of e)if(!_(t)&&l(t))throw Error(`Invalid path segment: ${t}`)}function C(e,t){let n=e;for(let e of t){if(!n||typeof n!=`object`)return{found:!1};if(Array.isArray(n)){if(!_(e))return{found:!1};let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}let t=n;if(!b(t,e))return{found:!1};n=t[e]}return{found:!0,value:n}}function w(e,t,n){let r=e;for(let e=0;e<t.length-1;e+=1){let n=t[e],i=t[e+1],a=!!(i&&_(i));if(Array.isArray(r)){if(!_(n))throw Error(`Expected numeric index for array segment "${n}"`);let e=Number.parseInt(n,10),t=r[e];(!t||typeof t!=`object`)&&(r[e]=a?[]:{}),r=r[e];continue}if(!r||typeof r!=`object`)throw Error(`Cannot traverse into "${n}" (not an object)`);let o=r,s=b(o,n)?o[n]:void 0;(!s||typeof s!=`object`)&&(o[n]=a?[]:{}),r=o[n]}let i=t[t.length-1];if(Array.isArray(r)){if(!_(i))throw Error(`Expected numeric index for array segment "${i}"`);let e=Number.parseInt(i,10);r[e]=n;return}if(!r||typeof r!=`object`)throw Error(`Cannot set "${i}" (parent is not an object)`);r[i]=n}function T(e,t){let n=e;for(let e=0;e<t.length-1;e+=1){let r=t[e];if(!n||typeof n!=`object`)return!1;if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);if(!Number.isFinite(e)||e<0||e>=n.length)return!1;n=n[e];continue}let i=n;if(!b(i,r))return!1;n=i[r]}let r=t[t.length-1];if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);return!Number.isFinite(e)||e<0||e>=n.length?!1:(n.splice(e,1),!0)}if(!n||typeof n!=`object`)return!1;let i=n;return b(i,r)?(delete i[r],!0):!1}async function E(e=n){let t=await s();if(t.valid)return t;e.error(`Config invalid at ${u(t.path)}.`);for(let n of f(t.issues,`-`,{normalizeRoot:!0}))e.error(n);return e.error(x(`to repair, then retry.`)),e.exit(1),t}function D(e){let t=v(e);if(t.length===0)throw Error(`Path is empty.`);return S(t),t}function O(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function k(e,t){O(t,h)&&(C(e,g).found||w(e,g,{baseUrl:`http://127.0.0.1:11434`,api:`ollama`,models:[]}))}async function A(e){let t=e.runtime??n;try{let n=D(e.path),i=(await E(t)).config,a=C(i,n);if(!a.found){t.error(r(`Config path not found: ${e.path}`)),t.exit(1);return}if(e.json){t.log(JSON.stringify(a.value??null,null,2));return}if(typeof a.value==`string`||typeof a.value==`number`||typeof a.value==`boolean`){t.log(String(a.value));return}t.log(JSON.stringify(a.value??null,null,2))}catch(e){t.error(r(String(e))),t.exit(1)}}async function j(e){let t=e.runtime??n;try{let n=D(e.path),a=await E(t),s=structuredClone(a.resolved);if(!T(s,n)){t.error(r(`Config path not found: ${e.path}`)),t.exit(1);return}await o(s,{unsetPaths:[n]}),t.log(i(`Removed ${e.path}. Restart the gateway to apply.`))}catch(e){t.error(r(String(e))),t.exit(1)}}async function M(e){let t=e.runtime??n;try{let e=await s();t.log(u(e.path))}catch(e){t.error(r(String(e))),t.exit(1)}}async function N(e={}){let i=e.runtime??n,o=a??`openclaw.json`;try{let n=await s();o=n.path;let a=u(o);if(!n.exists){e.json?i.log(JSON.stringify({valid:!1,path:o,error:`file not found`})):i.error(r(`Config file not found: ${a}`)),i.exit(1);return}if(!n.valid){let t=p(n.issues);if(e.json)i.log(JSON.stringify({valid:!1,path:o,issues:t},null,2));else{i.error(r(`Config invalid at ${a}:`));for(let e of f(t,r(`×`),{normalizeRoot:!0}))i.error(` ${e}`);i.error(``),i.error(x(`to repair, or fix the keys above manually.`))}i.exit(1);return}e.json?i.log(JSON.stringify({valid:!0,path:o})):i.log(t(`Config valid: ${a}`))}catch(t){e.json?i.log(JSON.stringify({valid:!1,path:o,error:String(t)})):i.error(r(`Config validation error: ${String(t)}`)),i.exit(1)}}function P(t){let a=t.command(`config`).description(`Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${d(`/cli/config`,`docs.openclaw.ai/cli/config`)}\n`).option(`--section <section>`,`Configure wizard sections (repeatable). Use with no subcommand.`,(e,t)=>[...t,e],[]).action(async e=>{let{configureCommandFromSectionsArg:t}=await import(`./configure-CF42Va3r.js`);await t(e.section,n)});a.command(`get`).description(`Get a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).option(`--json`,`Output JSON`,!1).action(async(e,t)=>{await A({path:e,json:!!t.json})}),a.command(`set`).description(`Set a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).argument(`<value>`,`Value (JSON5 or raw string)`).option(`--strict-json`,`Strict JSON5 parsing (error instead of raw string fallback)`,!1).option(`--json`,`Legacy alias for --strict-json`,!1).action(async(e,t,a)=>{try{let r=D(e),s=y(t,{strictJson:!!(a.strictJson||a.json)}),c=await E(),l=structuredClone(c.resolved);k(l,r),w(l,r,s),await o(l),n.log(i(`Updated ${e}. Restart the gateway to apply.`))}catch(e){n.error(r(String(e))),n.exit(1)}}),a.command(`unset`).description(`Remove a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).action(async e=>{await j({path:e})}),a.command(`file`).description(`Print the active config file path`).action(async()=>{await M({})}),a.command(`validate`).description(`Validate the current config against the schema without starting the gateway`).option(`--json`,`Output validation result as JSON`,!1).action(async e=>{await N({json:!!e.json})})}export{P as registerConfigCli,A as runConfigGet,j as runConfigUnset};
@@ -1 +1 @@
1
- import{t as e}from"./paths-B4IRk3wi.js";import{A as t,E as n,p as r,v as i,y as a}from"./subsystem-C5XF2Fy5.js";import{S as o}from"./utils-UGOV_184.js";import{Zs as s,nc as c}from"./model-selection-BLbnMb5E.js";import"./agent-scope-DXZc3eNT.js";import{y as l}from"./session-key-D3P0tf5P.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import{t as u}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{t as d}from"./links-CySwdMcF.js";import{n as f,r as p}from"./issue-format-BtMzMXtZ.js";import m from"json5";const h=[`models`,`providers`,`ollama`,`apiKey`],g=[`models`,`providers`,`ollama`];function _(e){return/^[0-9]+$/.test(e)}function v(e){let t=e.trim();if(!t)return[];let n=[],r=``,i=0;for(;i<t.length;){let a=t[i];if(a===`\\`){let e=t[i+1];e&&(r+=e),i+=2;continue}if(a===`.`){r&&n.push(r),r=``,i+=1;continue}if(a===`[`){r&&n.push(r),r=``;let a=t.indexOf(`]`,i);if(a===-1)throw Error(`Invalid path (missing "]"): ${e}`);let o=t.slice(i+1,a).trim();if(!o)throw Error(`Invalid path (empty "[]"): ${e}`);n.push(o),i=a+1;continue}r+=a,i+=1}return r&&n.push(r),n.map(e=>e.trim()).filter(Boolean)}function y(e,t){let n=e.trim();if(t.strictJson)try{return m.parse(n)}catch(e){throw Error(`Failed to parse JSON5 value: ${String(e)}`,{cause:e})}try{return m.parse(n)}catch{return e}}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return`Run \`${u(`openclaw doctor`)}\` ${e}`}function S(e){for(let t of e)if(!_(t)&&l(t))throw Error(`Invalid path segment: ${t}`)}function C(e,t){let n=e;for(let e of t){if(!n||typeof n!=`object`)return{found:!1};if(Array.isArray(n)){if(!_(e))return{found:!1};let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}let t=n;if(!b(t,e))return{found:!1};n=t[e]}return{found:!0,value:n}}function w(e,t,n){let r=e;for(let e=0;e<t.length-1;e+=1){let n=t[e],i=t[e+1],a=!!(i&&_(i));if(Array.isArray(r)){if(!_(n))throw Error(`Expected numeric index for array segment "${n}"`);let e=Number.parseInt(n,10),t=r[e];(!t||typeof t!=`object`)&&(r[e]=a?[]:{}),r=r[e];continue}if(!r||typeof r!=`object`)throw Error(`Cannot traverse into "${n}" (not an object)`);let o=r,s=b(o,n)?o[n]:void 0;(!s||typeof s!=`object`)&&(o[n]=a?[]:{}),r=o[n]}let i=t[t.length-1];if(Array.isArray(r)){if(!_(i))throw Error(`Expected numeric index for array segment "${i}"`);let e=Number.parseInt(i,10);r[e]=n;return}if(!r||typeof r!=`object`)throw Error(`Cannot set "${i}" (parent is not an object)`);r[i]=n}function T(e,t){let n=e;for(let e=0;e<t.length-1;e+=1){let r=t[e];if(!n||typeof n!=`object`)return!1;if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);if(!Number.isFinite(e)||e<0||e>=n.length)return!1;n=n[e];continue}let i=n;if(!b(i,r))return!1;n=i[r]}let r=t[t.length-1];if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);return!Number.isFinite(e)||e<0||e>=n.length?!1:(n.splice(e,1),!0)}if(!n||typeof n!=`object`)return!1;let i=n;return b(i,r)?(delete i[r],!0):!1}async function E(e=r){let t=await s();if(t.valid)return t;e.error(`Config invalid at ${o(t.path)}.`);for(let n of f(t.issues,`-`,{normalizeRoot:!0}))e.error(n);return e.error(x(`to repair, then retry.`)),e.exit(1),t}function D(e){let t=v(e);if(t.length===0)throw Error(`Path is empty.`);return S(t),t}function O(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function k(e,t){O(t,h)&&(C(e,g).found||w(e,g,{baseUrl:`http://127.0.0.1:11434`,api:`ollama`,models:[]}))}async function A(e){let t=e.runtime??r;try{let n=D(e.path),r=(await E(t)).config,a=C(r,n);if(!a.found){t.error(i(`Config path not found: ${e.path}`)),t.exit(1);return}if(e.json){t.log(JSON.stringify(a.value??null,null,2));return}if(typeof a.value==`string`||typeof a.value==`number`||typeof a.value==`boolean`){t.log(String(a.value));return}t.log(JSON.stringify(a.value??null,null,2))}catch(e){t.error(i(String(e))),t.exit(1)}}async function j(e){let t=e.runtime??r;try{let n=D(e.path),r=await E(t),o=structuredClone(r.resolved);if(!T(o,n)){t.error(i(`Config path not found: ${e.path}`)),t.exit(1);return}await c(o,{unsetPaths:[n]}),t.log(a(`Removed ${e.path}. Restart the gateway to apply.`))}catch(e){t.error(i(String(e))),t.exit(1)}}async function M(e){let t=e.runtime??r;try{let e=await s();t.log(o(e.path))}catch(e){t.error(i(String(e))),t.exit(1)}}async function N(t={}){let a=t.runtime??r,c=e??`openclaw.json`;try{let e=await s();c=e.path;let r=o(c);if(!e.exists){t.json?a.log(JSON.stringify({valid:!1,path:c,error:`file not found`})):a.error(i(`Config file not found: ${r}`)),a.exit(1);return}if(!e.valid){let n=p(e.issues);if(t.json)a.log(JSON.stringify({valid:!1,path:c,issues:n},null,2));else{a.error(i(`Config invalid at ${r}:`));for(let e of f(n,i(`×`),{normalizeRoot:!0}))a.error(` ${e}`);a.error(``),a.error(x(`to repair, or fix the keys above manually.`))}a.exit(1);return}t.json?a.log(JSON.stringify({valid:!0,path:c})):a.log(n(`Config valid: ${r}`))}catch(e){t.json?a.log(JSON.stringify({valid:!1,path:c,error:String(e)})):a.error(i(`Config validation error: ${String(e)}`)),a.exit(1)}}function P(e){let n=e.command(`config`).description(`Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.`).addHelpText(`after`,()=>`\n${t.muted(`Docs:`)} ${d(`/cli/config`,`docs.openclaw.ai/cli/config`)}\n`).option(`--section <section>`,`Configure wizard sections (repeatable). Use with no subcommand.`,(e,t)=>[...t,e],[]).action(async e=>{let{configureCommandFromSectionsArg:t}=await import(`./configure--c4tTVPz.js`);await t(e.section,r)});n.command(`get`).description(`Get a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).option(`--json`,`Output JSON`,!1).action(async(e,t)=>{await A({path:e,json:!!t.json})}),n.command(`set`).description(`Set a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).argument(`<value>`,`Value (JSON5 or raw string)`).option(`--strict-json`,`Strict JSON5 parsing (error instead of raw string fallback)`,!1).option(`--json`,`Legacy alias for --strict-json`,!1).action(async(e,t,n)=>{try{let i=D(e),o=y(t,{strictJson:!!(n.strictJson||n.json)}),s=await E(),l=structuredClone(s.resolved);k(l,i),w(l,i,o),await c(l),r.log(a(`Updated ${e}. Restart the gateway to apply.`))}catch(e){r.error(i(String(e))),r.exit(1)}}),n.command(`unset`).description(`Remove a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).action(async e=>{await j({path:e})}),n.command(`file`).description(`Print the active config file path`).action(async()=>{await M({})}),n.command(`validate`).description(`Validate the current config against the schema without starting the gateway`).option(`--json`,`Output validation result as JSON`,!1).action(async e=>{await N({json:!!e.json})})}export{P as registerConfigCli};
1
+ import{t as e}from"./paths-B4IRk3wi.js";import{A as t,E as n,p as r,v as i,y as a}from"./subsystem-C5XF2Fy5.js";import{S as o}from"./utils-UGOV_184.js";import{Zs as s,nc as c}from"./model-selection-BLbnMb5E.js";import"./agent-scope-DXZc3eNT.js";import{y as l}from"./session-key-D3P0tf5P.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import{t as u}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{t as d}from"./links-CySwdMcF.js";import{n as f,r as p}from"./issue-format-BtMzMXtZ.js";import m from"json5";const h=[`models`,`providers`,`ollama`,`apiKey`],g=[`models`,`providers`,`ollama`];function _(e){return/^[0-9]+$/.test(e)}function v(e){let t=e.trim();if(!t)return[];let n=[],r=``,i=0;for(;i<t.length;){let a=t[i];if(a===`\\`){let e=t[i+1];e&&(r+=e),i+=2;continue}if(a===`.`){r&&n.push(r),r=``,i+=1;continue}if(a===`[`){r&&n.push(r),r=``;let a=t.indexOf(`]`,i);if(a===-1)throw Error(`Invalid path (missing "]"): ${e}`);let o=t.slice(i+1,a).trim();if(!o)throw Error(`Invalid path (empty "[]"): ${e}`);n.push(o),i=a+1;continue}r+=a,i+=1}return r&&n.push(r),n.map(e=>e.trim()).filter(Boolean)}function y(e,t){let n=e.trim();if(t.strictJson)try{return m.parse(n)}catch(e){throw Error(`Failed to parse JSON5 value: ${String(e)}`,{cause:e})}try{return m.parse(n)}catch{return e}}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return`Run \`${u(`openclaw doctor`)}\` ${e}`}function S(e){for(let t of e)if(!_(t)&&l(t))throw Error(`Invalid path segment: ${t}`)}function C(e,t){let n=e;for(let e of t){if(!n||typeof n!=`object`)return{found:!1};if(Array.isArray(n)){if(!_(e))return{found:!1};let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}let t=n;if(!b(t,e))return{found:!1};n=t[e]}return{found:!0,value:n}}function w(e,t,n){let r=e;for(let e=0;e<t.length-1;e+=1){let n=t[e],i=t[e+1],a=!!(i&&_(i));if(Array.isArray(r)){if(!_(n))throw Error(`Expected numeric index for array segment "${n}"`);let e=Number.parseInt(n,10),t=r[e];(!t||typeof t!=`object`)&&(r[e]=a?[]:{}),r=r[e];continue}if(!r||typeof r!=`object`)throw Error(`Cannot traverse into "${n}" (not an object)`);let o=r,s=b(o,n)?o[n]:void 0;(!s||typeof s!=`object`)&&(o[n]=a?[]:{}),r=o[n]}let i=t[t.length-1];if(Array.isArray(r)){if(!_(i))throw Error(`Expected numeric index for array segment "${i}"`);let e=Number.parseInt(i,10);r[e]=n;return}if(!r||typeof r!=`object`)throw Error(`Cannot set "${i}" (parent is not an object)`);r[i]=n}function T(e,t){let n=e;for(let e=0;e<t.length-1;e+=1){let r=t[e];if(!n||typeof n!=`object`)return!1;if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);if(!Number.isFinite(e)||e<0||e>=n.length)return!1;n=n[e];continue}let i=n;if(!b(i,r))return!1;n=i[r]}let r=t[t.length-1];if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);return!Number.isFinite(e)||e<0||e>=n.length?!1:(n.splice(e,1),!0)}if(!n||typeof n!=`object`)return!1;let i=n;return b(i,r)?(delete i[r],!0):!1}async function E(e=r){let t=await s();if(t.valid)return t;e.error(`Config invalid at ${o(t.path)}.`);for(let n of f(t.issues,`-`,{normalizeRoot:!0}))e.error(n);return e.error(x(`to repair, then retry.`)),e.exit(1),t}function D(e){let t=v(e);if(t.length===0)throw Error(`Path is empty.`);return S(t),t}function O(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function k(e,t){O(t,h)&&(C(e,g).found||w(e,g,{baseUrl:`http://127.0.0.1:11434`,api:`ollama`,models:[]}))}async function A(e){let t=e.runtime??r;try{let n=D(e.path),r=(await E(t)).config,a=C(r,n);if(!a.found){t.error(i(`Config path not found: ${e.path}`)),t.exit(1);return}if(e.json){t.log(JSON.stringify(a.value??null,null,2));return}if(typeof a.value==`string`||typeof a.value==`number`||typeof a.value==`boolean`){t.log(String(a.value));return}t.log(JSON.stringify(a.value??null,null,2))}catch(e){t.error(i(String(e))),t.exit(1)}}async function j(e){let t=e.runtime??r;try{let n=D(e.path),r=await E(t),o=structuredClone(r.resolved);if(!T(o,n)){t.error(i(`Config path not found: ${e.path}`)),t.exit(1);return}await c(o,{unsetPaths:[n]}),t.log(a(`Removed ${e.path}. Restart the gateway to apply.`))}catch(e){t.error(i(String(e))),t.exit(1)}}async function M(e){let t=e.runtime??r;try{let e=await s();t.log(o(e.path))}catch(e){t.error(i(String(e))),t.exit(1)}}async function N(t={}){let a=t.runtime??r,c=e??`openclaw.json`;try{let e=await s();c=e.path;let r=o(c);if(!e.exists){t.json?a.log(JSON.stringify({valid:!1,path:c,error:`file not found`})):a.error(i(`Config file not found: ${r}`)),a.exit(1);return}if(!e.valid){let n=p(e.issues);if(t.json)a.log(JSON.stringify({valid:!1,path:c,issues:n},null,2));else{a.error(i(`Config invalid at ${r}:`));for(let e of f(n,i(`×`),{normalizeRoot:!0}))a.error(` ${e}`);a.error(``),a.error(x(`to repair, or fix the keys above manually.`))}a.exit(1);return}t.json?a.log(JSON.stringify({valid:!0,path:c})):a.log(n(`Config valid: ${r}`))}catch(e){t.json?a.log(JSON.stringify({valid:!1,path:c,error:String(e)})):a.error(i(`Config validation error: ${String(e)}`)),a.exit(1)}}function P(e){let n=e.command(`config`).description(`Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.`).addHelpText(`after`,()=>`\n${t.muted(`Docs:`)} ${d(`/cli/config`,`docs.openclaw.ai/cli/config`)}\n`).option(`--section <section>`,`Configure wizard sections (repeatable). Use with no subcommand.`,(e,t)=>[...t,e],[]).action(async e=>{let{configureCommandFromSectionsArg:t}=await import(`./configure-CYw7mK89.js`);await t(e.section,r)});n.command(`get`).description(`Get a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).option(`--json`,`Output JSON`,!1).action(async(e,t)=>{await A({path:e,json:!!t.json})}),n.command(`set`).description(`Set a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).argument(`<value>`,`Value (JSON5 or raw string)`).option(`--strict-json`,`Strict JSON5 parsing (error instead of raw string fallback)`,!1).option(`--json`,`Legacy alias for --strict-json`,!1).action(async(e,t,n)=>{try{let i=D(e),o=y(t,{strictJson:!!(n.strictJson||n.json)}),s=await E(),l=structuredClone(s.resolved);k(l,i),w(l,i,o),await c(l),r.log(a(`Updated ${e}. Restart the gateway to apply.`))}catch(e){r.error(i(String(e))),r.exit(1)}}),n.command(`unset`).description(`Remove a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).action(async e=>{await j({path:e})}),n.command(`file`).description(`Print the active config file path`).action(async()=>{await M({})}),n.command(`validate`).description(`Validate the current config against the schema without starting the gateway`).option(`--json`,`Output validation result as JSON`,!1).action(async e=>{await N({json:!!e.json})})}export{P as registerConfigCli};
@@ -1,4 +1,4 @@
1
- import{p as e}from"./subsystem-BLbY429l.js";import{t,u as n}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Bo as r,Fo as i,Tc as a,jo as o,va as s}from"./auth-profiles-C8rZRS0X.js";import{t as c}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import{v as l,x as u}from"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import{o as d,s as f}from"./types.secrets-D4tbc3Wq.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import{At as p,n as m,t as h}from"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import"./compact-CYbPi7_-.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-SqSusZP3.js";import"./diagnostic-D1H7_8QG.js";import"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import"./audio-transcription-runner-BIKj1CBU.js";import"./fetch-guard-DaZmvp-L.js";import"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import"./target-errors-D6wejRd6.js";import"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import"./call-BWx7hNtl.js";import"./pi-tools.policy-B6q8YOfg.js";import"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import"./skill-commands-DCqPy_Aa.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import"./channel-activity-BhiLsKvM.js";import"./tables-DENKrP-W.js";import"./kill-tree-D6nPx1_o.js";import"./runtime-web-tools-BYhCkBV8.js";import"./runtime-CK7gqwEF.js";import"./node-shell-BVZylVP6.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-BPxE8JR7.js";import"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import{a as g,b as _,g as v,h as y,m as b,n as x,p as ee,s as S,t as C,u as w,v as te,y as T}from"./onboard-helpers-DOlI17Ac.js";import{n as E,r as D,t as O}from"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import"./search-manager-CV2YsAym.js";import"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import{n as k}from"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";import"./skills-status-DpSboPY1.js";import"./outbound-CqDxMWLZ.js";import"./channel-web-CwUfYqjg.js";import"./session-bk3gFwO4.js";import"./login-CcYeF5T_.js";import"./provider-env-vars-Dt0Q29Su.js";import{t as A}from"./note-Dp-d_utk.js";import{t as j}from"./prompts-CMzglboN.js";import{t as ne}from"./clack-prompter-DBPdGdqp.js";import"./enable-PO3qN4Lf.js";import"./install-safe-path-C6kc_8NW.js";import"./npm-pack-install-C0te3Oap.js";import"./skill-scanner-CkxXNioD.js";import"./installs-CKzq-YqL.js";import"./plugin-install-plan-sIOiMBS1.js";import{r as re,t as ie}from"./onboard-channels-BDMtq3ex.js";import"./auth-choice.apply-helpers-D911bYcw.js";import"./issue-format-CN9PHzXY.js";import"./daemon-install-plan.shared-Dx3DBXCG.js";import"./runtime-guard-DX2Ie4ri.js";import{n as M,r as N,t as P}from"./gateway-install-token-cSJrfU_1.js";import{n as F,t as I}from"./daemon-runtime-VcpeBRJV.js";import{n as L}from"./systemd-DbevZh65.js";import{n as R,t as z}from"./service-DZ9EbS15.js";import"./widearea-dns-BDx7vkV2.js";import"./bonjour-discovery-ClTijpMw.js";import{r as ae}from"./health-CIZFVJEG.js";import{t as oe}from"./control-ui-assets-CTHGGgaX.js";import{t as se}from"./onboarding.secret-input-CUD0t7Pk.js";import"./skills-install-cEcqzaX8.js";import"./openai-codex-model-default-DuRfnfUm.js";import"./auth-token-DZLZ3d_I.js";import{n as B}from"./logging-B7XHbCNn.js";import"./provider-auth-helpers-BLm2bdp5.js";import"./oauth-tls-preflight-BSBRDIfC.js";import"./auth-choice-options-B3WQyS7I.js";import{n as ce}from"./auth-choice-prompt-uegl56cf.js";import{i as le,n as ue}from"./auth-choice-MqcWuVyu.js";import"./openai-model-default-KMCphvoO.js";import{a as de,n as fe,o as pe,r as me,t as he}from"./model-picker-BB0Zdvyu.js";import"./ollama-setup-LVRPefmV.js";import{t as ge}from"./systemd-linger-cWKbFNpu.js";import{a as _e}from"./onboard-custom-_Df_ciX2.js";import{a as ve,i as ye,n as be,r as xe,t as Se}from"./ipv4-B05QVStj.js";import{t as Ce}from"./health-format-B1nj3Wfn.js";import{n as we}from"./onboard-remote-B1-SlmUN.js";import{n as V}from"./onboard-skills-DCgTr6hW.js";import Te from"node:path";import Ee from"node:fs/promises";import{confirm as De,intro as Oe,outro as ke,select as Ae,text as je}from"@clack/prompts";const H=[`workspace`,`model`,`web`,`gateway`,`daemon`,`channels`,`skills`,`health`];function Me(e){let t=Array.isArray(e)?e.map(e=>typeof e==`string`?e.trim():``).filter(Boolean):[];if(t.length===0)return{sections:[],invalid:[]};let n=t.filter(e=>!H.includes(e));return{sections:t.filter(e=>H.includes(e)),invalid:n}}const U=[{value:`workspace`,label:`Workspace`,hint:`Set workspace + sessions`},{value:`model`,label:`Model`,hint:`Pick provider + credentials`},{value:`web`,label:`Web tools`,hint:`Configure web search (Perplexity/Brave) + fetch`},{value:`gateway`,label:`Gateway`,hint:`Port, bind, auth, tailscale`},{value:`daemon`,label:`Daemon`,hint:`Install/manage the background service`},{value:`channels`,label:`Channels`,hint:`Link WhatsApp/Telegram/etc and defaults`},{value:`skills`,label:`Skills`,hint:`Install/enable workspace skills`},{value:`health`,label:`Health check`,hint:`Run gateway + channel checks`}],Ne=e=>Oe(D(e)??e),W=e=>ke(D(e)??e),G=e=>je({...e,message:E(e.message)}),K=e=>De({...e,message:E(e.message)}),q=e=>Ae({...e,message:E(e.message),options:e.options.map(e=>e.hint===void 0?e:{...e,hint:O(e.hint)})});async function Pe(e,n){let r={...e},i=()=>m().map(e=>e.meta).filter(e=>r.channels?.[e.id]!==void 0);for(;;){let e=i();if(e.length===0)return A([`No channel config found in openclaw.json.`,`Tip: \`${c(`openclaw channels status`)}\` shows what is configured and enabled.`].join(`
1
+ import{p as e}from"./subsystem-BLbY429l.js";import{t,u as n}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Bo as r,Fo as i,Tc as a,jo as o,va as s}from"./auth-profiles-C8rZRS0X.js";import{t as c}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import{v as l,x as u}from"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import{o as d,s as f}from"./types.secrets-D4tbc3Wq.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import{At as p,n as m,t as h}from"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import"./compact-uyQDx8pN.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-SqSusZP3.js";import"./diagnostic-D1H7_8QG.js";import"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import"./audio-transcription-runner-BIKj1CBU.js";import"./fetch-guard-DaZmvp-L.js";import"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import"./target-errors-D6wejRd6.js";import"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import"./call-BWx7hNtl.js";import"./pi-tools.policy-B6q8YOfg.js";import"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import"./skill-commands-DCqPy_Aa.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import"./channel-activity-BhiLsKvM.js";import"./tables-DENKrP-W.js";import"./kill-tree-D6nPx1_o.js";import"./runtime-web-tools-BYhCkBV8.js";import"./runtime-CK7gqwEF.js";import"./node-shell-BVZylVP6.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-BPxE8JR7.js";import"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import{a as g,b as _,g as v,h as y,m as b,n as x,p as ee,s as S,t as C,u as w,v as te,y as T}from"./onboard-helpers-DOlI17Ac.js";import{n as E,r as D,t as O}from"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import"./search-manager-CV2YsAym.js";import"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import{n as k}from"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";import"./skills-status-DpSboPY1.js";import"./outbound-CqDxMWLZ.js";import"./channel-web-Qr8ST6tz.js";import"./session-bk3gFwO4.js";import"./login-CcYeF5T_.js";import"./provider-env-vars-Dt0Q29Su.js";import{t as A}from"./note-Dp-d_utk.js";import{t as j}from"./prompts-CMzglboN.js";import{t as ne}from"./clack-prompter-DBPdGdqp.js";import"./enable-PO3qN4Lf.js";import"./install-safe-path-C6kc_8NW.js";import"./npm-pack-install-C0te3Oap.js";import"./skill-scanner-CkxXNioD.js";import"./installs-CKzq-YqL.js";import"./plugin-install-plan-sIOiMBS1.js";import{r as re,t as ie}from"./onboard-channels-C5lcb7dF.js";import"./auth-choice.apply-helpers-D911bYcw.js";import"./issue-format-CN9PHzXY.js";import"./daemon-install-plan.shared-Dx3DBXCG.js";import"./runtime-guard-DX2Ie4ri.js";import{n as M,r as N,t as P}from"./gateway-install-token-cSJrfU_1.js";import{n as F,t as I}from"./daemon-runtime-VcpeBRJV.js";import{n as L}from"./systemd-DbevZh65.js";import{n as R,t as z}from"./service-DZ9EbS15.js";import"./widearea-dns-BDx7vkV2.js";import"./bonjour-discovery-ClTijpMw.js";import{r as ae}from"./health-Dmtcw9K8.js";import{t as oe}from"./control-ui-assets-CTHGGgaX.js";import{t as se}from"./onboarding.secret-input-CUD0t7Pk.js";import"./skills-install-cEcqzaX8.js";import"./openai-codex-model-default-DuRfnfUm.js";import"./auth-token-DZLZ3d_I.js";import{n as B}from"./logging-B7XHbCNn.js";import"./provider-auth-helpers-DeCLF5oV.js";import"./oauth-tls-preflight-BSBRDIfC.js";import"./auth-choice-options-B3WQyS7I.js";import{n as ce}from"./auth-choice-prompt-uegl56cf.js";import{i as le,n as ue}from"./auth-choice-DacG9sC7.js";import"./openai-model-default-KMCphvoO.js";import{a as de,n as fe,o as pe,r as me,t as he}from"./model-picker-BB0Zdvyu.js";import"./ollama-setup-LVRPefmV.js";import{t as ge}from"./systemd-linger-cWKbFNpu.js";import{a as _e}from"./onboard-custom-_Df_ciX2.js";import{a as ve,i as ye,n as be,r as xe,t as Se}from"./ipv4-B05QVStj.js";import{t as Ce}from"./health-format-B1nj3Wfn.js";import{n as we}from"./onboard-remote-B1-SlmUN.js";import{n as V}from"./onboard-skills-DCgTr6hW.js";import Te from"node:path";import Ee from"node:fs/promises";import{confirm as De,intro as Oe,outro as ke,select as Ae,text as je}from"@clack/prompts";const H=[`workspace`,`model`,`web`,`gateway`,`daemon`,`channels`,`skills`,`health`];function Me(e){let t=Array.isArray(e)?e.map(e=>typeof e==`string`?e.trim():``).filter(Boolean):[];if(t.length===0)return{sections:[],invalid:[]};let n=t.filter(e=>!H.includes(e));return{sections:t.filter(e=>H.includes(e)),invalid:n}}const U=[{value:`workspace`,label:`Workspace`,hint:`Set workspace + sessions`},{value:`model`,label:`Model`,hint:`Pick provider + credentials`},{value:`web`,label:`Web tools`,hint:`Configure web search (Perplexity/Brave) + fetch`},{value:`gateway`,label:`Gateway`,hint:`Port, bind, auth, tailscale`},{value:`daemon`,label:`Daemon`,hint:`Install/manage the background service`},{value:`channels`,label:`Channels`,hint:`Link WhatsApp/Telegram/etc and defaults`},{value:`skills`,label:`Skills`,hint:`Install/enable workspace skills`},{value:`health`,label:`Health check`,hint:`Run gateway + channel checks`}],Ne=e=>Oe(D(e)??e),W=e=>ke(D(e)??e),G=e=>je({...e,message:E(e.message)}),K=e=>De({...e,message:E(e.message)}),q=e=>Ae({...e,message:E(e.message),options:e.options.map(e=>e.hint===void 0?e:{...e,hint:O(e.hint)})});async function Pe(e,n){let r={...e},i=()=>m().map(e=>e.meta).filter(e=>r.channels?.[e.id]!==void 0);for(;;){let e=i();if(e.length===0)return A([`No channel config found in openclaw.json.`,`Tip: \`${c(`openclaw channels status`)}\` shows what is configured and enabled.`].join(`
2
2
  `),`Remove channel`),r;let a=S(await q({message:`Remove which channel config?`,options:[...e.map(e=>({value:e.id,label:e.label,hint:`Deletes tokens + settings from config (credentials stay on disk)`})),{value:`done`,label:`Done`}]}),n);if(a===`done`)return r;let o=h(a)?.meta.label??a;if(!S(await K({message:`Delete ${o} configuration from ${u(t)}?`,initialValue:!1}),n))continue;let s={...r.channels};delete s[a],r={...r,channels:Object.keys(s).length?s:void 0},A([`${o} removed from config.`,`Note: credentials/sessions on disk are unchanged.`].join(`
3
3
  `),`Channel removed`)}}async function J(e){let t=R(),n=!1;try{n=await t.isLoaded({env:process.env})}catch(e){if(!L(e))throw e;n=!1}let r=!1,i=!0,a=e.daemonRuntime??`node`;if(n){let n=S(await q({message:`Gateway service already installed`,options:[{value:`restart`,label:`Restart`},{value:`reinstall`,label:`Reinstall`},{value:`skip`,label:`Skip`}]}),e.runtime);if(n===`restart`&&(await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async e=>{e.setLabel(`Restarting Gateway service…`);let n=await t.restart({env:process.env,stdout:process.stdout});e.setLabel(z(`Gateway`,n).progressMessage)}),r=!0,i=!1),n===`skip`)return;n===`reinstall`&&await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async e=>{e.setLabel(`Uninstalling Gateway service…`),await t.uninstall({env:process.env,stdout:process.stdout}),e.setLabel(`Gateway service uninstalled.`)})}if(i){let n=null;if(e.daemonRuntime||(a=F.length===1?F[0]?.value??`node`:S(await q({message:`Gateway service runtime`,options:F,initialValue:I}),e.runtime)),await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async r=>{r.setLabel(`Preparing Gateway service…`);let i=o(),s=await P({config:i,env:process.env});for(let e of s.warnings)A(e,`Gateway`);if(s.unavailableReason){n=[`Gateway install blocked:`,s.unavailableReason,`Fix gateway auth config/token input and rerun configure.`].join(` `),r.setLabel(`Gateway service install blocked.`);return}let{programArguments:c,workingDirectory:l,environment:u}=await M({env:process.env,port:e.port,runtime:a,warn:(e,t)=>A(e,t),config:i});r.setLabel(`Installing Gateway service…`);try{await t.install({env:process.env,stdout:process.stdout,programArguments:c,workingDirectory:l,environment:u}),r.setLabel(`Gateway service installed.`)}catch(e){n=e instanceof Error?e.message:String(e),r.setLabel(`Gateway service install failed.`)}}),n){A(`Gateway service install failed: `+n,`Gateway`),A(N(),`Gateway`);return}r=!0}r&&await ge({runtime:e.runtime,prompter:{confirm:async t=>S(await K(t),e.runtime),note:A},reason:`Linux installs use a systemd user service. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.`,requireConfirm:!0})}function Fe(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t===`undefined`||t===`null`))return t}const Ie=[`anthropic/claude-sonnet-4-6`,`anthropic/claude-opus-4-6`,`anthropic/claude-opus-4-5`,`anthropic/claude-sonnet-4-5`,`anthropic/claude-haiku-4-5`];function Le(e){let t=e.existing?.allowTailscale,n={};if(typeof t==`boolean`&&(n.allowTailscale=t),e.mode===`token`){if(d(e.token))return{...n,mode:`token`,token:e.token};let t=Fe(e.token)??y();return{...n,mode:`token`,token:t}}if(e.mode===`password`){let t=e.password?.trim();return{...n,mode:`password`,...t&&{password:t}}}if(e.mode===`trusted-proxy`){if(!e.trustedProxy)throw Error(`trustedProxy config is required when mode is trusted-proxy`);return{...n,mode:`trusted-proxy`,trustedProxy:e.trustedProxy}}return n}async function Y(e,t,n){let r=await ce({prompter:n,store:a(void 0,{allowKeychainPrompt:!1}),includeSkip:!0}),i=e;if(r===`custom-api-key`)i=(await _e({prompter:n,runtime:t,config:i})).config;else if(r!==`skip`)i=(await le({authChoice:r,config:i,prompter:n,runtime:t,setDefaultModel:!0})).config;else{let e=await de({config:i,prompter:n,allowKeep:!0,ignoreAllowlist:!0,preferredProvider:ue(r)});e.config&&(i=e.config),e.model&&(i=me(i,e.model))}let o=r===`setup-token`||r===`token`||r===`oauth`;if(r!==`custom-api-key`){let e=await pe({config:i,prompter:n,allowedKeys:o?Ie:void 0,initialSelections:o?[`anthropic/claude-sonnet-4-6`]:void 0,message:o?`Anthropic OAuth models`:void 0});e.models&&(i=he(i,e.models),i=fe(i,e.models))}return i}async function X(e,t){let r=S(await G({message:`Gateway port`,initialValue:String(n(e)),validate:e=>Number.isFinite(Number(e))?void 0:`Invalid port`}),t),i=Number.parseInt(String(r),10),a=S(await q({message:`Gateway bind mode`,options:[{value:`loopback`,label:`Loopback (Local only)`,hint:`Bind to 127.0.0.1 - secure, local-only access`},{value:`tailnet`,label:`Tailnet (Tailscale IP)`,hint:`Bind to your Tailscale IP only (100.x.x.x)`},{value:`auto`,label:`Auto (Loopback → LAN)`,hint:`Prefer loopback; fall back to all interfaces if unavailable`},{value:`lan`,label:`LAN (All interfaces)`,hint:`Bind to 0.0.0.0 - accessible from anywhere on your network`},{value:`custom`,label:`Custom IP`,hint:`Specify a specific IP address, with 0.0.0.0 fallback if unavailable`}]}),t),o;if(a===`custom`){let e=S(await G({message:`Custom IP address`,placeholder:`192.168.1.100`,validate:Se}),t);o=typeof e==`string`?e:void 0}let c=S(await q({message:`Gateway auth`,options:[{value:`token`,label:`Token`,hint:`Recommended default`},{value:`password`,label:`Password`},{value:`trusted-proxy`,label:`Trusted Proxy`,hint:`Behind reverse proxy (Pomerium, Caddy, Traefik, etc.)`}],initialValue:`token`}),t),l=S(await q({message:`Tailscale exposure`,options:[...xe]}),t),u=null;l!==`off`&&(u=await s(),u||A(ye.join(`
4
4
  `),`Tailscale Warning`));let d=!1;l!==`off`&&(A(be.join(`
@@ -1,4 +1,4 @@
1
- import{t as e,u as t}from"./paths-B4IRk3wi.js";import{p as n}from"./subsystem-C5XF2Fy5.js";import{S as r,y as i}from"./utils-UGOV_184.js";import{No as a,Yl as o,Zs as s,nc as c,qs as l}from"./model-selection-BLbnMb5E.js";import"./reply-DwfVhea1.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import{o as u,s as d}from"./types.secrets-C-5U96pc.js";import"./github-copilot-token-DGYAlOmV.js";import{t as f}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import{At as p,n as m,t as h}from"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BwjMhAUa.js";import"./image-BP1cfEh1.js";import"./models-config-BlQ39qlq.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-7BAwnP4a.js";import"./api-key-rotation-Rz2ESQSA.js";import"./local-roots-aA-4ohTq.js";import"./model-catalog-D-hkNWin.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DUNkj4hy.js";import"./commands-CGpM84iR.js";import"./commands-registry-DlvNUkXz.js";import"./pairing-store-EmfFQVcs.js";import"./fetch-Dikjvc5M.js";import"./call-JB-cGR9n.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-BEZszppF.js";import"./send-NbU9-scF2.js";import"./pi-model-discovery-DnJkNRc-.js";import"./exec-approvals-allowlist-B-Yf6RsU.js";import"./exec-safe-bin-runtime-policy-CRPHdPbF.js";import"./ir-CNTx85qV.js";import"./render-D8OWO2hT.js";import"./target-errors-CoEHv_2r.js";import"./read-only-account-inspect-B0cm8yrv.js";import"./channel-selection-si1OzWyQ.js";import"./plugin-auto-enable-CTgkkJK7.js";import"./send-DmHpf5Fz.js";import"./outbound-attachment-9-8VNvRG.js";import"./delivery-queue-CKbauSFq.js";import"./send-AQ3CJLpI.js";import"./channel-activity-Dw6F-ehJ.js";import"./tables-fl9iXahm.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-DlHVddAk.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-B8RdfK2y.js";import"./restart-BeJuoXCx.js";import"./runtime-web-tools-C4F6aaRh.js";import"./command-secret-targets-CfXtLkLF.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-smZlFWxD.js";import{a as g,b as _,g as v,h as y,m as b,n as x,p as ee,s as S,t as C,u as w,v as te,y as T}from"./onboard-helpers-D90u4wVK.js";import{n as E,r as D,t as O}from"./prompt-style-CXKekIBY.js";import"./pairing-labels-PIuZfthz.js";import"./memory-cli-BouV_wyL.js";import"./query-expansion-0OxEb1Io.js";import"./manager-CI6O4QH6.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import{n as k}from"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-8nRBsfID.js";import"./system-run-command-E8ymBXHh.js";import"./runtime-DYttInEE.js";import"./stagger-DmFYysrJ.js";import"./channel-web-CCSMlUux.js";import"./outbound-BevYwvMh.js";import"./session-BSRnpwSq.js";import"./login-DSZdCiDx.js";import"./runtime-guard-DFYBaYZS.js";import"./skills-status-D4Y1BJYL.js";import"./provider-env-vars-D8p6Ohpj.js";import{t as A}from"./note-D4GAwgha.js";import{t as j}from"./prompts-wv-lfVrJ.js";import{t as ne}from"./clack-prompter-Dq0aY6iM.js";import"./enable-CjFPAUgo.js";import"./install-safe-path-iesxijn2.js";import"./npm-pack-install-B23L-AtF.js";import"./skill-scanner-CUUF3Fvo.js";import"./installs-DzSskdtJ.js";import"./plugin-install-plan-BmyB3dR1.js";import{r as re,t as ie}from"./onboard-channels-BO3AN_eA.js";import"./auth-choice.apply-helpers-pJ4CPZCk.js";import"./issue-format-BtMzMXtZ.js";import"./daemon-install-plan.shared-BkwZgIAY.js";import{n as M,r as N,t as P}from"./gateway-install-token-Dt7hDXoR.js";import{n as F,t as I}from"./daemon-runtime-DHiDbRuC.js";import{n as L}from"./systemd-D7odsu4K.js";import{n as R,t as z}from"./service-BtB9epJk.js";import"./widearea-dns-BFjqKXu_.js";import"./bonjour-discovery-DMB6yrOF.js";import{r as ae}from"./health-B_-ZE5FK.js";import{t as oe}from"./control-ui-assets-BIa0GGDg.js";import{t as se}from"./onboarding.secret-input-BSmFS1Px.js";import"./skills-install-D3YB2C-S.js";import"./openai-codex-model-default-Bx8i3bOg.js";import"./auth-token-Dp6bxT29.js";import{n as B}from"./logging-CbMVr2MA.js";import"./provider-auth-helpers-DPz0vN_c.js";import"./oauth-tls-preflight-ByNjbUR5.js";import"./auth-choice-options-Dw14noox.js";import{n as ce}from"./auth-choice-prompt-xYj13czb.js";import{i as le,n as ue}from"./auth-choice-BmI4sIGs.js";import"./openai-model-default-Bm9b0oR0.js";import{a as de,n as fe,o as pe,r as me,t as he}from"./model-picker-DeiWyW0N.js";import"./ollama-setup-CGuyH3Ey.js";import{t as ge}from"./systemd-linger-C2MJD6KG.js";import{a as _e}from"./onboard-custom--OylwoHQ.js";import{a as ve,i as ye,n as be,r as xe,t as Se}from"./ipv4-SeeyR-DH.js";import{t as Ce}from"./health-format-VBr6LEpt.js";import{n as we}from"./onboard-remote-C7Eg49Uf.js";import{n as V}from"./onboard-skills-_TBzISd2.js";import Te from"node:path";import Ee from"node:fs/promises";import{confirm as De,intro as Oe,outro as ke,select as Ae,text as je}from"@clack/prompts";const H=[`workspace`,`model`,`web`,`gateway`,`daemon`,`channels`,`skills`,`health`];function Me(e){let t=Array.isArray(e)?e.map(e=>typeof e==`string`?e.trim():``).filter(Boolean):[];if(t.length===0)return{sections:[],invalid:[]};let n=t.filter(e=>!H.includes(e));return{sections:t.filter(e=>H.includes(e)),invalid:n}}const U=[{value:`workspace`,label:`Workspace`,hint:`Set workspace + sessions`},{value:`model`,label:`Model`,hint:`Pick provider + credentials`},{value:`web`,label:`Web tools`,hint:`Configure web search (Perplexity/Brave) + fetch`},{value:`gateway`,label:`Gateway`,hint:`Port, bind, auth, tailscale`},{value:`daemon`,label:`Daemon`,hint:`Install/manage the background service`},{value:`channels`,label:`Channels`,hint:`Link WhatsApp/Telegram/etc and defaults`},{value:`skills`,label:`Skills`,hint:`Install/enable workspace skills`},{value:`health`,label:`Health check`,hint:`Run gateway + channel checks`}],Ne=e=>Oe(D(e)??e),W=e=>ke(D(e)??e),G=e=>je({...e,message:E(e.message)}),K=e=>De({...e,message:E(e.message)}),q=e=>Ae({...e,message:E(e.message),options:e.options.map(e=>e.hint===void 0?e:{...e,hint:O(e.hint)})});async function Pe(t,n){let i={...t},a=()=>m().map(e=>e.meta).filter(e=>i.channels?.[e.id]!==void 0);for(;;){let t=a();if(t.length===0)return A([`No channel config found in openclaw.json.`,`Tip: \`${f(`openclaw channels status`)}\` shows what is configured and enabled.`].join(`
1
+ import{t as e,u as t}from"./paths-B4IRk3wi.js";import{p as n}from"./subsystem-C5XF2Fy5.js";import{S as r,y as i}from"./utils-UGOV_184.js";import{No as a,Yl as o,Zs as s,nc as c,qs as l}from"./model-selection-BLbnMb5E.js";import"./reply-mWIMy_ju.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import{o as u,s as d}from"./types.secrets-C-5U96pc.js";import"./github-copilot-token-DGYAlOmV.js";import{t as f}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import{At as p,n as m,t as h}from"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BwjMhAUa.js";import"./image-BP1cfEh1.js";import"./models-config-BlQ39qlq.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-7BAwnP4a.js";import"./api-key-rotation-Rz2ESQSA.js";import"./local-roots-aA-4ohTq.js";import"./model-catalog-D-hkNWin.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DUNkj4hy.js";import"./commands-CGpM84iR.js";import"./commands-registry-DlvNUkXz.js";import"./pairing-store-EmfFQVcs.js";import"./fetch-Dikjvc5M.js";import"./call-JB-cGR9n.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-BEZszppF.js";import"./send-NbU9-scF2.js";import"./pi-model-discovery-DnJkNRc-.js";import"./exec-approvals-allowlist-B-Yf6RsU.js";import"./exec-safe-bin-runtime-policy-CRPHdPbF.js";import"./ir-CNTx85qV.js";import"./render-D8OWO2hT.js";import"./target-errors-CoEHv_2r.js";import"./read-only-account-inspect-B0cm8yrv.js";import"./channel-selection-si1OzWyQ.js";import"./plugin-auto-enable-CTgkkJK7.js";import"./send-DmHpf5Fz.js";import"./outbound-attachment-9-8VNvRG.js";import"./delivery-queue-CKbauSFq.js";import"./send-AQ3CJLpI.js";import"./channel-activity-Dw6F-ehJ.js";import"./tables-fl9iXahm.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-DlHVddAk.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-B8RdfK2y.js";import"./restart-BeJuoXCx.js";import"./runtime-web-tools-C4F6aaRh.js";import"./command-secret-targets-CfXtLkLF.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-smZlFWxD.js";import{a as g,b as _,g as v,h as y,m as b,n as x,p as ee,s as S,t as C,u as w,v as te,y as T}from"./onboard-helpers-D90u4wVK.js";import{n as E,r as D,t as O}from"./prompt-style-CXKekIBY.js";import"./pairing-labels-PIuZfthz.js";import"./memory-cli-BouV_wyL.js";import"./query-expansion-0OxEb1Io.js";import"./manager-CI6O4QH6.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import{n as k}from"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-8nRBsfID.js";import"./system-run-command-E8ymBXHh.js";import"./runtime-DYttInEE.js";import"./stagger-DmFYysrJ.js";import"./channel-web-TKrgB4oQ.js";import"./outbound-BevYwvMh.js";import"./session-BSRnpwSq.js";import"./login-DSZdCiDx.js";import"./runtime-guard-DFYBaYZS.js";import"./skills-status-D4Y1BJYL.js";import"./provider-env-vars-D8p6Ohpj.js";import{t as A}from"./note-D4GAwgha.js";import{t as j}from"./prompts-wv-lfVrJ.js";import{t as ne}from"./clack-prompter-Dq0aY6iM.js";import"./enable-CjFPAUgo.js";import"./install-safe-path-iesxijn2.js";import"./npm-pack-install-B23L-AtF.js";import"./skill-scanner-CUUF3Fvo.js";import"./installs-DzSskdtJ.js";import"./plugin-install-plan-BmyB3dR1.js";import{r as re,t as ie}from"./onboard-channels-DFB6deX0.js";import"./auth-choice.apply-helpers-pJ4CPZCk.js";import"./issue-format-BtMzMXtZ.js";import"./daemon-install-plan.shared-BkwZgIAY.js";import{n as M,r as N,t as P}from"./gateway-install-token-Dt7hDXoR.js";import{n as F,t as I}from"./daemon-runtime-DHiDbRuC.js";import{n as L}from"./systemd-D7odsu4K.js";import{n as R,t as z}from"./service-BtB9epJk.js";import"./widearea-dns-BFjqKXu_.js";import"./bonjour-discovery-DMB6yrOF.js";import{r as ae}from"./health-2MbtCw6U.js";import{t as oe}from"./control-ui-assets-BIa0GGDg.js";import{t as se}from"./onboarding.secret-input-BSmFS1Px.js";import"./skills-install-D3YB2C-S.js";import"./openai-codex-model-default-Bx8i3bOg.js";import"./auth-token-Dp6bxT29.js";import{n as B}from"./logging-CbMVr2MA.js";import"./provider-auth-helpers-Rv3hdZ7j.js";import"./oauth-tls-preflight-ByNjbUR5.js";import"./auth-choice-options-Dw14noox.js";import{n as ce}from"./auth-choice-prompt-xYj13czb.js";import{i as le,n as ue}from"./auth-choice-EAV1bi1K.js";import"./openai-model-default-Bm9b0oR0.js";import{a as de,n as fe,o as pe,r as me,t as he}from"./model-picker-DeiWyW0N.js";import"./ollama-setup-CGuyH3Ey.js";import{t as ge}from"./systemd-linger-C2MJD6KG.js";import{a as _e}from"./onboard-custom--OylwoHQ.js";import{a as ve,i as ye,n as be,r as xe,t as Se}from"./ipv4-SeeyR-DH.js";import{t as Ce}from"./health-format-VBr6LEpt.js";import{n as we}from"./onboard-remote-C7Eg49Uf.js";import{n as V}from"./onboard-skills-_TBzISd2.js";import Te from"node:path";import Ee from"node:fs/promises";import{confirm as De,intro as Oe,outro as ke,select as Ae,text as je}from"@clack/prompts";const H=[`workspace`,`model`,`web`,`gateway`,`daemon`,`channels`,`skills`,`health`];function Me(e){let t=Array.isArray(e)?e.map(e=>typeof e==`string`?e.trim():``).filter(Boolean):[];if(t.length===0)return{sections:[],invalid:[]};let n=t.filter(e=>!H.includes(e));return{sections:t.filter(e=>H.includes(e)),invalid:n}}const U=[{value:`workspace`,label:`Workspace`,hint:`Set workspace + sessions`},{value:`model`,label:`Model`,hint:`Pick provider + credentials`},{value:`web`,label:`Web tools`,hint:`Configure web search (Perplexity/Brave) + fetch`},{value:`gateway`,label:`Gateway`,hint:`Port, bind, auth, tailscale`},{value:`daemon`,label:`Daemon`,hint:`Install/manage the background service`},{value:`channels`,label:`Channels`,hint:`Link WhatsApp/Telegram/etc and defaults`},{value:`skills`,label:`Skills`,hint:`Install/enable workspace skills`},{value:`health`,label:`Health check`,hint:`Run gateway + channel checks`}],Ne=e=>Oe(D(e)??e),W=e=>ke(D(e)??e),G=e=>je({...e,message:E(e.message)}),K=e=>De({...e,message:E(e.message)}),q=e=>Ae({...e,message:E(e.message),options:e.options.map(e=>e.hint===void 0?e:{...e,hint:O(e.hint)})});async function Pe(t,n){let i={...t},a=()=>m().map(e=>e.meta).filter(e=>i.channels?.[e.id]!==void 0);for(;;){let t=a();if(t.length===0)return A([`No channel config found in openclaw.json.`,`Tip: \`${f(`openclaw channels status`)}\` shows what is configured and enabled.`].join(`
2
2
  `),`Remove channel`),i;let o=S(await q({message:`Remove which channel config?`,options:[...t.map(e=>({value:e.id,label:e.label,hint:`Deletes tokens + settings from config (credentials stay on disk)`})),{value:`done`,label:`Done`}]}),n);if(o===`done`)return i;let s=h(o)?.meta.label??o;if(!S(await K({message:`Delete ${s} configuration from ${r(e)}?`,initialValue:!1}),n))continue;let c={...i.channels};delete c[o],i={...i,channels:Object.keys(c).length?c:void 0},A([`${s} removed from config.`,`Note: credentials/sessions on disk are unchanged.`].join(`
3
3
  `),`Channel removed`)}}async function J(e){let t=R(),n=!1;try{n=await t.isLoaded({env:process.env})}catch(e){if(!L(e))throw e;n=!1}let r=!1,i=!0,a=e.daemonRuntime??`node`;if(n){let n=S(await q({message:`Gateway service already installed`,options:[{value:`restart`,label:`Restart`},{value:`reinstall`,label:`Reinstall`},{value:`skip`,label:`Skip`}]}),e.runtime);if(n===`restart`&&(await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async e=>{e.setLabel(`Restarting Gateway service…`);let n=await t.restart({env:process.env,stdout:process.stdout});e.setLabel(z(`Gateway`,n).progressMessage)}),r=!0,i=!1),n===`skip`)return;n===`reinstall`&&await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async e=>{e.setLabel(`Uninstalling Gateway service…`),await t.uninstall({env:process.env,stdout:process.stdout}),e.setLabel(`Gateway service uninstalled.`)})}if(i){let n=null;if(e.daemonRuntime||(a=F.length===1?F[0]?.value??`node`:S(await q({message:`Gateway service runtime`,options:F,initialValue:I}),e.runtime)),await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async r=>{r.setLabel(`Preparing Gateway service…`);let i=l(),o=await P({config:i,env:process.env});for(let e of o.warnings)A(e,`Gateway`);if(o.unavailableReason){n=[`Gateway install blocked:`,o.unavailableReason,`Fix gateway auth config/token input and rerun configure.`].join(` `),r.setLabel(`Gateway service install blocked.`);return}let{programArguments:s,workingDirectory:c,environment:u}=await M({env:process.env,port:e.port,runtime:a,warn:(e,t)=>A(e,t),config:i});r.setLabel(`Installing Gateway service…`);try{await t.install({env:process.env,stdout:process.stdout,programArguments:s,workingDirectory:c,environment:u}),r.setLabel(`Gateway service installed.`)}catch(e){n=e instanceof Error?e.message:String(e),r.setLabel(`Gateway service install failed.`)}}),n){A(`Gateway service install failed: `+n,`Gateway`),A(N(),`Gateway`);return}r=!0}r&&await ge({runtime:e.runtime,prompter:{confirm:async t=>S(await K(t),e.runtime),note:A},reason:`Linux installs use a systemd user service. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.`,requireConfirm:!0})}function Fe(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t===`undefined`||t===`null`))return t}const Ie=[`anthropic/claude-sonnet-4-6`,`anthropic/claude-opus-4-6`,`anthropic/claude-opus-4-5`,`anthropic/claude-sonnet-4-5`,`anthropic/claude-haiku-4-5`];function Le(e){let t=e.existing?.allowTailscale,n={};if(typeof t==`boolean`&&(n.allowTailscale=t),e.mode===`token`){if(u(e.token))return{...n,mode:`token`,token:e.token};let t=Fe(e.token)??y();return{...n,mode:`token`,token:t}}if(e.mode===`password`){let t=e.password?.trim();return{...n,mode:`password`,...t&&{password:t}}}if(e.mode===`trusted-proxy`){if(!e.trustedProxy)throw Error(`trustedProxy config is required when mode is trusted-proxy`);return{...n,mode:`trusted-proxy`,trustedProxy:e.trustedProxy}}return n}async function Y(e,t,n){let r=await ce({prompter:n,store:o(void 0,{allowKeychainPrompt:!1}),includeSkip:!0}),i=e;if(r===`custom-api-key`)i=(await _e({prompter:n,runtime:t,config:i})).config;else if(r!==`skip`)i=(await le({authChoice:r,config:i,prompter:n,runtime:t,setDefaultModel:!0})).config;else{let e=await de({config:i,prompter:n,allowKeep:!0,ignoreAllowlist:!0,preferredProvider:ue(r)});e.config&&(i=e.config),e.model&&(i=me(i,e.model))}let a=r===`setup-token`||r===`token`||r===`oauth`;if(r!==`custom-api-key`){let e=await pe({config:i,prompter:n,allowedKeys:a?Ie:void 0,initialSelections:a?[`anthropic/claude-sonnet-4-6`]:void 0,message:a?`Anthropic OAuth models`:void 0});e.models&&(i=he(i,e.models),i=fe(i,e.models))}return i}async function X(e,n){let r=S(await G({message:`Gateway port`,initialValue:String(t(e)),validate:e=>Number.isFinite(Number(e))?void 0:`Invalid port`}),n),i=Number.parseInt(String(r),10),o=S(await q({message:`Gateway bind mode`,options:[{value:`loopback`,label:`Loopback (Local only)`,hint:`Bind to 127.0.0.1 - secure, local-only access`},{value:`tailnet`,label:`Tailnet (Tailscale IP)`,hint:`Bind to your Tailscale IP only (100.x.x.x)`},{value:`auto`,label:`Auto (Loopback → LAN)`,hint:`Prefer loopback; fall back to all interfaces if unavailable`},{value:`lan`,label:`LAN (All interfaces)`,hint:`Bind to 0.0.0.0 - accessible from anywhere on your network`},{value:`custom`,label:`Custom IP`,hint:`Specify a specific IP address, with 0.0.0.0 fallback if unavailable`}]}),n),s;if(o===`custom`){let e=S(await G({message:`Custom IP address`,placeholder:`192.168.1.100`,validate:Se}),n);s=typeof e==`string`?e:void 0}let c=S(await q({message:`Gateway auth`,options:[{value:`token`,label:`Token`,hint:`Recommended default`},{value:`password`,label:`Password`},{value:`trusted-proxy`,label:`Trusted Proxy`,hint:`Behind reverse proxy (Pomerium, Caddy, Traefik, etc.)`}],initialValue:`token`}),n),l=S(await q({message:`Tailscale exposure`,options:[...xe]}),n),u=null;l!==`off`&&(u=await a(),u||A(ye.join(`
4
4
  `),`Tailscale Warning`));let f=!1;l!==`off`&&(A(be.join(`
@@ -1 +1 @@
1
- import"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-C8rZRS0X.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import"./compact-CYbPi7_-.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-SqSusZP3.js";import"./diagnostic-D1H7_8QG.js";import"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import"./audio-transcription-runner-BIKj1CBU.js";import"./fetch-guard-DaZmvp-L.js";import"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import"./target-errors-D6wejRd6.js";import"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import"./call-BWx7hNtl.js";import"./pi-tools.policy-B6q8YOfg.js";import"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import"./skill-commands-DCqPy_Aa.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import"./channel-activity-BhiLsKvM.js";import"./tables-DENKrP-W.js";import"./kill-tree-D6nPx1_o.js";import"./runtime-web-tools-BYhCkBV8.js";import"./runtime-CK7gqwEF.js";import"./node-shell-BVZylVP6.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-BPxE8JR7.js";import"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import"./onboard-helpers-DOlI17Ac.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import"./search-manager-CV2YsAym.js";import"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";import{t as e}from"./outbound-CqDxMWLZ.js";import"./channel-web-CwUfYqjg.js";import"./session-bk3gFwO4.js";import"./login-CcYeF5T_.js";import"./web-DPQjx48C.js";export{e as sendMessageWhatsApp};
1
+ import"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-C8rZRS0X.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import"./compact-uyQDx8pN.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-SqSusZP3.js";import"./diagnostic-D1H7_8QG.js";import"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import"./audio-transcription-runner-BIKj1CBU.js";import"./fetch-guard-DaZmvp-L.js";import"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import"./target-errors-D6wejRd6.js";import"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import"./call-BWx7hNtl.js";import"./pi-tools.policy-B6q8YOfg.js";import"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import"./skill-commands-DCqPy_Aa.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import"./channel-activity-BhiLsKvM.js";import"./tables-DENKrP-W.js";import"./kill-tree-D6nPx1_o.js";import"./runtime-web-tools-BYhCkBV8.js";import"./runtime-CK7gqwEF.js";import"./node-shell-BVZylVP6.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-BPxE8JR7.js";import"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import"./onboard-helpers-DOlI17Ac.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import"./search-manager-CV2YsAym.js";import"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";import{t as e}from"./outbound-CqDxMWLZ.js";import"./channel-web-Qr8ST6tz.js";import"./session-bk3gFwO4.js";import"./login-CcYeF5T_.js";import"./web-CMSYMAHG.js";export{e as sendMessageWhatsApp};
@@ -1 +1 @@
1
- import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import"./model-selection-D7mdJmGK.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import"./logger-5W0OocJW.js";import"./send-4h1tQwX3.js";import"./send-CciNyaWL.js";import"./pi-embedded-X_Svd4Wi.js";import"./tokens-CL2fSjGl.js";import"./deliver-BhWhLvQO.js";import"./diagnostic-VBPCgF9l.js";import"./send--9G8eXo4.js";import"./pi-model-discovery-BonZ1N3x.js";import"./image-BBO-0uLG.js";import"./audio-transcription-runner-9H9eUZ1D.js";import"./fetch-DBat25iG.js";import"./fetch-guard-DvaNcypz.js";import"./api-key-rotation-DayEfYpa.js";import"./proxy-fetch-BZ9O8Dvj.js";import"./ir-BTfsA9Dd.js";import"./render-CBsnn-2A.js";import"./target-errors-Dnkqss9y.js";import"./commands-registry-C5Hg7gyk.js";import"./fetch-_g8lZ8K8.js";import"./skill-commands-CtprBvm0.js";import"./channel-activity-htoVXTET.js";import"./tables-_t5V36m9.js";import"./send-hlES-kRl2.js";import"./outbound-attachment-E89zumcH.js";import"./send-7qgAI0ap.js";import"./fetch-BJT3BrkJ.js";import"./query-expansion-BUUx_oWg.js";import"./manager-CN_rQm1L.js";import{t as e}from"./outbound-xlG_RqEu.js";import"./session-CfHCnrXh.js";import"./login-BGLWiksP.js";import"./web-u71NbOpT.js";export{e as sendMessageWhatsApp};
1
+ import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import"./model-selection-D7mdJmGK.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import"./logger-5W0OocJW.js";import"./send-4h1tQwX3.js";import"./send-CciNyaWL.js";import"./pi-embedded-CoHiJa9Q.js";import"./tokens-CL2fSjGl.js";import"./deliver-BhWhLvQO.js";import"./diagnostic-VBPCgF9l.js";import"./send--9G8eXo4.js";import"./pi-model-discovery-BonZ1N3x.js";import"./image-BBO-0uLG.js";import"./audio-transcription-runner-9H9eUZ1D.js";import"./fetch-DBat25iG.js";import"./fetch-guard-DvaNcypz.js";import"./api-key-rotation-DayEfYpa.js";import"./proxy-fetch-BZ9O8Dvj.js";import"./ir-BTfsA9Dd.js";import"./render-CBsnn-2A.js";import"./target-errors-Dnkqss9y.js";import"./commands-registry-C5Hg7gyk.js";import"./fetch-_g8lZ8K8.js";import"./skill-commands-CtprBvm0.js";import"./channel-activity-htoVXTET.js";import"./tables-_t5V36m9.js";import"./send-hlES-kRl2.js";import"./outbound-attachment-E89zumcH.js";import"./send-7qgAI0ap.js";import"./fetch-BJT3BrkJ.js";import"./query-expansion-BUUx_oWg.js";import"./manager-CN_rQm1L.js";import{t as e}from"./outbound-xlG_RqEu.js";import"./session-CfHCnrXh.js";import"./login-BGLWiksP.js";import"./web-BbOH61Lx.js";export{e as sendMessageWhatsApp};
@@ -1 +1 @@
1
- import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-selection-DvekK9rZ.js";import"./pi-embedded-6yGEd2xd.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DiHS8tKf.js";import"./send-BjrfjBn9.js";import"./tokens-B2fq-rL6.js";import"./deliver-AM3FP5rj.js";import"./diagnostic-DtuQPRbp.js";import"./send-C4Lm4nmt.js";import"./pi-model-discovery-DVKXkQTR.js";import"./image-CcsuUB1B.js";import"./audio-transcription-runner-CQ7rq0d_.js";import"./fetch-D5wrJ0AX.js";import"./fetch-guard-oWKGrwV4.js";import"./api-key-rotation-BLt5E2Cw.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-B7mdG27k.js";import"./render-BXEUPIHe.js";import"./target-errors-sMFXKeAY.js";import"./commands-registry-gvMK7Pw9.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CPZcaV8-.js";import"./channel-activity-DmgWmSAG.js";import"./tables-D6J-isob.js";import"./send-CWVTcDAW.js";import"./outbound-attachment-Bah4dvuM.js";import"./send-swTiQAeK2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-iFi--Fru.js";import{t as e}from"./outbound-DmwQEFu0.js";import"./session-JqCxWBM8.js";import"./login-DWZzj-P1.js";import"./web-Dfi2WjvN.js";export{e as sendMessageWhatsApp};
1
+ import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-selection-DvekK9rZ.js";import"./pi-embedded-DLlQ5e_w.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DiHS8tKf.js";import"./send-BjrfjBn9.js";import"./tokens-B2fq-rL6.js";import"./deliver-AM3FP5rj.js";import"./diagnostic-DtuQPRbp.js";import"./send-C4Lm4nmt.js";import"./pi-model-discovery-DVKXkQTR.js";import"./image-CcsuUB1B.js";import"./audio-transcription-runner-CQ7rq0d_.js";import"./fetch-D5wrJ0AX.js";import"./fetch-guard-oWKGrwV4.js";import"./api-key-rotation-BLt5E2Cw.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-B7mdG27k.js";import"./render-BXEUPIHe.js";import"./target-errors-sMFXKeAY.js";import"./commands-registry-gvMK7Pw9.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CPZcaV8-.js";import"./channel-activity-DmgWmSAG.js";import"./tables-D6J-isob.js";import"./send-CWVTcDAW.js";import"./outbound-attachment-Bah4dvuM.js";import"./send-swTiQAeK2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-iFi--Fru.js";import{t as e}from"./outbound-DmwQEFu0.js";import"./session-JqCxWBM8.js";import"./login-DWZzj-P1.js";import"./web-WBvnAfBv.js";export{e as sendMessageWhatsApp};
@@ -1 +1 @@
1
- import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-BLbnMb5E.js";import"./reply-DwfVhea1.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BwjMhAUa.js";import"./image-BP1cfEh1.js";import"./models-config-BlQ39qlq.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-7BAwnP4a.js";import"./api-key-rotation-Rz2ESQSA.js";import"./local-roots-aA-4ohTq.js";import"./model-catalog-D-hkNWin.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DUNkj4hy.js";import"./commands-CGpM84iR.js";import"./commands-registry-DlvNUkXz.js";import"./pairing-store-EmfFQVcs.js";import"./fetch-Dikjvc5M.js";import"./call-JB-cGR9n.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-BEZszppF.js";import"./send-NbU9-scF2.js";import"./pi-model-discovery-DnJkNRc-.js";import"./exec-approvals-allowlist-B-Yf6RsU.js";import"./exec-safe-bin-runtime-policy-CRPHdPbF.js";import"./ir-CNTx85qV.js";import"./render-D8OWO2hT.js";import"./target-errors-CoEHv_2r.js";import"./read-only-account-inspect-B0cm8yrv.js";import"./channel-selection-si1OzWyQ.js";import"./plugin-auto-enable-CTgkkJK7.js";import"./send-DmHpf5Fz.js";import"./outbound-attachment-9-8VNvRG.js";import"./delivery-queue-CKbauSFq.js";import"./send-AQ3CJLpI.js";import"./channel-activity-Dw6F-ehJ.js";import"./tables-fl9iXahm.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-DlHVddAk.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-B8RdfK2y.js";import"./restart-BeJuoXCx.js";import"./runtime-web-tools-C4F6aaRh.js";import"./command-secret-targets-CfXtLkLF.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-smZlFWxD.js";import"./onboard-helpers-D90u4wVK.js";import"./prompt-style-CXKekIBY.js";import"./pairing-labels-PIuZfthz.js";import"./memory-cli-BouV_wyL.js";import"./query-expansion-0OxEb1Io.js";import"./manager-CI6O4QH6.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-8nRBsfID.js";import"./system-run-command-E8ymBXHh.js";import"./runtime-DYttInEE.js";import"./stagger-DmFYysrJ.js";import"./channel-web-CCSMlUux.js";import{t as e}from"./outbound-BevYwvMh.js";import"./session-BSRnpwSq.js";import"./login-DSZdCiDx.js";import"./web-C0WkwHal.js";export{e as sendMessageWhatsApp};
1
+ import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-BLbnMb5E.js";import"./reply-mWIMy_ju.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-C7rOdjPO.js";import"./send-BwblpWbK.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BwjMhAUa.js";import"./image-BP1cfEh1.js";import"./models-config-BlQ39qlq.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-7BAwnP4a.js";import"./api-key-rotation-Rz2ESQSA.js";import"./local-roots-aA-4ohTq.js";import"./model-catalog-D-hkNWin.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DUNkj4hy.js";import"./commands-CGpM84iR.js";import"./commands-registry-DlvNUkXz.js";import"./pairing-store-EmfFQVcs.js";import"./fetch-Dikjvc5M.js";import"./call-JB-cGR9n.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-BEZszppF.js";import"./send-NbU9-scF2.js";import"./pi-model-discovery-DnJkNRc-.js";import"./exec-approvals-allowlist-B-Yf6RsU.js";import"./exec-safe-bin-runtime-policy-CRPHdPbF.js";import"./ir-CNTx85qV.js";import"./render-D8OWO2hT.js";import"./target-errors-CoEHv_2r.js";import"./read-only-account-inspect-B0cm8yrv.js";import"./channel-selection-si1OzWyQ.js";import"./plugin-auto-enable-CTgkkJK7.js";import"./send-DmHpf5Fz.js";import"./outbound-attachment-9-8VNvRG.js";import"./delivery-queue-CKbauSFq.js";import"./send-AQ3CJLpI.js";import"./channel-activity-Dw6F-ehJ.js";import"./tables-fl9iXahm.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-DlHVddAk.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-B8RdfK2y.js";import"./restart-BeJuoXCx.js";import"./runtime-web-tools-C4F6aaRh.js";import"./command-secret-targets-CfXtLkLF.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-smZlFWxD.js";import"./onboard-helpers-D90u4wVK.js";import"./prompt-style-CXKekIBY.js";import"./pairing-labels-PIuZfthz.js";import"./memory-cli-BouV_wyL.js";import"./query-expansion-0OxEb1Io.js";import"./manager-CI6O4QH6.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-8nRBsfID.js";import"./system-run-command-E8ymBXHh.js";import"./runtime-DYttInEE.js";import"./stagger-DmFYysrJ.js";import"./channel-web-TKrgB4oQ.js";import{t as e}from"./outbound-BevYwvMh.js";import"./session-BSRnpwSq.js";import"./login-DSZdCiDx.js";import"./web-BPloShgg.js";export{e as sendMessageWhatsApp};
@@ -1 +1 @@
1
- import{r as e}from"./command-format-CLxIPuLR.js";import{t}from"./openclaw-root-CnsBf6ZU.js";import{t as n}from"./note-Dp-d_utk.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-BVbT_aR2.js";import{spawnSync as l}from"node:child_process";import u from"node:path";async function d(){let e=await t({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!e)return!1;let n=u.join(e,`openclaw.mjs`);return l(process.execPath,[n,`completion`,`--write-state`],{cwd:e,env:process.env,encoding:`utf-8`}).status===0}async function f(e=`openclaw`){let t=a();return{shell:t,profileInstalled:await i(t,e),cacheExists:await c(t,e),cachePath:r(t,e),usesSlowPattern:await s(t,e)}}async function p(t,r,i={}){let a=e(),s=await f(a);if(s.usesSlowPattern){if(n(`Your ${s.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!s.cacheExists&&!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion upgraded. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(s.profileInstalled&&!s.cacheExists){n(`Shell completion is configured in your ${s.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await d()?n(`Completion cache regenerated at ${s.cachePath}`,`Shell completion`):n(`Failed to regenerate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}if(!s.profileInstalled){if(i.nonInteractive)return;if(await r.confirm({message:`Enable ${s.shell} shell completion for ${a}?`,initialValue:!0})){if(!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion installed. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function m(e=`openclaw`){return await c(a(),e)?!0:d()}export{p as n,m as r,f as t};
1
+ import{r as e}from"./command-format-CLxIPuLR.js";import{t}from"./openclaw-root-CnsBf6ZU.js";import{t as n}from"./note-Dp-d_utk.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-DHH7Zr2u.js";import{spawnSync as l}from"node:child_process";import u from"node:path";async function d(){let e=await t({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!e)return!1;let n=u.join(e,`openclaw.mjs`);return l(process.execPath,[n,`completion`,`--write-state`],{cwd:e,env:process.env,encoding:`utf-8`}).status===0}async function f(e=`openclaw`){let t=a();return{shell:t,profileInstalled:await i(t,e),cacheExists:await c(t,e),cachePath:r(t,e),usesSlowPattern:await s(t,e)}}async function p(t,r,i={}){let a=e(),s=await f(a);if(s.usesSlowPattern){if(n(`Your ${s.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!s.cacheExists&&!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion upgraded. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(s.profileInstalled&&!s.cacheExists){n(`Shell completion is configured in your ${s.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await d()?n(`Completion cache regenerated at ${s.cachePath}`,`Shell completion`):n(`Failed to regenerate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}if(!s.profileInstalled){if(i.nonInteractive)return;if(await r.confirm({message:`Enable ${s.shell} shell completion for ${a}?`,initialValue:!0})){if(!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion installed. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function m(e=`openclaw`){return await c(a(),e)?!0:d()}export{p as n,m as r,f as t};
@@ -1 +1 @@
1
- import{t as e}from"./openclaw-root-D_0Q6--h.js";import{r as t}from"./command-format-BbDT1tlm.js";import{t as n}from"./note-D4GAwgha.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-Bw_hBrlA.js";import l from"node:path";import{spawnSync as u}from"node:child_process";async function d(){let t=await e({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!t)return!1;let n=l.join(t,`openclaw.mjs`);return u(process.execPath,[n,`completion`,`--write-state`],{cwd:t,env:process.env,encoding:`utf-8`}).status===0}async function f(e=`openclaw`){let t=a();return{shell:t,profileInstalled:await i(t,e),cacheExists:await c(t,e),cachePath:r(t,e),usesSlowPattern:await s(t,e)}}async function p(e,r,i={}){let a=t(),s=await f(a);if(s.usesSlowPattern){if(n(`Your ${s.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!s.cacheExists&&!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion upgraded. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(s.profileInstalled&&!s.cacheExists){n(`Shell completion is configured in your ${s.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await d()?n(`Completion cache regenerated at ${s.cachePath}`,`Shell completion`):n(`Failed to regenerate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}if(!s.profileInstalled){if(i.nonInteractive)return;if(await r.confirm({message:`Enable ${s.shell} shell completion for ${a}?`,initialValue:!0})){if(!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion installed. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function m(e=`openclaw`){return await c(a(),e)?!0:d()}export{p as n,m as r,f as t};
1
+ import{t as e}from"./openclaw-root-D_0Q6--h.js";import{r as t}from"./command-format-BbDT1tlm.js";import{t as n}from"./note-D4GAwgha.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-ByNU0Lbo.js";import l from"node:path";import{spawnSync as u}from"node:child_process";async function d(){let t=await e({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!t)return!1;let n=l.join(t,`openclaw.mjs`);return u(process.execPath,[n,`completion`,`--write-state`],{cwd:t,env:process.env,encoding:`utf-8`}).status===0}async function f(e=`openclaw`){let t=a();return{shell:t,profileInstalled:await i(t,e),cacheExists:await c(t,e),cachePath:r(t,e),usesSlowPattern:await s(t,e)}}async function p(e,r,i={}){let a=t(),s=await f(a);if(s.usesSlowPattern){if(n(`Your ${s.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!s.cacheExists&&!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion upgraded. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(s.profileInstalled&&!s.cacheExists){n(`Shell completion is configured in your ${s.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await d()?n(`Completion cache regenerated at ${s.cachePath}`,`Shell completion`):n(`Failed to regenerate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}if(!s.profileInstalled){if(i.nonInteractive)return;if(await r.confirm({message:`Enable ${s.shell} shell completion for ${a}?`,initialValue:!0})){if(!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion installed. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function m(e=`openclaw`){return await c(a(),e)?!0:d()}export{p as n,m as r,f as t};
package/dist/entry.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{$ as e,Z as t,et as n,t as r}from"./subsystem-BLbY429l.js";import{y as i}from"./paths-BjD3T_xq.js";import{t as a}from"./profile-utils-CWmra1aY.js";import{t as o}from"./boolean-D15s2V33.js";import{enableCompileCache as s}from"node:module";import{spawn as c}from"node:child_process";import l from"node:process";import{fileURLToPath as u}from"node:url";import d from"node:os";import f from"node:path";import p from"node:fs";function m(e,t){if(e.includes(`=`)){let[,t]=e.split(`=`,2);return{value:(t??``).trim()||null,consumedNext:!1}}return{value:(t??``).trim()||null,consumedNext:!!t}}function h(e){if(e.length<2)return{ok:!0,profile:null,argv:e};let t=e.slice(0,2),n=null,r=!1,i=!1,o=e.slice(2);for(let e=0;e<o.length;e+=1){let s=o[e];if(s!==void 0){if(i){t.push(s);continue}if(s===`--dev`){if(n&&n!==`dev`)return{ok:!1,error:`Cannot combine --dev with --profile`};r=!0,n=`dev`;continue}if(s===`--profile`||s.startsWith(`--profile=`)){if(r)return{ok:!1,error:`Cannot combine --dev with --profile`};let t=o[e+1],{value:i,consumedNext:c}=m(s,t);if(c&&(e+=1),!i)return{ok:!1,error:`--profile requires a value`};if(!a(i))return{ok:!1,error:`Invalid --profile (use letters, numbers, "_", "-" only)`};n=i;continue}if(!s.startsWith(`-`)){i=!0,t.push(s);continue}t.push(s)}}return{ok:!0,profile:n,argv:t}}function g(e,t,n){let r=e.toLowerCase()===`default`?``:`-${e}`;return f.join(i(t,n),`.qbotclaw${r}`)}function _(e){let t=e.env??process.env,n=e.homedir??d.homedir,r=e.profile.trim();if(!r)return;t.OPENCLAW_PROFILE=r;let i=t.OPENCLAW_STATE_DIR?.trim()||g(r,t,n);t.OPENCLAW_STATE_DIR?.trim()||(t.OPENCLAW_STATE_DIR=i),t.OPENCLAW_CONFIG_PATH?.trim()||(t.OPENCLAW_CONFIG_PATH=f.join(i,`openclaw.json`)),r===`dev`&&!t.OPENCLAW_GATEWAY_PORT?.trim()&&(t.OPENCLAW_GATEWAY_PORT=`19001`)}function v(e){return t(e)}function y(e){if(process.platform!==`win32`||e.length<2)return e;let t=e=>{let t=``;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);r>=32&&r!==127&&(t+=e[n])}return t},n=e=>t(e).replace(/^['"]+|['"]+$/g,``).trim(),r=e=>n(e).replace(/^\\\\\\?\\/,``),i=r(process.execPath),a=i.toLowerCase(),o=f.basename(i).toLowerCase(),s=e=>{if(!e)return!1;let t=r(e);if(!t)return!1;let n=t.toLowerCase();return n===a||f.basename(n)===o||n.endsWith(`\\node.exe`)||n.endsWith(`/node.exe`)||n.includes(`node.exe`)||f.basename(n)===`node.exe`&&p.existsSync(t)},c=[...e];for(let e=1;e<=3&&e<c.length;){if(s(c[e])){c.splice(e,1);continue}e+=1}let l=c.filter((e,t)=>t===0||!s(e));if(l.length<3)return l;let u=[...l];for(let e=2;e<u.length;){let t=u[e];if(!t||t.startsWith(`-`)){e+=1;continue}if(s(t)){u.splice(e,1);continue}break}return u}const b=r(`env`),x=new Set;function S(e,t){if(t)return`<redacted>`;let n=e.replace(/\s+/g,` `).trim();return n.length<=160?n:`${n.slice(0,160)}…`}function C(e){if(process.env.VITEST||x.has(e.key))return;let t=e.value??process.env[e.key];!t||!t.trim()||(x.add(e.key),b.info(`env: ${e.key}=${S(t,e.redact)} (${e.description})`))}function w(){!process.env.ZAI_API_KEY?.trim()&&process.env.Z_AI_API_KEY?.trim()&&(process.env.ZAI_API_KEY=process.env.Z_AI_API_KEY)}function T(e){return o(e)===!0}function E(){w()}function D(e,t){if(!e)return;let n=f.resolve(t,e);try{return p.realpathSync.native(n)}catch{return n}}function O({currentFile:e,argv:t=process.argv,env:n=process.env,cwd:r=process.cwd(),wrapperEntryPairs:i=[]}){let a=D(e,r),o=D(t[1],r);if(a&&o&&a===o)return!0;let s=D(n.pm_exec_path,r);if(a&&s&&a===s)return!0;if(a&&o&&i.length>0){let e=f.basename(a),t=f.basename(o);if(i.some(({wrapperBasename:n,entryBasename:r})=>e===r&&t===n))return!0}return!!(a&&o&&f.basename(a)===f.basename(o))}const k=`OPENCLAW_CLI`;function A(e){return{...e,[k]:`1`}}function j(e=process.env){return e[k]=`1`,e}const M=Symbol.for(`openclaw.warning-filter`);function N(e){return!!(e.code===`DEP0040`&&e.message?.includes(`punycode`)||e.code===`DEP0060`&&e.message?.includes(`util._extend`)||e.name===`ExperimentalWarning`&&e.message?.includes(`SQLite is an experimental feature`))}function P(e){let t=e[0],n=e[1],r=e[2],i,a,o;if(t instanceof Error?(i=t.name,o=t.message,a=t.code):typeof t==`string`&&(o=t),n&&typeof n==`object`&&!Array.isArray(n)){let e=n;typeof e.type==`string`&&(i=e.type),typeof e.code==`string`&&(a=e.code)}else typeof n==`string`&&(i=n),typeof r==`string`&&(a=r);return{name:i,code:a,message:o}}function F(){let e=globalThis;if(e[M]?.installed)return;let t=process.emitWarning.bind(process),n=((...e)=>{if(!N(P(e)))return Reflect.apply(t,process,e)});process.emitWarning=n,e[M]={installed:!0}}const I=l.platform===`win32`?[`SIGTERM`,`SIGINT`,`SIGBREAK`]:[`SIGTERM`,`SIGINT`,`SIGHUP`,`SIGQUIT`];function L(e,{signals:t=I,onSignal:n}={}){let r=new Map;for(let i of t){let t=()=>{n?.(i);try{e.kill(i)}catch{}};try{l.on(i,t),r.set(i,t)}catch{}}let i=()=>{for(let[e,t]of r)l.off(e,t);r.clear()};return e.once(`exit`,i),e.once(`error`,i),{detach:i}}const R=[{wrapperBasename:`openclaw.mjs`,entryBasename:`entry.js`},{wrapperBasename:`openclaw.js`,entryBasename:`entry.js`}];function z(e){let t=e.slice(2).filter(e=>e.length>0&&!e.startsWith(`-`));for(let e=0;e<t.length-1;e+=1)if(t[e]===`secrets`&&t[e+1]===`audit`)return!0;return!1}if(O({currentFile:u(import.meta.url),wrapperEntryPairs:[...R]})){if(l.title=`openclaw`,j(),F(),E(),!T(l.env.NODE_DISABLE_COMPILE_CACHE))try{s()}catch{}z(l.argv)&&(l.env.OPENCLAW_AUTH_STORE_READONLY=`1`),l.argv.includes(`--no-color`)&&(l.env.NO_COLOR=`1`,l.env.FORCE_COLOR=`0`);let t=`--disable-warning=ExperimentalWarning`;function r(){let e=l.env.NODE_OPTIONS??``;if(e.includes(t)||e.includes(`--no-warnings`))return!0;for(let e of l.execArgv)if(e===t||e===`--no-warnings`)return!0;return!1}function i(){if(v(l.argv)||T(l.env.OPENCLAW_NO_RESPAWN)||T(l.env.OPENCLAW_NODE_OPTIONS_READY)||r())return!1;l.env.OPENCLAW_NODE_OPTIONS_READY=`1`;let e=c(l.execPath,[t,...l.execArgv,...l.argv.slice(1)],{stdio:`inherit`,env:l.env});return L(e),e.once(`exit`,(e,t)=>{if(t){l.exitCode=1;return}l.exit(e??1)}),e.once(`error`,e=>{console.error(`[openclaw] Failed to respawn CLI:`,e instanceof Error?e.stack??e.message:e),l.exit(1)}),!0}function a(e){return n(e)?(import(`./version-q3SkUw2K.js`).then(e=>e.r).then(({VERSION:e})=>{console.log(e),l.exit(0)}).catch(e=>{console.error(`[openclaw] Failed to resolve version:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}function o(t){return e(t)?(import(`./program-D53eGuSf.js`).then(({buildProgram:e})=>{e().outputHelp()}).catch(e=>{console.error(`[openclaw] Failed to display help:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}if(l.argv=y(l.argv),!i()){let e=h(l.argv);e.ok||(console.error(`[openclaw] ${e.error}`),l.exit(2)),e.profile&&(_({profile:e.profile}),l.argv=e.argv),!a(l.argv)&&!o(l.argv)&&import(`./run-main-CjwjyWA6.js`).then(({runCli:e})=>e(l.argv)).catch(e=>{console.error(`[openclaw] Failed to start CLI:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1})}}export{C as a,_ as c,T as i,h as l,A as n,E as o,O as r,y as s,F as t};
2
+ import{$ as e,Z as t,et as n,t as r}from"./subsystem-BLbY429l.js";import{y as i}from"./paths-BjD3T_xq.js";import{t as a}from"./profile-utils-CWmra1aY.js";import{t as o}from"./boolean-D15s2V33.js";import{enableCompileCache as s}from"node:module";import{spawn as c}from"node:child_process";import l from"node:process";import{fileURLToPath as u}from"node:url";import d from"node:os";import f from"node:path";import p from"node:fs";function m(e,t){if(e.includes(`=`)){let[,t]=e.split(`=`,2);return{value:(t??``).trim()||null,consumedNext:!1}}return{value:(t??``).trim()||null,consumedNext:!!t}}function h(e){if(e.length<2)return{ok:!0,profile:null,argv:e};let t=e.slice(0,2),n=null,r=!1,i=!1,o=e.slice(2);for(let e=0;e<o.length;e+=1){let s=o[e];if(s!==void 0){if(i){t.push(s);continue}if(s===`--dev`){if(n&&n!==`dev`)return{ok:!1,error:`Cannot combine --dev with --profile`};r=!0,n=`dev`;continue}if(s===`--profile`||s.startsWith(`--profile=`)){if(r)return{ok:!1,error:`Cannot combine --dev with --profile`};let t=o[e+1],{value:i,consumedNext:c}=m(s,t);if(c&&(e+=1),!i)return{ok:!1,error:`--profile requires a value`};if(!a(i))return{ok:!1,error:`Invalid --profile (use letters, numbers, "_", "-" only)`};n=i;continue}if(!s.startsWith(`-`)){i=!0,t.push(s);continue}t.push(s)}}return{ok:!0,profile:n,argv:t}}function g(e,t,n){let r=e.toLowerCase()===`default`?``:`-${e}`;return f.join(i(t,n),`.qbotclaw${r}`)}function _(e){let t=e.env??process.env,n=e.homedir??d.homedir,r=e.profile.trim();if(!r)return;t.OPENCLAW_PROFILE=r;let i=t.OPENCLAW_STATE_DIR?.trim()||g(r,t,n);t.OPENCLAW_STATE_DIR?.trim()||(t.OPENCLAW_STATE_DIR=i),t.OPENCLAW_CONFIG_PATH?.trim()||(t.OPENCLAW_CONFIG_PATH=f.join(i,`openclaw.json`)),r===`dev`&&!t.OPENCLAW_GATEWAY_PORT?.trim()&&(t.OPENCLAW_GATEWAY_PORT=`19001`)}function v(e){return t(e)}function y(e){if(process.platform!==`win32`||e.length<2)return e;let t=e=>{let t=``;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);r>=32&&r!==127&&(t+=e[n])}return t},n=e=>t(e).replace(/^['"]+|['"]+$/g,``).trim(),r=e=>n(e).replace(/^\\\\\\?\\/,``),i=r(process.execPath),a=i.toLowerCase(),o=f.basename(i).toLowerCase(),s=e=>{if(!e)return!1;let t=r(e);if(!t)return!1;let n=t.toLowerCase();return n===a||f.basename(n)===o||n.endsWith(`\\node.exe`)||n.endsWith(`/node.exe`)||n.includes(`node.exe`)||f.basename(n)===`node.exe`&&p.existsSync(t)},c=[...e];for(let e=1;e<=3&&e<c.length;){if(s(c[e])){c.splice(e,1);continue}e+=1}let l=c.filter((e,t)=>t===0||!s(e));if(l.length<3)return l;let u=[...l];for(let e=2;e<u.length;){let t=u[e];if(!t||t.startsWith(`-`)){e+=1;continue}if(s(t)){u.splice(e,1);continue}break}return u}const b=r(`env`),x=new Set;function S(e,t){if(t)return`<redacted>`;let n=e.replace(/\s+/g,` `).trim();return n.length<=160?n:`${n.slice(0,160)}…`}function C(e){if(process.env.VITEST||x.has(e.key))return;let t=e.value??process.env[e.key];!t||!t.trim()||(x.add(e.key),b.info(`env: ${e.key}=${S(t,e.redact)} (${e.description})`))}function w(){!process.env.ZAI_API_KEY?.trim()&&process.env.Z_AI_API_KEY?.trim()&&(process.env.ZAI_API_KEY=process.env.Z_AI_API_KEY)}function T(e){return o(e)===!0}function E(){w()}function D(e,t){if(!e)return;let n=f.resolve(t,e);try{return p.realpathSync.native(n)}catch{return n}}function O({currentFile:e,argv:t=process.argv,env:n=process.env,cwd:r=process.cwd(),wrapperEntryPairs:i=[]}){let a=D(e,r),o=D(t[1],r);if(a&&o&&a===o)return!0;let s=D(n.pm_exec_path,r);if(a&&s&&a===s)return!0;if(a&&o&&i.length>0){let e=f.basename(a),t=f.basename(o);if(i.some(({wrapperBasename:n,entryBasename:r})=>e===r&&t===n))return!0}return!!(a&&o&&f.basename(a)===f.basename(o))}const k=`OPENCLAW_CLI`;function A(e){return{...e,[k]:`1`}}function j(e=process.env){return e[k]=`1`,e}const M=Symbol.for(`openclaw.warning-filter`);function N(e){return!!(e.code===`DEP0040`&&e.message?.includes(`punycode`)||e.code===`DEP0060`&&e.message?.includes(`util._extend`)||e.name===`ExperimentalWarning`&&e.message?.includes(`SQLite is an experimental feature`))}function P(e){let t=e[0],n=e[1],r=e[2],i,a,o;if(t instanceof Error?(i=t.name,o=t.message,a=t.code):typeof t==`string`&&(o=t),n&&typeof n==`object`&&!Array.isArray(n)){let e=n;typeof e.type==`string`&&(i=e.type),typeof e.code==`string`&&(a=e.code)}else typeof n==`string`&&(i=n),typeof r==`string`&&(a=r);return{name:i,code:a,message:o}}function F(){let e=globalThis;if(e[M]?.installed)return;let t=process.emitWarning.bind(process),n=((...e)=>{if(!N(P(e)))return Reflect.apply(t,process,e)});process.emitWarning=n,e[M]={installed:!0}}const I=l.platform===`win32`?[`SIGTERM`,`SIGINT`,`SIGBREAK`]:[`SIGTERM`,`SIGINT`,`SIGHUP`,`SIGQUIT`];function L(e,{signals:t=I,onSignal:n}={}){let r=new Map;for(let i of t){let t=()=>{n?.(i);try{e.kill(i)}catch{}};try{l.on(i,t),r.set(i,t)}catch{}}let i=()=>{for(let[e,t]of r)l.off(e,t);r.clear()};return e.once(`exit`,i),e.once(`error`,i),{detach:i}}const R=[{wrapperBasename:`openclaw.mjs`,entryBasename:`entry.js`},{wrapperBasename:`openclaw.js`,entryBasename:`entry.js`}];function z(e){let t=e.slice(2).filter(e=>e.length>0&&!e.startsWith(`-`));for(let e=0;e<t.length-1;e+=1)if(t[e]===`secrets`&&t[e+1]===`audit`)return!0;return!1}if(O({currentFile:u(import.meta.url),wrapperEntryPairs:[...R]})){if(l.title=`openclaw`,j(),F(),E(),!T(l.env.NODE_DISABLE_COMPILE_CACHE))try{s()}catch{}z(l.argv)&&(l.env.OPENCLAW_AUTH_STORE_READONLY=`1`),l.argv.includes(`--no-color`)&&(l.env.NO_COLOR=`1`,l.env.FORCE_COLOR=`0`);let t=`--disable-warning=ExperimentalWarning`;function r(){let e=l.env.NODE_OPTIONS??``;if(e.includes(t)||e.includes(`--no-warnings`))return!0;for(let e of l.execArgv)if(e===t||e===`--no-warnings`)return!0;return!1}function i(){if(v(l.argv)||T(l.env.OPENCLAW_NO_RESPAWN)||T(l.env.OPENCLAW_NODE_OPTIONS_READY)||r())return!1;l.env.OPENCLAW_NODE_OPTIONS_READY=`1`;let e=c(l.execPath,[t,...l.execArgv,...l.argv.slice(1)],{stdio:`inherit`,env:l.env});return L(e),e.once(`exit`,(e,t)=>{if(t){l.exitCode=1;return}l.exit(e??1)}),e.once(`error`,e=>{console.error(`[openclaw] Failed to respawn CLI:`,e instanceof Error?e.stack??e.message:e),l.exit(1)}),!0}function a(e){return n(e)?(import(`./version-q3SkUw2K.js`).then(e=>e.r).then(({VERSION:e})=>{console.log(e),l.exit(0)}).catch(e=>{console.error(`[openclaw] Failed to resolve version:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}function o(t){return e(t)?(import(`./program-RvezCMDs.js`).then(({buildProgram:e})=>{e().outputHelp()}).catch(e=>{console.error(`[openclaw] Failed to display help:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}if(l.argv=y(l.argv),!i()){let e=h(l.argv);e.ok||(console.error(`[openclaw] ${e.error}`),l.exit(2)),e.profile&&(_({profile:e.profile}),l.argv=e.argv),!a(l.argv)&&!o(l.argv)&&import(`./run-main-B2f6FBb0.js`).then(({runCli:e})=>e(l.argv)).catch(e=>{console.error(`[openclaw] Failed to start CLI:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1})}}export{C as a,_ as c,T as i,h as l,A as n,E as o,O as r,y as s,F as t};
@@ -1 +1 @@
1
- import{V as e,W as t,it as n,n as r,s as i}from"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import{ac as a,an as o,m as s,oc as c,tn as l}from"./model-selection-DvekK9rZ.js";import{J as u,K as d,t as f}from"./pi-embedded-6yGEd2xd.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DiHS8tKf.js";import"./send-BjrfjBn9.js";import"./tokens-B2fq-rL6.js";import"./deliver-AM3FP5rj.js";import"./diagnostic-DtuQPRbp.js";import"./send-C4Lm4nmt.js";import"./pi-model-discovery-DVKXkQTR.js";import"./image-CcsuUB1B.js";import"./audio-transcription-runner-CQ7rq0d_.js";import"./fetch-D5wrJ0AX.js";import"./fetch-guard-oWKGrwV4.js";import"./api-key-rotation-BLt5E2Cw.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-B7mdG27k.js";import"./render-BXEUPIHe.js";import"./target-errors-sMFXKeAY.js";import"./commands-registry-gvMK7Pw9.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CPZcaV8-.js";import"./channel-activity-DmgWmSAG.js";import"./tables-D6J-isob.js";import"./send-CWVTcDAW.js";import"./outbound-attachment-Bah4dvuM.js";import"./send-swTiQAeK2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-iFi--Fru.js";export{a as DEFAULT_MODEL,c as DEFAULT_PROVIDER,n as ensureAgentWorkspace,l as loadSessionStore,e as resolveAgentDir,u as resolveAgentIdentity,d as resolveAgentTimeoutMs,t as resolveAgentWorkspaceDir,r as resolveSessionFilePath,i as resolveStorePath,s as resolveThinkingDefault,f as runEmbeddedPiAgent,o as saveSessionStore};
1
+ import{V as e,W as t,it as n,n as r,s as i}from"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import{ac as a,an as o,m as s,oc as c,tn as l}from"./model-selection-DvekK9rZ.js";import{J as u,K as d,t as f}from"./pi-embedded-DLlQ5e_w.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DiHS8tKf.js";import"./send-BjrfjBn9.js";import"./tokens-B2fq-rL6.js";import"./deliver-AM3FP5rj.js";import"./diagnostic-DtuQPRbp.js";import"./send-C4Lm4nmt.js";import"./pi-model-discovery-DVKXkQTR.js";import"./image-CcsuUB1B.js";import"./audio-transcription-runner-CQ7rq0d_.js";import"./fetch-D5wrJ0AX.js";import"./fetch-guard-oWKGrwV4.js";import"./api-key-rotation-BLt5E2Cw.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-B7mdG27k.js";import"./render-BXEUPIHe.js";import"./target-errors-sMFXKeAY.js";import"./commands-registry-gvMK7Pw9.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CPZcaV8-.js";import"./channel-activity-DmgWmSAG.js";import"./tables-D6J-isob.js";import"./send-CWVTcDAW.js";import"./outbound-attachment-Bah4dvuM.js";import"./send-swTiQAeK2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-iFi--Fru.js";export{a as DEFAULT_MODEL,c as DEFAULT_PROVIDER,n as ensureAgentWorkspace,l as loadSessionStore,e as resolveAgentDir,u as resolveAgentIdentity,d as resolveAgentTimeoutMs,t as resolveAgentWorkspaceDir,r as resolveSessionFilePath,i as resolveStorePath,s as resolveThinkingDefault,f as runEmbeddedPiAgent,o as saveSessionStore};