重构更新账号日志功能,添加开发者模式

This commit is contained in:
QLHazyCoder
2026-04-17 18:29:53 +08:00
parent 3b28845d86
commit ccea024f9a
16 changed files with 1245 additions and 458 deletions
+13
View File
@@ -12,6 +12,7 @@
broadcastDataUpdate,
cancelScheduledAutoRun,
checkIcloudSession,
clearAccountRunHistory,
clearAutoRunTimerAlarm,
clearLuckmailRuntimeState,
clearStopRequest,
@@ -270,6 +271,18 @@
return { ok: true };
}
case 'CLEAR_ACCOUNT_RUN_HISTORY': {
const state = await getState();
if (isAutoRunLockedState(state)) {
throw new Error('自动流程运行中,当前不能清理邮箱记录。');
}
if (typeof clearAccountRunHistory !== 'function') {
return { ok: true, clearedCount: 0 };
}
const result = await clearAccountRunHistory(state);
return { ok: true, ...result };
}
case 'EXECUTE_STEP': {
clearStopRequest();
if (message.source === 'sidepanel') {