From 39a1dbc6e09f85b37aeca920d27dd81ab407cd6f Mon Sep 17 00:00:00 2001 From: Rishabh Gupta <38923768+imrishabh18@users.noreply.github.com> Date: Thu, 7 May 2026 11:29:40 +0530 Subject: [PATCH] Add krt autorouter preset --- generated/COMPONENT_TYPES.md | 2 ++ generated/PROPS_OVERVIEW.md | 1 + lib/components/group.ts | 4 ++++ tests/autorouter.test.ts | 5 +++++ 4 files changed, 12 insertions(+) diff --git a/generated/COMPONENT_TYPES.md b/generated/COMPONENT_TYPES.md index dd65b87..d5cea14 100644 --- a/generated/COMPONENT_TYPES.md +++ b/generated/COMPONENT_TYPES.md @@ -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" @@ -2059,6 +2060,7 @@ export const autorouterConfig = z.object({ "auto_cloud", "auto_jumper", "tscircuit_beta", + "krt", "freerouting", "laser_prefab", "auto-jumper", diff --git a/generated/PROPS_OVERVIEW.md b/generated/PROPS_OVERVIEW.md index f63e068..ff2ff4a 100644 --- a/generated/PROPS_OVERVIEW.md +++ b/generated/PROPS_OVERVIEW.md @@ -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" diff --git a/lib/components/group.ts b/lib/components/group.ts index 21f5cd4..72ae559 100644 --- a/lib/components/group.ts +++ b/lib/components/group.ts @@ -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" @@ -360,6 +361,7 @@ export type AutorouterPreset = | "auto_cloud" | "auto_jumper" | "tscircuit_beta" + | "krt" | "freerouting" | "laser_prefab" | "auto-jumper" @@ -412,6 +414,7 @@ export const autorouterConfig = z.object({ "auto_cloud", "auto_jumper", "tscircuit_beta", + "krt", "freerouting", "laser_prefab", "auto-jumper", @@ -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"), diff --git a/tests/autorouter.test.ts b/tests/autorouter.test.ts index 4ef3d8e..20587b4 100644 --- a/tests/autorouter.test.ts +++ b/tests/autorouter.test.ts @@ -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")