@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/dist/agent.js CHANGED
@@ -276,7 +276,7 @@ import { v7 as uuidv7 } from "uuid";
276
276
  // package.json
277
277
  var package_default = {
278
278
  name: "@posthog/agent",
279
- version: "2.1.15",
279
+ version: "2.1.16",
280
280
  repository: "https://github.com/PostHog/twig",
281
281
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
282
282
  exports: {
@@ -2808,6 +2808,10 @@ function spawnCodexProcess(options) {
2808
2808
  env.POSTHOG_GATEWAY_API_KEY = options.apiKey;
2809
2809
  }
2810
2810
  const { command, args } = findCodexBinary(options);
2811
+ if (options.binaryPath && existsSync3(options.binaryPath)) {
2812
+ const binDir = options.binaryPath.replace(/\/[^/]+$/, "");
2813
+ env.PATH = `${binDir}:${env.PATH ?? ""}`;
2814
+ }
2811
2815
  logger.info("Spawning codex-acp process", {
2812
2816
  command,
2813
2817
  args,