feat: add secure batch completion reports

Generate immutable post-cleanup summaries only after queue, history, and recovery finalization. Add bilingual accessible report UI, host and cleanup metrics, report-bound JSON and sanitized error CSV exports, renderer reload recovery, duplicate-filename-safe accounting, and public-source verification coverage.
This commit is contained in:
Sucukdeluxe
2026-08-17 00:18:20 +02:00
parent c8170b8556
commit 329d22e5b7
18 changed files with 1282 additions and 36 deletions
+2 -2
View File
@@ -441,7 +441,7 @@ class UploadManager extends EventEmitter {
for (let j = i; j < end; j++) {
const task = tasks[j];
if (!results.has(task.file)) {
results.set(task.file, { name: path.basename(task.file), size: 0, results: [] });
results.set(task.file, { name: path.basename(task.file), fileKey: task.fileKey || null, size: 0, results: [] });
toStat.push(task.file);
}
}
@@ -1863,7 +1863,7 @@ class UploadManager extends EventEmitter {
if (!results.has(task.file)) {
let size = 0;
try { size = fs.statSync(task.file).size; } catch {}
results.set(task.file, { name: fileName, size, results: [] });
results.set(task.file, { name: fileName, fileKey: task.fileKey || null, size, results: [] });
}
this._batchTotal++;
this._additionalPromises.push(this._runJob(task, results, signal));