Skip to content

Commit 0eb899a

Browse files
jerome-benoitopencode-agent[bot]rekram1-node
authored
chore: cleanup versioned zod imports (#3460)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
1 parent 3241f6b commit 0eb899a

53 files changed

Lines changed: 78 additions & 77 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/opencode/script/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bun
22

3-
import { z } from "zod/v4"
3+
import { z } from "zod"
44
import { Config } from "../src/config/config"
55

66
const file = process.argv[2]

packages/opencode/src/agent/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Config } from "../config/config"
2-
import z from "zod/v4"
2+
import z from "zod"
33
import { Provider } from "../provider/provider"
44
import { generateObject, type ModelMessage } from "ai"
55
import PROMPT_GENERATE from "./generate.txt"

packages/opencode/src/auth/github-copilot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import z from "zod/v4"
1+
import z from "zod"
22
import { Auth } from "./index"
33
import { NamedError } from "../util/error"
44

packages/opencode/src/auth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from "path"
22
import { Global } from "../global"
33
import fs from "fs/promises"
4-
import z from "zod/v4"
4+
import z from "zod"
55

66
export namespace Auth {
77
export const Oauth = z

packages/opencode/src/bun/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import z from "zod/v4"
1+
import z from "zod"
22
import { Global } from "../global"
33
import { Log } from "../util/log"
44
import path from "path"

packages/opencode/src/bus/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import z from "zod/v4"
2-
import type { ZodType } from "zod/v4"
1+
import z from "zod"
2+
import type { ZodType } from "zod"
33
import { Log } from "../util/log"
44
import { Instance } from "../project/instance"
55

packages/opencode/src/cli/ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import z from "zod/v4"
1+
import z from "zod"
22
import { EOL } from "os"
33
import { NamedError } from "../util/error"
44

packages/opencode/src/command/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import z from "zod/v4"
1+
import z from "zod"
22
import { Config } from "../config/config"
33
import { Instance } from "../project/instance"
44

packages/opencode/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Log } from "../util/log"
22
import path from "path"
33
import os from "os"
4-
import z from "zod/v4"
4+
import z from "zod"
55
import { Filesystem } from "../util/filesystem"
66
import { ModelsDev } from "../provider/models"
77
import { mergeDeep, pipe } from "remeda"

packages/opencode/src/file/fzf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from "path"
22
import { Global } from "../global"
33
import fs from "fs/promises"
4-
import z from "zod/v4"
4+
import z from "zod"
55
import { NamedError } from "../util/error"
66
import { lazy } from "../util/lazy"
77
import { Log } from "../util/log"

0 commit comments

Comments
 (0)