opencode-sandbox 0.1.0 → 0.1.2
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/dist/index.js +5 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -109,9 +109,13 @@ var SandboxPlugin = async ({ directory, worktree }) => {
|
|
|
109
109
|
return;
|
|
110
110
|
const text = output.output ?? "";
|
|
111
111
|
if (text.includes("Operation not permitted") || text.includes("Connection blocked by network allowlist")) {
|
|
112
|
-
|
|
112
|
+
const annotation = text + `
|
|
113
113
|
|
|
114
114
|
⚠️ [opencode-sandbox] Command blocked or partially blocked by sandbox restrictions. ` + "Adjust config in .opencode/sandbox.json or OPENCODE_SANDBOX_CONFIG.";
|
|
115
|
+
output.output = annotation;
|
|
116
|
+
if (output.metadata && typeof output.metadata.output === "string") {
|
|
117
|
+
output.metadata.output = annotation;
|
|
118
|
+
}
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
121
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sandbox",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
37
|
-
"url": "https://github.com/isanchez31/opencode-sandbox-plugin.git"
|
|
37
|
+
"url": "git+https://github.com/isanchez31/opencode-sandbox-plugin.git"
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/isanchez31/opencode-sandbox-plugin#readme",
|
|
40
40
|
"bugs": {
|