Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions generated/COMPONENT_TYPES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2016,6 +2016,7 @@ export interface AutorouterConfig {
| "auto_cloud"
| "auto_jumper"
| "tscircuit_beta"
| "krt"
| "freerouting"
| "laser_prefab" // Prefabricated PCB with laser copper ablation
| /** @deprecated Use "auto_jumper" */ "auto-jumper"
Expand Down Expand Up @@ -2059,6 +2060,7 @@ export const autorouterConfig = z.object({
"auto_cloud",
"auto_jumper",
"tscircuit_beta",
"krt",
"freerouting",
"laser_prefab",
"auto-jumper",
Expand Down
1 change: 1 addition & 0 deletions generated/PROPS_OVERVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface AutorouterConfig {
| "auto_cloud"
| "auto_jumper"
| "tscircuit_beta"
| "krt"
| "freerouting"
| "laser_prefab" // Prefabricated PCB with laser copper ablation
| /** @deprecated Use "auto_jumper" */ "auto-jumper"
Expand Down
4 changes: 4 additions & 0 deletions lib/components/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ export interface AutorouterConfig {
| "auto_cloud"
| "auto_jumper"
| "tscircuit_beta"
| "krt"
| "freerouting"
| "laser_prefab" // Prefabricated PCB with laser copper ablation
| /** @deprecated Use "auto_jumper" */ "auto-jumper"
Expand All @@ -360,6 +361,7 @@ export type AutorouterPreset =
| "auto_cloud"
| "auto_jumper"
| "tscircuit_beta"
| "krt"
| "freerouting"
| "laser_prefab"
| "auto-jumper"
Expand Down Expand Up @@ -412,6 +414,7 @@ export const autorouterConfig = z.object({
"auto_cloud",
"auto_jumper",
"tscircuit_beta",
"krt",
"freerouting",
"laser_prefab",
"auto-jumper",
Expand All @@ -431,6 +434,7 @@ export const autorouterPreset = z.union([
z.literal("auto_cloud"),
z.literal("auto_jumper"),
z.literal("tscircuit_beta"),
z.literal("krt"),
z.literal("freerouting"),
z.literal("laser_prefab"), // Prefabricated PCB with laser copper ablation
z.literal("auto-jumper"),
Expand Down
5 changes: 5 additions & 0 deletions tests/autorouter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ test("supports tscircuit beta preset", () => {
expect(result).toBe("tscircuit_beta")
})

test("supports krt preset", () => {
const result = autorouterProp.parse("krt")
expect(result).toBe("krt")
})

test("still supports deprecated kebab-case presets", () => {
const result = autorouterProp.parse("auto-cloud")
expect(result).toBe("auto-cloud")
Expand Down
Loading