Skip to content

Add krt autorouter preset#661

Merged
imrishabh18 merged 1 commit into
mainfrom
codex/add-krt-preset-for-autorouter-config
May 7, 2026
Merged

Add krt autorouter preset#661
imrishabh18 merged 1 commit into
mainfrom
codex/add-krt-preset-for-autorouter-config

Conversation

@imrishabh18
Copy link
Copy Markdown
Member

Motivation

  • Expose a new autorouter preset named krt so it can be selected in group autorouter configurations.
  • Keep generated documentation and type/schema artifacts in sync with the new preset.

Description

  • Add "krt" to the preset union on AutorouterConfig and to the AutorouterPreset type in lib/components/group.ts.
  • Add z.enum / z.literal entries for krt in the runtime autorouterConfig schema and autorouterPreset union.
  • Update generated artifacts generated/COMPONENT_TYPES.md and generated/PROPS_OVERVIEW.md to include the new preset.
  • Add a unit test in tests/autorouter.test.ts asserting autorouterProp.parse("krt") returns "krt".

Testing

  • Ran the generation scripts bun scripts/generate-component-types.ts, bun scripts/generate-manual-edits-docs.ts, bun scripts/generate-readme-docs.ts, and bun scripts/generate-props-overview.ts which completed successfully.
  • Ran bun test tests/autorouter.test.ts and all tests passed (10 passed, 0 failed).
  • Ran the typechecker with bunx tsc --noEmit which completed without errors.
  • Ran biome format . / bun run format:check which reported no formatting fixes required.

Codex Task

@imrishabh18 imrishabh18 requested a review from seveibar May 7, 2026 05:59
@imrishabh18 imrishabh18 merged commit d224ea9 into main May 7, 2026
4 checks passed
@imrishabh18 imrishabh18 deleted the codex/add-krt-preset-for-autorouter-config branch May 7, 2026 06:03
@tscircuitbot
Copy link
Copy Markdown
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants