@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
@@ -1,271 +1,482 @@
1
- import { getVibesRuntime } from '@vibesdotdev/runtime';
2
- import { resolveCurrentEnvironmentConfig } from '@vibesdotdev/config/environment/current';
3
- import { resolve } from 'node:path';
4
- import { spawnSync } from 'node:child_process';
5
- import { getCloudflareWorkersDeployClient } from '@vibesdotdev/connector-cloudflare/client';
6
- import { getDigitalOceanAppDeployClient } from '@vibesdotdev/infra-doks/client';
1
+ import { CapabilityError, CaughtFailureSchema, requireRuntimeCwd, settle } from '@vibesdotdev/kernel';
2
+ import { DeploymentReleaseRequestSchema, DeploymentReleaseResultSchema } from '@vibesdotdev/infra-core/kinds';
3
+ import { z } from 'zod/v4';
4
+ import { readString } from "../shared/option-strings.js";
5
+ import { readCredentialSource } from "../shared/credential-source.js";
6
+ import { getRuntimePath } from '@vibesdotdev/paths';
7
7
  import { loadDeploymentConfig } from "../../config-loader.js";
8
- import { regenerateApp } from "../../regenerate.js";
9
- function readString(v) {
10
- return typeof v === 'string' && v.length > 0 ? v : undefined;
8
+ import { collectDeployReadinessReport } from "../readiness/infra-deploy.readiness.cli-command.impl.js";
9
+ import { resolveRuntimeExecution } from "../shared/runtime-execution.js";
10
+ import { WorkspaceCompositionLockPathSchema } from '@vibesdotdev/workspace-schemas/isolation';
11
+ import { emitDeploymentMarker } from "./deployment-marker.js";
12
+ import { runDeploySmokeProbe } from "./deploy-smoke.js";
13
+ import { resolveGitRepositoryRoot, resolveGitSourceIdentity } from "./git-source-identity.js";
14
+ import { completeDeploymentRun, startDeploymentRun, deploymentRunStore } from "./deployment-run-ledger.js";
15
+ import { createDeploymentReleaseHost, deploymentModuleEvaluation, providerOptions, resolveDeploymentProvider } from "./deployment-provider.js";
16
+ import { deploymentEnvironmentRunRefusal, formatDeploymentEnvironmentResolution, selectDeploymentEnvironment } from "../../deployment-environment.js";
17
+ function failureMessage(failure) {
18
+ return failure instanceof Error ? failure.message : failure.description;
11
19
  }
20
+ const TruthyBooleanValueSchema = z.union([z.literal(true), z.literal('true')]);
12
21
  function readBoolean(v) {
13
- return v === true || v === 'true';
22
+ const parsed = TruthyBooleanValueSchema.safeParse(v);
23
+ return parsed.success;
14
24
  }
15
- function resolveWorkspaceRoot(workspaceRootDir, appDir, override) {
16
- if (override)
17
- return resolve(override);
18
- if (!workspaceRootDir || workspaceRootDir === '.')
19
- return process.cwd();
20
- return resolve(appDir, workspaceRootDir);
25
+ function readErrorMessage(value) {
26
+ const failure = CaughtFailureSchema.parse(value);
27
+ return failure instanceof Error ? failure.message : failure.description;
21
28
  }
22
- const CLOUDFLARE_API_TOKEN_KEY = 'CLOUDFLARE_API_TOKEN';
23
- const CLOUDFLARE_ACCOUNT_ID_KEY = 'CLOUDFLARE_ACCOUNT_ID';
24
- async function resolveCloudflareEnvFromSecretsStore(runtime, ui, environmentOverride) {
25
- if (process.env.CLOUDFLARE_API_TOKEN && process.env.CLOUDFLARE_ACCOUNT_ID) {
26
- return {};
29
+ export function failedDeploymentConfigLoad(err) {
30
+ const failure = CaughtFailureSchema.parse(err);
31
+ if (failure instanceof CapabilityError)
32
+ return failure;
33
+ return new CapabilityError(`Failed to load deployment config: ${failure instanceof Error ? failure.message : failure.description}`, 'INVALID_INPUT', { cause: failure });
34
+ }
35
+ export function emitDeployOutputLine(ui, stream, line) {
36
+ if (stream === 'stderr')
37
+ ui.error(line);
38
+ else
39
+ ui.log(line);
40
+ }
41
+ function readinessEvidenceForLedger(report) {
42
+ return {
43
+ status: report.summary.status,
44
+ generatedAt: report.generatedAt,
45
+ passing: report.summary.passing,
46
+ warnings: report.summary.warnings,
47
+ failures: report.summary.failures,
48
+ unknown: report.summary.unknown,
49
+ checks: report.checks
50
+ };
51
+ }
52
+ /**
53
+ * The workspace a deploy builds in. An app that declares
54
+ * `build.workspaceRootDir` builds there (relative to the app). Otherwise it
55
+ * builds in the bound workspace (`runtime/workspace-path`: `--workspace-root`,
56
+ * else the nearest workspace root above the invocation cwd), which must
57
+ * contain the app. An app outside it fails closed: nothing falls back to the
58
+ * app's repository or an environment variable.
59
+ */
60
+ function appIsInsideWorkspace(paths, workspace, app) {
61
+ const relative = paths.relative(workspace, app);
62
+ return (relative === '' ||
63
+ (!paths.isAbsolute(relative) &&
64
+ relative !== '..' &&
65
+ !relative.startsWith('../') &&
66
+ !relative.startsWith('..\\')));
67
+ }
68
+ export function deployWorkspaceRoot(paths, workspaceRootDir, appDir, boundWorkspace) {
69
+ if (workspaceRootDir && workspaceRootDir !== '.')
70
+ return paths.resolve(appDir, workspaceRootDir);
71
+ const workspace = paths.resolve(boundWorkspace);
72
+ const app = paths.resolve(appDir);
73
+ if (appIsInsideWorkspace(paths, workspace, app))
74
+ return workspace;
75
+ throw new CapabilityError(`The app ${app} is outside the bound workspace ${workspace}.`, 'INVALID_INPUT', {
76
+ reason: 'app-outside-workspace',
77
+ recoveryHint: "Run from the app's workspace, or pass --workspace-root <dir> for a workspace that contains the app.",
78
+ details: { appDir: app, workspaceRoot: workspace }
79
+ });
80
+ }
81
+ function logDeploymentMarkerResult(result, onLine) {
82
+ if (result.status === 'sent') {
83
+ const suffix = result.markerId ? ` (${result.markerId})` : '';
84
+ onLine('stdout', `[deploy-marker] recorded for ${result.appId}${suffix}`);
85
+ return;
27
86
  }
28
- if (!runtime.hasKind('secrets/store')) {
29
- throw new Error(`Missing secrets/store kind in runtime. Enable secrets backends via plugin config ` +
30
- `(for example plugins.auth.secrets=true and plugins.auth.secretsBackends.*) before running deploy.`);
87
+ if (result.status === 'skipped') {
88
+ onLine('stderr', `[deploy-marker] skipped: ${result.reason}`);
89
+ return;
31
90
  }
32
- let envName = environmentOverride ?? 'local';
33
- let envTier = 'local';
34
- if (environmentOverride) {
35
- envTier = environmentOverride;
91
+ onLine('stderr', `[deploy-marker] failed: ${result.reason}`);
92
+ }
93
+ function logDeploymentRunLedgerResult(result, onLine) {
94
+ if (result.status === 'recorded') {
95
+ onLine('stdout', `[deploy-ledger] recorded run ${result.runId}`);
96
+ return;
36
97
  }
37
- else {
38
- try {
39
- const envConfig = await resolveCurrentEnvironmentConfig();
40
- envName = envConfig.name;
41
- envTier = envConfig.tier ?? 'local';
42
- }
43
- catch {
44
- // Fall back to local when config environment resolution is unavailable.
45
- }
98
+ if (result.status === 'skipped') {
99
+ onLine('stderr', `[deploy-ledger] skipped: ${result.reason}`);
100
+ return;
46
101
  }
47
- const descriptors = runtime.assets('secrets/store').descriptors();
48
- const tierCandidates = new Set([envTier]);
49
- if (envTier === 'local' || envTier === 'dev') {
50
- // Deploy auth is often run from local shells while credentials live in
51
- // staging/production backends (Vault/Cloudflare). Include those tiers as
52
- // fallbacks instead of hard-filtering them out.
53
- tierCandidates.add('staging');
54
- tierCandidates.add('production');
102
+ onLine('stderr', `[deploy-ledger] failed: ${result.reason}`);
103
+ }
104
+ /**
105
+ * The fail-closed deploy prologue, extracted as one owner-level seam so the
106
+ * ordering guarantee is testable via dependency injection (resolver + readiness).
107
+ *
108
+ * Resolves the provider environment FIRST, runs readiness UNDER that same
109
+ * environment when the provider renders under it (so the deployment module
110
+ * projects post-resolution bindings), then runs the environment gate. If the
111
+ * projection is a strip (required secrets declared but unbound), it THROWS the
112
+ * refusal here — before the caller records any ledger entry or dispatches to a
113
+ * provider. The returned `envOverrides` is the SAME object the provider's
114
+ * release receives, so nothing downstream reads pre-resolution state.
115
+ */
116
+ export async function prepareDeployProjection(input, deps = {}) {
117
+ const collectReadiness = deps.collectReadiness ?? collectDeployReadinessReport;
118
+ const resolveEnvironment = deps.resolveEnvironment ?? (() => input.implementation.environment({
119
+ environment: input.selectedEnvironment,
120
+ credentialSource: input.credentialSource,
121
+ log: input.ui
122
+ }));
123
+ const providerEnvironment = await resolveEnvironment();
124
+ const envOverrides = providerEnvironment.variables;
125
+ const readinessInput = {
126
+ appDir: input.appDir,
127
+ workspaceRoot: input.workspaceRoot,
128
+ displayBase: input.displayBase,
129
+ environment: input.selectedEnvironment,
130
+ provider: input.provider,
131
+ runtime: input.runtime,
132
+ execution: input.execution,
133
+ // execute() loaded the deployment module before the provider environment
134
+ // was resolved. A same-process import would reuse that stale module; the
135
+ // fresh evaluation renders under the resolved projection, passed as data.
136
+ freshDeploymentProjection: providerEnvironment.projected
137
+ };
138
+ if (providerEnvironment.projected) {
139
+ readinessInput.projectionEnvironment = envOverrides;
55
140
  }
56
- const candidates = descriptors
57
- .filter((d) => {
58
- if (environmentOverride)
59
- return true;
60
- if (!d.tiers || d.tiers.length === 0)
61
- return true;
62
- return d.tiers.some((tier) => tierCandidates.has(tier));
63
- })
64
- .sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
65
- const out = {};
66
- for (const descriptor of candidates) {
67
- const store = (await runtime
68
- .query('secrets/store')
69
- .withId(descriptor.id)
70
- .resolve());
71
- if (!process.env.CLOUDFLARE_API_TOKEN && !out.CLOUDFLARE_API_TOKEN) {
72
- const value = await store.get(envName, CLOUDFLARE_API_TOKEN_KEY);
73
- if (value && value.length > 0) {
74
- out.CLOUDFLARE_API_TOKEN = value;
75
- }
76
- }
77
- if (!process.env.CLOUDFLARE_ACCOUNT_ID && !out.CLOUDFLARE_ACCOUNT_ID) {
78
- const value = await store.get(envName, CLOUDFLARE_ACCOUNT_ID_KEY);
79
- if (value && value.length > 0) {
80
- out.CLOUDFLARE_ACCOUNT_ID = value;
81
- }
82
- }
83
- if (out.CLOUDFLARE_API_TOKEN && out.CLOUDFLARE_ACCOUNT_ID)
84
- break;
141
+ const readinessReport = await collectReadiness(readinessInput);
142
+ const environmentResolution = readinessReport.environmentResolution;
143
+ if (input.emitEnvironmentLine) {
144
+ input.ui.info(`[environment] ${formatDeploymentEnvironmentResolution(environmentResolution)}`);
85
145
  }
86
- if (Object.keys(out).length > 0) {
87
- ui.info(`Resolved Cloudflare deploy credentials from secrets store (${envName}/${envTier}).`);
146
+ const environmentRefusal = deploymentEnvironmentRunRefusal(environmentResolution, {
147
+ environment: input.targetEnvironment,
148
+ providerEnvironment: input.wranglerEnvironmentOverride
149
+ });
150
+ if (environmentRefusal) {
151
+ throw new CapabilityError(environmentRefusal.message, environmentRefusal.code, {
152
+ details: environmentResolution,
153
+ recoveryHint: environmentRefusal.recoveryHint
154
+ });
88
155
  }
89
- return out;
156
+ return { envOverrides, readinessReport, environmentResolution };
157
+ }
158
+ /** The marker/ledger record of a release; one shape for every provider. */
159
+ function releaseRecord(release, providerTraceRefOverride) {
160
+ return {
161
+ deployedUrl: release.deployedUrl,
162
+ externalDeploymentId: release.externalDeploymentId,
163
+ providerTraceRef: providerTraceRefOverride ?? release.providerTraceRef
164
+ };
90
165
  }
91
166
  export default {
92
- async execute(args, opts) {
93
- const runtime = getVibesRuntime();
94
- const ui = (await runtime.context('cli/ui'));
95
- const pathArg = readString(args.path) ?? process.cwd();
167
+ async execute(args, opts, context) {
168
+ const { runtime } = context;
169
+ const cwd = requireRuntimeCwd(runtime);
170
+ const ui = await runtime.context('cli/ui');
171
+ const execution = await resolveRuntimeExecution(runtime);
172
+ const paths = await getRuntimePath(runtime);
173
+ const pathArg = paths.resolve(cwd, readString(args.path) ?? '.');
96
174
  const output = readString(opts.output) ?? 'text';
97
175
  const skipBuild = readBoolean(opts.skipBuild);
98
176
  const skipD1Migrations = readBoolean(opts.skipD1Migrations);
99
177
  const dryRun = readBoolean(opts.dryRun);
100
- const workspaceRootOverride = readString(opts.workspaceRoot);
101
178
  const targetEnvironment = readString(opts.environment);
102
- let loaded;
103
- try {
104
- loaded = await loadDeploymentConfig(pathArg);
105
- }
106
- catch (err) {
107
- ui.error(`Failed to load deployment config: ${err.message}`);
108
- process.exitCode = 1;
109
- return;
179
+ const credentialSource = readCredentialSource(opts);
180
+ const wranglerEnvironmentOverride = readString(opts.wranglerEnv);
181
+ const selectedEnvironment = selectDeploymentEnvironment({
182
+ environment: targetEnvironment,
183
+ providerEnvironment: wranglerEnvironmentOverride
184
+ });
185
+ const logsRef = readString(opts.logsRef);
186
+ const providerTraceRefOverride = readString(opts.providerTraceRef);
187
+ const remediationUrl = readString(opts.remediationUrl);
188
+ // Identity load: provider and app directory are needed to resolve the
189
+ // projection. Readiness and the provider's render re-evaluate under the
190
+ // resolved projection, passed as data; this load renders under an empty one.
191
+ const loadedOutcome = await settle(async () => loadDeploymentConfig(pathArg, { runtime, projectionEnvironment: {} }));
192
+ if (!loadedOutcome.ok) {
193
+ throw failedDeploymentConfigLoad(loadedOutcome.cause);
110
194
  }
195
+ const loaded = loadedOutcome.value;
111
196
  const { deployment, provider, appDir } = loaded;
197
+ // The provider the deployment declares, resolved through the runtime; its
198
+ // own schema refuses options it cannot honour before anything is recorded.
199
+ const { implementation } = await resolveDeploymentProvider(runtime, provider);
200
+ const options = providerOptions(opts);
201
+ implementation.validateOptions(options);
202
+ const appRepositoryRoot = await resolveGitRepositoryRoot(runtime, execution, appDir);
203
+ const workspaceRoot = deployWorkspaceRoot(paths, deployment.build.workspaceRootDir, appDir, await runtime.context('runtime/workspace-path'));
204
+ // Fail-closed prologue: resolve the provider environment FIRST, run readiness
205
+ // under it, and refuse a stripped projection — all BEFORE the ledger and the
206
+ // release below. See prepareDeployProjection. The returned envOverrides is the
207
+ // object the release receives, so nothing downstream reads pre-resolution state.
208
+ const { envOverrides, readinessReport, environmentResolution } = await prepareDeployProjection({
209
+ provider,
210
+ implementation,
211
+ appDir,
212
+ workspaceRoot,
213
+ displayBase: cwd,
214
+ selectedEnvironment,
215
+ targetEnvironment,
216
+ wranglerEnvironmentOverride,
217
+ credentialSource,
218
+ runtime,
219
+ execution,
220
+ ui,
221
+ emitEnvironmentLine: output === 'text'
222
+ });
223
+ const readinessEvidence = readinessEvidenceForLedger(readinessReport);
112
224
  if (output === 'text') {
113
225
  ui.info(`Deploying ${deployment.appName} (${deployment.appId}) via ${provider}`);
114
226
  }
115
- const onLine = (_stream, line) => {
227
+ const onLine = (stream, line) => {
116
228
  if (output === 'text')
117
- ui.log(line);
229
+ emitDeployOutputLine(ui, stream, line);
118
230
  };
231
+ // One resolution, passed explicitly to every marker/ledger site: manual
232
+ // deploys otherwise record NULL commits (only CI env vars were read).
233
+ const sourceIdentity = await resolveGitSourceIdentity(runtime, execution, appDir);
234
+ // Bake the deployed commit into the build so the LIVE origin can report which
235
+ // build it is serving. `apps/sveltekit-version.mjs` already reads
236
+ // `VIBES_BUILD_VERSION` into `kit.version.name`, which SvelteKit publishes at
237
+ // `/_app/version.json` — public, pre-auth, no API token. Without this it falls
238
+ // back to `Date.now()`, which changes per build but cannot be compared against
239
+ // anything, so a deploy could not be distinguished from a stale worker.
240
+ if (sourceIdentity.commit) {
241
+ envOverrides.VIBES_BUILD_VERSION = sourceIdentity.commit;
242
+ }
243
+ const startedRun = await startDeploymentRun(runtime, {
244
+ store: deploymentRunStore(runtime),
245
+ deployment,
246
+ provider,
247
+ environment: environmentResolution.environment,
248
+ appDir,
249
+ dryRun,
250
+ skipBuild,
251
+ skipD1Migrations,
252
+ branch: readString(opts.branch) ?? sourceIdentity.branch,
253
+ commit: sourceIdentity.commit,
254
+ logsRef,
255
+ providerTraceRef: providerTraceRefOverride,
256
+ remediationUrl,
257
+ readinessEvidence
258
+ });
259
+ const deploymentRunId = startedRun.status === 'recorded' ? startedRun.runId : undefined;
260
+ if (output === 'text')
261
+ logDeploymentRunLedgerResult(startedRun, onLine);
262
+ if (!dryRun && startedRun.status !== 'recorded') {
263
+ throw new CapabilityError('Refusing real deploy because the deployment run ledger could not be recorded.', 'UNAVAILABLE', { details: { ledgerStatus: startedRun.status, reason: startedRun.reason } });
264
+ }
119
265
  try {
120
- switch (provider) {
121
- case 'cloudflare-workers': {
122
- const environment = readString(opts.wranglerEnv);
123
- const workspaceRoot = resolveWorkspaceRoot(deployment.build.workspaceRootDir, appDir, workspaceRootOverride);
124
- // Run generic pre-deploy commands (provider-agnostic hooks)
125
- if (deployment.preDeployCommands.length > 0) {
126
- onLine('stdout', `Running ${deployment.preDeployCommands.length} pre-deploy command(s)...`);
127
- for (const cmd of deployment.preDeployCommands) {
128
- if (cmd.description) {
129
- onLine('stdout', ` ${cmd.description}`);
130
- }
131
- if (dryRun) {
132
- onLine('stdout', ` [dry-run] ${cmd.command}`);
133
- continue;
134
- }
135
- const [bin, ...args] = cmd.command.split(' ').filter(Boolean);
136
- if (!bin)
137
- continue;
138
- const child = spawnSync(bin, args, {
139
- cwd: appDir,
140
- stdio: 'inherit',
141
- env: process.env
142
- });
143
- if (child.status !== 0) {
144
- throw new Error(`Pre-deploy command failed: ${cmd.command} (exit=${child.status ?? child.error?.message ?? 'unknown'})`);
145
- }
146
- }
147
- onLine('stdout', 'Pre-deploy commands complete.');
148
- }
149
- // Regen gate: refuse to deploy a stale wrangler.jsonc. For apps with
150
- // `managed: true` in deployment.config.ts, this enforces that what's
151
- // on disk matches what the typed config would produce. Unmanaged apps
152
- // pass through (the gate is opt-in until every app is migrated).
153
- const regen = await regenerateApp(appDir, { mode: 'check' });
154
- if (regen.status === 'drift') {
155
- const uuidRe = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
156
- const isKvIdDrift = regen.diff &&
157
- /^[\+\-]\s+"id":\s*"[^"]*"/m.test(regen.diff) &&
158
- !uuidRe.test(regen.diff.replace(/"id":\s*"([^"]*)"/g, '$1').slice(0, 36));
159
- if (!isKvIdDrift) {
160
- const detail = regen.diff ? `\n${regen.diff}` : '';
161
- throw new Error(`wrangler.jsonc drift for ${regen.appId} — regenerate before deploy (run \`vibes infra deploy regenerate ${appDir}\`)${detail}`);
162
- }
163
- onLine('stdout', `[regen] wrangler.jsonc verified (unchanged — kv namespace IDs resolved)`);
164
- }
165
- if (regen.status === 'error') {
166
- throw new Error(`regenerate check failed for ${appDir}: ${regen.reason ?? 'unknown error'}`);
167
- }
168
- if (regen.status === 'updated' || regen.status === 'unchanged') {
169
- onLine('stdout', `[regen] wrangler.jsonc verified (${regen.status})`);
170
- }
171
- else if (regen.status === 'skipped') {
172
- onLine('stdout', `[regen] skipped: ${regen.reason ?? 'not managed'}`);
173
- }
174
- const client = await getCloudflareWorkersDeployClient();
175
- const envOverrides = await resolveCloudflareEnvFromSecretsStore(runtime, ui, targetEnvironment);
176
- // Provisioning for KV, D1, R2 is now always attempted when declared
177
- // (creation + ID reconciliation happens in the client using REST API).
178
- // Migrations remain opt-in via autoMigrateD1 for safety.
179
- const rawConfig = loaded.raw;
180
- const autoMigrateD1 = rawConfig.autoMigrateD1 === true && !skipD1Migrations;
181
- if (skipD1Migrations) {
182
- onLine('stdout', 'Skipping D1 migrations for this deploy.');
183
- }
184
- const generatedWranglerConfig = typeof rawConfig.generateWranglerConfig === 'function'
185
- ? rawConfig.generateWranglerConfig()
186
- : loaded.wranglerJsoncString
187
- ? JSON.parse(loaded.wranglerJsoncString.replace(/^\s*\/\/.*$/gm, ''))
188
- : rawConfig;
189
- const d1Databases = (rawConfig.d1Databases ??
190
- rawConfig.d1_databases ??
191
- generatedWranglerConfig.d1Databases ??
192
- generatedWranglerConfig.d1_databases) ?? undefined;
193
- const r2Buckets = rawConfig.r2_buckets ?? undefined;
194
- const result = await client.deployWorker({
266
+ let release;
267
+ const variables = { ...envOverrides };
268
+ if (sourceIdentity.commit)
269
+ variables.VIBES_BUILD_VERSION = sourceIdentity.commit;
270
+ const releaseInProcess = async (host, compositionDigest) => {
271
+ return DeploymentReleaseResultSchema.parse(await implementation.release({
272
+ ...DeploymentReleaseRequestSchema.parse({
195
273
  appDir,
196
274
  workspaceRoot,
197
- workerName: deployment.appId,
198
- buildCommand: deployment.build.buildCommand,
199
- skipBuild,
275
+ repositoryRoot: appRepositoryRoot,
276
+ environment: environmentResolution.environment,
277
+ providerEnvironment: environmentResolution.providerEnvironment ?? null,
200
278
  dryRun,
201
- environment,
202
- envOverrides,
203
- kvNamespaces: deployment.kvNamespaces,
204
- d1Databases: autoMigrateD1 ? d1Databases : undefined,
205
- r2Buckets,
206
- onLine
207
- });
208
- if (output === 'json') {
209
- ui.json({
210
- ok: true,
211
- provider: 'cloudflare-workers',
212
- workerName: result.workerName,
213
- deployedUrl: result.deployedUrl
214
- });
215
- }
216
- else if (!dryRun) {
217
- ui.success(result.deployedUrl
218
- ? `Deployed Worker ${result.workerName} at ${result.deployedUrl}`
219
- : `Deployed Worker ${result.workerName}`);
220
- }
221
- return;
279
+ skipBuild,
280
+ source: {
281
+ commit: sourceIdentity.commit,
282
+ branch: sourceIdentity.branch,
283
+ compositionDigest
284
+ },
285
+ options
286
+ }),
287
+ deployment,
288
+ module: deploymentModuleEvaluation(loaded),
289
+ variables,
290
+ host,
291
+ log: ui,
292
+ onLine
293
+ }));
294
+ };
295
+ if (dryRun) {
296
+ release = await releaseInProcess(createDeploymentReleaseHost({
297
+ runtime,
298
+ execution,
299
+ deployment,
300
+ appDir,
301
+ workspaceRoot,
302
+ environment: environmentResolution.environment,
303
+ credentialSource,
304
+ skipBuild,
305
+ dryRun,
306
+ onLine
307
+ }));
308
+ }
309
+ else {
310
+ // A deploy builds in this workspace. The composition owner names its committed
311
+ // source identity once; every step re-asserts the app repository's commit, and
312
+ // the release host seals the bytes it built (or, with --skip-build, the bytes
313
+ // already here) before provider effects. Commits to other repositories in the
314
+ // workspace do not change what this app deploys.
315
+ const isolation = runtime.hasKind('workspace/isolation')
316
+ ? await runtime.query('workspace/isolation').resolve()
317
+ : undefined;
318
+ const refusal = skipBuild
319
+ ? { message: 'Skip-build requires a matching immutable source, composition and artifact receipt.', reason: 'skip-build-immutable-receipt-required' }
320
+ : { message: 'A deploy requires a committed source this workspace composes.', reason: 'deployment-source-identity-required' };
321
+ if (!isolation || !appRepositoryRoot || !sourceIdentity.commit) {
322
+ throw new CapabilityError(refusal.message, 'INVALID_INPUT', { reason: refusal.reason });
222
323
  }
223
- case 'digitalocean-app': {
224
- const doAppId = readString(opts.doAppId);
225
- const doRegion = readString(opts.doRegion);
226
- const doGitRepo = readString(opts.doGitRepo);
227
- const doGitBranch = readString(opts.doGitBranch);
228
- const client = await getDigitalOceanAppDeployClient();
229
- const result = await client.deployApp({
230
- deployment,
231
- appId: doAppId,
232
- region: doRegion,
233
- git: doGitRepo ? { repoCloneUrl: doGitRepo, branch: doGitBranch ?? 'main' } : undefined,
234
- dryRun,
235
- onLine
236
- });
237
- if (output === 'json') {
238
- ui.json({
239
- ok: true,
240
- provider: 'digitalocean-app',
241
- appId: result.appId,
242
- liveUrl: result.liveUrl
324
+ const reference = await isolation.prepareComposition(appRepositoryRoot);
325
+ if (reference.parent.repoPath !== workspaceRoot || reference.source.commit !== sourceIdentity.commit) {
326
+ throw new CapabilityError(refusal.message, 'INVALID_INPUT', { reason: refusal.reason });
327
+ }
328
+ const assertSource = async () => {
329
+ const current = await resolveGitSourceIdentity(runtime, execution, appDir);
330
+ if (current.commit !== reference.source.commit) {
331
+ throw new CapabilityError('Deployment source identity does not match its admitted composition.', 'CONFLICT', {
332
+ reason: 'deployment-source-identity-mismatch'
243
333
  });
244
334
  }
245
- else if (!dryRun) {
246
- ui.success(result.liveUrl
247
- ? `Deployed DO App ${result.appId} at ${result.liveUrl}`
248
- : `Deployed DO App ${result.appId}`);
335
+ };
336
+ release = await releaseInProcess(createDeploymentReleaseHost({
337
+ runtime,
338
+ execution,
339
+ deployment,
340
+ appDir,
341
+ workspaceRoot,
342
+ environment: environmentResolution.environment,
343
+ credentialSource,
344
+ skipBuild,
345
+ dryRun,
346
+ onLine,
347
+ immutableBuild: {
348
+ compositionDigest: reference.digest,
349
+ sourceCommit: reference.source.commit,
350
+ lockFiles: WorkspaceCompositionLockPathSchema.options,
351
+ assertSource
249
352
  }
250
- return;
251
- }
252
- default: {
253
- ui.error(`Unsupported provider: ${provider}`);
254
- ui.info('Supported providers: cloudflare-workers, digitalocean-app');
255
- process.exitCode = 1;
256
- return;
257
- }
353
+ }), reference.digest);
258
354
  }
355
+ const record = releaseRecord(release, providerTraceRefOverride);
356
+ // Live-probe BEFORE recording the marker so the marker states what is
357
+ // actually serving, not what the upload claimed (the marker path has
358
+ // produced a false DEPLOY FAILED under rate limiting before).
359
+ const smokeEnabled = opts.smoke !== false;
360
+ const smokeResult = release.probe && smokeEnabled
361
+ ? await runDeploySmokeProbe({
362
+ runtime,
363
+ deployment,
364
+ deployedUrl: release.deployedUrl,
365
+ environmentResolution,
366
+ // Same SHA baked into the build above. Passing it turns the
367
+ // probe from "the origin answered" into "the build I just
368
+ // shipped is the one serving".
369
+ expectedVersion: sourceIdentity.commit,
370
+ onLine
371
+ })
372
+ : undefined;
373
+ if (smokeResult && !smokeResult.ok) {
374
+ // Throw into the shared failure path below — it records the failed
375
+ // marker + ledger row exactly once and owns the exit envelope.
376
+ // No blanket rollback advice: the smoke detail already carries the
377
+ // remedy that fits the specific failure.
378
+ throw new Error(`smoke probe: ${release.externalDeploymentId ?? deployment.appId} uploaded but ${smokeResult.url ?? 'its origin'} did not pass the post-deploy check within the retry window (${smokeResult.detail}). The upload itself succeeded — confirm what is actually serving before reverting anything.`);
379
+ }
380
+ const smokeNotes = smokeResult
381
+ ? smokeResult.skipped
382
+ ? `smoke SKIPPED: ${smokeResult.detail}`
383
+ : `smoke ok: ${smokeResult.detail}`
384
+ : undefined;
385
+ const released = release.status === 'released';
386
+ const deploymentMarker = released
387
+ ? await emitDeploymentMarker({
388
+ runtime,
389
+ deployment,
390
+ provider,
391
+ environment: environmentResolution.environment,
392
+ ...record,
393
+ deploymentRunId,
394
+ commit: sourceIdentity.commit,
395
+ branch: sourceIdentity.branch,
396
+ logsRef,
397
+ remediationUrl,
398
+ notes: smokeNotes ?? release.notes
399
+ })
400
+ : undefined;
401
+ const deploymentRun = await completeDeploymentRun({
402
+ store: deploymentRunStore(runtime),
403
+ runId: deploymentRunId,
404
+ status: released ? 'succeeded' : 'dry_run',
405
+ ...record,
406
+ logsRef,
407
+ remediationUrl,
408
+ marker: deploymentMarker,
409
+ readinessEvidence,
410
+ notes: smokeNotes ?? release.notes
411
+ });
412
+ if (output === 'json') {
413
+ ui.json({
414
+ ok: true,
415
+ provider,
416
+ ...release.result,
417
+ environmentResolution,
418
+ deploymentMarker,
419
+ deploymentRun
420
+ });
421
+ return;
422
+ }
423
+ if (release.summary)
424
+ ui.success(release.summary);
425
+ if (deploymentMarker)
426
+ logDeploymentMarkerResult(deploymentMarker, onLine);
427
+ logDeploymentRunLedgerResult(deploymentRun, onLine);
259
428
  }
260
429
  catch (err) {
261
- const message = err.message;
262
- if (output === 'json') {
263
- ui.json({ ok: false, error: message });
430
+ // A coded error from the release (e.g. a refused provider option) is an
431
+ // input/validation failure, not a deploy that failed mid-flight — let it
432
+ // propagate without emitting a failure marker or ledger row.
433
+ if (err instanceof CapabilityError)
434
+ throw err;
435
+ const message = readErrorMessage(err);
436
+ const summary = message.split('\n')[0];
437
+ const markerEnvironment = environmentResolution.environment;
438
+ let deploymentMarker = undefined;
439
+ if (!dryRun) {
440
+ const markerOutcome = await settle(() => emitDeploymentMarker({
441
+ runtime,
442
+ deployment,
443
+ provider,
444
+ environment: markerEnvironment,
445
+ status: 'failed',
446
+ deploymentRunId,
447
+ logsRef,
448
+ providerTraceRef: providerTraceRefOverride,
449
+ remediationUrl,
450
+ notes: summary
451
+ }));
452
+ deploymentMarker = markerOutcome.ok
453
+ ? markerOutcome.value
454
+ : {
455
+ status: 'failed',
456
+ reason: `failure marker emission failed: ${failureMessage(markerOutcome.cause)}`
457
+ };
264
458
  }
265
- else {
266
- ui.error(message);
459
+ const deploymentRun = await completeDeploymentRun({
460
+ store: deploymentRunStore(runtime),
461
+ runId: deploymentRunId,
462
+ status: 'failed',
463
+ marker: deploymentMarker,
464
+ logsRef,
465
+ providerTraceRef: providerTraceRefOverride,
466
+ remediationUrl,
467
+ readinessEvidence,
468
+ error: summary
469
+ });
470
+ // Record the marker/ledger rows before propagating, then throw so the
471
+ // surface owns the exit code and the failure envelope. The marker/ledger
472
+ // lines read success-ish ("recorded run <id>") even on failure, so the
473
+ // thrown message must be unambiguous.
474
+ if (output === 'text') {
475
+ if (deploymentMarker)
476
+ logDeploymentMarkerResult(deploymentMarker, onLine);
477
+ logDeploymentRunLedgerResult(deploymentRun, onLine);
267
478
  }
268
- process.exitCode = 1;
479
+ throw new CapabilityError(`DEPLOY FAILED — ${deployment.appId} (${provider}${markerEnvironment ? `, ${markerEnvironment}` : ''}): ${message}`, 'INTERNAL', { cause: err, details: { deploymentMarker, deploymentRun } });
269
480
  }
270
481
  }
271
482
  };