@bakers-build/addon-claude 0.4.1-next.353 → 0.4.1-next.438

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.
Files changed (2) hide show
  1. package/dist/src/index.js +15 -8
  2. package/package.json +3 -3
package/dist/src/index.js CHANGED
@@ -47,11 +47,13 @@ function securityFlags({ mode, sandbox, config }) {
47
47
  network: { allowedDomains: sandbox.network },
48
48
  },
49
49
  disableClaudeAiConnectors: true,
50
- // dontAsk denies whatever is not allowed here; every Bash command is
51
- // either sandboxed or a trusted command, and the Read deny covers the
52
- // Read tool, which the OS sandbox does not confine.
50
+ // What is allowed here runs without a prompt; anything else, such as a
51
+ // write to the protected `.claude/`, asks the human watching the run's
52
+ // terminal (dontAsk would deny it, and no allow rule lifts that). Every
53
+ // Bash command is either sandboxed or a trusted command, and the Read
54
+ // deny covers the Read tool, which the OS sandbox does not confine.
53
55
  permissions: {
54
- allow: ['Bash', 'Edit(./**)'],
56
+ allow: ['Bash', 'Edit(./**)', 'AskUserQuestion'],
55
57
  // Claude reads a single leading `/` as relative to the settings file;
56
58
  // the plain rule covers a file entry, `/**` a directory's contents.
57
59
  deny: sandbox.deny_read.flatMap((path) => {
@@ -62,7 +64,7 @@ function securityFlags({ mode, sandbox, config }) {
62
64
  };
63
65
  return [
64
66
  '--permission-mode',
65
- 'dontAsk',
67
+ 'default',
66
68
  '--setting-sources',
67
69
  'project,local',
68
70
  '--settings',
@@ -119,9 +121,14 @@ export class ClaudeAgent {
119
121
  if (prompt === '') {
120
122
  return 'claude';
121
123
  }
122
- const parts = this.measure
123
- ? ['node', shellQuote(MEASURE_WRAPPER), 'claude', shellQuote(prompt)]
124
- : ['claude', shellQuote(prompt)];
124
+ // Wait for project-declared plugins (extraKnownMarketplaces) to install
125
+ // before the first turn; a fresh worktree otherwise starts without them.
126
+ const parts = [
127
+ 'CLAUDE_CODE_SYNC_PLUGIN_INSTALL=1',
128
+ ...(this.measure
129
+ ? ['node', shellQuote(MEASURE_WRAPPER), 'claude', shellQuote(prompt)]
130
+ : ['claude', shellQuote(prompt)]),
131
+ ];
125
132
  if (this.model !== undefined && !this.overrides.model) {
126
133
  parts.push('--model', shellQuote(this.model));
127
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/addon-claude",
3
- "version": "0.4.1-next.353",
3
+ "version": "0.4.1-next.438",
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.353",
27
- "@bakers-build/core": "^0.4.1-next.353"
26
+ "@bakers-build/conductor": "^0.4.1-next.438",
27
+ "@bakers-build/core": "^0.4.1-next.438"
28
28
  }
29
29
  }