opencode-swarm 6.19.4 → 6.19.6
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 +35 -0
- package/dist/cli/index.js +6796 -6785
- package/dist/index.js +3071 -1383
- package/dist/tools/pre-check-batch.d.ts +3 -1
- package/dist/tools/save-plan.d.ts +8 -0
- package/package.json +1 -4
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**Your AI writes the code. Swarm makes sure it actually works.**
|
|
4
4
|
|
|
5
|
+
https://swarmai.site/
|
|
6
|
+
|
|
5
7
|
OpenCode Swarm is a plugin for [OpenCode](https://opencode.ai) that turns a single AI coding agent into a team of nine. One agent writes the code. A different agent reviews it. Another writes and runs tests. Another catches security issues. Nothing ships until every check passes. Your project state is saved to disk, so you can close your laptop, come back tomorrow, and pick up exactly where you left off.
|
|
6
8
|
|
|
7
9
|
```bash
|
|
@@ -321,6 +323,39 @@ Every completed task writes structured evidence to `.swarm/evidence/`:
|
|
|
321
323
|
|
|
322
324
|
</details>
|
|
323
325
|
|
|
326
|
+
<details>
|
|
327
|
+
<summary><strong>Save Plan Tool: Target Workspace Requirement</strong></summary>
|
|
328
|
+
|
|
329
|
+
The `save_plan` tool requires an explicit target workspace path. It does **not** fall back to `process.cwd()`.
|
|
330
|
+
|
|
331
|
+
### Explicit Workspace Requirement
|
|
332
|
+
|
|
333
|
+
- The `working_directory` parameter must be provided
|
|
334
|
+
- Providing no value or relying on implicit directory resolution will result in deterministic failure
|
|
335
|
+
|
|
336
|
+
### Failure Conditions
|
|
337
|
+
|
|
338
|
+
| Condition | Behavior |
|
|
339
|
+
|-----------|----------|
|
|
340
|
+
| Missing (`undefined` / `null`) | Fails with: "Target workspace is required" |
|
|
341
|
+
| Empty or whitespace-only | Fails with: "Target workspace cannot be empty or whitespace" |
|
|
342
|
+
| Path traversal (`..`) | Fails with: "Target workspace cannot contain path traversal" |
|
|
343
|
+
|
|
344
|
+
### Usage Contract
|
|
345
|
+
|
|
346
|
+
When using `save_plan`, always pass a valid `working_directory`:
|
|
347
|
+
|
|
348
|
+
```typescript
|
|
349
|
+
save_plan({
|
|
350
|
+
title: "My Project",
|
|
351
|
+
swarm_id: "mega",
|
|
352
|
+
phases: [{ id: 1, name: "Setup", tasks: [{ id: "1.1", description: "Initialize project" }] }],
|
|
353
|
+
working_directory: "/path/to/project" // Required - no fallback
|
|
354
|
+
})
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
</details>
|
|
358
|
+
|
|
324
359
|
<details>
|
|
325
360
|
<summary><strong>Guardrails and Circuit Breakers</strong></summary>
|
|
326
361
|
|