@posthog/agent 2.1.15 → 2.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/agent",
3
- "version": "2.1.15",
3
+ "version": "2.1.16",
4
4
  "repository": "https://github.com/PostHog/twig",
5
5
  "description": "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
6
6
  "exports": {
@@ -63,7 +63,6 @@ export function spawnCodexProcess(options: CodexProcessOptions): CodexProcess {
63
63
 
64
64
  const env: NodeJS.ProcessEnv = { ...process.env };
65
65
 
66
- // Prevent Electron's GPU/Chromium processes from interfering with child
67
66
  delete env.ELECTRON_RUN_AS_NODE;
68
67
  delete env.ELECTRON_NO_ASAR;
69
68
 
@@ -73,6 +72,11 @@ export function spawnCodexProcess(options: CodexProcessOptions): CodexProcess {
73
72
 
74
73
  const { command, args } = findCodexBinary(options);
75
74
 
75
+ if (options.binaryPath && existsSync(options.binaryPath)) {
76
+ const binDir = options.binaryPath.replace(/\/[^/]+$/, "");
77
+ env.PATH = `${binDir}:${env.PATH ?? ""}`;
78
+ }
79
+
76
80
  logger.info("Spawning codex-acp process", {
77
81
  command,
78
82
  args,