STET

agent_patch

runs/2026-02-27__21-30-28__gpt-5-4/flux-pr-4807/flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/agent-logs/agent.patch

9093 bytes

Back to adjudication
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/.husky/pre-commit b/app/.husky/pre-commit
index bcbc1dd..9892d61 100755
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/.husky/pre-commit
+++ b/app/.husky/pre-commit
@@ -1,2 +1,7 @@
+if [ -n "$(git ls-files --others --exclude-standard)" ]; then
+  echo "ERROR: untracked files present";
+  git status;
+  exit 1
+fi
 pnpm semver-check
 lint-staged --verbose
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/.husky/pre-push b/app/.husky/pre-push
index a2e15d9..639372a 100755
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/.husky/pre-push
+++ b/app/.husky/pre-push
@@ -1,3 +1,8 @@
+if [ -n "$(git ls-files --others --exclude-standard)" ]; then
+  echo "ERROR: untracked files present";
+  git status;
+  exit 1
+fi
 pnpm test
 pnpm semver-check
 pnpm build
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/bench/object-moltar.ts b/app/packages/bench/object-moltar.ts
index 573a2e2..97b178b 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/bench/object-moltar.ts
+++ b/app/packages/bench/object-moltar.ts
@@ -1,5 +1,5 @@
 import * as z4 from "zod/v4";
-import * as z4lib from "./node_modules/zod4/dist/esm/v4/classic/index.js";
+import * as z4lib from "zod4/v4";
 import * as z3 from "zod3";
 import { metabench } from "./metabench.js";
 
@@ -92,6 +92,7 @@ const DATA = Array.from({ length: 1000 }, () =>
 
 console.log(z3Schema.parse(DATA[0]));
 console.log(z4Schema.parse(DATA[0]));
+console.log(z4LibSchema.parse(DATA[0]));
 
 const bench = metabench("z.object() safeParse", {
   zod3() {
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/docs/components/ecosystem.tsx b/app/packages/docs/components/ecosystem.tsx
index 4ec59b4..dc8b539 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/docs/components/ecosystem.tsx
+++ b/app/packages/docs/components/ecosystem.tsx
@@ -40,6 +40,12 @@ const apiLibraries: ZodResource[] = [
     description: "Socket.IO solution with I/O validation, an AsyncAPI generator, and a type-safe events map.",
     slug: "RobinTail/zod-sockets",
   },
+  {
+    name: "Zod JSON-RPC",
+    url: "https://github.com/danscan/zod-jsonrpc",
+    description: "Type-safe JSON-RPC 2.0 client/server library using Zod.",
+    slug: "danscan/zod-jsonrpc",
+  },
 
   // https://github.com/honojs/middleware/tree/main/packages/zod-validator
   // {
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/docs/content/basics.mdx b/app/packages/docs/content/basics.mdx
index e9f5bee..c3d2c0d 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/docs/content/basics.mdx
+++ b/app/packages/docs/content/basics.mdx
@@ -63,7 +63,7 @@ Player.parse({ username: "billie", xp: 100 });
 ```
 
 <Callout>
-**Note** — If your schema uses certain asynchronous APIs like `async` [refinements](#refine) or [transforms](#transform), you'll need to use the `.parseAsync()` method instead. 
+**Note** — If your schema uses certain asynchronous APIs like `async` [refinements](/api#refinements) or [transforms](/api#transforms), you'll need to use the `.parseAsync()` method instead.
 
 ```ts
 await Player.parseAsync({ username: "billie", xp: 100 }); 
@@ -139,7 +139,7 @@ if (!result.success) {
 ```
 
 <Callout>
-**Note** — If your schema uses certain asynchronous APIs like `async` [refinements](#refine) or [transforms](#transform), you'll need to use the `.safeParseAsync()` method instead. 
+**Note** — If your schema uses certain asynchronous APIs like `async` [refinements](/api#refinements) or [transforms](/api#transforms), you'll need to use the `.safeParseAsync()` method instead.
 
 ```ts
 await schema.safeParseAsync("hello");
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/docs/content/parsing.mdx b/app/packages/docs/content/parsing.mdx
index 18394ff..5ad7613 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/docs/content/parsing.mdx
+++ b/app/packages/docs/content/parsing.mdx
@@ -21,7 +21,7 @@ stringSchema.parse(12); // throws error
 
 `.parseAsync(data:unknown): Promise<T>`
 
-If you use asynchronous [refinements](#refine) or [transforms](#transform) (more on those later), you'll need to use `.parseAsync`.
+If you use asynchronous [refinements](/api#refinements) or [transforms](/api#transforms) (more on those later), you'll need to use `.parseAsync`.
 
 ```ts
 const stringSchema = z.string().refine(async (val) => val.length <= 8);
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/resolution/tsconfig.build.json b/app/packages/resolution/tsconfig.build.json
index efabd5b..20f990e 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/resolution/tsconfig.build.json
+++ b/app/packages/resolution/tsconfig.build.json
@@ -5,7 +5,8 @@
     "outDir": "./dist",
     "rootDir": "./src",
     "declaration": true,
-    "emitDeclarationOnly": false
+    "emitDeclarationOnly": false,
+    "skipLibCheck": false
   },
   "include": ["src/*.ts", "src/*.mts", "src/*.cts"],
 }
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/package.json b/app/packages/zod/package.json
index fac52c0..adaacef 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/package.json
+++ b/app/packages/zod/package.json
@@ -1,6 +1,6 @@
 {
   "name": "zod",
-  "version": "3.25.69",
+  "version": "3.25.70",
   "type": "module",
   "author": "Colin McDonnell <zod@colinhacks.com>",
   "description": "TypeScript-first schema declaration and validation library with static type inference",
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/v4/classic/external.ts b/app/packages/zod/v4/classic/external.ts
index b226eed..855f5a7 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/v4/classic/external.ts
+++ b/app/packages/zod/v4/classic/external.ts
@@ -28,6 +28,7 @@ export {
   flattenError,
   toJSONSchema,
   TimePrecision,
+  NEVER,
 } from "../core/index.js";
 
 export * as locales from "../locales/index.js";
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/v4/classic/schemas.ts b/app/packages/zod/v4/classic/schemas.ts
index 6794b16..50c8ad6 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/v4/classic/schemas.ts
+++ b/app/packages/zod/v4/classic/schemas.ts
@@ -1085,11 +1085,11 @@ export interface ZodObject<
    */
   merge<U extends ZodObject>(other: U): ZodObject<util.Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
 
-  pick<M extends util.Exactly<util.Mask<keyof Shape>, M>>(
+  pick<M extends util.Mask<keyof Shape>>(
     mask: M
   ): ZodObject<util.Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
 
-  omit<M extends util.Exactly<util.Mask<keyof Shape>, M>>(
+  omit<M extends util.Mask<keyof Shape>>(
     mask: M
   ): ZodObject<util.Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config>;
 
@@ -1102,7 +1102,7 @@ export interface ZodObject<
     },
     Config
   >;
-  partial<M extends util.Exactly<util.Mask<keyof Shape>, M>>(
+  partial<M extends util.Mask<keyof Shape>>(
     mask: M
   ): ZodObject<
     {
@@ -1123,7 +1123,7 @@ export interface ZodObject<
     },
     Config
   >;
-  required<M extends util.Exactly<util.Mask<keyof Shape>, M>>(
+  required<M extends util.Mask<keyof Shape>>(
     mask: M
   ): ZodObject<
     {
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/v4/core/core.ts b/app/packages/zod/v4/core/core.ts
index 693f8ce..26494b6 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/v4/core/core.ts
+++ b/app/packages/zod/v4/core/core.ts
@@ -9,6 +9,11 @@ export interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
   init(inst: T, def: D): asserts inst is T;
 }
 
+/** A special constant with type `never` */
+export const NEVER: never = Object.freeze({
+  status: "aborted",
+}) as never;
+
 export /*@__NO_SIDE_EFFECTS__*/ function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(
   name: string,
   initializer: (inst: T, def: D) => void,
diff --git a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/v4/mini/external.ts b/app/packages/zod/v4/mini/external.ts
index a327b51..9456eb4 100644
--- a/tmp/agent-patch-flux-pr-4807.1-of-1.2026-02-27__21-30-28__gpt-5-4/app/packages/zod/v4/mini/external.ts
+++ b/app/packages/zod/v4/mini/external.ts
@@ -20,6 +20,7 @@ export {
   flattenError,
   toJSONSchema,
   TimePrecision,
+  NEVER,
 } from "../core/index.js";
 
 export * as locales from "../locales/index.js";