@spacebar_ai/moldclaw-core 2026.3.43 → 2026.3.44

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-SqdHz2ZP.js +114 -0
  3. package/dist/acp-cli-E6bcNqiE.js +2093 -0
  4. package/dist/actions.runtime-BU_XMuLk.js +119 -0
  5. package/dist/actions.runtime-CY5h8lqH.js +133 -0
  6. package/dist/agent-scope-lZlwP1At.js +208 -0
  7. package/dist/agents-C4SkadR1.js +853 -0
  8. package/dist/agents-RfwqGCzE.js +222 -0
  9. package/dist/agents.config-CX9CPNfP.js +17 -0
  10. package/dist/agents.config-DF9Zwn9n.js +121 -0
  11. package/dist/allow-list-3WSjz1zl.js +81 -0
  12. package/dist/allowlist-DNbDjFjw.js +142 -0
  13. package/dist/api-BEOpJ7dR.js +117 -0
  14. package/dist/audit-CpJz_eu6.js +787 -0
  15. package/dist/audit-CpfSjvyo.js +54 -0
  16. package/dist/audit-channel.collect.runtime-BeGotloZ.js +605 -0
  17. package/dist/audit-channel.runtime-BJDZ7ETt.js +121 -0
  18. package/dist/audit-extra.async-C2G0mqmk.js +813 -0
  19. package/dist/audit-membership-runtime-B1FqJsPV.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-Dnlsn23e.js +118 -0
  23. package/dist/auth-Ch3Rchm4.js +101 -0
  24. package/dist/auth-choice-CEFSlnLT.js +122 -0
  25. package/dist/auth-choice-CVCef-eU.js +268 -0
  26. package/dist/auth-choice-Cez-pXrg.js +507 -0
  27. package/dist/auth-choice-options-DO78mvPe.js +123 -0
  28. package/dist/auth-choice-prompt-CUkC7Mmb.js +36 -0
  29. package/dist/auth-choice-prompt-DCuQRiVl.js +115 -0
  30. package/dist/auth-choice.apply-helpers-BhbNIV8X.js +66 -0
  31. package/dist/auth-choice.plugin-providers.runtime-4BhqvEw_.js +119 -0
  32. package/dist/auth-profiles-smABVXzp.js +128040 -0
  33. package/dist/auth-profiles.runtime-Cr-ojtTc.js +116 -0
  34. package/dist/banner-CojBHPWr.js +342 -0
  35. package/dist/bluebubbles-BnLsj2Fy.d.ts +6 -0
  36. package/dist/bluebubbles-CVk7M3Bl.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-B26pkce0.js +214 -0
  52. package/dist/channel-BJHp0AQC.js +352 -0
  53. package/dist/channel-BKFOv51P.js +4681 -0
  54. package/dist/channel-BNgpOY8v.js +538 -0
  55. package/dist/channel-BcQAAo2P.js +226 -0
  56. package/dist/channel-BvNdnhbx.js +1598 -0
  57. package/dist/channel-C1Rda3Jd.js +306 -0
  58. package/dist/channel-C87DG-F7.js +803 -0
  59. package/dist/channel-CIip0kvZ.js +619 -0
  60. package/dist/channel-CTPxoT_E2.js +316 -0
  61. package/dist/channel-CklaCzUG.js +562 -0
  62. package/dist/channel-CoJnAdLs.js +920 -0
  63. package/dist/channel-D3tafL1_.js +949 -0
  64. package/dist/channel-DFMrP2uu.js +542 -0
  65. package/dist/channel-DMd5cJQe.js +397 -0
  66. package/dist/channel-Dm34kxAJ.js +207 -0
  67. package/dist/channel-DmwF9udn.js +1321 -0
  68. package/dist/channel-account-context-Bjur9nlh.js +103 -0
  69. package/dist/channel-bGnST659.js +943 -0
  70. package/dist/channel-hIgbkTZf.js +575 -0
  71. package/dist/channel-m_TGrDKo.js +497 -0
  72. package/dist/channel-options-DoUPBMa8.js +50 -0
  73. package/dist/channel-plugin-ids-TZIY4hFs.js +26 -0
  74. package/dist/channel-summary-qD54bOBO.js +111 -0
  75. package/dist/channel.runtime-B0H04Dkk.js +199 -0
  76. package/dist/channel.runtime-BU1f3NkV.js +418 -0
  77. package/dist/channel.runtime-Bj1sfLep.js +4011 -0
  78. package/dist/channel.runtime-BtPAAJc3.js +870 -0
  79. package/dist/channel.runtime-Bx-10m_j.js +171 -0
  80. package/dist/channel.runtime-CI_TBywQ.js +179 -0
  81. package/dist/channel.runtime-CSLj14-Z.js +182 -0
  82. package/dist/channel.runtime-D-lTSYAd.js +404 -0
  83. package/dist/channel.runtime-DJqIOSji.js +127 -0
  84. package/dist/channel.runtime-Ec8aQ9V2.js +241 -0
  85. package/dist/channel.runtime-ax5a1jBm.js +218 -0
  86. package/dist/channel.setup-B-ncdYLT.js +9 -0
  87. package/dist/channel.setup-BY4bh5dm.js +9 -0
  88. package/dist/channel.setup-BovsdMnL.js +57 -0
  89. package/dist/channel.setup-CXzXA25h.js +6 -0
  90. package/dist/channel.setup-DcZUEufN.js +8 -0
  91. package/dist/channel.setup-E6zceRsE.js +8 -0
  92. package/dist/channel.setup-Pc7nGbdX.js +11 -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-CPtE5ND6.js +404 -0
  102. package/dist/channels-Cj8ZolHI.js +1118 -0
  103. package/dist/channels-cli-D2sKrntt.js +291 -0
  104. package/dist/channels-status-issues-CzIHODg2.js +16 -0
  105. package/dist/clawbot-cli-BcwEDmUn.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-BvGVPKnD.js +154 -0
  109. package/dist/command-registry-CADQzTAg.js +14 -0
  110. package/dist/command-registry-ktiJNAJd.js +242 -0
  111. package/dist/command-secret-gateway-CXp10RTM.js +111 -0
  112. package/dist/compact.runtime-DyKL-Iar.js +116 -0
  113. package/dist/completion-cli-Bz4STrpt.js +17 -0
  114. package/dist/completion-cli-pVda2OFb.js +445 -0
  115. package/dist/config-BbvDRSYp.js +31 -0
  116. package/dist/config-CwBv71QC.js +44 -0
  117. package/dist/config-cli-Y0uXHbOw.js +678 -0
  118. package/dist/config-guard-BpW5g7JE.js +118 -0
  119. package/dist/config-validation-B-vLIsbo.js +262 -0
  120. package/dist/config-value-DT3-5958.js +132 -0
  121. package/dist/configure-B9U-jCqP.js +1100 -0
  122. package/dist/configure-BJ3Wrs5b.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-DTDgfoMh.js +639 -0
  128. package/dist/daemon-cli-C-dkAXR1.js +339 -0
  129. package/dist/daemon-install-Oy0Q5pMF.js +180 -0
  130. package/dist/deliver-DNGnDqF9.js +111 -0
  131. package/dist/deliver-runtime-CCNZIhET.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-DTSY3Ktr.js +311 -0
  137. package/dist/directory-config-helpers-DpFcAbmo.d.ts +38 -0
  138. package/dist/directory.static-CBRAUwUW.js +44 -0
  139. package/dist/discord-CrgxhEWw.js +114 -0
  140. package/dist/discovery-DrG7wmAR.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-D3GeVcFP.js +90 -0
  145. package/dist/doctor-config-flow-B1cMjr8h.js +112 -0
  146. package/dist/doctor-config-flow-BUe7JpV3.js +2437 -0
  147. package/dist/enable-Bc8bCuVe.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-0c-8h93_.js +26437 -0
  336. package/dist/gateway-install-token-1PwJvrBY.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-BQr4xgoZ.js +307 -0
  342. package/dist/googlechat-BvwsCVKl.d.ts +12 -0
  343. package/dist/group-access-DpiQnd-G.d.ts +61 -0
  344. package/dist/health-6yZQGADY.js +113 -0
  345. package/dist/health-C9DYGyRe.js +570 -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-BegKzHZT.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-Bgok9kfl.js +31 -0
  355. package/dist/imessage-VIHePprL.js +115 -0
  356. package/dist/inbound-reply-dispatch-B53GAGWq.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-oz1pjfHH.js +574 -0
  360. package/dist/installs-CUFm5V8a.js +532 -0
  361. package/dist/io-BaBxjB1v.js +9739 -0
  362. package/dist/io-CgHb1Jld.js +29 -0
  363. package/dist/irc-CaRKzGvW.js +672 -0
  364. package/dist/library-C5SNBCMb.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-fePrrQOD.js +530 -0
  372. package/dist/llm-slug-generator-hKae3XDA.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-C1YWh4nE.js +233 -0
  378. package/dist/login-qr-WFluMDMb.js +112 -0
  379. package/dist/logs-cli-CNzOvZ2d.js +256 -0
  380. package/dist/manager-runtime-DgMhLTkR.js +111 -0
  381. package/dist/manager.runtime-hUWgpPt2.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-CCFxHfxa.js +1269 -0
  385. package/dist/matrix-DWs_qIkJ.js +1495 -0
  386. package/dist/mcp-cli-Ci2jvv3s.js +87 -0
  387. package/dist/media-understanding.runtime-Cdr6iTW6.js +116 -0
  388. package/dist/memory-cli-LZbyF0Iu.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-CTR5mo4v.js +112 -0
  394. package/dist/model-picker-DG4z_dBs.js +390 -0
  395. package/dist/model-picker.runtime-DMQ9Pj9_.js +125 -0
  396. package/dist/model-selection-bBBxfXdb.js +653 -0
  397. package/dist/model-suppression.runtime-BVG75tZ7.js +116 -0
  398. package/dist/models-BjkVLfgw.js +2514 -0
  399. package/dist/models-ZO01Q4cx.js +118 -0
  400. package/dist/models-cli-DemdF-bm.js +309 -0
  401. package/dist/models-config-B2Jja8ua.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-BP4idxJD.js +782 -0
  405. package/dist/monitor-B_eP8Eim.js +772 -0
  406. package/dist/monitor-CRHYNl5J.js +3468 -0
  407. package/dist/monitor-Ci1Xg4g3.js +113 -0
  408. package/dist/monitor-DEodDl3z.js +6823 -0
  409. package/dist/monitor-DJlNKuMz.js +115 -0
  410. package/dist/monitor-DvFwDS9w.js +3076 -0
  411. package/dist/monitor-shared--cEjSf8s.js +444 -0
  412. package/dist/msteams-CV2a8uE8.js +852 -0
  413. package/dist/node-cli-Of2g7DSd.js +2503 -0
  414. package/dist/node-resolve-BYC2FbO2.js +835 -0
  415. package/dist/nodes-cli-CPHM6Upj.js +1380 -0
  416. package/dist/nostr-BFKRoOlz.d.ts +7 -0
  417. package/dist/nostr-lHpcBzz4.js +8744 -0
  418. package/dist/npm-resolution-kqHN85wB.js +60 -0
  419. package/dist/oauth-env-CLG8KOrz.js +10 -0
  420. package/dist/onboard-BON0C360.js +48 -0
  421. package/dist/onboard-CRkIBgOI.js +589 -0
  422. package/dist/onboard-DsKI17iq.js +25 -0
  423. package/dist/onboard-channels-BY3IbBBf.js +1241 -0
  424. package/dist/onboard-channels-CLKdRxvW.js +205 -0
  425. package/dist/onboard-custom-BjPrMo_R.js +571 -0
  426. package/dist/onboard-custom-DqcPiZBN.js +114 -0
  427. package/dist/onboard-helpers-BkrOY5OE.js +113 -0
  428. package/dist/onboard-helpers-DiSRTpZC.js +335 -0
  429. package/dist/onboard-hooks-pzEPZAvl.js +72 -0
  430. package/dist/onboard-remote-ChyLC6Dk.js +181 -0
  431. package/dist/onboard-remote-DHmK9ntl.js +117 -0
  432. package/dist/onboard-search-BgA3jEMW.js +302 -0
  433. package/dist/onboard-skills-BMo_NvnW.js +133 -0
  434. package/dist/onboard-skills-Bba-Z2p8.js +117 -0
  435. package/dist/outbound-media-BHD4aJEX.d.ts +11 -0
  436. package/dist/outbound-media-DSno0N82.js +11 -0
  437. package/dist/pairing-access-CzHpaM0R.d.ts +21 -0
  438. package/dist/pairing-cli-CmklqK0q.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-BrK7tcaO.js +111 -0
  442. package/dist/pi-tools.before-tool-call.runtime-C5yLUogH.js +381 -0
  443. package/dist/plugin-install-C4AWJIFP.js +117 -0
  444. package/dist/plugin-install-CB3J1hfV.js +184 -0
  445. package/dist/plugin-install-plan-7itZiegi.js +49 -0
  446. package/dist/plugin-registry-DX_GFoiz.js +113 -0
  447. package/dist/plugin-registry-e3cxTtvb.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-DF5FaTO0.js +111 -0
  522. package/dist/plugins-cli-CvTJemqC.js +917 -0
  523. package/dist/policy-CNXISK_a.js +143 -0
  524. package/dist/preflight-audio.runtime-RP000oxo.js +116 -0
  525. package/dist/probe-BkM5pykD.js +21 -0
  526. package/dist/probe-DKbRTJv5.js +1793 -0
  527. package/dist/probe-DkrfRsjU.js +47 -0
  528. package/dist/probe-DpcJ0WeP.js +129 -0
  529. package/dist/probe-auth-BcNjX8hy.js +40 -0
  530. package/dist/probe-auth-DhuAb8ls.js +48 -0
  531. package/dist/probe-wciBj-aL.js +6329 -0
  532. package/dist/program-C8-p0mW5.js +253 -0
  533. package/dist/prompt-select-styled-DH0pVoc0.js +2673 -0
  534. package/dist/provider-api-key-auth.runtime-CAFeIQ1u.js +121 -0
  535. package/dist/provider-auth-choice-CB_HzdTl.js +126 -0
  536. package/dist/provider-auth-choice-helpers-hzDkh3f1.js +48 -0
  537. package/dist/provider-auth-choice-preference-BHCXvNSE.js +189 -0
  538. package/dist/provider-auth-choice.runtime-Dx4ms2C5.js +123 -0
  539. package/dist/provider-auth-choices-0KaDNPBQ.js +57 -0
  540. package/dist/provider-auth-guidance-BaAUiNr_.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-4xwmsl5L.js +111 -0
  549. package/dist/provider-self-hosted-setup-BHd24EDG.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-C11Q7UwS.js +111 -0
  553. package/dist/provider-usage-kxemdMp2.js +633 -0
  554. package/dist/provider-wizard-CanJoxNC.js +152 -0
  555. package/dist/push-apns-Dsajnm8C.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-Bu2jqTPY.js +113 -0
  559. package/dist/qr-cli-Bu9Z-X48.js +369 -0
  560. package/dist/reactions-Cpfum4iU.js +281 -0
  561. package/dist/read-only-account-inspect.discord.runtime-BK0LaMgC.js +116 -0
  562. package/dist/read-only-account-inspect.slack.runtime-DgKiC5wT.js +116 -0
  563. package/dist/read-only-account-inspect.telegram.runtime-mxfgFVOU.js +116 -0
  564. package/dist/redact-snapshot-DD8A4tdd.js +2663 -0
  565. package/dist/register.agent-DU4FtrU2.js +439 -0
  566. package/dist/register.backup-8nOYtJqg.js +625 -0
  567. package/dist/register.configure-DmtecqIH.js +252 -0
  568. package/dist/register.maintenance-Dir3ulKP.js +574 -0
  569. package/dist/register.message-Cfl-f3Ju.js +709 -0
  570. package/dist/register.onboard-Bv7WVzEi.js +192 -0
  571. package/dist/register.setup-BIyeI8RY.js +212 -0
  572. package/dist/register.status-health-sessions-C69WQcF4.js +498 -0
  573. package/dist/register.subclis-B_4KCgTd.js +315 -0
  574. package/dist/register.subclis-BeXsmgBL.js +13 -0
  575. package/dist/replies-DdcFUmki.js +110 -0
  576. package/dist/resolve-channels-DRZqPV5o.js +226 -0
  577. package/dist/resolve-channels-DxW1kqxA.js +262 -0
  578. package/dist/resolve-route-DdX-HBVt.js +538 -0
  579. package/dist/resolve-users-rgCQvkLs.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-D9ci5pn7.js +424 -0
  584. package/dist/runtime-Bitmi8Er.d.ts +26 -0
  585. package/dist/runtime-discord-ops.runtime-T4sf7aRB.js +9078 -0
  586. package/dist/runtime-slack-ops.runtime-BQpP48mC.js +4556 -0
  587. package/dist/runtime-telegram-ops.runtime-cVO5dqOp.js +133 -0
  588. package/dist/runtime-whatsapp-login.runtime-DtNx0dSY.js +114 -0
  589. package/dist/runtime-whatsapp-outbound.runtime-Bw47QbFK.js +117 -0
  590. package/dist/sandbox-cli-DsFwjbjC.js +535 -0
  591. package/dist/search-manager-BRAK8fEe.js +16 -0
  592. package/dist/search-manager-BS5Db0A6.js +386 -0
  593. package/dist/secrets-cli-D3J46TJp.js +2070 -0
  594. package/dist/security-cli-B866M9cB.js +575 -0
  595. package/dist/send-B1pX9_Oc.js +283 -0
  596. package/dist/send-B2RrLg83.js +100 -0
  597. package/dist/send-DFnV__Aq.js +1025 -0
  598. package/dist/send-DZIH6CJt.js +629 -0
  599. package/dist/send-sl9WnKbW.js +631 -0
  600. package/dist/server-node-events-BT6egg20.js +506 -0
  601. package/dist/server-zI_K-D05.js +107 -0
  602. package/dist/sessions-C8kiAcoJ.js +112 -0
  603. package/dist/sessions-DLBpp52_.js +218 -0
  604. package/dist/setup-C7eOzMiC.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-BnR486P-.js +143 -0
  609. package/dist/setup-core-CIswIiu5.js +166 -0
  610. package/dist/setup-core-CcbcrXXg.js +47 -0
  611. package/dist/setup-core-nZSw5BSv.js +205 -0
  612. package/dist/setup-surface-C5iSpT4M.js +490 -0
  613. package/dist/setup-wizard-helpers-r0J6l8ST.d.ts +203 -0
  614. package/dist/setup.finalize-adiRfo0U.js +522 -0
  615. package/dist/setup.gateway-config-BwFWKDfT.js +343 -0
  616. package/dist/shared-12TimyeF.js +182 -0
  617. package/dist/shared-9EWO34-k.js +298 -0
  618. package/dist/shared-B4vUbaRR.js +75 -0
  619. package/dist/shared-bNWpW3Dd.js +96 -0
  620. package/dist/shared-lU1y5dvS.js +102 -0
  621. package/dist/signal-DBlETRu9.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--rnorIoJ.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-C4T53Nc-.js +114 -0
  629. package/dist/slash-commands.runtime-B7fsD8Be.js +128 -0
  630. package/dist/slash-dispatch.runtime-t0PAX4vQ.js +141 -0
  631. package/dist/slash-skill-commands.runtime-DIhPnEfR.js +116 -0
  632. package/dist/src-DrDirlvw.js +1701 -0
  633. package/dist/status-Bld14WSA.js +131 -0
  634. package/dist/status-CgeO4RuH.js +43 -0
  635. package/dist/status-HlvixAOq.js +606 -0
  636. package/dist/status-Rom_Lf3c.js +1599 -0
  637. package/dist/status-TwbMH6Am.js +126 -0
  638. package/dist/status-json-DMW7cmuK.js +288 -0
  639. package/dist/status.link-channel-V4LkB6Gq.js +143 -0
  640. package/dist/status.scan.deps.runtime-BE3X-dcP.js +126 -0
  641. package/dist/status.scan.runtime-BxVY4mty.js +119 -0
  642. package/dist/status.summary-CzLM0vVr.js +592 -0
  643. package/dist/status.summary.runtime-BSBnHZ1Q.js +118 -0
  644. package/dist/status.update-BxblMS7P.js +77 -0
  645. package/dist/subagent-orphan-recovery-BpRPryEj.js +307 -0
  646. package/dist/subagent-registry-runtime-DYYU5p3X.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-3nwk-Nj0.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-RtKXoEsF.js +114 -0
  657. package/dist/text-chunking-BD5mQe2R.js +84 -0
  658. package/dist/text-chunking-DDUU_vAF.d.ts +79 -0
  659. package/dist/tlon-z-kYmJE-.js +433 -0
  660. package/dist/tui-cli-CzSK08Rh.js +137 -0
  661. package/dist/tui-wV7R1Tlc.js +3834 -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-BWVHreeR.js +31 -0
  666. package/dist/update-D1Wgh1Tj.js +1036 -0
  667. package/dist/update-cli-CZh99uyY.js +1503 -0
  668. package/dist/update-offset-store-D5xTdUr0.js +112 -0
  669. package/dist/update-runner-GbKfoCHs.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-CMczmL90.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-BSmFtesN.js +181 -0
  676. package/dist/webhook-targets-CjxuEE9C.d.ts +106 -0
  677. package/dist/webhooks-cli-Wl9y6AWW.js +350 -0
  678. package/dist/whatsapp-VzRW8MdR.js +114 -0
  679. package/dist/whatsapp-actions-Cg1Wxv8W.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-Db7s2boL.js +415 -0
  686. package/dist/zalouser-Jh5YTJX3.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
@@ -0,0 +1,1496 @@
1
+ import { h as pathExists } from "./utils-C7ykRPCQ.js";
2
+ import { $u as normalizeOptionalText, Hu as trimLogTail, Xu as inferLegacyName, Yu as resolveDefaultCronStaggerMs, ef as applyPathPrepend, id as normalizeLegacyDeliveryInput, nd as migrateLegacyCronPayload, qu as normalizeCronStaggerMs, rd as parseAbsoluteTimeMs } from "./auth-profiles-smABVXzp.js";
3
+ import { n as runCommandWithTimeout } from "./exec-CvEtXqTZ.js";
4
+ import { s as resolveStableNodePath } from "./runtime-paths-BfFqPvDh.js";
5
+ import { i as resolveControlUiDistIndexPathForRoot, r as resolveControlUiDistIndexHealth } from "./control-ui-assets-C1YDYi82.js";
6
+ import { c as DEV_BRANCH, d as isBetaTag, f as isStableTag, l as channelToNpmTag, n as compareSemverStrings, o as detectPackageManager$1 } from "./update-check-DpjrnnTI.js";
7
+ import path from "node:path";
8
+ import os from "node:os";
9
+ import fs from "node:fs/promises";
10
+ import { Cron } from "croner";
11
+ //#region src/cron/schedule.ts
12
+ const CRON_EVAL_CACHE_MAX = 512;
13
+ const cronEvalCache = /* @__PURE__ */ new Map();
14
+ function resolveCronTimezone(tz) {
15
+ const trimmed = typeof tz === "string" ? tz.trim() : "";
16
+ if (trimmed) return trimmed;
17
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
18
+ }
19
+ function resolveCachedCron(expr, timezone) {
20
+ const key = `${timezone}\u0000${expr}`;
21
+ const cached = cronEvalCache.get(key);
22
+ if (cached) return cached;
23
+ if (cronEvalCache.size >= CRON_EVAL_CACHE_MAX) {
24
+ const oldest = cronEvalCache.keys().next().value;
25
+ if (oldest) cronEvalCache.delete(oldest);
26
+ }
27
+ const next = new Cron(expr, {
28
+ timezone,
29
+ catch: false
30
+ });
31
+ cronEvalCache.set(key, next);
32
+ return next;
33
+ }
34
+ function resolveCronFromSchedule(schedule) {
35
+ const exprSource = typeof schedule.expr === "string" ? schedule.expr : schedule.cron;
36
+ if (typeof exprSource !== "string") throw new Error("invalid cron schedule: expr is required");
37
+ const expr = exprSource.trim();
38
+ if (!expr) return;
39
+ return resolveCachedCron(expr, resolveCronTimezone(schedule.tz));
40
+ }
41
+ function coerceFiniteScheduleNumber(value) {
42
+ if (typeof value === "number") return Number.isFinite(value) ? value : void 0;
43
+ if (typeof value === "string") {
44
+ const trimmed = value.trim();
45
+ if (!trimmed) return;
46
+ const parsed = Number(trimmed);
47
+ return Number.isFinite(parsed) ? parsed : void 0;
48
+ }
49
+ }
50
+ function computeNextRunAtMs(schedule, nowMs) {
51
+ if (schedule.kind === "at") {
52
+ const sched = schedule;
53
+ const atMs = typeof sched.atMs === "number" && Number.isFinite(sched.atMs) && sched.atMs > 0 ? sched.atMs : typeof sched.atMs === "string" ? parseAbsoluteTimeMs(sched.atMs) : typeof sched.at === "string" ? parseAbsoluteTimeMs(sched.at) : null;
54
+ if (atMs === null) return;
55
+ return atMs > nowMs ? atMs : void 0;
56
+ }
57
+ if (schedule.kind === "every") {
58
+ const everyMsRaw = coerceFiniteScheduleNumber(schedule.everyMs);
59
+ if (everyMsRaw === void 0) return;
60
+ const everyMs = Math.max(1, Math.floor(everyMsRaw));
61
+ const anchorRaw = coerceFiniteScheduleNumber(schedule.anchorMs);
62
+ const anchor = Math.max(0, Math.floor(anchorRaw ?? nowMs));
63
+ if (nowMs < anchor) return anchor;
64
+ const elapsed = nowMs - anchor;
65
+ return anchor + Math.max(1, Math.floor((elapsed + everyMs - 1) / everyMs)) * everyMs;
66
+ }
67
+ const cron = resolveCronFromSchedule(schedule);
68
+ if (!cron) return;
69
+ let next = cron.nextRun(new Date(nowMs));
70
+ if (!next) return;
71
+ let nextMs = next.getTime();
72
+ if (!Number.isFinite(nextMs)) return;
73
+ if (nextMs <= nowMs) {
74
+ const nextSecondMs = Math.floor(nowMs / 1e3) * 1e3 + 1e3;
75
+ const retry = cron.nextRun(new Date(nextSecondMs));
76
+ if (retry) {
77
+ const retryMs = retry.getTime();
78
+ if (Number.isFinite(retryMs) && retryMs > nowMs) return retryMs;
79
+ }
80
+ const tomorrowMs = new Date(nowMs).setUTCHours(24, 0, 0, 0);
81
+ const retry2 = cron.nextRun(new Date(tomorrowMs));
82
+ if (retry2) {
83
+ const retry2Ms = retry2.getTime();
84
+ if (Number.isFinite(retry2Ms) && retry2Ms > nowMs) return retry2Ms;
85
+ }
86
+ return;
87
+ }
88
+ return nextMs;
89
+ }
90
+ function computePreviousRunAtMs(schedule, nowMs) {
91
+ if (schedule.kind !== "cron") return;
92
+ const cron = resolveCronFromSchedule(schedule);
93
+ if (!cron) return;
94
+ const previous = cron.previousRuns(1, new Date(nowMs))[0];
95
+ if (!previous) return;
96
+ const previousMs = previous.getTime();
97
+ if (!Number.isFinite(previousMs)) return;
98
+ if (previousMs >= nowMs) return;
99
+ return previousMs;
100
+ }
101
+ //#endregion
102
+ //#region src/cron/store-migration.ts
103
+ function incrementIssue(issues, key) {
104
+ issues[key] = (issues[key] ?? 0) + 1;
105
+ }
106
+ function normalizePayloadKind(payload) {
107
+ const raw = typeof payload.kind === "string" ? payload.kind.trim().toLowerCase() : "";
108
+ if (raw === "agentturn") {
109
+ if (payload.kind !== "agentTurn") {
110
+ payload.kind = "agentTurn";
111
+ return true;
112
+ }
113
+ return false;
114
+ }
115
+ if (raw === "systemevent") {
116
+ if (payload.kind !== "systemEvent") {
117
+ payload.kind = "systemEvent";
118
+ return true;
119
+ }
120
+ return false;
121
+ }
122
+ return false;
123
+ }
124
+ function inferPayloadIfMissing(raw) {
125
+ const message = typeof raw.message === "string" ? raw.message.trim() : "";
126
+ const text = typeof raw.text === "string" ? raw.text.trim() : "";
127
+ const command = typeof raw.command === "string" ? raw.command.trim() : "";
128
+ if (message) {
129
+ raw.payload = {
130
+ kind: "agentTurn",
131
+ message
132
+ };
133
+ return true;
134
+ }
135
+ if (text) {
136
+ raw.payload = {
137
+ kind: "systemEvent",
138
+ text
139
+ };
140
+ return true;
141
+ }
142
+ if (command) {
143
+ raw.payload = {
144
+ kind: "systemEvent",
145
+ text: command
146
+ };
147
+ return true;
148
+ }
149
+ return false;
150
+ }
151
+ function copyTopLevelAgentTurnFields(raw, payload) {
152
+ let mutated = false;
153
+ const copyTrimmedString = (field) => {
154
+ const existing = payload[field];
155
+ if (typeof existing === "string" && existing.trim()) return;
156
+ const value = raw[field];
157
+ if (typeof value === "string" && value.trim()) {
158
+ payload[field] = value.trim();
159
+ mutated = true;
160
+ }
161
+ };
162
+ copyTrimmedString("model");
163
+ copyTrimmedString("thinking");
164
+ if (typeof payload.timeoutSeconds !== "number" && typeof raw.timeoutSeconds === "number" && Number.isFinite(raw.timeoutSeconds)) {
165
+ payload.timeoutSeconds = Math.max(0, Math.floor(raw.timeoutSeconds));
166
+ mutated = true;
167
+ }
168
+ if (typeof payload.allowUnsafeExternalContent !== "boolean" && typeof raw.allowUnsafeExternalContent === "boolean") {
169
+ payload.allowUnsafeExternalContent = raw.allowUnsafeExternalContent;
170
+ mutated = true;
171
+ }
172
+ if (typeof payload.deliver !== "boolean" && typeof raw.deliver === "boolean") {
173
+ payload.deliver = raw.deliver;
174
+ mutated = true;
175
+ }
176
+ if (typeof payload.channel !== "string" && typeof raw.channel === "string" && raw.channel.trim()) {
177
+ payload.channel = raw.channel.trim();
178
+ mutated = true;
179
+ }
180
+ if (typeof payload.to !== "string" && typeof raw.to === "string" && raw.to.trim()) {
181
+ payload.to = raw.to.trim();
182
+ mutated = true;
183
+ }
184
+ if (typeof payload.bestEffortDeliver !== "boolean" && typeof raw.bestEffortDeliver === "boolean") {
185
+ payload.bestEffortDeliver = raw.bestEffortDeliver;
186
+ mutated = true;
187
+ }
188
+ if (typeof payload.provider !== "string" && typeof raw.provider === "string" && raw.provider.trim()) {
189
+ payload.provider = raw.provider.trim();
190
+ mutated = true;
191
+ }
192
+ return mutated;
193
+ }
194
+ function stripLegacyTopLevelFields(raw) {
195
+ if ("model" in raw) delete raw.model;
196
+ if ("thinking" in raw) delete raw.thinking;
197
+ if ("timeoutSeconds" in raw) delete raw.timeoutSeconds;
198
+ if ("allowUnsafeExternalContent" in raw) delete raw.allowUnsafeExternalContent;
199
+ if ("message" in raw) delete raw.message;
200
+ if ("text" in raw) delete raw.text;
201
+ if ("deliver" in raw) delete raw.deliver;
202
+ if ("channel" in raw) delete raw.channel;
203
+ if ("to" in raw) delete raw.to;
204
+ if ("bestEffortDeliver" in raw) delete raw.bestEffortDeliver;
205
+ if ("provider" in raw) delete raw.provider;
206
+ if ("command" in raw) delete raw.command;
207
+ if ("timeout" in raw) delete raw.timeout;
208
+ }
209
+ function normalizeStoredCronJobs(jobs) {
210
+ const issues = {};
211
+ let mutated = false;
212
+ for (const raw of jobs) {
213
+ const jobIssues = /* @__PURE__ */ new Set();
214
+ const trackIssue = (key) => {
215
+ if (jobIssues.has(key)) return;
216
+ jobIssues.add(key);
217
+ incrementIssue(issues, key);
218
+ };
219
+ const state = raw.state;
220
+ if (!state || typeof state !== "object" || Array.isArray(state)) {
221
+ raw.state = {};
222
+ mutated = true;
223
+ }
224
+ const rawId = typeof raw.id === "string" ? raw.id.trim() : "";
225
+ const legacyJobId = typeof raw.jobId === "string" ? raw.jobId.trim() : "";
226
+ if (!rawId && legacyJobId) {
227
+ raw.id = legacyJobId;
228
+ mutated = true;
229
+ trackIssue("jobId");
230
+ } else if (rawId && raw.id !== rawId) {
231
+ raw.id = rawId;
232
+ mutated = true;
233
+ }
234
+ if ("jobId" in raw) {
235
+ delete raw.jobId;
236
+ mutated = true;
237
+ trackIssue("jobId");
238
+ }
239
+ if (typeof raw.schedule === "string") {
240
+ raw.schedule = {
241
+ kind: "cron",
242
+ expr: raw.schedule.trim()
243
+ };
244
+ mutated = true;
245
+ trackIssue("legacyScheduleString");
246
+ }
247
+ const nameRaw = raw.name;
248
+ if (typeof nameRaw !== "string" || nameRaw.trim().length === 0) {
249
+ raw.name = inferLegacyName({
250
+ schedule: raw.schedule,
251
+ payload: raw.payload
252
+ });
253
+ mutated = true;
254
+ } else raw.name = nameRaw.trim();
255
+ const desc = normalizeOptionalText(raw.description);
256
+ if (raw.description !== desc) {
257
+ raw.description = desc;
258
+ mutated = true;
259
+ }
260
+ if ("sessionKey" in raw) {
261
+ const sessionKey = typeof raw.sessionKey === "string" ? normalizeOptionalText(raw.sessionKey) : void 0;
262
+ if (raw.sessionKey !== sessionKey) {
263
+ raw.sessionKey = sessionKey;
264
+ mutated = true;
265
+ }
266
+ }
267
+ if (typeof raw.enabled !== "boolean") {
268
+ raw.enabled = true;
269
+ mutated = true;
270
+ }
271
+ const wakeModeRaw = typeof raw.wakeMode === "string" ? raw.wakeMode.trim().toLowerCase() : "";
272
+ if (wakeModeRaw === "next-heartbeat") {
273
+ if (raw.wakeMode !== "next-heartbeat") {
274
+ raw.wakeMode = "next-heartbeat";
275
+ mutated = true;
276
+ }
277
+ } else if (wakeModeRaw === "now") {
278
+ if (raw.wakeMode !== "now") {
279
+ raw.wakeMode = "now";
280
+ mutated = true;
281
+ }
282
+ } else {
283
+ raw.wakeMode = "now";
284
+ mutated = true;
285
+ }
286
+ const payload = raw.payload;
287
+ if ((!payload || typeof payload !== "object" || Array.isArray(payload)) && inferPayloadIfMissing(raw)) {
288
+ mutated = true;
289
+ trackIssue("legacyTopLevelPayloadFields");
290
+ }
291
+ const payloadRecord = raw.payload && typeof raw.payload === "object" && !Array.isArray(raw.payload) ? raw.payload : null;
292
+ if (payloadRecord) {
293
+ if (normalizePayloadKind(payloadRecord)) {
294
+ mutated = true;
295
+ trackIssue("legacyPayloadKind");
296
+ }
297
+ if (!payloadRecord.kind) {
298
+ if (typeof payloadRecord.message === "string" && payloadRecord.message.trim()) {
299
+ payloadRecord.kind = "agentTurn";
300
+ mutated = true;
301
+ trackIssue("legacyPayloadKind");
302
+ } else if (typeof payloadRecord.text === "string" && payloadRecord.text.trim()) {
303
+ payloadRecord.kind = "systemEvent";
304
+ mutated = true;
305
+ trackIssue("legacyPayloadKind");
306
+ }
307
+ }
308
+ if (payloadRecord.kind === "agentTurn" && copyTopLevelAgentTurnFields(raw, payloadRecord)) mutated = true;
309
+ }
310
+ const hadLegacyTopLevelPayloadFields = "model" in raw || "thinking" in raw || "timeoutSeconds" in raw || "allowUnsafeExternalContent" in raw || "message" in raw || "text" in raw || "command" in raw || "timeout" in raw;
311
+ const hadLegacyTopLevelDeliveryFields = "deliver" in raw || "channel" in raw || "to" in raw || "bestEffortDeliver" in raw || "provider" in raw;
312
+ if (hadLegacyTopLevelPayloadFields || hadLegacyTopLevelDeliveryFields) {
313
+ stripLegacyTopLevelFields(raw);
314
+ mutated = true;
315
+ if (hadLegacyTopLevelPayloadFields) trackIssue("legacyTopLevelPayloadFields");
316
+ if (hadLegacyTopLevelDeliveryFields) trackIssue("legacyTopLevelDeliveryFields");
317
+ }
318
+ if (payloadRecord) {
319
+ const hadLegacyPayloadProvider = typeof payloadRecord.provider === "string" && payloadRecord.provider.trim().length > 0;
320
+ if (migrateLegacyCronPayload(payloadRecord)) {
321
+ mutated = true;
322
+ if (hadLegacyPayloadProvider) trackIssue("legacyPayloadProvider");
323
+ }
324
+ }
325
+ const schedule = raw.schedule;
326
+ if (schedule && typeof schedule === "object" && !Array.isArray(schedule)) {
327
+ const sched = schedule;
328
+ const kind = typeof sched.kind === "string" ? sched.kind.trim().toLowerCase() : "";
329
+ if (!kind && ("at" in sched || "atMs" in sched)) {
330
+ sched.kind = "at";
331
+ mutated = true;
332
+ }
333
+ const atRaw = typeof sched.at === "string" ? sched.at.trim() : "";
334
+ const atMsRaw = sched.atMs;
335
+ const parsedAtMs = typeof atMsRaw === "number" ? atMsRaw : typeof atMsRaw === "string" ? parseAbsoluteTimeMs(atMsRaw) : atRaw ? parseAbsoluteTimeMs(atRaw) : null;
336
+ if (parsedAtMs !== null) {
337
+ sched.at = new Date(parsedAtMs).toISOString();
338
+ if ("atMs" in sched) delete sched.atMs;
339
+ mutated = true;
340
+ }
341
+ const everyMsRaw = sched.everyMs;
342
+ const everyMsCoerced = coerceFiniteScheduleNumber(everyMsRaw);
343
+ const everyMs = everyMsCoerced !== void 0 ? Math.floor(everyMsCoerced) : null;
344
+ if (everyMs !== null && everyMsRaw !== everyMs) {
345
+ sched.everyMs = everyMs;
346
+ mutated = true;
347
+ }
348
+ if ((kind === "every" || sched.kind === "every") && everyMs !== null) {
349
+ const anchorRaw = sched.anchorMs;
350
+ const anchorCoerced = coerceFiniteScheduleNumber(anchorRaw);
351
+ const normalizedAnchor = anchorCoerced !== void 0 ? Math.max(0, Math.floor(anchorCoerced)) : typeof raw.createdAtMs === "number" && Number.isFinite(raw.createdAtMs) ? Math.max(0, Math.floor(raw.createdAtMs)) : typeof raw.updatedAtMs === "number" && Number.isFinite(raw.updatedAtMs) ? Math.max(0, Math.floor(raw.updatedAtMs)) : null;
352
+ if (normalizedAnchor !== null && anchorRaw !== normalizedAnchor) {
353
+ sched.anchorMs = normalizedAnchor;
354
+ mutated = true;
355
+ }
356
+ }
357
+ const exprRaw = typeof sched.expr === "string" ? sched.expr.trim() : "";
358
+ const legacyCronRaw = typeof sched.cron === "string" ? sched.cron.trim() : "";
359
+ let normalizedExpr = exprRaw;
360
+ if (!normalizedExpr && legacyCronRaw) {
361
+ normalizedExpr = legacyCronRaw;
362
+ sched.expr = normalizedExpr;
363
+ mutated = true;
364
+ trackIssue("legacyScheduleCron");
365
+ }
366
+ if (typeof sched.expr === "string" && sched.expr !== normalizedExpr) {
367
+ sched.expr = normalizedExpr;
368
+ mutated = true;
369
+ }
370
+ if ("cron" in sched) {
371
+ delete sched.cron;
372
+ mutated = true;
373
+ trackIssue("legacyScheduleCron");
374
+ }
375
+ if ((kind === "cron" || sched.kind === "cron") && normalizedExpr) {
376
+ const explicitStaggerMs = normalizeCronStaggerMs(sched.staggerMs);
377
+ const defaultStaggerMs = resolveDefaultCronStaggerMs(normalizedExpr);
378
+ const targetStaggerMs = explicitStaggerMs ?? defaultStaggerMs;
379
+ if (targetStaggerMs === void 0) {
380
+ if ("staggerMs" in sched) {
381
+ delete sched.staggerMs;
382
+ mutated = true;
383
+ }
384
+ } else if (sched.staggerMs !== targetStaggerMs) {
385
+ sched.staggerMs = targetStaggerMs;
386
+ mutated = true;
387
+ }
388
+ }
389
+ }
390
+ const delivery = raw.delivery;
391
+ if (delivery && typeof delivery === "object" && !Array.isArray(delivery)) {
392
+ const modeRaw = delivery.mode;
393
+ if (typeof modeRaw === "string") {
394
+ if (modeRaw.trim().toLowerCase() === "deliver") {
395
+ delivery.mode = "announce";
396
+ mutated = true;
397
+ trackIssue("legacyDeliveryMode");
398
+ }
399
+ } else if (modeRaw === void 0 || modeRaw === null) {
400
+ delivery.mode = "announce";
401
+ mutated = true;
402
+ }
403
+ }
404
+ const isolation = raw.isolation;
405
+ if (isolation && typeof isolation === "object" && !Array.isArray(isolation)) {
406
+ delete raw.isolation;
407
+ mutated = true;
408
+ }
409
+ const payloadKind = payloadRecord && typeof payloadRecord.kind === "string" ? payloadRecord.kind : "";
410
+ const rawSessionTarget = typeof raw.sessionTarget === "string" ? raw.sessionTarget.trim() : "";
411
+ const loweredSessionTarget = rawSessionTarget.toLowerCase();
412
+ if (loweredSessionTarget === "main" || loweredSessionTarget === "isolated") {
413
+ if (raw.sessionTarget !== loweredSessionTarget) {
414
+ raw.sessionTarget = loweredSessionTarget;
415
+ mutated = true;
416
+ }
417
+ } else if (loweredSessionTarget.startsWith("session:")) {
418
+ const customSessionId = rawSessionTarget.slice(8).trim();
419
+ if (customSessionId) {
420
+ const normalizedSessionTarget = `session:${customSessionId}`;
421
+ if (raw.sessionTarget !== normalizedSessionTarget) {
422
+ raw.sessionTarget = normalizedSessionTarget;
423
+ mutated = true;
424
+ }
425
+ }
426
+ } else if (loweredSessionTarget === "current") {
427
+ if (raw.sessionTarget !== "isolated") {
428
+ raw.sessionTarget = "isolated";
429
+ mutated = true;
430
+ }
431
+ } else {
432
+ const inferredSessionTarget = payloadKind === "agentTurn" ? "isolated" : "main";
433
+ if (raw.sessionTarget !== inferredSessionTarget) {
434
+ raw.sessionTarget = inferredSessionTarget;
435
+ mutated = true;
436
+ }
437
+ }
438
+ const sessionTarget = typeof raw.sessionTarget === "string" ? raw.sessionTarget.trim().toLowerCase() : "";
439
+ const isIsolatedAgentTurn = sessionTarget === "isolated" || sessionTarget === "current" || sessionTarget.startsWith("session:") || sessionTarget === "" && payloadKind === "agentTurn";
440
+ const hasDelivery = delivery && typeof delivery === "object" && !Array.isArray(delivery);
441
+ const normalizedLegacy = normalizeLegacyDeliveryInput({
442
+ delivery: hasDelivery ? delivery : null,
443
+ payload: payloadRecord
444
+ });
445
+ if (isIsolatedAgentTurn && payloadKind === "agentTurn") {
446
+ if (!hasDelivery && normalizedLegacy.delivery) {
447
+ raw.delivery = normalizedLegacy.delivery;
448
+ mutated = true;
449
+ } else if (!hasDelivery) {
450
+ raw.delivery = { mode: "announce" };
451
+ mutated = true;
452
+ } else if (normalizedLegacy.mutated && normalizedLegacy.delivery) {
453
+ raw.delivery = normalizedLegacy.delivery;
454
+ mutated = true;
455
+ }
456
+ } else if (normalizedLegacy.mutated && normalizedLegacy.delivery) {
457
+ raw.delivery = normalizedLegacy.delivery;
458
+ mutated = true;
459
+ }
460
+ }
461
+ return {
462
+ issues,
463
+ jobs,
464
+ mutated
465
+ };
466
+ }
467
+ //#endregion
468
+ //#region src/infra/package-json.ts
469
+ async function readPackageVersion(root) {
470
+ try {
471
+ const raw = await fs.readFile(path.join(root, "package.json"), "utf-8");
472
+ const version = JSON.parse(raw)?.version?.trim();
473
+ return version ? version : null;
474
+ } catch {
475
+ return null;
476
+ }
477
+ }
478
+ async function readPackageName(root) {
479
+ try {
480
+ const raw = await fs.readFile(path.join(root, "package.json"), "utf-8");
481
+ const name = JSON.parse(raw)?.name?.trim();
482
+ return name ? name : null;
483
+ } catch {
484
+ return null;
485
+ }
486
+ }
487
+ //#endregion
488
+ //#region src/infra/package-tag.ts
489
+ function normalizePackageTagInput(value, packageNames) {
490
+ const trimmed = value?.trim();
491
+ if (!trimmed) return null;
492
+ for (const packageName of packageNames) {
493
+ if (trimmed === packageName) return null;
494
+ const prefix = `${packageName}@`;
495
+ if (trimmed.startsWith(prefix)) {
496
+ const tag = trimmed.slice(prefix.length).trim();
497
+ return tag ? tag : null;
498
+ }
499
+ }
500
+ return trimmed;
501
+ }
502
+ //#endregion
503
+ //#region src/infra/update-global.ts
504
+ const PRIMARY_PACKAGE_NAME = "moldclaw";
505
+ const ALL_PACKAGE_NAMES = [PRIMARY_PACKAGE_NAME];
506
+ const GLOBAL_RENAME_PREFIX = ".";
507
+ const MOLDCLAW_MAIN_PACKAGE_SPEC = "github:moldclaw/moldclaw#main";
508
+ const NPM_GLOBAL_INSTALL_QUIET_FLAGS = [
509
+ "--no-fund",
510
+ "--no-audit",
511
+ "--loglevel=error"
512
+ ];
513
+ const NPM_GLOBAL_INSTALL_OMIT_OPTIONAL_FLAGS = ["--omit=optional", ...NPM_GLOBAL_INSTALL_QUIET_FLAGS];
514
+ function normalizePackageTarget(value) {
515
+ return value.trim();
516
+ }
517
+ function isMainPackageTarget(value) {
518
+ return normalizePackageTarget(value).toLowerCase() === "main";
519
+ }
520
+ function isExplicitPackageInstallSpec(value) {
521
+ const trimmed = normalizePackageTarget(value);
522
+ if (!trimmed) return false;
523
+ return trimmed.includes("://") || trimmed.includes("#") || /^(?:file|github|git\+ssh|git\+https|git\+http|git\+file|npm):/i.test(trimmed);
524
+ }
525
+ function canResolveRegistryVersionForPackageTarget(value) {
526
+ const trimmed = normalizePackageTarget(value);
527
+ if (!trimmed) return true;
528
+ return !isMainPackageTarget(trimmed) && !isExplicitPackageInstallSpec(trimmed);
529
+ }
530
+ async function resolvePortableGitPathPrepend(env) {
531
+ if (process.platform !== "win32") return [];
532
+ const localAppData = env?.LOCALAPPDATA?.trim() || process.env.LOCALAPPDATA?.trim();
533
+ if (!localAppData) return [];
534
+ const portableGitRoot = path.join(localAppData, "moldClaw", "deps", "portable-git");
535
+ const candidates = [
536
+ path.join(portableGitRoot, "mingw64", "bin"),
537
+ path.join(portableGitRoot, "usr", "bin"),
538
+ path.join(portableGitRoot, "cmd"),
539
+ path.join(portableGitRoot, "bin")
540
+ ];
541
+ const existing = [];
542
+ for (const candidate of candidates) if (await pathExists(candidate)) existing.push(candidate);
543
+ return existing;
544
+ }
545
+ function applyWindowsPackageInstallEnv(env) {
546
+ if (process.platform !== "win32") return;
547
+ env.NPM_CONFIG_UPDATE_NOTIFIER = "false";
548
+ env.NPM_CONFIG_FUND = "false";
549
+ env.NPM_CONFIG_AUDIT = "false";
550
+ env.NPM_CONFIG_SCRIPT_SHELL = "cmd.exe";
551
+ env.NODE_LLAMA_CPP_SKIP_DOWNLOAD = "1";
552
+ }
553
+ function resolveGlobalInstallSpec(params) {
554
+ const override = params.env?.MOLDCLAW_UPDATE_PACKAGE_SPEC?.trim() || process.env.MOLDCLAW_UPDATE_PACKAGE_SPEC?.trim();
555
+ if (override) return override;
556
+ const target = normalizePackageTarget(params.tag);
557
+ if (isMainPackageTarget(target)) return MOLDCLAW_MAIN_PACKAGE_SPEC;
558
+ if (isExplicitPackageInstallSpec(target)) return target;
559
+ return `${params.packageName}@${target}`;
560
+ }
561
+ async function createGlobalInstallEnv(env) {
562
+ const pathPrepend = await resolvePortableGitPathPrepend(env);
563
+ if (pathPrepend.length === 0 && process.platform !== "win32") return env;
564
+ const merged = Object.fromEntries(Object.entries(env ?? process.env).filter(([, value]) => value != null).map(([key, value]) => [key, String(value)]));
565
+ applyPathPrepend(merged, pathPrepend);
566
+ applyWindowsPackageInstallEnv(merged);
567
+ return merged;
568
+ }
569
+ async function tryRealpath(targetPath) {
570
+ try {
571
+ return await fs.realpath(targetPath);
572
+ } catch {
573
+ return path.resolve(targetPath);
574
+ }
575
+ }
576
+ function resolveBunGlobalRoot() {
577
+ const bunInstall = process.env.BUN_INSTALL?.trim() || path.join(os.homedir(), ".bun");
578
+ return path.join(bunInstall, "install", "global", "node_modules");
579
+ }
580
+ async function resolveGlobalRoot(manager, runCommand, timeoutMs) {
581
+ if (manager === "bun") return resolveBunGlobalRoot();
582
+ const res = await runCommand(manager === "pnpm" ? [
583
+ "pnpm",
584
+ "root",
585
+ "-g"
586
+ ] : [
587
+ "npm",
588
+ "root",
589
+ "-g"
590
+ ], { timeoutMs }).catch(() => null);
591
+ if (!res || res.code !== 0) return null;
592
+ return res.stdout.trim() || null;
593
+ }
594
+ async function resolveGlobalPackageRoot(manager, runCommand, timeoutMs) {
595
+ const root = await resolveGlobalRoot(manager, runCommand, timeoutMs);
596
+ if (!root) return null;
597
+ return path.join(root, PRIMARY_PACKAGE_NAME);
598
+ }
599
+ async function detectGlobalInstallManagerForRoot(runCommand, pkgRoot, timeoutMs) {
600
+ const pkgReal = await tryRealpath(pkgRoot);
601
+ for (const { manager, argv } of [{
602
+ manager: "npm",
603
+ argv: [
604
+ "npm",
605
+ "root",
606
+ "-g"
607
+ ]
608
+ }, {
609
+ manager: "pnpm",
610
+ argv: [
611
+ "pnpm",
612
+ "root",
613
+ "-g"
614
+ ]
615
+ }]) {
616
+ const res = await runCommand(argv, { timeoutMs }).catch(() => null);
617
+ if (!res || res.code !== 0) continue;
618
+ const globalRoot = res.stdout.trim();
619
+ if (!globalRoot) continue;
620
+ const globalReal = await tryRealpath(globalRoot);
621
+ for (const name of ALL_PACKAGE_NAMES) {
622
+ const expectedReal = await tryRealpath(path.join(globalReal, name));
623
+ if (path.resolve(expectedReal) === path.resolve(pkgReal)) return manager;
624
+ }
625
+ }
626
+ const bunGlobalReal = await tryRealpath(resolveBunGlobalRoot());
627
+ for (const name of ALL_PACKAGE_NAMES) {
628
+ const bunExpectedReal = await tryRealpath(path.join(bunGlobalReal, name));
629
+ if (path.resolve(bunExpectedReal) === path.resolve(pkgReal)) return "bun";
630
+ }
631
+ return null;
632
+ }
633
+ async function detectGlobalInstallManagerByPresence(runCommand, timeoutMs) {
634
+ for (const manager of ["npm", "pnpm"]) {
635
+ const root = await resolveGlobalRoot(manager, runCommand, timeoutMs);
636
+ if (!root) continue;
637
+ for (const name of ALL_PACKAGE_NAMES) if (await pathExists(path.join(root, name))) return manager;
638
+ }
639
+ const bunRoot = resolveBunGlobalRoot();
640
+ for (const name of ALL_PACKAGE_NAMES) if (await pathExists(path.join(bunRoot, name))) return "bun";
641
+ return null;
642
+ }
643
+ function globalInstallArgs(manager, spec) {
644
+ if (manager === "pnpm") return [
645
+ "pnpm",
646
+ "add",
647
+ "-g",
648
+ spec
649
+ ];
650
+ if (manager === "bun") return [
651
+ "bun",
652
+ "add",
653
+ "-g",
654
+ spec
655
+ ];
656
+ return [
657
+ "npm",
658
+ "i",
659
+ "-g",
660
+ spec,
661
+ ...NPM_GLOBAL_INSTALL_QUIET_FLAGS
662
+ ];
663
+ }
664
+ function globalInstallFallbackArgs(manager, spec) {
665
+ if (manager !== "npm") return null;
666
+ return [
667
+ "npm",
668
+ "i",
669
+ "-g",
670
+ spec,
671
+ ...NPM_GLOBAL_INSTALL_OMIT_OPTIONAL_FLAGS
672
+ ];
673
+ }
674
+ async function cleanupGlobalRenameDirs(params) {
675
+ const removed = [];
676
+ const root = params.globalRoot.trim();
677
+ const name = params.packageName.trim();
678
+ if (!root || !name) return { removed };
679
+ const prefix = `${GLOBAL_RENAME_PREFIX}${name}-`;
680
+ let entries = [];
681
+ try {
682
+ entries = await fs.readdir(root);
683
+ } catch {
684
+ return { removed };
685
+ }
686
+ for (const entry of entries) {
687
+ if (!entry.startsWith(prefix)) continue;
688
+ const target = path.join(root, entry);
689
+ try {
690
+ if (!(await fs.lstat(target)).isDirectory()) continue;
691
+ await fs.rm(target, {
692
+ recursive: true,
693
+ force: true
694
+ });
695
+ removed.push(entry);
696
+ } catch {}
697
+ }
698
+ return { removed };
699
+ }
700
+ //#endregion
701
+ //#region src/infra/update-runner.ts
702
+ const DEFAULT_TIMEOUT_MS = 20 * 6e4;
703
+ const MAX_LOG_CHARS = 8e3;
704
+ const PREFLIGHT_MAX_COMMITS = 10;
705
+ const START_DIRS = [
706
+ "cwd",
707
+ "argv1",
708
+ "process"
709
+ ];
710
+ const DEFAULT_PACKAGE_NAME = "moldclaw";
711
+ const CORE_PACKAGE_NAMES = new Set([DEFAULT_PACKAGE_NAME]);
712
+ function normalizeDir(value) {
713
+ if (!value) return null;
714
+ const trimmed = value.trim();
715
+ if (!trimmed) return null;
716
+ return path.resolve(trimmed);
717
+ }
718
+ function resolveNodeModulesBinPackageRoot(argv1) {
719
+ const normalized = path.resolve(argv1);
720
+ const parts = normalized.split(path.sep);
721
+ const binIndex = parts.lastIndexOf(".bin");
722
+ if (binIndex <= 0) return null;
723
+ if (parts[binIndex - 1] !== "node_modules") return null;
724
+ const binName = path.basename(normalized);
725
+ const nodeModulesDir = parts.slice(0, binIndex).join(path.sep);
726
+ return path.join(nodeModulesDir, binName);
727
+ }
728
+ function buildStartDirs(opts) {
729
+ const dirs = [];
730
+ const cwd = normalizeDir(opts.cwd);
731
+ if (cwd) dirs.push(cwd);
732
+ const argv1 = normalizeDir(opts.argv1);
733
+ if (argv1) {
734
+ dirs.push(path.dirname(argv1));
735
+ const packageRoot = resolveNodeModulesBinPackageRoot(argv1);
736
+ if (packageRoot) dirs.push(packageRoot);
737
+ }
738
+ const proc = normalizeDir(process.cwd());
739
+ if (proc) dirs.push(proc);
740
+ return Array.from(new Set(dirs));
741
+ }
742
+ async function readBranchName(runCommand, root, timeoutMs) {
743
+ const res = await runCommand([
744
+ "git",
745
+ "-C",
746
+ root,
747
+ "rev-parse",
748
+ "--abbrev-ref",
749
+ "HEAD"
750
+ ], { timeoutMs }).catch(() => null);
751
+ if (!res || res.code !== 0) return null;
752
+ return res.stdout.trim() || null;
753
+ }
754
+ async function listGitTags(runCommand, root, timeoutMs, pattern = "v*") {
755
+ const res = await runCommand([
756
+ "git",
757
+ "-C",
758
+ root,
759
+ "tag",
760
+ "--list",
761
+ pattern,
762
+ "--sort=-v:refname"
763
+ ], { timeoutMs }).catch(() => null);
764
+ if (!res || res.code !== 0) return [];
765
+ return res.stdout.split("\n").map((line) => line.trim()).filter(Boolean);
766
+ }
767
+ async function resolveChannelTag(runCommand, root, timeoutMs, channel) {
768
+ const tags = await listGitTags(runCommand, root, timeoutMs);
769
+ if (channel === "beta") {
770
+ const betaTag = tags.find((tag) => isBetaTag(tag)) ?? null;
771
+ const stableTag = tags.find((tag) => isStableTag(tag)) ?? null;
772
+ if (!betaTag) return stableTag;
773
+ if (!stableTag) return betaTag;
774
+ const cmp = compareSemverStrings(betaTag, stableTag);
775
+ if (cmp != null && cmp < 0) return stableTag;
776
+ return betaTag;
777
+ }
778
+ return tags.find((tag) => isStableTag(tag)) ?? null;
779
+ }
780
+ async function resolveGitRoot(runCommand, candidates, timeoutMs) {
781
+ for (const dir of candidates) {
782
+ const res = await runCommand([
783
+ "git",
784
+ "-C",
785
+ dir,
786
+ "rev-parse",
787
+ "--show-toplevel"
788
+ ], { timeoutMs }).catch(() => null);
789
+ if (!res) continue;
790
+ if (res.code === 0) {
791
+ const root = res.stdout.trim();
792
+ if (root) return root;
793
+ }
794
+ }
795
+ return null;
796
+ }
797
+ async function findPackageRoot(candidates) {
798
+ for (const dir of candidates) {
799
+ let current = dir;
800
+ for (let i = 0; i < 12; i += 1) {
801
+ const pkgPath = path.join(current, "package.json");
802
+ try {
803
+ const raw = await fs.readFile(pkgPath, "utf-8");
804
+ const name = JSON.parse(raw)?.name?.trim();
805
+ if (name && CORE_PACKAGE_NAMES.has(name)) return current;
806
+ } catch {}
807
+ const parent = path.dirname(current);
808
+ if (parent === current) break;
809
+ current = parent;
810
+ }
811
+ }
812
+ return null;
813
+ }
814
+ async function detectPackageManager(root) {
815
+ return await detectPackageManager$1(root) ?? "npm";
816
+ }
817
+ async function runStep(opts) {
818
+ const { runCommand, name, argv, cwd, timeoutMs, env, progress, stepIndex, totalSteps } = opts;
819
+ const command = argv.join(" ");
820
+ const stepInfo = {
821
+ name,
822
+ command,
823
+ index: stepIndex,
824
+ total: totalSteps
825
+ };
826
+ progress?.onStepStart?.(stepInfo);
827
+ const started = Date.now();
828
+ const result = await runCommand(argv, {
829
+ cwd,
830
+ timeoutMs,
831
+ env
832
+ });
833
+ const durationMs = Date.now() - started;
834
+ const stderrTail = trimLogTail(result.stderr, MAX_LOG_CHARS);
835
+ progress?.onStepComplete?.({
836
+ ...stepInfo,
837
+ durationMs,
838
+ exitCode: result.code,
839
+ stderrTail
840
+ });
841
+ return {
842
+ name,
843
+ command,
844
+ cwd,
845
+ durationMs,
846
+ exitCode: result.code,
847
+ stdoutTail: trimLogTail(result.stdout, MAX_LOG_CHARS),
848
+ stderrTail: trimLogTail(result.stderr, MAX_LOG_CHARS)
849
+ };
850
+ }
851
+ function managerScriptArgs(manager, script, args = []) {
852
+ if (manager === "pnpm") return [
853
+ "pnpm",
854
+ script,
855
+ ...args
856
+ ];
857
+ if (manager === "bun") return [
858
+ "bun",
859
+ "run",
860
+ script,
861
+ ...args
862
+ ];
863
+ if (args.length > 0) return [
864
+ "npm",
865
+ "run",
866
+ script,
867
+ "--",
868
+ ...args
869
+ ];
870
+ return [
871
+ "npm",
872
+ "run",
873
+ script
874
+ ];
875
+ }
876
+ function managerInstallArgs(manager) {
877
+ if (manager === "pnpm") return ["pnpm", "install"];
878
+ if (manager === "bun") return ["bun", "install"];
879
+ return ["npm", "install"];
880
+ }
881
+ function normalizeTag(tag) {
882
+ return normalizePackageTagInput(tag, ["moldclaw", DEFAULT_PACKAGE_NAME]) ?? "latest";
883
+ }
884
+ async function runGatewayUpdate(opts = {}) {
885
+ const startedAt = Date.now();
886
+ const runCommand = opts.runCommand ?? (async (argv, options) => {
887
+ const res = await runCommandWithTimeout(argv, options);
888
+ return {
889
+ stdout: res.stdout,
890
+ stderr: res.stderr,
891
+ code: res.code
892
+ };
893
+ });
894
+ const timeoutMs = opts.timeoutMs ?? DEFAULT_TIMEOUT_MS;
895
+ const progress = opts.progress;
896
+ const steps = [];
897
+ const candidates = buildStartDirs(opts);
898
+ let stepIndex = 0;
899
+ let gitTotalSteps = 0;
900
+ const step = (name, argv, cwd, env) => {
901
+ const currentIndex = stepIndex;
902
+ stepIndex += 1;
903
+ return {
904
+ runCommand,
905
+ name,
906
+ argv,
907
+ cwd,
908
+ timeoutMs,
909
+ env,
910
+ progress,
911
+ stepIndex: currentIndex,
912
+ totalSteps: gitTotalSteps
913
+ };
914
+ };
915
+ const pkgRoot = await findPackageRoot(candidates);
916
+ let gitRoot = await resolveGitRoot(runCommand, candidates, timeoutMs);
917
+ if (gitRoot && pkgRoot && path.resolve(gitRoot) !== path.resolve(pkgRoot)) gitRoot = null;
918
+ if (gitRoot && !pkgRoot) return {
919
+ status: "error",
920
+ mode: "unknown",
921
+ root: gitRoot,
922
+ reason: "not-moldclaw-root",
923
+ steps: [],
924
+ durationMs: Date.now() - startedAt
925
+ };
926
+ if (gitRoot && pkgRoot && path.resolve(gitRoot) === path.resolve(pkgRoot)) {
927
+ const beforeSha = (await runCommand([
928
+ "git",
929
+ "-C",
930
+ gitRoot,
931
+ "rev-parse",
932
+ "HEAD"
933
+ ], {
934
+ cwd: gitRoot,
935
+ timeoutMs
936
+ })).stdout.trim() || null;
937
+ const beforeVersion = await readPackageVersion(gitRoot);
938
+ const channel = opts.channel ?? "dev";
939
+ const branch = channel === "dev" ? await readBranchName(runCommand, gitRoot, timeoutMs) : null;
940
+ const needsCheckoutMain = channel === "dev" && branch !== "main";
941
+ gitTotalSteps = channel === "dev" ? needsCheckoutMain ? 11 : 10 : 9;
942
+ const buildGitErrorResult = (reason) => ({
943
+ status: "error",
944
+ mode: "git",
945
+ root: gitRoot,
946
+ reason,
947
+ before: {
948
+ sha: beforeSha,
949
+ version: beforeVersion
950
+ },
951
+ steps,
952
+ durationMs: Date.now() - startedAt
953
+ });
954
+ const runGitCheckoutOrFail = async (name, argv) => {
955
+ const checkoutStep = await runStep(step(name, argv, gitRoot));
956
+ steps.push(checkoutStep);
957
+ if (checkoutStep.exitCode !== 0) return buildGitErrorResult("checkout-failed");
958
+ return null;
959
+ };
960
+ const statusCheck = await runStep(step("clean check", [
961
+ "git",
962
+ "-C",
963
+ gitRoot,
964
+ "status",
965
+ "--porcelain",
966
+ "--",
967
+ ":!dist/control-ui/"
968
+ ], gitRoot));
969
+ steps.push(statusCheck);
970
+ if (statusCheck.stdoutTail && statusCheck.stdoutTail.trim().length > 0) return {
971
+ status: "skipped",
972
+ mode: "git",
973
+ root: gitRoot,
974
+ reason: "dirty",
975
+ before: {
976
+ sha: beforeSha,
977
+ version: beforeVersion
978
+ },
979
+ steps,
980
+ durationMs: Date.now() - startedAt
981
+ };
982
+ if (channel === "dev") {
983
+ if (needsCheckoutMain) {
984
+ const failure = await runGitCheckoutOrFail(`git checkout ${DEV_BRANCH}`, [
985
+ "git",
986
+ "-C",
987
+ gitRoot,
988
+ "checkout",
989
+ DEV_BRANCH
990
+ ]);
991
+ if (failure) return failure;
992
+ }
993
+ const upstreamStep = await runStep(step("upstream check", [
994
+ "git",
995
+ "-C",
996
+ gitRoot,
997
+ "rev-parse",
998
+ "--abbrev-ref",
999
+ "--symbolic-full-name",
1000
+ "@{upstream}"
1001
+ ], gitRoot));
1002
+ steps.push(upstreamStep);
1003
+ if (upstreamStep.exitCode !== 0) return {
1004
+ status: "skipped",
1005
+ mode: "git",
1006
+ root: gitRoot,
1007
+ reason: "no-upstream",
1008
+ before: {
1009
+ sha: beforeSha,
1010
+ version: beforeVersion
1011
+ },
1012
+ steps,
1013
+ durationMs: Date.now() - startedAt
1014
+ };
1015
+ const fetchStep = await runStep(step("git fetch", [
1016
+ "git",
1017
+ "-C",
1018
+ gitRoot,
1019
+ "fetch",
1020
+ "--all",
1021
+ "--prune",
1022
+ "--tags"
1023
+ ], gitRoot));
1024
+ steps.push(fetchStep);
1025
+ const upstreamShaStep = await runStep(step("git rev-parse @{upstream}", [
1026
+ "git",
1027
+ "-C",
1028
+ gitRoot,
1029
+ "rev-parse",
1030
+ "@{upstream}"
1031
+ ], gitRoot));
1032
+ steps.push(upstreamShaStep);
1033
+ const upstreamSha = upstreamShaStep.stdoutTail?.trim();
1034
+ if (!upstreamShaStep.stdoutTail || !upstreamSha) return {
1035
+ status: "error",
1036
+ mode: "git",
1037
+ root: gitRoot,
1038
+ reason: "no-upstream-sha",
1039
+ before: {
1040
+ sha: beforeSha,
1041
+ version: beforeVersion
1042
+ },
1043
+ steps,
1044
+ durationMs: Date.now() - startedAt
1045
+ };
1046
+ const revListStep = await runStep(step("git rev-list", [
1047
+ "git",
1048
+ "-C",
1049
+ gitRoot,
1050
+ "rev-list",
1051
+ `--max-count=${PREFLIGHT_MAX_COMMITS}`,
1052
+ upstreamSha
1053
+ ], gitRoot));
1054
+ steps.push(revListStep);
1055
+ if (revListStep.exitCode !== 0) return {
1056
+ status: "error",
1057
+ mode: "git",
1058
+ root: gitRoot,
1059
+ reason: "preflight-revlist-failed",
1060
+ before: {
1061
+ sha: beforeSha,
1062
+ version: beforeVersion
1063
+ },
1064
+ steps,
1065
+ durationMs: Date.now() - startedAt
1066
+ };
1067
+ const candidates = (revListStep.stdoutTail ?? "").split("\n").map((line) => line.trim()).filter(Boolean);
1068
+ if (candidates.length === 0) return {
1069
+ status: "error",
1070
+ mode: "git",
1071
+ root: gitRoot,
1072
+ reason: "preflight-no-candidates",
1073
+ before: {
1074
+ sha: beforeSha,
1075
+ version: beforeVersion
1076
+ },
1077
+ steps,
1078
+ durationMs: Date.now() - startedAt
1079
+ };
1080
+ const manager = await detectPackageManager(gitRoot);
1081
+ const preflightRoot = await fs.mkdtemp(path.join(os.tmpdir(), "moldclaw-update-preflight-"));
1082
+ const worktreeDir = path.join(preflightRoot, "worktree");
1083
+ const worktreeStep = await runStep(step("preflight worktree", [
1084
+ "git",
1085
+ "-C",
1086
+ gitRoot,
1087
+ "worktree",
1088
+ "add",
1089
+ "--detach",
1090
+ worktreeDir,
1091
+ upstreamSha
1092
+ ], gitRoot));
1093
+ steps.push(worktreeStep);
1094
+ if (worktreeStep.exitCode !== 0) {
1095
+ await fs.rm(preflightRoot, {
1096
+ recursive: true,
1097
+ force: true
1098
+ }).catch(() => {});
1099
+ return {
1100
+ status: "error",
1101
+ mode: "git",
1102
+ root: gitRoot,
1103
+ reason: "preflight-worktree-failed",
1104
+ before: {
1105
+ sha: beforeSha,
1106
+ version: beforeVersion
1107
+ },
1108
+ steps,
1109
+ durationMs: Date.now() - startedAt
1110
+ };
1111
+ }
1112
+ let selectedSha = null;
1113
+ try {
1114
+ for (const sha of candidates) {
1115
+ const shortSha = sha.slice(0, 8);
1116
+ const checkoutStep = await runStep(step(`preflight checkout (${shortSha})`, [
1117
+ "git",
1118
+ "-C",
1119
+ worktreeDir,
1120
+ "checkout",
1121
+ "--detach",
1122
+ sha
1123
+ ], worktreeDir));
1124
+ steps.push(checkoutStep);
1125
+ if (checkoutStep.exitCode !== 0) continue;
1126
+ const depsStep = await runStep(step(`preflight deps install (${shortSha})`, managerInstallArgs(manager), worktreeDir));
1127
+ steps.push(depsStep);
1128
+ if (depsStep.exitCode !== 0) continue;
1129
+ const buildStep = await runStep(step(`preflight build (${shortSha})`, managerScriptArgs(manager, "build"), worktreeDir));
1130
+ steps.push(buildStep);
1131
+ if (buildStep.exitCode !== 0) continue;
1132
+ const lintStep = await runStep(step(`preflight lint (${shortSha})`, managerScriptArgs(manager, "lint"), worktreeDir));
1133
+ steps.push(lintStep);
1134
+ if (lintStep.exitCode !== 0) continue;
1135
+ selectedSha = sha;
1136
+ break;
1137
+ }
1138
+ } finally {
1139
+ const removeStep = await runStep(step("preflight cleanup", [
1140
+ "git",
1141
+ "-C",
1142
+ gitRoot,
1143
+ "worktree",
1144
+ "remove",
1145
+ "--force",
1146
+ worktreeDir
1147
+ ], gitRoot));
1148
+ steps.push(removeStep);
1149
+ await runCommand([
1150
+ "git",
1151
+ "-C",
1152
+ gitRoot,
1153
+ "worktree",
1154
+ "prune"
1155
+ ], {
1156
+ cwd: gitRoot,
1157
+ timeoutMs
1158
+ }).catch(() => null);
1159
+ await fs.rm(preflightRoot, {
1160
+ recursive: true,
1161
+ force: true
1162
+ }).catch(() => {});
1163
+ }
1164
+ if (!selectedSha) return {
1165
+ status: "error",
1166
+ mode: "git",
1167
+ root: gitRoot,
1168
+ reason: "preflight-no-good-commit",
1169
+ before: {
1170
+ sha: beforeSha,
1171
+ version: beforeVersion
1172
+ },
1173
+ steps,
1174
+ durationMs: Date.now() - startedAt
1175
+ };
1176
+ const rebaseStep = await runStep(step("git rebase", [
1177
+ "git",
1178
+ "-C",
1179
+ gitRoot,
1180
+ "rebase",
1181
+ selectedSha
1182
+ ], gitRoot));
1183
+ steps.push(rebaseStep);
1184
+ if (rebaseStep.exitCode !== 0) {
1185
+ const abortResult = await runCommand([
1186
+ "git",
1187
+ "-C",
1188
+ gitRoot,
1189
+ "rebase",
1190
+ "--abort"
1191
+ ], {
1192
+ cwd: gitRoot,
1193
+ timeoutMs
1194
+ });
1195
+ steps.push({
1196
+ name: "git rebase --abort",
1197
+ command: "git rebase --abort",
1198
+ cwd: gitRoot,
1199
+ durationMs: 0,
1200
+ exitCode: abortResult.code,
1201
+ stdoutTail: trimLogTail(abortResult.stdout, MAX_LOG_CHARS),
1202
+ stderrTail: trimLogTail(abortResult.stderr, MAX_LOG_CHARS)
1203
+ });
1204
+ return {
1205
+ status: "error",
1206
+ mode: "git",
1207
+ root: gitRoot,
1208
+ reason: "rebase-failed",
1209
+ before: {
1210
+ sha: beforeSha,
1211
+ version: beforeVersion
1212
+ },
1213
+ steps,
1214
+ durationMs: Date.now() - startedAt
1215
+ };
1216
+ }
1217
+ } else {
1218
+ const fetchStep = await runStep(step("git fetch", [
1219
+ "git",
1220
+ "-C",
1221
+ gitRoot,
1222
+ "fetch",
1223
+ "--all",
1224
+ "--prune",
1225
+ "--tags"
1226
+ ], gitRoot));
1227
+ steps.push(fetchStep);
1228
+ if (fetchStep.exitCode !== 0) return {
1229
+ status: "error",
1230
+ mode: "git",
1231
+ root: gitRoot,
1232
+ reason: "fetch-failed",
1233
+ before: {
1234
+ sha: beforeSha,
1235
+ version: beforeVersion
1236
+ },
1237
+ steps,
1238
+ durationMs: Date.now() - startedAt
1239
+ };
1240
+ const tag = await resolveChannelTag(runCommand, gitRoot, timeoutMs, channel);
1241
+ if (!tag) return {
1242
+ status: "error",
1243
+ mode: "git",
1244
+ root: gitRoot,
1245
+ reason: "no-release-tag",
1246
+ before: {
1247
+ sha: beforeSha,
1248
+ version: beforeVersion
1249
+ },
1250
+ steps,
1251
+ durationMs: Date.now() - startedAt
1252
+ };
1253
+ const failure = await runGitCheckoutOrFail(`git checkout ${tag}`, [
1254
+ "git",
1255
+ "-C",
1256
+ gitRoot,
1257
+ "checkout",
1258
+ "--detach",
1259
+ tag
1260
+ ]);
1261
+ if (failure) return failure;
1262
+ }
1263
+ const manager = await detectPackageManager(gitRoot);
1264
+ const depsStep = await runStep(step("deps install", managerInstallArgs(manager), gitRoot));
1265
+ steps.push(depsStep);
1266
+ if (depsStep.exitCode !== 0) return {
1267
+ status: "error",
1268
+ mode: "git",
1269
+ root: gitRoot,
1270
+ reason: "deps-install-failed",
1271
+ before: {
1272
+ sha: beforeSha,
1273
+ version: beforeVersion
1274
+ },
1275
+ steps,
1276
+ durationMs: Date.now() - startedAt
1277
+ };
1278
+ const buildStep = await runStep(step("build", managerScriptArgs(manager, "build"), gitRoot));
1279
+ steps.push(buildStep);
1280
+ if (buildStep.exitCode !== 0) return {
1281
+ status: "error",
1282
+ mode: "git",
1283
+ root: gitRoot,
1284
+ reason: "build-failed",
1285
+ before: {
1286
+ sha: beforeSha,
1287
+ version: beforeVersion
1288
+ },
1289
+ steps,
1290
+ durationMs: Date.now() - startedAt
1291
+ };
1292
+ const uiBuildStep = await runStep(step("ui:build", managerScriptArgs(manager, "ui:build"), gitRoot));
1293
+ steps.push(uiBuildStep);
1294
+ if (uiBuildStep.exitCode !== 0) return {
1295
+ status: "error",
1296
+ mode: "git",
1297
+ root: gitRoot,
1298
+ reason: "ui-build-failed",
1299
+ before: {
1300
+ sha: beforeSha,
1301
+ version: beforeVersion
1302
+ },
1303
+ steps,
1304
+ durationMs: Date.now() - startedAt
1305
+ };
1306
+ const doctorEntry = path.join(gitRoot, "moldclaw.mjs");
1307
+ if (!await fs.stat(doctorEntry).then(() => true).catch(() => false)) {
1308
+ steps.push({
1309
+ name: "moldclaw doctor entry",
1310
+ command: `verify ${doctorEntry}`,
1311
+ cwd: gitRoot,
1312
+ durationMs: 0,
1313
+ exitCode: 1,
1314
+ stderrTail: `missing ${doctorEntry}`
1315
+ });
1316
+ return {
1317
+ status: "error",
1318
+ mode: "git",
1319
+ root: gitRoot,
1320
+ reason: "doctor-entry-missing",
1321
+ before: {
1322
+ sha: beforeSha,
1323
+ version: beforeVersion
1324
+ },
1325
+ steps,
1326
+ durationMs: Date.now() - startedAt
1327
+ };
1328
+ }
1329
+ const doctorStep = await runStep(step("moldclaw doctor", [
1330
+ await resolveStableNodePath(process.execPath),
1331
+ doctorEntry,
1332
+ "doctor",
1333
+ "--non-interactive",
1334
+ "--fix"
1335
+ ], gitRoot, { MOLDCLAW_UPDATE_IN_PROGRESS: "1" }));
1336
+ steps.push(doctorStep);
1337
+ if (!(await resolveControlUiDistIndexHealth({ root: gitRoot })).exists) {
1338
+ const repairArgv = managerScriptArgs(manager, "ui:build");
1339
+ const started = Date.now();
1340
+ const repairResult = await runCommand(repairArgv, {
1341
+ cwd: gitRoot,
1342
+ timeoutMs
1343
+ });
1344
+ const repairStep = {
1345
+ name: "ui:build (post-doctor repair)",
1346
+ command: repairArgv.join(" "),
1347
+ cwd: gitRoot,
1348
+ durationMs: Date.now() - started,
1349
+ exitCode: repairResult.code,
1350
+ stdoutTail: trimLogTail(repairResult.stdout, MAX_LOG_CHARS),
1351
+ stderrTail: trimLogTail(repairResult.stderr, MAX_LOG_CHARS)
1352
+ };
1353
+ steps.push(repairStep);
1354
+ if (repairResult.code !== 0) return {
1355
+ status: "error",
1356
+ mode: "git",
1357
+ root: gitRoot,
1358
+ reason: repairStep.name,
1359
+ before: {
1360
+ sha: beforeSha,
1361
+ version: beforeVersion
1362
+ },
1363
+ steps,
1364
+ durationMs: Date.now() - startedAt
1365
+ };
1366
+ const repairedUiIndexHealth = await resolveControlUiDistIndexHealth({ root: gitRoot });
1367
+ if (!repairedUiIndexHealth.exists) {
1368
+ const uiIndexPath = repairedUiIndexHealth.indexPath ?? resolveControlUiDistIndexPathForRoot(gitRoot);
1369
+ steps.push({
1370
+ name: "ui assets verify",
1371
+ command: `verify ${uiIndexPath}`,
1372
+ cwd: gitRoot,
1373
+ durationMs: 0,
1374
+ exitCode: 1,
1375
+ stderrTail: `missing ${uiIndexPath}`
1376
+ });
1377
+ return {
1378
+ status: "error",
1379
+ mode: "git",
1380
+ root: gitRoot,
1381
+ reason: "ui-assets-missing",
1382
+ before: {
1383
+ sha: beforeSha,
1384
+ version: beforeVersion
1385
+ },
1386
+ steps,
1387
+ durationMs: Date.now() - startedAt
1388
+ };
1389
+ }
1390
+ }
1391
+ const failedStep = steps.find((s) => s.exitCode !== 0);
1392
+ const afterShaStep = await runStep(step("git rev-parse HEAD (after)", [
1393
+ "git",
1394
+ "-C",
1395
+ gitRoot,
1396
+ "rev-parse",
1397
+ "HEAD"
1398
+ ], gitRoot));
1399
+ steps.push(afterShaStep);
1400
+ const afterVersion = await readPackageVersion(gitRoot);
1401
+ return {
1402
+ status: failedStep ? "error" : "ok",
1403
+ mode: "git",
1404
+ root: gitRoot,
1405
+ reason: failedStep ? failedStep.name : void 0,
1406
+ before: {
1407
+ sha: beforeSha,
1408
+ version: beforeVersion
1409
+ },
1410
+ after: {
1411
+ sha: afterShaStep.stdoutTail?.trim() ?? null,
1412
+ version: afterVersion
1413
+ },
1414
+ steps,
1415
+ durationMs: Date.now() - startedAt
1416
+ };
1417
+ }
1418
+ if (!pkgRoot) return {
1419
+ status: "error",
1420
+ mode: "unknown",
1421
+ reason: `no root (${START_DIRS.join(",")})`,
1422
+ steps: [],
1423
+ durationMs: Date.now() - startedAt
1424
+ };
1425
+ const beforeVersion = await readPackageVersion(pkgRoot);
1426
+ const globalManager = await detectGlobalInstallManagerForRoot(runCommand, pkgRoot, timeoutMs);
1427
+ if (globalManager) {
1428
+ const packageName = await readPackageName(pkgRoot) ?? DEFAULT_PACKAGE_NAME;
1429
+ await cleanupGlobalRenameDirs({
1430
+ globalRoot: path.dirname(pkgRoot),
1431
+ packageName
1432
+ });
1433
+ const channel = opts.channel ?? "stable";
1434
+ const tag = normalizeTag(opts.tag ?? channelToNpmTag(channel));
1435
+ const steps = [];
1436
+ const globalInstallEnv = await createGlobalInstallEnv();
1437
+ const spec = resolveGlobalInstallSpec({
1438
+ packageName,
1439
+ tag,
1440
+ env: globalInstallEnv
1441
+ });
1442
+ const updateStep = await runStep({
1443
+ runCommand,
1444
+ name: "global update",
1445
+ argv: globalInstallArgs(globalManager, spec),
1446
+ cwd: pkgRoot,
1447
+ timeoutMs,
1448
+ env: globalInstallEnv,
1449
+ progress,
1450
+ stepIndex: 0,
1451
+ totalSteps: 1
1452
+ });
1453
+ steps.push(updateStep);
1454
+ let finalStep = updateStep;
1455
+ if (updateStep.exitCode !== 0) {
1456
+ const fallbackArgv = globalInstallFallbackArgs(globalManager, spec);
1457
+ if (fallbackArgv) {
1458
+ const fallbackStep = await runStep({
1459
+ runCommand,
1460
+ name: "global update (omit optional)",
1461
+ argv: fallbackArgv,
1462
+ cwd: pkgRoot,
1463
+ timeoutMs,
1464
+ env: globalInstallEnv,
1465
+ progress,
1466
+ stepIndex: 0,
1467
+ totalSteps: 1
1468
+ });
1469
+ steps.push(fallbackStep);
1470
+ finalStep = fallbackStep;
1471
+ }
1472
+ }
1473
+ const afterVersion = await readPackageVersion(pkgRoot);
1474
+ return {
1475
+ status: finalStep.exitCode === 0 ? "ok" : "error",
1476
+ mode: globalManager,
1477
+ root: pkgRoot,
1478
+ reason: finalStep.exitCode === 0 ? void 0 : finalStep.name,
1479
+ before: { version: beforeVersion },
1480
+ after: { version: afterVersion },
1481
+ steps,
1482
+ durationMs: Date.now() - startedAt
1483
+ };
1484
+ }
1485
+ return {
1486
+ status: "skipped",
1487
+ mode: "unknown",
1488
+ root: pkgRoot,
1489
+ reason: "not-git-install",
1490
+ before: { version: beforeVersion },
1491
+ steps: [],
1492
+ durationMs: Date.now() - startedAt
1493
+ };
1494
+ }
1495
+ //#endregion
1496
+ export { detectGlobalInstallManagerByPresence as a, resolveGlobalInstallSpec as c, readPackageName as d, readPackageVersion as f, computePreviousRunAtMs as g, computeNextRunAtMs as h, createGlobalInstallEnv as i, resolveGlobalPackageRoot as l, coerceFiniteScheduleNumber as m, canResolveRegistryVersionForPackageTarget as n, detectGlobalInstallManagerForRoot as o, normalizeStoredCronJobs as p, cleanupGlobalRenameDirs as r, globalInstallArgs as s, runGatewayUpdate as t, normalizePackageTagInput as u };