@posthog/agent 2.1.13 → 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/index.js CHANGED
@@ -1174,7 +1174,7 @@ import { v7 as uuidv7 } from "uuid";
1174
1174
  // package.json
1175
1175
  var package_default = {
1176
1176
  name: "@posthog/agent",
1177
- version: "2.1.13",
1177
+ version: "2.1.16",
1178
1178
  repository: "https://github.com/PostHog/twig",
1179
1179
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1180
1180
  exports: {
@@ -3714,6 +3714,10 @@ function spawnCodexProcess(options) {
3714
3714
  env.POSTHOG_GATEWAY_API_KEY = options.apiKey;
3715
3715
  }
3716
3716
  const { command, args } = findCodexBinary(options);
3717
+ if (options.binaryPath && existsSync3(options.binaryPath)) {
3718
+ const binDir = options.binaryPath.replace(/\/[^/]+$/, "");
3719
+ env.PATH = `${binDir}:${env.PATH ?? ""}`;
3720
+ }
3717
3721
  logger.info("Spawning codex-acp process", {
3718
3722
  command,
3719
3723
  args,