opencode-swarm 6.83.0 → 6.84.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.
@@ -0,0 +1,25 @@
1
+ /**
2
+ * General Council Mode — architect-only synthesis tool.
3
+ *
4
+ * The architect spawns council_member subagents in parallel for Round 1,
5
+ * collects their JSON responses, and calls this tool to synthesize results.
6
+ * If the tool detects disagreements and Round 2 deliberation is configured,
7
+ * the architect re-delegates to disputing members and calls this tool again
8
+ * with both round1Responses and round2Responses populated.
9
+ *
10
+ * Mirrors the convene-council.ts skeleton but explicitly does NOT inherit
11
+ * the QA-council-only constraints:
12
+ * - agent: enum (replaced with memberId: string — general-council member
13
+ * IDs are user-configured, not a fixed enum)
14
+ * - verdicts.min(1).max(5) (replaced with round1Responses.min(1) — no upper
15
+ * cap; member count is per-config)
16
+ * - taskId regex (dropped — general council has no taskId)
17
+ * - readCriteria(workingDir, taskId) (dropped — general council has no
18
+ * pre-declared criteria store)
19
+ * - requireAllMembers < 5 check (dropped — not applicable)
20
+ *
21
+ * Evidence path is .swarm/council/general/ (subdirectory; never writes to
22
+ * .swarm/council/ root, where the QA council stores its files).
23
+ */
24
+ import { tool } from '@opencode-ai/plugin';
25
+ export declare const convene_general_council: ReturnType<typeof tool>;
@@ -6,6 +6,7 @@ export { co_change_analyzer } from './co-change-analyzer';
6
6
  export { completion_verify } from './completion-verify';
7
7
  export { complexity_hotspots } from './complexity-hotspots';
8
8
  export { convene_council } from './convene-council';
9
+ export { convene_general_council } from './convene-general-council';
9
10
  export { curator_analyze } from './curator-analyze';
10
11
  export { declare_council_criteria } from './declare-council-criteria';
11
12
  export { declare_scope } from './declare-scope';
@@ -58,6 +59,7 @@ export { test_impact } from './test-impact';
58
59
  export { test_runner } from './test-runner';
59
60
  export { todo_extract } from './todo-extract';
60
61
  export { executeUpdateTaskStatus, type UpdateTaskStatusArgs, type UpdateTaskStatusResult, update_task_status, } from './update-task-status';
62
+ export { web_search } from './web-search';
61
63
  export { write_drift_evidence } from './write-drift-evidence';
62
64
  export { write_hallucination_evidence } from './write-hallucination-evidence';
63
65
  export { write_mutation_evidence } from './write-mutation-evidence';
@@ -18,6 +18,7 @@ export interface SetQaGatesArgs {
18
18
  hallucination_guard?: boolean;
19
19
  sast_enabled?: boolean;
20
20
  mutation_test?: boolean;
21
+ council_general_review?: boolean;
21
22
  project_type?: string;
22
23
  }
23
24
  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' | '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';
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' | 'web_search' | 'convene_general_council';
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,13 @@
1
+ /**
2
+ * web_search tool — restricted to council_member agents.
3
+ *
4
+ * Thin wrapper around `src/council/web-search-provider.ts`. Returns structured
5
+ * results on success and structured errors on failure (never throws). Config-
6
+ * gated on `council.general.enabled`. The provider itself surfaces missing-key
7
+ * configuration via WebSearchConfigError, which this tool maps to a structured
8
+ * `success: false` response.
9
+ *
10
+ * Hard cap on max_results = 10 (clamped silently). Default sourced from council.general.maxSourcesPerMember.
11
+ */
12
+ import { tool } from '@opencode-ai/plugin';
13
+ export declare const web_search: ReturnType<typeof tool>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.83.0",
3
+ "version": "6.84.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",