@ngockhoale/ckit 0.2.8 → 0.2.9

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.
@@ -65,7 +65,8 @@ export declare function claudeFrameActivity(frame: unknown): string[];
65
65
  export declare const withCliArgs: <T extends {
66
66
  readonly args: readonly string[];
67
67
  }>(spec: T, agent: AgentConfig) => T;
68
- /** Claude team workers run with host hooks disabled (workspace Stop gates / prompt routers must not hijack the answer); the owner's cliArgs come after. */
68
+ /** Claude team workers run with host hooks disabled (workspace Stop gates / prompt routers must not hijack the answer); the owner's cliArgs come after.
69
+ * Write agents also get Claude's sandbox with sandboxed Bash auto-allowed: `acceptEdits` alone denies every Bash call, so a developer could edit files but never run the tests it was asked to run (seen in a real run). */
69
70
  export declare const claudeTeamArgs: (args: readonly string[], agent: AgentConfig) => string[];
70
71
  export declare function runExecutorAgent(agent: AgentConfig, prompt: string, opts: AgentRunOptions): Promise<AgentRunResult>;
71
72
  export { parseExecutorOutput };
@@ -229,10 +229,11 @@ export function claudeFrameActivity(frame) {
229
229
  }
230
230
  /** The executor spec with the agent's extra CLI arguments appended after CKit's own flags (runExecutor appends the prompt last). */
231
231
  export const withCliArgs = (spec, agent) => { const extra = cliArgTokens(agent.cliArgs); return extra.length ? { ...spec, args: [...spec.args, ...extra] } : spec; };
232
- /** Claude team workers run with host hooks disabled (workspace Stop gates / prompt routers must not hijack the answer); the owner's cliArgs come after. */
232
+ /** Claude team workers run with host hooks disabled (workspace Stop gates / prompt routers must not hijack the answer); the owner's cliArgs come after.
233
+ * Write agents also get Claude's sandbox with sandboxed Bash auto-allowed: `acceptEdits` alone denies every Bash call, so a developer could edit files but never run the tests it was asked to run (seen in a real run). */
233
234
  export const claudeTeamArgs = (args, agent) => {
234
- const hooksOff = ['--settings', '{"disableAllHooks":true}'];
235
- return [...args, ...hooksOff, ...cliArgTokens(agent.cliArgs)];
235
+ const settings = agent.access === 'write' ? { disableAllHooks: true, sandbox: { enabled: true, autoAllowBashIfSandboxed: true } } : { disableAllHooks: true };
236
+ return [...args, '--settings', JSON.stringify(settings), ...cliArgTokens(agent.cliArgs)];
236
237
  };
237
238
  export async function runExecutorAgent(agent, prompt, opts) {
238
239
  const kind = agent.cli === 'omp' ? 'omp' : 'claude-code';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngockhoale/ckit",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "CKit — local Agent Company: a Director plus BA / Implement / QC teams running your own codex, claude and omp CLIs, with a web Mission Control (ckit gui).",
5
5
  "type": "module",
6
6
  "bin": {