jishushell 0.6.5 → 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 +15 -170
- package/apps/browserless-chromium-container.yaml +15 -10
- package/apps/filebrowser-container.yaml +14 -9
- package/apps/hermes-container.yaml +23 -2
- package/apps/jishu-kb-container.yaml +29 -161
- 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 +31 -7
- package/apps/openclaw-with-ollama-container.yaml +8 -2
- package/apps/openclaw-with-searxng-container.yaml +18 -6
- package/apps/searxng-container.yaml +11 -6
- package/apps/weknora-container.yaml +21 -21
- package/dependencies/jishushell-panel-0.6.18.tgz +0 -0
- package/dist/cli/app.js +244 -213
- package/dist/cli/app.js.map +1 -1
- package/dist/cli/backup.js +15 -12
- package/dist/cli/backup.js.map +1 -1
- package/dist/cli/core.d.ts +4 -3
- package/dist/cli/core.js +392 -227
- package/dist/cli/core.js.map +1 -1
- package/dist/cli/doctor.d.ts +1 -1
- package/dist/cli/doctor.js +17 -10
- 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.js +80 -11
- 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 +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +23 -19
- package/dist/config.js +60 -49
- package/dist/config.js.map +1 -1
- package/dist/control.d.ts +6 -6
- package/dist/control.js +31 -23
- package/dist/control.js.map +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/core.js +5 -5
- package/dist/core.js.map +1 -1
- package/dist/install.d.ts +2 -2
- package/dist/install.js +18 -18
- package/dist/install.js.map +1 -1
- package/dist/routes/apps.d.ts +1 -1
- package/dist/routes/apps.js +101 -193
- package/dist/routes/apps.js.map +1 -1
- package/dist/routes/auth.js +1 -1
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/backup.js +1 -1
- package/dist/routes/backup.js.map +1 -1
- package/dist/routes/external-mounts.d.ts +1 -1
- package/dist/routes/external-mounts.js +1 -1
- 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 +10 -4
- package/dist/routes/instances.js +323 -541
- 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.js +26 -3
- package/dist/routes/llm-proxy.js.map +1 -1
- package/dist/routes/setup.js +53 -38
- package/dist/routes/setup.js.map +1 -1
- package/dist/routes/system.js +108 -68
- 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.js +315 -213
- 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.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.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/instance-proxy.d.ts +17 -1
- package/dist/services/llm-proxy/instance-proxy.js +171 -44
- package/dist/services/llm-proxy/instance-proxy.js.map +1 -1
- 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.js +23 -31
- package/dist/services/llm-proxy/providers.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 +16 -37
- 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 -123
- package/dist/services/runtime/instance.js.map +1 -1
- package/dist/services/runtime/job-id.d.ts +1 -1
- package/dist/services/runtime/job-id.js +1 -1
- 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 +22 -501
- 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.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 +6 -2
- package/dist/services/telemetry/activation.js +6 -2
- package/dist/services/telemetry/activation.js.map +1 -1
- package/dist/services/telemetry/heartbeat.d.ts +6 -2
- package/dist/services/telemetry/heartbeat.js +6 -2
- 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 +331 -45
- package/dist/utils/instance-lock.d.ts +2 -2
- package/dist/utils/instance-lock.js +2 -2
- package/install/jishu-install.sh +107 -26
- package/install/jishu-uninstall.sh +8 -0
- package/install/post-install.sh +162 -185
- package/install/post-uninstall.sh +6 -0
- package/node_modules/@fastify/static/.github/workflows/ci.yml +1 -1
- package/node_modules/@fastify/static/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/static/LICENSE +1 -3
- package/node_modules/@fastify/static/example/server-benchmark.js +39 -0
- package/node_modules/@fastify/static/index.js +169 -23
- package/node_modules/@fastify/static/lib/dirList.js +20 -6
- package/node_modules/@fastify/static/package.json +10 -8
- package/node_modules/@fastify/static/test/dir-list.test.js +82 -0
- package/node_modules/@fastify/static/test/static.test.js +326 -4
- package/node_modules/@fastify/static/types/index.d.ts +0 -4
- package/node_modules/@fastify/static/types/index.test-d.ts +1 -1
- package/node_modules/content-disposition/README.md +21 -22
- package/node_modules/content-disposition/index.js +122 -44
- package/node_modules/content-disposition/package.json +16 -20
- package/node_modules/glob/README.md +39 -130
- package/node_modules/glob/dist/commonjs/glob.d.ts +8 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/glob.js +2 -1
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -1
- 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/pattern.d.ts +3 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/pattern.js +4 -0
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -1
- package/node_modules/glob/dist/esm/glob.d.ts +8 -0
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/glob.js +2 -1
- package/node_modules/glob/dist/esm/glob.js.map +1 -1
- 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/pattern.d.ts +3 -0
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/pattern.js +4 -0
- package/node_modules/glob/dist/esm/pattern.js.map +1 -1
- package/node_modules/glob/package.json +38 -37
- package/node_modules/jishushell-panel/README.md +4 -4
- package/node_modules/jishushell-panel/output/dist/server.js +17 -6
- package/node_modules/jishushell-panel/output/dist/server.js.map +1 -1
- 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 +6 -4
- package/node_modules/jishushell-panel/package.json +2 -2
- package/node_modules/semver/classes/range.js +11 -2
- package/node_modules/semver/package.json +2 -2
- package/package.json +12 -64
- package/scripts/check-app-path-boundaries.mjs +121 -0
- package/scripts/check-app-spec.mjs +127 -25
- package/scripts/check-colima-launchd.mjs +10 -8
- package/scripts/check-integration-isolation.ts +541 -0
- package/scripts/check-new-file-tests.mjs +11 -3
- package/scripts/check-open-core-boundaries.mjs +60 -10
- package/scripts/check-test-layering.sh +1 -1
- 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 +4 -3
- package/scripts/local-web-upgrade-test.example.env +2 -2
- package/scripts/local-web-upgrade-test.sh +14 -1
- package/scripts/pack-gui-and-send-pi.sh +41 -0
- package/scripts/perf/instances.js +1 -1
- package/scripts/prune-open-core-dist.mjs +89 -2
- package/scripts/smoke/hermes-bootstrap.sh +5 -5
- package/templates/hermes-entrypoint.sh +19 -29
- package/apps/openwebui-container.yaml +0 -97
- package/apps/playwright-container.yaml +0 -126
- package/dependencies/jishushell-panel-0.6.5.tgz +0 -0
- 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 -14
- package/dist/routes/agent-apps.js +0 -77
- package/dist/routes/agent-apps.js.map +0 -1
- package/dist/routes/internal.d.ts +0 -2
- package/dist/routes/internal.js +0 -55
- package/dist/routes/internal.js.map +0 -1
- package/dist/routes/openclaw-routes.d.ts +0 -22
- package/dist/routes/openclaw-routes.js +0 -1020
- package/dist/routes/openclaw-routes.js.map +0 -1
- package/dist/routes/runtime.d.ts +0 -15
- package/dist/routes/runtime.js +0 -76
- 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 -230
- 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 -185
- package/dist/services/app/app-compiler.js.map +0 -1
- package/dist/services/app/app-manager.d.ts +0 -184
- package/dist/services/app/app-manager.js +0 -2933
- 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 -382
- 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 -299
- 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 -224
- 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 -1215
- package/dist/services/app/openclaw-manager.js.map +0 -1
- package/dist/services/app/paths.d.ts +0 -27
- package/dist/services/app/paths.js +0 -40
- 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 -135
- 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 -74
- package/dist/services/app/types.js +0 -16
- package/dist/services/app/types.js.map +0 -1
- package/dist/services/app-config-admin.d.ts +0 -17
- package/dist/services/app-config-admin.js +0 -177
- package/dist/services/app-config-admin.js.map +0 -1
- package/dist/services/app-create-from-installed.d.ts +0 -23
- package/dist/services/app-create-from-installed.js +0 -75
- package/dist/services/app-create-from-installed.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-admin.d.ts +0 -101
- package/dist/services/backup-admin.js +0 -259
- package/dist/services/backup-admin.js.map +0 -1
- package/dist/services/backup-manager.d.ts +0 -264
- package/dist/services/backup-manager.js +0 -2263
- 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 -114
- 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 -29
- package/dist/services/capability-registry.js +0 -176
- package/dist/services/capability-registry.js.map +0 -1
- package/dist/services/capability-sync.d.ts +0 -4
- package/dist/services/capability-sync.js +0 -220
- package/dist/services/capability-sync.js.map +0 -1
- package/dist/services/connection-admin.d.ts +0 -74
- package/dist/services/connection-admin.js +0 -287
- package/dist/services/connection-admin.js.map +0 -1
- package/dist/services/connection-apply.d.ts +0 -91
- package/dist/services/connection-apply.js +0 -471
- 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 -354
- package/dist/services/connection-transactor.js.map +0 -1
- package/dist/services/core-manager.d.ts +0 -50
- package/dist/services/core-manager.js +0 -411
- package/dist/services/core-manager.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 -1156
- 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-admin.d.ts +0 -26
- package/dist/services/instance-admin.js +0 -218
- package/dist/services/instance-admin.js.map +0 -1
- package/dist/services/instance-manager.d.ts +0 -192
- package/dist/services/instance-manager.js +0 -1289
- package/dist/services/instance-manager.js.map +0 -1
- package/dist/services/macos-launchd.js +0 -312
- package/dist/services/macos-launchd.js.map +0 -1
- package/dist/services/nomad-manager.d.ts +0 -307
- package/dist/services/nomad-manager.js +0 -3958
- 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/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 -188
- 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 -1684
- 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.d.ts +0 -426
- package/dist/services/runtime/adapters/openclaw.js +0 -3975
- 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.js +0 -490
- package/dist/services/runtime/mcp-shims/drive-shim.js.map +0 -1
- package/dist/services/runtime/mcp-shims/jishukb-shim.d.ts +0 -48
- package/dist/services/runtime/mcp-shims/jishukb-shim.js +0 -723
- package/dist/services/runtime/mcp-shims/jishukb-shim.js.map +0 -1
- package/dist/services/runtime/mcp-shims/mcporter-lite.js +0 -276
- package/dist/services/runtime/mcp-shims/mcporter-lite.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/runtime-identity.d.ts +0 -13
- package/dist/services/runtime-identity.js +0 -166
- package/dist/services/runtime-identity.js.map +0 -1
- package/dist/services/runtime-repair.d.ts +0 -52
- package/dist/services/runtime-repair.js +0 -352
- package/dist/services/runtime-repair.js.map +0 -1
- package/dist/services/setup-manager.d.ts +0 -158
- package/dist/services/setup-manager.js +0 -2740
- 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/system-ollama-provider.d.ts +0 -14
- package/dist/services/system-ollama-provider.js +0 -125
- package/dist/services/system-ollama-provider.js.map +0 -1
- package/dist/services/system-reconciler.d.ts +0 -72
- package/dist/services/system-reconciler.js +0 -600
- package/dist/services/system-reconciler.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 -351
- 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/node_modules/@fastify/static/.github/stale.yml +0 -21
- package/node_modules/@isaacs/cliui/LICENSE.md +0 -63
- package/node_modules/@isaacs/cliui/README.md +0 -151
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts +0 -4
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js +0 -16
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts +0 -34
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js +0 -170
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts +0 -6
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js +0 -307
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts +0 -2
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js +0 -7
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts +0 -41
- package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/index.js +0 -322
- package/node_modules/@isaacs/cliui/dist/commonjs/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js +0 -12
- package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js.map +0 -7
- package/node_modules/@isaacs/cliui/dist/commonjs/package.json +0 -3
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts +0 -5
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js +0 -49
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts +0 -2
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js +0 -8
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts +0 -7
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js +0 -176
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts +0 -4
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js +0 -12
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts +0 -34
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js +0 -167
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts +0 -6
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js +0 -299
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts +0 -2
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js +0 -3
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/index.d.ts +0 -41
- package/node_modules/@isaacs/cliui/dist/esm/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/index.js +0 -317
- package/node_modules/@isaacs/cliui/dist/esm/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/index.min.js +0 -12
- package/node_modules/@isaacs/cliui/dist/esm/index.min.js.map +0 -7
- package/node_modules/@isaacs/cliui/dist/esm/package.json +0 -3
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts +0 -5
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js +0 -46
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts +0 -2
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js +0 -4
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts +0 -7
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js +0 -172
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/package.json +0 -163
- package/node_modules/content-disposition/HISTORY.md +0 -60
- package/node_modules/cross-spawn/LICENSE +0 -21
- package/node_modules/cross-spawn/README.md +0 -89
- package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/cross-spawn/lib/parse.js +0 -91
- package/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/node_modules/cross-spawn/package.json +0 -73
- package/node_modules/foreground-child/LICENSE +0 -15
- package/node_modules/foreground-child/README.md +0 -128
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -2
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/all-signals.js +0 -58
- package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +0 -58
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/index.js +0 -123
- package/node_modules/foreground-child/dist/commonjs/index.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/package.json +0 -3
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -6
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js +0 -38
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -10
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.js +0 -50
- package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -2
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.js +0 -52
- package/node_modules/foreground-child/dist/esm/all-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/index.d.ts +0 -58
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/index.js +0 -115
- package/node_modules/foreground-child/dist/esm/index.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/package.json +0 -3
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -6
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/proxy-signals.js +0 -34
- package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -10
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.js +0 -46
- package/node_modules/foreground-child/dist/esm/watchdog.js.map +0 -1
- package/node_modules/foreground-child/package.json +0 -106
- package/node_modules/glob/dist/esm/bin.d.mts +0 -3
- package/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
- package/node_modules/glob/dist/esm/bin.mjs +0 -346
- package/node_modules/glob/dist/esm/bin.mjs.map +0 -1
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/jackspeak/LICENSE.md +0 -55
- package/node_modules/jackspeak/README.md +0 -394
- package/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -323
- package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/index.js +0 -944
- package/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/index.min.js +0 -33
- package/node_modules/jackspeak/dist/commonjs/index.min.js.map +0 -7
- package/node_modules/jackspeak/dist/commonjs/package.json +0 -3
- package/node_modules/jackspeak/dist/esm/index.d.ts +0 -323
- package/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/esm/index.js +0 -936
- package/node_modules/jackspeak/dist/esm/index.js.map +0 -1
- package/node_modules/jackspeak/dist/esm/index.min.js +0 -33
- package/node_modules/jackspeak/dist/esm/index.min.js.map +0 -7
- package/node_modules/jackspeak/dist/esm/package.json +0 -3
- package/node_modules/jackspeak/package.json +0 -115
- package/node_modules/jishushell-panel/output/public/assets/ApiKeyField-D1i7zWXR.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/Dashboard-sWIvL43F.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/HermesChatPanel-DQ8RyvQY.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/HermesConfigForm-tIbPP1sB.js +0 -4
- package/node_modules/jishushell-panel/output/public/assets/InitPassword-C3Slq3Dd.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/InstanceDetail-7JqY9tq4.js +0 -92
- package/node_modules/jishushell-panel/output/public/assets/Login-BXLDJlQN.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/NewInstance-dLc5Xrpx.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/ProviderRecommendations-DIAXxesl.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/Settings-Bd5utbBh.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/Setup-Yn9_20FL.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/WeixinLoginPanel-C21doQTJ.js +0 -9
- package/node_modules/jishushell-panel/output/public/assets/index-CCkaIEjn.js +0 -20
- package/node_modules/jishushell-panel/output/public/assets/index-D7qxy-Vh.css +0 -1
- package/node_modules/jishushell-panel/output/public/assets/registry-B2ZQZXWL.js +0 -2
- package/node_modules/jishushell-panel/output/public/assets/usePolling-BFZm4do_.js +0 -1
- package/node_modules/jishushell-panel/output/public/assets/vendor-i18n-DqPtOicc.js +0 -9
- package/node_modules/jishushell-panel/output/public/assets/vendor-react-DW5juQin.js +0 -59
- package/node_modules/package-json-from-dist/LICENSE.md +0 -63
- package/node_modules/package-json-from-dist/README.md +0 -110
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +0 -89
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/package-json-from-dist/dist/commonjs/index.js +0 -134
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +0 -1
- package/node_modules/package-json-from-dist/dist/commonjs/package.json +0 -3
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts +0 -89
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +0 -1
- package/node_modules/package-json-from-dist/dist/esm/index.js +0 -129
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +0 -1
- package/node_modules/package-json-from-dist/dist/esm/package.json +0 -3
- package/node_modules/package-json-from-dist/package.json +0 -68
- package/node_modules/path-key/index.d.ts +0 -40
- package/node_modules/path-key/index.js +0 -16
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/package.json +0 -39
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -65
- package/node_modules/safe-buffer/package.json +0 -51
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/package.json +0 -34
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/index.d.ts +0 -22
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/package.json +0 -35
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -74
- package/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
- package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/browser.js +0 -10
- package/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
- package/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
- package/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/index.js +0 -279
- package/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
- package/node_modules/signal-exit/dist/cjs/package.json +0 -3
- package/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
- package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/signals.js +0 -42
- package/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
- package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/browser.js +0 -4
- package/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
- package/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
- package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
- package/node_modules/signal-exit/package.json +0 -106
- package/node_modules/which/CHANGELOG.md +0 -166
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -43
- package/node_modules/which/which.js +0 -125
- package/scripts/check-adapter-isolation.ts +0 -293
- /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/{runtime/mcp-shims → integrations/openclaw}/drive-shim.d.ts +0 -0
- /package/dist/services/{runtime/mcp-shims → integrations/openclaw}/mcporter-lite.d.ts +0 -0
- /package/dist/services/{plugin-installer.d.ts → setup/plugin-installer.d.ts} +0 -0
- /package/dist/services/{macos-launchd.d.ts → system/macos-launchd.d.ts} +0 -0
- /package/dist/services/{system-monitor.d.ts → system/system-monitor.d.ts} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runtime adapter types — §32.2 full decoupling contract.
|
|
3
|
-
*
|
|
4
|
-
* Goal: adding a new agent = 1 new file in `runtime/adapters/` + 1 import in
|
|
5
|
-
* `runtime/index.ts`. Core files (instance-manager / nomad-manager /
|
|
6
|
-
* setup-manager / routes / llm-proxy) never mention specific agent kinds.
|
|
7
|
-
*
|
|
8
|
-
* - Field names use camelCase; on-wire JSON matches the type exactly.
|
|
9
|
-
* - Legacy OpenClaw path remains wired through `instance-manager` helpers,
|
|
10
|
-
* but the control flow now enters through `OpenClawAdapter` methods so
|
|
11
|
-
* framework code dispatches via `getAdapter(agentType)` uniformly.
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* Discriminator for pluggable agent runtimes. Canonical identifier in code,
|
|
15
|
-
* on-disk `instance.json`, and HTTP APIs is `agentType`.
|
|
16
|
-
*/
|
|
17
|
-
export type AgentType = "openclaw" | "hermes" | (string & {});
|
|
18
1
|
export interface RuntimePortSpec {
|
|
2
|
+
/** AppSpec task that owns this port in a multi-task workload. */
|
|
3
|
+
taskName?: string;
|
|
19
4
|
name: string;
|
|
5
|
+
/**
|
|
6
|
+
* Port listened on inside the container / workload process namespace.
|
|
7
|
+
*
|
|
8
|
+
* This is the app's own runtime contract and should remain stable across
|
|
9
|
+
* host-side port reallocations.
|
|
10
|
+
*/
|
|
20
11
|
containerPort: number;
|
|
12
|
+
/**
|
|
13
|
+
* Port exposed on the host and owned by Core's control plane.
|
|
14
|
+
*
|
|
15
|
+
* Reallocation changes this field only; it must not rewrite
|
|
16
|
+
* `containerPort` unless the runtime itself truly changed its internal
|
|
17
|
+
* listener.
|
|
18
|
+
*/
|
|
21
19
|
hostPort?: number;
|
|
22
20
|
visibility?: "external" | "internal";
|
|
21
|
+
/** Nomad host network used for the published host port. */
|
|
22
|
+
host_network?: string;
|
|
23
23
|
}
|
|
24
24
|
export interface RuntimeVolumeSpec {
|
|
25
25
|
hostPath: string;
|
|
@@ -66,7 +66,7 @@ export interface RuntimeSpec {
|
|
|
66
66
|
* the service user and can ignore the ro flag (see vision G8)
|
|
67
67
|
*
|
|
68
68
|
* The structural defaults and built-in `agent-data/{id}` mount are
|
|
69
|
-
* applied by `services/
|
|
69
|
+
* applied by `services/instances/manager.ts` at create time.
|
|
70
70
|
*/
|
|
71
71
|
fileMounts?: FileMount[];
|
|
72
72
|
}
|
|
@@ -87,68 +87,12 @@ export interface FileMount {
|
|
|
87
87
|
mode: "ro" | "rw";
|
|
88
88
|
alias?: string | null;
|
|
89
89
|
}
|
|
90
|
-
export interface CapabilityProfile {
|
|
91
|
-
gateway: {
|
|
92
|
-
http: boolean;
|
|
93
|
-
websocket: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Which Chat UI style the frontend should use for this runtime. Values
|
|
96
|
-
* describe **behavior**, not agent identity, so a new adapter can pick
|
|
97
|
-
* the right mode without touching framework code.
|
|
98
|
-
* - "iframe": iframe the runtime's own gateway web UI (OpenClaw today)
|
|
99
|
-
* - "inline": JishuShell-side chat panel via frontend registry's
|
|
100
|
-
* `chatComponent` (Hermes today); runtime exposes an
|
|
101
|
-
* OpenAI-compat endpoint reached through
|
|
102
|
-
* /api/instances/:id/agent/chat
|
|
103
|
-
* - "none": no Chat UI; users interact via CLI / messaging platforms
|
|
104
|
-
*/
|
|
105
|
-
chatPanel: "iframe" | "inline" | "none";
|
|
106
|
-
};
|
|
107
|
-
pairing: {
|
|
108
|
-
list: boolean;
|
|
109
|
-
approve: boolean;
|
|
110
|
-
revoke: boolean;
|
|
111
|
-
clearPending: boolean;
|
|
112
|
-
};
|
|
113
|
-
configEditor: "json" | "yaml+env" | "custom";
|
|
114
|
-
configSchema: boolean;
|
|
115
|
-
customProvider: boolean;
|
|
116
|
-
pluginInstall: boolean;
|
|
117
|
-
skills: boolean;
|
|
118
|
-
mcp: boolean;
|
|
119
|
-
memory: boolean;
|
|
120
|
-
backupRestore: boolean;
|
|
121
|
-
usageStats: boolean;
|
|
122
|
-
restartlessReload: boolean;
|
|
123
|
-
messagingPlatforms: string[];
|
|
124
|
-
}
|
|
125
90
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* -
|
|
129
|
-
* - `ref` — hermes: commit sha when in overlay mode; openclaw: package.json version
|
|
130
|
-
* - `digest` — image digest captured in core.json when installHermes ran
|
|
131
|
-
* - `mode` — hermes-only distinction, OpenClaw always "baseline"
|
|
91
|
+
* Integration runtime installation record stored in the historical
|
|
92
|
+
* `core.json.runtime_catalog.<kind>` field. This is setup/install metadata,
|
|
93
|
+
* not per-instance runtime truth.
|
|
132
94
|
*/
|
|
133
|
-
export interface
|
|
134
|
-
agentType: string;
|
|
135
|
-
ref?: string;
|
|
136
|
-
digest?: string;
|
|
137
|
-
mode: "baseline" | "overlay";
|
|
138
|
-
}
|
|
139
|
-
export interface InstancePaths {
|
|
140
|
-
instanceDir: string;
|
|
141
|
-
agentHome: string;
|
|
142
|
-
primaryConfig?: string;
|
|
143
|
-
secretEnv?: string;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Entry in core.json:runtime_catalog.<agentType>. Catalog-level defaults captured at
|
|
147
|
-
* install time. `defaultImageDigest` is the digest captured by
|
|
148
|
-
* setup-manager.installHermes() per §32.1 so the HermesAdapter.buildRuntime()
|
|
149
|
-
* can pin the image by digest (preferred) instead of the mutable tag.
|
|
150
|
-
*/
|
|
151
|
-
export interface RuntimeCatalogEntry {
|
|
95
|
+
export interface IntegrationRuntimeEntry {
|
|
152
96
|
defaultImage: string;
|
|
153
97
|
defaultImageDigest?: string;
|
|
154
98
|
shimPath?: string;
|
|
@@ -157,426 +101,3 @@ export interface RuntimeCatalogEntry {
|
|
|
157
101
|
resources: RuntimeResources;
|
|
158
102
|
allowDockerSock?: boolean;
|
|
159
103
|
}
|
|
160
|
-
export interface CreateInstanceContext {
|
|
161
|
-
instanceId: string;
|
|
162
|
-
name: string;
|
|
163
|
-
description?: string;
|
|
164
|
-
}
|
|
165
|
-
export type JsonConfigDocument = {
|
|
166
|
-
format: "json";
|
|
167
|
-
content: Record<string, any>;
|
|
168
|
-
};
|
|
169
|
-
export type YamlEnvConfigDocument = {
|
|
170
|
-
format: "yaml+env";
|
|
171
|
-
yaml: string;
|
|
172
|
-
env: string;
|
|
173
|
-
/**
|
|
174
|
-
* Optional JishuShell meta block persisted alongside yaml/env. Mirrors
|
|
175
|
-
* the `x-jishushell` key OpenClaw stores inside its JSON config — for
|
|
176
|
-
* Hermes and other yaml+env runtimes, this block lives on instance.json
|
|
177
|
-
* but rides through the same ConfigDocument shape so the frontend can
|
|
178
|
-
* edit per-instance upstream provider config (provider id, baseUrl,
|
|
179
|
-
* API key, models) without learning runtime-specific storage paths.
|
|
180
|
-
*
|
|
181
|
-
* When the adapter's `writeConfig` sees this field, it delegates to the
|
|
182
|
-
* shared llm-proxy `saveInstanceConfig` flow so API key encryption,
|
|
183
|
-
* provider.env persistence, and cache invalidation stay in one place.
|
|
184
|
-
*/
|
|
185
|
-
"x-jishushell"?: Record<string, any>;
|
|
186
|
-
};
|
|
187
|
-
export type ConfigDocument = JsonConfigDocument | YamlEnvConfigDocument;
|
|
188
|
-
export interface InstanceConfigMeta {
|
|
189
|
-
agentType: AgentType;
|
|
190
|
-
format: ConfigDocument["format"];
|
|
191
|
-
schemaId: string;
|
|
192
|
-
capabilities: CapabilityProfile;
|
|
193
|
-
secretFields: string[];
|
|
194
|
-
runtimeVersion: RuntimeVersionInfo;
|
|
195
|
-
}
|
|
196
|
-
export interface PairingApproveInput {
|
|
197
|
-
channel: string;
|
|
198
|
-
code: string;
|
|
199
|
-
notify?: boolean;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Input shape handed to `RuntimeAdapter.createInstance()` from route / CLI layer.
|
|
203
|
-
* Framework-level fields only — agent-specific extras live inside `extras` so
|
|
204
|
-
* the core layer never special-cases by kind.
|
|
205
|
-
*/
|
|
206
|
-
export interface CreateInstanceArgs {
|
|
207
|
-
instanceId: string;
|
|
208
|
-
name: string;
|
|
209
|
-
description: string;
|
|
210
|
-
cloneFrom?: string;
|
|
211
|
-
agentHome?: string;
|
|
212
|
-
cloneOptions?: {
|
|
213
|
-
include_sessions?: boolean;
|
|
214
|
-
include_memory?: boolean;
|
|
215
|
-
};
|
|
216
|
-
appSpec?: any;
|
|
217
|
-
extras?: Record<string, any>;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Declarative metadata that describes a runtime without requiring any runtime
|
|
221
|
-
* code from the framework. Exposed via `GET /api/runtime/catalog` to drive
|
|
222
|
-
* frontend cards / create-forms / install wizards (§32.2.2).
|
|
223
|
-
*
|
|
224
|
-
* All fields are OPTIONAL in MVP so existing adapters can land incrementally.
|
|
225
|
-
*/
|
|
226
|
-
export interface AdapterManifest {
|
|
227
|
-
agentType: AgentType;
|
|
228
|
-
displayName: string;
|
|
229
|
-
description: string;
|
|
230
|
-
defaultCapabilities: CapabilityProfile;
|
|
231
|
-
defaultCatalogEntry?: Partial<RuntimeCatalogEntry>;
|
|
232
|
-
/** Declarative hint: does this runtime require Nomad + Docker driver? */
|
|
233
|
-
requiresNomadDocker?: boolean;
|
|
234
|
-
/** Approximate disk space (MB) required for install — surfaced in setup UI. */
|
|
235
|
-
diskSpaceMB?: number;
|
|
236
|
-
/** Provider presets the adapter wants to contribute to the UI picker. */
|
|
237
|
-
providerPresets?: Array<Record<string, any>>;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Cross-cutting lifecycle hooks. Framework calls these at well-defined
|
|
241
|
-
* points so adapters can extend behavior without forcing if/else branches
|
|
242
|
-
* into `instance-manager.ts` / `backup-manager.ts` / `routes/*`.
|
|
243
|
-
*
|
|
244
|
-
* All hooks are optional — adapters implement only what they need.
|
|
245
|
-
*/
|
|
246
|
-
export interface AdapterHooks {
|
|
247
|
-
/** Run immediately after instance.json is persisted on a fresh create. */
|
|
248
|
-
onCreate?(args: {
|
|
249
|
-
instanceId: string;
|
|
250
|
-
meta: Record<string, any>;
|
|
251
|
-
}): Promise<void>;
|
|
252
|
-
/** Run just before the instance directory is removed from disk.
|
|
253
|
-
* Return `{ warnings }` to surface non-fatal advisories (e.g. legacy
|
|
254
|
-
* `openclaw_home` pointing outside the instance dir). Returning void
|
|
255
|
-
* means "no warnings". */
|
|
256
|
-
onDelete?(args: {
|
|
257
|
-
instanceId: string;
|
|
258
|
-
meta: Record<string, any>;
|
|
259
|
-
}): Promise<void | {
|
|
260
|
-
warnings?: string[];
|
|
261
|
-
}>;
|
|
262
|
-
/** Run after a successful `writeConfig` — lets adapters auto-install
|
|
263
|
-
* channel plugins, enforce terminal.backend, etc. */
|
|
264
|
-
onConfigSaved?(args: {
|
|
265
|
-
instanceId: string;
|
|
266
|
-
oldConfig: unknown;
|
|
267
|
-
newConfig: unknown;
|
|
268
|
-
}): Promise<void>;
|
|
269
|
-
/** Run just before Nomad receives a job submission. Adapters can patch
|
|
270
|
-
* on-disk files, seed symlinks, or precompute secrets here. */
|
|
271
|
-
onBeforeStart?(args: {
|
|
272
|
-
instanceId: string;
|
|
273
|
-
}): Promise<void>;
|
|
274
|
-
/** Run after service control reports the instance as started. */
|
|
275
|
-
onAfterStart?(args: {
|
|
276
|
-
instanceId: string;
|
|
277
|
-
}): Promise<void>;
|
|
278
|
-
/** Run just before service control issues a stop. */
|
|
279
|
-
onBeforeStop?(args: {
|
|
280
|
-
instanceId: string;
|
|
281
|
-
}): Promise<void>;
|
|
282
|
-
/** Run when the core default LLM provider changes — adapters rewrite whatever
|
|
283
|
-
* file their runtime reads upstream credentials from. */
|
|
284
|
-
onUpstreamProviderChange?(args: {
|
|
285
|
-
instanceId: string;
|
|
286
|
-
upstream: Record<string, any>;
|
|
287
|
-
}): Promise<void>;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Full RuntimeAdapter contract — §32.2 / §32.8.
|
|
291
|
-
*
|
|
292
|
-
* All new methods below the "MVP core" block are OPTIONAL so HermesAdapter
|
|
293
|
-
* (which predates §32.8) continues to work. OpenClawAdapter implements the
|
|
294
|
-
* full surface, enabling framework code to dispatch uniformly instead of
|
|
295
|
-
* branching on `agentType === "hermes"`.
|
|
296
|
-
*/
|
|
297
|
-
export interface RuntimeAdapter {
|
|
298
|
-
readonly agentType: AgentType;
|
|
299
|
-
readonly displayName: string;
|
|
300
|
-
readonly defaultCapabilities: CapabilityProfile;
|
|
301
|
-
readonly manifest?: AdapterManifest;
|
|
302
|
-
readonly hooks?: AdapterHooks;
|
|
303
|
-
/**
|
|
304
|
-
* Default port the framework uses as a fallback when an instance's
|
|
305
|
-
* persisted runtime spec has no host port recorded. Adapters declare
|
|
306
|
-
* their canonical base port here (OpenClaw 18789, Hermes 8642).
|
|
307
|
-
*/
|
|
308
|
-
readonly defaultGatewayPort?: number;
|
|
309
|
-
createInitialLayout(ctx: CreateInstanceContext): Promise<InstancePaths>;
|
|
310
|
-
buildRuntime(instanceId: string): Promise<RuntimeSpec>;
|
|
311
|
-
getRuntimeVersion(instanceId: string): Promise<RuntimeVersionInfo>;
|
|
312
|
-
getConfigMeta(instanceId: string): Promise<InstanceConfigMeta>;
|
|
313
|
-
readConfig(instanceId: string): Promise<ConfigDocument>;
|
|
314
|
-
writeConfig(instanceId: string, doc: ConfigDocument): Promise<ConfigDocument>;
|
|
315
|
-
buildPairingListCommand(instanceId: string): Promise<string[]>;
|
|
316
|
-
buildPairingApproveCommand(instanceId: string, input: PairingApproveInput): Promise<string[]>;
|
|
317
|
-
/**
|
|
318
|
-
* Create a new instance end-to-end: filesystem layout + port allocation +
|
|
319
|
-
* persist instance.json + seed proxy token. Returns the fully-populated
|
|
320
|
-
* meta that framework code passes back to the HTTP route layer.
|
|
321
|
-
*
|
|
322
|
-
* Optional for backward compat: adapters that do not implement this will
|
|
323
|
-
* fall back to the legacy `instance-manager.createInstance()` path.
|
|
324
|
-
*/
|
|
325
|
-
createInstance?(args: CreateInstanceArgs): Promise<Record<string, any>>;
|
|
326
|
-
/**
|
|
327
|
-
* Read the runtime's raw native configuration object. For OpenClaw this
|
|
328
|
-
* is the parsed `openclaw.json` body; for Hermes it is a synthetic stub
|
|
329
|
-
* containing only the `x-jishushell` upstream metadata block.
|
|
330
|
-
*
|
|
331
|
-
* Used by LLM proxy, backup manager, and other framework code that needs
|
|
332
|
-
* to inspect the merged config without going through the typed
|
|
333
|
-
* `readConfig()` wrapper. Returns null if no config is available.
|
|
334
|
-
*/
|
|
335
|
-
getNativeConfig?(instanceId: string): Record<string, any> | null;
|
|
336
|
-
/**
|
|
337
|
-
* Read the stored native configuration including backend-managed fields
|
|
338
|
-
* (plugin installs, channel credentials, weixin accounts) that would be
|
|
339
|
-
* filtered out of the typed `readConfig()` editor view. Used by flows
|
|
340
|
-
* that round-trip the full config to disk.
|
|
341
|
-
*/
|
|
342
|
-
getStoredNativeConfig?(instanceId: string): Record<string, any> | null;
|
|
343
|
-
/**
|
|
344
|
-
* Persist a raw native configuration object. For OpenClaw this drives
|
|
345
|
-
* the full `saveConfig` pipeline (channel plugin auto-install, env file
|
|
346
|
-
* key rewrites, x-jishushell propagation). Returns true on success.
|
|
347
|
-
*
|
|
348
|
-
* Framework callers (`instance-manager.saveConfig`) always `await` the
|
|
349
|
-
* result, so async implementations get proper success/failure signalling.
|
|
350
|
-
* Synchronous implementations are transparently supported.
|
|
351
|
-
*/
|
|
352
|
-
saveNativeConfig?(instanceId: string, config: Record<string, any>): boolean | Promise<boolean>;
|
|
353
|
-
/**
|
|
354
|
-
* Install a channel-specific plugin into the running instance. Returns
|
|
355
|
-
* once install is complete. Throws on fatal error. OpenClaw-specific;
|
|
356
|
-
* other adapters can leave unimplemented or throw "not supported".
|
|
357
|
-
*/
|
|
358
|
-
installChannelPlugin?(instanceId: string, channelId: string): Promise<void>;
|
|
359
|
-
/** Report whether a channel plugin is already installed. */
|
|
360
|
-
isChannelPluginInstalled?(instanceId: string, channelId: string): boolean;
|
|
361
|
-
/** Channel-id → npm package map for auto-install decisions. */
|
|
362
|
-
readonly channelPluginMap?: Record<string, string>;
|
|
363
|
-
/**
|
|
364
|
-
* Save Feishu/Lark OAuth credentials into the instance's native config.
|
|
365
|
-
* OpenClaw-specific; other adapters can leave unimplemented.
|
|
366
|
-
*/
|
|
367
|
-
saveFeishuCredentials?(instanceId: string, creds: {
|
|
368
|
-
appId: string;
|
|
369
|
-
appSecret: string;
|
|
370
|
-
domain: string;
|
|
371
|
-
channelKey?: string;
|
|
372
|
-
}): void;
|
|
373
|
-
/** Save WeChat bot login credentials + register the account. */
|
|
374
|
-
saveWeixinCredentials?(instanceId: string, creds: {
|
|
375
|
-
accountId: string;
|
|
376
|
-
token: string;
|
|
377
|
-
baseUrl: string;
|
|
378
|
-
userId: string;
|
|
379
|
-
}): void;
|
|
380
|
-
/** Read the list of connected WeChat accounts for an instance. */
|
|
381
|
-
getWeixinAccounts?(instanceId: string): Array<{
|
|
382
|
-
accountId: string;
|
|
383
|
-
userId?: string;
|
|
384
|
-
savedAt?: string;
|
|
385
|
-
}>;
|
|
386
|
-
/** Return the list of other instance IDs that share this one's agent-home. */
|
|
387
|
-
findInstancesSharingHome?(instanceId: string): string[];
|
|
388
|
-
/**
|
|
389
|
-
* Translate a flat env map (`{SEARCH_API_BASE_URL, OPENAI_API_BASE_URL,
|
|
390
|
-
* MCP_SERVERS, ...}`) — produced by `connection-resolver` from the
|
|
391
|
-
* user's persisted bindings — into adapter-native config writes
|
|
392
|
-
* (Hermes' `mcp_servers` in config.yaml, OpenClaw's
|
|
393
|
-
* `plugins.entries.searxng.config.webSearch.baseUrl` in openclaw.json,
|
|
394
|
-
* etc.). Called both at PUT /connections time AND on every instance
|
|
395
|
-
* start (PR 9 phaseRefreshConnections), so host IP changes /
|
|
396
|
-
* provider redeployments propagate without a manual re-bind.
|
|
397
|
-
*
|
|
398
|
-
* Adapters are free to no-op for env keys they don't recognize.
|
|
399
|
-
* Failures should be logged but NOT thrown — start should proceed
|
|
400
|
-
* with whatever config is on disk.
|
|
401
|
-
*/
|
|
402
|
-
applyConnectionEnv?(instanceId: string, env: Record<string, string>): Promise<void>;
|
|
403
|
-
/** Resolve the canonical agent binary path (OpenClaw only). */
|
|
404
|
-
resolveBin?(): string;
|
|
405
|
-
/** Resolve the instance's on-disk config file path. */
|
|
406
|
-
resolveConfigPath?(instanceId: string): string;
|
|
407
|
-
/** Resolve the legacy (pre-state-dir) config file path if applicable. */
|
|
408
|
-
resolveLegacyConfigPath?(instanceId: string): string;
|
|
409
|
-
/** Resolve the agent-home directory for an instance (not the instance dir). */
|
|
410
|
-
resolveAgentHome?(instanceId: string): string;
|
|
411
|
-
/**
|
|
412
|
-
* Build the env var set the adapter's native CLI expects when run as
|
|
413
|
-
* a subprocess (e.g. for backup/restore via `openclaw backup create`).
|
|
414
|
-
* Used by backup-manager so it doesn't hardcode `OPENCLAW_HOME`.
|
|
415
|
-
*/
|
|
416
|
-
buildCliEnv?(instanceId: string): Record<string, string>;
|
|
417
|
-
/**
|
|
418
|
-
* Read the gateway port out of a raw runtime record — used as a
|
|
419
|
-
* back-compat fallback when `RuntimeSpec.ports[]` is empty (legacy
|
|
420
|
-
* OpenClaw instances still persist their port in `runtime.env`).
|
|
421
|
-
*/
|
|
422
|
-
readLegacyGatewayPort?(runtime: Record<string, any>): number | null;
|
|
423
|
-
/**
|
|
424
|
-
* Rewrite a runtime spec in place to target a new host port. Called
|
|
425
|
-
* by `reallocateGatewayPort` when the previously-assigned port is
|
|
426
|
-
* busy at start time — each adapter knows how to express the change
|
|
427
|
-
* in its own runtime shape (args, env, ports[], etc.).
|
|
428
|
-
*/
|
|
429
|
-
reallocateRuntimePort?(runtime: Record<string, any>, newPort: number): void;
|
|
430
|
-
/**
|
|
431
|
-
* Job name prefix for Nomad submissions. Framework reads this via
|
|
432
|
-
* `getAdapter(agentType).nomadJobPrefix` so nomad-manager doesn't hardcode
|
|
433
|
-
* per-runtime prefixes.
|
|
434
|
-
*/
|
|
435
|
-
readonly nomadJobPrefix?: string;
|
|
436
|
-
/**
|
|
437
|
-
* Nomad task name inside the TaskGroup. Framework code (nomad-manager.ts)
|
|
438
|
-
* reads allocation state, stats, and log streams keyed by this name.
|
|
439
|
-
* Default "gateway" — an adapter can override if its buildNomadTask()
|
|
440
|
-
* returns a different `Name`.
|
|
441
|
-
*/
|
|
442
|
-
readonly nomadTaskName?: string;
|
|
443
|
-
/**
|
|
444
|
-
* Whether this adapter's runtime install is **required** for overall
|
|
445
|
-
* panel readiness. When true, a failed install in `runFullSetup` aborts
|
|
446
|
-
* the whole setup (core.json not written as complete). When false (the
|
|
447
|
-
* default), install failures are downgraded to warning-level step
|
|
448
|
-
* results — the panel still completes setup and the user can install
|
|
449
|
-
* this agent later from the wizard.
|
|
450
|
-
*
|
|
451
|
-
* Only `openclaw` is required today (it is the default/core runtime).
|
|
452
|
-
* Third-party agents should leave this unset so upgrade paths don't
|
|
453
|
-
* break when their image registry is unreachable.
|
|
454
|
-
*/
|
|
455
|
-
readonly required?: boolean;
|
|
456
|
-
/**
|
|
457
|
-
* Suffix appended to `nomad/jobs/<jid>/` for the adapter's per-instance
|
|
458
|
-
* secret storage (e.g. "openclaw/gateway"). When undefined, nomad-manager
|
|
459
|
-
* skips all Variable writes for this adapter — adapters that do not use
|
|
460
|
-
* Nomad Variables (no Template interpolation) should leave it unset.
|
|
461
|
-
*
|
|
462
|
-
* The value must match the path referenced by the adapter's own
|
|
463
|
-
* `buildNomadTask()` Templates so the template interpolation resolves.
|
|
464
|
-
*/
|
|
465
|
-
readonly nomadVariablePath?: string;
|
|
466
|
-
/**
|
|
467
|
-
* Build the Nomad task definition for this instance. Called by
|
|
468
|
-
* `nomad-manager.buildJob()` at start time. Lets adapters fully own how
|
|
469
|
-
* their RuntimeSpec maps onto a Nomad docker/raw_exec task (volumes,
|
|
470
|
-
* templates, cap_drop profile, etc.) without nomad-manager knowing the
|
|
471
|
-
* runtime kind. Name of the task becomes the Nomad task group's Name.
|
|
472
|
-
*/
|
|
473
|
-
buildNomadTask?(instanceId: string): Promise<Record<string, any>>;
|
|
474
|
-
/**
|
|
475
|
-
* Framework → adapter delete hook. Lets the adapter decide whether to
|
|
476
|
-
* preserve a custom agent-home directory when the instance is removed.
|
|
477
|
-
* Returns a list of warnings surfaced to the caller.
|
|
478
|
-
*/
|
|
479
|
-
onDelete?(args: {
|
|
480
|
-
instanceId: string;
|
|
481
|
-
meta: Record<string, any>;
|
|
482
|
-
}): Promise<string[]>;
|
|
483
|
-
/**
|
|
484
|
-
* Install the runtime binaries / docker images / shim templates required
|
|
485
|
-
* to launch this agent. Called by `setup-manager.install<Kind>()` via
|
|
486
|
-
* adapter dispatch. Returns an InstallResult-shaped object; the framework
|
|
487
|
-
* layer is agnostic to the exact shape so we stay typed as `any` to
|
|
488
|
-
* avoid a cross-module dependency back into setup-manager types.
|
|
489
|
-
*/
|
|
490
|
-
installRuntime?(opts?: Record<string, any>): Promise<any>;
|
|
491
|
-
/**
|
|
492
|
-
* Non-blocking variant: returns immediately with a task id the caller
|
|
493
|
-
* can poll via `/api/setup/tasks/:id` SSE. Adapters implement this when
|
|
494
|
-
* their install takes long enough that the HTTP layer wants to avoid
|
|
495
|
-
* holding the connection open (Hermes image pull, OpenClaw docker build).
|
|
496
|
-
*/
|
|
497
|
-
startInstallRuntime?(opts?: Record<string, any>): any;
|
|
498
|
-
/**
|
|
499
|
-
* Build the runtime's docker image (OpenClaw only — baked base image
|
|
500
|
-
* shared across all OpenClaw instances). Non-OpenClaw adapters may leave
|
|
501
|
-
* this unimplemented.
|
|
502
|
-
*/
|
|
503
|
-
buildRuntimeImage?(opts?: Record<string, any>): Promise<any>;
|
|
504
|
-
/**
|
|
505
|
-
* Non-blocking variant of `buildRuntimeImage`.
|
|
506
|
-
*/
|
|
507
|
-
startBuildRuntimeImage?(opts?: Record<string, any>): any;
|
|
508
|
-
/**
|
|
509
|
-
* One-shot, panel-level migration invoked at server startup. Adapters
|
|
510
|
-
* use this to rewrite stale core.json catalog entries (mutable image
|
|
511
|
-
* tags → digest-pinned tags) or perform similar self-repair that has
|
|
512
|
-
* to happen before instances start. Must be idempotent and silent on
|
|
513
|
-
* no-op. The framework runs all registered adapters' migrations via
|
|
514
|
-
* `runStartupMigrations()` so `server.ts` never imports an adapter.
|
|
515
|
-
*/
|
|
516
|
-
migrateStartup?(): void | Promise<void>;
|
|
517
|
-
/**
|
|
518
|
-
* Report whether this adapter's runtime is ready to spawn instances. The
|
|
519
|
-
* framework uses this to (a) gate the NewInstance UI, (b) render the
|
|
520
|
-
* per-agent row in the Setup wizard, and (c) decide whether `runFullSetup`
|
|
521
|
-
* should invoke `buildRuntimeImage`/`installRuntime` for this agent.
|
|
522
|
-
*
|
|
523
|
-
* Shape is intentionally minimal and adapter-agnostic:
|
|
524
|
-
* - installed: everything required to start an instance is present
|
|
525
|
-
* - imageReady: the docker image (if any) is local or pinned
|
|
526
|
-
* - version: free-form version string for the Setup UI label
|
|
527
|
-
* - digest: pinned image digest (when available)
|
|
528
|
-
*
|
|
529
|
-
* Implementations should be synchronous or fast-async (no network). They
|
|
530
|
-
* are called from the status endpoint that the Setup wizard polls.
|
|
531
|
-
*/
|
|
532
|
-
getInstallStatus?(): {
|
|
533
|
-
installed: boolean;
|
|
534
|
-
imageReady: boolean;
|
|
535
|
-
version?: string;
|
|
536
|
-
digest?: string;
|
|
537
|
-
} | Promise<{
|
|
538
|
-
installed: boolean;
|
|
539
|
-
imageReady: boolean;
|
|
540
|
-
version?: string;
|
|
541
|
-
digest?: string;
|
|
542
|
-
}>;
|
|
543
|
-
/**
|
|
544
|
-
* Declarative descriptor for the shared inline-chat forwarder route
|
|
545
|
-
* `POST /api/instances/:id/agent/chat`. Adapters that declare
|
|
546
|
-
* `capabilities.gateway.chatPanel === "inline"` set this so the
|
|
547
|
-
* framework-owned route can dispatch without hardcoding Hermes-specific
|
|
548
|
-
* env var names or endpoint paths.
|
|
549
|
-
*
|
|
550
|
-
* Omit this field (or leave chatPanel !== "inline") and the route
|
|
551
|
-
* returns HTTP 400 for this runtime.
|
|
552
|
-
*/
|
|
553
|
-
readonly inlineChatDescriptor?: InlineChatDescriptor;
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* Per-adapter configuration for the shared inline-chat HTTP forwarder.
|
|
557
|
-
* Declarative so a new agent with an OpenAI-compat HTTP endpoint can
|
|
558
|
-
* plug in without touching `routes/instances.ts`.
|
|
559
|
-
*/
|
|
560
|
-
export interface InlineChatDescriptor {
|
|
561
|
-
/**
|
|
562
|
-
* Name of the env var (inside the instance's secretEnv file) that holds
|
|
563
|
-
* the bearer/auth token for the agent's own chat endpoint. Hermes uses
|
|
564
|
-
* `API_SERVER_KEY`; third-party agents declare their own name.
|
|
565
|
-
*/
|
|
566
|
-
apiKeyEnvVar: string;
|
|
567
|
-
/**
|
|
568
|
-
* URL path appended to `http://127.0.0.1:<gatewayHostPort>` for the chat
|
|
569
|
-
* endpoint. Default: `/v1/chat/completions`.
|
|
570
|
-
*/
|
|
571
|
-
endpointPath?: string;
|
|
572
|
-
/** Auth header name. Default `Authorization`. */
|
|
573
|
-
authHeader?: string;
|
|
574
|
-
/** Prefix applied before the key in the header. Default `Bearer `. */
|
|
575
|
-
authScheme?: string;
|
|
576
|
-
/**
|
|
577
|
-
* Upstream response timeout in milliseconds. Default 120_000. Agents that
|
|
578
|
-
* run expensive tool loops can raise this; simple chat endpoints can
|
|
579
|
-
* tighten it.
|
|
580
|
-
*/
|
|
581
|
-
timeoutMs?: number;
|
|
582
|
-
}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runtime adapter types — §32.2 full decoupling contract.
|
|
3
|
-
*
|
|
4
|
-
* Goal: adding a new agent = 1 new file in `runtime/adapters/` + 1 import in
|
|
5
|
-
* `runtime/index.ts`. Core files (instance-manager / nomad-manager /
|
|
6
|
-
* setup-manager / routes / llm-proxy) never mention specific agent kinds.
|
|
7
|
-
*
|
|
8
|
-
* - Field names use camelCase; on-wire JSON matches the type exactly.
|
|
9
|
-
* - Legacy OpenClaw path remains wired through `instance-manager` helpers,
|
|
10
|
-
* but the control flow now enters through `OpenClawAdapter` methods so
|
|
11
|
-
* framework code dispatches via `getAdapter(agentType)` uniformly.
|
|
12
|
-
*/
|
|
13
1
|
export {};
|
|
14
2
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/runtime/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/runtime/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AppSpec } from "../../types.js";
|
|
2
|
+
import type { RuntimeSpec } from "./types.js";
|
|
3
|
+
import type { RuntimeContribution } from "./workload-types.js";
|
|
4
|
+
export interface WorkloadCompilerInput {
|
|
5
|
+
instanceId: string;
|
|
6
|
+
jobId?: string;
|
|
7
|
+
groupName: string;
|
|
8
|
+
spec: AppSpec;
|
|
9
|
+
extraEnv?: Record<string, string>;
|
|
10
|
+
runtimeByTaskName?: Record<string, RuntimeSpec | undefined>;
|
|
11
|
+
contribution?: RuntimeContribution;
|
|
12
|
+
}
|
|
13
|
+
export interface CompiledWorkload {
|
|
14
|
+
jobId: string;
|
|
15
|
+
nomadJob: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
export declare function compileWorkload(input: WorkloadCompilerInput): CompiledWorkload;
|