opencode-swarm 6.8.1 → 6.9.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 +58 -76
- package/dist/agents/architect.d.ts +7 -0
- package/dist/agents/coder.d.ts +2 -0
- package/dist/agents/critic.d.ts +2 -0
- package/dist/agents/designer.d.ts +2 -0
- package/dist/agents/docs.d.ts +2 -0
- package/dist/agents/explorer.d.ts +2 -0
- package/dist/{src/agents → agents}/reviewer.d.ts +1 -2
- package/dist/agents/sme.d.ts +2 -0
- package/dist/{src/agents/coder.d.ts → agents/test-engineer.d.ts} +1 -2
- package/dist/{src/background → background}/trigger.d.ts +16 -0
- package/dist/build/discovery.d.ts +36 -0
- package/dist/config/evidence-schema.d.ts +1080 -0
- package/dist/config/loader.d.ts +32 -0
- package/dist/{src/config → config}/schema.d.ts +78 -169
- package/dist/{src/evidence → evidence}/manager.d.ts +19 -1
- package/dist/{src/index.d.ts → index.d.ts} +10 -0
- package/dist/index.js +8006 -2149
- 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/lang/index.d.ts +2 -0
- package/dist/lang/registry.d.ts +24 -0
- package/dist/lang/runtime.d.ts +35 -0
- package/dist/quality/index.d.ts +1 -0
- package/dist/quality/metrics.d.ts +20 -0
- package/dist/sast/rules/c.d.ts +9 -0
- package/dist/sast/rules/csharp.d.ts +9 -0
- package/dist/sast/rules/go.d.ts +9 -0
- package/dist/sast/rules/index.d.ts +72 -0
- package/dist/sast/rules/java.d.ts +9 -0
- package/dist/sast/rules/javascript.d.ts +9 -0
- package/dist/sast/rules/php.d.ts +9 -0
- package/dist/sast/rules/python.d.ts +9 -0
- package/dist/sast/semgrep.d.ts +64 -0
- package/dist/sbom/cyclonedx.d.ts +101 -0
- package/dist/sbom/detectors/dart.d.ts +7 -0
- package/dist/sbom/detectors/dotnet.d.ts +7 -0
- package/dist/sbom/detectors/go.d.ts +7 -0
- package/dist/sbom/detectors/index.d.ts +53 -0
- package/dist/sbom/detectors/java.d.ts +7 -0
- package/dist/sbom/detectors/nodejs.d.ts +7 -0
- package/dist/sbom/detectors/python.d.ts +7 -0
- package/dist/sbom/detectors/rust.d.ts +7 -0
- package/dist/sbom/detectors/swift.d.ts +7 -0
- package/dist/services/config-doctor.test.d.ts +1 -0
- package/dist/{src/state.d.ts → state.d.ts} +0 -5
- package/dist/tools/build-check.d.ts +50 -0
- package/dist/{src/tools → tools}/gitingest.d.ts +1 -2
- package/dist/{src/tools → tools}/index.d.ts +6 -0
- package/dist/tools/placeholder-scan.d.ts +26 -0
- package/dist/tools/quality-budget.d.ts +24 -0
- package/dist/tools/sast-scan.d.ts +52 -0
- package/dist/tools/sbom-generate.d.ts +26 -0
- package/dist/tools/syntax-check.d.ts +35 -0
- package/dist/{src/tools/test-runner/constants.d.ts → tools/test-runner.d.ts} +4 -0
- package/dist/utils/index.d.ts +3 -0
- package/package.json +7 -2
- package/dist/src/agents/architect.d.ts +0 -8
- package/dist/src/agents/critic.d.ts +0 -3
- package/dist/src/agents/designer.d.ts +0 -3
- package/dist/src/agents/docs.d.ts +0 -3
- package/dist/src/agents/explorer.d.ts +0 -3
- package/dist/src/agents/model.d.ts +0 -2
- package/dist/src/agents/sme.d.ts +0 -3
- package/dist/src/agents/test-engineer.d.ts +0 -3
- package/dist/src/config/evidence-schema.d.ts +0 -447
- package/dist/src/config/loader.d.ts +0 -16
- package/dist/src/tools/test-runner/detect.d.ts +0 -2
- package/dist/src/tools/test-runner/discover.d.ts +0 -4
- package/dist/src/tools/test-runner/index.d.ts +0 -6
- package/dist/src/tools/test-runner/run.d.ts +0 -2
- package/dist/src/tools/test-runner/validate.d.ts +0 -2
- package/dist/src/utils/index.d.ts +0 -8
- /package/dist/{src/__tests__ → __tests__}/security-adversarial.test.d.ts +0 -0
- /package/dist/{src/agents → agents}/index.d.ts +0 -0
- /package/dist/{src/agents → agents}/test-engineer.adversarial.test.d.ts +0 -0
- /package/dist/{src/agents → agents}/test-engineer.security.test.d.ts +0 -0
- /package/dist/{src/background → background}/circuit-breaker.d.ts +0 -0
- /package/dist/{src/background → background}/event-bus.d.ts +0 -0
- /package/dist/{src/background → background}/evidence-summary-integration.d.ts +0 -0
- /package/dist/{src/background → background}/index.d.ts +0 -0
- /package/dist/{src/background → background}/manager.d.ts +0 -0
- /package/dist/{src/background → background}/plan-sync-worker.d.ts +0 -0
- /package/dist/{src/background → background}/queue.d.ts +0 -0
- /package/dist/{src/background → background}/status-artifact.d.ts +0 -0
- /package/dist/{src/background → background}/trigger.vulnerability.test.d.ts +0 -0
- /package/dist/{src/background → background}/worker.d.ts +0 -0
- /package/dist/{src/cli → cli}/index.d.ts +0 -0
- /package/dist/{src/commands → commands}/agents.d.ts +0 -0
- /package/dist/{src/commands → commands}/archive.d.ts +0 -0
- /package/dist/{src/commands → commands}/benchmark.d.ts +0 -0
- /package/dist/{src/commands → commands}/command-adapters.security.test.d.ts +0 -0
- /package/dist/{src/commands → commands}/commands.test.d.ts +0 -0
- /package/dist/{src/commands → commands}/config.d.ts +0 -0
- /package/dist/{src/commands → commands}/diagnose.d.ts +0 -0
- /package/dist/{src/commands → commands}/doctor.d.ts +0 -0
- /package/dist/{src/commands → commands}/evidence.d.ts +0 -0
- /package/dist/{src/commands → commands}/export.d.ts +0 -0
- /package/dist/{src/commands → commands}/history.d.ts +0 -0
- /package/dist/{src/commands → commands}/index.d.ts +0 -0
- /package/dist/{src/commands → commands}/plan.d.ts +0 -0
- /package/dist/{src/commands → commands}/preflight.d.ts +0 -0
- /package/dist/{src/commands → commands}/reset.d.ts +0 -0
- /package/dist/{src/commands → commands}/retrieve.d.ts +0 -0
- /package/dist/{src/commands → commands}/status.d.ts +0 -0
- /package/dist/{src/commands → commands}/sync-plan.d.ts +0 -0
- /package/dist/{src/config → config}/constants.d.ts +0 -0
- /package/dist/{src/config → config}/index.d.ts +0 -0
- /package/dist/{src/config → config}/plan-schema.d.ts +0 -0
- /package/dist/{src/evidence → evidence}/index.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/agent-activity.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/compaction-customizer.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/context-budget.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/context-scoring.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/delegation-gate.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/delegation-tracker.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/extractors.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/guardrails.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/index.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/phase-monitor.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/pipeline-tracker.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/system-enhancer.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/tool-summarizer.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/utils.d.ts +0 -0
- /package/dist/{src/plan → plan}/index.d.ts +0 -0
- /package/dist/{src/plan → plan}/manager.d.ts +0 -0
- /package/dist/{src/services/config-doctor.security.test.d.ts → sast/semgrep.test.d.ts} +0 -0
- /package/dist/{src/services → services}/config-doctor.d.ts +0 -0
- /package/dist/{src/services/config-doctor.test.d.ts → services/config-doctor.security.test.d.ts} +0 -0
- /package/dist/{src/services → services}/decision-drift-analyzer.d.ts +0 -0
- /package/dist/{src/services → services}/diagnose-service.d.ts +0 -0
- /package/dist/{src/services → services}/evidence-service.d.ts +0 -0
- /package/dist/{src/services → services}/evidence-summary-service.d.ts +0 -0
- /package/dist/{src/services → services}/export-service.d.ts +0 -0
- /package/dist/{src/services → services}/history-service.d.ts +0 -0
- /package/dist/{src/services → services}/index.d.ts +0 -0
- /package/dist/{src/services → services}/plan-service.d.ts +0 -0
- /package/dist/{src/services → services}/preflight-integration.d.ts +0 -0
- /package/dist/{src/services → services}/preflight-service.d.ts +0 -0
- /package/dist/{src/services → services}/status-service.d.ts +0 -0
- /package/dist/{src/summaries → summaries}/index.d.ts +0 -0
- /package/dist/{src/summaries → summaries}/manager.d.ts +0 -0
- /package/dist/{src/summaries → summaries}/summarizer.d.ts +0 -0
- /package/dist/{src/tools → tools}/checkpoint.d.ts +0 -0
- /package/dist/{src/tools → tools}/complexity-hotspots.d.ts +0 -0
- /package/dist/{src/tools → tools}/diff.d.ts +0 -0
- /package/dist/{src/tools → tools}/domain-detector.d.ts +0 -0
- /package/dist/{src/tools → tools}/evidence-check.d.ts +0 -0
- /package/dist/{src/tools → tools}/file-extractor.d.ts +0 -0
- /package/dist/{src/tools → tools}/imports.d.ts +0 -0
- /package/dist/{src/tools → tools}/lint.d.ts +0 -0
- /package/dist/{src/tools → tools}/pkg-audit.d.ts +0 -0
- /package/dist/{src/tools → tools}/retrieve-summary.d.ts +0 -0
- /package/dist/{src/tools → tools}/schema-drift.d.ts +0 -0
- /package/dist/{src/tools → tools}/secretscan.d.ts +0 -0
- /package/dist/{src/tools → tools}/symbols.d.ts +0 -0
- /package/dist/{src/tools → tools}/test-runner.security-adversarial.test.d.ts +0 -0
- /package/dist/{src/tools → tools}/todo-extract.d.ts +0 -0
- /package/dist/{src/utils → utils}/errors.d.ts +0 -0
- /package/dist/{src/utils → utils}/logger.d.ts +0 -0
- /package/dist/{src/utils → utils}/merge.d.ts +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { build_check } from './build-check';
|
|
1
2
|
export { checkpoint } from './checkpoint';
|
|
2
3
|
export { complexity_hotspots } from './complexity-hotspots';
|
|
3
4
|
export { type DiffErrorResult, type DiffResult, diff } from './diff';
|
|
@@ -8,9 +9,14 @@ export { fetchGitingest, type GitingestArgs, gitingest } from './gitingest';
|
|
|
8
9
|
export { imports } from './imports';
|
|
9
10
|
export { lint } from './lint';
|
|
10
11
|
export { pkg_audit } from './pkg-audit';
|
|
12
|
+
export { type PlaceholderFinding, type PlaceholderScanInput, type PlaceholderScanResult, placeholderScan, } from './placeholder-scan';
|
|
13
|
+
export { type QualityBudgetInput, type QualityBudgetResult, qualityBudget, } from './quality-budget';
|
|
11
14
|
export { retrieve_summary } from './retrieve-summary';
|
|
15
|
+
export { type SastScanFinding, type SastScanInput, type SastScanResult, sastScan, } from './sast-scan';
|
|
16
|
+
export { type SbomGenerateInput, type SbomGenerateResult, sbom_generate, } from './sbom-generate';
|
|
12
17
|
export { schema_drift } from './schema-drift';
|
|
13
18
|
export { type SecretFinding, type SecretscanResult, secretscan, } from './secretscan';
|
|
14
19
|
export { symbols } from './symbols';
|
|
20
|
+
export { type SyntaxCheckFileResult, type SyntaxCheckInput, type SyntaxCheckResult, syntaxCheck, } from './syntax-check';
|
|
15
21
|
export { test_runner } from './test-runner';
|
|
16
22
|
export { todo_extract } from './todo-extract';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { EvidenceVerdict } from '../config/evidence-schema';
|
|
2
|
+
export interface PlaceholderScanInput {
|
|
3
|
+
changed_files: string[];
|
|
4
|
+
allow_globs?: string[];
|
|
5
|
+
deny_patterns?: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface PlaceholderFinding {
|
|
8
|
+
path: string;
|
|
9
|
+
line: number;
|
|
10
|
+
kind: 'comment' | 'string' | 'function_body' | 'other';
|
|
11
|
+
excerpt: string;
|
|
12
|
+
rule_id: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PlaceholderScanResult {
|
|
15
|
+
verdict: EvidenceVerdict;
|
|
16
|
+
findings: PlaceholderFinding[];
|
|
17
|
+
summary: {
|
|
18
|
+
files_scanned: number;
|
|
19
|
+
findings_count: number;
|
|
20
|
+
files_with_findings: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Scan files for placeholder content (TODO/FIXME comments, stub implementations, etc.)
|
|
25
|
+
*/
|
|
26
|
+
export declare function placeholderScan(input: PlaceholderScanInput, directory: string): Promise<PlaceholderScanResult>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { QualityBudgetConfig } from '../config/schema';
|
|
2
|
+
import { type QualityMetrics, type QualityViolation } from '../quality/metrics';
|
|
3
|
+
export interface QualityBudgetInput {
|
|
4
|
+
changed_files: string[];
|
|
5
|
+
config?: Partial<QualityBudgetConfig>;
|
|
6
|
+
}
|
|
7
|
+
export interface QualityBudgetResult {
|
|
8
|
+
verdict: 'pass' | 'fail';
|
|
9
|
+
metrics: QualityMetrics;
|
|
10
|
+
violations: QualityViolation[];
|
|
11
|
+
summary: {
|
|
12
|
+
files_analyzed: number;
|
|
13
|
+
violations_count: number;
|
|
14
|
+
errors_count: number;
|
|
15
|
+
warnings_count: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Quality budget tool - enforces maintainability budgets for changed files
|
|
20
|
+
*
|
|
21
|
+
* Computes quality metrics (complexity, API, duplication, test ratio)
|
|
22
|
+
* and compares against configured thresholds to ensure code quality.
|
|
23
|
+
*/
|
|
24
|
+
export declare function qualityBudget(input: QualityBudgetInput, directory: string): Promise<QualityBudgetResult>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SAST Scan Tool - Static Application Security Testing
|
|
3
|
+
* Integrates Tier A rules (offline) and optional Semgrep (Tier B)
|
|
4
|
+
*/
|
|
5
|
+
import type { PluginConfig } from '../config';
|
|
6
|
+
import type { EvidenceVerdict } from '../config/evidence-schema';
|
|
7
|
+
export interface SastScanInput {
|
|
8
|
+
/** List of files to scan */
|
|
9
|
+
changed_files: string[];
|
|
10
|
+
/** Minimum severity that causes failure (default: 'medium') */
|
|
11
|
+
severity_threshold?: 'low' | 'medium' | 'high' | 'critical';
|
|
12
|
+
}
|
|
13
|
+
export interface SastScanResult {
|
|
14
|
+
/** Overall verdict: pass if no findings above threshold, fail otherwise */
|
|
15
|
+
verdict: EvidenceVerdict;
|
|
16
|
+
/** Array of security findings */
|
|
17
|
+
findings: SastScanFinding[];
|
|
18
|
+
/** Summary information */
|
|
19
|
+
summary: {
|
|
20
|
+
/** Engine used for scanning */
|
|
21
|
+
engine: 'tier_a' | 'tier_a+tier_b';
|
|
22
|
+
/** Number of files scanned */
|
|
23
|
+
files_scanned: number;
|
|
24
|
+
/** Total number of findings */
|
|
25
|
+
findings_count: number;
|
|
26
|
+
/** Breakdown of findings by severity */
|
|
27
|
+
findings_by_severity: {
|
|
28
|
+
critical: number;
|
|
29
|
+
high: number;
|
|
30
|
+
medium: number;
|
|
31
|
+
low: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface SastScanFinding {
|
|
36
|
+
rule_id: string;
|
|
37
|
+
severity: 'critical' | 'high' | 'medium' | 'low';
|
|
38
|
+
message: string;
|
|
39
|
+
location: {
|
|
40
|
+
file: string;
|
|
41
|
+
line: number;
|
|
42
|
+
column?: number;
|
|
43
|
+
};
|
|
44
|
+
remediation?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* SAST Scan tool - Static Application Security Testing
|
|
48
|
+
* Scans changed files for security vulnerabilities using:
|
|
49
|
+
* - Tier A: Built-in pattern-based rules (always runs)
|
|
50
|
+
* - Tier B: Semgrep (optional, if available on PATH)
|
|
51
|
+
*/
|
|
52
|
+
export declare function sastScan(input: SastScanInput, directory: string, config?: PluginConfig): Promise<SastScanResult>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SBOM Generate Tool
|
|
3
|
+
*
|
|
4
|
+
* Generates Software Bill of Materials (SBOM) by scanning project
|
|
5
|
+
* for manifest/lock files and generating CycloneDX format output.
|
|
6
|
+
*/
|
|
7
|
+
import { tool } from '@opencode-ai/plugin';
|
|
8
|
+
export interface SbomGenerateInput {
|
|
9
|
+
/** Scope of the scan: 'changed' for modified files only, 'all' for entire project */
|
|
10
|
+
scope: 'changed' | 'all';
|
|
11
|
+
/** Optional output directory (default: .swarm/evidence/sbom/) */
|
|
12
|
+
output_dir?: string;
|
|
13
|
+
/** Required if scope='changed': list of changed files */
|
|
14
|
+
changed_files?: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface SbomGenerateResult {
|
|
17
|
+
/** Verdict: 'pass' if SBOM generated successfully, 'skip' if no manifests found */
|
|
18
|
+
verdict: 'pass' | 'skip';
|
|
19
|
+
/** Array of manifest/lock file paths discovered */
|
|
20
|
+
files: string[];
|
|
21
|
+
/** Number of components in the SBOM */
|
|
22
|
+
components_count: number;
|
|
23
|
+
/** Path to the generated SBOM file */
|
|
24
|
+
output_path: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const sbom_generate: ReturnType<typeof tool>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { PluginConfig } from '../config';
|
|
2
|
+
import type { EvidenceVerdict } from '../config/evidence-schema';
|
|
3
|
+
export interface SyntaxCheckInput {
|
|
4
|
+
/** Files to check (from diff gate) */
|
|
5
|
+
changed_files: Array<{
|
|
6
|
+
path: string;
|
|
7
|
+
additions: number;
|
|
8
|
+
}>;
|
|
9
|
+
/** Check mode: 'changed' = only changed files, 'all' = all files in repo */
|
|
10
|
+
mode?: 'changed' | 'all';
|
|
11
|
+
/** Optional: restrict to specific languages */
|
|
12
|
+
languages?: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface SyntaxCheckFileResult {
|
|
15
|
+
path: string;
|
|
16
|
+
language: string;
|
|
17
|
+
ok: boolean;
|
|
18
|
+
errors: Array<{
|
|
19
|
+
line: number;
|
|
20
|
+
column: number;
|
|
21
|
+
message: string;
|
|
22
|
+
}>;
|
|
23
|
+
skipped_reason?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface SyntaxCheckResult {
|
|
26
|
+
verdict: EvidenceVerdict;
|
|
27
|
+
files: SyntaxCheckFileResult[];
|
|
28
|
+
summary: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Run syntax check on changed files
|
|
32
|
+
*
|
|
33
|
+
* Respects config.gates.syntax_check.enabled - returns skipped if disabled
|
|
34
|
+
*/
|
|
35
|
+
export declare function syntaxCheck(input: SyntaxCheckInput, directory: string, config?: PluginConfig): Promise<SyntaxCheckResult>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { tool } from '@opencode-ai/plugin';
|
|
1
2
|
export declare const MAX_OUTPUT_BYTES = 512000;
|
|
2
3
|
export declare const MAX_COMMAND_LENGTH = 500;
|
|
3
4
|
export declare const DEFAULT_TIMEOUT_MS = 60000;
|
|
@@ -42,3 +43,6 @@ export interface TestErrorResult {
|
|
|
42
43
|
message?: string;
|
|
43
44
|
}
|
|
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.9.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",
|
|
@@ -21,12 +21,15 @@
|
|
|
21
21
|
],
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
+
"dist/lang/grammars",
|
|
24
25
|
"README.md",
|
|
25
26
|
"LICENSE"
|
|
26
27
|
],
|
|
27
28
|
"scripts": {
|
|
28
29
|
"clean": "rm -rf dist",
|
|
29
|
-
"
|
|
30
|
+
"copy-grammars": "bun run scripts/copy-grammars.ts",
|
|
31
|
+
"build": "rm -rf dist && bun run copy-grammars && bun build src/index.ts --outdir dist --target bun --format esm && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm && bun run scripts/copy-grammars.ts --to-dist && tsc --emitDeclarationOnly",
|
|
32
|
+
"postinstall": "bun run copy-grammars",
|
|
30
33
|
"typecheck": "tsc --noEmit",
|
|
31
34
|
"test": "bun test",
|
|
32
35
|
"lint": "biome lint .",
|
|
@@ -38,6 +41,8 @@
|
|
|
38
41
|
"dependencies": {
|
|
39
42
|
"@opencode-ai/plugin": "^1.1.53",
|
|
40
43
|
"@opencode-ai/sdk": "^1.1.53",
|
|
44
|
+
"@vscode/tree-sitter-wasm": "^0.3.0",
|
|
45
|
+
"web-tree-sitter": "^0.25.0",
|
|
41
46
|
"zod": "^4.1.8"
|
|
42
47
|
},
|
|
43
48
|
"devDependencies": {
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AgentConfig } from '@opencode-ai/sdk';
|
|
2
|
-
import { type ModelSentinel } from './model';
|
|
3
|
-
export interface AgentDefinition {
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
config: AgentConfig;
|
|
7
|
-
}
|
|
8
|
-
export declare function createArchitectAgent(model?: ModelSentinel, customPrompt?: string, customAppendPrompt?: string): AgentDefinition;
|
package/dist/src/agents/sme.d.ts
DELETED