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,92 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CCkaIEjn.js","assets/vendor-react-DW5juQin.js","assets/vendor-i18n-DqPtOicc.js","assets/index-D7qxy-Vh.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{j as e,_ as ys,y as js,z as Zs,A as ea,B as ta,C as sa,D as aa,l as Os,E as ra,F as ks,G as na,H as Ls,J as la,K as oa,M as ws,N as ia,O as ca,P as da,Q as ua,R as ma,S as xa,U as pa,V as fa,k as ha,W as st,X as Tt,Y as ba,Z as ga,$ as Ns,a0 as Cs,a1 as Ss,a2 as Fs,a3 as va,a4 as ya,a5 as ja,a6 as ka,a7 as Is,a8 as Es,a9 as wa,aa as Na,ab as Ca,ac as Sa,v as Fa,w as Ia,x as Ps,ad as Ea,ae as Pa,af as Aa,ag as _a,ah as Ma,ai as $a,aj as Ta}from"./index-CCkaIEjn.js";import{r as d,u as gt,d as Da}from"./vendor-react-DW5juQin.js";import{F as Va,W as Oa,Q as La}from"./WeixinLoginPanel-C21doQTJ.js";import{u as Ra}from"./usePolling-BFZm4do_.js";import{P as ft,S as As,F as ie,a as at,A as Ka,d as Le,I as Me,C as rt,T as _s}from"./ApiKeyField-D1i7zWXR.js";import{u as me,i as qa,T as Ua}from"./vendor-i18n-DqPtOicc.js";import{R as Ba}from"./registry-B2ZQZXWL.js";const Dt=["feishu","openclaw-weixin"],Wa={feishu:"feishu",lark:"feishu","openclaw-weixin":"openclaw-weixin"};function Ha({config:t,onChange:n,instanceId:o,isRunning:u=!1,pluginStatuses:s={},onInstallPlugin:i}){var G,ae,de;const{t:x}=me(["instance","common"]),y=(c,f)=>n(Le(t,c,f)),r=((G=t==null?void 0:t["x-jishushell"])==null?void 0:G.proxy)||{},g=r.upstream||{},b=g.providerId||"",F=ft.find(c=>c.id===b),P=g.models||[],I=F?F.models.map(c=>({id:c.id,name:c.name,contextWindow:c.contextWindow})):P.map(c=>({id:c.id,name:c.name||c.id,contextWindow:c.contextWindow})),L=g.selectedModelId||((ae=I[0])==null?void 0:ae.id)||"",R=I.find(c=>c.id===L)||I[0]||{},M=P.find(c=>c.id===L)||(R.id?R:{id:"",name:"",contextWindow:0}),Y=r.proxy||{},ue=c=>{var _;const f=ft.find(K=>K.id===c);if(!f||g.apiKey&&!window.confirm(x("configForm.switchProviderConfirm")))return;const w=JSON.parse(JSON.stringify(t));w["x-jishushell"]||(w["x-jishushell"]={}),w["x-jishushell"].proxy||(w["x-jishushell"].proxy={}),w["x-jishushell"].proxy.upstream={providerId:f.id,baseUrl:f.baseUrl,api:f.api,authHeader:f.authHeader===!0,headers:f.headers||{},models:f.models.map(K=>({id:K.id,name:K.name,contextWindow:K.contextWindow})),selectedModelId:((_=f.models[0])==null?void 0:_.id)||"",apiKey:"",hasApiKey:!1,clearApiKey:!1},n(w)},J=c=>{y("x-jishushell.proxy.upstream.selectedModelId",c)},X=(c,f)=>{y(`x-jishushell.proxy.upstream.${c}`,f)},k=(t==null?void 0:t.channels)||{},E=Object.keys(k),W=(c,f,w)=>y(`channels.${c}.${f}`,w),q={},H=c=>{const f=rt.find(K=>K.id===c),w=JSON.parse(JSON.stringify(t));w.channels||(w.channels={});const _=q[c]||c;if(f){const K={enabled:!0,...f.defaults};f.fields.forEach(oe=>{K[oe.key]=""}),w.channels[_]=K}else w.channels[_]={enabled:!0};n(w)},ce=c=>{const f=JSON.parse(JSON.stringify(t));delete f.channels[c],n(f)},[le,v]=d.useState(!1),[C,V]=d.useState(!(g.hasApiKey&&b)),Z={"moonshot-coding":"configForm.hint.moonshot-coding",volcengine:"configForm.hint.volcengine",byteplus:"configForm.hint.byteplus",openrouter:"configForm.hint.openrouter",ollama:"configForm.hint.ollama",vllm:"configForm.hint.vllm",sglang:"configForm.hint.sglang"},z=Z[b]?x(Z[b]):void 0,D=[...new Set(ft.map(c=>c.group))];return e.jsxs("div",{className:"space-y-4",children:[e.jsxs(As,{title:x("configForm.modelConfig"),children:[e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-lg p-3 text-sm text-muted",children:[e.jsx("div",{className:"font-medium text-foreground mb-1",children:x("configForm.proxyChain")}),e.jsx("p",{children:x("configForm.proxyChainDesc")}),e.jsxs("div",{className:"mt-2 text-xs text-muted opacity-60 space-y-1",children:[e.jsxs("div",{children:[x("configForm.proxyAddress")," ",e.jsx("span",{className:"font-mono",children:Y.coreProxyBaseUrl||x("configForm.notConfigured")})]}),e.jsxs("div",{children:[x("configForm.proxyStatus")," ",Y.running?x("configForm.running"):x("configForm.notRunning"),x("configForm.virtualKeyLabel")," ",Y.hasVirtualKey?x("configForm.generated"):x("configForm.notGenerated")]})]})]}),!C&&e.jsx("button",{type:"button",onClick:()=>V(!0),className:"text-xs text-[#0066FF] hover:text-[#0066FF]/80 transition-colors",children:x("configForm.editModelConfig")}),C&&e.jsx(ie,{label:x("configForm.upstreamProvider"),hint:x("configForm.upstreamProviderHint"),children:e.jsxs(at,{value:b,onChange:ue,children:[e.jsx("option",{value:"",children:x("configForm.selectProvider")}),!F&&b&&e.jsxs("option",{value:b,children:[b," ",x("configForm.custom")]}),D.map(c=>e.jsx("optgroup",{label:x(`configForm.providerGroup.${c}`,{defaultValue:c}),children:ft.filter(f=>f.group===c).map(f=>e.jsx("option",{value:f.id,children:x(`configForm.providerLabel.${f.id}`,{defaultValue:f.label})},f.id))},c))]})}),C&&z&&e.jsxs("div",{className:"flex items-start gap-2 bg-amber-500/10 border border-amber-500/20 rounded-lg px-3 py-2.5 text-xs text-amber-400",children:[e.jsx("span",{className:"shrink-0 mt-0.5",children:"⚠"}),e.jsx("span",{children:z})]}),C&&!["ollama","vllm","sglang"].includes(b)&&b&&e.jsxs(e.Fragment,{children:[e.jsxs(ie,{label:x("configForm.upstreamApiKey"),hint:g.hasApiKey&&!g.clearApiKey?x("configForm.apiKeyHintSaved"):x("configForm.apiKeyHintNew"),children:[e.jsx(Ka,{value:g.apiKey||"",saved:g.hasApiKey&&!g.clearApiKey,onChange:c=>{let f=Le(t,"x-jishushell.proxy.upstream.apiKey",c);c&&(f=Le(f,"x-jishushell.proxy.upstream.clearApiKey",!1)),n(f)},baseUrl:g.baseUrl||(F==null?void 0:F.baseUrl)||"",api:g.api||(F==null?void 0:F.api)||"",authHeader:typeof g.authHeader=="string"?g.authHeader:void 0,providerId:b,placeholder:x("configForm.enterApiKey"),selectedModelId:L}),g.hasApiKey&&e.jsx("button",{type:"button",onClick:()=>{let c=Le(t,"x-jishushell.proxy.upstream.apiKey","");c=Le(c,"x-jishushell.proxy.upstream.clearApiKey",!g.clearApiKey),n(c)},className:`mt-2 text-xs ${g.clearApiKey?"text-red-400":"text-muted hover:text-foreground"} transition-colors`,children:g.clearApiKey?x("configForm.markedForClear"):x("configForm.clearSavedApiKey")})]}),I.length>0&&e.jsx(ie,{label:x("configForm.upstreamModel"),hint:x("configForm.upstreamModelHint"),children:e.jsx(at,{value:L,onChange:J,children:I.map(c=>e.jsxs("option",{value:c.id,children:[c.name," (",Math.round(c.contextWindow/1e3),"K)"]},c.id))})})]}),C&&["ollama","vllm","sglang"].includes(b)&&e.jsxs("div",{className:"space-y-4 border-t border-[var(--border)] pt-4",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsx(ie,{label:"Base URL",hint:x("configForm.localServiceAddress"),children:e.jsx(Me,{value:g.baseUrl||"",onChange:c=>X("baseUrl",c),placeholder:"http://127.0.0.1:11434",mono:!0})}),e.jsx(ie,{label:x("configForm.apiProtocol"),children:e.jsxs(at,{value:g.api||"openai-completions",onChange:c=>X("api",c),children:[e.jsx("option",{value:"openai-completions",children:"OpenAI Compatible"}),e.jsx("option",{value:"ollama",children:"Ollama"})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[e.jsx(ie,{label:x("configForm.modelId"),hint:x("configForm.modelIdHint"),children:e.jsx(Me,{value:M.id==="default"?"":M.id,onChange:c=>{const f=[...P],w=f.findIndex(K=>K.id===L);w>=0?f[w]={...M,id:c||"default"}:f.push({id:c||"default",name:c||"default",contextWindow:M.contextWindow||0});let _=Le(t,"x-jishushell.proxy.upstream.models",f);_=Le(_,"x-jishushell.proxy.upstream.selectedModelId",c||"default"),n(_)},placeholder:"llama3",mono:!0})}),e.jsx(ie,{label:x("configForm.modelName"),children:e.jsx(Me,{value:M.name==="default"?"":M.name||"",onChange:c=>{const f=[...P],w=f.findIndex(_=>_.id===L);w>=0?f[w]={...M,name:c||M.id}:f.push({id:M.id||"default",name:c||"default",contextWindow:M.contextWindow||0}),X("models",f)},placeholder:x("configForm.modelNamePlaceholder")})}),e.jsx(ie,{label:x("configForm.contextWindow"),children:e.jsx(Me,{value:String(M.contextWindow||""),onChange:c=>{const f=[...P],w=f.findIndex(_=>_.id===L);w>=0?f[w]={...M,contextWindow:parseInt(c,10)||0}:f.push({id:M.id||"default",name:M.name||"default",contextWindow:parseInt(c,10)||0}),X("models",f)},placeholder:"128000",mono:!0})})]})]}),C&&!["ollama","vllm","sglang"].includes(b)&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:()=>v(!le),className:"text-xs text-muted hover:text-foreground transition-colors",children:x(le?"configForm.collapseAdvanced":"configForm.advancedOptions")}),le&&e.jsxs("div",{className:"space-y-4 border-t border-[var(--border)] pt-4",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsx(ie,{label:x("configForm.upstreamBaseUrl"),children:e.jsx(Me,{value:g.baseUrl||"",onChange:c=>X("baseUrl",c),placeholder:x("configForm.baseUrlPlaceholder"),mono:!0})}),e.jsx(ie,{label:x("configForm.upstreamApiProtocol"),children:e.jsxs(at,{value:g.api||"openai-completions",onChange:c=>X("api",c),children:[e.jsx("option",{value:"openai-completions",children:"OpenAI Compatible"}),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"})]})})]}),b&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[e.jsx(ie,{label:x("configForm.modelId"),children:e.jsx(Me,{value:M.id,onChange:c=>{const f=[...P],w=f.findIndex(K=>K.id===L);w>=0?f[w]={...M,id:c}:f.push({...M,id:c});let _=Le(t,"x-jishushell.proxy.upstream.models",f);_=Le(_,"x-jishushell.proxy.upstream.selectedModelId",c),n(_)},placeholder:"model-id",mono:!0})}),e.jsx(ie,{label:x("configForm.modelName"),children:e.jsx(Me,{value:M.name||"",onChange:c=>{const f=[...P],w=f.findIndex(_=>_.id===L);w>=0?f[w]={...M,name:c}:f.push({...M,name:c}),X("models",f)},placeholder:"Model Name"})}),e.jsx(ie,{label:x("configForm.contextWindow"),children:e.jsx(Me,{value:String(M.contextWindow||""),onChange:c=>{const f=[...P],w=f.findIndex(_=>_.id===L);w>=0?f[w]={...M,contextWindow:parseInt(c,10)||0}:f.push({...M,contextWindow:parseInt(c,10)||0}),X("models",f)},placeholder:"200000",mono:!0})})]}),e.jsx("div",{className:"text-xs text-muted bg-[var(--card)] border border-[var(--border)] rounded-md p-3",children:x("configForm.proxyNote")})]})]})]}),e.jsxs(As,{title:x("configForm.imChannelConfig"),id:"im-channel-section",children:[e.jsx(ie,{label:x("configForm.sessionIsolation"),hint:x("configForm.sessionIsolationHint"),children:e.jsxs(at,{value:((de=t==null?void 0:t.session)==null?void 0:de.dmScope)||"main",onChange:c=>y("session.dmScope",c),children:[e.jsx("option",{value:"main",children:x("configForm.sessionMain")}),e.jsx("option",{value:"per-peer",children:x("configForm.sessionPerPeer")}),e.jsx("option",{value:"per-channel-peer",children:x("configForm.sessionPerChannelPeer")}),e.jsx("option",{value:"per-account-channel-peer",children:x("configForm.sessionPerAccountChannelPeer")})]})}),Dt.map(c=>{rt.find(Q=>Q.id===c);const f=x(`configForm.channel.${c}`,{defaultValue:c}),w=k[c]||{enabled:!0},_=w.enabled!==!1,K=Wa[c]||c,oe=s[K],T=c==="openclaw-weixin"?"#07C160":"#3370FF";return e.jsxs("div",{className:"border border-[var(--border)] rounded-lg p-4 space-y-3 bg-[var(--card)]",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-foreground",children:f}),e.jsx("span",{className:"text-[11px] text-muted font-mono",children:c})]}),e.jsx(_s,{checked:_,onChange:Q=>{k[c]||H(c),W(c,"enabled",Q)},label:x(_?"common:label.enabled":"common:label.disabled")})]}),_&&(oe==="installing"?e.jsx("div",{className:"rounded-md px-4 py-3",style:{background:`${T}10`,borderColor:`${T}30`,borderWidth:1,borderStyle:"solid"},children:e.jsxs("div",{className:"flex items-center gap-2 text-sm",style:{color:T},children:[e.jsx("div",{className:"w-4 h-4 border-2 rounded-full animate-spin",style:{borderColor:`${T}30`,borderTopColor:T}}),e.jsx("span",{children:x("configForm.pluginInstalling",{label:f})})]})}):oe!=="installed"?e.jsxs("div",{className:"rounded-md px-4 py-3",style:{background:`${T}08`,borderColor:`${T}30`,borderWidth:1,borderStyle:"dashed"},children:[e.jsx("button",{onClick:()=>i==null?void 0:i(K),className:"px-4 py-2 text-white rounded-md text-xs font-medium hover:opacity-90 transition-opacity",style:{background:T},children:x("configForm.installPlugin",{label:f})}),e.jsx("p",{className:"text-xs text-muted mt-2",children:x("configForm.installPluginHint",{label:f})})]}):e.jsxs(e.Fragment,{children:[(c==="feishu"||c==="lark")&&e.jsx(Va,{instanceId:o,channelKey:c,existingAppId:w.appId,existingDomain:w.domain||c,onConfigured:()=>{o&&ys(async()=>{const{getConfig:Q}=await import("./index-CCkaIEjn.js").then(se=>se.aJ);return{getConfig:Q}},__vite__mapDeps([0,1,2,3])).then(({getConfig:Q})=>{Q(o).then(se=>{se&&n(se)})})}}),c==="openclaw-weixin"&&e.jsx(Oa,{instanceId:o,onConfigured:()=>{o&&ys(async()=>{const{getConfig:Q}=await import("./index-CCkaIEjn.js").then(se=>se.aJ);return{getConfig:Q}},__vite__mapDeps([0,1,2,3])).then(({getConfig:Q})=>{Q(o).then(se=>{se&&n(se)})})}})]}))]},c)}),E.filter(c=>!Dt.includes(c)).map(c=>{const f=k[c],w=rt.find(T=>T.id===c),_=x(`configForm.channel.${c}`,{defaultValue:c}),K=(w==null?void 0:w.fields)||[],oe=w?[]:Object.keys(f).filter(T=>T!=="enabled"&&typeof f[T]=="string");return e.jsxs("div",{className:"border border-[var(--border)] rounded-lg p-4 space-y-3 bg-[var(--card)]",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-foreground",children:_}),w&&e.jsx("span",{className:"text-[11px] text-muted font-mono",children:c})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(_s,{checked:f.enabled!==!1,onChange:T=>W(c,"enabled",T),label:f.enabled!==!1?x("common:label.enabled"):x("common:label.disabled")}),e.jsx("button",{onClick:()=>ce(c),className:"text-xs text-red-400 hover:text-red-300 transition-colors",children:x("configForm.remove")})]})]}),f.enabled!==!1&&K.length>0&&e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:K.map(T=>e.jsx(ie,{label:T.label,children:e.jsx(Me,{value:f[T.key]||"",onChange:Q=>W(c,T.key,Q),placeholder:T.placeholder,type:T.type||"text",mono:!0})},T.key))}),f.enabled!==!1&&oe.length>0&&e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:oe.map(T=>e.jsx(ie,{label:T,children:e.jsx(Me,{value:f[T]||"",onChange:Q=>W(c,T,Q),placeholder:T,type:T.toLowerCase().includes("secret")||T.toLowerCase().includes("token")||T.toLowerCase().includes("password")?"password":"text",mono:!0})},T))}),f.enabled!==!1&&c==="whatsapp"&&K.length===0&&e.jsxs("div",{className:"bg-amber-500/10 border border-amber-500/20 rounded-md px-3 py-2 text-xs text-amber-400",children:[e.jsx("p",{className:"font-medium mb-1",children:x("configForm.whatsappTitle")}),e.jsx("p",{children:x("configForm.whatsappHint")})]})]},c)}),e.jsxs("div",{className:"pt-2",children:[e.jsx("p",{className:"text-xs text-muted mb-2",children:x("configForm.addImChannel")}),e.jsx("div",{className:"flex flex-wrap gap-2",children:rt.filter(c=>{if(Dt.includes(c.id))return!1;const f=q[c.id]||c.id;return!E.includes(f)&&!E.includes(c.id)}).map(c=>e.jsxs("button",{onClick:()=>H(c.id),className:"px-3 py-1.5 text-xs border border-dashed rounded-md transition-colors duration-150 border-[var(--border)] text-muted hover:border-[var(--border-hover)] hover:text-foreground",children:["+ ",x(c.labelKey,{defaultValue:c.id})]},c.id))})]})]})]})}const Ja="im",za="即时通讯",Ga="💬",Qa=[{id:"feishu",label:"飞书 / Lark",desc:"飞书机器人(WebSocket 模式)"},{id:"openclaw-weixin",label:"微信",desc:"微信扫码接入"}],Ya={id:Ja,label:za,emoji:Ga,items:Qa},Xa="skills",Za="常用 Skill",er="⚡",tr=[{id:"hubs",label:"热门Hub",emoji:"🌐",skills:[{id:"clawhub",type:"hub",label:"ClawHub",desc:"OpenClaw 官方 Skill 市场",url:"https://clawhub.ai/",installMsg:""},{id:"skillhub-tencent",type:"hub",label:"腾讯 SkillHub",desc:"腾讯技能中心,官方出品",url:"https://skillhub.tencent.com/",installMsg:""},{id:"skills-sh",type:"hub",label:"Skills.sh",desc:"第三方 Skill 聚合社区",url:"https://skills.sh/",installMsg:""},{id:"lobehub-skills",type:"hub",label:"LobeHub Skills",desc:"LobeHub 社区 Skill 市场",url:"https://lobehub.com/skills",installMsg:""},{id:"findskills",type:"hub",label:"FindSkills.org",desc:"开源 Skill 搜索与聚合平台",url:"https://www.findskills.org/",installMsg:""},{id:"playbooks-skills",type:"hub",label:"Playbooks Skills",desc:"Playbooks 社区 Skill 目录",url:"https://playbooks.com/skills",installMsg:""}]},{id:"general",label:"通用基础",emoji:"🧠",skills:[{id:"skill-vetter",label:"Skill Vetter",desc:"安全审计 Skill,安装前建议先审查",installMsg:"根据以下链接安装skill:https://clawhub.ai/spclaudehome/skill-vetter",autoInstall:!0,slashCmd:"/skill-vetter",checkDirs:["skill-vetter","Skill Vetter","SkillVetter","vetter"]},{id:"self-improving-agent-cn",label:"Self-Improving CN Agent",desc:"自我优化的 Agent,持续改进任务执行",installMsg:"根据以下链接安装skill:https://clawhub.ai/zhengxinjipai/self-improving-agent-cn",autoInstall:!0,slashCmd:"/self-improving-agent-cn",checkDirs:["self-improving-agent-cn","SelfImprovingAgentCn","self_improving_agent_cn"]},{id:"proactive-agent",label:"Proactive Agent",desc:"主动式 Agent,自动感知并提前完成任务",installMsg:"根据以下链接安装skill:https://clawhub.ai/bestrocky/proactive-agent-lite",autoInstall:!0,slashCmd:"/proactive-agent",checkDirs:["proactive-agent-lite","proactive-agent","ProactiveAgent","proactive_agent"]},{id:"multi-search-engine",label:"Multi Search Engine",desc:"多搜索引擎聚合搜索",installMsg:"根据以下链接安装skill:https://clawhub.ai/gpyangyoujun/multi-search-engine",autoInstall:!0,slashCmd:"/multi-search-engine",checkDirs:["multi-search-engine","MultiSearchEngine","multi_search_engine"]},{id:"exa-web-search-free",label:"Exa Web Search Free",desc:"免费 Exa 网页语义搜索",installMsg:"根据以下链接安装skill:https://clawhub.ai/whiteknight07/exa-web-search-free",autoInstall:!0,slashCmd:"/exa-web-search-free",checkDirs:["exa-web-search-free","ExaWebSearchFree","exa_web_search_free"]},{id:"filesystem",label:"Filesystem",desc:"本地文件系统读写与管理",installMsg:"根据以下链接安装skill:https://clawhub.ai/steipete/filesystem",autoInstall:!0,slashCmd:"/filesystem",checkDirs:["filesystem","steipete-filesystem"]},{id:"summarize",label:"Summarize",desc:"内容摘要与总结提炼",installMsg:"根据以下链接安装skill:https://clawhub.ai/steipete/summarize",autoInstall:!0,slashCmd:"/summarize",checkDirs:["summarize","steipete-summarize"]},{id:"baidu-search",label:"百度搜索",desc:"百度搜索引擎集成",installMsg:"根据以下链接安装skill:https://clawhub.ai/ide-rea/baidu-search",autoInstall:!0,slashCmd:"/baidu-search",checkDirs:["baidu-search","BaiduSearch"]},{id:"agent-browser-clawdbot",label:"Agent Browser",desc:"AI 驱动的网页浏览与自动化操作",installMsg:"根据以下链接安装skill:https://clawhub.ai/matrixy/agent-browser-clawdbot",autoInstall:!0,slashCmd:"/agent-browser-clawdbot",checkDirs:["agent-browser-clawdbot","agent-browser","AgentBrowser"]},{id:"automation-workflows",label:"Automation Workflows",desc:"自动化工作流编排与执行",installMsg:"根据以下链接安装skill:https://clawhub.ai/jk-0001/automation-workflows",autoInstall:!0,slashCmd:"/automation-workflows",checkDirs:["automation-workflows","AutomationWorkflows"]},{id:"evolver",label:"Evolver",desc:"Agent 自动进化与能力迭代",installMsg:"根据以下链接安装skill:https://clawhub.ai/autogame-17/evolver",autoInstall:!0,slashCmd:"/evolver",checkDirs:["evolver","autogame-evolver"]}]},{id:"productivity",label:"工作效率",emoji:"💼",skills:[{id:"pdf-reader",label:"PDF Reader",desc:"PDF 文档读取与分析",installMsg:"根据以下链接安装skill:https://clawhub.ai/awspace/pdf",autoInstall:!0,slashCmd:"/pdf",checkDirs:["pdf","pdf-reader","awspace-pdf"]},{id:"powerpoint-pptx",label:"PowerPoint / PPTX",desc:"PPT 演示文稿生成与编辑",installMsg:"根据以下链接安装skill:https://clawhub.ai/ivangdavila/powerpoint-pptx",autoInstall:!0,slashCmd:"/powerpoint-pptx",checkDirs:["powerpoint-pptx","powerpoint","pptx"]},{id:"word-docx",label:"Word / DOCX",desc:"Word 文档生成与编辑",installMsg:"根据以下链接安装skill:https://clawhub.ai/ivangdavila/word-docx",autoInstall:!0,slashCmd:"/word-docx",checkDirs:["word-docx","word","docx"]},{id:"excel-xlsx",label:"Excel / XLSX",desc:"Excel 表格生成与数据处理",installMsg:"根据以下链接安装skill:https://clawhub.ai/ivangdavila/excel-xlsx",autoInstall:!0,slashCmd:"/excel-xlsx",checkDirs:["excel-xlsx","excel","xlsx"]},{id:"ai-ppt-generator",label:"AI PPT Generator",desc:"AI 自动生成 PPT 演示文稿",installMsg:"根据以下链接安装skill:https://clawhub.ai/ide-rea/ai-ppt-generator",autoInstall:!0,slashCmd:"/ai-ppt-generator",checkDirs:["ai-ppt-generator","AiPptGenerator"]},{id:"nano-banana-pro",label:"Nano Banana Pro",desc:"轻量高效的任务执行与流程优化",installMsg:"根据以下链接安装skill:https://clawhub.ai/steipete/nano-banana-pro",autoInstall:!0,slashCmd:"/nano-banana-pro",checkDirs:["nano-banana-pro","NanoBananaPro"]},{id:"ppt-generator",label:"PPT Generator",desc:"PPT 演示文稿智能生成",installMsg:"根据以下链接安装skill:https://clawhub.ai/wwlyzzyorg/ppt-generator",autoInstall:!0,slashCmd:"/ppt-generator",checkDirs:["ppt-generator","PptGenerator"]},{id:"marketing-mode",label:"Marketing Mode",desc:"营销文案与推广内容创作",installMsg:"根据以下链接安装skill:https://clawhub.ai/thesethrose/marketing-mode",autoInstall:!0,slashCmd:"/marketing-mode",checkDirs:["marketing-mode","MarketingMode"]},{id:"data-analysis",label:"Data Analysis",desc:"数据分析与可视化报告生成",installMsg:"根据以下链接安装skill:https://clawhub.ai/ivangdavila/data-analysis",autoInstall:!0,slashCmd:"/data-analysis",checkDirs:["data-analysis","DataAnalysis"]}]},{id:"life",label:"生活辅助",emoji:"🏠",skills:[{id:"todo-manager",label:"Todo Manager",desc:"任务与待办事项管理",installMsg:"根据以下链接安装skill:https://clawhub.ai/aeoleader/todo-manager",autoInstall:!0,slashCmd:"/todo-manager",checkDirs:["todo-manager","todo","TodoManager"]},{id:"12306",label:"12306 火车票",desc:"查询与购买 12306 火车票",installMsg:"根据以下链接安装skill:https://clawhub.ai/kirorab/12306",autoInstall:!0,slashCmd:"/12306",checkDirs:["12306","kirorab-12306"]},{id:"youtube-watcher",label:"YouTube Watcher",desc:"YouTube 视频摘要与内容分析",installMsg:"根据以下链接安装skill:https://clawhub.ai/michaelgathara/youtube-watcher",autoInstall:!0,slashCmd:"/youtube-watcher",checkDirs:["youtube-watcher","youtube","YoutubeWatcher"]},{id:"xiaohongshu-cn",label:"小红书助手",desc:"小红书内容创作与运营辅助",installMsg:"根据以下链接安装skill:https://clawhub.ai/guohongbin-git/xiaohongshu-cn",autoInstall:!0,slashCmd:"/xiaohongshu-cn",checkDirs:["xiaohongshu-cn","xiaohongshu","XiaohongshuCn"]},{id:"wechat-mp-cn",label:"微信公众号助手",desc:"微信公众号内容创作与发布辅助",installMsg:"根据以下链接安装skill:https://clawhub.ai/guohongbin-git/wechat-mp-cn",autoInstall:!0,slashCmd:"/wechat-mp-cn",checkDirs:["wechat-mp-cn","wechat-mp","WechatMpCn"]},{id:"weather",label:"Weather",desc:"实时天气查询与预报",installMsg:"根据以下链接安装skill:https://clawhub.ai/steipete/weather",autoInstall:!0,slashCmd:"/weather",checkDirs:["weather","steipete-weather"]},{id:"stock-analysis",label:"Stock Analysis",desc:"股票行情分析与投资参考",installMsg:"根据以下链接安装skill:https://clawhub.ai/udiedrichsen/stock-analysis",autoInstall:!0,slashCmd:"/stock-analysis",checkDirs:["stock-analysis","StockAnalysis"]},{id:"news-summary",label:"News Summary",desc:"新闻资讯聚合与摘要生成",installMsg:"根据以下链接安装skill:https://clawhub.ai/joargp/news-summary",autoInstall:!0,slashCmd:"/news-summary",checkDirs:["news-summary","NewsSummary"]}]},{id:"dev",label:"开发工具",emoji:"🛠️",skills:[{id:"github",label:"GitHub",desc:"GitHub 仓库管理与代码协作",installMsg:"根据以下链接安装skill:https://clawhub.ai/steipete/github",autoInstall:!0,slashCmd:"/github",checkDirs:["github","GitHub","steipete-github"]},{id:"gemini",label:"Gemini",desc:"Google Gemini 模型接入与调用",installMsg:"根据以下链接安装skill:https://clawhub.ai/steipete/gemini",autoInstall:!0,slashCmd:"/gemini",checkDirs:["gemini","Gemini","steipete-gemini"]},{id:"api-gateway",label:"API Gateway",desc:"API 接口管理与请求代理",installMsg:"根据以下链接安装skill:https://clawhub.ai/byungkyu/api-gateway",autoInstall:!0,slashCmd:"/api-gateway",checkDirs:["api-gateway","ApiGateway"]},{id:"mcporter",label:"MCPorter",desc:"MCP 服务器管理工具",installMsg:"根据以下链接安装skill:https://clawhub.ai/steipete/mcporter",autoInstall:!0,slashCmd:"/mcporter",checkDirs:["mcporter","MCPorter","steipete-mcporter"]},{id:"session-logs",label:"Session Logs",desc:"会话日志记录与回放分析",installMsg:"根据以下链接安装skill:https://clawhub.ai/guogang1024/session-logs",autoInstall:!0,slashCmd:"/session-logs",checkDirs:["session-logs","SessionLogs"]}]}],ht={id:Xa,label:Za,emoji:er,groups:tr},sr="mcp",ar="常用 MCP",rr="🔌",nr=[{id:"12306-mcp",label:"12306-MCP车票查询工具",desc:"12306-MCP车票查询工具",mcpJson:{"12306-mcp":{command:"npx",args:["-y","12306-mcp"]}}},{id:"bing-search",label:"Bing 搜索",desc:"必应搜索引擎 MCP 接入",mcpJson:{"bing-search":{command:"npx",args:["-y","bing-cn-mcp"]}}},{id:"fxbaogao-mcp",label:"发现报告",desc:"发现报告研究报告检索与阅读",mcpJson:{"fxbaogao-mcp":{command:"uvx",args:["fxbaogao-mcp@latest"]}}}],lr={id:sr,label:ar,emoji:rr,items:nr},or="slash",ir="常用 /命令",cr="/",dr=[{label:"会话",items:[{id:"slash-new",label:"/new",desc:"开启新会话",cmd:"/new",send:!0},{id:"slash-reset",label:"/reset",desc:"重置当前会话",cmd:"/reset",send:!0},{id:"slash-compact",label:"/compact",desc:"压缩会话上下文",cmd:"/compact",send:!0},{id:"slash-stop",label:"/stop",desc:"停止当前运行",cmd:"/stop",send:!0},{id:"slash-clear",label:"/clear",desc:"清空聊天记录",cmd:"/clear",send:!0},{id:"slash-focus",label:"/focus",desc:"切换专注模式",cmd:"/focus",send:!0}]},{label:"模型",items:[{id:"slash-model",label:"/model <name>",desc:"查看或切换模型",cmd:"/model ",send:!1},{id:"slash-think",label:"/think <level>",desc:"设置思考深度",cmd:"/think ",send:!1},{id:"slash-verbose",label:"/verbose <on|off|full>",desc:"切换详细输出模式",cmd:"/verbose ",send:!1},{id:"slash-fast",label:"/fast <status|on|off>",desc:"切换快速模式",cmd:"/fast ",send:!1}]},{label:"工具",items:[{id:"slash-help",label:"/help",desc:"查看可用命令",cmd:"/help",send:!0},{id:"slash-status",label:"/status",desc:"显示会话状态(agent)",cmd:"/status",send:!0},{id:"slash-export",label:"/export",desc:"导出会话为 Markdown",cmd:"/export",send:!0},{id:"slash-usage",label:"/usage",desc:"显示 Token 用量",cmd:"/usage",send:!0}]}],ur={id:or,label:ir,emoji:cr,groups:dr};function mr({gatewayLaunchUrl:t,gatewayReady:n,isRunning:o,isPending:u,iframeLoaded:s,actionLoading:i,onAction:x,onReload:y,onIframeLoad:r}){const{t:g}=me("instance");return e.jsx("div",{className:"overflow-hidden rounded-[22px] border border-[var(--border)] bg-[var(--card)] shadow-[0_18px_48px_rgba(15,23,42,0.06)]",children:e.jsxs("div",{className:"relative",style:{height:"calc(100vh - 160px)",minHeight:"500px"},children:[(!o||!n||!s)&&e.jsx("div",{className:`absolute inset-0 w-full h-full bg-[var(--card)] flex flex-col items-center justify-center z-10 transition-opacity duration-300 ${s?"opacity-0 pointer-events-none":"opacity-100"}`,children:o?n?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-[#0066FF]/30 border-t-[#0066FF] rounded-full animate-spin mb-3"}),e.jsx("div",{className:"text-sm text-foreground/60",children:g("chat.loadingChat")})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-[#0066FF]/30 border-t-[#0066FF] rounded-full animate-spin mb-3"}),e.jsx("div",{className:"text-sm text-foreground/60",children:g("chat.waitingGateway")})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-4xl mb-4 opacity-40",children:"💬"}),e.jsx("div",{className:"text-sm text-foreground/60 font-medium mb-1",children:g("chat.notReady")}),e.jsx("div",{className:"text-xs text-muted mb-4",children:g("chat.startHint")}),e.jsx("button",{onClick:()=>x("start"),disabled:!!i||u,className:"px-4 py-2 bg-[#0066FF] text-white rounded-md text-xs font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all duration-200",children:g(i==="start"||u?"action.starting":"chat.startInstance")})]})}),n&&t&&e.jsx("iframe",{id:"gateway-iframe",src:t,className:"w-full h-full",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-downloads allow-modals",allow:"microphone; camera; clipboard-write",onLoad:r})]})})}function xr(t){return!t||typeof t!="object"?[]:Object.entries(t).map(([n,o])=>({group:n,items:Array.isArray(o)?o.map(u=>typeof u=="string"?{cmd:u,label:u}:!u||typeof u!="object"||typeof u.cmd!="string"||!u.cmd.trim()?null:{cmd:u.cmd.trim(),label:typeof u.label=="string"&&u.label.trim()?u.label.trim():u.cmd.trim(),description:typeof u.description=="string"&&u.description.trim()?u.description.trim():void 0}).filter(u=>!!u):[]})).filter(n=>n.items.length>0)}function pr({instanceId:t,provide:n,isRunning:o}){var H,ce,le;const[u,s]=d.useState(""),[i,x]=d.useState(((ce=(H=n.terminal)==null?void 0:H.prompt)==null?void 0:ce.trim())||"shell"),[y,r]=d.useState(null),[g,b]=d.useState(!1),[F,P]=d.useState(()=>{var V,Z;const v=[],C=(Z=(V=n.terminal)==null?void 0:V.welcome)==null?void 0:Z.trim();return C&&v.push({id:1,kind:"status",text:C}),v}),I=d.useRef(null),L=d.useRef(null),R=d.useRef(F.length+1),M=d.useRef(0),Y=d.useRef(null),ue=d.useMemo(()=>{var v;return xr((v=n.terminal)==null?void 0:v.commands)},[(le=n.terminal)==null?void 0:le.commands]),J=(v,C,V=!1)=>{const Z=C.trimEnd();Z.trim()&&P(z=>{if(V&&z.length>0){const D=z[z.length-1];if(D.kind===v){const G=[...z];return G[G.length-1]={...D,text:Z},G}}return[...z,{id:R.current++,kind:v,text:Z}]})},X=()=>{var v;(v=I.current)==null||v.close(),I.current=null},k=v=>{X();const C=ta(`/api/instances/${encodeURIComponent(t)}/provides/${encodeURIComponent(n.capability)}/terminal/session/${encodeURIComponent(v)}/stream?since=${M.current}`),V=new EventSource(C,{withCredentials:sa()});I.current=V;const Z=z=>D=>{try{const G=JSON.parse(D.data);typeof(G==null?void 0:G.seq)=="number"&&(M.current=Math.max(M.current,G.seq)),typeof(G==null?void 0:G.text)=="string"&&G.text&&J(z,G.text,(G==null?void 0:G.replace)===!0)}catch{typeof D.data=="string"&&D.data&&J(z,D.data)}};V.addEventListener("stdout",Z("stdout")),V.addEventListener("stderr",Z("stderr")),V.addEventListener("error",z=>{const D=z instanceof MessageEvent?z.data:"";typeof D=="string"&&D&&J("stderr",D),r(null),L.current=null,X()}),V.addEventListener("exit",z=>{try{const D=JSON.parse(z.data);typeof(D==null?void 0:D.seq)=="number"&&(M.current=Math.max(M.current,D.seq)),J("status",`process exited with code ${(D==null?void 0:D.exitCode)??"unknown"}`)}catch{J("status","process exited")}r(null),L.current=null,X()}),V.addEventListener("done",()=>{r(null),L.current=null,X()})},E=async v=>{const C=v.trim();if(!(!C||g||!o)){b(!0);try{J("cmd",`${i}> ${C}`);const V=await Zs(t,n.capability,{input:C});x(V.prompt||i),r(V.sessionId),L.current=V.sessionId,M.current=0,k(V.sessionId),s("")}catch(V){J("stderr",(V==null?void 0:V.message)||"failed to start terminal session")}finally{b(!1)}}},W=async()=>{const v=u.trim();if(!(g||!o)){if(!y){await E(v);return}b(!0);try{J("cmd",`${i}> ${v}`),await ea(t,n.capability,y,{input:v}),s("")}catch(C){J("stderr",(C==null?void 0:C.message)||"failed to send terminal input")}finally{b(!1)}}},q=async()=>{if(!(!y||g)){b(!0);try{await js(t,n.capability,y),J("status","session stopped")}catch(v){J("stderr",(v==null?void 0:v.message)||"failed to stop terminal session")}finally{b(!1)}}};return d.useEffect(()=>{const v=Y.current;if(v){if(typeof v.scrollTo=="function"){v.scrollTo({top:v.scrollHeight});return}v.scrollTop=v.scrollHeight}},[F]),d.useEffect(()=>()=>{const v=L.current;X(),v&&js(t,n.capability,v).catch(()=>{})},[t,n.capability]),e.jsxs("div",{className:"grid gap-4 lg:grid-cols-[280px_minmax(0,1fr)]",children:[e.jsxs("aside",{className:"rounded-[22px] border border-[var(--border)] bg-[var(--card)] p-4",children:[e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-sm font-semibold text-foreground",children:"Ollama Commands"}),e.jsx("div",{className:"mt-1 text-xs text-muted",children:"点击左侧命令会自动写入终端并执行。"})]}),e.jsx("div",{className:"space-y-4",children:ue.map(v=>e.jsxs("section",{children:[e.jsx("div",{className:"mb-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-foreground/55",children:v.group}),e.jsx("div",{className:"space-y-2",children:v.items.map(C=>e.jsxs("button",{type:"button",disabled:!o||!!y||g,onClick:()=>{s(C.cmd),E(C.cmd)},className:"w-full rounded-2xl border border-[var(--border)] bg-black/[0.03] px-3 py-2 text-left transition hover:border-[#0066FF]/35 hover:bg-[#0066FF]/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[e.jsx("div",{className:"font-mono text-xs text-foreground",children:C.label}),C.description&&e.jsx("div",{className:"mt-1 text-[11px] leading-5 text-muted",children:C.description})]},`${v.group}:${C.cmd}`))})]},v.group))})]}),e.jsxs("section",{className:"rounded-[22px] border border-[var(--border)] bg-[#09111f] text-[#d7e3ff] shadow-[0_18px_60px_rgba(4,12,24,0.28)]",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 px-4 py-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold text-white",children:n.description||"Ollama Terminal"}),e.jsx("div",{className:"mt-1 text-xs text-[#9cb3d9]",children:"支持直接输入 `ollama` 子命令;输入 `ollama list` 或 `list` 都可以。"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-[#9cb3d9]",children:[e.jsx("span",{className:`inline-flex h-2.5 w-2.5 rounded-full ${o?"bg-[#39d98a]":"bg-[#ff6b6b]"}`}),e.jsx("span",{children:o?y?"session running":"ready":"service stopped"}),e.jsx("button",{type:"button",onClick:()=>void q(),disabled:!y||g,className:"rounded-full border border-white/15 px-3 py-1 text-[11px] uppercase tracking-[0.16em] text-white transition hover:border-white/35 disabled:cursor-not-allowed disabled:opacity-45",children:"Stop"})]})]}),e.jsx("div",{ref:Y,className:"h-[520px] overflow-y-auto px-4 py-4 font-mono text-sm leading-6",children:F.length===0?e.jsxs("div",{className:"text-[#9cb3d9]",children:[i,"> 输入 `list`、`ps`、`pull gemma4:e4b` 或 `run gemma4:e2b` 开始。"]}):F.map(v=>e.jsx("div",{className:v.kind==="stderr"?"whitespace-pre-wrap text-[#ff9c9c]":v.kind==="cmd"?"whitespace-pre-wrap text-[#7fd0ff]":v.kind==="status"?"whitespace-pre-wrap text-[#9cb3d9]":"whitespace-pre-wrap text-[#d7e3ff]",children:v.text},v.id))}),e.jsxs("div",{className:"border-t border-white/10 px-4 py-4",children:[!o&&e.jsx("div",{className:"mb-3 rounded-2xl border border-[#ff6b6b]/25 bg-[#ff6b6b]/10 px-3 py-2 text-sm text-[#ffc2c2]",children:"当前实例未运行,先启动 Ollama 服务后才能执行命令。"}),e.jsxs("div",{className:"flex items-end gap-3",children:[e.jsxs("div",{className:"min-w-0 flex-1 rounded-2xl border border-white/10 bg-black/20 px-3 py-2",children:[e.jsx("div",{className:"mb-1 text-[11px] uppercase tracking-[0.18em] text-[#7f97c2]",children:y?"stdin":"command"}),e.jsx("textarea",{value:u,onChange:v=>s(v.target.value),onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),W())},rows:y?2:1,disabled:!o||g,placeholder:y?"向当前 ollama 会话发送一行输入":"例如:list / pull qwen3.6:35b / run gemma4:e2b",className:"w-full resize-none border-0 bg-transparent p-0 font-mono text-sm text-[#e8f0ff] outline-none placeholder:text-[#7188b2]"})]}),e.jsx("button",{type:"button",onClick:()=>void W(),disabled:!o||g||!u.trim(),className:"rounded-2xl bg-[#0066FF] px-4 py-3 text-sm font-semibold text-white transition hover:bg-[#0052cc] disabled:cursor-not-allowed disabled:opacity-50",children:y?"Send":"Run"})]})]})]})]})}function fr({logs:t,logSearch:n,logType:o,logsEndRef:u,onSearchChange:s,onLogTypeChange:i,onRefresh:x,onCopy:y}){const{t:r}=me("instance"),g=n?t.filter(b=>b.toLowerCase().includes(n.toLowerCase())):t;return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[e.jsx(aa,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted"}),e.jsx("input",{type:"text",value:n,onChange:b=>s(b.target.value),placeholder:r("logs.searchPlaceholder"),className:"w-full bg-[var(--input-bg)] border border-[var(--border)] rounded-md pl-9 pr-3 py-1.5 text-sm text-foreground placeholder-[var(--muted)] focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60 focus:border-[#0066FF]/60 transition-colors"})]}),e.jsx("div",{className:"flex items-center gap-1",children:["stderr","stdout"].map(b=>e.jsx("button",{onClick:()=>i(b),className:`px-2.5 py-1.5 text-xs rounded-md transition-colors duration-150 ${o===b?"bg-[#0066FF] text-white":"text-muted hover:bg-[var(--card-hover)]"}`,children:b},b))}),e.jsx("button",{onClick:x,className:"p-1.5 border border-[var(--border)] rounded-md text-muted hover:text-foreground hover:bg-[var(--card-hover)] transition-colors",title:r("common:action.refresh"),children:e.jsx(Os,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:y,className:"p-1.5 border border-[var(--border)] rounded-md text-muted hover:text-foreground hover:bg-[var(--card-hover)] transition-colors",title:r("common:action.copyAll"),children:e.jsx(ra,{className:"w-3.5 h-3.5"})})]}),e.jsxs("div",{className:"bg-black/60 border border-[var(--border)] rounded-xl font-mono text-[13px] p-4 min-h-[400px] lg:min-h-[500px] overflow-auto max-h-[70vh]",children:[g.length===0?e.jsx("p",{className:"text-muted",children:r("logs.empty")}):g.map((b,F)=>{const P=/error|ERR|panic|fatal/i.test(b),I=/warn|WARN/i.test(b);return e.jsx("div",{className:`whitespace-pre-wrap break-all leading-5 ${P?"text-red-400 bg-red-950/20":I?"text-amber-400":"text-foreground opacity-70"}`,children:b},`${F}-${b.slice(0,32)}`)}),e.jsx("div",{ref:u})]})]})}function hr({usage:t,onRefresh:n}){const{t:o}=me("instance");if(!t)return e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"grid grid-cols-3 gap-3",children:[1,2,3].map(s=>e.jsx("div",{className:"h-20 bg-[var(--card)] rounded-lg"},s))}),e.jsx("div",{className:"h-60 bg-[var(--card)] rounded-lg"})]})});const u=qa.language==="zh"?"zh-CN":"en-US";return e.jsxs("div",{className:"space-y-4",children:[t.totals.totalTokens===0&&t.totals.messages>0&&e.jsx("div",{className:"bg-[var(--card)] border border-[var(--border)] text-muted text-sm rounded-lg px-4 py-3",children:o("usage.noTokenData")}),e.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-3 gap-3",children:[{label:o("usage.messages"),value:t.totals.messages.toLocaleString()},{label:o("usage.totalTokens"),value:t.totals.totalTokens.toLocaleString()},{label:o("usage.totalCost"),value:`$${t.totals.costTotal.toFixed(4)}`}].map(s=>e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl p-4 hover:border-[var(--border-hover)] transition-colors",children:[e.jsx("div",{className:"text-xs text-muted mb-1",children:s.label}),e.jsx("div",{className:"text-2xl font-semibold text-foreground",children:s.value})]},s.label))}),e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-3 border-b border-[var(--border)] flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm font-medium text-foreground",children:[o("usage.sessions")," (",t.sessions.length,")"]}),e.jsx("button",{onClick:n,className:"text-xs text-muted hover:text-foreground transition-colors",children:o("common:action.refresh")})]}),t.sessions.length===0?e.jsx("p",{className:"text-muted text-sm p-4",children:o("usage.noSessions")}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-xs text-muted border-b border-[var(--border)]",children:[e.jsx("th",{className:"text-left font-medium px-4 py-2",children:o("usage.time")}),e.jsx("th",{className:"text-left font-medium px-4 py-2",children:o("usage.model")}),e.jsx("th",{className:"text-left font-medium px-4 py-2",children:o("usage.source")}),e.jsx("th",{className:"text-right font-medium px-4 py-2",children:o("usage.messagesShort")}),e.jsx("th",{className:"text-right font-medium px-4 py-2",children:o("usage.input")}),e.jsx("th",{className:"text-right font-medium px-4 py-2",children:o("usage.output")}),e.jsx("th",{className:"text-right font-medium px-4 py-2",children:o("usage.tokens")}),e.jsx("th",{className:"text-right font-medium px-4 py-2",children:o("usage.cost")})]})}),e.jsx("tbody",{className:"divide-y divide-[var(--border)]",children:t.sessions.map(s=>e.jsxs("tr",{className:"hover:bg-[var(--card-hover)] transition-colors",children:[e.jsx("td",{className:"px-4 py-2 text-muted whitespace-nowrap",children:s.lastMessage?new Date(s.lastMessage).toLocaleString(u,{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"-"}),e.jsx("td",{className:"px-4 py-2 font-mono text-xs text-muted",children:s.model||"-"}),e.jsxs("td",{className:"px-4 py-2 text-muted",children:[s.channel&&e.jsx("span",{className:"inline-block bg-[var(--card-hover)] text-muted text-[11px] px-1.5 py-0.5 rounded mr-1 font-medium",children:s.channel}),e.jsx("span",{className:"text-xs text-muted opacity-60",children:s.origin?s.origin.length>20?s.origin.slice(0,20)+"...":s.origin:""})]}),e.jsx("td",{className:"px-4 py-2 text-right tabular-nums text-muted",children:s.usage.messages}),e.jsx("td",{className:"px-4 py-2 text-right font-mono text-xs tabular-nums text-muted",children:s.usage.input.toLocaleString()}),e.jsx("td",{className:"px-4 py-2 text-right font-mono text-xs tabular-nums text-muted",children:s.usage.output.toLocaleString()}),e.jsx("td",{className:"px-4 py-2 text-right font-mono text-xs tabular-nums text-muted",children:s.usage.totalTokens.toLocaleString()}),e.jsxs("td",{className:"px-4 py-2 text-right font-mono text-xs tabular-nums text-muted",children:["$",s.usage.costTotal.toFixed(4)]})]},s.key))})]})})]})]})}const br={llm:{iconEmoji:"🤖",labelKey:"connections.category.llm.label",descriptionKey:"connections.category.llm.description",leaveBlankKey:"connections.category.llm.leaveBlank",emptyMode:"installCta",presetApps:[{specId:"ollama",labelKey:"connections.preset.ollama"}]},search:{iconEmoji:"🔍",labelKey:"connections.category.search.label",descriptionKey:"connections.category.search.description",leaveBlankKey:"connections.category.search.leaveBlank",emptyMode:"installCta",presetApps:[{specId:"searxng-container",labelKey:"connections.preset.searxng"}]},browser:{iconEmoji:"🌐",labelKey:"connections.category.browser.label",descriptionKey:"connections.category.browser.description",leaveBlankKey:"connections.category.browser.leaveBlank",emptyMode:"installCta",presetApps:[{specId:"browserless-chromium-container",labelKey:"connections.preset.browserless"}]},mcp:{iconEmoji:"🧰",labelKey:"connections.category.mcp.label",descriptionKey:"connections.category.mcp.description",leaveBlankKey:"connections.category.mcp.leaveBlank",emptyMode:"mcpAddCta",presetApps:[],hidden:!0},files:{iconEmoji:"📁",labelKey:"connections.category.files.label",descriptionKey:"connections.category.files.description",leaveBlankKey:"connections.category.files.leaveBlank",emptyMode:"installCta",presetApps:[{specId:"filebrowser-container",labelKey:"connections.preset.filebrowser"}]},knowledge:{iconEmoji:"📚",labelKey:"connections.category.knowledge.label",descriptionKey:"connections.category.knowledge.description",leaveBlankKey:"connections.category.knowledge.leaveBlank",emptyMode:"installCta",presetApps:[{specId:"anythingllm-container",labelKey:"connections.preset.anythingllm"},{specId:"jishu-kb-container",labelKey:"connections.preset.jishu-kb"}]}},gr={iconEmoji:"⚙️",labelKey:"connections.category.default.label",descriptionKey:"connections.category.default.description",leaveBlankKey:"connections.category.default.leaveBlank",emptyMode:"noCta",presetApps:[]};function Lt(t){return br[t]??gr}function vr(t){return t.unboundRequired.length>0?"required":t.unboundOptional.length>0?"optional":"ok"}function yr(t){const{t:n}=me("instance");if(t.totalSlots===0)return null;const o=vr(t),u=o==="required"?"border-red-300 bg-red-50 dark:border-red-700 dark:bg-red-900/20":o==="optional"?"border-amber-300 bg-amber-50 dark:border-amber-700 dark:bg-amber-900/20":"border-green-300 bg-green-50 dark:border-green-700 dark:bg-green-900/20",s=o==="required"?"⚠":o==="optional"?"⚡":"●";if(o==="required"){const x=n("connections.healthBar.required",{slots:""}).replace(/\s*$/,"");return e.jsxs("div",{className:`mb-5 flex items-center justify-between gap-3 rounded-lg border px-4 py-2.5 text-sm ${u}`,"data-testid":"connections-health-bar","data-state":o,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsxs("span",{className:"font-medium",children:[x," ",t.unboundRequired.map((y,r)=>{var g;return e.jsxs("span",{title:((g=t.pendingReasons)==null?void 0:g[y])??void 0,children:[y,r<t.unboundRequired.length-1?", ":""]},y)})]})]}),e.jsxs("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:["ⓘ ",n("connections.healthBar.restartHint")]})]})}let i;return o==="ok"?i=n("connections.healthBar.allOk",{bound:t.boundSlots,total:t.totalSlots}):i=n("connections.healthBar.optional",{bound:t.boundSlots,optional:t.unboundOptional.length}),e.jsxs("div",{className:`mb-5 flex items-center justify-between gap-3 rounded-lg border px-4 py-2.5 text-sm ${u}`,"data-testid":"connections-health-bar","data-state":o,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx("span",{className:"font-medium",children:i})]}),e.jsxs("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:["ⓘ ",n("connections.healthBar.restartHint")]})]})}const Ms="inline-block w-2 h-2 rounded-full bg-green-500 mr-1.5 align-middle",$s="inline-block w-2 h-2 rounded-full bg-gray-400 mr-1.5 align-middle";function jr({slot:t,value:n,onPick:o,onToggleMany:u}){const{t:s}=me("instance");if(t.cardinality==="many")return e.jsx("div",{className:"space-y-1.5",children:t.candidates.map(r=>{const g=(n==null?void 0:n.kind)==="many"&&n.providers.some(b=>b.providerId===r.providerId&&b.capability===r.capability);return e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("input",{type:"checkbox",checked:!!g,onChange:b=>u(t,r.providerId,r.capability,b.target.checked)}),e.jsx("span",{className:r.status==="running"?Ms:$s}),e.jsx("span",{className:"font-medium",children:r.name??r.providerId}),e.jsxs("span",{className:"text-xs text-gray-500",children:[r.capability," · ",r.status==="running"?s("connections.statusRunning"):s("connections.statusStopped")]})]},`${r.providerId}::${r.capability}`)})});const i=(r,g)=>`${r}|${g}`,x=(n==null?void 0:n.kind)==="single"?i(n.providerId,n.capability):"",y=(n==null?void 0:n.kind)==="single"?t.candidates.find(r=>r.providerId===n.providerId&&r.capability===n.capability):void 0;return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:(y==null?void 0:y.status)==="running"?Ms:$s,"aria-hidden":!0}),e.jsxs("select",{className:"flex-1 px-3 py-1.5 border border-gray-300 dark:border-gray-600 dark:bg-gray-800 rounded text-sm font-medium",value:x,onChange:r=>{const g=r.target.value;if(!g){o(t,"","");return}const b=g.indexOf("|");if(b<0)return;const F=g.slice(0,b),P=g.slice(b+1),I=t.candidates.find(L=>L.providerId===F&&L.capability===P);I&&o(t,I.providerId,I.capability)},children:[e.jsx("option",{value:"",children:s("connections.unbound")}),t.candidates.map(r=>e.jsxs("option",{value:i(r.providerId,r.capability),children:[r.name??r.providerId," (",r.capability,") ·"," ",r.status==="running"?s("connections.statusRunning"):s("connections.statusStopped")]},i(r.providerId,r.capability)))]})]})}const Vt="rounded border border-dashed border-gray-300 dark:border-gray-700 bg-gray-50 dark:bg-gray-900/40 p-4 text-center";function kr({category:t}){const{t:n}=me("instance"),o=gt(),u=Lt(t);return u.emptyMode==="noCta"?e.jsx("div",{className:Vt,children:e.jsx("div",{className:"text-sm text-gray-700 dark:text-gray-300",children:n("connections.emptyEmpty",{categoryLabel:n(u.labelKey)})})}):u.emptyMode==="mcpAddCta"?e.jsxs("div",{className:Vt,children:[e.jsx("div",{className:"text-sm font-medium text-gray-800 dark:text-gray-200 mb-1",children:n("connections.emptyMcp")}),e.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400 mb-3",children:n(u.descriptionKey)}),e.jsx("button",{type:"button",className:"inline-flex items-center gap-1 px-3 py-1.5 rounded bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium",onClick:()=>o("/instances/new"),children:n("connections.mcpAddCta")})]}):e.jsxs("div",{className:Vt,children:[e.jsx("div",{className:"text-sm font-medium text-gray-800 dark:text-gray-200 mb-1",children:n("connections.emptyEmpty",{categoryLabel:n(u.labelKey)})}),e.jsxs("div",{className:"text-xs text-gray-600 dark:text-gray-400 mb-3",children:[n(u.leaveBlankKey)," ",n("connections.installCtaHint")]}),e.jsx("div",{className:"flex justify-center gap-2 flex-wrap",children:u.presetApps.map(s=>e.jsx("button",{type:"button",className:"inline-flex items-center gap-1 px-3 py-1.5 rounded bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium",onClick:()=>o(`/instances/new?app=${encodeURIComponent(s.specId)}`),children:n("connections.installCta",{label:n(s.labelKey)})},s.specId))})]})}function wr({slot:t}){const{t:n}=me("instance"),[o,u]=d.useState(!1);return e.jsxs("div",{className:"mt-2",children:[e.jsx("button",{type:"button",className:"text-xs text-gray-500 hover:text-blue-600 dark:hover:text-blue-400",onClick:()=>u(s=>!s),children:o?`▾ ${n("connections.techDetailsHide")}`:`▸ ${n("connections.techDetails")}`}),o&&e.jsxs("div",{className:"mt-1.5 ml-2 text-xs font-mono text-gray-500 dark:text-gray-400 space-y-0.5",children:[e.jsxs("div",{children:["inject_as: ",e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:t.inject_as})]}),e.jsxs("div",{children:["capability: ",e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:t.capability})]}),t.apply&&e.jsxs("div",{children:["apply: ",e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:t.apply})]})]})]})}function Nr({slot:t,value:n,duplicateCategory:o,onPick:u,onToggleMany:s}){const{t:i}=me("instance"),x=Lt(t.category),y=t.category==="default"?t.inject_as:i(x.labelKey),r=o&&t.category!=="default"?`${y} · ${t.inject_as}`:y,g="inline-block px-2 py-0.5 rounded-full text-[10.5px] font-medium";return e.jsxs("div",{className:"border border-gray-200 dark:border-gray-700 rounded-xl p-4 mb-3 bg-white dark:bg-gray-800/40",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{"aria-hidden":!0,className:"inline-flex w-7 h-7 rounded-md items-center justify-center bg-gray-100 dark:bg-gray-700 text-base",children:x.iconEmoji}),e.jsx("span",{className:"text-sm font-semibold text-gray-900 dark:text-gray-100",children:r})]}),e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx("span",{className:`${g} ${t.required?"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-200":"bg-gray-100 text-gray-600 dark:bg-gray-700 dark:text-gray-300"}`,children:t.required?i("connections.tagRequired"):i("connections.tagOptional")}),t.cardinality==="many"&&e.jsx("span",{className:`${g} bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-200`,children:i("connections.tagMulti")})]})]}),t.category!=="default"&&e.jsx("p",{className:"ml-9 mt-1 mb-3 text-xs text-gray-600 dark:text-gray-400 leading-relaxed",children:i(x.descriptionKey)}),e.jsxs("div",{className:"ml-9",children:[t.candidates.length===0?e.jsx(kr,{category:t.category}):e.jsx(jr,{slot:t,value:n,onPick:u,onToggleMany:s}),e.jsx(wr,{slot:t})]})]})}function Cr({hasUnsaved:t,saving:n,onSave:o}){const{t:u}=me("instance");return e.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[e.jsx("button",{type:"button",onClick:o,disabled:n||!t,className:"bg-blue-600 hover:bg-blue-700 disabled:bg-gray-300 disabled:cursor-not-allowed text-white px-4 py-2 rounded text-sm font-medium",children:u(n?"connections.saving":"connections.save")}),t&&!n&&e.jsx("span",{className:"text-sm text-amber-700 dark:text-amber-400",children:u("connections.unsaved")})]})}function Sr(t){return t?t.kind==="single"?!!t.providerId:t.kind==="many"?t.providers.length>0:!1:!1}const Fr=new Set(["MISSING_REQUIRED_CONNECTION","AMBIGUOUS_CONNECTION","USER_SELECTION_REQUIRED","PROVIDER_NOT_RUNNING","INVALID_BINDING","INVALID_PROVIDER_ID","INVALID_CAPABILITY_ENDPOINT","CONNECTION_APPLY_FAILED","CONNECTION_PERSIST_FAILED"]);function Ir(t,n){const o=(n==null?void 0:n.message)??String(n),u=n==null?void 0:n.code;return u&&Fr.has(u)?t(`connections.error.${u}`,{detail:o}):t("connections.error.generic",{detail:o})}function Er({instanceId:t,onSaved:n}){const{t:o}=me("instance"),[u,s]=d.useState(null),[i,x]=d.useState({}),[y,r]=d.useState({}),[g,b]=d.useState(!1),[F,P]=d.useState(null);d.useEffect(()=>{let k=!1;return ks(t).then(E=>{k||(s(E),x(E.connections??{}),r(E.connections??{}))}).catch(E=>!k&&P((E==null?void 0:E.message)??String(E))),()=>{k=!0}},[t]);const I=(k,E,W)=>{r(q=>E?k.cardinality==="one"?{...q,[k.inject_as]:{kind:"single",providerId:E,capability:W}}:q:{...q,[k.inject_as]:null})},L=(k,E,W,q)=>{r(H=>{const ce=H[k.inject_as],le=ce&&ce.kind==="many"?[...ce.providers]:[],v=le.findIndex(C=>C.providerId===E&&C.capability===W);return q&&v<0&&le.push({providerId:E,capability:W}),!q&&v>=0&&le.splice(v,1),le.length===0?{...H,[k.inject_as]:null}:{...H,[k.inject_as]:{kind:"many",providers:le}}})},R=d.useMemo(()=>u?u.requires.filter(k=>!Lt(k.category).hidden):[],[u]),M=async()=>{b(!0),P(null);try{await na(t,{connections:y}),n==null||n();const k=await ks(t);s(k),x(k.connections??{}),r(k.connections??{})}catch(k){P(Ir(o,k))}finally{b(!1)}},Y=d.useMemo(()=>{if(R.length===0)return{totalSlots:0,boundSlots:0,unboundOptional:[],unboundRequired:[]};const k=R.length;let E=0;const W=[],q=[];for(const H of R)Sr(y[H.inject_as])?E+=1:H.required?q.push(H.inject_as):W.push(H.inject_as);return{totalSlots:k,boundSlots:E,unboundOptional:W,unboundRequired:q}},[R,y]),ue=d.useMemo(()=>{if(R.length===0)return new Set;const k={};for(const W of R)k[W.category]=(k[W.category]??0)+1;const E=new Set;for(const[W,q]of Object.entries(k))q>1&&E.add(W);return E},[R]),J=d.useMemo(()=>{if(!u)return{};const k={};for(const E of u.pending)k[E.slot]=E.reason;return k},[u]),X=d.useMemo(()=>JSON.stringify(i)!==JSON.stringify(y),[i,y]);return F?e.jsx("div",{className:"p-4 text-red-600",children:F}):u?R.length===0?e.jsx("div",{className:"p-4 text-gray-500",children:o("connections.empty")}):e.jsxs("div",{children:[e.jsxs("h2",{className:"text-xl font-semibold mb-1 flex items-center gap-2",children:[e.jsx("span",{"aria-hidden":!0,children:"🔗"})," ",o("connections.title")]}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-4 leading-relaxed",children:o("connections.subtitle")}),e.jsx(yr,{totalSlots:Y.totalSlots,boundSlots:Y.boundSlots,unboundOptional:Y.unboundOptional,unboundRequired:Y.unboundRequired,pendingReasons:J}),e.jsx("div",{children:R.map(k=>e.jsx(Nr,{slot:k,value:y[k.inject_as]??null,duplicateCategory:ue.has(k.category),onPick:I,onToggleMany:L},k.inject_as))}),e.jsx(Cr,{hasUnsaved:X,saving:g,onSave:M})]}):e.jsx("div",{className:"p-4 text-gray-500",children:o("connections.loading")})}function Pr({instanceId:t}){const{t:n}=me(),[o,u]=d.useState(null),s=gt();if(d.useEffect(()=>{let r=!1,g;const b=()=>{Ls(t).then(F=>!r&&u(F)).catch(()=>{}).finally(()=>{r||(g=setTimeout(b,3e4))})};return b(),()=>{r=!0,g&&clearTimeout(g)}},[t]),!o||o.state==="empty"||o.state==="ok")return null;const i=o.state==="warn"?"⚡":"⚠",x=o.state==="warn"?"text-amber-400":"text-red-400",y=o.state==="warn"?n("instance:connections.badgeWarn",{count:o.bindable??o.unboundOptional.length}):n("instance:connections.badgeError");return e.jsxs("button",{onClick:()=>s(`/instances/${t}/connections`),title:y,className:`text-xs ${x} hover:underline cursor-pointer`,children:[i," ",y]})}function Ar({instanceId:t,instanceName:n,showToast:o,onRestoreComplete:u,openBackup:s,openManage:i,openExport:x,onDialogClose:y}){var Se;const{t:r}=me("instance"),g=gt(),[b,F]=d.useState(!1),[P,I]=d.useState(!1),[L,R]=d.useState(null),[M,Y]=d.useState(null),[ue,J]=d.useState(!1),[X,k]=d.useState(!1),[E,W]=d.useState(null),[q,H]=d.useState(null),[ce,le]=d.useState([]),[v,C]=d.useState(!1),[V,Z]=d.useState(!1),[z,D]=d.useState("home"),[G,ae]=d.useState(""),[de,c]=d.useState(""),[f,w]=d.useState(""),[_,K]=d.useState(null),[oe,T]=d.useState(!1);d.useEffect(()=>{s&&F(!0)},[s]),d.useEffect(()=>{i&&(he(),I(!0))},[i]),d.useEffect(()=>{x&&J(!0)},[x]);const[Q,se]=d.useState(null),[nt,$e]=d.useState(""),[lt,Te]=d.useState("");d.useEffect(()=>{!b&&!P&&!ue&&!L&&!M&&!q&&!E&&!Q&&(y==null||y())},[b,P,ue,L,M,q,E,Q]);const[ke,qe]=d.useState({enabled:!1}),[Ce,He]=d.useState(!1),he=d.useCallback(async()=>{try{const[h,B]=await Promise.all([la(t),oa(t).catch(()=>({enabled:!1}))]);le(Array.isArray(h)?h:[]),qe(B)}catch{}},[t]);d.useEffect(()=>{he()},[he]),d.useEffect(()=>{if(!Q)return;let h=!1;return(async()=>{var ee,te,Fe;for(;!h;)try{const ne=await da(Q);if(h)break;if(Te(ne.progress||""),ne.status==="completed"){if(se(null),$e(""),C(!1),ne.operation==="manual-backup")H({type:"success",title:r("backup.created",{defaultValue:"备份完成"}),detail:(ee=ne.result)!=null&&ee.filename?`${ne.result.filename} (${xe(ne.result.size||0)})`:""}),he();else if(ne.operation==="export")W(ne.result);else if(ne.operation==="restore"){const pe=ne.result||{};pe.ok?H({type:"success",title:r("backup.restoreSuccess",{defaultValue:"恢复完成"}),detail:pe.api_key_status==="lost"?r("backup.apiKeyLost",{defaultValue:"备份来自不同平台/架构,请确认 API Key 配置是否仍然适用。"}):((te=pe.warnings)==null?void 0:te.join(`
|
|
3
|
+
`))||"",actions:pe.api_key_status==="lost"?[{label:r("backup.configApiKey",{defaultValue:"配置 API Key"}),onClick:()=>{H(null),g(`/instances/${t}/config`)}}]:void 0}):H({type:"error",title:pe.rolled_back?r("backup.restoreFailedRolledBack",{defaultValue:"恢复失败 — 已自动回滚"}):r("backup.restoreFailed",{defaultValue:"恢复失败"}),detail:((Fe=pe.warnings)==null?void 0:Fe.join(`
|
|
4
|
+
`))||""}),he(),u==null||u()}break}else if(ne.status==="failed"){se(null),$e(""),C(!1),o(ne.error||"Operation failed","error");break}await new Promise(pe=>setTimeout(pe,1500))}catch{break}})(),()=>{h=!0}},[Q]);const Je=async()=>{C(!0),F(!1);try{const h=await ua(t,{include_sessions:V,scope:z});h.job_id?(se(h.job_id),$e("manual-backup"),Te("Queued...")):(H({type:"success",title:r("backup.created",{defaultValue:"备份完成"}),detail:`${h.filename} (${xe(h.size)})`}),C(!1),he())}catch(h){o(h.message||r("backup.failed",{defaultValue:"备份失败"}),"error"),C(!1)}finally{Z(!1),D("home")}},ot=async h=>{var B,ee;C(!0),R(null),ae("");try{const te=await ma(t,h);if(te.job_id)se(te.job_id),$e("restore"),Te("Queued...");else{if(te.ok){const Fe=(B=te.warnings)!=null&&B.length?te.warnings.join(`
|
|
5
|
+
`):"";H({type:"success",title:r("backup.restoreSuccess",{defaultValue:"恢复完成"}),detail:te.api_key_status==="lost"?r("backup.apiKeyLost",{defaultValue:"备份来自不同平台/架构,请确认 API Key 配置是否仍然适用。"}):Fe||r("backup.restoreOk",{defaultValue:"实例已恢复。"}),actions:te.api_key_status==="lost"?[{label:r("backup.configApiKey",{defaultValue:"配置 API Key"}),onClick:()=>{H(null),g(`/instances/${t}/config`)}}]:void 0}),u==null||u()}else H({type:"error",title:te.rolled_back?r("backup.restoreFailedRolledBack",{defaultValue:"恢复失败 — 已自动回滚"}):r("backup.restoreFailed",{defaultValue:"恢复失败"}),detail:((ee=te.warnings)==null?void 0:ee.join(`
|
|
6
|
+
`))||""});he(),C(!1)}}catch(te){o(te.message||"Restore failed","error"),C(!1)}},De=async h=>{var B;if(!(!de.trim()||!f.trim())){C(!0);try{const ee=await xa({source_id:t,backup_file:h,new_id:de,new_name:f});Y(null),ee.ok?(o(r("backup.createFromBackupOk",{defaultValue:"新实例创建成功"}),"success"),(B=ee.warnings)!=null&&B.length&&ee.warnings.forEach(te=>o(te,"info")),g(`/instances/${ee.instance_id}/config`)):o(ee.detail||r("backup.createFromBackupFail",{defaultValue:"创建失败"}),"error")}catch(ee){o(ee.message||"Failed","error")}finally{C(!1),c(""),w("")}}};d.useEffect(()=>{if(!_)return;const h=setTimeout(()=>K(null),5e3);return()=>clearTimeout(h)},[_]);const Qe=async h=>{if(!oe){T(!0);try{await pa(t,h),o(r("backup.deleted",{defaultValue:"已删除"}),"info"),he()}catch(B){o(B.message||"Delete failed","error")}finally{T(!1),K(null)}}},Ye=async()=>{C(!0),J(!1);try{const h=await fa(t,{include_sessions:X});h.job_id?(se(h.job_id),$e("export"),Te("Queued...")):(W(h),C(!1))}catch(h){o(h.message||"Export failed","error"),C(!1)}finally{k(!1)}};function xe(h){return h<1024?`${h}B`:h<1024*1024?`${(h/1024).toFixed(1)}KB`:`${(h/(1024*1024)).toFixed(1)}MB`}function be(h){const B=new Date(h),ee=B.getFullYear(),te=B.getMonth()+1,Fe=B.getDate(),ne=String(B.getHours()).padStart(2,"0"),pe=String(B.getMinutes()).padStart(2,"0"),Oe=String(B.getSeconds()).padStart(2,"0");return`${ee}/${te}/${Fe} ${ne}:${pe}:${Oe}`}function Ve(h){return h==="auto-backup"?r("backup.typeAuto",{defaultValue:"自动"}):h==="pre-restore"?r("backup.typePreRestore",{defaultValue:"恢复前"}):r("backup.typeManual",{defaultValue:"手动"})}const Xe="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",ge="px-4 py-2 bg-[#0066FF] text-white rounded-md text-sm font-medium hover:bg-[#0066FF]/90 disabled:opacity-40 transition-all duration-150",ve="px-4 py-2 border border-[var(--border)] text-muted rounded-md text-sm font-medium hover:bg-[var(--card-hover)] hover:text-foreground transition-all duration-150";return e.jsxs(e.Fragment,{children:[Q&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 max-w-sm w-full mx-4 space-y-4 shadow-2xl text-center",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("span",{className:"w-8 h-8 border-2 border-[#0066FF]/30 border-t-[#0066FF] rounded-full animate-spin"})}),e.jsx("p",{className:"text-sm text-foreground",children:lt||r("backup.processing",{defaultValue:"处理中..."})}),e.jsx("p",{className:"text-xs text-muted",children:r("backup.queueNote",{defaultValue:"任务将按顺序执行"})})]})}),b&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:()=>{F(!1),Z(!1),D("home")},children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 w-full max-w-sm shadow-2xl",onClick:h=>h.stopPropagation(),children:[e.jsx("h3",{className:"text-base font-semibold text-foreground mb-2",children:r("backup.createTitle",{defaultValue:"创建备份"})}),e.jsx("p",{className:"text-sm text-muted mb-4",children:r("backup.createDesc",{defaultValue:"备份当前实例的配置、插件和数据。"})}),e.jsxs("div",{className:"space-y-2 mb-4",children:[e.jsxs("label",{className:"flex items-start gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"backup-scope",value:"home",checked:z==="home",onChange:()=>D("home"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:r("backup.scopeFull",{defaultValue:"完整备份(含运行时)"})}),e.jsx("div",{className:"text-xs text-[var(--muted)]",children:r("backup.scopeFullDesc",{defaultValue:"包含升级后的 OpenClaw 运行时——恢复后保持当前版本"})})]})]}),e.jsxs("label",{className:"flex items-start gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"backup-scope",value:"state",checked:z==="state",onChange:()=>D("state"),className:"mt-1"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:r("backup.scopeState",{defaultValue:"仅数据(更小、可移植)"})}),e.jsx("div",{className:"text-xs text-[var(--muted)]",children:r("backup.scopeStateDesc",{defaultValue:"仅 .openclaw/ 数据——体积小,兼容官方 OpenClaw 格式"})})]})]})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-muted cursor-pointer mb-5",children:[e.jsx("input",{type:"checkbox",checked:V,onChange:h=>Z(h.target.checked),className:"rounded border-[var(--border)] bg-[var(--input-bg)]"}),r("backup.includeSessions",{defaultValue:"包含对话历史(体积较大)"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{className:`flex-1 ${ve}`,onClick:()=>{F(!1),Z(!1),D("home")},children:r("common:action.cancel",{defaultValue:"取消"})}),e.jsx("button",{className:`flex-1 ${ge}`,onClick:Je,disabled:v,children:v?r("backup.creating",{defaultValue:"备份中..."}):r("backup.create",{defaultValue:"备份"})})]})]})}),P&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:()=>I(!1),children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 w-full max-w-2xl shadow-2xl flex flex-col max-h-[80vh]",onClick:h=>h.stopPropagation(),children:[e.jsxs("h3",{className:"text-base font-semibold text-foreground mb-3 flex-shrink-0",children:[r("backup.manageTitle",{defaultValue:"备份管理"}),e.jsxs("span",{className:"text-muted font-normal",children:[" — ",n]})]}),e.jsx("div",{className:"bg-[var(--input-bg)] border border-[var(--border)] rounded-lg px-4 py-3 mb-3 flex-shrink-0",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx("span",{className:"text-muted",children:r("backup.autoBackup",{defaultValue:"自动备份"})}),ke.enabled&&e.jsxs("span",{className:"text-muted opacity-70",children:[r("backup.interval",{defaultValue:"每{{h}}小时备份",h:ke.interval_hours||24})," | ",r("backup.keep",{defaultValue:"保留{{n}}份",n:ke.keep_count||7})]}),ke.enabled&&ke.last_backup_ok===!1&&e.jsxs("span",{className:"text-red-400 text-xs",children:["(",r("backup.failed",{defaultValue:"失败"}),")"]})]}),e.jsx("button",{disabled:Ce,onClick:async h=>{h.stopPropagation(),He(!0);try{ke.enabled?await ws(t,{enabled:!1}):(await ws(t,{enabled:!0,interval_hours:24,keep_count:7}),o(r("backup.autoEnabled",{defaultValue:"自动备份已开启"}),"success")),await he()}catch(B){o(B.message||"Failed","error")}finally{He(!1)}},className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors duration-200 ${Ce?"opacity-40":""} ${ke.enabled?"bg-green-500":"bg-[var(--border)]"}`,children:e.jsx("span",{className:`inline-block h-3.5 w-3.5 rounded-full bg-white transition-transform duration-200 ${ke.enabled?"translate-x-4":"translate-x-0.5"}`})})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto min-h-0",children:ce.length===0?e.jsx("p",{className:"text-sm text-muted py-6 text-center",children:r("backup.noBackups",{defaultValue:"暂无备份"})}):e.jsx("div",{className:"space-y-2",children:ce.map(h=>e.jsxs("div",{className:"flex items-center justify-between bg-[var(--card)] border border-[var(--border)] rounded-lg px-4 py-3 hover:border-[var(--border-hover)] transition-colors duration-150",children:[e.jsx("div",{className:"flex-1 min-w-0",children:e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-[11px] px-1.5 py-0.5 rounded bg-[var(--input-bg)] border border-[var(--border)] text-muted font-medium flex-shrink-0",children:Ve(h.type)}),e.jsx("span",{className:"text-sm text-foreground truncate",children:be(h.created_at)}),e.jsx("span",{className:"text-xs text-muted flex-shrink-0",children:xe(h.size)})]})}),e.jsxs("div",{className:"flex items-center gap-1 ml-3 flex-shrink-0",children:[e.jsx("button",{title:r("backup.restore",{defaultValue:"恢复"}),className:"p-2 rounded-md hover:bg-[var(--card-hover)] text-muted hover:text-foreground transition-colors duration-150 text-base",onClick:()=>{ae(""),R(h.filename)},children:"↩"}),e.jsx("button",{title:r("backup.createNew",{defaultValue:"创建新实例"}),className:"p-2 rounded-md hover:bg-[var(--card-hover)] text-muted hover:text-foreground transition-colors duration-150 text-base",onClick:()=>{c(""),w(""),Y(h.filename)},children:"⊕"}),h.type!=="pre-restore"&&e.jsx("a",{href:ia(t,h.filename),download:!0,title:r("backup.download",{defaultValue:"下载"}),className:"p-2 rounded-md hover:bg-[var(--card-hover)] text-muted hover:text-foreground transition-colors duration-150 text-base underline decoration-current underline-offset-2",children:"⬇"}),e.jsx("button",{title:r("backup.delete",{defaultValue:"删除"}),className:`p-2 rounded-md transition-colors duration-150 text-base ${_===h.filename?"bg-red-500/20 text-red-400":"hover:bg-red-500/10 text-muted hover:text-red-400"}`,disabled:oe,onClick:()=>{_===h.filename?Qe(h.filename):K(h.filename)},children:oe&&_===h.filename?e.jsx("span",{className:"text-xs",children:r("backup.deleting",{defaultValue:"Deleting..."})}):_===h.filename?r("backup.confirmDelete",{defaultValue:"Confirm?"}):e.jsx(e.Fragment,{children:"🗑"})}),_===h.filename&&e.jsx("button",{className:"p-2 rounded-md hover:bg-[var(--card-hover)] text-muted hover:text-foreground transition-colors duration-150 text-xs",onClick:()=>K(null),children:r("common:action.cancel",{defaultValue:"Cancel"})})]})]},h.filename))})}),e.jsxs("div",{className:"flex justify-between items-center pt-4 mt-4 border-t border-[var(--border)] flex-shrink-0",children:[e.jsx("button",{className:ve,onClick:()=>I(!1),children:r("common:action.close",{defaultValue:"关闭"})}),e.jsx("button",{className:ge,onClick:()=>{I(!1),F(!0)},children:r("backup.createNew2",{defaultValue:"创建新备份"})})]})]})}),L&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:()=>{R(null),ae("")},children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 w-full max-w-sm shadow-2xl",onClick:h=>h.stopPropagation(),children:[e.jsx("h3",{className:"text-base font-semibold text-amber-400 mb-2",children:r("backup.restoreTitle",{defaultValue:"恢复将覆盖当前数据"})}),e.jsx("p",{className:"text-sm text-muted mb-4",children:r("backup.restoreDesc",{defaultValue:"已自动创建恢复前备份,如有问题可回滚。"})}),e.jsx("p",{className:"text-sm text-muted mb-2",children:r("backup.restoreConfirmLabel",{defaultValue:"输入实例名确认恢复:"})}),e.jsx("input",{type:"text",value:G,onChange:h=>ae(h.target.value),placeholder:n,className:`${Xe} mb-4 focus:ring-amber-500/60 focus:border-amber-500/60`,autoFocus:!0}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{className:`flex-1 ${ve}`,onClick:()=>{R(null),ae("")},children:r("common:action.cancel",{defaultValue:"取消"})}),e.jsx("button",{className:"flex-1 px-4 py-2 bg-red-600 text-white rounded-md text-sm font-medium hover:bg-red-700 disabled:opacity-40 transition-colors duration-150",onClick:()=>ot(L),disabled:v||G!==n,children:v?r("backup.restoring",{defaultValue:"恢复中..."}):r("backup.confirmRestore",{defaultValue:"确认恢复"})})]})]})}),M&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:()=>{Y(null),c(""),w("")},children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 w-full max-w-sm shadow-2xl",onClick:h=>h.stopPropagation(),children:[e.jsx("h3",{className:"text-base font-semibold text-foreground mb-4",children:r("backup.createFromTitle",{defaultValue:"从备份创建新实例"})}),e.jsxs("div",{className:"space-y-4 mb-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:r("backup.newName",{defaultValue:"新实例名称"})}),e.jsx("input",{type:"text",value:f,onChange:h=>w(h.target.value),placeholder:r("backup.newNamePlaceholder",{defaultValue:"我的 Agent 副本"}),className:Xe,autoFocus:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:r("backup.newId",{defaultValue:"新实例 ID"})}),e.jsx("input",{type:"text",value:de,onChange:h=>c(h.target.value),placeholder:r("backup.newIdPlaceholder",{defaultValue:"my-agent-copy"}),className:`${Xe} font-mono text-[13px]`})]})]}),e.jsx("p",{className:"text-xs text-muted opacity-70 mb-4",children:r("backup.createFromNote",{defaultValue:"API Key 和 IM 凭证不会复制,需自行配置。"})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{className:`flex-1 ${ve}`,onClick:()=>{Y(null),c(""),w("")},children:r("common:action.cancel",{defaultValue:"取消"})}),e.jsx("button",{className:`flex-1 ${ge}`,onClick:()=>De(M),disabled:v||!de.trim()||!f.trim(),children:v?r("backup.creatingInstance",{defaultValue:"创建中..."}):r("backup.createInstance",{defaultValue:"创建"})})]})]})}),ue&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50",onClick:()=>J(!1),children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 max-w-md w-full mx-4 space-y-4 shadow-2xl",onClick:h=>h.stopPropagation(),children:[e.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r("backup.exportTitle",{defaultValue:"导出(分享)"})}),e.jsx("p",{className:"text-sm text-muted",children:r("backup.exportDesc",{defaultValue:"生成可分享的导出包,API Key 和凭证将自动移除。"})}),e.jsxs("div",{className:"bg-[var(--input-bg)] border border-[var(--border)] rounded-lg p-3 space-y-1.5 text-sm text-muted",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-green-400",children:"✓"}),r("backup.exportConfig",{defaultValue:"配置 (openclaw.json, 已清洗)"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-green-400",children:"✓"}),r("backup.exportPlugins",{defaultValue:"插件 (extensions)"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-green-400",children:"✓"}),r("backup.exportWorkspace",{defaultValue:"工作区 / Skills"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400",children:"✗"}),r("backup.exportNoKeys",{defaultValue:"API Key / 凭证 — 已移除"})]})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-muted cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:X,onChange:h=>k(h.target.checked),className:"rounded border-[var(--border)] bg-[var(--input-bg)]"}),r("backup.exportIncludeSessions",{defaultValue:"包含对话历史"})]}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("button",{className:ve,onClick:()=>J(!1),children:r("common:action.cancel",{defaultValue:"取消"})}),e.jsx("button",{className:ge,onClick:Ye,disabled:v,children:v?r("backup.exporting",{defaultValue:"导出中..."}):r("backup.exportBtn",{defaultValue:"导出"})})]})]})}),E&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 max-w-md w-full mx-4 space-y-4 shadow-2xl",children:[e.jsx("h3",{className:"text-lg font-semibold text-green-400",children:r("backup.exportDone",{defaultValue:"导出完成"})}),e.jsxs("p",{className:"text-sm text-muted",children:[E.filename," (",xe(E.size),")"]}),E.warnings&&E.warnings.length>0&&e.jsx("div",{className:"space-y-1",children:E.warnings.map((h,B)=>e.jsx("p",{className:"text-xs text-amber-400",children:h},B))}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("a",{href:ca(t,E.filename),download:!0,className:ge+" inline-block text-center no-underline",children:r("backup.downloadExport",{defaultValue:"下载"})}),e.jsx("button",{className:ve,onClick:()=>W(null),children:r("common:action.close",{defaultValue:"关闭"})})]})]})}),q&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 w-full max-w-sm shadow-2xl",children:[e.jsx("h3",{className:`text-base font-semibold mb-2 ${q.type==="success"?"text-green-400":"text-red-400"}`,children:q.title}),q.detail&&e.jsx("p",{className:"text-sm text-muted mb-4 whitespace-pre-wrap",children:q.detail}),e.jsxs("div",{className:"flex justify-end gap-2",children:[(Se=q.actions)==null?void 0:Se.map((h,B)=>e.jsx("button",{className:ge,onClick:h.onClick,children:h.label},B)),e.jsx("button",{className:ve,onClick:()=>H(null),children:r("common:action.close",{defaultValue:"关闭"})})]})]})})]})}function _r({yaml:t,env:n,onYamlChange:o,onEnvChange:u}){return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl overflow-hidden",children:[e.jsx("div",{className:"border-b border-[var(--border)] px-4 py-2 flex items-center justify-between",children:e.jsx("span",{className:"text-xs font-medium text-muted",children:"config.yaml"})}),e.jsx("textarea",{value:t,onChange:s=>o(s.target.value),className:"w-full font-mono text-[13px] p-4 min-h-[320px] focus:outline-none resize-y text-foreground bg-transparent",spellCheck:!1})]}),e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl overflow-hidden",children:[e.jsx("div",{className:"border-b border-[var(--border)] px-4 py-2 flex items-center justify-between",children:e.jsx("span",{className:"text-xs font-medium text-muted",children:".env"})}),e.jsx("textarea",{value:n,onChange:s=>u(s.target.value),className:"w-full font-mono text-[13px] p-4 min-h-[220px] focus:outline-none resize-y text-foreground bg-transparent",spellCheck:!1})]})]})}const Rs={id:"openclaw",label:"tab.openclaw",icon:"🦞",description:"appDesc.openclaw",image:"ghcr.io/x-aijishu/openclaw-runtime:latest",features:{chat:!0,configEditor:!0,quickConfig:!0,logs:!0,usage:!0,cloneable:!0,connections:!0},configFields:[],defaultPort:18789,generateSpec:(t,n)=>`id: ${t}
|
|
7
|
+
jishushell:
|
|
8
|
+
min_version: "0.5.28"
|
|
9
|
+
tasks:
|
|
10
|
+
- name: gateway
|
|
11
|
+
runtime: container
|
|
12
|
+
image: "ghcr.io/x-aijishu/openclaw-runtime:latest"
|
|
13
|
+
args: ["gateway", "run", "--allow-unconfigured"]
|
|
14
|
+
resources: {cpu: "500m", memory: "512Mi"}
|
|
15
|
+
ports: [{name: http, port: 18789}]
|
|
16
|
+
health: {http: {path: /health, port: 18789}}
|
|
17
|
+
provides:
|
|
18
|
+
- capability: "openai-compatible-api"
|
|
19
|
+
port: 18789
|
|
20
|
+
openclaw:
|
|
21
|
+
config_defaults:
|
|
22
|
+
agents.defaults.model: "minimax/MiniMax-M2.7"
|
|
23
|
+
`},Mr={id:"hermes-agent",label:"tab.hermes",icon:"🧠",description:"appDesc.hermes",image:"jishushell-hermes:latest",features:{chat:!1,configEditor:!0,quickConfig:!1,logs:!0,usage:!0,cloneable:!1,webUrl:t=>`http://localhost:${t}`,connections:!0},configFields:[{key:"hermes_api_key",label:"hermes.apiKey",type:"password",placeholder:"hermes.apiKeyPlaceholder",defaultValue:""}],defaultPort:8080,generateSpec:(t,n)=>{const o=n.hermes_api_key||"${HERMES_API_KEY}";return`id: ${t}
|
|
24
|
+
jishushell:
|
|
25
|
+
min_version: "0.5.28"
|
|
26
|
+
name: "Hermes Agent + Open WebUI"
|
|
27
|
+
tasks:
|
|
28
|
+
- name: hermes
|
|
29
|
+
role: service
|
|
30
|
+
runtime: container
|
|
31
|
+
image: "jishushell-hermes:latest"
|
|
32
|
+
env:
|
|
33
|
+
HERMES_API_KEY: "${o}"
|
|
34
|
+
resources: {cpu: "1500m", memory: "3072Mi"}
|
|
35
|
+
volumes:
|
|
36
|
+
- {source: hermes-data, target: /data}
|
|
37
|
+
ports:
|
|
38
|
+
- {name: webui, port: 8080, visibility: external}
|
|
39
|
+
- {name: api, port: 8642, visibility: internal}
|
|
40
|
+
health:
|
|
41
|
+
http: {path: /health, port: 8080}
|
|
42
|
+
interval: "20s"
|
|
43
|
+
timeout: "10s"
|
|
44
|
+
retries: 10
|
|
45
|
+
start_period: "180s"
|
|
46
|
+
provides:
|
|
47
|
+
- capability: "openai-compatible-api"
|
|
48
|
+
port: 8642
|
|
49
|
+
description: "Hermes Agent OpenAI-compatible API"
|
|
50
|
+
- capability: "web-ui"
|
|
51
|
+
port: 8080
|
|
52
|
+
description: "Open WebUI chat frontend"
|
|
53
|
+
`}},$r={id:"ollama",label:"tab.ollama",icon:"🦙",description:"appDesc.ollama",image:"ollama/ollama:latest",features:{chat:!1,configEditor:!1,quickConfig:!1,logs:!0,usage:!0,cloneable:!1,webUrl:t=>""},configFields:[{key:"model",label:"ollama.model",type:"text",placeholder:"ollama.modelPlaceholder",defaultValue:"llama3.2"},{key:"gpu",label:"ollama.gpu",type:"select",options:[{value:"auto",label:"Auto"},{value:"none",label:"CPU Only"},{value:"nvidia",label:"NVIDIA GPU"}],defaultValue:"auto"}],defaultPort:11434,generateSpec:(t,n)=>{const o=n.model||"llama3.2";return`id: ${t}
|
|
54
|
+
jishushell:
|
|
55
|
+
min_version: "0.5.28"
|
|
56
|
+
name: "Ollama"
|
|
57
|
+
tasks:
|
|
58
|
+
- name: ollama-server
|
|
59
|
+
role: service
|
|
60
|
+
runtime: container
|
|
61
|
+
image: "ollama/ollama:latest"
|
|
62
|
+
resources: {cpu: "2000m", memory: "4096Mi"}
|
|
63
|
+
ports:
|
|
64
|
+
- {name: api, port: 11434, visibility: external}
|
|
65
|
+
health:
|
|
66
|
+
http: {path: /, port: 11434}
|
|
67
|
+
interval: "15s"
|
|
68
|
+
timeout: "5s"
|
|
69
|
+
retries: 5
|
|
70
|
+
start_period: "120s"
|
|
71
|
+
- name: pull-model
|
|
72
|
+
role: init
|
|
73
|
+
runtime: container
|
|
74
|
+
image: "ollama/ollama:latest"
|
|
75
|
+
command: "ollama"
|
|
76
|
+
args: ["pull", "${o}"]
|
|
77
|
+
env:
|
|
78
|
+
OLLAMA_HOST: "http://localhost:11434"
|
|
79
|
+
provides:
|
|
80
|
+
- capability: "openai-compatible-api"
|
|
81
|
+
port: 11434
|
|
82
|
+
description: "Ollama OpenAI-compatible API"
|
|
83
|
+
`}},Tr={id:"openwebui",label:"tab.openwebui",icon:"🌐",description:"appDesc.openwebui",image:"ghcr.io/open-webui/open-webui:main",features:{chat:!1,configEditor:!1,quickConfig:!1,logs:!0,usage:!0,cloneable:!1,webUrl:t=>`http://localhost:${t}`,connections:!0},configFields:[],defaultPort:3e3,generateSpec:t=>`id: ${t}
|
|
84
|
+
`},Dr={id:"custom",label:"tab.custom",icon:"📝",description:"appDesc.custom",image:"",features:{chat:!1,configEditor:!1,quickConfig:!1,logs:!0,usage:!0,cloneable:!1,connections:!0},configFields:[],defaultPort:0,generateSpec:()=>""},Vr=[Rs,Mr,$r,Tr,Dr];function Or(t){return Vr.find(n=>n.id===t)??Rs}function Lr(t){const n=typeof(t==null?void 0:t.agentType)=="string"?t.agentType.trim():"";if(n){if(n==="openclaw")return"openclaw";if(n==="hermes"||n==="hermes-agent")return"hermes-agent";if(n==="ollama")return"ollama";if(n==="openwebui")return"openwebui"}if(t!=null&&t.app_type)return t.app_type;if(t!=null&&t.app_id){if(t.app_id.startsWith("hermes"))return"hermes-agent";if(t.app_id.startsWith("ollama"))return"ollama";if(t.app_id.startsWith("openwebui"))return"openwebui"}return"openclaw"}function Rr(t,n){if(t==null)return"-";const o=Math.floor(t/86400),u=Math.floor(t%86400/3600),s=Math.floor(t%3600/60);return o>0?n("instance:uptime.days",{d:o,h:u}):u>0?n("instance:uptime.hours",{h:u,m:s}):n("instance:uptime.minutes",{m:s})}const bt=[Ya,ht,lr,ur];function Kr(t){for(const n of bt){const o=s=>(s==null?void 0:s.find(i=>i.id===t))??null;if(n.groups)for(const s of n.groups){const i=o(s.items);if(i)return i}const u=o(n.items);if(u)return u}return null}function Ts(t,n){const o=JSON.parse(JSON.stringify(t??{})),u=rt.find(x=>x.id===n);if(u){if(o.channels||(o.channels={}),o.plugins||(o.plugins={}),o.plugins.entries||(o.plugins.entries={}),o.channels[n])o.channels[n].enabled=!0;else{const x={enabled:!0,...u.defaults??{}};u.fields.forEach(y=>{y.key in x||(x[y.key]="")}),o.channels[n]=x}return o.plugins.entries[n]||(o.plugins.entries[n]={enabled:!0}),o}const s={"skill-vetter":{"skill-vetter":{enabled:!0}},"skill-finder":{"skill-finder":{enabled:!0}},"skill-browser":{"skill-browser":{enabled:!0}}};if(n in s)return o.skills||(o.skills={}),Object.assign(o.skills,s[n]),o;const i={};return n in i&&(o.mcp||(o.mcp={}),o.mcp.servers||(o.mcp.servers={}),Object.assign(o.mcp.servers,i[n])),o}function Ds(t){return t.replace(/^(https?:\/\/)(localhost|127\.0\.0\.1)(?=[:/]|$)/i,(n,o)=>`${o}${window.location.hostname}`)}function Vs(t){var r,g,b,F,P;const n=(r=t==null?void 0:t.embeddedUi)==null?void 0:r.port;if(n)return String(n);const u=(Array.isArray(t==null?void 0:t.provides)?t.provides:[]).find(I=>I==null?void 0:I.port);if(u!=null&&u.port)return String(u.port);const s=(b=(g=t==null?void 0:t.runtime)==null?void 0:g.env)==null?void 0:b.OPENCLAW_GATEWAY_PORT;if(s)return String(s);const x=(Array.isArray((F=t==null?void 0:t.runtime)==null?void 0:F.ports)?t.runtime.ports:[]).find(I=>(I==null?void 0:I.name)==="gateway"&&(I==null?void 0:I.hostPort));if(x!=null&&x.hostPort)return String(x.hostPort);const y=((P=t==null?void 0:t.runtime)==null?void 0:P.args)||[];for(let I=0;I<y.length;I++){if(y[I]==="--port"&&I+1<y.length)return String(y[I+1]);if(typeof y[I]=="string"&&y[I].startsWith("--port="))return String(y[I].slice(7))}return"-"}function Ks(t=[]){return new Set(t.filter(n=>n.startsWith("env.")).map(n=>n.slice(4)))}function Ot(t,n=[]){const o=Ks(n);return o.size?t.split(`
|
|
85
|
+
`).map(u=>{const s=u.trim();if(!s||s.startsWith("#")||!s.includes("="))return u;const i=u.indexOf("="),x=u.slice(0,i).replace(/^export\s+/,"").trim();return o.has(x)?`${u.slice(0,i)}=***`:u}).join(`
|
|
86
|
+
`):t}function qr(t,n,o=[]){const u=Ks(o);if(!u.size)return t;const s=new Map;for(const i of n.split(`
|
|
87
|
+
`)){const x=i.trim();if(!x||x.startsWith("#")||!x.includes("="))continue;const y=i.indexOf("="),r=i.slice(0,y).replace(/^export\s+/,"").trim(),g=i.slice(y+1);s.set(r,g)}return t.split(`
|
|
88
|
+
`).map(i=>{const x=i.trim();if(!x||x.startsWith("#")||!x.includes("="))return i;const y=i.indexOf("="),r=i.slice(0,y).replace(/^export\s+/,"").trim(),g=i.slice(y+1).trim();if(!u.has(r)||g!=="***")return i;const b=s.get(r);return b==null?i:`${i.slice(0,y)}=${b}`}).join(`
|
|
89
|
+
`)}function Qr(){var as,rs,ns,ls,os,is,cs,ds,us,ms,xs,ps,fs,hs,bs,gs;const{id:t,tab:n}=Da(),o=gt(),{showToast:u}=ha(),{t:s}=me(["instance","common","data"]),[i,x]=d.useState(null),y=d.useRef(0),[r,g]=d.useState(n==="overview"?"chat":n||"chat"),[b,F]=d.useState(null),[P,I]=d.useState(null),[L,R]=d.useState(!1),[M,Y]=d.useState(""),[ue,J]=d.useState(!1),[X,k]=d.useState(""),[E,W]=d.useState([]),[q,H]=d.useState("stderr"),[ce,le]=d.useState(""),[v,C]=d.useState(null),[V,Z]=d.useState(""),[z,D]=d.useState(!1),[G,ae]=d.useState(!1),[de,c]=d.useState(""),[f,w]=d.useState(null),[_,K]=d.useState(null),[oe,T]=d.useState(!1),[Q,se]=d.useState(!1),[nt,$e]=d.useState(""),[lt,Te]=d.useState(""),[ke,qe]=d.useState(""),[Ce,He]=d.useState(!1),[he,Je]=d.useState(!1),[ot,De]=d.useState(!1),[Qe,Ye]=d.useState(null),[xe,be]=d.useState(!1),[Ve,Xe]=d.useState("im"),[ge,ve]=d.useState("general"),[O,Se]=d.useState(null),[h,B]=d.useState({}),[ee,te]=d.useState(""),[Fe,ne]=d.useState(""),[pe,Oe]=d.useState(""),[Ue,Ie]=d.useState({servers:[],installed:!1,loading:!1}),[re,ye]=d.useState(null),Ee=d.useRef(!1),Pe=d.useRef(!1),[je,Rt]=d.useState(!1),vt=d.useRef(null),yt=d.useRef(null),[Kt,qt]=d.useState(!1),Ze=d.useRef(null),[Ut,jt]=d.useState(null),[Bt,kt]=d.useState(null),qs=Lr(i),we=Or(qs).features,Be=we.configEditor?"config":we.logs?"logs":"usage";d.useEffect(()=>{const a=i==null?void 0:i.agentType;if(!a){jt(null),kt(null);return}const l=Ba[a];let m=!1;return l!=null&&l.chatComponent?l.chatComponent().then(p=>{m||jt(()=>p.default)}).catch(p=>{console.warn(`[runtime] failed to load chat component for ${a}:`,p)}):jt(null),l!=null&&l.configPanel?l.configPanel().then(p=>{m||kt(()=>p.default)}).catch(p=>{console.warn(`[runtime] failed to load config panel for ${a}:`,p)}):kt(null),()=>{m=!0}},[i==null?void 0:i.agentType]);const Wt=d.useRef(t),wt=d.useRef(je);Wt.current=t,wt.current=je,d.useEffect(()=>{xe&&t&&st(t).then(Se).catch(()=>{})},[xe,t]),d.useEffect(()=>{if(!t||!we.connections){w(null);return}let a=!1,l;const m=()=>{Ls(t).then(p=>{a||w(p)}).catch(()=>{}).finally(()=>{a||(l=setTimeout(m,3e4))})};return m(),()=>{a=!0,l&&clearTimeout(l)}},[t,we.connections]);const Ht=we.connections&&(f==null?void 0:f.state)!=="empty";d.useEffect(()=>{xe&&Ve==="mcp"&&t&&(Ie(a=>({...a,loading:!0})),Tt(t).then(a=>Ie({servers:a.servers,installed:a.installed,loading:!1})).catch(()=>Ie(a=>({...a,loading:!1}))))},[xe,Ve,t]),d.useEffect(()=>{n&&g(n==="overview"?"chat":n)},[n]),d.useEffect(()=>{Kt&&r==="config"&&b&&(qt(!1),J(!1),setTimeout(()=>{const a=document.getElementById("im-channel-section");a?a.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},200))},[Kt,r,b]);const Re=d.useCallback(()=>{const a=Wt.current;a&&!wt.current&&ba(a).then(l=>{x(l),l.llmError&&l.llmError.timestamp>y.current&&Date.now()-l.llmError.timestamp<6e4&&(u(`LLM ${s("common:error")} (${l.llmError.code}): ${l.llmError.message}`,"error"),y.current=l.llmError.timestamp)}).catch(()=>{})},[u,s]);d.useEffect(()=>{Re();const a=setInterval(Re,5e3);return()=>clearInterval(a)},[t,Re]);const it=(rs=(as=i==null?void 0:i.capabilities)==null?void 0:as.gateway)==null?void 0:rs.chatPanel,Nt=Array.isArray(i==null?void 0:i.provides)?i.provides.find(a=>String((a==null?void 0:a.protocol)||"").toLowerCase()==="terminal"&&(a==null?void 0:a.terminal)):null,et=typeof((ns=i==null?void 0:i.embeddedUi)==null?void 0:ns.url)=="string"?Ds(i.embeddedUi.url.trim()):"",Ae=!!et,Jt=typeof((ls=i==null?void 0:i.embeddedUi)==null?void 0:ls.port)=="number"?i.embeddedUi.port:0,Us=typeof((os=i==null?void 0:i.embeddedUi)==null?void 0:os.protocol)=="string"&&i.embeddedUi.protocol==="https"?"https":"http",Ct=Jt>0?`${Us}://${window.location.hostname}:${Jt}/`:et,ct=!!Nt||Ae||it==="iframe"||it==="inline",St=((is=i==null?void 0:i.service)==null?void 0:is.status)==="running",zt=we.webUrl?Ds(we.webUrl(parseInt(Vs(i),10)||0).trim()):"";d.useEffect(()=>{if(!(!t||!i)){if(Ae){Z(a=>(a!==et&&ae(!1),et));return}if(it!=="iframe"){Z(""),D(!1),ae(!1);return}ga(t).then(a=>{const l=typeof(a==null?void 0:a.url)=="string"?a.url.trim():"";if(!l)throw new Error("No gateway launch URL returned");Z(m=>(m!==l&&ae(!1),l))}).catch(a=>{Z(""),u((a==null?void 0:a.message)||s("gatewayLaunchFailed"),"error")})}},[et,Ae,t,it,St,u,s]),d.useEffect(()=>{!t||!i||!ct&&r==="chat"&&(g(Be),o(`/instances/${t}/${Be}`,{replace:!0}))},[r,Be,ct,t,i,o]);const Gt=d.useRef(!1);Gt.current=z,d.useEffect(()=>{if(!V||!St){D(!1),ae(!1);return}if(Ae){D(!0),ae(!0);return}if(Gt.current)return;let a=!1,l=0;const m=60,p=()=>{a||l>=m||(l++,fetch(V,{method:"HEAD",credentials:"include"}).then(j=>{!a&&j.ok&&D(!0)}).catch(()=>{}))};p();const N=setInterval(p,3e3);return()=>{a=!0,clearInterval(N)}},[V,Ae,St]);const[Ne,Ft]=d.useState({}),Qt=Object.values(Ne).includes("installing"),dt=d.useRef(new Set),It=d.useRef(u);It.current=u;const Et=d.useRef(s);Et.current=s,d.useEffect(()=>{var N;if(!t||!(((N=i==null?void 0:i.capabilities)==null?void 0:N.pluginInstall)===!0&&(r==="config"||Qt)))return;let l=!1;const m=()=>{l||Ns(t).then(j=>{var $;if(l)return;const A={};for(const[S,U]of Object.entries(j.plugins))A[S]=U.status;for(const S of dt.current){const U=A[S];if(U==="installed")It.current(Et.current(S==="feishu"?"feishu.pluginInstalled":"weixin.pluginInstalled"),"success"),dt.current.delete(S);else if(U==="failed"||U==="not_installed"){const fe=($=j.plugins[S])==null?void 0:$.error;It.current(Et.current(S==="feishu"?"feishu.pluginFailed":"weixin.pluginFailed")+(fe?": "+fe:""),"error"),dt.current.delete(S)}}Ft(A)}).catch(()=>{})};m();const p=setInterval(m,3e3);return()=>{l=!0,clearInterval(p)}},[t,r,Qt]),d.useEffect(()=>{var a;xe&&t&&((a=i==null?void 0:i.capabilities)==null?void 0:a.pluginInstall)===!0&&Ns(t).then(l=>{const m={};for(const[p,N]of Object.entries(l.plugins))m[p]=N.status;Ft(m)}).catch(()=>{})},[xe,t]);const Yt=a=>{t&&(Ca(t,a).catch(()=>{}),Ft(l=>({...l,[a]:"installing"})),dt.current.add(a),u(s(a==="feishu"?"feishu.installing":"weixin.installing"),"info"))};d.useEffect(()=>{if(!L)return;const a=l=>{l.preventDefault()};return window.addEventListener("beforeunload",a),()=>window.removeEventListener("beforeunload",a)},[L]),d.useEffect(()=>{r==="config"&&t&&Promise.all([Cs(t),Ss(t)]).then(([a,l])=>{I(a);const m=yt.current;if(yt.current=null,a.format==="yaml+env"){const N=l;Ze.current=N;const j={...N,env:Ot(N.env,a.secretFields)};F(j),k(""),J(!1),R(!1);return}Ze.current=null;const p=m?Ts(l,m):l;F(p),k(JSON.stringify(p,null,2)),R(!!m)}).catch(()=>{}),r==="usage"&&t&&Fs(t).then(C).catch(()=>{})},[r,t]);const Pt=()=>{t&&Sa(t,200,q).then(a=>{var m;W(a.lines);const l=(m=vt.current)==null?void 0:m.parentElement;l&&l.scrollHeight-l.scrollTop-l.clientHeight<80&&setTimeout(()=>{var N;return(N=vt.current)==null?void 0:N.scrollIntoView({behavior:"smooth"})},100)}).catch(()=>{})};Ra(Pt,3e3,r==="logs"&&!!t),d.useEffect(()=>{r==="logs"&&Pt()},[q]);const Xt=()=>{K(Date.now()+2e4),D(!1),ae(!1)};d.useEffect(()=>{if(!_)return;const a=_-Date.now();if(a<=0){K(null);return}const l=setTimeout(()=>{K(null),Re()},a);return()=>clearTimeout(l)},[_,Re]);const ut=async a=>{if(t){c(a);try{let l=null;a==="start"&&(l=await Fa(t)),a==="stop"&&(l=await Ia(t)),a==="restart"&&(l=await Ps(t),Xt()),u(s(a==="start"?"action.startHint":a==="stop"?"action.stopDone":"action.restartHint"),a==="stop"?"success":"info");const m=l==null?void 0:l.port_allocation;m&&typeof m.from=="number"&&typeof m.to=="number"&&m.from!==m.to&&u(s("common:toast.portReallocated",{defaultValue:"端口 {{from}} 被占用,已自动切换到 {{to}}",from:m.from,to:m.to}),"info"),(a==="start"||a==="restart")&&o(`/instances/${t}`),setTimeout(Re,1e3)}catch(l){u(l.message||s("common:error.operationFailed"),"error")}finally{c("")}}},Zt=async a=>{if(!t)return;be(!1),Ee.current=!1;const l=a==="feishu"?"feishu":"openclaw-weixin",m=Ne[l];if(m==="installing"){u(s(a==="feishu"?"feishu.waitingInstall":"weixin.waitingInstall"),"info");return}if(m!=="installed"){Yt(l);return}Pe.current=!1,ye({type:a,qrUrl:"",sessionKey:"",status:"loading",message:s("qr.gettingQr")});try{let p=null;for(let $=0;$<3;$++){if(Pe.current)return;try{if(p=a==="feishu"?await Ea(t):await Pa(t),p!=null&&p.qrcodeUrl)break}catch{$<2&&await new Promise(S=>setTimeout(S,1500))}}if(Pe.current)return;if(!(p!=null&&p.qrcodeUrl)){ye($=>$?{...$,status:"error",message:s("qr.getFailed")}:null);return}ye({type:a,qrUrl:p.qrcodeUrl,sessionKey:p.sessionKey,status:"waiting",message:s(a==="feishu"?"qr.scanFeishu":"qr.scanWeixin")}),Ee.current=!0;let N=0;const j=6,A=async $=>{if(!(!Ee.current||Pe.current))try{const S=a==="feishu"?await Aa(t,$):await _a(t,$);if(Pe.current)return;if(N=0,S.connected){Ee.current=!1,ye(U=>U?{...U,qrUrl:"",status:"confirmed",message:S.message||s("qr.loginSuccess")}:null);return}if(S.status==="expired"){Ee.current=!1,ye(U=>U?{...U,status:"error",message:S.message||s("qr.expired")}:null);return}S.status==="refreshed"&&S.qrcodeUrl?ye(U=>U?{...U,qrUrl:S.qrcodeUrl,message:s("qr.refreshed")}:null):S.status==="scaned"&&ye(U=>U?{...U,status:"scaned",message:S.message||s("qr.scaned")}:null),setTimeout(()=>A($),2e3)}catch{if(!Ee.current||Pe.current)return;if(N+=1,N>=j){Ee.current=!1,ye(S=>S?{...S,status:"error",message:s("qr.pollFailed",{defaultValue:"轮询失败,请刷新后重试"})}:null);return}setTimeout(()=>A($),3e3)}};setTimeout(()=>A(p.sessionKey),2e3)}catch{Pe.current||ye(p=>p?{...p,status:"error",message:s("qr.getFailed")}:null)}},We=(a,l)=>{let m=0;const p=()=>{var N;try{const j=document.getElementById("gateway-iframe");if(!j){++m<50&&setTimeout(p,200);return}const A=j.contentDocument;if(!A||A.readyState==="loading"){++m<50&&setTimeout(p,200);return}const $=A.querySelector("openclaw-app");if(!$){++m<50&&setTimeout(p,200);return}if(l){if(!$.connected&&++m<50){setTimeout(p,200);return}$.handleSendChat(a)}else $.chatMessage=a}catch{const j=document.getElementById("gateway-iframe");(N=j==null?void 0:j.contentWindow)==null||N.postMessage({type:"jishu:inject-cmd",cmd:a,send:l},"*")}};r!=="chat"?(_e("chat"),setTimeout(p,800)):setTimeout(p,100)},mt=a=>{if(be(!1),a==="feishu"||a==="openclaw-weixin"){Zt(a==="feishu"?"feishu":"weixin");return}const l=Kr(a);if(l&&l.cmd!==void 0){We(l.cmd,l.send!==!1);return}if(b!==null&&r==="config"){const m=Ts(b,a);F(m),k(JSON.stringify(m,null,2)),R(!0),u(s("config.presetAdded"),"info")}else yt.current=a,_e("config"),u(s("config.navigatingToConfig"),"info")},es=a=>{F(a),(P==null?void 0:P.format)==="json"&&k(JSON.stringify(a,null,2)),R(!0)},Bs=a=>{F(l=>({...l||{format:"yaml+env",env:""},format:"yaml+env",yaml:a})),R(!0)},Ws=a=>{F(l=>({...l||{format:"yaml+env",yaml:""},format:"yaml+env",env:a})),R(!0)},Hs=a=>{k(a),R(!0);try{F(JSON.parse(a)),Y("")}catch{Y(s("config.jsonError"))}},Js=a=>{var N,j,A;if(!a)return"{}";const l=JSON.parse(JSON.stringify(a)),m=(N=l==null?void 0:l.models)==null?void 0:N.providers;if(m&&typeof m=="object")for(const[$,S]of Object.entries(m))$.startsWith("js-")&&(S!=null&&S.apiKey)&&(S.apiKey="(proxy token, auto-managed)");const p=(A=(j=l==null?void 0:l["x-jishushell"])==null?void 0:j.proxy)==null?void 0:A.upstream;return p&&p.apiKey===""&&p.hasApiKey&&(p.apiKey="(saved, leave empty to keep, enter new value to update)"),JSON.stringify(l,null,2)},ts=a=>{var N,j,A;const l=JSON.parse(a),m=(j=(N=l==null?void 0:l["x-jishushell"])==null?void 0:N.proxy)==null?void 0:j.upstream;(m==null?void 0:m.apiKey)==="(saved, leave empty to keep, enter new value to update)"&&delete m.apiKey;const p=(A=l==null?void 0:l.models)==null?void 0:A.providers;if(p&&typeof p=="object")for(const[$,S]of Object.entries(p))$.startsWith("js-")&&(S==null?void 0:S.apiKey)==="(proxy token, auto-managed)"&&delete S.apiKey;return l},ss=async a=>{var l;if(!(!t||!b||!P)){Y(""),T(!0);try{const m=P.format==="yaml+env"?{format:"yaml+env",yaml:String(b.yaml||""),env:qr(String(b.env||""),((l=Ze.current)==null?void 0:l.env)||"",P.secretFields)}:ts(ue?X:JSON.stringify(b)),p=await Ma(t,m);if(p!=null&&p.config&&(P.format==="yaml+env"?(Ze.current=p.config,F({...p.config,env:Ot(p.config.env,P.secretFields)}),k("")):(F(p.config),k(JSON.stringify(p.config,null,2)))),R(!1),a)try{await Ps(t),Xt(),u(s("config.savedAndRestarted"),"success"),g("chat"),o(`/instances/${t}`,{replace:!0})}catch(N){u(s("config.savedButRestartFailed",{error:N.message||""}),"error"),Y(s("config.restartFailed",{error:N.message||""}))}else u(s("config.saved"),"success");setTimeout(Re,1e3)}catch(m){Y(m instanceof SyntaxError?s("config.jsonParseError",{error:m.message}):m.message||s("common:error.saveFailed"))}finally{T(!1)}}},zs=async()=>{var l;if(!t||nt.trim()!==((l=i==null?void 0:i.name)==null?void 0:l.trim())||je||Ce)return;const a=lt.trim();if(qe(""),a){He(!0);try{await $a({sudoPassword:a})}catch(m){qe((m==null?void 0:m.message)||s("newInstance:sudoDialog.passwordInvalid",{defaultValue:"sudo 密码错误,请重新输入。"})),Te(""),He(!1);return}He(!1)}wt.current=!0,Rt(!0);try{await Ta(t,he,a?{sudoPassword:a}:void 0),o("/",{replace:!0})}catch(m){u(m.message||s("common:error.deleteFailed"),"error"),Rt(!1)}},_e=a=>{if(L&&r==="config"&&a!=="config"){if(!window.confirm(s("config.unsavedWarning")))return;R(!1)}g(a),o(`/instances/${t}/${a}`,{replace:!0})};if(!i)return e.jsx("div",{className:"p-6 2xl:px-6 2xl:py-4 max-w-5xl xl:max-w-6xl 2xl:max-w-none mx-auto",children:e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-6 w-48 bg-[var(--card)] rounded"}),e.jsx("div",{className:"h-10 w-full bg-[var(--card)] rounded"}),e.jsx("div",{className:"h-40 bg-[var(--card)] rounded-lg"})]})});const ze=((cs=i.service)==null?void 0:cs.status)||"stopped",Ge=ze==="running",xt=ze==="pending",pt=ze==="failed"||ze==="dead",At=((ds=i==null?void 0:i.capabilities)==null?void 0:ds.backupRestore)!==!1,_t=(xt||_!=null&&Date.now()<_)&&!pt,tt=Ge,Gs=s(_t?"common:status.starting":Ge?"common:status.running":ze==="failed"?"common:status.failed":ze==="dead"?"common:status.crashed":"common:status.stopped"),Qs=_t?"text-amber-400":Ge?"text-emerald-400":pt?"text-red-400":"text-muted",Ys=_t?"bg-amber-400 animate-pulse shadow-[0_0_6px_rgba(251,191,36,0.5)]":Ge?"bg-emerald-500 shadow-[0_0_6px_rgba(16,185,129,0.6)]":pt?"bg-red-500 shadow-[0_0_6px_rgba(239,68,68,0.6)]":"bg-[var(--muted)] opacity-40";return e.jsxs("div",{className:"p-6 2xl:px-6 2xl:py-4 max-w-5xl xl:max-w-6xl 2xl:max-w-none mx-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:i.name}),e.jsx("span",{className:"px-2 py-0.5 rounded-full border border-[var(--border)] text-[11px] text-muted uppercase tracking-[0.08em]",children:i.agentType||"openclaw"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:`w-2 h-2 rounded-full ${Ys}`}),e.jsx("span",{className:`text-xs font-medium ${Qs}`,children:Gs}),Ge&&!z&&(((ms=(us=i==null?void 0:i.capabilities)==null?void 0:us.gateway)==null?void 0:ms.chatPanel)==="iframe"||Ae)&&e.jsx("span",{className:"text-[11px] text-amber-400/90",children:s("status.gatewayPending")}),Ht&&t&&e.jsx(Pr,{instanceId:t})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[r==="chat"&&e.jsxs(e.Fragment,{children:[e.jsx("a",{href:(Ae?Ct:V)||void 0,target:"_blank",rel:"noopener noreferrer","aria-disabled":!(Ae?Ct:V),title:s("openInWindow"),className:`p-1.5 border border-[var(--border)] rounded-md transition-all duration-150 ${(Ae?Ct:V)?"text-muted hover:text-foreground hover:bg-[var(--card-hover)] cursor-pointer":"pointer-events-none text-muted opacity-30"}`,children:e.jsx(va,{className:"w-4 h-4"})}),e.jsx("button",{onClick:()=>{D(!1),ae(!1)},disabled:!V,title:s("reload"),className:"p-1.5 border border-[var(--border)] rounded-md text-muted hover:text-foreground hover:bg-[var(--card-hover)] disabled:opacity-30 transition-all duration-150",children:e.jsx(Os,{className:"w-4 h-4"})})]}),we.configEditor&&e.jsxs("button",{onClick:()=>_e("config"),title:s("tab.config"),className:"p-1.5 border border-[var(--border)] rounded-md text-muted hover:text-foreground hover:bg-[var(--card-hover)] transition-all duration-150 relative",children:[e.jsx(ya,{className:"w-4 h-4"}),L&&e.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-1.5 h-1.5 rounded-full bg-amber-400"})]}),Ht&&e.jsx("button",{onClick:()=>_e("connections"),title:s("tab.connections"),"aria-label":s("tab.connections"),className:`p-1.5 border rounded-md transition-all duration-150 ${r==="connections"?"border-[#0066FF]/50 bg-[#0066FF]/10 text-[#0066FF]":"border-[var(--border)] text-muted hover:text-foreground hover:bg-[var(--card-hover)]"}`,children:e.jsx(ja,{className:"w-4 h-4"})}),we.quickConfig&&((xs=i==null?void 0:i.capabilities)==null?void 0:xs.pluginInstall)===!0&&e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>be(a=>!a),title:s("quickSkill"),className:"flex items-center gap-1 px-2.5 py-1.5 border border-[#0066FF]/30 rounded-md text-xs font-medium text-[#0066FF] bg-[#0066FF]/5 hover:bg-[#0066FF]/10 transition-all duration-150",children:[e.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),e.jsx("span",{className:"hidden sm:inline",children:s("quickSkill")}),e.jsx(ka,{className:`w-3 h-3 transition-transform duration-150 ${xe?"rotate-180":""}`})]}),xe&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>be(!1)}),e.jsxs("div",{className:"absolute right-0 top-full mt-1 w-80 bg-background border border-[var(--border)] rounded-lg shadow-2xl z-20 overflow-hidden",children:[e.jsx("div",{className:"flex border-b border-[var(--border)]",children:["im","skills","mcp","slash"].map(a=>{const l={im:{emoji:"💬",label:s("quickSkill.im")},skills:{emoji:"⚡",label:s("quickSkill.skills")},mcp:{emoji:"🔌",label:s("quickSkill.mcp")},slash:{emoji:"/",label:s("quickSkill.slash")}}[a];return e.jsxs("button",{onClick:m=>{m.stopPropagation(),Xe(a)},className:`flex-1 py-2 flex flex-col items-center gap-0.5 text-[10px] font-medium transition-colors border-b-2 ${Ve===a?"text-[#0066FF] border-[#0066FF] bg-[#0066FF]/5":"text-muted border-transparent hover:text-foreground hover:bg-[var(--card-hover)]"}`,children:[e.jsx("span",{className:"text-sm leading-none",children:l.emoji}),e.jsx("span",{children:l.label})]},a)})}),e.jsxs("div",{className:"max-h-[480px] overflow-y-auto",children:[Ve==="im"&&e.jsxs("div",{className:"p-3 space-y-2",children:[e.jsxs("button",{onClick:()=>mt("feishu"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-lg border border-[#3370FF]/30 bg-[#3370FF]/5 hover:bg-[#3370FF]/10 transition-all duration-150",children:[e.jsx("img",{src:"https://s1.aigei.com/src/img/png/5a/5ad236651e0c4a6b940d2e1d2bf29749.png?imageMogr2/auto-orient/thumbnail/!282x282r/gravity/Center/crop/282x282/quality/85/%7CimageView2/2/w/282&e=2051020800&token=P7S2Xpzfz11vAkASLTkfHN7Fw-oOZBecqeJaxypL:bcW1ujPdX64WlxeEm9SpuJ5H2KY=",alt:s("channel.feishu"),className:"w-8 h-8 rounded-md flex-shrink-0",onError:a=>{a.target.style.display="none"}}),e.jsxs("div",{className:"text-left flex-1",children:[e.jsx("div",{className:"text-sm font-semibold text-[#3370FF]",children:s("channel.feishu")}),e.jsx("div",{className:"text-[11px] text-muted mt-0.5",children:Ne.feishu==="installing"?s("quickSkill.pluginInstalling"):Ne.feishu!=="installed"?s("quickSkill.clickToInstall"):O!=null&&O.im.feishu?`✓ ${s("quickSkill.bound")}`:s("quickSkill.scanToBind")})]}),Ne.feishu==="installing"&&e.jsx("div",{className:"w-4 h-4 border-2 border-[#3370FF]/30 border-t-[#3370FF] rounded-full animate-spin flex-shrink-0"}),Ne.feishu==="installed"&&(O==null?void 0:O.im.feishu)&&e.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-emerald-500/15 text-emerald-400 font-medium flex-shrink-0",children:s("quickSkill.bound")})]}),e.jsxs("button",{onClick:()=>mt("openclaw-weixin"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-lg border border-[#07C160]/30 bg-[#07C160]/5 hover:bg-[#07C160]/10 transition-all duration-150",children:[e.jsx("img",{src:"https://sgnewres.wechat.com/t/ofs-wechat/newsroom-web/res/_next/static/media/wechat-with-color.7a890de8.svg",alt:s("channel.weixin"),className:"w-8 h-8 rounded-md flex-shrink-0",onError:a=>{a.target.style.display="none"}}),e.jsxs("div",{className:"text-left flex-1",children:[e.jsx("div",{className:"text-sm font-semibold text-[#07C160]",children:s("channel.weixin")}),e.jsx("div",{className:"text-[11px] text-muted mt-0.5",children:Ne["openclaw-weixin"]==="installing"?s("quickSkill.pluginInstalling"):Ne["openclaw-weixin"]!=="installed"?s("quickSkill.clickToInstall"):O!=null&&O.im.weixin?`✓ ${s("quickSkill.bound")}`:s("quickSkill.scanToBind")})]}),Ne["openclaw-weixin"]==="installing"&&e.jsx("div",{className:"w-4 h-4 border-2 border-[#07C160]/30 border-t-[#07C160] rounded-full animate-spin flex-shrink-0"}),Ne["openclaw-weixin"]==="installed"&&(O==null?void 0:O.im.weixin)&&e.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-emerald-500/15 text-emerald-400 font-medium flex-shrink-0",children:s("quickSkill.bound")})]}),e.jsxs("button",{onClick:()=>{be(!1),_e("config"),qt(!0)},className:"w-full flex items-center justify-center gap-1.5 px-4 py-2 rounded-lg text-[11px] text-muted hover:text-foreground hover:bg-[var(--card-hover)] border border-dashed border-[var(--border)] transition-all duration-150",children:[e.jsx("span",{children:s("quickSkill.moreImConfig")}),e.jsx("svg",{className:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,children:e.jsx("path",{d:"M9 18l6-6-6-6"})})]})]}),Ve==="skills"&&e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"px-3 py-2 border-b border-[var(--border)]/60 flex gap-1.5 flex-shrink-0",children:[e.jsx("input",{type:"text",value:ee,onChange:a=>te(a.target.value),onKeyDown:a=>{a.key==="Enter"&&ee.trim()&&(be(!1),We(`安装 ${ee.trim()}`,!0),te(""))},placeholder:s("quickSkill.customSkillPlaceholder"),className:"flex-1 min-w-0 text-[11px] bg-[var(--bg)] border border-[var(--border)] rounded px-2 py-1 text-foreground placeholder:text-muted outline-none focus:border-[#0066FF]/60"}),e.jsx("button",{disabled:!ee.trim(),onClick:()=>{ee.trim()&&(be(!1),We(`安装 ${ee.trim()}`,!0),te(""))},className:"flex-shrink-0 text-[11px] px-2 py-1 rounded bg-[#0066FF]/10 text-[#0066FF] hover:bg-[#0066FF]/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:s("quickSkill.install")})]}),e.jsxs("div",{className:"flex",style:{height:"380px"},children:[e.jsxs("div",{className:"flex flex-col border-r border-[var(--border)]/60 bg-[var(--card)] flex-shrink-0",style:{width:"72px"},children:[ht.groups.map(a=>e.jsxs("button",{onMouseEnter:l=>{l.stopPropagation(),ve(a.id)},onClick:l=>{l.stopPropagation(),ve(a.id)},className:`flex flex-col items-center justify-center gap-0.5 py-3 px-1 text-center transition-colors border-l-2 flex-shrink-0 ${ge===a.id?"border-[#0066FF] bg-[#0066FF]/5 text-foreground":"border-transparent text-muted hover:text-foreground hover:bg-[var(--card-hover)]"}`,children:[e.jsx("span",{className:"text-base leading-none",children:a.emoji}),e.jsx("span",{className:"text-[9px] font-medium leading-tight mt-0.5 whitespace-pre-wrap break-all",children:s(`data:skills.group.${a.id}`,{defaultValue:a.label})})]},a.id)),e.jsxs("button",{onMouseEnter:a=>{a.stopPropagation(),ve("installed")},onClick:a=>{a.stopPropagation(),ve("installed")},className:`flex flex-col items-center justify-center gap-0.5 py-3 px-1 text-center transition-colors border-l-2 flex-shrink-0 ${ge==="installed"?"border-[#0066FF] bg-[#0066FF]/5 text-foreground":"border-transparent text-muted hover:text-foreground hover:bg-[var(--card-hover)]"}`,children:[e.jsx("span",{className:"text-base leading-none",children:"📦"}),e.jsx("span",{className:"text-[9px] font-medium leading-tight mt-0.5 whitespace-pre-wrap break-all",children:s("quickSkill.allInstalled")})]})]}),e.jsxs("div",{className:"flex-1 min-w-0 overflow-y-auto",children:[ge==="installed"&&(()=>{if(O===null)return e.jsx("div",{className:"px-3 py-6 text-center text-[11px] text-muted",children:s("quickSkill.loading")});const a=O.installedSkillDirs??[],l={};return ht.groups.forEach(m=>{m.skills.forEach(p=>{var N;(N=p.checkDirs)==null||N.forEach(j=>{l[j.toLowerCase()]=m.label})})}),a.length===0?e.jsx("div",{className:"px-3 py-6 text-center text-[11px] text-muted",children:s("quickSkill.noInstalled")}):e.jsx(e.Fragment,{children:a.map(m=>{const p=l[m.toLowerCase()];return e.jsxs("div",{className:"w-full px-3 py-2 flex items-center gap-2 border-b border-[var(--border)]/30",children:[e.jsxs("button",{className:"flex-1 min-w-0 text-left",onClick:()=>{be(!1),We(`/skill ${m} `,!1)},children:[e.jsx("div",{className:"text-xs font-semibold text-foreground font-mono truncate",children:m}),p&&e.jsx("div",{className:"text-[10px] text-muted mt-0.5",children:p})]}),e.jsx("span",{className:"flex-shrink-0 text-[10px] px-1.5 py-0.5 rounded-full font-medium bg-emerald-500/15 text-emerald-400",children:s("quickSkill.installed")}),e.jsx("button",{onClick:async()=>{if(!(!t||!window.confirm(s("delete.skillConfirm",{name:m}))))try{await Is(t,m);const N=await st(t);Se(N)}catch(N){u(N.message||s("common:error.deleteFailed"),"error")}},className:"flex-shrink-0 text-[10px] px-1.5 py-0.5 rounded-full font-medium bg-red-500/10 text-red-400 hover:bg-red-500/20 transition-colors",children:s("common:action.delete")})]},m)})})})(),ge!=="installed"&&(()=>{const a=ht.groups.find(p=>p.id===ge),l=(a==null?void 0:a.skills)??[];if(l.length===0)return e.jsx("div",{className:"px-3 py-6 text-center text-[11px] text-muted",children:s("quickSkill.noSkills")});const m=((O==null?void 0:O.installedSkillDirs)??[]).map(p=>p.toLowerCase());return e.jsx(e.Fragment,{children:l.map(p=>{var $;if(p.type==="hub")return e.jsxs("div",{className:"w-full px-3 py-2 flex items-center gap-2 border-b border-[var(--border)]/30",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs font-semibold text-foreground break-words",children:s(`data:skills.${p.id}.label`,{defaultValue:p.label})}),e.jsx("div",{className:"text-[10px] text-muted leading-tight mt-0.5 break-words",children:s(`data:skills.${p.id}.desc`,{defaultValue:p.desc})}),e.jsx("div",{className:"text-[9px] text-muted/60 leading-tight mt-0.5 break-all",children:p.url})]}),e.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",onClick:S=>S.stopPropagation(),title:"在新标签页打开",className:"flex-shrink-0 text-[11px] px-1.5 py-0.5 rounded-full font-medium bg-[var(--border)] text-muted hover:bg-[#0066FF]/15 hover:text-[#0066FF] transition-colors no-underline",children:"🔗"})]},p.id);const N=O!==null&&p.checkDirs.some(S=>m.includes(S.toLowerCase())),j=h[p.id]??!1,A=(($=O==null?void 0:O.installedSkillDirs)==null?void 0:$.find(S=>p.checkDirs.some(U=>U.toLowerCase()===S.toLowerCase())))??p.id;return e.jsxs("button",{disabled:j,onClick:()=>{if(be(!1),N)We(`/skill ${A} `,!1);else{B(fe=>({...fe,[p.id]:!0})),We(p.installMsg,p.autoInstall!==!1);let S=0;const U=setInterval(async()=>{S+=5e3;try{const fe=await st(t);Se(fe);const Mt=((fe==null?void 0:fe.installedSkillDirs)??[]).map(Ke=>Ke.toLowerCase());p.checkDirs.some(Ke=>Mt.includes(Ke.toLowerCase()))&&(clearInterval(U),B(Ke=>({...Ke,[p.id]:!1})))}catch{}S>=6e4&&(clearInterval(U),B(fe=>({...fe,[p.id]:!1})))},5e3)}},className:"w-full text-left px-3 py-2 hover:bg-[var(--card-hover)] transition-colors flex items-center gap-2 disabled:opacity-60 border-b border-[var(--border)]/30",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs font-semibold text-foreground break-words",children:s(`data:skills.${p.id}.label`,{defaultValue:p.label})}),e.jsx("div",{className:"text-[10px] text-muted leading-tight mt-0.5 break-words",children:s(`data:skills.${p.id}.desc`,{defaultValue:p.desc})})]}),e.jsx("span",{className:`flex-shrink-0 text-[10px] px-1.5 py-0.5 rounded-full font-medium ${j?"bg-amber-500/15 text-amber-400":O===null?"bg-[var(--border)] text-muted":N?"bg-emerald-500/15 text-emerald-400":"bg-[#0066FF]/10 text-[#0066FF]"}`,children:j?s("quickSkill.installing"):O===null?"…":s(N?"quickSkill.installed":"quickSkill.install")}),N&&!j&&e.jsx("button",{onClick:async S=>{if(S.stopPropagation(),!(!t||!window.confirm(s("delete.skillConfirm",{name:A}))))try{await Is(t,A);const U=await st(t);Se(U)}catch(U){u(U.message||s("common:error.deleteFailed"),"error")}},className:"flex-shrink-0 text-[10px] px-1.5 py-0.5 rounded-full font-medium bg-red-500/10 text-red-400 hover:bg-red-500/20 transition-colors",children:s("common:action.delete")})]},p.id)})})})()]})]})]}),Ve==="mcp"&&e.jsxs("div",{className:"py-1",children:[(()=>{const a=!!(O!=null&&O.mcporterInstalled||Ue.installed),l=O===null&&Ue.loading;return e.jsxs("button",{onClick:()=>{a||(be(!1),We("安装 https://clawhub.ai/steipete/mcporter",!0))},className:"w-full text-left px-3 py-2.5 hover:bg-[var(--card-hover)] transition-colors flex items-center gap-2",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs font-semibold text-foreground",children:"MCPorter"}),e.jsx("div",{className:"text-[11px] text-muted leading-tight mt-0.5",children:s("quickSkill.mcporterDesc")})]}),e.jsx("span",{className:`flex-shrink-0 text-[10px] px-1.5 py-0.5 rounded-full font-medium ${l?"bg-[var(--border)] text-muted":a?"bg-emerald-500/15 text-emerald-400":"bg-[#0066FF]/10 text-[#0066FF]"}`,children:l?"…":s(a?"quickSkill.installed":"quickSkill.install")})]})})(),e.jsxs("div",{className:"px-3 py-2 border-t border-[var(--border)]/40",children:[e.jsx("div",{className:"text-[10px] text-muted mb-1.5",children:s("quickSkill.mcpJsonLabel")}),e.jsx("textarea",{rows:3,value:Fe,onChange:a=>{ne(a.target.value),Oe("")},placeholder:`{
|
|
90
|
+
"serverName": { "command": "npx", "args": [...] }
|
|
91
|
+
}`,className:"w-full text-[11px] font-mono bg-[var(--bg)] border border-[var(--border)] rounded px-2 py-1.5 text-foreground placeholder:text-muted/50 outline-none focus:border-[#0066FF]/60 resize-none"}),pe&&e.jsx("div",{className:"text-[10px] text-red-400 mt-1",children:pe}),e.jsx("button",{disabled:!Fe.trim()||!t,onClick:async()=>{let a;try{const l=JSON.parse(Fe.trim());if(typeof l!="object"||Array.isArray(l)||l===null)throw new Error("not-object");if(l.mcpServers&&typeof l.mcpServers=="object"&&!Array.isArray(l.mcpServers)?a=l.mcpServers:l.servers&&typeof l.servers=="object"&&!Array.isArray(l.servers)?a=l.servers:a=l,Object.keys(a).length===0)throw new Error("empty");for(const[m,p]of Object.entries(a)){if(typeof p!="object"||Array.isArray(p)||p===null)throw new Error(s("quickSkill.mcpJsonValueNotObject",{name:m}));const N=p;if(!N.command&&!N.baseUrl&&!N.url)throw new Error(s("quickSkill.mcpJsonMissingField",{name:m}))}}catch(l){const m=l==null?void 0:l.message;m==="not-object"?Oe(s("quickSkill.mcpJsonNotObject")):m==="empty"?Oe(s("quickSkill.mcpJsonEmpty")):m!=null&&m.startsWith('"')?Oe(m):Oe(s("quickSkill.mcpJsonParseFailed",{error:m||""}));return}try{const l=await Es(t,a);ne(""),Oe(""),u(s("quickSkill.mcpWritten"),"success"),Se(m=>m&&{...m,mcporterServers:l.mcpServers}),Ie(m=>({...m,loading:!0})),Tt(t).then(m=>Ie({servers:m.servers,installed:m.installed,loading:!1})).catch(()=>Ie(m=>({...m,loading:!1})))}catch(l){Oe(l.message||s("quickSkill.mcpWriteFailed"))}},className:"mt-1.5 w-full text-[11px] px-2 py-1 rounded bg-[#0066FF]/10 text-[#0066FF] hover:bg-[#0066FF]/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:s("quickSkill.addToConfig")})]}),(((ps=bt.find(a=>a.id==="mcp"))==null?void 0:ps.items)??[]).map(a=>{const l=Object.keys((O==null?void 0:O.mcporterServers)??{}),m=Ue.servers.map(j=>j.name),p=a.mcpJson?Object.keys(a.mcpJson):[],N=p.length>0&&p.some(j=>l.includes(j)||m.includes(j));return e.jsxs("button",{onClick:async()=>{if(a.mcpJson&&t)try{const j=await Es(t,a.mcpJson);u(s("quickSkill.mcpAdded",{label:a.label}),"success"),Se(A=>A&&{...A,mcporterServers:j.mcpServers}),Ie(A=>({...A,loading:!0})),Tt(t).then(A=>Ie({servers:A.servers,installed:A.installed,loading:!1})).catch(()=>Ie(A=>({...A,loading:!1})))}catch(j){u(j.message||s("quickSkill.mcpAddFailed"),"error")}else mt(a.id)},className:"w-full text-left px-3 py-2.5 hover:bg-[var(--card-hover)] transition-colors border-t border-[var(--border)]/40 flex items-center gap-2",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs font-semibold text-foreground",children:s(`data:mcp.${a.id}.label`,{defaultValue:a.label})}),e.jsx("div",{className:"text-[11px] text-muted leading-tight mt-0.5",children:s(`data:mcp.${a.id}.desc`,{defaultValue:a.desc})})]}),a.mcpJson&&e.jsx("span",{className:`flex-shrink-0 text-[10px] px-1.5 py-0.5 rounded-full font-medium ${N?"bg-emerald-500/15 text-emerald-400":"bg-[#0066FF]/10 text-[#0066FF]"}`,children:s(N?"quickSkill.configured":"quickSkill.oneClickConfig")})]},a.id)}),(()=>{var N;const a=(O==null?void 0:O.mcporterServers)??{},l=new Set((((N=bt.find(j=>j.id==="mcp"))==null?void 0:N.items)??[]).flatMap(j=>j.mcpJson?Object.keys(j.mcpJson):[])),m=Object.keys(a).filter(j=>!l.has(j));if(m.length===0)return null;const p={};for(const j of Ue.servers)p[j.name]=j;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-3 pt-2 pb-0.5 text-[9px] font-semibold text-muted/60 uppercase tracking-widest border-t border-[var(--border)]/40 mt-1",children:s("quickSkill.mcporterConfigured")}),m.map(j=>{var Ke;const A=a[j],$=p[j],S=($==null?void 0:$.transport)??(A!=null&&A.baseUrl?`HTTP ${A.baseUrl}`:A!=null&&A.command?`${A.command} ${(A.args??[]).join(" ")}`.trim():""),U=($==null?void 0:$.status)==="ok",fe=$?U?"bg-emerald-500/15 text-emerald-400":"bg-red-500/15 text-red-400":(Ue.loading,"bg-[var(--border)] text-muted"),Mt=Ue.loading&&!$?s("quickSkill.detecting"):$?U?(Ke=$.tools)!=null&&Ke.length?s("quickSkill.statusNormalWithTools",{count:$.tools.length}):s("quickSkill.statusNormal"):$.status:s("quickSkill.configured");return e.jsxs("div",{className:"w-full px-3 py-2 flex items-center gap-2",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs font-semibold text-foreground font-mono",children:j}),S&&e.jsx("div",{className:"text-[11px] text-muted leading-tight mt-0.5 truncate",children:S})]}),e.jsxs("span",{className:`flex-shrink-0 text-[10px] px-1.5 py-0.5 rounded-full font-medium ${fe} flex items-center gap-1`,children:[Ue.loading&&!$&&e.jsx("span",{className:"w-2 h-2 border border-muted/40 border-t-muted rounded-full animate-spin"}),Mt]}),e.jsx("button",{onClick:async()=>{if(!(!t||!window.confirm(s("delete.mcpConfirm",{name:j}))))try{await wa(t,j);const $t=await st(t);Se($t),Ie(vs=>({...vs,servers:vs.servers.filter(Xs=>Xs.name!==j)}))}catch($t){u($t.message||s("common:error.deleteFailed"),"error")}},className:"flex-shrink-0 text-[10px] px-1.5 py-0.5 rounded-full font-medium bg-red-500/10 text-red-400 hover:bg-red-500/20 transition-colors",children:s("common:action.delete")})]},j)})]})})()]}),Ve==="slash"&&e.jsx("div",{className:"py-1",children:(((fs=bt.find(a=>a.id==="slash"))==null?void 0:fs.groups)??[]).map((a,l)=>e.jsxs("div",{children:[l>0&&e.jsx("div",{className:"border-t border-[var(--border)]/40 mx-3 my-0.5"}),e.jsx("div",{className:"px-3 pt-1.5 pb-0.5 text-[9px] font-semibold text-muted/60 uppercase tracking-widest",children:s(`data:slash.group.${a.label}`,{defaultValue:a.label})}),a.items.map(m=>e.jsxs("button",{onClick:()=>mt(m.id),className:"w-full text-left px-3 py-1 hover:bg-[var(--card-hover)] transition-colors",children:[e.jsx("div",{className:"text-xs font-medium text-foreground font-mono",children:m.label}),e.jsx("div",{className:"text-[11px] text-muted leading-tight",children:s(`data:slash.${m.id}.desc`,{defaultValue:m.desc})})]},m.id))]},a.label))})]})]})]})]}),Ge||xt?e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>ut("restart"),disabled:!!de||xt,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:s(de==="restart"?"action.restarting":"common:action.restart")}),e.jsx("button",{onClick:()=>ut("stop"),disabled:!!de,className:"px-3 py-1.5 bg-red-600 text-white rounded-md text-xs font-medium hover:bg-red-700 disabled:opacity-40 transition-all duration-200",children:s(de==="stop"?"action.stopping":"common:action.stop")})]}):e.jsx("button",{onClick:()=>ut("start"),disabled:!!de,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:s(de==="start"?"action.starting":"common:action.start")}),e.jsxs("div",{className:"relative",children:[e.jsx("button",{type:"button",onClick:()=>De(!ot),"aria-label":s("common:action.moreActions"),className:"p-1.5 border border-[var(--border)] rounded-md text-muted hover:text-foreground hover:bg-[var(--card-hover)] transition-all duration-150",children:e.jsx(Na,{className:"w-4 h-4"})}),ot&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>De(!1)}),e.jsxs("div",{className:"absolute right-0 top-full mt-1 w-40 bg-background border border-[var(--border)] rounded-lg shadow-2xl py-1 z-20",children:[e.jsx("button",{onClick:()=>{De(!1),_e("logs")},className:"w-full text-left px-3 py-2 text-sm text-foreground hover:bg-[var(--card-hover)] transition-colors",children:s("tab.logs")}),e.jsx("button",{onClick:()=>{De(!1),_e("usage")},className:"w-full text-left px-3 py-2 text-sm text-foreground hover:bg-[var(--card-hover)] transition-colors",children:s("tab.usage")}),At&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-t border-[var(--border)] my-1"}),e.jsx("button",{onClick:()=>{De(!1),Ye("manage")},className:"w-full text-left px-3 py-2 text-sm text-foreground hover:bg-[var(--card-hover)] transition-colors",children:s("backup.manageMenu",{defaultValue:"备份管理"})}),e.jsx("button",{onClick:()=>{De(!1),Ye("export")},className:"w-full text-left px-3 py-2 text-sm text-foreground hover:bg-[var(--card-hover)] transition-colors",children:s("backup.export",{defaultValue:"导出(分享)"})}),e.jsx("div",{className:"border-t border-[var(--border)] my-1"})]}),e.jsx("button",{onClick:()=>{De(!1),se(!0),Je(!1)},className:"w-full text-left px-3 py-2 text-sm text-red-400 hover:bg-red-500/10 transition-colors",children:s("delete.title")})]})]})]})]})]}),t&&At&&e.jsx(Ar,{instanceId:t,instanceName:(i==null?void 0:i.name)||t,showToast:u,onRestoreComplete:Re,openBackup:Qe==="backup",openManage:Qe==="manage",openExport:Qe==="export",onDialogClose:()=>Ye(null)}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted mb-3",children:[e.jsx("button",{onClick:()=>o("/"),className:"hover:text-foreground transition-colors",children:s("backToOverview")}),e.jsx("span",{className:"opacity-40",children:"·"}),e.jsxs("span",{children:["📊 ",((hs=i.service)==null?void 0:hs.memory_mb)!=null?`${i.service.memory_mb} MB`:"-"]}),e.jsx("span",{className:"opacity-40",children:"·"}),e.jsxs("span",{children:["⏱ ",Rr((bs=i.service)==null?void 0:bs.uptime,s)]}),e.jsx("span",{className:"opacity-40",children:"·"}),e.jsxs("span",{children:["🔌 ",s("port",{port:Vs(i)})]})]}),pt&&e.jsxs("div",{className:"bg-red-500/10 border border-red-500/20 text-red-400 text-sm rounded-lg px-4 py-3 flex items-center justify-between mb-3",children:[e.jsx("span",{children:s("failedHint")}),e.jsx("button",{onClick:()=>_e("logs"),className:"text-red-400 underline text-sm font-medium",children:s("viewLogs")})]}),r!=="chat"&&ct&&e.jsx("button",{onClick:()=>_e("chat"),className:"flex items-center gap-1 text-xs text-[#0066FF] hover:text-[#0066FF]/80 mb-3 transition-colors",children:s("backToChat")}),r==="chat"&&(()=>{var l,m;const a=(m=(l=i==null?void 0:i.capabilities)==null?void 0:l.gateway)==null?void 0:m.chatPanel;return Ut&&t?e.jsx(Ut,{instanceId:t,instanceEpoch:(i==null?void 0:i.created_at)??null}):Nt&&t?e.jsx(pr,{instanceId:t,provide:Nt,isRunning:tt}):a==="iframe"||Ae?e.jsx(mr,{gatewayLaunchUrl:V,gatewayReady:z,isRunning:tt,isPending:xt,iframeLoaded:G,actionLoading:de,onAction:ut,onReload:()=>{D(!1),ae(!1)},onIframeLoad:()=>ae(!0)}):a==="inline"?e.jsxs("div",{className:"rounded-[22px] border border-[var(--border)] bg-[var(--card)] p-8 text-center",children:[e.jsx("div",{className:"w-5 h-5 mx-auto border-2 border-[#0066FF]/30 border-t-[#0066FF] rounded-full animate-spin mb-3"}),e.jsx("div",{className:"text-sm text-foreground/70",children:"正在加载 Chat 组件..."})]}):e.jsxs("div",{className:"rounded-[22px] border border-[var(--border)] bg-[var(--card)] p-8 text-center",children:[e.jsx("div",{className:"text-4xl mb-3 opacity-40",children:"🔌"}),e.jsxs("div",{className:"text-sm text-foreground/70 font-medium mb-1",children:["此应用 (",i==null?void 0:i.agentType,") 没有内置应用界面"]}),e.jsx("div",{className:"text-xs text-muted mb-4",children:Be==="config"?"请切换到 Config tab 配置消息平台凭证,通过 IM 与应用交互。":"此应用没有可嵌入的应用界面,请改用日志或用量页确认运行状态。"}),e.jsx("button",{onClick:()=>_e(Be),className:"px-4 py-2 bg-[#0066FF] text-white rounded-md text-xs font-medium hover:bg-[#0066FF]/90 transition-all duration-200",children:Be==="config"?"打开 Config":Be==="logs"?"打开 Logs":"打开 Usage"})]})})(),r==="chat"&&!we.chat&&!ct&&zt&&e.jsx("div",{className:"bg-card border border-[var(--border)] rounded-xl p-6 text-center space-y-3",children:tt?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-foreground",children:s("webui.ready")}),e.jsx("a",{href:zt,target:"_blank",rel:"noopener noreferrer",className:"inline-block px-4 py-2 bg-[#0066FF] text-white rounded-md text-sm font-medium hover:bg-[#0066FF]/90 transition-all",children:s("webui.open")})]}):e.jsx("p",{className:"text-sm text-muted",children:s("webui.notRunning")})}),r==="config"&&b&&we.configEditor&&e.jsxs("div",{className:"space-y-4",children:[L&&e.jsxs("div",{className:"bg-amber-500/10 border border-amber-500/20 text-amber-400 text-sm rounded-lg px-4 py-2.5 flex items-center justify-between",children:[e.jsx("span",{children:s("config.modified")}),e.jsx("button",{onClick:()=>{F(null),Promise.all([Cs(t),Ss(t)]).then(([a,l])=>{I(a),a.format==="yaml+env"?(Ze.current=l,F({...l,env:Ot(l.env,a.secretFields)}),k("")):(F(l),k(JSON.stringify(l,null,2))),R(!1)})},className:"text-xs text-amber-400 hover:underline",children:s("config.discard")})]}),M&&e.jsx("div",{className:"bg-red-500/10 border border-red-500/20 text-red-400 text-sm rounded-lg px-4 py-2.5",children:M}),(P==null?void 0:P.format)==="json"&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>J(!1),className:`px-3 py-1.5 text-xs rounded-md transition-colors duration-150 ${ue?"text-muted hover:bg-[var(--card-hover)]":"bg-[#0066FF] text-white"}`,children:s("config.form")}),e.jsx("button",{onClick:()=>{k(Js(b)),J(!0)},className:`px-3 py-1.5 text-xs rounded-md transition-colors duration-150 ${ue?"bg-[#0066FF] text-white":"text-muted hover:bg-[var(--card-hover)]"}`,children:s("config.json")})]}),(P==null?void 0:P.format)==="json"&&ue?e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"bg-[#0066FF]/10 border border-[#0066FF]/20 rounded-lg px-3 py-2 text-xs text-[#0066FF]/80 space-y-1",children:[e.jsx("div",{className:"font-medium text-[#0066FF]/90",children:s("config.jsonHelp")}),e.jsxs("ul",{className:"list-disc list-inside space-y-0.5",children:[e.jsx("li",{dangerouslySetInnerHTML:{__html:s("config.jsonHelp1")}}),e.jsx("li",{dangerouslySetInnerHTML:{__html:s("config.jsonHelp2")}}),e.jsx("li",{dangerouslySetInnerHTML:{__html:s("config.jsonHelp3")}})]})]}),e.jsxs("div",{className:"bg-[var(--card)] border border-[var(--border)] rounded-xl overflow-hidden",children:[e.jsx("div",{className:"border-b border-[var(--border)] px-4 py-2 flex items-center justify-between",children:e.jsx("span",{className:"text-xs font-medium text-muted",children:"openclaw.json"})}),e.jsx("textarea",{value:X,onChange:a=>Hs(a.target.value),className:"w-full font-mono text-[13px] p-4 min-h-[400px] lg:min-h-[500px] focus:outline-none resize-y text-foreground bg-transparent",spellCheck:!1})]})]}):Bt&&t?e.jsx(Bt,{config:b,onChange:es,instanceId:t,capabilities:i==null?void 0:i.capabilities,isRunning:tt}):(P==null?void 0:P.format)==="yaml+env"?e.jsx(_r,{yaml:String((b==null?void 0:b.yaml)||""),env:String((b==null?void 0:b.env)||""),onYamlChange:Bs,onEnvChange:Ws}):e.jsx(Ha,{config:b,onChange:es,instanceId:t,isRunning:tt,pluginStatuses:Ne,onInstallPlugin:Yt}),e.jsxs("div",{className:"flex gap-2 sticky bottom-0 backdrop-blur-sm py-3 -mx-6 px-6 border-t border-[var(--border)] mt-4",style:{background:"color-mix(in srgb, var(--background) 85%, transparent)"},children:[e.jsx("button",{onClick:()=>ss(!1),disabled:!L||oe,className:"px-4 py-2 border border-[var(--border)] text-muted rounded-md text-sm font-medium hover:bg-[var(--card-hover)] hover:text-foreground disabled:opacity-40 transition-all duration-200",children:s(oe?"config.saving":"config.save")}),e.jsx("button",{onClick:()=>ss(!0),disabled:oe,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:s(oe?"config.processing":"config.saveAndRestart")})]})]}),r==="logs"&&e.jsx(fr,{logs:E,logSearch:ce,logType:q,logsEndRef:vt,onSearchChange:le,onLogTypeChange:H,onRefresh:Pt,onCopy:()=>{const a=ce?E.filter(l=>l.toLowerCase().includes(ce.toLowerCase())):E;navigator.clipboard.writeText(a.join(`
|
|
92
|
+
`)).then(()=>u(s("logs.copied"),"success")).catch(()=>u(s("logs.copyFailed"),"error"))}}),r==="usage"&&e.jsx(hr,{usage:v,onRefresh:()=>Fs(t).then(C).catch(()=>{})}),r==="connections"&&t&&e.jsx(Er,{instanceId:t}),re&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:()=>{Pe.current=!0,Ee.current=!1,ye(null)},children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 w-full max-w-xs shadow-2xl",onClick:a=>a.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-base font-semibold text-foreground",children:s(re.type==="feishu"?"qr.feishuTitle":"qr.weixinTitle")}),e.jsx("button",{onClick:()=>{Pe.current=!0,Ee.current=!1,ye(null)},className:"text-muted hover:text-foreground transition-colors text-lg leading-none",children:"✕"})]}),e.jsx("div",{className:"flex flex-col items-center gap-3",children:re.status==="confirmed"?e.jsxs("div",{className:"bg-emerald-500/10 border border-emerald-500/20 rounded-md px-4 py-5 text-center w-full",children:[e.jsx("div",{className:"text-3xl mb-2",children:"✓"}),e.jsx("div",{className:"text-emerald-400 font-medium text-sm",children:re.message}),e.jsx("p",{className:"text-xs text-muted mt-1",children:s("qr.credSaved")})]}):re.status==="loading"?e.jsx("div",{className:"w-48 h-48 flex items-center justify-center",children:e.jsx("div",{className:`w-8 h-8 border-2 rounded-full animate-spin ${re.type==="feishu"?"border-[#3370FF]/30 border-t-[#3370FF]":"border-[#07C160]/30 border-t-[#07C160]"}`})}):re.status==="error"?e.jsxs("div",{className:"bg-red-500/10 border border-red-500/20 rounded-md px-4 py-4 text-center w-full",children:[e.jsx("div",{className:"text-red-400 text-sm",children:re.message}),e.jsx("button",{onClick:a=>{a.stopPropagation(),Zt(re.type)},className:`mt-3 px-4 py-1.5 text-white rounded-md text-xs font-medium transition-colors ${re.type==="feishu"?"bg-[#3370FF] hover:bg-[#3370FF]/90":"bg-[#07C160] hover:bg-[#07C160]/90"}`,children:s("qr.retry")})]}):e.jsxs(e.Fragment,{children:[re.qrUrl?e.jsx(La,{value:re.qrUrl,size:192,className:"rounded-lg"}):e.jsx("div",{className:"w-48 h-48 flex items-center justify-center",children:e.jsx("div",{className:`w-8 h-8 border-2 rounded-full animate-spin ${re.type==="feishu"?"border-[#3370FF]/30 border-t-[#3370FF]":"border-[#07C160]/30 border-t-[#07C160]"}`})}),e.jsx("div",{className:"flex items-center gap-2 text-sm",children:re.status==="scaned"?e.jsxs("span",{className:`font-medium ${re.type==="weixin"?"text-[#07C160]":"text-[#3370FF]"}`,children:["👀 ",re.message]}):e.jsx("span",{className:"text-muted",children:re.message})})]})}),re.status==="confirmed"&&e.jsx("button",{onClick:()=>{Pe.current=!0,Ee.current=!1,ye(null)},className:"mt-4 w-full py-2 bg-[#0066FF] text-white rounded-md text-sm font-medium hover:bg-[#0066FF]/90 transition-colors",children:s("common:action.close")})]})}),Q&&e.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:()=>{je||Ce||(se(!1),$e(""),Te(""),qe(""),Je(!1))},children:e.jsxs("div",{className:"bg-background border border-[var(--border)] rounded-xl p-6 w-full max-w-sm shadow-2xl",onClick:a=>a.stopPropagation(),children:[e.jsx("h3",{className:"text-base font-semibold text-foreground mb-2",children:s("delete.title")}),e.jsx("p",{className:"text-sm text-muted mb-4",children:e.jsx(Ua,{ns:"instance",i18nKey:"delete.warning",values:{name:i.name},components:{strong:e.jsx("strong",{className:"text-foreground"})}})}),e.jsx("p",{className:"text-sm text-muted mb-3",children:s("delete.confirmHint")}),e.jsx("input",{type:"text",value:nt,onChange:a=>$e(a.target.value),disabled:je,className:"w-full bg-[var(--input-bg)] border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground mb-4 focus:outline-none focus:ring-1 focus:ring-red-500/60 focus:border-red-500/60 transition-colors disabled:opacity-60",placeholder:i.name}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm text-muted mb-2",children:s("delete.sudoPassword",{defaultValue:"sudo 密码(如本次删除涉及系统卸载)"})}),e.jsx("input",{type:"password",value:lt,onChange:a=>{Te(a.target.value),qe("")},disabled:je||Ce,className:"w-full bg-[var(--input-bg)] border border-[var(--border)] rounded-md px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-red-500/60 focus:border-red-500/60 transition-colors disabled:opacity-60",placeholder:s("delete.sudoPasswordPlaceholder",{defaultValue:"需要提权时请输入"}),autoComplete:"current-password"}),ke&&e.jsx("p",{className:"mt-2 text-xs text-red-400",children:ke}),e.jsx("p",{className:"mt-2 text-xs text-muted",children:s("delete.sudoPasswordHint",{defaultValue:"实例删除若会触发底层应用卸载,将使用这里提供的密码执行 sudo。"})})]}),At&&e.jsxs("label",{className:"flex items-center gap-2 text-sm text-muted cursor-pointer mb-4",children:[e.jsx("input",{type:"checkbox",checked:he,onChange:a=>Je(a.target.checked),disabled:je,className:"rounded border-[var(--border)] bg-[var(--input-bg)]"}),s("delete.purgeBackups",{defaultValue:"同时删除备份"})]}),je&&e.jsx("p",{className:"text-xs text-muted mb-3",children:s("delete.inProgressHint",{defaultValue:"正在删除,大实例可能需要 30 秒到 1 分钟,请勿关闭窗口。"})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:()=>{se(!1),$e(""),Te(""),qe(""),Je(!1)},disabled:je||Ce,className:"flex-1 py-2 border border-[var(--border)] text-muted rounded-md text-sm font-medium hover:bg-[var(--card-hover)] hover:text-foreground transition-all duration-150 disabled:opacity-40 disabled:cursor-not-allowed",children:s("common:action.cancel")}),e.jsxs("button",{onClick:zs,disabled:nt.trim()!==((gs=i.name)==null?void 0:gs.trim())||je||Ce,className:"flex-1 py-2 bg-red-600 text-white rounded-md text-sm font-medium hover:bg-red-700 disabled:opacity-40 disabled:cursor-not-allowed transition-colors inline-flex items-center justify-center gap-2",children:[(je||Ce)&&e.jsx("span",{className:"w-3 h-3 border-2 border-white/40 border-t-white rounded-full animate-spin","aria-hidden":"true"}),je?s("delete.deleting",{defaultValue:"删除中..."}):Ce?s("newInstance:sudoDialog.verifying",{defaultValue:"验证中..."}):s("delete.confirm")]})]})]})})]})}export{Qr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,T as h,I as g,a as f,b as j,s as v}from"./index-
|
|
1
|
+
import{j as e,T as h,I as g,a as f,b as j,s as v}from"./index-CCkaIEjn.js";import{r as t,u as w}from"./vendor-react-DW5juQin.js";import{u as N}from"./vendor-i18n-DqPtOicc.js";function k({onLogin:a}={}){const{t:s}=N("auth"),[r,m]=t.useState(""),[o,x]=t.useState(!1),[d,i]=t.useState(""),[c,u]=t.useState(!1),b=w(),p=async l=>{l.preventDefault(),i(""),u(!0);try{const n=await j(r);v(n.token),a==null||a(),b("/",{replace:!0})}catch(n){i(n.message||s("login.failed"))}finally{u(!1)}};return e.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-background relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 grid-bg"}),e.jsx("div",{className:"absolute inset-0 pointer-events-none",children:e.jsx("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full bg-[radial-gradient(circle,rgba(0,102,255,0.08)_0%,transparent_70%)]"})}),e.jsxs("div",{className:"w-full max-w-sm relative z-10",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx(h,{className:"w-40 h-40 mx-auto mb-4 object-contain"}),e.jsx("p",{className:"text-sm text-muted mt-1",children:s("login.title")})]}),e.jsx("div",{className:"bg-card border border-[var(--border)] rounded-xl backdrop-blur-xl p-6 shadow-2xl",children:e.jsxs("form",{onSubmit:p,className:"space-y-4",children:[d&&e.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:d}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-muted mb-1.5",children:s("login.password")}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:o?"text":"password",value:r,onChange:l=>m(l.target.value),placeholder:s("login.placeholder"),className:"w-full bg-[var(--input-bg)] border border-[var(--border)] rounded-md px-3 py-2.5 text-sm text-foreground placeholder-[var(--muted)] focus:outline-none focus:ring-1 focus:ring-[#0066FF]/60 focus:border-[#0066FF]/60 pr-10 transition-colors duration-200",autoFocus:!0}),e.jsx("button",{type:"button",onClick:()=>x(!o),"aria-label":s("common:action.togglePassword"),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted hover:text-foreground transition-colors",children:o?e.jsx(g,{}):e.jsx(f,{})})]})]}),e.jsx("button",{type:"submit",disabled:c||!r,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:c?e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx("span",{className:"w-3.5 h-3.5 border-2 border-white/30 border-t-white rounded-full animate-spin"}),s("login.loading")]}):s("login.submit")})]})}),e.jsxs("p",{className:"text-xs text-muted mt-6 text-center",children:[s("login.forgotPassword")," ",e.jsx("code",{className:"text-foreground bg-card px-1 py-0.5 rounded text-[11px]",children:"jishushell onboard --force"})]})]})]})}export{k as default};
|