@vibesdotdev/infra-deploy 0.0.2 → 1.0.0-rc.5

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 (689) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +76 -12
  3. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +48 -35
  4. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -1
  5. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +1 -1
  6. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -1
  7. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +2 -1
  8. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -1
  9. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +31 -21
  10. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -1
  11. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +26 -27
  12. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -1
  13. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +1 -1
  14. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -1
  15. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +2 -1
  16. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -1
  17. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +11 -11
  18. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -1
  19. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +19 -17
  20. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -1
  21. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +1 -1
  22. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -1
  23. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +2 -1
  24. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -1
  25. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +15 -14
  26. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -1
  27. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +8 -8
  28. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +1 -1
  29. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -1
  30. package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +24 -17
  31. package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -1
  32. package/dist/cli/audit/infra-audit.cli-command.descriptor.js +8 -3
  33. package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -1
  34. package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +164 -1
  35. package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -1
  36. package/dist/cli/audit/infra-audit.cli-command.impl.js +557 -76
  37. package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -1
  38. package/dist/cli/db/infra-db.cli-command.descriptor.d.ts +49 -0
  39. package/dist/cli/db/infra-db.cli-command.descriptor.d.ts.map +1 -0
  40. package/dist/cli/db/infra-db.cli-command.descriptor.js +60 -0
  41. package/dist/cli/db/infra-db.cli-command.descriptor.js.map +1 -0
  42. package/dist/cli/db/infra-db.cli-command.impl.d.ts +30 -0
  43. package/dist/cli/db/infra-db.cli-command.impl.d.ts.map +1 -0
  44. package/dist/cli/db/infra-db.cli-command.impl.js +167 -0
  45. package/dist/cli/db/infra-db.cli-command.impl.js.map +1 -0
  46. package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts +6 -0
  47. package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts.map +1 -0
  48. package/dist/cli/dns/infra-dns-activate.cli-command.impl.js +53 -0
  49. package/dist/cli/dns/infra-dns-activate.cli-command.impl.js.map +1 -0
  50. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts +41 -0
  51. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts.map +1 -0
  52. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js +50 -0
  53. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js.map +1 -0
  54. package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts +12 -0
  55. package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts.map +1 -0
  56. package/dist/cli/dns/infra-dns-delete.cli-command.impl.js +70 -0
  57. package/dist/cli/dns/infra-dns-delete.cli-command.impl.js.map +1 -0
  58. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts +32 -0
  59. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts.map +1 -0
  60. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js +39 -0
  61. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js.map +1 -0
  62. package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts +17 -0
  63. package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts.map +1 -0
  64. package/dist/cli/dns/infra-dns-list.cli-command.impl.js +66 -0
  65. package/dist/cli/dns/infra-dns-list.cli-command.impl.js.map +1 -0
  66. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts +58 -0
  67. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts.map +1 -0
  68. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js +72 -0
  69. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js.map +1 -0
  70. package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts +14 -0
  71. package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts.map +1 -0
  72. package/dist/cli/dns/infra-dns-set.cli-command.impl.js +110 -0
  73. package/dist/cli/dns/infra-dns-set.cli-command.impl.js.map +1 -0
  74. package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts +41 -0
  75. package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts.map +1 -0
  76. package/dist/cli/dns/infra-dns.cli-group.descriptor.js +47 -0
  77. package/dist/cli/dns/infra-dns.cli-group.descriptor.js.map +1 -0
  78. package/dist/cli/dns/resolve-dns-provider.d.ts +24 -0
  79. package/dist/cli/dns/resolve-dns-provider.d.ts.map +1 -0
  80. package/dist/cli/dns/resolve-dns-provider.js +62 -0
  81. package/dist/cli/dns/resolve-dns-provider.js.map +1 -0
  82. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts +37 -0
  83. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts.map +1 -0
  84. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js +45 -0
  85. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js.map +1 -0
  86. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts +15 -0
  87. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts.map +1 -0
  88. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js +78 -0
  89. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js.map +1 -0
  90. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts +29 -0
  91. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts.map +1 -0
  92. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js +35 -0
  93. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js.map +1 -0
  94. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts +19 -0
  95. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts.map +1 -0
  96. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js +73 -0
  97. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js.map +1 -0
  98. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts +41 -0
  99. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts.map +1 -0
  100. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js +50 -0
  101. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js.map +1 -0
  102. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts +16 -0
  103. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts.map +1 -0
  104. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js +81 -0
  105. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js.map +1 -0
  106. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts +40 -0
  107. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts.map +1 -0
  108. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js +49 -0
  109. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js.map +1 -0
  110. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts +14 -0
  111. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts.map +1 -0
  112. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js +78 -0
  113. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js.map +1 -0
  114. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts +12 -0
  115. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts.map +1 -0
  116. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js +12 -0
  117. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js.map +1 -0
  118. package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts +25 -0
  119. package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts.map +1 -0
  120. package/dist/cli/edge-tls/resolve-edge-tls-provider.js +74 -0
  121. package/dist/cli/edge-tls/resolve-edge-tls-provider.js.map +1 -0
  122. package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +8 -8
  123. package/dist/cli/infra-deploy.cli-group.descriptor.js +1 -1
  124. package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -1
  125. package/dist/cli/infra.cli-group.descriptor.d.ts +7 -7
  126. package/dist/cli/infra.cli-group.descriptor.js +1 -1
  127. package/dist/cli/infra.cli-group.descriptor.js.map +1 -1
  128. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts +26 -0
  129. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts.map +1 -0
  130. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js +18 -0
  131. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js.map +1 -0
  132. package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts +18 -0
  133. package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts.map +1 -0
  134. package/dist/cli/inventory/infra-inventory.cli-command.impl.js +204 -0
  135. package/dist/cli/inventory/infra-inventory.cli-command.impl.js.map +1 -0
  136. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +40 -30
  137. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -1
  138. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +7 -3
  139. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -1
  140. package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +35 -1
  141. package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -1
  142. package/dist/cli/list/infra-deploy.list.cli-command.impl.js +202 -20
  143. package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -1
  144. package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +113 -35
  145. package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -1
  146. package/dist/cli/logs/infra-logs.cli-command.descriptor.js +87 -3
  147. package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -1
  148. package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +61 -1
  149. package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -1
  150. package/dist/cli/logs/infra-logs.cli-command.impl.js +1160 -111
  151. package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -1
  152. package/dist/cli/logs/stream-worker-tail.d.ts +7 -2
  153. package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -1
  154. package/dist/cli/logs/stream-worker-tail.js +280 -113
  155. package/dist/cli/logs/stream-worker-tail.js.map +1 -1
  156. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts +62 -0
  157. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts.map +1 -0
  158. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js +79 -0
  159. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js.map +1 -0
  160. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts +8 -0
  161. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts.map +1 -0
  162. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js +105 -0
  163. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js.map +1 -0
  164. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts +40 -0
  165. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts.map +1 -0
  166. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js +50 -0
  167. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js.map +1 -0
  168. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts +13 -0
  169. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts.map +1 -0
  170. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js +108 -0
  171. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js.map +1 -0
  172. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +83 -23
  173. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -1
  174. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +52 -16
  175. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -1
  176. package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +52 -1
  177. package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -1
  178. package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +568 -351
  179. package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -1
  180. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts +28 -0
  181. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts.map +1 -0
  182. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js +34 -0
  183. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js.map +1 -0
  184. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts +12 -0
  185. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts.map +1 -0
  186. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js +134 -0
  187. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js.map +1 -0
  188. package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +8 -8
  189. package/dist/cli/npm/infra-npm.cli-group.descriptor.js +1 -1
  190. package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -1
  191. package/dist/cli/npm/mirror-registry-artifacts.d.ts +91 -0
  192. package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
  193. package/dist/cli/npm/mirror-registry-artifacts.js +99 -0
  194. package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
  195. package/dist/cli/npm/npm-protocol-package-registry.d.ts +32 -0
  196. package/dist/cli/npm/npm-protocol-package-registry.d.ts.map +1 -0
  197. package/dist/cli/npm/npm-protocol-package-registry.js +237 -0
  198. package/dist/cli/npm/npm-protocol-package-registry.js.map +1 -0
  199. package/dist/cli/npm/publish/command-options.d.ts +24 -0
  200. package/dist/cli/npm/publish/command-options.d.ts.map +1 -0
  201. package/dist/cli/npm/publish/command-options.js +85 -0
  202. package/dist/cli/npm/publish/command-options.js.map +1 -0
  203. package/dist/cli/npm/publish/concurrency.d.ts +19 -0
  204. package/dist/cli/npm/publish/concurrency.d.ts.map +1 -0
  205. package/dist/cli/npm/publish/concurrency.js +60 -0
  206. package/dist/cli/npm/publish/concurrency.js.map +1 -0
  207. package/dist/cli/npm/publish/consumer-smoke.d.ts +83 -0
  208. package/dist/cli/npm/publish/consumer-smoke.d.ts.map +1 -0
  209. package/dist/cli/npm/publish/consumer-smoke.js +371 -0
  210. package/dist/cli/npm/publish/consumer-smoke.js.map +1 -0
  211. package/dist/cli/npm/publish/consumer-surfaces.d.ts +81 -0
  212. package/dist/cli/npm/publish/consumer-surfaces.d.ts.map +1 -0
  213. package/dist/cli/npm/publish/consumer-surfaces.js +199 -0
  214. package/dist/cli/npm/publish/consumer-surfaces.js.map +1 -0
  215. package/dist/cli/npm/publish/external-requirements.d.ts +171 -0
  216. package/dist/cli/npm/publish/external-requirements.d.ts.map +1 -0
  217. package/dist/cli/npm/publish/external-requirements.js +365 -0
  218. package/dist/cli/npm/publish/external-requirements.js.map +1 -0
  219. package/dist/cli/npm/publish/forge-source-identity.d.ts +64 -0
  220. package/dist/cli/npm/publish/forge-source-identity.d.ts.map +1 -0
  221. package/dist/cli/npm/publish/forge-source-identity.js +201 -0
  222. package/dist/cli/npm/publish/forge-source-identity.js.map +1 -0
  223. package/dist/cli/npm/publish/fs-paths.d.ts +25 -0
  224. package/dist/cli/npm/publish/fs-paths.d.ts.map +1 -0
  225. package/dist/cli/npm/publish/fs-paths.js +87 -0
  226. package/dist/cli/npm/publish/fs-paths.js.map +1 -0
  227. package/dist/cli/npm/publish/lease-preflight-answer.d.ts +17 -0
  228. package/dist/cli/npm/publish/lease-preflight-answer.d.ts.map +1 -0
  229. package/dist/cli/npm/publish/lease-preflight-answer.js +35 -0
  230. package/dist/cli/npm/publish/lease-preflight-answer.js.map +1 -0
  231. package/dist/cli/npm/publish/lease-preflight.d.ts +92 -0
  232. package/dist/cli/npm/publish/lease-preflight.d.ts.map +1 -0
  233. package/dist/cli/npm/publish/lease-preflight.js +205 -0
  234. package/dist/cli/npm/publish/lease-preflight.js.map +1 -0
  235. package/dist/cli/npm/publish/managed-lease.d.ts +110 -0
  236. package/dist/cli/npm/publish/managed-lease.d.ts.map +1 -0
  237. package/dist/cli/npm/publish/managed-lease.js +191 -0
  238. package/dist/cli/npm/publish/managed-lease.js.map +1 -0
  239. package/dist/cli/npm/publish/npm-exec.d.ts +148 -0
  240. package/dist/cli/npm/publish/npm-exec.d.ts.map +1 -0
  241. package/dist/cli/npm/publish/npm-exec.js +311 -0
  242. package/dist/cli/npm/publish/npm-exec.js.map +1 -0
  243. package/dist/cli/npm/publish/package-artifact.d.ts +107 -0
  244. package/dist/cli/npm/publish/package-artifact.d.ts.map +1 -0
  245. package/dist/cli/npm/publish/package-artifact.js +418 -0
  246. package/dist/cli/npm/publish/package-artifact.js.map +1 -0
  247. package/dist/cli/npm/publish/platform-registry.d.ts +76 -0
  248. package/dist/cli/npm/publish/platform-registry.d.ts.map +1 -0
  249. package/dist/cli/npm/publish/platform-registry.js +324 -0
  250. package/dist/cli/npm/publish/platform-registry.js.map +1 -0
  251. package/dist/cli/npm/publish/proof-external-closure.d.ts +139 -0
  252. package/dist/cli/npm/publish/proof-external-closure.d.ts.map +1 -0
  253. package/dist/cli/npm/publish/proof-external-closure.js +339 -0
  254. package/dist/cli/npm/publish/proof-external-closure.js.map +1 -0
  255. package/dist/cli/npm/publish/proof-installed-graph.d.ts +26 -0
  256. package/dist/cli/npm/publish/proof-installed-graph.d.ts.map +1 -0
  257. package/dist/cli/npm/publish/proof-installed-graph.js +229 -0
  258. package/dist/cli/npm/publish/proof-installed-graph.js.map +1 -0
  259. package/dist/cli/npm/publish/proof-registry.d.ts +74 -0
  260. package/dist/cli/npm/publish/proof-registry.d.ts.map +1 -0
  261. package/dist/cli/npm/publish/proof-registry.js +335 -0
  262. package/dist/cli/npm/publish/proof-registry.js.map +1 -0
  263. package/dist/cli/npm/publish/proof-source-credentials.d.ts +42 -0
  264. package/dist/cli/npm/publish/proof-source-credentials.d.ts.map +1 -0
  265. package/dist/cli/npm/publish/proof-source-credentials.js +129 -0
  266. package/dist/cli/npm/publish/proof-source-credentials.js.map +1 -0
  267. package/dist/cli/npm/publish/publish-package.d.ts +66 -0
  268. package/dist/cli/npm/publish/publish-package.d.ts.map +1 -0
  269. package/dist/cli/npm/publish/publish-package.js +544 -0
  270. package/dist/cli/npm/publish/publish-package.js.map +1 -0
  271. package/dist/cli/npm/publish/publish-to-mirror.d.ts +28 -0
  272. package/dist/cli/npm/publish/publish-to-mirror.d.ts.map +1 -0
  273. package/dist/cli/npm/publish/publish-to-mirror.js +36 -0
  274. package/dist/cli/npm/publish/publish-to-mirror.js.map +1 -0
  275. package/dist/cli/npm/publish/publisher-manifest.d.ts +173 -0
  276. package/dist/cli/npm/publish/publisher-manifest.d.ts.map +1 -0
  277. package/dist/cli/npm/publish/publisher-manifest.js +79 -0
  278. package/dist/cli/npm/publish/publisher-manifest.js.map +1 -0
  279. package/dist/cli/npm/publish/rc-major-exception.d.ts +20 -0
  280. package/dist/cli/npm/publish/rc-major-exception.d.ts.map +1 -0
  281. package/dist/cli/npm/publish/rc-major-exception.js +46 -0
  282. package/dist/cli/npm/publish/rc-major-exception.js.map +1 -0
  283. package/dist/cli/npm/publish/registry-availability.d.ts +150 -0
  284. package/dist/cli/npm/publish/registry-availability.d.ts.map +1 -0
  285. package/dist/cli/npm/publish/registry-availability.js +570 -0
  286. package/dist/cli/npm/publish/registry-availability.js.map +1 -0
  287. package/dist/cli/npm/publish/registry-credentials.d.ts +108 -0
  288. package/dist/cli/npm/publish/registry-credentials.d.ts.map +1 -0
  289. package/dist/cli/npm/publish/registry-credentials.js +290 -0
  290. package/dist/cli/npm/publish/registry-credentials.js.map +1 -0
  291. package/dist/cli/npm/publish/registry-reads.d.ts +42 -0
  292. package/dist/cli/npm/publish/registry-reads.d.ts.map +1 -0
  293. package/dist/cli/npm/publish/registry-reads.js +181 -0
  294. package/dist/cli/npm/publish/registry-reads.js.map +1 -0
  295. package/dist/cli/npm/publish/release-build.d.ts +46 -0
  296. package/dist/cli/npm/publish/release-build.d.ts.map +1 -0
  297. package/dist/cli/npm/publish/release-build.js +140 -0
  298. package/dist/cli/npm/publish/release-build.js.map +1 -0
  299. package/dist/cli/npm/publish/release-consumer-proof.d.ts +70 -0
  300. package/dist/cli/npm/publish/release-consumer-proof.d.ts.map +1 -0
  301. package/dist/cli/npm/publish/release-consumer-proof.js +397 -0
  302. package/dist/cli/npm/publish/release-consumer-proof.js.map +1 -0
  303. package/dist/cli/npm/publish/release-executor.d.ts +46 -0
  304. package/dist/cli/npm/publish/release-executor.d.ts.map +1 -0
  305. package/dist/cli/npm/publish/release-executor.js +181 -0
  306. package/dist/cli/npm/publish/release-executor.js.map +1 -0
  307. package/dist/cli/npm/publish/release-grants.client.impl.d.ts +10 -0
  308. package/dist/cli/npm/publish/release-grants.client.impl.d.ts.map +1 -0
  309. package/dist/cli/npm/publish/release-grants.client.impl.js +63 -0
  310. package/dist/cli/npm/publish/release-grants.client.impl.js.map +1 -0
  311. package/dist/cli/npm/publish/release-jobs.client.d.ts +39 -0
  312. package/dist/cli/npm/publish/release-jobs.client.d.ts.map +1 -0
  313. package/dist/cli/npm/publish/release-jobs.client.js +124 -0
  314. package/dist/cli/npm/publish/release-jobs.client.js.map +1 -0
  315. package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts +20 -0
  316. package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts.map +1 -0
  317. package/dist/cli/npm/publish/release-jobs.consumer.plugin.js +82 -0
  318. package/dist/cli/npm/publish/release-jobs.consumer.plugin.js.map +1 -0
  319. package/dist/cli/npm/publish/release-jobs.impl.d.ts +15 -0
  320. package/dist/cli/npm/publish/release-jobs.impl.d.ts.map +1 -0
  321. package/dist/cli/npm/publish/release-jobs.impl.js +42 -0
  322. package/dist/cli/npm/publish/release-jobs.impl.js.map +1 -0
  323. package/dist/cli/npm/publish/release-lock.d.ts +143 -0
  324. package/dist/cli/npm/publish/release-lock.d.ts.map +1 -0
  325. package/dist/cli/npm/publish/release-lock.js +371 -0
  326. package/dist/cli/npm/publish/release-lock.js.map +1 -0
  327. package/dist/cli/npm/publish/release-phases.d.ts +93 -0
  328. package/dist/cli/npm/publish/release-phases.d.ts.map +1 -0
  329. package/dist/cli/npm/publish/release-phases.js +175 -0
  330. package/dist/cli/npm/publish/release-phases.js.map +1 -0
  331. package/dist/cli/npm/publish/release-plan.d.ts +65 -0
  332. package/dist/cli/npm/publish/release-plan.d.ts.map +1 -0
  333. package/dist/cli/npm/publish/release-plan.js +178 -0
  334. package/dist/cli/npm/publish/release-plan.js.map +1 -0
  335. package/dist/cli/npm/publish/release-preflight.job.impl.d.ts +16 -0
  336. package/dist/cli/npm/publish/release-preflight.job.impl.d.ts.map +1 -0
  337. package/dist/cli/npm/publish/release-preflight.job.impl.js +71 -0
  338. package/dist/cli/npm/publish/release-preflight.job.impl.js.map +1 -0
  339. package/dist/cli/npm/publish/release-publish.job.impl.d.ts +18 -0
  340. package/dist/cli/npm/publish/release-publish.job.impl.d.ts.map +1 -0
  341. package/dist/cli/npm/publish/release-publish.job.impl.js +295 -0
  342. package/dist/cli/npm/publish/release-publish.job.impl.js.map +1 -0
  343. package/dist/cli/npm/publish/release-workspace.d.ts +95 -0
  344. package/dist/cli/npm/publish/release-workspace.d.ts.map +1 -0
  345. package/dist/cli/npm/publish/release-workspace.js +243 -0
  346. package/dist/cli/npm/publish/release-workspace.js.map +1 -0
  347. package/dist/cli/npm/publish/sensitive-temp.d.ts +90 -0
  348. package/dist/cli/npm/publish/sensitive-temp.d.ts.map +1 -0
  349. package/dist/cli/npm/publish/sensitive-temp.js +351 -0
  350. package/dist/cli/npm/publish/sensitive-temp.js.map +1 -0
  351. package/dist/cli/npm/publish/source-snapshot.d.ts +91 -0
  352. package/dist/cli/npm/publish/source-snapshot.d.ts.map +1 -0
  353. package/dist/cli/npm/publish/source-snapshot.js +245 -0
  354. package/dist/cli/npm/publish/source-snapshot.js.map +1 -0
  355. package/dist/cli/npm/publish/types.d.ts +69 -0
  356. package/dist/cli/npm/publish/types.d.ts.map +1 -0
  357. package/dist/cli/npm/publish/types.js +2 -0
  358. package/dist/cli/npm/publish/types.js.map +1 -0
  359. package/dist/cli/npm/publish/workspace-discovery.d.ts +48 -0
  360. package/dist/cli/npm/publish/workspace-discovery.d.ts.map +1 -0
  361. package/dist/cli/npm/publish/workspace-discovery.js +313 -0
  362. package/dist/cli/npm/publish/workspace-discovery.js.map +1 -0
  363. package/dist/cli/npm/put-attested-packument.d.ts +142 -0
  364. package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
  365. package/dist/cli/npm/put-attested-packument.js +353 -0
  366. package/dist/cli/npm/put-attested-packument.js.map +1 -0
  367. package/dist/cli/npm/reconcile-latest.d.ts +55 -0
  368. package/dist/cli/npm/reconcile-latest.d.ts.map +1 -0
  369. package/dist/cli/npm/reconcile-latest.js +59 -0
  370. package/dist/cli/npm/reconcile-latest.js.map +1 -0
  371. package/dist/cli/npm/registries/npmjs.package-registry.descriptor.d.ts +56 -0
  372. package/dist/cli/npm/registries/npmjs.package-registry.descriptor.d.ts.map +1 -0
  373. package/dist/cli/npm/registries/npmjs.package-registry.descriptor.js +16 -0
  374. package/dist/cli/npm/registries/npmjs.package-registry.descriptor.js.map +1 -0
  375. package/dist/cli/npm/registries/package-registries.plugin.d.ts +3 -0
  376. package/dist/cli/npm/registries/package-registries.plugin.d.ts.map +1 -0
  377. package/dist/cli/npm/registries/package-registries.plugin.js +44 -0
  378. package/dist/cli/npm/registries/package-registries.plugin.js.map +1 -0
  379. package/dist/cli/npm/registries/resolve-package-registry.d.ts +29 -0
  380. package/dist/cli/npm/registries/resolve-package-registry.d.ts.map +1 -0
  381. package/dist/cli/npm/registries/resolve-package-registry.js +58 -0
  382. package/dist/cli/npm/registries/resolve-package-registry.js.map +1 -0
  383. package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.d.ts +53 -0
  384. package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.d.ts.map +1 -0
  385. package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.js +12 -0
  386. package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.js.map +1 -0
  387. package/dist/cli/observability/blind-spots.d.ts +10 -0
  388. package/dist/cli/observability/blind-spots.d.ts.map +1 -0
  389. package/dist/cli/observability/blind-spots.js +19 -0
  390. package/dist/cli/observability/blind-spots.js.map +1 -0
  391. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts +6 -0
  392. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts.map +1 -0
  393. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js +75 -0
  394. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js.map +1 -0
  395. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +42 -21
  396. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -1
  397. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +3 -3
  398. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -1
  399. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +3 -2
  400. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -1
  401. package/dist/cli/observability/infra-observability-set.cli-command.impl.js +14 -14
  402. package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -1
  403. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +25 -17
  404. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -1
  405. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +1 -1
  406. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -1
  407. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +2 -1
  408. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -1
  409. package/dist/cli/observability/infra-observability-status.cli-command.impl.js +30 -23
  410. package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -1
  411. package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +8 -8
  412. package/dist/cli/observability/infra-observability.cli-group.descriptor.js +1 -1
  413. package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -1
  414. package/dist/cli/plugin.d.ts +3 -0
  415. package/dist/cli/plugin.d.ts.map +1 -0
  416. package/dist/cli/plugin.js +45 -0
  417. package/dist/cli/plugin.js.map +1 -0
  418. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts +38 -0
  419. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts.map +1 -0
  420. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js +43 -0
  421. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js.map +1 -0
  422. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts +117 -0
  423. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts.map +1 -0
  424. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js +678 -0
  425. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js.map +1 -0
  426. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +37 -23
  427. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -1
  428. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +7 -1
  429. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -1
  430. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +2 -1
  431. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -1
  432. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +100 -25
  433. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -1
  434. package/dist/cli/release/cli/latest-manifest.d.ts +148 -0
  435. package/dist/cli/release/cli/latest-manifest.d.ts.map +1 -0
  436. package/dist/cli/release/cli/latest-manifest.js +152 -0
  437. package/dist/cli/release/cli/latest-manifest.js.map +1 -0
  438. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts +41 -0
  439. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts.map +1 -0
  440. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js +49 -0
  441. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js.map +1 -0
  442. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts +16 -0
  443. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts.map +1 -0
  444. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js +52 -0
  445. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js.map +1 -0
  446. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +19 -17
  447. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -1
  448. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +1 -1
  449. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -1
  450. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +2 -1
  451. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -1
  452. package/dist/cli/rum/infra-rum-status.cli-command.impl.js +21 -15
  453. package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -1
  454. package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +8 -8
  455. package/dist/cli/rum/infra-rum.cli-group.descriptor.js +1 -1
  456. package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -1
  457. package/dist/cli/run/deploy-smoke.d.ts +57 -0
  458. package/dist/cli/run/deploy-smoke.d.ts.map +1 -0
  459. package/dist/cli/run/deploy-smoke.js +251 -0
  460. package/dist/cli/run/deploy-smoke.js.map +1 -0
  461. package/dist/cli/run/deployment-marker.d.ts +74 -0
  462. package/dist/cli/run/deployment-marker.d.ts.map +1 -0
  463. package/dist/cli/run/deployment-marker.js +237 -0
  464. package/dist/cli/run/deployment-marker.js.map +1 -0
  465. package/dist/cli/run/deployment-provider.d.ts +51 -0
  466. package/dist/cli/run/deployment-provider.d.ts.map +1 -0
  467. package/dist/cli/run/deployment-provider.js +274 -0
  468. package/dist/cli/run/deployment-provider.js.map +1 -0
  469. package/dist/cli/run/deployment-run-ledger.d.ts +72 -0
  470. package/dist/cli/run/deployment-run-ledger.d.ts.map +1 -0
  471. package/dist/cli/run/deployment-run-ledger.js +164 -0
  472. package/dist/cli/run/deployment-run-ledger.js.map +1 -0
  473. package/dist/cli/run/git-source-identity.d.ts +21 -0
  474. package/dist/cli/run/git-source-identity.d.ts.map +1 -0
  475. package/dist/cli/run/git-source-identity.js +73 -0
  476. package/dist/cli/run/git-source-identity.js.map +1 -0
  477. package/dist/cli/run/immutable-deployment-release.program.d.ts +404 -0
  478. package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
  479. package/dist/cli/run/immutable-deployment-release.program.js +585 -0
  480. package/dist/cli/run/immutable-deployment-release.program.js.map +1 -0
  481. package/dist/cli/run/immutable-deployment-workspace.d.ts +39 -0
  482. package/dist/cli/run/immutable-deployment-workspace.d.ts.map +1 -0
  483. package/dist/cli/run/immutable-deployment-workspace.js +525 -0
  484. package/dist/cli/run/immutable-deployment-workspace.js.map +1 -0
  485. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +77 -23
  486. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -1
  487. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +49 -8
  488. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -1
  489. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +46 -1
  490. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -1
  491. package/dist/cli/run/infra-deploy.run.cli-command.impl.js +440 -229
  492. package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
  493. package/dist/cli/shared/build-workspace-artifacts.d.ts +152 -0
  494. package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
  495. package/dist/cli/shared/build-workspace-artifacts.js +2049 -0
  496. package/dist/cli/shared/build-workspace-artifacts.js.map +1 -0
  497. package/dist/cli/shared/credential-source.d.ts +3 -0
  498. package/dist/cli/shared/credential-source.d.ts.map +1 -0
  499. package/dist/cli/shared/credential-source.js +19 -0
  500. package/dist/cli/shared/credential-source.js.map +1 -0
  501. package/dist/cli/shared/discover-deployments.d.ts +46 -5
  502. package/dist/cli/shared/discover-deployments.d.ts.map +1 -1
  503. package/dist/cli/shared/discover-deployments.js +167 -41
  504. package/dist/cli/shared/discover-deployments.js.map +1 -1
  505. package/dist/cli/shared/infer-apex-zone.d.ts +18 -0
  506. package/dist/cli/shared/infer-apex-zone.d.ts.map +1 -0
  507. package/dist/cli/shared/infer-apex-zone.js +75 -0
  508. package/dist/cli/shared/infer-apex-zone.js.map +1 -0
  509. package/dist/cli/shared/option-strings.d.ts +2 -0
  510. package/dist/cli/shared/option-strings.d.ts.map +1 -0
  511. package/dist/cli/shared/option-strings.js +13 -0
  512. package/dist/cli/shared/option-strings.js.map +1 -0
  513. package/dist/cli/shared/repository-collection.d.ts +42 -0
  514. package/dist/cli/shared/repository-collection.d.ts.map +1 -0
  515. package/dist/cli/shared/repository-collection.js +111 -0
  516. package/dist/cli/shared/repository-collection.js.map +1 -0
  517. package/dist/cli/shared/runtime-execution.d.ts +78 -0
  518. package/dist/cli/shared/runtime-execution.d.ts.map +1 -0
  519. package/dist/cli/shared/runtime-execution.js +182 -0
  520. package/dist/cli/shared/runtime-execution.js.map +1 -0
  521. package/dist/cli/shared/workspace-artifact-lock.d.ts +17 -0
  522. package/dist/cli/shared/workspace-artifact-lock.d.ts.map +1 -0
  523. package/dist/cli/shared/workspace-artifact-lock.js +37 -0
  524. package/dist/cli/shared/workspace-artifact-lock.js.map +1 -0
  525. package/dist/cli/shared/workspace-artifact-store.d.ts +14 -0
  526. package/dist/cli/shared/workspace-artifact-store.d.ts.map +1 -0
  527. package/dist/cli/shared/workspace-artifact-store.js +53 -0
  528. package/dist/cli/shared/workspace-artifact-store.js.map +1 -0
  529. package/dist/cli/workers/doks-worker-runtime.d.ts +239 -0
  530. package/dist/cli/workers/doks-worker-runtime.d.ts.map +1 -0
  531. package/dist/cli/workers/doks-worker-runtime.js +410 -0
  532. package/dist/cli/workers/doks-worker-runtime.js.map +1 -0
  533. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts +28 -0
  534. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts.map +1 -0
  535. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js +28 -0
  536. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js.map +1 -0
  537. package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts +6 -0
  538. package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts.map +1 -0
  539. package/dist/cli/workers/infra-workers-apply.cli-command.impl.js +75 -0
  540. package/dist/cli/workers/infra-workers-apply.cli-command.impl.js.map +1 -0
  541. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts +31 -0
  542. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts.map +1 -0
  543. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js +32 -0
  544. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js.map +1 -0
  545. package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts +6 -0
  546. package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts.map +1 -0
  547. package/dist/cli/workers/infra-workers-build.cli-command.impl.js +67 -0
  548. package/dist/cli/workers/infra-workers-build.cli-command.impl.js.map +1 -0
  549. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts +48 -0
  550. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts.map +1 -0
  551. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js +60 -0
  552. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js.map +1 -0
  553. package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts +6 -0
  554. package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts.map +1 -0
  555. package/dist/cli/workers/infra-workers-logs.cli-command.impl.js +74 -0
  556. package/dist/cli/workers/infra-workers-logs.cli-command.impl.js.map +1 -0
  557. package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts +12 -0
  558. package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts.map +1 -0
  559. package/dist/cli/workers/infra-workers.cli-group.descriptor.js +12 -0
  560. package/dist/cli/workers/infra-workers.cli-group.descriptor.js.map +1 -0
  561. package/dist/config-loader.d.ts +60 -13
  562. package/dist/config-loader.d.ts.map +1 -1
  563. package/dist/config-loader.js +371 -104
  564. package/dist/config-loader.js.map +1 -1
  565. package/dist/declared-provider.d.ts +27 -0
  566. package/dist/declared-provider.d.ts.map +1 -0
  567. package/dist/declared-provider.js +46 -0
  568. package/dist/declared-provider.js.map +1 -0
  569. package/dist/deployment-collisions.d.ts +55 -0
  570. package/dist/deployment-collisions.d.ts.map +1 -0
  571. package/dist/deployment-collisions.js +70 -0
  572. package/dist/deployment-collisions.js.map +1 -0
  573. package/dist/deployment-environment.d.ts +57 -0
  574. package/dist/deployment-environment.d.ts.map +1 -0
  575. package/dist/deployment-environment.js +198 -0
  576. package/dist/deployment-environment.js.map +1 -0
  577. package/dist/deployment-settings.d.ts +27 -0
  578. package/dist/deployment-settings.d.ts.map +1 -0
  579. package/dist/deployment-settings.js +52 -0
  580. package/dist/deployment-settings.js.map +1 -0
  581. package/dist/deployment.config.descriptor.d.ts +59 -0
  582. package/dist/deployment.config.descriptor.d.ts.map +1 -0
  583. package/dist/deployment.config.descriptor.js +54 -0
  584. package/dist/deployment.config.descriptor.js.map +1 -0
  585. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts +29 -0
  586. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts.map +1 -0
  587. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js +35 -0
  588. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js.map +1 -0
  589. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts +12 -0
  590. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts.map +1 -0
  591. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js +12 -0
  592. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js.map +1 -0
  593. package/dist/index.d.ts +11 -3
  594. package/dist/index.d.ts.map +1 -1
  595. package/dist/index.js +11 -3
  596. package/dist/index.js.map +1 -1
  597. package/dist/infra-deploy.plugin.d.ts +2 -2
  598. package/dist/infra-deploy.plugin.d.ts.map +1 -1
  599. package/dist/infra-deploy.plugin.js +65 -20
  600. package/dist/infra-deploy.plugin.js.map +1 -1
  601. package/dist/logger.d.ts +10 -0
  602. package/dist/logger.d.ts.map +1 -0
  603. package/dist/logger.js +11 -0
  604. package/dist/logger.js.map +1 -0
  605. package/dist/migrations/migrate-workspace.d.ts +21 -0
  606. package/dist/migrations/migrate-workspace.d.ts.map +1 -0
  607. package/dist/migrations/migrate-workspace.js +83 -0
  608. package/dist/migrations/migrate-workspace.js.map +1 -0
  609. package/dist/migrations/run-migrate.d.ts +15 -0
  610. package/dist/migrations/run-migrate.d.ts.map +1 -0
  611. package/dist/migrations/run-migrate.js +314 -0
  612. package/dist/migrations/run-migrate.js.map +1 -0
  613. package/dist/regenerate.d.ts +52 -30
  614. package/dist/regenerate.d.ts.map +1 -1
  615. package/dist/regenerate.js +176 -148
  616. package/dist/regenerate.js.map +1 -1
  617. package/dist/runtime-execution.d.ts +5 -0
  618. package/dist/runtime-execution.d.ts.map +1 -0
  619. package/dist/runtime-execution.js +12 -0
  620. package/dist/runtime-execution.js.map +1 -0
  621. package/dist/schemas/migrate.d.ts +110 -0
  622. package/dist/schemas/migrate.d.ts.map +1 -0
  623. package/dist/schemas/migrate.js +55 -0
  624. package/dist/schemas/migrate.js.map +1 -0
  625. package/dist/schemas/proof-registry.d.ts +25 -0
  626. package/dist/schemas/proof-registry.d.ts.map +1 -0
  627. package/dist/schemas/proof-registry.js +24 -0
  628. package/dist/schemas/proof-registry.js.map +1 -0
  629. package/dist/schemas/release-grants.d.ts +7 -0
  630. package/dist/schemas/release-grants.d.ts.map +1 -0
  631. package/dist/schemas/release-grants.js +6 -0
  632. package/dist/schemas/release-grants.js.map +1 -0
  633. package/dist/schemas/release-jobs.d.ts +444 -0
  634. package/dist/schemas/release-jobs.d.ts.map +1 -0
  635. package/dist/schemas/release-jobs.js +204 -0
  636. package/dist/schemas/release-jobs.js.map +1 -0
  637. package/dist/schemas/service-release.d.ts +15 -0
  638. package/dist/schemas/service-release.d.ts.map +1 -0
  639. package/dist/schemas/service-release.js +13 -0
  640. package/dist/schemas/service-release.js.map +1 -0
  641. package/dist/schemas/worker-logs.d.ts +42 -0
  642. package/dist/schemas/worker-logs.d.ts.map +1 -0
  643. package/dist/schemas/worker-logs.js +29 -0
  644. package/dist/schemas/worker-logs.js.map +1 -0
  645. package/dist/storage/deployment-runs.schema.d.ts +199 -0
  646. package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
  647. package/dist/storage/deployment-runs.schema.js +61 -0
  648. package/dist/storage/deployment-runs.schema.js.map +1 -0
  649. package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
  650. package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
  651. package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
  652. package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
  653. package/package.json +107 -38
  654. package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
  655. package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
  656. package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
  657. package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
  658. package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
  659. package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
  660. package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
  661. package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
  662. package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
  663. package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
  664. package/src/cli/infra.cli-group.descriptor.ts +0 -11
  665. package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
  666. package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
  667. package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
  668. package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
  669. package/src/cli/logs/stream-worker-tail.ts +0 -202
  670. package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
  671. package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
  672. package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
  673. package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
  674. package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
  675. package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
  676. package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
  677. package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
  678. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
  679. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
  680. package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
  681. package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
  682. package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
  683. package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
  684. package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
  685. package/src/cli/shared/discover-deployments.ts +0 -127
  686. package/src/config-loader.ts +0 -179
  687. package/src/index.ts +0 -11
  688. package/src/infra-deploy.plugin.ts +0 -83
  689. package/src/regenerate.ts +0 -230
@@ -0,0 +1,51 @@
1
+ /**
2
+ * The deploy driver's side of `infra/deployment-provider`: the provider an app
3
+ * declares is resolved through the handed runtime, and its release is handed
4
+ * the driver-owned steps (app build, pre-deploy commands, migrations,
5
+ * fresh evaluation) as {@link DeploymentReleaseHost} callbacks.
6
+ */
7
+ import { type RuntimeRef, type VibesRuntime } from '@vibesdotdev/kernel';
8
+ import type { CommandOptions } from '@vibesdotdev/cli';
9
+ import { type JsonObject } from '@vibesdotdev/kernel/schemas/json';
10
+ import type { DeploymentModuleEvaluation, DeploymentOutputLine, DeploymentProviderDescriptor, DeploymentProviderImplementation, DeploymentReleaseHost } from '@vibesdotdev/infra-core/kinds';
11
+ import type { AppDeployment } from '@vibesdotdev/infra-core';
12
+ import type { RuntimeExecution } from '@vibesdotdev/kernel/execution';
13
+ import { type LoadedDeployment } from '../../config-loader.ts';
14
+ import { applyPendingMigrations } from '../../migrations/run-migrate.ts';
15
+ export interface ResolvedDeploymentProvider {
16
+ readonly descriptor: DeploymentProviderDescriptor;
17
+ readonly implementation: DeploymentProviderImplementation;
18
+ }
19
+ /** The provider an app declares, resolved by id through the handed runtime; refuses when none is composed. */
20
+ export declare function resolveDeploymentProvider(runtime: RuntimeRef, id: string): Promise<ResolvedDeploymentProvider>;
21
+ /** A loaded deployment as provider data: the export without its callables. */
22
+ export declare function deploymentModuleEvaluation(loaded: LoadedDeployment): DeploymentModuleEvaluation;
23
+ /**
24
+ * The release's driver-owned steps. `build` runs the app's declared build
25
+ * command against the dependencies the app already has installed; a deploy
26
+ * builds only what it deploys.
27
+ */
28
+ export declare function createDeploymentReleaseHost(input: {
29
+ runtime: VibesRuntime;
30
+ execution: RuntimeExecution;
31
+ deployment: AppDeployment;
32
+ appDir: string;
33
+ workspaceRoot: string;
34
+ environment: string;
35
+ credentialSource: 'secrets-store' | 'ambient';
36
+ skipBuild: boolean;
37
+ dryRun: boolean;
38
+ /** The retained Workspace owner verifies source identity; this host owns the output receipt. */
39
+ immutableBuild?: {
40
+ compositionDigest: string;
41
+ sourceCommit: string;
42
+ lockFiles: readonly string[];
43
+ assertSource(): Promise<void>;
44
+ };
45
+ onLine: DeploymentOutputLine;
46
+ }, deps?: {
47
+ migrate?: typeof applyPendingMigrations;
48
+ }): DeploymentReleaseHost;
49
+ /** The command's provider options as data, for the provider's own schema. */
50
+ export declare function providerOptions(opts: CommandOptions): JsonObject;
51
+ //# sourceMappingURL=deployment-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-provider.d.ts","sourceRoot":"","sources":["../../../src/cli/run/deployment-provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAwD,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAGrF,OAAO,KAAK,EAEX,0BAA0B,EAC1B,oBAAoB,EACpB,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAy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Ae,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CAIhE"}
@@ -0,0 +1,274 @@
1
+ /**
2
+ * The deploy driver's side of `infra/deployment-provider`: the provider an app
3
+ * declares is resolved through the handed runtime, and its release is handed
4
+ * the driver-owned steps (app build, pre-deploy commands, migrations,
5
+ * fresh evaluation) as {@link DeploymentReleaseHost} callbacks.
6
+ */
7
+ import { CapabilityError, settle } from '@vibesdotdev/kernel';
8
+ import { JsonObjectSchema } from '@vibesdotdev/kernel/schemas/json';
9
+ import { jsoncCodec } from '@vibesdotdev/shared/jsonc';
10
+ import { DeploymentArtifactPreparationSchema } from '@vibesdotdev/infra-core/kinds';
11
+ import { loadDeploymentConfig } from "../../config-loader.js";
12
+ import { applyPendingMigrations } from "../../migrations/run-migrate.js";
13
+ import { sealWorkspaceBuildArtifacts, assertWorkspaceBuildArtifactReceipt, workspaceBuildLockDigest } from "../shared/build-workspace-artifacts.js";
14
+ import { getRuntimePath } from '@vibesdotdev/paths';
15
+ import { optionalRegistryTokenEnv, registryTokenEnv, runRuntimeCommand } from "../shared/runtime-execution.js";
16
+ /** The provider an app declares, resolved by id through the handed runtime; refuses when none is composed. */
17
+ export async function resolveDeploymentProvider(runtime, id) {
18
+ const query = () => runtime.query('infra/deployment-provider').withId(id);
19
+ const [descriptor] = runtime.hasKind('infra/deployment-provider') ? query().descriptors() : [];
20
+ const implementation = descriptor ? await settle(() => query().resolve()) : undefined;
21
+ if (!descriptor || !implementation?.ok) {
22
+ const refusal = {
23
+ reason: 'deployment-provider-unavailable',
24
+ retryable: false,
25
+ details: { provider: id },
26
+ recoveryHint: `Compose the plugin that registers infra/deployment-provider "${id}".`
27
+ };
28
+ if (implementation && !implementation.ok)
29
+ refusal.cause = implementation.cause;
30
+ throw new CapabilityError('The deployment provider has no composed implementation.', 'UNAVAILABLE', refusal);
31
+ }
32
+ return { descriptor, implementation: implementation.value };
33
+ }
34
+ /** A rendered provider artifact as data; provider JSONC may include comments. */
35
+ function artifactObject(text) {
36
+ if (text === null)
37
+ return null;
38
+ const decoded = jsoncCodec.parse(text, { allowTrailingComma: true });
39
+ if (decoded.errorOffsets.length > 0) {
40
+ throw new CapabilityError('The rendered deployment artifact is not valid JSONC.', 'INVALID_INPUT', {
41
+ reason: 'deployment-artifact-invalid', details: { offsets: decoded.errorOffsets }
42
+ });
43
+ }
44
+ return JsonObjectSchema.parse(decoded.value);
45
+ }
46
+ /** Absent output is not a receipt. Other seal refusals stay their own reasons. */
47
+ function skipBuildReceiptRefusal(cause) {
48
+ if (cause.reason !== 'workspace-artifact-missing' && cause.reason !== 'workspace-artifact-empty')
49
+ return undefined;
50
+ return new CapabilityError('Skip-build requires a matching immutable artifact receipt.', 'INVALID_INPUT', {
51
+ reason: 'skip-build-immutable-receipt-required',
52
+ cause
53
+ });
54
+ }
55
+ /** A loaded deployment as provider data: the export without its callables. */
56
+ export function deploymentModuleEvaluation(loaded) {
57
+ return {
58
+ exported: JsonObjectSchema.catch({}).parse(JSON.parse(JSON.stringify(loaded.raw ?? {}))),
59
+ managed: loaded.managed,
60
+ renders: loaded.renders,
61
+ rendered: artifactObject(loaded.rendered),
62
+ localRendered: artifactObject(loaded.localRendered),
63
+ unitName: loaded.unitName
64
+ };
65
+ }
66
+ /**
67
+ * The release's driver-owned steps. `build` runs the app's declared build
68
+ * command against the dependencies the app already has installed; a deploy
69
+ * builds only what it deploys.
70
+ */
71
+ export function createDeploymentReleaseHost(input, deps = {}) {
72
+ const migrate = deps.migrate ?? applyPendingMigrations;
73
+ const { runtime, execution, appDir, workspaceRoot, onLine } = input;
74
+ let receipt;
75
+ let receiptInput;
76
+ let built;
77
+ let immutableBuildStarted = false;
78
+ const assertSource = async () => { await input.immutableBuild?.assertSource(); };
79
+ const declaredOutputDirectory = async () => {
80
+ const pathApi = await getRuntimePath(runtime);
81
+ const declaredApp = input.deployment.build.appDir.replace(/\\/g, '/').replace(/\/$/, '');
82
+ const declaredOutput = input.deployment.build.outputDir.replace(/\\/g, '/');
83
+ const output = declaredOutput.startsWith(`${declaredApp}/`) ? declaredOutput.slice(declaredApp.length + 1) : declaredOutput;
84
+ return pathApi.resolve(appDir, output);
85
+ };
86
+ const assertArtifacts = async () => {
87
+ if (!input.immutableBuild)
88
+ return;
89
+ await assertSource();
90
+ if (!receipt || !receiptInput) {
91
+ throw new CapabilityError('The release has no immutable build artifact receipt.', 'CONFLICT', { reason: 'workspace-artifact-receipt-missing' });
92
+ }
93
+ await assertWorkspaceBuildArtifactReceipt(receiptInput, receipt);
94
+ };
95
+ return {
96
+ assertSource,
97
+ assertArtifacts,
98
+ async build(options) {
99
+ if (options?.prepareArtifacts && immutableBuildStarted) {
100
+ throw new CapabilityError('The artifact producer cannot run again after preparation or sealing.', 'CONFLICT', { reason: 'workspace-artifact-already-prepared' });
101
+ }
102
+ if (options?.prepareArtifacts && !input.immutableBuild && !input.dryRun) {
103
+ throw new CapabilityError('Artifact preparation requires a retained immutable workspace.', 'UNAVAILABLE', { reason: 'workspace-artifact-preparation-unavailable' });
104
+ }
105
+ // Absent declared output refuses before preflight or any build child.
106
+ // A provider that prepares artifacts supplies those bytes in the seal below.
107
+ const immutableBuild = input.immutableBuild;
108
+ if (immutableBuild && input.skipBuild && !input.dryRun && !options?.prepareArtifacts && !built) {
109
+ await assertSource();
110
+ const probed = await settle(async () => sealWorkspaceBuildArtifacts({
111
+ runtime, workspaceRoot,
112
+ directories: [await declaredOutputDirectory()],
113
+ lockFiles: immutableBuild.lockFiles,
114
+ compositionDigest: immutableBuild.compositionDigest,
115
+ sourceCommit: immutableBuild.sourceCommit
116
+ }));
117
+ if (!probed.ok) {
118
+ if (probed.cause instanceof CapabilityError) {
119
+ const refusal = skipBuildReceiptRefusal(probed.cause);
120
+ if (refusal)
121
+ throw refusal;
122
+ }
123
+ throw probed.cause;
124
+ }
125
+ }
126
+ if (input.immutableBuild && built) {
127
+ await assertArtifacts();
128
+ return built;
129
+ }
130
+ if (input.immutableBuild) {
131
+ if (immutableBuildStarted)
132
+ throw new CapabilityError('An immutable artifact build cannot start again before it has sealed successfully.', 'CONFLICT', { reason: 'workspace-artifact-build-already-started' });
133
+ immutableBuildStarted = true;
134
+ }
135
+ await assertSource();
136
+ if (input.immutableBuild && !input.dryRun) {
137
+ const command = input.deployment.build.buildCommand;
138
+ if (command && !input.skipBuild) {
139
+ const [bin, ...args] = command.split(' ').filter(Boolean);
140
+ if (!bin)
141
+ throw new CapabilityError('The app build command is empty.', 'INVALID_INPUT', { reason: 'app-build-command-empty' });
142
+ const result = await runRuntimeCommand({
143
+ runtime, execution, command: bin, args, cwd: appDir,
144
+ env: { NODE_ENV: 'production', VIBES_BUILD_VERSION: input.immutableBuild.sourceCommit, ...(await optionalRegistryTokenEnv(runtime)) }, onLine
145
+ });
146
+ if (result.code !== 0)
147
+ throw new CapabilityError('The app build failed before provider effects.', 'UNAVAILABLE', { reason: 'app-build-failed', details: { exitCode: result.code } });
148
+ }
149
+ let preparation = DeploymentArtifactPreparationSchema.parse({});
150
+ if (options?.prepareArtifacts) {
151
+ await assertSource();
152
+ const lockInput = { runtime, workspaceRoot, lockFiles: input.immutableBuild.lockFiles };
153
+ const locks = await workspaceBuildLockDigest(lockInput);
154
+ preparation = DeploymentArtifactPreparationSchema.parse(await options.prepareArtifacts());
155
+ await assertSource();
156
+ if (locks !== await workspaceBuildLockDigest(lockInput)) {
157
+ throw new CapabilityError('Installed locks changed during artifact preparation.', 'CONFLICT', { reason: 'workspace-artifact-lock-mismatch' });
158
+ }
159
+ }
160
+ const nextReceiptInput = {
161
+ runtime, workspaceRoot,
162
+ directories: [await declaredOutputDirectory(), ...preparation.paths],
163
+ lockFiles: input.immutableBuild.lockFiles,
164
+ compositionDigest: input.immutableBuild.compositionDigest,
165
+ sourceCommit: input.immutableBuild.sourceCommit,
166
+ references: preparation.references
167
+ };
168
+ receiptInput = nextReceiptInput;
169
+ const sealed = await settle(() => sealWorkspaceBuildArtifacts(nextReceiptInput));
170
+ if (!sealed.ok) {
171
+ if (input.skipBuild && sealed.cause instanceof CapabilityError) {
172
+ const refusal = skipBuildReceiptRefusal(sealed.cause);
173
+ if (refusal)
174
+ throw refusal;
175
+ }
176
+ throw sealed.cause;
177
+ }
178
+ receipt = sealed.value;
179
+ await assertArtifacts();
180
+ }
181
+ built = { warnings: [] };
182
+ if (receipt)
183
+ built.artifact = {
184
+ compositionDigest: receipt.compositionDigest,
185
+ sourceCommit: receipt.sourceCommit,
186
+ artifactDigest: receipt.artifactDigest,
187
+ references: [...(receipt.references ?? [])]
188
+ };
189
+ return built;
190
+ },
191
+ async runPreDeployCommands(variables) {
192
+ await assertArtifacts();
193
+ const commands = input.deployment.preDeployCommands;
194
+ if (commands.length === 0)
195
+ return;
196
+ onLine('stdout', `Running ${commands.length} pre-deploy command(s)...`);
197
+ for (const cmd of commands) {
198
+ if (cmd.description)
199
+ onLine('stdout', ` ${cmd.description}`);
200
+ if (input.dryRun) {
201
+ onLine('stdout', ` [dry-run] ${cmd.command}`);
202
+ continue;
203
+ }
204
+ const [bin, ...args] = cmd.command.split(' ').filter(Boolean);
205
+ if (!bin)
206
+ continue;
207
+ const result = await runRuntimeCommand({
208
+ runtime,
209
+ execution,
210
+ command: bin,
211
+ args,
212
+ cwd: appDir,
213
+ env: { ...(await registryTokenEnv(runtime)), ...variables },
214
+ onLine
215
+ });
216
+ if (result.code !== 0) {
217
+ throw new Error(`Pre-deploy command failed: ${cmd.command} (exit=${result.code ?? 'unknown'})`);
218
+ }
219
+ }
220
+ onLine('stdout', 'Pre-deploy commands complete.');
221
+ },
222
+ async migrate({ configFile, variables }) {
223
+ await assertArtifacts();
224
+ onLine('stdout', 'Applying pending D1 migrations (vibes_migrations journal)...');
225
+ const migrated = await migrate({
226
+ runtime,
227
+ appDir,
228
+ remote: true,
229
+ yes: true,
230
+ dryRun: false,
231
+ environment: input.environment,
232
+ configFileName: configFile,
233
+ workspaceRoot,
234
+ credentialSource: input.credentialSource,
235
+ providerVariables: variables,
236
+ ui: {
237
+ info: (m) => onLine('stdout', m),
238
+ warn: (m) => onLine('stderr', m),
239
+ log: (m) => onLine('stdout', m),
240
+ error: (m) => onLine('stderr', m)
241
+ }
242
+ });
243
+ // Declared migrations no registered engine applied are a refusal, never a silent skip.
244
+ if (migrated.length === 0) {
245
+ throw new CapabilityError('The declared migrations found no registered database engine to apply them.', 'UNAVAILABLE', {
246
+ reason: 'migration-engine-unavailable',
247
+ retryable: false,
248
+ recoveryHint: 'Compose the plugin that registers the infra/database-migrator engine for these databases.'
249
+ });
250
+ }
251
+ },
252
+ async evaluate(variables) {
253
+ // The first render produces the config the build consumes. A receipt
254
+ // exists only after that build has sealed, and every later render revalidates it.
255
+ if (receipt)
256
+ await assertArtifacts();
257
+ return deploymentModuleEvaluation(await loadDeploymentConfig(appDir, {
258
+ runtime,
259
+ freshProcess: true,
260
+ execution,
261
+ projectionEnvironment: variables
262
+ }));
263
+ }
264
+ };
265
+ }
266
+ /** The command's provider options as data, for the provider's own schema. */
267
+ export function providerOptions(opts) {
268
+ const options = {};
269
+ for (const [key, value] of Object.entries(opts))
270
+ if (value !== undefined)
271
+ options[key] = value;
272
+ return options;
273
+ }
274
+ //# sourceMappingURL=deployment-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-provider.js","sourceRoot":"","sources":["../../../src/cli/run/deployment-provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,EAAmE,MAAM,qBAAqB,CAAC;AAE/H,OAAO,EAAE,gBAAgB,EAAmB,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AAWpF,OAAO,EAAE,oBAAoB,EAAyB,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EACN,2BAA2B,EAAE,mCAAmC,EAAE,wBAAwB,EAE1F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AACH,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,eAAe,CAAC,IAAoB;IACnD,MAAM,OAAO,GAAe,EAAE,CAAC;IAC/B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC/F,OAAO,OAAO,CAAC;AAChB,CAAC"}
@@ -0,0 +1,72 @@
1
+ import type { AppDeployment } from '@vibesdotdev/infra-core';
2
+ import { type VibesRuntime } from '@vibesdotdev/kernel';
3
+ import type { DeploymentRun, DeploymentRunReadinessEvidence, DeploymentRuns } from '../../storage/deployment-runs.schema.ts';
4
+ import { type EmitDeploymentMarkerResult } from './deployment-marker.ts';
5
+ export type DeploymentRunStore = {
6
+ load(): Promise<DeploymentRuns | null>;
7
+ save(data: DeploymentRuns): Promise<void>;
8
+ };
9
+ export type DeploymentRunLedgerResult = {
10
+ status: 'recorded';
11
+ runId: string;
12
+ } | {
13
+ status: 'skipped';
14
+ reason: string;
15
+ } | {
16
+ status: 'failed';
17
+ reason: string;
18
+ runId?: string;
19
+ };
20
+ export type StartDeploymentRunInput = {
21
+ deployment: AppDeployment;
22
+ provider: string;
23
+ environment?: string;
24
+ appDir?: string;
25
+ workspaceRoot?: string;
26
+ dryRun: boolean;
27
+ skipBuild: boolean;
28
+ skipD1Migrations: boolean;
29
+ branch?: string;
30
+ commit?: string;
31
+ actor?: string;
32
+ logsRef?: string;
33
+ providerTraceRef?: string;
34
+ remediationUrl?: string;
35
+ readinessEvidence?: DeploymentRunReadinessEvidence | null;
36
+ originKind?: DeploymentRun['originKind'];
37
+ previewScriptName?: string;
38
+ expiresAt?: string;
39
+ /** The deployment-runs manifest of the runtime the command was handed (`deploymentRunStore(runtime)`). */
40
+ store: DeploymentRunStore;
41
+ now?: Date;
42
+ runId?: string;
43
+ };
44
+ export type CompleteDeploymentRunInput = {
45
+ runId: string | undefined;
46
+ status: 'succeeded' | 'failed' | 'dry_run';
47
+ deployedUrl?: string;
48
+ externalDeploymentId?: string;
49
+ logsRef?: string;
50
+ providerTraceRef?: string;
51
+ remediationUrl?: string;
52
+ readinessEvidence?: DeploymentRunReadinessEvidence | null;
53
+ marker?: EmitDeploymentMarkerResult;
54
+ error?: unknown;
55
+ notes?: string;
56
+ /** The deployment-runs manifest of the runtime the command was handed (`deploymentRunStore(runtime)`). */
57
+ store: DeploymentRunStore;
58
+ now?: Date;
59
+ };
60
+ export type ListDeploymentRunsParams = {
61
+ appId?: string;
62
+ status?: DeploymentRun['status'];
63
+ limit?: number;
64
+ /** The deployment-runs manifest of the runtime the command was handed (`deploymentRunStore(runtime)`). */
65
+ store: DeploymentRunStore;
66
+ };
67
+ /** The deployment-runs manifest of `runtime`, the runtime the command was handed. */
68
+ export declare function deploymentRunStore(runtime: VibesRuntime): DeploymentRunStore;
69
+ export declare function startDeploymentRun(runtime: Pick<VibesRuntime, 'getEnv'>, input: StartDeploymentRunInput): Promise<DeploymentRunLedgerResult>;
70
+ export declare function completeDeploymentRun(input: CompleteDeploymentRunInput): Promise<DeploymentRunLedgerResult>;
71
+ export declare function listDeploymentRuns(params: ListDeploymentRunsParams): Promise<DeploymentRuns>;
72
+ //# sourceMappingURL=deployment-run-ledger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-run-ledger.d.ts","sourceRoot":"","sources":["../../../src/cli/run/deployment-run-ledger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIhE,OAAO,KAAK,EACX,aAAa,EAEb,8BAA8B,EAC9B,cAAc,EACd,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAyB,KAAK,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAIhG,MAAM,MAAM,kBAAk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c,CAAC,CAQzB"}
@@ -0,0 +1,164 @@
1
+ import { settle } from '@vibesdotdev/kernel';
2
+ import { StorageManifest } from '@vibesdotdev/storage/manifest/base';
3
+ import * as z from 'zod/v4';
4
+ import { deploymentRunsStorageDescriptor } from "../../storage/deployment-runs.storage.descriptor.js";
5
+ import { deploymentMarkerNotes } from "./deployment-marker.js";
6
+ const NonEmptyStringSchema = z.string().trim().min(1);
7
+ function currentActor(runtime) {
8
+ return runtime.getEnv('VIBES_DEPLOY_ACTOR') ?? runtime.getEnv('GITHUB_ACTOR') ?? runtime.getEnv('USER');
9
+ }
10
+ function currentCommit(runtime) {
11
+ // Deliberately excludes VIBES_SOURCE_SHA — the CLI sets that to its OWN baked
12
+ // commit at boot, so reading it here stamped every manual deploy's ledger row
13
+ // with the CLI's identity instead of the app's.
14
+ return runtime.getEnv('GITHUB_SHA') ?? runtime.getEnv('CI_COMMIT_SHA');
15
+ }
16
+ function normalizeProvider(provider) {
17
+ return provider.trim().length > 0 ? provider : 'unknown';
18
+ }
19
+ function sanitizeText(value) {
20
+ const parsed = NonEmptyStringSchema.safeParse(value);
21
+ if (!parsed.success)
22
+ return undefined;
23
+ return deploymentMarkerNotes(parsed.data, 1000);
24
+ }
25
+ function sanitizeRef(value) {
26
+ const parsed = NonEmptyStringSchema.safeParse(value);
27
+ if (!parsed.success)
28
+ return undefined;
29
+ return deploymentMarkerNotes(parsed.data, 300);
30
+ }
31
+ function sanitizeReadinessEvidence(value) {
32
+ if (!value)
33
+ return null;
34
+ return {
35
+ status: value.status,
36
+ generatedAt: value.generatedAt,
37
+ passing: value.passing,
38
+ warnings: value.warnings,
39
+ failures: value.failures,
40
+ unknown: value.unknown,
41
+ checks: value.checks.slice(0, 20).map((check) => ({
42
+ id: sanitizeRef(check.id) ?? 'unknown',
43
+ label: sanitizeRef(check.label) ?? check.id,
44
+ status: check.status,
45
+ summary: sanitizeText(check.summary) ?? '',
46
+ evidence: check.evidence.slice(0, 10).map((entry) => sanitizeText(entry) ?? ''),
47
+ action: sanitizeText(check.action) ?? null
48
+ }))
49
+ };
50
+ }
51
+ /** The deployment-runs manifest of `runtime`, the runtime the command was handed. */
52
+ export function deploymentRunStore(runtime) {
53
+ return new StorageManifest(deploymentRunsStorageDescriptor, { runtime });
54
+ }
55
+ function newestFirst(rows) {
56
+ return [...rows].sort((a, b) => b.startedAt.localeCompare(a.startedAt));
57
+ }
58
+ async function loadRuns(store) {
59
+ return (await store.load()) ?? [];
60
+ }
61
+ export async function startDeploymentRun(runtime, input) {
62
+ const store = input.store;
63
+ const now = input.now ?? new Date();
64
+ const runId = input.runId ?? crypto.randomUUID();
65
+ const run = {
66
+ runId,
67
+ appId: input.deployment.appId,
68
+ appName: input.deployment.appName,
69
+ provider: normalizeProvider(input.provider),
70
+ environment: input.environment ?? null,
71
+ appDir: input.appDir ?? null,
72
+ workspaceRoot: input.workspaceRoot ?? null,
73
+ branch: input.branch ?? runtime.getEnv('VIBES_SOURCE_BRANCH') ?? runtime.getEnv('GITHUB_REF_NAME') ?? null,
74
+ commit: input.commit ?? currentCommit(runtime) ?? null,
75
+ actor: input.actor ?? currentActor(runtime) ?? null,
76
+ status: 'started',
77
+ dryRun: input.dryRun,
78
+ skipBuild: input.skipBuild,
79
+ skipD1Migrations: input.skipD1Migrations,
80
+ startedAt: now.toISOString(),
81
+ completedAt: null,
82
+ durationMs: null,
83
+ deployedUrl: null,
84
+ externalDeploymentId: null,
85
+ logsRef: sanitizeRef(input.logsRef) ?? null,
86
+ providerTraceRef: sanitizeRef(input.providerTraceRef) ?? null,
87
+ remediationUrl: sanitizeRef(input.remediationUrl) ?? null,
88
+ markerStatus: null,
89
+ markerId: null,
90
+ readinessEvidence: sanitizeReadinessEvidence(input.readinessEvidence),
91
+ error: null,
92
+ notes: null,
93
+ originKind: input.originKind ?? null,
94
+ previewScriptName: input.previewScriptName ?? null,
95
+ expiresAt: input.expiresAt ?? null
96
+ };
97
+ const saveOutcome = await settle(async () => {
98
+ const runs = await loadRuns(store);
99
+ await store.save([run, ...runs.filter((row) => row.runId !== runId)]);
100
+ });
101
+ if (!saveOutcome.ok) {
102
+ const reason = saveOutcome.cause instanceof Error ? saveOutcome.cause.message : saveOutcome.cause.description;
103
+ return {
104
+ status: 'failed',
105
+ runId,
106
+ reason
107
+ };
108
+ }
109
+ return { status: 'recorded', runId };
110
+ }
111
+ export async function completeDeploymentRun(input) {
112
+ if (!input.runId)
113
+ return { status: 'skipped', reason: 'run id unavailable' };
114
+ const runId = input.runId;
115
+ const store = input.store;
116
+ const now = input.now ?? new Date();
117
+ const saveOutcome = await settle(async () => {
118
+ const runs = await loadRuns(store);
119
+ const existing = runs.find((row) => row.runId === runId);
120
+ if (!existing)
121
+ return { status: 'skipped', reason: `run ${runId} not found` };
122
+ const markerStatus = input.marker?.status ?? null;
123
+ const markerId = input.marker?.status === 'sent' ? (input.marker.markerId ?? null) : null;
124
+ const completedAt = now.toISOString();
125
+ const durationMs = Math.max(0, now.getTime() - Date.parse(existing.startedAt));
126
+ const updated = {
127
+ ...existing,
128
+ status: input.status,
129
+ completedAt,
130
+ durationMs,
131
+ deployedUrl: input.deployedUrl ?? existing.deployedUrl ?? null,
132
+ externalDeploymentId: input.externalDeploymentId ?? existing.externalDeploymentId ?? null,
133
+ logsRef: sanitizeRef(input.logsRef) ?? existing.logsRef ?? null,
134
+ providerTraceRef: sanitizeRef(input.providerTraceRef) ?? existing.providerTraceRef ?? null,
135
+ remediationUrl: sanitizeRef(input.remediationUrl) ?? existing.remediationUrl ?? null,
136
+ markerStatus,
137
+ markerId,
138
+ readinessEvidence: sanitizeReadinessEvidence(input.readinessEvidence) ?? existing.readinessEvidence ?? null,
139
+ error: sanitizeText(input.error) ?? null,
140
+ notes: sanitizeText(input.notes) ?? existing.notes ?? null
141
+ };
142
+ await store.save(runs.map((row) => (row.runId === runId ? updated : row)));
143
+ return { status: 'recorded', runId };
144
+ });
145
+ if (!saveOutcome.ok) {
146
+ const reason = saveOutcome.cause instanceof Error ? saveOutcome.cause.message : saveOutcome.cause.description;
147
+ return {
148
+ status: 'failed',
149
+ runId,
150
+ reason
151
+ };
152
+ }
153
+ return saveOutcome.value;
154
+ }
155
+ export async function listDeploymentRuns(params) {
156
+ const store = params.store;
157
+ const limit = Number.isInteger(params.limit) && params.limit && params.limit > 0 ? params.limit : 50;
158
+ const runs = newestFirst(await loadRuns(store));
159
+ return runs
160
+ .filter((run) => !params.appId || run.appId === params.appId)
161
+ .filter((run) => !params.status || run.status === params.status)
162
+ .slice(0, Math.min(limit, 500));
163
+ }
164
+ //# sourceMappingURL=deployment-run-ledger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-run-ledger.js","sourceRoot":"","sources":["../../../src/cli/run/deployment-run-ledger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAqB,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AAOtG,OAAO,EAAE,qBAAqB,EAAmC,MAAM,wBAAwB,CAAC;AAEhG,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AA8DtD,SAAS,YAAY,CAAC,OAAqC;IAC1D,OAAO,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACzG,CAAC;AAED,SAAS,aAAa,CAAC,OAAqC;IAC3D,8EAA8E;IAC9E,8EAA8E;IAC9E,gDAAgD;IAChD,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,iBAAiB,CAA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C,KAAK,CAAC,CAAC,CAAC;IAChD,OAAO,IAAI;SACT,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC;SAC5D,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC;SAC/D,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAClC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { type RuntimeRef } from '@vibesdotdev/kernel';
2
+ import type { RuntimeExecution } from '@vibesdotdev/kernel/execution';
3
+ import { type ChildEnvRuntime } from '../shared/runtime-execution.ts';
4
+ /** What source identity reads from the runtime it is handed: its captured env and its child environment. */
5
+ export type GitIdentityRuntime = ChildEnvRuntime & Pick<RuntimeRef, 'getEnv'>;
6
+ export type GitSourceIdentity = {
7
+ commit?: string;
8
+ branch?: string;
9
+ };
10
+ /** Resolve the repository that owns an app without inheriting the CLI host cwd. */
11
+ export declare function resolveGitRepositoryRoot(runtime: ChildEnvRuntime, execution: Pick<RuntimeExecution, 'spawn'>, cwd: string): Promise<string | undefined>;
12
+ /**
13
+ * Resolve deploy source identity: CI-provided env vars win, then the local git
14
+ * checkout explicitly supplied by the deploy owner. Requiring `cwd` prevents
15
+ * an embedded CLI host from stamping its own commit onto another app. Manual
16
+ * operator deploys (the normal case while CI is disabled) otherwise record
17
+ * NULL commits in the marker/ledger tables, making "is HEAD deployed?"
18
+ * unanswerable after the fact.
19
+ */
20
+ export declare function resolveGitSourceIdentity(runtime: GitIdentityRuntime, execution: Pick<RuntimeExecution, 'spawn'>, cwd: string): Promise<GitSourceIdentity>;
21
+ //# sourceMappingURL=git-source-identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-source-identity.d.ts","sourceRoot":"","sources":["../../../src/cli/run/git-source-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AASzF,4GAA4G;AAC5G,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AA0BF,mFAAmF;AACnF,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,eAAe,EACxB,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAC1C,GAAG,EAAE,MAAM,GACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE7B;AAED;;;;;;;GAOG;AACH,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAC1C,GAAG,EAAE,MAAM,GACT,OAAO,CAAC,iBAAiB,CAAC,CAmC5B"}