@vibesdotdev/plugins 0.0.0-stage → 1.0.0-rc.1

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 (330) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +54 -2
  3. package/VIBES.md +165 -0
  4. package/dist/ai/index.d.ts +4 -0
  5. package/dist/ai/index.d.ts.map +1 -0
  6. package/dist/ai/index.js +3 -0
  7. package/dist/ai/index.js.map +1 -0
  8. package/dist/ai/plugin.impl.cloud.d.ts +4 -0
  9. package/dist/ai/plugin.impl.cloud.d.ts.map +1 -0
  10. package/dist/ai/plugin.impl.cloud.js +32 -0
  11. package/dist/ai/plugin.impl.cloud.js.map +1 -0
  12. package/dist/ai/plugin.impl.consumer.d.ts +7 -0
  13. package/dist/ai/plugin.impl.consumer.d.ts.map +1 -0
  14. package/dist/ai/plugin.impl.consumer.js +222 -0
  15. package/dist/ai/plugin.impl.consumer.js.map +1 -0
  16. package/dist/auth/consumer.plugin.d.ts +3 -0
  17. package/dist/auth/consumer.plugin.d.ts.map +1 -0
  18. package/dist/auth/consumer.plugin.js +105 -0
  19. package/dist/auth/consumer.plugin.js.map +1 -0
  20. package/dist/auth/index.d.ts +2 -0
  21. package/dist/auth/index.d.ts.map +1 -0
  22. package/dist/auth/index.js +2 -0
  23. package/dist/auth/index.js.map +1 -0
  24. package/dist/auth/plugin.d.ts +4 -0
  25. package/dist/auth/plugin.d.ts.map +1 -0
  26. package/dist/auth/plugin.js +33 -0
  27. package/dist/auth/plugin.js.map +1 -0
  28. package/dist/automation/consumer.plugin.d.ts +3 -0
  29. package/dist/automation/consumer.plugin.d.ts.map +1 -0
  30. package/dist/automation/consumer.plugin.js +92 -0
  31. package/dist/automation/consumer.plugin.js.map +1 -0
  32. package/dist/automation/index.d.ts +2 -0
  33. package/dist/automation/index.d.ts.map +1 -0
  34. package/dist/automation/index.js +2 -0
  35. package/dist/automation/index.js.map +1 -0
  36. package/dist/automation/plugin.d.ts +4 -0
  37. package/dist/automation/plugin.d.ts.map +1 -0
  38. package/dist/automation/plugin.js +30 -0
  39. package/dist/automation/plugin.js.map +1 -0
  40. package/dist/bun/host.d.ts +44 -0
  41. package/dist/bun/host.d.ts.map +1 -0
  42. package/dist/bun/host.js +71 -0
  43. package/dist/bun/host.js.map +1 -0
  44. package/dist/cli/child-failure.d.ts +37 -0
  45. package/dist/cli/child-failure.d.ts.map +1 -0
  46. package/dist/cli/child-failure.js +86 -0
  47. package/dist/cli/child-failure.js.map +1 -0
  48. package/dist/cli/context.d.ts +12 -0
  49. package/dist/cli/context.d.ts.map +1 -0
  50. package/dist/cli/context.js +11 -0
  51. package/dist/cli/context.js.map +1 -0
  52. package/dist/cli/execution.d.ts +10 -0
  53. package/dist/cli/execution.d.ts.map +1 -0
  54. package/dist/cli/execution.js +20 -0
  55. package/dist/cli/execution.js.map +1 -0
  56. package/dist/cli/failure-facts.d.ts +16 -0
  57. package/dist/cli/failure-facts.d.ts.map +1 -0
  58. package/dist/cli/failure-facts.js +39 -0
  59. package/dist/cli/failure-facts.js.map +1 -0
  60. package/dist/cli/package-manager.consumer.d.ts +106 -0
  61. package/dist/cli/package-manager.consumer.d.ts.map +1 -0
  62. package/dist/cli/package-manager.consumer.js +258 -0
  63. package/dist/cli/package-manager.consumer.js.map +1 -0
  64. package/dist/cli/plugin.d.ts +9 -0
  65. package/dist/cli/plugin.d.ts.map +1 -0
  66. package/dist/cli/plugin.js +34 -0
  67. package/dist/cli/plugin.js.map +1 -0
  68. package/dist/cli/plugins.add.cli-command.descriptor.d.ts +36 -0
  69. package/dist/cli/plugins.add.cli-command.descriptor.d.ts.map +1 -0
  70. package/dist/cli/plugins.add.cli-command.descriptor.js +31 -0
  71. package/dist/cli/plugins.add.cli-command.descriptor.js.map +1 -0
  72. package/dist/cli/plugins.add.cli-command.impl.consumer.d.ts +63 -0
  73. package/dist/cli/plugins.add.cli-command.impl.consumer.d.ts.map +1 -0
  74. package/dist/cli/plugins.add.cli-command.impl.consumer.js +206 -0
  75. package/dist/cli/plugins.add.cli-command.impl.consumer.js.map +1 -0
  76. package/dist/cli/plugins.cli-group.descriptor.d.ts +4 -0
  77. package/dist/cli/plugins.cli-group.descriptor.d.ts.map +1 -0
  78. package/dist/cli/plugins.cli-group.descriptor.js +10 -0
  79. package/dist/cli/plugins.cli-group.descriptor.js.map +1 -0
  80. package/dist/cli/plugins.host.cli-command.descriptor.d.ts +31 -0
  81. package/dist/cli/plugins.host.cli-command.descriptor.d.ts.map +1 -0
  82. package/dist/cli/plugins.host.cli-command.descriptor.js +37 -0
  83. package/dist/cli/plugins.host.cli-command.descriptor.js.map +1 -0
  84. package/dist/cli/plugins.host.cli-command.impl.consumer.d.ts +29 -0
  85. package/dist/cli/plugins.host.cli-command.impl.consumer.d.ts.map +1 -0
  86. package/dist/cli/plugins.host.cli-command.impl.consumer.js +109 -0
  87. package/dist/cli/plugins.host.cli-command.impl.consumer.js.map +1 -0
  88. package/dist/cli/plugins.link.cli-command.descriptor.d.ts +35 -0
  89. package/dist/cli/plugins.link.cli-command.descriptor.d.ts.map +1 -0
  90. package/dist/cli/plugins.link.cli-command.descriptor.js +32 -0
  91. package/dist/cli/plugins.link.cli-command.descriptor.js.map +1 -0
  92. package/dist/cli/plugins.link.cli-command.impl.consumer.d.ts +31 -0
  93. package/dist/cli/plugins.link.cli-command.impl.consumer.d.ts.map +1 -0
  94. package/dist/cli/plugins.link.cli-command.impl.consumer.js +104 -0
  95. package/dist/cli/plugins.link.cli-command.impl.consumer.js.map +1 -0
  96. package/dist/cli/plugins.list.cli-command.descriptor.d.ts +26 -0
  97. package/dist/cli/plugins.list.cli-command.descriptor.d.ts.map +1 -0
  98. package/dist/cli/plugins.list.cli-command.descriptor.js +22 -0
  99. package/dist/cli/plugins.list.cli-command.descriptor.js.map +1 -0
  100. package/dist/cli/plugins.list.cli-command.impl.consumer.d.ts +116 -0
  101. package/dist/cli/plugins.list.cli-command.impl.consumer.d.ts.map +1 -0
  102. package/dist/cli/plugins.list.cli-command.impl.consumer.js +343 -0
  103. package/dist/cli/plugins.list.cli-command.impl.consumer.js.map +1 -0
  104. package/dist/cli/plugins.remove.cli-command.descriptor.d.ts +31 -0
  105. package/dist/cli/plugins.remove.cli-command.descriptor.d.ts.map +1 -0
  106. package/dist/cli/plugins.remove.cli-command.descriptor.js +26 -0
  107. package/dist/cli/plugins.remove.cli-command.descriptor.js.map +1 -0
  108. package/dist/cli/plugins.remove.cli-command.impl.consumer.d.ts +30 -0
  109. package/dist/cli/plugins.remove.cli-command.impl.consumer.d.ts.map +1 -0
  110. package/dist/cli/plugins.remove.cli-command.impl.consumer.js +80 -0
  111. package/dist/cli/plugins.remove.cli-command.impl.consumer.js.map +1 -0
  112. package/dist/cli/plugins.unlink.cli-command.descriptor.d.ts +31 -0
  113. package/dist/cli/plugins.unlink.cli-command.descriptor.d.ts.map +1 -0
  114. package/dist/cli/plugins.unlink.cli-command.descriptor.js +21 -0
  115. package/dist/cli/plugins.unlink.cli-command.descriptor.js.map +1 -0
  116. package/dist/cli/plugins.unlink.cli-command.impl.consumer.d.ts +76 -0
  117. package/dist/cli/plugins.unlink.cli-command.impl.consumer.d.ts.map +1 -0
  118. package/dist/cli/plugins.unlink.cli-command.impl.consumer.js +190 -0
  119. package/dist/cli/plugins.unlink.cli-command.impl.consumer.js.map +1 -0
  120. package/dist/cli/registry-sign-in.consumer.d.ts +80 -0
  121. package/dist/cli/registry-sign-in.consumer.d.ts.map +1 -0
  122. package/dist/cli/registry-sign-in.consumer.js +199 -0
  123. package/dist/cli/registry-sign-in.consumer.js.map +1 -0
  124. package/dist/cli/roll.d.ts +230 -0
  125. package/dist/cli/roll.d.ts.map +1 -0
  126. package/dist/cli/roll.js +569 -0
  127. package/dist/cli/roll.js.map +1 -0
  128. package/dist/cli/schemas/context.d.ts +10 -0
  129. package/dist/cli/schemas/context.d.ts.map +1 -0
  130. package/dist/cli/schemas/context.js +3 -0
  131. package/dist/cli/schemas/context.js.map +1 -0
  132. package/dist/cli/schemas/scopes.d.ts +37 -0
  133. package/dist/cli/schemas/scopes.d.ts.map +1 -0
  134. package/dist/cli/schemas/scopes.js +11 -0
  135. package/dist/cli/schemas/scopes.js.map +1 -0
  136. package/dist/cli/schemas/unlink.d.ts +18 -0
  137. package/dist/cli/schemas/unlink.d.ts.map +1 -0
  138. package/dist/cli/schemas/unlink.js +3 -0
  139. package/dist/cli/schemas/unlink.js.map +1 -0
  140. package/dist/cli/schemas/update.d.ts +77 -0
  141. package/dist/cli/schemas/update.d.ts.map +1 -0
  142. package/dist/cli/schemas/update.js +3 -0
  143. package/dist/cli/schemas/update.js.map +1 -0
  144. package/dist/cli/scopes.d.ts +50 -0
  145. package/dist/cli/scopes.d.ts.map +1 -0
  146. package/dist/cli/scopes.js +90 -0
  147. package/dist/cli/scopes.js.map +1 -0
  148. package/dist/cli/seed.d.ts +232 -0
  149. package/dist/cli/seed.d.ts.map +1 -0
  150. package/dist/cli/seed.js +590 -0
  151. package/dist/cli/seed.js.map +1 -0
  152. package/dist/cli/self-update.d.ts +120 -0
  153. package/dist/cli/self-update.d.ts.map +1 -0
  154. package/dist/cli/self-update.js +274 -0
  155. package/dist/cli/self-update.js.map +1 -0
  156. package/dist/cli/update.cli-command.descriptor.d.ts +62 -0
  157. package/dist/cli/update.cli-command.descriptor.d.ts.map +1 -0
  158. package/dist/cli/update.cli-command.descriptor.js +49 -0
  159. package/dist/cli/update.cli-command.descriptor.js.map +1 -0
  160. package/dist/cli/update.cli-command.impl.consumer.d.ts +178 -0
  161. package/dist/cli/update.cli-command.impl.consumer.d.ts.map +1 -0
  162. package/dist/cli/update.cli-command.impl.consumer.js +750 -0
  163. package/dist/cli/update.cli-command.impl.consumer.js.map +1 -0
  164. package/dist/comms/consumer.plugin.d.ts +3 -0
  165. package/dist/comms/consumer.plugin.d.ts.map +1 -0
  166. package/dist/comms/consumer.plugin.js +108 -0
  167. package/dist/comms/consumer.plugin.js.map +1 -0
  168. package/dist/comms/index.d.ts +2 -0
  169. package/dist/comms/index.d.ts.map +1 -0
  170. package/dist/comms/index.js +2 -0
  171. package/dist/comms/index.js.map +1 -0
  172. package/dist/comms/plugin.d.ts +4 -0
  173. package/dist/comms/plugin.d.ts.map +1 -0
  174. package/dist/comms/plugin.js +30 -0
  175. package/dist/comms/plugin.js.map +1 -0
  176. package/dist/consumer.d.ts +3 -0
  177. package/dist/consumer.d.ts.map +1 -0
  178. package/dist/consumer.js +3 -0
  179. package/dist/consumer.js.map +1 -0
  180. package/dist/consumer.plugin.d.ts +63 -0
  181. package/dist/consumer.plugin.d.ts.map +1 -0
  182. package/dist/consumer.plugin.js +89 -0
  183. package/dist/consumer.plugin.js.map +1 -0
  184. package/dist/core/consumer.plugin.d.ts +4 -0
  185. package/dist/core/consumer.plugin.d.ts.map +1 -0
  186. package/dist/core/consumer.plugin.js +364 -0
  187. package/dist/core/consumer.plugin.js.map +1 -0
  188. package/dist/core/index.d.ts +2 -0
  189. package/dist/core/index.d.ts.map +1 -0
  190. package/dist/core/index.js +2 -0
  191. package/dist/core/index.js.map +1 -0
  192. package/dist/core/optional-member.d.ts +11 -0
  193. package/dist/core/optional-member.d.ts.map +1 -0
  194. package/dist/core/optional-member.js +68 -0
  195. package/dist/core/optional-member.js.map +1 -0
  196. package/dist/core/optional-plugin.d.ts +40 -0
  197. package/dist/core/optional-plugin.d.ts.map +1 -0
  198. package/dist/core/optional-plugin.js +107 -0
  199. package/dist/core/optional-plugin.js.map +1 -0
  200. package/dist/core/plugin.d.ts +10 -0
  201. package/dist/core/plugin.d.ts.map +1 -0
  202. package/dist/core/plugin.js +64 -0
  203. package/dist/core/plugin.js.map +1 -0
  204. package/dist/core/setup-requirements.descriptors.d.ts +7 -0
  205. package/dist/core/setup-requirements.descriptors.d.ts.map +1 -0
  206. package/dist/core/setup-requirements.descriptors.js +117 -0
  207. package/dist/core/setup-requirements.descriptors.js.map +1 -0
  208. package/dist/data/consumer.plugin.d.ts +3 -0
  209. package/dist/data/consumer.plugin.d.ts.map +1 -0
  210. package/dist/data/consumer.plugin.js +99 -0
  211. package/dist/data/consumer.plugin.js.map +1 -0
  212. package/dist/data/index.d.ts +2 -0
  213. package/dist/data/index.d.ts.map +1 -0
  214. package/dist/data/index.js +2 -0
  215. package/dist/data/index.js.map +1 -0
  216. package/dist/data/plugin.d.ts +4 -0
  217. package/dist/data/plugin.d.ts.map +1 -0
  218. package/dist/data/plugin.js +37 -0
  219. package/dist/data/plugin.js.map +1 -0
  220. package/dist/devtools/consumer.plugin.d.ts +3 -0
  221. package/dist/devtools/consumer.plugin.d.ts.map +1 -0
  222. package/dist/devtools/consumer.plugin.js +323 -0
  223. package/dist/devtools/consumer.plugin.js.map +1 -0
  224. package/dist/devtools/index.d.ts +2 -0
  225. package/dist/devtools/index.d.ts.map +1 -0
  226. package/dist/devtools/index.js +2 -0
  227. package/dist/devtools/index.js.map +1 -0
  228. package/dist/devtools/plugin.d.ts +4 -0
  229. package/dist/devtools/plugin.d.ts.map +1 -0
  230. package/dist/devtools/plugin.js +34 -0
  231. package/dist/devtools/plugin.js.map +1 -0
  232. package/dist/filesystem/index.d.ts +2 -0
  233. package/dist/filesystem/index.d.ts.map +1 -0
  234. package/dist/filesystem/index.js +2 -0
  235. package/dist/filesystem/index.js.map +1 -0
  236. package/dist/filesystem/plugin.d.ts +4 -0
  237. package/dist/filesystem/plugin.d.ts.map +1 -0
  238. package/dist/filesystem/plugin.js +21 -0
  239. package/dist/filesystem/plugin.js.map +1 -0
  240. package/dist/index.d.ts +3 -0
  241. package/dist/index.d.ts.map +1 -0
  242. package/dist/index.js +4 -0
  243. package/dist/index.js.map +1 -0
  244. package/dist/plugin.d.ts +7 -0
  245. package/dist/plugin.d.ts.map +1 -0
  246. package/dist/plugin.js +16 -0
  247. package/dist/plugin.js.map +1 -0
  248. package/dist/schemas/ai.d.ts +119 -0
  249. package/dist/schemas/ai.d.ts.map +1 -0
  250. package/dist/schemas/ai.js +84 -0
  251. package/dist/schemas/ai.js.map +1 -0
  252. package/dist/schemas/auth.d.ts +15 -0
  253. package/dist/schemas/auth.d.ts.map +1 -0
  254. package/dist/schemas/auth.js +19 -0
  255. package/dist/schemas/auth.js.map +1 -0
  256. package/dist/schemas/automation.d.ts +66 -0
  257. package/dist/schemas/automation.d.ts.map +1 -0
  258. package/dist/schemas/automation.js +36 -0
  259. package/dist/schemas/automation.js.map +1 -0
  260. package/dist/schemas/comms.d.ts +13 -0
  261. package/dist/schemas/comms.d.ts.map +1 -0
  262. package/dist/schemas/comms.js +27 -0
  263. package/dist/schemas/comms.js.map +1 -0
  264. package/dist/schemas/core.d.ts +102 -0
  265. package/dist/schemas/core.d.ts.map +1 -0
  266. package/dist/schemas/core.js +124 -0
  267. package/dist/schemas/core.js.map +1 -0
  268. package/dist/schemas/data.d.ts +13 -0
  269. package/dist/schemas/data.d.ts.map +1 -0
  270. package/dist/schemas/data.js +25 -0
  271. package/dist/schemas/data.js.map +1 -0
  272. package/dist/schemas/devtools.d.ts +33 -0
  273. package/dist/schemas/devtools.d.ts.map +1 -0
  274. package/dist/schemas/devtools.js +56 -0
  275. package/dist/schemas/devtools.js.map +1 -0
  276. package/dist/schemas/family.d.ts +11 -0
  277. package/dist/schemas/family.d.ts.map +1 -0
  278. package/dist/schemas/family.js +21 -0
  279. package/dist/schemas/family.js.map +1 -0
  280. package/dist/schemas/filesystem.d.ts +25 -0
  281. package/dist/schemas/filesystem.d.ts.map +1 -0
  282. package/dist/schemas/filesystem.js +24 -0
  283. package/dist/schemas/filesystem.js.map +1 -0
  284. package/dist/schemas/host.d.ts +10 -0
  285. package/dist/schemas/host.d.ts.map +1 -0
  286. package/dist/schemas/host.js +2 -0
  287. package/dist/schemas/host.js.map +1 -0
  288. package/dist/schemas/optional-member.d.ts +67 -0
  289. package/dist/schemas/optional-member.d.ts.map +1 -0
  290. package/dist/schemas/optional-member.js +31 -0
  291. package/dist/schemas/optional-member.js.map +1 -0
  292. package/dist/schemas/roll.d.ts +47 -0
  293. package/dist/schemas/roll.d.ts.map +1 -0
  294. package/dist/schemas/roll.js +18 -0
  295. package/dist/schemas/roll.js.map +1 -0
  296. package/dist/schemas/tui.d.ts +33 -0
  297. package/dist/schemas/tui.d.ts.map +1 -0
  298. package/dist/schemas/tui.js +95 -0
  299. package/dist/schemas/tui.js.map +1 -0
  300. package/dist/schemas/ui.d.ts +15 -0
  301. package/dist/schemas/ui.d.ts.map +1 -0
  302. package/dist/schemas/ui.js +45 -0
  303. package/dist/schemas/ui.js.map +1 -0
  304. package/dist/tui/code-sessions-tui-plugin-shim.d.ts +7 -0
  305. package/dist/tui/code-sessions-tui-plugin-shim.d.ts.map +1 -0
  306. package/dist/tui/code-sessions-tui-plugin-shim.js +2 -0
  307. package/dist/tui/code-sessions-tui-plugin-shim.js.map +1 -0
  308. package/dist/tui/index.d.ts +8 -0
  309. package/dist/tui/index.d.ts.map +1 -0
  310. package/dist/tui/index.js +8 -0
  311. package/dist/tui/index.js.map +1 -0
  312. package/dist/tui/plugin.d.ts +53 -0
  313. package/dist/tui/plugin.d.ts.map +1 -0
  314. package/dist/tui/plugin.js +350 -0
  315. package/dist/tui/plugin.js.map +1 -0
  316. package/dist/ui/consumer.plugin.d.ts +3 -0
  317. package/dist/ui/consumer.plugin.d.ts.map +1 -0
  318. package/dist/ui/consumer.plugin.js +75 -0
  319. package/dist/ui/consumer.plugin.js.map +1 -0
  320. package/dist/ui/index.d.ts +2 -0
  321. package/dist/ui/index.d.ts.map +1 -0
  322. package/dist/ui/index.js +2 -0
  323. package/dist/ui/index.js.map +1 -0
  324. package/dist/ui/plugin.d.ts +4 -0
  325. package/dist/ui/plugin.d.ts.map +1 -0
  326. package/dist/ui/plugin.js +35 -0
  327. package/dist/ui/plugin.js.map +1 -0
  328. package/host-start.mjs +39 -0
  329. package/host.mjs +24 -0
  330. package/package.json +437 -4
@@ -0,0 +1,178 @@
1
+ import type { CommandExecutionStartInfo } from '@vibesdotdev/cli/schemas/surface';
2
+ import type { CLICommandAssetDescriptor } from '@vibesdotdev/cli/schemas/types';
3
+ import { type RuntimeRef } from '@vibesdotdev/kernel';
4
+ import { PluginsCLICommand, type PluginsCLIContext } from './context.ts';
5
+ import type { ScopeReport, UpdateFailure } from './schemas/update.ts';
6
+ export type { ScopeReport, UpdateFailure } from './schemas/update.ts';
7
+ /**
8
+ * The published release base: the `assets` origin the production
9
+ * `config/environment` declares, under {@link RELEASE_DOWNLOADS_PATH}.
10
+ * Releases are published only to production, whatever environment this host
11
+ * calls (the desktop release reads its origin by the same rule), so this
12
+ * reads the production declaration rather than the active one; `--mirror`
13
+ * retargets. A runtime that declares no production `assets` origin refuses
14
+ * `release-origin-undeclared`.
15
+ */
16
+ export declare function publishedReleaseBase(runtime: Pick<RuntimeRef, 'query' | 'hasKind'>): Promise<string>;
17
+ /** `latest.json` under a release base (the declared `--mirror`, else the published base), trailing slashes trimmed. */
18
+ export declare function latestManifestUrl(base: string): string;
19
+ /**
20
+ * Which scope reports make `vibes update` FAIL.
21
+ *
22
+ * A command that reports `NOT VERIFIED` and exits 0 is the absence-looks-like-
23
+ * success defect: the shipped draft did exactly that, so a scope whose
24
+ * verification boot could not compose, and a `$VIBES_HOME` the command refused
25
+ * to touch at all, both read as "updated" to CI, to a script, and to the WU-07
26
+ * harness. Pure and exported so the rule is testable without booting a child.
27
+ *
28
+ * Not a failure: a benign skip (`no workspace plugin list to update`, a home
29
+ * delegated to a host workspace) — nothing was asked for and nothing broke.
30
+ *
31
+ * `--dry-run` suppresses only the VERIFICATION half: nothing was installed, so
32
+ * nothing was booted, so an unverified scope is not a defect. A REFUSAL is not
33
+ * suppressed — a foreign or fossil `$VIBES_HOME`, or a link glob whose parent
34
+ * is gone, is a fact about the scope as it stands, not about the install that
35
+ * did not run, and `vibes update --dry-run` in CI has to be able to see it.
36
+ */
37
+ /** A surface omission is verified because the kernel refused to import the declared export. */
38
+ export declare function isUnverifiedPluginRow(row: {
39
+ plugin: string;
40
+ status: string;
41
+ reason?: string;
42
+ }): boolean;
43
+ export declare function collectUpdateFailures(reports: ReadonlyArray<Pick<ScopeReport, 'scope' | 'root' | 'verified' | 'verifyDetail' | 'skipped' | 'failed'>>, options: {
44
+ dryRun: boolean;
45
+ }): UpdateFailure[];
46
+ /**
47
+ * `vibes update` — seed, install, verify, roll (plan §5).
48
+ *
49
+ * ### Ordering: self FIRST, then the graph, then ONE roll
50
+ *
51
+ * `--self` runs before any scope work and the census roll runs exactly once at
52
+ * the end. Rolling before the binary is replaced re-stales every body just
53
+ * rolled — the executable freshness nerve fires on the new inode — so the
54
+ * draft's "roll, then swap" order produced two rolls and a `pm status` Build
55
+ * column reading STALE immediately after a successful update.
56
+ *
57
+ * ### What triggers the roll: THREE reasons, one nerve each
58
+ *
59
+ * 1. the module graph moved (a scope's `bun.lock` digest changed);
60
+ * 2. `--self` installed a new release over this executable;
61
+ * 3. a body in the census is **already** executing a replaced file.
62
+ *
63
+ * The third one is not redundant. A local `bun run build:install` swaps
64
+ * `~/.local/bin/vibes` by atomic rename: no lock moves and `--self` downloaded
65
+ * nothing, so on reasons 1–2 alone `vibes update` reported "nothing changed, so
66
+ * no body was rolled" in the same minute `vibes pm status` reported "⚠ PM
67
+ * daemon (pid …) runs a replaced vibes executable". Two surfaces, one fact,
68
+ * and the surface that could FIX it held the weaker predicate. The census now
69
+ * consumes the same executable nerve `pm status` and PM's
70
+ * `ExecutableFreshnessReconciler` consume (`markReplacedExecutables`), so a
71
+ * body running a replaced executable is rolled and the receipt says why.
72
+ *
73
+ * ### Per scope
74
+ *
75
+ * preflight (schema, glob parents, foreign-owner refusal, `workspace:*`
76
+ * declarations) → `bun install` → a SCOPED `bun update <enabled registry
77
+ * packages> @vibesdotdev/plugins`, never a fleet-wide `bun update` at a
78
+ * 232-member root → verification by spawning the SHIPPING path
79
+ * (`vibes plugins list --json --scope <kind>` with `VIBES_HOST_ROOT` bound to
80
+ * the scope root), where every row must read `loaded`.
81
+ *
82
+ * The verification deliberately re-enters the real executable rather than
83
+ * inspecting the manifest we just wrote. A manifest is a claim; a boot is a
84
+ * measurement, and it is the only thing that proves the scope this command
85
+ * just changed can still compose.
86
+ *
87
+ * ### Exit code
88
+ *
89
+ * A scope that did not verify, and a scope the command REFUSED to touch, both
90
+ * make `vibes update` exit non-zero — after the full report (including the
91
+ * `--json` envelope) has been printed. The draft printed `NOT VERIFIED` and
92
+ * exited 0, so a refused `$VIBES_HOME` and a scope that cannot compose read as
93
+ * success to CI, to a script and to the WU-07 harness. Benign skips (a
94
+ * workspace with no plugin list, a home delegated to a host workspace) are not
95
+ * failures. `--dry-run` never fails a VERIFICATION — it installs nothing, so
96
+ * it boots nothing — but a REFUSED scope still exits non-zero under it: the
97
+ * refusal describes the scope as it stands, not the install that did not run.
98
+ * The rule lives in `collectUpdateFailures`.
99
+ *
100
+ * ### Foreign / fossil manifests
101
+ *
102
+ * A `$VIBES_HOME/package.json` whose name is not `vibes-global` is somebody
103
+ * else's file (or the 24-April fossil). We refuse it by name and print
104
+ * `vibes update --repair --global`; `--repair` then backs it up as
105
+ * `*.fossil-<stamp>` and prints kept|dropped. Nothing is merged silently and
106
+ * nothing is deleted without a backup line.
107
+ */
108
+ export default class UpdateCLICommand extends PluginsCLICommand {
109
+ constructor(descriptor: CLICommandAssetDescriptor, context: PluginsCLIContext);
110
+ execute(args: CommandExecutionStartInfo['args'], options: CommandExecutionStartInfo['options']): Promise<void>;
111
+ /** Replace the running executable from the declared `--mirror`, else the published release base. */
112
+ private updateSelf;
113
+ /** Version of the running host: the host's own version fact, the one `--version` reports. */
114
+ private hostVersion;
115
+ private updateScope;
116
+ /** Seed an absent home, repair a fossil one, or refuse a foreign one by name. */
117
+ private prepareGlobal;
118
+ /**
119
+ * The specifiers a scope has ENABLED, read through the SAME resolution the
120
+ * bootstrap loader composes from.
121
+ *
122
+ * The workspace half used to call `resolveWorkspaceListTarget`, the WRITER's
123
+ * target resolver, which reports an empty list for a `vibes.config.ts`
124
+ * because it refuses to rewrite a module. `update --workspace` therefore saw
125
+ * nothing to update for plan §3's PRIMARY workspace surface — the file
126
+ * requirement #1 tells users to write — and skipped the scope with
127
+ * `no workspace plugin list to update`. It now reads Runtime's
128
+ * `readWorkspacePluginSurfaces` (`@vibesdotdev/kernel/bootstrap`, the
129
+ * owner of workspace composition formats) over the handed runtime's
130
+ * selected `runtime/loader`, the same reader the workspace composition and
131
+ * `plugins list` read: `vibes.config.{ts,js,json}#plugins` primary,
132
+ * `package.json#vibes.plugins` fallback.
133
+ *
134
+ * A SHADOWED fallback list is deliberately not included. `bun update` here
135
+ * targets the packages this scope composes; a specifier the effective surface
136
+ * overrides is not composed, and installing it would make `vibes update`
137
+ * disagree with the boot it uses to verify itself.
138
+ */
139
+ private selectionsFor;
140
+ /**
141
+ * The scope's install inputs. An unreadable or malformed manifest is the
142
+ * typed `plugin-scope-manifest-unreadable` refusal, carried into the report
143
+ * as a refused scope (SPEC: a refused scope exits non-zero) and kept whole
144
+ * as the command's cause; every other failure propagates.
145
+ */
146
+ private readDeclarations;
147
+ /**
148
+ * On-disk rules that decide whether bun may run at all.
149
+ *
150
+ * `benign` separates "there is nothing here to do" (a delegated home owns
151
+ * no packages — the update belongs to the host workspace) from "the request
152
+ * could not be carried out" (a link glob whose parent directory is gone).
153
+ * Only the second kind fails the command; conflating them would make
154
+ * `vibes update --global` on a delegated machine exit non-zero forever.
155
+ */
156
+ private preflight;
157
+ /**
158
+ * Boot the SHIPPING path against the scope root and require every row to be
159
+ * composed. A manifest that parses is not a scope that composes.
160
+ *
161
+ * Two details that are easy to get wrong and were measured, not guessed:
162
+ *
163
+ * - The child's cwd is the scope root only for the WORKSPACE scope. Setting
164
+ * it to `$VIBES_HOME` for the global scope made bootstrap read
165
+ * `$VIBES_HOME/package.json#vibes.plugins` as the *workspace* fallback
166
+ * list (there is no config there, so the cwd IS the workspace root), so
167
+ * the workspace batch claimed every global specifier and the global batch
168
+ * reported `deduped` for all of them.
169
+ * - `deduped` is therefore accepted alongside `loaded`: it means the very
170
+ * same specifier was already selected by an earlier scope in that process,
171
+ * so the plugin IS composed. `missing` and `failed` are the real failures,
172
+ * and `shadowed` is reported as a warning detail because another plugin
173
+ * owns the id.
174
+ */
175
+ private verifyScope;
176
+ private emit;
177
+ }
178
+ //# sourceMappingURL=update.cli-command.impl.consumer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.cli-command.impl.consumer.d.ts","sourceRoot":"","sources":["../../src/cli/update.cli-command.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAKhF,OAAO,EAWN,KAAK,UAAU,EACf,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAoBzE,OAAO,KAAK,EAGX,WAAW,EAGX,aAAa,EAEb,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA0BtE;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAU1G;AAED,uHAAuH;AACvH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,+FAA+F;AAC/F,wBAAgB,qBAAqB,CAAC,GAAG,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAIvG;AAED,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,aAAa,CACrB,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC,CACxF,EACD,OAAO,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAC1B,aAAa,EAAE,CA0BjB;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,iBAAiB;gBAClD,UAAU,EAAE,yBAAyB,EAAE,OAAO,EAAE,iBAAiB;IAIvE,OAAO,CAAC,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,yBAAyB,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAwEpH,oGAAoG;YACtF,UAAU;IAuCxB,6FAA6F;IAC7F,OAAO,CAAC,WAAW;YAML,WAAW;IA4HzB,iFAAiF;YACnE,aAAa;IAuC3B;;;;;;;;;;;;;;;;;;;;OAoBG;YACW,aAAa;IAuB3B;;;;;OAKG;YACW,gBAAgB;IAU9B;;;;;;;;OAQG;IACH,OAAO,CAAC,SAAS;IAsBjB;;;;;;;;;;;;;;;;;OAiBG;YACW,WAAW;IAsDzB,OAAO,CAAC,IAAI;CAyEZ"}