@posthog/agent 2.3.267 → 2.3.280

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.
@@ -901,6 +901,7 @@ var DEFAULT_MODEL = "opus";
901
901
  var GATEWAY_TO_SDK_MODEL = {
902
902
  "claude-opus-4-5": "opus",
903
903
  "claude-opus-4-6": "opus",
904
+ "claude-opus-4-7": "opus",
904
905
  "claude-sonnet-4-5": "sonnet",
905
906
  "claude-sonnet-4-6": "sonnet",
906
907
  "claude-haiku-4-5": "haiku"
@@ -910,6 +911,7 @@ function toSdkModelId(modelId) {
910
911
  }
911
912
  var MODELS_WITH_1M_CONTEXT = /* @__PURE__ */ new Set([
912
913
  "claude-opus-4-6",
914
+ "claude-opus-4-7",
913
915
  "claude-sonnet-4-6"
914
916
  ]);
915
917
  function supports1MContext(modelId) {
@@ -918,9 +920,10 @@ function supports1MContext(modelId) {
918
920
  var MODELS_WITH_EFFORT = /* @__PURE__ */ new Set([
919
921
  "claude-opus-4-5",
920
922
  "claude-opus-4-6",
923
+ "claude-opus-4-7",
921
924
  "claude-sonnet-4-6"
922
925
  ]);
923
- var MODELS_WITH_MAX_EFFORT = /* @__PURE__ */ new Set(["claude-opus-4-6"]);
926
+ var MODELS_WITH_MAX_EFFORT = /* @__PURE__ */ new Set(["claude-opus-4-6", "claude-opus-4-7"]);
924
927
  function supportsEffort(modelId) {
925
928
  return MODELS_WITH_EFFORT.has(modelId);
926
929
  }
@@ -5802,7 +5805,7 @@ var import_hono = require("hono");
5802
5805
  // package.json
5803
5806
  var package_default = {
5804
5807
  name: "@posthog/agent",
5805
- version: "2.3.267",
5808
+ version: "2.3.280",
5806
5809
  repository: "https://github.com/PostHog/code",
5807
5810
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
5808
5811
  exports: {
@@ -6237,7 +6240,7 @@ function unreachable(value, logger) {
6237
6240
  }
6238
6241
 
6239
6242
  // src/gateway-models.ts
6240
- var DEFAULT_GATEWAY_MODEL = "claude-opus-4-6";
6243
+ var DEFAULT_GATEWAY_MODEL = "claude-opus-4-7";
6241
6244
  var DEFAULT_CODEX_MODEL = "gpt-5.4";
6242
6245
  var BLOCKED_MODELS = /* @__PURE__ */ new Set(["gpt-5-mini", "openai/gpt-5-mini"]);
6243
6246
  var CACHE_TTL = 10 * 60 * 1e3;
@@ -7912,8 +7915,8 @@ var availableModes = [
7912
7915
  if (ALLOW_BYPASS) {
7913
7916
  availableModes.push({
7914
7917
  id: "bypassPermissions",
7915
- name: "Auto-accept Permissions",
7916
- description: "Auto-accept all permission requests"
7918
+ name: "Bypass Permissions",
7919
+ description: "Bypass all permission prompts"
7917
7920
  });
7918
7921
  }
7919
7922
  var CODE_EXECUTION_MODES = [
@@ -7942,7 +7945,7 @@ if (ALLOW_BYPASS) {
7942
7945
  codexModes.push({
7943
7946
  id: "full-access",
7944
7947
  name: "Full Access",
7945
- description: "Auto-accept all permission requests"
7948
+ description: "Bypass all permission prompts"
7946
7949
  });
7947
7950
  }
7948
7951
 
@@ -8059,7 +8062,7 @@ function buildExitPlanModePermissionOptions() {
8059
8062
  if (ALLOW_BYPASS2) {
8060
8063
  options.push({
8061
8064
  kind: "allow_always",
8062
- name: "Yes, auto-accept all permissions",
8065
+ name: "Yes, bypass all permissions",
8063
8066
  optionId: "bypassPermissions"
8064
8067
  });
8065
8068
  }