opencode-swarm 6.10.0 → 6.12.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.
@@ -25,8 +25,8 @@ export interface SastContext {
25
25
  filePath: string;
26
26
  content: string;
27
27
  language: string;
28
- parser?: any;
29
- tree?: any;
28
+ parser?: unknown;
29
+ tree?: unknown;
30
30
  }
31
31
  export interface SastFinding {
32
32
  rule_id: string;
package/dist/state.d.ts CHANGED
@@ -55,6 +55,26 @@ export interface AgentSessionState {
55
55
  windows: Record<string, InvocationWindow>;
56
56
  /** Last tool-call threshold at which a compaction hint was issued */
57
57
  lastCompactionHint: number;
58
+ /** Count of architect direct writes to non-.swarm/ files */
59
+ architectWriteCount: number;
60
+ /** Last task ID that was delegated to coder (for zero-delegation detection) */
61
+ lastCoderDelegationTaskId: string | null;
62
+ /** Gate names observed for current task (taskId → Set of gates) */
63
+ gateLog: Map<string, Set<string>>;
64
+ /** Reviewer delegations per phase (phaseNumber → count) */
65
+ reviewerCallCount: Map<number, number>;
66
+ /** Last gate failure for self-fix detection */
67
+ lastGateFailure: {
68
+ tool: string;
69
+ taskId: string;
70
+ timestamp: number;
71
+ } | null;
72
+ /** Whether partial gate warning has been issued for this session */
73
+ partialGateWarningIssued: boolean;
74
+ /** Whether architect attempted self-fix write after gate failure */
75
+ selfFixAttempted: boolean;
76
+ /** Phases that have already received a catastrophic zero-reviewer warning */
77
+ catastrophicPhaseWarnings: Set<number>;
58
78
  }
59
79
  /**
60
80
  * Represents a single agent invocation window with isolated guardrail budgets.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.10.0",
3
+ "version": "6.12.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",
@@ -29,7 +29,6 @@
29
29
  "clean": "rm -rf dist",
30
30
  "copy-grammars": "bun run scripts/copy-grammars.ts",
31
31
  "build": "rm -rf dist && bun run copy-grammars && bun build src/index.ts --outdir dist --target bun --format esm && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm && bun run scripts/copy-grammars.ts --to-dist && tsc --emitDeclarationOnly",
32
- "postinstall": "bun run copy-grammars",
33
32
  "typecheck": "tsc --noEmit",
34
33
  "test": "bun test",
35
34
  "lint": "biome lint .",