@bakers-build/addon-opencode 0.7.1-next.5 → 0.7.1-next.7

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 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, security: options.security ?? 'system' }, SANDBOX_DEFAULTS);
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 security: 'sandbox' cannot be enforced; leave security unset or set 'system' (your own OpenCode configuration) or 'yolo'");
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 security: 'custom'; use security: 'system' with your own OpenCode configuration");
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
- security: agent.security.report,
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.5",
3
+ "version": "0.7.1-next.7",
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.5",
24
- "@bakers-build/core": "^0.7.1-next.5"
23
+ "@bakers-build/conductor": "^0.7.1-next.7",
24
+ "@bakers-build/core": "^0.7.1-next.7"
25
25
  },
26
26
  "bakersBuild": {
27
- "commit": "b34bd900ef0293024de7b5a956af08e67d407e29",
27
+ "commit": "082d8c57436f78e751f5a9a26a4446cec42209ce",
28
28
  "channel": "next"
29
29
  }
30
30
  }