opencode-swarm 6.19.5 → 6.19.7

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.
@@ -23,5 +23,6 @@ export { type SecretFinding, type SecretscanResult, secretscan, } from './secret
23
23
  export { symbols } from './symbols';
24
24
  export { type SyntaxCheckFileResult, type SyntaxCheckInput, type SyntaxCheckResult, syntaxCheck, } from './syntax-check';
25
25
  export { test_runner } from './test-runner';
26
+ export { type UpdateTaskStatusArgs, type UpdateTaskStatusResult, executeUpdateTaskStatus, update_task_status, } from './update-task-status';
26
27
  export { todo_extract } from './todo-extract';
27
28
  export { executeWriteRetro, write_retro } from './write-retro';
@@ -45,8 +45,10 @@ export interface PreCheckBatchResult {
45
45
  }
46
46
  /**
47
47
  * Run all 4 pre-check tools in parallel with concurrency limit
48
+ * @param input - The pre-check batch input
49
+ * @param workspaceDir - Optional workspace directory for traversal validation (defaults to directory param or process.cwd())
48
50
  */
49
- export declare function runPreCheckBatch(input: PreCheckBatchInput): Promise<PreCheckBatchResult>;
51
+ export declare function runPreCheckBatch(input: PreCheckBatchInput, workspaceDir?: string): Promise<PreCheckBatchResult>;
50
52
  /**
51
53
  * Pre-check batch tool - runs 4 verification tools in parallel
52
54
  * Returns unified result with gates_passed status
@@ -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';
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';
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,47 @@
1
+ /**
2
+ * Update task status tool for changing the status of individual tasks in a plan.
3
+ * Allows agents to mark tasks as pending, in_progress, completed, or blocked.
4
+ */
5
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
6
+ /**
7
+ * Arguments for the update_task_status tool
8
+ */
9
+ export interface UpdateTaskStatusArgs {
10
+ task_id: string;
11
+ status: string;
12
+ working_directory?: string;
13
+ }
14
+ /**
15
+ * Result from executing update_task_status
16
+ */
17
+ export interface UpdateTaskStatusResult {
18
+ success: boolean;
19
+ message: string;
20
+ task_id?: string;
21
+ new_status?: string;
22
+ current_phase?: number;
23
+ errors?: string[];
24
+ }
25
+ /**
26
+ * Validate that the status is one of the allowed values.
27
+ * @param status - The status to validate
28
+ * @returns Error message if invalid, undefined if valid
29
+ */
30
+ export declare function validateStatus(status: string): string | undefined;
31
+ /**
32
+ * Validate that task_id matches the required format (N.M or N.M.P).
33
+ * @param taskId - The task ID to validate
34
+ * @returns Error message if invalid, undefined if valid
35
+ */
36
+ export declare function validateTaskId(taskId: string): string | undefined;
37
+ /**
38
+ * Execute the update_task_status tool.
39
+ * Validates the task_id and status, then updates the task status in the plan.
40
+ * @param args - The update task status arguments
41
+ * @returns UpdateTaskStatusResult with success status and details
42
+ */
43
+ export declare function executeUpdateTaskStatus(args: UpdateTaskStatusArgs, fallbackDir?: string): Promise<UpdateTaskStatusResult>;
44
+ /**
45
+ * Tool definition for update_task_status
46
+ */
47
+ export declare const update_task_status: ToolDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.19.5",
3
+ "version": "6.19.7",
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",
@@ -57,9 +57,6 @@
57
57
  "@biomejs/biome": "2.3.14",
58
58
  "bun-types": "latest",
59
59
  "js-yaml": "^4.1.1",
60
- "tree-sitter-dart": "1.0.0",
61
- "tree-sitter-kotlin": "0.3.8",
62
- "tree-sitter-swift": "0.7.1",
63
60
  "typescript": "^5.7.3"
64
61
  }
65
62
  }