@vendure/cloud 0.4.0 → 0.5.0-dev.20261016123507.ge07a06e

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 (522) hide show
  1. package/README.md +43 -10
  2. package/dist/cli/arguments.d.ts.map +1 -1
  3. package/dist/cli/arguments.js +9 -31
  4. package/dist/cli/arguments.js.map +1 -1
  5. package/dist/cli/command.d.ts.map +1 -1
  6. package/dist/cli/command.js +13 -30
  7. package/dist/cli/command.js.map +1 -1
  8. package/dist/cli/commands/access/access.d.ts +5 -0
  9. package/dist/cli/commands/access/access.d.ts.map +1 -0
  10. package/dist/cli/commands/access/access.js +73 -0
  11. package/dist/cli/commands/access/access.js.map +1 -0
  12. package/dist/cli/commands/access/index.d.ts +2 -0
  13. package/dist/cli/commands/access/index.d.ts.map +1 -0
  14. package/dist/cli/commands/access/index.js +46 -0
  15. package/dist/cli/commands/access/index.js.map +1 -0
  16. package/dist/cli/commands/deployment/arguments.d.ts.map +1 -1
  17. package/dist/cli/commands/deployment/arguments.js +1 -8
  18. package/dist/cli/commands/deployment/arguments.js.map +1 -1
  19. package/dist/cli/commands/deployment/build-logs.d.ts.map +1 -1
  20. package/dist/cli/commands/deployment/build-logs.js +12 -16
  21. package/dist/cli/commands/deployment/build-logs.js.map +1 -1
  22. package/dist/cli/commands/deployment/deploy.d.ts.map +1 -1
  23. package/dist/cli/commands/deployment/deploy.js +88 -45
  24. package/dist/cli/commands/deployment/deploy.js.map +1 -1
  25. package/dist/cli/commands/deployment/index.d.ts.map +1 -1
  26. package/dist/cli/commands/deployment/index.js +18 -30
  27. package/dist/cli/commands/deployment/index.js.map +1 -1
  28. package/dist/cli/commands/deployment/list.d.ts.map +1 -1
  29. package/dist/cli/commands/deployment/list.js +5 -5
  30. package/dist/cli/commands/deployment/list.js.map +1 -1
  31. package/dist/cli/commands/deployment/log-export.d.ts.map +1 -1
  32. package/dist/cli/commands/deployment/log-export.js +14 -27
  33. package/dist/cli/commands/deployment/log-export.js.map +1 -1
  34. package/dist/cli/commands/deployment/log-query-output.d.ts.map +1 -1
  35. package/dist/cli/commands/deployment/log-query-output.js +18 -32
  36. package/dist/cli/commands/deployment/log-query-output.js.map +1 -1
  37. package/dist/cli/commands/deployment/logs.d.ts.map +1 -1
  38. package/dist/cli/commands/deployment/logs.js +52 -72
  39. package/dist/cli/commands/deployment/logs.js.map +1 -1
  40. package/dist/cli/commands/deployment/options.d.ts.map +1 -1
  41. package/dist/cli/commands/deployment/options.js +11 -20
  42. package/dist/cli/commands/deployment/options.js.map +1 -1
  43. package/dist/cli/commands/deployment/plan-format.d.ts.map +1 -1
  44. package/dist/cli/commands/deployment/plan-format.js +2 -2
  45. package/dist/cli/commands/deployment/plan-format.js.map +1 -1
  46. package/dist/cli/commands/deployment/plan.d.ts.map +1 -1
  47. package/dist/cli/commands/deployment/plan.js +7 -8
  48. package/dist/cli/commands/deployment/plan.js.map +1 -1
  49. package/dist/cli/commands/deployment/recovery.d.ts.map +1 -1
  50. package/dist/cli/commands/deployment/recovery.js +25 -35
  51. package/dist/cli/commands/deployment/recovery.js.map +1 -1
  52. package/dist/cli/commands/deployment/rollback.d.ts.map +1 -1
  53. package/dist/cli/commands/deployment/rollback.js +58 -12
  54. package/dist/cli/commands/deployment/rollback.js.map +1 -1
  55. package/dist/cli/commands/deployment/shared.d.ts.map +1 -1
  56. package/dist/cli/commands/deployment/shared.js +4 -7
  57. package/dist/cli/commands/deployment/shared.js.map +1 -1
  58. package/dist/cli/commands/deployment/show.d.ts.map +1 -1
  59. package/dist/cli/commands/deployment/show.js +8 -9
  60. package/dist/cli/commands/deployment/show.js.map +1 -1
  61. package/dist/cli/commands/deployment/source.d.ts.map +1 -1
  62. package/dist/cli/commands/deployment/source.js +2 -2
  63. package/dist/cli/commands/deployment/source.js.map +1 -1
  64. package/dist/cli/commands/deployment/status.d.ts.map +1 -1
  65. package/dist/cli/commands/deployment/status.js +10 -11
  66. package/dist/cli/commands/deployment/status.js.map +1 -1
  67. package/dist/cli/commands/deployment/teardown.js +22 -31
  68. package/dist/cli/commands/deployment/teardown.js.map +1 -1
  69. package/dist/cli/commands/identity-context/context.d.ts.map +1 -1
  70. package/dist/cli/commands/identity-context/context.js +3 -4
  71. package/dist/cli/commands/identity-context/context.js.map +1 -1
  72. package/dist/cli/commands/identity-context/index.d.ts.map +1 -1
  73. package/dist/cli/commands/identity-context/index.js +16 -50
  74. package/dist/cli/commands/identity-context/index.js.map +1 -1
  75. package/dist/cli/commands/identity-context/keys.d.ts.map +1 -1
  76. package/dist/cli/commands/identity-context/keys.js +13 -15
  77. package/dist/cli/commands/identity-context/keys.js.map +1 -1
  78. package/dist/cli/commands/identity-context/use.js +1 -1
  79. package/dist/cli/commands/identity-context/use.js.map +1 -1
  80. package/dist/cli/commands/index.d.ts.map +1 -1
  81. package/dist/cli/commands/index.js +13 -20
  82. package/dist/cli/commands/index.js.map +1 -1
  83. package/dist/cli/commands/project-config/config/build-fields.d.ts.map +1 -1
  84. package/dist/cli/commands/project-config/config/build-fields.js +2 -3
  85. package/dist/cli/commands/project-config/config/build-fields.js.map +1 -1
  86. package/dist/cli/commands/project-config/config/build.d.ts.map +1 -1
  87. package/dist/cli/commands/project-config/config/build.js +8 -9
  88. package/dist/cli/commands/project-config/config/build.js.map +1 -1
  89. package/dist/cli/commands/project-config/config/desired-state.d.ts.map +1 -1
  90. package/dist/cli/commands/project-config/config/desired-state.js +10 -12
  91. package/dist/cli/commands/project-config/config/desired-state.js.map +1 -1
  92. package/dist/cli/commands/project-config/config/email/domain.d.ts.map +1 -1
  93. package/dist/cli/commands/project-config/config/email/domain.js +12 -9
  94. package/dist/cli/commands/project-config/config/email/domain.js.map +1 -1
  95. package/dist/cli/commands/project-config/config/email/events.d.ts.map +1 -1
  96. package/dist/cli/commands/project-config/config/email/events.js +9 -9
  97. package/dist/cli/commands/project-config/config/email/events.js.map +1 -1
  98. package/dist/cli/commands/project-config/config/email/index.d.ts.map +1 -1
  99. package/dist/cli/commands/project-config/config/email/index.js +5 -6
  100. package/dist/cli/commands/project-config/config/email/index.js.map +1 -1
  101. package/dist/cli/commands/project-config/config/email/test-sending.d.ts.map +1 -1
  102. package/dist/cli/commands/project-config/config/email/test-sending.js +6 -5
  103. package/dist/cli/commands/project-config/config/email/test-sending.js.map +1 -1
  104. package/dist/cli/commands/project-config/config/index.d.ts.map +1 -1
  105. package/dist/cli/commands/project-config/config/index.js +8 -10
  106. package/dist/cli/commands/project-config/config/index.js.map +1 -1
  107. package/dist/cli/commands/project-config/config/runtime.d.ts.map +1 -1
  108. package/dist/cli/commands/project-config/config/runtime.js +10 -21
  109. package/dist/cli/commands/project-config/config/runtime.js.map +1 -1
  110. package/dist/cli/commands/project-config/config/set.js +3 -3
  111. package/dist/cli/commands/project-config/config/set.js.map +1 -1
  112. package/dist/cli/commands/project-config/config/show.d.ts.map +1 -1
  113. package/dist/cli/commands/project-config/config/show.js +7 -7
  114. package/dist/cli/commands/project-config/config/show.js.map +1 -1
  115. package/dist/cli/commands/project-config/env/add.d.ts.map +1 -1
  116. package/dist/cli/commands/project-config/env/add.js +4 -3
  117. package/dist/cli/commands/project-config/env/add.js.map +1 -1
  118. package/dist/cli/commands/project-config/env/get.d.ts.map +1 -1
  119. package/dist/cli/commands/project-config/env/get.js +7 -2
  120. package/dist/cli/commands/project-config/env/get.js.map +1 -1
  121. package/dist/cli/commands/project-config/env/import.d.ts.map +1 -1
  122. package/dist/cli/commands/project-config/env/import.js +15 -8
  123. package/dist/cli/commands/project-config/env/import.js.map +1 -1
  124. package/dist/cli/commands/project-config/env/index.js +7 -8
  125. package/dist/cli/commands/project-config/env/index.js.map +1 -1
  126. package/dist/cli/commands/project-config/env/list.d.ts.map +1 -1
  127. package/dist/cli/commands/project-config/env/list.js +29 -8
  128. package/dist/cli/commands/project-config/env/list.js.map +1 -1
  129. package/dist/cli/commands/project-config/env/metadata-options.d.ts.map +1 -1
  130. package/dist/cli/commands/project-config/env/metadata-options.js +0 -1
  131. package/dist/cli/commands/project-config/env/metadata-options.js.map +1 -1
  132. package/dist/cli/commands/project-config/env/pull.d.ts.map +1 -1
  133. package/dist/cli/commands/project-config/env/pull.js +22 -8
  134. package/dist/cli/commands/project-config/env/pull.js.map +1 -1
  135. package/dist/cli/commands/project-config/env/read-value.d.ts.map +1 -1
  136. package/dist/cli/commands/project-config/env/read-value.js +8 -4
  137. package/dist/cli/commands/project-config/env/read-value.js.map +1 -1
  138. package/dist/cli/commands/project-config/env/rm.d.ts.map +1 -1
  139. package/dist/cli/commands/project-config/env/rm.js +4 -3
  140. package/dist/cli/commands/project-config/env/rm.js.map +1 -1
  141. package/dist/cli/commands/project-config/env/run.d.ts.map +1 -1
  142. package/dist/cli/commands/project-config/env/run.js +9 -8
  143. package/dist/cli/commands/project-config/env/run.js.map +1 -1
  144. package/dist/cli/commands/project-config/env/update.d.ts.map +1 -1
  145. package/dist/cli/commands/project-config/env/update.js +4 -3
  146. package/dist/cli/commands/project-config/env/update.js.map +1 -1
  147. package/dist/cli/commands/project-config/environment/create.d.ts.map +1 -1
  148. package/dist/cli/commands/project-config/environment/create.js +5 -6
  149. package/dist/cli/commands/project-config/environment/create.js.map +1 -1
  150. package/dist/cli/commands/project-config/environment/delete.d.ts.map +1 -1
  151. package/dist/cli/commands/project-config/environment/delete.js +6 -6
  152. package/dist/cli/commands/project-config/environment/delete.js.map +1 -1
  153. package/dist/cli/commands/project-config/environment/find.js +3 -3
  154. package/dist/cli/commands/project-config/environment/find.js.map +1 -1
  155. package/dist/cli/commands/project-config/environment/index.d.ts.map +1 -1
  156. package/dist/cli/commands/project-config/environment/index.js +8 -10
  157. package/dist/cli/commands/project-config/environment/index.js.map +1 -1
  158. package/dist/cli/commands/project-config/environment/initial-superadmin.d.ts.map +1 -1
  159. package/dist/cli/commands/project-config/environment/initial-superadmin.js +4 -5
  160. package/dist/cli/commands/project-config/environment/initial-superadmin.js.map +1 -1
  161. package/dist/cli/commands/project-config/environment/list.d.ts.map +1 -1
  162. package/dist/cli/commands/project-config/environment/list.js +5 -5
  163. package/dist/cli/commands/project-config/environment/list.js.map +1 -1
  164. package/dist/cli/commands/project-config/environment/regions.d.ts.map +1 -1
  165. package/dist/cli/commands/project-config/environment/regions.js +3 -3
  166. package/dist/cli/commands/project-config/environment/regions.js.map +1 -1
  167. package/dist/cli/commands/project-config/environment/show.d.ts.map +1 -1
  168. package/dist/cli/commands/project-config/environment/show.js +3 -4
  169. package/dist/cli/commands/project-config/environment/show.js.map +1 -1
  170. package/dist/cli/commands/project-config/environment/update.d.ts.map +1 -1
  171. package/dist/cli/commands/project-config/environment/update.js +3 -4
  172. package/dist/cli/commands/project-config/environment/update.js.map +1 -1
  173. package/dist/cli/commands/project-config/index.js +5 -5
  174. package/dist/cli/commands/project-config/index.js.map +1 -1
  175. package/dist/cli/commands/project-config/init/build-detection.d.ts.map +1 -1
  176. package/dist/cli/commands/project-config/init/build-detection.js +4 -4
  177. package/dist/cli/commands/project-config/init/build-detection.js.map +1 -1
  178. package/dist/cli/commands/project-config/init/index.d.ts.map +1 -1
  179. package/dist/cli/commands/project-config/init/index.js +4 -5
  180. package/dist/cli/commands/project-config/init/index.js.map +1 -1
  181. package/dist/cli/commands/project-config/init/init.d.ts.map +1 -1
  182. package/dist/cli/commands/project-config/init/init.js +18 -22
  183. package/dist/cli/commands/project-config/init/init.js.map +1 -1
  184. package/dist/cli/commands/project-config/options.d.ts.map +1 -1
  185. package/dist/cli/commands/project-config/options.js +9 -14
  186. package/dist/cli/commands/project-config/options.js.map +1 -1
  187. package/dist/cli/commands/project-config/project/create.d.ts.map +1 -1
  188. package/dist/cli/commands/project-config/project/create.js +3 -3
  189. package/dist/cli/commands/project-config/project/create.js.map +1 -1
  190. package/dist/cli/commands/project-config/project/delete.d.ts.map +1 -1
  191. package/dist/cli/commands/project-config/project/delete.js +4 -5
  192. package/dist/cli/commands/project-config/project/delete.js.map +1 -1
  193. package/dist/cli/commands/project-config/project/index.d.ts.map +1 -1
  194. package/dist/cli/commands/project-config/project/index.js +4 -5
  195. package/dist/cli/commands/project-config/project/index.js.map +1 -1
  196. package/dist/cli/commands/project-config/project/link.d.ts.map +1 -1
  197. package/dist/cli/commands/project-config/project/link.js +4 -4
  198. package/dist/cli/commands/project-config/project/link.js.map +1 -1
  199. package/dist/cli/commands/project-config/project/list.d.ts.map +1 -1
  200. package/dist/cli/commands/project-config/project/list.js +5 -5
  201. package/dist/cli/commands/project-config/project/list.js.map +1 -1
  202. package/dist/cli/commands/project-config/project/show.d.ts.map +1 -1
  203. package/dist/cli/commands/project-config/project/show.js +11 -14
  204. package/dist/cli/commands/project-config/project/show.js.map +1 -1
  205. package/dist/cli/commands/project-config/project/subscription-state.d.ts.map +1 -1
  206. package/dist/cli/commands/project-config/project/subscription-state.js +17 -20
  207. package/dist/cli/commands/project-config/project/subscription-state.js.map +1 -1
  208. package/dist/cli/commands/project-config/project/unlink.d.ts.map +1 -1
  209. package/dist/cli/commands/project-config/project/unlink.js +2 -3
  210. package/dist/cli/commands/project-config/project/unlink.js.map +1 -1
  211. package/dist/cli/commands/project-config/project/update.d.ts.map +1 -1
  212. package/dist/cli/commands/project-config/project/update.js +3 -4
  213. package/dist/cli/commands/project-config/project/update.js.map +1 -1
  214. package/dist/cli/commands/project-config/source/connect.d.ts.map +1 -1
  215. package/dist/cli/commands/project-config/source/connect.js +24 -26
  216. package/dist/cli/commands/project-config/source/connect.js.map +1 -1
  217. package/dist/cli/commands/project-config/source/disconnect.d.ts.map +1 -1
  218. package/dist/cli/commands/project-config/source/disconnect.js +4 -4
  219. package/dist/cli/commands/project-config/source/disconnect.js.map +1 -1
  220. package/dist/cli/commands/project-config/source/index.js +7 -7
  221. package/dist/cli/commands/project-config/source/index.js.map +1 -1
  222. package/dist/cli/commands/project-config/source/map.d.ts.map +1 -1
  223. package/dist/cli/commands/project-config/source/map.js +12 -16
  224. package/dist/cli/commands/project-config/source/map.js.map +1 -1
  225. package/dist/cli/commands/project-config/source/repos.d.ts.map +1 -1
  226. package/dist/cli/commands/project-config/source/repos.js +5 -5
  227. package/dist/cli/commands/project-config/source/repos.js.map +1 -1
  228. package/dist/cli/commands/project-config/source/status.d.ts.map +1 -1
  229. package/dist/cli/commands/project-config/source/status.js +16 -25
  230. package/dist/cli/commands/project-config/source/status.js.map +1 -1
  231. package/dist/cli/commands/runtime-data/backup.d.ts.map +1 -1
  232. package/dist/cli/commands/runtime-data/backup.js +34 -36
  233. package/dist/cli/commands/runtime-data/backup.js.map +1 -1
  234. package/dist/cli/commands/runtime-data/index.d.ts.map +1 -1
  235. package/dist/cli/commands/runtime-data/index.js +38 -39
  236. package/dist/cli/commands/runtime-data/index.js.map +1 -1
  237. package/dist/cli/commands/runtime-data/resource.d.ts +1 -0
  238. package/dist/cli/commands/runtime-data/resource.d.ts.map +1 -1
  239. package/dist/cli/commands/runtime-data/resource.js +92 -33
  240. package/dist/cli/commands/runtime-data/resource.js.map +1 -1
  241. package/dist/cli/commands/runtime-data/restore.d.ts.map +1 -1
  242. package/dist/cli/commands/runtime-data/restore.js +32 -45
  243. package/dist/cli/commands/runtime-data/restore.js.map +1 -1
  244. package/dist/cli/commands/runtime-data/seeds.d.ts.map +1 -1
  245. package/dist/cli/commands/runtime-data/seeds.js +24 -26
  246. package/dist/cli/commands/runtime-data/seeds.js.map +1 -1
  247. package/dist/cli/commands/runtime-data/tunnel.d.ts.map +1 -1
  248. package/dist/cli/commands/runtime-data/tunnel.js +33 -43
  249. package/dist/cli/commands/runtime-data/tunnel.js.map +1 -1
  250. package/dist/cli/host-arguments.d.ts.map +1 -1
  251. package/dist/cli/host-arguments.js +10 -18
  252. package/dist/cli/host-arguments.js.map +1 -1
  253. package/dist/cli/host-nodes.js +1 -1
  254. package/dist/cli/host-nodes.js.map +1 -1
  255. package/dist/cli/index.d.ts +10 -13
  256. package/dist/cli/index.d.ts.map +1 -1
  257. package/dist/cli/index.js +22 -33
  258. package/dist/cli/index.js.map +1 -1
  259. package/dist/cli/lib/api-client.d.ts +10 -5
  260. package/dist/cli/lib/api-client.d.ts.map +1 -1
  261. package/dist/cli/lib/api-client.js +23 -42
  262. package/dist/cli/lib/api-client.js.map +1 -1
  263. package/dist/cli/lib/auth.d.ts +4 -145
  264. package/dist/cli/lib/auth.d.ts.map +1 -1
  265. package/dist/cli/lib/auth.js +8 -515
  266. package/dist/cli/lib/auth.js.map +1 -1
  267. package/dist/cli/lib/cli-login.d.ts +12 -0
  268. package/dist/cli/lib/cli-login.d.ts.map +1 -0
  269. package/dist/cli/lib/cli-login.js +155 -0
  270. package/dist/cli/lib/cli-login.js.map +1 -0
  271. package/dist/cli/lib/cloud-api-url.d.ts +2 -0
  272. package/dist/cli/lib/cloud-api-url.d.ts.map +1 -0
  273. package/dist/cli/lib/cloud-api-url.js +3 -0
  274. package/dist/cli/lib/cloud-api-url.js.map +1 -0
  275. package/dist/cli/lib/commit.d.ts.map +1 -1
  276. package/dist/cli/lib/commit.js +2 -3
  277. package/dist/cli/lib/commit.js.map +1 -1
  278. package/dist/cli/lib/config-revisions.d.ts +9 -0
  279. package/dist/cli/lib/config-revisions.d.ts.map +1 -0
  280. package/dist/cli/lib/config-revisions.js +52 -0
  281. package/dist/cli/lib/config-revisions.js.map +1 -0
  282. package/dist/cli/lib/config.d.ts +0 -4
  283. package/dist/cli/lib/config.d.ts.map +1 -1
  284. package/dist/cli/lib/config.js +3 -5
  285. package/dist/cli/lib/config.js.map +1 -1
  286. package/dist/cli/lib/console-pairing.d.ts +1 -14
  287. package/dist/cli/lib/console-pairing.d.ts.map +1 -1
  288. package/dist/cli/lib/console-pairing.js +48 -60
  289. package/dist/cli/lib/console-pairing.js.map +1 -1
  290. package/dist/cli/lib/contract/backup-schedule-reasons.d.ts.map +1 -1
  291. package/dist/cli/lib/contract/backup-schedule-reasons.js +3 -7
  292. package/dist/cli/lib/contract/backup-schedule-reasons.js.map +1 -1
  293. package/dist/cli/lib/contract/build-settings.d.ts +1 -1
  294. package/dist/cli/lib/contract/build-settings.d.ts.map +1 -1
  295. package/dist/cli/lib/contract/build-settings.js +12 -18
  296. package/dist/cli/lib/contract/build-settings.js.map +1 -1
  297. package/dist/cli/lib/contract/database.d.ts.map +1 -1
  298. package/dist/cli/lib/contract/database.js +7 -13
  299. package/dist/cli/lib/contract/database.js.map +1 -1
  300. package/dist/cli/lib/contract/deployment-resource-labels.d.ts.map +1 -1
  301. package/dist/cli/lib/contract/deployment-resource-labels.js +2 -6
  302. package/dist/cli/lib/contract/deployment-resource-labels.js.map +1 -1
  303. package/dist/cli/lib/contract/deployments.d.ts +1 -0
  304. package/dist/cli/lib/contract/deployments.d.ts.map +1 -1
  305. package/dist/cli/lib/contract/deployments.js +32 -40
  306. package/dist/cli/lib/contract/deployments.js.map +1 -1
  307. package/dist/cli/lib/contract/desired-state.d.ts +3 -1
  308. package/dist/cli/lib/contract/desired-state.d.ts.map +1 -1
  309. package/dist/cli/lib/contract/desired-state.js +33 -50
  310. package/dist/cli/lib/contract/desired-state.js.map +1 -1
  311. package/dist/cli/lib/contract/env-vars.d.ts +37 -0
  312. package/dist/cli/lib/contract/env-vars.d.ts.map +1 -0
  313. package/dist/cli/lib/contract/env-vars.js +6 -0
  314. package/dist/cli/lib/contract/env-vars.js.map +1 -0
  315. package/dist/cli/lib/contract/foreign-credentials.d.ts +14 -27
  316. package/dist/cli/lib/contract/foreign-credentials.d.ts.map +1 -1
  317. package/dist/cli/lib/contract/foreign-credentials.js +19 -32
  318. package/dist/cli/lib/contract/foreign-credentials.js.map +1 -1
  319. package/dist/cli/lib/contract/logs.d.ts.map +1 -1
  320. package/dist/cli/lib/contract/logs.js +26 -34
  321. package/dist/cli/lib/contract/logs.js.map +1 -1
  322. package/dist/cli/lib/contract/managed-email.d.ts.map +1 -1
  323. package/dist/cli/lib/contract/managed-email.js +2 -3
  324. package/dist/cli/lib/contract/managed-email.js.map +1 -1
  325. package/dist/cli/lib/contract/permission-denied.d.ts +16 -0
  326. package/dist/cli/lib/contract/permission-denied.d.ts.map +1 -0
  327. package/dist/cli/lib/contract/permission-denied.js +20 -0
  328. package/dist/cli/lib/contract/permission-denied.js.map +1 -0
  329. package/dist/cli/lib/contract/project-grants.d.ts +16 -0
  330. package/dist/cli/lib/contract/project-grants.d.ts.map +1 -0
  331. package/dist/cli/lib/contract/project-grants.js +58 -0
  332. package/dist/cli/lib/contract/project-grants.js.map +1 -0
  333. package/dist/cli/lib/contract/projects.d.ts.map +1 -1
  334. package/dist/cli/lib/contract/projects.js +2 -3
  335. package/dist/cli/lib/contract/projects.js.map +1 -1
  336. package/dist/cli/lib/contract/public-error-details.d.ts.map +1 -1
  337. package/dist/cli/lib/contract/public-error-details.js +28 -43
  338. package/dist/cli/lib/contract/public-error-details.js.map +1 -1
  339. package/dist/cli/lib/contract/regions.js +2 -2
  340. package/dist/cli/lib/contract/regions.js.map +1 -1
  341. package/dist/cli/lib/contract/runtime-operations.d.ts +16 -0
  342. package/dist/cli/lib/contract/runtime-operations.d.ts.map +1 -1
  343. package/dist/cli/lib/contract/runtime-operations.js +16 -21
  344. package/dist/cli/lib/contract/runtime-operations.js.map +1 -1
  345. package/dist/cli/lib/contract/seeds.d.ts.map +1 -1
  346. package/dist/cli/lib/contract/seeds.js +12 -21
  347. package/dist/cli/lib/contract/seeds.js.map +1 -1
  348. package/dist/cli/lib/contract/source-disconnect-reasons.d.ts.map +1 -1
  349. package/dist/cli/lib/contract/source-disconnect-reasons.js +9 -17
  350. package/dist/cli/lib/contract/source-disconnect-reasons.js.map +1 -1
  351. package/dist/cli/lib/contract/source-repository.d.ts.map +1 -1
  352. package/dist/cli/lib/contract/source-repository.js +5 -9
  353. package/dist/cli/lib/contract/source-repository.js.map +1 -1
  354. package/dist/cli/lib/contract/wire-types.d.ts.map +1 -1
  355. package/dist/cli/lib/contract/wire-types.js +3 -8
  356. package/dist/cli/lib/contract/wire-types.js.map +1 -1
  357. package/dist/cli/lib/contract/wire-values.d.ts.map +1 -1
  358. package/dist/cli/lib/contract/wire-values.js +2 -3
  359. package/dist/cli/lib/contract/wire-values.js.map +1 -1
  360. package/dist/cli/lib/dotenv.d.ts +6 -0
  361. package/dist/cli/lib/dotenv.d.ts.map +1 -1
  362. package/dist/cli/lib/dotenv.js +62 -20
  363. package/dist/cli/lib/dotenv.js.map +1 -1
  364. package/dist/cli/lib/env-file.d.ts.map +1 -1
  365. package/dist/cli/lib/env-file.js +5 -11
  366. package/dist/cli/lib/env-file.js.map +1 -1
  367. package/dist/cli/lib/env-preflight.d.ts +6 -1
  368. package/dist/cli/lib/env-preflight.d.ts.map +1 -1
  369. package/dist/cli/lib/env-preflight.js +91 -63
  370. package/dist/cli/lib/env-preflight.js.map +1 -1
  371. package/dist/cli/lib/errors.d.ts +17 -49
  372. package/dist/cli/lib/errors.d.ts.map +1 -1
  373. package/dist/cli/lib/errors.js +47 -106
  374. package/dist/cli/lib/errors.js.map +1 -1
  375. package/dist/cli/lib/format.d.ts.map +1 -1
  376. package/dist/cli/lib/format.js +3 -5
  377. package/dist/cli/lib/format.js.map +1 -1
  378. package/dist/cli/lib/invocation.d.ts +4 -5
  379. package/dist/cli/lib/invocation.d.ts.map +1 -1
  380. package/dist/cli/lib/invocation.js +5 -33
  381. package/dist/cli/lib/invocation.js.map +1 -1
  382. package/dist/cli/lib/log-stream.d.ts.map +1 -1
  383. package/dist/cli/lib/log-stream.js +15 -23
  384. package/dist/cli/lib/log-stream.js.map +1 -1
  385. package/dist/cli/lib/logger.d.ts.map +1 -1
  386. package/dist/cli/lib/logger.js +7 -12
  387. package/dist/cli/lib/logger.js.map +1 -1
  388. package/dist/cli/lib/organization.d.ts.map +1 -1
  389. package/dist/cli/lib/organization.js +5 -13
  390. package/dist/cli/lib/organization.js.map +1 -1
  391. package/dist/cli/lib/project-link.d.ts.map +1 -1
  392. package/dist/cli/lib/project-link.js +2 -4
  393. package/dist/cli/lib/project-link.js.map +1 -1
  394. package/dist/cli/lib/resolve.d.ts +1 -6
  395. package/dist/cli/lib/resolve.d.ts.map +1 -1
  396. package/dist/cli/lib/resolve.js +26 -48
  397. package/dist/cli/lib/resolve.js.map +1 -1
  398. package/dist/cli/lib/source-repository-link.d.ts.map +1 -1
  399. package/dist/cli/lib/source-repository-link.js +6 -9
  400. package/dist/cli/lib/source-repository-link.js.map +1 -1
  401. package/dist/cli/lib/terminal-output.d.ts +4 -0
  402. package/dist/cli/lib/terminal-output.d.ts.map +1 -1
  403. package/dist/cli/lib/terminal-output.js +35 -18
  404. package/dist/cli/lib/terminal-output.js.map +1 -1
  405. package/dist/cli/lib/types.d.ts +3 -7
  406. package/dist/cli/lib/types.d.ts.map +1 -1
  407. package/dist/cli/lib/types.js.map +1 -1
  408. package/dist/cli/lib/utf8.d.ts +2 -0
  409. package/dist/cli/lib/utf8.d.ts.map +1 -0
  410. package/dist/cli/lib/utf8.js +12 -0
  411. package/dist/cli/lib/utf8.js.map +1 -0
  412. package/dist/cli/root-options.d.ts.map +1 -1
  413. package/dist/cli/root-options.js +11 -14
  414. package/dist/cli/root-options.js.map +1 -1
  415. package/dist/cli-plugin.d.ts.map +1 -1
  416. package/dist/cli-plugin.js +2 -6
  417. package/dist/cli-plugin.js.map +1 -1
  418. package/dist/cloud-config-module.js +2 -2
  419. package/dist/cloud-config-module.js.map +1 -1
  420. package/dist/dev/cli-host.d.ts.map +1 -1
  421. package/dist/dev/cli-host.js +16 -19
  422. package/dist/dev/cli-host.js.map +1 -1
  423. package/dist/dev/dashboard-vite-config.d.ts.map +1 -1
  424. package/dist/dev/dashboard-vite-config.js +17 -20
  425. package/dist/dev/dashboard-vite-config.js.map +1 -1
  426. package/dist/dev/dev-command.d.ts.map +1 -1
  427. package/dist/dev/dev-command.js +72 -55
  428. package/dist/dev/dev-command.js.map +1 -1
  429. package/dist/dev/dev-config.d.ts +3 -0
  430. package/dist/dev/dev-config.d.ts.map +1 -1
  431. package/dist/dev/dev-config.js +43 -13
  432. package/dist/dev/dev-config.js.map +1 -1
  433. package/dist/dev/dev-migrate.js +7 -11
  434. package/dist/dev/dev-migrate.js.map +1 -1
  435. package/dist/dev/dev-process.d.ts.map +1 -1
  436. package/dist/dev/dev-process.js +6 -10
  437. package/dist/dev/dev-process.js.map +1 -1
  438. package/dist/dev/dev-server.js +7 -9
  439. package/dist/dev/dev-server.js.map +1 -1
  440. package/dist/dev/dev-worker.js +5 -3
  441. package/dist/dev/dev-worker.js.map +1 -1
  442. package/dist/dev/local-services.d.ts.map +1 -1
  443. package/dist/dev/local-services.js +163 -106
  444. package/dist/dev/local-services.js.map +1 -1
  445. package/dist/dev/project-layout.d.ts.map +1 -1
  446. package/dist/dev/project-layout.js +12 -17
  447. package/dist/dev/project-layout.js.map +1 -1
  448. package/dist/dev/project-plugin-scope.d.ts +2 -0
  449. package/dist/dev/project-plugin-scope.d.ts.map +1 -0
  450. package/dist/dev/project-plugin-scope.js +38 -0
  451. package/dist/dev/project-plugin-scope.js.map +1 -0
  452. package/dist/entrypoint.js +2 -0
  453. package/dist/entrypoint.js.map +1 -1
  454. package/dist/index.d.ts.map +1 -1
  455. package/dist/index.js +3 -6
  456. package/dist/index.js.map +1 -1
  457. package/dist/local-asset-server.d.ts.map +1 -1
  458. package/dist/local-asset-server.js +7 -13
  459. package/dist/local-asset-server.js.map +1 -1
  460. package/dist/local-cache-plugin.d.ts.map +1 -1
  461. package/dist/local-cache-plugin.js +20 -28
  462. package/dist/local-cache-plugin.js.map +1 -1
  463. package/dist/local-cache.d.ts.map +1 -1
  464. package/dist/local-cache.js +40 -55
  465. package/dist/local-cache.js.map +1 -1
  466. package/dist/local-core.d.ts.map +1 -1
  467. package/dist/local-core.js +3 -5
  468. package/dist/local-core.js.map +1 -1
  469. package/dist/local-dashboard-plugin.d.ts.map +1 -1
  470. package/dist/local-dashboard-plugin.js +6 -11
  471. package/dist/local-dashboard-plugin.js.map +1 -1
  472. package/dist/local-database.d.ts.map +1 -1
  473. package/dist/local-database.js +20 -23
  474. package/dist/local-database.js.map +1 -1
  475. package/dist/local-durable-execution-plugin.d.ts +12 -0
  476. package/dist/local-durable-execution-plugin.d.ts.map +1 -1
  477. package/dist/local-durable-execution-plugin.js +296 -24
  478. package/dist/local-durable-execution-plugin.js.map +1 -1
  479. package/dist/local-runtime-guard.d.ts +2 -0
  480. package/dist/local-runtime-guard.d.ts.map +1 -1
  481. package/dist/local-runtime-guard.js +40 -3
  482. package/dist/local-runtime-guard.js.map +1 -1
  483. package/dist/local-runtime.d.ts.map +1 -1
  484. package/dist/local-runtime.js +51 -48
  485. package/dist/local-runtime.js.map +1 -1
  486. package/package.json +16 -9
  487. package/dist/cli/commands/identity-context/login.d.ts +0 -2
  488. package/dist/cli/commands/identity-context/login.d.ts.map +0 -1
  489. package/dist/cli/commands/identity-context/login.js +0 -158
  490. package/dist/cli/commands/identity-context/login.js.map +0 -1
  491. package/dist/cli/commands/identity-context/logout.d.ts +0 -2
  492. package/dist/cli/commands/identity-context/logout.d.ts.map +0 -1
  493. package/dist/cli/commands/identity-context/logout.js +0 -11
  494. package/dist/cli/commands/identity-context/logout.js.map +0 -1
  495. package/dist/cli/commands/identity-context/org-switch.d.ts +0 -3
  496. package/dist/cli/commands/identity-context/org-switch.d.ts.map +0 -1
  497. package/dist/cli/commands/identity-context/org-switch.js +0 -83
  498. package/dist/cli/commands/identity-context/org-switch.js.map +0 -1
  499. package/dist/cli/commands/identity-context/whoami.d.ts +0 -3
  500. package/dist/cli/commands/identity-context/whoami.d.ts.map +0 -1
  501. package/dist/cli/commands/identity-context/whoami.js +0 -101
  502. package/dist/cli/commands/identity-context/whoami.js.map +0 -1
  503. package/dist/cli/lib/console-credential.d.ts +0 -55
  504. package/dist/cli/lib/console-credential.d.ts.map +0 -1
  505. package/dist/cli/lib/console-credential.js +0 -164
  506. package/dist/cli/lib/console-credential.js.map +0 -1
  507. package/dist/cli/lib/console-origins.d.ts +0 -30
  508. package/dist/cli/lib/console-origins.d.ts.map +0 -1
  509. package/dist/cli/lib/console-origins.js +0 -87
  510. package/dist/cli/lib/console-origins.js.map +0 -1
  511. package/dist/cli/lib/console-session-lock.d.ts +0 -39
  512. package/dist/cli/lib/console-session-lock.d.ts.map +0 -1
  513. package/dist/cli/lib/console-session-lock.js +0 -235
  514. package/dist/cli/lib/console-session-lock.js.map +0 -1
  515. package/dist/cli/lib/console-session.d.ts +0 -47
  516. package/dist/cli/lib/console-session.d.ts.map +0 -1
  517. package/dist/cli/lib/console-session.js +0 -235
  518. package/dist/cli/lib/console-session.js.map +0 -1
  519. package/dist/cli/lib/file-lock.d.ts +0 -23
  520. package/dist/cli/lib/file-lock.d.ts.map +0 -1
  521. package/dist/cli/lib/file-lock.js +0 -121
  522. package/dist/cli/lib/file-lock.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/database.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB,4CAA6C,CAAC;AAChF,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAKxE,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC7D,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAAG,UAAU,CAAC;AAE1E,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;IAGzB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAG9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAID,eAAO,MAAM,yBAAyB,uDAAwD,CAAC;AAC/F,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAA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AAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED,eAAO,MAAM,2BAA2B,cAAc,CAAC;AACvD,eAAO,MAAM,4BAA4B,aAAqD,CAAC"}
@@ -2,21 +2,15 @@
2
2
  // `index.ts` that the hosted data commands read. See ./README.md for why this package cannot import
3
3
  // them, including as types.
4
4
  //
5
- // `DatabaseRestore.errorDetails` is the one field that is not a copy: the original types it with
6
- // the `PublicErrorDetails` brand and this types it `string`, for the reason ./README.md gives — the
7
- // brand is a claim only the writer can make, and the CLI only renders these strings.
8
- // A backup's kind is a fixed set the CLI filters and labels by, so it is a `const` array here where
9
- // the original is a bare union: an array is something `test/cli-contract-parity.test.ts` can hold
10
- // up against the real type at compile time and the members stay readable at runtime.
5
+ // `DatabaseRestore.errorDetails` is not a copy: the original uses the `PublicErrorDetails` brand
6
+ // and this types it `string`, for the reason ./README.md gives.
7
+ // A `const` array here where the original is a bare union, so `test/cli-contract-parity.test.ts`
8
+ // can compare it with the real type at compile time and the members exist at runtime.
11
9
  export const DATABASE_BACKUP_KINDS = ["manual", "scheduled", "safety"];
12
- // A restore's own lifecycle, and the vocabulary `DB_OPERATION_SUCCESS_STATUS` and
13
- // `DB_OPERATION_FAILED_STATUSES` below already sort into "keep waiting" and "stop".
14
10
  export const DATABASE_RESTORE_STATUSES = ["queued", "running", "completed", "failed"];
15
- // Which half of the operation is running, which `status` cannot say and a customer watching a
16
- // destructive operation for an hour needs to know. A restore is two long tasks back to back: the
17
- // mandatory Safety Backup, then the load itself. Only the second one has touched their data, so
18
- // "still taking the safety backup" and "restoring" are different answers to "can I still cancel
19
- // this safely" (CLO-499).
11
+ // Which half of a restore is running, which `status` cannot say. The Safety Backup runs first and
12
+ // only the load touches customer data, so a customer needs the phase to know whether cancelling is
13
+ // still safe (CLO-499).
20
14
  export const DATABASE_RESTORE_PHASES = [
21
15
  "queued",
22
16
  "safety-backup",
@@ -1 +1 @@
1
- {"version":3,"file":"database.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/database.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,oGAAoG;AACpG,4BAA4B;AAC5B,EAAE;AACF,iGAAiG;AACjG,oGAAoG;AACpG,qFAAqF;AAErF,oGAAoG;AACpG,kGAAkG;AAClG,qFAAqF;AACrF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AA0BhF,kFAAkF;AAClF,oFAAoF;AACpF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAG/F,8FAA8F;AAC9F,iGAAiG;AACjG,gGAAgG;AAChG,gGAAgG;AAChG,0BAA0B;AAC1B,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ;IACR,eAAe;IACf,WAAW;IACX,WAAW;IACX,QAAQ;CACA,CAAC;AAqEX,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAAC;AACvD,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"database.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/database.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,oGAAoG;AACpG,4BAA4B;AAC5B,EAAE;AACF,iGAAiG;AACjG,gEAAgE;AAEhE,iGAAiG;AACjG,sFAAsF;AACtF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAuBhF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAG/F,kGAAkG;AAClG,mGAAmG;AACnG,wBAAwB;AACxB,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ;IACR,eAAe;IACf,WAAW;IACX,WAAW;IACX,QAAQ;CACA,CAAC;AAgEX,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAAC;AACvD,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-resource-labels.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployment-resource-labels.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAqBD,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,4BAA4B,EACtC,OAAO,EAAE,8BAA8B,GACtC,MAAM,GAAG,IAAI,CAuCf"}
1
+ {"version":3,"file":"deployment-resource-labels.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployment-resource-labels.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAqBD,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,4BAA4B,EACtC,OAAO,EAAE,8BAA8B,GACtC,MAAM,GAAG,IAAI,CAmCf"}
@@ -47,12 +47,8 @@ export function formatDeploymentResourceLabel(resource, context) {
47
47
  if (component === "migration")
48
48
  return "Migration job";
49
49
  if (resource.kind === "EnvVar") {
50
- // Same denylist reasoning as the retired kinds above and the retired shapes
51
- // in public-error-details.ts: nothing writes `NF_`-prefixed keys any more,
52
- // but stored `errorDetails` lines on `deployments` / `teardowns` are routed
53
- // through here on every read, and `uniqueLabels` re-derives labels from
54
- // {kind, name} rather than trusting the stored one. Dropping the branch only
55
- // lets an old row surface the retired provider-inherited key verbatim.
50
+ // Stored `errorDetails` on `deployments` and `teardowns` pass through here on every read.
51
+ // Dropping this branch lets an old row surface a retired `NF_`-prefixed key verbatim.
56
52
  return resource.name.startsWith("NF_")
57
53
  ? "Managed environment variables"
58
54
  : `Environment variable ${resource.name}`;
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-resource-labels.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployment-resource-labels.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,+FAA+F;AAC/F,sBAAsB;AAatB,MAAM,gCAAgC,GAAG,IAAI,GAAG,CAAC;IAC/C,WAAW;IACX,QAAQ;IACR,SAAS;IACT,UAAU;IACV,mBAAmB;IACnB,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,iCAAiC,GAAG,IAAI,GAAG,CAAC;IAChD,OAAO;IACP,mBAAmB;IACnB,QAAQ;IACR,WAAW;IACX,aAAa;IACb,WAAW;IACX,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,QAAsC,EACtC,OAAuC;IAEvC,IAAI,OAAO,QAAQ,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC,KAAK,CAAC;IAE9D,MAAM,SAAS,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAE7F,IA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ACzE,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW;QAAE,OAAO,OAAO,SAAS,EAAE,CAAC;IAC7D,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC/B,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5F,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,KAAK,EAAE,CAAC;IACrE,CAAC;IACD,IAAI,QAAQ,CAAC,IAAI,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IAChD,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW;QAAE,OAAO,gBAAgB,CAAC;IAE3D,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,WAAmB,EAAE,eAAuB;IAC/E,MAAM,MAAM,GAAG,GAAG,WAAW,IAAI,eAAe,GAAG,CAAC;IACpD,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACpE,CAAC"}
1
+ {"version":3,"file":"deployment-resource-labels.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployment-resource-labels.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,+FAA+F;AAC/F,sBAAsB;AAatB,MAAM,gCAAgC,GAAG,IAAI,GAAG,CAAC;IAC/C,WAAW;IACX,QAAQ;IACR,SAAS;IACT,UAAU;IACV,mBAAmB;IACnB,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,iCAAiC,GAAG,IAAI,GAAG,CAAC;IAChD,OAAO;IACP,mBAAmB;IACnB,QAAQ;IACR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_RESTORE: "DATABASE_RESTORE";
85
85
  readonly RELOCATION: "RELOCATION";
86
+ readonly BENCHMARK_RUNTIME_PROFILE: "BENCHMARK_RUNTIME_PROFILE";
86
87
  };
87
88
  export type EnvironmentActiveWorkKind = (typeof EnvironmentActiveWorkKind)[keyof typeof EnvironmentActiveWorkKind];
88
89
  export type EnvironmentActiveWork = {
@@ -1 +1 @@
1
- {"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployments.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,KAAK,EAAE,0BAA0B,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/F,eAAO,MAAM,2BAA2B,sDAAuD,CAAC;AAEhG,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpF,eAAO,MAAM,uBAAuB,iDAAkD,CAAC;AAEvF,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,wBAAwB,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAeF,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,OAAO,EAAE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nB,CAAC;IACF,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,IAAI,CAAC;IACT,QAAQ,EAAE,KAAK,CACb,yBAAyB,GAAG;QAC1B,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;QACzC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CACF,CAAC;IAKF,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,WAAW,0BAA2B,SAAQ,0BAA0B;IAC5E,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAA0B,SAAQ,0BAA0B;IAE3E,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D"}
@@ -2,34 +2,28 @@
2
2
  // `@vendure-cloud/api-types`'s `index.ts` that the hosted deployment commands read. See ./README.md
3
3
  // for why this package cannot import them, including as types.
4
4
  //
5
- // `VcRegion` comes from `./desired-state.js` rather than being declared again here, which is the
6
- // direction the originals import in too: `@vendure-cloud/api-types` takes the region vocabulary
7
- // from `@vendure-cloud/environment-state`.
5
+ // `VcRegion` comes from `./desired-state.js`, as the originals import it from
6
+ // `@vendure-cloud/environment-state`.
8
7
  //
9
- // The write side is not mirrored. `StoredDeploymentSummary`, `ProtectedOrphan` and the two
10
- // functions that turn them into the public summaries are how the control plane records a
11
- // deployment, and nothing in the CLI records one — it reads what those functions produced, which is
12
- // `DeploymentSummary` and `ProtectedResource` in `./wire-types.js`.
8
+ // The write side is not mirrored. `StoredDeploymentSummary`, `ProtectedOrphan` and the functions
9
+ // that turn them into public summaries are the control plane's recording path. The CLI reads
10
+ // `DeploymentSummary` and `ProtectedResource` from `./wire-types.js`.
13
11
  export const DEPLOYMENT_RESOURCE_ACTIONS = ["create", "update", "delete", "no-change"];
14
12
  export const DEPLOYMENT_PLAN_ACTIONS = ["create", "update", "delete", "keep"];
15
- // Whether a plan knows what it is talking about. Written as a function rather than left to each
16
- // caller's own `!== null`, because the answer decides whether a destructive command proceeds.
13
+ // Whether the platform could not compute the plan preview. The answer decides whether a destructive
14
+ // command proceeds.
17
15
  //
18
- // The parameter admits `undefined` where `DeploymentPlan` does not, and the difference is the
19
- // point. A control plane older than this field sends no field at all, so a client that has been
20
- // updated first really can receive one — and that has to read as available, which is the behaviour
21
- // that server's own plans were written for. Declaring the argument as a full `DeploymentPlan` would
22
- // make the check look redundant and invite someone to simplify it into `!== null`, which treats a
23
- // missing field as unavailable and would make every plan from an older server refuse.
16
+ // The parameter admits `undefined` because a control plane older than this field sends no field. A
17
+ // missing field reads as available, so a plan from an older server is not refused. Simplifying the
18
+ // check to `!== null` would treat a missing field as unavailable.
24
19
  export function isPlanPreviewUnavailable(plan) {
25
20
  return typeof plan.previewUnavailableReason === "string";
26
21
  }
27
22
  export const TEARDOWN_MODES = ["TEARDOWN", "FORCE_TEARDOWN"];
28
23
  export const TEARDOWN_STATUSES = ["QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT"];
29
- // Mirrors the deployment-recovery contract from `@vendure-cloud/api-types`, which carries all of
30
- // its reasoning. These declarations must stay character-identical to it; `cli-contract-drift.test.ts`
31
- // enforces that, and deliberately strips comments — so a copy of the reasoning here would be
32
- // unenforced and would drift.
24
+ // Mirrors the deployment-recovery contract from `@vendure-cloud/api-types`, which carries its
25
+ // reasoning. These declarations must stay character-identical to it. `cli-contract-drift.test.ts`
26
+ // enforces that and strips comments, so reasoning copied here would be unchecked.
33
27
  export const DEPLOYMENT_FAILURE_STAGES = [
34
28
  "BUILD_PREPARATION",
35
29
  "BUILD",
@@ -40,16 +34,15 @@ export const DEPLOYMENT_FAILURE_STAGES = [
40
34
  "MIGRATION",
41
35
  "RUNTIME_START",
42
36
  ];
43
- // The one thing to do next about a failed VC Deployment. One action rather than a list, because a
44
- // customer reading two suggestions has to choose between them with less information than the
45
- // platform already has.
37
+ // The one thing to do next about a failed VC Deployment. It is a single action because two
38
+ // suggestions leave the customer choosing with less information than the platform has.
46
39
  //
47
- // The action is not a pure function of the stage. A rollback needs an earlier release to roll back
48
- // to, so a first deploy that fails at its rollout is answered differently from a later one.
40
+ // The action depends on more than the stage: a rollback needs an earlier release, so a first deploy
41
+ // that fails at its rollout gets a different answer.
49
42
  //
50
- // `INSPECT_ENVIRONMENT` is the answer when the stage is not known, and it is deliberately the
51
- // weakest. Every other action asserts something about what is running, and asserting that wrongly
52
- // sends a customer to roll back an environment that never changed.
43
+ // `INSPECT_ENVIRONMENT` is the answer for an unknown stage and the weakest one. Every other action
44
+ // asserts something about what is running, and a wrong assertion sends a customer to roll back an
45
+ // environment that never changed.
53
46
  export const DEPLOYMENT_RECOVERY_ACTIONS = [
54
47
  "DEPLOY_AGAIN",
55
48
  "FIX_SOURCE_AND_DEPLOY",
@@ -59,26 +52,25 @@ export const DEPLOYMENT_RECOVERY_ACTIONS = [
59
52
  "INSPECT_ENVIRONMENT",
60
53
  ];
61
54
  export const ENVIRONMENT_STATUS_RESOURCE_CATEGORIES = ["DATASTORE", "SERVICE"];
62
- // Environment-scoped work that serializes against everything else touching the
63
- // same VC Environment. Deploys, teardowns and runtime operations all take the
64
- // same slot, so any one of them blocks the others.
55
+ // Environment-scoped work that serializes against everything else touching the same VC
56
+ // Environment. Deploys, teardowns and runtime operations share one slot.
65
57
  export const EnvironmentActiveWorkKind = {
66
58
  DEPLOYMENT: "DEPLOYMENT",
67
59
  TEARDOWN: "TEARDOWN",
68
60
  RUNTIME_OPERATION: "RUNTIME_OPERATION",
69
- // A named seed apply replaces the whole of an environment's database, so it is work in the same
70
- // sense a deploy is: neither may start while the other is in flight, and the refusal has to name
71
- // whichever one is running (CLO-496).
61
+ // A named seed apply replaces the environment's whole database, so it excludes a deploy and the
62
+ // refusal names whichever one is running (CLO-496).
72
63
  SEED_APPLY: "SEED_APPLY",
73
- // A restore replaces the whole of an environment's database from a dump, so it collides with
74
- // everything above for the same reason a seed apply does — and with itself, which is the case
75
- // that made the guard durable rather than a same-request check (CLO-499).
64
+ // A restore replaces the whole database from a dump, so it collides with everything above and
65
+ // with itself (CLO-499).
76
66
  DATABASE_RESTORE: "DATABASE_RESTORE",
77
67
  // A VC Relocation moves the environment's authoritative placement, so it holds the slot against
78
- // everything above — and for days rather than minutes, because preparation, the wait for the
79
- // maintenance window, the cutover and the seven-day retirement are one lease (CLO-719, ADR-0031).
80
- // A customer told their deploy is queued behind a runtime operation when it is really queued
81
- // behind scheduled maintenance has been told the wrong thing about how long to wait.
68
+ // everything above for days: preparation, the maintenance window wait, the cutover and the
69
+ // seven-day retirement are one lease (CLO-719, ADR-0031). Reporting it as a runtime operation
70
+ // would misstate how long a queued deploy waits.
82
71
  RELOCATION: "RELOCATION",
72
+ // A leased benchmark runtime profile re-applies the stack with a temporary capacity profile and
73
+ // later restores it, so nothing else may change the environment meanwhile (CLO-922).
74
+ BENCHMARK_RUNTIME_PROFILE: "BENCHMARK_RUNTIME_PROFILE",
83
75
  };
84
76
  //# sourceMappingURL=deployments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployments.ts"],"names":[],"mappings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AgB,CAAU,CAAC;AAGtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AA2BpG,8FAA8F;AAC9F,kGAAkG;AAClG,kFAAkF;AAClF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,mBAAmB;IACnB,OAAO;IACP,eAAe;IACf,wBAAwB;IACxB,gBAAgB;IAChB,uBAAuB;IACvB,WAAW;IACX,eAAe;CACP,CAAC;AAIX,2FAA2F;AAC3F,uFAAuF;AACvF,EAAE;AACF,oGAAoG;AACpG,qDAAqD;AACrD,EAAE;AACF,mGAAmG;AACnG,kGAAkG;AAClG,kCAAkC;AAClC,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,cAAc;IACd,uBAAuB;IACvB,0BAA0B;IAC1B,UAAU;IACV,iBAAiB;IACjB,qBAAqB;CACb,CAAC;AAoBX,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAU,CAAC;AASxF,uFAAuF;AACvF,yEAAyE;AACzE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,gGAAgG;IAChG,oDAAoD;IACpD,UAAU,EAAE,YAAY;IACxB,8FAA8F;IAC9F,yBAAyB;IACzB,gBAAgB,EAAE,kBAAkB;IACpC,gGAAgG;IAChG,2FAA2F;IAC3F,8FAA8F;IAC9F,iDAAiD;IACjD,UAAU,EAAE,YAAY;IACxB,gGAAgG;IAChG,qFAAqF;IACrF,yBAAyB,EAAE,2BAA2B;CAC9C,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { z } from "zod";
2
2
  export declare const DESIRED_STATE_SCHEMA_VERSION = 1;
3
- export declare const VC_REGIONS: readonly ["eu-west-1"];
3
+ export declare const VC_REGIONS: readonly ["eu-west-1", "us-east-1"];
4
4
  export type VcRegion = (typeof VC_REGIONS)[number];
5
5
  export declare const vcRegionSchema: z.ZodPipe<z.ZodString, z.ZodEnum<{
6
6
  "eu-west-1": "eu-west-1";
7
+ "us-east-1": "us-east-1";
7
8
  }>>;
8
9
  export declare const VC_ENVIRONMENT_TYPES: readonly ["dev", "uat", "staging", "production"];
9
10
  export declare const vcEnvironmentTypeSchema: z.ZodEnum<{
@@ -55,6 +56,7 @@ export declare const environmentDesiredStateSchema: z.ZodPipe<z.ZodUnknown, z.Zo
55
56
  }>;
56
57
  region: z.ZodPipe<z.ZodString, z.ZodEnum<{
57
58
  "eu-west-1": "eu-west-1";
59
+ "us-east-1": "us-east-1";
58
60
  }>>;
59
61
  }, z.core.$strict>;
60
62
  runtime: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"desired-state.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/desired-state.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,UAAU,wBAAyB,CAAC;AACjD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,eAAO,MAAM,cAAc;;GAA6C,CAAC;AAEzE,eAAO,MAAM,oBAAoB,kDAAmD,CAAC;AACrF,eAAO,MAAM,uBAAuB;;;;;EAA+B,CAAC;AAKpE,eAAO,MAAM,cAAc,yYAoBjB,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;EAAyB,CAAC;AAgBxD,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,gCAAgC,YAAY,CAAC;AAmB1D,eAAO,MAAM,+BAA+B,gJACmG,CAAC;AAIhJ,eAAO,M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xC,eAAO,MAAM,gCAAgC,YAAY,CAAC;AAiB1D,eAAO,MAAM,+BAA+B,gJACmG,CAAC;AAIhJ,eAAO,MAAM,8BAA8B,sJAC0G,CAAC;AAKtJ,eAAO,MAAM,iCAAiC,uJACwG,CAAC;AAIvJ,eAAO,MAAM,kCAAkC,iKACiH,CAAC;AAKjK,eAAO,MAAM,qCAAqC,uKACoH,CAAC;AAKvK,eAAO,MAAM,yCAAyC,8MACuJ,CAAC;AAG9M,eAAO,MAAM,uCAAuC,yKACoH,CAAC;AA4EzK,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAEzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC"}
@@ -2,29 +2,24 @@
2
2
  // response `@vendure-cloud/api-types` wraps it in. See ./README.md for why this package cannot
3
3
  // import either, including as types.
4
4
  //
5
- // The whole schema is mirrored rather than only the types, because one of the two call sites is not
6
- // validation: `config <section> set` parses the document it is about to send and reads the PATCH
7
- // body out of the result, so the server defaults `serverServiceSchema` materializes — the port and
8
- // the health check path — are part of what the CLI sends. Dropping the parse would change the
9
- // request, and the bounds and the removed-field messages are asserted on the error path as well.
10
- // CLO-685 records that decision.
5
+ // The whole schema is mirrored because `config <section> set` parses the document it is about to
6
+ // send and reads the PATCH body from the result. The server defaults `serverServiceSchema`
7
+ // materializes, the port and health check path, are part of what the CLI sends. Dropping the parse
8
+ // would change the request and the error-path bounds and removed-field messages (CLO-685).
11
9
  //
12
- // `VC_ENVIRONMENT_TYPES` is the runtime half of the `VcEnvironmentType` that `wire-types.ts`
13
- // declares; `test/cli-contract-parity.test.ts` asserts the two describe the same members, so the
14
- // mirror still has one answer for the set.
10
+ // `VC_ENVIRONMENT_TYPES` is the runtime half of `VcEnvironmentType` in `wire-types.ts`.
11
+ // `test/cli-contract-parity.test.ts` asserts the two have the same members.
15
12
  //
16
- // This file imports `zod`, so a command reaches it from inside its `run` through `await import(...)`
17
- // rather than from the module that declares the command tree. `test/cli-published-surface.test.ts`
18
- // fails if loading the CLI plugin reaches `zod`.
13
+ // This file imports `zod`, so a command reaches it through `await import(...)` inside its `run`.
14
+ // `test/cli-published-surface.test.ts` fails if loading the CLI plugin reaches `zod`.
19
15
  import { z } from "zod";
20
16
  export const DESIRED_STATE_SCHEMA_VERSION = 1;
21
- export const VC_REGIONS = ["eu-west-1"];
17
+ export const VC_REGIONS = ["eu-west-1", "us-east-1"];
22
18
  export const vcRegionSchema = z.string().trim().pipe(z.enum(VC_REGIONS));
23
19
  export const VC_ENVIRONMENT_TYPES = ["dev", "uat", "staging", "production"];
24
20
  export const vcEnvironmentTypeSchema = z.enum(VC_ENVIRONMENT_TYPES);
25
- // The plans an addon may run on. The original derives this list by slicing its plan catalog at a
26
- // named minimum; the catalog itself has no reader here, so the mirror declares the result and the
27
- // parity suite compares it with the real list at runtime.
21
+ // The plans an addon may run on. The original slices its plan catalog at a minimum, and the catalog
22
+ // has no reader here, so the result is declared and the parity suite compares it at runtime.
28
23
  export const VC_ADDON_PLANS = [
29
24
  "vc-compute-20",
30
25
  "vc-compute-50",
@@ -52,29 +47,26 @@ const storageGbSchema = z.number().int().min(1).max(1000);
52
47
  const typesenseStorageGbSchema = storageGbSchema.min(6);
53
48
  // Where the server listens and how the load balancer decides it is alive.
54
49
  //
55
- // On the server alone, because the worker has no listener and nothing routes to it. Both carry a
56
- // default, so a VC Environment created before these existed parses unchanged and a customer who
57
- // never sets them gets what the managed build produces.
50
+ // Server only: the worker has no listener. Both fields have defaults, so an older VC Environment
51
+ // parses unchanged.
58
52
  //
59
- // They are here rather than fixed in the control plane because a VC Environment may run an image
60
- // the platform did not build: a VC Deployment recorded before the managed build owned every image,
61
- // and the rollback that replays one. A platform-wide constant would mean a target group that never
62
- // turns healthy, reported as a failed deploy with nothing naming the port as the cause.
53
+ // They are configurable because a VC Environment may run an image the platform did not build, such
54
+ // as a VC Deployment recorded before the managed build owned every image, or a rollback that
55
+ // replays one. A platform-wide constant would give that image a target group that never turns
56
+ // healthy, reported as a failed deploy with nothing naming the port.
63
57
  export const DEFAULT_SERVER_PORT = 3000;
64
58
  export const DEFAULT_SERVER_HEALTH_CHECK_PATH = "/health";
65
59
  const serverServiceSchema = z
66
60
  .object({
67
61
  port: z.number().int().min(1).max(65535).default(DEFAULT_SERVER_PORT),
68
- // Rooted, because the load balancer sends it as a path and a relative one is refused at apply
69
- // time by AWS rather than here.
62
+ // Rooted, because the load balancer sends it as a path and AWS refuses a relative one at apply
63
+ // time.
70
64
  healthCheckPath: z.string().startsWith("/").default(DEFAULT_SERVER_HEALTH_CHECK_PATH),
71
65
  })
72
66
  .strict();
73
- // A field keeps arriving for a while after it leaves Desired State. A stored document carries the
74
- // key, and so does a request from a CLI built before the field went. The strict object below
75
- // reports both of those as an unrecognized key, which reads as a misspelling rather than as a field
76
- // that was removed. Each removed field therefore gets its own check here, which names the field and
77
- // says why it is gone.
67
+ // A removed field keeps arriving in stored documents and in requests from older CLIs. The strict
68
+ // object reports it as an unrecognized key, which reads as a misspelling. Each removed field gets
69
+ // its own check naming the field and why it is gone.
78
70
  // Asset storage left with ADR-0051: a VC Environment's assets live in a bucket the platform creates
79
71
  // and destroys with the environment, so there is nothing to choose.
80
72
  export const ASSETS_NOT_CONFIGURABLE_MESSAGE = "Asset storage is not configurable. Remove the assets section: Vendure Cloud gives every VC Environment its own asset storage and serves it.";
@@ -92,13 +84,11 @@ export const JOB_QUEUE_NOT_CONFIGURABLE_MESSAGE = "The job queue is not configur
92
84
  // server and worker from its type and its platform-managed capacity class, so there is no compute
93
85
  // size to pick.
94
86
  export const RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE = "Runtime service sizing is not configurable. Remove the plan field: Vendure Cloud sizes the server and the worker, and support can raise the size if you need more.";
95
- // Replica counts left with CLO-572: Vendure Cloud scales a VC Environment's server and its worker
96
- // between platform-owned bounds, so a fixed count is neither used nor honoured.
97
- //
98
- // The sentence names autoscaling rather than only refusing the field, because a customer who set a
99
- // count did so to handle load and needs to know that the thing they wanted still happens.
87
+ // Replica counts left with CLO-572: Vendure Cloud scales a VC Environment's server and worker
88
+ // between platform-owned bounds, so a fixed count is neither used nor honoured. The message names
89
+ // autoscaling because a customer who set a count wanted to handle load.
100
90
  export const RUNTIME_REPLICAS_NOT_CONFIGURABLE_MESSAGE = "Replica counts are not configurable. Remove the replicas field: Vendure Cloud scales the server and the worker automatically within platform limits, and support can raise those limits if you need more.";
101
- // The whole worker section went with it, because the count was all it held.
91
+ // The whole worker section went too, because the count was all it held.
102
92
  export const RUNTIME_WORKER_NOT_CONFIGURABLE_MESSAGE = "The worker is not configurable. Remove the worker section: Vendure Cloud sizes and scales the worker, and the port and health check path belong to the server alone.";
103
93
  const REMOVED_FIELD_MESSAGES = {
104
94
  assets: ASSETS_NOT_CONFIGURABLE_MESSAGE,
@@ -106,12 +96,10 @@ const REMOVED_FIELD_MESSAGES = {
106
96
  database: DATABASE_NOT_CONFIGURABLE_MESSAGE,
107
97
  jobQueue: JOB_QUEUE_NOT_CONFIGURABLE_MESSAGE,
108
98
  };
109
- // The runtime services whose `plan` and `replicas` are gone. Checked one level down rather than
110
- // through the strict object above, for the same reason the four top-level sections are: a strict
111
- // object reports an unrecognized key, which reads as a misspelling rather than as a field the
112
- // platform took over.
99
+ // The runtime services whose `plan` and `replicas` are gone. Checked one level down for the reason
100
+ // given above: a strict object reports a misspelling, not a field the platform took over.
113
101
  const REMOVED_RUNTIME_SERVICES = ["server", "worker"];
114
- // The fields those services no longer carry, each with the sentence that says where it went.
102
+ // The fields those services no longer carry, each with the sentence saying where it went.
115
103
  const REMOVED_RUNTIME_SERVICE_FIELDS = {
116
104
  plan: RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE,
117
105
  replicas: RUNTIME_REPLICAS_NOT_CONFIGURABLE_MESSAGE,
@@ -137,8 +125,7 @@ const removedFieldsSchema = z.unknown().superRefine((value, ctx) => {
137
125
  ctx.addIssue({ code: "custom", path: ["runtime", key, field], message });
138
126
  }
139
127
  }
140
- // The section itself, reported after its fields so that a document written against the previous
141
- // shape is told about the count it set before it is told the section holding it has gone.
128
+ // The section itself, reported after its fields so the count a document set is named first.
142
129
  if ("worker" in runtime) {
143
130
  ctx.addIssue({
144
131
  code: "custom",
@@ -156,13 +143,9 @@ const environmentDesiredStateObjectSchema = z
156
143
  region: vcRegionSchema,
157
144
  })
158
145
  .strict(),
159
- // The server alone. Both of its fields describe where an application listens, which is the
160
- // only thing about a runtime service left for a customer to say: how large each task is and how
161
- // many of them run are both the platform's (CLO-569, CLO-572).
162
- //
163
- // There is no `worker` key, because everything that was ever in one has gone. A section holding
164
- // nothing would still have to be written into every document and would mean nothing when it
165
- // was.
146
+ // The server only. Its fields describe where an application listens, the one thing about a
147
+ // runtime service left for a customer to say. Task size and count are the platform's (CLO-569,
148
+ // CLO-572). There is no `worker` key because nothing it held remains.
166
149
  runtime: z
167
150
  .object({
168
151
  server: serverServiceSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"desired-state.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/desired-state.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,+FAA+F;AAC/F,qCAAqC;AACrC,EAAE;AACF,oGAAoG;AACpG,iGAAiG;AACjG,mGAAmG;AACnG,8FAA8F;AAC9F,iGAAiG;AACjG,iCAAiC;AACjC,EAAE;AACF,6FAA6F;AAC7F,iGAAiG;AACjG,2CAA2C;AAC3C,EAAE;AACF,qGAAqG;AACrG,mGAAmG;AACnG,iDAAiD;AAEjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,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4B,CAAC;IACtD,WAAW,EAAE,CAAC;SACX,MAAM,CAAC;QACN,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,cAAc;KACvB,CAAC;SACD,MAAM,EAAE;IACX,2FAA2F;IAC3F,+FAA+F;IAC/F,sEAAsE;IACtE,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,MAAM,EAAE,mBAAmB;KAC5B,CAAC;SACD,MAAM,EAAE;IACX,MAAM,EAAE,CAAC,CAAC,kBAAkB,CAAC,gBAAgB,EAAE;QAC7C,CAAC,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;QACxD,CAAC;aACE,MAAM,CAAC;YACN,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;YACtC,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE,mBAAmB;YAC7B,SAAS,EAAE,wBAAwB;SACpC,CAAC;aACD,MAAM,EAAE;KACZ,CAAC;CACH,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,6BAA6B,GAAG,mBAAmB,CAAC,IAAI,CACnE,mCAAmC,CACpC,CAAC"}
@@ -0,0 +1,37 @@
1
+ export type EnvVarSource = "user" | "managed";
2
+ export type EnvVarScope = "runtime" | "build" | "both";
3
+ export interface EnvVarSummary {
4
+ key: string;
5
+ source: EnvVarSource;
6
+ updatedAt?: string;
7
+ scope?: EnvVarScope;
8
+ sensitive?: boolean;
9
+ }
10
+ export interface EnvVarDetail extends EnvVarSummary {
11
+ value?: string;
12
+ }
13
+ export interface EnvVarValues {
14
+ values: Record<string, string>;
15
+ sensitiveKeys: string[];
16
+ }
17
+ export interface ConfigRevisionRef {
18
+ number: number;
19
+ createdAt: string;
20
+ createdBy: {
21
+ id: string;
22
+ name: string | null;
23
+ } | null;
24
+ }
25
+ export declare const CONFIG_REVISION_CHANGES: readonly ["added", "changed", "removed"];
26
+ export type ConfigRevisionChange = (typeof CONFIG_REVISION_CHANGES)[number];
27
+ export interface ConfigRevisionKeyChange {
28
+ key: string;
29
+ change: ConfigRevisionChange;
30
+ }
31
+ export interface ConfigRevisionStatusResponse {
32
+ latest: ConfigRevisionRef | null;
33
+ applied: ConfigRevisionRef | null;
34
+ pending: boolean;
35
+ changes: ConfigRevisionKeyChange[];
36
+ }
37
+ //# sourceMappingURL=env-vars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-vars.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/env-vars.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAGD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACvD;AAGD,eAAO,MAAM,uBAAuB,0CAA2C,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAGD,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,uBAAuB,EAAE,CAAC;CACpC"}
@@ -0,0 +1,6 @@
1
+ // Mirrors `@vendure-cloud/api-types`'s `env-vars.ts`: customer environment variables and VC
2
+ // Configuration Revisions. See ./README.md for why this package cannot import them, including as
3
+ // types.
4
+ // `changed` covers a value, scope or sensitivity change.
5
+ export const CONFIG_REVISION_CHANGES = ["added", "changed", "removed"];
6
+ //# sourceMappingURL=env-vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-vars.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/env-vars.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,iGAAiG;AACjG,SAAS;AA8BT,yDAAyD;AACzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC"}
@@ -1,33 +1,22 @@
1
1
  /**
2
- * Credentials that other Vendure products issue, and that a Vendure Cloud
3
- * management request must never authenticate with.
2
+ * Credentials that other Vendure products issue, and that a Vendure Cloud management request must
3
+ * never authenticate with.
4
4
  *
5
- * Two call sites read this file, and they are the two places a customer's
6
- * credential is taken in: `resolveCredential` in the CLI, which refuses the
7
- * value before it leaves the machine, and `AuthGuard` in the control plane,
8
- * which refuses it again for every caller that is not this CLI. Restating
9
- * either the prefixes or the refusal at one of those places would let them
10
- * drift, and a drifted denylist is one that has a hole in it.
5
+ * `resolveCredential` in the CLI refuses the value before it leaves the machine, and `AuthGuard` in
6
+ * the control plane refuses it for every other caller. Both read this file, so the prefixes and the
7
+ * refusal cannot drift apart.
11
8
  *
12
- * `AdminGuard` and `StaffAuthGuard` also take a bearer token and are
13
- * deliberately not covered. The token they verify is a staff session this
14
- * platform issued and signs, checked locally against our own key, so a value
15
- * from another Vendure product is refused there on its own and is never handed
16
- * to anyone. The property this file protects — that a first-party credential
17
- * is not forwarded to a third party — has nothing to reach on those routes.
9
+ * `AdminGuard` and `StaffAuthGuard` are not covered. They verify a staff session this platform
10
+ * signs, so a value from another Vendure product fails there on its own.
18
11
  *
19
- * `vce_` is the project-scoped Environment Credential that Vendure Platform
20
- * writes to `<projectRoot>/.vendure/credentials.json` and injects into a
21
- * running Vendure process. `vcli_` and `vclr_` are the access and refresh
22
- * halves of the user-scoped Console CLI Session in
12
+ * `vce_` is the project-scoped Environment Credential that Vendure Platform writes to
13
+ * `<projectRoot>/.vendure/credentials.json` and injects into a running Vendure process. `vcli_` and
14
+ * `vclr_` are the access and refresh halves of the user-scoped Console CLI Session in
23
15
  * `~/.vendure/console-credentials.json`.
24
16
  *
25
- * `vcli_` is refused as an API key only. A Console session presented as
26
- * `Authorization: Bearer` is resolved by the control plane against Console's
27
- * introspection route (CLO-641), which is the one place that can check it, and
28
- * only on a deployment configured to reach a Console. Presenting it through
29
- * `--token`, `VENDURE_CLOUD_TOKEN` or `x-api-key` is still a mistake, because
30
- * none of those paths reaches that check.
17
+ * `vcli_` is refused as an API key only. The control plane resolves a Console session sent as
18
+ * `Authorization: Bearer` against Console's introspection route (CLO-641), when configured to reach
19
+ * a Console. `--token`, `VENDURE_CLOUD_TOKEN` and `x-api-key` never reach that check.
31
20
  */
32
21
  export declare const ENVIRONMENT_CREDENTIAL_PREFIX = "vce_";
33
22
  export declare const CONSOLE_SESSION_TOKEN_PREFIX = "vcli_";
@@ -41,9 +30,7 @@ export type ForeignCredential = (typeof ForeignCredential)[keyof typeof ForeignC
41
30
  /**
42
31
  * Which foreign credential this value is, or null when it is none of them.
43
32
  *
44
- * A denylist, not a shape check. Anything that is not recognised here is left
45
- * alone and validated as it always was, so a legitimate credential can never be
46
- * turned away by this function.
33
+ * A denylist, not a shape check, so a legitimate credential is never turned away here.
47
34
  */
48
35
  export declare function classifyForeignCredential(value: string): ForeignCredential | null;
49
36
  /** What the caller is told. One wording, so the CLI and the API agree. */
@@ -1 +1 @@
1
- {"version":3,"file":"foreign-credentials.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/foreign-credentials.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,4BAA4B,UAAU,CAAC;AACpD,eAAO,MAAM,4BAA4B,UAAU,CAAC;AAEpD,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAiB3F;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAOjF;AAED,0EAA0E;AAC1E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAExE"}
1
+ {"version":3,"file":"foreign-credentials.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/foreign-credentials.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,4BAA4B,UAAU,CAAC;AACpD,eAAO,MAAM,4BAA4B,UAAU,CAAC;AAEpD,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAiB3F;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAOjF;AAED,0EAA0E;AAC1E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAExE"}