@bakers-build/addon-codex 0.9.1-next.5 → 0.9.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.d.ts +1 -1
- package/dist/src/index.js +4 -4
- package/package.json +4 -4
package/dist/src/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare class CodexAgent implements BbAgent {
|
|
|
42
42
|
private userMcpServers;
|
|
43
43
|
launchCommand(prompt: string, _run?: AgentRunIdentity, workspacePath?: string, tools?: {
|
|
44
44
|
url: string;
|
|
45
|
-
}, env?: Readonly<Record<string, string>>, pluginArgs?: readonly string[]): string;
|
|
45
|
+
}, env?: Readonly<Record<string, string>>, pluginArgs?: readonly string[], isolatedGit?: boolean): string;
|
|
46
46
|
getRunLog(worktreePath: string, run?: AgentRunIdentity): Promise<string>;
|
|
47
47
|
parseFootprint(log: string): AgentFootprint;
|
|
48
48
|
/** Codex brings its own sandbox runner; a missing binary fails at launch as before. */
|
package/dist/src/index.js
CHANGED
|
@@ -203,7 +203,7 @@ export class CodexAgent {
|
|
|
203
203
|
: [];
|
|
204
204
|
}
|
|
205
205
|
/** The launch flags a security mode owns (`docs/addons/codex.md`). */
|
|
206
|
-
securityFlags(workspacePath, withTools) {
|
|
206
|
+
securityFlags(workspacePath, withTools, isolatedGit) {
|
|
207
207
|
const { mode, sandbox, config } = this.security;
|
|
208
208
|
if (mode === 'system')
|
|
209
209
|
return [];
|
|
@@ -221,7 +221,7 @@ export class CodexAgent {
|
|
|
221
221
|
]);
|
|
222
222
|
if (mode === 'custom')
|
|
223
223
|
return pairs(Object.entries(config ?? {}));
|
|
224
|
-
const git = gitSandboxPaths(workspacePath);
|
|
224
|
+
const git = gitSandboxPaths(workspacePath, isolatedGit);
|
|
225
225
|
const roots = this.allowWrite.map((dir) => `${JSON.stringify(dir.startsWith('~/') ? join(this.home, dir.slice(2)) : dir)} = true`);
|
|
226
226
|
// Filesystem overrides replace inherited entries, so retain workspace protections explicitly.
|
|
227
227
|
const filesystem = [
|
|
@@ -260,12 +260,12 @@ export class CodexAgent {
|
|
|
260
260
|
}
|
|
261
261
|
return codexMcpServerIds(toml);
|
|
262
262
|
}
|
|
263
|
-
launchCommand(prompt, _run, workspacePath = process.cwd(), tools, env = {}, pluginArgs = []) {
|
|
263
|
+
launchCommand(prompt, _run, workspacePath = process.cwd(), tools, env = {}, pluginArgs = [], isolatedGit = false) {
|
|
264
264
|
// Quote at assembly; a plain word has nothing for the shell to expand.
|
|
265
265
|
const word = (t) => (/^[\w./=-]+$/.test(t) ? t : shellQuote(t));
|
|
266
266
|
const parts = [
|
|
267
267
|
'codex',
|
|
268
|
-
...this.securityFlags(workspacePath, tools !== undefined).map(word),
|
|
268
|
+
...this.securityFlags(workspacePath, tools !== undefined, isolatedGit).map(word),
|
|
269
269
|
];
|
|
270
270
|
for (const arg of pluginArgs)
|
|
271
271
|
if (!parts.includes(arg))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-codex",
|
|
3
|
-
"version": "0.9.1-next.
|
|
3
|
+
"version": "0.9.1-next.7",
|
|
4
4
|
"description": "bakers.build agent plugin for the Codex CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"directory": "bakers-cli/addons/codex"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@bakers-build/conductor": "^0.9.1-next.
|
|
26
|
-
"@bakers-build/core": "^0.9.1-next.
|
|
25
|
+
"@bakers-build/conductor": "^0.9.1-next.7",
|
|
26
|
+
"@bakers-build/core": "^0.9.1-next.7"
|
|
27
27
|
},
|
|
28
28
|
"bakersBuild": {
|
|
29
|
-
"commit": "
|
|
29
|
+
"commit": "03781c6f8dc8c4c3d87fdcf12ae37df35abc6286",
|
|
30
30
|
"channel": "next"
|
|
31
31
|
}
|
|
32
32
|
}
|