opencode-swarm 6.2.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.
@@ -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>;
@@ -0,0 +1,5 @@
1
+ import { tool } from '@opencode-ai/plugin';
2
+ /**
3
+ * Main imports tool implementation
4
+ */
5
+ export declare const imports: ReturnType<typeof tool>;
@@ -1,5 +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';
8
+ export { imports } from './imports';
9
+ export { lint } from './lint';
10
+ export { pkg_audit } from './pkg-audit';
5
11
  export { retrieve_summary } from './retrieve-summary';
12
+ export { schema_drift } from './schema-drift';
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,34 @@
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 SUPPORTED_LINTERS: readonly ["biome", "eslint"];
5
+ export type SupportedLinter = (typeof SUPPORTED_LINTERS)[number];
6
+ export interface LintSuccessResult {
7
+ success: true;
8
+ mode: 'fix' | 'check';
9
+ linter: SupportedLinter;
10
+ command: string[];
11
+ exitCode: number;
12
+ output: string;
13
+ message?: string;
14
+ }
15
+ export interface LintErrorResult {
16
+ success: false;
17
+ mode: 'fix' | 'check';
18
+ linter?: SupportedLinter;
19
+ command?: string[];
20
+ exitCode?: number;
21
+ output?: string;
22
+ error: string;
23
+ message?: string;
24
+ }
25
+ export type LintResult = LintSuccessResult | LintErrorResult;
26
+ export declare function containsPathTraversal(str: string): boolean;
27
+ export declare function containsControlChars(str: string): boolean;
28
+ export declare function validateArgs(args: unknown): args is {
29
+ mode: 'fix' | 'check';
30
+ };
31
+ export declare function getLinterCommand(linter: SupportedLinter, mode: 'fix' | 'check'): string[];
32
+ export declare function detectAvailableLinter(): Promise<SupportedLinter | null>;
33
+ export declare function runLint(linter: SupportedLinter, mode: 'fix' | 'check'): Promise<LintResult>;
34
+ export declare const lint: ReturnType<typeof tool>;
@@ -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,31 @@
1
+ import { tool } from '@opencode-ai/plugin';
2
+ type SecretType = 'api_key' | 'aws_access_key' | 'aws_secret_key' | 'private_key' | 'password' | 'secret_token' | 'bearer_token' | 'basic_auth' | 'database_url' | 'jwt' | 'github_token' | 'slack_token' | 'stripe_key' | 'sendgrid_key' | 'twilio_key' | 'generic_token' | 'high_entropy';
3
+ type Confidence = 'high' | 'medium' | 'low';
4
+ type Severity = 'critical' | 'high' | 'medium' | 'low';
5
+ export interface SecretFinding {
6
+ path: string;
7
+ line: number;
8
+ type: SecretType;
9
+ confidence: Confidence;
10
+ severity: Severity;
11
+ redacted: string;
12
+ context: string;
13
+ }
14
+ export interface SecretscanResult {
15
+ scan_dir: string;
16
+ findings: SecretFinding[];
17
+ count: number;
18
+ files_scanned: number;
19
+ skipped_files: number;
20
+ message?: string;
21
+ }
22
+ export interface SecretscanErrorResult {
23
+ error: string;
24
+ scan_dir: string;
25
+ findings: [];
26
+ count: 0;
27
+ files_scanned: 0;
28
+ skipped_files: 0;
29
+ }
30
+ export declare const secretscan: ReturnType<typeof tool>;
31
+ export {};
@@ -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.2.0",
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",