opencode-swarm 6.3.0 → 6.5.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 +1 -1
- package/dist/agents/test-engineer.adversarial.test.d.ts +5 -0
- package/dist/agents/test-engineer.security.test.d.ts +1 -0
- package/dist/config/schema.d.ts +9 -0
- package/dist/index.js +3012 -88
- package/dist/tools/checkpoint.d.ts +2 -0
- package/dist/tools/complexity-hotspots.d.ts +2 -0
- package/dist/tools/evidence-check.d.ts +2 -0
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/pkg-audit.d.ts +2 -0
- package/dist/tools/schema-drift.d.ts +2 -0
- package/dist/tools/symbols.d.ts +2 -0
- package/dist/tools/test-runner.d.ts +48 -0
- package/dist/tools/test-runner.security-adversarial.test.d.ts +5 -0
- package/dist/tools/todo-extract.d.ts +2 -0
- package/package.json +1 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
export { checkpoint } from './checkpoint';
|
|
2
|
+
export { complexity_hotspots } from './complexity-hotspots';
|
|
1
3
|
export { type DiffErrorResult, type DiffResult, diff } from './diff';
|
|
2
4
|
export { detect_domains } from './domain-detector';
|
|
5
|
+
export { evidence_check } from './evidence-check';
|
|
3
6
|
export { extract_code_blocks } from './file-extractor';
|
|
4
7
|
export { fetchGitingest, type GitingestArgs, gitingest } from './gitingest';
|
|
5
8
|
export { imports } from './imports';
|
|
6
9
|
export { lint } from './lint';
|
|
10
|
+
export { pkg_audit } from './pkg-audit';
|
|
7
11
|
export { retrieve_summary } from './retrieve-summary';
|
|
12
|
+
export { schema_drift } from './schema-drift';
|
|
8
13
|
export { type SecretFinding, type SecretscanResult, secretscan, } from './secretscan';
|
|
14
|
+
export { symbols } from './symbols';
|
|
15
|
+
export { test_runner } from './test-runner';
|
|
16
|
+
export { todo_extract } from './todo-extract';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { tool } from '@opencode-ai/plugin';
|
|
2
|
+
export declare const MAX_OUTPUT_BYTES = 512000;
|
|
3
|
+
export declare const MAX_COMMAND_LENGTH = 500;
|
|
4
|
+
export declare const DEFAULT_TIMEOUT_MS = 60000;
|
|
5
|
+
export declare const MAX_TIMEOUT_MS = 300000;
|
|
6
|
+
export declare const SUPPORTED_FRAMEWORKS: readonly ["bun", "vitest", "jest", "mocha", "pytest", "cargo", "pester"];
|
|
7
|
+
export type TestFramework = (typeof SUPPORTED_FRAMEWORKS)[number] | 'none';
|
|
8
|
+
export interface TestRunnerArgs {
|
|
9
|
+
scope?: 'all' | 'convention' | 'graph';
|
|
10
|
+
files?: string[];
|
|
11
|
+
coverage?: boolean;
|
|
12
|
+
timeout_ms?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface TestTotals {
|
|
15
|
+
passed: number;
|
|
16
|
+
failed: number;
|
|
17
|
+
skipped: number;
|
|
18
|
+
total: number;
|
|
19
|
+
}
|
|
20
|
+
export interface TestSuccessResult {
|
|
21
|
+
success: true;
|
|
22
|
+
framework: TestFramework;
|
|
23
|
+
scope: 'all' | 'convention' | 'graph';
|
|
24
|
+
command: string[];
|
|
25
|
+
timeout_ms: number;
|
|
26
|
+
duration_ms: number;
|
|
27
|
+
totals: TestTotals;
|
|
28
|
+
coveragePercent?: number;
|
|
29
|
+
rawOutput?: string;
|
|
30
|
+
message?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface TestErrorResult {
|
|
33
|
+
success: false;
|
|
34
|
+
framework: TestFramework;
|
|
35
|
+
scope: 'all' | 'convention' | 'graph';
|
|
36
|
+
command?: string[];
|
|
37
|
+
timeout_ms?: number;
|
|
38
|
+
duration_ms?: number;
|
|
39
|
+
totals?: TestTotals;
|
|
40
|
+
coveragePercent?: number;
|
|
41
|
+
error: string;
|
|
42
|
+
rawOutput?: string;
|
|
43
|
+
message?: string;
|
|
44
|
+
}
|
|
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>;
|
|
48
|
+
export declare const test_runner: ReturnType<typeof tool>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.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",
|