opencode-sandbox 0.1.2 → 0.1.3
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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -109,12 +109,12 @@ 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
|
-
const
|
|
112
|
+
const message = "⚠️ [opencode-sandbox] Command blocked or partially blocked by sandbox restrictions. " + "Adjust config in .opencode/sandbox.json or OPENCODE_SANDBOX_CONFIG.";
|
|
113
|
+
output.output = text + `
|
|
113
114
|
|
|
114
|
-
|
|
115
|
-
output.output = annotation;
|
|
115
|
+
` + message;
|
|
116
116
|
if (output.metadata && typeof output.metadata.output === "string") {
|
|
117
|
-
output.metadata.output =
|
|
117
|
+
output.metadata.output = message;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
package/package.json
CHANGED