gateway: add local backend daemon controls to dashboard

This commit is contained in:
William Valentin
2026-02-22 16:36:31 -08:00
parent 44c7409a20
commit 6f2925ed10
6 changed files with 671 additions and 1 deletions
+7
View File
@@ -34,6 +34,7 @@ import {
} from './handlers/index.js';
import { discoverServices } from './handlers/services.js';
import { createModelCatalogFetcher } from './modelCatalog.js';
import { listLocalBackendStatuses, controlLocalBackend } from './handlers/localBackends.js';
import type { TokenUsageEntry, ContextUsageEntry } from './handlers/system.js';
import type { NodeConnectionState } from './handlers/node.js';
import type { SessionManager } from '../session/manager.js';
@@ -230,6 +231,12 @@ export class GatewayServer {
getModelCatalog: modelCatalogFetcher
? (opts) => modelCatalogFetcher(opts)
: undefined,
getLocalBackends: runtimeConfig
? () => listLocalBackendStatuses(runtimeConfig)
: undefined,
controlLocalBackend: runtimeConfig
? (backend, action) => controlLocalBackend(runtimeConfig, backend, action)
: undefined,
getPresence: channelRegistry
? (opts) => channelRegistry.getPresence(opts)
: undefined,