@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,397 @@
1
+ import { chmodChecked, resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
2
+ import { getRuntimePath } from "@vibesdotdev/paths";
3
+ import { z } from "zod/v4";
4
+ import { runRuntimeCommand } from "../../shared/runtime-execution.js";
5
+ import { runPublisherConsumerSmoke } from "./consumer-smoke.js";
6
+ import { planReleaseConsumerRootImports, runReleaseConsumerRootImports, runReleaseConsumerSurfaceProof, } from "./consumer-surfaces.js";
7
+ import { effectiveExternalSelector, } from "./external-requirements.js";
8
+ import { isolatedNpmPackEnv, npmTarballFilename, releaseConsumerNpmInstallFailure, runNpm, } from "./npm-exec.js";
9
+ import { acquireExternalProofClosure, externalProofPackageNames, internalOptionalPeerRequirements, releaseConsumerPlanRecord, } from "./proof-external-closure.js";
10
+ import { verifyInstalledReleaseGraph } from "./proof-installed-graph.js";
11
+ import { readProofArtifactManifest, startProofLocalRegistry, writeReleaseConsumerSourceNpmrc, } from "./proof-registry.js";
12
+ import { createProofSourceCredentials } from "./proof-source-credentials.js";
13
+ import { PUBLIC_NPM_REGISTRY } from "./registry-credentials.js";
14
+ import { cleanupSensitiveTempRoot, createReleaseTempRoot, SENSITIVE_TEMP_ROOT_PREFIXES, } from "./sensitive-temp.js";
15
+ import { parsePublisherManifest, parseWorkspaceRootManifest, publisherManifestSchema, } from "./publisher-manifest.js";
16
+ import { hostPlatformFacts, isPackagePlatformCompatible } from "./workspace-discovery.js";
17
+ // Manifest admission permits nested overrides; this proof supports only nonempty
18
+ // flat selectors and must refuse other admitted forms before installation.
19
+ const rootOverrideSelectorSchema = publisherManifestSchema.shape.overrides
20
+ .unwrap().valueType.pipe(z.string().refine((selector) => selector.trim().length > 0));
21
+ // Owner profiles certify artifact usability on every release, independently of
22
+ // the optional Registry authority lease/replay/expiry exercises.
23
+ export async function runSealedReleaseConsumerChecks(options) {
24
+ const members = options.sealed
25
+ .filter((result) => !result.skipped && Boolean(result.tarball))
26
+ .map(({ name, version, tarball }) => ({ name, version, tarball }));
27
+ const consumerSmoke = await runPublisherConsumerSmoke({
28
+ ...options.smoke,
29
+ members,
30
+ });
31
+ if (!options.smoke.quiet && members.length > 0) {
32
+ options.smoke.ui.success(`Publisher consumer smoke installed ${consumerSmoke.installed} package(s) and imported ${consumerSmoke.imports.length} export(s) in ${consumerSmoke.durationMs}ms.`);
33
+ }
34
+ if (!options.smoke.quiet)
35
+ options.smoke.ui.info("Proving the packed artifacts install as a consumer...");
36
+ const consumerProof = await runReleaseConsumerProof(options.proof);
37
+ return { consumerSmoke, consumerProof };
38
+ }
39
+ /**
40
+ * Install the sealed release set, plus its exact external closure, into a
41
+ * clean consumer from a local proof registry and verify the result: every
42
+ * resolution, profile import, declared surface, SSR probe, bin and withhold.
43
+ */
44
+ export async function runReleaseConsumerProof(options) {
45
+ // Validate every profile owner even when the profile only carries SSR or
46
+ // withhold probes and therefore has no direct import specifiers.
47
+ const rootImportPlans = planReleaseConsumerRootImports({
48
+ profiles: options.plan.profiles,
49
+ workspace: options.workspace,
50
+ });
51
+ const binNames = options.plan.publishNodes.flatMap((node) => {
52
+ const manifest = parsePublisherManifest(options.workspace.get(node.name)?.manifest ?? {});
53
+ const bin = publisherManifestSchema.shape.bin.unwrap();
54
+ return z.union([
55
+ bin.options[0].transform(() => [node.name.split("/").at(-1)]),
56
+ bin.options[1].transform((entries) => Object.keys(entries)),
57
+ ]).parse(manifest.bin ?? {}).sort();
58
+ });
59
+ const sourceRegistry = options.sourceRegistry ?? {
60
+ defaultRegistry: PUBLIC_NPM_REGISTRY,
61
+ };
62
+ let npmrcPath = "";
63
+ const credentials = createProofSourceCredentials({
64
+ runtime: options.runtime,
65
+ sourceRegistry,
66
+ npmrcPath: () => npmrcPath,
67
+ now: options.now,
68
+ });
69
+ const proofRoot = await createReleaseTempRoot(options.runtime, options.workspaceRoot, SENSITIVE_TEMP_ROOT_PREFIXES.consumer);
70
+ const paths = await getRuntimePath(options.runtime);
71
+ const hostFiles = await resolveFileSystemAdapter(options.runtime, { binding: false });
72
+ const workspaceFiles = await resolveFileSystemAdapter(options.runtime);
73
+ const externalRoot = paths.join(proofRoot, "external");
74
+ const consumerDir = paths.join(proofRoot, "consumer");
75
+ const cacheDir = paths.join(proofRoot, "cache");
76
+ const homeDir = paths.join(proofRoot, "home");
77
+ npmrcPath = paths.join(proofRoot, "npmrc");
78
+ const npmPaths = { homeDir, cacheDir, npmrcPath };
79
+ const cleanupRedactValues = credentials.redactValues;
80
+ let closeProofRegistry = async () => { };
81
+ let primaryFailure;
82
+ try {
83
+ const rootManifest = parseWorkspaceRootManifest(JSON.parse(z.string().parse(await workspaceFiles.readFile(paths.join(options.workspaceRoot, "package.json"), "utf8"))));
84
+ const rootOverrides = rootManifest.overrides ?? {};
85
+ for (const [name, selector] of Object.entries(rootOverrides)) {
86
+ if (!rootOverrideSelectorSchema.safeParse(selector).success) {
87
+ throw new Error(`Offline release proof does not support nested or non-string root override ${name}`);
88
+ }
89
+ }
90
+ await Promise.all([
91
+ hostFiles.mkdir(externalRoot, { recursive: true }),
92
+ hostFiles.mkdir(consumerDir, { recursive: true }),
93
+ hostFiles.mkdir(cacheDir, { recursive: true }),
94
+ hostFiles.mkdir(homeDir, { recursive: true }),
95
+ options.sourceRegistry
96
+ ? writeReleaseConsumerSourceNpmrc(npmrcPath, credentials.sourceRegistryWithCurrentTokens(), options.runtime)
97
+ : hostFiles.writeFile(npmrcPath, `registry=${PUBLIC_NPM_REGISTRY}\n`, {
98
+ mode: 0o600,
99
+ }),
100
+ ]);
101
+ await chmodChecked(hostFiles, npmrcPath, 0o600);
102
+ const internalArtifacts = await readSealedReleaseArtifacts({
103
+ artifactDir: options.artifactDir,
104
+ plan: options.plan,
105
+ execution: options.execution,
106
+ runtime: options.runtime,
107
+ reusedTarballs: options.reusedTarballs,
108
+ });
109
+ const internalNames = new Set(options.plan.publishNodes.map((node) => node.name));
110
+ const internalVersions = new Map(options.plan.publishNodes.map((node) => [node.name, node.version]));
111
+ const optionalPeerRequirements = internalOptionalPeerRequirements({
112
+ artifacts: internalArtifacts,
113
+ internalVersions,
114
+ rootOverrides,
115
+ });
116
+ if ((options.plan.externalRequirements.length > 0 ||
117
+ optionalPeerRequirements.length > 0) &&
118
+ !options.sourceRegistry) {
119
+ throw new Error("Offline release proof requires an explicit source Registry for external packages");
120
+ }
121
+ const closure = await acquireExternalProofClosure({
122
+ plan: options.plan,
123
+ workspace: options.workspace,
124
+ rootOverrides,
125
+ internalNames,
126
+ internalVersions,
127
+ optionalPeerRequirements,
128
+ sealedWorkspaceInputs: options.sealedWorkspaceInputs,
129
+ sourceRegistry,
130
+ credentials,
131
+ proofRoot,
132
+ externalRoot,
133
+ env: isolatedNpmPackEnv(npmPaths),
134
+ execution: options.execution,
135
+ runtime: options.runtime,
136
+ });
137
+ const externalArtifacts = [...closure.nodes.values()]
138
+ .filter((node) => {
139
+ const host = hostPlatformFacts(options.runtime);
140
+ return isPackagePlatformCompatible(node.manifest, host.platform, host.architecture);
141
+ })
142
+ .map((node) => ({ manifest: node.manifest, tarball: node.tarball }));
143
+ const proofRegistry = await startProofLocalRegistry(options.runtime, [...internalArtifacts, ...externalArtifacts], { upstreamRegistry: PUBLIC_NPM_REGISTRY });
144
+ closeProofRegistry = proofRegistry.close;
145
+ await hostFiles.writeFile(npmrcPath, `registry=${proofRegistry.origin}\naudit=false\nfund=false\n`);
146
+ const proofDependencies = profileProofDependencies(options.plan, rootOverrides);
147
+ const externalPackageNames = externalProofPackageNames(options.plan, closure);
148
+ const proofOverrides = Object.fromEntries(Object.entries(rootOverrides).filter(([name]) => externalPackageNames.has(name)));
149
+ const internalInstallRoots = [
150
+ ...new Set([
151
+ ...options.plan.roots,
152
+ ...options.plan.publishNodes
153
+ .filter((node) => node.roles.includes("proof"))
154
+ .map((node) => node.name),
155
+ ]),
156
+ ].sort();
157
+ const internalProofDependencies = Object.fromEntries(internalInstallRoots.map((name) => {
158
+ const node = options.plan.publishNodes.find((candidate) => candidate.name === name);
159
+ if (!node)
160
+ throw new Error(`Release proof cannot install unplanned root ${name}`);
161
+ return [name, node.version];
162
+ }));
163
+ const consumerManifest = `${JSON.stringify({ private: true, type: "module", dependencies: { ...proofDependencies, ...internalProofDependencies }, overrides: proofOverrides }, null, 2)}\n`;
164
+ await hostFiles.writeFile(paths.join(options.artifactDir, "release-consumer-plan.json"), `${JSON.stringify(releaseConsumerPlanRecord({
165
+ internalInstallRoots,
166
+ consumerOverrides: proofOverrides,
167
+ closure,
168
+ }), null, 2)}\n`);
169
+ await hostFiles.writeFile(paths.join(consumerDir, "package.json"), consumerManifest);
170
+ await installReleaseConsumer({
171
+ consumerDir,
172
+ registryOrigin: proofRegistry.origin,
173
+ npmPaths,
174
+ redactValues: cleanupRedactValues,
175
+ execution: options.execution,
176
+ runtime: options.runtime,
177
+ });
178
+ const graph = await verifyInstalledReleaseGraph({
179
+ runtime: options.runtime,
180
+ consumerDir,
181
+ plan: options.plan,
182
+ internalProofDependencies,
183
+ rootOverrides,
184
+ sourceRegistry,
185
+ closure,
186
+ });
187
+ await runReleaseConsumerRootImports({
188
+ plans: rootImportPlans,
189
+ consumerDir,
190
+ execution: options.execution,
191
+ runtime: options.runtime,
192
+ });
193
+ const imports = await runReleaseConsumerSurfaceProof({
194
+ plan: options.plan,
195
+ consumerDir,
196
+ internalNames,
197
+ execution: options.execution,
198
+ runtime: options.runtime,
199
+ });
200
+ const bins = await proveReleaseConsumerBins({
201
+ names: binNames,
202
+ consumerDir,
203
+ execution: options.execution,
204
+ runtime: options.runtime,
205
+ });
206
+ const withheld = await proveReleaseConsumerWithholds({
207
+ plan: options.plan,
208
+ proofRoot,
209
+ consumerManifest,
210
+ artifacts: [...internalArtifacts, ...externalArtifacts],
211
+ npmPaths,
212
+ execution: options.execution,
213
+ runtime: options.runtime,
214
+ });
215
+ return {
216
+ installed: internalArtifacts.length + closure.nodes.size,
217
+ imports,
218
+ bins,
219
+ withheld,
220
+ ...graph,
221
+ };
222
+ }
223
+ catch (error) {
224
+ primaryFailure = { error };
225
+ throw error;
226
+ }
227
+ finally {
228
+ await cleanupSensitiveTempRoot({
229
+ runtime: options.runtime,
230
+ root: proofRoot,
231
+ npmrcPath,
232
+ expectedPrefix: SENSITIVE_TEMP_ROOT_PREFIXES.consumer,
233
+ workspaceRoot: options.workspaceRoot,
234
+ primaryFailure,
235
+ close: [closeProofRegistry],
236
+ redactValues: cleanupRedactValues,
237
+ });
238
+ }
239
+ }
240
+ /** npm environment for installing from the local proof registry, never a proxy. */
241
+ function proofInstallEnv(paths) {
242
+ return {
243
+ ...isolatedNpmPackEnv(paths),
244
+ HTTP_PROXY: "",
245
+ HTTPS_PROXY: "",
246
+ NO_PROXY: "127.0.0.1,localhost",
247
+ };
248
+ }
249
+ const PROOF_INSTALL_ARGS = [
250
+ "--ignore-scripts",
251
+ "--no-audit",
252
+ "--no-fund",
253
+ "--package-lock=false",
254
+ ];
255
+ /**
256
+ * Tarballs in `artifactDir` that the release plan does not account for.
257
+ *
258
+ * `artifactDir` holds one tarball per publish node (packed, or a reused version
259
+ * the availability step moved in) plus reused versions of packages outside the
260
+ * plan, which the proof installs as inputs. Anything else — a leftover run, a
261
+ * superseded published version — is unexpected and fails the proof.
262
+ */
263
+ export function unexpectedReleaseTarballEntries(entries, plannedTarballs, reusedTarballs = new Set()) {
264
+ return entries
265
+ .filter((entry) => entry.endsWith(".tgz") &&
266
+ !plannedTarballs.has(entry) &&
267
+ !reusedTarballs.has(entry))
268
+ .sort();
269
+ }
270
+ /** Every planned artifact in `artifactDir`, exactly one per publish node. */
271
+ async function readSealedReleaseArtifacts(options) {
272
+ const plannedTarballs = new Set(options.plan.publishNodes.map((node) => npmTarballFilename(node.name, node.version)));
273
+ const paths = await getRuntimePath(options.runtime);
274
+ const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
275
+ const unexpected = unexpectedReleaseTarballEntries((await files.list(options.artifactDir)).map((entry) => entry.name), plannedTarballs, options.reusedTarballs);
276
+ if (unexpected.length > 0) {
277
+ throw new Error(`Release proof found ${unexpected.length} artifact(s) outside the ${plannedTarballs.size}-package plan: ${unexpected.join(", ")}`);
278
+ }
279
+ const internalArtifacts = await Promise.all(options.plan.publishNodes.map(async (node) => {
280
+ const tarball = paths.join(options.artifactDir, npmTarballFilename(node.name, node.version));
281
+ const manifest = await readProofArtifactManifest(options.execution, options.runtime, tarball);
282
+ if (manifest.name !== node.name || manifest.version !== node.version) {
283
+ throw new Error(`Release proof expected ${node.name}@${node.version}, artifact contains ${manifest.name}@${manifest.version}`);
284
+ }
285
+ return { manifest, tarball };
286
+ }));
287
+ return internalArtifacts;
288
+ }
289
+ /** Root selectors the profiles require of external packages. */
290
+ function profileProofDependencies(plan, rootOverrides) {
291
+ const proofDependencies = {};
292
+ for (const requirement of plan.externalRequirements) {
293
+ if (requirement.requiredByProfiles.length === 0)
294
+ continue;
295
+ const selector = effectiveExternalSelector(rootOverrides, requirement.name, requirement.selector);
296
+ const existing = proofDependencies[requirement.name];
297
+ if (existing && existing !== selector) {
298
+ throw new Error(`Release proof profiles require incompatible root selectors for ${requirement.name}: ${existing}, ${selector}`);
299
+ }
300
+ proofDependencies[requirement.name] = selector;
301
+ }
302
+ return proofDependencies;
303
+ }
304
+ /**
305
+ * Install the consumer once with the declared proof-install arguments.
306
+ * Failures remain fatal, with a redacted message and the original cause.
307
+ */
308
+ async function installReleaseConsumer(options) {
309
+ const proofInstallArgs = [
310
+ "install",
311
+ "--registry",
312
+ options.registryOrigin,
313
+ ...PROOF_INSTALL_ARGS,
314
+ ];
315
+ try {
316
+ await runNpm(options.execution, proofInstallArgs, {
317
+ runtime: options.runtime,
318
+ cwd: options.consumerDir,
319
+ env: proofInstallEnv(options.npmPaths),
320
+ quiet: true,
321
+ redactValues: options.redactValues,
322
+ });
323
+ }
324
+ catch (error) {
325
+ throw new Error(releaseConsumerNpmInstallFailure(error, options.redactValues).message, { cause: error });
326
+ }
327
+ }
328
+ /** Run every declared bin of the release set with `--help`. */
329
+ async function proveReleaseConsumerBins(options) {
330
+ const paths = await getRuntimePath(options.runtime);
331
+ const bins = [];
332
+ for (const name of options.names) {
333
+ const binPath = paths.join(options.consumerDir, "node_modules", ".bin", name);
334
+ const result = await runRuntimeCommand({
335
+ runtime: options.runtime,
336
+ execution: options.execution,
337
+ command: "bun",
338
+ args: [binPath, "--help"],
339
+ cwd: options.consumerDir,
340
+ });
341
+ if (result.code !== 0)
342
+ throw new Error(`Installed release bin ${name} failed: ${result.stderr}`);
343
+ bins.push(name);
344
+ }
345
+ return bins;
346
+ }
347
+ /**
348
+ * Prove each profile's withheld packages are load-bearing: the same consumer
349
+ * must fail to install, naming them, when only they are missing.
350
+ */
351
+ async function proveReleaseConsumerWithholds(options) {
352
+ const withheld = [
353
+ ...new Set(options.plan.profiles.flatMap((profile) => profile.withholdPackages ?? [])),
354
+ ].sort();
355
+ if (withheld.length === 0)
356
+ return withheld;
357
+ const paths = await getRuntimePath(options.runtime);
358
+ const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
359
+ const withholdDir = paths.join(options.proofRoot, "withhold-consumer");
360
+ await files.mkdir(withholdDir, { recursive: true });
361
+ await files.writeFile(paths.join(withholdDir, "package.json"), options.consumerManifest);
362
+ const withheldNames = new Set(withheld);
363
+ for (const name of withheldNames) {
364
+ if (!options.plan.publishNodes.some((candidate) => candidate.name === name) &&
365
+ !options.plan.externalRequirements.some((candidate) => candidate.name === name)) {
366
+ throw new Error(`Release proof cannot withhold unplanned package ${name}`);
367
+ }
368
+ }
369
+ // Public packages proxy upstream exactly as in the real proof, so the
370
+ // only thing this install lacks is the withheld set.
371
+ const withheldRegistry = await startProofLocalRegistry(options.runtime, options.artifacts.filter((artifact) => !withheldNames.has(artifact.manifest.name)), { upstreamRegistry: PUBLIC_NPM_REGISTRY, withhold: withheldNames });
372
+ let result;
373
+ try {
374
+ result = await runNpm(options.execution, ["install", "--registry", withheldRegistry.origin, ...PROOF_INSTALL_ARGS], {
375
+ runtime: options.runtime,
376
+ cwd: withholdDir,
377
+ env: proofInstallEnv(options.npmPaths),
378
+ quiet: true,
379
+ allowFailure: true,
380
+ });
381
+ }
382
+ finally {
383
+ await withheldRegistry.close();
384
+ }
385
+ if (result.status === 0) {
386
+ throw new Error(`Release proof unexpectedly installed without ${withheld.join(", ")}`);
387
+ }
388
+ const failure = `${result.stdout}\n${result.stderr}`.toLowerCase();
389
+ for (const name of withheld) {
390
+ if (!failure.includes(name.toLowerCase()) &&
391
+ !failure.includes(name.replace("/", "%2f").toLowerCase())) {
392
+ throw new Error(`Release proof failed for an unrelated reason while withholding ${name}:\n${`${result.stdout}\n${result.stderr}`.trim().slice(-2000)}`);
393
+ }
394
+ }
395
+ return withheld;
396
+ }
397
+ //# sourceMappingURL=release-consumer-proof.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release-consumer-proof.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/release-consumer-proof.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mC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vI,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { type RuntimeRef } from "@vibesdotdev/kernel";
2
+ import { type ChildEnvRuntime } from "../../shared/runtime-execution.ts";
3
+ /** The sealed release executor, relative to the developer workspace. */
4
+ export declare const RELEASE_EXECUTOR_PATH = "repos/platform/framework/infra-deploy/src/cli/npm/infra-npm-publish.cli-command.impl.ts";
5
+ /**
6
+ * The Registry package the sealed executor must load, relative to the workspace.
7
+ */
8
+ export declare const RELEASE_REGISTRY_PATH = "repos/platform/framework/registry";
9
+ /** The framework repository a sealed release executor must come from. */
10
+ export declare const CANONICAL_FRAMEWORK_REPOSITORY = "ssh://git@git.vibes.dev/vibesdotdev/framework.git";
11
+ /**
12
+ * Proves that the code performing a sealed release comes from the same exact
13
+ * workspace as its manifest and lock. The ambient CLI may dispatch here, but
14
+ * neither its Infra Deploy implementation nor its Registry package may do the
15
+ * release work.
16
+ */
17
+ export declare function assertRegistryReleaseExecutorProvenance(options: {
18
+ runtime: ChildEnvRuntime;
19
+ workspaceRoot: string;
20
+ infraDeployModuleUrl: string;
21
+ registryModuleUrl: string;
22
+ }): Promise<{
23
+ workspaceRoot: string;
24
+ infraDeployModulePath: string;
25
+ registryModulePath: string;
26
+ }>;
27
+ /** The repository URL a framework package.json declares. */
28
+ export declare function frameworkRepositoryUrlFromManifest(manifest: unknown): string;
29
+ /** The release executor, relative to the framework checkout. */
30
+ export declare const FRAMEWORK_EXECUTOR_RELATIVE_PATH = "infra-deploy/src/cli/npm/infra-npm-publish.cli-command.impl.ts";
31
+ /** The Registry package, relative to the framework checkout. */
32
+ export declare const FRAMEWORK_REGISTRY_RELATIVE_PATH = "registry";
33
+ /** Throw unless the manifest declares the canonical framework repository. */
34
+ export declare function assertCanonicalFrameworkExecutorIdentity(manifest: unknown): void;
35
+ /**
36
+ * The framework checkout a sealed follow uses: nested under the workspace, else the workspace.
37
+ */
38
+ export declare function resolveFollowedFrameworkCheckout(runtime: ChildEnvRuntime, workspaceRoot: string): Promise<string>;
39
+ /**
40
+ * Throw unless the followed checkout is its own Git top-level with the canonical
41
+ * framework Forge remote.
42
+ */
43
+ export declare function assertFollowedFrameworkExecutorIdentity(workspaceRoot: string,
44
+ /** The runtime whose logger reports a remote that is not a Forge identity. */
45
+ runtime: RuntimeRef): Promise<void>;
46
+ //# sourceMappingURL=release-executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release-executor.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/release-executor.ts"],"names":[],"mappings":"AAQA,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,mCAAmC,CAAC;AAQ3C,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,4FACyD,CAAC;AAC5F;;GAEG;AACH,eAAO,MAAM,qBAAqB,sCAAsC,CAAC;AACzE,yEAAyE;AACzE,eAAO,MAAM,8BAA8B,sDACU,CAAC;AAqCtD;;;;;GAKG;AACH,wBAAsB,uCAAuC,CAAC,OAAO,EAAE;IACrE,OAAO,EAAE,eAAe,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GAAG,OAAO,CAAC;IACV,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC,CAqCD;AAED,4DAA4D;AAC5D,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CA4B5E;AAED,gEAAgE;AAChE,eAAO,MAAM,gCAAgC,mEACqB,CAAC;AACnE,gEAAgE;AAChE,eAAO,MAAM,gCAAgC,aAAa,CAAC;AA2C3D,6EAA6E;AAC7E,wBAAgB,wCAAwC,CACtD,QAAQ,EAAE,OAAO,GAChB,IAAI,CAkBN;AAED;;GAEG;AACH,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,eAAe,EACxB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,CAQjB;AAED;;;GAGG;AACH,wBAAsB,uCAAuC,CAC3D,aAAa,EAAE,MAAM;AACrB,8EAA8E;AAC9E,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,IAAI,CAAC,CAwEf"}
@@ -0,0 +1,181 @@
1
+ /**
2
+ * Sealed release executor identity: the canonical framework checkout that is
3
+ * allowed to perform Registry release work, and proof that the running modules
4
+ * are that checkout's.
5
+ */
6
+ import { realpathChecked, resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
7
+ import { GIT_CHILD_ENV } from "@vibesdotdev/git-operations/core";
8
+ import { getRuntimePath } from "@vibesdotdev/paths";
9
+ import { CapabilityError, settleNow, valueFreeFailure, } from "@vibesdotdev/kernel";
10
+ import { getRuntimeExecution } from "@vibesdotdev/kernel/execution";
11
+ import { JsonObjectSchema } from "@vibesdotdev/kernel/schemas/json";
12
+ import { z } from "zod/v4";
13
+ import { infraDeployLogger } from "../../../logger.js";
14
+ import { runRuntimeCommand, } from "../../shared/runtime-execution.js";
15
+ import { canonicalForgeRepositoryIdentity } from "./forge-source-identity.js";
16
+ import { isWithinDirectory, pathExists, resolveOnDiskPath, } from "./fs-paths.js";
17
+ /** The sealed release executor, relative to the developer workspace. */
18
+ export const RELEASE_EXECUTOR_PATH = "repos/platform/framework/infra-deploy/src/cli/npm/infra-npm-publish.cli-command.impl.ts";
19
+ /**
20
+ * The Registry package the sealed executor must load, relative to the workspace.
21
+ */
22
+ export const RELEASE_REGISTRY_PATH = "repos/platform/framework/registry";
23
+ /** The framework repository a sealed release executor must come from. */
24
+ export const CANONICAL_FRAMEWORK_REPOSITORY = "ssh://git@git.vibes.dev/vibesdotdev/framework.git";
25
+ function executorRefusal(message, code, reason, details) {
26
+ if (details === undefined) {
27
+ return new CapabilityError(message, code, { reason });
28
+ }
29
+ return new CapabilityError(message, code, { reason, details });
30
+ }
31
+ /**
32
+ * Proves that the code performing a sealed release comes from the same exact
33
+ * workspace as its manifest and lock. The ambient CLI may dispatch here, but
34
+ * neither its Infra Deploy implementation nor its Registry package may do the
35
+ * release work.
36
+ */
37
+ export async function assertRegistryReleaseExecutorProvenance(options) {
38
+ const pathOwner = await getRuntimePath(options.runtime);
39
+ const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
40
+ const workspaceRoot = await realpathChecked(files, options.workspaceRoot);
41
+ const expectedInfraDeployPath = await realpathChecked(files, pathOwner.join(workspaceRoot, RELEASE_EXECUTOR_PATH));
42
+ const expectedRegistryRoot = await realpathChecked(files, pathOwner.join(workspaceRoot, RELEASE_REGISTRY_PATH));
43
+ const infraDeployModulePath = await resolveOnDiskPath(options.runtime, pathOwner.fileURLToPath(options.infraDeployModuleUrl));
44
+ const registryModulePath = await resolveOnDiskPath(options.runtime, pathOwner.fileURLToPath(options.registryModuleUrl));
45
+ if (infraDeployModulePath !== expectedInfraDeployPath) {
46
+ throw executorRefusal(`Release executor escaped the sealed workspace: expected ${expectedInfraDeployPath}, received ${infraDeployModulePath}`, "PERMISSION_DENIED", "release-executor-escaped", { expected: expectedInfraDeployPath, received: infraDeployModulePath });
47
+ }
48
+ if (!(await isWithinDirectory(options.runtime, expectedRegistryRoot, registryModulePath))) {
49
+ throw executorRefusal(`Registry executor escaped the sealed workspace: expected a module under ${expectedRegistryRoot}, received ${registryModulePath}`, "PERMISSION_DENIED", "registry-executor-escaped", { expected: expectedRegistryRoot, received: registryModulePath });
50
+ }
51
+ return { workspaceRoot, infraDeployModulePath, registryModulePath };
52
+ }
53
+ /** The repository URL a framework package.json declares. */
54
+ export function frameworkRepositoryUrlFromManifest(manifest) {
55
+ const parsed = JsonObjectSchema.safeParse(manifest);
56
+ if (!parsed.success || Array.isArray(parsed.data)) {
57
+ throw executorRefusal("Sealed publish follow requires a framework package.json object", "INVALID_INPUT", "framework-manifest-not-object");
58
+ }
59
+ const asText = z.string().safeParse(parsed.data.repository);
60
+ let url;
61
+ if (asText.success) {
62
+ url = asText.data;
63
+ }
64
+ else {
65
+ const record = JsonObjectSchema.safeParse(parsed.data.repository);
66
+ if (record.success && !Array.isArray(record.data)) {
67
+ const field = z.string().safeParse(record.data.url);
68
+ if (field.success)
69
+ url = field.data;
70
+ }
71
+ }
72
+ if (!url) {
73
+ throw executorRefusal("Sealed publish follow requires a Forge repository identity on the framework checkout", "INVALID_INPUT", "framework-repository-missing");
74
+ }
75
+ return canonicalForgeRepositoryIdentity(url).repository;
76
+ }
77
+ /** The release executor, relative to the framework checkout. */
78
+ export const FRAMEWORK_EXECUTOR_RELATIVE_PATH = "infra-deploy/src/cli/npm/infra-npm-publish.cli-command.impl.ts";
79
+ /** The Registry package, relative to the framework checkout. */
80
+ export const FRAMEWORK_REGISTRY_RELATIVE_PATH = "registry";
81
+ async function runFrameworkGit(runtime, cwd, args, acceptedExitCodes = [0]) {
82
+ const execution = await getRuntimeExecution(runtime);
83
+ const result = await runRuntimeCommand({
84
+ runtime,
85
+ execution,
86
+ command: "git",
87
+ inheritEnv: GIT_CHILD_ENV,
88
+ args: [...args],
89
+ cwd,
90
+ });
91
+ const code = result.code ?? -1;
92
+ const stdout = result.stdout.trim();
93
+ const stderr = result.stderr.trim();
94
+ if (!acceptedExitCodes.includes(code)) {
95
+ throw executorRefusal(`Sealed publish follow git ${args.join(" ")} failed in ${cwd} (exit ${code})`, "UNAVAILABLE", "framework-git-failed", { cwd, exitCode: String(code) });
96
+ }
97
+ return { code, stdout, stderr };
98
+ }
99
+ function parseGitRemoteUrls(configOutput) {
100
+ const urls = [];
101
+ for (const line of configOutput.split("\n")) {
102
+ const trimmed = line.trim();
103
+ if (!trimmed)
104
+ continue;
105
+ const separator = trimmed.search(/\s+/);
106
+ if (separator <= 0)
107
+ continue;
108
+ urls.push(trimmed.slice(separator).trim());
109
+ }
110
+ return urls;
111
+ }
112
+ /** Throw unless the manifest declares the canonical framework repository. */
113
+ export function assertCanonicalFrameworkExecutorIdentity(manifest) {
114
+ const parsed = JsonObjectSchema.safeParse(manifest);
115
+ if (!parsed.success || Array.isArray(parsed.data)) {
116
+ throw executorRefusal("Sealed publish follow requires a framework package.json object", "INVALID_INPUT", "framework-manifest-not-object");
117
+ }
118
+ const repository = frameworkRepositoryUrlFromManifest(parsed.data);
119
+ if (repository !== CANONICAL_FRAMEWORK_REPOSITORY) {
120
+ throw executorRefusal(`Sealed publish follow requires framework Forge identity ${CANONICAL_FRAMEWORK_REPOSITORY}, received ${repository}`, "INVALID_INPUT", "framework-repository-identity", { expected: CANONICAL_FRAMEWORK_REPOSITORY, received: repository });
121
+ }
122
+ }
123
+ /**
124
+ * The framework checkout a sealed follow uses: nested under the workspace, else the workspace.
125
+ */
126
+ export async function resolveFollowedFrameworkCheckout(runtime, workspaceRoot) {
127
+ const pathOwner = await getRuntimePath(runtime);
128
+ const files = await resolveFileSystemAdapter(runtime, { binding: false });
129
+ const nested = pathOwner.join(workspaceRoot, "repos/platform/framework");
130
+ if (await pathExists(runtime, nested, { binding: false })) {
131
+ return realpathChecked(files, nested);
132
+ }
133
+ return realpathChecked(files, workspaceRoot);
134
+ }
135
+ /**
136
+ * Throw unless the followed checkout is its own Git top-level with the canonical
137
+ * framework Forge remote.
138
+ */
139
+ export async function assertFollowedFrameworkExecutorIdentity(workspaceRoot,
140
+ /** The runtime whose logger reports a remote that is not a Forge identity. */
141
+ runtime) {
142
+ const frameworkRoot = await resolveFollowedFrameworkCheckout(runtime, workspaceRoot);
143
+ const files = await resolveFileSystemAdapter(runtime, { binding: false });
144
+ const topLevel = await realpathChecked(files, (await runFrameworkGit(runtime, frameworkRoot, ["rev-parse", "--show-toplevel"])).stdout);
145
+ if (topLevel !== frameworkRoot) {
146
+ throw executorRefusal(`Sealed publish follow requires nested framework Git top-level ${frameworkRoot}, received ${topLevel}`, "INVALID_INPUT", "framework-git-toplevel", { expected: frameworkRoot, received: topLevel });
147
+ }
148
+ const remoteConfig = await runFrameworkGit(runtime, frameworkRoot, ["config", "--get-regexp", String.raw `^remote\..*\.url$`], [0, 1]);
149
+ const remotes = parseGitRemoteUrls(remoteConfig.stdout);
150
+ const identities = remotes.flatMap((url) => {
151
+ const identity = settleNow(() => canonicalForgeRepositoryIdentity(url).repository);
152
+ if (!identity.ok) {
153
+ // A remote that is not a Forge URL cannot satisfy the canonical-remote check.
154
+ infraDeployLogger(runtime).debug("Framework remote is not a Forge repository identity", {
155
+ url,
156
+ reason: valueFreeFailure(identity.cause).name,
157
+ });
158
+ return [];
159
+ }
160
+ return [identity.value];
161
+ });
162
+ if (!identities.includes(CANONICAL_FRAMEWORK_REPOSITORY)) {
163
+ throw executorRefusal(`Sealed publish follow requires framework Forge remote ${CANONICAL_FRAMEWORK_REPOSITORY}`, "UNAVAILABLE", "framework-remote-missing", { repository: CANONICAL_FRAMEWORK_REPOSITORY });
164
+ }
165
+ const dirty = (await runFrameworkGit(runtime, frameworkRoot, [
166
+ "status",
167
+ "--porcelain",
168
+ "--untracked-files=no",
169
+ "--",
170
+ FRAMEWORK_EXECUTOR_RELATIVE_PATH,
171
+ FRAMEWORK_REGISTRY_RELATIVE_PATH,
172
+ ])).stdout;
173
+ if (dirty) {
174
+ throw executorRefusal(`Sealed publish follow requires a clean framework executor and registry; dirty pathspecs:\n${dirty}`, "PERMISSION_DENIED", "framework-executor-dirty", { pathspecs: dirty });
175
+ }
176
+ const landed = await runFrameworkGit(runtime, frameworkRoot, ["merge-base", "--is-ancestor", "HEAD", "forge/main"], [0, 1, 128]);
177
+ if (landed.code !== 0) {
178
+ throw executorRefusal("Sealed publish follow requires framework HEAD reachable from canonical forge/main", "UNAVAILABLE", "framework-head-unlanded", { repository: CANONICAL_FRAMEWORK_REPOSITORY });
179
+ }
180
+ }
181
+ //# sourceMappingURL=release-executor.js.map