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.
@@ -240,17 +240,12 @@ function readMemory(dir) {
240
240
  return '';
241
241
  }
242
242
  }
243
- function isProjectComplete(memory, dir) {
244
- if (memory.includes('Status: COMPLETE') || memory.includes('Project_Status: complete'))
245
- return true;
246
- try {
247
- const todo = readFileSync(resolve(dir, 'TODO.md'), 'utf-8');
248
- const pending = todo.match(/^- \[ \] /gm);
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, opts.projectDir)) {
369
+ if (isProjectComplete(memory)) {
375
370
  if (!checkpoint.completionVerified) {
376
371
  checkpoint.completionVerified = true;
377
372
  writeCheckpoint(opts.projectDir, checkpoint);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-workspace",
3
- "version": "1.1.145",
3
+ "version": "1.1.146",
4
4
  "author": "",
5
5
  "repository": {
6
6
  "type": "git",