@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/agent",
3
- "version": "2.3.267",
3
+ "version": "2.3.280",
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": {
@@ -100,7 +100,7 @@ export function buildExitPlanModePermissionOptions(): PermissionOption[] {
100
100
  if (ALLOW_BYPASS) {
101
101
  options.push({
102
102
  kind: "allow_always",
103
- name: "Yes, auto-accept all permissions",
103
+ name: "Yes, bypass all permissions",
104
104
  optionId: "bypassPermissions",
105
105
  });
106
106
  }
@@ -3,6 +3,7 @@ export const DEFAULT_MODEL = "opus";
3
3
  const GATEWAY_TO_SDK_MODEL: Record<string, string> = {
4
4
  "claude-opus-4-5": "opus",
5
5
  "claude-opus-4-6": "opus",
6
+ "claude-opus-4-7": "opus",
6
7
  "claude-sonnet-4-5": "sonnet",
7
8
  "claude-sonnet-4-6": "sonnet",
8
9
  "claude-haiku-4-5": "haiku",
@@ -14,6 +15,7 @@ export function toSdkModelId(modelId: string): string {
14
15
 
15
16
  const MODELS_WITH_1M_CONTEXT = new Set([
16
17
  "claude-opus-4-6",
18
+ "claude-opus-4-7",
17
19
  "claude-sonnet-4-6",
18
20
  ]);
19
21
 
@@ -24,10 +26,11 @@ export function supports1MContext(modelId: string): boolean {
24
26
  const MODELS_WITH_EFFORT = new Set([
25
27
  "claude-opus-4-5",
26
28
  "claude-opus-4-6",
29
+ "claude-opus-4-7",
27
30
  "claude-sonnet-4-6",
28
31
  ]);
29
32
 
30
- const MODELS_WITH_MAX_EFFORT = new Set(["claude-opus-4-6"]);
33
+ const MODELS_WITH_MAX_EFFORT = new Set(["claude-opus-4-6", "claude-opus-4-7"]);
31
34
 
32
35
  export function supportsEffort(modelId: string): boolean {
33
36
  return MODELS_WITH_EFFORT.has(modelId);
@@ -35,8 +35,8 @@ const availableModes: ModeInfo[] = [
35
35
  if (ALLOW_BYPASS) {
36
36
  availableModes.push({
37
37
  id: "bypassPermissions",
38
- name: "Auto-accept Permissions",
39
- description: "Auto-accept all permission requests",
38
+ name: "Bypass Permissions",
39
+ description: "Bypass all permission prompts",
40
40
  });
41
41
  }
42
42
 
@@ -84,7 +84,7 @@ if (ALLOW_BYPASS) {
84
84
  codexModes.push({
85
85
  id: "full-access",
86
86
  name: "Full Access",
87
- description: "Auto-accept all permission requests",
87
+ description: "Bypass all permission prompts",
88
88
  });
89
89
  }
90
90
 
@@ -15,7 +15,7 @@ export interface FetchGatewayModelsOptions {
15
15
  gatewayUrl: string;
16
16
  }
17
17
 
18
- export const DEFAULT_GATEWAY_MODEL = "claude-opus-4-6";
18
+ export const DEFAULT_GATEWAY_MODEL = "claude-opus-4-7";
19
19
 
20
20
  export const DEFAULT_CODEX_MODEL = "gpt-5.4";
21
21
 
@@ -27,7 +27,7 @@ export function createPostHogHandlers(options: PostHogHandlersOptions = {}) {
27
27
  object: "list",
28
28
  data: [
29
29
  {
30
- id: "claude-opus-4-6",
30
+ id: "claude-opus-4-7",
31
31
  owned_by: "anthropic",
32
32
  context_window: 200000,
33
33
  supports_streaming: true,