Record flux2klein smoke run

This commit is contained in:
Morpheus
2026-08-21 02:09:29 +00:00
parent 3e75113cee
commit 2ed0143dae
9 changed files with 698 additions and 11 deletions
+10 -4
View File
@@ -141,16 +141,16 @@ function summarizeBusy(queueData) {
function writeState(options, patch) {
const previous = fs.existsSync(options.stateFile) ? readJson(options.stateFile) : {};
const next = {
date: new Date().toISOString(),
testsSet: false,
serverBusy: false,
reason: '',
cases: [],
reviewPending: false,
optimizedPaths: options.optimizedPaths,
verdict: null,
...previous,
...patch,
date: new Date().toISOString(),
optimizedPaths: options.optimizedPaths,
};
writeJson(options.stateFile, next);
return next;
@@ -240,8 +240,13 @@ async function main() {
const runRecordPath = path.join(caseDir, 'run-record.json');
const promptPath = path.join(caseDir, 'resolved-prompt.json');
const runRecord = readJson(runRecordPath);
const outputFile = Array.isArray(runRecord.files) && runRecord.files.length
? runRecord.files[0].localPath
const outputEntries = Array.isArray(runRecord.images) && runRecord.images.length
? runRecord.images
: Array.isArray(runRecord.files) && runRecord.files.length
? runRecord.files
: [];
const outputFile = outputEntries.length
? outputEntries[0].localPath
: null;
const manifest = {
@@ -252,6 +257,7 @@ async function main() {
resolvedPrompt: repoRelative(promptPath),
promptId: result.promptId || runRecord.promptId || null,
status: result.status || runRecord?.status?.status_str || 'unknown',
optimizedPaths: options.optimizedPaths,
overrides: {
steps: options.steps,
cfg: options.cfg,