opencode-swarm 6.22.7 → 6.22.8

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.
@@ -8,6 +8,7 @@ export { evidence_check } from './evidence-check';
8
8
  export { extract_code_blocks } from './file-extractor';
9
9
  export { fetchGitingest, type GitingestArgs, gitingest } from './gitingest';
10
10
  export { imports } from './imports';
11
+ export { knowledge_query } from './knowledge-query';
11
12
  export { lint } from './lint';
12
13
  export { phase_complete } from './phase-complete';
13
14
  export { pkg_audit } from './pkg-audit';
@@ -0,0 +1,5 @@
1
+ /** Knowledge query tool for architect-level access to swarm and hive knowledge.
2
+ * Provides filtered, formatted text output for knowledge retrieval.
3
+ */
4
+ import { tool } from '@opencode-ai/plugin';
5
+ export declare const knowledge_query: ReturnType<typeof tool>;
@@ -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' | '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';
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' | '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';
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 */
@@ -46,9 +46,10 @@ export interface ReviewerGateResult {
46
46
  * Requires the task to be in 'tests_run' or 'complete' state, which means
47
47
  * both reviewer delegation and test_engineer runs have been recorded.
48
48
  * @param taskId - The task ID to check gate state for
49
+ * @param workingDirectory - Optional working directory for plan.json fallback
49
50
  * @returns ReviewerGateResult indicating whether the gate is blocked
50
51
  */
51
- export declare function checkReviewerGate(taskId: string): ReviewerGateResult;
52
+ export declare function checkReviewerGate(taskId: string, workingDirectory?: string): ReviewerGateResult;
52
53
  /**
53
54
  * Execute the update_task_status tool.
54
55
  * Validates the task_id and status, then updates the task status in the plan.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.22.7",
3
+ "version": "6.22.8",
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",