opencode-swarm 7.6.0 → 7.7.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.
@@ -1 +1,2 @@
1
1
  export { derivePlanMarkdown, loadPlan, migrateLegacyPlan, savePlan, updateTaskStatus, } from './manager';
2
+ export { derivePlanId } from './utils';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Derive plan identity string from plan object.
3
+ * Canonical implementation — all consumers must import from here.
4
+ */
5
+ export declare function derivePlanId(plan: {
6
+ swarm: string;
7
+ title: string;
8
+ }): string;
package/dist/state.d.ts CHANGED
@@ -109,7 +109,7 @@ export interface AgentSessionState {
109
109
  * PR 2 Stage B barrier: per-task set of completed Stage B agents.
110
110
  * Order-independent — either 'reviewer' or 'test_engineer' may complete first.
111
111
  * When both are present, the task may advance to tests_run regardless of order.
112
- * Only populated when parallelization.stageB.parallel.enabled = true.
112
+ * Always populated Stage B is unconditionally parallel.
113
113
  */
114
114
  stageBCompletion?: Map<string, Set<'reviewer' | 'test_engineer'>>;
115
115
  /** v6.71+ Council mode: per-task council verdict, recorded by delegation-gate when submit_council_verdicts resolves. */
@@ -62,6 +62,7 @@ export { todo_extract } from './todo-extract';
62
62
  export { executeUpdateTaskStatus, type UpdateTaskStatusArgs, type UpdateTaskStatusResult, update_task_status, } from './update-task-status';
63
63
  export { web_search } from './web-search';
64
64
  export { write_drift_evidence } from './write-drift-evidence';
65
+ export { write_final_council_evidence } from './write-final-council-evidence';
65
66
  export { write_hallucination_evidence } from './write-hallucination-evidence';
66
67
  export { write_mutation_evidence } from './write-mutation-evidence';
67
68
  export { executeWriteRetro, write_retro } from './write-retro';
@@ -20,6 +20,7 @@ export interface SetQaGatesArgs {
20
20
  mutation_test?: boolean;
21
21
  council_general_review?: boolean;
22
22
  drift_check?: boolean;
23
+ final_council?: boolean;
23
24
  project_type?: string;
24
25
  }
25
26
  interface SetQaGatesResult {
@@ -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' | 'submit_council_verdicts' | 'submit_phase_council_verdicts' | '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' | 'web_search' | 'convene_general_council';
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' | 'submit_council_verdicts' | 'submit_phase_council_verdicts' | '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' | 'web_search' | 'convene_general_council' | 'write_final_council_evidence';
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 */
@@ -56,7 +56,7 @@ export declare function checkReviewerGate(taskId: string, workingDirectory?: str
56
56
  /**
57
57
  * Wrapper around checkReviewerGate that appends a diff-scope advisory warning.
58
58
  * Keeps checkReviewerGate synchronous for backward compatibility.
59
- * Also resolves the PR 2 stageB.parallel.enabled flag from config.
59
+ * Stage B parallel is hardcoded (not config-driven).
60
60
  * @param taskId - The task ID to check gate state for
61
61
  * @param workingDirectory - Optional working directory for plan.json fallback
62
62
  * @returns ReviewerGateResult with optional scope warning appended to reason
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Write final council evidence tool for persisting final holistic council verdicts.
3
+ * Accepts phase, verdict, and summary from the Architect and writes
4
+ * a structured evidence file to the flat evidence root (not per-phase).
5
+ */
6
+ import type { ToolDefinition } from '@opencode-ai/plugin/tool';
7
+ /**
8
+ * Arguments for the write_final_council_evidence tool
9
+ */
10
+ export interface WriteFinalCouncilEvidenceArgs {
11
+ /** The phase number for the final council verdict */
12
+ phase: number;
13
+ /** Verdict of the final council: 'APPROVED' or 'NEEDS_REVISION' */
14
+ verdict: 'APPROVED' | 'NEEDS_REVISION';
15
+ /** Human-readable summary of the final council verdict */
16
+ summary: string;
17
+ }
18
+ /**
19
+ * Execute the write_final_council_evidence tool.
20
+ * Validates input, builds an evidence entry, and writes to disk.
21
+ * @param args - The write final council evidence arguments
22
+ * @param directory - Working directory
23
+ * @returns JSON string with success status and details
24
+ */
25
+ export declare function executeWriteFinalCouncilEvidence(args: WriteFinalCouncilEvidenceArgs, directory: string): Promise<string>;
26
+ /**
27
+ * Tool definition for write_final_council_evidence
28
+ */
29
+ export declare const write_final_council_evidence: ToolDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.6.0",
3
+ "version": "7.7.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",