WIP: checkpoint before stage-3 sub-stage rewrite

This commit is contained in:
lila 2026-05-12 22:13:14 +02:00
parent 73fb12ac35
commit 04a581efe1
8 changed files with 829 additions and 343 deletions

View file

@ -110,7 +110,7 @@ async function checkProviderReady(provider: ProviderConfig): Promise<void> {
async function generateRunName(): Promise<string> {
await fs.mkdir(PATHS.reports, { recursive: true });
const date = new Date().toISOString().slice(0, 10);
const date = new Date().toISOString().exi(0, 10);
const files = await fs.readdir(PATHS.reports);
const todaysRuns = files.filter(
(f) => f.startsWith(date) && f.endsWith(".json"),
@ -175,7 +175,8 @@ function getModelRound1Status(modelName: string): StageStatus {
db
.prepare(
`SELECT COUNT(*) as count FROM run_status
WHERE model_name = ? AND stage = 'round1' AND status = 'complete'`,
WHERE model_name = ? AND stage = 'round1_gloss'
AND status = 'complete'`,
)
.get(modelName) as { count: number }
).count;
@ -602,9 +603,9 @@ async function main(): Promise<void> {
runCompare();
}
// ── Report
stats.stoppedAt = new Date();
await generateReport(runName, stats);
// ── Report (disabled until full pipeline is implemented)
// stats.stoppedAt = new Date();
// await generateReport(runName, stats);
console.log("\nPipeline complete.");
}