Skip to content

refactor: adopt commander, zod, picomatch, and smol-toml - #49

Merged
theonly1me merged 6 commits into
feat/automatic-transfer-evalsfrom
refactor/adopt-3rd-party-packages
Sep 6, 2026
Merged

refactor: adopt commander, zod, picomatch, and smol-toml#49
theonly1me merged 6 commits into
feat/automatic-transfer-evalsfrom
refactor/adopt-3rd-party-packages

Conversation

@theonly1me

Copy link
Copy Markdown
Owner

What changed

  • Adopt commander for CLI option and argument parsing across src/cli/eval.ts, src/cli/transferEval.ts, and src/cli/run.ts.
  • Replace hand-rolled schema validation in src/config/schema.ts, src/config/managed.ts, src/config/repo.ts, and src/distill/schema.ts with zod.
  • Use picomatch for glob pattern matching in src/signal/origin.ts.
  • Use smol-toml for parsing and stringifying configuration in src/config/index.ts.
  • Validate hook payload structure in src/cli/hookInput.ts using zod.

Why

Hand-rolled argument parsing, wildcard matching, and schema checks added boilerplate across CLI and configuration modules. Using widely adopted packages simplifies these modules while preserving existing behavior and error contracts.

How to verify

bun run typecheck
bun run lint
bun test

@theonly1me
theonly1me merged commit ea16b10 into feat/automatic-transfer-evals Sep 6, 2026
3 checks passed
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.

1 participant