Skip to content

Remove internal Zod schemas#26974

Merged
kitlangton merged 2 commits into
devfrom
cleanup/zod-small-internal
May 12, 2026
Merged

Remove internal Zod schemas#26974
kitlangton merged 2 commits into
devfrom
cleanup/zod-small-internal

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Replace small internal patch and installation Zod schemas with Effect Schema while preserving JSON shape and schema metadata descriptions/identifier.
  • Drop unused/internal Zod type imports from file watcher and provider schema transforms.
  • Keep NamedError, plugin tool APIs, MCP SDK, and Copilot SDK internals untouched.

Verification

  • bun run test -- test/patch/patch.test.ts test/tool/apply_patch.test.ts
  • bun run test -- test/installation/installation.test.ts
  • bun run test -- test/provider/transform.test.ts test/file/watcher.test.ts
  • bun typecheck
  • bunx prettier --check src/file/watcher.ts src/provider/transform.ts src/patch/index.ts src/installation/index.ts
  • bunx oxlint packages/opencode/src/file/watcher.ts packages/opencode/src/provider/transform.ts packages/opencode/src/patch/index.ts packages/opencode/src/installation/index.ts

@kitlangton kitlangton merged commit 9e8274d into dev May 12, 2026
9 checks passed
@kitlangton kitlangton deleted the cleanup/zod-small-internal branch May 12, 2026 01:40
leohenon pushed a commit to leohenon/opencode-vim that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant