@posthog/agent 2.1.124 → 2.1.125

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 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.124",
279
+ version: "2.1.125",
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: {
@@ -361,8 +361,8 @@ var package_default = {
361
361
  },
362
362
  dependencies: {
363
363
  "@agentclientprotocol/sdk": "^0.14.0",
364
- "@anthropic-ai/claude-agent-sdk": "0.2.59",
365
- "@anthropic-ai/sdk": "^0.71.0",
364
+ "@anthropic-ai/claude-agent-sdk": "0.2.63",
365
+ "@anthropic-ai/sdk": "^0.78.0",
366
366
  "@hono/node-server": "^1.19.9",
367
367
  "@opentelemetry/api-logs": "^0.208.0",
368
368
  "@opentelemetry/exporter-logs-otlp-http": "^0.208.0",
@@ -1465,6 +1465,8 @@ function processContentChunk(chunk, role, ctx) {
1465
1465
  case "citations_delta":
1466
1466
  case "signature_delta":
1467
1467
  case "container_upload":
1468
+ case "compaction":
1469
+ case "compaction_delta":
1468
1470
  return null;
1469
1471
  default:
1470
1472
  unreachable(chunk, ctx.logger);
@@ -2952,6 +2954,7 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
2952
2954
  // src/adapters/codex/spawn.ts
2953
2955
  import { spawn as spawn2 } from "child_process";
2954
2956
  import { existsSync as existsSync3 } from "fs";
2957
+ import { delimiter, dirname } from "path";
2955
2958
  function buildConfigArgs(options) {
2956
2959
  const args = [];
2957
2960
  args.push("-c", `features.remote_models=false`);
@@ -2992,8 +2995,8 @@ function spawnCodexProcess(options) {
2992
2995
  }
2993
2996
  const { command, args } = findCodexBinary(options);
2994
2997
  if (options.binaryPath && existsSync3(options.binaryPath)) {
2995
- const binDir = options.binaryPath.replace(/\/[^/]+$/, "");
2996
- env.PATH = `${binDir}:${env.PATH ?? ""}`;
2998
+ const binDir = dirname(options.binaryPath);
2999
+ env.PATH = `${binDir}${delimiter}${env.PATH ?? ""}`;
2997
3000
  }
2998
3001
  logger.info("Spawning codex-acp process", {
2999
3002
  command,
@@ -3010,7 +3013,7 @@ function spawnCodexProcess(options) {
3010
3013
  detached: process.platform !== "win32"
3011
3014
  });
3012
3015
  child.stderr?.on("data", (data) => {
3013
- logger.debug("codex-acp stderr:", data.toString());
3016
+ logger.error("codex-acp stderr:", data.toString());
3014
3017
  });
3015
3018
  child.on("error", (err) => {
3016
3019
  logger.error("codex-acp process error:", err);