opencode-sandbox 0.1.17 → 0.1.19
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 +2 -25
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -186,32 +186,9 @@ The AI model interprets sandbox errors (like "Read-only file system" or "Connect
|
|
|
186
186
|
|
|
187
187
|
If anything goes wrong (sandbox init fails, wrapping fails, platform unsupported), commands run normally without sandbox. The plugin never breaks your workflow.
|
|
188
188
|
|
|
189
|
-
##
|
|
189
|
+
## Contributing
|
|
190
190
|
|
|
191
|
-
|
|
192
|
-
# Clone and install
|
|
193
|
-
git clone https://github.com/isanchez31/opencode-sandbox-plugin.git
|
|
194
|
-
cd opencode-sandbox-plugin
|
|
195
|
-
bun install
|
|
196
|
-
|
|
197
|
-
# Run tests
|
|
198
|
-
bun test
|
|
199
|
-
|
|
200
|
-
# Build
|
|
201
|
-
bun run build
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
## Architecture
|
|
205
|
-
|
|
206
|
-
```
|
|
207
|
-
src/
|
|
208
|
-
├── index.ts # Plugin entry — exports SandboxPlugin, hooks into tool.execute.before/after
|
|
209
|
-
└── config.ts # Config loading (env var, .opencode/sandbox.json) + defaults + path validation
|
|
210
|
-
|
|
211
|
-
test/
|
|
212
|
-
├── config.test.ts # Unit tests for config resolution and path safety
|
|
213
|
-
└── plugin.test.ts # Integration tests for plugin hooks
|
|
214
|
-
```
|
|
191
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, architecture, and guidelines.
|
|
215
192
|
|
|
216
193
|
## Related
|
|
217
194
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sandbox",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "OpenCode plugin that sandboxes agent commands using @anthropic-ai/sandbox-runtime (seatbelt on macOS, bubblewrap on Linux)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"lint": "biome lint .",
|
|
25
25
|
"format": "biome format .",
|
|
26
26
|
"format:fix": "biome format --write .",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
27
28
|
"check": "biome check .",
|
|
28
29
|
"check:fix": "biome check --write .",
|
|
29
30
|
"prepublishOnly": "bun run build"
|