Fix immediate automation pause, restored queue rendering and bounded disk reads; release 2.1.75
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-10-20 13:56:04 +02:00
1 parent 267a840853
commit 80eb878f1b
12 files changed
+168 -68

No files matched your search

+7
View File
@@ -1,4 +1,5 @@
const { randomUUID } = require('node:crypto');
const { getUploadReadSnapshot, setUploadReadLimit } = require('./upload-file-io');
const path = require('node:path');
const { McpAccessError, resolveGrantedFile } = require('./mcp-access');
const { createMcpFiles } = require('./mcp-files');
@@ -59,6 +60,7 @@ function createMcpApp({ loadConfig, invoke, invokeGuarded = (_context, channel,
canWrite(); guard(context);
const result = await invoke(channel);
if (result?.error || result?.monitorError) throw new McpAccessError(code);
if (channel === 'automation:resume') await renderer('automation-resume', {}, context);
return result;
};
const handlers = {
@@ -76,6 +78,11 @@ function createMcpApp({ loadConfig, invoke, invokeGuarded = (_context, channel,
})), boundaries: ['Permissions and directory grants can only be changed locally.', 'Destructive actions require an exact local confirmation; MCP cannot approve it.', 'No arbitrary shell, SQL, mouse/keyboard or screen control.', 'Paused automation is resumed with mhu_automation_resume. A disabled monitor requires mhu_automation_start.'] };
},
mhu_performance_get: () => getPerformance(),
mhu_io_limits_get: () => getUploadReadSnapshot(),
mhu_io_limits_update: ({ readConcurrency }, context) => {
canWrite(); guard(context);
return setUploadReadLimit(readConcurrency);
},
mhu_system_metrics: args => getSystemMetrics(args),
mhu_app_state: async (args, context) => ({ ...(await renderer('state', {}, context)), automation: await invoke('automation:get-status') }),
mhu_queue_list: (args, context) => renderer('queue-list', args, context),