opencode-sandbox 0.1.4 → 0.1.14

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.
Files changed (2) hide show
  1. package/dist/index.js +0 -10
  2. package/package.json +6 -1
package/dist/index.js CHANGED
@@ -109,16 +109,6 @@ var SandboxPlugin = async ({ directory, worktree }) => {
109
109
  "tool.execute.after": async (input, output) => {
110
110
  if (input.tool !== "bash")
111
111
  return;
112
- const text = output.output ?? "";
113
- if (text.includes("Operation not permitted") || text.includes("Connection blocked by network allowlist")) {
114
- const message = "⚠️ [opencode-sandbox] Command blocked or partially blocked by sandbox restrictions. " + "Adjust config in .opencode/sandbox.json or OPENCODE_SANDBOX_CONFIG.";
115
- output.output = text + `
116
-
117
- ` + message;
118
- if (output.metadata && typeof output.metadata.output === "string") {
119
- output.metadata.output = message;
120
- }
121
- }
122
112
  if (lastOriginalCommand && input.args && typeof input.args.command === "string") {
123
113
  input.args.command = lastOriginalCommand;
124
114
  lastOriginalCommand = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sandbox",
3
- "version": "0.1.4",
3
+ "version": "0.1.14",
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",
@@ -42,6 +42,11 @@
42
42
  },
43
43
  "author": "Ivan Sanchez <ivan31.sanchez@gmail.com>",
44
44
  "license": "MIT",
45
+ "publishConfig": {
46
+ "access": "public",
47
+ "provenance": true,
48
+ "registry": "https://registry.npmjs.org/"
49
+ },
45
50
  "dependencies": {
46
51
  "@anthropic-ai/sandbox-runtime": "^0.0.37"
47
52
  },