@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,135 +1,402 @@
1
- import { resolve, isAbsolute, join, dirname } from 'node:path';
2
- import { existsSync, statSync } from 'node:fs';
3
- import { spawn } from 'node:child_process';
4
- const CONFIG_FILENAMES = ['deployment.config.ts', 'deployment.config.js', 'deployment.config.mjs'];
5
- export function resolveAppDir(input) {
6
- const absolute = isAbsolute(input) ? input : resolve(process.cwd(), input);
7
- if (!existsSync(absolute)) {
8
- throw new Error(`Path does not exist: ${absolute}`);
9
- }
10
- const stat = statSync(absolute);
11
- if (!stat.isDirectory()) {
12
- throw new Error(`Expected directory, got file: ${absolute}`);
1
+ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
2
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
3
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
4
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
5
+ });
13
6
  }
14
- return absolute;
7
+ return path;
8
+ };
9
+ import { getRuntimePath } from '@vibesdotdev/paths';
10
+ import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem/client/resolve-adapter';
11
+ import { projectWebApp } from '@vibesdotdev/infra-core';
12
+ import { validateAppDeployment } from '@vibesdotdev/infra-core/deployment';
13
+ import { DeploymentModuleExportSchema, DeploymentModuleRenderSchema, DeploymentProviderDescriptorSchema } from '@vibesdotdev/infra-core/kinds';
14
+ import { CapabilityError, composeChildEnv, settle, settleNow } from '@vibesdotdev/kernel';
15
+ import * as z from 'zod/v4';
16
+ import { resolveRuntimeExecution } from "./runtime-execution.js";
17
+ import { findConfigFile, readDeploymentSettings, UNIT_CONFIG_FILE } from "./deployment-settings.js";
18
+ import { composeDeclaredDeploymentProvider } from "./declared-provider.js";
19
+ function failureMessage(failure) {
20
+ return failure instanceof Error ? failure.message : failure.description;
21
+ }
22
+ export async function resolveConfigLoadHost(runtime) {
23
+ return {
24
+ // The app directory is named by the operator, not by the caller's
25
+ // workspace binding, so its probes go through the host-owned view.
26
+ files: await resolveFileSystemAdapter(runtime, { binding: false }),
27
+ paths: await getRuntimePath(runtime)
28
+ };
15
29
  }
16
- export function findConfigFile(appDir) {
17
- for (const name of CONFIG_FILENAMES) {
18
- const candidate = join(appDir, name);
19
- if (existsSync(candidate))
20
- return candidate;
30
+ export class NonDeployableDeploymentConfigError extends CapabilityError {
31
+ appId;
32
+ /** The marker's own human-readable reason, overriding the taxonomy code. */
33
+ reason;
34
+ constructor(input) {
35
+ super(`deployment.config${input.configPath ? ` in ${input.configPath}` : ''} is intentionally not deployable: ${input.reason}`, 'INVALID_INPUT', {
36
+ reason: 'non-deployable-deployment-config',
37
+ details: { appId: input.appId ?? null, configPath: input.configPath ?? null }
38
+ });
39
+ this.appId = input.appId;
40
+ this.reason = input.reason;
21
41
  }
22
- throw new Error(`No deployment config found in ${appDir}. Expected one of: ${CONFIG_FILENAMES.join(', ')}`);
42
+ }
43
+ /**
44
+ * The app directory a deployment config is loaded from. Callers resolve an
45
+ * operator's relative argument against the invocation cwd first
46
+ * (`requireRuntimeCwd(runtime)`); a relative path here is a caller
47
+ * error, never resolved against the process cwd or an environment variable.
48
+ */
49
+ export async function resolveAppDir(host, input) {
50
+ if (!host.paths.isAbsolute(input)) {
51
+ throw new CapabilityError(`App directory must be absolute: ${input}`, 'INVALID_INPUT', {
52
+ reason: 'path-relative',
53
+ details: { path: input }
54
+ });
55
+ }
56
+ const absolute = host.paths.resolve(input);
57
+ const stat = await host.files.stat(absolute);
58
+ if (stat.kind !== 'directory') {
59
+ throw new CapabilityError(`Expected directory, got file: ${absolute}`, 'INVALID_INPUT', {
60
+ reason: 'not-a-directory',
61
+ details: { path: absolute }
62
+ });
63
+ }
64
+ return absolute;
65
+ }
66
+ export { findConfigFile };
67
+ /** The shape of an export the evaluator accepts: a record of arbitrary values. */
68
+ const ConfigExportRecordSchema = z.record(z.string(), z.unknown());
69
+ /** A non-deployable marker: `deployable: false` plus a reason, optional appId. */
70
+ const NonDeployableMarkerSchema = z.object({
71
+ deployable: z.boolean(),
72
+ reason: z.string(),
73
+ appId: z.string().optional()
74
+ }).loose();
75
+ /**
76
+ * The shape the load contract returns. SAFETY: appId presence and the provider
77
+ * string are checked by the caller; the full AppDeployment shape is validated
78
+ * by the owning infra-core schema when the provider projection is built
79
+ * (createAppDeployment), exactly as before structured admission here.
80
+ */
81
+ function asAppDeployment(value) {
82
+ // SAFETY: the load contract checks appId presence and the provider string
83
+ // before this cast; the full AppDeployment shape is validated by the owning
84
+ // infra-core schema when the provider projection is built
85
+ // (createAppDeployment), exactly as before structured admission here.
86
+ return value;
23
87
  }
24
88
  function extractDeployment(raw) {
25
- if (!raw || typeof raw !== 'object') {
89
+ const record = ConfigExportRecordSchema.safeParse(raw);
90
+ if (!record.success) {
26
91
  throw new Error('deployment.config default export must be an object');
27
92
  }
28
- const record = raw;
29
- const deployment = (record.deployment ?? record);
30
- if (!deployment || typeof deployment !== 'object' || !('appId' in deployment)) {
93
+ const nonDeployable = extractNonDeployableMarker(record.data);
94
+ if (nonDeployable) {
95
+ throw new NonDeployableDeploymentConfigError(nonDeployable);
96
+ }
97
+ const rawCandidate = record.data.deployment ?? record.data;
98
+ const candidate = ConfigExportRecordSchema.safeParse(rawCandidate);
99
+ if (!candidate.success) {
31
100
  throw new Error('deployment.config must export an AppDeployment (or { deployment })');
32
101
  }
33
- const provider = deployment.provider;
34
- if (!provider || typeof provider !== 'string') {
102
+ if (!('appId' in candidate.data)) {
103
+ throw new Error('deployment.config must export an AppDeployment (or { deployment })');
104
+ }
105
+ const provider = z.string().safeParse(candidate.data.provider);
106
+ if (!provider.success || provider.data.length === 0) {
35
107
  throw new Error('deployment.provider is required');
36
108
  }
37
- return { deployment: deployment, provider };
109
+ return { deployment: asAppDeployment(candidate.data), provider: provider.data };
110
+ }
111
+ function extractNonDeployableMarker(raw) {
112
+ const marker = NonDeployableMarkerSchema.safeParse(raw.deployList ?? raw.deploymentList);
113
+ if (!marker.success || marker.data.deployable !== false)
114
+ return null;
115
+ if (marker.data.reason.length === 0) {
116
+ throw new Error('non-deployable deployment.config marker requires a non-empty reason');
117
+ }
118
+ const appId = marker.data.appId;
119
+ return {
120
+ appId: appId !== undefined && appId.length > 0 ? appId : undefined,
121
+ reason: marker.data.reason
122
+ };
123
+ }
124
+ /** A module whose provider renders nothing (or is not composed here). */
125
+ const NO_RENDER = { managed: false, renders: false, rendered: null, localRendered: null, unitName: null };
126
+ /** Each registered provider's renderer, by provider id. */
127
+ function deploymentRenderers(runtime) {
128
+ const renderers = new Map();
129
+ if (!runtime.hasKind('infra/deployment-provider'))
130
+ return renderers;
131
+ for (const descriptor of runtime.query('infra/deployment-provider').descriptors()) {
132
+ const { id, renderer } = DeploymentProviderDescriptorSchema.parse(descriptor);
133
+ if (renderer)
134
+ renderers.set(id, { module: resolvedRendererModule(renderer.module), export: renderer.export });
135
+ }
136
+ return renderers;
38
137
  }
39
138
  /**
40
- * Walk upward from `from` looking for the workspace root (the directory
41
- * with a `bun.lock` or `package.json` containing `workspaces`).
139
+ * The renderer module as this process resolves it. A fresh child evaluates
140
+ * from the app's directory, which need not see the provider's package, so it
141
+ * imports the URL resolved here; an unresolvable specifier stays bare and
142
+ * refuses at import with its own module-resolution error.
42
143
  */
43
- function findWorkspaceRoot(from) {
44
- let dir = from;
45
- while (dir !== dirname(dir)) {
46
- if (existsSync(join(dir, 'bun.lock')))
47
- return dir;
48
- const pkgPath = join(dir, 'package.json');
49
- if (existsSync(pkgPath)) {
50
- try {
51
- const pkg = JSON.parse(require('node:fs').readFileSync(pkgPath, 'utf8'));
52
- if (pkg.workspaces)
53
- return dir;
54
- }
55
- catch {
56
- // not a parseable package.json; keep walking
57
- }
58
- }
59
- dir = dirname(dir);
144
+ function resolvedRendererModule(specifier) {
145
+ const resolved = settleNow(() => import.meta.resolve(specifier));
146
+ return resolved.ok ? resolved.value : specifier;
147
+ }
148
+ /** The provider an export declares, read leniently: admission refuses a malformed one later. */
149
+ const DeclaredProviderSchema = z.object({ provider: z.string().min(1) }).loose();
150
+ function declaredProvider(raw) {
151
+ const parsed = DeclaredProviderSchema.safeParse(raw.deployment ?? raw);
152
+ return parsed.success ? parsed.data.provider : null;
153
+ }
154
+ /** A renderer module's named export: a function, admitted before it is called. */
155
+ const RendererModuleSchema = z.record(z.string(), z.unknown());
156
+ const RendererFunctionSchema = z.custom((value) => value instanceof Function);
157
+ async function renderInProcess(renderers, raw, projectionEnvironment) {
158
+ const provider = declaredProvider(raw);
159
+ const renderer = provider ? renderers.get(provider) : undefined;
160
+ if (!renderer)
161
+ return NO_RENDER;
162
+ const exported = DeploymentModuleExportSchema.safeParse(raw);
163
+ if (!exported.success) {
164
+ throw new CapabilityError('The deployment module exports values its provider renderer cannot read.', 'INVALID_INPUT', {
165
+ reason: 'deployment-module-export-invalid',
166
+ retryable: false,
167
+ details: { provider, fields: [...new Set(exported.error.issues.map((issue) => String(issue.path[0] ?? '(export)')))] }
168
+ });
60
169
  }
61
- return from;
170
+ const mod = RendererModuleSchema.parse(await import(__rewriteRelativeImportExtension(renderer.module)));
171
+ const render = RendererFunctionSchema.parse(mod[renderer.export]);
172
+ return DeploymentModuleRenderSchema.parse(render(exported.data, projectionEnvironment));
62
173
  }
63
174
  /**
64
- * Load a deployment.config.ts via a `bun` subprocess from the workspace
65
- * root. Direct `await import(configPath)` doesn't work when the compiled
66
- * `vibes` binary runs against a workspace symlink — its bundled module
67
- * resolver has no idea where `@vibesdotdev/infra-core` lives. Subprocess
68
- * inherits the workspace's bun (path + node_modules), so workspace
69
- * package imports resolve as if you ran `bun apps/<app>/deployment.config.ts`
70
- * directly.
175
+ * Load a deployment.config.ts and produce its raw export + the provider
176
+ * artifact its provider's renderer renders.
177
+ *
178
+ * Preferred path: evaluate in-process, on the same entrypoint that invoked
179
+ * deploy, so PATH/env/module-resolution match. This works whenever the host
180
+ * runtime can resolve the config's workspace imports — i.e. running from
181
+ * source, under `bun` in CI, or at build time.
71
182
  *
72
- * The subprocess also tries to import `@vibesdotdev/infra-cloudflare/web-app`
73
- * and call `renderWranglerJsoncFromDefaultExport(raw)` so the canonical
74
- * wrangler.jsonc string is returned alongside the raw config. This lets
75
- * the regen orchestrator stay agnostic of provider-specific rendering.
76
- * If the import fails (SDK consumer without infra-cloudflare in their
77
- * tree), the render block is reported as `{ managed: false, rendered: null }`.
183
+ * Fallback path: the published CLI ships as a `bun build --compile` standalone
184
+ * binary, which has no on-disk `node_modules` and cannot resolve the bare
185
+ * workspace specifiers a `deployment.config.ts` imports (`infra-core/deployment`,
186
+ * `infra-cloudflare/web-app`). In-process evaluation throws a module-resolution
187
+ * error there. When — and only when — that happens, delegate evaluation to a
188
+ * workspace-aware `bun` subprocess anchored at the config directory, which has
189
+ * real `node_modules` resolution. The deployment object and provider render are
190
+ * plain serializable data, so they round-trip through JSON cleanly.
78
191
  */
79
- async function loadConfigViaSubprocess(configPath, workspaceRoot) {
80
- return new Promise((resolvePromise, reject) => {
81
- const script = `
82
- const mod = await import(${JSON.stringify(configPath)});
83
- const raw = mod.default ?? mod;
84
- let render = { managed: false, rendered: null, workerName: null };
85
- try {
86
- const cf = await import('@vibesdotdev/infra-cloudflare/web-app');
87
- if (typeof cf.renderWranglerJsoncFromDefaultExport === 'function') {
88
- render = cf.renderWranglerJsoncFromDefaultExport(raw);
89
- }
90
- } catch (_) {
91
- // infra-cloudflare not resolvable; leave render as the default null block.
92
- }
93
- process.stdout.write(JSON.stringify({ raw, render }));
94
- `;
95
- const child = spawn('bun', ['--bun', '-e', script], {
96
- cwd: workspaceRoot,
97
- stdio: ['ignore', 'pipe', 'pipe']
98
- });
99
- let stdout = '';
100
- let stderr = '';
101
- child.stdout?.on('data', (chunk) => (stdout += String(chunk)));
102
- child.stderr?.on('data', (chunk) => (stderr += String(chunk)));
103
- child.on('error', reject);
104
- child.on('close', (code) => {
105
- if (code !== 0) {
106
- reject(new Error(`bun subprocess exited with code ${code}\nstderr: ${stderr.trim()}\nstdout: ${stdout.trim()}`));
107
- return;
108
- }
109
- try {
110
- resolvePromise(JSON.parse(stdout));
111
- }
112
- catch (err) {
113
- reject(new Error(`Failed to parse subprocess JSON output: ${err instanceof Error ? err.message : String(err)}\nstdout: ${stdout.slice(0, 500)}`));
114
- }
115
- });
192
+ async function loadConfigInCurrentRuntime(runtime, configPath, projectionEnvironment) {
193
+ const primary = await settle(() => loadConfigInProcess(deploymentRenderers(runtime), configPath, projectionEnvironment));
194
+ if (primary.ok)
195
+ return primary.value;
196
+ if (!isModuleResolutionError(primary.cause))
197
+ throw primary.cause;
198
+ // The fallback evaluates in a child of the caller's runtime.
199
+ return loadConfigViaWorkspaceBun(runtime, configPath, primary.cause, await resolveRuntimeExecution(runtime), projectionEnvironment);
200
+ }
201
+ async function loadConfigInProcess(renderers, configPath, projectionEnvironment) {
202
+ // The query re-imports the file so repeated loads in one process see config
203
+ // edits; a query on a plain path specifier is a fresh module in Bun.
204
+ const mod = await import(__rewriteRelativeImportExtension(`${configPath}?v=${crypto.randomUUID()}`));
205
+ const exported = ConfigExportRecordSchema.safeParse(mod);
206
+ const raw = exported.success && 'default' in exported.data ? exported.data.default : mod;
207
+ const admitted = ConfigExportRecordSchema.safeParse(raw);
208
+ const render = await renderInProcess(renderers, admitted.success ? admitted.data : {}, projectionEnvironment);
209
+ return { raw, render };
210
+ }
211
+ /** The error facts a module-resolution failure carries. */
212
+ const ModuleResolutionErrorFactsSchema = z.object({
213
+ name: z.string().optional(),
214
+ code: z.string().optional(),
215
+ message: z.string().optional()
216
+ }).loose();
217
+ /**
218
+ * True when an import failed because a module/package could not be resolved —
219
+ * the signature of evaluating a workspace-coupled config in a runtime without
220
+ * on-disk `node_modules` (the compiled standalone binary). Other failures
221
+ * (syntax errors, thrown config logic) are NOT resolution errors and must
222
+ * propagate unchanged rather than be silently re-routed through a subprocess.
223
+ */
224
+ function isModuleResolutionError(error) {
225
+ const facts = ModuleResolutionErrorFactsSchema.safeParse(error);
226
+ if (!facts.success)
227
+ return false;
228
+ if (facts.data.name === 'ResolveMessage')
229
+ return true;
230
+ if (facts.data.code === 'ERR_MODULE_NOT_FOUND')
231
+ return true;
232
+ return facts.data.message !== undefined && /Cannot find (module|package)/i.test(facts.data.message);
233
+ }
234
+ /**
235
+ * The keys a deployment module reads while rendering (metadata identifiers,
236
+ * never secret values): every registered deployment provider's declared
237
+ * `projectionKeys`, so the loader names no provider.
238
+ */
239
+ export function deploymentProjectionKeys(runtime) {
240
+ if (!runtime.hasKind('infra/deployment-provider'))
241
+ return [];
242
+ const keys = new Set();
243
+ for (const descriptor of runtime.query('infra/deployment-provider').descriptors()) {
244
+ for (const key of DeploymentProviderDescriptorSchema.parse(descriptor).projectionKeys)
245
+ keys.add(key);
246
+ }
247
+ return [...keys];
248
+ }
249
+ /**
250
+ * The child environment's projection declaration. A resolved projection is
251
+ * passed as data and is the child's whole projection: a key it omits is absent
252
+ * in the child (fail-closed). Without one, the child inherits the same keys
253
+ * from the caller runtime's captured environment, never the live process.
254
+ */
255
+ function projectionChildDeclaration(keys, projectionEnvironment) {
256
+ if (!projectionEnvironment)
257
+ return { inheritEnv: [...keys] };
258
+ const env = {};
259
+ for (const key of keys) {
260
+ const value = projectionEnvironment[key];
261
+ if (value)
262
+ env[key] = value;
263
+ }
264
+ return { env };
265
+ }
266
+ /**
267
+ * Evaluate the config in a `bun` subprocess that has workspace `node_modules`
268
+ * resolution. The evaluator mirrors {@link loadConfigInProcess} exactly (raw
269
+ * default export + optional host renderer) and writes the result to stdout
270
+ * after a sentinel line, keeping any logging the config or infra packages
271
+ * emit on import out of the parsed document.
272
+ */
273
+ async function loadConfigViaWorkspaceBun(runtime, configPath, originalError, execution, projectionEnvironment) {
274
+ const paths = await getRuntimePath(runtime);
275
+ // The child renders through the renderer the export's provider declares,
276
+ // named here as data: it imports the module, never this package's closures.
277
+ const evaluator = `
278
+ const mod = await import(${JSON.stringify(configPath)});
279
+ const raw = (mod && mod.default !== undefined) ? mod.default : mod;
280
+ const projectionEnv = ${projectionEnvironment ? JSON.stringify(projectionEnvironment) : 'undefined'};
281
+ const renderers = ${JSON.stringify(Object.fromEntries(deploymentRenderers(runtime)))};
282
+ const declared = raw && typeof raw === 'object' ? (raw.deployment ?? raw) : null;
283
+ const renderer = declared && typeof declared.provider === 'string' ? renderers[declared.provider] : undefined;
284
+ const render = renderer
285
+ ? (await import(renderer.module))[renderer.export](raw, projectionEnv)
286
+ : ${JSON.stringify(NO_RENDER)};
287
+ process.stdout.write('VIBES_CONFIG_RESULT:' + JSON.stringify({ raw, render }) + '\\n');
288
+ `;
289
+ // The evaluator child gets the composed base set plus, as declared data, the
290
+ // Cloudflare Secrets Store identifier (metadata, never a secret value) it
291
+ // needs to render canonical `secrets_store_secrets` bindings. Without it,
292
+ // fallback evaluation silently renders `secrets.required` and the deploy gate
293
+ // cannot reproduce the configuration it just resolved. Nothing else from the
294
+ // host environment reaches the deployment config's code (C15).
295
+ const env = composeChildEnv(runtime, projectionChildDeclaration(deploymentProjectionKeys(runtime), projectionEnvironment));
296
+ const result = await execution.execute({
297
+ command: 'bun',
298
+ args: ['-e', evaluator],
299
+ cwd: paths.dirname(configPath),
300
+ env,
301
+ envMode: 'replace',
302
+ timeout: 60_000
116
303
  });
304
+ if (result.timedOut) {
305
+ throw new Error(`Timed out while evaluating ${configPath} via runtime/execution.`);
306
+ }
307
+ if (result.exitCode !== 0) {
308
+ throw new Error(`bun subprocess exited ${result.exitCode ?? 'unknown'} while evaluating ${configPath}:\n${result.stderr || result.stdout}`);
309
+ }
310
+ const SENTINEL = 'VIBES_CONFIG_RESULT:';
311
+ const line = (result.stdout ?? '')
312
+ .split('\n')
313
+ .find((candidate) => candidate.startsWith(SENTINEL));
314
+ if (line === undefined) {
315
+ throw new Error(`bun subprocess produced no config result while evaluating ${configPath}:\n${result.stderr || result.stdout}`);
316
+ }
317
+ const payload = settleNow(() => ConfigLoadOutputSchema.parse(JSON.parse(line.slice(SENTINEL.length))));
318
+ if (!payload.ok) {
319
+ // Surface the parse failure, but keep the original in-process resolution
320
+ // error visible so the true cause isn't lost.
321
+ throw new Error(`${failureMessage(payload.cause)}\n(in-process load first failed with: ${failureMessage(originalError)})`);
322
+ }
323
+ return payload.value;
117
324
  }
118
- export async function loadDeploymentConfig(appDir) {
119
- const dir = resolveAppDir(appDir);
120
- const configPath = findConfigFile(dir);
121
- const workspaceRoot = findWorkspaceRoot(dir);
122
- const output = await loadConfigViaSubprocess(configPath, workspaceRoot);
123
- const { deployment, provider } = extractDeployment(output.raw);
325
+ /** The document the fallback evaluator returns on its sentinel line. */
326
+ const ConfigLoadOutputSchema = z.object({
327
+ raw: z.unknown(),
328
+ render: DeploymentModuleRenderSchema
329
+ }).loose();
330
+ export async function loadDeploymentConfig(appDir, options) {
331
+ const host = await resolveConfigLoadHost(options.runtime);
332
+ const dir = await resolveAppDir(host, appDir);
333
+ // The unit's `infra.deployment` settings come from the config owner: a declared deployment (data) or
334
+ // non-deployable marker is the answer; otherwise the declared module (default deployment.config.ts) is evaluated.
335
+ const settings = await readDeploymentSettings(options.runtime, dir);
336
+ if (settings.nonDeployable) {
337
+ throw new NonDeployableDeploymentConfigError({ ...settings.nonDeployable, configPath: dir });
338
+ }
339
+ if (settings.webAppId !== undefined) {
340
+ const runtime = options.runtime;
341
+ const input = { appRoot: dir, projectionEnvironment: { ...options.projectionEnvironment } };
342
+ const production = await projectWebApp(runtime, settings.webAppId, { ...input, target: 'production' });
343
+ const local = production.artifact === null ? production
344
+ : await projectWebApp(runtime, settings.webAppId, { ...input, target: 'local' });
345
+ const [descriptor] = runtime.query('infra/web-app').withId(settings.webAppId).descriptors();
346
+ if (!descriptor) {
347
+ throw new CapabilityError('The selected web app is no longer registered.', 'NOT_FOUND', {
348
+ reason: 'web-app-unavailable', details: { id: settings.webAppId }
349
+ });
350
+ }
351
+ return {
352
+ configPath: host.paths.join(dir, UNIT_CONFIG_FILE), appDir: dir,
353
+ deployment: production.deployment, provider: production.provider,
354
+ raw: { deployment: production.deployment, config: descriptor.config },
355
+ rendered: production.artifact?.content ?? null,
356
+ localRendered: local.artifact?.content ?? null,
357
+ managed: production.managed, renders: production.artifact !== null,
358
+ unitName: production.workerName
359
+ };
360
+ }
361
+ const declared = settings.deployment;
362
+ const configPath = declared ? host.paths.join(dir, UNIT_CONFIG_FILE) : await findConfigFile(host, dir, settings.module);
363
+ const execution = options.execution;
364
+ if (options.freshProcess && !execution) {
365
+ throw new CapabilityError("A fresh-process evaluation runs on the caller's runtime/execution; pass execution.", 'INVALID_INPUT', { reason: 'execution-required' });
366
+ }
367
+ const output = declared
368
+ ? { raw: declared, render: NO_RENDER }
369
+ : options.freshProcess && execution
370
+ ? await loadConfigViaWorkspaceBun(options.runtime, configPath, new Error('fresh deployment projection requested'), execution, options.projectionEnvironment)
371
+ : await loadConfigInCurrentRuntime(options.runtime, configPath, options.projectionEnvironment);
372
+ const extracted = settleNow(() => extractDeployment(output.raw));
373
+ if (!extracted.ok) {
374
+ const failure = extracted.cause;
375
+ if (failure instanceof NonDeployableDeploymentConfigError) {
376
+ throw new NonDeployableDeploymentConfigError({
377
+ appId: failure.appId,
378
+ reason: failure.reason,
379
+ configPath
380
+ });
381
+ }
382
+ throw failure;
383
+ }
384
+ const { deployment, provider } = extracted.value;
385
+ // The provider the deployment names is composed from its own declaration
386
+ // (`providerPlugin`) when this runtime has not composed it.
387
+ await composeDeclaredDeploymentProvider(options.runtime, deployment, dir);
388
+ validateAppDeployment(options.runtime, deployment);
124
389
  return {
125
390
  configPath,
126
391
  appDir: dir,
127
392
  deployment,
128
393
  provider,
129
394
  raw: output.raw,
130
- wranglerJsoncString: output.render.rendered,
395
+ rendered: output.render.rendered,
396
+ localRendered: output.render.localRendered,
131
397
  managed: output.render.managed,
132
- workerName: output.render.workerName
398
+ renders: output.render.renders,
399
+ unitName: output.render.unitName
133
400
  };
134
401
  }
135
402
  //# sourceMappingURL=config-loader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-loader.js","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAuB3C,MAAM,gBAAgB,GAAG,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,uBAAuB,CAAC,CAAC;AAEnG,MAAM,UAAU,aAAa,CAAC,KAAa;IAC1C,MAAM,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;IAC3E,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,wBAAwB,QAAQ,EAAE,CAAC,CAAC;IACrD,CAAC;IACD,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAChC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,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C"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Compose the deployment provider a deployment declares.
3
+ *
4
+ * A deployment names its provider (`provider`) and, when its provider
5
+ * package's factory authored it, the plugin that registers that provider
6
+ * (`providerPlugin`). A deploy run from a checkout CLI composes only the CLI's
7
+ * own selection, so the provider an app deploys with would otherwise have to
8
+ * be hand-listed by every host. Instead, a provider the runtime has not
9
+ * composed is composed here from the declaration, resolved from the app
10
+ * directory through the runtime's own package-plugin loader (the same loader
11
+ * every scope selection uses), and registered on that runtime before the
12
+ * deployment is admitted. A provider already composed is left alone; a
13
+ * deployment that declares no plugin is admitted (or refused) unchanged.
14
+ */
15
+ import { type RuntimeRef } from '@vibesdotdev/kernel';
16
+ /** The two `AppDeployment` fields this step reads (`provider`, `providerPlugin`). */
17
+ export interface DeclaredDeploymentProvider {
18
+ readonly provider: string;
19
+ readonly providerPlugin?: string | undefined;
20
+ }
21
+ /**
22
+ * Register `deployment.providerPlugin` on `runtime` when `deployment.provider`
23
+ * is not composed yet. Refuses `deployment-provider-plugin-unresolved` when the
24
+ * declared plugin cannot be resolved from `appDir`.
25
+ */
26
+ export declare function composeDeclaredDeploymentProvider(runtime: Pick<RuntimeRef, 'hasKind' | 'query' | 'registerPlugin'>, deployment: DeclaredDeploymentProvider, appDir: string): Promise<void>;
27
+ //# sourceMappingURL=declared-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"declared-provider.d.ts","sourceRoot":"","sources":["../src/declared-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAA0E,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9H,qFAAqF;AACrF,MAAM,WAAW,0BAA0B;IAC1C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7C;AAQD;;;;GAIG;AACH,wBAAsB,iCAAiC,CACtD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,GAAG,gBAAgB,CAAC,EACjE,UAAU,EAAE,0BAA0B,EACtC,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAgBf"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Compose the deployment provider a deployment declares.
3
+ *
4
+ * A deployment names its provider (`provider`) and, when its provider
5
+ * package's factory authored it, the plugin that registers that provider
6
+ * (`providerPlugin`). A deploy run from a checkout CLI composes only the CLI's
7
+ * own selection, so the provider an app deploys with would otherwise have to
8
+ * be hand-listed by every host. Instead, a provider the runtime has not
9
+ * composed is composed here from the declaration, resolved from the app
10
+ * directory through the runtime's own package-plugin loader (the same loader
11
+ * every scope selection uses), and registered on that runtime before the
12
+ * deployment is admitted. A provider already composed is left alone; a
13
+ * deployment that declares no plugin is admitted (or refused) unchanged.
14
+ */
15
+ import { CapabilityError, getRuntimePackagePlugins } from '@vibesdotdev/kernel';
16
+ /** Whether `runtime` already registers `provider` as an `infra/deployment-provider`. */
17
+ function providerComposed(runtime, provider) {
18
+ return runtime.hasKind('infra/deployment-provider')
19
+ && runtime.query('infra/deployment-provider').withId(provider).descriptors().length > 0;
20
+ }
21
+ /**
22
+ * Register `deployment.providerPlugin` on `runtime` when `deployment.provider`
23
+ * is not composed yet. Refuses `deployment-provider-plugin-unresolved` when the
24
+ * declared plugin cannot be resolved from `appDir`.
25
+ */
26
+ export async function composeDeclaredDeploymentProvider(runtime, deployment, appDir) {
27
+ const specifier = deployment.providerPlugin;
28
+ if (specifier === undefined || providerComposed(runtime, deployment.provider))
29
+ return;
30
+ const packagePlugins = await getRuntimePackagePlugins(runtime);
31
+ const resolved = await packagePlugins.resolvePluginModule({ id: specifier, projectDir: appDir });
32
+ if (!('plugins' in resolved) || resolved.plugins.length === 0) {
33
+ const options = {
34
+ reason: 'deployment-provider-plugin-unresolved',
35
+ retryable: false,
36
+ details: { provider: deployment.provider, specifier },
37
+ recoveryHint: `Install the package that provides ${specifier} in ${appDir}.`
38
+ };
39
+ if ('cause' in resolved && resolved.cause)
40
+ options.cause = resolved.cause;
41
+ throw new CapabilityError('The deployment provider plugin the deployment declares could not be resolved.', 'UNAVAILABLE', options);
42
+ }
43
+ for (const entry of resolved.plugins)
44
+ await runtime.registerPlugin(entry.plugin);
45
+ }
46
+ //# sourceMappingURL=declared-provider.js.map