@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 +5 -1
- package/dist/agent.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/server/agent-server.js +5 -1
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +5 -1
- package/dist/server/bin.cjs.map +1 -1
- package/package.json +1 -1
- package/src/adapters/codex/spawn.ts +5 -1
|
@@ -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.
|
|
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,
|