test(#60): smoke-live-turn logs live progress snapshots

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BenStullsBets
2026-06-26 04:38:33 -07:00
parent 0743cf9a8a
commit 21bbf6b114
+9 -1
View File
@@ -10,7 +10,15 @@ console.log(`instruction: ${instruction}`);
console.log(`text: ${text}`); console.log(`text: ${text}`);
try { try {
const t0 = Date.now(); const t0 = Date.now();
const result = await runEditTurn(instruction, text); // #60: exercise the live-progress path against the real SDK — log each reduced
// snapshot so the smoke shows streaming/activity/tokens, not just the result.
const result = await runEditTurn(instruction, text, {
onProgress: (s) => {
const bits = [s.phase === "tool" ? `tool:${s.tool}` : s.phase, `${s.chars}c`];
if (s.tokens) bits.push(`${s.tokens}tok`);
console.log(` progress: ${bits.join(" ")}`);
},
});
console.log(`replacement: ${JSON.stringify(result.replacement)}`); console.log(`replacement: ${JSON.stringify(result.replacement)}`);
console.log(`model: ${result.model}`); console.log(`model: ${result.model}`);
console.log(`sessionId: ${result.sessionId}`); console.log(`sessionId: ${result.sessionId}`);