@tscircuit/props 0.0.658 → 0.0.660

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/README.md CHANGED
@@ -424,6 +424,11 @@ export interface BoardProps extends Omit<
424
424
  * false, which restricts newly generated vias to the full board stack.
425
425
  */
426
426
  allowBlindAndBuriedVias?: boolean;
427
+ /**
428
+ * Whether to route remaining unrouted connections after explicit routing phases.
429
+ * Omitted leaves the setting unset, preserving the consumer's default behavior.
430
+ */
431
+ routeRemaining?: boolean;
427
432
  defaultViaTenting?:
428
433
  | boolean
429
434
  | "both_sides"
package/dist/index.d.ts CHANGED
@@ -21290,9 +21290,9 @@ interface AutorouterConfig {
21290
21290
  algorithmFn?: (simpleRouteJson: any) => Promise<any>;
21291
21291
  /** Override the solver used to place implicit breakout points. */
21292
21292
  implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn;
21293
- 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" | /** @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";
21293
+ 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" | "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";
21294
21294
  }
21295
- 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" | "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";
21295
+ 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" | "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";
21296
21296
  type AutorouterProp = AutorouterConfig | AutocompleteString<AutorouterPreset>;
21297
21297
  declare const routingTolerances: z.ZodObject<{
21298
21298
  minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -21337,7 +21337,7 @@ declare const autorouterConfig: z.ZodObject<{
21337
21337
  groupMode: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "sequential-trace"]>>;
21338
21338
  algorithmFn: z.ZodOptional<z.ZodType<(simpleRouteJson: any) => Promise<any>, z.ZodTypeDef, (simpleRouteJson: any) => Promise<any>>>;
21339
21339
  implicitBreakoutPointSolverFn: z.ZodOptional<z.ZodType<ImplicitBreakoutPointSolverFn, z.ZodTypeDef, ImplicitBreakoutPointSolverFn>>;
21340
- 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", "auto-jumper", "sequential-trace", "auto-local", "auto-cloud"]>>;
21340
+ 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", "bus_lanes", "auto-jumper", "sequential-trace", "auto-local", "auto-cloud"]>>;
21341
21341
  local: z.ZodOptional<z.ZodBoolean>;
21342
21342
  }, "strip", z.ZodTypeAny, {
21343
21343
  serverUrl?: string | undefined;
@@ -21351,7 +21351,7 @@ declare const autorouterConfig: z.ZodObject<{
21351
21351
  groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
21352
21352
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
21353
21353
  implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn | undefined;
21354
- 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" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
21354
+ 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" | "bus_lanes" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
21355
21355
  local?: boolean | undefined;
21356
21356
  }, {
21357
21357
  serverUrl?: string | undefined;
@@ -21365,10 +21365,10 @@ declare const autorouterConfig: z.ZodObject<{
21365
21365
  groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
21366
21366
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
21367
21367
  implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn | undefined;
21368
- 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" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
21368
+ 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" | "bus_lanes" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
21369
21369
  local?: boolean | undefined;
21370
21370
  }>;
21371
- 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<"auto-jumper">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
21371
+ 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<"bus_lanes">, z.ZodLiteral<"auto-jumper">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
21372
21372
  declare const autorouterProp: z.ZodType<AutorouterProp>;
21373
21373
  declare const autorouterEffortLevel: z.ZodEnum<["1x", "2x", "5x", "10x", "100x"]>;
21374
21374
  declare const preflightRoutingCheckPolicy: z.ZodEnum<["none", "basic", "conservative"]>;
@@ -27910,6 +27910,11 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
27910
27910
  * false, which restricts newly generated vias to the full board stack.
27911
27911
  */
27912
27912
  allowBlindAndBuriedVias?: boolean;
27913
+ /**
27914
+ * Whether to route remaining unrouted connections after explicit routing phases.
27915
+ * Omitted leaves the setting unset, preserving the consumer's default behavior.
27916
+ */
27917
+ routeRemaining?: boolean;
27913
27918
  defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed";
27914
27919
  borderRadius?: Distance;
27915
27920
  thickness?: Distance;
@@ -28716,6 +28721,7 @@ declare const boardProps: z.ZodObject<{
28716
28721
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
28717
28722
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
28718
28723
  allowBlindAndBuriedVias: z.ZodDefault<z.ZodBoolean>;
28724
+ routeRemaining: z.ZodOptional<z.ZodBoolean>;
28719
28725
  defaultViaTenting: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["both_sides", "top_and_bottom_tented", "top_tented", "bottom_tented", "exposed"]>]>, "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed", boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed">>;
28720
28726
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28721
28727
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -29112,6 +29118,7 @@ declare const boardProps: z.ZodObject<{
29112
29118
  schMatchAdapt?: boolean | undefined;
29113
29119
  title?: string | undefined;
29114
29120
  fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
29121
+ routeRemaining?: boolean | undefined;
29115
29122
  defaultViaTenting?: "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
29116
29123
  borderRadius?: number | undefined;
29117
29124
  boardAnchorPosition?: {
@@ -29462,6 +29469,7 @@ declare const boardProps: z.ZodObject<{
29462
29469
  fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
29463
29470
  material?: "flex" | "fr4" | "fr1" | undefined;
29464
29471
  allowBlindAndBuriedVias?: boolean | undefined;
29472
+ routeRemaining?: boolean | undefined;
29465
29473
  defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
29466
29474
  borderRadius?: string | number | undefined;
29467
29475
  boardAnchorPosition?: {
@@ -102739,6 +102747,7 @@ declare const stampboardProps: z.ZodObject<{
102739
102747
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
102740
102748
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
102741
102749
  allowBlindAndBuriedVias: z.ZodDefault<z.ZodBoolean>;
102750
+ routeRemaining: z.ZodOptional<z.ZodBoolean>;
102742
102751
  defaultViaTenting: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["both_sides", "top_and_bottom_tented", "top_tented", "bottom_tented", "exposed"]>]>, "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed", boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed">>;
102743
102752
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
102744
102753
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -103150,6 +103159,7 @@ declare const stampboardProps: z.ZodObject<{
103150
103159
  schMatchAdapt?: boolean | undefined;
103151
103160
  title?: string | undefined;
103152
103161
  fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
103162
+ routeRemaining?: boolean | undefined;
103153
103163
  defaultViaTenting?: "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
103154
103164
  borderRadius?: number | undefined;
103155
103165
  boardAnchorPosition?: {
@@ -103510,6 +103520,7 @@ declare const stampboardProps: z.ZodObject<{
103510
103520
  fabricatorPreset?: "jlcpcb_economy" | "jlcpcb_standard" | "jlcpcb_economy_20260912" | "jlcpcb_standard_20260912" | undefined;
103511
103521
  material?: "flex" | "fr4" | "fr1" | undefined;
103512
103522
  allowBlindAndBuriedVias?: boolean | undefined;
103523
+ routeRemaining?: boolean | undefined;
103513
103524
  defaultViaTenting?: boolean | "both_sides" | "top_and_bottom_tented" | "top_tented" | "bottom_tented" | "exposed" | undefined;
103514
103525
  borderRadius?: string | number | undefined;
103515
103526
  boardAnchorPosition?: {
package/dist/index.js CHANGED
@@ -16467,6 +16467,7 @@ var autorouterConfig = z43.object({
16467
16467
  "laser_prefab",
16468
16468
  "single_layer_fanout",
16469
16469
  "fanout",
16470
+ "bus_lanes",
16470
16471
  "auto-jumper",
16471
16472
  "sequential-trace",
16472
16473
  "auto-local",
@@ -16490,6 +16491,7 @@ var autorouterPreset = z43.union([
16490
16491
  // Prefabricated PCB with laser copper ablation
16491
16492
  z43.literal("single_layer_fanout"),
16492
16493
  z43.literal("fanout"),
16494
+ z43.literal("bus_lanes"),
16493
16495
  z43.literal("auto-jumper"),
16494
16496
  z43.literal("sequential-trace"),
16495
16497
  z43.literal("auto-local"),
@@ -16715,6 +16717,9 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16715
16717
  allowBlindAndBuriedVias: z44.boolean().default(false).describe(
16716
16718
  "Whether the autorouter may generate blind and buried vias. Defaults to false, which restricts newly generated vias to the full board stack."
16717
16719
  ),
16720
+ routeRemaining: z44.boolean().optional().describe(
16721
+ "Whether to route remaining unrouted connections after explicit routing phases. Boolean values are preserved; omitted leaves the setting unset. No aliases or prop conflicts are introduced, and existing boards require no migration."
16722
+ ),
16718
16723
  defaultViaTenting: z44.union([
16719
16724
  z44.boolean(),
16720
16725
  z44.enum([