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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (662) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +79 -118
  3. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +48 -35
  4. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -1
  5. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +1 -1
  6. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -1
  7. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +2 -1
  8. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -1
  9. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +31 -21
  10. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -1
  11. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +26 -27
  12. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -1
  13. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +1 -1
  14. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -1
  15. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +2 -1
  16. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -1
  17. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +11 -11
  18. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -1
  19. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +19 -17
  20. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -1
  21. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +1 -1
  22. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -1
  23. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +2 -1
  24. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -1
  25. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +15 -14
  26. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -1
  27. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +8 -8
  28. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +1 -1
  29. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -1
  30. package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +24 -17
  31. package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -1
  32. package/dist/cli/audit/infra-audit.cli-command.descriptor.js +8 -3
  33. package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -1
  34. package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +164 -1
  35. package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -1
  36. package/dist/cli/audit/infra-audit.cli-command.impl.js +557 -76
  37. package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -1
  38. package/dist/cli/db/infra-db.cli-command.descriptor.d.ts +49 -0
  39. package/dist/cli/db/infra-db.cli-command.descriptor.d.ts.map +1 -0
  40. package/dist/cli/db/infra-db.cli-command.descriptor.js +60 -0
  41. package/dist/cli/db/infra-db.cli-command.descriptor.js.map +1 -0
  42. package/dist/cli/db/infra-db.cli-command.impl.d.ts +30 -0
  43. package/dist/cli/db/infra-db.cli-command.impl.d.ts.map +1 -0
  44. package/dist/cli/db/infra-db.cli-command.impl.js +167 -0
  45. package/dist/cli/db/infra-db.cli-command.impl.js.map +1 -0
  46. package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts +6 -0
  47. package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts.map +1 -0
  48. package/dist/cli/dns/infra-dns-activate.cli-command.impl.js +53 -0
  49. package/dist/cli/dns/infra-dns-activate.cli-command.impl.js.map +1 -0
  50. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts +41 -0
  51. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts.map +1 -0
  52. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js +50 -0
  53. package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js.map +1 -0
  54. package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts +12 -0
  55. package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts.map +1 -0
  56. package/dist/cli/dns/infra-dns-delete.cli-command.impl.js +70 -0
  57. package/dist/cli/dns/infra-dns-delete.cli-command.impl.js.map +1 -0
  58. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts +32 -0
  59. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts.map +1 -0
  60. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js +39 -0
  61. package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js.map +1 -0
  62. package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts +17 -0
  63. package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts.map +1 -0
  64. package/dist/cli/dns/infra-dns-list.cli-command.impl.js +66 -0
  65. package/dist/cli/dns/infra-dns-list.cli-command.impl.js.map +1 -0
  66. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts +58 -0
  67. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts.map +1 -0
  68. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js +72 -0
  69. package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js.map +1 -0
  70. package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts +14 -0
  71. package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts.map +1 -0
  72. package/dist/cli/dns/infra-dns-set.cli-command.impl.js +110 -0
  73. package/dist/cli/dns/infra-dns-set.cli-command.impl.js.map +1 -0
  74. package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts +41 -0
  75. package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts.map +1 -0
  76. package/dist/cli/dns/infra-dns.cli-group.descriptor.js +47 -0
  77. package/dist/cli/dns/infra-dns.cli-group.descriptor.js.map +1 -0
  78. package/dist/cli/dns/resolve-dns-provider.d.ts +24 -0
  79. package/dist/cli/dns/resolve-dns-provider.d.ts.map +1 -0
  80. package/dist/cli/dns/resolve-dns-provider.js +62 -0
  81. package/dist/cli/dns/resolve-dns-provider.js.map +1 -0
  82. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts +37 -0
  83. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts.map +1 -0
  84. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js +45 -0
  85. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js.map +1 -0
  86. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts +15 -0
  87. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts.map +1 -0
  88. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js +78 -0
  89. package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js.map +1 -0
  90. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts +29 -0
  91. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts.map +1 -0
  92. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js +35 -0
  93. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js.map +1 -0
  94. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts +19 -0
  95. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts.map +1 -0
  96. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js +73 -0
  97. package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js.map +1 -0
  98. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts +41 -0
  99. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts.map +1 -0
  100. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js +50 -0
  101. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js.map +1 -0
  102. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts +16 -0
  103. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts.map +1 -0
  104. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js +81 -0
  105. package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js.map +1 -0
  106. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts +40 -0
  107. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts.map +1 -0
  108. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js +49 -0
  109. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js.map +1 -0
  110. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts +14 -0
  111. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts.map +1 -0
  112. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js +78 -0
  113. package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js.map +1 -0
  114. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts +12 -0
  115. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts.map +1 -0
  116. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js +12 -0
  117. package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js.map +1 -0
  118. package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts +25 -0
  119. package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts.map +1 -0
  120. package/dist/cli/edge-tls/resolve-edge-tls-provider.js +74 -0
  121. package/dist/cli/edge-tls/resolve-edge-tls-provider.js.map +1 -0
  122. package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +8 -8
  123. package/dist/cli/infra-deploy.cli-group.descriptor.js +1 -1
  124. package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -1
  125. package/dist/cli/infra.cli-group.descriptor.d.ts +7 -7
  126. package/dist/cli/infra.cli-group.descriptor.js +1 -1
  127. package/dist/cli/infra.cli-group.descriptor.js.map +1 -1
  128. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts +26 -0
  129. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts.map +1 -0
  130. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js +18 -0
  131. package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js.map +1 -0
  132. package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts +18 -0
  133. package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts.map +1 -0
  134. package/dist/cli/inventory/infra-inventory.cli-command.impl.js +204 -0
  135. package/dist/cli/inventory/infra-inventory.cli-command.impl.js.map +1 -0
  136. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +40 -30
  137. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -1
  138. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +7 -3
  139. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -1
  140. package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +35 -1
  141. package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -1
  142. package/dist/cli/list/infra-deploy.list.cli-command.impl.js +202 -20
  143. package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -1
  144. package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +113 -35
  145. package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -1
  146. package/dist/cli/logs/infra-logs.cli-command.descriptor.js +87 -3
  147. package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -1
  148. package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +61 -1
  149. package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -1
  150. package/dist/cli/logs/infra-logs.cli-command.impl.js +1161 -108
  151. package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -1
  152. package/dist/cli/logs/stream-worker-tail.d.ts +7 -2
  153. package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -1
  154. package/dist/cli/logs/stream-worker-tail.js +280 -113
  155. package/dist/cli/logs/stream-worker-tail.js.map +1 -1
  156. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts +62 -0
  157. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts.map +1 -0
  158. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js +79 -0
  159. package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js.map +1 -0
  160. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts +8 -0
  161. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts.map +1 -0
  162. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js +105 -0
  163. package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js.map +1 -0
  164. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts +34 -0
  165. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts.map +1 -0
  166. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js +42 -0
  167. package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js.map +1 -0
  168. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts +13 -0
  169. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts.map +1 -0
  170. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js +82 -0
  171. package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js.map +1 -0
  172. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +80 -23
  173. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -1
  174. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +48 -16
  175. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -1
  176. package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +47 -1
  177. package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -1
  178. package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +532 -351
  179. package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -1
  180. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts +28 -0
  181. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts.map +1 -0
  182. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js +34 -0
  183. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js.map +1 -0
  184. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts +12 -0
  185. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts.map +1 -0
  186. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js +134 -0
  187. package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js.map +1 -0
  188. package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +8 -8
  189. package/dist/cli/npm/infra-npm.cli-group.descriptor.js +1 -1
  190. package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -1
  191. package/dist/cli/npm/mirror-registry-artifacts.d.ts +64 -0
  192. package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
  193. package/dist/cli/npm/mirror-registry-artifacts.js +114 -0
  194. package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
  195. package/dist/cli/npm/publish/command-options.d.ts +24 -0
  196. package/dist/cli/npm/publish/command-options.d.ts.map +1 -0
  197. package/dist/cli/npm/publish/command-options.js +85 -0
  198. package/dist/cli/npm/publish/command-options.js.map +1 -0
  199. package/dist/cli/npm/publish/concurrency.d.ts +19 -0
  200. package/dist/cli/npm/publish/concurrency.d.ts.map +1 -0
  201. package/dist/cli/npm/publish/concurrency.js +60 -0
  202. package/dist/cli/npm/publish/concurrency.js.map +1 -0
  203. package/dist/cli/npm/publish/consumer-smoke.d.ts +83 -0
  204. package/dist/cli/npm/publish/consumer-smoke.d.ts.map +1 -0
  205. package/dist/cli/npm/publish/consumer-smoke.js +371 -0
  206. package/dist/cli/npm/publish/consumer-smoke.js.map +1 -0
  207. package/dist/cli/npm/publish/consumer-surfaces.d.ts +81 -0
  208. package/dist/cli/npm/publish/consumer-surfaces.d.ts.map +1 -0
  209. package/dist/cli/npm/publish/consumer-surfaces.js +199 -0
  210. package/dist/cli/npm/publish/consumer-surfaces.js.map +1 -0
  211. package/dist/cli/npm/publish/external-requirements.d.ts +171 -0
  212. package/dist/cli/npm/publish/external-requirements.d.ts.map +1 -0
  213. package/dist/cli/npm/publish/external-requirements.js +365 -0
  214. package/dist/cli/npm/publish/external-requirements.js.map +1 -0
  215. package/dist/cli/npm/publish/forge-source-identity.d.ts +64 -0
  216. package/dist/cli/npm/publish/forge-source-identity.d.ts.map +1 -0
  217. package/dist/cli/npm/publish/forge-source-identity.js +201 -0
  218. package/dist/cli/npm/publish/forge-source-identity.js.map +1 -0
  219. package/dist/cli/npm/publish/fs-paths.d.ts +25 -0
  220. package/dist/cli/npm/publish/fs-paths.d.ts.map +1 -0
  221. package/dist/cli/npm/publish/fs-paths.js +87 -0
  222. package/dist/cli/npm/publish/fs-paths.js.map +1 -0
  223. package/dist/cli/npm/publish/lease-preflight-answer.d.ts +17 -0
  224. package/dist/cli/npm/publish/lease-preflight-answer.d.ts.map +1 -0
  225. package/dist/cli/npm/publish/lease-preflight-answer.js +35 -0
  226. package/dist/cli/npm/publish/lease-preflight-answer.js.map +1 -0
  227. package/dist/cli/npm/publish/lease-preflight.d.ts +92 -0
  228. package/dist/cli/npm/publish/lease-preflight.d.ts.map +1 -0
  229. package/dist/cli/npm/publish/lease-preflight.js +205 -0
  230. package/dist/cli/npm/publish/lease-preflight.js.map +1 -0
  231. package/dist/cli/npm/publish/managed-lease.d.ts +110 -0
  232. package/dist/cli/npm/publish/managed-lease.d.ts.map +1 -0
  233. package/dist/cli/npm/publish/managed-lease.js +191 -0
  234. package/dist/cli/npm/publish/managed-lease.js.map +1 -0
  235. package/dist/cli/npm/publish/npm-exec.d.ts +148 -0
  236. package/dist/cli/npm/publish/npm-exec.d.ts.map +1 -0
  237. package/dist/cli/npm/publish/npm-exec.js +311 -0
  238. package/dist/cli/npm/publish/npm-exec.js.map +1 -0
  239. package/dist/cli/npm/publish/package-artifact.d.ts +107 -0
  240. package/dist/cli/npm/publish/package-artifact.d.ts.map +1 -0
  241. package/dist/cli/npm/publish/package-artifact.js +418 -0
  242. package/dist/cli/npm/publish/package-artifact.js.map +1 -0
  243. package/dist/cli/npm/publish/platform-registry.d.ts +76 -0
  244. package/dist/cli/npm/publish/platform-registry.d.ts.map +1 -0
  245. package/dist/cli/npm/publish/platform-registry.js +324 -0
  246. package/dist/cli/npm/publish/platform-registry.js.map +1 -0
  247. package/dist/cli/npm/publish/proof-external-closure.d.ts +139 -0
  248. package/dist/cli/npm/publish/proof-external-closure.d.ts.map +1 -0
  249. package/dist/cli/npm/publish/proof-external-closure.js +339 -0
  250. package/dist/cli/npm/publish/proof-external-closure.js.map +1 -0
  251. package/dist/cli/npm/publish/proof-installed-graph.d.ts +26 -0
  252. package/dist/cli/npm/publish/proof-installed-graph.d.ts.map +1 -0
  253. package/dist/cli/npm/publish/proof-installed-graph.js +229 -0
  254. package/dist/cli/npm/publish/proof-installed-graph.js.map +1 -0
  255. package/dist/cli/npm/publish/proof-registry.d.ts +74 -0
  256. package/dist/cli/npm/publish/proof-registry.d.ts.map +1 -0
  257. package/dist/cli/npm/publish/proof-registry.js +335 -0
  258. package/dist/cli/npm/publish/proof-registry.js.map +1 -0
  259. package/dist/cli/npm/publish/proof-source-credentials.d.ts +42 -0
  260. package/dist/cli/npm/publish/proof-source-credentials.d.ts.map +1 -0
  261. package/dist/cli/npm/publish/proof-source-credentials.js +129 -0
  262. package/dist/cli/npm/publish/proof-source-credentials.js.map +1 -0
  263. package/dist/cli/npm/publish/publish-package.d.ts +66 -0
  264. package/dist/cli/npm/publish/publish-package.d.ts.map +1 -0
  265. package/dist/cli/npm/publish/publish-package.js +544 -0
  266. package/dist/cli/npm/publish/publish-package.js.map +1 -0
  267. package/dist/cli/npm/publish/publisher-manifest.d.ts +173 -0
  268. package/dist/cli/npm/publish/publisher-manifest.d.ts.map +1 -0
  269. package/dist/cli/npm/publish/publisher-manifest.js +79 -0
  270. package/dist/cli/npm/publish/publisher-manifest.js.map +1 -0
  271. package/dist/cli/npm/publish/rc-major-exception.d.ts +20 -0
  272. package/dist/cli/npm/publish/rc-major-exception.d.ts.map +1 -0
  273. package/dist/cli/npm/publish/rc-major-exception.js +46 -0
  274. package/dist/cli/npm/publish/rc-major-exception.js.map +1 -0
  275. package/dist/cli/npm/publish/registry-availability.d.ts +150 -0
  276. package/dist/cli/npm/publish/registry-availability.d.ts.map +1 -0
  277. package/dist/cli/npm/publish/registry-availability.js +570 -0
  278. package/dist/cli/npm/publish/registry-availability.js.map +1 -0
  279. package/dist/cli/npm/publish/registry-credentials.d.ts +108 -0
  280. package/dist/cli/npm/publish/registry-credentials.d.ts.map +1 -0
  281. package/dist/cli/npm/publish/registry-credentials.js +290 -0
  282. package/dist/cli/npm/publish/registry-credentials.js.map +1 -0
  283. package/dist/cli/npm/publish/registry-reads.d.ts +42 -0
  284. package/dist/cli/npm/publish/registry-reads.d.ts.map +1 -0
  285. package/dist/cli/npm/publish/registry-reads.js +164 -0
  286. package/dist/cli/npm/publish/registry-reads.js.map +1 -0
  287. package/dist/cli/npm/publish/release-build.d.ts +46 -0
  288. package/dist/cli/npm/publish/release-build.d.ts.map +1 -0
  289. package/dist/cli/npm/publish/release-build.js +140 -0
  290. package/dist/cli/npm/publish/release-build.js.map +1 -0
  291. package/dist/cli/npm/publish/release-consumer-proof.d.ts +70 -0
  292. package/dist/cli/npm/publish/release-consumer-proof.d.ts.map +1 -0
  293. package/dist/cli/npm/publish/release-consumer-proof.js +397 -0
  294. package/dist/cli/npm/publish/release-consumer-proof.js.map +1 -0
  295. package/dist/cli/npm/publish/release-executor.d.ts +46 -0
  296. package/dist/cli/npm/publish/release-executor.d.ts.map +1 -0
  297. package/dist/cli/npm/publish/release-executor.js +181 -0
  298. package/dist/cli/npm/publish/release-executor.js.map +1 -0
  299. package/dist/cli/npm/publish/release-grants.client.impl.d.ts +10 -0
  300. package/dist/cli/npm/publish/release-grants.client.impl.d.ts.map +1 -0
  301. package/dist/cli/npm/publish/release-grants.client.impl.js +63 -0
  302. package/dist/cli/npm/publish/release-grants.client.impl.js.map +1 -0
  303. package/dist/cli/npm/publish/release-jobs.client.d.ts +39 -0
  304. package/dist/cli/npm/publish/release-jobs.client.d.ts.map +1 -0
  305. package/dist/cli/npm/publish/release-jobs.client.js +124 -0
  306. package/dist/cli/npm/publish/release-jobs.client.js.map +1 -0
  307. package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts +20 -0
  308. package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts.map +1 -0
  309. package/dist/cli/npm/publish/release-jobs.consumer.plugin.js +82 -0
  310. package/dist/cli/npm/publish/release-jobs.consumer.plugin.js.map +1 -0
  311. package/dist/cli/npm/publish/release-jobs.impl.d.ts +15 -0
  312. package/dist/cli/npm/publish/release-jobs.impl.d.ts.map +1 -0
  313. package/dist/cli/npm/publish/release-jobs.impl.js +42 -0
  314. package/dist/cli/npm/publish/release-jobs.impl.js.map +1 -0
  315. package/dist/cli/npm/publish/release-lock.d.ts +143 -0
  316. package/dist/cli/npm/publish/release-lock.d.ts.map +1 -0
  317. package/dist/cli/npm/publish/release-lock.js +371 -0
  318. package/dist/cli/npm/publish/release-lock.js.map +1 -0
  319. package/dist/cli/npm/publish/release-phases.d.ts +93 -0
  320. package/dist/cli/npm/publish/release-phases.d.ts.map +1 -0
  321. package/dist/cli/npm/publish/release-phases.js +175 -0
  322. package/dist/cli/npm/publish/release-phases.js.map +1 -0
  323. package/dist/cli/npm/publish/release-plan.d.ts +65 -0
  324. package/dist/cli/npm/publish/release-plan.d.ts.map +1 -0
  325. package/dist/cli/npm/publish/release-plan.js +178 -0
  326. package/dist/cli/npm/publish/release-plan.js.map +1 -0
  327. package/dist/cli/npm/publish/release-preflight.job.impl.d.ts +16 -0
  328. package/dist/cli/npm/publish/release-preflight.job.impl.d.ts.map +1 -0
  329. package/dist/cli/npm/publish/release-preflight.job.impl.js +71 -0
  330. package/dist/cli/npm/publish/release-preflight.job.impl.js.map +1 -0
  331. package/dist/cli/npm/publish/release-publish.job.impl.d.ts +18 -0
  332. package/dist/cli/npm/publish/release-publish.job.impl.d.ts.map +1 -0
  333. package/dist/cli/npm/publish/release-publish.job.impl.js +295 -0
  334. package/dist/cli/npm/publish/release-publish.job.impl.js.map +1 -0
  335. package/dist/cli/npm/publish/release-workspace.d.ts +95 -0
  336. package/dist/cli/npm/publish/release-workspace.d.ts.map +1 -0
  337. package/dist/cli/npm/publish/release-workspace.js +243 -0
  338. package/dist/cli/npm/publish/release-workspace.js.map +1 -0
  339. package/dist/cli/npm/publish/sensitive-temp.d.ts +90 -0
  340. package/dist/cli/npm/publish/sensitive-temp.d.ts.map +1 -0
  341. package/dist/cli/npm/publish/sensitive-temp.js +351 -0
  342. package/dist/cli/npm/publish/sensitive-temp.js.map +1 -0
  343. package/dist/cli/npm/publish/source-snapshot.d.ts +91 -0
  344. package/dist/cli/npm/publish/source-snapshot.d.ts.map +1 -0
  345. package/dist/cli/npm/publish/source-snapshot.js +245 -0
  346. package/dist/cli/npm/publish/source-snapshot.js.map +1 -0
  347. package/dist/cli/npm/publish/types.d.ts +69 -0
  348. package/dist/cli/npm/publish/types.d.ts.map +1 -0
  349. package/dist/cli/npm/publish/types.js +2 -0
  350. package/dist/cli/npm/publish/types.js.map +1 -0
  351. package/dist/cli/npm/publish/workspace-discovery.d.ts +48 -0
  352. package/dist/cli/npm/publish/workspace-discovery.d.ts.map +1 -0
  353. package/dist/cli/npm/publish/workspace-discovery.js +313 -0
  354. package/dist/cli/npm/publish/workspace-discovery.js.map +1 -0
  355. package/dist/cli/npm/put-attested-packument.d.ts +96 -0
  356. package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
  357. package/dist/cli/npm/put-attested-packument.js +240 -0
  358. package/dist/cli/npm/put-attested-packument.js.map +1 -0
  359. package/dist/cli/npm/reconcile-latest.d.ts +55 -0
  360. package/dist/cli/npm/reconcile-latest.d.ts.map +1 -0
  361. package/dist/cli/npm/reconcile-latest.js +59 -0
  362. package/dist/cli/npm/reconcile-latest.js.map +1 -0
  363. package/dist/cli/observability/blind-spots.d.ts +10 -0
  364. package/dist/cli/observability/blind-spots.d.ts.map +1 -0
  365. package/dist/cli/observability/blind-spots.js +19 -0
  366. package/dist/cli/observability/blind-spots.js.map +1 -0
  367. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts +6 -0
  368. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts.map +1 -0
  369. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js +75 -0
  370. package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js.map +1 -0
  371. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +42 -21
  372. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -1
  373. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +3 -3
  374. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -1
  375. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +3 -2
  376. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -1
  377. package/dist/cli/observability/infra-observability-set.cli-command.impl.js +14 -14
  378. package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -1
  379. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +25 -17
  380. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -1
  381. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +1 -1
  382. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -1
  383. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +2 -1
  384. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -1
  385. package/dist/cli/observability/infra-observability-status.cli-command.impl.js +30 -23
  386. package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -1
  387. package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +8 -8
  388. package/dist/cli/observability/infra-observability.cli-group.descriptor.js +1 -1
  389. package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -1
  390. package/dist/cli/plugin.d.ts +3 -0
  391. package/dist/cli/plugin.d.ts.map +1 -0
  392. package/dist/cli/plugin.js +45 -0
  393. package/dist/cli/plugin.js.map +1 -0
  394. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts +38 -0
  395. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts.map +1 -0
  396. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js +43 -0
  397. package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js.map +1 -0
  398. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts +117 -0
  399. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts.map +1 -0
  400. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js +678 -0
  401. package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js.map +1 -0
  402. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +37 -23
  403. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -1
  404. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +7 -1
  405. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -1
  406. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +2 -1
  407. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -1
  408. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +100 -25
  409. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -1
  410. package/dist/cli/release/cli/latest-manifest.d.ts +148 -0
  411. package/dist/cli/release/cli/latest-manifest.d.ts.map +1 -0
  412. package/dist/cli/release/cli/latest-manifest.js +152 -0
  413. package/dist/cli/release/cli/latest-manifest.js.map +1 -0
  414. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts +41 -0
  415. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts.map +1 -0
  416. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js +49 -0
  417. package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js.map +1 -0
  418. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts +16 -0
  419. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts.map +1 -0
  420. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js +52 -0
  421. package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js.map +1 -0
  422. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +19 -17
  423. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -1
  424. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +1 -1
  425. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -1
  426. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +2 -1
  427. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -1
  428. package/dist/cli/rum/infra-rum-status.cli-command.impl.js +21 -15
  429. package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -1
  430. package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +8 -8
  431. package/dist/cli/rum/infra-rum.cli-group.descriptor.js +1 -1
  432. package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -1
  433. package/dist/cli/run/deploy-smoke.d.ts +57 -0
  434. package/dist/cli/run/deploy-smoke.d.ts.map +1 -0
  435. package/dist/cli/run/deploy-smoke.js +251 -0
  436. package/dist/cli/run/deploy-smoke.js.map +1 -0
  437. package/dist/cli/run/deployment-marker.d.ts +74 -0
  438. package/dist/cli/run/deployment-marker.d.ts.map +1 -0
  439. package/dist/cli/run/deployment-marker.js +237 -0
  440. package/dist/cli/run/deployment-marker.js.map +1 -0
  441. package/dist/cli/run/deployment-provider.d.ts +56 -0
  442. package/dist/cli/run/deployment-provider.d.ts.map +1 -0
  443. package/dist/cli/run/deployment-provider.js +295 -0
  444. package/dist/cli/run/deployment-provider.js.map +1 -0
  445. package/dist/cli/run/deployment-run-ledger.d.ts +72 -0
  446. package/dist/cli/run/deployment-run-ledger.d.ts.map +1 -0
  447. package/dist/cli/run/deployment-run-ledger.js +164 -0
  448. package/dist/cli/run/deployment-run-ledger.js.map +1 -0
  449. package/dist/cli/run/git-source-identity.d.ts +21 -0
  450. package/dist/cli/run/git-source-identity.d.ts.map +1 -0
  451. package/dist/cli/run/git-source-identity.js +73 -0
  452. package/dist/cli/run/git-source-identity.js.map +1 -0
  453. package/dist/cli/run/immutable-deployment-release.program.d.ts +403 -0
  454. package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
  455. package/dist/cli/run/immutable-deployment-release.program.js +589 -0
  456. package/dist/cli/run/immutable-deployment-release.program.js.map +1 -0
  457. package/dist/cli/run/immutable-deployment-workspace.d.ts +39 -0
  458. package/dist/cli/run/immutable-deployment-workspace.d.ts.map +1 -0
  459. package/dist/cli/run/immutable-deployment-workspace.js +525 -0
  460. package/dist/cli/run/immutable-deployment-workspace.js.map +1 -0
  461. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +80 -23
  462. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -1
  463. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +50 -8
  464. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -1
  465. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +46 -1
  466. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -1
  467. package/dist/cli/run/infra-deploy.run.cli-command.impl.js +464 -226
  468. package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
  469. package/dist/cli/shared/build-workspace-artifacts.d.ts +147 -0
  470. package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
  471. package/dist/cli/shared/build-workspace-artifacts.js +2013 -0
  472. package/dist/cli/shared/build-workspace-artifacts.js.map +1 -0
  473. package/dist/cli/shared/credential-source.d.ts +3 -0
  474. package/dist/cli/shared/credential-source.d.ts.map +1 -0
  475. package/dist/cli/shared/credential-source.js +19 -0
  476. package/dist/cli/shared/credential-source.js.map +1 -0
  477. package/dist/cli/shared/discover-deployments.d.ts +46 -5
  478. package/dist/cli/shared/discover-deployments.d.ts.map +1 -1
  479. package/dist/cli/shared/discover-deployments.js +167 -41
  480. package/dist/cli/shared/discover-deployments.js.map +1 -1
  481. package/dist/cli/shared/infer-apex-zone.d.ts +18 -0
  482. package/dist/cli/shared/infer-apex-zone.d.ts.map +1 -0
  483. package/dist/cli/shared/infer-apex-zone.js +75 -0
  484. package/dist/cli/shared/infer-apex-zone.js.map +1 -0
  485. package/dist/cli/shared/option-strings.d.ts +2 -0
  486. package/dist/cli/shared/option-strings.d.ts.map +1 -0
  487. package/dist/cli/shared/option-strings.js +13 -0
  488. package/dist/cli/shared/option-strings.js.map +1 -0
  489. package/dist/cli/shared/repository-collection.d.ts +42 -0
  490. package/dist/cli/shared/repository-collection.d.ts.map +1 -0
  491. package/dist/cli/shared/repository-collection.js +111 -0
  492. package/dist/cli/shared/repository-collection.js.map +1 -0
  493. package/dist/cli/shared/runtime-execution.d.ts +78 -0
  494. package/dist/cli/shared/runtime-execution.d.ts.map +1 -0
  495. package/dist/cli/shared/runtime-execution.js +182 -0
  496. package/dist/cli/shared/runtime-execution.js.map +1 -0
  497. package/dist/cli/shared/workspace-artifact-lock.d.ts +17 -0
  498. package/dist/cli/shared/workspace-artifact-lock.d.ts.map +1 -0
  499. package/dist/cli/shared/workspace-artifact-lock.js +37 -0
  500. package/dist/cli/shared/workspace-artifact-lock.js.map +1 -0
  501. package/dist/cli/workers/doks-worker-runtime.d.ts +238 -0
  502. package/dist/cli/workers/doks-worker-runtime.d.ts.map +1 -0
  503. package/dist/cli/workers/doks-worker-runtime.js +410 -0
  504. package/dist/cli/workers/doks-worker-runtime.js.map +1 -0
  505. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts +28 -0
  506. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts.map +1 -0
  507. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js +28 -0
  508. package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js.map +1 -0
  509. package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts +6 -0
  510. package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts.map +1 -0
  511. package/dist/cli/workers/infra-workers-apply.cli-command.impl.js +75 -0
  512. package/dist/cli/workers/infra-workers-apply.cli-command.impl.js.map +1 -0
  513. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts +31 -0
  514. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts.map +1 -0
  515. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js +32 -0
  516. package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js.map +1 -0
  517. package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts +6 -0
  518. package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts.map +1 -0
  519. package/dist/cli/workers/infra-workers-build.cli-command.impl.js +67 -0
  520. package/dist/cli/workers/infra-workers-build.cli-command.impl.js.map +1 -0
  521. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts +48 -0
  522. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts.map +1 -0
  523. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js +60 -0
  524. package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js.map +1 -0
  525. package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts +6 -0
  526. package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts.map +1 -0
  527. package/dist/cli/workers/infra-workers-logs.cli-command.impl.js +74 -0
  528. package/dist/cli/workers/infra-workers-logs.cli-command.impl.js.map +1 -0
  529. package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts +12 -0
  530. package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts.map +1 -0
  531. package/dist/cli/workers/infra-workers.cli-group.descriptor.js +12 -0
  532. package/dist/cli/workers/infra-workers.cli-group.descriptor.js.map +1 -0
  533. package/dist/config-loader.d.ts +60 -13
  534. package/dist/config-loader.d.ts.map +1 -1
  535. package/dist/config-loader.js +371 -104
  536. package/dist/config-loader.js.map +1 -1
  537. package/dist/declared-provider.d.ts +27 -0
  538. package/dist/declared-provider.d.ts.map +1 -0
  539. package/dist/declared-provider.js +46 -0
  540. package/dist/declared-provider.js.map +1 -0
  541. package/dist/deployment-collisions.d.ts +55 -0
  542. package/dist/deployment-collisions.d.ts.map +1 -0
  543. package/dist/deployment-collisions.js +70 -0
  544. package/dist/deployment-collisions.js.map +1 -0
  545. package/dist/deployment-environment.d.ts +57 -0
  546. package/dist/deployment-environment.d.ts.map +1 -0
  547. package/dist/deployment-environment.js +198 -0
  548. package/dist/deployment-environment.js.map +1 -0
  549. package/dist/deployment-settings.d.ts +27 -0
  550. package/dist/deployment-settings.d.ts.map +1 -0
  551. package/dist/deployment-settings.js +52 -0
  552. package/dist/deployment-settings.js.map +1 -0
  553. package/dist/deployment.config.descriptor.d.ts +59 -0
  554. package/dist/deployment.config.descriptor.d.ts.map +1 -0
  555. package/dist/deployment.config.descriptor.js +54 -0
  556. package/dist/deployment.config.descriptor.js.map +1 -0
  557. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts +29 -0
  558. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts.map +1 -0
  559. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js +35 -0
  560. package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js.map +1 -0
  561. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts +12 -0
  562. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts.map +1 -0
  563. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js +12 -0
  564. package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js.map +1 -0
  565. package/dist/index.d.ts +11 -3
  566. package/dist/index.d.ts.map +1 -1
  567. package/dist/index.js +11 -3
  568. package/dist/index.js.map +1 -1
  569. package/dist/infra-deploy.plugin.d.ts +2 -2
  570. package/dist/infra-deploy.plugin.d.ts.map +1 -1
  571. package/dist/infra-deploy.plugin.js +63 -20
  572. package/dist/infra-deploy.plugin.js.map +1 -1
  573. package/dist/logger.d.ts +10 -0
  574. package/dist/logger.d.ts.map +1 -0
  575. package/dist/logger.js +11 -0
  576. package/dist/logger.js.map +1 -0
  577. package/dist/migrations/migrate-workspace.d.ts +21 -0
  578. package/dist/migrations/migrate-workspace.d.ts.map +1 -0
  579. package/dist/migrations/migrate-workspace.js +83 -0
  580. package/dist/migrations/migrate-workspace.js.map +1 -0
  581. package/dist/migrations/run-migrate.d.ts +15 -0
  582. package/dist/migrations/run-migrate.d.ts.map +1 -0
  583. package/dist/migrations/run-migrate.js +314 -0
  584. package/dist/migrations/run-migrate.js.map +1 -0
  585. package/dist/regenerate.d.ts +52 -30
  586. package/dist/regenerate.d.ts.map +1 -1
  587. package/dist/regenerate.js +176 -148
  588. package/dist/regenerate.js.map +1 -1
  589. package/dist/runtime-execution.d.ts +5 -0
  590. package/dist/runtime-execution.d.ts.map +1 -0
  591. package/dist/runtime-execution.js +12 -0
  592. package/dist/runtime-execution.js.map +1 -0
  593. package/dist/schemas/migrate.d.ts +110 -0
  594. package/dist/schemas/migrate.d.ts.map +1 -0
  595. package/dist/schemas/migrate.js +55 -0
  596. package/dist/schemas/migrate.js.map +1 -0
  597. package/dist/schemas/proof-registry.d.ts +25 -0
  598. package/dist/schemas/proof-registry.d.ts.map +1 -0
  599. package/dist/schemas/proof-registry.js +24 -0
  600. package/dist/schemas/proof-registry.js.map +1 -0
  601. package/dist/schemas/release-grants.d.ts +7 -0
  602. package/dist/schemas/release-grants.d.ts.map +1 -0
  603. package/dist/schemas/release-grants.js +6 -0
  604. package/dist/schemas/release-grants.js.map +1 -0
  605. package/dist/schemas/release-jobs.d.ts +444 -0
  606. package/dist/schemas/release-jobs.d.ts.map +1 -0
  607. package/dist/schemas/release-jobs.js +204 -0
  608. package/dist/schemas/release-jobs.js.map +1 -0
  609. package/dist/schemas/service-release.d.ts +15 -0
  610. package/dist/schemas/service-release.d.ts.map +1 -0
  611. package/dist/schemas/service-release.js +13 -0
  612. package/dist/schemas/service-release.js.map +1 -0
  613. package/dist/schemas/worker-logs.d.ts +42 -0
  614. package/dist/schemas/worker-logs.d.ts.map +1 -0
  615. package/dist/schemas/worker-logs.js +29 -0
  616. package/dist/schemas/worker-logs.js.map +1 -0
  617. package/dist/storage/deployment-runs.schema.d.ts +199 -0
  618. package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
  619. package/dist/storage/deployment-runs.schema.js +61 -0
  620. package/dist/storage/deployment-runs.schema.js.map +1 -0
  621. package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
  622. package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
  623. package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
  624. package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
  625. package/package.json +110 -42
  626. package/SPEC.md +0 -181
  627. package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
  628. package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
  629. package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
  630. package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
  631. package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
  632. package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
  633. package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
  634. package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
  635. package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
  636. package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
  637. package/src/cli/infra.cli-group.descriptor.ts +0 -11
  638. package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
  639. package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
  640. package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
  641. package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
  642. package/src/cli/logs/stream-worker-tail.ts +0 -202
  643. package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
  644. package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
  645. package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
  646. package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
  647. package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
  648. package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
  649. package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
  650. package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
  651. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
  652. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
  653. package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
  654. package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
  655. package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
  656. package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
  657. package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
  658. package/src/cli/shared/discover-deployments.ts +0 -127
  659. package/src/config-loader.ts +0 -179
  660. package/src/index.ts +0 -11
  661. package/src/infra-deploy.plugin.ts +0 -83
  662. package/src/regenerate.ts +0 -230
@@ -0,0 +1,295 @@
1
+ import { CapabilityError, CaughtFailureSchema, settle, valueFreeFailure, } from "@vibesdotdev/kernel";
2
+ import { getVibesClient } from "@vibesdotdev/kernel/client";
3
+ import { ReleasePublishJobOutputSchema, RegistryPutStatusSchema, } from "../../../schemas/release-jobs.js";
4
+ import { resolveRuntimeExecution } from "../../shared/runtime-execution.js";
5
+ import { resolveTokenFromSecrets } from "./registry-credentials.js";
6
+ import { createPlatformRegistryClient } from "./platform-registry.js";
7
+ import { GRANT_READ_LAG_RETRY_DELAYS_MS, RegistryGrantReadLagError } from "./managed-lease.js";
8
+ import { ManagedPublishLeasePendingError } from "./platform-registry.js";
9
+ import { publishPackage, ReleasePublishRetryRequested } from "./publish-package.js";
10
+ import { RELEASE_PUBLISH_JOB_ID } from "./release-jobs.consumer.plugin.js";
11
+ const TRANSIENT_PUBLISH_RETRIES = 3;
12
+ const TRANSIENT_PUBLISH_BASE_DELAY_MS = 2_000;
13
+ const RELEASE_JOB_TIMEOUT_MS = 45 * 60_000;
14
+ function uiForJob(events) {
15
+ const report = (level, message) => {
16
+ void events?.emit("release-output", { level, message });
17
+ };
18
+ return {
19
+ info: (message) => report("info", message),
20
+ warn: (message) => report("warn", message),
21
+ log: (message) => report("log", message),
22
+ };
23
+ }
24
+ function cancellationFailure(signal, cause) {
25
+ if (cause) {
26
+ return new CapabilityError("Registry publish job was cancelled.", "CANCELLED", { reason: "job-cancelled", cause: valueFreeFailure(cause) });
27
+ }
28
+ if (signal.reason instanceof Error)
29
+ return signal.reason;
30
+ if (signal.reason !== undefined) {
31
+ return new CapabilityError("Registry publish job was cancelled.", "CANCELLED", {
32
+ reason: "job-cancelled",
33
+ cause: valueFreeFailure(CaughtFailureSchema.parse(signal.reason)),
34
+ });
35
+ }
36
+ return new CapabilityError("Registry publish job was cancelled.", "CANCELLED", { reason: "job-cancelled" });
37
+ }
38
+ function executionForJob(execution, signal) {
39
+ if (!signal)
40
+ return execution;
41
+ const stop = (child) => Promise.resolve(child.kill("SIGTERM"));
42
+ const spawnForJob = async (options) => {
43
+ if (signal.aborted)
44
+ throw cancellationFailure(signal);
45
+ const child = await execution.spawn(options);
46
+ if (signal.aborted) {
47
+ await stop(child);
48
+ throw cancellationFailure(signal);
49
+ }
50
+ let rejectStopFailure = () => { };
51
+ const stopFailure = new Promise((_resolve, reject) => {
52
+ rejectStopFailure = (reason) => reject(reason);
53
+ });
54
+ const exited = Promise.race([child.exited, stopFailure]).then((result) => {
55
+ signal.removeEventListener("abort", onAbort);
56
+ if (signal.aborted)
57
+ throw cancellationFailure(signal);
58
+ return result;
59
+ }, (error) => {
60
+ signal.removeEventListener("abort", onAbort);
61
+ throw error;
62
+ });
63
+ const onAbort = () => {
64
+ signal.removeEventListener("abort", onAbort);
65
+ void stop(child).then(undefined, rejectStopFailure);
66
+ };
67
+ if (signal.aborted)
68
+ onAbort();
69
+ else
70
+ signal.addEventListener("abort", onAbort, { once: true });
71
+ const processHandle = {
72
+ pid: child.pid,
73
+ stdout: child.stdout,
74
+ stderr: child.stderr,
75
+ stdin: child.stdin,
76
+ exited,
77
+ kill: (killSignal) => child.kill(killSignal),
78
+ };
79
+ if (child.unref)
80
+ processHandle.unref = child.unref.bind(child);
81
+ return processHandle;
82
+ };
83
+ const wrappedExecution = {
84
+ id: execution.id,
85
+ descriptor: execution.descriptor,
86
+ environmentId: execution.environmentId,
87
+ execute: (options) => execution.execute(options),
88
+ spawn: spawnForJob,
89
+ kill: (pid, killSignal) => execution.kill(pid, killSignal),
90
+ listSpawnedProcesses: () => execution.listSpawnedProcesses(),
91
+ session: (options) => execution.session(options),
92
+ resolveCommand: (command, options) => execution.resolveCommand(command, options),
93
+ getCapabilities: () => execution.getCapabilities(),
94
+ healthCheck: () => execution.healthCheck(),
95
+ };
96
+ if (execution.executeRestricted) {
97
+ wrappedExecution.executeRestricted = execution.executeRestricted.bind(execution);
98
+ }
99
+ return wrappedExecution;
100
+ }
101
+ function continuationFor(input, failure) {
102
+ if (failure instanceof ReleasePublishRetryRequested) {
103
+ if (failure.reason === "transient") {
104
+ if (input.retry.transientRetries >= TRANSIENT_PUBLISH_RETRIES)
105
+ return undefined;
106
+ const retry = {
107
+ ...input.retry,
108
+ attempts: input.retry.attempts + 1,
109
+ transientRetries: input.retry.transientRetries + 1,
110
+ };
111
+ const delayMs = TRANSIENT_PUBLISH_BASE_DELAY_MS * 2 ** input.retry.transientRetries;
112
+ return {
113
+ retry,
114
+ delayMs,
115
+ message: `transient publish failure for ${input.sealedArtifact.name}@${input.version}; retrying in ${delayMs}ms (${retry.transientRetries}/${TRANSIENT_PUBLISH_RETRIES}).`,
116
+ };
117
+ }
118
+ if (input.retry.rateLimitRetries >= input.rateLimitRetries)
119
+ return undefined;
120
+ const retry = {
121
+ ...input.retry,
122
+ attempts: input.retry.attempts + 1,
123
+ rateLimitRetries: input.retry.rateLimitRetries + 1,
124
+ };
125
+ return {
126
+ retry,
127
+ delayMs: input.rateLimitDelayMs,
128
+ message: `npm rate-limited ${input.sealedArtifact.name}@${input.version}; retrying in ${input.rateLimitDelayMs}ms (${retry.rateLimitRetries}/${input.rateLimitRetries}).`,
129
+ };
130
+ }
131
+ if (failure instanceof ManagedPublishLeasePendingError) {
132
+ return {
133
+ retry: { ...input.retry, leasePolls: input.retry.leasePolls + 1 },
134
+ delayMs: failure.retryAfterMs,
135
+ message: `Waiting to publish ${input.sealedArtifact.name}@${input.version}; retrying in ${Math.round(failure.retryAfterMs / 1000)}s.`,
136
+ };
137
+ }
138
+ if (failure instanceof RegistryGrantReadLagError) {
139
+ const delayMs = GRANT_READ_LAG_RETRY_DELAYS_MS[input.retry.grantReadLagAttempt];
140
+ if (delayMs === undefined)
141
+ return undefined;
142
+ return {
143
+ retry: { ...input.retry, grantReadLagAttempt: input.retry.grantReadLagAttempt + 1 },
144
+ delayMs,
145
+ message: `Waiting for Registry grants to become visible for ${input.sealedArtifact.name}@${input.version}; retrying in ${delayMs}ms.`,
146
+ };
147
+ }
148
+ return undefined;
149
+ }
150
+ function failureOf(failure) {
151
+ if (failure instanceof ReleasePublishRetryRequested)
152
+ return failure.failure;
153
+ if (failure instanceof RegistryGrantReadLagError) {
154
+ return CaughtFailureSchema.parse(failure.refusal);
155
+ }
156
+ return failure;
157
+ }
158
+ function failureOutput(input, failure) {
159
+ const failedAttempt = failure instanceof ReleasePublishRetryRequested ? 1 : 0;
160
+ const cause = failureOf(failure);
161
+ const registryStatus = cause instanceof CapabilityError && cause.reason === "registry-put-failed"
162
+ ? RegistryPutStatusSchema.safeParse(cause.details?.status)
163
+ : undefined;
164
+ return ReleasePublishJobOutputSchema.parse({
165
+ status: "failed",
166
+ name: input.sealedArtifact.name,
167
+ version: input.version,
168
+ attempts: input.retry.attempts + failedAttempt,
169
+ failure: valueFreeFailure(cause),
170
+ registryStatus: registryStatus?.success ? registryStatus.data : undefined,
171
+ });
172
+ }
173
+ export default class ReleasePublishJob {
174
+ descriptor;
175
+ context;
176
+ id = RELEASE_PUBLISH_JOB_ID;
177
+ type = "default";
178
+ isolation = "inline";
179
+ constructor(descriptor, context) {
180
+ this.descriptor = descriptor;
181
+ this.context = context;
182
+ }
183
+ async handle(job) {
184
+ const input = job.data;
185
+ if (input.retry.publishDelayPending && input.publishDelayMs > 0) {
186
+ return this.continue(job, input, {
187
+ retry: { ...input.retry, publishDelayPending: false },
188
+ delayMs: input.publishDelayMs,
189
+ message: `Waiting ${input.publishDelayMs}ms before the next npm publish attempt.`,
190
+ });
191
+ }
192
+ const otp = input.otpSecret
193
+ ? await this.resolveOtp(input.otpSecret.key)
194
+ : undefined;
195
+ const execution = executionForJob(await resolveRuntimeExecution(this.context.runtime), job.signal);
196
+ const outcome = await settle(() => publishPackage({
197
+ platformRegistry: createPlatformRegistryClient(this.context.runtime, job.signal),
198
+ packageDir: input.packageDir,
199
+ workspaceRoot: input.workspaceRoot,
200
+ registry: input.registry,
201
+ scope: input.scope,
202
+ tag: input.tag,
203
+ otp,
204
+ provenance: input.provenance,
205
+ dryRun: false,
206
+ resolveToken: input.tokenSecret ? () => this.resolvePublishToken(input) : undefined,
207
+ rateLimitRetries: input.rateLimitRetries,
208
+ rateLimitDelayMs: input.rateLimitDelayMs,
209
+ retry: input.retry,
210
+ signal: job.signal,
211
+ park: job.park,
212
+ ui: uiForJob(job.events),
213
+ versions: new Map(),
214
+ execution,
215
+ runtime: this.context.runtime,
216
+ quiet: input.quiet,
217
+ managedLease: input.managedLease,
218
+ authorityVerify: input.authorityVerify,
219
+ artifactDir: input.artifactDir,
220
+ workspaceProvenance: input.workspaceProvenance,
221
+ expectedGitHead: input.expectedGitHead,
222
+ releaseWorkspace: input.releaseWorkspace,
223
+ publishTargets: input.publishTargets,
224
+ sealedArtifact: input.sealedArtifact,
225
+ version: input.version,
226
+ }));
227
+ if (outcome.ok) {
228
+ return { status: "published", result: outcome.value };
229
+ }
230
+ const failure = outcome.cause;
231
+ if (job.signal?.aborted) {
232
+ throw cancellationFailure(job.signal, failureOf(failure));
233
+ }
234
+ const continuation = continuationFor(input, failure);
235
+ if (continuation) {
236
+ return this.continue(job, input, continuation);
237
+ }
238
+ return failureOutput(input, failure);
239
+ }
240
+ async resolveOtp(key) {
241
+ const result = await this.context.runtime.resolveCredential({ source: "secret", key });
242
+ if (!result.ok) {
243
+ throw new Error(result.error.message, { cause: result.error });
244
+ }
245
+ return result.value;
246
+ }
247
+ async resolvePublishToken(input) {
248
+ const reference = input.tokenSecret;
249
+ if (!reference)
250
+ throw new Error("A publish token reference is required.");
251
+ const resolved = await resolveTokenFromSecrets(this.context.runtime, reference.key, {
252
+ environment: reference.environment,
253
+ backend: reference.backend,
254
+ });
255
+ if (!resolved.value) {
256
+ throw new CapabilityError(`Missing ${reference.key} in ${resolved.environment}/${resolved.tier}.`, "AUTH_REQUIRED", { reason: "credential-not-set" });
257
+ }
258
+ return resolved.value;
259
+ }
260
+ async continue(job, input, continuation) {
261
+ if (!job.park) {
262
+ throw new CapabilityError("Release continuation requires Workers park support.", "UNAVAILABLE", { reason: "release-continuation-park-unavailable" });
263
+ }
264
+ const workers = await getVibesClient("workers", this.context.runtime);
265
+ const continuationIndex = input.retry.continuationCount + 1;
266
+ const retry = {
267
+ ...continuation.retry,
268
+ continuationCount: continuationIndex,
269
+ };
270
+ const receipt = await workers.startJob(RELEASE_PUBLISH_JOB_ID, { ...input, retry }, {
271
+ signal: job.signal,
272
+ jobId: `${input.runId}:${continuationIndex}`,
273
+ dispatch: { delayMs: continuation.delayMs },
274
+ metadata: { release: "infra-deploy", continuation: continuationIndex },
275
+ });
276
+ await job.events?.emit("release-output", {
277
+ level: "warn",
278
+ message: continuation.message,
279
+ });
280
+ const output = ReleasePublishJobOutputSchema.parse(await job.park(() => workers.completeJob(receipt, {
281
+ signal: job.signal,
282
+ cancelOnAbort: true,
283
+ timeoutMs: RELEASE_JOB_TIMEOUT_MS,
284
+ })));
285
+ const continuationMessages = output.continuationMessages ?? [];
286
+ for (const message of continuationMessages) {
287
+ await job.events?.emit("release-output", { level: "warn", message });
288
+ }
289
+ return {
290
+ ...output,
291
+ continuationMessages: [continuation.message, ...continuationMessages],
292
+ };
293
+ }
294
+ }
295
+ //# sourceMappingURL=release-publish.job.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release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L,GAAG,MAAM;YACT,oBAAoB,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,oBAAoB,CAAC;SACtE,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,95 @@
1
+ import type { ChildEnvRuntime } from "../../shared/runtime-execution.ts";
2
+ import type { RegistryForgeSourceIdentity, RegistryReleaseBuildPackage } from "./types.ts";
3
+ /**
4
+ * The sealed release workspace (contract v2): exact sources, build closure,
5
+ * publish outputs and the committed lock.
6
+ */
7
+ export type ManagedRegistryReleaseWorkspace = {
8
+ contractVersion: 2;
9
+ sources: Array<{
10
+ repositoryId: string;
11
+ cloneUrl: string;
12
+ sha: string;
13
+ }>;
14
+ buildPackages: Array<{
15
+ sourceRepositoryId: string;
16
+ directory: string;
17
+ packageName: string;
18
+ version: string;
19
+ }>;
20
+ packages: Array<{
21
+ sourceRepositoryId: string;
22
+ directory: string;
23
+ packageName: string;
24
+ version: string;
25
+ }>;
26
+ lock: {
27
+ source: {
28
+ repositoryId: string;
29
+ cloneUrl: string;
30
+ sha: string;
31
+ };
32
+ workspaceManifestPath: string;
33
+ workspaceManifestSha256: string;
34
+ lockfilePath: string;
35
+ lockfileSha256: string;
36
+ sourceCheckouts: Array<{
37
+ sourceRepositoryId: string;
38
+ directory: string;
39
+ }>;
40
+ };
41
+ };
42
+ /** The legacy (v1) wire form, which has no build closure. */
43
+ export type ManagedRegistryReleaseWorkspaceV1Wire = Omit<ManagedRegistryReleaseWorkspace, "contractVersion" | "buildPackages"> & {
44
+ contractVersion?: 1;
45
+ buildPackages?: never;
46
+ };
47
+ /** Either wire form of the release workspace. */
48
+ export type ManagedRegistryReleaseWorkspaceWire = ManagedRegistryReleaseWorkspace | ManagedRegistryReleaseWorkspaceV1Wire;
49
+ /** One publish output of the release workspace. */
50
+ export type ManagedRegistryReleasePackage = ManagedRegistryReleaseWorkspace["packages"][number];
51
+ /**
52
+ * Explicit rollout projection. The v1 wire carries no `buildPackages` array at
53
+ * all, so what it can and cannot represent is a question about *sets*, never
54
+ * about array order: `buildPackages` is emitted in dependency-first build order
55
+ * while `packages` is emitted in publish order, and those legitimately differ
56
+ * for the same release. V1 remains available only when the build closure and
57
+ * the publish set hold the same package identities. A split set cannot be
58
+ * represented by v1, so it fails closed until both durable consumers support v2.
59
+ */
60
+ export declare function projectManagedRegistryReleaseWorkspaceWire(workspace: ManagedRegistryReleaseWorkspace, contractVersion: 1 | 2, options?: {
61
+ configPath?: string;
62
+ }): ManagedRegistryReleaseWorkspaceWire;
63
+ /** The default sealed release workspace manifest. */
64
+ export declare const DEFAULT_REGISTRY_RELEASE_MANIFEST = "release/registry/package.json";
65
+ /**
66
+ * Throw unless the committed release manifest is private and declares every
67
+ * build-closure package as an exact workspace.
68
+ */
69
+ export declare function assertManagedRegistryReleaseWorkspaceManifest(options: {
70
+ workspaceRoot: string;
71
+ buildPackages: readonly RegistryReleaseBuildPackage[];
72
+ manifest: unknown;
73
+ runtime: ChildEnvRuntime;
74
+ }): Promise<void>;
75
+ /**
76
+ * Project the dependency-first source build plan into the exact multi-source
77
+ * Forge workspace. Publish outputs remain a separate Registry plan. No bytes
78
+ * are copied here: every source and the Bun lock are addressed by canonical SSH
79
+ * repository identity plus immutable commit.
80
+ */
81
+ export declare function buildManagedRegistryReleaseWorkspace(options: {
82
+ workspaceRoot: string;
83
+ buildPackages: readonly RegistryReleaseBuildPackage[];
84
+ packages: readonly RegistryReleaseBuildPackage[];
85
+ buildPackageOrder: readonly string[];
86
+ expectedGitHeads: ReadonlyMap<string, string>;
87
+ lockSource: RegistryForgeSourceIdentity;
88
+ lockGitHead: string;
89
+ workspaceManifestSha256: string;
90
+ lockfileSha256: string;
91
+ workspaceManifestPath?: string;
92
+ lockfilePath?: string;
93
+ runtime: ChildEnvRuntime;
94
+ }): Promise<ManagedRegistryReleaseWorkspace>;
95
+ //# sourceMappingURL=release-workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release-workspace.d.ts","sourceRoot":"","sources":["../../../../src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C;IACtB,OAAO,EAAE,eAAe,CAAC;CAC1B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CA6I3C"}
@@ -0,0 +1,243 @@
1
+ /**
2
+ * The sealed release workspace: the exact sources, lock and outputs a managed
3
+ * Registry release builds from, and its projection onto the release wire.
4
+ */
5
+ import { getRuntimePath } from "@vibesdotdev/paths";
6
+ import { z } from "zod/v4";
7
+ import { canonicalForgeRepositoryIdentity } from "./forge-source-identity.js";
8
+ function managedRegistryReleasePackageIdentity(entry) {
9
+ return JSON.stringify([
10
+ entry.sourceRepositoryId,
11
+ entry.directory,
12
+ entry.packageName,
13
+ entry.version,
14
+ ]);
15
+ }
16
+ /** Members of `left` whose exact identity is absent from `right`, named for an error. */
17
+ function managedRegistryReleasePackagesMissingFrom(left, right) {
18
+ const present = new Set(right.map(managedRegistryReleasePackageIdentity));
19
+ return left
20
+ .filter((entry) => !present.has(managedRegistryReleasePackageIdentity(entry)))
21
+ .map((entry) => `${entry.packageName}@${entry.version}`);
22
+ }
23
+ /**
24
+ * Explicit rollout projection. The v1 wire carries no `buildPackages` array at
25
+ * all, so what it can and cannot represent is a question about *sets*, never
26
+ * about array order: `buildPackages` is emitted in dependency-first build order
27
+ * while `packages` is emitted in publish order, and those legitimately differ
28
+ * for the same release. V1 remains available only when the build closure and
29
+ * the publish set hold the same package identities. A split set cannot be
30
+ * represented by v1, so it fails closed until both durable consumers support v2.
31
+ */
32
+ export function projectManagedRegistryReleaseWorkspaceWire(workspace, contractVersion, options) {
33
+ if (contractVersion === 2)
34
+ return workspace;
35
+ const buildOnly = managedRegistryReleasePackagesMissingFrom(workspace.buildPackages, workspace.packages);
36
+ if (buildOnly.length > 0) {
37
+ const configPath = options?.configPath ?? "the workspace root package.json";
38
+ throw new Error(`Registry release contract v1 cannot represent build-only packages (${buildOnly.join(", ")}); set "vibes": { "release": { "contractVersion": 2 } } in ${configPath}, or pass --release-contract-version 2 (contract v2 requires Platform and release-worker support)`);
39
+ }
40
+ const publishOnly = managedRegistryReleasePackagesMissingFrom(workspace.packages, workspace.buildPackages);
41
+ if (publishOnly.length > 0) {
42
+ throw new Error(`Registry release publish set escapes the build closure (${publishOnly.join(", ")}); the release workspace is malformed`);
43
+ }
44
+ const { contractVersion: _contractVersion, buildPackages: _buildPackages, ...legacy } = workspace;
45
+ return legacy;
46
+ }
47
+ /** The default sealed release workspace manifest. */
48
+ export const DEFAULT_REGISTRY_RELEASE_MANIFEST = "release/registry/package.json";
49
+ /**
50
+ * Throw unless the committed release manifest is private and declares every
51
+ * build-closure package as an exact workspace.
52
+ */
53
+ export async function assertManagedRegistryReleaseWorkspaceManifest(options) {
54
+ const paths = await getRuntimePath(options.runtime);
55
+ const record = z.record(z.string(), z.unknown()).safeParse(options.manifest);
56
+ if (!record.success || Array.isArray(options.manifest)) {
57
+ throw new Error("Registry release workspace manifest must be an object");
58
+ }
59
+ const privacy = z.object({ private: z.literal(true) }).safeParse(record.data);
60
+ if (!privacy.success) {
61
+ throw new Error("Registry release workspace manifest must be private");
62
+ }
63
+ const workspaces = z
64
+ .object({ workspaces: z.array(z.string()) })
65
+ .safeParse(record.data);
66
+ if (!workspaces.success ||
67
+ new Set(workspaces.data.workspaces).size !== workspaces.data.workspaces.length) {
68
+ throw new Error("Registry release workspace manifest must declare unique exact workspace paths");
69
+ }
70
+ const declared = workspaces.data.workspaces;
71
+ const expected = options.buildPackages.map((buildPackage) => {
72
+ const directory = paths
73
+ .relative(options.workspaceRoot, buildPackage.packageDir)
74
+ .replaceAll("\\", "/");
75
+ if (!directory ||
76
+ directory === "." ||
77
+ directory === ".." ||
78
+ directory.startsWith("../") ||
79
+ directory.startsWith("..\\") ||
80
+ paths.isAbsolute(directory)) {
81
+ throw new Error(`Registry release build package escapes lock workspace: ${buildPackage.name}`);
82
+ }
83
+ return directory;
84
+ });
85
+ const vibesField = z.object({ vibes: z.unknown().optional() }).safeParse(record.data);
86
+ const vibes = vibesField.success ? vibesField.data.vibes : undefined;
87
+ let installOnly = [];
88
+ if (vibes !== undefined) {
89
+ const vibesObject = z
90
+ .object({ releaseInstallOnlyWorkspaces: z.unknown().optional() })
91
+ .safeParse(vibes);
92
+ const listed = vibesObject.success
93
+ ? vibesObject.data.releaseInstallOnlyWorkspaces
94
+ : undefined;
95
+ if (listed !== undefined) {
96
+ const entries = z.array(z.string()).safeParse(listed);
97
+ if (!entries.success || new Set(entries.data).size !== entries.data.length) {
98
+ throw new Error("Registry release workspace install-only inputs must declare unique exact workspace paths");
99
+ }
100
+ installOnly = entries.data;
101
+ }
102
+ }
103
+ const expectedSet = new Set(expected);
104
+ for (const directory of installOnly) {
105
+ const absolute = paths.resolve(options.workspaceRoot, directory);
106
+ const position = paths
107
+ .relative(options.workspaceRoot, absolute)
108
+ .replaceAll("\\", "/");
109
+ if (expectedSet.has(position))
110
+ continue;
111
+ if (!position ||
112
+ position === "." ||
113
+ position === ".." ||
114
+ position.startsWith("../") ||
115
+ position.startsWith("..\\") ||
116
+ paths.isAbsolute(position)) {
117
+ throw new Error(`Registry release install-only workspace is not a distinct exact input: ${directory}`);
118
+ }
119
+ }
120
+ const declaredSet = new Set(declared);
121
+ if (declaredSet.size !== declared.length) {
122
+ throw new Error("Registry release workspace manifest must declare unique exact workspace paths");
123
+ }
124
+ // Install membership is the manifest's attestation; the build closure is a
125
+ // computed subset of it. Any declared workspace outside the closure and the
126
+ // explicit install-only list is implicitly install-only for this run — a
127
+ // subset publish must not require re-attesting the whole universe by hand.
128
+ const missingFromManifest = expected.filter((directory) => !declaredSet.has(directory));
129
+ if (missingFromManifest.length > 0) {
130
+ throw new Error(`Registry release workspace manifest is missing source build closure packages: ${missingFromManifest.join(", ")}`);
131
+ }
132
+ }
133
+ /**
134
+ * Project the dependency-first source build plan into the exact multi-source
135
+ * Forge workspace. Publish outputs remain a separate Registry plan. No bytes
136
+ * are copied here: every source and the Bun lock are addressed by canonical SSH
137
+ * repository identity plus immutable commit.
138
+ */
139
+ export async function buildManagedRegistryReleaseWorkspace(options) {
140
+ const paths = await getRuntimePath(options.runtime);
141
+ if (!/^[0-9a-f]{40}$/i.test(options.lockGitHead)) {
142
+ throw new Error("Registry release lock source requires an exact 40-hex commit");
143
+ }
144
+ if (!/^[0-9a-f]{64}$/i.test(options.lockfileSha256)) {
145
+ throw new Error("Registry release lockfile requires an exact SHA-256 digest");
146
+ }
147
+ if (!/^[0-9a-f]{64}$/i.test(options.workspaceManifestSha256)) {
148
+ throw new Error("Registry release workspace manifest requires an exact SHA-256 digest");
149
+ }
150
+ const sourcesByRoot = new Map();
151
+ for (const buildPackage of options.buildPackages) {
152
+ const gitHead = options.expectedGitHeads.get(buildPackage.sourceRoot);
153
+ if (!gitHead) {
154
+ throw new Error(`Registry release snapshot is missing for ${buildPackage.name}`);
155
+ }
156
+ const source = {
157
+ repositoryId: buildPackage.workspaceProvenance.repositoryId,
158
+ cloneUrl: canonicalForgeRepositoryIdentity(buildPackage.workspaceProvenance.repository).repository,
159
+ sha: gitHead,
160
+ };
161
+ const prior = sourcesByRoot.get(buildPackage.sourceRoot);
162
+ if (prior && JSON.stringify(prior) !== JSON.stringify(source)) {
163
+ throw new Error(`Registry release source identity disagrees within ${buildPackage.sourceRoot}`);
164
+ }
165
+ sourcesByRoot.set(buildPackage.sourceRoot, source);
166
+ }
167
+ const sourceEntries = [...sourcesByRoot.entries()].sort(([left], [right]) => left.localeCompare(right));
168
+ const buildPackageByName = new Map(options.buildPackages.map((buildPackage) => [
169
+ buildPackage.name,
170
+ buildPackage,
171
+ ]));
172
+ if (options.buildPackageOrder.length !== options.buildPackages.length ||
173
+ new Set(options.buildPackageOrder).size !== options.buildPackages.length ||
174
+ options.buildPackageOrder.some((name) => !buildPackageByName.has(name))) {
175
+ throw new Error("Registry release build order must name every build package exactly once");
176
+ }
177
+ const publishPackageNames = new Set();
178
+ for (const publishPackage of options.packages) {
179
+ if (publishPackageNames.has(publishPackage.name)) {
180
+ throw new Error("Registry release publish packages must name each output exactly once");
181
+ }
182
+ publishPackageNames.add(publishPackage.name);
183
+ const buildPackage = buildPackageByName.get(publishPackage.name);
184
+ if (!buildPackage ||
185
+ buildPackage.version !== publishPackage.version ||
186
+ buildPackage.packageDir !== publishPackage.packageDir ||
187
+ buildPackage.sourceRoot !== publishPackage.sourceRoot ||
188
+ JSON.stringify(buildPackage.workspaceProvenance) !==
189
+ JSON.stringify(publishPackage.workspaceProvenance)) {
190
+ throw new Error(`Registry release publish package must be an exact member of the build closure: ${publishPackage.name}`);
191
+ }
192
+ }
193
+ const sourceCheckouts = sourceEntries.map(([sourceRoot, source]) => {
194
+ const directory = paths
195
+ .relative(options.workspaceRoot, sourceRoot)
196
+ .replaceAll("\\", "/");
197
+ if (directory === ".." ||
198
+ directory.startsWith("../") ||
199
+ directory.startsWith("..\\") ||
200
+ paths.isAbsolute(directory)) {
201
+ throw new Error(`Registry release package source must be nested in lock workspace: ${sourceRoot}`);
202
+ }
203
+ return {
204
+ sourceRepositoryId: source.repositoryId,
205
+ directory: !directory || directory === "." ? "." : directory,
206
+ };
207
+ });
208
+ const rootSourceGitHead = options.expectedGitHeads.get(options.workspaceRoot);
209
+ if (rootSourceGitHead && rootSourceGitHead !== options.lockGitHead) {
210
+ throw new Error("Registry release root lock must use the verified package source snapshot");
211
+ }
212
+ return {
213
+ contractVersion: 2,
214
+ sources: sourceEntries.map(([, source]) => source),
215
+ buildPackages: options.buildPackageOrder
216
+ .map((name) => buildPackageByName.get(name))
217
+ .map((buildPackage) => ({
218
+ sourceRepositoryId: buildPackage.workspaceProvenance.repositoryId,
219
+ directory: buildPackage.workspaceProvenance.directory,
220
+ packageName: buildPackage.name,
221
+ version: buildPackage.version,
222
+ })),
223
+ packages: options.packages.map((publishPackage) => ({
224
+ sourceRepositoryId: publishPackage.workspaceProvenance.repositoryId,
225
+ directory: publishPackage.workspaceProvenance.directory,
226
+ packageName: publishPackage.name,
227
+ version: publishPackage.version,
228
+ })),
229
+ lock: {
230
+ source: {
231
+ repositoryId: options.lockSource.repositoryId,
232
+ cloneUrl: canonicalForgeRepositoryIdentity(options.lockSource.repository).repository,
233
+ sha: options.lockGitHead,
234
+ },
235
+ workspaceManifestPath: options.workspaceManifestPath ?? DEFAULT_REGISTRY_RELEASE_MANIFEST,
236
+ workspaceManifestSha256: options.workspaceManifestSha256.toLowerCase(),
237
+ lockfilePath: options.lockfilePath ?? "release/registry/bun.lock",
238
+ lockfileSha256: options.lockfileSha256.toLowerCase(),
239
+ sourceCheckouts,
240
+ },
241
+ };
242
+ }
243
+ //# sourceMappingURL=release-workspace.js.map