jishushell 0.5.15 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile.hermes-slim +2 -5
- package/apps/anythingllm-container.yaml +11 -13
- package/apps/browserless-chromium-container.yaml +2 -2
- package/apps/filebrowser-container.yaml +9 -0
- package/apps/jishu-kb-container.yaml +284 -0
- package/apps/ollama-binary.yaml +44 -0
- package/apps/ollama-with-hollama-binary.yaml +45 -1
- package/apps/openclaw-container.yaml +2 -1
- package/apps/searxng-container.yaml +1 -1
- package/apps/weknora-container.yaml +8 -2
- package/dependencies/jishushell-panel-0.6.5.tgz +0 -0
- package/dist/cli/app.js +325 -54
- package/dist/cli/app.js.map +1 -1
- package/dist/cli/backup.js +109 -139
- package/dist/cli/backup.js.map +1 -1
- package/dist/cli/{panel.d.ts → core.d.ts} +6 -4
- package/dist/cli/{panel.js → core.js} +535 -90
- package/dist/cli/core.js.map +1 -0
- package/dist/cli/doctor.js +182 -72
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/llm.d.ts +1 -18
- package/dist/cli/llm.js +33 -82
- package/dist/cli/llm.js.map +1 -1
- package/dist/cli.js +25 -2
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +35 -30
- package/dist/config.js +167 -108
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -4
- package/dist/constants.js.map +1 -1
- package/dist/control.d.ts +6 -6
- package/dist/control.js +4 -4
- package/dist/control.js.map +1 -1
- package/dist/core.d.ts +5 -0
- package/dist/core.js +6 -0
- package/dist/core.js.map +1 -0
- package/dist/install.d.ts +2 -9
- package/dist/install.js +101 -26
- package/dist/install.js.map +1 -1
- package/dist/routes/agent-apps.d.ts +2 -3
- package/dist/routes/agent-apps.js +2 -3
- package/dist/routes/agent-apps.js.map +1 -1
- package/dist/routes/apps.js +13 -55
- package/dist/routes/apps.js.map +1 -1
- package/dist/routes/auth.d.ts +1 -3
- package/dist/routes/auth.js +6 -13
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/backup.js +137 -334
- package/dist/routes/backup.js.map +1 -1
- package/dist/routes/external-mounts.js +6 -6
- package/dist/routes/external-mounts.js.map +1 -1
- package/dist/routes/instances.d.ts +2 -1
- package/dist/routes/instances.js +407 -593
- package/dist/routes/instances.js.map +1 -1
- package/dist/routes/internal.js +12 -16
- package/dist/routes/internal.js.map +1 -1
- package/dist/routes/llm-proxy.d.ts +2 -0
- package/dist/routes/llm-proxy.js +271 -0
- package/dist/routes/llm-proxy.js.map +1 -0
- package/dist/routes/llm.d.ts +1 -1
- package/dist/routes/llm.js +54 -75
- package/dist/routes/llm.js.map +1 -1
- package/dist/{services/runtime/adapters → routes}/openclaw-routes.d.ts +3 -4
- package/dist/{services/runtime/adapters → routes}/openclaw-routes.js +22 -16
- package/dist/routes/openclaw-routes.js.map +1 -0
- package/dist/routes/runtime.js +8 -1
- package/dist/routes/runtime.js.map +1 -1
- package/dist/routes/setup.js +47 -62
- package/dist/routes/setup.js.map +1 -1
- package/dist/routes/system.js +157 -3
- package/dist/routes/system.js.map +1 -1
- package/dist/server.d.ts +2 -0
- package/dist/server.js +93 -150
- package/dist/server.js.map +1 -1
- package/dist/services/agent-apps/catalog.d.ts +3 -0
- package/dist/services/agent-apps/catalog.js +40 -13
- package/dist/services/agent-apps/catalog.js.map +1 -1
- package/dist/services/agent-apps/installers/adapter-probes.d.ts +1 -1
- package/dist/services/agent-apps/installers/adapter-probes.js +9 -2
- package/dist/services/agent-apps/installers/adapter-probes.js.map +1 -1
- package/dist/services/agent-apps/installers/adapter.js +3 -3
- package/dist/services/agent-apps/installers/adapter.js.map +1 -1
- package/dist/services/agent-apps/installers/shell-script.d.ts +1 -1
- package/dist/services/agent-apps/installers/shell-script.js +20 -3
- package/dist/services/agent-apps/installers/shell-script.js.map +1 -1
- package/dist/services/agent-apps/types.d.ts +3 -0
- package/dist/services/app/app-compiler.js +17 -4
- package/dist/services/app/app-compiler.js.map +1 -1
- package/dist/services/app/app-manager.d.ts +36 -18
- package/dist/services/app/app-manager.js +489 -223
- package/dist/services/app/app-manager.js.map +1 -1
- package/dist/services/app/custom-manager.js +133 -36
- package/dist/services/app/custom-manager.js.map +1 -1
- package/dist/services/app/hermes-agent-manager.js +27 -20
- package/dist/services/app/hermes-agent-manager.js.map +1 -1
- package/dist/services/app/ollama-manager.js +31 -14
- package/dist/services/app/ollama-manager.js.map +1 -1
- package/dist/services/app/openclaw-manager.js +50 -30
- package/dist/services/app/openclaw-manager.js.map +1 -1
- package/dist/services/app/paths.d.ts +5 -25
- package/dist/services/app/paths.js +8 -36
- package/dist/services/app/paths.js.map +1 -1
- package/dist/services/app/provide-resolver.js +32 -9
- package/dist/services/app/provide-resolver.js.map +1 -1
- package/dist/services/app/types.d.ts +2 -0
- package/dist/services/app-config-admin.d.ts +17 -0
- package/dist/services/app-config-admin.js +177 -0
- package/dist/services/app-config-admin.js.map +1 -0
- package/dist/services/app-create-from-installed.d.ts +23 -0
- package/dist/services/app-create-from-installed.js +75 -0
- package/dist/services/app-create-from-installed.js.map +1 -0
- package/dist/services/backup-admin.d.ts +101 -0
- package/dist/services/backup-admin.js +259 -0
- package/dist/services/backup-admin.js.map +1 -0
- package/dist/services/backup-manager.d.ts +1 -1
- package/dist/services/backup-manager.js +55 -17
- package/dist/services/backup-manager.js.map +1 -1
- package/dist/services/capability-endpoint-validator.js +15 -5
- package/dist/services/capability-endpoint-validator.js.map +1 -1
- package/dist/services/capability-registry.d.ts +7 -84
- package/dist/services/capability-registry.js +126 -263
- package/dist/services/capability-registry.js.map +1 -1
- package/dist/services/capability-sync.d.ts +4 -0
- package/dist/services/capability-sync.js +220 -0
- package/dist/services/capability-sync.js.map +1 -0
- package/dist/services/connection-admin.d.ts +74 -0
- package/dist/services/connection-admin.js +287 -0
- package/dist/services/connection-admin.js.map +1 -0
- package/dist/services/connection-apply.d.ts +1 -1
- package/dist/services/connection-apply.js +24 -28
- package/dist/services/connection-apply.js.map +1 -1
- package/dist/services/connection-transactor.js +4 -1
- package/dist/services/connection-transactor.js.map +1 -1
- package/dist/services/core-manager.d.ts +50 -0
- package/dist/services/{panel-manager.js → core-manager.js} +73 -124
- package/dist/services/core-manager.js.map +1 -0
- package/dist/services/files-manager.d.ts +2 -2
- package/dist/services/files-manager.js +104 -23
- package/dist/services/files-manager.js.map +1 -1
- package/dist/services/instance-admin.d.ts +26 -0
- package/dist/services/instance-admin.js +218 -0
- package/dist/services/instance-admin.js.map +1 -0
- package/dist/services/instance-manager.d.ts +7 -6
- package/dist/services/instance-manager.js +114 -41
- package/dist/services/instance-manager.js.map +1 -1
- package/dist/services/llm-proxy/adapters.js +5 -4
- package/dist/services/llm-proxy/adapters.js.map +1 -1
- package/dist/services/llm-proxy/index.d.ts +8 -77
- package/dist/services/llm-proxy/index.js +12 -816
- package/dist/services/llm-proxy/index.js.map +1 -1
- package/dist/services/llm-proxy/instance-proxy.d.ts +45 -0
- package/dist/services/llm-proxy/instance-proxy.js +575 -0
- package/dist/services/llm-proxy/instance-proxy.js.map +1 -0
- package/dist/services/llm-proxy/providers.d.ts +21 -0
- package/dist/services/llm-proxy/providers.js +96 -0
- package/dist/services/llm-proxy/providers.js.map +1 -0
- package/dist/services/llm-proxy/proxy-runtime.d.ts +12 -0
- package/dist/services/llm-proxy/proxy-runtime.js +65 -0
- package/dist/services/llm-proxy/proxy-runtime.js.map +1 -0
- package/dist/services/llm-proxy/sse.d.ts +13 -3
- package/dist/services/llm-proxy/sse.js.map +1 -1
- package/dist/services/llm-proxy/validate-key.d.ts +41 -0
- package/dist/services/llm-proxy/validate-key.js +669 -0
- package/dist/services/llm-proxy/validate-key.js.map +1 -0
- package/dist/services/macos-launchd.d.ts +100 -0
- package/dist/services/macos-launchd.js +312 -0
- package/dist/services/macos-launchd.js.map +1 -0
- package/dist/services/nomad-manager.d.ts +57 -33
- package/dist/services/nomad-manager.js +563 -347
- package/dist/services/nomad-manager.js.map +1 -1
- package/dist/services/organize/store.js +1 -1
- package/dist/services/process-manager.js +1 -1
- package/dist/services/runtime/adapters/custom.js +99 -1
- package/dist/services/runtime/adapters/custom.js.map +1 -1
- package/dist/services/runtime/adapters/hermes.d.ts +9 -8
- package/dist/services/runtime/adapters/hermes.js +255 -100
- package/dist/services/runtime/adapters/hermes.js.map +1 -1
- package/dist/services/runtime/adapters/openclaw.d.ts +69 -8
- package/dist/services/runtime/adapters/openclaw.js +899 -279
- package/dist/services/runtime/adapters/openclaw.js.map +1 -1
- package/dist/services/runtime/instance.js +14 -1
- package/dist/services/runtime/instance.js.map +1 -1
- package/dist/services/runtime/job-id.d.ts +9 -0
- package/dist/services/runtime/job-id.js +15 -0
- package/dist/services/runtime/job-id.js.map +1 -0
- package/dist/services/runtime/mcp-shims/drive-shim.d.ts +7 -7
- package/dist/services/runtime/mcp-shims/drive-shim.js +36 -35
- package/dist/services/runtime/mcp-shims/drive-shim.js.map +1 -1
- package/dist/services/runtime/mcp-shims/jishukb-shim.d.ts +48 -0
- package/dist/services/runtime/mcp-shims/jishukb-shim.js +723 -0
- package/dist/services/runtime/mcp-shims/jishukb-shim.js.map +1 -0
- package/dist/services/runtime/mcp-shims/mcporter-lite.d.ts +24 -0
- package/dist/services/runtime/mcp-shims/mcporter-lite.js +276 -0
- package/dist/services/runtime/mcp-shims/mcporter-lite.js.map +1 -0
- package/dist/services/runtime/types.d.ts +6 -15
- package/dist/services/runtime-identity.d.ts +13 -0
- package/dist/services/runtime-identity.js +166 -0
- package/dist/services/runtime-identity.js.map +1 -0
- package/dist/services/runtime-repair.d.ts +52 -0
- package/dist/services/runtime-repair.js +352 -0
- package/dist/services/runtime-repair.js.map +1 -0
- package/dist/services/setup-manager.d.ts +27 -5
- package/dist/services/setup-manager.js +811 -173
- package/dist/services/setup-manager.js.map +1 -1
- package/dist/services/suggestions.js +1 -1
- package/dist/services/system-ollama-provider.d.ts +14 -0
- package/dist/services/system-ollama-provider.js +125 -0
- package/dist/services/system-ollama-provider.js.map +1 -0
- package/dist/services/system-reconciler.d.ts +72 -0
- package/dist/services/system-reconciler.js +600 -0
- package/dist/services/system-reconciler.js.map +1 -0
- package/dist/services/telemetry/activation.d.ts +2 -2
- package/dist/services/telemetry/activation.js +6 -6
- package/dist/services/telemetry/activation.js.map +1 -1
- package/dist/services/telemetry/device-fingerprint.js +6 -1
- package/dist/services/telemetry/device-fingerprint.js.map +1 -1
- package/dist/services/telemetry/heartbeat.d.ts +3 -3
- package/dist/services/telemetry/heartbeat.js +7 -7
- package/dist/services/telemetry/heartbeat.js.map +1 -1
- package/dist/services/update-manager.d.ts +2 -2
- package/dist/services/update-manager.js +77 -31
- package/dist/services/update-manager.js.map +1 -1
- package/dist/types.d.ts +35 -31
- package/dist/utils/docker-inspect.d.ts +19 -0
- package/dist/utils/docker-inspect.js +74 -0
- package/dist/utils/docker-inspect.js.map +1 -0
- package/dist/utils/sudo-askpass.d.ts +23 -0
- package/dist/utils/sudo-askpass.js +83 -0
- package/dist/utils/sudo-askpass.js.map +1 -0
- package/install/jishu-install.sh +760 -111
- package/install/jishu-uninstall.sh +84 -16
- package/install/post-install.sh +298 -52
- package/install/post-uninstall.sh +93 -9
- package/node_modules/@fastify/accept-negotiator/LICENSE +22 -0
- package/node_modules/@fastify/accept-negotiator/README.md +52 -0
- package/node_modules/@fastify/accept-negotiator/index.js +170 -0
- package/node_modules/@fastify/accept-negotiator/package.json +77 -0
- package/node_modules/@fastify/accept-negotiator/types/index.d.ts +17 -0
- package/node_modules/@fastify/ajv-compiler/.gitattributes +2 -0
- package/node_modules/@fastify/ajv-compiler/.github/.stale.yml +21 -0
- package/node_modules/@fastify/ajv-compiler/.github/dependabot.yml +13 -0
- package/node_modules/@fastify/ajv-compiler/.github/tests_checker.yml +8 -0
- package/node_modules/@fastify/ajv-compiler/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/ajv-compiler/LICENSE +23 -0
- package/node_modules/@fastify/ajv-compiler/README.md +237 -0
- package/node_modules/@fastify/ajv-compiler/benchmark/small-object.mjs +37 -0
- package/node_modules/@fastify/ajv-compiler/eslint.config.js +6 -0
- package/node_modules/@fastify/ajv-compiler/index.js +53 -0
- package/node_modules/@fastify/ajv-compiler/lib/default-ajv-options.js +14 -0
- package/node_modules/@fastify/ajv-compiler/lib/serializer-compiler.js +27 -0
- package/node_modules/@fastify/ajv-compiler/lib/validator-compiler.js +58 -0
- package/node_modules/@fastify/ajv-compiler/package.json +84 -0
- package/node_modules/@fastify/ajv-compiler/standalone.js +44 -0
- package/node_modules/@fastify/ajv-compiler/test/.gitkeep +0 -0
- package/node_modules/@fastify/ajv-compiler/test/duplicated-id-compile.test.js +55 -0
- package/node_modules/@fastify/ajv-compiler/test/index.test.js +307 -0
- package/node_modules/@fastify/ajv-compiler/test/plugins.test.js +246 -0
- package/node_modules/@fastify/ajv-compiler/test/serialization.test.js +279 -0
- package/node_modules/@fastify/ajv-compiler/test/standalone.test.js +203 -0
- package/node_modules/@fastify/ajv-compiler/types/index.d.ts +87 -0
- package/node_modules/@fastify/ajv-compiler/types/index.test-d.ts +302 -0
- package/node_modules/@fastify/error/.gitattributes +2 -0
- package/node_modules/@fastify/error/.github/dependabot.yml +13 -0
- package/node_modules/@fastify/error/.github/workflows/ci.yml +28 -0
- package/node_modules/@fastify/error/LICENSE +21 -0
- package/node_modules/@fastify/error/README.md +140 -0
- package/node_modules/@fastify/error/benchmarks/create.js +9 -0
- package/node_modules/@fastify/error/benchmarks/instantiate.js +18 -0
- package/node_modules/@fastify/error/benchmarks/no-stack.js +13 -0
- package/node_modules/@fastify/error/benchmarks/toString.js +11 -0
- package/node_modules/@fastify/error/eslint.config.js +6 -0
- package/node_modules/@fastify/error/index.js +100 -0
- package/node_modules/@fastify/error/package.json +75 -0
- package/node_modules/@fastify/error/test/index.test.js +232 -0
- package/node_modules/@fastify/error/test/instanceof.test.js +263 -0
- package/node_modules/@fastify/error/types/index.d.ts +49 -0
- package/node_modules/@fastify/error/types/index.test-d.ts +92 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.eslintrc +1 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.gitattributes +2 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.github/dependabot.yml +13 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/ci.yml +28 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/LICENSE +21 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/README.md +128 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/eslint.config.js +6 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/index.js +8 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/package.json +71 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/standalone.js +58 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/test/duplicate-schema.test.js +26 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/test/plugin.test.js +78 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/test/standalone.test.js +230 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/types/index.d.ts +41 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/types/index.test-d.ts +142 -0
- package/node_modules/@fastify/forwarded/LICENSE +24 -0
- package/node_modules/@fastify/forwarded/README.md +43 -0
- package/node_modules/@fastify/forwarded/index.js +59 -0
- package/node_modules/@fastify/forwarded/package.json +74 -0
- package/node_modules/@fastify/forwarded/types/index.d.ts +14 -0
- package/node_modules/@fastify/merge-json-schemas/.gitattributes +2 -0
- package/node_modules/@fastify/merge-json-schemas/.github/dependabot.yml +13 -0
- package/node_modules/@fastify/merge-json-schemas/.github/workflows/ci.yml +23 -0
- package/node_modules/@fastify/merge-json-schemas/LICENSE +21 -0
- package/node_modules/@fastify/merge-json-schemas/README.md +119 -0
- package/node_modules/@fastify/merge-json-schemas/eslint.config.js +6 -0
- package/node_modules/@fastify/merge-json-schemas/index.js +357 -0
- package/node_modules/@fastify/merge-json-schemas/lib/errors.js +36 -0
- package/node_modules/@fastify/merge-json-schemas/lib/resolvers.js +127 -0
- package/node_modules/@fastify/merge-json-schemas/package.json +67 -0
- package/node_modules/@fastify/merge-json-schemas/test/additional-items.test.js +164 -0
- package/node_modules/@fastify/merge-json-schemas/test/additional-properties.test.js +129 -0
- package/node_modules/@fastify/merge-json-schemas/test/all-of.test.js +43 -0
- package/node_modules/@fastify/merge-json-schemas/test/any-of.test.js +81 -0
- package/node_modules/@fastify/merge-json-schemas/test/const.test.js +58 -0
- package/node_modules/@fastify/merge-json-schemas/test/contains.test.js +55 -0
- package/node_modules/@fastify/merge-json-schemas/test/custom-resolvers.test.js +50 -0
- package/node_modules/@fastify/merge-json-schemas/test/default-resolver.test.js +111 -0
- package/node_modules/@fastify/merge-json-schemas/test/default.test.js +50 -0
- package/node_modules/@fastify/merge-json-schemas/test/definitions.test.js +46 -0
- package/node_modules/@fastify/merge-json-schemas/test/defs.test.js +46 -0
- package/node_modules/@fastify/merge-json-schemas/test/dependencies.test.js +75 -0
- package/node_modules/@fastify/merge-json-schemas/test/dependent-required.test.js +75 -0
- package/node_modules/@fastify/merge-json-schemas/test/dependent-schemas.test.js +76 -0
- package/node_modules/@fastify/merge-json-schemas/test/enum.test.js +44 -0
- package/node_modules/@fastify/merge-json-schemas/test/exclusive-maximum.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/exclusive-minimum.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/format.test.js +36 -0
- package/node_modules/@fastify/merge-json-schemas/test/id.test.js +22 -0
- package/node_modules/@fastify/merge-json-schemas/test/if-then-else.test.js +550 -0
- package/node_modules/@fastify/merge-json-schemas/test/items.test.js +152 -0
- package/node_modules/@fastify/merge-json-schemas/test/max-items.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/max-length.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/max-properties.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/maximum.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/merge-schema.test.js +29 -0
- package/node_modules/@fastify/merge-json-schemas/test/min-items.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/min-length.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/min-properties.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/minimum.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/multiple-of.test.js +36 -0
- package/node_modules/@fastify/merge-json-schemas/test/not.test.js +29 -0
- package/node_modules/@fastify/merge-json-schemas/test/nullable.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/one-of.test.js +144 -0
- package/node_modules/@fastify/merge-json-schemas/test/properties.test.js +312 -0
- package/node_modules/@fastify/merge-json-schemas/test/property-names.test.js +49 -0
- package/node_modules/@fastify/merge-json-schemas/test/required.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/type.test.js +52 -0
- package/node_modules/@fastify/merge-json-schemas/test/unique-items.test.js +38 -0
- package/node_modules/@fastify/merge-json-schemas/test/utils.js +9 -0
- package/node_modules/@fastify/merge-json-schemas/types/index.d.ts +61 -0
- package/node_modules/@fastify/merge-json-schemas/types/index.test-d.ts +52 -0
- package/node_modules/@fastify/proxy-addr/.gitattributes +2 -0
- package/node_modules/@fastify/proxy-addr/.github/dependabot.yml +13 -0
- package/node_modules/@fastify/proxy-addr/.github/stale.yml +21 -0
- package/node_modules/@fastify/proxy-addr/.github/workflows/ci.yml +28 -0
- package/node_modules/@fastify/proxy-addr/LICENSE +24 -0
- package/node_modules/@fastify/proxy-addr/README.md +141 -0
- package/node_modules/@fastify/proxy-addr/benchmark/compiling.js +50 -0
- package/node_modules/@fastify/proxy-addr/benchmark/index.js +30 -0
- package/node_modules/@fastify/proxy-addr/benchmark/kind.js +57 -0
- package/node_modules/@fastify/proxy-addr/benchmark/matching.js +78 -0
- package/node_modules/@fastify/proxy-addr/eslint.config.js +6 -0
- package/node_modules/@fastify/proxy-addr/index.js +331 -0
- package/node_modules/@fastify/proxy-addr/package.json +73 -0
- package/node_modules/@fastify/proxy-addr/test/all.test.js +55 -0
- package/node_modules/@fastify/proxy-addr/test/base.test.js +365 -0
- package/node_modules/@fastify/proxy-addr/test/compile.test.js +58 -0
- package/node_modules/@fastify/proxy-addr/types/index.d.ts +18 -0
- package/node_modules/@fastify/proxy-addr/types/index.test-d.ts +27 -0
- package/node_modules/@fastify/send/.gitattributes +2 -0
- package/node_modules/@fastify/send/.github/dependabot.yml +13 -0
- package/node_modules/@fastify/send/.github/workflows/ci.yml +28 -0
- package/node_modules/@fastify/send/HISTORY.md +521 -0
- package/node_modules/@fastify/send/LICENSE +23 -0
- package/node_modules/@fastify/send/README.md +310 -0
- package/node_modules/@fastify/send/benchmarks/collapseLeadingSlashes.js +13 -0
- package/node_modules/@fastify/send/benchmarks/containsDotFile.js +15 -0
- package/node_modules/@fastify/send/benchmarks/isUtf8MimeType.js +23 -0
- package/node_modules/@fastify/send/benchmarks/normalizeList.js +14 -0
- package/node_modules/@fastify/send/benchmarks/parseBytesRange.js +15 -0
- package/node_modules/@fastify/send/eslint.config.js +6 -0
- package/node_modules/@fastify/send/examples/index.html +1 -0
- package/node_modules/@fastify/send/examples/simple.js +15 -0
- package/node_modules/@fastify/send/index.js +28 -0
- package/node_modules/@fastify/send/lib/collapseLeadingSlashes.js +25 -0
- package/node_modules/@fastify/send/lib/containsDotFile.js +23 -0
- package/node_modules/@fastify/send/lib/contentRange.js +18 -0
- package/node_modules/@fastify/send/lib/createHtmlDocument.js +29 -0
- package/node_modules/@fastify/send/lib/createHttpError.js +23 -0
- package/node_modules/@fastify/send/lib/isUtf8MimeType.js +12 -0
- package/node_modules/@fastify/send/lib/normalizeList.js +28 -0
- package/node_modules/@fastify/send/lib/parseBytesRange.js +133 -0
- package/node_modules/@fastify/send/lib/parseTokenList.js +46 -0
- package/node_modules/@fastify/send/lib/send.js +729 -0
- package/node_modules/@fastify/send/package.json +81 -0
- package/node_modules/@fastify/send/test/collapseLeadingSlashes.test.js +22 -0
- package/node_modules/@fastify/send/test/containsDotFile.test.js +18 -0
- package/node_modules/@fastify/send/test/fixtures/.hidden.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/.mine/.hidden.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/.mine/name.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/do..ts.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/empty.txt +0 -0
- package/node_modules/@fastify/send/test/fixtures/images/node-js.png +0 -0
- package/node_modules/@fastify/send/test/fixtures/name.d/name.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/name.dir/name.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/name.html +1 -0
- package/node_modules/@fastify/send/test/fixtures/name.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/no_ext +1 -0
- package/node_modules/@fastify/send/test/fixtures/nums.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/pets/.hidden.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/pets/index.html +3 -0
- package/node_modules/@fastify/send/test/fixtures/snow /342/230/203/index.html +0 -0
- package/node_modules/@fastify/send/test/fixtures/some thing.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/thing.html.html +1 -0
- package/node_modules/@fastify/send/test/fixtures/tobi.html +1 -0
- package/node_modules/@fastify/send/test/isUtf8MimeType.test.js +22 -0
- package/node_modules/@fastify/send/test/mime.test.js +56 -0
- package/node_modules/@fastify/send/test/normalizeList.test.js +28 -0
- package/node_modules/@fastify/send/test/parseBytesRange.test.js +103 -0
- package/node_modules/@fastify/send/test/send.1.test.js +646 -0
- package/node_modules/@fastify/send/test/send.2.test.js +977 -0
- package/node_modules/@fastify/send/test/send.3.test.js +133 -0
- package/node_modules/@fastify/send/test/utils.js +36 -0
- package/node_modules/@fastify/send/types/index.d.ts +167 -0
- package/node_modules/@fastify/send/types/index.test-d.ts +67 -0
- package/node_modules/@fastify/static/.gitattributes +5 -0
- package/node_modules/@fastify/static/.github/dependabot.yml +13 -0
- package/node_modules/@fastify/static/.github/stale.yml +21 -0
- package/node_modules/@fastify/static/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/static/LICENSE +23 -0
- package/node_modules/@fastify/static/README.md +538 -0
- package/node_modules/@fastify/static/eslint.config.js +7 -0
- package/node_modules/@fastify/static/example/public/.hidden/sample.json +1 -0
- package/node_modules/@fastify/static/example/public/images/sample.jpg +0 -0
- package/node_modules/@fastify/static/example/public/index.css +9 -0
- package/node_modules/@fastify/static/example/public/index.html +11 -0
- package/node_modules/@fastify/static/example/public/index.js +8 -0
- package/node_modules/@fastify/static/example/public2/test.css +4 -0
- package/node_modules/@fastify/static/example/public2/test.html +8 -0
- package/node_modules/@fastify/static/example/server-compress.js +15 -0
- package/node_modules/@fastify/static/example/server-dir-list.js +38 -0
- package/node_modules/@fastify/static/example/server-hidden-file.js +15 -0
- package/node_modules/@fastify/static/example/server.js +13 -0
- package/node_modules/@fastify/static/index.js +580 -0
- package/node_modules/@fastify/static/lib/dirList.js +211 -0
- package/node_modules/@fastify/static/package.json +87 -0
- package/node_modules/@fastify/static/test/content-type/binary +0 -0
- package/node_modules/@fastify/static/test/content-type/binary.br +1 -0
- package/node_modules/@fastify/static/test/content-type/index.css +0 -0
- package/node_modules/@fastify/static/test/content-type/index.css.br +1 -0
- package/node_modules/@fastify/static/test/content-type/index.html +5 -0
- package/node_modules/@fastify/static/test/content-type/index.html.br +0 -0
- package/node_modules/@fastify/static/test/content-type/sample.jpg +0 -0
- package/node_modules/@fastify/static/test/content-type/test.txt +0 -0
- package/node_modules/@fastify/static/test/content-type/test.txt.br +1 -0
- package/node_modules/@fastify/static/test/content-type.test.js +144 -0
- package/node_modules/@fastify/static/test/dir-list.test.js +738 -0
- package/node_modules/@fastify/static/test/static/.example +1 -0
- package/node_modules/@fastify/static/test/static/100%.txt +1 -0
- package/node_modules/@fastify/static/test/static/a .md +1 -0
- package/node_modules/@fastify/static/test/static/deep/path/for/test/index.html +5 -0
- package/node_modules/@fastify/static/test/static/deep/path/for/test/purpose/foo.html +5 -0
- package/node_modules/@fastify/static/test/static/foo.html +3 -0
- package/node_modules/@fastify/static/test/static/foobar.html +3 -0
- package/node_modules/@fastify/static/test/static/index.css +0 -0
- package/node_modules/@fastify/static/test/static/index.html +5 -0
- package/node_modules/@fastify/static/test/static/shallow/sample.jpg +0 -0
- package/node_modules/@fastify/static/test/static-dotfiles/.aaa +0 -0
- package/node_modules/@fastify/static/test/static-dotfiles/dir/index.html +0 -0
- package/node_modules/@fastify/static/test/static-dotfiles/test.txt +0 -0
- package/node_modules/@fastify/static/test/static-encode/[...]/a .md +1 -0
- package/node_modules/@fastify/static/test/static-filtered/bar.private +1 -0
- package/node_modules/@fastify/static/test/static-filtered/deep/path/to/baz.html +3 -0
- package/node_modules/@fastify/static/test/static-filtered/deep/path/to/baz.private +1 -0
- package/node_modules/@fastify/static/test/static-filtered/index.html +3 -0
- package/node_modules/@fastify/static/test/static-hidden/.hidden/sample.json +1 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html +5 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.br +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.gz +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/baz.json +3 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/dir/index.html +5 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/dir/index.html.br +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/dir-gz/index.html +5 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/dir-gz/index.html.gz +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/empty/.gitkeep +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/gzip-only.html +3 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/gzip-only.html.gz +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/index.html +5 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/index.html.br +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/sample.jpg +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/sample.jpg.br +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/uncompressed.html +3 -0
- package/node_modules/@fastify/static/test/static-symbolic-link/origin/subdir/subdir/index.html +3 -0
- package/node_modules/@fastify/static/test/static.test.js +3793 -0
- package/node_modules/@fastify/static/test/static2/bar.html +3 -0
- package/node_modules/@fastify/static/test/static2/index.html +3 -0
- package/node_modules/@fastify/static/types/index.d.ts +140 -0
- package/node_modules/@fastify/static/types/index.test-d.ts +240 -0
- package/node_modules/@isaacs/cliui/LICENSE.md +63 -0
- package/node_modules/@isaacs/cliui/README.md +151 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts +4 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js +16 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts +34 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js +170 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts +6 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js +307 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts +2 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js +7 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts +41 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/index.js +322 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js +12 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts +5 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js +49 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts +2 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js +8 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts +7 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js +176 -0
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts +4 -0
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js +12 -0
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts +34 -0
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js +167 -0
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts +6 -0
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js +299 -0
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts +2 -0
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js +3 -0
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/index.d.ts +41 -0
- package/node_modules/@isaacs/cliui/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/index.js +317 -0
- package/node_modules/@isaacs/cliui/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/index.min.js +12 -0
- package/node_modules/@isaacs/cliui/dist/esm/index.min.js.map +7 -0
- package/node_modules/@isaacs/cliui/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts +5 -0
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js +46 -0
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts +2 -0
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js +4 -0
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts +7 -0
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts.map +1 -0
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js +172 -0
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js.map +1 -0
- package/node_modules/@isaacs/cliui/package.json +163 -0
- package/node_modules/@lukeed/ms/dist/index.js +37 -0
- package/node_modules/@lukeed/ms/dist/index.min.js +1 -0
- package/node_modules/@lukeed/ms/dist/index.mjs +34 -0
- package/node_modules/@lukeed/ms/index.d.ts +2 -0
- package/node_modules/@lukeed/ms/license +9 -0
- package/node_modules/@lukeed/ms/package.json +48 -0
- package/node_modules/@lukeed/ms/readme.md +133 -0
- package/node_modules/@pinojs/redact/.github/dependabot.yml +13 -0
- package/node_modules/@pinojs/redact/.github/workflows/ci.yml +48 -0
- package/node_modules/@pinojs/redact/.github/workflows/publish-release.yml +43 -0
- package/node_modules/@pinojs/redact/LICENSE +21 -0
- package/node_modules/@pinojs/redact/README.md +350 -0
- package/node_modules/@pinojs/redact/benchmarks/basic.js +184 -0
- package/node_modules/@pinojs/redact/eslint.config.js +1 -0
- package/node_modules/@pinojs/redact/index.d.ts +52 -0
- package/node_modules/@pinojs/redact/index.js +529 -0
- package/node_modules/@pinojs/redact/index.test-d.ts +22 -0
- package/node_modules/@pinojs/redact/package.json +37 -0
- package/node_modules/@pinojs/redact/scripts/sync-version.mjs +20 -0
- package/node_modules/@pinojs/redact/test/actual-redact-comparison.test.js +211 -0
- package/node_modules/@pinojs/redact/test/index.test.js +824 -0
- package/node_modules/@pinojs/redact/test/integration.test.js +390 -0
- package/node_modules/@pinojs/redact/test/multiple-wildcards.test.js +227 -0
- package/node_modules/@pinojs/redact/test/prototype-pollution.test.js +223 -0
- package/node_modules/@pinojs/redact/test/selective-clone.test.js +115 -0
- package/node_modules/@pinojs/redact/tsconfig.json +19 -0
- package/node_modules/abstract-logging/Readme.md +47 -0
- package/node_modules/abstract-logging/index.js +18 -0
- package/node_modules/abstract-logging/package.json +25 -0
- package/node_modules/abstract-logging/test.js +17 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +127 -0
- package/node_modules/ajv-formats/LICENSE +21 -0
- package/node_modules/ajv-formats/README.md +125 -0
- package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/atomic-sleep/.travis.yml +11 -0
- package/node_modules/atomic-sleep/LICENSE +22 -0
- package/node_modules/atomic-sleep/index.js +38 -0
- package/node_modules/atomic-sleep/package.json +37 -0
- package/node_modules/atomic-sleep/readme.md +58 -0
- package/node_modules/atomic-sleep/test.js +47 -0
- package/node_modules/avvio/.borp.yaml +2 -0
- package/node_modules/avvio/.gitattributes +2 -0
- package/node_modules/avvio/.github/dependabot.yml +13 -0
- package/node_modules/avvio/.github/release-drafter.yml +4 -0
- package/node_modules/avvio/.github/workflows/ci.yml +33 -0
- package/node_modules/avvio/LICENSE +24 -0
- package/node_modules/avvio/README.md +700 -0
- package/node_modules/avvio/boot.js +621 -0
- package/node_modules/avvio/eslint.config.js +6 -0
- package/node_modules/avvio/examples/example.js +72 -0
- package/node_modules/avvio/index.d.ts +95 -0
- package/node_modules/avvio/lib/create-promise.js +45 -0
- package/node_modules/avvio/lib/debug.js +19 -0
- package/node_modules/avvio/lib/errors.js +38 -0
- package/node_modules/avvio/lib/execute-with-thenable.js +36 -0
- package/node_modules/avvio/lib/get-plugin-name.js +34 -0
- package/node_modules/avvio/lib/is-bundled-or-typescript-plugin.js +23 -0
- package/node_modules/avvio/lib/is-promise-like.js +17 -0
- package/node_modules/avvio/lib/plugin.js +279 -0
- package/node_modules/avvio/lib/symbols.js +26 -0
- package/node_modules/avvio/lib/thenify.js +60 -0
- package/node_modules/avvio/lib/time-tree.js +200 -0
- package/node_modules/avvio/lib/validate-plugin.js +26 -0
- package/node_modules/avvio/package.json +74 -0
- package/node_modules/avvio/test/after-and-ready.test.js +903 -0
- package/node_modules/avvio/test/after-pass-through.test.js +33 -0
- package/node_modules/avvio/test/after-self-promise.test.js +20 -0
- package/node_modules/avvio/test/after-throw.test.js +26 -0
- package/node_modules/avvio/test/after-use-after.test.js +87 -0
- package/node_modules/avvio/test/async-await.test.js +323 -0
- package/node_modules/avvio/test/await-after.test.js +448 -0
- package/node_modules/avvio/test/await-self.test.js +31 -0
- package/node_modules/avvio/test/await-use.test.js +295 -0
- package/node_modules/avvio/test/basic.test.js +459 -0
- package/node_modules/avvio/test/callbacks.test.js +116 -0
- package/node_modules/avvio/test/catch-override-exception.test.js +27 -0
- package/node_modules/avvio/test/chainable.test.js +70 -0
- package/node_modules/avvio/test/close.test.js +562 -0
- package/node_modules/avvio/test/errors.test.js +26 -0
- package/node_modules/avvio/test/esm.mjs +12 -0
- package/node_modules/avvio/test/esm.test.js +8 -0
- package/node_modules/avvio/test/events-listeners.test.js +23 -0
- package/node_modules/avvio/test/expose.test.js +76 -0
- package/node_modules/avvio/test/fixtures/dummy.txt +1 -0
- package/node_modules/avvio/test/fixtures/esm.mjs +3 -0
- package/node_modules/avvio/test/fixtures/plugin-no-next.js +5 -0
- package/node_modules/avvio/test/gh-issues/bug-205.test.js +17 -0
- package/node_modules/avvio/test/lib/create-promise.test.js +56 -0
- package/node_modules/avvio/test/lib/execute-with-thenable.test.js +86 -0
- package/node_modules/avvio/test/lib/get-plugin-name.test.js +67 -0
- package/node_modules/avvio/test/lib/is-bundled-or-typescript-plugin.test.js +20 -0
- package/node_modules/avvio/test/lib/is-promise-like.test.js +20 -0
- package/node_modules/avvio/test/lib/thenify.test.js +140 -0
- package/node_modules/avvio/test/lib/time-tree.test.js +391 -0
- package/node_modules/avvio/test/lib/validate-plugin.test.js +19 -0
- package/node_modules/avvio/test/load-plugin.test.js +132 -0
- package/node_modules/avvio/test/no-done.test.js +19 -0
- package/node_modules/avvio/test/on-ready-timeout-await.test.js +33 -0
- package/node_modules/avvio/test/override.test.js +385 -0
- package/node_modules/avvio/test/plugin-loaded-so-far.test.js +81 -0
- package/node_modules/avvio/test/plugin-name.test.js +58 -0
- package/node_modules/avvio/test/plugin-timeout-await.test.js +33 -0
- package/node_modules/avvio/test/plugin-timeout.test.js +227 -0
- package/node_modules/avvio/test/pretty-print.test.js +76 -0
- package/node_modules/avvio/test/reentrant.test.js +126 -0
- package/node_modules/avvio/test/symbol-async-dispose.test.js +28 -0
- package/node_modules/avvio/test/to-json.test.js +130 -0
- package/node_modules/avvio/test/twice-done.test.js +23 -0
- package/node_modules/avvio/test/types/index.ts +412 -0
- package/node_modules/avvio/test/types/tsconfig.json +9 -0
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/README.md +57 -0
- package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
- package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
- package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/README.md +94 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts +6 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +201 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts +6 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
- package/node_modules/brace-expansion/dist/esm/index.js +197 -0
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/content-disposition/HISTORY.md +60 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +142 -0
- package/node_modules/content-disposition/index.js +458 -0
- package/node_modules/content-disposition/package.json +44 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +295 -0
- package/node_modules/cookie/dist/index.d.ts +148 -0
- package/node_modules/cookie/dist/index.js +350 -0
- package/node_modules/cookie/dist/index.js.map +1 -0
- package/node_modules/cookie/package.json +47 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +89 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/dequal/dist/index.js +86 -0
- package/node_modules/dequal/dist/index.min.js +1 -0
- package/node_modules/dequal/dist/index.mjs +84 -0
- package/node_modules/dequal/index.d.ts +1 -0
- package/node_modules/dequal/license +21 -0
- package/node_modules/dequal/lite/index.d.ts +1 -0
- package/node_modules/dequal/lite/index.js +31 -0
- package/node_modules/dequal/lite/index.min.js +1 -0
- package/node_modules/dequal/lite/index.mjs +29 -0
- package/node_modules/dequal/package.json +57 -0
- package/node_modules/dequal/readme.md +112 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/fast-decode-uri-component/.travis.yml +12 -0
- package/node_modules/fast-decode-uri-component/LICENSE +23 -0
- package/node_modules/fast-decode-uri-component/README.md +43 -0
- package/node_modules/fast-decode-uri-component/bench.js +35 -0
- package/node_modules/fast-decode-uri-component/index.js +115 -0
- package/node_modules/fast-decode-uri-component/package.json +33 -0
- package/node_modules/fast-decode-uri-component/test.js +32 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-json-stringify/.gitattributes +2 -0
- package/node_modules/fast-json-stringify/.github/dependabot.yml +13 -0
- package/node_modules/fast-json-stringify/.github/workflows/ci.yml +33 -0
- package/node_modules/fast-json-stringify/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-json-stringify/LICENSE +22 -0
- package/node_modules/fast-json-stringify/README.md +742 -0
- package/node_modules/fast-json-stringify/benchmark/bench-cmp-branch.js +116 -0
- package/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js +339 -0
- package/node_modules/fast-json-stringify/benchmark/bench-thread.js +33 -0
- package/node_modules/fast-json-stringify/benchmark/bench.js +391 -0
- package/node_modules/fast-json-stringify/build/build-schema-validator.js +26 -0
- package/node_modules/fast-json-stringify/eslint.config.js +9 -0
- package/node_modules/fast-json-stringify/examples/example.js +81 -0
- package/node_modules/fast-json-stringify/examples/server.js +42 -0
- package/node_modules/fast-json-stringify/index.js +1312 -0
- package/node_modules/fast-json-stringify/lib/location.js +24 -0
- package/node_modules/fast-json-stringify/lib/merge-schemas.js +9 -0
- package/node_modules/fast-json-stringify/lib/schema-validator.js +1134 -0
- package/node_modules/fast-json-stringify/lib/serializer.js +141 -0
- package/node_modules/fast-json-stringify/lib/standalone.js +34 -0
- package/node_modules/fast-json-stringify/lib/validator.js +96 -0
- package/node_modules/fast-json-stringify/package.json +89 -0
- package/node_modules/fast-json-stringify/test/additionalProperties.test.js +332 -0
- package/node_modules/fast-json-stringify/test/allof.test.js +751 -0
- package/node_modules/fast-json-stringify/test/any.test.js +231 -0
- package/node_modules/fast-json-stringify/test/anyof.test.js +812 -0
- package/node_modules/fast-json-stringify/test/array.test.js +688 -0
- package/node_modules/fast-json-stringify/test/asNumber.test.js +13 -0
- package/node_modules/fast-json-stringify/test/basic.test.js +400 -0
- package/node_modules/fast-json-stringify/test/bigint.test.js +76 -0
- package/node_modules/fast-json-stringify/test/clean-cache.test.js +47 -0
- package/node_modules/fast-json-stringify/test/const.test.js +314 -0
- package/node_modules/fast-json-stringify/test/date.test.js +639 -0
- package/node_modules/fast-json-stringify/test/debug-mode.test.js +142 -0
- package/node_modules/fast-json-stringify/test/defaults.test.js +376 -0
- package/node_modules/fast-json-stringify/test/enum.test.js +37 -0
- package/node_modules/fast-json-stringify/test/fix-604.test.js +25 -0
- package/node_modules/fast-json-stringify/test/fixtures/.keep +0 -0
- package/node_modules/fast-json-stringify/test/if-then-else.test.js +540 -0
- package/node_modules/fast-json-stringify/test/inferType.test.js +92 -0
- package/node_modules/fast-json-stringify/test/infinity.test.js +55 -0
- package/node_modules/fast-json-stringify/test/integer.test.js +194 -0
- package/node_modules/fast-json-stringify/test/invalidSchema.test.js +38 -0
- package/node_modules/fast-json-stringify/test/issue-479.test.js +57 -0
- package/node_modules/fast-json-stringify/test/issue-793.test.js +107 -0
- package/node_modules/fast-json-stringify/test/issue-794.test.js +177 -0
- package/node_modules/fast-json-stringify/test/issue-836.test.js +183 -0
- package/node_modules/fast-json-stringify/test/json-add-comma.test.js +57 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/README.md +10 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4/required.json +54 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4.test.js +12 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6/required.json +70 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6.test.js +12 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7/required.json +70 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7.test.js +12 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/util.js +31 -0
- package/node_modules/fast-json-stringify/test/missing-values.test.js +88 -0
- package/node_modules/fast-json-stringify/test/multi-type-serializer.test.js +19 -0
- package/node_modules/fast-json-stringify/test/nestedObjects.test.js +63 -0
- package/node_modules/fast-json-stringify/test/nullable.test.js +543 -0
- package/node_modules/fast-json-stringify/test/oneof.test.js +510 -0
- package/node_modules/fast-json-stringify/test/patternProperties.test.js +168 -0
- package/node_modules/fast-json-stringify/test/recursion.test.js +245 -0
- package/node_modules/fast-json-stringify/test/ref.json +12 -0
- package/node_modules/fast-json-stringify/test/ref.test.js +2077 -0
- package/node_modules/fast-json-stringify/test/regex.test.js +32 -0
- package/node_modules/fast-json-stringify/test/required.test.js +204 -0
- package/node_modules/fast-json-stringify/test/requiresAjv.test.js +50 -0
- package/node_modules/fast-json-stringify/test/sanitize.test.js +141 -0
- package/node_modules/fast-json-stringify/test/sanitize2.test.js +18 -0
- package/node_modules/fast-json-stringify/test/sanitize3.test.js +17 -0
- package/node_modules/fast-json-stringify/test/sanitize4.test.js +16 -0
- package/node_modules/fast-json-stringify/test/sanitize5.test.js +16 -0
- package/node_modules/fast-json-stringify/test/sanitize6.test.js +22 -0
- package/node_modules/fast-json-stringify/test/sanitize7.test.js +68 -0
- package/node_modules/fast-json-stringify/test/side-effect.test.js +196 -0
- package/node_modules/fast-json-stringify/test/standalone-mode.test.js +219 -0
- package/node_modules/fast-json-stringify/test/string.test.js +84 -0
- package/node_modules/fast-json-stringify/test/surrogate.test.js +67 -0
- package/node_modules/fast-json-stringify/test/toJSON.test.js +203 -0
- package/node_modules/fast-json-stringify/test/typebox.test.js +36 -0
- package/node_modules/fast-json-stringify/test/typesArray.test.js +550 -0
- package/node_modules/fast-json-stringify/test/unknownFormats.test.js +27 -0
- package/node_modules/fast-json-stringify/test/webpack.test.js +50 -0
- package/node_modules/fast-json-stringify/types/index.d.ts +231 -0
- package/node_modules/fast-json-stringify/types/index.tst.ts +259 -0
- package/node_modules/fast-querystring/LICENSE +25 -0
- package/node_modules/fast-querystring/README.md +114 -0
- package/node_modules/fast-querystring/lib/index.d.ts +14 -0
- package/node_modules/fast-querystring/lib/index.js +20 -0
- package/node_modules/fast-querystring/lib/internals/querystring.js +96 -0
- package/node_modules/fast-querystring/lib/parse.js +126 -0
- package/node_modules/fast-querystring/lib/stringify.js +69 -0
- package/node_modules/fast-querystring/package.json +56 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +406 -0
- package/node_modules/fast-uri/lib/schemes.js +267 -0
- package/node_modules/fast-uri/lib/utils.js +443 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/equal.test.js +117 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/parse.test.js +323 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
- package/node_modules/fast-uri/test/security.test.js +133 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/fastify/.borp.yaml +3 -0
- package/node_modules/fastify/.markdownlint-cli2.yaml +22 -0
- package/node_modules/fastify/.prettierignore +1 -0
- package/node_modules/fastify/GOVERNANCE.md +4 -0
- package/node_modules/fastify/LICENSE +21 -0
- package/node_modules/fastify/PROJECT_CHARTER.md +126 -0
- package/node_modules/fastify/README.md +423 -0
- package/node_modules/fastify/SECURITY.md +220 -0
- package/node_modules/fastify/SPONSORS.md +24 -0
- package/node_modules/fastify/build/build-error-serializer.js +35 -0
- package/node_modules/fastify/build/build-validation.js +169 -0
- package/node_modules/fastify/build/sync-version.js +11 -0
- package/node_modules/fastify/docs/Guides/Benchmarking.md +60 -0
- package/node_modules/fastify/docs/Guides/Database.md +321 -0
- package/node_modules/fastify/docs/Guides/Delay-Accepting-Requests.md +608 -0
- package/node_modules/fastify/docs/Guides/Detecting-When-Clients-Abort.md +172 -0
- package/node_modules/fastify/docs/Guides/Ecosystem.md +730 -0
- package/node_modules/fastify/docs/Guides/Fluent-Schema.md +127 -0
- package/node_modules/fastify/docs/Guides/Getting-Started.md +620 -0
- package/node_modules/fastify/docs/Guides/Index.md +43 -0
- package/node_modules/fastify/docs/Guides/Migration-Guide-V3.md +287 -0
- package/node_modules/fastify/docs/Guides/Migration-Guide-V4.md +267 -0
- package/node_modules/fastify/docs/Guides/Migration-Guide-V5.md +727 -0
- package/node_modules/fastify/docs/Guides/Plugins-Guide.md +520 -0
- package/node_modules/fastify/docs/Guides/Prototype-Poisoning.md +383 -0
- package/node_modules/fastify/docs/Guides/Recommendations.md +378 -0
- package/node_modules/fastify/docs/Guides/Serverless.md +604 -0
- package/node_modules/fastify/docs/Guides/Style-Guide.md +246 -0
- package/node_modules/fastify/docs/Guides/Testing.md +481 -0
- package/node_modules/fastify/docs/Guides/Write-Plugin.md +103 -0
- package/node_modules/fastify/docs/Guides/Write-Type-Provider.md +34 -0
- package/node_modules/fastify/docs/Reference/ContentTypeParser.md +271 -0
- package/node_modules/fastify/docs/Reference/Decorators.md +436 -0
- package/node_modules/fastify/docs/Reference/Encapsulation.md +194 -0
- package/node_modules/fastify/docs/Reference/Errors.md +377 -0
- package/node_modules/fastify/docs/Reference/HTTP2.md +94 -0
- package/node_modules/fastify/docs/Reference/Hooks.md +958 -0
- package/node_modules/fastify/docs/Reference/Index.md +73 -0
- package/node_modules/fastify/docs/Reference/LTS.md +86 -0
- package/node_modules/fastify/docs/Reference/Lifecycle.md +99 -0
- package/node_modules/fastify/docs/Reference/Logging.md +268 -0
- package/node_modules/fastify/docs/Reference/Middleware.md +79 -0
- package/node_modules/fastify/docs/Reference/Plugins.md +245 -0
- package/node_modules/fastify/docs/Reference/Principles.md +73 -0
- package/node_modules/fastify/docs/Reference/Reply.md +1001 -0
- package/node_modules/fastify/docs/Reference/Request.md +295 -0
- package/node_modules/fastify/docs/Reference/Routes.md +802 -0
- package/node_modules/fastify/docs/Reference/Server.md +2389 -0
- package/node_modules/fastify/docs/Reference/Type-Providers.md +256 -0
- package/node_modules/fastify/docs/Reference/TypeScript.md +1729 -0
- package/node_modules/fastify/docs/Reference/Validation-and-Serialization.md +1130 -0
- package/node_modules/fastify/docs/Reference/Warnings.md +58 -0
- package/node_modules/fastify/docs/index.md +24 -0
- package/node_modules/fastify/docs/resources/encapsulation_context.drawio +1 -0
- package/node_modules/fastify/docs/resources/encapsulation_context.svg +3 -0
- package/node_modules/fastify/eslint.config.js +35 -0
- package/node_modules/fastify/examples/asyncawait.js +38 -0
- package/node_modules/fastify/examples/benchmark/body.json +3 -0
- package/node_modules/fastify/examples/benchmark/hooks-benchmark-async-await.js +44 -0
- package/node_modules/fastify/examples/benchmark/hooks-benchmark.js +52 -0
- package/node_modules/fastify/examples/benchmark/parser.js +47 -0
- package/node_modules/fastify/examples/benchmark/simple.js +30 -0
- package/node_modules/fastify/examples/benchmark/webstream.js +27 -0
- package/node_modules/fastify/examples/hooks.js +91 -0
- package/node_modules/fastify/examples/http2.js +39 -0
- package/node_modules/fastify/examples/https.js +38 -0
- package/node_modules/fastify/examples/parser.js +53 -0
- package/node_modules/fastify/examples/plugin.js +12 -0
- package/node_modules/fastify/examples/route-prefix.js +38 -0
- package/node_modules/fastify/examples/shared-schema.js +38 -0
- package/node_modules/fastify/examples/simple-stream.js +20 -0
- package/node_modules/fastify/examples/simple.js +32 -0
- package/node_modules/fastify/examples/simple.mjs +27 -0
- package/node_modules/fastify/examples/typescript-server.ts +79 -0
- package/node_modules/fastify/examples/use-plugin.js +29 -0
- package/node_modules/fastify/fastify.d.ts +253 -0
- package/node_modules/fastify/fastify.js +985 -0
- package/node_modules/fastify/integration/server.js +29 -0
- package/node_modules/fastify/integration/test.sh +23 -0
- package/node_modules/fastify/lib/config-validator.js +1266 -0
- package/node_modules/fastify/lib/content-type-parser.js +413 -0
- package/node_modules/fastify/lib/content-type.js +160 -0
- package/node_modules/fastify/lib/context.js +98 -0
- package/node_modules/fastify/lib/decorate.js +152 -0
- package/node_modules/fastify/lib/error-handler.js +173 -0
- package/node_modules/fastify/lib/error-serializer.js +134 -0
- package/node_modules/fastify/lib/error-status.js +14 -0
- package/node_modules/fastify/lib/errors.js +516 -0
- package/node_modules/fastify/lib/four-oh-four.js +190 -0
- package/node_modules/fastify/lib/handle-request.js +195 -0
- package/node_modules/fastify/lib/head-route.js +45 -0
- package/node_modules/fastify/lib/hooks.js +429 -0
- package/node_modules/fastify/lib/initial-config-validation.js +37 -0
- package/node_modules/fastify/lib/logger-factory.js +136 -0
- package/node_modules/fastify/lib/logger-pino.js +68 -0
- package/node_modules/fastify/lib/noop-set.js +10 -0
- package/node_modules/fastify/lib/plugin-override.js +90 -0
- package/node_modules/fastify/lib/plugin-utils.js +169 -0
- package/node_modules/fastify/lib/promise.js +23 -0
- package/node_modules/fastify/lib/reply.js +1030 -0
- package/node_modules/fastify/lib/req-id-gen-factory.js +52 -0
- package/node_modules/fastify/lib/request.js +387 -0
- package/node_modules/fastify/lib/route.js +686 -0
- package/node_modules/fastify/lib/schema-controller.js +164 -0
- package/node_modules/fastify/lib/schemas.js +207 -0
- package/node_modules/fastify/lib/server.js +441 -0
- package/node_modules/fastify/lib/symbols.js +71 -0
- package/node_modules/fastify/lib/validation.js +280 -0
- package/node_modules/fastify/lib/warnings.js +57 -0
- package/node_modules/fastify/lib/wrap-thenable.js +84 -0
- package/node_modules/fastify/package.json +225 -0
- package/node_modules/fastify/scripts/validate-ecosystem-links.js +179 -0
- package/node_modules/fastify/test/404s.test.js +2035 -0
- package/node_modules/fastify/test/500s.test.js +422 -0
- package/node_modules/fastify/test/allow-unsafe-regex.test.js +92 -0
- package/node_modules/fastify/test/als.test.js +65 -0
- package/node_modules/fastify/test/async-await.test.js +705 -0
- package/node_modules/fastify/test/async-dispose.test.js +20 -0
- package/node_modules/fastify/test/async_hooks.test.js +52 -0
- package/node_modules/fastify/test/body-limit.test.js +224 -0
- package/node_modules/fastify/test/buffer.test.js +74 -0
- package/node_modules/fastify/test/build/error-serializer.test.js +36 -0
- package/node_modules/fastify/test/build/version.test.js +14 -0
- package/node_modules/fastify/test/build-certificate.js +109 -0
- package/node_modules/fastify/test/bundler/README.md +29 -0
- package/node_modules/fastify/test/bundler/esbuild/bundler-test.js +32 -0
- package/node_modules/fastify/test/bundler/esbuild/package.json +10 -0
- package/node_modules/fastify/test/bundler/esbuild/src/fail-plugin-version.js +14 -0
- package/node_modules/fastify/test/bundler/esbuild/src/index.js +9 -0
- package/node_modules/fastify/test/bundler/webpack/bundler-test.js +32 -0
- package/node_modules/fastify/test/bundler/webpack/package.json +11 -0
- package/node_modules/fastify/test/bundler/webpack/src/fail-plugin-version.js +14 -0
- package/node_modules/fastify/test/bundler/webpack/src/index.js +9 -0
- package/node_modules/fastify/test/bundler/webpack/webpack.config.js +15 -0
- package/node_modules/fastify/test/case-insensitive.test.js +102 -0
- package/node_modules/fastify/test/chainable.test.js +40 -0
- package/node_modules/fastify/test/child-logger-factory.test.js +128 -0
- package/node_modules/fastify/test/client-timeout.test.js +38 -0
- package/node_modules/fastify/test/close-pipelining.test.js +78 -0
- package/node_modules/fastify/test/close.test.js +706 -0
- package/node_modules/fastify/test/conditional-pino.test.js +47 -0
- package/node_modules/fastify/test/connection-timeout.test.js +42 -0
- package/node_modules/fastify/test/constrained-routes.test.js +1138 -0
- package/node_modules/fastify/test/content-length.test.js +174 -0
- package/node_modules/fastify/test/content-parser.test.js +739 -0
- package/node_modules/fastify/test/content-type.test.js +181 -0
- package/node_modules/fastify/test/context-config.test.js +164 -0
- package/node_modules/fastify/test/custom-http-server.test.js +118 -0
- package/node_modules/fastify/test/custom-parser-async.test.js +59 -0
- package/node_modules/fastify/test/custom-parser.0.test.js +701 -0
- package/node_modules/fastify/test/custom-parser.1.test.js +266 -0
- package/node_modules/fastify/test/custom-parser.2.test.js +91 -0
- package/node_modules/fastify/test/custom-parser.3.test.js +208 -0
- package/node_modules/fastify/test/custom-parser.4.test.js +218 -0
- package/node_modules/fastify/test/custom-parser.5.test.js +130 -0
- package/node_modules/fastify/test/custom-querystring-parser.test.js +129 -0
- package/node_modules/fastify/test/decorator.test.js +1330 -0
- package/node_modules/fastify/test/delete.test.js +344 -0
- package/node_modules/fastify/test/diagnostics-channel/404.test.js +49 -0
- package/node_modules/fastify/test/diagnostics-channel/async-delay-request.test.js +65 -0
- package/node_modules/fastify/test/diagnostics-channel/async-request.test.js +64 -0
- package/node_modules/fastify/test/diagnostics-channel/error-before-handler.test.js +35 -0
- package/node_modules/fastify/test/diagnostics-channel/error-request.test.js +53 -0
- package/node_modules/fastify/test/diagnostics-channel/error-status.test.js +123 -0
- package/node_modules/fastify/test/diagnostics-channel/init.test.js +50 -0
- package/node_modules/fastify/test/diagnostics-channel/sync-delay-request.test.js +49 -0
- package/node_modules/fastify/test/diagnostics-channel/sync-request-reply.test.js +51 -0
- package/node_modules/fastify/test/diagnostics-channel/sync-request.test.js +54 -0
- package/node_modules/fastify/test/encapsulated-child-logger-factory.test.js +69 -0
- package/node_modules/fastify/test/encapsulated-error-handler.test.js +237 -0
- package/node_modules/fastify/test/esm/errorCodes.test.mjs +10 -0
- package/node_modules/fastify/test/esm/esm.test.mjs +13 -0
- package/node_modules/fastify/test/esm/index.test.js +8 -0
- package/node_modules/fastify/test/esm/named-exports.mjs +14 -0
- package/node_modules/fastify/test/esm/other.mjs +8 -0
- package/node_modules/fastify/test/esm/plugin.mjs +8 -0
- package/node_modules/fastify/test/fastify-instance.test.js +300 -0
- package/node_modules/fastify/test/find-route.test.js +152 -0
- package/node_modules/fastify/test/fluent-schema.test.js +209 -0
- package/node_modules/fastify/test/genReqId.test.js +426 -0
- package/node_modules/fastify/test/handler-context.test.js +45 -0
- package/node_modules/fastify/test/handler-timeout.test.js +367 -0
- package/node_modules/fastify/test/has-route.test.js +88 -0
- package/node_modules/fastify/test/header-overflow.test.js +55 -0
- package/node_modules/fastify/test/helper.js +496 -0
- package/node_modules/fastify/test/hooks-async.test.js +1099 -0
- package/node_modules/fastify/test/hooks.on-listen.test.js +1162 -0
- package/node_modules/fastify/test/hooks.on-ready.test.js +421 -0
- package/node_modules/fastify/test/hooks.test.js +3578 -0
- package/node_modules/fastify/test/http-methods/copy.test.js +35 -0
- package/node_modules/fastify/test/http-methods/custom-http-methods.test.js +114 -0
- package/node_modules/fastify/test/http-methods/get.test.js +412 -0
- package/node_modules/fastify/test/http-methods/head.test.js +263 -0
- package/node_modules/fastify/test/http-methods/lock.test.js +108 -0
- package/node_modules/fastify/test/http-methods/mkcalendar.test.js +143 -0
- package/node_modules/fastify/test/http-methods/mkcol.test.js +35 -0
- package/node_modules/fastify/test/http-methods/move.test.js +42 -0
- package/node_modules/fastify/test/http-methods/propfind.test.js +136 -0
- package/node_modules/fastify/test/http-methods/proppatch.test.js +105 -0
- package/node_modules/fastify/test/http-methods/report.test.js +142 -0
- package/node_modules/fastify/test/http-methods/search.test.js +233 -0
- package/node_modules/fastify/test/http-methods/trace.test.js +21 -0
- package/node_modules/fastify/test/http-methods/unlock.test.js +38 -0
- package/node_modules/fastify/test/http2/closing.test.js +270 -0
- package/node_modules/fastify/test/http2/constraint.test.js +109 -0
- package/node_modules/fastify/test/http2/head.test.js +34 -0
- package/node_modules/fastify/test/http2/plain.test.js +68 -0
- package/node_modules/fastify/test/http2/secure-with-fallback.test.js +113 -0
- package/node_modules/fastify/test/http2/secure.test.js +67 -0
- package/node_modules/fastify/test/http2/unknown-http-method.test.js +34 -0
- package/node_modules/fastify/test/https/custom-https-server.test.js +58 -0
- package/node_modules/fastify/test/https/https.test.js +136 -0
- package/node_modules/fastify/test/imports.test.js +17 -0
- package/node_modules/fastify/test/inject.test.js +502 -0
- package/node_modules/fastify/test/input-validation.js +335 -0
- package/node_modules/fastify/test/internals/all.test.js +38 -0
- package/node_modules/fastify/test/internals/content-type-parser.test.js +111 -0
- package/node_modules/fastify/test/internals/context.test.js +31 -0
- package/node_modules/fastify/test/internals/decorator.test.js +156 -0
- package/node_modules/fastify/test/internals/errors.test.js +982 -0
- package/node_modules/fastify/test/internals/handle-request.test.js +270 -0
- package/node_modules/fastify/test/internals/hook-runner.test.js +449 -0
- package/node_modules/fastify/test/internals/hooks.test.js +96 -0
- package/node_modules/fastify/test/internals/initial-config.test.js +383 -0
- package/node_modules/fastify/test/internals/logger.test.js +163 -0
- package/node_modules/fastify/test/internals/plugin.test.js +170 -0
- package/node_modules/fastify/test/internals/promise.test.js +63 -0
- package/node_modules/fastify/test/internals/reply-serialize.test.js +714 -0
- package/node_modules/fastify/test/internals/reply.test.js +1920 -0
- package/node_modules/fastify/test/internals/req-id-gen-factory.test.js +133 -0
- package/node_modules/fastify/test/internals/request-validate.test.js +1402 -0
- package/node_modules/fastify/test/internals/request.test.js +506 -0
- package/node_modules/fastify/test/internals/schema-controller-perf.test.js +40 -0
- package/node_modules/fastify/test/internals/server.test.js +91 -0
- package/node_modules/fastify/test/internals/validation.test.js +352 -0
- package/node_modules/fastify/test/issue-4959.test.js +118 -0
- package/node_modules/fastify/test/keep-alive-timeout.test.js +42 -0
- package/node_modules/fastify/test/listen.1.test.js +154 -0
- package/node_modules/fastify/test/listen.2.test.js +113 -0
- package/node_modules/fastify/test/listen.3.test.js +83 -0
- package/node_modules/fastify/test/listen.4.test.js +168 -0
- package/node_modules/fastify/test/listen.5.test.js +122 -0
- package/node_modules/fastify/test/logger/instantiation.test.js +341 -0
- package/node_modules/fastify/test/logger/logger-test-utils.js +47 -0
- package/node_modules/fastify/test/logger/logging.test.js +460 -0
- package/node_modules/fastify/test/logger/options.test.js +579 -0
- package/node_modules/fastify/test/logger/request.test.js +292 -0
- package/node_modules/fastify/test/logger/response.test.js +183 -0
- package/node_modules/fastify/test/logger/tap-parallel-not-ok +0 -0
- package/node_modules/fastify/test/max-requests-per-socket.test.js +113 -0
- package/node_modules/fastify/test/middleware.test.js +37 -0
- package/node_modules/fastify/test/noop-set.test.js +19 -0
- package/node_modules/fastify/test/nullable-validation.test.js +187 -0
- package/node_modules/fastify/test/options.error-handler.test.js +5 -0
- package/node_modules/fastify/test/options.test.js +5 -0
- package/node_modules/fastify/test/output-validation.test.js +140 -0
- package/node_modules/fastify/test/patch.error-handler.test.js +5 -0
- package/node_modules/fastify/test/patch.test.js +5 -0
- package/node_modules/fastify/test/plugin.1.test.js +230 -0
- package/node_modules/fastify/test/plugin.2.test.js +314 -0
- package/node_modules/fastify/test/plugin.3.test.js +287 -0
- package/node_modules/fastify/test/plugin.4.test.js +504 -0
- package/node_modules/fastify/test/plugin.helper.js +8 -0
- package/node_modules/fastify/test/plugin.name.display.js +10 -0
- package/node_modules/fastify/test/post-empty-body.test.js +38 -0
- package/node_modules/fastify/test/pretty-print.test.js +366 -0
- package/node_modules/fastify/test/promises.test.js +125 -0
- package/node_modules/fastify/test/proto-poisoning.test.js +145 -0
- package/node_modules/fastify/test/put.error-handler.test.js +5 -0
- package/node_modules/fastify/test/put.test.js +5 -0
- package/node_modules/fastify/test/register.test.js +184 -0
- package/node_modules/fastify/test/reply-code.test.js +148 -0
- package/node_modules/fastify/test/reply-early-hints.test.js +100 -0
- package/node_modules/fastify/test/reply-error.test.js +815 -0
- package/node_modules/fastify/test/reply-trailers.test.js +445 -0
- package/node_modules/fastify/test/reply-web-stream-locked.test.js +37 -0
- package/node_modules/fastify/test/request-error.test.js +624 -0
- package/node_modules/fastify/test/request-header-host.test.js +339 -0
- package/node_modules/fastify/test/request-id.test.js +118 -0
- package/node_modules/fastify/test/request-port.test.js +72 -0
- package/node_modules/fastify/test/request-timeout.test.js +53 -0
- package/node_modules/fastify/test/route-hooks.test.js +635 -0
- package/node_modules/fastify/test/route-prefix.test.js +904 -0
- package/node_modules/fastify/test/route-shorthand.test.js +48 -0
- package/node_modules/fastify/test/route.1.test.js +259 -0
- package/node_modules/fastify/test/route.2.test.js +100 -0
- package/node_modules/fastify/test/route.3.test.js +213 -0
- package/node_modules/fastify/test/route.4.test.js +127 -0
- package/node_modules/fastify/test/route.5.test.js +211 -0
- package/node_modules/fastify/test/route.6.test.js +306 -0
- package/node_modules/fastify/test/route.7.test.js +406 -0
- package/node_modules/fastify/test/route.8.test.js +225 -0
- package/node_modules/fastify/test/router-options.test.js +1108 -0
- package/node_modules/fastify/test/same-shape.test.js +124 -0
- package/node_modules/fastify/test/schema-examples.test.js +661 -0
- package/node_modules/fastify/test/schema-feature.test.js +2198 -0
- package/node_modules/fastify/test/schema-serialization.test.js +1171 -0
- package/node_modules/fastify/test/schema-special-usage.test.js +1348 -0
- package/node_modules/fastify/test/schema-validation.test.js +1593 -0
- package/node_modules/fastify/test/scripts/validate-ecosystem-links.test.js +339 -0
- package/node_modules/fastify/test/serialize-response.test.js +186 -0
- package/node_modules/fastify/test/server.test.js +347 -0
- package/node_modules/fastify/test/set-error-handler.test.js +69 -0
- package/node_modules/fastify/test/skip-reply-send.test.js +317 -0
- package/node_modules/fastify/test/stream-serializers.test.js +40 -0
- package/node_modules/fastify/test/stream.1.test.js +94 -0
- package/node_modules/fastify/test/stream.2.test.js +129 -0
- package/node_modules/fastify/test/stream.3.test.js +198 -0
- package/node_modules/fastify/test/stream.4.test.js +176 -0
- package/node_modules/fastify/test/stream.5.test.js +188 -0
- package/node_modules/fastify/test/sync-routes.test.js +32 -0
- package/node_modules/fastify/test/throw.test.js +359 -0
- package/node_modules/fastify/test/toolkit.js +63 -0
- package/node_modules/fastify/test/trust-proxy.test.js +274 -0
- package/node_modules/fastify/test/type-provider.test.js +22 -0
- package/node_modules/fastify/test/types/content-type-parser.test-d.ts +72 -0
- package/node_modules/fastify/test/types/decorate-request-reply.test-d.ts +18 -0
- package/node_modules/fastify/test/types/dummy-plugin.ts +9 -0
- package/node_modules/fastify/test/types/errors.test-d.ts +90 -0
- package/node_modules/fastify/test/types/fastify.test-d.ts +352 -0
- package/node_modules/fastify/test/types/hooks.test-d.ts +550 -0
- package/node_modules/fastify/test/types/import.ts +2 -0
- package/node_modules/fastify/test/types/instance.test-d.ts +588 -0
- package/node_modules/fastify/test/types/logger.test-d.ts +277 -0
- package/node_modules/fastify/test/types/plugin.test-d.ts +97 -0
- package/node_modules/fastify/test/types/register.test-d.ts +237 -0
- package/node_modules/fastify/test/types/reply.test-d.ts +254 -0
- package/node_modules/fastify/test/types/request.test-d.ts +188 -0
- package/node_modules/fastify/test/types/route.test-d.ts +553 -0
- package/node_modules/fastify/test/types/schema.test-d.ts +135 -0
- package/node_modules/fastify/test/types/serverFactory.test-d.ts +37 -0
- package/node_modules/fastify/test/types/type-provider.test-d.ts +1213 -0
- package/node_modules/fastify/test/types/using.test-d.ts +17 -0
- package/node_modules/fastify/test/upgrade.test.js +52 -0
- package/node_modules/fastify/test/url-rewriting.test.js +122 -0
- package/node_modules/fastify/test/use-semicolon-delimiter.test.js +168 -0
- package/node_modules/fastify/test/validation-error-handling.test.js +900 -0
- package/node_modules/fastify/test/versioned-routes.test.js +603 -0
- package/node_modules/fastify/test/web-api.test.js +616 -0
- package/node_modules/fastify/test/wrap-thenable.test.js +30 -0
- package/node_modules/fastify/types/content-type-parser.d.ts +75 -0
- package/node_modules/fastify/types/context.d.ts +22 -0
- package/node_modules/fastify/types/errors.d.ts +92 -0
- package/node_modules/fastify/types/hooks.d.ts +875 -0
- package/node_modules/fastify/types/instance.d.ts +609 -0
- package/node_modules/fastify/types/logger.d.ts +107 -0
- package/node_modules/fastify/types/plugin.d.ts +44 -0
- package/node_modules/fastify/types/register.d.ts +42 -0
- package/node_modules/fastify/types/reply.d.ts +81 -0
- package/node_modules/fastify/types/request.d.ts +95 -0
- package/node_modules/fastify/types/route.d.ts +199 -0
- package/node_modules/fastify/types/schema.d.ts +61 -0
- package/node_modules/fastify/types/server-factory.d.ts +19 -0
- package/node_modules/fastify/types/type-provider.d.ts +130 -0
- package/node_modules/fastify/types/utils.d.ts +98 -0
- package/node_modules/fastify-plugin/.gitattributes +2 -0
- package/node_modules/fastify-plugin/.github/dependabot.yml +13 -0
- package/node_modules/fastify-plugin/.github/stale.yml +21 -0
- package/node_modules/fastify-plugin/.github/workflows/ci.yml +28 -0
- package/node_modules/fastify-plugin/LICENSE +23 -0
- package/node_modules/fastify-plugin/README.md +188 -0
- package/node_modules/fastify-plugin/eslint.config.js +6 -0
- package/node_modules/fastify-plugin/lib/getPluginName.js +25 -0
- package/node_modules/fastify-plugin/lib/toCamelCase.js +10 -0
- package/node_modules/fastify-plugin/package.json +70 -0
- package/node_modules/fastify-plugin/plugin.js +67 -0
- package/node_modules/fastify-plugin/test/bundlers.test.js +110 -0
- package/node_modules/fastify-plugin/test/checkVersion.test.js +67 -0
- package/node_modules/fastify-plugin/test/composite.test.js +14 -0
- package/node_modules/fastify-plugin/test/esm/esm.mjs +11 -0
- package/node_modules/fastify-plugin/test/esm/index.test.js +11 -0
- package/node_modules/fastify-plugin/test/extractPluginName.test.js +49 -0
- package/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js +15 -0
- package/node_modules/fastify-plugin/test/test.js +396 -0
- package/node_modules/fastify-plugin/test/toCamelCase.test.js +24 -0
- package/node_modules/fastify-plugin/types/example-async.test-d.ts +19 -0
- package/node_modules/fastify-plugin/types/example-callback.test-d.ts +19 -0
- package/node_modules/fastify-plugin/types/plugin.d.ts +61 -0
- package/node_modules/fastify-plugin/types/plugin.test-d.ts +166 -0
- package/node_modules/fastq/LICENSE +13 -0
- package/node_modules/fastq/README.md +310 -0
- package/node_modules/fastq/SECURITY.md +15 -0
- package/node_modules/fastq/bench.js +66 -0
- package/node_modules/fastq/eslint.config.js +11 -0
- package/node_modules/fastq/example.js +14 -0
- package/node_modules/fastq/example.mjs +9 -0
- package/node_modules/fastq/index.d.ts +59 -0
- package/node_modules/fastq/package.json +49 -0
- package/node_modules/fastq/queue.js +346 -0
- package/node_modules/fastq/test/example.ts +83 -0
- package/node_modules/fastq/test/promise.js +325 -0
- package/node_modules/fastq/test/test.js +733 -0
- package/node_modules/fastq/test/tsconfig.json +11 -0
- package/node_modules/find-my-way/.github/dependabot.yml +34 -0
- package/node_modules/find-my-way/.github/workflows/node.js.yml +68 -0
- package/node_modules/find-my-way/LICENSE +21 -0
- package/node_modules/find-my-way/README.md +885 -0
- package/node_modules/find-my-way/benchmark/bench-thread.js +35 -0
- package/node_modules/find-my-way/benchmark/bench.js +156 -0
- package/node_modules/find-my-way/benchmark/compare-branches.js +113 -0
- package/node_modules/find-my-way/benchmark/uri-decoding.js +55 -0
- package/node_modules/find-my-way/example.js +29 -0
- package/node_modules/find-my-way/index.d.ts +247 -0
- package/node_modules/find-my-way/index.js +872 -0
- package/node_modules/find-my-way/lib/constrainer.js +172 -0
- package/node_modules/find-my-way/lib/handler-storage.js +175 -0
- package/node_modules/find-my-way/lib/http-methods.js +13 -0
- package/node_modules/find-my-way/lib/node.js +228 -0
- package/node_modules/find-my-way/lib/null-object.js +8 -0
- package/node_modules/find-my-way/lib/pretty-print.js +168 -0
- package/node_modules/find-my-way/lib/strategies/accept-host.js +36 -0
- package/node_modules/find-my-way/lib/strategies/accept-version.js +64 -0
- package/node_modules/find-my-way/lib/strategies/http-method.js +15 -0
- package/node_modules/find-my-way/lib/url-sanitizer.js +105 -0
- package/node_modules/find-my-way/package.json +57 -0
- package/node_modules/find-my-way/test/case-insensitive.test.js +230 -0
- package/node_modules/find-my-way/test/constraint.custom-versioning.test.js +130 -0
- package/node_modules/find-my-way/test/constraint.custom.async.test.js +111 -0
- package/node_modules/find-my-way/test/constraint.custom.test.js +273 -0
- package/node_modules/find-my-way/test/constraint.default-versioning.test.js +289 -0
- package/node_modules/find-my-way/test/constraint.host.test.js +104 -0
- package/node_modules/find-my-way/test/constraints.test.js +108 -0
- package/node_modules/find-my-way/test/custom-querystring-parser.test.js +46 -0
- package/node_modules/find-my-way/test/errors.test.js +484 -0
- package/node_modules/find-my-way/test/fastify-issue-3129.test.js +34 -0
- package/node_modules/find-my-way/test/fastify-issue-3957.test.js +23 -0
- package/node_modules/find-my-way/test/find-route.test.js +275 -0
- package/node_modules/find-my-way/test/find.test.js +16 -0
- package/node_modules/find-my-way/test/for-in-loop.test.js +22 -0
- package/node_modules/find-my-way/test/full-url.test.js +30 -0
- package/node_modules/find-my-way/test/has-route.test.js +218 -0
- package/node_modules/find-my-way/test/host-storage.test.js +27 -0
- package/node_modules/find-my-way/test/http2/constraint.host.test.js +44 -0
- package/node_modules/find-my-way/test/issue-101.test.js +31 -0
- package/node_modules/find-my-way/test/issue-104.test.js +206 -0
- package/node_modules/find-my-way/test/issue-110.test.js +31 -0
- package/node_modules/find-my-way/test/issue-132.test.js +80 -0
- package/node_modules/find-my-way/test/issue-145.test.js +24 -0
- package/node_modules/find-my-way/test/issue-149.test.js +21 -0
- package/node_modules/find-my-way/test/issue-151.test.js +54 -0
- package/node_modules/find-my-way/test/issue-154.test.js +21 -0
- package/node_modules/find-my-way/test/issue-161.test.js +88 -0
- package/node_modules/find-my-way/test/issue-17.test.js +397 -0
- package/node_modules/find-my-way/test/issue-175.test.js +80 -0
- package/node_modules/find-my-way/test/issue-182.test.js +18 -0
- package/node_modules/find-my-way/test/issue-190.test.js +44 -0
- package/node_modules/find-my-way/test/issue-20.test.js +79 -0
- package/node_modules/find-my-way/test/issue-206.test.js +121 -0
- package/node_modules/find-my-way/test/issue-221.test.js +50 -0
- package/node_modules/find-my-way/test/issue-234.test.js +94 -0
- package/node_modules/find-my-way/test/issue-238.test.js +119 -0
- package/node_modules/find-my-way/test/issue-240.test.js +30 -0
- package/node_modules/find-my-way/test/issue-241.test.js +32 -0
- package/node_modules/find-my-way/test/issue-247.test.js +51 -0
- package/node_modules/find-my-way/test/issue-254.test.js +31 -0
- package/node_modules/find-my-way/test/issue-28.test.js +618 -0
- package/node_modules/find-my-way/test/issue-280.test.js +14 -0
- package/node_modules/find-my-way/test/issue-285.test.js +37 -0
- package/node_modules/find-my-way/test/issue-330.test.js +231 -0
- package/node_modules/find-my-way/test/issue-44.test.js +149 -0
- package/node_modules/find-my-way/test/issue-46.test.js +75 -0
- package/node_modules/find-my-way/test/issue-49.test.js +108 -0
- package/node_modules/find-my-way/test/issue-59.test.js +131 -0
- package/node_modules/find-my-way/test/issue-62.test.js +28 -0
- package/node_modules/find-my-way/test/issue-63.test.js +23 -0
- package/node_modules/find-my-way/test/issue-67.test.js +50 -0
- package/node_modules/find-my-way/test/issue-93.test.js +19 -0
- package/node_modules/find-my-way/test/lookup-async.test.js +29 -0
- package/node_modules/find-my-way/test/lookup.test.js +58 -0
- package/node_modules/find-my-way/test/matching-order.test.js +17 -0
- package/node_modules/find-my-way/test/max-param-length.test.js +44 -0
- package/node_modules/find-my-way/test/methods.test.js +830 -0
- package/node_modules/find-my-way/test/null-object.test.js +36 -0
- package/node_modules/find-my-way/test/on-bad-url.test.js +72 -0
- package/node_modules/find-my-way/test/optional-params.test.js +216 -0
- package/node_modules/find-my-way/test/params-collisions.test.js +126 -0
- package/node_modules/find-my-way/test/path-params-match.test.js +53 -0
- package/node_modules/find-my-way/test/path-utils.test.js +68 -0
- package/node_modules/find-my-way/test/pretty-print-tree.test.js +596 -0
- package/node_modules/find-my-way/test/pretty-print.test.js +680 -0
- package/node_modules/find-my-way/test/querystring.test.js +54 -0
- package/node_modules/find-my-way/test/regex.test.js +269 -0
- package/node_modules/find-my-way/test/repro-issue-414.test.js +57 -0
- package/node_modules/find-my-way/test/routes-registered.test.js +45 -0
- package/node_modules/find-my-way/test/server.test.js +368 -0
- package/node_modules/find-my-way/test/shorthands.test.js +44 -0
- package/node_modules/find-my-way/test/store.test.js +49 -0
- package/node_modules/find-my-way/test/types/router.test-d.ts +188 -0
- package/node_modules/find-my-way/test/url-sanitizer.test.js +43 -0
- package/node_modules/foreground-child/LICENSE +15 -0
- package/node_modules/foreground-child/README.md +128 -0
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +2 -0
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -0
- package/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
- package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +1 -0
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +58 -0
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/foreground-child/dist/commonjs/index.js +123 -0
- package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -0
- package/node_modules/foreground-child/dist/commonjs/package.json +3 -0
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +6 -0
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -0
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +1 -0
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +10 -0
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -0
- package/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
- package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +1 -0
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts +2 -0
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -0
- package/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
- package/node_modules/foreground-child/dist/esm/all-signals.js.map +1 -0
- package/node_modules/foreground-child/dist/esm/index.d.ts +58 -0
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -0
- package/node_modules/foreground-child/dist/esm/index.js +115 -0
- package/node_modules/foreground-child/dist/esm/index.js.map +1 -0
- package/node_modules/foreground-child/dist/esm/package.json +3 -0
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +6 -0
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -0
- package/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
- package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +1 -0
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts +10 -0
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -0
- package/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
- package/node_modules/foreground-child/dist/esm/watchdog.js.map +1 -0
- package/node_modules/foreground-child/package.json +106 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1294 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/node_modules/glob/dist/esm/bin.d.mts +3 -0
- package/node_modules/glob/dist/esm/bin.d.mts.map +1 -0
- package/node_modules/glob/dist/esm/bin.mjs +346 -0
- package/node_modules/glob/dist/esm/bin.mjs.map +1 -0
- package/node_modules/glob/dist/esm/glob.d.ts +388 -0
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/glob.js +243 -0
- package/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/node_modules/glob/dist/esm/ignore.d.ts +24 -0
- package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/node_modules/glob/dist/esm/index.d.ts +97 -0
- package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.js.map +1 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.d.ts +76 -0
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/pattern.js +215 -0
- package/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/node_modules/glob/dist/esm/processor.d.ts +59 -0
- package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/node_modules/glob/dist/esm/walker.d.ts +97 -0
- package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/node_modules/glob/package.json +97 -0
- package/node_modules/http-errors/HISTORY.md +186 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +229 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +1082 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +72 -0
- package/node_modules/ipaddr.js/package.json +36 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/jackspeak/LICENSE.md +55 -0
- package/node_modules/jackspeak/README.md +394 -0
- package/node_modules/jackspeak/dist/commonjs/index.d.ts +323 -0
- package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/jackspeak/dist/commonjs/index.js +944 -0
- package/node_modules/jackspeak/dist/commonjs/index.js.map +1 -0
- package/node_modules/jackspeak/dist/commonjs/index.min.js +33 -0
- package/node_modules/jackspeak/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/jackspeak/dist/commonjs/package.json +3 -0
- package/node_modules/jackspeak/dist/esm/index.d.ts +323 -0
- package/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -0
- package/node_modules/jackspeak/dist/esm/index.js +936 -0
- package/node_modules/jackspeak/dist/esm/index.js.map +1 -0
- package/node_modules/jackspeak/dist/esm/index.min.js +33 -0
- package/node_modules/jackspeak/dist/esm/index.min.js.map +7 -0
- package/node_modules/jackspeak/dist/esm/package.json +3 -0
- package/node_modules/jackspeak/package.json +115 -0
- package/node_modules/jishushell-panel/LICENSE +6 -0
- package/node_modules/jishushell-panel/README.md +47 -0
- package/node_modules/jishushell-panel/output/dist/server.d.ts +13 -0
- package/node_modules/jishushell-panel/output/dist/server.js +455 -0
- package/node_modules/jishushell-panel/output/dist/server.js.map +1 -0
- package/node_modules/jishushell-panel/output/public/assets/ApiKeyField-D1i7zWXR.js +1 -0
- package/{public/assets/Dashboard-BdWPtroF.js → node_modules/jishushell-panel/output/public/assets/Dashboard-sWIvL43F.js} +1 -1
- package/{public/assets/HermesChatPanel-B_2HlVBQ.js → node_modules/jishushell-panel/output/public/assets/HermesChatPanel-DQ8RyvQY.js} +1 -1
- package/node_modules/jishushell-panel/output/public/assets/HermesConfigForm-tIbPP1sB.js +4 -0
- package/{public/assets/InitPassword-D7glTExX.js → node_modules/jishushell-panel/output/public/assets/InitPassword-C3Slq3Dd.js} +1 -1
- package/node_modules/jishushell-panel/output/public/assets/InstanceDetail-7JqY9tq4.js +92 -0
- package/{public/assets/Login-Cfr5c2sv.js → node_modules/jishushell-panel/output/public/assets/Login-BXLDJlQN.js} +1 -1
- package/node_modules/jishushell-panel/output/public/assets/NewInstance-dLc5Xrpx.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/ProviderRecommendations-DIAXxesl.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/Settings-Bd5utbBh.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/Setup-Yn9_20FL.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/WeixinLoginPanel-C21doQTJ.js +9 -0
- package/node_modules/jishushell-panel/output/public/assets/index-CCkaIEjn.js +20 -0
- package/node_modules/jishushell-panel/output/public/assets/index-D7qxy-Vh.css +1 -0
- package/node_modules/jishushell-panel/output/public/assets/registry-B2ZQZXWL.js +2 -0
- package/{public/assets/usePolling-CwwT9KrC.js → node_modules/jishushell-panel/output/public/assets/usePolling-BFZm4do_.js} +1 -1
- package/{public/assets/vendor-i18n-y9V7Sfuu.js → node_modules/jishushell-panel/output/public/assets/vendor-i18n-DqPtOicc.js} +1 -1
- package/{public/assets/vendor-react-BWrEVJVb.js → node_modules/jishushell-panel/output/public/assets/vendor-react-DW5juQin.js} +13 -13
- package/{public → node_modules/jishushell-panel/output/public}/index.html +4 -4
- package/node_modules/jishushell-panel/package.json +33 -0
- package/node_modules/json-schema-ref-resolver/.gitattributes +2 -0
- package/node_modules/json-schema-ref-resolver/.github/dependabot.yml +13 -0
- package/node_modules/json-schema-ref-resolver/.github/workflows/ci.yml +25 -0
- package/node_modules/json-schema-ref-resolver/LICENSE +21 -0
- package/node_modules/json-schema-ref-resolver/README.md +406 -0
- package/node_modules/json-schema-ref-resolver/eslint.config.js +6 -0
- package/node_modules/json-schema-ref-resolver/index.js +284 -0
- package/node_modules/json-schema-ref-resolver/package.json +76 -0
- package/node_modules/json-schema-ref-resolver/test/anchor.test.js +56 -0
- package/node_modules/json-schema-ref-resolver/test/collisions.test.js +199 -0
- package/node_modules/json-schema-ref-resolver/test/deref-schema.test.js +287 -0
- package/node_modules/json-schema-ref-resolver/test/get-deref-schema.test.js +363 -0
- package/node_modules/json-schema-ref-resolver/test/get-schema-dependencies.test.js +158 -0
- package/node_modules/json-schema-ref-resolver/test/get-schema-refs.test.js +87 -0
- package/node_modules/json-schema-ref-resolver/test/get-schema.test.js +222 -0
- package/node_modules/json-schema-ref-resolver/test/has-schema.test.js +28 -0
- package/node_modules/json-schema-ref-resolver/types/index.d.ts +67 -0
- package/node_modules/json-schema-ref-resolver/types/index.test-d.ts +23 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/light-my-request/.gitattributes +2 -0
- package/node_modules/light-my-request/.github/dependabot.yml +13 -0
- package/node_modules/light-my-request/.github/stale.yml +21 -0
- package/node_modules/light-my-request/.github/workflows/benchmark.yml +30 -0
- package/node_modules/light-my-request/.github/workflows/ci.yml +23 -0
- package/node_modules/light-my-request/LICENSE +32 -0
- package/node_modules/light-my-request/README.md +261 -0
- package/node_modules/light-my-request/benchmark/benchmark.js +164 -0
- package/node_modules/light-my-request/build/build-validation.js +100 -0
- package/node_modules/light-my-request/eslint.config.js +9 -0
- package/node_modules/light-my-request/index.js +194 -0
- package/node_modules/light-my-request/lib/config-validator.js +919 -0
- package/node_modules/light-my-request/lib/form-data.js +79 -0
- package/node_modules/light-my-request/lib/parse-url.js +47 -0
- package/node_modules/light-my-request/lib/request.js +290 -0
- package/node_modules/light-my-request/lib/response.js +240 -0
- package/node_modules/light-my-request/node_modules/process-warning/.gitattributes +2 -0
- package/node_modules/light-my-request/node_modules/process-warning/.github/dependabot.yml +13 -0
- package/node_modules/light-my-request/node_modules/process-warning/.github/workflows/ci.yml +24 -0
- package/node_modules/light-my-request/node_modules/process-warning/.taprc +2 -0
- package/node_modules/light-my-request/node_modules/process-warning/LICENSE +21 -0
- package/node_modules/light-my-request/node_modules/process-warning/README.md +118 -0
- package/node_modules/light-my-request/node_modules/process-warning/benchmarks/warn.js +25 -0
- package/node_modules/light-my-request/node_modules/process-warning/eslint.config.js +6 -0
- package/node_modules/light-my-request/node_modules/process-warning/examples/example.js +11 -0
- package/node_modules/light-my-request/node_modules/process-warning/index.js +124 -0
- package/node_modules/light-my-request/node_modules/process-warning/package.json +73 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/emit-interpolated-string.test.js +29 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/emit-once-only.test.js +28 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/emit-reset.test.js +36 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/emit-set.test.js +30 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/emit-unlimited.test.js +37 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/index.test.js +99 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/issue-88.test.js +33 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/jest.test.js +22 -0
- package/node_modules/light-my-request/node_modules/process-warning/test/no-warnings.test.js +80 -0
- package/node_modules/light-my-request/node_modules/process-warning/types/index.d.ts +37 -0
- package/node_modules/light-my-request/node_modules/process-warning/types/index.test-d.ts +36 -0
- package/node_modules/light-my-request/package.json +85 -0
- package/node_modules/light-my-request/test/async-await.test.js +55 -0
- package/node_modules/light-my-request/test/index.test.js +2316 -0
- package/node_modules/light-my-request/test/request.test.js +16 -0
- package/node_modules/light-my-request/test/response.test.js +19 -0
- package/node_modules/light-my-request/test/stream.test.js +359 -0
- package/node_modules/light-my-request/types/index.d.ts +128 -0
- package/node_modules/light-my-request/types/index.test-d.ts +149 -0
- package/node_modules/mime/CHANGELOG.md +312 -0
- package/node_modules/mime/LICENSE +21 -0
- package/node_modules/mime/Mime.js +97 -0
- package/node_modules/mime/README.md +178 -0
- package/node_modules/mime/cli.js +46 -0
- package/node_modules/mime/index.js +4 -0
- package/node_modules/mime/lite.js +4 -0
- package/node_modules/mime/package.json +52 -0
- package/node_modules/mime/types/other.js +1 -0
- package/node_modules/mime/types/standard.js +1 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/README.md +528 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/ast.d.ts +22 -0
- package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
- package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/index.d.ts +174 -0
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/esm/ast.d.ts +22 -0
- package/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
- package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/node_modules/minimatch/dist/esm/index.d.ts +174 -0
- package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
- package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
- package/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
- package/node_modules/on-exit-leak-free/LICENSE +21 -0
- package/node_modules/on-exit-leak-free/README.md +54 -0
- package/node_modules/on-exit-leak-free/index.js +108 -0
- package/node_modules/on-exit-leak-free/package.json +37 -0
- package/node_modules/on-exit-leak-free/test/base.test.js +30 -0
- package/node_modules/on-exit-leak-free/test/event-emitter-leak.test.js +23 -0
- package/node_modules/on-exit-leak-free/test/fixtures/beforeExit.js +33 -0
- package/node_modules/on-exit-leak-free/test/fixtures/close.js +21 -0
- package/node_modules/on-exit-leak-free/test/fixtures/gc-not-close.js +24 -0
- package/node_modules/on-exit-leak-free/test/fixtures/unregister.js +24 -0
- package/node_modules/package-json-from-dist/LICENSE.md +63 -0
- package/node_modules/package-json-from-dist/README.md +110 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +89 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
- package/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts +89 -0
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
- package/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
- package/node_modules/package-json-from-dist/package.json +68 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/license +9 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +61 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/path-scurry/node_modules/lru-cache/README.md +469 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/pino/.nojekyll +0 -0
- package/node_modules/pino/.prettierignore +1 -0
- package/node_modules/pino/CNAME +1 -0
- package/node_modules/pino/CONTRIBUTING.md +30 -0
- package/node_modules/pino/LICENSE +21 -0
- package/node_modules/pino/README.md +177 -0
- package/node_modules/pino/SECURITY.md +87 -0
- package/node_modules/pino/benchmarks/basic.bench.js +95 -0
- package/node_modules/pino/benchmarks/child-child.bench.js +52 -0
- package/node_modules/pino/benchmarks/child-creation.bench.js +73 -0
- package/node_modules/pino/benchmarks/child.bench.js +62 -0
- package/node_modules/pino/benchmarks/deep-object.bench.js +88 -0
- package/node_modules/pino/benchmarks/formatters.bench.js +50 -0
- package/node_modules/pino/benchmarks/internal/custom-levels.js +67 -0
- package/node_modules/pino/benchmarks/internal/just-pino-heavy.bench.js +76 -0
- package/node_modules/pino/benchmarks/internal/just-pino.bench.js +182 -0
- package/node_modules/pino/benchmarks/internal/parent-vs-child.bench.js +75 -0
- package/node_modules/pino/benchmarks/internal/redact.bench.js +86 -0
- package/node_modules/pino/benchmarks/long-string.bench.js +81 -0
- package/node_modules/pino/benchmarks/multi-arg.bench.js +193 -0
- package/node_modules/pino/benchmarks/multistream.js +98 -0
- package/node_modules/pino/benchmarks/object.bench.js +82 -0
- package/node_modules/pino/benchmarks/utils/generate-benchmark-doc.js +36 -0
- package/node_modules/pino/benchmarks/utils/runbench.js +138 -0
- package/node_modules/pino/benchmarks/utils/wrap-log-level.js +55 -0
- package/node_modules/pino/bin.js +6 -0
- package/node_modules/pino/browser.js +547 -0
- package/node_modules/pino/build/sync-version.js +25 -0
- package/node_modules/pino/docs/api.md +1593 -0
- package/node_modules/pino/docs/asynchronous.md +40 -0
- package/node_modules/pino/docs/benchmarks.md +55 -0
- package/node_modules/pino/docs/browser.md +278 -0
- package/node_modules/pino/docs/bundling.md +40 -0
- package/node_modules/pino/docs/child-loggers.md +95 -0
- package/node_modules/pino/docs/diagnostics.md +16 -0
- package/node_modules/pino/docs/ecosystem.md +86 -0
- package/node_modules/pino/docs/help.md +345 -0
- package/node_modules/pino/docs/lts.md +64 -0
- package/node_modules/pino/docs/pretty.md +35 -0
- package/node_modules/pino/docs/redaction.md +135 -0
- package/node_modules/pino/docs/transports.md +1376 -0
- package/node_modules/pino/docs/web.md +309 -0
- package/node_modules/pino/eslint.config.js +28 -0
- package/node_modules/pino/examples/basic.js +43 -0
- package/node_modules/pino/examples/transport.js +68 -0
- package/node_modules/pino/favicon.ico +0 -0
- package/node_modules/pino/file.js +12 -0
- package/node_modules/pino/inc-version.sh +42 -0
- package/node_modules/pino/index.html +55 -0
- package/node_modules/pino/lib/caller.js +30 -0
- package/node_modules/pino/lib/constants.js +28 -0
- package/node_modules/pino/lib/deprecations.js +8 -0
- package/node_modules/pino/lib/levels.js +241 -0
- package/node_modules/pino/lib/meta.js +3 -0
- package/node_modules/pino/lib/multistream.js +203 -0
- package/node_modules/pino/lib/proto.js +256 -0
- package/node_modules/pino/lib/redaction.js +114 -0
- package/node_modules/pino/lib/symbols.js +74 -0
- package/node_modules/pino/lib/time.js +39 -0
- package/node_modules/pino/lib/tools.js +427 -0
- package/node_modules/pino/lib/transport-stream.js +56 -0
- package/node_modules/pino/lib/transport.js +289 -0
- package/node_modules/pino/lib/worker.js +194 -0
- package/node_modules/pino/package.json +120 -0
- package/node_modules/pino/pino.d.ts +908 -0
- package/node_modules/pino/pino.js +234 -0
- package/node_modules/pino/test/basic.test.js +886 -0
- package/node_modules/pino/test/broken-pipe.test.js +59 -0
- package/node_modules/pino/test/browser-child.test.js +132 -0
- package/node_modules/pino/test/browser-disabled.test.js +87 -0
- package/node_modules/pino/test/browser-early-console-freeze.test.js +12 -0
- package/node_modules/pino/test/browser-is-level-enabled.test.js +101 -0
- package/node_modules/pino/test/browser-levels.test.js +241 -0
- package/node_modules/pino/test/browser-serializers.test.js +352 -0
- package/node_modules/pino/test/browser-timestamp.test.js +88 -0
- package/node_modules/pino/test/browser-transmit.test.js +417 -0
- package/node_modules/pino/test/browser.test.js +698 -0
- package/node_modules/pino/test/complex-objects.test.js +36 -0
- package/node_modules/pino/test/crlf.test.js +34 -0
- package/node_modules/pino/test/custom-levels.test.js +267 -0
- package/node_modules/pino/test/diagnostics.test.js +107 -0
- package/node_modules/pino/test/error-key.test.js +37 -0
- package/node_modules/pino/test/error.test.js +403 -0
- package/node_modules/pino/test/escaping.test.js +93 -0
- package/node_modules/pino/test/esm/esm.mjs +14 -0
- package/node_modules/pino/test/esm/index.test.js +21 -0
- package/node_modules/pino/test/esm/named-exports.mjs +29 -0
- package/node_modules/pino/test/exit.test.js +79 -0
- package/node_modules/pino/test/fixtures/broken-pipe/basic.js +9 -0
- package/node_modules/pino/test/fixtures/broken-pipe/destination.js +10 -0
- package/node_modules/pino/test/fixtures/broken-pipe/syncfalse.js +12 -0
- package/node_modules/pino/test/fixtures/console-transport.js +13 -0
- package/node_modules/pino/test/fixtures/crashing-transport.js +13 -0
- package/node_modules/pino/test/fixtures/default-exit.js +8 -0
- package/node_modules/pino/test/fixtures/destination-exit.js +8 -0
- package/node_modules/pino/test/fixtures/eval/index.js +13 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/14-files.js +3 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/2-files.js +3 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file1.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file10.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file11.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file12.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file13.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file14.js +11 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file2.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file3.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file4.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file5.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file6.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file7.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file8.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file9.js +5 -0
- package/node_modules/pino/test/fixtures/noop-transport.js +10 -0
- package/node_modules/pino/test/fixtures/pretty/null-prototype.js +8 -0
- package/node_modules/pino/test/fixtures/stdout-hack-protection.js +11 -0
- package/node_modules/pino/test/fixtures/syncfalse-child.js +6 -0
- package/node_modules/pino/test/fixtures/syncfalse-exit.js +9 -0
- package/node_modules/pino/test/fixtures/syncfalse-flush-exit.js +10 -0
- package/node_modules/pino/test/fixtures/syncfalse.js +6 -0
- package/node_modules/pino/test/fixtures/syntax-error-esm.mjs +2 -0
- package/node_modules/pino/test/fixtures/to-file-transport-with-transform.js +20 -0
- package/node_modules/pino/test/fixtures/to-file-transport.js +13 -0
- package/node_modules/pino/test/fixtures/to-file-transport.mjs +8 -0
- package/node_modules/pino/test/fixtures/transport/index.js +12 -0
- package/node_modules/pino/test/fixtures/transport/package.json +5 -0
- package/node_modules/pino/test/fixtures/transport-exit-immediately-with-async-dest.js +16 -0
- package/node_modules/pino/test/fixtures/transport-exit-immediately.js +11 -0
- package/node_modules/pino/test/fixtures/transport-exit-on-ready.js +12 -0
- package/node_modules/pino/test/fixtures/transport-invalid-node-options.js +26 -0
- package/node_modules/pino/test/fixtures/transport-main.js +9 -0
- package/node_modules/pino/test/fixtures/transport-many-lines.js +29 -0
- package/node_modules/pino/test/fixtures/transport-preload-main.mjs +13 -0
- package/node_modules/pino/test/fixtures/transport-preload.mjs +13 -0
- package/node_modules/pino/test/fixtures/transport-string-stdout.js +9 -0
- package/node_modules/pino/test/fixtures/transport-transform.js +21 -0
- package/node_modules/pino/test/fixtures/transport-uses-pino-config.js +33 -0
- package/node_modules/pino/test/fixtures/transport-with-on-exit.js +12 -0
- package/node_modules/pino/test/fixtures/transport-worker-data.js +19 -0
- package/node_modules/pino/test/fixtures/transport-worker-name.js +24 -0
- package/node_modules/pino/test/fixtures/transport-worker.js +15 -0
- package/node_modules/pino/test/fixtures/transport-wrong-export-type.js +3 -0
- package/node_modules/pino/test/fixtures/ts/to-file-transport-native.mts +15 -0
- package/node_modules/pino/test/fixtures/ts/to-file-transport-with-transform.ts +18 -0
- package/node_modules/pino/test/fixtures/ts/to-file-transport.ts +11 -0
- package/node_modules/pino/test/fixtures/ts/transpile.cjs +36 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts +15 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-immediately.ts +10 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts +11 -0
- package/node_modules/pino/test/fixtures/ts/transport-main.ts +8 -0
- package/node_modules/pino/test/fixtures/ts/transport-string-stdout.ts +8 -0
- package/node_modules/pino/test/fixtures/ts/transport-worker.ts +14 -0
- package/node_modules/pino/test/formatters.test.js +364 -0
- package/node_modules/pino/test/helper.d.ts +4 -0
- package/node_modules/pino/test/helper.js +155 -0
- package/node_modules/pino/test/hooks.test.js +114 -0
- package/node_modules/pino/test/http.test.js +214 -0
- package/node_modules/pino/test/internals/version.test.js +17 -0
- package/node_modules/pino/test/is-level-enabled.test.js +179 -0
- package/node_modules/pino/test/jest/basic.spec.js +10 -0
- package/node_modules/pino/test/levels.test.js +810 -0
- package/node_modules/pino/test/metadata.test.js +120 -0
- package/node_modules/pino/test/mixin-merge-strategy.test.js +57 -0
- package/node_modules/pino/test/mixin.test.js +241 -0
- package/node_modules/pino/test/multistream.test.js +729 -0
- package/node_modules/pino/test/redact.test.js +893 -0
- package/node_modules/pino/test/serializers.test.js +257 -0
- package/node_modules/pino/test/stdout-protection.test.js +41 -0
- package/node_modules/pino/test/syncfalse.test.js +186 -0
- package/node_modules/pino/test/timestamp-nano.test.js +37 -0
- package/node_modules/pino/test/timestamp.test.js +124 -0
- package/node_modules/pino/test/transport/big.test.js +42 -0
- package/node_modules/pino/test/transport/bundlers-support.test.js +99 -0
- package/node_modules/pino/test/transport/caller.test.js +24 -0
- package/node_modules/pino/test/transport/core.test.js +733 -0
- package/node_modules/pino/test/transport/core.transpiled.test.ts +114 -0
- package/node_modules/pino/test/transport/crash.test.js +36 -0
- package/node_modules/pino/test/transport/module-link.test.js +241 -0
- package/node_modules/pino/test/transport/native-type-stripping.test.mjs +151 -0
- package/node_modules/pino/test/transport/node-options.test.js +116 -0
- package/node_modules/pino/test/transport/pipeline.test.js +137 -0
- package/node_modules/pino/test/transport/preload.test.js +54 -0
- package/node_modules/pino/test/transport/repl.test.js +15 -0
- package/node_modules/pino/test/transport/sync-false.test.js +67 -0
- package/node_modules/pino/test/transport/sync-true.test.js +57 -0
- package/node_modules/pino/test/transport/targets.test.js +48 -0
- package/node_modules/pino/test/transport/uses-pino-config.test.js +166 -0
- package/node_modules/pino/test/transport-stream.test.js +40 -0
- package/node_modules/pino/test/types/pino-import.test-d.cts +30 -0
- package/node_modules/pino/test/types/pino-multistream.test-d.ts +28 -0
- package/node_modules/pino/test/types/pino-top-export.test-d.ts +34 -0
- package/node_modules/pino/test/types/pino-transport.test-d.ts +156 -0
- package/node_modules/pino/test/types/pino-type-only.test-d.ts +75 -0
- package/node_modules/pino/test/types/pino.test-d.ts +683 -0
- package/node_modules/pino/test/types/pino.ts +91 -0
- package/node_modules/pino/tsconfig.json +14 -0
- package/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
- package/node_modules/pino-abstract-transport/.github/workflows/ci.yml +80 -0
- package/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
- package/node_modules/pino-abstract-transport/LICENSE +21 -0
- package/node_modules/pino-abstract-transport/README.md +171 -0
- package/node_modules/pino-abstract-transport/index.d.ts +122 -0
- package/node_modules/pino-abstract-transport/index.js +128 -0
- package/node_modules/pino-abstract-transport/package.json +41 -0
- package/node_modules/pino-abstract-transport/test/base.test.js +473 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-async-iteration.js +22 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-on-data.js +22 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-transform.js +24 -0
- package/node_modules/pino-abstract-transport/test/fixtures/worker-pipeline.js +15 -0
- package/node_modules/pino-abstract-transport/test/match.js +24 -0
- package/node_modules/pino-abstract-transport/test/types/index.test-d.ts +31 -0
- package/node_modules/pino-abstract-transport/test/worker.test.js +372 -0
- package/node_modules/pino-std-serializers/.editorconfig +13 -0
- package/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
- package/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
- package/node_modules/pino-std-serializers/LICENSE +7 -0
- package/node_modules/pino-std-serializers/Readme.md +182 -0
- package/node_modules/pino-std-serializers/eslint.config.js +7 -0
- package/node_modules/pino-std-serializers/index.d.ts +145 -0
- package/node_modules/pino-std-serializers/index.js +36 -0
- package/node_modules/pino-std-serializers/lib/err-helpers.js +118 -0
- package/node_modules/pino-std-serializers/lib/err-proto.js +48 -0
- package/node_modules/pino-std-serializers/lib/err-with-cause.js +48 -0
- package/node_modules/pino-std-serializers/lib/err.js +45 -0
- package/node_modules/pino-std-serializers/lib/req.js +100 -0
- package/node_modules/pino-std-serializers/lib/res.js +47 -0
- package/node_modules/pino-std-serializers/package.json +42 -0
- package/node_modules/pino-std-serializers/test/err-with-cause.test.js +187 -0
- package/node_modules/pino-std-serializers/test/err.test.js +200 -0
- package/node_modules/pino-std-serializers/test/req.test.js +477 -0
- package/node_modules/pino-std-serializers/test/res.test.js +120 -0
- package/node_modules/pino-std-serializers/test/types/index.test-d.ts +71 -0
- package/node_modules/pino-std-serializers/tsconfig.json +13 -0
- package/node_modules/process-warning/.gitattributes +2 -0
- package/node_modules/process-warning/.github/dependabot.yml +13 -0
- package/node_modules/process-warning/.github/workflows/ci.yml +22 -0
- package/node_modules/process-warning/LICENSE +21 -0
- package/node_modules/process-warning/README.md +118 -0
- package/node_modules/process-warning/benchmarks/warn.js +25 -0
- package/node_modules/process-warning/eslint.config.js +6 -0
- package/node_modules/process-warning/examples/example.js +11 -0
- package/node_modules/process-warning/index.js +124 -0
- package/node_modules/process-warning/package.json +73 -0
- package/node_modules/process-warning/test/emit-interpolated-string.test.js +34 -0
- package/node_modules/process-warning/test/emit-once-only.test.js +33 -0
- package/node_modules/process-warning/test/emit-reset.test.js +40 -0
- package/node_modules/process-warning/test/emit-set.test.js +35 -0
- package/node_modules/process-warning/test/emit-unlimited.test.js +42 -0
- package/node_modules/process-warning/test/index.test.js +99 -0
- package/node_modules/process-warning/test/issue-88.test.js +38 -0
- package/node_modules/process-warning/test/jest.test.js +24 -0
- package/node_modules/process-warning/test/no-warnings.test.js +80 -0
- package/node_modules/process-warning/test/promise.js +10 -0
- package/node_modules/process-warning/types/index.d.ts +37 -0
- package/node_modules/process-warning/types/index.test-d.ts +36 -0
- package/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
- package/node_modules/quick-format-unescaped/LICENSE +21 -0
- package/node_modules/quick-format-unescaped/benchmark.js +24 -0
- package/node_modules/quick-format-unescaped/index.js +109 -0
- package/node_modules/quick-format-unescaped/package.json +29 -0
- package/node_modules/quick-format-unescaped/readme.md +66 -0
- package/node_modules/quick-format-unescaped/test/index.js +136 -0
- package/node_modules/real-require/LICENSE.md +21 -0
- package/node_modules/real-require/README.md +51 -0
- package/node_modules/real-require/package.json +49 -0
- package/node_modules/real-require/src/index.js +14 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/ret/LICENSE +21 -0
- package/node_modules/ret/README.md +539 -0
- package/node_modules/ret/dist/index.d.ts +7 -0
- package/node_modules/ret/dist/index.js +26 -0
- package/node_modules/ret/dist/index.js.map +1 -0
- package/node_modules/ret/dist/reconstruct.d.ts +2 -0
- package/node_modules/ret/dist/reconstruct.js +77 -0
- package/node_modules/ret/dist/reconstruct.js.map +1 -0
- package/node_modules/ret/dist/sets-lookup.d.ts +5 -0
- package/node_modules/ret/dist/sets-lookup.js +51 -0
- package/node_modules/ret/dist/sets-lookup.js.map +1 -0
- package/node_modules/ret/dist/sets.d.ts +9 -0
- package/node_modules/ret/dist/sets.js +43 -0
- package/node_modules/ret/dist/sets.js.map +1 -0
- package/node_modules/ret/dist/tokenizer.d.ts +8 -0
- package/node_modules/ret/dist/tokenizer.js +361 -0
- package/node_modules/ret/dist/tokenizer.js.map +1 -0
- package/node_modules/ret/dist/types/index.d.ts +3 -0
- package/node_modules/ret/dist/types/index.js +16 -0
- package/node_modules/ret/dist/types/index.js.map +1 -0
- package/node_modules/ret/dist/types/set-lookup.d.ts +8 -0
- package/node_modules/ret/dist/types/set-lookup.js +3 -0
- package/node_modules/ret/dist/types/set-lookup.js.map +1 -0
- package/node_modules/ret/dist/types/tokens.d.ts +41 -0
- package/node_modules/ret/dist/types/tokens.js +3 -0
- package/node_modules/ret/dist/types/tokens.js.map +1 -0
- package/node_modules/ret/dist/types/types.d.ts +10 -0
- package/node_modules/ret/dist/types/types.js +15 -0
- package/node_modules/ret/dist/types/types.js.map +1 -0
- package/node_modules/ret/dist/util.d.ts +18 -0
- package/node_modules/ret/dist/util.js +82 -0
- package/node_modules/ret/dist/util.js.map +1 -0
- package/node_modules/ret/dist/write-set-tokens.d.ts +14 -0
- package/node_modules/ret/dist/write-set-tokens.js +108 -0
- package/node_modules/ret/dist/write-set-tokens.js.map +1 -0
- package/node_modules/ret/package.json +42 -0
- package/node_modules/reusify/.github/dependabot.yml +7 -0
- package/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/node_modules/reusify/LICENSE +22 -0
- package/node_modules/reusify/README.md +139 -0
- package/node_modules/reusify/SECURITY.md +15 -0
- package/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/node_modules/reusify/benchmarks/fib.js +13 -0
- package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/node_modules/reusify/eslint.config.js +14 -0
- package/node_modules/reusify/package.json +50 -0
- package/node_modules/reusify/reusify.d.ts +14 -0
- package/node_modules/reusify/reusify.js +33 -0
- package/node_modules/reusify/test.js +66 -0
- package/node_modules/reusify/tsconfig.json +11 -0
- package/node_modules/rfdc/.github/workflows/ci.yml +21 -0
- package/node_modules/rfdc/LICENSE +15 -0
- package/node_modules/rfdc/default.js +3 -0
- package/node_modules/rfdc/index.d.ts +13 -0
- package/node_modules/rfdc/index.js +198 -0
- package/node_modules/rfdc/index.test-d.ts +13 -0
- package/node_modules/rfdc/package.json +73 -0
- package/node_modules/rfdc/readme.md +181 -0
- package/node_modules/rfdc/test/index.js +306 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/safe-regex2/.gitattributes +2 -0
- package/node_modules/safe-regex2/.github/dependabot.yml +13 -0
- package/node_modules/safe-regex2/.github/workflows/ci.yml +33 -0
- package/node_modules/safe-regex2/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/safe-regex2/LICENSE +21 -0
- package/node_modules/safe-regex2/README.md +68 -0
- package/node_modules/safe-regex2/bin/safe-regex2.js +58 -0
- package/node_modules/safe-regex2/eslint.config.js +6 -0
- package/node_modules/safe-regex2/example/safe.js +5 -0
- package/node_modules/safe-regex2/index.js +76 -0
- package/node_modules/safe-regex2/package.json +78 -0
- package/node_modules/safe-regex2/test/regex.test.js +58 -0
- package/node_modules/safe-regex2/types/index.d.ts +9 -0
- package/node_modules/safe-regex2/types/index.test-d.ts +12 -0
- package/node_modules/safe-stable-stringify/LICENSE +21 -0
- package/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/node_modules/safe-stable-stringify/index.d.ts +22 -0
- package/node_modules/safe-stable-stringify/index.js +625 -0
- package/node_modules/safe-stable-stringify/package.json +65 -0
- package/node_modules/safe-stable-stringify/readme.md +179 -0
- package/node_modules/secure-json-parse/.airtap.yml +7 -0
- package/node_modules/secure-json-parse/.gitattributes +2 -0
- package/node_modules/secure-json-parse/.github/dependabot.yml +13 -0
- package/node_modules/secure-json-parse/.github/stale.yml +21 -0
- package/node_modules/secure-json-parse/.github/workflows/ci.yml +149 -0
- package/node_modules/secure-json-parse/LICENSE +19 -0
- package/node_modules/secure-json-parse/README.md +132 -0
- package/node_modules/secure-json-parse/benchmarks/ignore.js +35 -0
- package/node_modules/secure-json-parse/benchmarks/no__proto__.js +40 -0
- package/node_modules/secure-json-parse/benchmarks/package.json +15 -0
- package/node_modules/secure-json-parse/benchmarks/remove.js +39 -0
- package/node_modules/secure-json-parse/benchmarks/throw.js +49 -0
- package/node_modules/secure-json-parse/benchmarks/valid.js +49 -0
- package/node_modules/secure-json-parse/eslint.config.js +6 -0
- package/node_modules/secure-json-parse/index.js +161 -0
- package/node_modules/secure-json-parse/package.json +74 -0
- package/node_modules/secure-json-parse/test/index.test.js +649 -0
- package/node_modules/secure-json-parse/types/index.d.ts +60 -0
- package/node_modules/secure-json-parse/types/index.test-d.ts +43 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +680 -0
- package/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +564 -0
- package/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +93 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +17 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/set-cookie-parser/LICENSE +21 -0
- package/node_modules/set-cookie-parser/README.md +202 -0
- package/node_modules/set-cookie-parser/lib/set-cookie.js +242 -0
- package/node_modules/set-cookie-parser/package.json +45 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-command/readme.md +34 -0
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +9 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +74 -0
- package/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- package/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- package/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/node_modules/signal-exit/package.json +106 -0
- package/node_modules/sonic-boom/.eslintignore +2 -0
- package/node_modules/sonic-boom/.taprc +3 -0
- package/node_modules/sonic-boom/LICENSE +21 -0
- package/node_modules/sonic-boom/README.md +153 -0
- package/node_modules/sonic-boom/bench.js +98 -0
- package/node_modules/sonic-boom/check.js +18 -0
- package/node_modules/sonic-boom/example.js +8 -0
- package/node_modules/sonic-boom/fixtures/firehose.js +22 -0
- package/node_modules/sonic-boom/index.js +733 -0
- package/node_modules/sonic-boom/package.json +52 -0
- package/node_modules/sonic-boom/test/destroy.test.js +49 -0
- package/node_modules/sonic-boom/test/end.test.js +98 -0
- package/node_modules/sonic-boom/test/flush-sync.test.js +140 -0
- package/node_modules/sonic-boom/test/flush.test.js +419 -0
- package/node_modules/sonic-boom/test/fsync.test.js +63 -0
- package/node_modules/sonic-boom/test/helper.js +42 -0
- package/node_modules/sonic-boom/test/minlength.test.js +35 -0
- package/node_modules/sonic-boom/test/mode.test.js +116 -0
- package/node_modules/sonic-boom/test/periodicflush.test.js +61 -0
- package/node_modules/sonic-boom/test/reopen.test.js +239 -0
- package/node_modules/sonic-boom/test/retry.test.js +414 -0
- package/node_modules/sonic-boom/test/sync.test.js +261 -0
- package/node_modules/sonic-boom/test/write.test.js +515 -0
- package/node_modules/sonic-boom/types/index.d.ts +63 -0
- package/node_modules/sonic-boom/types/tests/test.ts +4 -0
- package/node_modules/split2/LICENSE +13 -0
- package/node_modules/split2/README.md +85 -0
- package/node_modules/split2/bench.js +27 -0
- package/node_modules/split2/index.js +141 -0
- package/node_modules/split2/package.json +39 -0
- package/node_modules/split2/test.js +409 -0
- package/node_modules/statuses/HISTORY.md +87 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +139 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/thread-stream/.claude/settings.local.json +15 -0
- package/node_modules/thread-stream/.github/dependabot.yml +13 -0
- package/node_modules/thread-stream/.github/workflows/ci.yml +74 -0
- package/node_modules/thread-stream/LICENSE +21 -0
- package/node_modules/thread-stream/README.md +138 -0
- package/node_modules/thread-stream/bench.js +85 -0
- package/node_modules/thread-stream/eslint.config.js +10 -0
- package/node_modules/thread-stream/index.d.ts +99 -0
- package/node_modules/thread-stream/index.js +645 -0
- package/node_modules/thread-stream/lib/indexes.js +11 -0
- package/node_modules/thread-stream/lib/wait.js +77 -0
- package/node_modules/thread-stream/lib/worker.js +298 -0
- package/node_modules/thread-stream/node_modules/real-require/LICENSE.md +21 -0
- package/node_modules/thread-stream/node_modules/real-require/README.md +51 -0
- package/node_modules/thread-stream/node_modules/real-require/package.json +38 -0
- package/node_modules/thread-stream/node_modules/real-require/src/index.js +14 -0
- package/node_modules/thread-stream/package.json +50 -0
- package/node_modules/thread-stream/test/base.test.js +259 -0
- package/node_modules/thread-stream/test/bench.test.js +38 -0
- package/node_modules/thread-stream/test/bundlers.test.js +59 -0
- package/node_modules/thread-stream/test/close-on-gc.js +37 -0
- package/node_modules/thread-stream/test/commonjs-fallback.test.js +75 -0
- package/node_modules/thread-stream/test/context.test.js +21 -0
- package/node_modules/thread-stream/test/create-and-exit.js +16 -0
- package/node_modules/thread-stream/test/custom-worker.js +9 -0
- package/node_modules/thread-stream/test/dir with spaces/test-package.zip +0 -0
- package/node_modules/thread-stream/test/emit-event.js +22 -0
- package/node_modules/thread-stream/test/end.test.js +56 -0
- package/node_modules/thread-stream/test/error.js +14 -0
- package/node_modules/thread-stream/test/esm.test.mjs +46 -0
- package/node_modules/thread-stream/test/event.test.js +24 -0
- package/node_modules/thread-stream/test/exit.js +14 -0
- package/node_modules/thread-stream/test/flush-worker.js +68 -0
- package/node_modules/thread-stream/test/flush.test.js +112 -0
- package/node_modules/thread-stream/test/get-context.js +22 -0
- package/node_modules/thread-stream/test/helper.d.ts +1 -0
- package/node_modules/thread-stream/test/helper.js +26 -0
- package/node_modules/thread-stream/test/indexes.test.js +11 -0
- package/node_modules/thread-stream/test/message-without-code.js +19 -0
- package/node_modules/thread-stream/test/multibyte-chars.test.mjs +75 -0
- package/node_modules/thread-stream/test/multibyte-overrun.test.mjs +33 -0
- package/node_modules/thread-stream/test/on-message.js +18 -0
- package/node_modules/thread-stream/test/pkg/index.js +37 -0
- package/node_modules/thread-stream/test/pkg/pkg.config.json +14 -0
- package/node_modules/thread-stream/test/pkg/pkg.test.js +45 -0
- package/node_modules/thread-stream/test/port.js +16 -0
- package/node_modules/thread-stream/test/post-message.test.js +23 -0
- package/node_modules/thread-stream/test/report-thread-name.js +16 -0
- package/node_modules/thread-stream/test/string-limit-2.test.js +35 -0
- package/node_modules/thread-stream/test/string-limit.test.js +37 -0
- package/node_modules/thread-stream/test/syntax-error.mjs +2 -0
- package/node_modules/thread-stream/test/thread-management.test.js +150 -0
- package/node_modules/thread-stream/test/to-file-on-destroy.js +23 -0
- package/node_modules/thread-stream/test/to-file-on-final.js +24 -0
- package/node_modules/thread-stream/test/to-file.js +12 -0
- package/node_modules/thread-stream/test/to-file.mjs +8 -0
- package/node_modules/thread-stream/test/to-next.js +9 -0
- package/node_modules/thread-stream/test/transpiled.test.js +29 -0
- package/node_modules/thread-stream/test/ts/to-file.ts +10 -0
- package/node_modules/thread-stream/test/ts/transpile.sh +19 -0
- package/node_modules/thread-stream/test/ts-commonjs-default-export.zip +0 -0
- package/node_modules/thread-stream/test/ts-native.test.mjs +35 -0
- package/node_modules/thread-stream/test/ts-node-fallback.test.js +35 -0
- package/node_modules/thread-stream/test/uncaughtException.js +21 -0
- package/node_modules/thread-stream/test/unhandledRejection.js +21 -0
- package/node_modules/thread-stream/test/watch-mode.test.js +30 -0
- package/node_modules/thread-stream/test/worker-name.test.js +43 -0
- package/node_modules/thread-stream/test/yarnrc.yml +7 -0
- package/node_modules/thread-stream/tsconfig.json +8 -0
- package/node_modules/toad-cache/LICENSE +21 -0
- package/node_modules/toad-cache/README.md +265 -0
- package/node_modules/toad-cache/dist/toad-cache.cjs +878 -0
- package/node_modules/toad-cache/dist/toad-cache.mjs +852 -0
- package/node_modules/toad-cache/package.json +84 -0
- package/node_modules/toad-cache/toad-cache.d.cts +138 -0
- package/node_modules/toad-cache/toad-cache.d.ts +128 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/which/CHANGELOG.md +166 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +54 -0
- package/node_modules/which/bin/node-which +52 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/package.json +95 -17
- package/scripts/build-local.sh +10 -11
- package/scripts/check-colima-launchd.mjs +232 -0
- package/scripts/check-new-file-tests.mjs +5 -44
- package/scripts/check-open-core-boundaries.mjs +284 -0
- package/scripts/check-test-layering.sh +86 -0
- package/scripts/local-web-upgrade-test.README +146 -0
- package/scripts/local-web-upgrade-test.example.env +54 -0
- package/scripts/local-web-upgrade-test.sh +881 -0
- package/scripts/pack-with-gui.mjs +391 -0
- package/scripts/prune-open-core-dist.mjs +4 -0
- package/scripts/run.sh +24 -25
- package/scripts/setup-pi.sh +2 -2
- package/scripts/smoke/hermes-bootstrap.sh +2 -2
- package/scripts/smoke-backend.mjs +33 -1
- package/dist/cli/panel.js.map +0 -1
- package/dist/services/panel-manager.d.ts +0 -50
- package/dist/services/panel-manager.js.map +0 -1
- package/dist/services/runtime/adapters/openclaw-routes.js.map +0 -1
- package/public/assets/HermesConfigForm-DVlhg3WV.js +0 -4
- package/public/assets/InstanceDetail-CxSy2cpe.js +0 -92
- package/public/assets/NewInstance-BIYDmJis.js +0 -1
- package/public/assets/ProviderRecommendations-BuRnvRcI.js +0 -1
- package/public/assets/Settings-Cc-tYBil.js +0 -1
- package/public/assets/Setup-lGZEk5jq.js +0 -1
- package/public/assets/WeixinLoginPanel-CoGqzxeV.js +0 -9
- package/public/assets/index-87IJXG-w.css +0 -1
- package/public/assets/index-BZc5zH7u.js +0 -19
- package/public/assets/input-paste-CrNVAyOy.js +0 -1
- package/public/assets/providers-DtNXh9JD.js +0 -1
- package/public/assets/registry-BWnkJgZ1.js +0 -2
- package/scripts/build-image.sh +0 -55
- package/scripts/check-i18n.mjs +0 -154
- /package/{public → node_modules/jishushell-panel/output/public}/assets/logo-black-theme-DywLAtFy.png +0 -0
- /package/{public → node_modules/jishushell-panel/output/public}/assets/logo-white-theme-DXffFAWw.png +0 -0
- /package/{public → node_modules/jishushell-panel/output/public}/favicon.png +0 -0
- /package/{public → node_modules/jishushell-panel/output/public}/logos/hermes.png +0 -0
- /package/{public → node_modules/jishushell-panel/output/public}/logos/ollama.png +0 -0
- /package/{public → node_modules/jishushell-panel/output/public}/logos/openclaw.svg +0 -0
|
@@ -20,8 +20,10 @@ import { StringDecoder } from "string_decoder";
|
|
|
20
20
|
import { promisify } from "util";
|
|
21
21
|
import { parse } from "yaml";
|
|
22
22
|
import * as config from "../config.js";
|
|
23
|
-
import { getGatewayPort, getInstance, getInstanceRuntime, instanceMetaPath, getRuntimeEnv, isPortInUse, reallocateGatewayPort, } from "./instance-manager.js";
|
|
23
|
+
import { extractGatewayPort, getGatewayPort, getInstance, getInstanceRuntime, instanceMetaPath, getRuntimeEnv, isPortInUse, reallocateGatewayPort, } from "./instance-manager.js";
|
|
24
24
|
import { getAdapter, resolveAgentType } from "./runtime/index.js";
|
|
25
|
+
import { resolveNomadJobId } from "./runtime/job-id.js";
|
|
26
|
+
import { resolveRuntimeIdentity } from "./runtime-identity.js";
|
|
25
27
|
function getConfigValue(name) {
|
|
26
28
|
return name in config ? config[name] : undefined;
|
|
27
29
|
}
|
|
@@ -34,7 +36,7 @@ const _INSTANCES_DIR = resolveConfigPath(getConfigValue("INSTANCES_DIR"), join(J
|
|
|
34
36
|
const getNomadAddrValue = getConfigValue("getNomadAddr");
|
|
35
37
|
const getNomadDriverValue = getConfigValue("getNomadDriver");
|
|
36
38
|
const getNomadTokenValue = getConfigValue("getNomadToken");
|
|
37
|
-
const
|
|
39
|
+
const getCoreConfigValue = getConfigValue("getCoreConfig");
|
|
38
40
|
const getNomadAddr = typeof getNomadAddrValue === "function"
|
|
39
41
|
? getNomadAddrValue
|
|
40
42
|
: () => "http://127.0.0.1:4646";
|
|
@@ -44,8 +46,8 @@ const getNomadDriver = typeof getNomadDriverValue === "function"
|
|
|
44
46
|
const getNomadToken = typeof getNomadTokenValue === "function"
|
|
45
47
|
? getNomadTokenValue
|
|
46
48
|
: () => "";
|
|
47
|
-
const
|
|
48
|
-
?
|
|
49
|
+
const getCoreConfig = typeof getCoreConfigValue === "function"
|
|
50
|
+
? getCoreConfigValue
|
|
49
51
|
: () => ({});
|
|
50
52
|
// Docker image names must match this pattern to prevent command injection.
|
|
51
53
|
export const DOCKER_IMAGE_RE = /^[a-zA-Z0-9][a-zA-Z0-9\-_.:/@]*$/;
|
|
@@ -111,6 +113,9 @@ function resolveTaskName(instanceId) {
|
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
function getLegacyManagedAppType(instanceId) {
|
|
116
|
+
const identity = resolveRuntimeIdentity(instanceId);
|
|
117
|
+
if (identity?.installMode === "app-dir")
|
|
118
|
+
return null;
|
|
114
119
|
const meta = getInstance(instanceId);
|
|
115
120
|
const appType = typeof meta?.app_type === "string" ? meta.app_type.trim() : "";
|
|
116
121
|
return appType === "custom" || appType === "ollama" ? appType : null;
|
|
@@ -136,9 +141,16 @@ async function getAppDirInstalledApp(instanceId) {
|
|
|
136
141
|
return null;
|
|
137
142
|
return appData;
|
|
138
143
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
144
|
+
async function getAdapterManagedAppDirInstalledApp(instanceId) {
|
|
145
|
+
const appData = await getAppDirInstalledApp(instanceId);
|
|
146
|
+
if (!appData)
|
|
147
|
+
return null;
|
|
148
|
+
const identity = resolveRuntimeIdentity(instanceId);
|
|
149
|
+
return identity?.driver === "runtime-adapter" ? appData : null;
|
|
150
|
+
}
|
|
151
|
+
// Tracks the core server's listening port so bridge-mode containers can reach it via host.docker.internal.
|
|
152
|
+
let _corePort = 8091;
|
|
153
|
+
export function setCorePort(port) { _corePort = port; }
|
|
142
154
|
// §32.2 / §32.8: patchJsproxyBaseUrl / patchDockerBridgeGatewayBind /
|
|
143
155
|
// ensureOpenclawUpdateSeed previously lived here (~140 lines). They are now
|
|
144
156
|
// owned by `src/services/runtime/adapters/openclaw.ts` and invoked via
|
|
@@ -249,12 +261,7 @@ function nomadAuthHeaders() {
|
|
|
249
261
|
// command / args / env / resources now live inside each adapter's
|
|
250
262
|
// `buildNomadTask` — nomad-manager never looks at them directly.
|
|
251
263
|
function jobId(instanceId) {
|
|
252
|
-
|
|
253
|
-
if (!prefix)
|
|
254
|
-
return instanceId;
|
|
255
|
-
if (instanceId.startsWith(prefix))
|
|
256
|
-
return instanceId;
|
|
257
|
-
return `${prefix}${instanceId}`;
|
|
264
|
+
return resolveNomadJobId(instanceId, jobPrefixFor(instanceId));
|
|
258
265
|
}
|
|
259
266
|
/** Exported only for unit tests — not part of the public API. */
|
|
260
267
|
export function __jobIdForTests(instanceId) {
|
|
@@ -540,24 +547,35 @@ async function injectConnectionsRuntimeEnv(instanceId, task) {
|
|
|
540
547
|
}
|
|
541
548
|
}
|
|
542
549
|
async function getRunningAlloc(instanceId) {
|
|
550
|
+
const allocs = await getAllocs(instanceId);
|
|
551
|
+
if (!allocs)
|
|
552
|
+
return null;
|
|
553
|
+
for (const status of ["running", "pending"]) {
|
|
554
|
+
for (const alloc of allocs) {
|
|
555
|
+
if (alloc.ClientStatus === status)
|
|
556
|
+
return alloc;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
return null;
|
|
560
|
+
}
|
|
561
|
+
async function getAllocs(instanceId) {
|
|
543
562
|
const jid = jobId(instanceId);
|
|
544
563
|
try {
|
|
545
564
|
const resp = await nomadGet(`/v1/job/${jid}/allocations`);
|
|
546
565
|
if (resp.status === 404)
|
|
547
|
-
return
|
|
566
|
+
return [];
|
|
548
567
|
const allocs = await resp.json();
|
|
549
|
-
|
|
550
|
-
for (const alloc of allocs) {
|
|
551
|
-
if (alloc.ClientStatus === status)
|
|
552
|
-
return alloc;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
return null;
|
|
568
|
+
return Array.isArray(allocs) ? allocs : [];
|
|
556
569
|
}
|
|
557
570
|
catch {
|
|
558
571
|
return null;
|
|
559
572
|
}
|
|
560
573
|
}
|
|
574
|
+
function latestAlloc(allocs) {
|
|
575
|
+
if (!allocs.length)
|
|
576
|
+
return null;
|
|
577
|
+
return [...allocs].sort((a, b) => ((b.ModifyIndex ?? b.CreateIndex ?? 0) - (a.ModifyIndex ?? a.CreateIndex ?? 0)))[0] ?? null;
|
|
578
|
+
}
|
|
561
579
|
// Returns true if the Nomad job exists and was NOT explicitly stopped by the user (Stop=false).
|
|
562
580
|
// Used on jishushell startup to auto-restart instances that were running before a reboot.
|
|
563
581
|
export async function shouldAutoStart(instanceId) {
|
|
@@ -570,7 +588,7 @@ export async function shouldAutoStart(instanceId) {
|
|
|
570
588
|
// on-disk instance config is still present and MUST be
|
|
571
589
|
// resubmitted on the next jishushell startup, otherwise every
|
|
572
590
|
// OpenClaw instance silently disappears after the upgrade.
|
|
573
|
-
// (b) Brand-new instance created without a
|
|
591
|
+
// (b) Brand-new instance created without a default LLM provider, never
|
|
574
592
|
// started via /api/instances/.../service/start. Resubmitting it
|
|
575
593
|
// here is a safe superset — the Nomad job is idempotent and the
|
|
576
594
|
// container starts whether or not a provider is configured; the
|
|
@@ -604,7 +622,12 @@ export async function getStatus(instanceId) {
|
|
|
604
622
|
catch {
|
|
605
623
|
return { ...stopped, status: "unknown", error: "Nomad unreachable" };
|
|
606
624
|
}
|
|
607
|
-
const
|
|
625
|
+
const allocs = await getAllocs(instanceId);
|
|
626
|
+
if (allocs == null || allocs.length === 0)
|
|
627
|
+
return { ...stopped, status: "pending" };
|
|
628
|
+
const alloc = allocs.find((entry) => entry.ClientStatus === "running")
|
|
629
|
+
?? allocs.find((entry) => entry.ClientStatus === "pending")
|
|
630
|
+
?? latestAlloc(allocs);
|
|
608
631
|
if (!alloc)
|
|
609
632
|
return { ...stopped, status: "pending" };
|
|
610
633
|
const allocId = alloc.ID;
|
|
@@ -642,32 +665,19 @@ export async function getStatus(instanceId) {
|
|
|
642
665
|
}
|
|
643
666
|
}
|
|
644
667
|
catch { /* ignore */ }
|
|
645
|
-
// Fallback: Nomad cgroup stats are often zero on cgroup v2 (e.g. Raspberry
|
|
646
|
-
//
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
const raw = stdout.trim();
|
|
658
|
-
// Format: "499.6MiB / 3GiB" or "123.4MB / 2GB"
|
|
659
|
-
const match = raw.match(/^([\d.]+)\s*(MiB|GiB|MB|GB|KiB|KB)/i);
|
|
660
|
-
if (match) {
|
|
661
|
-
let mb = parseFloat(match[1]);
|
|
662
|
-
const unit = match[2].toLowerCase();
|
|
663
|
-
if (unit === "gib" || unit === "gb")
|
|
664
|
-
mb *= 1024;
|
|
665
|
-
else if (unit === "kib" || unit === "kb")
|
|
666
|
-
mb /= 1024;
|
|
667
|
-
result.memory_mb = Math.round(mb * 10) / 10;
|
|
668
|
-
}
|
|
668
|
+
// Fallback: Nomad cgroup stats are often zero on cgroup v2 (e.g. Raspberry
|
|
669
|
+
// Pi / CIX). Read from the shared, cached, single-flight `docker stats`
|
|
670
|
+
// snapshot instead of forking one `docker stats` per instance — see
|
|
671
|
+
// getDockerMemSnapshot for why per-instance forking was the cold-path cost.
|
|
672
|
+
if (!result.memory_mb && allocId && /^[a-f0-9-]+$/i.test(allocId)) {
|
|
673
|
+
const containerName = `${resolveTaskName(instanceId)}-${allocId}`;
|
|
674
|
+
const stat = (await getDockerMemSnapshot()).get(containerName);
|
|
675
|
+
if (stat) {
|
|
676
|
+
if (stat.memory_mb)
|
|
677
|
+
result.memory_mb = stat.memory_mb;
|
|
678
|
+
if (!result.cpu_percent && stat.cpu_percent)
|
|
679
|
+
result.cpu_percent = stat.cpu_percent;
|
|
669
680
|
}
|
|
670
|
-
catch { /* ignore */ }
|
|
671
681
|
}
|
|
672
682
|
return result;
|
|
673
683
|
}
|
|
@@ -679,6 +689,20 @@ async function phaseRunningCheck(instanceId) {
|
|
|
679
689
|
}
|
|
680
690
|
return { ok: true };
|
|
681
691
|
}
|
|
692
|
+
async function phaseResetTerminalJobBeforeStart(instanceId) {
|
|
693
|
+
const status = await getStatus(instanceId);
|
|
694
|
+
if (!["failed", "dead", "complete"].includes(String(status.status)))
|
|
695
|
+
return;
|
|
696
|
+
try {
|
|
697
|
+
const resp = await nomadDelete(`/v1/job/${jobId(instanceId)}?purge=false`);
|
|
698
|
+
if (!resp.ok && resp.status !== 404) {
|
|
699
|
+
console.warn(`[nomad] ${instanceId}: failed to stop terminal job before start (HTTP ${resp.status}): ${await resp.text()}`);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
catch (e) {
|
|
703
|
+
console.warn(`[nomad] ${instanceId}: failed to stop terminal job before start: ${e?.message ?? e}`);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
682
706
|
/**
|
|
683
707
|
* Phase 2: home-conflict check — dispatched through the adapter so
|
|
684
708
|
* framework code carries no agentType-specific knowledge. Adapters that
|
|
@@ -737,9 +761,21 @@ async function phasePreStartHook(adapter, instanceId) {
|
|
|
737
761
|
}
|
|
738
762
|
catch (e) {
|
|
739
763
|
if (e && typeof e === "object" && e.building && e.taskId) {
|
|
740
|
-
return {
|
|
764
|
+
return {
|
|
765
|
+
ok: false,
|
|
766
|
+
error: e.message,
|
|
767
|
+
building: true,
|
|
768
|
+
taskId: e.taskId,
|
|
769
|
+
...(typeof e.code === "string" ? { code: e.code } : {}),
|
|
770
|
+
...(typeof e.statusCode === "number" ? { statusCode: e.statusCode } : {}),
|
|
771
|
+
};
|
|
741
772
|
}
|
|
742
|
-
return {
|
|
773
|
+
return {
|
|
774
|
+
ok: false,
|
|
775
|
+
error: e?.message || String(e),
|
|
776
|
+
...(typeof e?.code === "string" ? { code: e.code } : {}),
|
|
777
|
+
...(typeof e?.statusCode === "number" ? { statusCode: e.statusCode } : {}),
|
|
778
|
+
};
|
|
743
779
|
}
|
|
744
780
|
}
|
|
745
781
|
/**
|
|
@@ -773,45 +809,23 @@ async function phaseRefreshConnections(adapter, instanceId) {
|
|
|
773
809
|
return;
|
|
774
810
|
try {
|
|
775
811
|
const meta = getInstance(instanceId);
|
|
776
|
-
|
|
777
|
-
if (!meta || !connections || Object.keys(connections).length === 0)
|
|
812
|
+
if (!meta)
|
|
778
813
|
return;
|
|
814
|
+
const { getApp, refreshCapabilityRegistry } = await import("./app/app-manager.js");
|
|
779
815
|
const { loadCapabilitySpecForLegacyInstance } = await import("./runtime/migrations.js");
|
|
780
|
-
const
|
|
816
|
+
const appData = getApp(instanceId);
|
|
817
|
+
const spec = appData?.spec ?? loadCapabilitySpecForLegacyInstance(meta);
|
|
781
818
|
if (!spec)
|
|
782
819
|
return;
|
|
783
|
-
|
|
784
|
-
const {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
// Accumulate env across all resolved bindings via a stub
|
|
791
|
-
// writeConnectionEnv that just collects into `merged`. We don't
|
|
792
|
-
// run the real persist hooks here because those would re-write
|
|
793
|
-
// generic-app `connections-env` (already handled by
|
|
794
|
-
// injectConnectionsRuntimeEnv); we only want the env so we can
|
|
795
|
-
// pass it to adapter.applyConnectionEnv below.
|
|
796
|
-
const stubCtx = {
|
|
797
|
-
registry: await import("./capability-registry.js"),
|
|
798
|
-
adapter: { applyConnectionEnv: undefined },
|
|
799
|
-
async writeConnectionEnv(_inst, env) {
|
|
800
|
-
for (const [k, v] of Object.entries(env)) {
|
|
801
|
-
merged[k] = v;
|
|
802
|
-
seenEnvKeys.add(k);
|
|
803
|
-
}
|
|
804
|
-
},
|
|
805
|
-
};
|
|
806
|
-
for (const binding of resolved) {
|
|
807
|
-
const hook = PERSIST_HOOKS[binding.category];
|
|
808
|
-
if (!hook)
|
|
809
|
-
continue;
|
|
810
|
-
await hook(meta, binding, stubCtx);
|
|
811
|
-
}
|
|
812
|
-
if (seenEnvKeys.size === 0)
|
|
820
|
+
await refreshCapabilityRegistry();
|
|
821
|
+
const { renderRuntimeConnectionsEnv } = await import("./connection-apply.js");
|
|
822
|
+
const env = await renderRuntimeConnectionsEnv(spec, {
|
|
823
|
+
id: instanceId,
|
|
824
|
+
connections: meta.connections,
|
|
825
|
+
});
|
|
826
|
+
if (Object.keys(env).length === 0)
|
|
813
827
|
return;
|
|
814
|
-
await adapter.applyConnectionEnv(instanceId,
|
|
828
|
+
await adapter.applyConnectionEnv(instanceId, env);
|
|
815
829
|
}
|
|
816
830
|
catch (e) {
|
|
817
831
|
console.warn(`[nomad] connections refresh failed for ${instanceId}: ${e?.message ?? e}`);
|
|
@@ -874,8 +888,8 @@ async function phaseSubmit(instanceId, initialAllocation) {
|
|
|
874
888
|
* callers that only read `ok`/`error` continue to work.
|
|
875
889
|
*/
|
|
876
890
|
export async function startInstance(instanceId) {
|
|
877
|
-
const
|
|
878
|
-
if (
|
|
891
|
+
const identity = resolveRuntimeIdentity(instanceId);
|
|
892
|
+
if (identity?.driver === "app-job" || identity?.driver === "local-model") {
|
|
879
893
|
const { startApp } = await import("./app/app-manager.js");
|
|
880
894
|
return startApp(instanceId);
|
|
881
895
|
}
|
|
@@ -890,11 +904,16 @@ export async function startInstance(instanceId) {
|
|
|
890
904
|
extra.code = running.code;
|
|
891
905
|
return failed("running_check", extra);
|
|
892
906
|
}
|
|
907
|
+
await phaseResetTerminalJobBeforeStart(instanceId);
|
|
893
908
|
const legacyManager = await getLegacyAppManager(instanceId);
|
|
894
909
|
if (legacyManager) {
|
|
895
910
|
const prep = await legacyManager.prepareStart(instanceId);
|
|
896
911
|
if (!prep.ok) {
|
|
897
912
|
const extra = { error: prep.error ?? "prepareStart failed" };
|
|
913
|
+
if (prep.code)
|
|
914
|
+
extra.code = prep.code;
|
|
915
|
+
if (typeof prep.statusCode === "number")
|
|
916
|
+
extra.statusCode = prep.statusCode;
|
|
898
917
|
if (prep.building)
|
|
899
918
|
extra.building = true;
|
|
900
919
|
if (prep.taskId)
|
|
@@ -916,6 +935,10 @@ export async function startInstance(instanceId) {
|
|
|
916
935
|
const hook = await phasePreStartHook(adapter, instanceId);
|
|
917
936
|
if (!hook.ok) {
|
|
918
937
|
const extra = { error: hook.error };
|
|
938
|
+
if (hook.code)
|
|
939
|
+
extra.code = hook.code;
|
|
940
|
+
if (typeof hook.statusCode === "number")
|
|
941
|
+
extra.statusCode = hook.statusCode;
|
|
919
942
|
if (hook.building)
|
|
920
943
|
extra.building = true;
|
|
921
944
|
if (hook.taskId)
|
|
@@ -929,63 +952,20 @@ export async function startInstance(instanceId) {
|
|
|
929
952
|
const submit = await phaseSubmit(instanceId, port.portAllocation);
|
|
930
953
|
if (!submit.ok)
|
|
931
954
|
return failed("submit", { error: submit.error });
|
|
932
|
-
|
|
933
|
-
// in the Connections UI alongside app-installed apps. App-dir installed
|
|
934
|
-
// apps short-circuit at the top of this function and don't reach here.
|
|
935
|
-
await registerLegacyCapabilitiesTopLevel(instanceId);
|
|
955
|
+
await syncCapabilitiesForInstance(instanceId);
|
|
936
956
|
return {
|
|
937
957
|
ok: true,
|
|
938
958
|
eval_id: submit.evalId,
|
|
939
959
|
...(submit.portAllocation ? { port_allocation: submit.portAllocation } : {}),
|
|
940
960
|
};
|
|
941
961
|
}
|
|
942
|
-
|
|
943
|
-
* Best-effort capability registration for legacy (non-app-installed)
|
|
944
|
-
* hermes/openclaw instances. Loaded synthetic spec via the migrations
|
|
945
|
-
* helper; failures are logged but never block start/stop.
|
|
946
|
-
*/
|
|
947
|
-
async function registerLegacyCapabilitiesTopLevel(instanceId) {
|
|
962
|
+
async function syncCapabilitiesForInstance(instanceId) {
|
|
948
963
|
try {
|
|
949
|
-
const
|
|
950
|
-
|
|
951
|
-
return;
|
|
952
|
-
const { loadCapabilitySpecForLegacyInstance } = await import("./runtime/migrations.js");
|
|
953
|
-
const synthSpec = loadCapabilitySpecForLegacyInstance(meta);
|
|
954
|
-
if (!synthSpec?.provides?.length)
|
|
955
|
-
return;
|
|
956
|
-
// The synthetic spec's `name` is the yaml template's display name
|
|
957
|
-
// ("Hermes Agent" / "OpenClaw Container"). For Connections-tab UX we
|
|
958
|
-
// want the candidate to surface the user's instance name (e.g. "h",
|
|
959
|
-
// "claw11"), so override before handing it to registerCapabilities.
|
|
960
|
-
const instanceName = typeof meta.name === "string" && meta.name
|
|
961
|
-
? meta.name
|
|
962
|
-
: instanceId;
|
|
963
|
-
const namedSpec = { ...synthSpec, name: instanceName };
|
|
964
|
-
// The synthetic spec has `tasks: []`, so `resolveProvideEndpoint`
|
|
965
|
-
// can't compute the actual gateway port and falls back to the yaml's
|
|
966
|
-
// declared port (e.g. openclaw default 18789). Legacy instances may
|
|
967
|
-
// have been allocated a different port at creation time (port
|
|
968
|
-
// collision avoidance). Pass the live `getGatewayPort` so the
|
|
969
|
-
// capability registry advertises the port consumers can actually
|
|
970
|
-
// reach.
|
|
971
|
-
const portOverride = getGatewayPort(instanceId);
|
|
972
|
-
const { registerCapabilities } = await import("./app/app-manager.js");
|
|
973
|
-
registerCapabilities(instanceId, namedSpec, portOverride > 0 ? portOverride : undefined);
|
|
964
|
+
const { syncCapabilitiesForApp } = await import("./app/app-manager.js");
|
|
965
|
+
await syncCapabilitiesForApp(instanceId);
|
|
974
966
|
}
|
|
975
967
|
catch (e) {
|
|
976
|
-
console.warn(`[
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
async function unregisterLegacyCapabilitiesTopLevel(instanceId, purge) {
|
|
980
|
-
try {
|
|
981
|
-
const { markCapabilitiesStopped, unregisterCapabilities } = await import("./app/app-manager.js");
|
|
982
|
-
if (purge)
|
|
983
|
-
unregisterCapabilities(instanceId);
|
|
984
|
-
else
|
|
985
|
-
markCapabilitiesStopped(instanceId);
|
|
986
|
-
}
|
|
987
|
-
catch (e) {
|
|
988
|
-
console.warn(`[legacy-capabilities] unregister failed for ${instanceId}: ${e?.message ?? e}`);
|
|
968
|
+
console.warn(`[capability-sync] sync failed for ${instanceId}: ${e?.message ?? e}`);
|
|
989
969
|
}
|
|
990
970
|
}
|
|
991
971
|
export async function stopInstance(instanceId, purge = false) {
|
|
@@ -999,12 +979,11 @@ export async function stopInstance(instanceId, purge = false) {
|
|
|
999
979
|
}
|
|
1000
980
|
catch { /* ignore */ }
|
|
1001
981
|
}
|
|
1002
|
-
await
|
|
982
|
+
await syncCapabilitiesForInstance(instanceId);
|
|
1003
983
|
return { ok: true };
|
|
1004
984
|
}
|
|
1005
985
|
if (resp.status === 404) {
|
|
1006
|
-
|
|
1007
|
-
await unregisterLegacyCapabilitiesTopLevel(instanceId, purge);
|
|
986
|
+
await syncCapabilitiesForInstance(instanceId);
|
|
1008
987
|
return { ok: false, error: "Instance is not running" };
|
|
1009
988
|
}
|
|
1010
989
|
return { ok: false, error: await resp.text() };
|
|
@@ -1015,62 +994,10 @@ export async function stopInstance(instanceId, purge = false) {
|
|
|
1015
994
|
}
|
|
1016
995
|
}
|
|
1017
996
|
export async function restartInstance(instanceId) {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
// Only falls back to stop+start when no running/pending alloc exists.
|
|
1022
|
-
const alloc = await getRunningAlloc(instanceId);
|
|
1023
|
-
if (alloc) {
|
|
1024
|
-
// Run the adapter's onBeforeStart even on native restart so pre-start
|
|
1025
|
-
// migrations (e.g. Hermes's OPENAI_* env sync) still apply. The hook
|
|
1026
|
-
// contract says it must be idempotent, so this is safe on every
|
|
1027
|
-
// restart — including cases where the spec didn't change.
|
|
1028
|
-
try {
|
|
1029
|
-
const legacyManager = await getLegacyAppManager(instanceId);
|
|
1030
|
-
if (legacyManager) {
|
|
1031
|
-
const prep = await legacyManager.prepareStart(instanceId);
|
|
1032
|
-
if (!prep.ok) {
|
|
1033
|
-
console.warn(`[nomad] prepareStart on restart failed for ${instanceId}: ${prep.error}`);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
else {
|
|
1037
|
-
const meta = getInstance(instanceId);
|
|
1038
|
-
const agentType = resolveAgentType(meta);
|
|
1039
|
-
const adapter = getAdapter(agentType);
|
|
1040
|
-
// PR 9 — refresh connection-derived config (mcp_servers /
|
|
1041
|
-
// openclaw.json plugins) from current capability registry so
|
|
1042
|
-
// host IP changes propagate on restart without manual re-bind.
|
|
1043
|
-
// Symmetric with the same call in startInstance.
|
|
1044
|
-
await phaseRefreshConnections(adapter, instanceId);
|
|
1045
|
-
if (adapter.hooks?.onBeforeStart) {
|
|
1046
|
-
await adapter.hooks.onBeforeStart({ instanceId });
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
catch (e) {
|
|
1051
|
-
console.warn(`[nomad] onBeforeStart on restart failed for ${instanceId}: ${e.message}`);
|
|
1052
|
-
}
|
|
1053
|
-
try {
|
|
1054
|
-
const resp = await nomadPut(`/v1/client/allocation/${alloc.ID}/restart`, {
|
|
1055
|
-
TaskName: resolveTaskName(instanceId),
|
|
1056
|
-
AllTasks: false,
|
|
1057
|
-
});
|
|
1058
|
-
if (resp.ok) {
|
|
1059
|
-
// Re-register capabilities — yaml provides may have changed since
|
|
1060
|
-
// the last start (e.g. a panel upgrade adding `llm-agent`).
|
|
1061
|
-
await registerLegacyCapabilitiesTopLevel(instanceId);
|
|
1062
|
-
return { ok: true, alloc_id: alloc.ID };
|
|
1063
|
-
}
|
|
1064
|
-
// Non-2xx from the restart endpoint falls through to stop+start
|
|
1065
|
-
const errText = await resp.text();
|
|
1066
|
-
console.warn(`[nomad] Native restart failed for ${instanceId} (HTTP ${resp.status}): ${errText} — falling back to stop+start`);
|
|
1067
|
-
}
|
|
1068
|
-
catch (e) {
|
|
1069
|
-
console.warn(`[nomad] Native restart error for ${instanceId}: ${e.message} — falling back to stop+start`);
|
|
1070
|
-
}
|
|
997
|
+
const stopResult = await stopInstance(instanceId);
|
|
998
|
+
if (!stopResult.ok && !stopResult.error?.includes("not running") && !stopResult.error?.includes("not found")) {
|
|
999
|
+
return stopResult;
|
|
1071
1000
|
}
|
|
1072
|
-
// Fallback: stop the job and re-submit it
|
|
1073
|
-
await stopInstance(instanceId);
|
|
1074
1001
|
await new Promise((r) => setTimeout(r, 2000));
|
|
1075
1002
|
return startInstance(instanceId);
|
|
1076
1003
|
}
|
|
@@ -1127,6 +1054,82 @@ export async function getLogs(instanceId, lines = 200, logType = "stderr") {
|
|
|
1127
1054
|
return [];
|
|
1128
1055
|
}
|
|
1129
1056
|
const execFileAsync = promisify(execFileCb);
|
|
1057
|
+
const DOCKER_STATS_TTL_MS = 30_000;
|
|
1058
|
+
/** Field separator for the batched `docker stats --format` line. Exported so
|
|
1059
|
+
* tests can construct mock output without hardcoding the literal. */
|
|
1060
|
+
export const DOCKER_STATS_FIELD_SEP = "__JS__";
|
|
1061
|
+
let _dockerStatsEntry = null;
|
|
1062
|
+
let _dockerStatsInFlight = null;
|
|
1063
|
+
/** Test-only: reset the shared docker-stats snapshot so each test starts from
|
|
1064
|
+
* a cold cache (the 30s TTL + single-flight would otherwise leak one test's
|
|
1065
|
+
* mocked snapshot into the next). Not used by production code paths. */
|
|
1066
|
+
export function __resetDockerStatsCacheForTests() {
|
|
1067
|
+
_dockerStatsEntry = null;
|
|
1068
|
+
_dockerStatsInFlight = null;
|
|
1069
|
+
}
|
|
1070
|
+
function parseDockerMemUsageMb(memUsage) {
|
|
1071
|
+
// Format: "499.6MiB / 3GiB" — the used side is everything before "/".
|
|
1072
|
+
const used = (memUsage.split("/")[0] ?? "").trim();
|
|
1073
|
+
const match = used.match(/^([\d.]+)\s*(MiB|GiB|MB|GB|KiB|KB|B)?/i);
|
|
1074
|
+
if (!match)
|
|
1075
|
+
return 0;
|
|
1076
|
+
let mb = parseFloat(match[1]);
|
|
1077
|
+
if (!Number.isFinite(mb))
|
|
1078
|
+
return 0;
|
|
1079
|
+
const unit = (match[2] ?? "MiB").toLowerCase();
|
|
1080
|
+
if (unit === "gib" || unit === "gb")
|
|
1081
|
+
mb *= 1024;
|
|
1082
|
+
else if (unit === "kib" || unit === "kb")
|
|
1083
|
+
mb /= 1024;
|
|
1084
|
+
else if (unit === "b")
|
|
1085
|
+
mb /= 1024 * 1024;
|
|
1086
|
+
return Math.round(mb * 10) / 10;
|
|
1087
|
+
}
|
|
1088
|
+
async function loadDockerStatsSnapshot() {
|
|
1089
|
+
const snapshot = new Map();
|
|
1090
|
+
try {
|
|
1091
|
+
const fmt = `{{.Name}}${DOCKER_STATS_FIELD_SEP}{{.MemUsage}}${DOCKER_STATS_FIELD_SEP}{{.CPUPerc}}`;
|
|
1092
|
+
const { stdout } = await execFileAsync("docker", ["stats", "--no-stream", "--format", fmt], { timeout: 8_000 });
|
|
1093
|
+
for (const line of stdout.split("\n")) {
|
|
1094
|
+
const trimmed = line.trim();
|
|
1095
|
+
if (!trimmed)
|
|
1096
|
+
continue;
|
|
1097
|
+
const [name, memUsage, cpuPerc] = trimmed.split(DOCKER_STATS_FIELD_SEP);
|
|
1098
|
+
if (!name)
|
|
1099
|
+
continue;
|
|
1100
|
+
snapshot.set(name, {
|
|
1101
|
+
memory_mb: parseDockerMemUsageMb(memUsage ?? ""),
|
|
1102
|
+
cpu_percent: Math.round((parseFloat(cpuPerc ?? "") || 0) * 10) / 10,
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
catch {
|
|
1107
|
+
/* docker missing / timeout / daemon down → empty map, caller degrades */
|
|
1108
|
+
}
|
|
1109
|
+
return snapshot;
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* Returns a per-container stats map, refreshing at most once per
|
|
1113
|
+
* DOCKER_STATS_TTL_MS. Concurrent callers (the `Promise.all` over every
|
|
1114
|
+
* instance in `GET /api/instances`) share a single in-flight docker call.
|
|
1115
|
+
*/
|
|
1116
|
+
async function getDockerMemSnapshot() {
|
|
1117
|
+
const now = Date.now();
|
|
1118
|
+
if (_dockerStatsEntry && now - _dockerStatsEntry.ts < DOCKER_STATS_TTL_MS) {
|
|
1119
|
+
return _dockerStatsEntry.data;
|
|
1120
|
+
}
|
|
1121
|
+
if (_dockerStatsInFlight)
|
|
1122
|
+
return _dockerStatsInFlight;
|
|
1123
|
+
_dockerStatsInFlight = loadDockerStatsSnapshot()
|
|
1124
|
+
.then((data) => {
|
|
1125
|
+
_dockerStatsEntry = { data, ts: Date.now() };
|
|
1126
|
+
return data;
|
|
1127
|
+
})
|
|
1128
|
+
.finally(() => {
|
|
1129
|
+
_dockerStatsInFlight = null;
|
|
1130
|
+
});
|
|
1131
|
+
return _dockerStatsInFlight;
|
|
1132
|
+
}
|
|
1130
1133
|
export async function exec(instanceId, command, timeoutMs = 120_000) {
|
|
1131
1134
|
const alloc = await getRunningAlloc(instanceId);
|
|
1132
1135
|
if (!alloc || alloc.ClientStatus !== "running") {
|
|
@@ -1169,8 +1172,10 @@ export const DEFAULT_ENV = {
|
|
|
1169
1172
|
};
|
|
1170
1173
|
export const DEFAULT_RESOURCES = { CPU: 500, MemoryMB: 512 };
|
|
1171
1174
|
export const MAX_CPU_MHZ = 4000; // 4 GHz per task
|
|
1172
|
-
|
|
1173
|
-
export const
|
|
1175
|
+
/** @deprecated Use {@link getMaxAppMemoryMB} from config.ts for the live ceiling. */
|
|
1176
|
+
export const MAX_MEMORY_MB = 4096; // 4 GB fallback — overridden by core.json max_app_memory_mb
|
|
1177
|
+
/** @deprecated Use {@link getMaxAppMemoryMB} from config.ts for the live ceiling. */
|
|
1178
|
+
export const MAX_MEMORY_MAX_MB = 4096; // 4 GB fallback — overridden by core.json max_app_memory_mb
|
|
1174
1179
|
/**
|
|
1175
1180
|
* Clamp container memory reservation/limit to the framework ceilings and
|
|
1176
1181
|
* ensure `MemoryMaxMB >= MemoryMB`. Shared by every container-runtime app
|
|
@@ -1178,9 +1183,10 @@ export const MAX_MEMORY_MAX_MB = 4096; // 4 GB hard limit (memory_max)
|
|
|
1178
1183
|
* guard-rails before handing a task spec to Nomad.
|
|
1179
1184
|
*/
|
|
1180
1185
|
export function normalizeDockerResources(instanceId, runtime) {
|
|
1186
|
+
const ceiling = config.getMaxAppMemoryMB();
|
|
1181
1187
|
const requestedMemoryMB = Number(runtime.resources?.MemoryMB ?? DEFAULT_RESOURCES.MemoryMB);
|
|
1182
|
-
let effectiveMemoryMB = Math.min(requestedMemoryMB,
|
|
1183
|
-
let effectiveMemoryMaxMB = Math.min(Number(runtime.resources?.MemoryMaxMB ?? requestedMemoryMB),
|
|
1188
|
+
let effectiveMemoryMB = Math.min(requestedMemoryMB, ceiling);
|
|
1189
|
+
let effectiveMemoryMaxMB = Math.min(Number(runtime.resources?.MemoryMaxMB ?? requestedMemoryMB), ceiling);
|
|
1184
1190
|
if (effectiveMemoryMaxMB < effectiveMemoryMB) {
|
|
1185
1191
|
console.warn(`[nomad] ${instanceId}: MemoryMaxMB (${effectiveMemoryMaxMB}) is below MemoryMB (${effectiveMemoryMB}); clamping max to reservation.`);
|
|
1186
1192
|
effectiveMemoryMaxMB = effectiveMemoryMB;
|
|
@@ -1219,8 +1225,7 @@ var UnifiedNomadJobs;
|
|
|
1219
1225
|
const DEFAULT_MEMORY_MB = 512;
|
|
1220
1226
|
// Hard upper bounds: prevents misconfigured specs from exhausting scheduler resources.
|
|
1221
1227
|
const MAX_CPU_MHZ = 4000; // 4 GHz
|
|
1222
|
-
|
|
1223
|
-
const MAX_MEMORY_MAX_MB = 4096; // 4 GB hard limit
|
|
1228
|
+
// Memory ceilings read from core.json at runtime via config.getMaxAppMemoryMB().
|
|
1224
1229
|
const DEFAULT_PIDS_LIMIT = 512;
|
|
1225
1230
|
const NOMAD_CONFIG_PATH = join(JISHUSHELL_HOME, "nomad", "nomad.hcl");
|
|
1226
1231
|
const _DEFAULT_CWD = homedir();
|
|
@@ -1228,6 +1233,9 @@ var UnifiedNomadJobs;
|
|
|
1228
1233
|
return join(APPS_DIR, appId);
|
|
1229
1234
|
}
|
|
1230
1235
|
function isAppJob(id) {
|
|
1236
|
+
const identity = resolveRuntimeIdentity(id);
|
|
1237
|
+
if (identity)
|
|
1238
|
+
return identity.driver === "app-job";
|
|
1231
1239
|
const dir = appDirForId(id);
|
|
1232
1240
|
if (existsSync(join(dir, "manifest.json")) || existsSync(join(dir, "app-spec.yaml"))) {
|
|
1233
1241
|
return true;
|
|
@@ -1409,7 +1417,7 @@ var UnifiedNomadJobs;
|
|
|
1409
1417
|
// "mi"/"mib"/"m"/"mb" or bare integer
|
|
1410
1418
|
mb = Math.round(val);
|
|
1411
1419
|
}
|
|
1412
|
-
return Math.max(1, Math.min(mb,
|
|
1420
|
+
return Math.max(1, Math.min(mb, config.getMaxAppMemoryMB()));
|
|
1413
1421
|
}
|
|
1414
1422
|
UnifiedNomadJobs.parseMemoryMB = parseMemoryMB;
|
|
1415
1423
|
// ── Interval parser ───────────────────────────────────────────────────────
|
|
@@ -1440,28 +1448,44 @@ var UnifiedNomadJobs;
|
|
|
1440
1448
|
return false;
|
|
1441
1449
|
}
|
|
1442
1450
|
}
|
|
1451
|
+
function requiredHostNetworkForPort(port) {
|
|
1452
|
+
if ((port.visibility ?? "external") === "internal")
|
|
1453
|
+
return null;
|
|
1454
|
+
const requested = (port.host_network ?? "").trim();
|
|
1455
|
+
return requested || "external";
|
|
1456
|
+
}
|
|
1443
1457
|
function hostNetworkForPort(port) {
|
|
1444
1458
|
if ((port.visibility ?? "external") === "internal")
|
|
1445
1459
|
return undefined;
|
|
1446
1460
|
// Honor explicit host_network from spec (e.g. weknora's ports declare
|
|
1447
1461
|
// `host_network: docker_bridge` so peer tasks reach the published port
|
|
1448
1462
|
// via host.docker.internal). Verify the named network is actually
|
|
1449
|
-
// declared in nomad.hcl — otherwise
|
|
1450
|
-
//
|
|
1463
|
+
// declared in nomad.hcl — otherwise validation rejects the start before
|
|
1464
|
+
// job submission. Falls back to "external" only when no explicit
|
|
1465
|
+
// host_network was requested.
|
|
1451
1466
|
const requested = (port.host_network ?? "").trim();
|
|
1452
|
-
if (requested
|
|
1453
|
-
return requested;
|
|
1467
|
+
if (requested)
|
|
1468
|
+
return nomadConfigDeclaresHostNetwork(requested) ? requested : undefined;
|
|
1454
1469
|
return nomadConfigDeclaresHostNetwork("external") ? "external" : undefined;
|
|
1455
1470
|
}
|
|
1456
|
-
function
|
|
1457
|
-
|
|
1458
|
-
|
|
1471
|
+
function requiredHostNetworksForPorts(ports) {
|
|
1472
|
+
const required = new Set();
|
|
1473
|
+
for (const port of ports) {
|
|
1474
|
+
const network = requiredHostNetworkForPort(port);
|
|
1475
|
+
if (network)
|
|
1476
|
+
required.add(network);
|
|
1477
|
+
}
|
|
1478
|
+
return required;
|
|
1459
1479
|
}
|
|
1460
|
-
async function
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
if (!nomadConfigDeclaresHostNetwork("external"))
|
|
1480
|
+
async function validateNomadPortHostNetworks(ports) {
|
|
1481
|
+
const requiredNetworks = requiredHostNetworksForPorts(ports);
|
|
1482
|
+
if (requiredNetworks.size === 0)
|
|
1464
1483
|
return null;
|
|
1484
|
+
for (const network of requiredNetworks) {
|
|
1485
|
+
if (!nomadConfigDeclaresHostNetwork(network)) {
|
|
1486
|
+
return `Nomad 配置缺少 host_network "${network}"。请重新运行/修复 JishuShell 设置并重启 Nomad,再启动该应用。`;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1465
1489
|
try {
|
|
1466
1490
|
const resp = await nomadGet("/v1/agent/self");
|
|
1467
1491
|
if (!resp.ok)
|
|
@@ -1473,8 +1497,10 @@ var UnifiedNomadJobs;
|
|
|
1473
1497
|
const loadedNetworks = new Set(hostNetworks
|
|
1474
1498
|
.map((network) => String(network?.Name ?? "").trim())
|
|
1475
1499
|
.filter(Boolean));
|
|
1476
|
-
|
|
1477
|
-
|
|
1500
|
+
for (const network of requiredNetworks) {
|
|
1501
|
+
if (!loadedNetworks.has(network)) {
|
|
1502
|
+
return `Nomad 运行中的 agent 尚未加载 host_network "${network}"。请先重启 Nomad,再启动该应用。`;
|
|
1503
|
+
}
|
|
1478
1504
|
}
|
|
1479
1505
|
}
|
|
1480
1506
|
catch {
|
|
@@ -1482,6 +1508,20 @@ var UnifiedNomadJobs;
|
|
|
1482
1508
|
}
|
|
1483
1509
|
return null;
|
|
1484
1510
|
}
|
|
1511
|
+
UnifiedNomadJobs.validateNomadPortHostNetworks = validateNomadPortHostNetworks;
|
|
1512
|
+
async function validateRequiredHostNetworks(spec) {
|
|
1513
|
+
return validateNomadPortHostNetworks(spec.tasks.flatMap((task) => task.ports ?? []));
|
|
1514
|
+
}
|
|
1515
|
+
function buildNomadReservedPort(input) {
|
|
1516
|
+
const hostNetwork = hostNetworkForPort(input);
|
|
1517
|
+
return {
|
|
1518
|
+
Label: input.label,
|
|
1519
|
+
Value: input.value,
|
|
1520
|
+
...(input.to != null ? { To: input.to } : {}),
|
|
1521
|
+
...(hostNetwork ? { HostNetwork: hostNetwork } : {}),
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
UnifiedNomadJobs.buildNomadReservedPort = buildNomadReservedPort;
|
|
1485
1525
|
function reservedPortsForTask(task) {
|
|
1486
1526
|
// visibility=internal ports are intra-group only (e.g. SearXNG sidecar
|
|
1487
1527
|
// reachable from the gateway task via 127.0.0.1 inside the bridge
|
|
@@ -1489,26 +1529,124 @@ var UnifiedNomadJobs;
|
|
|
1489
1529
|
// port slot AND, combined with docker publishing below, expose the
|
|
1490
1530
|
// endpoint externally. Skip them entirely — they stay inside the task
|
|
1491
1531
|
// group's network namespace.
|
|
1532
|
+
// Attach the named host_network for any externally-visible port —
|
|
1533
|
+
// including container tasks. Without it, Nomad falls back to
|
|
1534
|
+
// HostNetwork="default" (loopback) and the docker driver publishes
|
|
1535
|
+
// to 127.0.0.1, breaking cross-container consumers. The earlier
|
|
1536
|
+
// restriction to non-container tasks was overcautious: our task
|
|
1537
|
+
// groups use host networking (Mode: "") rather than Nomad bridge
|
|
1538
|
+
// mode, so attaching host_network is safe.
|
|
1492
1539
|
return (task.ports ?? [])
|
|
1493
1540
|
.filter((port) => (port.visibility ?? "external") !== "internal")
|
|
1494
|
-
.map((port) => ({
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
...(task.runtime === "container" ? {
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
// HostNetwork="default" (loopback) and the docker driver publishes
|
|
1501
|
-
// to 127.0.0.1, breaking cross-container consumers (e.g. OpenWebUI
|
|
1502
|
-
// calling hermes / openclaw via the connections page). The earlier
|
|
1503
|
-
// restriction to non-container tasks was overcautious — our task
|
|
1504
|
-
// groups use host networking (Mode: "") rather than Nomad bridge
|
|
1505
|
-
// mode, so attaching host_network is safe and is exactly what
|
|
1506
|
-
// searxng-container has been doing in practice all along.
|
|
1507
|
-
...(hostNetworkForPort(port)
|
|
1508
|
-
? { HostNetwork: hostNetworkForPort(port) }
|
|
1509
|
-
: {}),
|
|
1541
|
+
.map((port) => buildNomadReservedPort({
|
|
1542
|
+
label: portLabel(task.name, port.name),
|
|
1543
|
+
value: port.host_port ?? port.port,
|
|
1544
|
+
...(task.runtime === "container" ? { to: port.container_port ?? port.port } : {}),
|
|
1545
|
+
visibility: port.visibility,
|
|
1546
|
+
host_network: port.host_network,
|
|
1510
1547
|
}));
|
|
1511
1548
|
}
|
|
1549
|
+
function isExternalAppTaskPort(port) {
|
|
1550
|
+
return (port.visibility ?? "external") !== "internal";
|
|
1551
|
+
}
|
|
1552
|
+
function readDeclaredHostPort(port) {
|
|
1553
|
+
const candidate = port.host_port ?? port.port;
|
|
1554
|
+
return Number.isInteger(candidate) && candidate > 0 ? candidate : null;
|
|
1555
|
+
}
|
|
1556
|
+
function applyPersistedAppSpecPortOverrides(appId, spec) {
|
|
1557
|
+
const meta = getInstance(appId);
|
|
1558
|
+
if (!meta)
|
|
1559
|
+
return spec;
|
|
1560
|
+
const runtime = getInstanceRuntime(appId);
|
|
1561
|
+
const runtimePorts = Array.isArray(runtime.ports) ? runtime.ports : [];
|
|
1562
|
+
const persistedGatewayPort = extractGatewayPort(runtime, resolveAgentType(meta));
|
|
1563
|
+
const totalExternalPorts = spec.tasks.reduce((count, task) => count + (task.ports ?? []).filter((port) => isExternalAppTaskPort(port)).length, 0);
|
|
1564
|
+
let changed = false;
|
|
1565
|
+
const tasks = spec.tasks.map((task) => {
|
|
1566
|
+
if (!Array.isArray(task.ports) || task.ports.length === 0)
|
|
1567
|
+
return task;
|
|
1568
|
+
let taskChanged = false;
|
|
1569
|
+
const ports = task.ports.map((port) => {
|
|
1570
|
+
if (!isExternalAppTaskPort(port))
|
|
1571
|
+
return port;
|
|
1572
|
+
const currentHostPort = readDeclaredHostPort(port);
|
|
1573
|
+
if (!currentHostPort)
|
|
1574
|
+
return port;
|
|
1575
|
+
let nextHostPort = null;
|
|
1576
|
+
// Scope the runtime-port match to BOTH the owning task AND the port name.
|
|
1577
|
+
// Multi-service-task apps (e.g. WeKnora's `app` + `ui`, both with a port
|
|
1578
|
+
// named "http") record every external port tagged with its taskName; a
|
|
1579
|
+
// name-only match would rewrite the `ui` task's host port to the `app`
|
|
1580
|
+
// task's allocation and collide them. Tolerate legacy runtime records
|
|
1581
|
+
// that predate the taskName tag by allowing an untagged name match.
|
|
1582
|
+
const namedRuntimePort = typeof port.name === "string" && port.name
|
|
1583
|
+
? (runtimePorts.find((candidate) => candidate?.taskName === task.name
|
|
1584
|
+
&& candidate?.name === port.name
|
|
1585
|
+
&& Number.isInteger(candidate?.hostPort)
|
|
1586
|
+
&& candidate.hostPort > 0)
|
|
1587
|
+
?? runtimePorts.find((candidate) => candidate?.taskName === undefined
|
|
1588
|
+
&& candidate?.name === port.name
|
|
1589
|
+
&& Number.isInteger(candidate?.hostPort)
|
|
1590
|
+
&& candidate.hostPort > 0))
|
|
1591
|
+
: null;
|
|
1592
|
+
if (namedRuntimePort) {
|
|
1593
|
+
nextHostPort = namedRuntimePort.hostPort;
|
|
1594
|
+
}
|
|
1595
|
+
else if (runtimePorts.length === 1
|
|
1596
|
+
&& totalExternalPorts === 1
|
|
1597
|
+
&& Number.isInteger(runtimePorts[0]?.hostPort)
|
|
1598
|
+
&& runtimePorts[0].hostPort > 0) {
|
|
1599
|
+
nextHostPort = runtimePorts[0].hostPort;
|
|
1600
|
+
}
|
|
1601
|
+
else if (totalExternalPorts === 1
|
|
1602
|
+
&& persistedGatewayPort != null
|
|
1603
|
+
&& persistedGatewayPort > 0) {
|
|
1604
|
+
nextHostPort = persistedGatewayPort;
|
|
1605
|
+
}
|
|
1606
|
+
if (!nextHostPort || nextHostPort === currentHostPort)
|
|
1607
|
+
return port;
|
|
1608
|
+
changed = true;
|
|
1609
|
+
taskChanged = true;
|
|
1610
|
+
return { ...port, host_port: nextHostPort };
|
|
1611
|
+
});
|
|
1612
|
+
return taskChanged ? { ...task, ports } : task;
|
|
1613
|
+
});
|
|
1614
|
+
return changed ? { ...spec, tasks } : spec;
|
|
1615
|
+
}
|
|
1616
|
+
async function maybeReallocateAppSpecHostPort(appId, spec, reason) {
|
|
1617
|
+
if (!getInstance(appId))
|
|
1618
|
+
return { spec, changed: false };
|
|
1619
|
+
const effectiveSpec = applyPersistedAppSpecPortOverrides(appId, spec);
|
|
1620
|
+
const currentGatewayPort = getGatewayPort(appId);
|
|
1621
|
+
if (!Number.isInteger(currentGatewayPort) || currentGatewayPort <= 0) {
|
|
1622
|
+
return { spec: effectiveSpec, changed: false };
|
|
1623
|
+
}
|
|
1624
|
+
const declaredPorts = effectiveSpec.tasks.flatMap((task) => (task.ports ?? [])
|
|
1625
|
+
.filter((port) => isExternalAppTaskPort(port))
|
|
1626
|
+
.map((port) => readDeclaredHostPort(port))
|
|
1627
|
+
.filter((port) => port != null));
|
|
1628
|
+
if (!declaredPorts.includes(currentGatewayPort)) {
|
|
1629
|
+
return { spec: effectiveSpec, changed: false };
|
|
1630
|
+
}
|
|
1631
|
+
if (!(await isPortInUse(currentGatewayPort))) {
|
|
1632
|
+
return { spec: effectiveSpec, changed: false };
|
|
1633
|
+
}
|
|
1634
|
+
try {
|
|
1635
|
+
const reallocation = await reallocateGatewayPort(appId);
|
|
1636
|
+
console.log(`[nomad] ${appId}: reallocated AppSpec host port ${reallocation.from} -> ${reallocation.to} (${reason})`);
|
|
1637
|
+
return {
|
|
1638
|
+
spec: applyPersistedAppSpecPortOverrides(appId, spec),
|
|
1639
|
+
changed: true,
|
|
1640
|
+
};
|
|
1641
|
+
}
|
|
1642
|
+
catch (e) {
|
|
1643
|
+
return {
|
|
1644
|
+
spec: effectiveSpec,
|
|
1645
|
+
changed: false,
|
|
1646
|
+
error: `AppSpec host port ${currentGatewayPort} is held by another process and reallocation failed: ${e?.message ?? e}`,
|
|
1647
|
+
};
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1512
1650
|
// ── Health check → Nomad service check builder ────────────────────────────
|
|
1513
1651
|
function buildServiceCheck(task, appId) {
|
|
1514
1652
|
const health = task.health;
|
|
@@ -1572,8 +1710,6 @@ var UnifiedNomadJobs;
|
|
|
1572
1710
|
return result;
|
|
1573
1711
|
}
|
|
1574
1712
|
function interpolateEnvRequires(taskEnv, extraEnv) {
|
|
1575
|
-
if (Object.keys(extraEnv).length === 0)
|
|
1576
|
-
return taskEnv;
|
|
1577
1713
|
const result = {};
|
|
1578
1714
|
for (const [k, v] of Object.entries(taskEnv)) {
|
|
1579
1715
|
result[k] = v.replace(/\$\{requires\.([^}]+)\}/g, (_, key) => extraEnv[key] ?? "");
|
|
@@ -2227,7 +2363,7 @@ var UnifiedNomadJobs;
|
|
|
2227
2363
|
const args = (task.args ?? []).map(String);
|
|
2228
2364
|
const cpu = parseCpuMHz(task.resources?.cpu);
|
|
2229
2365
|
const mem = parseMemoryMB(task.resources?.memory);
|
|
2230
|
-
const memMax = Math.min(mem,
|
|
2366
|
+
const memMax = Math.min(mem, config.getMaxAppMemoryMB());
|
|
2231
2367
|
const env = {
|
|
2232
2368
|
...extraEnv,
|
|
2233
2369
|
...interpolateEnvRequires(task.env ?? {}, extraEnv),
|
|
@@ -2245,6 +2381,7 @@ var UnifiedNomadJobs;
|
|
|
2245
2381
|
const src = v.source.replace(/^~(?=\/|$)/, homedir());
|
|
2246
2382
|
return `${src}:${v.target}${v.readonly ? ":ro" : ":rw"}`;
|
|
2247
2383
|
});
|
|
2384
|
+
const workDir = typeof task.cwd === "string" ? task.cwd.trim() : "";
|
|
2248
2385
|
// Resolve container task user. On Linux we default to the panel
|
|
2249
2386
|
// process's host uid:gid so bind-mounted data dirs (owned by the panel
|
|
2250
2387
|
// user, typically `pi`) are writable without forcing the container to
|
|
@@ -2290,6 +2427,15 @@ var UnifiedNomadJobs;
|
|
|
2290
2427
|
.map((c) => typeof c === "string" ? c.trim().toUpperCase().replace(/^CAP_/, "") : "")
|
|
2291
2428
|
.filter((c) => ALLOWED_CAPS.has(c))
|
|
2292
2429
|
: [];
|
|
2430
|
+
// Public-DNS override. Defaults to AliDNS / DNSPod / Cloudflare; can be
|
|
2431
|
+
// disabled or replaced via core.json `container_dns`. The override is
|
|
2432
|
+
// necessary because docker's "copy host's resolv.conf" default rewrites
|
|
2433
|
+
// 127.0.0.53 (systemd-resolved loopback) back to whatever upstream the
|
|
2434
|
+
// host learned from DHCP, re-introducing into the container any DNS
|
|
2435
|
+
// hijack the host had bypassed via DoT/DoH — silent failure mode that
|
|
2436
|
+
// surfaces as 3-second-timeout on every outbound request from inside
|
|
2437
|
+
// search/scraper apps on home networks. Empty list = no override.
|
|
2438
|
+
const containerDns = config.getContainerDns();
|
|
2293
2439
|
const taskDef = {
|
|
2294
2440
|
Name: task.name,
|
|
2295
2441
|
Driver: "docker",
|
|
@@ -2306,10 +2452,12 @@ var UnifiedNomadJobs;
|
|
|
2306
2452
|
// unreachable registry still surfaces as a failure within a
|
|
2307
2453
|
// bounded window.
|
|
2308
2454
|
image_pull_timeout: "15m",
|
|
2455
|
+
...(workDir ? { work_dir: workDir } : {}),
|
|
2309
2456
|
...(task.command ? { command: String(task.command) } : {}),
|
|
2310
2457
|
args,
|
|
2311
2458
|
...(publishedPorts.length > 0 ? { ports: publishedPorts } : {}),
|
|
2312
2459
|
extra_hosts: ["host.docker.internal:host-gateway"],
|
|
2460
|
+
...(containerDns.length > 0 ? { dns_servers: containerDns } : {}),
|
|
2313
2461
|
cap_drop: ["ALL"],
|
|
2314
2462
|
...(capAdd.length > 0 ? { cap_add: capAdd } : {}),
|
|
2315
2463
|
security_opt: ["no-new-privileges"],
|
|
@@ -2648,28 +2796,17 @@ var UnifiedNomadJobs;
|
|
|
2648
2796
|
}
|
|
2649
2797
|
}
|
|
2650
2798
|
catch { /* ignore */ }
|
|
2651
|
-
// Fallback:
|
|
2652
|
-
//
|
|
2653
|
-
if (!result.memory_mb && allocId && ptName) {
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
const match = raw.match(/^([\d.]+)\s*(MiB|GiB|MB|GB|KiB|KB)/i);
|
|
2662
|
-
if (match) {
|
|
2663
|
-
let mb = parseFloat(match[1]);
|
|
2664
|
-
const unit = match[2].toLowerCase();
|
|
2665
|
-
if (unit === "gib" || unit === "gb")
|
|
2666
|
-
mb *= 1024;
|
|
2667
|
-
else if (unit === "kib" || unit === "kb")
|
|
2668
|
-
mb /= 1024;
|
|
2669
|
-
result.memory_mb = Math.round(mb * 10) / 10;
|
|
2670
|
-
}
|
|
2799
|
+
// Fallback: cgroup v2 (Pi / CIX) → Nomad alloc-stats are zero. Use the
|
|
2800
|
+
// shared cached `docker stats` snapshot rather than forking per-instance.
|
|
2801
|
+
if (!result.memory_mb && allocId && ptName && /^[a-f0-9-]+$/i.test(allocId)) {
|
|
2802
|
+
const containerName = `${ptName}-${allocId}`;
|
|
2803
|
+
const stat = (await getDockerMemSnapshot()).get(containerName);
|
|
2804
|
+
if (stat) {
|
|
2805
|
+
if (stat.memory_mb)
|
|
2806
|
+
result.memory_mb = stat.memory_mb;
|
|
2807
|
+
if (!result.cpu_percent && stat.cpu_percent)
|
|
2808
|
+
result.cpu_percent = stat.cpu_percent;
|
|
2671
2809
|
}
|
|
2672
|
-
catch { /* ignore */ }
|
|
2673
2810
|
}
|
|
2674
2811
|
return result;
|
|
2675
2812
|
}
|
|
@@ -2749,15 +2886,11 @@ var UnifiedNomadJobs;
|
|
|
2749
2886
|
*/
|
|
2750
2887
|
async function startAppJob(spec, appId, extraEnv = {}) {
|
|
2751
2888
|
const status = await getAppStatus(appId);
|
|
2752
|
-
if (status.status === "running") {
|
|
2753
|
-
// Already running is a success state — no need to resubmit.
|
|
2754
|
-
return { ok: true };
|
|
2755
|
-
}
|
|
2756
2889
|
const adoptedExternal = await buildExternalAdoptedSpec(appId, spec);
|
|
2757
2890
|
if (adoptedExternal.conflicts.length > 0) {
|
|
2758
2891
|
return { ok: false, error: adoptedExternal.conflicts.join("; ") };
|
|
2759
2892
|
}
|
|
2760
|
-
|
|
2893
|
+
let effectiveSpec = applyPersistedAppSpecPortOverrides(appId, adoptedExternal.spec);
|
|
2761
2894
|
// Validate all images before submitting
|
|
2762
2895
|
for (const task of effectiveSpec.tasks) {
|
|
2763
2896
|
if (task.runtime === "container") {
|
|
@@ -2784,31 +2917,54 @@ var UnifiedNomadJobs;
|
|
|
2784
2917
|
if (hostNetworkError) {
|
|
2785
2918
|
return { ok: false, error: hostNetworkError };
|
|
2786
2919
|
}
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
return { ok: false, error: `Job build failed: ${e.message}` };
|
|
2920
|
+
if (driver === "docker") {
|
|
2921
|
+
const preflight = await maybeReallocateAppSpecHostPort(appId, effectiveSpec, "host_port_busy");
|
|
2922
|
+
if (preflight.error)
|
|
2923
|
+
return { ok: false, error: preflight.error };
|
|
2924
|
+
effectiveSpec = preflight.spec;
|
|
2793
2925
|
}
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
return { ok: true, eval_id: data.EvalID };
|
|
2926
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
2927
|
+
let jobDef;
|
|
2928
|
+
try {
|
|
2929
|
+
jobDef = buildAppJob(effectiveSpec, appId, driver, extraEnv);
|
|
2799
2930
|
}
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2931
|
+
catch (e) {
|
|
2932
|
+
return { ok: false, error: `Job build failed: ${e.message}` };
|
|
2933
|
+
}
|
|
2934
|
+
let submitError = null;
|
|
2935
|
+
let netErr = false;
|
|
2936
|
+
try {
|
|
2937
|
+
const resp = await nomadPost("/v1/jobs", jobDef);
|
|
2938
|
+
if (resp.ok) {
|
|
2939
|
+
const data = await resp.json();
|
|
2940
|
+
// When the app was previously failed, verify it actually transitions
|
|
2941
|
+
// away from the failed state rather than reporting false success.
|
|
2942
|
+
if (status.status === "failed") {
|
|
2943
|
+
const recovered = await waitForRecovery(appId, 15_000, 2_000);
|
|
2944
|
+
if (!recovered) {
|
|
2945
|
+
return { ok: false, error: "App start submitted but instance remains in failed state. Check app logs for details.", eval_id: data.EvalID };
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
return { ok: true, eval_id: data.EvalID };
|
|
2949
|
+
}
|
|
2950
|
+
submitError = await resp.text();
|
|
2951
|
+
}
|
|
2952
|
+
catch (e) {
|
|
2953
|
+
netErr = e?.message === "fetch failed" || e?.cause?.code === "ECONNREFUSED";
|
|
2954
|
+
submitError = netErr ? `Nomad 服务不可达 (${getNomadAddr()}),请先启动 Nomad` : e.message;
|
|
2955
|
+
}
|
|
2956
|
+
if (attempt === 0 && driver === "docker" && !netErr) {
|
|
2957
|
+
const retry = await maybeReallocateAppSpecHostPort(appId, effectiveSpec, "docker_race");
|
|
2958
|
+
if (retry.error)
|
|
2959
|
+
return { ok: false, error: retry.error };
|
|
2960
|
+
if (retry.changed) {
|
|
2961
|
+
effectiveSpec = retry.spec;
|
|
2962
|
+
continue;
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
return { ok: false, error: submitError ?? "unknown error" };
|
|
2811
2966
|
}
|
|
2967
|
+
return { ok: false, error: "start retry exhausted" };
|
|
2812
2968
|
}
|
|
2813
2969
|
UnifiedNomadJobs.startAppJob = startAppJob;
|
|
2814
2970
|
/**
|
|
@@ -2828,6 +2984,21 @@ var UnifiedNomadJobs;
|
|
|
2828
2984
|
return false;
|
|
2829
2985
|
}
|
|
2830
2986
|
UnifiedNomadJobs.waitForRunning = waitForRunning;
|
|
2987
|
+
/**
|
|
2988
|
+
* Poll until the app job leaves the "failed" state or times out.
|
|
2989
|
+
* Used after start submission to verify actual recovery before reporting success.
|
|
2990
|
+
* Returns true if the app transitions away from "failed" (to pending/running/etc).
|
|
2991
|
+
*/
|
|
2992
|
+
async function waitForRecovery(appId, timeoutMs = 15_000, pollIntervalMs = 2_000) {
|
|
2993
|
+
const deadline = Date.now() + timeoutMs;
|
|
2994
|
+
while (Date.now() < deadline) {
|
|
2995
|
+
await new Promise((r) => setTimeout(r, pollIntervalMs));
|
|
2996
|
+
const status = await getAppStatus(appId);
|
|
2997
|
+
if (status.status !== "failed")
|
|
2998
|
+
return true;
|
|
2999
|
+
}
|
|
3000
|
+
return false;
|
|
3001
|
+
}
|
|
2831
3002
|
async function checkDependencies(spec) {
|
|
2832
3003
|
if (!spec.depends_on || Object.keys(spec.depends_on).length === 0) {
|
|
2833
3004
|
return { ok: true, errors: [] };
|
|
@@ -3394,7 +3565,7 @@ var UnifiedNomadJobs;
|
|
|
3394
3565
|
}
|
|
3395
3566
|
catch { }
|
|
3396
3567
|
}
|
|
3397
|
-
const legacy =
|
|
3568
|
+
const legacy = getCoreConfig().nomad_token;
|
|
3398
3569
|
if (legacy)
|
|
3399
3570
|
process.env.NOMAD_TOKEN = legacy;
|
|
3400
3571
|
}
|
|
@@ -3443,6 +3614,20 @@ var UnifiedNomadJobs;
|
|
|
3443
3614
|
cpu_percent: st.cpu_percent,
|
|
3444
3615
|
};
|
|
3445
3616
|
}
|
|
3617
|
+
const identity = resolveRuntimeIdentity(nomadJobId);
|
|
3618
|
+
if (identity?.driver === "app-job" || identity?.driver === "local-model") {
|
|
3619
|
+
const st = await getAppStatus(nomadJobId);
|
|
3620
|
+
return {
|
|
3621
|
+
status: st.status,
|
|
3622
|
+
pid: st.pid,
|
|
3623
|
+
uptime: st.uptime,
|
|
3624
|
+
memory_mb: st.memory_mb,
|
|
3625
|
+
cpu_percent: st.cpu_percent,
|
|
3626
|
+
};
|
|
3627
|
+
}
|
|
3628
|
+
if (identity?.driver === "runtime-adapter") {
|
|
3629
|
+
return instanceScheduler.getStatus(nomadJobId);
|
|
3630
|
+
}
|
|
3446
3631
|
if (existsSync(instanceMetaPath(nomadJobId))) {
|
|
3447
3632
|
return instanceScheduler.getStatus(nomadJobId);
|
|
3448
3633
|
}
|
|
@@ -3452,55 +3637,6 @@ var UnifiedNomadJobs;
|
|
|
3452
3637
|
return getGenericJobStatus(nomadJobId);
|
|
3453
3638
|
}
|
|
3454
3639
|
UnifiedNomadJobs.getInstanceStatus = getInstanceStatus;
|
|
3455
|
-
/**
|
|
3456
|
-
* Capability registration shim for **legacy** (non-app-installed)
|
|
3457
|
-
* hermes/openclaw instances. Loads the synthetic spec via
|
|
3458
|
-
* loadCapabilitySpecForLegacyInstance and routes provides through the
|
|
3459
|
-
* app-manager registry helpers, so legacy instances surface in
|
|
3460
|
-
* Connections candidate lists like app-installed ones.
|
|
3461
|
-
*
|
|
3462
|
-
* Errors are swallowed and logged — capability registration is best-
|
|
3463
|
-
* effort; a failure here must not block start/stop.
|
|
3464
|
-
*/
|
|
3465
|
-
async function registerLegacyCapabilities(instanceId) {
|
|
3466
|
-
try {
|
|
3467
|
-
const meta = getInstance(instanceId);
|
|
3468
|
-
if (!meta)
|
|
3469
|
-
return;
|
|
3470
|
-
const { loadCapabilitySpecForLegacyInstance } = await import("./runtime/migrations.js");
|
|
3471
|
-
const synthSpec = loadCapabilitySpecForLegacyInstance(meta);
|
|
3472
|
-
if (!synthSpec?.provides?.length)
|
|
3473
|
-
return;
|
|
3474
|
-
// Same instance-name override + portOverride passthrough as
|
|
3475
|
-
// registerLegacyCapabilitiesTopLevel — Connections candidates should
|
|
3476
|
-
// show the user's instance name and advertise the actually-allocated
|
|
3477
|
-
// gateway port (not the yaml default).
|
|
3478
|
-
const instanceName = typeof meta.name === "string" && meta.name
|
|
3479
|
-
? meta.name
|
|
3480
|
-
: instanceId;
|
|
3481
|
-
const namedSpec = { ...synthSpec, name: instanceName };
|
|
3482
|
-
const portOverride = getGatewayPort(instanceId);
|
|
3483
|
-
const { registerCapabilities } = await import("./app/app-manager.js");
|
|
3484
|
-
registerCapabilities(instanceId, namedSpec, portOverride > 0 ? portOverride : undefined);
|
|
3485
|
-
}
|
|
3486
|
-
catch (e) {
|
|
3487
|
-
console.warn(`[legacy-capabilities] register failed for ${instanceId}: ${e?.message ?? e}`);
|
|
3488
|
-
}
|
|
3489
|
-
}
|
|
3490
|
-
async function unregisterLegacyCapabilities(instanceId, purge) {
|
|
3491
|
-
try {
|
|
3492
|
-
const { markCapabilitiesStopped, unregisterCapabilities } = await import("./app/app-manager.js");
|
|
3493
|
-
if (purge) {
|
|
3494
|
-
unregisterCapabilities(instanceId);
|
|
3495
|
-
}
|
|
3496
|
-
else {
|
|
3497
|
-
markCapabilitiesStopped(instanceId);
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
catch (e) {
|
|
3501
|
-
console.warn(`[legacy-capabilities] unregister failed for ${instanceId}: ${e?.message ?? e}`);
|
|
3502
|
-
}
|
|
3503
|
-
}
|
|
3504
3640
|
async function startInstance(nomadJobId) {
|
|
3505
3641
|
const instanceBackedApp = await getInstanceBackedInstalledApp(nomadJobId);
|
|
3506
3642
|
if (instanceBackedApp) {
|
|
@@ -3512,6 +3648,8 @@ var UnifiedNomadJobs;
|
|
|
3512
3648
|
// instance file isn't readable yet.
|
|
3513
3649
|
let extraEnv = {};
|
|
3514
3650
|
try {
|
|
3651
|
+
const { refreshCapabilityRegistry } = await import("./app/app-manager.js");
|
|
3652
|
+
await refreshCapabilityRegistry();
|
|
3515
3653
|
const { resolveConnections, resolvedToLegacyEnv } = await import("./connection-resolver.js");
|
|
3516
3654
|
const legacyInstanceManager = await import("./instance-manager.js");
|
|
3517
3655
|
const meta = legacyInstanceManager.getInstance(nomadJobId);
|
|
@@ -3541,16 +3679,31 @@ var UnifiedNomadJobs;
|
|
|
3541
3679
|
const result = await startAppJob(instanceBackedApp.spec, nomadJobId, extraEnv);
|
|
3542
3680
|
if (!result.ok)
|
|
3543
3681
|
return result;
|
|
3544
|
-
const {
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
if (instanceBackedApp.spec.lifecycle?.post_start?.length) {
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3682
|
+
const { runPostStartSteps, syncCapabilitiesForApp, waitForAppRuntimeRunning } = await import("./app/app-manager.js");
|
|
3683
|
+
const running = instanceBackedApp.spec.provides?.length || instanceBackedApp.spec.lifecycle?.post_start?.length
|
|
3684
|
+
? await waitForAppRuntimeRunning(nomadJobId, instanceBackedApp.spec.lifecycle?.post_start?.length ? 120_000 : 30_000)
|
|
3685
|
+
: false;
|
|
3686
|
+
if (running && instanceBackedApp.spec.lifecycle?.post_start?.length) {
|
|
3687
|
+
await runPostStartSteps(instanceBackedApp.spec);
|
|
3688
|
+
}
|
|
3689
|
+
await syncCapabilitiesForApp(nomadJobId);
|
|
3690
|
+
return result;
|
|
3691
|
+
}
|
|
3692
|
+
if (await getAdapterManagedAppDirInstalledApp(nomadJobId)) {
|
|
3693
|
+
const result = await instanceScheduler.startInstance(nomadJobId);
|
|
3694
|
+
if (result.ok)
|
|
3695
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3696
|
+
return result;
|
|
3697
|
+
}
|
|
3698
|
+
const identity = resolveRuntimeIdentity(nomadJobId);
|
|
3699
|
+
if (identity?.driver === "app-job" || identity?.driver === "local-model") {
|
|
3700
|
+
const { startApp } = await import("./app/app-manager.js");
|
|
3701
|
+
return startApp(nomadJobId);
|
|
3702
|
+
}
|
|
3703
|
+
if (identity?.driver === "runtime-adapter") {
|
|
3704
|
+
const result = await instanceScheduler.startInstance(nomadJobId);
|
|
3705
|
+
if (result.ok)
|
|
3706
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3554
3707
|
return result;
|
|
3555
3708
|
}
|
|
3556
3709
|
if (isAppJob(nomadJobId)) {
|
|
@@ -3559,14 +3712,14 @@ var UnifiedNomadJobs;
|
|
|
3559
3712
|
if (existsSync(instanceMetaPath(nomadJobId))) {
|
|
3560
3713
|
const result = await instanceScheduler.startInstance(nomadJobId);
|
|
3561
3714
|
if (result.ok)
|
|
3562
|
-
await
|
|
3715
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3563
3716
|
return result;
|
|
3564
3717
|
}
|
|
3565
3718
|
if (nomadJobId.startsWith(OPENCLAW_PREFIX)) {
|
|
3566
3719
|
const inner = nomadJobId.slice(OPENCLAW_PREFIX.length);
|
|
3567
3720
|
const result = await instanceScheduler.startInstance(inner);
|
|
3568
3721
|
if (result.ok)
|
|
3569
|
-
await
|
|
3722
|
+
await syncCapabilitiesForInstance(inner);
|
|
3570
3723
|
return result;
|
|
3571
3724
|
}
|
|
3572
3725
|
if (!isAppJob(nomadJobId)) {
|
|
@@ -3579,8 +3732,26 @@ var UnifiedNomadJobs;
|
|
|
3579
3732
|
if (await getInstanceBackedInstalledApp(nomadJobId)) {
|
|
3580
3733
|
const result = await stopAppJob(nomadJobId, purge);
|
|
3581
3734
|
if (result.ok || result.error?.includes("not running") || result.error?.includes("not found")) {
|
|
3582
|
-
|
|
3583
|
-
|
|
3735
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3736
|
+
}
|
|
3737
|
+
return result;
|
|
3738
|
+
}
|
|
3739
|
+
if (await getAdapterManagedAppDirInstalledApp(nomadJobId)) {
|
|
3740
|
+
const result = await instanceScheduler.stopInstance(nomadJobId, purge);
|
|
3741
|
+
if (result.ok || result.error?.includes("not running") || result.error?.includes("not found")) {
|
|
3742
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3743
|
+
}
|
|
3744
|
+
return result;
|
|
3745
|
+
}
|
|
3746
|
+
const identity = resolveRuntimeIdentity(nomadJobId);
|
|
3747
|
+
if (identity?.driver === "app-job" || identity?.driver === "local-model") {
|
|
3748
|
+
const { stopApp } = await import("./app/app-manager.js");
|
|
3749
|
+
return stopApp(nomadJobId, purge);
|
|
3750
|
+
}
|
|
3751
|
+
if (identity?.driver === "runtime-adapter") {
|
|
3752
|
+
const result = await instanceScheduler.stopInstance(nomadJobId, purge);
|
|
3753
|
+
if (result.ok || result.error?.includes("not running") || result.error?.includes("not found")) {
|
|
3754
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3584
3755
|
}
|
|
3585
3756
|
return result;
|
|
3586
3757
|
}
|
|
@@ -3590,7 +3761,7 @@ var UnifiedNomadJobs;
|
|
|
3590
3761
|
if (existsSync(instanceMetaPath(nomadJobId))) {
|
|
3591
3762
|
const result = await instanceScheduler.stopInstance(nomadJobId, purge);
|
|
3592
3763
|
if (result.ok || result.error?.includes("not running") || result.error?.includes("not found")) {
|
|
3593
|
-
await
|
|
3764
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3594
3765
|
}
|
|
3595
3766
|
return result;
|
|
3596
3767
|
}
|
|
@@ -3598,7 +3769,7 @@ var UnifiedNomadJobs;
|
|
|
3598
3769
|
const inner = nomadJobId.slice(OPENCLAW_PREFIX.length);
|
|
3599
3770
|
const result = await instanceScheduler.stopInstance(inner, purge);
|
|
3600
3771
|
if (result.ok || result.error?.includes("not running") || result.error?.includes("not found")) {
|
|
3601
|
-
await
|
|
3772
|
+
await syncCapabilitiesForInstance(inner);
|
|
3602
3773
|
}
|
|
3603
3774
|
return result;
|
|
3604
3775
|
}
|
|
@@ -3619,20 +3790,37 @@ var UnifiedNomadJobs;
|
|
|
3619
3790
|
}
|
|
3620
3791
|
return startInstance(nomadJobId);
|
|
3621
3792
|
}
|
|
3793
|
+
if (await getAdapterManagedAppDirInstalledApp(nomadJobId)) {
|
|
3794
|
+
const result = await instanceScheduler.restartInstance(nomadJobId);
|
|
3795
|
+
if (result.ok)
|
|
3796
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3797
|
+
return result;
|
|
3798
|
+
}
|
|
3799
|
+
const identity = resolveRuntimeIdentity(nomadJobId);
|
|
3800
|
+
if (identity?.driver === "app-job" || identity?.driver === "local-model") {
|
|
3801
|
+
const { restartApp } = await import("./app/app-manager.js");
|
|
3802
|
+
return restartApp(nomadJobId);
|
|
3803
|
+
}
|
|
3804
|
+
if (identity?.driver === "runtime-adapter") {
|
|
3805
|
+
const result = await instanceScheduler.restartInstance(nomadJobId);
|
|
3806
|
+
if (result.ok)
|
|
3807
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3808
|
+
return result;
|
|
3809
|
+
}
|
|
3622
3810
|
if (isAppJob(nomadJobId)) {
|
|
3623
3811
|
return { ok: false, error: `App '${nomadJobId}' 必须通过 app-manager 重启` };
|
|
3624
3812
|
}
|
|
3625
3813
|
if (existsSync(instanceMetaPath(nomadJobId))) {
|
|
3626
3814
|
const result = await instanceScheduler.restartInstance(nomadJobId);
|
|
3627
3815
|
if (result.ok)
|
|
3628
|
-
await
|
|
3816
|
+
await syncCapabilitiesForInstance(nomadJobId);
|
|
3629
3817
|
return result;
|
|
3630
3818
|
}
|
|
3631
3819
|
if (nomadJobId.startsWith(OPENCLAW_PREFIX)) {
|
|
3632
3820
|
const inner = nomadJobId.slice(OPENCLAW_PREFIX.length);
|
|
3633
3821
|
const result = await instanceScheduler.restartInstance(inner);
|
|
3634
3822
|
if (result.ok)
|
|
3635
|
-
await
|
|
3823
|
+
await syncCapabilitiesForInstance(inner);
|
|
3636
3824
|
return result;
|
|
3637
3825
|
}
|
|
3638
3826
|
if (!isAppJob(nomadJobId)) {
|
|
@@ -3647,6 +3835,13 @@ var UnifiedNomadJobs;
|
|
|
3647
3835
|
}
|
|
3648
3836
|
if (isAppJob(nomadJobId))
|
|
3649
3837
|
return getAppLogs(nomadJobId, "", lines, logType);
|
|
3838
|
+
const identity = resolveRuntimeIdentity(nomadJobId);
|
|
3839
|
+
if (identity?.driver === "app-job" || identity?.driver === "local-model") {
|
|
3840
|
+
return getAppLogs(nomadJobId, "", lines, logType);
|
|
3841
|
+
}
|
|
3842
|
+
if (identity?.driver === "runtime-adapter") {
|
|
3843
|
+
return instanceScheduler.getLogs(nomadJobId, lines, logType);
|
|
3844
|
+
}
|
|
3650
3845
|
if (existsSync(instanceMetaPath(nomadJobId))) {
|
|
3651
3846
|
return instanceScheduler.getLogs(nomadJobId, lines, logType);
|
|
3652
3847
|
}
|
|
@@ -3665,6 +3860,13 @@ var UnifiedNomadJobs;
|
|
|
3665
3860
|
if (isAppJob(nomadJobId)) {
|
|
3666
3861
|
return execInApp(nomadJobId, "", command, timeoutMs ?? 120_000);
|
|
3667
3862
|
}
|
|
3863
|
+
const identity = resolveRuntimeIdentity(nomadJobId);
|
|
3864
|
+
if (identity?.driver === "app-job" || identity?.driver === "local-model") {
|
|
3865
|
+
return execInApp(nomadJobId, "", command, timeoutMs ?? 120_000);
|
|
3866
|
+
}
|
|
3867
|
+
if (identity?.driver === "runtime-adapter") {
|
|
3868
|
+
return instanceScheduler.exec(nomadJobId, command, timeoutMs);
|
|
3869
|
+
}
|
|
3668
3870
|
if (existsSync(instanceMetaPath(nomadJobId))) {
|
|
3669
3871
|
return instanceScheduler.exec(nomadJobId, command, timeoutMs);
|
|
3670
3872
|
}
|
|
@@ -3684,6 +3886,18 @@ var UnifiedNomadJobs;
|
|
|
3684
3886
|
if (isAppJob(nomadJobId)) {
|
|
3685
3887
|
return streamExecInApp(nomadJobId, taskName, command, handlers, timeoutMs ?? 120_000);
|
|
3686
3888
|
}
|
|
3889
|
+
const identity = resolveRuntimeIdentity(nomadJobId);
|
|
3890
|
+
if (identity?.driver === "app-job" || identity?.driver === "local-model") {
|
|
3891
|
+
return streamExecInApp(nomadJobId, taskName, command, handlers, timeoutMs ?? 120_000);
|
|
3892
|
+
}
|
|
3893
|
+
if (identity?.driver === "runtime-adapter") {
|
|
3894
|
+
const result = await instanceScheduler.exec(nomadJobId, command, timeoutMs);
|
|
3895
|
+
if (result.stdout)
|
|
3896
|
+
handlers.onStdout?.(result.stdout);
|
|
3897
|
+
if (result.stderr)
|
|
3898
|
+
handlers.onStderr?.(result.stderr);
|
|
3899
|
+
return result;
|
|
3900
|
+
}
|
|
3687
3901
|
if (existsSync(instanceMetaPath(nomadJobId))) {
|
|
3688
3902
|
const result = await instanceScheduler.exec(nomadJobId, command, timeoutMs);
|
|
3689
3903
|
if (result.stdout)
|
|
@@ -3719,6 +3933,8 @@ export const getAppStatus = UnifiedNomadJobs.getAppStatus;
|
|
|
3719
3933
|
export const startAppJob = UnifiedNomadJobs.startAppJob;
|
|
3720
3934
|
export const waitForRunning = UnifiedNomadJobs.waitForRunning;
|
|
3721
3935
|
export const checkDependencies = UnifiedNomadJobs.checkDependencies;
|
|
3936
|
+
export const validateNomadPortHostNetworks = UnifiedNomadJobs.validateNomadPortHostNetworks;
|
|
3937
|
+
export const buildNomadReservedPort = UnifiedNomadJobs.buildNomadReservedPort;
|
|
3722
3938
|
export const stopAppJob = UnifiedNomadJobs.stopAppJob;
|
|
3723
3939
|
export const restartAppJob = UnifiedNomadJobs.restartAppJob;
|
|
3724
3940
|
export const getAppLogs = UnifiedNomadJobs.getAppLogs;
|