@bakers-build/addon-opencode 0.7.1-next.4 → 0.7.1-next.6
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/src/index.js +4 -4
- package/package.json +4 -4
package/dist/src/index.js
CHANGED
|
@@ -58,13 +58,13 @@ export class OpencodeAgent {
|
|
|
58
58
|
constructor(options = {}, storageRoot = defaultOpencodeStorageRoot()) {
|
|
59
59
|
this.storageRoot = storageRoot;
|
|
60
60
|
// OpenCode has no OS sandbox, so its default is system, not the shared sandbox.
|
|
61
|
-
this.security = resolveSecurityOptions({ ...options,
|
|
61
|
+
this.security = resolveSecurityOptions({ ...options, permissions: options.permissions ?? 'system' }, SANDBOX_DEFAULTS);
|
|
62
62
|
this.runEnvPolicy = this.security.runEnvPolicy;
|
|
63
63
|
if (this.security.mode === 'sandbox') {
|
|
64
|
-
throw new Error("OpenCode has no OS sandbox, so
|
|
64
|
+
throw new Error("OpenCode has no OS sandbox, so permissions: 'sandbox' cannot be enforced; leave permissions unset or set 'system' (your own OpenCode configuration) or 'yolo'");
|
|
65
65
|
}
|
|
66
66
|
if (this.security.mode === 'custom') {
|
|
67
|
-
throw new Error("OpenCode has no config hand-off for
|
|
67
|
+
throw new Error("OpenCode has no config hand-off for permissions: 'custom'; use permissions: 'system' with your own OpenCode configuration");
|
|
68
68
|
}
|
|
69
69
|
const cli = resolveAgentCliOptions(options, OPENCODE_RESERVED, OPENCODE_KNOWN);
|
|
70
70
|
this.args = cli.args;
|
|
@@ -176,7 +176,7 @@ export function opencodeAgent(options = {}) {
|
|
|
176
176
|
kind: 'agent',
|
|
177
177
|
id: 'opencode',
|
|
178
178
|
requiredModules: [],
|
|
179
|
-
|
|
179
|
+
permissions: agent.security.report,
|
|
180
180
|
async createAgent() {
|
|
181
181
|
return agent;
|
|
182
182
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-opencode",
|
|
3
|
-
"version": "0.7.1-next.
|
|
3
|
+
"version": "0.7.1-next.6",
|
|
4
4
|
"description": "bakers.build agent plugin for the OpenCode CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"directory": "bakers-cli/addons/opencode"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@bakers-build/conductor": "^0.7.1-next.
|
|
24
|
-
"@bakers-build/core": "^0.7.1-next.
|
|
23
|
+
"@bakers-build/conductor": "^0.7.1-next.6",
|
|
24
|
+
"@bakers-build/core": "^0.7.1-next.6"
|
|
25
25
|
},
|
|
26
26
|
"bakersBuild": {
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "269bb0ea2c27fca3b5ff3ac553df9c81b6179f5f",
|
|
28
28
|
"channel": "next"
|
|
29
29
|
}
|
|
30
30
|
}
|