@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,251 @@
1
+ import { settle } from '@vibesdotdev/kernel';
2
+ import * as z from 'zod/v4';
3
+ import { infraDeployLogger } from "../../logger.js";
4
+ function smokeTargetUrl(deployment, deployedUrl, environmentResolution) {
5
+ // Declared topology comes FIRST. An app whose ONLY origins are
6
+ // kind:'internal' is reached exclusively over service bindings / queues and
7
+ // has no public health surface BY DESIGN — probing its logical hostname can
8
+ // never connect (measured: vibes-forge-ci, 2026-07-26), and the
9
+ // wrangler-reported workers.dev URL must not override that: a queue-only
10
+ // worker exports no fetch handler at all, so that URL answers HTTP 500
11
+ // forever on a perfectly healthy deploy (measured: vibes-ai-jobs,
12
+ // 2026-07-26 — two false DEPLOY FAILED ledger rows on successful uploads).
13
+ // The schema requires >=1 origin, so this is deliberate topology, not a
14
+ // missing config.
15
+ if (deployment.origins.length > 0 &&
16
+ deployment.origins.every((origin) => origin.kind === 'internal')) {
17
+ return {
18
+ skip: 'all origins are kind:internal (service-binding only); nothing publicly probeable'
19
+ };
20
+ }
21
+ if (environmentResolution && environmentResolution.environment !== 'production') {
22
+ const origin = environmentResolution.selectedOrigin;
23
+ if (!origin || !URL.canParse(origin) || new URL(origin).protocol !== 'https:') {
24
+ return {
25
+ error: `No public origin for selected environment "${environmentResolution.environment}"; refusing production smoke fallback.`
26
+ };
27
+ }
28
+ return origin;
29
+ }
30
+ if (deployedUrl && deployedUrl.startsWith('https://'))
31
+ return deployedUrl;
32
+ const primary = deployment.origins.find((origin) => origin.kind === 'primary');
33
+ if (primary?.origin)
34
+ return primary.origin;
35
+ if (primary?.hostname)
36
+ return `https://${primary.hostname}`;
37
+ const first = deployment.origins[0];
38
+ if (first?.origin)
39
+ return first.origin;
40
+ if (first?.hostname)
41
+ return `https://${first.hostname}`;
42
+ return undefined;
43
+ }
44
+ /**
45
+ * A build identity is what `VIBES_BUILD_VERSION` carries: a commit sha. Only
46
+ * two sha-shaped values can be compared for freshness.
47
+ *
48
+ * Anything else an app happens to stamp into `version.name` — `createKitVersion`'s
49
+ * `Date.now()` fallback, or a hand-written app label — is not a build identity,
50
+ * and comparing it against a commit proves nothing about which build is serving.
51
+ *
52
+ * Measured 2026-08-20 on casework, whose config resolved
53
+ * `name ?? VIBES_BUILD_VERSION` and so stamped the constant `casework-app`
54
+ * on every build. The probe compared that to the deployed sha, could never match,
55
+ * and reported DEPLOY FAILED with `consider wrangler rollback` — against a deploy
56
+ * that had in fact succeeded and was serving correctly.
57
+ *
58
+ * SCOPE, deliberately narrow: this only enriches the DIAGNOSIS. The verdict is
59
+ * unchanged — a mismatch is still a stale failure, which is a contract an
60
+ * existing test states outright ("a NON-numeric mismatch is still a hard stale
61
+ * failure"). Flipping that would trade a false-fail for a false-pass, and a
62
+ * stale worker waved through is the more expensive error for everyone
63
+ * downstream. Whether an incomparable stamp should instead read UNVERIFIED —
64
+ * generalising the numeric-fallback branch — is a real question, but it is a
65
+ * contract change and belongs to whoever owns this gate, not to a drive-by.
66
+ */
67
+ const BuildIdentitySchema = z.string().trim();
68
+ export function isComparableBuildIdentity(value) {
69
+ const parsed = BuildIdentitySchema.safeParse(value);
70
+ if (!parsed.success)
71
+ return false;
72
+ const stamp = parsed.data;
73
+ // An all-digit stamp is `createKitVersion`'s documented `Date.now()` fallback.
74
+ // It has to be rejected EXPLICITLY: digits are hex characters, so a timestamp
75
+ // sails through a bare /^[0-9a-f]+$/ test and gets compared to a commit as
76
+ // though it were one — which is how `1785009445256 != 18d8e457…` was once
77
+ // reported as a stale worker.
78
+ if (/^\d+$/.test(stamp))
79
+ return false;
80
+ return /^[0-9a-f]{7,64}$/i.test(stamp);
81
+ }
82
+ const LiveVersionBodySchema = z.object({
83
+ version: z.string().optional()
84
+ });
85
+ /**
86
+ * Read the live origin's SvelteKit build identity. Returns `null` when the app
87
+ * does not publish one — treated as "cannot tell", never as "stale", because a
88
+ * non-SvelteKit or older app must not fail a deploy for lacking the file.
89
+ */
90
+ async function readLiveVersion(origin, fetchImpl, runtime) {
91
+ const outcome = await settle(async () => {
92
+ const response = await fetchImpl(new URL('/_app/version.json', origin).toString(), {
93
+ headers: { 'User-Agent': 'vibes-infra-deploy-smoke/1.0' }
94
+ });
95
+ if (!response.ok)
96
+ return null;
97
+ const json = await response.json();
98
+ const parsed = LiveVersionBodySchema.safeParse(json);
99
+ return parsed.success ? (parsed.data.version ?? null) : null;
100
+ });
101
+ if (!outcome.ok) {
102
+ // Unreachable or unparseable version.json is not evidence of staleness;
103
+ // the reason is reported so "cannot tell" is never silent.
104
+ const reason = outcome.cause instanceof Error ? outcome.cause.message : outcome.cause.description;
105
+ infraDeployLogger(runtime).warn('Live /_app/version.json could not be read', {
106
+ origin,
107
+ reason
108
+ });
109
+ return null;
110
+ }
111
+ return outcome.value;
112
+ }
113
+ async function probe(url, fetchImpl) {
114
+ const response = await fetchImpl(url, {
115
+ headers: { 'User-Agent': 'vibes-infra-deploy-smoke/1.0' },
116
+ // `redirect: 'manual'` is the whole point of this probe.
117
+ //
118
+ // Following redirects made this instrument report something other than what
119
+ // it claimed. Measured against a real deploy of platform-web: the worker
120
+ // answers 302 to https://auth.vibes.dev/?client=platform&redirect_to=... ,
121
+ // the probe followed it, and reported `OK (HTTP 200; cf-ray ...)` — a status
122
+ // that came from AUTH-WEB, not from the app just deployed. Every auth-gated
123
+ // app was being certified by whatever its sign-in host happened to return,
124
+ // and a worker with no routes bound would have passed the same way.
125
+ //
126
+ // A 3xx from the deployed origin is a legitimate PASS: answering at all is
127
+ // what is being tested. What is not acceptable is judging someone else's
128
+ // response and calling it this app's.
129
+ redirect: 'manual'
130
+ });
131
+ const cfRay = response.headers.get('cf-ray');
132
+ if (response.status >= 500)
133
+ return { ok: false, detail: `HTTP ${response.status}` };
134
+ if (!cfRay)
135
+ return { ok: false, detail: `HTTP ${response.status}; missing cf-ray header` };
136
+ // Say where a redirect went. The status alone reads as healthy while hiding
137
+ // that the app handed the request to a different origin entirely.
138
+ const location = response.headers.get('location');
139
+ const redirectNote = response.status >= 300 && response.status < 400 && location ? `; -> ${location}` : '';
140
+ return { ok: true, detail: `HTTP ${response.status}${redirectNote}; cf-ray ${cfRay}` };
141
+ }
142
+ /**
143
+ * Post-deploy live probe: THE DEPLOYED ORIGIN ITSELF must answer below 500
144
+ * through Cloudflare (cf-ray present) within the retry window. This is the
145
+ * in-process home of scripts/cf-smoke-test.ts, which was only reachable from a
146
+ * dispatch-only workflow while the marker could report a false DEPLOY FAILED
147
+ * on rate-limited runs — the live probe is the counter-signal.
148
+ *
149
+ * What this probe does NOT establish, so nobody reads more into a green than it
150
+ * carries: `cf-ray` proves a Cloudflare edge answered, not that YOUR newly
151
+ * deployed worker answered. A stale worker, a route bound to the wrong script,
152
+ * or a Cloudflare error page all carry one. Proving provenance needs a
153
+ * deploy-stamped response header compared against the SHA just deployed, or a
154
+ * probe of an app-declared health path — `AppDeployment` carries neither today.
155
+ * Until it does, this reports liveness of the origin, not identity of the build.
156
+ */
157
+ export async function runDeploySmokeProbe(options) {
158
+ const fetchImpl = options.fetchImpl ?? fetch;
159
+ const retryWindowMs = options.retryWindowMs ?? 30_000;
160
+ const pollIntervalMs = options.pollIntervalMs ?? 1_000;
161
+ // LIVENESS and FRESHNESS are different failure modes and deserve different
162
+ // patience. An origin that cannot answer in 30s is broken. An origin still
163
+ // serving the previous version for a minute or two is ordinary Cloudflare
164
+ // propagation — and reporting that as DEPLOY FAILED is worse than useless:
165
+ // it trains readers to disbelieve the smoke, and the next real stale worker
166
+ // gets waved through. Observed 2026-08-05 on platform-web, which reported
167
+ // `stale build serving` and was serving the new build minutes later.
168
+ // Derived from the liveness window rather than hardcoded, so every existing
169
+ // caller scales with it: production's 30s becomes 180s of propagation
170
+ // patience, while a test that shortens retryWindowMs stays fast instead of
171
+ // hanging for three minutes.
172
+ const freshnessWindowMs = options.freshnessWindowMs ?? retryWindowMs * 6;
173
+ const onLine = options.onLine ?? (() => undefined);
174
+ const target = smokeTargetUrl(options.deployment, options.deployedUrl, options.environmentResolution);
175
+ const TargetUrlSchema = z.string().min(1);
176
+ const parsedUrl = TargetUrlSchema.safeParse(target);
177
+ if (!parsedUrl.success) {
178
+ const SmokeTargetOutcomeSchema = z.union([
179
+ z.object({ skip: z.string() }),
180
+ z.object({ error: z.string() })
181
+ ]);
182
+ const targetOutcome = SmokeTargetOutcomeSchema.safeParse(target);
183
+ if (targetOutcome.success) {
184
+ if ('error' in targetOutcome.data)
185
+ return { ok: false, detail: targetOutcome.data.error };
186
+ onLine('stdout', `[smoke] ${options.deployment.appId} SKIPPED: ${targetOutcome.data.skip}`);
187
+ return { ok: true, skipped: true, detail: targetOutcome.data.skip };
188
+ }
189
+ return { ok: true, skipped: true, detail: 'no primary origin to probe' };
190
+ }
191
+ const url = parsedUrl.data;
192
+ const deadline = Date.now() + retryWindowMs;
193
+ // Starts when liveness passes, not at probe start — propagation time should
194
+ // not be spent waiting for the origin to come up.
195
+ let freshnessDeadline = null;
196
+ let lastDetail = 'not attempted';
197
+ for (;;) {
198
+ const probeOutcome = await settle(() => probe(url, fetchImpl));
199
+ if (!probeOutcome.ok) {
200
+ lastDetail = probeOutcome.cause instanceof Error ? probeOutcome.cause.message : probeOutcome.cause.description;
201
+ }
202
+ else {
203
+ const result = probeOutcome.value;
204
+ lastDetail = result.detail;
205
+ if (result.ok) {
206
+ // Liveness passed. Now FRESHNESS, when the caller told us what it
207
+ // shipped — a stale worker reaches this exact line with an identical
208
+ // result, so answering is not evidence the deploy took.
209
+ const expected = options.expectedVersion?.trim();
210
+ if (expected) {
211
+ const live = await readLiveVersion(url, fetchImpl, options.runtime);
212
+ // Coordinator policy (codex, 2026-08-20) closed the numeric fail-open
213
+ // too: a `Date.now()` stamp is exactly as incomparable to a commit as
214
+ // an app label is, so both are ONE case — the identity channel is
215
+ // broken and the serving build cannot be named. The cost is accepted:
216
+ // an app that does not plumb VIBES_BUILD_VERSION fails its seal until
217
+ // it does, which is a producer fix of the kind casework just took.
218
+ const isBrokenIdentityChannel = live !== null && !isComparableBuildIdentity(live);
219
+ if (live && (isBrokenIdentityChannel || live !== expected)) {
220
+ // Retry rather than fail outright: propagation is not instant, and
221
+ // the deadline below decides. A mismatch that OUTLASTS the retry
222
+ // window is a stale worker, which is the whole point.
223
+ lastDetail = isBrokenIdentityChannel
224
+ ? `build identity invalid: live stamp ${JSON.stringify(live)} is not a build identity (deployed ${expected}). This app is not stamping VIBES_BUILD_VERSION into version.name, so the serving build cannot be identified. This is NOT evidence of a stale worker — do not roll back; fix the producer, redeploy, and require version.json to equal the deployed commit.`
225
+ : `stale build serving: live ${live} != deployed ${expected} — inspect active routes and traffic before rolling back`;
226
+ freshnessDeadline ??= Date.now() + freshnessWindowMs;
227
+ if (Date.now() >= freshnessDeadline)
228
+ break;
229
+ await options.runtime.lifecycle.delay(pollIntervalMs);
230
+ continue;
231
+ }
232
+ if (live && !isBrokenIdentityChannel) {
233
+ onLine('stdout', `[smoke] ${options.deployment.appId} ${url} OK (${result.detail}; build ${live} FRESH)`);
234
+ return { ok: true, url, detail: `${result.detail}; build ${live} fresh` };
235
+ }
236
+ // No version.json — say so instead of implying freshness was checked.
237
+ onLine('stdout', `[smoke] ${options.deployment.appId} ${url} OK (${result.detail}; build UNVERIFIED - no /_app/version.json)`);
238
+ return { ok: true, url, detail: `${result.detail}; build unverified` };
239
+ }
240
+ onLine('stdout', `[smoke] ${options.deployment.appId} ${url} OK (${result.detail})`);
241
+ return { ok: true, url, detail: result.detail };
242
+ }
243
+ }
244
+ if (Date.now() >= deadline)
245
+ break;
246
+ await options.runtime.lifecycle.delay(pollIntervalMs);
247
+ }
248
+ onLine('stderr', `[smoke] ${options.deployment.appId} ${url} FAILED: ${lastDetail}`);
249
+ return { ok: false, url, detail: lastDetail };
250
+ }
251
+ //# sourceMappingURL=deploy-smoke.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy-smoke.js","sourceRoot":"","sources":["../../../src/cli/run/deploy-smoke.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAyCpD,SAAS,cAAc,CACtB,UAAyB,EACzB,WAA2B,EAC3B,qBAAuD;IAEvD,+DAA+D;IAC/D,4EAA4E;IAC5E,4EAA4E;IAC5E,gEAAgE;IAChE,yEAAyE;IACzE,uEAAuE;IACvE,kEAAkE;IAClE,2EAA2E;IAC3E,wEAAwE;IACxE,kBAAkB;IAClB,IACC,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;QAC7B,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,EAC/D,CAAC;QACF,OAAO;YACN,IAAI,EAAE,kFAAkF;SACxF,CAAC;IACH,CAAC;IACD,IAAI,qBAAqB,IAAI,qBAAqB,CAAC,WAAW,KAAK,YAAY,EAAE,CAAC;QACjF,MAAM,MAAM,GAAG,qBAAqB,CAAC,cAAc,CAAC;QACpD,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,Q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,EAAE,GAAG,MAAM,CAAC,MAAM,WAAW,IAAI,QAAQ,EAAE,CAAC;oBAC3E,CAAC;oBACD,sEAAsE;oBACtE,MAAM,CACL,QAAQ,EACR,WAAW,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,GAAG,QAAQ,MAAM,CAAC,MAAM,6CAA6C,CAC5G,CAAC;oBACF,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,oBAAoB,EAAE,CAAC;gBACxE,CAAC;gBACD,MAAM,CAAC,QAAQ,EAAE,WAAW,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,GAAG,QAAQ,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;gBACrF,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;YACjD,CAAC;QACF,CAAC;QACD,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,QAAQ;YAAE,MAAM;QAClC,MAAM,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,CAAC,QAAQ,EAAE,WAAW,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,GAAG,YAAY,UAAU,EAAE,CAAC,CAAC;IACrF,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,74 @@
1
+ import type { AppDeployment } from '@vibesdotdev/infra-core';
2
+ import * as z from 'zod/v4';
3
+ import { type VibesRuntime } from '@vibesdotdev/kernel';
4
+ /** The vendors the platform's deployment records name; any other reads as `other`. */
5
+ declare const MarkerProviderSchema: z.ZodEnum<{
6
+ other: "other";
7
+ cloudflare: "cloudflare";
8
+ digitalocean: "digitalocean";
9
+ }>;
10
+ type MarkerProvider = z.infer<typeof MarkerProviderSchema>;
11
+ type MarkerEnvironment = 'development' | 'staging' | 'production';
12
+ export type DeploymentMarkerPayload = {
13
+ appId: string;
14
+ provider: MarkerProvider;
15
+ environment: MarkerEnvironment;
16
+ status: 'succeeded' | 'failed' | 'rolled_back' | 'in_progress';
17
+ version?: string;
18
+ commit?: string;
19
+ branch?: string;
20
+ deployedBy?: string;
21
+ deployedUrl?: string;
22
+ externalDeploymentId?: string;
23
+ deploymentRunId?: string;
24
+ logsRef?: string;
25
+ providerTraceRef?: string;
26
+ remediationUrl?: string;
27
+ notes?: string;
28
+ deployedAt: string;
29
+ };
30
+ export type EmitDeploymentMarkerOptions = {
31
+ deployment: AppDeployment;
32
+ /** The deployment provider id the release went through. */
33
+ provider: string;
34
+ environment?: string;
35
+ status?: DeploymentMarkerPayload['status'];
36
+ deployedUrl?: string;
37
+ externalDeploymentId?: string;
38
+ version?: string;
39
+ commit?: string;
40
+ branch?: string;
41
+ deployedBy?: string;
42
+ notes?: string;
43
+ deploymentRunId?: string;
44
+ logsRef?: string;
45
+ providerTraceRef?: string;
46
+ remediationUrl?: string;
47
+ /** The runtime the marker's environment facts and internal token resolve through. */
48
+ runtime: VibesRuntime;
49
+ token?: string;
50
+ systemOrigin?: string;
51
+ fetchImpl?: typeof fetch | ((input: string | URL | Request, init?: RequestInit) => Promise<Response>);
52
+ };
53
+ export type EmitDeploymentMarkerResult = {
54
+ status: 'sent';
55
+ markerId?: string;
56
+ appId: string;
57
+ } | {
58
+ status: 'skipped';
59
+ reason: string;
60
+ } | {
61
+ status: 'failed';
62
+ reason: string;
63
+ };
64
+ export declare function deploymentMarkerNotes(value: unknown, maxLength?: number): string | undefined;
65
+ /** The vendor a release is attributed to: what the provider's descriptor declares (`vendor`). */
66
+ export declare function deploymentMarkerProvider(runtime: Pick<VibesRuntime, 'hasKind' | 'query'>, provider: string): MarkerProvider;
67
+ export declare function deploymentMarkerEnvironment(value: string | undefined): MarkerEnvironment;
68
+ export declare function systemOriginForDeployment(runtime: VibesRuntime, deployment: AppDeployment, explicit?: string): Promise<string>;
69
+ export declare function buildDeploymentMarkerPayload(runtime: Pick<VibesRuntime, 'getEnv' | 'hasKind' | 'query'>, options: Omit<EmitDeploymentMarkerOptions, 'runtime' | 'token' | 'systemOrigin' | 'fetchImpl'>): DeploymentMarkerPayload;
70
+ export declare function resolveDeploymentMarkerTokens(runtime: VibesRuntime, environment?: string, explicit?: string): Promise<string[]>;
71
+ export declare function resolveDeploymentMarkerToken(runtime: VibesRuntime, environment?: string, explicit?: string): Promise<string | undefined>;
72
+ export declare function emitDeploymentMarker(options: EmitDeploymentMarkerOptions): Promise<EmitDeploymentMarkerResult>;
73
+ export {};
74
+ //# sourceMappingURL=deployment-marker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-marker.d.ts","sourceRoot":"","sources":["../../../src/cli/run/deployment-marker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAShE,sFAAsF;AACtF,QAAA,MAAM,oBAAoB;;;;EAAkD,CAAC;AAC7E,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC3D,KAAK,iBAAiB,GAAG,aAAa,GAAG,SAAS,GAAG,YAAY,CAAC;AAElE,MAAM,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,aAAa,CAAC;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MA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C,MAAM,GAAG,SAAS,CAAC,CAE7B;AAyBD,wBAAsB,oBAAoB,CACzC,OAAO,EAAE,2BAA2B,GAClC,OAAO,CAAC,0BAA0B,CAAC,CA4DrC"}
@@ -0,0 +1,237 @@
1
+ import { serviceOrigin } from '@vibesdotdev/infra-core/service';
2
+ import * as z from 'zod/v4';
3
+ import { infraDeployLogger } from "../../logger.js";
4
+ import { settle } from '@vibesdotdev/kernel';
5
+ import { DeploymentProviderDescriptorSchema } from '@vibesdotdev/infra-core/kinds';
6
+ import { isGenericSecretsStoreDescriptor, resolveSecretsEnvironment } from '@vibesdotdev/secrets';
7
+ /** The vendors the platform's deployment records name; any other reads as `other`. */
8
+ const MarkerProviderSchema = z.enum(['cloudflare', 'digitalocean', 'other']);
9
+ const INTERNAL_TOKEN_KEYS = [
10
+ 'VIBES_INTERNAL_SERVICE_TOKEN',
11
+ 'VIBES_AUTH_INTERNAL_TOKEN'
12
+ ];
13
+ const SENSITIVE_ASSIGNMENT_PATTERN = /\b([A-Z0-9_]*(?:TOKEN|SECRET|PASSWORD|CREDENTIAL|API_KEY|PRIVATE_KEY)[A-Z0-9_]*)\b\s*[:=]\s*["']?[^"',\s]+["']?/gi;
14
+ const BEARER_PATTERN = /\bBearer\s+[^\s,;]+/gi;
15
+ const NonEmptyStringSchema = z.string().trim().min(1);
16
+ function nonEmpty(value) {
17
+ const parsed = NonEmptyStringSchema.safeParse(value);
18
+ if (parsed.success)
19
+ return parsed.data;
20
+ return undefined;
21
+ }
22
+ export function deploymentMarkerNotes(value, maxLength = 500) {
23
+ const parsed = NonEmptyStringSchema.safeParse(value);
24
+ if (!parsed.success)
25
+ return undefined;
26
+ return parsed.data
27
+ .replace(BEARER_PATTERN, 'Bearer [redacted]')
28
+ .replace(SENSITIVE_ASSIGNMENT_PATTERN, '$1=[redacted]')
29
+ .slice(0, maxLength);
30
+ }
31
+ /** The vendor a release is attributed to: what the provider's descriptor declares (`vendor`). */
32
+ export function deploymentMarkerProvider(runtime, provider) {
33
+ if (!runtime.hasKind('infra/deployment-provider'))
34
+ return 'other';
35
+ const [descriptor] = runtime.query('infra/deployment-provider').withId(provider).descriptors();
36
+ const vendor = descriptor ? DeploymentProviderDescriptorSchema.parse(descriptor).vendor : undefined;
37
+ return MarkerProviderSchema.catch('other').parse(vendor);
38
+ }
39
+ export function deploymentMarkerEnvironment(value) {
40
+ if (value === 'production')
41
+ return 'production';
42
+ if (value === 'staging')
43
+ return 'staging';
44
+ if (value === 'development' || value === 'dev' || value === 'local')
45
+ return 'development';
46
+ return 'production';
47
+ }
48
+ export async function systemOriginForDeployment(runtime, deployment, explicit) {
49
+ const fromExplicit = nonEmpty(explicit);
50
+ if (fromExplicit)
51
+ return fromExplicit.replace(/\/$/, '');
52
+ const fromEnv = nonEmpty(runtime.getEnv('PUBLIC_VIBES_SYSTEM_ORIGIN'));
53
+ if (fromEnv)
54
+ return fromEnv.replace(/\/$/, '');
55
+ const declared = deployment.env.find((entry) => entry.name === 'PUBLIC_VIBES_SYSTEM_ORIGIN');
56
+ const fromDeploymentEnv = nonEmpty(declared?.value);
57
+ if (fromDeploymentEnv)
58
+ return fromDeploymentEnv.replace(/\/$/, '');
59
+ if (deployment.appId === 'system') {
60
+ const primary = deployment.origins.find((origin) => origin.kind === 'primary') ?? deployment.origins[0];
61
+ if (primary?.origin)
62
+ return primary.origin.replace(/\/$/, '');
63
+ }
64
+ return serviceOrigin(runtime, 'system');
65
+ }
66
+ function currentActor(runtime) {
67
+ return (nonEmpty(runtime.getEnv('VIBES_DEPLOY_ACTOR')) ??
68
+ nonEmpty(runtime.getEnv('GITHUB_ACTOR')) ??
69
+ nonEmpty(runtime.getEnv('USER')));
70
+ }
71
+ export function buildDeploymentMarkerPayload(runtime, options) {
72
+ // VIBES_SOURCE_SHA is NOT consulted: the CLI republishes its own compile-time
73
+ // bake into it at boot, so falling back to it records the CLI's commit as the
74
+ // app's. `options.commit` already carries the resolved app identity; the CI
75
+ // vars below genuinely name the checked-out app repository.
76
+ const commit = nonEmpty(options.commit) ??
77
+ nonEmpty(runtime.getEnv('GITHUB_SHA')) ??
78
+ nonEmpty(runtime.getEnv('CI_COMMIT_SHA'));
79
+ const branch = nonEmpty(options.branch) ??
80
+ nonEmpty(runtime.getEnv('VIBES_SOURCE_BRANCH')) ??
81
+ nonEmpty(runtime.getEnv('GITHUB_REF_NAME')) ??
82
+ nonEmpty(runtime.getEnv('CI_COMMIT_BRANCH'));
83
+ return {
84
+ appId: options.deployment.appId,
85
+ provider: deploymentMarkerProvider(runtime, options.provider),
86
+ environment: deploymentMarkerEnvironment(options.environment),
87
+ status: options.status ?? 'succeeded',
88
+ version: nonEmpty(options.version) ?? commit,
89
+ commit,
90
+ branch,
91
+ deployedBy: nonEmpty(options.deployedBy) ?? currentActor(runtime),
92
+ deployedUrl: nonEmpty(options.deployedUrl),
93
+ externalDeploymentId: nonEmpty(options.externalDeploymentId),
94
+ deploymentRunId: deploymentMarkerNotes(options.deploymentRunId, 300),
95
+ logsRef: deploymentMarkerNotes(options.logsRef, 300),
96
+ providerTraceRef: deploymentMarkerNotes(options.providerTraceRef, 300),
97
+ remediationUrl: deploymentMarkerNotes(options.remediationUrl, 300),
98
+ notes: deploymentMarkerNotes(options.notes),
99
+ deployedAt: new Date().toISOString()
100
+ };
101
+ }
102
+ async function resolveInternalTokenFromRuntime(runtime, environment) {
103
+ const tokens = [];
104
+ if (!runtime.hasKind('secrets/store'))
105
+ return tokens;
106
+ const resolvedEnvironment = await resolveSecretsEnvironment(runtime, null, environment);
107
+ const tierCandidates = new Set([resolvedEnvironment.tier]);
108
+ if (resolvedEnvironment.tier === 'local' || resolvedEnvironment.tier === 'dev') {
109
+ tierCandidates.add('staging');
110
+ tierCandidates.add('production');
111
+ }
112
+ const descriptors = runtime
113
+ .assets('secrets/store')
114
+ .descriptors()
115
+ .filter((descriptor) => {
116
+ if (!isGenericSecretsStoreDescriptor(descriptor))
117
+ return false;
118
+ if (environment)
119
+ return true;
120
+ if (!descriptor.tiers || descriptor.tiers.length === 0)
121
+ return true;
122
+ return descriptor.tiers.some((tier) => tierCandidates.has(tier));
123
+ })
124
+ .sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
125
+ for (const descriptor of descriptors) {
126
+ const store = await runtime
127
+ .query('secrets/store')
128
+ .withId(descriptor.id)
129
+ .resolve();
130
+ for (const key of INTERNAL_TOKEN_KEYS) {
131
+ const value = await store.get(resolvedEnvironment.name, key);
132
+ const token = nonEmpty(value);
133
+ if (token && !tokens.includes(token))
134
+ tokens.push(token);
135
+ }
136
+ }
137
+ return tokens;
138
+ }
139
+ export async function resolveDeploymentMarkerTokens(runtime, environment, explicit) {
140
+ const fromExplicit = nonEmpty(explicit);
141
+ if (fromExplicit)
142
+ return [fromExplicit];
143
+ const tokens = [];
144
+ // Credentials resolve through the runtime, never the host environment; an
145
+ // unresolved key is one absent candidate, and the store loop below asks next.
146
+ for (const key of INTERNAL_TOKEN_KEYS) {
147
+ const resolved = await runtime.resolveCredential({ source: 'secret', key });
148
+ if (!resolved.ok)
149
+ continue;
150
+ const value = nonEmpty(resolved.value);
151
+ if (value && !tokens.includes(value))
152
+ tokens.push(value);
153
+ }
154
+ for (const token of await resolveInternalTokenFromRuntime(runtime, environment)) {
155
+ if (!tokens.includes(token))
156
+ tokens.push(token);
157
+ }
158
+ return tokens;
159
+ }
160
+ export async function resolveDeploymentMarkerToken(runtime, environment, explicit) {
161
+ return (await resolveDeploymentMarkerTokens(runtime, environment, explicit))[0];
162
+ }
163
+ /**
164
+ * The marker endpoint's answer, read at this boundary: the two fields a sent
165
+ * marker reports, each still checked by `nonEmpty`. A JSON value that is not
166
+ * an object (`null`, an array, a string) carries neither.
167
+ */
168
+ const MarkerBodySchema = z.object({ id: z.unknown(), appId: z.unknown() }).partial();
169
+ /** The marker endpoint's JSON body; an unreadable or non-object body is logged and the marker still counts as sent. */
170
+ async function readMarkerBody(response, runtime) {
171
+ const jsonOutcome = await settle(() => response.json());
172
+ if (!jsonOutcome.ok) {
173
+ const failureName = jsonOutcome.cause instanceof Error ? jsonOutcome.cause.name : 'SyntaxError';
174
+ // The parse error's message can quote the body, so only its class is logged.
175
+ infraDeployLogger(runtime).warn(`Deployment marker response body was not JSON (${failureName})`);
176
+ return {};
177
+ }
178
+ const parsed = MarkerBodySchema.safeParse(jsonOutcome.value);
179
+ if (parsed.success)
180
+ return parsed.data;
181
+ infraDeployLogger(runtime).warn('Deployment marker response body was not a JSON object; no marker id was read');
182
+ return {};
183
+ }
184
+ export async function emitDeploymentMarker(options) {
185
+ if (options.status === 'in_progress') {
186
+ return { status: 'skipped', reason: 'in-progress markers are not emitted after deploy completion' };
187
+ }
188
+ const tokens = await resolveDeploymentMarkerTokens(options.runtime, options.environment, options.token);
189
+ if (tokens.length === 0) {
190
+ return { status: 'skipped', reason: 'internal service token unavailable' };
191
+ }
192
+ const payload = buildDeploymentMarkerPayload(options.runtime, options);
193
+ const origin = await systemOriginForDeployment(options.runtime, options.deployment, options.systemOrigin);
194
+ const fetcher = options.fetchImpl ?? fetch;
195
+ let lastAuthFailure;
196
+ for (const token of tokens) {
197
+ const sendOutcome = await settle(async () => {
198
+ return await fetcher(`${origin}/api/internal/deploy/marker`, {
199
+ method: 'POST',
200
+ headers: {
201
+ authorization: `Bearer ${token}`,
202
+ 'content-type': 'application/json'
203
+ },
204
+ body: JSON.stringify(payload)
205
+ });
206
+ });
207
+ if (!sendOutcome.ok) {
208
+ const failureName = sendOutcome.cause instanceof Error ? sendOutcome.cause.name : 'Error';
209
+ const failureText = sendOutcome.cause instanceof Error ? sendOutcome.cause.message : sendOutcome.cause.description;
210
+ // A transport error can echo request headers; the reason passes the marker redactor.
211
+ return {
212
+ status: 'failed',
213
+ reason: deploymentMarkerNotes(failureText) ?? failureName
214
+ };
215
+ }
216
+ const response = sendOutcome.value;
217
+ if (!response.ok) {
218
+ const result = {
219
+ status: 'failed',
220
+ reason: `system marker endpoint returned ${response.status}`
221
+ };
222
+ if (response.status === 401 || response.status === 403) {
223
+ lastAuthFailure = result;
224
+ continue;
225
+ }
226
+ return result;
227
+ }
228
+ const data = await readMarkerBody(response, options.runtime);
229
+ return {
230
+ status: 'sent',
231
+ markerId: nonEmpty(data.id),
232
+ appId: nonEmpty(data.appId) ?? payload.appId
233
+ };
234
+ }
235
+ return lastAuthFailure ?? { status: 'failed', reason: 'system marker endpoint rejected all tokens' };
236
+ }
237
+ //# sourceMappingURL=deployment-marker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-marker.js","sourceRoot":"","sources":["../../../src/cli/run/deployment-marker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAqB,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAqC,MAAM,+BAA+B,CAAC;AACtH,OAAO,EACN,+BAA+B,EAC/B,yBAAyB,EAGzB,MAAM,sBAAsB,CAAC;AAE9B,sFAAsF;AACtF,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;AAoD7E,MAAM,mBAAmB,GAAG;IAC3B,8BAA8B;IAC9B,2BAA2B;CAClB,CAAC;AACX,MAAM,4BAA4B,GACjC,mHAAmH,CAAC;AACrH,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAE/C,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEtD,SAAS,QAAQ,CAAC,KAAc;IAC/B,MAAM,MAAM,GAAG,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACrD,IAAI,MAAM,CAAC,OAAO;QAAE,OAAO,MAAM,CAAC,IAAI,CAAC;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