Preserve preview harness, editor, email and task improvements

Snapshot current maintainer-preview application changes and regression fixtures for integration into lab. Excludes local runtime data, evaluation outputs and source backups. Focused Python regression selection: 140 passed; full suite not certified.
This commit is contained in:
pewdiepie-archdaemon
2026-10-01 01:34:26 +00:00
parent 86f376ac3a
commit 2e8413a54a
170 changed files with 11010 additions and 1094 deletions
+13
View File
@@ -0,0 +1,13 @@
// Older saved turns kept image fields only inside the tool's JSON output.
export function generatedImageResult(event) {
if (!event || event.error || (event.exit_code != null && event.exit_code !== 0)) return null;
if (event.image_url) return event;
if (!['generate_image', 'edit_image'].includes(event.tool) || typeof event.output !== 'string') return null;
try {
const result = JSON.parse(event.output);
if (result.error || !result.image_url || typeof result.image_url !== 'string') return null;
return result;
} catch {
return null;
}
}