opencode-swarm 6.21.3 → 6.22.0

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.
@@ -21,6 +21,14 @@ export declare function readSnapshot(directory: string): Promise<SnapshotData |
21
21
  * Does NOT touch activeToolCalls or pendingEvents (remain at defaults).
22
22
  */
23
23
  export declare function rehydrateState(snapshot: SnapshotData): void;
24
+ /**
25
+ * Reconcile task workflow states from plan.json for all active sessions.
26
+ * Seeds completed plan tasks to 'tests_run' and in_progress tasks to 'coder_delegated'.
27
+ * Best-effort: returns silently on any file/parse error. NEVER throws.
28
+ *
29
+ * @param directory - The project root directory containing .swarm/plan.json
30
+ */
31
+ export declare function reconcileTaskStatesFromPlan(directory: string): Promise<void>;
24
32
  /**
25
33
  * Load snapshot from disk and rehydrate swarmState.
26
34
  * Called on plugin init to restore state from previous session.
@@ -34,6 +34,7 @@ export interface SerializedAgentSession {
34
34
  phaseAgentsDispatched: string[];
35
35
  qaSkipCount: number;
36
36
  qaSkipTaskIds: string[];
37
+ taskWorkflowStates?: Record<string, string>;
37
38
  }
38
39
  /**
39
40
  * Minimal interface for serialized InvocationWindow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.21.3",
3
+ "version": "6.22.0",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",