create-claude-workspace 1.1.145 → 1.1.146
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/dist/scripts/autonomous.mjs +7 -12
- package/package.json +1 -1
|
@@ -240,17 +240,12 @@ function readMemory(dir) {
|
|
|
240
240
|
return '';
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function isProjectComplete(memory
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return pending === null || pending.length === 0;
|
|
250
|
-
}
|
|
251
|
-
catch {
|
|
252
|
-
return false;
|
|
253
|
-
}
|
|
243
|
+
function isProjectComplete(memory) {
|
|
244
|
+
// Only trust the orchestrator's explicit completion marker in MEMORY.md.
|
|
245
|
+
// Do NOT guess from TODO.md — the orchestrator handles phase transitions,
|
|
246
|
+
// product-owner re-evaluations, and task additions internally.
|
|
247
|
+
return /^Current Phase:.*PROJECT COMPLETE/mi.test(memory)
|
|
248
|
+
|| /^Project_Status:\s*complete/mi.test(memory);
|
|
254
249
|
}
|
|
255
250
|
function loadAgents(dir) {
|
|
256
251
|
const agentsDir = resolve(dir, '.claude', 'agents');
|
|
@@ -371,7 +366,7 @@ async function main() {
|
|
|
371
366
|
for (let i = checkpoint.iteration + 1; i <= opts.maxIterations && !stopping; i++) {
|
|
372
367
|
// Check completion → idle polling
|
|
373
368
|
const memory = readMemory(opts.projectDir);
|
|
374
|
-
if (isProjectComplete(memory
|
|
369
|
+
if (isProjectComplete(memory)) {
|
|
375
370
|
if (!checkpoint.completionVerified) {
|
|
376
371
|
checkpoint.completionVerified = true;
|
|
377
372
|
writeCheckpoint(opts.projectDir, checkpoint);
|