@volter/supercode-teams 0.3.5 → 0.3.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.
@@ -31,9 +31,9 @@ export function boardGuardArguments(kind, args, { cwd, enabled, node = process.e
31
31
  // Its synchronous Bash hook can deny the entire command before execution.
32
32
  // This invocation enables and trusts the board-vetted command policy.
33
33
  const handler = `{ matcher = "^Bash$", hooks = [{ type = "command", command = ${JSON.stringify(command)}, timeout = 10 }] }`;
34
- const next = [...args], at = next.indexOf('--');
35
- next.splice(at < 0 ? next.length : at, 0, ...(next.includes('--dangerously-bypass-hook-trust') ? [] : ['--dangerously-bypass-hook-trust']), '-c', 'features.hooks=true', '-c', `hooks.PreToolUse=[${handler}]`);
36
- return next;
34
+ // Codex's own flags go before any subcommand (`app-server`, `resume`) or prompt: after `app-server`, Codex
35
+ // 0.159 refuses --dangerously-bypass-hook-trust and the worker never starts.
36
+ return [...(args.includes('--dangerously-bypass-hook-trust') ? [] : ['--dangerously-bypass-hook-trust']), '-c', 'features.hooks=true', '-c', `hooks.PreToolUse=[${handler}]`, ...args];
37
37
  }
38
38
  throw new Error(`board process guard is unavailable for ${kind}; no unguarded session was launched`);
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
6
6
  "license": "MIT",