opencode-swarm 6.40.8 → 6.41.1

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.
@@ -4,7 +4,7 @@
4
4
  export interface PhaseHistoryData {
5
5
  id: number;
6
6
  name: string;
7
- status: 'complete' | 'in_progress' | 'pending' | 'blocked';
7
+ status: 'complete' | 'in_progress' | 'pending' | 'blocked' | 'closed';
8
8
  statusText: string;
9
9
  statusIcon: string;
10
10
  completedTasks: number;
@@ -22,6 +22,7 @@ export interface DeclareScopeResult {
22
22
  taskId?: string;
23
23
  fileCount?: number;
24
24
  errors?: string[];
25
+ warnings?: string[];
25
26
  }
26
27
  /**
27
28
  * Validate that taskId matches the required format (N.M or N.M.P).
@@ -1,6 +1,7 @@
1
1
  export { build_check } from './build-check';
2
2
  export { check_gate_status } from './check-gate-status';
3
3
  export { checkpoint } from './checkpoint';
4
+ export { co_change_analyzer } from './co-change-analyzer';
4
5
  export { completion_verify } from './completion-verify';
5
6
  export { complexity_hotspots } from './complexity-hotspots';
6
7
  export { curator_analyze } from './curator-analyze';
@@ -34,4 +35,5 @@ export { type SyntaxCheckFileResult, type SyntaxCheckInput, type SyntaxCheckResu
34
35
  export { test_runner } from './test-runner';
35
36
  export { todo_extract } from './todo-extract';
36
37
  export { executeUpdateTaskStatus, type UpdateTaskStatusArgs, type UpdateTaskStatusResult, update_task_status, } from './update-task-status';
38
+ export { write_drift_evidence } from './write-drift-evidence';
37
39
  export { executeWriteRetro, write_retro } from './write-retro';
@@ -3,7 +3,7 @@
3
3
  * Used for constants and agent setup references.
4
4
  */
5
5
  /** Union type of all valid tool names */
6
- export type ToolName = 'diff' | 'syntax_check' | 'placeholder_scan' | 'imports' | 'lint' | 'secretscan' | 'sast_scan' | 'build_check' | 'pre_check_batch' | 'quality_budget' | 'symbols' | 'complexity_hotspots' | 'schema_drift' | 'todo_extract' | 'evidence_check' | 'check_gate_status' | 'completion_verify' | 'sbom_generate' | 'checkpoint' | 'pkg_audit' | 'test_runner' | 'detect_domains' | 'gitingest' | 'retrieve_summary' | 'extract_code_blocks' | 'phase_complete' | 'save_plan' | 'update_task_status' | 'write_retro' | 'declare_scope' | 'knowledge_query' | 'doc_scan' | 'doc_extract' | 'curator_analyze' | 'knowledgeAdd' | 'knowledgeRecall' | 'knowledgeRemove';
6
+ export type ToolName = 'diff' | 'syntax_check' | 'placeholder_scan' | 'imports' | 'lint' | 'secretscan' | 'sast_scan' | 'build_check' | 'pre_check_batch' | 'quality_budget' | 'symbols' | 'complexity_hotspots' | 'schema_drift' | 'todo_extract' | 'evidence_check' | 'check_gate_status' | 'completion_verify' | 'sbom_generate' | 'checkpoint' | 'pkg_audit' | 'test_runner' | 'detect_domains' | 'gitingest' | 'retrieve_summary' | 'extract_code_blocks' | 'phase_complete' | 'save_plan' | 'update_task_status' | 'write_retro' | 'write_drift_evidence' | 'declare_scope' | 'knowledge_query' | 'doc_scan' | 'doc_extract' | 'curator_analyze' | 'knowledgeAdd' | 'knowledgeRecall' | 'knowledgeRemove' | 'co_change_analyzer';
7
7
  /** Readonly array of all tool names */
8
8
  export declare const TOOL_NAMES: readonly ToolName[];
9
9
  /** Set for O(1) tool name validation */
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Write drift evidence tool for persisting drift verification results.
3
+ * Accepts phase, verdict, and summary from the Architect and writes
4
+ * a gate-contract formatted evidence file.
5
+ */
6
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
7
+ /**
8
+ * Arguments for the write_drift_evidence tool
9
+ */
10
+ export interface WriteDriftEvidenceArgs {
11
+ /** The phase number for the drift verification */
12
+ phase: number;
13
+ /** Verdict of the drift verification: 'APPROVED' or 'NEEDS_REVISION' */
14
+ verdict: 'APPROVED' | 'NEEDS_REVISION';
15
+ /** Human-readable summary of the drift verification */
16
+ summary: string;
17
+ }
18
+ /**
19
+ * Execute the write_drift_evidence tool.
20
+ * Validates input, builds a gate-contract entry, and writes to disk.
21
+ * @param args - The write drift evidence arguments
22
+ * @param directory - Working directory
23
+ * @returns JSON string with success status and details
24
+ */
25
+ export declare function executeWriteDriftEvidence(args: WriteDriftEvidenceArgs, directory: string): Promise<string>;
26
+ /**
27
+ * Tool definition for write_drift_evidence
28
+ */
29
+ export declare const write_drift_evidence: ToolDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.40.8",
3
+ "version": "6.41.1",
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",