@xemahq/xema 0.59.1 → 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 -1423
- 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 -2351
- 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,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runImport = runImport;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const node_os_1 = require("node:os");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const mirror_1 = require("@xemahq/contracts/mirror");
|
|
8
|
+
const server_1 = require("@xemahq/contracts/mirror/server");
|
|
9
|
+
const kit_archive_1 = require("./kit-archive");
|
|
10
|
+
const kit_layout_1 = require("./kit-layout");
|
|
11
|
+
const kit_sums_1 = require("./kit-sums");
|
|
12
|
+
const layout_sync_1 = require("./layout-sync");
|
|
13
|
+
const lifecycle_progress_1 = require("../../runtime/lifecycle-progress");
|
|
14
|
+
const preflight_1 = require("../preflight/preflight");
|
|
15
|
+
const npm_sync_1 = require("../target/npm-sync");
|
|
16
|
+
const oci_items_1 = require("../target/oci-items");
|
|
17
|
+
const receipt_1 = require("../target/receipt");
|
|
18
|
+
const receipt_store_1 = require("../target/receipt-store");
|
|
19
|
+
const target_state_1 = require("../target/target-state");
|
|
20
|
+
const stepEvent = (ordinal, total, step) => ({ ordinal, total, step, at: new Date().toISOString() });
|
|
21
|
+
const STAGING_TAG_PREFIX = 'xema-import-';
|
|
22
|
+
function verifyKit(kitRoot, config, ports, current) {
|
|
23
|
+
const manifestPath = (0, node_path_1.join)(kitRoot, kit_layout_1.KIT_MANIFEST_FILE);
|
|
24
|
+
if (!(0, node_fs_1.existsSync)(manifestPath)) {
|
|
25
|
+
throw new Error(`the kit has no ${kit_layout_1.KIT_MANIFEST_FILE}`);
|
|
26
|
+
}
|
|
27
|
+
const parsed = mirror_1.MirrorKitManifestSchema.safeParse(JSON.parse((0, node_fs_1.readFileSync)(manifestPath, 'utf8')));
|
|
28
|
+
if (!parsed.success) {
|
|
29
|
+
throw new Error(`${kit_layout_1.KIT_MANIFEST_FILE} is not a kit manifest: ${parsed.error.issues[0]?.message ?? 'invalid'}`);
|
|
30
|
+
}
|
|
31
|
+
const kit = parsed.data;
|
|
32
|
+
if (kit.installationId !== config.installation) {
|
|
33
|
+
throw new Error(`the kit is for installation "${kit.installationId}", mirror.yaml is for "${config.installation}"`);
|
|
34
|
+
}
|
|
35
|
+
(0, server_1.assertMirrorContentSetDigest)(kit.lock);
|
|
36
|
+
const expectedId = (0, server_1.mirrorKitId)({ since: kit.since, contentSetDigest: kit.contentSetDigest, items: kit.items });
|
|
37
|
+
if (expectedId !== kit.kitId) {
|
|
38
|
+
throw new Error(`${kit_layout_1.KIT_MANIFEST_FILE} kitId ${kit.kitId} is not the id of its own contents (${expectedId})`);
|
|
39
|
+
}
|
|
40
|
+
const sums = (0, node_fs_1.readFileSync)((0, node_path_1.join)(kitRoot, kit_layout_1.KIT_SUMS_FILE), 'utf8');
|
|
41
|
+
if ((0, kit_sums_1.sha256Text)(sums) !== kit.sha256sums) {
|
|
42
|
+
throw new Error(`${kit_layout_1.KIT_SUMS_FILE} does not match the sha256 recorded in ${kit_layout_1.KIT_MANIFEST_FILE}`);
|
|
43
|
+
}
|
|
44
|
+
const violations = (0, kit_sums_1.sumsViolations)(kitRoot, sums);
|
|
45
|
+
if (violations.length > 0) {
|
|
46
|
+
throw new Error(`the kit failed its checksums: ${violations.join('; ')}`);
|
|
47
|
+
}
|
|
48
|
+
const items = (0, oci_items_1.ociItems)(kit.items, config.target.images.mirror);
|
|
49
|
+
for (const item of items) {
|
|
50
|
+
const lacking = (0, layout_sync_1.layoutLacks)(ports.oras, item, (0, kit_layout_1.layoutDirectory)(kitRoot, item.source));
|
|
51
|
+
if (lacking !== null) {
|
|
52
|
+
throw new Error(`the kit layout for ${item.source} does not resolve ${lacking}`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
for (const pkg of kit.items.npm) {
|
|
56
|
+
const actual = (0, npm_sync_1.integrityOf)((0, node_fs_1.readFileSync)((0, kit_layout_1.npmTarballPath)(kitRoot, pkg)));
|
|
57
|
+
if (actual !== pkg.integrity) {
|
|
58
|
+
throw new Error(`the kit tarball of ${pkg.name}@${pkg.version} has integrity ${actual}, not ${pkg.integrity}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (kit.since !== null && (current === null || (0, server_1.mirrorReceiptDigest)(current) !== kit.since)) {
|
|
62
|
+
throw new Error(`the kit follows receipt ${kit.since}, but the target holds ${current === null ? 'no receipt' : (0, server_1.mirrorReceiptDigest)(current)}: ` +
|
|
63
|
+
'a kit was skipped or another import committed; cut the kit again with `xema mirror export --since` from the target\'s receipt');
|
|
64
|
+
}
|
|
65
|
+
return { kit, items };
|
|
66
|
+
}
|
|
67
|
+
async function runImport(config, ports, options) {
|
|
68
|
+
const { progress } = ports;
|
|
69
|
+
const repository = (0, receipt_store_1.receiptRepository)(config.target.images);
|
|
70
|
+
const scratch = (0, node_fs_1.mkdtempSync)((0, node_path_1.join)((0, node_os_1.tmpdir)(), 'xema-mirror-import-'));
|
|
71
|
+
try {
|
|
72
|
+
progress.step(stepEvent(1, 5, 'verify the kit'));
|
|
73
|
+
await (0, kit_archive_1.listKitEntries)(options.kitFile);
|
|
74
|
+
await (0, kit_archive_1.unpackKit)(options.kitFile, scratch);
|
|
75
|
+
const current = (0, receipt_store_1.readCurrentReceipt)(ports.oras, ports.access, repository);
|
|
76
|
+
const { kit, items } = verifyKit(scratch, config, ports, current);
|
|
77
|
+
progress.step({ ...stepEvent(1, 5, 'verify the kit'), outcome: lifecycle_progress_1.StepOutcome.Ok, detail: `kit ${(0, server_1.mirrorKitIdShort)(kit.kitId)}, ${String(items.length)} OCI items, ${String(kit.items.npm.length)} npm packages` });
|
|
78
|
+
progress.table({
|
|
79
|
+
title: `Import into ${config.target.images.registry}`,
|
|
80
|
+
columns: ['kind', 'name', 'to'],
|
|
81
|
+
rows: [
|
|
82
|
+
...items.map((item) => [item.section, item.label, `${item.target}@${item.digest.slice(0, 19)}`]),
|
|
83
|
+
['npm', `${String(kit.items.npm.length)} packages`, config.target.npm.registry],
|
|
84
|
+
],
|
|
85
|
+
});
|
|
86
|
+
progress.step(stepEvent(2, 5, 'preflight'));
|
|
87
|
+
const preflight = await (0, preflight_1.runPreflight)({
|
|
88
|
+
config,
|
|
89
|
+
ports,
|
|
90
|
+
items,
|
|
91
|
+
npm: kit.items.npm.map((pkg) => ({ pkg, bytes: (0, node_fs_1.statSync)((0, kit_layout_1.npmTarballPath)(scratch, pkg)).size })),
|
|
92
|
+
});
|
|
93
|
+
for (const note of preflight.notes) {
|
|
94
|
+
progress.log({ step: 'preflight', line: note });
|
|
95
|
+
}
|
|
96
|
+
if (preflight.problems.length > 0) {
|
|
97
|
+
throw new Error(`the import would fail, nothing was staged: ${preflight.problems.join('; ')}`);
|
|
98
|
+
}
|
|
99
|
+
progress.step({ ...stepEvent(2, 5, 'preflight'), outcome: lifecycle_progress_1.StepOutcome.Ok, detail: '' });
|
|
100
|
+
const stagingTag = `${STAGING_TAG_PREFIX}${(0, server_1.mirrorKitIdShort)(kit.kitId)}`;
|
|
101
|
+
progress.step(stepEvent(3, 5, 'stage'));
|
|
102
|
+
for (const item of items) {
|
|
103
|
+
(0, layout_sync_1.stageItem)(ports.oras, ports.access, item, (0, kit_layout_1.layoutDirectory)(scratch, item.source));
|
|
104
|
+
progress.log({ step: 'stage', line: `${item.label} ${item.digest}` });
|
|
105
|
+
}
|
|
106
|
+
const tarballs = new Map(kit.items.npm.map((pkg) => [pkg.tarball, (0, node_fs_1.readFileSync)((0, kit_layout_1.npmTarballPath)(scratch, pkg))]));
|
|
107
|
+
await (0, npm_sync_1.pushNpm)(ports.npm, (url) => {
|
|
108
|
+
const bytes = tarballs.get(url);
|
|
109
|
+
return bytes === undefined ? Promise.reject(new Error(`the kit has no tarball for ${url}`)) : Promise.resolve(bytes);
|
|
110
|
+
}, kit.items.npm, stagingTag, (pkg) => progress.log({ step: 'stage', line: `${pkg.name}@${pkg.version}` }));
|
|
111
|
+
progress.step({ ...stepEvent(3, 5, 'stage'), outcome: lifecycle_progress_1.StepOutcome.Ok, detail: 'read back from the target' });
|
|
112
|
+
progress.step(stepEvent(4, 5, 'commit'));
|
|
113
|
+
const latest = (0, receipt_store_1.readCurrentReceipt)(ports.oras, ports.access, repository);
|
|
114
|
+
if ((latest === null ? null : (0, server_1.mirrorReceiptDigest)(latest)) !== (current === null ? null : (0, server_1.mirrorReceiptDigest)(current))) {
|
|
115
|
+
throw new Error('the target receipt changed while this import was staging (a concurrent import committed); nothing was committed, run it again');
|
|
116
|
+
}
|
|
117
|
+
for (const item of items) {
|
|
118
|
+
(0, layout_sync_1.commitItemTags)(ports.oras, ports.access, item, (0, kit_layout_1.layoutDirectory)(scratch, item.source));
|
|
119
|
+
}
|
|
120
|
+
for (const pkg of kit.items.npm) {
|
|
121
|
+
await ports.npm.removeDistTag(pkg.name, stagingTag);
|
|
122
|
+
}
|
|
123
|
+
const assessment = await (0, target_state_1.assessTarget)({
|
|
124
|
+
oras: ports.oras,
|
|
125
|
+
access: ports.access,
|
|
126
|
+
npm: ports.npm,
|
|
127
|
+
set: { ...kit.lock, npm: kit.items.npm },
|
|
128
|
+
items,
|
|
129
|
+
});
|
|
130
|
+
if (!(0, target_state_1.inSync)(assessment)) {
|
|
131
|
+
throw new Error(`the target lacks content after staging, nothing was committed: ${[...assessment.ociGaps.map((g) => g.what), ...assessment.npmGaps.map((g) => `${g.pkg.name}@${g.pkg.version} ${g.what}`)].join('; ')}`);
|
|
132
|
+
}
|
|
133
|
+
const receipt = (0, receipt_1.buildReceipt)({
|
|
134
|
+
set: kit.lock,
|
|
135
|
+
config,
|
|
136
|
+
assessment,
|
|
137
|
+
previous: current,
|
|
138
|
+
via: mirror_1.MirrorReceiptVia.Import,
|
|
139
|
+
verifiedAt: ports.now(),
|
|
140
|
+
kitId: kit.kitId,
|
|
141
|
+
});
|
|
142
|
+
const receiptDigest = (0, receipt_store_1.publishReceipt)(ports.oras, ports.access, repository, receipt, (0, server_1.mirrorKitIdShort)(kit.kitId));
|
|
143
|
+
progress.step({ ...stepEvent(4, 5, 'commit'), outcome: lifecycle_progress_1.StepOutcome.Ok, detail: `receipt ${receiptDigest}` });
|
|
144
|
+
progress.step(stepEvent(5, 5, 'report'));
|
|
145
|
+
if (options.receiptFile !== null) {
|
|
146
|
+
(0, node_fs_1.writeFileSync)(options.receiptFile, (0, receipt_store_1.serializeReceipt)(receipt));
|
|
147
|
+
}
|
|
148
|
+
const edition = (0, oci_items_1.ociItems)({ editionArtifact: kit.lock.editionArtifact, images: [], bundles: [], charts: [] }, config.target.images.mirror)[0];
|
|
149
|
+
progress.step({ ...stepEvent(5, 5, 'report'), outcome: lifecycle_progress_1.StepOutcome.Ok, detail: '' });
|
|
150
|
+
progress.summary({
|
|
151
|
+
title: 'Import committed',
|
|
152
|
+
outcome: lifecycle_progress_1.SummaryOutcome.Completed,
|
|
153
|
+
counts: { ociItems: items.length, npmPackages: kit.items.npm.length },
|
|
154
|
+
facts: [
|
|
155
|
+
{ name: 'edition artifact to deploy', value: `${edition?.target ?? ''}@${kit.lock.editionArtifact.digest}` },
|
|
156
|
+
{ name: 'contentSetDigest', value: kit.contentSetDigest },
|
|
157
|
+
{ name: 'receipt', value: receiptDigest },
|
|
158
|
+
...(options.receiptFile === null ? [] : [{ name: 'receiptFile', value: options.receiptFile }]),
|
|
159
|
+
],
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
finally {
|
|
163
|
+
(0, node_fs_1.rmSync)(scratch, { recursive: true, force: true });
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=import-kit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-kit.js","sourceRoot":"","sources":["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EAAE;gBAC5G,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,GAAG,CAAC,gBAAgB,EAAE;gBACzD,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE;gBACzC,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;aAC/F;SACF,CAAC,CAAC;IACL,CAAC;YAAS,CAAC;QACT,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function packKit(directory: string, file: string): Promise<void>;
|
|
2
|
+
export declare function listKitEntries(file: string): Promise<readonly string[]>;
|
|
3
|
+
export declare function unpackKit(file: string, directory: string): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=kit-archive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-archive.d.ts","sourceRoot":"","sources":["../../../src/mirror/kit/kit-archive.ts"],"names":[],"mappings":"AAKA,wBAAsB,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE5E;AAeD,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAY7E;AAGD,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG9E"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packKit = packKit;
|
|
4
|
+
exports.listKitEntries = listKitEntries;
|
|
5
|
+
exports.unpackKit = unpackKit;
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const tar_1 = require("tar");
|
|
8
|
+
async function packKit(directory, file) {
|
|
9
|
+
await (0, tar_1.create)({ file, cwd: directory, portable: true, noMtime: true }, ['.']);
|
|
10
|
+
}
|
|
11
|
+
const ALLOWED_ENTRY_TYPES = new Set(['File', 'Directory']);
|
|
12
|
+
function assertSafeEntry(path, type) {
|
|
13
|
+
if (!ALLOWED_ENTRY_TYPES.has(type)) {
|
|
14
|
+
throw new Error(`the kit holds a ${type} entry "${path}"; only files and directories are allowed`);
|
|
15
|
+
}
|
|
16
|
+
const normalized = node_path_1.posix.normalize(path);
|
|
17
|
+
if (path.startsWith('/') || path.includes('\\') || normalized.split('/').includes('..') || /^[A-Za-z]:/u.test(path)) {
|
|
18
|
+
throw new Error(`the kit holds an unsafe path "${path}"`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
async function listKitEntries(file) {
|
|
22
|
+
const entries = [];
|
|
23
|
+
await (0, tar_1.list)({
|
|
24
|
+
file,
|
|
25
|
+
onReadEntry: (entry) => {
|
|
26
|
+
entries.push({ path: entry.path, type: entry.type });
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
for (const entry of entries) {
|
|
30
|
+
assertSafeEntry(entry.path, entry.type);
|
|
31
|
+
}
|
|
32
|
+
return entries.map((entry) => node_path_1.posix.normalize(entry.path));
|
|
33
|
+
}
|
|
34
|
+
async function unpackKit(file, directory) {
|
|
35
|
+
await listKitEntries(file);
|
|
36
|
+
await (0, tar_1.extract)({ file, cwd: directory, strict: true, preservePaths: false });
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=kit-archive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-archive.js","sourceRoot":"","sources":["../../../src/mirror/kit/kit-archive.ts"],"names":[],"mappings":";;AAKA,0BAEC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ACF,CAAC,CAAC;IACH,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,iBAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7D,CAAC;AAGM,KAAK,UAAU,SAAS,CAAC,IAAY,EAAE,SAAiB;IAC7D,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC;IAC3B,MAAM,IAAA,aAAO,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MirrorNpmPackage } from '@xemahq/contracts/mirror';
|
|
2
|
+
export declare const KIT_MANIFEST_FILE = "kit.json";
|
|
3
|
+
export declare const KIT_SUMS_FILE = "SHA256SUMS";
|
|
4
|
+
export declare const KIT_OCI_DIR = "oci";
|
|
5
|
+
export declare const KIT_NPM_DIR = "npm";
|
|
6
|
+
export declare const KIT_UNLISTED_FILES: ReadonlySet<string>;
|
|
7
|
+
export declare const kitFileName: (installationId: string, kitIdShort: string) => string;
|
|
8
|
+
export declare const layoutDirectory: (kitRoot: string, source: string) => string;
|
|
9
|
+
export declare function npmTarballPath(kitRoot: string, pkg: Pick<MirrorNpmPackage, 'name' | 'version'>): string;
|
|
10
|
+
//# sourceMappingURL=kit-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-layout.d.ts","sourceRoot":"","sources":["../../../src/mirror/kit/kit-layout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,aAAa,eAAe,CAAC;AAC1C,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,WAAW,QAAQ,CAAC;AAGjC,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAA+C,CAAC;AAEnG,eAAO,MAAM,WAAW,GAAI,gBAAgB,MAAM,EAAE,YAAY,MAAM,KAAG,MAA2D,CAAC;AAGrI,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,EAAE,QAAQ,MAAM,KAAG,MACT,CAAC;AAG1D,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,CAGvG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.layoutDirectory = exports.kitFileName = exports.KIT_UNLISTED_FILES = exports.KIT_NPM_DIR = exports.KIT_OCI_DIR = exports.KIT_SUMS_FILE = exports.KIT_MANIFEST_FILE = void 0;
|
|
4
|
+
exports.npmTarballPath = npmTarballPath;
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
exports.KIT_MANIFEST_FILE = 'kit.json';
|
|
7
|
+
exports.KIT_SUMS_FILE = 'SHA256SUMS';
|
|
8
|
+
exports.KIT_OCI_DIR = 'oci';
|
|
9
|
+
exports.KIT_NPM_DIR = 'npm';
|
|
10
|
+
exports.KIT_UNLISTED_FILES = new Set([exports.KIT_MANIFEST_FILE, exports.KIT_SUMS_FILE]);
|
|
11
|
+
const kitFileName = (installationId, kitIdShort) => `xema-mirror-${installationId}-${kitIdShort}.tar`;
|
|
12
|
+
exports.kitFileName = kitFileName;
|
|
13
|
+
const layoutDirectory = (kitRoot, source) => (0, node_path_1.join)(kitRoot, exports.KIT_OCI_DIR, source.replaceAll(':', '_'));
|
|
14
|
+
exports.layoutDirectory = layoutDirectory;
|
|
15
|
+
function npmTarballPath(kitRoot, pkg) {
|
|
16
|
+
const unscoped = pkg.name.slice(pkg.name.lastIndexOf('/') + 1);
|
|
17
|
+
return (0, node_path_1.join)(kitRoot, exports.KIT_NPM_DIR, pkg.name, `${unscoped}-${pkg.version}.tgz`);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=kit-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-layout.js","sourceRoot":"","sources":["../../../src/mirror/kit/kit-layout.ts"],"names":[],"mappings":";;;AAoBA,wCAGC;AAvBD,yCAAiC;AAKpB,QAAA,iBAAiB,GAAG,UAAU,CAAC;AAC/B,QAAA,aAAa,GAAG,YAAY,CAAC;AAC7B,QAAA,WAAW,GAAG,KAAK,CAAC;AACpB,QAAA,WAAW,GAAG,KAAK,CAAC;AAGpB,QAAA,kBAAkB,GAAwB,IAAI,GAAG,CAAC,CAAC,yBAAiB,EAAE,qBAAa,CAAC,CAAC,CAAC;AAE5F,MAAM,WAAW,GAAG,CAAC,cAAsB,EAAE,UAAkB,EAAU,EAAE,CAAC,eAAe,cAAc,IAAI,UAAU,MAAM,CAAC;AAAxH,QAAA,WAAW,eAA6G;AAG9H,MAAM,eAAe,GAAG,CAAC,OAAe,EAAE,MAAc,EAAU,EAAE,CACzE,IAAA,gBAAI,EAAC,OAAO,EAAE,mBAAW,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAD7C,QAAA,eAAe,mBAC8B;AAG1D,SAAgB,cAAc,CAAC,OAAe,EAAE,GAA+C;IAC7F,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/D,OAAO,IAAA,gBAAI,EAAC,OAAO,EAAE,mBAAW,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,QAAQ,IAAI,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function kitFiles(root: string): readonly string[];
|
|
2
|
+
export declare function sumsText(root: string): string;
|
|
3
|
+
export declare const sha256Text: (text: string) => string;
|
|
4
|
+
export declare function sumsViolations(root: string, sums: string): readonly string[];
|
|
5
|
+
//# sourceMappingURL=kit-sums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-sums.d.ts","sourceRoot":"","sources":["../../../src/mirror/kit/kit-sums.ts"],"names":[],"mappings":"AAWA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAcxD;AAGD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK7C;AAED,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,MAAyD,CAAC;AAGpG,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAwB5E"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sha256Text = void 0;
|
|
4
|
+
exports.kitFiles = kitFiles;
|
|
5
|
+
exports.sumsText = sumsText;
|
|
6
|
+
exports.sumsViolations = sumsViolations;
|
|
7
|
+
const node_crypto_1 = require("node:crypto");
|
|
8
|
+
const node_fs_1 = require("node:fs");
|
|
9
|
+
const node_path_1 = require("node:path");
|
|
10
|
+
const kit_layout_1 = require("./kit-layout");
|
|
11
|
+
const compare = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
|
|
12
|
+
const sha256File = (path) => (0, node_crypto_1.createHash)('sha256').update((0, node_fs_1.readFileSync)(path)).digest('hex');
|
|
13
|
+
function kitFiles(root) {
|
|
14
|
+
const out = [];
|
|
15
|
+
const walk = (directory) => {
|
|
16
|
+
for (const name of (0, node_fs_1.readdirSync)(directory)) {
|
|
17
|
+
const path = (0, node_path_1.join)(directory, name);
|
|
18
|
+
if ((0, node_fs_1.statSync)(path).isDirectory()) {
|
|
19
|
+
walk(path);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
out.push((0, node_path_1.relative)(root, path).split(node_path_1.sep).join('/'));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
walk(root);
|
|
27
|
+
return out.sort(compare);
|
|
28
|
+
}
|
|
29
|
+
function sumsText(root) {
|
|
30
|
+
return kitFiles(root)
|
|
31
|
+
.filter((file) => !kit_layout_1.KIT_UNLISTED_FILES.has(file))
|
|
32
|
+
.map((file) => `${sha256File((0, node_path_1.join)(root, file))} ${file}\n`)
|
|
33
|
+
.join('');
|
|
34
|
+
}
|
|
35
|
+
const sha256Text = (text) => (0, node_crypto_1.createHash)('sha256').update(text).digest('hex');
|
|
36
|
+
exports.sha256Text = sha256Text;
|
|
37
|
+
function sumsViolations(root, sums) {
|
|
38
|
+
const listed = new Map();
|
|
39
|
+
for (const line of sums.split('\n').filter((l) => l.length > 0)) {
|
|
40
|
+
const match = /^([a-f0-9]{64}) {2}(.+)$/u.exec(line);
|
|
41
|
+
if (match === null) {
|
|
42
|
+
return [`SHA256SUMS has a malformed line: ${JSON.stringify(line)}`];
|
|
43
|
+
}
|
|
44
|
+
listed.set(match[2] ?? '', match[1] ?? '');
|
|
45
|
+
}
|
|
46
|
+
const problems = [];
|
|
47
|
+
const present = new Set(kitFiles(root).filter((file) => !kit_layout_1.KIT_UNLISTED_FILES.has(file)));
|
|
48
|
+
for (const [file, hex] of listed) {
|
|
49
|
+
if (!present.has(file)) {
|
|
50
|
+
problems.push(`${file} is listed in SHA256SUMS but missing`);
|
|
51
|
+
}
|
|
52
|
+
else if (sha256File((0, node_path_1.join)(root, file)) !== hex) {
|
|
53
|
+
problems.push(`${file} does not match SHA256SUMS`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
for (const file of present) {
|
|
57
|
+
if (!listed.has(file)) {
|
|
58
|
+
problems.push(`${file} is in the kit but not in SHA256SUMS`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return problems;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=kit-sums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-sums.js","sourceRoot":"","sources":["../../../src/mirror/kit/kit-sums.ts"],"names":[],"mappings":";;;AAWA,4BAcC;AAGD,4BAKC;AAKD,wCAwBC;AA9DD,6CAAyC;AACzC,qCAA8D;AAC9D,yCAAgD;AAEhD,6CAAkD;AAElD,MAAM,OAAO,GAAG,CAAC,CAAS,EAAE,CAAS,EAAU,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAA,sBAAY,EAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAG3G,SAAgB,QAAQ,CAAC,IAAY;IACnC,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,IAAI,GAAG,CAAC,SAAiB,EAAQ,EAAE;QACvC,KAAK,MAAM,IAAI,IAAI,IAAA,qBAAW,EAAC,SAAS,CAAC,EAAE,CAAC;YAC1C,MAAM,IAAI,GAAG,IAAA,gBAAI,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YACnC,IAAI,IAAA,kBAAQ,EAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;gBACjC,IAAI,CAAC,IAAI,CAAC,C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CAAC,oCAAoC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,+BAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACxF,KAAK,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,MAAM,EAAE,CAAC;QACjC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,sCAAsC,CAAC,CAAC;QAC/D,CAAC;aAAM,IAAI,UAAU,CAAC,IAAA,gBAAI,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;YAChD,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,4BAA4B,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,sCAAsC,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Oras } from '@xemahq/oci-closure';
|
|
2
|
+
import { type TargetAccess } from '../target/target-access';
|
|
3
|
+
import type { OciItem } from '../target/oci-items';
|
|
4
|
+
export declare function exportItemToLayout(oras: Oras, item: OciItem, layoutDir: string): void;
|
|
5
|
+
export declare function layoutLacks(oras: Oras, item: OciItem, layoutDir: string): string | null;
|
|
6
|
+
export declare function stageItem(oras: Oras, access: TargetAccess, item: OciItem, layoutDir: string): void;
|
|
7
|
+
export declare function commitItemTags(oras: Oras, access: TargetAccess, item: OciItem, layoutDir: string): void;
|
|
8
|
+
//# sourceMappingURL=layout-sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-sync.d.ts","sourceRoot":"","sources":["../../../src/mirror/kit/layout-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG7E,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAanD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAiBrF;AAGD,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEvF;AAGD,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAkBlG;AAGD,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAKvG"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exportItemToLayout = exportItemToLayout;
|
|
4
|
+
exports.layoutLacks = layoutLacks;
|
|
5
|
+
exports.stageItem = stageItem;
|
|
6
|
+
exports.commitItemTags = commitItemTags;
|
|
7
|
+
const oci_closure_1 = require("@xemahq/oci-closure");
|
|
8
|
+
const oci_sync_1 = require("../target/oci-sync");
|
|
9
|
+
const target_access_1 = require("../target/target-access");
|
|
10
|
+
const layoutResolve = (oras, layoutDir, reference) => (0, oci_sync_1.tryResolve)(oras, ['--oci-layout', `${layoutDir}@${reference}`]);
|
|
11
|
+
const digestsOf = (item) => [item.digest, ...item.referrers];
|
|
12
|
+
function exportItemToLayout(oras, item, layoutDir) {
|
|
13
|
+
for (const digest of digestsOf(item)) {
|
|
14
|
+
oras([
|
|
15
|
+
'cp',
|
|
16
|
+
'--from-distribution-spec',
|
|
17
|
+
oci_closure_1.REFERRERS_DISTRIBUTION_SPEC,
|
|
18
|
+
'--to-oci-layout',
|
|
19
|
+
`${item.source}@${digest}`,
|
|
20
|
+
layoutDir,
|
|
21
|
+
]);
|
|
22
|
+
if (layoutResolve(oras, layoutDir, digest) !== digest) {
|
|
23
|
+
throw new Error(`${item.source}@${digest} did not land in the kit layout`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
for (const { tag, digest } of (0, oci_sync_1.cosignTagsToRestore)(item, (name) => (0, oci_sync_1.tryResolve)(oras, [`${item.source}:${name}`]))) {
|
|
27
|
+
oras(['tag', '--oci-layout', `${layoutDir}@${digest}`, tag]);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function layoutLacks(oras, item, layoutDir) {
|
|
31
|
+
return digestsOf(item).find((digest) => layoutResolve(oras, layoutDir, digest) !== digest) ?? null;
|
|
32
|
+
}
|
|
33
|
+
function stageItem(oras, access, item, layoutDir) {
|
|
34
|
+
for (const digest of digestsOf(item)) {
|
|
35
|
+
if ((0, oci_sync_1.targetHolds)(oras, access, item, digest)) {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
oras([
|
|
39
|
+
'cp',
|
|
40
|
+
'--to-distribution-spec',
|
|
41
|
+
oci_closure_1.REFERRERS_DISTRIBUTION_SPEC,
|
|
42
|
+
...(0, target_access_1.copyToTargetFlags)(access),
|
|
43
|
+
'--from-oci-layout',
|
|
44
|
+
`${layoutDir}@${digest}`,
|
|
45
|
+
item.target,
|
|
46
|
+
]);
|
|
47
|
+
if (!(0, oci_sync_1.targetHolds)(oras, access, item, digest)) {
|
|
48
|
+
throw new Error(`${item.target}@${digest} is not on the target after staging`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function commitItemTags(oras, access, item, layoutDir) {
|
|
53
|
+
(0, oci_sync_1.applyTags)(oras, access, item, [
|
|
54
|
+
...(0, oci_sync_1.cosignTagsToRestore)(item, (tag) => (0, oci_sync_1.tryResolve)(oras, ['--oci-layout', `${layoutDir}:${tag}`])),
|
|
55
|
+
...item.tags.map((tag) => ({ tag, digest: item.digest })),
|
|
56
|
+
]);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=layout-sync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-sync.js","sourceRoot":"","sources":["../../../src/mirror/kit/layout-sync.ts"],"names":[],"mappings":";;AAkBA,gDAiBC;AAGD,kCAEC;AAGD,8BAkBC;AAGD,wCAKC;AArED,qDAA6E;AAE7E,iDAA6F;AAC7F,2DAA+E;AAI/E,MAAM,aAAa,GAAG,CAAC,IAAU,EAAE,SAAiB,EAAE,SAAiB,EAAiB,EAAE,CACxF,IAAA,qBAAU,EAAC,IAAI,EAAE,CAAC,cAAc,EAAE,GAAG,SAAS,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC;AAElE,MAAM,SAAS,GAAG,CAAC,IAAa,EAAqB,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;AAQzF,SAAgB,kBAAkB,CAAC,IAAU,EAAE,IAAa,EAAE,SAAiB;IAC7E,KAAK,MAAM,MAAM,IAAI,SAAS,CA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CAAC;YACH,IAAI;YACJ,wBAAwB;YACxB,yCAA2B;YAC3B,GAAG,IAAA,iCAAiB,EAAC,MAAM,CAAC;YAC5B,mBAAmB;YACnB,GAAG,SAAS,IAAI,MAAM,EAAE;YACxB,IAAI,CAAC,MAAM;SACZ,CAAC,CAAC;QACH,IAAI,CAAC,IAAA,sBAAW,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC;YAC7C,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,MAAM,qCAAqC,CAAC,CAAC;QACjF,CAAC;IACH,CAAC;AACH,CAAC;AAGD,SAAgB,cAAc,CAAC,IAAU,EAAE,MAAoB,EAAE,IAAa,EAAE,SAAiB;IAC/F,IAAA,oBAAS,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;QAC5B,GAAG,IAAA,8BAAmB,EAAC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,qBAAU,EAAC,IAAI,EAAE,CAAC,cAAc,EAAE,GAAG,SAAS,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;QAChG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;KAC1D,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Oras } from '@xemahq/oci-closure';
|
|
2
|
+
import type { MirrorBundle, MirrorContentDeclaration } from '@xemahq/contracts/mirror';
|
|
3
|
+
export declare function resolveBundles(input: {
|
|
4
|
+
readonly oras: Oras;
|
|
5
|
+
readonly packages: MirrorContentDeclaration['packages'];
|
|
6
|
+
readonly editionBiomes: ReadonlySet<string>;
|
|
7
|
+
readonly bundleRegistry: string;
|
|
8
|
+
readonly onResolved: (biome: string, index: number, total: number) => void;
|
|
9
|
+
}): readonly MirrorBundle[];
|
|
10
|
+
//# sourceMappingURL=bundle-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-content.d.ts","sourceRoot":"","sources":["../../../src/mirror/plan/bundle-content.ts"],"names":[],"mappings":"AACA,OAAO,EAA8D,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAI5G,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AA4BvF,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC,UAAU,CAAC,CAAC;IACxD,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E,GAAG,SAAS,YAAY,EAAE,CAqC1B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveBundles = resolveBundles;
|
|
4
|
+
const biome_bundle_1 = require("@xemahq/contracts/biome-bundle");
|
|
5
|
+
const oci_closure_1 = require("@xemahq/oci-closure");
|
|
6
|
+
const oci_reads_1 = require("./oci-reads");
|
|
7
|
+
const archiveTag = (archiveDigest) => archiveDigest.replace(':', '-');
|
|
8
|
+
function archiveDigestOf(oras, repository, manifestDigest, biome) {
|
|
9
|
+
const manifest = (0, oci_reads_1.fetchManifest)(oras, `${repository}@${manifestDigest}`);
|
|
10
|
+
const annotated = manifest.annotations?.[biome_bundle_1.BUNDLE_OCI.annotations.archiveDigest];
|
|
11
|
+
if (manifest.artifactType !== biome_bundle_1.BUNDLE_OCI.artifactType) {
|
|
12
|
+
throw new Error(`${repository}@${manifestDigest} (biome ${biome}) has artifactType ${String(manifest.artifactType)}, not ${biome_bundle_1.BUNDLE_OCI.artifactType}`);
|
|
13
|
+
}
|
|
14
|
+
const archives = (manifest.layers ?? []).filter((layer) => layer.mediaType === biome_bundle_1.BUNDLE_OCI.archiveMediaType);
|
|
15
|
+
if (archives.length !== 1) {
|
|
16
|
+
throw new Error(`${repository}@${manifestDigest} (biome ${biome}) has ${archives.length} ${biome_bundle_1.BUNDLE_OCI.archiveMediaType} layers, not one`);
|
|
17
|
+
}
|
|
18
|
+
if (annotated === undefined || !/^sha256:[a-f0-9]{64}$/u.test(annotated)) {
|
|
19
|
+
throw new Error(`${repository}@${manifestDigest} (biome ${biome}) has no ${biome_bundle_1.BUNDLE_OCI.annotations.archiveDigest} annotation`);
|
|
20
|
+
}
|
|
21
|
+
return annotated;
|
|
22
|
+
}
|
|
23
|
+
function resolveBundles(input) {
|
|
24
|
+
const { oras, bundleRegistry } = input;
|
|
25
|
+
const tagsOf = (0, oci_closure_1.createTagLister)(oras);
|
|
26
|
+
const rows = [];
|
|
27
|
+
const sorted = [...input.packages].sort((a, b) => (a.biome < b.biome ? -1 : a.biome > b.biome ? 1 : 0));
|
|
28
|
+
for (const [index, entry] of sorted.entries()) {
|
|
29
|
+
if (!input.editionBiomes.has(entry.biome)) {
|
|
30
|
+
throw new Error(`package "${entry.biome}" is not a biome of the edition's distribution lock`);
|
|
31
|
+
}
|
|
32
|
+
if (entry.digest === undefined && entry.channel === undefined) {
|
|
33
|
+
throw new Error(`package "${entry.biome}" names neither a channel nor a digest: state one`);
|
|
34
|
+
}
|
|
35
|
+
const repository = `${bundleRegistry}/bundles/${entry.biome}`;
|
|
36
|
+
const pointer = entry.digest !== undefined ? archiveTag(entry.digest) : entry.channel;
|
|
37
|
+
const manifestDigest = (0, oci_reads_1.resolveDigest)(oras, `${repository}:${pointer}`);
|
|
38
|
+
const archiveDigest = archiveDigestOf(oras, repository, manifestDigest, entry.biome);
|
|
39
|
+
if (entry.digest !== undefined && archiveDigest !== entry.digest) {
|
|
40
|
+
throw new Error(`${repository}:${pointer} holds archive ${archiveDigest}, not the declared ${entry.digest}`);
|
|
41
|
+
}
|
|
42
|
+
const closure = (0, oci_closure_1.resolveSubjectClosure)({
|
|
43
|
+
subjectKind: oci_closure_1.ClosureSubjectKind.Image,
|
|
44
|
+
repository,
|
|
45
|
+
digest: manifestDigest,
|
|
46
|
+
oras,
|
|
47
|
+
tagsOf,
|
|
48
|
+
});
|
|
49
|
+
rows.push({
|
|
50
|
+
biome: entry.biome,
|
|
51
|
+
source: repository,
|
|
52
|
+
digest: manifestDigest,
|
|
53
|
+
archiveDigest: archiveDigest,
|
|
54
|
+
...(entry.channel === undefined ? {} : { channel: entry.channel }),
|
|
55
|
+
referrers: closure.referrers.map((r) => r.digest).sort(),
|
|
56
|
+
});
|
|
57
|
+
input.onResolved(entry.biome, index + 1, sorted.length);
|
|
58
|
+
}
|
|
59
|
+
return rows;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=bundle-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-content.js","sourceRoot":"","sources":["../../../src/mirror/plan/bundle-content.ts"],"names":[],"mappings":";;AAiCA,wCA2CC;AA5ED,iEAA4D;AAC5D,qDAA4G;AAE5G,2CAA2D;AAK3D,MAAM,UAAU,GAAG,CAAC,aAAqB,EAAU,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEtF,SAAS,eAAe,CAAC,IAAU,EAAE,UAAkB,EAAE,cAAsB,EAAE,KAAa;IAC5F,MAAM,QAAQ,GAAG,IAAA,yBAAa,EAAC,IAAI,EAAE,GAAG,UAAU,IAAI,cAAc,EAAE,CAAC,CAAC;IACxE,MAAM,SAAS,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC,yBAAU,CAAC,WAAW,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,CAAC,MAAM,EAAE,CAAC,CAAC;QAC/G,CAAC;QACD,MAAM,OAAO,GAAG,IAAA,mCAAqB,EAAC;YACpC,WAAW,EAAE,gCAAkB,CAAC,KAAK;YACrC,UAAU;YACV,MAAM,EAAE,cAAc;YACtB,IAAI;YACJ,MAAM;SACP,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,CAAC;YACR,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,UAAU;YAClB,MAAM,EAAE,cAAwC;YAChD,aAAa,EAAE,aAA8C;YAC7D,GAAG,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;YAClE,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAgC,CAAC,CAAC,IAAI,EAAE;SACnF,CAAC,CAAC;QACH,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type MirrorContentDeclaration } from '@xemahq/contracts/mirror';
|
|
2
|
+
export interface ReadDeclaration {
|
|
3
|
+
readonly declaration: MirrorContentDeclaration;
|
|
4
|
+
readonly sha256: string;
|
|
5
|
+
readonly directory: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const sha256Hex: (bytes: Uint8Array | string) => string;
|
|
8
|
+
export declare function readDeclaration(path: string): ReadDeclaration;
|
|
9
|
+
//# sourceMappingURL=declaration-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declaration-file.d.ts","sourceRoot":"","sources":["../../../src/mirror/plan/declaration-file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkC,KAAK,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,WAAW,EAAE,wBAAwB,CAAC;IAE/C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,GAAI,OAAO,UAAU,GAAG,MAAM,KAAG,MAA0D,CAAC;AAGlH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAc7D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sha256Hex = void 0;
|
|
4
|
+
exports.readDeclaration = readDeclaration;
|
|
5
|
+
const node_crypto_1 = require("node:crypto");
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
8
|
+
const mirror_1 = require("@xemahq/contracts/mirror");
|
|
9
|
+
const sha256Hex = (bytes) => (0, node_crypto_1.createHash)('sha256').update(bytes).digest('hex');
|
|
10
|
+
exports.sha256Hex = sha256Hex;
|
|
11
|
+
function readDeclaration(path) {
|
|
12
|
+
const bytes = (0, node_fs_1.readFileSync)(path);
|
|
13
|
+
let json;
|
|
14
|
+
try {
|
|
15
|
+
json = JSON.parse(bytes.toString('utf8'));
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
throw new Error(`${path} is not JSON: ${error instanceof Error ? error.message : String(error)}`);
|
|
19
|
+
}
|
|
20
|
+
const parsed = mirror_1.MirrorContentDeclarationSchema.safeParse(json);
|
|
21
|
+
if (!parsed.success) {
|
|
22
|
+
const issues = parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ');
|
|
23
|
+
throw new Error(`${path} is not a mirror content declaration: ${issues}`);
|
|
24
|
+
}
|
|
25
|
+
return { declaration: parsed.data, sha256: (0, exports.sha256Hex)(bytes), directory: (0, node_path_1.dirname)((0, node_path_1.resolve)(path)) };
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=declaration-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declaration-file.js","sourceRoot":"","sources":["../../../src/mirror/plan/declaration-file.ts"],"names":[],"mappings":";;;AAgBA,0CAcC;AA9BD,6CAAyC;AACzC,qCAAuC;AACvC,yCAA6C;AAE7C,qDAAyG;AASlG,MAAM,SAAS,GAAG,CAAC,KAA0B,EAAU,EAAE,CAAC,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAArG,QAAA,SAAS,aAA4F;AAGlH,SAAgB,eAAe,CAAC,IAAY;IAC1C,MAAM,KAAK,GAAG,IAAA,sBAAY,EAAC,IAAI,CAAC,CAAC;IACjC,IAAI,IAAa,CAAC;IAClB,IAAI,CAAC;QACH,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,iBAAiB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACpG,CAAC;IACD,MAAM,MAAM,GAAG,uCAA8B,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9D,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,CA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