@bakers-build/addon-grok 0.6.1-next.4 → 0.6.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.d.ts +2 -2
- package/dist/src/index.js +5 -1
- package/package.json +4 -4
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AgentFootprint, type AgentPlugin, type AgentRunIdentity, type BbAgent, type RunEnvPolicy, type SandboxHost, type SandboxPreflight, type SecurityOptions } from '@bakers-build/conductor/contract';
|
|
1
|
+
import { type AgentFootprint, type AgentPlugin, type AgentRunIdentity, type BbAgent, type ResolvedSecurity, type RunEnvPolicy, type SandboxHost, type SandboxPreflight, type SecurityOptions } from '@bakers-build/conductor/contract';
|
|
2
2
|
export { parseGrokTranscript } from './footprint.js';
|
|
3
3
|
export type GrokReasoningEffort = 'high' | 'medium' | 'low';
|
|
4
4
|
export interface GrokAgentOptions extends SecurityOptions {
|
|
@@ -15,7 +15,7 @@ export declare class GrokAgent implements BbAgent {
|
|
|
15
15
|
private readonly model;
|
|
16
16
|
private readonly effort;
|
|
17
17
|
private readonly overrides;
|
|
18
|
-
|
|
18
|
+
readonly security: ResolvedSecurity;
|
|
19
19
|
readonly runEnvPolicy: RunEnvPolicy;
|
|
20
20
|
constructor(options?: GrokAgentOptions, home?: string);
|
|
21
21
|
launchCommand(prompt: string, run?: AgentRunIdentity): string;
|
package/dist/src/index.js
CHANGED
|
@@ -143,7 +143,10 @@ export class GrokAgent {
|
|
|
143
143
|
runEnvPolicy;
|
|
144
144
|
constructor(options = {}, home = homedir()) {
|
|
145
145
|
this.home = home;
|
|
146
|
-
|
|
146
|
+
// Shared deny_read and trusted_commands have nothing to map onto here.
|
|
147
|
+
this.security = resolveSecurityOptions(options, SANDBOX_DEFAULTS, {
|
|
148
|
+
unsupported: ['deny_read', 'trusted_commands'],
|
|
149
|
+
});
|
|
147
150
|
this.runEnvPolicy = this.security.runEnvPolicy;
|
|
148
151
|
if (this.security.mode === 'custom') {
|
|
149
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");
|
|
@@ -421,6 +424,7 @@ export function grokAgent(options = {}) {
|
|
|
421
424
|
kind: 'agent',
|
|
422
425
|
id: 'grok',
|
|
423
426
|
requiredModules: [],
|
|
427
|
+
security: agent.security.report,
|
|
424
428
|
async createAgent() {
|
|
425
429
|
return agent;
|
|
426
430
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-grok",
|
|
3
|
-
"version": "0.6.1-next.
|
|
3
|
+
"version": "0.6.1-next.6",
|
|
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.6.1-next.
|
|
24
|
-
"@bakers-build/core": "^0.6.1-next.
|
|
23
|
+
"@bakers-build/conductor": "^0.6.1-next.6",
|
|
24
|
+
"@bakers-build/core": "^0.6.1-next.6"
|
|
25
25
|
},
|
|
26
26
|
"bakersBuild": {
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "12b97ff4aa2422d69dab286141f3234609f32351",
|
|
28
28
|
"channel": "next"
|
|
29
29
|
}
|
|
30
30
|
}
|