@vibesdotdev/infra-deploy 0.0.2 → 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 (661) 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 +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 +107 -38
  626. package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
  627. package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
  628. package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
  629. package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
  630. package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
  631. package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
  632. package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
  633. package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
  634. package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
  635. package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
  636. package/src/cli/infra.cli-group.descriptor.ts +0 -11
  637. package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
  638. package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
  639. package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
  640. package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
  641. package/src/cli/logs/stream-worker-tail.ts +0 -202
  642. package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
  643. package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
  644. package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
  645. package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
  646. package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
  647. package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
  648. package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
  649. package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
  650. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
  651. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
  652. package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
  653. package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
  654. package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
  655. package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
  656. package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
  657. package/src/cli/shared/discover-deployments.ts +0 -127
  658. package/src/config-loader.ts +0 -179
  659. package/src/index.ts +0 -11
  660. package/src/infra-deploy.plugin.ts +0 -83
  661. package/src/regenerate.ts +0 -230
@@ -0,0 +1,365 @@
1
+ import { resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
2
+ import { getRuntimePath } from "@vibesdotdev/paths";
3
+ import { z } from "zod/v4";
4
+ import { isCanonicalNpmPackageName, } from "@vibesdotdev/registry";
5
+ import { rcompare, satisfies, valid, validRange } from "semver";
6
+ import { mapWithConcurrencyUntilFirstFailure } from "./concurrency.js";
7
+ import { isolatedNpmPackEnv, runNpm, versionSpec, writeTempNpmrc, } from "./npm-exec.js";
8
+ import { buildReleaseConsumerSourceRegistry, readProofArtifactManifest, registryForProofPackage, } from "./proof-registry.js";
9
+ import { inspectRegistryReleaseAvailability, REGISTRY_AVAILABILITY_CONCURRENCY, } from "./registry-availability.js";
10
+ import { npmListPublishedVersions } from "./registry-reads.js";
11
+ import { normalizeRegistryUrl, registryServiceOrigin, } from "./registry-credentials.js";
12
+ import { cleanupSensitiveTempRoot, createReleaseTempRoot, SENSITIVE_TEMP_ROOT_PREFIXES, } from "./sensitive-temp.js";
13
+ import { parseWorkspaceRootManifest, } from "./publisher-manifest.js";
14
+ /**
15
+ * Throw unless an installed/fetched package is the requirement's package and satisfies its selector.
16
+ */
17
+ export function assertExternalPackageSelector(options) {
18
+ const reference = registryExternalReference(options);
19
+ if (options.resolvedName !== reference.packageName ||
20
+ !npmRegistryVersionSatisfiesSelector(options.resolvedVersion, reference.selector)) {
21
+ throw new Error(`Offline release proof selector conflict: ${options.from} -> ${options.name}@${options.selector} resolved to ${options.resolvedName ?? "unknown"}@${options.resolvedVersion}`);
22
+ }
23
+ }
24
+ /** npm's selector semantics, including `*` accepting any valid version. */
25
+ export function npmRegistryVersionSatisfiesSelector(version, selector) {
26
+ return (satisfies(version, selector) ||
27
+ (selector.trim() === "*" && valid(version) !== null));
28
+ }
29
+ /**
30
+ * Parse a requirement's selector (range or `npm:` alias) into the package it fetches.
31
+ */
32
+ export function registryExternalReference(options) {
33
+ if (!isCanonicalNpmPackageName(options.name)) {
34
+ throw new Error(`Offline release proof requires a canonical npm package name: ${options.from} -> ${options.name}@${options.selector}`);
35
+ }
36
+ if (options.selector.trim() && validRange(options.selector)) {
37
+ return {
38
+ packageName: options.name,
39
+ selector: options.selector,
40
+ dependencySelector: options.selector,
41
+ };
42
+ }
43
+ if (options.selector.startsWith("npm:")) {
44
+ const targetSpec = options.selector.slice("npm:".length);
45
+ const slash = targetSpec.startsWith("@") ? targetSpec.indexOf("/") : -1;
46
+ const separator = targetSpec.startsWith("@")
47
+ ? slash >= 0
48
+ ? targetSpec.indexOf("@", slash + 1)
49
+ : -1
50
+ : targetSpec.lastIndexOf("@");
51
+ const packageName = separator > 0 ? targetSpec.slice(0, separator) : "";
52
+ const selector = separator > 0 ? targetSpec.slice(separator + 1) : "";
53
+ if (isCanonicalNpmPackageName(packageName) &&
54
+ selector.trim() &&
55
+ validRange(selector)) {
56
+ return {
57
+ packageName,
58
+ selector,
59
+ dependencySelector: options.selector,
60
+ };
61
+ }
62
+ }
63
+ throw new Error(`Offline release proof requires a semver Registry selector or npm alias: ${options.from} -> ${options.name}@${options.selector}`);
64
+ }
65
+ /**
66
+ * Throw unless the requirement has a canonical name and a supported selector.
67
+ */
68
+ export function assertRegistryExternalSelector(options) {
69
+ registryExternalReference(options);
70
+ }
71
+ /** `npm pack` one external requirement into `downloadDir` from `registry`. */
72
+ export async function runRegistryExternalPack(options, runner = runNpm) {
73
+ const reference = registryExternalReference(options);
74
+ const args = [
75
+ "pack",
76
+ versionSpec(reference.packageName, reference.selector),
77
+ "--json",
78
+ "--ignore-scripts",
79
+ "--pack-destination",
80
+ options.downloadDir,
81
+ "--registry",
82
+ options.registry,
83
+ ];
84
+ return {
85
+ args,
86
+ result: await runner(options.execution, args, {
87
+ runtime: options.runtime,
88
+ cwd: options.proofRoot,
89
+ env: options.env,
90
+ quiet: true,
91
+ allowFailure: true,
92
+ redactValues: options.redactValues,
93
+ }),
94
+ };
95
+ }
96
+ /**
97
+ * Every planned external requirement must be satisfiable by the registry
98
+ * BEFORE anything packs or publishes: a release that records unsatisfiable
99
+ * externals ships uninstallable-in-isolation packages. The planner is pure,
100
+ * so this is the publish flow's own gate (previously externals were only
101
+ * exercised inside the full offline consumer proof).
102
+ */
103
+ export async function assertExternalRequirementsSatisfiable(options) {
104
+ const misses = [];
105
+ const seen = new Map();
106
+ const resolutions = [];
107
+ for (const requirement of options.requirements) {
108
+ const effective = effectiveExternalSelector(options.rootOverrides, requirement.name, requirement.selector);
109
+ // An npm alias (`npm:<target>@<range>`) is judged against its target
110
+ // package's published versions and range, never the alias name.
111
+ const reference = registryExternalReference({
112
+ from: requirement.from,
113
+ name: requirement.name,
114
+ selector: effective,
115
+ });
116
+ let versions = seen.get(reference.packageName);
117
+ if (versions === undefined) {
118
+ versions = await options.listVersions(requirement, effective);
119
+ seen.set(reference.packageName, versions);
120
+ }
121
+ if (versions === null) {
122
+ misses.push({
123
+ ...requirement,
124
+ effectiveSelector: effective,
125
+ reason: "unreadable",
126
+ });
127
+ continue;
128
+ }
129
+ const version = versions
130
+ .filter((candidate) => valid(candidate))
131
+ .filter((candidate) => npmRegistryVersionSatisfiesSelector(candidate, reference.selector))
132
+ .sort(rcompare)[0];
133
+ if (!version) {
134
+ misses.push({
135
+ ...requirement,
136
+ effectiveSelector: effective,
137
+ reason: "no-matching-version",
138
+ });
139
+ continue;
140
+ }
141
+ resolutions.push({ requirement, effectiveSelector: effective, version });
142
+ }
143
+ if (misses.length === 0)
144
+ return resolutions;
145
+ const lines = misses.map((miss) => ` ${miss.from} -> ${miss.name}@${miss.effectiveSelector}` +
146
+ (miss.reason === "unreadable"
147
+ ? " (registry returned no versions: unpublished)"
148
+ : " (no published version satisfies the selector)"));
149
+ throw new Error("Registry cannot satisfy external requirements; publishing would ship " +
150
+ "uninstallable-in-isolation packages. Publish the owning packages first " +
151
+ "(or fix the selectors/overrides):\n" +
152
+ lines.join("\n"));
153
+ }
154
+ /**
155
+ * Workspace-source requirements are release inputs, not implicit outputs. Seal
156
+ * the exact compatible Registry artifact before any build or remote mutation so
157
+ * the later consumer proof cannot resolve a different range winner.
158
+ *
159
+ * Each distinct Registry coordinate is sealed once, however many requirements
160
+ * resolve to it, and coordinates are sealed concurrently, each through its own
161
+ * availability temp root. A package name fixes its Registry, so distinct
162
+ * coordinates are distinct name@version pairs and never fetch the same
163
+ * tarball. Sealed inputs keep requirement order, and a failure is the one the
164
+ * first failing requirement hits.
165
+ */
166
+ export async function sealWorkspaceRegistryInputs(options) {
167
+ const buildPackageByName = new Map(options.buildPackages.map((buildPackage) => [buildPackage.name, buildPackage]));
168
+ const sealingByCoordinate = new Map();
169
+ const inputArtifactDir = (await getRuntimePath(options.runtime)).join(options.artifactDir, "workspace-inputs");
170
+ const workspaceResolutions = options.resolutions.filter((resolution) => resolution.requirement.source === "workspace");
171
+ // A required edge's input must be this source's content; an optional peer or proof peer only
172
+ // needs the newest published version on its line (see `REQUIRED_INPUT_EDGES`).
173
+ const requiredInputs = new Set(workspaceResolutions
174
+ .filter((resolution) => REQUIRED_INPUT_EDGES.has(resolution.requirement.kind))
175
+ .map((resolution) => `${resolution.requirement.name}\0${resolution.version}`));
176
+ return mapWithConcurrencyUntilFirstFailure(workspaceResolutions, REGISTRY_AVAILABILITY_CONCURRENCY, async (resolution) => {
177
+ const buildPackage = buildPackageByName.get(resolution.requirement.name);
178
+ if (!buildPackage) {
179
+ throw new Error(`Registry release lost workspace input ${resolution.requirement.name} from its source build closure`);
180
+ }
181
+ const lookup = resolveRegistryExternalLookup({
182
+ requirement: resolution.requirement,
183
+ effectiveSelector: resolution.effectiveSelector,
184
+ sourceRegistry: options.sourceRegistry,
185
+ });
186
+ if (lookup.packageName !== resolution.requirement.name) {
187
+ throw new Error(`Workspace Registry input ${resolution.requirement.name} cannot resolve through package alias ${lookup.packageName}`);
188
+ }
189
+ const coordinate = `${lookup.registry}\0${lookup.packageName}\0${resolution.version}`;
190
+ let sealing = sealingByCoordinate.get(coordinate);
191
+ if (!sealing) {
192
+ sealing = sealWorkspaceRegistryInput({
193
+ resolution,
194
+ requireSourceMatch: requiredInputs.has(`${resolution.requirement.name}\0${resolution.version}`),
195
+ target: {
196
+ ...buildPackage,
197
+ version: resolution.version,
198
+ registry: lookup.registry,
199
+ roles: ["runtime"],
200
+ },
201
+ inputArtifactDir,
202
+ expectedGitHeads: options.expectedGitHeads,
203
+ workspaceRoot: options.workspaceRoot,
204
+ scope: options.scope,
205
+ readCredential: options.readCredential,
206
+ execution: options.execution,
207
+ runtime: options.runtime,
208
+ });
209
+ sealingByCoordinate.set(coordinate, sealing);
210
+ }
211
+ return { ...resolution, ...(await sealing) };
212
+ });
213
+ }
214
+ /**
215
+ * The edges whose workspace input must be the dependent's source content: a dependency and a
216
+ * non-optional peer, present whenever the dependent loads. An optional peer or a proof profile's
217
+ * optional peer is not a hard requirement (a consumer installs whatever the Registry serves), and a
218
+ * devDependency never reaches a consumer, so those take the newest published version unchecked:
219
+ * testing reaches tui only optionally while tui requires testing, so testing publishes first.
220
+ */
221
+ const REQUIRED_INPUT_EDGES = new Set(["dependency", "peer-dependency"]);
222
+ /** Seal one Registry coordinate: its exact published artifact, reused as-is. */
223
+ async function sealWorkspaceRegistryInput(options) {
224
+ const { resolution, target } = options;
225
+ const availability = await inspectRegistryReleaseAvailability({
226
+ targets: [target],
227
+ expectedGitHeads: options.expectedGitHeads,
228
+ versioning: "exact",
229
+ // A required edge is built against this input's source, so its sealed artifact must be that content.
230
+ requireSourceMatch: options.requireSourceMatch,
231
+ artifactDir: options.inputArtifactDir,
232
+ workspaceRoot: options.workspaceRoot,
233
+ scope: options.scope,
234
+ readCredential: options.readCredential,
235
+ execution: options.execution,
236
+ runtime: options.runtime,
237
+ });
238
+ if (availability.publish.length > 0) {
239
+ throw new Error(`Workspace Registry input ${resolution.requirement.name}@${resolution.effectiveSelector} ` +
240
+ `resolved to ${resolution.version}, but that exact artifact is unavailable. ` +
241
+ "It is a Registry input, not an implicit publish output.");
242
+ }
243
+ const reused = availability.reuse.get(target.name);
244
+ if (!reused?.tarball || !reused.artifactIntegrity) {
245
+ throw new Error(`Registry input seal lost exact artifact evidence for ${target.name}@${target.version}`);
246
+ }
247
+ const manifest = await readProofArtifactManifest(options.execution, options.runtime, reused.tarball);
248
+ if (manifest.name !== target.name || manifest.version !== target.version) {
249
+ throw new Error(`Registry input seal expected ${target.name}@${target.version}, artifact contains ${manifest.name}@${manifest.version}`);
250
+ }
251
+ return {
252
+ version: target.version,
253
+ registry: target.registry,
254
+ integrity: reused.artifactIntegrity,
255
+ repository: target.workspaceProvenance.repository,
256
+ gitHead: reused.gitHead,
257
+ tarball: reused.tarball,
258
+ };
259
+ }
260
+ /**
261
+ * The root `overrides` selector for `name` when set, else the declared selector.
262
+ */
263
+ export function effectiveExternalSelector(overrides, name, declaredSelector) {
264
+ const parsed = z.string().safeParse(overrides[name]);
265
+ return parsed.success && parsed.data.trim()
266
+ ? parsed.data
267
+ : declaredSelector;
268
+ }
269
+ /**
270
+ * The package an external requirement fetches and the source registry it comes from.
271
+ */
272
+ export function resolveRegistryExternalLookup(options) {
273
+ const reference = registryExternalReference({
274
+ ...options.requirement,
275
+ selector: options.effectiveSelector,
276
+ });
277
+ return {
278
+ packageName: reference.packageName,
279
+ registry: registryForProofPackage(reference.packageName, options.sourceRegistry),
280
+ };
281
+ }
282
+ /**
283
+ * Prove every external requirement of `releasePlan` has a published version
284
+ * satisfying its (root-overridden) selector, reading each source registry with
285
+ * the release read token from an owned temporary npm environment.
286
+ */
287
+ export async function resolveReleaseExternalRequirements(options) {
288
+ if (options.releasePlan.externalRequirements.length === 0)
289
+ return [];
290
+ const sourceRegistry = buildReleaseConsumerSourceRegistry({
291
+ targets: options.sourceTargets,
292
+ });
293
+ const paths = await getRuntimePath(options.runtime);
294
+ const workspaceFiles = await resolveFileSystemAdapter(options.runtime);
295
+ const rootPublishManifest = parseWorkspaceRootManifest(JSON.parse(z.string().parse(await workspaceFiles.readFile(paths.join(options.workspaceRoot, "package.json"), "utf8"))));
296
+ const readTempRoot = await createReleaseTempRoot(options.runtime, options.workspaceRoot, SENSITIVE_TEMP_ROOT_PREFIXES.availability);
297
+ const hostFiles = await resolveFileSystemAdapter(options.runtime, { binding: false });
298
+ const readHomeDir = paths.join(readTempRoot, "home");
299
+ const readCacheDir = paths.join(readTempRoot, "cache");
300
+ const readNpmrcPath = paths.join(readTempRoot, "npmrc");
301
+ const readRedact = options.readToken ? [options.readToken] : [];
302
+ try {
303
+ await hostFiles.mkdir(readHomeDir, { recursive: true });
304
+ await hostFiles.mkdir(readCacheDir, { recursive: true });
305
+ await hostFiles.writeFile(paths.join(readTempRoot, "package.json"), '{"private":true}\n');
306
+ await writeTempNpmrc({
307
+ runtime: options.runtime,
308
+ path: readNpmrcPath,
309
+ registry: normalizeRegistryUrl(options.sourceTargets[0]?.registry ?? await registryServiceOrigin(options.runtime)),
310
+ scope: options.scope,
311
+ token: options.readToken,
312
+ homeDir: readHomeDir,
313
+ });
314
+ const readEnv = isolatedNpmPackEnv({
315
+ homeDir: readHomeDir,
316
+ cacheDir: readCacheDir,
317
+ npmrcPath: readNpmrcPath,
318
+ });
319
+ return await assertExternalRequirementsSatisfiable({
320
+ requirements: options.releasePlan.externalRequirements,
321
+ rootOverrides: rootPublishManifest.overrides ?? {},
322
+ listVersions: (requirement, effectiveSelector) => {
323
+ const lookup = resolveRegistryExternalLookup({
324
+ requirement,
325
+ effectiveSelector,
326
+ sourceRegistry,
327
+ });
328
+ return npmListPublishedVersions({
329
+ name: lookup.packageName,
330
+ registry: lookup.registry,
331
+ cwd: readTempRoot,
332
+ env: readEnv,
333
+ execution: options.execution,
334
+ runtime: options.runtime,
335
+ redactValues: readRedact,
336
+ });
337
+ },
338
+ });
339
+ }
340
+ finally {
341
+ await cleanupSensitiveTempRoot({
342
+ runtime: options.runtime,
343
+ root: readTempRoot,
344
+ npmrcPath: readNpmrcPath,
345
+ workspaceRoot: options.workspaceRoot,
346
+ expectedPrefix: SENSITIVE_TEMP_ROOT_PREFIXES.availability,
347
+ redactValues: readRedact,
348
+ });
349
+ }
350
+ }
351
+ /**
352
+ * The version each workspace package's `workspace:` selectors are rewritten to: its source version,
353
+ * else the sealed Registry input a dependent was proven against (an internal dependency outside the
354
+ * release), else the version this release assigns it. A dependency outside the release keeping its
355
+ * source version shipped `^<stale source version>`, which `latest` could satisfy with older content.
356
+ */
357
+ export function workspaceSelectorVersions(options) {
358
+ const versions = new Map(options.sourceVersions);
359
+ for (const input of options.sealedWorkspaceInputs)
360
+ versions.set(input.requirement.name, input.version);
361
+ for (const [name, assignment] of options.assignments)
362
+ versions.set(name, assignment.version);
363
+ return versions;
364
+ }
365
+ //# sourceMappingURL=external-requirements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-requirements.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/external-requirements.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EACL,yBAAyB,GAG1B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,M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,CAAC;YAC7B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,aAAa;YACxB,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,cAAc,EAAE,4BAA4B,CAAC,YAAY;YACzD,YAAY,EAAE,UAAU;SACzB,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAIzC;IACC,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACjD,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,qBAAqB;QAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACvG,KAAK,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,OAAO,CAAC,WAAW;QAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC7F,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Forge source identity: canonical repository URLs, which repository owns each
3
+ * package directory, and the Registry provenance a package publishes with.
4
+ */
5
+ import type { ChildEnvRuntime } from "../../shared/runtime-execution.ts";
6
+ import type { RegistryReleaseWorkspacePackage } from "@vibesdotdev/registry";
7
+ import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
8
+ import type { PackageJson, RegistryForgeSourceIdentity, RegistryWorkspaceProvenance } from "./types.ts";
9
+ /** A manifest's repository URL, from either the string or object form. */
10
+ export declare function repositoryUrl(pkg: Pick<PackageJson, "repository">): string | undefined;
11
+ export declare function canonicalForgeRepositoryIdentity(value: string): {
12
+ repository: string;
13
+ repositoryRef: string;
14
+ };
15
+ /** Registry authority and published metadata share the canonical SSH source identity. */
16
+ export declare function forgeRegistryRepositoryUrl(value: string): string;
17
+ /**
18
+ * The Git repository root that owns `packageDir` within the registered workspace.
19
+ */
20
+ export declare function resolveRegistryOwningRepositoryRoot(options: {
21
+ registeredWorkspaceRoot: string;
22
+ packageDir: string;
23
+ execution: RuntimeExecution;
24
+ /** The runtime child environments are composed from. */
25
+ runtime: ChildEnvRuntime;
26
+ }): Promise<string>;
27
+ /**
28
+ * The owning Git repository root of each package directory within the
29
+ * registered workspace. Git answers ownership (`git rev-parse
30
+ * --show-toplevel` in the package directory, once per distinct directory);
31
+ * nothing walks the filesystem for a `.git` marker. A package whose
32
+ * repository lies outside the registered workspace is refused.
33
+ */
34
+ export declare function resolveRegistryOwningRepositoryRoots(options: {
35
+ registeredWorkspaceRoot: string;
36
+ packageDirs: readonly string[];
37
+ execution: RuntimeExecution;
38
+ /** The runtime child environments are composed from. */
39
+ runtime: ChildEnvRuntime;
40
+ }): Promise<Map<string, string>>;
41
+ /**
42
+ * A source root's canonical Forge repository (from its `forge` remote) and repository id.
43
+ */
44
+ export declare function resolveRegistryForgeSourceIdentity(options: {
45
+ sourceRoot: string;
46
+ execution: RuntimeExecution;
47
+ /** The runtime child environments are composed from. */
48
+ runtime: ChildEnvRuntime;
49
+ resolveRepositoryId(repositoryRef: string): Promise<string>;
50
+ }): Promise<RegistryForgeSourceIdentity>;
51
+ /**
52
+ * The Registry provenance (repository, id, directory) a package publishes with,
53
+ * rejecting manifest claims that contradict its owning Forge repository.
54
+ */
55
+ export declare function resolveRegistryWorkspaceProvenance(options: {
56
+ /** The runtime whose logger reports a repository claim it could not read as a Forge identity. */
57
+ runtime: ChildEnvRuntime;
58
+ workspaceRoot: string;
59
+ packageDir: string;
60
+ workspace: ReadonlyMap<string, RegistryReleaseWorkspacePackage>;
61
+ forgeRepository: string;
62
+ forgeRepositoryId: string;
63
+ }): Promise<RegistryWorkspaceProvenance>;
64
+ //# sourceMappingURL=forge-source-identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forge-source-identity.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm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EAAE,eAAe,CAAC;IACzB,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7D,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAgCvC;AAED;;;GAGG;AACH,wBAAsB,kCAAkC,CAAC,OAAO,EAAE;IAChE,iGAAiG;IACjG,OAAO,EAAE,eAAe,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC;IAChE,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CA0DvC"}
@@ -0,0 +1,201 @@
1
+ import { GIT_CHILD_ENV } from "@vibesdotdev/git-operations/core";
2
+ import { realpathChecked, resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
3
+ import { getRuntimePath } from "@vibesdotdev/paths";
4
+ import { CapabilityError } from "@vibesdotdev/kernel";
5
+ import { z } from "zod/v4";
6
+ import { runRuntimeCommand } from "../../shared/runtime-execution.js";
7
+ import { mapWithConcurrency } from "./concurrency.js";
8
+ /** A manifest's repository URL, from either the string or object form. */
9
+ export function repositoryUrl(pkg) {
10
+ const text = z.string().safeParse(pkg.repository);
11
+ if (text.success)
12
+ return text.data;
13
+ const record = z.object({ url: z.string().optional() }).safeParse(pkg.repository);
14
+ return record.success ? record.data.url : undefined;
15
+ }
16
+ function normalizeRepository(value) {
17
+ return value
18
+ .replace(/^git\+/, "")
19
+ .replace(/\.git$/, "")
20
+ .replace(/\/$/, "");
21
+ }
22
+ /**
23
+ * The canonical SSH clone URL and `owner/name` ref of a Forge repository URL.
24
+ */
25
+ function readForgeRepositoryIdentity(value) {
26
+ const normalized = value.trim().replace(/^git\+/, "");
27
+ let host = "";
28
+ let path = "";
29
+ const url = URL.parse(normalized);
30
+ if (url) {
31
+ host = url.hostname;
32
+ path = url.pathname;
33
+ }
34
+ else {
35
+ const scp = normalized.match(/^(?:[^@\s]+@)?([^:\s]+):(.+)$/);
36
+ if (scp) {
37
+ host = scp[1] ?? "";
38
+ path = scp[2] ?? "";
39
+ }
40
+ }
41
+ const repositoryRef = path
42
+ .replace(/^\//, "")
43
+ .replace(/\.git$/, "")
44
+ .replace(/\/$/, "");
45
+ if (host !== "git.vibes.dev" || !/^[^/\s]+\/[^/\s]+$/.test(repositoryRef)) {
46
+ return undefined;
47
+ }
48
+ return {
49
+ repository: `ssh://git@git.vibes.dev/${repositoryRef}.git`,
50
+ repositoryRef,
51
+ };
52
+ }
53
+ export function canonicalForgeRepositoryIdentity(value) {
54
+ const identity = readForgeRepositoryIdentity(value);
55
+ if (!identity)
56
+ throw new CapabilityError("Registry release requires a canonical Forge remote.", "INVALID_INPUT", { reason: "registry-forge-remote-invalid" });
57
+ return identity;
58
+ }
59
+ /** Registry authority and published metadata share the canonical SSH source identity. */
60
+ export function forgeRegistryRepositoryUrl(value) {
61
+ return canonicalForgeRepositoryIdentity(value).repository;
62
+ }
63
+ /**
64
+ * The Git repository root that owns `packageDir` within the registered workspace.
65
+ */
66
+ export async function resolveRegistryOwningRepositoryRoot(options) {
67
+ return (await resolveRegistryOwningRepositoryRoots({
68
+ registeredWorkspaceRoot: options.registeredWorkspaceRoot,
69
+ packageDirs: [options.packageDir],
70
+ execution: options.execution,
71
+ runtime: options.runtime,
72
+ })).get(options.packageDir);
73
+ }
74
+ /**
75
+ * The owning Git repository root of each package directory within the
76
+ * registered workspace. Git answers ownership (`git rev-parse
77
+ * --show-toplevel` in the package directory, once per distinct directory);
78
+ * nothing walks the filesystem for a `.git` marker. A package whose
79
+ * repository lies outside the registered workspace is refused.
80
+ */
81
+ export async function resolveRegistryOwningRepositoryRoots(options) {
82
+ const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
83
+ const paths = await getRuntimePath(options.runtime);
84
+ const registeredWorkspaceRoot = await realpathChecked(files, options.registeredWorkspaceRoot);
85
+ const within = (path) => {
86
+ const position = paths.relative(registeredWorkspaceRoot, path);
87
+ return (position !== ".." &&
88
+ !position.startsWith("../") &&
89
+ !position.startsWith("..\\") &&
90
+ !paths.isAbsolute(position));
91
+ };
92
+ const canonicalDirs = new Map();
93
+ for (const packageDir of options.packageDirs) {
94
+ const canonical = await realpathChecked(files, packageDir);
95
+ if (!within(canonical)) {
96
+ throw new Error(`Registry package is outside the registered workspace: ${packageDir}`);
97
+ }
98
+ canonicalDirs.set(packageDir, canonical);
99
+ }
100
+ const uniqueDirs = [...new Set(canonicalDirs.values())].sort();
101
+ const ownerEntries = await mapWithConcurrency(uniqueDirs, 8, async (dir) => {
102
+ const result = await runRuntimeCommand({
103
+ runtime: options.runtime,
104
+ execution: options.execution,
105
+ command: "git",
106
+ inheritEnv: GIT_CHILD_ENV,
107
+ args: ["rev-parse", "--show-toplevel"],
108
+ cwd: dir,
109
+ });
110
+ if (result.code !== 0 || !result.stdout.trim()) {
111
+ // Git's own diagnostic is the cause; a path and Git's error carry no remote values.
112
+ throw new Error(`Cannot resolve owning Git repository for ${dir}: git rev-parse exited ${result.code}: ${result.stderr.trim() || "no output"}`);
113
+ }
114
+ const sourceRoot = await realpathChecked(files, result.stdout.trim());
115
+ if (!within(sourceRoot)) {
116
+ throw new Error(`Owning Git repository ${sourceRoot} of ${dir} is outside the registered workspace ${registeredWorkspaceRoot}`);
117
+ }
118
+ return [dir, sourceRoot];
119
+ });
120
+ const owners = new Map(ownerEntries);
121
+ return new Map([...canonicalDirs].map(([packageDir, canonical]) => [packageDir, owners.get(canonical)]));
122
+ }
123
+ /**
124
+ * A source root's canonical Forge repository (from its `forge` remote) and repository id.
125
+ */
126
+ export async function resolveRegistryForgeSourceIdentity(options) {
127
+ const remote = await runRuntimeCommand({
128
+ runtime: options.runtime,
129
+ execution: options.execution,
130
+ command: "git",
131
+ inheritEnv: GIT_CHILD_ENV,
132
+ args: ["remote", "get-url", "forge"],
133
+ cwd: options.sourceRoot,
134
+ });
135
+ if (remote.code !== 0 || !remote.stdout.trim()) {
136
+ throw new Error(`Cannot resolve canonical Forge repository identity for ${options.sourceRoot}`);
137
+ }
138
+ const canonical = canonicalForgeRepositoryIdentity(remote.stdout.trim());
139
+ const repositoryId = await options.resolveRepositoryId(canonical.repositoryRef);
140
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(repositoryId)) {
141
+ throw new Error(`Forge returned an invalid repository id for ${canonical.repositoryRef}`);
142
+ }
143
+ return {
144
+ sourceRoot: options.sourceRoot,
145
+ repository: canonical.repository,
146
+ repositoryId,
147
+ };
148
+ }
149
+ /**
150
+ * The Registry provenance (repository, id, directory) a package publishes with,
151
+ * rejecting manifest claims that contradict its owning Forge repository.
152
+ */
153
+ export async function resolveRegistryWorkspaceProvenance(options) {
154
+ const paths = await getRuntimePath(options.runtime);
155
+ const isCanonicalMirror = (claimed, canonical) => {
156
+ const normalizedClaim = normalizeRepository(claimed);
157
+ const normalizedCanonical = normalizeRepository(canonical);
158
+ if (normalizedClaim === normalizedCanonical)
159
+ return true;
160
+ const canonicalPath = readForgeRepositoryIdentity(normalizedCanonical)?.repositoryRef;
161
+ const claimedForgePath = readForgeRepositoryIdentity(normalizedClaim)?.repositoryRef;
162
+ if (canonicalPath && claimedForgePath && canonicalPath === claimedForgePath)
163
+ return true;
164
+ // GitHub is the declared backup mirror for this Forge workspace. Accept
165
+ // only the exact owner/name identity; staged provenance remains canonical.
166
+ const claimedPath = normalizedClaim.match(/^(?:https?:\/\/|ssh:\/\/|git@)github\.com[/:](.+)$/)?.[1];
167
+ return Boolean(canonicalPath && claimedPath && canonicalPath === claimedPath);
168
+ };
169
+ const identity = {
170
+ repository: canonicalForgeRepositoryIdentity(options.forgeRepository)
171
+ .repository,
172
+ repositoryId: options.forgeRepositoryId,
173
+ };
174
+ const relativeDirectory = paths
175
+ .relative(options.workspaceRoot, options.packageDir)
176
+ .replaceAll("\\", "/");
177
+ if (relativeDirectory === ".." ||
178
+ relativeDirectory.startsWith("../") ||
179
+ relativeDirectory.startsWith("..\\") ||
180
+ paths.isAbsolute(relativeDirectory))
181
+ throw new Error(`Registry package is outside the Forge workspace: ${options.packageDir}`);
182
+ const directory = relativeDirectory || ".";
183
+ const target = [...options.workspace.values()].find((entry) => entry.directory === options.packageDir)?.manifest;
184
+ const claimedRepository = target ? repositoryUrl(target) : undefined;
185
+ const claimedId = target?.vibes?.registry?.repositoryId;
186
+ const claimedDirectory = target?.vibes?.registry?.directory;
187
+ if (claimedRepository &&
188
+ !isCanonicalMirror(claimedRepository, identity.repository)) {
189
+ const claimedOwner = readForgeRepositoryIdentity(claimedRepository)?.repositoryRef.split("/")[0];
190
+ const checkoutOwner = readForgeRepositoryIdentity(identity.repository)?.repositoryRef.split("/")[0];
191
+ const sameOwner = Boolean(claimedOwner && claimedOwner === checkoutOwner);
192
+ if (!sameOwner)
193
+ throw new Error(`Registry repository claim mismatch for ${directory}`);
194
+ }
195
+ if (claimedId && claimedId !== identity.repositoryId)
196
+ throw new Error(`Registry repositoryId claim mismatch for ${directory}`);
197
+ if (claimedDirectory && claimedDirectory !== directory)
198
+ throw new Error(`Registry directory claim mismatch for ${directory}`);
199
+ return { ...identity, directory };
200
+ }
201
+ //# sourceMappingURL=forge-source-identity.js.map