opencode-swarm 6.14.12 → 6.16.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 +31 -1
- package/dist/build/discovery.d.ts +4 -0
- package/dist/commands/analyze.d.ts +5 -0
- package/dist/commands/clarify.d.ts +5 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/specify.d.ts +5 -0
- package/dist/index.js +17464 -15089
- package/dist/lang/detector.d.ts +20 -0
- package/dist/lang/grammars/tree-sitter-dart.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-kotlin.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-swift.wasm +0 -0
- package/dist/lang/index.d.ts +2 -0
- package/dist/lang/profiles.d.ts +71 -0
- package/dist/sast/semgrep.d.ts +4 -0
- package/dist/tools/lint.d.ts +18 -2
- package/dist/tools/test-runner.d.ts +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -357,7 +357,7 @@ Per-agent overrides:
|
|
|
357
357
|
|
|
358
358
|
| Tool | What It Does |
|
|
359
359
|
|------|-------------|
|
|
360
|
-
| syntax_check | Tree-sitter validation across
|
|
360
|
+
| syntax_check | Tree-sitter validation across 11 languages |
|
|
361
361
|
| placeholder_scan | Catches TODOs, FIXMEs, stubs, placeholder text |
|
|
362
362
|
| sast_scan | Offline security analysis, 63+ rules, 9 languages |
|
|
363
363
|
| sbom_generate | CycloneDX dependency tracking, 8 ecosystems |
|
|
@@ -546,6 +546,9 @@ When truncation is active, a footer is appended:
|
|
|
546
546
|
| `/swarm preflight` | Run phase preflight checks |
|
|
547
547
|
| `/swarm config doctor [--fix]` | Config validation with optional auto-fix |
|
|
548
548
|
| `/swarm sync-plan` | Force plan.md regeneration from plan.json |
|
|
549
|
+
| `/swarm specify [description]` | Generate or import a feature specification |
|
|
550
|
+
| `/swarm clarify [topic]` | Clarify and refine an existing feature specification |
|
|
551
|
+
| `/swarm analyze` | Analyze spec.md vs plan.md for requirement coverage gaps |
|
|
549
552
|
|
|
550
553
|
</details>
|
|
551
554
|
|
|
@@ -709,6 +712,33 @@ bun test
|
|
|
709
712
|
|
|
710
713
|
---
|
|
711
714
|
|
|
715
|
+
## Supported Languages
|
|
716
|
+
|
|
717
|
+
OpenCode Swarm v6.16+ ships with language profiles for 11 languages across three quality tiers. All tools use graceful degradation — if a binary is not on PATH, the tool skips with a soft warning rather than a hard failure.
|
|
718
|
+
|
|
719
|
+
| Language | Tier | Syntax | Build | Test | Lint | Audit | SAST |
|
|
720
|
+
|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
|
|
721
|
+
| TypeScript / JavaScript | 1 | ✅ | ✅ | ✅ | ✅ Biome / ESLint | ✅ npm audit | ✅ Semgrep |
|
|
722
|
+
| Python | 1 | ✅ | ✅ | ✅ pytest | ✅ ruff | ✅ pip-audit | ✅ Semgrep |
|
|
723
|
+
| Rust | 1 | ✅ | ✅ | ✅ cargo test | ✅ clippy | ✅ cargo audit | ✅ Semgrep |
|
|
724
|
+
| Go | 1 | ✅ | ✅ | ✅ go test | ✅ golangci-lint | ✅ govulncheck | ✅ Semgrep |
|
|
725
|
+
| Java | 2 | ✅ | ✅ Gradle / Maven | ✅ JUnit | ✅ Checkstyle | — | ✅ Semgrep |
|
|
726
|
+
| Kotlin | 2 | ✅ | ✅ Gradle | ✅ JUnit | ✅ ktlint | — | 🔶 Semgrep beta |
|
|
727
|
+
| C# / .NET | 2 | ✅ | ✅ dotnet build | ✅ dotnet test | ✅ dotnet format | ✅ dotnet list | ✅ Semgrep |
|
|
728
|
+
| C / C++ | 2 | ✅ | ✅ cmake / make | ✅ ctest | ✅ cppcheck | — | 🔶 Semgrep exp. |
|
|
729
|
+
| Swift | 2 | ✅ | ✅ swift build | ✅ swift test | ✅ swiftlint | — | 🔶 Semgrep exp. |
|
|
730
|
+
| Dart / Flutter | 3 | ✅ | ✅ dart pub | ✅ dart test | ✅ dart analyze | ✅ dart pub outdated | — |
|
|
731
|
+
| Ruby | 3 | ✅ | — | ✅ RSpec / minitest | ✅ RuboCop | ✅ bundle-audit | 🔶 Semgrep exp. |
|
|
732
|
+
|
|
733
|
+
**Tier definitions:**
|
|
734
|
+
- **Tier 1** — Full pipeline: all tools integrated and tested end-to-end.
|
|
735
|
+
- **Tier 2** — Strong coverage: most tools integrated; some optional (audit, SAST).
|
|
736
|
+
- **Tier 3** — Basic coverage: core tools integrated; advanced tooling limited.
|
|
737
|
+
|
|
738
|
+
> All binaries are optional. Missing tools produce a soft warning and skip — the pipeline never hard-fails on a missing linter or auditor.
|
|
739
|
+
|
|
740
|
+
---
|
|
741
|
+
|
|
712
742
|
## Roadmap
|
|
713
743
|
|
|
714
744
|
See [CHANGELOG.md](CHANGELOG.md) for shipped features.
|
|
@@ -21,6 +21,10 @@ export interface BuildDiscoveryOptions {
|
|
|
21
21
|
* Uses 'where' on Windows, 'which' on Unix
|
|
22
22
|
*/
|
|
23
23
|
export declare function isCommandAvailable(command: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Discover build commands using language profiles (primary detection path)
|
|
26
|
+
*/
|
|
27
|
+
export declare function discoverBuildCommandsFromProfiles(workingDir: string): Promise<BuildDiscoveryResult>;
|
|
24
28
|
/**
|
|
25
29
|
* Discover build commands for a given working directory
|
|
26
30
|
*/
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { AgentDefinition } from '../agents';
|
|
2
2
|
export { handleAgentsCommand } from './agents';
|
|
3
|
+
export { handleAnalyzeCommand } from './analyze';
|
|
3
4
|
export { handleArchiveCommand } from './archive';
|
|
4
5
|
export { handleBenchmarkCommand } from './benchmark';
|
|
6
|
+
export { handleClarifyCommand } from './clarify';
|
|
5
7
|
export { handleConfigCommand } from './config';
|
|
6
8
|
export { handleDiagnoseCommand } from './diagnose';
|
|
7
9
|
export { handleDoctorCommand } from './doctor';
|
|
@@ -12,6 +14,7 @@ export { handlePlanCommand } from './plan';
|
|
|
12
14
|
export { handlePreflightCommand } from './preflight';
|
|
13
15
|
export { handleResetCommand } from './reset';
|
|
14
16
|
export { handleRetrieveCommand } from './retrieve';
|
|
17
|
+
export { handleSpecifyCommand } from './specify';
|
|
15
18
|
export { handleStatusCommand } from './status';
|
|
16
19
|
export { handleSyncPlanCommand } from './sync-plan';
|
|
17
20
|
/**
|