@posthog/agent 2.3.80 → 2.3.81

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.
@@ -904,7 +904,7 @@ var import_hono = require("hono");
904
904
  // package.json
905
905
  var package_default = {
906
906
  name: "@posthog/agent",
907
- version: "2.3.80",
907
+ version: "2.3.81",
908
908
  repository: "https://github.com/PostHog/code",
909
909
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
910
910
  exports: {
@@ -3496,6 +3496,13 @@ var GATEWAY_TO_SDK_MODEL = {
3496
3496
  function toSdkModelId(modelId) {
3497
3497
  return GATEWAY_TO_SDK_MODEL[modelId] ?? modelId;
3498
3498
  }
3499
+ var MODELS_WITH_1M_CONTEXT = /* @__PURE__ */ new Set([
3500
+ "claude-opus-4-6",
3501
+ "claude-sonnet-4-6"
3502
+ ]);
3503
+ function supports1MContext(modelId) {
3504
+ return MODELS_WITH_1M_CONTEXT.has(modelId);
3505
+ }
3499
3506
  var MODELS_WITH_EFFORT = /* @__PURE__ */ new Set([
3500
3507
  "claude-opus-4-5",
3501
3508
  "claude-opus-4-6",
@@ -4666,6 +4673,9 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
4666
4673
  if (!isResume && resolvedSdkModel !== DEFAULT_MODEL) {
4667
4674
  await this.session.query.setModel(resolvedSdkModel);
4668
4675
  }
4676
+ if (supports1MContext(resolvedModelId)) {
4677
+ options.betas = ["context-1m-2025-08-07"];
4678
+ }
4669
4679
  const availableModes2 = getAvailableModes();
4670
4680
  const modes = {
4671
4681
  currentModeId: permissionMode,