opencode-swarm 6.14.0 → 6.14.12
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/LICENSE +21 -21
- package/dist/cli/index.js +0 -0
- package/dist/config/schema.d.ts +14 -0
- package/dist/hooks/context-budget.d.ts +3 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/message-priority.d.ts +105 -0
- package/dist/hooks/model-limits.d.ts +96 -0
- package/dist/index.js +746 -109
- package/dist/lang/grammars/tree-sitter-bash.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-c-sharp.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-cpp.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-css.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-go.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-ini.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-java.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-javascript.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-php.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-powershell.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-python.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-regex.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-ruby.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-rust.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-tsx.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-typescript.wasm +0 -0
- package/dist/lang/grammars/tree-sitter.wasm +0 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/save-plan.d.ts +54 -0
- package/dist/tools/tool-names.d.ts +1 -1
- package/package.json +2 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export { fetchGitingest, type GitingestArgs, gitingest } from './gitingest';
|
|
|
9
9
|
export { imports } from './imports';
|
|
10
10
|
export { lint } from './lint';
|
|
11
11
|
export { phase_complete } from './phase-complete';
|
|
12
|
+
export { save_plan } from './save-plan';
|
|
13
|
+
export type { SavePlanArgs, SavePlanResult } from './save-plan';
|
|
12
14
|
export { pkg_audit } from './pkg-audit';
|
|
13
15
|
export { type PlaceholderFinding, type PlaceholderScanInput, type PlaceholderScanResult, placeholderScan, } from './placeholder-scan';
|
|
14
16
|
export { type PreCheckBatchInput, type PreCheckBatchResult, pre_check_batch, runPreCheckBatch, type ToolResult, } from './pre-check-batch';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Save plan tool for persisting validated implementation plans.
|
|
3
|
+
* Allows the Architect agent to save structured plans to .swarm/plan.json and .swarm/plan.md.
|
|
4
|
+
*/
|
|
5
|
+
import { type ToolDefinition } from '@opencode-ai/plugin/tool';
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the save_plan tool
|
|
8
|
+
*/
|
|
9
|
+
export interface SavePlanArgs {
|
|
10
|
+
title: string;
|
|
11
|
+
swarm_id: string;
|
|
12
|
+
phases: Array<{
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
tasks: Array<{
|
|
16
|
+
id: string;
|
|
17
|
+
description: string;
|
|
18
|
+
size?: 'small' | 'medium' | 'large';
|
|
19
|
+
depends?: string[];
|
|
20
|
+
acceptance?: string;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
working_directory?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Result from executing save_plan
|
|
27
|
+
*/
|
|
28
|
+
export interface SavePlanResult {
|
|
29
|
+
success: boolean;
|
|
30
|
+
message: string;
|
|
31
|
+
plan_path?: string;
|
|
32
|
+
phases_count?: number;
|
|
33
|
+
tasks_count?: number;
|
|
34
|
+
errors?: string[];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Detect template placeholder content (e.g., [task], [Project], [description], [N]).
|
|
38
|
+
* These patterns indicate the LLM reproduced template examples literally rather than
|
|
39
|
+
* filling in real content from the specification.
|
|
40
|
+
* @param args - The save plan arguments to validate
|
|
41
|
+
* @returns Array of issue strings describing found placeholders
|
|
42
|
+
*/
|
|
43
|
+
export declare function detectPlaceholderContent(args: SavePlanArgs): string[];
|
|
44
|
+
/**
|
|
45
|
+
* Execute the save_plan tool.
|
|
46
|
+
* Validates for placeholder content, builds a Plan object, and saves to disk.
|
|
47
|
+
* @param args - The save plan arguments
|
|
48
|
+
* @returns SavePlanResult with success status and details
|
|
49
|
+
*/
|
|
50
|
+
export declare function executeSavePlan(args: SavePlanArgs): Promise<SavePlanResult>;
|
|
51
|
+
/**
|
|
52
|
+
* Tool definition for save_plan
|
|
53
|
+
*/
|
|
54
|
+
export declare const save_plan: ToolDefinition;
|
|
@@ -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';
|
|
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';
|
|
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 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.14.
|
|
3
|
+
"version": "6.14.12",
|
|
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",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@biomejs/biome": "2.3.14",
|
|
57
57
|
"bun-types": "latest",
|
|
58
|
+
"js-yaml": "^4.1.1",
|
|
58
59
|
"typescript": "^5.7.3"
|
|
59
60
|
}
|
|
60
61
|
}
|