@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.
- package/README.md +90 -21
- package/dist/assets/appliance-base/distribution.lock.json +5144 -0
- package/dist/assets/appliance-base/images.lock.json +1706 -0
- package/dist/assets/appliance-lean/distribution.lock.json +2888 -0
- package/dist/assets/appliance-lean/images.lock.json +1229 -0
- package/dist/assets/boot-graph.json +380 -28
- package/dist/assets/cloud/distribution.lock.json +5278 -0
- package/dist/assets/cloud/images.lock.json +1713 -0
- package/dist/assets/core/distribution.lock.json +2401 -354
- package/dist/assets/core/images.lock.json +1208 -268
- package/dist/assets/distribution-assets.manifest.json +147 -0
- package/dist/assets/keycloak/realm-xema.json +412 -0
- package/dist/assets/minimal/distribution.lock.json +2710 -0
- package/dist/assets/minimal/images.lock.json +1149 -0
- package/dist/assets/oss/distribution.lock.json +3742 -494
- package/dist/assets/oss/images.lock.json +1591 -472
- package/dist/assets/starter/distribution.lock.json +3422 -0
- package/dist/assets/starter/images.lock.json +1404 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +40 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/apply.d.ts.map +1 -1
- package/dist/commands/apply.js +2 -2
- package/dist/commands/apply.js.map +1 -1
- package/dist/commands/biome-dev.d.ts +3 -0
- package/dist/commands/biome-dev.d.ts.map +1 -0
- package/dist/commands/biome-dev.js +176 -0
- package/dist/commands/biome-dev.js.map +1 -0
- package/dist/commands/biome-validate.d.ts +10 -0
- package/dist/commands/biome-validate.d.ts.map +1 -0
- package/dist/commands/biome-validate.js +49 -0
- package/dist/commands/biome-validate.js.map +1 -0
- package/dist/commands/biome.d.ts.map +1 -1
- package/dist/commands/biome.js +437 -26
- package/dist/commands/biome.js.map +1 -1
- package/dist/commands/canopy.d.ts +3 -0
- package/dist/commands/canopy.d.ts.map +1 -0
- package/dist/commands/canopy.js +214 -0
- package/dist/commands/canopy.js.map +1 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +78 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +92 -20
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/dist.d.ts +13 -0
- package/dist/commands/dist.d.ts.map +1 -1
- package/dist/commands/dist.js +51 -11
- package/dist/commands/dist.js.map +1 -1
- package/dist/commands/doctor.d.ts +25 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +422 -18
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts +10 -0
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +107 -33
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/export.js +1 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +2 -2
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +56 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/installation.d.ts +3 -0
- package/dist/commands/installation.d.ts.map +1 -0
- package/dist/commands/installation.js +258 -0
- package/dist/commands/installation.js.map +1 -0
- package/dist/commands/license.d.ts +3 -0
- package/dist/commands/license.d.ts.map +1 -0
- package/dist/commands/license.js +97 -0
- package/dist/commands/license.js.map +1 -0
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +127 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logs.d.ts +21 -0
- package/dist/commands/logs.d.ts.map +1 -1
- package/dist/commands/logs.js +133 -32
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/objects.d.ts.map +1 -1
- package/dist/commands/objects.js +85 -6
- package/dist/commands/objects.js.map +1 -1
- package/dist/commands/plan.d.ts.map +1 -1
- package/dist/commands/plan.js +2 -2
- package/dist/commands/plan.js.map +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +61 -9
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +67 -14
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/shell.d.ts.map +1 -1
- package/dist/commands/shell.js +190 -6
- package/dist/commands/shell.js.map +1 -1
- package/dist/commands/source.d.ts +3 -0
- package/dist/commands/source.d.ts.map +1 -0
- package/dist/commands/source.js +120 -0
- package/dist/commands/source.js.map +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +29 -3
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +70 -5
- package/dist/commands/up.js.map +1 -1
- package/dist/dev/env-defaults.d.ts +1 -0
- package/dist/dev/env-defaults.d.ts.map +1 -1
- package/dist/dev/env-defaults.js +24 -12
- package/dist/dev/env-defaults.js.map +1 -1
- package/dist/dev/forked-worker-bootstrap-protocol.d.ts +17 -0
- package/dist/dev/forked-worker-bootstrap-protocol.d.ts.map +1 -0
- package/dist/dev/forked-worker-bootstrap-protocol.js +35 -0
- package/dist/dev/forked-worker-bootstrap-protocol.js.map +1 -0
- package/dist/dev/forked-worker-bootstrap.d.ts +18 -0
- package/dist/dev/forked-worker-bootstrap.d.ts.map +1 -0
- package/dist/dev/forked-worker-bootstrap.js +84 -0
- package/dist/dev/forked-worker-bootstrap.js.map +1 -0
- package/dist/dev/forked-worker.d.ts +29 -0
- package/dist/dev/forked-worker.d.ts.map +1 -1
- package/dist/dev/forked-worker.js +267 -42
- package/dist/dev/forked-worker.js.map +1 -1
- package/dist/dev/opa-policies.d.ts +3 -0
- package/dist/dev/opa-policies.d.ts.map +1 -0
- package/dist/dev/opa-policies.js +64 -0
- package/dist/dev/opa-policies.js.map +1 -0
- package/dist/lib/cli-errors.d.ts +7 -0
- package/dist/lib/cli-errors.d.ts.map +1 -0
- package/dist/lib/cli-errors.js +30 -0
- package/dist/lib/cli-errors.js.map +1 -0
- package/dist/lib/control-plane.d.ts +5 -1
- package/dist/lib/control-plane.d.ts.map +1 -1
- package/dist/lib/control-plane.js +61 -8
- package/dist/lib/control-plane.js.map +1 -1
- package/dist/lib/exit-codes.d.ts +3 -4
- package/dist/lib/exit-codes.d.ts.map +1 -1
- package/dist/lib/exit-codes.js +3 -4
- package/dist/lib/exit-codes.js.map +1 -1
- package/dist/lib/http-error.d.ts +2 -0
- package/dist/lib/http-error.d.ts.map +1 -0
- package/dist/lib/http-error.js +51 -0
- package/dist/lib/http-error.js.map +1 -0
- package/dist/lib/roster-profile.d.ts +10 -0
- package/dist/lib/roster-profile.d.ts.map +1 -0
- package/dist/lib/roster-profile.js +44 -0
- package/dist/lib/roster-profile.js.map +1 -0
- package/dist/runtime/asset-provenance.d.ts +17 -0
- package/dist/runtime/asset-provenance.d.ts.map +1 -0
- package/dist/runtime/asset-provenance.js +29 -0
- package/dist/runtime/asset-provenance.js.map +1 -0
- package/dist/runtime/auth/client-bootstrap.d.ts +11 -0
- package/dist/runtime/auth/client-bootstrap.d.ts.map +1 -0
- package/dist/runtime/auth/client-bootstrap.js +60 -0
- package/dist/runtime/auth/client-bootstrap.js.map +1 -0
- package/dist/runtime/auth/device-flow.d.ts +43 -0
- package/dist/runtime/auth/device-flow.d.ts.map +1 -0
- package/dist/runtime/auth/device-flow.js +201 -0
- package/dist/runtime/auth/device-flow.js.map +1 -0
- package/dist/runtime/auth/session-auth.d.ts +8 -0
- package/dist/runtime/auth/session-auth.d.ts.map +1 -0
- package/dist/runtime/auth/session-auth.js +43 -0
- package/dist/runtime/auth/session-auth.js.map +1 -0
- package/dist/runtime/auth/session-store.d.ts +19 -0
- package/dist/runtime/auth/session-store.d.ts.map +1 -0
- package/dist/runtime/auth/session-store.js +83 -0
- package/dist/runtime/auth/session-store.js.map +1 -0
- package/dist/runtime/auth/token-claims.d.ts +2 -0
- package/dist/runtime/auth/token-claims.d.ts.map +1 -0
- package/dist/runtime/auth/token-claims.js +45 -0
- package/dist/runtime/auth/token-claims.js.map +1 -0
- package/dist/runtime/biome-dev.d.ts +28 -0
- package/dist/runtime/biome-dev.d.ts.map +1 -0
- package/dist/runtime/biome-dev.js +131 -0
- package/dist/runtime/biome-dev.js.map +1 -0
- package/dist/runtime/biome-local-install.d.ts +29 -0
- package/dist/runtime/biome-local-install.d.ts.map +1 -0
- package/dist/runtime/biome-local-install.js +243 -0
- package/dist/runtime/biome-local-install.js.map +1 -0
- package/dist/runtime/biome-provenance.d.ts +26 -0
- package/dist/runtime/biome-provenance.d.ts.map +1 -0
- package/dist/runtime/biome-provenance.js +70 -0
- package/dist/runtime/biome-provenance.js.map +1 -0
- package/dist/runtime/biome-publish.d.ts +48 -0
- package/dist/runtime/biome-publish.d.ts.map +1 -0
- package/dist/runtime/biome-publish.js +278 -0
- package/dist/runtime/biome-publish.js.map +1 -0
- package/dist/runtime/biome-scaffold.d.ts +35 -0
- package/dist/runtime/biome-scaffold.d.ts.map +1 -0
- package/dist/runtime/biome-scaffold.js +151 -0
- package/dist/runtime/biome-scaffold.js.map +1 -0
- package/dist/runtime/biome-validate.d.ts +28 -0
- package/dist/runtime/biome-validate.d.ts.map +1 -0
- package/dist/runtime/biome-validate.js +452 -0
- package/dist/runtime/biome-validate.js.map +1 -0
- package/dist/runtime/boot-graph-loader.d.ts +1 -0
- package/dist/runtime/boot-graph-loader.d.ts.map +1 -1
- package/dist/runtime/boot-graph-loader.js +99 -7
- package/dist/runtime/boot-graph-loader.js.map +1 -1
- package/dist/runtime/canopy-refs.d.ts +8 -0
- package/dist/runtime/canopy-refs.d.ts.map +1 -0
- package/dist/runtime/canopy-refs.js +51 -0
- package/dist/runtime/canopy-refs.js.map +1 -0
- package/dist/runtime/canopy-replies.d.ts +14 -0
- package/dist/runtime/canopy-replies.d.ts.map +1 -0
- package/dist/runtime/canopy-replies.js +39 -0
- package/dist/runtime/canopy-replies.js.map +1 -0
- package/dist/runtime/capability-invoke.d.ts +35 -0
- package/dist/runtime/capability-invoke.d.ts.map +1 -0
- package/dist/runtime/capability-invoke.js +119 -0
- package/dist/runtime/capability-invoke.js.map +1 -0
- package/dist/runtime/cleanup.d.ts +10 -0
- package/dist/runtime/cleanup.d.ts.map +1 -0
- package/dist/runtime/cleanup.js +35 -0
- package/dist/runtime/cleanup.js.map +1 -0
- package/dist/runtime/config/dev-mode.d.ts +8 -0
- package/dist/runtime/config/dev-mode.d.ts.map +1 -0
- package/dist/runtime/config/dev-mode.js +84 -0
- package/dist/runtime/config/dev-mode.js.map +1 -0
- package/dist/runtime/config/init-presets.d.ts +1 -1
- package/dist/runtime/config/init-presets.d.ts.map +1 -1
- package/dist/runtime/config/init-presets.js +68 -13
- package/dist/runtime/config/init-presets.js.map +1 -1
- package/dist/runtime/config/loader.d.ts +1 -0
- package/dist/runtime/config/loader.d.ts.map +1 -1
- package/dist/runtime/config/loader.js +41 -5
- package/dist/runtime/config/loader.js.map +1 -1
- package/dist/runtime/config/schema.d.ts +27 -12
- package/dist/runtime/config/schema.d.ts.map +1 -1
- package/dist/runtime/config/schema.js +113 -8
- package/dist/runtime/config/schema.js.map +1 -1
- package/dist/runtime/config/sources-config.d.ts +14 -0
- package/dist/runtime/config/sources-config.d.ts.map +1 -0
- package/dist/runtime/config/sources-config.js +79 -0
- package/dist/runtime/config/sources-config.js.map +1 -0
- package/dist/runtime/distribution/available-biome.d.ts.map +1 -1
- package/dist/runtime/distribution/available-biome.js +2 -0
- package/dist/runtime/distribution/available-biome.js.map +1 -1
- package/dist/runtime/distribution/compose.d.ts +2 -1
- package/dist/runtime/distribution/compose.d.ts.map +1 -1
- package/dist/runtime/distribution/compose.js +4 -1
- package/dist/runtime/distribution/compose.js.map +1 -1
- package/dist/runtime/env-seeder.d.ts +5 -0
- package/dist/runtime/env-seeder.d.ts.map +1 -1
- package/dist/runtime/env-seeder.js +152 -19
- package/dist/runtime/env-seeder.js.map +1 -1
- package/dist/runtime/foreground.d.ts +9 -0
- package/dist/runtime/foreground.d.ts.map +1 -1
- package/dist/runtime/foreground.js +37 -3
- package/dist/runtime/foreground.js.map +1 -1
- package/dist/runtime/infra/infra-catalog.d.ts +34 -1
- package/dist/runtime/infra/infra-catalog.d.ts.map +1 -1
- package/dist/runtime/infra/infra-catalog.js +202 -10
- package/dist/runtime/infra/infra-catalog.js.map +1 -1
- package/dist/runtime/infra/infra-environment.d.ts +10 -0
- package/dist/runtime/infra/infra-environment.d.ts.map +1 -0
- package/dist/runtime/infra/infra-environment.js +76 -0
- package/dist/runtime/infra/infra-environment.js.map +1 -0
- package/dist/runtime/infra/infra-plan.d.ts +2 -1
- package/dist/runtime/infra/infra-plan.d.ts.map +1 -1
- package/dist/runtime/infra/infra-plan.js +10 -0
- package/dist/runtime/infra/infra-plan.js.map +1 -1
- package/dist/runtime/infra/infra-runner.d.ts +16 -1
- package/dist/runtime/infra/infra-runner.d.ts.map +1 -1
- package/dist/runtime/infra/infra-runner.js +245 -55
- package/dist/runtime/infra/infra-runner.js.map +1 -1
- package/dist/runtime/infra/keycloak-realm.d.ts +25 -0
- package/dist/runtime/infra/keycloak-realm.d.ts.map +1 -0
- package/dist/runtime/infra/keycloak-realm.js +116 -0
- package/dist/runtime/infra/keycloak-realm.js.map +1 -0
- package/dist/runtime/infra/postgres-endpoint.d.ts +8 -0
- package/dist/runtime/infra/postgres-endpoint.d.ts.map +1 -0
- package/dist/runtime/infra/postgres-endpoint.js +21 -0
- package/dist/runtime/infra/postgres-endpoint.js.map +1 -0
- package/dist/runtime/installation/compiler.d.ts +114 -0
- package/dist/runtime/installation/compiler.d.ts.map +1 -0
- package/dist/runtime/installation/compiler.js +456 -0
- package/dist/runtime/installation/compiler.js.map +1 -0
- package/dist/runtime/installation/contract.d.ts +296 -0
- package/dist/runtime/installation/contract.d.ts.map +1 -0
- package/dist/runtime/installation/contract.js +504 -0
- package/dist/runtime/installation/contract.js.map +1 -0
- package/dist/runtime/installation/current-launcher-renderer.d.ts +12 -0
- package/dist/runtime/installation/current-launcher-renderer.d.ts.map +1 -0
- package/dist/runtime/installation/current-launcher-renderer.js +123 -0
- package/dist/runtime/installation/current-launcher-renderer.js.map +1 -0
- package/dist/runtime/installation/diagnostics.d.ts +16 -0
- package/dist/runtime/installation/diagnostics.d.ts.map +1 -0
- package/dist/runtime/installation/diagnostics.js +21 -0
- package/dist/runtime/installation/diagnostics.js.map +1 -0
- package/dist/runtime/installation/diff.d.ts +32 -0
- package/dist/runtime/installation/diff.d.ts.map +1 -0
- package/dist/runtime/installation/diff.js +136 -0
- package/dist/runtime/installation/diff.js.map +1 -0
- package/dist/runtime/installation/format.d.ts +3 -0
- package/dist/runtime/installation/format.d.ts.map +1 -0
- package/dist/runtime/installation/format.js +22 -0
- package/dist/runtime/installation/format.js.map +1 -0
- package/dist/runtime/installation/from-current-config.d.ts +9 -0
- package/dist/runtime/installation/from-current-config.d.ts.map +1 -0
- package/dist/runtime/installation/from-current-config.js +245 -0
- package/dist/runtime/installation/from-current-config.js.map +1 -0
- package/dist/runtime/installation/helm-release-readiness.d.ts +9 -0
- package/dist/runtime/installation/helm-release-readiness.d.ts.map +1 -0
- package/dist/runtime/installation/helm-release-readiness.js +97 -0
- package/dist/runtime/installation/helm-release-readiness.js.map +1 -0
- package/dist/runtime/installation/helm-release.d.ts +24 -0
- package/dist/runtime/installation/helm-release.d.ts.map +1 -0
- package/dist/runtime/installation/helm-release.js +96 -0
- package/dist/runtime/installation/helm-release.js.map +1 -0
- package/dist/runtime/installation/index.d.ts +22 -0
- package/dist/runtime/installation/index.d.ts.map +1 -0
- package/dist/runtime/installation/index.js +38 -0
- package/dist/runtime/installation/index.js.map +1 -0
- package/dist/runtime/installation/json-schema.d.ts +4 -0
- package/dist/runtime/installation/json-schema.d.ts.map +1 -0
- package/dist/runtime/installation/json-schema.js +16 -0
- package/dist/runtime/installation/json-schema.js.map +1 -0
- package/dist/runtime/installation/kubernetes-readiness.d.ts +60 -0
- package/dist/runtime/installation/kubernetes-readiness.d.ts.map +1 -0
- package/dist/runtime/installation/kubernetes-readiness.js +384 -0
- package/dist/runtime/installation/kubernetes-readiness.js.map +1 -0
- package/dist/runtime/installation/lifecycle.d.ts +25 -0
- package/dist/runtime/installation/lifecycle.d.ts.map +1 -0
- package/dist/runtime/installation/lifecycle.js +157 -0
- package/dist/runtime/installation/lifecycle.js.map +1 -0
- package/dist/runtime/installation/readiness-proof.d.ts +72 -0
- package/dist/runtime/installation/readiness-proof.d.ts.map +1 -0
- package/dist/runtime/installation/readiness-proof.js +142 -0
- package/dist/runtime/installation/readiness-proof.js.map +1 -0
- package/dist/runtime/installation/readiness.d.ts +21 -0
- package/dist/runtime/installation/readiness.d.ts.map +1 -0
- package/dist/runtime/installation/readiness.js +418 -0
- package/dist/runtime/installation/readiness.js.map +1 -0
- package/dist/runtime/installation/serialization.d.ts +3 -0
- package/dist/runtime/installation/serialization.d.ts.map +1 -0
- package/dist/runtime/installation/serialization.js +39 -0
- package/dist/runtime/installation/serialization.js.map +1 -0
- package/dist/runtime/installation/setup-profile.d.ts +8 -0
- package/dist/runtime/installation/setup-profile.d.ts.map +1 -0
- package/dist/runtime/installation/setup-profile.js +41 -0
- package/dist/runtime/installation/setup-profile.js.map +1 -0
- package/dist/runtime/installation/setup-renderer.d.ts +31 -0
- package/dist/runtime/installation/setup-renderer.d.ts.map +1 -0
- package/dist/runtime/installation/setup-renderer.js +238 -0
- package/dist/runtime/installation/setup-renderer.js.map +1 -0
- package/dist/runtime/installation/state-store.d.ts +28 -0
- package/dist/runtime/installation/state-store.d.ts.map +1 -0
- package/dist/runtime/installation/state-store.js +377 -0
- package/dist/runtime/installation/state-store.js.map +1 -0
- package/dist/runtime/installation/status.d.ts +24 -0
- package/dist/runtime/installation/status.d.ts.map +1 -0
- package/dist/runtime/installation/status.js +52 -0
- package/dist/runtime/installation/status.js.map +1 -0
- package/dist/runtime/installation/support-bundle.d.ts +30 -0
- package/dist/runtime/installation/support-bundle.d.ts.map +1 -0
- package/dist/runtime/installation/support-bundle.js +145 -0
- package/dist/runtime/installation/support-bundle.js.map +1 -0
- package/dist/runtime/installation/to-current-config.d.ts +4 -0
- package/dist/runtime/installation/to-current-config.d.ts.map +1 -0
- package/dist/runtime/installation/to-current-config.js +171 -0
- package/dist/runtime/installation/to-current-config.js.map +1 -0
- package/dist/runtime/installation/validation.d.ts +8 -0
- package/dist/runtime/installation/validation.d.ts.map +1 -0
- package/dist/runtime/installation/validation.js +117 -0
- package/dist/runtime/installation/validation.js.map +1 -0
- package/dist/runtime/installation/validators/common.d.ts +4 -0
- package/dist/runtime/installation/validators/common.d.ts.map +1 -0
- package/dist/runtime/installation/validators/common.js +32 -0
- package/dist/runtime/installation/validators/common.js.map +1 -0
- package/dist/runtime/installation/validators/infrastructure.d.ts +4 -0
- package/dist/runtime/installation/validators/infrastructure.d.ts.map +1 -0
- package/dist/runtime/installation/validators/infrastructure.js +96 -0
- package/dist/runtime/installation/validators/infrastructure.js.map +1 -0
- package/dist/runtime/installation/validators/operational.d.ts +4 -0
- package/dist/runtime/installation/validators/operational.d.ts.map +1 -0
- package/dist/runtime/installation/validators/operational.js +68 -0
- package/dist/runtime/installation/validators/operational.js.map +1 -0
- package/dist/runtime/installation/validators/profile.d.ts +4 -0
- package/dist/runtime/installation/validators/profile.d.ts.map +1 -0
- package/dist/runtime/installation/validators/profile.js +80 -0
- package/dist/runtime/installation/validators/profile.js.map +1 -0
- package/dist/runtime/installation/validators/secrets.d.ts +4 -0
- package/dist/runtime/installation/validators/secrets.d.ts.map +1 -0
- package/dist/runtime/installation/validators/secrets.js +85 -0
- package/dist/runtime/installation/validators/secrets.js.map +1 -0
- package/dist/runtime/launch-plan-format.d.ts +3 -0
- package/dist/runtime/launch-plan-format.d.ts.map +1 -0
- package/dist/runtime/launch-plan-format.js +57 -0
- package/dist/runtime/launch-plan-format.js.map +1 -0
- package/dist/runtime/launch.d.ts +35 -3
- package/dist/runtime/launch.d.ts.map +1 -1
- package/dist/runtime/launch.js +382 -37
- package/dist/runtime/launch.js.map +1 -1
- package/dist/runtime/license/license-clock.d.ts +12 -0
- package/dist/runtime/license/license-clock.d.ts.map +1 -0
- package/dist/runtime/license/license-clock.js +57 -0
- package/dist/runtime/license/license-clock.js.map +1 -0
- package/dist/runtime/license/license-report.d.ts +19 -0
- package/dist/runtime/license/license-report.d.ts.map +1 -0
- package/dist/runtime/license/license-report.js +105 -0
- package/dist/runtime/license/license-report.js.map +1 -0
- package/dist/runtime/license/license-store.d.ts +5 -0
- package/dist/runtime/license/license-store.d.ts.map +1 -0
- package/dist/runtime/license/license-store.js +11 -0
- package/dist/runtime/license/license-store.js.map +1 -0
- package/dist/runtime/license/registry-credential.d.ts +26 -0
- package/dist/runtime/license/registry-credential.d.ts.map +1 -0
- package/dist/runtime/license/registry-credential.js +94 -0
- package/dist/runtime/license/registry-credential.js.map +1 -0
- package/dist/runtime/license/resolve-license.d.ts +30 -0
- package/dist/runtime/license/resolve-license.d.ts.map +1 -0
- package/dist/runtime/license/resolve-license.js +73 -0
- package/dist/runtime/license/resolve-license.js.map +1 -0
- package/dist/runtime/license/store-license.d.ts +18 -0
- package/dist/runtime/license/store-license.d.ts.map +1 -0
- package/dist/runtime/license/store-license.js +26 -0
- package/dist/runtime/license/store-license.js.map +1 -0
- package/dist/runtime/lock-loader.d.ts +3 -6
- package/dist/runtime/lock-loader.d.ts.map +1 -1
- package/dist/runtime/lock-loader.js +26 -20
- package/dist/runtime/lock-loader.js.map +1 -1
- package/dist/runtime/native-process-group.d.ts +46 -0
- package/dist/runtime/native-process-group.d.ts.map +1 -0
- package/dist/runtime/native-process-group.js +390 -0
- package/dist/runtime/native-process-group.js.map +1 -0
- package/dist/runtime/object-registry-client.d.ts +31 -0
- package/dist/runtime/object-registry-client.d.ts.map +1 -0
- package/dist/runtime/object-registry-client.js +54 -0
- package/dist/runtime/object-registry-client.js.map +1 -0
- package/dist/runtime/paths.d.ts +2 -0
- package/dist/runtime/paths.d.ts.map +1 -1
- package/dist/runtime/paths.js +3 -0
- package/dist/runtime/paths.js.map +1 -1
- package/dist/runtime/roster.d.ts +12 -5
- package/dist/runtime/roster.d.ts.map +1 -1
- package/dist/runtime/roster.js +89 -11
- package/dist/runtime/roster.js.map +1 -1
- package/dist/runtime/run-manifest.d.ts +52 -0
- package/dist/runtime/run-manifest.d.ts.map +1 -0
- package/dist/runtime/run-manifest.js +587 -0
- package/dist/runtime/run-manifest.js.map +1 -0
- package/dist/runtime/runner/container-preflight.d.ts +77 -0
- package/dist/runtime/runner/container-preflight.d.ts.map +1 -0
- package/dist/runtime/runner/container-preflight.js +360 -0
- package/dist/runtime/runner/container-preflight.js.map +1 -0
- package/dist/runtime/runner/container-runner.d.ts +14 -0
- package/dist/runtime/runner/container-runner.d.ts.map +1 -1
- package/dist/runtime/runner/container-runner.js +110 -14
- package/dist/runtime/runner/container-runner.js.map +1 -1
- package/dist/runtime/runner/docker-cli.d.ts +35 -2
- package/dist/runtime/runner/docker-cli.d.ts.map +1 -1
- package/dist/runtime/runner/docker-cli.js +314 -9
- package/dist/runtime/runner/docker-cli.js.map +1 -1
- package/dist/runtime/runner/health-probe.d.ts +1 -0
- package/dist/runtime/runner/health-probe.d.ts.map +1 -1
- package/dist/runtime/runner/health-probe.js +3 -2
- package/dist/runtime/runner/health-probe.js.map +1 -1
- package/dist/runtime/runner/helm-cli.d.ts +19 -1
- package/dist/runtime/runner/helm-cli.d.ts.map +1 -1
- package/dist/runtime/runner/helm-cli.js +76 -8
- package/dist/runtime/runner/helm-cli.js.map +1 -1
- package/dist/runtime/runner/helm-runner.d.ts +3 -0
- package/dist/runtime/runner/helm-runner.d.ts.map +1 -1
- package/dist/runtime/runner/helm-runner.js +23 -7
- package/dist/runtime/runner/helm-runner.js.map +1 -1
- package/dist/runtime/runner/host-platform.d.ts +39 -0
- package/dist/runtime/runner/host-platform.d.ts.map +1 -0
- package/dist/runtime/runner/host-platform.js +136 -0
- package/dist/runtime/runner/host-platform.js.map +1 -0
- package/dist/runtime/runner/kube-cli.d.ts +23 -0
- package/dist/runtime/runner/kube-cli.d.ts.map +1 -0
- package/dist/runtime/runner/kube-cli.js +112 -0
- package/dist/runtime/runner/kube-cli.js.map +1 -0
- package/dist/runtime/runner/native-runner.d.ts.map +1 -1
- package/dist/runtime/runner/native-runner.js +46 -15
- package/dist/runtime/runner/native-runner.js.map +1 -1
- package/dist/runtime/runner/service-runner.d.ts +5 -0
- package/dist/runtime/runner/service-runner.d.ts.map +1 -1
- package/dist/runtime/runner/service-runner.js.map +1 -1
- package/dist/runtime/runner/stream-outcome.d.ts +7 -0
- package/dist/runtime/runner/stream-outcome.d.ts.map +1 -0
- package/dist/runtime/runner/stream-outcome.js +13 -0
- package/dist/runtime/runner/stream-outcome.js.map +1 -0
- package/dist/runtime/secrets/managed-local-cipher.d.ts +18 -0
- package/dist/runtime/secrets/managed-local-cipher.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-cipher.js +110 -0
- package/dist/runtime/secrets/managed-local-cipher.js.map +1 -0
- package/dist/runtime/secrets/managed-local-files.d.ts +4 -0
- package/dist/runtime/secrets/managed-local-files.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-files.js +132 -0
- package/dist/runtime/secrets/managed-local-files.js.map +1 -0
- package/dist/runtime/secrets/managed-local-key-provider.d.ts +27 -0
- package/dist/runtime/secrets/managed-local-key-provider.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-key-provider.js +144 -0
- package/dist/runtime/secrets/managed-local-key-provider.js.map +1 -0
- package/dist/runtime/secrets/managed-local-secret-store.d.ts +18 -0
- package/dist/runtime/secrets/managed-local-secret-store.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-secret-store.js +82 -0
- package/dist/runtime/secrets/managed-local-secret-store.js.map +1 -0
- package/dist/runtime/secrets/managed-local-store.d.ts +33 -0
- package/dist/runtime/secrets/managed-local-store.d.ts.map +1 -0
- package/dist/runtime/secrets/managed-local-store.js +121 -0
- package/dist/runtime/secrets/managed-local-store.js.map +1 -0
- package/dist/runtime/secrets/resolver.d.ts +23 -0
- package/dist/runtime/secrets/resolver.d.ts.map +1 -0
- package/dist/runtime/secrets/resolver.js +265 -0
- package/dist/runtime/secrets/resolver.js.map +1 -0
- package/dist/runtime/secrets/url-security.d.ts +3 -0
- package/dist/runtime/secrets/url-security.d.ts.map +1 -0
- package/dist/runtime/secrets/url-security.js +13 -0
- package/dist/runtime/secrets/url-security.js.map +1 -0
- package/dist/runtime/sources/credentials.d.ts +2 -0
- package/dist/runtime/sources/credentials.d.ts.map +1 -1
- package/dist/runtime/sources/credentials.js +51 -1
- package/dist/runtime/sources/credentials.js.map +1 -1
- package/dist/runtime/sources/kinds/distribution.js +3 -3
- package/dist/runtime/sources/kinds/distribution.js.map +1 -1
- package/dist/runtime/sources/kinds/git.d.ts +6 -3
- package/dist/runtime/sources/kinds/git.d.ts.map +1 -1
- package/dist/runtime/sources/kinds/git.js +99 -22
- package/dist/runtime/sources/kinds/git.js.map +1 -1
- package/dist/runtime/sources/manifest-walk.d.ts +1 -0
- package/dist/runtime/sources/manifest-walk.d.ts.map +1 -1
- package/dist/runtime/sources/manifest-walk.js +16 -11
- package/dist/runtime/sources/manifest-walk.js.map +1 -1
- package/dist/runtime/sources/resolve-context.d.ts +7 -0
- package/dist/runtime/sources/resolve-context.d.ts.map +1 -0
- package/dist/runtime/sources/resolve-context.js +3 -0
- package/dist/runtime/sources/resolve-context.js.map +1 -0
- package/dist/runtime/sources/resolver.d.ts +2 -2
- package/dist/runtime/sources/resolver.d.ts.map +1 -1
- package/dist/runtime/sources/resolver.js +11 -5
- package/dist/runtime/sources/resolver.js.map +1 -1
- package/dist/runtime/sources/schema.d.ts.map +1 -1
- package/dist/runtime/sources/schema.js +51 -3
- package/dist/runtime/sources/schema.js.map +1 -1
- package/dist/runtime/store-client.d.ts +59 -0
- package/dist/runtime/store-client.d.ts.map +1 -0
- package/dist/runtime/store-client.js +72 -0
- package/dist/runtime/store-client.js.map +1 -0
- package/dist/runtime/store-submit.d.ts +31 -0
- package/dist/runtime/store-submit.d.ts.map +1 -0
- package/dist/runtime/store-submit.js +77 -0
- package/dist/runtime/store-submit.js.map +1 -0
- package/dist/runtime/supervisor.d.ts +18 -0
- package/dist/runtime/supervisor.d.ts.map +1 -1
- package/dist/runtime/supervisor.js +162 -15
- package/dist/runtime/supervisor.js.map +1 -1
- package/dist/runtime/waves.d.ts +1 -1
- package/dist/runtime/waves.d.ts.map +1 -1
- package/dist/runtime/waves.js +86 -19
- package/dist/runtime/waves.js.map +1 -1
- package/examples/01-local-native.yaml +4 -1
- package/examples/03-byo-infra.yaml +17 -7
- package/examples/05-appliance-helm.yaml +1 -1
- package/examples/06-biome-sources.yaml +4 -1
- package/package.json +20 -28
- package/xema.config.example.yaml +22 -18
- package/LICENSE +0 -176
- package/dist/lib/command-registry.d.ts +0 -5
- package/dist/lib/command-registry.d.ts.map +0 -1
- package/dist/lib/command-registry.js +0 -17
- package/dist/lib/command-registry.js.map +0 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { Substrate } from '../config/schema';
|
|
2
|
+
import type { RuntimeUnitType } from '../unit-type';
|
|
3
|
+
export declare enum InstallationReadinessIssueCode {
|
|
4
|
+
ObserverUnavailable = "observer-unavailable",
|
|
5
|
+
MissingWorkload = "missing-workload",
|
|
6
|
+
UnexpectedWorkload = "unexpected-workload",
|
|
7
|
+
ProcessNotRunning = "process-not-running",
|
|
8
|
+
ContainerNotRunning = "container-not-running",
|
|
9
|
+
ContainerUnhealthy = "container-unhealthy",
|
|
10
|
+
ServiceNotReady = "service-not-ready",
|
|
11
|
+
GenerationNotObserved = "generation-not-observed",
|
|
12
|
+
ReplicasNotReady = "replicas-not-ready",
|
|
13
|
+
JobNotComplete = "job-not-complete",
|
|
14
|
+
JobFailed = "job-failed",
|
|
15
|
+
ServiceMissing = "service-missing",
|
|
16
|
+
EndpointsMissing = "endpoints-missing",
|
|
17
|
+
BootstrapMarkerMissing = "bootstrap-marker-missing",
|
|
18
|
+
SmokeCheckFailed = "smoke-check-failed",
|
|
19
|
+
BackupPrerequisiteMissing = "backup-prerequisite-missing",
|
|
20
|
+
PlanIdentityMismatch = "plan-identity-mismatch",
|
|
21
|
+
ExecutionIdentityMismatch = "execution-identity-mismatch"
|
|
22
|
+
}
|
|
23
|
+
export declare const MAX_CONCURRENT_READINESS_PROBES = 32;
|
|
24
|
+
export interface InstallationReadinessIssue {
|
|
25
|
+
readonly code: InstallationReadinessIssueCode;
|
|
26
|
+
readonly workload?: string;
|
|
27
|
+
readonly message: string;
|
|
28
|
+
readonly remediation: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ExpectedInstallationWorkload {
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly unitType: RuntimeUnitType;
|
|
33
|
+
readonly port: number;
|
|
34
|
+
readonly image?: string;
|
|
35
|
+
readonly containerPort?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface InstallationReadinessExpectation {
|
|
38
|
+
readonly substrate: Substrate;
|
|
39
|
+
readonly workloads: readonly ExpectedInstallationWorkload[];
|
|
40
|
+
readonly distributionLockPath: string;
|
|
41
|
+
readonly installationId: string;
|
|
42
|
+
readonly effectivePlanHash: string;
|
|
43
|
+
readonly executionId?: string;
|
|
44
|
+
readonly namespace?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface ObservedInstallationWorkload {
|
|
47
|
+
readonly name: string;
|
|
48
|
+
readonly state: string;
|
|
49
|
+
readonly expected: boolean;
|
|
50
|
+
readonly checks: Readonly<Record<string, string | number | boolean>>;
|
|
51
|
+
}
|
|
52
|
+
export interface InstallationReadinessProof {
|
|
53
|
+
readonly substrate: Substrate;
|
|
54
|
+
readonly effectivePlanHash?: string;
|
|
55
|
+
readonly expectedWorkloads: readonly string[];
|
|
56
|
+
readonly ready: boolean;
|
|
57
|
+
readonly workloads: readonly ObservedInstallationWorkload[];
|
|
58
|
+
readonly issues: readonly InstallationReadinessIssue[];
|
|
59
|
+
}
|
|
60
|
+
export interface InstallationReadinessObserver {
|
|
61
|
+
observe(expectation: InstallationReadinessExpectation): Promise<InstallationReadinessProof>;
|
|
62
|
+
}
|
|
63
|
+
export declare function assertInstallationReady(proof: InstallationReadinessProof): void;
|
|
64
|
+
export declare function buildReadinessProof(expectation: InstallationReadinessExpectation, workloads: readonly ObservedInstallationWorkload[], issues: readonly InstallationReadinessIssue[]): InstallationReadinessProof;
|
|
65
|
+
export declare function unavailableProof(expectation: InstallationReadinessExpectation, message: string, remediation: string): InstallationReadinessProof;
|
|
66
|
+
export declare function missingWorkload(name: string): InstallationReadinessIssue;
|
|
67
|
+
export declare function unexpectedWorkload(name: string): InstallationReadinessIssue;
|
|
68
|
+
export declare function serviceNotReady(name: string): InstallationReadinessIssue;
|
|
69
|
+
export declare function planIdentityMismatch(name: string): InstallationReadinessIssue;
|
|
70
|
+
export declare function executionIdentityMismatch(name: string): InstallationReadinessIssue;
|
|
71
|
+
export declare function mapConcurrentOrdered<T, R>(items: readonly T[], concurrency: number, mapper: (item: T) => Promise<R>): Promise<R[]>;
|
|
72
|
+
//# sourceMappingURL=readiness-proof.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readiness-proof.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/readiness-proof.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAapD,oBAAY,8BAA8B;IACxC,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,kBAAkB,wBAAwB;IAC1C,iBAAiB,wBAAwB;IACzC,mBAAmB,0BAA0B;IAC7C,kBAAkB,wBAAwB;IAC1C,eAAe,sBAAsB;IACrC,qBAAqB,4BAA4B;IACjD,gBAAgB,uBAAuB;IACvC,cAAc,qBAAqB;IACnC,SAAS,eAAe;IACxB,cAAc,oBAAoB;IAClC,gBAAgB,sBAAsB;IACtC,sBAAsB,6BAA6B;IACnD,gBA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CAAC,EAAE,EACnB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAC9B,OAAO,CAAC,CAAC,EAAE,CAAC,CAkBd"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_CONCURRENT_READINESS_PROBES = exports.InstallationReadinessIssueCode = void 0;
|
|
4
|
+
exports.assertInstallationReady = assertInstallationReady;
|
|
5
|
+
exports.buildReadinessProof = buildReadinessProof;
|
|
6
|
+
exports.unavailableProof = unavailableProof;
|
|
7
|
+
exports.missingWorkload = missingWorkload;
|
|
8
|
+
exports.unexpectedWorkload = unexpectedWorkload;
|
|
9
|
+
exports.serviceNotReady = serviceNotReady;
|
|
10
|
+
exports.planIdentityMismatch = planIdentityMismatch;
|
|
11
|
+
exports.executionIdentityMismatch = executionIdentityMismatch;
|
|
12
|
+
exports.mapConcurrentOrdered = mapConcurrentOrdered;
|
|
13
|
+
var InstallationReadinessIssueCode;
|
|
14
|
+
(function (InstallationReadinessIssueCode) {
|
|
15
|
+
InstallationReadinessIssueCode["ObserverUnavailable"] = "observer-unavailable";
|
|
16
|
+
InstallationReadinessIssueCode["MissingWorkload"] = "missing-workload";
|
|
17
|
+
InstallationReadinessIssueCode["UnexpectedWorkload"] = "unexpected-workload";
|
|
18
|
+
InstallationReadinessIssueCode["ProcessNotRunning"] = "process-not-running";
|
|
19
|
+
InstallationReadinessIssueCode["ContainerNotRunning"] = "container-not-running";
|
|
20
|
+
InstallationReadinessIssueCode["ContainerUnhealthy"] = "container-unhealthy";
|
|
21
|
+
InstallationReadinessIssueCode["ServiceNotReady"] = "service-not-ready";
|
|
22
|
+
InstallationReadinessIssueCode["GenerationNotObserved"] = "generation-not-observed";
|
|
23
|
+
InstallationReadinessIssueCode["ReplicasNotReady"] = "replicas-not-ready";
|
|
24
|
+
InstallationReadinessIssueCode["JobNotComplete"] = "job-not-complete";
|
|
25
|
+
InstallationReadinessIssueCode["JobFailed"] = "job-failed";
|
|
26
|
+
InstallationReadinessIssueCode["ServiceMissing"] = "service-missing";
|
|
27
|
+
InstallationReadinessIssueCode["EndpointsMissing"] = "endpoints-missing";
|
|
28
|
+
InstallationReadinessIssueCode["BootstrapMarkerMissing"] = "bootstrap-marker-missing";
|
|
29
|
+
InstallationReadinessIssueCode["SmokeCheckFailed"] = "smoke-check-failed";
|
|
30
|
+
InstallationReadinessIssueCode["BackupPrerequisiteMissing"] = "backup-prerequisite-missing";
|
|
31
|
+
InstallationReadinessIssueCode["PlanIdentityMismatch"] = "plan-identity-mismatch";
|
|
32
|
+
InstallationReadinessIssueCode["ExecutionIdentityMismatch"] = "execution-identity-mismatch";
|
|
33
|
+
})(InstallationReadinessIssueCode || (exports.InstallationReadinessIssueCode = InstallationReadinessIssueCode = {}));
|
|
34
|
+
exports.MAX_CONCURRENT_READINESS_PROBES = 32;
|
|
35
|
+
function assertInstallationReady(proof) {
|
|
36
|
+
const expected = new Set(proof.expectedWorkloads);
|
|
37
|
+
const readyExpected = new Set(proof.workloads
|
|
38
|
+
.filter((workload) => workload.expected && workload.state === 'ready')
|
|
39
|
+
.map((workload) => workload.name));
|
|
40
|
+
const structurallyComplete = expected.size > 0 &&
|
|
41
|
+
expected.size === proof.expectedWorkloads.length &&
|
|
42
|
+
proof.workloads.length === expected.size &&
|
|
43
|
+
[...expected].every((name) => readyExpected.has(name)) &&
|
|
44
|
+
proof.workloads.every((workload) => workload.expected);
|
|
45
|
+
if (proof.ready && proof.issues.length === 0 && structurallyComplete) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const structuralDetail = structurallyComplete
|
|
49
|
+
? ''
|
|
50
|
+
: '\n- [invalid-proof] Readiness evidence does not contain one ready observation for every unique expected workload.';
|
|
51
|
+
throw new Error(`Installation readiness proof failed:\n${proof.issues
|
|
52
|
+
.map((issue) => `- [${issue.code}] ${issue.message} Remediation: ${issue.remediation}`)
|
|
53
|
+
.join('\n')}${structuralDetail}`);
|
|
54
|
+
}
|
|
55
|
+
function buildReadinessProof(expectation, workloads, issues) {
|
|
56
|
+
return {
|
|
57
|
+
substrate: expectation.substrate,
|
|
58
|
+
...observedEffectivePlanHash(workloads),
|
|
59
|
+
expectedWorkloads: expectation.workloads.map((workload) => workload.name),
|
|
60
|
+
ready: issues.length === 0,
|
|
61
|
+
workloads,
|
|
62
|
+
issues,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function observedEffectivePlanHash(workloads) {
|
|
66
|
+
const identities = new Set(workloads.flatMap((workload) => {
|
|
67
|
+
const identity = workload.checks.planHash;
|
|
68
|
+
return typeof identity === 'string' && identity !== 'missing'
|
|
69
|
+
? [identity]
|
|
70
|
+
: [];
|
|
71
|
+
}));
|
|
72
|
+
if (identities.size !== 1) {
|
|
73
|
+
return {};
|
|
74
|
+
}
|
|
75
|
+
return { effectivePlanHash: [...identities][0] };
|
|
76
|
+
}
|
|
77
|
+
function unavailableProof(expectation, message, remediation) {
|
|
78
|
+
return buildReadinessProof(expectation, [], [
|
|
79
|
+
{
|
|
80
|
+
code: InstallationReadinessIssueCode.ObserverUnavailable,
|
|
81
|
+
message,
|
|
82
|
+
remediation,
|
|
83
|
+
},
|
|
84
|
+
]);
|
|
85
|
+
}
|
|
86
|
+
function missingWorkload(name) {
|
|
87
|
+
return {
|
|
88
|
+
code: InstallationReadinessIssueCode.MissingWorkload,
|
|
89
|
+
workload: name,
|
|
90
|
+
message: `Expected workload ${name} is missing.`,
|
|
91
|
+
remediation: 'Run `xema installation apply` and inspect the workload-specific startup error.',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function unexpectedWorkload(name) {
|
|
95
|
+
return {
|
|
96
|
+
code: InstallationReadinessIssueCode.UnexpectedWorkload,
|
|
97
|
+
workload: name,
|
|
98
|
+
message: `Launcher-owned workload ${name} is not present in the resolved distribution-lock roster.`,
|
|
99
|
+
remediation: 'Run `xema down`, review the selected edition/features, and reapply the installation.',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function serviceNotReady(name) {
|
|
103
|
+
return {
|
|
104
|
+
code: InstallationReadinessIssueCode.ServiceNotReady,
|
|
105
|
+
workload: name,
|
|
106
|
+
message: `Expected service ${name} did not pass /health/ready.`,
|
|
107
|
+
remediation: 'Inspect the service logs and dependency health, then re-run the readiness check.',
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function planIdentityMismatch(name) {
|
|
111
|
+
return {
|
|
112
|
+
code: InstallationReadinessIssueCode.PlanIdentityMismatch,
|
|
113
|
+
workload: name,
|
|
114
|
+
message: `Workload ${name} was not launched for the expected effective plan.`,
|
|
115
|
+
remediation: 'Stop stale workloads and re-run apply so every workload carries the current plan hash.',
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function executionIdentityMismatch(name) {
|
|
119
|
+
return {
|
|
120
|
+
code: InstallationReadinessIssueCode.ExecutionIdentityMismatch,
|
|
121
|
+
workload: name,
|
|
122
|
+
message: `Workload ${name} was not launched by the execution being proved.`,
|
|
123
|
+
remediation: 'Stop the stale execution and re-run apply so readiness is bound to exactly one launch.',
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
async function mapConcurrentOrdered(items, concurrency, mapper) {
|
|
127
|
+
const results = new Array(items.length);
|
|
128
|
+
let nextIndex = 0;
|
|
129
|
+
const workers = Array.from({ length: Math.min(concurrency, items.length) }, async () => {
|
|
130
|
+
for (;;) {
|
|
131
|
+
const index = nextIndex;
|
|
132
|
+
nextIndex += 1;
|
|
133
|
+
if (index >= items.length) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
results[index] = await mapper(items[index]);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
await Promise.all(workers);
|
|
140
|
+
return results;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=readiness-proof.js.map
|
|
@@ -0,0 +1 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AgB,oBAAoB,CAClC,IAAY;IAEZ,OAAO;QACL,IAAI,EAAE,8BAA8B,CAAC,oBAAoB;QACzD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,YAAY,IAAI,oDAAoD;QAC7E,WAAW,EACT,wFAAwF;KAC3F,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,IAAY;IAEZ,OAAO;QACL,IAAI,EAAE,8BAA8B,CAAC,yBAAyB;QAC9D,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,YAAY,IAAI,kDAAkD;QAC3E,WAAW,EACT,wFAAwF;KAC3F,CAAC;AACJ,CAAC;AAOM,KAAK,UAAU,oBAAoB,CACxC,KAAmB,EACnB,WAAmB,EACnB,MAA+B;IAE/B,MAAM,OAAO,GAAG,IAAI,KAAK,CAAI,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3C,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CACxB,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAC/C,KAAK,IAAI,EAAE;QACT,SAAS,CAAC;YACR,MAAM,KAAK,GAAG,SAAS,CAAC;YACxB,SAAS,IAAI,CAAC,CAAC;YACf,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;gBAC1B,OAAO;YACT,CAAC;YACD,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,KAAK,CAAM,CAAC,CAAC;QACnD,CAAC;IACH,CAAC,CACF,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type InstallationReadinessExpectation, type InstallationReadinessObserver, type InstallationReadinessProof } from './readiness-proof';
|
|
2
|
+
import { type RunManifestEntry } from '../run-manifest';
|
|
3
|
+
import { DockerCli } from '../runner/docker-cli';
|
|
4
|
+
import type { LaunchHandle, LaunchPlan } from '../launch';
|
|
5
|
+
export * from './readiness-proof';
|
|
6
|
+
export declare function readinessExpectationFromLaunchPlan(plan: Pick<LaunchPlan, 'substrate' | 'roster' | 'ports' | 'lock' | 'helmNamespace'>, effectivePlanHash: string, installationId: string, executionId?: string): InstallationReadinessExpectation;
|
|
7
|
+
export declare function proveLocalLaunchReadiness(handle: LaunchHandle, effectivePlanHash: string, observer?: InstallationReadinessObserver): Promise<InstallationReadinessProof>;
|
|
8
|
+
export declare class LocalInstallationReadinessObserver implements InstallationReadinessObserver {
|
|
9
|
+
private readonly docker;
|
|
10
|
+
private readonly readinessProbe;
|
|
11
|
+
private readonly nativeManifest;
|
|
12
|
+
private readonly processProbe;
|
|
13
|
+
private readonly nativePortOwnerProbe;
|
|
14
|
+
private readonly nativeProcessIdentityProbe;
|
|
15
|
+
private readonly helmObserver;
|
|
16
|
+
constructor(docker?: DockerCli, readinessProbe?: (url: string) => Promise<boolean>, nativeManifest?: (installationId: string) => readonly RunManifestEntry[], processProbe?: (pid: number) => boolean, nativePortOwnerProbe?: (entry: RunManifestEntry) => Promise<boolean>, nativeProcessIdentityProbe?: (entry: RunManifestEntry) => Promise<boolean>, helmObserver?: InstallationReadinessObserver);
|
|
17
|
+
observe(expectation: InstallationReadinessExpectation): Promise<InstallationReadinessProof>;
|
|
18
|
+
private observeNative;
|
|
19
|
+
private observeContainers;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=readiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readiness.d.ts","sourceRoot":"","sources":["../../../src/runtime/installation/readiness.ts"],"names":[],"mappings":"AACA,OAAO,EAWL,KAAK,gCAAgC,EAErC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAEhC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAKL,KAAK,gBAAgB,EACtB,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