@spacebar_ai/moldclaw-core 2026.3.43 → 2026.3.45

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 (1131) hide show
  1. package/dist/accounts-5qY-dKca.d.ts +103 -0
  2. package/dist/accounts-CxV5zzzp.js +114 -0
  3. package/dist/acp-cli-2JoKJ0xt.js +2093 -0
  4. package/dist/actions.runtime-BJPd9nat.js +119 -0
  5. package/dist/actions.runtime-DVs4a2cB.js +133 -0
  6. package/dist/agent-scope-lZlwP1At.js +208 -0
  7. package/dist/agents-CmT3Jwvj.js +222 -0
  8. package/dist/agents-D7Pebhph.js +853 -0
  9. package/dist/agents.config-CX9CPNfP.js +17 -0
  10. package/dist/agents.config-DF9Zwn9n.js +121 -0
  11. package/dist/allow-list-B3f4EqAM.js +81 -0
  12. package/dist/allowlist-_YpK0-4h.js +142 -0
  13. package/dist/api-B44giplI.js +117 -0
  14. package/dist/audit-C3InXm7H.js +787 -0
  15. package/dist/audit-ChWS6RiF.js +54 -0
  16. package/dist/audit-channel.collect.runtime-DZzrS6v2.js +605 -0
  17. package/dist/audit-channel.runtime-B2XTOsSF.js +121 -0
  18. package/dist/audit-extra.async-C2G0mqmk.js +813 -0
  19. package/dist/audit-membership-runtime-DOv5-eHo.js +162 -0
  20. package/dist/audit.deep.runtime-DyL9O_sU.js +25 -0
  21. package/dist/audit.nondeep.runtime-C6jFgJfH.js +832 -0
  22. package/dist/audit.runtime-Cvh2wmWM.js +118 -0
  23. package/dist/auth-Ch3Rchm4.js +101 -0
  24. package/dist/auth-choice-Beq0dWPS.js +268 -0
  25. package/dist/auth-choice-DZYg94gS.js +122 -0
  26. package/dist/auth-choice-TVG_8lJj.js +507 -0
  27. package/dist/auth-choice-options-B_qxsjdj.js +123 -0
  28. package/dist/auth-choice-prompt-BayzDobT.js +115 -0
  29. package/dist/auth-choice-prompt-_UES859x.js +36 -0
  30. package/dist/auth-choice.apply-helpers-BhbNIV8X.js +66 -0
  31. package/dist/auth-choice.plugin-providers.runtime-CVC4Jzhp.js +119 -0
  32. package/dist/auth-profiles-C-Ul-Qkn.js +128139 -0
  33. package/dist/auth-profiles.runtime-Clyka_jV.js +116 -0
  34. package/dist/banner-CojBHPWr.js +342 -0
  35. package/dist/bluebubbles-BnLsj2Fy.d.ts +6 -0
  36. package/dist/bluebubbles-irYTGbfn.js +64 -0
  37. package/dist/bot-DdyrB2z9.d.ts +478 -0
  38. package/dist/brave-w4Fo8WZ3.js +24 -0
  39. package/dist/browser-cli-DWFs3P_i.js +1494 -0
  40. package/dist/build-info.json +3 -3
  41. package/dist/bundled/boot-md/handler.d.ts +1 -1
  42. package/dist/bundled/boot-md/handler.js +35 -35
  43. package/dist/bundled/bootstrap-extra-files/handler.d.ts +1 -1
  44. package/dist/bundled/bootstrap-extra-files/handler.js +1 -1
  45. package/dist/bundled/command-logger/handler.d.ts +1 -1
  46. package/dist/bundled/session-memory/handler.d.ts +1 -1
  47. package/dist/bundled/session-memory/handler.js +36 -36
  48. package/dist/call-Do7wTSr7.js +39 -0
  49. package/dist/call-gdDAt07d.js +640 -0
  50. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  51. package/dist/channel-34O87pvK.js +949 -0
  52. package/dist/channel-B3Xo_4d8.js +1598 -0
  53. package/dist/channel-BEqDvL49.js +397 -0
  54. package/dist/channel-BLOk9WRE.js +214 -0
  55. package/dist/channel-BY5H2cdy.js +803 -0
  56. package/dist/channel-BeOtzXIH.js +4681 -0
  57. package/dist/channel-Bt8x_5Kj.js +306 -0
  58. package/dist/channel-C3E8XWLF.js +1321 -0
  59. package/dist/channel-C6ngVfGr.js +943 -0
  60. package/dist/channel-CVDBca2b.js +226 -0
  61. package/dist/channel-Cctli72q.js +562 -0
  62. package/dist/channel-DEAbU9Dj2.js +316 -0
  63. package/dist/channel-DIULkrBN.js +575 -0
  64. package/dist/channel-DXb4gsSd.js +619 -0
  65. package/dist/channel-Dap9LY-9.js +352 -0
  66. package/dist/channel-DcJdUnab.js +538 -0
  67. package/dist/channel-ZYCQj3hP.js +207 -0
  68. package/dist/channel-account-context-Baszl3_B.js +103 -0
  69. package/dist/channel-hlzhFHDl.js +497 -0
  70. package/dist/channel-options-PwBzYYtq.js +50 -0
  71. package/dist/channel-plugin-ids-TZIY4hFs.js +26 -0
  72. package/dist/channel-summary-CCEAV13o.js +111 -0
  73. package/dist/channel-tY2Hg5ac.js +542 -0
  74. package/dist/channel-vMWcWq1U.js +920 -0
  75. package/dist/channel.runtime-8qWgkCxX.js +404 -0
  76. package/dist/channel.runtime-C4jtgrbI.js +179 -0
  77. package/dist/channel.runtime-CJ4ug6Mp.js +127 -0
  78. package/dist/channel.runtime-ChKRJAZ8.js +4011 -0
  79. package/dist/channel.runtime-Cj54LYU-.js +418 -0
  80. package/dist/channel.runtime-KH06-bu1.js +870 -0
  81. package/dist/channel.runtime-_GYnBh2X.js +199 -0
  82. package/dist/channel.runtime-go7Pzt6N.js +241 -0
  83. package/dist/channel.runtime-iypIZ0EU.js +171 -0
  84. package/dist/channel.runtime-mukTWpon.js +182 -0
  85. package/dist/channel.runtime-oNtF1sc3.js +218 -0
  86. package/dist/channel.setup-BZfok6kX.js +11 -0
  87. package/dist/channel.setup-CbXfZ2dq.js +9 -0
  88. package/dist/channel.setup-CfyM55np.js +8 -0
  89. package/dist/channel.setup-CoG-gJ6n.js +9 -0
  90. package/dist/channel.setup-Cp4PH_rc.js +57 -0
  91. package/dist/channel.setup-V2w9Jk9j.js +6 -0
  92. package/dist/channel.setup-t7F5WZE7.js +8 -0
  93. package/dist/channels/plugins/actions/discord.d.ts +2 -2
  94. package/dist/channels/plugins/actions/discord.js +35 -35
  95. package/dist/channels/plugins/actions/signal.d.ts +1 -1
  96. package/dist/channels/plugins/actions/signal.js +35 -35
  97. package/dist/channels/plugins/actions/telegram.d.ts +2 -2
  98. package/dist/channels/plugins/actions/telegram.js +35 -35
  99. package/dist/channels/plugins/agent-tools/whatsapp-login.d.ts +3 -3
  100. package/dist/channels/plugins/agent-tools/whatsapp-login.js +35 -35
  101. package/dist/channels-H5ThmyG8.js +1118 -0
  102. package/dist/channels-cQ-6NFCQ.js +404 -0
  103. package/dist/channels-cli-TmchKLFS.js +291 -0
  104. package/dist/channels-status-issues-DXnkXEeJ.js +16 -0
  105. package/dist/clawbot-cli-Cpbxu8dD.js +118 -0
  106. package/dist/cleanup-utils-D0L17RsX.js +96 -0
  107. package/dist/cli/daemon-cli.js +1 -1
  108. package/dist/cli--2bGSKdX.js +154 -0
  109. package/dist/command-registry-BaVPDmwn.js +242 -0
  110. package/dist/command-registry-DhLyeSbO.js +14 -0
  111. package/dist/command-secret-gateway-C5D_-jb0.js +111 -0
  112. package/dist/compact.runtime-C9a0kRAg.js +116 -0
  113. package/dist/completion-cli-Bg95upyk.js +17 -0
  114. package/dist/completion-cli-CrPdlnCH.js +445 -0
  115. package/dist/config-BbvDRSYp.js +31 -0
  116. package/dist/config-CwBv71QC.js +44 -0
  117. package/dist/config-cli-jsZsYhAl.js +678 -0
  118. package/dist/config-guard-DTaXXqly.js +118 -0
  119. package/dist/config-validation-Q6U1sP84.js +262 -0
  120. package/dist/config-value-DT3-5958.js +132 -0
  121. package/dist/configure-BJfMiVej.js +1100 -0
  122. package/dist/configure-Cist3Iza.js +243 -0
  123. package/dist/control-ui-assets-C1YDYi82.js +232 -0
  124. package/dist/control-ui-shared-Dm5Dh0Lo.js +29 -0
  125. package/dist/core-BwKq3krw.js +150 -0
  126. package/dist/core-hjBwfDsW.d.ts +87 -0
  127. package/dist/cron-cli-Bktbk7iP.js +639 -0
  128. package/dist/daemon-cli-BXyH8DBL.js +339 -0
  129. package/dist/daemon-install-mxcGYsRJ.js +180 -0
  130. package/dist/deliver-BPYUKaSp.js +111 -0
  131. package/dist/deliver-runtime-CwnLQZTN.js +111 -0
  132. package/dist/device-id-cli-XvwZbIyC.js +52 -0
  133. package/dist/device-identity-IG5DngWM.js +365 -0
  134. package/dist/devices-cli-DIsxj4xp.js +342 -0
  135. package/dist/diagnostic-DTPopFvh.js +310 -0
  136. package/dist/directory-cli-D253m0er.js +311 -0
  137. package/dist/directory-config-helpers-DpFcAbmo.d.ts +38 -0
  138. package/dist/directory.static-BXv9MXqm.js +44 -0
  139. package/dist/discord-DwFf1qp7.js +114 -0
  140. package/dist/discovery-DzRM1wzK.js +48 -0
  141. package/dist/dm-policy-shared-DKoGdUpY.d.ts +95 -0
  142. package/dist/dns-cli-BJiz6CLK.js +217 -0
  143. package/dist/docs-cli-Dq2Yi5qO.js +174 -0
  144. package/dist/doctor-completion-BPl6HiiZ.js +90 -0
  145. package/dist/doctor-config-flow-BHR1Ayyh.js +2437 -0
  146. package/dist/doctor-config-flow-PXVtrfkE.js +112 -0
  147. package/dist/enable-Cyagpq3b.js +24 -0
  148. package/dist/entry.js +4 -4
  149. package/dist/exec-approvals-cli-kLAev6bP.js +421 -0
  150. package/dist/extensions/acpx/index.d.ts +1 -1
  151. package/dist/extensions/amazon-bedrock/index.d.ts +1 -1
  152. package/dist/extensions/amazon-bedrock/index.js +4 -4
  153. package/dist/extensions/anthropic/index.d.ts +1 -1
  154. package/dist/extensions/anthropic/index.js +35 -35
  155. package/dist/extensions/bluebubbles/index.d.ts +1 -1
  156. package/dist/extensions/bluebubbles/index.js +39 -39
  157. package/dist/extensions/bluebubbles/setup-entry.d.ts +2 -2
  158. package/dist/extensions/bluebubbles/setup-entry.js +39 -39
  159. package/dist/extensions/brave/index.d.ts +1 -1
  160. package/dist/extensions/brave/index.js +5 -5
  161. package/dist/extensions/byteplus/index.d.ts +1 -1
  162. package/dist/extensions/byteplus/index.js +35 -35
  163. package/dist/extensions/cloudflare-ai-gateway/index.d.ts +1 -1
  164. package/dist/extensions/cloudflare-ai-gateway/index.js +36 -36
  165. package/dist/extensions/copilot-proxy/index.d.ts +1 -1
  166. package/dist/extensions/copilot-proxy/index.js +4 -4
  167. package/dist/extensions/device-pair/index.d.ts +1 -1
  168. package/dist/extensions/device-pair/index.js +4 -4
  169. package/dist/extensions/diagnostics-otel/index.d.ts +1 -1
  170. package/dist/extensions/diagnostics-otel/index.js +4 -4
  171. package/dist/extensions/diffs/index.d.ts +1 -1
  172. package/dist/extensions/discord/index.d.ts +1 -1
  173. package/dist/extensions/discord/index.js +40 -40
  174. package/dist/extensions/discord/setup-entry.d.ts +1 -1
  175. package/dist/extensions/discord/setup-entry.js +38 -38
  176. package/dist/extensions/elevenlabs/index.d.ts +1 -1
  177. package/dist/extensions/elevenlabs/index.js +35 -35
  178. package/dist/extensions/feishu/index.d.ts +2 -2
  179. package/dist/extensions/feishu/index.js +40 -40
  180. package/dist/extensions/feishu/setup-entry.d.ts +2 -2
  181. package/dist/extensions/feishu/setup-entry.js +37 -37
  182. package/dist/extensions/firecrawl/index.d.ts +1 -1
  183. package/dist/extensions/firecrawl/index.js +35 -35
  184. package/dist/extensions/github-copilot/index.d.ts +1 -1
  185. package/dist/extensions/github-copilot/index.js +35 -35
  186. package/dist/extensions/google/index.d.ts +1 -1
  187. package/dist/extensions/google/index.js +35 -35
  188. package/dist/extensions/googlechat/index.d.ts +1 -1
  189. package/dist/extensions/googlechat/index.js +38 -38
  190. package/dist/extensions/googlechat/setup-entry.d.ts +1 -1
  191. package/dist/extensions/googlechat/setup-entry.js +38 -38
  192. package/dist/extensions/huggingface/index.d.ts +1 -1
  193. package/dist/extensions/huggingface/index.js +35 -35
  194. package/dist/extensions/imessage/index.d.ts +1 -1
  195. package/dist/extensions/imessage/index.js +39 -39
  196. package/dist/extensions/imessage/setup-entry.d.ts +1 -1
  197. package/dist/extensions/imessage/setup-entry.js +39 -39
  198. package/dist/extensions/irc/index.d.ts +1 -1
  199. package/dist/extensions/irc/index.js +38 -38
  200. package/dist/extensions/irc/setup-entry.d.ts +2 -2
  201. package/dist/extensions/irc/setup-entry.js +38 -38
  202. package/dist/extensions/kakao-talkchannel/index.d.ts +1 -1
  203. package/dist/extensions/kakao-talkchannel/index.js +4 -4
  204. package/dist/extensions/kilocode/index.d.ts +1 -1
  205. package/dist/extensions/kilocode/index.js +35 -35
  206. package/dist/extensions/kimi-coding/index.d.ts +1 -1
  207. package/dist/extensions/kimi-coding/index.js +35 -35
  208. package/dist/extensions/line/index.d.ts +1 -1
  209. package/dist/extensions/line/index.js +37 -37
  210. package/dist/extensions/line/setup-entry.d.ts +1 -1
  211. package/dist/extensions/line/setup-entry.js +37 -37
  212. package/dist/extensions/llm-task/index.d.ts +1 -1
  213. package/dist/extensions/llm-task/index.js +35 -35
  214. package/dist/extensions/lobster/index.d.ts +1 -1
  215. package/dist/extensions/lobster/index.js +4 -4
  216. package/dist/extensions/matrix/index.d.ts +1 -1
  217. package/dist/extensions/matrix/index.js +40 -40
  218. package/dist/extensions/matrix/setup-entry.d.ts +2 -2
  219. package/dist/extensions/matrix/setup-entry.js +40 -40
  220. package/dist/extensions/mattermost/index.d.ts +1 -1
  221. package/dist/extensions/mattermost/index.js +37 -37
  222. package/dist/extensions/mattermost/setup-entry.d.ts +2 -2
  223. package/dist/extensions/mattermost/setup-entry.js +37 -37
  224. package/dist/extensions/memory-core/index.d.ts +1 -1
  225. package/dist/extensions/memory-core/index.js +4 -4
  226. package/dist/extensions/memory-lancedb/index.d.ts +1 -1
  227. package/dist/extensions/memory-lancedb/index.js +4 -4
  228. package/dist/extensions/microsoft/index.d.ts +1 -1
  229. package/dist/extensions/microsoft/index.js +35 -35
  230. package/dist/extensions/minimax/index.d.ts +1 -1
  231. package/dist/extensions/minimax/index.js +35 -35
  232. package/dist/extensions/mistral/index.d.ts +1 -1
  233. package/dist/extensions/mistral/index.js +35 -35
  234. package/dist/extensions/modelstudio/index.d.ts +1 -1
  235. package/dist/extensions/modelstudio/index.js +35 -35
  236. package/dist/extensions/moonshot/index.d.ts +1 -1
  237. package/dist/extensions/moonshot/index.js +35 -35
  238. package/dist/extensions/msteams/index.d.ts +1 -1
  239. package/dist/extensions/msteams/index.js +40 -40
  240. package/dist/extensions/msteams/setup-entry.d.ts +1 -1
  241. package/dist/extensions/msteams/setup-entry.js +40 -40
  242. package/dist/extensions/nextcloud-talk/index.d.ts +1 -1
  243. package/dist/extensions/nextcloud-talk/index.js +37 -37
  244. package/dist/extensions/nextcloud-talk/setup-entry.d.ts +2 -2
  245. package/dist/extensions/nextcloud-talk/setup-entry.js +37 -37
  246. package/dist/extensions/nostr/index.d.ts +1 -1
  247. package/dist/extensions/nostr/index.js +37 -37
  248. package/dist/extensions/nostr/setup-entry.d.ts +1 -1
  249. package/dist/extensions/nostr/setup-entry.js +37 -37
  250. package/dist/extensions/nvidia/index.d.ts +1 -1
  251. package/dist/extensions/nvidia/index.js +4 -4
  252. package/dist/extensions/ollama/index.d.ts +1 -1
  253. package/dist/extensions/ollama/index.js +7 -7
  254. package/dist/extensions/open-prose/index.d.ts +1 -1
  255. package/dist/extensions/open-prose/index.js +4 -4
  256. package/dist/extensions/openai/index.d.ts +1 -1
  257. package/dist/extensions/openai/index.js +35 -35
  258. package/dist/extensions/opencode/index.d.ts +1 -1
  259. package/dist/extensions/opencode/index.js +35 -35
  260. package/dist/extensions/opencode-go/index.d.ts +1 -1
  261. package/dist/extensions/opencode-go/index.js +35 -35
  262. package/dist/extensions/openrouter/index.d.ts +1 -1
  263. package/dist/extensions/openrouter/index.js +35 -35
  264. package/dist/extensions/openshell/index.d.ts +1 -1
  265. package/dist/extensions/openshell/index.js +35 -35
  266. package/dist/extensions/perplexity/index.d.ts +1 -1
  267. package/dist/extensions/perplexity/index.js +5 -5
  268. package/dist/extensions/phone-control/index.d.ts +1 -1
  269. package/dist/extensions/phone-control/index.js +4 -4
  270. package/dist/extensions/qianfan/index.d.ts +1 -1
  271. package/dist/extensions/qianfan/index.js +35 -35
  272. package/dist/extensions/qwen-portal-auth/index.d.ts +1 -1
  273. package/dist/extensions/qwen-portal-auth/index.js +35 -35
  274. package/dist/extensions/sglang/index.d.ts +1 -1
  275. package/dist/extensions/sglang/index.js +35 -35
  276. package/dist/extensions/signal/index.d.ts +1 -1
  277. package/dist/extensions/signal/index.js +38 -38
  278. package/dist/extensions/signal/setup-entry.d.ts +1 -1
  279. package/dist/extensions/signal/setup-entry.js +38 -38
  280. package/dist/extensions/slack/index.d.ts +1 -1
  281. package/dist/extensions/slack/index.js +39 -39
  282. package/dist/extensions/slack/setup-entry.d.ts +1 -1
  283. package/dist/extensions/slack/setup-entry.js +38 -38
  284. package/dist/extensions/synology-chat/index.d.ts +1 -1
  285. package/dist/extensions/synology-chat/index.js +37 -37
  286. package/dist/extensions/synology-chat/setup-entry.d.ts +1 -1
  287. package/dist/extensions/synology-chat/setup-entry.js +37 -37
  288. package/dist/extensions/synthetic/index.d.ts +1 -1
  289. package/dist/extensions/synthetic/index.js +35 -35
  290. package/dist/extensions/talk-voice/index.d.ts +1 -1
  291. package/dist/extensions/talk-voice/index.js +35 -35
  292. package/dist/extensions/telegram/index.d.ts +1 -1
  293. package/dist/extensions/telegram/index.js +38 -38
  294. package/dist/extensions/telegram/setup-entry.d.ts +1 -1
  295. package/dist/extensions/telegram/setup-entry.js +37 -37
  296. package/dist/extensions/thread-ownership/index.d.ts +1 -1
  297. package/dist/extensions/thread-ownership/index.js +4 -4
  298. package/dist/extensions/tlon/index.d.ts +1 -1
  299. package/dist/extensions/tlon/index.js +37 -37
  300. package/dist/extensions/tlon/setup-entry.d.ts +1 -1
  301. package/dist/extensions/tlon/setup-entry.js +37 -37
  302. package/dist/extensions/together/index.d.ts +1 -1
  303. package/dist/extensions/together/index.js +35 -35
  304. package/dist/extensions/twitch/index.d.ts +2 -2
  305. package/dist/extensions/twitch/index.js +37 -37
  306. package/dist/extensions/venice/index.d.ts +1 -1
  307. package/dist/extensions/venice/index.js +35 -35
  308. package/dist/extensions/vercel-ai-gateway/index.d.ts +1 -1
  309. package/dist/extensions/vercel-ai-gateway/index.js +36 -36
  310. package/dist/extensions/vllm/index.d.ts +1 -1
  311. package/dist/extensions/vllm/index.js +35 -35
  312. package/dist/extensions/voice-call/index.d.ts +1 -1
  313. package/dist/extensions/voice-call/index.js +35 -35
  314. package/dist/extensions/volcengine/index.d.ts +1 -1
  315. package/dist/extensions/volcengine/index.js +35 -35
  316. package/dist/extensions/whatsapp/index.d.ts +1 -1
  317. package/dist/extensions/whatsapp/index.js +38 -38
  318. package/dist/extensions/whatsapp/setup-entry.d.ts +1 -1
  319. package/dist/extensions/whatsapp/setup-entry.js +38 -38
  320. package/dist/extensions/xai/index.d.ts +1 -1
  321. package/dist/extensions/xai/index.js +35 -35
  322. package/dist/extensions/xiaomi/index.d.ts +1 -1
  323. package/dist/extensions/xiaomi/index.js +35 -35
  324. package/dist/extensions/zai/index.d.ts +1 -1
  325. package/dist/extensions/zai/index.js +35 -35
  326. package/dist/extensions/zalo/index.d.ts +1 -1
  327. package/dist/extensions/zalo/index.js +39 -39
  328. package/dist/extensions/zalo/setup-entry.d.ts +1 -1
  329. package/dist/extensions/zalo/setup-entry.js +39 -39
  330. package/dist/extensions/zalouser/index.d.ts +1 -1
  331. package/dist/extensions/zalouser/index.js +40 -40
  332. package/dist/extensions/zalouser/setup-entry.d.ts +1 -1
  333. package/dist/extensions/zalouser/setup-entry.js +40 -40
  334. package/dist/feishu-fIcnHDTd.d.ts +36 -0
  335. package/dist/gateway-cli-DofujQf3.js +26437 -0
  336. package/dist/gateway-install-token-vvtOvufH.js +163 -0
  337. package/dist/gateway-rpc-C0Vk51W7.js +26 -0
  338. package/dist/gateway-runtime-CBm3CCoA.js +69 -0
  339. package/dist/git-commit-BTWXFY41.js +177 -0
  340. package/dist/git-commit-D6GTN5Yt.js +2 -0
  341. package/dist/googlechat-BvwsCVKl.d.ts +12 -0
  342. package/dist/googlechat-DzoFLiDG.js +307 -0
  343. package/dist/group-access-DpiQnd-G.d.ts +61 -0
  344. package/dist/health-CqUU_ecm.js +570 -0
  345. package/dist/health-Dzn8BT5I.js +113 -0
  346. package/dist/heartbeat-summary-Dct2lqJj.js +57 -0
  347. package/dist/help-CtwSApfq.js +81 -0
  348. package/dist/hooks-9gokOxZ5.d.ts +6 -0
  349. package/dist/hooks-cli-DtBvd1lb.js +1000 -0
  350. package/dist/hooks-status-Bm_pGORf.js +78 -0
  351. package/dist/http-registry-D-S6a1Na.d.ts +20 -0
  352. package/dist/identity-file-Diub2a0t.js +60 -0
  353. package/dist/image-generation-CbIVzmAR.d.ts +9 -0
  354. package/dist/imessage-C7Z59nbV.js +31 -0
  355. package/dist/imessage-scXvYYHX.js +115 -0
  356. package/dist/inbound-reply-dispatch-gzPJFtkc.js +71 -0
  357. package/dist/inbound-reply-dispatch-n7U3qg15.d.ts +72 -0
  358. package/dist/index.js +2 -2
  359. package/dist/install-target-B4n74f_B.js +574 -0
  360. package/dist/installs-e1WEcS2x.js +532 -0
  361. package/dist/io-BaBxjB1v.js +9739 -0
  362. package/dist/io-CgHb1Jld.js +29 -0
  363. package/dist/irc-DxJ7uOKl.js +672 -0
  364. package/dist/library-DjjiKiBC.js +112 -0
  365. package/dist/lifecycle-core-Dn8PK6nk.js +382 -0
  366. package/dist/line/accounts.d.ts +2 -2
  367. package/dist/line/send.d.ts +1 -1
  368. package/dist/line/send.js +7 -7
  369. package/dist/line/template-messages.d.ts +1 -1
  370. package/dist/line-B5QFpgN_.d.ts +75 -0
  371. package/dist/line-BBiBiGgL.js +530 -0
  372. package/dist/llm-slug-generator-BQ09Fz6D.js +67 -0
  373. package/dist/llm-slug-generator.d.ts +1 -1
  374. package/dist/llm-slug-generator.js +36 -36
  375. package/dist/logging-CdisccbY.js +13 -0
  376. package/dist/logging-LKQSgX1d.js +30 -0
  377. package/dist/login-qr-B2ElPfmb.js +112 -0
  378. package/dist/login-qr-Di3uPIK1.js +233 -0
  379. package/dist/logs-cli-CNzOvZ2d.js +256 -0
  380. package/dist/manager-runtime-2RwW64dE.js +111 -0
  381. package/dist/manager.runtime-BacHmSFL.js +715 -0
  382. package/dist/manifest-registry-CS_p1OBQ.js +1329 -0
  383. package/dist/matrix-43_RGLZN.d.ts +68 -0
  384. package/dist/matrix-6-xpfQHf.js +1269 -0
  385. package/dist/matrix-DKYdZvGK.js +1495 -0
  386. package/dist/mcp-cli-Ci2jvv3s.js +87 -0
  387. package/dist/media-understanding.runtime-0668UZMb.js +116 -0
  388. package/dist/memory-cli-BGfRJOPh.js +111 -0
  389. package/dist/memory-search-BHhETk6u.js +17 -0
  390. package/dist/memory-search-tTD5o_rU.js +204 -0
  391. package/dist/method-scopes-B2ZKSsxQ.js +2452 -0
  392. package/dist/model-auth-markers-LqZ4qhrZ.d.ts +20 -0
  393. package/dist/model-picker-D9Gmg9vM.js +390 -0
  394. package/dist/model-picker-VOam6Dfa.js +112 -0
  395. package/dist/model-picker.runtime-B8h4yaGk.js +125 -0
  396. package/dist/model-selection-bBBxfXdb.js +653 -0
  397. package/dist/model-suppression.runtime-IpdzuuaW.js +116 -0
  398. package/dist/models-CEr8OkSA.js +118 -0
  399. package/dist/models-FgjlnyvT.js +2514 -0
  400. package/dist/models-cli-CdXULEZe.js +309 -0
  401. package/dist/models-config-UQxq76ac.js +111 -0
  402. package/dist/models-config.providers.discovery-puxTsH39.d.ts +18 -0
  403. package/dist/moldclaw-root-Cb6HRlUO.js +92 -0
  404. package/dist/monitor-BGAB5pZp.js +772 -0
  405. package/dist/monitor-C_1qA4q5.js +6823 -0
  406. package/dist/monitor-D8WcCUuA.js +782 -0
  407. package/dist/monitor-DesGoihT.js +113 -0
  408. package/dist/monitor-DhrUY3U6.js +3468 -0
  409. package/dist/monitor-DsDCIG87.js +3076 -0
  410. package/dist/monitor-dBB-luY7.js +115 -0
  411. package/dist/monitor-shared-CkicpwVc.js +444 -0
  412. package/dist/msteams-qmY7xMCK.js +852 -0
  413. package/dist/node-cli-B_2nTm80.js +2503 -0
  414. package/dist/node-resolve-BYC2FbO2.js +835 -0
  415. package/dist/nodes-cli-CBX71Wd_.js +1380 -0
  416. package/dist/nostr-BFKRoOlz.d.ts +7 -0
  417. package/dist/nostr-OB78XVlq.js +8744 -0
  418. package/dist/npm-resolution-DZJB3Hgh.js +60 -0
  419. package/dist/oauth-env-CLG8KOrz.js +10 -0
  420. package/dist/onboard-BON0C360.js +48 -0
  421. package/dist/onboard-DsKI17iq.js +25 -0
  422. package/dist/onboard-DyBwXVGT.js +589 -0
  423. package/dist/onboard-channels-BaVA02kK.js +1241 -0
  424. package/dist/onboard-channels-JJVMXpKl.js +205 -0
  425. package/dist/onboard-custom-D6YDrk9n.js +571 -0
  426. package/dist/onboard-custom-DqsNalL1.js +114 -0
  427. package/dist/onboard-helpers-DiSRTpZC.js +335 -0
  428. package/dist/onboard-helpers-DqZsjdb8.js +113 -0
  429. package/dist/onboard-hooks-pzEPZAvl.js +72 -0
  430. package/dist/onboard-remote-DFMLELsg.js +181 -0
  431. package/dist/onboard-remote-DmMYxY80.js +117 -0
  432. package/dist/onboard-search-B7FsNd7m.js +302 -0
  433. package/dist/onboard-skills-BJRdI-K3.js +133 -0
  434. package/dist/onboard-skills-Cg1YQAZa.js +117 -0
  435. package/dist/outbound-media-BHD4aJEX.d.ts +11 -0
  436. package/dist/outbound-media-CrraEXXv.js +11 -0
  437. package/dist/pairing-access-CzHpaM0R.d.ts +21 -0
  438. package/dist/pairing-cli-DSQTYgc0.js +217 -0
  439. package/dist/perplexity-CXwMDD3u.js +24 -0
  440. package/dist/persistent-dedupe-B9vrAf8t.d.ts +26 -0
  441. package/dist/pi-model-discovery-runtime-vSSbBDFG.js +111 -0
  442. package/dist/pi-tools.before-tool-call.runtime-C5yLUogH.js +381 -0
  443. package/dist/plugin-install-B1RfdrdV.js +117 -0
  444. package/dist/plugin-install-C9aaL42Y.js +184 -0
  445. package/dist/plugin-install-plan-BlfDt117.js +49 -0
  446. package/dist/plugin-registry-D2P9SYJ9.js +113 -0
  447. package/dist/plugin-registry-QtjVXmj3.js +49 -0
  448. package/dist/plugin-sdk/account-resolution.js +35 -35
  449. package/dist/plugin-sdk/acp-runtime.js +35 -35
  450. package/dist/plugin-sdk/agent-runtime.js +35 -35
  451. package/dist/plugin-sdk/bluebubbles.js +37 -37
  452. package/dist/plugin-sdk/channel-config-helpers.js +35 -35
  453. package/dist/plugin-sdk/channel-policy.js +35 -35
  454. package/dist/plugin-sdk/channel-runtime.js +35 -35
  455. package/dist/plugin-sdk/compat.js +36 -36
  456. package/dist/plugin-sdk/config-runtime.js +35 -35
  457. package/dist/plugin-sdk/conversation-runtime.js +35 -35
  458. package/dist/plugin-sdk/copilot-proxy.js +4 -4
  459. package/dist/plugin-sdk/core.js +4 -4
  460. package/dist/plugin-sdk/device-pair.js +4 -4
  461. package/dist/plugin-sdk/discord.js +35 -35
  462. package/dist/plugin-sdk/feishu.js +35 -35
  463. package/dist/plugin-sdk/gateway-runtime.js +10 -10
  464. package/dist/plugin-sdk/googlechat.js +37 -37
  465. package/dist/plugin-sdk/image-generation-runtime.js +35 -35
  466. package/dist/plugin-sdk/image-generation.js +35 -35
  467. package/dist/plugin-sdk/imessage.js +36 -36
  468. package/dist/plugin-sdk/index.js +35 -35
  469. package/dist/plugin-sdk/infra-runtime.js +35 -35
  470. package/dist/plugin-sdk/irc.js +37 -37
  471. package/dist/plugin-sdk/line.js +36 -36
  472. package/dist/plugin-sdk/llm-task.js +35 -35
  473. package/dist/plugin-sdk/lobster.js +4 -4
  474. package/dist/plugin-sdk/matrix.js +37 -37
  475. package/dist/plugin-sdk/mattermost.js +36 -36
  476. package/dist/plugin-sdk/media-runtime.js +35 -35
  477. package/dist/plugin-sdk/media-understanding-runtime.js +35 -35
  478. package/dist/plugin-sdk/media-understanding.js +35 -35
  479. package/dist/plugin-sdk/memory-lancedb.js +4 -4
  480. package/dist/plugin-sdk/minimax-portal-auth.js +4 -4
  481. package/dist/plugin-sdk/msteams.js +38 -38
  482. package/dist/plugin-sdk/nextcloud-talk.js +36 -36
  483. package/dist/plugin-sdk/nostr.js +36 -36
  484. package/dist/plugin-sdk/ollama-setup.js +9 -9
  485. package/dist/plugin-sdk/open-prose.js +4 -4
  486. package/dist/plugin-sdk/phone-control.js +4 -4
  487. package/dist/plugin-sdk/plugin-runtime.js +35 -35
  488. package/dist/plugin-sdk/provider-auth.js +35 -35
  489. package/dist/plugin-sdk/provider-models.js +5 -5
  490. package/dist/plugin-sdk/provider-onboard.js +4 -4
  491. package/dist/plugin-sdk/provider-setup.js +39 -39
  492. package/dist/plugin-sdk/provider-stream.js +4 -4
  493. package/dist/plugin-sdk/provider-usage.js +4 -4
  494. package/dist/plugin-sdk/qwen-portal-auth.js +35 -35
  495. package/dist/plugin-sdk/reply-history.js +35 -35
  496. package/dist/plugin-sdk/reply-runtime.js +35 -35
  497. package/dist/plugin-sdk/routing.js +3 -3
  498. package/dist/plugin-sdk/sandbox.js +35 -35
  499. package/dist/plugin-sdk/security-runtime.js +35 -35
  500. package/dist/plugin-sdk/self-hosted-provider-setup.js +37 -37
  501. package/dist/plugin-sdk/setup.js +35 -35
  502. package/dist/plugin-sdk/signal.js +35 -35
  503. package/dist/plugin-sdk/slack.js +35 -35
  504. package/dist/plugin-sdk/speech-runtime.js +35 -35
  505. package/dist/plugin-sdk/speech.js +35 -35
  506. package/dist/plugin-sdk/src/secrets/secure-file-store.d.ts +26 -0
  507. package/dist/plugin-sdk/src/subscription/provider.d.ts +5 -3
  508. package/dist/plugin-sdk/synology-chat.js +36 -36
  509. package/dist/plugin-sdk/talk-voice.js +4 -4
  510. package/dist/plugin-sdk/telegram.js +35 -35
  511. package/dist/plugin-sdk/text-runtime.js +7 -7
  512. package/dist/plugin-sdk/thread-ownership.js +4 -4
  513. package/dist/plugin-sdk/tlon.js +36 -36
  514. package/dist/plugin-sdk/twitch.js +35 -35
  515. package/dist/plugin-sdk/voice-call.js +35 -35
  516. package/dist/plugin-sdk/whatsapp.js +35 -35
  517. package/dist/plugin-sdk/zalo.js +38 -38
  518. package/dist/plugin-sdk/zalouser.js +38 -38
  519. package/dist/plugins/runtime/index.d.ts +1 -1
  520. package/dist/plugins/runtime/index.js +35 -35
  521. package/dist/plugins-CAULK-lt.js +111 -0
  522. package/dist/plugins-cli-BGAgYy3Z.js +917 -0
  523. package/dist/policy-WKZJ8cPK.js +143 -0
  524. package/dist/preflight-audio.runtime-Bc6Hv-u4.js +116 -0
  525. package/dist/probe-B7a_VBCB.js +47 -0
  526. package/dist/probe-BLioBOhT.js +6329 -0
  527. package/dist/probe-BkM5pykD.js +21 -0
  528. package/dist/probe-DOEaWez2.js +1793 -0
  529. package/dist/probe-DpcJ0WeP.js +129 -0
  530. package/dist/probe-auth-BcNjX8hy.js +40 -0
  531. package/dist/probe-auth-DhuAb8ls.js +48 -0
  532. package/dist/program-zG0CuBsn.js +253 -0
  533. package/dist/prompt-select-styled-B-D6NQFO.js +2673 -0
  534. package/dist/provider-api-key-auth.runtime-DgGM_pHf.js +121 -0
  535. package/dist/provider-auth-choice-BOQA0idb.js +126 -0
  536. package/dist/provider-auth-choice-helpers-hzDkh3f1.js +48 -0
  537. package/dist/provider-auth-choice-preference-BPcuoO9b.js +189 -0
  538. package/dist/provider-auth-choice.runtime-B4E0A4J8.js +123 -0
  539. package/dist/provider-auth-choices-0KaDNPBQ.js +57 -0
  540. package/dist/provider-auth-guidance-BxxMxMEt.js +34 -0
  541. package/dist/provider-auth-result-Bto1bYtS.d.ts +18 -0
  542. package/dist/provider-models-DxOmeToO.d.ts +867 -0
  543. package/dist/provider-models-xnyxy6mO.js +2113 -0
  544. package/dist/provider-ollama-setup-DBYK__ov.d.ts +32 -0
  545. package/dist/provider-ollama-setup-QzgCxj44.js +314 -0
  546. package/dist/provider-onboard-B9ionepI.js +139 -0
  547. package/dist/provider-onboard-CURxJ_UX.d.ts +40 -0
  548. package/dist/provider-runtime.runtime-DFAIaPZT.js +111 -0
  549. package/dist/provider-self-hosted-setup-CclMg3QB.js +182 -0
  550. package/dist/provider-self-hosted-setup-qeY8BYSy.d.ts +61 -0
  551. package/dist/provider-stream-Chz_EFw3.js +512 -0
  552. package/dist/provider-usage-Cn_OrdMP.js +111 -0
  553. package/dist/provider-usage-kxemdMp2.js +633 -0
  554. package/dist/provider-wizard-BMc1Dzks.js +152 -0
  555. package/dist/push-apns-CuIs_G0k.js +1038 -0
  556. package/dist/pw-ai-DUe4BbH2.js +1867 -0
  557. package/dist/qmd-manager-CAAFp7qK.js +1570 -0
  558. package/dist/qr-cli-9H9go9JE.js +113 -0
  559. package/dist/qr-cli-Bxxttvx3.js +369 -0
  560. package/dist/reactions-Dx2ypGlm.js +281 -0
  561. package/dist/read-only-account-inspect.discord.runtime-D_RVd1-r.js +116 -0
  562. package/dist/read-only-account-inspect.slack.runtime-Ckl92Rhy.js +116 -0
  563. package/dist/read-only-account-inspect.telegram.runtime-D97ssjQk.js +116 -0
  564. package/dist/redact-snapshot-ojhTflxp.js +2663 -0
  565. package/dist/register.agent-DlBmy_RL.js +439 -0
  566. package/dist/register.backup-8nOYtJqg.js +625 -0
  567. package/dist/register.configure-BV_GUQ5w.js +252 -0
  568. package/dist/register.maintenance-BafAHBum.js +574 -0
  569. package/dist/register.message-CHhfcEq2.js +709 -0
  570. package/dist/register.onboard-DjPNnlnr.js +192 -0
  571. package/dist/register.setup-BMGXI9PG.js +212 -0
  572. package/dist/register.status-health-sessions-BJMsh2AL.js +498 -0
  573. package/dist/register.subclis-B7nrik3-.js +315 -0
  574. package/dist/register.subclis-BCoAVyGn.js +13 -0
  575. package/dist/replies-BU4AvOyD.js +110 -0
  576. package/dist/resolve-channels-CDfj5NGq.js +226 -0
  577. package/dist/resolve-channels-Cz120Lvf.js +262 -0
  578. package/dist/resolve-route-DdX-HBVt.js +538 -0
  579. package/dist/resolve-users-Bc6nRqpb.js +143 -0
  580. package/dist/root-help-QAkoA7GD.js +32 -0
  581. package/dist/routes-CcJNnwTF.js +7097 -0
  582. package/dist/rpc-DDUAlBbH.js +67 -0
  583. package/dist/run-main-Cf8vXm6i.js +424 -0
  584. package/dist/runtime-Bitmi8Er.d.ts +26 -0
  585. package/dist/runtime-discord-ops.runtime-DWBnG-Hf.js +9078 -0
  586. package/dist/runtime-slack-ops.runtime-oYfbYvX4.js +4556 -0
  587. package/dist/runtime-telegram-ops.runtime-EPGDYN1f.js +133 -0
  588. package/dist/runtime-whatsapp-login.runtime-BGJoKM2h.js +114 -0
  589. package/dist/runtime-whatsapp-outbound.runtime-D3Sag6Bv.js +117 -0
  590. package/dist/sandbox-cli-waaYyhsC.js +535 -0
  591. package/dist/search-manager-BjDsOXzB.js +16 -0
  592. package/dist/search-manager-D-G9UaXe.js +386 -0
  593. package/dist/secrets-cli-BmeEhlzt.js +2070 -0
  594. package/dist/security-cli-CSsLnFuN.js +575 -0
  595. package/dist/send-6o7piqfv.js +100 -0
  596. package/dist/send-99FyFLgk.js +629 -0
  597. package/dist/send-B1pX9_Oc.js +283 -0
  598. package/dist/send-Dg5-AjXW.js +1025 -0
  599. package/dist/send-LdV9TRoN.js +631 -0
  600. package/dist/server-node-events-BAUUKNFW.js +506 -0
  601. package/dist/server-zI_K-D05.js +107 -0
  602. package/dist/sessions-DJGywtY2.js +112 -0
  603. package/dist/sessions-WR0GKdGl.js +218 -0
  604. package/dist/setup-2LvBON2J.js +387 -0
  605. package/dist/setup-CFIMq-Pz.d.ts +37 -0
  606. package/dist/setup-binary-CcAv8NXz.js +406 -0
  607. package/dist/setup-browser-C4eRV3h6.js +70 -0
  608. package/dist/setup-core-ByqF8Nvc.js +166 -0
  609. package/dist/setup-core-COkq8Zop.js +205 -0
  610. package/dist/setup-core-C_o77DVV.js +143 -0
  611. package/dist/setup-core-tAdHbqi9.js +47 -0
  612. package/dist/setup-surface-DMHtZByF.js +490 -0
  613. package/dist/setup-wizard-helpers-r0J6l8ST.d.ts +203 -0
  614. package/dist/setup.finalize-pTkXn8pV.js +522 -0
  615. package/dist/setup.gateway-config-D1wiUQe6.js +343 -0
  616. package/dist/shared-BaM_tMxk.js +102 -0
  617. package/dist/shared-BgUgXsM9.js +75 -0
  618. package/dist/shared-CezRuVfl.js +96 -0
  619. package/dist/shared-DQgf3R0B.js +298 -0
  620. package/dist/shared-RA6kxQfu.js +182 -0
  621. package/dist/signal-xxP4dGx7.js +114 -0
  622. package/dist/skills-Bio8GwTE.js +20 -0
  623. package/dist/skills-DE_MXFSN.js +853 -0
  624. package/dist/skills-cli-BGuW-tKw.js +292 -0
  625. package/dist/skills-install-BIlG41ei.js +763 -0
  626. package/dist/skills-status-B08PtBc_.js +21 -0
  627. package/dist/skills-status-CzM008aB.js +169 -0
  628. package/dist/slack-Bzt3M7d8.js +114 -0
  629. package/dist/slash-commands.runtime-EYqj8SbV.js +128 -0
  630. package/dist/slash-dispatch.runtime-vWH92PUY.js +141 -0
  631. package/dist/slash-skill-commands.runtime-sUTjM3J0.js +116 -0
  632. package/dist/src-Iso9-DPo.js +1701 -0
  633. package/dist/status-8S882KRO.js +43 -0
  634. package/dist/status-BF7h_jTB.js +126 -0
  635. package/dist/status-DxOIyRm9.js +131 -0
  636. package/dist/status-HlvixAOq.js +606 -0
  637. package/dist/status-json-CShBo8A6.js +288 -0
  638. package/dist/status-qhtgsJFd.js +1599 -0
  639. package/dist/status.link-channel-D3dLYZiH.js +143 -0
  640. package/dist/status.scan.deps.runtime-mCmOLzpG.js +126 -0
  641. package/dist/status.scan.runtime-CYuUlDeg.js +119 -0
  642. package/dist/status.summary-BjB1aTjV.js +592 -0
  643. package/dist/status.summary.runtime-DW4MOt1Z.js +118 -0
  644. package/dist/status.update-BxblMS7P.js +77 -0
  645. package/dist/subagent-orphan-recovery-CCVopsdP.js +307 -0
  646. package/dist/subagent-registry-runtime-oG47Fzvg.js +111 -0
  647. package/dist/subscription-CpFdxuFS.js +33 -0
  648. package/dist/subscription-DaA1urx-.js +102 -0
  649. package/dist/subscription-cli-Bvto9EmO.js +134 -0
  650. package/dist/synology-chat-CVy1tJGY.js +297 -0
  651. package/dist/system-cli-BvNps8sl.js +94 -0
  652. package/dist/telegram/audit.d.ts +1 -1
  653. package/dist/telegram/audit.js +1 -1
  654. package/dist/telegram/token.d.ts +1 -1
  655. package/dist/telegram/token.js +35 -35
  656. package/dist/telegram-Dug8pd82.js +114 -0
  657. package/dist/text-chunking-CQ6ttpWs.js +84 -0
  658. package/dist/text-chunking-DDUU_vAF.d.ts +79 -0
  659. package/dist/tlon-BnckVr_7.js +433 -0
  660. package/dist/tui-DXTge9Ac.js +3834 -0
  661. package/dist/tui-cli-BRUfLUTd.js +137 -0
  662. package/dist/types-2H_e7eWT.d.ts +45 -0
  663. package/dist/types-ZKnGUchG.d.ts +22692 -0
  664. package/dist/types.base-BFiQZ4J9.d.ts +188 -0
  665. package/dist/ui--iP08xRA.js +31 -0
  666. package/dist/update-CtxBD-Cf.js +1036 -0
  667. package/dist/update-cli-DPE3GCHJ.js +1503 -0
  668. package/dist/update-offset-store-BlBY7dWj.js +112 -0
  669. package/dist/update-runner-Cfcrhf2j.js +1496 -0
  670. package/dist/upsert-with-lock-BZU7Le8n.js +33 -0
  671. package/dist/usage-Czgwvg0h.js +115 -0
  672. package/dist/web-BGDXhunB.js +112 -0
  673. package/dist/web-shared-B5Q0mIJq.d.ts +45 -0
  674. package/dist/webhook-request-guards-CsKDhZJr.d.ts +76 -0
  675. package/dist/webhook-targets-CjxuEE9C.d.ts +106 -0
  676. package/dist/webhook-targets-Dtt6rH4N.js +181 -0
  677. package/dist/webhooks-cli-Wl9y6AWW.js +350 -0
  678. package/dist/whatsapp-D64cBQ_9.js +114 -0
  679. package/dist/whatsapp-actions-CVoTcagb.js +167 -0
  680. package/dist/workspace-DJ_S272u.js +484 -0
  681. package/dist/workspace-DbZSqjw0.js +289 -0
  682. package/dist/workspace-cli-D93DLmAh.js +154 -0
  683. package/dist/workspace-dirs-CGeIPpGN.js +2003 -0
  684. package/dist/zalo-CK2dlGmu.d.ts +9 -0
  685. package/dist/zalo-DxoY8M22.js +415 -0
  686. package/dist/zalouser-DTHIrPvs.js +30911 -0
  687. package/extensions/discord/src/monitor/allow-list.ts +8 -1
  688. package/extensions/discord/src/monitor/message-handler.preflight.ts +4 -1
  689. package/package.json +1 -1
  690. package/dist/accounts-CS8U4v8C.js +0 -114
  691. package/dist/accounts-gLr-Udmt.d.ts +0 -103
  692. package/dist/acp-cli-BGT0jXcC.js +0 -2093
  693. package/dist/actions.runtime-BfckTw6c.js +0 -119
  694. package/dist/actions.runtime-Cl9mBfqH.js +0 -133
  695. package/dist/agent-scope-C-YmLnnb.js +0 -208
  696. package/dist/agents-CydD54p8.js +0 -222
  697. package/dist/agents-DpQsZO6O.js +0 -853
  698. package/dist/agents.config-XU7IsYE-.js +0 -121
  699. package/dist/agents.config-ssoQXuvF.js +0 -17
  700. package/dist/allow-list-Cfn6lmMK.js +0 -81
  701. package/dist/allowlist-CCYXVpM9.js +0 -142
  702. package/dist/api-BoXoFKxy.js +0 -117
  703. package/dist/audit-Bv05N5o9.js +0 -787
  704. package/dist/audit-CIWW1Aqm.js +0 -54
  705. package/dist/audit-channel.collect.runtime-Bi7yrdcO.js +0 -605
  706. package/dist/audit-channel.runtime-C_NDweiW.js +0 -121
  707. package/dist/audit-extra.async-Dp7OKSXg.js +0 -813
  708. package/dist/audit-membership-runtime-B8FQ6VtN.js +0 -162
  709. package/dist/audit.deep.runtime-CXhobL6b.js +0 -25
  710. package/dist/audit.nondeep.runtime-CrEm3T16.js +0 -832
  711. package/dist/audit.runtime-CJPKj1Zg.js +0 -118
  712. package/dist/auth-Byfp0flq.js +0 -101
  713. package/dist/auth-choice-BgOjdeXN.js +0 -507
  714. package/dist/auth-choice-CD1Heq0M.js +0 -122
  715. package/dist/auth-choice-ePNfg0iQ.js +0 -268
  716. package/dist/auth-choice-options-BlewQWI0.js +0 -123
  717. package/dist/auth-choice-prompt-BP2b6aXz.js +0 -36
  718. package/dist/auth-choice-prompt-Cmwl4n97.js +0 -115
  719. package/dist/auth-choice.apply-helpers-Dq-nxuuX.js +0 -66
  720. package/dist/auth-choice.plugin-providers.runtime-B23kOUzQ.js +0 -119
  721. package/dist/auth-profiles-1kPLbBwI.js +0 -127823
  722. package/dist/auth-profiles.runtime-DAfSjku1.js +0 -116
  723. package/dist/banner-DeOsobLO.js +0 -342
  724. package/dist/bluebubbles-BsLGedBM.js +0 -64
  725. package/dist/bluebubbles-U2sAfO4_.d.ts +0 -6
  726. package/dist/bot-DW12K3bO.d.ts +0 -478
  727. package/dist/brave-BoWimrLe.js +0 -24
  728. package/dist/browser-cli-D_S3wEYE.js +0 -1494
  729. package/dist/call-ByEzDJ1_.js +0 -640
  730. package/dist/call-CHCWVg-O.js +0 -39
  731. package/dist/channel-3VC0oOMu.js +0 -214
  732. package/dist/channel-B9fCBPiS.js +0 -207
  733. package/dist/channel-B9q775cM.js +0 -562
  734. package/dist/channel-BG3UK54j.js +0 -803
  735. package/dist/channel-BRQAdMML.js +0 -352
  736. package/dist/channel-BmlLp933.js +0 -1321
  737. package/dist/channel-By6KvdTG.js +0 -920
  738. package/dist/channel-C8rRsdf6.js +0 -226
  739. package/dist/channel-CLEDBbXE.js +0 -943
  740. package/dist/channel-CMvBAG7o.js +0 -306
  741. package/dist/channel-CmlxxjHY.js +0 -1598
  742. package/dist/channel-CqG6_xN0.js +0 -949
  743. package/dist/channel-DNueHKs92.js +0 -316
  744. package/dist/channel-DUtyN7BX.js +0 -4681
  745. package/dist/channel-DWD6GrfZ.js +0 -538
  746. package/dist/channel-DaRYMYzj.js +0 -619
  747. package/dist/channel-Dj6BgLp8.js +0 -575
  748. package/dist/channel-account-context-Ba3u5D21.js +0 -103
  749. package/dist/channel-crabk6Em.js +0 -542
  750. package/dist/channel-i8uqQaK2.js +0 -497
  751. package/dist/channel-options-xljvwHS2.js +0 -50
  752. package/dist/channel-plugin-ids-DAgknSG4.js +0 -26
  753. package/dist/channel-summary-dHTMCG75.js +0 -111
  754. package/dist/channel-xVWQ96Ni.js +0 -397
  755. package/dist/channel.runtime-B6PoZ4BV.js +0 -182
  756. package/dist/channel.runtime-BPZmo57e.js +0 -404
  757. package/dist/channel.runtime-B_1uGR-U.js +0 -199
  758. package/dist/channel.runtime-BiXnPU0d.js +0 -218
  759. package/dist/channel.runtime-BpvDc9sv.js +0 -870
  760. package/dist/channel.runtime-CUua3W80.js +0 -418
  761. package/dist/channel.runtime-CaCBTd0A.js +0 -179
  762. package/dist/channel.runtime-D0FfYvUj.js +0 -4011
  763. package/dist/channel.runtime-DhoJtpvJ.js +0 -241
  764. package/dist/channel.runtime-Kj9EXNE0.js +0 -127
  765. package/dist/channel.runtime-r4tPuPyh.js +0 -171
  766. package/dist/channel.setup-B7d_grfe.js +0 -6
  767. package/dist/channel.setup-C0vu1fhi.js +0 -9
  768. package/dist/channel.setup-CAI0FNHj.js +0 -11
  769. package/dist/channel.setup-CkDVwv5R.js +0 -57
  770. package/dist/channel.setup-Cpd00YqQ.js +0 -8
  771. package/dist/channel.setup-DbBz1-WT.js +0 -9
  772. package/dist/channel.setup-GZnAvD9g.js +0 -8
  773. package/dist/channels-5H484RSw.js +0 -1118
  774. package/dist/channels-BnPudfyx.js +0 -404
  775. package/dist/channels-cli-WIC-QeH_.js +0 -291
  776. package/dist/channels-status-issues-RDmzovJU.js +0 -16
  777. package/dist/clawbot-cli-BgutNwf8.js +0 -118
  778. package/dist/cleanup-utils-DBl1Aij1.js +0 -96
  779. package/dist/cli-1P7u6zqu.js +0 -154
  780. package/dist/command-registry-B8jovrws.js +0 -232
  781. package/dist/command-registry-DtDl1FVm.js +0 -14
  782. package/dist/command-secret-gateway-BgUo3FxJ.js +0 -111
  783. package/dist/compact.runtime-CXbXM0AU.js +0 -116
  784. package/dist/completion-cli-Cik_owAE.js +0 -17
  785. package/dist/completion-cli-RU3P2RSl.js +0 -445
  786. package/dist/config-5HUpB1L1.js +0 -31
  787. package/dist/config-cli-QHaUHoZI.js +0 -433
  788. package/dist/config-guard-C9Sn3pE-.js +0 -118
  789. package/dist/config-sW57gztj.js +0 -44
  790. package/dist/config-validation-5LkjIKNt.js +0 -262
  791. package/dist/config-value-CtTWALxG.js +0 -132
  792. package/dist/configure-BmR2TPLf.js +0 -243
  793. package/dist/configure-DaLN-5xM.js +0 -1100
  794. package/dist/control-ui-assets-CH3MYmAo.js +0 -232
  795. package/dist/control-ui-shared-CA77PTml.js +0 -29
  796. package/dist/core-CvDzLs7B.js +0 -150
  797. package/dist/core-dPA4nFkn.d.ts +0 -87
  798. package/dist/cron-cli-tguLpzyq.js +0 -639
  799. package/dist/daemon-cli-ptosOkL8.js +0 -339
  800. package/dist/daemon-install-DzU4EnVa.js +0 -180
  801. package/dist/deliver-DwxFoHM3.js +0 -111
  802. package/dist/deliver-runtime-DOdDyaPI.js +0 -111
  803. package/dist/device-id-cli-GopvlxxZ.js +0 -52
  804. package/dist/device-identity-CRfhC3_s.js +0 -365
  805. package/dist/devices-cli-ain7ESqU.js +0 -342
  806. package/dist/diagnostic-D96Xaqrj.js +0 -310
  807. package/dist/directory-cli-fh1UxGgY.js +0 -311
  808. package/dist/directory-config-helpers-CpU1oflo.d.ts +0 -38
  809. package/dist/directory.static-CKjJUNGl.js +0 -44
  810. package/dist/discord-CflhwDEM.js +0 -114
  811. package/dist/discovery-x0ZqY4AB.js +0 -48
  812. package/dist/dm-policy-shared-73A52W6E.d.ts +0 -95
  813. package/dist/dns-cli-DCHyKjGf.js +0 -217
  814. package/dist/docs-cli-D3OoqYSP.js +0 -174
  815. package/dist/doctor-completion-Bq2eP87s.js +0 -90
  816. package/dist/doctor-config-flow-D8XRG9Ku.js +0 -2437
  817. package/dist/doctor-config-flow-DGiF1HGc.js +0 -112
  818. package/dist/enable-0QSF4YGH.js +0 -24
  819. package/dist/exec-approvals-cli-Bncym0Gd.js +0 -421
  820. package/dist/feishu-B5JDcyF9.d.ts +0 -36
  821. package/dist/gateway-cli-DYscsmA-.js +0 -26437
  822. package/dist/gateway-install-token-CNv17ac9.js +0 -163
  823. package/dist/gateway-rpc-BGC1Rxvg.js +0 -26
  824. package/dist/gateway-runtime-D89mSQPB.js +0 -69
  825. package/dist/git-commit-CeLH5Ozm.js +0 -2
  826. package/dist/git-commit-DUKRiCP-.js +0 -177
  827. package/dist/googlechat-BgXeXjd1.js +0 -307
  828. package/dist/googlechat-De-T7C31.d.ts +0 -12
  829. package/dist/group-access-Deh1tVNr.d.ts +0 -61
  830. package/dist/health-BEjzWwaB.js +0 -570
  831. package/dist/health-FjqrWQL6.js +0 -113
  832. package/dist/heartbeat-summary-CfdSA9M1.js +0 -57
  833. package/dist/help-BZeVprq1.js +0 -81
  834. package/dist/hooks-B5pYs_d7.d.ts +0 -6
  835. package/dist/hooks-cli-B7uGJs2O.js +0 -1000
  836. package/dist/hooks-status-CfceaUSg.js +0 -78
  837. package/dist/http-registry-C-KXqwnj.d.ts +0 -20
  838. package/dist/identity-file-sshkKKIr.js +0 -60
  839. package/dist/image-generation-CafM5hZh.d.ts +0 -9
  840. package/dist/imessage-BcV3WGx_.js +0 -31
  841. package/dist/imessage-Dhje7Ty-.js +0 -115
  842. package/dist/inbound-reply-dispatch-C73_7SOl.js +0 -71
  843. package/dist/inbound-reply-dispatch-DmL0KWLe.d.ts +0 -72
  844. package/dist/install-target-D7NRhfzc.js +0 -574
  845. package/dist/installs-Bj6jblqc.js +0 -532
  846. package/dist/io-CMfWWPXQ.js +0 -9738
  847. package/dist/io-CV844hAM.js +0 -29
  848. package/dist/irc-DKi1fDYI.js +0 -672
  849. package/dist/library-rygTG3oA.js +0 -112
  850. package/dist/lifecycle-core-BPlvShWY.js +0 -382
  851. package/dist/line-CGsemKWJ.js +0 -530
  852. package/dist/line-CKU3ER-n.d.ts +0 -75
  853. package/dist/llm-slug-generator-DlhVyMqT.js +0 -67
  854. package/dist/logging-5wu9k6w4.js +0 -30
  855. package/dist/logging-CxP9suT8.js +0 -13
  856. package/dist/login-qr-BcDsiwHs.js +0 -233
  857. package/dist/login-qr-Y8pJ5yV4.js +0 -112
  858. package/dist/logs-cli-XI9oVXpH.js +0 -256
  859. package/dist/manager-runtime-DkIlXBhD.js +0 -111
  860. package/dist/manager.runtime-Q0q2rJCC.js +0 -715
  861. package/dist/manifest-registry-DAd0SRAP.js +0 -1329
  862. package/dist/matrix-BI0DBBrG.js +0 -1495
  863. package/dist/matrix-DiABGjJR.js +0 -1269
  864. package/dist/matrix-fC6NrFM5.d.ts +0 -68
  865. package/dist/mcp-cli-BOyn_DLL.js +0 -87
  866. package/dist/media-understanding.runtime-DjUa7Dka.js +0 -116
  867. package/dist/memory-cli-CJd_vl-Y.js +0 -111
  868. package/dist/memory-search-CEEItIFR.js +0 -17
  869. package/dist/memory-search-Cv1SBrn7.js +0 -204
  870. package/dist/method-scopes-CQE7-bZ-.js +0 -2452
  871. package/dist/model-auth-markers-B1bbs9Qd.d.ts +0 -20
  872. package/dist/model-picker-D6_89XHg.js +0 -112
  873. package/dist/model-picker-Svaw-APs.js +0 -390
  874. package/dist/model-picker.runtime-Chi9nV7A.js +0 -125
  875. package/dist/model-selection-hL8i1Jbs.js +0 -653
  876. package/dist/model-suppression.runtime-DjWJZ0X-.js +0 -116
  877. package/dist/models-7qj1dG_W.js +0 -118
  878. package/dist/models-BPOB_xJF.js +0 -2514
  879. package/dist/models-cli-DdlOVUjS.js +0 -309
  880. package/dist/models-config-CBqUS-jX.js +0 -111
  881. package/dist/models-config.providers.discovery-BKB5JH9M.d.ts +0 -18
  882. package/dist/moldclaw-root-D6PbhbZk.js +0 -88
  883. package/dist/monitor-BPYhkEqF.js +0 -782
  884. package/dist/monitor-BuTcQ24j.js +0 -3468
  885. package/dist/monitor-CuXvNhFh.js +0 -113
  886. package/dist/monitor-D-TqSIHF.js +0 -6823
  887. package/dist/monitor-DRSgo9u2.js +0 -3076
  888. package/dist/monitor-DcHch39z.js +0 -772
  889. package/dist/monitor-DsHBMrXp.js +0 -115
  890. package/dist/monitor-shared-CL8T4gt1.js +0 -444
  891. package/dist/msteams-7FMwTvQG.js +0 -852
  892. package/dist/node-cli-BCjaSCZM.js +0 -2503
  893. package/dist/node-resolve-D5Hvcgyx.js +0 -835
  894. package/dist/nodes-cli-Dd_SNbkt.js +0 -1380
  895. package/dist/nostr-D8scBiYq.d.ts +0 -7
  896. package/dist/nostr-DBTFTxKs.js +0 -8744
  897. package/dist/npm-resolution-CYfb3MHG.js +0 -60
  898. package/dist/oauth-env-zPt5RywA.js +0 -10
  899. package/dist/onboard-BEFQQeig.js +0 -25
  900. package/dist/onboard-CJHNyxJh.js +0 -48
  901. package/dist/onboard-D_3UeLEN.js +0 -589
  902. package/dist/onboard-channels-B_JL0Djc.js +0 -1241
  903. package/dist/onboard-channels-CqZzHt2C.js +0 -205
  904. package/dist/onboard-custom-CER3Ggbq.js +0 -571
  905. package/dist/onboard-custom-bNRdGECb.js +0 -114
  906. package/dist/onboard-helpers-BK0Hsb7Y.js +0 -335
  907. package/dist/onboard-helpers-CXZ5RPoR.js +0 -113
  908. package/dist/onboard-hooks-1NsxEDjH.js +0 -72
  909. package/dist/onboard-remote-DuKhC_7W.js +0 -117
  910. package/dist/onboard-remote-OwRcDuB3.js +0 -181
  911. package/dist/onboard-search-Cy8dOq2W.js +0 -302
  912. package/dist/onboard-skills-D5phRa6r.js +0 -117
  913. package/dist/onboard-skills-c9qWCNe9.js +0 -133
  914. package/dist/outbound-media-CgNYEQWb.d.ts +0 -11
  915. package/dist/outbound-media-DYRO2vTD.js +0 -11
  916. package/dist/pairing-access-Dsiu5Mvl.d.ts +0 -21
  917. package/dist/pairing-cli-BOnv0TYn.js +0 -217
  918. package/dist/perplexity-EZwC3y2b.js +0 -24
  919. package/dist/persistent-dedupe-DMLOqJ23.d.ts +0 -26
  920. package/dist/pi-model-discovery-runtime-BToY3A6K.js +0 -111
  921. package/dist/pi-tools.before-tool-call.runtime-D_acPtld.js +0 -381
  922. package/dist/plugin-install-CgJpSjYd.js +0 -184
  923. package/dist/plugin-install-Cl1A4EF6.js +0 -117
  924. package/dist/plugin-install-plan-Dc2Z4DeU.js +0 -49
  925. package/dist/plugin-registry-B1UaWrQD.js +0 -49
  926. package/dist/plugin-registry-Cy8biwnn.js +0 -113
  927. package/dist/plugins-CXwvg50F.js +0 -111
  928. package/dist/plugins-cli-Uvzp2aYV.js +0 -917
  929. package/dist/policy-DsMBbEe7.js +0 -143
  930. package/dist/preflight-audio.runtime-hWsZIYvc.js +0 -116
  931. package/dist/probe-CNsSf1Uf.js +0 -6329
  932. package/dist/probe-CqOIrPhb.js +0 -47
  933. package/dist/probe-DH6gDw-h.js +0 -129
  934. package/dist/probe-DM16PLf4.js +0 -21
  935. package/dist/probe-DvAEEWYr.js +0 -1793
  936. package/dist/probe-auth-COfgCble.js +0 -48
  937. package/dist/probe-auth-I_5TX1Eh.js +0 -40
  938. package/dist/program-Dz80sgTU.js +0 -253
  939. package/dist/prompt-select-styled-wQehwFxK.js +0 -2673
  940. package/dist/provider-api-key-auth.runtime-BR9GU4ya.js +0 -121
  941. package/dist/provider-auth-choice-CdhA84kr.js +0 -126
  942. package/dist/provider-auth-choice-helpers-kabp_0zA.js +0 -48
  943. package/dist/provider-auth-choice-preference-se3zAM_2.js +0 -189
  944. package/dist/provider-auth-choice.runtime-BMc8-xNQ.js +0 -123
  945. package/dist/provider-auth-choices-CYsCViGi.js +0 -57
  946. package/dist/provider-auth-guidance-CMjUWlNf.js +0 -34
  947. package/dist/provider-auth-result-Cw6qIhO-.d.ts +0 -18
  948. package/dist/provider-models-BCId_Lfu.js +0 -2113
  949. package/dist/provider-models-Ok-DrSiY.d.ts +0 -867
  950. package/dist/provider-ollama-setup-B6XJZ0So.js +0 -314
  951. package/dist/provider-ollama-setup-lGDdTl0b.d.ts +0 -32
  952. package/dist/provider-onboard-CSPi7jOK.d.ts +0 -40
  953. package/dist/provider-onboard-Ca0TaNud.js +0 -139
  954. package/dist/provider-runtime.runtime-DwwkHw_7.js +0 -111
  955. package/dist/provider-self-hosted-setup-BEKLVGpj.js +0 -182
  956. package/dist/provider-self-hosted-setup-Df91By-J.d.ts +0 -61
  957. package/dist/provider-stream-DrUD69ai.js +0 -512
  958. package/dist/provider-usage-BgKHCnjr.js +0 -111
  959. package/dist/provider-usage-D8EZpFz9.js +0 -633
  960. package/dist/provider-wizard-DMdb-zj_.js +0 -152
  961. package/dist/push-apns-BPH6d4VV.js +0 -1038
  962. package/dist/pw-ai-DttfldtL.js +0 -1867
  963. package/dist/qmd-manager-CybcDUfk.js +0 -1570
  964. package/dist/qr-cli-8NcmJ8Ft.js +0 -369
  965. package/dist/qr-cli-DWe0Our3.js +0 -113
  966. package/dist/reactions-D6N0LR16.js +0 -281
  967. package/dist/read-only-account-inspect.discord.runtime-CqUWTRfl.js +0 -116
  968. package/dist/read-only-account-inspect.slack.runtime-9-jpln3q.js +0 -116
  969. package/dist/read-only-account-inspect.telegram.runtime-EKPI1D7n.js +0 -116
  970. package/dist/redact-snapshot-DwJEIVk9.js +0 -2663
  971. package/dist/register.agent-D3YdDirP.js +0 -439
  972. package/dist/register.backup-dR27qCuo.js +0 -625
  973. package/dist/register.configure-BjFhkkka.js +0 -252
  974. package/dist/register.maintenance-DiMQJIOa.js +0 -574
  975. package/dist/register.message-CdZsKYH1.js +0 -709
  976. package/dist/register.onboard-B0rV1eaO.js +0 -192
  977. package/dist/register.setup-wKMvohzo.js +0 -212
  978. package/dist/register.status-health-sessions-BJ68m6pt.js +0 -498
  979. package/dist/register.subclis-CnnrWt2a.js +0 -315
  980. package/dist/register.subclis-lSvTkC6z.js +0 -13
  981. package/dist/replies-BABt9b48.js +0 -110
  982. package/dist/resolve-channels-BqZFl2Ux.js +0 -262
  983. package/dist/resolve-channels-DjQLXb7B.js +0 -226
  984. package/dist/resolve-route-CSHDsa_m.js +0 -538
  985. package/dist/resolve-users-BG6HaSR5.js +0 -143
  986. package/dist/root-help-ohmaCyC_.js +0 -32
  987. package/dist/routes-4k2kpvoT.js +0 -7097
  988. package/dist/rpc-Cnwn4Q6L.js +0 -67
  989. package/dist/run-main-VYlacKA0.js +0 -424
  990. package/dist/runtime-D61jzMiI.d.ts +0 -26
  991. package/dist/runtime-discord-ops.runtime-DafrU-rI.js +0 -9078
  992. package/dist/runtime-slack-ops.runtime-CdXBKXwd.js +0 -4556
  993. package/dist/runtime-telegram-ops.runtime-B12sF7gE.js +0 -133
  994. package/dist/runtime-whatsapp-login.runtime-CqEudH37.js +0 -114
  995. package/dist/runtime-whatsapp-outbound.runtime-D5m2qyn-.js +0 -117
  996. package/dist/sandbox-cli-CHJiEWXB.js +0 -535
  997. package/dist/search-manager-BtNC3-i_.js +0 -16
  998. package/dist/search-manager-C7J7B3_a.js +0 -386
  999. package/dist/secrets-cli-C6yIWBbN.js +0 -2070
  1000. package/dist/security-cli-BVu9BkjD.js +0 -575
  1001. package/dist/send-BSreC7rr.js +0 -631
  1002. package/dist/send-BsLHQG_B.js +0 -1025
  1003. package/dist/send-BuNhp8PH.js +0 -283
  1004. package/dist/send-DOCswVar.js +0 -100
  1005. package/dist/send-Dl0LLErk.js +0 -629
  1006. package/dist/server-node-events-Bq2067EG.js +0 -506
  1007. package/dist/server-y38L7N5H.js +0 -107
  1008. package/dist/sessions-BV8gXURR.js +0 -112
  1009. package/dist/sessions-dl1Kc-Ci.js +0 -218
  1010. package/dist/setup-BSPXdMuK.d.ts +0 -37
  1011. package/dist/setup-DGszQH0_.js +0 -387
  1012. package/dist/setup-binary-C17YnmA8.js +0 -406
  1013. package/dist/setup-browser-CPx-nEsr.js +0 -70
  1014. package/dist/setup-core-BByHN1ME.js +0 -143
  1015. package/dist/setup-core-C0KPlBmL.js +0 -47
  1016. package/dist/setup-core-Cq37G6of.js +0 -166
  1017. package/dist/setup-core-uO84_Y75.js +0 -205
  1018. package/dist/setup-surface-BEMi7Rmb.js +0 -490
  1019. package/dist/setup-wizard-helpers-Ck9wDR0b.d.ts +0 -203
  1020. package/dist/setup.finalize-BzPBa8zW.js +0 -522
  1021. package/dist/setup.gateway-config-DdwkF-8e.js +0 -343
  1022. package/dist/shared-BCw4SKjB.js +0 -96
  1023. package/dist/shared-CjNzsULP.js +0 -75
  1024. package/dist/shared-Cu1BE7ZE.js +0 -298
  1025. package/dist/shared-DSClmyUn.js +0 -182
  1026. package/dist/shared-DyJdGH6y.js +0 -102
  1027. package/dist/signal-Dyv4NZsB.js +0 -114
  1028. package/dist/skills-CbB5b27M.js +0 -853
  1029. package/dist/skills-CnfI7Szw.js +0 -20
  1030. package/dist/skills-cli-CavB1f_3.js +0 -292
  1031. package/dist/skills-install-B1OBdgd0.js +0 -763
  1032. package/dist/skills-status-B3gAmIbW.js +0 -169
  1033. package/dist/skills-status-DrHhFgU9.js +0 -21
  1034. package/dist/slack-BRzqnoAz.js +0 -114
  1035. package/dist/slash-commands.runtime-BK88kgds.js +0 -128
  1036. package/dist/slash-dispatch.runtime-COGywwJE.js +0 -141
  1037. package/dist/slash-skill-commands.runtime-Ti4brxgh.js +0 -116
  1038. package/dist/src-DUR6OQxI.js +0 -1701
  1039. package/dist/status-C6dgQY9a.js +0 -131
  1040. package/dist/status-CNK0Q7QH.js +0 -606
  1041. package/dist/status-DBcX0DSC.js +0 -43
  1042. package/dist/status-DKgFgbwv.js +0 -1599
  1043. package/dist/status-Wn5lhNAc.js +0 -126
  1044. package/dist/status-json-D2EkWqAl.js +0 -288
  1045. package/dist/status.link-channel-D3ULIdEa.js +0 -143
  1046. package/dist/status.scan.deps.runtime-BsjWTAm4.js +0 -126
  1047. package/dist/status.scan.runtime-D4HbzROD.js +0 -119
  1048. package/dist/status.summary-C3YxPrDK.js +0 -592
  1049. package/dist/status.summary.runtime-DAkXPSaK.js +0 -118
  1050. package/dist/status.update-B4NnN9P1.js +0 -77
  1051. package/dist/subagent-orphan-recovery-QiQEBv36.js +0 -307
  1052. package/dist/subagent-registry-runtime-BJatPQFK.js +0 -111
  1053. package/dist/subscription-BhZORXN9.js +0 -100
  1054. package/dist/subscription-QEUjQRMv.js +0 -33
  1055. package/dist/subscription-cli-HrULlAgc.js +0 -134
  1056. package/dist/synology-chat-DB76GWMN.js +0 -297
  1057. package/dist/system-cli-D8jDwWuL.js +0 -94
  1058. package/dist/telegram-BHiiqKkQ.js +0 -114
  1059. package/dist/text-chunking-Baonm9Lu.js +0 -84
  1060. package/dist/text-chunking-DzB11ONk.d.ts +0 -79
  1061. package/dist/tlon-DLESxNgD.js +0 -433
  1062. package/dist/tui-C75zi2Cl.js +0 -3834
  1063. package/dist/tui-cli-DFwx5e6i.js +0 -137
  1064. package/dist/types-BKldC9YN.d.ts +0 -22692
  1065. package/dist/types-MeyueBE0.d.ts +0 -45
  1066. package/dist/types.base-Cw0-zIvE.d.ts +0 -188
  1067. package/dist/ui-B55NOIB6.js +0 -31
  1068. package/dist/update--ojavYQ4.js +0 -1036
  1069. package/dist/update-cli-Cvj5aWYM.js +0 -1503
  1070. package/dist/update-offset-store-upatuWwX.js +0 -112
  1071. package/dist/update-runner-DHkY_-76.js +0 -1496
  1072. package/dist/upsert-with-lock-C171GLaR.js +0 -33
  1073. package/dist/usage-N3bxnbmt.js +0 -115
  1074. package/dist/web-RdvT7gKa.js +0 -112
  1075. package/dist/web-shared-C2qHVxw1.d.ts +0 -45
  1076. package/dist/webhook-request-guards-CosLyl01.d.ts +0 -76
  1077. package/dist/webhook-targets-Bfnag-du.js +0 -181
  1078. package/dist/webhook-targets-DP_EkQa4.d.ts +0 -106
  1079. package/dist/webhooks-cli-ZpnXrq7G.js +0 -350
  1080. package/dist/whatsapp-DNTAyZHt.js +0 -114
  1081. package/dist/whatsapp-actions-o1zKQzKZ.js +0 -167
  1082. package/dist/workspace-CpWi5wPr.js +0 -479
  1083. package/dist/workspace-Ii7aRS7c.js +0 -289
  1084. package/dist/workspace-dirs-x10McA9t.js +0 -2003
  1085. package/dist/zalo-C9OQRYRw.d.ts +0 -9
  1086. package/dist/zalo-zm_bYCKg.js +0 -415
  1087. package/dist/zalouser-CvVEUvc5.js +0 -30911
  1088. /package/dist/{account-id-B3YSn4hl.d.ts → account-id-B8ce6G_4.d.ts} +0 -0
  1089. /package/dist/{acpx-CnNv70m2.d.ts → acpx-Ci50I9T2.d.ts} +0 -0
  1090. /package/dist/{agent-media-payload-DE2pEcsz.d.ts → agent-media-payload-en-gS5p6.d.ts} +0 -0
  1091. /package/dist/{allow-from-DPpHnT2A.d.ts → allow-from-cMeQ47Ot.d.ts} +0 -0
  1092. /package/dist/{allowlist-resolution-CLFiZ6nE.d.ts → allowlist-resolution-DoAWbfXV.d.ts} +0 -0
  1093. /package/dist/{bluebubbles-Duhu-Jer.d.ts → bluebubbles-C6yYmUl0.d.ts} +0 -0
  1094. /package/dist/{boolean-param-BhFjB3gp.d.ts → boolean-param-CdO2TFTk.d.ts} +0 -0
  1095. /package/dist/{channel-config-schema-DnnVMdjR.d.ts → channel-config-schema-Chp38wel.d.ts} +0 -0
  1096. /package/dist/{channel-policy-Baq-Z06b.d.ts → channel-policy-g2h6AbYQ.d.ts} +0 -0
  1097. /package/dist/{chat-type-DpiBgwuG.d.ts → chat-type-BLt59pPT.d.ts} +0 -0
  1098. /package/dist/{command-format-vi4xq8e8.d.ts → command-format-BDJC05Jp.d.ts} +0 -0
  1099. /package/dist/{diffs-DK7fVSDo.d.ts → diffs-D_iNKCyn.d.ts} +0 -0
  1100. /package/dist/{directory-runtime-BTLPaysA.d.ts → directory-runtime-DhMex6HY.d.ts} +0 -0
  1101. /package/dist/{exec-C01wtBHu.d.ts → exec-pjfUY4KM.d.ts} +0 -0
  1102. /package/dist/{gaxios-fetch-compat-wZ38b3w3.js → gaxios-fetch-compat-B_vtINdV.js} +0 -0
  1103. /package/dist/{history-CwXuP2TW.d.ts → history-aqSS5VGQ.d.ts} +0 -0
  1104. /package/dist/{inbound-envelope-SggrBs9m.d.ts → inbound-envelope-C5hWuZod.d.ts} +0 -0
  1105. /package/dist/{index-apAZHsDo.d.ts → index-DXVQFYGX.d.ts} +0 -0
  1106. /package/dist/{json-store-r75IZGk9.d.ts → json-store-UnqQ5aV3.d.ts} +0 -0
  1107. /package/dist/{keyed-async-queue-DHIr7yNe.d.ts → keyed-async-queue-guucpLw3.d.ts} +0 -0
  1108. /package/dist/{links-HeQ3r_L0.d.ts → links-Bar0meEK.d.ts} +0 -0
  1109. /package/dist/{markdown-to-line-CDb4Jy3V.d.ts → markdown-to-line-D8uH_KOj.d.ts} +0 -0
  1110. /package/dist/{mattermost-DtCsxpgg.d.ts → mattermost-xl7jAFJL.d.ts} +0 -0
  1111. /package/dist/{net-BATPDwdQ.d.ts → net-rGOKGds6.d.ts} +0 -0
  1112. /package/dist/{nextcloud-talk-Bb2wHOwp.d.ts → nextcloud-talk-De2CZ9dV.d.ts} +0 -0
  1113. /package/dist/{oauth-utils-u567CLT0.d.ts → oauth-utils-DzN1AlEH.d.ts} +0 -0
  1114. /package/dist/{parse-finite-number-l3tNlrZh.d.ts → parse-finite-number-odgyqhi0.d.ts} +0 -0
  1115. /package/dist/{provider-usage.types-C6061OVN.d.ts → provider-usage.types-EDE9o-H_.d.ts} +0 -0
  1116. /package/dist/{reply-history-BDsFnZFl.d.ts → reply-history-CVuU31xe.d.ts} +0 -0
  1117. /package/dist/{reply-payload-CCvM4W9u.d.ts → reply-payload-CHkpBYwL.d.ts} +0 -0
  1118. /package/dist/{request-url-C54l4-xC.d.ts → request-url-DHisbiHY.d.ts} +0 -0
  1119. /package/dist/{run-command-D3RqWcHu.d.ts → run-command-y0Cndsb1.d.ts} +0 -0
  1120. /package/dist/{secret-input-schema-BLBt-NAP.d.ts → secret-input-schema-b1vpYDQN.d.ts} +0 -0
  1121. /package/dist/{session-key-BQ2-bR-9.d.ts → session-key-DTHQl57f.d.ts} +0 -0
  1122. /package/dist/{ssh-config-C4mcH9Ly.js → ssh-config-hEHBfU2_.js} +0 -0
  1123. /package/dist/{testing-DLkhGsoz.d.ts → testing-DszuZXgK.d.ts} +0 -0
  1124. /package/dist/{thinking-DRkjX18p.d.ts → thinking-IwXTGSeT.d.ts} +0 -0
  1125. /package/dist/{tool-send-CMMD1uDu.d.ts → tool-send-DWHRmKpz.d.ts} +0 -0
  1126. /package/dist/{vllm-defaults-CcGuf4hL.d.ts → vllm-defaults-CrxZgE6-.d.ts} +0 -0
  1127. /package/dist/{wait-Daog8bxM.d.ts → wait-wDWw_MTI.d.ts} +0 -0
  1128. /package/dist/{webhook-memory-guards-C5MrExwT.d.ts → webhook-memory-guards-DreORuJy.d.ts} +0 -0
  1129. /package/dist/{windows-spawn-j2l-dqu8.d.ts → windows-spawn-BIzH92x2.d.ts} +0 -0
  1130. /package/dist/{zod-schema.agent-runtime-krMrBnIn.d.ts → zod-schema.agent-runtime-CP2rmis3.d.ts} +0 -0
  1131. /package/dist/{zod-schema.core-BNDieZDZ.d.ts → zod-schema.core-Foi1tYwi.d.ts} +0 -0
@@ -1,1599 +0,0 @@
1
- import { u as resolveGatewayPort } from "./paths-D6AgsMTU.js";
2
- import { n as isRich, r as theme } from "./theme-BSXzMzAA.js";
3
- import { n as info } from "./globals-DESrFYmC.js";
4
- import { Bu as readRestartSentinel, Vu as summarizeRestartSentinel, rC as loadSessionStore, rc as getRemoteSkillEligibility, yu as resolveCommandSecretRefsViaGateway } from "./auth-profiles-1kPLbBwI.js";
5
- import { p as resolveAgentWorkspaceDir } from "./agent-scope-C-YmLnnb.js";
6
- import { r as runExec } from "./exec-CvEtXqTZ.js";
7
- import { t as resolvemoldClawPackageRoot } from "./moldclaw-root-D6PbhbZk.js";
8
- import { d as readBestEffortConfig, f as readConfigFileSnapshot } from "./io-CMfWWPXQ.js";
9
- import { n as VERSION } from "./version-T8nMYUnU.js";
10
- import { E as readTailscaleStatusJson } from "./config-BwkGZjD5.js";
11
- import { t as formatCliCommand } from "./command-format-C_z0Ru-7.js";
12
- import { a as inspectPortUsage, c as formatPortDiagnostics } from "./ports-Ca74cFb2.js";
13
- import { L as hasPotentialConfiguredChannels, O as formatDurationPrecise, n as createLazyRuntimeSurface } from "./lazy-runtime-BoGB4usD.js";
14
- import { l as resolveStorePath } from "./paths-ApLcu1Uu.js";
15
- import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-ByEzDJ1_.js";
16
- import { t as resolveMemorySearchConfig } from "./memory-search-Cv1SBrn7.js";
17
- import { t as formatConfigIssueLine } from "./issue-format-B0SI57Es.js";
18
- import { c as getStatusCommandSecretTargetIds } from "./command-secret-targets-BFF4x_RB.js";
19
- import { n as formatTimeAgo } from "./format-relative-B1Jfwsqe.js";
20
- import { n as withProgress } from "./progress-Cwq59vgZ.js";
21
- import { r as normalizeControlUiBasePath } from "./control-ui-shared-CA77PTml.js";
22
- import { g as resolveControlUiLinks } from "./onboard-helpers-BK0Hsb7Y.js";
23
- import { c as resolveGatewayLogPaths } from "./launchd-DTK8FAln.js";
24
- import { n as resolveGatewayService } from "./service-D-iBQb7Y.js";
25
- import { t as probeGateway } from "./probe-DH6gDw-h.js";
26
- import { t as readLastGatewayErrorLine } from "./diagnostics-BKzgYuW7.js";
27
- import { n as resolveGatewayProbeAuthSafe } from "./probe-auth-COfgCble.js";
28
- import { t as buildWorkspaceSkillStatus } from "./skills-status-B3gAmIbW.js";
29
- import { n as renderTable, t as getTerminalTableWidth } from "./table-BldgNDVQ.js";
30
- import { a as resolveSharedMemoryStatusSnapshot, c as getNodeDaemonStatusSummary, d as formatTokensCompact, f as readServiceStatusSummary, h as pickGatewaySelfPresence, i as resolveMemoryPluginStatus, l as formatDuration, m as resolveOsSummary, n as buildTailscaleHttpsUrl, o as getAgentLocalStatuses$1, p as listGatewayAgentsBasic, r as resolveGatewayProbeSnapshot, s as getDaemonStatusSummary, t as getStatusSummary, u as formatKTokens } from "./status.summary-C3YxPrDK.js";
31
- import { t as formatHealthChannelLines } from "./health-BEjzWwaB.js";
32
- import { h as resolveUpdateChannelDisplay, i as formatGitInstallLabel, p as normalizeUpdateChannel, t as checkUpdateStatus } from "./update-check-DpjrnnTI.js";
33
- import { t as resolveNodeService } from "./node-service-D1P2CBtD.js";
34
- import { t as collectChannelStatusIssues } from "./channels-status-issues-RDmzovJU.js";
35
- import { n as redactSecrets, t as formatGatewayAuthUsed } from "./format-BcYacdHi.js";
36
- import { t as buildChannelsTable } from "./channels-BnPudfyx.js";
37
- import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, r as getUpdateCheckResult, t as formatUpdateAvailableHint } from "./status.update-B4NnN9P1.js";
38
- import { t as shortenText } from "./text-format-BvjJ5XsY.js";
39
- import path from "node:path";
40
- import fs from "node:fs/promises";
41
- //#region src/memory/status-format.ts
42
- function resolveMemoryVectorState(vector) {
43
- if (!vector.enabled) return {
44
- tone: "muted",
45
- state: "disabled"
46
- };
47
- if (vector.available === true) return {
48
- tone: "ok",
49
- state: "ready"
50
- };
51
- if (vector.available === false) return {
52
- tone: "warn",
53
- state: "unavailable"
54
- };
55
- return {
56
- tone: "muted",
57
- state: "unknown"
58
- };
59
- }
60
- function resolveMemoryFtsState(fts) {
61
- if (!fts.enabled) return {
62
- tone: "muted",
63
- state: "disabled"
64
- };
65
- return fts.available ? {
66
- tone: "ok",
67
- state: "ready"
68
- } : {
69
- tone: "warn",
70
- state: "unavailable"
71
- };
72
- }
73
- function resolveMemoryCacheSummary(cache) {
74
- if (!cache.enabled) return {
75
- tone: "muted",
76
- text: "cache off"
77
- };
78
- return {
79
- tone: "ok",
80
- text: `cache on${typeof cache.entries === "number" ? ` (${cache.entries})` : ""}`
81
- };
82
- }
83
- //#endregion
84
- //#region src/commands/status-all/agents.ts
85
- async function fileExists(p) {
86
- try {
87
- await fs.access(p);
88
- return true;
89
- } catch {
90
- return false;
91
- }
92
- }
93
- async function getAgentLocalStatuses(cfg) {
94
- const agentList = listGatewayAgentsBasic(cfg);
95
- const now = Date.now();
96
- const agents = await Promise.all(agentList.agents.map(async (agent) => {
97
- const workspaceDir = (() => {
98
- try {
99
- return resolveAgentWorkspaceDir(cfg, agent.id);
100
- } catch {
101
- return null;
102
- }
103
- })();
104
- const bootstrapPending = workspaceDir != null ? await fileExists(path.join(workspaceDir, "BOOTSTRAP.md")) : null;
105
- const sessionsPath = resolveStorePath(cfg.session?.store, { agentId: agent.id });
106
- const store = (() => {
107
- try {
108
- return loadSessionStore(sessionsPath);
109
- } catch {
110
- return {};
111
- }
112
- })();
113
- const updatedAt = Object.values(store).reduce((max, entry) => Math.max(max, entry?.updatedAt ?? 0), 0);
114
- const lastUpdatedAt = updatedAt > 0 ? updatedAt : null;
115
- const lastActiveAgeMs = lastUpdatedAt ? now - lastUpdatedAt : null;
116
- const sessionsCount = Object.keys(store).filter((k) => k !== "global" && k !== "unknown").length;
117
- return {
118
- id: agent.id,
119
- name: agent.name,
120
- workspaceDir,
121
- bootstrapPending,
122
- sessionsPath,
123
- sessionsCount,
124
- lastUpdatedAt,
125
- lastActiveAgeMs
126
- };
127
- }));
128
- const totalSessions = agents.reduce((sum, a) => sum + a.sessionsCount, 0);
129
- const bootstrapPendingCount = agents.reduce((sum, a) => sum + (a.bootstrapPending ? 1 : 0), 0);
130
- return {
131
- defaultId: agentList.defaultId,
132
- agents,
133
- totalSessions,
134
- bootstrapPendingCount
135
- };
136
- }
137
- //#endregion
138
- //#region src/commands/status-all/gateway.ts
139
- async function readFileTailLines(filePath, maxLines) {
140
- const raw = await fs.readFile(filePath, "utf8").catch(() => "");
141
- if (!raw.trim()) return [];
142
- const lines = raw.replace(/\r/g, "").split("\n");
143
- return lines.slice(Math.max(0, lines.length - maxLines)).map((line) => line.trimEnd()).filter((line) => line.trim().length > 0);
144
- }
145
- function countMatches(haystack, needle) {
146
- if (!haystack || !needle) return 0;
147
- return haystack.split(needle).length - 1;
148
- }
149
- function shorten(message, maxLen) {
150
- const cleaned = message.replace(/\s+/g, " ").trim();
151
- if (cleaned.length <= maxLen) return cleaned;
152
- return `${cleaned.slice(0, Math.max(0, maxLen - 1))}…`;
153
- }
154
- function normalizeGwsLine(line) {
155
- return line.replace(/\s+runId=[^\s]+/g, "").replace(/\s+conn=[^\s]+/g, "").replace(/\s+id=[^\s]+/g, "").replace(/\s+error=Error:.*$/g, "").trim();
156
- }
157
- function consumeJsonBlock(lines, startIndex) {
158
- const startLine = lines[startIndex] ?? "";
159
- const braceAt = startLine.indexOf("{");
160
- if (braceAt < 0) return null;
161
- const parts = [startLine.slice(braceAt)];
162
- let depth = countMatches(parts[0] ?? "", "{") - countMatches(parts[0] ?? "", "}");
163
- let i = startIndex;
164
- while (depth > 0 && i + 1 < lines.length) {
165
- i += 1;
166
- const next = lines[i] ?? "";
167
- parts.push(next);
168
- depth += countMatches(next, "{") - countMatches(next, "}");
169
- }
170
- return {
171
- json: parts.join("\n"),
172
- endIndex: i
173
- };
174
- }
175
- function summarizeLogTail(rawLines, opts) {
176
- const maxLines = Math.max(6, opts?.maxLines ?? 26);
177
- const out = [];
178
- const groups = /* @__PURE__ */ new Map();
179
- const addGroup = (key, base) => {
180
- const existing = groups.get(key);
181
- if (existing) {
182
- existing.count += 1;
183
- return;
184
- }
185
- groups.set(key, {
186
- count: 1,
187
- index: out.length,
188
- base
189
- });
190
- out.push(base);
191
- };
192
- const addLine = (line) => {
193
- const trimmed = line.trimEnd();
194
- if (!trimmed) return;
195
- out.push(trimmed);
196
- };
197
- const lines = rawLines.map((line) => line.trimEnd()).filter(Boolean);
198
- for (let i = 0; i < lines.length; i += 1) {
199
- const line = lines[i] ?? "";
200
- const trimmedStart = line.trimStart();
201
- if ((trimmedStart.startsWith("\"") || trimmedStart === "}" || trimmedStart === "{" || trimmedStart.startsWith("}") || trimmedStart.startsWith("{")) && !trimmedStart.startsWith("[") && !trimmedStart.startsWith("#")) continue;
202
- const tokenRefresh = line.match(/^\[([^\]]+)\]\s+Token refresh failed:\s*(\d+)\s*(\{)?\s*$/);
203
- if (tokenRefresh) {
204
- const tag = tokenRefresh[1] ?? "unknown";
205
- const status = tokenRefresh[2] ?? "unknown";
206
- const block = consumeJsonBlock(lines, i);
207
- if (block) {
208
- i = block.endIndex;
209
- const parsed = (() => {
210
- try {
211
- return JSON.parse(block.json);
212
- } catch {
213
- return null;
214
- }
215
- })();
216
- const code = parsed?.error?.code?.trim() || null;
217
- const msg = parsed?.error?.message?.trim() || null;
218
- const msgShort = msg ? msg.toLowerCase().includes("signing in again") ? "re-auth required" : shorten(msg, 52) : null;
219
- const base = `[${tag}] token refresh ${status}${code ? ` ${code}` : ""}${msgShort ? ` · ${msgShort}` : ""}`;
220
- addGroup(`token:${tag}:${status}:${code ?? ""}:${msgShort ?? ""}`, base);
221
- continue;
222
- }
223
- }
224
- const embedded = line.match(/^Embedded agent failed before reply:\s+OAuth token refresh failed for ([^:]+):/);
225
- if (embedded) {
226
- const provider = embedded[1]?.trim() || "unknown";
227
- addGroup(`embedded:${provider}`, `Embedded agent: OAuth token refresh failed (${provider})`);
228
- continue;
229
- }
230
- if (line.startsWith("[gws]") && line.includes("errorCode=UNAVAILABLE") && line.includes("OAuth token refresh failed")) {
231
- const normalized = normalizeGwsLine(line);
232
- addGroup(`gws:${normalized}`, normalized);
233
- continue;
234
- }
235
- addLine(line);
236
- }
237
- for (const g of groups.values()) {
238
- if (g.count <= 1) continue;
239
- out[g.index] = `${g.base} ×${g.count}`;
240
- }
241
- const deduped = [];
242
- for (const line of out) {
243
- if (deduped[deduped.length - 1] === line) continue;
244
- deduped.push(line);
245
- }
246
- if (deduped.length <= maxLines) return deduped;
247
- const head = Math.min(6, Math.floor(maxLines / 3));
248
- const tail = Math.max(1, maxLines - head - 1);
249
- return [
250
- ...deduped.slice(0, head),
251
- `… ${deduped.length - head - tail} lines omitted …`,
252
- ...deduped.slice(-tail)
253
- ];
254
- }
255
- //#endregion
256
- //#region src/commands/status-all/channel-issues.ts
257
- function groupChannelIssuesByChannel(issues) {
258
- const byChannel = /* @__PURE__ */ new Map();
259
- for (const issue of issues) {
260
- const key = issue.channel;
261
- const list = byChannel.get(key);
262
- if (list) list.push(issue);
263
- else byChannel.set(key, [issue]);
264
- }
265
- return byChannel;
266
- }
267
- //#endregion
268
- //#region src/commands/status-all/diagnosis.ts
269
- async function appendStatusAllDiagnosis(params) {
270
- const { lines, muted, ok, warn, fail } = params;
271
- const emitCheck = (label, status) => {
272
- const icon = status === "ok" ? ok("✓") : status === "warn" ? warn("!") : fail("✗");
273
- const colored = status === "ok" ? ok(label) : status === "warn" ? warn(label) : fail(label);
274
- lines.push(`${icon} ${colored}`);
275
- };
276
- lines.push("");
277
- lines.push(muted("Gateway connection details:"));
278
- for (const line of redactSecrets(params.connectionDetailsForReport).split("\n").map((l) => l.trimEnd())) lines.push(` ${muted(line)}`);
279
- lines.push("");
280
- if (params.snap) {
281
- const status = !params.snap.exists ? "fail" : params.snap.valid ? "ok" : "warn";
282
- emitCheck(`Config: ${params.snap.path ?? "(unknown)"}`, status);
283
- const issues = [...params.snap.legacyIssues ?? [], ...params.snap.issues ?? []];
284
- const uniqueIssues = issues.filter((issue, index) => issues.findIndex((x) => x.path === issue.path && x.message === issue.message) === index);
285
- for (const issue of uniqueIssues.slice(0, 12)) lines.push(` ${formatConfigIssueLine(issue, "-")}`);
286
- if (uniqueIssues.length > 12) lines.push(` ${muted(`… +${uniqueIssues.length - 12} more`)}`);
287
- } else emitCheck("Config: read failed", "warn");
288
- if (params.remoteUrlMissing) {
289
- lines.push("");
290
- emitCheck("Gateway remote mode misconfigured (gateway.remote.url missing)", "warn");
291
- lines.push(` ${muted("Fix: set gateway.remote.url, or set gateway.mode=local.")}`);
292
- }
293
- emitCheck(`Secret diagnostics (${params.secretDiagnostics.length})`, params.secretDiagnostics.length === 0 ? "ok" : "warn");
294
- for (const diagnostic of params.secretDiagnostics.slice(0, 10)) lines.push(` - ${muted(redactSecrets(diagnostic))}`);
295
- if (params.secretDiagnostics.length > 10) lines.push(` ${muted(`… +${params.secretDiagnostics.length - 10} more`)}`);
296
- if (params.sentinel?.payload) {
297
- emitCheck("Restart sentinel present", "warn");
298
- lines.push(` ${muted(`${summarizeRestartSentinel(params.sentinel.payload)} · ${formatTimeAgo(Date.now() - params.sentinel.payload.ts)}`)}`);
299
- } else emitCheck("Restart sentinel: none", "ok");
300
- const lastErrClean = params.lastErr?.trim() ?? "";
301
- const isTrivialLastErr = lastErrClean.length < 8 || lastErrClean === "}" || lastErrClean === "{";
302
- if (lastErrClean && !isTrivialLastErr) {
303
- lines.push("");
304
- lines.push(muted("Gateway last log line:"));
305
- lines.push(` ${muted(redactSecrets(lastErrClean))}`);
306
- }
307
- if (params.portUsage) {
308
- const portOk = params.portUsage.listeners.length === 0;
309
- emitCheck(`Port ${params.port}`, portOk ? "ok" : "warn");
310
- if (!portOk) for (const line of formatPortDiagnostics(params.portUsage)) lines.push(` ${muted(line)}`);
311
- }
312
- {
313
- const backend = params.tailscale.backendState ?? "unknown";
314
- const okBackend = backend === "Running";
315
- const hasDns = Boolean(params.tailscale.dnsName);
316
- emitCheck(params.tailscaleMode === "off" ? `Tailscale: off · ${backend}${params.tailscale.dnsName ? ` · ${params.tailscale.dnsName}` : ""}` : `Tailscale: ${params.tailscaleMode} · ${backend}${params.tailscale.dnsName ? ` · ${params.tailscale.dnsName}` : ""}`, okBackend && (params.tailscaleMode === "off" || hasDns) ? "ok" : "warn");
317
- if (params.tailscale.error) lines.push(` ${muted(`error: ${params.tailscale.error}`)}`);
318
- if (params.tailscale.ips.length > 0) lines.push(` ${muted(`ips: ${params.tailscale.ips.slice(0, 3).join(", ")}${params.tailscale.ips.length > 3 ? "…" : ""}`)}`);
319
- if (params.tailscaleHttpsUrl) lines.push(` ${muted(`https: ${params.tailscaleHttpsUrl}`)}`);
320
- }
321
- if (params.skillStatus) {
322
- const eligible = params.skillStatus.skills.filter((s) => s.eligible).length;
323
- const missing = params.skillStatus.skills.filter((s) => s.eligible && Object.values(s.missing).some((arr) => arr.length)).length;
324
- emitCheck(`Skills: ${eligible} eligible · ${missing} missing · ${params.skillStatus.workspaceDir}`, missing === 0 ? "ok" : "warn");
325
- }
326
- params.progress.setLabel("Reading logs…");
327
- const logPaths = (() => {
328
- try {
329
- return resolveGatewayLogPaths(process.env);
330
- } catch {
331
- return null;
332
- }
333
- })();
334
- if (logPaths) {
335
- params.progress.setLabel("Reading logs…");
336
- const [stderrTail, stdoutTail] = await Promise.all([readFileTailLines(logPaths.stderrPath, 40).catch(() => []), readFileTailLines(logPaths.stdoutPath, 40).catch(() => [])]);
337
- if (stderrTail.length > 0 || stdoutTail.length > 0) {
338
- lines.push("");
339
- lines.push(muted(`Gateway logs (tail, summarized): ${logPaths.logDir}`));
340
- lines.push(` ${muted(`# stderr: ${logPaths.stderrPath}`)}`);
341
- for (const line of summarizeLogTail(stderrTail, { maxLines: 22 }).map(redactSecrets)) lines.push(` ${muted(line)}`);
342
- lines.push(` ${muted(`# stdout: ${logPaths.stdoutPath}`)}`);
343
- for (const line of summarizeLogTail(stdoutTail, { maxLines: 22 }).map(redactSecrets)) lines.push(` ${muted(line)}`);
344
- }
345
- }
346
- params.progress.tick();
347
- if (params.channelsStatus) {
348
- emitCheck(`Channel issues (${params.channelIssues.length || "none"})`, params.channelIssues.length === 0 ? "ok" : "warn");
349
- for (const issue of params.channelIssues.slice(0, 12)) {
350
- const fixText = issue.fix ? ` · fix: ${issue.fix}` : "";
351
- lines.push(` - ${issue.channel}[${issue.accountId}] ${issue.kind}: ${issue.message}${fixText}`);
352
- }
353
- if (params.channelIssues.length > 12) lines.push(` ${muted(`… +${params.channelIssues.length - 12} more`)}`);
354
- } else emitCheck(`Channel issues skipped (gateway ${params.gatewayReachable ? "query failed" : "unreachable"})`, "warn");
355
- const healthErr = (() => {
356
- if (!params.health || typeof params.health !== "object") return "";
357
- const record = params.health;
358
- if (!("error" in record)) return "";
359
- const value = record.error;
360
- if (!value) return "";
361
- if (typeof value === "string") return value;
362
- try {
363
- return JSON.stringify(value, null, 2);
364
- } catch {
365
- return "[unserializable error]";
366
- }
367
- })();
368
- if (healthErr) {
369
- lines.push("");
370
- lines.push(muted("Gateway health:"));
371
- lines.push(` ${muted(redactSecrets(healthErr))}`);
372
- }
373
- lines.push("");
374
- lines.push(muted("Pasteable debug report. Auth tokens redacted."));
375
- lines.push("Troubleshooting: https://docs.moldclaw.ai/troubleshooting");
376
- lines.push("");
377
- }
378
- //#endregion
379
- //#region src/commands/status-all/report-lines.ts
380
- async function buildStatusAllReportLines(params) {
381
- const rich = isRich();
382
- const heading = (text) => rich ? theme.heading(text) : text;
383
- const ok = (text) => rich ? theme.success(text) : text;
384
- const warn = (text) => rich ? theme.warn(text) : text;
385
- const fail = (text) => rich ? theme.error(text) : text;
386
- const muted = (text) => rich ? theme.muted(text) : text;
387
- const tableWidth = getTerminalTableWidth();
388
- const overview = renderTable({
389
- width: tableWidth,
390
- columns: [{
391
- key: "Item",
392
- header: "Item",
393
- minWidth: 10
394
- }, {
395
- key: "Value",
396
- header: "Value",
397
- flex: true,
398
- minWidth: 24
399
- }],
400
- rows: params.overviewRows
401
- });
402
- const channelRows = params.channels.rows.map((row) => ({
403
- channelId: row.id,
404
- Channel: row.label,
405
- Enabled: row.enabled ? ok("ON") : muted("OFF"),
406
- State: row.state === "ok" ? ok("OK") : row.state === "warn" ? warn("WARN") : row.state === "off" ? muted("OFF") : theme.accentDim("SETUP"),
407
- Detail: row.detail
408
- }));
409
- const channelIssuesByChannel = groupChannelIssuesByChannel(params.channelIssues);
410
- const channelsTable = renderTable({
411
- width: tableWidth,
412
- columns: [
413
- {
414
- key: "Channel",
415
- header: "Channel",
416
- minWidth: 10
417
- },
418
- {
419
- key: "Enabled",
420
- header: "Enabled",
421
- minWidth: 7
422
- },
423
- {
424
- key: "State",
425
- header: "State",
426
- minWidth: 8
427
- },
428
- {
429
- key: "Detail",
430
- header: "Detail",
431
- flex: true,
432
- minWidth: 28
433
- }
434
- ],
435
- rows: channelRows.map((row) => {
436
- const issues = channelIssuesByChannel.get(row.channelId) ?? [];
437
- if (issues.length === 0) return row;
438
- const issue = issues[0];
439
- const suffix = ` · ${warn(`gateway: ${String(issue.message).slice(0, 90)}`)}`;
440
- return {
441
- ...row,
442
- State: warn("WARN"),
443
- Detail: `${row.Detail}${suffix}`
444
- };
445
- })
446
- });
447
- const agentsTable = renderTable({
448
- width: tableWidth,
449
- columns: [
450
- {
451
- key: "Agent",
452
- header: "Agent",
453
- minWidth: 12
454
- },
455
- {
456
- key: "BootstrapFile",
457
- header: "Bootstrap file",
458
- minWidth: 14
459
- },
460
- {
461
- key: "Sessions",
462
- header: "Sessions",
463
- align: "right",
464
- minWidth: 8
465
- },
466
- {
467
- key: "Active",
468
- header: "Active",
469
- minWidth: 10
470
- },
471
- {
472
- key: "Store",
473
- header: "Store",
474
- flex: true,
475
- minWidth: 34
476
- }
477
- ],
478
- rows: params.agentStatus.agents.map((a) => ({
479
- Agent: a.name?.trim() ? `${a.id} (${a.name.trim()})` : a.id,
480
- BootstrapFile: a.bootstrapPending === true ? warn("PRESENT") : a.bootstrapPending === false ? ok("ABSENT") : "unknown",
481
- Sessions: String(a.sessionsCount),
482
- Active: a.lastActiveAgeMs != null ? formatTimeAgo(a.lastActiveAgeMs) : "unknown",
483
- Store: a.sessionsPath
484
- }))
485
- });
486
- const lines = [];
487
- lines.push(heading("moldClaw status --all"));
488
- lines.push("");
489
- lines.push(heading("Overview"));
490
- lines.push(overview.trimEnd());
491
- lines.push("");
492
- lines.push(heading("Channels"));
493
- lines.push(channelsTable.trimEnd());
494
- for (const detail of params.channels.details) {
495
- lines.push("");
496
- lines.push(heading(detail.title));
497
- lines.push(renderTable({
498
- width: tableWidth,
499
- columns: detail.columns.map((c) => ({
500
- key: c,
501
- header: c,
502
- flex: c === "Notes",
503
- minWidth: c === "Notes" ? 28 : 10
504
- })),
505
- rows: detail.rows.map((r) => ({
506
- ...r,
507
- ...r.Status === "OK" ? { Status: ok("OK") } : r.Status === "WARN" ? { Status: warn("WARN") } : {}
508
- }))
509
- }).trimEnd());
510
- }
511
- lines.push("");
512
- lines.push(heading("Agents"));
513
- lines.push(agentsTable.trimEnd());
514
- lines.push("");
515
- lines.push(heading("Diagnosis (read-only)"));
516
- await appendStatusAllDiagnosis({
517
- lines,
518
- progress: params.progress,
519
- muted,
520
- ok,
521
- warn,
522
- fail,
523
- connectionDetailsForReport: params.connectionDetailsForReport,
524
- ...params.diagnosis
525
- });
526
- return lines;
527
- }
528
- //#endregion
529
- //#region src/commands/status-all.ts
530
- async function statusAllCommand(runtime, opts) {
531
- await withProgress({
532
- label: "Scanning status --all…",
533
- total: 11
534
- }, async (progress) => {
535
- progress.setLabel("Loading config…");
536
- const loadedRaw = await readBestEffortConfig();
537
- const { resolvedConfig: cfg, diagnostics: secretDiagnostics } = await resolveCommandSecretRefsViaGateway({
538
- config: loadedRaw,
539
- commandName: "status --all",
540
- targetIds: getStatusCommandSecretTargetIds(),
541
- mode: "read_only_status"
542
- });
543
- const osSummary = resolveOsSummary();
544
- const snap = await readConfigFileSnapshot().catch(() => null);
545
- progress.tick();
546
- progress.setLabel("Checking Tailscale…");
547
- const tailscaleMode = cfg.gateway?.tailscale?.mode ?? "off";
548
- const tailscale = await (async () => {
549
- try {
550
- const parsed = await readTailscaleStatusJson(runExec, { timeoutMs: 1200 });
551
- const backendState = typeof parsed.BackendState === "string" ? parsed.BackendState : null;
552
- const self = typeof parsed.Self === "object" && parsed.Self !== null ? parsed.Self : null;
553
- const dnsNameRaw = self && typeof self.DNSName === "string" ? self.DNSName : null;
554
- return {
555
- ok: true,
556
- backendState,
557
- dnsName: dnsNameRaw ? dnsNameRaw.replace(/\.$/, "") : null,
558
- ips: self && Array.isArray(self.TailscaleIPs) ? self.TailscaleIPs.filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [],
559
- error: null
560
- };
561
- } catch (err) {
562
- return {
563
- ok: false,
564
- backendState: null,
565
- dnsName: null,
566
- ips: [],
567
- error: String(err)
568
- };
569
- }
570
- })();
571
- const tailscaleHttpsUrl = tailscaleMode !== "off" && tailscale.dnsName ? `https://${tailscale.dnsName}${normalizeControlUiBasePath(cfg.gateway?.controlUi?.basePath)}` : null;
572
- progress.tick();
573
- progress.setLabel("Checking for updates…");
574
- const update = await checkUpdateStatus({
575
- root: await resolvemoldClawPackageRoot({
576
- moduleUrl: import.meta.url,
577
- argv1: process.argv[1],
578
- cwd: process.cwd()
579
- }),
580
- timeoutMs: 6500,
581
- fetchGit: true,
582
- includeRegistry: true
583
- });
584
- const channelLabel = resolveUpdateChannelDisplay({
585
- configChannel: normalizeUpdateChannel(cfg.update?.channel),
586
- installKind: update.installKind,
587
- gitTag: update.git?.tag ?? null,
588
- gitBranch: update.git?.branch ?? null
589
- }).label;
590
- const gitLabel = formatGitInstallLabel(update);
591
- progress.tick();
592
- progress.setLabel("Probing gateway…");
593
- const connection = buildGatewayConnectionDetails({ config: cfg });
594
- const isRemoteMode = cfg.gateway?.mode === "remote";
595
- const remoteUrlRaw = typeof cfg.gateway?.remote?.url === "string" ? cfg.gateway.remote.url.trim() : "";
596
- const remoteUrlMissing = isRemoteMode && !remoteUrlRaw;
597
- const gatewayMode = isRemoteMode ? "remote" : "local";
598
- const localProbeAuthResolution = resolveGatewayProbeAuthSafe({
599
- cfg,
600
- mode: "local"
601
- });
602
- const remoteProbeAuthResolution = resolveGatewayProbeAuthSafe({
603
- cfg,
604
- mode: "remote"
605
- });
606
- const probeAuthResolution = isRemoteMode && !remoteUrlMissing ? remoteProbeAuthResolution : localProbeAuthResolution;
607
- const probeAuth = probeAuthResolution.auth;
608
- const gatewayProbe = await probeGateway({
609
- url: connection.url,
610
- auth: probeAuth,
611
- timeoutMs: Math.min(5e3, opts?.timeoutMs ?? 1e4)
612
- }).catch(() => null);
613
- const gatewayReachable = gatewayProbe?.ok === true;
614
- const gatewaySelf = pickGatewaySelfPresence(gatewayProbe?.presence ?? null);
615
- progress.tick();
616
- progress.setLabel("Checking services…");
617
- const readServiceSummary = async (service) => {
618
- try {
619
- const summary = await readServiceStatusSummary(service, service.label);
620
- return {
621
- label: summary.label,
622
- installed: summary.installed,
623
- managedBymoldClaw: summary.managedBymoldClaw,
624
- loaded: summary.loaded,
625
- loadedText: summary.loadedText,
626
- runtime: summary.runtime
627
- };
628
- } catch {
629
- return null;
630
- }
631
- };
632
- const daemon = await readServiceSummary(resolveGatewayService());
633
- const nodeService = await readServiceSummary(resolveNodeService());
634
- progress.tick();
635
- progress.setLabel("Scanning agents…");
636
- const agentStatus = await getAgentLocalStatuses(cfg);
637
- progress.tick();
638
- progress.setLabel("Summarizing channels…");
639
- const channels = await buildChannelsTable(cfg, {
640
- showSecrets: false,
641
- sourceConfig: loadedRaw
642
- });
643
- progress.tick();
644
- const connectionDetailsForReport = (() => {
645
- if (!remoteUrlMissing) return connection.message;
646
- const bindMode = cfg.gateway?.bind ?? "loopback";
647
- return [
648
- "Gateway mode: remote",
649
- "Gateway target: (missing gateway.remote.url)",
650
- `Config: ${snap?.path?.trim() ? snap.path.trim() : "(unknown config path)"}`,
651
- `Bind: ${bindMode}`,
652
- `Local fallback (used for probes): ${connection.url}`,
653
- "Fix: set gateway.remote.url, or set gateway.mode=local."
654
- ].join("\n");
655
- })();
656
- const callOverrides = remoteUrlMissing ? {
657
- url: connection.url,
658
- token: localProbeAuthResolution.auth.token,
659
- password: localProbeAuthResolution.auth.password
660
- } : {};
661
- progress.setLabel("Querying gateway…");
662
- const health = gatewayReachable ? await callGateway({
663
- config: cfg,
664
- method: "health",
665
- timeoutMs: Math.min(8e3, opts?.timeoutMs ?? 1e4),
666
- ...callOverrides
667
- }).catch((err) => ({ error: String(err) })) : { error: gatewayProbe?.error ?? "gateway unreachable" };
668
- const channelsStatus = gatewayReachable ? await callGateway({
669
- config: cfg,
670
- method: "channels.status",
671
- params: {
672
- probe: false,
673
- timeoutMs: opts?.timeoutMs ?? 1e4
674
- },
675
- timeoutMs: Math.min(8e3, opts?.timeoutMs ?? 1e4),
676
- ...callOverrides
677
- }).catch(() => null) : null;
678
- const channelIssues = channelsStatus ? collectChannelStatusIssues(channelsStatus) : [];
679
- progress.tick();
680
- progress.setLabel("Checking local state…");
681
- const sentinel = await readRestartSentinel().catch(() => null);
682
- const lastErr = await readLastGatewayErrorLine(process.env).catch(() => null);
683
- const port = resolveGatewayPort(cfg);
684
- const portUsage = await inspectPortUsage(port).catch(() => null);
685
- progress.tick();
686
- const defaultWorkspace = agentStatus.agents.find((a) => a.id === agentStatus.defaultId)?.workspaceDir ?? agentStatus.agents[0]?.workspaceDir ?? null;
687
- const skillStatus = defaultWorkspace != null ? (() => {
688
- try {
689
- return buildWorkspaceSkillStatus(defaultWorkspace, {
690
- config: cfg,
691
- eligibility: { remote: getRemoteSkillEligibility() }
692
- });
693
- } catch {
694
- return null;
695
- }
696
- })() : null;
697
- const dashboard = cfg.gateway?.controlUi?.enabled ?? true ? resolveControlUiLinks({
698
- port,
699
- bind: cfg.gateway?.bind,
700
- customBindHost: cfg.gateway?.customBindHost,
701
- basePath: cfg.gateway?.controlUi?.basePath
702
- }).httpUrl : null;
703
- const updateLine = formatUpdateOneLiner(update).replace(/^Update:\s*/i, "");
704
- const gatewayTarget = remoteUrlMissing ? `fallback ${connection.url}` : connection.url;
705
- const gatewayStatus = gatewayReachable ? `reachable ${formatDurationPrecise(gatewayProbe?.connectLatencyMs ?? 0)}` : gatewayProbe?.error ? `unreachable (${gatewayProbe.error})` : "unreachable";
706
- const gatewayAuth = gatewayReachable ? ` · auth ${formatGatewayAuthUsed(probeAuth)}` : "";
707
- const gatewaySelfLine = gatewaySelf?.host || gatewaySelf?.ip || gatewaySelf?.version || gatewaySelf?.platform ? [
708
- gatewaySelf.host ? gatewaySelf.host : null,
709
- gatewaySelf.ip ? `(${gatewaySelf.ip})` : null,
710
- gatewaySelf.version ? `app ${gatewaySelf.version}` : null,
711
- gatewaySelf.platform ? gatewaySelf.platform : null
712
- ].filter(Boolean).join(" ") : null;
713
- const aliveThresholdMs = 10 * 6e4;
714
- const aliveAgents = agentStatus.agents.filter((a) => a.lastActiveAgeMs != null && a.lastActiveAgeMs <= aliveThresholdMs).length;
715
- const lines = await buildStatusAllReportLines({
716
- progress,
717
- overviewRows: [
718
- {
719
- Item: "Version",
720
- Value: VERSION
721
- },
722
- {
723
- Item: "OS",
724
- Value: osSummary.label
725
- },
726
- {
727
- Item: "Node",
728
- Value: process.versions.node
729
- },
730
- {
731
- Item: "Config",
732
- Value: snap?.path?.trim() ? snap.path.trim() : "(unknown config path)"
733
- },
734
- dashboard ? {
735
- Item: "Dashboard",
736
- Value: dashboard
737
- } : {
738
- Item: "Dashboard",
739
- Value: "disabled"
740
- },
741
- {
742
- Item: "Tailscale",
743
- Value: tailscaleMode === "off" ? `off${tailscale.backendState ? ` · ${tailscale.backendState}` : ""}${tailscale.dnsName ? ` · ${tailscale.dnsName}` : ""}` : tailscale.dnsName && tailscaleHttpsUrl ? `${tailscaleMode} · ${tailscale.backendState ?? "unknown"} · ${tailscale.dnsName} · ${tailscaleHttpsUrl}` : `${tailscaleMode} · ${tailscale.backendState ?? "unknown"} · magicdns unknown`
744
- },
745
- {
746
- Item: "Channel",
747
- Value: channelLabel
748
- },
749
- ...gitLabel ? [{
750
- Item: "Git",
751
- Value: gitLabel
752
- }] : [],
753
- {
754
- Item: "Update",
755
- Value: updateLine
756
- },
757
- {
758
- Item: "Gateway",
759
- Value: `${gatewayMode}${remoteUrlMissing ? " (remote.url missing)" : ""} · ${gatewayTarget} (${connection.urlSource}) · ${gatewayStatus}${gatewayAuth}`
760
- },
761
- ...probeAuthResolution.warning ? [{
762
- Item: "Gateway auth warning",
763
- Value: probeAuthResolution.warning
764
- }] : [],
765
- {
766
- Item: "Security",
767
- Value: `Run: ${formatCliCommand("moldclaw security audit --deep")}`
768
- },
769
- gatewaySelfLine ? {
770
- Item: "Gateway self",
771
- Value: gatewaySelfLine
772
- } : {
773
- Item: "Gateway self",
774
- Value: "unknown"
775
- },
776
- daemon ? {
777
- Item: "Gateway service",
778
- Value: !daemon.installed ? `${daemon.label} not installed` : `${daemon.label} ${daemon.managedBymoldClaw ? "installed · " : ""}${daemon.loadedText}${daemon.runtime?.status ? ` · ${daemon.runtime.status}` : ""}${daemon.runtime?.pid ? ` (pid ${daemon.runtime.pid})` : ""}`
779
- } : {
780
- Item: "Gateway service",
781
- Value: "unknown"
782
- },
783
- nodeService ? {
784
- Item: "Node service",
785
- Value: !nodeService.installed ? `${nodeService.label} not installed` : `${nodeService.label} ${nodeService.managedBymoldClaw ? "installed · " : ""}${nodeService.loadedText}${nodeService.runtime?.status ? ` · ${nodeService.runtime.status}` : ""}${nodeService.runtime?.pid ? ` (pid ${nodeService.runtime.pid})` : ""}`
786
- } : {
787
- Item: "Node service",
788
- Value: "unknown"
789
- },
790
- {
791
- Item: "Agents",
792
- Value: `${agentStatus.agents.length} total · ${agentStatus.bootstrapPendingCount} bootstrapping · ${aliveAgents} active · ${agentStatus.totalSessions} sessions`
793
- },
794
- {
795
- Item: "Secrets",
796
- Value: secretDiagnostics.length > 0 ? `${secretDiagnostics.length} diagnostic${secretDiagnostics.length === 1 ? "" : "s"}` : "none"
797
- }
798
- ],
799
- channels,
800
- channelIssues: channelIssues.map((issue) => ({
801
- channel: issue.channel,
802
- message: issue.message
803
- })),
804
- agentStatus,
805
- connectionDetailsForReport,
806
- diagnosis: {
807
- snap,
808
- remoteUrlMissing,
809
- secretDiagnostics,
810
- sentinel,
811
- lastErr,
812
- port,
813
- portUsage,
814
- tailscaleMode,
815
- tailscale,
816
- tailscaleHttpsUrl,
817
- skillStatus,
818
- channelsStatus,
819
- channelIssues,
820
- gatewayReachable,
821
- health
822
- }
823
- });
824
- progress.setLabel("Rendering…");
825
- runtime.log(lines.join("\n"));
826
- progress.tick();
827
- });
828
- }
829
- //#endregion
830
- //#region src/commands/status.scan.ts
831
- let pluginRegistryModulePromise;
832
- let statusScanDepsRuntimeModulePromise;
833
- function loadPluginRegistryModule() {
834
- pluginRegistryModulePromise ??= import("./plugin-registry-Cy8biwnn.js");
835
- return pluginRegistryModulePromise;
836
- }
837
- const loadStatusScanRuntimeModule = createLazyRuntimeSurface(() => import("./status.scan.runtime-D4HbzROD.js"), ({ statusScanRuntime }) => statusScanRuntime);
838
- function loadStatusScanDepsRuntimeModule() {
839
- statusScanDepsRuntimeModulePromise ??= import("./status.scan.deps.runtime-BsjWTAm4.js");
840
- return statusScanDepsRuntimeModulePromise;
841
- }
842
- function deferResult(promise) {
843
- return promise.then((value) => ({
844
- ok: true,
845
- value
846
- }), (error) => ({
847
- ok: false,
848
- error
849
- }));
850
- }
851
- function unwrapDeferredResult(result) {
852
- if (!result.ok) throw result.error;
853
- return result.value;
854
- }
855
- async function resolveChannelsStatus(params) {
856
- if (!params.gatewayReachable) return null;
857
- return await callGateway({
858
- config: params.cfg,
859
- method: "channels.status",
860
- params: {
861
- probe: false,
862
- timeoutMs: Math.min(8e3, params.opts.timeoutMs ?? 1e4)
863
- },
864
- timeoutMs: Math.min(params.opts.all ? 5e3 : 2500, params.opts.timeoutMs ?? 1e4)
865
- }).catch(() => null);
866
- }
867
- async function resolveMemoryStatusSnapshot(params) {
868
- const { getMemorySearchManager } = await loadStatusScanDepsRuntimeModule();
869
- return await resolveSharedMemoryStatusSnapshot({
870
- cfg: params.cfg,
871
- agentStatus: params.agentStatus,
872
- memoryPlugin: params.memoryPlugin,
873
- resolveMemoryConfig: resolveMemorySearchConfig,
874
- getMemorySearchManager
875
- });
876
- }
877
- async function scanStatusJsonFast(opts) {
878
- const loadedRaw = await readBestEffortConfig();
879
- const { resolvedConfig: cfg, diagnostics: secretDiagnostics } = await resolveCommandSecretRefsViaGateway({
880
- config: loadedRaw,
881
- commandName: "status --json",
882
- targetIds: getStatusCommandSecretTargetIds(),
883
- mode: "read_only_status"
884
- });
885
- if (hasPotentialConfiguredChannels(cfg)) {
886
- const { ensurePluginRegistryLoaded } = await loadPluginRegistryModule();
887
- ensurePluginRegistryLoaded({ scope: "configured-channels" });
888
- }
889
- const osSummary = resolveOsSummary();
890
- const tailscaleMode = cfg.gateway?.tailscale?.mode ?? "off";
891
- const updatePromise = getUpdateCheckResult({
892
- timeoutMs: opts.all ? 6500 : 2500,
893
- fetchGit: true,
894
- includeRegistry: true
895
- });
896
- const agentStatusPromise = getAgentLocalStatuses$1(cfg);
897
- const summaryPromise = getStatusSummary({
898
- config: cfg,
899
- sourceConfig: loadedRaw
900
- });
901
- const tailscaleDnsPromise = tailscaleMode === "off" ? Promise.resolve(null) : loadStatusScanDepsRuntimeModule().then(({ getTailnetHostname }) => getTailnetHostname((cmd, args) => runExec(cmd, args, {
902
- timeoutMs: 1200,
903
- maxBuffer: 2e5
904
- }))).catch(() => null);
905
- const gatewayProbePromise = resolveGatewayProbeSnapshot({
906
- cfg,
907
- opts
908
- });
909
- const [tailscaleDns, update, agentStatus, gatewaySnapshot, summary] = await Promise.all([
910
- tailscaleDnsPromise,
911
- updatePromise,
912
- agentStatusPromise,
913
- gatewayProbePromise,
914
- summaryPromise
915
- ]);
916
- const tailscaleHttpsUrl = buildTailscaleHttpsUrl({
917
- tailscaleMode,
918
- tailscaleDns,
919
- controlUiBasePath: cfg.gateway?.controlUi?.basePath
920
- });
921
- const { gatewayConnection, remoteUrlMissing, gatewayMode, gatewayProbeAuth, gatewayProbeAuthWarning, gatewayProbe } = gatewaySnapshot;
922
- const gatewayReachable = gatewayProbe?.ok === true;
923
- const gatewaySelf = gatewayProbe?.presence ? pickGatewaySelfPresence(gatewayProbe.presence) : null;
924
- const memoryPlugin = resolveMemoryPluginStatus(cfg);
925
- return {
926
- cfg,
927
- sourceConfig: loadedRaw,
928
- secretDiagnostics,
929
- osSummary,
930
- tailscaleMode,
931
- tailscaleDns,
932
- tailscaleHttpsUrl,
933
- update,
934
- gatewayConnection,
935
- remoteUrlMissing,
936
- gatewayMode,
937
- gatewayProbeAuth,
938
- gatewayProbeAuthWarning,
939
- gatewayProbe,
940
- gatewayReachable,
941
- gatewaySelf,
942
- channelIssues: [],
943
- agentStatus,
944
- channels: {
945
- rows: [],
946
- details: []
947
- },
948
- summary,
949
- memory: await resolveMemoryStatusSnapshot({
950
- cfg,
951
- agentStatus,
952
- memoryPlugin
953
- }),
954
- memoryPlugin
955
- };
956
- }
957
- async function scanStatus(opts, _runtime) {
958
- if (opts.json) return await scanStatusJsonFast({
959
- timeoutMs: opts.timeoutMs,
960
- all: opts.all
961
- });
962
- return await withProgress({
963
- label: "Scanning status…",
964
- total: 10,
965
- enabled: true
966
- }, async (progress) => {
967
- progress.setLabel("Loading config…");
968
- const loadedRaw = await readBestEffortConfig();
969
- const { resolvedConfig: cfg, diagnostics: secretDiagnostics } = await resolveCommandSecretRefsViaGateway({
970
- config: loadedRaw,
971
- commandName: "status",
972
- targetIds: getStatusCommandSecretTargetIds(),
973
- mode: "read_only_status"
974
- });
975
- const osSummary = resolveOsSummary();
976
- const tailscaleMode = cfg.gateway?.tailscale?.mode ?? "off";
977
- const tailscaleDnsPromise = tailscaleMode === "off" ? Promise.resolve(null) : loadStatusScanDepsRuntimeModule().then(({ getTailnetHostname }) => getTailnetHostname((cmd, args) => runExec(cmd, args, {
978
- timeoutMs: 1200,
979
- maxBuffer: 2e5
980
- }))).catch(() => null);
981
- const updatePromise = deferResult(getUpdateCheckResult({
982
- timeoutMs: opts.all ? 6500 : 2500,
983
- fetchGit: true,
984
- includeRegistry: true
985
- }));
986
- const agentStatusPromise = deferResult(getAgentLocalStatuses$1(cfg));
987
- const summaryPromise = deferResult(getStatusSummary({
988
- config: cfg,
989
- sourceConfig: loadedRaw
990
- }));
991
- progress.tick();
992
- progress.setLabel("Checking Tailscale…");
993
- const tailscaleDns = await tailscaleDnsPromise;
994
- const tailscaleHttpsUrl = buildTailscaleHttpsUrl({
995
- tailscaleMode,
996
- tailscaleDns,
997
- controlUiBasePath: cfg.gateway?.controlUi?.basePath
998
- });
999
- progress.tick();
1000
- progress.setLabel("Checking for updates…");
1001
- const update = unwrapDeferredResult(await updatePromise);
1002
- progress.tick();
1003
- progress.setLabel("Resolving agents…");
1004
- const agentStatus = unwrapDeferredResult(await agentStatusPromise);
1005
- progress.tick();
1006
- progress.setLabel("Probing gateway…");
1007
- const { gatewayConnection, remoteUrlMissing, gatewayMode, gatewayProbeAuth, gatewayProbeAuthWarning, gatewayProbe } = await resolveGatewayProbeSnapshot({
1008
- cfg,
1009
- opts
1010
- });
1011
- const gatewayReachable = gatewayProbe?.ok === true;
1012
- const gatewaySelf = gatewayProbe?.presence ? pickGatewaySelfPresence(gatewayProbe.presence) : null;
1013
- progress.tick();
1014
- progress.setLabel("Querying channel status…");
1015
- const channelsStatus = await resolveChannelsStatus({
1016
- cfg,
1017
- gatewayReachable,
1018
- opts
1019
- });
1020
- const { collectChannelStatusIssues, buildChannelsTable } = await loadStatusScanRuntimeModule();
1021
- const channelIssues = channelsStatus ? collectChannelStatusIssues(channelsStatus) : [];
1022
- progress.tick();
1023
- progress.setLabel("Summarizing channels…");
1024
- const channels = await buildChannelsTable(cfg, {
1025
- showSecrets: process.env.MOLDCLAW_SHOW_SECRETS?.trim() !== "0",
1026
- sourceConfig: loadedRaw
1027
- });
1028
- progress.tick();
1029
- progress.setLabel("Checking memory…");
1030
- const memoryPlugin = resolveMemoryPluginStatus(cfg);
1031
- const memory = await resolveMemoryStatusSnapshot({
1032
- cfg,
1033
- agentStatus,
1034
- memoryPlugin
1035
- });
1036
- progress.tick();
1037
- progress.setLabel("Reading sessions…");
1038
- const summary = unwrapDeferredResult(await summaryPromise);
1039
- progress.tick();
1040
- progress.setLabel("Rendering…");
1041
- progress.tick();
1042
- return {
1043
- cfg,
1044
- sourceConfig: loadedRaw,
1045
- secretDiagnostics,
1046
- osSummary,
1047
- tailscaleMode,
1048
- tailscaleDns,
1049
- tailscaleHttpsUrl,
1050
- update,
1051
- gatewayConnection,
1052
- remoteUrlMissing,
1053
- gatewayMode,
1054
- gatewayProbeAuth,
1055
- gatewayProbeAuthWarning,
1056
- gatewayProbe,
1057
- gatewayReachable,
1058
- gatewaySelf,
1059
- channelIssues,
1060
- agentStatus,
1061
- channels,
1062
- summary,
1063
- memory,
1064
- memoryPlugin
1065
- };
1066
- });
1067
- }
1068
- //#endregion
1069
- //#region src/commands/status.command.ts
1070
- let providerUsagePromise;
1071
- let securityAuditModulePromise;
1072
- function loadProviderUsage() {
1073
- providerUsagePromise ??= import("./provider-usage-BgKHCnjr.js");
1074
- return providerUsagePromise;
1075
- }
1076
- function loadSecurityAuditModule() {
1077
- securityAuditModulePromise ??= import("./audit.runtime-CJPKj1Zg.js");
1078
- return securityAuditModulePromise;
1079
- }
1080
- function resolvePairingRecoveryContext(params) {
1081
- const sanitizeRequestId = (value) => {
1082
- const trimmed = value.trim();
1083
- if (!trimmed) return null;
1084
- if (!/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/.test(trimmed)) return null;
1085
- return trimmed;
1086
- };
1087
- const source = [params.error, params.closeReason].filter((part) => typeof part === "string" && part.trim().length > 0).join(" ");
1088
- if (!source || !/pairing required/i.test(source)) return null;
1089
- const requestIdMatch = source.match(/requestId:\s*([^\s)]+)/i);
1090
- return { requestId: (requestIdMatch && requestIdMatch[1] ? sanitizeRequestId(requestIdMatch[1]) : null) || null };
1091
- }
1092
- async function statusCommand(opts, runtime) {
1093
- if (opts.all && !opts.json) {
1094
- await statusAllCommand(runtime, { timeoutMs: opts.timeoutMs });
1095
- return;
1096
- }
1097
- const scan = await scanStatus({
1098
- json: opts.json,
1099
- timeoutMs: opts.timeoutMs,
1100
- all: opts.all
1101
- }, runtime);
1102
- const runSecurityAudit = async () => await loadSecurityAuditModule().then(({ runSecurityAudit }) => runSecurityAudit({
1103
- config: scan.cfg,
1104
- sourceConfig: scan.sourceConfig,
1105
- deep: false,
1106
- includeFilesystem: true,
1107
- includeChannelSecurity: true
1108
- }));
1109
- const securityAudit = opts.json ? await runSecurityAudit() : await withProgress({
1110
- label: "Running security audit…",
1111
- indeterminate: true,
1112
- enabled: true
1113
- }, async () => await runSecurityAudit());
1114
- const { cfg, osSummary, tailscaleMode, tailscaleDns, tailscaleHttpsUrl, update, gatewayConnection, remoteUrlMissing, gatewayMode, gatewayProbeAuth, gatewayProbeAuthWarning, gatewayProbe, gatewayReachable, gatewaySelf, channelIssues, agentStatus, channels, summary, secretDiagnostics, memory, memoryPlugin } = scan;
1115
- const usage = opts.usage ? await withProgress({
1116
- label: "Fetching usage snapshot…",
1117
- indeterminate: true,
1118
- enabled: opts.json !== true
1119
- }, async () => {
1120
- const { loadProviderUsageSummary } = await loadProviderUsage();
1121
- return await loadProviderUsageSummary({ timeoutMs: opts.timeoutMs });
1122
- }) : void 0;
1123
- const health = opts.deep ? await withProgress({
1124
- label: "Checking gateway health…",
1125
- indeterminate: true,
1126
- enabled: opts.json !== true
1127
- }, async () => await callGateway({
1128
- method: "health",
1129
- params: { probe: true },
1130
- timeoutMs: opts.timeoutMs,
1131
- config: scan.cfg
1132
- })) : void 0;
1133
- const lastHeartbeat = opts.deep && gatewayReachable ? await callGateway({
1134
- method: "last-heartbeat",
1135
- params: {},
1136
- timeoutMs: opts.timeoutMs,
1137
- config: scan.cfg
1138
- }).catch(() => null) : null;
1139
- const channelInfo = resolveUpdateChannelDisplay({
1140
- configChannel: normalizeUpdateChannel(cfg.update?.channel),
1141
- installKind: update.installKind,
1142
- gitTag: update.git?.tag ?? null,
1143
- gitBranch: update.git?.branch ?? null
1144
- });
1145
- if (opts.json) {
1146
- const [daemon, nodeDaemon] = await Promise.all([getDaemonStatusSummary(), getNodeDaemonStatusSummary()]);
1147
- runtime.log(JSON.stringify({
1148
- ...summary,
1149
- os: osSummary,
1150
- update,
1151
- updateChannel: channelInfo.channel,
1152
- updateChannelSource: channelInfo.source,
1153
- memory,
1154
- memoryPlugin,
1155
- gateway: {
1156
- mode: gatewayMode,
1157
- url: gatewayConnection.url,
1158
- urlSource: gatewayConnection.urlSource,
1159
- misconfigured: remoteUrlMissing,
1160
- reachable: gatewayReachable,
1161
- connectLatencyMs: gatewayProbe?.connectLatencyMs ?? null,
1162
- self: gatewaySelf,
1163
- error: gatewayProbe?.error ?? null,
1164
- authWarning: gatewayProbeAuthWarning ?? null
1165
- },
1166
- gatewayService: daemon,
1167
- nodeService: nodeDaemon,
1168
- agents: agentStatus,
1169
- securityAudit,
1170
- secretDiagnostics,
1171
- ...health || usage || lastHeartbeat ? {
1172
- health,
1173
- usage,
1174
- lastHeartbeat
1175
- } : {}
1176
- }, null, 2));
1177
- return;
1178
- }
1179
- const muted = (value) => theme.muted(value);
1180
- const ok = (value) => theme.success(value);
1181
- const warn = (value) => theme.warn(value);
1182
- if (opts.verbose) {
1183
- const details = buildGatewayConnectionDetails({ config: scan.cfg });
1184
- runtime.log(info("Gateway connection:"));
1185
- for (const line of details.message.split("\n")) runtime.log(` ${line}`);
1186
- runtime.log("");
1187
- }
1188
- const tableWidth = getTerminalTableWidth();
1189
- if (secretDiagnostics.length > 0) {
1190
- runtime.log(theme.warn("Secret diagnostics:"));
1191
- for (const entry of secretDiagnostics) runtime.log(`- ${entry}`);
1192
- runtime.log("");
1193
- }
1194
- const dashboard = (() => {
1195
- if (!(cfg.gateway?.controlUi?.enabled ?? true)) return "disabled";
1196
- return resolveControlUiLinks({
1197
- port: resolveGatewayPort(cfg),
1198
- bind: cfg.gateway?.bind,
1199
- customBindHost: cfg.gateway?.customBindHost,
1200
- basePath: cfg.gateway?.controlUi?.basePath
1201
- }).httpUrl;
1202
- })();
1203
- const gatewayValue = (() => {
1204
- const target = remoteUrlMissing ? `fallback ${gatewayConnection.url}` : `${gatewayConnection.url}${gatewayConnection.urlSource ? ` (${gatewayConnection.urlSource})` : ""}`;
1205
- const reach = remoteUrlMissing ? warn("misconfigured (remote.url missing)") : gatewayReachable ? ok(`reachable ${formatDuration(gatewayProbe?.connectLatencyMs)}`) : warn(gatewayProbe?.error ? `unreachable (${gatewayProbe.error})` : "unreachable");
1206
- const auth = gatewayReachable && !remoteUrlMissing ? ` · auth ${formatGatewayAuthUsed(gatewayProbeAuth)}` : "";
1207
- const self = gatewaySelf?.host || gatewaySelf?.version || gatewaySelf?.platform ? [
1208
- gatewaySelf?.host ? gatewaySelf.host : null,
1209
- gatewaySelf?.ip ? `(${gatewaySelf.ip})` : null,
1210
- gatewaySelf?.version ? `app ${gatewaySelf.version}` : null,
1211
- gatewaySelf?.platform ? gatewaySelf.platform : null
1212
- ].filter(Boolean).join(" ") : null;
1213
- return `${gatewayMode} · ${target} · ${reach}${auth}${self ? ` · ${self}` : ""}`;
1214
- })();
1215
- const pairingRecovery = resolvePairingRecoveryContext({
1216
- error: gatewayProbe?.error ?? null,
1217
- closeReason: gatewayProbe?.close?.reason ?? null
1218
- });
1219
- const agentsValue = (() => {
1220
- const pending = agentStatus.bootstrapPendingCount > 0 ? `${agentStatus.bootstrapPendingCount} bootstrap file${agentStatus.bootstrapPendingCount === 1 ? "" : "s"} present` : "no bootstrap files";
1221
- const def = agentStatus.agents.find((a) => a.id === agentStatus.defaultId);
1222
- const defActive = def?.lastActiveAgeMs != null ? formatTimeAgo(def.lastActiveAgeMs) : "unknown";
1223
- const defSuffix = def ? ` · default ${def.id} active ${defActive}` : "";
1224
- return `${agentStatus.agents.length} · ${pending} · sessions ${agentStatus.totalSessions}${defSuffix}`;
1225
- })();
1226
- const [daemon, nodeDaemon] = await Promise.all([getDaemonStatusSummary(), getNodeDaemonStatusSummary()]);
1227
- const daemonValue = (() => {
1228
- if (daemon.installed === false) return `${daemon.label} not installed`;
1229
- const installedPrefix = daemon.managedBymoldClaw ? "installed · " : "";
1230
- return `${daemon.label} ${installedPrefix}${daemon.loadedText}${daemon.runtimeShort ? ` · ${daemon.runtimeShort}` : ""}`;
1231
- })();
1232
- const nodeDaemonValue = (() => {
1233
- if (nodeDaemon.installed === false) return `${nodeDaemon.label} not installed`;
1234
- const installedPrefix = nodeDaemon.managedBymoldClaw ? "installed · " : "";
1235
- return `${nodeDaemon.label} ${installedPrefix}${nodeDaemon.loadedText}${nodeDaemon.runtimeShort ? ` · ${nodeDaemon.runtimeShort}` : ""}`;
1236
- })();
1237
- const defaults = summary.sessions.defaults;
1238
- const defaultCtx = defaults.contextTokens ? ` (${formatKTokens(defaults.contextTokens)} ctx)` : "";
1239
- const eventsValue = summary.queuedSystemEvents.length > 0 ? `${summary.queuedSystemEvents.length} queued` : "none";
1240
- const probesValue = health ? ok("enabled") : muted("skipped (use --deep)");
1241
- const heartbeatValue = (() => {
1242
- const parts = summary.heartbeat.agents.map((agent) => {
1243
- if (!agent.enabled || !agent.everyMs) return `disabled (${agent.agentId})`;
1244
- return `${agent.every} (${agent.agentId})`;
1245
- }).filter(Boolean);
1246
- return parts.length > 0 ? parts.join(", ") : "disabled";
1247
- })();
1248
- const lastHeartbeatValue = (() => {
1249
- if (!opts.deep) return null;
1250
- if (!gatewayReachable) return warn("unavailable");
1251
- if (!lastHeartbeat) return muted("none");
1252
- const age = formatTimeAgo(Date.now() - lastHeartbeat.ts);
1253
- const channel = lastHeartbeat.channel ?? "unknown";
1254
- const accountLabel = lastHeartbeat.accountId ? `account ${lastHeartbeat.accountId}` : null;
1255
- return [
1256
- lastHeartbeat.status,
1257
- `${age} ago`,
1258
- channel,
1259
- accountLabel
1260
- ].filter(Boolean).join(" · ");
1261
- })();
1262
- const storeLabel = summary.sessions.paths.length > 1 ? `${summary.sessions.paths.length} stores` : summary.sessions.paths[0] ?? "unknown";
1263
- const memoryValue = (() => {
1264
- if (!memoryPlugin.enabled) return muted(`disabled${memoryPlugin.reason ? ` (${memoryPlugin.reason})` : ""}`);
1265
- if (!memory) {
1266
- const slot = memoryPlugin.slot ? `plugin ${memoryPlugin.slot}` : "plugin";
1267
- if (memoryPlugin.slot && memoryPlugin.slot !== "memory-core") return `enabled (${slot})`;
1268
- return muted(`enabled (${slot}) · unavailable`);
1269
- }
1270
- const parts = [];
1271
- const dirtySuffix = memory.dirty ? ` · ${warn("dirty")}` : "";
1272
- parts.push(`${memory.files} files · ${memory.chunks} chunks${dirtySuffix}`);
1273
- if (memory.sources?.length) parts.push(`sources ${memory.sources.join(", ")}`);
1274
- if (memoryPlugin.slot) parts.push(`plugin ${memoryPlugin.slot}`);
1275
- const colorByTone = (tone, text) => tone === "ok" ? ok(text) : tone === "warn" ? warn(text) : muted(text);
1276
- const vector = memory.vector;
1277
- if (vector) {
1278
- const state = resolveMemoryVectorState(vector);
1279
- const label = state.state === "disabled" ? "vector off" : `vector ${state.state}`;
1280
- parts.push(colorByTone(state.tone, label));
1281
- }
1282
- const fts = memory.fts;
1283
- if (fts) {
1284
- const state = resolveMemoryFtsState(fts);
1285
- const label = state.state === "disabled" ? "fts off" : `fts ${state.state}`;
1286
- parts.push(colorByTone(state.tone, label));
1287
- }
1288
- const cache = memory.cache;
1289
- if (cache) {
1290
- const summary = resolveMemoryCacheSummary(cache);
1291
- parts.push(colorByTone(summary.tone, summary.text));
1292
- }
1293
- return parts.join(" · ");
1294
- })();
1295
- const updateAvailability = resolveUpdateAvailability(update);
1296
- const updateLine = formatUpdateOneLiner(update).replace(/^Update:\s*/i, "");
1297
- const channelLabel = channelInfo.label;
1298
- const gitLabel = formatGitInstallLabel(update);
1299
- const overviewRows = [
1300
- {
1301
- Item: "Dashboard",
1302
- Value: dashboard
1303
- },
1304
- {
1305
- Item: "OS",
1306
- Value: `${osSummary.label} · node ${process.versions.node}`
1307
- },
1308
- {
1309
- Item: "Tailscale",
1310
- Value: tailscaleMode === "off" ? muted("off") : tailscaleDns && tailscaleHttpsUrl ? `${tailscaleMode} · ${tailscaleDns} · ${tailscaleHttpsUrl}` : warn(`${tailscaleMode} · magicdns unknown`)
1311
- },
1312
- {
1313
- Item: "Channel",
1314
- Value: channelLabel
1315
- },
1316
- ...gitLabel ? [{
1317
- Item: "Git",
1318
- Value: gitLabel
1319
- }] : [],
1320
- {
1321
- Item: "Update",
1322
- Value: updateAvailability.available ? warn(`available · ${updateLine}`) : updateLine
1323
- },
1324
- {
1325
- Item: "Gateway",
1326
- Value: gatewayValue
1327
- },
1328
- ...gatewayProbeAuthWarning ? [{
1329
- Item: "Gateway auth warning",
1330
- Value: warn(gatewayProbeAuthWarning)
1331
- }] : [],
1332
- {
1333
- Item: "Gateway service",
1334
- Value: daemonValue
1335
- },
1336
- {
1337
- Item: "Node service",
1338
- Value: nodeDaemonValue
1339
- },
1340
- {
1341
- Item: "Agents",
1342
- Value: agentsValue
1343
- },
1344
- {
1345
- Item: "Memory",
1346
- Value: memoryValue
1347
- },
1348
- {
1349
- Item: "Probes",
1350
- Value: probesValue
1351
- },
1352
- {
1353
- Item: "Events",
1354
- Value: eventsValue
1355
- },
1356
- {
1357
- Item: "Heartbeat",
1358
- Value: heartbeatValue
1359
- },
1360
- ...lastHeartbeatValue ? [{
1361
- Item: "Last heartbeat",
1362
- Value: lastHeartbeatValue
1363
- }] : [],
1364
- {
1365
- Item: "Sessions",
1366
- Value: `${summary.sessions.count} active · default ${defaults.model ?? "unknown"}${defaultCtx} · ${storeLabel}`
1367
- }
1368
- ];
1369
- runtime.log(theme.heading("moldClaw status"));
1370
- runtime.log("");
1371
- runtime.log(theme.heading("Overview"));
1372
- runtime.log(renderTable({
1373
- width: tableWidth,
1374
- columns: [{
1375
- key: "Item",
1376
- header: "Item",
1377
- minWidth: 12
1378
- }, {
1379
- key: "Value",
1380
- header: "Value",
1381
- flex: true,
1382
- minWidth: 32
1383
- }],
1384
- rows: overviewRows
1385
- }).trimEnd());
1386
- if (pairingRecovery) {
1387
- runtime.log("");
1388
- runtime.log(theme.warn("Gateway pairing approval required."));
1389
- if (pairingRecovery.requestId) runtime.log(theme.muted(`Recovery: ${formatCliCommand(`moldclaw devices approve ${pairingRecovery.requestId}`)}`));
1390
- runtime.log(theme.muted(`Fallback: ${formatCliCommand("moldclaw devices approve --latest")}`));
1391
- runtime.log(theme.muted(`Inspect: ${formatCliCommand("moldclaw devices list")}`));
1392
- }
1393
- runtime.log("");
1394
- runtime.log(theme.heading("Security audit"));
1395
- const fmtSummary = (value) => {
1396
- return [
1397
- theme.error(`${value.critical} critical`),
1398
- theme.warn(`${value.warn} warn`),
1399
- theme.muted(`${value.info} info`)
1400
- ].join(" · ");
1401
- };
1402
- runtime.log(theme.muted(`Summary: ${fmtSummary(securityAudit.summary)}`));
1403
- const importantFindings = securityAudit.findings.filter((f) => f.severity === "critical" || f.severity === "warn");
1404
- if (importantFindings.length === 0) runtime.log(theme.muted("No critical or warn findings detected."));
1405
- else {
1406
- const severityLabel = (sev) => {
1407
- if (sev === "critical") return theme.error("CRITICAL");
1408
- if (sev === "warn") return theme.warn("WARN");
1409
- return theme.muted("INFO");
1410
- };
1411
- const sevRank = (sev) => sev === "critical" ? 0 : sev === "warn" ? 1 : 2;
1412
- const sorted = [...importantFindings].toSorted((a, b) => sevRank(a.severity) - sevRank(b.severity));
1413
- const shown = sorted.slice(0, 6);
1414
- for (const f of shown) {
1415
- runtime.log(` ${severityLabel(f.severity)} ${f.title}`);
1416
- runtime.log(` ${shortenText(f.detail.replaceAll("\n", " "), 160)}`);
1417
- if (f.remediation?.trim()) runtime.log(` ${theme.muted(`Fix: ${f.remediation.trim()}`)}`);
1418
- }
1419
- if (sorted.length > shown.length) runtime.log(theme.muted(`… +${sorted.length - shown.length} more`));
1420
- }
1421
- runtime.log(theme.muted(`Full report: ${formatCliCommand("moldclaw security audit")}`));
1422
- runtime.log(theme.muted(`Deep probe: ${formatCliCommand("moldclaw security audit --deep")}`));
1423
- runtime.log("");
1424
- runtime.log(theme.heading("Channels"));
1425
- const channelIssuesByChannel = groupChannelIssuesByChannel(channelIssues);
1426
- runtime.log(renderTable({
1427
- width: tableWidth,
1428
- columns: [
1429
- {
1430
- key: "Channel",
1431
- header: "Channel",
1432
- minWidth: 10
1433
- },
1434
- {
1435
- key: "Enabled",
1436
- header: "Enabled",
1437
- minWidth: 7
1438
- },
1439
- {
1440
- key: "State",
1441
- header: "State",
1442
- minWidth: 8
1443
- },
1444
- {
1445
- key: "Detail",
1446
- header: "Detail",
1447
- flex: true,
1448
- minWidth: 24
1449
- }
1450
- ],
1451
- rows: channels.rows.map((row) => {
1452
- const issues = channelIssuesByChannel.get(row.id) ?? [];
1453
- const effectiveState = row.state === "off" ? "off" : issues.length > 0 ? "warn" : row.state;
1454
- const issueSuffix = issues.length > 0 ? ` · ${warn(`gateway: ${shortenText(issues[0]?.message ?? "issue", 84)}`)}` : "";
1455
- return {
1456
- Channel: row.label,
1457
- Enabled: row.enabled ? ok("ON") : muted("OFF"),
1458
- State: effectiveState === "ok" ? ok("OK") : effectiveState === "warn" ? warn("WARN") : effectiveState === "off" ? muted("OFF") : theme.accentDim("SETUP"),
1459
- Detail: `${row.detail}${issueSuffix}`
1460
- };
1461
- })
1462
- }).trimEnd());
1463
- runtime.log("");
1464
- runtime.log(theme.heading("Sessions"));
1465
- runtime.log(renderTable({
1466
- width: tableWidth,
1467
- columns: [
1468
- {
1469
- key: "Key",
1470
- header: "Key",
1471
- minWidth: 20,
1472
- flex: true
1473
- },
1474
- {
1475
- key: "Kind",
1476
- header: "Kind",
1477
- minWidth: 6
1478
- },
1479
- {
1480
- key: "Age",
1481
- header: "Age",
1482
- minWidth: 9
1483
- },
1484
- {
1485
- key: "Model",
1486
- header: "Model",
1487
- minWidth: 14
1488
- },
1489
- {
1490
- key: "Tokens",
1491
- header: "Tokens",
1492
- minWidth: 16
1493
- }
1494
- ],
1495
- rows: summary.sessions.recent.length > 0 ? summary.sessions.recent.map((sess) => ({
1496
- Key: shortenText(sess.key, 32),
1497
- Kind: sess.kind,
1498
- Age: sess.updatedAt ? formatTimeAgo(sess.age) : "no activity",
1499
- Model: sess.model ?? "unknown",
1500
- Tokens: formatTokensCompact(sess)
1501
- })) : [{
1502
- Key: muted("no sessions yet"),
1503
- Kind: "",
1504
- Age: "",
1505
- Model: "",
1506
- Tokens: ""
1507
- }]
1508
- }).trimEnd());
1509
- if (summary.queuedSystemEvents.length > 0) {
1510
- runtime.log("");
1511
- runtime.log(theme.heading("System events"));
1512
- runtime.log(renderTable({
1513
- width: tableWidth,
1514
- columns: [{
1515
- key: "Event",
1516
- header: "Event",
1517
- flex: true,
1518
- minWidth: 24
1519
- }],
1520
- rows: summary.queuedSystemEvents.slice(0, 5).map((event) => ({ Event: event }))
1521
- }).trimEnd());
1522
- if (summary.queuedSystemEvents.length > 5) runtime.log(muted(`… +${summary.queuedSystemEvents.length - 5} more`));
1523
- }
1524
- if (health) {
1525
- runtime.log("");
1526
- runtime.log(theme.heading("Health"));
1527
- const rows = [];
1528
- rows.push({
1529
- Item: "Gateway",
1530
- Status: ok("reachable"),
1531
- Detail: `${health.durationMs}ms`
1532
- });
1533
- for (const line of formatHealthChannelLines(health, { accountMode: "all" })) {
1534
- const colon = line.indexOf(":");
1535
- if (colon === -1) continue;
1536
- const item = line.slice(0, colon).trim();
1537
- const detail = line.slice(colon + 1).trim();
1538
- const normalized = detail.toLowerCase();
1539
- const status = (() => {
1540
- if (normalized.startsWith("ok")) return ok("OK");
1541
- if (normalized.startsWith("failed")) return warn("WARN");
1542
- if (normalized.startsWith("not configured")) return muted("OFF");
1543
- if (normalized.startsWith("configured")) return ok("OK");
1544
- if (normalized.startsWith("linked")) return ok("LINKED");
1545
- if (normalized.startsWith("not linked")) return warn("UNLINKED");
1546
- return warn("WARN");
1547
- })();
1548
- rows.push({
1549
- Item: item,
1550
- Status: status,
1551
- Detail: detail
1552
- });
1553
- }
1554
- runtime.log(renderTable({
1555
- width: tableWidth,
1556
- columns: [
1557
- {
1558
- key: "Item",
1559
- header: "Item",
1560
- minWidth: 10
1561
- },
1562
- {
1563
- key: "Status",
1564
- header: "Status",
1565
- minWidth: 8
1566
- },
1567
- {
1568
- key: "Detail",
1569
- header: "Detail",
1570
- flex: true,
1571
- minWidth: 28
1572
- }
1573
- ],
1574
- rows
1575
- }).trimEnd());
1576
- }
1577
- if (usage) {
1578
- const { formatUsageReportLines } = await loadProviderUsage();
1579
- runtime.log("");
1580
- runtime.log(theme.heading("Usage"));
1581
- for (const line of formatUsageReportLines(usage)) runtime.log(line);
1582
- }
1583
- runtime.log("");
1584
- runtime.log("FAQ: https://docs.moldclaw.ai/faq");
1585
- runtime.log("Troubleshooting: https://docs.moldclaw.ai/troubleshooting");
1586
- runtime.log("");
1587
- const updateHint = formatUpdateAvailableHint(update);
1588
- if (updateHint) {
1589
- runtime.log(theme.warn(updateHint));
1590
- runtime.log("");
1591
- }
1592
- runtime.log("Next steps:");
1593
- runtime.log(` Need to share? ${formatCliCommand("moldclaw status --all")}`);
1594
- runtime.log(` Need to debug live? ${formatCliCommand("moldclaw logs --follow")}`);
1595
- if (gatewayReachable) runtime.log(` Need to test channels? ${formatCliCommand("moldclaw status --deep")}`);
1596
- else runtime.log(` Fix reachability first: ${formatCliCommand("moldclaw gateway probe")}`);
1597
- }
1598
- //#endregion
1599
- export { statusCommand as t };