opencode-swarm 6.81.0 → 6.82.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.
@@ -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' | 'diff_summary' | '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' | 'convene_council' | 'declare_council_criteria' | 'sbom_generate' | 'checkpoint' | 'pkg_audit' | 'test_runner' | 'test_impact' | 'mutation_test' | 'detect_domains' | 'gitingest' | 'retrieve_summary' | 'extract_code_blocks' | 'phase_complete' | 'save_plan' | 'update_task_status' | 'lint_spec' | 'write_retro' | 'write_drift_evidence' | 'write_hallucination_evidence' | 'declare_scope' | 'knowledge_query' | 'doc_scan' | 'doc_extract' | 'curator_analyze' | 'knowledge_add' | 'knowledge_recall' | 'knowledge_remove' | 'co_change_analyzer' | 'search' | 'batch_symbols' | 'suggest_patch' | 'req_coverage' | 'get_approved_plan' | 'repo_map' | 'get_qa_gate_profile' | 'set_qa_gates';
6
+ export type ToolName = 'diff' | 'diff_summary' | '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' | 'convene_council' | 'declare_council_criteria' | 'sbom_generate' | 'checkpoint' | 'pkg_audit' | 'test_runner' | 'test_impact' | 'mutation_test' | 'generate_mutants' | 'detect_domains' | 'gitingest' | 'retrieve_summary' | 'extract_code_blocks' | 'phase_complete' | 'save_plan' | 'update_task_status' | 'lint_spec' | 'write_retro' | 'write_drift_evidence' | 'write_hallucination_evidence' | 'write_mutation_evidence' | 'declare_scope' | 'knowledge_query' | 'doc_scan' | 'doc_extract' | 'curator_analyze' | 'knowledge_add' | 'knowledge_recall' | 'knowledge_remove' | 'co_change_analyzer' | 'search' | 'batch_symbols' | 'suggest_patch' | 'req_coverage' | 'get_approved_plan' | 'repo_map' | 'get_qa_gate_profile' | 'set_qa_gates';
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,34 @@
1
+ /**
2
+ * Write mutation evidence tool for persisting mutation testing gate results.
3
+ * Accepts phase, verdict, killRate, adjustedKillRate, and summary from the Architect
4
+ * and writes a gate-contract formatted evidence file.
5
+ *
6
+ * Unlike write_drift_evidence, this tool does NOT lock the QA gate profile or
7
+ * write a plan snapshot — those side-effects belong to drift verification only.
8
+ */
9
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
10
+ /**
11
+ * Arguments for the write_mutation_evidence tool
12
+ */
13
+ export interface WriteMutationEvidenceArgs {
14
+ /** The phase number for the mutation gate */
15
+ phase: number;
16
+ /** Verdict of the mutation gate: 'PASS', 'WARN', 'FAIL', or 'SKIP' */
17
+ verdict: 'PASS' | 'WARN' | 'FAIL' | 'SKIP';
18
+ /** The raw kill rate (e.g., 0.85) */
19
+ killRate?: number;
20
+ /** The adjusted kill rate accounting for timeout survived mutants (e.g., 0.87) */
21
+ adjustedKillRate?: number;
22
+ /** Human-readable summary of the mutation gate result */
23
+ summary: string;
24
+ /** Optional JSON-serialized list of survived mutants */
25
+ survivedMutants?: string;
26
+ }
27
+ /**
28
+ * Execute the write_mutation_evidence tool.
29
+ */
30
+ export declare function executeWriteMutationEvidence(args: WriteMutationEvidenceArgs, directory: string): Promise<string>;
31
+ /**
32
+ * Tool definition for write_mutation_evidence
33
+ */
34
+ export declare const write_mutation_evidence: ToolDefinition;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.81.0",
3
+ "version": "6.82.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",