@guyghost/swarm-dao-cli 0.3.0 → 0.3.1
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 +22 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -68,6 +68,28 @@ overridden. The `sandbox` section is optional: `mode` is `none` (default),
|
|
|
68
68
|
in. Evidence accumulates under `.dao/improvement-series/` and
|
|
69
69
|
`.dao/improvement-cycles/` (override with `--evidence-root` / `--cycle-root`).
|
|
70
70
|
|
|
71
|
+
### 4. Sandboxed proposal execution (optional)
|
|
72
|
+
|
|
73
|
+
By default proposal execution runs on the host. `.dao/config.json` can bind
|
|
74
|
+
execution to a git worktree — optionally inside a bounded container
|
|
75
|
+
(ADR-003):
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"execution": {
|
|
80
|
+
"isolation": "sandbox",
|
|
81
|
+
"worktreeRoot": ".dao/worktrees",
|
|
82
|
+
"baseBranch": "main",
|
|
83
|
+
"sandbox": { "runtime": "container", "image": "node:22-bookworm", "cpus": 2, "memoryMb": 2048 }
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`isolation` is `none` (default), `worktree` (host worktree), or `sandbox`
|
|
89
|
+
(worktree + container: repository mounted at `/workspace`, network disabled,
|
|
90
|
+
CPU/memory capped). The container runtime is probed before anything runs — a
|
|
91
|
+
missing runtime is an honest error, never a silent host fallback.
|
|
92
|
+
|
|
71
93
|
## Commands
|
|
72
94
|
|
|
73
95
|
| Command | Purpose |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guyghost/swarm-dao-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Swarm DAO standalone CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"prepublishOnly": "bun run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@guyghost/swarm-dao-core": "^0.
|
|
29
|
-
"@guyghost/swarm-dao-improvement": "^0.2.
|
|
28
|
+
"@guyghost/swarm-dao-core": "^0.10.0",
|
|
29
|
+
"@guyghost/swarm-dao-improvement": "^0.2.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/bun": "latest"
|