From dff7679d73eb146d3449efdce7235c66da1ece3c Mon Sep 17 00:00:00 2001 From: Tinson Lai Date: Fri, 11 Sep 2026 07:49:54 +0000 Subject: [PATCH 01/18] fix(vllm): retire the last sandbox's managed vLLM container and probe its recorded port Signed-off-by: Tinson Lai --- docs/inference/set-up-vllm.mdx | 7 +- docs/reference/commands.mdx | 5 +- docs/reference/host-files-and-state.mdx | 4 +- src/commands/sandbox/destroy.ts | 10 +- .../sandbox/connect-route-repair.test.ts | 45 +++- src/lib/actions/sandbox/connect.ts | 13 +- .../sandbox/destroy-managed-vllm-flow.test.ts | 124 +++++++++++ .../sandbox/destroy-managed-vllm.test.ts | 209 ++++++++++++++++++ src/lib/actions/sandbox/destroy-preflight.ts | 102 +++++++++ src/lib/actions/sandbox/destroy.ts | 8 + .../actions/sandbox/doctor-inference.test.ts | 23 ++ src/lib/actions/sandbox/doctor-inference.ts | 14 +- src/lib/actions/sandbox/doctor.ts | 1 + src/lib/actions/sandbox/status-snapshot.ts | 5 + src/lib/actions/sandbox/status.test.ts | 37 ++++ src/lib/cli/public-display-defaults.ts | 2 +- src/lib/domain/lifecycle/options.test.ts | 49 ++++ src/lib/domain/lifecycle/options.ts | 25 ++- src/lib/inference/health.ts | 3 + .../local-model-profile/cleanup.test.ts | 204 +++++++++++++++++ .../inference/local-model-profile/cleanup.ts | 95 +++++++- src/lib/inference/local.test.ts | 53 +++++ src/lib/inference/local.ts | 26 ++- test/helpers/destroy-flow-test-harness.ts | 11 +- 24 files changed, 1040 insertions(+), 35 deletions(-) create mode 100644 src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts create mode 100644 src/lib/actions/sandbox/destroy-managed-vllm.test.ts diff --git a/docs/inference/set-up-vllm.mdx b/docs/inference/set-up-vllm.mdx index 7aa2f0308d6..92568d4cb5e 100644 --- a/docs/inference/set-up-vllm.mdx +++ b/docs/inference/set-up-vllm.mdx @@ -21,6 +21,7 @@ The vLLM `/v1/responses` endpoint does not run the configured tool-call parser, Local vLLM does not require authentication by default. Existing-server and single-host managed-vLLM paths use `NEMOCLAW_VLLM_PORT`, which defaults to `8000`, on host loopback for validation and on the OpenShell Docker bridge for sandbox traffic. +After onboarding, `status`, `doctor`, and `connect` probe the host port recorded in the sandbox registry, so those commands do not need `NEMOCLAW_VLLM_PORT` in their environment. Use a host firewall with default-deny inbound rules. Allow the configured TCP port only from the OpenShell Docker subnet to its gateway address, keep loopback access, and deny the port on every other interface. Do not expose the port to your LAN or the internet. @@ -152,7 +153,9 @@ $$nemoclaw onboard --profile --vllm-gpu-device #### Handle a Running vLLM Server The single-host managed vLLM runtime is host-global. -Destroying a sandbox does not stop it, and the container remains available for other sandboxes. +`$$nemoclaw destroy` keeps the container while another registered sandbox in any gateway state root uses Local vLLM. +When the destroyed sandbox was the last one, `destroy` removes the NemoClaw-managed container and frees its GPU memory. +Pass `--keep-vllm` or set `NEMOCLAW_KEEP_VLLM=1` to keep that container running for a later sandbox. Later standard onboarding normally reuses a server that is already listening on the configured vLLM port instead of replacing it automatically. When a managed GPU selection accompanies explicit managed-install intent, NemoClaw preserves that intent and reports the running-server conflict. @@ -189,7 +192,7 @@ Choose one action: ``` Accept the result when onboarding completes and `$$nemoclaw list` reports the new sandbox with provider `vllm-local` and the expected model. -NemoClaw does not stop or recreate a running vLLM server automatically because another sandbox can use it. +Onboarding does not stop or recreate a running vLLM server automatically because another sandbox can use it. NemoClaw requires a resumed session to reuse the recorded GPU selector. A legacy in-progress session cannot add one, and a resumed session cannot change one. diff --git a/docs/reference/commands.mdx b/docs/reference/commands.mdx index ffb7e9b9ef4..cbcd2ad3f07 100644 --- a/docs/reference/commands.mdx +++ b/docs/reference/commands.mdx @@ -1949,7 +1949,7 @@ The sandbox must be running for `nemohermes my-assistant gateway-token --quiet` ### `$$nemoclaw destroy` -Stop managed local inference resources, remove the host-side Docker image built during onboard, and delete the sandbox. This removes the sandbox from the registry. For Ollama-backed sandboxes, `destroy` also asks Ollama to unload currently loaded models and clears stale auth proxy state on a best-effort basis. For Model Router sandboxes, `destroy` keeps the process and recovery identity when another sandbox uses the port or when session, process, or absence checks are inconclusive. It also preserves a replacement onboarding session when the captured session identity changed. If the captured session uses the destroyed sandbox name with another router port, `destroy` clears only the sandbox association and preserves that router's recovery identity. For lock order, same-port peer handling, and cleanup checks, refer to [Set Up Model Router](../inference/hosted-inference/set-up-model-router#router-and-sandbox-lifecycle-locks). +Stop managed local inference resources, remove the host-side Docker image built during onboard, and delete the sandbox. This removes the sandbox from the registry. For Ollama-backed sandboxes, `destroy` also asks Ollama to unload currently loaded models and clears stale auth proxy state on a best-effort basis. For a Local vLLM sandbox, `destroy` removes the NemoClaw-managed `nemoclaw-vllm` container and frees its GPU memory after the registry removal leaves no sandbox in any gateway state root with provider `vllm-local`. Pass `--keep-vllm` or set `NEMOCLAW_KEEP_VLLM=1` to keep that container running for a later sandbox. `destroy` preserves the container and reports why when another registered sandbox uses Local vLLM, when the container lacks the NemoClaw managed label, when it belongs to a distributed vLLM runtime, when an authenticated container does not match its persisted API key and receipt, when a distributed vLLM receipt owns it, when NemoClaw cannot read every gateway sandbox registry to confirm that no sandbox still uses Local vLLM, or when Docker is unavailable. For Model Router sandboxes, `destroy` keeps the process and recovery identity when another sandbox uses the port or when session, process, or absence checks are inconclusive. It also preserves a replacement onboarding session when the captured session identity changed. If the captured session uses the destroyed sandbox name with another router port, `destroy` clears only the sandbox association and preserves that router's recovery identity. For lock order, same-port peer handling, and cleanup checks, refer to [Set Up Model Router](../inference/hosted-inference/set-up-model-router#router-and-sandbox-lifecycle-locks). If `destroy` warns that it could not identify or stop a listener for the deleted sandbox: @@ -2050,7 +2050,7 @@ Retry after the recorded gateway is available. Managed MCP ownership disables the local-only fallback because exact provider cleanup requires retained ownership state. ```bash -$$nemoclaw my-assistant destroy [--yes|-y|--force] [--cleanup-gateway|--no-cleanup-gateway] +$$nemoclaw my-assistant destroy [--yes|-y|--force] [--cleanup-gateway|--no-cleanup-gateway] [--keep-vllm] ``` After OpenShell confirms deletion of a sandbox that owns managed llama.cpp, `destroy` revalidates the exact container, internal network, lifecycle journal, and gateway-scoped receipt. It removes those resources by inspected ID, then removes the API key and managed ownership state. It preserves the shared `~/.cache/huggingface/` cache. If exact cleanup fails, `destroy` preserves the sandbox registry entry and ownership state so you can correct the reported conflict and retry. @@ -4370,6 +4370,7 @@ The following flags change defaults for commands that manage existing sandboxes. | Variable | Format | Effect | | --- | --- | --- | | `NEMOCLAW_CLEANUP_GATEWAY` | `1`, `true`, or `yes` to enable; `0`, `false`, or `no` to disable | Overrides the platform default (macOS unattended: cleanup; Linux/Windows: preserve) for whether `$$nemoclaw destroy` removes the shared gateway when destroying the last sandbox. Command-line `--cleanup-gateway` and `--no-cleanup-gateway` still take precedence. | +| `NEMOCLAW_KEEP_VLLM` | `1`, `true`, or `yes` to keep; `0`, `false`, or `no` to remove | Keeps the NemoClaw-managed `nemoclaw-vllm` container running when `$$nemoclaw destroy` deletes the last registered sandbox that uses Local vLLM. By default, that destroy removes the container. Command-line `--keep-vllm` has the same effect. | | `NEMOCLAW_CONFIG_ACCEPT_NEW_PATH` | Exactly `"1"` to opt in (`true`, `yes`, `on` are not accepted) | Allows `$$nemoclaw config set` to write a dotpath that does not already exist in the sandbox config, without the interactive confirmation. Equivalent to passing `--config-accept-new-path`, and it takes precedence over `NEMOCLAW_NON_INTERACTIVE=1`. Without it, a run without a TTY refuses the write instead. | diff --git a/docs/reference/host-files-and-state.mdx b/docs/reference/host-files-and-state.mdx index 9bece703879..f97e0837630 100644 --- a/docs/reference/host-files-and-state.mdx +++ b/docs/reference/host-files-and-state.mdx @@ -53,8 +53,8 @@ Unless a row says otherwise, full-uninstall removal behavior in this table appli | `~/.nemoclaw/ollama-backend.json` | Mode-`0600`, versioned descriptor that identifies whether the matching legacy route fronts Ollama or a compatible endpoint. Recovery trusts its kind only when both files contain the same URL. | Yes, but recovery uses neutral remediation until onboarding recreates the descriptor. | | `~/.nemoclaw/ollama-proxy-port` | Host-global port used by the Ollama auth proxy and every Local Ollama sandbox route on the host. A command with a different `NEMOCLAW_OLLAMA_PROXY_PORT` stops before changing the shared proxy. | No while any gateway uses Local Ollama. Full uninstall uses this file to find the proxy and removes it with the other shared proxy state. | | `~/.nemoclaw/ollama/user-local-ownership.json` | Mode-`0600`, credential-free receipt containing a schema version and the fixed `~/.local/bin/ollama` path. Portable OpenClaw recovery requires this receipt before it starts the binary. A successful system Ollama install removes the receipt. | No while a portable OpenClaw sandbox uses the user-local daemon. Deleting it disables automatic daemon restart until you reinstall Ollama through onboarding. | -| `~/.nemoclaw/dual-station-vllm-api-key` | Owner-only host-global bearer API key shared by authenticated NemoClaw-managed vLLM profiles. | No while any managed vLLM runtime uses it. Full uninstall removes it only after matching runtime cleanup succeeds and no sibling gateway remains. | -| `~/.nemoclaw/host-local-vllm-runtime.json` | Owner-only, credential-free receipt for a catalog-selected single-host vLLM runtime. It binds the immutable catalog, preset, and recipe digests to the container ID and API-key fingerprint. | No while that runtime exists. Recovery and full uninstall fail closed if its profile labels do not match this receipt, and uninstall removes it only after container cleanup succeeds. | +| `~/.nemoclaw/dual-station-vllm-api-key` | Owner-only host-global bearer API key shared by authenticated NemoClaw-managed vLLM profiles. | No while any managed vLLM runtime uses it. Destroying the last Local vLLM sandbox removes it with the authenticated single-host container unless `--keep-vllm` or `NEMOCLAW_KEEP_VLLM=1` keeps that container. Full uninstall removes it only after matching runtime cleanup succeeds and no sibling gateway remains. | +| `~/.nemoclaw/host-local-vllm-runtime.json` | Owner-only, credential-free receipt for a catalog-selected single-host vLLM runtime. It binds the immutable catalog, preset, and recipe digests to the container ID and API-key fingerprint. | No while that runtime exists. Recovery, destroy, and full uninstall fail closed if its profile labels do not match this receipt, and destroy or uninstall removes it only after container cleanup succeeds. | | `~/.nemoclaw/managed-llama-cpp/api-key` | Owner-only bearer API key mounted read-only into the managed llama.cpp container. It is absent from process arguments, logs, receipts, sandbox registry state, and status output. | No while the managed llama.cpp runtime exists. A retry reuses the same key. Destroy or full uninstall removes it only after runtime cleanup succeeds. | | `~/.nemoclaw/managed-llama-cpp/owner.json` | Owner-only, credential-free binding from one gateway to the sandbox, recipe, catalog digest, preset digest, and recipe digest that owns the managed llama.cpp runtime. | No while the managed llama.cpp runtime exists. Destroy or full uninstall removes it only after cleanup succeeds. | | `~/.nemoclaw/managed-llama-cpp/receipt.json` | Owner-only runtime receipt that binds the Docker authority, container ID, network, image digest, model identity, and lifecycle generation. It contains no API key. | No while the managed llama.cpp runtime exists. Recovery and cleanup use it and preserve it when ownership cannot be proved. | diff --git a/src/commands/sandbox/destroy.ts b/src/commands/sandbox/destroy.ts index 2de6df1ca46..4e05af6756d 100644 --- a/src/commands/sandbox/destroy.ts +++ b/src/commands/sandbox/destroy.ts @@ -12,11 +12,14 @@ export default class DestroyCliCommand extends NemoClawCommand { static strict = true; static summary = "Stop NIM and delete sandbox"; static description = "Destroy a sandbox and remove its local registry entry."; - static usage = [" [--yes|-y|--force] [--cleanup-gateway|--no-cleanup-gateway]"]; + static usage = [ + " [--yes|-y|--force] [--cleanup-gateway|--no-cleanup-gateway] [--keep-vllm]", + ]; static examples = [ "<%= config.bin %> sandbox destroy alpha", "<%= config.bin %> sandbox destroy alpha --yes", "<%= config.bin %> sandbox destroy alpha --yes --cleanup-gateway", + "<%= config.bin %> sandbox destroy alpha --yes --keep-vllm", ]; static args = { sandboxName: Args.string({ name: "sandbox", description: "Sandbox name", required: true }), @@ -29,6 +32,10 @@ export default class DestroyCliCommand extends NemoClawCommand { "When destroying the last sandbox, also tear down the shared NemoClaw gateway. Default: preserve on Linux; cleanup for unattended macOS destroys. NEMOCLAW_CLEANUP_GATEWAY overrides the platform default.", allowNo: true, }), + "keep-vllm": Flags.boolean({ + description: + "Keep the managed vLLM container running after destroying the last sandbox that uses Local vLLM. NEMOCLAW_KEEP_VLLM=1 has the same effect.", + }), }; public async run(): Promise { @@ -38,6 +45,7 @@ export default class DestroyCliCommand extends NemoClawCommand { force: flags.force === true, yes: flags.yes === true, ...(cleanupGatewayFlag === undefined ? {} : { cleanupGateway: cleanupGatewayFlag }), + ...(flags["keep-vllm"] === true ? { keepVllm: true } : {}), }); } } diff --git a/src/lib/actions/sandbox/connect-route-repair.test.ts b/src/lib/actions/sandbox/connect-route-repair.test.ts index 35c4f4f0fd2..086caac0950 100644 --- a/src/lib/actions/sandbox/connect-route-repair.test.ts +++ b/src/lib/actions/sandbox/connect-route-repair.test.ts @@ -300,7 +300,11 @@ function makeResetDeps( overrides: Partial = {}, ) { const calls = { - localChecks: [] as Array<{ provider: string; quiet?: boolean }>, + localChecks: [] as Array<{ + provider: string; + quiet?: boolean; + recordedEndpointUrl?: string | null; + }>, inferenceSets: [] as Array<{ provider: string; model: string }>, unrecoverable: [] as Array<{ sandboxName: string; detail: string }>, logs: [] as string[], @@ -310,7 +314,11 @@ function makeResetDeps( const queue = [...probes]; const deps: ManagedInferenceRouteResetDeps = { verifyLocalInferenceRouteDependencies: vi.fn((provider, options) => { - calls.localChecks.push({ provider, quiet: options.quiet }); + calls.localChecks.push({ + provider, + quiet: options.quiet, + recordedEndpointUrl: options.recordedEndpointUrl, + }); return true; }), runInferenceSet: vi.fn((provider, model) => { @@ -344,13 +352,42 @@ describe("managed inference route reset unit flow", () => { expect(result).toBe(true); expect(calls.localChecks).toEqual([ - { provider: "ollama-local", quiet: false }, - { provider: "ollama-local", quiet: false }, + { provider: "ollama-local", quiet: false, recordedEndpointUrl: undefined }, + { provider: "ollama-local", quiet: false, recordedEndpointUrl: undefined }, ]); expect(calls.inferenceSets).toEqual([{ provider: "ollama-local", model: "qwen3:0.6b" }]); expect(calls.logs).toContain(" inference.local route repaired."); }); + it("verifies local vLLM dependencies against the sandbox's recorded route endpoint", async () => { + const { calls, deps } = makeResetDeps([healthy()]); + + const result = await resetManagedInferenceRouteWithDeps( + "demo", + sandbox({ + provider: "vllm-local", + model: "nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8", + endpointUrl: "http://host.openshell.internal:46145/v1", + }), + { detail: "BROKEN 503" }, + deps, + ); + + expect(result).toBe(true); + expect(calls.localChecks).toEqual([ + { + provider: "vllm-local", + quiet: false, + recordedEndpointUrl: "http://host.openshell.internal:46145/v1", + }, + { + provider: "vllm-local", + quiet: false, + recordedEndpointUrl: "http://host.openshell.internal:46145/v1", + }, + ]); + }); + it("probes route health after a non-zero inference set and accepts a healthy route", async () => { const { calls, deps } = makeResetDeps([healthy()], { runInferenceSet: vi.fn((provider, model) => { diff --git a/src/lib/actions/sandbox/connect.ts b/src/lib/actions/sandbox/connect.ts index 58e7c809716..41ac5f426f5 100644 --- a/src/lib/actions/sandbox/connect.ts +++ b/src/lib/actions/sandbox/connect.ts @@ -236,7 +236,7 @@ export type SandboxInferenceRouteRepairDeps = { export type ManagedInferenceRouteResetDeps = { verifyLocalInferenceRouteDependencies: ( provider: string, - options: { quiet?: boolean }, + options: { quiet?: boolean; recordedEndpointUrl?: string | null }, ) => boolean; runInferenceSet: (provider: string, model: string) => { status: number | null }; probe: ( @@ -1424,7 +1424,10 @@ async function repairSandboxInferenceRouteIfNeeded( function verifyLocalInferenceRouteDependencies( provider: string, - { quiet = false }: { quiet?: boolean } = {}, + { + quiet = false, + recordedEndpointUrl, + }: { quiet?: boolean; recordedEndpointUrl?: string | null } = {}, ): boolean { const isOllamaLocal = provider === "ollama-local"; if (isOllamaLocal) { @@ -1436,6 +1439,7 @@ function verifyLocalInferenceRouteDependencies( } const localHealth = probeLocalProviderHealth(provider, { skipOllamaAuthProxySubprobe: isOllamaLocal, + recordedEndpointUrl, }); if (!localHealth) return true; if (!localHealth.ok) { @@ -1501,14 +1505,15 @@ export async function resetManagedInferenceRouteWithDeps( return false; }; - if (!deps.verifyLocalInferenceRouteDependencies(provider, { quiet })) { + const dependencyOptions = { quiet, recordedEndpointUrl: sb.endpointUrl }; + if (!deps.verifyLocalInferenceRouteDependencies(provider, dependencyOptions)) { return fail(detail); } if (!quiet) log(` Resetting inference route to ${route}.`); const resetResult = deps.runInferenceSet(provider, model); const resetFailed = resetResult.status !== 0; - if (!resetFailed && !deps.verifyLocalInferenceRouteDependencies(provider, { quiet })) { + if (!resetFailed && !deps.verifyLocalInferenceRouteDependencies(provider, dependencyOptions)) { return fail(detail); } diff --git a/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts b/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts new file mode 100644 index 00000000000..061cf3d81f1 --- /dev/null +++ b/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts @@ -0,0 +1,124 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; + +import { + createDestroyHarness, + resetDestroyModuleCache, +} from "../../../../test/helpers/destroy-flow-test-harness"; + +const LOCAL_VLLM_SANDBOX = { + provider: "vllm-local", + endpointUrl: "http://host.openshell.internal:46145/v1", +}; + +function loggedLines(harness: ReturnType): string { + return harness.logSpy.mock.calls.map((call) => String(call[0])).join("\n"); +} + +describe("destroySandbox managed vLLM retirement", () => { + beforeEach(() => { + vi.stubEnv("NEMOCLAW_KEEP_VLLM", ""); + }); + + afterEach(() => { + vi.unstubAllEnvs(); + vi.restoreAllMocks(); + resetDestroyModuleCache(); + }); + + it("retires the managed vLLM container after the last Local vLLM sandbox is destroyed", async () => { + const containerId = "b".repeat(64); + const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); + harness.retireHostLocalVllmRuntimeSpy.mockReturnValue({ + status: "removed", + containerId, + removed: [`container:${containerId}`], + }); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.retireHostLocalVllmRuntimeSpy).toHaveBeenCalledOnce(); + expect(harness.removeSandboxSpy.mock.invocationCallOrder[0]).toBeLessThan( + harness.retireHostLocalVllmRuntimeSpy.mock.invocationCallOrder[0], + ); + expect(loggedLines(harness)).toContain( + `Removed managed vLLM container 'nemoclaw-vllm' (${containerId.slice(0, 12)})`, + ); + }); + + it("keeps the managed vLLM container while another gateway registers a Local vLLM sandbox", async () => { + const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); + harness.listHostGatewayRegistryEntriesSpy.mockReturnValue([ + { + entry: { name: "beta", provider: "vllm-local" }, + gatewayPort: 8091, + registryFile: "/home/user/.nemoclaw/gateways/8091/sandboxes.json", + stateRoot: "/home/user/.nemoclaw/gateways/8091", + }, + ]); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.retireHostLocalVllmRuntimeSpy).not.toHaveBeenCalled(); + expect(loggedLines(harness)).toContain( + "preserved: 1 other registered sandbox(es) use Local vLLM", + ); + }); + + it("keeps the managed vLLM container when the destroy passes --keep-vllm", async () => { + const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); + + await expect( + harness.destroySandbox("alpha", { yes: true, keepVllm: true }), + ).resolves.toBeUndefined(); + + expect(harness.retireHostLocalVllmRuntimeSpy).not.toHaveBeenCalled(); + expect(loggedLines(harness)).toContain("preserved (--keep-vllm)"); + }); + + it("keeps the managed vLLM container when NEMOCLAW_KEEP_VLLM=1 is set", async () => { + vi.stubEnv("NEMOCLAW_KEEP_VLLM", "1"); + const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.retireHostLocalVllmRuntimeSpy).not.toHaveBeenCalled(); + expect(loggedLines(harness)).toContain("preserved (--keep-vllm)"); + }); + + it("does not touch the managed vLLM container for a sandbox that uses another provider", async () => { + const harness = createDestroyHarness({ provider: "nvidia-prod" }); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.listHostGatewayRegistryEntriesSpy).not.toHaveBeenCalled(); + expect(harness.retireHostLocalVllmRuntimeSpy).not.toHaveBeenCalled(); + }); + + it("does not retire the managed vLLM container when registry removal does not complete", async () => { + const harness = createDestroyHarness({ ...LOCAL_VLLM_SANDBOX, removeSandboxResult: false }); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.removeSandboxSpy).toHaveBeenCalledWith("alpha"); + expect(harness.retireHostLocalVllmRuntimeSpy).not.toHaveBeenCalled(); + }); + + it("warns and leaves the managed vLLM container in place when its ownership cannot be proven", async () => { + const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); + harness.retireHostLocalVllmRuntimeSpy.mockReturnValue({ + status: "preserved", + reason: "the container does not carry the NemoClaw managed vLLM label", + removed: [], + }); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.warnSpy).toHaveBeenCalledWith( + expect.stringContaining("does not carry the NemoClaw managed vLLM label"), + ); + expect(loggedLines(harness)).toContain("Sandbox 'alpha' destroyed"); + }); +}); diff --git a/src/lib/actions/sandbox/destroy-managed-vllm.test.ts b/src/lib/actions/sandbox/destroy-managed-vllm.test.ts new file mode 100644 index 00000000000..c2f7b9ec74a --- /dev/null +++ b/src/lib/actions/sandbox/destroy-managed-vllm.test.ts @@ -0,0 +1,209 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +import { describe, expect, it, vi } from "vitest"; + +import type { HostLocalVllmRetirementResult } from "../../inference/local-model-profile/cleanup"; +import type { HostGatewayRegistryEntry } from "../../state/gateway-registry"; +import type { SandboxEntry } from "../../state/registry"; +import { + type ManagedVllmDestroyOutcome, + reportManagedVllmDestroyOutcome, + retireManagedVllmForDestroyedSandbox, +} from "./destroy-preflight"; + +const CONTAINER_ID = "a".repeat(64); + +function sandbox(overrides: Partial = {}): SandboxEntry { + return { + name: "alpha", + provider: "vllm-local", + model: "nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8", + endpointUrl: "http://host.openshell.internal:46145/v1", + ...overrides, + }; +} + +function registryEntry( + name: string, + provider: string, + gatewayPort = 8080, +): HostGatewayRegistryEntry { + return { + entry: { name, provider }, + gatewayPort, + registryFile: `/home/user/.nemoclaw/${String(gatewayPort)}/sandboxes.json`, + stateRoot: `/home/user/.nemoclaw/${String(gatewayPort)}`, + }; +} + +function makeDeps( + remaining: HostGatewayRegistryEntry[], + retirement: HostLocalVllmRetirementResult = { + status: "removed", + containerId: CONTAINER_ID, + removed: [`container:${CONTAINER_ID}`], + }, +) { + const listHostRegistryEntries = vi.fn(() => remaining); + const retireRuntime = vi.fn(() => retirement); + return { + listHostRegistryEntries, + retireRuntime, + deps: { + listHostRegistryEntries, + retireRuntime, + resolveHomeDir: () => "/home/user", + }, + }; +} + +describe("managed vLLM retirement after sandbox destroy", () => { + it("retires the container when the destroyed sandbox was the last Local vLLM consumer", () => { + const { deps, retireRuntime } = makeDeps([registryEntry("beta", "nvidia-prod")]); + + expect(retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ + kind: "retirement", + status: "removed", + containerId: CONTAINER_ID, + removed: [`container:${CONTAINER_ID}`], + }); + expect(retireRuntime).toHaveBeenCalledWith({ homeDir: "/home/user" }); + }); + + it("keeps the container while another gateway state root still registers a Local vLLM sandbox", () => { + const { deps, retireRuntime } = makeDeps([ + registryEntry("beta", "nvidia-prod"), + registryEntry("gamma", "vllm-local", 8091), + ]); + + expect(retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ + kind: "kept", + reason: "consumers", + consumers: 1, + }); + expect(retireRuntime).not.toHaveBeenCalled(); + }); + + it("keeps the container when the destroy requested --keep-vllm", () => { + const { deps, listHostRegistryEntries, retireRuntime } = makeDeps([]); + + expect(retireManagedVllmForDestroyedSandbox(sandbox(), { ...deps, keepVllm: true })).toEqual({ + kind: "kept", + reason: "option", + }); + expect(listHostRegistryEntries).not.toHaveBeenCalled(); + expect(retireRuntime).not.toHaveBeenCalled(); + }); + + it.each([ + { label: "no registry row", entry: null }, + { label: "a hosted provider", entry: sandbox({ provider: "nvidia-prod" }) }, + { label: "Local Ollama", entry: sandbox({ provider: "ollama-local" }) }, + { + label: "a runtime-provider host-local inference receipt", + entry: sandbox({ hostLocalInferenceReceipt: '{"schemaVersion":2}' }), + }, + ])("does not apply to a destroyed sandbox with $label", ({ entry }) => { + const { deps, listHostRegistryEntries, retireRuntime } = makeDeps([]); + + expect(retireManagedVllmForDestroyedSandbox(entry, deps)).toEqual({ kind: "not-applicable" }); + expect(listHostRegistryEntries).not.toHaveBeenCalled(); + expect(retireRuntime).not.toHaveBeenCalled(); + }); + + it("preserves the container when a gateway registry cannot be read", () => { + const retireRuntime = vi.fn(); + + expect( + retireManagedVllmForDestroyedSandbox(sandbox(), { + listHostRegistryEntries: () => { + throw new Error("sandboxes.json is not owner-only"); + }, + resolveHomeDir: () => "/home/user", + retireRuntime: retireRuntime as never, + }), + ).toEqual({ kind: "inventory-failed", detail: "sandboxes.json is not owner-only" }); + expect(retireRuntime).not.toHaveBeenCalled(); + }); + + it("passes a preserved runtime result through", () => { + const { deps } = makeDeps([], { + status: "preserved", + reason: "the container does not carry the NemoClaw managed vLLM label", + removed: [], + }); + + expect(retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ + kind: "retirement", + status: "preserved", + reason: "the container does not carry the NemoClaw managed vLLM label", + removed: [], + }); + }); +}); + +describe("managed vLLM retirement report", () => { + function render(outcome: ManagedVllmDestroyOutcome) { + const logs: string[] = []; + const warnings: string[] = []; + reportManagedVllmDestroyOutcome(outcome, { + log: (message) => logs.push(message), + warn: (message) => warnings.push(message), + }); + return { logs, warnings }; + } + + it("prints nothing when retirement does not apply or no container exists", () => { + expect(render({ kind: "not-applicable" })).toEqual({ logs: [], warnings: [] }); + expect(render({ kind: "retirement", status: "absent" })).toEqual({ logs: [], warnings: [] }); + }); + + it("names the removed container and the option that keeps it next time", () => { + const { logs, warnings } = render({ + kind: "retirement", + status: "removed", + containerId: CONTAINER_ID, + removed: [`container:${CONTAINER_ID}`], + }); + + expect(warnings).toEqual([]); + expect(logs[0]).toContain(`'nemoclaw-vllm' (${CONTAINER_ID.slice(0, 12)})`); + expect(logs[1]).toContain("--keep-vllm"); + expect(logs[1]).toContain("NEMOCLAW_KEEP_VLLM=1"); + }); + + it("reports remaining consumers, the keep option, or distributed ownership as preservation", () => { + expect(render({ kind: "kept", reason: "consumers", consumers: 2 }).logs).toEqual([ + " Managed vLLM container 'nemoclaw-vllm' preserved: 2 other registered sandbox(es) use Local vLLM.", + ]); + expect(render({ kind: "kept", reason: "option" }).logs).toEqual([ + " Managed vLLM container 'nemoclaw-vllm' preserved (--keep-vllm).", + ]); + const distributed = render({ + kind: "retirement", + status: "kept", + reason: "a distributed vLLM receipt owns it until full uninstall", + }); + expect(distributed.warnings).toEqual([]); + expect(distributed.logs).toEqual([ + " Managed vLLM container 'nemoclaw-vllm' preserved: a distributed vLLM receipt owns it until full uninstall.", + ]); + }); + + it("warns with the reason and an inspection hint when the container was left in place", () => { + const preserved = render({ + kind: "retirement", + status: "preserved", + reason: "Docker is unavailable", + removed: [], + }); + const inventory = render({ kind: "inventory-failed", detail: "registry unreadable" }); + + expect(preserved.logs).toEqual([]); + expect(preserved.warnings[0]).toContain("Docker is unavailable"); + expect(preserved.warnings[0]).toContain("docker container inspect nemoclaw-vllm"); + expect(inventory.warnings[0]).toContain("registry unreadable"); + expect(inventory.warnings[0]).toContain("docker container inspect nemoclaw-vllm"); + }); +}); diff --git a/src/lib/actions/sandbox/destroy-preflight.ts b/src/lib/actions/sandbox/destroy-preflight.ts index a475f0b74f3..3edaaf3b8b3 100644 --- a/src/lib/actions/sandbox/destroy-preflight.ts +++ b/src/lib/actions/sandbox/destroy-preflight.ts @@ -7,6 +7,11 @@ import { buildSelectedOpenShellSubprocessEnv } from "../../adapters/openshell/co import type { OpenShellRuntimeSelection } from "../../adapters/openshell/runtime-selection"; import { OPENSHELL_PROBE_TIMEOUT_MS } from "../../adapters/openshell/timeouts"; import { withModelRouterPortLifecycleLock } from "../../inference/gateway-route-mutation-lock"; +import { + HOST_LOCAL_VLLM_CONTAINER_NAME, + type HostLocalVllmRetirementResult, + retireHostLocalVllmRuntime, +} from "../../inference/local-model-profile/cleanup"; import { DEFAULT_MODEL_ROUTER_PORT, isRoutedInferenceProvider } from "../../onboard/model-router"; import { doesModelRouterProcessOwnPort, @@ -101,6 +106,103 @@ export function stopSandboxInferenceResources( } } +const LOCAL_VLLM_PROVIDER = "vllm-local"; +const MANAGED_VLLM_INSPECT_HINT = `Inspect it with 'docker container inspect ${HOST_LOCAL_VLLM_CONTAINER_NAME}' before you stop it.`; + +export type ManagedVllmDestroyOutcome = + | { kind: "not-applicable" } + | { kind: "kept"; reason: "option" } + | { kind: "kept"; reason: "consumers"; consumers: number } + | { kind: "inventory-failed"; detail: string } + | ({ kind: "retirement" } & HostLocalVllmRetirementResult); + +export type ManagedVllmDestroyDeps = { + keepVllm?: boolean; + listHostRegistryEntries?: typeof listHostGatewayRegistryEntries; + resolveHomeDir?: () => string; + retireRuntime?: typeof retireHostLocalVllmRuntime; +}; + +/** + * Retire the host-global managed vLLM container after the destroyed sandbox's + * registry row is gone and no registered sandbox in any gateway state root + * still uses Local vLLM. A sandbox whose runtime provider owns a host-local + * inference receipt retires its runtime through that provider instead. + */ +export function retireManagedVllmForDestroyedSandbox( + sandbox: SandboxEntry | null, + deps: ManagedVllmDestroyDeps = {}, +): ManagedVllmDestroyOutcome { + if ( + !sandbox || + sandbox.provider !== LOCAL_VLLM_PROVIDER || + typeof sandbox.hostLocalInferenceReceipt === "string" + ) { + return { kind: "not-applicable" }; + } + if (deps.keepVllm === true) return { kind: "kept", reason: "option" }; + const home = (deps.resolveHomeDir ?? (() => process.env.HOME || os.homedir()))(); + let consumers: number; + try { + consumers = (deps.listHostRegistryEntries ?? listHostGatewayRegistryEntries)(home).filter( + ({ entry }) => entry.provider === LOCAL_VLLM_PROVIDER, + ).length; + } catch (error) { + return { + kind: "inventory-failed", + detail: error instanceof Error ? error.message : String(error), + }; + } + if (consumers > 0) return { kind: "kept", reason: "consumers", consumers }; + return { + kind: "retirement", + ...(deps.retireRuntime ?? retireHostLocalVllmRuntime)({ homeDir: home }), + }; +} + +/** Report the retirement outcome; a preserved container is a warning because the sandbox is already gone. */ +export function reportManagedVllmDestroyOutcome( + outcome: ManagedVllmDestroyOutcome, + output: { log: (message: string) => void; warn: (message: string) => void }, +): void { + const name = HOST_LOCAL_VLLM_CONTAINER_NAME; + switch (outcome.kind) { + case "not-applicable": + return; + case "kept": + output.log( + outcome.reason === "option" + ? ` Managed vLLM container '${name}' preserved (--keep-vllm).` + : ` Managed vLLM container '${name}' preserved: ${String(outcome.consumers)} other registered sandbox(es) use Local vLLM.`, + ); + return; + case "inventory-failed": + output.warn( + `Sandbox deletion succeeded, but NemoClaw could not read every gateway sandbox registry to confirm that no sandbox still uses Local vLLM: ${outcome.detail}. The managed vLLM container '${name}' was left in place. ${MANAGED_VLLM_INSPECT_HINT}`, + ); + return; + case "retirement": + break; + } + switch (outcome.status) { + case "absent": + return; + case "kept": + output.log(` Managed vLLM container '${name}' preserved: ${outcome.reason}.`); + return; + case "removed": + output.log( + ` Removed managed vLLM container '${name}' (${outcome.containerId.slice(0, 12)}); no registered sandbox uses Local vLLM.`, + ); + output.log(" Pass '--keep-vllm' or set NEMOCLAW_KEEP_VLLM=1 to keep it running next time."); + return; + case "preserved": + output.warn( + `Sandbox deletion succeeded, but the managed vLLM container '${name}' was left in place: ${outcome.reason}. ${MANAGED_VLLM_INSPECT_HINT}`, + ); + } +} + export type StopModelRouterForDestroyedSandboxDeps = { acquireOnboardLock: typeof acquireOnboardLock; compareAndSwapSession: typeof compareAndSwapSession; diff --git a/src/lib/actions/sandbox/destroy.ts b/src/lib/actions/sandbox/destroy.ts index ef106cf4315..13ee0b1126f 100644 --- a/src/lib/actions/sandbox/destroy.ts +++ b/src/lib/actions/sandbox/destroy.ts @@ -72,8 +72,10 @@ import { } from "./destroy-presence"; import { prepareSandboxDestroy, + reportManagedVllmDestroyOutcome, resolveSandboxDestroyGatewayName, resolveSandboxDestroyRuntimeSelection, + retireManagedVllmForDestroyedSandbox, stopModelRouterForDestroyedSandbox, stopSandboxInferenceResources, teardownSandboxDashboardForward, @@ -1139,6 +1141,12 @@ async function destroySandboxUnlocked( `that still owns the matching port and model-router command line.`, ); } + // The registry row is gone, so every remaining Local vLLM row in any + // gateway state root is a peer that still needs the host-global container. + reportManagedVllmDestroyOutcome( + retireManagedVllmForDestroyedSandbox(sandbox, { keepVllm: normalized.keepVllm }), + { log: console.log, warn: defaultDestroyWarn }, + ); } const retainedRecoveryOwnsDestroySession = retainedRecoveryAuthority ? onboardSession.retainedSandboxRecoveryMatchesSession( diff --git a/src/lib/actions/sandbox/doctor-inference.test.ts b/src/lib/actions/sandbox/doctor-inference.test.ts index d5fdbfc5e07..9ca9b25a8fe 100644 --- a/src/lib/actions/sandbox/doctor-inference.test.ts +++ b/src/lib/actions/sandbox/doctor-inference.test.ts @@ -289,4 +289,27 @@ describe("doctor inference checks", () => { expect(probe).toHaveBeenCalledWith("ollama-local", { model: "nemotron-mini:latest" }); }); + + it("passes the recorded route endpoint to direct provider diagnostics", async () => { + const probe = vi.fn(() => upstream()); + + await collectInferenceChecks( + "alpha", + { + provider: "vllm-local", + model: "nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8", + recordedEndpointUrl: "http://host.openshell.internal:46145/v1", + }, + true, + { + probeProviderHealthImpl: probe, + probeSandboxInferenceGatewayHealthImpl: async () => gateway(true), + }, + ); + + expect(probe).toHaveBeenCalledWith("vllm-local", { + model: "nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8", + recordedEndpointUrl: "http://host.openshell.internal:46145/v1", + }); + }); }); diff --git a/src/lib/actions/sandbox/doctor-inference.ts b/src/lib/actions/sandbox/doctor-inference.ts index e635f1c6e08..b45a7a2801d 100644 --- a/src/lib/actions/sandbox/doctor-inference.ts +++ b/src/lib/actions/sandbox/doctor-inference.ts @@ -16,6 +16,8 @@ export type DoctorInferenceRoute = { model: string; provider: string; effectiveReasoningEffort?: EffectiveReasoningEffort | null; + /** Sandbox route endpoint recorded at onboard; selects the bearerless local vLLM host port. */ + recordedEndpointUrl?: string | null; }; type ManagedLlamaCppDoctorDeps = { @@ -184,15 +186,18 @@ function unavailableProviderHealthDiagnostic(detail: string): ProviderHealthStat } function collectProviderHealthDiagnostics( - provider: string, - model: string, + route: DoctorInferenceRoute, probe: typeof probeProviderHealth, ): ProviderHealthStatus[] { + const { provider, model, recordedEndpointUrl } = route; if (provider === "unknown") { return [unavailableProviderHealthDiagnostic("provider route is unknown")]; } try { - const health = probe(provider, { model }); + const health = probe(provider, { + model, + ...(typeof recordedEndpointUrl === "string" ? { recordedEndpointUrl } : {}), + }); if (!health) { return [ unavailableProviderHealthDiagnostic(`no direct health probe registered for ${provider}`), @@ -223,8 +228,7 @@ export async function collectInferenceChecks( ); pushInferenceHealthCheck(checks, gatewayProbe, { label: "Inference route (gateway)" }); for (const diagnostic of collectProviderHealthDiagnostics( - route.provider, - route.model, + route, deps.probeProviderHealthImpl ?? probeProviderHealth, )) { pushInferenceHealthCheck(checks, diagnostic, { authoritative: false }); diff --git a/src/lib/actions/sandbox/doctor.ts b/src/lib/actions/sandbox/doctor.ts index 4b4162d2f3a..a4482117baa 100644 --- a/src/lib/actions/sandbox/doctor.ts +++ b/src/lib/actions/sandbox/doctor.ts @@ -417,6 +417,7 @@ function resolveInferenceRoute( model: live?.model || sb?.model || "unknown", provider: live?.provider || sb?.provider || "unknown", effectiveReasoningEffort: resolveDoctorReasoningEffort(sb), + recordedEndpointUrl: sb?.endpointUrl, }; } diff --git a/src/lib/actions/sandbox/status-snapshot.ts b/src/lib/actions/sandbox/status-snapshot.ts index 018caa82265..55eee2336c5 100644 --- a/src/lib/actions/sandbox/status-snapshot.ts +++ b/src/lib/actions/sandbox/status-snapshot.ts @@ -85,10 +85,12 @@ export function getSandboxStatusInferenceHealth( currentProvider: unknown, currentModel: unknown, probeProviderHealthImpl: ProbeProviderHealth = probeProviderHealth, + recordedEndpointUrl?: unknown, ): ProviderHealthStatus | null { if (!gatewayPresent || typeof currentProvider !== "string") return null; return probeProviderHealthImpl(currentProvider, { model: typeof currentModel === "string" ? currentModel : undefined, + ...(typeof recordedEndpointUrl === "string" ? { recordedEndpointUrl } : {}), }); } @@ -105,6 +107,7 @@ export function maybeGetSandboxStatusInferenceHealth( currentProvider: unknown, currentModel: unknown, probeProviderHealthImpl?: ProbeProviderHealth, + recordedEndpointUrl?: unknown, ): ProviderHealthStatus | null { if (suppressInferenceProbe) return null; return getSandboxStatusInferenceHealth( @@ -112,6 +115,7 @@ export function maybeGetSandboxStatusInferenceHealth( currentProvider, currentModel, probeProviderHealthImpl, + recordedEndpointUrl, ); } @@ -616,6 +620,7 @@ export async function collectSandboxStatusSnapshot( (live && live.provider) || currentProvider, (live && live.model) || currentModel, opts.deps?.probeProviderHealthImpl, + sb?.endpointUrl, ); } catch { providerHealth = { diff --git a/src/lib/actions/sandbox/status.test.ts b/src/lib/actions/sandbox/status.test.ts index b2a43f1d17f..4cbb39bf71b 100644 --- a/src/lib/actions/sandbox/status.test.ts +++ b/src/lib/actions/sandbox/status.test.ts @@ -177,6 +177,43 @@ describe("sandbox status inference health", () => { }); }); + it("passes the recorded sandbox route endpoint to the provider probe", () => { + let observed: ProviderHealthProbeOptions | undefined; + + getSandboxStatusInferenceHealth( + true, + "vllm-local", + "nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8", + (_provider, options) => { + observed = options; + return null; + }, + "http://host.openshell.internal:46145/v1", + ); + + expect(observed).toEqual({ + model: "nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8", + recordedEndpointUrl: "http://host.openshell.internal:46145/v1", + }); + }); + + it("omits the recorded endpoint from the probe options when the registry records none", () => { + let observed: ProviderHealthProbeOptions | undefined; + + getSandboxStatusInferenceHealth( + true, + "vllm-local", + "nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8", + (_provider, options) => { + observed = options; + return null; + }, + null, + ); + + expect(observed).toEqual({ model: "nvidia/NVIDIA-Nemotron-3-Nano-4B-FP8" }); + }); + it("does not probe when the sandbox gateway is not present", () => { let called = false; diff --git a/src/lib/cli/public-display-defaults.ts b/src/lib/cli/public-display-defaults.ts index 74cef1d3446..19f7ab2964b 100644 --- a/src/lib/cli/public-display-defaults.ts +++ b/src/lib/cli/public-display-defaults.ts @@ -249,7 +249,7 @@ const PUBLIC_DISPLAY_LAYOUT: Record = { group: "Sandbox Management", order: 15, description: "Stop NIM + delete sandbox", - flags: "[--yes|-y|--force] [--cleanup-gateway|--no-cleanup-gateway]", + flags: "[--yes|-y|--force] [--cleanup-gateway|--no-cleanup-gateway] [--keep-vllm]", }, ], "sandbox:download": [ diff --git a/src/lib/domain/lifecycle/options.test.ts b/src/lib/domain/lifecycle/options.test.ts index b75650bb545..8a308367d8d 100644 --- a/src/lib/domain/lifecycle/options.test.ts +++ b/src/lib/domain/lifecycle/options.test.ts @@ -139,6 +139,55 @@ describe("lifecycle option normalization", () => { ); }); + describe("destroy keepVllm resolution", () => { + const ENV_KEY = "NEMOCLAW_KEEP_VLLM"; + + beforeEach(() => { + vi.stubEnv(ENV_KEY, undefined); + }); + + it("leaves keepVllm unset by default so destroy retires the last managed vLLM container", () => { + expect(normalizeDestroySandboxOptions(["--yes"])).toEqual({ force: false, yes: true }); + expect(normalizeDestroySandboxOptions({ yes: true })).toEqual({ yes: true }); + }); + + it("threads --keep-vllm through argv", () => { + expect(normalizeDestroySandboxOptions(["--yes", "--keep-vllm"])).toEqual({ + force: false, + yes: true, + keepVllm: true, + }); + }); + + it("falls back to NEMOCLAW_KEEP_VLLM when no flag is passed", () => { + vi.stubEnv(ENV_KEY, "1"); + expect(normalizeDestroySandboxOptions(["--yes"])).toEqual({ + force: false, + yes: true, + keepVllm: true, + }); + expect(normalizeDestroySandboxOptions({ yes: true })).toEqual({ yes: true, keepVllm: true }); + }); + + it("explicit option object wins over env var", () => { + vi.stubEnv(ENV_KEY, "1"); + expect(normalizeDestroySandboxOptions({ yes: true, keepVllm: false })).toEqual({ + yes: true, + keepVllm: false, + }); + }); + + it.each(["0", "false", "No"])("recognises falsy NEMOCLAW_KEEP_VLLM spelling %#", (value) => { + vi.stubEnv(ENV_KEY, value); + expect(normalizeDestroySandboxOptions({}).keepVllm).toBe(false); + }); + + it.each(["", "maybe"])("ignores unrecognized NEMOCLAW_KEEP_VLLM spelling %#", (value) => { + vi.stubEnv(ENV_KEY, value); + expect(normalizeDestroySandboxOptions({}).keepVllm).toBeUndefined(); + }); + }); + it("preserves typed rebuild options and still accepts compatibility argv", () => { expect( normalizeRebuildSandboxOptions({ diff --git a/src/lib/domain/lifecycle/options.ts b/src/lib/domain/lifecycle/options.ts index 93572fa0da4..573947576b1 100644 --- a/src/lib/domain/lifecycle/options.ts +++ b/src/lib/domain/lifecycle/options.ts @@ -28,15 +28,30 @@ export interface DestroySandboxOptions { * decide whether to prompt. */ cleanupGateway?: boolean; + /** + * Keep the host-global managed vLLM container running after destroying + * the last registered sandbox that uses Local vLLM. Resolution order during + * normalization: explicit option, then the `--keep-vllm` argv flag, then + * `NEMOCLAW_KEEP_VLLM=1`. Anything else retires the container. + */ + keepVllm?: boolean; } -function readCleanupGatewayEnv(): boolean | undefined { - const raw = (process.env.NEMOCLAW_CLEANUP_GATEWAY ?? "").trim().toLowerCase(); +function readBooleanEnv(name: string): boolean | undefined { + const raw = (process.env[name] ?? "").trim().toLowerCase(); if (raw === "1" || raw === "true" || raw === "yes") return true; if (raw === "0" || raw === "false" || raw === "no") return false; return undefined; } +function readCleanupGatewayEnv(): boolean | undefined { + return readBooleanEnv("NEMOCLAW_CLEANUP_GATEWAY"); +} + +function readKeepVllmEnv(): boolean | undefined { + return readBooleanEnv("NEMOCLAW_KEEP_VLLM"); +} + export interface RebuildSandboxOptions { dcodeAutoApprovalMode?: DcodeAutoApprovalMode; force?: boolean; @@ -62,16 +77,19 @@ export function normalizeDestroySandboxOptions( options: string[] | DestroySandboxOptions = {}, ): DestroySandboxOptions { const envCleanupGateway = readCleanupGatewayEnv(); + const envKeepVllm = readKeepVllmEnv(); const nonInteractive = isNonInteractiveEnv(); if (Array.isArray(options)) { const yesIdx = options.lastIndexOf("--cleanup-gateway"); const noIdx = options.lastIndexOf("--no-cleanup-gateway"); const cleanupGateway: boolean | undefined = yesIdx === -1 && noIdx === -1 ? envCleanupGateway : yesIdx > noIdx; + const keepVllm: boolean | undefined = options.includes("--keep-vllm") ? true : envKeepVllm; return { force: options.includes("--force"), yes: options.includes("--yes") || nonInteractive, ...(cleanupGateway === undefined ? {} : { cleanupGateway }), + ...(keepVllm === undefined ? {} : { keepVllm }), }; } return { @@ -80,6 +98,9 @@ export function normalizeDestroySandboxOptions( ...(options.cleanupGateway === undefined && envCleanupGateway !== undefined ? { cleanupGateway: envCleanupGateway } : {}), + ...(options.keepVllm === undefined && envKeepVllm !== undefined + ? { keepVllm: envKeepVllm } + : {}), }; } diff --git a/src/lib/inference/health.ts b/src/lib/inference/health.ts index cf00cf77b60..b976e2e60f3 100644 --- a/src/lib/inference/health.ts +++ b/src/lib/inference/health.ts @@ -60,6 +60,8 @@ export interface ProviderHealthProbeOptions { model?: string | null; getCredentialImpl?: (envName: string) => string | null | undefined; isWsl?: boolean; + /** Sandbox route endpoint recorded at onboard; selects the bearerless local vLLM host port. */ + recordedEndpointUrl?: string | null; } export type OllamaHostInventoryProbeOptions = { @@ -747,6 +749,7 @@ export function probeProviderHealth( const localOptions: LocalProviderHealthProbeOptions = { model: options.model, runCurlProbeImpl: options.runCurlProbeImpl, + recordedEndpointUrl: options.recordedEndpointUrl, }; const local = probeLocalProviderHealth(provider, localOptions); if (local) { diff --git a/src/lib/inference/local-model-profile/cleanup.test.ts b/src/lib/inference/local-model-profile/cleanup.test.ts index 5bfa189c7b1..85e867be881 100644 --- a/src/lib/inference/local-model-profile/cleanup.test.ts +++ b/src/lib/inference/local-model-profile/cleanup.test.ts @@ -42,6 +42,7 @@ import { prepareManagedLlamaCppLifecycleCleanup, prepareManagedLlamaCppRuntimeCleanupForSandbox, resolveManagedLlamaCppCleanupTarget, + retireHostLocalVllmRuntime, } from "./cleanup"; import { createManagedState, @@ -79,6 +80,209 @@ function ownedContainer( return JSON.stringify([{ Id: id, Name: `/${name}`, Config: { Env: env, Labels: labels } }]); } +describe("managed vLLM retirement after the last Local vLLM sandbox", () => { + const containerId = "f".repeat(64); + + function retirementDeps( + inspection: string, + overrides: { forceRmStatus?: number; dockerStatus?: number } = {}, + ) { + const forceRm = vi.fn(() => ({ status: overrides.forceRmStatus ?? 0 }) as never); + const capture = vi.fn((argv: readonly string[]) => + argv[0] === "container" && argv[2] === HOST_LOCAL_VLLM_CONTAINER_NAME ? inspection : "", + ); + return { + forceRm, + deps: { + capture: capture as never, + forceRm: forceRm as never, + run: vi.fn(() => ({ status: overrides.dockerStatus ?? 0 }) as never), + }, + }; + } + + it("removes a bearerless managed vLLM container by its inspected ID", () => { + const homeDir = temporaryHome(); + const { deps, forceRm } = retirementDeps( + ownedContainer(HOST_LOCAL_VLLM_CONTAINER_NAME, containerId, { + [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", + }), + ); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ + status: "removed", + containerId, + removed: [`container:${containerId}`], + }); + expect(forceRm).toHaveBeenCalledWith(containerId, { ignoreError: true, suppressOutput: true }); + }); + + it("reports an absent container without calling Docker removal", () => { + const homeDir = temporaryHome(); + const { deps, forceRm } = retirementDeps(""); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ status: "absent" }); + expect(forceRm).not.toHaveBeenCalled(); + }); + + it.each<{ reason: string; labels: Record }>([ + { + reason: "the container does not carry the NemoClaw managed vLLM label", + labels: { "com.example.owner": "operator" }, + }, + { + reason: "the container belongs to a distributed vLLM runtime", + labels: { [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", "com.nvidia.nemoclaw.vllm-role": "head" }, + }, + { + reason: "the container is bearer-protected but its persisted API key is missing", + labels: { + [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", + [HOST_LOCAL_VLLM_AUTH_LABEL]: "0".repeat(64), + }, + }, + ])("preserves the container when $reason", ({ reason, labels }) => { + const homeDir = temporaryHome(); + const { deps, forceRm } = retirementDeps( + ownedContainer(HOST_LOCAL_VLLM_CONTAINER_NAME, containerId, labels), + ); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ + status: "preserved", + reason, + removed: [], + }); + expect(forceRm).not.toHaveBeenCalled(); + }); + + it("preserves the container when Docker is unavailable", () => { + const homeDir = temporaryHome(); + const { deps, forceRm } = retirementDeps( + ownedContainer(HOST_LOCAL_VLLM_CONTAINER_NAME, containerId, { + [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", + }), + { dockerStatus: 1 }, + ); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ + status: "preserved", + reason: "Docker is unavailable", + removed: [], + }); + expect(forceRm).not.toHaveBeenCalled(); + }); + + it("reports a failed Docker removal as a preserved container", () => { + const homeDir = temporaryHome(); + const { deps } = retirementDeps( + ownedContainer(HOST_LOCAL_VLLM_CONTAINER_NAME, containerId, { + [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", + }), + { forceRmStatus: 1 }, + ); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ + status: "preserved", + reason: "Docker could not remove the container", + removed: [], + }); + }); + + it("keeps the container for full uninstall while a distributed vLLM receipt exists", () => { + const homeDir = temporaryHome(); + const stateDir = managedVllmStateDir(homeDir); + fs.mkdirSync(stateDir, { mode: 0o700, recursive: true }); + fs.writeFileSync(path.join(stateDir, "dual-station-vllm-runtime.json"), "{}\n", { + mode: 0o600, + }); + const { deps, forceRm } = retirementDeps( + ownedContainer(HOST_LOCAL_VLLM_CONTAINER_NAME, containerId, { + [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", + }), + ); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ + status: "kept", + reason: "a distributed vLLM receipt owns it until full uninstall", + }); + expect(forceRm).not.toHaveBeenCalled(); + }); + + it("removes an authenticated managed vLLM container with its key and receipt", () => { + const homeDir = temporaryHome(); + const stateDir = managedVllmStateDir(homeDir); + fs.mkdirSync(stateDir, { mode: 0o700, recursive: true }); + const apiKey = "e".repeat(64); + const serving = { + catalogDigest: `sha256:${"1".repeat(64)}`, + presetId: "vllm.dgx-spark-gb10.single.example", + presetDigest: `sha256:${"2".repeat(64)}`, + recipeId: "vllm.dgx-spark-gb10.single.example", + recipeDigest: `sha256:${"3".repeat(64)}`, + } as const; + fs.writeFileSync(path.join(stateDir, "dual-station-vllm-api-key"), `${apiKey}\n`, { + mode: 0o600, + }); + persistHostLocalVllmRuntimeReceipt( + { containerId, authFingerprint: runtimeAuthFingerprint(apiKey), serving }, + stateDir, + ); + const { deps, forceRm } = retirementDeps( + ownedContainer( + HOST_LOCAL_VLLM_CONTAINER_NAME, + containerId, + { + [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", + [HOST_LOCAL_VLLM_AUTH_LABEL]: runtimeAuthFingerprint(apiKey), + [HOST_LOCAL_VLLM_CATALOG_LABEL]: serving.catalogDigest, + [HOST_LOCAL_VLLM_PRESET_LABEL]: serving.presetId, + [HOST_LOCAL_VLLM_PRESET_DIGEST_LABEL]: serving.presetDigest, + [HOST_LOCAL_VLLM_RECIPE_LABEL]: serving.recipeId, + [HOST_LOCAL_VLLM_RECIPE_DIGEST_LABEL]: serving.recipeDigest, + }, + [`VLLM_API_KEY=${apiKey}`], + ), + ); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ + status: "removed", + containerId, + removed: [`container:${containerId}`], + }); + expect(forceRm).toHaveBeenCalledWith(containerId, { ignoreError: true, suppressOutput: true }); + expect(fs.existsSync(path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE))).toBe(false); + expect(fs.existsSync(path.join(stateDir, "dual-station-vllm-api-key"))).toBe(false); + }); + + it("preserves an authenticated container whose key does not match the persisted state", () => { + const homeDir = temporaryHome(); + const stateDir = managedVllmStateDir(homeDir); + fs.mkdirSync(stateDir, { mode: 0o700, recursive: true }); + fs.writeFileSync(path.join(stateDir, "dual-station-vllm-api-key"), `${"e".repeat(64)}\n`, { + mode: 0o600, + }); + const { deps, forceRm } = retirementDeps( + ownedContainer( + HOST_LOCAL_VLLM_CONTAINER_NAME, + containerId, + { + [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", + [HOST_LOCAL_VLLM_AUTH_LABEL]: runtimeAuthFingerprint("a".repeat(64)), + }, + [`VLLM_API_KEY=${"a".repeat(64)}`], + ), + ); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ + status: "preserved", + reason: "host-local vLLM ownership or authentication does not match persisted state", + removed: [], + }); + expect(forceRm).not.toHaveBeenCalled(); + expect(fs.existsSync(path.join(stateDir, "dual-station-vllm-api-key"))).toBe(true); + }); +}); + describe("host-local model cleanup", () => { it("treats an absent home as no managed runtime state", () => { const homeDir = path.join(temporaryHome(), "absent-home"); diff --git a/src/lib/inference/local-model-profile/cleanup.ts b/src/lib/inference/local-model-profile/cleanup.ts index f497040fc67..bff8eb5d563 100644 --- a/src/lib/inference/local-model-profile/cleanup.ts +++ b/src/lib/inference/local-model-profile/cleanup.ts @@ -1413,21 +1413,96 @@ export function cleanupManagedLlamaCppRuntimeForSandbox( return cleanupManagedLlamaCppRuntimeForSandboxInternal(sandboxName, options); } -/** Remove only exact owned host-local runtime resources before uninstall deletes state. */ -export function cleanupLocalModelRuntimes( - options: LocalModelRuntimeCleanupOptions, -): LocalModelRuntimeCleanupResult { - const deps: CleanupDeps = { - capture: options.deps?.capture ?? dockerCapture, +function resolveCleanupDeps(overrides: Partial = {}): CleanupDeps { + return { + capture: overrides.capture ?? dockerCapture, currentUserId: - options.deps?.currentUserId === undefined + overrides.currentUserId === undefined ? typeof process.getuid === "function" ? process.getuid() : null - : options.deps.currentUserId, - forceRm: options.deps?.forceRm ?? dockerForceRm, - run: options.deps?.run ?? dockerRun, + : overrides.currentUserId, + forceRm: overrides.forceRm ?? dockerForceRm, + run: overrides.run ?? dockerRun, }; +} + +const DISTRIBUTED_VLLM_LABEL_PREFIX = "com.nvidia.nemoclaw.vllm-"; + +export type HostLocalVllmRetirementResult = + | { status: "absent" } + | { status: "kept"; reason: string } + | { status: "removed"; containerId: string; removed: string[] } + | { status: "preserved"; reason: string; removed: string[] }; + +function removeUnauthenticatedHostLocalVllm( + deps: CleanupDeps, + removed: string[], +): HostLocalVllmRetirementResult { + const inspected = inspectOwnedResource( + "container", + HOST_LOCAL_VLLM_CONTAINER_NAME, + HOST_LOCAL_VLLM_MANAGED_LABEL, + "true", + deps.capture, + ); + if (inspected.kind === "absent") return { status: "absent" }; + if (inspected.kind === "foreign") { + throw new Error("the container does not carry the NemoClaw managed vLLM label"); + } + const config = inspected.row.Config as { Labels?: unknown } | undefined; + const labels = (config?.Labels ?? {}) as Record; + if (Object.keys(labels).some((label) => label.startsWith(DISTRIBUTED_VLLM_LABEL_PREFIX))) { + throw new Error("the container belongs to a distributed vLLM runtime"); + } + if (labels[HOST_LOCAL_VLLM_AUTH_LABEL] !== undefined) { + throw new Error("the container is bearer-protected but its persisted API key is missing"); + } + const removal = deps.forceRm(inspected.id, { ignoreError: true, suppressOutput: true }); + if (removal.status !== 0) throw new Error("Docker could not remove the container"); + removed.push(`container:${inspected.id}`); + return { status: "removed", containerId: inspected.id, removed }; +} + +/** + * Retire the NemoClaw-managed single-host vLLM container once no registered + * sandbox uses it. An authenticated container must match its persisted key and + * receipt; a bearerless container must carry the managed label and no + * distributed or bearer labels. A distributed receipt keeps its container for + * full uninstall; any other container is left in place with the reason. + */ +export function retireHostLocalVllmRuntime( + options: { homeDir?: string; deps?: Partial } = {}, +): HostLocalVllmRetirementResult { + const deps = resolveCleanupDeps(options.deps); + const removed: string[] = []; + try { + const homeDir = canonicalCleanupHomeDir(options.homeDir ?? os.homedir()); + const vllmStateDir = managedVllmStateDir(homeDir); + if (distributedReceiptPresent(vllmStateDir)) { + return { status: "kept", reason: "a distributed vLLM receipt owns it until full uninstall" }; + } + if (deps.run(["info"], { ignoreError: true, suppressOutput: true }).status !== 0) { + return { status: "preserved", reason: "Docker is unavailable", removed }; + } + if (!fs.existsSync(path.join(vllmStateDir, MANAGED_VLLM_API_KEY_FILE))) { + return removeUnauthenticatedHostLocalVllm(deps, removed); + } + cleanupHostLocalVllm(vllmStateDir, deps, removed); + const containerId = removed + .find((entry) => entry.startsWith("container:")) + ?.slice("container:".length); + return containerId ? { status: "removed", containerId, removed } : { status: "absent" }; + } catch (error) { + return { status: "preserved", reason: (error as Error).message, removed }; + } +} + +/** Remove only exact owned host-local runtime resources before uninstall deletes state. */ +export function cleanupLocalModelRuntimes( + options: LocalModelRuntimeCleanupOptions, +): LocalModelRuntimeCleanupResult { + const deps = resolveCleanupDeps(options.deps); const removed: string[] = []; const preserved: string[] = []; try { diff --git a/src/lib/inference/local.test.ts b/src/lib/inference/local.test.ts index d2da3fc8ed3..29969ac0a83 100644 --- a/src/lib/inference/local.test.ts +++ b/src/lib/inference/local.test.ts @@ -7,6 +7,7 @@ import path from "node:path"; import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; // Import source directly so tests cannot pass against a stale build. +import { VLLM_PORT } from "../core/ports"; import { OLLAMA_MODEL_REGISTRY } from "./ollama-model-registry"; // Derive the "large enough to fit every registry entry" memory threshold @@ -609,6 +610,58 @@ describe("local inference helpers", () => { expect(result?.ok).toBe(expected); }); + it("probes the host port recorded in the sandbox route for a bearerless local vLLM server", () => { + const probedEndpoints: string[] = []; + + const result = probeLocalProviderHealth("vllm-local", { + recordedEndpointUrl: "http://host.openshell.internal:46145/v1", + runCurlProbeImpl: (argv) => { + probedEndpoints.push(argv.at(-1) ?? ""); + return { + ok: true, + httpStatus: 200, + curlStatus: 0, + body: '{"data":[]}', + stderr: "", + message: "HTTP 200", + }; + }, + }); + + expect(result?.ok).toBe(true); + expect(result?.endpoint).toBe("http://127.0.0.1:46145/v1/models"); + expect(probedEndpoints).toEqual(["http://127.0.0.1:46145/v1/models"]); + }); + + it.each([ + { recordedEndpointUrl: null, reason: "no recorded route" }, + { recordedEndpointUrl: "https://inference.local/v1", reason: "an in-sandbox route" }, + { recordedEndpointUrl: "http://host.openshell.internal/v1", reason: "no port" }, + { recordedEndpointUrl: "http://host.openshell.internal:80/v1", reason: "a privileged port" }, + { + recordedEndpointUrl: "http://host.openshell.internal:46145/v1/chat", + reason: "a non-route path", + }, + { recordedEndpointUrl: "not a url", reason: "a malformed URL" }, + ])( + "keeps the configured local vLLM port when the recorded route has $reason", + ({ recordedEndpointUrl }) => { + const result = probeLocalProviderHealth("vllm-local", { + recordedEndpointUrl, + runCurlProbeImpl: () => ({ + ok: false, + httpStatus: 0, + curlStatus: 7, + body: "", + stderr: "Failed to connect", + message: "curl failed (exit 7)", + }), + }); + + expect(result?.endpoint).toBe(`http://127.0.0.1:${VLLM_PORT}/v1/models`); + }, + ); + it("reports a clear local provider outage when the host probe cannot connect", () => { const result = probeLocalProviderHealth("ollama-local", { runCurlProbeImpl: () => ({ diff --git a/src/lib/inference/local.ts b/src/lib/inference/local.ts index 0359de41cef..da44f66b7df 100644 --- a/src/lib/inference/local.ts +++ b/src/lib/inference/local.ts @@ -812,6 +812,30 @@ export interface LocalProviderHealthProbeOptions { getManagedVllmBaseUrlImpl?: ManagedStationVllmBaseUrlResolver; /** Recovers a receipt-owned managed cluster endpoint. */ recoverManagedClusterVllmEndpointImpl?: ManagedClusterVllmEndpointResolver; + /** + * Sandbox route endpoint recorded at onboard. A bearerless managed vLLM + * container leaves no receipt, so this URL is the only durable record of + * the host port that a NEMOCLAW_VLLM_PORT override selected. + */ + recordedEndpointUrl?: string | null; +} + +/** + * Host port from a recorded local vLLM route such as + * `http://host.openshell.internal:/v1`, or null when the URL does not + * name a usable one. + */ +export function recordedLocalVllmHostPort(endpointUrl: string | null | undefined): number | null { + if (!endpointUrl) return null; + let parsed: URL; + try { + parsed = new URL(endpointUrl); + } catch { + return null; + } + if (parsed.protocol !== "http:" || !/^\/v1\/?$/.test(parsed.pathname)) return null; + const port = Number(parsed.port); + return Number.isSafeInteger(port) && port >= 1024 && port <= 65_535 ? port : null; } function defaultLoadOllamaProxyToken(): string | null { @@ -1523,7 +1547,7 @@ export function probeLocalProviderHealth( const endpoint = managedValidationBaseUrl ? `${managedValidationBaseUrl}/models` : provider === "vllm-local" - ? `http://127.0.0.1:${VLLM_PORT}/v1/models` + ? `http://127.0.0.1:${recordedLocalVllmHostPort(options.recordedEndpointUrl) ?? VLLM_PORT}/v1/models` : getLocalProviderHealthEndpoint(provider); if (!endpoint) return null; diff --git a/test/helpers/destroy-flow-test-harness.ts b/test/helpers/destroy-flow-test-harness.ts index 9ea27539d02..42ef0eb4e5d 100644 --- a/test/helpers/destroy-flow-test-harness.ts +++ b/test/helpers/destroy-flow-test-harness.ts @@ -38,6 +38,7 @@ export type DestroyHarness = { gatewayPinsAtSandboxList: Array; killStaleProxySpy: MockInstance; lifecycleLockEvents: string[]; + listHostGatewayRegistryEntriesSpy: MockInstance; logSpy: MockInstance; mcpRuntimeSelectionSpy: MockInstance; prepareMcpBridgesForAbsentSandboxDestroySpy: MockInstance; @@ -51,6 +52,7 @@ export type DestroyHarness = { reconstructRetainedSandboxRecoverySpy: MockInstance; resolveRetainedSandboxRecoverySpy: MockInstance; resolveGatewayRuntimeProviderIdSpy: MockInstance; + retireHostLocalVllmRuntimeSpy: MockInstance; retireRemovedImmutabilityStateRecordSpy: MockInstance; retirePortableLifecycleReceiptSpy: MockInstance; portableDestroyRevalidateSpy: MockInstance; @@ -420,7 +422,12 @@ export function createDestroyHarness(options: DestroyHarnessOptions = {}): Destr .mockImplementation(async (_port: unknown, operation: unknown) => (operation as () => Promise)(), ); - vi.spyOn(gatewayRegistry, "listHostGatewayRegistryEntries").mockReturnValue([]); + const listHostGatewayRegistryEntriesSpy = vi + .spyOn(gatewayRegistry, "listHostGatewayRegistryEntries") + .mockReturnValue([]); + const retireHostLocalVllmRuntimeSpy = vi + .spyOn(localModelProfileCleanup, "retireHostLocalVllmRuntime") + .mockReturnValue({ status: "absent" }); vi.spyOn(modelRouterProcess, "doesModelRouterProcessOwnPort").mockReturnValue(false); vi.spyOn(modelRouterProcess, "inspectModelRouterProcessForPort").mockReturnValue({ status: "absent", @@ -718,6 +725,7 @@ export function createDestroyHarness(options: DestroyHarnessOptions = {}): Destr gatewayPinsAtSandboxList, killStaleProxySpy, lifecycleLockEvents, + listHostGatewayRegistryEntriesSpy, logSpy, mcpRuntimeSelectionSpy, prepareMcpBridgesForAbsentSandboxDestroySpy, @@ -733,6 +741,7 @@ export function createDestroyHarness(options: DestroyHarnessOptions = {}): Destr reconstructRetainedSandboxRecoverySpy, resolveRetainedSandboxRecoverySpy, resolveGatewayRuntimeProviderIdSpy, + retireHostLocalVllmRuntimeSpy, retireRemovedImmutabilityStateRecordSpy, retirePortableLifecycleReceiptSpy, revokeHttpsPinRuntimeAdapterRouteSpy, From 433461fdb23d371d998efe784e3143ecd207d7ab Mon Sep 17 00:00:00 2001 From: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Date: Fri, 11 Sep 2026 06:54:34 -0700 Subject: [PATCH 02/18] fix(vllm): make managed retirement race-safe Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> --- ci/source-architecture-budget.json | 2 +- .../sandbox/destroy-managed-vllm-flow.test.ts | 32 ++++- .../sandbox/destroy-managed-vllm.test.ts | 84 +++++++++--- src/lib/actions/sandbox/destroy-preflight.ts | 32 +++-- src/lib/actions/sandbox/destroy.ts | 8 +- .../local-model-profile/cleanup.test.ts | 92 +++++++++++++ .../inference/local-model-profile/cleanup.ts | 121 +++++++++++++++--- test/helpers/destroy-flow-test-harness.ts | 9 +- 8 files changed, 323 insertions(+), 57 deletions(-) diff --git a/ci/source-architecture-budget.json b/ci/source-architecture-budget.json index 06f31af27b0..71d70f07d42 100644 --- a/ci/source-architecture-budget.json +++ b/ci/source-architecture-budget.json @@ -28,7 +28,7 @@ "src/lib/onboard/gateway-binding.ts": 53, "src/lib/runner.ts": 83, "src/lib/security/redact.ts": 52, - "src/lib/state/mcp-lifecycle-lock.ts": 19, + "src/lib/state/mcp-lifecycle-lock.ts": 18, "src/lib/state/onboard-session.ts": 35, "src/lib/state/registry.ts": 96, "src/lib/state/state-root.ts": 21, diff --git a/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts b/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts index 061cf3d81f1..824920c1286 100644 --- a/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts +++ b/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts @@ -31,10 +31,26 @@ describe("destroySandbox managed vLLM retirement", () => { it("retires the managed vLLM container after the last Local vLLM sandbox is destroyed", async () => { const containerId = "b".repeat(64); const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); - harness.retireHostLocalVllmRuntimeSpy.mockReturnValue({ - status: "removed", - containerId, - removed: [`container:${containerId}`], + const retirementOrder: string[] = []; + harness.withCurrentPortableHostFenceSpy.mockImplementation(async (operation) => { + retirementOrder.push("host-fence-enter"); + try { + return await operation(); + } finally { + retirementOrder.push("host-fence-exit"); + } + }); + harness.listHostGatewayRegistryEntriesSpy.mockImplementation(() => { + retirementOrder.push("inventory"); + return []; + }); + harness.retireHostLocalVllmRuntimeSpy.mockImplementation(() => { + retirementOrder.push("retire"); + return { + status: "removed", + containerId, + removed: [`container:${containerId}`], + }; }); await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); @@ -43,6 +59,14 @@ describe("destroySandbox managed vLLM retirement", () => { expect(harness.removeSandboxSpy.mock.invocationCallOrder[0]).toBeLessThan( harness.retireHostLocalVllmRuntimeSpy.mock.invocationCallOrder[0], ); + expect(retirementOrder).toEqual([ + "host-fence-enter", + "host-fence-enter", + "inventory", + "retire", + "host-fence-exit", + "host-fence-exit", + ]); expect(loggedLines(harness)).toContain( `Removed managed vLLM container 'nemoclaw-vllm' (${containerId.slice(0, 12)})`, ); diff --git a/src/lib/actions/sandbox/destroy-managed-vllm.test.ts b/src/lib/actions/sandbox/destroy-managed-vllm.test.ts index c2f7b9ec74a..32a9751289e 100644 --- a/src/lib/actions/sandbox/destroy-managed-vllm.test.ts +++ b/src/lib/actions/sandbox/destroy-managed-vllm.test.ts @@ -7,6 +7,7 @@ import type { HostLocalVllmRetirementResult } from "../../inference/local-model- import type { HostGatewayRegistryEntry } from "../../state/gateway-registry"; import type { SandboxEntry } from "../../state/registry"; import { + type ManagedVllmDestroyDeps, type ManagedVllmDestroyOutcome, reportManagedVllmDestroyOutcome, retireManagedVllmForDestroyedSandbox, @@ -47,37 +48,49 @@ function makeDeps( ) { const listHostRegistryEntries = vi.fn(() => remaining); const retireRuntime = vi.fn(() => retirement); + const hostLifecycleLockState = { calls: 0 }; + const withHostLifecycleLock: NonNullable = + async (operation: () => Promise | T): Promise => { + hostLifecycleLockState.calls += 1; + return await operation(); + }; return { + hostLifecycleLockState, listHostRegistryEntries, retireRuntime, + withHostLifecycleLock, deps: { listHostRegistryEntries, retireRuntime, resolveHomeDir: () => "/home/user", + withHostLifecycleLock, }, }; } describe("managed vLLM retirement after sandbox destroy", () => { - it("retires the container when the destroyed sandbox was the last Local vLLM consumer", () => { - const { deps, retireRuntime } = makeDeps([registryEntry("beta", "nvidia-prod")]); + it("retires the container when the destroyed sandbox was the last Local vLLM consumer", async () => { + const { deps, hostLifecycleLockState, retireRuntime } = makeDeps([ + registryEntry("beta", "nvidia-prod"), + ]); - expect(retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ + expect(await retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ kind: "retirement", status: "removed", containerId: CONTAINER_ID, removed: [`container:${CONTAINER_ID}`], }); + expect(hostLifecycleLockState.calls).toBe(1); expect(retireRuntime).toHaveBeenCalledWith({ homeDir: "/home/user" }); }); - it("keeps the container while another gateway state root still registers a Local vLLM sandbox", () => { + it("keeps the container while another gateway state root still registers a Local vLLM sandbox", async () => { const { deps, retireRuntime } = makeDeps([ registryEntry("beta", "nvidia-prod"), registryEntry("gamma", "vllm-local", 8091), ]); - expect(retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ + expect(await retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ kind: "kept", reason: "consumers", consumers: 1, @@ -85,13 +98,13 @@ describe("managed vLLM retirement after sandbox destroy", () => { expect(retireRuntime).not.toHaveBeenCalled(); }); - it("keeps the container when the destroy requested --keep-vllm", () => { - const { deps, listHostRegistryEntries, retireRuntime } = makeDeps([]); + it("keeps the container when the destroy requested --keep-vllm", async () => { + const { deps, hostLifecycleLockState, listHostRegistryEntries, retireRuntime } = makeDeps([]); - expect(retireManagedVllmForDestroyedSandbox(sandbox(), { ...deps, keepVllm: true })).toEqual({ - kind: "kept", - reason: "option", - }); + expect( + await retireManagedVllmForDestroyedSandbox(sandbox(), { ...deps, keepVllm: true }), + ).toEqual({ kind: "kept", reason: "option" }); + expect(hostLifecycleLockState.calls).toBe(0); expect(listHostRegistryEntries).not.toHaveBeenCalled(); expect(retireRuntime).not.toHaveBeenCalled(); }); @@ -104,37 +117,56 @@ describe("managed vLLM retirement after sandbox destroy", () => { label: "a runtime-provider host-local inference receipt", entry: sandbox({ hostLocalInferenceReceipt: '{"schemaVersion":2}' }), }, - ])("does not apply to a destroyed sandbox with $label", ({ entry }) => { - const { deps, listHostRegistryEntries, retireRuntime } = makeDeps([]); + ])("does not apply to a destroyed sandbox with $label", async ({ entry }) => { + const { deps, hostLifecycleLockState, listHostRegistryEntries, retireRuntime } = makeDeps([]); - expect(retireManagedVllmForDestroyedSandbox(entry, deps)).toEqual({ kind: "not-applicable" }); + expect(await retireManagedVllmForDestroyedSandbox(entry, deps)).toEqual({ + kind: "not-applicable", + }); + expect(hostLifecycleLockState.calls).toBe(0); expect(listHostRegistryEntries).not.toHaveBeenCalled(); expect(retireRuntime).not.toHaveBeenCalled(); }); - it("preserves the container when a gateway registry cannot be read", () => { + it("preserves the container when a gateway registry cannot be read", async () => { const retireRuntime = vi.fn(); expect( - retireManagedVllmForDestroyedSandbox(sandbox(), { + await retireManagedVllmForDestroyedSandbox(sandbox(), { listHostRegistryEntries: () => { throw new Error("sandboxes.json is not owner-only"); }, resolveHomeDir: () => "/home/user", retireRuntime: retireRuntime as never, + withHostLifecycleLock: async (operation) => await operation(), }), ).toEqual({ kind: "inventory-failed", detail: "sandboxes.json is not owner-only" }); expect(retireRuntime).not.toHaveBeenCalled(); }); - it("passes a preserved runtime result through", () => { + it("preserves the container when the host lifecycle fence cannot be acquired", async () => { + const { deps, listHostRegistryEntries, retireRuntime } = makeDeps([]); + + expect( + await retireManagedVllmForDestroyedSandbox(sandbox(), { + ...deps, + withHostLifecycleLock: async () => { + throw new Error("lock unavailable"); + }, + }), + ).toEqual({ kind: "inventory-failed", detail: "lock unavailable" }); + expect(listHostRegistryEntries).not.toHaveBeenCalled(); + expect(retireRuntime).not.toHaveBeenCalled(); + }); + + it("passes a preserved runtime result through", async () => { const { deps } = makeDeps([], { status: "preserved", reason: "the container does not carry the NemoClaw managed vLLM label", removed: [], }); - expect(retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ + expect(await retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ kind: "retirement", status: "preserved", reason: "the container does not carry the NemoClaw managed vLLM label", @@ -206,4 +238,20 @@ describe("managed vLLM retirement report", () => { expect(inventory.warnings[0]).toContain("registry unreadable"); expect(inventory.warnings[0]).toContain("docker container inspect nemoclaw-vllm"); }); + + it("reports a removed container with retryable private state separately", () => { + const partial = render({ + kind: "retirement", + status: "partial", + containerId: CONTAINER_ID, + reason: "host-local-vllm-runtime.json: permission denied", + remaining: ["host-local-vllm-runtime.json"], + removed: [`container:${CONTAINER_ID}`], + }); + + expect(partial.logs).toEqual([]); + expect(partial.warnings[0]).toContain(`was removed (${CONTAINER_ID.slice(0, 12)})`); + expect(partial.warnings[0]).toContain("private state cleanup is incomplete"); + expect(partial.warnings[0]).toContain("Re-run uninstall"); + }); }); diff --git a/src/lib/actions/sandbox/destroy-preflight.ts b/src/lib/actions/sandbox/destroy-preflight.ts index 3edaaf3b8b3..ff93d55814b 100644 --- a/src/lib/actions/sandbox/destroy-preflight.ts +++ b/src/lib/actions/sandbox/destroy-preflight.ts @@ -26,6 +26,7 @@ import type { releaseOnboardLock, Session, } from "../../state/onboard-session"; +import { withCurrentPortableHostFence } from "../../state/portable-uninstall-retirement"; import type { SandboxEntry } from "../../state/registry"; import * as registry from "../../state/registry"; import { type DestroyRunOpenshell, selectGatewayForSandboxDestroy } from "./destroy-gateway"; @@ -121,6 +122,7 @@ export type ManagedVllmDestroyDeps = { listHostRegistryEntries?: typeof listHostGatewayRegistryEntries; resolveHomeDir?: () => string; retireRuntime?: typeof retireHostLocalVllmRuntime; + withHostLifecycleLock?: typeof withCurrentPortableHostFence; }; /** @@ -129,10 +131,10 @@ export type ManagedVllmDestroyDeps = { * still uses Local vLLM. A sandbox whose runtime provider owns a host-local * inference receipt retires its runtime through that provider instead. */ -export function retireManagedVllmForDestroyedSandbox( +export async function retireManagedVllmForDestroyedSandbox( sandbox: SandboxEntry | null, deps: ManagedVllmDestroyDeps = {}, -): ManagedVllmDestroyOutcome { +): Promise { if ( !sandbox || sandbox.provider !== LOCAL_VLLM_PROVIDER || @@ -142,22 +144,23 @@ export function retireManagedVllmForDestroyedSandbox( } if (deps.keepVllm === true) return { kind: "kept", reason: "option" }; const home = (deps.resolveHomeDir ?? (() => process.env.HOME || os.homedir()))(); - let consumers: number; try { - consumers = (deps.listHostRegistryEntries ?? listHostGatewayRegistryEntries)(home).filter( - ({ entry }) => entry.provider === LOCAL_VLLM_PROVIDER, - ).length; + return await (deps.withHostLifecycleLock ?? withCurrentPortableHostFence)(() => { + const consumers = (deps.listHostRegistryEntries ?? listHostGatewayRegistryEntries)( + home, + ).filter(({ entry }) => entry.provider === LOCAL_VLLM_PROVIDER).length; + if (consumers > 0) return { kind: "kept", reason: "consumers", consumers }; + return { + kind: "retirement", + ...(deps.retireRuntime ?? retireHostLocalVllmRuntime)({ homeDir: home }), + }; + }); } catch (error) { return { kind: "inventory-failed", detail: error instanceof Error ? error.message : String(error), }; } - if (consumers > 0) return { kind: "kept", reason: "consumers", consumers }; - return { - kind: "retirement", - ...(deps.retireRuntime ?? retireHostLocalVllmRuntime)({ homeDir: home }), - }; } /** Report the retirement outcome; a preserved container is a warning because the sandbox is already gone. */ @@ -178,7 +181,7 @@ export function reportManagedVllmDestroyOutcome( return; case "inventory-failed": output.warn( - `Sandbox deletion succeeded, but NemoClaw could not read every gateway sandbox registry to confirm that no sandbox still uses Local vLLM: ${outcome.detail}. The managed vLLM container '${name}' was left in place. ${MANAGED_VLLM_INSPECT_HINT}`, + `Sandbox deletion succeeded, but NemoClaw could not safely confirm across the host that no sandbox still uses Local vLLM: ${outcome.detail}. The managed vLLM container '${name}' was left in place. ${MANAGED_VLLM_INSPECT_HINT}`, ); return; case "retirement": @@ -200,6 +203,11 @@ export function reportManagedVllmDestroyOutcome( output.warn( `Sandbox deletion succeeded, but the managed vLLM container '${name}' was left in place: ${outcome.reason}. ${MANAGED_VLLM_INSPECT_HINT}`, ); + return; + case "partial": + output.warn( + `Sandbox deletion succeeded and the managed vLLM container '${name}' ${outcome.containerId ? `was removed (${outcome.containerId.slice(0, 12)})` : "is absent"}, but its private state cleanup is incomplete: ${outcome.reason}. Remaining state: ${outcome.remaining.join(", ")}. Re-run uninstall to finish the retry-safe cleanup.`, + ); } } diff --git a/src/lib/actions/sandbox/destroy.ts b/src/lib/actions/sandbox/destroy.ts index 13ee0b1126f..e62a36ccd1b 100644 --- a/src/lib/actions/sandbox/destroy.ts +++ b/src/lib/actions/sandbox/destroy.ts @@ -41,7 +41,6 @@ import { SANDBOX_PROVIDER_SUFFIXES, } from "../../onboard/sandbox-provider-cleanup"; import { validateName } from "../../runner"; -import { withMcpLifecycleLock } from "../../state/mcp-lifecycle-lock"; import { enforceRemovedImmutabilityMigrationBoundary, retireRemovedImmutabilityStateRecord, @@ -70,6 +69,7 @@ import { isSameDestroyContainerIdentityProof, observeDestroyContainerIdentity, } from "./destroy-presence"; +import { withSandboxLifecycleLock } from "./lifecycle/lock"; import { prepareSandboxDestroy, reportManagedVllmDestroyOutcome, @@ -600,7 +600,7 @@ export async function destroySandbox( options: string[] | DestroySandboxOptions = {}, ): Promise { try { - return await withMcpLifecycleLock(sandboxName, () => { + return await withSandboxLifecycleLock(sandboxName, () => { const removedImmutabilityMigration = enforceRemovedImmutabilityMigrationBoundary( sandboxName, { allowStateRecord: true }, @@ -1144,7 +1144,9 @@ async function destroySandboxUnlocked( // The registry row is gone, so every remaining Local vLLM row in any // gateway state root is a peer that still needs the host-global container. reportManagedVllmDestroyOutcome( - retireManagedVllmForDestroyedSandbox(sandbox, { keepVllm: normalized.keepVllm }), + await retireManagedVllmForDestroyedSandbox(sandbox, { + keepVllm: normalized.keepVllm, + }), { log: console.log, warn: defaultDestroyWarn }, ); } diff --git a/src/lib/inference/local-model-profile/cleanup.test.ts b/src/lib/inference/local-model-profile/cleanup.test.ts index 85e867be881..4c8247e127a 100644 --- a/src/lib/inference/local-model-profile/cleanup.test.ts +++ b/src/lib/inference/local-model-profile/cleanup.test.ts @@ -92,6 +92,7 @@ describe("managed vLLM retirement after the last Local vLLM sandbox", () => { argv[0] === "container" && argv[2] === HOST_LOCAL_VLLM_CONTAINER_NAME ? inspection : "", ); return { + capture, forceRm, deps: { capture: capture as never, @@ -188,6 +189,40 @@ describe("managed vLLM retirement after the last Local vLLM sandbox", () => { }); }); + it.each([ + { + label: "a host-local runtime receipt", + prepare: (stateDir: string) => + fs.writeFileSync(path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE), "{}\n", { + mode: 0o600, + }), + env: [] as string[], + }, + { + label: "a VLLM_API_KEY environment entry", + prepare: (_stateDir: string) => undefined, + env: [`VLLM_API_KEY=${"a".repeat(64)}`], + }, + ])("preserves a nominally bearerless container that retains $label", ({ prepare, env }) => { + const homeDir = temporaryHome(); + const stateDir = managedVllmStateDir(homeDir); + fs.mkdirSync(stateDir, { mode: 0o700, recursive: true }); + prepare(stateDir); + const { deps, forceRm } = retirementDeps( + ownedContainer( + HOST_LOCAL_VLLM_CONTAINER_NAME, + containerId, + { [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true" }, + env, + ), + ); + + const result = retireHostLocalVllmRuntime({ homeDir, deps }); + + expect(result).toMatchObject({ status: "preserved", removed: [] }); + expect(forceRm).not.toHaveBeenCalled(); + }); + it("keeps the container for full uninstall while a distributed vLLM receipt exists", () => { const homeDir = temporaryHome(); const stateDir = managedVllmStateDir(homeDir); @@ -254,6 +289,63 @@ describe("managed vLLM retirement after the last Local vLLM sandbox", () => { expect(fs.existsSync(path.join(stateDir, "dual-station-vllm-api-key"))).toBe(false); }); + it("reports partial state cleanup after removal and finishes it safely when the container is absent", () => { + const homeDir = temporaryHome(); + const stateDir = managedVllmStateDir(homeDir); + fs.mkdirSync(stateDir, { mode: 0o700, recursive: true }); + const apiKey = "e".repeat(64); + const serving = { + catalogDigest: `sha256:${"1".repeat(64)}`, + presetId: "vllm.dgx-spark-gb10.single.example", + presetDigest: `sha256:${"2".repeat(64)}`, + recipeId: "vllm.dgx-spark-gb10.single.example", + recipeDigest: `sha256:${"3".repeat(64)}`, + } as const; + fs.writeFileSync(path.join(stateDir, "dual-station-vllm-api-key"), `${apiKey}\n`, { + mode: 0o600, + }); + persistHostLocalVllmRuntimeReceipt( + { containerId, authFingerprint: runtimeAuthFingerprint(apiKey), serving }, + stateDir, + ); + const { capture, deps } = retirementDeps( + ownedContainer( + HOST_LOCAL_VLLM_CONTAINER_NAME, + containerId, + { + [HOST_LOCAL_VLLM_MANAGED_LABEL]: "true", + [HOST_LOCAL_VLLM_AUTH_LABEL]: runtimeAuthFingerprint(apiKey), + [HOST_LOCAL_VLLM_CATALOG_LABEL]: serving.catalogDigest, + [HOST_LOCAL_VLLM_PRESET_LABEL]: serving.presetId, + [HOST_LOCAL_VLLM_PRESET_DIGEST_LABEL]: serving.presetDigest, + [HOST_LOCAL_VLLM_RECIPE_LABEL]: serving.recipeId, + [HOST_LOCAL_VLLM_RECIPE_DIGEST_LABEL]: serving.recipeDigest, + }, + [`VLLM_API_KEY=${apiKey}`], + ), + ); + const unlink = vi.fn((filePath: fs.PathLike) => { + if (path.basename(String(filePath)) === HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE) { + throw new Error("permission denied"); + } + fs.unlinkSync(filePath); + }); + + expect(retireHostLocalVllmRuntime({ homeDir, deps: { ...deps, unlink } })).toEqual({ + status: "partial", + containerId, + reason: `${HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE}: permission denied`, + remaining: [HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE], + removed: [`container:${containerId}`], + }); + expect(fs.existsSync(path.join(stateDir, "dual-station-vllm-api-key"))).toBe(false); + expect(fs.existsSync(path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE))).toBe(true); + + capture.mockReturnValue(""); + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ status: "absent" }); + expect(fs.existsSync(path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE))).toBe(false); + }); + it("preserves an authenticated container whose key does not match the persisted state", () => { const homeDir = temporaryHome(); const stateDir = managedVllmStateDir(homeDir); diff --git a/src/lib/inference/local-model-profile/cleanup.ts b/src/lib/inference/local-model-profile/cleanup.ts index bff8eb5d563..3d4b8340e62 100644 --- a/src/lib/inference/local-model-profile/cleanup.ts +++ b/src/lib/inference/local-model-profile/cleanup.ts @@ -89,6 +89,7 @@ interface CleanupDeps { currentUserId: number | null; forceRm: typeof dockerForceRm; run: typeof dockerRun; + unlink: typeof fs.unlinkSync; } export interface LocalModelRuntimeCleanupOptions { @@ -174,8 +175,50 @@ function distributedReceiptPresent(stateDir: string): boolean { ); } -function cleanupHostLocalVllm(stateDir: string, deps: CleanupDeps, removed: string[]): void { +function hostLocalVllmStatePaths(stateDir: string): readonly string[] { + return [ + path.join(stateDir, MANAGED_VLLM_API_KEY_FILE), + path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE), + ]; +} + +function cleanupRetiredHostLocalVllmState( + stateDir: string, + deps: CleanupDeps, +): { ok: true } | { ok: false; reason: string; remaining: string[] } { + const failures: string[] = []; + for (const filePath of hostLocalVllmStatePaths(stateDir)) { + if (!fs.existsSync(filePath)) continue; + try { + deps.unlink(filePath); + } catch (error) { + failures.push( + `${path.basename(filePath)}: ${error instanceof Error ? error.message : String(error)}`, + ); + // The runtime receipt is last and remains durable authority whenever an + // earlier cleanup step fails. A later uninstall can therefore prove and + // finish cleanup after the container is already absent. + break; + } + } + const remaining = hostLocalVllmStatePaths(stateDir) + .filter((filePath) => fs.existsSync(filePath)) + .map((filePath) => path.basename(filePath)); + if (failures.length === 0 && remaining.length === 0) return { ok: true }; + return { + ok: false, + reason: failures.join("; ") || "private state remained after cleanup", + remaining, + }; +} + +function cleanupHostLocalVllm( + stateDir: string, + deps: CleanupDeps, + removed: string[], +): HostLocalVllmRetirementResult { const hasDistributedReceipt = distributedReceiptPresent(stateDir); + const runtimeReceiptPath = path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE); const inspected = inspectOwnedResource( "container", HOST_LOCAL_VLLM_CONTAINER_NAME, @@ -183,7 +226,19 @@ function cleanupHostLocalVllm(stateDir: string, deps: CleanupDeps, removed: stri "true", deps.capture, ); - if (inspected.kind === "absent") return; + if (inspected.kind === "absent") { + if (!fs.existsSync(runtimeReceiptPath)) return { status: "absent" }; + const cleanup = cleanupRetiredHostLocalVllmState(stateDir, deps); + return cleanup.ok + ? { status: "absent" } + : { + status: "partial", + containerId: null, + reason: cleanup.reason, + remaining: cleanup.remaining, + removed, + }; + } if (inspected.kind === "foreign") { throw new Error("host-local vLLM container name is foreign while managed key state remains"); } @@ -192,7 +247,9 @@ function cleanupHostLocalVllm(stateDir: string, deps: CleanupDeps, removed: stri const authFingerprint = labels?.[HOST_LOCAL_VLLM_AUTH_LABEL]; const dualRole = labels?.["com.nvidia.nemoclaw.vllm-role"]; if (dualRole === "head" || dualRole === "worker") { - if (hasDistributedReceipt) return; + if (hasDistributedReceipt) { + return { status: "kept", reason: "distributed vLLM receipt remains" }; + } throw new Error("distributed vLLM container exists without its ownership receipt"); } const apiKey = loadManagedVllmApiKey({ stateDir }); @@ -208,17 +265,23 @@ function cleanupHostLocalVllm(stateDir: string, deps: CleanupDeps, removed: stri ) { throw new Error("host-local vLLM ownership or authentication does not match persisted state"); } - const servingIdentity = validateHostLocalVllmRuntimeReceipt( + validateHostLocalVllmRuntimeReceipt( { containerId: inspected.id, labels: labels ?? {}, authFingerprint }, stateDir, ); const removal = deps.forceRm(inspected.id, { ignoreError: true, suppressOutput: true }); if (removal.status !== 0) throw new Error("host-local vLLM container removal failed"); removed.push(`container:${inspected.id}`); - if (servingIdentity) { - fs.unlinkSync(path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE)); - } - fs.unlinkSync(path.join(stateDir, MANAGED_VLLM_API_KEY_FILE)); + const cleanup = cleanupRetiredHostLocalVllmState(stateDir, deps); + return cleanup.ok + ? { status: "removed", containerId: inspected.id, removed } + : { + status: "partial", + containerId: inspected.id, + reason: cleanup.reason, + remaining: cleanup.remaining, + removed, + }; } function requirePrivateManagedState(paths: ManagedLlamaCppStatePaths, uid: number | null): void { @@ -1363,6 +1426,7 @@ function cleanupManagedLlamaCppRuntimeForSandboxInternal( : options.deps.currentUserId, forceRm: options.deps?.forceRm ?? dockerForceRm, run: options.deps?.run ?? dockerRun, + unlink: options.deps?.unlink ?? fs.unlinkSync, }; const removed: string[] = []; const preserved: string[] = []; @@ -1424,6 +1488,7 @@ function resolveCleanupDeps(overrides: Partial = {}): CleanupDeps { : overrides.currentUserId, forceRm: overrides.forceRm ?? dockerForceRm, run: overrides.run ?? dockerRun, + unlink: overrides.unlink ?? fs.unlinkSync, }; } @@ -1433,9 +1498,17 @@ export type HostLocalVllmRetirementResult = | { status: "absent" } | { status: "kept"; reason: string } | { status: "removed"; containerId: string; removed: string[] } + | { + status: "partial"; + containerId: string | null; + reason: string; + remaining: string[]; + removed: string[]; + } | { status: "preserved"; reason: string; removed: string[] }; function removeUnauthenticatedHostLocalVllm( + stateDir: string, deps: CleanupDeps, removed: string[], ): HostLocalVllmRetirementResult { @@ -1450,7 +1523,7 @@ function removeUnauthenticatedHostLocalVllm( if (inspected.kind === "foreign") { throw new Error("the container does not carry the NemoClaw managed vLLM label"); } - const config = inspected.row.Config as { Labels?: unknown } | undefined; + const config = inspected.row.Config as { Env?: unknown; Labels?: unknown } | undefined; const labels = (config?.Labels ?? {}) as Record; if (Object.keys(labels).some((label) => label.startsWith(DISTRIBUTED_VLLM_LABEL_PREFIX))) { throw new Error("the container belongs to a distributed vLLM runtime"); @@ -1458,6 +1531,13 @@ function removeUnauthenticatedHostLocalVllm( if (labels[HOST_LOCAL_VLLM_AUTH_LABEL] !== undefined) { throw new Error("the container is bearer-protected but its persisted API key is missing"); } + const env = Array.isArray(config?.Env) ? config.Env : []; + if ( + fs.existsSync(path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE)) || + env.some((value) => typeof value === "string" && value.startsWith("VLLM_API_KEY=")) + ) { + throw new Error("the container retains authenticated vLLM ownership evidence"); + } const removal = deps.forceRm(inspected.id, { ignoreError: true, suppressOutput: true }); if (removal.status !== 0) throw new Error("Docker could not remove the container"); removed.push(`container:${inspected.id}`); @@ -1485,14 +1565,13 @@ export function retireHostLocalVllmRuntime( if (deps.run(["info"], { ignoreError: true, suppressOutput: true }).status !== 0) { return { status: "preserved", reason: "Docker is unavailable", removed }; } - if (!fs.existsSync(path.join(vllmStateDir, MANAGED_VLLM_API_KEY_FILE))) { - return removeUnauthenticatedHostLocalVllm(deps, removed); + if ( + !fs.existsSync(path.join(vllmStateDir, MANAGED_VLLM_API_KEY_FILE)) && + !fs.existsSync(path.join(vllmStateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE)) + ) { + return removeUnauthenticatedHostLocalVllm(vllmStateDir, deps, removed); } - cleanupHostLocalVllm(vllmStateDir, deps, removed); - const containerId = removed - .find((entry) => entry.startsWith("container:")) - ?.slice("container:".length); - return containerId ? { status: "removed", containerId, removed } : { status: "absent" }; + return cleanupHostLocalVllm(vllmStateDir, deps, removed); } catch (error) { return { status: "preserved", reason: (error as Error).message, removed }; } @@ -1513,7 +1592,8 @@ export function cleanupLocalModelRuntimes( requirePrivateManagedState(llamaPaths, deps.currentUserId); } const vllmStateRequiresDocker = - fs.existsSync(path.join(vllmStateDir, MANAGED_VLLM_API_KEY_FILE)) && + (fs.existsSync(path.join(vllmStateDir, MANAGED_VLLM_API_KEY_FILE)) || + fs.existsSync(path.join(vllmStateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE))) && !distributedReceiptPresent(vllmStateDir); if (vllmStateRequiresDocker) { const dockerReady = @@ -1521,7 +1601,12 @@ export function cleanupLocalModelRuntimes( if (!dockerReady) { throw new Error("Docker is unavailable while host-local vLLM ownership state remains"); } - cleanupHostLocalVllm(vllmStateDir, deps, removed); + const vllmCleanup = cleanupHostLocalVllm(vllmStateDir, deps, removed); + if (vllmCleanup.status === "partial") { + throw new Error( + `host-local vLLM private state cleanup is incomplete: ${vllmCleanup.reason}`, + ); + } } if (statePathExists(llamaPaths.stateDir)) { cleanupLlamaCpp(homeDir, deps, removed, { diff --git a/test/helpers/destroy-flow-test-harness.ts b/test/helpers/destroy-flow-test-harness.ts index 42ef0eb4e5d..a8fa813f816 100644 --- a/test/helpers/destroy-flow-test-harness.ts +++ b/test/helpers/destroy-flow-test-harness.ts @@ -78,6 +78,7 @@ export type DestroyHarness = { updateSessionSpy: MockInstance; warnSpy: MockInstance; withGatewayRouteMutationLockSpy: MockInstance; + withCurrentPortableHostFenceSpy: MockInstance; withModelRouterPortLifecycleLockSpy: MockInstance; }; @@ -218,6 +219,12 @@ export function createDestroyHarness(options: DestroyHarnessOptions = {}): Destr const logSpy = vi.spyOn(console, "log").mockImplementation(() => undefined); const errorSpy = vi.spyOn(console, "error").mockImplementation(() => undefined); const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => undefined); + const portableHostFence = requireSource( + "../../state/portable-uninstall-retirement.js", + ) as typeof import("../../src/lib/state/portable-uninstall-retirement"); + const withCurrentPortableHostFenceSpy = vi + .spyOn(portableHostFence, "withCurrentPortableHostFence") + .mockImplementation(async (operation) => await operation()); const resolve = requireSource("../../adapters/openshell/resolve.js"); const runtime = requireSource("../../adapters/openshell/runtime.js"); @@ -283,7 +290,6 @@ export function createDestroyHarness(options: DestroyHarnessOptions = {}): Destr } }, ); - const executeSandboxDestroySpy = vi.spyOn(destroyExecution, "executeSandboxDestroy"); if (options.executeSandboxDestroyResult) { executeSandboxDestroySpy.mockResolvedValue(options.executeSandboxDestroyResult); @@ -769,6 +775,7 @@ export function createDestroyHarness(options: DestroyHarnessOptions = {}): Destr updateSessionSpy, warnSpy, withGatewayRouteMutationLockSpy, + withCurrentPortableHostFenceSpy, withModelRouterPortLifecycleLockSpy, }; } From b001a10bf3b5198ae8f771018cbb350d0f664b0a Mon Sep 17 00:00:00 2001 From: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Date: Fri, 11 Sep 2026 07:27:10 -0700 Subject: [PATCH 03/18] test(vllm): satisfy destroy guardrails Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> --- src/lib/actions/sandbox/destroy-flow.test.ts | 34 +++++++++---------- .../sandbox/destroy-managed-vllm.test.ts | 11 +++--- .../local-model-profile/cleanup.test.ts | 10 +++--- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/src/lib/actions/sandbox/destroy-flow.test.ts b/src/lib/actions/sandbox/destroy-flow.test.ts index d139ea9f436..c51add02eb9 100644 --- a/src/lib/actions/sandbox/destroy-flow.test.ts +++ b/src/lib/actions/sandbox/destroy-flow.test.ts @@ -534,29 +534,27 @@ describe("destroySandbox flow", () => { await expect(harness.destroySandbox("alpha", { yes: true })).rejects.toThrow("process.exit(1)"); - expect(harness.lifecycleLockEvents).toEqual([ - "acquired", - "acquired", - "released", - "released", - "process-exit", - ]); + const exitIndex = harness.lifecycleLockEvents.indexOf("process-exit"); + const firstAttemptLockEvents = harness.lifecycleLockEvents.slice(0, exitIndex); + expect(exitIndex).toBeGreaterThan(0); + expect(firstAttemptLockEvents.filter((event) => event === "acquired").length).toBeGreaterThan( + 0, + ); + expect(firstAttemptLockEvents.filter((event) => event === "released")).toHaveLength( + firstAttemptLockEvents.filter((event) => event === "acquired").length, + ); + expect(firstAttemptLockEvents.at(-1)).toBe("released"); expect(harness.events).not.toContain("delete"); expect(harness.removeSandboxSpy).not.toHaveBeenCalled(); expect(harness.retirePortableLifecycleReceiptSpy).not.toHaveBeenCalled(); await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); - expect(harness.lifecycleLockEvents).toEqual([ - "acquired", - "acquired", - "released", - "released", - "process-exit", - "acquired", - "acquired", - "released", - "released", - ]); + const retryLockEvents = harness.lifecycleLockEvents.slice(exitIndex + 1); + expect(retryLockEvents.filter((event) => event === "acquired").length).toBeGreaterThan(0); + expect(retryLockEvents.filter((event) => event === "released")).toHaveLength( + retryLockEvents.filter((event) => event === "acquired").length, + ); + expect(retryLockEvents.at(-1)).toBe("released"); expect(harness.events.filter((event) => event === "delete")).toHaveLength(1); expect(harness.removeSandboxSpy).toHaveBeenCalledOnce(); expect(harness.retirePortableLifecycleReceiptSpy).toHaveBeenCalledOnce(); diff --git a/src/lib/actions/sandbox/destroy-managed-vllm.test.ts b/src/lib/actions/sandbox/destroy-managed-vllm.test.ts index 32a9751289e..cede3edbdf7 100644 --- a/src/lib/actions/sandbox/destroy-managed-vllm.test.ts +++ b/src/lib/actions/sandbox/destroy-managed-vllm.test.ts @@ -49,11 +49,12 @@ function makeDeps( const listHostRegistryEntries = vi.fn(() => remaining); const retireRuntime = vi.fn(() => retirement); const hostLifecycleLockState = { calls: 0 }; - const withHostLifecycleLock: NonNullable = - async (operation: () => Promise | T): Promise => { - hostLifecycleLockState.calls += 1; - return await operation(); - }; + const withHostLifecycleLock: NonNullable< + ManagedVllmDestroyDeps["withHostLifecycleLock"] + > = async (operation: () => Promise | T): Promise => { + hostLifecycleLockState.calls += 1; + return await operation(); + }; return { hostLifecycleLockState, listHostRegistryEntries, diff --git a/src/lib/inference/local-model-profile/cleanup.test.ts b/src/lib/inference/local-model-profile/cleanup.test.ts index 4c8247e127a..be2d5469f0a 100644 --- a/src/lib/inference/local-model-profile/cleanup.test.ts +++ b/src/lib/inference/local-model-profile/cleanup.test.ts @@ -324,12 +324,12 @@ describe("managed vLLM retirement after the last Local vLLM sandbox", () => { [`VLLM_API_KEY=${apiKey}`], ), ); - const unlink = vi.fn((filePath: fs.PathLike) => { - if (path.basename(String(filePath)) === HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE) { + const unlink = vi + .fn<(filePath: fs.PathLike) => void>() + .mockImplementationOnce((filePath) => fs.unlinkSync(filePath)) + .mockImplementationOnce(() => { throw new Error("permission denied"); - } - fs.unlinkSync(filePath); - }); + }); expect(retireHostLocalVllmRuntime({ homeDir, deps: { ...deps, unlink } })).toEqual({ status: "partial", From 35972c6298a4681ac7a889af500cbb12d571c0d4 Mon Sep 17 00:00:00 2001 From: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Date: Fri, 11 Sep 2026 12:08:16 -0700 Subject: [PATCH 04/18] fix(vllm): close route and lifecycle review gaps Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> --- ci/e2e-assertion-budget.json | 14 +- src/lib/inference/local.test.ts | 20 ++ src/lib/inference/local.ts | 12 +- test/e2e/README.md | 7 +- test/e2e/live/spark-express-vllm.test.ts | 319 ++++++++++++++++------- test/e2e/mock-parity.json | 7 + 6 files changed, 272 insertions(+), 107 deletions(-) diff --git a/ci/e2e-assertion-budget.json b/ci/e2e-assertion-budget.json index 1cce311ab2b..46ddae820ab 100644 --- a/ci/e2e-assertion-budget.json +++ b/ci/e2e-assertion-budget.json @@ -15,26 +15,26 @@ "testFileCount": 86, "liveFileCount": 222, "direct": { - "expectCalls": 1796, + "expectCalls": 1791, "matcherAssertions": 1765, "nodeAssertions": 105, - "namedAssertionHelpers": 601, + "namedAssertionHelpers": 599, "failCalls": 8, "throwGuards": 87, "objectFieldAssertions": 243, - "assertionPoints": 2809, + "assertionPoints": 2807, "generatedProbeBlocks": 122, "generatedProbeConditions": 322 }, "unique": { - "expectCalls": 2288, + "expectCalls": 2283, "matcherAssertions": 2252, "nodeAssertions": 126, - "namedAssertionHelpers": 905, + "namedAssertionHelpers": 903, "failCalls": 38, "throwGuards": 633, "objectFieldAssertions": 342, - "assertionPoints": 4296, + "assertionPoints": 4294, "generatedProbeBlocks": 276, "generatedProbeConditions": 943 }, @@ -124,7 +124,7 @@ "test/e2e/live/shields-retirement-upgrade.test.ts": [14,29,14,39,5], "test/e2e/live/skill-agent.test.ts": [8,10,8,10,0], "test/e2e/live/snapshot-commands.test.ts": [26,39,26,41,3], - "test/e2e/live/spark-express-vllm.test.ts": [35,45,47,65,4], + "test/e2e/live/spark-express-vllm.test.ts": [30,43,42,63,4], "test/e2e/live/spark-install.test.ts": [11,13,11,15,6], "test/e2e/live/state-backup-restore.test.ts": [8,17,8,17,1], "test/e2e/live/telegram-injection.test.ts": [19,28,26,67,12], diff --git a/src/lib/inference/local.test.ts b/src/lib/inference/local.test.ts index 29969ac0a83..905ed89b05c 100644 --- a/src/lib/inference/local.test.ts +++ b/src/lib/inference/local.test.ts @@ -638,10 +638,30 @@ describe("local inference helpers", () => { { recordedEndpointUrl: "https://inference.local/v1", reason: "an in-sandbox route" }, { recordedEndpointUrl: "http://host.openshell.internal/v1", reason: "no port" }, { recordedEndpointUrl: "http://host.openshell.internal:80/v1", reason: "a privileged port" }, + { + recordedEndpointUrl: "http://example.com:46145/v1", + reason: "a foreign host", + }, + { + recordedEndpointUrl: "http://user:secret@host.openshell.internal:46145/v1", + reason: "userinfo", + }, + { + recordedEndpointUrl: "http://host.openshell.internal:46145/v1?probe=1", + reason: "a query string", + }, + { + recordedEndpointUrl: "http://host.openshell.internal:46145/v1#probe", + reason: "a fragment", + }, { recordedEndpointUrl: "http://host.openshell.internal:46145/v1/chat", reason: "a non-route path", }, + { + recordedEndpointUrl: "http://host.openshell.internal:46145/v1/", + reason: "a non-canonical route path", + }, { recordedEndpointUrl: "not a url", reason: "a malformed URL" }, ])( "keeps the configured local vLLM port when the recorded route has $reason", diff --git a/src/lib/inference/local.ts b/src/lib/inference/local.ts index da44f66b7df..d259e7ab533 100644 --- a/src/lib/inference/local.ts +++ b/src/lib/inference/local.ts @@ -833,7 +833,17 @@ export function recordedLocalVllmHostPort(endpointUrl: string | null | undefined } catch { return null; } - if (parsed.protocol !== "http:" || !/^\/v1\/?$/.test(parsed.pathname)) return null; + if ( + parsed.protocol !== "http:" || + parsed.hostname !== "host.openshell.internal" || + parsed.username || + parsed.password || + parsed.pathname !== "/v1" || + parsed.search || + parsed.hash + ) { + return null; + } const port = Number(parsed.port); return Number.isSafeInteger(port) && port >= 1024 && port <= 65_535 ? port : null; } diff --git a/test/e2e/README.md b/test/e2e/README.md index 0920da7d1f9..bd7d039f8d3 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -1392,15 +1392,16 @@ npm run test:e2e-phases:check ### DGX Spark Express vLLM -`spark-express-vllm.test.ts` is a physical-host qualification for the second DGX Spark Express inference option, the catalog-backed fixed vLLM profile. +`spark-express-vllm.test.ts` is a physical-host qualification for the second DGX Spark Express inference option, the catalog-backed fixed vLLM profile, and the managed vLLM last-consumer lifecycle. It requires a qualified NVIDIA DGX Spark with Docker, NVIDIA Container Toolkit, OpenShell prerequisites, enough storage for the pinned image and model, and no unrelated `nemoclaw-vllm` container. The target accepts only a local Docker socket and the default Docker context, rejects remote selectors, and treats Docker inspection errors as preflight failures instead of absent resources. The target sources `scripts/install.sh` from the candidate checkout, calls the Express option-selection functions with option 2, and invokes the candidate CLI directly for onboarding. It does not run the hosted installer bootstrap, clone or ref selection, dependency installation, CLI exposure, or the real terminal prompt. Separate installer tests own those earlier boundaries. -The live target refuses to replace a pre-existing sandbox or `nemoclaw-vllm` container. +The live target refuses to replace either of its two sandbox names, a pre-existing `nemoclaw-vllm` container, or a listener on its non-default test port. It preserves the shared Hugging Face cache, records the created sandbox and container identities, and revalidates each identity before cleanup. If onboarding exits nonzero, the target captures the managed-container log tail and sandbox details before cleanup. +After the first onboard, it runs `status`, `doctor`, and `connect --probe-only` without carrying `NEMOCLAW_VLLM_PORT` forward and verifies that they use the route's recorded port. It destroys the final consumer, proves that the exact managed container and listener are absent, then onboards a second sandbox on the released port and proves inference again. The successful second managed-vLLM start is the GPU-resource reacquisition evidence. The standard E2E artifacts retain bounded command output. Run the target from a clean candidate checkout on the Spark host: @@ -1414,7 +1415,7 @@ npx tsx tools/e2e/live-vitest-invocation.mts run \ --test-path test/e2e/live/spark-express-vllm.test.ts ``` -A passing target establishes that the source-checkout option-2 path selects the fixed vLLM preset and recipe, the managed container carries catalog provenance and the catalog-derived serve command, `inference.local` completes a chat request, and unrelated sandbox egress receives an HTTP `403` response. +A passing target establishes that the source-checkout option-2 path selects the fixed vLLM preset and recipe, the managed container carries catalog provenance and the catalog-derived serve command, the recorded custom port drives later health and recovery commands, final-consumer destroy retires the managed container and listener, a subsequent managed-vLLM onboard reacquires the GPU resource, `inference.local` completes a chat request after reacquisition, and unrelated sandbox egress receives an HTTP `403` response. The checker preserves coverage for every file under `test/e2e/live/` and adds workflow-selected integration files from the authoritative shared-job planner. diff --git a/test/e2e/live/spark-express-vllm.test.ts b/test/e2e/live/spark-express-vllm.test.ts index 137d2e0c997..4bcf3e71dc9 100644 --- a/test/e2e/live/spark-express-vllm.test.ts +++ b/test/e2e/live/spark-express-vllm.test.ts @@ -7,7 +7,6 @@ import assert from "node:assert/strict"; import { loadServingCatalog } from "../../../src/lib/inference/serving/catalog-loader.ts"; import { materializeHostLocalVllmSelection } from "../../../src/lib/inference/serving/host-local-vllm-selection.ts"; -import { resolveManagedVllmBridgeHost } from "../../../src/lib/inference/serving/vllm-host-local-network.ts"; import { detectVllmProfile } from "../../../src/lib/inference/vllm.ts"; import { buildVllmServeCommand } from "../../../src/lib/inference/vllm-models.ts"; import { @@ -34,26 +33,22 @@ import { } from "./inference-routing-helpers.ts"; const SANDBOX_NAME = process.env.NEMOCLAW_SANDBOX_NAME ?? "e2e-spark-vllm"; +const REPLACEMENT_SANDBOX_NAME = + SANDBOX_NAME === "e2e-vllm-after" ? "e2e-vllm-next" : "e2e-vllm-after"; const VLLM_CONTAINER = "nemoclaw-vllm"; -const TEST_TIMEOUT_MS = 65 * 60_000; +const CUSTOM_VLLM_PORT = 46_145; +const TEST_TIMEOUT_MS = 120 * 60_000; const ONBOARD_TIMEOUT_MS = 55 * 60_000; interface VllmContainerInspection { readonly Id: string; readonly Config: { readonly Cmd: string[]; - readonly Entrypoint: string[]; - readonly Image: string; readonly Labels: Record; }; readonly HostConfig: { - readonly DeviceRequests: Array<{ Count: number; Capabilities: string[][] }>; - readonly IpcMode: string; - readonly NetworkMode: string; readonly PortBindings: Record>; - readonly ShmSize: number; }; - readonly Mounts: Array<{ Destination: string; RW: boolean; Type: string }>; } function e2eEnv(extra: NodeJS.ProcessEnv = {}): NodeJS.ProcessEnv { @@ -97,28 +92,91 @@ function capturedVllmContainerId(result: CommandExitResult): string | null { return candidate && /^[a-f0-9]{64}$/u.test(candidate.Id) ? candidate.Id : null; } -async function assertVllmContainerAbsent(host: HostCliClient): Promise { - const result = await host.command("docker", ["inspect", VLLM_CONTAINER], { - artifactName: "preflight-spark-express-vllm-container", +async function probeVllmContainer( + host: HostCliClient, + artifactName: string, +): Promise { + return host.command("docker", ["inspect", VLLM_CONTAINER], { + artifactName, env: e2eEnv(), timeoutMs: 30_000, }); - expect( - classifyDockerContainerInspection(result), - `Refusing to replace a pre-existing ${VLLM_CONTAINER} container.\n${resultText(result)}`, - ).toBe("absent"); } -async function assertSandboxAbsent(host: HostCliClient, sandboxName: string): Promise { - const result = await host.command("openshell", ["sandbox", "list", "--names"], { - artifactName: "preflight-spark-express-sandbox-list", +async function probeSandboxNames( + host: HostCliClient, + artifactName: string, +): Promise { + return host.command("openshell", ["sandbox", "list", "--names"], { + artifactName, env: e2eEnv(), timeoutMs: 30_000, }); - expect( - listedSandboxNames(result).has(sandboxName), - `Refusing to replace a pre-existing ${sandboxName} sandbox.\n${resultText(result)}`, - ).toBe(false); +} + +async function probeHostPort( + host: HostCliClient, + port: number, + artifactName: string, +): Promise { + return host.command("ss", ["-H", "-ltn", `sport = :${String(port)}`], { + artifactName, + env: e2eEnv(), + timeoutMs: 30_000, + }); +} + +async function onboardSparkExpressVllm( + host: HostCliClient, + sandboxName: string, + artifactName: string, +): Promise { + return host.command( + "bash", + [ + "--noprofile", + "--norc", + "-c", + [ + "set -euo pipefail", + "source scripts/install.sh >/dev/null", + "exec 9<<<'2'", + "select_spark_express_inference 9", + "exec 9<&-", + '[[ "${_SPARK_EXPRESS_INFERENCE_SELECTION:-}" == "fixed-vllm" ]]', + 'activate_express_install "DGX Spark"', + '[[ "${NEMOCLAW_ENABLE_LOCAL_MODEL_PROFILE:-}" == "1" ]]', + '[[ "${NEMOCLAW_LOCAL_MODEL_RUNTIME:-}" == "vllm" ]]', + '[[ -z "${NEMOCLAW_PROVIDER:-}" ]]', + '[[ -z "${NEMOCLAW_MODEL:-}" ]]', + '[[ -z "${NEMOCLAW_VLLM_MODEL:-}" ]]', + "exec node bin/nemoclaw.js onboard --fresh --non-interactive --yes --yes-i-accept-third-party-software", + ].join("\n"), + ], + { + artifactName, + cwd: REPO_ROOT, + env: e2eEnv({ + NEMOCLAW_SANDBOX_NAME: sandboxName, + NEMOCLAW_VLLM_PORT: String(CUSTOM_VLLM_PORT), + }), + timeoutMs: ONBOARD_TIMEOUT_MS, + }, + ); +} + +async function runCandidateNemoClaw( + host: HostCliClient, + args: string[], + artifactName: string, + timeoutMs = 180_000, +): Promise { + return host.command("node", ["bin/nemoclaw.js", ...args], { + artifactName, + cwd: REPO_ROOT, + env: e2eEnv(), + timeoutMs, + }); } async function inspectSandbox(host: HostCliClient, sandboxName: string, artifactName: string) { @@ -215,20 +273,24 @@ async function removeExactVllmContainer( } test( - "DGX Spark Express option 2 materializes the fixed vLLM profile and routes sandbox inference", + "DGX Spark Express option 2 releases and reacquires managed vLLM on a recorded custom port", { timeout: TEST_TIMEOUT_MS, meta: { e2ePhases: [ "qualify the physical DGX Spark host", - "select Spark Express option 2 and onboard through the local-model profile", + "select Spark Express option 2 and onboard on a custom port", "verify catalog-owned vLLM runtime configuration", - "prove sandbox inference and unrelated egress denial", + "verify status, doctor, connect, and inference use the recorded port", + "destroy the final consumer and verify managed vLLM retirement", + "onboard a replacement after the GPU resource is released", + "prove replacement inference and unrelated egress denial", ], }, }, async ({ artifacts, cleanup, host, progress, runtimeProvider, sandbox }) => { validateSandboxName(SANDBOX_NAME); + validateSandboxName(REPLACEMENT_SANDBOX_NAME); assertLocalDockerEnvironment(process.env); const plan = vllmProfilePlan(); const baseProfile = detectVllmProfile({ platform: "spark" }); @@ -274,17 +336,11 @@ test( timeoutMs: 30_000, }, ); - expect(platform.exitCode, resultText(platform)).toBe(0); expect(platform.stdout.trim()).toBe("DGX Spark"); - const nvidia = await host.command("nvidia-smi", [], { - artifactName: "spark-express-nvidia-smi", - env: e2eEnv(), - timeoutMs: 30_000, - }); - expect(nvidia.exitCode, resultText(nvidia)).toBe(0); let createdContainerId: string | null = null; let createdSandboxId: string | null = null; + let createdReplacementSandboxId: string | null = null; cleanup.add(`remove ${VLLM_CONTAINER}`, () => createdContainerId ? removeExactVllmContainer(host, createdContainerId, "cleanup-spark-express-vllm-container") @@ -295,39 +351,41 @@ test( ? removeExactSandbox(host, sandbox, SANDBOX_NAME, createdSandboxId) : Promise.resolve(), ); - await assertVllmContainerAbsent(host); - await assertSandboxAbsent(host, SANDBOX_NAME); - - progress.phase("select Spark Express option 2 and onboard through the local-model profile"); - const onboard = await host.command( - "bash", - [ - "--noprofile", - "--norc", - "-c", - [ - "set -euo pipefail", - "source scripts/install.sh >/dev/null", - "exec 9<<<'2'", - "select_spark_express_inference 9", - "exec 9<&-", - '[[ "${_SPARK_EXPRESS_INFERENCE_SELECTION:-}" == "fixed-vllm" ]]', - 'activate_express_install "DGX Spark"', - '[[ "${NEMOCLAW_ENABLE_LOCAL_MODEL_PROFILE:-}" == "1" ]]', - '[[ "${NEMOCLAW_LOCAL_MODEL_RUNTIME:-}" == "vllm" ]]', - '[[ -z "${NEMOCLAW_PROVIDER:-}" ]]', - '[[ -z "${NEMOCLAW_MODEL:-}" ]]', - '[[ -z "${NEMOCLAW_VLLM_MODEL:-}" ]]', - "exec node bin/nemoclaw.js onboard --fresh --non-interactive --yes --yes-i-accept-third-party-software", - ].join("\n"), - ], - { - artifactName: "spark-express-vllm-onboard", - cwd: REPO_ROOT, - env: e2eEnv(), - timeoutMs: ONBOARD_TIMEOUT_MS, - }, + cleanup.add(`remove sandbox ${REPLACEMENT_SANDBOX_NAME}`, () => + createdReplacementSandboxId + ? removeExactSandbox(host, sandbox, REPLACEMENT_SANDBOX_NAME, createdReplacementSandboxId) + : Promise.resolve(), + ); + const preflightContainer = await probeVllmContainer( + host, + "preflight-spark-express-vllm-container", + ); + expect( + classifyDockerContainerInspection(preflightContainer), + `Refusing to replace a pre-existing ${VLLM_CONTAINER} container.\n${resultText(preflightContainer)}`, + ).toBe("absent"); + const preflightSandboxes = await probeSandboxNames( + host, + "preflight-spark-express-sandbox-list", + ); + expect( + listedSandboxNames(preflightSandboxes).has(SANDBOX_NAME) || + listedSandboxNames(preflightSandboxes).has(REPLACEMENT_SANDBOX_NAME), + `Refusing to replace a pre-existing test sandbox.\n${resultText(preflightSandboxes)}`, + ).toBe(false); + const preflightPort = await probeHostPort( + host, + CUSTOM_VLLM_PORT, + "preflight-spark-express-vllm-port", ); + expect(preflightPort.exitCode, resultText(preflightPort)).toBe(0); + expect( + preflightPort.stdout.trim(), + `TCP port ${String(CUSTOM_VLLM_PORT)} is already in use`, + ).toBe(""); + + progress.phase("select Spark Express option 2 and onboard on a custom port"); + const onboard = await onboardSparkExpressVllm(host, SANDBOX_NAME, "spark-express-vllm-onboard"); const inspectionResult = await host.command("docker", ["inspect", VLLM_CONTAINER], { artifactName: "spark-express-vllm-container-inspect", @@ -351,12 +409,8 @@ test( createdSandboxId, "onboarding did not create the expected sandbox identity", ).not.toBeNull(); - expect(inspectionResult.exitCode, resultText(inspectionResult)).toBe(0); + expect(createdContainerId, "onboarding did not create managed vLLM").not.toBeNull(); const [inspection] = JSON.parse(inspectionResult.stdout) as VllmContainerInspection[]; - expect(inspection.Id).toBe(createdContainerId); - expect(inspection.Config.Image).toBe(plan.recipe.spec.runtime.image); - expect(inspection.Config.Entrypoint).toEqual(["/bin/bash"]); - expect(inspection.Config.Cmd[0]).toBe("-lc"); expect(inspection.Config.Cmd[1]).toBe(buildVllmServeCommand(materialized.model, e2eEnv())); expect(inspection.Config.Labels).toMatchObject({ "com.nvidia.nemoclaw.managed-vllm": "true", @@ -366,45 +420,119 @@ test( "com.nvidia.nemoclaw.serving-recipe": plan.recipe.metadata.id, "com.nvidia.nemoclaw.serving-recipe-digest": plan.recipeDigest, }); - expect(inspection.HostConfig.NetworkMode).toBe(plan.recipe.spec.runtime.networkMode); - expect(inspection.HostConfig.IpcMode).toBe(plan.recipe.spec.runtime.ipcMode); - expect(inspection.HostConfig.ShmSize).toBe(plan.recipe.spec.runtime.sharedMemoryBytes); const portBindings = inspection.HostConfig.PortBindings["8000/tcp"]; - expect(portBindings).toHaveLength(2); - expect(portBindings).toContainEqual({ HostIp: "127.0.0.1", HostPort: "8000" }); - expect(portBindings).toEqual( - expect.arrayContaining([ - expect.objectContaining({ - HostIp: expect.stringMatching(/^(?!127\.0\.0\.1$)(?!0\.0\.0\.0$).+/u), - HostPort: "8000", - }), - ]), + expect(portBindings).toContainEqual({ + HostIp: "127.0.0.1", + HostPort: String(CUSTOM_VLLM_PORT), + }); + + progress.phase("verify status, doctor, connect, and inference use the recorded port"); + const status = await runCandidateNemoClaw( + host, + [SANDBOX_NAME, "status", "--json"], + "spark-express-vllm-status", ); - const bridgeBinding = portBindings.find(({ HostIp }) => HostIp !== "127.0.0.1"); - expect(bridgeBinding?.HostIp).toBe(resolveManagedVllmBridgeHost()); - expect(inspection.HostConfig.DeviceRequests).toEqual( - expect.arrayContaining([expect.objectContaining({ Count: -1, Capabilities: [["gpu"]] })]), + expect(status.exitCode, resultText(status)).toBe(0); + expect(JSON.parse(status.stdout)).toMatchObject({ + inferenceHealth: { + ok: true, + endpoint: `http://127.0.0.1:${String(CUSTOM_VLLM_PORT)}/v1/models`, + }, + }); + const doctor = await runCandidateNemoClaw( + host, + [SANDBOX_NAME, "doctor", "--json"], + "spark-express-vllm-doctor", ); - expect(inspection.Mounts).toEqual( - expect.arrayContaining([ + expect(doctor.exitCode, resultText(doctor)).toBe(0); + expect(JSON.parse(doctor.stdout)).toMatchObject({ + checks: expect.arrayContaining([ expect.objectContaining({ - Destination: `${plan.recipe.spec.runtime.modelCache.target}/hub`, - RW: false, - Type: "bind", + group: "Inference", + label: "Provider health", + status: "ok", + detail: `http://127.0.0.1:${String(CUSTOM_VLLM_PORT)}/v1/models reachable`, }), ]), + }); + const connect = await runCandidateNemoClaw( + host, + [SANDBOX_NAME, "connect", "--probe-only"], + "spark-express-vllm-connect-probe", + 300_000, + ); + expect(connect.exitCode, resultText(connect)).toBe(0); + + progress.phase("destroy the final consumer and verify managed vLLM retirement"); + const destroy = await runCandidateNemoClaw( + host, + [SANDBOX_NAME, "destroy", "--yes"], + "spark-express-vllm-destroy", + 300_000, + ); + expect(destroy.exitCode, resultText(destroy)).toBe(0); + const retiredSandboxes = await probeSandboxNames(host, "retired-spark-express-sandbox-list"); + expect( + listedSandboxNames(retiredSandboxes).has(SANDBOX_NAME), + `Sandbox ${SANDBOX_NAME} still exists after destroy.\n${resultText(retiredSandboxes)}`, + ).toBe(false); + const retiredContainer = await probeVllmContainer(host, "retired-spark-express-vllm-container"); + expect( + classifyDockerContainerInspection(retiredContainer), + `Managed container ${VLLM_CONTAINER} still exists after destroy.\n${resultText(retiredContainer)}`, + ).toBe("absent"); + const retiredPort = await probeHostPort( + host, + CUSTOM_VLLM_PORT, + "retired-spark-express-vllm-port", + ); + expect(retiredPort.exitCode, resultText(retiredPort)).toBe(0); + expect( + retiredPort.stdout.trim(), + `TCP port ${String(CUSTOM_VLLM_PORT)} is still in use after destroy`, + ).toBe(""); + createdSandboxId = null; + createdContainerId = null; + + progress.phase("onboard a replacement after the GPU resource is released"); + const replacementOnboard = await onboardSparkExpressVllm( + host, + REPLACEMENT_SANDBOX_NAME, + "spark-express-vllm-replacement-onboard", + ); + const replacementInspection = await host.command("docker", ["inspect", VLLM_CONTAINER], { + artifactName: "spark-express-vllm-replacement-container-inspect", + env: e2eEnv(), + timeoutMs: 30_000, + }); + createdContainerId = capturedVllmContainerId(replacementInspection); + const replacementSandboxInspection = await inspectSandbox( + host, + REPLACEMENT_SANDBOX_NAME, + "spark-express-vllm-replacement-sandbox-inspect", ); + createdReplacementSandboxId = + replacementSandboxInspection.kind === "present" ? replacementSandboxInspection.id : null; + await (replacementOnboard.exitCode !== 0 + ? captureOnboardFailureDiagnostics(host, REPLACEMENT_SANDBOX_NAME) + : Promise.resolve()); + expect(replacementOnboard.exitCode, resultText(replacementOnboard)).toBe(0); + expect( + createdReplacementSandboxId, + "replacement onboarding did not create its sandbox", + ).not.toBeNull(); + expect(createdContainerId, "replacement onboarding did not create managed vLLM").not.toBeNull(); - progress.phase("prove sandbox inference and unrelated egress denial"); + progress.phase("prove replacement inference and unrelated egress denial"); await expectOpenAiChatThroughSandbox( sandbox, - SANDBOX_NAME, + REPLACEMENT_SANDBOX_NAME, plan.recipe.spec.model.servedName, [], - "spark-express-inference-local-chat", + "spark-express-replacement-inference-local-chat", ); const denied = await sandbox.execShell( - SANDBOX_NAME, + REPLACEMENT_SANDBOX_NAME, trustedSandboxShellScript( "status=0; code=$(curl -sS -o /dev/null -w '%{http_connect}' --max-time 20 https://example.com/) || status=$?; printf '%s %s' \"$status\" \"$code\"", ), @@ -414,7 +542,6 @@ test( timeoutMs: 30_000, }, ); - expect(denied.exitCode, resultText(denied)).toBe(0); expect(denied.stdout.trim()).toBe("56 403"); }, ); diff --git a/test/e2e/mock-parity.json b/test/e2e/mock-parity.json index 362a9181d79..c1ddafab117 100644 --- a/test/e2e/mock-parity.json +++ b/test/e2e/mock-parity.json @@ -870,6 +870,13 @@ { "live": "test/e2e/live/spark-express-vllm.test.ts", "fast": [ + "src/lib/actions/sandbox/connect-route-repair.test.ts", + "src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts", + "src/lib/actions/sandbox/destroy-managed-vllm.test.ts", + "src/lib/actions/sandbox/doctor-inference.test.ts", + "src/lib/actions/sandbox/status.test.ts", + "src/lib/inference/local-model-profile/cleanup.test.ts", + "src/lib/inference/local.test.ts", "src/lib/inference/serving/catalog.test.ts", "src/lib/inference/serving/host-local-vllm-selection.test.ts", "src/lib/inference/vllm-models.test.ts", From 73e965e62b7a97f06f9d9e473c5b97592904fa09 Mon Sep 17 00:00:00 2001 From: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Date: Fri, 11 Sep 2026 12:13:08 -0700 Subject: [PATCH 05/18] test(vllm): compact route validation cases Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> --- src/lib/inference/local.test.ts | 42 ++++++++++----------------------- 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/src/lib/inference/local.test.ts b/src/lib/inference/local.test.ts index 905ed89b05c..428e6793769 100644 --- a/src/lib/inference/local.test.ts +++ b/src/lib/inference/local.test.ts @@ -634,38 +634,20 @@ describe("local inference helpers", () => { }); it.each([ - { recordedEndpointUrl: null, reason: "no recorded route" }, - { recordedEndpointUrl: "https://inference.local/v1", reason: "an in-sandbox route" }, - { recordedEndpointUrl: "http://host.openshell.internal/v1", reason: "no port" }, - { recordedEndpointUrl: "http://host.openshell.internal:80/v1", reason: "a privileged port" }, - { - recordedEndpointUrl: "http://example.com:46145/v1", - reason: "a foreign host", - }, - { - recordedEndpointUrl: "http://user:secret@host.openshell.internal:46145/v1", - reason: "userinfo", - }, - { - recordedEndpointUrl: "http://host.openshell.internal:46145/v1?probe=1", - reason: "a query string", - }, - { - recordedEndpointUrl: "http://host.openshell.internal:46145/v1#probe", - reason: "a fragment", - }, - { - recordedEndpointUrl: "http://host.openshell.internal:46145/v1/chat", - reason: "a non-route path", - }, - { - recordedEndpointUrl: "http://host.openshell.internal:46145/v1/", - reason: "a non-canonical route path", - }, - { recordedEndpointUrl: "not a url", reason: "a malformed URL" }, + { endpoint: null, reason: "no recorded route" }, + { endpoint: "https://inference.local/v1", reason: "an in-sandbox route" }, + { endpoint: "http://host.openshell.internal/v1", reason: "no port" }, + { endpoint: "http://host.openshell.internal:80/v1", reason: "a privileged port" }, + { endpoint: "http://example.com:46145/v1", reason: "a foreign host" }, + { endpoint: "http://user:secret@host.openshell.internal:46145/v1", reason: "userinfo" }, + { endpoint: "http://host.openshell.internal:46145/v1?probe=1", reason: "a query string" }, + { endpoint: "http://host.openshell.internal:46145/v1#probe", reason: "a fragment" }, + { endpoint: "http://host.openshell.internal:46145/v1/chat", reason: "a non-route path" }, + { endpoint: "http://host.openshell.internal:46145/v1/", reason: "a non-canonical path" }, + { endpoint: "not a url", reason: "a malformed URL" }, ])( "keeps the configured local vLLM port when the recorded route has $reason", - ({ recordedEndpointUrl }) => { + ({ endpoint: recordedEndpointUrl }) => { const result = probeLocalProviderHealth("vllm-local", { recordedEndpointUrl, runCurlProbeImpl: () => ({ From 969b2ef2bfd7e105b3e53f933560eb184e6f941c Mon Sep 17 00:00:00 2001 From: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Date: Fri, 11 Sep 2026 13:25:15 -0700 Subject: [PATCH 06/18] test(vllm): prove connect uses recorded port Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> --- test/e2e/README.md | 2 +- test/e2e/live/spark-express-vllm.test.ts | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/test/e2e/README.md b/test/e2e/README.md index 18b93d13edc..2a4041cea76 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -1405,7 +1405,7 @@ Separate installer tests own those earlier boundaries. The live target refuses to replace either of its two sandbox names, a pre-existing `nemoclaw-vllm` container, or a listener on its non-default test port. It preserves the shared Hugging Face cache, records the created sandbox and container identities, and revalidates each identity before cleanup. If onboarding exits nonzero, the target captures the managed-container log tail and sandbox details before cleanup. -After the first onboard, it runs `status`, `doctor`, and `connect --probe-only` without carrying `NEMOCLAW_VLLM_PORT` forward and verifies that they use the route's recorded port. It destroys the final consumer, proves that the exact managed container and listener are absent, then onboards a second sandbox on the released port and proves inference again. The successful second managed-vLLM start is the GPU-resource reacquisition evidence. +After the first onboard, it runs `status` and `doctor` without carrying `NEMOCLAW_VLLM_PORT` forward and verifies that they use the route's recorded port. It then gives `connect --probe-only` a verified-unused fallback port and proves the recorded healthy route wins. It destroys the final consumer, proves that the exact managed container and listener are absent, then onboards a second sandbox on the released port and proves inference again. The successful second managed-vLLM start is the GPU-resource reacquisition evidence. The standard E2E artifacts retain bounded command output. Run the target from a clean candidate checkout on the Spark host: diff --git a/test/e2e/live/spark-express-vllm.test.ts b/test/e2e/live/spark-express-vllm.test.ts index 4bcf3e71dc9..3d5f1363ab8 100644 --- a/test/e2e/live/spark-express-vllm.test.ts +++ b/test/e2e/live/spark-express-vllm.test.ts @@ -37,6 +37,7 @@ const REPLACEMENT_SANDBOX_NAME = SANDBOX_NAME === "e2e-vllm-after" ? "e2e-vllm-next" : "e2e-vllm-after"; const VLLM_CONTAINER = "nemoclaw-vllm"; const CUSTOM_VLLM_PORT = 46_145; +const FALLBACK_VLLM_PORT = CUSTOM_VLLM_PORT + 1; const TEST_TIMEOUT_MS = 120 * 60_000; const ONBOARD_TIMEOUT_MS = 55 * 60_000; @@ -170,11 +171,12 @@ async function runCandidateNemoClaw( args: string[], artifactName: string, timeoutMs = 180_000, + extraEnv: NodeJS.ProcessEnv = {}, ): Promise { return host.command("node", ["bin/nemoclaw.js", ...args], { artifactName, cwd: REPO_ROOT, - env: e2eEnv(), + env: e2eEnv(extraEnv), timeoutMs, }); } @@ -432,7 +434,6 @@ test( [SANDBOX_NAME, "status", "--json"], "spark-express-vllm-status", ); - expect(status.exitCode, resultText(status)).toBe(0); expect(JSON.parse(status.stdout)).toMatchObject({ inferenceHealth: { ok: true, @@ -444,7 +445,6 @@ test( [SANDBOX_NAME, "doctor", "--json"], "spark-express-vllm-doctor", ); - expect(doctor.exitCode, resultText(doctor)).toBe(0); expect(JSON.parse(doctor.stdout)).toMatchObject({ checks: expect.arrayContaining([ expect.objectContaining({ @@ -455,11 +455,22 @@ test( }), ]), }); + const fallbackPort = await probeHostPort( + host, + FALLBACK_VLLM_PORT, + "preflight-spark-express-vllm-fallback-port", + ); + expect(fallbackPort.exitCode, resultText(fallbackPort)).toBe(0); + expect( + fallbackPort.stdout.trim(), + `Fallback TCP port ${String(FALLBACK_VLLM_PORT)} is already in use`, + ).toBe(""); const connect = await runCandidateNemoClaw( host, [SANDBOX_NAME, "connect", "--probe-only"], "spark-express-vllm-connect-probe", 300_000, + { NEMOCLAW_VLLM_PORT: String(FALLBACK_VLLM_PORT) }, ); expect(connect.exitCode, resultText(connect)).toBe(0); From 707c7ca9a601ec6295b8ed2ff6edde5825e11e5b Mon Sep 17 00:00:00 2001 From: Tinson Lai Date: Sat, 12 Sep 2026 08:17:40 +0000 Subject: [PATCH 07/18] fix(vllm): retire managed vLLM on a destroy retry and finish stale key cleanup Signed-off-by: Tinson Lai --- docs/reference/commands.mdx | 2 +- docs/reference/host-files-and-state.mdx | 3 +- .../sandbox/destroy-managed-vllm-flow.test.ts | 48 +++++ .../sandbox/destroy-managed-vllm.test.ts | 202 ++++++++++++++---- src/lib/actions/sandbox/destroy-preflight.ts | 71 +++++- src/lib/actions/sandbox/destroy.ts | 19 +- .../run-plan-local-model-profile.test.ts | 57 +++++ src/lib/actions/uninstall/run-plan.ts | 20 +- .../local-model-profile/cleanup.test.ts | 33 +-- .../inference/local-model-profile/cleanup.ts | 51 ++++- test/helpers/destroy-flow-test-harness.ts | 22 ++ 11 files changed, 457 insertions(+), 71 deletions(-) diff --git a/docs/reference/commands.mdx b/docs/reference/commands.mdx index fad1f04a8f2..46863fbfa7e 100644 --- a/docs/reference/commands.mdx +++ b/docs/reference/commands.mdx @@ -1995,7 +1995,7 @@ The sandbox must be running for `nemohermes my-assistant gateway-token --quiet` ### `$$nemoclaw destroy` -Stop managed local inference resources, remove the host-side Docker image built during onboard, and delete the sandbox. This removes the sandbox from the registry. For Ollama-backed sandboxes, `destroy` also asks Ollama to unload currently loaded models and clears stale auth proxy state on a best-effort basis. For a Local vLLM sandbox, `destroy` removes the NemoClaw-managed `nemoclaw-vllm` container and frees its GPU memory after the registry removal leaves no sandbox in any gateway state root with provider `vllm-local`. Pass `--keep-vllm` or set `NEMOCLAW_KEEP_VLLM=1` to keep that container running for a later sandbox. `destroy` preserves the container and reports why when another registered sandbox uses Local vLLM, when the container lacks the NemoClaw managed label, when it belongs to a distributed vLLM runtime, when an authenticated container does not match its persisted API key and receipt, when a distributed vLLM receipt owns it, when NemoClaw cannot read every gateway sandbox registry to confirm that no sandbox still uses Local vLLM, or when Docker is unavailable. For Model Router sandboxes, `destroy` keeps the process and recovery identity when another sandbox uses the port or when session, process, or absence checks are inconclusive. It also preserves a replacement onboarding session when the captured session identity changed. If the captured session uses the destroyed sandbox name with another router port, `destroy` clears only the sandbox association and preserves that router's recovery identity. For lock order, same-port peer handling, and cleanup checks, refer to [Set Up Model Router](../inference/hosted-inference/set-up-model-router#router-and-sandbox-lifecycle-locks). +Stop managed local inference resources, remove the host-side Docker image built during onboard, and delete the sandbox. This removes the sandbox from the registry. For Ollama-backed sandboxes, `destroy` also asks Ollama to unload currently loaded models and clears stale auth proxy state on a best-effort basis. For a Local vLLM sandbox, `destroy` removes the NemoClaw-managed `nemoclaw-vllm` container and frees its GPU memory after the registry removal leaves no sandbox in any gateway state root with provider `vllm-local`. Pass `--keep-vllm` or set `NEMOCLAW_KEEP_VLLM=1` to keep that container running for a later sandbox. `destroy` preserves the container and reports why when another registered sandbox uses Local vLLM, when the container lacks the NemoClaw managed label, when the container carries distributed vLLM labels but no ownership receipt, when an authenticated container does not match its persisted API key and receipt, when a distributed vLLM receipt owns it, when NemoClaw cannot read every gateway sandbox registry to confirm that no sandbox still uses Local vLLM, or when Docker is unavailable. `destroy` records the pending retirement in `~/.nemoclaw/host-local-vllm-pending-retirement.json` when it leaves the container in place for any reason other than `--keep-vllm`, a remaining Local vLLM sandbox, or a distributed receipt, or when it stops before the retirement completes. Resolve the reported cause, then rerun `destroy` for the same sandbox name to retire the container. For Model Router sandboxes, `destroy` keeps the process and recovery identity when another sandbox uses the port or when session, process, or absence checks are inconclusive. It also preserves a replacement onboarding session when the captured session identity changed. If the captured session uses the destroyed sandbox name with another router port, `destroy` clears only the sandbox association and preserves that router's recovery identity. For lock order, same-port peer handling, and cleanup checks, refer to [Set Up Model Router](../inference/hosted-inference/set-up-model-router#router-and-sandbox-lifecycle-locks). If `destroy` warns that it could not identify or stop a listener for the deleted sandbox: diff --git a/docs/reference/host-files-and-state.mdx b/docs/reference/host-files-and-state.mdx index f97e0837630..0bccb5ccc2a 100644 --- a/docs/reference/host-files-and-state.mdx +++ b/docs/reference/host-files-and-state.mdx @@ -53,8 +53,9 @@ Unless a row says otherwise, full-uninstall removal behavior in this table appli | `~/.nemoclaw/ollama-backend.json` | Mode-`0600`, versioned descriptor that identifies whether the matching legacy route fronts Ollama or a compatible endpoint. Recovery trusts its kind only when both files contain the same URL. | Yes, but recovery uses neutral remediation until onboarding recreates the descriptor. | | `~/.nemoclaw/ollama-proxy-port` | Host-global port used by the Ollama auth proxy and every Local Ollama sandbox route on the host. A command with a different `NEMOCLAW_OLLAMA_PROXY_PORT` stops before changing the shared proxy. | No while any gateway uses Local Ollama. Full uninstall uses this file to find the proxy and removes it with the other shared proxy state. | | `~/.nemoclaw/ollama/user-local-ownership.json` | Mode-`0600`, credential-free receipt containing a schema version and the fixed `~/.local/bin/ollama` path. Portable OpenClaw recovery requires this receipt before it starts the binary. A successful system Ollama install removes the receipt. | No while a portable OpenClaw sandbox uses the user-local daemon. Deleting it disables automatic daemon restart until you reinstall Ollama through onboarding. | -| `~/.nemoclaw/dual-station-vllm-api-key` | Owner-only host-global bearer API key shared by authenticated NemoClaw-managed vLLM profiles. | No while any managed vLLM runtime uses it. Destroying the last Local vLLM sandbox removes it with the authenticated single-host container unless `--keep-vllm` or `NEMOCLAW_KEEP_VLLM=1` keeps that container. Full uninstall removes it only after matching runtime cleanup succeeds and no sibling gateway remains. | +| `~/.nemoclaw/dual-station-vllm-api-key` | Owner-only host-global bearer API key shared by authenticated NemoClaw-managed vLLM profiles. | No while any managed vLLM runtime uses it. Destroying the last Local vLLM sandbox removes it with the authenticated single-host container, or alone when that container is already absent, unless `--keep-vllm` or `NEMOCLAW_KEEP_VLLM=1` keeps that container. Full uninstall removes it only after matching runtime cleanup succeeds and no sibling gateway remains. | | `~/.nemoclaw/host-local-vllm-runtime.json` | Owner-only, credential-free receipt for a catalog-selected single-host vLLM runtime. It binds the immutable catalog, preset, and recipe digests to the container ID and API-key fingerprint. | No while that runtime exists. Recovery, destroy, and full uninstall fail closed if its profile labels do not match this receipt, and destroy or uninstall removes it only after container cleanup succeeds. | +| `~/.nemoclaw/host-local-vllm-pending-retirement.json` | Owner-only, credential-free record of the Local vLLM sandbox name whose `destroy` removed the last registry row before the managed `nemoclaw-vllm` container was retired. | No while the record exists. A `destroy` retry for that sandbox name reads it, retires the container after the cause is resolved, and removes the record. The record is also removed when the retry finds another Local vLLM sandbox or receives `--keep-vllm`. Full uninstall removes it with the other host-global state. | | `~/.nemoclaw/managed-llama-cpp/api-key` | Owner-only bearer API key mounted read-only into the managed llama.cpp container. It is absent from process arguments, logs, receipts, sandbox registry state, and status output. | No while the managed llama.cpp runtime exists. A retry reuses the same key. Destroy or full uninstall removes it only after runtime cleanup succeeds. | | `~/.nemoclaw/managed-llama-cpp/owner.json` | Owner-only, credential-free binding from one gateway to the sandbox, recipe, catalog digest, preset digest, and recipe digest that owns the managed llama.cpp runtime. | No while the managed llama.cpp runtime exists. Destroy or full uninstall removes it only after cleanup succeeds. | | `~/.nemoclaw/managed-llama-cpp/receipt.json` | Owner-only runtime receipt that binds the Docker authority, container ID, network, image digest, model identity, and lifecycle generation. It contains no API key. | No while the managed llama.cpp runtime exists. Recovery and cleanup use it and preserve it when ownership cannot be proved. | diff --git a/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts b/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts index 3e340dddd95..3dad697561e 100644 --- a/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts +++ b/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts @@ -59,9 +59,20 @@ describe("destroySandbox managed vLLM retirement", () => { await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); expect(harness.retireHostLocalVllmRuntimeSpy).toHaveBeenCalledOnce(); + expect(harness.recordPendingVllmRetirementSpy).toHaveBeenCalledWith( + "alpha", + expect.any(String), + ); + expect(harness.recordPendingVllmRetirementSpy.mock.invocationCallOrder[0]).toBeLessThan( + harness.removeSandboxSpy.mock.invocationCallOrder[0], + ); expect(harness.removeSandboxSpy.mock.invocationCallOrder[0]).toBeLessThan( harness.retireHostLocalVllmRuntimeSpy.mock.invocationCallOrder[0], ); + expect(harness.clearPendingVllmRetirementSpy.mock.invocationCallOrder[0]).toBeGreaterThan( + harness.retireHostLocalVllmRuntimeSpy.mock.invocationCallOrder[0], + ); + expect(harness.pendingVllmRetirement.sandboxName).toBeNull(); expect(retirementOrder).toEqual([ "host-fence-enter", "host-fence-enter", @@ -103,6 +114,7 @@ describe("destroySandbox managed vLLM retirement", () => { ).resolves.toBeUndefined(); expect(harness.retireHostLocalVllmRuntimeSpy).not.toHaveBeenCalled(); + expect(harness.recordPendingVllmRetirementSpy).not.toHaveBeenCalled(); expect(loggedLines(harness)).toContain("preserved (--keep-vllm)"); }); @@ -132,6 +144,7 @@ describe("destroySandbox managed vLLM retirement", () => { expect(harness.removeSandboxSpy).toHaveBeenCalledWith("alpha"); expect(harness.retireHostLocalVllmRuntimeSpy).not.toHaveBeenCalled(); + expect(harness.pendingVllmRetirement.sandboxName).toBe("alpha"); }); it("warns and leaves the managed vLLM container in place when its ownership cannot be proven", async () => { @@ -147,6 +160,41 @@ describe("destroySandbox managed vLLM retirement", () => { expect(harness.warnSpy).toHaveBeenCalledWith( expect.stringContaining("does not carry the NemoClaw managed vLLM label"), ); + expect(harness.clearPendingVllmRetirementSpy).not.toHaveBeenCalled(); + expect(harness.pendingVllmRetirement.sandboxName).toBe("alpha"); expect(loggedLines(harness)).toContain("Sandbox 'alpha' destroyed"); }); + + it("retires the managed vLLM container on a retry whose registry row is already gone", async () => { + const containerId = "c".repeat(64); + const harness = createDestroyHarness({ + pendingVllmRetirement: "alpha", + registryEntryPresent: false, + sandboxPresent: false, + }); + harness.retireHostLocalVllmRuntimeSpy.mockReturnValue({ + status: "removed", + containerId, + removed: [`container:${containerId}`], + }); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.recordPendingVllmRetirementSpy).not.toHaveBeenCalled(); + expect(harness.listHostGatewayRegistryEntriesSpy).toHaveBeenCalledOnce(); + expect(harness.retireHostLocalVllmRuntimeSpy).toHaveBeenCalledOnce(); + expect(harness.pendingVllmRetirement.sandboxName).toBeNull(); + expect(loggedLines(harness)).toContain( + `Removed managed vLLM container 'nemoclaw-vllm' (${containerId.slice(0, 12)})`, + ); + }); + + it("does not touch the managed vLLM container on a retry without a pending retirement", async () => { + const harness = createDestroyHarness({ registryEntryPresent: false, sandboxPresent: false }); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.listHostGatewayRegistryEntriesSpy).not.toHaveBeenCalled(); + expect(harness.retireHostLocalVllmRuntimeSpy).not.toHaveBeenCalled(); + }); }); diff --git a/src/lib/actions/sandbox/destroy-managed-vllm.test.ts b/src/lib/actions/sandbox/destroy-managed-vllm.test.ts index cede3edbdf7..cda365f8a1b 100644 --- a/src/lib/actions/sandbox/destroy-managed-vllm.test.ts +++ b/src/lib/actions/sandbox/destroy-managed-vllm.test.ts @@ -1,19 +1,35 @@ // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -import { describe, expect, it, vi } from "vitest"; +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; -import type { HostLocalVllmRetirementResult } from "../../inference/local-model-profile/cleanup"; +import { afterEach, describe, expect, it, vi } from "vitest"; + +import { + clearPendingHostLocalVllmRetirement, + HOST_LOCAL_VLLM_PENDING_RETIREMENT_FILE, + type HostLocalVllmRetirementResult, + readPendingHostLocalVllmRetirement, + recordPendingHostLocalVllmRetirement, +} from "../../inference/local-model-profile/cleanup"; import type { HostGatewayRegistryEntry } from "../../state/gateway-registry"; import type { SandboxEntry } from "../../state/registry"; import { type ManagedVllmDestroyDeps, type ManagedVllmDestroyOutcome, + recordManagedVllmRetirementPending, reportManagedVllmDestroyOutcome, retireManagedVllmForDestroyedSandbox, } from "./destroy-preflight"; const CONTAINER_ID = "a".repeat(64); +const REMOVED: HostLocalVllmRetirementResult = { + status: "removed", + containerId: CONTAINER_ID, + removed: [`container:${CONTAINER_ID}`], +}; function sandbox(overrides: Partial = {}): SandboxEntry { return { @@ -40,14 +56,12 @@ function registryEntry( function makeDeps( remaining: HostGatewayRegistryEntry[], - retirement: HostLocalVllmRetirementResult = { - status: "removed", - containerId: CONTAINER_ID, - removed: [`container:${CONTAINER_ID}`], - }, + retirement: HostLocalVllmRetirementResult = REMOVED, + pending: string | null = null, ) { const listHostRegistryEntries = vi.fn(() => remaining); const retireRuntime = vi.fn(() => retirement); + const clearPendingRetirement = vi.fn(); const hostLifecycleLockState = { calls: 0 }; const withHostLifecycleLock: NonNullable< ManagedVllmDestroyDeps["withHostLifecycleLock"] @@ -56,12 +70,15 @@ function makeDeps( return await operation(); }; return { + clearPendingRetirement, hostLifecycleLockState, listHostRegistryEntries, retireRuntime, withHostLifecycleLock, deps: { + clearPendingRetirement, listHostRegistryEntries, + readPendingRetirement: () => pending, retireRuntime, resolveHomeDir: () => "/home/user", withHostLifecycleLock, @@ -71,39 +88,39 @@ function makeDeps( describe("managed vLLM retirement after sandbox destroy", () => { it("retires the container when the destroyed sandbox was the last Local vLLM consumer", async () => { - const { deps, hostLifecycleLockState, retireRuntime } = makeDeps([ + const { clearPendingRetirement, deps, hostLifecycleLockState, retireRuntime } = makeDeps([ registryEntry("beta", "nvidia-prod"), ]); - expect(await retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ + expect(await retireManagedVllmForDestroyedSandbox("alpha", sandbox(), deps)).toEqual({ kind: "retirement", - status: "removed", - containerId: CONTAINER_ID, - removed: [`container:${CONTAINER_ID}`], + ...REMOVED, }); expect(hostLifecycleLockState.calls).toBe(1); expect(retireRuntime).toHaveBeenCalledWith({ homeDir: "/home/user" }); + expect(clearPendingRetirement).toHaveBeenCalledWith("/home/user"); }); it("keeps the container while another gateway state root still registers a Local vLLM sandbox", async () => { - const { deps, retireRuntime } = makeDeps([ + const { clearPendingRetirement, deps, retireRuntime } = makeDeps([ registryEntry("beta", "nvidia-prod"), registryEntry("gamma", "vllm-local", 8091), ]); - expect(await retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ + expect(await retireManagedVllmForDestroyedSandbox("alpha", sandbox(), deps)).toEqual({ kind: "kept", reason: "consumers", consumers: 1, }); expect(retireRuntime).not.toHaveBeenCalled(); + expect(clearPendingRetirement).toHaveBeenCalledWith("/home/user"); }); it("keeps the container when the destroy requested --keep-vllm", async () => { const { deps, hostLifecycleLockState, listHostRegistryEntries, retireRuntime } = makeDeps([]); expect( - await retireManagedVllmForDestroyedSandbox(sandbox(), { ...deps, keepVllm: true }), + await retireManagedVllmForDestroyedSandbox("alpha", sandbox(), { ...deps, keepVllm: true }), ).toEqual({ kind: "kept", reason: "option" }); expect(hostLifecycleLockState.calls).toBe(0); expect(listHostRegistryEntries).not.toHaveBeenCalled(); @@ -111,29 +128,54 @@ describe("managed vLLM retirement after sandbox destroy", () => { }); it.each([ - { label: "no registry row", entry: null }, - { label: "a hosted provider", entry: sandbox({ provider: "nvidia-prod" }) }, - { label: "Local Ollama", entry: sandbox({ provider: "ollama-local" }) }, + { label: "no registry row and no pending retirement", entry: null, pending: null }, + { label: "a pending retirement for another sandbox", entry: null, pending: "beta" }, + { label: "a hosted provider", entry: sandbox({ provider: "nvidia-prod" }), pending: null }, + { label: "Local Ollama", entry: sandbox({ provider: "ollama-local" }), pending: null }, { label: "a runtime-provider host-local inference receipt", entry: sandbox({ hostLocalInferenceReceipt: '{"schemaVersion":2}' }), + pending: null, }, - ])("does not apply to a destroyed sandbox with $label", async ({ entry }) => { - const { deps, hostLifecycleLockState, listHostRegistryEntries, retireRuntime } = makeDeps([]); + ])("does not apply to a destroyed sandbox with $label", async ({ entry, pending }) => { + const { clearPendingRetirement, deps, hostLifecycleLockState, retireRuntime } = makeDeps( + [], + REMOVED, + pending, + ); - expect(await retireManagedVllmForDestroyedSandbox(entry, deps)).toEqual({ + expect(await retireManagedVllmForDestroyedSandbox("alpha", entry, deps)).toEqual({ kind: "not-applicable", }); expect(hostLifecycleLockState.calls).toBe(0); - expect(listHostRegistryEntries).not.toHaveBeenCalled(); + expect(deps.listHostRegistryEntries).not.toHaveBeenCalled(); expect(retireRuntime).not.toHaveBeenCalled(); + expect(clearPendingRetirement).not.toHaveBeenCalled(); + }); + + it("retires the container on a retry whose registry row is gone but whose retirement is pending", async () => { + const { clearPendingRetirement, deps, hostLifecycleLockState, retireRuntime } = makeDeps( + [], + REMOVED, + "alpha", + ); + + expect(await retireManagedVllmForDestroyedSandbox("alpha", null, deps)).toEqual({ + kind: "retirement", + ...REMOVED, + }); + expect(hostLifecycleLockState.calls).toBe(1); + expect(retireRuntime).toHaveBeenCalledOnce(); + expect(clearPendingRetirement).toHaveBeenCalledWith("/home/user"); }); it("preserves the container when a gateway registry cannot be read", async () => { const retireRuntime = vi.fn(); + const clearPendingRetirement = vi.fn(); expect( - await retireManagedVllmForDestroyedSandbox(sandbox(), { + await retireManagedVllmForDestroyedSandbox("alpha", sandbox(), { + clearPendingRetirement, listHostRegistryEntries: () => { throw new Error("sandboxes.json is not owner-only"); }, @@ -143,13 +185,14 @@ describe("managed vLLM retirement after sandbox destroy", () => { }), ).toEqual({ kind: "inventory-failed", detail: "sandboxes.json is not owner-only" }); expect(retireRuntime).not.toHaveBeenCalled(); + expect(clearPendingRetirement).not.toHaveBeenCalled(); }); it("preserves the container when the host lifecycle fence cannot be acquired", async () => { const { deps, listHostRegistryEntries, retireRuntime } = makeDeps([]); expect( - await retireManagedVllmForDestroyedSandbox(sandbox(), { + await retireManagedVllmForDestroyedSandbox("alpha", sandbox(), { ...deps, withHostLifecycleLock: async () => { throw new Error("lock unavailable"); @@ -160,20 +203,107 @@ describe("managed vLLM retirement after sandbox destroy", () => { expect(retireRuntime).not.toHaveBeenCalled(); }); - it("passes a preserved runtime result through", async () => { - const { deps } = makeDeps([], { - status: "preserved", - reason: "the container does not carry the NemoClaw managed vLLM label", - removed: [], - }); + it.each<{ label: string; retirement: HostLocalVllmRetirementResult }>([ + { + label: "preserved", + retirement: { + status: "preserved", + reason: "the container does not carry the NemoClaw managed vLLM label", + removed: [], + }, + }, + { + label: "partial", + retirement: { + status: "partial", + containerId: CONTAINER_ID, + reason: "host-local-vllm-runtime.json: permission denied", + remaining: ["host-local-vllm-runtime.json"], + removed: [`container:${CONTAINER_ID}`], + }, + }, + ])( + "passes a $label runtime result through and keeps the retirement pending", + async ({ retirement }) => { + const { clearPendingRetirement, deps } = makeDeps([], retirement); - expect(await retireManagedVllmForDestroyedSandbox(sandbox(), deps)).toEqual({ - kind: "retirement", - status: "preserved", - reason: "the container does not carry the NemoClaw managed vLLM label", - removed: [], - }); + expect(await retireManagedVllmForDestroyedSandbox("alpha", sandbox(), deps)).toEqual({ + kind: "retirement", + ...retirement, + }); + expect(clearPendingRetirement).not.toHaveBeenCalled(); + }, + ); +}); + +describe("pending managed vLLM retirement record", () => { + const temporaryHomes: string[] = []; + + afterEach(() => { + for (const home of temporaryHomes.splice(0)) fs.rmSync(home, { force: true, recursive: true }); + }); + + function temporaryHome(): string { + const home = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-pending-vllm-"))); + temporaryHomes.push(home); + return home; + } + + it("records the destroyed Local vLLM sandbox before its registry row is removed", () => { + const recordPendingRetirement = vi.fn(); + const deps = { recordPendingRetirement, resolveHomeDir: () => "/home/user" }; + + expect(recordManagedVllmRetirementPending(sandbox(), deps)).toBe(true); + expect(recordPendingRetirement).toHaveBeenCalledWith("alpha", "/home/user"); }); + + it.each([ + { label: "--keep-vllm", entry: sandbox(), keepVllm: true }, + { label: "no registry row", entry: null, keepVllm: false }, + { label: "a hosted provider", entry: sandbox({ provider: "nvidia-prod" }), keepVllm: false }, + { + label: "a runtime-provider host-local inference receipt", + entry: sandbox({ hostLocalInferenceReceipt: '{"schemaVersion":2}' }), + keepVllm: false, + }, + ])("records nothing for $label", ({ entry, keepVllm }) => { + const recordPendingRetirement = vi.fn(); + + expect(recordManagedVllmRetirementPending(entry, { keepVllm, recordPendingRetirement })).toBe( + false, + ); + expect(recordPendingRetirement).not.toHaveBeenCalled(); + }); + + it("round-trips the sandbox name through an owner-only file and clears it", () => { + const home = temporaryHome(); + const filePath = path.join(home, ".nemoclaw", HOST_LOCAL_VLLM_PENDING_RETIREMENT_FILE); + + expect(readPendingHostLocalVllmRetirement(home)).toBeNull(); + recordPendingHostLocalVllmRetirement("alpha", home); + expect(fs.statSync(filePath).mode & 0o777).toBe(0o600); + expect(readPendingHostLocalVllmRetirement(home)).toBe("alpha"); + recordPendingHostLocalVllmRetirement("beta", home); + expect(readPendingHostLocalVllmRetirement(home)).toBe("beta"); + clearPendingHostLocalVllmRetirement(home); + expect(fs.existsSync(filePath)).toBe(false); + expect(readPendingHostLocalVllmRetirement(home)).toBeNull(); + expect(() => clearPendingHostLocalVllmRetirement(home)).not.toThrow(); + }); + + it.each(["", "null", "{}", '{"sandboxName":""}', '{"sandboxName":7}', "not json"])( + "treats the record %j as no pending retirement", + (contents) => { + const home = temporaryHome(); + fs.mkdirSync(path.join(home, ".nemoclaw"), { mode: 0o700, recursive: true }); + fs.writeFileSync( + path.join(home, ".nemoclaw", HOST_LOCAL_VLLM_PENDING_RETIREMENT_FILE), + contents, + ); + + expect(readPendingHostLocalVllmRetirement(home)).toBeNull(); + }, + ); }); describe("managed vLLM retirement report", () => { diff --git a/src/lib/actions/sandbox/destroy-preflight.ts b/src/lib/actions/sandbox/destroy-preflight.ts index ff93d55814b..36ccd510c98 100644 --- a/src/lib/actions/sandbox/destroy-preflight.ts +++ b/src/lib/actions/sandbox/destroy-preflight.ts @@ -8,8 +8,11 @@ import type { OpenShellRuntimeSelection } from "../../adapters/openshell/runtime import { OPENSHELL_PROBE_TIMEOUT_MS } from "../../adapters/openshell/timeouts"; import { withModelRouterPortLifecycleLock } from "../../inference/gateway-route-mutation-lock"; import { + clearPendingHostLocalVllmRetirement, HOST_LOCAL_VLLM_CONTAINER_NAME, type HostLocalVllmRetirementResult, + readPendingHostLocalVllmRetirement, + recordPendingHostLocalVllmRetirement, retireHostLocalVllmRuntime, } from "../../inference/local-model-profile/cleanup"; import { DEFAULT_MODEL_ROUTER_PORT, isRoutedInferenceProvider } from "../../onboard/model-router"; @@ -108,7 +111,7 @@ export function stopSandboxInferenceResources( } const LOCAL_VLLM_PROVIDER = "vllm-local"; -const MANAGED_VLLM_INSPECT_HINT = `Inspect it with 'docker container inspect ${HOST_LOCAL_VLLM_CONTAINER_NAME}' before you stop it.`; +const MANAGED_VLLM_INSPECT_HINT = `Inspect it with 'docker container inspect ${HOST_LOCAL_VLLM_CONTAINER_NAME}' before you stop it, or resolve the cause and rerun this destroy to retire it.`; export type ManagedVllmDestroyOutcome = | { kind: "not-applicable" } @@ -119,31 +122,85 @@ export type ManagedVllmDestroyOutcome = export type ManagedVllmDestroyDeps = { keepVllm?: boolean; + clearPendingRetirement?: typeof clearPendingHostLocalVllmRetirement; listHostRegistryEntries?: typeof listHostGatewayRegistryEntries; + readPendingRetirement?: typeof readPendingHostLocalVllmRetirement; + recordPendingRetirement?: typeof recordPendingHostLocalVllmRetirement; resolveHomeDir?: () => string; retireRuntime?: typeof retireHostLocalVllmRuntime; withHostLifecycleLock?: typeof withCurrentPortableHostFence; }; +function resolveDestroyHomeDir(deps: ManagedVllmDestroyDeps): string { + return (deps.resolveHomeDir ?? (() => process.env.HOME || os.homedir()))(); +} + +/** A sandbox whose runtime provider owns a host-local inference receipt retires its runtime through that provider. */ +function consumesManagedVllm(sandbox: SandboxEntry | null): sandbox is SandboxEntry { + return ( + sandbox !== null && + sandbox.provider === LOCAL_VLLM_PROVIDER && + typeof sandbox.hostLocalInferenceReceipt !== "string" + ); +} + +/** + * Record the pending retirement before the registry row is removed. The row is + * the only proof that the sandbox used the container, so a destroy retry after + * an interrupted or preserved retirement needs this record to retire it. + */ +export function recordManagedVllmRetirementPending( + sandbox: SandboxEntry | null, + deps: ManagedVllmDestroyDeps = {}, +): boolean { + if (deps.keepVllm === true || !consumesManagedVllm(sandbox)) return false; + (deps.recordPendingRetirement ?? recordPendingHostLocalVllmRetirement)( + sandbox.name, + resolveDestroyHomeDir(deps), + ); + return true; +} + +/** A settled outcome leaves no retirement for a retry to finish. */ +function managedVllmRetirementSettled(outcome: ManagedVllmDestroyOutcome): boolean { + return ( + outcome.kind === "kept" || + (outcome.kind === "retirement" && + outcome.status !== "preserved" && + outcome.status !== "partial") + ); +} + /** * Retire the host-global managed vLLM container after the destroyed sandbox's * registry row is gone and no registered sandbox in any gateway state root - * still uses Local vLLM. A sandbox whose runtime provider owns a host-local - * inference receipt retires its runtime through that provider instead. + * still uses Local vLLM. A retry whose row is already gone owns the retirement + * only through the pending record for the same sandbox name. */ export async function retireManagedVllmForDestroyedSandbox( + sandboxName: string, sandbox: SandboxEntry | null, deps: ManagedVllmDestroyDeps = {}, ): Promise { + const home = resolveDestroyHomeDir(deps); if ( - !sandbox || - sandbox.provider !== LOCAL_VLLM_PROVIDER || - typeof sandbox.hostLocalInferenceReceipt === "string" + !consumesManagedVllm(sandbox) && + (deps.readPendingRetirement ?? readPendingHostLocalVllmRetirement)(home) !== sandboxName ) { return { kind: "not-applicable" }; } + const outcome = await decideManagedVllmRetirement(home, deps); + if (managedVllmRetirementSettled(outcome)) { + (deps.clearPendingRetirement ?? clearPendingHostLocalVllmRetirement)(home); + } + return outcome; +} + +async function decideManagedVllmRetirement( + home: string, + deps: ManagedVllmDestroyDeps, +): Promise { if (deps.keepVllm === true) return { kind: "kept", reason: "option" }; - const home = (deps.resolveHomeDir ?? (() => process.env.HOME || os.homedir()))(); try { return await (deps.withHostLifecycleLock ?? withCurrentPortableHostFence)(() => { const consumers = (deps.listHostRegistryEntries ?? listHostGatewayRegistryEntries)( diff --git a/src/lib/actions/sandbox/destroy.ts b/src/lib/actions/sandbox/destroy.ts index 46c49226923..9a7a2447dbb 100644 --- a/src/lib/actions/sandbox/destroy.ts +++ b/src/lib/actions/sandbox/destroy.ts @@ -72,6 +72,7 @@ import { import { withSandboxLifecycleLock } from "./lifecycle/lock"; import { prepareSandboxDestroy, + recordManagedVllmRetirementPending, reportManagedVllmDestroyOutcome, resolveSandboxDestroyGatewayName, resolveSandboxDestroyRuntimeSelection, @@ -1058,6 +1059,15 @@ async function destroySandboxUnlocked( if (deleteSucceededOrAlreadyGone && retireRemovedImmutabilityState) { retireRemovedImmutabilityStateRecord(sandboxName, "sandbox-destroyed"); } + if (deleteSucceededOrAlreadyGone) { + try { + recordManagedVllmRetirementPending(sandbox, { keepVllm: normalized.keepVllm }); + } catch (error) { + defaultDestroyWarn( + `Could not record the pending managed vLLM retirement for '${sandboxName}': ${redactDestroyError(error)}. A destroy retry cannot retire the container if this retirement does not complete.`, + ); + } + } const removalOutcome = removeSandboxRegistryEntryOutcome(sandboxName); const removed = removalOutcome.removed; // A retry after successful registry removal still owns final gateway cleanup. @@ -1139,10 +1149,13 @@ async function destroySandboxUnlocked( `that still owns the matching port and model-router command line.`, ); } - // The registry row is gone, so every remaining Local vLLM row in any - // gateway state root is a peer that still needs the host-global container. + } + // The registry row is gone, so every remaining Local vLLM row in any gateway + // state root is a peer that still needs the host-global container. A retry + // that finds no row owns the retirement only through its pending record. + if (deleteSucceededOrAlreadyGone && (removed || (!sandbox && registryEntryAbsent))) { reportManagedVllmDestroyOutcome( - await retireManagedVllmForDestroyedSandbox(sandbox, { + await retireManagedVllmForDestroyedSandbox(sandboxName, sandbox, { keepVllm: normalized.keepVllm, }), { log: console.log, warn: defaultDestroyWarn }, diff --git a/src/lib/actions/uninstall/run-plan-local-model-profile.test.ts b/src/lib/actions/uninstall/run-plan-local-model-profile.test.ts index 1b6977f566e..285e3430bdb 100644 --- a/src/lib/actions/uninstall/run-plan-local-model-profile.test.ts +++ b/src/lib/actions/uninstall/run-plan-local-model-profile.test.ts @@ -705,4 +705,61 @@ describe("uninstall local model profile cleanup", () => { expect(errors.join("\n")).toContain("Host-local model runtime cleanup did not complete"); expect(runDocker.mock.calls.some(([args]) => args[0] === "rm")).toBe(false); }); + + it("removes an orphaned bearerless vLLM container before managed llama.cpp cleanup when no vLLM state remains", async () => { + const containerId = "d".repeat(64); + const runDocker = dockerResults( + new Map([[JSON.stringify(ORPHANED_VLLM_INSPECT_ARGS), ok(`${containerId} true\n`)]]), + ); + const runLocalModelRuntimeCleanup = vi.fn(() => ok()); + + const result = await runUninstallPlan( + { assumeYes: true, deleteModels: false, keepOpenShell: true }, + { + commandExists: (command) => command === "openshell" || command === "docker", + env: { HOME: "/tmp/nemoclaw-uninstall-llama-and-bearerless-vllm" } as NodeJS.ProcessEnv, + existsSync: (target) => String(target).endsWith("/.nemoclaw/managed-llama-cpp"), + isTty: false, + log: () => {}, + run: vi.fn(okWithKnownGatewayList), + runDocker, + runLocalModelRuntimeCleanup, + }, + ); + + expect(result.exitCode).toBe(0); + expect(runDocker).toHaveBeenCalledWith( + ["rm", "-f", containerId], + expect.objectContaining({ timeout: 10_000 }), + ); + expect(runLocalModelRuntimeCleanup).toHaveBeenCalledOnce(); + expect(runDocker.mock.invocationCallOrder[0]).toBeLessThan( + runLocalModelRuntimeCleanup.mock.invocationCallOrder[0], + ); + }); + + it("routes a host-local vLLM runtime receipt through validated cleanup instead of label-only removal", async () => { + const runDocker = dockerResults( + new Map([[JSON.stringify(ORPHANED_VLLM_INSPECT_ARGS), ok(`${"e".repeat(64)} true\n`)]]), + ); + const runLocalModelRuntimeCleanup = vi.fn(() => ok()); + + const result = await runUninstallPlan( + { assumeYes: true, deleteModels: false, keepOpenShell: true }, + { + commandExists: (command) => command === "openshell" || command === "docker", + env: { HOME: "/tmp/nemoclaw-uninstall-vllm-receipt-only" } as NodeJS.ProcessEnv, + existsSync: (target) => String(target).endsWith("/.nemoclaw/host-local-vllm-runtime.json"), + isTty: false, + log: () => {}, + run: vi.fn(okWithKnownGatewayList), + runDocker, + runLocalModelRuntimeCleanup, + }, + ); + + expect(result.exitCode).toBe(0); + expect(runLocalModelRuntimeCleanup).toHaveBeenCalledOnce(); + expect(runDocker.mock.calls.some(([args]) => args[0] === "rm")).toBe(false); + }); }); diff --git a/src/lib/actions/uninstall/run-plan.ts b/src/lib/actions/uninstall/run-plan.ts index ebf85c176e0..1d0c6212969 100644 --- a/src/lib/actions/uninstall/run-plan.ts +++ b/src/lib/actions/uninstall/run-plan.ts @@ -32,6 +32,7 @@ import { cleanupManagedLlamaCppRuntimeForSandbox, HOST_LOCAL_VLLM_CONTAINER_NAME, HOST_LOCAL_VLLM_MANAGED_LABEL, + HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE, type ManagedLlamaCppCleanupTarget, resolveManagedLlamaCppCleanupTarget, } from "../../inference/local-model-profile/cleanup"; @@ -2172,17 +2173,24 @@ function removeManagedDistributedVllmRuntime( function removeHostLocalModelRuntimes(paths: UninstallPaths, runtime: UninstallRuntime): boolean { const sharedRoot = path.dirname(paths.managedSwapMarkerPath); const hasLlamaState = runtime.existsSync(path.join(sharedRoot, "managed-llama-cpp")); - const hasManagedKey = runtime.existsSync(path.join(sharedRoot, MANAGED_VLLM_API_KEY_FILE)); + const hasHostLocalVllmState = [ + MANAGED_VLLM_API_KEY_FILE, + HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE, + ].some((name) => runtime.existsSync(path.join(sharedRoot, name))); const hasDistributedReceipt = [ MANAGED_CLUSTER_VLLM_RUNTIME_RECEIPT_FILE, DUAL_STATION_VLLM_RUNTIME_RECEIPT_FILE, ].some((name) => runtime.existsSync(path.join(sharedRoot, name))); - if (!hasLlamaState && (!hasManagedKey || hasDistributedReceipt)) { - if (!hasManagedKey && !hasDistributedReceipt && !removeOrphanedManagedHostLocalVllm(runtime)) { - return false; - } - return true; + // A bearerless managed container leaves no key or receipt, and the runtime + // cleanup inspects Docker only for recorded vLLM state. + if ( + !hasHostLocalVllmState && + !hasDistributedReceipt && + !removeOrphanedManagedHostLocalVllm(runtime) + ) { + return false; } + if (!hasLlamaState && (!hasHostLocalVllmState || hasDistributedReceipt)) return true; const result = runtime.runLocalModelRuntimeCleanup({ env: runtime.env, stdio: "inherit", diff --git a/src/lib/inference/local-model-profile/cleanup.test.ts b/src/lib/inference/local-model-profile/cleanup.test.ts index be2d5469f0a..a33ddd54e32 100644 --- a/src/lib/inference/local-model-profile/cleanup.test.ts +++ b/src/lib/inference/local-model-profile/cleanup.test.ts @@ -82,6 +82,13 @@ function ownedContainer( describe("managed vLLM retirement after the last Local vLLM sandbox", () => { const containerId = "f".repeat(64); + const serving = { + catalogDigest: `sha256:${"1".repeat(64)}`, + presetId: "vllm.dgx-spark-gb10.single.example", + presetDigest: `sha256:${"2".repeat(64)}`, + recipeId: "vllm.dgx-spark-gb10.single.example", + recipeDigest: `sha256:${"3".repeat(64)}`, + } as const; function retirementDeps( inspection: string, @@ -126,6 +133,18 @@ describe("managed vLLM retirement after the last Local vLLM sandbox", () => { expect(forceRm).not.toHaveBeenCalled(); }); + it("removes a host-global key that outlives an absent container", () => { + const homeDir = temporaryHome(); + const keyPath = path.join(managedVllmStateDir(homeDir), "dual-station-vllm-api-key"); + fs.mkdirSync(path.dirname(keyPath), { mode: 0o700, recursive: true }); + fs.writeFileSync(keyPath, `${"e".repeat(64)}\n`, { mode: 0o600 }); + const { deps, forceRm } = retirementDeps(""); + + expect(retireHostLocalVllmRuntime({ homeDir, deps })).toEqual({ status: "absent" }); + expect(forceRm).not.toHaveBeenCalled(); + expect(fs.existsSync(keyPath)).toBe(false); + }); + it.each<{ reason: string; labels: Record }>([ { reason: "the container does not carry the NemoClaw managed vLLM label", @@ -248,13 +267,6 @@ describe("managed vLLM retirement after the last Local vLLM sandbox", () => { const stateDir = managedVllmStateDir(homeDir); fs.mkdirSync(stateDir, { mode: 0o700, recursive: true }); const apiKey = "e".repeat(64); - const serving = { - catalogDigest: `sha256:${"1".repeat(64)}`, - presetId: "vllm.dgx-spark-gb10.single.example", - presetDigest: `sha256:${"2".repeat(64)}`, - recipeId: "vllm.dgx-spark-gb10.single.example", - recipeDigest: `sha256:${"3".repeat(64)}`, - } as const; fs.writeFileSync(path.join(stateDir, "dual-station-vllm-api-key"), `${apiKey}\n`, { mode: 0o600, }); @@ -294,13 +306,6 @@ describe("managed vLLM retirement after the last Local vLLM sandbox", () => { const stateDir = managedVllmStateDir(homeDir); fs.mkdirSync(stateDir, { mode: 0o700, recursive: true }); const apiKey = "e".repeat(64); - const serving = { - catalogDigest: `sha256:${"1".repeat(64)}`, - presetId: "vllm.dgx-spark-gb10.single.example", - presetDigest: `sha256:${"2".repeat(64)}`, - recipeId: "vllm.dgx-spark-gb10.single.example", - recipeDigest: `sha256:${"3".repeat(64)}`, - } as const; fs.writeFileSync(path.join(stateDir, "dual-station-vllm-api-key"), `${apiKey}\n`, { mode: 0o600, }); diff --git a/src/lib/inference/local-model-profile/cleanup.ts b/src/lib/inference/local-model-profile/cleanup.ts index 3d4b8340e62..bad12e79d20 100644 --- a/src/lib/inference/local-model-profile/cleanup.ts +++ b/src/lib/inference/local-model-profile/cleanup.ts @@ -67,7 +67,11 @@ import { } from "../serving/vllm-host-local-lifecycle"; import { loadManagedVllmApiKey, managedVllmStateDir } from "../vllm-api-key"; -export { HOST_LOCAL_VLLM_CONTAINER_NAME, HOST_LOCAL_VLLM_MANAGED_LABEL }; +export { + HOST_LOCAL_VLLM_CONTAINER_NAME, + HOST_LOCAL_VLLM_MANAGED_LABEL, + HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE, +}; const LLAMA_MANAGED_LABEL = "io.nvidia.nemoclaw.host-local-inference.managed"; const LLAMA_PROVIDER_LABEL = "io.nvidia.nemoclaw.host-local-inference.provider"; @@ -218,7 +222,6 @@ function cleanupHostLocalVllm( removed: string[], ): HostLocalVllmRetirementResult { const hasDistributedReceipt = distributedReceiptPresent(stateDir); - const runtimeReceiptPath = path.join(stateDir, HOST_LOCAL_VLLM_RUNTIME_RECEIPT_FILE); const inspected = inspectOwnedResource( "container", HOST_LOCAL_VLLM_CONTAINER_NAME, @@ -227,7 +230,8 @@ function cleanupHostLocalVllm( deps.capture, ); if (inspected.kind === "absent") { - if (!fs.existsSync(runtimeReceiptPath)) return { status: "absent" }; + // The key and receipt belong to this container alone; a key that outlives + // the container is a credential with no runtime. const cleanup = cleanupRetiredHostLocalVllmState(stateDir, deps); return cleanup.ok ? { status: "absent" } @@ -1577,6 +1581,47 @@ export function retireHostLocalVllmRuntime( } } +export const HOST_LOCAL_VLLM_PENDING_RETIREMENT_FILE = + "host-local-vllm-pending-retirement.json" as const; + +function pendingHostLocalVllmRetirementPath(homeDir: string | undefined): string { + return path.join( + managedVllmStateDir(canonicalCleanupHomeDir(homeDir ?? os.homedir())), + HOST_LOCAL_VLLM_PENDING_RETIREMENT_FILE, + ); +} + +/** + * Record that a destroyed Local vLLM sandbox leaves the host-global container + * without a registry row. The row is the only proof that the sandbox used the + * container, so a destroy retry after an interrupted or preserved retirement + * reads this record instead. + */ +export function recordPendingHostLocalVllmRetirement(sandboxName: string, homeDir?: string): void { + const filePath = pendingHostLocalVllmRetirementPath(homeDir); + fs.mkdirSync(path.dirname(filePath), { mode: 0o700, recursive: true }); + fs.writeFileSync(filePath, `${JSON.stringify({ sandboxName })}\n`, { mode: 0o600 }); +} + +/** Sandbox name whose managed vLLM retirement is pending, or null. */ +export function readPendingHostLocalVllmRetirement(homeDir?: string): string | null { + try { + const parsed = JSON.parse( + fs.readFileSync(pendingHostLocalVllmRetirementPath(homeDir), "utf-8"), + ) as { sandboxName?: unknown } | null; + return typeof parsed?.sandboxName === "string" && parsed.sandboxName !== "" + ? parsed.sandboxName + : null; + } catch { + return null; + } +} + +/** One settled retirement decision covers the single host-global container, whichever sandbox recorded it. */ +export function clearPendingHostLocalVllmRetirement(homeDir?: string): void { + fs.rmSync(pendingHostLocalVllmRetirementPath(homeDir), { force: true }); +} + /** Remove only exact owned host-local runtime resources before uninstall deletes state. */ export function cleanupLocalModelRuntimes( options: LocalModelRuntimeCleanupOptions, diff --git a/test/helpers/destroy-flow-test-harness.ts b/test/helpers/destroy-flow-test-harness.ts index aa8be93dab7..21a36779c8a 100644 --- a/test/helpers/destroy-flow-test-harness.ts +++ b/test/helpers/destroy-flow-test-harness.ts @@ -41,6 +41,10 @@ export type DestroyHarness = { listHostGatewayRegistryEntriesSpy: MockInstance; logSpy: MockInstance; mcpRuntimeSelectionSpy: MockInstance; + /** In-memory pending managed vLLM retirement record; null when none is recorded. */ + pendingVllmRetirement: { sandboxName: string | null }; + clearPendingVllmRetirementSpy: MockInstance; + recordPendingVllmRetirementSpy: MockInstance; prepareMcpBridgesForAbsentSandboxDestroySpy: MockInstance; prepareMcpBridgesForDestroySpy: MockInstance; prepareManagedLlamaCppRuntimeCleanupSpy: MockInstance; @@ -122,6 +126,7 @@ type DestroyHarnessOptions = { workspace: string; }; openshellDriver?: string; + pendingVllmRetirement?: string; portableCommandError?: string; portableDestroyAuthority?: boolean; portableDestroyPrepareError?: string; @@ -435,6 +440,20 @@ export function createDestroyHarness(options: DestroyHarnessOptions = {}): Destr const retireHostLocalVllmRuntimeSpy = vi .spyOn(localModelProfileCleanup, "retireHostLocalVllmRuntime") .mockReturnValue({ status: "absent" }); + const pendingVllmRetirement = { sandboxName: options.pendingVllmRetirement ?? null }; + const recordPendingVllmRetirementSpy = vi + .spyOn(localModelProfileCleanup, "recordPendingHostLocalVllmRetirement") + .mockImplementation((sandboxName: unknown) => { + pendingVllmRetirement.sandboxName = String(sandboxName); + }); + vi.spyOn(localModelProfileCleanup, "readPendingHostLocalVllmRetirement").mockImplementation( + () => pendingVllmRetirement.sandboxName, + ); + const clearPendingVllmRetirementSpy = vi + .spyOn(localModelProfileCleanup, "clearPendingHostLocalVllmRetirement") + .mockImplementation(() => { + pendingVllmRetirement.sandboxName = null; + }); vi.spyOn(modelRouterProcess, "doesModelRouterProcessOwnPort").mockReturnValue(false); vi.spyOn(modelRouterProcess, "inspectModelRouterProcessForPort").mockReturnValue({ status: "absent", @@ -739,6 +758,9 @@ export function createDestroyHarness(options: DestroyHarnessOptions = {}): Destr listHostGatewayRegistryEntriesSpy, logSpy, mcpRuntimeSelectionSpy, + pendingVllmRetirement, + clearPendingVllmRetirementSpy, + recordPendingVllmRetirementSpy, prepareMcpBridgesForAbsentSandboxDestroySpy, prepareMcpBridgesForDestroySpy, prepareManagedLlamaCppRuntimeCleanupSpy, From 52284ed14c34eeb7f301588cafdb66aa210eec57 Mon Sep 17 00:00:00 2001 From: Rebecca Sliter <571084+rsliter@users.noreply.github.com> Date: Sat, 19 Sep 2026 15:00:23 -0700 Subject: [PATCH 08/18] fix(vllm): preserve retirement retry authority Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com> --- .../sandbox/destroy-managed-vllm-flow.test.ts | 31 +++++++++++++++++++ src/lib/actions/sandbox/destroy.ts | 11 ++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts b/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts index 3dad697561e..6e898806634 100644 --- a/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts +++ b/src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts @@ -147,6 +147,37 @@ describe("destroySandbox managed vLLM retirement", () => { expect(harness.pendingVllmRetirement.sandboxName).toBe("alpha"); }); + it("preserves the registry row when pending retirement cannot be recorded", async () => { + const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); + harness.recordPendingVllmRetirementSpy.mockImplementation(() => { + throw new Error("retirement record write failed"); + }); + + await expect(harness.destroySandbox("alpha", { yes: true })).rejects.toThrow( + 'process.exit unexpectedly called with "1"', + ); + + expect(harness.removeSandboxSpy).not.toHaveBeenCalled(); + expect(harness.pendingVllmRetirement.sandboxName).toBeNull(); + expect(harness.errorSpy).toHaveBeenCalledWith( + expect.stringContaining("registry entry was preserved"), + ); + }); + + it("continues when a failed retirement write left a readable matching record", async () => { + const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); + harness.recordPendingVllmRetirementSpy.mockImplementation((sandboxName: unknown) => { + harness.pendingVllmRetirement.sandboxName = String(sandboxName); + throw new Error("retirement record fsync failed"); + }); + + await expect(harness.destroySandbox("alpha", { yes: true })).resolves.toBeUndefined(); + + expect(harness.removeSandboxSpy).toHaveBeenCalledWith("alpha"); + expect(harness.retireHostLocalVllmRuntimeSpy).toHaveBeenCalledOnce(); + expect(harness.pendingVllmRetirement.sandboxName).toBeNull(); + }); + it("warns and leaves the managed vLLM container in place when its ownership cannot be proven", async () => { const harness = createDestroyHarness(LOCAL_VLLM_SANDBOX); harness.retireHostLocalVllmRuntimeSpy.mockReturnValue({ diff --git a/src/lib/actions/sandbox/destroy.ts b/src/lib/actions/sandbox/destroy.ts index 9a7a2447dbb..60d4b009401 100644 --- a/src/lib/actions/sandbox/destroy.ts +++ b/src/lib/actions/sandbox/destroy.ts @@ -21,7 +21,10 @@ import { parseHttpsPinRouteId, revokeHttpsPinRuntimeAdapterRoute, } from "../../inference/https-pin-runtime-adapter"; -import { prepareManagedLlamaCppRuntimeCleanupForSandbox } from "../../inference/local-model-profile/cleanup"; +import { + prepareManagedLlamaCppRuntimeCleanupForSandbox, + readPendingHostLocalVllmRetirement, +} from "../../inference/local-model-profile/cleanup"; import { isLocalOllamaRouteOwner, loadPersistedOllamaHost, @@ -1066,6 +1069,12 @@ async function destroySandboxUnlocked( defaultDestroyWarn( `Could not record the pending managed vLLM retirement for '${sandboxName}': ${redactDestroyError(error)}. A destroy retry cannot retire the container if this retirement does not complete.`, ); + if (readPendingHostLocalVllmRetirement() !== sandboxName) { + console.error( + " The sandbox registry entry was preserved so exact managed vLLM retirement can be retried.", + ); + requestSandboxDestroyExit(1); + } } } const removalOutcome = removeSandboxRegistryEntryOutcome(sandboxName); From 6f34bd95122b2a5a6f62371e2237858f82560f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 16:10:32 -0700 Subject: [PATCH 09/18] merge(main): prepare current budget conflict resolution Stage the canonical main budget files before integrating main on this temporary signing branch. The reviewed PR receives only the final validated tree. Signed-off-by: Aaron Erickson --- ci/e2e-assertion-budget.json | 192 ++++++++++++++--------------- ci/source-architecture-budget.json | 32 ++--- 2 files changed, 111 insertions(+), 113 deletions(-) diff --git a/ci/e2e-assertion-budget.json b/ci/e2e-assertion-budget.json index 323f9abe5f7..be1f3288edf 100644 --- a/ci/e2e-assertion-budget.json +++ b/ci/e2e-assertion-budget.json @@ -12,31 +12,31 @@ "epicLiveExpectCalls": 2677 }, "limits": { - "testFileCount": 79, - "liveFileCount": 190, + "testFileCount": 77, + "liveFileCount": 186, "direct": { - "expectCalls": 1375, - "matcherAssertions": 1357, + "expectCalls": 1290, + "matcherAssertions": 1269, "nodeAssertions": 103, - "namedAssertionHelpers": 441, + "namedAssertionHelpers": 439, "failCalls": 0, - "throwGuards": 71, - "objectFieldAssertions": 169, - "assertionPoints": 2141, - "generatedProbeBlocks": 94, - "generatedProbeConditions": 239 + "throwGuards": 60, + "objectFieldAssertions": 163, + "assertionPoints": 2034, + "generatedProbeBlocks": 91, + "generatedProbeConditions": 221 }, "unique": { - "expectCalls": 1810, - "matcherAssertions": 1787, + "expectCalls": 1725, + "matcherAssertions": 1699, "nodeAssertions": 126, - "namedAssertionHelpers": 686, + "namedAssertionHelpers": 684, "failCalls": 1, - "throwGuards": 559, - "objectFieldAssertions": 246, - "assertionPoints": 3405, - "generatedProbeBlocks": 218, - "generatedProbeConditions": 764 + "throwGuards": 542, + "objectFieldAssertions": 240, + "assertionPoints": 3292, + "generatedProbeBlocks": 213, + "generatedProbeConditions": 729 }, "fileMetricOrder": [ "directExpectCalls", @@ -46,85 +46,83 @@ "transitiveGeneratedProbeBlocks" ], "files": { - "test/e2e/live/agent-turn-latency.test.ts": [15, 15, 15, 26, 1], - "test/e2e/live/bedrock-runtime-compatible-anthropic.test.ts": [11, 33, 12, 55, 4], - "test/e2e/live/bootstrap-install-smoke.test.ts": [0, 0, 14, 30, 3], - "test/e2e/live/brave-search.test.ts": [17, 20, 27, 32, 1], - "test/e2e/live/brev-workspace-cleanup.test.ts": [0, 0, 0, 1, 0], - "test/e2e/live/channels-add-remove.test.ts": [40, 90, 40, 92, 0], - "test/e2e/live/channels-stop-start.test.ts": [0, 0, 26, 99, 9], - "test/e2e/live/cloud-onboard.test.ts": [22, 24, 22, 24, 1], - "test/e2e/live/common-egress-agent.test.ts": [25, 65, 27, 74, 5], - "test/e2e/live/concurrent-gateway-ports.test.ts": [34, 43, 34, 43, 6], - "test/e2e/live/cron-preflight-inference-local.test.ts": [3, 8, 3, 8, 0], - "test/e2e/live/dashboard-remote-bind.test.ts": [16, 14, 16, 16, 3], - "test/e2e/live/deferred-onboarding.test.ts": [12, 14, 12, 14, 0], - "test/e2e/live/double-onboard.test.ts": [36, 43, 36, 43, 0], - "test/e2e/live/external-gateway-health.test.ts": [4, 5, 4, 11, 0], - "test/e2e/live/full-e2e.test.ts": [27, 31, 28, 61, 7], - "test/e2e/live/gpu-double-onboard.test.ts": [21, 24, 21, 24, 0], - "test/e2e/live/gpu-e2e.test.ts": [39, 44, 72, 90, 3], - "test/e2e/live/hermes-discord.test.ts": [10, 25, 17, 64, 14], - "test/e2e/live/hermes-e2e.test.ts": [82, 93, 112, 127, 3], - "test/e2e/live/hermes-gpu-startup.test.ts": [19, 27, 59, 84, 12], - "test/e2e/live/hermes-inference-switch.test.ts": [61, 67, 72, 92, 2], - "test/e2e/live/hermes-root-entrypoint-smoke.test.ts": [4, 27, 4, 27, 4], - "test/e2e/live/hermes-sandbox-secret-boundary.test.ts": [16, 23, 16, 23, 3], - "test/e2e/live/hermes-slack-e2e.test.ts": [0, 0, 29, 87, 14], - "test/e2e/live/inference-routing-provider-smoke.test.ts": [8, 13, 19, 32, 2], - "test/e2e/live/inference-routing.test.ts": [36, 51, 48, 89, 15], - "test/e2e/live/issue-4434-tui-unreachable-inference.test.ts": [28, 32, 28, 32, 0], - "test/e2e/live/issue-4462-scope-upgrade-approval.test.ts": [8, 18, 8, 18, 0], - "test/e2e/live/issue-9880-staging-launchable.test.ts": [0, 0, 0, 0, 0], - "test/e2e/live/jetson-nvmap-gpu.test.ts": [37, 50, 37, 50, 4], - "test/e2e/live/launch-readiness-lease-acceptance.test.ts": [6, 6, 6, 10, 6], - "test/e2e/live/launchable-smoke.test.ts": [14, 30, 14, 30, 3], - "test/e2e/live/llama-cpp-generic-gpu.test.ts": [17, 35, 33, 61, 2], - "test/e2e/live/managed-image-activation-e2e.test.ts": [0, 0, 13, 28, 0], - "test/e2e/live/managed-image-multiarch-startup.test.ts": [1, 1, 1, 7, 0], - "test/e2e/live/managed-image-protected-runtime.test.ts": [0, 0, 42, 79, 15], - "test/e2e/live/mcp-bridge.test.ts": [39, 139, 193, 518, 46], - "test/e2e/live/messaging-compatible-endpoint.test.ts": [13, 19, 13, 28, 2], - "test/e2e/live/messaging-providers.test.ts": [0, 11, 6, 51, 11], - "test/e2e/live/model-router-provider-routed-inference.test.ts": [1, 2, 1, 2, 0], - "test/e2e/live/native-runtime-qualification-case.test.ts": [0, 0, 9, 84, 0], - "test/e2e/live/network-policy.test.ts": [18, 19, 18, 19, 1], - "test/e2e/live/ollama-auth-proxy.test.ts": [21, 29, 21, 29, 0], - "test/e2e/live/onboard-policy-preset-sequencing.test.ts": [7, 7, 7, 7, 1], - "test/e2e/live/onboard-repair.test.ts": [21, 25, 21, 25, 0], - "test/e2e/live/onboard-resume.test.ts": [59, 63, 59, 63, 0], - "test/e2e/live/openclaw-discord-pairing.test.ts": [13, 20, 28, 86, 10], - "test/e2e/live/openclaw-inference-switch.test.ts": [49, 55, 50, 57, 2], - "test/e2e/live/openclaw-skill-cli.test.ts": [10, 14, 10, 14, 1], - "test/e2e/live/openclaw-slack-pairing.test.ts": [11, 18, 26, 84, 10], - "test/e2e/live/openclaw-tui-chat-correlation.test.ts": [40, 46, 40, 52, 4], - "test/e2e/live/openshell-credential-generation-window.test.ts": [42, 92, 43, 112, 18], - "test/e2e/live/openshell-gateway-auth-source-contract.test.ts": [0, 0, 16, 28, 2], - "test/e2e/live/openshell-gateway-upgrade.test.ts": [6, 15, 6, 26, 6], - "test/e2e/live/overlayfs-autofix.test.ts": [22, 25, 22, 28, 2], - "test/e2e/live/pi-agent-qualification.test.ts": [29, 36, 29, 52, 4], - "test/e2e/live/podman-cpu-lifecycle.test.ts": [35, 57, 48, 92, 1], - "test/e2e/live/podman-portable-uninstall.test.ts": [37, 36, 50, 71, 3], - "test/e2e/live/portable-cpu-delegation-proof.test.ts": [0, 22, 0, 22, 0], - "test/e2e/live/portable-profile-rootless-linux.test.ts": [0, 72, 0, 78, 2], - "test/e2e/live/rebuild-hermes.test.ts": [2, 8, 9, 47, 6], - "test/e2e/live/rebuild-openclaw.test.ts": [2, 7, 2, 26, 0], - "test/e2e/live/registry-targets.test.ts": [2, 4, 5, 24, 0], - "test/e2e/live/runtime-overrides.test.ts": [34, 46, 34, 46, 1], - "test/e2e/live/sandbox-operations.test.ts": [2, 11, 9, 50, 6], - "test/e2e/live/sandbox-rlimits-connect.test.ts": [1, 1, 1, 1, 0], - "test/e2e/live/sandbox-survival.test.ts": [4, 11, 4, 11, 0], - "test/e2e/live/sessions-agents-cli.test.ts": [19, 28, 20, 31, 0], - "test/e2e/live/skill-agent.test.ts": [7, 9, 8, 10, 0], - "test/e2e/live/snapshot-commands.test.ts": [26, 39, 26, 41, 3], - "test/e2e/live/spark-express-vllm.test.ts": [32, 44, 43, 63, 3], - "test/e2e/live/spark-install.test.ts": [11, 13, 11, 15, 6], - "test/e2e/live/state-backup-restore.test.ts": [8, 17, 8, 17, 1], - "test/e2e/live/telegram-injection.test.ts": [19, 28, 26, 67, 12], - "test/e2e/live/token-rotation.test.ts": [28, 36, 28, 36, 2], - "test/e2e/live/tunnel-lifecycle.test.ts": [0, 0, 8, 17, 4], - "test/e2e/live/whatsapp-qr-compact.test.ts": [29, 35, 29, 35, 1], - "test/e2e/live/windows-mxc-openclaw-process-container.test.ts": [7, 11, 7, 73, 4] + "test/e2e/live/agent-turn-latency.test.ts": [15,15,15,26,1], + "test/e2e/live/bedrock-runtime-compatible-anthropic.test.ts": [11,33,12,55,4], + "test/e2e/live/bootstrap-install-smoke.test.ts": [0,0,14,30,3], + "test/e2e/live/brave-search.test.ts": [17,20,27,32,1], + "test/e2e/live/brev-workspace-cleanup.test.ts": [0,0,0,1,0], + "test/e2e/live/channels-add-remove.test.ts": [40,90,40,92,0], + "test/e2e/live/channels-stop-start.test.ts": [0,0,26,99,9], + "test/e2e/live/cloud-onboard.test.ts": [22,24,22,24,1], + "test/e2e/live/common-egress-agent.test.ts": [25,65,27,74,5], + "test/e2e/live/concurrent-gateway-ports.test.ts": [34,43,34,43,6], + "test/e2e/live/cron-preflight-inference-local.test.ts": [3,8,3,8,0], + "test/e2e/live/dashboard-remote-bind.test.ts": [16,14,16,16,3], + "test/e2e/live/deferred-onboarding.test.ts": [12,14,12,14,0], + "test/e2e/live/double-onboard.test.ts": [36,43,36,43,0], + "test/e2e/live/external-gateway-health.test.ts": [4,5,4,11,0], + "test/e2e/live/full-e2e.test.ts": [27,31,28,61,7], + "test/e2e/live/gpu-double-onboard.test.ts": [21,24,21,24,0], + "test/e2e/live/gpu-e2e.test.ts": [39,44,72,90,3], + "test/e2e/live/hermes-discord.test.ts": [10,25,17,64,14], + "test/e2e/live/hermes-e2e.test.ts": [82,93,112,127,3], + "test/e2e/live/hermes-gpu-startup.test.ts": [19,27,59,84,12], + "test/e2e/live/hermes-inference-switch.test.ts": [49,55,60,80,2], + "test/e2e/live/hermes-root-entrypoint-smoke.test.ts": [4,25,4,25,4], + "test/e2e/live/hermes-sandbox-secret-boundary.test.ts": [16,23,16,23,3], + "test/e2e/live/hermes-slack-e2e.test.ts": [0,0,29,87,14], + "test/e2e/live/inference-routing-provider-smoke.test.ts": [8,13,19,32,2], + "test/e2e/live/inference-routing.test.ts": [36,51,48,89,15], + "test/e2e/live/issue-4434-tui-unreachable-inference.test.ts": [28,32,28,32,0], + "test/e2e/live/issue-4462-scope-upgrade-approval.test.ts": [8,18,8,18,0], + "test/e2e/live/issue-9880-staging-launchable.test.ts": [0,0,0,0,0], + "test/e2e/live/jetson-nvmap-gpu.test.ts": [37,50,37,50,4], + "test/e2e/live/launch-readiness-lease-acceptance.test.ts": [6,6,6,10,6], + "test/e2e/live/launchable-smoke.test.ts": [14,30,14,30,3], + "test/e2e/live/llama-cpp-generic-gpu.test.ts": [17,35,33,61,2], + "test/e2e/live/managed-image-activation-e2e.test.ts": [0,0,13,28,0], + "test/e2e/live/managed-image-multiarch-startup.test.ts": [1,1,1,7,0], + "test/e2e/live/managed-image-protected-runtime.test.ts": [0,0,42,79,15], + "test/e2e/live/mcp-bridge.test.ts": [39,139,193,518,46], + "test/e2e/live/messaging-compatible-endpoint.test.ts": [13,19,13,28,2], + "test/e2e/live/messaging-providers.test.ts": [0,11,6,51,11], + "test/e2e/live/model-router-provider-routed-inference.test.ts": [1,2,1,2,0], + "test/e2e/live/native-runtime-qualification-case.test.ts": [0,0,9,84,0], + "test/e2e/live/network-policy.test.ts": [18,19,18,19,1], + "test/e2e/live/ollama-auth-proxy.test.ts": [21,29,21,29,0], + "test/e2e/live/onboard-policy-preset-sequencing.test.ts": [7,7,7,7,1], + "test/e2e/live/onboard-repair.test.ts": [21,25,21,25,0], + "test/e2e/live/onboard-resume.test.ts": [59,63,59,63,0], + "test/e2e/live/openclaw-discord-pairing.test.ts": [13,20,28,86,10], + "test/e2e/live/openclaw-inference-switch.test.ts": [47,53,48,55,2], + "test/e2e/live/openclaw-skill-cli.test.ts": [10,14,10,14,1], + "test/e2e/live/openclaw-slack-pairing.test.ts": [11,18,26,84,10], + "test/e2e/live/openshell-credential-generation-window.test.ts": [42,92,43,112,18], + "test/e2e/live/openshell-gateway-auth-source-contract.test.ts": [0,0,16,28,2], + "test/e2e/live/openshell-gateway-upgrade.test.ts": [6,15,6,26,6], + "test/e2e/live/overlayfs-autofix.test.ts": [22,25,22,28,2], + "test/e2e/live/pi-agent-qualification.test.ts": [29,36,29,52,4], + "test/e2e/live/podman-cpu-lifecycle.test.ts": [35,57,48,92,1], + "test/e2e/live/podman-portable-uninstall.test.ts": [37,36,50,71,3], + "test/e2e/live/portable-cpu-delegation-proof.test.ts": [0,22,0,22,0], + "test/e2e/live/portable-profile-rootless-linux.test.ts": [0,72,0,78,2], + "test/e2e/live/rebuild-hermes.test.ts": [2,8,9,47,6], + "test/e2e/live/rebuild-openclaw.test.ts": [2,7,2,26,0], + "test/e2e/live/registry-targets.test.ts": [2,4,5,24,0], + "test/e2e/live/sandbox-operations.test.ts": [2,11,9,50,6], + "test/e2e/live/sandbox-rlimits-connect.test.ts": [1,1,1,1,0], + "test/e2e/live/sandbox-survival.test.ts": [4,11,4,11,0], + "test/e2e/live/sessions-agents-cli.test.ts": [19,28,20,31,0], + "test/e2e/live/skill-agent.test.ts": [7,9,8,10,0], + "test/e2e/live/snapshot-commands.test.ts": [26,39,26,41,3], + "test/e2e/live/spark-express-vllm.test.ts": [35,45,46,64,3], + "test/e2e/live/spark-install.test.ts": [11,13,11,15,6], + "test/e2e/live/state-backup-restore.test.ts": [8,17,8,17,1], + "test/e2e/live/telegram-injection.test.ts": [19,28,26,67,12], + "test/e2e/live/token-rotation.test.ts": [28,36,28,36,2], + "test/e2e/live/tunnel-lifecycle.test.ts": [0,0,8,17,4], + "test/e2e/live/whatsapp-qr-compact.test.ts": [29,35,29,35,1], + "test/e2e/live/windows-mxc-openclaw-process-container.test.ts": [7,11,7,73,4] } } } diff --git a/ci/source-architecture-budget.json b/ci/source-architecture-budget.json index 21cbfac251a..225aaed4eba 100644 --- a/ci/source-architecture-budget.json +++ b/ci/source-architecture-budget.json @@ -16,26 +16,26 @@ "src/lib/agent/defs.ts": 33, "src/lib/cli/branding.ts": 80, "src/lib/cli/nemoclaw-oclif-command.ts": 106, - "src/lib/cli/terminal-style.ts": 39, - "src/lib/core/json-types.ts": 33, + "src/lib/cli/terminal-style.ts": 38, + "src/lib/core/json-types.ts": 32, "src/lib/core/ports.ts": 87, - "src/lib/core/shell-quote.ts": 24, + "src/lib/core/shell-quote.ts": 22, "src/lib/core/url-utils.ts": 25, "src/lib/core/wait.ts": 30, "src/lib/credentials/store.ts": 45, - "src/lib/inference/config.ts": 28, - "src/lib/messaging/channels/index.ts": 24, + "src/lib/inference/config.ts": 27, + "src/lib/messaging/channels/index.ts": 23, "src/lib/onboard/gateway-binding.ts": 51, "src/lib/platform.ts": 21, - "src/lib/runner.ts": 81, + "src/lib/runner.ts": 80, "src/lib/sandbox-name-contract.ts": 20, - "src/lib/security/redact.ts": 51, - "src/lib/state/mcp-lifecycle-lock.ts": 19, + "src/lib/security/redact.ts": 50, + "src/lib/state/mcp-lifecycle-lock.ts": 20, "src/lib/state/onboard-session.ts": 35, "src/lib/state/registry.ts": 87, "src/lib/state/state-root.ts": 21, "src/lib/subprocess-env.ts": 26, - "src/lib/validation.ts": 24 + "src/lib/validation.ts": 23 } }, "fanOut": { @@ -44,12 +44,12 @@ "src/lib/actions/inference-set.ts": 31, "src/lib/actions/sandbox/connect.ts": 41, "src/lib/actions/sandbox/destroy.ts": 28, - "src/lib/actions/sandbox/doctor.ts": 28, + "src/lib/actions/sandbox/doctor.ts": 26, "src/lib/actions/sandbox/status-snapshot.ts": 20, "src/lib/actions/sandbox/policy-channel.ts": 30, "src/lib/actions/sandbox/process-recovery.ts": 17, - "src/lib/actions/sandbox/rebuild-pipeline.ts": 30, - "src/lib/actions/sandbox/snapshot.ts": 36, + "src/lib/actions/sandbox/rebuild-pipeline.ts": 29, + "src/lib/actions/sandbox/snapshot.ts": 35, "src/lib/actions/uninstall/run-plan.ts": 25, "src/lib/inference/local.ts": 22, "src/lib/inference/onboard-probes.ts": 21, @@ -58,7 +58,7 @@ "src/lib/onboard/sandbox-gpu-create-run-attempt.ts": 19, "src/lib/onboard/machine/handlers/sandbox.ts": 21, "src/lib/policy/index.ts": 22, - "src/lib/sandbox/config.ts": 19, + "src/lib/sandbox/config.ts": 18, "src/lib/state/sandbox.ts": 21, "scripts/checks/run-managed-image-openshell-e2e.ts": 18 } @@ -67,9 +67,9 @@ "maxRootFiles": { "src/lib/onboard": 299, "src/lib/actions": 18, - "src/lib/actions/sandbox": 173, - "src/lib/state": 36, + "src/lib/actions/sandbox": 169, + "src/lib/state": 34, "src/lib/inference": 63, - "scripts": 42 + "scripts": 41 } } From bed508f24971811e9c48dcbd46328536db6ea060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 16:10:36 -0700 Subject: [PATCH 10/18] fix(vllm): qualify retirement and preserve recovery state Use the existing atomic configuration writer for pending retirement. Qualify custom-port diagnostics, final-consumer cleanup, and subsequent GPU reacquisition in the existing GPU E2E target without increasing its assertion budget. Signed-off-by: Aaron Erickson --- ci/e2e-assertion-budget.json | 14 +- ci/source-architecture-budget.json | 2 +- .../cleanup-vllm-absence.test.ts | 19 + .../inference/local-model-profile/cleanup.ts | 4 +- test/e2e/README.md | 27 +- test/e2e/live/gpu-e2e.test.ts | 107 ++++-- test/e2e/live/spark-express-vllm.test.ts | 335 +++++------------- test/e2e/mock-parity.json | 16 +- 8 files changed, 228 insertions(+), 296 deletions(-) diff --git a/ci/e2e-assertion-budget.json b/ci/e2e-assertion-budget.json index be1f3288edf..21f9c1372b6 100644 --- a/ci/e2e-assertion-budget.json +++ b/ci/e2e-assertion-budget.json @@ -15,25 +15,25 @@ "testFileCount": 77, "liveFileCount": 186, "direct": { - "expectCalls": 1290, - "matcherAssertions": 1269, + "expectCalls": 1287, + "matcherAssertions": 1266, "nodeAssertions": 103, "namedAssertionHelpers": 439, "failCalls": 0, "throwGuards": 60, - "objectFieldAssertions": 163, + "objectFieldAssertions": 166, "assertionPoints": 2034, "generatedProbeBlocks": 91, "generatedProbeConditions": 221 }, "unique": { - "expectCalls": 1725, - "matcherAssertions": 1699, + "expectCalls": 1722, + "matcherAssertions": 1696, "nodeAssertions": 126, "namedAssertionHelpers": 684, "failCalls": 1, "throwGuards": 542, - "objectFieldAssertions": 240, + "objectFieldAssertions": 243, "assertionPoints": 3292, "generatedProbeBlocks": 213, "generatedProbeConditions": 729 @@ -63,7 +63,7 @@ "test/e2e/live/external-gateway-health.test.ts": [4,5,4,11,0], "test/e2e/live/full-e2e.test.ts": [27,31,28,61,7], "test/e2e/live/gpu-double-onboard.test.ts": [21,24,21,24,0], - "test/e2e/live/gpu-e2e.test.ts": [39,44,72,90,3], + "test/e2e/live/gpu-e2e.test.ts": [36,44,69,90,3], "test/e2e/live/hermes-discord.test.ts": [10,25,17,64,14], "test/e2e/live/hermes-e2e.test.ts": [82,93,112,127,3], "test/e2e/live/hermes-gpu-startup.test.ts": [19,27,59,84,12], diff --git a/ci/source-architecture-budget.json b/ci/source-architecture-budget.json index 225aaed4eba..f40fc26e70b 100644 --- a/ci/source-architecture-budget.json +++ b/ci/source-architecture-budget.json @@ -30,7 +30,7 @@ "src/lib/runner.ts": 80, "src/lib/sandbox-name-contract.ts": 20, "src/lib/security/redact.ts": 50, - "src/lib/state/mcp-lifecycle-lock.ts": 20, + "src/lib/state/mcp-lifecycle-lock.ts": 19, "src/lib/state/onboard-session.ts": 35, "src/lib/state/registry.ts": 87, "src/lib/state/state-root.ts": 21, diff --git a/src/lib/inference/local-model-profile/cleanup-vllm-absence.test.ts b/src/lib/inference/local-model-profile/cleanup-vllm-absence.test.ts index f4d96b9f4b6..53546960f4d 100644 --- a/src/lib/inference/local-model-profile/cleanup-vllm-absence.test.ts +++ b/src/lib/inference/local-model-profile/cleanup-vllm-absence.test.ts @@ -14,6 +14,9 @@ import { } from "../serving/vllm-host-local-lifecycle"; import { managedVllmStateDir } from "../vllm-api-key"; import { + HOST_LOCAL_VLLM_PENDING_RETIREMENT_FILE, + readPendingHostLocalVllmRetirement, + recordPendingHostLocalVllmRetirement, cleanupLocalModelRuntimes, retireHostLocalVllmRuntime, type LocalModelRuntimeCleanupOptions, @@ -175,3 +178,19 @@ it.each(inventoryCases)( }); }, ); + +it("records pending vLLM retirement without overwriting a linked host file", () => { + const home = temporaryHome(); + const stateDir = managedVllmStateDir(home); + fs.mkdirSync(stateDir, { recursive: true, mode: 0o700 }); + const unrelatedFile = path.join(home, "unrelated.json"); + fs.writeFileSync(unrelatedFile, "untouched", { mode: 0o600 }); + fs.symlinkSync(unrelatedFile, path.join(stateDir, HOST_LOCAL_VLLM_PENDING_RETIREMENT_FILE)); + + recordPendingHostLocalVllmRetirement("alpha", home); + + expect({ + unrelated: fs.readFileSync(unrelatedFile, "utf8"), + pending: readPendingHostLocalVllmRetirement(home), + }).toEqual({ unrelated: "untouched", pending: "alpha" }); +}); diff --git a/src/lib/inference/local-model-profile/cleanup.ts b/src/lib/inference/local-model-profile/cleanup.ts index 56c3c3d5a05..ab985ae4736 100644 --- a/src/lib/inference/local-model-profile/cleanup.ts +++ b/src/lib/inference/local-model-profile/cleanup.ts @@ -6,6 +6,7 @@ import fs from "node:fs"; import os from "node:os"; import path from "node:path"; +import { writeConfigFile } from "../../state/config-io"; import type { ContainerEngine } from "../../adapters/container-engine"; import { dockerCapture, dockerForceRm, dockerRun } from "../../adapters/docker/local-model-runtime"; import { @@ -1615,8 +1616,7 @@ function pendingHostLocalVllmRetirementPath(homeDir: string | undefined): string */ export function recordPendingHostLocalVllmRetirement(sandboxName: string, homeDir?: string): void { const filePath = pendingHostLocalVllmRetirementPath(homeDir); - fs.mkdirSync(path.dirname(filePath), { mode: 0o700, recursive: true }); - fs.writeFileSync(filePath, `${JSON.stringify({ sandboxName })}\n`, { mode: 0o600 }); + writeConfigFile(filePath, { sandboxName }); } /** Sandbox name whose managed vLLM retirement is pending, or null. */ diff --git a/test/e2e/README.md b/test/e2e/README.md index a282284ffaf..c310370412e 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -1599,25 +1599,30 @@ Validate phase coverage without executing test bodies with: npm run test:e2e-phases:check ``` +### Managed vLLM final-consumer lifecycle + +The existing `gpu-e2e` target runs its managed vLLM case twice. Each cycle onboards +the supported fixed profile on port 18000, exports its configuration, then checks +status, doctor, and connect with the port override cleared. Normal cleanup destroys +the final sandbox and checks actual container and listener absence before any +fixture fallback cleanup. The second cycle proves that onboarding can reacquire +the released GPU resources. + +Source tests own shared-consumer retention, receipt ownership, invalid recorded +routes, and interrupted-cleanup recovery. The physical Spark Express test retains +its existing platform-specific qualification. + ### DGX Spark Express vLLM -`spark-express-vllm.test.ts` is a physical-host qualification for the second DGX Spark Express inference option, the catalog-backed fixed vLLM profile, and the managed vLLM last-consumer lifecycle. +`spark-express-vllm.test.ts` is a physical-host qualification for the second DGX Spark Express inference option, the catalog-backed fixed vLLM profile. It requires a qualified NVIDIA DGX Spark with Docker, NVIDIA Container Toolkit, OpenShell prerequisites, enough storage for the pinned image and model, and no unrelated `nemoclaw-vllm` container. The target accepts only a local Docker socket and the default Docker context, rejects remote selectors, and treats Docker inspection errors as preflight failures instead of absent resources. The target sources `scripts/install.sh` from the candidate checkout, calls the Express option-selection functions with option 2, and invokes the candidate CLI directly for onboarding. It does not run the hosted installer bootstrap, clone or ref selection, dependency installation, CLI exposure, or the real terminal prompt. Separate installer tests own those earlier boundaries. -The live target refuses to replace either of its two sandbox names, a pre-existing `nemoclaw-vllm` container, or a listener on its non-default test port. +The live target refuses to replace a pre-existing sandbox or `nemoclaw-vllm` container. It preserves the shared Hugging Face cache, records the created sandbox and container identities, and revalidates each identity before cleanup. If onboarding exits nonzero, the target captures the managed-container log tail and sandbox details before cleanup. -After the first onboard, it runs `status` and `doctor` without carrying `NEMOCLAW_VLLM_PORT` forward and verifies that both report health on the custom port. -This profile is bearer-protected, so NemoClaw reads that port from the managed container's published loopback binding. -`src/lib/inference/local.test.ts`, `src/lib/actions/sandbox/status.test.ts`, and `src/lib/actions/sandbox/doctor-inference.test.ts` cover recorded-route port selection for bearerless servers. -The target then runs `connect --probe-only` with `NEMOCLAW_VLLM_PORT` set to a verified-unused port. -The probe succeeds because `connect` does not read that variable on a healthy route. -`src/lib/actions/sandbox/connect-route-repair.test.ts` covers the repair path that reads the recorded port. -The target destroys the final consumer, verifies that the managed container and listener are absent, then onboards a second sandbox on the released port and verifies inference again. -The successful second managed-vLLM start is the GPU-resource reacquisition evidence. The standard E2E artifacts retain bounded command output. Run the target from a clean candidate checkout on the Spark host: @@ -1631,7 +1636,7 @@ npx tsx tools/e2e/live-vitest-invocation.mts run \ --test-path test/e2e/live/spark-express-vllm.test.ts ``` -A passing target establishes that the source-checkout option-2 path selects the fixed vLLM preset and recipe, the managed container carries catalog provenance and the catalog-derived serve command, `status` and `doctor` report health on the custom port without `NEMOCLAW_VLLM_PORT`, `connect --probe-only` succeeds without `NEMOCLAW_VLLM_PORT` naming that port, final-consumer destroy retires the managed container and listener, a subsequent managed-vLLM onboard reacquires the GPU resource, `inference.local` completes a chat request after reacquisition, and unrelated sandbox egress receives an HTTP `403` response. +A passing target establishes that the source-checkout option-2 path selects the fixed vLLM preset and recipe, the managed container carries catalog provenance and the catalog-derived serve command, `inference.local` completes a chat request, and unrelated sandbox egress receives an HTTP `403` response. The checker preserves coverage for every file under `test/e2e/live/` and adds workflow-selected integration files from the authoritative shared-job planner. diff --git a/test/e2e/live/gpu-e2e.test.ts b/test/e2e/live/gpu-e2e.test.ts index 0e01ecbc9c9..08f0f7321df 100644 --- a/test/e2e/live/gpu-e2e.test.ts +++ b/test/e2e/live/gpu-e2e.test.ts @@ -5,10 +5,7 @@ import fs from "node:fs"; import os from "node:os"; import path from "node:path"; import { EXPORTED_VLLM_PROFILE_ID } from "../../../src/lib/config/model.ts"; -import type { - V1Alpha1OllamaProxyService, - V1Alpha1VllmService, -} from "../../../src/lib/config/v1alpha1-export.ts"; +import type { V1Alpha1OllamaProxyService } from "../../../src/lib/config/v1alpha1-export.ts"; import { cleanupLocalModelRuntimes } from "../../../src/lib/inference/local-model-profile/cleanup.ts"; import { HOST_LOCAL_VLLM_CONTAINER_NAME } from "../../../src/lib/inference/serving/vllm-host-local-lifecycle.ts"; import { loadManagedVllmApiKey } from "../../../src/lib/inference/vllm-api-key.ts"; @@ -154,19 +151,14 @@ test( await artifacts.writeText("install-gpu-ollama.log", resultText(install)); progress.phase("validate GPU runtime status"); - const status = await host.command("node", [CLI, SANDBOX_NAME, "status"], { + await host.command("node", [CLI, SANDBOX_NAME, "status"], { artifactName: "status-gpu-ollama", env: env(), timeoutMs: 120_000, }); - expect(resultText(status)).toContain("Sandbox GPU: enabled"); - expect(resultText(status)).toContain("CUDA verified"); const installLog = resultText(install); assertGpuInstallProofs(installLog); - expect(installLog).not.toMatch( - /Recreating OpenShell Docker sandbox container with NVIDIA GPU access|Docker GPU mode selected/u, - ); const sandboxContainers = await runtimeProvider.command( [ @@ -311,7 +303,6 @@ exit 1`, { artifactName: "ollama-daemon-restart-unloaded", env: env(), timeoutMs: 90_000 }, ); const restartLines = restart.stdout.trim().split("\n"); - expect(restartLines[0]).toMatch(/^restart_mode=(system|user|manual)$/u); expect(loadedOllamaModels(restartLines.slice(1).join("\n"))).toEqual([]); const recovered = await host.nemoclaw( @@ -558,7 +549,6 @@ exec ollama pull qwen2.5:0.5b`, const firstYaml = fs.readFileSync(firstPath, "utf8"); const first = parseConfigExport(firstYaml); const service = first.spec.services?.["ollama-auth"] as V1Alpha1OllamaProxyService | undefined; - expect(service?.image).toBeNull(); expect(service?.upstream.model.digest).toBe(model!.digest.replace(/^sha256:/u, "")); const proxyToken = readTokenFileChecked(ollamaProxyTokenFile()).token; artifacts.addRedactionValues([proxyToken]); @@ -570,8 +560,8 @@ exec ollama pull qwen2.5:0.5b`, }, ); -test( - "OpenClaw exports the fixed managed vLLM profile through a named service (#12012)", +test.for(["initial", "after retirement"])( + "Managed vLLM %s: recorded-port health, export, and final-consumer retirement (#12012, #11374)", { timeout: VLLM_EXPORT_TIMEOUT_MS, meta: { @@ -579,12 +569,13 @@ test( "qualify the managed vLLM export host", "onboard the fixed managed vLLM profile", "export the managed vLLM configuration", + "verify the recorded custom port without the onboarding override", ], }, }, - async ({ artifacts, cleanup, host, progress, runtimeProvider, sandbox }) => { + async (cycle, { artifacts, cleanup, host, progress, runtimeProvider, sandbox }) => { const exportEnv = vllmExportEnv(); - let managedVllmOnboarded = false; + const statusEnv = { ...exportEnv, NEMOCLAW_VLLM_PORT: "" }; await artifacts.target.declare({ id: "gpu-e2e", boundary: @@ -592,6 +583,7 @@ test( credentialBoundary: "The managed vLLM bearer key remains in owner-only host state and is registered with the artifact redactor before evidence publication.", profileId: EXPORTED_VLLM_PROFILE_ID, + cycle, sandboxName: SANDBOX_NAME, }); @@ -615,15 +607,40 @@ test( ).toMatch(/^1\n[\s\S]*no such (?:object|container)/iu); await cleanupGpu(host, sandbox); - cleanup.trackDisposable("remove the exact managed vLLM runtime", () => { - const result = cleanupLocalModelRuntimes({ env: exportEnv, sandboxName: SANDBOX_NAME }); - expect( - result.ok && - (!managedVllmOnboarded || - result.removed.some((resource) => resource.startsWith("container:"))), - JSON.stringify(result), - ).toBe(true); + cleanup.trackDisposable("verify final-consumer vLLM retirement", async () => { + try { + const remaining = await host.command( + "docker", + [ + "container", + "ls", + "--all", + "--quiet", + "--filter", + `name=^/${HOST_LOCAL_VLLM_CONTAINER_NAME}$`, + ], + { artifactName: "vllm-retired-inventory", env: exportEnv, timeoutMs: 30_000 }, + ); + const listener = await host.command("ss", ["-H", "-ltn", "sport = :18000"], { + artifactName: "vllm-retired-listener", + env: exportEnv, + timeoutMs: 30_000, + }); + expect( + { + inventoryExit: remaining.exitCode, + containers: remaining.stdout.trim(), + listenerExit: listener.exitCode, + listeners: listener.stdout.trim(), + }, + `${resultText(remaining)}\n${resultText(listener)}`, + ).toEqual({ inventoryExit: 0, containers: "", listenerExit: 0, listeners: "" }); + } finally { + // Preserve failed retirement evidence before the fixture attempts best-effort cleanup. + cleanupLocalModelRuntimes({ env: exportEnv, sandboxName: SANDBOX_NAME }); + } }); + cleanup.trackGateway(host, "nemoclaw", { artifactName: "vllm-export-cleanup-gateway", env: exportEnv, @@ -662,7 +679,6 @@ test( }, ); expect(onboard.exitCode, resultText(onboard)).toBe(0); - managedVllmOnboarded = true; const apiKey = loadManagedVllmApiKey(); artifacts.addRedactionValues([apiKey ?? ""]); @@ -684,10 +700,45 @@ test( ); expect(exported.exitCode, resultText(exported)).toBe(0); const yaml = fs.readFileSync(outputPath, "utf8"); - const document = parseConfigExport(yaml); - const service = document.spec.services?.vllm as V1Alpha1VllmService | undefined; - expect(service?.image).toBeNull(); + parseConfigExport(yaml); expect(apiKey && yaml.includes(apiKey)).toBe(false); await artifacts.writeText("vllm-config-export.yaml", yaml); + + progress.phase("verify the recorded custom port without the onboarding override"); + const status = await host.command("node", [CLI, SANDBOX_NAME, "status", "--json"], { + artifactName: "vllm-recorded-port-status", + cwd: REPO_ROOT, + env: statusEnv, + timeoutMs: 180_000, + }); + const health = JSON.parse(status.stdout) as { + inferenceHealth: { subprobes: Array<{ endpoint: string; ok: boolean }> }; + }; + expect( + health.inferenceHealth.subprobes.find( + (probe) => probe.endpoint === "http://127.0.0.1:18000/v1/models", + )?.ok, + ).toBe(true); + const doctor = await host.command("node", [CLI, SANDBOX_NAME, "doctor", "--json"], { + artifactName: "vllm-recorded-port-doctor", + cwd: REPO_ROOT, + env: statusEnv, + timeoutMs: 180_000, + }); + const diagnosis = JSON.parse(doctor.stdout) as { + checks: Array<{ detail: string; status: string }>; + }; + expect( + diagnosis.checks.find( + (check) => check.detail === "http://127.0.0.1:18000/v1/models reachable", + )?.status, + ).toBe("ok"); + const connect = await host.command("node", [CLI, SANDBOX_NAME, "connect", "--probe-only"], { + artifactName: "vllm-recorded-port-connect", + cwd: REPO_ROOT, + env: statusEnv, + timeoutMs: 300_000, + }); + expect(connect.exitCode, resultText(connect)).toBe(0); }, ); diff --git a/test/e2e/live/spark-express-vllm.test.ts b/test/e2e/live/spark-express-vllm.test.ts index d4d6d655372..137d2e0c997 100644 --- a/test/e2e/live/spark-express-vllm.test.ts +++ b/test/e2e/live/spark-express-vllm.test.ts @@ -7,6 +7,7 @@ import assert from "node:assert/strict"; import { loadServingCatalog } from "../../../src/lib/inference/serving/catalog-loader.ts"; import { materializeHostLocalVllmSelection } from "../../../src/lib/inference/serving/host-local-vllm-selection.ts"; +import { resolveManagedVllmBridgeHost } from "../../../src/lib/inference/serving/vllm-host-local-network.ts"; import { detectVllmProfile } from "../../../src/lib/inference/vllm.ts"; import { buildVllmServeCommand } from "../../../src/lib/inference/vllm-models.ts"; import { @@ -33,23 +34,26 @@ import { } from "./inference-routing-helpers.ts"; const SANDBOX_NAME = process.env.NEMOCLAW_SANDBOX_NAME ?? "e2e-spark-vllm"; -const REPLACEMENT_SANDBOX_NAME = - SANDBOX_NAME === "e2e-vllm-after" ? "e2e-vllm-next" : "e2e-vllm-after"; const VLLM_CONTAINER = "nemoclaw-vllm"; -const CUSTOM_VLLM_PORT = 46_145; -const FALLBACK_VLLM_PORT = CUSTOM_VLLM_PORT + 1; -const TEST_TIMEOUT_MS = 120 * 60_000; +const TEST_TIMEOUT_MS = 65 * 60_000; const ONBOARD_TIMEOUT_MS = 55 * 60_000; interface VllmContainerInspection { readonly Id: string; readonly Config: { readonly Cmd: string[]; + readonly Entrypoint: string[]; + readonly Image: string; readonly Labels: Record; }; readonly HostConfig: { + readonly DeviceRequests: Array<{ Count: number; Capabilities: string[][] }>; + readonly IpcMode: string; + readonly NetworkMode: string; readonly PortBindings: Record>; + readonly ShmSize: number; }; + readonly Mounts: Array<{ Destination: string; RW: boolean; Type: string }>; } function e2eEnv(extra: NodeJS.ProcessEnv = {}): NodeJS.ProcessEnv { @@ -93,92 +97,28 @@ function capturedVllmContainerId(result: CommandExitResult): string | null { return candidate && /^[a-f0-9]{64}$/u.test(candidate.Id) ? candidate.Id : null; } -async function probeVllmContainer( - host: HostCliClient, - artifactName: string, -): Promise { - return host.command("docker", ["inspect", VLLM_CONTAINER], { - artifactName, +async function assertVllmContainerAbsent(host: HostCliClient): Promise { + const result = await host.command("docker", ["inspect", VLLM_CONTAINER], { + artifactName: "preflight-spark-express-vllm-container", env: e2eEnv(), timeoutMs: 30_000, }); + expect( + classifyDockerContainerInspection(result), + `Refusing to replace a pre-existing ${VLLM_CONTAINER} container.\n${resultText(result)}`, + ).toBe("absent"); } -async function probeSandboxNames( - host: HostCliClient, - artifactName: string, -): Promise { - return host.command("openshell", ["sandbox", "list", "--names"], { - artifactName, +async function assertSandboxAbsent(host: HostCliClient, sandboxName: string): Promise { + const result = await host.command("openshell", ["sandbox", "list", "--names"], { + artifactName: "preflight-spark-express-sandbox-list", env: e2eEnv(), timeoutMs: 30_000, }); -} - -async function probeHostPort( - host: HostCliClient, - port: number, - artifactName: string, -): Promise { - return host.command("ss", ["-H", "-ltn", `sport = :${String(port)}`], { - artifactName, - env: e2eEnv(), - timeoutMs: 30_000, - }); -} - -async function onboardSparkExpressVllm( - host: HostCliClient, - sandboxName: string, - artifactName: string, -): Promise { - return host.command( - "bash", - [ - "--noprofile", - "--norc", - "-c", - [ - "set -euo pipefail", - "source scripts/install.sh >/dev/null", - "exec 9<<<'2'", - "select_spark_express_inference 9", - "exec 9<&-", - '[[ "${_SPARK_EXPRESS_INFERENCE_SELECTION:-}" == "fixed-vllm" ]]', - 'activate_express_install "DGX Spark"', - '[[ "${NEMOCLAW_ENABLE_LOCAL_MODEL_PROFILE:-}" == "1" ]]', - '[[ "${NEMOCLAW_LOCAL_MODEL_RUNTIME:-}" == "vllm" ]]', - '[[ -z "${NEMOCLAW_PROVIDER:-}" ]]', - '[[ -z "${NEMOCLAW_MODEL:-}" ]]', - '[[ -z "${NEMOCLAW_VLLM_MODEL:-}" ]]', - "exec node bin/nemoclaw.js onboard --fresh --non-interactive --yes --yes-i-accept-third-party-software", - ].join("\n"), - ], - { - artifactName, - cwd: REPO_ROOT, - env: e2eEnv({ - NEMOCLAW_SANDBOX_NAME: sandboxName, - NEMOCLAW_VLLM_PORT: String(CUSTOM_VLLM_PORT), - }), - timeoutMs: ONBOARD_TIMEOUT_MS, - }, - ); -} - -async function runCandidateNemoClaw( - host: HostCliClient, - args: string[], - artifactName: string, - timeoutMs = 180_000, - extraEnv: NodeJS.ProcessEnv = {}, -): Promise { - return host.command("node", ["bin/nemoclaw.js", ...args], { - artifactName, - cwd: REPO_ROOT, - env: e2eEnv(extraEnv), - timeoutMs, - }); + expect( + listedSandboxNames(result).has(sandboxName), + `Refusing to replace a pre-existing ${sandboxName} sandbox.\n${resultText(result)}`, + ).toBe(false); } async function inspectSandbox(host: HostCliClient, sandboxName: string, artifactName: string) { @@ -275,24 +215,20 @@ async function removeExactVllmContainer( } test( - "DGX Spark Express option 2 releases and reacquires managed vLLM on a custom port", + "DGX Spark Express option 2 materializes the fixed vLLM profile and routes sandbox inference", { timeout: TEST_TIMEOUT_MS, meta: { e2ePhases: [ "qualify the physical DGX Spark host", - "select Spark Express option 2 and onboard on a custom port", + "select Spark Express option 2 and onboard through the local-model profile", "verify catalog-owned vLLM runtime configuration", - "verify status, doctor, connect, and inference on the custom port", - "destroy the final consumer and verify managed vLLM retirement", - "onboard a replacement after the GPU resource is released", - "prove replacement inference and unrelated egress denial", + "prove sandbox inference and unrelated egress denial", ], }, }, async ({ artifacts, cleanup, host, progress, runtimeProvider, sandbox }) => { validateSandboxName(SANDBOX_NAME); - validateSandboxName(REPLACEMENT_SANDBOX_NAME); assertLocalDockerEnvironment(process.env); const plan = vllmProfilePlan(); const baseProfile = detectVllmProfile({ platform: "spark" }); @@ -338,11 +274,17 @@ test( timeoutMs: 30_000, }, ); + expect(platform.exitCode, resultText(platform)).toBe(0); expect(platform.stdout.trim()).toBe("DGX Spark"); + const nvidia = await host.command("nvidia-smi", [], { + artifactName: "spark-express-nvidia-smi", + env: e2eEnv(), + timeoutMs: 30_000, + }); + expect(nvidia.exitCode, resultText(nvidia)).toBe(0); let createdContainerId: string | null = null; let createdSandboxId: string | null = null; - let createdReplacementSandboxId: string | null = null; cleanup.add(`remove ${VLLM_CONTAINER}`, () => createdContainerId ? removeExactVllmContainer(host, createdContainerId, "cleanup-spark-express-vllm-container") @@ -353,41 +295,39 @@ test( ? removeExactSandbox(host, sandbox, SANDBOX_NAME, createdSandboxId) : Promise.resolve(), ); - cleanup.add(`remove sandbox ${REPLACEMENT_SANDBOX_NAME}`, () => - createdReplacementSandboxId - ? removeExactSandbox(host, sandbox, REPLACEMENT_SANDBOX_NAME, createdReplacementSandboxId) - : Promise.resolve(), - ); - const preflightContainer = await probeVllmContainer( - host, - "preflight-spark-express-vllm-container", - ); - expect( - classifyDockerContainerInspection(preflightContainer), - `Refusing to replace a pre-existing ${VLLM_CONTAINER} container.\n${resultText(preflightContainer)}`, - ).toBe("absent"); - const preflightSandboxes = await probeSandboxNames( - host, - "preflight-spark-express-sandbox-list", - ); - expect( - listedSandboxNames(preflightSandboxes).has(SANDBOX_NAME) || - listedSandboxNames(preflightSandboxes).has(REPLACEMENT_SANDBOX_NAME), - `Refusing to replace a pre-existing test sandbox.\n${resultText(preflightSandboxes)}`, - ).toBe(false); - const preflightPort = await probeHostPort( - host, - CUSTOM_VLLM_PORT, - "preflight-spark-express-vllm-port", - ); - expect(preflightPort.exitCode, resultText(preflightPort)).toBe(0); - expect( - preflightPort.stdout.trim(), - `TCP port ${String(CUSTOM_VLLM_PORT)} is already in use`, - ).toBe(""); + await assertVllmContainerAbsent(host); + await assertSandboxAbsent(host, SANDBOX_NAME); - progress.phase("select Spark Express option 2 and onboard on a custom port"); - const onboard = await onboardSparkExpressVllm(host, SANDBOX_NAME, "spark-express-vllm-onboard"); + progress.phase("select Spark Express option 2 and onboard through the local-model profile"); + const onboard = await host.command( + "bash", + [ + "--noprofile", + "--norc", + "-c", + [ + "set -euo pipefail", + "source scripts/install.sh >/dev/null", + "exec 9<<<'2'", + "select_spark_express_inference 9", + "exec 9<&-", + '[[ "${_SPARK_EXPRESS_INFERENCE_SELECTION:-}" == "fixed-vllm" ]]', + 'activate_express_install "DGX Spark"', + '[[ "${NEMOCLAW_ENABLE_LOCAL_MODEL_PROFILE:-}" == "1" ]]', + '[[ "${NEMOCLAW_LOCAL_MODEL_RUNTIME:-}" == "vllm" ]]', + '[[ -z "${NEMOCLAW_PROVIDER:-}" ]]', + '[[ -z "${NEMOCLAW_MODEL:-}" ]]', + '[[ -z "${NEMOCLAW_VLLM_MODEL:-}" ]]', + "exec node bin/nemoclaw.js onboard --fresh --non-interactive --yes --yes-i-accept-third-party-software", + ].join("\n"), + ], + { + artifactName: "spark-express-vllm-onboard", + cwd: REPO_ROOT, + env: e2eEnv(), + timeoutMs: ONBOARD_TIMEOUT_MS, + }, + ); const inspectionResult = await host.command("docker", ["inspect", VLLM_CONTAINER], { artifactName: "spark-express-vllm-container-inspect", @@ -411,8 +351,12 @@ test( createdSandboxId, "onboarding did not create the expected sandbox identity", ).not.toBeNull(); - expect(createdContainerId, "onboarding did not create managed vLLM").not.toBeNull(); + expect(inspectionResult.exitCode, resultText(inspectionResult)).toBe(0); const [inspection] = JSON.parse(inspectionResult.stdout) as VllmContainerInspection[]; + expect(inspection.Id).toBe(createdContainerId); + expect(inspection.Config.Image).toBe(plan.recipe.spec.runtime.image); + expect(inspection.Config.Entrypoint).toEqual(["/bin/bash"]); + expect(inspection.Config.Cmd[0]).toBe("-lc"); expect(inspection.Config.Cmd[1]).toBe(buildVllmServeCommand(materialized.model, e2eEnv())); expect(inspection.Config.Labels).toMatchObject({ "com.nvidia.nemoclaw.managed-vllm": "true", @@ -422,133 +366,45 @@ test( "com.nvidia.nemoclaw.serving-recipe": plan.recipe.metadata.id, "com.nvidia.nemoclaw.serving-recipe-digest": plan.recipeDigest, }); + expect(inspection.HostConfig.NetworkMode).toBe(plan.recipe.spec.runtime.networkMode); + expect(inspection.HostConfig.IpcMode).toBe(plan.recipe.spec.runtime.ipcMode); + expect(inspection.HostConfig.ShmSize).toBe(plan.recipe.spec.runtime.sharedMemoryBytes); const portBindings = inspection.HostConfig.PortBindings["8000/tcp"]; - expect(portBindings).toContainEqual({ - HostIp: "127.0.0.1", - HostPort: String(CUSTOM_VLLM_PORT), - }); - - progress.phase("verify status, doctor, connect, and inference on the custom port"); - const status = await runCandidateNemoClaw( - host, - [SANDBOX_NAME, "status", "--json"], - "spark-express-vllm-status", - ); - expect(JSON.parse(status.stdout)).toMatchObject({ - inferenceHealth: { - ok: true, - subprobes: expect.arrayContaining([ - expect.objectContaining({ - ok: true, - endpoint: `http://127.0.0.1:${String(CUSTOM_VLLM_PORT)}/v1/models`, - }), - ]), - }, - }); - const doctor = await runCandidateNemoClaw( - host, - [SANDBOX_NAME, "doctor", "--json"], - "spark-express-vllm-doctor", - ); - expect(JSON.parse(doctor.stdout)).toMatchObject({ - checks: expect.arrayContaining([ + expect(portBindings).toHaveLength(2); + expect(portBindings).toContainEqual({ HostIp: "127.0.0.1", HostPort: "8000" }); + expect(portBindings).toEqual( + expect.arrayContaining([ expect.objectContaining({ - group: "Inference", - label: "Provider health (vllm backend)", - status: "ok", - detail: `http://127.0.0.1:${String(CUSTOM_VLLM_PORT)}/v1/models reachable`, + HostIp: expect.stringMatching(/^(?!127\.0\.0\.1$)(?!0\.0\.0\.0$).+/u), + HostPort: "8000", }), ]), - }); - const fallbackPort = await probeHostPort( - host, - FALLBACK_VLLM_PORT, - "preflight-spark-express-vllm-fallback-port", ); - expect(fallbackPort.exitCode, resultText(fallbackPort)).toBe(0); - expect( - fallbackPort.stdout.trim(), - `Fallback TCP port ${String(FALLBACK_VLLM_PORT)} is already in use`, - ).toBe(""); - const connect = await runCandidateNemoClaw( - host, - [SANDBOX_NAME, "connect", "--probe-only"], - "spark-express-vllm-connect-probe", - 300_000, - { NEMOCLAW_VLLM_PORT: String(FALLBACK_VLLM_PORT) }, - ); - expect(connect.exitCode, resultText(connect)).toBe(0); - - progress.phase("destroy the final consumer and verify managed vLLM retirement"); - const destroy = await runCandidateNemoClaw( - host, - [SANDBOX_NAME, "destroy", "--yes"], - "spark-express-vllm-destroy", - 300_000, - ); - expect(destroy.exitCode, resultText(destroy)).toBe(0); - const retiredSandboxes = await probeSandboxNames(host, "retired-spark-express-sandbox-list"); - expect( - listedSandboxNames(retiredSandboxes).has(SANDBOX_NAME), - `Sandbox ${SANDBOX_NAME} still exists after destroy.\n${resultText(retiredSandboxes)}`, - ).toBe(false); - const retiredContainer = await probeVllmContainer(host, "retired-spark-express-vllm-container"); - expect( - classifyDockerContainerInspection(retiredContainer), - `Managed container ${VLLM_CONTAINER} still exists after destroy.\n${resultText(retiredContainer)}`, - ).toBe("absent"); - const retiredPort = await probeHostPort( - host, - CUSTOM_VLLM_PORT, - "retired-spark-express-vllm-port", - ); - expect(retiredPort.exitCode, resultText(retiredPort)).toBe(0); - expect( - retiredPort.stdout.trim(), - `TCP port ${String(CUSTOM_VLLM_PORT)} is still in use after destroy`, - ).toBe(""); - createdSandboxId = null; - createdContainerId = null; - - progress.phase("onboard a replacement after the GPU resource is released"); - const replacementOnboard = await onboardSparkExpressVllm( - host, - REPLACEMENT_SANDBOX_NAME, - "spark-express-vllm-replacement-onboard", + const bridgeBinding = portBindings.find(({ HostIp }) => HostIp !== "127.0.0.1"); + expect(bridgeBinding?.HostIp).toBe(resolveManagedVllmBridgeHost()); + expect(inspection.HostConfig.DeviceRequests).toEqual( + expect.arrayContaining([expect.objectContaining({ Count: -1, Capabilities: [["gpu"]] })]), ); - const replacementInspection = await host.command("docker", ["inspect", VLLM_CONTAINER], { - artifactName: "spark-express-vllm-replacement-container-inspect", - env: e2eEnv(), - timeoutMs: 30_000, - }); - createdContainerId = capturedVllmContainerId(replacementInspection); - const replacementSandboxInspection = await inspectSandbox( - host, - REPLACEMENT_SANDBOX_NAME, - "spark-express-vllm-replacement-sandbox-inspect", + expect(inspection.Mounts).toEqual( + expect.arrayContaining([ + expect.objectContaining({ + Destination: `${plan.recipe.spec.runtime.modelCache.target}/hub`, + RW: false, + Type: "bind", + }), + ]), ); - createdReplacementSandboxId = - replacementSandboxInspection.kind === "present" ? replacementSandboxInspection.id : null; - await (replacementOnboard.exitCode !== 0 - ? captureOnboardFailureDiagnostics(host, REPLACEMENT_SANDBOX_NAME) - : Promise.resolve()); - expect(replacementOnboard.exitCode, resultText(replacementOnboard)).toBe(0); - expect( - createdReplacementSandboxId, - "replacement onboarding did not create its sandbox", - ).not.toBeNull(); - expect(createdContainerId, "replacement onboarding did not create managed vLLM").not.toBeNull(); - progress.phase("prove replacement inference and unrelated egress denial"); + progress.phase("prove sandbox inference and unrelated egress denial"); await expectOpenAiChatThroughSandbox( sandbox, - REPLACEMENT_SANDBOX_NAME, + SANDBOX_NAME, plan.recipe.spec.model.servedName, [], - "spark-express-replacement-inference-local-chat", + "spark-express-inference-local-chat", ); const denied = await sandbox.execShell( - REPLACEMENT_SANDBOX_NAME, + SANDBOX_NAME, trustedSandboxShellScript( "status=0; code=$(curl -sS -o /dev/null -w '%{http_connect}' --max-time 20 https://example.com/) || status=$?; printf '%s %s' \"$status\" \"$code\"", ), @@ -558,6 +414,7 @@ test( timeoutMs: 30_000, }, ); + expect(denied.exitCode, resultText(denied)).toBe(0); expect(denied.stdout.trim()).toBe("56 403"); }, ); diff --git a/test/e2e/mock-parity.json b/test/e2e/mock-parity.json index 68aa5bbdeaa..5b82fe18055 100644 --- a/test/e2e/mock-parity.json +++ b/test/e2e/mock-parity.json @@ -611,7 +611,14 @@ "test/e2e/support/e2e-cleanup-resources.test.ts", "test/e2e/support/e2e-clients.test.ts", "test/e2e/support/workflow-plan.test.ts", - "test/helpers/e2e-answer-assertions.test.ts" + "test/helpers/e2e-answer-assertions.test.ts", + "src/lib/actions/sandbox/connect-route-repair.test.ts", + "src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts", + "src/lib/actions/sandbox/destroy-managed-vllm.test.ts", + "src/lib/actions/sandbox/doctor-inference.test.ts", + "src/lib/actions/sandbox/status.test.ts", + "src/lib/inference/local.test.ts", + "src/lib/inference/local-model-profile/cleanup-vllm-absence.test.ts" ] }, { @@ -977,13 +984,6 @@ { "live": "test/e2e/live/spark-express-vllm.test.ts", "fast": [ - "src/lib/actions/sandbox/connect-route-repair.test.ts", - "src/lib/actions/sandbox/destroy-managed-vllm-flow.test.ts", - "src/lib/actions/sandbox/destroy-managed-vllm.test.ts", - "src/lib/actions/sandbox/doctor-inference.test.ts", - "src/lib/actions/sandbox/status.test.ts", - "src/lib/inference/local-model-profile/cleanup.test.ts", - "src/lib/inference/local.test.ts", "src/lib/inference/serving/catalog.test.ts", "src/lib/inference/serving/host-local-vllm-selection.test.ts", "src/lib/inference/vllm-models.test.ts", From 2d41c091cef0b07584526f747641565a9b10ac5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 17:45:53 -0700 Subject: [PATCH 11/18] fix(deps): resolve fast-uri production audit failures Update fast-uri from 3.1.6 to 3.1.7 in the four affected production graphs. Refresh the reviewed lock digests, Docker lock pins, and packaged MCP bundle. All six production audits pass with no high or critical findings. Signed-off-by: Aaron Erickson --- Dockerfile | 2 +- Dockerfile.base | 2 +- agents/openclaw/mcporter-runtime/package-lock.json | 6 +++--- agents/openclaw/mcporter-runtime/package.json | 2 +- agents/openclaw/openclaw-runtime/package-lock.json | 6 +++--- agents/openclaw/openclaw-runtime/package.json | 2 +- ci/reviewed-npm-audit.json | 6 +++--- package-lock.json | 6 +++--- package.json | 2 +- test/agents/openclaw/openclaw-locked-install.test.ts | 6 +++--- test/security/mcporter-supply-chain.test.ts | 4 ++-- tools/mcp-tool-discovery-runtime/package-lock.json | 6 +++--- tools/mcp-tool-discovery-runtime/package.json | 2 +- .../mcp-tool-discovery/BUNDLED_PACKAGES.json | 2 +- .../mcp-tool-discovery/THIRD_PARTY_LICENSES.txt | 2 +- .../mcp-tool-discovery/mcp-tool-discovery.bundle | 2 +- 16 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3af2da68b36..6a8de04e243 100644 --- a/Dockerfile +++ b/Dockerfile @@ -943,7 +943,7 @@ RUN --mount=type=secret,id=nemoclaw-mcporter-audit-receipt,required=false \ OPENCLAW_LOCK_SHA256=none-legacy-fixture; \ OPENCLAW_RECIPE='ignore-scripts+reviewed-lifecycle-v1'; \ if [ "$OPENCLAW_VERSION" = "2026.9.1" ]; then \ - OPENCLAW_LOCK_SHA256=9f99aa4f5d10280b4d809e0d54f20bcbe786d4140d30fc10ed502b1305ff9a8d; \ + OPENCLAW_LOCK_SHA256=c015570ccccf56986c3d92a85de6f7aa507110f6a11cc2eedd80752672589f9b; \ ACTUAL_OPENCLAW_LOCK_SHA256="$(sha256sum /usr/local/lib/nemoclaw/openclaw-runtime/package-lock.json | awk '{print $1}')"; \ [ "$ACTUAL_OPENCLAW_LOCK_SHA256" = "$OPENCLAW_LOCK_SHA256" ] \ || { echo "ERROR: OpenClaw lock SHA-256 mismatch (expected $OPENCLAW_LOCK_SHA256, found $ACTUAL_OPENCLAW_LOCK_SHA256)" >&2; exit 1; }; \ diff --git a/Dockerfile.base b/Dockerfile.base index c91e4a0e66f..edd2f4aeea4 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -515,7 +515,7 @@ RUN --mount=type=bind,source=nemoclaw-blueprint/blueprint.yaml,target=/tmp/bluep OPENCLAW_LOCK_SHA256=none-legacy-fixture; \ OPENCLAW_RECIPE='ignore-scripts+reviewed-lifecycle-v1'; \ if [ "$OPENCLAW_VERSION" = "2026.9.1" ]; then \ - OPENCLAW_LOCK_SHA256=9f99aa4f5d10280b4d809e0d54f20bcbe786d4140d30fc10ed502b1305ff9a8d; \ + OPENCLAW_LOCK_SHA256=c015570ccccf56986c3d92a85de6f7aa507110f6a11cc2eedd80752672589f9b; \ ACTUAL_OPENCLAW_LOCK_SHA256="$(sha256sum /usr/local/lib/nemoclaw/openclaw-runtime/package-lock.json | awk '{print $1}')"; \ [ "$ACTUAL_OPENCLAW_LOCK_SHA256" = "$OPENCLAW_LOCK_SHA256" ] \ || { echo "Error: OpenClaw lock SHA-256 mismatch (expected $OPENCLAW_LOCK_SHA256, found $ACTUAL_OPENCLAW_LOCK_SHA256)"; exit 1; }; \ diff --git a/agents/openclaw/mcporter-runtime/package-lock.json b/agents/openclaw/mcporter-runtime/package-lock.json index 4700bd5217b..6e173206a96 100644 --- a/agents/openclaw/mcporter-runtime/package-lock.json +++ b/agents/openclaw/mcporter-runtime/package-lock.json @@ -821,9 +821,9 @@ "license": "MIT" }, "node_modules/fast-uri": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.6.tgz", - "integrity": "sha512-7Ical1vFEMr0onbVzEDIreM22I4khW+fzyQPwvAFWBp1iwdshSZRsL4jjRvPG9JP1uiqMHRto+YU6R2/CzDz5Q==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz", + "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==", "funding": [ { "type": "github", diff --git a/agents/openclaw/mcporter-runtime/package.json b/agents/openclaw/mcporter-runtime/package.json index b3890978c46..aa2f31479cb 100644 --- a/agents/openclaw/mcporter-runtime/package.json +++ b/agents/openclaw/mcporter-runtime/package.json @@ -10,7 +10,7 @@ }, "overrides": { "@hono/node-server": "2.0.11", - "fast-uri": "3.1.6", + "fast-uri": "3.1.7", "hono": "4.12.34", "ip-address": "10.3.1" }, diff --git a/agents/openclaw/openclaw-runtime/package-lock.json b/agents/openclaw/openclaw-runtime/package-lock.json index c09ba96839d..8b12e7cc10c 100644 --- a/agents/openclaw/openclaw-runtime/package-lock.json +++ b/agents/openclaw/openclaw-runtime/package-lock.json @@ -1852,9 +1852,9 @@ } }, "node_modules/fast-uri": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.6.tgz", - "integrity": "sha512-7Ical1vFEMr0onbVzEDIreM22I4khW+fzyQPwvAFWBp1iwdshSZRsL4jjRvPG9JP1uiqMHRto+YU6R2/CzDz5Q==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz", + "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==", "funding": [ { "type": "github", diff --git a/agents/openclaw/openclaw-runtime/package.json b/agents/openclaw/openclaw-runtime/package.json index 800a041b628..41d71bbfe20 100644 --- a/agents/openclaw/openclaw-runtime/package.json +++ b/agents/openclaw/openclaw-runtime/package.json @@ -11,7 +11,7 @@ "overrides": { "hono": "4.12.34", "tar": "7.5.21", - "fast-uri": "3.1.6" + "fast-uri": "3.1.7" }, "engines": { "node": ">=22.22.3 <23 || >=24.15.0 <25 || >=25.9.0" diff --git a/ci/reviewed-npm-audit.json b/ci/reviewed-npm-audit.json index bf4b1e907ce..b3cf720e3f5 100644 --- a/ci/reviewed-npm-audit.json +++ b/ci/reviewed-npm-audit.json @@ -101,7 +101,7 @@ "integrity": "sha512-0Ve0631CdgkJDwd4NNG1BawIdF5yCL2sO+Tts8amStw+H6vKURTj0K4rOa4+hFpJk1Dnw5LyKl5twzwX1VtA2w==", "tarballUrl": "https://registry.npmjs.org/openclaw/-/openclaw-2026.9.1.tgz", "directory": "agents/openclaw/openclaw-runtime", - "lockSha256": "9f99aa4f5d10280b4d809e0d54f20bcbe786d4140d30fc10ed502b1305ff9a8d" + "lockSha256": "c015570ccccf56986c3d92a85de6f7aa507110f6a11cc2eedd80752672589f9b" }, { "id": "mcporter-runtime", @@ -110,7 +110,7 @@ "integrity": "sha512-egoPVYqTnWb3NjRIxo+xc8OrAI0dlPrJm9pAiZx0pImuNIV5rKhGtTnIfH/Y1ldGPVu74ibj3KR5c9U/QSdQFA==", "tarballUrl": "https://registry.npmjs.org/mcporter/-/mcporter-0.7.3.tgz", "directory": "agents/openclaw/mcporter-runtime", - "lockSha256": "720c0e3ec2efcccd2c820ce2a39d733f7bd5bf9d3e6fb95310e7f6cd369db83c" + "lockSha256": "c387e62372cba539d24725e70d26b32093a7bb6f001cd16a473ba74404a4e0f9" }, { "id": "wechat-runtime", @@ -132,7 +132,7 @@ "integrity": "sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==", "tarballUrl": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.30.0.tgz", "directory": "tools/mcp-tool-discovery-runtime", - "lockSha256": "0697681f948bda0b59fc1ff2e4c6dbe2693cc89eec64b11b5be604160643c6e5" + "lockSha256": "cd1470ac69456da681654c399fc970fef16b9befed1106af226c0bf549557439" } ] } diff --git a/package-lock.json b/package-lock.json index aa2a4ebdf9a..3d4c9a1bea2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6288,9 +6288,9 @@ "peer": true }, "node_modules/fast-uri": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.6.tgz", - "integrity": "sha512-7Ical1vFEMr0onbVzEDIreM22I4khW+fzyQPwvAFWBp1iwdshSZRsL4jjRvPG9JP1uiqMHRto+YU6R2/CzDz5Q==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz", + "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==", "funding": [ { "type": "github", diff --git a/package.json b/package.json index ff458f1cf4a..a4beb97d85a 100644 --- a/package.json +++ b/package.json @@ -182,6 +182,6 @@ "vitest": "^4.1.9" }, "overrides": { - "fast-uri": "3.1.6" + "fast-uri": "3.1.7" } } diff --git a/test/agents/openclaw/openclaw-locked-install.test.ts b/test/agents/openclaw/openclaw-locked-install.test.ts index 2f365d81565..d2b424c80da 100644 --- a/test/agents/openclaw/openclaw-locked-install.test.ts +++ b/test/agents/openclaw/openclaw-locked-install.test.ts @@ -19,7 +19,7 @@ const PACKAGE_SPEC = "openclaw@2026.9.1"; const INTEGRITY = "sha512-0Ve0631CdgkJDwd4NNG1BawIdF5yCL2sO+Tts8amStw+H6vKURTj0K4rOa4+hFpJk1Dnw5LyKl5twzwX1VtA2w=="; const TARBALL = "https://registry.npmjs.org/openclaw/-/openclaw-2026.9.1.tgz"; -const LOCK_SHA256 = "9f99aa4f5d10280b4d809e0d54f20bcbe786d4140d30fc10ed502b1305ff9a8d"; +const LOCK_SHA256 = "c015570ccccf56986c3d92a85de6f7aa507110f6a11cc2eedd80752672589f9b"; const roots: string[] = []; function sha256(file: string): string { @@ -173,9 +173,9 @@ describe("locked OpenClaw production installation (#5896)", () => { expect(verified).toHaveLength(366); expect(verified).toContain(PACKAGE_SPEC); expect(verified).toContain("brace-expansion@5.0.9"); - expect(verified).toContain("fast-uri@3.1.6"); + expect(verified).toContain("fast-uri@3.1.7"); - expect(verified).not.toContain("fast-uri@3.1.5"); + expect(verified).not.toContain("fast-uri@3.1.6"); expect(verified).toContain("hono@4.12.34"); expect(verified).toContain("ip-address@10.7.0"); expect(verified).toContain("tar@7.5.21"); diff --git a/test/security/mcporter-supply-chain.test.ts b/test/security/mcporter-supply-chain.test.ts index c8ddcc85080..c16b6e1f927 100644 --- a/test/security/mcporter-supply-chain.test.ts +++ b/test/security/mcporter-supply-chain.test.ts @@ -24,8 +24,8 @@ const expectedHonoNodeServerTarball = "https://registry.npmjs.org/@hono/node-server/-/node-server-2.0.11.tgz"; const expectedHonoVersion = "4.12.34"; const expectedHonoTarball = "https://registry.npmjs.org/hono/-/hono-4.12.34.tgz"; -const expectedFastUriVersion = "3.1.6"; -const expectedFastUriTarball = "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.6.tgz"; +const expectedFastUriVersion = "3.1.7"; +const expectedFastUriTarball = "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz"; const expectedIpAddressVersion = "10.3.1"; const expectedIpAddressTarball = "https://registry.npmjs.org/ip-address/-/ip-address-10.3.1.tgz"; const runtimePrefix = "npm --prefix /usr/local/lib/nemoclaw/mcporter-runtime"; diff --git a/tools/mcp-tool-discovery-runtime/package-lock.json b/tools/mcp-tool-discovery-runtime/package-lock.json index 9dae92506b3..20eb1f8f59d 100644 --- a/tools/mcp-tool-discovery-runtime/package-lock.json +++ b/tools/mcp-tool-discovery-runtime/package-lock.json @@ -947,9 +947,9 @@ "license": "MIT" }, "node_modules/fast-uri": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.6.tgz", - "integrity": "sha512-7Ical1vFEMr0onbVzEDIreM22I4khW+fzyQPwvAFWBp1iwdshSZRsL4jjRvPG9JP1uiqMHRto+YU6R2/CzDz5Q==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz", + "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==", "funding": [ { "type": "github", diff --git a/tools/mcp-tool-discovery-runtime/package.json b/tools/mcp-tool-discovery-runtime/package.json index ac521999f60..e4340db751c 100644 --- a/tools/mcp-tool-discovery-runtime/package.json +++ b/tools/mcp-tool-discovery-runtime/package.json @@ -16,7 +16,7 @@ }, "overrides": { "@hono/node-server": "2.0.12", - "fast-uri": "3.1.6", + "fast-uri": "3.1.7", "hono": "4.12.34", "ip-address": "10.3.1" }, diff --git a/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/BUNDLED_PACKAGES.json b/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/BUNDLED_PACKAGES.json index 7edf3a24c6a..80f2b9317a2 100644 --- a/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/BUNDLED_PACKAGES.json +++ b/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/BUNDLED_PACKAGES.json @@ -33,7 +33,7 @@ }, { "name": "fast-uri", - "version": "3.1.6", + "version": "3.1.7", "license": "BSD-3-Clause" }, { diff --git a/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/THIRD_PARTY_LICENSES.txt b/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/THIRD_PARTY_LICENSES.txt index 03e365c71ce..1a05353563d 100644 --- a/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/THIRD_PARTY_LICENSES.txt +++ b/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/THIRD_PARTY_LICENSES.txt @@ -152,7 +152,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================================================ -fast-uri@3.1.6 (BSD-3-Clause) +fast-uri@3.1.7 (BSD-3-Clause) ================================================================================ Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae Copyright (c) 2021-present The Fastify team diff --git a/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/mcp-tool-discovery.bundle b/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/mcp-tool-discovery.bundle index 634416d9930..9e6856f3552 100644 --- a/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/mcp-tool-discovery.bundle +++ b/tools/mcp-tool-discovery-runtime/reviewed-runtime-bundle/mcp-tool-discovery/mcp-tool-discovery.bundle @@ -1,7 +1,7 @@ var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf;var __hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function __require(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:true}):target,mod));var require_code=__commonJS({"node_modules/ajv/dist/compile/codegen/code.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.regexpCode=exports.getEsmExportName=exports.getProperty=exports.safeStringify=exports.stringify=exports.strConcat=exports.addCodeArg=exports.str=exports._=exports.nil=exports._Code=exports.Name=exports.IDENTIFIER=exports._CodeOrName=void 0;var _CodeOrName=class{};exports._CodeOrName=_CodeOrName;exports.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Name=class extends _CodeOrName{constructor(s){super();if(!exports.IDENTIFIER.test(s))throw new Error("CodeGen: name must be a valid identifier");this.str=s}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}};exports.Name=Name;var _Code=class extends _CodeOrName{constructor(code){super();this._items=typeof code==="string"?[code]:code}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const item=this._items[0];return item===""||item==='""'}get str(){var _a3;return(_a3=this._str)!==null&&_a3!==void 0?_a3:this._str=this._items.reduce((s,c)=>`${s}${c}`,"")}get names(){var _a3;return(_a3=this._names)!==null&&_a3!==void 0?_a3:this._names=this._items.reduce((names,c)=>{if(c instanceof Name)names[c.str]=(names[c.str]||0)+1;return names},{})}};exports._Code=_Code;exports.nil=new _Code("");function _(strs,...args){const code=[strs[0]];let i=0;while(i{if(name.scopePath===void 0)throw new Error(`CodeGen: name "${name}" has no value`);return(0,code_1._)`${scopeName}${name.scopePath}`})}scopeCode(values=this._values,usedValues,getCode){return this._reduceValues(values,name=>{if(name.value===void 0)throw new Error(`CodeGen: name "${name}" has no value`);return name.value.code},usedValues,getCode)}_reduceValues(values,valueCode,usedValues={},getCode){let code=code_1.nil;for(const prefix in values){const vs=values[prefix];if(!vs)continue;const nameSet=usedValues[prefix]=usedValues[prefix]||new Map;vs.forEach(name=>{if(nameSet.has(name))return;nameSet.set(name,UsedValueState.Started);let c=valueCode(name);if(c){const def=this.opts.es5?exports.varKinds.var:exports.varKinds.const;code=(0,code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`}else if(c=getCode===null||getCode===void 0?void 0:getCode(name)){code=(0,code_1._)`${code}${c}${this.opts._n}`}else{throw new ValueError(name)}nameSet.set(name,UsedValueState.Completed)})}return code}};exports.ValueScope=ValueScope}});var require_codegen=__commonJS({"node_modules/ajv/dist/compile/codegen/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.or=exports.and=exports.not=exports.CodeGen=exports.operators=exports.varKinds=exports.ValueScopeName=exports.ValueScope=exports.Scope=exports.Name=exports.regexpCode=exports.stringify=exports.getProperty=exports.nil=exports.strConcat=exports.str=exports._=void 0;var code_1=require_code();var scope_1=require_scope();var code_2=require_code();Object.defineProperty(exports,"_",{enumerable:true,get:function(){return code_2._}});Object.defineProperty(exports,"str",{enumerable:true,get:function(){return code_2.str}});Object.defineProperty(exports,"strConcat",{enumerable:true,get:function(){return code_2.strConcat}});Object.defineProperty(exports,"nil",{enumerable:true,get:function(){return code_2.nil}});Object.defineProperty(exports,"getProperty",{enumerable:true,get:function(){return code_2.getProperty}});Object.defineProperty(exports,"stringify",{enumerable:true,get:function(){return code_2.stringify}});Object.defineProperty(exports,"regexpCode",{enumerable:true,get:function(){return code_2.regexpCode}});Object.defineProperty(exports,"Name",{enumerable:true,get:function(){return code_2.Name}});var scope_2=require_scope();Object.defineProperty(exports,"Scope",{enumerable:true,get:function(){return scope_2.Scope}});Object.defineProperty(exports,"ValueScope",{enumerable:true,get:function(){return scope_2.ValueScope}});Object.defineProperty(exports,"ValueScopeName",{enumerable:true,get:function(){return scope_2.ValueScopeName}});Object.defineProperty(exports,"varKinds",{enumerable:true,get:function(){return scope_2.varKinds}});exports.operators={GT:new code_1._Code(">"),GTE:new code_1._Code(">="),LT:new code_1._Code("<"),LTE:new code_1._Code("<="),EQ:new code_1._Code("==="),NEQ:new code_1._Code("!=="),NOT:new code_1._Code("!"),OR:new code_1._Code("||"),AND:new code_1._Code("&&"),ADD:new code_1._Code("+")};var Node=class{optimizeNodes(){return this}optimizeNames(_names,_constants){return this}};var Def=class extends Node{constructor(varKind,name,rhs){super();this.varKind=varKind;this.name=name;this.rhs=rhs}render({es5,_n}){const varKind=es5?scope_1.varKinds.var:this.varKind;const rhs=this.rhs===void 0?"":` = ${this.rhs}`;return`${varKind} ${this.name}${rhs};`+_n}optimizeNames(names,constants){if(!names[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,names,constants);return this}get names(){return this.rhs instanceof code_1._CodeOrName?this.rhs.names:{}}};var Assign=class extends Node{constructor(lhs,rhs,sideEffects){super();this.lhs=lhs;this.rhs=rhs;this.sideEffects=sideEffects}render({_n}){return`${this.lhs} = ${this.rhs};`+_n}optimizeNames(names,constants){if(this.lhs instanceof code_1.Name&&!names[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,names,constants);return this}get names(){const names=this.lhs instanceof code_1.Name?{}:{...this.lhs.names};return addExprNames(names,this.rhs)}};var AssignOp=class extends Assign{constructor(lhs,op,rhs,sideEffects){super(lhs,rhs,sideEffects);this.op=op}render({_n}){return`${this.lhs} ${this.op}= ${this.rhs};`+_n}};var Label=class extends Node{constructor(label){super();this.label=label;this.names={}}render({_n}){return`${this.label}:`+_n}};var Break=class extends Node{constructor(label){super();this.label=label;this.names={}}render({_n}){const label=this.label?` ${this.label}`:"";return`break${label};`+_n}};var Throw=class extends Node{constructor(error2){super();this.error=error2}render({_n}){return`throw ${this.error};`+_n}get names(){return this.error.names}};var AnyCode=class extends Node{constructor(code){super();this.code=code}render({_n}){return`${this.code};`+_n}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(names,constants){this.code=optimizeExpr(this.code,names,constants);return this}get names(){return this.code instanceof code_1._CodeOrName?this.code.names:{}}};var ParentNode=class extends Node{constructor(nodes=[]){super();this.nodes=nodes}render(opts){return this.nodes.reduce((code,n)=>code+n.render(opts),"")}optimizeNodes(){const{nodes}=this;let i=nodes.length;while(i--){const n=nodes[i].optimizeNodes();if(Array.isArray(n))nodes.splice(i,1,...n);else if(n)nodes[i]=n;else nodes.splice(i,1)}return nodes.length>0?this:void 0}optimizeNames(names,constants){const{nodes}=this;let i=nodes.length;while(i--){const n=nodes[i];if(n.optimizeNames(names,constants))continue;subtractNames(names,n.names);nodes.splice(i,1)}return nodes.length>0?this:void 0}get names(){return this.nodes.reduce((names,n)=>addNames(names,n.names),{})}};var BlockNode=class extends ParentNode{render(opts){return"{"+opts._n+super.render(opts)+"}"+opts._n}};var Root=class extends ParentNode{};var Else=class extends BlockNode{};Else.kind="else";var If=class _If extends BlockNode{constructor(condition,nodes){super(nodes);this.condition=condition}render(opts){let code=`if(${this.condition})`+super.render(opts);if(this.else)code+="else "+this.else.render(opts);return code}optimizeNodes(){super.optimizeNodes();const cond=this.condition;if(cond===true)return this.nodes;let e=this.else;if(e){const ns=e.optimizeNodes();e=this.else=Array.isArray(ns)?new Else(ns):ns}if(e){if(cond===false)return e instanceof _If?e:e.nodes;if(this.nodes.length)return this;return new _If(not(cond),e instanceof _If?[e]:e.nodes)}if(cond===false||!this.nodes.length)return void 0;return this}optimizeNames(names,constants){var _a3;this.else=(_a3=this.else)===null||_a3===void 0?void 0:_a3.optimizeNames(names,constants);if(!(super.optimizeNames(names,constants)||this.else))return;this.condition=optimizeExpr(this.condition,names,constants);return this}get names(){const names=super.names;addExprNames(names,this.condition);if(this.else)addNames(names,this.else.names);return names}};If.kind="if";var For=class extends BlockNode{};For.kind="for";var ForLoop=class extends For{constructor(iteration){super();this.iteration=iteration}render(opts){return`for(${this.iteration})`+super.render(opts)}optimizeNames(names,constants){if(!super.optimizeNames(names,constants))return;this.iteration=optimizeExpr(this.iteration,names,constants);return this}get names(){return addNames(super.names,this.iteration.names)}};var ForRange=class extends For{constructor(varKind,name,from,to){super();this.varKind=varKind;this.name=name;this.from=from;this.to=to}render(opts){const varKind=opts.es5?scope_1.varKinds.var:this.varKind;const{name,from,to}=this;return`for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)`+super.render(opts)}get names(){const names=addExprNames(super.names,this.from);return addExprNames(names,this.to)}};var ForIter=class extends For{constructor(loop,varKind,name,iterable){super();this.loop=loop;this.varKind=varKind;this.name=name;this.iterable=iterable}render(opts){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(opts)}optimizeNames(names,constants){if(!super.optimizeNames(names,constants))return;this.iterable=optimizeExpr(this.iterable,names,constants);return this}get names(){return addNames(super.names,this.iterable.names)}};var Func=class extends BlockNode{constructor(name,args,async){super();this.name=name;this.args=args;this.async=async}render(opts){const _async=this.async?"async ":"";return`${_async}function ${this.name}(${this.args})`+super.render(opts)}};Func.kind="func";var Return=class extends ParentNode{render(opts){return"return "+super.render(opts)}};Return.kind="return";var Try=class extends BlockNode{render(opts){let code="try"+super.render(opts);if(this.catch)code+=this.catch.render(opts);if(this.finally)code+=this.finally.render(opts);return code}optimizeNodes(){var _a3,_b;super.optimizeNodes();(_a3=this.catch)===null||_a3===void 0?void 0:_a3.optimizeNodes();(_b=this.finally)===null||_b===void 0?void 0:_b.optimizeNodes();return this}optimizeNames(names,constants){var _a3,_b;super.optimizeNames(names,constants);(_a3=this.catch)===null||_a3===void 0?void 0:_a3.optimizeNames(names,constants);(_b=this.finally)===null||_b===void 0?void 0:_b.optimizeNames(names,constants);return this}get names(){const names=super.names;if(this.catch)addNames(names,this.catch.names);if(this.finally)addNames(names,this.finally.names);return names}};var Catch=class extends BlockNode{constructor(error2){super();this.error=error2}render(opts){return`catch(${this.error})`+super.render(opts)}};Catch.kind="catch";var Finally=class extends BlockNode{render(opts){return"finally"+super.render(opts)}};Finally.kind="finally";var CodeGen=class{constructor(extScope,opts={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...opts,_n:opts.lines?"\n":""};this._extScope=extScope;this._scope=new scope_1.Scope({parent:extScope});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(prefix){return this._scope.name(prefix)}scopeName(prefix){return this._extScope.name(prefix)}scopeValue(prefixOrName,value){const name=this._extScope.value(prefixOrName,value);const vs=this._values[name.prefix]||(this._values[name.prefix]=new Set);vs.add(name);return name}getScopeValue(prefix,keyOrRef){return this._extScope.getValue(prefix,keyOrRef)}scopeRefs(scopeName){return this._extScope.scopeRefs(scopeName,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(varKind,nameOrPrefix,rhs,constant){const name=this._scope.toName(nameOrPrefix);if(rhs!==void 0&&constant)this._constants[name.str]=rhs;this._leafNode(new Def(varKind,name,rhs));return name}const(nameOrPrefix,rhs,_constant){return this._def(scope_1.varKinds.const,nameOrPrefix,rhs,_constant)}let(nameOrPrefix,rhs,_constant){return this._def(scope_1.varKinds.let,nameOrPrefix,rhs,_constant)}var(nameOrPrefix,rhs,_constant){return this._def(scope_1.varKinds.var,nameOrPrefix,rhs,_constant)}assign(lhs,rhs,sideEffects){return this._leafNode(new Assign(lhs,rhs,sideEffects))}add(lhs,rhs){return this._leafNode(new AssignOp(lhs,exports.operators.ADD,rhs))}code(c){if(typeof c=="function")c();else if(c!==code_1.nil)this._leafNode(new AnyCode(c));return this}object(...keyValues){const code=["{"];for(const[key,value]of keyValues){if(code.length>1)code.push(",");code.push(key);if(key!==value||this.opts.es5){code.push(":");(0,code_1.addCodeArg)(code,value)}}code.push("}");return new code_1._Code(code)}if(condition,thenBody,elseBody){this._blockNode(new If(condition));if(thenBody&&elseBody){this.code(thenBody).else().code(elseBody).endIf()}else if(thenBody){this.code(thenBody).endIf()}else if(elseBody){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(condition){return this._elseNode(new If(condition))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(node,forBody){this._blockNode(node);if(forBody)this.code(forBody).endFor();return this}for(iteration,forBody){return this._for(new ForLoop(iteration),forBody)}forRange(nameOrPrefix,from,to,forBody,varKind=this.opts.es5?scope_1.varKinds.var:scope_1.varKinds.let){const name=this._scope.toName(nameOrPrefix);return this._for(new ForRange(varKind,name,from,to),()=>forBody(name))}forOf(nameOrPrefix,iterable,forBody,varKind=scope_1.varKinds.const){const name=this._scope.toName(nameOrPrefix);if(this.opts.es5){const arr=iterable instanceof code_1.Name?iterable:this.var("_arr",iterable);return this.forRange("_i",0,(0,code_1._)`${arr}.length`,i=>{this.var(name,(0,code_1._)`${arr}[${i}]`);forBody(name)})}return this._for(new ForIter("of",varKind,name,iterable),()=>forBody(name))}forIn(nameOrPrefix,obj,forBody,varKind=this.opts.es5?scope_1.varKinds.var:scope_1.varKinds.const){if(this.opts.ownProperties){return this.forOf(nameOrPrefix,(0,code_1._)`Object.keys(${obj})`,forBody)}const name=this._scope.toName(nameOrPrefix);return this._for(new ForIter("in",varKind,name,obj),()=>forBody(name))}endFor(){return this._endBlockNode(For)}label(label){return this._leafNode(new Label(label))}break(label){return this._leafNode(new Break(label))}return(value){const node=new Return;this._blockNode(node);this.code(value);if(node.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(tryBody,catchCode,finallyCode){if(!catchCode&&!finallyCode)throw new Error('CodeGen: "try" without "catch" and "finally"');const node=new Try;this._blockNode(node);this.code(tryBody);if(catchCode){const error2=this.name("e");this._currNode=node.catch=new Catch(error2);catchCode(error2)}if(finallyCode){this._currNode=node.finally=new Finally;this.code(finallyCode)}return this._endBlockNode(Catch,Finally)}throw(error2){return this._leafNode(new Throw(error2))}block(body,nodeCount){this._blockStarts.push(this._nodes.length);if(body)this.code(body).endBlock(nodeCount);return this}endBlock(nodeCount){const len=this._blockStarts.pop();if(len===void 0)throw new Error("CodeGen: not in self-balancing block");const toClose=this._nodes.length-len;if(toClose<0||nodeCount!==void 0&&toClose!==nodeCount){throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`)}this._nodes.length=len;return this}func(name,args=code_1.nil,async,funcBody){this._blockNode(new Func(name,args,async));if(funcBody)this.code(funcBody).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(n=1){while(n-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(node){this._currNode.nodes.push(node);return this}_blockNode(node){this._currNode.nodes.push(node);this._nodes.push(node)}_endBlockNode(N1,N2){const n=this._currNode;if(n instanceof N1||N2&&n instanceof N2){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${N2?`${N1.kind}/${N2.kind}`:N1.kind}"`)}_elseNode(node){const n=this._currNode;if(!(n instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=n.else=node;return this}get _root(){return this._nodes[0]}get _currNode(){const ns=this._nodes;return ns[ns.length-1]}set _currNode(node){const ns=this._nodes;ns[ns.length-1]=node}};exports.CodeGen=CodeGen;function addNames(names,from){for(const n in from)names[n]=(names[n]||0)+(from[n]||0);return names}function addExprNames(names,from){return from instanceof code_1._CodeOrName?addNames(names,from.names):names}function optimizeExpr(expr,names,constants){if(expr instanceof code_1.Name)return replaceName(expr);if(!canOptimize(expr))return expr;return new code_1._Code(expr._items.reduce((items,c)=>{if(c instanceof code_1.Name)c=replaceName(c);if(c instanceof code_1._Code)items.push(...c._items);else items.push(c);return items},[]));function replaceName(n){const c=constants[n.str];if(c===void 0||names[n.str]!==1)return n;delete names[n.str];return c}function canOptimize(e){return e instanceof code_1._Code&&e._items.some(c=>c instanceof code_1.Name&&names[c.str]===1&&constants[c.str]!==void 0)}}function subtractNames(names,from){for(const n in from)names[n]=(names[n]||0)-(from[n]||0)}function not(x){return typeof x=="boolean"||typeof x=="number"||x===null?!x:(0,code_1._)`!${par(x)}`}exports.not=not;var andCode=mappend(exports.operators.AND);function and(...args){return args.reduce(andCode)}exports.and=and;var orCode=mappend(exports.operators.OR);function or(...args){return args.reduce(orCode)}exports.or=or;function mappend(op){return(x,y)=>x===code_1.nil?y:y===code_1.nil?x:(0,code_1._)`${par(x)} ${op} ${par(y)}`}function par(x){return x instanceof code_1.Name?x:(0,code_1._)`(${x})`}}});var require_util=__commonJS({"node_modules/ajv/dist/compile/util.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.checkStrictMode=exports.getErrorPath=exports.Type=exports.useFunc=exports.setEvaluated=exports.evaluatedPropsToName=exports.mergeEvaluated=exports.eachItem=exports.unescapeJsonPointer=exports.escapeJsonPointer=exports.escapeFragment=exports.unescapeFragment=exports.schemaRefOrVal=exports.schemaHasRulesButRef=exports.schemaHasRules=exports.checkUnknownRules=exports.alwaysValidSchema=exports.toHash=void 0;var codegen_1=require_codegen();var code_1=require_code();function toHash(arr){const hash={};for(const item of arr)hash[item]=true;return hash}exports.toHash=toHash;function alwaysValidSchema(it,schema){if(typeof schema=="boolean")return schema;if(Object.keys(schema).length===0)return true;checkUnknownRules(it,schema);return!schemaHasRules(schema,it.self.RULES.all)}exports.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(it,schema=it.schema){const{opts,self}=it;if(!opts.strictSchema)return;if(typeof schema==="boolean")return;const rules=self.RULES.keywords;for(const key in schema){if(!rules[key])checkStrictMode(it,`unknown keyword: "${key}"`)}}exports.checkUnknownRules=checkUnknownRules;function schemaHasRules(schema,rules){if(typeof schema=="boolean")return!schema;for(const key in schema)if(rules[key])return true;return false}exports.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(schema,RULES){if(typeof schema=="boolean")return!schema;for(const key in schema)if(key!=="$ref"&&RULES.all[key])return true;return false}exports.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef,schemaPath},schema,keyword,$data){if(!$data){if(typeof schema=="number"||typeof schema=="boolean")return schema;if(typeof schema=="string")return(0,codegen_1._)`${schema}`}return(0,codegen_1._)`${topSchemaRef}${schemaPath}${(0,codegen_1.getProperty)(keyword)}`}exports.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(str){return unescapeJsonPointer(decodeURIComponent(str))}exports.unescapeFragment=unescapeFragment;function escapeFragment(str){return encodeURIComponent(escapeJsonPointer(str))}exports.escapeFragment=escapeFragment;function escapeJsonPointer(str){if(typeof str=="number")return`${str}`;return str.replace(/~/g,"~0").replace(/\//g,"~1")}exports.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(str){return str.replace(/~1/g,"/").replace(/~0/g,"~")}exports.unescapeJsonPointer=unescapeJsonPointer;function eachItem(xs,f){if(Array.isArray(xs)){for(const x of xs)f(x)}else{f(xs)}}exports.eachItem=eachItem;function makeMergeEvaluated({mergeNames,mergeToName,mergeValues:mergeValues2,resultToName}){return(gen,from,to,toName)=>{const res=to===void 0?from:to instanceof codegen_1.Name?(from instanceof codegen_1.Name?mergeNames(gen,from,to):mergeToName(gen,from,to),to):from instanceof codegen_1.Name?(mergeToName(gen,to,from),from):mergeValues2(from,to);return toName===codegen_1.Name&&!(res instanceof codegen_1.Name)?resultToName(gen,res):res}}exports.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(gen,from,to)=>gen.if((0,codegen_1._)`${to} !== true && ${from} !== undefined`,()=>{gen.if((0,codegen_1._)`${from} === true`,()=>gen.assign(to,true),()=>gen.assign(to,(0,codegen_1._)`${to} || {}`).code((0,codegen_1._)`Object.assign(${to}, ${from})`))}),mergeToName:(gen,from,to)=>gen.if((0,codegen_1._)`${to} !== true`,()=>{if(from===true){gen.assign(to,true)}else{gen.assign(to,(0,codegen_1._)`${to} || {}`);setEvaluated(gen,to,from)}}),mergeValues:(from,to)=>from===true?true:{...from,...to},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(gen,from,to)=>gen.if((0,codegen_1._)`${to} !== true && ${from} !== undefined`,()=>gen.assign(to,(0,codegen_1._)`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)),mergeToName:(gen,from,to)=>gen.if((0,codegen_1._)`${to} !== true`,()=>gen.assign(to,from===true?true:(0,codegen_1._)`${to} > ${from} ? ${to} : ${from}`)),mergeValues:(from,to)=>from===true?true:Math.max(from,to),resultToName:(gen,items)=>gen.var("items",items)})};function evaluatedPropsToName(gen,ps){if(ps===true)return gen.var("props",true);const props=gen.var("props",(0,codegen_1._)`{}`);if(ps!==void 0)setEvaluated(gen,props,ps);return props}exports.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(gen,props,ps){Object.keys(ps).forEach(p=>gen.assign((0,codegen_1._)`${props}${(0,codegen_1.getProperty)(p)}`,true))}exports.setEvaluated=setEvaluated;var snippets={};function useFunc(gen,f){return gen.scopeValue("func",{ref:f,code:snippets[f.code]||(snippets[f.code]=new code_1._Code(f.code))})}exports.useFunc=useFunc;var Type;(function(Type2){Type2[Type2["Num"]=0]="Num";Type2[Type2["Str"]=1]="Str"})(Type||(exports.Type=Type={}));function getErrorPath(dataProp,dataPropType,jsPropertySyntax){if(dataProp instanceof codegen_1.Name){const isNumber=dataPropType===Type.Num;return jsPropertySyntax?isNumber?(0,codegen_1._)`"[" + ${dataProp} + "]"`:(0,codegen_1._)`"['" + ${dataProp} + "']"`:isNumber?(0,codegen_1._)`"/" + ${dataProp}`:(0,codegen_1._)`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return jsPropertySyntax?(0,codegen_1.getProperty)(dataProp).toString():"/"+escapeJsonPointer(dataProp)}exports.getErrorPath=getErrorPath;function checkStrictMode(it,msg,mode=it.opts.strictSchema){if(!mode)return;msg=`strict mode: ${msg}`;if(mode===true)throw new Error(msg);it.self.logger.warn(msg)}exports.checkStrictMode=checkStrictMode}});var require_names=__commonJS({"node_modules/ajv/dist/compile/names.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var names={data:new codegen_1.Name("data"),valCxt:new codegen_1.Name("valCxt"),instancePath:new codegen_1.Name("instancePath"),parentData:new codegen_1.Name("parentData"),parentDataProperty:new codegen_1.Name("parentDataProperty"),rootData:new codegen_1.Name("rootData"),dynamicAnchors:new codegen_1.Name("dynamicAnchors"),vErrors:new codegen_1.Name("vErrors"),errors:new codegen_1.Name("errors"),this:new codegen_1.Name("this"),self:new codegen_1.Name("self"),scope:new codegen_1.Name("scope"),json:new codegen_1.Name("json"),jsonPos:new codegen_1.Name("jsonPos"),jsonLen:new codegen_1.Name("jsonLen"),jsonPart:new codegen_1.Name("jsonPart")};exports.default=names}});var require_errors=__commonJS({"node_modules/ajv/dist/compile/errors.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.extendErrors=exports.resetErrorsCount=exports.reportExtraError=exports.reportError=exports.keyword$DataError=exports.keywordError=void 0;var codegen_1=require_codegen();var util_1=require_util();var names_1=require_names();exports.keywordError={message:({keyword})=>(0,codegen_1.str)`must pass "${keyword}" keyword validation`};exports.keyword$DataError={message:({keyword,schemaType})=>schemaType?(0,codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)`:(0,codegen_1.str)`"${keyword}" keyword is invalid ($data)`};function reportError(cxt,error2=exports.keywordError,errorPaths,overrideAllErrors){const{it}=cxt;const{gen,compositeRule,allErrors}=it;const errObj=errorObjectCode(cxt,error2,errorPaths);if(overrideAllErrors!==null&&overrideAllErrors!==void 0?overrideAllErrors:compositeRule||allErrors){addError(gen,errObj)}else{returnErrors(it,(0,codegen_1._)`[${errObj}]`)}}exports.reportError=reportError;function reportExtraError(cxt,error2=exports.keywordError,errorPaths){const{it}=cxt;const{gen,compositeRule,allErrors}=it;const errObj=errorObjectCode(cxt,error2,errorPaths);addError(gen,errObj);if(!(compositeRule||allErrors)){returnErrors(it,names_1.default.vErrors)}}exports.reportExtraError=reportExtraError;function resetErrorsCount(gen,errsCount){gen.assign(names_1.default.errors,errsCount);gen.if((0,codegen_1._)`${names_1.default.vErrors} !== null`,()=>gen.if(errsCount,()=>gen.assign((0,codegen_1._)`${names_1.default.vErrors}.length`,errsCount),()=>gen.assign(names_1.default.vErrors,null)))}exports.resetErrorsCount=resetErrorsCount;function extendErrors({gen,keyword,schemaValue,data,errsCount,it}){if(errsCount===void 0)throw new Error("ajv implementation error");const err=gen.name("err");gen.forRange("i",errsCount,names_1.default.errors,i=>{gen.const(err,(0,codegen_1._)`${names_1.default.vErrors}[${i}]`);gen.if((0,codegen_1._)`${err}.instancePath === undefined`,()=>gen.assign((0,codegen_1._)`${err}.instancePath`,(0,codegen_1.strConcat)(names_1.default.instancePath,it.errorPath)));gen.assign((0,codegen_1._)`${err}.schemaPath`,(0,codegen_1.str)`${it.errSchemaPath}/${keyword}`);if(it.opts.verbose){gen.assign((0,codegen_1._)`${err}.schema`,schemaValue);gen.assign((0,codegen_1._)`${err}.data`,data)}})}exports.extendErrors=extendErrors;function addError(gen,errObj){const err=gen.const("err",errObj);gen.if((0,codegen_1._)`${names_1.default.vErrors} === null`,()=>gen.assign(names_1.default.vErrors,(0,codegen_1._)`[${err}]`),(0,codegen_1._)`${names_1.default.vErrors}.push(${err})`);gen.code((0,codegen_1._)`${names_1.default.errors}++`)}function returnErrors(it,errs){const{gen,validateName,schemaEnv}=it;if(schemaEnv.$async){gen.throw((0,codegen_1._)`new ${it.ValidationError}(${errs})`)}else{gen.assign((0,codegen_1._)`${validateName}.errors`,errs);gen.return(false)}}var E={keyword:new codegen_1.Name("keyword"),schemaPath:new codegen_1.Name("schemaPath"),params:new codegen_1.Name("params"),propertyName:new codegen_1.Name("propertyName"),message:new codegen_1.Name("message"),schema:new codegen_1.Name("schema"),parentSchema:new codegen_1.Name("parentSchema")};function errorObjectCode(cxt,error2,errorPaths){const{createErrors}=cxt.it;if(createErrors===false)return(0,codegen_1._)`{}`;return errorObject(cxt,error2,errorPaths)}function errorObject(cxt,error2,errorPaths={}){const{gen,it}=cxt;const keyValues=[errorInstancePath(it,errorPaths),errorSchemaPath(cxt,errorPaths)];extraErrorProps(cxt,error2,keyValues);return gen.object(...keyValues)}function errorInstancePath({errorPath},{instancePath}){const instPath=instancePath?(0,codegen_1.str)`${errorPath}${(0,util_1.getErrorPath)(instancePath,util_1.Type.Str)}`:errorPath;return[names_1.default.instancePath,(0,codegen_1.strConcat)(names_1.default.instancePath,instPath)]}function errorSchemaPath({keyword,it:{errSchemaPath}},{schemaPath,parentSchema}){let schPath=parentSchema?errSchemaPath:(0,codegen_1.str)`${errSchemaPath}/${keyword}`;if(schemaPath){schPath=(0,codegen_1.str)`${schPath}${(0,util_1.getErrorPath)(schemaPath,util_1.Type.Str)}`}return[E.schemaPath,schPath]}function extraErrorProps(cxt,{params,message},keyValues){const{keyword,data,schemaValue,it}=cxt;const{opts,propertyName,topSchemaRef,schemaPath}=it;keyValues.push([E.keyword,keyword],[E.params,typeof params=="function"?params(cxt):params||(0,codegen_1._)`{}`]);if(opts.messages){keyValues.push([E.message,typeof message=="function"?message(cxt):message])}if(opts.verbose){keyValues.push([E.schema,schemaValue],[E.parentSchema,(0,codegen_1._)`${topSchemaRef}${schemaPath}`],[names_1.default.data,data])}if(propertyName)keyValues.push([E.propertyName,propertyName])}}});var require_boolSchema=__commonJS({"node_modules/ajv/dist/compile/validate/boolSchema.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.boolOrEmptySchema=exports.topBoolOrEmptySchema=void 0;var errors_1=require_errors();var codegen_1=require_codegen();var names_1=require_names();var boolError={message:"boolean schema is false"};function topBoolOrEmptySchema(it){const{gen,schema,validateName}=it;if(schema===false){falseSchemaError(it,false)}else if(typeof schema=="object"&&schema.$async===true){gen.return(names_1.default.data)}else{gen.assign((0,codegen_1._)`${validateName}.errors`,null);gen.return(true)}}exports.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(it,valid){const{gen,schema}=it;if(schema===false){gen.var(valid,false);falseSchemaError(it)}else{gen.var(valid,true)}}exports.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(it,overrideAllErrors){const{gen,data}=it;const cxt={gen,keyword:"false schema",data,schema:false,schemaCode:false,schemaValue:false,params:{},it};(0,errors_1.reportError)(cxt,boolError,void 0,overrideAllErrors)}}});var require_rules=__commonJS({"node_modules/ajv/dist/compile/rules.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getRules=exports.isJSONType=void 0;var _jsonTypes=["string","number","integer","boolean","null","object","array"];var jsonTypes=new Set(_jsonTypes);function isJSONType(x){return typeof x=="string"&&jsonTypes.has(x)}exports.isJSONType=isJSONType;function getRules(){const groups={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...groups,integer:true,boolean:true,null:true},rules:[{rules:[]},groups.number,groups.string,groups.array,groups.object],post:{rules:[]},all:{},keywords:{}}}exports.getRules=getRules}});var require_applicability=__commonJS({"node_modules/ajv/dist/compile/validate/applicability.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.shouldUseRule=exports.shouldUseGroup=exports.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema,self},type){const group=self.RULES.types[type];return group&&group!==true&&shouldUseGroup(schema,group)}exports.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(schema,group){return group.rules.some(rule=>shouldUseRule(schema,rule))}exports.shouldUseGroup=shouldUseGroup;function shouldUseRule(schema,rule){var _a3;return schema[rule.keyword]!==void 0||((_a3=rule.definition.implements)===null||_a3===void 0?void 0:_a3.some(kwd=>schema[kwd]!==void 0))}exports.shouldUseRule=shouldUseRule}});var require_dataType=__commonJS({"node_modules/ajv/dist/compile/validate/dataType.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.reportTypeError=exports.checkDataTypes=exports.checkDataType=exports.coerceAndCheckDataType=exports.getJSONTypes=exports.getSchemaTypes=exports.DataType=void 0;var rules_1=require_rules();var applicability_1=require_applicability();var errors_1=require_errors();var codegen_1=require_codegen();var util_1=require_util();var DataType;(function(DataType2){DataType2[DataType2["Correct"]=0]="Correct";DataType2[DataType2["Wrong"]=1]="Wrong"})(DataType||(exports.DataType=DataType={}));function getSchemaTypes(schema){const types=getJSONTypes(schema.type);const hasNull=types.includes("null");if(hasNull){if(schema.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!types.length&&schema.nullable!==void 0){throw new Error('"nullable" cannot be used without "type"')}if(schema.nullable===true)types.push("null")}return types}exports.getSchemaTypes=getSchemaTypes;function getJSONTypes(ts){const types=Array.isArray(ts)?ts:ts?[ts]:[];if(types.every(rules_1.isJSONType))return types;throw new Error("type must be JSONType or JSONType[]: "+types.join(","))}exports.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(it,types){const{gen,data,opts}=it;const coerceTo=coerceToTypes(types,opts.coerceTypes);const checkTypes=types.length>0&&!(coerceTo.length===0&&types.length===1&&(0,applicability_1.schemaHasRulesForType)(it,types[0]));if(checkTypes){const wrongType=checkDataTypes(types,data,opts.strictNumbers,DataType.Wrong);gen.if(wrongType,()=>{if(coerceTo.length)coerceData(it,types,coerceTo);else reportTypeError(it)})}return checkTypes}exports.coerceAndCheckDataType=coerceAndCheckDataType;var COERCIBLE=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(types,coerceTypes){return coerceTypes?types.filter(t=>COERCIBLE.has(t)||coerceTypes==="array"&&t==="array"):[]}function coerceData(it,types,coerceTo){const{gen,data,opts}=it;const dataType=gen.let("dataType",(0,codegen_1._)`typeof ${data}`);const coerced=gen.let("coerced",(0,codegen_1._)`undefined`);if(opts.coerceTypes==="array"){gen.if((0,codegen_1._)`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`,()=>gen.assign(data,(0,codegen_1._)`${data}[0]`).assign(dataType,(0,codegen_1._)`typeof ${data}`).if(checkDataTypes(types,data,opts.strictNumbers),()=>gen.assign(coerced,data)))}gen.if((0,codegen_1._)`${coerced} !== undefined`);for(const t of coerceTo){if(COERCIBLE.has(t)||t==="array"&&opts.coerceTypes==="array"){coerceSpecificType(t)}}gen.else();reportTypeError(it);gen.endIf();gen.if((0,codegen_1._)`${coerced} !== undefined`,()=>{gen.assign(data,coerced);assignParentData(it,coerced)});function coerceSpecificType(t){switch(t){case"string":gen.elseIf((0,codegen_1._)`${dataType} == "number" || ${dataType} == "boolean"`).assign(coerced,(0,codegen_1._)`"" + ${data}`).elseIf((0,codegen_1._)`${data} === null`).assign(coerced,(0,codegen_1._)`""`);return;case"number":gen.elseIf((0,codegen_1._)`${dataType} == "boolean" || ${data} === null || (${dataType} == "string" && ${data} && ${data} == +${data})`).assign(coerced,(0,codegen_1._)`+${data}`);return;case"integer":gen.elseIf((0,codegen_1._)`${dataType} === "boolean" || ${data} === null || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`).assign(coerced,(0,codegen_1._)`+${data}`);return;case"boolean":gen.elseIf((0,codegen_1._)`${data} === "false" || ${data} === 0 || ${data} === null`).assign(coerced,false).elseIf((0,codegen_1._)`${data} === "true" || ${data} === 1`).assign(coerced,true);return;case"null":gen.elseIf((0,codegen_1._)`${data} === "" || ${data} === 0 || ${data} === false`);gen.assign(coerced,null);return;case"array":gen.elseIf((0,codegen_1._)`${dataType} === "string" || ${dataType} === "number" - || ${dataType} === "boolean" || ${data} === null`).assign(coerced,(0,codegen_1._)`[${data}]`)}}}function assignParentData({gen,parentData,parentDataProperty},expr){gen.if((0,codegen_1._)`${parentData} !== undefined`,()=>gen.assign((0,codegen_1._)`${parentData}[${parentDataProperty}]`,expr))}function checkDataType(dataType,data,strictNums,correct=DataType.Correct){const EQ=correct===DataType.Correct?codegen_1.operators.EQ:codegen_1.operators.NEQ;let cond;switch(dataType){case"null":return(0,codegen_1._)`${data} ${EQ} null`;case"array":cond=(0,codegen_1._)`Array.isArray(${data})`;break;case"object":cond=(0,codegen_1._)`${data} && typeof ${data} == "object" && !Array.isArray(${data})`;break;case"integer":cond=numCond((0,codegen_1._)`!(${data} % 1) && !isNaN(${data})`);break;case"number":cond=numCond();break;default:return(0,codegen_1._)`typeof ${data} ${EQ} ${dataType}`}return correct===DataType.Correct?cond:(0,codegen_1.not)(cond);function numCond(_cond=codegen_1.nil){return(0,codegen_1.and)((0,codegen_1._)`typeof ${data} == "number"`,_cond,strictNums?(0,codegen_1._)`isFinite(${data})`:codegen_1.nil)}}exports.checkDataType=checkDataType;function checkDataTypes(dataTypes,data,strictNums,correct){if(dataTypes.length===1){return checkDataType(dataTypes[0],data,strictNums,correct)}let cond;const types=(0,util_1.toHash)(dataTypes);if(types.array&&types.object){const notObj=(0,codegen_1._)`typeof ${data} != "object"`;cond=types.null?notObj:(0,codegen_1._)`!${data} || ${notObj}`;delete types.null;delete types.array;delete types.object}else{cond=codegen_1.nil}if(types.number)delete types.integer;for(const t in types)cond=(0,codegen_1.and)(cond,checkDataType(t,data,strictNums,correct));return cond}exports.checkDataTypes=checkDataTypes;var typeError={message:({schema})=>`must be ${schema}`,params:({schema,schemaValue})=>typeof schema=="string"?(0,codegen_1._)`{type: ${schema}}`:(0,codegen_1._)`{type: ${schemaValue}}`};function reportTypeError(it){const cxt=getTypeErrorContext(it);(0,errors_1.reportError)(cxt,typeError)}exports.reportTypeError=reportTypeError;function getTypeErrorContext(it){const{gen,data,schema}=it;const schemaCode=(0,util_1.schemaRefOrVal)(it,schema,"type");return{gen,keyword:"type",data,schema:schema.type,schemaCode,schemaValue:schemaCode,parentSchema:schema,params:{},it}}}});var require_defaults=__commonJS({"node_modules/ajv/dist/compile/validate/defaults.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.assignDefaults=void 0;var codegen_1=require_codegen();var util_1=require_util();function assignDefaults(it,ty){const{properties,items}=it.schema;if(ty==="object"&&properties){for(const key in properties){assignDefault(it,key,properties[key].default)}}else if(ty==="array"&&Array.isArray(items)){items.forEach((sch,i)=>assignDefault(it,i,sch.default))}}exports.assignDefaults=assignDefaults;function assignDefault(it,prop,defaultValue){const{gen,compositeRule,data,opts}=it;if(defaultValue===void 0)return;const childData=(0,codegen_1._)`${data}${(0,codegen_1.getProperty)(prop)}`;if(compositeRule){(0,util_1.checkStrictMode)(it,`default is ignored for: ${childData}`);return}let condition=(0,codegen_1._)`${childData} === undefined`;if(opts.useDefaults==="empty"){condition=(0,codegen_1._)`${condition} || ${childData} === null || ${childData} === ""`}gen.if(condition,(0,codegen_1._)`${childData} = ${(0,codegen_1.stringify)(defaultValue)}`)}}});var require_code2=__commonJS({"node_modules/ajv/dist/vocabularies/code.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateUnion=exports.validateArray=exports.usePattern=exports.callValidateCode=exports.schemaProperties=exports.allSchemaProperties=exports.noPropertyInData=exports.propertyInData=exports.isOwnProperty=exports.hasPropFunc=exports.reportMissingProp=exports.checkMissingProp=exports.checkReportMissingProp=void 0;var codegen_1=require_codegen();var util_1=require_util();var names_1=require_names();var util_2=require_util();function checkReportMissingProp(cxt,prop){const{gen,data,it}=cxt;gen.if(noPropertyInData(gen,data,prop,it.opts.ownProperties),()=>{cxt.setParams({missingProperty:(0,codegen_1._)`${prop}`},true);cxt.error()})}exports.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen,data,it:{opts}},properties,missing){return(0,codegen_1.or)(...properties.map(prop=>(0,codegen_1.and)(noPropertyInData(gen,data,prop,opts.ownProperties),(0,codegen_1._)`${missing} = ${prop}`)))}exports.checkMissingProp=checkMissingProp;function reportMissingProp(cxt,missing){cxt.setParams({missingProperty:missing},true);cxt.error()}exports.reportMissingProp=reportMissingProp;function hasPropFunc(gen){return gen.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,codegen_1._)`Object.prototype.hasOwnProperty`})}exports.hasPropFunc=hasPropFunc;function isOwnProperty(gen,data,property){return(0,codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`}exports.isOwnProperty=isOwnProperty;function propertyInData(gen,data,property,ownProperties){const cond=(0,codegen_1._)`${data}${(0,codegen_1.getProperty)(property)} !== undefined`;return ownProperties?(0,codegen_1._)`${cond} && ${isOwnProperty(gen,data,property)}`:cond}exports.propertyInData=propertyInData;function noPropertyInData(gen,data,property,ownProperties){const cond=(0,codegen_1._)`${data}${(0,codegen_1.getProperty)(property)} === undefined`;return ownProperties?(0,codegen_1.or)(cond,(0,codegen_1.not)(isOwnProperty(gen,data,property))):cond}exports.noPropertyInData=noPropertyInData;function allSchemaProperties(schemaMap){return schemaMap?Object.keys(schemaMap).filter(p=>p!=="__proto__"):[]}exports.allSchemaProperties=allSchemaProperties;function schemaProperties(it,schemaMap){return allSchemaProperties(schemaMap).filter(p=>!(0,util_1.alwaysValidSchema)(it,schemaMap[p]))}exports.schemaProperties=schemaProperties;function callValidateCode({schemaCode,data,it:{gen,topSchemaRef,schemaPath,errorPath},it},func,context,passSchema){const dataAndSchema=passSchema?(0,codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}`:data;const valCxt=[[names_1.default.instancePath,(0,codegen_1.strConcat)(names_1.default.instancePath,errorPath)],[names_1.default.parentData,it.parentData],[names_1.default.parentDataProperty,it.parentDataProperty],[names_1.default.rootData,names_1.default.rootData]];if(it.opts.dynamicRef)valCxt.push([names_1.default.dynamicAnchors,names_1.default.dynamicAnchors]);const args=(0,codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;return context!==codegen_1.nil?(0,codegen_1._)`${func}.call(${context}, ${args})`:(0,codegen_1._)`${func}(${args})`}exports.callValidateCode=callValidateCode;var newRegExp=(0,codegen_1._)`new RegExp`;function usePattern({gen,it:{opts}},pattern){const u=opts.unicodeRegExp?"u":"";const{regExp}=opts.code;const rx=regExp(pattern,u);return gen.scopeValue("pattern",{key:rx.toString(),ref:rx,code:(0,codegen_1._)`${regExp.code==="new RegExp"?newRegExp:(0,util_2.useFunc)(gen,regExp)}(${pattern}, ${u})`})}exports.usePattern=usePattern;function validateArray(cxt){const{gen,data,keyword,it}=cxt;const valid=gen.name("valid");if(it.allErrors){const validArr=gen.let("valid",true);validateItems(()=>gen.assign(validArr,false));return validArr}gen.var(valid,true);validateItems(()=>gen.break());return valid;function validateItems(notValid){const len=gen.const("len",(0,codegen_1._)`${data}.length`);gen.forRange("i",0,len,i=>{cxt.subschema({keyword,dataProp:i,dataPropType:util_1.Type.Num},valid);gen.if((0,codegen_1.not)(valid),notValid)})}}exports.validateArray=validateArray;function validateUnion(cxt){const{gen,schema,keyword,it}=cxt;if(!Array.isArray(schema))throw new Error("ajv implementation error");const alwaysValid=schema.some(sch=>(0,util_1.alwaysValidSchema)(it,sch));if(alwaysValid&&!it.opts.unevaluated)return;const valid=gen.let("valid",false);const schValid=gen.name("_valid");gen.block(()=>schema.forEach((_sch,i)=>{const schCxt=cxt.subschema({keyword,schemaProp:i,compositeRule:true},schValid);gen.assign(valid,(0,codegen_1._)`${valid} || ${schValid}`);const merged=cxt.mergeValidEvaluated(schCxt,schValid);if(!merged)gen.if((0,codegen_1.not)(valid))}));cxt.result(valid,()=>cxt.reset(),()=>cxt.error(true))}exports.validateUnion=validateUnion}});var require_keyword=__commonJS({"node_modules/ajv/dist/compile/validate/keyword.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateKeywordUsage=exports.validSchemaType=exports.funcKeywordCode=exports.macroKeywordCode=void 0;var codegen_1=require_codegen();var names_1=require_names();var code_1=require_code2();var errors_1=require_errors();function macroKeywordCode(cxt,def){const{gen,keyword,schema,parentSchema,it}=cxt;const macroSchema=def.macro.call(it.self,schema,parentSchema,it);const schemaRef=useKeyword(gen,keyword,macroSchema);if(it.opts.validateSchema!==false)it.self.validateSchema(macroSchema,true);const valid=gen.name("valid");cxt.subschema({schema:macroSchema,schemaPath:codegen_1.nil,errSchemaPath:`${it.errSchemaPath}/${keyword}`,topSchemaRef:schemaRef,compositeRule:true},valid);cxt.pass(valid,()=>cxt.error(true))}exports.macroKeywordCode=macroKeywordCode;function funcKeywordCode(cxt,def){var _a3;const{gen,keyword,schema,parentSchema,$data,it}=cxt;checkAsyncKeyword(it,def);const validate=!$data&&def.compile?def.compile.call(it.self,schema,parentSchema,it):def.validate;const validateRef=useKeyword(gen,keyword,validate);const valid=gen.let("valid");cxt.block$data(valid,validateKeyword);cxt.ok((_a3=def.valid)!==null&&_a3!==void 0?_a3:valid);function validateKeyword(){if(def.errors===false){assignValid();if(def.modifying)modifyData(cxt);reportErrs(()=>cxt.error())}else{const ruleErrs=def.async?validateAsync():validateSync();if(def.modifying)modifyData(cxt);reportErrs(()=>addErrs(cxt,ruleErrs))}}function validateAsync(){const ruleErrs=gen.let("ruleErrs",null);gen.try(()=>assignValid((0,codegen_1._)`await `),e=>gen.assign(valid,false).if((0,codegen_1._)`${e} instanceof ${it.ValidationError}`,()=>gen.assign(ruleErrs,(0,codegen_1._)`${e}.errors`),()=>gen.throw(e)));return ruleErrs}function validateSync(){const validateErrs=(0,codegen_1._)`${validateRef}.errors`;gen.assign(validateErrs,null);assignValid(codegen_1.nil);return validateErrs}function assignValid(_await=def.async?(0,codegen_1._)`await `:codegen_1.nil){const passCxt=it.opts.passContext?names_1.default.this:names_1.default.self;const passSchema=!("compile"in def&&!$data||def.schema===false);gen.assign(valid,(0,codegen_1._)`${_await}${(0,code_1.callValidateCode)(cxt,validateRef,passCxt,passSchema)}`,def.modifying)}function reportErrs(errors){var _a4;gen.if((0,codegen_1.not)((_a4=def.valid)!==null&&_a4!==void 0?_a4:valid),errors)}}exports.funcKeywordCode=funcKeywordCode;function modifyData(cxt){const{gen,data,it}=cxt;gen.if(it.parentData,()=>gen.assign(data,(0,codegen_1._)`${it.parentData}[${it.parentDataProperty}]`))}function addErrs(cxt,errs){const{gen}=cxt;gen.if((0,codegen_1._)`Array.isArray(${errs})`,()=>{gen.assign(names_1.default.vErrors,(0,codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`).assign(names_1.default.errors,(0,codegen_1._)`${names_1.default.vErrors}.length`);(0,errors_1.extendErrors)(cxt)},()=>cxt.error())}function checkAsyncKeyword({schemaEnv},def){if(def.async&&!schemaEnv.$async)throw new Error("async keyword in sync schema")}function useKeyword(gen,keyword,result){if(result===void 0)throw new Error(`keyword "${keyword}" failed to compile`);return gen.scopeValue("keyword",typeof result=="function"?{ref:result}:{ref:result,code:(0,codegen_1.stringify)(result)})}function validSchemaType(schema,schemaType,allowUndefined=false){return!schemaType.length||schemaType.some(st=>st==="array"?Array.isArray(schema):st==="object"?schema&&typeof schema=="object"&&!Array.isArray(schema):typeof schema==st||allowUndefined&&typeof schema=="undefined")}exports.validSchemaType=validSchemaType;function validateKeywordUsage({schema,opts,self,errSchemaPath},def,keyword){if(Array.isArray(def.keyword)?!def.keyword.includes(keyword):def.keyword!==keyword){throw new Error("ajv implementation error")}const deps=def.dependencies;if(deps===null||deps===void 0?void 0:deps.some(kwd=>!Object.prototype.hasOwnProperty.call(schema,kwd))){throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`)}if(def.validateSchema){const valid=def.validateSchema(schema[keyword]);if(!valid){const msg=`keyword "${keyword}" value is invalid at path "${errSchemaPath}": `+self.errorsText(def.validateSchema.errors);if(opts.validateSchema==="log")self.logger.error(msg);else throw new Error(msg)}}}exports.validateKeywordUsage=validateKeywordUsage}});var require_subschema=__commonJS({"node_modules/ajv/dist/compile/validate/subschema.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.extendSubschemaMode=exports.extendSubschemaData=exports.getSubschema=void 0;var codegen_1=require_codegen();var util_1=require_util();function getSubschema(it,{keyword,schemaProp,schema,schemaPath,errSchemaPath,topSchemaRef}){if(keyword!==void 0&&schema!==void 0){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(keyword!==void 0){const sch=it.schema[keyword];return schemaProp===void 0?{schema:sch,schemaPath:(0,codegen_1._)`${it.schemaPath}${(0,codegen_1.getProperty)(keyword)}`,errSchemaPath:`${it.errSchemaPath}/${keyword}`}:{schema:sch[schemaProp],schemaPath:(0,codegen_1._)`${it.schemaPath}${(0,codegen_1.getProperty)(keyword)}${(0,codegen_1.getProperty)(schemaProp)}`,errSchemaPath:`${it.errSchemaPath}/${keyword}/${(0,util_1.escapeFragment)(schemaProp)}`}}if(schema!==void 0){if(schemaPath===void 0||errSchemaPath===void 0||topSchemaRef===void 0){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema,schemaPath,topSchemaRef,errSchemaPath}}throw new Error('either "keyword" or "schema" must be passed')}exports.getSubschema=getSubschema;function extendSubschemaData(subschema,it,{dataProp,dataPropType:dpType,data,dataTypes,propertyName}){if(data!==void 0&&dataProp!==void 0){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen}=it;if(dataProp!==void 0){const{errorPath,dataPathArr,opts}=it;const nextData=gen.let("data",(0,codegen_1._)`${it.data}${(0,codegen_1.getProperty)(dataProp)}`,true);dataContextProps(nextData);subschema.errorPath=(0,codegen_1.str)`${errorPath}${(0,util_1.getErrorPath)(dataProp,dpType,opts.jsPropertySyntax)}`;subschema.parentDataProperty=(0,codegen_1._)`${dataProp}`;subschema.dataPathArr=[...dataPathArr,subschema.parentDataProperty]}if(data!==void 0){const nextData=data instanceof codegen_1.Name?data:gen.let("data",data,true);dataContextProps(nextData);if(propertyName!==void 0)subschema.propertyName=propertyName}if(dataTypes)subschema.dataTypes=dataTypes;function dataContextProps(_nextData){subschema.data=_nextData;subschema.dataLevel=it.dataLevel+1;subschema.dataTypes=[];it.definedProperties=new Set;subschema.parentData=it.data;subschema.dataNames=[...it.dataNames,_nextData]}}exports.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(subschema,{jtdDiscriminator,jtdMetadata,compositeRule,createErrors,allErrors}){if(compositeRule!==void 0)subschema.compositeRule=compositeRule;if(createErrors!==void 0)subschema.createErrors=createErrors;if(allErrors!==void 0)subschema.allErrors=allErrors;subschema.jtdDiscriminator=jtdDiscriminator;subschema.jtdMetadata=jtdMetadata}exports.extendSubschemaMode=extendSubschemaMode}});var require_fast_deep_equal=__commonJS({"node_modules/fast-deep-equal/index.js"(exports,module){"use strict";module.exports=function equal(a,b){if(a===b)return true;if(a&&b&&typeof a=="object"&&typeof b=="object"){if(a.constructor!==b.constructor)return false;var length,i,keys;if(Array.isArray(a)){length=a.length;if(length!=b.length)return false;for(i=length;i--!==0;)if(!equal(a[i],b[i]))return false;return true}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();keys=Object.keys(a);length=keys.length;if(length!==Object.keys(b).length)return false;for(i=length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return false;for(i=length;i--!==0;){var key=keys[i];if(!equal(a[key],b[key]))return false}return true}return a!==a&&b!==b}}});var require_json_schema_traverse=__commonJS({"node_modules/json-schema-traverse/index.js"(exports,module){"use strict";var traverse=module.exports=function(schema,opts,cb){if(typeof opts=="function"){cb=opts;opts={}}cb=opts.cb||cb;var pre=typeof cb=="function"?cb:cb.pre||function(){};var post=cb.post||function(){};_traverse(opts,pre,post,schema,"",schema)};traverse.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};traverse.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};traverse.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};traverse.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(opts,pre,post,schema,jsonPtr,rootSchema,parentJsonPtr,parentKeyword,parentSchema,keyIndex){if(schema&&typeof schema=="object"&&!Array.isArray(schema)){pre(schema,jsonPtr,rootSchema,parentJsonPtr,parentKeyword,parentSchema,keyIndex);for(var key in schema){var sch=schema[key];if(Array.isArray(sch)){if(key in traverse.arrayKeywords){for(var i=0;icount+=countKeys(sch))}if(count===Infinity)return Infinity}return count}function getFullPath(resolver,id="",normalize){if(normalize!==false)id=normalizeId(id);const p=resolver.parse(id);return _getFullPath(resolver,p)}exports.getFullPath=getFullPath;function _getFullPath(resolver,p){const serialized=resolver.serialize(p);return serialized.split("#")[0]+"#"}exports._getFullPath=_getFullPath;var TRAILING_SLASH_HASH=/#\/?$/;function normalizeId(id){return id?id.replace(TRAILING_SLASH_HASH,""):""}exports.normalizeId=normalizeId;function resolveUrl(resolver,baseId,id){id=normalizeId(id);return resolver.resolve(baseId,id)}exports.resolveUrl=resolveUrl;var ANCHOR=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(schema,baseId){if(typeof schema=="boolean")return{};const{schemaId,uriResolver}=this.opts;const schId=normalizeId(schema[schemaId]||baseId);const baseIds={"":schId};const pathPrefix=getFullPath(uriResolver,schId,false);const localRefs={};const schemaRefs=new Set;traverse(schema,{allKeys:true},(sch,jsonPtr,_,parentJsonPtr)=>{if(parentJsonPtr===void 0)return;const fullPath=pathPrefix+jsonPtr;let innerBaseId=baseIds[parentJsonPtr];if(typeof sch[schemaId]=="string")innerBaseId=addRef.call(this,sch[schemaId]);addAnchor.call(this,sch.$anchor);addAnchor.call(this,sch.$dynamicAnchor);baseIds[jsonPtr]=innerBaseId;function addRef(ref){const _resolve=this.opts.uriResolver.resolve;ref=normalizeId(innerBaseId?_resolve(innerBaseId,ref):ref);if(schemaRefs.has(ref))throw ambiguos(ref);schemaRefs.add(ref);let schOrRef=this.refs[ref];if(typeof schOrRef=="string")schOrRef=this.refs[schOrRef];if(typeof schOrRef=="object"){checkAmbiguosRef(sch,schOrRef.schema,ref)}else if(ref!==normalizeId(fullPath)){if(ref[0]==="#"){checkAmbiguosRef(sch,localRefs[ref],ref);localRefs[ref]=sch}else{this.refs[ref]=fullPath}}return ref}function addAnchor(anchor){if(typeof anchor=="string"){if(!ANCHOR.test(anchor))throw new Error(`invalid anchor "${anchor}"`);addRef.call(this,`#${anchor}`)}}});return localRefs;function checkAmbiguosRef(sch1,sch2,ref){if(sch2!==void 0&&!equal(sch1,sch2))throw ambiguos(ref)}function ambiguos(ref){return new Error(`reference "${ref}" resolves to more than one schema`)}}exports.getSchemaRefs=getSchemaRefs}});var require_validate=__commonJS({"node_modules/ajv/dist/compile/validate/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getData=exports.KeywordCxt=exports.validateFunctionCode=void 0;var boolSchema_1=require_boolSchema();var dataType_1=require_dataType();var applicability_1=require_applicability();var dataType_2=require_dataType();var defaults_1=require_defaults();var keyword_1=require_keyword();var subschema_1=require_subschema();var codegen_1=require_codegen();var names_1=require_names();var resolve_1=require_resolve();var util_1=require_util();var errors_1=require_errors();function validateFunctionCode(it){if(isSchemaObj(it)){checkKeywords(it);if(schemaCxtHasRules(it)){topSchemaObjCode(it);return}}validateFunction(it,()=>(0,boolSchema_1.topBoolOrEmptySchema)(it))}exports.validateFunctionCode=validateFunctionCode;function validateFunction({gen,validateName,schema,schemaEnv,opts},body){if(opts.code.es5){gen.func(validateName,(0,codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`,schemaEnv.$async,()=>{gen.code((0,codegen_1._)`"use strict"; ${funcSourceUrl(schema,opts)}`);destructureValCxtES5(gen,opts);gen.code(body)})}else{gen.func(validateName,(0,codegen_1._)`${names_1.default.data}, ${destructureValCxt(opts)}`,schemaEnv.$async,()=>gen.code(funcSourceUrl(schema,opts)).code(body))}}function destructureValCxt(opts){return(0,codegen_1._)`{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef?(0,codegen_1._)`, ${names_1.default.dynamicAnchors}={}`:codegen_1.nil}}={}`}function destructureValCxtES5(gen,opts){gen.if(names_1.default.valCxt,()=>{gen.var(names_1.default.instancePath,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.instancePath}`);gen.var(names_1.default.parentData,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.parentData}`);gen.var(names_1.default.parentDataProperty,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.parentDataProperty}`);gen.var(names_1.default.rootData,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.rootData}`);if(opts.dynamicRef)gen.var(names_1.default.dynamicAnchors,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`)},()=>{gen.var(names_1.default.instancePath,(0,codegen_1._)`""`);gen.var(names_1.default.parentData,(0,codegen_1._)`undefined`);gen.var(names_1.default.parentDataProperty,(0,codegen_1._)`undefined`);gen.var(names_1.default.rootData,names_1.default.data);if(opts.dynamicRef)gen.var(names_1.default.dynamicAnchors,(0,codegen_1._)`{}`)})}function topSchemaObjCode(it){const{schema,opts,gen}=it;validateFunction(it,()=>{if(opts.$comment&&schema.$comment)commentKeyword(it);checkNoDefault(it);gen.let(names_1.default.vErrors,null);gen.let(names_1.default.errors,0);if(opts.unevaluated)resetEvaluated(it);typeAndKeywords(it);returnResults(it)});return}function resetEvaluated(it){const{gen,validateName}=it;it.evaluated=gen.const("evaluated",(0,codegen_1._)`${validateName}.evaluated`);gen.if((0,codegen_1._)`${it.evaluated}.dynamicProps`,()=>gen.assign((0,codegen_1._)`${it.evaluated}.props`,(0,codegen_1._)`undefined`));gen.if((0,codegen_1._)`${it.evaluated}.dynamicItems`,()=>gen.assign((0,codegen_1._)`${it.evaluated}.items`,(0,codegen_1._)`undefined`))}function funcSourceUrl(schema,opts){const schId=typeof schema=="object"&&schema[opts.schemaId];return schId&&(opts.code.source||opts.code.process)?(0,codegen_1._)`/*# sourceURL=${schId} */`:codegen_1.nil}function subschemaCode(it,valid){if(isSchemaObj(it)){checkKeywords(it);if(schemaCxtHasRules(it)){subSchemaObjCode(it,valid);return}}(0,boolSchema_1.boolOrEmptySchema)(it,valid)}function schemaCxtHasRules({schema,self}){if(typeof schema=="boolean")return!schema;for(const key in schema)if(self.RULES.all[key])return true;return false}function isSchemaObj(it){return typeof it.schema!="boolean"}function subSchemaObjCode(it,valid){const{schema,gen,opts}=it;if(opts.$comment&&schema.$comment)commentKeyword(it);updateContext(it);checkAsyncSchema(it);const errsCount=gen.const("_errs",names_1.default.errors);typeAndKeywords(it,errsCount);gen.var(valid,(0,codegen_1._)`${errsCount} === ${names_1.default.errors}`)}function checkKeywords(it){(0,util_1.checkUnknownRules)(it);checkRefsAndKeywords(it)}function typeAndKeywords(it,errsCount){if(it.opts.jtd)return schemaKeywords(it,[],false,errsCount);const types=(0,dataType_1.getSchemaTypes)(it.schema);const checkedTypes=(0,dataType_1.coerceAndCheckDataType)(it,types);schemaKeywords(it,types,!checkedTypes,errsCount)}function checkRefsAndKeywords(it){const{schema,errSchemaPath,opts,self}=it;if(schema.$ref&&opts.ignoreKeywordsWithRef&&(0,util_1.schemaHasRulesButRef)(schema,self.RULES)){self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`)}}function checkNoDefault(it){const{schema,opts}=it;if(schema.default!==void 0&&opts.useDefaults&&opts.strictSchema){(0,util_1.checkStrictMode)(it,"default is ignored in the schema root")}}function updateContext(it){const schId=it.schema[it.opts.schemaId];if(schId)it.baseId=(0,resolve_1.resolveUrl)(it.opts.uriResolver,it.baseId,schId)}function checkAsyncSchema(it){if(it.schema.$async&&!it.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen,schemaEnv,schema,errSchemaPath,opts}){const msg=schema.$comment;if(opts.$comment===true){gen.code((0,codegen_1._)`${names_1.default.self}.logger.log(${msg})`)}else if(typeof opts.$comment=="function"){const schemaPath=(0,codegen_1.str)`${errSchemaPath}/$comment`;const rootName=gen.scopeValue("root",{ref:schemaEnv.root});gen.code((0,codegen_1._)`${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`)}}function returnResults(it){const{gen,schemaEnv,validateName,ValidationError,opts}=it;if(schemaEnv.$async){gen.if((0,codegen_1._)`${names_1.default.errors} === 0`,()=>gen.return(names_1.default.data),()=>gen.throw((0,codegen_1._)`new ${ValidationError}(${names_1.default.vErrors})`))}else{gen.assign((0,codegen_1._)`${validateName}.errors`,names_1.default.vErrors);if(opts.unevaluated)assignEvaluated(it);gen.return((0,codegen_1._)`${names_1.default.errors} === 0`)}}function assignEvaluated({gen,evaluated,props,items}){if(props instanceof codegen_1.Name)gen.assign((0,codegen_1._)`${evaluated}.props`,props);if(items instanceof codegen_1.Name)gen.assign((0,codegen_1._)`${evaluated}.items`,items)}function schemaKeywords(it,types,typeErrors,errsCount){const{gen,schema,data,allErrors,opts,self}=it;const{RULES}=self;if(schema.$ref&&(opts.ignoreKeywordsWithRef||!(0,util_1.schemaHasRulesButRef)(schema,RULES))){gen.block(()=>keywordCode(it,"$ref",RULES.all.$ref.definition));return}if(!opts.jtd)checkStrictTypes(it,types);gen.block(()=>{for(const group of RULES.rules)groupKeywords(group);groupKeywords(RULES.post)});function groupKeywords(group){if(!(0,applicability_1.shouldUseGroup)(schema,group))return;if(group.type){gen.if((0,dataType_2.checkDataType)(group.type,data,opts.strictNumbers));iterateKeywords(it,group);if(types.length===1&&types[0]===group.type&&typeErrors){gen.else();(0,dataType_2.reportTypeError)(it)}gen.endIf()}else{iterateKeywords(it,group)}if(!allErrors)gen.if((0,codegen_1._)`${names_1.default.errors} === ${errsCount||0}`)}}function iterateKeywords(it,group){const{gen,schema,opts:{useDefaults}}=it;if(useDefaults)(0,defaults_1.assignDefaults)(it,group.type);gen.block(()=>{for(const rule of group.rules){if((0,applicability_1.shouldUseRule)(schema,rule)){keywordCode(it,rule.keyword,rule.definition,group.type)}}})}function checkStrictTypes(it,types){if(it.schemaEnv.meta||!it.opts.strictTypes)return;checkContextTypes(it,types);if(!it.opts.allowUnionTypes)checkMultipleTypes(it,types);checkKeywordTypes(it,it.dataTypes)}function checkContextTypes(it,types){if(!types.length)return;if(!it.dataTypes.length){it.dataTypes=types;return}types.forEach(t=>{if(!includesType(it.dataTypes,t)){strictTypesError(it,`type "${t}" not allowed by context "${it.dataTypes.join(",")}"`)}});narrowSchemaTypes(it,types)}function checkMultipleTypes(it,ts){if(ts.length>1&&!(ts.length===2&&ts.includes("null"))){strictTypesError(it,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(it,ts){const rules=it.self.RULES.all;for(const keyword in rules){const rule=rules[keyword];if(typeof rule=="object"&&(0,applicability_1.shouldUseRule)(it.schema,rule)){const{type}=rule.definition;if(type.length&&!type.some(t=>hasApplicableType(ts,t))){strictTypesError(it,`missing type "${type.join(",")}" for keyword "${keyword}"`)}}}}function hasApplicableType(schTs,kwdT){return schTs.includes(kwdT)||kwdT==="number"&&schTs.includes("integer")}function includesType(ts,t){return ts.includes(t)||t==="integer"&&ts.includes("number")}function narrowSchemaTypes(it,withTypes){const ts=[];for(const t of it.dataTypes){if(includesType(withTypes,t))ts.push(t);else if(withTypes.includes("integer")&&t==="number")ts.push("integer")}it.dataTypes=ts}function strictTypesError(it,msg){const schemaPath=it.schemaEnv.baseId+it.errSchemaPath;msg+=` at "${schemaPath}" (strictTypes)`;(0,util_1.checkStrictMode)(it,msg,it.opts.strictTypes)}var KeywordCxt=class{constructor(it,def,keyword){(0,keyword_1.validateKeywordUsage)(it,def,keyword);this.gen=it.gen;this.allErrors=it.allErrors;this.keyword=keyword;this.data=it.data;this.schema=it.schema[keyword];this.$data=def.$data&&it.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,util_1.schemaRefOrVal)(it,this.schema,keyword,this.$data);this.schemaType=def.schemaType;this.parentSchema=it.schema;this.params={};this.it=it;this.def=def;if(this.$data){this.schemaCode=it.gen.const("vSchema",getData(this.$data,it))}else{this.schemaCode=this.schemaValue;if(!(0,keyword_1.validSchemaType)(this.schema,def.schemaType,def.allowUndefined)){throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`)}}if("code"in def?def.trackErrors:def.errors!==false){this.errsCount=it.gen.const("_errs",names_1.default.errors)}}result(condition,successAction,failAction){this.failResult((0,codegen_1.not)(condition),successAction,failAction)}failResult(condition,successAction,failAction){this.gen.if(condition);if(failAction)failAction();else this.error();if(successAction){this.gen.else();successAction();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(condition,failAction){this.failResult((0,codegen_1.not)(condition),void 0,failAction)}fail(condition){if(condition===void 0){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(condition);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(condition){if(!this.$data)return this.fail(condition);const{schemaCode}=this;this.fail((0,codegen_1._)`${schemaCode} !== undefined && (${(0,codegen_1.or)(this.invalid$data(),condition)})`)}error(append,errorParams,errorPaths){if(errorParams){this.setParams(errorParams);this._error(append,errorPaths);this.setParams({});return}this._error(append,errorPaths)}_error(append,errorPaths){;(append?errors_1.reportExtraError:errors_1.reportError)(this,this.def.error,errorPaths)}$dataError(){(0,errors_1.reportError)(this,this.def.$dataError||errors_1.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,errors_1.resetErrorsCount)(this.gen,this.errsCount)}ok(cond){if(!this.allErrors)this.gen.if(cond)}setParams(obj,assign){if(assign)Object.assign(this.params,obj);else this.params=obj}block$data(valid,codeBlock,$dataValid=codegen_1.nil){this.gen.block(()=>{this.check$data(valid,$dataValid);codeBlock()})}check$data(valid=codegen_1.nil,$dataValid=codegen_1.nil){if(!this.$data)return;const{gen,schemaCode,schemaType,def}=this;gen.if((0,codegen_1.or)((0,codegen_1._)`${schemaCode} === undefined`,$dataValid));if(valid!==codegen_1.nil)gen.assign(valid,true);if(schemaType.length||def.validateSchema){gen.elseIf(this.invalid$data());this.$dataError();if(valid!==codegen_1.nil)gen.assign(valid,false)}gen.else()}invalid$data(){const{gen,schemaCode,schemaType,def,it}=this;return(0,codegen_1.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(schemaType.length){if(!(schemaCode instanceof codegen_1.Name))throw new Error("ajv implementation error");const st=Array.isArray(schemaType)?schemaType:[schemaType];return(0,codegen_1._)`${(0,dataType_2.checkDataTypes)(st,schemaCode,it.opts.strictNumbers,dataType_2.DataType.Wrong)}`}return codegen_1.nil}function invalid$DataSchema(){if(def.validateSchema){const validateSchemaRef=gen.scopeValue("validate$data",{ref:def.validateSchema});return(0,codegen_1._)`!${validateSchemaRef}(${schemaCode})`}return codegen_1.nil}}subschema(appl,valid){const subschema=(0,subschema_1.getSubschema)(this.it,appl);(0,subschema_1.extendSubschemaData)(subschema,this.it,appl);(0,subschema_1.extendSubschemaMode)(subschema,appl);const nextContext={...this.it,...subschema,items:void 0,props:void 0};subschemaCode(nextContext,valid);return nextContext}mergeEvaluated(schemaCxt,toName){const{it,gen}=this;if(!it.opts.unevaluated)return;if(it.props!==true&&schemaCxt.props!==void 0){it.props=util_1.mergeEvaluated.props(gen,schemaCxt.props,it.props,toName)}if(it.items!==true&&schemaCxt.items!==void 0){it.items=util_1.mergeEvaluated.items(gen,schemaCxt.items,it.items,toName)}}mergeValidEvaluated(schemaCxt,valid){const{it,gen}=this;if(it.opts.unevaluated&&(it.props!==true||it.items!==true)){gen.if(valid,()=>this.mergeEvaluated(schemaCxt,codegen_1.Name));return true}}};exports.KeywordCxt=KeywordCxt;function keywordCode(it,keyword,def,ruleType){const cxt=new KeywordCxt(it,def,keyword);if("code"in def){def.code(cxt,ruleType)}else if(cxt.$data&&def.validate){(0,keyword_1.funcKeywordCode)(cxt,def)}else if("macro"in def){(0,keyword_1.macroKeywordCode)(cxt,def)}else if(def.compile||def.validate){(0,keyword_1.funcKeywordCode)(cxt,def)}}var JSON_POINTER=/^\/(?:[^~]|~0|~1)*$/;var RELATIVE_JSON_POINTER=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData($data,{dataLevel,dataNames,dataPathArr}){let jsonPointer;let data;if($data==="")return names_1.default.rootData;if($data[0]==="/"){if(!JSON_POINTER.test($data))throw new Error(`Invalid JSON-pointer: ${$data}`);jsonPointer=$data;data=names_1.default.rootData}else{const matches=RELATIVE_JSON_POINTER.exec($data);if(!matches)throw new Error(`Invalid JSON-pointer: ${$data}`);const up=+matches[1];jsonPointer=matches[2];if(jsonPointer==="#"){if(up>=dataLevel)throw new Error(errorMsg("property/index",up));return dataPathArr[dataLevel-up]}if(up>dataLevel)throw new Error(errorMsg("data",up));data=dataNames[dataLevel-up];if(!jsonPointer)return data}let expr=data;const segments=jsonPointer.split("/");for(const segment of segments){if(segment){data=(0,codegen_1._)`${data}${(0,codegen_1.getProperty)((0,util_1.unescapeJsonPointer)(segment))}`;expr=(0,codegen_1._)`${expr} && ${data}`}}return expr;function errorMsg(pointerType,up){return`Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`}}exports.getData=getData}});var require_validation_error=__commonJS({"node_modules/ajv/dist/runtime/validation_error.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var ValidationError=class extends Error{constructor(errors){super("validation failed");this.errors=errors;this.ajv=this.validation=true}};exports.default=ValidationError}});var require_ref_error=__commonJS({"node_modules/ajv/dist/compile/ref_error.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var resolve_1=require_resolve();var MissingRefError=class extends Error{constructor(resolver,baseId,ref,msg){super(msg||`can't resolve reference ${ref} from id ${baseId}`);this.missingRef=(0,resolve_1.resolveUrl)(resolver,baseId,ref);this.missingSchema=(0,resolve_1.normalizeId)((0,resolve_1.getFullPath)(resolver,this.missingRef))}};exports.default=MissingRefError}});var require_compile=__commonJS({"node_modules/ajv/dist/compile/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.resolveSchema=exports.getCompilingSchema=exports.resolveRef=exports.compileSchema=exports.SchemaEnv=void 0;var codegen_1=require_codegen();var validation_error_1=require_validation_error();var names_1=require_names();var resolve_1=require_resolve();var util_1=require_util();var validate_1=require_validate();var SchemaEnv=class{constructor(env){var _a3;this.refs={};this.dynamicAnchors={};let schema;if(typeof env.schema=="object")schema=env.schema;this.schema=env.schema;this.schemaId=env.schemaId;this.root=env.root||this;this.baseId=(_a3=env.baseId)!==null&&_a3!==void 0?_a3:(0,resolve_1.normalizeId)(schema===null||schema===void 0?void 0:schema[env.schemaId||"$id"]);this.schemaPath=env.schemaPath;this.localRefs=env.localRefs;this.meta=env.meta;this.$async=schema===null||schema===void 0?void 0:schema.$async;this.refs={}}};exports.SchemaEnv=SchemaEnv;function compileSchema(sch){const _sch=getCompilingSchema.call(this,sch);if(_sch)return _sch;const rootId=(0,resolve_1.getFullPath)(this.opts.uriResolver,sch.root.baseId);const{es5,lines}=this.opts.code;const{ownProperties}=this.opts;const gen=new codegen_1.CodeGen(this.scope,{es5,lines,ownProperties});let _ValidationError;if(sch.$async){_ValidationError=gen.scopeValue("Error",{ref:validation_error_1.default,code:(0,codegen_1._)`require("ajv/dist/runtime/validation_error").default`})}const validateName=gen.scopeName("validate");sch.validateName=validateName;const schemaCxt={gen,allErrors:this.opts.allErrors,data:names_1.default.data,parentData:names_1.default.parentData,parentDataProperty:names_1.default.parentDataProperty,dataNames:[names_1.default.data],dataPathArr:[codegen_1.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:gen.scopeValue("schema",this.opts.code.source===true?{ref:sch.schema,code:(0,codegen_1.stringify)(sch.schema)}:{ref:sch.schema}),validateName,ValidationError:_ValidationError,schema:sch.schema,schemaEnv:sch,rootId,baseId:sch.baseId||rootId,schemaPath:codegen_1.nil,errSchemaPath:sch.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,codegen_1._)`""`,opts:this.opts,self:this};let sourceCode;try{this._compilations.add(sch);(0,validate_1.validateFunctionCode)(schemaCxt);gen.optimize(this.opts.code.optimize);const validateCode=gen.toString();sourceCode=`${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`;if(this.opts.code.process)sourceCode=this.opts.code.process(sourceCode,sch);const makeValidate=new Function(`${names_1.default.self}`,`${names_1.default.scope}`,sourceCode);const validate=makeValidate(this,this.scope.get());this.scope.value(validateName,{ref:validate});validate.errors=null;validate.schema=sch.schema;validate.schemaEnv=sch;if(sch.$async)validate.$async=true;if(this.opts.code.source===true){validate.source={validateName,validateCode,scopeValues:gen._values}}if(this.opts.unevaluated){const{props,items}=schemaCxt;validate.evaluated={props:props instanceof codegen_1.Name?void 0:props,items:items instanceof codegen_1.Name?void 0:items,dynamicProps:props instanceof codegen_1.Name,dynamicItems:items instanceof codegen_1.Name};if(validate.source)validate.source.evaluated=(0,codegen_1.stringify)(validate.evaluated)}sch.validate=validate;return sch}catch(e){delete sch.validate;delete sch.validateName;if(sourceCode)this.logger.error("Error compiling schema, function code:",sourceCode);throw e}finally{this._compilations.delete(sch)}}exports.compileSchema=compileSchema;function resolveRef(root,baseId,ref){var _a3;ref=(0,resolve_1.resolveUrl)(this.opts.uriResolver,baseId,ref);const schOrFunc=root.refs[ref];if(schOrFunc)return schOrFunc;let _sch=resolve.call(this,root,ref);if(_sch===void 0){const schema=(_a3=root.localRefs)===null||_a3===void 0?void 0:_a3[ref];const{schemaId}=this.opts;if(schema)_sch=new SchemaEnv({schema,schemaId,root,baseId})}if(_sch===void 0)return;return root.refs[ref]=inlineOrCompile.call(this,_sch)}exports.resolveRef=resolveRef;function inlineOrCompile(sch){if((0,resolve_1.inlineRef)(sch.schema,this.opts.inlineRefs))return sch.schema;return sch.validate?sch:compileSchema.call(this,sch)}function getCompilingSchema(schEnv){for(const sch of this._compilations){if(sameSchemaEnv(sch,schEnv))return sch}}exports.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(s1,s2){return s1.schema===s2.schema&&s1.root===s2.root&&s1.baseId===s2.baseId}function resolve(root,ref){let sch;while(typeof(sch=this.refs[ref])=="string")ref=sch;return sch||this.schemas[ref]||resolveSchema.call(this,root,ref)}function resolveSchema(root,ref){const p=this.opts.uriResolver.parse(ref);const refPath=(0,resolve_1._getFullPath)(this.opts.uriResolver,p);let baseId=(0,resolve_1.getFullPath)(this.opts.uriResolver,root.baseId,void 0);if(Object.keys(root.schema).length>0&&refPath===baseId){return getJsonPointer.call(this,p,root)}const id=(0,resolve_1.normalizeId)(refPath);const schOrRef=this.refs[id]||this.schemas[id];if(typeof schOrRef=="string"){const sch=resolveSchema.call(this,root,schOrRef);if(typeof(sch===null||sch===void 0?void 0:sch.schema)!=="object")return;return getJsonPointer.call(this,p,sch)}if(typeof(schOrRef===null||schOrRef===void 0?void 0:schOrRef.schema)!=="object")return;if(!schOrRef.validate)compileSchema.call(this,schOrRef);if(id===(0,resolve_1.normalizeId)(ref)){const{schema}=schOrRef;const{schemaId}=this.opts;const schId=schema[schemaId];if(schId)baseId=(0,resolve_1.resolveUrl)(this.opts.uriResolver,baseId,schId);return new SchemaEnv({schema,schemaId,root,baseId})}return getJsonPointer.call(this,p,schOrRef)}exports.resolveSchema=resolveSchema;var PREVENT_SCOPE_CHANGE=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(parsedRef,{baseId,schema,root}){var _a3;if(((_a3=parsedRef.fragment)===null||_a3===void 0?void 0:_a3[0])!=="/")return;for(const part of parsedRef.fragment.slice(1).split("/")){if(typeof schema==="boolean")return;const partSchema=schema[(0,util_1.unescapeFragment)(part)];if(partSchema===void 0)return;schema=partSchema;const schId=typeof schema==="object"&&schema[this.opts.schemaId];if(!PREVENT_SCOPE_CHANGE.has(part)&&schId){baseId=(0,resolve_1.resolveUrl)(this.opts.uriResolver,baseId,schId)}}let env;if(typeof schema!="boolean"&&schema.$ref&&!(0,util_1.schemaHasRulesButRef)(schema,this.RULES)){const $ref=(0,resolve_1.resolveUrl)(this.opts.uriResolver,baseId,schema.$ref);env=resolveSchema.call(this,root,$ref)}const{schemaId}=this.opts;env=env||new SchemaEnv({schema,schemaId,root,baseId});if(env.schema!==env.root.schema)return env;return void 0}}});var require_data=__commonJS({"node_modules/ajv/dist/refs/data.json"(exports,module){module.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}}});var require_utils=__commonJS({"node_modules/fast-uri/lib/utils.js"(exports,module){"use strict";var isUUID=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);var isIPv4=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);var isHexPair=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);var isUnreserved=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);var isPathCharacter=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);var isQueryFragmentCharacter=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);var isUserinfoCharacter=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);var BYTE_HEX=new Array(256);{const HEX_DIGITS="0123456789ABCDEF";for(let i=0;i<256;i++){BYTE_HEX[i]="%"+HEX_DIGITS[i>>4]+HEX_DIGITS[i&15]}}function percentEncodeNonAscii(cp){if(cp<2048){return BYTE_HEX[192|cp>>6]+BYTE_HEX[128|cp&63]}if(cp<65536){return BYTE_HEX[224|cp>>12]+BYTE_HEX[128|cp>>6&63]+BYTE_HEX[128|cp&63]}return BYTE_HEX[240|cp>>18]+BYTE_HEX[128|cp>>12&63]+BYTE_HEX[128|cp>>6&63]+BYTE_HEX[128|cp&63]}function stringArrayToHexStripped(input){let acc="";let code=0;let i=0;for(i=0;i=48&&code<=57||code>=65&&code<=70||code>=97&&code<=102)){return""}acc+=input[i];break}for(i+=1;i=48&&code<=57||code>=65&&code<=70||code>=97&&code<=102)){return""}acc+=input[i]}return acc}var isHextet=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);var isIPvFuture=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);var isZoneCharacter=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);var nonSimpleDomain=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function isZoneIdentifier(zone){if(zone.length===0)return false;for(let i=0;ibestLength){bestLength=runLength;bestStart=runStart}}else{runStart=-1;runLength=0}}if(bestLength<2)return hextets.join(":");const head=hextets.slice(0,bestStart).join(":");const tail=hextets.slice(bestStart+bestLength).join(":");return head+"::"+tail}function normalizeIPv6Address(input){const compression=input.indexOf("::");if(compression!==-1&&input.indexOf("::",compression+1)!==-1)return void 0;const left=compression===-1?input.split(":"):input.slice(0,compression).split(":");const right=compression===-1?[]:input.slice(compression+2).split(":");if(compression!==-1){if(left.length===1&&left[0]==="")left.length=0;if(right.length===1&&right[0]==="")right.length=0}const parts=left.concat(right);let hextetCount=0;for(let i=0;i=8)return void 0;const expanded=parts.slice(0,left.length);for(let i=hextetCount;i<8;i++)expanded.push("0");for(let i=left.length;iHOST_DELIMS[ch])}function normalizePercentEncoding(input,decodeUnreserved=false){if(input.indexOf("%")===-1){return input}let output="";for(let i=0;i57343){output+=percentEncodeNonAscii(code)}else if(code<=56319&&i+1=56320&&low<=57343){output+=percentEncodeNonAscii(65536+(code-55296<<10)+(low-56320));i++}else{output+=percentEncodeNonAscii(65533)}}else{output+=percentEncodeNonAscii(65533)}}}return output}function serializePathEncoding(input,pathNoScheme=false){let output="";let firstSegment=pathNoScheme&&input[0]!=="/";for(let i=0;i57343){output+=percentEncodeNonAscii(code)}else if(code<=56319&&i+1=56320&&low<=57343){output+=percentEncodeNonAscii(65536+(code-55296<<10)+(low-56320));i++}else{output+=percentEncodeNonAscii(65533)}}else{output+=percentEncodeNonAscii(65533)}}}return output}function encodeComponent(input,isAllowed){let output="";for(let i=0;i57343){output+=percentEncodeNonAscii(code)}else if(code<=56319&&i+1=56320&&low<=57343){output+=percentEncodeNonAscii(65536+(code-55296<<10)+(low-56320));i++}else{output+=percentEncodeNonAscii(65533)}}else{output+=percentEncodeNonAscii(65533)}}}return output}function encodeUserinfo(input){return encodeComponent(input,isUserinfoCharacter)}function encodeQuery(input){return encodeComponent(input,isQueryFragmentCharacter)}function encodeFragment(input){return encodeComponent(input,isQueryFragmentCharacter)}function isEscapeSafe(cp){return cp>=48&&cp<=57||cp>=65&&cp<=90||cp>=97&&cp<=122||cp===42||cp===43||cp===45||cp===46||cp===47||cp===64||cp===95}function normalizeQueryFragmentEncoding(input){let output="";for(let i=0;i57343){output+=percentEncodeNonAscii(code)}else if(code<=56319&&i+1=56320&&low<=57343){output+=percentEncodeNonAscii(65536+(code-55296<<10)+(low-56320));i++}else{output+=percentEncodeNonAscii(65533)}}else{output+=percentEncodeNonAscii(65533)}}}return output}function escapePreservingEscapes(input){let output="";for(let i=0;i65535)){return"URI port is malformed."}return void 0}function hasMalformedPercentEncoding(component){if(component===void 0)return false;let percent=component.indexOf("%");while(percent!==-1){if(percent+2>=component.length||!/^[\da-f]{2}$/iu.test(component.slice(percent+1,percent+3))){return true}percent=component.indexOf("%",percent+3)}return false}function hasMalformedComponentPercentEncoding(matches){const host=matches[4];return hasMalformedPercentEncoding(matches[3])||host!==void 0&&!(host[0]==="["&&host[host.length-1]==="]")&&hasMalformedPercentEncoding(host)||hasMalformedPercentEncoding(matches[6])||hasMalformedPercentEncoding(matches[7])||hasMalformedPercentEncoding(matches[8])}function canonicalizeHost(parsed,options,schemeHandler,isIP){if(!options.unicodeSupport&&(!schemeHandler||!schemeHandler.unicodeSupport)&&parsed.host&&parsed.host[0]!=="["&&(options.domainHost||schemeHandler&&schemeHandler.domainHost)&&isIP===false&&nonSimpleDomain(parsed.host)){try{parsed.host=new URL("http://"+parsed.host).hostname}catch(e){parsed.error=parsed.error||"Host's domain name can not be converted to ASCII: "+e;return true}}return false}function parseWithStatus(uri,opts){const options=Object.assign({},opts);const parsed={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let malformedAuthorityOrPort=false;let malformedPercentEncoding=false;let malformedSchemeSpecific=false;let malformedHost=false;let malformedIPLiteral=false;let malformedScheme=false;let isIP=false;if(options.reference==="suffix"){if(options.scheme){uri=options.scheme+":"+uri}else{uri="//"+uri}}const authorityMatch=uri.match(AUTHORITY_PREFIX);if(authorityMatch!==null&&authorityMatch[1].indexOf("\\")!==-1){parsed.error="URI authority must not contain a literal backslash.";malformedAuthorityOrPort=true}const introducerMatch=uri.match(AUTHORITY_INTRODUCER_REGION);if(introducerMatch!==null){const region=introducerMatch[1];const normalizedRegion=region.replace(/[\t\n\r]/g,"");if(normalizedRegion.length>=2){if(normalizedRegion.slice(0,2)!=="//"){parsed.error=parsed.error||"URI authority must not contain a literal backslash.";malformedAuthorityOrPort=true}else if(region.length!==normalizedRegion.length){parsed.error=parsed.error||"URI authority introducer must not contain whitespace.";malformedAuthorityOrPort=true}}}const matches=uri.match(URI_PARSE);if(matches){parsed.scheme=matches[1];parsed.userinfo=matches[3];parsed.host=matches[4];parsed.port=parseInt(matches[5],10);parsed.path=matches[6]||"";parsed.query=matches[7];parsed.fragment=matches[8];if(parsed.scheme!==void 0){const decodedScheme=unescape(parsed.scheme);if(VALID_SCHEME.test(decodedScheme)){parsed.scheme=decodedScheme.toLowerCase()}else{parsed.error=parsed.error||MALFORMED_SCHEME_ERROR;malformedScheme=true}}malformedPercentEncoding=hasMalformedComponentPercentEncoding(matches);if(malformedPercentEncoding){parsed.error=parsed.error||"URI contains malformed percent-encoding."}if(isNaN(parsed.port)){parsed.port=matches[5]}const parseError=getParseError(parsed,matches);if(parseError!==void 0){parsed.error=parsed.error||parseError;malformedAuthorityOrPort=true}if(parsed.host){const ipv4result=isIPv4(parsed.host);if(ipv4result===false){const bracketedIPLiteral=parsed.host[0]==="["&&parsed.host[parsed.host.length-1]==="]";const ipv6result=normalizeIPv6(parsed.host);isIP=ipv6result.isIPV6||ipv6result.isIPVFuture===true;malformedIPLiteral=bracketedIPLiteral&&ipv6result.error===true;parsed.host=isIP?ipv6result.host:ipv6result.host.toLowerCase();if(malformedIPLiteral){parsed.error=parsed.error||"URI host is malformed.";malformedAuthorityOrPort=true}}else{isIP=true}}if(parsed.scheme===void 0&&parsed.userinfo===void 0&&parsed.host===void 0&&parsed.port===void 0&&parsed.query===void 0&&!parsed.path){parsed.reference="same-document"}else if(parsed.scheme===void 0){parsed.reference="relative"}else if(parsed.fragment===void 0){parsed.reference="absolute"}else{parsed.reference="uri"}if(options.reference&&options.reference!=="suffix"&&options.reference!==parsed.reference){parsed.error=parsed.error||"URI is not a "+options.reference+" reference."}const schemeHandler=getSchemeHandler(options.scheme||parsed.scheme);malformedHost=canonicalizeHost(parsed,options,schemeHandler,isIP);if(!schemeHandler||schemeHandler&&!schemeHandler.skipNormalize){if(uri.indexOf("%")!==-1){if(parsed.host!==void 0&&!malformedIPLiteral){const host=isIP?parsed.host:normalizePercentEncoding(parsed.host,true);parsed.host=reescapeHostDelimiters(host,isIP)}}if(parsed.path){parsed.path=normalizePathEncoding(parsed.path)}if(parsed.query){parsed.query=normalizeQueryFragmentEncoding(parsed.query)}if(parsed.fragment){parsed.fragment=normalizeQueryFragmentEncoding(parsed.fragment)}}if(schemeHandler&&schemeHandler.parse){schemeHandler.parse(parsed,options);if(schemeHandler===SCHEMES.urn&&parsed.nid===void 0){malformedSchemeSpecific=true}}}else{parsed.error=parsed.error||"URI can not be parsed."}return{parsed,malformedAuthorityOrPort,malformedPercentEncoding,malformedSchemeSpecific,malformedHost,malformedScheme}}function parse3(uri,opts){return parseWithStatus(uri,opts).parsed}function normalizeString(uri,opts){return normalizeStringWithStatus(uri,opts).normalized}function normalizeStringWithStatus(uri,opts){const{parsed,malformedAuthorityOrPort,malformedPercentEncoding,malformedSchemeSpecific,malformedHost,malformedScheme}=parseWithStatus(uri,opts);return{normalized:malformedAuthorityOrPort||malformedPercentEncoding||malformedSchemeSpecific||malformedHost||malformedScheme?uri:serialize(parsed,opts),malformedAuthorityOrPort,malformedPercentEncoding,malformedSchemeSpecific,malformedHost,malformedScheme}}function normalizeComparableURI(uri,opts){if(typeof uri!=="string"&&typeof uri!=="object"){return void 0}let value;try{value=typeof uri==="string"?uri:serialize(uri,opts)}catch{return void 0}const{normalized,malformedAuthorityOrPort,malformedPercentEncoding,malformedSchemeSpecific,malformedHost,malformedScheme}=normalizeStringWithStatus(value,opts);return malformedAuthorityOrPort||malformedPercentEncoding||malformedSchemeSpecific||malformedHost||malformedScheme?void 0:normalized}var fastUri={SCHEMES,normalize,resolve,resolveComponent,equal,serialize,parse:parse3};module.exports=fastUri;module.exports.default=fastUri;module.exports.fastUri=fastUri}});var require_uri=__commonJS({"node_modules/ajv/dist/runtime/uri.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var uri=require_fast_uri();uri.code='require("ajv/dist/runtime/uri").default';exports.default=uri}});var require_core=__commonJS({"node_modules/ajv/dist/core.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.CodeGen=exports.Name=exports.nil=exports.stringify=exports.str=exports._=exports.KeywordCxt=void 0;var validate_1=require_validate();Object.defineProperty(exports,"KeywordCxt",{enumerable:true,get:function(){return validate_1.KeywordCxt}});var codegen_1=require_codegen();Object.defineProperty(exports,"_",{enumerable:true,get:function(){return codegen_1._}});Object.defineProperty(exports,"str",{enumerable:true,get:function(){return codegen_1.str}});Object.defineProperty(exports,"stringify",{enumerable:true,get:function(){return codegen_1.stringify}});Object.defineProperty(exports,"nil",{enumerable:true,get:function(){return codegen_1.nil}});Object.defineProperty(exports,"Name",{enumerable:true,get:function(){return codegen_1.Name}});Object.defineProperty(exports,"CodeGen",{enumerable:true,get:function(){return codegen_1.CodeGen}});var validation_error_1=require_validation_error();var ref_error_1=require_ref_error();var rules_1=require_rules();var compile_1=require_compile();var codegen_2=require_codegen();var resolve_1=require_resolve();var dataType_1=require_dataType();var util_1=require_util();var $dataRefSchema=require_data();var uri_1=require_uri();var defaultRegExp=(str,flags)=>new RegExp(str,flags);defaultRegExp.code="new RegExp";var META_IGNORE_OPTIONS=["removeAdditional","useDefaults","coerceTypes"];var EXT_SCOPE_NAMES=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);var removedOptions={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};var deprecatedOptions={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};var MAX_EXPRESSION=200;function requiredOptions(o){var _a3,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,_x,_y,_z,_0;const s=o.strict;const _optz=(_a3=o.code)===null||_a3===void 0?void 0:_a3.optimize;const optimize=_optz===true||_optz===void 0?1:_optz||0;const regExp=(_c=(_b=o.code)===null||_b===void 0?void 0:_b.regExp)!==null&&_c!==void 0?_c:defaultRegExp;const uriResolver=(_d=o.uriResolver)!==null&&_d!==void 0?_d:uri_1.default;return{strictSchema:(_f=(_e=o.strictSchema)!==null&&_e!==void 0?_e:s)!==null&&_f!==void 0?_f:true,strictNumbers:(_h=(_g=o.strictNumbers)!==null&&_g!==void 0?_g:s)!==null&&_h!==void 0?_h:true,strictTypes:(_k=(_j=o.strictTypes)!==null&&_j!==void 0?_j:s)!==null&&_k!==void 0?_k:"log",strictTuples:(_m=(_l=o.strictTuples)!==null&&_l!==void 0?_l:s)!==null&&_m!==void 0?_m:"log",strictRequired:(_p=(_o=o.strictRequired)!==null&&_o!==void 0?_o:s)!==null&&_p!==void 0?_p:false,code:o.code?{...o.code,optimize,regExp}:{optimize,regExp},loopRequired:(_q=o.loopRequired)!==null&&_q!==void 0?_q:MAX_EXPRESSION,loopEnum:(_r=o.loopEnum)!==null&&_r!==void 0?_r:MAX_EXPRESSION,meta:(_s=o.meta)!==null&&_s!==void 0?_s:true,messages:(_t=o.messages)!==null&&_t!==void 0?_t:true,inlineRefs:(_u=o.inlineRefs)!==null&&_u!==void 0?_u:true,schemaId:(_v=o.schemaId)!==null&&_v!==void 0?_v:"$id",addUsedSchema:(_w=o.addUsedSchema)!==null&&_w!==void 0?_w:true,validateSchema:(_x=o.validateSchema)!==null&&_x!==void 0?_x:true,validateFormats:(_y=o.validateFormats)!==null&&_y!==void 0?_y:true,unicodeRegExp:(_z=o.unicodeRegExp)!==null&&_z!==void 0?_z:true,int32range:(_0=o.int32range)!==null&&_0!==void 0?_0:true,uriResolver}}var Ajv2=class{constructor(opts={}){this.schemas={};this.refs={};this.formats=Object.create(null);this._compilations=new Set;this._loading={};this._cache=new Map;opts=this.opts={...opts,...requiredOptions(opts)};const{es5,lines}=this.opts.code;this.scope=new codegen_2.ValueScope({scope:{},prefixes:EXT_SCOPE_NAMES,es5,lines});this.logger=getLogger(opts.logger);const formatOpt=opts.validateFormats;opts.validateFormats=false;this.RULES=(0,rules_1.getRules)();checkOptions.call(this,removedOptions,opts,"NOT SUPPORTED");checkOptions.call(this,deprecatedOptions,opts,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(opts.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(opts.keywords)addInitialKeywords.call(this,opts.keywords);if(typeof opts.meta=="object")this.addMetaSchema(opts.meta);addInitialSchemas.call(this);opts.validateFormats=formatOpt}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data,meta:meta2,schemaId}=this.opts;let _dataRefSchema=$dataRefSchema;if(schemaId==="id"){_dataRefSchema={...$dataRefSchema};_dataRefSchema.id=_dataRefSchema.$id;delete _dataRefSchema.$id}if(meta2&&$data)this.addMetaSchema(_dataRefSchema,_dataRefSchema[schemaId],false)}defaultMeta(){const{meta:meta2,schemaId}=this.opts;return this.opts.defaultMeta=typeof meta2=="object"?meta2[schemaId]||meta2:void 0}validate(schemaKeyRef,data){let v;if(typeof schemaKeyRef=="string"){v=this.getSchema(schemaKeyRef);if(!v)throw new Error(`no schema with key or ref "${schemaKeyRef}"`)}else{v=this.compile(schemaKeyRef)}const valid=v(data);if(!("$async"in v))this.errors=v.errors;return valid}compile(schema,_meta){const sch=this._addSchema(schema,_meta);return sch.validate||this._compileSchemaEnv(sch)}compileAsync(schema,meta2){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema}=this.opts;return runCompileAsync.call(this,schema,meta2);async function runCompileAsync(_schema,_meta){await loadMetaSchema.call(this,_schema.$schema);const sch=this._addSchema(_schema,_meta);return sch.validate||_compileAsync.call(this,sch)}async function loadMetaSchema($ref){if($ref&&!this.getSchema($ref)){await runCompileAsync.call(this,{$ref},true)}}async function _compileAsync(sch){try{return this._compileSchemaEnv(sch)}catch(e){if(!(e instanceof ref_error_1.default))throw e;checkLoaded.call(this,e);await loadMissingSchema.call(this,e.missingSchema);return _compileAsync.call(this,sch)}}function checkLoaded({missingSchema:ref,missingRef}){if(this.refs[ref]){throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`)}}async function loadMissingSchema(ref){const _schema=await _loadSchema.call(this,ref);if(!this.refs[ref])await loadMetaSchema.call(this,_schema.$schema);if(!this.refs[ref])this.addSchema(_schema,ref,meta2)}async function _loadSchema(ref){const p=this._loading[ref];if(p)return p;try{return await(this._loading[ref]=loadSchema(ref))}finally{delete this._loading[ref]}}}addSchema(schema,key,_meta,_validateSchema=this.opts.validateSchema){if(Array.isArray(schema)){for(const sch of schema)this.addSchema(sch,void 0,_meta,_validateSchema);return this}let id;if(typeof schema==="object"){const{schemaId}=this.opts;id=schema[schemaId];if(id!==void 0&&typeof id!="string"){throw new Error(`schema ${schemaId} must be string`)}}key=(0,resolve_1.normalizeId)(key||id);this._checkUnique(key);this.schemas[key]=this._addSchema(schema,_meta,key,_validateSchema,true);return this}addMetaSchema(schema,key,_validateSchema=this.opts.validateSchema){this.addSchema(schema,key,true,_validateSchema);return this}validateSchema(schema,throwOrLogError){if(typeof schema=="boolean")return true;let $schema;$schema=schema.$schema;if($schema!==void 0&&typeof $schema!="string"){throw new Error("$schema must be a string")}$schema=$schema||this.opts.defaultMeta||this.defaultMeta();if(!$schema){this.logger.warn("meta-schema not available");this.errors=null;return true}const valid=this.validate($schema,schema);if(!valid&&throwOrLogError){const message="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(message);else throw new Error(message)}return valid}getSchema(keyRef){let sch;while(typeof(sch=getSchEnv.call(this,keyRef))=="string")keyRef=sch;if(sch===void 0){const{schemaId}=this.opts;const root=new compile_1.SchemaEnv({schema:{},schemaId});sch=compile_1.resolveSchema.call(this,root,keyRef);if(!sch)return;this.refs[keyRef]=sch}return sch.validate||this._compileSchemaEnv(sch)}removeSchema(schemaKeyRef){if(schemaKeyRef instanceof RegExp){this._removeAllSchemas(this.schemas,schemaKeyRef);this._removeAllSchemas(this.refs,schemaKeyRef);return this}switch(typeof schemaKeyRef){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const sch=getSchEnv.call(this,schemaKeyRef);if(typeof sch=="object")this._cache.delete(sch.schema);delete this.schemas[schemaKeyRef];delete this.refs[schemaKeyRef];return this}case"object":{const cacheKey=schemaKeyRef;this._cache.delete(cacheKey);let id=schemaKeyRef[this.opts.schemaId];if(id){id=(0,resolve_1.normalizeId)(id);delete this.schemas[id];delete this.refs[id]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(definitions){for(const def of definitions)this.addKeyword(def);return this}addKeyword(kwdOrDef,def){let keyword;if(typeof kwdOrDef=="string"){keyword=kwdOrDef;if(typeof def=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");def.keyword=keyword}}else if(typeof kwdOrDef=="object"&&def===void 0){def=kwdOrDef;keyword=def.keyword;if(Array.isArray(keyword)&&!keyword.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,keyword,def);if(!def){(0,util_1.eachItem)(keyword,kwd=>addRule.call(this,kwd));return this}keywordMetaschema.call(this,def);const definition={...def,type:(0,dataType_1.getJSONTypes)(def.type),schemaType:(0,dataType_1.getJSONTypes)(def.schemaType)};(0,util_1.eachItem)(keyword,definition.type.length===0?k=>addRule.call(this,k,definition):k=>definition.type.forEach(t=>addRule.call(this,k,definition,t)));return this}getKeyword(keyword){const rule=this.RULES.all[keyword];return typeof rule=="object"?rule.definition:!!rule}removeKeyword(keyword){const{RULES}=this;delete RULES.keywords[keyword];delete RULES.all[keyword];for(const group of RULES.rules){const i=group.rules.findIndex(rule=>rule.keyword===keyword);if(i>=0)group.rules.splice(i,1)}return this}addFormat(name,format){if(typeof format=="string")format=new RegExp(format);this.formats[name]=format;return this}errorsText(errors=this.errors,{separator=", ",dataVar="data"}={}){if(!errors||errors.length===0)return"No errors";return errors.map(e=>`${dataVar}${e.instancePath} ${e.message}`).reduce((text,msg)=>text+separator+msg)}$dataMetaSchema(metaSchema,keywordsJsonPointers){const rules=this.RULES.all;metaSchema=JSON.parse(JSON.stringify(metaSchema));for(const jsonPointer of keywordsJsonPointers){const segments=jsonPointer.split("/").slice(1);let keywords=metaSchema;for(const seg of segments)keywords=keywords[seg];for(const key in rules){const rule=rules[key];if(typeof rule!="object")continue;const{$data}=rule.definition;const schema=keywords[key];if($data&&schema)keywords[key]=schemaOrData(schema)}}return metaSchema}_removeAllSchemas(schemas,regex){for(const keyRef in schemas){const sch=schemas[keyRef];if(!regex||regex.test(keyRef)){if(typeof sch=="string"){delete schemas[keyRef]}else if(sch&&!sch.meta){this._cache.delete(sch.schema);delete schemas[keyRef]}}}}_addSchema(schema,meta2,baseId,validateSchema=this.opts.validateSchema,addSchema=this.opts.addUsedSchema){let id;const{schemaId}=this.opts;if(typeof schema=="object"){id=schema[schemaId]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof schema!="boolean")throw new Error("schema must be object or boolean")}let sch=this._cache.get(schema);if(sch!==void 0)return sch;baseId=(0,resolve_1.normalizeId)(id||baseId);const localRefs=resolve_1.getSchemaRefs.call(this,schema,baseId);sch=new compile_1.SchemaEnv({schema,schemaId,meta:meta2,baseId,localRefs});this._cache.set(sch.schema,sch);if(addSchema&&!baseId.startsWith("#")){if(baseId)this._checkUnique(baseId);this.refs[baseId]=sch}if(validateSchema)this.validateSchema(schema,true);return sch}_checkUnique(id){if(this.schemas[id]||this.refs[id]){throw new Error(`schema with key or id "${id}" already exists`)}}_compileSchemaEnv(sch){if(sch.meta)this._compileMetaSchema(sch);else compile_1.compileSchema.call(this,sch);if(!sch.validate)throw new Error("ajv implementation error");return sch.validate}_compileMetaSchema(sch){const currentOpts=this.opts;this.opts=this._metaOpts;try{compile_1.compileSchema.call(this,sch)}finally{this.opts=currentOpts}}};Ajv2.ValidationError=validation_error_1.default;Ajv2.MissingRefError=ref_error_1.default;exports.default=Ajv2;function checkOptions(checkOpts,options,msg,log="error"){for(const key in checkOpts){const opt=key;if(opt in options)this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`)}}function getSchEnv(keyRef){keyRef=(0,resolve_1.normalizeId)(keyRef);return this.schemas[keyRef]||this.refs[keyRef]}function addInitialSchemas(){const optsSchemas=this.opts.schemas;if(!optsSchemas)return;if(Array.isArray(optsSchemas))this.addSchema(optsSchemas);else for(const key in optsSchemas)this.addSchema(optsSchemas[key],key)}function addInitialFormats(){for(const name in this.opts.formats){const format=this.opts.formats[name];if(format)this.addFormat(name,format)}}function addInitialKeywords(defs){if(Array.isArray(defs)){this.addVocabulary(defs);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const keyword in defs){const def=defs[keyword];if(!def.keyword)def.keyword=keyword;this.addKeyword(def)}}function getMetaSchemaOptions(){const metaOpts={...this.opts};for(const opt of META_IGNORE_OPTIONS)delete metaOpts[opt];return metaOpts}var noLogs={log(){},warn(){},error(){}};function getLogger(logger){if(logger===false)return noLogs;if(logger===void 0)return console;if(logger.log&&logger.warn&&logger.error)return logger;throw new Error("logger must implement log, warn and error methods")}var KEYWORD_NAME=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(keyword,def){const{RULES}=this;(0,util_1.eachItem)(keyword,kwd=>{if(RULES.keywords[kwd])throw new Error(`Keyword ${kwd} is already defined`);if(!KEYWORD_NAME.test(kwd))throw new Error(`Keyword ${kwd} has invalid name`)});if(!def)return;if(def.$data&&!("code"in def||"validate"in def)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(keyword,definition,dataType){var _a3;const post=definition===null||definition===void 0?void 0:definition.post;if(dataType&&post)throw new Error('keyword with "post" flag cannot have "type"');const{RULES}=this;let ruleGroup=post?RULES.post:RULES.rules.find(({type:t})=>t===dataType);if(!ruleGroup){ruleGroup={type:dataType,rules:[]};RULES.rules.push(ruleGroup)}RULES.keywords[keyword]=true;if(!definition)return;const rule={keyword,definition:{...definition,type:(0,dataType_1.getJSONTypes)(definition.type),schemaType:(0,dataType_1.getJSONTypes)(definition.schemaType)}};if(definition.before)addBeforeRule.call(this,ruleGroup,rule,definition.before);else ruleGroup.rules.push(rule);RULES.all[keyword]=rule;(_a3=definition.implements)===null||_a3===void 0?void 0:_a3.forEach(kwd=>this.addKeyword(kwd))}function addBeforeRule(ruleGroup,rule,before){const i=ruleGroup.rules.findIndex(_rule=>_rule.keyword===before);if(i>=0){ruleGroup.rules.splice(i,0,rule)}else{ruleGroup.rules.push(rule);this.logger.warn(`rule ${before} is not defined`)}}function keywordMetaschema(def){let{metaSchema}=def;if(metaSchema===void 0)return;if(def.$data&&this.opts.$data)metaSchema=schemaOrData(metaSchema);def.validateSchema=this.compile(metaSchema,true)}var $dataRef={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(schema){return{anyOf:[schema,$dataRef]}}}});var require_id=__commonJS({"node_modules/ajv/dist/vocabularies/core/id.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var def={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};exports.default=def}});var require_ref=__commonJS({"node_modules/ajv/dist/vocabularies/core/ref.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.callRef=exports.getValidate=void 0;var ref_error_1=require_ref_error();var code_1=require_code2();var codegen_1=require_codegen();var names_1=require_names();var compile_1=require_compile();var util_1=require_util();var def={keyword:"$ref",schemaType:"string",code(cxt){const{gen,schema:$ref,it}=cxt;const{baseId,schemaEnv:env,validateName,opts,self}=it;const{root}=env;if(($ref==="#"||$ref==="#/")&&baseId===root.baseId)return callRootRef();const schOrEnv=compile_1.resolveRef.call(self,root,baseId,$ref);if(schOrEnv===void 0)throw new ref_error_1.default(it.opts.uriResolver,baseId,$ref);if(schOrEnv instanceof compile_1.SchemaEnv)return callValidate(schOrEnv);return inlineRefSchema(schOrEnv);function callRootRef(){if(env===root)return callRef(cxt,validateName,env,env.$async);const rootName=gen.scopeValue("root",{ref:root});return callRef(cxt,(0,codegen_1._)`${rootName}.validate`,root,root.$async)}function callValidate(sch){const v=getValidate(cxt,sch);callRef(cxt,v,sch,sch.$async)}function inlineRefSchema(sch){const schName=gen.scopeValue("schema",opts.code.source===true?{ref:sch,code:(0,codegen_1.stringify)(sch)}:{ref:sch});const valid=gen.name("valid");const schCxt=cxt.subschema({schema:sch,dataTypes:[],schemaPath:codegen_1.nil,topSchemaRef:schName,errSchemaPath:$ref},valid);cxt.mergeEvaluated(schCxt);cxt.ok(valid)}}};function getValidate(cxt,sch){const{gen}=cxt;return sch.validate?gen.scopeValue("validate",{ref:sch.validate}):(0,codegen_1._)`${gen.scopeValue("wrapper",{ref:sch})}.validate`}exports.getValidate=getValidate;function callRef(cxt,v,sch,$async){const{gen,it}=cxt;const{allErrors,schemaEnv:env,opts}=it;const passCxt=opts.passContext?names_1.default.this:codegen_1.nil;if($async)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!env.$async)throw new Error("async schema referenced by sync schema");const valid=gen.let("valid");gen.try(()=>{gen.code((0,codegen_1._)`await ${(0,code_1.callValidateCode)(cxt,v,passCxt)}`);addEvaluatedFrom(v);if(!allErrors)gen.assign(valid,true)},e=>{gen.if((0,codegen_1._)`!(${e} instanceof ${it.ValidationError})`,()=>gen.throw(e));addErrorsFrom(e);if(!allErrors)gen.assign(valid,false)});cxt.ok(valid)}function callSyncRef(){cxt.result((0,code_1.callValidateCode)(cxt,v,passCxt),()=>addEvaluatedFrom(v),()=>addErrorsFrom(v))}function addErrorsFrom(source){const errs=(0,codegen_1._)`${source}.errors`;gen.assign(names_1.default.vErrors,(0,codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`);gen.assign(names_1.default.errors,(0,codegen_1._)`${names_1.default.vErrors}.length`)}function addEvaluatedFrom(source){var _a3;if(!it.opts.unevaluated)return;const schEvaluated=(_a3=sch===null||sch===void 0?void 0:sch.validate)===null||_a3===void 0?void 0:_a3.evaluated;if(it.props!==true){if(schEvaluated&&!schEvaluated.dynamicProps){if(schEvaluated.props!==void 0){it.props=util_1.mergeEvaluated.props(gen,schEvaluated.props,it.props)}}else{const props=gen.var("props",(0,codegen_1._)`${source}.evaluated.props`);it.props=util_1.mergeEvaluated.props(gen,props,it.props,codegen_1.Name)}}if(it.items!==true){if(schEvaluated&&!schEvaluated.dynamicItems){if(schEvaluated.items!==void 0){it.items=util_1.mergeEvaluated.items(gen,schEvaluated.items,it.items)}}else{const items=gen.var("items",(0,codegen_1._)`${source}.evaluated.items`);it.items=util_1.mergeEvaluated.items(gen,items,it.items,codegen_1.Name)}}}}exports.callRef=callRef;exports.default=def}});var require_core2=__commonJS({"node_modules/ajv/dist/vocabularies/core/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var id_1=require_id();var ref_1=require_ref();var core=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",id_1.default,ref_1.default];exports.default=core}});var require_limitNumber=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var ops=codegen_1.operators;var KWDs={maximum:{okStr:"<=",ok:ops.LTE,fail:ops.GT},minimum:{okStr:">=",ok:ops.GTE,fail:ops.LT},exclusiveMaximum:{okStr:"<",ok:ops.LT,fail:ops.GTE},exclusiveMinimum:{okStr:">",ok:ops.GT,fail:ops.LTE}};var error2={message:({keyword,schemaCode})=>(0,codegen_1.str)`must be ${KWDs[keyword].okStr} ${schemaCode}`,params:({keyword,schemaCode})=>(0,codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`};var def={keyword:Object.keys(KWDs),type:"number",schemaType:"number",$data:true,error:error2,code(cxt){const{keyword,data,schemaCode}=cxt;cxt.fail$data((0,codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`)}};exports.default=def}});var require_multipleOf=__commonJS({"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var error2={message:({schemaCode})=>(0,codegen_1.str)`must be multiple of ${schemaCode}`,params:({schemaCode})=>(0,codegen_1._)`{multipleOf: ${schemaCode}}`};var def={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:error2,code(cxt){const{gen,data,schemaCode,it}=cxt;const prec=it.opts.multipleOfPrecision;const res=gen.let("res");const invalid=prec?(0,codegen_1._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}`:(0,codegen_1._)`${res} !== parseInt(${res})`;cxt.fail$data((0,codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`)}};exports.default=def}});var require_ucs2length=__commonJS({"node_modules/ajv/dist/runtime/ucs2length.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});function ucs2length(str){const len=str.length;let length=0;let pos=0;let value;while(pos=55296&&value<=56319&&pos(0,codegen_1._)`{limit: ${schemaCode}}`};var def={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:error2,code(cxt){const{keyword,data,schemaCode,it}=cxt;const op=keyword==="maxLength"?codegen_1.operators.GT:codegen_1.operators.LT;const len=it.opts.unicode===false?(0,codegen_1._)`${data}.length`:(0,codegen_1._)`${(0,util_1.useFunc)(cxt.gen,ucs2length_1.default)}(${data})`;cxt.fail$data((0,codegen_1._)`${len} ${op} ${schemaCode}`)}};exports.default=def}});var require_pattern=__commonJS({"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var code_1=require_code2();var util_1=require_util();var codegen_1=require_codegen();var error2={message:({schemaCode})=>(0,codegen_1.str)`must match pattern "${schemaCode}"`,params:({schemaCode})=>(0,codegen_1._)`{pattern: ${schemaCode}}`};var def={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:error2,code(cxt){const{gen,data,$data,schema,schemaCode,it}=cxt;const u=it.opts.unicodeRegExp?"u":"";if($data){const{regExp}=it.opts.code;const regExpCode=regExp.code==="new RegExp"?(0,codegen_1._)`new RegExp`:(0,util_1.useFunc)(gen,regExp);const valid=gen.let("valid");gen.try(()=>gen.assign(valid,(0,codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`),()=>gen.assign(valid,false));cxt.fail$data((0,codegen_1._)`!${valid}`)}else{const regExp=(0,code_1.usePattern)(cxt,schema);cxt.fail$data((0,codegen_1._)`!${regExp}.test(${data})`)}}};exports.default=def}});var require_limitProperties=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var error2={message({keyword,schemaCode}){const comp=keyword==="maxProperties"?"more":"fewer";return(0,codegen_1.str)`must NOT have ${comp} than ${schemaCode} properties`},params:({schemaCode})=>(0,codegen_1._)`{limit: ${schemaCode}}`};var def={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:error2,code(cxt){const{keyword,data,schemaCode}=cxt;const op=keyword==="maxProperties"?codegen_1.operators.GT:codegen_1.operators.LT;cxt.fail$data((0,codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`)}};exports.default=def}});var require_required=__commonJS({"node_modules/ajv/dist/vocabularies/validation/required.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var code_1=require_code2();var codegen_1=require_codegen();var util_1=require_util();var error2={message:({params:{missingProperty}})=>(0,codegen_1.str)`must have required property '${missingProperty}'`,params:({params:{missingProperty}})=>(0,codegen_1._)`{missingProperty: ${missingProperty}}`};var def={keyword:"required",type:"object",schemaType:"array",$data:true,error:error2,code(cxt){const{gen,schema,schemaCode,data,$data,it}=cxt;const{opts}=it;if(!$data&&schema.length===0)return;const useLoop=schema.length>=opts.loopRequired;if(it.allErrors)allErrorsMode();else exitOnErrorMode();if(opts.strictRequired){const props=cxt.parentSchema.properties;const{definedProperties}=cxt.it;for(const requiredKey of schema){if((props===null||props===void 0?void 0:props[requiredKey])===void 0&&!definedProperties.has(requiredKey)){const schemaPath=it.schemaEnv.baseId+it.errSchemaPath;const msg=`required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`;(0,util_1.checkStrictMode)(it,msg,it.opts.strictRequired)}}}function allErrorsMode(){if(useLoop||$data){cxt.block$data(codegen_1.nil,loopAllRequired)}else{for(const prop of schema){(0,code_1.checkReportMissingProp)(cxt,prop)}}}function exitOnErrorMode(){const missing=gen.let("missing");if(useLoop||$data){const valid=gen.let("valid",true);cxt.block$data(valid,()=>loopUntilMissing(missing,valid));cxt.ok(valid)}else{gen.if((0,code_1.checkMissingProp)(cxt,schema,missing));(0,code_1.reportMissingProp)(cxt,missing);gen.else()}}function loopAllRequired(){gen.forOf("prop",schemaCode,prop=>{cxt.setParams({missingProperty:prop});gen.if((0,code_1.noPropertyInData)(gen,data,prop,opts.ownProperties),()=>cxt.error())})}function loopUntilMissing(missing,valid){cxt.setParams({missingProperty:missing});gen.forOf(missing,schemaCode,()=>{gen.assign(valid,(0,code_1.propertyInData)(gen,data,missing,opts.ownProperties));gen.if((0,codegen_1.not)(valid),()=>{cxt.error();gen.break()})},codegen_1.nil)}}};exports.default=def}});var require_limitItems=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var error2={message({keyword,schemaCode}){const comp=keyword==="maxItems"?"more":"fewer";return(0,codegen_1.str)`must NOT have ${comp} than ${schemaCode} items`},params:({schemaCode})=>(0,codegen_1._)`{limit: ${schemaCode}}`};var def={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:error2,code(cxt){const{keyword,data,schemaCode}=cxt;const op=keyword==="maxItems"?codegen_1.operators.GT:codegen_1.operators.LT;cxt.fail$data((0,codegen_1._)`${data}.length ${op} ${schemaCode}`)}};exports.default=def}});var require_equal=__commonJS({"node_modules/ajv/dist/runtime/equal.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var equal=require_fast_deep_equal();equal.code='require("ajv/dist/runtime/equal").default';exports.default=equal}});var require_uniqueItems=__commonJS({"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var dataType_1=require_dataType();var codegen_1=require_codegen();var util_1=require_util();var equal_1=require_equal();var error2={message:({params:{i,j}})=>(0,codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,params:({params:{i,j}})=>(0,codegen_1._)`{i: ${i}, j: ${j}}`};var def={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:error2,code(cxt){const{gen,data,$data,schema,parentSchema,schemaCode,it}=cxt;if(!$data&&!schema)return;const valid=gen.let("valid");const itemTypes=parentSchema.items?(0,dataType_1.getSchemaTypes)(parentSchema.items):[];cxt.block$data(valid,validateUniqueItems,(0,codegen_1._)`${schemaCode} === false`);cxt.ok(valid);function validateUniqueItems(){const i=gen.let("i",(0,codegen_1._)`${data}.length`);const j=gen.let("j");cxt.setParams({i,j});gen.assign(valid,true);gen.if((0,codegen_1._)`${i} > 1`,()=>(canOptimize()?loopN:loopN2)(i,j))}function canOptimize(){return itemTypes.length>0&&!itemTypes.some(t=>t==="object"||t==="array")}function loopN(i,j){const item=gen.name("item");const wrongType=(0,dataType_1.checkDataTypes)(itemTypes,item,it.opts.strictNumbers,dataType_1.DataType.Wrong);const indices=gen.const("indices",(0,codegen_1._)`{}`);gen.for((0,codegen_1._)`;${i}--;`,()=>{gen.let(item,(0,codegen_1._)`${data}[${i}]`);gen.if(wrongType,(0,codegen_1._)`continue`);if(itemTypes.length>1)gen.if((0,codegen_1._)`typeof ${item} == "string"`,(0,codegen_1._)`${item} += "_"`);gen.if((0,codegen_1._)`typeof ${indices}[${item}] == "number"`,()=>{gen.assign(j,(0,codegen_1._)`${indices}[${item}]`);cxt.error();gen.assign(valid,false).break()}).code((0,codegen_1._)`${indices}[${item}] = ${i}`)})}function loopN2(i,j){const eql=(0,util_1.useFunc)(gen,equal_1.default);const outer=gen.name("outer");gen.label(outer).for((0,codegen_1._)`;${i}--;`,()=>gen.for((0,codegen_1._)`${j} = ${i}; ${j}--;`,()=>gen.if((0,codegen_1._)`${eql}(${data}[${i}], ${data}[${j}])`,()=>{cxt.error();gen.assign(valid,false).break(outer)})))}}};exports.default=def}});var require_const=__commonJS({"node_modules/ajv/dist/vocabularies/validation/const.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var equal_1=require_equal();var error2={message:"must be equal to constant",params:({schemaCode})=>(0,codegen_1._)`{allowedValue: ${schemaCode}}`};var def={keyword:"const",$data:true,error:error2,code(cxt){const{gen,data,$data,schemaCode,schema}=cxt;if($data||schema&&typeof schema=="object"){cxt.fail$data((0,codegen_1._)`!${(0,util_1.useFunc)(gen,equal_1.default)}(${data}, ${schemaCode})`)}else{cxt.fail((0,codegen_1._)`${schema} !== ${data}`)}}};exports.default=def}});var require_enum=__commonJS({"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var equal_1=require_equal();var error2={message:"must be equal to one of the allowed values",params:({schemaCode})=>(0,codegen_1._)`{allowedValues: ${schemaCode}}`};var def={keyword:"enum",schemaType:"array",$data:true,error:error2,code(cxt){const{gen,data,$data,schema,schemaCode,it}=cxt;if(!$data&&schema.length===0)throw new Error("enum must have non-empty array");const useLoop=schema.length>=it.opts.loopEnum;let eql;const getEql=()=>eql!==null&&eql!==void 0?eql:eql=(0,util_1.useFunc)(gen,equal_1.default);let valid;if(useLoop||$data){valid=gen.let("valid");cxt.block$data(valid,loopEnum)}else{if(!Array.isArray(schema))throw new Error("ajv implementation error");const vSchema=gen.const("vSchema",schemaCode);valid=(0,codegen_1.or)(...schema.map((_x,i)=>equalCode(vSchema,i)))}cxt.pass(valid);function loopEnum(){gen.assign(valid,false);gen.forOf("v",schemaCode,v=>gen.if((0,codegen_1._)`${getEql()}(${data}, ${v})`,()=>gen.assign(valid,true).break()))}function equalCode(vSchema,i){const sch=schema[i];return typeof sch==="object"&&sch!==null?(0,codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])`:(0,codegen_1._)`${data} === ${sch}`}}};exports.default=def}});var require_validation=__commonJS({"node_modules/ajv/dist/vocabularies/validation/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var limitNumber_1=require_limitNumber();var multipleOf_1=require_multipleOf();var limitLength_1=require_limitLength();var pattern_1=require_pattern();var limitProperties_1=require_limitProperties();var required_1=require_required();var limitItems_1=require_limitItems();var uniqueItems_1=require_uniqueItems();var const_1=require_const();var enum_1=require_enum();var validation=[limitNumber_1.default,multipleOf_1.default,limitLength_1.default,pattern_1.default,limitProperties_1.default,required_1.default,limitItems_1.default,uniqueItems_1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},const_1.default,enum_1.default];exports.default=validation}});var require_additionalItems=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateAdditionalItems=void 0;var codegen_1=require_codegen();var util_1=require_util();var error2={message:({params:{len}})=>(0,codegen_1.str)`must NOT have more than ${len} items`,params:({params:{len}})=>(0,codegen_1._)`{limit: ${len}}`};var def={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:error2,code(cxt){const{parentSchema,it}=cxt;const{items}=parentSchema;if(!Array.isArray(items)){(0,util_1.checkStrictMode)(it,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(cxt,items)}};function validateAdditionalItems(cxt,items){const{gen,schema,data,keyword,it}=cxt;it.items=true;const len=gen.const("len",(0,codegen_1._)`${data}.length`);if(schema===false){cxt.setParams({len:items.length});cxt.pass((0,codegen_1._)`${len} <= ${items.length}`)}else if(typeof schema=="object"&&!(0,util_1.alwaysValidSchema)(it,schema)){const valid=gen.var("valid",(0,codegen_1._)`${len} <= ${items.length}`);gen.if((0,codegen_1.not)(valid),()=>validateItems(valid));cxt.ok(valid)}function validateItems(valid){gen.forRange("i",items.length,len,i=>{cxt.subschema({keyword,dataProp:i,dataPropType:util_1.Type.Num},valid);if(!it.allErrors)gen.if((0,codegen_1.not)(valid),()=>gen.break())})}}exports.validateAdditionalItems=validateAdditionalItems;exports.default=def}});var require_items=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateTuple=void 0;var codegen_1=require_codegen();var util_1=require_util();var code_1=require_code2();var def={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(cxt){const{schema,it}=cxt;if(Array.isArray(schema))return validateTuple(cxt,"additionalItems",schema);it.items=true;if((0,util_1.alwaysValidSchema)(it,schema))return;cxt.ok((0,code_1.validateArray)(cxt))}};function validateTuple(cxt,extraItems,schArr=cxt.schema){const{gen,parentSchema,data,keyword,it}=cxt;checkStrictTuple(parentSchema);if(it.opts.unevaluated&&schArr.length&&it.items!==true){it.items=util_1.mergeEvaluated.items(gen,schArr.length,it.items)}const valid=gen.name("valid");const len=gen.const("len",(0,codegen_1._)`${data}.length`);schArr.forEach((sch,i)=>{if((0,util_1.alwaysValidSchema)(it,sch))return;gen.if((0,codegen_1._)`${len} > ${i}`,()=>cxt.subschema({keyword,schemaProp:i,dataProp:i},valid));cxt.ok(valid)});function checkStrictTuple(sch){const{opts,errSchemaPath}=it;const l=schArr.length;const fullTuple=l===sch.minItems&&(l===sch.maxItems||sch[extraItems]===false);if(opts.strictTuples&&!fullTuple){const msg=`"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`;(0,util_1.checkStrictMode)(it,msg,opts.strictTuples)}}}exports.validateTuple=validateTuple;exports.default=def}});var require_prefixItems=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var items_1=require_items();var def={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:cxt=>(0,items_1.validateTuple)(cxt,"items")};exports.default=def}});var require_items2020=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var code_1=require_code2();var additionalItems_1=require_additionalItems();var error2={message:({params:{len}})=>(0,codegen_1.str)`must NOT have more than ${len} items`,params:({params:{len}})=>(0,codegen_1._)`{limit: ${len}}`};var def={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:error2,code(cxt){const{schema,parentSchema,it}=cxt;const{prefixItems}=parentSchema;it.items=true;if((0,util_1.alwaysValidSchema)(it,schema))return;if(prefixItems)(0,additionalItems_1.validateAdditionalItems)(cxt,prefixItems);else cxt.ok((0,code_1.validateArray)(cxt))}};exports.default=def}});var require_contains=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var error2={message:({params:{min,max}})=>max===void 0?(0,codegen_1.str)`must contain at least ${min} valid item(s)`:(0,codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`,params:({params:{min,max}})=>max===void 0?(0,codegen_1._)`{minContains: ${min}}`:(0,codegen_1._)`{minContains: ${min}, maxContains: ${max}}`};var def={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:error2,code(cxt){const{gen,schema,parentSchema,data,it}=cxt;let min;let max;const{minContains,maxContains}=parentSchema;if(it.opts.next){min=minContains===void 0?1:minContains;max=maxContains}else{min=1}const len=gen.const("len",(0,codegen_1._)`${data}.length`);cxt.setParams({min,max});if(max===void 0&&min===0){(0,util_1.checkStrictMode)(it,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(max!==void 0&&min>max){(0,util_1.checkStrictMode)(it,`"minContains" > "maxContains" is always invalid`);cxt.fail();return}if((0,util_1.alwaysValidSchema)(it,schema)){let cond=(0,codegen_1._)`${len} >= ${min}`;if(max!==void 0)cond=(0,codegen_1._)`${cond} && ${len} <= ${max}`;cxt.pass(cond);return}it.items=true;const valid=gen.name("valid");if(max===void 0&&min===1){validateItems(valid,()=>gen.if(valid,()=>gen.break()))}else if(min===0){gen.let(valid,true);if(max!==void 0)gen.if((0,codegen_1._)`${data}.length > 0`,validateItemsWithCount)}else{gen.let(valid,false);validateItemsWithCount()}cxt.result(valid,()=>cxt.reset());function validateItemsWithCount(){const schValid=gen.name("_valid");const count=gen.let("count",0);validateItems(schValid,()=>gen.if(schValid,()=>checkLimits(count)))}function validateItems(_valid,block){gen.forRange("i",0,len,i=>{cxt.subschema({keyword:"contains",dataProp:i,dataPropType:util_1.Type.Num,compositeRule:true},_valid);block()})}function checkLimits(count){gen.code((0,codegen_1._)`${count}++`);if(max===void 0){gen.if((0,codegen_1._)`${count} >= ${min}`,()=>gen.assign(valid,true).break())}else{gen.if((0,codegen_1._)`${count} > ${max}`,()=>gen.assign(valid,false).break());if(min===1)gen.assign(valid,true);else gen.if((0,codegen_1._)`${count} >= ${min}`,()=>gen.assign(valid,true))}}}};exports.default=def}});var require_dependencies=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateSchemaDeps=exports.validatePropertyDeps=exports.error=void 0;var codegen_1=require_codegen();var util_1=require_util();var code_1=require_code2();exports.error={message:({params:{property,depsCount,deps}})=>{const property_ies=depsCount===1?"property":"properties";return(0,codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`},params:({params:{property,depsCount,deps,missingProperty}})=>(0,codegen_1._)`{property: ${property}, + || ${dataType} === "boolean" || ${data} === null`).assign(coerced,(0,codegen_1._)`[${data}]`)}}}function assignParentData({gen,parentData,parentDataProperty},expr){gen.if((0,codegen_1._)`${parentData} !== undefined`,()=>gen.assign((0,codegen_1._)`${parentData}[${parentDataProperty}]`,expr))}function checkDataType(dataType,data,strictNums,correct=DataType.Correct){const EQ=correct===DataType.Correct?codegen_1.operators.EQ:codegen_1.operators.NEQ;let cond;switch(dataType){case"null":return(0,codegen_1._)`${data} ${EQ} null`;case"array":cond=(0,codegen_1._)`Array.isArray(${data})`;break;case"object":cond=(0,codegen_1._)`${data} && typeof ${data} == "object" && !Array.isArray(${data})`;break;case"integer":cond=numCond((0,codegen_1._)`!(${data} % 1) && !isNaN(${data})`);break;case"number":cond=numCond();break;default:return(0,codegen_1._)`typeof ${data} ${EQ} ${dataType}`}return correct===DataType.Correct?cond:(0,codegen_1.not)(cond);function numCond(_cond=codegen_1.nil){return(0,codegen_1.and)((0,codegen_1._)`typeof ${data} == "number"`,_cond,strictNums?(0,codegen_1._)`isFinite(${data})`:codegen_1.nil)}}exports.checkDataType=checkDataType;function checkDataTypes(dataTypes,data,strictNums,correct){if(dataTypes.length===1){return checkDataType(dataTypes[0],data,strictNums,correct)}let cond;const types=(0,util_1.toHash)(dataTypes);if(types.array&&types.object){const notObj=(0,codegen_1._)`typeof ${data} != "object"`;cond=types.null?notObj:(0,codegen_1._)`!${data} || ${notObj}`;delete types.null;delete types.array;delete types.object}else{cond=codegen_1.nil}if(types.number)delete types.integer;for(const t in types)cond=(0,codegen_1.and)(cond,checkDataType(t,data,strictNums,correct));return cond}exports.checkDataTypes=checkDataTypes;var typeError={message:({schema})=>`must be ${schema}`,params:({schema,schemaValue})=>typeof schema=="string"?(0,codegen_1._)`{type: ${schema}}`:(0,codegen_1._)`{type: ${schemaValue}}`};function reportTypeError(it){const cxt=getTypeErrorContext(it);(0,errors_1.reportError)(cxt,typeError)}exports.reportTypeError=reportTypeError;function getTypeErrorContext(it){const{gen,data,schema}=it;const schemaCode=(0,util_1.schemaRefOrVal)(it,schema,"type");return{gen,keyword:"type",data,schema:schema.type,schemaCode,schemaValue:schemaCode,parentSchema:schema,params:{},it}}}});var require_defaults=__commonJS({"node_modules/ajv/dist/compile/validate/defaults.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.assignDefaults=void 0;var codegen_1=require_codegen();var util_1=require_util();function assignDefaults(it,ty){const{properties,items}=it.schema;if(ty==="object"&&properties){for(const key in properties){assignDefault(it,key,properties[key].default)}}else if(ty==="array"&&Array.isArray(items)){items.forEach((sch,i)=>assignDefault(it,i,sch.default))}}exports.assignDefaults=assignDefaults;function assignDefault(it,prop,defaultValue){const{gen,compositeRule,data,opts}=it;if(defaultValue===void 0)return;const childData=(0,codegen_1._)`${data}${(0,codegen_1.getProperty)(prop)}`;if(compositeRule){(0,util_1.checkStrictMode)(it,`default is ignored for: ${childData}`);return}let condition=(0,codegen_1._)`${childData} === undefined`;if(opts.useDefaults==="empty"){condition=(0,codegen_1._)`${condition} || ${childData} === null || ${childData} === ""`}gen.if(condition,(0,codegen_1._)`${childData} = ${(0,codegen_1.stringify)(defaultValue)}`)}}});var require_code2=__commonJS({"node_modules/ajv/dist/vocabularies/code.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateUnion=exports.validateArray=exports.usePattern=exports.callValidateCode=exports.schemaProperties=exports.allSchemaProperties=exports.noPropertyInData=exports.propertyInData=exports.isOwnProperty=exports.hasPropFunc=exports.reportMissingProp=exports.checkMissingProp=exports.checkReportMissingProp=void 0;var codegen_1=require_codegen();var util_1=require_util();var names_1=require_names();var util_2=require_util();function checkReportMissingProp(cxt,prop){const{gen,data,it}=cxt;gen.if(noPropertyInData(gen,data,prop,it.opts.ownProperties),()=>{cxt.setParams({missingProperty:(0,codegen_1._)`${prop}`},true);cxt.error()})}exports.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen,data,it:{opts}},properties,missing){return(0,codegen_1.or)(...properties.map(prop=>(0,codegen_1.and)(noPropertyInData(gen,data,prop,opts.ownProperties),(0,codegen_1._)`${missing} = ${prop}`)))}exports.checkMissingProp=checkMissingProp;function reportMissingProp(cxt,missing){cxt.setParams({missingProperty:missing},true);cxt.error()}exports.reportMissingProp=reportMissingProp;function hasPropFunc(gen){return gen.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,codegen_1._)`Object.prototype.hasOwnProperty`})}exports.hasPropFunc=hasPropFunc;function isOwnProperty(gen,data,property){return(0,codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`}exports.isOwnProperty=isOwnProperty;function propertyInData(gen,data,property,ownProperties){const cond=(0,codegen_1._)`${data}${(0,codegen_1.getProperty)(property)} !== undefined`;return ownProperties?(0,codegen_1._)`${cond} && ${isOwnProperty(gen,data,property)}`:cond}exports.propertyInData=propertyInData;function noPropertyInData(gen,data,property,ownProperties){const cond=(0,codegen_1._)`${data}${(0,codegen_1.getProperty)(property)} === undefined`;return ownProperties?(0,codegen_1.or)(cond,(0,codegen_1.not)(isOwnProperty(gen,data,property))):cond}exports.noPropertyInData=noPropertyInData;function allSchemaProperties(schemaMap){return schemaMap?Object.keys(schemaMap).filter(p=>p!=="__proto__"):[]}exports.allSchemaProperties=allSchemaProperties;function schemaProperties(it,schemaMap){return allSchemaProperties(schemaMap).filter(p=>!(0,util_1.alwaysValidSchema)(it,schemaMap[p]))}exports.schemaProperties=schemaProperties;function callValidateCode({schemaCode,data,it:{gen,topSchemaRef,schemaPath,errorPath},it},func,context,passSchema){const dataAndSchema=passSchema?(0,codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}`:data;const valCxt=[[names_1.default.instancePath,(0,codegen_1.strConcat)(names_1.default.instancePath,errorPath)],[names_1.default.parentData,it.parentData],[names_1.default.parentDataProperty,it.parentDataProperty],[names_1.default.rootData,names_1.default.rootData]];if(it.opts.dynamicRef)valCxt.push([names_1.default.dynamicAnchors,names_1.default.dynamicAnchors]);const args=(0,codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;return context!==codegen_1.nil?(0,codegen_1._)`${func}.call(${context}, ${args})`:(0,codegen_1._)`${func}(${args})`}exports.callValidateCode=callValidateCode;var newRegExp=(0,codegen_1._)`new RegExp`;function usePattern({gen,it:{opts}},pattern){const u=opts.unicodeRegExp?"u":"";const{regExp}=opts.code;const rx=regExp(pattern,u);return gen.scopeValue("pattern",{key:rx.toString(),ref:rx,code:(0,codegen_1._)`${regExp.code==="new RegExp"?newRegExp:(0,util_2.useFunc)(gen,regExp)}(${pattern}, ${u})`})}exports.usePattern=usePattern;function validateArray(cxt){const{gen,data,keyword,it}=cxt;const valid=gen.name("valid");if(it.allErrors){const validArr=gen.let("valid",true);validateItems(()=>gen.assign(validArr,false));return validArr}gen.var(valid,true);validateItems(()=>gen.break());return valid;function validateItems(notValid){const len=gen.const("len",(0,codegen_1._)`${data}.length`);gen.forRange("i",0,len,i=>{cxt.subschema({keyword,dataProp:i,dataPropType:util_1.Type.Num},valid);gen.if((0,codegen_1.not)(valid),notValid)})}}exports.validateArray=validateArray;function validateUnion(cxt){const{gen,schema,keyword,it}=cxt;if(!Array.isArray(schema))throw new Error("ajv implementation error");const alwaysValid=schema.some(sch=>(0,util_1.alwaysValidSchema)(it,sch));if(alwaysValid&&!it.opts.unevaluated)return;const valid=gen.let("valid",false);const schValid=gen.name("_valid");gen.block(()=>schema.forEach((_sch,i)=>{const schCxt=cxt.subschema({keyword,schemaProp:i,compositeRule:true},schValid);gen.assign(valid,(0,codegen_1._)`${valid} || ${schValid}`);const merged=cxt.mergeValidEvaluated(schCxt,schValid);if(!merged)gen.if((0,codegen_1.not)(valid))}));cxt.result(valid,()=>cxt.reset(),()=>cxt.error(true))}exports.validateUnion=validateUnion}});var require_keyword=__commonJS({"node_modules/ajv/dist/compile/validate/keyword.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateKeywordUsage=exports.validSchemaType=exports.funcKeywordCode=exports.macroKeywordCode=void 0;var codegen_1=require_codegen();var names_1=require_names();var code_1=require_code2();var errors_1=require_errors();function macroKeywordCode(cxt,def){const{gen,keyword,schema,parentSchema,it}=cxt;const macroSchema=def.macro.call(it.self,schema,parentSchema,it);const schemaRef=useKeyword(gen,keyword,macroSchema);if(it.opts.validateSchema!==false)it.self.validateSchema(macroSchema,true);const valid=gen.name("valid");cxt.subschema({schema:macroSchema,schemaPath:codegen_1.nil,errSchemaPath:`${it.errSchemaPath}/${keyword}`,topSchemaRef:schemaRef,compositeRule:true},valid);cxt.pass(valid,()=>cxt.error(true))}exports.macroKeywordCode=macroKeywordCode;function funcKeywordCode(cxt,def){var _a3;const{gen,keyword,schema,parentSchema,$data,it}=cxt;checkAsyncKeyword(it,def);const validate=!$data&&def.compile?def.compile.call(it.self,schema,parentSchema,it):def.validate;const validateRef=useKeyword(gen,keyword,validate);const valid=gen.let("valid");cxt.block$data(valid,validateKeyword);cxt.ok((_a3=def.valid)!==null&&_a3!==void 0?_a3:valid);function validateKeyword(){if(def.errors===false){assignValid();if(def.modifying)modifyData(cxt);reportErrs(()=>cxt.error())}else{const ruleErrs=def.async?validateAsync():validateSync();if(def.modifying)modifyData(cxt);reportErrs(()=>addErrs(cxt,ruleErrs))}}function validateAsync(){const ruleErrs=gen.let("ruleErrs",null);gen.try(()=>assignValid((0,codegen_1._)`await `),e=>gen.assign(valid,false).if((0,codegen_1._)`${e} instanceof ${it.ValidationError}`,()=>gen.assign(ruleErrs,(0,codegen_1._)`${e}.errors`),()=>gen.throw(e)));return ruleErrs}function validateSync(){const validateErrs=(0,codegen_1._)`${validateRef}.errors`;gen.assign(validateErrs,null);assignValid(codegen_1.nil);return validateErrs}function assignValid(_await=def.async?(0,codegen_1._)`await `:codegen_1.nil){const passCxt=it.opts.passContext?names_1.default.this:names_1.default.self;const passSchema=!("compile"in def&&!$data||def.schema===false);gen.assign(valid,(0,codegen_1._)`${_await}${(0,code_1.callValidateCode)(cxt,validateRef,passCxt,passSchema)}`,def.modifying)}function reportErrs(errors){var _a4;gen.if((0,codegen_1.not)((_a4=def.valid)!==null&&_a4!==void 0?_a4:valid),errors)}}exports.funcKeywordCode=funcKeywordCode;function modifyData(cxt){const{gen,data,it}=cxt;gen.if(it.parentData,()=>gen.assign(data,(0,codegen_1._)`${it.parentData}[${it.parentDataProperty}]`))}function addErrs(cxt,errs){const{gen}=cxt;gen.if((0,codegen_1._)`Array.isArray(${errs})`,()=>{gen.assign(names_1.default.vErrors,(0,codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`).assign(names_1.default.errors,(0,codegen_1._)`${names_1.default.vErrors}.length`);(0,errors_1.extendErrors)(cxt)},()=>cxt.error())}function checkAsyncKeyword({schemaEnv},def){if(def.async&&!schemaEnv.$async)throw new Error("async keyword in sync schema")}function useKeyword(gen,keyword,result){if(result===void 0)throw new Error(`keyword "${keyword}" failed to compile`);return gen.scopeValue("keyword",typeof result=="function"?{ref:result}:{ref:result,code:(0,codegen_1.stringify)(result)})}function validSchemaType(schema,schemaType,allowUndefined=false){return!schemaType.length||schemaType.some(st=>st==="array"?Array.isArray(schema):st==="object"?schema&&typeof schema=="object"&&!Array.isArray(schema):typeof schema==st||allowUndefined&&typeof schema=="undefined")}exports.validSchemaType=validSchemaType;function validateKeywordUsage({schema,opts,self,errSchemaPath},def,keyword){if(Array.isArray(def.keyword)?!def.keyword.includes(keyword):def.keyword!==keyword){throw new Error("ajv implementation error")}const deps=def.dependencies;if(deps===null||deps===void 0?void 0:deps.some(kwd=>!Object.prototype.hasOwnProperty.call(schema,kwd))){throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(",")}`)}if(def.validateSchema){const valid=def.validateSchema(schema[keyword]);if(!valid){const msg=`keyword "${keyword}" value is invalid at path "${errSchemaPath}": `+self.errorsText(def.validateSchema.errors);if(opts.validateSchema==="log")self.logger.error(msg);else throw new Error(msg)}}}exports.validateKeywordUsage=validateKeywordUsage}});var require_subschema=__commonJS({"node_modules/ajv/dist/compile/validate/subschema.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.extendSubschemaMode=exports.extendSubschemaData=exports.getSubschema=void 0;var codegen_1=require_codegen();var util_1=require_util();function getSubschema(it,{keyword,schemaProp,schema,schemaPath,errSchemaPath,topSchemaRef}){if(keyword!==void 0&&schema!==void 0){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(keyword!==void 0){const sch=it.schema[keyword];return schemaProp===void 0?{schema:sch,schemaPath:(0,codegen_1._)`${it.schemaPath}${(0,codegen_1.getProperty)(keyword)}`,errSchemaPath:`${it.errSchemaPath}/${keyword}`}:{schema:sch[schemaProp],schemaPath:(0,codegen_1._)`${it.schemaPath}${(0,codegen_1.getProperty)(keyword)}${(0,codegen_1.getProperty)(schemaProp)}`,errSchemaPath:`${it.errSchemaPath}/${keyword}/${(0,util_1.escapeFragment)(schemaProp)}`}}if(schema!==void 0){if(schemaPath===void 0||errSchemaPath===void 0||topSchemaRef===void 0){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema,schemaPath,topSchemaRef,errSchemaPath}}throw new Error('either "keyword" or "schema" must be passed')}exports.getSubschema=getSubschema;function extendSubschemaData(subschema,it,{dataProp,dataPropType:dpType,data,dataTypes,propertyName}){if(data!==void 0&&dataProp!==void 0){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen}=it;if(dataProp!==void 0){const{errorPath,dataPathArr,opts}=it;const nextData=gen.let("data",(0,codegen_1._)`${it.data}${(0,codegen_1.getProperty)(dataProp)}`,true);dataContextProps(nextData);subschema.errorPath=(0,codegen_1.str)`${errorPath}${(0,util_1.getErrorPath)(dataProp,dpType,opts.jsPropertySyntax)}`;subschema.parentDataProperty=(0,codegen_1._)`${dataProp}`;subschema.dataPathArr=[...dataPathArr,subschema.parentDataProperty]}if(data!==void 0){const nextData=data instanceof codegen_1.Name?data:gen.let("data",data,true);dataContextProps(nextData);if(propertyName!==void 0)subschema.propertyName=propertyName}if(dataTypes)subschema.dataTypes=dataTypes;function dataContextProps(_nextData){subschema.data=_nextData;subschema.dataLevel=it.dataLevel+1;subschema.dataTypes=[];it.definedProperties=new Set;subschema.parentData=it.data;subschema.dataNames=[...it.dataNames,_nextData]}}exports.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(subschema,{jtdDiscriminator,jtdMetadata,compositeRule,createErrors,allErrors}){if(compositeRule!==void 0)subschema.compositeRule=compositeRule;if(createErrors!==void 0)subschema.createErrors=createErrors;if(allErrors!==void 0)subschema.allErrors=allErrors;subschema.jtdDiscriminator=jtdDiscriminator;subschema.jtdMetadata=jtdMetadata}exports.extendSubschemaMode=extendSubschemaMode}});var require_fast_deep_equal=__commonJS({"node_modules/fast-deep-equal/index.js"(exports,module){"use strict";module.exports=function equal(a,b){if(a===b)return true;if(a&&b&&typeof a=="object"&&typeof b=="object"){if(a.constructor!==b.constructor)return false;var length,i,keys;if(Array.isArray(a)){length=a.length;if(length!=b.length)return false;for(i=length;i--!==0;)if(!equal(a[i],b[i]))return false;return true}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();keys=Object.keys(a);length=keys.length;if(length!==Object.keys(b).length)return false;for(i=length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return false;for(i=length;i--!==0;){var key=keys[i];if(!equal(a[key],b[key]))return false}return true}return a!==a&&b!==b}}});var require_json_schema_traverse=__commonJS({"node_modules/json-schema-traverse/index.js"(exports,module){"use strict";var traverse=module.exports=function(schema,opts,cb){if(typeof opts=="function"){cb=opts;opts={}}cb=opts.cb||cb;var pre=typeof cb=="function"?cb:cb.pre||function(){};var post=cb.post||function(){};_traverse(opts,pre,post,schema,"",schema)};traverse.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};traverse.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};traverse.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};traverse.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(opts,pre,post,schema,jsonPtr,rootSchema,parentJsonPtr,parentKeyword,parentSchema,keyIndex){if(schema&&typeof schema=="object"&&!Array.isArray(schema)){pre(schema,jsonPtr,rootSchema,parentJsonPtr,parentKeyword,parentSchema,keyIndex);for(var key in schema){var sch=schema[key];if(Array.isArray(sch)){if(key in traverse.arrayKeywords){for(var i=0;icount+=countKeys(sch))}if(count===Infinity)return Infinity}return count}function getFullPath(resolver,id="",normalize){if(normalize!==false)id=normalizeId(id);const p=resolver.parse(id);return _getFullPath(resolver,p)}exports.getFullPath=getFullPath;function _getFullPath(resolver,p){const serialized=resolver.serialize(p);return serialized.split("#")[0]+"#"}exports._getFullPath=_getFullPath;var TRAILING_SLASH_HASH=/#\/?$/;function normalizeId(id){return id?id.replace(TRAILING_SLASH_HASH,""):""}exports.normalizeId=normalizeId;function resolveUrl(resolver,baseId,id){id=normalizeId(id);return resolver.resolve(baseId,id)}exports.resolveUrl=resolveUrl;var ANCHOR=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(schema,baseId){if(typeof schema=="boolean")return{};const{schemaId,uriResolver}=this.opts;const schId=normalizeId(schema[schemaId]||baseId);const baseIds={"":schId};const pathPrefix=getFullPath(uriResolver,schId,false);const localRefs={};const schemaRefs=new Set;traverse(schema,{allKeys:true},(sch,jsonPtr,_,parentJsonPtr)=>{if(parentJsonPtr===void 0)return;const fullPath=pathPrefix+jsonPtr;let innerBaseId=baseIds[parentJsonPtr];if(typeof sch[schemaId]=="string")innerBaseId=addRef.call(this,sch[schemaId]);addAnchor.call(this,sch.$anchor);addAnchor.call(this,sch.$dynamicAnchor);baseIds[jsonPtr]=innerBaseId;function addRef(ref){const _resolve=this.opts.uriResolver.resolve;ref=normalizeId(innerBaseId?_resolve(innerBaseId,ref):ref);if(schemaRefs.has(ref))throw ambiguos(ref);schemaRefs.add(ref);let schOrRef=this.refs[ref];if(typeof schOrRef=="string")schOrRef=this.refs[schOrRef];if(typeof schOrRef=="object"){checkAmbiguosRef(sch,schOrRef.schema,ref)}else if(ref!==normalizeId(fullPath)){if(ref[0]==="#"){checkAmbiguosRef(sch,localRefs[ref],ref);localRefs[ref]=sch}else{this.refs[ref]=fullPath}}return ref}function addAnchor(anchor){if(typeof anchor=="string"){if(!ANCHOR.test(anchor))throw new Error(`invalid anchor "${anchor}"`);addRef.call(this,`#${anchor}`)}}});return localRefs;function checkAmbiguosRef(sch1,sch2,ref){if(sch2!==void 0&&!equal(sch1,sch2))throw ambiguos(ref)}function ambiguos(ref){return new Error(`reference "${ref}" resolves to more than one schema`)}}exports.getSchemaRefs=getSchemaRefs}});var require_validate=__commonJS({"node_modules/ajv/dist/compile/validate/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getData=exports.KeywordCxt=exports.validateFunctionCode=void 0;var boolSchema_1=require_boolSchema();var dataType_1=require_dataType();var applicability_1=require_applicability();var dataType_2=require_dataType();var defaults_1=require_defaults();var keyword_1=require_keyword();var subschema_1=require_subschema();var codegen_1=require_codegen();var names_1=require_names();var resolve_1=require_resolve();var util_1=require_util();var errors_1=require_errors();function validateFunctionCode(it){if(isSchemaObj(it)){checkKeywords(it);if(schemaCxtHasRules(it)){topSchemaObjCode(it);return}}validateFunction(it,()=>(0,boolSchema_1.topBoolOrEmptySchema)(it))}exports.validateFunctionCode=validateFunctionCode;function validateFunction({gen,validateName,schema,schemaEnv,opts},body){if(opts.code.es5){gen.func(validateName,(0,codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`,schemaEnv.$async,()=>{gen.code((0,codegen_1._)`"use strict"; ${funcSourceUrl(schema,opts)}`);destructureValCxtES5(gen,opts);gen.code(body)})}else{gen.func(validateName,(0,codegen_1._)`${names_1.default.data}, ${destructureValCxt(opts)}`,schemaEnv.$async,()=>gen.code(funcSourceUrl(schema,opts)).code(body))}}function destructureValCxt(opts){return(0,codegen_1._)`{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef?(0,codegen_1._)`, ${names_1.default.dynamicAnchors}={}`:codegen_1.nil}}={}`}function destructureValCxtES5(gen,opts){gen.if(names_1.default.valCxt,()=>{gen.var(names_1.default.instancePath,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.instancePath}`);gen.var(names_1.default.parentData,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.parentData}`);gen.var(names_1.default.parentDataProperty,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.parentDataProperty}`);gen.var(names_1.default.rootData,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.rootData}`);if(opts.dynamicRef)gen.var(names_1.default.dynamicAnchors,(0,codegen_1._)`${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`)},()=>{gen.var(names_1.default.instancePath,(0,codegen_1._)`""`);gen.var(names_1.default.parentData,(0,codegen_1._)`undefined`);gen.var(names_1.default.parentDataProperty,(0,codegen_1._)`undefined`);gen.var(names_1.default.rootData,names_1.default.data);if(opts.dynamicRef)gen.var(names_1.default.dynamicAnchors,(0,codegen_1._)`{}`)})}function topSchemaObjCode(it){const{schema,opts,gen}=it;validateFunction(it,()=>{if(opts.$comment&&schema.$comment)commentKeyword(it);checkNoDefault(it);gen.let(names_1.default.vErrors,null);gen.let(names_1.default.errors,0);if(opts.unevaluated)resetEvaluated(it);typeAndKeywords(it);returnResults(it)});return}function resetEvaluated(it){const{gen,validateName}=it;it.evaluated=gen.const("evaluated",(0,codegen_1._)`${validateName}.evaluated`);gen.if((0,codegen_1._)`${it.evaluated}.dynamicProps`,()=>gen.assign((0,codegen_1._)`${it.evaluated}.props`,(0,codegen_1._)`undefined`));gen.if((0,codegen_1._)`${it.evaluated}.dynamicItems`,()=>gen.assign((0,codegen_1._)`${it.evaluated}.items`,(0,codegen_1._)`undefined`))}function funcSourceUrl(schema,opts){const schId=typeof schema=="object"&&schema[opts.schemaId];return schId&&(opts.code.source||opts.code.process)?(0,codegen_1._)`/*# sourceURL=${schId} */`:codegen_1.nil}function subschemaCode(it,valid){if(isSchemaObj(it)){checkKeywords(it);if(schemaCxtHasRules(it)){subSchemaObjCode(it,valid);return}}(0,boolSchema_1.boolOrEmptySchema)(it,valid)}function schemaCxtHasRules({schema,self}){if(typeof schema=="boolean")return!schema;for(const key in schema)if(self.RULES.all[key])return true;return false}function isSchemaObj(it){return typeof it.schema!="boolean"}function subSchemaObjCode(it,valid){const{schema,gen,opts}=it;if(opts.$comment&&schema.$comment)commentKeyword(it);updateContext(it);checkAsyncSchema(it);const errsCount=gen.const("_errs",names_1.default.errors);typeAndKeywords(it,errsCount);gen.var(valid,(0,codegen_1._)`${errsCount} === ${names_1.default.errors}`)}function checkKeywords(it){(0,util_1.checkUnknownRules)(it);checkRefsAndKeywords(it)}function typeAndKeywords(it,errsCount){if(it.opts.jtd)return schemaKeywords(it,[],false,errsCount);const types=(0,dataType_1.getSchemaTypes)(it.schema);const checkedTypes=(0,dataType_1.coerceAndCheckDataType)(it,types);schemaKeywords(it,types,!checkedTypes,errsCount)}function checkRefsAndKeywords(it){const{schema,errSchemaPath,opts,self}=it;if(schema.$ref&&opts.ignoreKeywordsWithRef&&(0,util_1.schemaHasRulesButRef)(schema,self.RULES)){self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`)}}function checkNoDefault(it){const{schema,opts}=it;if(schema.default!==void 0&&opts.useDefaults&&opts.strictSchema){(0,util_1.checkStrictMode)(it,"default is ignored in the schema root")}}function updateContext(it){const schId=it.schema[it.opts.schemaId];if(schId)it.baseId=(0,resolve_1.resolveUrl)(it.opts.uriResolver,it.baseId,schId)}function checkAsyncSchema(it){if(it.schema.$async&&!it.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen,schemaEnv,schema,errSchemaPath,opts}){const msg=schema.$comment;if(opts.$comment===true){gen.code((0,codegen_1._)`${names_1.default.self}.logger.log(${msg})`)}else if(typeof opts.$comment=="function"){const schemaPath=(0,codegen_1.str)`${errSchemaPath}/$comment`;const rootName=gen.scopeValue("root",{ref:schemaEnv.root});gen.code((0,codegen_1._)`${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`)}}function returnResults(it){const{gen,schemaEnv,validateName,ValidationError,opts}=it;if(schemaEnv.$async){gen.if((0,codegen_1._)`${names_1.default.errors} === 0`,()=>gen.return(names_1.default.data),()=>gen.throw((0,codegen_1._)`new ${ValidationError}(${names_1.default.vErrors})`))}else{gen.assign((0,codegen_1._)`${validateName}.errors`,names_1.default.vErrors);if(opts.unevaluated)assignEvaluated(it);gen.return((0,codegen_1._)`${names_1.default.errors} === 0`)}}function assignEvaluated({gen,evaluated,props,items}){if(props instanceof codegen_1.Name)gen.assign((0,codegen_1._)`${evaluated}.props`,props);if(items instanceof codegen_1.Name)gen.assign((0,codegen_1._)`${evaluated}.items`,items)}function schemaKeywords(it,types,typeErrors,errsCount){const{gen,schema,data,allErrors,opts,self}=it;const{RULES}=self;if(schema.$ref&&(opts.ignoreKeywordsWithRef||!(0,util_1.schemaHasRulesButRef)(schema,RULES))){gen.block(()=>keywordCode(it,"$ref",RULES.all.$ref.definition));return}if(!opts.jtd)checkStrictTypes(it,types);gen.block(()=>{for(const group of RULES.rules)groupKeywords(group);groupKeywords(RULES.post)});function groupKeywords(group){if(!(0,applicability_1.shouldUseGroup)(schema,group))return;if(group.type){gen.if((0,dataType_2.checkDataType)(group.type,data,opts.strictNumbers));iterateKeywords(it,group);if(types.length===1&&types[0]===group.type&&typeErrors){gen.else();(0,dataType_2.reportTypeError)(it)}gen.endIf()}else{iterateKeywords(it,group)}if(!allErrors)gen.if((0,codegen_1._)`${names_1.default.errors} === ${errsCount||0}`)}}function iterateKeywords(it,group){const{gen,schema,opts:{useDefaults}}=it;if(useDefaults)(0,defaults_1.assignDefaults)(it,group.type);gen.block(()=>{for(const rule of group.rules){if((0,applicability_1.shouldUseRule)(schema,rule)){keywordCode(it,rule.keyword,rule.definition,group.type)}}})}function checkStrictTypes(it,types){if(it.schemaEnv.meta||!it.opts.strictTypes)return;checkContextTypes(it,types);if(!it.opts.allowUnionTypes)checkMultipleTypes(it,types);checkKeywordTypes(it,it.dataTypes)}function checkContextTypes(it,types){if(!types.length)return;if(!it.dataTypes.length){it.dataTypes=types;return}types.forEach(t=>{if(!includesType(it.dataTypes,t)){strictTypesError(it,`type "${t}" not allowed by context "${it.dataTypes.join(",")}"`)}});narrowSchemaTypes(it,types)}function checkMultipleTypes(it,ts){if(ts.length>1&&!(ts.length===2&&ts.includes("null"))){strictTypesError(it,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(it,ts){const rules=it.self.RULES.all;for(const keyword in rules){const rule=rules[keyword];if(typeof rule=="object"&&(0,applicability_1.shouldUseRule)(it.schema,rule)){const{type}=rule.definition;if(type.length&&!type.some(t=>hasApplicableType(ts,t))){strictTypesError(it,`missing type "${type.join(",")}" for keyword "${keyword}"`)}}}}function hasApplicableType(schTs,kwdT){return schTs.includes(kwdT)||kwdT==="number"&&schTs.includes("integer")}function includesType(ts,t){return ts.includes(t)||t==="integer"&&ts.includes("number")}function narrowSchemaTypes(it,withTypes){const ts=[];for(const t of it.dataTypes){if(includesType(withTypes,t))ts.push(t);else if(withTypes.includes("integer")&&t==="number")ts.push("integer")}it.dataTypes=ts}function strictTypesError(it,msg){const schemaPath=it.schemaEnv.baseId+it.errSchemaPath;msg+=` at "${schemaPath}" (strictTypes)`;(0,util_1.checkStrictMode)(it,msg,it.opts.strictTypes)}var KeywordCxt=class{constructor(it,def,keyword){(0,keyword_1.validateKeywordUsage)(it,def,keyword);this.gen=it.gen;this.allErrors=it.allErrors;this.keyword=keyword;this.data=it.data;this.schema=it.schema[keyword];this.$data=def.$data&&it.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,util_1.schemaRefOrVal)(it,this.schema,keyword,this.$data);this.schemaType=def.schemaType;this.parentSchema=it.schema;this.params={};this.it=it;this.def=def;if(this.$data){this.schemaCode=it.gen.const("vSchema",getData(this.$data,it))}else{this.schemaCode=this.schemaValue;if(!(0,keyword_1.validSchemaType)(this.schema,def.schemaType,def.allowUndefined)){throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`)}}if("code"in def?def.trackErrors:def.errors!==false){this.errsCount=it.gen.const("_errs",names_1.default.errors)}}result(condition,successAction,failAction){this.failResult((0,codegen_1.not)(condition),successAction,failAction)}failResult(condition,successAction,failAction){this.gen.if(condition);if(failAction)failAction();else this.error();if(successAction){this.gen.else();successAction();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(condition,failAction){this.failResult((0,codegen_1.not)(condition),void 0,failAction)}fail(condition){if(condition===void 0){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(condition);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(condition){if(!this.$data)return this.fail(condition);const{schemaCode}=this;this.fail((0,codegen_1._)`${schemaCode} !== undefined && (${(0,codegen_1.or)(this.invalid$data(),condition)})`)}error(append,errorParams,errorPaths){if(errorParams){this.setParams(errorParams);this._error(append,errorPaths);this.setParams({});return}this._error(append,errorPaths)}_error(append,errorPaths){;(append?errors_1.reportExtraError:errors_1.reportError)(this,this.def.error,errorPaths)}$dataError(){(0,errors_1.reportError)(this,this.def.$dataError||errors_1.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,errors_1.resetErrorsCount)(this.gen,this.errsCount)}ok(cond){if(!this.allErrors)this.gen.if(cond)}setParams(obj,assign){if(assign)Object.assign(this.params,obj);else this.params=obj}block$data(valid,codeBlock,$dataValid=codegen_1.nil){this.gen.block(()=>{this.check$data(valid,$dataValid);codeBlock()})}check$data(valid=codegen_1.nil,$dataValid=codegen_1.nil){if(!this.$data)return;const{gen,schemaCode,schemaType,def}=this;gen.if((0,codegen_1.or)((0,codegen_1._)`${schemaCode} === undefined`,$dataValid));if(valid!==codegen_1.nil)gen.assign(valid,true);if(schemaType.length||def.validateSchema){gen.elseIf(this.invalid$data());this.$dataError();if(valid!==codegen_1.nil)gen.assign(valid,false)}gen.else()}invalid$data(){const{gen,schemaCode,schemaType,def,it}=this;return(0,codegen_1.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(schemaType.length){if(!(schemaCode instanceof codegen_1.Name))throw new Error("ajv implementation error");const st=Array.isArray(schemaType)?schemaType:[schemaType];return(0,codegen_1._)`${(0,dataType_2.checkDataTypes)(st,schemaCode,it.opts.strictNumbers,dataType_2.DataType.Wrong)}`}return codegen_1.nil}function invalid$DataSchema(){if(def.validateSchema){const validateSchemaRef=gen.scopeValue("validate$data",{ref:def.validateSchema});return(0,codegen_1._)`!${validateSchemaRef}(${schemaCode})`}return codegen_1.nil}}subschema(appl,valid){const subschema=(0,subschema_1.getSubschema)(this.it,appl);(0,subschema_1.extendSubschemaData)(subschema,this.it,appl);(0,subschema_1.extendSubschemaMode)(subschema,appl);const nextContext={...this.it,...subschema,items:void 0,props:void 0};subschemaCode(nextContext,valid);return nextContext}mergeEvaluated(schemaCxt,toName){const{it,gen}=this;if(!it.opts.unevaluated)return;if(it.props!==true&&schemaCxt.props!==void 0){it.props=util_1.mergeEvaluated.props(gen,schemaCxt.props,it.props,toName)}if(it.items!==true&&schemaCxt.items!==void 0){it.items=util_1.mergeEvaluated.items(gen,schemaCxt.items,it.items,toName)}}mergeValidEvaluated(schemaCxt,valid){const{it,gen}=this;if(it.opts.unevaluated&&(it.props!==true||it.items!==true)){gen.if(valid,()=>this.mergeEvaluated(schemaCxt,codegen_1.Name));return true}}};exports.KeywordCxt=KeywordCxt;function keywordCode(it,keyword,def,ruleType){const cxt=new KeywordCxt(it,def,keyword);if("code"in def){def.code(cxt,ruleType)}else if(cxt.$data&&def.validate){(0,keyword_1.funcKeywordCode)(cxt,def)}else if("macro"in def){(0,keyword_1.macroKeywordCode)(cxt,def)}else if(def.compile||def.validate){(0,keyword_1.funcKeywordCode)(cxt,def)}}var JSON_POINTER=/^\/(?:[^~]|~0|~1)*$/;var RELATIVE_JSON_POINTER=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData($data,{dataLevel,dataNames,dataPathArr}){let jsonPointer;let data;if($data==="")return names_1.default.rootData;if($data[0]==="/"){if(!JSON_POINTER.test($data))throw new Error(`Invalid JSON-pointer: ${$data}`);jsonPointer=$data;data=names_1.default.rootData}else{const matches=RELATIVE_JSON_POINTER.exec($data);if(!matches)throw new Error(`Invalid JSON-pointer: ${$data}`);const up=+matches[1];jsonPointer=matches[2];if(jsonPointer==="#"){if(up>=dataLevel)throw new Error(errorMsg("property/index",up));return dataPathArr[dataLevel-up]}if(up>dataLevel)throw new Error(errorMsg("data",up));data=dataNames[dataLevel-up];if(!jsonPointer)return data}let expr=data;const segments=jsonPointer.split("/");for(const segment of segments){if(segment){data=(0,codegen_1._)`${data}${(0,codegen_1.getProperty)((0,util_1.unescapeJsonPointer)(segment))}`;expr=(0,codegen_1._)`${expr} && ${data}`}}return expr;function errorMsg(pointerType,up){return`Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`}}exports.getData=getData}});var require_validation_error=__commonJS({"node_modules/ajv/dist/runtime/validation_error.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var ValidationError=class extends Error{constructor(errors){super("validation failed");this.errors=errors;this.ajv=this.validation=true}};exports.default=ValidationError}});var require_ref_error=__commonJS({"node_modules/ajv/dist/compile/ref_error.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var resolve_1=require_resolve();var MissingRefError=class extends Error{constructor(resolver,baseId,ref,msg){super(msg||`can't resolve reference ${ref} from id ${baseId}`);this.missingRef=(0,resolve_1.resolveUrl)(resolver,baseId,ref);this.missingSchema=(0,resolve_1.normalizeId)((0,resolve_1.getFullPath)(resolver,this.missingRef))}};exports.default=MissingRefError}});var require_compile=__commonJS({"node_modules/ajv/dist/compile/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.resolveSchema=exports.getCompilingSchema=exports.resolveRef=exports.compileSchema=exports.SchemaEnv=void 0;var codegen_1=require_codegen();var validation_error_1=require_validation_error();var names_1=require_names();var resolve_1=require_resolve();var util_1=require_util();var validate_1=require_validate();var SchemaEnv=class{constructor(env){var _a3;this.refs={};this.dynamicAnchors={};let schema;if(typeof env.schema=="object")schema=env.schema;this.schema=env.schema;this.schemaId=env.schemaId;this.root=env.root||this;this.baseId=(_a3=env.baseId)!==null&&_a3!==void 0?_a3:(0,resolve_1.normalizeId)(schema===null||schema===void 0?void 0:schema[env.schemaId||"$id"]);this.schemaPath=env.schemaPath;this.localRefs=env.localRefs;this.meta=env.meta;this.$async=schema===null||schema===void 0?void 0:schema.$async;this.refs={}}};exports.SchemaEnv=SchemaEnv;function compileSchema(sch){const _sch=getCompilingSchema.call(this,sch);if(_sch)return _sch;const rootId=(0,resolve_1.getFullPath)(this.opts.uriResolver,sch.root.baseId);const{es5,lines}=this.opts.code;const{ownProperties}=this.opts;const gen=new codegen_1.CodeGen(this.scope,{es5,lines,ownProperties});let _ValidationError;if(sch.$async){_ValidationError=gen.scopeValue("Error",{ref:validation_error_1.default,code:(0,codegen_1._)`require("ajv/dist/runtime/validation_error").default`})}const validateName=gen.scopeName("validate");sch.validateName=validateName;const schemaCxt={gen,allErrors:this.opts.allErrors,data:names_1.default.data,parentData:names_1.default.parentData,parentDataProperty:names_1.default.parentDataProperty,dataNames:[names_1.default.data],dataPathArr:[codegen_1.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:gen.scopeValue("schema",this.opts.code.source===true?{ref:sch.schema,code:(0,codegen_1.stringify)(sch.schema)}:{ref:sch.schema}),validateName,ValidationError:_ValidationError,schema:sch.schema,schemaEnv:sch,rootId,baseId:sch.baseId||rootId,schemaPath:codegen_1.nil,errSchemaPath:sch.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,codegen_1._)`""`,opts:this.opts,self:this};let sourceCode;try{this._compilations.add(sch);(0,validate_1.validateFunctionCode)(schemaCxt);gen.optimize(this.opts.code.optimize);const validateCode=gen.toString();sourceCode=`${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`;if(this.opts.code.process)sourceCode=this.opts.code.process(sourceCode,sch);const makeValidate=new Function(`${names_1.default.self}`,`${names_1.default.scope}`,sourceCode);const validate=makeValidate(this,this.scope.get());this.scope.value(validateName,{ref:validate});validate.errors=null;validate.schema=sch.schema;validate.schemaEnv=sch;if(sch.$async)validate.$async=true;if(this.opts.code.source===true){validate.source={validateName,validateCode,scopeValues:gen._values}}if(this.opts.unevaluated){const{props,items}=schemaCxt;validate.evaluated={props:props instanceof codegen_1.Name?void 0:props,items:items instanceof codegen_1.Name?void 0:items,dynamicProps:props instanceof codegen_1.Name,dynamicItems:items instanceof codegen_1.Name};if(validate.source)validate.source.evaluated=(0,codegen_1.stringify)(validate.evaluated)}sch.validate=validate;return sch}catch(e){delete sch.validate;delete sch.validateName;if(sourceCode)this.logger.error("Error compiling schema, function code:",sourceCode);throw e}finally{this._compilations.delete(sch)}}exports.compileSchema=compileSchema;function resolveRef(root,baseId,ref){var _a3;ref=(0,resolve_1.resolveUrl)(this.opts.uriResolver,baseId,ref);const schOrFunc=root.refs[ref];if(schOrFunc)return schOrFunc;let _sch=resolve.call(this,root,ref);if(_sch===void 0){const schema=(_a3=root.localRefs)===null||_a3===void 0?void 0:_a3[ref];const{schemaId}=this.opts;if(schema)_sch=new SchemaEnv({schema,schemaId,root,baseId})}if(_sch===void 0)return;return root.refs[ref]=inlineOrCompile.call(this,_sch)}exports.resolveRef=resolveRef;function inlineOrCompile(sch){if((0,resolve_1.inlineRef)(sch.schema,this.opts.inlineRefs))return sch.schema;return sch.validate?sch:compileSchema.call(this,sch)}function getCompilingSchema(schEnv){for(const sch of this._compilations){if(sameSchemaEnv(sch,schEnv))return sch}}exports.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(s1,s2){return s1.schema===s2.schema&&s1.root===s2.root&&s1.baseId===s2.baseId}function resolve(root,ref){let sch;while(typeof(sch=this.refs[ref])=="string")ref=sch;return sch||this.schemas[ref]||resolveSchema.call(this,root,ref)}function resolveSchema(root,ref){const p=this.opts.uriResolver.parse(ref);const refPath=(0,resolve_1._getFullPath)(this.opts.uriResolver,p);let baseId=(0,resolve_1.getFullPath)(this.opts.uriResolver,root.baseId,void 0);if(Object.keys(root.schema).length>0&&refPath===baseId){return getJsonPointer.call(this,p,root)}const id=(0,resolve_1.normalizeId)(refPath);const schOrRef=this.refs[id]||this.schemas[id];if(typeof schOrRef=="string"){const sch=resolveSchema.call(this,root,schOrRef);if(typeof(sch===null||sch===void 0?void 0:sch.schema)!=="object")return;return getJsonPointer.call(this,p,sch)}if(typeof(schOrRef===null||schOrRef===void 0?void 0:schOrRef.schema)!=="object")return;if(!schOrRef.validate)compileSchema.call(this,schOrRef);if(id===(0,resolve_1.normalizeId)(ref)){const{schema}=schOrRef;const{schemaId}=this.opts;const schId=schema[schemaId];if(schId)baseId=(0,resolve_1.resolveUrl)(this.opts.uriResolver,baseId,schId);return new SchemaEnv({schema,schemaId,root,baseId})}return getJsonPointer.call(this,p,schOrRef)}exports.resolveSchema=resolveSchema;var PREVENT_SCOPE_CHANGE=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(parsedRef,{baseId,schema,root}){var _a3;if(((_a3=parsedRef.fragment)===null||_a3===void 0?void 0:_a3[0])!=="/")return;for(const part of parsedRef.fragment.slice(1).split("/")){if(typeof schema==="boolean")return;const partSchema=schema[(0,util_1.unescapeFragment)(part)];if(partSchema===void 0)return;schema=partSchema;const schId=typeof schema==="object"&&schema[this.opts.schemaId];if(!PREVENT_SCOPE_CHANGE.has(part)&&schId){baseId=(0,resolve_1.resolveUrl)(this.opts.uriResolver,baseId,schId)}}let env;if(typeof schema!="boolean"&&schema.$ref&&!(0,util_1.schemaHasRulesButRef)(schema,this.RULES)){const $ref=(0,resolve_1.resolveUrl)(this.opts.uriResolver,baseId,schema.$ref);env=resolveSchema.call(this,root,$ref)}const{schemaId}=this.opts;env=env||new SchemaEnv({schema,schemaId,root,baseId});if(env.schema!==env.root.schema)return env;return void 0}}});var require_data=__commonJS({"node_modules/ajv/dist/refs/data.json"(exports,module){module.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}}});var require_utils=__commonJS({"node_modules/fast-uri/lib/utils.js"(exports,module){"use strict";var isUUID=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);var isIPv4=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);var isPort=RegExp.prototype.test.bind(/^\d*$/u);var isHexPair=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);var isUnreserved=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);var isPathCharacter=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);var isQueryFragmentCharacter=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);var isUserinfoCharacter=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);var BYTE_HEX=new Array(256);{const HEX_DIGITS="0123456789ABCDEF";for(let i=0;i<256;i++){BYTE_HEX[i]="%"+HEX_DIGITS[i>>4]+HEX_DIGITS[i&15]}}function percentEncodeNonAscii(cp){if(cp<2048){return BYTE_HEX[192|cp>>6]+BYTE_HEX[128|cp&63]}if(cp<65536){return BYTE_HEX[224|cp>>12]+BYTE_HEX[128|cp>>6&63]+BYTE_HEX[128|cp&63]}return BYTE_HEX[240|cp>>18]+BYTE_HEX[128|cp>>12&63]+BYTE_HEX[128|cp>>6&63]+BYTE_HEX[128|cp&63]}function stringArrayToHexStripped(input){let acc="";let code=0;let i=0;for(i=0;i=48&&code<=57||code>=65&&code<=70||code>=97&&code<=102)){return""}acc+=input[i];break}for(i+=1;i=48&&code<=57||code>=65&&code<=70||code>=97&&code<=102)){return""}acc+=input[i]}return acc}var isHextet=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);var isIPvFuture=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);var isZoneCharacter=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);var nonSimpleDomain=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function isZoneIdentifier(zone){if(zone.length===0)return false;for(let i=0;ibestLength){bestLength=runLength;bestStart=runStart}}else{runStart=-1;runLength=0}}if(bestLength<2)return hextets.join(":");const head=hextets.slice(0,bestStart).join(":");const tail=hextets.slice(bestStart+bestLength).join(":");return head+"::"+tail}function normalizeIPv6Address(input){const compression=input.indexOf("::");if(compression!==-1&&input.indexOf("::",compression+1)!==-1)return void 0;const left=compression===-1?input.split(":"):input.slice(0,compression).split(":");const right=compression===-1?[]:input.slice(compression+2).split(":");if(compression!==-1){if(left.length===1&&left[0]==="")left.length=0;if(right.length===1&&right[0]==="")right.length=0}const parts=left.concat(right);let hextetCount=0;for(let i=0;i=8)return void 0;const expanded=parts.slice(0,left.length);for(let i=hextetCount;i<8;i++)expanded.push("0");for(let i=left.length;iHOST_DELIMS[ch])}function normalizePercentEncoding(input,decodeUnreserved=false){if(input.indexOf("%")===-1){return input}let output="";for(let i=0;i57343){output+=percentEncodeNonAscii(code)}else if(code<=56319&&i+1=56320&&low<=57343){output+=percentEncodeNonAscii(65536+(code-55296<<10)+(low-56320));i++}else{output+=percentEncodeNonAscii(65533)}}else{output+=percentEncodeNonAscii(65533)}}}return output}function serializePathEncoding(input,pathNoScheme=false){let output="";let firstSegment=pathNoScheme&&input[0]!=="/";for(let i=0;i57343){output+=percentEncodeNonAscii(code)}else if(code<=56319&&i+1=56320&&low<=57343){output+=percentEncodeNonAscii(65536+(code-55296<<10)+(low-56320));i++}else{output+=percentEncodeNonAscii(65533)}}else{output+=percentEncodeNonAscii(65533)}}}return output}function encodeComponent(input,isAllowed){let output="";for(let i=0;i57343){output+=percentEncodeNonAscii(code)}else if(code<=56319&&i+1=56320&&low<=57343){output+=percentEncodeNonAscii(65536+(code-55296<<10)+(low-56320));i++}else{output+=percentEncodeNonAscii(65533)}}else{output+=percentEncodeNonAscii(65533)}}}return output}function encodeUserinfo(input){return encodeComponent(input,isUserinfoCharacter)}function encodeQuery(input){return encodeComponent(input,isQueryFragmentCharacter)}function encodeFragment(input){return encodeComponent(input,isQueryFragmentCharacter)}function isEscapeSafe(cp){return cp>=48&&cp<=57||cp>=65&&cp<=90||cp>=97&&cp<=122||cp===42||cp===43||cp===45||cp===46||cp===47||cp===64||cp===95}function normalizeQueryFragmentEncoding(input){let output="";for(let i=0;i57343){output+=percentEncodeNonAscii(code)}else if(code<=56319&&i+1=56320&&low<=57343){output+=percentEncodeNonAscii(65536+(code-55296<<10)+(low-56320));i++}else{output+=percentEncodeNonAscii(65533)}}else{output+=percentEncodeNonAscii(65533)}}}return output}function escapePreservingEscapes(input){let output="";for(let i=0;i65535)){return"URI port is malformed."}return void 0}function hasMalformedPercentEncoding(component){if(component===void 0)return false;let percent=component.indexOf("%");while(percent!==-1){if(percent+2>=component.length||!/^[\da-f]{2}$/iu.test(component.slice(percent+1,percent+3))){return true}percent=component.indexOf("%",percent+3)}return false}function isIPLiteral(host){return host[0]==="["&&host[host.length-1]==="]"}function hasMalformedComponentPercentEncoding(matches){const host=matches[4];return hasMalformedPercentEncoding(matches[3])||host!==void 0&&!isIPLiteral(host)&&hasMalformedPercentEncoding(host)||hasMalformedPercentEncoding(matches[6])||hasMalformedPercentEncoding(matches[7])||hasMalformedPercentEncoding(matches[8])}function canonicalizeHost(parsed,options,schemeHandler,isIP){if(!options.unicodeSupport&&(!schemeHandler||!schemeHandler.unicodeSupport)&&parsed.host&&!isIPLiteral(parsed.host)&&(options.domainHost||schemeHandler&&schemeHandler.domainHost)&&isIP===false&&nonSimpleDomain(parsed.host)){try{parsed.host=new URL("http://"+parsed.host).hostname}catch(e){parsed.error=parsed.error||"Host's domain name can not be converted to ASCII: "+e;return true}}return false}function parseWithStatus(uri,opts){const options=Object.assign({},opts);const parsed={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let malformedAuthorityOrPort=false;let malformedPercentEncoding=false;let malformedSchemeSpecific=false;let malformedHost=false;let malformedIPLiteral=false;let malformedScheme=false;let isIP=false;if(options.reference==="suffix"){if(options.scheme){uri=options.scheme+":"+uri}else{uri="//"+uri}}const authorityMatch=uri.match(AUTHORITY_PREFIX);if(authorityMatch!==null&&authorityMatch[1].indexOf("\\")!==-1){parsed.error="URI authority must not contain a literal backslash.";malformedAuthorityOrPort=true}const introducerMatch=uri.match(AUTHORITY_INTRODUCER_REGION);if(introducerMatch!==null){const region=introducerMatch[1];const normalizedRegion=region.replace(/[\t\n\r]/g,"");if(normalizedRegion.length>=2){if(normalizedRegion.slice(0,2)!=="//"){parsed.error=parsed.error||"URI authority must not contain a literal backslash.";malformedAuthorityOrPort=true}else if(region.length!==normalizedRegion.length){parsed.error=parsed.error||"URI authority introducer must not contain whitespace.";malformedAuthorityOrPort=true}}}const matches=uri.match(URI_PARSE);if(matches){parsed.scheme=matches[1];parsed.userinfo=matches[3];parsed.host=matches[4];parsed.port=parseInt(matches[5],10);parsed.path=matches[6]||"";parsed.query=matches[7];parsed.fragment=matches[8];if(parsed.scheme!==void 0){const decodedScheme=unescape(parsed.scheme);if(VALID_SCHEME.test(decodedScheme)){parsed.scheme=decodedScheme.toLowerCase()}else{parsed.error=parsed.error||MALFORMED_SCHEME_ERROR;malformedScheme=true}}malformedPercentEncoding=hasMalformedComponentPercentEncoding(matches);if(malformedPercentEncoding){parsed.error=parsed.error||"URI contains malformed percent-encoding."}if(isNaN(parsed.port)){parsed.port=matches[5]}const parseError=getParseError(parsed,matches);if(parseError!==void 0){parsed.error=parsed.error||parseError;malformedAuthorityOrPort=true}if(parsed.host){const ipv4result=isIPv4(parsed.host);if(ipv4result===false){const bracketedIPLiteral=isIPLiteral(parsed.host);const hasIPLiteralBracket=parsed.host.indexOf("[")!==-1||parsed.host.indexOf("]")!==-1;const ipv6result=normalizeIPv6(parsed.host);isIP=ipv6result.isIPV6||ipv6result.isIPVFuture===true;malformedIPLiteral=hasIPLiteralBracket&&(!bracketedIPLiteral||ipv6result.error===true);parsed.host=isIP?ipv6result.host:ipv6result.host.toLowerCase();if(malformedIPLiteral){parsed.error=parsed.error||"URI host is malformed.";malformedAuthorityOrPort=true}}else{isIP=true}}if(parsed.scheme===void 0&&parsed.userinfo===void 0&&parsed.host===void 0&&parsed.port===void 0&&parsed.query===void 0&&!parsed.path){parsed.reference="same-document"}else if(parsed.scheme===void 0){parsed.reference="relative"}else if(parsed.fragment===void 0){parsed.reference="absolute"}else{parsed.reference="uri"}if(options.reference&&options.reference!=="suffix"&&options.reference!==parsed.reference){parsed.error=parsed.error||"URI is not a "+options.reference+" reference."}const schemeHandler=getSchemeHandler(options.scheme||parsed.scheme);if(!malformedIPLiteral){malformedHost=canonicalizeHost(parsed,options,schemeHandler,isIP)}if(!schemeHandler||schemeHandler&&!schemeHandler.skipNormalize){if(uri.indexOf("%")!==-1){if(parsed.host!==void 0&&!malformedIPLiteral){const host=isIP?parsed.host:normalizePercentEncoding(parsed.host,true);parsed.host=reescapeHostDelimiters(host,isIP)}}if(parsed.path){parsed.path=normalizePathEncoding(parsed.path)}if(parsed.query){parsed.query=normalizeQueryFragmentEncoding(parsed.query)}if(parsed.fragment){parsed.fragment=normalizeQueryFragmentEncoding(parsed.fragment)}}if(schemeHandler&&schemeHandler.parse){schemeHandler.parse(parsed,options);if(schemeHandler===SCHEMES.urn&&parsed.nid===void 0){malformedSchemeSpecific=true}}}else{parsed.error=parsed.error||"URI can not be parsed."}return{parsed,malformedAuthorityOrPort,malformedPercentEncoding,malformedSchemeSpecific,malformedHost,malformedScheme}}function parse3(uri,opts){return parseWithStatus(uri,opts).parsed}function normalizeString(uri,opts){return normalizeStringWithStatus(uri,opts).normalized}function normalizeStringWithStatus(uri,opts){const{parsed,malformedAuthorityOrPort,malformedPercentEncoding,malformedSchemeSpecific,malformedHost,malformedScheme}=parseWithStatus(uri,opts);return{normalized:malformedAuthorityOrPort||malformedPercentEncoding||malformedSchemeSpecific||malformedHost||malformedScheme?uri:serialize(parsed,opts),malformedAuthorityOrPort,malformedPercentEncoding,malformedSchemeSpecific,malformedHost,malformedScheme}}function normalizeComparableURI(uri,opts){if(typeof uri!=="string"&&typeof uri!=="object"){return void 0}let value;try{value=typeof uri==="string"?uri:serialize(uri,opts)}catch{return void 0}const{normalized,malformedAuthorityOrPort,malformedPercentEncoding,malformedSchemeSpecific,malformedHost,malformedScheme}=normalizeStringWithStatus(value,opts);return malformedAuthorityOrPort||malformedPercentEncoding||malformedSchemeSpecific||malformedHost||malformedScheme?void 0:normalized}var fastUri={SCHEMES,normalize,resolve,resolveComponent,equal,serialize,parse:parse3};module.exports=fastUri;module.exports.default=fastUri;module.exports.fastUri=fastUri}});var require_uri=__commonJS({"node_modules/ajv/dist/runtime/uri.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var uri=require_fast_uri();uri.code='require("ajv/dist/runtime/uri").default';exports.default=uri}});var require_core=__commonJS({"node_modules/ajv/dist/core.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.CodeGen=exports.Name=exports.nil=exports.stringify=exports.str=exports._=exports.KeywordCxt=void 0;var validate_1=require_validate();Object.defineProperty(exports,"KeywordCxt",{enumerable:true,get:function(){return validate_1.KeywordCxt}});var codegen_1=require_codegen();Object.defineProperty(exports,"_",{enumerable:true,get:function(){return codegen_1._}});Object.defineProperty(exports,"str",{enumerable:true,get:function(){return codegen_1.str}});Object.defineProperty(exports,"stringify",{enumerable:true,get:function(){return codegen_1.stringify}});Object.defineProperty(exports,"nil",{enumerable:true,get:function(){return codegen_1.nil}});Object.defineProperty(exports,"Name",{enumerable:true,get:function(){return codegen_1.Name}});Object.defineProperty(exports,"CodeGen",{enumerable:true,get:function(){return codegen_1.CodeGen}});var validation_error_1=require_validation_error();var ref_error_1=require_ref_error();var rules_1=require_rules();var compile_1=require_compile();var codegen_2=require_codegen();var resolve_1=require_resolve();var dataType_1=require_dataType();var util_1=require_util();var $dataRefSchema=require_data();var uri_1=require_uri();var defaultRegExp=(str,flags)=>new RegExp(str,flags);defaultRegExp.code="new RegExp";var META_IGNORE_OPTIONS=["removeAdditional","useDefaults","coerceTypes"];var EXT_SCOPE_NAMES=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);var removedOptions={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};var deprecatedOptions={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};var MAX_EXPRESSION=200;function requiredOptions(o){var _a3,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,_x,_y,_z,_0;const s=o.strict;const _optz=(_a3=o.code)===null||_a3===void 0?void 0:_a3.optimize;const optimize=_optz===true||_optz===void 0?1:_optz||0;const regExp=(_c=(_b=o.code)===null||_b===void 0?void 0:_b.regExp)!==null&&_c!==void 0?_c:defaultRegExp;const uriResolver=(_d=o.uriResolver)!==null&&_d!==void 0?_d:uri_1.default;return{strictSchema:(_f=(_e=o.strictSchema)!==null&&_e!==void 0?_e:s)!==null&&_f!==void 0?_f:true,strictNumbers:(_h=(_g=o.strictNumbers)!==null&&_g!==void 0?_g:s)!==null&&_h!==void 0?_h:true,strictTypes:(_k=(_j=o.strictTypes)!==null&&_j!==void 0?_j:s)!==null&&_k!==void 0?_k:"log",strictTuples:(_m=(_l=o.strictTuples)!==null&&_l!==void 0?_l:s)!==null&&_m!==void 0?_m:"log",strictRequired:(_p=(_o=o.strictRequired)!==null&&_o!==void 0?_o:s)!==null&&_p!==void 0?_p:false,code:o.code?{...o.code,optimize,regExp}:{optimize,regExp},loopRequired:(_q=o.loopRequired)!==null&&_q!==void 0?_q:MAX_EXPRESSION,loopEnum:(_r=o.loopEnum)!==null&&_r!==void 0?_r:MAX_EXPRESSION,meta:(_s=o.meta)!==null&&_s!==void 0?_s:true,messages:(_t=o.messages)!==null&&_t!==void 0?_t:true,inlineRefs:(_u=o.inlineRefs)!==null&&_u!==void 0?_u:true,schemaId:(_v=o.schemaId)!==null&&_v!==void 0?_v:"$id",addUsedSchema:(_w=o.addUsedSchema)!==null&&_w!==void 0?_w:true,validateSchema:(_x=o.validateSchema)!==null&&_x!==void 0?_x:true,validateFormats:(_y=o.validateFormats)!==null&&_y!==void 0?_y:true,unicodeRegExp:(_z=o.unicodeRegExp)!==null&&_z!==void 0?_z:true,int32range:(_0=o.int32range)!==null&&_0!==void 0?_0:true,uriResolver}}var Ajv2=class{constructor(opts={}){this.schemas={};this.refs={};this.formats=Object.create(null);this._compilations=new Set;this._loading={};this._cache=new Map;opts=this.opts={...opts,...requiredOptions(opts)};const{es5,lines}=this.opts.code;this.scope=new codegen_2.ValueScope({scope:{},prefixes:EXT_SCOPE_NAMES,es5,lines});this.logger=getLogger(opts.logger);const formatOpt=opts.validateFormats;opts.validateFormats=false;this.RULES=(0,rules_1.getRules)();checkOptions.call(this,removedOptions,opts,"NOT SUPPORTED");checkOptions.call(this,deprecatedOptions,opts,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(opts.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(opts.keywords)addInitialKeywords.call(this,opts.keywords);if(typeof opts.meta=="object")this.addMetaSchema(opts.meta);addInitialSchemas.call(this);opts.validateFormats=formatOpt}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data,meta:meta2,schemaId}=this.opts;let _dataRefSchema=$dataRefSchema;if(schemaId==="id"){_dataRefSchema={...$dataRefSchema};_dataRefSchema.id=_dataRefSchema.$id;delete _dataRefSchema.$id}if(meta2&&$data)this.addMetaSchema(_dataRefSchema,_dataRefSchema[schemaId],false)}defaultMeta(){const{meta:meta2,schemaId}=this.opts;return this.opts.defaultMeta=typeof meta2=="object"?meta2[schemaId]||meta2:void 0}validate(schemaKeyRef,data){let v;if(typeof schemaKeyRef=="string"){v=this.getSchema(schemaKeyRef);if(!v)throw new Error(`no schema with key or ref "${schemaKeyRef}"`)}else{v=this.compile(schemaKeyRef)}const valid=v(data);if(!("$async"in v))this.errors=v.errors;return valid}compile(schema,_meta){const sch=this._addSchema(schema,_meta);return sch.validate||this._compileSchemaEnv(sch)}compileAsync(schema,meta2){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema}=this.opts;return runCompileAsync.call(this,schema,meta2);async function runCompileAsync(_schema,_meta){await loadMetaSchema.call(this,_schema.$schema);const sch=this._addSchema(_schema,_meta);return sch.validate||_compileAsync.call(this,sch)}async function loadMetaSchema($ref){if($ref&&!this.getSchema($ref)){await runCompileAsync.call(this,{$ref},true)}}async function _compileAsync(sch){try{return this._compileSchemaEnv(sch)}catch(e){if(!(e instanceof ref_error_1.default))throw e;checkLoaded.call(this,e);await loadMissingSchema.call(this,e.missingSchema);return _compileAsync.call(this,sch)}}function checkLoaded({missingSchema:ref,missingRef}){if(this.refs[ref]){throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`)}}async function loadMissingSchema(ref){const _schema=await _loadSchema.call(this,ref);if(!this.refs[ref])await loadMetaSchema.call(this,_schema.$schema);if(!this.refs[ref])this.addSchema(_schema,ref,meta2)}async function _loadSchema(ref){const p=this._loading[ref];if(p)return p;try{return await(this._loading[ref]=loadSchema(ref))}finally{delete this._loading[ref]}}}addSchema(schema,key,_meta,_validateSchema=this.opts.validateSchema){if(Array.isArray(schema)){for(const sch of schema)this.addSchema(sch,void 0,_meta,_validateSchema);return this}let id;if(typeof schema==="object"){const{schemaId}=this.opts;id=schema[schemaId];if(id!==void 0&&typeof id!="string"){throw new Error(`schema ${schemaId} must be string`)}}key=(0,resolve_1.normalizeId)(key||id);this._checkUnique(key);this.schemas[key]=this._addSchema(schema,_meta,key,_validateSchema,true);return this}addMetaSchema(schema,key,_validateSchema=this.opts.validateSchema){this.addSchema(schema,key,true,_validateSchema);return this}validateSchema(schema,throwOrLogError){if(typeof schema=="boolean")return true;let $schema;$schema=schema.$schema;if($schema!==void 0&&typeof $schema!="string"){throw new Error("$schema must be a string")}$schema=$schema||this.opts.defaultMeta||this.defaultMeta();if(!$schema){this.logger.warn("meta-schema not available");this.errors=null;return true}const valid=this.validate($schema,schema);if(!valid&&throwOrLogError){const message="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(message);else throw new Error(message)}return valid}getSchema(keyRef){let sch;while(typeof(sch=getSchEnv.call(this,keyRef))=="string")keyRef=sch;if(sch===void 0){const{schemaId}=this.opts;const root=new compile_1.SchemaEnv({schema:{},schemaId});sch=compile_1.resolveSchema.call(this,root,keyRef);if(!sch)return;this.refs[keyRef]=sch}return sch.validate||this._compileSchemaEnv(sch)}removeSchema(schemaKeyRef){if(schemaKeyRef instanceof RegExp){this._removeAllSchemas(this.schemas,schemaKeyRef);this._removeAllSchemas(this.refs,schemaKeyRef);return this}switch(typeof schemaKeyRef){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const sch=getSchEnv.call(this,schemaKeyRef);if(typeof sch=="object")this._cache.delete(sch.schema);delete this.schemas[schemaKeyRef];delete this.refs[schemaKeyRef];return this}case"object":{const cacheKey=schemaKeyRef;this._cache.delete(cacheKey);let id=schemaKeyRef[this.opts.schemaId];if(id){id=(0,resolve_1.normalizeId)(id);delete this.schemas[id];delete this.refs[id]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(definitions){for(const def of definitions)this.addKeyword(def);return this}addKeyword(kwdOrDef,def){let keyword;if(typeof kwdOrDef=="string"){keyword=kwdOrDef;if(typeof def=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");def.keyword=keyword}}else if(typeof kwdOrDef=="object"&&def===void 0){def=kwdOrDef;keyword=def.keyword;if(Array.isArray(keyword)&&!keyword.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,keyword,def);if(!def){(0,util_1.eachItem)(keyword,kwd=>addRule.call(this,kwd));return this}keywordMetaschema.call(this,def);const definition={...def,type:(0,dataType_1.getJSONTypes)(def.type),schemaType:(0,dataType_1.getJSONTypes)(def.schemaType)};(0,util_1.eachItem)(keyword,definition.type.length===0?k=>addRule.call(this,k,definition):k=>definition.type.forEach(t=>addRule.call(this,k,definition,t)));return this}getKeyword(keyword){const rule=this.RULES.all[keyword];return typeof rule=="object"?rule.definition:!!rule}removeKeyword(keyword){const{RULES}=this;delete RULES.keywords[keyword];delete RULES.all[keyword];for(const group of RULES.rules){const i=group.rules.findIndex(rule=>rule.keyword===keyword);if(i>=0)group.rules.splice(i,1)}return this}addFormat(name,format){if(typeof format=="string")format=new RegExp(format);this.formats[name]=format;return this}errorsText(errors=this.errors,{separator=", ",dataVar="data"}={}){if(!errors||errors.length===0)return"No errors";return errors.map(e=>`${dataVar}${e.instancePath} ${e.message}`).reduce((text,msg)=>text+separator+msg)}$dataMetaSchema(metaSchema,keywordsJsonPointers){const rules=this.RULES.all;metaSchema=JSON.parse(JSON.stringify(metaSchema));for(const jsonPointer of keywordsJsonPointers){const segments=jsonPointer.split("/").slice(1);let keywords=metaSchema;for(const seg of segments)keywords=keywords[seg];for(const key in rules){const rule=rules[key];if(typeof rule!="object")continue;const{$data}=rule.definition;const schema=keywords[key];if($data&&schema)keywords[key]=schemaOrData(schema)}}return metaSchema}_removeAllSchemas(schemas,regex){for(const keyRef in schemas){const sch=schemas[keyRef];if(!regex||regex.test(keyRef)){if(typeof sch=="string"){delete schemas[keyRef]}else if(sch&&!sch.meta){this._cache.delete(sch.schema);delete schemas[keyRef]}}}}_addSchema(schema,meta2,baseId,validateSchema=this.opts.validateSchema,addSchema=this.opts.addUsedSchema){let id;const{schemaId}=this.opts;if(typeof schema=="object"){id=schema[schemaId]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof schema!="boolean")throw new Error("schema must be object or boolean")}let sch=this._cache.get(schema);if(sch!==void 0)return sch;baseId=(0,resolve_1.normalizeId)(id||baseId);const localRefs=resolve_1.getSchemaRefs.call(this,schema,baseId);sch=new compile_1.SchemaEnv({schema,schemaId,meta:meta2,baseId,localRefs});this._cache.set(sch.schema,sch);if(addSchema&&!baseId.startsWith("#")){if(baseId)this._checkUnique(baseId);this.refs[baseId]=sch}if(validateSchema)this.validateSchema(schema,true);return sch}_checkUnique(id){if(this.schemas[id]||this.refs[id]){throw new Error(`schema with key or id "${id}" already exists`)}}_compileSchemaEnv(sch){if(sch.meta)this._compileMetaSchema(sch);else compile_1.compileSchema.call(this,sch);if(!sch.validate)throw new Error("ajv implementation error");return sch.validate}_compileMetaSchema(sch){const currentOpts=this.opts;this.opts=this._metaOpts;try{compile_1.compileSchema.call(this,sch)}finally{this.opts=currentOpts}}};Ajv2.ValidationError=validation_error_1.default;Ajv2.MissingRefError=ref_error_1.default;exports.default=Ajv2;function checkOptions(checkOpts,options,msg,log="error"){for(const key in checkOpts){const opt=key;if(opt in options)this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`)}}function getSchEnv(keyRef){keyRef=(0,resolve_1.normalizeId)(keyRef);return this.schemas[keyRef]||this.refs[keyRef]}function addInitialSchemas(){const optsSchemas=this.opts.schemas;if(!optsSchemas)return;if(Array.isArray(optsSchemas))this.addSchema(optsSchemas);else for(const key in optsSchemas)this.addSchema(optsSchemas[key],key)}function addInitialFormats(){for(const name in this.opts.formats){const format=this.opts.formats[name];if(format)this.addFormat(name,format)}}function addInitialKeywords(defs){if(Array.isArray(defs)){this.addVocabulary(defs);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const keyword in defs){const def=defs[keyword];if(!def.keyword)def.keyword=keyword;this.addKeyword(def)}}function getMetaSchemaOptions(){const metaOpts={...this.opts};for(const opt of META_IGNORE_OPTIONS)delete metaOpts[opt];return metaOpts}var noLogs={log(){},warn(){},error(){}};function getLogger(logger){if(logger===false)return noLogs;if(logger===void 0)return console;if(logger.log&&logger.warn&&logger.error)return logger;throw new Error("logger must implement log, warn and error methods")}var KEYWORD_NAME=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(keyword,def){const{RULES}=this;(0,util_1.eachItem)(keyword,kwd=>{if(RULES.keywords[kwd])throw new Error(`Keyword ${kwd} is already defined`);if(!KEYWORD_NAME.test(kwd))throw new Error(`Keyword ${kwd} has invalid name`)});if(!def)return;if(def.$data&&!("code"in def||"validate"in def)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(keyword,definition,dataType){var _a3;const post=definition===null||definition===void 0?void 0:definition.post;if(dataType&&post)throw new Error('keyword with "post" flag cannot have "type"');const{RULES}=this;let ruleGroup=post?RULES.post:RULES.rules.find(({type:t})=>t===dataType);if(!ruleGroup){ruleGroup={type:dataType,rules:[]};RULES.rules.push(ruleGroup)}RULES.keywords[keyword]=true;if(!definition)return;const rule={keyword,definition:{...definition,type:(0,dataType_1.getJSONTypes)(definition.type),schemaType:(0,dataType_1.getJSONTypes)(definition.schemaType)}};if(definition.before)addBeforeRule.call(this,ruleGroup,rule,definition.before);else ruleGroup.rules.push(rule);RULES.all[keyword]=rule;(_a3=definition.implements)===null||_a3===void 0?void 0:_a3.forEach(kwd=>this.addKeyword(kwd))}function addBeforeRule(ruleGroup,rule,before){const i=ruleGroup.rules.findIndex(_rule=>_rule.keyword===before);if(i>=0){ruleGroup.rules.splice(i,0,rule)}else{ruleGroup.rules.push(rule);this.logger.warn(`rule ${before} is not defined`)}}function keywordMetaschema(def){let{metaSchema}=def;if(metaSchema===void 0)return;if(def.$data&&this.opts.$data)metaSchema=schemaOrData(metaSchema);def.validateSchema=this.compile(metaSchema,true)}var $dataRef={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(schema){return{anyOf:[schema,$dataRef]}}}});var require_id=__commonJS({"node_modules/ajv/dist/vocabularies/core/id.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var def={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};exports.default=def}});var require_ref=__commonJS({"node_modules/ajv/dist/vocabularies/core/ref.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.callRef=exports.getValidate=void 0;var ref_error_1=require_ref_error();var code_1=require_code2();var codegen_1=require_codegen();var names_1=require_names();var compile_1=require_compile();var util_1=require_util();var def={keyword:"$ref",schemaType:"string",code(cxt){const{gen,schema:$ref,it}=cxt;const{baseId,schemaEnv:env,validateName,opts,self}=it;const{root}=env;if(($ref==="#"||$ref==="#/")&&baseId===root.baseId)return callRootRef();const schOrEnv=compile_1.resolveRef.call(self,root,baseId,$ref);if(schOrEnv===void 0)throw new ref_error_1.default(it.opts.uriResolver,baseId,$ref);if(schOrEnv instanceof compile_1.SchemaEnv)return callValidate(schOrEnv);return inlineRefSchema(schOrEnv);function callRootRef(){if(env===root)return callRef(cxt,validateName,env,env.$async);const rootName=gen.scopeValue("root",{ref:root});return callRef(cxt,(0,codegen_1._)`${rootName}.validate`,root,root.$async)}function callValidate(sch){const v=getValidate(cxt,sch);callRef(cxt,v,sch,sch.$async)}function inlineRefSchema(sch){const schName=gen.scopeValue("schema",opts.code.source===true?{ref:sch,code:(0,codegen_1.stringify)(sch)}:{ref:sch});const valid=gen.name("valid");const schCxt=cxt.subschema({schema:sch,dataTypes:[],schemaPath:codegen_1.nil,topSchemaRef:schName,errSchemaPath:$ref},valid);cxt.mergeEvaluated(schCxt);cxt.ok(valid)}}};function getValidate(cxt,sch){const{gen}=cxt;return sch.validate?gen.scopeValue("validate",{ref:sch.validate}):(0,codegen_1._)`${gen.scopeValue("wrapper",{ref:sch})}.validate`}exports.getValidate=getValidate;function callRef(cxt,v,sch,$async){const{gen,it}=cxt;const{allErrors,schemaEnv:env,opts}=it;const passCxt=opts.passContext?names_1.default.this:codegen_1.nil;if($async)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!env.$async)throw new Error("async schema referenced by sync schema");const valid=gen.let("valid");gen.try(()=>{gen.code((0,codegen_1._)`await ${(0,code_1.callValidateCode)(cxt,v,passCxt)}`);addEvaluatedFrom(v);if(!allErrors)gen.assign(valid,true)},e=>{gen.if((0,codegen_1._)`!(${e} instanceof ${it.ValidationError})`,()=>gen.throw(e));addErrorsFrom(e);if(!allErrors)gen.assign(valid,false)});cxt.ok(valid)}function callSyncRef(){cxt.result((0,code_1.callValidateCode)(cxt,v,passCxt),()=>addEvaluatedFrom(v),()=>addErrorsFrom(v))}function addErrorsFrom(source){const errs=(0,codegen_1._)`${source}.errors`;gen.assign(names_1.default.vErrors,(0,codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`);gen.assign(names_1.default.errors,(0,codegen_1._)`${names_1.default.vErrors}.length`)}function addEvaluatedFrom(source){var _a3;if(!it.opts.unevaluated)return;const schEvaluated=(_a3=sch===null||sch===void 0?void 0:sch.validate)===null||_a3===void 0?void 0:_a3.evaluated;if(it.props!==true){if(schEvaluated&&!schEvaluated.dynamicProps){if(schEvaluated.props!==void 0){it.props=util_1.mergeEvaluated.props(gen,schEvaluated.props,it.props)}}else{const props=gen.var("props",(0,codegen_1._)`${source}.evaluated.props`);it.props=util_1.mergeEvaluated.props(gen,props,it.props,codegen_1.Name)}}if(it.items!==true){if(schEvaluated&&!schEvaluated.dynamicItems){if(schEvaluated.items!==void 0){it.items=util_1.mergeEvaluated.items(gen,schEvaluated.items,it.items)}}else{const items=gen.var("items",(0,codegen_1._)`${source}.evaluated.items`);it.items=util_1.mergeEvaluated.items(gen,items,it.items,codegen_1.Name)}}}}exports.callRef=callRef;exports.default=def}});var require_core2=__commonJS({"node_modules/ajv/dist/vocabularies/core/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var id_1=require_id();var ref_1=require_ref();var core=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",id_1.default,ref_1.default];exports.default=core}});var require_limitNumber=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var ops=codegen_1.operators;var KWDs={maximum:{okStr:"<=",ok:ops.LTE,fail:ops.GT},minimum:{okStr:">=",ok:ops.GTE,fail:ops.LT},exclusiveMaximum:{okStr:"<",ok:ops.LT,fail:ops.GTE},exclusiveMinimum:{okStr:">",ok:ops.GT,fail:ops.LTE}};var error2={message:({keyword,schemaCode})=>(0,codegen_1.str)`must be ${KWDs[keyword].okStr} ${schemaCode}`,params:({keyword,schemaCode})=>(0,codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`};var def={keyword:Object.keys(KWDs),type:"number",schemaType:"number",$data:true,error:error2,code(cxt){const{keyword,data,schemaCode}=cxt;cxt.fail$data((0,codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`)}};exports.default=def}});var require_multipleOf=__commonJS({"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var error2={message:({schemaCode})=>(0,codegen_1.str)`must be multiple of ${schemaCode}`,params:({schemaCode})=>(0,codegen_1._)`{multipleOf: ${schemaCode}}`};var def={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:error2,code(cxt){const{gen,data,schemaCode,it}=cxt;const prec=it.opts.multipleOfPrecision;const res=gen.let("res");const invalid=prec?(0,codegen_1._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}`:(0,codegen_1._)`${res} !== parseInt(${res})`;cxt.fail$data((0,codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`)}};exports.default=def}});var require_ucs2length=__commonJS({"node_modules/ajv/dist/runtime/ucs2length.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});function ucs2length(str){const len=str.length;let length=0;let pos=0;let value;while(pos=55296&&value<=56319&&pos(0,codegen_1._)`{limit: ${schemaCode}}`};var def={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:error2,code(cxt){const{keyword,data,schemaCode,it}=cxt;const op=keyword==="maxLength"?codegen_1.operators.GT:codegen_1.operators.LT;const len=it.opts.unicode===false?(0,codegen_1._)`${data}.length`:(0,codegen_1._)`${(0,util_1.useFunc)(cxt.gen,ucs2length_1.default)}(${data})`;cxt.fail$data((0,codegen_1._)`${len} ${op} ${schemaCode}`)}};exports.default=def}});var require_pattern=__commonJS({"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var code_1=require_code2();var util_1=require_util();var codegen_1=require_codegen();var error2={message:({schemaCode})=>(0,codegen_1.str)`must match pattern "${schemaCode}"`,params:({schemaCode})=>(0,codegen_1._)`{pattern: ${schemaCode}}`};var def={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:error2,code(cxt){const{gen,data,$data,schema,schemaCode,it}=cxt;const u=it.opts.unicodeRegExp?"u":"";if($data){const{regExp}=it.opts.code;const regExpCode=regExp.code==="new RegExp"?(0,codegen_1._)`new RegExp`:(0,util_1.useFunc)(gen,regExp);const valid=gen.let("valid");gen.try(()=>gen.assign(valid,(0,codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`),()=>gen.assign(valid,false));cxt.fail$data((0,codegen_1._)`!${valid}`)}else{const regExp=(0,code_1.usePattern)(cxt,schema);cxt.fail$data((0,codegen_1._)`!${regExp}.test(${data})`)}}};exports.default=def}});var require_limitProperties=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var error2={message({keyword,schemaCode}){const comp=keyword==="maxProperties"?"more":"fewer";return(0,codegen_1.str)`must NOT have ${comp} than ${schemaCode} properties`},params:({schemaCode})=>(0,codegen_1._)`{limit: ${schemaCode}}`};var def={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:error2,code(cxt){const{keyword,data,schemaCode}=cxt;const op=keyword==="maxProperties"?codegen_1.operators.GT:codegen_1.operators.LT;cxt.fail$data((0,codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`)}};exports.default=def}});var require_required=__commonJS({"node_modules/ajv/dist/vocabularies/validation/required.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var code_1=require_code2();var codegen_1=require_codegen();var util_1=require_util();var error2={message:({params:{missingProperty}})=>(0,codegen_1.str)`must have required property '${missingProperty}'`,params:({params:{missingProperty}})=>(0,codegen_1._)`{missingProperty: ${missingProperty}}`};var def={keyword:"required",type:"object",schemaType:"array",$data:true,error:error2,code(cxt){const{gen,schema,schemaCode,data,$data,it}=cxt;const{opts}=it;if(!$data&&schema.length===0)return;const useLoop=schema.length>=opts.loopRequired;if(it.allErrors)allErrorsMode();else exitOnErrorMode();if(opts.strictRequired){const props=cxt.parentSchema.properties;const{definedProperties}=cxt.it;for(const requiredKey of schema){if((props===null||props===void 0?void 0:props[requiredKey])===void 0&&!definedProperties.has(requiredKey)){const schemaPath=it.schemaEnv.baseId+it.errSchemaPath;const msg=`required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`;(0,util_1.checkStrictMode)(it,msg,it.opts.strictRequired)}}}function allErrorsMode(){if(useLoop||$data){cxt.block$data(codegen_1.nil,loopAllRequired)}else{for(const prop of schema){(0,code_1.checkReportMissingProp)(cxt,prop)}}}function exitOnErrorMode(){const missing=gen.let("missing");if(useLoop||$data){const valid=gen.let("valid",true);cxt.block$data(valid,()=>loopUntilMissing(missing,valid));cxt.ok(valid)}else{gen.if((0,code_1.checkMissingProp)(cxt,schema,missing));(0,code_1.reportMissingProp)(cxt,missing);gen.else()}}function loopAllRequired(){gen.forOf("prop",schemaCode,prop=>{cxt.setParams({missingProperty:prop});gen.if((0,code_1.noPropertyInData)(gen,data,prop,opts.ownProperties),()=>cxt.error())})}function loopUntilMissing(missing,valid){cxt.setParams({missingProperty:missing});gen.forOf(missing,schemaCode,()=>{gen.assign(valid,(0,code_1.propertyInData)(gen,data,missing,opts.ownProperties));gen.if((0,codegen_1.not)(valid),()=>{cxt.error();gen.break()})},codegen_1.nil)}}};exports.default=def}});var require_limitItems=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var error2={message({keyword,schemaCode}){const comp=keyword==="maxItems"?"more":"fewer";return(0,codegen_1.str)`must NOT have ${comp} than ${schemaCode} items`},params:({schemaCode})=>(0,codegen_1._)`{limit: ${schemaCode}}`};var def={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:error2,code(cxt){const{keyword,data,schemaCode}=cxt;const op=keyword==="maxItems"?codegen_1.operators.GT:codegen_1.operators.LT;cxt.fail$data((0,codegen_1._)`${data}.length ${op} ${schemaCode}`)}};exports.default=def}});var require_equal=__commonJS({"node_modules/ajv/dist/runtime/equal.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var equal=require_fast_deep_equal();equal.code='require("ajv/dist/runtime/equal").default';exports.default=equal}});var require_uniqueItems=__commonJS({"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var dataType_1=require_dataType();var codegen_1=require_codegen();var util_1=require_util();var equal_1=require_equal();var error2={message:({params:{i,j}})=>(0,codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,params:({params:{i,j}})=>(0,codegen_1._)`{i: ${i}, j: ${j}}`};var def={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:error2,code(cxt){const{gen,data,$data,schema,parentSchema,schemaCode,it}=cxt;if(!$data&&!schema)return;const valid=gen.let("valid");const itemTypes=parentSchema.items?(0,dataType_1.getSchemaTypes)(parentSchema.items):[];cxt.block$data(valid,validateUniqueItems,(0,codegen_1._)`${schemaCode} === false`);cxt.ok(valid);function validateUniqueItems(){const i=gen.let("i",(0,codegen_1._)`${data}.length`);const j=gen.let("j");cxt.setParams({i,j});gen.assign(valid,true);gen.if((0,codegen_1._)`${i} > 1`,()=>(canOptimize()?loopN:loopN2)(i,j))}function canOptimize(){return itemTypes.length>0&&!itemTypes.some(t=>t==="object"||t==="array")}function loopN(i,j){const item=gen.name("item");const wrongType=(0,dataType_1.checkDataTypes)(itemTypes,item,it.opts.strictNumbers,dataType_1.DataType.Wrong);const indices=gen.const("indices",(0,codegen_1._)`{}`);gen.for((0,codegen_1._)`;${i}--;`,()=>{gen.let(item,(0,codegen_1._)`${data}[${i}]`);gen.if(wrongType,(0,codegen_1._)`continue`);if(itemTypes.length>1)gen.if((0,codegen_1._)`typeof ${item} == "string"`,(0,codegen_1._)`${item} += "_"`);gen.if((0,codegen_1._)`typeof ${indices}[${item}] == "number"`,()=>{gen.assign(j,(0,codegen_1._)`${indices}[${item}]`);cxt.error();gen.assign(valid,false).break()}).code((0,codegen_1._)`${indices}[${item}] = ${i}`)})}function loopN2(i,j){const eql=(0,util_1.useFunc)(gen,equal_1.default);const outer=gen.name("outer");gen.label(outer).for((0,codegen_1._)`;${i}--;`,()=>gen.for((0,codegen_1._)`${j} = ${i}; ${j}--;`,()=>gen.if((0,codegen_1._)`${eql}(${data}[${i}], ${data}[${j}])`,()=>{cxt.error();gen.assign(valid,false).break(outer)})))}}};exports.default=def}});var require_const=__commonJS({"node_modules/ajv/dist/vocabularies/validation/const.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var equal_1=require_equal();var error2={message:"must be equal to constant",params:({schemaCode})=>(0,codegen_1._)`{allowedValue: ${schemaCode}}`};var def={keyword:"const",$data:true,error:error2,code(cxt){const{gen,data,$data,schemaCode,schema}=cxt;if($data||schema&&typeof schema=="object"){cxt.fail$data((0,codegen_1._)`!${(0,util_1.useFunc)(gen,equal_1.default)}(${data}, ${schemaCode})`)}else{cxt.fail((0,codegen_1._)`${schema} !== ${data}`)}}};exports.default=def}});var require_enum=__commonJS({"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var equal_1=require_equal();var error2={message:"must be equal to one of the allowed values",params:({schemaCode})=>(0,codegen_1._)`{allowedValues: ${schemaCode}}`};var def={keyword:"enum",schemaType:"array",$data:true,error:error2,code(cxt){const{gen,data,$data,schema,schemaCode,it}=cxt;if(!$data&&schema.length===0)throw new Error("enum must have non-empty array");const useLoop=schema.length>=it.opts.loopEnum;let eql;const getEql=()=>eql!==null&&eql!==void 0?eql:eql=(0,util_1.useFunc)(gen,equal_1.default);let valid;if(useLoop||$data){valid=gen.let("valid");cxt.block$data(valid,loopEnum)}else{if(!Array.isArray(schema))throw new Error("ajv implementation error");const vSchema=gen.const("vSchema",schemaCode);valid=(0,codegen_1.or)(...schema.map((_x,i)=>equalCode(vSchema,i)))}cxt.pass(valid);function loopEnum(){gen.assign(valid,false);gen.forOf("v",schemaCode,v=>gen.if((0,codegen_1._)`${getEql()}(${data}, ${v})`,()=>gen.assign(valid,true).break()))}function equalCode(vSchema,i){const sch=schema[i];return typeof sch==="object"&&sch!==null?(0,codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])`:(0,codegen_1._)`${data} === ${sch}`}}};exports.default=def}});var require_validation=__commonJS({"node_modules/ajv/dist/vocabularies/validation/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var limitNumber_1=require_limitNumber();var multipleOf_1=require_multipleOf();var limitLength_1=require_limitLength();var pattern_1=require_pattern();var limitProperties_1=require_limitProperties();var required_1=require_required();var limitItems_1=require_limitItems();var uniqueItems_1=require_uniqueItems();var const_1=require_const();var enum_1=require_enum();var validation=[limitNumber_1.default,multipleOf_1.default,limitLength_1.default,pattern_1.default,limitProperties_1.default,required_1.default,limitItems_1.default,uniqueItems_1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},const_1.default,enum_1.default];exports.default=validation}});var require_additionalItems=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateAdditionalItems=void 0;var codegen_1=require_codegen();var util_1=require_util();var error2={message:({params:{len}})=>(0,codegen_1.str)`must NOT have more than ${len} items`,params:({params:{len}})=>(0,codegen_1._)`{limit: ${len}}`};var def={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:error2,code(cxt){const{parentSchema,it}=cxt;const{items}=parentSchema;if(!Array.isArray(items)){(0,util_1.checkStrictMode)(it,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(cxt,items)}};function validateAdditionalItems(cxt,items){const{gen,schema,data,keyword,it}=cxt;it.items=true;const len=gen.const("len",(0,codegen_1._)`${data}.length`);if(schema===false){cxt.setParams({len:items.length});cxt.pass((0,codegen_1._)`${len} <= ${items.length}`)}else if(typeof schema=="object"&&!(0,util_1.alwaysValidSchema)(it,schema)){const valid=gen.var("valid",(0,codegen_1._)`${len} <= ${items.length}`);gen.if((0,codegen_1.not)(valid),()=>validateItems(valid));cxt.ok(valid)}function validateItems(valid){gen.forRange("i",items.length,len,i=>{cxt.subschema({keyword,dataProp:i,dataPropType:util_1.Type.Num},valid);if(!it.allErrors)gen.if((0,codegen_1.not)(valid),()=>gen.break())})}}exports.validateAdditionalItems=validateAdditionalItems;exports.default=def}});var require_items=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateTuple=void 0;var codegen_1=require_codegen();var util_1=require_util();var code_1=require_code2();var def={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(cxt){const{schema,it}=cxt;if(Array.isArray(schema))return validateTuple(cxt,"additionalItems",schema);it.items=true;if((0,util_1.alwaysValidSchema)(it,schema))return;cxt.ok((0,code_1.validateArray)(cxt))}};function validateTuple(cxt,extraItems,schArr=cxt.schema){const{gen,parentSchema,data,keyword,it}=cxt;checkStrictTuple(parentSchema);if(it.opts.unevaluated&&schArr.length&&it.items!==true){it.items=util_1.mergeEvaluated.items(gen,schArr.length,it.items)}const valid=gen.name("valid");const len=gen.const("len",(0,codegen_1._)`${data}.length`);schArr.forEach((sch,i)=>{if((0,util_1.alwaysValidSchema)(it,sch))return;gen.if((0,codegen_1._)`${len} > ${i}`,()=>cxt.subschema({keyword,schemaProp:i,dataProp:i},valid));cxt.ok(valid)});function checkStrictTuple(sch){const{opts,errSchemaPath}=it;const l=schArr.length;const fullTuple=l===sch.minItems&&(l===sch.maxItems||sch[extraItems]===false);if(opts.strictTuples&&!fullTuple){const msg=`"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`;(0,util_1.checkStrictMode)(it,msg,opts.strictTuples)}}}exports.validateTuple=validateTuple;exports.default=def}});var require_prefixItems=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var items_1=require_items();var def={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:cxt=>(0,items_1.validateTuple)(cxt,"items")};exports.default=def}});var require_items2020=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var code_1=require_code2();var additionalItems_1=require_additionalItems();var error2={message:({params:{len}})=>(0,codegen_1.str)`must NOT have more than ${len} items`,params:({params:{len}})=>(0,codegen_1._)`{limit: ${len}}`};var def={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:error2,code(cxt){const{schema,parentSchema,it}=cxt;const{prefixItems}=parentSchema;it.items=true;if((0,util_1.alwaysValidSchema)(it,schema))return;if(prefixItems)(0,additionalItems_1.validateAdditionalItems)(cxt,prefixItems);else cxt.ok((0,code_1.validateArray)(cxt))}};exports.default=def}});var require_contains=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var error2={message:({params:{min,max}})=>max===void 0?(0,codegen_1.str)`must contain at least ${min} valid item(s)`:(0,codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`,params:({params:{min,max}})=>max===void 0?(0,codegen_1._)`{minContains: ${min}}`:(0,codegen_1._)`{minContains: ${min}, maxContains: ${max}}`};var def={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:error2,code(cxt){const{gen,schema,parentSchema,data,it}=cxt;let min;let max;const{minContains,maxContains}=parentSchema;if(it.opts.next){min=minContains===void 0?1:minContains;max=maxContains}else{min=1}const len=gen.const("len",(0,codegen_1._)`${data}.length`);cxt.setParams({min,max});if(max===void 0&&min===0){(0,util_1.checkStrictMode)(it,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(max!==void 0&&min>max){(0,util_1.checkStrictMode)(it,`"minContains" > "maxContains" is always invalid`);cxt.fail();return}if((0,util_1.alwaysValidSchema)(it,schema)){let cond=(0,codegen_1._)`${len} >= ${min}`;if(max!==void 0)cond=(0,codegen_1._)`${cond} && ${len} <= ${max}`;cxt.pass(cond);return}it.items=true;const valid=gen.name("valid");if(max===void 0&&min===1){validateItems(valid,()=>gen.if(valid,()=>gen.break()))}else if(min===0){gen.let(valid,true);if(max!==void 0)gen.if((0,codegen_1._)`${data}.length > 0`,validateItemsWithCount)}else{gen.let(valid,false);validateItemsWithCount()}cxt.result(valid,()=>cxt.reset());function validateItemsWithCount(){const schValid=gen.name("_valid");const count=gen.let("count",0);validateItems(schValid,()=>gen.if(schValid,()=>checkLimits(count)))}function validateItems(_valid,block){gen.forRange("i",0,len,i=>{cxt.subschema({keyword:"contains",dataProp:i,dataPropType:util_1.Type.Num,compositeRule:true},_valid);block()})}function checkLimits(count){gen.code((0,codegen_1._)`${count}++`);if(max===void 0){gen.if((0,codegen_1._)`${count} >= ${min}`,()=>gen.assign(valid,true).break())}else{gen.if((0,codegen_1._)`${count} > ${max}`,()=>gen.assign(valid,false).break());if(min===1)gen.assign(valid,true);else gen.if((0,codegen_1._)`${count} >= ${min}`,()=>gen.assign(valid,true))}}}};exports.default=def}});var require_dependencies=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateSchemaDeps=exports.validatePropertyDeps=exports.error=void 0;var codegen_1=require_codegen();var util_1=require_util();var code_1=require_code2();exports.error={message:({params:{property,depsCount,deps}})=>{const property_ies=depsCount===1?"property":"properties";return(0,codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`},params:({params:{property,depsCount,deps,missingProperty}})=>(0,codegen_1._)`{property: ${property}, missingProperty: ${missingProperty}, depsCount: ${depsCount}, deps: ${deps}}`};var def={keyword:"dependencies",type:"object",schemaType:"object",error:exports.error,code(cxt){const[propDeps,schDeps]=splitDependencies(cxt);validatePropertyDeps(cxt,propDeps);validateSchemaDeps(cxt,schDeps)}};function splitDependencies({schema}){const propertyDeps={};const schemaDeps={};for(const key in schema){if(key==="__proto__")continue;const deps=Array.isArray(schema[key])?propertyDeps:schemaDeps;deps[key]=schema[key]}return[propertyDeps,schemaDeps]}function validatePropertyDeps(cxt,propertyDeps=cxt.schema){const{gen,data,it}=cxt;if(Object.keys(propertyDeps).length===0)return;const missing=gen.let("missing");for(const prop in propertyDeps){const deps=propertyDeps[prop];if(deps.length===0)continue;const hasProperty=(0,code_1.propertyInData)(gen,data,prop,it.opts.ownProperties);cxt.setParams({property:prop,depsCount:deps.length,deps:deps.join(", ")});if(it.allErrors){gen.if(hasProperty,()=>{for(const depProp of deps){(0,code_1.checkReportMissingProp)(cxt,depProp)}})}else{gen.if((0,codegen_1._)`${hasProperty} && (${(0,code_1.checkMissingProp)(cxt,deps,missing)})`);(0,code_1.reportMissingProp)(cxt,missing);gen.else()}}}exports.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(cxt,schemaDeps=cxt.schema){const{gen,data,keyword,it}=cxt;const valid=gen.name("valid");for(const prop in schemaDeps){if((0,util_1.alwaysValidSchema)(it,schemaDeps[prop]))continue;gen.if((0,code_1.propertyInData)(gen,data,prop,it.opts.ownProperties),()=>{const schCxt=cxt.subschema({keyword,schemaProp:prop},valid);cxt.mergeValidEvaluated(schCxt,valid)},()=>gen.var(valid,true));cxt.ok(valid)}}exports.validateSchemaDeps=validateSchemaDeps;exports.default=def}});var require_propertyNames=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var error2={message:"property name must be valid",params:({params})=>(0,codegen_1._)`{propertyName: ${params.propertyName}}`};var def={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:error2,code(cxt){const{gen,schema,data,it}=cxt;if((0,util_1.alwaysValidSchema)(it,schema))return;const valid=gen.name("valid");gen.forIn("key",data,key=>{cxt.setParams({propertyName:key});cxt.subschema({keyword:"propertyNames",data:key,dataTypes:["string"],propertyName:key,compositeRule:true},valid);gen.if((0,codegen_1.not)(valid),()=>{cxt.error(true);if(!it.allErrors)gen.break()})});cxt.ok(valid)}};exports.default=def}});var require_additionalProperties=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var code_1=require_code2();var codegen_1=require_codegen();var names_1=require_names();var util_1=require_util();var error2={message:"must NOT have additional properties",params:({params})=>(0,codegen_1._)`{additionalProperty: ${params.additionalProperty}}`};var def={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:error2,code(cxt){const{gen,schema,parentSchema,data,errsCount,it}=cxt;if(!errsCount)throw new Error("ajv implementation error");const{allErrors,opts}=it;it.props=true;if(opts.removeAdditional!=="all"&&(0,util_1.alwaysValidSchema)(it,schema))return;const props=(0,code_1.allSchemaProperties)(parentSchema.properties);const patProps=(0,code_1.allSchemaProperties)(parentSchema.patternProperties);checkAdditionalProperties();cxt.ok((0,codegen_1._)`${errsCount} === ${names_1.default.errors}`);function checkAdditionalProperties(){gen.forIn("key",data,key=>{if(!props.length&&!patProps.length)additionalPropertyCode(key);else gen.if(isAdditional(key),()=>additionalPropertyCode(key))})}function isAdditional(key){let definedProp;if(props.length>8){const propsSchema=(0,util_1.schemaRefOrVal)(it,parentSchema.properties,"properties");definedProp=(0,code_1.isOwnProperty)(gen,propsSchema,key)}else if(props.length){definedProp=(0,codegen_1.or)(...props.map(p=>(0,codegen_1._)`${key} === ${p}`))}else{definedProp=codegen_1.nil}if(patProps.length){definedProp=(0,codegen_1.or)(definedProp,...patProps.map(p=>(0,codegen_1._)`${(0,code_1.usePattern)(cxt,p)}.test(${key})`))}return(0,codegen_1.not)(definedProp)}function deleteAdditional(key){gen.code((0,codegen_1._)`delete ${data}[${key}]`)}function additionalPropertyCode(key){if(opts.removeAdditional==="all"||opts.removeAdditional&&schema===false){deleteAdditional(key);return}if(schema===false){cxt.setParams({additionalProperty:key});cxt.error();if(!allErrors)gen.break();return}if(typeof schema=="object"&&!(0,util_1.alwaysValidSchema)(it,schema)){const valid=gen.name("valid");if(opts.removeAdditional==="failing"){applyAdditionalSchema(key,valid,false);gen.if((0,codegen_1.not)(valid),()=>{cxt.reset();deleteAdditional(key)})}else{applyAdditionalSchema(key,valid);if(!allErrors)gen.if((0,codegen_1.not)(valid),()=>gen.break())}}}function applyAdditionalSchema(key,valid,errors){const subschema={keyword:"additionalProperties",dataProp:key,dataPropType:util_1.Type.Str};if(errors===false){Object.assign(subschema,{compositeRule:true,createErrors:false,allErrors:false})}cxt.subschema(subschema,valid)}}};exports.default=def}});var require_properties=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var validate_1=require_validate();var code_1=require_code2();var util_1=require_util();var additionalProperties_1=require_additionalProperties();var def={keyword:"properties",type:"object",schemaType:"object",code(cxt){const{gen,schema,parentSchema,data,it}=cxt;if(it.opts.removeAdditional==="all"&&parentSchema.additionalProperties===void 0){additionalProperties_1.default.code(new validate_1.KeywordCxt(it,additionalProperties_1.default,"additionalProperties"))}const allProps=(0,code_1.allSchemaProperties)(schema);for(const prop of allProps){it.definedProperties.add(prop)}if(it.opts.unevaluated&&allProps.length&&it.props!==true){it.props=util_1.mergeEvaluated.props(gen,(0,util_1.toHash)(allProps),it.props)}const properties=allProps.filter(p=>!(0,util_1.alwaysValidSchema)(it,schema[p]));if(properties.length===0)return;const valid=gen.name("valid");for(const prop of properties){if(hasDefault(prop)){applyPropertySchema(prop)}else{gen.if((0,code_1.propertyInData)(gen,data,prop,it.opts.ownProperties));applyPropertySchema(prop);if(!it.allErrors)gen.else().var(valid,true);gen.endIf()}cxt.it.definedProperties.add(prop);cxt.ok(valid)}function hasDefault(prop){return it.opts.useDefaults&&!it.compositeRule&&schema[prop].default!==void 0}function applyPropertySchema(prop){cxt.subschema({keyword:"properties",schemaProp:prop,dataProp:prop},valid)}}};exports.default=def}});var require_patternProperties=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var code_1=require_code2();var codegen_1=require_codegen();var util_1=require_util();var util_2=require_util();var def={keyword:"patternProperties",type:"object",schemaType:"object",code(cxt){const{gen,schema,data,parentSchema,it}=cxt;const{opts}=it;const patterns=(0,code_1.allSchemaProperties)(schema);const alwaysValidPatterns=patterns.filter(p=>(0,util_1.alwaysValidSchema)(it,schema[p]));if(patterns.length===0||alwaysValidPatterns.length===patterns.length&&(!it.opts.unevaluated||it.props===true)){return}const checkProperties=opts.strictSchema&&!opts.allowMatchingProperties&&parentSchema.properties;const valid=gen.name("valid");if(it.props!==true&&!(it.props instanceof codegen_1.Name)){it.props=(0,util_2.evaluatedPropsToName)(gen,it.props)}const{props}=it;validatePatternProperties();function validatePatternProperties(){for(const pat of patterns){if(checkProperties)checkMatchingProperties(pat);if(it.allErrors){validateProperties(pat)}else{gen.var(valid,true);validateProperties(pat);gen.if(valid)}}}function checkMatchingProperties(pat){for(const prop in checkProperties){if(new RegExp(pat).test(prop)){(0,util_1.checkStrictMode)(it,`property ${prop} matches pattern ${pat} (use allowMatchingProperties)`)}}}function validateProperties(pat){gen.forIn("key",data,key=>{gen.if((0,codegen_1._)`${(0,code_1.usePattern)(cxt,pat)}.test(${key})`,()=>{const alwaysValid=alwaysValidPatterns.includes(pat);if(!alwaysValid){cxt.subschema({keyword:"patternProperties",schemaProp:pat,dataProp:key,dataPropType:util_2.Type.Str},valid)}if(it.opts.unevaluated&&props!==true){gen.assign((0,codegen_1._)`${props}[${key}]`,true)}else if(!alwaysValid&&!it.allErrors){gen.if((0,codegen_1.not)(valid),()=>gen.break())}})})}}};exports.default=def}});var require_not=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/not.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var util_1=require_util();var def={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(cxt){const{gen,schema,it}=cxt;if((0,util_1.alwaysValidSchema)(it,schema)){cxt.fail();return}const valid=gen.name("valid");cxt.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},valid);cxt.failResult(valid,()=>cxt.reset(),()=>cxt.error())},error:{message:"must NOT be valid"}};exports.default=def}});var require_anyOf=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var code_1=require_code2();var def={keyword:"anyOf",schemaType:"array",trackErrors:true,code:code_1.validateUnion,error:{message:"must match a schema in anyOf"}};exports.default=def}});var require_oneOf=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var error2={message:"must match exactly one schema in oneOf",params:({params})=>(0,codegen_1._)`{passingSchemas: ${params.passing}}`};var def={keyword:"oneOf",schemaType:"array",trackErrors:true,error:error2,code(cxt){const{gen,schema,parentSchema,it}=cxt;if(!Array.isArray(schema))throw new Error("ajv implementation error");if(it.opts.discriminator&&parentSchema.discriminator)return;const schArr=schema;const valid=gen.let("valid",false);const passing=gen.let("passing",null);const schValid=gen.name("_valid");cxt.setParams({passing});gen.block(validateOneOf);cxt.result(valid,()=>cxt.reset(),()=>cxt.error(true));function validateOneOf(){schArr.forEach((sch,i)=>{let schCxt;if((0,util_1.alwaysValidSchema)(it,sch)){gen.var(schValid,true)}else{schCxt=cxt.subschema({keyword:"oneOf",schemaProp:i,compositeRule:true},schValid)}if(i>0){gen.if((0,codegen_1._)`${schValid} && ${valid}`).assign(valid,false).assign(passing,(0,codegen_1._)`[${passing}, ${i}]`).else()}gen.if(schValid,()=>{gen.assign(valid,true);gen.assign(passing,i);if(schCxt)cxt.mergeEvaluated(schCxt,codegen_1.Name)})})}}};exports.default=def}});var require_allOf=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var util_1=require_util();var def={keyword:"allOf",schemaType:"array",code(cxt){const{gen,schema,it}=cxt;if(!Array.isArray(schema))throw new Error("ajv implementation error");const valid=gen.name("valid");schema.forEach((sch,i)=>{if((0,util_1.alwaysValidSchema)(it,sch))return;const schCxt=cxt.subschema({keyword:"allOf",schemaProp:i},valid);cxt.ok(valid);cxt.mergeEvaluated(schCxt)})}};exports.default=def}});var require_if=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/if.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var util_1=require_util();var error2={message:({params})=>(0,codegen_1.str)`must match "${params.ifClause}" schema`,params:({params})=>(0,codegen_1._)`{failingKeyword: ${params.ifClause}}`};var def={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:error2,code(cxt){const{gen,parentSchema,it}=cxt;if(parentSchema.then===void 0&&parentSchema.else===void 0){(0,util_1.checkStrictMode)(it,'"if" without "then" and "else" is ignored')}const hasThen=hasSchema(it,"then");const hasElse=hasSchema(it,"else");if(!hasThen&&!hasElse)return;const valid=gen.let("valid",true);const schValid=gen.name("_valid");validateIf();cxt.reset();if(hasThen&&hasElse){const ifClause=gen.let("ifClause");cxt.setParams({ifClause});gen.if(schValid,validateClause("then",ifClause),validateClause("else",ifClause))}else if(hasThen){gen.if(schValid,validateClause("then"))}else{gen.if((0,codegen_1.not)(schValid),validateClause("else"))}cxt.pass(valid,()=>cxt.error(true));function validateIf(){const schCxt=cxt.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},schValid);cxt.mergeEvaluated(schCxt)}function validateClause(keyword,ifClause){return()=>{const schCxt=cxt.subschema({keyword},schValid);gen.assign(valid,schValid);cxt.mergeValidEvaluated(schCxt,valid);if(ifClause)gen.assign(ifClause,(0,codegen_1._)`${keyword}`);else cxt.setParams({ifClause:keyword})}}}};function hasSchema(it,keyword){const schema=it.schema[keyword];return schema!==void 0&&!(0,util_1.alwaysValidSchema)(it,schema)}exports.default=def}});var require_thenElse=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var util_1=require_util();var def={keyword:["then","else"],schemaType:["object","boolean"],code({keyword,parentSchema,it}){if(parentSchema.if===void 0)(0,util_1.checkStrictMode)(it,`"${keyword}" without "if" is ignored`)}};exports.default=def}});var require_applicator=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var additionalItems_1=require_additionalItems();var prefixItems_1=require_prefixItems();var items_1=require_items();var items2020_1=require_items2020();var contains_1=require_contains();var dependencies_1=require_dependencies();var propertyNames_1=require_propertyNames();var additionalProperties_1=require_additionalProperties();var properties_1=require_properties();var patternProperties_1=require_patternProperties();var not_1=require_not();var anyOf_1=require_anyOf();var oneOf_1=require_oneOf();var allOf_1=require_allOf();var if_1=require_if();var thenElse_1=require_thenElse();function getApplicator(draft2020=false){const applicator=[not_1.default,anyOf_1.default,oneOf_1.default,allOf_1.default,if_1.default,thenElse_1.default,propertyNames_1.default,additionalProperties_1.default,dependencies_1.default,properties_1.default,patternProperties_1.default];if(draft2020)applicator.push(prefixItems_1.default,items2020_1.default);else applicator.push(additionalItems_1.default,items_1.default);applicator.push(contains_1.default);return applicator}exports.default=getApplicator}});var require_format=__commonJS({"node_modules/ajv/dist/vocabularies/format/format.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var error2={message:({schemaCode})=>(0,codegen_1.str)`must match format "${schemaCode}"`,params:({schemaCode})=>(0,codegen_1._)`{format: ${schemaCode}}`};var def={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:error2,code(cxt,ruleType){const{gen,data,$data,schema,schemaCode,it}=cxt;const{opts,errSchemaPath,schemaEnv,self}=it;if(!opts.validateFormats)return;if($data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const fmts=gen.scopeValue("formats",{ref:self.formats,code:opts.code.formats});const fDef=gen.const("fDef",(0,codegen_1._)`${fmts}[${schemaCode}]`);const fType=gen.let("fType");const format=gen.let("format");gen.if((0,codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`,()=>gen.assign(fType,(0,codegen_1._)`${fDef}.type || "string"`).assign(format,(0,codegen_1._)`${fDef}.validate`),()=>gen.assign(fType,(0,codegen_1._)`"string"`).assign(format,fDef));cxt.fail$data((0,codegen_1.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(opts.strictSchema===false)return codegen_1.nil;return(0,codegen_1._)`${schemaCode} && !${format}`}function invalidFmt(){const callFormat=schemaEnv.$async?(0,codegen_1._)`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`:(0,codegen_1._)`${format}(${data})`;const validData=(0,codegen_1._)`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`;return(0,codegen_1._)`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`}}function validateFormat(){const formatDef=self.formats[schema];if(!formatDef){unknownFormat();return}if(formatDef===true)return;const[fmtType,format,fmtRef]=getFormat(formatDef);if(fmtType===ruleType)cxt.pass(validCondition());function unknownFormat(){if(opts.strictSchema===false){self.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`}}function getFormat(fmtDef){const code=fmtDef instanceof RegExp?(0,codegen_1.regexpCode)(fmtDef):opts.code.formats?(0,codegen_1._)`${opts.code.formats}${(0,codegen_1.getProperty)(schema)}`:void 0;const fmt=gen.scopeValue("formats",{key:schema,ref:fmtDef,code});if(typeof fmtDef=="object"&&!(fmtDef instanceof RegExp)){return[fmtDef.type||"string",fmtDef.validate,(0,codegen_1._)`${fmt}.validate`]}return["string",fmtDef,fmt]}function validCondition(){if(typeof formatDef=="object"&&!(formatDef instanceof RegExp)&&formatDef.async){if(!schemaEnv.$async)throw new Error("async format in sync schema");return(0,codegen_1._)`await ${fmtRef}(${data})`}return typeof format=="function"?(0,codegen_1._)`${fmtRef}(${data})`:(0,codegen_1._)`${fmtRef}.test(${data})`}}}};exports.default=def}});var require_format2=__commonJS({"node_modules/ajv/dist/vocabularies/format/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var format_1=require_format();var format=[format_1.default];exports.default=format}});var require_metadata=__commonJS({"node_modules/ajv/dist/vocabularies/metadata.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.contentVocabulary=exports.metadataVocabulary=void 0;exports.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];exports.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}});var require_draft7=__commonJS({"node_modules/ajv/dist/vocabularies/draft7.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var core_1=require_core2();var validation_1=require_validation();var applicator_1=require_applicator();var format_1=require_format2();var metadata_1=require_metadata();var draft7Vocabularies=[core_1.default,validation_1.default,(0,applicator_1.default)(),format_1.default,metadata_1.metadataVocabulary,metadata_1.contentVocabulary];exports.default=draft7Vocabularies}});var require_types=__commonJS({"node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.DiscrError=void 0;var DiscrError;(function(DiscrError2){DiscrError2["Tag"]="tag";DiscrError2["Mapping"]="mapping"})(DiscrError||(exports.DiscrError=DiscrError={}))}});var require_discriminator=__commonJS({"node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var codegen_1=require_codegen();var types_1=require_types();var compile_1=require_compile();var ref_error_1=require_ref_error();var util_1=require_util();var error2={message:({params:{discrError,tagName}})=>discrError===types_1.DiscrError.Tag?`tag "${tagName}" must be string`:`value of tag "${tagName}" must be in oneOf`,params:({params:{discrError,tag,tagName}})=>(0,codegen_1._)`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`};var def={keyword:"discriminator",type:"object",schemaType:"object",error:error2,code(cxt){const{gen,data,schema,parentSchema,it}=cxt;const{oneOf}=parentSchema;if(!it.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const tagName=schema.propertyName;if(typeof tagName!="string")throw new Error("discriminator: requires propertyName");if(schema.mapping)throw new Error("discriminator: mapping is not supported");if(!oneOf)throw new Error("discriminator: requires oneOf keyword");const valid=gen.let("valid",false);const tag=gen.const("tag",(0,codegen_1._)`${data}${(0,codegen_1.getProperty)(tagName)}`);gen.if((0,codegen_1._)`typeof ${tag} == "string"`,()=>validateMapping(),()=>cxt.error(false,{discrError:types_1.DiscrError.Tag,tag,tagName}));cxt.ok(valid);function validateMapping(){const mapping=getMapping();gen.if(false);for(const tagValue in mapping){gen.elseIf((0,codegen_1._)`${tag} === ${tagValue}`);gen.assign(valid,applyTagSchema(mapping[tagValue]))}gen.else();cxt.error(false,{discrError:types_1.DiscrError.Mapping,tag,tagName});gen.endIf()}function applyTagSchema(schemaProp){const _valid=gen.name("valid");const schCxt=cxt.subschema({keyword:"oneOf",schemaProp},_valid);cxt.mergeEvaluated(schCxt,codegen_1.Name);return _valid}function getMapping(){var _a3;const oneOfMapping={};const topRequired=hasRequired(parentSchema);let tagRequired=true;for(let i=0;ithis.addVocabulary(v));if(this.opts.discriminator)this.addKeyword(discriminator_1.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const metaSchema=this.opts.$data?this.$dataMetaSchema(draft7MetaSchema,META_SUPPORT_DATA):draft7MetaSchema;this.addMetaSchema(metaSchema,META_SCHEMA_ID,false);this.refs["http://json-schema.org/schema"]=META_SCHEMA_ID}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(META_SCHEMA_ID)?META_SCHEMA_ID:void 0)}};exports.Ajv=Ajv2;module.exports=exports=Ajv2;module.exports.Ajv=Ajv2;Object.defineProperty(exports,"__esModule",{value:true});exports.default=Ajv2;var validate_1=require_validate();Object.defineProperty(exports,"KeywordCxt",{enumerable:true,get:function(){return validate_1.KeywordCxt}});var codegen_1=require_codegen();Object.defineProperty(exports,"_",{enumerable:true,get:function(){return codegen_1._}});Object.defineProperty(exports,"str",{enumerable:true,get:function(){return codegen_1.str}});Object.defineProperty(exports,"stringify",{enumerable:true,get:function(){return codegen_1.stringify}});Object.defineProperty(exports,"nil",{enumerable:true,get:function(){return codegen_1.nil}});Object.defineProperty(exports,"Name",{enumerable:true,get:function(){return codegen_1.Name}});Object.defineProperty(exports,"CodeGen",{enumerable:true,get:function(){return codegen_1.CodeGen}});var validation_error_1=require_validation_error();Object.defineProperty(exports,"ValidationError",{enumerable:true,get:function(){return validation_error_1.default}});var ref_error_1=require_ref_error();Object.defineProperty(exports,"MissingRefError",{enumerable:true,get:function(){return ref_error_1.default}})}});var require_formats=__commonJS({"node_modules/ajv-formats/dist/formats.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.formatNames=exports.fastFormats=exports.fullFormats=void 0;function fmtDef(validate,compare){return{validate,compare}}exports.fullFormats={date:fmtDef(date4,compareDate),time:fmtDef(getTime(true),compareTime),"date-time":fmtDef(getDateTime(true),compareDateTime),"iso-time":fmtDef(getTime(),compareIsoTime),"iso-date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id:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};exports.fastFormats={...exports.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareTime),"date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareDateTime),"iso-time":fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoTime),"iso-date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};exports.formatNames=Object.keys(exports.fullFormats);function isLeapYear(year){return year%4===0&&(year%100!==0||year%400===0)}var DATE=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var DAYS=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date4(str){const matches=DATE.exec(str);if(!matches)return false;const year=+matches[1];const month=+matches[2];const day=+matches[3];return month>=1&&month<=12&&day>=1&&day<=(month===2&&isLeapYear(year)?29:DAYS[month])}function compareDate(d1,d2){if(!(d1&&d2))return void 0;if(d1>d2)return 1;if(d123||tzM>59||strictTimeZone&&!tz)return false;if(hr<=23&&min<=59&&sec<60)return true;const utcMin=min-tzM*tzSign;const utcHr=hr-tzH*tzSign-(utcMin<0?1:0);return(utcHr===23||utcHr===-1)&&(utcMin===59||utcMin===-1)&&sec<61}}function compareTime(s1,s2){if(!(s1&&s2))return void 0;const t1=new Date("2020-01-01T"+s1).valueOf();const t2=new Date("2020-01-01T"+s2).valueOf();if(!(t1&&t2))return void 0;return t1-t2}function compareIsoTime(t1,t2){if(!(t1&&t2))return void 0;const a1=TIME.exec(t1);const a2=TIME.exec(t2);if(!(a1&&a2))return void 0;t1=a1[1]+a1[2]+a1[3];t2=a2[1]+a2[2]+a2[3];if(t1>t2)return 1;if(t1=MIN_INT32}function validateInt64(value){return Number.isInteger(value)}function validateNumber(){return true}var Z_ANCHOR=/[^\\]\\Z/;function regex(str){if(Z_ANCHOR.test(str))return false;try{new RegExp(str);return true}catch(e){return false}}}});var require_limit=__commonJS({"node_modules/ajv-formats/dist/limit.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.formatLimitDefinition=void 0;var ajv_1=require_ajv();var codegen_1=require_codegen();var ops=codegen_1.operators;var KWDs={formatMaximum:{okStr:"<=",ok:ops.LTE,fail:ops.GT},formatMinimum:{okStr:">=",ok:ops.GTE,fail:ops.LT},formatExclusiveMaximum:{okStr:"<",ok:ops.LT,fail:ops.GTE},formatExclusiveMinimum:{okStr:">",ok:ops.GT,fail:ops.LTE}};var error2={message:({keyword,schemaCode})=>(0,codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,params:({keyword,schemaCode})=>(0,codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`};exports.formatLimitDefinition={keyword:Object.keys(KWDs),type:"string",schemaType:"string",$data:true,error:error2,code(cxt){const{gen,data,schemaCode,keyword,it}=cxt;const{opts,self}=it;if(!opts.validateFormats)return;const fCxt=new ajv_1.KeywordCxt(it,self.RULES.all.format.definition,"format");if(fCxt.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const fmts=gen.scopeValue("formats",{ref:self.formats,code:opts.code.formats});const fmt=gen.const("fmt",(0,codegen_1._)`${fmts}[${fCxt.schemaCode}]`);cxt.fail$data((0,codegen_1.or)((0,codegen_1._)`typeof ${fmt} != "object"`,(0,codegen_1._)`${fmt} instanceof RegExp`,(0,codegen_1._)`typeof ${fmt}.compare != "function"`,compareCode(fmt)))}function validateFormat(){const format=fCxt.schema;const fmtDef=self.formats[format];if(!fmtDef||fmtDef===true)return;if(typeof fmtDef!="object"||fmtDef instanceof RegExp||typeof fmtDef.compare!="function"){throw new Error(`"${keyword}": format "${format}" does not define "compare" function`)}const fmt=gen.scopeValue("formats",{key:format,ref:fmtDef,code:opts.code.formats?(0,codegen_1._)`${opts.code.formats}${(0,codegen_1.getProperty)(format)}`:void 0});cxt.fail$data(compareCode(fmt))}function compareCode(fmt){return(0,codegen_1._)`${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`}},dependencies:["format"]};var formatLimitPlugin=ajv=>{ajv.addKeyword(exports.formatLimitDefinition);return ajv};exports.default=formatLimitPlugin}});var require_dist=__commonJS({"node_modules/ajv-formats/dist/index.js"(exports,module){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var formats_1=require_formats();var limit_1=require_limit();var codegen_1=require_codegen();var fullName=new codegen_1.Name("fullFormats");var fastName=new codegen_1.Name("fastFormats");var formatsPlugin=(ajv,opts={keywords:true})=>{if(Array.isArray(opts)){addFormats(ajv,opts,formats_1.fullFormats,fullName);return ajv}const[formats,exportName]=opts.mode==="fast"?[formats_1.fastFormats,fastName]:[formats_1.fullFormats,fullName];const list=opts.formats||formats_1.formatNames;addFormats(ajv,list,formats,exportName);if(opts.keywords)(0,limit_1.default)(ajv);return ajv};formatsPlugin.get=(name,mode="full")=>{const formats=mode==="fast"?formats_1.fastFormats:formats_1.fullFormats;const f=formats[name];if(!f)throw new Error(`Unknown format "${name}"`);return f};function addFormats(ajv,list,fs,exportName){var _a3;var _b;(_a3=(_b=ajv.opts.code).formats)!==null&&_a3!==void 0?_a3:_b.formats=(0,codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;for(const f of list)ajv.addFormat(f,fs[f])}module.exports=exports=formatsPlugin;Object.defineProperty(exports,"__esModule",{value:true});exports.default=formatsPlugin}});var require_content_type=__commonJS({"node_modules/content-type/index.js"(exports){"use strict";var PARAM_REGEXP=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;var TEXT_REGEXP=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;var TOKEN_REGEXP=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;var QESC_REGEXP=/\\([\u000b\u0020-\u00ff])/g;var QUOTE_REGEXP=/([\\"])/g;var TYPE_REGEXP=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;exports.format=format;exports.parse=parse3;function format(obj){if(!obj||typeof obj!=="object"){throw new TypeError("argument obj is required")}var parameters=obj.parameters;var type=obj.type;if(!type||!TYPE_REGEXP.test(type)){throw new TypeError("invalid type")}var string4=type;if(parameters&&typeof parameters==="object"){var param;var params=Object.keys(parameters).sort();for(var i=0;i0&&!TEXT_REGEXP.test(str)){throw new TypeError("invalid parameter value")}return'"'+str.replace(QUOTE_REGEXP,"\\$1")+'"'}function ContentType(type){this.parameters=Object.create(null);this.type=type}}});import{realpathSync}from"node:fs";import{fileURLToPath}from"node:url";var _a;var NEVER=Object.freeze({status:"aborted"});function $constructor(name,initializer3,params){function init(inst,def){if(!inst._zod){Object.defineProperty(inst,"_zod",{value:{def,constr:_,traits:new Set},enumerable:false})}if(inst._zod.traits.has(name)){return}inst._zod.traits.add(name);initializer3(inst,def);const proto=_.prototype;const keys=Object.keys(proto);for(let i=0;i{if(params?.Parent&&inst instanceof params.Parent)return true;return inst?._zod?.traits?.has(name)}});Object.defineProperty(_,"name",{value:name});return _}var $ZodAsyncError=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}};var $ZodEncodeError=class extends Error{constructor(name){super(`Encountered unidirectional transform during encode: ${name}`);this.name="ZodEncodeError"}};(_a=globalThis).__zod_globalConfig??(_a.__zod_globalConfig={});var globalConfig=globalThis.__zod_globalConfig;function config(newConfig){if(newConfig)Object.assign(globalConfig,newConfig);return globalConfig}var util_exports={};__export(util_exports,{BIGINT_FORMAT_RANGES:()=>BIGINT_FORMAT_RANGES,Class:()=>Class,NUMBER_FORMAT_RANGES:()=>NUMBER_FORMAT_RANGES,aborted:()=>aborted,allowsEval:()=>allowsEval,assert:()=>assert,assertEqual:()=>assertEqual,assertIs:()=>assertIs,assertNever:()=>assertNever,assertNotEqual:()=>assertNotEqual,assignProp:()=>assignProp,base64ToUint8Array:()=>base64ToUint8Array,base64urlToUint8Array:()=>base64urlToUint8Array,cached:()=>cached,captureStackTrace:()=>captureStackTrace,cleanEnum:()=>cleanEnum,cleanRegex:()=>cleanRegex,clone:()=>clone,cloneDef:()=>cloneDef,createTransparentProxy:()=>createTransparentProxy,defineLazy:()=>defineLazy,esc:()=>esc,escapeRegex:()=>escapeRegex,explicitlyAborted:()=>explicitlyAborted,extend:()=>extend,finalizeIssue:()=>finalizeIssue,floatSafeRemainder:()=>floatSafeRemainder,getElementAtPath:()=>getElementAtPath,getEnumValues:()=>getEnumValues,getLengthableOrigin:()=>getLengthableOrigin,getParsedType:()=>getParsedType,getSizableOrigin:()=>getSizableOrigin,hexToUint8Array:()=>hexToUint8Array,isObject:()=>isObject,isPlainObject:()=>isPlainObject,issue:()=>issue,joinValues:()=>joinValues,jsonStringifyReplacer:()=>jsonStringifyReplacer,merge:()=>merge,mergeDefs:()=>mergeDefs,normalizeParams:()=>normalizeParams,nullish:()=>nullish,numKeys:()=>numKeys,objectClone:()=>objectClone,omit:()=>omit,optionalKeys:()=>optionalKeys,parsedType:()=>parsedType,partial:()=>partial,pick:()=>pick,prefixIssues:()=>prefixIssues,primitiveTypes:()=>primitiveTypes,promiseAllObject:()=>promiseAllObject,propertyKeyTypes:()=>propertyKeyTypes,randomString:()=>randomString,required:()=>required,safeExtend:()=>safeExtend,shallowClone:()=>shallowClone,slugify:()=>slugify,stringifyPrimitive:()=>stringifyPrimitive,uint8ArrayToBase64:()=>uint8ArrayToBase64,uint8ArrayToBase64url:()=>uint8ArrayToBase64url,uint8ArrayToHex:()=>uint8ArrayToHex,unwrapMessage:()=>unwrapMessage});function assertEqual(val){return val}function assertNotEqual(val){return val}function assertIs(_arg){}function assertNever(_x){throw new Error("Unexpected value in exhaustive check")}function assert(_){}function getEnumValues(entries){const numericValues=Object.values(entries).filter(v=>typeof v==="number");const values=Object.entries(entries).filter(([k,_])=>numericValues.indexOf(+k)===-1).map(([_,v])=>v);return values}function joinValues(array2,separator="|"){return array2.map(val=>stringifyPrimitive(val)).join(separator)}function jsonStringifyReplacer(_,value){if(typeof value==="bigint")return value.toString();return value}function cached(getter){const set=false;return{get value(){if(!set){const value=getter();Object.defineProperty(this,"value",{value});return value}throw new Error("cached value already set")}}}function nullish(input){return input===null||input===void 0}function cleanRegex(source){const start=source.startsWith("^")?1:0;const end=source.endsWith("$")?source.length-1:source.length;return source.slice(start,end)}function floatSafeRemainder(val,step){const ratio=val/step;const roundedRatio=Math.round(ratio);const tolerance=Number.EPSILON*Math.max(Math.abs(ratio),1);if(Math.abs(ratio-roundedRatio)acc?.[key],obj)}function promiseAllObject(promisesObj){const keys=Object.keys(promisesObj);const promises=keys.map(key=>promisesObj[key]);return Promise.all(promises).then(results=>{const resolvedObj={};for(let i=0;i{};function isObject(data){return typeof data==="object"&&data!==null&&!Array.isArray(data)}var allowsEval=cached(()=>{if(globalConfig.jitless){return false}if(typeof navigator!=="undefined"&&navigator?.userAgent?.includes("Cloudflare")){return false}try{const F=Function;new F("");return true}catch(_){return false}});function isPlainObject(o){if(isObject(o)===false)return false;const ctor=o.constructor;if(ctor===void 0)return true;if(typeof ctor!=="function")return true;const prot=ctor.prototype;if(isObject(prot)===false)return false;if(Object.prototype.hasOwnProperty.call(prot,"isPrototypeOf")===false){return false}return true}function shallowClone(o){if(isPlainObject(o))return{...o};if(Array.isArray(o))return[...o];if(o instanceof Map)return new Map(o);if(o instanceof Set)return new Set(o);return o}function numKeys(data){let keyCount=0;for(const key in data){if(Object.prototype.hasOwnProperty.call(data,key)){keyCount++}}return keyCount}var getParsedType=data=>{const t=typeof data;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(data)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(data)){return"array"}if(data===null){return"null"}if(data.then&&typeof data.then==="function"&&data.catch&&typeof data.catch==="function"){return"promise"}if(typeof Map!=="undefined"&&data instanceof Map){return"map"}if(typeof Set!=="undefined"&&data instanceof Set){return"set"}if(typeof Date!=="undefined"&&data instanceof Date){return"date"}if(typeof File!=="undefined"&&data instanceof File){return"file"}return"object";default:throw new Error(`Unknown data type: ${t}`)}};var propertyKeyTypes=new Set(["string","number","symbol"]);var primitiveTypes=new Set(["string","number","bigint","boolean","symbol","undefined"]);function escapeRegex(str){return str.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function clone(inst,def,params){const cl=new inst._zod.constr(def??inst._zod.def);if(!def||params?.parent)cl._zod.parent=inst;return cl}function normalizeParams(_params){const params=_params;if(!params)return{};if(typeof params==="string")return{error:()=>params};if(params?.message!==void 0){if(params?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");params.error=params.message}delete params.message;if(typeof params.error==="string")return{...params,error:()=>params.error};return params}function createTransparentProxy(getter){let target;return new Proxy({},{get(_,prop,receiver){target??(target=getter());return Reflect.get(target,prop,receiver)},set(_,prop,value,receiver){target??(target=getter());return Reflect.set(target,prop,value,receiver)},has(_,prop){target??(target=getter());return Reflect.has(target,prop)},deleteProperty(_,prop){target??(target=getter());return Reflect.deleteProperty(target,prop)},ownKeys(_){target??(target=getter());return Reflect.ownKeys(target)},getOwnPropertyDescriptor(_,prop){target??(target=getter());return Reflect.getOwnPropertyDescriptor(target,prop)},defineProperty(_,prop,descriptor){target??(target=getter());return Reflect.defineProperty(target,prop,descriptor)}})}function stringifyPrimitive(value){if(typeof value==="bigint")return value.toString()+"n";if(typeof value==="string")return`"${value}"`;return`${value}`}function optionalKeys(shape){return Object.keys(shape).filter(k=>{return shape[k]._zod.optin==="optional"&&shape[k]._zod.optout==="optional"})}var NUMBER_FORMAT_RANGES={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};var BIGINT_FORMAT_RANGES={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function pick(schema,mask){const currDef=schema._zod.def;const checks=currDef.checks;const hasChecks=checks&&checks.length>0;if(hasChecks){throw new Error(".pick() cannot be used on object schemas containing refinements")}const def=mergeDefs(schema._zod.def,{get shape(){const newShape={};for(const key in mask){if(!(key in currDef.shape)){throw new Error(`Unrecognized key: "${key}"`)}if(!mask[key])continue;newShape[key]=currDef.shape[key]}assignProp(this,"shape",newShape);return newShape},checks:[]});return clone(schema,def)}function omit(schema,mask){const currDef=schema._zod.def;const checks=currDef.checks;const hasChecks=checks&&checks.length>0;if(hasChecks){throw new Error(".omit() cannot be used on object schemas containing refinements")}const def=mergeDefs(schema._zod.def,{get shape(){const newShape={...schema._zod.def.shape};for(const key in mask){if(!(key in currDef.shape)){throw new Error(`Unrecognized key: "${key}"`)}if(!mask[key])continue;delete newShape[key]}assignProp(this,"shape",newShape);return newShape},checks:[]});return clone(schema,def)}function extend(schema,shape){if(!isPlainObject(shape)){throw new Error("Invalid input to extend: expected a plain object")}const checks=schema._zod.def.checks;const hasChecks=checks&&checks.length>0;if(hasChecks){const existingShape=schema._zod.def.shape;for(const key in shape){if(Object.getOwnPropertyDescriptor(existingShape,key)!==void 0){throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}}}const def=mergeDefs(schema._zod.def,{get shape(){const _shape={...schema._zod.def.shape,...shape};assignProp(this,"shape",_shape);return _shape}});return clone(schema,def)}function safeExtend(schema,shape){if(!isPlainObject(shape)){throw new Error("Invalid input to safeExtend: expected a plain object")}const def=mergeDefs(schema._zod.def,{get shape(){const _shape={...schema._zod.def.shape,...shape};assignProp(this,"shape",_shape);return _shape}});return clone(schema,def)}function merge(a,b){if(a._zod.def.checks?.length){throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.")}const def=mergeDefs(a._zod.def,{get shape(){const _shape={...a._zod.def.shape,...b._zod.def.shape};assignProp(this,"shape",_shape);return _shape},get catchall(){return b._zod.def.catchall},checks:b._zod.def.checks??[]});return clone(a,def)}function partial(Class2,schema,mask){const currDef=schema._zod.def;const checks=currDef.checks;const hasChecks=checks&&checks.length>0;if(hasChecks){throw new Error(".partial() cannot be used on object schemas containing refinements")}const def=mergeDefs(schema._zod.def,{get shape(){const oldShape=schema._zod.def.shape;const shape={...oldShape};if(mask){for(const key in mask){if(!(key in oldShape)){throw new Error(`Unrecognized key: "${key}"`)}if(!mask[key])continue;shape[key]=Class2?new Class2({type:"optional",innerType:oldShape[key]}):oldShape[key]}}else{for(const key in oldShape){shape[key]=Class2?new Class2({type:"optional",innerType:oldShape[key]}):oldShape[key]}}assignProp(this,"shape",shape);return shape},checks:[]});return clone(schema,def)}function required(Class2,schema,mask){const def=mergeDefs(schema._zod.def,{get shape(){const oldShape=schema._zod.def.shape;const shape={...oldShape};if(mask){for(const key in mask){if(!(key in shape)){throw new Error(`Unrecognized key: "${key}"`)}if(!mask[key])continue;shape[key]=new Class2({type:"nonoptional",innerType:oldShape[key]})}}else{for(const key in oldShape){shape[key]=new Class2({type:"nonoptional",innerType:oldShape[key]})}}assignProp(this,"shape",shape);return shape}});return clone(schema,def)}function aborted(x,startIndex=0){if(x.aborted===true)return true;for(let i=startIndex;i{var _a3;(_a3=iss).path??(_a3.path=[]);iss.path.unshift(path);return iss})}function unwrapMessage(message){return typeof message==="string"?message:message?.message}function finalizeIssue(iss,ctx,config2){const message=iss.message?iss.message:unwrapMessage(iss.inst?._zod.def?.error?.(iss))??unwrapMessage(ctx?.error?.(iss))??unwrapMessage(config2.customError?.(iss))??unwrapMessage(config2.localeError?.(iss))??"Invalid input";const{inst:_inst,continue:_continue,input:_input,...rest}=iss;rest.path??(rest.path=[]);rest.message=message;if(ctx?.reportInput){rest.input=_input}return rest}function getSizableOrigin(input){if(input instanceof Set)return"set";if(input instanceof Map)return"map";if(input instanceof File)return"file";return"unknown"}function getLengthableOrigin(input){if(Array.isArray(input))return"array";if(typeof input==="string")return"string";return"unknown"}function parsedType(data){const t=typeof data;switch(t){case"number":{return Number.isNaN(data)?"nan":"number"}case"object":{if(data===null){return"null"}if(Array.isArray(data)){return"array"}const obj=data;if(obj&&Object.getPrototypeOf(obj)!==Object.prototype&&"constructor"in obj&&obj.constructor){return obj.constructor.name}}}return t}function issue(...args){const[iss,input,inst]=args;if(typeof iss==="string"){return{message:iss,code:"custom",input,inst}}return{...iss}}function cleanEnum(obj){return Object.entries(obj).filter(([k,_])=>{return Number.isNaN(Number.parseInt(k,10))}).map(el=>el[1])}function base64ToUint8Array(base642){const binaryString=atob(base642);const bytes=new Uint8Array(binaryString.length);for(let i=0;ib.toString(16).padStart(2,"0")).join("")}var Class=class{constructor(..._args){}};var initializer=(inst,def)=>{inst.name="$ZodError";Object.defineProperty(inst,"_zod",{value:inst._zod,enumerable:false});Object.defineProperty(inst,"issues",{value:def,enumerable:false});inst.message=JSON.stringify(def,jsonStringifyReplacer,2);Object.defineProperty(inst,"toString",{value:()=>inst.message,enumerable:false})};var $ZodError=$constructor("$ZodError",initializer);var $ZodRealError=$constructor("$ZodError",initializer,{Parent:Error});function flattenError(error2,mapper=issue2=>issue2.message){const fieldErrors={};const formErrors=[];for(const sub of error2.issues){if(sub.path.length>0){fieldErrors[sub.path[0]]=fieldErrors[sub.path[0]]||[];fieldErrors[sub.path[0]].push(mapper(sub))}else{formErrors.push(mapper(sub))}}return{formErrors,fieldErrors}}function formatError(error2,mapper=issue2=>issue2.message){const fieldErrors={_errors:[]};const processError=(error3,path=[])=>{for(const issue2 of error3.issues){if(issue2.code==="invalid_union"&&issue2.errors.length){issue2.errors.map(issues=>processError({issues},[...path,...issue2.path]))}else if(issue2.code==="invalid_key"){processError({issues:issue2.issues},[...path,...issue2.path])}else if(issue2.code==="invalid_element"){processError({issues:issue2.issues},[...path,...issue2.path])}else{const fullpath=[...path,...issue2.path];if(fullpath.length===0){fieldErrors._errors.push(mapper(issue2))}else{let curr=fieldErrors;let i=0;while(i(schema,value,_ctx,_params)=>{const ctx=_ctx?{..._ctx,async:false}:{async:false};const result=schema._zod.run({value,issues:[]},ctx);if(result instanceof Promise){throw new $ZodAsyncError}if(result.issues.length){const e=new(_params?.Err??_Err)(result.issues.map(iss=>finalizeIssue(iss,ctx,config())));captureStackTrace(e,_params?.callee);throw e}return result.value};var _parseAsync=_Err=>async(schema,value,_ctx,params)=>{const ctx=_ctx?{..._ctx,async:true}:{async:true};let result=schema._zod.run({value,issues:[]},ctx);if(result instanceof Promise)result=await result;if(result.issues.length){const e=new(params?.Err??_Err)(result.issues.map(iss=>finalizeIssue(iss,ctx,config())));captureStackTrace(e,params?.callee);throw e}return result.value};var _safeParse=_Err=>(schema,value,_ctx)=>{const ctx=_ctx?{..._ctx,async:false}:{async:false};const result=schema._zod.run({value,issues:[]},ctx);if(result instanceof Promise){throw new $ZodAsyncError}return result.issues.length?{success:false,error:new(_Err??$ZodError)(result.issues.map(iss=>finalizeIssue(iss,ctx,config())))}:{success:true,data:result.value}};var safeParse=_safeParse($ZodRealError);var _safeParseAsync=_Err=>async(schema,value,_ctx)=>{const ctx=_ctx?{..._ctx,async:true}:{async:true};let result=schema._zod.run({value,issues:[]},ctx);if(result instanceof Promise)result=await result;return result.issues.length?{success:false,error:new _Err(result.issues.map(iss=>finalizeIssue(iss,ctx,config())))}:{success:true,data:result.value}};var safeParseAsync=_safeParseAsync($ZodRealError);var _encode=_Err=>(schema,value,_ctx)=>{const ctx=_ctx?{..._ctx,direction:"backward"}:{direction:"backward"};return _parse(_Err)(schema,value,ctx)};var _decode=_Err=>(schema,value,_ctx)=>{return _parse(_Err)(schema,value,_ctx)};var _encodeAsync=_Err=>async(schema,value,_ctx)=>{const ctx=_ctx?{..._ctx,direction:"backward"}:{direction:"backward"};return _parseAsync(_Err)(schema,value,ctx)};var _decodeAsync=_Err=>async(schema,value,_ctx)=>{return _parseAsync(_Err)(schema,value,_ctx)};var _safeEncode=_Err=>(schema,value,_ctx)=>{const ctx=_ctx?{..._ctx,direction:"backward"}:{direction:"backward"};return _safeParse(_Err)(schema,value,ctx)};var _safeDecode=_Err=>(schema,value,_ctx)=>{return _safeParse(_Err)(schema,value,_ctx)};var _safeEncodeAsync=_Err=>async(schema,value,_ctx)=>{const ctx=_ctx?{..._ctx,direction:"backward"}:{direction:"backward"};return _safeParseAsync(_Err)(schema,value,ctx)};var _safeDecodeAsync=_Err=>async(schema,value,_ctx)=>{return _safeParseAsync(_Err)(schema,value,_ctx)};var cuid=/^[cC][0-9a-z]{6,}$/;var cuid2=/^[0-9a-z]+$/;var ulid=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;var xid=/^[0-9a-vA-V]{20}$/;var ksuid=/^[A-Za-z0-9]{27}$/;var nanoid=/^[a-zA-Z0-9_-]{21}$/;var duration=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var guid=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;var uuid=version2=>{if(!version2)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var email=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var _emoji=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function emoji(){return new RegExp(_emoji,"u")}var ipv4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;var ipv6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var cidrv4=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;var cidrv6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;var base64=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;var base64url=/^[A-Za-z0-9_-]*$/;var httpProtocol=/^https?$/;var e164=/^\+[1-9]\d{6,14}$/;var dateSource=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;var date=new RegExp(`^${dateSource}$`);function timeSource(args){const hhmm=`(?:[01]\\d|2[0-3]):[0-5]\\d`;const regex=typeof args.precision==="number"?args.precision===-1?`${hhmm}`:args.precision===0?`${hhmm}:[0-5]\\d`:`${hhmm}:[0-5]\\d\\.\\d{${args.precision}}`:`${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;return regex}function time(args){return new RegExp(`^${timeSource(args)}$`)}function datetime(args){const time3=timeSource({precision:args.precision});const opts=["Z"];if(args.local)opts.push("");if(args.offset)opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);const timeRegex=`${time3}(?:${opts.join("|")})`;return new RegExp(`^${dateSource}T(?:${timeRegex})$`)}var string=params=>{const regex=params?`[\\s\\S]{${params?.minimum??0},${params?.maximum??""}}`:`[\\s\\S]*`;return new RegExp(`^${regex}$`)};var bigint=/^-?\d+n?$/;var integer=/^-?\d+$/;var number=/^-?\d+(?:\.\d+)?$/;var boolean=/^(?:true|false)$/i;var _null=/^null$/i;var lowercase=/^[^A-Z]*$/;var uppercase=/^[^a-z]*$/;var $ZodCheck=$constructor("$ZodCheck",(inst,def)=>{var _a3;inst._zod??(inst._zod={});inst._zod.def=def;(_a3=inst._zod).onattach??(_a3.onattach=[])});var numericOriginMap={number:"number",bigint:"bigint",object:"date"};var $ZodCheckLessThan=$constructor("$ZodCheckLessThan",(inst,def)=>{$ZodCheck.init(inst,def);const origin=numericOriginMap[typeof def.value];inst._zod.onattach.push(inst2=>{const bag=inst2._zod.bag;const curr=(def.inclusive?bag.maximum:bag.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(def.value{if(def.inclusive?payload.value<=def.value:payload.value{$ZodCheck.init(inst,def);const origin=numericOriginMap[typeof def.value];inst._zod.onattach.push(inst2=>{const bag=inst2._zod.bag;const curr=(def.inclusive?bag.minimum:bag.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(def.value>curr){if(def.inclusive)bag.minimum=def.value;else bag.exclusiveMinimum=def.value}});inst._zod.check=payload=>{if(def.inclusive?payload.value>=def.value:payload.value>def.value){return}payload.issues.push({origin,code:"too_small",minimum:typeof def.value==="object"?def.value.getTime():def.value,input:payload.value,inclusive:def.inclusive,inst,continue:!def.abort})}});var $ZodCheckMultipleOf=$constructor("$ZodCheckMultipleOf",(inst,def)=>{$ZodCheck.init(inst,def);inst._zod.onattach.push(inst2=>{var _a3;(_a3=inst2._zod.bag).multipleOf??(_a3.multipleOf=def.value)});inst._zod.check=payload=>{if(typeof payload.value!==typeof def.value)throw new Error("Cannot mix number and bigint in multiple_of check.");const isMultiple=typeof payload.value==="bigint"?payload.value%def.value===BigInt(0):floatSafeRemainder(payload.value,def.value)===0;if(isMultiple)return;payload.issues.push({origin:typeof payload.value,code:"not_multiple_of",divisor:def.value,input:payload.value,inst,continue:!def.abort})}});var $ZodCheckNumberFormat=$constructor("$ZodCheckNumberFormat",(inst,def)=>{$ZodCheck.init(inst,def);def.format=def.format||"float64";const isInt=def.format?.includes("int");const origin=isInt?"int":"number";const[minimum,maximum]=NUMBER_FORMAT_RANGES[def.format];inst._zod.onattach.push(inst2=>{const bag=inst2._zod.bag;bag.format=def.format;bag.minimum=minimum;bag.maximum=maximum;if(isInt)bag.pattern=integer});inst._zod.check=payload=>{const input=payload.value;if(isInt){if(!Number.isInteger(input)){payload.issues.push({expected:origin,format:def.format,code:"invalid_type",continue:false,input,inst});return}if(!Number.isSafeInteger(input)){if(input>0){payload.issues.push({input,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst,origin,inclusive:true,continue:!def.abort})}else{payload.issues.push({input,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst,origin,inclusive:true,continue:!def.abort})}return}}if(inputmaximum){payload.issues.push({origin:"number",input,code:"too_big",maximum,inclusive:true,inst,continue:!def.abort})}}});var $ZodCheckMaxLength=$constructor("$ZodCheckMaxLength",(inst,def)=>{var _a3;$ZodCheck.init(inst,def);(_a3=inst._zod.def).when??(_a3.when=payload=>{const val=payload.value;return!nullish(val)&&val.length!==void 0});inst._zod.onattach.push(inst2=>{const curr=inst2._zod.bag.maximum??Number.POSITIVE_INFINITY;if(def.maximum{const input=payload.value;const length=input.length;if(length<=def.maximum)return;const origin=getLengthableOrigin(input);payload.issues.push({origin,code:"too_big",maximum:def.maximum,inclusive:true,input,inst,continue:!def.abort})}});var $ZodCheckMinLength=$constructor("$ZodCheckMinLength",(inst,def)=>{var _a3;$ZodCheck.init(inst,def);(_a3=inst._zod.def).when??(_a3.when=payload=>{const val=payload.value;return!nullish(val)&&val.length!==void 0});inst._zod.onattach.push(inst2=>{const curr=inst2._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(def.minimum>curr)inst2._zod.bag.minimum=def.minimum});inst._zod.check=payload=>{const input=payload.value;const length=input.length;if(length>=def.minimum)return;const origin=getLengthableOrigin(input);payload.issues.push({origin,code:"too_small",minimum:def.minimum,inclusive:true,input,inst,continue:!def.abort})}});var $ZodCheckLengthEquals=$constructor("$ZodCheckLengthEquals",(inst,def)=>{var _a3;$ZodCheck.init(inst,def);(_a3=inst._zod.def).when??(_a3.when=payload=>{const val=payload.value;return!nullish(val)&&val.length!==void 0});inst._zod.onattach.push(inst2=>{const bag=inst2._zod.bag;bag.minimum=def.length;bag.maximum=def.length;bag.length=def.length});inst._zod.check=payload=>{const input=payload.value;const length=input.length;if(length===def.length)return;const origin=getLengthableOrigin(input);const tooBig=length>def.length;payload.issues.push({origin,...tooBig?{code:"too_big",maximum:def.length}:{code:"too_small",minimum:def.length},inclusive:true,exact:true,input:payload.value,inst,continue:!def.abort})}});var $ZodCheckStringFormat=$constructor("$ZodCheckStringFormat",(inst,def)=>{var _a3,_b;$ZodCheck.init(inst,def);inst._zod.onattach.push(inst2=>{const bag=inst2._zod.bag;bag.format=def.format;if(def.pattern){bag.patterns??(bag.patterns=new Set);bag.patterns.add(def.pattern)}});if(def.pattern)(_a3=inst._zod).check??(_a3.check=payload=>{def.pattern.lastIndex=0;if(def.pattern.test(payload.value))return;payload.issues.push({origin:"string",code:"invalid_format",format:def.format,input:payload.value,...def.pattern?{pattern:def.pattern.toString()}:{},inst,continue:!def.abort})});else(_b=inst._zod).check??(_b.check=()=>{})});var $ZodCheckRegex=$constructor("$ZodCheckRegex",(inst,def)=>{$ZodCheckStringFormat.init(inst,def);inst._zod.check=payload=>{def.pattern.lastIndex=0;if(def.pattern.test(payload.value))return;payload.issues.push({origin:"string",code:"invalid_format",format:"regex",input:payload.value,pattern:def.pattern.toString(),inst,continue:!def.abort})}});var $ZodCheckLowerCase=$constructor("$ZodCheckLowerCase",(inst,def)=>{def.pattern??(def.pattern=lowercase);$ZodCheckStringFormat.init(inst,def)});var $ZodCheckUpperCase=$constructor("$ZodCheckUpperCase",(inst,def)=>{def.pattern??(def.pattern=uppercase);$ZodCheckStringFormat.init(inst,def)});var $ZodCheckIncludes=$constructor("$ZodCheckIncludes",(inst,def)=>{$ZodCheck.init(inst,def);const escapedRegex=escapeRegex(def.includes);const pattern=new RegExp(typeof def.position==="number"?`^.{${def.position}}${escapedRegex}`:escapedRegex);def.pattern=pattern;inst._zod.onattach.push(inst2=>{const bag=inst2._zod.bag;bag.patterns??(bag.patterns=new Set);bag.patterns.add(pattern)});inst._zod.check=payload=>{if(payload.value.includes(def.includes,def.position))return;payload.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:def.includes,input:payload.value,inst,continue:!def.abort})}});var $ZodCheckStartsWith=$constructor("$ZodCheckStartsWith",(inst,def)=>{$ZodCheck.init(inst,def);const pattern=new RegExp(`^${escapeRegex(def.prefix)}.*`);def.pattern??(def.pattern=pattern);inst._zod.onattach.push(inst2=>{const bag=inst2._zod.bag;bag.patterns??(bag.patterns=new Set);bag.patterns.add(pattern)});inst._zod.check=payload=>{if(payload.value.startsWith(def.prefix))return;payload.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:def.prefix,input:payload.value,inst,continue:!def.abort})}});var $ZodCheckEndsWith=$constructor("$ZodCheckEndsWith",(inst,def)=>{$ZodCheck.init(inst,def);const pattern=new RegExp(`.*${escapeRegex(def.suffix)}$`);def.pattern??(def.pattern=pattern);inst._zod.onattach.push(inst2=>{const bag=inst2._zod.bag;bag.patterns??(bag.patterns=new Set);bag.patterns.add(pattern)});inst._zod.check=payload=>{if(payload.value.endsWith(def.suffix))return;payload.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:def.suffix,input:payload.value,inst,continue:!def.abort})}});var $ZodCheckOverwrite=$constructor("$ZodCheckOverwrite",(inst,def)=>{$ZodCheck.init(inst,def);inst._zod.check=payload=>{payload.value=def.tx(payload.value)}});var Doc=class{constructor(args=[]){this.content=[];this.indent=0;if(this)this.args=args}indented(fn){this.indent+=1;fn(this);this.indent-=1}write(arg){if(typeof arg==="function"){arg(this,{execution:"sync"});arg(this,{execution:"async"});return}const content=arg;const lines=content.split("\n").filter(x=>x);const minIndent=Math.min(...lines.map(x=>x.length-x.trimStart().length));const dedented=lines.map(x=>x.slice(minIndent)).map(x=>" ".repeat(this.indent*2)+x);for(const line of dedented){this.content.push(line)}}compile(){const F=Function;const args=this?.args;const content=this?.content??[``];const lines=[...content.map(x=>` ${x}`)];return new F(...args,lines.join("\n"))}};var version={major:4,minor:4,patch:3};var $ZodType=$constructor("$ZodType",(inst,def)=>{var _a3;inst??(inst={});inst._zod.def=def;inst._zod.bag=inst._zod.bag||{};inst._zod.version=version;const checks=[...inst._zod.def.checks??[]];if(inst._zod.traits.has("$ZodCheck")){checks.unshift(inst)}for(const ch of checks){for(const fn of ch._zod.onattach){fn(inst)}}if(checks.length===0){(_a3=inst._zod).deferred??(_a3.deferred=[]);inst._zod.deferred?.push(()=>{inst._zod.run=inst._zod.parse})}else{const runChecks=(payload,checks2,ctx)=>{let isAborted=aborted(payload);let asyncResult;for(const ch of checks2){if(ch._zod.def.when){if(explicitlyAborted(payload))continue;const shouldRun=ch._zod.def.when(payload);if(!shouldRun)continue}else if(isAborted){continue}const currLen=payload.issues.length;const _=ch._zod.check(payload);if(_ instanceof Promise&&ctx?.async===false){throw new $ZodAsyncError}if(asyncResult||_ instanceof Promise){asyncResult=(asyncResult??Promise.resolve()).then(async()=>{await _;const nextLen=payload.issues.length;if(nextLen===currLen)return;if(!isAborted)isAborted=aborted(payload,currLen)})}else{const nextLen=payload.issues.length;if(nextLen===currLen)continue;if(!isAborted)isAborted=aborted(payload,currLen)}}if(asyncResult){return asyncResult.then(()=>{return payload})}return payload};const handleCanaryResult=(canary,payload,ctx)=>{if(aborted(canary)){canary.aborted=true;return canary}const checkResult=runChecks(payload,checks,ctx);if(checkResult instanceof Promise){if(ctx.async===false)throw new $ZodAsyncError;return checkResult.then(checkResult2=>inst._zod.parse(checkResult2,ctx))}return inst._zod.parse(checkResult,ctx)};inst._zod.run=(payload,ctx)=>{if(ctx.skipChecks){return inst._zod.parse(payload,ctx)}if(ctx.direction==="backward"){const canary=inst._zod.parse({value:payload.value,issues:[]},{...ctx,skipChecks:true});if(canary instanceof Promise){return canary.then(canary2=>{return handleCanaryResult(canary2,payload,ctx)})}return handleCanaryResult(canary,payload,ctx)}const result=inst._zod.parse(payload,ctx);if(result instanceof Promise){if(ctx.async===false)throw new $ZodAsyncError;return result.then(result2=>runChecks(result2,checks,ctx))}return runChecks(result,checks,ctx)}}defineLazy(inst,"~standard",()=>({validate:value=>{try{const r=safeParse(inst,value);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(_){return safeParseAsync(inst,value).then(r=>r.success?{value:r.data}:{issues:r.error?.issues})}},vendor:"zod",version:1}))});var $ZodString=$constructor("$ZodString",(inst,def)=>{$ZodType.init(inst,def);inst._zod.pattern=[...inst?._zod.bag?.patterns??[]].pop()??string(inst._zod.bag);inst._zod.parse=(payload,_)=>{if(def.coerce)try{payload.value=String(payload.value)}catch(_2){}if(typeof payload.value==="string")return payload;payload.issues.push({expected:"string",code:"invalid_type",input:payload.value,inst});return payload}});var $ZodStringFormat=$constructor("$ZodStringFormat",(inst,def)=>{$ZodCheckStringFormat.init(inst,def);$ZodString.init(inst,def)});var $ZodGUID=$constructor("$ZodGUID",(inst,def)=>{def.pattern??(def.pattern=guid);$ZodStringFormat.init(inst,def)});var $ZodUUID=$constructor("$ZodUUID",(inst,def)=>{if(def.version){const versionMap={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8};const v=versionMap[def.version];if(v===void 0)throw new Error(`Invalid UUID version: "${def.version}"`);def.pattern??(def.pattern=uuid(v))}else def.pattern??(def.pattern=uuid());$ZodStringFormat.init(inst,def)});var $ZodEmail=$constructor("$ZodEmail",(inst,def)=>{def.pattern??(def.pattern=email);$ZodStringFormat.init(inst,def)});var $ZodURL=$constructor("$ZodURL",(inst,def)=>{$ZodStringFormat.init(inst,def);inst._zod.check=payload=>{try{const trimmed=payload.value.trim();if(!def.normalize&&def.protocol?.source===httpProtocol.source){if(!/^https?:\/\//i.test(trimmed)){payload.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:payload.value,inst,continue:!def.abort});return}}const url2=new URL(trimmed);if(def.hostname){def.hostname.lastIndex=0;if(!def.hostname.test(url2.hostname)){payload.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:def.hostname.source,input:payload.value,inst,continue:!def.abort})}}if(def.protocol){def.protocol.lastIndex=0;if(!def.protocol.test(url2.protocol.endsWith(":")?url2.protocol.slice(0,-1):url2.protocol)){payload.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:def.protocol.source,input:payload.value,inst,continue:!def.abort})}}if(def.normalize){payload.value=url2.href}else{payload.value=trimmed}return}catch(_){payload.issues.push({code:"invalid_format",format:"url",input:payload.value,inst,continue:!def.abort})}}});var $ZodEmoji=$constructor("$ZodEmoji",(inst,def)=>{def.pattern??(def.pattern=emoji());$ZodStringFormat.init(inst,def)});var $ZodNanoID=$constructor("$ZodNanoID",(inst,def)=>{def.pattern??(def.pattern=nanoid);$ZodStringFormat.init(inst,def)});var $ZodCUID=$constructor("$ZodCUID",(inst,def)=>{def.pattern??(def.pattern=cuid);$ZodStringFormat.init(inst,def)});var $ZodCUID2=$constructor("$ZodCUID2",(inst,def)=>{def.pattern??(def.pattern=cuid2);$ZodStringFormat.init(inst,def)});var $ZodULID=$constructor("$ZodULID",(inst,def)=>{def.pattern??(def.pattern=ulid);$ZodStringFormat.init(inst,def)});var $ZodXID=$constructor("$ZodXID",(inst,def)=>{def.pattern??(def.pattern=xid);$ZodStringFormat.init(inst,def)});var $ZodKSUID=$constructor("$ZodKSUID",(inst,def)=>{def.pattern??(def.pattern=ksuid);$ZodStringFormat.init(inst,def)});var $ZodISODateTime=$constructor("$ZodISODateTime",(inst,def)=>{def.pattern??(def.pattern=datetime(def));$ZodStringFormat.init(inst,def)});var $ZodISODate=$constructor("$ZodISODate",(inst,def)=>{def.pattern??(def.pattern=date);$ZodStringFormat.init(inst,def)});var $ZodISOTime=$constructor("$ZodISOTime",(inst,def)=>{def.pattern??(def.pattern=time(def));$ZodStringFormat.init(inst,def)});var $ZodISODuration=$constructor("$ZodISODuration",(inst,def)=>{def.pattern??(def.pattern=duration);$ZodStringFormat.init(inst,def)});var $ZodIPv4=$constructor("$ZodIPv4",(inst,def)=>{def.pattern??(def.pattern=ipv4);$ZodStringFormat.init(inst,def);inst._zod.bag.format=`ipv4`});var $ZodIPv6=$constructor("$ZodIPv6",(inst,def)=>{def.pattern??(def.pattern=ipv6);$ZodStringFormat.init(inst,def);inst._zod.bag.format=`ipv6`;inst._zod.check=payload=>{try{new URL(`http://[${payload.value}]`)}catch{payload.issues.push({code:"invalid_format",format:"ipv6",input:payload.value,inst,continue:!def.abort})}}});var $ZodCIDRv4=$constructor("$ZodCIDRv4",(inst,def)=>{def.pattern??(def.pattern=cidrv4);$ZodStringFormat.init(inst,def)});var $ZodCIDRv6=$constructor("$ZodCIDRv6",(inst,def)=>{def.pattern??(def.pattern=cidrv6);$ZodStringFormat.init(inst,def);inst._zod.check=payload=>{const parts=payload.value.split("/");try{if(parts.length!==2)throw new Error;const[address,prefix]=parts;if(!prefix)throw new Error;const prefixNum=Number(prefix);if(`${prefixNum}`!==prefix)throw new Error;if(prefixNum<0||prefixNum>128)throw new Error;new URL(`http://[${address}]`)}catch{payload.issues.push({code:"invalid_format",format:"cidrv6",input:payload.value,inst,continue:!def.abort})}}});function isValidBase64(data){if(data==="")return true;if(/\s/.test(data))return false;if(data.length%4!==0)return false;try{atob(data);return true}catch{return false}}var $ZodBase64=$constructor("$ZodBase64",(inst,def)=>{def.pattern??(def.pattern=base64);$ZodStringFormat.init(inst,def);inst._zod.bag.contentEncoding="base64";inst._zod.check=payload=>{if(isValidBase64(payload.value))return;payload.issues.push({code:"invalid_format",format:"base64",input:payload.value,inst,continue:!def.abort})}});function isValidBase64URL(data){if(!base64url.test(data))return false;const base642=data.replace(/[-_]/g,c=>c==="-"?"+":"/");const padded=base642.padEnd(Math.ceil(base642.length/4)*4,"=");return isValidBase64(padded)}var $ZodBase64URL=$constructor("$ZodBase64URL",(inst,def)=>{def.pattern??(def.pattern=base64url);$ZodStringFormat.init(inst,def);inst._zod.bag.contentEncoding="base64url";inst._zod.check=payload=>{if(isValidBase64URL(payload.value))return;payload.issues.push({code:"invalid_format",format:"base64url",input:payload.value,inst,continue:!def.abort})}});var $ZodE164=$constructor("$ZodE164",(inst,def)=>{def.pattern??(def.pattern=e164);$ZodStringFormat.init(inst,def)});function isValidJWT(token,algorithm=null){try{const tokensParts=token.split(".");if(tokensParts.length!==3)return false;const[header]=tokensParts;if(!header)return false;const parsedHeader=JSON.parse(atob(header));if("typ"in parsedHeader&&parsedHeader?.typ!=="JWT")return false;if(!parsedHeader.alg)return false;if(algorithm&&(!("alg"in parsedHeader)||parsedHeader.alg!==algorithm))return false;return true}catch{return false}}var $ZodJWT=$constructor("$ZodJWT",(inst,def)=>{$ZodStringFormat.init(inst,def);inst._zod.check=payload=>{if(isValidJWT(payload.value,def.alg))return;payload.issues.push({code:"invalid_format",format:"jwt",input:payload.value,inst,continue:!def.abort})}});var $ZodNumber=$constructor("$ZodNumber",(inst,def)=>{$ZodType.init(inst,def);inst._zod.pattern=inst._zod.bag.pattern??number;inst._zod.parse=(payload,_ctx)=>{if(def.coerce)try{payload.value=Number(payload.value)}catch(_){}const input=payload.value;if(typeof input==="number"&&!Number.isNaN(input)&&Number.isFinite(input)){return payload}const received=typeof input==="number"?Number.isNaN(input)?"NaN":!Number.isFinite(input)?"Infinity":void 0:void 0;payload.issues.push({expected:"number",code:"invalid_type",input,inst,...received?{received}:{}});return payload}});var $ZodNumberFormat=$constructor("$ZodNumberFormat",(inst,def)=>{$ZodCheckNumberFormat.init(inst,def);$ZodNumber.init(inst,def)});var $ZodBoolean=$constructor("$ZodBoolean",(inst,def)=>{$ZodType.init(inst,def);inst._zod.pattern=boolean;inst._zod.parse=(payload,_ctx)=>{if(def.coerce)try{payload.value=Boolean(payload.value)}catch(_){}const input=payload.value;if(typeof input==="boolean")return payload;payload.issues.push({expected:"boolean",code:"invalid_type",input,inst});return payload}});var $ZodBigInt=$constructor("$ZodBigInt",(inst,def)=>{$ZodType.init(inst,def);inst._zod.pattern=bigint;inst._zod.parse=(payload,_ctx)=>{if(def.coerce)try{payload.value=BigInt(payload.value)}catch(_){}if(typeof payload.value==="bigint")return payload;payload.issues.push({expected:"bigint",code:"invalid_type",input:payload.value,inst});return payload}});var $ZodNull=$constructor("$ZodNull",(inst,def)=>{$ZodType.init(inst,def);inst._zod.pattern=_null;inst._zod.values=new Set([null]);inst._zod.parse=(payload,_ctx)=>{const input=payload.value;if(input===null)return payload;payload.issues.push({expected:"null",code:"invalid_type",input,inst});return payload}});var $ZodAny=$constructor("$ZodAny",(inst,def)=>{$ZodType.init(inst,def);inst._zod.parse=payload=>payload});var $ZodUnknown=$constructor("$ZodUnknown",(inst,def)=>{$ZodType.init(inst,def);inst._zod.parse=payload=>payload});var $ZodNever=$constructor("$ZodNever",(inst,def)=>{$ZodType.init(inst,def);inst._zod.parse=(payload,_ctx)=>{payload.issues.push({expected:"never",code:"invalid_type",input:payload.value,inst});return payload}});var $ZodDate=$constructor("$ZodDate",(inst,def)=>{$ZodType.init(inst,def);inst._zod.parse=(payload,_ctx)=>{if(def.coerce){try{payload.value=new Date(payload.value)}catch(_err){}}const input=payload.value;const isDate=input instanceof Date;const isValidDate=isDate&&!Number.isNaN(input.getTime());if(isValidDate)return payload;payload.issues.push({expected:"date",code:"invalid_type",input,...isDate?{received:"Invalid Date"}:{},inst});return payload}});function handleArrayResult(result,final,index){if(result.issues.length){final.issues.push(...prefixIssues(index,result.issues))}final.value[index]=result.value}var $ZodArray=$constructor("$ZodArray",(inst,def)=>{$ZodType.init(inst,def);inst._zod.parse=(payload,ctx)=>{const input=payload.value;if(!Array.isArray(input)){payload.issues.push({expected:"array",code:"invalid_type",input,inst});return payload}payload.value=Array(input.length);const proms=[];for(let i=0;ihandleArrayResult(result2,payload,i)))}else{handleArrayResult(result,payload,i)}}if(proms.length){return Promise.all(proms).then(()=>payload)}return payload}});function handlePropertyResult(result,final,key,input,isOptionalIn,isOptionalOut){const isPresent=key in input;if(result.issues.length){if(isOptionalIn&&isOptionalOut&&!isPresent){return}final.issues.push(...prefixIssues(key,result.issues))}if(!isPresent&&!isOptionalIn){if(!result.issues.length){final.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[key]})}return}if(result.value===void 0){if(isPresent){final.value[key]=void 0}}else{final.value[key]=result.value}}function normalizeDef(def){const keys=Object.keys(def.shape);for(const k of keys){if(!def.shape?.[k]?._zod?.traits?.has("$ZodType")){throw new Error(`Invalid element at key "${k}": expected a Zod schema`)}}const okeys=optionalKeys(def.shape);return{...def,keys,keySet:new Set(keys),numKeys:keys.length,optionalKeys:new Set(okeys)}}function handleCatchall(proms,input,payload,ctx,def,inst){const unrecognized=[];const keySet=def.keySet;const _catchall=def.catchall._zod;const t=_catchall.def.type;const isOptionalIn=_catchall.optin==="optional";const isOptionalOut=_catchall.optout==="optional";for(const key in input){if(key==="__proto__")continue;if(keySet.has(key))continue;if(t==="never"){unrecognized.push(key);continue}const r=_catchall.run({value:input[key],issues:[]},ctx);if(r instanceof Promise){proms.push(r.then(r2=>handlePropertyResult(r2,payload,key,input,isOptionalIn,isOptionalOut)))}else{handlePropertyResult(r,payload,key,input,isOptionalIn,isOptionalOut)}}if(unrecognized.length){payload.issues.push({code:"unrecognized_keys",keys:unrecognized,input,inst})}if(!proms.length)return payload;return Promise.all(proms).then(()=>{return payload})}var $ZodObject=$constructor("$ZodObject",(inst,def)=>{$ZodType.init(inst,def);const desc=Object.getOwnPropertyDescriptor(def,"shape");if(!desc?.get){const sh=def.shape;Object.defineProperty(def,"shape",{get:()=>{const newSh={...sh};Object.defineProperty(def,"shape",{value:newSh});return newSh}})}const _normalized=cached(()=>normalizeDef(def));defineLazy(inst._zod,"propValues",()=>{const shape=def.shape;const propValues={};for(const key in shape){const field=shape[key]._zod;if(field.values){propValues[key]??(propValues[key]=new Set);for(const v of field.values)propValues[key].add(v)}}return propValues});const isObject2=isObject;const catchall=def.catchall;let value;inst._zod.parse=(payload,ctx)=>{value??(value=_normalized.value);const input=payload.value;if(!isObject2(input)){payload.issues.push({expected:"object",code:"invalid_type",input,inst});return payload}payload.value={};const proms=[];const shape=value.shape;for(const key of value.keys){const el=shape[key];const isOptionalIn=el._zod.optin==="optional";const isOptionalOut=el._zod.optout==="optional";const r=el._zod.run({value:input[key],issues:[]},ctx);if(r instanceof Promise){proms.push(r.then(r2=>handlePropertyResult(r2,payload,key,input,isOptionalIn,isOptionalOut)))}else{handlePropertyResult(r,payload,key,input,isOptionalIn,isOptionalOut)}}if(!catchall){return proms.length?Promise.all(proms).then(()=>payload):payload}return handleCatchall(proms,input,payload,ctx,_normalized.value,inst)}});var $ZodObjectJIT=$constructor("$ZodObjectJIT",(inst,def)=>{$ZodObject.init(inst,def);const superParse=inst._zod.parse;const _normalized=cached(()=>normalizeDef(def));const generateFastpass=shape=>{const doc=new Doc(["shape","payload","ctx"]);const normalized=_normalized.value;const parseStr=key=>{const k=esc(key);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};doc.write(`const input = payload.value;`);const ids=Object.create(null);let counter=0;for(const key of normalized.keys){ids[key]=`key_${counter++}`}doc.write(`const newResult = {};`);for(const key of normalized.keys){const id=ids[key];const k=esc(key);const schema=shape[key];const isOptionalIn=schema?._zod?.optin==="optional";const isOptionalOut=schema?._zod?.optout==="optional";doc.write(`const ${id} = ${parseStr(key)};`);if(isOptionalIn&&isOptionalOut){doc.write(` From 84538dab7a9455753b7b4d124117f183dd0a1c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 17:54:22 -0700 Subject: [PATCH 12/18] ci: audit the corrected production dependency fingerprints Pin audit jobs to the dependency fix in this PR. Auditor code, severity thresholds, and exceptions are unchanged. Signed-off-by: Aaron Erickson --- .github/workflows/managed-images.yaml | 8 ++++---- .github/workflows/pr.yaml | 2 +- .../managed/managed-image-publication-workflow.test.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/managed-images.yaml b/.github/workflows/managed-images.yaml index 863e8db40e9..1088dfe4e68 100644 --- a/.github/workflows/managed-images.yaml +++ b/.github/workflows/managed-images.yaml @@ -101,7 +101,7 @@ jobs: - name: Checkout npm audit code from the base commit uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - ref: 8ed889c14ccd7e828a9fbc20606cc7c587e6ca31 + ref: 2d41c091cef0b07584526f747641565a9b10ac5f path: .trusted-reviewed-npm-audit persist-credentials: false sparse-checkout: | @@ -121,7 +121,7 @@ jobs: shell: bash env: CANDIDATE_SHA: ${{ github.event.pull_request.head.sha }} - REVIEWED_AUDIT_SHA: 8ed889c14ccd7e828a9fbc20606cc7c587e6ca31 + REVIEWED_AUDIT_SHA: 2d41c091cef0b07584526f747641565a9b10ac5f run: | set -euo pipefail [[ "$CANDIDATE_SHA" =~ ^[a-f0-9]{40}$ ]] @@ -544,7 +544,7 @@ jobs: if: matrix.agent == 'openclaw' uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - ref: 8ed889c14ccd7e828a9fbc20606cc7c587e6ca31 + ref: 2d41c091cef0b07584526f747641565a9b10ac5f path: .trusted-mcporter-audit persist-credentials: false sparse-checkout: | @@ -572,7 +572,7 @@ jobs: raw="$RUNNER_TEMP/reviewed-npm-audit/mcporter-runtime.raw.json" policy="$RUNNER_TEMP/reviewed-npm-audit/mcporter-runtime.policy.json" trusted_root="$GITHUB_WORKSPACE/.trusted-mcporter-audit" - test "$(git -C "$trusted_root" rev-parse --verify HEAD)" = '8ed889c14ccd7e828a9fbc20606cc7c587e6ca31' + test "$(git -C "$trusted_root" rev-parse --verify HEAD)" = '2d41c091cef0b07584526f747641565a9b10ac5f' node --experimental-strip-types --no-warnings \ "$trusted_root/scripts/lib/npm-audit-receipt.mts" \ --receipt "$receipt" \ diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index d0a7f3c45d6..54b9f365e20 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -531,7 +531,7 @@ jobs: sparse-checkout-cone-mode: false - name: Audit reviewed production npm graphs - uses: NVIDIA/NemoClaw/.github/actions/ci-reviewed-npm-audit@8ed889c14ccd7e828a9fbc20606cc7c587e6ca31 + uses: NVIDIA/NemoClaw/.github/actions/ci-reviewed-npm-audit@2d41c091cef0b07584526f747641565a9b10ac5f with: target-root: ${{ github.workspace }} report-dir: artifacts/reviewed-npm-audit diff --git a/test/inference/managed/managed-image-publication-workflow.test.ts b/test/inference/managed/managed-image-publication-workflow.test.ts index 80d10f07456..556dc420a5f 100644 --- a/test/inference/managed/managed-image-publication-workflow.test.ts +++ b/test/inference/managed/managed-image-publication-workflow.test.ts @@ -32,7 +32,7 @@ import type { Job, Workflow } from "../../helpers/managed-image-publication-work const fullShaAction = /^[^@]+@[0-9a-f]{40}$/iu; const reviewedAuditAction = "NVIDIA/NemoClaw/.github/actions/ci-reviewed-npm-audit@"; -const reviewedAuditSha = "8ed889c14ccd7e828a9fbc20606cc7c587e6ca31"; +const reviewedAuditSha = "2d41c091cef0b07584526f747641565a9b10ac5f"; function needsOutput(job: string, output: string): string { return `\${{ needs.${job}.outputs.${output} }}`; From b33f99d7cc60e2678d99dd4c1f0385830a8e53c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 18:07:28 -0700 Subject: [PATCH 13/18] fix(ci): separate audit fingerprints from npm image identity Audit-only lock fingerprints do not change the image npm runtime. Keep qualification required for version and integrity changes, and reject invalid identity data. Leave images and receipts unchanged. Signed-off-by: Aaron Erickson --- .../pi-qualification-receipt-refresh.mts | 21 +++- .../pi-qualification-receipt-refresh.test.ts | 106 +++++++++++++----- 2 files changed, 95 insertions(+), 32 deletions(-) diff --git a/scripts/checks/pi-qualification-receipt-refresh.mts b/scripts/checks/pi-qualification-receipt-refresh.mts index 640a5bb7302..654a56a84ed 100644 --- a/scripts/checks/pi-qualification-receipt-refresh.mts +++ b/scripts/checks/pi-qualification-receipt-refresh.mts @@ -16,6 +16,7 @@ import type { } from "../../src/lib/onboard/managed-image/contract.ts"; import * as managedImageContract from "../../src/lib/onboard/managed-image/contract.ts"; import { directDockerfileCopySources } from "../lib/dockerfile-copy-sources.mts"; +import { parseReviewedNpmIdentityConfig } from "../lib/reviewed-npm-audit.mts"; type CandidateAuthorityModule = typeof candidateAuthority & { default?: typeof candidateAuthority }; type ManagedImageContractModule = typeof managedImageContract & { @@ -34,6 +35,7 @@ type GitRunner = (args: readonly string[]) => GitResult; const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../.."); const PI_DOCKERFILES = ["agents/pi/Dockerfile", "agents/pi/Dockerfile.base"] as const; const PI_CANDIDATE_AUTHORITY = "src/lib/agent/candidate-authority.ts"; +const NPM_AUDIT_CONFIG = "ci/reviewed-npm-audit.json"; export const PI_QUALIFICATION_RECEIPTS: readonly { path: string; platform: ManagedImagePlatform; @@ -123,6 +125,19 @@ function piImageSourcePaths(rootDir: string): string[] { return [...new Set([".dockerignore", ...PI_DOCKERFILES, ...copiedSources])].sort(); } +function npmImageIdentityChanged(rootDir: string, git: GitRunner, revision: string): boolean { + const before = requireGitOutput( + git(["show", `${revision}:${NPM_AUDIT_CONFIG}`]), + "Could not read the base npm image identity", + ); + const after = fs.readFileSync(path.join(rootDir, NPM_AUDIT_CONFIG), "utf8"); + // Audit graph fingerprints are not consumed by the image's npm installer. + return ( + JSON.stringify(parseReviewedNpmIdentityConfig(before)) !== + JSON.stringify(parseReviewedNpmIdentityConfig(after)) + ); +} + type ValidatedReceipt = { contract: ManagedImageContractV1; digest: string; @@ -266,8 +281,10 @@ export function checkPiQualificationReceiptRefresh( const revision = mergeBaseRevision(git, baseBranch); const changedPaths = changedPathsFromBase(git, revision); const imageSourcePaths = piImageSourcePaths(rootDir); - const imageInputsChanged = changedPaths.some((changedPath) => - imageSourcePaths.some((source) => ownsPath(source, changedPath)), + const imageInputsChanged = changedPaths.some( + (changedPath) => + imageSourcePaths.some((source) => ownsPath(source, changedPath)) && + (changedPath !== NPM_AUDIT_CONFIG || npmImageIdentityChanged(rootDir, git, revision)), ); const receiptPaths = receipts.map(({ path: receipt }) => receipt); const receiptAuthorityChanged = changedPaths.some( diff --git a/test/repository/pi-qualification-receipt-refresh.test.ts b/test/repository/pi-qualification-receipt-refresh.test.ts index b15125eb154..e8f1bf04cc3 100644 --- a/test/repository/pi-qualification-receipt-refresh.test.ts +++ b/test/repository/pi-qualification-receipt-refresh.test.ts @@ -11,6 +11,13 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { checkPiQualificationReceiptRefresh } from "../../scripts/checks/pi-qualification-receipt-refresh.mts"; const SOURCE_REVISION = "a".repeat(40); +const AUDIT_CONFIG = { + npmVersion: "12.0.2", + npmIntegrity: `sha512-${"A".repeat(86)}==`, + npmArchiveSha256: "d".repeat(64), + registryOrigin: "https://registry.npmjs.org/", + lockedGraphs: [{ lockSha256: "e".repeat(64) }], +}; const RECEIPTS = [ { path: "ci/pi-amd64.json", platform: "linux/amd64" as const }, { path: "ci/pi-arm64.json", platform: "linux/arm64" as const }, @@ -56,7 +63,11 @@ describe("Pi qualification receipt refresh", () => { fs.mkdirSync(path.join(rootDir, "ci"), { recursive: true }); fs.writeFileSync( path.join(rootDir, "agents/pi/Dockerfile"), - "FROM scratch\nCOPY protected/app /app\n", + "FROM scratch\nCOPY protected/app /app\nCOPY ci/reviewed-npm-audit.json /ci/reviewed-npm-audit.json\n", + ); + fs.writeFileSync( + path.join(rootDir, "ci/reviewed-npm-audit.json"), + JSON.stringify(AUDIT_CONFIG), ); fs.writeFileSync( path.join(rootDir, "agents/pi/Dockerfile.base"), @@ -89,42 +100,77 @@ describe("Pi qualification receipt refresh", () => { acceptedDigests: options.accepted ?? acceptedDigests, baseBranch: "main", git: (args) => - args[0] === "merge-base" - ? { status: 0, stdout: "base\n" } - : args.includes("--name-only") - ? { - status: 0, - stdout: `${(args.includes("--cached") ? (options.stagedPaths ?? []) : changedPaths).join("\0")}\0`, - } - : args[0] === "rev-parse" - ? args.join("\0") === ["rev-parse", "--quiet", "--verify", "MERGE_HEAD"].join("\0") - ? options.mergeInProgress - ? { status: 0, stdout: `${"e".repeat(40)}\n` } - : { status: 1, stdout: "" } - : args.join("\0") === ["rev-parse", "--verify", "HEAD^2"].join("\0") && - options.pullRequestHeadRevision - ? { status: 0, stdout: `${options.pullRequestHeadRevision}\n` } - : (() => { - throw new Error(`Unexpected revision probe: ${args.join(" ")}`); - })() - : args.includes("--quiet") - ? (args.includes("--cached") && - options.mergeInProgress && - args[3] === SOURCE_REVISION) || - args[3] === (options.headRevision ?? options.pullRequestHeadRevision ?? "HEAD") - ? { status: options.sourceParity === false ? 1 : 0, stdout: "" } + args[0] === "show" + ? { status: 0, stdout: JSON.stringify(AUDIT_CONFIG) } + : args[0] === "merge-base" + ? { status: 0, stdout: "base\n" } + : args.includes("--name-only") + ? { + status: 0, + stdout: `${(args.includes("--cached") ? (options.stagedPaths ?? []) : changedPaths).join("\0")}\0`, + } + : args[0] === "rev-parse" + ? args.join("\0") === ["rev-parse", "--quiet", "--verify", "MERGE_HEAD"].join("\0") + ? options.mergeInProgress + ? { status: 0, stdout: `${"e".repeat(40)}\n` } + : { status: 1, stdout: "" } + : args.join("\0") === ["rev-parse", "--verify", "HEAD^2"].join("\0") && + options.pullRequestHeadRevision + ? { status: 0, stdout: `${options.pullRequestHeadRevision}\n` } + : (() => { + throw new Error(`Unexpected revision probe: ${args.join(" ")}`); + })() + : args.includes("--quiet") + ? (args.includes("--cached") && + options.mergeInProgress && + args[3] === SOURCE_REVISION) || + args[3] === (options.headRevision ?? options.pullRequestHeadRevision ?? "HEAD") + ? { status: options.sourceParity === false ? 1 : 0, stdout: "" } + : (() => { + throw new Error(`Unexpected source parity arguments: ${args.join(" ")}`); + })() : (() => { - throw new Error(`Unexpected source parity arguments: ${args.join(" ")}`); - })() - : (() => { - throw new Error(`Unexpected git arguments: ${args.join(" ")}`); - })(), + throw new Error(`Unexpected git arguments: ${args.join(" ")}`); + })(), receipts: RECEIPTS, rootDir, ...(options.headRevision !== null ? { headRevision: options.headRevision ?? "HEAD" } : {}), }); } + it("does not require image qualification for audit-only lock fingerprints", () => { + fs.writeFileSync( + path.join(rootDir, "ci/reviewed-npm-audit.json"), + JSON.stringify({ ...AUDIT_CONFIG, lockedGraphs: [{ lockSha256: "f".repeat(64) }] }), + ); + expect(() => run(["ci/reviewed-npm-audit.json"])).not.toThrow(); + }); + + it.each([ + ["npmVersion", "12.0.3"], + ["npmIntegrity", `sha512-${"B".repeat(86)}==`], + ["npmArchiveSha256", "f".repeat(64)], + ])("still requires qualification when %s changes", (field, value) => { + fs.writeFileSync( + path.join(rootDir, "ci/reviewed-npm-audit.json"), + JSON.stringify({ ...AUDIT_CONFIG, [field]: value }), + ); + expect(() => run(["ci/reviewed-npm-audit.json"])).toThrow( + "Pi image inputs changed without refreshing both qualification receipts", + ); + }); + + it.each([ + ["malformed JSON", "{"], + [ + "unreviewed registry", + JSON.stringify({ ...AUDIT_CONFIG, registryOrigin: "https://example.com/" }), + ], + ])("does not skip validation for %s", (_label, contents) => { + fs.writeFileSync(path.join(rootDir, "ci/reviewed-npm-audit.json"), contents); + expect(() => run(["ci/reviewed-npm-audit.json"])).toThrow(); + }); + it.each([ ["copied source", "protected/app/config.json"], ["Pi Dockerfile", "agents/pi/Dockerfile"], From 72af03c100723111004214a9f4ae672b20bbd1b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 18:38:01 -0700 Subject: [PATCH 14/18] test(deps): refresh fixtures for the fast-uri security update Refresh the OpenClaw audit fixture and exact MCP artifact checksums for fast-uri 3.1.7. Preserve all audit and artifact assertions. Validation: 45 audit-workflow tests and 21 MCP image-contract tests passed. The reviewed MCP bundle reproducibility check passed. Signed-off-by: Aaron Erickson --- ...nclaw-2026.9.1-package-lock.json.gz.base64 | 1473 ++++++++--------- .../mcp-tool-discovery-image-contract.test.ts | 6 +- 2 files changed, 734 insertions(+), 745 deletions(-) diff --git a/test/fixtures/openclaw-2026.9.1-package-lock.json.gz.base64 b/test/fixtures/openclaw-2026.9.1-package-lock.json.gz.base64 index 1be12d3c218..8960802d741 100644 --- a/test/fixtures/openclaw-2026.9.1-package-lock.json.gz.base64 +++ b/test/fixtures/openclaw-2026.9.1-package-lock.json.gz.base64 @@ -1,742 +1,731 @@ -H4sIAAAAAAAAA9y9Z3PjytIm+H1+xYn7cThsGAIgOLHv7sARhp4EQLOxswHvvcfM7G9fkpJapCRK -INXd58yNe24LNovIJysrKysz63/8p7/++leoBMa//uvxrxFEmq9U/Sg2wvNBWoS5c7z5X06PlUaa -OVF4ehL8cfzf01U/0jzT8Q35593B+XpqJIWTGtnxQp4WxvlarGieYp2v/Y/j+fHKz6POP+P86Ic/ -5XzHdzQjzM50iGNzttGHL2/rxpGmfiTrXPyK852Xxk5vwiCM/Rj9gP71fPt//XzfCC0nfPtqGOnn -Bv/P/4DhH8f/Bn/9H/Dgr//5P/86XkB+QOgP8HgBfb6AHgmDPwn/pwvyZzr/bxDphW9kwH87MirM -Nd85/hunUR5pkQ9kunfJsQs2QD+Qy+88Mj7yS0M/3bLzPM7+KwCkhuVkedr8COPAzX5EqXWzEaB/ -+rd/Jvojt9pXwk6YG1bq5M2JcmYrKAT3AaMwC73q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sMZyE1J0XjUiAm3kVM28hHDSeQJO +UMzgPYPb4JR8ruXNjE4P7CBr/fPV6qanF+fn8hzEX/7rv/7yH2+xev/p8u+//+l/ANRLpvX4jgIA diff --git a/test/mcp/mcp-tool-discovery-image-contract.test.ts b/test/mcp/mcp-tool-discovery-image-contract.test.ts index 3ce53255230..50968669bdc 100644 --- a/test/mcp/mcp-tool-discovery-image-contract.test.ts +++ b/test/mcp/mcp-tool-discovery-image-contract.test.ts @@ -222,15 +222,15 @@ describe("MCP tool discovery image contract", () => { relativePath: "managed-startup-image-runtime.bundle", }, { - expectedHash: "1ff9641d9bba01bd16459fc76b777b3719d2ffa0743c4d23874ccc955ee017f8", + expectedHash: "724e7d681c32d786dab45d392c43311aff5083470f763bb385d428826f4393b0", relativePath: "mcp-tool-discovery/BUNDLED_PACKAGES.json", }, { - expectedHash: "9713deef264ef0faea967655e497c73fa6889057e9df827092722d6f00da8987", + expectedHash: "3aff9216ba63fa3238e0db9d907b8ef0bf68243445031247f1b3b0a58a022283", relativePath: "mcp-tool-discovery/THIRD_PARTY_LICENSES.txt", }, { - expectedHash: "825b6050754fd67f9119b4844523570af97a25599576d823bbdd9d583255d1a0", + expectedHash: "062b50521af428e3738d26aff88f3b58e64fbfd1f4af2088044b00eeb3bca607", relativePath: "mcp-tool-discovery/mcp-tool-discovery.bundle", }, ])("pins the reviewed image runtime artifacts exactly", ({ expectedHash, relativePath }) => { From b06c2a1f5af87d6ad836d4c35f4456902bd3dd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 22:47:15 -0700 Subject: [PATCH 15/18] merge: resolve main integration conflicts Use the current main audit authority and workflow contracts to resolve the merge conflicts. Signed-off-by: Aaron Erickson --- .github/workflows/managed-images.yaml | 8 ++--- .github/workflows/pr.yaml | 2 +- ci/e2e-assertion-budget.json | 34 +++++++++---------- ...managed-image-publication-workflow.test.ts | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/managed-images.yaml b/.github/workflows/managed-images.yaml index 1088dfe4e68..d5c34ca41dc 100644 --- a/.github/workflows/managed-images.yaml +++ b/.github/workflows/managed-images.yaml @@ -101,7 +101,7 @@ jobs: - name: Checkout npm audit code from the base commit uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - ref: 2d41c091cef0b07584526f747641565a9b10ac5f + ref: d60ee0bb36e582f83846f41a1b7e94719fcd89f6 path: .trusted-reviewed-npm-audit persist-credentials: false sparse-checkout: | @@ -121,7 +121,7 @@ jobs: shell: bash env: CANDIDATE_SHA: ${{ github.event.pull_request.head.sha }} - REVIEWED_AUDIT_SHA: 2d41c091cef0b07584526f747641565a9b10ac5f + REVIEWED_AUDIT_SHA: d60ee0bb36e582f83846f41a1b7e94719fcd89f6 run: | set -euo pipefail [[ "$CANDIDATE_SHA" =~ ^[a-f0-9]{40}$ ]] @@ -544,7 +544,7 @@ jobs: if: matrix.agent == 'openclaw' uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - ref: 2d41c091cef0b07584526f747641565a9b10ac5f + ref: d60ee0bb36e582f83846f41a1b7e94719fcd89f6 path: .trusted-mcporter-audit persist-credentials: false sparse-checkout: | @@ -572,7 +572,7 @@ jobs: raw="$RUNNER_TEMP/reviewed-npm-audit/mcporter-runtime.raw.json" policy="$RUNNER_TEMP/reviewed-npm-audit/mcporter-runtime.policy.json" trusted_root="$GITHUB_WORKSPACE/.trusted-mcporter-audit" - test "$(git -C "$trusted_root" rev-parse --verify HEAD)" = '2d41c091cef0b07584526f747641565a9b10ac5f' + test "$(git -C "$trusted_root" rev-parse --verify HEAD)" = 'd60ee0bb36e582f83846f41a1b7e94719fcd89f6' node --experimental-strip-types --no-warnings \ "$trusted_root/scripts/lib/npm-audit-receipt.mts" \ --receipt "$receipt" \ diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 54b9f365e20..3d690fbefc0 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -531,7 +531,7 @@ jobs: sparse-checkout-cone-mode: false - name: Audit reviewed production npm graphs - uses: NVIDIA/NemoClaw/.github/actions/ci-reviewed-npm-audit@2d41c091cef0b07584526f747641565a9b10ac5f + uses: NVIDIA/NemoClaw/.github/actions/ci-reviewed-npm-audit@d60ee0bb36e582f83846f41a1b7e94719fcd89f6 with: target-root: ${{ github.workspace }} report-dir: artifacts/reviewed-npm-audit diff --git a/ci/e2e-assertion-budget.json b/ci/e2e-assertion-budget.json index 21f9c1372b6..5f4490e6763 100644 --- a/ci/e2e-assertion-budget.json +++ b/ci/e2e-assertion-budget.json @@ -15,28 +15,28 @@ "testFileCount": 77, "liveFileCount": 186, "direct": { - "expectCalls": 1287, - "matcherAssertions": 1266, - "nodeAssertions": 103, - "namedAssertionHelpers": 439, + "expectCalls": 1278, + "matcherAssertions": 1257, + "nodeAssertions": 104, + "namedAssertionHelpers": 436, "failCalls": 0, "throwGuards": 60, - "objectFieldAssertions": 166, - "assertionPoints": 2034, + "objectFieldAssertions": 163, + "assertionPoints": 2020, "generatedProbeBlocks": 91, "generatedProbeConditions": 221 }, "unique": { - "expectCalls": 1722, - "matcherAssertions": 1696, - "nodeAssertions": 126, - "namedAssertionHelpers": 684, + "expectCalls": 1703, + "matcherAssertions": 1677, + "nodeAssertions": 127, + "namedAssertionHelpers": 681, "failCalls": 1, - "throwGuards": 542, - "objectFieldAssertions": 243, - "assertionPoints": 3292, + "throwGuards": 540, + "objectFieldAssertions": 240, + "assertionPoints": 3266, "generatedProbeBlocks": 213, - "generatedProbeConditions": 729 + "generatedProbeConditions": 726 }, "fileMetricOrder": [ "directExpectCalls", @@ -49,12 +49,12 @@ "test/e2e/live/agent-turn-latency.test.ts": [15,15,15,26,1], "test/e2e/live/bedrock-runtime-compatible-anthropic.test.ts": [11,33,12,55,4], "test/e2e/live/bootstrap-install-smoke.test.ts": [0,0,14,30,3], - "test/e2e/live/brave-search.test.ts": [17,20,27,32,1], + "test/e2e/live/brave-search.test.ts": [5,10,5,10,1], "test/e2e/live/brev-workspace-cleanup.test.ts": [0,0,0,1,0], "test/e2e/live/channels-add-remove.test.ts": [40,90,40,92,0], "test/e2e/live/channels-stop-start.test.ts": [0,0,26,99,9], "test/e2e/live/cloud-onboard.test.ts": [22,24,22,24,1], - "test/e2e/live/common-egress-agent.test.ts": [25,65,27,74,5], + "test/e2e/live/common-egress-agent.test.ts": [25,61,27,70,5], "test/e2e/live/concurrent-gateway-ports.test.ts": [34,43,34,43,6], "test/e2e/live/cron-preflight-inference-local.test.ts": [3,8,3,8,0], "test/e2e/live/dashboard-remote-bind.test.ts": [16,14,16,16,3], @@ -63,7 +63,7 @@ "test/e2e/live/external-gateway-health.test.ts": [4,5,4,11,0], "test/e2e/live/full-e2e.test.ts": [27,31,28,61,7], "test/e2e/live/gpu-double-onboard.test.ts": [21,24,21,24,0], - "test/e2e/live/gpu-e2e.test.ts": [36,44,69,90,3], + "test/e2e/live/gpu-e2e.test.ts": [39,44,72,90,3], "test/e2e/live/hermes-discord.test.ts": [10,25,17,64,14], "test/e2e/live/hermes-e2e.test.ts": [82,93,112,127,3], "test/e2e/live/hermes-gpu-startup.test.ts": [19,27,59,84,12], diff --git a/test/inference/managed/managed-image-publication-workflow.test.ts b/test/inference/managed/managed-image-publication-workflow.test.ts index 556dc420a5f..6e25a2e6ce9 100644 --- a/test/inference/managed/managed-image-publication-workflow.test.ts +++ b/test/inference/managed/managed-image-publication-workflow.test.ts @@ -32,7 +32,7 @@ import type { Job, Workflow } from "../../helpers/managed-image-publication-work const fullShaAction = /^[^@]+@[0-9a-f]{40}$/iu; const reviewedAuditAction = "NVIDIA/NemoClaw/.github/actions/ci-reviewed-npm-audit@"; -const reviewedAuditSha = "2d41c091cef0b07584526f747641565a9b10ac5f"; +const reviewedAuditSha = "d60ee0bb36e582f83846f41a1b7e94719fcd89f6"; function needsOutput(job: string, output: string): string { return `\${{ needs.${job}.outputs.${output} }}`; From dfb95dddac1b5af63d34c7c5fbd856d5d89e167e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 22:50:47 -0700 Subject: [PATCH 16/18] fix(ci): repair existing vLLM qualification setup Reuse the protected build cache's exact OpenClaw base and prepare the GPU runner's OS-managed launch-readiness directory. Restore main's receipt checker and retain the existing vLLM assertion budget without adding tests. Signed-off-by: Aaron Erickson --- .github/workflows/e2e-standard-profile.yaml | 27 +++++ .github/workflows/e2e.yaml | 65 +++++------ ci/e2e-assertion-budget.json | 14 +-- .../pi-qualification-receipt-refresh.mts | 21 +--- .../pi-qualification-receipt-refresh.test.ts | 106 +++++------------- ...ge-protected-runtime-workflow-boundary.mts | 25 ++++- .../standard-profile-workflow-boundary.mts | 46 ++++++++ 7 files changed, 161 insertions(+), 143 deletions(-) diff --git a/.github/workflows/e2e-standard-profile.yaml b/.github/workflows/e2e-standard-profile.yaml index 66294145683..338d0d64090 100644 --- a/.github/workflows/e2e-standard-profile.yaml +++ b/.github/workflows/e2e-standard-profile.yaml @@ -508,6 +508,25 @@ jobs: -u NVIDIA_API_KEY -u NVIDIA_INFERENCE_API_KEY -u BRAVE_API_KEY -u GITHUB_TOKEN \ -u COMPATIBLE_API_KEY bash scripts/install-openshell.sh + - name: Prepare GPU launch-readiness runtime directory + id: gpu_runtime_directory + if: ${{ inputs.catalogue_id == 'gpu-e2e' && inputs.runtime_provider == 'docker' }} + shell: /bin/bash --noprofile --norc -e -o pipefail {0} + run: | + set -euo pipefail + uid="$(/usr/bin/id -u)" + unit="user-runtime-dir@${uid}.service" + prior_state="$(/usr/bin/systemctl show "$unit" --property=ActiveState --value)" + if [[ "$prior_state" != "active" ]]; then + [[ "$prior_state" == "inactive" ]] + printf 'started=true\n' >> "$GITHUB_OUTPUT" + /usr/bin/sudo -n /usr/bin/systemctl start "$unit" + fi + /usr/bin/systemctl is-active --quiet "$unit" + runtime_directory="/run/user/$uid" + [[ -d "$runtime_directory" && ! -L "$runtime_directory" ]] + [[ "$(/usr/bin/stat -c '%u:%a' "$runtime_directory")" == "${uid}:700" ]] + - name: Run catalogue E2E target env: INSTALL_MODE: ${{ inputs.install_mode }} @@ -635,6 +654,14 @@ jobs: with: enabled: "true" + - name: Restore GPU launch-readiness runtime directory + if: ${{ always() && inputs.catalogue_id == 'gpu-e2e' && inputs.runtime_provider == 'docker' && steps.gpu_runtime_directory.outputs.started == 'true' }} + shell: /bin/bash --noprofile --norc -e -o pipefail {0} + run: | + set -euo pipefail + uid="$(/usr/bin/id -u)" + /usr/bin/sudo -n /usr/bin/systemctl stop "user-runtime-dir@${uid}.service" + - name: Clean up Docker auth if: always() shell: bash diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 7550a03edf9..8389e456d1a 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -4878,50 +4878,43 @@ jobs: - id: runtime-bases name: Resolve digest-pinned amd64 runtime base images env: + CHECKOUT_SHA: ${{ inputs.checkout_sha || github.sha }} DCODE_BASE_REF: ${{ needs.base-image-publication.outputs.dcode_base_ref }} + HERMES_BASE_REF: ghcr.io/nvidia/nemoclaw/hermes-sandbox-base@${{ steps.runtime-hermes-base.outputs.digest }} shell: bash run: | set -euo pipefail work_dir="$(mktemp -d "${RUNNER_TEMP}/nemoclaw-runtime-bases.XXXXXX")" trap 'rm -rf -- "$work_dir"' EXIT - resolve_base() { - local output_name="$1" - local alias="$2" - local repository="$3" - local alias_raw="$work_dir/${output_name}-alias.raw" - local exact_raw="$work_dir/${output_name}-exact.raw" - docker buildx imagetools inspect "$alias" --raw > "$alias_raw" - local digest - digest="$( - jq -er ' - if ( - .mediaType == "application/vnd.oci.image.index.v1+json" or - .mediaType == "application/vnd.docker.distribution.manifest.list.v2+json" - ) then - [.manifests[] | select(.platform.os == "linux" and .platform.architecture == "amd64")] - | if length == 1 then .[0].digest else error("not one exact amd64 descriptor") end - else - error("base alias is not a platform index") - end - ' "$alias_raw" - )" - [[ "$digest" =~ ^sha256:[a-f0-9]{64}$ ]] || { - echo "::error::${output_name} base alias returned an invalid digest" >&2 - exit 1 - } - local reference="${repository}@${digest}" - docker buildx imagetools inspect "$reference" --raw > "$exact_raw" - [[ "sha256:$(sha256sum "$exact_raw" | awk '{print $1}')" == "$digest" ]] || { - echo "::error::${output_name} exact base bytes do not match the selected digest" >&2 - exit 1 - } - printf '%s=%s\n' "$output_name" "$reference" >> "$GITHUB_OUTPUT" + # The mutable base alias can move after the startup job prepared this cache. + # Reuse that job's exact OpenClaw base and preserve the other identity checks. + prepared_inputs="$NEMOCLAW_PROTECTED_MANAGED_IMAGE_BUILD_CACHE/prepared-inputs" + [[ -f "$prepared_inputs" && ! -L "$prepared_inputs" ]] || { + echo "::error::protected build cache has no safe prepared-input identity" >&2 + exit 1 } - - resolve_base openclaw \ - ghcr.io/nvidia/nemoclaw/sandbox-base:latest \ - ghcr.io/nvidia/nemoclaw/sandbox-base + read -r cached_revision cached_platform cached_openclaw cached_hermes cached_dcode extra < "$prepared_inputs" + [[ -z "$extra" && + "$cached_revision" == "$CHECKOUT_SHA" && + "$cached_platform" == "linux/amd64" && + "$cached_hermes" == "$HERMES_BASE_REF" && + "$cached_dcode" == "$DCODE_BASE_REF" && + "$(cat "$prepared_inputs")" == "$cached_revision $cached_platform $cached_openclaw $cached_hermes $cached_dcode" ]] || { + echo "::error::protected build-cache identity does not match this run" >&2 + exit 1 + } + [[ "$cached_openclaw" =~ ^ghcr[.]io/nvidia/nemoclaw/sandbox-base@sha256:[a-f0-9]{64}$ ]] || { + echo "::error::prepared OpenClaw base is not an exact approved image reference" >&2 + exit 1 + } + openclaw_digest="${cached_openclaw##*@}" + docker buildx imagetools inspect "$cached_openclaw" --raw > "$work_dir/openclaw-exact.raw" + [[ "sha256:$(sha256sum "$work_dir/openclaw-exact.raw" | awk '{print $1}')" == "$openclaw_digest" ]] || { + echo "::error::OpenClaw exact base bytes do not match the prepared digest" >&2 + exit 1 + } + printf 'openclaw=%s\n' "$cached_openclaw" >> "$GITHUB_OUTPUT" [[ "$DCODE_BASE_REF" =~ ^ghcr[.]io/nvidia/nemoclaw/langchain-deepagents-code-sandbox-base@sha256:[a-f0-9]{64}$ ]] || { echo "::error::dcode base publication returned an invalid exact reference" >&2 exit 1 diff --git a/ci/e2e-assertion-budget.json b/ci/e2e-assertion-budget.json index 5f4490e6763..af77410a72b 100644 --- a/ci/e2e-assertion-budget.json +++ b/ci/e2e-assertion-budget.json @@ -15,25 +15,25 @@ "testFileCount": 77, "liveFileCount": 186, "direct": { - "expectCalls": 1278, - "matcherAssertions": 1257, + "expectCalls": 1275, + "matcherAssertions": 1254, "nodeAssertions": 104, "namedAssertionHelpers": 436, "failCalls": 0, "throwGuards": 60, - "objectFieldAssertions": 163, + "objectFieldAssertions": 166, "assertionPoints": 2020, "generatedProbeBlocks": 91, "generatedProbeConditions": 221 }, "unique": { - "expectCalls": 1703, - "matcherAssertions": 1677, + "expectCalls": 1700, + "matcherAssertions": 1674, "nodeAssertions": 127, "namedAssertionHelpers": 681, "failCalls": 1, "throwGuards": 540, - "objectFieldAssertions": 240, + "objectFieldAssertions": 243, "assertionPoints": 3266, "generatedProbeBlocks": 213, "generatedProbeConditions": 726 @@ -63,7 +63,7 @@ "test/e2e/live/external-gateway-health.test.ts": [4,5,4,11,0], "test/e2e/live/full-e2e.test.ts": [27,31,28,61,7], "test/e2e/live/gpu-double-onboard.test.ts": [21,24,21,24,0], - "test/e2e/live/gpu-e2e.test.ts": [39,44,72,90,3], + "test/e2e/live/gpu-e2e.test.ts": [36,44,69,90,3], "test/e2e/live/hermes-discord.test.ts": [10,25,17,64,14], "test/e2e/live/hermes-e2e.test.ts": [82,93,112,127,3], "test/e2e/live/hermes-gpu-startup.test.ts": [19,27,59,84,12], diff --git a/scripts/checks/pi-qualification-receipt-refresh.mts b/scripts/checks/pi-qualification-receipt-refresh.mts index 654a56a84ed..640a5bb7302 100644 --- a/scripts/checks/pi-qualification-receipt-refresh.mts +++ b/scripts/checks/pi-qualification-receipt-refresh.mts @@ -16,7 +16,6 @@ import type { } from "../../src/lib/onboard/managed-image/contract.ts"; import * as managedImageContract from "../../src/lib/onboard/managed-image/contract.ts"; import { directDockerfileCopySources } from "../lib/dockerfile-copy-sources.mts"; -import { parseReviewedNpmIdentityConfig } from "../lib/reviewed-npm-audit.mts"; type CandidateAuthorityModule = typeof candidateAuthority & { default?: typeof candidateAuthority }; type ManagedImageContractModule = typeof managedImageContract & { @@ -35,7 +34,6 @@ type GitRunner = (args: readonly string[]) => GitResult; const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../.."); const PI_DOCKERFILES = ["agents/pi/Dockerfile", "agents/pi/Dockerfile.base"] as const; const PI_CANDIDATE_AUTHORITY = "src/lib/agent/candidate-authority.ts"; -const NPM_AUDIT_CONFIG = "ci/reviewed-npm-audit.json"; export const PI_QUALIFICATION_RECEIPTS: readonly { path: string; platform: ManagedImagePlatform; @@ -125,19 +123,6 @@ function piImageSourcePaths(rootDir: string): string[] { return [...new Set([".dockerignore", ...PI_DOCKERFILES, ...copiedSources])].sort(); } -function npmImageIdentityChanged(rootDir: string, git: GitRunner, revision: string): boolean { - const before = requireGitOutput( - git(["show", `${revision}:${NPM_AUDIT_CONFIG}`]), - "Could not read the base npm image identity", - ); - const after = fs.readFileSync(path.join(rootDir, NPM_AUDIT_CONFIG), "utf8"); - // Audit graph fingerprints are not consumed by the image's npm installer. - return ( - JSON.stringify(parseReviewedNpmIdentityConfig(before)) !== - JSON.stringify(parseReviewedNpmIdentityConfig(after)) - ); -} - type ValidatedReceipt = { contract: ManagedImageContractV1; digest: string; @@ -281,10 +266,8 @@ export function checkPiQualificationReceiptRefresh( const revision = mergeBaseRevision(git, baseBranch); const changedPaths = changedPathsFromBase(git, revision); const imageSourcePaths = piImageSourcePaths(rootDir); - const imageInputsChanged = changedPaths.some( - (changedPath) => - imageSourcePaths.some((source) => ownsPath(source, changedPath)) && - (changedPath !== NPM_AUDIT_CONFIG || npmImageIdentityChanged(rootDir, git, revision)), + const imageInputsChanged = changedPaths.some((changedPath) => + imageSourcePaths.some((source) => ownsPath(source, changedPath)), ); const receiptPaths = receipts.map(({ path: receipt }) => receipt); const receiptAuthorityChanged = changedPaths.some( diff --git a/test/repository/pi-qualification-receipt-refresh.test.ts b/test/repository/pi-qualification-receipt-refresh.test.ts index e8f1bf04cc3..b15125eb154 100644 --- a/test/repository/pi-qualification-receipt-refresh.test.ts +++ b/test/repository/pi-qualification-receipt-refresh.test.ts @@ -11,13 +11,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { checkPiQualificationReceiptRefresh } from "../../scripts/checks/pi-qualification-receipt-refresh.mts"; const SOURCE_REVISION = "a".repeat(40); -const AUDIT_CONFIG = { - npmVersion: "12.0.2", - npmIntegrity: `sha512-${"A".repeat(86)}==`, - npmArchiveSha256: "d".repeat(64), - registryOrigin: "https://registry.npmjs.org/", - lockedGraphs: [{ lockSha256: "e".repeat(64) }], -}; const RECEIPTS = [ { path: "ci/pi-amd64.json", platform: "linux/amd64" as const }, { path: "ci/pi-arm64.json", platform: "linux/arm64" as const }, @@ -63,11 +56,7 @@ describe("Pi qualification receipt refresh", () => { fs.mkdirSync(path.join(rootDir, "ci"), { recursive: true }); fs.writeFileSync( path.join(rootDir, "agents/pi/Dockerfile"), - "FROM scratch\nCOPY protected/app /app\nCOPY ci/reviewed-npm-audit.json /ci/reviewed-npm-audit.json\n", - ); - fs.writeFileSync( - path.join(rootDir, "ci/reviewed-npm-audit.json"), - JSON.stringify(AUDIT_CONFIG), + "FROM scratch\nCOPY protected/app /app\n", ); fs.writeFileSync( path.join(rootDir, "agents/pi/Dockerfile.base"), @@ -100,77 +89,42 @@ describe("Pi qualification receipt refresh", () => { acceptedDigests: options.accepted ?? acceptedDigests, baseBranch: "main", git: (args) => - args[0] === "show" - ? { status: 0, stdout: JSON.stringify(AUDIT_CONFIG) } - : args[0] === "merge-base" - ? { status: 0, stdout: "base\n" } - : args.includes("--name-only") - ? { - status: 0, - stdout: `${(args.includes("--cached") ? (options.stagedPaths ?? []) : changedPaths).join("\0")}\0`, - } - : args[0] === "rev-parse" - ? args.join("\0") === ["rev-parse", "--quiet", "--verify", "MERGE_HEAD"].join("\0") - ? options.mergeInProgress - ? { status: 0, stdout: `${"e".repeat(40)}\n` } - : { status: 1, stdout: "" } - : args.join("\0") === ["rev-parse", "--verify", "HEAD^2"].join("\0") && - options.pullRequestHeadRevision - ? { status: 0, stdout: `${options.pullRequestHeadRevision}\n` } - : (() => { - throw new Error(`Unexpected revision probe: ${args.join(" ")}`); - })() - : args.includes("--quiet") - ? (args.includes("--cached") && - options.mergeInProgress && - args[3] === SOURCE_REVISION) || - args[3] === (options.headRevision ?? options.pullRequestHeadRevision ?? "HEAD") - ? { status: options.sourceParity === false ? 1 : 0, stdout: "" } - : (() => { - throw new Error(`Unexpected source parity arguments: ${args.join(" ")}`); - })() + args[0] === "merge-base" + ? { status: 0, stdout: "base\n" } + : args.includes("--name-only") + ? { + status: 0, + stdout: `${(args.includes("--cached") ? (options.stagedPaths ?? []) : changedPaths).join("\0")}\0`, + } + : args[0] === "rev-parse" + ? args.join("\0") === ["rev-parse", "--quiet", "--verify", "MERGE_HEAD"].join("\0") + ? options.mergeInProgress + ? { status: 0, stdout: `${"e".repeat(40)}\n` } + : { status: 1, stdout: "" } + : args.join("\0") === ["rev-parse", "--verify", "HEAD^2"].join("\0") && + options.pullRequestHeadRevision + ? { status: 0, stdout: `${options.pullRequestHeadRevision}\n` } + : (() => { + throw new Error(`Unexpected revision probe: ${args.join(" ")}`); + })() + : args.includes("--quiet") + ? (args.includes("--cached") && + options.mergeInProgress && + args[3] === SOURCE_REVISION) || + args[3] === (options.headRevision ?? options.pullRequestHeadRevision ?? "HEAD") + ? { status: options.sourceParity === false ? 1 : 0, stdout: "" } : (() => { - throw new Error(`Unexpected git arguments: ${args.join(" ")}`); - })(), + throw new Error(`Unexpected source parity arguments: ${args.join(" ")}`); + })() + : (() => { + throw new Error(`Unexpected git arguments: ${args.join(" ")}`); + })(), receipts: RECEIPTS, rootDir, ...(options.headRevision !== null ? { headRevision: options.headRevision ?? "HEAD" } : {}), }); } - it("does not require image qualification for audit-only lock fingerprints", () => { - fs.writeFileSync( - path.join(rootDir, "ci/reviewed-npm-audit.json"), - JSON.stringify({ ...AUDIT_CONFIG, lockedGraphs: [{ lockSha256: "f".repeat(64) }] }), - ); - expect(() => run(["ci/reviewed-npm-audit.json"])).not.toThrow(); - }); - - it.each([ - ["npmVersion", "12.0.3"], - ["npmIntegrity", `sha512-${"B".repeat(86)}==`], - ["npmArchiveSha256", "f".repeat(64)], - ])("still requires qualification when %s changes", (field, value) => { - fs.writeFileSync( - path.join(rootDir, "ci/reviewed-npm-audit.json"), - JSON.stringify({ ...AUDIT_CONFIG, [field]: value }), - ); - expect(() => run(["ci/reviewed-npm-audit.json"])).toThrow( - "Pi image inputs changed without refreshing both qualification receipts", - ); - }); - - it.each([ - ["malformed JSON", "{"], - [ - "unreviewed registry", - JSON.stringify({ ...AUDIT_CONFIG, registryOrigin: "https://example.com/" }), - ], - ])("does not skip validation for %s", (_label, contents) => { - fs.writeFileSync(path.join(rootDir, "ci/reviewed-npm-audit.json"), contents); - expect(() => run(["ci/reviewed-npm-audit.json"])).toThrow(); - }); - it.each([ ["copied source", "protected/app/config.json"], ["Pi Dockerfile", "agents/pi/Dockerfile"], diff --git a/tools/e2e/managed-image-protected-runtime-workflow-boundary.mts b/tools/e2e/managed-image-protected-runtime-workflow-boundary.mts index 473009af679..a93a2795cdb 100644 --- a/tools/e2e/managed-image-protected-runtime-workflow-boundary.mts +++ b/tools/e2e/managed-image-protected-runtime-workflow-boundary.mts @@ -301,18 +301,33 @@ export function validateManagedImageProtectedRuntimeWorkflow(workflow: WorkflowR "Resolve digest-pinned amd64 runtime base images", ); requireValues(errors, `${JOB_ID} runtime base env`, record(bases?.env), { + CHECKOUT_SHA: "${{ inputs.checkout_sha || github.sha }}", DCODE_BASE_REF: "${{ needs.base-image-publication.outputs.dcode_base_ref }}", + HERMES_BASE_REF: + "ghcr.io/nvidia/nemoclaw/hermes-sandbox-base@${{ steps.runtime-hermes-base.outputs.digest }}", }); requireFragments(errors, bases, [ - 'docker buildx imagetools inspect "$alias" --raw', - '.platform.os == "linux" and .platform.architecture == "amd64"', - 'reference="${repository}@${digest}"', - '"sha256:$(sha256sum "$exact_raw" | awk \'{print $1}\')" == "$digest"', - "ghcr.io/nvidia/nemoclaw/sandbox-base:latest", + 'prepared_inputs="$NEMOCLAW_PROTECTED_MANAGED_IMAGE_BUILD_CACHE/prepared-inputs"', + '[[ -f "$prepared_inputs" && ! -L "$prepared_inputs" ]]', + 'read -r cached_revision cached_platform cached_openclaw cached_hermes cached_dcode extra < "$prepared_inputs"', + '[[ -z "$extra" &&', + '"$cached_revision" == "$CHECKOUT_SHA"', + '"$cached_platform" == "linux/amd64"', + '"$cached_hermes" == "$HERMES_BASE_REF"', + '"$cached_dcode" == "$DCODE_BASE_REF"', + '"$(cat "$prepared_inputs")" == "$cached_revision $cached_platform $cached_openclaw $cached_hermes $cached_dcode"', + '[[ "$cached_openclaw" =~ ^ghcr[.]io/nvidia/nemoclaw/sandbox-base@sha256:[a-f0-9]{64}$ ]]', + 'openclaw_digest="${cached_openclaw##*@}"', + 'docker buildx imagetools inspect "$cached_openclaw" --raw > "$work_dir/openclaw-exact.raw"', + '"sha256:$(sha256sum "$work_dir/openclaw-exact.raw" | awk \'{print $1}\')" == "$openclaw_digest"', + 'printf \'openclaw=%s\\n\' "$cached_openclaw" >> "$GITHUB_OUTPUT"', 'docker buildx imagetools inspect "$DCODE_BASE_REF" --raw', 'dcode_digest="${DCODE_BASE_REF##*@}"', 'printf \'dcode=%s\\n\' "$DCODE_BASE_REF" >> "$GITHUB_OUTPUT"', ]); + if (text(bases?.run).includes("ghcr.io/nvidia/nemoclaw/sandbox-base:latest")) { + errors.push(`${JOB_ID} must reuse the OpenClaw base from the prepared build cache`); + } if (text(bases?.run).includes("langchain-deepagents-code-sandbox-base:latest")) { errors.push(`${JOB_ID} must not resolve the DCode base from a mutable alias`); } diff --git a/tools/e2e/standard-profile-workflow-boundary.mts b/tools/e2e/standard-profile-workflow-boundary.mts index 4ea1ba4ff3a..010105ab858 100644 --- a/tools/e2e/standard-profile-workflow-boundary.mts +++ b/tools/e2e/standard-profile-workflow-boundary.mts @@ -338,12 +338,14 @@ function validateProfileWorkflow(errors: string[], profile: WorkflowRecord): voi "Initialize runner comparison telemetry", "Install OpenShell CLI", "Install OpenShell CLI without workflow credentials", + "Prepare GPU launch-readiness runtime directory", "Run catalogue E2E target", "Finalize runner comparison telemetry", "Write E2E evidence manifest", "Upload skill-agent artifacts", "Upload E2E artifacts", "Restore Docker CLI after native Podman E2E", + "Restore GPU launch-readiness runtime directory", "Clean up Docker auth", ]; if ( @@ -606,6 +608,50 @@ function validateProfileWorkflow(errors: string[], profile: WorkflowRecord): voi ); } + const gpuRuntime = requireStep( + errors, + workflowSteps, + "Prepare GPU launch-readiness runtime directory", + ); + const gpuRuntimeScript = [ + "set -euo pipefail", + 'uid="$(/usr/bin/id -u)"', + 'unit="user-runtime-dir@${uid}.service"', + 'prior_state="$(/usr/bin/systemctl show "$unit" --property=ActiveState --value)"', + 'if [[ "$prior_state" != "active" ]]; then', + ' [[ "$prior_state" == "inactive" ]]', + " printf 'started=true\\n' >> \"$GITHUB_OUTPUT\"", + ' /usr/bin/sudo -n /usr/bin/systemctl start "$unit"', + "fi", + '/usr/bin/systemctl is-active --quiet "$unit"', + 'runtime_directory="/run/user/$uid"', + '[[ -d "$runtime_directory" && ! -L "$runtime_directory" ]]', + '[[ "$(/usr/bin/stat -c \'%u:%a\' "$runtime_directory")" == "${uid}:700" ]]', + ].join("\n"); + const restoreGpuRuntime = requireStep( + errors, + workflowSteps, + "Restore GPU launch-readiness runtime directory", + ); + const restoreGpuRuntimeScript = [ + "set -euo pipefail", + 'uid="$(/usr/bin/id -u)"', + '/usr/bin/sudo -n /usr/bin/systemctl stop "user-runtime-dir@${uid}.service"', + ].join("\n"); + if ( + gpuRuntime?.id !== "gpu_runtime_directory" || + gpuRuntime.if !== + "${{ inputs.catalogue_id == 'gpu-e2e' && inputs.runtime_provider == 'docker' }}" || + gpuRuntime.shell !== "/bin/bash --noprofile --norc -e -o pipefail {0}" || + String(gpuRuntime.run).trim() !== gpuRuntimeScript || + restoreGpuRuntime?.if !== + "${{ always() && inputs.catalogue_id == 'gpu-e2e' && inputs.runtime_provider == 'docker' && steps.gpu_runtime_directory.outputs.started == 'true' }}" || + restoreGpuRuntime.shell !== "/bin/bash --noprofile --norc -e -o pipefail {0}" || + String(restoreGpuRuntime.run).trim() !== restoreGpuRuntimeScript + ) { + errors.push("GPU E2E must prepare and restore only its OS-managed user runtime directory"); + } + const execute = requireStep(errors, workflowSteps, "Run catalogue E2E target"); const executeEnv = record(execute?.env); if ( From 0bbcbee5e606369dc731789eab466a2da9d6da88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 23:21:18 -0700 Subject: [PATCH 17/18] fix(ci): supply existing cache fixture inputs Provide the prepared cache identity required by the existing runtime base resolver test. Keep the existing cases and assertions unchanged. Signed-off-by: Aaron Erickson --- .../images/protected-managed-image-contract.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/platform/images/protected-managed-image-contract.test.ts b/test/platform/images/protected-managed-image-contract.test.ts index bdf50ac5a65..96f4c1c5bef 100644 --- a/test/platform/images/protected-managed-image-contract.test.ts +++ b/test/platform/images/protected-managed-image-contract.test.ts @@ -80,6 +80,16 @@ function runBaseResolution(jobId: string, stepName: string) { mkdirSync(fakeBin); mkdirSync(runnerTemp); writeFileSync(outputPath, ""); + writeFileSync( + path.join(fixture, "prepared-inputs"), + [ + HEAD_SHA, + "linux/amd64", + `ghcr.io/nvidia/nemoclaw/sandbox-base@${PLATFORM_DIGESTS.openclaw}`, + `ghcr.io/nvidia/nemoclaw/hermes-sandbox-base@${PLATFORM_DIGESTS.hermes}`, + DCODE_BASE_REF, + ].join(" ") + "\n", + ); writeFileSync( path.join(fixture, "agents", "hermes", "Dockerfile"), `ARG BASE_IMAGE=${REVIEWED_HERMES_INDEX}\n`, @@ -124,11 +134,14 @@ printf '%s %s\n' "$digest" "$1" encoding: "utf8", env: { ...process.env, + CHECKOUT_SHA: HEAD_SHA, DCODE_BASE_CONTRACT: JSON.stringify({ platformReferences: { "linux/amd64": DCODE_BASE_REF }, }), DCODE_BASE_REF, GITHUB_OUTPUT: outputPath, + HERMES_BASE_REF: `ghcr.io/nvidia/nemoclaw/hermes-sandbox-base@${PLATFORM_DIGESTS.hermes}`, + NEMOCLAW_PROTECTED_MANAGED_IMAGE_BUILD_CACHE: fixture, PATH: `${fakeBin}:${process.env.PATH ?? ""}`, PLATFORM: "linux/amd64", RUNNER_TEMP: runnerTemp, From 445ff46def20d6c80442a63b63e1fe92f7b4bd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20Erickson=20=F0=9F=A6=9E?= Date: Mon, 28 Sep 2026 23:55:19 -0700 Subject: [PATCH 18/18] fix(ci): keep the GPU user runtime active during qualification Keep the OS-managed runtime directory alive through its user manager. Restore only a user manager started by this GPU job. Existing tests and readiness checks remain unchanged. Signed-off-by: Aaron Erickson --- .github/workflows/e2e-standard-profile.yaml | 4 ++-- tools/e2e/standard-profile-workflow-boundary.mts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-standard-profile.yaml b/.github/workflows/e2e-standard-profile.yaml index 338d0d64090..97eac75e49c 100644 --- a/.github/workflows/e2e-standard-profile.yaml +++ b/.github/workflows/e2e-standard-profile.yaml @@ -515,7 +515,7 @@ jobs: run: | set -euo pipefail uid="$(/usr/bin/id -u)" - unit="user-runtime-dir@${uid}.service" + unit="user@${uid}.service" prior_state="$(/usr/bin/systemctl show "$unit" --property=ActiveState --value)" if [[ "$prior_state" != "active" ]]; then [[ "$prior_state" == "inactive" ]] @@ -660,7 +660,7 @@ jobs: run: | set -euo pipefail uid="$(/usr/bin/id -u)" - /usr/bin/sudo -n /usr/bin/systemctl stop "user-runtime-dir@${uid}.service" + /usr/bin/sudo -n /usr/bin/systemctl stop "user@${uid}.service" - name: Clean up Docker auth if: always() diff --git a/tools/e2e/standard-profile-workflow-boundary.mts b/tools/e2e/standard-profile-workflow-boundary.mts index 010105ab858..700f0ea2efc 100644 --- a/tools/e2e/standard-profile-workflow-boundary.mts +++ b/tools/e2e/standard-profile-workflow-boundary.mts @@ -616,7 +616,7 @@ function validateProfileWorkflow(errors: string[], profile: WorkflowRecord): voi const gpuRuntimeScript = [ "set -euo pipefail", 'uid="$(/usr/bin/id -u)"', - 'unit="user-runtime-dir@${uid}.service"', + 'unit="user@${uid}.service"', 'prior_state="$(/usr/bin/systemctl show "$unit" --property=ActiveState --value)"', 'if [[ "$prior_state" != "active" ]]; then', ' [[ "$prior_state" == "inactive" ]]', @@ -636,7 +636,7 @@ function validateProfileWorkflow(errors: string[], profile: WorkflowRecord): voi const restoreGpuRuntimeScript = [ "set -euo pipefail", 'uid="$(/usr/bin/id -u)"', - '/usr/bin/sudo -n /usr/bin/systemctl stop "user-runtime-dir@${uid}.service"', + '/usr/bin/sudo -n /usr/bin/systemctl stop "user@${uid}.service"', ].join("\n"); if ( gpuRuntime?.id !== "gpu_runtime_directory" ||