@tscircuit/eval 0.0.765 → 0.0.766

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.
@@ -385,6 +385,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
385
385
  display_name?: string | undefined;
386
386
  are_pins_interchangeable?: boolean | undefined;
387
387
  internally_connected_source_port_ids?: string[][] | undefined;
388
+ display_inductance?: string | undefined;
388
389
  max_current_rating?: number | undefined;
389
390
  } | {
390
391
  type: "source_component";
@@ -845,6 +846,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
845
846
  display_name?: string | undefined;
846
847
  are_pins_interchangeable?: boolean | undefined;
847
848
  internally_connected_source_port_ids?: string[][] | undefined;
849
+ display_inductance?: string | undefined;
848
850
  max_current_rating?: number | undefined;
849
851
  } | {
850
852
  type: "source_component";
@@ -1141,6 +1143,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1141
1143
  x: number;
1142
1144
  y: number;
1143
1145
  } | undefined;
1146
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
1144
1147
  metadata?: {
1145
1148
  kicad_footprint?: {
1146
1149
  layer?: string | undefined;
@@ -1388,8 +1391,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1388
1391
  type: "pcb_manual_edit_conflict_warning";
1389
1392
  pcb_component_id: string;
1390
1393
  source_component_id: string;
1391
- pcb_manual_edit_conflict_warning_id: string;
1392
1394
  warning_type: "pcb_manual_edit_conflict_warning";
1395
+ pcb_manual_edit_conflict_warning_id: string;
1393
1396
  subcircuit_id?: string | undefined;
1394
1397
  pcb_group_id?: string | undefined;
1395
1398
  } | {
@@ -1625,6 +1628,20 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1625
1628
  should_round_corners?: boolean | undefined;
1626
1629
  trace_length?: number | undefined;
1627
1630
  highlight_color?: string | undefined;
1631
+ } | {
1632
+ message: string;
1633
+ type: "pcb_trace_warning";
1634
+ source_trace_id: string;
1635
+ pcb_trace_id: string;
1636
+ pcb_trace_warning_id: string;
1637
+ warning_type: "pcb_trace_warning";
1638
+ pcb_component_ids: string[];
1639
+ pcb_port_ids: string[];
1640
+ center?: {
1641
+ x: number;
1642
+ y: number;
1643
+ } | undefined;
1644
+ subcircuit_id?: string | undefined;
1628
1645
  } | {
1629
1646
  x: number;
1630
1647
  y: number;
@@ -1831,6 +1848,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1831
1848
  material: "fr4" | "fr1";
1832
1849
  width?: number | undefined;
1833
1850
  height?: number | undefined;
1851
+ min_trace_width?: number | undefined;
1852
+ min_via_to_via_spacing?: number | undefined;
1853
+ min_trace_to_pad_spacing?: number | undefined;
1854
+ min_pad_to_pad_spacing?: number | undefined;
1855
+ min_via_hole_diameter?: number | undefined;
1856
+ min_via_pad_diameter?: number | undefined;
1834
1857
  shape?: "rect" | "polygon" | undefined;
1835
1858
  display_offset_x?: string | undefined;
1836
1859
  display_offset_y?: string | undefined;
@@ -2046,10 +2069,10 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2046
2069
  type: "pcb_trace_error";
2047
2070
  source_trace_id: string;
2048
2071
  pcb_trace_id: string;
2049
- error_type: "pcb_trace_error";
2050
- pcb_trace_error_id: string;
2051
2072
  pcb_component_ids: string[];
2052
2073
  pcb_port_ids: string[];
2074
+ error_type: "pcb_trace_error";
2075
+ pcb_trace_error_id: string;
2053
2076
  center?: {
2054
2077
  x: number;
2055
2078
  y: number;
@@ -2060,9 +2083,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2060
2083
  message: string;
2061
2084
  type: "pcb_trace_missing_error";
2062
2085
  source_trace_id: string;
2063
- error_type: "pcb_trace_missing_error";
2064
2086
  pcb_component_ids: string[];
2065
2087
  pcb_port_ids: string[];
2088
+ error_type: "pcb_trace_missing_error";
2066
2089
  pcb_trace_missing_error_id: string;
2067
2090
  center?: {
2068
2091
  x: number;
@@ -2089,17 +2112,17 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2089
2112
  } | {
2090
2113
  message: string;
2091
2114
  type: "pcb_port_not_matched_error";
2092
- error_type: "pcb_port_not_matched_error";
2093
2115
  pcb_component_ids: string[];
2116
+ error_type: "pcb_port_not_matched_error";
2094
2117
  pcb_error_id: string;
2095
2118
  subcircuit_id?: string | undefined;
2096
2119
  is_fatal?: boolean | undefined;
2097
2120
  } | {
2098
2121
  message: string;
2099
2122
  type: "pcb_port_not_connected_error";
2100
- error_type: "pcb_port_not_connected_error";
2101
2123
  pcb_component_ids: string[];
2102
2124
  pcb_port_ids: string[];
2125
+ error_type: "pcb_port_not_connected_error";
2103
2126
  pcb_port_not_connected_error_id: string;
2104
2127
  subcircuit_id?: string | undefined;
2105
2128
  is_fatal?: boolean | undefined;
@@ -2117,6 +2140,50 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2117
2140
  x?: number | undefined;
2118
2141
  y?: number | undefined;
2119
2142
  } | undefined;
2143
+ } | {
2144
+ message: string;
2145
+ type: "pcb_via_trace_clearance_error";
2146
+ pcb_trace_id: string;
2147
+ error_type: "pcb_via_trace_clearance_error";
2148
+ pcb_via_id: string;
2149
+ pcb_via_trace_clearance_error_id: string;
2150
+ center?: {
2151
+ x?: number | undefined;
2152
+ y?: number | undefined;
2153
+ } | undefined;
2154
+ subcircuit_id?: string | undefined;
2155
+ is_fatal?: boolean | undefined;
2156
+ minimum_clearance?: number | undefined;
2157
+ actual_clearance?: number | undefined;
2158
+ } | {
2159
+ message: string;
2160
+ type: "pcb_pad_pad_clearance_error";
2161
+ error_type: "pcb_pad_pad_clearance_error";
2162
+ pcb_pad_pad_clearance_error_id: string;
2163
+ pcb_pad_ids: string[];
2164
+ center?: {
2165
+ x?: number | undefined;
2166
+ y?: number | undefined;
2167
+ } | undefined;
2168
+ subcircuit_id?: string | undefined;
2169
+ is_fatal?: boolean | undefined;
2170
+ minimum_clearance?: number | undefined;
2171
+ actual_clearance?: number | undefined;
2172
+ } | {
2173
+ message: string;
2174
+ type: "pcb_pad_trace_clearance_error";
2175
+ pcb_trace_id: string;
2176
+ error_type: "pcb_pad_trace_clearance_error";
2177
+ pcb_pad_trace_clearance_error_id: string;
2178
+ pcb_pad_id: string;
2179
+ center?: {
2180
+ x?: number | undefined;
2181
+ y?: number | undefined;
2182
+ } | undefined;
2183
+ subcircuit_id?: string | undefined;
2184
+ is_fatal?: boolean | undefined;
2185
+ minimum_clearance?: number | undefined;
2186
+ actual_clearance?: number | undefined;
2120
2187
  } | {
2121
2188
  type: "pcb_fabrication_note_path";
2122
2189
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -2208,6 +2275,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2208
2275
  pcb_group_id?: string | undefined;
2209
2276
  text?: string | undefined;
2210
2277
  color?: string | undefined;
2278
+ is_mirrored_from_top_view?: boolean | undefined;
2211
2279
  } | {
2212
2280
  type: "pcb_note_rect";
2213
2281
  width: number;
@@ -2307,8 +2375,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2307
2375
  } | {
2308
2376
  message: string;
2309
2377
  type: "pcb_courtyard_overlap_error";
2310
- error_type: "pcb_courtyard_overlap_error";
2311
2378
  pcb_component_ids: [string, string];
2379
+ error_type: "pcb_courtyard_overlap_error";
2312
2380
  pcb_error_id: string;
2313
2381
  is_fatal?: boolean | undefined;
2314
2382
  } | {
@@ -4645,6 +4713,7 @@ declare const runTscircuitModule: (module: string, opts?: {
4645
4713
  display_name?: string | undefined;
4646
4714
  are_pins_interchangeable?: boolean | undefined;
4647
4715
  internally_connected_source_port_ids?: string[][] | undefined;
4716
+ display_inductance?: string | undefined;
4648
4717
  max_current_rating?: number | undefined;
4649
4718
  } | {
4650
4719
  type: "source_component";
@@ -5105,6 +5174,7 @@ declare const runTscircuitModule: (module: string, opts?: {
5105
5174
  display_name?: string | undefined;
5106
5175
  are_pins_interchangeable?: boolean | undefined;
5107
5176
  internally_connected_source_port_ids?: string[][] | undefined;
5177
+ display_inductance?: string | undefined;
5108
5178
  max_current_rating?: number | undefined;
5109
5179
  } | {
5110
5180
  type: "source_component";
@@ -5401,6 +5471,7 @@ declare const runTscircuitModule: (module: string, opts?: {
5401
5471
  x: number;
5402
5472
  y: number;
5403
5473
  } | undefined;
5474
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
5404
5475
  metadata?: {
5405
5476
  kicad_footprint?: {
5406
5477
  layer?: string | undefined;
@@ -5648,8 +5719,8 @@ declare const runTscircuitModule: (module: string, opts?: {
5648
5719
  type: "pcb_manual_edit_conflict_warning";
5649
5720
  pcb_component_id: string;
5650
5721
  source_component_id: string;
5651
- pcb_manual_edit_conflict_warning_id: string;
5652
5722
  warning_type: "pcb_manual_edit_conflict_warning";
5723
+ pcb_manual_edit_conflict_warning_id: string;
5653
5724
  subcircuit_id?: string | undefined;
5654
5725
  pcb_group_id?: string | undefined;
5655
5726
  } | {
@@ -5885,6 +5956,20 @@ declare const runTscircuitModule: (module: string, opts?: {
5885
5956
  should_round_corners?: boolean | undefined;
5886
5957
  trace_length?: number | undefined;
5887
5958
  highlight_color?: string | undefined;
5959
+ } | {
5960
+ message: string;
5961
+ type: "pcb_trace_warning";
5962
+ source_trace_id: string;
5963
+ pcb_trace_id: string;
5964
+ pcb_trace_warning_id: string;
5965
+ warning_type: "pcb_trace_warning";
5966
+ pcb_component_ids: string[];
5967
+ pcb_port_ids: string[];
5968
+ center?: {
5969
+ x: number;
5970
+ y: number;
5971
+ } | undefined;
5972
+ subcircuit_id?: string | undefined;
5888
5973
  } | {
5889
5974
  x: number;
5890
5975
  y: number;
@@ -6091,6 +6176,12 @@ declare const runTscircuitModule: (module: string, opts?: {
6091
6176
  material: "fr4" | "fr1";
6092
6177
  width?: number | undefined;
6093
6178
  height?: number | undefined;
6179
+ min_trace_width?: number | undefined;
6180
+ min_via_to_via_spacing?: number | undefined;
6181
+ min_trace_to_pad_spacing?: number | undefined;
6182
+ min_pad_to_pad_spacing?: number | undefined;
6183
+ min_via_hole_diameter?: number | undefined;
6184
+ min_via_pad_diameter?: number | undefined;
6094
6185
  shape?: "rect" | "polygon" | undefined;
6095
6186
  display_offset_x?: string | undefined;
6096
6187
  display_offset_y?: string | undefined;
@@ -6306,10 +6397,10 @@ declare const runTscircuitModule: (module: string, opts?: {
6306
6397
  type: "pcb_trace_error";
6307
6398
  source_trace_id: string;
6308
6399
  pcb_trace_id: string;
6309
- error_type: "pcb_trace_error";
6310
- pcb_trace_error_id: string;
6311
6400
  pcb_component_ids: string[];
6312
6401
  pcb_port_ids: string[];
6402
+ error_type: "pcb_trace_error";
6403
+ pcb_trace_error_id: string;
6313
6404
  center?: {
6314
6405
  x: number;
6315
6406
  y: number;
@@ -6320,9 +6411,9 @@ declare const runTscircuitModule: (module: string, opts?: {
6320
6411
  message: string;
6321
6412
  type: "pcb_trace_missing_error";
6322
6413
  source_trace_id: string;
6323
- error_type: "pcb_trace_missing_error";
6324
6414
  pcb_component_ids: string[];
6325
6415
  pcb_port_ids: string[];
6416
+ error_type: "pcb_trace_missing_error";
6326
6417
  pcb_trace_missing_error_id: string;
6327
6418
  center?: {
6328
6419
  x: number;
@@ -6349,17 +6440,17 @@ declare const runTscircuitModule: (module: string, opts?: {
6349
6440
  } | {
6350
6441
  message: string;
6351
6442
  type: "pcb_port_not_matched_error";
6352
- error_type: "pcb_port_not_matched_error";
6353
6443
  pcb_component_ids: string[];
6444
+ error_type: "pcb_port_not_matched_error";
6354
6445
  pcb_error_id: string;
6355
6446
  subcircuit_id?: string | undefined;
6356
6447
  is_fatal?: boolean | undefined;
6357
6448
  } | {
6358
6449
  message: string;
6359
6450
  type: "pcb_port_not_connected_error";
6360
- error_type: "pcb_port_not_connected_error";
6361
6451
  pcb_component_ids: string[];
6362
6452
  pcb_port_ids: string[];
6453
+ error_type: "pcb_port_not_connected_error";
6363
6454
  pcb_port_not_connected_error_id: string;
6364
6455
  subcircuit_id?: string | undefined;
6365
6456
  is_fatal?: boolean | undefined;
@@ -6377,6 +6468,50 @@ declare const runTscircuitModule: (module: string, opts?: {
6377
6468
  x?: number | undefined;
6378
6469
  y?: number | undefined;
6379
6470
  } | undefined;
6471
+ } | {
6472
+ message: string;
6473
+ type: "pcb_via_trace_clearance_error";
6474
+ pcb_trace_id: string;
6475
+ error_type: "pcb_via_trace_clearance_error";
6476
+ pcb_via_id: string;
6477
+ pcb_via_trace_clearance_error_id: string;
6478
+ center?: {
6479
+ x?: number | undefined;
6480
+ y?: number | undefined;
6481
+ } | undefined;
6482
+ subcircuit_id?: string | undefined;
6483
+ is_fatal?: boolean | undefined;
6484
+ minimum_clearance?: number | undefined;
6485
+ actual_clearance?: number | undefined;
6486
+ } | {
6487
+ message: string;
6488
+ type: "pcb_pad_pad_clearance_error";
6489
+ error_type: "pcb_pad_pad_clearance_error";
6490
+ pcb_pad_pad_clearance_error_id: string;
6491
+ pcb_pad_ids: string[];
6492
+ center?: {
6493
+ x?: number | undefined;
6494
+ y?: number | undefined;
6495
+ } | undefined;
6496
+ subcircuit_id?: string | undefined;
6497
+ is_fatal?: boolean | undefined;
6498
+ minimum_clearance?: number | undefined;
6499
+ actual_clearance?: number | undefined;
6500
+ } | {
6501
+ message: string;
6502
+ type: "pcb_pad_trace_clearance_error";
6503
+ pcb_trace_id: string;
6504
+ error_type: "pcb_pad_trace_clearance_error";
6505
+ pcb_pad_trace_clearance_error_id: string;
6506
+ pcb_pad_id: string;
6507
+ center?: {
6508
+ x?: number | undefined;
6509
+ y?: number | undefined;
6510
+ } | undefined;
6511
+ subcircuit_id?: string | undefined;
6512
+ is_fatal?: boolean | undefined;
6513
+ minimum_clearance?: number | undefined;
6514
+ actual_clearance?: number | undefined;
6380
6515
  } | {
6381
6516
  type: "pcb_fabrication_note_path";
6382
6517
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -6468,6 +6603,7 @@ declare const runTscircuitModule: (module: string, opts?: {
6468
6603
  pcb_group_id?: string | undefined;
6469
6604
  text?: string | undefined;
6470
6605
  color?: string | undefined;
6606
+ is_mirrored_from_top_view?: boolean | undefined;
6471
6607
  } | {
6472
6608
  type: "pcb_note_rect";
6473
6609
  width: number;
@@ -6567,8 +6703,8 @@ declare const runTscircuitModule: (module: string, opts?: {
6567
6703
  } | {
6568
6704
  message: string;
6569
6705
  type: "pcb_courtyard_overlap_error";
6570
- error_type: "pcb_courtyard_overlap_error";
6571
6706
  pcb_component_ids: [string, string];
6707
+ error_type: "pcb_courtyard_overlap_error";
6572
6708
  pcb_error_id: string;
6573
6709
  is_fatal?: boolean | undefined;
6574
6710
  } | {