@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.
@@ -1175,7 +1175,7 @@ var import_uuid = require("uuid");
1175
1175
  // package.json
1176
1176
  var package_default = {
1177
1177
  name: "@posthog/agent",
1178
- version: "2.1.15",
1178
+ version: "2.1.16",
1179
1179
  repository: "https://github.com/PostHog/twig",
1180
1180
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1181
1181
  exports: {
@@ -3680,6 +3680,10 @@ function spawnCodexProcess(options) {
3680
3680
  env.POSTHOG_GATEWAY_API_KEY = options.apiKey;
3681
3681
  }
3682
3682
  const { command, args } = findCodexBinary(options);
3683
+ if (options.binaryPath && (0, import_node_fs.existsSync)(options.binaryPath)) {
3684
+ const binDir = options.binaryPath.replace(/\/[^/]+$/, "");
3685
+ env.PATH = `${binDir}:${env.PATH ?? ""}`;
3686
+ }
3683
3687
  logger.info("Spawning codex-acp process", {
3684
3688
  command,
3685
3689
  args,