jishushell 0.5.22 → 0.6.18
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/apps/anythingllm-container.yaml +20 -177
- package/apps/browserless-chromium-container.yaml +17 -12
- package/apps/filebrowser-container.yaml +22 -9
- package/apps/hermes-container.yaml +23 -2
- package/apps/jishu-kb-container.yaml +152 -0
- package/apps/ollama-binary.yaml +32 -28
- package/apps/ollama-cpu-container.yaml +5 -0
- package/apps/ollama-with-hollama-binary.yaml +33 -28
- package/apps/openclaw-binary.yaml +34 -10
- package/apps/openclaw-container.yaml +33 -8
- package/apps/openclaw-with-ollama-container.yaml +8 -2
- package/apps/openclaw-with-searxng-container.yaml +18 -6
- package/apps/searxng-container.yaml +12 -7
- package/apps/weknora-container.yaml +29 -23
- package/dependencies/jishushell-panel-0.6.18.tgz +0 -0
- package/dist/cli/app.js +494 -192
- package/dist/cli/app.js.map +1 -1
- package/dist/cli/backup.js +112 -139
- package/dist/cli/backup.js.map +1 -1
- package/dist/cli/core.d.ts +30 -0
- package/dist/cli/core.js +1415 -0
- package/dist/cli/core.js.map +1 -0
- package/dist/cli/doctor.d.ts +1 -1
- package/dist/cli/doctor.js +50 -61
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/job.js +62 -14
- package/dist/cli/job.js.map +1 -1
- package/dist/cli/llm.d.ts +1 -18
- package/dist/cli/llm.js +103 -83
- package/dist/cli/llm.js.map +1 -1
- package/dist/cli/managed-list.d.ts +1 -3
- package/dist/cli/managed-list.js +18 -16
- package/dist/cli/managed-list.js.map +1 -1
- package/dist/cli/migrate.d.ts +2 -0
- package/dist/cli/migrate.js +160 -0
- package/dist/cli/migrate.js.map +1 -0
- package/dist/cli.js +26 -2
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +53 -44
- package/dist/config.js +216 -146
- 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 +7 -7
- package/dist/control.js +32 -24
- 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 +3 -10
- package/dist/install.js +118 -43
- package/dist/install.js.map +1 -1
- package/dist/routes/apps.d.ts +1 -1
- package/dist/routes/apps.js +100 -234
- package/dist/routes/apps.js.map +1 -1
- package/dist/routes/auth.d.ts +1 -3
- package/dist/routes/auth.js +7 -14
- 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.d.ts +1 -1
- package/dist/routes/external-mounts.js +7 -7
- package/dist/routes/external-mounts.js.map +1 -1
- package/dist/routes/file-mounts.d.ts +4 -3
- package/dist/routes/file-mounts.js +51 -30
- package/dist/routes/file-mounts.js.map +1 -1
- package/dist/routes/files-organize.d.ts +2 -2
- package/dist/routes/files-organize.js +5 -5
- package/dist/routes/files-organize.js.map +1 -1
- package/dist/routes/files.d.ts +1 -1
- package/dist/routes/files.js +1 -1
- package/dist/routes/files.js.map +1 -1
- package/dist/routes/instances.d.ts +11 -4
- package/dist/routes/instances.js +482 -923
- package/dist/routes/instances.js.map +1 -1
- package/dist/routes/integration-apps.d.ts +14 -0
- package/dist/routes/integration-apps.js +81 -0
- package/dist/routes/integration-apps.js.map +1 -0
- package/dist/routes/integrations.d.ts +9 -0
- package/dist/routes/integrations.js +12 -0
- package/dist/routes/integrations.js.map +1 -0
- package/dist/routes/llm-proxy.d.ts +2 -0
- package/dist/routes/llm-proxy.js +294 -0
- package/dist/routes/llm-proxy.js.map +1 -0
- package/dist/routes/llm.d.ts +1 -1
- package/dist/routes/llm.js +25 -75
- package/dist/routes/llm.js.map +1 -1
- package/dist/routes/setup.js +93 -93
- package/dist/routes/setup.js.map +1 -1
- package/dist/routes/system.js +248 -54
- package/dist/routes/system.js.map +1 -1
- package/dist/routes/webdav.d.ts +1 -1
- package/dist/routes/webdav.js +2 -2
- package/dist/routes/webdav.js.map +1 -1
- package/dist/server.d.ts +2 -0
- package/dist/server.js +343 -312
- package/dist/server.js.map +1 -1
- package/dist/services/app-common/app-compiler.js +186 -0
- package/dist/services/app-common/app-compiler.js.map +1 -0
- package/dist/services/app-common/app-shared.d.ts +15 -0
- package/dist/services/app-common/app-shared.js +64 -0
- package/dist/services/app-common/app-shared.js.map +1 -0
- package/dist/services/app-common/capability-service.d.ts +45 -0
- package/dist/services/app-common/capability-service.js +331 -0
- package/dist/services/app-common/capability-service.js.map +1 -0
- package/dist/services/app-common/catalog-service.d.ts +59 -0
- package/dist/services/app-common/catalog-service.js +308 -0
- package/dist/services/app-common/catalog-service.js.map +1 -0
- package/dist/services/app-common/create-pipeline.d.ts +26 -0
- package/dist/services/app-common/create-pipeline.js +298 -0
- package/dist/services/app-common/create-pipeline.js.map +1 -0
- package/dist/services/app-common/delete-service.d.ts +5 -0
- package/dist/services/app-common/delete-service.js +104 -0
- package/dist/services/app-common/delete-service.js.map +1 -0
- package/dist/services/app-common/execution-owner.d.ts +23 -0
- package/dist/services/app-common/execution-owner.js +124 -0
- package/dist/services/app-common/execution-owner.js.map +1 -0
- package/dist/services/app-common/execution-service.d.ts +23 -0
- package/dist/services/app-common/execution-service.js +105 -0
- package/dist/services/app-common/execution-service.js.map +1 -0
- package/dist/services/app-common/id-normalizer.d.ts +31 -0
- package/dist/services/app-common/id-normalizer.js +83 -0
- package/dist/services/app-common/id-normalizer.js.map +1 -0
- package/dist/services/app-common/install-store.d.ts +34 -0
- package/dist/services/app-common/install-store.js +261 -0
- package/dist/services/app-common/install-store.js.map +1 -0
- package/dist/services/app-common/instance-store.d.ts +78 -0
- package/dist/services/app-common/instance-store.js +495 -0
- package/dist/services/app-common/instance-store.js.map +1 -0
- package/dist/services/app-common/integration-refs.d.ts +17 -0
- package/dist/services/app-common/integration-refs.js +47 -0
- package/dist/services/app-common/integration-refs.js.map +1 -0
- package/dist/services/app-common/lifecycle-pipeline.d.ts +62 -0
- package/dist/services/app-common/lifecycle-pipeline.js +317 -0
- package/dist/services/app-common/lifecycle-pipeline.js.map +1 -0
- package/dist/services/app-common/lifecycle-scripts.d.ts +38 -0
- package/dist/services/app-common/lifecycle-scripts.js +935 -0
- package/dist/services/app-common/lifecycle-scripts.js.map +1 -0
- package/dist/services/app-common/lifecycle-service.d.ts +68 -0
- package/dist/services/app-common/lifecycle-service.js +467 -0
- package/dist/services/app-common/lifecycle-service.js.map +1 -0
- package/dist/services/app-common/paths.d.ts +29 -0
- package/dist/services/app-common/paths.js +34 -0
- package/dist/services/app-common/paths.js.map +1 -0
- package/dist/services/app-common/platform-transform.d.ts +32 -0
- package/dist/services/app-common/platform-transform.js +65 -0
- package/dist/services/app-common/platform-transform.js.map +1 -0
- package/dist/services/app-common/provide-resolver.d.ts +29 -0
- package/dist/services/app-common/provide-resolver.js +129 -0
- package/dist/services/app-common/provide-resolver.js.map +1 -0
- package/dist/services/app-common/remote-spec.d.ts +14 -0
- package/dist/services/app-common/remote-spec.js +58 -0
- package/dist/services/app-common/remote-spec.js.map +1 -0
- package/dist/services/app-common/runtime-builder.d.ts +1 -0
- package/dist/services/app-common/runtime-builder.js +2 -0
- package/dist/services/app-common/runtime-builder.js.map +1 -0
- package/dist/services/app-common/runtime-facts.d.ts +19 -0
- package/dist/services/app-common/runtime-facts.js +126 -0
- package/dist/services/app-common/runtime-facts.js.map +1 -0
- package/dist/services/app-common/service.d.ts +9 -0
- package/dist/services/app-common/service.js +10 -0
- package/dist/services/app-common/service.js.map +1 -0
- package/dist/services/app-common/spec-materializer.d.ts +9 -0
- package/dist/services/app-common/spec-materializer.js +361 -0
- package/dist/services/app-common/spec-materializer.js.map +1 -0
- package/dist/services/app-common/status-refresh.d.ts +33 -0
- package/dist/services/app-common/status-refresh.js +759 -0
- package/dist/services/app-common/status-refresh.js.map +1 -0
- package/dist/services/app-common/task-service.d.ts +29 -0
- package/dist/services/app-common/task-service.js +93 -0
- package/dist/services/app-common/task-service.js.map +1 -0
- package/dist/services/app-common/terminal-session-manager.js +157 -0
- package/dist/services/app-common/terminal-session-manager.js.map +1 -0
- package/dist/services/app-modules/browserless/routes.d.ts +9 -0
- package/dist/services/app-modules/browserless/routes.js +517 -0
- package/dist/services/app-modules/browserless/routes.js.map +1 -0
- package/dist/services/app-modules/routes.d.ts +2 -0
- package/dist/services/app-modules/routes.js +5 -0
- package/dist/services/app-modules/routes.js.map +1 -0
- package/dist/services/backup/backup-admin.d.ts +95 -0
- package/dist/services/backup/backup-admin.js +246 -0
- package/dist/services/backup/backup-admin.js.map +1 -0
- package/dist/services/backup/backup-manager.d.ts +264 -0
- package/dist/services/backup/backup-manager.js +2318 -0
- package/dist/services/backup/backup-manager.js.map +1 -0
- package/dist/services/backup/backup-verify.js +240 -0
- package/dist/services/backup/backup-verify.js.map +1 -0
- package/dist/services/capabilities/browser-policy.d.ts +14 -0
- package/dist/services/capabilities/browser-policy.js +141 -0
- package/dist/services/capabilities/browser-policy.js.map +1 -0
- package/dist/services/capabilities/contract.d.ts +50 -0
- package/dist/services/capabilities/contract.js +129 -0
- package/dist/services/capabilities/contract.js.map +1 -0
- package/dist/services/capabilities/endpoint-validator.d.ts +42 -0
- package/dist/services/capabilities/endpoint-validator.js +114 -0
- package/dist/services/capabilities/endpoint-validator.js.map +1 -0
- package/dist/services/capabilities/health.d.ts +16 -0
- package/dist/services/capabilities/health.js +121 -0
- package/dist/services/capabilities/health.js.map +1 -0
- package/dist/services/capabilities/registry.d.ts +56 -0
- package/dist/services/capabilities/registry.js +222 -0
- package/dist/services/capabilities/registry.js.map +1 -0
- package/dist/services/capabilities/sync.d.ts +7 -0
- package/dist/services/capabilities/sync.js +223 -0
- package/dist/services/capabilities/sync.js.map +1 -0
- package/dist/services/capability-proxy/html-rewriters/browserless.d.ts +1 -0
- package/dist/services/capability-proxy/html-rewriters/browserless.js +83 -0
- package/dist/services/capability-proxy/html-rewriters/browserless.js.map +1 -0
- package/dist/services/capability-proxy/html-rewriters/index.d.ts +12 -0
- package/dist/services/capability-proxy/html-rewriters/index.js +25 -0
- package/dist/services/capability-proxy/html-rewriters/index.js.map +1 -0
- package/dist/services/capability-proxy/html-rewriters/jishukb.d.ts +1 -0
- package/dist/services/capability-proxy/html-rewriters/jishukb.js +161 -0
- package/dist/services/capability-proxy/html-rewriters/jishukb.js.map +1 -0
- package/dist/services/connections/admin.d.ts +80 -0
- package/dist/services/connections/admin.js +327 -0
- package/dist/services/connections/admin.js.map +1 -0
- package/dist/services/connections/apply.d.ts +110 -0
- package/dist/services/connections/apply.js +444 -0
- package/dist/services/connections/apply.js.map +1 -0
- package/dist/services/connections/resolver.d.ts +82 -0
- package/dist/services/connections/resolver.js +289 -0
- package/dist/services/connections/resolver.js.map +1 -0
- package/dist/services/connections/suggestions.d.ts +27 -0
- package/dist/services/connections/suggestions.js +124 -0
- package/dist/services/connections/suggestions.js.map +1 -0
- package/dist/services/connections/transactor.d.ts +39 -0
- package/dist/services/connections/transactor.js +307 -0
- package/dist/services/connections/transactor.js.map +1 -0
- package/dist/services/files/external-mounts.js +187 -0
- package/dist/services/files/external-mounts.js.map +1 -0
- package/dist/services/files/files-manager.d.ts +265 -0
- package/dist/services/files/files-manager.js +1189 -0
- package/dist/services/files/files-manager.js.map +1 -0
- package/dist/services/files/files-mounts.d.ts +42 -0
- package/dist/services/files/files-mounts.js +207 -0
- package/dist/services/files/files-mounts.js.map +1 -0
- package/dist/services/files/organize/applier.js +218 -0
- package/dist/services/files/organize/applier.js.map +1 -0
- package/dist/services/files/organize/rules.js +286 -0
- package/dist/services/files/organize/rules.js.map +1 -0
- package/dist/services/files/organize/scanner.js +366 -0
- package/dist/services/files/organize/scanner.js.map +1 -0
- package/dist/services/files/organize/store.js +82 -0
- package/dist/services/files/organize/store.js.map +1 -0
- package/dist/services/files/webdav/server.d.ts +47 -0
- package/dist/services/files/webdav/server.js +329 -0
- package/dist/services/files/webdav/server.js.map +1 -0
- package/dist/services/files/webdav/xml-builder.js.map +1 -0
- package/dist/services/instances/admin.d.ts +23 -0
- package/dist/services/instances/admin.js +218 -0
- package/dist/services/instances/admin.js.map +1 -0
- package/dist/services/instances/clone.d.ts +26 -0
- package/dist/services/instances/clone.js +78 -0
- package/dist/services/instances/clone.js.map +1 -0
- package/dist/services/instances/config-admin.d.ts +17 -0
- package/dist/services/instances/config-admin.js +181 -0
- package/dist/services/instances/config-admin.js.map +1 -0
- package/dist/services/instances/manager.d.ts +231 -0
- package/dist/services/instances/manager.js +1348 -0
- package/dist/services/instances/manager.js.map +1 -0
- package/dist/services/instances/passwords.js +173 -0
- package/dist/services/instances/passwords.js.map +1 -0
- package/dist/services/instances/types.d.ts +21 -0
- package/dist/services/instances/types.js +2 -0
- package/dist/services/instances/types.js.map +1 -0
- package/dist/services/integrations/anythingllm/integration.d.ts +25 -0
- package/dist/services/integrations/anythingllm/integration.js +251 -0
- package/dist/services/integrations/anythingllm/integration.js.map +1 -0
- package/dist/services/integrations/catalog.d.ts +3 -0
- package/dist/services/integrations/catalog.js +73 -0
- package/dist/services/integrations/catalog.js.map +1 -0
- package/dist/services/integrations/custom/integration.d.ts +28 -0
- package/dist/services/integrations/custom/integration.js +179 -0
- package/dist/services/integrations/custom/integration.js.map +1 -0
- package/dist/services/integrations/hermes/integration.d.ts +194 -0
- package/dist/services/integrations/hermes/integration.js +1669 -0
- package/dist/services/integrations/hermes/integration.js.map +1 -0
- package/dist/services/integrations/index.d.ts +40 -0
- package/dist/services/integrations/index.js +59 -0
- package/dist/services/integrations/index.js.map +1 -0
- package/dist/services/integrations/installable/catalog.d.ts +33 -0
- package/dist/services/integrations/installable/catalog.js +88 -0
- package/dist/services/integrations/installable/catalog.js.map +1 -0
- package/dist/services/integrations/installable/index.d.ts +35 -0
- package/dist/services/integrations/installable/index.js +170 -0
- package/dist/services/integrations/installable/index.js.map +1 -0
- package/dist/services/integrations/installable/installers/integration-probes.d.ts +50 -0
- package/dist/services/integrations/installable/installers/integration-probes.js +231 -0
- package/dist/services/integrations/installable/installers/integration-probes.js.map +1 -0
- package/dist/services/integrations/installable/installers/integration.d.ts +30 -0
- package/dist/services/integrations/installable/installers/integration.js +177 -0
- package/dist/services/integrations/installable/installers/integration.js.map +1 -0
- package/dist/services/integrations/installable/installers/registry-probe.js.map +1 -0
- package/dist/services/integrations/installable/installers/shell-script.d.ts +46 -0
- package/dist/services/integrations/installable/installers/shell-script.js +487 -0
- package/dist/services/integrations/installable/installers/shell-script.js.map +1 -0
- package/dist/services/integrations/installable/types.d.ts +130 -0
- package/dist/services/integrations/installable/types.js +19 -0
- package/dist/services/integrations/installable/types.js.map +1 -0
- package/dist/services/integrations/jishukb/integration.d.ts +22 -0
- package/dist/services/integrations/jishukb/integration.js +189 -0
- package/dist/services/integrations/jishukb/integration.js.map +1 -0
- package/dist/services/integrations/openclaw/anythingllm-shim.d.ts +46 -0
- package/dist/services/integrations/openclaw/anythingllm-shim.js +281 -0
- package/dist/services/integrations/openclaw/anythingllm-shim.js.map +1 -0
- package/dist/services/integrations/openclaw/drive-shim.d.ts +54 -0
- package/dist/services/integrations/openclaw/drive-shim.js +490 -0
- package/dist/services/integrations/openclaw/drive-shim.js.map +1 -0
- package/dist/services/integrations/openclaw/integration.d.ts +424 -0
- package/dist/services/integrations/openclaw/integration.js +4402 -0
- package/dist/services/integrations/openclaw/integration.js.map +1 -0
- package/dist/services/integrations/openclaw/jishukb-shim.d.ts +48 -0
- package/dist/services/integrations/openclaw/jishukb-shim.js +750 -0
- package/dist/services/integrations/openclaw/jishukb-shim.js.map +1 -0
- package/dist/services/integrations/openclaw/mcporter-lite.d.ts +24 -0
- package/dist/services/integrations/openclaw/mcporter-lite.js +276 -0
- package/dist/services/integrations/openclaw/mcporter-lite.js.map +1 -0
- package/dist/services/integrations/openclaw/mcporter.d.ts +46 -0
- package/dist/services/integrations/openclaw/mcporter.js +112 -0
- package/dist/services/integrations/openclaw/mcporter.js.map +1 -0
- package/dist/services/integrations/openclaw/routes.d.ts +21 -0
- package/dist/services/integrations/openclaw/routes.js +1191 -0
- package/dist/services/integrations/openclaw/routes.js.map +1 -0
- package/dist/services/integrations/registry.d.ts +17 -0
- package/dist/services/integrations/registry.js +36 -0
- package/dist/services/integrations/registry.js.map +1 -0
- package/dist/services/integrations/routes.d.ts +2 -0
- package/dist/services/integrations/routes.js +9 -0
- package/dist/services/integrations/routes.js.map +1 -0
- package/dist/services/integrations/types.d.ts +469 -0
- package/dist/services/integrations/types.js +2 -0
- package/dist/services/integrations/types.js.map +1 -0
- package/dist/services/legacy-migrator/classifier.d.ts +44 -0
- package/dist/services/legacy-migrator/classifier.js +309 -0
- package/dist/services/legacy-migrator/classifier.js.map +1 -0
- package/dist/services/legacy-migrator/executor.d.ts +42 -0
- package/dist/services/legacy-migrator/executor.js +637 -0
- package/dist/services/legacy-migrator/executor.js.map +1 -0
- package/dist/services/legacy-migrator/index.d.ts +31 -0
- package/dist/services/legacy-migrator/index.js +34 -0
- package/dist/services/legacy-migrator/index.js.map +1 -0
- package/dist/services/legacy-migrator/planner.d.ts +8 -0
- package/dist/services/legacy-migrator/planner.js +154 -0
- package/dist/services/legacy-migrator/planner.js.map +1 -0
- package/dist/services/legacy-migrator/provider-settings.d.ts +6 -0
- package/dist/services/legacy-migrator/provider-settings.js +72 -0
- package/dist/services/legacy-migrator/provider-settings.js.map +1 -0
- package/dist/services/legacy-migrator/report.d.ts +9 -0
- package/dist/services/legacy-migrator/report.js +99 -0
- package/dist/services/legacy-migrator/report.js.map +1 -0
- package/dist/services/legacy-migrator/scanner.d.ts +13 -0
- package/dist/services/legacy-migrator/scanner.js +157 -0
- package/dist/services/legacy-migrator/scanner.js.map +1 -0
- package/dist/services/legacy-migrator/types.d.ts +97 -0
- package/dist/services/legacy-migrator/types.js +23 -0
- package/dist/services/legacy-migrator/types.js.map +1 -0
- 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 -105
- package/dist/services/llm-proxy/index.js +12 -889
- package/dist/services/llm-proxy/index.js.map +1 -1
- package/dist/services/llm-proxy/instance-proxy.d.ts +61 -0
- package/dist/services/llm-proxy/instance-proxy.js +702 -0
- package/dist/services/llm-proxy/instance-proxy.js.map +1 -0
- package/dist/services/llm-proxy/probe.js +5 -14
- package/dist/services/llm-proxy/probe.js.map +1 -1
- package/dist/services/llm-proxy/providers.d.ts +21 -0
- package/dist/services/llm-proxy/providers.js +88 -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/ssrf.d.ts +11 -4
- package/dist/services/llm-proxy/ssrf.js +45 -7
- package/dist/services/llm-proxy/ssrf.js.map +1 -1
- package/dist/services/llm-proxy/validate-key.js +27 -51
- package/dist/services/llm-proxy/validate-key.js.map +1 -1
- package/dist/services/repair/runtime-repair.d.ts +22 -0
- package/dist/services/repair/runtime-repair.js +307 -0
- package/dist/services/repair/runtime-repair.js.map +1 -0
- package/dist/services/runtime/driver-registry.d.ts +21 -0
- package/dist/services/runtime/driver-registry.js +22 -0
- package/dist/services/runtime/driver-registry.js.map +1 -0
- package/dist/services/runtime/drivers/nomad.d.ts +260 -0
- package/dist/services/runtime/drivers/nomad.js +3092 -0
- package/dist/services/runtime/drivers/nomad.js.map +1 -0
- package/dist/services/runtime/errors.d.ts +3 -3
- package/dist/services/runtime/errors.js +3 -3
- package/dist/services/runtime/instance.d.ts +14 -16
- package/dist/services/runtime/instance.js +93 -110
- 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/firewall.d.ts +2 -2
- package/dist/services/runtime/mcp-shims/firewall.js +2 -2
- package/dist/services/runtime/mcp-shims/searxng-shim.d.ts +3 -5
- package/dist/services/runtime/mcp-shims/searxng-shim.js +3 -5
- package/dist/services/runtime/mcp-shims/searxng-shim.js.map +1 -1
- package/dist/services/runtime/mcp-shims/write-mcp-entry.d.ts +20 -20
- package/dist/services/runtime/mcp-shims/write-mcp-entry.js +16 -16
- package/dist/services/runtime/mcp-shims/write-mcp-entry.js.map +1 -1
- package/dist/services/runtime/ownership-marker.d.ts +83 -0
- package/dist/services/runtime/ownership-marker.js +109 -0
- package/dist/services/runtime/ownership-marker.js.map +1 -0
- package/dist/services/runtime/types.d.ts +23 -511
- package/dist/services/runtime/types.js +0 -12
- package/dist/services/runtime/types.js.map +1 -1
- package/dist/services/runtime/workload-compiler.d.ts +17 -0
- package/dist/services/runtime/workload-compiler.js +525 -0
- package/dist/services/runtime/workload-compiler.js.map +1 -0
- package/dist/services/runtime/workload-types.d.ts +11 -0
- package/dist/services/runtime/workload-types.js +2 -0
- package/dist/services/runtime/workload-types.js.map +1 -0
- package/dist/services/setup/core-manager.d.ts +50 -0
- package/dist/services/setup/core-manager.js +456 -0
- package/dist/services/setup/core-manager.js.map +1 -0
- package/dist/services/setup/plugin-installer.js +136 -0
- package/dist/services/setup/plugin-installer.js.map +1 -0
- package/dist/services/setup/setup-manager.d.ts +158 -0
- package/dist/services/setup/setup-manager.js +2768 -0
- package/dist/services/setup/setup-manager.js.map +1 -0
- package/dist/services/system/cli-command.d.ts +5 -0
- package/dist/services/system/cli-command.js +18 -0
- package/dist/services/system/cli-command.js.map +1 -0
- package/dist/services/system/macos-launchd.d.ts +100 -0
- package/dist/services/system/macos-launchd.js +312 -0
- package/dist/services/system/macos-launchd.js.map +1 -0
- package/dist/services/system/repair-orchestrator.d.ts +71 -0
- package/dist/services/system/repair-orchestrator.js +412 -0
- package/dist/services/system/repair-orchestrator.js.map +1 -0
- package/dist/services/system/system-monitor.js +96 -0
- package/dist/services/system/system-monitor.js.map +1 -0
- package/dist/services/system/system-ollama-provider.d.ts +14 -0
- package/dist/services/system/system-ollama-provider.js +129 -0
- package/dist/services/system/system-ollama-provider.js.map +1 -0
- package/dist/services/system/system-reconciler.d.ts +59 -0
- package/dist/services/system/system-reconciler.js +710 -0
- package/dist/services/system/system-reconciler.js.map +1 -0
- package/dist/services/system/update-manager.d.ts +43 -0
- package/dist/services/system/update-manager.js +315 -0
- package/dist/services/system/update-manager.js.map +1 -0
- package/dist/services/system/upgrade-finalize.d.ts +80 -0
- package/dist/services/system/upgrade-finalize.js +507 -0
- package/dist/services/system/upgrade-finalize.js.map +1 -0
- package/dist/services/tasks/registry.d.ts +44 -0
- package/dist/services/tasks/registry.js +90 -0
- package/dist/services/tasks/registry.js.map +1 -0
- package/dist/services/telemetry/activation.d.ts +8 -4
- package/dist/services/telemetry/activation.js +12 -8
- 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 +8 -4
- package/dist/services/telemetry/heartbeat.js +12 -8
- package/dist/services/telemetry/heartbeat.js.map +1 -1
- package/dist/services/workspaces/builder.d.ts +29 -0
- package/dist/services/workspaces/builder.js +186 -0
- package/dist/services/workspaces/builder.js.map +1 -0
- package/dist/types.d.ts +361 -72
- 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/instance-lock.d.ts +2 -2
- package/dist/utils/instance-lock.js +2 -2
- 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 +627 -109
- package/install/jishu-uninstall.sh +48 -12
- package/install/post-install.sh +316 -93
- package/install/post-uninstall.sh +99 -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/workflows/ci.yml +33 -0
- package/node_modules/@fastify/static/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/static/LICENSE +21 -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-benchmark.js +39 -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 +726 -0
- package/node_modules/@fastify/static/lib/dirList.js +225 -0
- package/node_modules/@fastify/static/package.json +89 -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 +820 -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 +4115 -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 +136 -0
- package/node_modules/@fastify/static/types/index.test-d.ts +240 -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/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +141 -0
- package/node_modules/content-disposition/index.js +536 -0
- package/node_modules/content-disposition/package.json +40 -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/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/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1203 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts +396 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -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/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts +79 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -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/glob.d.ts +396 -0
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/glob.js +244 -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/index.min.js +4 -0
- package/node_modules/glob/dist/esm/index.min.js.map +7 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.d.ts +79 -0
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -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 +98 -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/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 +466 -0
- package/node_modules/jishushell-panel/output/dist/server.js.map +1 -0
- package/node_modules/jishushell-panel/output/public/assets/ApiKeyField-NKcbHjNz.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/Dashboard-Da1fL38t.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/HermesChatPanel-DZvmYsoh.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/HermesConfigForm-BLUWlKwm.js +4 -0
- package/node_modules/jishushell-panel/output/public/assets/InitPassword-BAKsshzk.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/InstanceDetail-Dgyc_TX5.js +14 -0
- package/node_modules/jishushell-panel/output/public/assets/Login-DHeOmwI8.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/NewInstance-CIy0cYtp.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/ProviderRecommendations-H0ByEYF0.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/Settings-DAT-UMfP.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/Setup-g3uckFYR.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/WeixinLoginPanel-D-T6BxkQ.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/api-C70Gt678.js +4 -0
- package/node_modules/jishushell-panel/output/public/assets/index-DnnqTf7s.css +1 -0
- package/node_modules/jishushell-panel/output/public/assets/index-ERt6_ngA.js +23 -0
- package/node_modules/jishushell-panel/output/public/assets/registry-DF93EzIb.js +2 -0
- package/node_modules/jishushell-panel/output/public/assets/rolldown-runtime-QTnfLwEv.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/setup-task-q21GnI0E.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/usePolling-DeoThIQn.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/vendor-i18n-CS8DFbkQ.js +1 -0
- package/node_modules/jishushell-panel/output/public/assets/vendor-react-Cc84NArf.js +8 -0
- package/node_modules/jishushell-panel/output/public/index.html +22 -0
- 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/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-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 +573 -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/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/package.json +43 -20
- package/scripts/build-local.sh +10 -11
- package/scripts/check-app-path-boundaries.mjs +121 -0
- package/scripts/check-app-spec.mjs +127 -25
- package/scripts/check-colima-launchd.mjs +26 -22
- package/scripts/check-integration-isolation.ts +541 -0
- package/scripts/check-new-file-tests.mjs +16 -47
- package/scripts/check-open-core-boundaries.mjs +334 -0
- package/scripts/check-test-layering.sh +86 -0
- package/scripts/fixtures/instances/hermes-sample/instance.json +3 -2
- package/scripts/fixtures/instances/legacy-openclaw-sample/instance.json +1 -1
- package/scripts/local-web-upgrade-test.README +147 -0
- package/scripts/local-web-upgrade-test.example.env +54 -0
- package/scripts/local-web-upgrade-test.sh +894 -0
- package/scripts/pack-gui-and-send-pi.sh +41 -0
- package/scripts/pack-with-gui.mjs +391 -0
- package/scripts/perf/instances.js +1 -1
- package/scripts/prune-open-core-dist.mjs +91 -0
- package/scripts/run.sh +24 -25
- package/scripts/setup-pi.sh +2 -2
- package/scripts/smoke/hermes-bootstrap.sh +7 -7
- package/scripts/smoke-backend.mjs +33 -1
- package/templates/hermes-entrypoint.sh +19 -29
- package/apps/openwebui-container.yaml +0 -97
- package/apps/playwright-container.yaml +0 -126
- package/dist/cli/panel.d.ts +0 -27
- package/dist/cli/panel.js +0 -805
- package/dist/cli/panel.js.map +0 -1
- package/dist/crypto-shim.d.ts +0 -1
- package/dist/crypto-shim.js +0 -2
- package/dist/crypto-shim.js.map +0 -1
- package/dist/routes/agent-apps.d.ts +0 -15
- package/dist/routes/agent-apps.js +0 -78
- package/dist/routes/agent-apps.js.map +0 -1
- package/dist/routes/internal.d.ts +0 -2
- package/dist/routes/internal.js +0 -59
- package/dist/routes/internal.js.map +0 -1
- package/dist/routes/runtime.d.ts +0 -15
- package/dist/routes/runtime.js +0 -69
- package/dist/routes/runtime.js.map +0 -1
- package/dist/services/agent-apps/catalog.d.ts +0 -33
- package/dist/services/agent-apps/catalog.js +0 -88
- package/dist/services/agent-apps/catalog.js.map +0 -1
- package/dist/services/agent-apps/index.d.ts +0 -36
- package/dist/services/agent-apps/index.js +0 -171
- package/dist/services/agent-apps/index.js.map +0 -1
- package/dist/services/agent-apps/installers/adapter-probes.d.ts +0 -49
- package/dist/services/agent-apps/installers/adapter-probes.js +0 -223
- package/dist/services/agent-apps/installers/adapter-probes.js.map +0 -1
- package/dist/services/agent-apps/installers/adapter.d.ts +0 -30
- package/dist/services/agent-apps/installers/adapter.js +0 -171
- package/dist/services/agent-apps/installers/adapter.js.map +0 -1
- package/dist/services/agent-apps/installers/registry-probe.js.map +0 -1
- package/dist/services/agent-apps/installers/shell-script.d.ts +0 -47
- package/dist/services/agent-apps/installers/shell-script.js +0 -488
- package/dist/services/agent-apps/installers/shell-script.js.map +0 -1
- package/dist/services/agent-apps/types.d.ts +0 -128
- package/dist/services/agent-apps/types.js +0 -17
- package/dist/services/agent-apps/types.js.map +0 -1
- package/dist/services/app/app-compiler.js +0 -172
- package/dist/services/app/app-compiler.js.map +0 -1
- package/dist/services/app/app-manager.d.ts +0 -174
- package/dist/services/app/app-manager.js +0 -2741
- package/dist/services/app/app-manager.js.map +0 -1
- package/dist/services/app/custom-manager.d.ts +0 -27
- package/dist/services/app/custom-manager.js +0 -285
- package/dist/services/app/custom-manager.js.map +0 -1
- package/dist/services/app/hermes-agent-manager.d.ts +0 -20
- package/dist/services/app/hermes-agent-manager.js +0 -292
- package/dist/services/app/hermes-agent-manager.js.map +0 -1
- package/dist/services/app/id-normalizer.d.ts +0 -27
- package/dist/services/app/id-normalizer.js +0 -77
- package/dist/services/app/id-normalizer.js.map +0 -1
- package/dist/services/app/ollama-manager.d.ts +0 -18
- package/dist/services/app/ollama-manager.js +0 -207
- package/dist/services/app/ollama-manager.js.map +0 -1
- package/dist/services/app/openclaw-manager.d.ts +0 -63
- package/dist/services/app/openclaw-manager.js +0 -1210
- package/dist/services/app/openclaw-manager.js.map +0 -1
- package/dist/services/app/paths.d.ts +0 -47
- package/dist/services/app/paths.js +0 -68
- package/dist/services/app/paths.js.map +0 -1
- package/dist/services/app/platform-transform.d.ts +0 -32
- package/dist/services/app/platform-transform.js +0 -65
- package/dist/services/app/platform-transform.js.map +0 -1
- package/dist/services/app/provide-resolver.d.ts +0 -29
- package/dist/services/app/provide-resolver.js +0 -112
- package/dist/services/app/provide-resolver.js.map +0 -1
- package/dist/services/app/registry.d.ts +0 -17
- package/dist/services/app/registry.js +0 -31
- package/dist/services/app/registry.js.map +0 -1
- package/dist/services/app/remote-spec.d.ts +0 -14
- package/dist/services/app/remote-spec.js +0 -58
- package/dist/services/app/remote-spec.js.map +0 -1
- package/dist/services/app/terminal-session-manager.js +0 -157
- package/dist/services/app/terminal-session-manager.js.map +0 -1
- package/dist/services/app/types.d.ts +0 -72
- package/dist/services/app/types.js +0 -16
- package/dist/services/app/types.js.map +0 -1
- package/dist/services/app-passwords.js +0 -173
- package/dist/services/app-passwords.js.map +0 -1
- package/dist/services/backup-manager.d.ts +0 -264
- package/dist/services/backup-manager.js +0 -2264
- package/dist/services/backup-manager.js.map +0 -1
- package/dist/services/backup-verify.js +0 -240
- package/dist/services/backup-verify.js.map +0 -1
- package/dist/services/capability-endpoint-validator.d.ts +0 -41
- package/dist/services/capability-endpoint-validator.js +0 -123
- package/dist/services/capability-endpoint-validator.js.map +0 -1
- package/dist/services/capability-health.d.ts +0 -16
- package/dist/services/capability-health.js +0 -121
- package/dist/services/capability-health.js.map +0 -1
- package/dist/services/capability-registry.d.ts +0 -106
- package/dist/services/capability-registry.js +0 -313
- package/dist/services/capability-registry.js.map +0 -1
- package/dist/services/connection-apply.d.ts +0 -91
- package/dist/services/connection-apply.js +0 -475
- package/dist/services/connection-apply.js.map +0 -1
- package/dist/services/connection-resolver.d.ts +0 -65
- package/dist/services/connection-resolver.js +0 -281
- package/dist/services/connection-resolver.js.map +0 -1
- package/dist/services/connection-transactor.d.ts +0 -39
- package/dist/services/connection-transactor.js +0 -351
- package/dist/services/connection-transactor.js.map +0 -1
- package/dist/services/external-mounts.js +0 -187
- package/dist/services/external-mounts.js.map +0 -1
- package/dist/services/files-manager.d.ts +0 -252
- package/dist/services/files-manager.js +0 -1075
- package/dist/services/files-manager.js.map +0 -1
- package/dist/services/files-mounts.d.ts +0 -42
- package/dist/services/files-mounts.js +0 -207
- package/dist/services/files-mounts.js.map +0 -1
- package/dist/services/instance-manager.d.ts +0 -191
- package/dist/services/instance-manager.js +0 -1296
- package/dist/services/instance-manager.js.map +0 -1
- package/dist/services/macos-launchd.d.ts +0 -89
- package/dist/services/macos-launchd.js +0 -273
- package/dist/services/macos-launchd.js.map +0 -1
- package/dist/services/nomad-manager.d.ts +0 -290
- package/dist/services/nomad-manager.js +0 -3953
- package/dist/services/nomad-manager.js.map +0 -1
- package/dist/services/organize/applier.js +0 -218
- package/dist/services/organize/applier.js.map +0 -1
- package/dist/services/organize/rules.js +0 -286
- package/dist/services/organize/rules.js.map +0 -1
- package/dist/services/organize/scanner.js +0 -366
- package/dist/services/organize/scanner.js.map +0 -1
- package/dist/services/organize/store.js +0 -82
- package/dist/services/organize/store.js.map +0 -1
- package/dist/services/panel-manager.d.ts +0 -50
- package/dist/services/panel-manager.js +0 -472
- package/dist/services/panel-manager.js.map +0 -1
- package/dist/services/plugin-installer.js +0 -128
- package/dist/services/plugin-installer.js.map +0 -1
- package/dist/services/process-manager.d.ts +0 -25
- package/dist/services/process-manager.js +0 -568
- package/dist/services/process-manager.js.map +0 -1
- package/dist/services/runtime/adapters/custom.d.ts +0 -20
- package/dist/services/runtime/adapters/custom.js +0 -146
- package/dist/services/runtime/adapters/custom.js.map +0 -1
- package/dist/services/runtime/adapters/hermes.d.ts +0 -204
- package/dist/services/runtime/adapters/hermes.js +0 -1631
- package/dist/services/runtime/adapters/hermes.js.map +0 -1
- package/dist/services/runtime/adapters/openclaw-mcporter.d.ts +0 -45
- package/dist/services/runtime/adapters/openclaw-mcporter.js +0 -108
- package/dist/services/runtime/adapters/openclaw-mcporter.js.map +0 -1
- package/dist/services/runtime/adapters/openclaw-routes.d.ts +0 -23
- package/dist/services/runtime/adapters/openclaw-routes.js +0 -1014
- package/dist/services/runtime/adapters/openclaw-routes.js.map +0 -1
- package/dist/services/runtime/adapters/openclaw.d.ts +0 -393
- package/dist/services/runtime/adapters/openclaw.js +0 -3853
- package/dist/services/runtime/adapters/openclaw.js.map +0 -1
- package/dist/services/runtime/index.d.ts +0 -34
- package/dist/services/runtime/index.js +0 -51
- package/dist/services/runtime/index.js.map +0 -1
- package/dist/services/runtime/mcp-shims/anythingllm-shim.d.ts +0 -46
- package/dist/services/runtime/mcp-shims/anythingllm-shim.js +0 -281
- package/dist/services/runtime/mcp-shims/anythingllm-shim.js.map +0 -1
- package/dist/services/runtime/mcp-shims/drive-shim.d.ts +0 -54
- package/dist/services/runtime/mcp-shims/drive-shim.js +0 -489
- package/dist/services/runtime/mcp-shims/drive-shim.js.map +0 -1
- package/dist/services/runtime/migrations.d.ts +0 -23
- package/dist/services/runtime/migrations.js +0 -125
- package/dist/services/runtime/migrations.js.map +0 -1
- package/dist/services/runtime/registry.d.ts +0 -13
- package/dist/services/runtime/registry.js +0 -32
- package/dist/services/runtime/registry.js.map +0 -1
- package/dist/services/setup-manager.d.ts +0 -136
- package/dist/services/setup-manager.js +0 -2149
- package/dist/services/setup-manager.js.map +0 -1
- package/dist/services/suggestions.d.ts +0 -27
- package/dist/services/suggestions.js +0 -133
- package/dist/services/suggestions.js.map +0 -1
- package/dist/services/system-monitor.js +0 -79
- package/dist/services/system-monitor.js.map +0 -1
- package/dist/services/task-registry.d.ts +0 -44
- package/dist/services/task-registry.js +0 -76
- package/dist/services/task-registry.js.map +0 -1
- package/dist/services/types-shim.d.ts +0 -16
- package/dist/services/types-shim.js +0 -2
- package/dist/services/types-shim.js.map +0 -1
- package/dist/services/update-manager.d.ts +0 -47
- package/dist/services/update-manager.js +0 -323
- package/dist/services/update-manager.js.map +0 -1
- package/dist/services/webdav/server.d.ts +0 -24
- package/dist/services/webdav/server.js +0 -420
- package/dist/services/webdav/server.js.map +0 -1
- package/dist/services/webdav/xml-builder.js.map +0 -1
- package/dist/services/workspace-builder.d.ts +0 -29
- package/dist/services/workspace-builder.js +0 -188
- package/dist/services/workspace-builder.js.map +0 -1
- package/public/assets/ApiKeyField-CvyAOcJS.js +0 -1
- package/public/assets/Dashboard-AuJESBlJ.js +0 -1
- package/public/assets/HermesChatPanel-CByPREwb.js +0 -1
- package/public/assets/HermesConfigForm-DRda8FKX.js +0 -4
- package/public/assets/InitPassword-ka4wNpM5.js +0 -1
- package/public/assets/InstanceDetail-Cg1nS8HX.js +0 -92
- package/public/assets/Login-aPajuQzf.js +0 -1
- package/public/assets/NewInstance-Dd1ebNIx.js +0 -1
- package/public/assets/ProviderRecommendations-DFmADQ7V.js +0 -1
- package/public/assets/Settings-BYQnbLYL.js +0 -1
- package/public/assets/Setup-D05lwDOV.js +0 -1
- package/public/assets/WeixinLoginPanel-D89kdhP4.js +0 -9
- package/public/assets/index-HSXCsceK.css +0 -1
- package/public/assets/index-bnBu0nlQ.js +0 -19
- package/public/assets/registry-C_qeFTkZ.js +0 -2
- package/public/assets/usePolling-Bn93fe7M.js +0 -1
- package/public/assets/vendor-i18n-flxcMVeP.js +0 -9
- package/public/assets/vendor-react-ZC5T_huj.js +0 -59
- package/public/index.html +0 -20
- package/scripts/build-image.sh +0 -55
- package/scripts/check-adapter-isolation.ts +0 -293
- package/scripts/check-i18n.mjs +0 -154
- /package/dist/services/{app → app-common}/app-compiler.d.ts +0 -0
- /package/dist/services/{app → app-common}/terminal-session-manager.d.ts +0 -0
- /package/dist/services/{backup-verify.d.ts → backup/backup-verify.d.ts} +0 -0
- /package/dist/services/{external-mounts.d.ts → files/external-mounts.d.ts} +0 -0
- /package/dist/services/{organize → files/organize}/applier.d.ts +0 -0
- /package/dist/services/{organize → files/organize}/rules.d.ts +0 -0
- /package/dist/services/{organize → files/organize}/scanner.d.ts +0 -0
- /package/dist/services/{organize → files/organize}/store.d.ts +0 -0
- /package/dist/services/{webdav → files/webdav}/xml-builder.d.ts +0 -0
- /package/dist/services/{webdav → files/webdav}/xml-builder.js +0 -0
- /package/dist/services/{app-passwords.d.ts → instances/passwords.d.ts} +0 -0
- /package/dist/services/{agent-apps → integrations/installable}/installers/registry-probe.d.ts +0 -0
- /package/dist/services/{agent-apps → integrations/installable}/installers/registry-probe.js +0 -0
- /package/dist/services/{plugin-installer.d.ts → setup/plugin-installer.d.ts} +0 -0
- /package/dist/services/{system-monitor.d.ts → system/system-monitor.d.ts} +0 -0
- /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
|
@@ -1,1631 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HermesAdapter — first non-OpenClaw runtime adapter.
|
|
3
|
-
*
|
|
4
|
-
* Design: docs/multi-agent-runtime-generalization-plan.md §11, §28, §32.
|
|
5
|
-
*
|
|
6
|
-
* MVP scope (§32.3):
|
|
7
|
-
* - Only create / buildRuntime / getRuntimeVersion are wired up.
|
|
8
|
-
* - Baseline image mode only. Overlay upgrade CLI is deferred.
|
|
9
|
-
* - Assumes panel.json.runtime_catalog.hermes has been populated by
|
|
10
|
-
* setup-manager.installHermes(): defaultImage (+ optional defaultImageDigest),
|
|
11
|
-
* shimPath, resources, homeDirName.
|
|
12
|
-
*/
|
|
13
|
-
import { execFileSync } from "child_process";
|
|
14
|
-
import { createRequire } from "node:module";
|
|
15
|
-
import { chmodSync, chownSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "fs";
|
|
16
|
-
import { randomBytes } from "crypto";
|
|
17
|
-
import { dirname, join } from "path";
|
|
18
|
-
import { getPanelConfig, getRuntimeCatalogEntry, setRuntimeCatalogEntry, HERMES_DEFAULT_IMAGE, } from "../../../config.js";
|
|
19
|
-
import { ensureDirContainer, writeConfigFile, writeSecretFile, } from "../../../utils/fs.js";
|
|
20
|
-
import { safeWriteJson } from "../../../utils/safe-json.js";
|
|
21
|
-
import { ensureInstanceProxyToken, getProxyBaseUrl } from "../../llm-proxy/index.js";
|
|
22
|
-
import { allocateGatewayPort, releasePendingPort, resolveServiceUser, updateEnvFile, } from "../../instance-manager.js";
|
|
23
|
-
import { JISHUSHELL_HOME, getInstanceDir as instanceDir, instanceMetaPath } from "../../../config.js";
|
|
24
|
-
import { createTask, emitTask, spawnWithTask, resolveDockerInvocation, captureImageDigest, } from "../../setup-manager.js";
|
|
25
|
-
import { InstanceCreationRejected } from "../errors.js";
|
|
26
|
-
import YAML from "yaml";
|
|
27
|
-
import { registerAdapter } from "../registry.js";
|
|
28
|
-
import { SEARXNG_MCP_SHIM_SOURCE } from "../mcp-shims/searxng-shim.js";
|
|
29
|
-
import { resolveEnvTemplate, writeMcpEntry } from "../mcp-shims/write-mcp-entry.js";
|
|
30
|
-
import * as capabilityRegistry from "../../capability-registry.js";
|
|
31
|
-
const SEARXNG_SHIM_REL_PATH = "__mcp_shims__/searxng/index.mjs";
|
|
32
|
-
const HERMES_CONTAINER_PORT = 8642;
|
|
33
|
-
const HERMES_CONTAINER_HOME = "/opt/data";
|
|
34
|
-
const HERMES_CONTAINER_SHIM = "/usr/local/bin/jishushell-hermes-entry.sh";
|
|
35
|
-
const HERMES_CONTAINER_WORKDIR = "/opt/hermes";
|
|
36
|
-
export const HERMES_DEFAULT_GATEWAY_PORT = HERMES_CONTAINER_PORT;
|
|
37
|
-
const HERMES_VERSION_LABEL = "org.opencontainers.image.version";
|
|
38
|
-
const HERMES_MUTABLE_TAG_RE = /:(latest|slim)$/;
|
|
39
|
-
const HERMES_CATALOG_DEFAULTS = {
|
|
40
|
-
configFormat: "yaml+env",
|
|
41
|
-
homeDirName: "agent-home",
|
|
42
|
-
resources: { CPU: 1000, MemoryMB: 1024 },
|
|
43
|
-
allowDockerSock: false,
|
|
44
|
-
};
|
|
45
|
-
function readOfficialHermesRepoDigest(image) {
|
|
46
|
-
const repo = imageRepository(HERMES_DEFAULT_IMAGE);
|
|
47
|
-
if (!repo)
|
|
48
|
-
return null;
|
|
49
|
-
try {
|
|
50
|
-
const invocation = resolveDockerInvocation();
|
|
51
|
-
const raw = execFileSync(invocation.cmd, [
|
|
52
|
-
...invocation.argsPrefix,
|
|
53
|
-
"image",
|
|
54
|
-
"inspect",
|
|
55
|
-
"--format",
|
|
56
|
-
"{{range .RepoDigests}}{{.}}{{println}}{{end}}",
|
|
57
|
-
image,
|
|
58
|
-
], { timeout: 5_000, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] });
|
|
59
|
-
const prefix = `${repo}@sha256:`;
|
|
60
|
-
return raw
|
|
61
|
-
.split("\n")
|
|
62
|
-
.map((line) => line.trim())
|
|
63
|
-
.find((line) => line.startsWith(prefix) && /^[a-f0-9]{64}$/i.test(line.slice(prefix.length))) ?? null;
|
|
64
|
-
}
|
|
65
|
-
catch {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function assertOfficialHermesImage(image) {
|
|
70
|
-
const digest = readOfficialHermesRepoDigest(image);
|
|
71
|
-
if (digest)
|
|
72
|
-
return digest;
|
|
73
|
-
const repo = imageRepository(HERMES_DEFAULT_IMAGE) ?? HERMES_DEFAULT_IMAGE;
|
|
74
|
-
throw new Error(`Hermes image ${image} is not a JishuShell-provided runtime image. ` +
|
|
75
|
-
`It must be pulled from ${repo} and retain an official RepoDigest.`);
|
|
76
|
-
}
|
|
77
|
-
function imageRepository(image) {
|
|
78
|
-
const digestIdx = image.indexOf("@");
|
|
79
|
-
const withoutDigest = digestIdx >= 0 ? image.slice(0, digestIdx) : image;
|
|
80
|
-
const colonIdx = withoutDigest.lastIndexOf(":");
|
|
81
|
-
const slashIdx = withoutDigest.lastIndexOf("/");
|
|
82
|
-
if (colonIdx > slashIdx)
|
|
83
|
-
return withoutDigest.slice(0, colonIdx);
|
|
84
|
-
return withoutDigest || null;
|
|
85
|
-
}
|
|
86
|
-
function imageTag(image) {
|
|
87
|
-
const colonIdx = image.lastIndexOf(":");
|
|
88
|
-
const slashIdx = image.lastIndexOf("/");
|
|
89
|
-
if (colonIdx <= slashIdx)
|
|
90
|
-
return null;
|
|
91
|
-
const tag = image.slice(colonIdx + 1);
|
|
92
|
-
return tag && tag !== "<none>" && tag !== "none" ? tag : null;
|
|
93
|
-
}
|
|
94
|
-
function imageTagVersion(image) {
|
|
95
|
-
const tag = imageTag(image);
|
|
96
|
-
return tag && /^\d+\.\d+\.\d+/.test(tag) ? tag : undefined;
|
|
97
|
-
}
|
|
98
|
-
function versionScore(image) {
|
|
99
|
-
const tag = imageTag(image) ?? "";
|
|
100
|
-
const semver = tag.match(/^v?(\d+)\.(\d+)\.(\d+)/);
|
|
101
|
-
if (semver) {
|
|
102
|
-
return [
|
|
103
|
-
3,
|
|
104
|
-
Number.parseInt(semver[1], 10),
|
|
105
|
-
Number.parseInt(semver[2], 10),
|
|
106
|
-
Number.parseInt(semver[3], 10),
|
|
107
|
-
tag,
|
|
108
|
-
];
|
|
109
|
-
}
|
|
110
|
-
if (tag === "latest")
|
|
111
|
-
return [2, 0, 0, 0, tag];
|
|
112
|
-
if (tag === "slim")
|
|
113
|
-
return [1, 0, 0, 0, tag];
|
|
114
|
-
return [0, 0, 0, 0, tag];
|
|
115
|
-
}
|
|
116
|
-
function compareLocalHermesImages(left, right) {
|
|
117
|
-
const a = versionScore(left);
|
|
118
|
-
const b = versionScore(right);
|
|
119
|
-
for (let i = 0; i < 4; i++) {
|
|
120
|
-
const diff = b[i] - a[i];
|
|
121
|
-
if (diff !== 0)
|
|
122
|
-
return diff;
|
|
123
|
-
}
|
|
124
|
-
return b[4].localeCompare(a[4]);
|
|
125
|
-
}
|
|
126
|
-
function findLocalHermesImage() {
|
|
127
|
-
const repo = imageRepository(HERMES_DEFAULT_IMAGE);
|
|
128
|
-
if (!repo)
|
|
129
|
-
return null;
|
|
130
|
-
try {
|
|
131
|
-
const invocation = resolveDockerInvocation();
|
|
132
|
-
const out = execFileSync(invocation.cmd, [...invocation.argsPrefix, "image", "ls", "--format", "{{.Repository}}:{{.Tag}}"], { timeout: 5_000, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] });
|
|
133
|
-
const candidates = out
|
|
134
|
-
.split("\n")
|
|
135
|
-
.map((line) => line.trim())
|
|
136
|
-
.filter((line) => line.startsWith(`${repo}:`) && !!imageTag(line));
|
|
137
|
-
for (const candidate of candidates.sort(compareLocalHermesImages)) {
|
|
138
|
-
const digest = readOfficialHermesRepoDigest(candidate);
|
|
139
|
-
if (digest)
|
|
140
|
-
return { image: candidate, digest };
|
|
141
|
-
}
|
|
142
|
-
return null;
|
|
143
|
-
}
|
|
144
|
-
catch {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
function persistHermesCatalogForImage(image, existing, officialDigest) {
|
|
149
|
-
const next = {
|
|
150
|
-
...HERMES_CATALOG_DEFAULTS,
|
|
151
|
-
...(existing ?? {}),
|
|
152
|
-
defaultImage: image,
|
|
153
|
-
};
|
|
154
|
-
const digest = officialDigest ?? readOfficialHermesRepoDigest(image);
|
|
155
|
-
if (digest)
|
|
156
|
-
next.defaultImageDigest = digest;
|
|
157
|
-
else
|
|
158
|
-
delete next.defaultImageDigest;
|
|
159
|
-
setRuntimeCatalogEntry("hermes", next);
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Read `org.opencontainers.image.version` LABEL from a local image.
|
|
163
|
-
* Returns the version string if it matches `N.N.N...`, null otherwise.
|
|
164
|
-
*/
|
|
165
|
-
function readHermesImageVersion(image) {
|
|
166
|
-
try {
|
|
167
|
-
const out = execFileSync("docker", ["inspect", "--format", `{{ index .Config.Labels "${HERMES_VERSION_LABEL}" }}`, image], { timeout: 5_000, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim();
|
|
168
|
-
return /^\d+\.\d+\.\d+/.test(out) ? out : null;
|
|
169
|
-
}
|
|
170
|
-
catch {
|
|
171
|
-
return null;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* If `stored` has a mutable tag (`:latest` / `:slim`), read the bundled
|
|
176
|
-
* version from the image's LABEL and create a local `:${version}` tag
|
|
177
|
-
* alias, then drop the mutable source tag. Mirrors the OpenClaw pin in
|
|
178
|
-
* config.ts:migrateOpenclawImageTagIfNeeded, but uses the LABEL instead
|
|
179
|
-
* of spawning the container (Hermes images bake the version into the
|
|
180
|
-
* manifest, OpenClaw's used to lie — see that function's docstring).
|
|
181
|
-
*
|
|
182
|
-
* Returns the pinned tag on success, null when nothing was changed.
|
|
183
|
-
*/
|
|
184
|
-
function pinHermesImageToLabeledVersion(stored) {
|
|
185
|
-
if (!HERMES_MUTABLE_TAG_RE.test(stored))
|
|
186
|
-
return null;
|
|
187
|
-
const version = readHermesImageVersion(stored);
|
|
188
|
-
if (!version)
|
|
189
|
-
return null;
|
|
190
|
-
const colonIdx = stored.lastIndexOf(":");
|
|
191
|
-
const slashIdx = stored.lastIndexOf("/");
|
|
192
|
-
if (colonIdx <= slashIdx)
|
|
193
|
-
return null;
|
|
194
|
-
const pinnedTag = `${stored.slice(0, colonIdx)}:${version}`;
|
|
195
|
-
if (pinnedTag === stored)
|
|
196
|
-
return null;
|
|
197
|
-
try {
|
|
198
|
-
execFileSync("docker", ["tag", stored, pinnedTag], { timeout: 10_000, stdio: "ignore" });
|
|
199
|
-
}
|
|
200
|
-
catch {
|
|
201
|
-
return null;
|
|
202
|
-
}
|
|
203
|
-
try {
|
|
204
|
-
execFileSync("docker", ["rmi", stored], { timeout: 10_000, stdio: "ignore" });
|
|
205
|
-
}
|
|
206
|
-
catch { /* best-effort cleanup */ }
|
|
207
|
-
return pinnedTag;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* One-shot startup migration for Hermes installs from older panels whose
|
|
211
|
-
* catalog still stores `:latest` / `:slim`. Silent no-op when the catalog
|
|
212
|
-
* already holds a pinned tag, when docker is unreachable, or when the
|
|
213
|
-
* local image lacks the expected LABEL. Called from server.ts onReady.
|
|
214
|
-
*/
|
|
215
|
-
export function migrateHermesImageTagIfNeeded() {
|
|
216
|
-
const entry = getRuntimeCatalogEntry("hermes");
|
|
217
|
-
if (!entry || typeof entry.defaultImage !== "string")
|
|
218
|
-
return;
|
|
219
|
-
const stored = entry.defaultImage;
|
|
220
|
-
const pinned = pinHermesImageToLabeledVersion(stored);
|
|
221
|
-
if (!pinned)
|
|
222
|
-
return;
|
|
223
|
-
setRuntimeCatalogEntry("hermes", { ...entry, defaultImage: pinned });
|
|
224
|
-
console.log(`[hermes] migrated runtime_catalog.hermes.defaultImage: ${stored} → ${pinned}`);
|
|
225
|
-
}
|
|
226
|
-
// ── Nomad primitives (mirrored from nomad-manager.ts so HermesAdapter's
|
|
227
|
-
// buildNomadTask is self-contained) ─────────────────────────────────
|
|
228
|
-
const DOCKER_IMAGE_RE = /^[a-zA-Z0-9][a-zA-Z0-9\-_.:/@]*$/;
|
|
229
|
-
const MAX_DOCKER_IMAGE_NAME_LEN = 256;
|
|
230
|
-
const VALID_USER_RE = /^[a-z0-9._-]{1,32}$/;
|
|
231
|
-
const DEFAULT_PIDS_LIMIT = 512;
|
|
232
|
-
const MAX_CPU_MHZ = 4000;
|
|
233
|
-
const MAX_MEMORY_MB = 4096;
|
|
234
|
-
const MAX_MEMORY_MAX_MB = 4096;
|
|
235
|
-
const NOMAD_TEMPLATE_UNSAFE_RE = /[{}"\\]/;
|
|
236
|
-
// Matches the shape Feishu issues from `archetype=PersonalAgent` device-flow
|
|
237
|
-
// (cli_ prefix + alphanumerics). Kept narrow on purpose — wider wildcards
|
|
238
|
-
// would accept untrusted strings propagated from the OAuth response body.
|
|
239
|
-
const FEISHU_APP_ID_RE = /^cli_[a-zA-Z0-9]{8,64}$/;
|
|
240
|
-
// iLink Bot IDs are numeric-ish bot handles issued by Tencent. Keep the
|
|
241
|
-
// same 128-char ceiling + charset OpenClaw's adapter uses so invalid
|
|
242
|
-
// payloads from a tampered OAuth response don't become filesystem paths.
|
|
243
|
-
const SAFE_WEIXIN_ACCOUNT_ID_RE = /^[a-zA-Z0-9@._-]{1,128}$/;
|
|
244
|
-
function assertSafeTemplateId(id) {
|
|
245
|
-
if (NOMAD_TEMPLATE_UNSAFE_RE.test(id)) {
|
|
246
|
-
throw new Error(`Job ID "${id}" contains characters unsafe for Nomad Template interpolation`);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
function _resolveUidGid(username) {
|
|
250
|
-
try {
|
|
251
|
-
if (!VALID_USER_RE.test(username)) {
|
|
252
|
-
return `${process.getuid()}:${process.getgid()}`;
|
|
253
|
-
}
|
|
254
|
-
const passwd = readFileSync("/etc/passwd", "utf-8");
|
|
255
|
-
const line = passwd.split("\n").find((l) => l.startsWith(username + ":"));
|
|
256
|
-
if (line) {
|
|
257
|
-
const parts = line.split(":");
|
|
258
|
-
const uid = parseInt(parts[2], 10);
|
|
259
|
-
const gid = parseInt(parts[3], 10);
|
|
260
|
-
if (!isNaN(uid) && !isNaN(gid))
|
|
261
|
-
return `${uid}:${gid}`;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
catch {
|
|
265
|
-
/* ignore */
|
|
266
|
-
}
|
|
267
|
-
return `${process.getuid()}:${process.getgid()}`;
|
|
268
|
-
}
|
|
269
|
-
// Mirrors nomad-manager.ts:nomadConfigDeclaresHostNetwork. When the host
|
|
270
|
-
// nomad.hcl declares `host_network "external" { ... }`, the legacy hermes
|
|
271
|
-
// job needs to attach `HostNetwork: "external"` to its ReservedPorts so
|
|
272
|
-
// docker publishes the gateway to the LAN address instead of 127.0.0.1.
|
|
273
|
-
function nomadHasExternalHostNetwork() {
|
|
274
|
-
const path = join(JISHUSHELL_HOME, "nomad", "nomad.hcl");
|
|
275
|
-
if (!existsSync(path))
|
|
276
|
-
return false;
|
|
277
|
-
try {
|
|
278
|
-
return /host_network\s+"external"\s*\{/.test(readFileSync(path, "utf-8"));
|
|
279
|
-
}
|
|
280
|
-
catch {
|
|
281
|
-
return false;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
const DEFAULT_CAPABILITIES = {
|
|
285
|
-
gateway: {
|
|
286
|
-
http: true,
|
|
287
|
-
websocket: false,
|
|
288
|
-
// "inline" = JishuShell-side chat UI that POSTs to
|
|
289
|
-
// /api/instances/:id/agent/chat (which forwards to Hermes's own
|
|
290
|
-
// /v1/chat/completions endpoint with the per-instance API_SERVER_KEY).
|
|
291
|
-
// NOT the same as "openclaw" which iframes a full OpenClaw gateway UI.
|
|
292
|
-
chatPanel: "inline",
|
|
293
|
-
},
|
|
294
|
-
pairing: {
|
|
295
|
-
list: true,
|
|
296
|
-
approve: true,
|
|
297
|
-
// Capability is `false` until the adapter, routes, and CLI actually
|
|
298
|
-
// ship revoke / clear-pending surfaces. Declaring them true here
|
|
299
|
-
// with no backing implementation would mislead the UI and any
|
|
300
|
-
// external caller into attempting unreachable operations.
|
|
301
|
-
revoke: false,
|
|
302
|
-
clearPending: false,
|
|
303
|
-
},
|
|
304
|
-
configEditor: "yaml+env",
|
|
305
|
-
configSchema: false,
|
|
306
|
-
customProvider: true,
|
|
307
|
-
pluginInstall: false,
|
|
308
|
-
skills: true,
|
|
309
|
-
mcp: true,
|
|
310
|
-
memory: true,
|
|
311
|
-
backupRestore: false,
|
|
312
|
-
usageStats: false,
|
|
313
|
-
restartlessReload: false,
|
|
314
|
-
messagingPlatforms: [
|
|
315
|
-
"feishu",
|
|
316
|
-
"weixin",
|
|
317
|
-
"telegram",
|
|
318
|
-
"discord",
|
|
319
|
-
"slack",
|
|
320
|
-
"whatsapp",
|
|
321
|
-
"signal",
|
|
322
|
-
"email",
|
|
323
|
-
],
|
|
324
|
-
};
|
|
325
|
-
const HERMES_AGENT_HOME_SUBDIRS = [
|
|
326
|
-
"cron",
|
|
327
|
-
"sessions",
|
|
328
|
-
"logs",
|
|
329
|
-
"hooks",
|
|
330
|
-
"memories",
|
|
331
|
-
"skills",
|
|
332
|
-
"skins",
|
|
333
|
-
"plans",
|
|
334
|
-
"workspace",
|
|
335
|
-
"home",
|
|
336
|
-
];
|
|
337
|
-
const HERMES_AGENT_HOME_NESTED_DIRS = [
|
|
338
|
-
["weixin"],
|
|
339
|
-
["weixin", "accounts"],
|
|
340
|
-
["hermes-overlay"],
|
|
341
|
-
];
|
|
342
|
-
const HERMES_SECRET_ENV_RE = /(KEY|TOKEN|SECRET|PASSWORD)$/i;
|
|
343
|
-
function defaultHermesModelId() {
|
|
344
|
-
const dp = getPanelConfig().default_provider;
|
|
345
|
-
const selected = typeof dp?.selectedModelId === "string" ? dp.selectedModelId.trim() : "";
|
|
346
|
-
if (selected)
|
|
347
|
-
return selected;
|
|
348
|
-
const first = Array.isArray(dp?.models) ? dp.models.find((model) => typeof model?.id === "string" && model.id.trim()) : null;
|
|
349
|
-
return first?.id || "default";
|
|
350
|
-
}
|
|
351
|
-
function defaultHermesConfigYaml() {
|
|
352
|
-
// Main agent routes through our `jsproxy` custom provider — honest: we
|
|
353
|
-
// really are an OpenAI-compatible proxy that may sit in front of any
|
|
354
|
-
// upstream (MiniMax/OpenAI/Anthropic/…). Aliasing to any built-in
|
|
355
|
-
// provider name (e.g. `minimax`) would leak upstream-specific request
|
|
356
|
-
// fields to unrelated backends and create surprising breakage.
|
|
357
|
-
//
|
|
358
|
-
// Hermes expects `custom_providers` as a YAML list (each entry an
|
|
359
|
-
// object with a `name` field). See Hermes config schema at
|
|
360
|
-
// https://hermes-agent.nousresearch.com/docs/user-guide/configuration/
|
|
361
|
-
const doc = {
|
|
362
|
-
model: {
|
|
363
|
-
provider: "jsproxy",
|
|
364
|
-
default: defaultHermesModelId(),
|
|
365
|
-
},
|
|
366
|
-
terminal: {
|
|
367
|
-
backend: "local",
|
|
368
|
-
},
|
|
369
|
-
custom_providers: [
|
|
370
|
-
{
|
|
371
|
-
name: "jsproxy",
|
|
372
|
-
base_url: getProxyBaseUrl(),
|
|
373
|
-
api_key: "${JSPROXY_API_KEY}",
|
|
374
|
-
},
|
|
375
|
-
],
|
|
376
|
-
};
|
|
377
|
-
return YAML.stringify(doc).trimEnd() + "\n";
|
|
378
|
-
}
|
|
379
|
-
function defaultHermesEnvText() {
|
|
380
|
-
// Hermes refuses to bind 0.0.0.0 without an API_SERVER_KEY (safety gate).
|
|
381
|
-
// Generate a random 32-byte hex key per instance so unauthenticated access
|
|
382
|
-
// is impossible even though the host port is published.
|
|
383
|
-
const apiServerKey = randomBytes(32).toString("hex");
|
|
384
|
-
return [
|
|
385
|
-
"API_SERVER_ENABLED=true",
|
|
386
|
-
"API_SERVER_HOST=0.0.0.0",
|
|
387
|
-
`API_SERVER_PORT=${HERMES_CONTAINER_PORT}`,
|
|
388
|
-
`API_SERVER_KEY=${apiServerKey}`,
|
|
389
|
-
// Main agent provider lookup uses JSPROXY_API_KEY (referenced from
|
|
390
|
-
// config.yaml custom_providers). Seeded by ensureInstanceProxyToken.
|
|
391
|
-
"JSPROXY_API_KEY=",
|
|
392
|
-
// OPENAI_BASE_URL + OPENAI_API_KEY are the standard env vars Hermes's
|
|
393
|
-
// `auxiliary_client._try_custom_endpoint` reads to auto-discover a
|
|
394
|
-
// generic OpenAI-compatible endpoint. Pointing them at our jsproxy
|
|
395
|
-
// stops the auxiliary resolution chain from falling through to the
|
|
396
|
-
// Nous Portal (which needs cookie auth and emits a 401 warning at
|
|
397
|
-
// every agent startup). The aux token is a mirror of JSPROXY_API_KEY
|
|
398
|
-
// populated by syncHermesProxyEnv after ensureInstanceProxyToken runs.
|
|
399
|
-
`OPENAI_BASE_URL=${getProxyBaseUrl()}`,
|
|
400
|
-
"OPENAI_API_KEY=",
|
|
401
|
-
// Allow all users for the smoke path; production deployments should
|
|
402
|
-
// configure per-platform allowlists via TELEGRAM_ALLOWED_USERS etc.
|
|
403
|
-
"GATEWAY_ALLOW_ALL_USERS=true",
|
|
404
|
-
"",
|
|
405
|
-
].join("\n");
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* After `ensureInstanceProxyToken(instanceId)` writes JSPROXY_API_KEY into
|
|
409
|
-
* the Hermes .env, mirror the same token into OPENAI_API_KEY and make
|
|
410
|
-
* sure OPENAI_BASE_URL points at our jsproxy. This gives the
|
|
411
|
-
* auxiliary_client / vision client / trajectory compressor a valid
|
|
412
|
-
* OpenAI-compatible endpoint to auto-discover, so startup no longer
|
|
413
|
-
* emits the `custom/main requested but no endpoint credentials found`
|
|
414
|
-
* warning + Nous 401. Safe to call repeatedly (idempotent).
|
|
415
|
-
*/
|
|
416
|
-
function syncHermesProxyEnv(instanceId) {
|
|
417
|
-
const paths = resolveHermesPaths(instanceId);
|
|
418
|
-
if (!paths.secretEnv || !existsSync(paths.secretEnv))
|
|
419
|
-
return;
|
|
420
|
-
const env = parseEnvFileFromText(readFileSync(paths.secretEnv, "utf-8"));
|
|
421
|
-
const token = env.JSPROXY_API_KEY?.trim();
|
|
422
|
-
if (!token)
|
|
423
|
-
return;
|
|
424
|
-
const updates = {};
|
|
425
|
-
if (env.OPENAI_API_KEY !== token)
|
|
426
|
-
updates.OPENAI_API_KEY = token;
|
|
427
|
-
const expectedBase = getProxyBaseUrl();
|
|
428
|
-
if (env.OPENAI_BASE_URL !== expectedBase)
|
|
429
|
-
updates.OPENAI_BASE_URL = expectedBase;
|
|
430
|
-
if (Object.keys(updates).length === 0)
|
|
431
|
-
return;
|
|
432
|
-
updateEnvFile(paths.secretEnv, updates);
|
|
433
|
-
}
|
|
434
|
-
function ensureHermesConfigFiles(paths) {
|
|
435
|
-
if (!paths.primaryConfig || !existsSync(paths.primaryConfig)) {
|
|
436
|
-
writeConfigFile(paths.primaryConfig, defaultHermesConfigYaml());
|
|
437
|
-
}
|
|
438
|
-
if (!paths.secretEnv || !existsSync(paths.secretEnv)) {
|
|
439
|
-
writeSecretFile(paths.secretEnv, defaultHermesEnvText());
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
function secretEnvFields(envText) {
|
|
443
|
-
const env = parseEnvFileFromText(envText);
|
|
444
|
-
return Object.keys(env)
|
|
445
|
-
.filter((key) => HERMES_SECRET_ENV_RE.test(key))
|
|
446
|
-
.map((key) => `env.${key}`);
|
|
447
|
-
}
|
|
448
|
-
function parseEnvFileFromText(envText) {
|
|
449
|
-
const env = {};
|
|
450
|
-
for (let line of envText.split("\n")) {
|
|
451
|
-
line = line.trim();
|
|
452
|
-
if (!line || line.startsWith("#"))
|
|
453
|
-
continue;
|
|
454
|
-
if (line.startsWith("export "))
|
|
455
|
-
line = line.slice(7).trimStart();
|
|
456
|
-
if (!line.includes("="))
|
|
457
|
-
continue;
|
|
458
|
-
const eqIdx = line.indexOf("=");
|
|
459
|
-
const key = line.slice(0, eqIdx).trim();
|
|
460
|
-
let value = line.slice(eqIdx + 1).trim();
|
|
461
|
-
if (!key)
|
|
462
|
-
continue;
|
|
463
|
-
if (value.length >= 2 && value[0] === value[value.length - 1] && (value[0] === "'" || value[0] === '"')) {
|
|
464
|
-
value = value.slice(1, -1);
|
|
465
|
-
}
|
|
466
|
-
env[key] = value;
|
|
467
|
-
}
|
|
468
|
-
return env;
|
|
469
|
-
}
|
|
470
|
-
function normalizeEnvText(raw) {
|
|
471
|
-
const trimmed = raw.replace(/\r\n/g, "\n").replace(/\r/g, "\n").trimEnd();
|
|
472
|
-
return trimmed ? `${trimmed}\n` : "";
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Resolve the hermes instance filesystem layout. Agent-home lives inside the
|
|
476
|
-
* per-instance directory and is bind-mounted to /opt/data inside the container.
|
|
477
|
-
*/
|
|
478
|
-
export function resolveHermesPaths(instanceId) {
|
|
479
|
-
const catalog = getRuntimeCatalogEntry("hermes");
|
|
480
|
-
const homeDirName = catalog?.homeDirName || "agent-home";
|
|
481
|
-
const resolvedInstanceDir = instanceDir(instanceId);
|
|
482
|
-
const agentHome = join(resolvedInstanceDir, homeDirName);
|
|
483
|
-
return {
|
|
484
|
-
instanceDir: resolvedInstanceDir,
|
|
485
|
-
agentHome,
|
|
486
|
-
primaryConfig: join(agentHome, "config.yaml"),
|
|
487
|
-
secretEnv: join(agentHome, ".env"),
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
function isPrecreatedManagedAppDir(dir) {
|
|
491
|
-
return existsSync(join(dir, "app-spec.yaml")) && existsSync(join(dir, "manifest.json"));
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* §17 — find the capability-registry entry that produced a given
|
|
495
|
-
* resolved env URL (e.g. `SEARCH_API_BASE_URL = http://x:8080/search`).
|
|
496
|
-
* Match by host:port (and path when declared). Returns the entry so
|
|
497
|
-
* applyConnectionEnv can read its `toolSchema`. Returns null when no
|
|
498
|
-
* match — caller falls back to the legacy PR 7 path.
|
|
499
|
-
*/
|
|
500
|
-
function findSearchProviderForUrl(rawUrl) {
|
|
501
|
-
let parsed;
|
|
502
|
-
try {
|
|
503
|
-
parsed = new URL(rawUrl);
|
|
504
|
-
}
|
|
505
|
-
catch {
|
|
506
|
-
return null;
|
|
507
|
-
}
|
|
508
|
-
const targetHost = parsed.hostname.toLowerCase();
|
|
509
|
-
const targetPort = Number(parsed.port) || (parsed.protocol === "https:" ? 443 : 80);
|
|
510
|
-
const targetPath = parsed.pathname.replace(/\/+$/u, "");
|
|
511
|
-
const snapshot = capabilityRegistry.snapshot().providersByCapability ?? {};
|
|
512
|
-
for (const [cap, entries] of Object.entries(snapshot)) {
|
|
513
|
-
if (!cap.startsWith("search"))
|
|
514
|
-
continue;
|
|
515
|
-
for (const entry of entries) {
|
|
516
|
-
const entryHost = (entry.host ?? "").toLowerCase();
|
|
517
|
-
const entryPort = entry.hostPort;
|
|
518
|
-
const entryPath = (entry.path ?? "").replace(/\/+$/u, "");
|
|
519
|
-
if (entryPort !== targetPort)
|
|
520
|
-
continue;
|
|
521
|
-
if (entryHost && entryHost !== targetHost) {
|
|
522
|
-
// Tolerate localhost <-> 127.0.0.1 / advertised-host mismatches by
|
|
523
|
-
// accepting any host when the port + path match — env URLs go
|
|
524
|
-
// through nomad-manager's host rewriting which can disagree with
|
|
525
|
-
// registry's stored host.
|
|
526
|
-
}
|
|
527
|
-
if (entryPath && targetPath && entryPath !== targetPath)
|
|
528
|
-
continue;
|
|
529
|
-
return entry;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
return null;
|
|
533
|
-
}
|
|
534
|
-
class HermesAdapter {
|
|
535
|
-
agentType = "hermes";
|
|
536
|
-
displayName = "Hermes Agent";
|
|
537
|
-
defaultCapabilities = DEFAULT_CAPABILITIES;
|
|
538
|
-
defaultGatewayPort = HERMES_DEFAULT_GATEWAY_PORT;
|
|
539
|
-
manifest = {
|
|
540
|
-
agentType: "hermes",
|
|
541
|
-
displayName: "Hermes Agent",
|
|
542
|
-
description: "NousResearch Hermes — Telegram / Discord / Slack / Signal 等 IM 接入",
|
|
543
|
-
defaultCapabilities: DEFAULT_CAPABILITIES,
|
|
544
|
-
requiresNomadDocker: true,
|
|
545
|
-
diskSpaceMB: 5120,
|
|
546
|
-
};
|
|
547
|
-
hooks = {
|
|
548
|
-
/**
|
|
549
|
-
* Hermes pre-start: verify the docker image retains the official
|
|
550
|
-
* ghcr.io/x-aijishu/hermes-runtime RepoDigest before Nomad receives it.
|
|
551
|
-
* No config patches (the shim bootstraps `.env` / `config.yaml` on first
|
|
552
|
-
* run) and no Nomad Variables template (Hermes reads keys from the
|
|
553
|
-
* bind-mounted `.env`, not from secrets).
|
|
554
|
-
*/
|
|
555
|
-
onBeforeStart: async (args) => {
|
|
556
|
-
const catalog = getRuntimeCatalogEntry("hermes");
|
|
557
|
-
const image = catalog?.defaultImageDigest
|
|
558
|
-
|| catalog?.defaultImage;
|
|
559
|
-
if (!image) {
|
|
560
|
-
throw new Error("Hermes runtime is not installed. Run POST /api/setup/install/hermes first.");
|
|
561
|
-
}
|
|
562
|
-
if (!DOCKER_IMAGE_RE.test(image) || image.length > MAX_DOCKER_IMAGE_NAME_LEN) {
|
|
563
|
-
throw new Error(`Invalid Hermes docker image: "${image}"`);
|
|
564
|
-
}
|
|
565
|
-
assertOfficialHermesImage(image);
|
|
566
|
-
// Idempotent migration: pre-alias Hermes instances created before the
|
|
567
|
-
// OPENAI_* env switch still carry only JSPROXY_API_KEY. Every start
|
|
568
|
-
// mirrors that token into OPENAI_API_KEY and pins OPENAI_BASE_URL at
|
|
569
|
-
// the jsproxy so auxiliary_client auto-discovery stops hitting Nous.
|
|
570
|
-
// Safe to re-run on every restart.
|
|
571
|
-
try {
|
|
572
|
-
syncHermesProxyEnv(args.instanceId);
|
|
573
|
-
}
|
|
574
|
-
catch { /* best-effort */ }
|
|
575
|
-
},
|
|
576
|
-
};
|
|
577
|
-
/**
|
|
578
|
-
* Full Hermes instance bootstrap, physically migrated from the legacy
|
|
579
|
-
* `instance-manager.createHermesInstance()`. The framework routes layer
|
|
580
|
-
* calls this uniformly via `getAdapter(agentType).createInstance(args)` —
|
|
581
|
-
* instance-manager no longer owns any Hermes business logic.
|
|
582
|
-
*
|
|
583
|
-
* Rejection cases (all raise `InstanceCreationRejected`):
|
|
584
|
-
* - panel.service_manager !== "nomad"
|
|
585
|
-
* - panel.nomad_driver !== "docker"
|
|
586
|
-
* - panel.runtime_catalog.hermes not present (install not run yet)
|
|
587
|
-
*/
|
|
588
|
-
async createInstance(args) {
|
|
589
|
-
if (args.cloneFrom || args.agentHome || args.cloneOptions) {
|
|
590
|
-
throw new Error(`Hermes does not support clone_from / agent_home / clone_options — ` +
|
|
591
|
-
`these are OpenClaw-specific create fields.`);
|
|
592
|
-
}
|
|
593
|
-
const { instanceId, name, description = "" } = args;
|
|
594
|
-
const d = instanceDir(instanceId);
|
|
595
|
-
const metaPath = instanceMetaPath(instanceId);
|
|
596
|
-
if (existsSync(metaPath))
|
|
597
|
-
throw new Error(`Instance '${instanceId}' already exists`);
|
|
598
|
-
if (existsSync(d) && !isPrecreatedManagedAppDir(d)) {
|
|
599
|
-
throw new Error(`Instance '${instanceId}' already exists`);
|
|
600
|
-
}
|
|
601
|
-
// 1. Prereq validation (structured reject with hint)
|
|
602
|
-
const panel = getPanelConfig();
|
|
603
|
-
const svcMgr = panel.service_manager || "nomad";
|
|
604
|
-
const driver = panel.nomad_driver || "docker";
|
|
605
|
-
if (svcMgr !== "nomad") {
|
|
606
|
-
throw new InstanceCreationRejected({
|
|
607
|
-
code: "RUNTIME_REQUIRES_NOMAD_DOCKER",
|
|
608
|
-
requestedKind: "hermes",
|
|
609
|
-
currentServiceManager: svcMgr,
|
|
610
|
-
currentNomadDriver: driver,
|
|
611
|
-
hint: `Hermes requires service_manager="nomad" (current: "${svcMgr}"). ` +
|
|
612
|
-
`Switch in panel.json or via settings before creating a Hermes instance.`,
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
if (driver !== "docker") {
|
|
616
|
-
throw new InstanceCreationRejected({
|
|
617
|
-
code: "RUNTIME_REQUIRES_NOMAD_DOCKER",
|
|
618
|
-
requestedKind: "hermes",
|
|
619
|
-
currentServiceManager: svcMgr,
|
|
620
|
-
currentNomadDriver: driver,
|
|
621
|
-
hint: `Hermes requires nomad_driver="docker" (current: "${driver}").`,
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
// Catalog must exist (populated by setup-manager.installHermes)
|
|
625
|
-
const catalog = panel.runtime_catalog?.hermes;
|
|
626
|
-
if (!catalog || !catalog.defaultImage) {
|
|
627
|
-
throw new InstanceCreationRejected({
|
|
628
|
-
code: "RUNTIME_PREREQ_MISSING",
|
|
629
|
-
requestedKind: "hermes",
|
|
630
|
-
currentServiceManager: svcMgr,
|
|
631
|
-
currentNomadDriver: driver,
|
|
632
|
-
hint: `Hermes runtime is not installed. Run POST /api/setup/install/hermes first.`,
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
// 2. Lay out filesystem
|
|
636
|
-
ensureDirContainer(d);
|
|
637
|
-
try {
|
|
638
|
-
const parentGid = statSync(dirname(d)).gid;
|
|
639
|
-
chownSync(d, -1, parentGid);
|
|
640
|
-
}
|
|
641
|
-
catch {
|
|
642
|
-
/* best effort */
|
|
643
|
-
}
|
|
644
|
-
const paths = await this.createInitialLayout({ instanceId, name, description });
|
|
645
|
-
// 3. Allocate gateway host port (kind-agnostic framework primitive)
|
|
646
|
-
const portAlloc = await allocateGatewayPort(instanceId, HERMES_DEFAULT_GATEWAY_PORT);
|
|
647
|
-
// 4. Build runtime spec, inject allocated port into ports[] / env / health
|
|
648
|
-
const runtimeSpec = await this.buildRuntime(instanceId);
|
|
649
|
-
if (runtimeSpec.ports && runtimeSpec.ports.length > 0) {
|
|
650
|
-
runtimeSpec.ports = runtimeSpec.ports.map((port, idx) => idx === 0
|
|
651
|
-
? { ...port, hostPort: portAlloc.port, containerPort: portAlloc.port }
|
|
652
|
-
: port);
|
|
653
|
-
}
|
|
654
|
-
if (runtimeSpec.env && runtimeSpec.env.API_SERVER_PORT !== undefined) {
|
|
655
|
-
runtimeSpec.env.API_SERVER_PORT = String(portAlloc.port);
|
|
656
|
-
}
|
|
657
|
-
if (runtimeSpec.health && typeof runtimeSpec.health === "object" && runtimeSpec.health.port != null) {
|
|
658
|
-
runtimeSpec.health = { ...runtimeSpec.health, port: portAlloc.port };
|
|
659
|
-
}
|
|
660
|
-
// python-dotenv override=True can overwrite docker -e env vars, so the
|
|
661
|
-
// allocated port must also be rewritten into the .env file.
|
|
662
|
-
if (paths.secretEnv && existsSync(paths.secretEnv)) {
|
|
663
|
-
try {
|
|
664
|
-
updateEnvFile(paths.secretEnv, { API_SERVER_PORT: String(portAlloc.port) });
|
|
665
|
-
}
|
|
666
|
-
catch (e) {
|
|
667
|
-
console.warn(`[hermes] failed to patch .env API_SERVER_PORT for ${instanceId}: ${e.message}`);
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
// 5. Persist instance.json
|
|
671
|
-
const meta = {
|
|
672
|
-
id: instanceId,
|
|
673
|
-
name,
|
|
674
|
-
description,
|
|
675
|
-
agentType: "hermes",
|
|
676
|
-
paths: {
|
|
677
|
-
instanceDir: paths.instanceDir,
|
|
678
|
-
agentHome: paths.agentHome,
|
|
679
|
-
primaryConfig: paths.primaryConfig,
|
|
680
|
-
secretEnv: paths.secretEnv,
|
|
681
|
-
},
|
|
682
|
-
runtime: runtimeSpec,
|
|
683
|
-
created_at: new Date().toISOString(),
|
|
684
|
-
};
|
|
685
|
-
// Propagate panel.default_provider → instance.json.x-jishushell.proxy.upstream
|
|
686
|
-
// so the LLM proxy's deriveUpstreamConfig can find this Hermes instance's
|
|
687
|
-
// upstream. Hermes has no openclaw.json, so the upstream block is inlined
|
|
688
|
-
// into instance.json instead.
|
|
689
|
-
const dp = panel.default_provider;
|
|
690
|
-
if (dp && typeof dp === "object" && dp.providerId && !dp.skipped) {
|
|
691
|
-
const modelList = Array.isArray(dp.models)
|
|
692
|
-
? dp.models
|
|
693
|
-
.map((m) => ({
|
|
694
|
-
id: String(m?.id ?? ""),
|
|
695
|
-
name: String(m?.name ?? m?.id ?? ""),
|
|
696
|
-
contextWindow: Number(m?.contextWindow) || 128000,
|
|
697
|
-
}))
|
|
698
|
-
.filter((m) => m.id)
|
|
699
|
-
: [];
|
|
700
|
-
const selectedModelId = String(dp.selectedModelId || modelList[0]?.id || "");
|
|
701
|
-
if (selectedModelId && modelList.every((m) => m.id !== selectedModelId)) {
|
|
702
|
-
modelList.unshift({ id: selectedModelId, name: selectedModelId, contextWindow: 128000 });
|
|
703
|
-
}
|
|
704
|
-
meta["x-jishushell"] = {
|
|
705
|
-
proxy: {
|
|
706
|
-
upstream: {
|
|
707
|
-
providerId: String(dp.providerId),
|
|
708
|
-
baseUrl: String(dp.baseUrl || ""),
|
|
709
|
-
api: String(dp.api || "openai-completions"),
|
|
710
|
-
authHeader: dp.authHeader === true,
|
|
711
|
-
headers: {},
|
|
712
|
-
models: modelList,
|
|
713
|
-
selectedModelId,
|
|
714
|
-
apiKey: "",
|
|
715
|
-
hasApiKey: !!dp.apiKey,
|
|
716
|
-
clearApiKey: false,
|
|
717
|
-
},
|
|
718
|
-
},
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
try {
|
|
722
|
-
safeWriteJson(instanceMetaPath(instanceId), meta);
|
|
723
|
-
try {
|
|
724
|
-
ensureInstanceProxyToken(instanceId);
|
|
725
|
-
syncHermesProxyEnv(instanceId);
|
|
726
|
-
}
|
|
727
|
-
catch (e) {
|
|
728
|
-
console.warn(`[hermes] failed to seed proxy token for ${instanceId}: ${e.message}`);
|
|
729
|
-
}
|
|
730
|
-
// If running as root, hand ownership of created files to service user
|
|
731
|
-
const svcUser = resolveServiceUser();
|
|
732
|
-
if (svcUser) {
|
|
733
|
-
try {
|
|
734
|
-
execFileSync("chown", ["-R", `${svcUser.uid}:${svcUser.gid}`, d], { timeout: 10_000 });
|
|
735
|
-
}
|
|
736
|
-
catch (e) {
|
|
737
|
-
console.warn(`[hermes] chown for ${instanceId} failed:`, e.message);
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
if (portAlloc.skipped.length > 0) {
|
|
741
|
-
meta.port_allocation = {
|
|
742
|
-
assigned: portAlloc.port,
|
|
743
|
-
requested: HERMES_DEFAULT_GATEWAY_PORT,
|
|
744
|
-
reason: "default_busy",
|
|
745
|
-
skipped: portAlloc.skipped,
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
return meta;
|
|
749
|
-
}
|
|
750
|
-
finally {
|
|
751
|
-
releasePendingPort(portAlloc.port);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
async createInitialLayout(ctx) {
|
|
755
|
-
const paths = resolveHermesPaths(ctx.instanceId);
|
|
756
|
-
mkdirSync(paths.agentHome, { recursive: true });
|
|
757
|
-
for (const sub of HERMES_AGENT_HOME_SUBDIRS) {
|
|
758
|
-
mkdirSync(join(paths.agentHome, sub), { recursive: true });
|
|
759
|
-
}
|
|
760
|
-
for (const segments of HERMES_AGENT_HOME_NESTED_DIRS) {
|
|
761
|
-
mkdirSync(join(paths.agentHome, ...segments), { recursive: true });
|
|
762
|
-
}
|
|
763
|
-
ensureHermesConfigFiles(paths);
|
|
764
|
-
return paths;
|
|
765
|
-
}
|
|
766
|
-
async buildRuntime(instanceId) {
|
|
767
|
-
const catalog = getRuntimeCatalogEntry("hermes");
|
|
768
|
-
if (!catalog) {
|
|
769
|
-
throw new Error("Hermes runtime is not installed. Run POST /api/setup/install/hermes first.");
|
|
770
|
-
}
|
|
771
|
-
// Prefer digest over tag for image pinning per §32.1. When installHermes
|
|
772
|
-
// captured a digest it is stored alongside the tag; adapter favors digest.
|
|
773
|
-
const image = catalog.defaultImageDigest
|
|
774
|
-
|| catalog.defaultImage;
|
|
775
|
-
if (!image) {
|
|
776
|
-
throw new Error("Hermes runtime catalog missing defaultImage");
|
|
777
|
-
}
|
|
778
|
-
// Only run JishuShell-provided Hermes runtime images. A local tag alone
|
|
779
|
-
// is not enough because anyone can retag an arbitrary image; RepoDigest
|
|
780
|
-
// records that Docker pulled this image from our official repository.
|
|
781
|
-
assertOfficialHermesImage(image);
|
|
782
|
-
const paths = resolveHermesPaths(instanceId);
|
|
783
|
-
// Migrate pre-alias instances (created before the switch to
|
|
784
|
-
// provider:minimax) in-place: mirror JSPROXY_API_KEY into MINIMAX_API_KEY
|
|
785
|
-
// and pin MINIMAX_BASE_URL at the jsproxy. Idempotent — no-op on
|
|
786
|
-
// instances already aligned with the new template.
|
|
787
|
-
try {
|
|
788
|
-
syncHermesProxyEnv(instanceId);
|
|
789
|
-
}
|
|
790
|
-
catch { /* best-effort */ }
|
|
791
|
-
// §32.1.3: baseline mode is detected by ABSENCE of JISHUSHELL_HERMES_SOURCE_REF.
|
|
792
|
-
// We deliberately do NOT inject this env here. Only the (future) upgrade CLI
|
|
793
|
-
// populates it after a per-instance overlay build.
|
|
794
|
-
const env = {
|
|
795
|
-
API_SERVER_ENABLED: "true",
|
|
796
|
-
API_SERVER_HOST: "0.0.0.0",
|
|
797
|
-
API_SERVER_PORT: String(HERMES_CONTAINER_PORT),
|
|
798
|
-
HERMES_UID: String(process.getuid?.() ?? 1000),
|
|
799
|
-
HERMES_GID: String(process.getgid?.() ?? 1000),
|
|
800
|
-
};
|
|
801
|
-
const resources = catalog.resources && typeof catalog.resources === "object"
|
|
802
|
-
? {
|
|
803
|
-
CPU: Number(catalog.resources.CPU) || 1000,
|
|
804
|
-
MemoryMB: Number(catalog.resources.MemoryMB) || 1024,
|
|
805
|
-
MemoryMaxMB: catalog.resources.MemoryMaxMB != null
|
|
806
|
-
? Number(catalog.resources.MemoryMaxMB)
|
|
807
|
-
: undefined,
|
|
808
|
-
}
|
|
809
|
-
: { CPU: 1000, MemoryMB: 1024 };
|
|
810
|
-
return {
|
|
811
|
-
image,
|
|
812
|
-
// Invoke the shim via /bin/bash explicitly instead of execve'ing the
|
|
813
|
-
// script file directly. Debian-based containers always ship /bin/bash,
|
|
814
|
-
// and this bypasses EACCES on execve when bind-mounted script files
|
|
815
|
-
// occasionally lose their exec bit through the container runtime.
|
|
816
|
-
command: "/bin/bash",
|
|
817
|
-
args: [HERMES_CONTAINER_SHIM, "gateway", "run"],
|
|
818
|
-
cwd: HERMES_CONTAINER_WORKDIR,
|
|
819
|
-
user: "root", // shim exec-gosu-downgrades to hermes uid
|
|
820
|
-
env,
|
|
821
|
-
envFiles: paths.secretEnv ? [paths.secretEnv] : undefined,
|
|
822
|
-
resources,
|
|
823
|
-
volumes: [
|
|
824
|
-
{ hostPath: paths.agentHome, containerPath: HERMES_CONTAINER_HOME, mode: "rw" },
|
|
825
|
-
// Shim no longer bind-mounted — it is baked at HERMES_CONTAINER_SHIM
|
|
826
|
-
// in the image (see Dockerfile.hermes-slim). Any remaining legacy
|
|
827
|
-
// shimPath in runtime_catalog is scrubbed by migrateHermesShimOut.
|
|
828
|
-
],
|
|
829
|
-
ports: [
|
|
830
|
-
{
|
|
831
|
-
name: "gateway",
|
|
832
|
-
containerPort: HERMES_CONTAINER_PORT,
|
|
833
|
-
hostPort: 0, // allocated by instance-manager
|
|
834
|
-
visibility: "external",
|
|
835
|
-
},
|
|
836
|
-
],
|
|
837
|
-
health: {
|
|
838
|
-
type: "http",
|
|
839
|
-
path: "/health",
|
|
840
|
-
port: HERMES_CONTAINER_PORT,
|
|
841
|
-
},
|
|
842
|
-
};
|
|
843
|
-
}
|
|
844
|
-
/**
|
|
845
|
-
* Hermes has no `openclaw.json` — it stores upstream metadata directly
|
|
846
|
-
* on instance.json under `x-jishushell`. Return a synthetic stub
|
|
847
|
-
* containing just that block so the LLM proxy's
|
|
848
|
-
* `deriveUpstreamConfig()` finds what it needs.
|
|
849
|
-
*/
|
|
850
|
-
getNativeConfig(instanceId) {
|
|
851
|
-
return this.getStoredNativeConfig(instanceId);
|
|
852
|
-
}
|
|
853
|
-
getStoredNativeConfig(instanceId) {
|
|
854
|
-
// Lazy import to avoid pulling the full instance-manager into top-level
|
|
855
|
-
// static graph (adapters reach back for framework primitives on demand).
|
|
856
|
-
try {
|
|
857
|
-
const req = createRequire(import.meta.url);
|
|
858
|
-
const im = req("../../instance-manager.js");
|
|
859
|
-
const meta = im.getInstance(instanceId);
|
|
860
|
-
if (!meta)
|
|
861
|
-
return null;
|
|
862
|
-
return { "x-jishushell": meta["x-jishushell"] || {} };
|
|
863
|
-
}
|
|
864
|
-
catch {
|
|
865
|
-
return null;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* Persist the `x-jishushell` meta block to instance.json. Hermes's user-
|
|
870
|
-
* facing config lives in yaml+env (editable via `writeConfig`), so this
|
|
871
|
-
* hook is scoped to the meta block only — any other keys in the payload
|
|
872
|
-
* are ignored intentionally.
|
|
873
|
-
*
|
|
874
|
-
* Called by `llm-proxy.saveInstanceConfig` when the editor saves a
|
|
875
|
-
* per-instance provider override. By implementing the same
|
|
876
|
-
* `saveNativeConfig(instanceId, {x-jishushell})` contract OpenClaw uses,
|
|
877
|
-
* Hermes piggy-backs on the shared API key encryption + rollback flow.
|
|
878
|
-
*/
|
|
879
|
-
saveNativeConfig(instanceId, config) {
|
|
880
|
-
const xJishushell = config?.["x-jishushell"];
|
|
881
|
-
if (!xJishushell || typeof xJishushell !== "object")
|
|
882
|
-
return false;
|
|
883
|
-
try {
|
|
884
|
-
const req = createRequire(import.meta.url);
|
|
885
|
-
const im = req("../../instance-manager.js");
|
|
886
|
-
const metaPath = im.instanceMetaPath(instanceId);
|
|
887
|
-
if (!existsSync(metaPath))
|
|
888
|
-
return false;
|
|
889
|
-
const meta = JSON.parse(readFileSync(metaPath, "utf-8"));
|
|
890
|
-
meta["x-jishushell"] = xJishushell;
|
|
891
|
-
safeWriteJson(metaPath, meta);
|
|
892
|
-
return true;
|
|
893
|
-
}
|
|
894
|
-
catch (e) {
|
|
895
|
-
console.warn(`[hermes] saveNativeConfig failed for ${instanceId}: ${e.message}`);
|
|
896
|
-
return false;
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* Connection-apply hook (§7 / §17 of app-interconnect-design):
|
|
901
|
-
* translate resolved bindings into Hermes-native config.yaml updates.
|
|
902
|
-
*
|
|
903
|
-
* Hermes' web tool only supports Firecrawl/Tavily/Exa/Parallel as direct
|
|
904
|
-
* search backends — it does NOT recognize SearXNG natively. We expose
|
|
905
|
-
* SearXNG (and any other MCP-shaped capability) to the agent via the
|
|
906
|
-
* jishushell MCP firewall (see `mcp-shims/firewall.ts`).
|
|
907
|
-
*
|
|
908
|
-
* The firewall replaces the upstream package's `tools/list` description
|
|
909
|
-
* with the canonical wording declared in app yaml's
|
|
910
|
-
* `provides[].tool_schema` — preventing prompt-injection like the
|
|
911
|
-
* "news / recent events" + `time_range` slots of upstream `mcp-searxng`,
|
|
912
|
-
* which was rewriting Chinese queries into English and hallucinating
|
|
913
|
-
* dates on MiniMax-class models.
|
|
914
|
-
*
|
|
915
|
-
* For each `SEARCH_API_BASE_URL` (or future MCP-shaped slot):
|
|
916
|
-
* 1. Find the producing capability entry in the registry.
|
|
917
|
-
* 2. If it carries `toolSchema`, drop firewall + config.json into
|
|
918
|
-
* agent-home and write `mcp_servers.<cap_id>` pointing at it.
|
|
919
|
-
* 3. If it doesn't (legacy yaml without §17 fields), fall back to
|
|
920
|
-
* the PR 7 in-tree searxng-shim — kept for one release cycle as
|
|
921
|
-
* backstop while community apps migrate.
|
|
922
|
-
*
|
|
923
|
-
* Other env (OPENAI_API_BASE_URL etc.) is a no-op here; the framework
|
|
924
|
-
* still injects them via `nomad-manager.injectConnectionsRuntimeEnv`
|
|
925
|
-
* and Hermes picks them up natively.
|
|
926
|
-
*/
|
|
927
|
-
async applyConnectionEnv(instanceId, env) {
|
|
928
|
-
const searchUrl = env.SEARCH_API_BASE_URL;
|
|
929
|
-
if (typeof searchUrl !== "string")
|
|
930
|
-
return;
|
|
931
|
-
if (searchUrl === "") {
|
|
932
|
-
// Empty value = unbind. Strip any connection-managed searxng /
|
|
933
|
-
// search-* entries from mcp_servers so the next start doesn't keep
|
|
934
|
-
// routing through a dead provider. We're conservative: only entries
|
|
935
|
-
// we know we may have written (`searxng` for the legacy shim path,
|
|
936
|
-
// and any `*_search` shaped key for the §17 firewall path's stable
|
|
937
|
-
// alias) get removed.
|
|
938
|
-
try {
|
|
939
|
-
const paths = resolveHermesPaths(instanceId);
|
|
940
|
-
if (!paths.primaryConfig || !existsSync(paths.primaryConfig))
|
|
941
|
-
return;
|
|
942
|
-
const yamlText = readFileSync(paths.primaryConfig, "utf-8");
|
|
943
|
-
const parsed = YAML.parse(yamlText) ?? {};
|
|
944
|
-
if (parsed?.mcp_servers && typeof parsed.mcp_servers === "object") {
|
|
945
|
-
for (const key of Object.keys(parsed.mcp_servers)) {
|
|
946
|
-
if (key === "searxng" || /(^|_)search$/.test(key)) {
|
|
947
|
-
delete parsed.mcp_servers[key];
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
writeConfigFile(paths.primaryConfig, YAML.stringify(parsed).trimEnd() + "\n");
|
|
952
|
-
}
|
|
953
|
-
catch (e) {
|
|
954
|
-
console.warn(`[hermes] applyConnectionEnv unbind failed for ${instanceId}: ${e.message}`);
|
|
955
|
-
}
|
|
956
|
-
return;
|
|
957
|
-
}
|
|
958
|
-
try {
|
|
959
|
-
const paths = resolveHermesPaths(instanceId);
|
|
960
|
-
ensureHermesConfigFiles(paths);
|
|
961
|
-
const yamlText = readFileSync(paths.primaryConfig, "utf-8");
|
|
962
|
-
const parsed = YAML.parse(yamlText) ?? {};
|
|
963
|
-
parsed.mcp_servers = parsed.mcp_servers ?? {};
|
|
964
|
-
// Try the §17 firewall path first — look up the producer capability
|
|
965
|
-
// entry to find a tool_schema declared by the provider's yaml.
|
|
966
|
-
const provider = findSearchProviderForUrl(searchUrl);
|
|
967
|
-
const svcUser = resolveServiceUser();
|
|
968
|
-
const serviceUser = svcUser ? { uid: svcUser.uid, gid: svcUser.gid } : undefined;
|
|
969
|
-
if (provider?.toolSchema) {
|
|
970
|
-
const upstreamEnv = resolveEnvTemplate(provider.toolSchema.upstream.env_template, env);
|
|
971
|
-
const entry = writeMcpEntry({
|
|
972
|
-
agentHomeDir: paths.agentHome,
|
|
973
|
-
containerHomeDir: HERMES_CONTAINER_HOME,
|
|
974
|
-
capabilityId: provider.capability,
|
|
975
|
-
toolSchema: provider.toolSchema,
|
|
976
|
-
upstreamEnv,
|
|
977
|
-
serviceUser,
|
|
978
|
-
});
|
|
979
|
-
// mcp_servers map key — use a stable short alias (the bare tool
|
|
980
|
-
// name) so users editing config.yaml see something readable.
|
|
981
|
-
const mapKey = provider.toolSchema.name.replace(/_web_search$|_search$/u, "")
|
|
982
|
-
|| provider.capability;
|
|
983
|
-
parsed.mcp_servers[mapKey] = { ...entry, enabled: true };
|
|
984
|
-
}
|
|
985
|
-
else {
|
|
986
|
-
// Fallback: legacy PR 7 per-capability shim. Strip trailing
|
|
987
|
-
// /search to get the SearXNG origin for the shim's SEARXNG_URL env.
|
|
988
|
-
// The URL is re-rendered from the registry on each instance start
|
|
989
|
-
// (PR 9 phaseRefreshConnections), so host IP changes are picked
|
|
990
|
-
// up automatically when the user restarts the consuming agent.
|
|
991
|
-
let baseUrl = searchUrl;
|
|
992
|
-
try {
|
|
993
|
-
const u = new URL(searchUrl);
|
|
994
|
-
if (u.pathname === "/search" || u.pathname === "/search/") {
|
|
995
|
-
u.pathname = "";
|
|
996
|
-
baseUrl = u.toString().replace(/\/$/, "");
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
catch {
|
|
1000
|
-
return;
|
|
1001
|
-
}
|
|
1002
|
-
const shimAbsPath = join(paths.agentHome, SEARXNG_SHIM_REL_PATH);
|
|
1003
|
-
mkdirSync(dirname(shimAbsPath), { recursive: true });
|
|
1004
|
-
writeFileSync(shimAbsPath, SEARXNG_MCP_SHIM_SOURCE, { mode: 0o755 });
|
|
1005
|
-
try {
|
|
1006
|
-
if (serviceUser) {
|
|
1007
|
-
chownSync(dirname(shimAbsPath), serviceUser.uid, serviceUser.gid);
|
|
1008
|
-
chownSync(shimAbsPath, serviceUser.uid, serviceUser.gid);
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
catch {
|
|
1012
|
-
/* best-effort */
|
|
1013
|
-
}
|
|
1014
|
-
parsed.mcp_servers.searxng = {
|
|
1015
|
-
command: "node",
|
|
1016
|
-
args: [`${HERMES_CONTAINER_HOME}/${SEARXNG_SHIM_REL_PATH}`],
|
|
1017
|
-
env: { SEARXNG_URL: baseUrl },
|
|
1018
|
-
enabled: true,
|
|
1019
|
-
};
|
|
1020
|
-
}
|
|
1021
|
-
writeConfigFile(paths.primaryConfig, YAML.stringify(parsed).trimEnd() + "\n");
|
|
1022
|
-
}
|
|
1023
|
-
catch (e) {
|
|
1024
|
-
console.warn(`[hermes] applyConnectionEnv failed for ${instanceId}: ${e.message}`);
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
async getRuntimeVersion(instanceId) {
|
|
1028
|
-
const catalog = getRuntimeCatalogEntry("hermes");
|
|
1029
|
-
const digest = catalog?.defaultImageDigest;
|
|
1030
|
-
// Read per-instance SOURCE_REF from instance.json without introducing
|
|
1031
|
-
// a runtime→instance-manager cycle: late require to break the chain.
|
|
1032
|
-
// If the env isn't set, we are in baseline mode.
|
|
1033
|
-
let ref;
|
|
1034
|
-
try {
|
|
1035
|
-
const { getInstance } = await import("../../instance-manager.js");
|
|
1036
|
-
const meta = getInstance(instanceId);
|
|
1037
|
-
const envRef = meta?.runtime?.env?.JISHUSHELL_HERMES_SOURCE_REF;
|
|
1038
|
-
if (typeof envRef === "string" && envRef.trim())
|
|
1039
|
-
ref = envRef.trim();
|
|
1040
|
-
}
|
|
1041
|
-
catch {
|
|
1042
|
-
// best-effort: if instance lookup fails, report baseline
|
|
1043
|
-
}
|
|
1044
|
-
return {
|
|
1045
|
-
agentType: "hermes",
|
|
1046
|
-
ref,
|
|
1047
|
-
digest,
|
|
1048
|
-
mode: ref ? "overlay" : "baseline",
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
async getConfigMeta(instanceId) {
|
|
1052
|
-
const doc = await this.readConfig(instanceId);
|
|
1053
|
-
return {
|
|
1054
|
-
agentType: "hermes",
|
|
1055
|
-
format: "yaml+env",
|
|
1056
|
-
schemaId: "hermes/v1",
|
|
1057
|
-
capabilities: this.defaultCapabilities,
|
|
1058
|
-
secretFields: doc.format === "yaml+env" ? secretEnvFields(doc.env) : [],
|
|
1059
|
-
runtimeVersion: await this.getRuntimeVersion(instanceId),
|
|
1060
|
-
};
|
|
1061
|
-
}
|
|
1062
|
-
async readConfig(instanceId) {
|
|
1063
|
-
const paths = resolveHermesPaths(instanceId);
|
|
1064
|
-
ensureHermesConfigFiles(paths);
|
|
1065
|
-
// Surface the instance.json `x-jishushell` meta block alongside yaml/env
|
|
1066
|
-
// so the Config form can round-trip per-instance upstream provider
|
|
1067
|
-
// overrides through the same ConfigDocument shape OpenClaw uses.
|
|
1068
|
-
const xJishushell = this.getStoredNativeConfig(instanceId)?.["x-jishushell"];
|
|
1069
|
-
const doc = {
|
|
1070
|
-
format: "yaml+env",
|
|
1071
|
-
yaml: readFileSync(paths.primaryConfig, "utf-8"),
|
|
1072
|
-
env: readFileSync(paths.secretEnv, "utf-8"),
|
|
1073
|
-
};
|
|
1074
|
-
if (xJishushell && typeof xJishushell === "object") {
|
|
1075
|
-
doc["x-jishushell"] = xJishushell;
|
|
1076
|
-
}
|
|
1077
|
-
return doc;
|
|
1078
|
-
}
|
|
1079
|
-
async writeConfig(instanceId, doc) {
|
|
1080
|
-
if (doc.format !== "yaml+env") {
|
|
1081
|
-
throw new Error(`Hermes config requires format="yaml+env", got "${doc.format}"`);
|
|
1082
|
-
}
|
|
1083
|
-
YAML.parse(doc.yaml);
|
|
1084
|
-
const envText = normalizeEnvText(doc.env);
|
|
1085
|
-
parseEnvFileFromText(envText);
|
|
1086
|
-
const paths = resolveHermesPaths(instanceId);
|
|
1087
|
-
ensureHermesConfigFiles(paths);
|
|
1088
|
-
// Atomicity: the x-jishushell save path (via llm-proxy.saveInstanceConfig)
|
|
1089
|
-
// can reject for reasons we only learn after some I/O — missing upstream
|
|
1090
|
-
// API key, provider.env write failure, etc. Snapshot the current YAML/ENV
|
|
1091
|
-
// contents BEFORE overwriting them so we can restore on failure and
|
|
1092
|
-
// callers never see a half-applied save (new YAML on disk + rejected
|
|
1093
|
-
// x-jishushell would leave the instance in a dirty state).
|
|
1094
|
-
const priorYaml = readFileSync(paths.primaryConfig, "utf-8");
|
|
1095
|
-
const priorEnv = readFileSync(paths.secretEnv, "utf-8");
|
|
1096
|
-
writeConfigFile(paths.primaryConfig, doc.yaml.trimEnd() + "\n");
|
|
1097
|
-
writeSecretFile(paths.secretEnv, envText);
|
|
1098
|
-
// If the caller included per-instance upstream metadata, route it
|
|
1099
|
-
// through the shared llm-proxy save flow — that path owns API key
|
|
1100
|
-
// encryption, provider.env persistence, rollback on secret failures,
|
|
1101
|
-
// and upstream cache invalidation. We deliberately reuse it instead
|
|
1102
|
-
// of duplicating the logic here so Hermes and OpenClaw agree bit-
|
|
1103
|
-
// for-bit on how per-instance provider config is stored.
|
|
1104
|
-
const xJishushell = doc["x-jishushell"];
|
|
1105
|
-
if (xJishushell && typeof xJishushell === "object") {
|
|
1106
|
-
try {
|
|
1107
|
-
const { saveInstanceConfig } = await import("../../llm-proxy/index.js");
|
|
1108
|
-
await saveInstanceConfig(instanceId, { "x-jishushell": xJishushell });
|
|
1109
|
-
}
|
|
1110
|
-
catch (e) {
|
|
1111
|
-
try {
|
|
1112
|
-
writeConfigFile(paths.primaryConfig, priorYaml);
|
|
1113
|
-
writeSecretFile(paths.secretEnv, priorEnv);
|
|
1114
|
-
}
|
|
1115
|
-
catch (rollbackErr) {
|
|
1116
|
-
console.error(`[hermes] CRITICAL: YAML/ENV rollback failed for ${instanceId}:`, rollbackErr?.message || rollbackErr);
|
|
1117
|
-
}
|
|
1118
|
-
throw e;
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
return this.readConfig(instanceId);
|
|
1122
|
-
}
|
|
1123
|
-
/**
|
|
1124
|
-
* Persist Feishu/Lark OAuth credentials returned by the device-flow
|
|
1125
|
-
* endpoints (handled by openclaw-routes.ts but adapter-agnostic at the
|
|
1126
|
-
* persistence layer — framework code dispatches here via
|
|
1127
|
-
* `instance-manager.saveFeishuCredentials`).
|
|
1128
|
-
*
|
|
1129
|
-
* Hermes reads platform config from two places on every gateway start:
|
|
1130
|
-
* - `config.yaml` → `platforms.feishu.enabled` + `platforms.feishu.extra.*`
|
|
1131
|
-
* - `.env` → `FEISHU_APP_ID`, `FEISHU_APP_SECRET`
|
|
1132
|
-
*
|
|
1133
|
-
* We write into BOTH. The YAML holds structural config (enabled flag,
|
|
1134
|
-
* connection mode, domain) and references the secret env vars via
|
|
1135
|
-
* `${...}` interpolation. That way the YAML can be backed up / shared
|
|
1136
|
-
* without leaking credentials, and the real secrets live next to the
|
|
1137
|
-
* .env the user already edits.
|
|
1138
|
-
*/
|
|
1139
|
-
saveFeishuCredentials(instanceId, creds) {
|
|
1140
|
-
if (!FEISHU_APP_ID_RE.test(creds.appId)) {
|
|
1141
|
-
throw new Error(`Invalid Feishu appId format: expected cli_<alnum> (got "${creds.appId}")`);
|
|
1142
|
-
}
|
|
1143
|
-
if (!creds.appSecret || typeof creds.appSecret !== "string" || creds.appSecret.length < 4) {
|
|
1144
|
-
throw new Error("Invalid Feishu appSecret: must be a non-empty string");
|
|
1145
|
-
}
|
|
1146
|
-
const domainName = creds.domain === "lark" ? "lark" : "feishu";
|
|
1147
|
-
const paths = resolveHermesPaths(instanceId);
|
|
1148
|
-
ensureHermesConfigFiles(paths);
|
|
1149
|
-
// Merge into existing YAML rather than overwrite — the user may have
|
|
1150
|
-
// customised model/terminal/custom_providers/etc. via the Config tab.
|
|
1151
|
-
const currentYaml = readFileSync(paths.primaryConfig, "utf-8");
|
|
1152
|
-
const parsed = YAML.parse(currentYaml) || {};
|
|
1153
|
-
parsed.platforms = parsed.platforms || {};
|
|
1154
|
-
const prior = parsed.platforms.feishu || {};
|
|
1155
|
-
const priorExtra = prior.extra || {};
|
|
1156
|
-
parsed.platforms.feishu = {
|
|
1157
|
-
...prior,
|
|
1158
|
-
enabled: true,
|
|
1159
|
-
extra: {
|
|
1160
|
-
...priorExtra,
|
|
1161
|
-
// Env interpolation: hermes expands ${FOO} at load time against
|
|
1162
|
-
// the process env, which Docker populates from agent-home/.env.
|
|
1163
|
-
app_id: "${FEISHU_APP_ID}",
|
|
1164
|
-
app_secret: "${FEISHU_APP_SECRET}",
|
|
1165
|
-
domain_name: domainName,
|
|
1166
|
-
connection_mode: priorExtra.connection_mode || "websocket",
|
|
1167
|
-
},
|
|
1168
|
-
};
|
|
1169
|
-
writeConfigFile(paths.primaryConfig, YAML.stringify(parsed).trimEnd() + "\n");
|
|
1170
|
-
// Env merge preserves unrelated keys (API_SERVER_KEY, JSPROXY_API_KEY, …).
|
|
1171
|
-
updateEnvFile(paths.secretEnv, {
|
|
1172
|
-
FEISHU_APP_ID: creds.appId,
|
|
1173
|
-
FEISHU_APP_SECRET: creds.appSecret,
|
|
1174
|
-
});
|
|
1175
|
-
console.log(`[hermes] Feishu credentials saved for ${instanceId}, domain=${domainName}`);
|
|
1176
|
-
}
|
|
1177
|
-
/**
|
|
1178
|
-
* Persist WeChat (personal-account) credentials returned by iLink Bot API's QR
|
|
1179
|
-
* login flow. Called from the shared `/api/instances/:id/weixin/login`
|
|
1180
|
-
* handler via `instance-manager.saveWeixinCredentials` → adapter dispatch.
|
|
1181
|
-
*
|
|
1182
|
-
* Upstream Hermes's `WeixinAdapter.__init__` scans
|
|
1183
|
-
* `$HERMES_HOME/weixin/accounts/*.json` at startup and auto-connects every
|
|
1184
|
-
* account file it finds, so the handshake we persist here is everything
|
|
1185
|
-
* the runtime needs to come online after an instance restart. The JSON
|
|
1186
|
-
* shape is pinned to upstream's `save_weixin_account` helper:
|
|
1187
|
-
* `{token, base_url, user_id, saved_at}` with mode 0600.
|
|
1188
|
-
*
|
|
1189
|
-
* We also flip `platforms.weixin.enabled: true` in the instance's
|
|
1190
|
-
* config.yaml so the gateway actually tries to connect the adapter on
|
|
1191
|
-
* next start (without it, hermes ignores the weixin folder entirely).
|
|
1192
|
-
*/
|
|
1193
|
-
saveWeixinCredentials(instanceId, creds) {
|
|
1194
|
-
if (!creds.accountId || !SAFE_WEIXIN_ACCOUNT_ID_RE.test(creds.accountId)) {
|
|
1195
|
-
throw new Error(`Invalid WeChat accountId: must be 1-128 chars of [a-zA-Z0-9@._-], got "${creds.accountId}"`);
|
|
1196
|
-
}
|
|
1197
|
-
if (!creds.token || typeof creds.token !== "string" || creds.token.length < 4) {
|
|
1198
|
-
throw new Error("Invalid WeChat bot token: must be a non-empty string");
|
|
1199
|
-
}
|
|
1200
|
-
const home = resolveHermesPaths(instanceId).agentHome;
|
|
1201
|
-
const accountsDir = join(home, "weixin", "accounts");
|
|
1202
|
-
ensureDirContainer(accountsDir);
|
|
1203
|
-
// Match upstream `save_weixin_account` exactly — WeixinAdapter reloads
|
|
1204
|
-
// this file at connect time so we can't improvise the field names.
|
|
1205
|
-
const payload = {
|
|
1206
|
-
token: creds.token,
|
|
1207
|
-
base_url: creds.baseUrl,
|
|
1208
|
-
user_id: creds.userId || "",
|
|
1209
|
-
saved_at: new Date().toISOString().replace(/\.\d+Z$/, "Z"),
|
|
1210
|
-
};
|
|
1211
|
-
const accountPath = join(accountsDir, `${creds.accountId}.json`);
|
|
1212
|
-
safeWriteJson(accountPath, payload);
|
|
1213
|
-
try {
|
|
1214
|
-
chmodSync(accountPath, 0o600);
|
|
1215
|
-
}
|
|
1216
|
-
catch { /* best effort */ }
|
|
1217
|
-
// Hermes runs as the `hermes` user inside the container; on the host
|
|
1218
|
-
// the bind-mount is owned by the panel service user. `ensureDirContainer`
|
|
1219
|
-
// already handles ownership for the dir — file-level chown is a noop
|
|
1220
|
-
// in the container path and not available as a shared helper here, so
|
|
1221
|
-
// we rely on the directory permissions inheriting to the new file.
|
|
1222
|
-
// Enable platforms.weixin in config.yaml (merge, preserve other keys).
|
|
1223
|
-
// Upstream WeixinAdapter resolves startup credentials in this order at
|
|
1224
|
-
// init time (weixin.py:1066-1067):
|
|
1225
|
-
// token = config.token || extra.token || env WEIXIN_TOKEN
|
|
1226
|
-
// account_id = extra.account_id || env WEIXIN_ACCOUNT_ID
|
|
1227
|
-
// The per-account JSON we wrote above is state storage (refresh
|
|
1228
|
-
// cursor, context token cache), not the startup seed — without the
|
|
1229
|
-
// YAML + env entries below the adapter crashes with
|
|
1230
|
-
// "WEIXIN_TOKEN is required".
|
|
1231
|
-
const paths = resolveHermesPaths(instanceId);
|
|
1232
|
-
ensureHermesConfigFiles(paths);
|
|
1233
|
-
const currentYaml = readFileSync(paths.primaryConfig, "utf-8");
|
|
1234
|
-
const parsed = YAML.parse(currentYaml) || {};
|
|
1235
|
-
parsed.platforms = parsed.platforms || {};
|
|
1236
|
-
const prior = parsed.platforms.weixin || {};
|
|
1237
|
-
const priorExtra = prior.extra || {};
|
|
1238
|
-
parsed.platforms.weixin = {
|
|
1239
|
-
...prior,
|
|
1240
|
-
enabled: true,
|
|
1241
|
-
extra: {
|
|
1242
|
-
...priorExtra,
|
|
1243
|
-
// Same env-interpolation convention used by the feishu save path:
|
|
1244
|
-
// YAML references ${VAR}, the real value lives in agent-home/.env.
|
|
1245
|
-
account_id: "${WEIXIN_ACCOUNT_ID}",
|
|
1246
|
-
token: "${WEIXIN_TOKEN}",
|
|
1247
|
-
},
|
|
1248
|
-
};
|
|
1249
|
-
writeConfigFile(paths.primaryConfig, YAML.stringify(parsed).trimEnd() + "\n");
|
|
1250
|
-
updateEnvFile(paths.secretEnv, {
|
|
1251
|
-
WEIXIN_ACCOUNT_ID: creds.accountId,
|
|
1252
|
-
WEIXIN_TOKEN: creds.token,
|
|
1253
|
-
});
|
|
1254
|
-
console.log(`[hermes] WeChat credentials saved for ${instanceId}, account=${creds.accountId}`);
|
|
1255
|
-
}
|
|
1256
|
-
/**
|
|
1257
|
-
* List connected WeChat accounts for an instance. Backs the panel UI's
|
|
1258
|
-
* "Connected Accounts" section in WeixinLoginPanel. Tolerates a missing
|
|
1259
|
-
* directory (returns empty) and skips sidecar files the runtime writes
|
|
1260
|
-
* alongside account records (sync buffers + context-token caches).
|
|
1261
|
-
*/
|
|
1262
|
-
getWeixinAccounts(instanceId) {
|
|
1263
|
-
const home = resolveHermesPaths(instanceId).agentHome;
|
|
1264
|
-
if (!home)
|
|
1265
|
-
return [];
|
|
1266
|
-
const accountsDir = join(home, "weixin", "accounts");
|
|
1267
|
-
if (!existsSync(accountsDir))
|
|
1268
|
-
return [];
|
|
1269
|
-
const results = [];
|
|
1270
|
-
for (const f of readdirSync(accountsDir)) {
|
|
1271
|
-
if (!f.endsWith(".json"))
|
|
1272
|
-
continue;
|
|
1273
|
-
// Skip sidecar files written by the runtime (sync cursor + context
|
|
1274
|
-
// token cache). They share the accounts dir but aren't accounts.
|
|
1275
|
-
if (f.endsWith(".sync.json") || f.endsWith(".context-tokens.json"))
|
|
1276
|
-
continue;
|
|
1277
|
-
try {
|
|
1278
|
-
const data = JSON.parse(readFileSync(join(accountsDir, f), "utf-8"));
|
|
1279
|
-
results.push({
|
|
1280
|
-
accountId: f.replace(/\.json$/, ""),
|
|
1281
|
-
userId: typeof data.user_id === "string" ? data.user_id : undefined,
|
|
1282
|
-
savedAt: typeof data.saved_at === "string" ? data.saved_at : undefined,
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
catch {
|
|
1286
|
-
/* malformed account file — skip */
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
return results;
|
|
1290
|
-
}
|
|
1291
|
-
/**
|
|
1292
|
-
* Build the Nomad docker task spec directly from the persisted RuntimeSpec.
|
|
1293
|
-
* Physically migrated from `nomad-manager.buildHermesTaskDocker`. Framework
|
|
1294
|
-
* code now calls `getAdapter(agentType).buildNomadTask(id)` uniformly.
|
|
1295
|
-
*/
|
|
1296
|
-
async buildNomadTask(instanceId) {
|
|
1297
|
-
const { getInstanceRuntime } = await import("../../instance-manager.js");
|
|
1298
|
-
const safeJobId = `${this.nomadJobPrefix}${instanceId}`;
|
|
1299
|
-
assertSafeTemplateId(safeJobId);
|
|
1300
|
-
const spec = getInstanceRuntime(instanceId);
|
|
1301
|
-
if (!spec || typeof spec !== "object") {
|
|
1302
|
-
throw new Error(`Hermes instance ${instanceId} has no persisted runtime spec`);
|
|
1303
|
-
}
|
|
1304
|
-
if (!spec.image || typeof spec.image !== "string") {
|
|
1305
|
-
throw new Error(`Hermes runtime spec missing image for ${instanceId}`);
|
|
1306
|
-
}
|
|
1307
|
-
if (!DOCKER_IMAGE_RE.test(spec.image) || spec.image.length > MAX_DOCKER_IMAGE_NAME_LEN) {
|
|
1308
|
-
throw new Error(`Invalid Hermes docker image: "${spec.image}"`);
|
|
1309
|
-
}
|
|
1310
|
-
const volumes = [];
|
|
1311
|
-
for (const vol of (spec.volumes || [])) {
|
|
1312
|
-
volumes.push(`${vol.hostPath}:${vol.containerPath}:${vol.mode}`);
|
|
1313
|
-
}
|
|
1314
|
-
const ports = Array.isArray(spec.ports) ? spec.ports : [];
|
|
1315
|
-
const gatewayPort = Number(ports[0]?.hostPort) || 0;
|
|
1316
|
-
if (!gatewayPort) {
|
|
1317
|
-
throw new Error(`Hermes instance ${instanceId} has no allocated gateway hostPort`);
|
|
1318
|
-
}
|
|
1319
|
-
const resourcesRaw = (spec.resources || {});
|
|
1320
|
-
const requestedCpu = Math.max(1, Math.min(Number(resourcesRaw.CPU) || 1000, MAX_CPU_MHZ));
|
|
1321
|
-
const requestedMem = Math.max(1, Math.min(Number(resourcesRaw.MemoryMB) || 1024, MAX_MEMORY_MB));
|
|
1322
|
-
const requestedMemMax = Math.min(Number(resourcesRaw.MemoryMaxMB ?? requestedMem), MAX_MEMORY_MAX_MB);
|
|
1323
|
-
// Start non-root directly as the host's uid:gid — aligns with OpenClaw's
|
|
1324
|
-
// security model (openclaw.ts:1404) and makes `cap_drop: ["ALL"]` viable
|
|
1325
|
-
// without any cap_add. The entrypoint shim detects non-root via
|
|
1326
|
-
// `if [ "$(id -u)" = "0" ]; then ... gosu ...; fi` and cleanly falls
|
|
1327
|
-
// through to the venv-activation branch when started this way.
|
|
1328
|
-
//
|
|
1329
|
-
// Bind-mounted /opt/data on the host is already owned by this uid:gid
|
|
1330
|
-
// (jishushell creates instance dirs as the panel user), so mkdir/cp/chmod
|
|
1331
|
-
// inside the shim's non-root branch all succeed without CAP_CHOWN.
|
|
1332
|
-
const hostUid = process.getuid?.() ?? 1000;
|
|
1333
|
-
const hostGid = process.getgid?.() ?? 1000;
|
|
1334
|
-
// Without HostNetwork, Nomad's docker driver publishes the gateway to
|
|
1335
|
-
// 127.0.0.1, so cross-container consumers (e.g. OpenWebUI binding
|
|
1336
|
-
// hermes via the llm-agent capability) can't reach it. Match the
|
|
1337
|
-
// modern app-yaml path (nomad-manager.ts:hostNetworkForPort): when
|
|
1338
|
-
// the agent's nomad.hcl declares `host_network "external"`, attach
|
|
1339
|
-
// it to the ReservedPort so docker binds to the LAN address.
|
|
1340
|
-
const hostNetwork = nomadHasExternalHostNetwork() ? "external" : undefined;
|
|
1341
|
-
return {
|
|
1342
|
-
Name: "gateway",
|
|
1343
|
-
Driver: "docker",
|
|
1344
|
-
User: `${hostUid}:${hostGid}`,
|
|
1345
|
-
Config: {
|
|
1346
|
-
image: spec.image,
|
|
1347
|
-
force_pull: false,
|
|
1348
|
-
// Match nomad-manager.ts:buildAppTask — default 5-minute pull
|
|
1349
|
-
// timeout is too short for Pi-class networks pulling a 1+ GiB
|
|
1350
|
-
// hermes image; bump to 15 minutes.
|
|
1351
|
-
image_pull_timeout: "15m",
|
|
1352
|
-
entrypoint: [spec.command],
|
|
1353
|
-
args: [...(spec.args || [])],
|
|
1354
|
-
work_dir: spec.cwd || HERMES_CONTAINER_WORKDIR,
|
|
1355
|
-
volumes,
|
|
1356
|
-
// Tell the docker driver to publish the labeled "gateway" port,
|
|
1357
|
-
// so it routes the host_network IP rather than the loopback default.
|
|
1358
|
-
ports: ["gateway"],
|
|
1359
|
-
extra_hosts: ["host.docker.internal:host-gateway"],
|
|
1360
|
-
// No cap_add — starting as non-root uid:gid means the shim's
|
|
1361
|
-
// privilege-drop ritual (usermod / chown / gosu) is skipped
|
|
1362
|
-
// entirely. `security_opt: no-new-privileges` prevents the
|
|
1363
|
-
// unprivileged process from regaining any caps via setuid
|
|
1364
|
-
// binaries. If browser_navigate's chromium sandbox fails, fix
|
|
1365
|
-
// it with `--no-sandbox` in Dockerfile.hermes-agent rather
|
|
1366
|
-
// than adding CAP_SYS_ADMIN here.
|
|
1367
|
-
cap_drop: ["ALL"],
|
|
1368
|
-
security_opt: ["no-new-privileges"],
|
|
1369
|
-
pids_limit: DEFAULT_PIDS_LIMIT,
|
|
1370
|
-
readonly_rootfs: false,
|
|
1371
|
-
//
|
|
1372
|
-
// `init: true` asks docker to run docker-init (a tini fork) as PID 1.
|
|
1373
|
-
// This is the authoritative zombie-reaper for our containers — the
|
|
1374
|
-
// image itself deliberately does NOT set ENTRYPOINT, so anyone who
|
|
1375
|
-
// runs the image outside of Nomad must pass `--init` themselves.
|
|
1376
|
-
// Without a real init, the chromium / agent-browser subprocess
|
|
1377
|
-
// zombies never get reaped and we hit `pids_limit` after ~50
|
|
1378
|
-
// browser_navigate calls.
|
|
1379
|
-
//
|
|
1380
|
-
// `shm_size` raises /dev/shm from docker's 64 MB default. Chromium
|
|
1381
|
-
// uses shared memory for render/GPU buffers; 64 MB SIGBUSes on any
|
|
1382
|
-
// JS-heavy page. 1 GB matches Chrome's default heap budget and is
|
|
1383
|
-
// what Playwright / Puppeteer docker guides recommend.
|
|
1384
|
-
//
|
|
1385
|
-
init: true,
|
|
1386
|
-
shm_size: 1073741824,
|
|
1387
|
-
mounts: [{ type: "tmpfs", target: "/tmp", tmpfs_options: { size: 536870912 } }],
|
|
1388
|
-
},
|
|
1389
|
-
Env: { ...spec.env },
|
|
1390
|
-
Resources: {
|
|
1391
|
-
CPU: requestedCpu,
|
|
1392
|
-
MemoryMB: requestedMem,
|
|
1393
|
-
MemoryMaxMB: requestedMemMax,
|
|
1394
|
-
Networks: [
|
|
1395
|
-
{
|
|
1396
|
-
ReservedPorts: [
|
|
1397
|
-
{
|
|
1398
|
-
Label: "gateway",
|
|
1399
|
-
Value: gatewayPort,
|
|
1400
|
-
To: gatewayPort,
|
|
1401
|
-
...(hostNetwork ? { HostNetwork: hostNetwork } : {}),
|
|
1402
|
-
},
|
|
1403
|
-
],
|
|
1404
|
-
},
|
|
1405
|
-
],
|
|
1406
|
-
},
|
|
1407
|
-
LogConfig: { MaxFiles: 3, MaxFileSizeMB: 10 },
|
|
1408
|
-
};
|
|
1409
|
-
}
|
|
1410
|
-
/**
|
|
1411
|
-
* Rewrite a persisted Hermes runtime spec to use a new host port.
|
|
1412
|
-
* Hermes persists its port in `ports[0].hostPort/containerPort`,
|
|
1413
|
-
* `env.API_SERVER_PORT`, and `health.port`.
|
|
1414
|
-
*/
|
|
1415
|
-
reallocateRuntimePort(runtime, newPort) {
|
|
1416
|
-
if (Array.isArray(runtime.ports) && runtime.ports.length > 0) {
|
|
1417
|
-
runtime.ports = runtime.ports.map((port, idx) => idx === 0 ? { ...port, hostPort: newPort, containerPort: newPort } : port);
|
|
1418
|
-
}
|
|
1419
|
-
if (runtime.env && runtime.env.API_SERVER_PORT !== undefined) {
|
|
1420
|
-
runtime.env.API_SERVER_PORT = String(newPort);
|
|
1421
|
-
}
|
|
1422
|
-
if (runtime.health && typeof runtime.health === "object" && runtime.health.port != null) {
|
|
1423
|
-
runtime.health = { ...runtime.health, port: newPort };
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
// Each adapter owns its own Nomad job prefix, derived from the agent
|
|
1427
|
-
// type (`hermes-<id>`, `openclaw-<id>`, …). Any new runtime should
|
|
1428
|
-
// declare its own prefix here so job IDs are self-describing and
|
|
1429
|
-
// multiple runtime kinds never collide in the Nomad Raft namespace.
|
|
1430
|
-
nomadJobPrefix = "hermes-";
|
|
1431
|
-
migrateStartup() {
|
|
1432
|
-
migrateHermesImageTagIfNeeded();
|
|
1433
|
-
}
|
|
1434
|
-
// Inline chat forwarder dispatch — framework reads this from
|
|
1435
|
-
// `routes/instances.ts:/api/instances/:id/agent/chat`. Declaring the
|
|
1436
|
-
// descriptor (rather than hardcoding API_SERVER_KEY in the route) lets
|
|
1437
|
-
// other OpenAI-compat agents plug in without touching framework code.
|
|
1438
|
-
inlineChatDescriptor = {
|
|
1439
|
-
apiKeyEnvVar: "API_SERVER_KEY",
|
|
1440
|
-
endpointPath: "/v1/chat/completions",
|
|
1441
|
-
};
|
|
1442
|
-
async buildPairingListCommand(_instanceId) {
|
|
1443
|
-
return ["hermes", "pairing", "list"];
|
|
1444
|
-
}
|
|
1445
|
-
async buildPairingApproveCommand(_instanceId, input) {
|
|
1446
|
-
return ["hermes", "pairing", "approve", input.channel, input.code];
|
|
1447
|
-
}
|
|
1448
|
-
// ── §32.2.4 runtime install (aligned with OpenClaw pull flow) ─────────
|
|
1449
|
-
//
|
|
1450
|
-
// Pull-only flow — no local Dockerfile build fallback. Hermes ships as
|
|
1451
|
-
// a ~2.4 GB pre-built image on GHCR; building from upstream source on
|
|
1452
|
-
// a Raspberry Pi would take 20+ minutes and almost always fails on
|
|
1453
|
-
// resource-constrained hardware. If the pull fails we return a clear
|
|
1454
|
-
// error so the user can fix network / registry access rather than
|
|
1455
|
-
// silently burning an hour on a futile source build.
|
|
1456
|
-
//
|
|
1457
|
-
// Steps:
|
|
1458
|
-
// 1. docker image inspect — reuse existing local image if present
|
|
1459
|
-
// 2. docker pull ghcr.io/x-aijishu/hermes-runtime:latest
|
|
1460
|
-
// 3. capture RepoDigest for digest pinning (best-effort)
|
|
1461
|
-
// 4. Copy templates/hermes-entrypoint.sh to ~/.jishushell/runtimes/hermes/
|
|
1462
|
-
// 5. Write runtime catalog entry into panel.json
|
|
1463
|
-
async installRuntime(_opts) {
|
|
1464
|
-
const task = createTask("hermes");
|
|
1465
|
-
try {
|
|
1466
|
-
await this.prepareHermesWithTask(task);
|
|
1467
|
-
if (task.status === "error") {
|
|
1468
|
-
return {
|
|
1469
|
-
ok: false,
|
|
1470
|
-
message: "Hermes installation failed",
|
|
1471
|
-
taskId: task.id,
|
|
1472
|
-
};
|
|
1473
|
-
}
|
|
1474
|
-
return {
|
|
1475
|
-
ok: true,
|
|
1476
|
-
message: "Hermes runtime installed",
|
|
1477
|
-
taskId: task.id,
|
|
1478
|
-
};
|
|
1479
|
-
}
|
|
1480
|
-
catch (e) {
|
|
1481
|
-
emitTask(task, { type: "error", message: `Hermes 安装失败: ${e.message}` });
|
|
1482
|
-
task.status = "error";
|
|
1483
|
-
return {
|
|
1484
|
-
ok: false,
|
|
1485
|
-
message: "Hermes installation failed",
|
|
1486
|
-
error: e.message,
|
|
1487
|
-
taskId: task.id,
|
|
1488
|
-
};
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
/**
|
|
1492
|
-
* Non-blocking variant — returns a task id immediately and runs the
|
|
1493
|
-
* install in the background. Matches OpenClaw's startBuildRuntimeImage.
|
|
1494
|
-
*/
|
|
1495
|
-
startInstallRuntime(_opts) {
|
|
1496
|
-
const task = createTask("hermes");
|
|
1497
|
-
this.prepareHermesWithTask(task).catch((e) => {
|
|
1498
|
-
// Mirror errors to stderr so post-mortem via journalctl works.
|
|
1499
|
-
// Task events live in memory and vanish after TASK_MAX_AGE / panel
|
|
1500
|
-
// restart — leaving us blind if the UI stops polling before the
|
|
1501
|
-
// failure arrives.
|
|
1502
|
-
console.error(`[hermes] install failed (task=${task.id}):`, e?.stack || e?.message || e);
|
|
1503
|
-
emitTask(task, { type: "error", message: `Hermes 安装失败: ${e?.message || e}` });
|
|
1504
|
-
task.status = "error";
|
|
1505
|
-
});
|
|
1506
|
-
return { ok: true, message: "Hermes install started", taskId: task.id };
|
|
1507
|
-
}
|
|
1508
|
-
/**
|
|
1509
|
-
* Shared helper that pulls (or builds) the Hermes runtime image and
|
|
1510
|
-
* finalises the runtime catalog entry. Mirrors OpenClaw's
|
|
1511
|
-
* `pullOrBuildOpenclawImageWithTask` so both runtimes expose the same
|
|
1512
|
-
* install UX (local → pull → fallback build → digest pin).
|
|
1513
|
-
*/
|
|
1514
|
-
async prepareHermesWithTask(task) {
|
|
1515
|
-
emitTask(task, { type: "progress", message: "准备 Hermes runtime...", progress: 0 });
|
|
1516
|
-
const invocation = resolveDockerInvocation();
|
|
1517
|
-
// Always pull. When the image is already local and up-to-date with
|
|
1518
|
-
// upstream, docker pull returns in a few seconds after a registry
|
|
1519
|
-
// digest check — the trade is worthwhile because it keeps "reinstall"
|
|
1520
|
-
// from turning into a three-second no-op. Failures are clearly
|
|
1521
|
-
// reported instead of silently retrying with a local fallback: Hermes
|
|
1522
|
-
// cannot be built locally (Python toolchain + wheels OOMs on Pi).
|
|
1523
|
-
emitTask(task, {
|
|
1524
|
-
type: "progress",
|
|
1525
|
-
message: `拉取 Hermes 镜像: ${HERMES_DEFAULT_IMAGE} (已缓存时约 10s)...`,
|
|
1526
|
-
progress: 10,
|
|
1527
|
-
});
|
|
1528
|
-
const pull = await spawnWithTask(task, invocation.cmd, [...invocation.argsPrefix, "pull", HERMES_DEFAULT_IMAGE], { timeout: 1800000 });
|
|
1529
|
-
if (!pull.ok) {
|
|
1530
|
-
console.error(`[hermes] docker pull failed for ${HERMES_DEFAULT_IMAGE} — output follows:\n${pull.output}`);
|
|
1531
|
-
emitTask(task, {
|
|
1532
|
-
type: "error",
|
|
1533
|
-
message: `Hermes 镜像拉取失败。请检查网络/registry 认证,或手动执行: docker pull ${HERMES_DEFAULT_IMAGE}`,
|
|
1534
|
-
});
|
|
1535
|
-
task.status = "error";
|
|
1536
|
-
return;
|
|
1537
|
-
}
|
|
1538
|
-
// 3. capture digest (best-effort)
|
|
1539
|
-
emitTask(task, { type: "progress", message: "捕获镜像 digest...", progress: 75 });
|
|
1540
|
-
const digest = captureImageDigest(HERMES_DEFAULT_IMAGE);
|
|
1541
|
-
if (digest) {
|
|
1542
|
-
emitTask(task, { type: "log", message: `Digest: ${digest}` });
|
|
1543
|
-
}
|
|
1544
|
-
else {
|
|
1545
|
-
emitTask(task, {
|
|
1546
|
-
type: "log",
|
|
1547
|
-
message: "No RepoDigest available (local build); will use :latest tag",
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
|
-
// 4. pin the mutable tag to the image's LABEL version (e.g.
|
|
1551
|
-
// ghcr.io/…:latest → ghcr.io/…:0.10.0). Parity with OpenClaw's
|
|
1552
|
-
// migrateOpenclawImageTagIfNeeded: keeps panel.json referencing an
|
|
1553
|
-
// immutable tag so nothing — Nomad image_pull, doctor, UI — ever
|
|
1554
|
-
// sees a mutable alias after install. No-op when the image was
|
|
1555
|
-
// locally built or lacks the LABEL.
|
|
1556
|
-
emitTask(task, { type: "progress", message: "锁定镜像版本标签...", progress: 85 });
|
|
1557
|
-
const pinnedTag = pinHermesImageToLabeledVersion(HERMES_DEFAULT_IMAGE);
|
|
1558
|
-
const storedImage = pinnedTag ?? HERMES_DEFAULT_IMAGE;
|
|
1559
|
-
if (pinnedTag) {
|
|
1560
|
-
emitTask(task, { type: "log", message: `Pinned tag: ${pinnedTag}` });
|
|
1561
|
-
}
|
|
1562
|
-
// 5. persist runtime catalog
|
|
1563
|
-
// The shim is baked into the image (see Dockerfile.hermes-slim's
|
|
1564
|
-
// COPY / LABEL). No host-side shim install needed anymore — we
|
|
1565
|
-
// verify the official RepoDigest at buildRuntime()/onBeforeStart time.
|
|
1566
|
-
emitTask(task, { type: "progress", message: "写入 runtime catalog...", progress: 95 });
|
|
1567
|
-
setRuntimeCatalogEntry("hermes", {
|
|
1568
|
-
...HERMES_CATALOG_DEFAULTS,
|
|
1569
|
-
defaultImage: storedImage,
|
|
1570
|
-
...(digest ? { defaultImageDigest: digest } : {}),
|
|
1571
|
-
});
|
|
1572
|
-
emitTask(task, {
|
|
1573
|
-
type: "done",
|
|
1574
|
-
message: digest
|
|
1575
|
-
? `Hermes 安装完成, 镜像已 pin 到 digest (tag=${storedImage})`
|
|
1576
|
-
: `Hermes 安装完成 (tag=${storedImage})`,
|
|
1577
|
-
progress: 100,
|
|
1578
|
-
});
|
|
1579
|
-
task.status = "done";
|
|
1580
|
-
}
|
|
1581
|
-
/**
|
|
1582
|
-
* Hermes readiness: the image must retain an official RepoDigest from
|
|
1583
|
-
* ghcr.io/x-aijishu/hermes-runtime. This accepts images pulled directly
|
|
1584
|
-
* from our registry (and docker save/load copies that preserve RepoDigests)
|
|
1585
|
-
* while rejecting arbitrary local retags that only look like Hermes runtime.
|
|
1586
|
-
*/
|
|
1587
|
-
getInstallStatus() {
|
|
1588
|
-
const entry = getRuntimeCatalogEntry("hermes");
|
|
1589
|
-
const storedImage = typeof entry?.defaultImage === "string" ? entry.defaultImage.trim() : "";
|
|
1590
|
-
if (storedImage) {
|
|
1591
|
-
const digest = readOfficialHermesRepoDigest(storedImage);
|
|
1592
|
-
if (digest) {
|
|
1593
|
-
return {
|
|
1594
|
-
installed: true,
|
|
1595
|
-
imageReady: true,
|
|
1596
|
-
version: imageTagVersion(storedImage),
|
|
1597
|
-
digest: entry?.defaultImageDigest ?? digest,
|
|
1598
|
-
};
|
|
1599
|
-
}
|
|
1600
|
-
const localImage = findLocalHermesImage();
|
|
1601
|
-
if (localImage) {
|
|
1602
|
-
persistHermesCatalogForImage(localImage.image, entry, localImage.digest);
|
|
1603
|
-
return {
|
|
1604
|
-
installed: true,
|
|
1605
|
-
imageReady: true,
|
|
1606
|
-
version: imageTagVersion(localImage.image),
|
|
1607
|
-
digest: localImage.digest,
|
|
1608
|
-
};
|
|
1609
|
-
}
|
|
1610
|
-
return {
|
|
1611
|
-
installed: true,
|
|
1612
|
-
imageReady: false,
|
|
1613
|
-
version: imageTagVersion(storedImage),
|
|
1614
|
-
digest: entry?.defaultImageDigest,
|
|
1615
|
-
};
|
|
1616
|
-
}
|
|
1617
|
-
const localImage = findLocalHermesImage();
|
|
1618
|
-
if (!localImage)
|
|
1619
|
-
return { installed: false, imageReady: false };
|
|
1620
|
-
persistHermesCatalogForImage(localImage.image, entry, localImage.digest);
|
|
1621
|
-
return {
|
|
1622
|
-
installed: true,
|
|
1623
|
-
imageReady: true,
|
|
1624
|
-
version: imageTagVersion(localImage.image),
|
|
1625
|
-
digest: localImage.digest,
|
|
1626
|
-
};
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
export const hermesAdapter = new HermesAdapter();
|
|
1630
|
-
registerAdapter(hermesAdapter);
|
|
1631
|
-
//# sourceMappingURL=hermes.js.map
|