Skip to content

refactor(file): clean up ripgrep schema decoding#22327

Open
kitlangton wants to merge 7 commits intodevfrom
kit/ripgrep-schema-source
Open

refactor(file): clean up ripgrep schema decoding#22327
kitlangton wants to merge 7 commits intodevfrom
kit/ripgrep-schema-source

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • decode ripgrep JSON output in chunked synchronous batches instead of per-line mapEffect
  • make the Effect schemas in file/ripgrep.ts the source of truth for ripgrep row shapes
  • derive the exported Zod schemas from those Effect schemas and keep the file route on the Zod surface with Ripgrep.Item.array()

Verification

  • bun run test test/tool/grep.test.ts test/file/ripgrep.test.ts
  • bun typecheck

@kitlangton kitlangton force-pushed the kit/ripgrep-schema-source branch from d47b240 to 573a10e Compare April 13, 2026 16:34
@kitlangton kitlangton marked this pull request as ready for review April 13, 2026 17:54
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