opencode-swarm-plugin 0.54.0 → 0.55.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 +14 -12
- package/bin/swarm.ts +3 -15
- package/dist/bin/swarm.js +194 -111
- package/dist/examples/plugin-wrapper-template.ts +18 -3
- package/dist/hooks/atomic-write.d.ts +21 -0
- package/dist/hooks/atomic-write.d.ts.map +1 -0
- package/dist/hooks/constants.d.ts +28 -0
- package/dist/hooks/constants.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +16 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/session-start.d.ts +30 -0
- package/dist/hooks/session-start.d.ts.map +1 -0
- package/dist/hooks/tool-complete.d.ts +54 -0
- package/dist/hooks/tool-complete.d.ts.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +68 -30
- package/dist/output-guardrails.d.ts.map +1 -1
- package/dist/plugin.js +68 -30
- package/dist/swarm-mail.d.ts +34 -0
- package/dist/swarm-mail.d.ts.map +1 -1
- package/dist/swarm-orchestrate.d.ts +1 -1
- package/dist/swarm-orchestrate.d.ts.map +1 -1
- package/dist/swarm-prompts.d.ts +1 -1
- package/dist/swarm-prompts.d.ts.map +1 -1
- package/dist/swarm-prompts.js +1 -30
- package/dist/tool-availability.d.ts +1 -2
- package/dist/tool-availability.d.ts.map +1 -1
- package/examples/plugin-wrapper-template.ts +18 -3
- package/global-skills/swarm-coordination/SKILL.md +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -218,18 +218,6 @@ pip install -e .
|
|
|
218
218
|
cass index # Run periodically to index new sessions
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
-
### Bug Scanning (UBS)
|
|
222
|
-
|
|
223
|
-
Auto-runs on subtask completion:
|
|
224
|
-
|
|
225
|
-
```bash
|
|
226
|
-
git clone https://github.com/Dicklesworthstone/ultimate_bug_scanner
|
|
227
|
-
cd ultimate_bug_scanner
|
|
228
|
-
pip install -e .
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
Check status: `swarm doctor`
|
|
232
|
-
|
|
233
221
|
---
|
|
234
222
|
|
|
235
223
|
## Core Concepts
|
|
@@ -498,6 +486,20 @@ When eval scores drop >15% from baseline, failure context is automatically store
|
|
|
498
486
|
|
|
499
487
|
See **[evals/README.md](./evals/README.md)** for full architecture, scorer details, CI integration, and how to write new evals.
|
|
500
488
|
|
|
489
|
+
### Maintenance
|
|
490
|
+
|
|
491
|
+
**Clean test session files:**
|
|
492
|
+
|
|
493
|
+
```bash
|
|
494
|
+
# Remove test session files from global sessions directory
|
|
495
|
+
./scripts/clean-test-sessions.sh
|
|
496
|
+
|
|
497
|
+
# Dry run (see what would be deleted)
|
|
498
|
+
./scripts/clean-test-sessions.sh --dry-run
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
Test session files (`test*.jsonl`, `no-context*.jsonl`, `timing-test*.jsonl`) accumulate in `~/.config/swarm-tools/sessions/` during development. Run this script periodically to clean them up.
|
|
502
|
+
|
|
501
503
|
---
|
|
502
504
|
|
|
503
505
|
## CLI Reference
|
package/bin/swarm.ts
CHANGED
|
@@ -504,15 +504,6 @@ const DEPENDENCIES: Dependency[] = [
|
|
|
504
504
|
installType: "manual",
|
|
505
505
|
description: "Indexes and searches AI coding agent history for context",
|
|
506
506
|
},
|
|
507
|
-
{
|
|
508
|
-
name: "UBS (Ultimate Bug Scanner)",
|
|
509
|
-
command: "ubs",
|
|
510
|
-
checkArgs: ["--help"],
|
|
511
|
-
required: false,
|
|
512
|
-
install: "https://github.com/Dicklesworthstone/ultimate_bug_scanner",
|
|
513
|
-
installType: "manual",
|
|
514
|
-
description: "AI-powered static analysis for pre-completion bug scanning",
|
|
515
|
-
},
|
|
516
507
|
{
|
|
517
508
|
name: "Ollama",
|
|
518
509
|
command: "ollama",
|
|
@@ -1409,7 +1400,7 @@ skills_list()
|
|
|
1409
1400
|
# Check what MCP servers are available (look for context7, pdf-brain, fetch, etc.)
|
|
1410
1401
|
# Note: No direct MCP listing tool - infer from task context or ask coordinator
|
|
1411
1402
|
|
|
1412
|
-
# Check for CLI tools if relevant (bd, cass,
|
|
1403
|
+
# Check for CLI tools if relevant (bd, cass, ollama)
|
|
1413
1404
|
# Use Bash tool to check: which <tool-name>
|
|
1414
1405
|
\`\`\`
|
|
1415
1406
|
|
|
@@ -1538,7 +1529,6 @@ bash("which <tool>", description="Check if <tool> is available")
|
|
|
1538
1529
|
|
|
1539
1530
|
# Examples:
|
|
1540
1531
|
bash("which cass", description="Check CASS availability")
|
|
1541
|
-
bash("which ubs", description="Check UBS availability")
|
|
1542
1532
|
bash("ollama --version", description="Check Ollama availability")
|
|
1543
1533
|
\`\`\`
|
|
1544
1534
|
|
|
@@ -1610,8 +1600,6 @@ function getFixCommand(dep: Dependency): string | null {
|
|
|
1610
1600
|
return "brew install redis && brew services start redis";
|
|
1611
1601
|
case "CASS (Coding Agent Session Search)":
|
|
1612
1602
|
return "See: https://github.com/Dicklesworthstone/coding_agent_session_search";
|
|
1613
|
-
case "UBS (Ultimate Bug Scanner)":
|
|
1614
|
-
return "See: https://github.com/Dicklesworthstone/ultimate_bug_scanner";
|
|
1615
1603
|
default:
|
|
1616
1604
|
// Fallback to generic install command if available
|
|
1617
1605
|
return dep.installType !== "manual" ? dep.install : null;
|
|
@@ -1683,7 +1671,7 @@ async function doctor(debug = false) {
|
|
|
1683
1671
|
// Check skills
|
|
1684
1672
|
p.log.step("Skills:");
|
|
1685
1673
|
const configDir = join(homedir(), ".config", "opencode");
|
|
1686
|
-
const globalSkillsPath = join(configDir, "
|
|
1674
|
+
const globalSkillsPath = join(configDir, "skill");
|
|
1687
1675
|
const bundledSkillsPath = join(__dirname, "..", "global-skills");
|
|
1688
1676
|
|
|
1689
1677
|
// Global skills directory
|
|
@@ -2743,7 +2731,7 @@ function config() {
|
|
|
2743
2731
|
const plannerAgentPath = join(agentDir, "swarm-planner.md");
|
|
2744
2732
|
const workerAgentPath = join(agentDir, "swarm-worker.md");
|
|
2745
2733
|
const researcherAgentPath = join(agentDir, "swarm-researcher.md");
|
|
2746
|
-
const globalSkillsPath = join(configDir, "
|
|
2734
|
+
const globalSkillsPath = join(configDir, "skill");
|
|
2747
2735
|
|
|
2748
2736
|
console.log(yellow(BANNER));
|
|
2749
2737
|
console.log(dim(" " + TAGLINE + " v" + VERSION));
|