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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (689) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +76 -12
  3. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +48 -35
  4. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -1
  5. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +1 -1
  6. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -1
  7. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +2 -1
  8. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -1
  9. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +31 -21
  10. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -1
  11. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +26 -27
  12. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -1
  13. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +1 -1
  14. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -1
  15. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +2 -1
  16. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -1
  17. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +11 -11
  18. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -1
  19. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +19 -17
  20. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -1
  21. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +1 -1
  22. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -1
  23. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +2 -1
  24. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -1
  25. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +15 -14
  26. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -1
  27. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +8 -8
  28. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +1 -1
  29. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -1
  30. package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +24 -17
  31. package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -1
  32. package/dist/cli/audit/infra-audit.cli-command.descriptor.js +8 -3
  33. package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -1
  34. package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +164 -1
  35. package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -1
  36. package/dist/cli/audit/infra-audit.cli-command.impl.js +557 -76
  37. package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -1
  38. package/dist/cli/db/infra-db.cli-command.descriptor.d.ts +49 -0
  39. package/dist/cli/db/infra-db.cli-command.descriptor.d.ts.map +1 -0
  40. package/dist/cli/db/infra-db.cli-command.descriptor.js +60 -0
  41. package/dist/cli/db/infra-db.cli-command.descriptor.js.map +1 -0
  42. package/dist/cli/db/infra-db.cli-command.impl.d.ts +30 -0
  43. package/dist/cli/db/infra-db.cli-command.impl.d.ts.map +1 -0
  44. package/dist/cli/db/infra-db.cli-command.impl.js +167 -0
  45. package/dist/cli/db/infra-db.cli-command.impl.js.map +1 -0
  46. package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts +6 -0
  47. package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts.map +1 -0
  48. package/dist/cli/dns/infra-dns-activate.cli-command.impl.js +53 -0
  49. package/dist/cli/dns/infra-dns-activate.cli-command.impl.js.map +1 -0
  50. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts +41 -0
  51. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts.map +1 -0
  52. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js +50 -0
  53. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js.map +1 -0
  54. package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts +12 -0
  55. package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts.map +1 -0
  56. package/dist/cli/dns/infra-dns-delete.cli-command.impl.js +70 -0
  57. package/dist/cli/dns/infra-dns-delete.cli-command.impl.js.map +1 -0
  58. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts +32 -0
  59. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts.map +1 -0
  60. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js +39 -0
  61. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js.map +1 -0
  62. package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts +17 -0
  63. package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts.map +1 -0
  64. package/dist/cli/dns/infra-dns-list.cli-command.impl.js +66 -0
  65. package/dist/cli/dns/infra-dns-list.cli-command.impl.js.map +1 -0
  66. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts +58 -0
  67. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts.map +1 -0
  68. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js +72 -0
  69. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js.map +1 -0
  70. package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts +14 -0
  71. package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts.map +1 -0
  72. package/dist/cli/dns/infra-dns-set.cli-command.impl.js +110 -0
  73. package/dist/cli/dns/infra-dns-set.cli-command.impl.js.map +1 -0
  74. package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts +41 -0
  75. package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts.map +1 -0
  76. package/dist/cli/dns/infra-dns.cli-group.descriptor.js +47 -0
  77. package/dist/cli/dns/infra-dns.cli-group.descriptor.js.map +1 -0
  78. package/dist/cli/dns/resolve-dns-provider.d.ts +24 -0
  79. package/dist/cli/dns/resolve-dns-provider.d.ts.map +1 -0
  80. package/dist/cli/dns/resolve-dns-provider.js +62 -0
  81. package/dist/cli/dns/resolve-dns-provider.js.map +1 -0
  82. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts +37 -0
  83. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts.map +1 -0
  84. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js +45 -0
  85. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js.map +1 -0
  86. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts +15 -0
  87. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts.map +1 -0
  88. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js +78 -0
  89. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js.map +1 -0
  90. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts +29 -0
  91. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts.map +1 -0
  92. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js +35 -0
  93. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js.map +1 -0
  94. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts +19 -0
  95. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts.map +1 -0
  96. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js +73 -0
  97. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js.map +1 -0
  98. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts +41 -0
  99. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts.map +1 -0
  100. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js +50 -0
  101. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js.map +1 -0
  102. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts +16 -0
  103. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts.map +1 -0
  104. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js +81 -0
  105. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js.map +1 -0
  106. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts +40 -0
  107. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts.map +1 -0
  108. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js +49 -0
  109. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js.map +1 -0
  110. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts +14 -0
  111. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts.map +1 -0
  112. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js +78 -0
  113. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js.map +1 -0
  114. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts +12 -0
  115. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts.map +1 -0
  116. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js +12 -0
  117. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js.map +1 -0
  118. package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts +25 -0
  119. package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts.map +1 -0
  120. package/dist/cli/edge-tls/resolve-edge-tls-provider.js +74 -0
  121. package/dist/cli/edge-tls/resolve-edge-tls-provider.js.map +1 -0
  122. package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +8 -8
  123. package/dist/cli/infra-deploy.cli-group.descriptor.js +1 -1
  124. package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -1
  125. package/dist/cli/infra.cli-group.descriptor.d.ts +7 -7
  126. package/dist/cli/infra.cli-group.descriptor.js +1 -1
  127. package/dist/cli/infra.cli-group.descriptor.js.map +1 -1
  128. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts +26 -0
  129. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts.map +1 -0
  130. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js +18 -0
  131. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js.map +1 -0
  132. package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts +18 -0
  133. package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts.map +1 -0
  134. package/dist/cli/inventory/infra-inventory.cli-command.impl.js +204 -0
  135. package/dist/cli/inventory/infra-inventory.cli-command.impl.js.map +1 -0
  136. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +40 -30
  137. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -1
  138. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +7 -3
  139. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -1
  140. package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +35 -1
  141. package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -1
  142. package/dist/cli/list/infra-deploy.list.cli-command.impl.js +202 -20
  143. package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -1
  144. package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +113 -35
  145. package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -1
  146. package/dist/cli/logs/infra-logs.cli-command.descriptor.js +87 -3
  147. package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -1
  148. package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +61 -1
  149. package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -1
  150. package/dist/cli/logs/infra-logs.cli-command.impl.js +1160 -111
  151. package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -1
  152. package/dist/cli/logs/stream-worker-tail.d.ts +7 -2
  153. package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -1
  154. package/dist/cli/logs/stream-worker-tail.js +280 -113
  155. package/dist/cli/logs/stream-worker-tail.js.map +1 -1
  156. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts +62 -0
  157. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts.map +1 -0
  158. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js +79 -0
  159. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js.map +1 -0
  160. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts +8 -0
  161. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts.map +1 -0
  162. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js +105 -0
  163. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js.map +1 -0
  164. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts +40 -0
  165. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts.map +1 -0
  166. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js +50 -0
  167. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js.map +1 -0
  168. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts +13 -0
  169. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts.map +1 -0
  170. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js +108 -0
  171. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js.map +1 -0
  172. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +83 -23
  173. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -1
  174. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +52 -16
  175. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -1
  176. package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +52 -1
  177. package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -1
  178. package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +568 -351
  179. package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -1
  180. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts +28 -0
  181. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts.map +1 -0
  182. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js +34 -0
  183. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js.map +1 -0
  184. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts +12 -0
  185. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts.map +1 -0
  186. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js +134 -0
  187. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js.map +1 -0
  188. package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +8 -8
  189. package/dist/cli/npm/infra-npm.cli-group.descriptor.js +1 -1
  190. package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -1
  191. package/dist/cli/npm/mirror-registry-artifacts.d.ts +91 -0
  192. package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
  193. package/dist/cli/npm/mirror-registry-artifacts.js +99 -0
  194. package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
  195. package/dist/cli/npm/npm-protocol-package-registry.d.ts +32 -0
  196. package/dist/cli/npm/npm-protocol-package-registry.d.ts.map +1 -0
  197. package/dist/cli/npm/npm-protocol-package-registry.js +237 -0
  198. package/dist/cli/npm/npm-protocol-package-registry.js.map +1 -0
  199. package/dist/cli/npm/publish/command-options.d.ts +24 -0
  200. package/dist/cli/npm/publish/command-options.d.ts.map +1 -0
  201. package/dist/cli/npm/publish/command-options.js +85 -0
  202. package/dist/cli/npm/publish/command-options.js.map +1 -0
  203. package/dist/cli/npm/publish/concurrency.d.ts +19 -0
  204. package/dist/cli/npm/publish/concurrency.d.ts.map +1 -0
  205. package/dist/cli/npm/publish/concurrency.js +60 -0
  206. package/dist/cli/npm/publish/concurrency.js.map +1 -0
  207. package/dist/cli/npm/publish/consumer-smoke.d.ts +83 -0
  208. package/dist/cli/npm/publish/consumer-smoke.d.ts.map +1 -0
  209. package/dist/cli/npm/publish/consumer-smoke.js +371 -0
  210. package/dist/cli/npm/publish/consumer-smoke.js.map +1 -0
  211. package/dist/cli/npm/publish/consumer-surfaces.d.ts +81 -0
  212. package/dist/cli/npm/publish/consumer-surfaces.d.ts.map +1 -0
  213. package/dist/cli/npm/publish/consumer-surfaces.js +199 -0
  214. package/dist/cli/npm/publish/consumer-surfaces.js.map +1 -0
  215. package/dist/cli/npm/publish/external-requirements.d.ts +171 -0
  216. package/dist/cli/npm/publish/external-requirements.d.ts.map +1 -0
  217. package/dist/cli/npm/publish/external-requirements.js +365 -0
  218. package/dist/cli/npm/publish/external-requirements.js.map +1 -0
  219. package/dist/cli/npm/publish/forge-source-identity.d.ts +64 -0
  220. package/dist/cli/npm/publish/forge-source-identity.d.ts.map +1 -0
  221. package/dist/cli/npm/publish/forge-source-identity.js +201 -0
  222. package/dist/cli/npm/publish/forge-source-identity.js.map +1 -0
  223. package/dist/cli/npm/publish/fs-paths.d.ts +25 -0
  224. package/dist/cli/npm/publish/fs-paths.d.ts.map +1 -0
  225. package/dist/cli/npm/publish/fs-paths.js +87 -0
  226. package/dist/cli/npm/publish/fs-paths.js.map +1 -0
  227. package/dist/cli/npm/publish/lease-preflight-answer.d.ts +17 -0
  228. package/dist/cli/npm/publish/lease-preflight-answer.d.ts.map +1 -0
  229. package/dist/cli/npm/publish/lease-preflight-answer.js +35 -0
  230. package/dist/cli/npm/publish/lease-preflight-answer.js.map +1 -0
  231. package/dist/cli/npm/publish/lease-preflight.d.ts +92 -0
  232. package/dist/cli/npm/publish/lease-preflight.d.ts.map +1 -0
  233. package/dist/cli/npm/publish/lease-preflight.js +205 -0
  234. package/dist/cli/npm/publish/lease-preflight.js.map +1 -0
  235. package/dist/cli/npm/publish/managed-lease.d.ts +110 -0
  236. package/dist/cli/npm/publish/managed-lease.d.ts.map +1 -0
  237. package/dist/cli/npm/publish/managed-lease.js +191 -0
  238. package/dist/cli/npm/publish/managed-lease.js.map +1 -0
  239. package/dist/cli/npm/publish/npm-exec.d.ts +148 -0
  240. package/dist/cli/npm/publish/npm-exec.d.ts.map +1 -0
  241. package/dist/cli/npm/publish/npm-exec.js +311 -0
  242. package/dist/cli/npm/publish/npm-exec.js.map +1 -0
  243. package/dist/cli/npm/publish/package-artifact.d.ts +107 -0
  244. package/dist/cli/npm/publish/package-artifact.d.ts.map +1 -0
  245. package/dist/cli/npm/publish/package-artifact.js +418 -0
  246. package/dist/cli/npm/publish/package-artifact.js.map +1 -0
  247. package/dist/cli/npm/publish/platform-registry.d.ts +76 -0
  248. package/dist/cli/npm/publish/platform-registry.d.ts.map +1 -0
  249. package/dist/cli/npm/publish/platform-registry.js +324 -0
  250. package/dist/cli/npm/publish/platform-registry.js.map +1 -0
  251. package/dist/cli/npm/publish/proof-external-closure.d.ts +139 -0
  252. package/dist/cli/npm/publish/proof-external-closure.d.ts.map +1 -0
  253. package/dist/cli/npm/publish/proof-external-closure.js +339 -0
  254. package/dist/cli/npm/publish/proof-external-closure.js.map +1 -0
  255. package/dist/cli/npm/publish/proof-installed-graph.d.ts +26 -0
  256. package/dist/cli/npm/publish/proof-installed-graph.d.ts.map +1 -0
  257. package/dist/cli/npm/publish/proof-installed-graph.js +229 -0
  258. package/dist/cli/npm/publish/proof-installed-graph.js.map +1 -0
  259. package/dist/cli/npm/publish/proof-registry.d.ts +74 -0
  260. package/dist/cli/npm/publish/proof-registry.d.ts.map +1 -0
  261. package/dist/cli/npm/publish/proof-registry.js +335 -0
  262. package/dist/cli/npm/publish/proof-registry.js.map +1 -0
  263. package/dist/cli/npm/publish/proof-source-credentials.d.ts +42 -0
  264. package/dist/cli/npm/publish/proof-source-credentials.d.ts.map +1 -0
  265. package/dist/cli/npm/publish/proof-source-credentials.js +129 -0
  266. package/dist/cli/npm/publish/proof-source-credentials.js.map +1 -0
  267. package/dist/cli/npm/publish/publish-package.d.ts +66 -0
  268. package/dist/cli/npm/publish/publish-package.d.ts.map +1 -0
  269. package/dist/cli/npm/publish/publish-package.js +544 -0
  270. package/dist/cli/npm/publish/publish-package.js.map +1 -0
  271. package/dist/cli/npm/publish/publish-to-mirror.d.ts +28 -0
  272. package/dist/cli/npm/publish/publish-to-mirror.d.ts.map +1 -0
  273. package/dist/cli/npm/publish/publish-to-mirror.js +36 -0
  274. package/dist/cli/npm/publish/publish-to-mirror.js.map +1 -0
  275. package/dist/cli/npm/publish/publisher-manifest.d.ts +173 -0
  276. package/dist/cli/npm/publish/publisher-manifest.d.ts.map +1 -0
  277. package/dist/cli/npm/publish/publisher-manifest.js +79 -0
  278. package/dist/cli/npm/publish/publisher-manifest.js.map +1 -0
  279. package/dist/cli/npm/publish/rc-major-exception.d.ts +20 -0
  280. package/dist/cli/npm/publish/rc-major-exception.d.ts.map +1 -0
  281. package/dist/cli/npm/publish/rc-major-exception.js +46 -0
  282. package/dist/cli/npm/publish/rc-major-exception.js.map +1 -0
  283. package/dist/cli/npm/publish/registry-availability.d.ts +150 -0
  284. package/dist/cli/npm/publish/registry-availability.d.ts.map +1 -0
  285. package/dist/cli/npm/publish/registry-availability.js +570 -0
  286. package/dist/cli/npm/publish/registry-availability.js.map +1 -0
  287. package/dist/cli/npm/publish/registry-credentials.d.ts +108 -0
  288. package/dist/cli/npm/publish/registry-credentials.d.ts.map +1 -0
  289. package/dist/cli/npm/publish/registry-credentials.js +290 -0
  290. package/dist/cli/npm/publish/registry-credentials.js.map +1 -0
  291. package/dist/cli/npm/publish/registry-reads.d.ts +42 -0
  292. package/dist/cli/npm/publish/registry-reads.d.ts.map +1 -0
  293. package/dist/cli/npm/publish/registry-reads.js +181 -0
  294. package/dist/cli/npm/publish/registry-reads.js.map +1 -0
  295. package/dist/cli/npm/publish/release-build.d.ts +46 -0
  296. package/dist/cli/npm/publish/release-build.d.ts.map +1 -0
  297. package/dist/cli/npm/publish/release-build.js +140 -0
  298. package/dist/cli/npm/publish/release-build.js.map +1 -0
  299. package/dist/cli/npm/publish/release-consumer-proof.d.ts +70 -0
  300. package/dist/cli/npm/publish/release-consumer-proof.d.ts.map +1 -0
  301. package/dist/cli/npm/publish/release-consumer-proof.js +397 -0
  302. package/dist/cli/npm/publish/release-consumer-proof.js.map +1 -0
  303. package/dist/cli/npm/publish/release-executor.d.ts +46 -0
  304. package/dist/cli/npm/publish/release-executor.d.ts.map +1 -0
  305. package/dist/cli/npm/publish/release-executor.js +181 -0
  306. package/dist/cli/npm/publish/release-executor.js.map +1 -0
  307. package/dist/cli/npm/publish/release-grants.client.impl.d.ts +10 -0
  308. package/dist/cli/npm/publish/release-grants.client.impl.d.ts.map +1 -0
  309. package/dist/cli/npm/publish/release-grants.client.impl.js +63 -0
  310. package/dist/cli/npm/publish/release-grants.client.impl.js.map +1 -0
  311. package/dist/cli/npm/publish/release-jobs.client.d.ts +39 -0
  312. package/dist/cli/npm/publish/release-jobs.client.d.ts.map +1 -0
  313. package/dist/cli/npm/publish/release-jobs.client.js +124 -0
  314. package/dist/cli/npm/publish/release-jobs.client.js.map +1 -0
  315. package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts +20 -0
  316. package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts.map +1 -0
  317. package/dist/cli/npm/publish/release-jobs.consumer.plugin.js +82 -0
  318. package/dist/cli/npm/publish/release-jobs.consumer.plugin.js.map +1 -0
  319. package/dist/cli/npm/publish/release-jobs.impl.d.ts +15 -0
  320. package/dist/cli/npm/publish/release-jobs.impl.d.ts.map +1 -0
  321. package/dist/cli/npm/publish/release-jobs.impl.js +42 -0
  322. package/dist/cli/npm/publish/release-jobs.impl.js.map +1 -0
  323. package/dist/cli/npm/publish/release-lock.d.ts +143 -0
  324. package/dist/cli/npm/publish/release-lock.d.ts.map +1 -0
  325. package/dist/cli/npm/publish/release-lock.js +371 -0
  326. package/dist/cli/npm/publish/release-lock.js.map +1 -0
  327. package/dist/cli/npm/publish/release-phases.d.ts +93 -0
  328. package/dist/cli/npm/publish/release-phases.d.ts.map +1 -0
  329. package/dist/cli/npm/publish/release-phases.js +175 -0
  330. package/dist/cli/npm/publish/release-phases.js.map +1 -0
  331. package/dist/cli/npm/publish/release-plan.d.ts +65 -0
  332. package/dist/cli/npm/publish/release-plan.d.ts.map +1 -0
  333. package/dist/cli/npm/publish/release-plan.js +178 -0
  334. package/dist/cli/npm/publish/release-plan.js.map +1 -0
  335. package/dist/cli/npm/publish/release-preflight.job.impl.d.ts +16 -0
  336. package/dist/cli/npm/publish/release-preflight.job.impl.d.ts.map +1 -0
  337. package/dist/cli/npm/publish/release-preflight.job.impl.js +71 -0
  338. package/dist/cli/npm/publish/release-preflight.job.impl.js.map +1 -0
  339. package/dist/cli/npm/publish/release-publish.job.impl.d.ts +18 -0
  340. package/dist/cli/npm/publish/release-publish.job.impl.d.ts.map +1 -0
  341. package/dist/cli/npm/publish/release-publish.job.impl.js +295 -0
  342. package/dist/cli/npm/publish/release-publish.job.impl.js.map +1 -0
  343. package/dist/cli/npm/publish/release-workspace.d.ts +95 -0
  344. package/dist/cli/npm/publish/release-workspace.d.ts.map +1 -0
  345. package/dist/cli/npm/publish/release-workspace.js +243 -0
  346. package/dist/cli/npm/publish/release-workspace.js.map +1 -0
  347. package/dist/cli/npm/publish/sensitive-temp.d.ts +90 -0
  348. package/dist/cli/npm/publish/sensitive-temp.d.ts.map +1 -0
  349. package/dist/cli/npm/publish/sensitive-temp.js +351 -0
  350. package/dist/cli/npm/publish/sensitive-temp.js.map +1 -0
  351. package/dist/cli/npm/publish/source-snapshot.d.ts +91 -0
  352. package/dist/cli/npm/publish/source-snapshot.d.ts.map +1 -0
  353. package/dist/cli/npm/publish/source-snapshot.js +245 -0
  354. package/dist/cli/npm/publish/source-snapshot.js.map +1 -0
  355. package/dist/cli/npm/publish/types.d.ts +69 -0
  356. package/dist/cli/npm/publish/types.d.ts.map +1 -0
  357. package/dist/cli/npm/publish/types.js +2 -0
  358. package/dist/cli/npm/publish/types.js.map +1 -0
  359. package/dist/cli/npm/publish/workspace-discovery.d.ts +48 -0
  360. package/dist/cli/npm/publish/workspace-discovery.d.ts.map +1 -0
  361. package/dist/cli/npm/publish/workspace-discovery.js +313 -0
  362. package/dist/cli/npm/publish/workspace-discovery.js.map +1 -0
  363. package/dist/cli/npm/put-attested-packument.d.ts +142 -0
  364. package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
  365. package/dist/cli/npm/put-attested-packument.js +353 -0
  366. package/dist/cli/npm/put-attested-packument.js.map +1 -0
  367. package/dist/cli/npm/reconcile-latest.d.ts +55 -0
  368. package/dist/cli/npm/reconcile-latest.d.ts.map +1 -0
  369. package/dist/cli/npm/reconcile-latest.js +59 -0
  370. package/dist/cli/npm/reconcile-latest.js.map +1 -0
  371. package/dist/cli/npm/registries/npmjs.package-registry.descriptor.d.ts +56 -0
  372. package/dist/cli/npm/registries/npmjs.package-registry.descriptor.d.ts.map +1 -0
  373. package/dist/cli/npm/registries/npmjs.package-registry.descriptor.js +16 -0
  374. package/dist/cli/npm/registries/npmjs.package-registry.descriptor.js.map +1 -0
  375. package/dist/cli/npm/registries/package-registries.plugin.d.ts +3 -0
  376. package/dist/cli/npm/registries/package-registries.plugin.d.ts.map +1 -0
  377. package/dist/cli/npm/registries/package-registries.plugin.js +44 -0
  378. package/dist/cli/npm/registries/package-registries.plugin.js.map +1 -0
  379. package/dist/cli/npm/registries/resolve-package-registry.d.ts +29 -0
  380. package/dist/cli/npm/registries/resolve-package-registry.d.ts.map +1 -0
  381. package/dist/cli/npm/registries/resolve-package-registry.js +58 -0
  382. package/dist/cli/npm/registries/resolve-package-registry.js.map +1 -0
  383. package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.d.ts +53 -0
  384. package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.d.ts.map +1 -0
  385. package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.js +12 -0
  386. package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.js.map +1 -0
  387. package/dist/cli/observability/blind-spots.d.ts +10 -0
  388. package/dist/cli/observability/blind-spots.d.ts.map +1 -0
  389. package/dist/cli/observability/blind-spots.js +19 -0
  390. package/dist/cli/observability/blind-spots.js.map +1 -0
  391. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts +6 -0
  392. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts.map +1 -0
  393. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js +75 -0
  394. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js.map +1 -0
  395. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +42 -21
  396. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -1
  397. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +3 -3
  398. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -1
  399. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +3 -2
  400. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -1
  401. package/dist/cli/observability/infra-observability-set.cli-command.impl.js +14 -14
  402. package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -1
  403. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +25 -17
  404. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -1
  405. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +1 -1
  406. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -1
  407. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +2 -1
  408. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -1
  409. package/dist/cli/observability/infra-observability-status.cli-command.impl.js +30 -23
  410. package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -1
  411. package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +8 -8
  412. package/dist/cli/observability/infra-observability.cli-group.descriptor.js +1 -1
  413. package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -1
  414. package/dist/cli/plugin.d.ts +3 -0
  415. package/dist/cli/plugin.d.ts.map +1 -0
  416. package/dist/cli/plugin.js +45 -0
  417. package/dist/cli/plugin.js.map +1 -0
  418. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts +38 -0
  419. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts.map +1 -0
  420. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js +43 -0
  421. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js.map +1 -0
  422. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts +117 -0
  423. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts.map +1 -0
  424. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js +678 -0
  425. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js.map +1 -0
  426. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +37 -23
  427. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -1
  428. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +7 -1
  429. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -1
  430. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +2 -1
  431. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -1
  432. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +100 -25
  433. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -1
  434. package/dist/cli/release/cli/latest-manifest.d.ts +148 -0
  435. package/dist/cli/release/cli/latest-manifest.d.ts.map +1 -0
  436. package/dist/cli/release/cli/latest-manifest.js +152 -0
  437. package/dist/cli/release/cli/latest-manifest.js.map +1 -0
  438. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts +41 -0
  439. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts.map +1 -0
  440. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js +49 -0
  441. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js.map +1 -0
  442. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts +16 -0
  443. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts.map +1 -0
  444. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js +52 -0
  445. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js.map +1 -0
  446. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +19 -17
  447. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -1
  448. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +1 -1
  449. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -1
  450. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +2 -1
  451. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -1
  452. package/dist/cli/rum/infra-rum-status.cli-command.impl.js +21 -15
  453. package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -1
  454. package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +8 -8
  455. package/dist/cli/rum/infra-rum.cli-group.descriptor.js +1 -1
  456. package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -1
  457. package/dist/cli/run/deploy-smoke.d.ts +57 -0
  458. package/dist/cli/run/deploy-smoke.d.ts.map +1 -0
  459. package/dist/cli/run/deploy-smoke.js +251 -0
  460. package/dist/cli/run/deploy-smoke.js.map +1 -0
  461. package/dist/cli/run/deployment-marker.d.ts +74 -0
  462. package/dist/cli/run/deployment-marker.d.ts.map +1 -0
  463. package/dist/cli/run/deployment-marker.js +237 -0
  464. package/dist/cli/run/deployment-marker.js.map +1 -0
  465. package/dist/cli/run/deployment-provider.d.ts +51 -0
  466. package/dist/cli/run/deployment-provider.d.ts.map +1 -0
  467. package/dist/cli/run/deployment-provider.js +274 -0
  468. package/dist/cli/run/deployment-provider.js.map +1 -0
  469. package/dist/cli/run/deployment-run-ledger.d.ts +72 -0
  470. package/dist/cli/run/deployment-run-ledger.d.ts.map +1 -0
  471. package/dist/cli/run/deployment-run-ledger.js +164 -0
  472. package/dist/cli/run/deployment-run-ledger.js.map +1 -0
  473. package/dist/cli/run/git-source-identity.d.ts +21 -0
  474. package/dist/cli/run/git-source-identity.d.ts.map +1 -0
  475. package/dist/cli/run/git-source-identity.js +73 -0
  476. package/dist/cli/run/git-source-identity.js.map +1 -0
  477. package/dist/cli/run/immutable-deployment-release.program.d.ts +404 -0
  478. package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
  479. package/dist/cli/run/immutable-deployment-release.program.js +585 -0
  480. package/dist/cli/run/immutable-deployment-release.program.js.map +1 -0
  481. package/dist/cli/run/immutable-deployment-workspace.d.ts +39 -0
  482. package/dist/cli/run/immutable-deployment-workspace.d.ts.map +1 -0
  483. package/dist/cli/run/immutable-deployment-workspace.js +525 -0
  484. package/dist/cli/run/immutable-deployment-workspace.js.map +1 -0
  485. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +77 -23
  486. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -1
  487. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +49 -8
  488. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -1
  489. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +46 -1
  490. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -1
  491. package/dist/cli/run/infra-deploy.run.cli-command.impl.js +440 -229
  492. package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
  493. package/dist/cli/shared/build-workspace-artifacts.d.ts +152 -0
  494. package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
  495. package/dist/cli/shared/build-workspace-artifacts.js +2049 -0
  496. package/dist/cli/shared/build-workspace-artifacts.js.map +1 -0
  497. package/dist/cli/shared/credential-source.d.ts +3 -0
  498. package/dist/cli/shared/credential-source.d.ts.map +1 -0
  499. package/dist/cli/shared/credential-source.js +19 -0
  500. package/dist/cli/shared/credential-source.js.map +1 -0
  501. package/dist/cli/shared/discover-deployments.d.ts +46 -5
  502. package/dist/cli/shared/discover-deployments.d.ts.map +1 -1
  503. package/dist/cli/shared/discover-deployments.js +167 -41
  504. package/dist/cli/shared/discover-deployments.js.map +1 -1
  505. package/dist/cli/shared/infer-apex-zone.d.ts +18 -0
  506. package/dist/cli/shared/infer-apex-zone.d.ts.map +1 -0
  507. package/dist/cli/shared/infer-apex-zone.js +75 -0
  508. package/dist/cli/shared/infer-apex-zone.js.map +1 -0
  509. package/dist/cli/shared/option-strings.d.ts +2 -0
  510. package/dist/cli/shared/option-strings.d.ts.map +1 -0
  511. package/dist/cli/shared/option-strings.js +13 -0
  512. package/dist/cli/shared/option-strings.js.map +1 -0
  513. package/dist/cli/shared/repository-collection.d.ts +42 -0
  514. package/dist/cli/shared/repository-collection.d.ts.map +1 -0
  515. package/dist/cli/shared/repository-collection.js +111 -0
  516. package/dist/cli/shared/repository-collection.js.map +1 -0
  517. package/dist/cli/shared/runtime-execution.d.ts +78 -0
  518. package/dist/cli/shared/runtime-execution.d.ts.map +1 -0
  519. package/dist/cli/shared/runtime-execution.js +182 -0
  520. package/dist/cli/shared/runtime-execution.js.map +1 -0
  521. package/dist/cli/shared/workspace-artifact-lock.d.ts +17 -0
  522. package/dist/cli/shared/workspace-artifact-lock.d.ts.map +1 -0
  523. package/dist/cli/shared/workspace-artifact-lock.js +37 -0
  524. package/dist/cli/shared/workspace-artifact-lock.js.map +1 -0
  525. package/dist/cli/shared/workspace-artifact-store.d.ts +14 -0
  526. package/dist/cli/shared/workspace-artifact-store.d.ts.map +1 -0
  527. package/dist/cli/shared/workspace-artifact-store.js +53 -0
  528. package/dist/cli/shared/workspace-artifact-store.js.map +1 -0
  529. package/dist/cli/workers/doks-worker-runtime.d.ts +239 -0
  530. package/dist/cli/workers/doks-worker-runtime.d.ts.map +1 -0
  531. package/dist/cli/workers/doks-worker-runtime.js +410 -0
  532. package/dist/cli/workers/doks-worker-runtime.js.map +1 -0
  533. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts +28 -0
  534. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts.map +1 -0
  535. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js +28 -0
  536. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js.map +1 -0
  537. package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts +6 -0
  538. package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts.map +1 -0
  539. package/dist/cli/workers/infra-workers-apply.cli-command.impl.js +75 -0
  540. package/dist/cli/workers/infra-workers-apply.cli-command.impl.js.map +1 -0
  541. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts +31 -0
  542. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts.map +1 -0
  543. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js +32 -0
  544. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js.map +1 -0
  545. package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts +6 -0
  546. package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts.map +1 -0
  547. package/dist/cli/workers/infra-workers-build.cli-command.impl.js +67 -0
  548. package/dist/cli/workers/infra-workers-build.cli-command.impl.js.map +1 -0
  549. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts +48 -0
  550. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts.map +1 -0
  551. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js +60 -0
  552. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js.map +1 -0
  553. package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts +6 -0
  554. package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts.map +1 -0
  555. package/dist/cli/workers/infra-workers-logs.cli-command.impl.js +74 -0
  556. package/dist/cli/workers/infra-workers-logs.cli-command.impl.js.map +1 -0
  557. package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts +12 -0
  558. package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts.map +1 -0
  559. package/dist/cli/workers/infra-workers.cli-group.descriptor.js +12 -0
  560. package/dist/cli/workers/infra-workers.cli-group.descriptor.js.map +1 -0
  561. package/dist/config-loader.d.ts +60 -13
  562. package/dist/config-loader.d.ts.map +1 -1
  563. package/dist/config-loader.js +371 -104
  564. package/dist/config-loader.js.map +1 -1
  565. package/dist/declared-provider.d.ts +27 -0
  566. package/dist/declared-provider.d.ts.map +1 -0
  567. package/dist/declared-provider.js +46 -0
  568. package/dist/declared-provider.js.map +1 -0
  569. package/dist/deployment-collisions.d.ts +55 -0
  570. package/dist/deployment-collisions.d.ts.map +1 -0
  571. package/dist/deployment-collisions.js +70 -0
  572. package/dist/deployment-collisions.js.map +1 -0
  573. package/dist/deployment-environment.d.ts +57 -0
  574. package/dist/deployment-environment.d.ts.map +1 -0
  575. package/dist/deployment-environment.js +198 -0
  576. package/dist/deployment-environment.js.map +1 -0
  577. package/dist/deployment-settings.d.ts +27 -0
  578. package/dist/deployment-settings.d.ts.map +1 -0
  579. package/dist/deployment-settings.js +52 -0
  580. package/dist/deployment-settings.js.map +1 -0
  581. package/dist/deployment.config.descriptor.d.ts +59 -0
  582. package/dist/deployment.config.descriptor.d.ts.map +1 -0
  583. package/dist/deployment.config.descriptor.js +54 -0
  584. package/dist/deployment.config.descriptor.js.map +1 -0
  585. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts +29 -0
  586. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts.map +1 -0
  587. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js +35 -0
  588. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js.map +1 -0
  589. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts +12 -0
  590. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts.map +1 -0
  591. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js +12 -0
  592. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js.map +1 -0
  593. package/dist/index.d.ts +11 -3
  594. package/dist/index.d.ts.map +1 -1
  595. package/dist/index.js +11 -3
  596. package/dist/index.js.map +1 -1
  597. package/dist/infra-deploy.plugin.d.ts +2 -2
  598. package/dist/infra-deploy.plugin.d.ts.map +1 -1
  599. package/dist/infra-deploy.plugin.js +65 -20
  600. package/dist/infra-deploy.plugin.js.map +1 -1
  601. package/dist/logger.d.ts +10 -0
  602. package/dist/logger.d.ts.map +1 -0
  603. package/dist/logger.js +11 -0
  604. package/dist/logger.js.map +1 -0
  605. package/dist/migrations/migrate-workspace.d.ts +21 -0
  606. package/dist/migrations/migrate-workspace.d.ts.map +1 -0
  607. package/dist/migrations/migrate-workspace.js +83 -0
  608. package/dist/migrations/migrate-workspace.js.map +1 -0
  609. package/dist/migrations/run-migrate.d.ts +15 -0
  610. package/dist/migrations/run-migrate.d.ts.map +1 -0
  611. package/dist/migrations/run-migrate.js +314 -0
  612. package/dist/migrations/run-migrate.js.map +1 -0
  613. package/dist/regenerate.d.ts +52 -30
  614. package/dist/regenerate.d.ts.map +1 -1
  615. package/dist/regenerate.js +176 -148
  616. package/dist/regenerate.js.map +1 -1
  617. package/dist/runtime-execution.d.ts +5 -0
  618. package/dist/runtime-execution.d.ts.map +1 -0
  619. package/dist/runtime-execution.js +12 -0
  620. package/dist/runtime-execution.js.map +1 -0
  621. package/dist/schemas/migrate.d.ts +110 -0
  622. package/dist/schemas/migrate.d.ts.map +1 -0
  623. package/dist/schemas/migrate.js +55 -0
  624. package/dist/schemas/migrate.js.map +1 -0
  625. package/dist/schemas/proof-registry.d.ts +25 -0
  626. package/dist/schemas/proof-registry.d.ts.map +1 -0
  627. package/dist/schemas/proof-registry.js +24 -0
  628. package/dist/schemas/proof-registry.js.map +1 -0
  629. package/dist/schemas/release-grants.d.ts +7 -0
  630. package/dist/schemas/release-grants.d.ts.map +1 -0
  631. package/dist/schemas/release-grants.js +6 -0
  632. package/dist/schemas/release-grants.js.map +1 -0
  633. package/dist/schemas/release-jobs.d.ts +444 -0
  634. package/dist/schemas/release-jobs.d.ts.map +1 -0
  635. package/dist/schemas/release-jobs.js +204 -0
  636. package/dist/schemas/release-jobs.js.map +1 -0
  637. package/dist/schemas/service-release.d.ts +15 -0
  638. package/dist/schemas/service-release.d.ts.map +1 -0
  639. package/dist/schemas/service-release.js +13 -0
  640. package/dist/schemas/service-release.js.map +1 -0
  641. package/dist/schemas/worker-logs.d.ts +42 -0
  642. package/dist/schemas/worker-logs.d.ts.map +1 -0
  643. package/dist/schemas/worker-logs.js +29 -0
  644. package/dist/schemas/worker-logs.js.map +1 -0
  645. package/dist/storage/deployment-runs.schema.d.ts +199 -0
  646. package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
  647. package/dist/storage/deployment-runs.schema.js +61 -0
  648. package/dist/storage/deployment-runs.schema.js.map +1 -0
  649. package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
  650. package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
  651. package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
  652. package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
  653. package/package.json +107 -38
  654. package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
  655. package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
  656. package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
  657. package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
  658. package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
  659. package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
  660. package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
  661. package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
  662. package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
  663. package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
  664. package/src/cli/infra.cli-group.descriptor.ts +0 -11
  665. package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
  666. package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
  667. package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
  668. package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
  669. package/src/cli/logs/stream-worker-tail.ts +0 -202
  670. package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
  671. package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
  672. package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
  673. package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
  674. package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
  675. package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
  676. package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
  677. package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
  678. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
  679. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
  680. package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
  681. package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
  682. package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
  683. package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
  684. package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
  685. package/src/cli/shared/discover-deployments.ts +0 -127
  686. package/src/config-loader.ts +0 -179
  687. package/src/index.ts +0 -11
  688. package/src/infra-deploy.plugin.ts +0 -83
  689. package/src/regenerate.ts +0 -230
@@ -0,0 +1 @@
1
+ {"version":3,"file":"declared-provider.js","sourceRoot":"","sources":["../src/declared-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAgD,MAAM,qBAAqB,CAAC;AAQ9H,wFAAwF;AACxF,SAAS,gBAAgB,CAAC,OAA8C,EAAE,QAAgB;IACzF,OAAO,OAAO,CAAC,OAAO,CAAC,2BAA2B,CAAC;WAC/C,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1F,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,iCAAiC,CACtD,OAAiE,EACjE,UAAsC,EACtC,MAAc;IAEd,MAAM,SAAS,GAAG,UAAU,CAAC,cAAc,CAAC;IAC5C,IAAI,SAAS,KAAK,SAAS,IAAI,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO;IACtF,MAAM,cAAc,GAAG,MAAM,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC/D,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAC,mBAAmB,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;IACjG,IAAI,CAAC,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/D,MAAM,OAAO,GAA2B;YACvC,MAAM,EAAE,uCAAuC;YAC/C,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,SAAS,EAAE;YACrD,YAAY,EAAE,qCAAqC,SAAS,OAAO,MAAM,GAAG;SAC5E,CAAC;QACF,IAAI,OAAO,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK;YAAE,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC1E,MAAM,IAAI,eAAe,CAAC,+EAA+E,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACpI,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,OAAO;QAAE,MAAM,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAClF,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Deployment identity-collision detection.
3
+ *
4
+ * Two managed `deployment.config.ts` files that render the SAME Cloudflare Worker
5
+ * script name (or share an `appId`) are a deploy footgun. `vibes infra deploy
6
+ * run` is PATH-based: it loads whatever config sits at the path you point it at
7
+ * and pushes a worker by the name that config renders. If two configs render one
8
+ * name, deploying either SILENTLY clobbers the other's live image, bindings, and
9
+ * Durable-Object migrations on the single Cloudflare worker of that name — and
10
+ * nothing in the deploy path asserts uniqueness.
11
+ *
12
+ * This module is that assertion. It is pure (no IO) so it can be shared by:
13
+ * - the regen orchestrator (`regenerateAll`), which hard-errors a collision at
14
+ * regen/deploy time, and
15
+ * - the `check:deployment-collisions` gate wired into `bun run check`, which
16
+ * fails the build before a duplicate can ever reach deploy.
17
+ *
18
+ * The canonical home for `vibes-forge-ci` is `apps/forge-ci-worker`; the
19
+ * duplicate `workers/forge-ci` that motivated this guard was deleted. See
20
+ * `apps/forge-ci-worker/deployment.config.ts`.
21
+ */
22
+ /** The minimal shape needed to detect a collision. */
23
+ export interface DeploymentIdentity {
24
+ /** The deployment `appId` (from `createAppDeployment`). */
25
+ appId: string;
26
+ /** The dir holding the `deployment.config.ts` (absolute or repo-relative). */
27
+ appDir: string;
28
+ /**
29
+ * The provider's name for the deployed unit (e.g. a Worker script name).
30
+ * `null` / absent when the module names none — those cannot collide on a
31
+ * unit, so they are ignored for the `unitName` key (but still grouped by
32
+ * `appId`).
33
+ */
34
+ unitName?: string | null;
35
+ }
36
+ export type CollisionKind = 'unitName' | 'appId';
37
+ export interface DeploymentCollision {
38
+ kind: CollisionKind;
39
+ /** The shared value — the duplicated worker name or appId. */
40
+ key: string;
41
+ /** Every identity that maps to `key`, sorted by `appDir` for stable output. */
42
+ members: DeploymentIdentity[];
43
+ }
44
+ /**
45
+ * Group the identities by rendered worker name and by appId; return every group
46
+ * with more than one member. Pure — performs no IO.
47
+ *
48
+ * Identities with a null/empty `unitName` are excluded from the `unitName`
49
+ * grouping (a non-worker deployment can't clobber a worker), but every identity
50
+ * participates in the `appId` grouping.
51
+ */
52
+ export declare function detectDeploymentCollisions(items: readonly DeploymentIdentity[]): DeploymentCollision[];
53
+ /** Render one collision as a single-line, human-readable error message. */
54
+ export declare function formatCollision(collision: DeploymentCollision): string;
55
+ //# sourceMappingURL=deployment-collisions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-collisions.d.ts","sourceRoot":"","sources":["../src/deployment-collisions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,sDAAsD;AACtD,MAAM,WAAW,kBAAkB;IAClC,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,OAAO,CAAC;AAEjD,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,aAAa,CAAC;IACpB,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;IACZ,+EAA+E;IAC/E,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACzC,KAAK,EAAE,SAAS,kBAAkB,EAAE,GAClC,mBAAmB,EAAE,CA2BvB;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,SAAS,EAAE,mBAAmB,GAAG,MAAM,CAStE"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Deployment identity-collision detection.
3
+ *
4
+ * Two managed `deployment.config.ts` files that render the SAME Cloudflare Worker
5
+ * script name (or share an `appId`) are a deploy footgun. `vibes infra deploy
6
+ * run` is PATH-based: it loads whatever config sits at the path you point it at
7
+ * and pushes a worker by the name that config renders. If two configs render one
8
+ * name, deploying either SILENTLY clobbers the other's live image, bindings, and
9
+ * Durable-Object migrations on the single Cloudflare worker of that name — and
10
+ * nothing in the deploy path asserts uniqueness.
11
+ *
12
+ * This module is that assertion. It is pure (no IO) so it can be shared by:
13
+ * - the regen orchestrator (`regenerateAll`), which hard-errors a collision at
14
+ * regen/deploy time, and
15
+ * - the `check:deployment-collisions` gate wired into `bun run check`, which
16
+ * fails the build before a duplicate can ever reach deploy.
17
+ *
18
+ * The canonical home for `vibes-forge-ci` is `apps/forge-ci-worker`; the
19
+ * duplicate `workers/forge-ci` that motivated this guard was deleted. See
20
+ * `apps/forge-ci-worker/deployment.config.ts`.
21
+ */
22
+ /**
23
+ * Group the identities by rendered worker name and by appId; return every group
24
+ * with more than one member. Pure — performs no IO.
25
+ *
26
+ * Identities with a null/empty `unitName` are excluded from the `unitName`
27
+ * grouping (a non-worker deployment can't clobber a worker), but every identity
28
+ * participates in the `appId` grouping.
29
+ */
30
+ export function detectDeploymentCollisions(items) {
31
+ const collisions = [];
32
+ const keyers = [
33
+ ['unitName', (i) => i.unitName],
34
+ ['appId', (i) => i.appId]
35
+ ];
36
+ for (const [kind, keyOf] of keyers) {
37
+ const groups = new Map();
38
+ for (const item of items) {
39
+ const raw = keyOf(item);
40
+ const key = (raw ?? '').trim();
41
+ if (!key)
42
+ continue;
43
+ const list = groups.get(key);
44
+ if (list)
45
+ list.push(item);
46
+ else
47
+ groups.set(key, [item]);
48
+ }
49
+ for (const [key, members] of groups) {
50
+ if (members.length > 1) {
51
+ collisions.push({
52
+ kind,
53
+ key,
54
+ members: [...members].sort((a, b) => a.appDir.localeCompare(b.appDir))
55
+ });
56
+ }
57
+ }
58
+ }
59
+ return collisions;
60
+ }
61
+ /** Render one collision as a single-line, human-readable error message. */
62
+ export function formatCollision(collision) {
63
+ const where = collision.members.map((m) => m.appDir).join(', ');
64
+ return (`Duplicate ${collision.kind} "${collision.key}": ${collision.members.length} managed ` +
65
+ `deployments map to it (${where}). Two configs cannot target one Cloudflare ` +
66
+ `worker — \`vibes infra deploy run\` is path-based and would clobber the live ` +
67
+ `worker's image/bindings/migrations. Give each a distinct ${collision.kind}, or ` +
68
+ `delete the redundant config.`);
69
+ }
70
+ //# sourceMappingURL=deployment-collisions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-collisions.js","sourceRoot":"","sources":["../src/deployment-collisions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AA2BH;;;;;;;GAOG;AACH,MAAM,UAAU,0BAA0B,CACzC,KAAoC;IAEpC,MAAM,UAAU,GAA0B,EAAE,CAAC;IAC7C,MAAM,MAAM,GAAiF;QAC5F,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC/B,CAAC,OAAO,EAAE,CAAC,CAA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AAI,CAAC,IAAI,CAAC,CAAC;IAChE,OAAO,CACN,aAAa,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,MAAM,WAAW;QACtF,0BAA0B,KAAK,8CAA8C;QAC7E,+EAA+E;QAC/E,4DAA4D,SAAS,CAAC,IAAI,OAAO;QACjF,8BAA8B,CAC9B,CAAC;AACH,CAAC"}
@@ -0,0 +1,57 @@
1
+ import type { AppDeployment } from '@vibesdotdev/infra-core/deployment';
2
+ import type { DeploymentEnvironmentFacts } from '@vibesdotdev/infra-core/kinds';
3
+ export { requireDeploymentProviderConfig, resolveDeploymentProviderConfig, selectDeploymentEnvironment, type ResolvedProviderConfig } from '@vibesdotdev/infra-core/deployment-environment';
4
+ export type DeploymentMutationSurface = 'deploy-run' | 'preview-create' | 'local-only';
5
+ export type DeploymentRouteOwnership = 'production' | 'selected-environment' | 'preview' | 'none' | 'unowned';
6
+ export type DeploymentSecretCapability = 'secrets-store' | 'requirements-only' | 'preview-runtime' | 'local-runtime' | 'unavailable';
7
+ export type RuntimeEnvironmentDescriptor = {
8
+ id: string;
9
+ apiUrl?: string;
10
+ apps?: Record<string, string>;
11
+ };
12
+ export type ResolvedDeploymentRoute = {
13
+ pattern: string;
14
+ ownership: DeploymentRouteOwnership;
15
+ };
16
+ export type DeploymentEnvironmentResolution = {
17
+ environment: string;
18
+ runtimeDescriptorId: string | null;
19
+ selectedOrigin?: string | null;
20
+ providerEnvironment: string | null;
21
+ mutationSurface: DeploymentMutationSurface;
22
+ providerMutationAllowed: boolean;
23
+ routesInherited: boolean;
24
+ routes: ResolvedDeploymentRoute[];
25
+ secretCapability: DeploymentSecretCapability;
26
+ requiredSecrets: string[];
27
+ optionalSecrets: string[];
28
+ boundSecrets: string[];
29
+ violations: string[];
30
+ };
31
+ export type DeploymentEnvironmentRunRefusal = {
32
+ code: 'INVALID_INPUT' | 'UNAVAILABLE';
33
+ message: string;
34
+ recoveryHint?: string;
35
+ };
36
+ /** Return the fail-closed reason for an `infra deploy run`, if any. */
37
+ export declare function deploymentEnvironmentRunRefusal(resolution: DeploymentEnvironmentResolution, selectors?: {
38
+ environment?: string;
39
+ providerEnvironment?: string;
40
+ }): DeploymentEnvironmentRunRefusal | null;
41
+ /**
42
+ * Resolve the selected deployment environment from the runtime-owned
43
+ * `config/environment` catalog plus the provider-generated projection.
44
+ *
45
+ * This function never reads secret values. It reports requirement and binding
46
+ * names only, so readiness and dry-run can explain capability without exposing
47
+ * credentials.
48
+ */
49
+ export declare function resolveDeploymentEnvironment(input: {
50
+ deployment: AppDeployment;
51
+ /** What the deployment's provider reports for the selected environment. */
52
+ facts: DeploymentEnvironmentFacts;
53
+ environment?: string;
54
+ runtimeEnvironments?: readonly RuntimeEnvironmentDescriptor[];
55
+ }): DeploymentEnvironmentResolution;
56
+ export declare function formatDeploymentEnvironmentResolution(resolution: DeploymentEnvironmentResolution): string;
57
+ //# sourceMappingURL=deployment-environment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-environment.d.ts","sourceRoot":"","sources":["../src/deployment-environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAIhF,OAAO,EACN,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,KAAK,sBAAsB,EAC3B,MAAM,gDAAgD,CAAC;AAExD,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG,gBAAgB,GAAG,YAAY,CAAC;AACvF,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG,sBAAsB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAC9G,MAAM,MAAM,0BAA0B,GACnC,eAAe,GACf,mBAAmB,GACnB,iBAAiB,GACjB,eAAe,GACf,aAAa,CAAC;AAEjB,MAAM,MAAM,4BAA4B,GAAG;IAC1C,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A2E;IAC3E,KAAK,EAAE,0BAA0B,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,SAAS,4BAA4B,EAAE,CAAC;CAC9D,GAAG,+BAA+B,CAiIlC;AAED,wBAAgB,qCAAqC,CACpD,UAAU,EAAE,+BAA+B,GACzC,MAAM,CAiBR"}
@@ -0,0 +1,198 @@
1
+ import { normalizeDeploymentEnvironment as normalizeEnvironment } from '@vibesdotdev/infra-core/deployment-environment';
2
+ // The environment and provider-block selection is infra-core's; re-exported for this package's callers.
3
+ export { requireDeploymentProviderConfig, resolveDeploymentProviderConfig, selectDeploymentEnvironment } from '@vibesdotdev/infra-core/deployment-environment';
4
+ /** Return the fail-closed reason for an `infra deploy run`, if any. */
5
+ export function deploymentEnvironmentRunRefusal(resolution, selectors = {}) {
6
+ if (selectors.environment && selectors.providerEnvironment) {
7
+ const requestedEnvironment = normalizeEnvironment(selectors.environment);
8
+ const requestedProviderEnvironment = normalizeEnvironment(selectors.providerEnvironment);
9
+ if (requestedEnvironment !== requestedProviderEnvironment) {
10
+ return {
11
+ code: 'INVALID_INPUT',
12
+ message: `Conflicting environment selectors: --environment ${selectors.environment} and --wrangler-env ${selectors.providerEnvironment} select different semantic environments.`
13
+ };
14
+ }
15
+ }
16
+ if (resolution.violations.length > 0) {
17
+ return {
18
+ code: 'UNAVAILABLE',
19
+ message: `Refusing deploy for unsafe environment "${resolution.environment}": ${resolution.violations.join(' ')}`,
20
+ recoveryHint: 'Repair the runtime environment descriptor or generated provider projection; do not bypass the environment gate.'
21
+ };
22
+ }
23
+ if (!resolution.providerMutationAllowed) {
24
+ return {
25
+ code: 'INVALID_INPUT',
26
+ message: `Environment "${resolution.environment}" is ${resolution.mutationSurface}, not an infra deploy run target.`,
27
+ recoveryHint: resolution.mutationSurface === 'preview-create'
28
+ ? 'Preview stand-up is unavailable through vibes infra deploy today (no dedicated preview CLI). Keep originKind preview as the signal; reuse config/environment + infra/web-app|worker|edge-tls when Product lands preview under the infra/CI family. Do not invent a preview kind id.'
29
+ : 'Use the local development runtime; local is not a provider deployment target.'
30
+ };
31
+ }
32
+ return null;
33
+ }
34
+ function hostname(value) {
35
+ const candidate = value.includes('://') ? value : `https://${value}`;
36
+ if (!URL.canParse(candidate))
37
+ return null;
38
+ return new URL(candidate).hostname.toLowerCase();
39
+ }
40
+ function selectedRuntimeDescriptor(environment, descriptors) {
41
+ return descriptors.find((descriptor) => descriptor.id === environment);
42
+ }
43
+ function selectedEnvironmentOrigin(descriptor, appId) {
44
+ return descriptor?.apps?.[appId] ?? (appId === 'home' ? descriptor?.apiUrl : undefined) ?? null;
45
+ }
46
+ function routeOwnership(input) {
47
+ const routeHost = hostname(input.pattern);
48
+ if (!routeHost)
49
+ return 'unowned';
50
+ if (input.productionHosts.has(routeHost))
51
+ return 'production';
52
+ if (input.selectedHost === routeHost)
53
+ return 'selected-environment';
54
+ if (input.environment === 'preview')
55
+ return 'preview';
56
+ return 'unowned';
57
+ }
58
+ /**
59
+ * Resolve the selected deployment environment from the runtime-owned
60
+ * `config/environment` catalog plus the provider-generated projection.
61
+ *
62
+ * This function never reads secret values. It reports requirement and binding
63
+ * names only, so readiness and dry-run can explain capability without exposing
64
+ * credentials.
65
+ */
66
+ export function resolveDeploymentEnvironment(input) {
67
+ const environment = normalizeEnvironment(input.environment);
68
+ const facts = input.facts;
69
+ const descriptors = input.runtimeEnvironments ?? [];
70
+ const runtimeDescriptor = selectedRuntimeDescriptor(environment, descriptors);
71
+ const selectedOrigin = selectedEnvironmentOrigin(runtimeDescriptor, input.deployment.appId);
72
+ const selectedHost = selectedOrigin ? hostname(selectedOrigin) : null;
73
+ const productionHosts = new Set(input.deployment.origins
74
+ .filter((origin) => origin.kind === 'primary' || origin.kind === 'redirect')
75
+ .map((origin) => hostname(origin.hostname))
76
+ .filter((value) => Boolean(value)));
77
+ const routeValues = facts.routes;
78
+ const routes = routeValues.map((pattern) => ({
79
+ pattern,
80
+ ownership: routeOwnership({ pattern, productionHosts, selectedHost, environment })
81
+ }));
82
+ const requiredSecrets = input.deployment.env
83
+ .filter((entry) => entry.secret && entry.required !== false)
84
+ .map((entry) => entry.name)
85
+ .sort((left, right) => left.localeCompare(right));
86
+ const optionalSecrets = input.deployment.env
87
+ .filter((entry) => entry.secret && entry.required === false)
88
+ .map((entry) => entry.name)
89
+ .sort((left, right) => left.localeCompare(right));
90
+ const boundSecrets = [...facts.boundSecrets].sort((left, right) => left.localeCompare(right));
91
+ const declaredRequirements = facts.declaredRequirements;
92
+ const mutationSurface = environment === 'preview'
93
+ ? 'preview-create'
94
+ : environment === 'local'
95
+ ? 'local-only'
96
+ : 'deploy-run';
97
+ let secretCapability;
98
+ if (environment === 'preview')
99
+ secretCapability = 'preview-runtime';
100
+ else if (environment === 'local')
101
+ secretCapability = 'local-runtime';
102
+ else if (boundSecrets.length > 0)
103
+ secretCapability = 'secrets-store';
104
+ else if (declaredRequirements.length > 0)
105
+ secretCapability = 'requirements-only';
106
+ else if (requiredSecrets.length > 0)
107
+ secretCapability = 'unavailable';
108
+ else
109
+ secretCapability = 'requirements-only';
110
+ const violations = [];
111
+ if (facts.generated && !facts.resolved) {
112
+ violations.push('Provider-generated configuration could not be resolved.');
113
+ }
114
+ if (environment !== 'development' && environment !== 'preview' && !runtimeDescriptor) {
115
+ violations.push(`Runtime config/environment has no explicit "${environment}" descriptor.`);
116
+ }
117
+ if (environment === 'production') {
118
+ const expectedRoutes = [...productionHosts].sort();
119
+ const actualRoutes = routeValues
120
+ .map((route) => hostname(route))
121
+ .filter((value) => Boolean(value))
122
+ .sort();
123
+ if (expectedRoutes.length !== actualRoutes.length ||
124
+ expectedRoutes.some((route, index) => route !== actualRoutes[index])) {
125
+ violations.push('Production routes do not exactly match deployment.config.ts origins.');
126
+ }
127
+ if (selectedHost) {
128
+ const primary = input.deployment.origins.find((origin) => origin.kind === 'primary');
129
+ if (!primary || hostname(primary.hostname) !== selectedHost) {
130
+ violations.push(`Runtime environment "${environment}" does not own the deployment primary origin.`);
131
+ }
132
+ }
133
+ }
134
+ else if (facts.generated && environment !== 'local' && environment !== 'preview') {
135
+ if (!facts.explicitEnvironment) {
136
+ violations.push(`Provider projection has no explicit "${facts.providerEnvironment}" environment.`);
137
+ }
138
+ if (facts.routesInherited) {
139
+ violations.push(`Environment "${environment}" inherits top-level routes instead of declaring its own route policy.`);
140
+ }
141
+ for (const route of routes) {
142
+ if (route.ownership === 'production') {
143
+ violations.push(`Environment "${environment}" resolves production-owned route "${route.pattern}".`);
144
+ }
145
+ else if (route.ownership === 'unowned') {
146
+ violations.push(`Environment "${environment}" resolves unowned route "${route.pattern}".`);
147
+ }
148
+ }
149
+ }
150
+ if (environment !== 'local' && environment !== 'preview') {
151
+ // A required secret is satisfied ONLY by an actual binding in the projected
152
+ // config — never by merely being declared in `secrets.required`. Counting a
153
+ // declaration as satisfaction let a credential-resolution failure regenerate a
154
+ // config with zero bindings yet still pass readiness, stripping live
155
+ // secret-store bindings on deploy. `requirements-only` is a local
156
+ // render/equivalence artifact, not a production capability for required
157
+ // secrets (red-team fleet scan: no first-party app deploys a nonempty
158
+ // required-secret set via requirements-only).
159
+ const bound = new Set(boundSecrets);
160
+ const missingRequired = requiredSecrets.filter((name) => !bound.has(name));
161
+ if (missingRequired.length > 0) {
162
+ violations.push(`Environment "${environment}" has no deploy binding for required secret names: ${missingRequired.join(', ')}.`);
163
+ }
164
+ }
165
+ return {
166
+ environment,
167
+ runtimeDescriptorId: runtimeDescriptor?.id ?? null,
168
+ selectedOrigin,
169
+ providerEnvironment: facts.providerEnvironment,
170
+ mutationSurface,
171
+ providerMutationAllowed: mutationSurface === 'deploy-run',
172
+ routesInherited: facts.routesInherited,
173
+ routes,
174
+ secretCapability,
175
+ requiredSecrets,
176
+ optionalSecrets,
177
+ boundSecrets,
178
+ violations
179
+ };
180
+ }
181
+ export function formatDeploymentEnvironmentResolution(resolution) {
182
+ const routes = resolution.routes.length === 0
183
+ ? 'none'
184
+ : resolution.routes
185
+ .map((route) => `${route.pattern} (${route.ownership})`)
186
+ .join(', ');
187
+ return [
188
+ `selected=${resolution.environment}`,
189
+ `runtime=${resolution.runtimeDescriptorId ?? 'generated-only'}`,
190
+ `provider-env=${resolution.providerEnvironment ?? 'top-level'}`,
191
+ `surface=${resolution.mutationSurface}`,
192
+ `routes=${routes}`,
193
+ `secrets=${resolution.secretCapability}`,
194
+ `required=${resolution.requiredSecrets.length}`,
195
+ `optional=${resolution.optionalSecrets.length}`
196
+ ].join(' ');
197
+ }
198
+ //# sourceMappingURL=deployment-environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-environment.js","sourceRoot":"","sources":["../src/deployment-environment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,IAAI,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAExH,wGAAwG;AACxG,OAAO,EACN,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAE3B,MAAM,gDAAgD,CAAC;AA4CxD,uEAAuE;AACvE,MAAM,UAAU,+BAA+B,CAC9C,UAA2C,EAC3C,YAAoE,EAAE;IAEtE,IAAI,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,mBAAmB,EAAE,CAAC;QAC5D,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACzE,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACzF,IAAI,oBAAoB,KAAK,4BAA4B,EAAE,CAAC;YAC3D,OAAO;gBACN,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE,oDAAoD,SAAS,CAAC,WAAW,uBAAuB,SAAS,CAAC,mBAAmB,0CAA0C;aAChL,CAAC;QACH,CAAC;IACF,CAAC;IACD,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtC,OAAO;YACN,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,2CAA2C,UA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OAAO;QACN,YAAY,UAAU,CAAC,WAAW,EAAE;QACpC,WAAW,UAAU,CAAC,mBAAmB,IAAI,gBAAgB,EAAE;QAC/D,gBAAgB,UAAU,CAAC,mBAAmB,IAAI,WAAW,EAAE;QAC/D,WAAW,UAAU,CAAC,eAAe,EAAE;QACvC,UAAU,MAAM,EAAE;QAClB,WAAW,UAAU,CAAC,gBAAgB,EAAE;QACxC,YAAY,UAAU,CAAC,eAAe,CAAC,MAAM,EAAE;QAC/C,YAAY,UAAU,CAAC,eAAe,CAAC,MAAM,EAAE;KAC/C,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACb,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * A unit's `infra.deployment` settings, read through the config owner. A
3
+ * runtime that composes no `infra.deployment` manifest (or no config owner), or
4
+ * an app directory outside the bound workspace (the operator names it), has no
5
+ * unit config to read: the manifest's declared defaults apply, which is the
6
+ * migration path (the unit's `deployment.config.ts` module).
7
+ */
8
+ import { type RuntimeRef } from '@vibesdotdev/kernel';
9
+ import type { ConfigLoadHost } from './config-loader.ts';
10
+ import { type InfraDeploymentConfig } from './deployment.config.descriptor.ts';
11
+ export declare function readDeploymentSettings(runtime: RuntimeRef, appDir: string): Promise<InfraDeploymentConfig>;
12
+ /** The unit's own config file: where a declared (data) deployment or non-deployable marker lives. */
13
+ export declare const UNIT_CONFIG_FILE = "vibes.config.ts";
14
+ /** The unit's deployment module: the `infra.deployment` `module` setting (default `deployment.config.ts`), relative to the app directory. */
15
+ export declare function findConfigFile(host: ConfigLoadHost, appDir: string, module?: string): Promise<string>;
16
+ /**
17
+ * The one answer to "where does this unit's deployment live": the unit's
18
+ * `vibes.config.ts` when it declares a deployment or non-deployable marker as
19
+ * data, else the declared module. Null when the unit declares no deployment.
20
+ */
21
+ export declare function locateDeploymentSource(runtime: RuntimeRef, host: ConfigLoadHost, appDir: string): Promise<{
22
+ settings: InfraDeploymentConfig;
23
+ configPath: string | null;
24
+ }>;
25
+ /** True when the unit declares a deployment (data, non-deployable marker, or an existing module). */
26
+ export declare function declaresDeployment(runtime: RuntimeRef, host: ConfigLoadHost, appDir: string): Promise<boolean>;
27
+ //# sourceMappingURL=deployment-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-settings.d.ts","sourceRoot":"","sources":["../src/deployment-settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAA2C,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI/F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAmB,EAA0D,KAAK,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAMnJ,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAQhH;AAED,qGAAqG;AACrG,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAElD,6IAA6I;AAC7I,wBAAsB,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,MAAkC,GAAG,OAAO,CAAC,MAAM,CAAC,CAQtI;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,qBAAqB,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,CAO/K;AAED,qGAAqG;AACrG,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEpH"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * A unit's `infra.deployment` settings, read through the config owner. A
3
+ * runtime that composes no `infra.deployment` manifest (or no config owner), or
4
+ * an app directory outside the bound workspace (the operator names it), has no
5
+ * unit config to read: the manifest's declared defaults apply, which is the
6
+ * migration path (the unit's `deployment.config.ts` module).
7
+ */
8
+ import { CapabilityError } from '@vibesdotdev/kernel';
9
+ import { isWithinBoundWorkspace } from '@vibesdotdev/kernel/bootstrap/unit-config';
10
+ import { getVibesClient } from '@vibesdotdev/kernel/client';
11
+ import descriptor, { DEFAULT_DEPLOYMENT_MODULE, InfraDeploymentConfigSchema } from "./deployment.config.descriptor.js";
12
+ function manifestComposed(runtime) {
13
+ return runtime.hasKind('config/manifest') && runtime.query('config/manifest').descriptors().some((candidate) => candidate.id === descriptor.id);
14
+ }
15
+ export async function readDeploymentSettings(runtime, appDir) {
16
+ const defaults = InfraDeploymentConfigSchema.parse({});
17
+ if (!manifestComposed(runtime) || !runtime.hasContext('runtime/workspace-path'))
18
+ return defaults;
19
+ // An app directory outside the bound workspace has no unit config to read (the owner's containment
20
+ // rule); every refusal of a read inside it, a config linking outside included, propagates.
21
+ if (!(await isWithinBoundWorkspace(runtime, appDir)))
22
+ return defaults;
23
+ const config = await getVibesClient('config', runtime);
24
+ return config.readUnit({ id: descriptor.id, schema: InfraDeploymentConfigSchema }, appDir);
25
+ }
26
+ /** The unit's own config file: where a declared (data) deployment or non-deployable marker lives. */
27
+ export const UNIT_CONFIG_FILE = 'vibes.config.ts';
28
+ /** The unit's deployment module: the `infra.deployment` `module` setting (default `deployment.config.ts`), relative to the app directory. */
29
+ export async function findConfigFile(host, appDir, module = DEFAULT_DEPLOYMENT_MODULE) {
30
+ const candidate = host.paths.isAbsolute(module) ? module : host.paths.join(appDir, module);
31
+ if (await host.files.exists(candidate))
32
+ return candidate;
33
+ throw new CapabilityError(`No deployment config found in ${appDir}. Expected the \`infra.deployment\` declaration in its vibes.config.ts, or the module ${module}.`, 'NOT_FOUND', { reason: 'deployment-config-missing', details: { appDir, module } });
34
+ }
35
+ /**
36
+ * The one answer to "where does this unit's deployment live": the unit's
37
+ * `vibes.config.ts` when it declares a deployment or non-deployable marker as
38
+ * data, else the declared module. Null when the unit declares no deployment.
39
+ */
40
+ export async function locateDeploymentSource(runtime, host, appDir) {
41
+ const settings = await readDeploymentSettings(runtime, appDir);
42
+ if (settings.webAppId !== undefined || settings.deployment !== undefined || settings.nonDeployable !== undefined) {
43
+ return { settings, configPath: host.paths.join(appDir, UNIT_CONFIG_FILE) };
44
+ }
45
+ const candidate = host.paths.isAbsolute(settings.module) ? settings.module : host.paths.join(appDir, settings.module);
46
+ return { settings, configPath: (await host.files.exists(candidate)) ? candidate : null };
47
+ }
48
+ /** True when the unit declares a deployment (data, non-deployable marker, or an existing module). */
49
+ export async function declaresDeployment(runtime, host, appDir) {
50
+ return (await locateDeploymentSource(runtime, host, appDir)).configPath !== null;
51
+ }
52
+ //# sourceMappingURL=deployment-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-settings.js","sourceRoot":"","sources":["../src/deployment-settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAA2C,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,UAAU,EAAE,EAAE,yBAAyB,EAAE,2BAA2B,EAA8B,MAAM,mCAAmC,CAAC;AAEnJ,SAAS,gBAAgB,CAAC,OAAmB;IAC5C,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,OAAO,CAAC,KAAK,CAAoB,iBAAiB,CAAC,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,UAAU,CAAC,EAAE,CAAC,CAAC;AACpK,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,OAAmB,EAAE,MAAc;IAC/E,MAAM,QAAQ,GAAG,2BAA2B,CAAC,KAAK,CAAC,EAAE,CAAC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OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,IAAI,QAAQ,CAAC,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,UAAU,KAAK,SAAS,IAAI,QAAQ,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QAClH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAAE,CAAC;IAC5E,CAAC;IACD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAC1F,CAAC;AAED,qGAAqG;AACrG,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,OAAmB,EAAE,IAAoB,EAAE,MAAc;IACjG,OAAO,CAAC,MAAM,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC;AAClF,CAAC"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * `infra.deployment` — how a unit (an app directory) is deployed, read through
3
+ * the config owner like every other setting: the unit's own `vibes.config.ts`
4
+ * under `config['infra.deployment']`, over the workspace value.
5
+ *
6
+ * A unit declares its deployment one of three ways:
7
+ * - `deployment`: the AppDeployment as data (no code). Nothing is imported.
8
+ * - `nonDeployable`: the unit is deliberately not deployable, with the reason.
9
+ * - neither: its deployment lives in a module (`module`, default
10
+ * `deployment.config.ts` — the declared migration path). A module is the only
11
+ * form that can carry code (`generateWranglerConfig`, the managed renderer),
12
+ * which JSON config values cannot; it is evaluated by this package's loader.
13
+ */
14
+ import * as z from 'zod/v4';
15
+ export declare const DEFAULT_DEPLOYMENT_MODULE: "deployment.config.ts";
16
+ export declare const InfraDeploymentConfigSchema: z.ZodObject<{
17
+ webAppId: z.ZodOptional<z.ZodString>;
18
+ module: z.ZodDefault<z.ZodString>;
19
+ deployment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>>;
20
+ nonDeployable: z.ZodOptional<z.ZodObject<{
21
+ reason: z.ZodString;
22
+ appId: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>;
25
+ export type InfraDeploymentConfig = z.infer<typeof InfraDeploymentConfigSchema>;
26
+ export declare const INFRA_DEPLOYMENT_CONFIG_MANIFEST_ID = "infra.deployment";
27
+ declare const descriptor: {
28
+ kind: "config/manifest";
29
+ id: string;
30
+ name: string;
31
+ namespace: string;
32
+ description: string;
33
+ schema: z.ZodObject<{
34
+ webAppId: z.ZodOptional<z.ZodString>;
35
+ module: z.ZodDefault<z.ZodString>;
36
+ deployment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>>;
37
+ nonDeployable: z.ZodOptional<z.ZodObject<{
38
+ reason: z.ZodString;
39
+ appId: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>;
42
+ scope: "project";
43
+ tier: "system";
44
+ storedLayer: "none";
45
+ allowedAdapters: string[];
46
+ fields: {
47
+ module: {
48
+ ui: {
49
+ label: string;
50
+ component: "input";
51
+ };
52
+ };
53
+ };
54
+ customTables: false;
55
+ version: number;
56
+ internal: false;
57
+ };
58
+ export default descriptor;
59
+ //# sourceMappingURL=deployment.config.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment.config.descriptor.d.ts","sourceRoot":"","sources":["../src/deployment.config.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,eAAO,MAAM,yBAAyB,EAAG,sBAA+B,CAAC;AAEzE,eAAO,MAAM,2BAA2B;;;;;;;;iBAgBtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,mCAAmC,qBAAqB,CAAC;AAEtE,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBoB,CAAC;AAErC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * `infra.deployment` — how a unit (an app directory) is deployed, read through
3
+ * the config owner like every other setting: the unit's own `vibes.config.ts`
4
+ * under `config['infra.deployment']`, over the workspace value.
5
+ *
6
+ * A unit declares its deployment one of three ways:
7
+ * - `deployment`: the AppDeployment as data (no code). Nothing is imported.
8
+ * - `nonDeployable`: the unit is deliberately not deployable, with the reason.
9
+ * - neither: its deployment lives in a module (`module`, default
10
+ * `deployment.config.ts` — the declared migration path). A module is the only
11
+ * form that can carry code (`generateWranglerConfig`, the managed renderer),
12
+ * which JSON config values cannot; it is evaluated by this package's loader.
13
+ */
14
+ import * as z from 'zod/v4';
15
+ import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
16
+ export const DEFAULT_DEPLOYMENT_MODULE = 'deployment.config.ts';
17
+ export const InfraDeploymentConfigSchema = z.object({
18
+ /** The canonical registered infra/web-app selected for this unit. */
19
+ webAppId: z.string().min(1).optional(),
20
+ /** The deployment module, relative to the unit: the migration path for deployments that carry code. */
21
+ module: z.string().min(1).default(DEFAULT_DEPLOYMENT_MODULE),
22
+ /** The AppDeployment as data (must carry `appId` and `provider`); declared, nothing is imported. */
23
+ deployment: z.record(z.string(), JsonValueSchema).optional(),
24
+ /** The unit is not deployable, and why. */
25
+ nonDeployable: z.object({ reason: z.string().min(1), appId: z.string().min(1).optional() }).optional()
26
+ }).superRefine((settings, issues) => {
27
+ if (settings.webAppId !== undefined && (settings.deployment !== undefined || settings.nonDeployable !== undefined || settings.module !== DEFAULT_DEPLOYMENT_MODULE)) {
28
+ issues.addIssue({ code: 'custom', path: ['webAppId'], message: 'A registered web app reference cannot be combined with another deployment declaration.' });
29
+ }
30
+ if (settings.deployment !== undefined && settings.nonDeployable !== undefined) {
31
+ issues.addIssue({ code: 'custom', path: ['nonDeployable'], message: 'A unit declares `deployment` or `nonDeployable`, not both.' });
32
+ }
33
+ });
34
+ export const INFRA_DEPLOYMENT_CONFIG_MANIFEST_ID = 'infra.deployment';
35
+ const descriptor = {
36
+ kind: 'config/manifest',
37
+ id: INFRA_DEPLOYMENT_CONFIG_MANIFEST_ID,
38
+ name: 'Infra deployment',
39
+ namespace: 'infra.deployment',
40
+ description: "How a unit deploys: its AppDeployment as data, a non-deployable marker with its reason, or the module (default deployment.config.ts) that holds a deployment carrying code.",
41
+ schema: InfraDeploymentConfigSchema,
42
+ scope: 'project',
43
+ tier: 'system',
44
+ storedLayer: 'none',
45
+ allowedAdapters: ['storage.json', 'storage.localdb'],
46
+ fields: {
47
+ module: { ui: { label: 'Deployment module', component: 'input' } }
48
+ },
49
+ customTables: false,
50
+ version: 1,
51
+ internal: false
52
+ };
53
+ export default descriptor;
54
+ //# sourceMappingURL=deployment.config.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment.config.descriptor.js","sourceRoot":"","sources":["../src/deployment.config.descriptor.ts"],"names":[],"mapp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