@bakers-build/addon-claude 0.4.1-next.318 → 0.4.1-next.431
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 +14 -6
- package/package.json +3 -3
package/dist/src/index.js
CHANGED
|
@@ -37,7 +37,9 @@ function securityFlags({ mode, sandbox, config }) {
|
|
|
37
37
|
enabled: true,
|
|
38
38
|
failIfUnavailable: true,
|
|
39
39
|
allowUnsandboxedCommands: false,
|
|
40
|
-
|
|
40
|
+
// Claude matches these like `Bash(...)` rules: a bare `git` is exact
|
|
41
|
+
// and would leave `git status` sandboxed, so a name takes ` *`.
|
|
42
|
+
excludedCommands: sandbox.trusted_commands.map((cmd) => cmd.endsWith('*') ? cmd : `${cmd} *`),
|
|
41
43
|
filesystem: {
|
|
42
44
|
denyRead: sandbox.deny_read,
|
|
43
45
|
allowWrite: sandbox.allow_write,
|
|
@@ -47,9 +49,10 @@ function securityFlags({ mode, sandbox, config }) {
|
|
|
47
49
|
disableClaudeAiConnectors: true,
|
|
48
50
|
// dontAsk denies whatever is not allowed here; every Bash command is
|
|
49
51
|
// either sandboxed or a trusted command, and the Read deny covers the
|
|
50
|
-
// Read tool, which the OS sandbox does not confine.
|
|
52
|
+
// Read tool, which the OS sandbox does not confine. AskUserQuestion stays
|
|
53
|
+
// allowed: the run sits in a terminal the human watches, and skills ask.
|
|
51
54
|
permissions: {
|
|
52
|
-
allow: ['Bash', 'Edit(./**)'],
|
|
55
|
+
allow: ['Bash', 'Edit(./**)', 'AskUserQuestion'],
|
|
53
56
|
// Claude reads a single leading `/` as relative to the settings file;
|
|
54
57
|
// the plain rule covers a file entry, `/**` a directory's contents.
|
|
55
58
|
deny: sandbox.deny_read.flatMap((path) => {
|
|
@@ -117,9 +120,14 @@ export class ClaudeAgent {
|
|
|
117
120
|
if (prompt === '') {
|
|
118
121
|
return 'claude';
|
|
119
122
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
// Wait for project-declared plugins (extraKnownMarketplaces) to install
|
|
124
|
+
// before the first turn; a fresh worktree otherwise starts without them.
|
|
125
|
+
const parts = [
|
|
126
|
+
'CLAUDE_CODE_SYNC_PLUGIN_INSTALL=1',
|
|
127
|
+
...(this.measure
|
|
128
|
+
? ['node', shellQuote(MEASURE_WRAPPER), 'claude', shellQuote(prompt)]
|
|
129
|
+
: ['claude', shellQuote(prompt)]),
|
|
130
|
+
];
|
|
123
131
|
if (this.model !== undefined && !this.overrides.model) {
|
|
124
132
|
parts.push('--model', shellQuote(this.model));
|
|
125
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-claude",
|
|
3
|
-
"version": "0.4.1-next.
|
|
3
|
+
"version": "0.4.1-next.431",
|
|
4
4
|
"description": "bakers.build agent plugin for the Claude CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"directory": "bakers-cli/addons/claude"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@bakers-build/conductor": "^0.4.1-next.
|
|
27
|
-
"@bakers-build/core": "^0.4.1-next.
|
|
26
|
+
"@bakers-build/conductor": "^0.4.1-next.431",
|
|
27
|
+
"@bakers-build/core": "^0.4.1-next.431"
|
|
28
28
|
}
|
|
29
29
|
}
|