pennyrouter 0.3.29 → 0.3.30

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/package.json +1 -1
  2. package/src/launch.js +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pennyrouter",
3
- "version": "0.3.29",
3
+ "version": "0.3.30",
4
4
  "description": "Install and manage PennyRouter local coding-agent integrations.",
5
5
  "homepage": "https://pennyrouter.com",
6
6
  "bugs": {
package/src/launch.js CHANGED
@@ -505,7 +505,14 @@ export function renderCodexLaunchProfile({
505
505
  }
506
506
 
507
507
  export function codexDesktopExecutable() {
508
- if (process.platform === "darwin") return "/Applications/Codex.app/Contents/MacOS/Codex";
508
+ if (process.platform === "darwin") {
509
+ const appPath = "/Applications/Codex.app";
510
+ const result = spawnSync("/usr/libexec/PlistBuddy", [
511
+ "-c", "Print :CFBundleExecutable", join(appPath, "Contents", "Info.plist"),
512
+ ], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] });
513
+ const executable = result.status === 0 ? result.stdout.trim() : "";
514
+ return join(appPath, "Contents", "MacOS", executable || "Codex");
515
+ }
509
516
  if (process.platform === "win32") return "Codex.exe";
510
517
  return "codex";
511
518
  }