@vendure/cloud 0.3.2 → 0.5.0-dev.20261014172655.g652e750

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 (530) hide show
  1. package/README.md +50 -11
  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/deployment/arguments.d.ts.map +1 -1
  9. package/dist/cli/commands/deployment/arguments.js +1 -8
  10. package/dist/cli/commands/deployment/arguments.js.map +1 -1
  11. package/dist/cli/commands/deployment/build-logs.d.ts.map +1 -1
  12. package/dist/cli/commands/deployment/build-logs.js +14 -25
  13. package/dist/cli/commands/deployment/build-logs.js.map +1 -1
  14. package/dist/cli/commands/deployment/deploy.d.ts.map +1 -1
  15. package/dist/cli/commands/deployment/deploy.js +108 -95
  16. package/dist/cli/commands/deployment/deploy.js.map +1 -1
  17. package/dist/cli/commands/deployment/index.d.ts.map +1 -1
  18. package/dist/cli/commands/deployment/index.js +66 -53
  19. package/dist/cli/commands/deployment/index.js.map +1 -1
  20. package/dist/cli/commands/deployment/list.d.ts.map +1 -1
  21. package/dist/cli/commands/deployment/list.js +5 -5
  22. package/dist/cli/commands/deployment/list.js.map +1 -1
  23. package/dist/cli/commands/deployment/log-export.d.ts +13 -0
  24. package/dist/cli/commands/deployment/log-export.d.ts.map +1 -0
  25. package/dist/cli/commands/deployment/log-export.js +120 -0
  26. package/dist/cli/commands/deployment/log-export.js.map +1 -0
  27. package/dist/cli/commands/deployment/log-query-output.d.ts +13 -0
  28. package/dist/cli/commands/deployment/log-query-output.d.ts.map +1 -0
  29. package/dist/cli/commands/deployment/log-query-output.js +92 -0
  30. package/dist/cli/commands/deployment/log-query-output.js.map +1 -0
  31. package/dist/cli/commands/deployment/logs.d.ts +1 -0
  32. package/dist/cli/commands/deployment/logs.d.ts.map +1 -1
  33. package/dist/cli/commands/deployment/logs.js +331 -73
  34. package/dist/cli/commands/deployment/logs.js.map +1 -1
  35. package/dist/cli/commands/deployment/options.d.ts +2 -6
  36. package/dist/cli/commands/deployment/options.d.ts.map +1 -1
  37. package/dist/cli/commands/deployment/options.js +18 -15
  38. package/dist/cli/commands/deployment/options.js.map +1 -1
  39. package/dist/cli/commands/deployment/plan-format.d.ts.map +1 -1
  40. package/dist/cli/commands/deployment/plan-format.js +2 -2
  41. package/dist/cli/commands/deployment/plan-format.js.map +1 -1
  42. package/dist/cli/commands/deployment/plan.d.ts +1 -1
  43. package/dist/cli/commands/deployment/plan.d.ts.map +1 -1
  44. package/dist/cli/commands/deployment/plan.js +11 -14
  45. package/dist/cli/commands/deployment/plan.js.map +1 -1
  46. package/dist/cli/commands/deployment/recovery.d.ts +9 -0
  47. package/dist/cli/commands/deployment/recovery.d.ts.map +1 -0
  48. package/dist/cli/commands/deployment/recovery.js +76 -0
  49. package/dist/cli/commands/deployment/recovery.js.map +1 -0
  50. package/dist/cli/commands/deployment/rollback.d.ts.map +1 -1
  51. package/dist/cli/commands/deployment/rollback.js +61 -10
  52. package/dist/cli/commands/deployment/rollback.js.map +1 -1
  53. package/dist/cli/commands/deployment/shared.d.ts.map +1 -1
  54. package/dist/cli/commands/deployment/shared.js +4 -7
  55. package/dist/cli/commands/deployment/shared.js.map +1 -1
  56. package/dist/cli/commands/deployment/show.d.ts.map +1 -1
  57. package/dist/cli/commands/deployment/show.js +19 -9
  58. package/dist/cli/commands/deployment/show.js.map +1 -1
  59. package/dist/cli/commands/deployment/source.d.ts +1 -12
  60. package/dist/cli/commands/deployment/source.d.ts.map +1 -1
  61. package/dist/cli/commands/deployment/source.js +6 -14
  62. package/dist/cli/commands/deployment/source.js.map +1 -1
  63. package/dist/cli/commands/deployment/status.d.ts.map +1 -1
  64. package/dist/cli/commands/deployment/status.js +30 -29
  65. package/dist/cli/commands/deployment/status.js.map +1 -1
  66. package/dist/cli/commands/deployment/teardown.d.ts.map +1 -1
  67. package/dist/cli/commands/deployment/teardown.js +28 -26
  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 +19 -20
  77. package/dist/cli/commands/identity-context/keys.js.map +1 -1
  78. package/dist/cli/commands/identity-context/use.d.ts.map +1 -1
  79. package/dist/cli/commands/identity-context/use.js +3 -4
  80. package/dist/cli/commands/identity-context/use.js.map +1 -1
  81. package/dist/cli/commands/index.d.ts.map +1 -1
  82. package/dist/cli/commands/index.js +9 -21
  83. package/dist/cli/commands/index.js.map +1 -1
  84. package/dist/cli/commands/project-config/config/build-fields.d.ts.map +1 -1
  85. package/dist/cli/commands/project-config/config/build-fields.js +2 -3
  86. package/dist/cli/commands/project-config/config/build-fields.js.map +1 -1
  87. package/dist/cli/commands/project-config/config/build.d.ts.map +1 -1
  88. package/dist/cli/commands/project-config/config/build.js +8 -9
  89. package/dist/cli/commands/project-config/config/build.js.map +1 -1
  90. package/dist/cli/commands/project-config/config/desired-state.d.ts +1 -1
  91. package/dist/cli/commands/project-config/config/desired-state.d.ts.map +1 -1
  92. package/dist/cli/commands/project-config/config/desired-state.js +12 -13
  93. package/dist/cli/commands/project-config/config/desired-state.js.map +1 -1
  94. package/dist/cli/commands/project-config/config/email/domain.d.ts +5 -0
  95. package/dist/cli/commands/project-config/config/email/domain.d.ts.map +1 -0
  96. package/dist/cli/commands/project-config/config/email/domain.js +83 -0
  97. package/dist/cli/commands/project-config/config/email/domain.js.map +1 -0
  98. package/dist/cli/commands/project-config/config/email/events.d.ts +4 -0
  99. package/dist/cli/commands/project-config/config/email/events.d.ts.map +1 -0
  100. package/dist/cli/commands/project-config/config/email/events.js +55 -0
  101. package/dist/cli/commands/project-config/config/email/events.js.map +1 -0
  102. package/dist/cli/commands/project-config/config/email/index.d.ts +2 -0
  103. package/dist/cli/commands/project-config/config/email/index.d.ts.map +1 -0
  104. package/dist/cli/commands/project-config/config/email/index.js +107 -0
  105. package/dist/cli/commands/project-config/config/email/index.js.map +1 -0
  106. package/dist/cli/commands/project-config/config/email/test-sending.d.ts +4 -0
  107. package/dist/cli/commands/project-config/config/email/test-sending.d.ts.map +1 -0
  108. package/dist/cli/commands/project-config/config/email/test-sending.js +69 -0
  109. package/dist/cli/commands/project-config/config/email/test-sending.js.map +1 -0
  110. package/dist/cli/commands/project-config/config/index.d.ts.map +1 -1
  111. package/dist/cli/commands/project-config/config/index.js +16 -13
  112. package/dist/cli/commands/project-config/config/index.js.map +1 -1
  113. package/dist/cli/commands/project-config/config/runtime.d.ts +2 -1
  114. package/dist/cli/commands/project-config/config/runtime.d.ts.map +1 -1
  115. package/dist/cli/commands/project-config/config/runtime.js +33 -30
  116. package/dist/cli/commands/project-config/config/runtime.js.map +1 -1
  117. package/dist/cli/commands/project-config/config/set.js +3 -3
  118. package/dist/cli/commands/project-config/config/set.js.map +1 -1
  119. package/dist/cli/commands/project-config/config/show.d.ts.map +1 -1
  120. package/dist/cli/commands/project-config/config/show.js +7 -7
  121. package/dist/cli/commands/project-config/config/show.js.map +1 -1
  122. package/dist/cli/commands/project-config/env/add.d.ts.map +1 -1
  123. package/dist/cli/commands/project-config/env/add.js +4 -3
  124. package/dist/cli/commands/project-config/env/add.js.map +1 -1
  125. package/dist/cli/commands/project-config/env/get.d.ts.map +1 -1
  126. package/dist/cli/commands/project-config/env/get.js +7 -2
  127. package/dist/cli/commands/project-config/env/get.js.map +1 -1
  128. package/dist/cli/commands/project-config/env/import.d.ts.map +1 -1
  129. package/dist/cli/commands/project-config/env/import.js +15 -8
  130. package/dist/cli/commands/project-config/env/import.js.map +1 -1
  131. package/dist/cli/commands/project-config/env/index.d.ts.map +1 -1
  132. package/dist/cli/commands/project-config/env/index.js +13 -8
  133. package/dist/cli/commands/project-config/env/index.js.map +1 -1
  134. package/dist/cli/commands/project-config/env/list.d.ts.map +1 -1
  135. package/dist/cli/commands/project-config/env/list.js +29 -8
  136. package/dist/cli/commands/project-config/env/list.js.map +1 -1
  137. package/dist/cli/commands/project-config/env/metadata-options.d.ts.map +1 -1
  138. package/dist/cli/commands/project-config/env/metadata-options.js +0 -1
  139. package/dist/cli/commands/project-config/env/metadata-options.js.map +1 -1
  140. package/dist/cli/commands/project-config/env/pull.d.ts.map +1 -1
  141. package/dist/cli/commands/project-config/env/pull.js +22 -8
  142. package/dist/cli/commands/project-config/env/pull.js.map +1 -1
  143. package/dist/cli/commands/project-config/env/read-value.d.ts.map +1 -1
  144. package/dist/cli/commands/project-config/env/read-value.js +8 -4
  145. package/dist/cli/commands/project-config/env/read-value.js.map +1 -1
  146. package/dist/cli/commands/project-config/env/rm.d.ts.map +1 -1
  147. package/dist/cli/commands/project-config/env/rm.js +4 -3
  148. package/dist/cli/commands/project-config/env/rm.js.map +1 -1
  149. package/dist/cli/commands/project-config/env/run.d.ts.map +1 -1
  150. package/dist/cli/commands/project-config/env/run.js +9 -8
  151. package/dist/cli/commands/project-config/env/run.js.map +1 -1
  152. package/dist/cli/commands/project-config/env/update.d.ts.map +1 -1
  153. package/dist/cli/commands/project-config/env/update.js +4 -3
  154. package/dist/cli/commands/project-config/env/update.js.map +1 -1
  155. package/dist/cli/commands/project-config/environment/create.d.ts.map +1 -1
  156. package/dist/cli/commands/project-config/environment/create.js +5 -6
  157. package/dist/cli/commands/project-config/environment/create.js.map +1 -1
  158. package/dist/cli/commands/project-config/environment/delete.d.ts.map +1 -1
  159. package/dist/cli/commands/project-config/environment/delete.js +6 -6
  160. package/dist/cli/commands/project-config/environment/delete.js.map +1 -1
  161. package/dist/cli/commands/project-config/environment/find.js +3 -3
  162. package/dist/cli/commands/project-config/environment/find.js.map +1 -1
  163. package/dist/cli/commands/project-config/environment/index.d.ts.map +1 -1
  164. package/dist/cli/commands/project-config/environment/index.js +18 -6
  165. package/dist/cli/commands/project-config/environment/index.js.map +1 -1
  166. package/dist/cli/commands/project-config/environment/initial-superadmin.d.ts.map +1 -1
  167. package/dist/cli/commands/project-config/environment/initial-superadmin.js +4 -5
  168. package/dist/cli/commands/project-config/environment/initial-superadmin.js.map +1 -1
  169. package/dist/cli/commands/project-config/environment/list.d.ts.map +1 -1
  170. package/dist/cli/commands/project-config/environment/list.js +5 -5
  171. package/dist/cli/commands/project-config/environment/list.js.map +1 -1
  172. package/dist/cli/commands/project-config/environment/regions.d.ts +6 -0
  173. package/dist/cli/commands/project-config/environment/regions.d.ts.map +1 -0
  174. package/dist/cli/commands/project-config/environment/regions.js +22 -0
  175. package/dist/cli/commands/project-config/environment/regions.js.map +1 -0
  176. package/dist/cli/commands/project-config/environment/show.d.ts.map +1 -1
  177. package/dist/cli/commands/project-config/environment/show.js +3 -4
  178. package/dist/cli/commands/project-config/environment/show.js.map +1 -1
  179. package/dist/cli/commands/project-config/environment/update.d.ts.map +1 -1
  180. package/dist/cli/commands/project-config/environment/update.js +3 -4
  181. package/dist/cli/commands/project-config/environment/update.js.map +1 -1
  182. package/dist/cli/commands/project-config/index.js +5 -5
  183. package/dist/cli/commands/project-config/index.js.map +1 -1
  184. package/dist/cli/commands/project-config/init/build-detection.d.ts.map +1 -1
  185. package/dist/cli/commands/project-config/init/build-detection.js +4 -4
  186. package/dist/cli/commands/project-config/init/build-detection.js.map +1 -1
  187. package/dist/cli/commands/project-config/init/index.d.ts.map +1 -1
  188. package/dist/cli/commands/project-config/init/index.js +4 -5
  189. package/dist/cli/commands/project-config/init/index.js.map +1 -1
  190. package/dist/cli/commands/project-config/init/init.d.ts.map +1 -1
  191. package/dist/cli/commands/project-config/init/init.js +39 -20
  192. package/dist/cli/commands/project-config/init/init.js.map +1 -1
  193. package/dist/cli/commands/project-config/options.d.ts.map +1 -1
  194. package/dist/cli/commands/project-config/options.js +9 -14
  195. package/dist/cli/commands/project-config/options.js.map +1 -1
  196. package/dist/cli/commands/project-config/project/create.d.ts.map +1 -1
  197. package/dist/cli/commands/project-config/project/create.js +3 -3
  198. package/dist/cli/commands/project-config/project/create.js.map +1 -1
  199. package/dist/cli/commands/project-config/project/delete.d.ts.map +1 -1
  200. package/dist/cli/commands/project-config/project/delete.js +4 -5
  201. package/dist/cli/commands/project-config/project/delete.js.map +1 -1
  202. package/dist/cli/commands/project-config/project/index.d.ts.map +1 -1
  203. package/dist/cli/commands/project-config/project/index.js +4 -5
  204. package/dist/cli/commands/project-config/project/index.js.map +1 -1
  205. package/dist/cli/commands/project-config/project/link.d.ts.map +1 -1
  206. package/dist/cli/commands/project-config/project/link.js +4 -4
  207. package/dist/cli/commands/project-config/project/link.js.map +1 -1
  208. package/dist/cli/commands/project-config/project/list.d.ts.map +1 -1
  209. package/dist/cli/commands/project-config/project/list.js +12 -5
  210. package/dist/cli/commands/project-config/project/list.js.map +1 -1
  211. package/dist/cli/commands/project-config/project/show.d.ts.map +1 -1
  212. package/dist/cli/commands/project-config/project/show.js +16 -7
  213. package/dist/cli/commands/project-config/project/show.js.map +1 -1
  214. package/dist/cli/commands/project-config/project/subscription-state.d.ts +5 -0
  215. package/dist/cli/commands/project-config/project/subscription-state.d.ts.map +1 -0
  216. package/dist/cli/commands/project-config/project/subscription-state.js +54 -0
  217. package/dist/cli/commands/project-config/project/subscription-state.js.map +1 -0
  218. package/dist/cli/commands/project-config/project/unlink.d.ts.map +1 -1
  219. package/dist/cli/commands/project-config/project/unlink.js +2 -3
  220. package/dist/cli/commands/project-config/project/unlink.js.map +1 -1
  221. package/dist/cli/commands/project-config/project/update.d.ts.map +1 -1
  222. package/dist/cli/commands/project-config/project/update.js +3 -4
  223. package/dist/cli/commands/project-config/project/update.js.map +1 -1
  224. package/dist/cli/commands/project-config/source/connect.d.ts.map +1 -1
  225. package/dist/cli/commands/project-config/source/connect.js +27 -29
  226. package/dist/cli/commands/project-config/source/connect.js.map +1 -1
  227. package/dist/cli/commands/project-config/source/disconnect.d.ts.map +1 -1
  228. package/dist/cli/commands/project-config/source/disconnect.js +4 -4
  229. package/dist/cli/commands/project-config/source/disconnect.js.map +1 -1
  230. package/dist/cli/commands/project-config/source/index.js +7 -7
  231. package/dist/cli/commands/project-config/source/index.js.map +1 -1
  232. package/dist/cli/commands/project-config/source/map.d.ts.map +1 -1
  233. package/dist/cli/commands/project-config/source/map.js +14 -18
  234. package/dist/cli/commands/project-config/source/map.js.map +1 -1
  235. package/dist/cli/commands/project-config/source/repos.d.ts.map +1 -1
  236. package/dist/cli/commands/project-config/source/repos.js +5 -5
  237. package/dist/cli/commands/project-config/source/repos.js.map +1 -1
  238. package/dist/cli/commands/project-config/source/status.d.ts.map +1 -1
  239. package/dist/cli/commands/project-config/source/status.js +66 -21
  240. package/dist/cli/commands/project-config/source/status.js.map +1 -1
  241. package/dist/cli/commands/runtime-data/backup.d.ts +1 -0
  242. package/dist/cli/commands/runtime-data/backup.d.ts.map +1 -1
  243. package/dist/cli/commands/runtime-data/backup.js +56 -22
  244. package/dist/cli/commands/runtime-data/backup.js.map +1 -1
  245. package/dist/cli/commands/runtime-data/index.d.ts +1 -0
  246. package/dist/cli/commands/runtime-data/index.d.ts.map +1 -1
  247. package/dist/cli/commands/runtime-data/index.js +54 -33
  248. package/dist/cli/commands/runtime-data/index.js.map +1 -1
  249. package/dist/cli/commands/runtime-data/resource.d.ts +1 -0
  250. package/dist/cli/commands/runtime-data/resource.d.ts.map +1 -1
  251. package/dist/cli/commands/runtime-data/resource.js +52 -32
  252. package/dist/cli/commands/runtime-data/resource.js.map +1 -1
  253. package/dist/cli/commands/runtime-data/restore.d.ts.map +1 -1
  254. package/dist/cli/commands/runtime-data/restore.js +52 -37
  255. package/dist/cli/commands/runtime-data/restore.js.map +1 -1
  256. package/dist/cli/commands/runtime-data/seeds.d.ts.map +1 -1
  257. package/dist/cli/commands/runtime-data/seeds.js +24 -26
  258. package/dist/cli/commands/runtime-data/seeds.js.map +1 -1
  259. package/dist/cli/commands/runtime-data/tunnel.d.ts.map +1 -1
  260. package/dist/cli/commands/runtime-data/tunnel.js +33 -43
  261. package/dist/cli/commands/runtime-data/tunnel.js.map +1 -1
  262. package/dist/cli/host-arguments.d.ts.map +1 -1
  263. package/dist/cli/host-arguments.js +10 -18
  264. package/dist/cli/host-arguments.js.map +1 -1
  265. package/dist/cli/host-nodes.js +1 -1
  266. package/dist/cli/host-nodes.js.map +1 -1
  267. package/dist/cli/index.d.ts +17 -10
  268. package/dist/cli/index.d.ts.map +1 -1
  269. package/dist/cli/index.js +27 -28
  270. package/dist/cli/index.js.map +1 -1
  271. package/dist/cli/lib/api-client.d.ts +10 -5
  272. package/dist/cli/lib/api-client.d.ts.map +1 -1
  273. package/dist/cli/lib/api-client.js +23 -42
  274. package/dist/cli/lib/api-client.js.map +1 -1
  275. package/dist/cli/lib/auth.d.ts +4 -126
  276. package/dist/cli/lib/auth.d.ts.map +1 -1
  277. package/dist/cli/lib/auth.js +8 -495
  278. package/dist/cli/lib/auth.js.map +1 -1
  279. package/dist/cli/lib/cli-login.d.ts +12 -0
  280. package/dist/cli/lib/cli-login.d.ts.map +1 -0
  281. package/dist/cli/lib/cli-login.js +155 -0
  282. package/dist/cli/lib/cli-login.js.map +1 -0
  283. package/dist/cli/lib/cloud-api-url.d.ts +2 -0
  284. package/dist/cli/lib/cloud-api-url.d.ts.map +1 -0
  285. package/dist/cli/lib/cloud-api-url.js +3 -0
  286. package/dist/cli/lib/cloud-api-url.js.map +1 -0
  287. package/dist/cli/lib/commit.d.ts +4 -0
  288. package/dist/cli/lib/commit.d.ts.map +1 -0
  289. package/dist/cli/lib/commit.js +21 -0
  290. package/dist/cli/lib/commit.js.map +1 -0
  291. package/dist/cli/lib/config-revisions.d.ts +9 -0
  292. package/dist/cli/lib/config-revisions.d.ts.map +1 -0
  293. package/dist/cli/lib/config-revisions.js +52 -0
  294. package/dist/cli/lib/config-revisions.js.map +1 -0
  295. package/dist/cli/lib/config.d.ts +0 -4
  296. package/dist/cli/lib/config.d.ts.map +1 -1
  297. package/dist/cli/lib/config.js +3 -5
  298. package/dist/cli/lib/config.js.map +1 -1
  299. package/dist/cli/lib/console-pairing.d.ts +2 -0
  300. package/dist/cli/lib/console-pairing.d.ts.map +1 -0
  301. package/dist/cli/lib/console-pairing.js +58 -0
  302. package/dist/cli/lib/console-pairing.js.map +1 -0
  303. package/dist/cli/lib/contract/backup-schedule-reasons.d.ts +4 -0
  304. package/dist/cli/lib/contract/backup-schedule-reasons.d.ts.map +1 -0
  305. package/dist/cli/lib/contract/backup-schedule-reasons.js +13 -0
  306. package/dist/cli/lib/contract/backup-schedule-reasons.js.map +1 -0
  307. package/dist/cli/lib/contract/build-settings.d.ts +1 -1
  308. package/dist/cli/lib/contract/build-settings.d.ts.map +1 -1
  309. package/dist/cli/lib/contract/build-settings.js +12 -18
  310. package/dist/cli/lib/contract/build-settings.js.map +1 -1
  311. package/dist/cli/lib/contract/database.d.ts +19 -0
  312. package/dist/cli/lib/contract/database.d.ts.map +1 -1
  313. package/dist/cli/lib/contract/database.js +7 -13
  314. package/dist/cli/lib/contract/database.js.map +1 -1
  315. package/dist/cli/lib/contract/deployment-resource-labels.d.ts.map +1 -1
  316. package/dist/cli/lib/contract/deployment-resource-labels.js +2 -6
  317. package/dist/cli/lib/contract/deployment-resource-labels.js.map +1 -1
  318. package/dist/cli/lib/contract/deployments.d.ts +14 -0
  319. package/dist/cli/lib/contract/deployments.d.ts.map +1 -1
  320. package/dist/cli/lib/contract/deployments.js +54 -24
  321. package/dist/cli/lib/contract/deployments.js.map +1 -1
  322. package/dist/cli/lib/contract/desired-state.d.ts +6 -6
  323. package/dist/cli/lib/contract/desired-state.d.ts.map +1 -1
  324. package/dist/cli/lib/contract/desired-state.js +52 -55
  325. package/dist/cli/lib/contract/desired-state.js.map +1 -1
  326. package/dist/cli/lib/contract/env-vars.d.ts +37 -0
  327. package/dist/cli/lib/contract/env-vars.d.ts.map +1 -0
  328. package/dist/cli/lib/contract/env-vars.js +6 -0
  329. package/dist/cli/lib/contract/env-vars.js.map +1 -0
  330. package/dist/cli/lib/contract/foreign-credentials.d.ts +14 -25
  331. package/dist/cli/lib/contract/foreign-credentials.d.ts.map +1 -1
  332. package/dist/cli/lib/contract/foreign-credentials.js +19 -30
  333. package/dist/cli/lib/contract/foreign-credentials.js.map +1 -1
  334. package/dist/cli/lib/contract/logs.d.ts +120 -0
  335. package/dist/cli/lib/contract/logs.d.ts.map +1 -1
  336. package/dist/cli/lib/contract/logs.js +113 -16
  337. package/dist/cli/lib/contract/logs.js.map +1 -1
  338. package/dist/cli/lib/contract/managed-email.d.ts +57 -0
  339. package/dist/cli/lib/contract/managed-email.d.ts.map +1 -0
  340. package/dist/cli/lib/contract/managed-email.js +20 -0
  341. package/dist/cli/lib/contract/managed-email.js.map +1 -0
  342. package/dist/cli/lib/contract/permission-denied.d.ts +16 -0
  343. package/dist/cli/lib/contract/permission-denied.d.ts.map +1 -0
  344. package/dist/cli/lib/contract/permission-denied.js +20 -0
  345. package/dist/cli/lib/contract/permission-denied.js.map +1 -0
  346. package/dist/cli/lib/contract/projects.d.ts +6 -0
  347. package/dist/cli/lib/contract/projects.d.ts.map +1 -1
  348. package/dist/cli/lib/contract/projects.js +2 -3
  349. package/dist/cli/lib/contract/projects.js.map +1 -1
  350. package/dist/cli/lib/contract/public-error-details.d.ts.map +1 -1
  351. package/dist/cli/lib/contract/public-error-details.js +28 -43
  352. package/dist/cli/lib/contract/public-error-details.js.map +1 -1
  353. package/dist/cli/lib/contract/regions.d.ts +11 -0
  354. package/dist/cli/lib/contract/regions.d.ts.map +1 -0
  355. package/dist/cli/lib/contract/regions.js +7 -0
  356. package/dist/cli/lib/contract/regions.js.map +1 -0
  357. package/dist/cli/lib/contract/runtime-operations.d.ts +0 -1
  358. package/dist/cli/lib/contract/runtime-operations.d.ts.map +1 -1
  359. package/dist/cli/lib/contract/runtime-operations.js +11 -21
  360. package/dist/cli/lib/contract/runtime-operations.js.map +1 -1
  361. package/dist/cli/lib/contract/seeds.d.ts.map +1 -1
  362. package/dist/cli/lib/contract/seeds.js +12 -21
  363. package/dist/cli/lib/contract/seeds.js.map +1 -1
  364. package/dist/cli/lib/contract/source-disconnect-reasons.d.ts +4 -0
  365. package/dist/cli/lib/contract/source-disconnect-reasons.d.ts.map +1 -0
  366. package/dist/cli/lib/contract/source-disconnect-reasons.js +23 -0
  367. package/dist/cli/lib/contract/source-disconnect-reasons.js.map +1 -0
  368. package/dist/cli/lib/contract/source-repository.d.ts +1 -1
  369. package/dist/cli/lib/contract/source-repository.d.ts.map +1 -1
  370. package/dist/cli/lib/contract/source-repository.js +6 -9
  371. package/dist/cli/lib/contract/source-repository.js.map +1 -1
  372. package/dist/cli/lib/contract/wire-types.d.ts.map +1 -1
  373. package/dist/cli/lib/contract/wire-types.js +3 -8
  374. package/dist/cli/lib/contract/wire-types.js.map +1 -1
  375. package/dist/cli/lib/contract/wire-values.d.ts.map +1 -1
  376. package/dist/cli/lib/contract/wire-values.js +2 -3
  377. package/dist/cli/lib/contract/wire-values.js.map +1 -1
  378. package/dist/cli/lib/dotenv.d.ts +6 -0
  379. package/dist/cli/lib/dotenv.d.ts.map +1 -1
  380. package/dist/cli/lib/dotenv.js +62 -20
  381. package/dist/cli/lib/dotenv.js.map +1 -1
  382. package/dist/cli/lib/env-file.d.ts.map +1 -1
  383. package/dist/cli/lib/env-file.js +5 -11
  384. package/dist/cli/lib/env-file.js.map +1 -1
  385. package/dist/cli/lib/env-preflight.d.ts +6 -1
  386. package/dist/cli/lib/env-preflight.d.ts.map +1 -1
  387. package/dist/cli/lib/env-preflight.js +91 -63
  388. package/dist/cli/lib/env-preflight.js.map +1 -1
  389. package/dist/cli/lib/errors.d.ts +17 -19
  390. package/dist/cli/lib/errors.d.ts.map +1 -1
  391. package/dist/cli/lib/errors.js +47 -60
  392. package/dist/cli/lib/errors.js.map +1 -1
  393. package/dist/cli/lib/format.d.ts.map +1 -1
  394. package/dist/cli/lib/format.js +3 -5
  395. package/dist/cli/lib/format.js.map +1 -1
  396. package/dist/cli/lib/invocation.d.ts +4 -5
  397. package/dist/cli/lib/invocation.d.ts.map +1 -1
  398. package/dist/cli/lib/invocation.js +5 -33
  399. package/dist/cli/lib/invocation.js.map +1 -1
  400. package/dist/cli/lib/log-stream.d.ts.map +1 -1
  401. package/dist/cli/lib/log-stream.js +15 -23
  402. package/dist/cli/lib/log-stream.js.map +1 -1
  403. package/dist/cli/lib/logger.d.ts.map +1 -1
  404. package/dist/cli/lib/logger.js +7 -12
  405. package/dist/cli/lib/logger.js.map +1 -1
  406. package/dist/cli/lib/organization.d.ts.map +1 -1
  407. package/dist/cli/lib/organization.js +5 -13
  408. package/dist/cli/lib/organization.js.map +1 -1
  409. package/dist/cli/lib/platform-address.d.ts +3 -0
  410. package/dist/cli/lib/platform-address.d.ts.map +1 -0
  411. package/dist/cli/lib/platform-address.js +7 -0
  412. package/dist/cli/lib/platform-address.js.map +1 -0
  413. package/dist/cli/lib/project-link.d.ts.map +1 -1
  414. package/dist/cli/lib/project-link.js +2 -4
  415. package/dist/cli/lib/project-link.js.map +1 -1
  416. package/dist/cli/lib/resolve.d.ts +2 -6
  417. package/dist/cli/lib/resolve.d.ts.map +1 -1
  418. package/dist/cli/lib/resolve.js +35 -34
  419. package/dist/cli/lib/resolve.js.map +1 -1
  420. package/dist/cli/lib/source-repository-link.d.ts.map +1 -1
  421. package/dist/cli/lib/source-repository-link.js +6 -9
  422. package/dist/cli/lib/source-repository-link.js.map +1 -1
  423. package/dist/cli/lib/terminal-output.d.ts +12 -0
  424. package/dist/cli/lib/terminal-output.d.ts.map +1 -0
  425. package/dist/cli/lib/terminal-output.js +69 -0
  426. package/dist/cli/lib/terminal-output.js.map +1 -0
  427. package/dist/cli/lib/types.d.ts +3 -7
  428. package/dist/cli/lib/types.d.ts.map +1 -1
  429. package/dist/cli/lib/types.js.map +1 -1
  430. package/dist/cli/lib/utf8.d.ts +2 -0
  431. package/dist/cli/lib/utf8.d.ts.map +1 -0
  432. package/dist/cli/lib/utf8.js +12 -0
  433. package/dist/cli/lib/utf8.js.map +1 -0
  434. package/dist/cli/root-options.d.ts.map +1 -1
  435. package/dist/cli/root-options.js +11 -14
  436. package/dist/cli/root-options.js.map +1 -1
  437. package/dist/cli-plugin.d.ts.map +1 -1
  438. package/dist/cli-plugin.js +2 -6
  439. package/dist/cli-plugin.js.map +1 -1
  440. package/dist/cloud-config-module.js +2 -2
  441. package/dist/cloud-config-module.js.map +1 -1
  442. package/dist/dev/cli-host.d.ts.map +1 -1
  443. package/dist/dev/cli-host.js +16 -19
  444. package/dist/dev/cli-host.js.map +1 -1
  445. package/dist/dev/dashboard-vite-config.d.ts +1 -0
  446. package/dist/dev/dashboard-vite-config.d.ts.map +1 -1
  447. package/dist/dev/dashboard-vite-config.js +26 -6
  448. package/dist/dev/dashboard-vite-config.js.map +1 -1
  449. package/dist/dev/dev-command.d.ts.map +1 -1
  450. package/dist/dev/dev-command.js +76 -39
  451. package/dist/dev/dev-command.js.map +1 -1
  452. package/dist/dev/dev-config.d.ts +3 -0
  453. package/dist/dev/dev-config.d.ts.map +1 -1
  454. package/dist/dev/dev-config.js +43 -13
  455. package/dist/dev/dev-config.js.map +1 -1
  456. package/dist/dev/dev-migrate.js +7 -9
  457. package/dist/dev/dev-migrate.js.map +1 -1
  458. package/dist/dev/dev-process.d.ts.map +1 -1
  459. package/dist/dev/dev-process.js +6 -10
  460. package/dist/dev/dev-process.js.map +1 -1
  461. package/dist/dev/dev-server.js +7 -6
  462. package/dist/dev/dev-server.js.map +1 -1
  463. package/dist/dev/dev-worker.js +5 -2
  464. package/dist/dev/dev-worker.js.map +1 -1
  465. package/dist/dev/local-services.d.ts.map +1 -1
  466. package/dist/dev/local-services.js +152 -106
  467. package/dist/dev/local-services.js.map +1 -1
  468. package/dist/dev/project-layout.d.ts.map +1 -1
  469. package/dist/dev/project-layout.js +12 -17
  470. package/dist/dev/project-layout.js.map +1 -1
  471. package/dist/dev/project-plugin-scope.d.ts +2 -0
  472. package/dist/dev/project-plugin-scope.d.ts.map +1 -0
  473. package/dist/dev/project-plugin-scope.js +38 -0
  474. package/dist/dev/project-plugin-scope.js.map +1 -0
  475. package/dist/entrypoint.js +2 -0
  476. package/dist/entrypoint.js.map +1 -1
  477. package/dist/index.d.ts.map +1 -1
  478. package/dist/index.js +3 -6
  479. package/dist/index.js.map +1 -1
  480. package/dist/local-asset-server.d.ts.map +1 -1
  481. package/dist/local-asset-server.js +7 -13
  482. package/dist/local-asset-server.js.map +1 -1
  483. package/dist/local-cache-plugin.d.ts.map +1 -1
  484. package/dist/local-cache-plugin.js +20 -28
  485. package/dist/local-cache-plugin.js.map +1 -1
  486. package/dist/local-cache.d.ts.map +1 -1
  487. package/dist/local-cache.js +40 -55
  488. package/dist/local-cache.js.map +1 -1
  489. package/dist/local-core.d.ts +2 -0
  490. package/dist/local-core.d.ts.map +1 -0
  491. package/dist/local-core.js +13 -0
  492. package/dist/local-core.js.map +1 -0
  493. package/dist/local-dashboard-plugin.d.ts.map +1 -1
  494. package/dist/local-dashboard-plugin.js +6 -11
  495. package/dist/local-dashboard-plugin.js.map +1 -1
  496. package/dist/local-database.d.ts.map +1 -1
  497. package/dist/local-database.js +20 -23
  498. package/dist/local-database.js.map +1 -1
  499. package/dist/local-durable-execution-plugin.d.ts +15 -0
  500. package/dist/local-durable-execution-plugin.d.ts.map +1 -0
  501. package/dist/local-durable-execution-plugin.js +305 -0
  502. package/dist/local-durable-execution-plugin.js.map +1 -0
  503. package/dist/local-runtime-guard.d.ts +2 -0
  504. package/dist/local-runtime-guard.d.ts.map +1 -1
  505. package/dist/local-runtime-guard.js +40 -3
  506. package/dist/local-runtime-guard.js.map +1 -1
  507. package/dist/local-runtime.d.ts.map +1 -1
  508. package/dist/local-runtime.js +53 -43
  509. package/dist/local-runtime.js.map +1 -1
  510. package/package.json +20 -14
  511. package/dist/cli/commands/identity-context/login.d.ts +0 -2
  512. package/dist/cli/commands/identity-context/login.d.ts.map +0 -1
  513. package/dist/cli/commands/identity-context/login.js +0 -158
  514. package/dist/cli/commands/identity-context/login.js.map +0 -1
  515. package/dist/cli/commands/identity-context/logout.d.ts +0 -2
  516. package/dist/cli/commands/identity-context/logout.d.ts.map +0 -1
  517. package/dist/cli/commands/identity-context/logout.js +0 -12
  518. package/dist/cli/commands/identity-context/logout.js.map +0 -1
  519. package/dist/cli/commands/identity-context/org-switch.d.ts +0 -3
  520. package/dist/cli/commands/identity-context/org-switch.d.ts.map +0 -1
  521. package/dist/cli/commands/identity-context/org-switch.js +0 -71
  522. package/dist/cli/commands/identity-context/org-switch.js.map +0 -1
  523. package/dist/cli/commands/identity-context/whoami.d.ts +0 -3
  524. package/dist/cli/commands/identity-context/whoami.d.ts.map +0 -1
  525. package/dist/cli/commands/identity-context/whoami.js +0 -80
  526. package/dist/cli/commands/identity-context/whoami.js.map +0 -1
  527. package/dist/cli/lib/file-lock.d.ts +0 -23
  528. package/dist/cli/lib/file-lock.d.ts.map +0 -1
  529. package/dist/cli/lib/file-lock.js +0 -121
  530. package/dist/cli/lib/file-lock.js.map +0 -1
@@ -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,IAAI,gCAAgC,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACrE,IAAI,CAAC,iCAAiC,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,UAAU,CAAC;IAC7E,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,+BAA+B,CAAC;IACpE,IAAI,SAAS,KAAK,cAAc;QAAE,OAAO,uBAAuB,CAAC;IACjE,IAAI,SAAS,KAAK,UAAU;QAAE,OAAO,UAAU,CAAC;IAChD,IAAI,SAAS,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC;IAC1C,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,cAAc,CAAC;IAClD,IAAI,SAAS,KAAK,aAAa;QA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AAC;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,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,IAAI,gCAAgC,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACrE,IAAI,CAAC,iCAAiC,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OA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AS,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"}
@@ -58,6 +58,18 @@ export interface TeardownStatusDetails {
58
58
  export interface DeploymentIdPrefixMatchesResponse {
59
59
  matches: string[];
60
60
  }
61
+ export declare const DEPLOYMENT_FAILURE_STAGES: readonly ["BUILD_PREPARATION", "BUILD", "BUILD_HANDOFF", "DEPLOYMENT_PREPARATION", "INFRASTRUCTURE", "DATABASE_PROVISIONING", "MIGRATION", "RUNTIME_START"];
62
+ export type DeploymentFailureStage = (typeof DEPLOYMENT_FAILURE_STAGES)[number];
63
+ export declare const DEPLOYMENT_RECOVERY_ACTIONS: readonly ["DEPLOY_AGAIN", "FIX_SOURCE_AND_DEPLOY", "FIX_MIGRATION_AND_DEPLOY", "ROLLBACK", "CONTACT_SUPPORT", "INSPECT_ENVIRONMENT"];
64
+ export type DeploymentRecoveryAction = (typeof DEPLOYMENT_RECOVERY_ACTIONS)[number];
65
+ export type DeploymentRecovery = {
66
+ stage: DeploymentFailureStage | null;
67
+ stageLabel: string | null;
68
+ stageUnavailableReason: string | null;
69
+ nextAction: DeploymentRecoveryAction;
70
+ summary: string;
71
+ nextActionMessage: string;
72
+ };
61
73
  export declare const ENVIRONMENT_STATUS_RESOURCE_CATEGORIES: readonly ["DATASTORE", "SERVICE"];
62
74
  export type EnvironmentStatusResourceCategory = (typeof ENVIRONMENT_STATUS_RESOURCE_CATEGORIES)[number];
63
75
  export type EnvironmentStatusResource = {
@@ -70,6 +82,8 @@ export declare const EnvironmentActiveWorkKind: {
70
82
  readonly RUNTIME_OPERATION: "RUNTIME_OPERATION";
71
83
  readonly SEED_APPLY: "SEED_APPLY";
72
84
  readonly DATABASE_RESTORE: "DATABASE_RESTORE";
85
+ readonly RELOCATION: "RELOCATION";
86
+ readonly BENCHMARK_RUNTIME_PROFILE: "BENCHMARK_RUNTIME_PROFILE";
73
87
  };
74
88
  export type EnvironmentActiveWorkKind = (typeof EnvironmentActiveWorkKind)[keyof typeof EnvironmentActiveWorkKind];
75
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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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,45 +2,75 @@
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"];
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.
27
+ export const DEPLOYMENT_FAILURE_STAGES = [
28
+ "BUILD_PREPARATION",
29
+ "BUILD",
30
+ "BUILD_HANDOFF",
31
+ "DEPLOYMENT_PREPARATION",
32
+ "INFRASTRUCTURE",
33
+ "DATABASE_PROVISIONING",
34
+ "MIGRATION",
35
+ "RUNTIME_START",
36
+ ];
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.
39
+ //
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.
42
+ //
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.
46
+ export const DEPLOYMENT_RECOVERY_ACTIONS = [
47
+ "DEPLOY_AGAIN",
48
+ "FIX_SOURCE_AND_DEPLOY",
49
+ "FIX_MIGRATION_AND_DEPLOY",
50
+ "ROLLBACK",
51
+ "CONTACT_SUPPORT",
52
+ "INSPECT_ENVIRONMENT",
53
+ ];
29
54
  export const ENVIRONMENT_STATUS_RESOURCE_CATEGORIES = ["DATASTORE", "SERVICE"];
30
- // Environment-scoped work that serializes against everything else touching the
31
- // same VC Environment. Deploys, teardowns and runtime operations all take the
32
- // 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.
33
57
  export const EnvironmentActiveWorkKind = {
34
58
  DEPLOYMENT: "DEPLOYMENT",
35
59
  TEARDOWN: "TEARDOWN",
36
60
  RUNTIME_OPERATION: "RUNTIME_OPERATION",
37
- // A named seed apply replaces the whole of an environment's database, so it is work in the same
38
- // sense a deploy is: neither may start while the other is in flight, and the refusal has to name
39
- // 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).
40
63
  SEED_APPLY: "SEED_APPLY",
41
- // A restore replaces the whole of an environment's database from a dump, so it collides with
42
- // everything above for the same reason a seed apply does — and with itself, which is the case
43
- // 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).
44
66
  DATABASE_RESTORE: "DATABASE_RESTORE",
67
+ // A VC Relocation moves the environment's authoritative placement, so it holds the slot against
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.
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",
45
75
  };
46
76
  //# sourceMappingURL=deployments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployments.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,oGAAoG;AACpG,+DAA+D;AAC/D,EAAE;AACF,iGAAiG;AACjG,gGAAgG;AAChG,2CAA2C;AAC3C,EAAE;AACF,2FAA2F;AAC3F,yFAAyF;AACzF,oGAAoG;AACpG,oEAAoE;AAMpE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AAIhG,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AA6CvF,gGAAgG;AAChG,8FAA8F;AAC9F,EAAE;AACF,8FAA8F;AAC9F,gGAAgG;AAChG,mGAAmG;AACnG,oGAAoG;AACpG,kGAAkG;AAClG,sFAAsF;AACtF,MAAM,UAAU,wBAAwB,CAAC,IAExC;IACC,OAAO,OAAO,IAAI,CAAC,wBAAwB,KAAK,QAAQ,CAAC;AAC3D,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CA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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<{
@@ -41,7 +42,9 @@ export declare const ASSETS_NOT_CONFIGURABLE_MESSAGE = "Asset storage is not con
41
42
  export declare const CACHE_NOT_CONFIGURABLE_MESSAGE = "The cache is not configurable. Remove the cache section: Vendure Cloud gives every VC Environment its own cache and configures Vendure to use it.";
42
43
  export declare const DATABASE_NOT_CONFIGURABLE_MESSAGE = "The database is not configurable. Remove the database section: Vendure Cloud gives every VC Environment its own PostgreSQL database and scales it.";
43
44
  export declare const JOB_QUEUE_NOT_CONFIGURABLE_MESSAGE = "The job queue is not configurable. Remove the jobQueue section: Vendure Cloud gives every VC Environment its own job queue and configures Vendure to use it.";
44
- export declare const RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE = "Runtime service sizing is not configurable. Remove the plan field: Vendure Cloud sizes the server and the worker. Replicas are still yours to set, and support can raise the size if you need more.";
45
+ export declare 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.";
46
+ export declare 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.";
47
+ export declare 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.";
45
48
  export declare const environmentDesiredStateSchema: z.ZodPipe<z.ZodUnknown, z.ZodObject<{
46
49
  schemaVersion: z.ZodLiteral<1>;
47
50
  environment: z.ZodObject<{
@@ -53,17 +56,14 @@ export declare const environmentDesiredStateSchema: z.ZodPipe<z.ZodUnknown, z.Zo
53
56
  }>;
54
57
  region: z.ZodPipe<z.ZodString, z.ZodEnum<{
55
58
  "eu-west-1": "eu-west-1";
59
+ "us-east-1": "us-east-1";
56
60
  }>>;
57
61
  }, z.core.$strict>;
58
62
  runtime: z.ZodObject<{
59
63
  server: z.ZodObject<{
60
- replicas: z.ZodNumber;
61
64
  port: z.ZodDefault<z.ZodNumber>;
62
65
  healthCheckPath: z.ZodDefault<z.ZodString>;
63
66
  }, z.core.$strict>;
64
- worker: z.ZodObject<{
65
- replicas: z.ZodNumber;
66
- }, z.core.$strict>;
67
67
  }, z.core.$strict>;
68
68
  search: z.ZodDiscriminatedUnion<[z.ZodObject<{
69
69
  managedService: z.ZodLiteral<"none">;
@@ -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;AA8BxD,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,gCAAgC,YAAY,CAAC;AAmB1D,eAAO,MAAM,+BAA+B,g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,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",
@@ -47,47 +42,31 @@ export const VC_ADDON_PLANS = [
47
42
  "vc-compute-2000-40",
48
43
  ];
49
44
  export const vcAddonPlanSchema = z.enum(VC_ADDON_PLANS);
50
- const runtimeReplicasSchema = z.number().int().min(1).max(20);
51
45
  const addonReplicasSchema = z.number().int().min(1).max(10);
52
46
  const storageGbSchema = z.number().int().min(1).max(1000);
53
47
  const typesenseStorageGbSchema = storageGbSchema.min(6);
54
- // How many tasks a runtime service runs, and nothing about how large each one is. The task shape is
55
- // the platform's, resolved from the VC Environment's type and its platform-managed capacity class
56
- // (CLO-569), and no longer named in this document.
57
- //
58
- // `replicas` is the temporary half of that split. It stays customer-configurable because the
59
- // platform has no autoscaling yet and because stop and start restore a service to the count
60
- // recorded here (CLO-495). CLO-572 replaces it with platform-owned bounds and removes the field.
61
- const serviceSchema = z
62
- .object({
63
- replicas: runtimeReplicasSchema,
64
- })
65
- .strict();
66
48
  // Where the server listens and how the load balancer decides it is alive.
67
49
  //
68
- // On the server alone, because the worker has no listener and nothing routes to it. Both carry a
69
- // default, so a VC Environment created before these existed parses unchanged and a customer who
70
- // 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.
71
52
  //
72
- // They are here rather than fixed in the control plane because a VC Environment may run an image
73
- // the platform did not build — `deploy --server-image` is a supported path — and that image
74
- // listens where it listens. A platform-wide constant would mean a target group that never turns
75
- // 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.
76
57
  export const DEFAULT_SERVER_PORT = 3000;
77
58
  export const DEFAULT_SERVER_HEALTH_CHECK_PATH = "/health";
78
- const serverServiceSchema = serviceSchema
79
- .extend({
59
+ const serverServiceSchema = z
60
+ .object({
80
61
  port: z.number().int().min(1).max(65535).default(DEFAULT_SERVER_PORT),
81
- // Rooted, because the load balancer sends it as a path and a relative one is refused at apply
82
- // 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.
83
64
  healthCheckPath: z.string().startsWith("/").default(DEFAULT_SERVER_HEALTH_CHECK_PATH),
84
65
  })
85
66
  .strict();
86
- // A field keeps arriving for a while after it leaves Desired State. A stored document carries the
87
- // key, and so does a request from a CLI built before the field went. The strict object below
88
- // reports both of those as an unrecognized key, which reads as a misspelling rather than as a field
89
- // that was removed. Each removed field therefore gets its own check here, which names the field and
90
- // 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.
91
70
  // Asset storage left with ADR-0051: a VC Environment's assets live in a bucket the platform creates
92
71
  // and destroys with the environment, so there is nothing to choose.
93
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.";
@@ -103,18 +82,28 @@ export const DATABASE_NOT_CONFIGURABLE_MESSAGE = "The database is not configurab
103
82
  export const JOB_QUEUE_NOT_CONFIGURABLE_MESSAGE = "The job queue is not configurable. Remove the jobQueue section: Vendure Cloud gives every VC Environment its own job queue and configures Vendure to use it.";
104
83
  // Per-service compute plans left with ADR-0036 and CLO-569: Vendure Cloud sizes a VC Environment's
105
84
  // server and worker from its type and its platform-managed capacity class, so there is no compute
106
- // size to pick. Replicas are unaffected and stay in the document.
107
- 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. Replicas are still yours to set, and support can raise the size if you need more.";
85
+ // size to pick.
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.";
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.
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.";
91
+ // The whole worker section went too, because the count was all it held.
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.";
108
93
  const REMOVED_FIELD_MESSAGES = {
109
94
  assets: ASSETS_NOT_CONFIGURABLE_MESSAGE,
110
95
  cache: CACHE_NOT_CONFIGURABLE_MESSAGE,
111
96
  database: DATABASE_NOT_CONFIGURABLE_MESSAGE,
112
97
  jobQueue: JOB_QUEUE_NOT_CONFIGURABLE_MESSAGE,
113
98
  };
114
- // The runtime services whose `plan` is gone. Checked one level down rather than through the strict
115
- // object above, for the same reason the four top-level sections are: a strict object reports an
116
- // unrecognized key, which reads as a misspelling rather than as a field the 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.
117
101
  const REMOVED_RUNTIME_SERVICES = ["server", "worker"];
102
+ // The fields those services no longer carry, each with the sentence saying where it went.
103
+ const REMOVED_RUNTIME_SERVICE_FIELDS = {
104
+ plan: RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE,
105
+ replicas: RUNTIME_REPLICAS_NOT_CONFIGURABLE_MESSAGE,
106
+ };
118
107
  const removedFieldsSchema = z.unknown().superRefine((value, ctx) => {
119
108
  if (typeof value !== "object" || value === null)
120
109
  return;
@@ -130,12 +119,18 @@ const removedFieldsSchema = z.unknown().superRefine((value, ctx) => {
130
119
  const service = runtime[key];
131
120
  if (typeof service !== "object" || service === null)
132
121
  continue;
133
- if (!("plan" in service))
134
- continue;
122
+ for (const [field, message] of Object.entries(REMOVED_RUNTIME_SERVICE_FIELDS)) {
123
+ if (!(field in service))
124
+ continue;
125
+ ctx.addIssue({ code: "custom", path: ["runtime", key, field], message });
126
+ }
127
+ }
128
+ // The section itself, reported after its fields so the count a document set is named first.
129
+ if ("worker" in runtime) {
135
130
  ctx.addIssue({
136
131
  code: "custom",
137
- path: ["runtime", key, "plan"],
138
- message: RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE,
132
+ path: ["runtime", "worker"],
133
+ message: RUNTIME_WORKER_NOT_CONFIGURABLE_MESSAGE,
139
134
  });
140
135
  }
141
136
  });
@@ -148,10 +143,12 @@ const environmentDesiredStateObjectSchema = z
148
143
  region: vcRegionSchema,
149
144
  })
150
145
  .strict(),
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.
151
149
  runtime: z
152
150
  .object({
153
151
  server: serverServiceSchema,
154
- worker: serviceSchema,
155
152
  })
156
153
  .strict(),
157
154
  search: z.discriminatedUnion("managedService", [
@@ -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,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,WAAW,CAAU,CAAC;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,CAAU,CAAC;AACrF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;AAEpE,iGAAiG;AACjG,kGAAkG;AAClG,0DAA0D;AAC1D,MAAM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AM,EAAE,cAAc;KACvB,CAAC;SACD,MAAM,EAAE;IACX,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,aAAa;KACtB,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"}
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,iGAAiG;AACjG,2FAA2F;AAC3F,mGAAmG;AACnG,2FAA2F;AAC3F,EAAE;AACF,wFAAwF;AACxF,4EAA4E;AAC5E,EAAE;AACF,iGAAiG;AACjG,sFAAsF;AAEtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,WAAW,EAAE,WAAW,CAAU,CAAC;AAE9D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,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arSummary {
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,31 +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
- * Refusing `vcli_` is not the final answer for it — CLO-641 makes the Console
26
- * session usable through a server-side exchange with Console. Until that
27
- * exists, a Console session presented here is a credential Cloud cannot check,
28
- * and the boundary says so rather than forwarding it.
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.
29
20
  */
30
21
  export declare const ENVIRONMENT_CREDENTIAL_PREFIX = "vce_";
31
22
  export declare const CONSOLE_SESSION_TOKEN_PREFIX = "vcli_";
@@ -39,9 +30,7 @@ export type ForeignCredential = (typeof ForeignCredential)[keyof typeof ForeignC
39
30
  /**
40
31
  * Which foreign credential this value is, or null when it is none of them.
41
32
  *
42
- * A denylist, not a shape check. Anything that is not recognised here is left
43
- * alone and validated as it always was, so a legitimate credential can never be
44
- * turned away by this function.
33
+ * A denylist, not a shape check, so a legitimate credential is never turned away here.
45
34
  */
46
35
  export declare function classifyForeignCredential(value: string): ForeignCredential | null;
47
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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"}