codex-grok-bridge 1.6.0 → 1.6.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.6.1 — 2026-09-28
6
+
7
+ - Darwin bundled CLI resolves `Codex.app/Contents/Resources/codex-cli/bin/codex` when that file exists (Codex 26.924). The legacy `Contents/Resources/codex` path remains the fallback. `CODEX_BINARY` still wins. Linux and Windows layouts are unchanged.
8
+
5
9
  ## 1.6.0 — 2026-09-27
6
10
 
7
11
  - Default catalog model is `grok-4.7` (`Grok 4.7 / xAI`). `grok-4.6` stays listed so existing threads still resolve.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-grok-bridge",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Run Grok 4.7 as the model inside Codex, with Codex still owning tools, permissions, history and MCP. Uses the grok login session, not an API key.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/paths.mjs CHANGED
@@ -4,6 +4,8 @@ import { homedir } from "node:os";
4
4
 
5
5
  export const LINUX_CODEX_BINARY = "/usr/lib/chatgpt/resources/codex";
6
6
  export const LINUX_CHATGPT_BIN = "/usr/lib/chatgpt/ChatGPT";
7
+ export const DARWIN_CODEX_CLI_BINARY =
8
+ "/Applications/Codex.app/Contents/Resources/codex-cli/bin/codex";
7
9
  export const DARWIN_CODEX_BINARY = "/Applications/Codex.app/Contents/Resources/codex";
8
10
  export const DARWIN_CODEX_APP = "/Applications/Codex.app";
9
11
  export const LINUX_STOCK_PREFIX = "/usr/lib/chatgpt";
@@ -54,6 +56,8 @@ export function resolveCodexBinary(options = {}) {
54
56
  if (platform === "win32") {
55
57
  return resolveWin32Binary("codex.exe", "store-codex.txt", { ...options, env });
56
58
  }
59
+ const exists = options.existsSync ?? existsSync;
60
+ if (exists(DARWIN_CODEX_CLI_BINARY)) return DARWIN_CODEX_CLI_BINARY;
57
61
  return DARWIN_CODEX_BINARY;
58
62
  }
59
63