@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,85 @@
1
+ /**
2
+ * Parsing of loosely typed CLI option values and the release contract version.
3
+ */
4
+ import { resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
5
+ import { getRuntimePath } from "@vibesdotdev/paths";
6
+ import { CapabilityError, CaughtFailureSchema, settle, valueFreeFailure } from "@vibesdotdev/kernel";
7
+ import { z } from "zod/v4";
8
+ import { parseWorkspaceRootManifest } from "./publisher-manifest.js";
9
+ /** A trimmed non-empty string option, else undefined. */
10
+ export function readString(value) {
11
+ const parsed = z.string().safeParse(value);
12
+ if (!parsed.success)
13
+ return undefined;
14
+ const trimmed = parsed.data.trim();
15
+ return trimmed.length > 0 ? trimmed : undefined;
16
+ }
17
+ /** CLI/wire contract version. v1 cannot represent a build-only closure. */
18
+ export function parseReleaseContractVersion(value) {
19
+ const parsed = z
20
+ .union([z.null(), z.undefined(), z.number().int(), z.string()])
21
+ .safeParse(value);
22
+ if (!parsed.success) {
23
+ throw new CapabilityError("Registry release contract version must be 1 or 2", "INVALID_INPUT");
24
+ }
25
+ if (parsed.data === null || parsed.data === undefined)
26
+ return 1;
27
+ const asNumber = z.number().safeParse(parsed.data);
28
+ const text = asNumber.success ? String(asNumber.data) : readString(parsed.data);
29
+ if (text === "1")
30
+ return 1;
31
+ if (text === "2")
32
+ return 2;
33
+ throw new CapabilityError("Registry release contract version must be 1 or 2", "INVALID_INPUT");
34
+ }
35
+ /**
36
+ * Release contract version for this run. The CLI flag wins; otherwise the
37
+ * release workspace root declares it via `vibes.release.contractVersion` in
38
+ * its package.json; otherwise v1. An unreadable root manifest or an invalid
39
+ * configured value fails closed with the file named: a release must never
40
+ * silently run under a contract the operator did not choose.
41
+ */
42
+ export async function resolveReleaseContractVersion(options) {
43
+ if (options.flagValue !== undefined && options.flagValue !== null) {
44
+ return parseReleaseContractVersion(options.flagValue);
45
+ }
46
+ const manifestPath = (await getRuntimePath(options.runtime)).join(options.workspaceRoot, "package.json");
47
+ const files = await resolveFileSystemAdapter(options.runtime);
48
+ const read = await settle(async () => JSON.parse(z.string().parse(await files.readFile(manifestPath, "utf8"))));
49
+ if (!read.ok) {
50
+ throw new CapabilityError(`Cannot resolve the release contract version: ${manifestPath} is unreadable`, "INVALID_INPUT", { cause: valueFreeFailure(read.cause) });
51
+ }
52
+ const manifest = parseWorkspaceRootManifest(read.value);
53
+ const configured = manifest.vibes?.release?.contractVersion;
54
+ if (configured === undefined || configured === null)
55
+ return 1;
56
+ try {
57
+ return parseReleaseContractVersion(configured);
58
+ }
59
+ catch (error) {
60
+ throw new CapabilityError(`Registry release contract version must be 1 or 2 (vibes.release.contractVersion in ${manifestPath})`, "INVALID_INPUT", { cause: valueFreeFailure(CaughtFailureSchema.parse(error)) });
61
+ }
62
+ }
63
+ /** A flag option: true for `true`, `"true"` or `"yes"`. */
64
+ export function readBoolean(value) {
65
+ const parsed = z.union([z.literal(true), z.literal("true"), z.literal("yes")]).safeParse(value);
66
+ return parsed.success;
67
+ }
68
+ /** A finite numeric option (number or numeric string), else `fallback`. */
69
+ export function readNumber(value, fallback) {
70
+ const asNumber = z.number().safeParse(value);
71
+ if (asNumber.success && Number.isFinite(asNumber.data))
72
+ return asNumber.data;
73
+ const asText = z.string().safeParse(value);
74
+ if (!asText.success || asText.data.trim().length === 0)
75
+ return fallback;
76
+ const parsed = Number(asText.data);
77
+ return Number.isFinite(parsed) ? parsed : fallback;
78
+ }
79
+ /** `value` floored and clamped at zero; `fallback` when not finite. */
80
+ export function positiveInteger(value, fallback) {
81
+ if (!Number.isFinite(value))
82
+ return fallback;
83
+ return Math.max(0, Math.floor(value));
84
+ }
85
+ //# sourceMappingURL=command-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-options.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/command-options.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Bounded-concurrency mapping used by Registry probes, Git inspection and
3
+ * Registry input sealing.
4
+ */
5
+ export declare function mapWithConcurrency<T, R>(values: readonly T[], limit: number, map: (value: T, index: number) => Promise<R>): Promise<R[]>;
6
+ /**
7
+ * `mapWithConcurrency` for work whose side effects must not outlive a failure
8
+ * (child processes in a temp root the caller removes once this rejects). After
9
+ * the first rejection no further value starts and `signal` aborts, so a started
10
+ * mapping can skip work it no longer needs; every started mapping settles, and
11
+ * then the rejection with the lowest index is rethrown.
12
+ *
13
+ * Values start in index order, so every value below a failing one has started
14
+ * by then, and the error is the one a sequential loop would have thrown, as
15
+ * long as a mapping honours `signal` only where its remaining work cannot
16
+ * reject. A rejection with `signal.reason` is that stop, not a failure.
17
+ */
18
+ export declare function mapWithConcurrencyUntilFirstFailure<T, R>(values: readonly T[], limit: number, map: (value: T, index: number, signal: AbortSignal) => Promise<R>): Promise<R[]>;
19
+ //# sourceMappingURL=concurrency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concurrency.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/concurrency.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAC3C,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAC3C,OAAO,CAAC,CAAC,EAAE,CAAC,CAiBd;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,mCAAmC,CAAC,CAAC,EAAE,CAAC,EAC5D,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,GAChE,OAAO,CAAC,CAAC,EAAE,CAAC,CA0Bd"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Bounded-concurrency mapping used by Registry probes, Git inspection and
3
+ * Registry input sealing.
4
+ */
5
+ import { settle } from "@vibesdotdev/kernel";
6
+ export async function mapWithConcurrency(values, limit, map) {
7
+ const results = [];
8
+ results.length = values.length;
9
+ let cursor = 0;
10
+ const workers = Array.from({ length: Math.min(Math.max(1, limit), values.length) }, async () => {
11
+ while (true) {
12
+ const index = cursor;
13
+ cursor += 1;
14
+ if (index >= values.length)
15
+ return;
16
+ results[index] = await map(values[index], index);
17
+ }
18
+ });
19
+ await Promise.all(workers);
20
+ return results;
21
+ }
22
+ /**
23
+ * `mapWithConcurrency` for work whose side effects must not outlive a failure
24
+ * (child processes in a temp root the caller removes once this rejects). After
25
+ * the first rejection no further value starts and `signal` aborts, so a started
26
+ * mapping can skip work it no longer needs; every started mapping settles, and
27
+ * then the rejection with the lowest index is rethrown.
28
+ *
29
+ * Values start in index order, so every value below a failing one has started
30
+ * by then, and the error is the one a sequential loop would have thrown, as
31
+ * long as a mapping honours `signal` only where its remaining work cannot
32
+ * reject. A rejection with `signal.reason` is that stop, not a failure.
33
+ */
34
+ export async function mapWithConcurrencyUntilFirstFailure(values, limit, map) {
35
+ const stop = new AbortController();
36
+ let failure;
37
+ const settled = await mapWithConcurrency(values, limit, async (value, index) => {
38
+ if (stop.signal.aborted)
39
+ return undefined;
40
+ const outcome = await settle(() => map(value, index, stop.signal));
41
+ if (outcome.ok)
42
+ return { result: outcome.value };
43
+ if (stop.signal.aborted && outcome.cause === stop.signal.reason)
44
+ return undefined;
45
+ if (!failure || index < failure.index)
46
+ failure = { index, cause: outcome.cause };
47
+ stop.abort(new Error("Stopped after an earlier mapping failed"));
48
+ return undefined;
49
+ });
50
+ if (failure) {
51
+ const cause = failure.cause;
52
+ throw cause instanceof Error ? cause : cause.value;
53
+ }
54
+ return settled.map((entry, index) => {
55
+ if (!entry)
56
+ throw new Error(`Mapping ${index} settled without a result`);
57
+ return entry.result;
58
+ });
59
+ }
60
+ //# sourceMappingURL=concurrency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concurrency.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/concurrency.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAAoB,EACpB,KAAa,EACb,GAA4C;IAE5C,MAAM,OAAO,GAAQ,EAAE,CAAC;IACxB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CACxB,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EACvD,KAAK,IAAI,EAAE;QACT,OAAO,IAAI,EAAE,CAAC;YACZ,MAAM,KAAK,GAAG,MAAM,CAAC;YACrB,MAAM,IAAI,CAAC,CAAC;YACZ,IAAI,KAAK,IAAI,MAAM,CAAC,MAAM;gBAAE,OAAO;YACnC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,KAAK,CAAE,EAAE,KAAK,CAAC,CAAC;QACpD,CAAC;IACH,CAAC,CACF,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,mCAAmC,CACvD,MAAoB,EACpB,KAAa,EACb,GAAiE;IAEjE,MAAM,IAAI,GAAG,IAAI,eAAe,EAAE,CAAC;IACnC,IAAI,OAA4D,CAAC;IACjE,MAAM,OAAO,GAAG,MAAM,kBAAkB,CACtC,MAAM,EACN,KAAK,EACL,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QACrB,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,OAAO,SAAS,CAAC;QAC1C,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACnE,IAAI,OAAO,CAAC,EAAE;YAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;QACjD,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,CAAC,MAAM,CAAC,MAAM;YAC7D,OAAO,SAAS,CAAC;QACnB,IAAI,CAAC,OAAO,IAAI,KAAK,GAAG,OAAO,CAAC,KAAK;YACnC,OAAO,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;QAC5C,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC,CAAC;QACjE,OAAO,SAAS,CAAC;IACnB,CAAC,CACF,CAAC;IACF,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC5B,MAAM,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IACrD,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAClC,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,WAAW,KAAK,2BAA2B,CAAC,CAAC;QACzE,OAAO,KAAK,CAAC,MAAM,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Publisher consumer smoke: install the sealed batch as a plain consumer and
3
+ * import every reachable export target, refusing every failed runtime import.
4
+ */
5
+ import type { ChildEnvRuntime } from "../../shared/runtime-execution.ts";
6
+ import type { UIContext } from "@vibesdotdev/cli/providers";
7
+ import type { RegistryPublishManifest } from "@vibesdotdev/registry";
8
+ import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
9
+ import type { ReleaseConsumerSourceRegistry } from "./proof-registry.ts";
10
+ /**
11
+ * Every import-time export-map/main target this package could load at runtime, following
12
+ * the same enumeration `verifyPackedPackage` uses to prove every target
13
+ * exists in the tarball. Wildcard subpaths (`./*`) have no single concrete
14
+ * file to import, and non-script targets (`.d.ts`, `.svelte`, `.css`, …) are
15
+ * not importable by a bare Node/Bun runtime — both are already covered by
16
+ * `verifyPackedPackage`'s existence check and the SvelteKit SSR proof, so
17
+ * this only returns the concrete `.js`/`.mjs`/`.cjs` files a plain
18
+ * `import()` can actually execute.
19
+ */
20
+ export declare function publisherConsumerSmokeImportTargets(manifest: Pick<RegistryPublishManifest, "main" | "exports">): string[];
21
+ /** One sealed batch member the smoke installs from its packed tarball. */
22
+ export type PublisherConsumerSmokeMember = {
23
+ name: string;
24
+ version: string;
25
+ tarball: string;
26
+ };
27
+ /** What the smoke installed and imported, and any consumer check it ran. */
28
+ export type PublisherConsumerSmokeResult = {
29
+ installed: number;
30
+ imports: string[];
31
+ durationMs: number;
32
+ consumerCheck?: {
33
+ ok: boolean;
34
+ log: string;
35
+ };
36
+ };
37
+ /** Upper bound for the smoke consumer's install. */
38
+ export declare const PUBLISHER_CONSUMER_INSTALL_TIMEOUT_MS = 120000;
39
+ /**
40
+ * Installs every non-skipped sealed batch member into a throwaway consumer by
41
+ * its packed tarball (`file:<path>`, the exact bytes about to be uploaded)
42
+ * and imports every export-map/main target from the installed copy. This
43
+ * closes the gap `verifyPackedPackage` cannot: that gate inspects the
44
+ * tarball's file *list*, not what happens when a real installer (hoisting,
45
+ * peer resolution, duplicate dependency trees) lays the batch out and a
46
+ * runtime actually loads it. A `.ts` import specifier surviving into a
47
+ * shipped `.js` file, or an export target missing after a real install,
48
+ * throws here — before any package in the batch reaches the registry.
49
+ *
50
+ * Reuses the already-packed, already-retained tarballs from the seal phase —
51
+ * no rebuild, no re-pack — so this stays fast enough to run on every publish
52
+ * and every `--dry-run`.
53
+ */
54
+ export declare function runPublisherConsumerSmoke(options: {
55
+ members: readonly PublisherConsumerSmokeMember[];
56
+ workspaceRoot: string;
57
+ execution: RuntimeExecution;
58
+ /** The runtime child environments are composed from. */
59
+ runtime: ChildEnvRuntime;
60
+ ui: UIContext;
61
+ quiet: boolean;
62
+ sourceRegistry?: ReleaseConsumerSourceRegistry;
63
+ consumerPath?: string;
64
+ }): Promise<PublisherConsumerSmokeResult>;
65
+ /**
66
+ * The optional heavier proof: install the exact batch tarballs into a real
67
+ * consumer checkout (e.g. a `vibes-app-template` clone) with `bun add`, then
68
+ * run its own `check`/`build`. Off by default (`--consumer` is unset in
69
+ * ordinary publishes); this exercises a real project's own toolchain against
70
+ * the batch, which the throwaway-consumer import smoke above does not.
71
+ */
72
+ export declare function runPublisherConsumerSmokeConsumerCheck(options: {
73
+ consumerPath: string;
74
+ members: readonly PublisherConsumerSmokeMember[];
75
+ execution: RuntimeExecution;
76
+ /** The runtime child environments are composed from. */
77
+ runtime: ChildEnvRuntime;
78
+ sourceRegistry?: ReleaseConsumerSourceRegistry;
79
+ }): Promise<{
80
+ ok: boolean;
81
+ log: string;
82
+ }>;
83
+ //# sourceMappingURL=consumer-smoke.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consumer-smoke.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/consumer-smoke.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAQ5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAGrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAQtE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAwGzE;;;;;;;;;GASG;AACH,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,IAAI,CAAC,uBAAuB,EAAE,MAAM,GAAG,SAAS,CAAC,GAC1D,MAAM,EAAE,CAgCV;AAqCD,0EAA0E;AAC1E,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,4EAA4E;AAC5E,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,qCAAqC,SAAU,CAAC;AAE7D;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,yBAAyB,CAAC,OAAO,EAAE;IACvD,OAAO,EAAE,SAAS,4BAA4B,EAAE,CAAC;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,wDAAwD;IACxD,OAAO,EAAE,eAAe,CAAC;IACzB,EAAE,EAAE,SAAS,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CA8LxC;AAED;;;;;;GAMG;AACH,wBAAsB,sCAAsC,CAAC,OAAO,EAAE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,SAAS,4BAA4B,EAAE,CAAC;IACjD,SAAS,EAAE,gBAAgB,CAAC;IAC5B,wDAAwD;IACxD,OAAO,EAAE,eAAe,CAAC;IACzB,cAAc,CAAC,EAAE,6BAA6B,CAAC;CAChD,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CA8DxC"}
@@ -0,0 +1,371 @@
1
+ import { resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
2
+ import { getRuntimePath } from "@vibesdotdev/paths";
3
+ import { CapabilityError, isCapabilityError, settle, valueFreeFailure } from "@vibesdotdev/kernel";
4
+ import { JsonObjectSchema, } from "@vibesdotdev/kernel/schemas/json";
5
+ import { z } from "zod/v4";
6
+ import { parsePublisherManifest } from "./publisher-manifest.js";
7
+ import { runRuntimeCommand, registryTokenEnv, } from "../../shared/runtime-execution.js";
8
+ import { mapWithConcurrency } from "./concurrency.js";
9
+ import { requirePathFileURL } from "./fs-paths.js";
10
+ import { writeIsolatedBunfig } from "./npm-exec.js";
11
+ import { writeFreshReleaseConsumerSourceNpmrc } from "./proof-source-credentials.js";
12
+ import { createReleaseTempRoot, defaultSensitiveTempFileAuthorities, scrubSensitiveTempFile, reportedSensitiveTempCleanup, SENSITIVE_TEMP_ROOT_PREFIXES, } from "./sensitive-temp.js";
13
+ /**
14
+ * Export conditions that name an environment this smoke is not: a target
15
+ * reachable ONLY under one of them is unreachable to the plain consumer the
16
+ * smoke plays, so evaluating it proves nothing and fails for the wrong reason
17
+ * (`Cannot find package 'bun'` under node).
18
+ */
19
+ const SMOKE_FOREIGN_CONDITIONS = new Set([
20
+ "bun",
21
+ "browser",
22
+ "deno",
23
+ "workerd",
24
+ "worker",
25
+ "react-native",
26
+ "cef",
27
+ ]);
28
+ /** Conditions a plain node/bun consumer actually resolves through. */
29
+ const SMOKE_CONSUMER_CONDITIONS = new Set([
30
+ "node",
31
+ "import",
32
+ "require",
33
+ "default",
34
+ "module",
35
+ ]);
36
+ /**
37
+ * Subpath segments whose entry is compiled by a bundler, never evaluated by a
38
+ * runtime: `@vibesdotdev/surface-sveltekit/svelte` re-exports `.svelte` files, which no
39
+ * runtime can load without a Svelte plugin. The publisher proves those through
40
+ * the installed-style Svelte surface build instead.
41
+ */
42
+ const SMOKE_BUNDLER_ONLY_SEGMENTS = new Set(["svelte", "tui"]);
43
+ function collectSmokeTargets(key, value, conditions, out) {
44
+ const text = z.string().safeParse(value);
45
+ if (text.success) {
46
+ if (text.data.startsWith("./"))
47
+ out.push({ key, conditions, target: text.data.slice(2) });
48
+ return;
49
+ }
50
+ if (Array.isArray(value)) {
51
+ for (const entry of value)
52
+ collectSmokeTargets(key, entry, conditions, out);
53
+ return;
54
+ }
55
+ const record = JsonObjectSchema.safeParse(value);
56
+ if (record.success) {
57
+ for (const [condition, entry] of Object.entries(record.data)) {
58
+ collectSmokeTargets(key, entry, [...conditions, condition], out);
59
+ }
60
+ }
61
+ }
62
+ /**
63
+ * An export that loads at import time (CORRECT.md §1 #3): the package root, a plugin, a schema
64
+ * or a descriptor entry. It must load in a consumer that installed none of the package's optional
65
+ * peers; an implementation subpath may need its peer and is proven by the installed release proof.
66
+ */
67
+ function isImportTimeExportKey(key) {
68
+ if (key === ".")
69
+ return true;
70
+ // Match the role as a whole word (`./cloud.plugin`, `./schemas/x`, `./db-schema`),
71
+ // never a substring: `./runtime-plugin-host/runtime-thread.shim.bun` is a worker program.
72
+ return key
73
+ .split(/[./]/)
74
+ .some((token) => /^(?:plugin|schema|descriptor)s?-|(?:plugin|schema|descriptor)s?$/i.test(token));
75
+ }
76
+ function smokeTargetIsReachable(entry) {
77
+ if (!isImportTimeExportKey(entry.key))
78
+ return false;
79
+ if (entry.key
80
+ .split("/")
81
+ .some((segment) => SMOKE_BUNDLER_ONLY_SEGMENTS.has(segment)))
82
+ return false;
83
+ const foreign = entry.conditions.filter((condition) => SMOKE_FOREIGN_CONDITIONS.has(condition));
84
+ if (foreign.length === 0)
85
+ return true;
86
+ return entry.conditions.some((condition) => SMOKE_CONSUMER_CONDITIONS.has(condition));
87
+ }
88
+ /**
89
+ * Every import-time export-map/main target this package could load at runtime, following
90
+ * the same enumeration `verifyPackedPackage` uses to prove every target
91
+ * exists in the tarball. Wildcard subpaths (`./*`) have no single concrete
92
+ * file to import, and non-script targets (`.d.ts`, `.svelte`, `.css`, …) are
93
+ * not importable by a bare Node/Bun runtime — both are already covered by
94
+ * `verifyPackedPackage`'s existence check and the SvelteKit SSR proof, so
95
+ * this only returns the concrete `.js`/`.mjs`/`.cjs` files a plain
96
+ * `import()` can actually execute.
97
+ */
98
+ export function publisherConsumerSmokeImportTargets(manifest) {
99
+ const entries = [];
100
+ const exportsValue = manifest.exports;
101
+ const exportText = z.string().safeParse(exportsValue);
102
+ const exportRecord = JsonObjectSchema.safeParse(exportsValue);
103
+ if (exportText.success) {
104
+ collectSmokeTargets(".", exportText.data, [], entries);
105
+ }
106
+ else if (exportRecord.success) {
107
+ for (const [key, value] of Object.entries(exportRecord.data)) {
108
+ // A top-level key is a subpath when it looks like one; anything else
109
+ // (a bare condition on a sugar export) keeps the root subpath.
110
+ const isSubpath = key === "." || key.startsWith("./");
111
+ collectSmokeTargets(isSubpath ? key : ".", value, isSubpath ? [] : [key], entries);
112
+ }
113
+ }
114
+ const targets = new Set();
115
+ for (const entry of entries) {
116
+ if (smokeTargetIsReachable(entry))
117
+ targets.add(entry.target);
118
+ }
119
+ const main = z.string().safeParse(manifest.main);
120
+ if (main.success && main.data.startsWith("./")) {
121
+ targets.add(main.data.slice(2));
122
+ }
123
+ return [...targets]
124
+ .filter((target) => !target.includes("*"))
125
+ .filter((target) => /\.(?:js|mjs|cjs)$/i.test(target))
126
+ .sort();
127
+ }
128
+ async function readTarballPackageJson(tarballPath, execution, runtime) {
129
+ const result = await runRuntimeCommand({
130
+ runtime,
131
+ execution,
132
+ command: "tar",
133
+ args: ["-xzO", "-f", tarballPath, "package/package.json"],
134
+ cwd: (await getRuntimePath(runtime)).dirname(tarballPath),
135
+ });
136
+ if (result.code !== 0) {
137
+ throw new Error(`Publisher consumer smoke could not read package.json from ${tarballPath}: ${result.stderr || result.stdout}`);
138
+ }
139
+ const parsed = await settle(() => Promise.resolve(parsePublisherManifest(JSON.parse(result.stdout))));
140
+ if (!parsed.ok) {
141
+ if (isCapabilityError(parsed.cause))
142
+ throw parsed.cause;
143
+ throw new CapabilityError("Publisher consumer smoke found an unparsable package.json.", "INVALID_INPUT", {
144
+ reason: "consumer-smoke-manifest-unreadable",
145
+ cause: valueFreeFailure(parsed.cause),
146
+ details: { tarball: tarballPath },
147
+ });
148
+ }
149
+ return parsed.value;
150
+ }
151
+ /** Upper bound for the smoke consumer's install. */
152
+ export const PUBLISHER_CONSUMER_INSTALL_TIMEOUT_MS = 120_000;
153
+ /**
154
+ * Installs every non-skipped sealed batch member into a throwaway consumer by
155
+ * its packed tarball (`file:<path>`, the exact bytes about to be uploaded)
156
+ * and imports every export-map/main target from the installed copy. This
157
+ * closes the gap `verifyPackedPackage` cannot: that gate inspects the
158
+ * tarball's file *list*, not what happens when a real installer (hoisting,
159
+ * peer resolution, duplicate dependency trees) lays the batch out and a
160
+ * runtime actually loads it. A `.ts` import specifier surviving into a
161
+ * shipped `.js` file, or an export target missing after a real install,
162
+ * throws here — before any package in the batch reaches the registry.
163
+ *
164
+ * Reuses the already-packed, already-retained tarballs from the seal phase —
165
+ * no rebuild, no re-pack — so this stays fast enough to run on every publish
166
+ * and every `--dry-run`.
167
+ */
168
+ export async function runPublisherConsumerSmoke(options) {
169
+ const startedAt = Date.now();
170
+ if (options.members.length === 0) {
171
+ return { installed: 0, imports: [], durationMs: Date.now() - startedAt };
172
+ }
173
+ const tempRoot = await createReleaseTempRoot(options.runtime, options.workspaceRoot, SENSITIVE_TEMP_ROOT_PREFIXES.consumerSmoke);
174
+ const paths = await getRuntimePath(options.runtime);
175
+ const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
176
+ const consumerDir = paths.join(tempRoot, "consumer");
177
+ const npmrcPath = paths.join(consumerDir, ".npmrc");
178
+ let npmrcWritten = false;
179
+ try {
180
+ await files.mkdir(consumerDir, { recursive: true });
181
+ // cwd is this nested consumer, not tempRoot: pin bunfig here so bun does
182
+ // not walk up to the worktree file under envMode:replace.
183
+ await writeIsolatedBunfig(options.runtime, consumerDir);
184
+ const manifests = await mapWithConcurrency(options.members, 4, async (member) => ({
185
+ member,
186
+ manifest: await readTarballPackageJson(member.tarball, options.execution, options.runtime),
187
+ }));
188
+ const dependencies = {};
189
+ for (const { member } of manifests)
190
+ dependencies[member.name] = `file:${member.tarball}`;
191
+ await files.writeFile(paths.join(consumerDir, "package.json"), `${JSON.stringify({
192
+ name: "vibes-publisher-consumer-smoke",
193
+ private: true,
194
+ version: "0.0.0",
195
+ // Members only, no optional peer: an import-time entry that needs one is the defect.
196
+ dependencies,
197
+ // Members depend on each other by caret range, and the versions
198
+ // in this batch are not on the registry yet: without overrides
199
+ // bun satisfies an intra-batch range from the REGISTRY, nests a
200
+ // second copy of (say) @vibesdotdev/kernel under a sibling, and
201
+ // the runtime's one-process-one-graph guard rejects the import.
202
+ // The smoke must exercise the batch, never a mix of the batch and
203
+ // the versions it is about to replace.
204
+ overrides: dependencies,
205
+ }, null, 2)}\n`);
206
+ if (options.sourceRegistry) {
207
+ npmrcWritten = true;
208
+ await writeFreshReleaseConsumerSourceNpmrc(npmrcPath, options.sourceRegistry, options.runtime);
209
+ }
210
+ if (!options.quiet) {
211
+ options.ui.info(`Installing ${manifests.length} packed tarball(s) into a throwaway consumer...`);
212
+ }
213
+ const install = await runRuntimeCommand({
214
+ runtime: options.runtime,
215
+ execution: options.execution,
216
+ command: "bun",
217
+ args: ["install", "--linker=hoisted", "--no-save", "--ignore-scripts"],
218
+ cwd: consumerDir,
219
+ env: { HOME: consumerDir, USERPROFILE: consumerDir },
220
+ timeout: PUBLISHER_CONSUMER_INSTALL_TIMEOUT_MS,
221
+ });
222
+ if (install.code !== 0) {
223
+ throw new Error(`Publisher consumer smoke install failed:\n${install.stdout}\n${install.stderr}`);
224
+ }
225
+ if (npmrcWritten) {
226
+ await scrubSensitiveTempFile(npmrcPath, defaultSensitiveTempFileAuthorities(options.runtime));
227
+ npmrcWritten = false;
228
+ }
229
+ const imports = [];
230
+ const failures = [];
231
+ for (const { member, manifest } of manifests) {
232
+ const targets = publisherConsumerSmokeImportTargets(manifest);
233
+ const packageDir = paths.join(consumerDir, "node_modules", member.name);
234
+ // These packages are consumed by bun hosts (the vibes CLI, every app's
235
+ // dev server and build). Loading a published artifact under node was an
236
+ // assumption, and it fails for the wrong reason on every bun-runtime
237
+ // module reachable from a node-shaped export condition
238
+ // (`dist/bun/index.js`, `dist/router-server/server.js`, `dist/lsp/index.js`).
239
+ // A package that must load under node says so in its manifest.
240
+ // A package whose published modules are FRAMEWORK-COMPILED output — Svelte 5
241
+ // runes ($state), $env/* imports, .svelte and .css — has no runtime that can
242
+ // evaluate them; only a build can. Such a package declares
243
+ // vibes.publishSmoke: "static" and the packed-content checks (declared files,
244
+ // export targets exist, no .ts specifier) remain its proof.
245
+ const vibes = JsonObjectSchema.safeParse(manifest.vibes);
246
+ if (vibes.success &&
247
+ z.literal("static").safeParse(vibes.data.publishSmoke).success) {
248
+ if (!options.quiet) {
249
+ options.ui.info(`${member.name}@${member.version}: framework-compiled; static checks only`);
250
+ }
251
+ continue;
252
+ }
253
+ const runtime = manifest.vibes?.publishLoadRuntime === "node" ? "node" : "bun";
254
+ for (const target of targets) {
255
+ const label = `${member.name}@${member.version}: ${target}`;
256
+ imports.push(label);
257
+ const specifierUrl = requirePathFileURL(paths, paths.join(packageDir, target)).href;
258
+ const result = await runRuntimeCommand({
259
+ runtime: options.runtime,
260
+ execution: options.execution,
261
+ command: runtime,
262
+ args: runtime === "node"
263
+ ? [
264
+ "--input-type=module",
265
+ "--eval",
266
+ `import(${JSON.stringify(specifierUrl)})`,
267
+ ]
268
+ : ["--eval", `await import(${JSON.stringify(specifierUrl)})`],
269
+ cwd: consumerDir,
270
+ });
271
+ if (result.code !== 0) {
272
+ const output = (result.stderr || result.stdout).trim();
273
+ failures.push(`${label}: ${output}`);
274
+ }
275
+ }
276
+ }
277
+ if (failures.length > 0) {
278
+ throw new Error(`Publisher consumer smoke refuses this publish; the installed copy failed to load:\n${failures.join("\n")}`);
279
+ }
280
+ let consumerCheck;
281
+ if (options.consumerPath) {
282
+ if (!options.quiet) {
283
+ options.ui.info(`Installing the batch into ${options.consumerPath} for check/build...`);
284
+ }
285
+ consumerCheck = await runPublisherConsumerSmokeConsumerCheck({
286
+ consumerPath: options.consumerPath,
287
+ members: options.members,
288
+ execution: options.execution,
289
+ runtime: options.runtime,
290
+ sourceRegistry: options.sourceRegistry,
291
+ });
292
+ if (!consumerCheck.ok) {
293
+ throw new Error(`Publisher consumer smoke refuses this publish; ${options.consumerPath} check/build failed:\n${consumerCheck.log}`);
294
+ }
295
+ }
296
+ const result = {
297
+ installed: manifests.length,
298
+ imports,
299
+ durationMs: Date.now() - startedAt,
300
+ };
301
+ if (consumerCheck !== undefined)
302
+ result.consumerCheck = consumerCheck;
303
+ return result;
304
+ }
305
+ finally {
306
+ await reportedSensitiveTempCleanup(options.runtime, npmrcWritten ? { npmrcPath, root: tempRoot } : { root: tempRoot });
307
+ }
308
+ }
309
+ /**
310
+ * The optional heavier proof: install the exact batch tarballs into a real
311
+ * consumer checkout (e.g. a `vibes-app-template` clone) with `bun add`, then
312
+ * run its own `check`/`build`. Off by default (`--consumer` is unset in
313
+ * ordinary publishes); this exercises a real project's own toolchain against
314
+ * the batch, which the throwaway-consumer import smoke above does not.
315
+ */
316
+ export async function runPublisherConsumerSmokeConsumerCheck(options) {
317
+ const npmrcPath = (await getRuntimePath(options.runtime)).join(options.consumerPath, ".npmrc");
318
+ let npmrcWritten = false;
319
+ try {
320
+ if (options.sourceRegistry) {
321
+ npmrcWritten = true;
322
+ await writeFreshReleaseConsumerSourceNpmrc(npmrcPath, options.sourceRegistry, options.runtime);
323
+ }
324
+ const install = await runRuntimeCommand({
325
+ runtime: options.runtime,
326
+ execution: options.execution,
327
+ command: "bun",
328
+ env: await registryTokenEnv(options.runtime),
329
+ args: [
330
+ "add",
331
+ "--linker=hoisted",
332
+ ...options.members.map((member) => `${member.name}@file:${member.tarball}`),
333
+ ],
334
+ cwd: options.consumerPath,
335
+ });
336
+ if (install.code !== 0) {
337
+ return { ok: false, log: `${install.stdout}\n${install.stderr}` };
338
+ }
339
+ if (npmrcWritten) {
340
+ await scrubSensitiveTempFile(npmrcPath, defaultSensitiveTempFileAuthorities(options.runtime));
341
+ npmrcWritten = false;
342
+ }
343
+ const check = await runRuntimeCommand({
344
+ runtime: options.runtime,
345
+ execution: options.execution,
346
+ command: "bun",
347
+ args: ["run", "check"],
348
+ cwd: options.consumerPath,
349
+ });
350
+ if (check.code !== 0) {
351
+ return { ok: false, log: `${check.stdout}\n${check.stderr}` };
352
+ }
353
+ const build = await runRuntimeCommand({
354
+ runtime: options.runtime,
355
+ execution: options.execution,
356
+ command: "bun",
357
+ args: ["run", "build"],
358
+ cwd: options.consumerPath,
359
+ });
360
+ return {
361
+ ok: build.code === 0,
362
+ log: [check.stdout, check.stderr, build.stdout, build.stderr]
363
+ .filter(Boolean)
364
+ .join("\n"),
365
+ };
366
+ }
367
+ finally {
368
+ await reportedSensitiveTempCleanup(options.runtime, npmrcWritten ? { npmrcPath } : {});
369
+ }
370
+ }
371
+ //# sourceMappingURL=consumer-smoke.js.map