@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
@@ -1,75 +1,245 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.installationFromCurrentConfig = installationFromCurrentConfig;
4
+ const compiler_1 = require("./compiler");
4
5
  const contract_1 = require("./contract");
5
6
  const serialization_1 = require("./serialization");
6
7
  const schema_1 = require("../config/schema");
7
8
  const infra_catalog_1 = require("../infra/infra-catalog");
9
+ const schema_2 = require("../sources/schema");
8
10
  function installationFromCurrentConfig(config, context) {
9
11
  const profile = context.profile ?? profileForSubstrate(config.app.substrate);
12
+ const sourceSecretNames = allocateSourceSecretNames(config);
13
+ const sourceSecrets = sourceSecretReferences(config.sources, sourceSecretNames);
14
+ const declaredSecrets = Object.entries(config.secrets).map(([name, secret]) => currentSecretBinding(name, secret.from, secret.env, secret.path));
10
15
  return {
11
- schemaVersion: 1,
12
- installationId: context.installationId,
13
- sourceConfigHash: (0, serialization_1.hashInstallation)(config),
14
- distribution: {
15
- kind: contract_1.DistributionReferenceKind.Edition,
16
- edition: config.edition,
17
- },
18
- deployment: {
16
+ apiVersion: contract_1.XEMA_INSTALLATION_API_VERSION,
17
+ kind: contract_1.XEMA_INSTALLATION_KIND,
18
+ metadata: { name: context.installationId },
19
+ provenance: { sourceConfigHash: (0, serialization_1.hashInstallation)(config) },
20
+ spec: {
19
21
  profile,
20
- substrate: installationSubstrate(config.app.substrate),
21
- },
22
- infrastructure: infra_catalog_1.INFRA_COMPONENTS.map((component) => {
23
- const current = config.infra[component] ?? { mode: schema_1.InfraMode.Managed };
24
- return {
25
- component,
26
- ownership: current.mode,
27
- ...(current.url === undefined ? {} : { endpoint: current.url }),
28
- ...(current.secretRef === undefined
22
+ lifecycle: {
23
+ environment: context.environment ?? (0, compiler_1.profileLifecycleEnvironment)(profile),
24
+ },
25
+ distribution: {
26
+ kind: contract_1.DistributionReferenceKind.Edition,
27
+ edition: config.edition,
28
+ },
29
+ target: {
30
+ kind: targetForProfile(profile),
31
+ },
32
+ operator: {
33
+ kind: profile === contract_1.InstallationProfile.Developer
34
+ ? contract_1.InstallationOperatorKind.Developer
35
+ : profile === contract_1.InstallationProfile.HostedCell
36
+ ? contract_1.InstallationOperatorKind.Platform
37
+ : contract_1.InstallationOperatorKind.Organization,
38
+ },
39
+ features: {
40
+ ...featureSelection(config.app.include),
41
+ exclude: config.app.exclude,
42
+ enabled: config.app.features,
43
+ web: config.app.web.enabled,
44
+ },
45
+ infrastructure: infra_catalog_1.INFRA_COMPONENTS.map((component) => {
46
+ const current = config.infra[component] ?? {
47
+ mode: schema_1.InfraMode.Managed,
48
+ };
49
+ return {
50
+ component,
51
+ ownership: current.mode,
52
+ ...(current.url === undefined ? {} : { endpoint: current.url }),
53
+ ...(current.secretRef === undefined
54
+ ? {}
55
+ : { secretRefs: [current.secretRef] }),
56
+ ...(current.realm === undefined ? {} : { realm: current.realm }),
57
+ ...(current.bucketPrefix === undefined
58
+ ? {}
59
+ : { bucketPrefix: current.bucketPrefix }),
60
+ ...(current.persist?.path === undefined
61
+ ? {}
62
+ : { persistencePath: current.persist.path }),
63
+ };
64
+ }),
65
+ secrets: [...declaredSecrets, ...sourceSecrets],
66
+ security: {
67
+ managedModelAccess: config.policy?.allowedTiers ?? schema_1.LaunchAllowedTiers.Byok,
68
+ },
69
+ storage: {
70
+ ...(config.state.workspaces.driver === undefined
29
71
  ? {}
30
- : { secretRefs: [current.secretRef] }),
31
- };
32
- }),
33
- secrets: Object.entries(config.secrets).map(([name, secret]) => ({
34
- name,
35
- provider: contract_1.CURRENT_SECRET_SOURCE_PROVIDER[secret.from],
36
- ...secretLocator(name, secret.from, secret.env, secret.path),
37
- })),
38
- storage: {
39
- ...(config.state.workspaces.driver === undefined
40
- ? {}
41
- : { workspaceDriver: config.state.workspaces.driver }),
72
+ : { workspaceDriver: config.state.workspaces.driver }),
73
+ ...(config.state.workspaces.path === undefined
74
+ ? {}
75
+ : { workspaceRoot: config.state.workspaces.path }),
76
+ ...(config.state.biomeMaterialization.path === undefined
77
+ ? {}
78
+ : {
79
+ materializationRoot: config.state.biomeMaterialization.path,
80
+ }),
81
+ },
82
+ sources: config.sources.map((source) => toInstallationSource(source, sourceSecretNames)),
42
83
  },
43
84
  };
44
85
  }
45
86
  function profileForSubstrate(substrate) {
46
87
  switch (substrate) {
47
88
  case schema_1.Substrate.Native:
48
- return contract_1.InstallationDeploymentProfile.Developer;
89
+ return contract_1.InstallationProfile.Developer;
49
90
  case schema_1.Substrate.Container:
50
- return contract_1.InstallationDeploymentProfile.StarterPme;
91
+ return contract_1.InstallationProfile.Starter;
51
92
  case schema_1.Substrate.Helm:
52
- return contract_1.InstallationDeploymentProfile.HighAvailability;
93
+ return contract_1.InstallationProfile.SingleNodeProduction;
53
94
  }
54
95
  }
55
- function installationSubstrate(substrate) {
56
- switch (substrate) {
57
- case schema_1.Substrate.Native:
58
- return contract_1.InstallationSubstrate.Local;
59
- case schema_1.Substrate.Container:
60
- return contract_1.InstallationSubstrate.SingleNode;
61
- case schema_1.Substrate.Helm:
62
- return contract_1.InstallationSubstrate.Cluster;
96
+ function targetForProfile(profile) {
97
+ switch (profile) {
98
+ case contract_1.InstallationProfile.Developer:
99
+ case contract_1.InstallationProfile.Starter:
100
+ return contract_1.InstallationTargetKind.LocalMachine;
101
+ case contract_1.InstallationProfile.SingleNodeProduction:
102
+ return contract_1.InstallationTargetKind.SingleNodeKubernetes;
103
+ case contract_1.InstallationProfile.BusinessHa:
104
+ case contract_1.InstallationProfile.EnterpriseRegulated:
105
+ return contract_1.InstallationTargetKind.CustomerKubernetes;
106
+ case contract_1.InstallationProfile.HostedCell:
107
+ return contract_1.InstallationTargetKind.HostedCell;
63
108
  }
64
109
  }
65
- function secretLocator(name, source, env, path) {
110
+ function featureSelection(include) {
111
+ if (Array.isArray(include)) {
112
+ return {
113
+ selection: contract_1.FeatureSelectionMode.Explicit,
114
+ include: [...include],
115
+ };
116
+ }
117
+ switch (include) {
118
+ case 'minimal':
119
+ return { selection: contract_1.FeatureSelectionMode.Minimal, include: [] };
120
+ case 'default':
121
+ return { selection: contract_1.FeatureSelectionMode.Default, include: [] };
122
+ case 'all':
123
+ return { selection: contract_1.FeatureSelectionMode.All, include: [] };
124
+ }
125
+ }
126
+ function currentSecretBinding(name, source, env, path) {
66
127
  switch (source) {
67
128
  case schema_1.SecretSource.Env:
68
- return { locator: env ?? name };
129
+ return {
130
+ name,
131
+ provider: contract_1.SecretReferenceProvider.Environment,
132
+ workflow: contract_1.DeveloperSecretWorkflow.Interactive,
133
+ variable: env ?? name,
134
+ };
69
135
  case schema_1.SecretSource.File:
70
- return path === undefined ? {} : { locator: path };
136
+ if (path === undefined) {
137
+ throw new Error(`File secret "${name}" requires a path.`);
138
+ }
139
+ return {
140
+ name,
141
+ provider: contract_1.SecretReferenceProvider.File,
142
+ workflow: contract_1.DeveloperSecretWorkflow.Interactive,
143
+ path,
144
+ };
71
145
  case schema_1.SecretSource.Prompt:
72
- return {};
146
+ return {
147
+ name,
148
+ provider: contract_1.SecretReferenceProvider.Prompt,
149
+ workflow: contract_1.DeveloperSecretWorkflow.Interactive,
150
+ promptId: name,
151
+ };
152
+ }
153
+ }
154
+ function sourceSecretReferences(sources, names) {
155
+ return sources.flatMap((source) => {
156
+ if (!('authTokenEnv' in source) || source.authTokenEnv === undefined) {
157
+ return [];
158
+ }
159
+ return [
160
+ {
161
+ name: requiredSourceSecretName(source, names),
162
+ provider: contract_1.SecretReferenceProvider.Environment,
163
+ workflow: contract_1.DeveloperSecretWorkflow.Interactive,
164
+ variable: source.authTokenEnv,
165
+ },
166
+ ];
167
+ });
168
+ }
169
+ function toInstallationSource(source, names) {
170
+ const authSecretRef = 'authTokenEnv' in source && source.authTokenEnv !== undefined
171
+ ? requiredSourceSecretName(source, names)
172
+ : undefined;
173
+ switch (source.kind) {
174
+ case schema_2.SourceKind.Workspace:
175
+ return {
176
+ name: source.name,
177
+ kind: contract_1.SourceBindingKind.Workspace,
178
+ ...(source.root === undefined ? {} : { root: source.root }),
179
+ };
180
+ case schema_2.SourceKind.Distribution:
181
+ return {
182
+ name: source.name,
183
+ kind: contract_1.SourceBindingKind.Distribution,
184
+ edition: source.edition,
185
+ ...(source.ref === undefined ? {} : { ref: source.ref }),
186
+ };
187
+ case schema_2.SourceKind.Npm:
188
+ return {
189
+ name: source.name,
190
+ kind: contract_1.SourceBindingKind.Npm,
191
+ ...(source.registryUrl === undefined
192
+ ? {}
193
+ : { registryUrl: source.registryUrl }),
194
+ ...(source.scope === undefined ? {} : { scope: source.scope }),
195
+ ...(authSecretRef === undefined ? {} : { authSecretRef }),
196
+ };
197
+ case schema_2.SourceKind.Oci:
198
+ return {
199
+ name: source.name,
200
+ kind: contract_1.SourceBindingKind.Oci,
201
+ registry: source.registry,
202
+ ...(authSecretRef === undefined ? {} : { authSecretRef }),
203
+ };
204
+ case schema_2.SourceKind.Git:
205
+ return {
206
+ name: source.name,
207
+ kind: contract_1.SourceBindingKind.Git,
208
+ url: source.url,
209
+ ...(source.ref === undefined ? {} : { ref: source.ref }),
210
+ ...(authSecretRef === undefined ? {} : { authSecretRef }),
211
+ };
212
+ }
213
+ }
214
+ function allocateSourceSecretNames(config) {
215
+ const allocated = new Set(Object.keys(config.secrets));
216
+ const names = new Map();
217
+ for (const source of config.sources) {
218
+ if (!('authTokenEnv' in source) || source.authTokenEnv === undefined) {
219
+ continue;
220
+ }
221
+ for (let nonce = 0;; nonce += 1) {
222
+ const digest = (0, serialization_1.hashInstallation)({
223
+ source: source.name,
224
+ kind: source.kind,
225
+ variable: source.authTokenEnv,
226
+ nonce,
227
+ });
228
+ const candidate = `xema-source-auth-${digest}`;
229
+ if (!allocated.has(candidate)) {
230
+ allocated.add(candidate);
231
+ names.set(source, candidate);
232
+ break;
233
+ }
234
+ }
235
+ }
236
+ return names;
237
+ }
238
+ function requiredSourceSecretName(source, names) {
239
+ const name = names.get(source);
240
+ if (name === undefined) {
241
+ throw new Error(`Internal source-secret allocation is missing for source "${source.name}".`);
73
242
  }
243
+ return name;
74
244
  }
75
245
  //# sourceMappingURL=from-current-config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"from-current-config.js","sourceRoot":"","sources":["../../../src/runtime/installation/from-current-config.ts"],"names":[],"mappings":";;AA0BA,sEAwCC;AAlED,yCAMoB;AACpB,mDAAmD;AACnD,6CAK0B;AAC1B,0DAA0D;AAY1D,SAAgB,6BAA6B,CAC3C,MAAkB,EAClB,OAAyC;IAEzC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAE7E,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,cAAc,EAAE,OAAO,CAAC,c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,YAAY,KAAK,SAAS,EAAE,CAAC;YACrE,SAAS;QACX,CAAC;QACD,KAAK,IAAI,KAAK,GAAG,CAAC,GAAI,KAAK,IAAI,CAAC,EAAE,CAAC;YACjC,MAAM,MAAM,GAAG,IAAA,gCAAgB,EAAC;gBAC9B,MAAM,EAAE,MAAM,CAAC,IAAI;gBACnB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,QAAQ,EAAE,MAAM,CAAC,YAAY;gBAC7B,KAAK;aACN,CAAC,CAAC;YACH,MAAM,SAAS,GAAG,oBAAoB,MAAM,EAAE,CAAC;YAC/C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC9B,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;gBACzB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;gBAC7B,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,wBAAwB,CAC/B,MAAkB,EAClB,KAAsC;IAEtC,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,4DAA4D,MAAM,CAAC,IAAI,IAAI,CAC5E,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type InstallationReadinessExpectation, type InstallationReadinessObserver, type InstallationReadinessProof } from './readiness-proof';
2
+ import { HelmCli } from '../runner/helm-cli';
3
+ export declare class HelmReleaseReadinessObserver implements InstallationReadinessObserver {
4
+ private readonly helmFor;
5
+ constructor(helmFor?: (namespace: string) => HelmCli);
6
+ observe(expectation: InstallationReadinessExpectation): Promise<InstallationReadinessProof>;
7
+ private collectOwnedReleases;
8
+ }
9
+ //# sourceMappingURL=helm-release-readiness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helm-release-readiness.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/helm-release-readiness.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,KAAK,gCAAgC,EAErC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAEhC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,OAAO,EAAqB,MAAM,oBAAoB,CAAC;AAwBhE,qBAAa,4BACX,YAAW,6BAA6B;IAGtC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,GAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OACrB;IAGjB,OAAO,CAClB,WAAW,EAAE,gCAAgC,GAC5C,OAAO,CAAC,0BAA0B,CAAC;YAmGxB,oBAAoB;CAUnC"}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HelmReleaseReadinessObserver = void 0;
4
+ const helm_release_1 = require("./helm-release");
5
+ const readiness_proof_1 = require("./readiness-proof");
6
+ const schema_1 = require("../config/schema");
7
+ const helm_cli_1 = require("../runner/helm-cli");
8
+ class HelmReleaseReadinessObserver {
9
+ helmFor;
10
+ constructor(helmFor = (namespace) => new helm_cli_1.HelmCli({ namespace })) {
11
+ this.helmFor = helmFor;
12
+ }
13
+ async observe(expectation) {
14
+ if (expectation.substrate !== schema_1.Substrate.Helm) {
15
+ throw new Error(`HelmReleaseReadinessObserver cannot observe the ${expectation.substrate} substrate.`);
16
+ }
17
+ if (expectation.namespace === undefined) {
18
+ throw new Error('Helm readiness observation requires the exact namespace the releases were installed into.');
19
+ }
20
+ const helm = this.helmFor(expectation.namespace);
21
+ if (!(await helm.available())) {
22
+ return (0, readiness_proof_1.unavailableProof)(expectation, 'The helm binary is not reachable.', 'Install helm (and point KUBECONFIG at the target cluster), then run `xema installation status` again.');
23
+ }
24
+ let owned;
25
+ try {
26
+ owned = await this.collectOwnedReleases(helm, expectation);
27
+ }
28
+ catch (error) {
29
+ return (0, readiness_proof_1.unavailableProof)(expectation, `Helm readiness observation failed: ${error instanceof Error ? error.message : String(error)}`, 'Restore access to the cluster and retry; no applied state was committed.');
30
+ }
31
+ const consumed = new Set();
32
+ const workloads = [];
33
+ const issues = [];
34
+ for (const expected of expectation.workloads) {
35
+ const release = owned.get(expected.name);
36
+ if (release === undefined) {
37
+ issues.push((0, readiness_proof_1.missingWorkload)(expected.name));
38
+ continue;
39
+ }
40
+ consumed.add(expected.name);
41
+ const deployed = release.status === helm_cli_1.HelmReleaseStatus.Deployed;
42
+ const planMatches = release.planHash === expectation.effectivePlanHash;
43
+ const executionMatches = expectation.executionId === undefined ||
44
+ release.executionId === expectation.executionId;
45
+ workloads.push({
46
+ name: expected.name,
47
+ state: deployed && planMatches && executionMatches ? 'ready' : 'unhealthy',
48
+ expected: true,
49
+ checks: {
50
+ releaseStatus: release.status,
51
+ revision: release.revision,
52
+ installationId: release.installationId ?? 'missing',
53
+ planHash: release.planHash ?? 'missing',
54
+ planMatches,
55
+ executionId: release.executionId ?? 'missing',
56
+ executionMatches,
57
+ namespace: expectation.namespace,
58
+ },
59
+ });
60
+ if (!deployed) {
61
+ issues.push({
62
+ code: readiness_proof_1.InstallationReadinessIssueCode.ServiceNotReady,
63
+ workload: expected.name,
64
+ message: `Helm release ${expected.name} is ${release.status}, not deployed.`,
65
+ remediation: 'Inspect `helm status` and the workload events for that release, then re-run apply.',
66
+ });
67
+ }
68
+ if (!planMatches) {
69
+ issues.push((0, readiness_proof_1.planIdentityMismatch)(expected.name));
70
+ }
71
+ if (!executionMatches) {
72
+ issues.push((0, readiness_proof_1.executionIdentityMismatch)(expected.name));
73
+ }
74
+ }
75
+ for (const [name] of owned) {
76
+ if (!consumed.has(name)) {
77
+ workloads.push({
78
+ name,
79
+ state: 'unexpected',
80
+ expected: false,
81
+ checks: {
82
+ releaseStatus: owned.get(name)?.status ?? 'missing',
83
+ namespace: expectation.namespace,
84
+ },
85
+ });
86
+ issues.push((0, readiness_proof_1.unexpectedWorkload)(name));
87
+ }
88
+ }
89
+ return (0, readiness_proof_1.buildReadinessProof)(expectation, workloads, issues);
90
+ }
91
+ async collectOwnedReleases(helm, expectation) {
92
+ const { owned } = await (0, helm_release_1.partitionHelmReleasesByOwner)(helm, expectation.installationId);
93
+ return new Map(owned.map((release) => [release.name, release]));
94
+ }
95
+ }
96
+ exports.HelmReleaseReadinessObserver = HelmReleaseReadinessObserver;
97
+ //# sourceMappingURL=helm-release-readiness.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helm-release-readiness.js","sourceRoot":"","sources":["../../../src/runtime/installation/helm-release-readiness.ts"],"names":[],"mappings":";;;AAAA,iDAGwB;AACxB,uDAa2B;AAC3B,6CAA6C;AAC7C,iDAAgE;AAwBhE,MAAa,4BAA4B;IAIpB;IADnB,YACmB,UAA0C,CAAC,SAAS,EAAE,EAAE,CACvE,IAAI,kBAAO,CAAC,EAAE,SAAS,EAAE,CAAC;QADX,YAAO,GAAP,OAAO,CACI;IAC3B,CAAC;IAEG,KAAK,CAAC,OAAO,CAClB,WAA6C;QAE7C,IAAI,WAAW,CAAC,SAAS,KAAK,kBAAS,CAAC,IAAI,EAAE,CAAC;YAC7C,MAAM,IAAI,KAAK,CACb,mDAAmD,WAAW,CAAC,SAAS,aAAa,CACtF,CAAC;QACJ,CAAC;QACD,IAAI,WAAW,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CACb,2FAA2F,CAC5F,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACjD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC;YAC9B,OAAO,IAAA,kCAAgB,EACrB,WAAW,EACX,mCAAmC,EACnC,uGAAuG,CACxG,CAAC;QACJ,CAAC;QAED,IAAI,KAAgD,CAAC;QACrD,IAAI,CAAC;Y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,MAAM,IAAI,SAAS;wBACnD,SAAS,EAAE,WAAW,CAAC,SAAS;qBACjC;iBACF,CAAC,CAAC;gBACH,MAAM,CAAC,IAAI,CAAC,IAAA,oCAAkB,EAAC,IAAI,CAAC,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;QACD,OAAO,IAAA,qCAAmB,EAAC,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;IAOO,KAAK,CAAC,oBAAoB,CAChC,IAAa,EACb,WAA6C;QAE7C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAA,2CAA4B,EAClD,IAAI,EACJ,WAAW,CAAC,cAAc,CAC3B,CAAC;QACF,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;CACF;AAvHD,oEAuHC"}
@@ -0,0 +1,24 @@
1
+ import type { CompiledXemaInstallation } from './compiler';
2
+ import type { HelmCli, HelmReleaseState } from '../runner/helm-cli';
3
+ export interface HelmReleaseRendering {
4
+ readonly namespace?: string;
5
+ readonly values: Readonly<Record<string, string>>;
6
+ }
7
+ export declare const HELM_INSTALLATION_ID_VALUE = "xema.installationId";
8
+ export declare const HELM_PLAN_HASH_VALUE = "xema.planHash";
9
+ export declare const HELM_EXECUTION_ID_VALUE = "xema.executionId";
10
+ export interface HelmReleaseIdentity {
11
+ readonly installationId?: string;
12
+ readonly planHash?: string;
13
+ readonly executionId?: string;
14
+ }
15
+ export declare function readHelmReleaseIdentity(values: Readonly<Record<string, unknown>>): HelmReleaseIdentity;
16
+ export interface InspectedHelmRelease extends HelmReleaseState, HelmReleaseIdentity {
17
+ }
18
+ export interface HelmReleaseOwnership {
19
+ readonly owned: readonly InspectedHelmRelease[];
20
+ readonly foreign: readonly InspectedHelmRelease[];
21
+ }
22
+ export declare function partitionHelmReleasesByOwner(helm: HelmCli, installationId: string): Promise<HelmReleaseOwnership>;
23
+ export declare function helmReleaseRendering(installation: CompiledXemaInstallation): HelmReleaseRendering;
24
+ //# sourceMappingURL=helm-release.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helm-release.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/helm-release.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAmBpE,MAAM,WAAW,oBAAoB;IAKnC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACnD;AAGD,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAChE,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAQ1D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,mBAAmB,CASrB;AAGD,MAAM,WAAW,oBACf,SAAQ,gBAAgB,EACtB,mBAAmB;CAAG;AAG1B,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAChD,QAAQ,CAAC,OAAO,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACnD;AAWD,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,OAAO,EACb,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,oBAAoB,CAAC,CAkB/B;AA0BD,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,wBAAwB,GACrC,oBAAoB,CA6DtB"}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HELM_EXECUTION_ID_VALUE = exports.HELM_PLAN_HASH_VALUE = exports.HELM_INSTALLATION_ID_VALUE = void 0;
4
+ exports.readHelmReleaseIdentity = readHelmReleaseIdentity;
5
+ exports.partitionHelmReleasesByOwner = partitionHelmReleasesByOwner;
6
+ exports.helmReleaseRendering = helmReleaseRendering;
7
+ const readiness_proof_1 = require("./readiness-proof");
8
+ exports.HELM_INSTALLATION_ID_VALUE = 'xema.installationId';
9
+ exports.HELM_PLAN_HASH_VALUE = 'xema.planHash';
10
+ exports.HELM_EXECUTION_ID_VALUE = 'xema.executionId';
11
+ function readHelmReleaseIdentity(values) {
12
+ const installationId = readHelmValue(values, exports.HELM_INSTALLATION_ID_VALUE);
13
+ const planHash = readHelmValue(values, exports.HELM_PLAN_HASH_VALUE);
14
+ const executionId = readHelmValue(values, exports.HELM_EXECUTION_ID_VALUE);
15
+ return {
16
+ ...(installationId === undefined ? {} : { installationId }),
17
+ ...(planHash === undefined ? {} : { planHash }),
18
+ ...(executionId === undefined ? {} : { executionId }),
19
+ };
20
+ }
21
+ async function partitionHelmReleasesByOwner(helm, installationId) {
22
+ const states = await helm.listReleaseStates();
23
+ const inspected = await (0, readiness_proof_1.mapConcurrentOrdered)(states, readiness_proof_1.MAX_CONCURRENT_READINESS_PROBES, async (state) => ({
24
+ ...state,
25
+ ...readHelmReleaseIdentity(await helm.getReleaseValues(state.name)),
26
+ }));
27
+ return {
28
+ owned: inspected.filter((release) => release.installationId === installationId),
29
+ foreign: inspected.filter((release) => release.installationId !== installationId),
30
+ };
31
+ }
32
+ function readHelmValue(values, dottedKey) {
33
+ let cursor = values;
34
+ for (const segment of dottedKey.split('.')) {
35
+ if (typeof cursor !== 'object' || cursor === null) {
36
+ return undefined;
37
+ }
38
+ cursor = cursor[segment];
39
+ }
40
+ return typeof cursor === 'string' ? cursor : undefined;
41
+ }
42
+ function helmReleaseRendering(installation) {
43
+ const spec = installation.spec;
44
+ const values = {
45
+ 'xema.profile': spec.profile,
46
+ 'xema.environment': spec.lifecycle.environment,
47
+ 'xema.target': spec.target.kind,
48
+ 'xema.region': spec.target.region,
49
+ 'xema.tenancy.mode': spec.tenancy.mode,
50
+ 'xema.tenancy.isolation': spec.tenancy.isolation,
51
+ 'xema.security.networkPolicy': spec.security.networkPolicy,
52
+ 'xema.security.identity': spec.security.identity,
53
+ 'xema.security.secretsBackend': spec.security.secretsBackend,
54
+ 'xema.security.encryption': spec.security.encryption,
55
+ 'xema.storage.class': spec.storage.class,
56
+ 'xema.recovery.mode': spec.recovery.mode,
57
+ 'xema.recovery.retentionDays': String(spec.recovery.retentionDays),
58
+ 'xema.recovery.rpoMinutes': String(spec.recovery.rpoMinutes),
59
+ 'xema.recovery.rtoMinutes': String(spec.recovery.rtoMinutes),
60
+ 'xema.recovery.restoreDrillIntervalDays': String(spec.recovery.restoreDrillIntervalDays),
61
+ 'xema.observability.level': spec.observability.level,
62
+ 'xema.observability.metrics': String(spec.observability.metrics),
63
+ 'xema.observability.tracing': String(spec.observability.tracing),
64
+ 'xema.observability.auditLog': String(spec.observability.auditLog),
65
+ 'xema.observability.retentionDays': String(spec.observability.retentionDays),
66
+ 'xema.capacity.minReplicas': String(spec.capacity.minReplicas),
67
+ 'xema.capacity.maxReplicas': String(spec.capacity.maxReplicas),
68
+ 'xema.capacity.maxOrganizations': String(spec.capacity.maxOrganizations),
69
+ 'xema.capacity.maxConcurrentSessions': String(spec.capacity.maxConcurrentSessions),
70
+ replicaCount: String(spec.capacity.minReplicas),
71
+ };
72
+ if (spec.recovery.destinationSecretRef !== undefined) {
73
+ values['xema.recovery.destinationSecretRef'] =
74
+ spec.recovery.destinationSecretRef;
75
+ }
76
+ if (spec.observability.exportSecretRef !== undefined) {
77
+ values['xema.observability.exportSecretRef'] =
78
+ spec.observability.exportSecretRef;
79
+ }
80
+ spec.domains.forEach((domain, index) => {
81
+ values[`xema.domains[${String(index)}].purpose`] = domain.purpose;
82
+ values[`xema.domains[${String(index)}].hostname`] = domain.hostname;
83
+ values[`xema.domains[${String(index)}].tls.mode`] = domain.tls.mode;
84
+ if (domain.tls.secretRef !== undefined) {
85
+ values[`xema.domains[${String(index)}].tls.secretRef`] =
86
+ domain.tls.secretRef;
87
+ }
88
+ });
89
+ return {
90
+ ...(spec.operator.namespace === undefined
91
+ ? {}
92
+ : { namespace: spec.operator.namespace }),
93
+ values,
94
+ };
95
+ }
96
+ //# sourceMappingURL=helm-release.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helm-release.js","sourceRoot":"","sources":["../../../src/runtime/installation/helm-release.ts"],"names":[],"mappings":";;;AAoDA,0DAWC;AAsBD,oEAqBC;AA0BD,oDA+DC;AAnMD,uDAG2B;AAiCd,QAAA,0BAA0B,GAAG,qBAAqB,CAAC;AACnD,QAAA,oBAAoB,GAAG,eAAe,CAAC;AACvC,QAAA,uBAAuB,GAAG,kBAAkB,CAAC;AAc1D,SAAgB,uBAAuB,CACrC,MAAyC;IAEzC,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM,EAAE,kCAA0B,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,aAAa,CAAC,MAAM,EAAE,4BAAoB,CAAC,CAAC;IAC7D,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,EAAE,+BAAuB,CAAC,CAAC;IACnE,OAAO;QACL,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC;QAC3D,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;QAC/C,GAAG,CAAC,WAAW,KAAK,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C;IACH,CAAC,CAAC,CAAC;IACH,OAAO;QACL,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,KAAK,SAAS;YACvC,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;QAC3C,MAAM;KACP,CAAC;AACJ,CAAC"}
@@ -1,13 +1,22 @@
1
1
  export * from './compiler';
2
2
  export * from './contract';
3
+ export * from './current-launcher-renderer';
3
4
  export * from './diagnostics';
4
5
  export * from './diff';
5
6
  export * from './from-current-config';
7
+ export * from './helm-release';
8
+ export * from './helm-release-readiness';
6
9
  export * from './format';
7
10
  export * from './lifecycle';
11
+ export * from './readiness';
12
+ export * from './json-schema';
13
+ export * from './kubernetes-readiness';
8
14
  export * from './serialization';
15
+ export * from './setup-renderer';
16
+ export * from './setup-profile';
9
17
  export * from './state-store';
10
18
  export * from './status';
11
19
  export * from './support-bundle';
20
+ export * from './to-current-config';
12
21
  export * from './validation';
13
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC"}
@@ -16,14 +16,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./compiler"), exports);
18
18
  __exportStar(require("./contract"), exports);
19
+ __exportStar(require("./current-launcher-renderer"), exports);
19
20
  __exportStar(require("./diagnostics"), exports);
20
21
  __exportStar(require("./diff"), exports);
21
22
  __exportStar(require("./from-current-config"), exports);
23
+ __exportStar(require("./helm-release"), exports);
24
+ __exportStar(require("./helm-release-readiness"), exports);
22
25
  __exportStar(require("./format"), exports);
23
26
  __exportStar(require("./lifecycle"), exports);
27
+ __exportStar(require("./readiness"), exports);
28
+ __exportStar(require("./json-schema"), exports);
29
+ __exportStar(require("./kubernetes-readiness"), exports);
24
30
  __exportStar(require("./serialization"), exports);
31
+ __exportStar(require("./setup-renderer"), exports);
32
+ __exportStar(require("./setup-profile"), exports);
25
33
  __exportStar(require("./state-store"), exports);
26
34
  __exportStar(require("./status"), exports);
27
35
  __exportStar(require("./support-bundle"), exports);
36
+ __exportStar(require("./to-current-config"), exports);
28
37
  __exportStar(require("./validation"), exports);
29
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/installation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B;AAC9B,yCAAuB;AACvB,wDAAsC;AACtC,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC;AAChC,gDAA8B;AAC9B,2CAAyB;AACzB,mDAAiC;AACjC,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/installation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,8DAA4C;AAC5C,gDAA8B;AAC9B,yCAAuB;AACvB,wDAAsC;AACtC,iDAA+B;AAC/B,2DAAyC;AACzC,2CAAyB;AACzB,8CAA4B;AAC5B,8CAA4B;AAC5B,gDAA8B;AAC9B,yDAAuC;AACvC,kDAAgC;AAChC,mDAAiC;AACjC,kDAAgC;AAChC,gDAA8B;AAC9B,2CAAyB;AACzB,mDAAiC;AACjC,sDAAoC;AACpC,+CAA6B"}