@xemahq/xema 0.14.0 → 0.15.0

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 (418) hide show
  1. package/README.md +23 -2
  2. package/dist/assets/appliance-base/distribution.lock.json +5144 -0
  3. package/dist/assets/appliance-base/images.lock.json +1706 -0
  4. package/dist/assets/appliance-lean/distribution.lock.json +2888 -0
  5. package/dist/assets/appliance-lean/images.lock.json +1229 -0
  6. package/dist/assets/boot-graph.json +339 -29
  7. package/dist/assets/cloud/distribution.lock.json +5278 -0
  8. package/dist/assets/cloud/images.lock.json +1713 -0
  9. package/dist/assets/core/distribution.lock.json +1802 -125
  10. package/dist/assets/core/images.lock.json +1175 -235
  11. package/dist/assets/distribution-assets.manifest.json +147 -0
  12. package/dist/assets/keycloak/realm-xema.json +412 -0
  13. package/dist/assets/minimal/distribution.lock.json +2710 -0
  14. package/dist/assets/minimal/images.lock.json +1149 -0
  15. package/dist/assets/oss/distribution.lock.json +2438 -226
  16. package/dist/assets/oss/images.lock.json +1502 -618
  17. package/dist/assets/starter/distribution.lock.json +3422 -0
  18. package/dist/assets/starter/images.lock.json +1404 -0
  19. package/dist/cli.d.ts.map +1 -1
  20. package/dist/cli.js +4 -0
  21. package/dist/cli.js.map +1 -1
  22. package/dist/commands/apply.js +1 -1
  23. package/dist/commands/apply.js.map +1 -1
  24. package/dist/commands/biome.d.ts.map +1 -1
  25. package/dist/commands/biome.js +84 -7
  26. package/dist/commands/biome.js.map +1 -1
  27. package/dist/commands/canopy.js +1 -1
  28. package/dist/commands/canopy.js.map +1 -1
  29. package/dist/commands/dev.d.ts.map +1 -1
  30. package/dist/commands/dev.js +27 -5
  31. package/dist/commands/dev.js.map +1 -1
  32. package/dist/commands/dist.d.ts +13 -0
  33. package/dist/commands/dist.d.ts.map +1 -1
  34. package/dist/commands/dist.js +50 -10
  35. package/dist/commands/dist.js.map +1 -1
  36. package/dist/commands/doctor.d.ts +25 -0
  37. package/dist/commands/doctor.d.ts.map +1 -1
  38. package/dist/commands/doctor.js +422 -18
  39. package/dist/commands/doctor.js.map +1 -1
  40. package/dist/commands/down.d.ts +10 -0
  41. package/dist/commands/down.d.ts.map +1 -1
  42. package/dist/commands/down.js +81 -41
  43. package/dist/commands/down.js.map +1 -1
  44. package/dist/commands/export.js +1 -1
  45. package/dist/commands/export.js.map +1 -1
  46. package/dist/commands/import.js +1 -1
  47. package/dist/commands/import.js.map +1 -1
  48. package/dist/commands/init.d.ts.map +1 -1
  49. package/dist/commands/init.js +56 -3
  50. package/dist/commands/init.js.map +1 -1
  51. package/dist/commands/installation.d.ts.map +1 -1
  52. package/dist/commands/installation.js +169 -12
  53. package/dist/commands/installation.js.map +1 -1
  54. package/dist/commands/license.d.ts +3 -0
  55. package/dist/commands/license.d.ts.map +1 -0
  56. package/dist/commands/license.js +97 -0
  57. package/dist/commands/license.js.map +1 -0
  58. package/dist/commands/login.d.ts +4 -0
  59. package/dist/commands/login.d.ts.map +1 -0
  60. package/dist/commands/login.js +127 -0
  61. package/dist/commands/login.js.map +1 -0
  62. package/dist/commands/logs.d.ts +21 -0
  63. package/dist/commands/logs.d.ts.map +1 -1
  64. package/dist/commands/logs.js +131 -22
  65. package/dist/commands/logs.js.map +1 -1
  66. package/dist/commands/objects.js +2 -2
  67. package/dist/commands/objects.js.map +1 -1
  68. package/dist/commands/plan.js +1 -1
  69. package/dist/commands/plan.js.map +1 -1
  70. package/dist/commands/run.js +1 -1
  71. package/dist/commands/run.js.map +1 -1
  72. package/dist/commands/serve.d.ts.map +1 -1
  73. package/dist/commands/serve.js +39 -6
  74. package/dist/commands/serve.js.map +1 -1
  75. package/dist/commands/shell.js +1 -1
  76. package/dist/commands/shell.js.map +1 -1
  77. package/dist/commands/up.d.ts.map +1 -1
  78. package/dist/commands/up.js +20 -5
  79. package/dist/commands/up.js.map +1 -1
  80. package/dist/dev/env-defaults.d.ts +1 -0
  81. package/dist/dev/env-defaults.d.ts.map +1 -1
  82. package/dist/dev/env-defaults.js +15 -6
  83. package/dist/dev/env-defaults.js.map +1 -1
  84. package/dist/dev/forked-worker-bootstrap-protocol.d.ts +17 -0
  85. package/dist/dev/forked-worker-bootstrap-protocol.d.ts.map +1 -0
  86. package/dist/dev/forked-worker-bootstrap-protocol.js +35 -0
  87. package/dist/dev/forked-worker-bootstrap-protocol.js.map +1 -0
  88. package/dist/dev/forked-worker-bootstrap.d.ts +18 -0
  89. package/dist/dev/forked-worker-bootstrap.d.ts.map +1 -0
  90. package/dist/dev/forked-worker-bootstrap.js +84 -0
  91. package/dist/dev/forked-worker-bootstrap.js.map +1 -0
  92. package/dist/dev/forked-worker.d.ts +14 -0
  93. package/dist/dev/forked-worker.d.ts.map +1 -1
  94. package/dist/dev/forked-worker.js +200 -33
  95. package/dist/dev/forked-worker.js.map +1 -1
  96. package/dist/lib/control-plane.d.ts +5 -1
  97. package/dist/lib/control-plane.d.ts.map +1 -1
  98. package/dist/lib/control-plane.js +56 -6
  99. package/dist/lib/control-plane.js.map +1 -1
  100. package/dist/runtime/asset-provenance.d.ts +17 -0
  101. package/dist/runtime/asset-provenance.d.ts.map +1 -0
  102. package/dist/runtime/asset-provenance.js +29 -0
  103. package/dist/runtime/asset-provenance.js.map +1 -0
  104. package/dist/runtime/auth/client-bootstrap.d.ts +11 -0
  105. package/dist/runtime/auth/client-bootstrap.d.ts.map +1 -0
  106. package/dist/runtime/auth/client-bootstrap.js +60 -0
  107. package/dist/runtime/auth/client-bootstrap.js.map +1 -0
  108. package/dist/runtime/auth/device-flow.d.ts +43 -0
  109. package/dist/runtime/auth/device-flow.d.ts.map +1 -0
  110. package/dist/runtime/auth/device-flow.js +201 -0
  111. package/dist/runtime/auth/device-flow.js.map +1 -0
  112. package/dist/runtime/auth/session-auth.d.ts +8 -0
  113. package/dist/runtime/auth/session-auth.d.ts.map +1 -0
  114. package/dist/runtime/auth/session-auth.js +43 -0
  115. package/dist/runtime/auth/session-auth.js.map +1 -0
  116. package/dist/runtime/auth/session-store.d.ts +19 -0
  117. package/dist/runtime/auth/session-store.d.ts.map +1 -0
  118. package/dist/runtime/auth/session-store.js +83 -0
  119. package/dist/runtime/auth/session-store.js.map +1 -0
  120. package/dist/runtime/auth/token-claims.d.ts +2 -0
  121. package/dist/runtime/auth/token-claims.d.ts.map +1 -0
  122. package/dist/runtime/auth/token-claims.js +45 -0
  123. package/dist/runtime/auth/token-claims.js.map +1 -0
  124. package/dist/runtime/biome-provenance.d.ts +26 -0
  125. package/dist/runtime/biome-provenance.d.ts.map +1 -0
  126. package/dist/runtime/biome-provenance.js +70 -0
  127. package/dist/runtime/biome-provenance.js.map +1 -0
  128. package/dist/runtime/biome-publish.d.ts +14 -0
  129. package/dist/runtime/biome-publish.d.ts.map +1 -1
  130. package/dist/runtime/biome-publish.js +69 -5
  131. package/dist/runtime/biome-publish.js.map +1 -1
  132. package/dist/runtime/biome-scaffold.d.ts.map +1 -1
  133. package/dist/runtime/biome-scaffold.js +0 -2
  134. package/dist/runtime/biome-scaffold.js.map +1 -1
  135. package/dist/runtime/biome-validate.d.ts.map +1 -1
  136. package/dist/runtime/biome-validate.js +4 -2
  137. package/dist/runtime/biome-validate.js.map +1 -1
  138. package/dist/runtime/cleanup.d.ts +10 -0
  139. package/dist/runtime/cleanup.d.ts.map +1 -0
  140. package/dist/runtime/cleanup.js +35 -0
  141. package/dist/runtime/cleanup.js.map +1 -0
  142. package/dist/runtime/config/init-presets.d.ts.map +1 -1
  143. package/dist/runtime/config/init-presets.js +6 -3
  144. package/dist/runtime/config/init-presets.js.map +1 -1
  145. package/dist/runtime/distribution/available-biome.d.ts.map +1 -1
  146. package/dist/runtime/distribution/available-biome.js +2 -0
  147. package/dist/runtime/distribution/available-biome.js.map +1 -1
  148. package/dist/runtime/distribution/compose.d.ts +2 -1
  149. package/dist/runtime/distribution/compose.d.ts.map +1 -1
  150. package/dist/runtime/distribution/compose.js +1 -0
  151. package/dist/runtime/distribution/compose.js.map +1 -1
  152. package/dist/runtime/env-seeder.d.ts.map +1 -1
  153. package/dist/runtime/env-seeder.js +44 -13
  154. package/dist/runtime/env-seeder.js.map +1 -1
  155. package/dist/runtime/foreground.d.ts +6 -1
  156. package/dist/runtime/foreground.d.ts.map +1 -1
  157. package/dist/runtime/foreground.js +30 -7
  158. package/dist/runtime/foreground.js.map +1 -1
  159. package/dist/runtime/infra/infra-catalog.d.ts +33 -1
  160. package/dist/runtime/infra/infra-catalog.d.ts.map +1 -1
  161. package/dist/runtime/infra/infra-catalog.js +201 -10
  162. package/dist/runtime/infra/infra-catalog.js.map +1 -1
  163. package/dist/runtime/infra/infra-environment.d.ts +10 -0
  164. package/dist/runtime/infra/infra-environment.d.ts.map +1 -0
  165. package/dist/runtime/infra/infra-environment.js +76 -0
  166. package/dist/runtime/infra/infra-environment.js.map +1 -0
  167. package/dist/runtime/infra/infra-plan.d.ts +2 -1
  168. package/dist/runtime/infra/infra-plan.d.ts.map +1 -1
  169. package/dist/runtime/infra/infra-plan.js +10 -0
  170. package/dist/runtime/infra/infra-plan.js.map +1 -1
  171. package/dist/runtime/infra/infra-runner.d.ts +12 -2
  172. package/dist/runtime/infra/infra-runner.d.ts.map +1 -1
  173. package/dist/runtime/infra/infra-runner.js +194 -73
  174. package/dist/runtime/infra/infra-runner.js.map +1 -1
  175. package/dist/runtime/infra/keycloak-realm.d.ts +25 -0
  176. package/dist/runtime/infra/keycloak-realm.d.ts.map +1 -0
  177. package/dist/runtime/infra/keycloak-realm.js +116 -0
  178. package/dist/runtime/infra/keycloak-realm.js.map +1 -0
  179. package/dist/runtime/infra/postgres-endpoint.d.ts +8 -0
  180. package/dist/runtime/infra/postgres-endpoint.d.ts.map +1 -0
  181. package/dist/runtime/infra/postgres-endpoint.js +21 -0
  182. package/dist/runtime/infra/postgres-endpoint.js.map +1 -0
  183. package/dist/runtime/installation/compiler.d.ts +104 -27
  184. package/dist/runtime/installation/compiler.d.ts.map +1 -1
  185. package/dist/runtime/installation/compiler.js +361 -95
  186. package/dist/runtime/installation/compiler.js.map +1 -1
  187. package/dist/runtime/installation/contract.d.ts +234 -63
  188. package/dist/runtime/installation/contract.d.ts.map +1 -1
  189. package/dist/runtime/installation/contract.js +396 -74
  190. package/dist/runtime/installation/contract.js.map +1 -1
  191. package/dist/runtime/installation/current-launcher-renderer.d.ts +12 -0
  192. package/dist/runtime/installation/current-launcher-renderer.d.ts.map +1 -0
  193. package/dist/runtime/installation/current-launcher-renderer.js +123 -0
  194. package/dist/runtime/installation/current-launcher-renderer.js.map +1 -0
  195. package/dist/runtime/installation/diff.d.ts +15 -0
  196. package/dist/runtime/installation/diff.d.ts.map +1 -1
  197. package/dist/runtime/installation/diff.js +66 -29
  198. package/dist/runtime/installation/diff.js.map +1 -1
  199. package/dist/runtime/installation/format.js +4 -4
  200. package/dist/runtime/installation/format.js.map +1 -1
  201. package/dist/runtime/installation/from-current-config.d.ts +3 -2
  202. package/dist/runtime/installation/from-current-config.d.ts.map +1 -1
  203. package/dist/runtime/installation/from-current-config.js +214 -44
  204. package/dist/runtime/installation/from-current-config.js.map +1 -1
  205. package/dist/runtime/installation/helm-release-readiness.d.ts +9 -0
  206. package/dist/runtime/installation/helm-release-readiness.d.ts.map +1 -0
  207. package/dist/runtime/installation/helm-release-readiness.js +97 -0
  208. package/dist/runtime/installation/helm-release-readiness.js.map +1 -0
  209. package/dist/runtime/installation/helm-release.d.ts +24 -0
  210. package/dist/runtime/installation/helm-release.d.ts.map +1 -0
  211. package/dist/runtime/installation/helm-release.js +96 -0
  212. package/dist/runtime/installation/helm-release.js.map +1 -0
  213. package/dist/runtime/installation/index.d.ts +9 -0
  214. package/dist/runtime/installation/index.d.ts.map +1 -1
  215. package/dist/runtime/installation/index.js +9 -0
  216. package/dist/runtime/installation/index.js.map +1 -1
  217. package/dist/runtime/installation/json-schema.d.ts +4 -0
  218. package/dist/runtime/installation/json-schema.d.ts.map +1 -0
  219. package/dist/runtime/installation/json-schema.js +16 -0
  220. package/dist/runtime/installation/json-schema.js.map +1 -0
  221. package/dist/runtime/installation/kubernetes-readiness.d.ts +60 -0
  222. package/dist/runtime/installation/kubernetes-readiness.d.ts.map +1 -0
  223. package/dist/runtime/installation/kubernetes-readiness.js +384 -0
  224. package/dist/runtime/installation/kubernetes-readiness.js.map +1 -0
  225. package/dist/runtime/installation/lifecycle.d.ts +6 -4
  226. package/dist/runtime/installation/lifecycle.d.ts.map +1 -1
  227. package/dist/runtime/installation/lifecycle.js +94 -7
  228. package/dist/runtime/installation/lifecycle.js.map +1 -1
  229. package/dist/runtime/installation/readiness-proof.d.ts +72 -0
  230. package/dist/runtime/installation/readiness-proof.d.ts.map +1 -0
  231. package/dist/runtime/installation/readiness-proof.js +142 -0
  232. package/dist/runtime/installation/readiness-proof.js.map +1 -0
  233. package/dist/runtime/installation/readiness.d.ts +21 -0
  234. package/dist/runtime/installation/readiness.d.ts.map +1 -0
  235. package/dist/runtime/installation/readiness.js +418 -0
  236. package/dist/runtime/installation/readiness.js.map +1 -0
  237. package/dist/runtime/installation/setup-profile.d.ts +8 -0
  238. package/dist/runtime/installation/setup-profile.d.ts.map +1 -0
  239. package/dist/runtime/installation/setup-profile.js +41 -0
  240. package/dist/runtime/installation/setup-profile.js.map +1 -0
  241. package/dist/runtime/installation/setup-renderer.d.ts +31 -0
  242. package/dist/runtime/installation/setup-renderer.d.ts.map +1 -0
  243. package/dist/runtime/installation/setup-renderer.js +238 -0
  244. package/dist/runtime/installation/setup-renderer.js.map +1 -0
  245. package/dist/runtime/installation/state-store.d.ts +11 -3
  246. package/dist/runtime/installation/state-store.d.ts.map +1 -1
  247. package/dist/runtime/installation/state-store.js +157 -37
  248. package/dist/runtime/installation/state-store.js.map +1 -1
  249. package/dist/runtime/installation/status.d.ts +6 -12
  250. package/dist/runtime/installation/status.d.ts.map +1 -1
  251. package/dist/runtime/installation/status.js +28 -114
  252. package/dist/runtime/installation/status.js.map +1 -1
  253. package/dist/runtime/installation/support-bundle.d.ts.map +1 -1
  254. package/dist/runtime/installation/support-bundle.js +18 -3
  255. package/dist/runtime/installation/support-bundle.js.map +1 -1
  256. package/dist/runtime/installation/to-current-config.d.ts +4 -0
  257. package/dist/runtime/installation/to-current-config.d.ts.map +1 -0
  258. package/dist/runtime/installation/to-current-config.js +171 -0
  259. package/dist/runtime/installation/to-current-config.js.map +1 -0
  260. package/dist/runtime/installation/validation.d.ts.map +1 -1
  261. package/dist/runtime/installation/validation.js +78 -0
  262. package/dist/runtime/installation/validation.js.map +1 -1
  263. package/dist/runtime/installation/validators/common.d.ts.map +1 -1
  264. package/dist/runtime/installation/validators/common.js +7 -4
  265. package/dist/runtime/installation/validators/common.js.map +1 -1
  266. package/dist/runtime/installation/validators/infrastructure.d.ts.map +1 -1
  267. package/dist/runtime/installation/validators/infrastructure.js +20 -2
  268. package/dist/runtime/installation/validators/infrastructure.js.map +1 -1
  269. package/dist/runtime/installation/validators/operational.d.ts.map +1 -1
  270. package/dist/runtime/installation/validators/operational.js +44 -102
  271. package/dist/runtime/installation/validators/operational.js.map +1 -1
  272. package/dist/runtime/installation/validators/profile.d.ts.map +1 -1
  273. package/dist/runtime/installation/validators/profile.js +53 -51
  274. package/dist/runtime/installation/validators/profile.js.map +1 -1
  275. package/dist/runtime/installation/validators/secrets.d.ts.map +1 -1
  276. package/dist/runtime/installation/validators/secrets.js +44 -27
  277. package/dist/runtime/installation/validators/secrets.js.map +1 -1
  278. package/dist/runtime/launch.d.ts +10 -0
  279. package/dist/runtime/launch.d.ts.map +1 -1
  280. package/dist/runtime/launch.js +123 -18
  281. package/dist/runtime/launch.js.map +1 -1
  282. package/dist/runtime/license/license-clock.d.ts +12 -0
  283. package/dist/runtime/license/license-clock.d.ts.map +1 -0
  284. package/dist/runtime/license/license-clock.js +57 -0
  285. package/dist/runtime/license/license-clock.js.map +1 -0
  286. package/dist/runtime/license/license-report.d.ts +19 -0
  287. package/dist/runtime/license/license-report.d.ts.map +1 -0
  288. package/dist/runtime/license/license-report.js +105 -0
  289. package/dist/runtime/license/license-report.js.map +1 -0
  290. package/dist/runtime/license/license-store.d.ts +5 -0
  291. package/dist/runtime/license/license-store.d.ts.map +1 -0
  292. package/dist/runtime/license/license-store.js +11 -0
  293. package/dist/runtime/license/license-store.js.map +1 -0
  294. package/dist/runtime/license/registry-credential.d.ts +26 -0
  295. package/dist/runtime/license/registry-credential.d.ts.map +1 -0
  296. package/dist/runtime/license/registry-credential.js +94 -0
  297. package/dist/runtime/license/registry-credential.js.map +1 -0
  298. package/dist/runtime/license/resolve-license.d.ts +30 -0
  299. package/dist/runtime/license/resolve-license.d.ts.map +1 -0
  300. package/dist/runtime/license/resolve-license.js +73 -0
  301. package/dist/runtime/license/resolve-license.js.map +1 -0
  302. package/dist/runtime/license/store-license.d.ts +18 -0
  303. package/dist/runtime/license/store-license.d.ts.map +1 -0
  304. package/dist/runtime/license/store-license.js +26 -0
  305. package/dist/runtime/license/store-license.js.map +1 -0
  306. package/dist/runtime/lock-loader.d.ts +3 -6
  307. package/dist/runtime/lock-loader.d.ts.map +1 -1
  308. package/dist/runtime/lock-loader.js +26 -20
  309. package/dist/runtime/lock-loader.js.map +1 -1
  310. package/dist/runtime/native-process-group.d.ts +46 -0
  311. package/dist/runtime/native-process-group.d.ts.map +1 -0
  312. package/dist/runtime/native-process-group.js +390 -0
  313. package/dist/runtime/native-process-group.js.map +1 -0
  314. package/dist/runtime/paths.d.ts +1 -0
  315. package/dist/runtime/paths.d.ts.map +1 -1
  316. package/dist/runtime/paths.js +1 -0
  317. package/dist/runtime/paths.js.map +1 -1
  318. package/dist/runtime/roster.d.ts +4 -3
  319. package/dist/runtime/roster.d.ts.map +1 -1
  320. package/dist/runtime/roster.js +17 -5
  321. package/dist/runtime/roster.js.map +1 -1
  322. package/dist/runtime/run-manifest.d.ts +34 -5
  323. package/dist/runtime/run-manifest.d.ts.map +1 -1
  324. package/dist/runtime/run-manifest.js +434 -120
  325. package/dist/runtime/run-manifest.js.map +1 -1
  326. package/dist/runtime/runner/container-preflight.d.ts +77 -0
  327. package/dist/runtime/runner/container-preflight.d.ts.map +1 -0
  328. package/dist/runtime/runner/container-preflight.js +360 -0
  329. package/dist/runtime/runner/container-preflight.js.map +1 -0
  330. package/dist/runtime/runner/container-runner.d.ts +8 -0
  331. package/dist/runtime/runner/container-runner.d.ts.map +1 -1
  332. package/dist/runtime/runner/container-runner.js +93 -16
  333. package/dist/runtime/runner/container-runner.js.map +1 -1
  334. package/dist/runtime/runner/docker-cli.d.ts +30 -2
  335. package/dist/runtime/runner/docker-cli.d.ts.map +1 -1
  336. package/dist/runtime/runner/docker-cli.js +275 -11
  337. package/dist/runtime/runner/docker-cli.js.map +1 -1
  338. package/dist/runtime/runner/health-probe.d.ts +1 -0
  339. package/dist/runtime/runner/health-probe.d.ts.map +1 -1
  340. package/dist/runtime/runner/health-probe.js +3 -2
  341. package/dist/runtime/runner/health-probe.js.map +1 -1
  342. package/dist/runtime/runner/helm-cli.d.ts +19 -1
  343. package/dist/runtime/runner/helm-cli.d.ts.map +1 -1
  344. package/dist/runtime/runner/helm-cli.js +76 -8
  345. package/dist/runtime/runner/helm-cli.js.map +1 -1
  346. package/dist/runtime/runner/helm-runner.d.ts +3 -0
  347. package/dist/runtime/runner/helm-runner.d.ts.map +1 -1
  348. package/dist/runtime/runner/helm-runner.js +23 -7
  349. package/dist/runtime/runner/helm-runner.js.map +1 -1
  350. package/dist/runtime/runner/host-platform.d.ts +39 -0
  351. package/dist/runtime/runner/host-platform.d.ts.map +1 -0
  352. package/dist/runtime/runner/host-platform.js +136 -0
  353. package/dist/runtime/runner/host-platform.js.map +1 -0
  354. package/dist/runtime/runner/kube-cli.d.ts +23 -0
  355. package/dist/runtime/runner/kube-cli.d.ts.map +1 -0
  356. package/dist/runtime/runner/kube-cli.js +112 -0
  357. package/dist/runtime/runner/kube-cli.js.map +1 -0
  358. package/dist/runtime/runner/native-runner.d.ts.map +1 -1
  359. package/dist/runtime/runner/native-runner.js +27 -3
  360. package/dist/runtime/runner/native-runner.js.map +1 -1
  361. package/dist/runtime/runner/service-runner.d.ts +5 -0
  362. package/dist/runtime/runner/service-runner.d.ts.map +1 -1
  363. package/dist/runtime/runner/service-runner.js.map +1 -1
  364. package/dist/runtime/runner/stream-outcome.d.ts +7 -0
  365. package/dist/runtime/runner/stream-outcome.d.ts.map +1 -0
  366. package/dist/runtime/runner/stream-outcome.js +13 -0
  367. package/dist/runtime/runner/stream-outcome.js.map +1 -0
  368. package/dist/runtime/secrets/managed-local-cipher.d.ts +18 -0
  369. package/dist/runtime/secrets/managed-local-cipher.d.ts.map +1 -0
  370. package/dist/runtime/secrets/managed-local-cipher.js +110 -0
  371. package/dist/runtime/secrets/managed-local-cipher.js.map +1 -0
  372. package/dist/runtime/secrets/managed-local-files.d.ts +4 -0
  373. package/dist/runtime/secrets/managed-local-files.d.ts.map +1 -0
  374. package/dist/runtime/secrets/managed-local-files.js +132 -0
  375. package/dist/runtime/secrets/managed-local-files.js.map +1 -0
  376. package/dist/runtime/secrets/managed-local-key-provider.d.ts +27 -0
  377. package/dist/runtime/secrets/managed-local-key-provider.d.ts.map +1 -0
  378. package/dist/runtime/secrets/managed-local-key-provider.js +144 -0
  379. package/dist/runtime/secrets/managed-local-key-provider.js.map +1 -0
  380. package/dist/runtime/secrets/managed-local-secret-store.d.ts +18 -0
  381. package/dist/runtime/secrets/managed-local-secret-store.d.ts.map +1 -0
  382. package/dist/runtime/secrets/managed-local-secret-store.js +82 -0
  383. package/dist/runtime/secrets/managed-local-secret-store.js.map +1 -0
  384. package/dist/runtime/secrets/managed-local-store.d.ts +7 -0
  385. package/dist/runtime/secrets/managed-local-store.d.ts.map +1 -1
  386. package/dist/runtime/secrets/managed-local-store.js +46 -127
  387. package/dist/runtime/secrets/managed-local-store.js.map +1 -1
  388. package/dist/runtime/sources/credentials.d.ts +2 -0
  389. package/dist/runtime/sources/credentials.d.ts.map +1 -1
  390. package/dist/runtime/sources/credentials.js +49 -0
  391. package/dist/runtime/sources/credentials.js.map +1 -1
  392. package/dist/runtime/sources/kinds/distribution.js +3 -3
  393. package/dist/runtime/sources/kinds/distribution.js.map +1 -1
  394. package/dist/runtime/sources/manifest-walk.d.ts +1 -0
  395. package/dist/runtime/sources/manifest-walk.d.ts.map +1 -1
  396. package/dist/runtime/sources/manifest-walk.js +16 -11
  397. package/dist/runtime/sources/manifest-walk.js.map +1 -1
  398. package/dist/runtime/sources/schema.d.ts.map +1 -1
  399. package/dist/runtime/sources/schema.js +51 -3
  400. package/dist/runtime/sources/schema.js.map +1 -1
  401. package/dist/runtime/store-client.d.ts +1 -1
  402. package/dist/runtime/store-client.d.ts.map +1 -1
  403. package/dist/runtime/store-client.js +2 -1
  404. package/dist/runtime/store-client.js.map +1 -1
  405. package/dist/runtime/store-submit.d.ts +31 -0
  406. package/dist/runtime/store-submit.d.ts.map +1 -0
  407. package/dist/runtime/store-submit.js +77 -0
  408. package/dist/runtime/store-submit.js.map +1 -0
  409. package/dist/runtime/supervisor.d.ts +12 -0
  410. package/dist/runtime/supervisor.d.ts.map +1 -1
  411. package/dist/runtime/supervisor.js +141 -26
  412. package/dist/runtime/supervisor.js.map +1 -1
  413. package/package.json +20 -29
  414. package/LICENSE +0 -176
  415. package/dist/lib/command-registry.d.ts +0 -5
  416. package/dist/lib/command-registry.d.ts.map +0 -1
  417. package/dist/lib/command-registry.js +0 -17
  418. package/dist/lib/command-registry.js.map +0 -1
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.renderCurrentLauncherPlan = renderCurrentLauncherPlan;
4
+ const compiler_1 = require("./compiler");
5
+ const contract_1 = require("./contract");
6
+ const helm_release_1 = require("./helm-release");
7
+ const setup_renderer_1 = require("./setup-renderer");
8
+ const to_current_config_1 = require("./to-current-config");
9
+ const LAUNCHER_RENDERABLE_PROFILES = new Set([
10
+ contract_1.InstallationProfile.Developer,
11
+ contract_1.InstallationProfile.Starter,
12
+ contract_1.InstallationProfile.SingleNodeProduction,
13
+ ]);
14
+ function renderCurrentLauncherPlan(installation) {
15
+ assertCurrentLauncherCapability(installation);
16
+ const config = (0, to_current_config_1.launcherConfigFromInstallation)(installation);
17
+ const setup = (0, setup_renderer_1.renderInstallationSetup)(installation, {
18
+ providers: [
19
+ ...new Set(installation.spec.secrets.map((secret) => secret.provider)),
20
+ ].map((provider) => ({ provider, available: true })),
21
+ });
22
+ const helmRelease = rendersOnKubernetes(installation.spec.profile)
23
+ ? (0, helm_release_1.helmReleaseRendering)(installation)
24
+ : undefined;
25
+ return {
26
+ config,
27
+ artifacts: setup.artifacts,
28
+ renderedArtifacts: setup.renderedArtifacts,
29
+ ...(helmRelease === undefined ? {} : { helmRelease }),
30
+ };
31
+ }
32
+ function rendersOnKubernetes(profile) {
33
+ return ((0, compiler_1.installationProfileDefaults)(profile).target !==
34
+ contract_1.InstallationTargetKind.LocalMachine);
35
+ }
36
+ function assertCurrentLauncherCapability(installation) {
37
+ const spec = installation.spec;
38
+ if (!LAUNCHER_RENDERABLE_PROFILES.has(spec.profile)) {
39
+ unsupported(`profile ${spec.profile}; HA/regulated/hosted profiles require their dedicated installer renderer`);
40
+ }
41
+ const defaults = (0, compiler_1.installationProfileDefaults)(spec.profile);
42
+ const onKubernetes = rendersOnKubernetes(spec.profile);
43
+ if (spec.lifecycle.environment !== (0, compiler_1.profileLifecycleEnvironment)(spec.profile)) {
44
+ unsupported(`lifecycle environment ${spec.lifecycle.environment} on profile ${spec.profile}`);
45
+ }
46
+ if (spec.target.kind !== defaults.target ||
47
+ spec.target.region !== defaults.region ||
48
+ spec.target.zones.length !== 0) {
49
+ unsupported('non-default target placement');
50
+ }
51
+ if (spec.operator.kind !== defaults.operator) {
52
+ unsupported('custom operator authority');
53
+ }
54
+ if (!onKubernetes && spec.operator.namespace !== undefined) {
55
+ unsupported('an operator namespace on a local substrate');
56
+ }
57
+ if (spec.upgrade.channel !== contract_1.UpgradeChannel.Stable ||
58
+ spec.upgrade.releaseRef !== undefined) {
59
+ unsupported('upgrade policy override');
60
+ }
61
+ if (onKubernetes) {
62
+ assertKubernetesRenderable(spec);
63
+ return;
64
+ }
65
+ assertLocalRenderable(spec, defaults);
66
+ }
67
+ function assertKubernetesRenderable(spec) {
68
+ if (spec.storage.externalBinding !== undefined) {
69
+ unsupported('an external storage binding');
70
+ }
71
+ if (spec.security.residency !== undefined) {
72
+ unsupported('a data-residency policy');
73
+ }
74
+ }
75
+ function assertLocalRenderable(spec, defaults) {
76
+ if (spec.security.networkPolicy !== defaults.networkPolicy ||
77
+ spec.security.identity !== defaults.identity ||
78
+ spec.security.secretsBackend !== defaults.secretsBackend ||
79
+ spec.security.encryption !== defaults.encryption ||
80
+ spec.security.residency !== undefined) {
81
+ unsupported('a security-posture override');
82
+ }
83
+ if (spec.domains.length !== 0) {
84
+ unsupported('domain/TLS rendering');
85
+ }
86
+ if (spec.recovery.mode !== defaults.backupMode ||
87
+ spec.recovery.retentionDays !== defaults.backupRetentionDays ||
88
+ spec.recovery.rpoMinutes !== defaults.rpoMinutes ||
89
+ spec.recovery.rtoMinutes !== defaults.rtoMinutes ||
90
+ spec.recovery.restoreDrillIntervalDays !==
91
+ defaults.restoreDrillIntervalDays ||
92
+ spec.recovery.destinationSecretRef !== undefined) {
93
+ unsupported('a recovery policy override');
94
+ }
95
+ if (spec.observability.level !== defaults.observability ||
96
+ spec.observability.metrics !== defaults.metrics ||
97
+ spec.observability.tracing !== defaults.tracing ||
98
+ spec.observability.auditLog !== defaults.auditLog ||
99
+ spec.observability.retentionDays !== defaults.observabilityRetentionDays ||
100
+ spec.observability.exportSecretRef !== undefined) {
101
+ unsupported('an observability policy override');
102
+ }
103
+ if (spec.capacity.minReplicas !== defaults.minReplicas ||
104
+ spec.capacity.maxReplicas !== defaults.maxReplicas ||
105
+ spec.capacity.maxOrganizations !== defaults.maxOrganizations ||
106
+ spec.capacity.maxConcurrentSessions !== defaults.maxConcurrentSessions ||
107
+ spec.capacity.zones !== defaults.zones) {
108
+ unsupported('a capacity policy override');
109
+ }
110
+ if (spec.tenancy.mode !== defaults.tenancyMode ||
111
+ spec.tenancy.isolation !== defaults.isolation) {
112
+ unsupported('a tenancy policy override');
113
+ }
114
+ if (spec.storage.class !== defaults.storageClass ||
115
+ spec.storage.workspaceDriver !== defaults.workspaceDriver ||
116
+ spec.storage.externalBinding !== undefined) {
117
+ unsupported('a storage policy override');
118
+ }
119
+ }
120
+ function unsupported(detail) {
121
+ throw new Error(`The current launcher renderer cannot apply ${detail}. Plan with XemaInstallation, then use the renderer for that target.`);
122
+ }
123
+ //# sourceMappingURL=current-launcher-renderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-launcher-renderer.js","sourceRoot":"","sources":["../../../src/runtime/installation/current-launcher-renderer.ts"],"names":[],"mappings":";;AA8DA,8DAmBC;AAjFD,yCAKoB;AACpB,yCAIoB;AACpB,iDAAiF;AACjF,qDAG0B;AAC1B,2DAAqE;AAoCrE,MAAM,4BAA4B,GAAqC,IAAI,GAAG,CAAC;IAC7E,8BAAmB,CAAC,SAAS;IAC7B,8BAAmB,CAAC,OAAO;IAC3B,8BAAmB,CAAC,oBAAoB;CACzC,CAAC,CAAC;AAMH,SAAgB,yBAAyB,CACvC,YAAsC;IAEtC,+BAA+B,CAAC,YAAY,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAG,IAAA,kDAA8B,EAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,KAAK,GAAG,IAAA,wCAAuB,EAAC,YAAY,EAAE;QAClD,SAAS,EAAE;YACT,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;SACvE,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;KACrD,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAA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WAAW,KAAK,QAAQ,CAAC,WAAW;QAClD,IAAI,CAAC,QAAQ,CAAC,gBAAgB,KAAK,QAAQ,CAAC,gBAAgB;QAC5D,IAAI,CAAC,QAAQ,CAAC,qBAAqB,KAAK,QAAQ,CAAC,qBAAqB;QACtE,IAAI,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,EACtC,CAAC;QACD,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAC5C,CAAC;IACD,IACE,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,WAAW;QAC1C,IAAI,CAAC,OAAO,CAAC,SAAS,KAAK,QAAQ,CAAC,SAAS,EAC7C,CAAC;QACD,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAC3C,CAAC;IACD,IACE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,QAAQ,CAAC,YAAY;QAC5C,IAAI,CAAC,OAAO,CAAC,eAAe,KAAK,QAAQ,CAAC,eAAe;QACzD,IAAI,CAAC,OAAO,CAAC,eAAe,KAAK,SAAS,EAC1C,CAAC;QACD,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,MAAc;IACjC,MAAM,IAAI,KAAK,CACb,8CAA8C,MAAM,sEAAsE,CAC3H,CAAC;AACJ,CAAC"}
@@ -5,13 +5,28 @@ export declare enum InstallationChangeClass {
5
5
  Destructive = "destructive",
6
6
  Rejected = "rejected"
7
7
  }
8
+ export declare enum InstallationRenderObligation {
9
+ RuntimeReconfigure = "runtime-reconfigure",
10
+ WorkloadRollout = "workload-rollout",
11
+ InfrastructureReconcile = "infrastructure-reconcile",
12
+ DataAndRecoveryReconcile = "data-and-recovery-reconcile",
13
+ ReplaceInstallation = "replace-installation"
14
+ }
8
15
  export interface InstallationPlanChange {
9
16
  readonly path: string;
10
17
  readonly classification: InstallationChangeClass;
18
+ readonly renderObligation: InstallationRenderObligation;
11
19
  }
12
20
  export interface InstallationPlanDiff {
13
21
  readonly classification: InstallationChangeClass;
22
+ readonly renderObligations: readonly InstallationRenderObligation[];
14
23
  readonly changes: readonly InstallationPlanChange[];
15
24
  }
25
+ export interface InstallationRenderAcknowledgement {
26
+ readonly obligation: InstallationRenderObligation;
27
+ readonly rendererId: string;
28
+ readonly effectivePlanHash: string;
29
+ readonly artifactDigest: string;
30
+ }
16
31
  export declare function diffInstallationPlans(current: CompiledXemaInstallation, desired: CompiledXemaInstallation): InstallationPlanDiff;
17
32
  //# sourceMappingURL=diff.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/diff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,oBAAY,uBAAuB;IACjC,WAAW,kBAAkB;IAC7B,eAAe,qBAAqB;IACpC,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;CAClD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACrD;AASD,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,wBAAwB,GAChC,oBAAoB,CAkBtB"}
1
+ {"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/diff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,oBAAY,uBAAuB;IACjC,WAAW,kBAAkB;IAC7B,eAAe,qBAAqB;IACpC,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED,oBAAY,4BAA4B;IACtC,kBAAkB,wBAAwB;IAC1C,eAAe,qBAAqB;IACpC,uBAAuB,6BAA6B;IACpD,wBAAwB,gCAAgC;IACxD,mBAAmB,yBAAyB;CAC7C;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,gBAAgB,EAAE,4BAA4B,CAAC;CACzD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,iBAAiB,EAAE,SAAS,4BAA4B,EAAE,CAAC;IACpE,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACrD;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;IAClD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AASD,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,wBAAwB,GAChC,oBAAoB,CAwBtB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstallationChangeClass = void 0;
3
+ exports.InstallationRenderObligation = exports.InstallationChangeClass = void 0;
4
4
  exports.diffInstallationPlans = diffInstallationPlans;
5
5
  const serialization_1 = require("./serialization");
6
6
  var InstallationChangeClass;
@@ -10,6 +10,14 @@ var InstallationChangeClass;
10
10
  InstallationChangeClass["Destructive"] = "destructive";
11
11
  InstallationChangeClass["Rejected"] = "rejected";
12
12
  })(InstallationChangeClass || (exports.InstallationChangeClass = InstallationChangeClass = {}));
13
+ var InstallationRenderObligation;
14
+ (function (InstallationRenderObligation) {
15
+ InstallationRenderObligation["RuntimeReconfigure"] = "runtime-reconfigure";
16
+ InstallationRenderObligation["WorkloadRollout"] = "workload-rollout";
17
+ InstallationRenderObligation["InfrastructureReconcile"] = "infrastructure-reconcile";
18
+ InstallationRenderObligation["DataAndRecoveryReconcile"] = "data-and-recovery-reconcile";
19
+ InstallationRenderObligation["ReplaceInstallation"] = "replace-installation";
20
+ })(InstallationRenderObligation || (exports.InstallationRenderObligation = InstallationRenderObligation = {}));
13
21
  const CLASS_RANK = {
14
22
  [InstallationChangeClass.SafeInPlace]: 0,
15
23
  [InstallationChangeClass.RequiresRollout]: 1,
@@ -17,19 +25,29 @@ const CLASS_RANK = {
17
25
  [InstallationChangeClass.Rejected]: 3,
18
26
  };
19
27
  function diffInstallationPlans(current, desired) {
20
- const paths = changedPaths(withoutHash(current), withoutHash(desired));
28
+ const paths = changedPaths(effectiveView(current), effectiveView(desired));
21
29
  const changes = paths.map((path) => ({
22
30
  path,
23
- classification: classifyChange(path, valueAtPath(current, path), valueAtPath(desired, path)),
31
+ ...classifyChange(path, valueAtPath(current, path), valueAtPath(desired, path)),
24
32
  }));
25
- const classification = changes.reduce((highest, change) => CLASS_RANK[change.classification] > CLASS_RANK[highest]
26
- ? change.classification
33
+ const classification = changes.reduce((highest, candidate) => CLASS_RANK[candidate.classification] > CLASS_RANK[highest]
34
+ ? candidate.classification
27
35
  : highest, InstallationChangeClass.SafeInPlace);
28
- return { classification, changes };
36
+ return {
37
+ classification,
38
+ renderObligations: [
39
+ ...new Set(changes.map((candidate) => candidate.renderObligation)),
40
+ ].sort(),
41
+ changes,
42
+ };
29
43
  }
30
- function withoutHash(plan) {
31
- const { planHash: _planHash, ...payload } = plan;
32
- return payload;
44
+ function effectiveView(plan) {
45
+ return {
46
+ apiVersion: plan.apiVersion,
47
+ kind: plan.kind,
48
+ metadata: plan.metadata,
49
+ spec: plan.spec,
50
+ };
33
51
  }
34
52
  function changedPaths(current, desired, path = '') {
35
53
  if (current === undefined || desired === undefined) {
@@ -54,32 +72,51 @@ function changedPaths(current, desired, path = '') {
54
72
  .flatMap((key) => changedPaths(left[key], right[key], path.length === 0 ? key : `${path}.${key}`));
55
73
  }
56
74
  function classifyChange(path, current, desired) {
57
- if (path === 'installationId' || path === 'schemaVersion') {
58
- return InstallationChangeClass.Rejected;
75
+ if (path === 'apiVersion' ||
76
+ path === 'kind' ||
77
+ path.startsWith('metadata.')) {
78
+ return change(InstallationChangeClass.Rejected, InstallationRenderObligation.ReplaceInstallation);
59
79
  }
60
- if (path === 'infrastructure' ||
61
- path.startsWith('tenancy.') ||
62
- path === 'storage.class' ||
63
- path === 'storage.externalBinding' ||
64
- path === 'storage.workspaceDriver' ||
65
- path.startsWith('storage.backup.') ||
66
- path === 'deployment.profile' ||
67
- path === 'deployment.substrate' ||
68
- path === 'deployment.regions') {
69
- return InstallationChangeClass.Destructive;
80
+ if (path === 'spec.profile' ||
81
+ path.startsWith('spec.target.') ||
82
+ path.startsWith('spec.operator.') ||
83
+ path === 'spec.infrastructure' ||
84
+ path.startsWith('spec.tenancy.') ||
85
+ path.startsWith('spec.security.')) {
86
+ return change(InstallationChangeClass.Destructive, InstallationRenderObligation.InfrastructureReconcile);
70
87
  }
71
- if (path === 'capacity.maxOrganizations' ||
72
- path === 'capacity.maxConcurrentSessions') {
73
- return numericIncrease(current, desired)
74
- ? InstallationChangeClass.SafeInPlace
75
- : InstallationChangeClass.Destructive;
88
+ if (path.startsWith('spec.storage.') || path.startsWith('spec.recovery.')) {
89
+ return change(InstallationChangeClass.Destructive, InstallationRenderObligation.DataAndRecoveryReconcile);
76
90
  }
77
- if (path === 'capacity.maxReplicas') {
91
+ if (path === 'spec.capacity.maxOrganizations' ||
92
+ path === 'spec.capacity.maxConcurrentSessions') {
78
93
  return numericIncrease(current, desired)
94
+ ? change(InstallationChangeClass.SafeInPlace, InstallationRenderObligation.RuntimeReconfigure)
95
+ : change(InstallationChangeClass.Destructive, InstallationRenderObligation.InfrastructureReconcile);
96
+ }
97
+ if (path === 'spec.capacity.maxReplicas' ||
98
+ path === 'spec.capacity.minReplicas' ||
99
+ path === 'spec.capacity.zones') {
100
+ return change(numericIncrease(current, desired)
79
101
  ? InstallationChangeClass.SafeInPlace
80
- : InstallationChangeClass.RequiresRollout;
102
+ : InstallationChangeClass.RequiresRollout, InstallationRenderObligation.InfrastructureReconcile);
81
103
  }
82
- return InstallationChangeClass.RequiresRollout;
104
+ if (path.startsWith('spec.lifecycle.')) {
105
+ return change(InstallationChangeClass.RequiresRollout, InstallationRenderObligation.InfrastructureReconcile);
106
+ }
107
+ if (path.startsWith('spec.distribution.') ||
108
+ path.startsWith('spec.features.') ||
109
+ path === 'spec.secrets' ||
110
+ path === 'spec.domains' ||
111
+ path.startsWith('spec.observability.') ||
112
+ path === 'spec.sources' ||
113
+ path.startsWith('spec.upgrade.')) {
114
+ return change(InstallationChangeClass.RequiresRollout, InstallationRenderObligation.WorkloadRollout);
115
+ }
116
+ throw new Error(`Unclassified material installation field: ${path}`);
117
+ }
118
+ function change(classification, renderObligation) {
119
+ return { classification, renderObligation };
83
120
  }
84
121
  function numericIncrease(current, desired) {
85
122
  return (typeof current === 'number' &&
@@ -1 +1 @@
1
- {"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../src/runtime/installation/diff.ts"],"names":[],"mappings":";;;AA4BA,sDAqBC;AAjDD,mDAAwD;AAIxD,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,wDAA6B,CAAA;IAC7B,+DAAoC,CAAA;IACpC,sDAA2B,CAAA;IAC3B,gDAAqB,CAAA;AACvB,CAAC,EALW,uBAAuB,uCAAvB,uBAAuB,QAKlC;AAYD,MAAM,UAAU,GAAsD;IACpE,CAAC,uBAAuB,CAAC,WAAW,CAAC,EAAE,CAAC;IACxC,CAAC,uBAAuB,CAAC,eAAe,CAAC,EAAE,CAAC;IAC5C,CAAC,uBAAuB,CAAC,WAAW,CAAC,EAAE,CAAC;IACxC,CAAC,uBAAuB,CAAC,QAAQ,CAAC,EAAE,CAAC;CACtC,CAAC;AAE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O,KAAK,QAAQ;QAC3B,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,IAAI,OAAO,CACnB,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAc,EAAE,IAAY;IAC/C,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACtC,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAClD,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,GAAI,MAA4C,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -6,12 +6,12 @@ function formatInstallationPlan(plan) {
6
6
  const changes = plan.diff.changes.length === 0
7
7
  ? ' = no changes'
8
8
  : plan.diff.changes
9
- .map((change) => ` ${change.classification.padEnd(17, ' ')} ${change.path}`)
9
+ .map((change) => ` ${change.classification.padEnd(17, ' ')} ${change.renderObligation.padEnd(27, ' ')} ${change.path}`)
10
10
  .join('\n');
11
11
  return [
12
- `Installation: ${plan.desired.installationId}`,
13
- `Plan hash : ${plan.desired.planHash}`,
14
- `Applied hash: ${plan.applied?.planHash ?? '<none>'}`,
12
+ `Installation: ${plan.desired.metadata.name}`,
13
+ `Effective hash: ${plan.desired.effectivePlanHash}`,
14
+ `Applied hash : ${plan.applied?.effectivePlanHash ?? '<none>'}`,
15
15
  `Change class: ${plan.diff.classification}`,
16
16
  'Changes:',
17
17
  changes,
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/runtime/installation/format.ts"],"names":[],"mappings":";;AAIA,wDAoBC;AAxBD,qDAAsD;AAItD,SAAgB,sBAAsB,CAAC,IAA4B;IACjE,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;QAC5B,CAAC,CAAC,gBAAg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I,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;QAC7C,mBAAmB,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE;QACnD,mBAAmB,IAAI,CAAC,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE;QAChE,iBAAiB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;QAC3C,UAAU;QACV,OAAO;QACP,qBAAqB;QACrB,IAAI,CAAC,SAAS,CAAC,IAAA,mCAAkB,EAAC,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -1,8 +1,9 @@
1
- import { InstallationDeploymentProfile, type XemaInstallation } from './contract';
1
+ import { InstallationProfile, type LifecycleEnvironment, type XemaInstallation } from './contract';
2
2
  import { type XemaConfig } from '../config/schema';
3
3
  export interface CurrentConfigInstallationContext {
4
4
  readonly installationId: string;
5
- readonly profile?: InstallationDeploymentProfile;
5
+ readonly profile?: InstallationProfile;
6
+ readonly environment?: LifecycleEnvironment;
6
7
  }
7
8
  export declare function installationFromCurrentConfig(config: XemaConfig, context: CurrentConfigInstallationContext): XemaInstallation;
8
9
  //# sourceMappingURL=from-current-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"from-current-config.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/from-current-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,6BAA6B,EAE7B,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,6BAA6B,CAAC;CAClD;AAOD,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,gCAAgC,GACxC,gBAAgB,CAqClB"}
1
+ {"version":3,"file":"from-current-config.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/from-current-config.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,mBAAmB,EAMnB,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAI1B,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAC;CAC7C;AAOD,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,gCAAgC,GACxC,gBAAgB,CAoFlB"}