@bakers-build/addon-grok 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
@@ -100,7 +100,7 @@ function rejectUnsupportedSandbox(sandbox) {
100
100
  throw new Error('Grok cannot allow only named sandbox.mcp_servers: sandbox mode passes a deny rule for every MCP tool; leave mcp_servers empty');
101
101
  }
102
102
  if (sandbox.trusted_commands.length > 0) {
103
- throw new Error("Grok has no command exception narrowed to executable, arguments and directory for sandbox.trusted_commands; use security: 'system' with your own sandbox.toml profile");
103
+ throw new Error("Grok has no command exception narrowed to executable, arguments and directory for sandbox.trusted_commands; use permissions: 'system' with your own sandbox.toml profile");
104
104
  }
105
105
  if (sandbox.deny_read.length > 0) {
106
106
  throw new Error('Grok sandbox.deny_read is unsupported; leave deny_read empty');
@@ -149,7 +149,7 @@ export class GrokAgent {
149
149
  });
150
150
  this.runEnvPolicy = this.security.runEnvPolicy;
151
151
  if (this.security.mode === 'custom') {
152
- throw new Error("Grok has no config flags for security: 'custom'; use security: 'system' with args: ['--sandbox', '<profile>'] for your own sandbox.toml profile");
152
+ throw new Error("Grok has no config flags for permissions: 'custom'; use permissions: 'system' with args: ['--sandbox', '<profile>'] for your own sandbox.toml profile");
153
153
  }
154
154
  rejectUnsupportedSandbox(this.security.sandbox);
155
155
  for (const path of this.security.sandbox.allow_write) {
@@ -247,7 +247,7 @@ export class GrokAgent {
247
247
  if (this.security.mode !== 'sandbox' || host.platform === 'darwin') {
248
248
  return { ok: true };
249
249
  }
250
- const fallback = "set security: 'system' or 'yolo' for Grok";
250
+ const fallback = "set permissions: 'system' or 'yolo' for Grok";
251
251
  if (host.platform !== 'linux') {
252
252
  return {
253
253
  ok: false,
@@ -259,7 +259,7 @@ export class GrokAgent {
259
259
  return {
260
260
  ok: false,
261
261
  cause: 'Managed Grok profiles need bubblewrap to protect sandbox.toml',
262
- fix: 'install bubblewrap and keep security: sandbox',
262
+ fix: 'install bubblewrap and keep permissions: sandbox',
263
263
  };
264
264
  }
265
265
  const probe = await host.run('grep', [
@@ -424,7 +424,7 @@ export function grokAgent(options = {}) {
424
424
  kind: 'agent',
425
425
  id: 'grok',
426
426
  requiredModules: [],
427
- security: agent.security.report,
427
+ permissions: agent.security.report,
428
428
  async createAgent() {
429
429
  return agent;
430
430
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/addon-grok",
3
- "version": "0.7.1-next.5",
3
+ "version": "0.7.1-next.7",
4
4
  "description": "bakers.build agent plugin for xAI Grok Build, with a real session footprint.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -20,11 +20,11 @@
20
20
  "directory": "bakers-cli/addons/grok"
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
  }