@vibesdotdev/infra-deploy 0.0.1 → 1.0.0-rc.4

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 (662) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +79 -118
  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 +1161 -108
  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 +34 -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 +42 -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 +82 -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 +80 -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 +48 -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 +47 -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 +532 -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 +64 -0
  192. package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
  193. package/dist/cli/npm/mirror-registry-artifacts.js +114 -0
  194. package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
  195. package/dist/cli/npm/publish/command-options.d.ts +24 -0
  196. package/dist/cli/npm/publish/command-options.d.ts.map +1 -0
  197. package/dist/cli/npm/publish/command-options.js +85 -0
  198. package/dist/cli/npm/publish/command-options.js.map +1 -0
  199. package/dist/cli/npm/publish/concurrency.d.ts +19 -0
  200. package/dist/cli/npm/publish/concurrency.d.ts.map +1 -0
  201. package/dist/cli/npm/publish/concurrency.js +60 -0
  202. package/dist/cli/npm/publish/concurrency.js.map +1 -0
  203. package/dist/cli/npm/publish/consumer-smoke.d.ts +83 -0
  204. package/dist/cli/npm/publish/consumer-smoke.d.ts.map +1 -0
  205. package/dist/cli/npm/publish/consumer-smoke.js +371 -0
  206. package/dist/cli/npm/publish/consumer-smoke.js.map +1 -0
  207. package/dist/cli/npm/publish/consumer-surfaces.d.ts +81 -0
  208. package/dist/cli/npm/publish/consumer-surfaces.d.ts.map +1 -0
  209. package/dist/cli/npm/publish/consumer-surfaces.js +199 -0
  210. package/dist/cli/npm/publish/consumer-surfaces.js.map +1 -0
  211. package/dist/cli/npm/publish/external-requirements.d.ts +171 -0
  212. package/dist/cli/npm/publish/external-requirements.d.ts.map +1 -0
  213. package/dist/cli/npm/publish/external-requirements.js +365 -0
  214. package/dist/cli/npm/publish/external-requirements.js.map +1 -0
  215. package/dist/cli/npm/publish/forge-source-identity.d.ts +64 -0
  216. package/dist/cli/npm/publish/forge-source-identity.d.ts.map +1 -0
  217. package/dist/cli/npm/publish/forge-source-identity.js +201 -0
  218. package/dist/cli/npm/publish/forge-source-identity.js.map +1 -0
  219. package/dist/cli/npm/publish/fs-paths.d.ts +25 -0
  220. package/dist/cli/npm/publish/fs-paths.d.ts.map +1 -0
  221. package/dist/cli/npm/publish/fs-paths.js +87 -0
  222. package/dist/cli/npm/publish/fs-paths.js.map +1 -0
  223. package/dist/cli/npm/publish/lease-preflight-answer.d.ts +17 -0
  224. package/dist/cli/npm/publish/lease-preflight-answer.d.ts.map +1 -0
  225. package/dist/cli/npm/publish/lease-preflight-answer.js +35 -0
  226. package/dist/cli/npm/publish/lease-preflight-answer.js.map +1 -0
  227. package/dist/cli/npm/publish/lease-preflight.d.ts +92 -0
  228. package/dist/cli/npm/publish/lease-preflight.d.ts.map +1 -0
  229. package/dist/cli/npm/publish/lease-preflight.js +205 -0
  230. package/dist/cli/npm/publish/lease-preflight.js.map +1 -0
  231. package/dist/cli/npm/publish/managed-lease.d.ts +110 -0
  232. package/dist/cli/npm/publish/managed-lease.d.ts.map +1 -0
  233. package/dist/cli/npm/publish/managed-lease.js +191 -0
  234. package/dist/cli/npm/publish/managed-lease.js.map +1 -0
  235. package/dist/cli/npm/publish/npm-exec.d.ts +148 -0
  236. package/dist/cli/npm/publish/npm-exec.d.ts.map +1 -0
  237. package/dist/cli/npm/publish/npm-exec.js +311 -0
  238. package/dist/cli/npm/publish/npm-exec.js.map +1 -0
  239. package/dist/cli/npm/publish/package-artifact.d.ts +107 -0
  240. package/dist/cli/npm/publish/package-artifact.d.ts.map +1 -0
  241. package/dist/cli/npm/publish/package-artifact.js +418 -0
  242. package/dist/cli/npm/publish/package-artifact.js.map +1 -0
  243. package/dist/cli/npm/publish/platform-registry.d.ts +76 -0
  244. package/dist/cli/npm/publish/platform-registry.d.ts.map +1 -0
  245. package/dist/cli/npm/publish/platform-registry.js +324 -0
  246. package/dist/cli/npm/publish/platform-registry.js.map +1 -0
  247. package/dist/cli/npm/publish/proof-external-closure.d.ts +139 -0
  248. package/dist/cli/npm/publish/proof-external-closure.d.ts.map +1 -0
  249. package/dist/cli/npm/publish/proof-external-closure.js +339 -0
  250. package/dist/cli/npm/publish/proof-external-closure.js.map +1 -0
  251. package/dist/cli/npm/publish/proof-installed-graph.d.ts +26 -0
  252. package/dist/cli/npm/publish/proof-installed-graph.d.ts.map +1 -0
  253. package/dist/cli/npm/publish/proof-installed-graph.js +229 -0
  254. package/dist/cli/npm/publish/proof-installed-graph.js.map +1 -0
  255. package/dist/cli/npm/publish/proof-registry.d.ts +74 -0
  256. package/dist/cli/npm/publish/proof-registry.d.ts.map +1 -0
  257. package/dist/cli/npm/publish/proof-registry.js +335 -0
  258. package/dist/cli/npm/publish/proof-registry.js.map +1 -0
  259. package/dist/cli/npm/publish/proof-source-credentials.d.ts +42 -0
  260. package/dist/cli/npm/publish/proof-source-credentials.d.ts.map +1 -0
  261. package/dist/cli/npm/publish/proof-source-credentials.js +129 -0
  262. package/dist/cli/npm/publish/proof-source-credentials.js.map +1 -0
  263. package/dist/cli/npm/publish/publish-package.d.ts +66 -0
  264. package/dist/cli/npm/publish/publish-package.d.ts.map +1 -0
  265. package/dist/cli/npm/publish/publish-package.js +544 -0
  266. package/dist/cli/npm/publish/publish-package.js.map +1 -0
  267. package/dist/cli/npm/publish/publisher-manifest.d.ts +173 -0
  268. package/dist/cli/npm/publish/publisher-manifest.d.ts.map +1 -0
  269. package/dist/cli/npm/publish/publisher-manifest.js +79 -0
  270. package/dist/cli/npm/publish/publisher-manifest.js.map +1 -0
  271. package/dist/cli/npm/publish/rc-major-exception.d.ts +20 -0
  272. package/dist/cli/npm/publish/rc-major-exception.d.ts.map +1 -0
  273. package/dist/cli/npm/publish/rc-major-exception.js +46 -0
  274. package/dist/cli/npm/publish/rc-major-exception.js.map +1 -0
  275. package/dist/cli/npm/publish/registry-availability.d.ts +150 -0
  276. package/dist/cli/npm/publish/registry-availability.d.ts.map +1 -0
  277. package/dist/cli/npm/publish/registry-availability.js +570 -0
  278. package/dist/cli/npm/publish/registry-availability.js.map +1 -0
  279. package/dist/cli/npm/publish/registry-credentials.d.ts +108 -0
  280. package/dist/cli/npm/publish/registry-credentials.d.ts.map +1 -0
  281. package/dist/cli/npm/publish/registry-credentials.js +290 -0
  282. package/dist/cli/npm/publish/registry-credentials.js.map +1 -0
  283. package/dist/cli/npm/publish/registry-reads.d.ts +42 -0
  284. package/dist/cli/npm/publish/registry-reads.d.ts.map +1 -0
  285. package/dist/cli/npm/publish/registry-reads.js +164 -0
  286. package/dist/cli/npm/publish/registry-reads.js.map +1 -0
  287. package/dist/cli/npm/publish/release-build.d.ts +46 -0
  288. package/dist/cli/npm/publish/release-build.d.ts.map +1 -0
  289. package/dist/cli/npm/publish/release-build.js +140 -0
  290. package/dist/cli/npm/publish/release-build.js.map +1 -0
  291. package/dist/cli/npm/publish/release-consumer-proof.d.ts +70 -0
  292. package/dist/cli/npm/publish/release-consumer-proof.d.ts.map +1 -0
  293. package/dist/cli/npm/publish/release-consumer-proof.js +397 -0
  294. package/dist/cli/npm/publish/release-consumer-proof.js.map +1 -0
  295. package/dist/cli/npm/publish/release-executor.d.ts +46 -0
  296. package/dist/cli/npm/publish/release-executor.d.ts.map +1 -0
  297. package/dist/cli/npm/publish/release-executor.js +181 -0
  298. package/dist/cli/npm/publish/release-executor.js.map +1 -0
  299. package/dist/cli/npm/publish/release-grants.client.impl.d.ts +10 -0
  300. package/dist/cli/npm/publish/release-grants.client.impl.d.ts.map +1 -0
  301. package/dist/cli/npm/publish/release-grants.client.impl.js +63 -0
  302. package/dist/cli/npm/publish/release-grants.client.impl.js.map +1 -0
  303. package/dist/cli/npm/publish/release-jobs.client.d.ts +39 -0
  304. package/dist/cli/npm/publish/release-jobs.client.d.ts.map +1 -0
  305. package/dist/cli/npm/publish/release-jobs.client.js +124 -0
  306. package/dist/cli/npm/publish/release-jobs.client.js.map +1 -0
  307. package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts +20 -0
  308. package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts.map +1 -0
  309. package/dist/cli/npm/publish/release-jobs.consumer.plugin.js +82 -0
  310. package/dist/cli/npm/publish/release-jobs.consumer.plugin.js.map +1 -0
  311. package/dist/cli/npm/publish/release-jobs.impl.d.ts +15 -0
  312. package/dist/cli/npm/publish/release-jobs.impl.d.ts.map +1 -0
  313. package/dist/cli/npm/publish/release-jobs.impl.js +42 -0
  314. package/dist/cli/npm/publish/release-jobs.impl.js.map +1 -0
  315. package/dist/cli/npm/publish/release-lock.d.ts +143 -0
  316. package/dist/cli/npm/publish/release-lock.d.ts.map +1 -0
  317. package/dist/cli/npm/publish/release-lock.js +371 -0
  318. package/dist/cli/npm/publish/release-lock.js.map +1 -0
  319. package/dist/cli/npm/publish/release-phases.d.ts +93 -0
  320. package/dist/cli/npm/publish/release-phases.d.ts.map +1 -0
  321. package/dist/cli/npm/publish/release-phases.js +175 -0
  322. package/dist/cli/npm/publish/release-phases.js.map +1 -0
  323. package/dist/cli/npm/publish/release-plan.d.ts +65 -0
  324. package/dist/cli/npm/publish/release-plan.d.ts.map +1 -0
  325. package/dist/cli/npm/publish/release-plan.js +178 -0
  326. package/dist/cli/npm/publish/release-plan.js.map +1 -0
  327. package/dist/cli/npm/publish/release-preflight.job.impl.d.ts +16 -0
  328. package/dist/cli/npm/publish/release-preflight.job.impl.d.ts.map +1 -0
  329. package/dist/cli/npm/publish/release-preflight.job.impl.js +71 -0
  330. package/dist/cli/npm/publish/release-preflight.job.impl.js.map +1 -0
  331. package/dist/cli/npm/publish/release-publish.job.impl.d.ts +18 -0
  332. package/dist/cli/npm/publish/release-publish.job.impl.d.ts.map +1 -0
  333. package/dist/cli/npm/publish/release-publish.job.impl.js +295 -0
  334. package/dist/cli/npm/publish/release-publish.job.impl.js.map +1 -0
  335. package/dist/cli/npm/publish/release-workspace.d.ts +95 -0
  336. package/dist/cli/npm/publish/release-workspace.d.ts.map +1 -0
  337. package/dist/cli/npm/publish/release-workspace.js +243 -0
  338. package/dist/cli/npm/publish/release-workspace.js.map +1 -0
  339. package/dist/cli/npm/publish/sensitive-temp.d.ts +90 -0
  340. package/dist/cli/npm/publish/sensitive-temp.d.ts.map +1 -0
  341. package/dist/cli/npm/publish/sensitive-temp.js +351 -0
  342. package/dist/cli/npm/publish/sensitive-temp.js.map +1 -0
  343. package/dist/cli/npm/publish/source-snapshot.d.ts +91 -0
  344. package/dist/cli/npm/publish/source-snapshot.d.ts.map +1 -0
  345. package/dist/cli/npm/publish/source-snapshot.js +245 -0
  346. package/dist/cli/npm/publish/source-snapshot.js.map +1 -0
  347. package/dist/cli/npm/publish/types.d.ts +69 -0
  348. package/dist/cli/npm/publish/types.d.ts.map +1 -0
  349. package/dist/cli/npm/publish/types.js +2 -0
  350. package/dist/cli/npm/publish/types.js.map +1 -0
  351. package/dist/cli/npm/publish/workspace-discovery.d.ts +48 -0
  352. package/dist/cli/npm/publish/workspace-discovery.d.ts.map +1 -0
  353. package/dist/cli/npm/publish/workspace-discovery.js +313 -0
  354. package/dist/cli/npm/publish/workspace-discovery.js.map +1 -0
  355. package/dist/cli/npm/put-attested-packument.d.ts +96 -0
  356. package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
  357. package/dist/cli/npm/put-attested-packument.js +240 -0
  358. package/dist/cli/npm/put-attested-packument.js.map +1 -0
  359. package/dist/cli/npm/reconcile-latest.d.ts +55 -0
  360. package/dist/cli/npm/reconcile-latest.d.ts.map +1 -0
  361. package/dist/cli/npm/reconcile-latest.js +59 -0
  362. package/dist/cli/npm/reconcile-latest.js.map +1 -0
  363. package/dist/cli/observability/blind-spots.d.ts +10 -0
  364. package/dist/cli/observability/blind-spots.d.ts.map +1 -0
  365. package/dist/cli/observability/blind-spots.js +19 -0
  366. package/dist/cli/observability/blind-spots.js.map +1 -0
  367. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts +6 -0
  368. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts.map +1 -0
  369. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js +75 -0
  370. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js.map +1 -0
  371. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +42 -21
  372. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -1
  373. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +3 -3
  374. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -1
  375. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +3 -2
  376. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -1
  377. package/dist/cli/observability/infra-observability-set.cli-command.impl.js +14 -14
  378. package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -1
  379. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +25 -17
  380. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -1
  381. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +1 -1
  382. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -1
  383. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +2 -1
  384. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -1
  385. package/dist/cli/observability/infra-observability-status.cli-command.impl.js +30 -23
  386. package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -1
  387. package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +8 -8
  388. package/dist/cli/observability/infra-observability.cli-group.descriptor.js +1 -1
  389. package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -1
  390. package/dist/cli/plugin.d.ts +3 -0
  391. package/dist/cli/plugin.d.ts.map +1 -0
  392. package/dist/cli/plugin.js +45 -0
  393. package/dist/cli/plugin.js.map +1 -0
  394. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts +38 -0
  395. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts.map +1 -0
  396. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js +43 -0
  397. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js.map +1 -0
  398. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts +117 -0
  399. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts.map +1 -0
  400. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js +678 -0
  401. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js.map +1 -0
  402. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +37 -23
  403. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -1
  404. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +7 -1
  405. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -1
  406. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +2 -1
  407. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -1
  408. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +100 -25
  409. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -1
  410. package/dist/cli/release/cli/latest-manifest.d.ts +148 -0
  411. package/dist/cli/release/cli/latest-manifest.d.ts.map +1 -0
  412. package/dist/cli/release/cli/latest-manifest.js +152 -0
  413. package/dist/cli/release/cli/latest-manifest.js.map +1 -0
  414. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts +41 -0
  415. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts.map +1 -0
  416. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js +49 -0
  417. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js.map +1 -0
  418. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts +16 -0
  419. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts.map +1 -0
  420. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js +52 -0
  421. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js.map +1 -0
  422. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +19 -17
  423. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -1
  424. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +1 -1
  425. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -1
  426. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +2 -1
  427. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -1
  428. package/dist/cli/rum/infra-rum-status.cli-command.impl.js +21 -15
  429. package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -1
  430. package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +8 -8
  431. package/dist/cli/rum/infra-rum.cli-group.descriptor.js +1 -1
  432. package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -1
  433. package/dist/cli/run/deploy-smoke.d.ts +57 -0
  434. package/dist/cli/run/deploy-smoke.d.ts.map +1 -0
  435. package/dist/cli/run/deploy-smoke.js +251 -0
  436. package/dist/cli/run/deploy-smoke.js.map +1 -0
  437. package/dist/cli/run/deployment-marker.d.ts +74 -0
  438. package/dist/cli/run/deployment-marker.d.ts.map +1 -0
  439. package/dist/cli/run/deployment-marker.js +237 -0
  440. package/dist/cli/run/deployment-marker.js.map +1 -0
  441. package/dist/cli/run/deployment-provider.d.ts +56 -0
  442. package/dist/cli/run/deployment-provider.d.ts.map +1 -0
  443. package/dist/cli/run/deployment-provider.js +295 -0
  444. package/dist/cli/run/deployment-provider.js.map +1 -0
  445. package/dist/cli/run/deployment-run-ledger.d.ts +72 -0
  446. package/dist/cli/run/deployment-run-ledger.d.ts.map +1 -0
  447. package/dist/cli/run/deployment-run-ledger.js +164 -0
  448. package/dist/cli/run/deployment-run-ledger.js.map +1 -0
  449. package/dist/cli/run/git-source-identity.d.ts +21 -0
  450. package/dist/cli/run/git-source-identity.d.ts.map +1 -0
  451. package/dist/cli/run/git-source-identity.js +73 -0
  452. package/dist/cli/run/git-source-identity.js.map +1 -0
  453. package/dist/cli/run/immutable-deployment-release.program.d.ts +403 -0
  454. package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
  455. package/dist/cli/run/immutable-deployment-release.program.js +589 -0
  456. package/dist/cli/run/immutable-deployment-release.program.js.map +1 -0
  457. package/dist/cli/run/immutable-deployment-workspace.d.ts +39 -0
  458. package/dist/cli/run/immutable-deployment-workspace.d.ts.map +1 -0
  459. package/dist/cli/run/immutable-deployment-workspace.js +525 -0
  460. package/dist/cli/run/immutable-deployment-workspace.js.map +1 -0
  461. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +80 -23
  462. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -1
  463. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +50 -8
  464. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -1
  465. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +46 -1
  466. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -1
  467. package/dist/cli/run/infra-deploy.run.cli-command.impl.js +464 -226
  468. package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
  469. package/dist/cli/shared/build-workspace-artifacts.d.ts +147 -0
  470. package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
  471. package/dist/cli/shared/build-workspace-artifacts.js +2013 -0
  472. package/dist/cli/shared/build-workspace-artifacts.js.map +1 -0
  473. package/dist/cli/shared/credential-source.d.ts +3 -0
  474. package/dist/cli/shared/credential-source.d.ts.map +1 -0
  475. package/dist/cli/shared/credential-source.js +19 -0
  476. package/dist/cli/shared/credential-source.js.map +1 -0
  477. package/dist/cli/shared/discover-deployments.d.ts +46 -5
  478. package/dist/cli/shared/discover-deployments.d.ts.map +1 -1
  479. package/dist/cli/shared/discover-deployments.js +167 -41
  480. package/dist/cli/shared/discover-deployments.js.map +1 -1
  481. package/dist/cli/shared/infer-apex-zone.d.ts +18 -0
  482. package/dist/cli/shared/infer-apex-zone.d.ts.map +1 -0
  483. package/dist/cli/shared/infer-apex-zone.js +75 -0
  484. package/dist/cli/shared/infer-apex-zone.js.map +1 -0
  485. package/dist/cli/shared/option-strings.d.ts +2 -0
  486. package/dist/cli/shared/option-strings.d.ts.map +1 -0
  487. package/dist/cli/shared/option-strings.js +13 -0
  488. package/dist/cli/shared/option-strings.js.map +1 -0
  489. package/dist/cli/shared/repository-collection.d.ts +42 -0
  490. package/dist/cli/shared/repository-collection.d.ts.map +1 -0
  491. package/dist/cli/shared/repository-collection.js +111 -0
  492. package/dist/cli/shared/repository-collection.js.map +1 -0
  493. package/dist/cli/shared/runtime-execution.d.ts +78 -0
  494. package/dist/cli/shared/runtime-execution.d.ts.map +1 -0
  495. package/dist/cli/shared/runtime-execution.js +182 -0
  496. package/dist/cli/shared/runtime-execution.js.map +1 -0
  497. package/dist/cli/shared/workspace-artifact-lock.d.ts +17 -0
  498. package/dist/cli/shared/workspace-artifact-lock.d.ts.map +1 -0
  499. package/dist/cli/shared/workspace-artifact-lock.js +37 -0
  500. package/dist/cli/shared/workspace-artifact-lock.js.map +1 -0
  501. package/dist/cli/workers/doks-worker-runtime.d.ts +238 -0
  502. package/dist/cli/workers/doks-worker-runtime.d.ts.map +1 -0
  503. package/dist/cli/workers/doks-worker-runtime.js +410 -0
  504. package/dist/cli/workers/doks-worker-runtime.js.map +1 -0
  505. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts +28 -0
  506. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts.map +1 -0
  507. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js +28 -0
  508. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js.map +1 -0
  509. package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts +6 -0
  510. package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts.map +1 -0
  511. package/dist/cli/workers/infra-workers-apply.cli-command.impl.js +75 -0
  512. package/dist/cli/workers/infra-workers-apply.cli-command.impl.js.map +1 -0
  513. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts +31 -0
  514. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts.map +1 -0
  515. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js +32 -0
  516. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js.map +1 -0
  517. package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts +6 -0
  518. package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts.map +1 -0
  519. package/dist/cli/workers/infra-workers-build.cli-command.impl.js +67 -0
  520. package/dist/cli/workers/infra-workers-build.cli-command.impl.js.map +1 -0
  521. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts +48 -0
  522. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts.map +1 -0
  523. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js +60 -0
  524. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js.map +1 -0
  525. package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts +6 -0
  526. package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts.map +1 -0
  527. package/dist/cli/workers/infra-workers-logs.cli-command.impl.js +74 -0
  528. package/dist/cli/workers/infra-workers-logs.cli-command.impl.js.map +1 -0
  529. package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts +12 -0
  530. package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts.map +1 -0
  531. package/dist/cli/workers/infra-workers.cli-group.descriptor.js +12 -0
  532. package/dist/cli/workers/infra-workers.cli-group.descriptor.js.map +1 -0
  533. package/dist/config-loader.d.ts +60 -13
  534. package/dist/config-loader.d.ts.map +1 -1
  535. package/dist/config-loader.js +371 -104
  536. package/dist/config-loader.js.map +1 -1
  537. package/dist/declared-provider.d.ts +27 -0
  538. package/dist/declared-provider.d.ts.map +1 -0
  539. package/dist/declared-provider.js +46 -0
  540. package/dist/declared-provider.js.map +1 -0
  541. package/dist/deployment-collisions.d.ts +55 -0
  542. package/dist/deployment-collisions.d.ts.map +1 -0
  543. package/dist/deployment-collisions.js +70 -0
  544. package/dist/deployment-collisions.js.map +1 -0
  545. package/dist/deployment-environment.d.ts +57 -0
  546. package/dist/deployment-environment.d.ts.map +1 -0
  547. package/dist/deployment-environment.js +198 -0
  548. package/dist/deployment-environment.js.map +1 -0
  549. package/dist/deployment-settings.d.ts +27 -0
  550. package/dist/deployment-settings.d.ts.map +1 -0
  551. package/dist/deployment-settings.js +52 -0
  552. package/dist/deployment-settings.js.map +1 -0
  553. package/dist/deployment.config.descriptor.d.ts +59 -0
  554. package/dist/deployment.config.descriptor.d.ts.map +1 -0
  555. package/dist/deployment.config.descriptor.js +54 -0
  556. package/dist/deployment.config.descriptor.js.map +1 -0
  557. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts +29 -0
  558. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts.map +1 -0
  559. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js +35 -0
  560. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js.map +1 -0
  561. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts +12 -0
  562. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts.map +1 -0
  563. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js +12 -0
  564. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js.map +1 -0
  565. package/dist/index.d.ts +11 -3
  566. package/dist/index.d.ts.map +1 -1
  567. package/dist/index.js +11 -3
  568. package/dist/index.js.map +1 -1
  569. package/dist/infra-deploy.plugin.d.ts +2 -2
  570. package/dist/infra-deploy.plugin.d.ts.map +1 -1
  571. package/dist/infra-deploy.plugin.js +63 -20
  572. package/dist/infra-deploy.plugin.js.map +1 -1
  573. package/dist/logger.d.ts +10 -0
  574. package/dist/logger.d.ts.map +1 -0
  575. package/dist/logger.js +11 -0
  576. package/dist/logger.js.map +1 -0
  577. package/dist/migrations/migrate-workspace.d.ts +21 -0
  578. package/dist/migrations/migrate-workspace.d.ts.map +1 -0
  579. package/dist/migrations/migrate-workspace.js +83 -0
  580. package/dist/migrations/migrate-workspace.js.map +1 -0
  581. package/dist/migrations/run-migrate.d.ts +15 -0
  582. package/dist/migrations/run-migrate.d.ts.map +1 -0
  583. package/dist/migrations/run-migrate.js +314 -0
  584. package/dist/migrations/run-migrate.js.map +1 -0
  585. package/dist/regenerate.d.ts +52 -30
  586. package/dist/regenerate.d.ts.map +1 -1
  587. package/dist/regenerate.js +176 -148
  588. package/dist/regenerate.js.map +1 -1
  589. package/dist/runtime-execution.d.ts +5 -0
  590. package/dist/runtime-execution.d.ts.map +1 -0
  591. package/dist/runtime-execution.js +12 -0
  592. package/dist/runtime-execution.js.map +1 -0
  593. package/dist/schemas/migrate.d.ts +110 -0
  594. package/dist/schemas/migrate.d.ts.map +1 -0
  595. package/dist/schemas/migrate.js +55 -0
  596. package/dist/schemas/migrate.js.map +1 -0
  597. package/dist/schemas/proof-registry.d.ts +25 -0
  598. package/dist/schemas/proof-registry.d.ts.map +1 -0
  599. package/dist/schemas/proof-registry.js +24 -0
  600. package/dist/schemas/proof-registry.js.map +1 -0
  601. package/dist/schemas/release-grants.d.ts +7 -0
  602. package/dist/schemas/release-grants.d.ts.map +1 -0
  603. package/dist/schemas/release-grants.js +6 -0
  604. package/dist/schemas/release-grants.js.map +1 -0
  605. package/dist/schemas/release-jobs.d.ts +444 -0
  606. package/dist/schemas/release-jobs.d.ts.map +1 -0
  607. package/dist/schemas/release-jobs.js +204 -0
  608. package/dist/schemas/release-jobs.js.map +1 -0
  609. package/dist/schemas/service-release.d.ts +15 -0
  610. package/dist/schemas/service-release.d.ts.map +1 -0
  611. package/dist/schemas/service-release.js +13 -0
  612. package/dist/schemas/service-release.js.map +1 -0
  613. package/dist/schemas/worker-logs.d.ts +42 -0
  614. package/dist/schemas/worker-logs.d.ts.map +1 -0
  615. package/dist/schemas/worker-logs.js +29 -0
  616. package/dist/schemas/worker-logs.js.map +1 -0
  617. package/dist/storage/deployment-runs.schema.d.ts +199 -0
  618. package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
  619. package/dist/storage/deployment-runs.schema.js +61 -0
  620. package/dist/storage/deployment-runs.schema.js.map +1 -0
  621. package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
  622. package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
  623. package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
  624. package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
  625. package/package.json +110 -42
  626. package/SPEC.md +0 -181
  627. package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
  628. package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
  629. package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
  630. package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
  631. package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
  632. package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
  633. package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
  634. package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
  635. package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
  636. package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
  637. package/src/cli/infra.cli-group.descriptor.ts +0 -11
  638. package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
  639. package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
  640. package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
  641. package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
  642. package/src/cli/logs/stream-worker-tail.ts +0 -202
  643. package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
  644. package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
  645. package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
  646. package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
  647. package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
  648. package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
  649. package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
  650. package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
  651. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
  652. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
  653. package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
  654. package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
  655. package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
  656. package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
  657. package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
  658. package/src/cli/shared/discover-deployments.ts +0 -127
  659. package/src/config-loader.ts +0 -179
  660. package/src/index.ts +0 -11
  661. package/src/infra-deploy.plugin.ts +0 -83
  662. package/src/regenerate.ts +0 -230
@@ -0,0 +1,56 @@
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 (workspace 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
+ import { assertDeployWorkspacePreflight, buildWorkspaceArtifactsForApp } from '../shared/build-workspace-artifacts.ts';
16
+ import type { WorkspaceArtifactLock } from '../shared/workspace-artifact-lock.ts';
17
+ export interface ResolvedDeploymentProvider {
18
+ readonly descriptor: DeploymentProviderDescriptor;
19
+ readonly implementation: DeploymentProviderImplementation;
20
+ }
21
+ /** The provider an app declares, resolved by id through the handed runtime; refuses when none is composed. */
22
+ export declare function resolveDeploymentProvider(runtime: RuntimeRef, id: string): Promise<ResolvedDeploymentProvider>;
23
+ /** A loaded deployment as provider data: the export without its callables. */
24
+ export declare function deploymentModuleEvaluation(loaded: LoadedDeployment): DeploymentModuleEvaluation;
25
+ /**
26
+ * The release's driver-owned steps. `build` preflights the workspace, runs the
27
+ * deploy-owned build unless skipped and preflights strictly again: a strict
28
+ * gate that throws leaves the provider's release with nothing to upload.
29
+ */
30
+ export declare function createDeploymentReleaseHost(input: {
31
+ runtime: VibesRuntime;
32
+ execution: RuntimeExecution;
33
+ deployment: AppDeployment;
34
+ appDir: string;
35
+ workspaceRoot: string;
36
+ environment: string;
37
+ credentialSource: 'secrets-store' | 'ambient';
38
+ skipBuild: boolean;
39
+ dryRun: boolean;
40
+ artifactLock?: WorkspaceArtifactLock;
41
+ /** The retained Workspace owner verifies source identity; this host owns the output receipt. */
42
+ immutableBuild?: {
43
+ compositionDigest: string;
44
+ sourceCommit: string;
45
+ lockFiles: readonly string[];
46
+ assertSource(): Promise<void>;
47
+ };
48
+ onLine: DeploymentOutputLine;
49
+ }, deps?: {
50
+ assertPreflight?: typeof assertDeployWorkspacePreflight;
51
+ buildArtifacts?: typeof buildWorkspaceArtifactsForApp;
52
+ migrate?: typeof applyPendingMigrations;
53
+ }): DeploymentReleaseHost;
54
+ /** The command's provider options as data, for the provider's own schema. */
55
+ export declare function providerOptions(opts: CommandOptions): JsonObject;
56
+ //# 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,cAA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E,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,gGAAgG;IAChG,cAAc,CAAC,EAAE;QAChB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;QAC7B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;KAC9B,CAAC;IACF,MAAM,EAAE,oBAAoB,CAAC;CAC7B,EAAE,IAAI,GAAE;IACR,eAAe,CAAC,EAAE,OAAO,8BAA8B,CAAC;IACxD,cAAc,CAAC,EAAE,OAAO,6BAA6B,CAAC;IACtD,OAAO,CAAC,EAAE,OAAO,sBAAsB,CAAC;CACnC,GAAG,qBAAqB,CA0M7B;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CAIhE"}
@@ -0,0 +1,295 @@
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 (workspace 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 { assertDeployWorkspacePreflight, buildWorkspaceArtifactsForApp, planWorkspaceArtifactBuilds, 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` preflights the workspace, runs the
68
+ * deploy-owned build unless skipped and preflights strictly again: a strict
69
+ * gate that throws leaves the provider's release with nothing to upload.
70
+ */
71
+ export function createDeploymentReleaseHost(input, deps = {}) {
72
+ const assertPreflight = deps.assertPreflight ?? assertDeployWorkspacePreflight;
73
+ const buildArtifacts = deps.buildArtifacts ?? buildWorkspaceArtifactsForApp;
74
+ const migrate = deps.migrate ?? applyPendingMigrations;
75
+ const { runtime, execution, appDir, workspaceRoot, onLine } = input;
76
+ let receipt;
77
+ let receiptInput;
78
+ let built;
79
+ let immutableBuildStarted = false;
80
+ const assertSource = async () => { await input.immutableBuild?.assertSource(); };
81
+ const declaredOutputDirectory = async () => {
82
+ const pathApi = await getRuntimePath(runtime);
83
+ const declaredApp = input.deployment.build.appDir.replace(/\\/g, '/').replace(/\/$/, '');
84
+ const declaredOutput = input.deployment.build.outputDir.replace(/\\/g, '/');
85
+ const output = declaredOutput.startsWith(`${declaredApp}/`) ? declaredOutput.slice(declaredApp.length + 1) : declaredOutput;
86
+ return pathApi.resolve(appDir, output);
87
+ };
88
+ const assertArtifacts = async () => {
89
+ if (!input.immutableBuild)
90
+ return;
91
+ await assertSource();
92
+ if (!receipt || !receiptInput) {
93
+ throw new CapabilityError('The release has no immutable build artifact receipt.', 'CONFLICT', { reason: 'workspace-artifact-receipt-missing' });
94
+ }
95
+ await assertWorkspaceBuildArtifactReceipt(receiptInput, receipt);
96
+ };
97
+ const preflight = async (artifactPolicy) => {
98
+ const evidence = await assertPreflight({ workspaceRoot, runtime, appDir, artifactPolicy });
99
+ for (const warning of evidence.warnings)
100
+ onLine('stdout', `[workspace-preflight] Warning: ${warning}`);
101
+ return evidence;
102
+ };
103
+ return {
104
+ assertSource,
105
+ assertArtifacts,
106
+ async build(options) {
107
+ if (options?.prepareArtifacts && immutableBuildStarted) {
108
+ throw new CapabilityError('The artifact producer cannot run again after preparation or sealing.', 'CONFLICT', { reason: 'workspace-artifact-already-prepared' });
109
+ }
110
+ if (options?.prepareArtifacts && !input.immutableBuild && !input.dryRun) {
111
+ throw new CapabilityError('Artifact preparation requires a retained immutable workspace.', 'UNAVAILABLE', { reason: 'workspace-artifact-preparation-unavailable' });
112
+ }
113
+ // Absent declared output refuses before preflight or any build child.
114
+ // A provider that prepares artifacts supplies those bytes in the seal below.
115
+ const immutableBuild = input.immutableBuild;
116
+ if (immutableBuild && input.skipBuild && !input.dryRun && !options?.prepareArtifacts && !built) {
117
+ await assertSource();
118
+ const probed = await settle(async () => sealWorkspaceBuildArtifacts({
119
+ runtime, workspaceRoot,
120
+ directories: [await declaredOutputDirectory()],
121
+ lockFiles: immutableBuild.lockFiles,
122
+ compositionDigest: immutableBuild.compositionDigest,
123
+ sourceCommit: immutableBuild.sourceCommit
124
+ }));
125
+ if (!probed.ok) {
126
+ if (probed.cause instanceof CapabilityError) {
127
+ const refusal = skipBuildReceiptRefusal(probed.cause);
128
+ if (refusal)
129
+ throw refusal;
130
+ }
131
+ throw probed.cause;
132
+ }
133
+ }
134
+ if (input.immutableBuild && built) {
135
+ await assertArtifacts();
136
+ return built;
137
+ }
138
+ if (input.immutableBuild) {
139
+ if (immutableBuildStarted)
140
+ throw new CapabilityError('An immutable artifact build cannot start again before it has sealed successfully.', 'CONFLICT', { reason: 'workspace-artifact-build-already-started' });
141
+ immutableBuildStarted = true;
142
+ }
143
+ await assertSource();
144
+ const willBuild = !input.skipBuild && Boolean(input.deployment.build.buildCommand);
145
+ const evidence = await preflight(willBuild ? 'planned-build' : 'strict');
146
+ if (willBuild) {
147
+ await buildArtifacts({
148
+ workspaceRoot, appDir, execution, runtime, onLine,
149
+ dryRun: input.dryRun, artifactLock: input.artifactLock
150
+ });
151
+ if (!input.dryRun)
152
+ await preflight('strict');
153
+ }
154
+ if (input.immutableBuild && !input.dryRun) {
155
+ const paths = await getRuntimePath(runtime);
156
+ const command = input.deployment.build.buildCommand;
157
+ if (command && !input.skipBuild) {
158
+ const [bin, ...args] = command.split(' ').filter(Boolean);
159
+ if (!bin)
160
+ throw new CapabilityError('The app build command is empty.', 'INVALID_INPUT', { reason: 'app-build-command-empty' });
161
+ const result = await runRuntimeCommand({
162
+ runtime, execution, command: bin, args, cwd: appDir,
163
+ env: { NODE_ENV: 'production', VIBES_BUILD_VERSION: input.immutableBuild.sourceCommit, ...(await optionalRegistryTokenEnv(runtime)) }, onLine
164
+ });
165
+ if (result.code !== 0)
166
+ throw new CapabilityError('The app build failed before provider effects.', 'UNAVAILABLE', { reason: 'app-build-failed', details: { exitCode: result.code } });
167
+ }
168
+ let preparation = DeploymentArtifactPreparationSchema.parse({});
169
+ if (options?.prepareArtifacts) {
170
+ await assertSource();
171
+ const lockInput = { runtime, workspaceRoot, lockFiles: input.immutableBuild.lockFiles };
172
+ const locks = await workspaceBuildLockDigest(lockInput);
173
+ preparation = DeploymentArtifactPreparationSchema.parse(await options.prepareArtifacts());
174
+ await assertSource();
175
+ if (locks !== await workspaceBuildLockDigest(lockInput)) {
176
+ throw new CapabilityError('Installed locks changed during artifact preparation.', 'CONFLICT', { reason: 'workspace-artifact-lock-mismatch' });
177
+ }
178
+ }
179
+ const dependencies = await planWorkspaceArtifactBuilds({ runtime, workspaceRoot, appDir });
180
+ const nextReceiptInput = {
181
+ runtime, workspaceRoot,
182
+ directories: [await declaredOutputDirectory(), ...dependencies.map(pkg => paths.join(pkg.dir, pkg.packageJson.vibes?.artifactsDir ?? 'dist')), ...preparation.paths],
183
+ lockFiles: input.immutableBuild.lockFiles,
184
+ compositionDigest: input.immutableBuild.compositionDigest,
185
+ sourceCommit: input.immutableBuild.sourceCommit,
186
+ references: preparation.references
187
+ };
188
+ receiptInput = nextReceiptInput;
189
+ const sealed = await settle(() => sealWorkspaceBuildArtifacts(nextReceiptInput));
190
+ if (!sealed.ok) {
191
+ if (input.skipBuild && sealed.cause instanceof CapabilityError) {
192
+ const refusal = skipBuildReceiptRefusal(sealed.cause);
193
+ if (refusal)
194
+ throw refusal;
195
+ }
196
+ throw sealed.cause;
197
+ }
198
+ receipt = sealed.value;
199
+ await assertArtifacts();
200
+ }
201
+ built = { warnings: evidence.warnings };
202
+ if (receipt)
203
+ built.artifact = {
204
+ compositionDigest: receipt.compositionDigest,
205
+ sourceCommit: receipt.sourceCommit,
206
+ artifactDigest: receipt.artifactDigest,
207
+ references: [...(receipt.references ?? [])]
208
+ };
209
+ return built;
210
+ },
211
+ async runPreDeployCommands(variables) {
212
+ await assertArtifacts();
213
+ const commands = input.deployment.preDeployCommands;
214
+ if (commands.length === 0)
215
+ return;
216
+ onLine('stdout', `Running ${commands.length} pre-deploy command(s)...`);
217
+ for (const cmd of commands) {
218
+ if (cmd.description)
219
+ onLine('stdout', ` ${cmd.description}`);
220
+ if (input.dryRun) {
221
+ onLine('stdout', ` [dry-run] ${cmd.command}`);
222
+ continue;
223
+ }
224
+ const [bin, ...args] = cmd.command.split(' ').filter(Boolean);
225
+ if (!bin)
226
+ continue;
227
+ const result = await runRuntimeCommand({
228
+ runtime,
229
+ execution,
230
+ command: bin,
231
+ args,
232
+ cwd: appDir,
233
+ env: { ...(await registryTokenEnv(runtime)), ...variables },
234
+ onLine
235
+ });
236
+ if (result.code !== 0) {
237
+ throw new Error(`Pre-deploy command failed: ${cmd.command} (exit=${result.code ?? 'unknown'})`);
238
+ }
239
+ }
240
+ onLine('stdout', 'Pre-deploy commands complete.');
241
+ },
242
+ async migrate({ configFile, variables }) {
243
+ await assertArtifacts();
244
+ onLine('stdout', 'Applying pending D1 migrations (vibes_migrations journal)...');
245
+ const migrated = await migrate({
246
+ runtime,
247
+ appDir,
248
+ remote: true,
249
+ yes: true,
250
+ dryRun: false,
251
+ environment: input.environment,
252
+ configFileName: configFile,
253
+ workspaceRoot,
254
+ credentialSource: input.credentialSource,
255
+ providerVariables: variables,
256
+ ui: {
257
+ info: (m) => onLine('stdout', m),
258
+ warn: (m) => onLine('stderr', m),
259
+ log: (m) => onLine('stdout', m),
260
+ error: (m) => onLine('stderr', m)
261
+ }
262
+ });
263
+ // Declared migrations no registered engine applied are a refusal, never a silent skip.
264
+ if (migrated.length === 0) {
265
+ throw new CapabilityError('The declared migrations found no registered database engine to apply them.', 'UNAVAILABLE', {
266
+ reason: 'migration-engine-unavailable',
267
+ retryable: false,
268
+ recoveryHint: 'Compose the plugin that registers the infra/database-migrator engine for these databases.'
269
+ });
270
+ }
271
+ },
272
+ async evaluate(variables) {
273
+ // The first render produces the config the build consumes. A receipt
274
+ // exists only after that build has sealed, and every later render revalidates it.
275
+ if (receipt)
276
+ await assertArtifacts();
277
+ await input.artifactLock?.held.assertHeld();
278
+ return deploymentModuleEvaluation(await loadDeploymentConfig(appDir, {
279
+ runtime,
280
+ freshProcess: true,
281
+ execution,
282
+ projectionEnvironment: variables
283
+ }));
284
+ }
285
+ };
286
+ }
287
+ /** The command's provider options as data, for the provider's own schema. */
288
+ export function providerOptions(opts) {
289
+ const options = {};
290
+ for (const [key, value] of Object.entries(opts))
291
+ if (value !== undefined)
292
+ options[key] = value;
293
+ return options;
294
+ }
295
+ //# 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,8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E,CAAC;YACrC,MAAM,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC;YAC5C,OAAO,0BAA0B,CAAC,MAAM,oBAAoB,CAAC,MAAM,EAAE;gBACpE,OAAO;gBACP,YAAY,EAAE,IAAI;gBAClB,SAAS;gBACT,qBAAqB,EAAE,SAAS;aAChC,CAAC,CAAC,CAAC;QACL,CAAC;KACD,CAAC;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,a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,YAAY,EAAE,QAAQ,CAAC,EACrC,KAAK,EAAE,uBAAuB,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CAkDpC;AAED,wBAAsB,qBAAqB,CAC1C,KAAK,EAAE,0BAA0B,GAC/B,OAAO,CAAC,yBAAyB,CAAC,CA0CpC;AAED,wBAAsB,kBAAkB,CACvC,MAAM,EAAE,wBAAwB,GAC9B,OAAO,CAAC,cAAc,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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