Skip to content

chore: cleanup versioned zod imports#3460

Merged
rekram1-node merged 3 commits into
anomalyco:devfrom
jerome-benoit:schema-validation
Oct 26, 2025
Merged

chore: cleanup versioned zod imports#3460
rekram1-node merged 3 commits into
anomalyco:devfrom
jerome-benoit:schema-validation

Conversation

@jerome-benoit
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Copilot AI review requested due to automatic review settings October 26, 2025 18:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes versioned Zod imports (zod/v4) and replaces them with standard imports (zod) across the entire codebase. This cleanup ensures compatibility with the standard Zod package structure and eliminates references to a versioned import path that may not exist in standard Zod distributions.

  • Standardized all Zod imports from zod/v4 to zod
  • Updated import statements across 60+ files in the codebase
  • Minor code formatting improvements in patch.ts and ripgrep.ts

Reviewed Changes

Copilot reviewed 54 out of 54 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/plugin/src/tool.ts Updated Zod import to standard path
packages/opencode/src/util/log.ts Updated Zod import to standard path
packages/opencode/src/util/error.ts Updated Zod import to standard path
packages/opencode/src/tool/*.ts Updated Zod imports across all tool definitions
packages/opencode/src/session/*.ts Updated Zod imports across all session modules
packages/opencode/src/provider/*.ts Updated Zod imports in provider modules; added return type annotation
packages/opencode/src/lsp/*.ts Updated Zod imports in LSP-related files
packages/opencode/src/file/*.ts Updated Zod imports in file utilities; fixed trailing semicolon
packages/opencode/src/config/config.ts Updated Zod import to standard path
packages/opencode/src/bus/index.ts Updated both Zod imports (value and type)
packages/opencode/src/auth/*.ts Updated Zod imports in authentication modules
packages/opencode/script/schema.ts Updated Zod import in schema script

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/opencode/src/tool/patch.ts
Comment thread packages/opencode/src/tool/patch.ts
@rekram1-node
Copy link
Copy Markdown
Collaborator

/oc Do the following:

  1. remove the ": JSONSchema.JSONSchema" annotation for the return type of schema function in packages/opencode/src/provider/transform.ts

@opencode-agent
Copy link
Copy Markdown
Contributor

opencode-agent Bot commented Oct 26, 2025

Done! I've removed the : JSONSchema.JSONSchema return type annotation from the schema function in packages/opencode/src/provider/transform.ts:157.

New%20session%20-%202025-10-26T19%3A50%3A05.391Z
opencode session  |  github run

Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
@rekram1-node
Copy link
Copy Markdown
Collaborator

Thank you!

@rekram1-node rekram1-node merged commit 0eb899a into anomalyco:dev Oct 26, 2025
@jerome-benoit jerome-benoit deleted the schema-validation branch December 3, 2025 18:49
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
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>
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants