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