@posthog/agent 2.3.155 → 2.3.163

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.155",
907
+ version: "2.3.163",
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: {
@@ -1016,7 +1016,7 @@ var package_default = {
1016
1016
  tar: "^7.5.0",
1017
1017
  uuid: "13.0.0",
1018
1018
  "yoga-wasm-web": "^0.3.3",
1019
- zod: "^3.24.1"
1019
+ zod: "^4.2.0"
1020
1020
  },
1021
1021
  files: [
1022
1022
  "dist/**/*",
@@ -2962,8 +2962,8 @@ var availableModes = [
2962
2962
  if (ALLOW_BYPASS) {
2963
2963
  availableModes.push({
2964
2964
  id: "bypassPermissions",
2965
- name: "Bypass Permissions",
2966
- description: "Bypass all permission checks"
2965
+ name: "Auto-accept Permissions",
2966
+ description: "Auto-accept all permission requests"
2967
2967
  });
2968
2968
  }
2969
2969
  var CODE_EXECUTION_MODES = [
@@ -3090,7 +3090,7 @@ function buildExitPlanModePermissionOptions() {
3090
3090
  if (ALLOW_BYPASS2) {
3091
3091
  options.push({
3092
3092
  kind: "allow_always",
3093
- name: "Yes, bypass all permissions",
3093
+ name: "Yes, auto-accept all permissions",
3094
3094
  optionId: "bypassPermissions"
3095
3095
  });
3096
3096
  }
@@ -11803,7 +11803,7 @@ var httpHeaderSchema = import_zod3.z.object({
11803
11803
  var remoteMcpServerSchema = import_zod3.z.object({
11804
11804
  type: import_zod3.z.enum(["http", "sse"]),
11805
11805
  name: import_zod3.z.string().min(1, "MCP server name is required"),
11806
- url: import_zod3.z.string().url("MCP server url must be a valid URL"),
11806
+ url: import_zod3.z.url({ error: "MCP server url must be a valid URL" }),
11807
11807
  headers: import_zod3.z.array(httpHeaderSchema).default([])
11808
11808
  });
11809
11809
  var mcpServersSchema = import_zod3.z.array(remoteMcpServerSchema);
@@ -11821,7 +11821,7 @@ var claudeCodeConfigSchema = import_zod3.z.object({
11821
11821
  var jsonRpcRequestSchema = import_zod3.z.object({
11822
11822
  jsonrpc: import_zod3.z.literal("2.0"),
11823
11823
  method: import_zod3.z.string(),
11824
- params: import_zod3.z.record(import_zod3.z.unknown()).optional(),
11824
+ params: import_zod3.z.record(import_zod3.z.string(), import_zod3.z.unknown()).optional(),
11825
11825
  id: import_zod3.z.union([import_zod3.z.string(), import_zod3.z.number()]).optional()
11826
11826
  });
11827
11827
  var userMessageParamsSchema = import_zod3.z.object({
@@ -13059,16 +13059,16 @@ ${attributionInstructions}
13059
13059
  // src/server/bin.ts
13060
13060
  var envSchema = import_zod4.z.object({
13061
13061
  JWT_PUBLIC_KEY: import_zod4.z.string({
13062
- required_error: "JWT_PUBLIC_KEY is required for authenticating client connections"
13062
+ error: "JWT_PUBLIC_KEY is required for authenticating client connections"
13063
13063
  }).min(1, "JWT_PUBLIC_KEY cannot be empty"),
13064
- POSTHOG_API_URL: import_zod4.z.string({
13065
- required_error: "POSTHOG_API_URL is required for LLM gateway communication"
13066
- }).url("POSTHOG_API_URL must be a valid URL"),
13064
+ POSTHOG_API_URL: import_zod4.z.url({
13065
+ error: "POSTHOG_API_URL is required for LLM gateway communication"
13066
+ }),
13067
13067
  POSTHOG_PERSONAL_API_KEY: import_zod4.z.string({
13068
- required_error: "POSTHOG_PERSONAL_API_KEY is required for authenticating with PostHog services"
13068
+ error: "POSTHOG_PERSONAL_API_KEY is required for authenticating with PostHog services"
13069
13069
  }).min(1, "POSTHOG_PERSONAL_API_KEY cannot be empty"),
13070
13070
  POSTHOG_PROJECT_ID: import_zod4.z.string({
13071
- required_error: "POSTHOG_PROJECT_ID is required for routing requests to the correct project"
13071
+ error: "POSTHOG_PROJECT_ID is required for routing requests to the correct project"
13072
13072
  }).regex(/^\d+$/, "POSTHOG_PROJECT_ID must be a numeric string").transform((val) => parseInt(val, 10))
13073
13073
  });
13074
13074
  var program = new import_commander.Command();