UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) • 756 B
import { n as getDiagnosticStabilitySnapshot, r as normalizeDiagnosticStabilityQuery } from "./diagnostic-stability-CivQ-tBG.js"; import { mn as errorShape, pn as ErrorCodes } from "./schema-BrDi0lZs.js"; import "./src-BNueln22.js"; //#region src/gateway/server-methods/diagnostics.ts /** Gateway handler for payload-free stability diagnostics. */ const diagnosticsHandlers = { "diagnostics.stability": async ({ params, respond }) => { try { respond(true, getDiagnosticStabilitySnapshot(normalizeDiagnosticStabilityQuery(params)), void 0); } catch (err) { respond(false, void 0, errorShape(ErrorCodes.INVALID_REQUEST, err instanceof Error ? err.message : "invalid diagnostics.stability params")); } } }; //#endregion export { diagnosticsHandlers };