@xemahq/xema 0.59.0 → 0.60.1
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 +1 -2
- package/dist/appliance-owner.d.ts.map +1 -1
- package/dist/appliance-owner.js +6 -6
- package/dist/appliance-owner.js.map +1 -1
- package/dist/assets/appliance-base/authorization.lock.json +5186 -0
- package/dist/assets/appliance-base/distribution.lock.json +760 -279
- package/dist/assets/appliance-base/images.lock.json +576 -513
- package/dist/assets/appliance-lean/authorization.lock.json +4648 -0
- package/dist/assets/appliance-lean/distribution.lock.json +641 -186
- package/dist/assets/appliance-lean/images.lock.json +574 -512
- package/dist/assets/boot-graph.json +33 -14
- package/dist/assets/distribution-assets.manifest.json +23 -20
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +7 -9
- package/dist/cli.js.map +1 -1
- package/dist/commands/biome-dev.d.ts.map +1 -1
- package/dist/commands/biome-dev.js +41 -137
- package/dist/commands/biome-dev.js.map +1 -1
- package/dist/commands/biome-lifecycle.d.ts +24 -0
- package/dist/commands/biome-lifecycle.d.ts.map +1 -0
- package/dist/commands/biome-lifecycle.js +253 -0
- package/dist/commands/biome-lifecycle.js.map +1 -0
- package/dist/commands/biome.d.ts +2 -4
- package/dist/commands/biome.d.ts.map +1 -1
- package/dist/commands/biome.js +61 -46
- package/dist/commands/biome.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +96 -8
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +13 -20
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +14 -21
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +6 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/installation-tenancy.d.ts +11 -0
- package/dist/commands/installation-tenancy.d.ts.map +1 -0
- package/dist/commands/installation-tenancy.js +308 -0
- package/dist/commands/installation-tenancy.js.map +1 -0
- package/dist/commands/installation.d.ts.map +1 -1
- package/dist/commands/installation.js +19 -5
- package/dist/commands/installation.js.map +1 -1
- package/dist/commands/logs.d.ts +2 -0
- package/dist/commands/logs.d.ts.map +1 -1
- package/dist/commands/logs.js +41 -8
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/{dev.d.ts → mirror.d.ts} +1 -1
- package/dist/commands/mirror.d.ts.map +1 -0
- package/dist/commands/mirror.js +132 -0
- package/dist/commands/mirror.js.map +1 -0
- package/dist/commands/source.d.ts.map +1 -1
- package/dist/commands/source.js +3 -2
- package/dist/commands/source.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +40 -21
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +36 -4
- package/dist/commands/up.js.map +1 -1
- package/dist/dev/infra-preflight.d.ts.map +1 -1
- package/dist/dev/infra-preflight.js +0 -4
- package/dist/dev/infra-preflight.js.map +1 -1
- package/dist/lib/confirm.d.ts +3 -0
- package/dist/lib/confirm.d.ts.map +1 -0
- package/dist/lib/confirm.js +19 -0
- package/dist/lib/confirm.js.map +1 -0
- package/dist/lib/output-format.d.ts +6 -0
- package/dist/lib/output-format.d.ts.map +1 -0
- package/dist/lib/output-format.js +20 -0
- package/dist/lib/output-format.js.map +1 -0
- package/dist/mirror/config/mirror-config-document.d.ts +18 -0
- package/dist/mirror/config/mirror-config-document.d.ts.map +1 -0
- package/dist/mirror/config/mirror-config-document.js +57 -0
- package/dist/mirror/config/mirror-config-document.js.map +1 -0
- package/dist/mirror/config/mirror-config-schema.d.ts +54 -0
- package/dist/mirror/config/mirror-config-schema.d.ts.map +1 -0
- package/dist/mirror/config/mirror-config-schema.js +80 -0
- package/dist/mirror/config/mirror-config-schema.js.map +1 -0
- package/dist/mirror/kit/delta.d.ts +4 -0
- package/dist/mirror/kit/delta.d.ts.map +1 -0
- package/dist/mirror/kit/delta.js +41 -0
- package/dist/mirror/kit/delta.js.map +1 -0
- package/dist/mirror/kit/export-kit.d.ts +16 -0
- package/dist/mirror/kit/export-kit.d.ts.map +1 -0
- package/dist/mirror/kit/export-kit.js +112 -0
- package/dist/mirror/kit/export-kit.js.map +1 -0
- package/dist/mirror/kit/import-kit.d.ts +9 -0
- package/dist/mirror/kit/import-kit.d.ts.map +1 -0
- package/dist/mirror/kit/import-kit.js +166 -0
- package/dist/mirror/kit/import-kit.js.map +1 -0
- package/dist/mirror/kit/kit-archive.d.ts +4 -0
- package/dist/mirror/kit/kit-archive.d.ts.map +1 -0
- package/dist/mirror/kit/kit-archive.js +38 -0
- package/dist/mirror/kit/kit-archive.js.map +1 -0
- package/dist/mirror/kit/kit-layout.d.ts +10 -0
- package/dist/mirror/kit/kit-layout.d.ts.map +1 -0
- package/dist/mirror/kit/kit-layout.js +19 -0
- package/dist/mirror/kit/kit-layout.js.map +1 -0
- package/dist/mirror/kit/kit-sums.d.ts +5 -0
- package/dist/mirror/kit/kit-sums.d.ts.map +1 -0
- package/dist/mirror/kit/kit-sums.js +63 -0
- package/dist/mirror/kit/kit-sums.js.map +1 -0
- package/dist/mirror/kit/layout-sync.d.ts +8 -0
- package/dist/mirror/kit/layout-sync.d.ts.map +1 -0
- package/dist/mirror/kit/layout-sync.js +58 -0
- package/dist/mirror/kit/layout-sync.js.map +1 -0
- package/dist/mirror/plan/bundle-content.d.ts +10 -0
- package/dist/mirror/plan/bundle-content.d.ts.map +1 -0
- package/dist/mirror/plan/bundle-content.js +61 -0
- package/dist/mirror/plan/bundle-content.js.map +1 -0
- package/dist/mirror/plan/declaration-file.d.ts +9 -0
- package/dist/mirror/plan/declaration-file.d.ts.map +1 -0
- package/dist/mirror/plan/declaration-file.js +27 -0
- package/dist/mirror/plan/declaration-file.js.map +1 -0
- package/dist/mirror/plan/edition-inputs.d.ts +57 -0
- package/dist/mirror/plan/edition-inputs.d.ts.map +1 -0
- package/dist/mirror/plan/edition-inputs.js +44 -0
- package/dist/mirror/plan/edition-inputs.js.map +1 -0
- package/dist/mirror/plan/edition-reader.d.ts +9 -0
- package/dist/mirror/plan/edition-reader.d.ts.map +1 -0
- package/dist/mirror/plan/edition-reader.js +47 -0
- package/dist/mirror/plan/edition-reader.js.map +1 -0
- package/dist/mirror/plan/image-content.d.ts +30 -0
- package/dist/mirror/plan/image-content.d.ts.map +1 -0
- package/dist/mirror/plan/image-content.js +120 -0
- package/dist/mirror/plan/image-content.js.map +1 -0
- package/dist/mirror/plan/npm-lockfile.d.ts +12 -0
- package/dist/mirror/plan/npm-lockfile.d.ts.map +1 -0
- package/dist/mirror/plan/npm-lockfile.js +106 -0
- package/dist/mirror/plan/npm-lockfile.js.map +1 -0
- package/dist/mirror/plan/oci-reads.d.ts +22 -0
- package/dist/mirror/plan/oci-reads.d.ts.map +1 -0
- package/dist/mirror/plan/oci-reads.js +43 -0
- package/dist/mirror/plan/oci-reads.js.map +1 -0
- package/dist/mirror/plan/plan-command.d.ts +22 -0
- package/dist/mirror/plan/plan-command.d.ts.map +1 -0
- package/dist/mirror/plan/plan-command.js +81 -0
- package/dist/mirror/plan/plan-command.js.map +1 -0
- package/dist/mirror/plan/plan-file.d.ts +13 -0
- package/dist/mirror/plan/plan-file.d.ts.map +1 -0
- package/dist/mirror/plan/plan-file.js +63 -0
- package/dist/mirror/plan/plan-file.js.map +1 -0
- package/dist/mirror/plan/resolve-content-set.d.ts +16 -0
- package/dist/mirror/plan/resolve-content-set.d.ts.map +1 -0
- package/dist/mirror/plan/resolve-content-set.js +90 -0
- package/dist/mirror/plan/resolve-content-set.js.map +1 -0
- package/dist/mirror/preflight/glob.d.ts +2 -0
- package/dist/mirror/preflight/glob.d.ts.map +1 -0
- package/dist/mirror/preflight/glob.js +59 -0
- package/dist/mirror/preflight/glob.js.map +1 -0
- package/dist/mirror/preflight/harbor-api.d.ts +27 -0
- package/dist/mirror/preflight/harbor-api.d.ts.map +1 -0
- package/dist/mirror/preflight/harbor-api.js +39 -0
- package/dist/mirror/preflight/harbor-api.js.map +1 -0
- package/dist/mirror/preflight/preflight.d.ts +18 -0
- package/dist/mirror/preflight/preflight.d.ts.map +1 -0
- package/dist/mirror/preflight/preflight.js +41 -0
- package/dist/mirror/preflight/preflight.js.map +1 -0
- package/dist/mirror/preflight/tag-moves.d.ts +16 -0
- package/dist/mirror/preflight/tag-moves.d.ts.map +1 -0
- package/dist/mirror/preflight/tag-moves.js +28 -0
- package/dist/mirror/preflight/tag-moves.js.map +1 -0
- package/dist/mirror/preflight/write-probe.d.ts +10 -0
- package/dist/mirror/preflight/write-probe.d.ts.map +1 -0
- package/dist/mirror/preflight/write-probe.js +36 -0
- package/dist/mirror/preflight/write-probe.js.map +1 -0
- package/dist/mirror/target/extras.d.ts +16 -0
- package/dist/mirror/target/extras.d.ts.map +1 -0
- package/dist/mirror/target/extras.js +47 -0
- package/dist/mirror/target/extras.js.map +1 -0
- package/dist/mirror/target/npm-registry.d.ts +20 -0
- package/dist/mirror/target/npm-registry.d.ts.map +1 -0
- package/dist/mirror/target/npm-registry.js +67 -0
- package/dist/mirror/target/npm-registry.js.map +1 -0
- package/dist/mirror/target/npm-sync.d.ts +15 -0
- package/dist/mirror/target/npm-sync.d.ts.map +1 -0
- package/dist/mirror/target/npm-sync.js +44 -0
- package/dist/mirror/target/npm-sync.js.map +1 -0
- package/dist/mirror/target/oci-items.d.ts +27 -0
- package/dist/mirror/target/oci-items.d.ts.map +1 -0
- package/dist/mirror/target/oci-items.js +79 -0
- package/dist/mirror/target/oci-items.js.map +1 -0
- package/dist/mirror/target/oci-sync.d.ts +20 -0
- package/dist/mirror/target/oci-sync.d.ts.map +1 -0
- package/dist/mirror/target/oci-sync.js +93 -0
- package/dist/mirror/target/oci-sync.js.map +1 -0
- package/dist/mirror/target/receipt-store.d.ts +13 -0
- package/dist/mirror/target/receipt-store.d.ts.map +1 -0
- package/dist/mirror/target/receipt-store.js +61 -0
- package/dist/mirror/target/receipt-store.js.map +1 -0
- package/dist/mirror/target/receipt.d.ts +13 -0
- package/dist/mirror/target/receipt.d.ts.map +1 -0
- package/dist/mirror/target/receipt.js +25 -0
- package/dist/mirror/target/receipt.js.map +1 -0
- package/dist/mirror/target/seed-push.d.ts +15 -0
- package/dist/mirror/target/seed-push.d.ts.map +1 -0
- package/dist/mirror/target/seed-push.js +20 -0
- package/dist/mirror/target/seed-push.js.map +1 -0
- package/dist/mirror/target/target-access.d.ts +7 -0
- package/dist/mirror/target/target-access.d.ts.map +1 -0
- package/dist/mirror/target/target-access.js +17 -0
- package/dist/mirror/target/target-access.js.map +1 -0
- package/dist/mirror/target/target-commands.d.ts +21 -0
- package/dist/mirror/target/target-commands.d.ts.map +1 -0
- package/dist/mirror/target/target-commands.js +134 -0
- package/dist/mirror/target/target-commands.js.map +1 -0
- package/dist/mirror/target/target-context.d.ts +11 -0
- package/dist/mirror/target/target-context.d.ts.map +1 -0
- package/dist/mirror/target/target-context.js +31 -0
- package/dist/mirror/target/target-context.js.map +1 -0
- package/dist/mirror/target/target-ports.d.ts +18 -0
- package/dist/mirror/target/target-ports.d.ts.map +1 -0
- package/dist/mirror/target/target-ports.js +49 -0
- package/dist/mirror/target/target-ports.js.map +1 -0
- package/dist/mirror/target/target-state.d.ts +22 -0
- package/dist/mirror/target/target-state.d.ts.map +1 -0
- package/dist/mirror/target/target-state.js +41 -0
- package/dist/mirror/target/target-state.js.map +1 -0
- package/dist/runtime/biome-dev.d.ts +0 -16
- package/dist/runtime/biome-dev.d.ts.map +1 -1
- package/dist/runtime/biome-dev.js +0 -53
- package/dist/runtime/biome-dev.js.map +1 -1
- package/dist/runtime/biome-host/biome-directory-packer.d.ts +3 -0
- package/dist/runtime/biome-host/biome-directory-packer.d.ts.map +1 -0
- package/dist/runtime/biome-host/biome-directory-packer.js +12 -0
- package/dist/runtime/biome-host/biome-directory-packer.js.map +1 -0
- package/dist/runtime/biome-host/bundle-packer.d.ts +8 -0
- package/dist/runtime/biome-host/bundle-packer.d.ts.map +1 -0
- package/dist/runtime/biome-host/bundle-packer.js +3 -0
- package/dist/runtime/biome-host/bundle-packer.js.map +1 -0
- package/dist/runtime/biome-host/from-spec.d.ts +33 -0
- package/dist/runtime/biome-host/from-spec.d.ts.map +1 -0
- package/dist/runtime/biome-host/from-spec.js +70 -0
- package/dist/runtime/biome-host/from-spec.js.map +1 -0
- package/dist/runtime/biome-host/lifecycle-client.d.ts +20 -0
- package/dist/runtime/biome-host/lifecycle-client.d.ts.map +1 -0
- package/dist/runtime/biome-host/lifecycle-client.js +197 -0
- package/dist/runtime/biome-host/lifecycle-client.js.map +1 -0
- package/dist/runtime/biome-host/lifecycle-contract.d.ts +95 -0
- package/dist/runtime/biome-host/lifecycle-contract.d.ts.map +1 -0
- package/dist/runtime/biome-host/lifecycle-contract.js +61 -0
- package/dist/runtime/biome-host/lifecycle-contract.js.map +1 -0
- package/dist/runtime/biome-host/lifecycle-flow.d.ts +29 -0
- package/dist/runtime/biome-host/lifecycle-flow.d.ts.map +1 -0
- package/dist/runtime/biome-host/lifecycle-flow.js +106 -0
- package/dist/runtime/biome-host/lifecycle-flow.js.map +1 -0
- package/dist/runtime/biome-host/plan-sources.d.ts +4 -0
- package/dist/runtime/biome-host/plan-sources.d.ts.map +1 -0
- package/dist/runtime/biome-host/plan-sources.js +26 -0
- package/dist/runtime/biome-host/plan-sources.js.map +1 -0
- package/dist/runtime/biome-host/relay/bundle-fetch.d.ts +12 -0
- package/dist/runtime/biome-host/relay/bundle-fetch.d.ts.map +1 -0
- package/dist/runtime/biome-host/relay/bundle-fetch.js +76 -0
- package/dist/runtime/biome-host/relay/bundle-fetch.js.map +1 -0
- package/dist/runtime/biome-host/relay/declared-scheme.d.ts +3 -0
- package/dist/runtime/biome-host/relay/declared-scheme.d.ts.map +1 -0
- package/dist/runtime/biome-host/relay/declared-scheme.js +14 -0
- package/dist/runtime/biome-host/relay/declared-scheme.js.map +1 -0
- package/dist/runtime/biome-host/relay/npm-token.d.ts +4 -0
- package/dist/runtime/biome-host/relay/npm-token.d.ts.map +1 -0
- package/dist/runtime/biome-host/relay/npm-token.js +16 -0
- package/dist/runtime/biome-host/relay/npm-token.js.map +1 -0
- package/dist/runtime/biome-host/relay/relay-flow.d.ts +16 -0
- package/dist/runtime/biome-host/relay/relay-flow.d.ts.map +1 -0
- package/dist/runtime/biome-host/relay/relay-flow.js +48 -0
- package/dist/runtime/biome-host/relay/relay-flow.js.map +1 -0
- package/dist/runtime/biome-host/source-staging.d.ts +17 -0
- package/dist/runtime/biome-host/source-staging.d.ts.map +1 -0
- package/dist/runtime/biome-host/source-staging.js +80 -0
- package/dist/runtime/biome-host/source-staging.js.map +1 -0
- package/dist/runtime/biome-host/sse.d.ts +2 -0
- package/dist/runtime/biome-host/sse.d.ts.map +1 -0
- package/dist/runtime/biome-host/sse.js +33 -0
- package/dist/runtime/biome-host/sse.js.map +1 -0
- package/dist/runtime/biome-local-install.js +1 -1
- package/dist/runtime/biome-local-install.js.map +1 -1
- package/dist/runtime/browser-origins.d.ts +9 -0
- package/dist/runtime/browser-origins.d.ts.map +1 -1
- package/dist/runtime/browser-origins.js +10 -0
- package/dist/runtime/browser-origins.js.map +1 -1
- package/dist/runtime/config/config-document.d.ts +10 -0
- package/dist/runtime/config/config-document.d.ts.map +1 -0
- package/dist/runtime/config/config-document.js +56 -0
- package/dist/runtime/config/config-document.js.map +1 -0
- package/dist/runtime/config/config-migrations.d.ts +21 -0
- package/dist/runtime/config/config-migrations.d.ts.map +1 -0
- package/dist/runtime/config/config-migrations.js +102 -0
- package/dist/runtime/config/config-migrations.js.map +1 -0
- package/dist/runtime/config/config-paths.d.ts +3 -0
- package/dist/runtime/config/config-paths.d.ts.map +1 -0
- package/dist/runtime/config/config-paths.js +9 -0
- package/dist/runtime/config/config-paths.js.map +1 -0
- package/dist/runtime/config/dev-mode.d.ts +0 -1
- package/dist/runtime/config/dev-mode.d.ts.map +1 -1
- package/dist/runtime/config/dev-mode.js +11 -27
- package/dist/runtime/config/dev-mode.js.map +1 -1
- package/dist/runtime/config/init-presets.js +5 -9
- package/dist/runtime/config/init-presets.js.map +1 -1
- package/dist/runtime/config/launch-config-help.d.ts +4 -0
- package/dist/runtime/config/launch-config-help.d.ts.map +1 -0
- package/dist/runtime/config/launch-config-help.js +42 -0
- package/dist/runtime/config/launch-config-help.js.map +1 -0
- package/dist/runtime/config/launch-config.d.ts +60 -0
- package/dist/runtime/config/launch-config.d.ts.map +1 -0
- package/dist/runtime/config/launch-config.js +123 -0
- package/dist/runtime/config/launch-config.js.map +1 -0
- package/dist/runtime/config/launch-schema.d.ts +18 -0
- package/dist/runtime/config/launch-schema.d.ts.map +1 -0
- package/dist/runtime/config/launch-schema.js +31 -0
- package/dist/runtime/config/launch-schema.js.map +1 -0
- package/dist/runtime/config/loader.d.ts.map +1 -1
- package/dist/runtime/config/loader.js +4 -14
- package/dist/runtime/config/loader.js.map +1 -1
- package/dist/runtime/config/schema.d.ts +43 -38
- package/dist/runtime/config/schema.d.ts.map +1 -1
- package/dist/runtime/config/schema.js +17 -46
- package/dist/runtime/config/schema.js.map +1 -1
- package/dist/runtime/config/sources-config.d.ts +0 -2
- package/dist/runtime/config/sources-config.d.ts.map +1 -1
- package/dist/runtime/config/sources-config.js +10 -29
- package/dist/runtime/config/sources-config.js.map +1 -1
- package/dist/runtime/config/versioned-document.d.ts +26 -0
- package/dist/runtime/config/versioned-document.d.ts.map +1 -0
- package/dist/runtime/config/versioned-document.js +87 -0
- package/dist/runtime/config/versioned-document.js.map +1 -0
- package/dist/runtime/directory-changes.d.ts +12 -0
- package/dist/runtime/directory-changes.d.ts.map +1 -0
- package/dist/runtime/directory-changes.js +62 -0
- package/dist/runtime/directory-changes.js.map +1 -0
- package/dist/runtime/foreground.d.ts +2 -0
- package/dist/runtime/foreground.d.ts.map +1 -1
- package/dist/runtime/foreground.js +5 -20
- package/dist/runtime/foreground.js.map +1 -1
- package/dist/runtime/infra/infra-runner.js +5 -5
- package/dist/runtime/infra/infra-runner.js.map +1 -1
- package/dist/runtime/infra/keycloak-realm.d.ts +3 -19
- package/dist/runtime/infra/keycloak-realm.d.ts.map +1 -1
- package/dist/runtime/infra/keycloak-realm.js +12 -133
- package/dist/runtime/infra/keycloak-realm.js.map +1 -1
- package/dist/runtime/installation/current-launcher-renderer.js.map +1 -1
- package/dist/runtime/installation/from-current-config.d.ts.map +1 -1
- package/dist/runtime/installation/from-current-config.js +24 -47
- package/dist/runtime/installation/from-current-config.js.map +1 -1
- package/dist/runtime/installation/index.d.ts +1 -0
- package/dist/runtime/installation/index.d.ts.map +1 -1
- package/dist/runtime/installation/index.js +1 -0
- package/dist/runtime/installation/index.js.map +1 -1
- package/dist/runtime/installation/installation-file.d.ts +3 -0
- package/dist/runtime/installation/installation-file.d.ts.map +1 -0
- package/dist/runtime/installation/installation-file.js +9 -0
- package/dist/runtime/installation/installation-file.js.map +1 -0
- package/dist/runtime/installation/readiness.d.ts +6 -7
- package/dist/runtime/installation/readiness.d.ts.map +1 -1
- package/dist/runtime/installation/readiness.js +82 -132
- package/dist/runtime/installation/readiness.js.map +1 -1
- package/dist/runtime/installation/state-store.d.ts +4 -0
- package/dist/runtime/installation/state-store.d.ts.map +1 -1
- package/dist/runtime/installation/state-store.js +22 -1
- package/dist/runtime/installation/state-store.js.map +1 -1
- package/dist/runtime/installation/to-current-config.d.ts +4 -1
- package/dist/runtime/installation/to-current-config.d.ts.map +1 -1
- package/dist/runtime/installation/to-current-config.js +10 -36
- package/dist/runtime/installation/to-current-config.js.map +1 -1
- package/dist/runtime/launch-plan-format.d.ts.map +1 -1
- package/dist/runtime/launch-plan-format.js +31 -6
- package/dist/runtime/launch-plan-format.js.map +1 -1
- package/dist/runtime/launch-result.d.ts +15 -0
- package/dist/runtime/launch-result.d.ts.map +1 -0
- package/dist/runtime/launch-result.js +3 -0
- package/dist/runtime/launch-result.js.map +1 -0
- package/dist/runtime/launch.d.ts +16 -5
- package/dist/runtime/launch.d.ts.map +1 -1
- package/dist/runtime/launch.js +151 -315
- package/dist/runtime/launch.js.map +1 -1
- package/dist/runtime/license/helm-pull-secret.d.ts +1 -1
- package/dist/runtime/license/helm-pull-secret.d.ts.map +1 -1
- package/dist/runtime/license/helm-pull-secret.js +2 -2
- package/dist/runtime/license/helm-pull-secret.js.map +1 -1
- package/dist/runtime/lifecycle-progress/index.d.ts +9 -0
- package/dist/runtime/lifecycle-progress/index.d.ts.map +1 -0
- package/dist/runtime/lifecycle-progress/index.js +30 -0
- package/dist/runtime/lifecycle-progress/index.js.map +1 -0
- package/dist/runtime/lifecycle-progress/json-renderer.d.ts +3 -0
- package/dist/runtime/lifecycle-progress/json-renderer.d.ts.map +1 -0
- package/dist/runtime/lifecycle-progress/json-renderer.js +27 -0
- package/dist/runtime/lifecycle-progress/json-renderer.js.map +1 -0
- package/dist/runtime/lifecycle-progress/text-renderer.d.ts +5 -0
- package/dist/runtime/lifecycle-progress/text-renderer.d.ts.map +1 -0
- package/dist/runtime/lifecycle-progress/text-renderer.js +83 -0
- package/dist/runtime/lifecycle-progress/text-renderer.js.map +1 -0
- package/dist/runtime/lifecycle-progress/types.d.ts +79 -0
- package/dist/runtime/lifecycle-progress/types.d.ts.map +1 -0
- package/dist/runtime/lifecycle-progress/types.js +32 -0
- package/dist/runtime/lifecycle-progress/types.js.map +1 -0
- package/dist/runtime/lock-loader.d.ts +13 -3
- package/dist/runtime/lock-loader.d.ts.map +1 -1
- package/dist/runtime/lock-loader.js +28 -8
- package/dist/runtime/lock-loader.js.map +1 -1
- package/dist/runtime/paths.d.ts +2 -0
- package/dist/runtime/paths.d.ts.map +1 -1
- package/dist/runtime/paths.js +17 -4
- package/dist/runtime/paths.js.map +1 -1
- package/dist/runtime/roster.d.ts +6 -5
- package/dist/runtime/roster.d.ts.map +1 -1
- package/dist/runtime/roster.js +0 -21
- package/dist/runtime/roster.js.map +1 -1
- package/dist/runtime/runner/container-preflight.d.ts +3 -2
- package/dist/runtime/runner/container-preflight.d.ts.map +1 -1
- package/dist/runtime/runner/container-preflight.js +5 -5
- package/dist/runtime/runner/container-preflight.js.map +1 -1
- package/dist/runtime/runner/container-runner.d.ts +0 -22
- package/dist/runtime/runner/container-runner.d.ts.map +1 -1
- package/dist/runtime/runner/container-runner.js +0 -112
- package/dist/runtime/runner/container-runner.js.map +1 -1
- package/dist/runtime/runner/docker-cli.d.ts +1 -0
- package/dist/runtime/runner/docker-cli.d.ts.map +1 -1
- package/dist/runtime/runner/docker-cli.js +19 -0
- package/dist/runtime/runner/docker-cli.js.map +1 -1
- package/dist/runtime/runner/helm-cli.d.ts +1 -0
- package/dist/runtime/runner/helm-cli.d.ts.map +1 -1
- package/dist/runtime/runner/helm-cli.js +5 -1
- package/dist/runtime/runner/helm-cli.js.map +1 -1
- package/dist/runtime/runner/helm-pre-install.d.ts +3 -2
- package/dist/runtime/runner/helm-pre-install.d.ts.map +1 -1
- package/dist/runtime/runner/helm-pre-install.js +3 -3
- package/dist/runtime/runner/helm-pre-install.js.map +1 -1
- package/dist/runtime/runner/helm-runner.d.ts +29 -4
- package/dist/runtime/runner/helm-runner.d.ts.map +1 -1
- package/dist/runtime/runner/helm-runner.js +44 -14
- package/dist/runtime/runner/helm-runner.js.map +1 -1
- package/dist/runtime/runner/kube-cli.d.ts +1 -0
- package/dist/runtime/runner/kube-cli.d.ts.map +1 -1
- package/dist/runtime/runner/kube-cli.js +24 -2
- package/dist/runtime/runner/kube-cli.js.map +1 -1
- package/dist/runtime/secrets/managed-local-key-provider.d.ts +2 -0
- package/dist/runtime/secrets/managed-local-key-provider.d.ts.map +1 -1
- package/dist/runtime/secrets/managed-local-key-provider.js +17 -8
- package/dist/runtime/secrets/managed-local-key-provider.js.map +1 -1
- package/dist/runtime/seed/closure-container.d.ts +8 -0
- package/dist/runtime/seed/closure-container.d.ts.map +1 -0
- package/dist/runtime/seed/closure-container.js +23 -0
- package/dist/runtime/seed/closure-container.js.map +1 -0
- package/dist/runtime/seed/closure-helm.d.ts +9 -0
- package/dist/runtime/seed/closure-helm.d.ts.map +1 -0
- package/dist/runtime/seed/closure-helm.js +16 -0
- package/dist/runtime/seed/closure-helm.js.map +1 -0
- package/dist/runtime/seed/closure-names.d.ts +4 -0
- package/dist/runtime/seed/closure-names.d.ts.map +1 -0
- package/dist/runtime/seed/closure-names.js +29 -0
- package/dist/runtime/seed/closure-names.js.map +1 -0
- package/dist/runtime/seed/closure-native.d.ts +3 -0
- package/dist/runtime/seed/closure-native.d.ts.map +1 -0
- package/dist/runtime/seed/closure-native.js +18 -0
- package/dist/runtime/seed/closure-native.js.map +1 -0
- package/dist/runtime/seed/installation-tar.d.ts +5 -0
- package/dist/runtime/seed/installation-tar.d.ts.map +1 -0
- package/dist/runtime/seed/installation-tar.js +30 -0
- package/dist/runtime/seed/installation-tar.js.map +1 -0
- package/dist/runtime/seed/launch-env.d.ts +42 -0
- package/dist/runtime/seed/launch-env.d.ts.map +1 -0
- package/dist/runtime/seed/launch-env.js +150 -0
- package/dist/runtime/seed/launch-env.js.map +1 -0
- package/dist/runtime/seed/seed-container.d.ts +13 -0
- package/dist/runtime/seed/seed-container.d.ts.map +1 -0
- package/dist/runtime/seed/seed-container.js +175 -0
- package/dist/runtime/seed/seed-container.js.map +1 -0
- package/dist/runtime/seed/seed-delivery-env.d.ts +39 -0
- package/dist/runtime/seed/seed-delivery-env.d.ts.map +1 -0
- package/dist/runtime/seed/seed-delivery-env.js +47 -0
- package/dist/runtime/seed/seed-delivery-env.js.map +1 -0
- package/dist/runtime/seed/seed-down.d.ts +2 -0
- package/dist/runtime/seed/seed-down.d.ts.map +1 -0
- package/dist/runtime/seed/seed-down.js +52 -0
- package/dist/runtime/seed/seed-down.js.map +1 -0
- package/dist/runtime/seed/seed-env-file.d.ts +3 -0
- package/dist/runtime/seed/seed-env-file.d.ts.map +1 -0
- package/dist/runtime/seed/seed-env-file.js +24 -0
- package/dist/runtime/seed/seed-env-file.js.map +1 -0
- package/dist/runtime/seed/seed-env-secret.d.ts +18 -0
- package/dist/runtime/seed/seed-env-secret.d.ts.map +1 -0
- package/dist/runtime/seed/seed-env-secret.js +62 -0
- package/dist/runtime/seed/seed-env-secret.js.map +1 -0
- package/dist/runtime/seed/seed-environment.d.ts +12 -0
- package/dist/runtime/seed/seed-environment.d.ts.map +1 -0
- package/dist/runtime/seed/seed-environment.js +66 -0
- package/dist/runtime/seed/seed-environment.js.map +1 -0
- package/dist/runtime/seed/seed-facts.d.ts +22 -0
- package/dist/runtime/seed/seed-facts.d.ts.map +1 -0
- package/dist/runtime/seed/seed-facts.js +40 -0
- package/dist/runtime/seed/seed-facts.js.map +1 -0
- package/dist/runtime/seed/seed-helm.d.ts +10 -0
- package/dist/runtime/seed/seed-helm.d.ts.map +1 -0
- package/dist/runtime/seed/seed-helm.js +74 -0
- package/dist/runtime/seed/seed-helm.js.map +1 -0
- package/dist/runtime/seed/seed-image-user.d.ts +6 -0
- package/dist/runtime/seed/seed-image-user.d.ts.map +1 -0
- package/dist/runtime/seed/seed-image-user.js +14 -0
- package/dist/runtime/seed/seed-image-user.js.map +1 -0
- package/dist/runtime/seed/seed-installation-files.d.ts +23 -0
- package/dist/runtime/seed/seed-installation-files.d.ts.map +1 -0
- package/dist/runtime/seed/seed-installation-files.js +51 -0
- package/dist/runtime/seed/seed-installation-files.js.map +1 -0
- package/dist/runtime/seed/seed-installation.d.ts +20 -0
- package/dist/runtime/seed/seed-installation.d.ts.map +1 -0
- package/dist/runtime/seed/seed-installation.js +36 -0
- package/dist/runtime/seed/seed-installation.js.map +1 -0
- package/dist/runtime/seed/seed-launcher.d.ts +14 -0
- package/dist/runtime/seed/seed-launcher.d.ts.map +1 -0
- package/dist/runtime/seed/seed-launcher.js +155 -0
- package/dist/runtime/seed/seed-launcher.js.map +1 -0
- package/dist/runtime/seed/seed-options.d.ts +22 -0
- package/dist/runtime/seed/seed-options.d.ts.map +1 -0
- package/dist/runtime/seed/seed-options.js +57 -0
- package/dist/runtime/seed/seed-options.js.map +1 -0
- package/dist/runtime/seed/seed-platform-endpoints.d.ts +8 -0
- package/dist/runtime/seed/seed-platform-endpoints.d.ts.map +1 -0
- package/dist/runtime/seed/seed-platform-endpoints.js +55 -0
- package/dist/runtime/seed/seed-platform-endpoints.js.map +1 -0
- package/dist/runtime/seed/seed-process.d.ts +22 -0
- package/dist/runtime/seed/seed-process.d.ts.map +1 -0
- package/dist/runtime/seed/seed-process.js +79 -0
- package/dist/runtime/seed/seed-process.js.map +1 -0
- package/dist/runtime/seed/seed-record.d.ts +101 -0
- package/dist/runtime/seed/seed-record.d.ts.map +1 -0
- package/dist/runtime/seed/seed-record.js +141 -0
- package/dist/runtime/seed/seed-record.js.map +1 -0
- package/dist/runtime/seed/seed-resolved-deployment.d.ts +14 -0
- package/dist/runtime/seed/seed-resolved-deployment.d.ts.map +1 -0
- package/dist/runtime/seed/seed-resolved-deployment.js +52 -0
- package/dist/runtime/seed/seed-resolved-deployment.js.map +1 -0
- package/dist/runtime/seed/substrate-facts.d.ts +52 -0
- package/dist/runtime/seed/substrate-facts.d.ts.map +1 -0
- package/dist/runtime/seed/substrate-facts.js +92 -0
- package/dist/runtime/seed/substrate-facts.js.map +1 -0
- package/dist/runtime/seed/supervisor-contract.d.ts +9 -0
- package/dist/runtime/seed/supervisor-contract.d.ts.map +1 -0
- package/dist/runtime/seed/supervisor-contract.js +68 -0
- package/dist/runtime/seed/supervisor-contract.js.map +1 -0
- package/dist/runtime/seed/workload-identity-facts.d.ts +17 -0
- package/dist/runtime/seed/workload-identity-facts.d.ts.map +1 -0
- package/dist/runtime/seed/workload-identity-facts.js +53 -0
- package/dist/runtime/seed/workload-identity-facts.js.map +1 -0
- package/dist/runtime/sources/schema.d.ts +2 -0
- package/dist/runtime/sources/schema.d.ts.map +1 -1
- package/dist/runtime/sources/schema.js +10 -9
- package/dist/runtime/sources/schema.js.map +1 -1
- package/dist/runtime/store-client.d.ts +0 -10
- package/dist/runtime/store-client.d.ts.map +1 -1
- package/dist/runtime/store-client.js +0 -5
- package/dist/runtime/store-client.js.map +1 -1
- package/dist/runtime/tenancy/identity-installer.d.ts +11 -0
- package/dist/runtime/tenancy/identity-installer.d.ts.map +1 -0
- package/dist/runtime/tenancy/identity-installer.js +39 -0
- package/dist/runtime/tenancy/identity-installer.js.map +1 -0
- package/dist/runtime/tenancy/import-cache.d.ts +5 -0
- package/dist/runtime/tenancy/import-cache.d.ts.map +1 -0
- package/dist/runtime/tenancy/import-cache.js +27 -0
- package/dist/runtime/tenancy/import-cache.js.map +1 -0
- package/dist/runtime/tenancy/openfga.d.ts +4 -0
- package/dist/runtime/tenancy/openfga.d.ts.map +1 -0
- package/dist/runtime/tenancy/openfga.js +29 -0
- package/dist/runtime/tenancy/openfga.js.map +1 -0
- package/dist/runtime/tenancy/servers.d.ts +18 -0
- package/dist/runtime/tenancy/servers.d.ts.map +1 -0
- package/dist/runtime/tenancy/servers.js +102 -0
- package/dist/runtime/tenancy/servers.js.map +1 -0
- package/dist/runtime/tenancy/session.d.ts +19 -0
- package/dist/runtime/tenancy/session.d.ts.map +1 -0
- package/dist/runtime/tenancy/session.js +79 -0
- package/dist/runtime/tenancy/session.js.map +1 -0
- package/dist/runtime/tenancy/specs.d.ts +27 -0
- package/dist/runtime/tenancy/specs.d.ts.map +1 -0
- package/dist/runtime/tenancy/specs.js +129 -0
- package/dist/runtime/tenancy/specs.js.map +1 -0
- package/examples/01-local-native.yaml +1 -3
- package/examples/02-local-container-full.yaml +0 -2
- package/examples/03-byo-infra.yaml +1 -5
- package/examples/06-biome-sources.yaml +1 -3
- package/package.json +32 -37
- package/xema.config.example.yaml +1 -10
- package/dist/assets/keycloak/realm-xema.json +0 -397
- package/dist/commands/dev.d.ts.map +0 -1
- package/dist/commands/dev.js +0 -196
- package/dist/commands/dev.js.map +0 -1
- package/dist/commands/edition.d.ts +0 -3
- package/dist/commands/edition.d.ts.map +0 -1
- package/dist/commands/edition.js +0 -54
- package/dist/commands/edition.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -3
- package/dist/commands/serve.d.ts.map +0 -1
- package/dist/commands/serve.js +0 -114
- package/dist/commands/serve.js.map +0 -1
- package/dist/dev/carved-installs.d.ts +0 -3
- package/dist/dev/carved-installs.d.ts.map +0 -1
- package/dist/dev/carved-installs.js +0 -63
- package/dist/dev/carved-installs.js.map +0 -1
- package/dist/dev/env-defaults.d.ts +0 -15
- package/dist/dev/env-defaults.d.ts.map +0 -1
- package/dist/dev/env-defaults.js +0 -178
- package/dist/dev/env-defaults.js.map +0 -1
- package/dist/dev/forked-worker-bootstrap-protocol.d.ts +0 -17
- package/dist/dev/forked-worker-bootstrap-protocol.d.ts.map +0 -1
- package/dist/dev/forked-worker-bootstrap-protocol.js +0 -35
- package/dist/dev/forked-worker-bootstrap-protocol.js.map +0 -1
- package/dist/dev/forked-worker-bootstrap.d.ts +0 -18
- package/dist/dev/forked-worker-bootstrap.d.ts.map +0 -1
- package/dist/dev/forked-worker-bootstrap.js +0 -84
- package/dist/dev/forked-worker-bootstrap.js.map +0 -1
- package/dist/dev/forked-worker.d.ts +0 -43
- package/dist/dev/forked-worker.d.ts.map +0 -1
- package/dist/dev/forked-worker.js +0 -358
- package/dist/dev/forked-worker.js.map +0 -1
- package/dist/edition/verify-image-evidence.bundle.mjs +0 -70456
- package/dist/edition/verify-image-evidence.bundle.provenance.json +0 -3957
- package/dist/runtime/backing-registration.d.ts +0 -11
- package/dist/runtime/backing-registration.d.ts.map +0 -1
- package/dist/runtime/backing-registration.js +0 -94
- package/dist/runtime/backing-registration.js.map +0 -1
- package/dist/runtime/edition/run-entry.d.ts +0 -9
- package/dist/runtime/edition/run-entry.d.ts.map +0 -1
- package/dist/runtime/edition/run-entry.js +0 -36
- package/dist/runtime/edition/run-entry.js.map +0 -1
- package/dist/runtime/edition/verb-map.d.ts +0 -70
- package/dist/runtime/edition/verb-map.d.ts.map +0 -1
- package/dist/runtime/edition/verb-map.js +0 -166
- package/dist/runtime/edition/verb-map.js.map +0 -1
- package/dist/runtime/env-seeder.d.ts +0 -26
- package/dist/runtime/env-seeder.d.ts.map +0 -1
- package/dist/runtime/env-seeder.js +0 -340
- package/dist/runtime/env-seeder.js.map +0 -1
- package/dist/runtime/port-map.d.ts +0 -3
- package/dist/runtime/port-map.d.ts.map +0 -1
- package/dist/runtime/port-map.js +0 -25
- package/dist/runtime/port-map.js.map +0 -1
- package/dist/runtime/run-manifest.d.ts +0 -52
- package/dist/runtime/run-manifest.d.ts.map +0 -1
- package/dist/runtime/run-manifest.js +0 -585
- package/dist/runtime/run-manifest.js.map +0 -1
- package/dist/runtime/runner/native-runner.d.ts +0 -13
- package/dist/runtime/runner/native-runner.d.ts.map +0 -1
- package/dist/runtime/runner/native-runner.js +0 -94
- package/dist/runtime/runner/native-runner.js.map +0 -1
- package/dist/runtime/runner/service-runner.d.ts +0 -28
- package/dist/runtime/runner/service-runner.d.ts.map +0 -1
- package/dist/runtime/runner/service-runner.js +0 -10
- package/dist/runtime/runner/service-runner.js.map +0 -1
- package/dist/runtime/secrets/generated-platform-secrets.d.ts +0 -16
- package/dist/runtime/secrets/generated-platform-secrets.d.ts.map +0 -1
- package/dist/runtime/secrets/generated-platform-secrets.js +0 -115
- package/dist/runtime/secrets/generated-platform-secrets.js.map +0 -1
- package/dist/runtime/secrets/resolver.d.ts +0 -23
- package/dist/runtime/secrets/resolver.d.ts.map +0 -1
- package/dist/runtime/secrets/resolver.js +0 -266
- package/dist/runtime/secrets/resolver.js.map +0 -1
- package/dist/runtime/supervisor.d.ts +0 -67
- package/dist/runtime/supervisor.d.ts.map +0 -1
- package/dist/runtime/supervisor.js +0 -227
- package/dist/runtime/supervisor.js.map +0 -1
- package/edition/README.md +0 -293
- package/edition/adapter-bundled-versions.mjs +0 -108
- package/edition/adapter-host-versions.mjs +0 -41
- package/edition/assemble-producer-input.mjs +0 -1414
- package/edition/assemble-third-party-input.mjs +0 -336
- package/edition/authored-source-check.mjs +0 -135
- package/edition/authorization-base.mjs +0 -357
- package/edition/biome-content.mjs +0 -327
- package/edition/build-biome-index.mjs +0 -180
- package/edition/build-ledger-completeness.mjs +0 -67
- package/edition/build-ledger.mjs +0 -107
- package/edition/build-platform-service-index.mjs +0 -292
- package/edition/build-runtime-image-source-index.mjs +0 -1187
- package/edition/built-verifier.mjs +0 -55
- package/edition/candidate-edition.mjs +0 -697
- package/edition/canonical-evidence-json.mjs +0 -82
- package/edition/canonical-repository-url.mjs +0 -47
- package/edition/catalogue-edition.mjs +0 -49
- package/edition/catalogue-evidence.mjs +0 -228
- package/edition/catalogue-fetch.mjs +0 -124
- package/edition/catalogue-lock-field.mjs +0 -41
- package/edition/catalogue-pin.mjs +0 -71
- package/edition/catalogue.mjs +0 -223
- package/edition/chart-set-source-commit.mjs +0 -97
- package/edition/check-committed-image-evidence.mjs +0 -412
- package/edition/checkout-indexed-source-repositories.mjs +0 -283
- package/edition/collected-refusals.mjs +0 -59
- package/edition/comment-blanker.mjs +0 -75
- package/edition/connector-source-authority.mjs +0 -60
- package/edition/contract-authority.mjs +0 -122
- package/edition/cosign-certificate-constraints.mjs +0 -50
- package/edition/cross-repo-build-inputs.mjs +0 -158
- package/edition/customer-definition.mjs +0 -174
- package/edition/customer-edition-verbs.mjs +0 -617
- package/edition/customer-flags.mjs +0 -15
- package/edition/develop-catalogue-free-resolve.mjs +0 -280
- package/edition/develop-chart-roster.mjs +0 -96
- package/edition/develop-chart-set.mjs +0 -147
- package/edition/develop-coverage-readers.mjs +0 -217
- package/edition/develop-coverage-run.mjs +0 -50
- package/edition/develop-coverage-verdict.mjs +0 -153
- package/edition/develop-coverage.mjs +0 -131
- package/edition/develop-current-resolution.mjs +0 -29
- package/edition/develop-edition-invariants.mjs +0 -142
- package/edition/develop-edition-resolve.mjs +0 -211
- package/edition/develop-edition.mjs +0 -379
- package/edition/develop-engine-image.mjs +0 -95
- package/edition/develop-follow.mjs +0 -491
- package/edition/develop-freeze.mjs +0 -289
- package/edition/develop-git-bundles.mjs +0 -255
- package/edition/develop-graph.mjs +0 -28
- package/edition/develop-image-coordinate.mjs +0 -54
- package/edition/develop-image-probe.mjs +0 -120
- package/edition/develop-image-record.mjs +0 -194
- package/edition/develop-record-ancestry.mjs +0 -144
- package/edition/develop-record-verify.mjs +0 -216
- package/edition/develop-resolve-report.mjs +0 -159
- package/edition/develop-select-records.mjs +0 -172
- package/edition/develop-selection-line.mjs +0 -30
- package/edition/develop-selection-pins.mjs +0 -36
- package/edition/develop-snapshot-inputs.mjs +0 -93
- package/edition/develop-verify-image-record.mjs +0 -109
- package/edition/dispatched-runtime-components.mjs +0 -172
- package/edition/dist-check.mjs +0 -1137
- package/edition/distribution-evidence-set.mjs +0 -1064
- package/edition/distribution-paths.mjs +0 -191
- package/edition/edition-artifact.mjs +0 -529
- package/edition/edition-biome-manifests.mjs +0 -85
- package/edition/edition-ceiling.mjs +0 -180
- package/edition/edition-channel.mjs +0 -20
- package/edition/edition-chart-set.mjs +0 -104
- package/edition/edition-config.mjs +0 -374
- package/edition/edition-constants.mjs +0 -110
- package/edition/edition-contract-parse.mjs +0 -179
- package/edition/edition-contract.json +0 -100
- package/edition/edition-image-seal.mjs +0 -110
- package/edition/edition-kind.mjs +0 -10
- package/edition/edition-list.mjs +0 -35
- package/edition/edition-locks.mjs +0 -79
- package/edition/edition-pin-verbs.mjs +0 -183
- package/edition/edition-pin.mjs +0 -17
- package/edition/edition-pinned-inputs.mjs +0 -116
- package/edition/edition-protocol.mjs +0 -277
- package/edition/edition-publisher.mjs +0 -21
- package/edition/edition-seal.mjs +0 -257
- package/edition/edition-source-pins.mjs +0 -211
- package/edition/edition-unpin.mjs +0 -16
- package/edition/edition-workspace.mjs +0 -204
- package/edition/evidence-checkout.mjs +0 -439
- package/edition/evidence-grammars.mjs +0 -18
- package/edition/evidence-input-mode.mjs +0 -136
- package/edition/evidence-trust-pin.mjs +0 -380
- package/edition/evidence-trust-policy.mjs +0 -374
- package/edition/external-source-walk.mjs +0 -485
- package/edition/first-party-source-ids.mjs +0 -62
- package/edition/fleet-coordinate-finality.mjs +0 -363
- package/edition/fulcio-certificate-extensions.mjs +0 -231
- package/edition/git-json.mjs +0 -54
- package/edition/git-source-auth.mjs +0 -131
- package/edition/image-delivery-entitlement-descriptor.mjs +0 -106
- package/edition/image-evidence-replay-state.mjs +0 -242
- package/edition/image-evidence.mjs +0 -1404
- package/edition/image-lock-service-rows.mjs +0 -26
- package/edition/image-subject-identity.mjs +0 -24
- package/edition/images-from-record.mjs +0 -298
- package/edition/indexes-at-pins.mjs +0 -13
- package/edition/kernel-capability-domain.mjs +0 -30
- package/edition/kernel-contract-authority.mjs +0 -517
- package/edition/kernel-contract-source-path-set.mjs +0 -94
- package/edition/kernel-package.mjs +0 -206
- package/edition/kernel-protocol-choice.mjs +0 -239
- package/edition/kernel-signer-kind.mjs +0 -23
- package/edition/lib.mjs +0 -3303
- package/edition/locked-bundle-signer.mjs +0 -297
- package/edition/map-with-concurrency.mjs +0 -19
- package/edition/no-follow-file.mjs +0 -94
- package/edition/oci-evidence-verbs.mjs +0 -419
- package/edition/oci-image-source-evidence.mjs +0 -364
- package/edition/operation-grant-admission.mjs +0 -285
- package/edition/operation-requirements.mjs +0 -282
- package/edition/oras-process.mjs +0 -35
- package/edition/oras.mjs +0 -742
- package/edition/pin-source.mjs +0 -242
- package/edition/pinned-cosign.mjs +0 -70
- package/edition/plan-image-evidence-refresh.mjs +0 -427
- package/edition/platform-lock-readability.mjs +0 -901
- package/edition/platform-service-class.mjs +0 -85
- package/edition/platform-service-ownership.mjs +0 -88
- package/edition/platform-service-source-authority.mjs +0 -105
- package/edition/positive-closure.mjs +0 -162
- package/edition/previous-seal-registry.mjs +0 -149
- package/edition/produce-distribution-completeness-evidence.mjs +0 -318
- package/edition/produce-edition-catalogue-evidence.mjs +0 -252
- package/edition/produce-image-delivery-entitlement-evidence.mjs +0 -304
- package/edition/produce-image-source-evidence.mjs +0 -788
- package/edition/producer-evidence-bundle.mjs +0 -201
- package/edition/producer-evidence-index-file.mjs +0 -4
- package/edition/record-refused.mjs +0 -12
- package/edition/registry-credentials.mjs +0 -225
- package/edition/release-catalogue.mjs +0 -47
- package/edition/release-channel-guard.mjs +0 -108
- package/edition/release-edition-artifact.mjs +0 -152
- package/edition/release-edition.mjs +0 -54
- package/edition/remedy-command.mjs +0 -89
- package/edition/repin-evidence-trust.mjs +0 -109
- package/edition/required-resource-provider.mjs +0 -58
- package/edition/resolve-chart-set.mjs +0 -376
- package/edition/resolve-customer-edition.mjs +0 -374
- package/edition/resolve-distribution.mjs +0 -2639
- package/edition/resolve-edition.mjs +0 -192
- package/edition/resolve-images.mjs +0 -2294
- package/edition/seal-image-digests.mjs +0 -954
- package/edition/sealed-distribution-lock.mjs +0 -22
- package/edition/sealed-evidence-accept.mjs +0 -82
- package/edition/shallow-checkout.mjs +0 -18
- package/edition/sigstore-bundle-media-type.mjs +0 -4
- package/edition/source-authority.mjs +0 -713
- package/edition/source-closure.mjs +0 -115
- package/edition/store-publisher-trust.mjs +0 -40
- package/edition/strict-json.mjs +0 -121
- package/edition/string-order.mjs +0 -5
- package/edition/third-party-admission.mjs +0 -91
- package/edition/third-party-bundle-registry.mjs +0 -242
- package/edition/third-party-certificate-extensions.mjs +0 -21
- package/edition/third-party-image-pins.mjs +0 -41
- package/edition/third-party-pins-trusted.mjs +0 -24
- package/edition/third-party-producer-evidence.mjs +0 -76
- package/edition/third-party-source-check.mjs +0 -28
- package/edition/third-party-source-context.mjs +0 -41
- package/edition/third-party-source-evidence.mjs +0 -287
- package/edition/third-party-source-flags.mjs +0 -134
- package/edition/third-party-source-pins.mjs +0 -259
- package/edition/third-party-source-uniqueness.mjs +0 -54
- package/edition/third-party-source-walk.mjs +0 -115
- package/edition/third-party-source-writer.mjs +0 -213
- package/edition/third-party-subjects.mjs +0 -128
- package/edition/trust-policy-arming-verb.mjs +0 -60
- package/edition/trust-policy-arming.mjs +0 -144
- package/edition/trust-policy-image-ownership.mjs +0 -85
- package/edition/trusted-executable.mjs +0 -166
- package/edition/verifier-binding.mjs +0 -45
- package/edition/verifier-files.mjs +0 -8
- package/edition/verifier-kernel-schemas.mjs +0 -22
- package/edition/verifier-provenance.mjs +0 -64
- package/edition/verify-catalogue-evidence.mjs +0 -247
- package/edition/verify-image-evidence.mjs +0 -475
- package/edition/verify-image-platforms.mjs +0 -523
- package/edition/why.mjs +0 -56
- package/edition/workspace-sections.mjs +0 -276
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProgressEventSchema = exports.TERMINAL_PROGRESS_STEPS = exports.ProgressStep = exports.PlanReason = exports.LifecycleOperation = void 0;
|
|
4
|
+
exports.parseLifecycleResponse = parseLifecycleResponse;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
var LifecycleOperation;
|
|
7
|
+
(function (LifecycleOperation) {
|
|
8
|
+
LifecycleOperation["Install"] = "install";
|
|
9
|
+
LifecycleOperation["Update"] = "update";
|
|
10
|
+
LifecycleOperation["Uninstall"] = "uninstall";
|
|
11
|
+
})(LifecycleOperation || (exports.LifecycleOperation = LifecycleOperation = {}));
|
|
12
|
+
var PlanReason;
|
|
13
|
+
(function (PlanReason) {
|
|
14
|
+
PlanReason["Explicit"] = "explicit";
|
|
15
|
+
PlanReason["Dependency"] = "dependency";
|
|
16
|
+
PlanReason["Dependent"] = "dependent";
|
|
17
|
+
PlanReason["Orphan"] = "orphan";
|
|
18
|
+
})(PlanReason || (exports.PlanReason = PlanReason = {}));
|
|
19
|
+
var ProgressStep;
|
|
20
|
+
(function (ProgressStep) {
|
|
21
|
+
ProgressStep["Planned"] = "planned";
|
|
22
|
+
ProgressStep["SourceChecked"] = "source_checked";
|
|
23
|
+
ProgressStep["Fetched"] = "fetched";
|
|
24
|
+
ProgressStep["Verified"] = "verified";
|
|
25
|
+
ProgressStep["MigrationsApplied"] = "migrations_applied";
|
|
26
|
+
ProgressStep["CommandAppended"] = "command_appended";
|
|
27
|
+
ProgressStep["DeliveryAdmitted"] = "delivery_admitted";
|
|
28
|
+
ProgressStep["DeliveryAccepted"] = "delivery_accepted";
|
|
29
|
+
ProgressStep["DeliveryApplied"] = "delivery_applied";
|
|
30
|
+
ProgressStep["DeliveryRejected"] = "delivery_rejected";
|
|
31
|
+
ProgressStep["CompensationAppended"] = "compensation_appended";
|
|
32
|
+
ProgressStep["Completed"] = "completed";
|
|
33
|
+
ProgressStep["Failed"] = "failed";
|
|
34
|
+
})(ProgressStep || (exports.ProgressStep = ProgressStep = {}));
|
|
35
|
+
exports.TERMINAL_PROGRESS_STEPS = new Set([
|
|
36
|
+
ProgressStep.Completed,
|
|
37
|
+
ProgressStep.Failed,
|
|
38
|
+
]);
|
|
39
|
+
exports.ProgressEventSchema = zod_1.z.object({
|
|
40
|
+
type: zod_1.z.literal('step'),
|
|
41
|
+
operationId: zod_1.z.string().min(1),
|
|
42
|
+
ordinal: zod_1.z.number().int().positive(),
|
|
43
|
+
orgId: zod_1.z.string(),
|
|
44
|
+
biomeId: zod_1.z.string().nullable(),
|
|
45
|
+
step: zod_1.z.nativeEnum(ProgressStep),
|
|
46
|
+
process: zod_1.z.string().nullable(),
|
|
47
|
+
seq: zod_1.z.number().int().nullable(),
|
|
48
|
+
replica: zod_1.z.string().nullable(),
|
|
49
|
+
detail: zod_1.z.string().nullable(),
|
|
50
|
+
at: zod_1.z.string(),
|
|
51
|
+
});
|
|
52
|
+
function parseLifecycleResponse(route, schema, body) {
|
|
53
|
+
const result = schema.safeParse(body);
|
|
54
|
+
if (!result.success) {
|
|
55
|
+
throw new Error(`${route}: malformed response: ${result.error.issues
|
|
56
|
+
.map((issue) => `[${issue.path.join('.')}] ${issue.message}`)
|
|
57
|
+
.join('; ')}`);
|
|
58
|
+
}
|
|
59
|
+
return result.data;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=lifecycle-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle-contract.js","sourceRoot":"","sources":["../../../src/runtime/biome-host/lifecycle-contract.ts"],"names":[],"m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,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAOH,SAAgB,sBAAsB,CACpC,KAAa,EACb,MAAoB,EACpB,IAAa;IAEb,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,yBAAyB,MAAM,CAAC,KAAK,CAAC,MAAM;aACjD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aAC5D,IAAI,CAAC,IAAI,CAAC,EAAE,CAChB,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { XemaCliExitCode } from '../../lib/exit-codes';
|
|
2
|
+
import { type ProgressRenderer } from '../lifecycle-progress';
|
|
3
|
+
import { type LifecycleClient } from './lifecycle-client';
|
|
4
|
+
import { type BiomeLifecycleOperation, type BiomeOperationBody, type LifecyclePlan } from './lifecycle-contract';
|
|
5
|
+
export interface LifecycleFlowDeps {
|
|
6
|
+
readonly client: LifecycleClient;
|
|
7
|
+
readonly renderer: ProgressRenderer;
|
|
8
|
+
readonly confirm: (question: string) => Promise<boolean>;
|
|
9
|
+
readonly interactive: boolean;
|
|
10
|
+
readonly report: (line: string) => void;
|
|
11
|
+
readonly clock: () => number;
|
|
12
|
+
}
|
|
13
|
+
export interface LifecycleFlowInput {
|
|
14
|
+
readonly operation: BiomeLifecycleOperation;
|
|
15
|
+
readonly body: BiomeOperationBody;
|
|
16
|
+
readonly dryRun: boolean;
|
|
17
|
+
readonly yes: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function planNeedsConfirmation(plan: LifecyclePlan, request: Pick<BiomeOperationBody, 'purge'>): boolean;
|
|
20
|
+
export type PlanOutcome = {
|
|
21
|
+
readonly plan: LifecyclePlan;
|
|
22
|
+
} | {
|
|
23
|
+
readonly exit: XemaCliExitCode;
|
|
24
|
+
};
|
|
25
|
+
export declare function planAndConfirm(deps: LifecycleFlowDeps, input: LifecycleFlowInput): Promise<PlanOutcome>;
|
|
26
|
+
export declare function executeAndFollow(deps: LifecycleFlowDeps, operation: BiomeLifecycleOperation, body: BiomeOperationBody): Promise<boolean>;
|
|
27
|
+
export declare const planCounts: (plan: LifecyclePlan) => Record<string, number>;
|
|
28
|
+
export declare function runLifecycleFlow(deps: LifecycleFlowDeps, input: LifecycleFlowInput): Promise<XemaCliExitCode>;
|
|
29
|
+
//# sourceMappingURL=lifecycle-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle-flow.d.ts","sourceRoot":"","sources":["../../../src/runtime/biome-host/lifecycle-flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAIL,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAGnB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,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@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.planCounts = void 0;
|
|
4
|
+
exports.planNeedsConfirmation = planNeedsConfirmation;
|
|
5
|
+
exports.planAndConfirm = planAndConfirm;
|
|
6
|
+
exports.executeAndFollow = executeAndFollow;
|
|
7
|
+
exports.runLifecycleFlow = runLifecycleFlow;
|
|
8
|
+
const exit_codes_1 = require("../../lib/exit-codes");
|
|
9
|
+
const lifecycle_progress_1 = require("../lifecycle-progress");
|
|
10
|
+
const lifecycle_contract_1 = require("./lifecycle-contract");
|
|
11
|
+
function planNeedsConfirmation(plan, request) {
|
|
12
|
+
if (request.purge === true) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
return [...plan.install, ...plan.update, ...plan.uninstall].some((entry) => entry.reason !== lifecycle_contract_1.PlanReason.Explicit);
|
|
16
|
+
}
|
|
17
|
+
const PLAN_TITLES = {
|
|
18
|
+
[lifecycle_contract_1.LifecycleOperation.Install]: 'Install plan',
|
|
19
|
+
[lifecycle_contract_1.LifecycleOperation.Update]: 'Update plan',
|
|
20
|
+
[lifecycle_contract_1.LifecycleOperation.Uninstall]: 'Uninstall plan',
|
|
21
|
+
};
|
|
22
|
+
function entryDetail(entry) {
|
|
23
|
+
const parts = [entry.digest, entry.hostAbi].filter((part) => part !== undefined);
|
|
24
|
+
return parts.length === 0 ? undefined : parts.join(' ');
|
|
25
|
+
}
|
|
26
|
+
function planRows(plan) {
|
|
27
|
+
const groups = [
|
|
28
|
+
['install', plan.install],
|
|
29
|
+
['update', plan.update],
|
|
30
|
+
['uninstall', plan.uninstall],
|
|
31
|
+
['unchanged', plan.unchanged],
|
|
32
|
+
];
|
|
33
|
+
return groups.flatMap(([action, entries]) => entries.map((entry) => {
|
|
34
|
+
const detail = entryDetail(entry);
|
|
35
|
+
return { action, subject: entry.biome, reason: entry.reason, ...(detail === undefined ? {} : { detail }) };
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
function stepDetail(event) {
|
|
39
|
+
const parts = [
|
|
40
|
+
event.process,
|
|
41
|
+
event.replica,
|
|
42
|
+
event.seq === null ? null : `seq ${String(event.seq)}`,
|
|
43
|
+
event.detail,
|
|
44
|
+
].filter((part) => part !== null);
|
|
45
|
+
return parts.length === 0 ? undefined : parts.join(' ');
|
|
46
|
+
}
|
|
47
|
+
async function planAndConfirm(deps, input) {
|
|
48
|
+
const plan = await deps.client.plan({ operation: input.operation, ...input.body });
|
|
49
|
+
deps.renderer.plan({ title: PLAN_TITLES[input.operation], rows: planRows(plan) });
|
|
50
|
+
if (plan.refusals.length > 0) {
|
|
51
|
+
for (const refusal of plan.refusals) {
|
|
52
|
+
deps.report(`refused: ${refusal.biome}${refusal.conflictsWith === undefined ? '' : ` conflicts with ${refusal.conflictsWith}`} (${refusal.code}): ${refusal.detail}`);
|
|
53
|
+
}
|
|
54
|
+
return { exit: exit_codes_1.XemaCliExitCode.GenericError };
|
|
55
|
+
}
|
|
56
|
+
if (input.dryRun) {
|
|
57
|
+
return { exit: exit_codes_1.XemaCliExitCode.Ok };
|
|
58
|
+
}
|
|
59
|
+
if (!input.yes && planNeedsConfirmation(plan, input.body)) {
|
|
60
|
+
if (!deps.interactive) {
|
|
61
|
+
deps.report('This plan needs confirmation and there is no terminal to ask on; pass --yes to proceed.');
|
|
62
|
+
return { exit: exit_codes_1.XemaCliExitCode.ConfigurationError };
|
|
63
|
+
}
|
|
64
|
+
if (!(await deps.confirm('Proceed?'))) {
|
|
65
|
+
deps.report('Aborted.');
|
|
66
|
+
return { exit: exit_codes_1.XemaCliExitCode.GenericError };
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return { plan };
|
|
70
|
+
}
|
|
71
|
+
async function executeAndFollow(deps, operation, body) {
|
|
72
|
+
const operationId = await deps.client.execute(operation, body);
|
|
73
|
+
const terminal = await deps.client.streamProgress(operationId, (event) => {
|
|
74
|
+
const detail = stepDetail(event);
|
|
75
|
+
deps.renderer.step({
|
|
76
|
+
ordinal: event.ordinal,
|
|
77
|
+
step: event.step,
|
|
78
|
+
...(event.biomeId === null ? {} : { subject: event.biomeId }),
|
|
79
|
+
...(detail === undefined ? {} : { detail }),
|
|
80
|
+
at: event.at,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
return terminal.step !== lifecycle_contract_1.ProgressStep.Failed;
|
|
84
|
+
}
|
|
85
|
+
const planCounts = (plan) => ({
|
|
86
|
+
install: plan.install.length,
|
|
87
|
+
update: plan.update.length,
|
|
88
|
+
uninstall: plan.uninstall.length,
|
|
89
|
+
unchanged: plan.unchanged.length,
|
|
90
|
+
});
|
|
91
|
+
exports.planCounts = planCounts;
|
|
92
|
+
async function runLifecycleFlow(deps, input) {
|
|
93
|
+
const planned = await planAndConfirm(deps, input);
|
|
94
|
+
if ('exit' in planned) {
|
|
95
|
+
return planned.exit;
|
|
96
|
+
}
|
|
97
|
+
const startedAt = deps.clock();
|
|
98
|
+
const completed = await executeAndFollow(deps, input.operation, input.body);
|
|
99
|
+
deps.renderer.summary({
|
|
100
|
+
outcome: completed ? lifecycle_progress_1.SummaryOutcome.Completed : lifecycle_progress_1.SummaryOutcome.Failed,
|
|
101
|
+
counts: (0, exports.planCounts)(planned.plan),
|
|
102
|
+
durationMs: deps.clock() - startedAt,
|
|
103
|
+
});
|
|
104
|
+
return completed ? exit_codes_1.XemaCliExitCode.Ok : exit_codes_1.XemaCliExitCode.GenericError;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=lifecycle-flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle-flow.js","sourceRoot":"","sources":["../../../src/runtime/biome-host/lifecycle-flow.ts"],"names":[],"mappings":";;;AAwCA,sDAUC;AA0CD,wCA2BC;AAGD,4CAiBC;AAcD,4CAgBC;AAzKD,qDAAuD;AACvD,8DAI+B;AAE/B,6DAS8B;AAwB9B,SAAgB,qBAAq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S,GAAG,MAAM,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5E,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;QACpB,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,mCAAc,CAAC,SAAS,CAAC,CAAC,CAAC,mCAAc,CAAC,MAAM;QACrE,MAAM,EAAE,IAAA,kBAAU,EAAC,OAAO,CAAC,IAAI,CAAC;QAChC,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,SAAS;KACrC,CAAC,CAAC;IACH,OAAO,SAAS,CAAC,CAAC,CAAC,4BAAe,CAAC,EAAE,CAAC,CAAC,CAAC,4BAAe,CAAC,YAAY,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { LifecycleSourceRef } from './lifecycle-contract';
|
|
2
|
+
import type { LifecyclePlanEntryDto } from '@xemahq/biome-host-api-client';
|
|
3
|
+
export declare function resolvedSourceOf(entry: LifecyclePlanEntryDto): LifecycleSourceRef | undefined;
|
|
4
|
+
//# sourceMappingURL=plan-sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-sources.d.ts","sourceRoot":"","sources":["../../../src/runtime/biome-host/plan-sources.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAW3E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,kBAAkB,GAAG,SAAS,CAmB7F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvedSourceOf = resolvedSourceOf;
|
|
4
|
+
const biome_host_api_client_1 = require("@xemahq/biome-host-api-client");
|
|
5
|
+
const biome_1 = require("@xemahq/contracts/biome");
|
|
6
|
+
function resolvedSourceOf(entry) {
|
|
7
|
+
const source = entry.source;
|
|
8
|
+
if (source === undefined) {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
switch (source.kind) {
|
|
12
|
+
case biome_host_api_client_1.LifecyclePlanEntrySourceKind.npm:
|
|
13
|
+
if (source.name === undefined || source.version === undefined || source.registry === undefined) {
|
|
14
|
+
throw new Error(`Biome Host's plan names npm ${source.locator} for ${entry.biome} without its ${source.name === undefined ? 'name' : source.version === undefined ? 'version' : 'registry'}`);
|
|
15
|
+
}
|
|
16
|
+
return { kind: biome_1.BiomeBundleSourceKind.Npm, name: source.name, version: source.version, registryUrl: `https://${source.registry}` };
|
|
17
|
+
case biome_host_api_client_1.LifecyclePlanEntrySourceKind.oci:
|
|
18
|
+
return { kind: biome_1.BiomeBundleSourceKind.Oci, ociRef: source.locator };
|
|
19
|
+
case biome_host_api_client_1.LifecyclePlanEntrySourceKind.tarball:
|
|
20
|
+
if (entry.digest === undefined) {
|
|
21
|
+
throw new Error(`Biome Host's plan names staged upload ${source.locator} for ${entry.biome} without a digest`);
|
|
22
|
+
}
|
|
23
|
+
return { kind: biome_1.BiomeBundleSourceKind.Tarball, uploadId: source.locator, expectedSha256: entry.digest };
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=plan-sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-sources.js","sourceRoot":"","sources":["../../../src/runtime/biome-host/plan-sources.ts"],"names":[],"mappings":";;AAeA,4CAmBC;AAlCD,yEAA6E;AAC7E,mDAAgE;AAchE,SAAgB,gBAAgB,CAAC,KAA4B;IAC3D,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC5B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,QAAQ,MAAM,CAAC,IAAI,EAAE,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|
+
import type { LifecycleSourceRef } from '../lifecycle-contract';
|
|
4
|
+
import type { Oras } from '@xemahq/oci-closure';
|
|
5
|
+
export interface BundleFetchDeps {
|
|
6
|
+
readonly oras: Oras;
|
|
7
|
+
readonly fetch: FetchFn;
|
|
8
|
+
readonly onArtifact: (event: ArtifactEvent) => void;
|
|
9
|
+
readonly npmToken: (registryUrl: string) => string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function fetchBundle(source: LifecycleSourceRef, expectedDigest: string, name: string, deps: BundleFetchDeps): Promise<Uint8Array>;
|
|
12
|
+
//# sourceMappingURL=bundle-fetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-fetch.d.ts","sourceRoot":"","sources":["../../../../src/runtime/biome-host/relay/bundle-fetch.ts"],"names":[],"mappings":"AAQA,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAEpD,QAAQ,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAChE;AAkED,wBAAsB,WAAW,CAC/B,MAAM,EAAE,kBAAkB,EAC1B,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,UAAU,CAAC,CAiBrB"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchBundle = fetchBundle;
|
|
4
|
+
const node_crypto_1 = require("node:crypto");
|
|
5
|
+
const promises_1 = require("node:fs/promises");
|
|
6
|
+
const node_os_1 = require("node:os");
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
8
|
+
const biome_1 = require("@xemahq/contracts/biome");
|
|
9
|
+
const biome_bundle_1 = require("@xemahq/contracts/biome-bundle");
|
|
10
|
+
const lifecycle_progress_1 = require("../../lifecycle-progress");
|
|
11
|
+
const sha256Of = (bytes) => `sha256:${(0, node_crypto_1.createHash)('sha256').update(bytes).digest('hex')}`;
|
|
12
|
+
async function fetchNpm(source, name, deps) {
|
|
13
|
+
if (source.registryUrl === undefined || source.version === undefined) {
|
|
14
|
+
throw new Error(`the plan names npm ${source.name} without a ${source.registryUrl === undefined ? 'registry' : 'version'}: Biome Host must resolve both`);
|
|
15
|
+
}
|
|
16
|
+
const registryUrl = source.registryUrl.replace(/\/+$/u, '');
|
|
17
|
+
const token = deps.npmToken(registryUrl);
|
|
18
|
+
const headers = token === undefined ? undefined : { authorization: `Bearer ${token}` };
|
|
19
|
+
const packumentUrl = `${registryUrl}/${source.name.replace('/', '%2F')}`;
|
|
20
|
+
const packumentResponse = await deps.fetch(packumentUrl, headers === undefined ? undefined : { headers });
|
|
21
|
+
if (!packumentResponse.ok) {
|
|
22
|
+
throw new Error(`GET ${packumentUrl} -> ${String(packumentResponse.status)}`);
|
|
23
|
+
}
|
|
24
|
+
const tarball = (await packumentResponse.json()).versions?.[source.version]?.dist?.tarball;
|
|
25
|
+
if (tarball === undefined) {
|
|
26
|
+
throw new Error(`${packumentUrl} lists no tarball for version ${source.version}`);
|
|
27
|
+
}
|
|
28
|
+
deps.onArtifact({ phase: lifecycle_progress_1.ArtifactPhase.Download, name, bytesDone: 0 });
|
|
29
|
+
const response = await deps.fetch(tarball, headers !== undefined && new URL(tarball).origin === new URL(registryUrl).origin ? { headers } : undefined);
|
|
30
|
+
if (!response.ok) {
|
|
31
|
+
throw new Error(`GET ${tarball} -> ${String(response.status)}`);
|
|
32
|
+
}
|
|
33
|
+
const bytes = new Uint8Array(await response.arrayBuffer());
|
|
34
|
+
deps.onArtifact({ phase: lifecycle_progress_1.ArtifactPhase.Download, name, bytesDone: bytes.length, bytesTotal: bytes.length });
|
|
35
|
+
return bytes;
|
|
36
|
+
}
|
|
37
|
+
async function fetchOci(ociRef, name, deps) {
|
|
38
|
+
const manifest = JSON.parse(deps.oras(['manifest', 'fetch', ociRef]));
|
|
39
|
+
const archives = (manifest.layers ?? []).filter((layer) => layer.mediaType === biome_bundle_1.BUNDLE_OCI.archiveMediaType);
|
|
40
|
+
const layer = archives[0]?.digest;
|
|
41
|
+
if (archives.length !== 1 || layer === undefined) {
|
|
42
|
+
throw new Error(`${ociRef} has ${String(archives.length)} ${biome_bundle_1.BUNDLE_OCI.archiveMediaType} layers, not one`);
|
|
43
|
+
}
|
|
44
|
+
const repository = ociRef.replace(/[:@][^/]*$/u, '');
|
|
45
|
+
const directory = await (0, promises_1.mkdtemp)((0, node_path_1.join)((0, node_os_1.tmpdir)(), 'xema-relay-bundle-'));
|
|
46
|
+
try {
|
|
47
|
+
const file = (0, node_path_1.join)(directory, 'bundle.tgz');
|
|
48
|
+
deps.onArtifact({ phase: lifecycle_progress_1.ArtifactPhase.Download, name, bytesDone: 0 });
|
|
49
|
+
deps.oras(['blob', 'fetch', '--output', file, `${repository}@${layer}`]);
|
|
50
|
+
const bytes = new Uint8Array(await (0, promises_1.readFile)(file));
|
|
51
|
+
deps.onArtifact({ phase: lifecycle_progress_1.ArtifactPhase.Download, name, bytesDone: bytes.length, bytesTotal: bytes.length });
|
|
52
|
+
return bytes;
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
await (0, promises_1.rm)(directory, { recursive: true, force: true });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
async function fetchBundle(source, expectedDigest, name, deps) {
|
|
59
|
+
let bytes;
|
|
60
|
+
switch (source.kind) {
|
|
61
|
+
case biome_1.BiomeBundleSourceKind.Npm:
|
|
62
|
+
bytes = await fetchNpm(source, name, deps);
|
|
63
|
+
break;
|
|
64
|
+
case biome_1.BiomeBundleSourceKind.Oci:
|
|
65
|
+
bytes = await fetchOci(source.ociRef, name, deps);
|
|
66
|
+
break;
|
|
67
|
+
case biome_1.BiomeBundleSourceKind.Tarball:
|
|
68
|
+
throw new Error(`the plan names a staged tarball (${source.uploadId}) as the source of ${name}: there is nothing to relay`);
|
|
69
|
+
}
|
|
70
|
+
const actual = sha256Of(bytes);
|
|
71
|
+
if (actual !== expectedDigest) {
|
|
72
|
+
throw new Error(`${name}: fetched bytes hash to ${actual}, the plan names ${expectedDigest}; nothing was uploaded`);
|
|
73
|
+
}
|
|
74
|
+
return bytes;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=bundle-fetch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-fetch.js","sourceRoot":"","sources":["../../../../src/runtime/biome-host/relay/bundle-fetch.ts"],"names":[],"mappings":";;AAsFA,kCAsBC;AA5GD,6CAAyC;AACzC,+CAAyD;AACzD,qCAAiC;AACjC,yCAAiC;AAEjC,mDAAgE;AAChE,iEAA4D;AAE5D,iEAA6E;AAkB7E,MAAM,QAAQ,GAAG,CAAC,KAAiB,EAAU,EAAE,CAAC,UAAU,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AAE7G,KAAK,UAAU,QAAQ,CACrB,MAAwE,EACxE,IAAY,EACZ,IAAqB;IAErB,IAAI,MAAM,CAAC,WAAW,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACrE,MAAM,IAAI,KAAK,CAAC,sBAAsB,MAAM,CAAC,IAAI,cAAc,MAAM,CAAC,WAAW,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B,CAAC;IACtB,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,6BAAqB,CAAC,GAAG;YAC5B,KAAK,GAAG,MAAM,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAC3C,MAAM;QACR,KAAK,6BAAqB,CAAC,GAAG;YAC5B,KAAK,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAClD,MAAM;QACR,KAAK,6BAAqB,CAAC,OAAO;YAChC,MAAM,IAAI,KAAK,CAAC,oCAAoC,MAAM,CAAC,QAAQ,sBAAsB,IAAI,6BAA6B,CAAC,CAAC;IAChI,CAAC;IACD,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,MAAM,KAAK,cAAc,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,2BAA2B,MAAM,oBAAoB,cAAc,wBAAwB,CAAC,CAAC;IACtH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declared-scheme.d.ts","sourceRoot":"","sources":["../../../../src/runtime/biome-host/relay/declared-scheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAShE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,GAAG,kBAAkB,CAS9G"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withDeclaredScheme = withDeclaredScheme;
|
|
4
|
+
const biome_1 = require("@xemahq/contracts/biome");
|
|
5
|
+
const hostAndPath = (url) => url.replace(/^[a-z]+:\/\//u, '').replace(/\/+$/u, '');
|
|
6
|
+
function withDeclaredScheme(source, declaredNpmRegistry) {
|
|
7
|
+
if (source.kind === biome_1.BiomeBundleSourceKind.Npm &&
|
|
8
|
+
source.registryUrl !== undefined &&
|
|
9
|
+
hostAndPath(source.registryUrl) === hostAndPath(declaredNpmRegistry)) {
|
|
10
|
+
return { ...source, registryUrl: declaredNpmRegistry };
|
|
11
|
+
}
|
|
12
|
+
return source;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=declared-scheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declared-scheme.js","sourceRoot":"","sources":["../../../../src/runtime/biome-host/relay/declared-scheme.ts"],"names":[],"mappings":";;AAWA,gDASC;AApBD,mDAAgE;AAIhE,MAAM,WAAW,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAOnG,SAAgB,kBAAkB,CAAC,MAA0B,EAAE,mBAA2B;IACxF,IACE,MAAM,CAAC,IAAI,KAAK,6BAAqB,CAAC,GAAG;QACzC,MAAM,CAAC,WAAW,KAAK,SAAS;QAChC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,WAAW,CAAC,mBAAmB,CAAC,EACpE,CAAC;QACD,OAAO,EAAE,GAAG,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACzD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type SourceSpec } from '../../sources/schema';
|
|
2
|
+
import type { CredentialResolver } from '../../sources/credentials';
|
|
3
|
+
export declare function npmTokenFor(registryUrl: string, sources: readonly SourceSpec[], credentials: CredentialResolver): string | undefined;
|
|
4
|
+
//# sourceMappingURL=npm-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-token.d.ts","sourceRoot":"","sources":["../../../../src/runtime/biome-host/relay/npm-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAapE,wBAAgB,WAAW,CACzB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,SAAS,UAAU,EAAE,EAC9B,WAAW,EAAE,kBAAkB,GAC9B,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.npmTokenFor = npmTokenFor;
|
|
4
|
+
const schema_1 = require("../../sources/schema");
|
|
5
|
+
const NPMJS = 'https://registry.npmjs.org';
|
|
6
|
+
const normalise = (url) => url.replace(/\/+$/u, '');
|
|
7
|
+
function npmTokenFor(registryUrl, sources, credentials) {
|
|
8
|
+
const wanted = normalise(registryUrl);
|
|
9
|
+
for (const source of sources) {
|
|
10
|
+
if (source.kind === schema_1.SourceKind.Npm && normalise(source.registryUrl ?? NPMJS) === wanted) {
|
|
11
|
+
return credentials.resolve(source.authTokenEnv, source.name);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=npm-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-token.js","sourceRoot":"","sources":["../../../../src/runtime/biome-host/relay/npm-token.ts"],"names":[],"mappings":";;AAeA,kCAYC;AA3BD,iDAAmE;AAInE,MAAM,KAAK,GAAG,4BAA4B,CAAC;AAE3C,MAAM,SAAS,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AASpE,SAAgB,WAAW,CACzB,WAAmB,EACnB,OAA8B,EAC9B,WAA+B;IAE/B,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IACtC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,IAAI,KAAK,mBAAU,CAAC,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC,KAAK,MAAM,EAAE,CAAC;YACxF,OAAO,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { XemaCliExitCode } from '../../../lib/exit-codes';
|
|
2
|
+
import { LifecycleOperation, type BiomeOperationBody, type LifecycleSourceRef } from '../lifecycle-contract';
|
|
3
|
+
import { type LifecycleFlowDeps } from '../lifecycle-flow';
|
|
4
|
+
export interface RelayPorts {
|
|
5
|
+
fetchBundle(source: LifecycleSourceRef, expectedDigest: string, name: string): Promise<Uint8Array>;
|
|
6
|
+
stage(bytes: Uint8Array, name: string): Promise<LifecycleSourceRef>;
|
|
7
|
+
newOperationId(): string;
|
|
8
|
+
}
|
|
9
|
+
export interface RelayFlowInput {
|
|
10
|
+
readonly operation: LifecycleOperation.Install | LifecycleOperation.Update;
|
|
11
|
+
readonly body: BiomeOperationBody;
|
|
12
|
+
readonly dryRun: boolean;
|
|
13
|
+
readonly yes: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function runRelayFlow(deps: LifecycleFlowDeps, relay: RelayPorts, input: RelayFlowInput): Promise<XemaCliExitCode>;
|
|
16
|
+
//# sourceMappingURL=relay-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relay-flow.d.ts","sourceRoot":"","sources":["../../../../src/runtime/biome-host/relay/relay-flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAkB,MAAM,uBAAuB,CAAC;AAC7H,OAAO,EAAgD,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGzG,MAAM,WAAW,UAAU;IAEzB,WAAW,CAAC,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEnG,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACpE,cAAc,IAAI,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAC3E,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB;AAiBD,wBAAsB,YAAY,CAChC,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,eAAe,CAAC,CAuC1B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runRelayFlow = runRelayFlow;
|
|
4
|
+
const exit_codes_1 = require("../../../lib/exit-codes");
|
|
5
|
+
const lifecycle_progress_1 = require("../../lifecycle-progress");
|
|
6
|
+
const lifecycle_contract_1 = require("../lifecycle-contract");
|
|
7
|
+
const lifecycle_flow_1 = require("../lifecycle-flow");
|
|
8
|
+
const stepEvent = (ordinal, total, step) => ({ ordinal, total, step, at: new Date().toISOString() });
|
|
9
|
+
async function runRelayFlow(deps, relay, input) {
|
|
10
|
+
const planned = await (0, lifecycle_flow_1.planAndConfirm)(deps, input);
|
|
11
|
+
if ('exit' in planned) {
|
|
12
|
+
return planned.exit;
|
|
13
|
+
}
|
|
14
|
+
const { plan } = planned;
|
|
15
|
+
const members = [
|
|
16
|
+
...plan.install.map((entry) => ({ operation: lifecycle_contract_1.LifecycleOperation.Install, entry })),
|
|
17
|
+
...plan.update.map((entry) => ({ operation: lifecycle_contract_1.LifecycleOperation.Update, entry })),
|
|
18
|
+
];
|
|
19
|
+
for (const { entry } of members) {
|
|
20
|
+
if (entry.source === undefined || entry.digest === undefined) {
|
|
21
|
+
throw new Error(`Biome Host's plan names no ${entry.source === undefined ? 'source' : 'digest'} for ${entry.biome}: the relay does not choose one`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const startedAt = deps.clock();
|
|
25
|
+
const total = members.length;
|
|
26
|
+
let ordinal = 0;
|
|
27
|
+
for (const { operation, entry } of members) {
|
|
28
|
+
ordinal += 1;
|
|
29
|
+
const label = `relay ${entry.biome}`;
|
|
30
|
+
deps.renderer.step(stepEvent(ordinal, total, label));
|
|
31
|
+
const bytes = await relay.fetchBundle(entry.source, entry.digest, entry.biome);
|
|
32
|
+
const staged = await relay.stage(bytes, `${entry.biome}.tgz`);
|
|
33
|
+
deps.renderer.step({ ...stepEvent(ordinal, total, label), outcome: lifecycle_progress_1.StepOutcome.Ok, detail: `${entry.digest} verified, staged` });
|
|
34
|
+
const completed = await (0, lifecycle_flow_1.executeAndFollow)(deps, operation, {
|
|
35
|
+
operationId: relay.newOperationId(),
|
|
36
|
+
biome: entry.biome,
|
|
37
|
+
source: staged,
|
|
38
|
+
digest: entry.digest,
|
|
39
|
+
});
|
|
40
|
+
if (!completed) {
|
|
41
|
+
deps.renderer.summary({ outcome: lifecycle_progress_1.SummaryOutcome.Failed, counts: (0, lifecycle_flow_1.planCounts)(plan), durationMs: deps.clock() - startedAt });
|
|
42
|
+
return exit_codes_1.XemaCliExitCode.GenericError;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
deps.renderer.summary({ outcome: lifecycle_progress_1.SummaryOutcome.Completed, counts: (0, lifecycle_flow_1.planCounts)(plan), durationMs: deps.clock() - startedAt });
|
|
46
|
+
return exit_codes_1.XemaCliExitCode.Ok;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=relay-flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relay-flow.js","sourceRoot":"","sources":["../../../../src/runtime/biome-host/relay/relay-flow.ts"],"names":[],"mappings":";;AAoCA,oCA2CC;AA/ED,wDAA0D;AAC1D,iEAAuE;AACvE,8DAA6H;AAC7H,sDAAyG;AAkBzG,MAAM,SAAS,GAAG,CAAC,OAAe,EAAE,KAAa,EAAE,IAAY,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAetH,KAAK,UAAU,YAAY,CAChC,IAAuB,EACvB,KAAiB,EACjB,KAAqB;IAErB,MAAM,OAAO,GAAG,MAAM,IAAA,+BAAc,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAClD,IAAI,MAAM,IAAI,OAAO,EAAE,CAAC;QACtB,OAAO,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACzB,MAAM,OAAO,GAAa;QACxB,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAU,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,uCAAkB,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1F,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAU,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,uCAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;KACzF,CAAC;IACF,KAAK,MAAM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AAC,IAAI,EAAE,SAAS,EAAE;YACxD,WAAW,EAAE,KAAK,CAAC,cAAc,EAAE;YACnC,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,KAAK,CAAC,MAAgB;SAC/B,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,mCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAA,2BAAU,EAAC,IAAI,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC;YAC1H,OAAO,4BAAe,CAAC,YAAY,CAAC;QACtC,CAAC;IACH,CAAC;IACD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,mCAAc,CAAC,SAAS,EAAE,MAAM,EAAE,IAAA,2BAAU,EAAC,IAAI,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC;IAC7H,OAAO,4BAAe,CAAC,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ArtifactEvent } from '../lifecycle-progress';
|
|
2
|
+
import { type BundlePacker } from './bundle-packer';
|
|
3
|
+
import { type FromRegistries, type ParsedFrom } from './from-spec';
|
|
4
|
+
import { type FetchFn } from './lifecycle-client';
|
|
5
|
+
import { type LifecycleSourceRef, type StagingUpload } from './lifecycle-contract';
|
|
6
|
+
export interface SourceStagingDeps {
|
|
7
|
+
readonly registries: FromRegistries;
|
|
8
|
+
readonly mintStagingUpload: () => Promise<StagingUpload>;
|
|
9
|
+
readonly fetch: FetchFn;
|
|
10
|
+
readonly packer: BundlePacker;
|
|
11
|
+
readonly onArtifact: (event: ArtifactEvent) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function stageBytes(bytes: Uint8Array, name: string, deps: Pick<SourceStagingDeps, 'mintStagingUpload' | 'fetch' | 'onArtifact'>): Promise<LifecycleSourceRef>;
|
|
14
|
+
export declare function resolveSourceRef(parsed: Exclude<ParsedFrom, {
|
|
15
|
+
kind: 'named';
|
|
16
|
+
}>, deps: SourceStagingDeps): Promise<LifecycleSourceRef>;
|
|
17
|
+
//# sourceMappingURL=source-staging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-staging.d.ts","sourceRoot":"","sources":["../../../src/runtime/biome-host/source-staging.ts"],"names":[],"mappings":"AAQA,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAiC,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAClG,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEnF,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;IACzD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CACrD;AAsBD,wBAAsB,UAAU,CAC9B,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,IAAI,CAAC,iBAAiB,EAAE,mBAAmB,GAAG,OAAO,GAAG,YAAY,CAAC,GAC1E,OAAO,CAAC,kBAAkB,CAAC,CAkB7B;AA2BD,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,EAC9C,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,kBAAkB,CAAC,CAU7B"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stageBytes = stageBytes;
|
|
4
|
+
exports.resolveSourceRef = resolveSourceRef;
|
|
5
|
+
const node_crypto_1 = require("node:crypto");
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
7
|
+
const promises_1 = require("node:fs/promises");
|
|
8
|
+
const node_os_1 = require("node:os");
|
|
9
|
+
const node_path_1 = require("node:path");
|
|
10
|
+
const biome_1 = require("@xemahq/contracts/biome");
|
|
11
|
+
const lifecycle_progress_1 = require("../lifecycle-progress");
|
|
12
|
+
const from_spec_1 = require("./from-spec");
|
|
13
|
+
async function hashFile(path, onArtifact) {
|
|
14
|
+
const name = (0, node_path_1.basename)(path);
|
|
15
|
+
const hash = (0, node_crypto_1.createHash)('sha256');
|
|
16
|
+
let bytesDone = 0;
|
|
17
|
+
onArtifact({ phase: lifecycle_progress_1.ArtifactPhase.Hash, name, bytesDone });
|
|
18
|
+
for await (const chunk of (0, node_fs_1.createReadStream)(path)) {
|
|
19
|
+
const bytes = chunk;
|
|
20
|
+
hash.update(bytes);
|
|
21
|
+
bytesDone += bytes.length;
|
|
22
|
+
}
|
|
23
|
+
onArtifact({ phase: lifecycle_progress_1.ArtifactPhase.Hash, name, bytesDone, bytesTotal: bytesDone });
|
|
24
|
+
return hash.digest('hex');
|
|
25
|
+
}
|
|
26
|
+
function hasHeader(headers, name) {
|
|
27
|
+
return Object.keys(headers).some((key) => key.toLowerCase() === name);
|
|
28
|
+
}
|
|
29
|
+
async function stageBytes(bytes, name, deps) {
|
|
30
|
+
const expectedSha256 = (0, node_crypto_1.createHash)('sha256').update(bytes).digest('hex');
|
|
31
|
+
const slot = await deps.mintStagingUpload();
|
|
32
|
+
deps.onArtifact({ phase: lifecycle_progress_1.ArtifactPhase.Upload, name, bytesDone: 0, bytesTotal: bytes.length });
|
|
33
|
+
const headers = hasHeader(slot.requiredHeaders, 'content-type')
|
|
34
|
+
? { ...slot.requiredHeaders }
|
|
35
|
+
: { ...slot.requiredHeaders, 'content-type': slot.contentType };
|
|
36
|
+
const res = await deps.fetch(slot.putUrl, { method: 'PUT', headers, body: bytes });
|
|
37
|
+
if (!res.ok) {
|
|
38
|
+
throw new Error(`Staging upload PUT -> ${String(res.status)}: ${await res.text()}`);
|
|
39
|
+
}
|
|
40
|
+
deps.onArtifact({
|
|
41
|
+
phase: lifecycle_progress_1.ArtifactPhase.Upload,
|
|
42
|
+
name,
|
|
43
|
+
bytesDone: bytes.length,
|
|
44
|
+
bytesTotal: bytes.length,
|
|
45
|
+
});
|
|
46
|
+
return { kind: biome_1.BiomeBundleSourceKind.Tarball, uploadId: slot.uploadId, expectedSha256 };
|
|
47
|
+
}
|
|
48
|
+
async function stageTarball(path, deps) {
|
|
49
|
+
const tarball = (0, node_path_1.resolve)(path);
|
|
50
|
+
const sha256 = await hashFile(tarball, deps.onArtifact);
|
|
51
|
+
const staged = await stageBytes(await (0, promises_1.readFile)(tarball), (0, node_path_1.basename)(tarball), deps);
|
|
52
|
+
if (staged.kind !== biome_1.BiomeBundleSourceKind.Tarball || staged.expectedSha256 !== sha256) {
|
|
53
|
+
throw new Error(`${tarball} changed while it was being staged`);
|
|
54
|
+
}
|
|
55
|
+
return staged;
|
|
56
|
+
}
|
|
57
|
+
async function stageDirectory(dir, deps) {
|
|
58
|
+
const outDir = await (0, promises_1.mkdtemp)((0, node_path_1.join)((0, node_os_1.tmpdir)(), `xema-pack-${(0, node_crypto_1.randomUUID)().slice(0, 8)}-`));
|
|
59
|
+
try {
|
|
60
|
+
const name = (0, node_path_1.basename)((0, node_path_1.resolve)(dir));
|
|
61
|
+
deps.onArtifact({ phase: lifecycle_progress_1.ArtifactPhase.Pack, name, bytesDone: 0 });
|
|
62
|
+
const packed = await deps.packer.pack((0, node_path_1.resolve)(dir), outDir);
|
|
63
|
+
return await stageTarball(packed.tarballPath, deps);
|
|
64
|
+
}
|
|
65
|
+
finally {
|
|
66
|
+
await (0, promises_1.rm)(outDir, { recursive: true, force: true });
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async function resolveSourceRef(parsed, deps) {
|
|
70
|
+
switch (parsed.kind) {
|
|
71
|
+
case from_spec_1.FromKind.Npm:
|
|
72
|
+
case from_spec_1.FromKind.Oci:
|
|
73
|
+
return (0, from_spec_1.toRegistrySourceRef)(parsed, deps.registries);
|
|
74
|
+
case from_spec_1.FromKind.Tgz:
|
|
75
|
+
return stageTarball(parsed.path, deps);
|
|
76
|
+
case from_spec_1.FromKind.Dir:
|
|
77
|
+
return stageDirectory(parsed.path, deps);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=source-staging.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-staging.js","sourceRoot":"","sources":["../../../src/runtime/biome-host/source-staging.ts"],"names":[],"mappings":";;AA0CA,gCAsBC;AA2BD,4CAaC;AAxGD,6CAAqD;AACrD,qCAA2C;AAC3C,+CAAyD;AACzD,qCAAiC;AACjC,yCAAoD;AAEpD,mDAAgE;AAEhE,8DAA0E;AAE1E,2CAAkG;AAalG,KAAK,UAAU,QAAQ,CAAC,IAAY,EAAE,UAA0C;IAC9E,MAAM,IAAI,GAAG,IAAA,oBAAQ,EAAC,IAAI,CAAC,CAAC;IAC5B,MAAM,IAAI,GAAG,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,EAAE,kCAAa,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3D,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,IAAA,0BAA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