Make runtime diagnostics non-blocking and release 2.1.69
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-10-18 02:51:48 +02:00
1 parent 9d96f67261
commit 1e289ee49b
9 files changed
+129 -78

No files matched your search

+6 -3
View File
@@ -143,11 +143,14 @@ function createMcpApp({ loadConfig, invoke, invokeGuarded = (_context, channel,
mhu_history_prune: args => invoke('prune-history', { retention: args.retention, dryRun: false }),
mhu_history_summary: args => collectors.getHistory({ limit: args.limit || 20 }),
mhu_history_clear: () => invoke('clear-history'),
mhu_diagnostics_summary: () => ({ system: collectors.getSystemInfo(), health: collectors.getHealth(), rotation: collectors.getRotationState(), server: collectors.serverHealth({ errorLimit: 20 }), runtime: getRuntimeDiagnostics() }),
mhu_app_events: args => collectors.getAppEvents(args),
mhu_diagnostics_summary: async () => {
const server = await collectors.serverHealth({ errorLimit: 20 });
return { system: server.server, health: collectors.getHealth(), rotation: collectors.getRotationState(), server, runtime: getRuntimeDiagnostics() };
},
mhu_app_events: (args, context) => collectors.getAppEvents(args, context),
mhu_errors: args => collectors.listErrors(args),
mhu_logs_list: () => collectors.listLogs(),
mhu_logs_read: args => collectors.readLog(args),
mhu_logs_read: (args, context) => collectors.readLog(args, context),
mhu_cloud_status: () => invoke('cloud-log:status'),
mhu_cloud_configure: args => invoke('cloud-log:configure', args),
mhu_cloud_backfill: () => invoke('cloud-log:backfill'),