@noxsoft/anima 2.0.2 → 2.0.4

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 (829) hide show
  1. package/README.md +1260 -28
  2. package/dist/accounts-Bth3PpPD.js +260 -0
  3. package/dist/accounts-D8CPKNkN.js +259 -0
  4. package/dist/acp-cli-ByK6lS6c.js +1081 -0
  5. package/dist/acp-cli-CaQCjIw4.js +1084 -0
  6. package/dist/agent-BgIkqd3F.js +725 -0
  7. package/dist/agent-N5BDcge4.js +725 -0
  8. package/dist/agent-events-COH7NDW2.js +182 -0
  9. package/dist/agent-scope-CPphqq-U.js +452 -0
  10. package/dist/agent-scope-DZgptr9J.js +452 -0
  11. package/dist/agent-scope-cj2QCT6R.js +112 -0
  12. package/dist/agents-NEudYMdg.js +774 -0
  13. package/dist/agents.config-Bujs-NIy.js +182 -0
  14. package/dist/agents.config-jp7OLssr.js +182 -0
  15. package/dist/argv-BMZMiW7v.js +73 -0
  16. package/dist/audit-C-UJhfdv.js +2401 -0
  17. package/dist/audit-CeCO7SK5.js +2401 -0
  18. package/dist/auth-BNZsOHGF.js +648 -0
  19. package/dist/auth-DMPZWzEa.js +639 -0
  20. package/dist/auth-choice-5VnaGMD-.js +2681 -0
  21. package/dist/auth-choice-DA2k4vs8.js +2681 -0
  22. package/dist/auth-health-B7FqA26_.js +149 -0
  23. package/dist/auth-health-VO_MPqVX.js +149 -0
  24. package/dist/auth-profiles-BDrNYX_n.js +1564 -0
  25. package/dist/auth-profiles-CxSHydjn.js +2689 -0
  26. package/dist/banner-BtDZPRzi.js +294 -0
  27. package/dist/browser-cli-8yQMpxb8.js +1679 -0
  28. package/dist/browser-cli-Czg3JtDH.js +1676 -0
  29. package/dist/build-info.json +3 -3
  30. package/dist/bundled/boot-md/handler.js +16 -16
  31. package/dist/bundled/bootstrap-extra-files/handler.js +4 -4
  32. package/dist/bundled/command-logger/handler.js +1 -1
  33. package/dist/bundled/session-memory/handler.js +5 -5
  34. package/dist/call-BIzCaKZb.js +282 -0
  35. package/dist/call-BYDpTVCZ.js +282 -0
  36. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  37. package/dist/catalog-CqKiUgu6.js +185 -0
  38. package/dist/catalog-DMfEg-oK.js +185 -0
  39. package/dist/channel-options-BrtCtyrT.js +32 -0
  40. package/dist/channel-options-CO21Gl8p.js +33 -0
  41. package/dist/channel-selection-Bbm1lq3P.js +51 -0
  42. package/dist/channel-selection-CqcX7Ocw.js +51 -0
  43. package/dist/channel-web-DrsT6OAE.js +2162 -0
  44. package/dist/channels-cli-Juyh1S6n.js +1304 -0
  45. package/dist/channels-cli-zNvi1m5c.js +1306 -0
  46. package/dist/channels-status-issues-CqzqshW4.js +18 -0
  47. package/dist/channels-status-issues-DdJdO866.js +18 -0
  48. package/dist/chrome-C4dOMO8z.js +1601 -0
  49. package/dist/chrome-DdcDzAtH.js +1629 -0
  50. package/dist/chrome-U3DRzjJD.js +1601 -0
  51. package/dist/chunk-D2nLsrEW.js +348 -0
  52. package/dist/clack-prompter-BI3RDW5w.js +92 -0
  53. package/dist/clack-prompter-Dwr1m_IZ.js +92 -0
  54. package/dist/cli/daemon-cli.js +1 -1
  55. package/dist/cli-C3cpDaz8.js +99 -0
  56. package/dist/cli-CjWUGdGC.js +101 -0
  57. package/dist/cli-session-BVjY_XrW.js +5463 -0
  58. package/dist/cli-session-gtuYN2Iq.js +5408 -0
  59. package/dist/client-Dswwze5_.js +1692 -0
  60. package/dist/client-LRKFjo4A.js +1692 -0
  61. package/dist/clipboard-BZKS9O1u.js +31 -0
  62. package/dist/clipboard-DES8b1AM.js +31 -0
  63. package/dist/command-format-CP1YTNCl.js +52 -0
  64. package/dist/command-format-CVL4K5cj.js +52 -0
  65. package/dist/command-format-G6N2zghg.js +38 -0
  66. package/dist/command-registry-BBvNvysr.js +248 -0
  67. package/dist/commands-AZ3n8Y2c.js +726 -0
  68. package/dist/commands-BMnD_QRY.js +726 -0
  69. package/dist/commands-registry-cFqZ6Ib4.js +766 -0
  70. package/dist/commands-registry-q13H7ng5.js +766 -0
  71. package/dist/common-CX5458fH.js +287 -0
  72. package/dist/common-DJbnT8ws.js +287 -0
  73. package/dist/completion-cli-BADRBcIl.js +432 -0
  74. package/dist/completion-cli-DMQgiObF.js +431 -0
  75. package/dist/config-CU-Axg8P.js +5704 -0
  76. package/dist/config-DaqbUdkI.js +5705 -0
  77. package/dist/config-cli-BPlbwiuA.js +244 -0
  78. package/dist/config-cli-DXgZJkPU.js +247 -0
  79. package/dist/config-guard-Ba49JNds.js +76 -0
  80. package/dist/config-guard-Cu0qMKZJ.js +93 -0
  81. package/dist/config-kVVm5EYV.js +6523 -0
  82. package/dist/config-sync-CzLnLTXt.js +91 -0
  83. package/dist/config-sync-DuydxPWx.js +91 -0
  84. package/dist/configure-CHgacLyi.js +960 -0
  85. package/dist/configure-DfHXDa1L.js +959 -0
  86. package/dist/context-DzgXOckU.js +60 -0
  87. package/dist/control-service-8_wKHwBa.js +72 -0
  88. package/dist/control-service-BtL1Jto_.js +72 -0
  89. package/dist/cron-cli-BCzSR2c0.js +448 -0
  90. package/dist/cron-cli-CCWNkykU.js +451 -0
  91. package/dist/daemon-cli-Bjkbu9Vy.js +565 -0
  92. package/dist/daemon-cli-CmlHcC1J.js +566 -0
  93. package/dist/daemon-cli.js +16 -16
  94. package/dist/daemon-runtime-C0tz7VAC.js +460 -0
  95. package/dist/daemon-runtime-rUTqCVwJ.js +460 -0
  96. package/dist/deliver-BBggsviM.js +1097 -0
  97. package/dist/deliver-CePITOl8.js +1162 -0
  98. package/dist/deliver-DFnVaetP.js +1097 -0
  99. package/dist/delivery-queue-BJQK3oh5.js +220 -0
  100. package/dist/deps-CeEKhrp7.js +42 -0
  101. package/dist/devices-cli-DQrDMrZH.js +198 -0
  102. package/dist/devices-cli-Oe-A1Dv0.js +195 -0
  103. package/dist/diagnostics-DxMFrBLO.js +35 -0
  104. package/dist/diagnostics-m79ZlMmZ.js +35 -0
  105. package/dist/directory-cli-BL6h8cGF.js +246 -0
  106. package/dist/directory-cli-Cjgmi_sj.js +243 -0
  107. package/dist/dispatcher-DAFbQM-c.js +100 -0
  108. package/dist/dispatcher-DNd40gUn.js +100 -0
  109. package/dist/dist-CqDI82ei.js +929 -0
  110. package/dist/dist-DnHRxR5U.js +929 -0
  111. package/dist/dns-cli-CFtV3BXK.js +200 -0
  112. package/dist/dns-cli-NyIHvQ5S.js +197 -0
  113. package/dist/dock-BdXLb5oY.js +753 -0
  114. package/dist/dock-jYICmNcI.js +753 -0
  115. package/dist/docs-cli-CrOaIK_H.js +161 -0
  116. package/dist/docs-cli-D_cmJDSr.js +159 -0
  117. package/dist/doctor-BpGxKrBl.js +1815 -0
  118. package/dist/doctor-D12wNQPU.js +1813 -0
  119. package/dist/doctor-completion-DeOfofek.js +92 -0
  120. package/dist/doctor-completion-DwjqdEcK.js +92 -0
  121. package/dist/doctor-config-flow-BI3mpkbd.js +1232 -0
  122. package/dist/doctor-config-flow-wMHheFkC.js +1232 -0
  123. package/dist/engine-BCtL-AMw.js +563 -0
  124. package/dist/engine-Bk_UT413.js +563 -0
  125. package/dist/entry.js +5 -5
  126. package/dist/env-v6411I8h.js +32 -0
  127. package/dist/exec-B7sUS164.js +1167 -0
  128. package/dist/exec-approvals-CroGJRUg.js +1221 -0
  129. package/dist/exec-approvals-cli-BTxF_RsH.js +371 -0
  130. package/dist/exec-approvals-cli-n1gyGwH2.js +368 -0
  131. package/dist/exec-mhSykkaa.js +255 -0
  132. package/dist/extensionAPI.js +3 -3
  133. package/dist/frontmatter-BmHq0vRD.js +204 -0
  134. package/dist/gateway-cli-DDBadlrS.js +19971 -0
  135. package/dist/gateway-cli-IZNkOMBe.js +19972 -0
  136. package/dist/gateway-rpc-Dtx8HN-n.js +28 -0
  137. package/dist/gateway-rpc-L2PVSqGj.js +28 -0
  138. package/dist/github-copilot-auth-DKyqDaGU.js +1418 -0
  139. package/dist/github-copilot-auth-DXpOMSd3.js +1418 -0
  140. package/dist/gmail-setup-utils-BKNczIJ9.js +428 -0
  141. package/dist/gmail-setup-utils-co0ppccC.js +428 -0
  142. package/dist/health-Bm8ZTvC3.js +1253 -0
  143. package/dist/health-DUf1gt4E.js +1258 -0
  144. package/dist/health-format-BksT6F68.js +208 -0
  145. package/dist/health-format-uzh1xYLD.js +208 -0
  146. package/dist/heartbeat-visibility-1TJb1Zao.js +98 -0
  147. package/dist/heartbeat-visibility-CwodtdcX.js +98 -0
  148. package/dist/help-format-C6cv_aZp.js +17 -0
  149. package/dist/helpers-N-uSFKOn.js +10 -0
  150. package/dist/hooks-cli-1POsXqOl.js +993 -0
  151. package/dist/hooks-cli-BGjILbze.js +991 -0
  152. package/dist/hooks-status-DE07n5RC.js +356 -0
  153. package/dist/hooks-status-Du-d1jde.js +356 -0
  154. package/dist/image-ops-B_AYV3tp.js +541 -0
  155. package/dist/image-ops-Bp0C6Mvr.js +541 -0
  156. package/dist/index.js +82 -82
  157. package/dist/init-9A0s7bWG.js +122 -0
  158. package/dist/init-DoyCHJDC.js +122 -0
  159. package/dist/installs-D1C9wHAq.js +383 -0
  160. package/dist/installs-Dh4dHayM.js +383 -0
  161. package/dist/ipv4-DCItfaJo.js +1964 -0
  162. package/dist/ipv4-DSOUVx0i.js +1964 -0
  163. package/dist/lanes-BvSnHq2h.js +232 -0
  164. package/dist/lifecycle-core-BY4WIf9g.js +388 -0
  165. package/dist/lifecycle-core-TQKyXO-6.js +387 -0
  166. package/dist/links-CNu_8RZl.js +15 -0
  167. package/dist/links-D2tt2ouh.js +15 -0
  168. package/dist/llm-slug-generator.js +4 -4
  169. package/dist/logging-BIeRw0WR.js +15 -0
  170. package/dist/logging-C7lb3Vjc.js +15 -0
  171. package/dist/login-DXWKewA2.js +59 -0
  172. package/dist/login-Fhh4uWmf.js +61 -0
  173. package/dist/login-pPs3UO38.js +61 -0
  174. package/dist/login-qr-CevLD8cV.js +326 -0
  175. package/dist/login-qr-GF2JMIy-.js +323 -0
  176. package/dist/login-qr-ZYYKD6Yt.js +321 -0
  177. package/dist/logs-cli-CzXbX8HZ.js +242 -0
  178. package/dist/logs-cli-D9ngH9PF.js +245 -0
  179. package/dist/manager-BD5rA3w0.js +3244 -0
  180. package/dist/manager-BDPgBQSH.js +3246 -0
  181. package/dist/manager-DRWMWM--.js +3244 -0
  182. package/dist/manifest-registry-DbvPaBXY.js +748 -0
  183. package/dist/manifest-registry-kHX_MFa1.js +748 -0
  184. package/dist/markdown-tables-CqwihY2m.js +347 -0
  185. package/dist/markdown-tables-DJV7eAJZ.js +348 -0
  186. package/dist/media-lUqN-0O9.js +1342 -0
  187. package/dist/memory-cli-BLXSpgnN.js +868 -0
  188. package/dist/memory-cli-BcGVkkRJ.js +869 -0
  189. package/dist/message-channel-D_jIO87f.js +110 -0
  190. package/dist/migrate-BpVOar4L.js +157 -0
  191. package/dist/migrate-CkgGDkWy.js +157 -0
  192. package/dist/model-selection-Cqt6aJ0G.js +2691 -0
  193. package/dist/models-CExsNQPH.js +2510 -0
  194. package/dist/models-cli-Ba3Jmwev.js +2739 -0
  195. package/dist/models-cli-iDAlsbL2.js +258 -0
  196. package/dist/net-0A_zcaQD.js +218 -0
  197. package/dist/node-cli-ATmwCXIk.js +1319 -0
  198. package/dist/node-cli-DYFR_V25.js +1322 -0
  199. package/dist/node-service-CN4LqR1A.js +67 -0
  200. package/dist/node-service-CWt3MdSC.js +67 -0
  201. package/dist/nodes-cli-BeVmhTz3.js +1197 -0
  202. package/dist/nodes-cli-QeJIfa18.js +1200 -0
  203. package/dist/nodes-screen-DHyWAlla.js +234 -0
  204. package/dist/nodes-screen-qs3jRBPk.js +234 -0
  205. package/dist/note-CSlg2BnB.js +73 -0
  206. package/dist/note-Ctvglhp1.js +73 -0
  207. package/dist/npm-registry-spec-DQd4M22q.js +351 -0
  208. package/dist/npm-registry-spec-PxisIMts.js +351 -0
  209. package/dist/onboard-DeruD10m.js +1166 -0
  210. package/dist/onboard-SAcu5N6N.js +1165 -0
  211. package/dist/onboard-channels-C4iSfFXR.js +672 -0
  212. package/dist/onboard-channels-oVTVgoyg.js +672 -0
  213. package/dist/onboard-helpers-B8roRwLP.js +365 -0
  214. package/dist/onboard-helpers-Dgh26hgP.js +365 -0
  215. package/dist/onboarding-Bi-ac8we.js +911 -0
  216. package/dist/onboarding-C2gjB2u8.js +910 -0
  217. package/dist/orchestrator-DlbAYMQP.js +357 -0
  218. package/dist/orchestrator-DlwVRVDA.js +357 -0
  219. package/dist/outbound-CkKgc6iR.js +2062 -0
  220. package/dist/outbound-Vfm5yDh3.js +214 -0
  221. package/dist/outbound-bs_VK51X.js +214 -0
  222. package/dist/outbound-send-deps-DDjiMfEL.js +55 -0
  223. package/dist/pairing-cli-CJYeuEik.js +118 -0
  224. package/dist/pairing-cli-mqopHI8s.js +121 -0
  225. package/dist/pairing-store-BsXzUDPv.js +388 -0
  226. package/dist/pairing-store-DoNj00-X.js +388 -0
  227. package/dist/path-env-C_xpiG8l.js +89 -0
  228. package/dist/path-env-DSSMHu5A.js +89 -0
  229. package/dist/paths-B1vRVCad.js +126 -0
  230. package/dist/paths-BMuHNFxg.js +238 -0
  231. package/dist/paths-BXQQzXGQ.js +129 -0
  232. package/dist/paths-Buw_geoe.js +54 -0
  233. package/dist/paths-DA9WYabg.js +222 -0
  234. package/dist/paths-DfQGx0_k.js +129 -0
  235. package/dist/pi-auth-json-DOPW3e4X.js +78 -0
  236. package/dist/pi-auth-json-MruLmI_X.js +82 -0
  237. package/dist/pi-auth-json-lae_wwwo.js +80 -0
  238. package/dist/pi-model-discovery-7q0GxMrp.js +3 -0
  239. package/dist/pi-tools.policy-Csmla32P.js +200 -0
  240. package/dist/pi-tools.policy-xYdDLEv9.js +200 -0
  241. package/dist/plugin-auto-enable-CViVVWgg.js +282 -0
  242. package/dist/plugin-auto-enable-CjZ238UI.js +282 -0
  243. package/dist/plugin-registry-B4Aw2hzq.js +32 -0
  244. package/dist/plugin-registry-DW81arxW.js +32 -0
  245. package/dist/plugin-sdk/cli/cli-name.d.ts +1 -1
  246. package/dist/plugin-sdk/config/paths.d.ts +2 -2
  247. package/dist/plugin-sdk/index.js +7 -7
  248. package/dist/plugins-DhcGAPDB.js +38 -0
  249. package/dist/plugins-DtghNRtM.js +168 -0
  250. package/dist/plugins-cli-4vWTmOAb.js +736 -0
  251. package/dist/plugins-cli-CdTMbP0X.js +734 -0
  252. package/dist/polls-D6eCdatA.js +1343 -0
  253. package/dist/ports-BtZx-JKD.js +96 -0
  254. package/dist/ports-C8bKN8s0.js +96 -0
  255. package/dist/ports-DHiKnPRX.js +344 -0
  256. package/dist/ports-vd93M_Pt.js +317 -0
  257. package/dist/program-CX3aUVeb.js +176 -0
  258. package/dist/program-context-BPos0ivo.js +496 -0
  259. package/dist/progress-oiAjiiNi.js +133 -0
  260. package/dist/prompt-style-Cm4wOtKm.js +9 -0
  261. package/dist/pw-ai-4QbK5YFe.js +1865 -0
  262. package/dist/pw-ai-BWz3Cxt7.js +1868 -0
  263. package/dist/pw-ai-C83HBue2.js +1867 -0
  264. package/dist/qmd-manager-BcMeZiGD.js +938 -0
  265. package/dist/qmd-manager-CPypGJ0P.js +935 -0
  266. package/dist/qmd-manager-CRrSkfia.js +937 -0
  267. package/dist/register.agent-DDY8KJhn.js +265 -0
  268. package/dist/register.agent-DKawm-9d.js +1003 -0
  269. package/dist/register.anima-CEWUo29k.js +193 -0
  270. package/dist/register.anima-DBWz2rk_.js +193 -0
  271. package/dist/register.configure-BX67qV8k.js +103 -0
  272. package/dist/register.configure-CWsySuiq.js +101 -0
  273. package/dist/register.maintenance-0k-ZNhDg.js +543 -0
  274. package/dist/register.maintenance-BIwx1fzX.js +543 -0
  275. package/dist/register.message-CXPsoakA.js +657 -0
  276. package/dist/register.message-DA3jvfgI.js +660 -0
  277. package/dist/register.onboard-C4HG7Hqv.js +170 -0
  278. package/dist/register.onboard-GOpdif-j.js +170 -0
  279. package/dist/register.setup-B17vZT7C.js +175 -0
  280. package/dist/register.setup-GJyUDCqh.js +175 -0
  281. package/dist/register.status-health-sessions-D5876dGx.js +313 -0
  282. package/dist/register.status-health-sessions-lOewVIZR.js +142 -0
  283. package/dist/register.subclis-Dwnujj5C.js +255 -0
  284. package/dist/reply-CR5T_oQJ.js +32212 -0
  285. package/dist/reply-prefix-BcrS4Umd.js +100 -0
  286. package/dist/reply-prefix-Btb5o2NH.js +100 -0
  287. package/dist/reply-r089HuRA.js +32212 -0
  288. package/dist/routes-B4czFzIb.js +1820 -0
  289. package/dist/routes-ucJWAk5O.js +1820 -0
  290. package/dist/rpc-BnKxnQ0v.js +70 -0
  291. package/dist/rpc-DgE-xnyx.js +70 -0
  292. package/dist/run-main-B74kv84C.js +371 -0
  293. package/dist/runtime-guard-CKFdts2L.js +60 -0
  294. package/dist/sandbox-CJTS3er6.js +858 -0
  295. package/dist/sandbox-DBSiVHt_.js +859 -0
  296. package/dist/sandbox-cli-CrkjyU5M.js +461 -0
  297. package/dist/sandbox-cli-D1r5y6Sz.js +458 -0
  298. package/dist/security-cli-BZUdnkhn.js +462 -0
  299. package/dist/security-cli-DS09ebvA.js +465 -0
  300. package/dist/server-context-C0xZbYhg.js +824 -0
  301. package/dist/server-context-DVh2z7om.js +824 -0
  302. package/dist/server-node-events-bu9lpkMH.js +233 -0
  303. package/dist/server-node-events-i1Rrww31.js +231 -0
  304. package/dist/service-CJJwLEor.js +642 -0
  305. package/dist/service-DxLxBhaU.js +642 -0
  306. package/dist/service-audit-DB4Y3Ekp.js +488 -0
  307. package/dist/service-audit-M8y4TXVb.js +488 -0
  308. package/dist/session-CGxOLFs2.js +179 -0
  309. package/dist/session-DTTbdKb0.js +181 -0
  310. package/dist/session-cost-usage-FcdJl9c3.js +600 -0
  311. package/dist/session-cost-usage-qdfsGU2a.js +600 -0
  312. package/dist/session-yOhWcsD2.js +181 -0
  313. package/dist/sessions-B-Cu7JZq.js +1296 -0
  314. package/dist/sessions-BgLN4KFr.js +180 -0
  315. package/dist/sessions-CnRjwdVr.js +1296 -0
  316. package/dist/sessions-wRKla1Qh.js +2038 -0
  317. package/dist/shared-DS3UaJSP.js +66 -0
  318. package/dist/shared-DxNHzky3.js +77 -0
  319. package/dist/shared-Qpt4hUDi.js +66 -0
  320. package/dist/shared-kzrojZ1B.js +77 -0
  321. package/dist/skill-scanner-DLJji5Ye.js +263 -0
  322. package/dist/skills-BWFIEp4j.js +807 -0
  323. package/dist/skills-DV4zKdCx.js +808 -0
  324. package/dist/skills-cli-BY53ILm2.js +289 -0
  325. package/dist/skills-cli-CO3gxl8A.js +286 -0
  326. package/dist/skills-status-DX5pcqY3.js +166 -0
  327. package/dist/skills-status-zhcKzGkp.js +166 -0
  328. package/dist/sqlite-B6MojU1I.js +321 -0
  329. package/dist/sqlite-CuprTGR7.js +453 -0
  330. package/dist/sqlite-dzD-jMjs.js +368 -0
  331. package/dist/start-Cu3aLoSf.js +297 -0
  332. package/dist/start-Dz7tMAl8.js +296 -0
  333. package/dist/status-CaSxhxfV.js +2132 -0
  334. package/dist/status-D2C0JCX3.js +2137 -0
  335. package/dist/status-DlFMsQzh.js +27 -0
  336. package/dist/status-G0CITnKR.js +27 -0
  337. package/dist/status.update-CHjhVxJY.js +79 -0
  338. package/dist/status.update-DVFelehi.js +79 -0
  339. package/dist/subagent-registry-3Xb4el-8.js +14 -0
  340. package/dist/subagent-registry-CdSjz14I.js +2760 -0
  341. package/dist/subagent-registry-DNDhbHWi.js +2759 -0
  342. package/dist/subsystem-DfKstnEK.js +860 -0
  343. package/dist/system-cli-B5mt0FWa.js +82 -0
  344. package/dist/system-cli-Dg3UQ3Zz.js +79 -0
  345. package/dist/systemd-B43AvOGx.js +452 -0
  346. package/dist/systemd-RpPE0XGg.js +452 -0
  347. package/dist/systemd-hints-DMJT-Bbc.js +36 -0
  348. package/dist/systemd-hints-vRInKcz9.js +36 -0
  349. package/dist/systemd-linger-Dzyxqsod.js +75 -0
  350. package/dist/systemd-linger-EujbmI5A.js +75 -0
  351. package/dist/table-DhXHfRX2.js +279 -0
  352. package/dist/table-bWCLW-3P.js +279 -0
  353. package/dist/timeout-Ddn-5kAO.js +232 -0
  354. package/dist/tokens-3psI_Qk2.js +14 -0
  355. package/dist/tokens-BaM53PEx.js +14 -0
  356. package/dist/trash-Bmxs1Rnm.js +23 -0
  357. package/dist/trash-C39a6hKA.js +23 -0
  358. package/dist/tui-BHgBWhHE.js +3894 -0
  359. package/dist/tui-cli-B9Sq5-cC.js +50 -0
  360. package/dist/tui-cli-Dw7v4JoJ.js +47 -0
  361. package/dist/tui-mUwDwqvd.js +3894 -0
  362. package/dist/update-DF0GHG0j.js +317 -0
  363. package/dist/update-DoZLVjva.js +317 -0
  364. package/dist/update-check-Bt1dVPVN.js +400 -0
  365. package/dist/update-check-D5qAKes7.js +400 -0
  366. package/dist/update-cli-BNu2Oi7H.js +1105 -0
  367. package/dist/update-cli-D36AmALA.js +1105 -0
  368. package/dist/update-runner-CNQQaTwA.js +894 -0
  369. package/dist/update-runner-CvxZmbu-.js +894 -0
  370. package/dist/usage-BGCwNnjk.js +4516 -0
  371. package/dist/utils-DZ8pnOD5.js +243 -0
  372. package/dist/web-B5QG839O.js +46842 -0
  373. package/dist/web-Cmnvk9v0.js +2203 -0
  374. package/dist/web-Cv2KnTnL.js +63 -0
  375. package/dist/webhooks-cli-B6y89Pj_.js +319 -0
  376. package/dist/webhooks-cli-BDzHON4w.js +316 -0
  377. package/dist/whatsapp-actions-C_5MwVxM.js +45 -0
  378. package/dist/whatsapp-actions-hgYA12To.js +53 -0
  379. package/dist/whatsapp-actions-zTiVOoOV.js +49 -0
  380. package/dist/widearea-dns-BeIdnISJ.js +127 -0
  381. package/dist/widearea-dns-CF1gxpJ-.js +127 -0
  382. package/dist/workspace-DLna1IxR.js +649 -0
  383. package/dist/ws-log-Q4wO1Ztb.js +267 -0
  384. package/dist/ws-log-xF0kxDzp.js +267 -0
  385. package/package.json +1 -2
  386. package/dist/accounts-Cc5E4IDO.js +0 -260
  387. package/dist/accounts-CcVrwKqv.js +0 -259
  388. package/dist/acp-cli-DvphOKuh.js +0 -1081
  389. package/dist/acp-cli-p28pQ65a.js +0 -1084
  390. package/dist/agent-Cj7uDJaZ.js +0 -725
  391. package/dist/agent-Cuj9-2sT.js +0 -725
  392. package/dist/agent-events-BEBQsyE5.js +0 -182
  393. package/dist/agent-scope-BVf4aSwY.js +0 -112
  394. package/dist/agent-scope-OZi7lb8S.js +0 -452
  395. package/dist/agent-scope-V1bi9OYL.js +0 -452
  396. package/dist/agents-BUWqn_Ui.js +0 -774
  397. package/dist/agents.config-Dvo2ULxs.js +0 -182
  398. package/dist/agents.config-d6H0_3oj.js +0 -182
  399. package/dist/argv-DqUHKf0o.js +0 -73
  400. package/dist/audit-C6okOOSh.js +0 -2401
  401. package/dist/audit-VWjIdwC7.js +0 -2401
  402. package/dist/auth-91o2YM96.js +0 -648
  403. package/dist/auth-choice-CAmACV13.js +0 -2681
  404. package/dist/auth-choice-p3SeHPj2.js +0 -2681
  405. package/dist/auth-health-B_jXrWe6.js +0 -149
  406. package/dist/auth-health-DCicUKYR.js +0 -149
  407. package/dist/auth-lZ26wsbN.js +0 -639
  408. package/dist/auth-profiles-CCDD56dU.js +0 -1564
  409. package/dist/auth-profiles-DxI8L7bs.js +0 -2689
  410. package/dist/banner-Cohn04J6.js +0 -294
  411. package/dist/browser-cli-DANzjztE.js +0 -1676
  412. package/dist/browser-cli-WjsVH741.js +0 -1679
  413. package/dist/call-BAHvlu2G.js +0 -282
  414. package/dist/call-Ct7EGP_L.js +0 -282
  415. package/dist/catalog-BAayBt1L.js +0 -185
  416. package/dist/catalog-BNsf97BM.js +0 -185
  417. package/dist/channel-options-Dx9nPlX8.js +0 -33
  418. package/dist/channel-options-ZdvXrTGs.js +0 -32
  419. package/dist/channel-selection-CujyiWGM.js +0 -51
  420. package/dist/channel-selection-DfGpCyh2.js +0 -51
  421. package/dist/channel-web-CC0hkgkR.js +0 -2162
  422. package/dist/channels-cli-D7lNBpIb.js +0 -1304
  423. package/dist/channels-cli-DUPG8WDv.js +0 -1306
  424. package/dist/channels-status-issues-DBc1pU_R.js +0 -18
  425. package/dist/channels-status-issues-DjO9MHIG.js +0 -18
  426. package/dist/chrome-Bi6iZ5sG.js +0 -1601
  427. package/dist/chrome-DNSv7Cpy.js +0 -1629
  428. package/dist/chrome-DScZx4Lk.js +0 -1601
  429. package/dist/chunk-mxPVo000.js +0 -348
  430. package/dist/clack-prompter-B0kl7shw.js +0 -92
  431. package/dist/clack-prompter-B1YxZdRy.js +0 -92
  432. package/dist/cli-CfHUkOD0.js +0 -101
  433. package/dist/cli-ClMrIh6l.js +0 -99
  434. package/dist/cli-session-BkPTd9Pk.js +0 -5463
  435. package/dist/cli-session-Dd8DKb5a.js +0 -5408
  436. package/dist/client-C1avc0vD.js +0 -1692
  437. package/dist/client-CC94YZrT.js +0 -1692
  438. package/dist/clipboard-B2fBy8tG.js +0 -31
  439. package/dist/clipboard-BbGnZskJ.js +0 -31
  440. package/dist/command-format-Clp46jkj.js +0 -38
  441. package/dist/command-format-DELazozB.js +0 -52
  442. package/dist/command-format-SkzzRqR1.js +0 -52
  443. package/dist/command-registry-DZ4hkmA0.js +0 -248
  444. package/dist/commands-DtYZJSPn.js +0 -568
  445. package/dist/commands-Dujk1JmY.js +0 -568
  446. package/dist/commands-registry-Bd0xbvwG.js +0 -766
  447. package/dist/commands-registry-DYfRSVF3.js +0 -766
  448. package/dist/common-D6bu0zHC.js +0 -287
  449. package/dist/common-zW9Y2P1B.js +0 -287
  450. package/dist/completion-cli-tSe7Pmqm.js +0 -431
  451. package/dist/completion-cli-vn4IScs5.js +0 -432
  452. package/dist/config-C8rUDJXY.js +0 -5704
  453. package/dist/config-CLZ_XGVw.js +0 -6523
  454. package/dist/config-SY8M0kM_.js +0 -5705
  455. package/dist/config-cli-1V7D2Wsw.js +0 -247
  456. package/dist/config-cli-CjWEC81L.js +0 -244
  457. package/dist/config-guard-BW2gpKj_.js +0 -93
  458. package/dist/config-guard-BvxuzHpo.js +0 -76
  459. package/dist/config-sync-CoIIbEOe.js +0 -91
  460. package/dist/config-sync-DvAttep0.js +0 -91
  461. package/dist/configure-Bf0oupCE.js +0 -959
  462. package/dist/configure-DRM-7zFf.js +0 -960
  463. package/dist/context-D5iEFzv9.js +0 -60
  464. package/dist/control-service-C8m8F9pr.js +0 -72
  465. package/dist/control-service-DKotCWCg.js +0 -72
  466. package/dist/cron-cli-DB_FLYHD.js +0 -448
  467. package/dist/cron-cli-bxm5lrrO.js +0 -451
  468. package/dist/daemon-cli-1LsOnICv.js +0 -566
  469. package/dist/daemon-cli-CC2NrJ7a.js +0 -565
  470. package/dist/daemon-runtime-BXZhtBL9.js +0 -460
  471. package/dist/daemon-runtime-DW4USC7r.js +0 -460
  472. package/dist/deliver-B4HuPwJA.js +0 -1162
  473. package/dist/deliver-LiY5oL52.js +0 -1097
  474. package/dist/deliver-xrmk7xjh.js +0 -1097
  475. package/dist/delivery-queue-TnQykYsg.js +0 -220
  476. package/dist/deps-CMMOiOsF.js +0 -42
  477. package/dist/devices-cli-Be5he2SA.js +0 -195
  478. package/dist/devices-cli-z6ecoFe9.js +0 -198
  479. package/dist/diagnostics-Dj75aEHN.js +0 -35
  480. package/dist/diagnostics-DlIw6fqD.js +0 -35
  481. package/dist/directory-cli-CEy-0nxj.js +0 -243
  482. package/dist/directory-cli-DpzKcigr.js +0 -246
  483. package/dist/dispatcher-10Shiuz3.js +0 -100
  484. package/dist/dispatcher-3Jae6AiW.js +0 -100
  485. package/dist/dns-cli-Bat1pkc-.js +0 -200
  486. package/dist/dns-cli-NohNyEo0.js +0 -197
  487. package/dist/dock-DbxBBv30.js +0 -753
  488. package/dist/dock-cPBY4qGl.js +0 -753
  489. package/dist/docs-cli-BWp6p-Tq.js +0 -161
  490. package/dist/docs-cli-x22FnZfL.js +0 -159
  491. package/dist/doctor-BrT5m_on.js +0 -1815
  492. package/dist/doctor-Pp2HVnjM.js +0 -1813
  493. package/dist/doctor-completion-DNTimX9o.js +0 -92
  494. package/dist/doctor-completion-ylN9QAJ6.js +0 -92
  495. package/dist/doctor-config-flow-D1w3700T.js +0 -1232
  496. package/dist/doctor-config-flow-Dq50iE1R.js +0 -1232
  497. package/dist/engine-B9avUJL5.js +0 -563
  498. package/dist/engine-BiUQ25D4.js +0 -563
  499. package/dist/env-0lJfCPsw.js +0 -32
  500. package/dist/exec-BenD3A5l.js +0 -1167
  501. package/dist/exec-Bv3pyjeM.js +0 -255
  502. package/dist/exec-approvals-CdLmKX2R.js +0 -1221
  503. package/dist/exec-approvals-cli-DXfV6G8H.js +0 -368
  504. package/dist/exec-approvals-cli-J2cZs10o.js +0 -371
  505. package/dist/frontmatter-YijVi0FQ.js +0 -204
  506. package/dist/gateway-cli-DOAbA0pc.js +0 -19972
  507. package/dist/gateway-cli-QpWtBhQy.js +0 -19971
  508. package/dist/gateway-rpc-DJKBil9s.js +0 -28
  509. package/dist/gateway-rpc-DVterpLP.js +0 -28
  510. package/dist/github-copilot-auth-4IUFp669.js +0 -1418
  511. package/dist/github-copilot-auth-C9E0IROs.js +0 -1418
  512. package/dist/gmail-setup-utils-BPo_LkKI.js +0 -428
  513. package/dist/gmail-setup-utils-D3Yqgor7.js +0 -428
  514. package/dist/health-BeZnqp6m.js +0 -1258
  515. package/dist/health-Cn2OoVWZ.js +0 -1253
  516. package/dist/health-format-CdP99j3Y.js +0 -208
  517. package/dist/health-format-JEChH08S.js +0 -208
  518. package/dist/heartbeat-visibility-BL3WAchI.js +0 -98
  519. package/dist/heartbeat-visibility-CQ9QimI7.js +0 -98
  520. package/dist/help-format-Dl4bsrLI.js +0 -17
  521. package/dist/helpers-ZKNRexvX.js +0 -10
  522. package/dist/hooks-cli-D99hXt7K.js +0 -991
  523. package/dist/hooks-cli-DMB8RiEO.js +0 -993
  524. package/dist/hooks-status-B-e96dZj.js +0 -356
  525. package/dist/hooks-status-C_9sE0ox.js +0 -356
  526. package/dist/image-ops-Dlt3T7th.js +0 -541
  527. package/dist/image-ops-omlvdfah.js +0 -541
  528. package/dist/init-Bm04RagW.js +0 -122
  529. package/dist/init-CaJBf4p1.js +0 -122
  530. package/dist/installs-C2iMRBVz.js +0 -383
  531. package/dist/installs-D-cPGdCw.js +0 -383
  532. package/dist/ipv4-Bf7NS3QU.js +0 -1964
  533. package/dist/ipv4-wWNs8IH_.js +0 -1964
  534. package/dist/lanes-CNxj3tit.js +0 -232
  535. package/dist/lifecycle-core-B_7XRcvF.js +0 -388
  536. package/dist/lifecycle-core-By83PVAK.js +0 -387
  537. package/dist/links-BfjHVTB_.js +0 -15
  538. package/dist/links-DPGe0OHw.js +0 -15
  539. package/dist/logging-DB6BQmhi.js +0 -15
  540. package/dist/logging-mcb66J0p.js +0 -15
  541. package/dist/login-BDCg6D0N.js +0 -61
  542. package/dist/login-BDfnbjnZ.js +0 -59
  543. package/dist/login-BqH1itcg.js +0 -61
  544. package/dist/login-qr-CyOw3R4r.js +0 -321
  545. package/dist/login-qr-D8ECtb72.js +0 -323
  546. package/dist/login-qr-RnR7e4Bw.js +0 -326
  547. package/dist/logs-cli--j89L74J.js +0 -245
  548. package/dist/logs-cli-DpEMg_Gq.js +0 -242
  549. package/dist/manager-B4OyvcxT.js +0 -3244
  550. package/dist/manager-Cqc1CeH7.js +0 -3246
  551. package/dist/manager-DUyQPFvj.js +0 -3244
  552. package/dist/manifest-registry-CW1zCyRF.js +0 -748
  553. package/dist/manifest-registry-D4lM2RdV.js +0 -748
  554. package/dist/markdown-tables-BT1X6jqH.js +0 -347
  555. package/dist/markdown-tables-DHgOK2vI.js +0 -348
  556. package/dist/media-THyainiE.js +0 -1342
  557. package/dist/memory-cli-BKocCWXM.js +0 -868
  558. package/dist/memory-cli-Jmma-xI_.js +0 -869
  559. package/dist/message-channel-dSTVVCyX.js +0 -110
  560. package/dist/migrate-BR6iAIjO.js +0 -157
  561. package/dist/migrate-D0EcMs0f.js +0 -157
  562. package/dist/model-selection-YcSr9CgC.js +0 -2691
  563. package/dist/models-1vUQBVfw.js +0 -2510
  564. package/dist/models-cli-BK3BwUhL.js +0 -2739
  565. package/dist/models-cli-DECrM8oA.js +0 -258
  566. package/dist/net-B5lXhYLV.js +0 -218
  567. package/dist/node-cli-cLHUNpPD.js +0 -1319
  568. package/dist/node-cli-fO7Y132S.js +0 -1322
  569. package/dist/node-service-BFxHJsno.js +0 -67
  570. package/dist/node-service-DUnan4uK.js +0 -67
  571. package/dist/nodes-cli-BCq35E6N.js +0 -1200
  572. package/dist/nodes-cli-vD7MwAKP.js +0 -1197
  573. package/dist/nodes-screen-1YiLkqr5.js +0 -234
  574. package/dist/nodes-screen-DZeD8hE5.js +0 -234
  575. package/dist/note-Bi8Wb8DV.js +0 -73
  576. package/dist/note-uiuPxhyX.js +0 -73
  577. package/dist/npm-registry-spec-B-XIShkB.js +0 -351
  578. package/dist/npm-registry-spec-za3itb5Y.js +0 -351
  579. package/dist/onboard-Ds6w_sWo.js +0 -1165
  580. package/dist/onboard-SAVx3bp4.js +0 -1166
  581. package/dist/onboard-channels-Cg_EkBa4.js +0 -672
  582. package/dist/onboard-channels-D7NbA55V.js +0 -672
  583. package/dist/onboard-helpers-DO_hgZb9.js +0 -365
  584. package/dist/onboard-helpers-_XgJgeqh.js +0 -365
  585. package/dist/onboarding-3hLmDd0r.js +0 -911
  586. package/dist/onboarding-B4LKLsbU.js +0 -910
  587. package/dist/orchestrator-BKzmyBWy.js +0 -357
  588. package/dist/orchestrator-BN3QCz2s.js +0 -357
  589. package/dist/outbound-BgA9hNlP.js +0 -2062
  590. package/dist/outbound-CjdvVhUI.js +0 -214
  591. package/dist/outbound-DOGe6qb2.js +0 -214
  592. package/dist/outbound-send-deps-Du5aBpd7.js +0 -55
  593. package/dist/pairing-cli-2vnyg_Nd.js +0 -118
  594. package/dist/pairing-cli-BH1KQtNV.js +0 -121
  595. package/dist/pairing-store-DJz_9Gv0.js +0 -388
  596. package/dist/pairing-store-DmOzxcuk.js +0 -388
  597. package/dist/path-env-Bu6k0jDQ.js +0 -89
  598. package/dist/path-env-C0zQSjw8.js +0 -89
  599. package/dist/paths-BTc4nk-6.js +0 -126
  600. package/dist/paths-BgUi2Z2G.js +0 -54
  601. package/dist/paths-C6VCWKo3.js +0 -238
  602. package/dist/paths-CCxa0o9c.js +0 -222
  603. package/dist/paths-CxRf2rBG.js +0 -129
  604. package/dist/paths-hcX1Gqg5.js +0 -129
  605. package/dist/pi-auth-json-B68R7q7_.js +0 -82
  606. package/dist/pi-auth-json-CR0jXAgq.js +0 -78
  607. package/dist/pi-auth-json-ZYzi3nxs.js +0 -80
  608. package/dist/pi-model-discovery-Cxs4pvC2.js +0 -3
  609. package/dist/pi-tools.policy-D81U5xy0.js +0 -200
  610. package/dist/pi-tools.policy-DSHkkb5b.js +0 -200
  611. package/dist/plugin-auto-enable-CxF4bpDN.js +0 -282
  612. package/dist/plugin-auto-enable-jNaAeyEh.js +0 -282
  613. package/dist/plugin-registry-C7XWotZG.js +0 -32
  614. package/dist/plugin-registry-DcUCbGax.js +0 -32
  615. package/dist/plugins-B362e77G.js +0 -168
  616. package/dist/plugins-CmSUIUNi.js +0 -38
  617. package/dist/plugins-cli-BsCEnoQ7.js +0 -734
  618. package/dist/plugins-cli-QSIsMUG7.js +0 -736
  619. package/dist/polls-CItfB1H8.js +0 -1343
  620. package/dist/ports-BVLMN1Sr.js +0 -96
  621. package/dist/ports-CqLSlU6Z.js +0 -317
  622. package/dist/ports-D94CwCrv.js +0 -344
  623. package/dist/ports-D_NHthOz.js +0 -96
  624. package/dist/program-DkJHjI0R.js +0 -176
  625. package/dist/program-context-DnyGM2SC.js +0 -496
  626. package/dist/progress-Bek_GyWS.js +0 -133
  627. package/dist/prompt-style-lu0clOOE.js +0 -9
  628. package/dist/pw-ai-BLVMuSLv.js +0 -1867
  629. package/dist/pw-ai-DZJWEF_f.js +0 -1865
  630. package/dist/pw-ai-dzf-ptcn.js +0 -1868
  631. package/dist/qmd-manager-Cur_Ekn0.js +0 -937
  632. package/dist/qmd-manager-DNAUuwjK.js +0 -938
  633. package/dist/qmd-manager-DepEoASu.js +0 -935
  634. package/dist/register.agent-CSWvzOkR.js +0 -265
  635. package/dist/register.agent-UeH2NXmH.js +0 -1003
  636. package/dist/register.anima-DOdee0dh.js +0 -193
  637. package/dist/register.anima-HHDWsz6r.js +0 -193
  638. package/dist/register.configure-CSJFxdz9.js +0 -103
  639. package/dist/register.configure-D84Fvcz4.js +0 -101
  640. package/dist/register.maintenance-B3pvNbZb.js +0 -543
  641. package/dist/register.maintenance-BKVOwkw6.js +0 -543
  642. package/dist/register.message-BAO6CPl2.js +0 -657
  643. package/dist/register.message-OXoOKE_6.js +0 -660
  644. package/dist/register.onboard-BK_ixVmD.js +0 -170
  645. package/dist/register.onboard-cfCaPx6j.js +0 -170
  646. package/dist/register.setup-BGfDnzph.js +0 -175
  647. package/dist/register.setup-Y-Q74M-0.js +0 -175
  648. package/dist/register.status-health-sessions-CT14eitH.js +0 -142
  649. package/dist/register.status-health-sessions-TfZMzAUn.js +0 -313
  650. package/dist/register.subclis-BZwdlNHC.js +0 -255
  651. package/dist/reply-mlsExaZm.js +0 -32212
  652. package/dist/reply-prefix-B0CfR4bM.js +0 -100
  653. package/dist/reply-prefix-w4a39ybC.js +0 -100
  654. package/dist/reply-qalRISe_.js +0 -32212
  655. package/dist/routes-CENsHJyg.js +0 -1820
  656. package/dist/routes-DO0HqW2e.js +0 -1820
  657. package/dist/rpc-C0pjNhBi.js +0 -70
  658. package/dist/rpc-DZ44PIXE.js +0 -70
  659. package/dist/run-main-BMpKw8Mp.js +0 -371
  660. package/dist/runtime-guard-BSUFiAQV.js +0 -60
  661. package/dist/sandbox-BIGfMYEI.js +0 -858
  662. package/dist/sandbox-DxP3IpUP.js +0 -859
  663. package/dist/sandbox-cli-DtLGH8sL.js +0 -461
  664. package/dist/sandbox-cli-_Tg7lfJ_.js +0 -458
  665. package/dist/security-cli-BRwgbedo.js +0 -462
  666. package/dist/security-cli-D3bSuyZt.js +0 -465
  667. package/dist/server-context-49XFFxFg.js +0 -824
  668. package/dist/server-context-LrlgrZzS.js +0 -824
  669. package/dist/server-node-events-Dm52i7NW.js +0 -231
  670. package/dist/server-node-events-QX523UyF.js +0 -233
  671. package/dist/service-BNVpYcQe.js +0 -642
  672. package/dist/service-D56aMXUB.js +0 -642
  673. package/dist/service-audit-D0X_XAB2.js +0 -488
  674. package/dist/service-audit-qmf6XMmP.js +0 -488
  675. package/dist/session-CrQQLLhx.js +0 -179
  676. package/dist/session-LocsOOWJ.js +0 -181
  677. package/dist/session-Vlce2BAT.js +0 -181
  678. package/dist/session-cost-usage-BwiTZuKl.js +0 -600
  679. package/dist/session-cost-usage-DT9YNXTJ.js +0 -600
  680. package/dist/sessions-BfV53TbG.js +0 -1296
  681. package/dist/sessions-BimpX_km.js +0 -180
  682. package/dist/sessions-DcXpzig0.js +0 -1296
  683. package/dist/sessions-Wd18dukK.js +0 -2038
  684. package/dist/shared-Bsr69u_7.js +0 -77
  685. package/dist/shared-Cgly1vPb.js +0 -66
  686. package/dist/shared-JOo05hST.js +0 -66
  687. package/dist/shared-f7dvQsi7.js +0 -77
  688. package/dist/skill-scanner-CkaVLABv.js +0 -263
  689. package/dist/skills-B-G7UHOa.js +0 -808
  690. package/dist/skills-B5LQx4lT.js +0 -807
  691. package/dist/skills-cli-DUGe2ZWW.js +0 -286
  692. package/dist/skills-cli-DtOk0bvK.js +0 -289
  693. package/dist/skills-status-Clq9ZnYu.js +0 -166
  694. package/dist/skills-status-JQluhU-P.js +0 -166
  695. package/dist/sqlite-BukcjdJa.js +0 -321
  696. package/dist/sqlite-CGcOZZ0C.js +0 -368
  697. package/dist/sqlite-Ck6f9KWc.js +0 -453
  698. package/dist/start--xmSFepB.js +0 -372
  699. package/dist/start-BdlZbqrr.js +0 -371
  700. package/dist/status-BgoeFm6g.js +0 -2137
  701. package/dist/status-BjjDrUq7.js +0 -27
  702. package/dist/status-Ct0DgOZ-.js +0 -2132
  703. package/dist/status-RA_uNmK0.js +0 -27
  704. package/dist/status.update-BjOH3GlS.js +0 -79
  705. package/dist/status.update-DLU1qBf0.js +0 -79
  706. package/dist/subagent-registry-9RLdKxES.js +0 -2760
  707. package/dist/subagent-registry-Byuex3zp.js +0 -2759
  708. package/dist/subagent-registry-DOBunBYS.js +0 -14
  709. package/dist/subsystem-Dowf8fSU.js +0 -860
  710. package/dist/system-cli-C5oBpzni.js +0 -79
  711. package/dist/system-cli-DXNKD_Id.js +0 -82
  712. package/dist/systemd-BSrHDyeU.js +0 -452
  713. package/dist/systemd-By5xdSB4.js +0 -452
  714. package/dist/systemd-hints-BtjL_5Rh.js +0 -36
  715. package/dist/systemd-hints-sJmr6cjb.js +0 -36
  716. package/dist/systemd-linger-CTmV2Gci.js +0 -75
  717. package/dist/systemd-linger-CmyqQkeC.js +0 -75
  718. package/dist/table-BL0lJzsm.js +0 -279
  719. package/dist/table-DoiRPsn0.js +0 -279
  720. package/dist/timeout-CswI_K-U.js +0 -232
  721. package/dist/tokens-C-X7wDKj.js +0 -14
  722. package/dist/tokens-DkvqA72p.js +0 -14
  723. package/dist/trash-BJLK1vMn.js +0 -23
  724. package/dist/trash-_x5UZ94k.js +0 -23
  725. package/dist/tui-BHjxDFZC.js +0 -3894
  726. package/dist/tui-CgOocwN8.js +0 -3894
  727. package/dist/tui-cli-5ANH8dE5.js +0 -47
  728. package/dist/tui-cli-BQ4P-JW_.js +0 -50
  729. package/dist/update-LFgxHHPd.js +0 -317
  730. package/dist/update-TxptCqk7.js +0 -317
  731. package/dist/update-check-CWc7YXmc.js +0 -400
  732. package/dist/update-check-IhlWaui6.js +0 -400
  733. package/dist/update-cli-PtXU62w7.js +0 -1105
  734. package/dist/update-cli-Va0EtETG.js +0 -1105
  735. package/dist/update-runner-BLeKFkiB.js +0 -894
  736. package/dist/update-runner-Iuzpc-_y.js +0 -894
  737. package/dist/usage-ApGvBLVg.js +0 -4516
  738. package/dist/utils-Bsw__U-F.js +0 -243
  739. package/dist/web-B6_Ky60G.js +0 -63
  740. package/dist/web-EZLQEWXY.js +0 -46842
  741. package/dist/web-pec8YJUX.js +0 -2203
  742. package/dist/webhooks-cli-BYQKTHTp.js +0 -319
  743. package/dist/webhooks-cli-C2_xtsUQ.js +0 -316
  744. package/dist/whatsapp-actions-C72VCq8f.js +0 -49
  745. package/dist/whatsapp-actions-Ck9Uv0Nw.js +0 -45
  746. package/dist/whatsapp-actions-D0reTj2k.js +0 -53
  747. package/dist/widearea-dns-B6ocX23x.js +0 -127
  748. package/dist/widearea-dns-NsEUNYwz.js +0 -127
  749. package/dist/workspace-Dcfoy5JJ.js +0 -649
  750. package/dist/ws-log-N8R5MvGE.js +0 -267
  751. package/dist/ws-log-gwFxPxj5.js +0 -267
  752. /package/dist/{auto-update-CUeF99gI.js → auto-update-CpF0fycd.js} +0 -0
  753. /package/dist/{auto-update-cgkp9ZTJ.js → auto-update-DNWdO7uF.js} +0 -0
  754. /package/dist/{brew-CVZkr0GU.js → brew-nqf_MiE4.js} +0 -0
  755. /package/dist/{budget-DxYQSekw.js → budget-CPedI-qW.js} +0 -0
  756. /package/dist/{budget-BWBp8Res.js → budget-CRpvqDRX.js} +0 -0
  757. /package/dist/{cli-utils-DtAxdCte.js → cli-utils-C1YHVD4o.js} +0 -0
  758. /package/dist/{command-options-CSbuuqHr.js → command-options-BbponVnw.js} +0 -0
  759. /package/dist/{command-options-Cp1tf96a.js → command-options-s0gnvXnS.js} +0 -0
  760. /package/dist/{constants-O8yBqCBv.js → constants-Dhb6zSIV.js} +0 -0
  761. /package/dist/{dangerous-tools-5ObDWy1N.js → dangerous-tools-DGTtJ_JR.js} +0 -0
  762. /package/dist/{dangerous-tools-Jwr7jqNw.js → dangerous-tools-DxrfTOfT.js} +0 -0
  763. /package/dist/{delivery-queue-B6IHz4Ry.js → delivery-queue-Bxm0nzw7.js} +0 -0
  764. /package/dist/{display-BDOsXu8F.js → display-Jy3UdGzA.js} +0 -0
  765. /package/dist/{errors-CHow2wtt.js → errors-CKaCqKga.js} +0 -0
  766. /package/dist/{exec-BizYYQgP.js → exec-DDmuVVNq.js} +0 -0
  767. /package/dist/{format-Mq6iU0_5.js → format-ByEjgyTF.js} +0 -0
  768. /package/dist/{format-duration-DhWzz_5b.js → format-duration-Aaj5tjJd.js} +0 -0
  769. /package/dist/{format-relative-C6kUHuOj.js → format-relative-79_Y1n2Y.js} +0 -0
  770. /package/dist/{help-format-DUBI91Ti.js → help-format-BMKzarov.js} +0 -0
  771. /package/dist/{helpers-eJFa4K6r.js → helpers-DpEB9Mh0.js} +0 -0
  772. /package/dist/{helpers-DLgbkcEn.js → helpers-FMld9sBT.js} +0 -0
  773. /package/dist/{input-provenance-DJBdpeKk.js → input-provenance-Cy_KnBlP.js} +0 -0
  774. /package/dist/{is-main-Dt9DTcH1.js → is-main-yjaVwMtJ.js} +0 -0
  775. /package/dist/{loader-l2OBdJ8x.js → loader-Br7Vr0zn.js} +0 -0
  776. /package/dist/{loader-BoYxRfcW.js → loader-CkmOrXcC.js} +0 -0
  777. /package/dist/{logging-BdnOSVPD.js → logging-CY-Q5cwf.js} +0 -0
  778. /package/dist/{message-channel-w4F2b2F6.js → message-channel-dua8OOGJ.js} +0 -0
  779. /package/dist/{mime-B1ZoR53M.js → mime-CBg4KybI.js} +0 -0
  780. /package/dist/{model-param-b-DPwyNGn8.js → model-param-b-DW9f0NN8.js} +0 -0
  781. /package/dist/{node-match-8XZnaid6.js → node-match-BV8bTBd4.js} +0 -0
  782. /package/dist/{normalize-GDK8JTNW.js → normalize-_lmlBOW9.js} +0 -0
  783. /package/dist/{openclaw-root-C85WMnVV.js → openclaw-root-JPvmPTf7.js} +0 -0
  784. /package/dist/{outbound-send-deps-ANnAhImn.js → outbound-send-deps-BfUvuWGa.js} +0 -0
  785. /package/dist/{parse-6-2MDhdT.js → parse-CZRwKocn.js} +0 -0
  786. /package/dist/{parse-log-line-Bqh1SSzC.js → parse-log-line-CvrZEK6A.js} +0 -0
  787. /package/dist/{parse-log-line-DUZCjXbl.js → parse-log-line-mLdat0AH.js} +0 -0
  788. /package/dist/{parse-port-BKB9Exlg.js → parse-port-BSOOdo7I.js} +0 -0
  789. /package/dist/{parse-port-DrfvwwiL.js → parse-port-Y0NK62x1.js} +0 -0
  790. /package/dist/{parse-timeout-Di_tcEmi.js → parse-timeout-DVPQ3n9j.js} +0 -0
  791. /package/dist/{paths-DcVEkYX5.js → paths-DHjlJ6cn.js} +0 -0
  792. /package/dist/{pi-model-discovery-DsRqYJLy.js → pi-model-discovery-DzEIEgHL.js} +0 -0
  793. /package/dist/{plugins-CDJw924T.js → plugins-D6PBOdkn.js} +0 -0
  794. /package/dist/{program-context-Bvn8046-.js → program-context-Q1hkT73c.js} +0 -0
  795. /package/dist/{progress-CbZ2D53A.js → progress-C9Ha1NJh.js} +0 -0
  796. /package/dist/{prompt-style-DKy6qQxR.js → prompt-style-DQi8j03a.js} +0 -0
  797. /package/dist/{prompts-BI__va99.js → prompts-BEHxUC3w.js} +0 -0
  798. /package/dist/{prompts-_dDWkCAz.js → prompts-CSOhuiqe.js} +0 -0
  799. /package/dist/{queue-D_u34pbL.js → queue-BJGo7kAB.js} +0 -0
  800. /package/dist/{queue-PG591iID.js → queue-DYgUbdoq.js} +0 -0
  801. /package/dist/{redact-ClVwO7Nn.js → redact-CyKvdFrg.js} +0 -0
  802. /package/dist/{registry-Bs_DJK9E.js → registry-C5MAYD4V.js} +0 -0
  803. /package/dist/{registry-D_zlP1U-.js → registry-CRrXXVs0.js} +0 -0
  804. /package/dist/{requirements-BzZxj2Wu.js → requirements-CGkxTCu4.js} +0 -0
  805. /package/dist/{requirements-DIW1svgA.js → requirements-CIDaOcbO.js} +0 -0
  806. /package/dist/{runtime-guard-DeOXA_86.js → runtime-guard-nL3Lp8T-.js} +0 -0
  807. /package/dist/{secret-equal-Dghy3xsA.js → secret-equal-DJpmLXlG.js} +0 -0
  808. /package/dist/{send-BhAfdGII.js → send-CTcxgDDU.js} +0 -0
  809. /package/dist/{send-ga9udK1_.js → send-DPezUR3-.js} +0 -0
  810. /package/dist/{send-C2t9xpXI.js → send-DZQTaG7-.js} +0 -0
  811. /package/dist/{send-DigO-i9j.js → send-VDff2gra.js} +0 -0
  812. /package/dist/{send-Dz2BDHll.js → send-bgQNV8d1.js} +0 -0
  813. /package/dist/{session-key-BGiG_JcT.js → session-key-CQT-NR6w.js} +0 -0
  814. /package/dist/{shell-argv-CAq1mLa2.js → shell-argv-n9IueeJQ.js} +0 -0
  815. /package/dist/{skill-scanner-Coo4QoCd.js → skill-scanner-o6NgVMD9.js} +0 -0
  816. /package/dist/{status-CMnlcBVc.js → status-C53kTIXF.js} +0 -0
  817. /package/dist/{status-tDZPwewW.js → status-CZDDA_Sy.js} +0 -0
  818. /package/dist/{system-run-command-X9lDJIy0.js → system-run-command-BCjUffN9.js} +0 -0
  819. /package/dist/{system-run-command-DGk7dwQP.js → system-run-command-CqAqKL9K.js} +0 -0
  820. /package/dist/{tailnet-CuiNECdL.js → tailnet-Ciwjv243.js} +0 -0
  821. /package/dist/{templates-CeYJjVzw.js → templates-37RKpACb.js} +0 -0
  822. /package/dist/{templates-I3Z0xplD.js → templates-DPalk30o.js} +0 -0
  823. /package/dist/{thinking-BXEswx1X.js → thinking-2hxwmvTl.js} +0 -0
  824. /package/dist/{transcript-events-C1hdue6u.js → transcript-events-Bp7fGnwv.js} +0 -0
  825. /package/dist/{transcript-tools-DuyYOkUq.js → transcript-tools-D4Lbxlka.js} +0 -0
  826. /package/dist/{usage-format-BAirWUSO.js → usage-format-6Uar63S0.js} +0 -0
  827. /package/dist/{utils-C9sj30YY.js → utils-DT8uXjFS.js} +0 -0
  828. /package/dist/{wsl-CqyuRvtM.js → wsl-CrPvx2kZ.js} +0 -0
  829. /package/dist/{wsl-ymJYvc9Q.js → wsl-UvJ5dHah.js} +0 -0
@@ -0,0 +1,1165 @@
1
+ import { g as restoreTerminalState, h as defaultRuntime, q as resolveGatewayPort } from "./entry.js";
2
+ import { a as resolveApiKeyForProfile, h as ensureAuthProfileStore, j as normalizeProviderId, lt as normalizeOptionalSecretInput, n as resolveAuthProfileOrder, p as upsertAuthProfile, st as resolveEnvApiKey, ut as normalizeSecretInput } from "./auth-profiles-CxSHydjn.js";
3
+ import { t as formatCliCommand } from "./command-format-G6N2zghg.js";
4
+ import { S as shortenHomePath, y as resolveUserPath } from "./utils-DT8uXjFS.js";
5
+ import { l as writeConfigFile, m as parseDurationMs, o as readConfigFileSnapshot } from "./config-CU-Axg8P.js";
6
+ import { t as WizardCancelledError } from "./prompts-BEHxUC3w.js";
7
+ import { t as createClackPrompter } from "./clack-prompter-BI3RDW5w.js";
8
+ import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-rUTqCVwJ.js";
9
+ import { t as assertSupportedRuntime } from "./runtime-guard-nL3Lp8T-.js";
10
+ import { a as ensureWorkspaceAndSessions, c as handleReset, h as resolveControlUiLinks, m as randomToken, n as applyWizardMetadata, t as DEFAULT_WORKSPACE, y as waitForGatewayReachable } from "./onboard-helpers-B8roRwLP.js";
11
+ import { r as isSystemdUserServiceAvailable } from "./systemd-RpPE0XGg.js";
12
+ import { t as resolveGatewayService } from "./service-CJJwLEor.js";
13
+ import { a as CustomApiError, l as resolveCustomProviderId, o as applyCustomApiConfig, s as parseNonInteractiveCustomApiFlags } from "./ipv4-DCItfaJo.js";
14
+ import { r as healthCommand } from "./health-DUf1gt4E.js";
15
+ import { a as applyOpenAIConfig, c as detectZaiEndpoint, f as isDeprecatedAuthChoice, l as applyGoogleGeminiModelDefault, p as normalizeLegacyOnboardAuthChoice, s as upsertSharedEnvVar } from "./auth-choice-DA2k4vs8.js";
16
+ import { A as applySyntheticConfig, B as applyZaiConfig, C as applyMoonshotConfigCn, E as applyOpenrouterConfig, H as applyLitellmConfig, I as applyXaiConfig, K as applyVercelAiGatewayConfig, M as applyTogetherConfig, O as applyQianfanConfig, Ot as buildTokenProfileId, P as applyVeniceConfig, R as applyXiaomiConfig, S as applyMoonshotConfig, W as applyCloudflareAiGatewayConfig, _ as applyAuthProfileConfig, _t as setXiaomiApiKey, at as setKimiCodingApiKey, b as applyKimiCodeConfig, ct as setMoonshotApiKey, d as applyMinimaxApiConfig, dt as setQianfanApiKey, f as applyMinimaxApiConfigCn, ft as setSyntheticApiKey, gt as setXaiApiKey, h as applyMinimaxConfig, ht as setVercelAiGatewayApiKey, it as setHuggingfaceApiKey, kt as validateAnthropicSetupToken, l as applyOpencodeZenConfig, lt as setOpencodeZenApiKey, mt as setVeniceApiKey, nt as setCloudflareAiGatewayConfig, ot as setLitellmApiKey, pt as setTogetherApiKey, rt as setGeminiApiKey, st as setMinimaxApiKey, tt as setAnthropicApiKey, ut as setOpenrouterApiKey, v as applyHuggingfaceConfig, vt as setZaiApiKey } from "./github-copilot-auth-DXpOMSd3.js";
17
+ import { t as runOnboardingWizard } from "./onboarding-C2gjB2u8.js";
18
+ import { n as logConfigUpdated } from "./logging-C7lb3Vjc.js";
19
+ import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-EujbmI5A.js";
20
+
21
+ //#region src/commands/onboard-provider-auth-flags.ts
22
+ const ONBOARD_PROVIDER_AUTH_FLAGS = [
23
+ {
24
+ optionKey: "anthropicApiKey",
25
+ authChoice: "apiKey",
26
+ cliFlag: "--anthropic-api-key",
27
+ cliOption: "--anthropic-api-key <key>",
28
+ description: "Anthropic API key"
29
+ },
30
+ {
31
+ optionKey: "openaiApiKey",
32
+ authChoice: "openai-api-key",
33
+ cliFlag: "--openai-api-key",
34
+ cliOption: "--openai-api-key <key>",
35
+ description: "OpenAI API key"
36
+ },
37
+ {
38
+ optionKey: "openrouterApiKey",
39
+ authChoice: "openrouter-api-key",
40
+ cliFlag: "--openrouter-api-key",
41
+ cliOption: "--openrouter-api-key <key>",
42
+ description: "OpenRouter API key"
43
+ },
44
+ {
45
+ optionKey: "aiGatewayApiKey",
46
+ authChoice: "ai-gateway-api-key",
47
+ cliFlag: "--ai-gateway-api-key",
48
+ cliOption: "--ai-gateway-api-key <key>",
49
+ description: "Vercel AI Gateway API key"
50
+ },
51
+ {
52
+ optionKey: "cloudflareAiGatewayApiKey",
53
+ authChoice: "cloudflare-ai-gateway-api-key",
54
+ cliFlag: "--cloudflare-ai-gateway-api-key",
55
+ cliOption: "--cloudflare-ai-gateway-api-key <key>",
56
+ description: "Cloudflare AI Gateway API key"
57
+ },
58
+ {
59
+ optionKey: "moonshotApiKey",
60
+ authChoice: "moonshot-api-key",
61
+ cliFlag: "--moonshot-api-key",
62
+ cliOption: "--moonshot-api-key <key>",
63
+ description: "Moonshot API key"
64
+ },
65
+ {
66
+ optionKey: "kimiCodeApiKey",
67
+ authChoice: "kimi-code-api-key",
68
+ cliFlag: "--kimi-code-api-key",
69
+ cliOption: "--kimi-code-api-key <key>",
70
+ description: "Kimi Coding API key"
71
+ },
72
+ {
73
+ optionKey: "geminiApiKey",
74
+ authChoice: "gemini-api-key",
75
+ cliFlag: "--gemini-api-key",
76
+ cliOption: "--gemini-api-key <key>",
77
+ description: "Gemini API key"
78
+ },
79
+ {
80
+ optionKey: "zaiApiKey",
81
+ authChoice: "zai-api-key",
82
+ cliFlag: "--zai-api-key",
83
+ cliOption: "--zai-api-key <key>",
84
+ description: "Z.AI API key"
85
+ },
86
+ {
87
+ optionKey: "xiaomiApiKey",
88
+ authChoice: "xiaomi-api-key",
89
+ cliFlag: "--xiaomi-api-key",
90
+ cliOption: "--xiaomi-api-key <key>",
91
+ description: "Xiaomi API key"
92
+ },
93
+ {
94
+ optionKey: "minimaxApiKey",
95
+ authChoice: "minimax-api",
96
+ cliFlag: "--minimax-api-key",
97
+ cliOption: "--minimax-api-key <key>",
98
+ description: "MiniMax API key"
99
+ },
100
+ {
101
+ optionKey: "syntheticApiKey",
102
+ authChoice: "synthetic-api-key",
103
+ cliFlag: "--synthetic-api-key",
104
+ cliOption: "--synthetic-api-key <key>",
105
+ description: "Synthetic API key"
106
+ },
107
+ {
108
+ optionKey: "veniceApiKey",
109
+ authChoice: "venice-api-key",
110
+ cliFlag: "--venice-api-key",
111
+ cliOption: "--venice-api-key <key>",
112
+ description: "Venice API key"
113
+ },
114
+ {
115
+ optionKey: "togetherApiKey",
116
+ authChoice: "together-api-key",
117
+ cliFlag: "--together-api-key",
118
+ cliOption: "--together-api-key <key>",
119
+ description: "Together AI API key"
120
+ },
121
+ {
122
+ optionKey: "huggingfaceApiKey",
123
+ authChoice: "huggingface-api-key",
124
+ cliFlag: "--huggingface-api-key",
125
+ cliOption: "--huggingface-api-key <key>",
126
+ description: "Hugging Face API key (HF token)"
127
+ },
128
+ {
129
+ optionKey: "opencodeZenApiKey",
130
+ authChoice: "opencode-zen",
131
+ cliFlag: "--opencode-zen-api-key",
132
+ cliOption: "--opencode-zen-api-key <key>",
133
+ description: "OpenCode Zen API key"
134
+ },
135
+ {
136
+ optionKey: "xaiApiKey",
137
+ authChoice: "xai-api-key",
138
+ cliFlag: "--xai-api-key",
139
+ cliOption: "--xai-api-key <key>",
140
+ description: "xAI API key"
141
+ },
142
+ {
143
+ optionKey: "litellmApiKey",
144
+ authChoice: "litellm-api-key",
145
+ cliFlag: "--litellm-api-key",
146
+ cliOption: "--litellm-api-key <key>",
147
+ description: "LiteLLM API key"
148
+ },
149
+ {
150
+ optionKey: "qianfanApiKey",
151
+ authChoice: "qianfan-api-key",
152
+ cliFlag: "--qianfan-api-key",
153
+ cliOption: "--qianfan-api-key <key>",
154
+ description: "QIANFAN API key"
155
+ }
156
+ ];
157
+
158
+ //#endregion
159
+ //#region src/commands/onboard-interactive.ts
160
+ async function runInteractiveOnboarding(opts, runtime = defaultRuntime) {
161
+ const prompter = createClackPrompter();
162
+ let exitCode = null;
163
+ try {
164
+ await runOnboardingWizard(opts, runtime, prompter);
165
+ } catch (err) {
166
+ if (err instanceof WizardCancelledError) {
167
+ exitCode = 1;
168
+ return;
169
+ }
170
+ throw err;
171
+ } finally {
172
+ restoreTerminalState("onboarding finish", { resumeStdinIfPaused: false });
173
+ if (exitCode !== null) runtime.exit(exitCode);
174
+ }
175
+ }
176
+
177
+ //#endregion
178
+ //#region src/commands/onboard-non-interactive/local/auth-choice-inference.ts
179
+ function hasStringValue(value) {
180
+ return typeof value === "string" ? value.trim().length > 0 : Boolean(value);
181
+ }
182
+ function inferAuthChoiceFromFlags(opts) {
183
+ const matches = ONBOARD_PROVIDER_AUTH_FLAGS.filter(({ optionKey }) => hasStringValue(opts[optionKey])).map((flag) => ({
184
+ optionKey: flag.optionKey,
185
+ authChoice: flag.authChoice,
186
+ label: flag.cliFlag
187
+ }));
188
+ if (hasStringValue(opts.customBaseUrl) || hasStringValue(opts.customModelId) || hasStringValue(opts.customApiKey)) matches.push({
189
+ optionKey: "customBaseUrl",
190
+ authChoice: "custom-api-key",
191
+ label: "--custom-base-url/--custom-model-id/--custom-api-key"
192
+ });
193
+ return {
194
+ choice: matches[0]?.authChoice,
195
+ matches
196
+ };
197
+ }
198
+
199
+ //#endregion
200
+ //#region src/commands/onboard-non-interactive/api-keys.ts
201
+ async function resolveApiKeyFromProfiles(params) {
202
+ const store = ensureAuthProfileStore(params.agentDir);
203
+ const order = resolveAuthProfileOrder({
204
+ cfg: params.cfg,
205
+ store,
206
+ provider: params.provider
207
+ });
208
+ for (const profileId of order) {
209
+ if (store.profiles[profileId]?.type !== "api_key") continue;
210
+ const resolved = await resolveApiKeyForProfile({
211
+ cfg: params.cfg,
212
+ store,
213
+ profileId,
214
+ agentDir: params.agentDir
215
+ });
216
+ if (resolved?.apiKey) return resolved.apiKey;
217
+ }
218
+ return null;
219
+ }
220
+ async function resolveNonInteractiveApiKey(params) {
221
+ const flagKey = normalizeOptionalSecretInput(params.flagValue);
222
+ if (flagKey) return {
223
+ key: flagKey,
224
+ source: "flag"
225
+ };
226
+ const envResolved = resolveEnvApiKey(params.provider);
227
+ if (envResolved?.apiKey) return {
228
+ key: envResolved.apiKey,
229
+ source: "env"
230
+ };
231
+ const explicitEnvVar = params.envVarName?.trim();
232
+ if (explicitEnvVar) {
233
+ const explicitEnvKey = normalizeOptionalSecretInput(process.env[explicitEnvVar]);
234
+ if (explicitEnvKey) return {
235
+ key: explicitEnvKey,
236
+ source: "env"
237
+ };
238
+ }
239
+ if (params.allowProfile ?? true) {
240
+ const profileKey = await resolveApiKeyFromProfiles({
241
+ provider: params.provider,
242
+ cfg: params.cfg,
243
+ agentDir: params.agentDir
244
+ });
245
+ if (profileKey) return {
246
+ key: profileKey,
247
+ source: "profile"
248
+ };
249
+ }
250
+ if (params.required === false) return null;
251
+ const profileHint = params.allowProfile === false ? "" : `, or existing ${params.provider} API-key profile`;
252
+ params.runtime.error(`Missing ${params.flagName} (or ${params.envVar} in env${profileHint}).`);
253
+ params.runtime.exit(1);
254
+ return null;
255
+ }
256
+
257
+ //#endregion
258
+ //#region src/commands/onboard-non-interactive/local/auth-choice.ts
259
+ async function applyNonInteractiveAuthChoice(params) {
260
+ const { authChoice, opts, runtime, baseConfig } = params;
261
+ let nextConfig = params.nextConfig;
262
+ if (authChoice === "claude-cli" || authChoice === "codex-cli") {
263
+ runtime.error([`Auth choice "${authChoice}" is deprecated.`, "Use \"--auth-choice token\" (Anthropic setup-token) or \"--auth-choice openai-codex\"."].join("\n"));
264
+ runtime.exit(1);
265
+ return null;
266
+ }
267
+ if (authChoice === "setup-token") {
268
+ runtime.error(["Auth choice \"setup-token\" requires interactive mode.", "Use \"--auth-choice token\" with --token and --token-provider anthropic."].join("\n"));
269
+ runtime.exit(1);
270
+ return null;
271
+ }
272
+ if (authChoice === "vllm") {
273
+ runtime.error(["Auth choice \"vllm\" requires interactive mode.", "Use interactive onboard/configure to enter base URL, API key, and model ID."].join("\n"));
274
+ runtime.exit(1);
275
+ return null;
276
+ }
277
+ if (authChoice === "apiKey") {
278
+ const resolved = await resolveNonInteractiveApiKey({
279
+ provider: "anthropic",
280
+ cfg: baseConfig,
281
+ flagValue: opts.anthropicApiKey,
282
+ flagName: "--anthropic-api-key",
283
+ envVar: "ANTHROPIC_API_KEY",
284
+ runtime
285
+ });
286
+ if (!resolved) return null;
287
+ if (resolved.source !== "profile") await setAnthropicApiKey(resolved.key);
288
+ return applyAuthProfileConfig(nextConfig, {
289
+ profileId: "anthropic:default",
290
+ provider: "anthropic",
291
+ mode: "api_key"
292
+ });
293
+ }
294
+ if (authChoice === "token") {
295
+ const providerRaw = opts.tokenProvider?.trim();
296
+ if (!providerRaw) {
297
+ runtime.error("Missing --token-provider for --auth-choice token.");
298
+ runtime.exit(1);
299
+ return null;
300
+ }
301
+ const provider = normalizeProviderId(providerRaw);
302
+ if (provider !== "anthropic") {
303
+ runtime.error("Only --token-provider anthropic is supported for --auth-choice token.");
304
+ runtime.exit(1);
305
+ return null;
306
+ }
307
+ const tokenRaw = normalizeSecretInput(opts.token);
308
+ if (!tokenRaw) {
309
+ runtime.error("Missing --token for --auth-choice token.");
310
+ runtime.exit(1);
311
+ return null;
312
+ }
313
+ const tokenError = validateAnthropicSetupToken(tokenRaw);
314
+ if (tokenError) {
315
+ runtime.error(tokenError);
316
+ runtime.exit(1);
317
+ return null;
318
+ }
319
+ let expires;
320
+ const expiresInRaw = opts.tokenExpiresIn?.trim();
321
+ if (expiresInRaw) try {
322
+ expires = Date.now() + parseDurationMs(expiresInRaw, { defaultUnit: "d" });
323
+ } catch (err) {
324
+ runtime.error(`Invalid --token-expires-in: ${String(err)}`);
325
+ runtime.exit(1);
326
+ return null;
327
+ }
328
+ const profileId = opts.tokenProfileId?.trim() || buildTokenProfileId({
329
+ provider,
330
+ name: ""
331
+ });
332
+ upsertAuthProfile({
333
+ profileId,
334
+ credential: {
335
+ type: "token",
336
+ provider,
337
+ token: tokenRaw.trim(),
338
+ ...expires ? { expires } : {}
339
+ }
340
+ });
341
+ return applyAuthProfileConfig(nextConfig, {
342
+ profileId,
343
+ provider,
344
+ mode: "token"
345
+ });
346
+ }
347
+ if (authChoice === "gemini-api-key") {
348
+ const resolved = await resolveNonInteractiveApiKey({
349
+ provider: "google",
350
+ cfg: baseConfig,
351
+ flagValue: opts.geminiApiKey,
352
+ flagName: "--gemini-api-key",
353
+ envVar: "GEMINI_API_KEY",
354
+ runtime
355
+ });
356
+ if (!resolved) return null;
357
+ if (resolved.source !== "profile") await setGeminiApiKey(resolved.key);
358
+ nextConfig = applyAuthProfileConfig(nextConfig, {
359
+ profileId: "google:default",
360
+ provider: "google",
361
+ mode: "api_key"
362
+ });
363
+ return applyGoogleGeminiModelDefault(nextConfig).next;
364
+ }
365
+ if (authChoice === "zai-api-key" || authChoice === "zai-coding-global" || authChoice === "zai-coding-cn" || authChoice === "zai-global" || authChoice === "zai-cn") {
366
+ const resolved = await resolveNonInteractiveApiKey({
367
+ provider: "zai",
368
+ cfg: baseConfig,
369
+ flagValue: opts.zaiApiKey,
370
+ flagName: "--zai-api-key",
371
+ envVar: "ZAI_API_KEY",
372
+ runtime
373
+ });
374
+ if (!resolved) return null;
375
+ if (resolved.source !== "profile") await setZaiApiKey(resolved.key);
376
+ nextConfig = applyAuthProfileConfig(nextConfig, {
377
+ profileId: "zai:default",
378
+ provider: "zai",
379
+ mode: "api_key"
380
+ });
381
+ let endpoint;
382
+ let modelIdOverride;
383
+ if (authChoice === "zai-coding-global") endpoint = "coding-global";
384
+ else if (authChoice === "zai-coding-cn") endpoint = "coding-cn";
385
+ else if (authChoice === "zai-global") endpoint = "global";
386
+ else if (authChoice === "zai-cn") endpoint = "cn";
387
+ else {
388
+ const detected = await detectZaiEndpoint({ apiKey: resolved.key });
389
+ if (detected) {
390
+ endpoint = detected.endpoint;
391
+ modelIdOverride = detected.modelId;
392
+ } else endpoint = "global";
393
+ }
394
+ return applyZaiConfig(nextConfig, {
395
+ endpoint,
396
+ ...modelIdOverride ? { modelId: modelIdOverride } : {}
397
+ });
398
+ }
399
+ if (authChoice === "xiaomi-api-key") {
400
+ const resolved = await resolveNonInteractiveApiKey({
401
+ provider: "xiaomi",
402
+ cfg: baseConfig,
403
+ flagValue: opts.xiaomiApiKey,
404
+ flagName: "--xiaomi-api-key",
405
+ envVar: "XIAOMI_API_KEY",
406
+ runtime
407
+ });
408
+ if (!resolved) return null;
409
+ if (resolved.source !== "profile") await setXiaomiApiKey(resolved.key);
410
+ nextConfig = applyAuthProfileConfig(nextConfig, {
411
+ profileId: "xiaomi:default",
412
+ provider: "xiaomi",
413
+ mode: "api_key"
414
+ });
415
+ return applyXiaomiConfig(nextConfig);
416
+ }
417
+ if (authChoice === "xai-api-key") {
418
+ const resolved = await resolveNonInteractiveApiKey({
419
+ provider: "xai",
420
+ cfg: baseConfig,
421
+ flagValue: opts.xaiApiKey,
422
+ flagName: "--xai-api-key",
423
+ envVar: "XAI_API_KEY",
424
+ runtime
425
+ });
426
+ if (!resolved) return null;
427
+ if (resolved.source !== "profile") setXaiApiKey(resolved.key);
428
+ nextConfig = applyAuthProfileConfig(nextConfig, {
429
+ profileId: "xai:default",
430
+ provider: "xai",
431
+ mode: "api_key"
432
+ });
433
+ return applyXaiConfig(nextConfig);
434
+ }
435
+ if (authChoice === "qianfan-api-key") {
436
+ const resolved = await resolveNonInteractiveApiKey({
437
+ provider: "qianfan",
438
+ cfg: baseConfig,
439
+ flagValue: opts.qianfanApiKey,
440
+ flagName: "--qianfan-api-key",
441
+ envVar: "QIANFAN_API_KEY",
442
+ runtime
443
+ });
444
+ if (!resolved) return null;
445
+ if (resolved.source !== "profile") setQianfanApiKey(resolved.key);
446
+ nextConfig = applyAuthProfileConfig(nextConfig, {
447
+ profileId: "qianfan:default",
448
+ provider: "qianfan",
449
+ mode: "api_key"
450
+ });
451
+ return applyQianfanConfig(nextConfig);
452
+ }
453
+ if (authChoice === "openai-api-key") {
454
+ const resolved = await resolveNonInteractiveApiKey({
455
+ provider: "openai",
456
+ cfg: baseConfig,
457
+ flagValue: opts.openaiApiKey,
458
+ flagName: "--openai-api-key",
459
+ envVar: "OPENAI_API_KEY",
460
+ runtime,
461
+ allowProfile: false
462
+ });
463
+ if (!resolved) return null;
464
+ const key = resolved.key;
465
+ const result = upsertSharedEnvVar({
466
+ key: "OPENAI_API_KEY",
467
+ value: key
468
+ });
469
+ process.env.OPENAI_API_KEY = key;
470
+ runtime.log(`Saved OPENAI_API_KEY to ${shortenHomePath(result.path)}`);
471
+ return applyOpenAIConfig(nextConfig);
472
+ }
473
+ if (authChoice === "openrouter-api-key") {
474
+ const resolved = await resolveNonInteractiveApiKey({
475
+ provider: "openrouter",
476
+ cfg: baseConfig,
477
+ flagValue: opts.openrouterApiKey,
478
+ flagName: "--openrouter-api-key",
479
+ envVar: "OPENROUTER_API_KEY",
480
+ runtime
481
+ });
482
+ if (!resolved) return null;
483
+ if (resolved.source !== "profile") await setOpenrouterApiKey(resolved.key);
484
+ nextConfig = applyAuthProfileConfig(nextConfig, {
485
+ profileId: "openrouter:default",
486
+ provider: "openrouter",
487
+ mode: "api_key"
488
+ });
489
+ return applyOpenrouterConfig(nextConfig);
490
+ }
491
+ if (authChoice === "litellm-api-key") {
492
+ const resolved = await resolveNonInteractiveApiKey({
493
+ provider: "litellm",
494
+ cfg: baseConfig,
495
+ flagValue: opts.litellmApiKey,
496
+ flagName: "--litellm-api-key",
497
+ envVar: "LITELLM_API_KEY",
498
+ runtime
499
+ });
500
+ if (!resolved) return null;
501
+ if (resolved.source !== "profile") await setLitellmApiKey(resolved.key);
502
+ nextConfig = applyAuthProfileConfig(nextConfig, {
503
+ profileId: "litellm:default",
504
+ provider: "litellm",
505
+ mode: "api_key"
506
+ });
507
+ return applyLitellmConfig(nextConfig);
508
+ }
509
+ if (authChoice === "ai-gateway-api-key") {
510
+ const resolved = await resolveNonInteractiveApiKey({
511
+ provider: "vercel-ai-gateway",
512
+ cfg: baseConfig,
513
+ flagValue: opts.aiGatewayApiKey,
514
+ flagName: "--ai-gateway-api-key",
515
+ envVar: "AI_GATEWAY_API_KEY",
516
+ runtime
517
+ });
518
+ if (!resolved) return null;
519
+ if (resolved.source !== "profile") await setVercelAiGatewayApiKey(resolved.key);
520
+ nextConfig = applyAuthProfileConfig(nextConfig, {
521
+ profileId: "vercel-ai-gateway:default",
522
+ provider: "vercel-ai-gateway",
523
+ mode: "api_key"
524
+ });
525
+ return applyVercelAiGatewayConfig(nextConfig);
526
+ }
527
+ if (authChoice === "cloudflare-ai-gateway-api-key") {
528
+ const accountId = opts.cloudflareAiGatewayAccountId?.trim() ?? "";
529
+ const gatewayId = opts.cloudflareAiGatewayGatewayId?.trim() ?? "";
530
+ if (!accountId || !gatewayId) {
531
+ runtime.error(["Auth choice \"cloudflare-ai-gateway-api-key\" requires Account ID and Gateway ID.", "Use --cloudflare-ai-gateway-account-id and --cloudflare-ai-gateway-gateway-id."].join("\n"));
532
+ runtime.exit(1);
533
+ return null;
534
+ }
535
+ const resolved = await resolveNonInteractiveApiKey({
536
+ provider: "cloudflare-ai-gateway",
537
+ cfg: baseConfig,
538
+ flagValue: opts.cloudflareAiGatewayApiKey,
539
+ flagName: "--cloudflare-ai-gateway-api-key",
540
+ envVar: "CLOUDFLARE_AI_GATEWAY_API_KEY",
541
+ runtime
542
+ });
543
+ if (!resolved) return null;
544
+ if (resolved.source !== "profile") await setCloudflareAiGatewayConfig(accountId, gatewayId, resolved.key);
545
+ nextConfig = applyAuthProfileConfig(nextConfig, {
546
+ profileId: "cloudflare-ai-gateway:default",
547
+ provider: "cloudflare-ai-gateway",
548
+ mode: "api_key"
549
+ });
550
+ return applyCloudflareAiGatewayConfig(nextConfig, {
551
+ accountId,
552
+ gatewayId
553
+ });
554
+ }
555
+ const applyMoonshotApiKeyChoice = async (applyConfig) => {
556
+ const resolved = await resolveNonInteractiveApiKey({
557
+ provider: "moonshot",
558
+ cfg: baseConfig,
559
+ flagValue: opts.moonshotApiKey,
560
+ flagName: "--moonshot-api-key",
561
+ envVar: "MOONSHOT_API_KEY",
562
+ runtime
563
+ });
564
+ if (!resolved) return null;
565
+ if (resolved.source !== "profile") await setMoonshotApiKey(resolved.key);
566
+ nextConfig = applyAuthProfileConfig(nextConfig, {
567
+ profileId: "moonshot:default",
568
+ provider: "moonshot",
569
+ mode: "api_key"
570
+ });
571
+ return applyConfig(nextConfig);
572
+ };
573
+ if (authChoice === "moonshot-api-key") return await applyMoonshotApiKeyChoice(applyMoonshotConfig);
574
+ if (authChoice === "moonshot-api-key-cn") return await applyMoonshotApiKeyChoice(applyMoonshotConfigCn);
575
+ if (authChoice === "kimi-code-api-key") {
576
+ const resolved = await resolveNonInteractiveApiKey({
577
+ provider: "kimi-coding",
578
+ cfg: baseConfig,
579
+ flagValue: opts.kimiCodeApiKey,
580
+ flagName: "--kimi-code-api-key",
581
+ envVar: "KIMI_API_KEY",
582
+ runtime
583
+ });
584
+ if (!resolved) return null;
585
+ if (resolved.source !== "profile") await setKimiCodingApiKey(resolved.key);
586
+ nextConfig = applyAuthProfileConfig(nextConfig, {
587
+ profileId: "kimi-coding:default",
588
+ provider: "kimi-coding",
589
+ mode: "api_key"
590
+ });
591
+ return applyKimiCodeConfig(nextConfig);
592
+ }
593
+ if (authChoice === "synthetic-api-key") {
594
+ const resolved = await resolveNonInteractiveApiKey({
595
+ provider: "synthetic",
596
+ cfg: baseConfig,
597
+ flagValue: opts.syntheticApiKey,
598
+ flagName: "--synthetic-api-key",
599
+ envVar: "SYNTHETIC_API_KEY",
600
+ runtime
601
+ });
602
+ if (!resolved) return null;
603
+ if (resolved.source !== "profile") await setSyntheticApiKey(resolved.key);
604
+ nextConfig = applyAuthProfileConfig(nextConfig, {
605
+ profileId: "synthetic:default",
606
+ provider: "synthetic",
607
+ mode: "api_key"
608
+ });
609
+ return applySyntheticConfig(nextConfig);
610
+ }
611
+ if (authChoice === "venice-api-key") {
612
+ const resolved = await resolveNonInteractiveApiKey({
613
+ provider: "venice",
614
+ cfg: baseConfig,
615
+ flagValue: opts.veniceApiKey,
616
+ flagName: "--venice-api-key",
617
+ envVar: "VENICE_API_KEY",
618
+ runtime
619
+ });
620
+ if (!resolved) return null;
621
+ if (resolved.source !== "profile") await setVeniceApiKey(resolved.key);
622
+ nextConfig = applyAuthProfileConfig(nextConfig, {
623
+ profileId: "venice:default",
624
+ provider: "venice",
625
+ mode: "api_key"
626
+ });
627
+ return applyVeniceConfig(nextConfig);
628
+ }
629
+ if (authChoice === "minimax-cloud" || authChoice === "minimax-api" || authChoice === "minimax-api-key-cn" || authChoice === "minimax-api-lightning") {
630
+ const isCn = authChoice === "minimax-api-key-cn";
631
+ const providerId = isCn ? "minimax-cn" : "minimax";
632
+ const profileId = `${providerId}:default`;
633
+ const resolved = await resolveNonInteractiveApiKey({
634
+ provider: providerId,
635
+ cfg: baseConfig,
636
+ flagValue: opts.minimaxApiKey,
637
+ flagName: "--minimax-api-key",
638
+ envVar: "MINIMAX_API_KEY",
639
+ runtime
640
+ });
641
+ if (!resolved) return null;
642
+ if (resolved.source !== "profile") await setMinimaxApiKey(resolved.key, void 0, profileId);
643
+ nextConfig = applyAuthProfileConfig(nextConfig, {
644
+ profileId,
645
+ provider: providerId,
646
+ mode: "api_key"
647
+ });
648
+ const modelId = authChoice === "minimax-api-lightning" ? "MiniMax-M2.5-Lightning" : "MiniMax-M2.5";
649
+ return isCn ? applyMinimaxApiConfigCn(nextConfig, modelId) : applyMinimaxApiConfig(nextConfig, modelId);
650
+ }
651
+ if (authChoice === "minimax") return applyMinimaxConfig(nextConfig);
652
+ if (authChoice === "opencode-zen") {
653
+ const resolved = await resolveNonInteractiveApiKey({
654
+ provider: "opencode",
655
+ cfg: baseConfig,
656
+ flagValue: opts.opencodeZenApiKey,
657
+ flagName: "--opencode-zen-api-key",
658
+ envVar: "OPENCODE_API_KEY (or OPENCODE_ZEN_API_KEY)",
659
+ runtime
660
+ });
661
+ if (!resolved) return null;
662
+ if (resolved.source !== "profile") await setOpencodeZenApiKey(resolved.key);
663
+ nextConfig = applyAuthProfileConfig(nextConfig, {
664
+ profileId: "opencode:default",
665
+ provider: "opencode",
666
+ mode: "api_key"
667
+ });
668
+ return applyOpencodeZenConfig(nextConfig);
669
+ }
670
+ if (authChoice === "together-api-key") {
671
+ const resolved = await resolveNonInteractiveApiKey({
672
+ provider: "together",
673
+ cfg: baseConfig,
674
+ flagValue: opts.togetherApiKey,
675
+ flagName: "--together-api-key",
676
+ envVar: "TOGETHER_API_KEY",
677
+ runtime
678
+ });
679
+ if (!resolved) return null;
680
+ if (resolved.source !== "profile") await setTogetherApiKey(resolved.key);
681
+ nextConfig = applyAuthProfileConfig(nextConfig, {
682
+ profileId: "together:default",
683
+ provider: "together",
684
+ mode: "api_key"
685
+ });
686
+ return applyTogetherConfig(nextConfig);
687
+ }
688
+ if (authChoice === "huggingface-api-key") {
689
+ const resolved = await resolveNonInteractiveApiKey({
690
+ provider: "huggingface",
691
+ cfg: baseConfig,
692
+ flagValue: opts.huggingfaceApiKey,
693
+ flagName: "--huggingface-api-key",
694
+ envVar: "HF_TOKEN",
695
+ runtime
696
+ });
697
+ if (!resolved) return null;
698
+ if (resolved.source !== "profile") await setHuggingfaceApiKey(resolved.key);
699
+ nextConfig = applyAuthProfileConfig(nextConfig, {
700
+ profileId: "huggingface:default",
701
+ provider: "huggingface",
702
+ mode: "api_key"
703
+ });
704
+ return applyHuggingfaceConfig(nextConfig);
705
+ }
706
+ if (authChoice === "custom-api-key") try {
707
+ const customAuth = parseNonInteractiveCustomApiFlags({
708
+ baseUrl: opts.customBaseUrl,
709
+ modelId: opts.customModelId,
710
+ compatibility: opts.customCompatibility,
711
+ apiKey: opts.customApiKey,
712
+ providerId: opts.customProviderId
713
+ });
714
+ const resolvedCustomApiKey = await resolveNonInteractiveApiKey({
715
+ provider: resolveCustomProviderId({
716
+ config: nextConfig,
717
+ baseUrl: customAuth.baseUrl,
718
+ providerId: customAuth.providerId
719
+ }).providerId,
720
+ cfg: baseConfig,
721
+ flagValue: customAuth.apiKey,
722
+ flagName: "--custom-api-key",
723
+ envVar: "CUSTOM_API_KEY",
724
+ envVarName: "CUSTOM_API_KEY",
725
+ runtime,
726
+ required: false
727
+ });
728
+ const result = applyCustomApiConfig({
729
+ config: nextConfig,
730
+ baseUrl: customAuth.baseUrl,
731
+ modelId: customAuth.modelId,
732
+ compatibility: customAuth.compatibility,
733
+ apiKey: resolvedCustomApiKey?.key,
734
+ providerId: customAuth.providerId
735
+ });
736
+ if (result.providerIdRenamedFrom && result.providerId) runtime.log(`Custom provider ID "${result.providerIdRenamedFrom}" already exists for a different base URL. Using "${result.providerId}".`);
737
+ return result.config;
738
+ } catch (err) {
739
+ if (err instanceof CustomApiError) {
740
+ switch (err.code) {
741
+ case "missing_required":
742
+ case "invalid_compatibility":
743
+ runtime.error(err.message);
744
+ break;
745
+ default:
746
+ runtime.error(`Invalid custom provider config: ${err.message}`);
747
+ break;
748
+ }
749
+ runtime.exit(1);
750
+ return null;
751
+ }
752
+ const reason = err instanceof Error ? err.message : String(err);
753
+ runtime.error(`Invalid custom provider config: ${reason}`);
754
+ runtime.exit(1);
755
+ return null;
756
+ }
757
+ if (authChoice === "oauth" || authChoice === "chutes" || authChoice === "openai-codex" || authChoice === "qwen-portal" || authChoice === "minimax-portal") {
758
+ runtime.error("OAuth requires interactive mode.");
759
+ runtime.exit(1);
760
+ return null;
761
+ }
762
+ return nextConfig;
763
+ }
764
+
765
+ //#endregion
766
+ //#region src/commands/onboard-non-interactive/local/daemon-install.ts
767
+ async function installGatewayDaemonNonInteractive(params) {
768
+ const { opts, runtime, port, gatewayToken } = params;
769
+ if (!opts.installDaemon) return;
770
+ const daemonRuntimeRaw = opts.daemonRuntime ?? DEFAULT_GATEWAY_DAEMON_RUNTIME;
771
+ const systemdAvailable = process.platform === "linux" ? await isSystemdUserServiceAvailable() : true;
772
+ if (process.platform === "linux" && !systemdAvailable) {
773
+ runtime.log("Systemd user services are unavailable; skipping service install.");
774
+ return;
775
+ }
776
+ if (!isGatewayDaemonRuntime(daemonRuntimeRaw)) {
777
+ runtime.error("Invalid --daemon-runtime (use node or bun)");
778
+ runtime.exit(1);
779
+ return;
780
+ }
781
+ const service = resolveGatewayService();
782
+ const { programArguments, workingDirectory, environment } = await buildGatewayInstallPlan({
783
+ env: process.env,
784
+ port,
785
+ token: gatewayToken,
786
+ runtime: daemonRuntimeRaw,
787
+ warn: (message) => runtime.log(message),
788
+ config: params.nextConfig
789
+ });
790
+ try {
791
+ await service.install({
792
+ env: process.env,
793
+ stdout: process.stdout,
794
+ programArguments,
795
+ workingDirectory,
796
+ environment
797
+ });
798
+ } catch (err) {
799
+ runtime.error(`Gateway service install failed: ${String(err)}`);
800
+ runtime.log(gatewayInstallErrorHint());
801
+ return;
802
+ }
803
+ await ensureSystemdUserLingerNonInteractive({ runtime });
804
+ }
805
+
806
+ //#endregion
807
+ //#region src/commands/onboard-non-interactive/local/gateway-config.ts
808
+ function applyNonInteractiveGatewayConfig(params) {
809
+ const { opts, runtime } = params;
810
+ const hasGatewayPort = opts.gatewayPort !== void 0;
811
+ if (hasGatewayPort && (!Number.isFinite(opts.gatewayPort) || (opts.gatewayPort ?? 0) <= 0)) {
812
+ runtime.error("Invalid --gateway-port");
813
+ runtime.exit(1);
814
+ return null;
815
+ }
816
+ const port = hasGatewayPort ? opts.gatewayPort : params.defaultPort;
817
+ let bind = opts.gatewayBind ?? "loopback";
818
+ const authModeRaw = opts.gatewayAuth ?? "token";
819
+ if (authModeRaw !== "token" && authModeRaw !== "password") {
820
+ runtime.error("Invalid --gateway-auth (use token|password).");
821
+ runtime.exit(1);
822
+ return null;
823
+ }
824
+ let authMode = authModeRaw;
825
+ const tailscaleMode = opts.tailscale ?? "off";
826
+ const tailscaleResetOnExit = Boolean(opts.tailscaleResetOnExit);
827
+ if (tailscaleMode !== "off" && bind !== "loopback") bind = "loopback";
828
+ if (tailscaleMode === "funnel" && authMode !== "password") authMode = "password";
829
+ let nextConfig = params.nextConfig;
830
+ let gatewayToken = opts.gatewayToken?.trim() || void 0;
831
+ if (authMode === "token") {
832
+ if (!gatewayToken) gatewayToken = randomToken();
833
+ nextConfig = {
834
+ ...nextConfig,
835
+ gateway: {
836
+ ...nextConfig.gateway,
837
+ auth: {
838
+ ...nextConfig.gateway?.auth,
839
+ mode: "token",
840
+ token: gatewayToken
841
+ }
842
+ }
843
+ };
844
+ }
845
+ if (authMode === "password") {
846
+ const password = opts.gatewayPassword?.trim();
847
+ if (!password) {
848
+ runtime.error("Missing --gateway-password for password auth.");
849
+ runtime.exit(1);
850
+ return null;
851
+ }
852
+ nextConfig = {
853
+ ...nextConfig,
854
+ gateway: {
855
+ ...nextConfig.gateway,
856
+ auth: {
857
+ ...nextConfig.gateway?.auth,
858
+ mode: "password",
859
+ password
860
+ }
861
+ }
862
+ };
863
+ }
864
+ nextConfig = {
865
+ ...nextConfig,
866
+ gateway: {
867
+ ...nextConfig.gateway,
868
+ port,
869
+ bind,
870
+ tailscale: {
871
+ ...nextConfig.gateway?.tailscale,
872
+ mode: tailscaleMode,
873
+ resetOnExit: tailscaleResetOnExit
874
+ }
875
+ }
876
+ };
877
+ return {
878
+ nextConfig,
879
+ port,
880
+ bind,
881
+ authMode,
882
+ tailscaleMode,
883
+ tailscaleResetOnExit,
884
+ gatewayToken
885
+ };
886
+ }
887
+
888
+ //#endregion
889
+ //#region src/commands/onboard-non-interactive/local/output.ts
890
+ function logNonInteractiveOnboardingJson(params) {
891
+ if (!params.opts.json) return;
892
+ params.runtime.log(JSON.stringify({
893
+ mode: params.mode,
894
+ workspace: params.workspaceDir,
895
+ authChoice: params.authChoice,
896
+ gateway: params.gateway,
897
+ installDaemon: Boolean(params.installDaemon),
898
+ daemonRuntime: params.daemonRuntime,
899
+ skipSkills: Boolean(params.skipSkills),
900
+ skipHealth: Boolean(params.skipHealth)
901
+ }, null, 2));
902
+ }
903
+
904
+ //#endregion
905
+ //#region src/commands/onboard-non-interactive/local/skills-config.ts
906
+ function applyNonInteractiveSkillsConfig(params) {
907
+ const { nextConfig, opts, runtime } = params;
908
+ if (opts.skipSkills) return nextConfig;
909
+ const nodeManager = opts.nodeManager ?? "npm";
910
+ if (![
911
+ "npm",
912
+ "pnpm",
913
+ "bun"
914
+ ].includes(nodeManager)) {
915
+ runtime.error("Invalid --node-manager (use npm, pnpm, or bun)");
916
+ runtime.exit(1);
917
+ return nextConfig;
918
+ }
919
+ return {
920
+ ...nextConfig,
921
+ skills: {
922
+ ...nextConfig.skills,
923
+ install: {
924
+ ...nextConfig.skills?.install,
925
+ nodeManager
926
+ }
927
+ }
928
+ };
929
+ }
930
+
931
+ //#endregion
932
+ //#region src/commands/onboard-non-interactive/local/workspace.ts
933
+ function resolveNonInteractiveWorkspaceDir(params) {
934
+ return resolveUserPath((params.opts.workspace ?? params.baseConfig.agents?.defaults?.workspace ?? params.defaultWorkspaceDir).trim());
935
+ }
936
+
937
+ //#endregion
938
+ //#region src/commands/onboard-non-interactive/local.ts
939
+ async function runNonInteractiveOnboardingLocal(params) {
940
+ const { opts, runtime, baseConfig } = params;
941
+ const mode = "local";
942
+ const workspaceDir = resolveNonInteractiveWorkspaceDir({
943
+ opts,
944
+ baseConfig,
945
+ defaultWorkspaceDir: DEFAULT_WORKSPACE
946
+ });
947
+ let nextConfig = {
948
+ ...baseConfig,
949
+ agents: {
950
+ ...baseConfig.agents,
951
+ defaults: {
952
+ ...baseConfig.agents?.defaults,
953
+ workspace: workspaceDir
954
+ }
955
+ },
956
+ gateway: {
957
+ ...baseConfig.gateway,
958
+ mode: "local"
959
+ }
960
+ };
961
+ const inferredAuthChoice = inferAuthChoiceFromFlags(opts);
962
+ if (!opts.authChoice && inferredAuthChoice.matches.length > 1) {
963
+ runtime.error([
964
+ "Multiple API key flags were provided for non-interactive onboarding.",
965
+ "Use a single provider flag or pass --auth-choice explicitly.",
966
+ `Flags: ${inferredAuthChoice.matches.map((match) => match.label).join(", ")}`
967
+ ].join("\n"));
968
+ runtime.exit(1);
969
+ return;
970
+ }
971
+ const authChoice = opts.authChoice ?? inferredAuthChoice.choice ?? "skip";
972
+ const nextConfigAfterAuth = await applyNonInteractiveAuthChoice({
973
+ nextConfig,
974
+ authChoice,
975
+ opts,
976
+ runtime,
977
+ baseConfig
978
+ });
979
+ if (!nextConfigAfterAuth) return;
980
+ nextConfig = nextConfigAfterAuth;
981
+ const gatewayBasePort = resolveGatewayPort(baseConfig);
982
+ const gatewayResult = applyNonInteractiveGatewayConfig({
983
+ nextConfig,
984
+ opts,
985
+ runtime,
986
+ defaultPort: gatewayBasePort
987
+ });
988
+ if (!gatewayResult) return;
989
+ nextConfig = gatewayResult.nextConfig;
990
+ nextConfig = applyNonInteractiveSkillsConfig({
991
+ nextConfig,
992
+ opts,
993
+ runtime
994
+ });
995
+ nextConfig = applyWizardMetadata(nextConfig, {
996
+ command: "onboard",
997
+ mode
998
+ });
999
+ await writeConfigFile(nextConfig);
1000
+ logConfigUpdated(runtime);
1001
+ await ensureWorkspaceAndSessions(workspaceDir, runtime, { skipBootstrap: Boolean(nextConfig.agents?.defaults?.skipBootstrap) });
1002
+ await installGatewayDaemonNonInteractive({
1003
+ nextConfig,
1004
+ opts,
1005
+ runtime,
1006
+ port: gatewayResult.port,
1007
+ gatewayToken: gatewayResult.gatewayToken
1008
+ });
1009
+ const daemonRuntimeRaw = opts.daemonRuntime ?? DEFAULT_GATEWAY_DAEMON_RUNTIME;
1010
+ if (!opts.skipHealth) {
1011
+ await waitForGatewayReachable({
1012
+ url: resolveControlUiLinks({
1013
+ bind: gatewayResult.bind,
1014
+ port: gatewayResult.port,
1015
+ customBindHost: nextConfig.gateway?.customBindHost,
1016
+ basePath: void 0
1017
+ }).wsUrl,
1018
+ token: gatewayResult.gatewayToken,
1019
+ deadlineMs: 15e3
1020
+ });
1021
+ await healthCommand({
1022
+ json: false,
1023
+ timeoutMs: 1e4
1024
+ }, runtime);
1025
+ }
1026
+ logNonInteractiveOnboardingJson({
1027
+ opts,
1028
+ runtime,
1029
+ mode,
1030
+ workspaceDir,
1031
+ authChoice,
1032
+ gateway: {
1033
+ port: gatewayResult.port,
1034
+ bind: gatewayResult.bind,
1035
+ authMode: gatewayResult.authMode,
1036
+ tailscaleMode: gatewayResult.tailscaleMode
1037
+ },
1038
+ installDaemon: Boolean(opts.installDaemon),
1039
+ daemonRuntime: opts.installDaemon ? daemonRuntimeRaw : void 0,
1040
+ skipSkills: Boolean(opts.skipSkills),
1041
+ skipHealth: Boolean(opts.skipHealth)
1042
+ });
1043
+ if (!opts.json) runtime.log(`Tip: run \`${formatCliCommand("anima configure --section web")}\` to store your Brave API key for web_search. Docs: https://docs.anima.ai/tools/web`);
1044
+ }
1045
+
1046
+ //#endregion
1047
+ //#region src/commands/onboard-non-interactive/remote.ts
1048
+ async function runNonInteractiveOnboardingRemote(params) {
1049
+ const { opts, runtime, baseConfig } = params;
1050
+ const mode = "remote";
1051
+ const remoteUrl = opts.remoteUrl?.trim();
1052
+ if (!remoteUrl) {
1053
+ runtime.error("Missing --remote-url for remote mode.");
1054
+ runtime.exit(1);
1055
+ return;
1056
+ }
1057
+ let nextConfig = {
1058
+ ...baseConfig,
1059
+ gateway: {
1060
+ ...baseConfig.gateway,
1061
+ mode: "remote",
1062
+ remote: {
1063
+ url: remoteUrl,
1064
+ token: opts.remoteToken?.trim() || void 0
1065
+ }
1066
+ }
1067
+ };
1068
+ nextConfig = applyWizardMetadata(nextConfig, {
1069
+ command: "onboard",
1070
+ mode
1071
+ });
1072
+ await writeConfigFile(nextConfig);
1073
+ logConfigUpdated(runtime);
1074
+ const payload = {
1075
+ mode,
1076
+ remoteUrl,
1077
+ auth: opts.remoteToken ? "token" : "none"
1078
+ };
1079
+ if (opts.json) runtime.log(JSON.stringify(payload, null, 2));
1080
+ else {
1081
+ runtime.log(`Remote gateway: ${remoteUrl}`);
1082
+ runtime.log(`Auth: ${payload.auth}`);
1083
+ runtime.log(`Tip: run \`${formatCliCommand("anima configure --section web")}\` to store your Brave API key for web_search. Docs: https://docs.anima.ai/tools/web`);
1084
+ }
1085
+ }
1086
+
1087
+ //#endregion
1088
+ //#region src/commands/onboard-non-interactive.ts
1089
+ async function runNonInteractiveOnboarding(opts, runtime = defaultRuntime) {
1090
+ const snapshot = await readConfigFileSnapshot();
1091
+ if (snapshot.exists && !snapshot.valid) {
1092
+ runtime.error(`Config invalid. Run \`${formatCliCommand("anima doctor")}\` to repair it, then re-run onboarding.`);
1093
+ runtime.exit(1);
1094
+ return;
1095
+ }
1096
+ const baseConfig = snapshot.valid ? snapshot.config : {};
1097
+ const mode = opts.mode ?? "local";
1098
+ if (mode !== "local" && mode !== "remote") {
1099
+ runtime.error(`Invalid --mode "${String(mode)}" (use local|remote).`);
1100
+ runtime.exit(1);
1101
+ return;
1102
+ }
1103
+ if (mode === "remote") {
1104
+ await runNonInteractiveOnboardingRemote({
1105
+ opts,
1106
+ runtime,
1107
+ baseConfig
1108
+ });
1109
+ return;
1110
+ }
1111
+ await runNonInteractiveOnboardingLocal({
1112
+ opts,
1113
+ runtime,
1114
+ baseConfig
1115
+ });
1116
+ }
1117
+
1118
+ //#endregion
1119
+ //#region src/commands/onboard.ts
1120
+ async function onboardCommand(opts, runtime = defaultRuntime) {
1121
+ assertSupportedRuntime(runtime);
1122
+ const originalAuthChoice = opts.authChoice;
1123
+ const normalizedAuthChoice = normalizeLegacyOnboardAuthChoice(originalAuthChoice);
1124
+ if (opts.nonInteractive && isDeprecatedAuthChoice(originalAuthChoice)) {
1125
+ runtime.error([`Auth choice "${String(originalAuthChoice)}" is deprecated.`, "Use \"--auth-choice token\" (Anthropic setup-token) or \"--auth-choice openai-codex\"."].join("\n"));
1126
+ runtime.exit(1);
1127
+ return;
1128
+ }
1129
+ if (originalAuthChoice === "claude-cli") runtime.log("Auth choice \"claude-cli\" is deprecated; using setup-token flow instead.");
1130
+ if (originalAuthChoice === "codex-cli") runtime.log("Auth choice \"codex-cli\" is deprecated; using OpenAI Codex OAuth instead.");
1131
+ const flow = opts.flow === "manual" ? "advanced" : opts.flow;
1132
+ const normalizedOpts = normalizedAuthChoice === opts.authChoice && flow === opts.flow ? opts : {
1133
+ ...opts,
1134
+ authChoice: normalizedAuthChoice,
1135
+ flow
1136
+ };
1137
+ if (normalizedOpts.nonInteractive && normalizedOpts.acceptRisk !== true) {
1138
+ runtime.error([
1139
+ "Non-interactive onboarding requires explicit risk acknowledgement.",
1140
+ "Read: https://docs.anima.ai/security",
1141
+ `Re-run with: ${formatCliCommand("anima onboard --non-interactive --accept-risk ...")}`
1142
+ ].join("\n"));
1143
+ runtime.exit(1);
1144
+ return;
1145
+ }
1146
+ if (normalizedOpts.reset) {
1147
+ const snapshot = await readConfigFileSnapshot();
1148
+ const baseConfig = snapshot.valid ? snapshot.config : {};
1149
+ await handleReset("full", resolveUserPath(normalizedOpts.workspace ?? baseConfig.agents?.defaults?.workspace ?? DEFAULT_WORKSPACE), runtime);
1150
+ }
1151
+ if (process.platform === "win32") runtime.log([
1152
+ "Windows detected — Anima runs great on WSL2!",
1153
+ "Native Windows might be trickier.",
1154
+ "Quick setup: wsl --install (one command, one reboot)",
1155
+ "Guide: https://docs.anima.ai/windows"
1156
+ ].join("\n"));
1157
+ if (normalizedOpts.nonInteractive) {
1158
+ await runNonInteractiveOnboarding(normalizedOpts, runtime);
1159
+ return;
1160
+ }
1161
+ await runInteractiveOnboarding(normalizedOpts, runtime);
1162
+ }
1163
+
1164
+ //#endregion
1165
+ export { ONBOARD_PROVIDER_AUTH_FLAGS as n, onboardCommand as t };