@posthog/agent 2.3.80 → 2.3.84

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.3.80",
3
+ "version": "2.3.84",
4
4
  "repository": "https://github.com/PostHog/code",
5
5
  "description": "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
6
6
  "exports": {
@@ -66,6 +66,7 @@ import {
66
66
  DEFAULT_MODEL,
67
67
  getEffortOptions,
68
68
  resolveModelPreference,
69
+ supports1MContext,
69
70
  toSdkModelId,
70
71
  } from "./session/models";
71
72
  import {
@@ -87,7 +88,7 @@ import type {
87
88
  ToolUseCache,
88
89
  } from "./types";
89
90
 
90
- const SESSION_VALIDATION_TIMEOUT_MS = 10_000;
91
+ const SESSION_VALIDATION_TIMEOUT_MS = 30_000;
91
92
  const MAX_TITLE_LENGTH = 256;
92
93
  const LOCAL_ONLY_COMMANDS = new Set(["/context", "/heapdump", "/extra-usage"]);
93
94
 
@@ -932,6 +933,10 @@ export class ClaudeAcpAgent extends BaseAcpAgent {
932
933
  await this.session.query.setModel(resolvedSdkModel);
933
934
  }
934
935
 
936
+ if (supports1MContext(resolvedModelId)) {
937
+ options.betas = ["context-1m-2025-08-07"];
938
+ }
939
+
935
940
  const availableModes = getAvailableModes();
936
941
  const modes: SessionModeState = {
937
942
  currentModeId: permissionMode,