// server/services/capabilities.ts import type { ServerCapabilities } from "@shared/types.js"; export function getServerCapabilities(now = new Date()): ServerCapabilities { return { app: "system_update", apiVersion: "1", generatedAt: now.toISOString(), features: { machines: true, machineSnapshots: true, actions: true, aptFullUpgrade: true, reboot: true, reports: true, terminalOutput: true, interactiveSsh: false, docker: false, postInstall: false, hermes: false, settings: false, scheduledJobs: false, authTokens: false, }, endpoints: { capabilities: "GET /api/capabilities", systemStatus: "GET /api/system/status", systemMetrics: "GET /api/system/metrics", machines: "GET /api/machines", machineSnapshot: "GET /api/machines/:id/snapshot", machineRefresh: "POST /api/machines/:id/refresh", machineActions: "POST /api/machines/:id/actions", machineExecutions: "GET /api/machines/:id/executions", executionReport: "GET /api/machines/:id/executions/:execId/report", terminalOutputWs: "WS /api/ws/machines/:id/output", }, }; }