gateway: add local backend daemon controls to dashboard
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user