@posthog/agent 2.1.98 → 2.1.106

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/agent",
3
- "version": "2.1.98",
3
+ "version": "2.1.106",
4
4
  "repository": "https://github.com/PostHog/twig",
5
5
  "description": "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
6
6
  "exports": {
@@ -71,8 +71,8 @@
71
71
  "tsx": "^4.20.6",
72
72
  "typescript": "^5.5.0",
73
73
  "vitest": "^2.1.8",
74
- "@posthog/shared": "1.0.0",
75
- "@twig/git": "1.0.0"
74
+ "@twig/git": "1.0.0",
75
+ "@posthog/shared": "1.0.0"
76
76
  },
77
77
  "dependencies": {
78
78
  "@agentclientprotocol/sdk": "^0.14.0",
@@ -33,7 +33,7 @@ import { v7 as uuidv7 } from "uuid";
33
33
  import packageJson from "../../../package.json" with { type: "json" };
34
34
  import type { SessionContext } from "../../otel-log-writer.js";
35
35
  import type { SessionLogWriter } from "../../session-log-writer.js";
36
- import { unreachable, withTimeout } from "../../utils/common.js";
36
+ import { withTimeout } from "../../utils/common.js";
37
37
  import { Logger } from "../../utils/logger.js";
38
38
  import { Pushable } from "../../utils/streams.js";
39
39
  import { BaseAcpAgent } from "../base-acp-agent.js";
@@ -646,7 +646,9 @@ export class ClaudeAcpAgent extends BaseAcpAgent {
646
646
  return null;
647
647
 
648
648
  default:
649
- unreachable(message, this.logger);
649
+ this.logger.warn("Unhandled message type", {
650
+ type: (message as { type: string }).type,
651
+ });
650
652
  return null;
651
653
  }
652
654
  }
@@ -4,6 +4,7 @@ const GATEWAY_TO_SDK_MODEL: Record<string, string> = {
4
4
  "claude-opus-4-5": "opus",
5
5
  "claude-opus-4-6": "opus",
6
6
  "claude-sonnet-4-5": "sonnet",
7
+ "claude-sonnet-4-6": "sonnet",
7
8
  "claude-haiku-4-5": "haiku",
8
9
  };
9
10