opencode-swarm 6.12.0 → 6.13.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/README.md +213 -10
- package/dist/config/constants.d.ts +2 -0
- package/dist/config/evidence-schema.d.ts +4 -4
- package/dist/config/plan-schema.d.ts +28 -1
- package/dist/config/schema.d.ts +53 -22
- package/dist/hooks/extractors.d.ts +14 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/messages-transform.d.ts +13 -0
- package/dist/hooks/system-enhancer.d.ts +11 -0
- package/dist/index.js +762 -203
- package/dist/tools/test-runner.d.ts +2 -2
- package/dist/tools/tool-names.d.ts +10 -0
- package/dist/utils/tool-output.d.ts +10 -0
- package/package.json +1 -1
|
@@ -43,6 +43,6 @@ export interface TestErrorResult {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
}
|
|
45
45
|
export type TestResult = TestSuccessResult | TestErrorResult;
|
|
46
|
-
export declare function detectTestFramework(): Promise<TestFramework>;
|
|
47
|
-
export declare function runTests(framework: TestFramework, scope: 'all' | 'convention' | 'graph', files: string[], coverage: boolean, timeout_ms: number): Promise<TestResult>;
|
|
46
|
+
export declare function detectTestFramework(cwd?: string): Promise<TestFramework>;
|
|
47
|
+
export declare function runTests(framework: TestFramework, scope: 'all' | 'convention' | 'graph', files: string[], coverage: boolean, timeout_ms: number, cwd?: string): Promise<TestResult>;
|
|
48
48
|
export declare const test_runner: ReturnType<typeof tool>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Central registry of all tool names used by the swarm.
|
|
3
|
+
* Used for constants and agent setup references.
|
|
4
|
+
*/
|
|
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';
|
|
7
|
+
/** Readonly array of all tool names */
|
|
8
|
+
export declare const TOOL_NAMES: readonly ToolName[];
|
|
9
|
+
/** Set for O(1) tool name validation */
|
|
10
|
+
export declare const TOOL_NAME_SET: ReadonlySet<ToolName>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Truncate tool output to a maximum number of lines.
|
|
3
|
+
* Adds a footer with omitted line count and guidance.
|
|
4
|
+
*
|
|
5
|
+
* @param output - The tool output to truncate
|
|
6
|
+
* @param maxLines - Maximum number of lines to keep
|
|
7
|
+
* @param toolName - Optional tool name for the footer
|
|
8
|
+
* @returns Truncated output with footer, or original if within limit
|
|
9
|
+
*/
|
|
10
|
+
export declare function truncateToolOutput(output: string, maxLines: number, toolName?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.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",
|