opencode-swarm 6.82.2 → 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.
- package/dist/__tests__/convene-general-council.test.d.ts +10 -0
- package/dist/__tests__/disagreement-detector.test.d.ts +7 -0
- package/dist/__tests__/general-council-service.test.d.ts +7 -0
- package/dist/__tests__/qa-gate-hardening.test.d.ts +12 -0
- package/dist/__tests__/web-search-provider.test.d.ts +6 -0
- package/dist/agents/architect.d.ts +9 -1
- package/dist/agents/council-member.d.ts +30 -0
- package/dist/agents/council-member.test.d.ts +8 -0
- package/dist/agents/council-moderator.d.ts +20 -0
- package/dist/agents/critic.d.ts +1 -1
- package/dist/agents/index.d.ts +2 -0
- package/dist/cli/index.js +115 -7
- package/dist/commands/council.d.ts +17 -0
- package/dist/commands/council.test.d.ts +4 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +7 -1
- package/dist/config/constants.d.ts +3 -3
- package/dist/config/schema.d.ts +109 -0
- package/dist/council/disagreement-detector.d.ts +24 -0
- package/dist/council/general-council-advisory.d.ts +29 -0
- package/dist/council/general-council-service.d.ts +22 -0
- package/dist/council/general-council-types.d.ts +98 -0
- package/dist/council/web-search-provider.d.ts +35 -0
- package/dist/db/qa-gate-profile.d.ts +5 -1
- package/dist/index.js +1567 -373
- package/dist/tools/convene-general-council.d.ts +25 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/set-qa-gates.d.ts +1 -0
- package/dist/tools/tool-names.d.ts +1 -1
- package/dist/tools/web-search.d.ts +13 -0
- package/package.json +1 -1
|
@@ -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>;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -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.
|
|
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",
|