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
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { LlmProvider } from "./services/llm-proxy/providers.js";
|
|
2
|
+
import type { CapabilityInterface, CapabilityKind } from "./services/capabilities/contract.js";
|
|
2
3
|
export interface InstanceStatus {
|
|
4
|
+
/**
|
|
5
|
+
* Raw runtime/backend status. Runtime drivers may use backend-specific
|
|
6
|
+
* strings here; product status must be translated into AppInstanceStatus
|
|
7
|
+
* before persistence.
|
|
8
|
+
*/
|
|
3
9
|
status: "running" | "pending" | "stopped" | "failed" | string;
|
|
4
10
|
pid: number | null;
|
|
5
11
|
uptime: number | null;
|
|
@@ -12,20 +18,20 @@ export interface ServiceResult {
|
|
|
12
18
|
warning?: string;
|
|
13
19
|
pid?: number;
|
|
14
20
|
/**
|
|
15
|
-
*
|
|
21
|
+
* Lifecycle start/restart: tag identifying which phase of the start pipeline
|
|
16
22
|
* produced the error. Present on every error result returned by
|
|
17
|
-
*
|
|
23
|
+
* the Nomad driver's start operation so callers (routes, tests, logs) can
|
|
18
24
|
* distinguish where the failure happened.
|
|
19
25
|
*/
|
|
20
|
-
phase?: "running_check" | "home_conflict" | "port_alloc" | "pre_start_hook" | "submit";
|
|
21
|
-
/**
|
|
26
|
+
phase?: "running_check" | "home_conflict" | "port_alloc" | "pre_start_hook" | "submit" | "start.waitReady" | "restart.waitReady" | "restart.waitStop" | "stop.waitStop";
|
|
27
|
+
/** Integration signaled an async background build; poll taskId for progress. */
|
|
22
28
|
building?: boolean;
|
|
23
29
|
taskId?: string;
|
|
24
30
|
/** Nomad alloc ID returned by waitForRunning / restartInstance. */
|
|
25
31
|
alloc_id?: string;
|
|
26
32
|
/** Nomad eval ID returned by submitJob. */
|
|
27
33
|
eval_id?: string;
|
|
28
|
-
/** Port allocation metadata
|
|
34
|
+
/** Port allocation metadata returned by the Nomad runtime driver. */
|
|
29
35
|
port_allocation?: unknown;
|
|
30
36
|
/**
|
|
31
37
|
* Stable error code for callers that prefer machine-readable tags over
|
|
@@ -39,21 +45,25 @@ export interface ExecResult {
|
|
|
39
45
|
stderr: string;
|
|
40
46
|
exitCode: number;
|
|
41
47
|
}
|
|
48
|
+
export interface ExecOptions {
|
|
49
|
+
timeoutMs?: number;
|
|
50
|
+
user?: string;
|
|
51
|
+
}
|
|
42
52
|
export interface ServiceManager {
|
|
43
53
|
getStatus(id: string): Promise<InstanceStatus>;
|
|
44
|
-
startInstance(id: string): Promise<ServiceResult>;
|
|
45
|
-
stopInstance(id: string, purge?: boolean): Promise<ServiceResult>;
|
|
46
|
-
restartInstance(id: string): Promise<ServiceResult>;
|
|
47
54
|
getLogs(id: string, lines?: number, logType?: string): Promise<string[]> | string[];
|
|
48
55
|
/** Run a command inside the running instance (docker exec or direct exec). */
|
|
49
|
-
exec(id: string, command: string[], timeoutMs?: number): Promise<ExecResult>;
|
|
56
|
+
exec(id: string, command: string[], timeoutMs?: number, options?: ExecOptions): Promise<ExecResult>;
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
59
|
+
* Integration runtime installation record stored in the historical
|
|
60
|
+
* `core.json.runtime_catalog.<kind>` field.
|
|
61
|
+
*
|
|
62
|
+
* The on-disk key intentionally remains `runtime_catalog` for upgrade
|
|
63
|
+
* compatibility. New code should treat the value as integration-owned setup
|
|
64
|
+
* state, not as instance runtime truth or a public catalog.
|
|
55
65
|
*/
|
|
56
|
-
export interface
|
|
66
|
+
export interface IntegrationRuntimeEntry {
|
|
57
67
|
defaultImage: string;
|
|
58
68
|
defaultImageDigest?: string;
|
|
59
69
|
shimPath?: string;
|
|
@@ -66,23 +76,23 @@ export interface RuntimeCatalogEntry {
|
|
|
66
76
|
};
|
|
67
77
|
allowDockerSock?: boolean;
|
|
68
78
|
}
|
|
69
|
-
export interface
|
|
70
|
-
openclaw?:
|
|
71
|
-
hermes?:
|
|
72
|
-
[
|
|
79
|
+
export interface IntegrationRuntimeRegistry {
|
|
80
|
+
openclaw?: IntegrationRuntimeEntry;
|
|
81
|
+
hermes?: IntegrationRuntimeEntry;
|
|
82
|
+
[kind: string]: IntegrationRuntimeEntry | undefined;
|
|
73
83
|
}
|
|
74
84
|
export interface CoreConfig {
|
|
75
85
|
service_manager?: "process" | "nomad";
|
|
76
86
|
nomad_driver?: "docker";
|
|
77
87
|
nomad_token?: string;
|
|
78
88
|
allowed_origins?: string[];
|
|
79
|
-
/**
|
|
80
|
-
runtime_catalog?:
|
|
89
|
+
/** Historical persisted key for integration runtime installation records. */
|
|
90
|
+
runtime_catalog?: IntegrationRuntimeRegistry;
|
|
81
91
|
/**
|
|
82
92
|
* Version of the `runtime_catalog` schema this core.json was last written
|
|
83
93
|
* against. Core code advertises the highest version it understands via
|
|
84
|
-
* `
|
|
85
|
-
* core) triggers a startup warning and disables
|
|
94
|
+
* `CURRENT_INTEGRATION_RUNTIME_SCHEMA_VERSION`; a newer value here (written
|
|
95
|
+
* by a newer core) triggers a startup warning and disables mutations so a
|
|
86
96
|
* downgraded core cannot silently corrupt structure it doesn't recognize.
|
|
87
97
|
*/
|
|
88
98
|
runtime_catalog_schema_version?: number;
|
|
@@ -180,6 +190,14 @@ export interface AppTaskVolume {
|
|
|
180
190
|
target: string;
|
|
181
191
|
readonly?: boolean;
|
|
182
192
|
}
|
|
193
|
+
export interface AppStorageSpec {
|
|
194
|
+
class: "managed" | "data" | "cache";
|
|
195
|
+
}
|
|
196
|
+
export interface AppTaskMount {
|
|
197
|
+
storage: string;
|
|
198
|
+
target: string;
|
|
199
|
+
readonly?: boolean;
|
|
200
|
+
}
|
|
183
201
|
export interface AppTask {
|
|
184
202
|
name: string;
|
|
185
203
|
role?: AppTaskRole;
|
|
@@ -195,13 +213,15 @@ export interface AppTask {
|
|
|
195
213
|
after?: string[];
|
|
196
214
|
/** Volumes: string format "src:dest[:ro]" or object { source, target, readonly? } */
|
|
197
215
|
volumes?: Array<string | AppTaskVolume>;
|
|
216
|
+
/** Canonical storage mount contract from docs/core-app-architecture.md. */
|
|
217
|
+
mounts?: AppTaskMount[];
|
|
198
218
|
/**
|
|
199
219
|
* Container task user spec. Format: "uid:gid" (numeric) or "uid". Special
|
|
200
220
|
* value "host" resolves to the panel process's `process.getuid()`:`getgid()`
|
|
201
221
|
* at job-build time — keeps bind-mounted data dirs writable by the panel
|
|
202
222
|
* user (typically `pi`) without forcing the container to run as root and
|
|
203
223
|
* without needing `chown`/`CAP_DAC_OVERRIDE` gymnastics. Mirrors how the
|
|
204
|
-
*
|
|
224
|
+
* Hermes / OpenClaw integrations set `User`. When omitted on container tasks
|
|
205
225
|
* the unified builder falls back to "host" by default.
|
|
206
226
|
*/
|
|
207
227
|
user?: string;
|
|
@@ -247,15 +267,67 @@ export interface ProvideHealthSpec {
|
|
|
247
267
|
port?: number;
|
|
248
268
|
}
|
|
249
269
|
export interface AppProvide {
|
|
270
|
+
/**
|
|
271
|
+
* Provider-local capability id, e.g. "ollama" or "searxng".
|
|
272
|
+
* This is display/metadata for a provider's own capability entry; it is not
|
|
273
|
+
* a matching key and must not be treated as the LLM engine/provider kind.
|
|
274
|
+
*/
|
|
275
|
+
id?: string;
|
|
276
|
+
/**
|
|
277
|
+
* Stable capability key used in URLs, registry buckets, and exact requires.
|
|
278
|
+
* Concrete names such as `llm-ollama` match only the same capability. Use a
|
|
279
|
+
* category token in AppRequire.capability (`llm`, `search`, ...) when the
|
|
280
|
+
* consumer intentionally wants kind/interface contract matching.
|
|
281
|
+
*/
|
|
250
282
|
capability: string;
|
|
283
|
+
/**
|
|
284
|
+
* Fixed capability category. For category-token requires, Core matches this
|
|
285
|
+
* with `interface`; for concrete capability requires it is metadata only.
|
|
286
|
+
*/
|
|
287
|
+
kind?: CapabilityKind;
|
|
288
|
+
/**
|
|
289
|
+
* Wire protocol/format implemented by this provider, e.g.
|
|
290
|
+
* "openai-compatible" or "searxng-json". This prevents provider-brand
|
|
291
|
+
* strings from becoming protocol semantics.
|
|
292
|
+
*/
|
|
293
|
+
interface?: CapabilityInterface;
|
|
294
|
+
/**
|
|
295
|
+
* Optional LLM proxy provider hint (for example "ollama",
|
|
296
|
+
* "vllm", "sglang"). Only explicit values or known legacy capability names
|
|
297
|
+
* may produce this; provider-local `id` must not be promoted to providerKind.
|
|
298
|
+
*/
|
|
299
|
+
providerKind?: string;
|
|
251
300
|
/** Task that exposes this capability — required for resolveProvideEndpoint
|
|
252
301
|
* (§5.5) to pick the right port when an app has multiple service tasks. */
|
|
253
302
|
task?: string;
|
|
254
303
|
/** Optional port-name disambiguator when multiple ports share a number. */
|
|
255
304
|
portName?: string;
|
|
305
|
+
/**
|
|
306
|
+
* AppSpec-declared template port. Used only to identify the task port at
|
|
307
|
+
* install/spec-validation time. It is never a runtime hostPort fact source.
|
|
308
|
+
*/
|
|
256
309
|
port?: number;
|
|
310
|
+
/**
|
|
311
|
+
* Upstream path exposed for this capability. Kept top-level by design;
|
|
312
|
+
* endpoint currently carries only `portName` so there is one place for path
|
|
313
|
+
* semantics and no split endpoint/top-level protocol model.
|
|
314
|
+
*/
|
|
257
315
|
path?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Structured endpoint contract. Currently only `portName` is allowed:
|
|
318
|
+
* it selects the named runtime.ports[] entry for this concrete instance.
|
|
319
|
+
* The actual hostPort always comes from runtime.ports[].hostPort and must
|
|
320
|
+
* never be copied or inferred from AppSpec declared ports.
|
|
321
|
+
*/
|
|
322
|
+
endpoint?: {
|
|
323
|
+
portName?: string;
|
|
324
|
+
};
|
|
258
325
|
url?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Transport used by proxy/health/capability consumers. This remains a
|
|
328
|
+
* top-level provide field; do not add endpoint.protocol unless the whole
|
|
329
|
+
* schema is migrated intentionally.
|
|
330
|
+
*/
|
|
259
331
|
protocol?: "http" | "https" | "tcp" | "udp" | "ws" | "wss" | "sse" | "mcp" | "terminal" | (string & {});
|
|
260
332
|
visibility?: string;
|
|
261
333
|
description?: string;
|
|
@@ -268,7 +340,7 @@ export interface AppProvide {
|
|
|
268
340
|
* jishushell MCP firewall uses these fields verbatim — upstream
|
|
269
341
|
* `tools/list` descriptions are discarded — to prevent third-party
|
|
270
342
|
* packages from prompt-injecting the LLM via their own tool wording.
|
|
271
|
-
* When absent,
|
|
343
|
+
* When absent, integrations fall back to the legacy per-capability path
|
|
272
344
|
* (PR 7 in-tree shim or direct `npx <pkg>` wiring).
|
|
273
345
|
*/
|
|
274
346
|
tool_schema?: ToolSchema;
|
|
@@ -361,7 +433,19 @@ export interface ToolSchema {
|
|
|
361
433
|
wrap_outputs?: boolean;
|
|
362
434
|
}
|
|
363
435
|
export interface AppRequire {
|
|
436
|
+
/**
|
|
437
|
+
* Required capability selector. Category tokens (`llm`, `search`, ...)
|
|
438
|
+
* opt into kind/interface contract matching. Concrete names
|
|
439
|
+
* (`llm-ollama`, `search-searxng`) are exact-match requirements, even if
|
|
440
|
+
* kind/interface metadata is present for display.
|
|
441
|
+
*/
|
|
364
442
|
capability: string;
|
|
443
|
+
/** Consumer-local display slot; `inject_as` remains the env/config key for current integrations. */
|
|
444
|
+
slot?: string;
|
|
445
|
+
/** Structured capability category. Category-token requires match by kind + interface; concrete capability names stay exact. */
|
|
446
|
+
kind?: CapabilityKind;
|
|
447
|
+
/** Wire contract required by this consumer, e.g. "openai-compatible"; metadata only for exact capability requires. */
|
|
448
|
+
interface?: CapabilityInterface;
|
|
365
449
|
inject_as: string;
|
|
366
450
|
required?: boolean;
|
|
367
451
|
/**
|
|
@@ -376,14 +460,16 @@ export interface AppRequire {
|
|
|
376
460
|
* `x-jishushell.proxy.upstream` (OpenClaw / Hermes default); `"openai-env"`
|
|
377
461
|
* injects `OPENAI_API_BASE_URL` / `OPENAI_API_KEY` directly into runtime
|
|
378
462
|
* env (Open WebUI / generic OpenAI clients). Omit to fall back to the
|
|
379
|
-
*
|
|
463
|
+
* integration-type default.
|
|
380
464
|
*/
|
|
381
465
|
apply?: "proxy-upstream" | "openai-env";
|
|
382
466
|
}
|
|
383
467
|
/**
|
|
384
468
|
* Persisted binding state. Stored under `instance.json.connections[slot]`.
|
|
385
|
-
* `null` denotes user-explicit disconnect
|
|
386
|
-
* Missing slot = "never set"
|
|
469
|
+
* `null` denotes user-explicit disconnect.
|
|
470
|
+
* Missing slot = "never set". Runtime/start/status/proxy/capability paths must
|
|
471
|
+
* treat it as unbound; the only automatic provider selection is the
|
|
472
|
+
* create/install one-shot materialization that writes this canonical field.
|
|
387
473
|
*/
|
|
388
474
|
export interface InstanceConnectionSingle {
|
|
389
475
|
kind: "single";
|
|
@@ -456,8 +542,59 @@ export interface AppLifecycle {
|
|
|
456
542
|
/** Steps run after the Nomad job transitions to `running`. */
|
|
457
543
|
post_start?: AppLifecycleStep[];
|
|
458
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* Reference from a declarative AppSpec/AppInstance to a Core-owned native
|
|
547
|
+
* integration module.
|
|
548
|
+
*
|
|
549
|
+
* AppSpec describes how an app is installed, started, exposed, and wired to
|
|
550
|
+
* other apps. Most apps stop there.
|
|
551
|
+
*
|
|
552
|
+
* `integrations` is only for the cases where Core must also understand the
|
|
553
|
+
* app's private/native behavior: read or write its native config format,
|
|
554
|
+
* proxy a native chat API, manage plugins/models/documents, rewrite native
|
|
555
|
+
* connection files, or run app-specific backup/restore hooks.
|
|
556
|
+
*
|
|
557
|
+
* The value is a stable dispatch key (`kind`), not executable code. Core
|
|
558
|
+
* resolves it to an in-tree TypeScript module at runtime.
|
|
559
|
+
*/
|
|
560
|
+
export interface AppIntegrationRef {
|
|
561
|
+
/**
|
|
562
|
+
* Core-native integration dispatch key.
|
|
563
|
+
*
|
|
564
|
+
* Business meaning: "does Core need app-specific integration logic for this
|
|
565
|
+
* installed copy?" This is not the app definition id, not the instance id,
|
|
566
|
+
* and not clone lineage. Normal runtime/config/proxy code must dispatch
|
|
567
|
+
* app-private behavior from this field instead of guessing from app names or
|
|
568
|
+
* legacy `agentType`/`app_type` fields.
|
|
569
|
+
*/
|
|
570
|
+
kind: string;
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Declarative application definition.
|
|
574
|
+
*
|
|
575
|
+
* AppSpec is the common contract for every managed app in JishuShell:
|
|
576
|
+
* tasks, storage, lifecycle hooks, provides/requires, ports, and health.
|
|
577
|
+
* It is a template/recipe, not a runtime object and not a frontend enum.
|
|
578
|
+
*
|
|
579
|
+
* Install/create flows turn an AppSpec into:
|
|
580
|
+
* - `definition.yaml` / `resolved-spec.yaml` snapshots
|
|
581
|
+
* - `manifest.json` install metadata
|
|
582
|
+
* - `instance.json` runtime state (`AppInstance`)
|
|
583
|
+
*
|
|
584
|
+
* Apps that need Core-native business logic can additionally declare
|
|
585
|
+
* `integrations`, which point at Core-owned `AppIntegration` modules.
|
|
586
|
+
*/
|
|
459
587
|
export interface AppSpec {
|
|
460
588
|
id: string;
|
|
589
|
+
apiVersion?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Legacy AppSpec token source for old `${app_id}` / `${app.id}` templates.
|
|
592
|
+
*
|
|
593
|
+
* New AppSpecs should use `${instance.id}` directly in string fields. When
|
|
594
|
+
* this legacy field appears in imported/old specs, materializers may consume
|
|
595
|
+
* it only for path/string substitution. It is NOT instance identity and must
|
|
596
|
+
* never drive lifecycle, status, proxy, or port allocation.
|
|
597
|
+
*/
|
|
461
598
|
app_id?: string;
|
|
462
599
|
name?: string;
|
|
463
600
|
version?: string;
|
|
@@ -470,38 +607,187 @@ export interface AppSpec {
|
|
|
470
607
|
singleInstance?: boolean;
|
|
471
608
|
/** Custom prefix inserted before the numeric suffix for multi-instance naming. e.g. "inst" → ollama-inst1, ollama-inst2 */
|
|
472
609
|
instancePrefix?: string;
|
|
610
|
+
integrations?: AppIntegrationRef[];
|
|
611
|
+
storage?: Record<string, AppStorageSpec>;
|
|
473
612
|
tasks: AppTask[];
|
|
474
613
|
depends_on?: Record<string, AppDependsOnEntry>;
|
|
475
614
|
provides?: AppProvide[];
|
|
476
615
|
requires?: AppRequire[];
|
|
477
616
|
/**
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
* the
|
|
481
|
-
* compatibility with specs authored before the multi-runtime contract
|
|
482
|
-
* (§32.2).
|
|
483
|
-
*/
|
|
484
|
-
agentType?: string;
|
|
485
|
-
/**
|
|
486
|
-
* Runtime-scoped overlays the adapter applies during `createInstance()`.
|
|
487
|
-
* Plan §17 shape: `{ agentType?, defaults?, capabilities?, ... }`.
|
|
488
|
-
* Adapters are free to read extra keys (e.g. OpenClaw reads `skills` here).
|
|
617
|
+
* Integration-scoped native overlays consumed by Core-owned integration
|
|
618
|
+
* modules. Keep these keys declarative: AppSpec remains configuration,
|
|
619
|
+
* while the corresponding AppIntegration supplies executable behavior.
|
|
489
620
|
*/
|
|
490
621
|
runtime?: Record<string, any>;
|
|
491
622
|
lifecycle?: AppLifecycle;
|
|
492
|
-
/** OpenClaw runtime overlay; prefer `runtime` for new specs. */
|
|
493
|
-
openclaw?: Record<string, any>;
|
|
494
623
|
_engine?: Record<string, any>;
|
|
495
624
|
}
|
|
496
|
-
export
|
|
625
|
+
export type AppDefinition = AppSpec;
|
|
626
|
+
export type ResolvedAppSpec = AppSpec;
|
|
627
|
+
export interface AppDefinitionRef {
|
|
628
|
+
/**
|
|
629
|
+
* Template/builtin app identity.
|
|
630
|
+
*
|
|
631
|
+
* Business meaning: "what kind of app was used to create this instance?"
|
|
632
|
+
* This is not a concrete installed instance id. Multiple instances may share
|
|
633
|
+
* the same definition id.
|
|
634
|
+
*/
|
|
635
|
+
id: string;
|
|
636
|
+
version: string;
|
|
637
|
+
digest: string;
|
|
638
|
+
source?: string;
|
|
639
|
+
}
|
|
640
|
+
export interface AppInstanceOperation {
|
|
641
|
+
id: string;
|
|
642
|
+
type: "install" | "start" | "stop" | "restart" | "upgrade" | "repair" | "uninstall";
|
|
643
|
+
/**
|
|
644
|
+
* Phase of the current one-shot lifecycle operation.
|
|
645
|
+
*
|
|
646
|
+
* This is control-plane progress only. It answers "what step is Core
|
|
647
|
+
* currently driving?" and must never be used as the instance's long-lived
|
|
648
|
+
* runtime state.
|
|
649
|
+
*/
|
|
650
|
+
phase: string;
|
|
651
|
+
startedAt: string;
|
|
652
|
+
updatedAt: string;
|
|
653
|
+
}
|
|
654
|
+
export interface AppInstanceNeedsAttention {
|
|
655
|
+
code: string;
|
|
656
|
+
reason: string;
|
|
657
|
+
since: string;
|
|
658
|
+
command?: string;
|
|
659
|
+
}
|
|
660
|
+
export interface AppInstanceLastError {
|
|
661
|
+
operationId?: string;
|
|
662
|
+
phase?: string;
|
|
663
|
+
message: string;
|
|
664
|
+
at: string;
|
|
665
|
+
}
|
|
666
|
+
export interface AppInstanceStatus {
|
|
667
|
+
/**
|
|
668
|
+
* Core's most recently observed runtime state.
|
|
669
|
+
*
|
|
670
|
+
* Unlike `desiredState`, this is not user intent and not an optimistic
|
|
671
|
+
* submit result. It changes only after Core re-reads Nomad/runtime health
|
|
672
|
+
* and decides what is actually true now.
|
|
673
|
+
*
|
|
674
|
+
* `needs-migration` is a `failed` reason, not a phase:
|
|
675
|
+
* `{ phase: "failed", reason: "needs-migration" }`.
|
|
676
|
+
*/
|
|
677
|
+
phase: "stopped" | "starting" | "ready" | "failed" | "unknown";
|
|
678
|
+
reason: string;
|
|
679
|
+
message?: string;
|
|
680
|
+
lastObservedAt: string;
|
|
681
|
+
}
|
|
682
|
+
export interface AppInstancePaths {
|
|
683
|
+
/** Canonical directory containing the instance ledger and mutable state. */
|
|
684
|
+
instanceDir: string;
|
|
685
|
+
/** Integration-owned home/config root for integrations such as OpenClaw or Hermes. */
|
|
686
|
+
integrationHome: string;
|
|
687
|
+
primaryConfig?: string;
|
|
688
|
+
secretEnv?: string;
|
|
689
|
+
}
|
|
690
|
+
export interface AppInstance {
|
|
691
|
+
/**
|
|
692
|
+
* Concrete installed instance identity.
|
|
693
|
+
*
|
|
694
|
+
* Business meaning: "which installed copy is this?" This is the id used by
|
|
695
|
+
* lifecycle, runtime ports, status, proxy, connections, backup, and delete.
|
|
696
|
+
* Do not substitute `definition.id`, `derivedFromInstanceId`, or integration
|
|
697
|
+
* kind for this value.
|
|
698
|
+
*/
|
|
699
|
+
id: string;
|
|
700
|
+
/**
|
|
701
|
+
* Canonical concrete instance identifier.
|
|
702
|
+
*
|
|
703
|
+
* Duplicates `id` so downstream readers that work with structured metadata
|
|
704
|
+
* do not need to infer meaning from a generic field name.
|
|
705
|
+
*/
|
|
706
|
+
instanceId: string;
|
|
707
|
+
name?: string;
|
|
708
|
+
description?: string;
|
|
709
|
+
/**
|
|
710
|
+
* Canonical definition/template identifier used to create this instance.
|
|
711
|
+
*
|
|
712
|
+
* This is the stable template id, not a clone source and not a legacy
|
|
713
|
+
* identity mirror.
|
|
714
|
+
*/
|
|
715
|
+
definitionId: string;
|
|
716
|
+
/**
|
|
717
|
+
* Optional clone/source relationship.
|
|
718
|
+
*
|
|
719
|
+
* Only set when this instance was intentionally derived from another
|
|
720
|
+
* instance. It is not a dispatch key and must not be used as the instance's
|
|
721
|
+
* primary identity.
|
|
722
|
+
*/
|
|
723
|
+
derivedFromInstanceId?: string;
|
|
724
|
+
definition: AppDefinitionRef;
|
|
725
|
+
/**
|
|
726
|
+
* Native integration modules attached to this concrete instance.
|
|
727
|
+
*
|
|
728
|
+
* Persisted in `instance.json` so runtime, config, backup, chat, and other
|
|
729
|
+
* Core services can dispatch directly without reverse-engineering identity
|
|
730
|
+
* from spec ids, app names, or frontend enums.
|
|
731
|
+
*/
|
|
732
|
+
integrations?: AppIntegrationRef[];
|
|
733
|
+
/**
|
|
734
|
+
* Long-lived desired lifecycle intent set by the user/Core.
|
|
735
|
+
*
|
|
736
|
+
* `running` means "Core should keep trying to have this instance up".
|
|
737
|
+
* `stopped` means "Core should keep it down".
|
|
738
|
+
*
|
|
739
|
+
* This field does not say whether the instance is currently healthy.
|
|
740
|
+
* Observed truth lives in `status`.
|
|
741
|
+
*/
|
|
742
|
+
desiredState: "stopped" | "running";
|
|
743
|
+
status: AppInstanceStatus;
|
|
744
|
+
connections: InstanceConnections;
|
|
745
|
+
operation?: AppInstanceOperation;
|
|
746
|
+
needsAttention?: AppInstanceNeedsAttention;
|
|
747
|
+
lastError?: AppInstanceLastError;
|
|
748
|
+
createdAt: string;
|
|
749
|
+
updatedAt: string;
|
|
750
|
+
runtime: Record<string, any>;
|
|
751
|
+
/** Canonical integration filesystem locations. Do not add per-integration path aliases. */
|
|
752
|
+
paths?: AppInstancePaths;
|
|
753
|
+
/** Integration/proxy metadata shared with native config editors. */
|
|
754
|
+
"x-jishushell"?: Record<string, any>;
|
|
755
|
+
/** Rebuildable runtime environment materialized from `connections`. */
|
|
756
|
+
"connections-env"?: Record<string, string>;
|
|
757
|
+
/** User-owned automatic backup policy. */
|
|
758
|
+
auto_backup?: Record<string, any>;
|
|
759
|
+
schemaVersion: number;
|
|
760
|
+
migrationsApplied: string[];
|
|
761
|
+
}
|
|
762
|
+
export interface AppInstallArtifact {
|
|
497
763
|
type: "image" | "binary" | "dir";
|
|
498
764
|
path: string;
|
|
499
765
|
}
|
|
766
|
+
export interface AppManifestResource {
|
|
767
|
+
kind: "image" | "binary" | "managed-file";
|
|
768
|
+
ref: string;
|
|
769
|
+
digest?: string;
|
|
770
|
+
}
|
|
500
771
|
export interface AppManifest {
|
|
501
|
-
|
|
502
|
-
|
|
772
|
+
schemaVersion: 1;
|
|
773
|
+
instanceId: string;
|
|
774
|
+
definitionId: string;
|
|
775
|
+
definitionVersion: string;
|
|
776
|
+
definitionDigest: string;
|
|
777
|
+
resolvedSpecDigest: string;
|
|
778
|
+
installedAt: string;
|
|
779
|
+
updatedAt: string;
|
|
780
|
+
/**
|
|
781
|
+
* Dependencies the instance needs at runtime/install time.
|
|
782
|
+
*
|
|
783
|
+
* Presence here does not mean Core owns the resource or may delete it on
|
|
784
|
+
* rollback. Use `ownedResources` for rollback/delete-safe cleanup.
|
|
785
|
+
*/
|
|
786
|
+
resources: AppManifestResource[];
|
|
787
|
+
/**
|
|
788
|
+
* Resources created by this specific install attempt / instance ownership
|
|
789
|
+
* model and therefore safe for rollback/delete cleanup.
|
|
790
|
+
*/
|
|
791
|
+
ownedResources: AppManifestResource[];
|
|
503
792
|
source?: string;
|
|
504
|
-
spec_hash?: string;
|
|
505
|
-
install_mode?: "app-dir" | "instance-dir";
|
|
506
|
-
artifacts?: AppManifestArtifact[];
|
|
507
793
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* The map self-cleans entries when the chain settles to keep memory flat.
|
|
10
10
|
*
|
|
11
11
|
* Use this for any code path that performs more than one file write on a
|
|
12
|
-
* given instance id (PUT /connections transactor,
|
|
13
|
-
*
|
|
12
|
+
* given instance id (PUT /connections transactor, startInstance, stopInstance,
|
|
13
|
+
* restartInstance). Operations on different instance ids never block each other.
|
|
14
14
|
*/
|
|
15
15
|
/**
|
|
16
16
|
* Run `fn` exclusively against `instanceId`. Returns `fn`'s value (or
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* The map self-cleans entries when the chain settles to keep memory flat.
|
|
10
10
|
*
|
|
11
11
|
* Use this for any code path that performs more than one file write on a
|
|
12
|
-
* given instance id (PUT /connections transactor,
|
|
13
|
-
*
|
|
12
|
+
* given instance id (PUT /connections transactor, startInstance, stopInstance,
|
|
13
|
+
* restartInstance). Operations on different instance ids never block each other.
|
|
14
14
|
*/
|
|
15
15
|
const _instanceLocks = new Map();
|
|
16
16
|
/**
|