@mndrk/agx 1.4.27 → 1.4.28

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.
@@ -29,10 +29,15 @@ function buildCloudTaskTerminalPatch({ decision, newStage, nowIso } = {}) {
29
29
  return { status: 'completed', completed_at: now };
30
30
  }
31
31
 
32
- if (d === 'done') return { status: 'completed', completed_at: now };
32
+ // NOTE: decision "done" means the CURRENT STAGE is complete, not the entire task.
33
+ // Only mark task as completed when stage reaches "done" (handled above).
34
+ // Do NOT mark completed just because decision is "done" - that prematurely
35
+ // ends tasks stuck in ideation/planning/execution.
33
36
  if (d === 'failed') return { status: 'failed', completed_at: now };
34
37
  if (d === 'blocked') return { status: 'blocked' };
35
38
 
39
+ // For "done" and "not_done" decisions, let the stage machine handle transitions.
40
+ // The task status will be updated by the orchestrator based on stage progression.
36
41
  return null;
37
42
  }
38
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mndrk/agx",
3
- "version": "1.4.27",
3
+ "version": "1.4.28",
4
4
  "description": "Autonomous AI Agent Orchestrator for Claude, Gemini, and Ollama",
5
5
  "main": "lib/index.js",
6
6
  "exports": {