opencode-swarm 6.3.0 → 6.6.1

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.
@@ -0,0 +1,2 @@
1
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ export declare const checkpoint: ToolDefinition;
@@ -0,0 +1,2 @@
1
+ import { tool } from '@opencode-ai/plugin';
2
+ export declare const complexity_hotspots: ReturnType<typeof tool>;
@@ -0,0 +1,2 @@
1
+ import { tool } from '@opencode-ai/plugin';
2
+ export declare const evidence_check: ReturnType<typeof tool>;
@@ -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,2 @@
1
+ import { tool } from '@opencode-ai/plugin';
2
+ export declare const pkg_audit: ReturnType<typeof tool>;
@@ -0,0 +1,2 @@
1
+ import { tool } from '@opencode-ai/plugin';
2
+ export declare const schema_drift: ReturnType<typeof tool>;
@@ -0,0 +1,2 @@
1
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ export declare const symbols: ToolDefinition;
@@ -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>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * ADVERSARIAL SECURITY TESTS FOR test-runner.ts
3
+ * Testing ONLY attack vectors - identifies which inputs are REJECTED vs ACCEPTED
4
+ */
5
+ export {};
@@ -0,0 +1,2 @@
1
+ import { tool } from '@opencode-ai/plugin';
2
+ export declare const todo_extract: ReturnType<typeof tool>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.3.0",
3
+ "version": "6.6.1",
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",