@tscircuit/props 0.0.674 → 0.0.675

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -33638,11 +33638,20 @@ interface AutorouterConfig {
33638
33638
  algorithmFn?: (simpleRouteJson: any) => Promise<any>;
33639
33639
  /** Override the solver used to place implicit breakout points. */
33640
33640
  implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn;
33641
- preset?: /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | /** @deprecated Use "auto_jumper" */ "auto-jumper" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
33641
+ /**
33642
+ * single_layer_bus and single_layer_buses are aliases that parse as bus_lanes.
33643
+ * Omitted leaves the preset unset. Existing presets remain unchanged; no
33644
+ * conflicting fields or migration are introduced.
33645
+ */
33646
+ preset?: /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "single_layer_bus" | "single_layer_buses" | /** @deprecated Use "auto_jumper" */ "auto-jumper" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
33642
33647
  }
33643
33648
  type AutorouterPreset = /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout"
33644
33649
  /** Local pad-to-via fanout without routing to a breakout boundary. */
33645
- | "dogbone" | "bus_lanes" | "auto-jumper" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace" | "auto-local" | "auto-cloud";
33650
+ | "dogbone" | "bus_lanes"
33651
+ /** Alias for bus_lanes; parsing normalizes to bus_lanes. */
33652
+ | "single_layer_bus"
33653
+ /** Alias for bus_lanes; parsing normalizes to bus_lanes. */
33654
+ | "single_layer_buses" | "auto-jumper" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace" | "auto-local" | "auto-cloud";
33646
33655
  type AutorouterProp = AutorouterConfig | AutocompleteString<AutorouterPreset>;
33647
33656
  declare const routingTolerances: z.ZodObject<{
33648
33657
  minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -33690,7 +33699,7 @@ declare const autorouterConfig: z.ZodObject<{
33690
33699
  groupMode: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "sequential-trace"]>>;
33691
33700
  algorithmFn: z.ZodOptional<z.ZodType<(simpleRouteJson: any) => Promise<any>, z.ZodTypeDef, (simpleRouteJson: any) => Promise<any>>>;
33692
33701
  implicitBreakoutPointSolverFn: z.ZodOptional<z.ZodType<ImplicitBreakoutPointSolverFn, z.ZodTypeDef, ImplicitBreakoutPointSolverFn>>;
33693
- preset: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "default", "auto", "auto_local", "auto_cloud", "auto_jumper", "tscircuit_beta", "krt", "freerouting", "simplify", "laser_prefab", "single_layer_fanout", "fanout", "dogbone", "bus_lanes", "auto-jumper", "sequential-trace", "auto-local", "auto-cloud"]>>;
33702
+ preset: z.ZodOptional<z.ZodEffects<z.ZodEnum<["sequential_trace", "subcircuit", "default", "auto", "auto_local", "auto_cloud", "auto_jumper", "tscircuit_beta", "krt", "freerouting", "simplify", "laser_prefab", "single_layer_fanout", "fanout", "dogbone", "bus_lanes", "single_layer_bus", "single_layer_buses", "auto-jumper", "sequential-trace", "auto-local", "auto-cloud"]>, "default" | "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "auto-jumper" | "auto-local" | "auto-cloud", "default" | "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "single_layer_bus" | "single_layer_buses" | "auto-jumper" | "auto-local" | "auto-cloud">>;
33694
33703
  local: z.ZodOptional<z.ZodBoolean>;
33695
33704
  }, "strip", z.ZodTypeAny, {
33696
33705
  serverUrl?: string | undefined;
@@ -33718,10 +33727,10 @@ declare const autorouterConfig: z.ZodObject<{
33718
33727
  groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
33719
33728
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
33720
33729
  implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn | undefined;
33721
- preset?: "default" | "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
33730
+ preset?: "default" | "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "single_layer_bus" | "single_layer_buses" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
33722
33731
  local?: boolean | undefined;
33723
33732
  }>;
33724
- declare const autorouterPreset: z.ZodUnion<[z.ZodLiteral<"sequential_trace">, z.ZodLiteral<"subcircuit">, z.ZodLiteral<"default">, z.ZodLiteral<"auto">, z.ZodLiteral<"auto_local">, z.ZodLiteral<"auto_cloud">, z.ZodLiteral<"auto_jumper">, z.ZodLiteral<"tscircuit_beta">, z.ZodLiteral<"krt">, z.ZodLiteral<"freerouting">, z.ZodLiteral<"simplify">, z.ZodLiteral<"laser_prefab">, z.ZodLiteral<"single_layer_fanout">, z.ZodLiteral<"fanout">, z.ZodLiteral<"dogbone">, z.ZodLiteral<"bus_lanes">, z.ZodLiteral<"auto-jumper">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
33733
+ declare const autorouterPreset: z.ZodUnion<[z.ZodLiteral<"sequential_trace">, z.ZodLiteral<"subcircuit">, z.ZodLiteral<"default">, z.ZodLiteral<"auto">, z.ZodLiteral<"auto_local">, z.ZodLiteral<"auto_cloud">, z.ZodLiteral<"auto_jumper">, z.ZodLiteral<"tscircuit_beta">, z.ZodLiteral<"krt">, z.ZodLiteral<"freerouting">, z.ZodLiteral<"simplify">, z.ZodLiteral<"laser_prefab">, z.ZodLiteral<"single_layer_fanout">, z.ZodLiteral<"fanout">, z.ZodLiteral<"dogbone">, z.ZodLiteral<"bus_lanes">, z.ZodEffects<z.ZodLiteral<"single_layer_bus">, "bus_lanes", "single_layer_bus">, z.ZodEffects<z.ZodLiteral<"single_layer_buses">, "bus_lanes", "single_layer_buses">, z.ZodLiteral<"auto-jumper">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
33725
33734
  declare const autorouterProp: z.ZodType<AutorouterProp>;
33726
33735
  declare const autorouterEffortLevel: z.ZodEnum<["1x", "1.5x", "2x", "5x", "10x", "100x"]>;
33727
33736
  declare const preflightRoutingCheckPolicy: z.ZodEnum<["none", "basic", "conservative"]>;
package/dist/index.js CHANGED
@@ -16533,11 +16533,15 @@ var autorouterConfig = z44.object({
16533
16533
  "fanout",
16534
16534
  "dogbone",
16535
16535
  "bus_lanes",
16536
+ "single_layer_bus",
16537
+ "single_layer_buses",
16536
16538
  "auto-jumper",
16537
16539
  "sequential-trace",
16538
16540
  "auto-local",
16539
16541
  "auto-cloud"
16540
- ]).optional(),
16542
+ ]).transform(
16543
+ (preset) => preset === "single_layer_bus" || preset === "single_layer_buses" ? "bus_lanes" : preset
16544
+ ).optional(),
16541
16545
  local: z44.boolean().optional()
16542
16546
  });
16543
16547
  var autorouterPreset = z44.union([
@@ -16558,6 +16562,8 @@ var autorouterPreset = z44.union([
16558
16562
  z44.literal("fanout"),
16559
16563
  z44.literal("dogbone"),
16560
16564
  z44.literal("bus_lanes"),
16565
+ z44.literal("single_layer_bus").transform(() => "bus_lanes"),
16566
+ z44.literal("single_layer_buses").transform(() => "bus_lanes"),
16561
16567
  z44.literal("auto-jumper"),
16562
16568
  z44.literal("sequential-trace"),
16563
16569
  z44.literal("auto-local"),