@xemahq/xema 0.13.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 (564) hide show
  1. package/README.md +90 -21
  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 +380 -28
  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 +2401 -354
  10. package/dist/assets/core/images.lock.json +1208 -268
  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 +3742 -494
  16. package/dist/assets/oss/images.lock.json +1591 -472
  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 +40 -1
  21. package/dist/cli.js.map +1 -1
  22. package/dist/commands/apply.d.ts.map +1 -1
  23. package/dist/commands/apply.js +2 -2
  24. package/dist/commands/apply.js.map +1 -1
  25. package/dist/commands/biome-dev.d.ts +3 -0
  26. package/dist/commands/biome-dev.d.ts.map +1 -0
  27. package/dist/commands/biome-dev.js +176 -0
  28. package/dist/commands/biome-dev.js.map +1 -0
  29. package/dist/commands/biome-validate.d.ts +10 -0
  30. package/dist/commands/biome-validate.d.ts.map +1 -0
  31. package/dist/commands/biome-validate.js +49 -0
  32. package/dist/commands/biome-validate.js.map +1 -0
  33. package/dist/commands/biome.d.ts.map +1 -1
  34. package/dist/commands/biome.js +437 -26
  35. package/dist/commands/biome.js.map +1 -1
  36. package/dist/commands/canopy.d.ts +3 -0
  37. package/dist/commands/canopy.d.ts.map +1 -0
  38. package/dist/commands/canopy.js +214 -0
  39. package/dist/commands/canopy.js.map +1 -0
  40. package/dist/commands/config.d.ts +3 -0
  41. package/dist/commands/config.d.ts.map +1 -0
  42. package/dist/commands/config.js +78 -0
  43. package/dist/commands/config.js.map +1 -0
  44. package/dist/commands/dev.d.ts.map +1 -1
  45. package/dist/commands/dev.js +92 -20
  46. package/dist/commands/dev.js.map +1 -1
  47. package/dist/commands/dist.d.ts +13 -0
  48. package/dist/commands/dist.d.ts.map +1 -1
  49. package/dist/commands/dist.js +51 -11
  50. package/dist/commands/dist.js.map +1 -1
  51. package/dist/commands/doctor.d.ts +25 -0
  52. package/dist/commands/doctor.d.ts.map +1 -1
  53. package/dist/commands/doctor.js +422 -18
  54. package/dist/commands/doctor.js.map +1 -1
  55. package/dist/commands/down.d.ts +10 -0
  56. package/dist/commands/down.d.ts.map +1 -1
  57. package/dist/commands/down.js +107 -33
  58. package/dist/commands/down.js.map +1 -1
  59. package/dist/commands/export.js +1 -1
  60. package/dist/commands/export.js.map +1 -1
  61. package/dist/commands/import.d.ts.map +1 -1
  62. package/dist/commands/import.js +2 -2
  63. package/dist/commands/import.js.map +1 -1
  64. package/dist/commands/init.d.ts.map +1 -1
  65. package/dist/commands/init.js +56 -3
  66. package/dist/commands/init.js.map +1 -1
  67. package/dist/commands/installation.d.ts +3 -0
  68. package/dist/commands/installation.d.ts.map +1 -0
  69. package/dist/commands/installation.js +258 -0
  70. package/dist/commands/installation.js.map +1 -0
  71. package/dist/commands/license.d.ts +3 -0
  72. package/dist/commands/license.d.ts.map +1 -0
  73. package/dist/commands/license.js +97 -0
  74. package/dist/commands/license.js.map +1 -0
  75. package/dist/commands/login.d.ts +4 -0
  76. package/dist/commands/login.d.ts.map +1 -0
  77. package/dist/commands/login.js +127 -0
  78. package/dist/commands/login.js.map +1 -0
  79. package/dist/commands/logs.d.ts +21 -0
  80. package/dist/commands/logs.d.ts.map +1 -1
  81. package/dist/commands/logs.js +133 -32
  82. package/dist/commands/logs.js.map +1 -1
  83. package/dist/commands/objects.d.ts.map +1 -1
  84. package/dist/commands/objects.js +85 -6
  85. package/dist/commands/objects.js.map +1 -1
  86. package/dist/commands/plan.d.ts.map +1 -1
  87. package/dist/commands/plan.js +2 -2
  88. package/dist/commands/plan.js.map +1 -1
  89. package/dist/commands/run.d.ts.map +1 -1
  90. package/dist/commands/run.js +61 -9
  91. package/dist/commands/run.js.map +1 -1
  92. package/dist/commands/serve.d.ts.map +1 -1
  93. package/dist/commands/serve.js +67 -14
  94. package/dist/commands/serve.js.map +1 -1
  95. package/dist/commands/shell.d.ts.map +1 -1
  96. package/dist/commands/shell.js +190 -6
  97. package/dist/commands/shell.js.map +1 -1
  98. package/dist/commands/source.d.ts +3 -0
  99. package/dist/commands/source.d.ts.map +1 -0
  100. package/dist/commands/source.js +120 -0
  101. package/dist/commands/source.js.map +1 -0
  102. package/dist/commands/status.d.ts.map +1 -1
  103. package/dist/commands/status.js +29 -3
  104. package/dist/commands/status.js.map +1 -1
  105. package/dist/commands/up.d.ts.map +1 -1
  106. package/dist/commands/up.js +70 -5
  107. package/dist/commands/up.js.map +1 -1
  108. package/dist/dev/env-defaults.d.ts +1 -0
  109. package/dist/dev/env-defaults.d.ts.map +1 -1
  110. package/dist/dev/env-defaults.js +24 -12
  111. package/dist/dev/env-defaults.js.map +1 -1
  112. package/dist/dev/forked-worker-bootstrap-protocol.d.ts +17 -0
  113. package/dist/dev/forked-worker-bootstrap-protocol.d.ts.map +1 -0
  114. package/dist/dev/forked-worker-bootstrap-protocol.js +35 -0
  115. package/dist/dev/forked-worker-bootstrap-protocol.js.map +1 -0
  116. package/dist/dev/forked-worker-bootstrap.d.ts +18 -0
  117. package/dist/dev/forked-worker-bootstrap.d.ts.map +1 -0
  118. package/dist/dev/forked-worker-bootstrap.js +84 -0
  119. package/dist/dev/forked-worker-bootstrap.js.map +1 -0
  120. package/dist/dev/forked-worker.d.ts +29 -0
  121. package/dist/dev/forked-worker.d.ts.map +1 -1
  122. package/dist/dev/forked-worker.js +267 -42
  123. package/dist/dev/forked-worker.js.map +1 -1
  124. package/dist/dev/opa-policies.d.ts +3 -0
  125. package/dist/dev/opa-policies.d.ts.map +1 -0
  126. package/dist/dev/opa-policies.js +64 -0
  127. package/dist/dev/opa-policies.js.map +1 -0
  128. package/dist/lib/cli-errors.d.ts +7 -0
  129. package/dist/lib/cli-errors.d.ts.map +1 -0
  130. package/dist/lib/cli-errors.js +30 -0
  131. package/dist/lib/cli-errors.js.map +1 -0
  132. package/dist/lib/control-plane.d.ts +5 -1
  133. package/dist/lib/control-plane.d.ts.map +1 -1
  134. package/dist/lib/control-plane.js +61 -8
  135. package/dist/lib/control-plane.js.map +1 -1
  136. package/dist/lib/exit-codes.d.ts +3 -4
  137. package/dist/lib/exit-codes.d.ts.map +1 -1
  138. package/dist/lib/exit-codes.js +3 -4
  139. package/dist/lib/exit-codes.js.map +1 -1
  140. package/dist/lib/http-error.d.ts +2 -0
  141. package/dist/lib/http-error.d.ts.map +1 -0
  142. package/dist/lib/http-error.js +51 -0
  143. package/dist/lib/http-error.js.map +1 -0
  144. package/dist/lib/roster-profile.d.ts +10 -0
  145. package/dist/lib/roster-profile.d.ts.map +1 -0
  146. package/dist/lib/roster-profile.js +44 -0
  147. package/dist/lib/roster-profile.js.map +1 -0
  148. package/dist/runtime/asset-provenance.d.ts +17 -0
  149. package/dist/runtime/asset-provenance.d.ts.map +1 -0
  150. package/dist/runtime/asset-provenance.js +29 -0
  151. package/dist/runtime/asset-provenance.js.map +1 -0
  152. package/dist/runtime/auth/client-bootstrap.d.ts +11 -0
  153. package/dist/runtime/auth/client-bootstrap.d.ts.map +1 -0
  154. package/dist/runtime/auth/client-bootstrap.js +60 -0
  155. package/dist/runtime/auth/client-bootstrap.js.map +1 -0
  156. package/dist/runtime/auth/device-flow.d.ts +43 -0
  157. package/dist/runtime/auth/device-flow.d.ts.map +1 -0
  158. package/dist/runtime/auth/device-flow.js +201 -0
  159. package/dist/runtime/auth/device-flow.js.map +1 -0
  160. package/dist/runtime/auth/session-auth.d.ts +8 -0
  161. package/dist/runtime/auth/session-auth.d.ts.map +1 -0
  162. package/dist/runtime/auth/session-auth.js +43 -0
  163. package/dist/runtime/auth/session-auth.js.map +1 -0
  164. package/dist/runtime/auth/session-store.d.ts +19 -0
  165. package/dist/runtime/auth/session-store.d.ts.map +1 -0
  166. package/dist/runtime/auth/session-store.js +83 -0
  167. package/dist/runtime/auth/session-store.js.map +1 -0
  168. package/dist/runtime/auth/token-claims.d.ts +2 -0
  169. package/dist/runtime/auth/token-claims.d.ts.map +1 -0
  170. package/dist/runtime/auth/token-claims.js +45 -0
  171. package/dist/runtime/auth/token-claims.js.map +1 -0
  172. package/dist/runtime/biome-dev.d.ts +28 -0
  173. package/dist/runtime/biome-dev.d.ts.map +1 -0
  174. package/dist/runtime/biome-dev.js +131 -0
  175. package/dist/runtime/biome-dev.js.map +1 -0
  176. package/dist/runtime/biome-local-install.d.ts +29 -0
  177. package/dist/runtime/biome-local-install.d.ts.map +1 -0
  178. package/dist/runtime/biome-local-install.js +243 -0
  179. package/dist/runtime/biome-local-install.js.map +1 -0
  180. package/dist/runtime/biome-provenance.d.ts +26 -0
  181. package/dist/runtime/biome-provenance.d.ts.map +1 -0
  182. package/dist/runtime/biome-provenance.js +70 -0
  183. package/dist/runtime/biome-provenance.js.map +1 -0
  184. package/dist/runtime/biome-publish.d.ts +48 -0
  185. package/dist/runtime/biome-publish.d.ts.map +1 -0
  186. package/dist/runtime/biome-publish.js +278 -0
  187. package/dist/runtime/biome-publish.js.map +1 -0
  188. package/dist/runtime/biome-scaffold.d.ts +35 -0
  189. package/dist/runtime/biome-scaffold.d.ts.map +1 -0
  190. package/dist/runtime/biome-scaffold.js +151 -0
  191. package/dist/runtime/biome-scaffold.js.map +1 -0
  192. package/dist/runtime/biome-validate.d.ts +28 -0
  193. package/dist/runtime/biome-validate.d.ts.map +1 -0
  194. package/dist/runtime/biome-validate.js +452 -0
  195. package/dist/runtime/biome-validate.js.map +1 -0
  196. package/dist/runtime/boot-graph-loader.d.ts +1 -0
  197. package/dist/runtime/boot-graph-loader.d.ts.map +1 -1
  198. package/dist/runtime/boot-graph-loader.js +99 -7
  199. package/dist/runtime/boot-graph-loader.js.map +1 -1
  200. package/dist/runtime/canopy-refs.d.ts +8 -0
  201. package/dist/runtime/canopy-refs.d.ts.map +1 -0
  202. package/dist/runtime/canopy-refs.js +51 -0
  203. package/dist/runtime/canopy-refs.js.map +1 -0
  204. package/dist/runtime/canopy-replies.d.ts +14 -0
  205. package/dist/runtime/canopy-replies.d.ts.map +1 -0
  206. package/dist/runtime/canopy-replies.js +39 -0
  207. package/dist/runtime/canopy-replies.js.map +1 -0
  208. package/dist/runtime/capability-invoke.d.ts +35 -0
  209. package/dist/runtime/capability-invoke.d.ts.map +1 -0
  210. package/dist/runtime/capability-invoke.js +119 -0
  211. package/dist/runtime/capability-invoke.js.map +1 -0
  212. package/dist/runtime/cleanup.d.ts +10 -0
  213. package/dist/runtime/cleanup.d.ts.map +1 -0
  214. package/dist/runtime/cleanup.js +35 -0
  215. package/dist/runtime/cleanup.js.map +1 -0
  216. package/dist/runtime/config/dev-mode.d.ts +8 -0
  217. package/dist/runtime/config/dev-mode.d.ts.map +1 -0
  218. package/dist/runtime/config/dev-mode.js +84 -0
  219. package/dist/runtime/config/dev-mode.js.map +1 -0
  220. package/dist/runtime/config/init-presets.d.ts +1 -1
  221. package/dist/runtime/config/init-presets.d.ts.map +1 -1
  222. package/dist/runtime/config/init-presets.js +68 -13
  223. package/dist/runtime/config/init-presets.js.map +1 -1
  224. package/dist/runtime/config/loader.d.ts +1 -0
  225. package/dist/runtime/config/loader.d.ts.map +1 -1
  226. package/dist/runtime/config/loader.js +41 -5
  227. package/dist/runtime/config/loader.js.map +1 -1
  228. package/dist/runtime/config/schema.d.ts +27 -12
  229. package/dist/runtime/config/schema.d.ts.map +1 -1
  230. package/dist/runtime/config/schema.js +113 -8
  231. package/dist/runtime/config/schema.js.map +1 -1
  232. package/dist/runtime/config/sources-config.d.ts +14 -0
  233. package/dist/runtime/config/sources-config.d.ts.map +1 -0
  234. package/dist/runtime/config/sources-config.js +79 -0
  235. package/dist/runtime/config/sources-config.js.map +1 -0
  236. package/dist/runtime/distribution/available-biome.d.ts.map +1 -1
  237. package/dist/runtime/distribution/available-biome.js +2 -0
  238. package/dist/runtime/distribution/available-biome.js.map +1 -1
  239. package/dist/runtime/distribution/compose.d.ts +2 -1
  240. package/dist/runtime/distribution/compose.d.ts.map +1 -1
  241. package/dist/runtime/distribution/compose.js +4 -1
  242. package/dist/runtime/distribution/compose.js.map +1 -1
  243. package/dist/runtime/env-seeder.d.ts +5 -0
  244. package/dist/runtime/env-seeder.d.ts.map +1 -1
  245. package/dist/runtime/env-seeder.js +152 -19
  246. package/dist/runtime/env-seeder.js.map +1 -1
  247. package/dist/runtime/foreground.d.ts +9 -0
  248. package/dist/runtime/foreground.d.ts.map +1 -1
  249. package/dist/runtime/foreground.js +37 -3
  250. package/dist/runtime/foreground.js.map +1 -1
  251. package/dist/runtime/infra/infra-catalog.d.ts +34 -1
  252. package/dist/runtime/infra/infra-catalog.d.ts.map +1 -1
  253. package/dist/runtime/infra/infra-catalog.js +202 -10
  254. package/dist/runtime/infra/infra-catalog.js.map +1 -1
  255. package/dist/runtime/infra/infra-environment.d.ts +10 -0
  256. package/dist/runtime/infra/infra-environment.d.ts.map +1 -0
  257. package/dist/runtime/infra/infra-environment.js +76 -0
  258. package/dist/runtime/infra/infra-environment.js.map +1 -0
  259. package/dist/runtime/infra/infra-plan.d.ts +2 -1
  260. package/dist/runtime/infra/infra-plan.d.ts.map +1 -1
  261. package/dist/runtime/infra/infra-plan.js +10 -0
  262. package/dist/runtime/infra/infra-plan.js.map +1 -1
  263. package/dist/runtime/infra/infra-runner.d.ts +16 -1
  264. package/dist/runtime/infra/infra-runner.d.ts.map +1 -1
  265. package/dist/runtime/infra/infra-runner.js +245 -55
  266. package/dist/runtime/infra/infra-runner.js.map +1 -1
  267. package/dist/runtime/infra/keycloak-realm.d.ts +25 -0
  268. package/dist/runtime/infra/keycloak-realm.d.ts.map +1 -0
  269. package/dist/runtime/infra/keycloak-realm.js +116 -0
  270. package/dist/runtime/infra/keycloak-realm.js.map +1 -0
  271. package/dist/runtime/infra/postgres-endpoint.d.ts +8 -0
  272. package/dist/runtime/infra/postgres-endpoint.d.ts.map +1 -0
  273. package/dist/runtime/infra/postgres-endpoint.js +21 -0
  274. package/dist/runtime/infra/postgres-endpoint.js.map +1 -0
  275. package/dist/runtime/installation/compiler.d.ts +114 -0
  276. package/dist/runtime/installation/compiler.d.ts.map +1 -0
  277. package/dist/runtime/installation/compiler.js +456 -0
  278. package/dist/runtime/installation/compiler.js.map +1 -0
  279. package/dist/runtime/installation/contract.d.ts +296 -0
  280. package/dist/runtime/installation/contract.d.ts.map +1 -0
  281. package/dist/runtime/installation/contract.js +504 -0
  282. package/dist/runtime/installation/contract.js.map +1 -0
  283. package/dist/runtime/installation/current-launcher-renderer.d.ts +12 -0
  284. package/dist/runtime/installation/current-launcher-renderer.d.ts.map +1 -0
  285. package/dist/runtime/installation/current-launcher-renderer.js +123 -0
  286. package/dist/runtime/installation/current-launcher-renderer.js.map +1 -0
  287. package/dist/runtime/installation/diagnostics.d.ts +16 -0
  288. package/dist/runtime/installation/diagnostics.d.ts.map +1 -0
  289. package/dist/runtime/installation/diagnostics.js +21 -0
  290. package/dist/runtime/installation/diagnostics.js.map +1 -0
  291. package/dist/runtime/installation/diff.d.ts +32 -0
  292. package/dist/runtime/installation/diff.d.ts.map +1 -0
  293. package/dist/runtime/installation/diff.js +136 -0
  294. package/dist/runtime/installation/diff.js.map +1 -0
  295. package/dist/runtime/installation/format.d.ts +3 -0
  296. package/dist/runtime/installation/format.d.ts.map +1 -0
  297. package/dist/runtime/installation/format.js +22 -0
  298. package/dist/runtime/installation/format.js.map +1 -0
  299. package/dist/runtime/installation/from-current-config.d.ts +9 -0
  300. package/dist/runtime/installation/from-current-config.d.ts.map +1 -0
  301. package/dist/runtime/installation/from-current-config.js +245 -0
  302. package/dist/runtime/installation/from-current-config.js.map +1 -0
  303. package/dist/runtime/installation/helm-release-readiness.d.ts +9 -0
  304. package/dist/runtime/installation/helm-release-readiness.d.ts.map +1 -0
  305. package/dist/runtime/installation/helm-release-readiness.js +97 -0
  306. package/dist/runtime/installation/helm-release-readiness.js.map +1 -0
  307. package/dist/runtime/installation/helm-release.d.ts +24 -0
  308. package/dist/runtime/installation/helm-release.d.ts.map +1 -0
  309. package/dist/runtime/installation/helm-release.js +96 -0
  310. package/dist/runtime/installation/helm-release.js.map +1 -0
  311. package/dist/runtime/installation/index.d.ts +22 -0
  312. package/dist/runtime/installation/index.d.ts.map +1 -0
  313. package/dist/runtime/installation/index.js +38 -0
  314. package/dist/runtime/installation/index.js.map +1 -0
  315. package/dist/runtime/installation/json-schema.d.ts +4 -0
  316. package/dist/runtime/installation/json-schema.d.ts.map +1 -0
  317. package/dist/runtime/installation/json-schema.js +16 -0
  318. package/dist/runtime/installation/json-schema.js.map +1 -0
  319. package/dist/runtime/installation/kubernetes-readiness.d.ts +60 -0
  320. package/dist/runtime/installation/kubernetes-readiness.d.ts.map +1 -0
  321. package/dist/runtime/installation/kubernetes-readiness.js +384 -0
  322. package/dist/runtime/installation/kubernetes-readiness.js.map +1 -0
  323. package/dist/runtime/installation/lifecycle.d.ts +25 -0
  324. package/dist/runtime/installation/lifecycle.d.ts.map +1 -0
  325. package/dist/runtime/installation/lifecycle.js +157 -0
  326. package/dist/runtime/installation/lifecycle.js.map +1 -0
  327. package/dist/runtime/installation/readiness-proof.d.ts +72 -0
  328. package/dist/runtime/installation/readiness-proof.d.ts.map +1 -0
  329. package/dist/runtime/installation/readiness-proof.js +142 -0
  330. package/dist/runtime/installation/readiness-proof.js.map +1 -0
  331. package/dist/runtime/installation/readiness.d.ts +21 -0
  332. package/dist/runtime/installation/readiness.d.ts.map +1 -0
  333. package/dist/runtime/installation/readiness.js +418 -0
  334. package/dist/runtime/installation/readiness.js.map +1 -0
  335. package/dist/runtime/installation/serialization.d.ts +3 -0
  336. package/dist/runtime/installation/serialization.d.ts.map +1 -0
  337. package/dist/runtime/installation/serialization.js +39 -0
  338. package/dist/runtime/installation/serialization.js.map +1 -0
  339. package/dist/runtime/installation/setup-profile.d.ts +8 -0
  340. package/dist/runtime/installation/setup-profile.d.ts.map +1 -0
  341. package/dist/runtime/installation/setup-profile.js +41 -0
  342. package/dist/runtime/installation/setup-profile.js.map +1 -0
  343. package/dist/runtime/installation/setup-renderer.d.ts +31 -0
  344. package/dist/runtime/installation/setup-renderer.d.ts.map +1 -0
  345. package/dist/runtime/installation/setup-renderer.js +238 -0
  346. package/dist/runtime/installation/setup-renderer.js.map +1 -0
  347. package/dist/runtime/installation/state-store.d.ts +28 -0
  348. package/dist/runtime/installation/state-store.d.ts.map +1 -0
  349. package/dist/runtime/installation/state-store.js +377 -0
  350. package/dist/runtime/installation/state-store.js.map +1 -0
  351. package/dist/runtime/installation/status.d.ts +24 -0
  352. package/dist/runtime/installation/status.d.ts.map +1 -0
  353. package/dist/runtime/installation/status.js +52 -0
  354. package/dist/runtime/installation/status.js.map +1 -0
  355. package/dist/runtime/installation/support-bundle.d.ts +30 -0
  356. package/dist/runtime/installation/support-bundle.d.ts.map +1 -0
  357. package/dist/runtime/installation/support-bundle.js +145 -0
  358. package/dist/runtime/installation/support-bundle.js.map +1 -0
  359. package/dist/runtime/installation/to-current-config.d.ts +4 -0
  360. package/dist/runtime/installation/to-current-config.d.ts.map +1 -0
  361. package/dist/runtime/installation/to-current-config.js +171 -0
  362. package/dist/runtime/installation/to-current-config.js.map +1 -0
  363. package/dist/runtime/installation/validation.d.ts +8 -0
  364. package/dist/runtime/installation/validation.d.ts.map +1 -0
  365. package/dist/runtime/installation/validation.js +117 -0
  366. package/dist/runtime/installation/validation.js.map +1 -0
  367. package/dist/runtime/installation/validators/common.d.ts +4 -0
  368. package/dist/runtime/installation/validators/common.d.ts.map +1 -0
  369. package/dist/runtime/installation/validators/common.js +32 -0
  370. package/dist/runtime/installation/validators/common.js.map +1 -0
  371. package/dist/runtime/installation/validators/infrastructure.d.ts +4 -0
  372. package/dist/runtime/installation/validators/infrastructure.d.ts.map +1 -0
  373. package/dist/runtime/installation/validators/infrastructure.js +96 -0
  374. package/dist/runtime/installation/validators/infrastructure.js.map +1 -0
  375. package/dist/runtime/installation/validators/operational.d.ts +4 -0
  376. package/dist/runtime/installation/validators/operational.d.ts.map +1 -0
  377. package/dist/runtime/installation/validators/operational.js +68 -0
  378. package/dist/runtime/installation/validators/operational.js.map +1 -0
  379. package/dist/runtime/installation/validators/profile.d.ts +4 -0
  380. package/dist/runtime/installation/validators/profile.d.ts.map +1 -0
  381. package/dist/runtime/installation/validators/profile.js +80 -0
  382. package/dist/runtime/installation/validators/profile.js.map +1 -0
  383. package/dist/runtime/installation/validators/secrets.d.ts +4 -0
  384. package/dist/runtime/installation/validators/secrets.d.ts.map +1 -0
  385. package/dist/runtime/installation/validators/secrets.js +85 -0
  386. package/dist/runtime/installation/validators/secrets.js.map +1 -0
  387. package/dist/runtime/launch-plan-format.d.ts +3 -0
  388. package/dist/runtime/launch-plan-format.d.ts.map +1 -0
  389. package/dist/runtime/launch-plan-format.js +57 -0
  390. package/dist/runtime/launch-plan-format.js.map +1 -0
  391. package/dist/runtime/launch.d.ts +35 -3
  392. package/dist/runtime/launch.d.ts.map +1 -1
  393. package/dist/runtime/launch.js +382 -37
  394. package/dist/runtime/launch.js.map +1 -1
  395. package/dist/runtime/license/license-clock.d.ts +12 -0
  396. package/dist/runtime/license/license-clock.d.ts.map +1 -0
  397. package/dist/runtime/license/license-clock.js +57 -0
  398. package/dist/runtime/license/license-clock.js.map +1 -0
  399. package/dist/runtime/license/license-report.d.ts +19 -0
  400. package/dist/runtime/license/license-report.d.ts.map +1 -0
  401. package/dist/runtime/license/license-report.js +105 -0
  402. package/dist/runtime/license/license-report.js.map +1 -0
  403. package/dist/runtime/license/license-store.d.ts +5 -0
  404. package/dist/runtime/license/license-store.d.ts.map +1 -0
  405. package/dist/runtime/license/license-store.js +11 -0
  406. package/dist/runtime/license/license-store.js.map +1 -0
  407. package/dist/runtime/license/registry-credential.d.ts +26 -0
  408. package/dist/runtime/license/registry-credential.d.ts.map +1 -0
  409. package/dist/runtime/license/registry-credential.js +94 -0
  410. package/dist/runtime/license/registry-credential.js.map +1 -0
  411. package/dist/runtime/license/resolve-license.d.ts +30 -0
  412. package/dist/runtime/license/resolve-license.d.ts.map +1 -0
  413. package/dist/runtime/license/resolve-license.js +73 -0
  414. package/dist/runtime/license/resolve-license.js.map +1 -0
  415. package/dist/runtime/license/store-license.d.ts +18 -0
  416. package/dist/runtime/license/store-license.d.ts.map +1 -0
  417. package/dist/runtime/license/store-license.js +26 -0
  418. package/dist/runtime/license/store-license.js.map +1 -0
  419. package/dist/runtime/lock-loader.d.ts +3 -6
  420. package/dist/runtime/lock-loader.d.ts.map +1 -1
  421. package/dist/runtime/lock-loader.js +26 -20
  422. package/dist/runtime/lock-loader.js.map +1 -1
  423. package/dist/runtime/native-process-group.d.ts +46 -0
  424. package/dist/runtime/native-process-group.d.ts.map +1 -0
  425. package/dist/runtime/native-process-group.js +390 -0
  426. package/dist/runtime/native-process-group.js.map +1 -0
  427. package/dist/runtime/object-registry-client.d.ts +31 -0
  428. package/dist/runtime/object-registry-client.d.ts.map +1 -0
  429. package/dist/runtime/object-registry-client.js +54 -0
  430. package/dist/runtime/object-registry-client.js.map +1 -0
  431. package/dist/runtime/paths.d.ts +2 -0
  432. package/dist/runtime/paths.d.ts.map +1 -1
  433. package/dist/runtime/paths.js +3 -0
  434. package/dist/runtime/paths.js.map +1 -1
  435. package/dist/runtime/roster.d.ts +12 -5
  436. package/dist/runtime/roster.d.ts.map +1 -1
  437. package/dist/runtime/roster.js +89 -11
  438. package/dist/runtime/roster.js.map +1 -1
  439. package/dist/runtime/run-manifest.d.ts +52 -0
  440. package/dist/runtime/run-manifest.d.ts.map +1 -0
  441. package/dist/runtime/run-manifest.js +587 -0
  442. package/dist/runtime/run-manifest.js.map +1 -0
  443. package/dist/runtime/runner/container-preflight.d.ts +77 -0
  444. package/dist/runtime/runner/container-preflight.d.ts.map +1 -0
  445. package/dist/runtime/runner/container-preflight.js +360 -0
  446. package/dist/runtime/runner/container-preflight.js.map +1 -0
  447. package/dist/runtime/runner/container-runner.d.ts +14 -0
  448. package/dist/runtime/runner/container-runner.d.ts.map +1 -1
  449. package/dist/runtime/runner/container-runner.js +110 -14
  450. package/dist/runtime/runner/container-runner.js.map +1 -1
  451. package/dist/runtime/runner/docker-cli.d.ts +35 -2
  452. package/dist/runtime/runner/docker-cli.d.ts.map +1 -1
  453. package/dist/runtime/runner/docker-cli.js +314 -9
  454. package/dist/runtime/runner/docker-cli.js.map +1 -1
  455. package/dist/runtime/runner/health-probe.d.ts +1 -0
  456. package/dist/runtime/runner/health-probe.d.ts.map +1 -1
  457. package/dist/runtime/runner/health-probe.js +3 -2
  458. package/dist/runtime/runner/health-probe.js.map +1 -1
  459. package/dist/runtime/runner/helm-cli.d.ts +19 -1
  460. package/dist/runtime/runner/helm-cli.d.ts.map +1 -1
  461. package/dist/runtime/runner/helm-cli.js +76 -8
  462. package/dist/runtime/runner/helm-cli.js.map +1 -1
  463. package/dist/runtime/runner/helm-runner.d.ts +3 -0
  464. package/dist/runtime/runner/helm-runner.d.ts.map +1 -1
  465. package/dist/runtime/runner/helm-runner.js +23 -7
  466. package/dist/runtime/runner/helm-runner.js.map +1 -1
  467. package/dist/runtime/runner/host-platform.d.ts +39 -0
  468. package/dist/runtime/runner/host-platform.d.ts.map +1 -0
  469. package/dist/runtime/runner/host-platform.js +136 -0
  470. package/dist/runtime/runner/host-platform.js.map +1 -0
  471. package/dist/runtime/runner/kube-cli.d.ts +23 -0
  472. package/dist/runtime/runner/kube-cli.d.ts.map +1 -0
  473. package/dist/runtime/runner/kube-cli.js +112 -0
  474. package/dist/runtime/runner/kube-cli.js.map +1 -0
  475. package/dist/runtime/runner/native-runner.d.ts.map +1 -1
  476. package/dist/runtime/runner/native-runner.js +46 -15
  477. package/dist/runtime/runner/native-runner.js.map +1 -1
  478. package/dist/runtime/runner/service-runner.d.ts +5 -0
  479. package/dist/runtime/runner/service-runner.d.ts.map +1 -1
  480. package/dist/runtime/runner/service-runner.js.map +1 -1
  481. package/dist/runtime/runner/stream-outcome.d.ts +7 -0
  482. package/dist/runtime/runner/stream-outcome.d.ts.map +1 -0
  483. package/dist/runtime/runner/stream-outcome.js +13 -0
  484. package/dist/runtime/runner/stream-outcome.js.map +1 -0
  485. package/dist/runtime/secrets/managed-local-cipher.d.ts +18 -0
  486. package/dist/runtime/secrets/managed-local-cipher.d.ts.map +1 -0
  487. package/dist/runtime/secrets/managed-local-cipher.js +110 -0
  488. package/dist/runtime/secrets/managed-local-cipher.js.map +1 -0
  489. package/dist/runtime/secrets/managed-local-files.d.ts +4 -0
  490. package/dist/runtime/secrets/managed-local-files.d.ts.map +1 -0
  491. package/dist/runtime/secrets/managed-local-files.js +132 -0
  492. package/dist/runtime/secrets/managed-local-files.js.map +1 -0
  493. package/dist/runtime/secrets/managed-local-key-provider.d.ts +27 -0
  494. package/dist/runtime/secrets/managed-local-key-provider.d.ts.map +1 -0
  495. package/dist/runtime/secrets/managed-local-key-provider.js +144 -0
  496. package/dist/runtime/secrets/managed-local-key-provider.js.map +1 -0
  497. package/dist/runtime/secrets/managed-local-secret-store.d.ts +18 -0
  498. package/dist/runtime/secrets/managed-local-secret-store.d.ts.map +1 -0
  499. package/dist/runtime/secrets/managed-local-secret-store.js +82 -0
  500. package/dist/runtime/secrets/managed-local-secret-store.js.map +1 -0
  501. package/dist/runtime/secrets/managed-local-store.d.ts +33 -0
  502. package/dist/runtime/secrets/managed-local-store.d.ts.map +1 -0
  503. package/dist/runtime/secrets/managed-local-store.js +121 -0
  504. package/dist/runtime/secrets/managed-local-store.js.map +1 -0
  505. package/dist/runtime/secrets/resolver.d.ts +23 -0
  506. package/dist/runtime/secrets/resolver.d.ts.map +1 -0
  507. package/dist/runtime/secrets/resolver.js +265 -0
  508. package/dist/runtime/secrets/resolver.js.map +1 -0
  509. package/dist/runtime/secrets/url-security.d.ts +3 -0
  510. package/dist/runtime/secrets/url-security.d.ts.map +1 -0
  511. package/dist/runtime/secrets/url-security.js +13 -0
  512. package/dist/runtime/secrets/url-security.js.map +1 -0
  513. package/dist/runtime/sources/credentials.d.ts +2 -0
  514. package/dist/runtime/sources/credentials.d.ts.map +1 -1
  515. package/dist/runtime/sources/credentials.js +51 -1
  516. package/dist/runtime/sources/credentials.js.map +1 -1
  517. package/dist/runtime/sources/kinds/distribution.js +3 -3
  518. package/dist/runtime/sources/kinds/distribution.js.map +1 -1
  519. package/dist/runtime/sources/kinds/git.d.ts +6 -3
  520. package/dist/runtime/sources/kinds/git.d.ts.map +1 -1
  521. package/dist/runtime/sources/kinds/git.js +99 -22
  522. package/dist/runtime/sources/kinds/git.js.map +1 -1
  523. package/dist/runtime/sources/manifest-walk.d.ts +1 -0
  524. package/dist/runtime/sources/manifest-walk.d.ts.map +1 -1
  525. package/dist/runtime/sources/manifest-walk.js +16 -11
  526. package/dist/runtime/sources/manifest-walk.js.map +1 -1
  527. package/dist/runtime/sources/resolve-context.d.ts +7 -0
  528. package/dist/runtime/sources/resolve-context.d.ts.map +1 -0
  529. package/dist/runtime/sources/resolve-context.js +3 -0
  530. package/dist/runtime/sources/resolve-context.js.map +1 -0
  531. package/dist/runtime/sources/resolver.d.ts +2 -2
  532. package/dist/runtime/sources/resolver.d.ts.map +1 -1
  533. package/dist/runtime/sources/resolver.js +11 -5
  534. package/dist/runtime/sources/resolver.js.map +1 -1
  535. package/dist/runtime/sources/schema.d.ts.map +1 -1
  536. package/dist/runtime/sources/schema.js +51 -3
  537. package/dist/runtime/sources/schema.js.map +1 -1
  538. package/dist/runtime/store-client.d.ts +59 -0
  539. package/dist/runtime/store-client.d.ts.map +1 -0
  540. package/dist/runtime/store-client.js +72 -0
  541. package/dist/runtime/store-client.js.map +1 -0
  542. package/dist/runtime/store-submit.d.ts +31 -0
  543. package/dist/runtime/store-submit.d.ts.map +1 -0
  544. package/dist/runtime/store-submit.js +77 -0
  545. package/dist/runtime/store-submit.js.map +1 -0
  546. package/dist/runtime/supervisor.d.ts +18 -0
  547. package/dist/runtime/supervisor.d.ts.map +1 -1
  548. package/dist/runtime/supervisor.js +162 -15
  549. package/dist/runtime/supervisor.js.map +1 -1
  550. package/dist/runtime/waves.d.ts +1 -1
  551. package/dist/runtime/waves.d.ts.map +1 -1
  552. package/dist/runtime/waves.js +86 -19
  553. package/dist/runtime/waves.js.map +1 -1
  554. package/examples/01-local-native.yaml +4 -1
  555. package/examples/03-byo-infra.yaml +17 -7
  556. package/examples/05-appliance-helm.yaml +1 -1
  557. package/examples/06-biome-sources.yaml +4 -1
  558. package/package.json +20 -28
  559. package/xema.config.example.yaml +22 -18
  560. package/LICENSE +0 -176
  561. package/dist/lib/command-registry.d.ts +0 -5
  562. package/dist/lib/command-registry.d.ts.map +0 -1
  563. package/dist/lib/command-registry.js +0 -17
  564. package/dist/lib/command-registry.js.map +0 -1
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SessionExpiredError = void 0;
4
+ exports.ensureUsableSession = ensureUsableSession;
5
+ exports.loadUsableSession = loadUsableSession;
6
+ const device_flow_1 = require("./device-flow");
7
+ const session_store_1 = require("./session-store");
8
+ class SessionExpiredError extends Error {
9
+ constructor(message) {
10
+ super(message);
11
+ this.name = 'SessionExpiredError';
12
+ }
13
+ }
14
+ exports.SessionExpiredError = SessionExpiredError;
15
+ async function ensureUsableSession(session, deps = (0, device_flow_1.defaultDeviceFlowDeps)(), path = session_store_1.SESSION_FILE) {
16
+ if (session === undefined) {
17
+ return undefined;
18
+ }
19
+ if ((0, session_store_1.isAccessTokenUsable)(session, deps.now())) {
20
+ return session;
21
+ }
22
+ if (session.refreshToken === undefined) {
23
+ throw new SessionExpiredError('Your Xema session has expired and carries no refresh token. ' +
24
+ 'Run `xema login` to sign in again.');
25
+ }
26
+ const endpoints = await (0, device_flow_1.discoverOidcEndpoints)(session.issuer, deps);
27
+ const tokens = await (0, device_flow_1.refreshAccessToken)(endpoints, session.clientId, session.refreshToken, deps);
28
+ const refreshed = {
29
+ endpoint: session.endpoint,
30
+ issuer: session.issuer,
31
+ clientId: session.clientId,
32
+ accessToken: tokens.accessToken,
33
+ refreshToken: tokens.refreshToken ?? session.refreshToken,
34
+ expiresAt: tokens.expiresAt,
35
+ ...(session.subject !== undefined ? { subject: session.subject } : {}),
36
+ };
37
+ (0, session_store_1.writeSession)(refreshed, path);
38
+ return refreshed;
39
+ }
40
+ async function loadUsableSession(deps = (0, device_flow_1.defaultDeviceFlowDeps)(), path = session_store_1.SESSION_FILE) {
41
+ return ensureUsableSession((0, session_store_1.readSession)(path), deps, path);
42
+ }
43
+ //# sourceMappingURL=session-auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-auth.js","sourceRoot":"","sources":["../../../src/runtime/auth/session-auth.ts"],"names":[],"mappings":";;;AAyCA,kDAyCC;AAMD,8CAKC;AAjFD,+CAKuB;AACvB,mDAMyB;AAGzB,MAAa,mBAAoB,SAAQ,KAAK;IAC5C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACpC,CAAC;CACF;AALD,kDAKC;AASM,KAAK,UAAU,mBAAmB,CACvC,OAAgC,EAChC,OAAuB,IAAA,mCAAqB,GAAE,EAC9C,OAAe,4BAAY;IAE3B,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,IAAA,mCAAmB,EAAC,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;QAC7C,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QACvC,MAAM,IAAI,mBAAmB,CAC3B,8DAA8D;YAC5D,oCAAoC,CACvC,CAAC;IACJ,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,IAAA,mCAAqB,EAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACpE,MAAM,MAAM,GAAG,MAAM,IAAA,gCAAkB,EACrC,SAAS,EACT,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,YAAY,EACpB,IAAI,CACL,CAAC;IAKF,MAAM,SAAS,GAAgB;QAC7B,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,OAAO,CAAC,YAAY;QACzD,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACvE,CAAC;IACF,IAAA,4BAAY,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC9B,OAAO,SAAS,CAAC;AACnB,CAAC;AAMM,KAAK,UAAU,iBAAiB,CACrC,OAAuB,IAAA,mCAAqB,GAAE,EAC9C,OAAe,4BAAY;IAE3B,OAAO,mBAAmB,CAAC,IAAA,2BAAW,EAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const SESSION_FILE: string;
2
+ export interface XemaSession {
3
+ readonly endpoint: string;
4
+ readonly issuer: string;
5
+ readonly clientId: string;
6
+ readonly accessToken: string;
7
+ readonly refreshToken?: string;
8
+ readonly expiresAt: number;
9
+ readonly subject?: string;
10
+ }
11
+ export declare class SessionStoreError extends Error {
12
+ constructor(message: string);
13
+ }
14
+ export declare function readSession(path?: string): XemaSession | undefined;
15
+ export declare function writeSession(session: XemaSession, path?: string): void;
16
+ export declare function clearSession(path?: string): boolean;
17
+ export declare const SESSION_EXPIRY_SKEW_MS = 60000;
18
+ export declare function isAccessTokenUsable(session: XemaSession, now: number): boolean;
19
+ //# sourceMappingURL=session-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../src/runtime/auth/session-store.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,YAAY,QAA2C,CAAC;AAerE,MAAM,WAAW,WAAW;IAE1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAGD,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;CAI5B;AA2BD,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAqB,GAAG,WAAW,GAAG,SAAS,CA0ChF;AAQD,wBAAgB,YAAY,CAC1B,OAAO,EAAE,WAAW,EACpB,IAAI,GAAE,MAAqB,GAC1B,IAAI,CAON;AAMD,wBAAgB,YAAY,CAAC,IAAI,GAAE,MAAqB,GAAG,OAAO,CAMjE;AASD,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAG7C,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAE9E"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SESSION_EXPIRY_SKEW_MS = exports.SessionStoreError = exports.SESSION_FILE = void 0;
4
+ exports.readSession = readSession;
5
+ exports.writeSession = writeSession;
6
+ exports.clearSession = clearSession;
7
+ exports.isAccessTokenUsable = isAccessTokenUsable;
8
+ const node_fs_1 = require("node:fs");
9
+ const node_os_1 = require("node:os");
10
+ const node_path_1 = require("node:path");
11
+ exports.SESSION_FILE = (0, node_path_1.join)((0, node_os_1.homedir)(), '.xema', 'session.json');
12
+ const SESSION_FILE_MODE = 0o600;
13
+ const SESSION_DIR_MODE = 0o700;
14
+ class SessionStoreError extends Error {
15
+ constructor(message) {
16
+ super(message);
17
+ this.name = 'SessionStoreError';
18
+ }
19
+ }
20
+ exports.SessionStoreError = SessionStoreError;
21
+ function readString(record, field, path) {
22
+ const value = record[field];
23
+ if (typeof value !== 'string' || value.length === 0) {
24
+ throw new SessionStoreError(`${path} is malformed: "${field}" must be a non-empty string. ` +
25
+ 'Run `xema logout` then `xema login` to recreate it.');
26
+ }
27
+ return value;
28
+ }
29
+ function readSession(path = exports.SESSION_FILE) {
30
+ if (!(0, node_fs_1.existsSync)(path)) {
31
+ return undefined;
32
+ }
33
+ let parsed;
34
+ try {
35
+ parsed = JSON.parse((0, node_fs_1.readFileSync)(path, 'utf8'));
36
+ }
37
+ catch (err) {
38
+ const detail = err instanceof Error ? err.message : String(err);
39
+ throw new SessionStoreError(`${path} is not valid JSON (${detail}). Run \`xema logout\` to remove it.`);
40
+ }
41
+ if (typeof parsed !== 'object' || parsed === null) {
42
+ throw new SessionStoreError(`${path} is malformed: expected a JSON object. Run \`xema logout\` to remove it.`);
43
+ }
44
+ const record = parsed;
45
+ const expiresAt = record.expiresAt;
46
+ if (typeof expiresAt !== 'number' || !Number.isFinite(expiresAt)) {
47
+ throw new SessionStoreError(`${path} is malformed: "expiresAt" must be a number. ` +
48
+ 'Run `xema logout` then `xema login` to recreate it.');
49
+ }
50
+ const refreshToken = record.refreshToken;
51
+ const subject = record.subject;
52
+ return {
53
+ endpoint: readString(record, 'endpoint', path),
54
+ issuer: readString(record, 'issuer', path),
55
+ clientId: readString(record, 'clientId', path),
56
+ accessToken: readString(record, 'accessToken', path),
57
+ ...(typeof refreshToken === 'string' && refreshToken.length > 0
58
+ ? { refreshToken }
59
+ : {}),
60
+ expiresAt,
61
+ ...(typeof subject === 'string' && subject.length > 0 ? { subject } : {}),
62
+ };
63
+ }
64
+ function writeSession(session, path = exports.SESSION_FILE) {
65
+ (0, node_fs_1.mkdirSync)((0, node_path_1.dirname)(path), { recursive: true, mode: SESSION_DIR_MODE });
66
+ (0, node_fs_1.writeFileSync)(path, `${JSON.stringify(session, null, 2)}\n`, {
67
+ encoding: 'utf8',
68
+ mode: SESSION_FILE_MODE,
69
+ });
70
+ (0, node_fs_1.chmodSync)(path, SESSION_FILE_MODE);
71
+ }
72
+ function clearSession(path = exports.SESSION_FILE) {
73
+ if (!(0, node_fs_1.existsSync)(path)) {
74
+ return false;
75
+ }
76
+ (0, node_fs_1.rmSync)(path);
77
+ return true;
78
+ }
79
+ exports.SESSION_EXPIRY_SKEW_MS = 60_000;
80
+ function isAccessTokenUsable(session, now) {
81
+ return session.expiresAt - exports.SESSION_EXPIRY_SKEW_MS > now;
82
+ }
83
+ //# sourceMappingURL=session-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-store.js","sourceRoot":"","sources":["../../../src/runtime/auth/session-store.ts"],"names":[],"mappings":";;;AA0FA,kCA0CC;AAQD,oCAUC;AAMD,oCAMC;AAYD,kDAEC;AAjKD,qCAOiB;AACjB,qCAAkC;AAClC,yCAA0C;AAG7B,QAAA,YAAY,GAAG,IAAA,gBAAI,EAAC,IAAA,iBAAO,GAAE,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;AAGrE,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAGhC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAyB/B,MAAa,iBAA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E,MAAM;QAChB,IAAI,EAAE,iBAAiB;KACxB,CAAC,CAAC;IACH,IAAA,mBAAS,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;AACrC,CAAC;AAMD,SAAgB,YAAY,CAAC,OAAe,oBAAY;IACtD,IAAI,CAAC,IAAA,oBAAU,EAAC,IAAI,CAAC,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAA,gBAAM,EAAC,IAAI,CAAC,CAAC;IACb,OAAO,IAAI,CAAC;AACd,CAAC;AASY,QAAA,sBAAsB,GAAG,MAAM,CAAC;AAG7C,SAAgB,mBAAmB,CAAC,OAAoB,EAAE,GAAW;IACnE,OAAO,OAAO,CAAC,SAAS,GAAG,8BAAsB,GAAG,GAAG,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function displaySubjectFromToken(token: string): string | undefined;
2
+ //# sourceMappingURL=token-claims.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token-claims.d.ts","sourceRoot":"","sources":["../../../src/runtime/auth/token-claims.ts"],"names":[],"mappings":"AAiCA,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAgCzE"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.displaySubjectFromToken = displaySubjectFromToken;
4
+ const SUBJECT_CLAIMS = ['preferred_username', 'email', 'sub'];
5
+ function decodeSegment(segment) {
6
+ try {
7
+ return Buffer.from(segment, 'base64url').toString('utf8');
8
+ }
9
+ catch {
10
+ return undefined;
11
+ }
12
+ }
13
+ function displaySubjectFromToken(token) {
14
+ const parts = token.split('.');
15
+ if (parts.length !== 3) {
16
+ return undefined;
17
+ }
18
+ const payloadSegment = parts[1];
19
+ if (payloadSegment === undefined || payloadSegment.length === 0) {
20
+ return undefined;
21
+ }
22
+ const json = decodeSegment(payloadSegment);
23
+ if (json === undefined) {
24
+ return undefined;
25
+ }
26
+ let parsed;
27
+ try {
28
+ parsed = JSON.parse(json);
29
+ }
30
+ catch {
31
+ return undefined;
32
+ }
33
+ if (typeof parsed !== 'object' || parsed === null) {
34
+ return undefined;
35
+ }
36
+ const claims = parsed;
37
+ for (const claim of SUBJECT_CLAIMS) {
38
+ const value = claims[claim];
39
+ if (typeof value === 'string' && value.length > 0) {
40
+ return value;
41
+ }
42
+ }
43
+ return undefined;
44
+ }
45
+ //# sourceMappingURL=token-claims.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token-claims.js","sourceRoot":"","sources":["../../../src/runtime/auth/token-claims.ts"],"names":[],"mappings":";;AAiCA,0DAgCC;AAlDD,MAAM,cAAc,GAAG,CAAC,oBAAoB,EAAE,OAAO,EAAE,KAAK,CAAU,CAAC;AAGvE,SAAS,aAAa,CAAC,OAAe;IACpC,IAAI,CAAC;QACH,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AASD,SAAgB,uBAAuB,CAAC,KAAa;IACnD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAChC,IAAI,cAAc,KAAK,SAAS,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChE,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,IAAI,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QAClD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,MAAM,GAAG,MAAiC,CAAC;IACjD,KAAK,MAAM,KAAK,IAAI,cAAc,EAAE,CAAC;QACnC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type BiomeValidationReport } from './biome-validate';
2
+ import { type DiscoveredBiome } from './sources/manifest-walk';
3
+ import type { BringUpResult } from './supervisor';
4
+ export declare const BIOME_HOST_BIOME_ID = "biome-host";
5
+ export declare function locateBiomeRoot(startPath: string): string | null;
6
+ export declare function discoverTargetBiome(biomeRoot: string): DiscoveredBiome;
7
+ export declare function devSliceBiomeIds(biome: DiscoveredBiome): string[];
8
+ export declare enum OwnServiceState {
9
+ Ready = "ready",
10
+ Failed = "failed"
11
+ }
12
+ export interface OwnServiceStatus {
13
+ readonly name: string;
14
+ readonly state: OwnServiceState;
15
+ readonly detail: string;
16
+ }
17
+ export declare function projectOwnServices(biome: DiscoveredBiome, result: BringUpResult): OwnServiceStatus[];
18
+ export declare function formatValidationResults(report: BiomeValidationReport): string;
19
+ export interface BiomeDevReportInput {
20
+ readonly biome: DiscoveredBiome;
21
+ readonly biomeRoot: string;
22
+ readonly validation: BiomeValidationReport;
23
+ readonly sliceSize: number;
24
+ readonly addedPrerequisites: readonly string[];
25
+ readonly ownServices?: readonly OwnServiceStatus[];
26
+ }
27
+ export declare function formatBiomeDevReport(input: BiomeDevReportInput): string;
28
+ //# sourceMappingURL=biome-dev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"biome-dev.d.ts","sourceRoot":"","sources":["../../src/runtime/biome-dev.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAmBlD,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAQhD,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAYhE;AAQD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,CAWtE;AAWD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,EAAE,CAejE;AAGD,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAGD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAEhC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAOD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,aAAa,GACpB,gBAAgB,EAAE,CAepB;AASD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,qBAAqB,GAAG,MAAM,CAc7E;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,qBAAqB,CAAC;IAE3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;IAE/C,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACpD;AAOD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CA8CvE"}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OwnServiceState = exports.BIOME_HOST_BIOME_ID = void 0;
4
+ exports.locateBiomeRoot = locateBiomeRoot;
5
+ exports.discoverTargetBiome = discoverTargetBiome;
6
+ exports.devSliceBiomeIds = devSliceBiomeIds;
7
+ exports.projectOwnServices = projectOwnServices;
8
+ exports.formatValidationResults = formatValidationResults;
9
+ exports.formatBiomeDevReport = formatBiomeDevReport;
10
+ const node_fs_1 = require("node:fs");
11
+ const node_path_1 = require("node:path");
12
+ const biome_1 = require("@xemahq/kernel-contracts/biome");
13
+ const biome_validate_1 = require("./biome-validate");
14
+ const manifest_walk_1 = require("./sources/manifest-walk");
15
+ exports.BIOME_HOST_BIOME_ID = 'biome-host';
16
+ function locateBiomeRoot(startPath) {
17
+ let cursor = (0, node_path_1.resolve)(startPath);
18
+ for (;;) {
19
+ if ((0, node_fs_1.existsSync)((0, node_path_1.join)(cursor, biome_1.BIOME_MANIFEST_FILENAME))) {
20
+ return cursor;
21
+ }
22
+ const parent = (0, node_path_1.dirname)(cursor);
23
+ if (parent === cursor) {
24
+ return null;
25
+ }
26
+ cursor = parent;
27
+ }
28
+ }
29
+ function discoverTargetBiome(biomeRoot) {
30
+ const { biomes } = (0, manifest_walk_1.walkBiomeManifests)(biomeRoot);
31
+ const biome = biomes[0];
32
+ if (biomes.length !== 1 || biome === undefined) {
33
+ throw new Error(`discoverTargetBiome: expected exactly the root biome at ${biomeRoot}, ` +
34
+ `found ${String(biomes.length)}.`);
35
+ }
36
+ return biome;
37
+ }
38
+ function devSliceBiomeIds(biome) {
39
+ const ids = new Set();
40
+ if (biome.services.length > 0) {
41
+ ids.add(biome.id);
42
+ }
43
+ ids.add(exports.BIOME_HOST_BIOME_ID);
44
+ for (const required of biome.requires) {
45
+ ids.add(required);
46
+ }
47
+ if (biome.manifest.xema.target === 'server') {
48
+ for (const dep of biome.manifest.xema.dependencies ?? []) {
49
+ ids.add(dep);
50
+ }
51
+ }
52
+ return [...ids];
53
+ }
54
+ var OwnServiceState;
55
+ (function (OwnServiceState) {
56
+ OwnServiceState["Ready"] = "ready";
57
+ OwnServiceState["Failed"] = "failed";
58
+ })(OwnServiceState || (exports.OwnServiceState = OwnServiceState = {}));
59
+ function projectOwnServices(biome, result) {
60
+ const running = new Map(result.running.map((r) => [r.name, r]));
61
+ const skipped = new Map(result.skipped.map((s) => [s.name, s]));
62
+ return biome.services.map((svc) => {
63
+ const up = running.get(svc.name);
64
+ if (up !== undefined) {
65
+ return { name: svc.name, state: OwnServiceState.Ready, detail: up.url };
66
+ }
67
+ const skip = skipped.get(svc.name);
68
+ return {
69
+ name: svc.name,
70
+ state: OwnServiceState.Failed,
71
+ detail: skip?.reason ?? 'not in the bring-up result (dropped before boot)',
72
+ };
73
+ });
74
+ }
75
+ const STATUS_GLYPH = {
76
+ [biome_validate_1.BiomeCheckStatus.Passed]: '✓',
77
+ [biome_validate_1.BiomeCheckStatus.Failed]: '✗',
78
+ [biome_validate_1.BiomeCheckStatus.Skipped]: '-',
79
+ };
80
+ function formatValidationResults(report) {
81
+ const lines = [];
82
+ const failed = report.results.filter((r) => r.status === biome_validate_1.BiomeCheckStatus.Failed).length;
83
+ lines.push(`validation : ${String(report.results.length)} check(s) — ` +
84
+ (failed > 0 ? `${String(failed)} FAILED` : 'all passed'));
85
+ for (const result of report.results) {
86
+ lines.push(` ${STATUS_GLYPH[result.status]} ${result.check.padEnd(13)} ${result.summary}`);
87
+ for (const issue of result.issues) {
88
+ lines.push(` - ${issue}`);
89
+ }
90
+ }
91
+ return lines.join('\n');
92
+ }
93
+ function formatBiomeDevReport(input) {
94
+ const { biome, validation } = input;
95
+ const lines = [];
96
+ const rule = '─'.repeat(72);
97
+ lines.push('xema biome dev — readiness report');
98
+ lines.push(rule);
99
+ lines.push(`biome : ${biome.id} v${biome.version} (${biome.tier}, ${biome.target}) at ${input.biomeRoot}`);
100
+ lines.push(`slice : ${String(input.sliceSize)} service(s)` +
101
+ (input.addedPrerequisites.length > 0
102
+ ? ` (+${String(input.addedPrerequisites.length)} hard prerequisite(s): ` +
103
+ `${input.addedPrerequisites.join(', ')})`
104
+ : ''));
105
+ lines.push(formatValidationResults(validation));
106
+ if (validation.contributionCounts.size > 0) {
107
+ const byKind = [...validation.contributionCounts.entries()]
108
+ .sort(([a], [b]) => a.localeCompare(b))
109
+ .map(([kind, n]) => `${kind} ×${String(n)}`)
110
+ .join(', ');
111
+ lines.push(`contribs : ${byKind}`);
112
+ }
113
+ if (input.ownServices !== undefined) {
114
+ if (input.ownServices.length === 0) {
115
+ lines.push('services : (none — this biome ships no runnable services)');
116
+ }
117
+ else {
118
+ lines.push('services :');
119
+ for (const svc of input.ownServices) {
120
+ const glyph = svc.state === OwnServiceState.Ready ? '✓' : '✗';
121
+ lines.push(` ${glyph} ${svc.name.padEnd(30)} ${svc.state} ${svc.detail}`);
122
+ }
123
+ }
124
+ }
125
+ lines.push(rule);
126
+ lines.push('next steps :');
127
+ lines.push(` install into a running platform : xema biome install ${biome.id} --project <id> | --org <id>`);
128
+ lines.push(` publish as a signed artifact : xema biome publish ${input.biomeRoot}`);
129
+ return lines.join('\n');
130
+ }
131
+ //# sourceMappingURL=biome-dev.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"biome-dev.js","sourceRoot":"","sources":["../../src/runtime/biome-dev.ts"],"names":[],"mappings":";;;AAmCA,0CAYC;AAQD,kDAWC;AAWD,4CAeC;AAqBD,gDAkBC;AASD,0DAcC;AAmBD,oDA8CC;AA3ND,qCAAqC;AACrC,yCAAmD;AAEnD,0DAAyE;AAEzE,qDAAgF;AAChF,2DAAmF;AAqBtE,Q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IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;aAC3C,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,KAAK,CAAC,IAAI,CAAC,gBAAgB,MAAM,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QACpC,IAAI,KAAK,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAC;QAC5E,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAC3B,KAAK,MAAM,GAAG,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;gBACpC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,KAAK,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBAC9D,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;YAC9E,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjB,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3B,KAAK,CAAC,IAAI,CACR,0DAA0D,KAAK,CAAC,EAAE,8BAA8B,CACjG,CAAC;IACF,KAAK,CAAC,IAAI,CAAC,0DAA0D,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;IACxF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type SourceSpec } from './sources/schema';
2
+ import type { CredentialResolver } from './sources/credentials';
3
+ import type { BiomeManifest } from '@xemahq/kernel-contracts/biome';
4
+ export declare class LocalBiomeInstallError extends Error {
5
+ readonly exitCode: LocalBiomeInstallExitCode;
6
+ constructor(message: string, exitCode?: LocalBiomeInstallExitCode);
7
+ }
8
+ export declare enum LocalBiomeInstallExitCode {
9
+ GenericError = 1,
10
+ MissingDependency = 2,
11
+ ConfigurationError = 3
12
+ }
13
+ export interface FetchBiomeLocallyParams {
14
+ readonly biomeId: string;
15
+ readonly source: SourceSpec;
16
+ readonly credentials: CredentialResolver;
17
+ readonly packageOverride?: string;
18
+ readonly tag?: string;
19
+ readonly version?: string;
20
+ readonly log?: (line: string) => void;
21
+ }
22
+ export interface FetchedBiome {
23
+ readonly dir: string;
24
+ readonly manifest: BiomeManifest;
25
+ readonly biomeId: string;
26
+ readonly version: string;
27
+ }
28
+ export declare function fetchBiomeLocally(params: FetchBiomeLocallyParams): Promise<FetchedBiome>;
29
+ //# sourceMappingURL=biome-local-install.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"biome-local-install.d.ts","sourceRoot":"","sources":["../../src/runtime/biome-local-install.ts"],"names":[],"mappings":"AAOA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAmDpE,qBAAa,sBAAuB,SAAQ,KAAK;IAG7C,QAAQ,CAAC,QAAQ,EAAE,yBAAyB;gBAD5C,OAAO,EAAE,MAAM,EACN,QAAQ,GAAE,yBAAkE;CAKxF;AAUD,oBAAY,yBAAyB;IACnC,YAAY,IAAI;IAChB,iBAAiB,IAAI;IACrB,kBAAkB,IAAI;CACvB;AAGD,MAAM,WAAW,uBAAuB;IAEtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAE5B,QAAQ,CAA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