@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.
@@ -1183,7 +1183,7 @@ import { v7 as uuidv7 } from "uuid";
1183
1183
  // package.json
1184
1184
  var package_default = {
1185
1185
  name: "@posthog/agent",
1186
- version: "2.1.15",
1186
+ version: "2.1.16",
1187
1187
  repository: "https://github.com/PostHog/twig",
1188
1188
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1189
1189
  exports: {
@@ -3688,6 +3688,10 @@ function spawnCodexProcess(options) {
3688
3688
  env.POSTHOG_GATEWAY_API_KEY = options.apiKey;
3689
3689
  }
3690
3690
  const { command, args } = findCodexBinary(options);
3691
+ if (options.binaryPath && existsSync3(options.binaryPath)) {
3692
+ const binDir = options.binaryPath.replace(/\/[^/]+$/, "");
3693
+ env.PATH = `${binDir}:${env.PATH ?? ""}`;
3694
+ }
3691
3695
  logger.info("Spawning codex-acp process", {
3692
3696
  command,
3693
3697
  args,