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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s,ak as xs,al as bs,am as hs,d as ys,k as ws,g as vs,an as Is,o as Ns,ao as js,ap as Ss,aq as Cs,ar as Es,v as _s,ai as Fs,as as ks}from"./index-CCkaIEjn.js";import{u as Mt,r as l,f as As}from"./vendor-react-DW5juQin.js";import{u as Pt}from"./vendor-i18n-DqPtOicc.js";import{u as Vs,F as kt,i as Ks}from"./registry-B2ZQZXWL.js";function Ls({onClose:t,showToast:i}){const{t:n}=Pt("newInstance"),m=Mt(),[y,j]=l.useState("upload"),[P,C]=l.useState(!1),[r,E]=l.useState(""),[f,$]=l.useState(null),_=l.useRef(null),[me,$e]=l.useState(""),[K,Ie]=l.useState(null),[Ne,je]=l.useState([]),[Se,Ce]=l.useState(0),[W,T]=l.useState(""),[Q,ie]=l.useState(""),[O,Qe]=l.useState(!1);function V(g){return g.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,63)}function Xe(g){return g<1024?`${g}B`:g<1024*1024?`${(g/1024).toFixed(1)}KB`:`${(g/(1024*1024)).toFixed(1)}MB`}const pe=async()=>{var g;if(f){C(!0),E("");try{const d=await xs(f);$e(d.temp_id);const b=await bs(d.temp_id);Ie(b.manifest),je(b.warnings||[]),Ce(b.estimated_size||0),(g=b.manifest)!=null&&g.name&&(ie(b.manifest.name),O||T(V(b.manifest.name))),j("preview")}catch(d){E(d.message||"Upload failed")}finally{C(!1)}}},Te=async()=>{var g;if(!(!W||!Q||!me)){C(!0),E(""),j("creating");try{const d=await hs({temp_id:me,id:W,name:Q});d.ok?(i(n("import.success",{defaultValue:"导入成功"}),"success"),(g=d.warnings)!=null&&g.length&&d.warnings.forEach(b=>i(b,"info")),m(`/instances/${d.instance_id}/config`)):(E(d.detail||n("import.failed",{defaultValue:"导入失败"})),j("preview"))}catch(d){E(d.message||"Import failed"),j("preview")}finally{C(!1)}}},Ee="w-full bg-[var(--input-bg)] border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground placeholder-[var(--muted)] focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60 focus:border-[#0066FF]/60 transition-colors duration-200";return s.jsxs("div",{className:"space-y-4",children:[r&&s.jsx("div",{className:"bg-red-500/10 border border-red-500/20 text-red-400 text-sm rounded-lg px-3 py-2.5",children:r}),y==="upload"&&s.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl p-5 space-y-4",children:[s.jsx("div",{className:"text-xs text-muted bg-card border border-[var(--border)] rounded-md p-3",children:n("import.uploadDesc",{defaultValue:"上传 .tar.gz 文件(支持 JishuShell 导出包、备份包、OpenClaw 官方备份)"})}),s.jsx("input",{ref:_,type:"file",accept:".tar.gz,.tgz",onChange:g=>{var d;return $(((d=g.target.files)==null?void 0:d[0])||null)},className:"hidden"}),s.jsx("button",{type:"button",onClick:()=>{var g;return(g=_.current)==null?void 0:g.click()},className:"w-full flex items-center justify-center gap-2 px-4 py-3 border border-dashed border-[var(--border)] rounded-lg text-sm text-muted hover:text-foreground hover:border-[#0066FF]/40 hover:bg-[var(--input-bg)] transition-colors cursor-pointer",children:f?s.jsxs("span",{className:"text-foreground truncate",children:[f.name," (",(f.size/1024/1024).toFixed(1),"MB)"]}):n("import.selectFile",{defaultValue:"点击选择 .tar.gz 文件"})})]}),y==="preview"&&K&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl p-5 space-y-4",children:[s.jsxs("div",{className:"bg-[var(--input-bg)] border border-[var(--border)] rounded-lg p-4 space-y-2 text-sm",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-muted",children:n("import.name",{defaultValue:"名称"})}),s.jsx("span",{className:"text-foreground",children:K.name||"-"})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-muted",children:n("import.type",{defaultValue:"类型"})}),s.jsx("span",{className:"text-foreground",children:K.type||"unknown"})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-muted",children:n("import.size",{defaultValue:"大小"})}),s.jsx("span",{className:"text-foreground",children:Xe(Se)})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-muted",children:n("import.platform",{defaultValue:"平台"})}),s.jsxs("span",{className:"text-foreground",children:[K.platform||"-"," / ",K.arch||"-"]})]}),K.has_sessions===!1&&s.jsx("div",{className:"text-amber-400 text-xs",children:n("import.noSessions",{defaultValue:"不含对话历史"})})]}),Ne.length>0&&s.jsx("div",{className:"space-y-1",children:Ne.map((g,d)=>s.jsx("p",{className:"text-xs text-amber-400",children:g},d))}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:n("name.label",{defaultValue:"应用名称"})}),s.jsx("input",{type:"text",value:Q,onChange:g=>{ie(g.target.value),O||T(V(g.target.value))},className:Ee})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:n("id.label",{defaultValue:"应用 ID"})}),s.jsx("input",{type:"text",value:W,onChange:g=>{T(g.target.value),Qe(!0)},className:`${Ee} font-mono text-[13px]`})]})]}),s.jsx("button",{className:"w-full bg-[#0066FF] text-white rounded-md py-2.5 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 disabled:cursor-not-allowed transition-all duration-200 shadow-[0_0_20px_rgba(0,102,255,0.3)] hover:shadow-[0_0_28px_rgba(0,102,255,0.45)]",onClick:Te,disabled:!W||!Q||P,children:n("import.create",{defaultValue:"创建应用"})})]}),y==="upload"&&s.jsx("button",{className:"w-full bg-[#0066FF] text-white rounded-md py-2.5 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 disabled:cursor-not-allowed transition-all duration-200 shadow-[0_0_20px_rgba(0,102,255,0.3)] hover:shadow-[0_0_28px_rgba(0,102,255,0.45)]",onClick:pe,disabled:!f||P,children:P?s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx("span",{className:"w-3.5 h-3.5 border-2 border-white/30 border-t-white rounded-full animate-spin"}),n("import.uploading",{defaultValue:"上传中..."})]}):n("import.upload",{defaultValue:"上传并预览"})}),y==="creating"&&s.jsxs("div",{className:"flex items-center justify-center py-8 gap-3",children:[s.jsx("span",{className:"w-4 h-4 border-2 border-[#0066FF]/30 border-t-[#0066FF] rounded-full animate-spin"}),s.jsx("span",{className:"text-sm text-muted",children:n("import.creating",{defaultValue:"正在创建应用..."})})]})]})}function Ds(t){return t.type==="done"?"success":t.type==="error"?"error":t.type==="progress"?"progress":"info"}async function He(t,i={}){var r;const n=i.maxDurationMs??18e5,m=Math.max(200,i.pollIntervalMs??500);let y=Math.max(0,i.initialSeenCount??0),j=0,P="task completed";const C=Date.now()+n;for(;Date.now()<C;){let E=null;try{const f=await ys(t);j=0;const $=f.events.slice(y);y=f.events.length;for(const _ of $)(r=i.onEvent)==null||r.call(i,{message:_.message,progress:_.progress,tone:Ds(_)},{seenCount:y}),_.message&&(P=_.message);if(f.status==="done")return P;f.status==="error"&&(E=new Error(P))}catch(f){const $=(f==null?void 0:f.message)||`task ${t} polling failed`;if((f==null?void 0:f.code)==="TASK_NOT_FOUND"||/task not found/i.test($))throw new Error($);if(j+=1,j>=5)throw new Error($)}if(E)throw E;await new Promise(f=>setTimeout(f,m))}throw new Error(`task ${t} timeout`)}const Rs="ollama-binary.yaml",At=new Set(["ollama-binary","ollama-with-hollama-binary"]),Ms=["searxng-container.yaml","browserless-chromium-container.yaml","filebrowser-container.yaml","anythingllm-container.yaml","weknora-container.yaml","jishu-kb-container.yaml"],Me=40,Pe="jishushell:new-instance:create-flow",Vt={action:null,kind:null,sourceKey:"",status:"idle",taskId:"",expectedSpecId:"",seenEventCount:0,progress:null,logs:[],lastError:""},Ps={openclaw:!1,hermes:!1,ollama:!1,custom:!1};function $s(){var t,i;if(typeof window>"u")return null;try{const n=window.sessionStorage.getItem(Pe);if(!n)return null;const m=JSON.parse(n);return!m||typeof m!="object"?null:((t=m.templateInstall)==null?void 0:t.status)==="running"&&!!((i=m.templateInstall)!=null&&i.taskId)&&!!m.pendingCreate?m:(window.sessionStorage.removeItem(Pe),null)}catch{return null}}function Ts(t){return(t==null?void 0:t.code)==="INSTANCE_ALREADY_RUNNING"?!0:/already running|已在运行/i.test((t==null?void 0:t.message)||"")}function qs(t){return(t==null?void 0:t.code)==="TASK_NOT_FOUND"?!0:/task not found|未找到.*任务/i.test((t==null?void 0:t.message)||"")}function zs(t){return(t==null?void 0:t.code)==="INVALID_SUDO_PASSWORD"?!0:/sudo 密码无效|invalid sudo password|provided sudo password invalid|sudo 密码错误/i.test((t==null?void 0:t.message)||"")}const Bs=[{id:"openclaw",icon:"🦞",labelKey:"tab.openclaw",descKey:"appDesc.openclaw"},{id:"hermes",icon:"🧠",iconImage:"/logos/hermes.png",labelKey:"tab.hermes",descKey:"appDesc.hermes"},{id:"ollama",icon:"🦙",iconImage:"/logos/ollama.png",labelKey:"tab.ollama",descKey:"appDesc.ollama"},{id:"custom",icon:"🧩",labelKey:"tab.custom",descKey:"appDesc.custom"}];function Us(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,63)}function ce(t){return t.trim().toLowerCase()}function Kt(t){return`${typeof t.progress=="number"&&t.progress>0?`[${t.progress}%] `:""}${t.message}`}function Lt(t){var i;for(let n=t.length-1;n>=0;n-=1){const m=((i=t[n])==null?void 0:i.trim())??"";if(/^(curl|sudo|su)\b/.test(m))return m}return""}function Os(t,i){return t?typeof t.seenEventCount=="number"&&t.seenEventCount>0?t.seenEventCount:t.logs.filter(n=>!!n&&n!==i).length:0}function De(t,i,n){return[...t.length===1&&t[0]===n?[]:t,i].slice(-Me)}function We(t){var n;const i=t.match(/^\s*id:\s*["']?([^"'\s#]+)["']?\s*$/m);return((n=i==null?void 0:i[1])==null?void 0:n.trim())??""}function Ys(t){var n;const i=t.match(/^\s*name:\s*["']?([^"'\n#][^\n#]*?)["']?\s*$/m);return((n=i==null?void 0:i[1])==null?void 0:n.trim())??""}function Gs(t,i){const n=t.trim().toLowerCase();if(!n)return"";if(!i.has(n))return n;for(let m=1;m<1e4;m+=1){const y=`${n}-${m}`.slice(0,63);if(!i.has(y))return y}return n}function Hs(t,i){const n=t.trim();if(!n)return"";const m=ce(n);if(!i.has(m))return n;for(let y=1;y<1e4;y+=1){const j=`${n}-${y}`;if(!i.has(ce(j)))return j}return n}function Js(t){return[...t].sort((i,n)=>new Date(n.installed_at).getTime()-new Date(i.installed_at).getTime())}function Dt(t,i){return Js(t).find(i)??null}function Ws(t,i,n,m){return t==="builtin"?`builtin:${(i==null?void 0:i.id)??""}`:t==="url"?`url:${n.trim()}`:`yaml:${We(m)||"inline"}`}function Rt(t,i,n,m){if(i.kind===n&&i.sourceKey===m){if(i.status==="running")return"installing";if(i.status==="error")return(t==null?void 0:t.status)==="installed"?"installed":"missing"}return(t==null?void 0:t.status)==="installing"?"installing":t?"installed":"missing"}const Re="w-full bg-[var(--input-bg)] border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground placeholder-[var(--muted)] focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60 focus:border-[#0066FF]/60 transition-colors duration-200",Je={openclaw:"openclaw","hermes-agent":"hermes",ollama:"ollama"};function aa(){var bt,ht,yt,wt,vt,It,Nt,jt,St,Ct,Et,_t,Ft;const{t}=Pt("newInstance"),[i]=As(),n=l.useRef($s()),m=i.get("app")??"",y=m&&Je[m]?Je[m]:m?"custom":null,j=m&&!Je[m]?`${m}.yaml`:"",P=y??((bt=n.current)==null?void 0:bt.createKind)??"openclaw",{runtimes:C}=Vs(),[r,E]=l.useState(P),[f,$]=l.useState(null),[_,me]=l.useState(null),[$e,K]=l.useState({}),[Ie,Ne]=l.useState([]),[je,Se]=l.useState(!1),[Ce,W]=l.useState(""),[T,Q]=l.useState(j||((ht=n.current)==null?void 0:ht.selectedBuiltinTemplate)||""),[ie]=l.useState(j?"builtin":((yt=n.current)==null?void 0:yt.customSourceMode)??"builtin"),[O,Qe]=l.useState(((wt=n.current)==null?void 0:wt.appSpecUrl)??""),[V,Xe]=l.useState(((vt=n.current)==null?void 0:vt.appSpecYaml)??""),[pe,Te]=l.useState([]),[Ee,g]=l.useState({}),[d,b]=l.useState(((It=n.current)==null?void 0:It.templateInstall)??Vt),[L,X]=l.useState(((Nt=n.current)==null?void 0:Nt.pendingCreate)??null),[Z,fe]=l.useState(null),[_e,ee]=l.useState(""),[Ze,q]=l.useState(""),[Y,qe]=l.useState(!1),[k,et]=l.useState(((jt=n.current)==null?void 0:jt.name)??""),[Fe,tt]=l.useState(((St=n.current)==null?void 0:St.nameEdited)??!1),[D,ze]=l.useState(((Ct=n.current)==null?void 0:Ct.id)??""),[ge,st]=l.useState(((Et=n.current)==null?void 0:Et.idEdited)??!1),[de,Qs]=l.useState(((_t=n.current)==null?void 0:_t.description)??""),[at,$t]=l.useState(""),[ke,Tt]=l.useState([]),[qt,Xs]=l.useState(!0),[zt,Bt]=l.useState(!1),[Ut,S]=l.useState(""),[Be,Ot]=l.useState(()=>({...Ps})),Yt=i.get("import")==="true",Ae=Mt(),{showToast:G}=ws(),nt=l.useRef({name:"",id:""}),Ue=l.useRef(""),Oe=l.useCallback(()=>{vs().then($).catch(()=>{})},[]),R=l.useCallback(async()=>{try{const e=await Is();return Te(e),e}catch{return[]}},[]),z=l.useCallback((e,o)=>{Ot(a=>a[e]===o?a:{...a,[e]:o})},[]),Ye=l.useCallback(async(e,o,a={})=>{const v=(await R()).filter(u=>u.install_mode==="app-dir"&&(a.allowInstalling||u.status!=="installing"));return e.kind==="ollama"?Dt(v,u=>u.id===e.appId||!!o&&u.spec_id===o||u.spec_id===e.appId):v.find(u=>u.id===e.appId)??null},[R]);l.useEffect(()=>{Ns().then(Tt).catch(()=>{}),Oe(),R(),Se(!0),js().then(e=>{Ne(e),W("")}).catch(e=>{W((e==null?void 0:e.message)||t("template.loadFailed"))}).finally(()=>{Se(!1)})},[R,Oe]);const lt=l.useRef(!1),xe=r==="hermes"?"hermes":"openclaw",Gt=Ie.filter(e=>e.instanceCompatible),rt=Bs,p=Gt.find(e=>e.fileName===Rs)??null,Ht=(p==null?void 0:p.id)??"ollama-binary",Jt=new Map(Ie.map(e=>[e.fileName,e])),te=Ms.map(e=>Jt.get(e)).filter(e=>!!e&&e.suggestedAppType==="custom"),h=te.find(e=>e.fileName===T)??te[0]??null,se=[...pe].filter(e=>e.install_mode==="app-dir").sort((e,o)=>new Date(o.installed_at).getTime()-new Date(e.installed_at).getTime()),ae=Dt(se,e=>At.has(e.id)||At.has(e.spec_id)),ne=d.kind==="custom"&&d.status==="running"?ie:"builtin",Ve=ne==="builtin"?(h==null?void 0:h.id)??"":ne==="yaml"?We(V):"",ot=ne==="builtin"?(h==null?void 0:h.name)??(h==null?void 0:h.id)??"":ne==="yaml"?Ys(V)||We(V):"",le=Ws(ne,h,O,V),be=`ollama:${Ht}`,B=Rt(ae,d,"ollama",be),H=(ae==null?void 0:ae.status)==="installing"?"":(ae==null?void 0:ae.id)??"",U=D.trim(),it=Ee[le]??"",Wt=it?se.find(e=>e.id===it)??null:null,Qt=U?se.find(e=>e.id===U&&(!Ve||e.spec_id===Ve))??null:null,re=Wt??Qt,Xt=new Set([...se.map(e=>e.id),...ke.map(e=>typeof(e==null?void 0:e.id)=="string"?e.id:"")].filter(Boolean)),Zt=new Set([...se.map(e=>typeof(e==null?void 0:e.name)=="string"&&e.name.trim()?e.name:e.id),...ke.map(e=>typeof(e==null?void 0:e.name)=="string"?e.name:"")].filter(Boolean).map(e=>ce(e))),he=Ve?Gs(Ve,Xt):"",ye=ot?Hs(ot,Zt):"",es=Rt(re,d,"custom",le),Ge=(re==null?void 0:re.status)==="installing"?"":(re==null?void 0:re.id)??"";l.useEffect(()=>{if(d.status!=="running"&&!pe.some(o=>o.status==="installing"))return;const e=setInterval(()=>{R()},1e3);return()=>clearInterval(e)},[pe,R,d.status]),l.useEffect(()=>{if(lt.current||!f||C.length===0||r==="custom"||r==="ollama")return;lt.current=!0;const e=C.find(a=>a.agentType===xe);if(e!=null&&e.isInstalled(f))return;const o=C.find(a=>(a.agentType==="openclaw"||a.agentType==="hermes")&&a.isInstalled(f));o&&E(o.agentType==="hermes"?"hermes":"openclaw")},[r,C,xe,f]),l.useEffect(()=>{if(te.length&&!T){const e=te[0];e&&Q(e.fileName)}},[te,T]),l.useEffect(()=>{if(!(typeof window>"u")){if(d.status==="running"&&d.taskId&&L){const e={createKind:r,customSourceMode:ie,selectedBuiltinTemplate:T,appSpecUrl:O,appSpecYaml:V,name:k,nameEdited:Fe,id:D,idEdited:ge,description:de,templateInstall:d,pendingCreate:L};window.sessionStorage.setItem(Pe,JSON.stringify(e));return}window.sessionStorage.removeItem(Pe)}},[O,V,r,ie,de,D,ge,k,Fe,L,T,d]),l.useEffect(()=>{if(r!=="custom"||!he||!ye)return;const e=nt.current,o=!k.trim()||!Fe||k===e.name,a=!D.trim()||!ge||D===e.id;o&&k!==ye&&(et(ye),tt(!1)),a&&D!==he&&(ze(he),st(!1)),nt.current={name:ye,id:he}},[r,D,ge,k,Fe,he,ye]);const A=C.find(e=>e.agentType===xe)||kt.find(e=>e.agentType===xe)||C[0]||kt[0],Ke=ce(k),dt=Ke?ke.find(e=>typeof(e==null?void 0:e.name)=="string"&&ce(e.name)===Ke):null,ts=U?ke.find(e=>(e==null?void 0:e.id)===U):null,ss=U?se.find(e=>e.id===U):null,ut=Ke?se.find(e=>ce(typeof(e==null?void 0:e.name)=="string"&&e.name.trim()?e.name:e.id)===Ke):null,Le=dt?t("name.duplicate",{name:k.trim(),id:dt.id,defaultValue:"应用名称“{{name}}”已存在(ID: {{id}})"}):ut?t("name.duplicate",{name:k.trim(),id:ut.id,defaultValue:"应用名称“{{name}}”已存在(ID: {{id}})"}):ts?t("id.duplicate",{id:U,defaultValue:"应用 ID“{{id}}”已存在"}):ss?t("id.duplicate",{id:U,defaultValue:"应用 ID“{{id}}”已存在"}):"",as=r==="ollama"||r==="custom",ct=r==="ollama"?B:r==="custom"?es:"missing",oe=r==="ollama"?(p==null?void 0:p.name)??(p==null?void 0:p.id)??"Ollama":k.trim(),M=r==="ollama"?H||(p==null?void 0:p.id)||"":U,ns=r==="ollama"?be:r==="custom"?le:"",ls=(r==="ollama"||r==="custom")&&d.status==="running"&&d.kind===r&&d.sourceKey===ns,rs=(r==="ollama"||r==="custom")&&(ls||ct==="installing"),mt=Be[r]||rs,ue=as&&ct==="installing"?t("install.waitingCompletion",{defaultValue:"当前模板正在安装中,请等待安装完成"}):"",pt=Le||Ut,os=async e=>{if(!_){S(""),me(e.agentType),K(o=>({...o,[e.agentType]:{message:"准备安装...",tone:"progress"}}));try{const o=await Ks(e);o!=null&&o.taskId&&await He(o.taskId,{onEvent:a=>{K(c=>({...c,[e.agentType]:a}))}}),Oe(),G(`${e.displayName} 安装完成`,"success"),E(e.agentType==="hermes"?"hermes":"openclaw")}catch(o){const a=(o==null?void 0:o.message)||`${e.displayName} 安装失败`;S(a),G(a,"error")}finally{me(null),setTimeout(()=>{K(o=>({...o,[e.agentType]:null}))},3e3)}}},is=e=>{S(""),et(e),r==="custom"&&tt(!0),ge||ze(Us(e))},ds=e=>{E(e),S(""),e!=="openclaw"&&($t(""),Bt(!1))},us=()=>{if(r==="ollama"){if(!(p!=null&&p.yaml))throw new Error(t("template.ollamaRequired"));return{flow:{kind:"ollama",sourceKey:be,appId:p.id,name:p.name??p.id,description:p.description??""},payload:{yaml:p.yaml},existingInstalledAppId:H}}if(r!=="custom")throw new Error(t("failed"));if(!M||!oe)throw new Error(t("install.identityRequired",{defaultValue:"请先确认应用名称和应用 ID"}));if(ne==="builtin"){if(!(h!=null&&h.yaml))throw new Error(t("template.none"));return{flow:{kind:"custom",sourceKey:le,appId:M,name:oe,description:de},payload:{yaml:h.yaml,requestedAppId:M},existingInstalledAppId:Ge}}if(ne==="url"){if(!O.trim())throw new Error(t("custom.urlRequired"));return{flow:{kind:"custom",sourceKey:le,appId:M,name:oe,description:de},payload:{url:O.trim(),requestedAppId:M},existingInstalledAppId:Ge}}if(!V.trim())throw new Error(t("custom.yamlRequired"));return{flow:{kind:"custom",sourceKey:le,appId:M,name:oe,description:de},payload:{yaml:V.trim(),requestedAppId:M},existingInstalledAppId:Ge}},we=l.useCallback(async(e,o,a)=>{const c=t("install.waitingLogs"),v=Os(a,c);b(N=>{var x;return{...N,action:"install",kind:e.kind,sourceKey:e.sourceKey,status:"running",taskId:(a==null?void 0:a.taskId)??N.taskId,expectedSpecId:(a==null?void 0:a.expectedSpecId)??N.expectedSpecId,seenEventCount:v,progress:(a==null?void 0:a.progress)??N.progress??null,logs:(x=a==null?void 0:a.logs)!=null&&x.length?a.logs:[c],lastError:""}});let u=(a==null?void 0:a.taskId)??"",w=(a==null?void 0:a.expectedSpecId)??"",I=null;try{if(!u){if(!o)throw new Error(t("install.missingTask",{defaultValue:"未找到可恢复的安装任务,请重新点击创建应用"}));const x=await Ss(o);u=x.taskId,w=x.expectedSpecId??"",b(F=>({...F,action:"install",kind:e.kind,sourceKey:e.sourceKey,taskId:u,expectedSpecId:w,logs:x.reused?[...F.logs,t("install.reusedTask")].slice(-Me):F.logs}))}try{await He(u,{pollIntervalMs:400,initialSeenCount:v,onEvent:(x,F)=>{b(J=>({...J,progress:typeof x.progress=="number"&&x.progress>0?x.progress:J.progress,seenEventCount:Math.max(J.seenEventCount,(F==null?void 0:F.seenCount)??J.seenEventCount),logs:De(J.logs,Kt(x),c)}))}})}catch(x){if(!qs(x))throw x;if(I=await Ye(e,w,{allowInstalling:!0}),!(I!=null&&I.id))throw new Error(t("install.taskStateLost"));if(I.status==="installing")throw new Error(t("install.taskStateLostInstalling"));b(F=>({...F,logs:[...F.logs,t("install.taskRecovered")].slice(-Me)}))}if(I=I??await Ye(e,w),!(I!=null&&I.id))throw new Error(t("install.notFoundAfterInstall"));const N=I.id;return e.kind==="custom"&&g(x=>({...x,[e.sourceKey]:N})),b(x=>({...x,action:"install",kind:e.kind,sourceKey:e.sourceKey,status:"done",progress:100})),N}catch(N){const x=(N==null?void 0:N.message)||t("install.failed",{defaultValue:"模板安装失败"});throw b(F=>{const J=De(F.logs,x,c),gs=Lt(J);return{...F,action:"install",kind:e.kind,sourceKey:e.sourceKey,status:"error",lastError:gs?t("install.manualRequired"):x,logs:J}}),R(),new Error(x)}},[R,Ye,t]),ft=l.useCallback(async(e,o,a)=>{b({action:"uninstall",kind:e.kind,sourceKey:e.sourceKey,status:"running",taskId:"",expectedSpecId:"",seenEventCount:0,progress:null,logs:[t("uninstall.waitingLogs")],lastError:""});try{const c=await Cs(o,{sudoPassword:a}),v=c.taskId;b(u=>({...u,taskId:v,logs:c.reused?[...u.logs,t("uninstall.reusedTask")].slice(-Me):u.logs})),await He(v,{pollIntervalMs:400,onEvent:u=>{const w=t("uninstall.waitingLogs");b(I=>({...I,progress:typeof u.progress=="number"&&u.progress>0?u.progress:I.progress,logs:De(I.logs,Kt(u),w)}))}}),await R(),X(null),b(u=>({...u,status:"done",progress:100})),G(t("uninstall.success",{defaultValue:"Ollama 已卸载"}),"success")}catch(c){const v=(c==null?void 0:c.message)||t("uninstall.failed",{defaultValue:"卸载失败"}),u=t("uninstall.waitingLogs");throw b(w=>({...w,status:"error",lastError:v,logs:De(w.logs,v,u)})),new Error(v)}},[R,G,t]),gt=l.useCallback(()=>{Y||(fe(null),ee(""),q(""))},[Y]),ve=l.useCallback(async(e,o)=>{e.kind==="custom"&&await Es(o,{name:e.name,description:e.description});try{await _s(o)}catch(c){if(!Ts(c))throw c}const a=t("create.startedSuccess",{name:e.name||o,defaultValue:"应用 {{name}} 创建成功并已启动"});X(null),b(Vt),G(a,"success"),Ae(`/instances/${o}/chat`)},[Ae,G,t]),cs=l.useCallback(async()=>{if(!Z||Y)return;if(!_e){q(t("sudoDialog.passwordRequired",{defaultValue:"请输入 sudo 密码。"}));return}S(""),q("");const e=Z,o=_e.trim();qe(!0);try{await Fs({sudoPassword:o})}catch(a){const c=(a==null?void 0:a.message)||t("sudoDialog.passwordInvalid",{defaultValue:"sudo 密码错误,请重新输入。"});q(c),ee(""),qe(!1);return}fe(null),ee(""),q(""),z(e.flow.kind,!0),qe(!1);try{if(e.action==="uninstall"){await ft(e.flow,e.appId||e.flow.appId,o);return}X(e.flow);const a=e.existingInstalledAppId||await we(e.flow,{...e.payload,sudoPassword:o});await ve(e.flow,a)}catch(a){X(null);const c=(a==null?void 0:a.message)||t("failed");zs(a)?(ee(""),fe(e),q(c),S("")):S(c)}finally{z(e.flow.kind,!1)}},[we,z,ve,_e,Z,Y,t,ft]);l.useEffect(()=>{L&&(Be[L.kind]||d.status!=="running"||!d.taskId||Ue.current!==d.taskId&&(Ue.current=d.taskId,(async()=>{S(""),z(L.kind,!0);try{const e=await we(L,void 0,d);await ve(L,e)}catch(e){X(null),S((e==null?void 0:e.message)||t("failed"))}finally{Ue.current="",z(L.kind,!1)}})()))},[Be,we,L,z,ve,t,d]);const ms=async e=>{if(e.preventDefault(),r!=="ollama"&&(!M||!oe))return;if(Le){S(Le);return}if(ue){S(ue);return}S("");let o=null;try{if(r==="ollama"&&B==="installed"&&H){const w={kind:"ollama",sourceKey:be,appId:H,name:(p==null?void 0:p.name)??H,description:(p==null?void 0:p.description)??""};ee(""),q(""),fe({action:"uninstall",flow:w,appId:H});return}if(r==="ollama"||r==="custom"){const{flow:w,payload:I,existingInstalledAppId:N}=us();if(!N&&(r==="ollama"||r==="custom")){ee(""),q(""),fe({action:"install",flow:w,payload:I,existingInstalledAppId:N});return}o=w.kind,z(w.kind,!0),X(w);const x=N||await we(w,I);await ve(w,x);return}o=r,z(r,!0);const a={id:M,name:oe,description:de};if(r==="openclaw"||r==="hermes"){if(!A.isInstalled(f))throw new Error(t("runtime.installFirst",{name:A.displayName}));a.agentType=xe}r==="openclaw"&&A.supportsClone&&at&&(a.clone_from=at,a.clone_options={include_sessions:zt,include_memory:qt});const c=await ks(a),v=typeof(c==null?void 0:c.id)=="string"&&c.id?c.id:D,u=c==null?void 0:c.port_allocation;u&&typeof u.assigned=="number"&&typeof u.requested=="number"&&u.assigned!==u.requested&&G(t("portReallocated",{defaultValue:"默认端口 {{requested}} 被占用,已自动使用 {{assigned}}",requested:u.requested,assigned:u.assigned}),"info"),Ae(c!=null&&c.autoStarted?`/instances/${v}`:`/instances/${v}/config`)}catch(a){X(null),S(a.message||t("failed"))}finally{o&&z(o,!1)}},ps=()=>{const e=A.isInstalled(f),o=_===A.agentType,a=$e[A.agentType];return s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("runtime.label")}),s.jsxs("div",{className:"rounded-lg border border-[var(--border)] p-4 bg-[var(--input-bg)] space-y-3",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[A.displayName,!e&&s.jsx("span",{className:"text-[10px] text-amber-400 font-normal px-1.5 py-0.5 rounded bg-amber-500/10 border border-amber-500/20",children:t("runtime.notInstalled")})]}),s.jsx("p",{className:"text-xs text-muted mt-1",children:t(A.description)}),A.installHint&&!e&&s.jsx("p",{className:"text-xs text-muted mt-2",children:t(A.installHint)})]}),e&&s.jsx("span",{className:"text-xs text-emerald-400 font-medium",children:t("runtime.ready")})]}),!e&&s.jsx("button",{type:"button",onClick:()=>os(A),disabled:!!_,className:"px-3 py-1.5 bg-[#0066FF] text-white rounded-md text-xs font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all duration-200",children:o?s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx("span",{className:"w-3 h-3 border-2 border-white/30 border-t-white rounded-full animate-spin"}),t("runtime.installing")]}):_?t("runtime.waitingOtherInstall"):t("runtime.install",{name:A.displayName})}),(a==null?void 0:a.message)&&s.jsxs("div",{className:"text-[11px] font-mono text-muted truncate",title:a.message,children:[typeof a.progress=="number"&&a.progress>0?`[${a.progress}%] `:"",a.message]})]})]})},xt=(e,o)=>{if(!(d.kind===e&&d.sourceKey===o&&(d.status!=="idle"||d.logs.length>0)))return null;const v=Lt(d.logs);return s.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-background/60 px-3 py-3 space-y-2",children:[s.jsx("div",{className:"text-xs",children:s.jsx("span",{className:"text-muted",children:d.action==="uninstall"?t("uninstall.logs",{defaultValue:"卸载日志"}):t("install.logs",{defaultValue:"安装日志"})})}),s.jsx("div",{className:"max-h-52 overflow-y-auto rounded-md border border-[var(--border)] bg-black/30 px-3 py-2 font-mono text-[11px] leading-5 text-muted space-y-1",children:d.logs.map((u,w)=>s.jsx("div",{children:u},`${w}-${u}`))}),d.lastError&&s.jsx("p",{className:"text-xs text-red-400",children:d.lastError}),v&&s.jsxs("div",{className:"rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 space-y-1",children:[s.jsx("p",{className:"text-[11px] text-amber-200",children:t("install.manualCommandLabel",{defaultValue:"请在终端执行以下命令后,再重新点击创建应用:"})}),s.jsx("pre",{className:"font-mono text-[11px] text-amber-50 whitespace-pre-wrap break-all",children:v})]})]})},fs=()=>{if(r==="ollama"){const e=B==="installed"?"text-emerald-400 border-emerald-500/20 bg-emerald-500/10":B==="installing"?"text-amber-400 border-amber-500/20 bg-amber-500/10":"text-muted border-[var(--border)] bg-background/40",o=B==="installed"?t("install.installedShort",{defaultValue:"已安装"}):B==="installing"?t("install.installingShort",{defaultValue:"安装中"}):t("install.notInstalledShort",{defaultValue:"未安装"});return s.jsx("div",{className:"space-y-3",children:je?s.jsx("div",{className:"rounded-lg border border-[var(--border)] p-4 bg-[var(--input-bg)] text-sm text-muted",children:t("template.loading")}):p?s.jsxs("div",{className:"rounded-lg border border-[var(--border)] p-4 bg-[var(--input-bg)] space-y-3",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-foreground",children:p.name}),p.description&&s.jsx("p",{className:"text-xs text-muted mt-1 leading-5",children:p.description})]}),s.jsx("span",{className:`shrink-0 rounded-full border px-2 py-0.5 text-[11px] font-medium ${e}`,children:o})]}),B==="installed"&&H&&s.jsx("p",{className:"text-xs text-muted",children:t("install.installedAppId",{id:H,defaultValue:"已安装应用 ID: {{id}}"})}),B==="installed"&&s.jsx("p",{className:"text-xs text-muted leading-5",children:t("uninstall.requiresSudo",{defaultValue:"卸载 Ollama 时会再次弹出 sudo 密码输入框。"})})]}):s.jsx("div",{className:"rounded-lg border border-[var(--border)] p-4 bg-[var(--input-bg)] text-sm text-amber-400",children:Ce||t("template.ollamaRequired")})})}return r!=="custom"?null:s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("source.label")}),s.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--input-bg)] p-4 space-y-2",children:[s.jsx("div",{className:"inline-flex items-center rounded-full border border-[#0066FF]/25 bg-[#0066FF]/8 px-2.5 py-1 text-xs font-medium text-foreground",children:t("source.builtin")}),s.jsx("p",{className:"text-xs text-muted leading-5",children:t("source.experimentalHint")})]})]}),s.jsxs("div",{className:"rounded-lg border border-[var(--border)] p-4 bg-[var(--input-bg)] space-y-3",children:[s.jsx("p",{className:"text-xs text-muted",children:t("template.compatibilityHint")}),je?s.jsx("div",{className:"text-sm text-muted",children:t("template.loading")}):te.length===0?s.jsx("div",{className:"text-sm text-amber-400",children:Ce||t("template.none")}):s.jsxs(s.Fragment,{children:[s.jsx("select",{value:(h==null?void 0:h.fileName)??"",onChange:e=>Q(e.target.value),className:`${Re} appearance-none`,children:te.map(e=>s.jsx("option",{value:e.fileName,className:"bg-background text-foreground",children:e.name},e.fileName))}),(h==null?void 0:h.description)&&s.jsx("p",{className:"text-xs text-muted leading-5",children:h.description})]})]})]})};return Yt?s.jsxs("div",{className:"p-6 max-w-lg mx-auto",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h1",{className:"text-lg font-semibold text-foreground",children:t("import.title",{defaultValue:"导入实例"})}),s.jsx("p",{className:"text-sm text-muted mt-0.5",children:t("import.subtitle",{defaultValue:"从文件导入 OpenClaw 实例"})})]}),s.jsx(Ls,{onClose:()=>Ae("/instances/new"),showToast:G})]}):s.jsxs("div",{className:"p-6 2xl:px-6 2xl:py-4 max-w-4xl xl:max-w-5xl 2xl:max-w-none mx-auto",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h1",{className:"text-lg font-semibold text-foreground",children:t("title")}),s.jsx("p",{className:"text-sm text-muted mt-0.5",children:t("subtitle")})]}),s.jsxs("form",{onSubmit:ms,className:"space-y-5",children:[pt&&s.jsx("div",{className:"bg-red-500/10 border border-red-500/20 text-red-400 text-sm rounded-lg px-3 py-2.5",children:pt}),s.jsxs("div",{className:"bg-card border border-[var(--border)] rounded-xl p-6 space-y-5",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("kind.label")}),s.jsx("div",{className:"overflow-x-auto pb-1",children:s.jsx("div",{className:"inline-flex min-w-full rounded-xl border border-[var(--border)] bg-[var(--input-bg)] p-1 gap-1 flex-nowrap",children:rt.map(e=>{const o=r===e.id;return s.jsxs("button",{type:"button",onClick:()=>ds(e.id),className:`flex min-w-[140px] flex-1 items-center justify-center gap-2 rounded-lg px-4 py-2.5 text-sm font-medium transition-all ${o?"bg-[#0066FF] text-white shadow-[0_8px_24px_rgba(0,102,255,0.24)]":"text-muted hover:bg-[var(--card-hover)] hover:text-foreground"}`,children:[e.iconImage?s.jsx("img",{src:e.iconImage,alt:"","aria-hidden":"true",className:"h-5 w-5 object-contain"}):s.jsx("span",{className:"text-base leading-none",children:e.icon}),s.jsx("span",{children:t(e.labelKey)})]},e.id)})})}),s.jsx("p",{className:"text-xs text-muted mt-2 leading-5",children:t(((Ft=rt.find(e=>e.id===r))==null?void 0:Ft.descKey)||"appDesc.openclaw")})]}),(r==="openclaw"||r==="hermes")&&ps(),(r==="ollama"||r==="custom")&&fs(),r!=="ollama"&&s.jsx(s.Fragment,{children:s.jsxs("div",{className:"grid gap-4 lg:grid-cols-[1.1fr_0.9fr]",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("name.label")}),s.jsx("input",{type:"text",value:k,onChange:e=>is(e.target.value),placeholder:t("name.placeholder"),className:Re,autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("id.label")}),s.jsx("input",{type:"text",value:D,onChange:e=>{S(""),ze(e.target.value),st(!0)},placeholder:t("id.placeholder"),className:`${Re} font-mono text-[13px]`}),s.jsx("p",{className:"text-xs text-muted mt-1",children:k&&!D?s.jsx("span",{className:"text-amber-400",children:t("id.invalid")}):t("id.hint")})]})]})})]}),ue&&s.jsx("p",{className:"text-xs text-amber-400",children:ue}),s.jsx("div",{className:"flex flex-col gap-3",children:s.jsx("button",{type:"submit",disabled:mt||r!=="ollama"&&(!M||!oe)||!!Le||!!ue||r==="ollama"&&!p,className:"w-full bg-[#0066FF] text-white rounded-md py-2.5 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 disabled:cursor-not-allowed transition-all duration-200 shadow-[0_0_20px_rgba(0,102,255,0.3)] hover:shadow-[0_0_28px_rgba(0,102,255,0.45)]",children:ue?t("install.installing",{defaultValue:"安装中..."}):mt?s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx("span",{className:"w-3.5 h-3.5 border-2 border-white/30 border-t-white rounded-full animate-spin"}),d.action==="uninstall"?t("uninstall.loading",{defaultValue:"卸载中"}):t("loading")]}):r==="ollama"&&B==="installed"?t("uninstall.submit",{defaultValue:"卸载 Ollama"}):t("submit")})}),r==="ollama"&&xt("ollama",be),r==="custom"&&xt("custom",le)]}),Z&&s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm p-4",onClick:gt,children:s.jsxs("div",{className:"w-full max-w-md rounded-xl border border-[var(--border)] bg-background p-6 shadow-2xl space-y-4",onClick:e=>e.stopPropagation(),children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-base font-semibold text-foreground",children:Z.action==="uninstall"?t("sudoDialog.uninstallTitle",{defaultValue:"输入 sudo 密码以继续卸载 Ollama"}):t("sudoDialog.title",{defaultValue:"输入 sudo 密码以继续安装应用"})}),s.jsx("p",{className:"mt-1 text-xs text-muted leading-relaxed",children:Z.action==="uninstall"?t("sudoDialog.uninstallBody",{defaultValue:"当前卸载步骤需要 sudo 提权。密码只会用于这次卸载请求,不会写入应用配置或任务日志。"}):t("sudoDialog.body",{defaultValue:"当前安装步骤需要 sudo 提权。密码只会用于这次安装请求,不会写入应用配置或任务日志。"})})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("sudoDialog.passwordLabel",{defaultValue:"sudo 密码"})}),s.jsx("input",{type:"password",value:_e,onChange:e=>{ee(e.target.value),q("")},placeholder:t("sudoDialog.passwordPlaceholder",{defaultValue:"输入当前用户的 sudo 密码"}),className:Re,disabled:Y,autoFocus:!0}),Ze&&s.jsx("p",{className:"mt-2 text-xs text-red-400",children:Ze})]}),s.jsxs("div",{className:"flex items-center justify-end gap-2 pt-1",children:[s.jsx("button",{type:"button",onClick:gt,disabled:Y,className:"px-3 py-1.5 text-xs rounded-md border border-[var(--border)] text-muted hover:bg-[var(--card-hover)] hover:text-foreground transition-colors",children:t("sudoDialog.cancel",{defaultValue:"取消"})}),s.jsx("button",{type:"button",onClick:cs,disabled:Y,className:"px-3 py-1.5 text-xs rounded-md bg-[#0066FF] text-white hover:bg-[#0066FF]/90 transition-colors",children:Y?t("sudoDialog.verifying",{defaultValue:"验证中..."}):Z.action==="uninstall"?t("sudoDialog.uninstallConfirm",{defaultValue:"继续卸载"}):t("sudoDialog.confirm",{defaultValue:"继续安装"})})]})]})})]})}export{aa as default};
|
package/node_modules/jishushell-panel/output/public/assets/ProviderRecommendations-DIAXxesl.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,a3 as m,aD as c}from"./index-CCkaIEjn.js";import{R as x}from"./ApiKeyField-D1i7zWXR.js";import{u as p}from"./vendor-i18n-DqPtOicc.js";function h({title:s,description:t,apiKeyHint:o,selectedProviderId:d,onSelectProvider:n}){const{t:i}=p("instance"),l=(r,a)=>{n(r),window.open(a,"_blank","noopener,noreferrer")};return e.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--input-bg)]/40 p-3",children:[e.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-[#0066FF]",children:s}),e.jsx("p",{className:"mt-1 text-xs leading-5 text-muted",children:t}),e.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:x.map(r=>{const a=r.providerId===d;return e.jsxs("button",{type:"button","aria-pressed":a,onClick:()=>l(r.providerId,r.purchaseUrl),className:["inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs font-medium transition-all",a?"border-[#0066FF]/50 bg-[#0066FF]/12 text-[#0066FF]":"border-[var(--border)] bg-background text-foreground hover:border-[#0066FF]/40 hover:bg-[#0066FF]/5"].join(" "),children:[e.jsx("span",{children:i(`recommendedProviderLabel.${r.providerId}`,{defaultValue:r.label})}),e.jsx(m,{className:"h-3 w-3"})]},r.providerId)})}),e.jsxs("div",{className:"mt-3 flex items-start gap-2 rounded-md border border-amber-500/20 bg-amber-500/10 px-3 py-2.5",children:[e.jsx(c,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-400"}),e.jsx("p",{className:"text-[11px] leading-5 text-muted",children:o})]})]})}export{h as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{au as ye,av as Ne,o as Fe,K as we,j as e,I as Me,a as ke,aw as Se,s as Ae,ax as Ce,p as Ie,ay as Ke,az as Ue,aA as $e,aB as Pe,aC as Le}from"./index-CCkaIEjn.js";import{r as d}from"./vendor-react-DW5juQin.js";import{P as He}from"./ProviderRecommendations-DIAXxesl.js";import{P as I,A as te}from"./ApiKeyField-D1i7zWXR.js";import{u as q}from"./vendor-i18n-DqPtOicc.js";function Ee({showToast:t}){var se;const{t:s}=q("settings"),{t:F}=q("instance"),{t:w}=q("common"),[b,M]=d.useState([]),[E,f]=d.useState(!0),[x,B]=d.useState(null),[K,_]=d.useState(!1),[j,U]=d.useState(!1),[D,z]=d.useState(null),[y,N]=d.useState([]),[n,r]=d.useState(""),[m,$]=d.useState(""),[c,V]=d.useState(""),[W,k]=d.useState(""),[O,Y]=d.useState(""),[Z,T]=d.useState(!1),[S,P]=d.useState([]),[de,re]=d.useState("idle"),ne={name:"",baseUrl:"",api:"openai-completions",apiKey:"",authHeader:"",selectedModelId:""},[i,v]=d.useState(ne),[ie,oe]=d.useState("idle"),A=d.useCallback(()=>{f(!0),Ce().then(M).catch(()=>M([])).finally(()=>f(!1))},[]);d.useEffect(()=>{A()},[A]);const C="w-full bg-[var(--input-bg)] border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground placeholder-[var(--muted)] focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60 focus:border-[#0066FF]/60 transition-colors duration-200",R="w-full bg-background border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60 focus:border-[#0066FF]/60 transition-colors duration-200 appearance-none",ce=()=>{B(null),r(""),$(""),V(""),k(""),Y(""),P([]),N([]),_(!0)},me=l=>{_(!1),N([]),v({name:l.name||l.id,baseUrl:l.baseUrl,api:l.api,apiKey:"",authHeader:l.authHeader||"",selectedModelId:l.selectedModelId||""}),B(l.id)},G=()=>{_(!1),B(null),N([]),r(""),$(""),V(""),k(""),Y(""),P([])},ee=d.useCallback(l=>{const a=I.find(h=>h.id===l);r(l),V((a==null?void 0:a.baseUrl)||""),k(""),P([])},[]),ue=async()=>{var ae;if(!n){t(s("llm.presetRequired"),"error");return}const l=I.find(u=>u.id===n),a=l.local===!0;if(!a&&!m.trim()){t(s("llm.apiKeyRequired"),"error");return}if(a&&!c.trim()&&!l.baseUrl){t(s("llm.baseUrlRequired"),"error");return}const h=b.map(u=>u.id),L=O.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");let H=L?`${n}-${L}`:n;if(h.includes(H)){if(L){t(s("llm.aliasConflict"),"error");return}let u=2;for(;h.includes(`${n}-${u}`);)u++;H=`${n}-${u}`}const Q=O.trim()?`${l.label} (${O.trim()})`:l.label,p=S.length>0?S.map(u=>({id:u.id,name:u.id,contextWindow:0})):l.models,X=W||((ae=p[0])==null?void 0:ae.id)||"";!a&&m.trim()&&de!=="valid"&&t(w("llm.saveWithoutValidation"),"error"),U(!0);try{await Ke({id:H,name:Q,baseUrl:(a?c.trim():void 0)||l.baseUrl,api:l.api,apiKey:m||void 0,authHeader:l.authHeader?"x-api-key":void 0,models:p,selectedModelId:X}),t(s("llm.added"),"success"),G(),A()}catch(u){t(u.message||s("llm.saveFailed"),"error")}finally{U(!1)}},xe=async(l,a={})=>{if(!n)return;const h=I.find(p=>p.id===n),L=h.authHeader?"x-api-key":"Authorization",H=h.local===!0&&c.trim()?c.trim():h.baseUrl,Q=m;T(!0);try{const{models:p}=await Ie(H,Q,L,h.id,h.api);P(p),p.length>0&&k(X=>X||p[0].id),a.silentSuccess||t(s("llm.modelsFetched",{count:p.length}),"success")}catch(p){t(p.message||s("llm.modelsFetchFailed"),"error")}finally{T(!1)}},pe=async()=>{if(x){if(!i.baseUrl.trim()){t(s("llm.baseUrlRequired"),"error");return}i.apiKey.trim()&&ie!=="valid"&&t(w("llm.saveWithoutValidation"),"error"),U(!0);try{await Ue(x,{name:i.name||x,baseUrl:i.baseUrl.trim(),api:i.api,apiKey:i.apiKey||void 0,authHeader:i.authHeader||void 0,selectedModelId:i.selectedModelId||void 0}),t(s("llm.updated"),"success"),G(),A()}catch(l){t(l.message||s("llm.saveFailed"),"error")}finally{U(!1)}}},he=async l=>{if(window.confirm(s("llm.confirmDelete",{id:l})))try{await Le(l),t(s("llm.deleted"),"success"),A()}catch(a){t(a.message||s("llm.deleteFailed"),"error")}},be=async l=>{try{await $e(l),t(s("llm.defaultSet",{id:l}),"success"),A()}catch(a){t(a.message,"error")}},ve=async l=>{z(l);try{const{models:a}=await Pe(l);N(a),t(s("llm.modelsFetched",{count:a.length}),"success")}catch(a){t(a.message||s("llm.modelsFetchFailed"),"error")}finally{z(null)}},ge=[...new Set(I.map(l=>l.group))],o=I.find(l=>l.id===n),le=(o==null?void 0:o.local)===!0,J=S.length>0?S.map(l=>({id:l.id,label:l.id})):((o==null?void 0:o.models)||[]).map(l=>({id:l.id,label:`${l.name} (${Math.round(l.contextWindow/1e3)}K)`})),fe=e.jsxs("div",{className:"mt-3 border border-[var(--border)] rounded-lg p-4 space-y-3 bg-[var(--input-bg)]/40",children:[e.jsx("h3",{className:"text-sm font-medium",children:s("llm.addTitle")}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(He,{title:s("llm.recommendedTitle"),description:s("llm.recommendedDescription"),apiKeyHint:s("llm.apiKeyHint"),selectedProviderId:n,onSelectProvider:ee}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted mb-1",children:s("llm.presetLabel")}),e.jsxs("select",{value:n,onChange:l=>ee(l.target.value),className:R,children:[e.jsx("option",{value:"",children:s("llm.presetPlaceholder")}),ge.map(l=>e.jsx("optgroup",{label:F(`configForm.providerGroup.${l}`,{defaultValue:l}),children:I.filter(a=>a.group===l).map(a=>e.jsx("option",{value:a.id,children:F(`configForm.providerLabel.${a.id}`,{defaultValue:a.label})},a.id))},l))]})]}),n&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted mb-1",children:s("llm.alias")}),e.jsx("input",{value:O,onChange:l=>Y(l.target.value),placeholder:s("llm.aliasPlaceholder"),className:C}),e.jsx("p",{className:"text-[11px] text-muted mt-0.5",children:s("llm.aliasHint")})]}),n&&!le&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted mb-1",children:s("llm.fieldApiKey")}),e.jsx(te,{value:m,saved:!1,onChange:l=>$(l),baseUrl:(o==null?void 0:o.local)===!0&&c.trim()?c.trim():(o==null?void 0:o.baseUrl)||"",api:(o==null?void 0:o.api)||"",authHeader:o!=null&&o.authHeader?"x-api-key":void 0,providerId:n,placeholder:s("llm.apiKeyPlaceholder"),onModels:l=>{P(l),l.length>0&&k(a=>a||l[0].id)},onStateChange:re,selectedModelId:W})]}),n&&le&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted mb-1",children:s("llm.fieldBaseUrl")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{value:c,onChange:l=>V(l.target.value),className:`${C} flex-1`}),e.jsx("button",{type:"button",onClick:()=>{xe()},disabled:Z,className:"px-3 py-1.5 text-xs border border-[var(--border)] rounded-md hover:bg-[var(--input-bg)] disabled:opacity-40 transition-all whitespace-nowrap",children:s(Z?"llm.fetchingModels":"llm.fetchModels")})]})]}),n&&J.length>0&&e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs text-muted mb-1",children:[s("llm.fieldModel"),S.length>0&&e.jsxs("span",{className:"ml-1 text-green-500 text-[10px]",children:["(",S.length," ",s("llm.liveModels"),")"]})]}),e.jsx("select",{value:W||((se=J[0])==null?void 0:se.id)||"",onChange:l=>k(l.target.value),className:R,children:J.map(l=>e.jsx("option",{value:l.id,children:l.label},l.id))})]})]}),e.jsxs("div",{className:"flex gap-2 pt-1",children:[e.jsx("button",{onClick:ue,disabled:j,className:"px-4 py-1.5 bg-[#0066FF] text-white rounded-md text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all",children:s(j?"llm.saving":"llm.save")}),e.jsx("button",{onClick:G,className:"px-4 py-1.5 border border-[var(--border)] rounded-md text-sm hover:bg-[var(--input-bg)] transition-all",children:s("llm.cancel")})]})]}),g=b.find(l=>l.id===x),je=e.jsxs("div",{className:"mt-3 border border-[var(--border)] rounded-lg p-4 space-y-3 bg-[var(--input-bg)]/40",children:[e.jsx("h3",{className:"text-sm font-medium",children:s("llm.editTitle",{id:x})}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"col-span-2",children:[e.jsx("label",{className:"block text-xs text-muted mb-1",children:s("llm.fieldName")}),e.jsx("input",{value:i.name,onChange:l=>v(a=>({...a,name:l.target.value})),placeholder:s("llm.fieldNamePlaceholder"),className:C})]}),e.jsxs("div",{className:"col-span-2",children:[e.jsxs("label",{className:"block text-xs text-muted mb-1",children:[s("llm.fieldBaseUrl")," *"]}),e.jsx("input",{value:i.baseUrl,onChange:l=>v(a=>({...a,baseUrl:l.target.value})),placeholder:"https://api.openai.com",className:C})]}),e.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[e.jsx("label",{className:"block text-xs text-muted mb-1",children:s("llm.fieldApi")}),e.jsxs("select",{value:i.api,onChange:l=>v(a=>({...a,api:l.target.value})),className:R,children:[e.jsx("option",{value:"openai-completions",children:"OpenAI Completions"}),e.jsx("option",{value:"openai-responses",children:"OpenAI Responses"}),e.jsx("option",{value:"anthropic-messages",children:"Anthropic Messages"}),e.jsx("option",{value:"google-generative-ai",children:"Google Generative AI"}),e.jsx("option",{value:"ollama",children:"Ollama"})]})]}),e.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[e.jsx("label",{className:"block text-xs text-muted mb-1",children:s("llm.fieldAuthHeader")}),e.jsx("input",{value:i.authHeader,onChange:l=>v(a=>({...a,authHeader:l.target.value})),placeholder:"Authorization",className:C})]}),e.jsxs("div",{className:"col-span-2",children:[e.jsxs("label",{className:"block text-xs text-muted mb-1",children:[s("llm.fieldApiKey"),g!=null&&g.hasApiKey?` (${s("llm.apiKeyConfigured")})`:""]}),e.jsx(te,{value:i.apiKey,saved:!!(g!=null&&g.hasApiKey),onChange:l=>v(a=>({...a,apiKey:l})),baseUrl:i.baseUrl.trim(),api:i.api,authHeader:i.authHeader||void 0,providerId:x||void 0,placeholder:g!=null&&g.hasApiKey?s("llm.apiKeyLeaveBlank"):s("llm.apiKeyPlaceholder"),onModels:l=>{N(l),l.length>0&&v(a=>({...a,selectedModelId:a.selectedModelId||l[0].id}))},onStateChange:oe,selectedModelId:i.selectedModelId})]}),e.jsxs("div",{className:"col-span-2",children:[e.jsx("label",{className:"block text-xs text-muted mb-1",children:s("llm.fieldModel")}),y.length>0?e.jsxs("select",{value:i.selectedModelId,onChange:l=>v(a=>({...a,selectedModelId:l.target.value})),className:R,children:[e.jsx("option",{value:"",children:s("llm.noModel")}),y.map(l=>e.jsx("option",{value:l.id,children:l.id},l.id))]}):e.jsx("input",{value:i.selectedModelId,onChange:l=>v(a=>({...a,selectedModelId:l.target.value})),placeholder:"gpt-4o",className:C})]})]}),e.jsxs("div",{className:"flex gap-2 pt-1",children:[e.jsx("button",{onClick:pe,disabled:j,className:"px-4 py-1.5 bg-[#0066FF] text-white rounded-md text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all",children:s(j?"llm.saving":"llm.save")}),e.jsx("button",{onClick:G,className:"px-4 py-1.5 border border-[var(--border)] rounded-md text-sm hover:bg-[var(--input-bg)] transition-all",children:s("llm.cancel")})]})]});return e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-medium text-foreground",children:s("llm.title")}),e.jsx("p",{className:"text-xs text-muted mt-0.5",children:s("llm.desc")})]}),!K&&!x&&e.jsxs("button",{onClick:ce,className:"px-3 py-1.5 bg-[#0066FF] text-white rounded-md text-xs font-medium hover:bg-[#0066FF]/90 transition-all",children:["+ ",s("llm.add")]})]}),K&&fe,E?e.jsx("p",{className:"text-sm text-muted py-3",children:s("llm.loading")}):b.length===0&&!K?e.jsx("p",{className:"text-sm text-muted py-3",children:s("llm.empty")}):e.jsx("div",{className:"space-y-2 mt-2",children:b.map(l=>e.jsxs("div",{className:`border rounded-lg p-3 transition-all ${l.isDefault?"border-[#0066FF]/40 bg-[#0066FF]/5":"border-[var(--border)]"}`,children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium truncate",children:l.name||l.id}),l.isDefault&&e.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-[#0066FF]/15 text-[#0066FF] rounded font-medium",children:s("llm.default")}),e.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-[var(--input-bg)] text-muted rounded",children:l.api}),l.hasApiKey&&e.jsx("span",{className:"text-[10px] text-green-500",children:"🔑"})]}),e.jsx("p",{className:"text-xs text-muted truncate mt-0.5",children:l.baseUrl}),l.selectedModelId&&e.jsxs("p",{className:"text-xs text-muted mt-0.5",children:[s("llm.model"),": ",e.jsx("span",{className:"font-mono",children:l.selectedModelId})]})]}),e.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[!l.isDefault&&e.jsx("button",{onClick:()=>be(l.id),className:"px-2 py-1 text-xs border border-[var(--border)] rounded hover:bg-[var(--input-bg)] transition-all",children:s("llm.setDefault")}),e.jsx("button",{onClick:()=>{me(l),ve(l.id)},disabled:D===l.id,className:"px-2 py-1 text-xs border border-[var(--border)] rounded hover:bg-[var(--input-bg)] transition-all disabled:opacity-40",children:D===l.id?"...":s("llm.edit")}),e.jsx("button",{onClick:()=>he(l.id),disabled:b.length<=1,title:b.length<=1?s("llm.deleteLastForbidden"):void 0,className:"px-2 py-1 text-xs border border-red-500/30 text-red-400 rounded hover:bg-red-500/10 transition-all disabled:opacity-30 disabled:cursor-not-allowed disabled:pointer-events-none",children:s("llm.delete")})]})]}),x===l.id&&je,D===null&&y.length>0&&x!==l.id&&e.jsxs("div",{className:"mt-2 pt-2 border-t border-[var(--border)]",children:[e.jsxs("p",{className:"text-xs text-muted mb-1",children:[s("llm.availableModels")," (",y.length,")"]}),e.jsx("div",{className:"flex flex-wrap gap-1 max-h-20 overflow-y-auto",children:y.map(a=>e.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 bg-[var(--input-bg)] rounded",children:a.id},a.id))})]})]},l.id))})]})}function Re(){const{t}=q("settings"),{system:s,showToast:F}=ye(),[w,b]=d.useState(""),[M,E]=d.useState(""),[f,x]=d.useState(!1),[B,K]=d.useState([]),[_,j]=d.useState(!1),[U,D]=d.useState(!1),[z,y]=d.useState(!1);d.useEffect(()=>{j(!0),Ne().then(K).catch(()=>{}).finally(()=>j(!1)),Fe().then(async r=>{try{const m=await Promise.all(r.map(c=>we(c.id).catch(()=>({enabled:!1})))),$=r.length>0&&m.every(c=>c==null?void 0:c.enabled);y($)}catch{}}).catch(()=>{})},[]);const N=async r=>{r.preventDefault();try{const m=await Se(w,M);m.token&&Ae(m.token),F(t("password.updated"),"success"),b(""),E("")}catch(m){F(m.message||t("password.failed"),"error")}},n="w-full bg-[var(--input-bg)] border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground placeholder-[var(--muted)] focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60 focus:border-[#0066FF]/60 transition-colors duration-200";return e.jsxs("div",{className:"p-6 2xl:px-6 2xl:py-4 max-w-4xl xl:max-w-5xl 2xl:max-w-none mx-auto",children:[e.jsxs("div",{className:"mb-5",children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:t("title")}),e.jsx("p",{className:"text-sm text-muted mt-0.5",children:t("subtitle")})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl p-4",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-medium text-foreground",children:t("proxy.title")}),e.jsx("p",{className:"text-sm text-muted mt-1",children:t("proxy.desc")})]}),e.jsx("div",{className:"mt-3 bg-red-500/10 border border-red-500/20 text-red-400 text-sm rounded-lg px-4 py-3",children:t("proxy.status")})]}),e.jsx(Ee,{showToast:F}),e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl p-4",children:[e.jsx("h2",{className:"text-sm font-medium text-foreground mb-3",children:t("password.title")}),e.jsxs("form",{onSubmit:N,className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-muted mb-1.5",children:t("password.current")}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:f?"text":"password",value:w,onChange:r=>b(r.target.value),placeholder:t("password.currentPlaceholder"),className:`${n} pr-9`}),e.jsx("button",{type:"button",onClick:()=>x(!f),"aria-label":t("common:action.togglePassword"),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-muted hover:text-foreground transition-colors",children:f?e.jsx(Me,{className:"w-3.5 h-3.5"}):e.jsx(ke,{className:"w-3.5 h-3.5"})})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-muted mb-1.5",children:t("password.new")}),e.jsx("input",{type:f?"text":"password",value:M,onChange:r=>E(r.target.value),placeholder:t("password.newPlaceholder"),className:n})]}),e.jsx("button",{type:"submit",disabled:!w||M.length<8,className:"px-4 py-2 bg-[#0066FF] text-white rounded-md text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all duration-200",children:t("password.submit")})]})]}),s&&e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl p-4",children:[e.jsx("h2",{className:"text-sm font-medium text-foreground mb-3",children:t("system.title")}),e.jsxs("div",{className:"space-y-3",children:[[{label:t("system.cpuUsage"),value:`${s.cpu_percent}%`,percent:s.cpu_percent,warn:s.cpu_percent>90,color:"bg-[#0066FF]"},{label:t("system.memory"),value:`${s.memory.used_mb}MB / ${s.memory.total_mb}MB (${s.memory.percent}%)`,percent:s.memory.percent,warn:!1,color:"bg-[#00D4AA]"},{label:t("system.disk"),value:`${s.disk.used_gb}GB / ${s.disk.total_gb}GB (${s.disk.percent}%)`,percent:s.disk.percent,warn:s.disk.percent>90,color:"bg-[#0066FF]"}].map(r=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-sm mb-1.5",children:[e.jsx("span",{className:"text-muted",children:r.label}),e.jsx("span",{className:`font-medium font-mono text-[13px] ${r.warn?"text-red-400":"text-foreground"}`,children:r.value})]}),e.jsx("div",{className:"w-full bg-[var(--input-bg)] rounded-full h-1.5",children:e.jsx("div",{className:`h-1.5 rounded-full transition-all duration-500 ${r.warn?"bg-red-500":r.color}`,style:{width:`${r.percent}%`}})})]},r.label)),s.temperature&&e.jsxs("div",{className:"flex justify-between text-sm pt-2 border-t border-[var(--border)]",children:[e.jsx("span",{className:"text-muted",children:t("system.cpuTemp")}),e.jsxs("span",{className:"font-medium font-mono text-[13px] text-foreground",children:[s.temperature,"°C"]})]})]})]}),e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl p-4",children:[e.jsx("h2",{className:"text-sm font-medium text-foreground mb-2",children:t("about.title")}),e.jsxs("div",{className:"text-sm text-muted space-y-1",children:[e.jsxs("p",{children:[t("about.coreVersion"),": ",e.jsx("span",{className:"font-mono",children:(s==null?void 0:s.core_version)||"-"})]}),e.jsxs("p",{children:[t("about.panelVersion"),": ",e.jsx("span",{className:"font-mono",children:"0.6.5"})]})]})]})]})]})}export{Re as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as re,d as we,p as Fe,j as e,L as Se,T as _e,e as ne,i as E,f as Ce,r as Ie,h as Me,u as Te}from"./index-CCkaIEjn.js";import{r as c}from"./vendor-react-DW5juQin.js";import{P as y,A as Le}from"./ApiKeyField-D1i7zWXR.js";import{u as Pe}from"./registry-B2ZQZXWL.js";import{P as Re}from"./ProviderRecommendations-DIAXxesl.js";import{u as oe}from"./vendor-i18n-DqPtOicc.js";function ie(i,p){var n,j;if(!i)return!1;const t=(n=i.runtimes)==null?void 0:n[p];return t?!!t.installed&&!!t.imageReady:p==="openclaw"?!!((j=i.openclaw)!=null&&j.installed)&&!!i.runtimeImageReady:!1}function Ae(i,p){var n;const t=(n=i==null?void 0:i.runtimes)==null?void 0:n[p];return t&&typeof t.required=="boolean"?t.required:p==="openclaw"}function ae(i,p){if(!i)return!1;const t=p.filter(n=>Ae(i,n.agentType));return t.length===0?!0:t.every(n=>ie(i,n.agentType))}const C=[{id:"check",label:"环境检测"},{id:"node",label:"Node.js"},{id:"docker",label:"Docker"},{id:"nomad",label:"Nomad"},{id:"openclaw",label:"OpenClaw"},{id:"provider",label:"模型配置"},{id:"done",label:"完成"}];function Ue({ok:i}){return i?e.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-emerald-500 shadow-[0_0_6px_rgba(16,185,129,0.7)]"}):e.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-[var(--border)]"})}function A({dep:i,label:p,required:t,extra:n}){const{t:j}=oe("setup"),x=i.needsUpgrade;return e.jsxs("div",{className:"flex items-center justify-between py-2.5 border-b border-[var(--border)] last:border-0",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[x?e.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-amber-400 shadow-[0_0_6px_rgba(251,191,36,0.6)]"}):e.jsx(Ue,{ok:i.installed}),e.jsx("span",{className:"text-sm text-foreground",children:p||i.name}),x&&e.jsx("span",{className:"text-xs text-amber-400",children:j("versionTooOld")}),t&&!i.installed&&!x&&e.jsx("span",{className:"text-xs text-red-400",children:j("required")})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[n,e.jsx("span",{className:"text-xs text-muted font-mono",children:i.installed?i.version||"installed":"not installed"})]})]})}function I(){return e.jsx("span",{className:"w-3.5 h-3.5 border-2 border-white/30 border-t-white rounded-full animate-spin"})}function de(i){return/失败|error|denied|forbidden|unauthorized/i.test(i)?"error":/完成|已就绪|已启动|已存在|成功|built|installed/i.test(i)?"success":/正在|等待|下载|安装|构建|启动|升级|progress|exporting|transferring/i.test(i)?"progress":"info"}function De(i){switch(i){case"progress":return{dot:"bg-sky-400 shadow-[0_0_8px_rgba(56,189,248,0.55)]",text:"text-sky-100"};case"success":return{dot:"bg-emerald-400 shadow-[0_0_8px_rgba(52,211,153,0.55)]",text:"text-emerald-100"};case"error":return{dot:"bg-red-400 shadow-[0_0_8px_rgba(248,113,113,0.55)]",text:"text-red-200"};default:return{dot:"bg-slate-500 shadow-[0_0_8px_rgba(148,163,184,0.35)]",text:"text-slate-200/90"}}}function Ve({onDone:i}){var Z,ee,te,se;const{runtimes:p}=Pe(),{t}=oe(["setup","common","instance"]),[n,j]=c.useState(null),[x,U]=c.useState("check"),[f,k]=c.useState(null),[q,$]=c.useState([]),[M,v]=c.useState(""),[H,K]=c.useState(!1),[b,le]=c.useState(""),[w,ce]=c.useState(""),[D,T]=c.useState(""),[B,V]=c.useState(!1),[F,_]=c.useState([]),[z,O]=c.useState(!1),[S,W]=c.useState(""),[ue,me]=c.useState("idle"),G=c.useRef(new Set),J=c.useCallback((r,s)=>{if(G.current.has(r))return;G.current.add(r);const a=s==="openclaw-docker"?t("setup:dockerImageBuild"):s==="docker"?t("setup:dockerInstall"):s==="openclaw"?t("setup:openclawInstall"):s;k(s),g(t("setup:resumeTask",{label:a}),"progress"),Q(r,a).then(()=>{h(!0)}).catch(o=>{v(o.message||t("setup:taskFailed"))}).finally(()=>{k(null)})},[]),h=c.useCallback((r=!1)=>{re().then(s=>{var a;if(j(s),(a=s.runningTasks)!=null&&a.length)for(const o of s.runningTasks)J(o.id,o.name);if(!r&&s.ready){U("provider");return}}).catch(()=>{})},[i,J]);c.useEffect(()=>{h()},[h]),c.useEffect(()=>{var s,a;if(x!=="nomad"||!((s=n==null?void 0:n.nomad)!=null&&s.installed)||(a=n==null?void 0:n.nomad)!=null&&a.running)return;const r=setInterval(()=>{h(!0)},3e3);return()=>clearInterval(r)},[x,(Z=n==null?void 0:n.nomad)==null?void 0:Z.installed,(ee=n==null?void 0:n.nomad)==null?void 0:ee.running,h]);const g=(r,s=de(r))=>$(a=>[...a,{message:r,tone:s}].slice(-200)),xe=(r,s)=>s.type==="progress"&&typeof s.progress=="number"?`${r}: ${s.message} [${s.progress}%]`:s.type==="done"?`${r}: ${s.message}`:s.type==="error"?t("setup:taskErrorPrefix",{label:r,message:s.message}):s.message,Q=async(r,s)=>{let a=0,o=0,u=t("setup:taskCompleted",{label:s});const d=Date.now()+30*60*1e3;for(;Date.now()<d;){try{const m=await we(r);o=0;const ye=m.events.slice(a);a=m.events.length;for(const N of ye){const ke=N.type==="done"?"success":N.type==="error"?"error":N.type==="progress"?"progress":de(N.message);g(xe(s,N),ke),N.message&&(u=N.message)}if(m.status==="done")return u;if(m.status==="error")throw new Error(u)}catch(m){if(o+=1,o>=5)throw new Error((m==null?void 0:m.message)||t("setup:taskStatusFailed",{label:s}))}const l=Math.min(1e3+a*200,3e3);await new Promise(m=>setTimeout(m,l))}throw new Error(t("setup:taskTimeout",{label:s}))},L=async(r,s,a)=>{k(r),v(""),g(t("setup:installing",{label:s}),"progress");try{const o=await a();let u=o.message||t("setup:taskStarted",{label:s});return o!=null&&o.taskId?u=await Q(o.taskId,s):g(`${s}: ${u}`,"success"),h(!0),!0}catch(o){const u=o.message||t("setup:defaultInstallFailed");return g(t("setup:installFailed",{label:s,error:u}),"error"),v(u),!1}finally{k(null)}},X=async()=>{await L("node","Node.js",()=>Te())},pe=async()=>{await L("docker","Docker",()=>E("docker"))},[be,he]=c.useState(!1),ge=async r=>{const s=p.find(o=>o.agentType===r);if(!s)return;s.installHint&&g(t(s.installHint),"info");const a=await L(`runtime-${r}`,t(s.installLabel),()=>Me(r));r==="openclaw"&&a&&he(!0),h(!0)},fe=async()=>{var s;if(await L("nomad","Nomad",()=>E("nomad"))){g(t("setup:configuringNomadSystemd"),"progress"),k("nomad-systemd");try{await E("nomad-systemd"),g(t("setup:nomadServiceStarted"),"success")}catch{try{await Ce("nomad"),g(t("setup:nomadStarted"),"success")}catch(a){g(t("setup:nomadStartFailed",{error:a.message}),"error"),v(a.message)}}k(null),g(t("setup:waitingNomad"),"progress");for(let a=0;a<10;a++){await new Promise(u=>setTimeout(u,2e3));const o=await re();if((s=o.nomad)!=null&&s.running){j(o),g(t("setup:nomadReady"),"success");return}}h(!0)}},P=!!((te=n==null?void 0:n.node)!=null&&te.installed)&&!((se=n==null?void 0:n.node)!=null&&se.needsUpgrade),R=async()=>{var o,u,d,l;const r=C.findIndex(m=>m.id===x);if(r>=C.length-1)return;let s=r+1;for(;s<C.length-1;){const m=C[s].id;if(m==="node"&&P){s++;continue}if(m==="docker"&&((o=n==null?void 0:n.docker)!=null&&o.installed)&&((u=n==null?void 0:n.docker)!=null&&u.running)){s++;continue}if(m==="nomad"&&((d=n==null?void 0:n.nomad)!=null&&d.installed)&&((l=n==null?void 0:n.nomad)!=null&&l.running)){s++;continue}if(m==="openclaw"&&ae(n,p)){s++;continue}break}const a=C[s].id;if(v(""),$([]),a==="done"){U("done"),K(!0);try{await Ie({installNomad:!1,buildDockerImage:!1})}catch(m){v(m.message||t("setup:configWriteFailed"))}finally{K(!1)}}else U(a)},ve=r=>{if(!n)return!1;switch(r){case"check":return P;case"node":return P;case"docker":return n.docker.installed&&n.docker.running;case"nomad":return n.nomad.installed&&n.nomad.running;case"openclaw":return ae(n,p)||be&&n.openclaw.installed&&p.length===1;case"provider":return!0;case"done":return!0;default:return!1}},Y=c.useCallback(r=>{le(r),T(""),_([]);const s=y.find(a=>a.id===r);W((s==null?void 0:s.baseUrl)||"")},[]),je=c.useCallback(async r=>{if(!b)return;const s=y.find(l=>l.id===b);if(!s)return;const o=s.local===!0&&S.trim()?S.trim():s.baseUrl,u=s.authHeader?"x-api-key":"Authorization",d=r??w;O(!0),v("");try{const{models:l}=await Fe(o,d,u,s.id,s.api);_(l),l.length>0&&T(l[0].id)}catch(l){v(l.message||t("setup:provider.fetchModelsFailed"))}finally{O(!1)}},[w,S,b,t]),Ne=async()=>{var d;if(!b)return!1;const r=y.find(l=>l.id===b);if(!r)return!1;const s=r.local===!0,a=s&&S.trim()?S.trim():r.baseUrl;if(s&&!a)return v(t("setup:provider.baseUrlRequired",{defaultValue:"Base URL is required"})),!1;const o=F.length>0?F.map(l=>({id:l.id,name:l.name||l.id,contextWindow:128e3})):r.models,u=D||((d=o[0])==null?void 0:d.id)||"";V(!0),!s&&w.trim()&&ue!=="valid"&&v(t("common:llm.saveWithoutValidation"));try{return await ne({providerId:r.id,baseUrl:a,api:r.api,authHeader:r.authHeader?"x-api-key":void 0,models:o,selectedModelId:u,apiKey:w||""}),!0}catch(l){return v(l.message||t("setup:provider.saveFailed")),!1}finally{V(!1)}};return n?e.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-background relative overflow-hidden",children:[e.jsx("div",{className:"grid-bg absolute inset-0 pointer-events-none"}),e.jsx("div",{className:"absolute top-1/3 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[400px] rounded-full bg-[#0066FF]/[0.06] blur-[100px] pointer-events-none"}),e.jsx("div",{className:"absolute left-4 bottom-4 z-20",children:e.jsx(Se,{className:"bg-card/80 backdrop-blur-sm"})}),e.jsxs("div",{className:"w-full max-w-lg relative z-10",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx(_e,{className:"w-48 h-48 mx-auto mb-4 object-contain"}),e.jsx("p",{className:"text-sm text-muted mt-1",children:t("setup:title")})]}),e.jsxs("div",{className:"bg-card border border-[var(--border)] rounded-xl p-6 backdrop-blur-sm",children:[x==="check"&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-medium text-foreground mb-1",children:t("setup:check.title")}),e.jsx("p",{className:"text-sm text-muted mb-4",children:t("setup:check.desc")}),e.jsx("p",{className:"text-xs text-muted mb-1.5 font-medium",children:t("setup:check.requiredComponents")}),e.jsxs("div",{className:"bg-card rounded-md border border-[var(--border)] px-4",children:[e.jsx(A,{dep:n.node,label:"Node.js",required:!0,extra:n.node.needsUpgrade?e.jsx("button",{onClick:X,disabled:!!f,className:"text-xs bg-amber-500/20 text-amber-400 border border-amber-500/30 rounded px-2 py-0.5 hover:bg-amber-500/30 disabled:opacity-40 transition-colors duration-200",children:t(f==="node"?"setup:check.upgrading":"setup:check.upgrade")}):void 0}),e.jsx(A,{dep:n.docker,label:"Docker",required:!0}),e.jsx(A,{dep:n.nomad,label:"Nomad",required:!0}),e.jsx(A,{dep:n.openclaw,label:"OpenClaw",required:!0})]})]}),x==="node"&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-medium text-foreground mb-1",children:t("setup:node.title")}),e.jsx("p",{className:"text-sm text-muted mb-4",children:t("setup:node.desc")}),P?e.jsx("div",{className:"bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-sm rounded-md px-3 py-2.5",children:t("setup:node.ready",{version:n.node.version})}):n.hasSudo?e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"bg-amber-500/10 border border-amber-500/20 text-amber-400 text-sm rounded-md px-3 py-2.5",children:t("setup:node.currentVersion",{version:n.node.version})}),e.jsx("button",{onClick:X,disabled:!!f,className:"bg-[#0066FF] text-white rounded-md px-4 py-2 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all duration-200",children:f?e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx(I,{}),t("setup:node.upgrading")]}):t("setup:node.upgradeBtn")}),e.jsx("p",{className:"text-xs text-muted",children:t("setup:node.sudoRequired")})]}):e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"bg-amber-500/10 border border-amber-500/20 text-amber-400 text-sm rounded-md px-3 py-2.5",children:t("setup:node.noSudo",{version:n.node.version})}),e.jsxs("div",{className:"bg-card border border-[var(--border)] rounded-md p-3",children:[e.jsx("p",{className:"text-xs text-muted mb-1.5",children:t("setup:node.contactAdmin")}),e.jsx("code",{className:"text-xs text-foreground font-mono block whitespace-pre-wrap",children:"curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs"})]}),e.jsx("button",{onClick:()=>h(!0),className:"text-xs text-muted hover:text-foreground underline transition-colors duration-200",children:t("setup:node.refreshAfterInstall")})]})]}),x==="docker"&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-medium text-foreground mb-1",children:t("setup:docker.title")}),e.jsx("p",{className:"text-sm text-muted mb-4",children:t("setup:docker.desc")}),n.docker.installed&&n.docker.running?e.jsx("div",{className:"bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-sm rounded-md px-3 py-2.5",children:t("setup:docker.running",{version:n.docker.version})}):n.docker.installed&&!n.docker.running?e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"bg-amber-500/10 border border-amber-500/20 text-amber-400 text-sm rounded-md px-3 py-2.5",children:t("setup:docker.notRunning")}),e.jsx("div",{className:"bg-card border border-[var(--border)] rounded-md p-3",children:e.jsx("code",{className:"text-xs text-foreground font-mono block",children:/Mac|iPhone|iPad/i.test(navigator.userAgent)?"jishushell doctor --fix":"sudo systemctl start docker"})}),e.jsx("button",{onClick:()=>h(!0),className:"text-xs text-muted hover:text-foreground underline transition-colors duration-200",children:t("setup:docker.refreshAfterStart")})]}):/Mac|iPhone|iPad/i.test(navigator.userAgent)?e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-xs text-muted",children:t("setup:docker.macosColima")}),e.jsx("div",{className:"bg-card border border-[var(--border)] rounded-md p-3",children:e.jsx("code",{className:"text-xs text-foreground font-mono block",children:"jishushell doctor --fix"})}),e.jsx("button",{onClick:()=>h(!0),className:"text-xs text-muted hover:text-foreground underline transition-colors duration-200",children:t("setup:docker.refreshAfterInstall")})]}):n.hasSudo?e.jsxs("div",{className:"space-y-3",children:[e.jsx("button",{onClick:pe,disabled:!!f,className:"bg-[#0066FF] text-white rounded-md px-4 py-2 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all duration-200",children:f?e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx(I,{}),t("setup:docker.installing")]}):t("setup:docker.installBtn")}),e.jsx("p",{className:"text-xs text-muted",children:t("setup:docker.sudoRequired")})]}):e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"bg-amber-500/10 border border-amber-500/20 text-amber-400 text-sm rounded-md px-3 py-2.5",children:t("setup:docker.noSudo")}),e.jsxs("div",{className:"bg-card border border-[var(--border)] rounded-md p-3",children:[e.jsx("p",{className:"text-xs text-muted mb-1.5",children:t("setup:docker.contactAdmin")}),e.jsx("code",{className:"text-xs text-foreground font-mono block",children:"curl -fsSL https://get.docker.com | sh"})]}),e.jsx("button",{onClick:()=>h(!0),className:"text-xs text-muted hover:text-foreground underline transition-colors duration-200",children:t("setup:docker.refreshAfterInstall")})]})]}),x==="nomad"&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-medium text-foreground mb-1",children:t("setup:nomad.title")}),e.jsx("p",{className:"text-sm text-muted mb-4",children:t("setup:nomad.desc")}),n.nomad.installed&&n.nomad.running?e.jsx("div",{className:"bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-sm rounded-md px-3 py-2.5",children:t("setup:nomad.running",{version:n.nomad.version})}):n.nomad.installed?e.jsx("div",{className:"space-y-3",children:e.jsxs("div",{className:"flex items-center gap-2 bg-amber-500/10 border border-amber-500/20 text-amber-400 text-sm rounded-md px-3 py-2.5",children:[e.jsx(I,{}),e.jsx("span",{children:t("setup:nomad.starting")})]})}):e.jsx("button",{onClick:fe,disabled:!!f,className:"bg-[#0066FF] text-white rounded-md px-4 py-2 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all duration-200",children:f?e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx(I,{}),t("setup:nomad.installing")]}):t("setup:nomad.installBtn")})]}),x==="openclaw"&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-medium text-foreground mb-1",children:"Agent 运行时"}),e.jsx("p",{className:"text-sm text-muted mb-4",children:"安装所有已注册的 Agent 运行时 (Docker 镜像 / shim)。每次添加新 Agent 时,这里会自动出现一行。"}),e.jsx("div",{className:"space-y-4",children:p.map(r=>{const s=ie(n,r.agentType),a=f===`runtime-${r.agentType}`;return e.jsxs("div",{className:"rounded-md border border-[var(--border)] bg-[var(--card)] p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium text-foreground",children:r.displayName}),e.jsx("div",{className:"text-xs text-muted",children:r.description})]}),s?e.jsx("span",{className:"text-xs text-emerald-400 font-mono",children:"已就绪"}):a?e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs text-amber-400",children:[e.jsx(I,{}),"安装中"]}):e.jsx("span",{className:"text-xs text-muted",children:"未安装"})]}),!s&&!a&&e.jsxs("div",{className:"space-y-2",children:[r.installHint&&e.jsx("p",{className:"text-xs text-muted",children:t(r.installHint)}),e.jsxs("button",{onClick:()=>ge(r.agentType),disabled:!!f,className:"bg-[#0066FF] text-white rounded-md px-4 py-2 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all duration-200",children:["安装 ",r.displayName]})]})]},r.agentType)})})]}),x==="done"&&e.jsx("div",{className:"text-center py-4",children:H?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-12 h-12 mx-auto mb-3 flex items-center justify-center",children:e.jsx("div",{className:"w-8 h-8 border-2 border-white/10 border-t-[#0066FF] rounded-full animate-spin"})}),e.jsx("h2",{className:"text-base font-medium text-foreground mb-1",children:t("setup:done.finalizing")}),e.jsx("p",{className:"text-sm text-muted",children:t("setup:done.finalizingDesc")})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-12 h-12 mx-auto mb-3 rounded-full bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsx("h2",{className:"text-base font-medium text-foreground mb-1",children:t("setup:done.complete")}),e.jsx("p",{className:"text-sm text-muted",children:t("setup:done.completeDesc")})]})}),x==="provider"&&(()=>{var u;const r=y.find(d=>d.id===b),s=[...new Set(y.map(d=>d.group))],a=(r==null?void 0:r.local)===!0,o=F.length>0?F.map(d=>({id:d.id,label:d.name||d.id})):((r==null?void 0:r.models)||[]).map(d=>({id:d.id,label:`${d.name} (${Math.round(d.contextWindow/1e3)}K)`}));return e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-medium text-foreground mb-1",children:t("setup:provider.title")}),e.jsx("p",{className:"text-sm text-muted mb-4",children:t("setup:provider.desc")}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(Re,{title:t("setup:provider.recommendedTitle"),description:t("setup:provider.recommendedDescription"),apiKeyHint:t("setup:provider.apiKeyHint"),selectedProviderId:b,onSelectProvider:Y}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("setup:provider.label")}),e.jsxs("select",{value:b,onChange:d=>Y(d.target.value),className:"w-full bg-background border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60",children:[e.jsx("option",{value:"",children:t("setup:provider.placeholder")}),s.map(d=>e.jsx("optgroup",{label:t(`instance:configForm.providerGroup.${d}`,{defaultValue:d}),children:y.filter(l=>l.group===d).map(l=>e.jsx("option",{value:l.id,children:t(`instance:configForm.providerLabel.${l.id}`,{defaultValue:l.label})},l.id))},d))]})]}),b&&a&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("setup:provider.baseUrl")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{value:S,onChange:d=>{W(d.target.value),_([])},className:"flex-1 bg-[var(--input-bg)] border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground font-mono focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60"}),e.jsx("button",{type:"button",onClick:()=>{je()},disabled:z,className:"px-3 py-1.5 text-xs border border-[var(--border)] rounded-md hover:bg-[var(--input-bg)] disabled:opacity-40 transition-all whitespace-nowrap",children:t(z?"setup:provider.fetchingModels":"setup:provider.fetchModels")})]})]}),b&&!a&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:t("setup:provider.apiKey")}),e.jsx(Le,{value:w,saved:!1,onChange:d=>{ce(d),_([])},baseUrl:(r==null?void 0:r.baseUrl)||"",api:(r==null?void 0:r.api)||"",authHeader:r!=null&&r.authHeader?"x-api-key":void 0,providerId:b,placeholder:t("setup:provider.apiKeyPlaceholder"),onModels:d=>{_(d),d.length>0&&T(d[0].id)},onStateChange:me,selectedModelId:D})]}),r&&o.length>0&&e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-muted mb-1.5",children:[t("setup:provider.defaultModel"),F.length>0&&e.jsxs("span",{className:"ml-1.5 text-emerald-400 text-xs",children:["(",F.length," ",t("setup:provider.liveModels"),")"]})]}),e.jsx("select",{value:D||((u=o[0])==null?void 0:u.id)||"",onChange:d=>T(d.target.value),className:"w-full bg-background border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60",children:o.map(d=>e.jsx("option",{value:d.id,children:d.label},d.id))})]})]})]})})(),q.length>0&&x!=="done"&&e.jsxs("div",{className:"mt-4 rounded-lg border border-[var(--border)] bg-[linear-gradient(180deg,rgba(2,6,23,0.96),rgba(15,23,42,0.92))] p-3 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] max-h-40 overflow-y-auto",children:[q.map((r,s)=>{const a=De(r.tone);return e.jsxs("div",{className:"flex items-start gap-2 py-0.5",children:[e.jsx("span",{className:`mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full ${a.dot}`}),e.jsx("div",{className:`min-w-0 whitespace-pre-wrap break-words text-xs font-mono leading-5 ${a.text}`,children:r.message})]},s)}),e.jsx("div",{className:"pointer-events-none sticky bottom-0 h-4 bg-gradient-to-t from-slate-950/85 to-transparent"})]}),M&&e.jsx("div",{className:"mt-4 bg-red-500/10 border border-red-500/20 text-red-400 text-sm rounded-md px-3 py-2.5",children:M})]}),e.jsx("div",{className:"flex justify-between mt-6",children:x==="provider"?(()=>{var a;const r=((a=y.find(o=>o.id===b))==null?void 0:a.local)===!0,s=b&&(r||w.trim());return e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:async()=>{await ne({skipped:!0}).catch(()=>{}),R()},className:"bg-[var(--card)] border border-[var(--border)] text-foreground rounded-md px-6 py-2 text-sm font-medium hover:bg-[var(--card-hover)] transition-all duration-200",children:t("setup:provider.skip")}),e.jsx("button",{onClick:async()=>{await Ne()&&R()},disabled:!s||B,className:"bg-[#0066FF] text-white rounded-md px-6 py-2 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 disabled:cursor-not-allowed transition-all duration-200 shadow-[0_0_20px_rgba(0,102,255,0.3)]",children:t(B?"setup:provider.saving":"setup:provider.saveAndContinue")})]})})():x!=="done"?e.jsxs(e.Fragment,{children:[e.jsx("div",{}),e.jsx("button",{onClick:R,disabled:!ve(x)||!!f,className:"bg-[#0066FF] text-white rounded-md px-6 py-2 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 disabled:cursor-not-allowed transition-all duration-200 shadow-[0_0_20px_rgba(0,102,255,0.3)] hover:shadow-[0_0_28px_rgba(0,102,255,0.45)]",children:t("setup:nav.next")})]}):e.jsx("button",{onClick:M?()=>R():i,disabled:H,className:"w-full bg-[#0066FF] text-white rounded-md py-2.5 text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 disabled:cursor-not-allowed transition-all duration-200 shadow-[0_0_20px_rgba(0,102,255,0.3)]",children:t(M?"setup:nav.retry":"setup:nav.enterPanel")})})]})]}):e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:e.jsx("div",{className:"w-5 h-5 border-2 border-[var(--border)] border-t-foreground rounded-full animate-spin"})})}export{Ve as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{j as f,ad as he,af as fe,aG as Y,ae as me,ag as ge}from"./index-CCkaIEjn.js";import{e as b,r as A}from"./vendor-react-DW5juQin.js";import{u as K}from"./vendor-i18n-DqPtOicc.js";var pe=Object.defineProperty,B=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,V=(c,a,o)=>a in c?pe(c,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[a]=o,z=(c,a)=>{for(var o in a||(a={}))W.call(a,o)&&V(c,o,a[o]);if(B)for(var o of B(a))X.call(a,o)&&V(c,o,a[o]);return c},_=(c,a)=>{var o={};for(var m in c)W.call(c,m)&&a.indexOf(m)<0&&(o[m]=c[m]);if(c!=null&&B)for(var m of B(c))a.indexOf(m)<0&&X.call(c,m)&&(o[m]=c[m]);return o};/**
|
|
2
|
+
* @license QR Code generator library (TypeScript)
|
|
3
|
+
* Copyright (c) Project Nayuki.
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/var O;(c=>{const a=class E{constructor(e,r,t,s){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<E.MIN_VERSION||e>E.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=e*4+17;let n=[];for(let i=0;i<this.size;i++)n.push(!1);for(let i=0;i<this.size;i++)this.modules.push(n.slice()),this.isFunction.push(n.slice());this.drawFunctionPatterns();const u=this.addEccAndInterleave(t);if(this.drawCodewords(u),s==-1){let i=1e9;for(let d=0;d<8;d++){this.applyMask(d),this.drawFormatBits(d);const h=this.getPenaltyScore();h<i&&(s=d,i=h),this.applyMask(d)}}p(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}static encodeText(e,r){const t=c.QrSegment.makeSegments(e);return E.encodeSegments(t,r)}static encodeBinary(e,r){const t=c.QrSegment.makeBytes(e);return E.encodeSegments([t],r)}static encodeSegments(e,r,t=1,s=40,n=-1,u=!0){if(!(E.MIN_VERSION<=t&&t<=s&&s<=E.MAX_VERSION)||n<-1||n>7)throw new RangeError("Invalid value");let i,d;for(i=t;;i++){const g=E.getNumDataCodewords(i,r)*8,v=N.getTotalBits(e,i);if(v<=g){d=v;break}if(i>=s)throw new RangeError("Data too long")}for(const g of[E.Ecc.MEDIUM,E.Ecc.QUARTILE,E.Ecc.HIGH])u&&d<=E.getNumDataCodewords(i,g)*8&&(r=g);let h=[];for(const g of e){o(g.mode.modeBits,4,h),o(g.numChars,g.mode.numCharCountBits(i),h);for(const v of g.getData())h.push(v)}p(h.length==d);const M=E.getNumDataCodewords(i,r)*8;p(h.length<=M),o(0,Math.min(4,M-h.length),h),o(0,(8-h.length%8)%8,h),p(h.length%8==0);for(let g=236;h.length<M;g^=253)o(g,8,h);let R=[];for(;R.length*8<h.length;)R.push(0);return h.forEach((g,v)=>R[v>>>3]|=g<<7-(v&7)),new E(i,r,R,n)}getModule(e,r){return 0<=e&&e<this.size&&0<=r&&r<this.size&&this.modules[r][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),r=e.length;for(let t=0;t<r;t++)for(let s=0;s<r;s++)t==0&&s==0||t==0&&s==r-1||t==r-1&&s==0||this.drawAlignmentPattern(e[t],e[s]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const r=this.errorCorrectionLevel.formatBits<<3|e;let t=r;for(let n=0;n<10;n++)t=t<<1^(t>>>9)*1335;const s=(r<<10|t)^21522;p(s>>>15==0);for(let n=0;n<=5;n++)this.setFunctionModule(8,n,m(s,n));this.setFunctionModule(8,7,m(s,6)),this.setFunctionModule(8,8,m(s,7)),this.setFunctionModule(7,8,m(s,8));for(let n=9;n<15;n++)this.setFunctionModule(14-n,8,m(s,n));for(let n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,m(s,n));for(let n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,m(s,n));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;const r=this.version<<12|e;p(r>>>18==0);for(let t=0;t<18;t++){const s=m(r,t),n=this.size-11+t%3,u=Math.floor(t/3);this.setFunctionModule(n,u,s),this.setFunctionModule(u,n,s)}}drawFinderPattern(e,r){for(let t=-4;t<=4;t++)for(let s=-4;s<=4;s++){const n=Math.max(Math.abs(s),Math.abs(t)),u=e+s,i=r+t;0<=u&&u<this.size&&0<=i&&i<this.size&&this.setFunctionModule(u,i,n!=2&&n!=4)}}drawAlignmentPattern(e,r){for(let t=-2;t<=2;t++)for(let s=-2;s<=2;s++)this.setFunctionModule(e+s,r+t,Math.max(Math.abs(s),Math.abs(t))!=1)}setFunctionModule(e,r,t){this.modules[r][e]=t,this.isFunction[r][e]=!0}addEccAndInterleave(e){const r=this.version,t=this.errorCorrectionLevel;if(e.length!=E.getNumDataCodewords(r,t))throw new RangeError("Invalid argument");const s=E.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][r],n=E.ECC_CODEWORDS_PER_BLOCK[t.ordinal][r],u=Math.floor(E.getNumRawDataModules(r)/8),i=s-u%s,d=Math.floor(u/s);let h=[];const M=E.reedSolomonComputeDivisor(n);for(let g=0,v=0;g<s;g++){let S=e.slice(v,v+d-n+(g<i?0:1));v+=S.length;const x=E.reedSolomonComputeRemainder(S,M);g<i&&S.push(0),h.push(S.concat(x))}let R=[];for(let g=0;g<h[0].length;g++)h.forEach((v,S)=>{(g!=d-n||S>=i)&&R.push(v[g])});return p(R.length==u),R}drawCodewords(e){if(e.length!=Math.floor(E.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let s=0;s<this.size;s++)for(let n=0;n<2;n++){const u=t-n,d=(t+1&2)==0?this.size-1-s:s;!this.isFunction[d][u]&&r<e.length*8&&(this.modules[d][u]=m(e[r>>>3],7-(r&7)),r++)}}p(r==e.length*8)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let r=0;r<this.size;r++)for(let t=0;t<this.size;t++){let s;switch(e){case 0:s=(t+r)%2==0;break;case 1:s=r%2==0;break;case 2:s=t%3==0;break;case 3:s=(t+r)%3==0;break;case 4:s=(Math.floor(t/3)+Math.floor(r/2))%2==0;break;case 5:s=t*r%2+t*r%3==0;break;case 6:s=(t*r%2+t*r%3)%2==0;break;case 7:s=((t+r)%2+t*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][t]&&s&&(this.modules[r][t]=!this.modules[r][t])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let u=!1,i=0,d=[0,0,0,0,0,0,0];for(let h=0;h<this.size;h++)this.modules[n][h]==u?(i++,i==5?e+=E.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,d),u||(e+=this.finderPenaltyCountPatterns(d)*E.PENALTY_N3),u=this.modules[n][h],i=1);e+=this.finderPenaltyTerminateAndCount(u,i,d)*E.PENALTY_N3}for(let n=0;n<this.size;n++){let u=!1,i=0,d=[0,0,0,0,0,0,0];for(let h=0;h<this.size;h++)this.modules[h][n]==u?(i++,i==5?e+=E.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,d),u||(e+=this.finderPenaltyCountPatterns(d)*E.PENALTY_N3),u=this.modules[h][n],i=1);e+=this.finderPenaltyTerminateAndCount(u,i,d)*E.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let u=0;u<this.size-1;u++){const i=this.modules[n][u];i==this.modules[n][u+1]&&i==this.modules[n+1][u]&&i==this.modules[n+1][u+1]&&(e+=E.PENALTY_N2)}let r=0;for(const n of this.modules)r=n.reduce((u,i)=>u+(i?1:0),r);const t=this.size*this.size,s=Math.ceil(Math.abs(r*20-t*10)/t)-1;return p(0<=s&&s<=9),e+=s*E.PENALTY_N4,p(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{const e=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2;let t=[6];for(let s=this.size-7;t.length<e;s-=r)t.splice(1,0,s);return t}}static getNumRawDataModules(e){if(e<E.MIN_VERSION||e>E.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return p(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(E.getNumRawDataModules(e)/8)-E.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*E.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let s=0;s<e-1;s++)r.push(0);r.push(1);let t=1;for(let s=0;s<e;s++){for(let n=0;n<r.length;n++)r[n]=E.reedSolomonMultiply(r[n],t),n+1<r.length&&(r[n]^=r[n+1]);t=E.reedSolomonMultiply(t,2)}return r}static reedSolomonComputeRemainder(e,r){let t=r.map(s=>0);for(const s of e){const n=s^t.shift();t.push(0),r.forEach((u,i)=>t[i]^=E.reedSolomonMultiply(u,n))}return t}static reedSolomonMultiply(e,r){if(e>>>8||r>>>8)throw new RangeError("Byte out of range");let t=0;for(let s=7;s>=0;s--)t=t<<1^(t>>>7)*285,t^=(r>>>s&1)*e;return p(t>>>8==0),t}finderPenaltyCountPatterns(e){const r=e[1];p(r<=this.size*3);const t=r>0&&e[2]==r&&e[3]==r*3&&e[4]==r&&e[5]==r;return(t&&e[0]>=r*4&&e[6]>=r?1:0)+(t&&e[6]>=r*4&&e[0]>=r?1:0)}finderPenaltyTerminateAndCount(e,r,t){return e&&(this.finderPenaltyAddHistory(r,t),r=0),r+=this.size,this.finderPenaltyAddHistory(r,t),this.finderPenaltyCountPatterns(t)}finderPenaltyAddHistory(e,r){r[0]==0&&(e+=this.size),r.pop(),r.unshift(e)}};a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],c.QrCode=a;function o(w,e,r){if(e<0||e>31||w>>>e)throw new RangeError("Value out of range");for(let t=e-1;t>=0;t--)r.push(w>>>t&1)}function m(w,e){return(w>>>e&1)!=0}function p(w){if(!w)throw new Error("Assertion error")}const l=class y{constructor(e,r,t){if(this.mode=e,this.numChars=r,this.bitData=t,r<0)throw new RangeError("Invalid argument");this.bitData=t.slice()}static makeBytes(e){let r=[];for(const t of e)o(t,8,r);return new y(y.Mode.BYTE,e.length,r)}static makeNumeric(e){if(!y.isNumeric(e))throw new RangeError("String contains non-numeric characters");let r=[];for(let t=0;t<e.length;){const s=Math.min(e.length-t,3);o(parseInt(e.substring(t,t+s),10),s*3+1,r),t+=s}return new y(y.Mode.NUMERIC,e.length,r)}static makeAlphanumeric(e){if(!y.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r=[],t;for(t=0;t+2<=e.length;t+=2){let s=y.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t))*45;s+=y.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),o(s,11,r)}return t<e.length&&o(y.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,r),new y(y.Mode.ALPHANUMERIC,e.length,r)}static makeSegments(e){return e==""?[]:y.isNumeric(e)?[y.makeNumeric(e)]:y.isAlphanumeric(e)?[y.makeAlphanumeric(e)]:[y.makeBytes(y.toUtf8ByteArray(e))]}static makeEci(e){let r=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)o(e,8,r);else if(e<16384)o(2,2,r),o(e,14,r);else if(e<1e6)o(6,3,r),o(e,21,r);else throw new RangeError("ECI assignment value out of range");return new y(y.Mode.ECI,0,r)}static isNumeric(e){return y.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return y.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,r){let t=0;for(const s of e){const n=s.mode.numCharCountBits(r);if(s.numChars>=1<<n)return 1/0;t+=4+n+s.bitData.length}return t}static toUtf8ByteArray(e){e=encodeURI(e);let r=[];for(let t=0;t<e.length;t++)e.charAt(t)!="%"?r.push(e.charCodeAt(t)):(r.push(parseInt(e.substring(t+1,t+3),16)),t+=2);return r}};l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let N=l;c.QrSegment=l})(O||(O={}));(c=>{(a=>{const o=class{constructor(p,l){this.ordinal=p,this.formatBits=l}};o.LOW=new o(0,1),o.MEDIUM=new o(1,0),o.QUARTILE=new o(2,3),o.HIGH=new o(3,2),a.Ecc=o})(c.QrCode||(c.QrCode={}))})(O||(O={}));(c=>{(a=>{const o=class{constructor(p,l){this.modeBits=p,this.numBitsCharCount=l}numCharCountBits(p){return this.numBitsCharCount[Math.floor((p+7)/17)]}};o.NUMERIC=new o(1,[10,12,14]),o.ALPHANUMERIC=new o(2,[9,11,13]),o.BYTE=new o(4,[8,16,16]),o.KANJI=new o(8,[8,10,12]),o.ECI=new o(7,[0,0,0]),a.Mode=o})(c.QrSegment||(c.QrSegment={}))})(O||(O={}));var T=O;/**
|
|
6
|
+
* @license qrcode.react
|
|
7
|
+
* Copyright (c) Paul O'Shannessy
|
|
8
|
+
* SPDX-License-Identifier: ISC
|
|
9
|
+
*/var xe={L:T.QrCode.Ecc.LOW,M:T.QrCode.Ecc.MEDIUM,Q:T.QrCode.Ecc.QUARTILE,H:T.QrCode.Ecc.HIGH},Z=128,J="L",ee="#FFFFFF",te="#000000",re=!1,se=1,Ee=4,we=0,Ce=.1;function ne(c,a=0){const o=[];return c.forEach(function(m,p){let l=null;m.forEach(function(N,w){if(!N&&l!==null){o.push(`M${l+a} ${p+a}h${w-l}v1H${l+a}z`),l=null;return}if(w===m.length-1){if(!N)return;l===null?o.push(`M${w+a},${p+a} h1v1H${w+a}z`):o.push(`M${l+a},${p+a} h${w+1-l}v1H${l+a}z`);return}N&&l===null&&(l=w)})}),o.join("")}function oe(c,a){return c.slice().map((o,m)=>m<a.y||m>=a.y+a.h?o:o.map((p,l)=>l<a.x||l>=a.x+a.w?p:!1))}function Ne(c,a,o,m){if(m==null)return null;const p=c.length+o*2,l=Math.floor(a*Ce),N=p/a,w=(m.width||l)*N,e=(m.height||l)*N,r=m.x==null?c.length/2-w/2:m.x*N,t=m.y==null?c.length/2-e/2:m.y*N,s=m.opacity==null?1:m.opacity;let n=null;if(m.excavate){let i=Math.floor(r),d=Math.floor(t),h=Math.ceil(w+r-i),M=Math.ceil(e+t-d);n={x:i,y:d,w:h,h:M}}const u=m.crossOrigin;return{x:r,y:t,h:e,w,excavation:n,opacity:s,crossOrigin:u}}function ve(c,a){return a!=null?Math.max(Math.floor(a),0):c?Ee:we}function ie({value:c,level:a,minVersion:o,includeMargin:m,marginSize:p,imageSettings:l,size:N,boostLevel:w}){let e=b.useMemo(()=>{const i=(Array.isArray(c)?c:[c]).reduce((d,h)=>(d.push(...T.QrSegment.makeSegments(h)),d),[]);return T.QrCode.encodeSegments(i,xe[a],o,void 0,void 0,w)},[c,a,o,w]);const{cells:r,margin:t,numCells:s,calculatedImageSettings:n}=b.useMemo(()=>{let u=e.getModules();const i=ve(m,p),d=u.length+i*2,h=Ne(u,N,i,l);return{cells:u,margin:i,numCells:d,calculatedImageSettings:h}},[e,N,l,m,p]);return{qrcode:e,margin:t,cells:r,numCells:s,calculatedImageSettings:n}}var Me=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Re=b.forwardRef(function(a,o){const m=a,{value:p,size:l=Z,level:N=J,bgColor:w=ee,fgColor:e=te,includeMargin:r=re,minVersion:t=se,boostLevel:s,marginSize:n,imageSettings:u}=m,d=_(m,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:h}=d,M=_(d,["style"]),R=u==null?void 0:u.src,g=b.useRef(null),v=b.useRef(null),S=b.useCallback(j=>{g.current=j,typeof o=="function"?o(j):o&&(o.current=j)},[o]),[x,F]=b.useState(!1),{margin:C,cells:I,numCells:D,calculatedImageSettings:P}=ie({value:p,level:N,minVersion:t,boostLevel:s,includeMargin:r,marginSize:n,imageSettings:u,size:l});b.useEffect(()=>{if(g.current!=null){const j=g.current,L=j.getContext("2d");if(!L)return;let H=I;const U=v.current,q=P!=null&&U!==null&&U.complete&&U.naturalHeight!==0&&U.naturalWidth!==0;q&&P.excavation!=null&&(H=oe(I,P.excavation));const $=window.devicePixelRatio||1;j.height=j.width=l*$;const G=l/D*$;L.scale(G,G),L.fillStyle=w,L.fillRect(0,0,D,D),L.fillStyle=e,Me?L.fill(new Path2D(ne(H,C))):I.forEach(function(ae,ce){ae.forEach(function(ue,de){ue&&L.fillRect(de+C,ce+C,1,1)})}),P&&(L.globalAlpha=P.opacity),q&&L.drawImage(U,P.x+C,P.y+C,P.w,P.h)}}),b.useEffect(()=>{F(!1)},[R]);const le=z({height:l,width:l},h);let Q=null;return R!=null&&(Q=b.createElement("img",{src:R,key:R,style:{display:"none"},onLoad:()=>{F(!0)},ref:v,crossOrigin:P==null?void 0:P.crossOrigin})),b.createElement(b.Fragment,null,b.createElement("canvas",z({style:le,height:l,width:l,ref:S,role:"img"},M)),Q)});Re.displayName="QRCodeCanvas";var k=b.forwardRef(function(a,o){const m=a,{value:p,size:l=Z,level:N=J,bgColor:w=ee,fgColor:e=te,includeMargin:r=re,minVersion:t=se,boostLevel:s,title:n,marginSize:u,imageSettings:i}=m,d=_(m,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:h,cells:M,numCells:R,calculatedImageSettings:g}=ie({value:p,level:N,minVersion:t,boostLevel:s,includeMargin:r,marginSize:u,imageSettings:i,size:l});let v=M,S=null;i!=null&&g!=null&&(g.excavation!=null&&(v=oe(M,g.excavation)),S=b.createElement("image",{href:i.src,height:g.h,width:g.w,x:g.x+h,y:g.y+h,preserveAspectRatio:"none",opacity:g.opacity,crossOrigin:g.crossOrigin}));const x=ne(v,h);return b.createElement("svg",z({height:l,width:l,viewBox:`0 0 ${R} ${R}`,ref:o,role:"img"},d),!!n&&b.createElement("title",null,n),b.createElement("path",{fill:w,d:`M0,0 h${R}v${R}H0z`,shapeRendering:"crispEdges"}),b.createElement("path",{fill:e,d:x,shapeRendering:"crispEdges"}),S)});k.displayName="QRCodeSVG";function Pe({instanceId:c,channelKey:a,existingAppId:o,existingDomain:m,onConfigured:p}){const{t:l}=K(["instance","common"]),[N,w]=A.useState(""),[,e]=A.useState(""),[r,t]=A.useState("idle"),[s,n]=A.useState(""),[u,i]=A.useState(""),d=A.useRef(!1),h=A.useRef(!1),M=A.useRef(0),R=6,g=async()=>{if(c){h.current=!1,t("loading"),n(""),w("");try{let x=null;for(let F=0;F<3;F++){if(h.current)return;try{if(x=await he(c,a),x!=null&&x.qrcodeUrl)break}catch{F<2&&await new Promise(C=>setTimeout(C,1500))}}if(h.current)return;x!=null&&x.qrcodeUrl?(w(x.qrcodeUrl),e(x.sessionKey),t("waiting"),n(l("configForm.feishu.scanHint")),v(x.sessionKey)):(t("error"),n(l("qr.getFailed")))}catch{h.current||(t("error"),n(l("qr.getFailed")))}}},v=x=>{if(!c||d.current)return;d.current=!0,M.current=0;const F=async()=>{if(d.current)try{const C=await fe(c,x);if(M.current=0,C.connected){d.current=!1,t("confirmed"),n(C.message||l("qr.loginSuccess")),i(C.domain||"feishu"),w(""),p==null||p();return}if(C.status==="expired"){d.current=!1,t("error"),n(C.message||l("qr.expired"));return}setTimeout(F,3e3)}catch{if(!d.current)return;if(M.current+=1,M.current>=R){d.current=!1,t("error"),n(l("qr.pollFailed",{defaultValue:"轮询失败,请刷新后重试"}));return}setTimeout(F,3e3)}};F()};if(A.useEffect(()=>()=>{d.current=!1},[]),r==="confirmed")return f.jsxs("div",{className:"bg-emerald-500/10 border border-emerald-500/20 rounded-md px-4 py-3 text-sm",children:[f.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[f.jsx("span",{className:"text-lg",children:"✓"}),f.jsx("span",{className:"font-medium",children:s})]}),f.jsx("p",{className:"text-xs text-muted mt-1",children:l("configForm.feishu.platform",{platform:l(u==="lark"?"configForm.feishu.platformLark":"configForm.feishu.platformFeishu")})})]});if(r==="idle"||r==="error")return f.jsxs("div",{className:"bg-[var(--card-hover)] rounded-md px-4 py-3 space-y-3",children:[o&&f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-muted mb-1",children:l("configForm.feishu.added")}),f.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[f.jsx("span",{className:"text-emerald-400",children:"✓"}),f.jsx("code",{className:"font-mono text-foreground/70",children:o}),f.jsx("span",{className:"text-muted opacity-60",children:m==="lark"?"Lark":l("configForm.feishu.platformFeishu")})]})]}),f.jsxs("div",{children:[f.jsx("button",{onClick:g,className:"px-4 py-2 bg-[#3370FF] text-white rounded-md text-xs font-medium hover:bg-[#3370FF]/90 transition-colors",children:l("configForm.feishu.addBot")}),f.jsx("p",{className:"text-xs text-muted mt-2",children:l("configForm.feishu.addBotHint")})]})]});const S=()=>{h.current=!0,d.current=!1,t("idle"),n(""),w(""),e("")};return f.jsx("div",{className:"bg-[var(--card-hover)] rounded-md px-4 py-4",children:f.jsxs("div",{className:"flex flex-col items-center gap-3",children:[N?f.jsx(k,{value:N,size:192,className:"rounded-lg"}):f.jsx("div",{className:"w-48 h-48 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-[#3370FF]/30 border-t-[#3370FF] rounded-full animate-spin"})}),f.jsx("div",{className:"text-sm text-muted",children:r==="loading"?l("configForm.feishu.gettingQr"):s}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("button",{onClick:S,className:"px-3 py-1.5 text-xs text-white bg-red-500 rounded-md hover:bg-red-500/90 transition-colors",children:l("configForm.feishu.cancel")}),f.jsx("button",{onClick:()=>{S(),setTimeout(g,100)},className:"px-3 py-1.5 text-xs text-white bg-[#0066FF] rounded-md hover:bg-[#0066FF]/90 transition-colors",children:l("configForm.feishu.refresh")})]})]})})}function Le({instanceId:c,onConfigured:a}){const{t:o,i18n:m}=K(["instance","common"]),[p,l]=A.useState(""),[,N]=A.useState(""),[w,e]=A.useState("idle"),[r,t]=A.useState(""),[s,n]=A.useState(""),[u,i]=A.useState([]),d=A.useRef(!1),h=A.useRef(!1),M=A.useRef(0),R=6;A.useEffect(()=>{c&&Y(c).then(x=>{var F;(F=x==null?void 0:x.accounts)!=null&&F.length&&i(x.accounts)}).catch(()=>{})},[c]);const g=async()=>{if(c){h.current=!1,e("loading"),t(""),l("");try{let x=null;for(let F=0;F<3;F++){if(h.current)return;try{if(x=await me(c),x!=null&&x.qrcodeUrl)break}catch{F<2&&await new Promise(C=>setTimeout(C,1500))}}if(h.current)return;x!=null&&x.qrcodeUrl?(l(x.qrcodeUrl),N(x.sessionKey),e("waiting"),t(o("configForm.weixin.scanHint")),v(x.sessionKey)):(e("error"),t(o("qr.getFailed")))}catch{h.current||(e("error"),t(o("qr.getFailed")))}}},v=x=>{if(!c||d.current)return;d.current=!0,M.current=0;const F=async()=>{if(d.current)try{const C=await ge(c,x);if(M.current=0,C.connected){d.current=!1,e("confirmed"),t(C.message||o("qr.loginSuccess")),n(C.accountId||""),l(""),c&&Y(c).then(I=>{I!=null&&I.accounts&&i(I.accounts)}).catch(()=>{}),a==null||a();return}if(C.status==="scaned")e("scaned"),t(C.message||o("qr.scaned"));else if(C.status==="refreshed"&&C.qrcodeUrl)l(C.qrcodeUrl),e("waiting"),t(o("qr.refreshed"));else if(C.status==="expired"){d.current=!1,e("error"),t(C.message||o("qr.expired"));return}setTimeout(F,2e3)}catch{if(!d.current)return;if(M.current+=1,M.current>=R){d.current=!1,e("error"),t(o("qr.pollFailed",{defaultValue:"轮询失败,请刷新后重试"}));return}setTimeout(F,3e3)}};F()};if(A.useEffect(()=>()=>{d.current=!1},[]),w==="confirmed")return f.jsxs("div",{className:"bg-emerald-500/10 border border-emerald-500/20 rounded-md px-4 py-3 text-sm",children:[f.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[f.jsx("span",{className:"text-lg",children:"✓"}),f.jsx("span",{className:"font-medium",children:r})]}),s&&f.jsxs("p",{className:"text-xs text-muted mt-1",children:[o("configForm.weixin.accountId")," ",f.jsx("code",{className:"font-mono",children:s})]}),f.jsx("p",{className:"text-xs text-muted mt-1",children:o("configForm.weixin.restartHint")}),f.jsx("button",{onClick:g,className:"mt-2 px-3 py-1 text-xs border border-emerald-500/30 rounded text-emerald-400 hover:bg-emerald-500/10 transition-colors",children:o("configForm.weixin.addAnother")})]});if(w==="idle"||w==="error")return f.jsxs("div",{className:"bg-[var(--card-hover)] rounded-md px-4 py-3 space-y-3",children:[u.length>0&&f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-muted mb-1.5",children:o("configForm.weixin.added")}),u.map(x=>f.jsxs("div",{className:"flex items-center gap-2 text-xs py-1",children:[f.jsx("span",{className:"text-emerald-400",children:"✓"}),f.jsx("code",{className:"font-mono text-foreground/70",children:x.accountId}),x.savedAt&&f.jsx("span",{className:"text-muted opacity-60",children:new Date(x.savedAt).toLocaleDateString(m.language==="zh"?"zh-CN":"en-US")})]},x.accountId))]}),f.jsxs("div",{children:[f.jsx("button",{onClick:g,className:"px-4 py-2 bg-[#07C160] text-white rounded-md text-xs font-medium hover:bg-[#07C160]/90 transition-colors",children:o("configForm.weixin.addClawBot")}),f.jsx("p",{className:"text-xs text-muted mt-2",children:o("configForm.weixin.addClawBotHint",{extra:u.length>0?o("configForm.weixin.addClawBotHintRestart"):o("configForm.weixin.addClawBotHintMulti")})})]})]});const S=()=>{h.current=!0,d.current=!1,e("idle"),t(""),l(""),N("")};return f.jsx("div",{className:"bg-[var(--card-hover)] rounded-md px-4 py-4",children:f.jsxs("div",{className:"flex flex-col items-center gap-3",children:[p?f.jsx(k,{value:p,size:192,className:"rounded-lg"}):f.jsx("div",{className:"w-48 h-48 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-[#07C160]/30 border-t-[#07C160] rounded-full animate-spin"})}),f.jsx("div",{className:"flex items-center gap-2 text-sm",children:w==="scaned"?f.jsxs("span",{className:"text-[#07C160] font-medium",children:["👀 ",r]}):w==="loading"?f.jsx("span",{className:"text-muted",children:o("configForm.weixin.gettingQr")}):f.jsx("span",{className:"text-muted",children:r})}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("button",{onClick:S,className:"px-3 py-1.5 text-xs text-white bg-red-500 rounded-md hover:bg-red-500/90 transition-colors",children:o("configForm.weixin.cancel")}),f.jsx("button",{onClick:()=>{S(),setTimeout(g,100)},className:"px-3 py-1.5 text-xs text-white bg-[#0066FF] rounded-md hover:bg-[#0066FF]/90 transition-colors",children:o("configForm.weixin.refresh")})]})]})})}export{Pe as F,k as Q,Le as W};
|