@juangcarmona/lighthouse-sdlc 0.23.5 → 0.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/opencode-execute.mjs +9 -2
package/package.json
CHANGED
package/src/opencode-execute.mjs
CHANGED
|
@@ -434,9 +434,16 @@ async function main() {
|
|
|
434
434
|
await writeFile(join(runDir, 'evidence/host/telemetry-usage.json'), JSON.stringify(usageSummary(events, { health: [telemetry.health()] })));
|
|
435
435
|
runtimeReceipt.telemetry = telemetry.health(); await writeFile(join(runDir, 'runtime.json'), JSON.stringify(runtimeReceipt));
|
|
436
436
|
} catch { console.error('Telemetry retention incomplete; inspect collector health.'); }
|
|
437
|
-
if (workspaceCleanupError)
|
|
437
|
+
if (workspaceCleanupError) {
|
|
438
|
+
console.error(progressText('Cleanup', redactLog(workspaceCleanupError.message)));
|
|
439
|
+
if (!runtimeReceipt.failure) throw workspaceCleanupError;
|
|
440
|
+
}
|
|
438
441
|
} finally { if (slot !== undefined) closeSync(slot); }
|
|
439
|
-
if (runtimeReceipt.cleanup && runtimeReceipt.cleanup.status !== 'clean')
|
|
442
|
+
if (runtimeReceipt.cleanup && runtimeReceipt.cleanup.status !== 'clean') {
|
|
443
|
+
const cleanupError = Object.assign(Error('Execution cleanup is not verified; inspect runtime.json and the operator ownership journal before retrying'), { phase: 'cleanup' });
|
|
444
|
+
console.error(progressText('Cleanup', cleanupError.message));
|
|
445
|
+
if (!runtimeReceipt.failure) throw cleanupError;
|
|
446
|
+
}
|
|
440
447
|
}
|
|
441
448
|
}
|
|
442
449
|
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) main().catch(async error => {
|