@tscircuit/eval 0.0.684 → 0.0.686

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.
@@ -167,11 +167,27 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
167
167
  pin_number?: number | undefined;
168
168
  most_frequently_referenced_by_name?: string | undefined;
169
169
  must_be_connected?: boolean | undefined;
170
+ is_configured_for_i2c_sda?: boolean | undefined;
171
+ is_configured_for_i2c_scl?: boolean | undefined;
172
+ is_configured_for_spi_mosi?: boolean | undefined;
173
+ is_configured_for_spi_miso?: boolean | undefined;
174
+ is_configured_for_spi_sck?: boolean | undefined;
175
+ is_configured_for_spi_cs?: boolean | undefined;
176
+ is_configured_for_uart_tx?: boolean | undefined;
177
+ is_configured_for_uart_rx?: boolean | undefined;
178
+ supports_i2c_sda?: boolean | undefined;
179
+ supports_i2c_scl?: boolean | undefined;
180
+ supports_spi_mosi?: boolean | undefined;
181
+ supports_spi_miso?: boolean | undefined;
182
+ supports_spi_sck?: boolean | undefined;
183
+ supports_spi_cs?: boolean | undefined;
184
+ supports_uart_tx?: boolean | undefined;
185
+ supports_uart_rx?: boolean | undefined;
170
186
  } | {
171
187
  type: "source_component_internal_connection";
172
188
  source_component_id: string;
173
- source_component_internal_connection_id: string;
174
189
  source_port_ids: string[];
190
+ source_component_internal_connection_id: string;
175
191
  subcircuit_id?: string | undefined;
176
192
  } | {
177
193
  type: "source_component";
@@ -393,6 +409,20 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
393
409
  display_name?: string | undefined;
394
410
  are_pins_interchangeable?: boolean | undefined;
395
411
  internally_connected_source_port_ids?: string[][] | undefined;
412
+ } | {
413
+ type: "source_component";
414
+ name: string;
415
+ source_component_id: string;
416
+ ftype: "simple_connector";
417
+ subcircuit_id?: string | undefined;
418
+ source_group_id?: string | undefined;
419
+ manufacturer_part_number?: string | undefined;
420
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
421
+ display_value?: string | undefined;
422
+ display_name?: string | undefined;
423
+ are_pins_interchangeable?: boolean | undefined;
424
+ internally_connected_source_port_ids?: string[][] | undefined;
425
+ standard?: "usb_c" | "m2" | undefined;
396
426
  } | {
397
427
  type: "source_component";
398
428
  name: string;
@@ -615,6 +645,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
615
645
  warning_type: "source_pin_missing_trace_warning";
616
646
  source_pin_missing_trace_warning_id: string;
617
647
  subcircuit_id?: string | undefined;
648
+ } | {
649
+ message: string;
650
+ type: "source_i2c_misconfigured_error";
651
+ error_type: "source_i2c_misconfigured_error";
652
+ source_i2c_misconfigured_error_id: string;
653
+ source_port_ids: string[];
654
+ is_fatal?: boolean | undefined;
618
655
  } | {
619
656
  type: "source_net";
620
657
  name: string;
@@ -960,18 +997,25 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
960
997
  source_component_id?: string | undefined;
961
998
  subcircuit_id?: string | undefined;
962
999
  is_fatal?: boolean | undefined;
1000
+ } | {
1001
+ message: string;
1002
+ type: "source_i2c_misconfigured_error";
1003
+ error_type: "source_i2c_misconfigured_error";
1004
+ source_i2c_misconfigured_error_id: string;
1005
+ source_port_ids: string[];
1006
+ is_fatal?: boolean | undefined;
963
1007
  } | {
964
1008
  type: "pcb_component";
965
1009
  width: number;
966
1010
  height: number;
967
1011
  rotation: number;
968
1012
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
969
- pcb_component_id: string;
970
- source_component_id: string;
971
1013
  center: {
972
1014
  x: number;
973
1015
  y: number;
974
1016
  };
1017
+ pcb_component_id: string;
1018
+ source_component_id: string;
975
1019
  obstructs_within_bounds: boolean;
976
1020
  display_offset_x?: string | undefined;
977
1021
  display_offset_y?: string | undefined;
@@ -979,9 +1023,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
979
1023
  is_allowed_to_be_off_board?: boolean | undefined;
980
1024
  subcircuit_id?: string | undefined;
981
1025
  pcb_group_id?: string | undefined;
982
- position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
1026
+ position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
1027
+ anchor_position?: {
1028
+ x: number;
1029
+ y: number;
1030
+ } | undefined;
1031
+ anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
983
1032
  positioned_relative_to_pcb_group_id?: string | undefined;
984
1033
  positioned_relative_to_pcb_board_id?: string | undefined;
1034
+ cable_insertion_center?: {
1035
+ x: number;
1036
+ y: number;
1037
+ } | undefined;
985
1038
  metadata?: {
986
1039
  kicad_footprint?: {
987
1040
  layer?: string | undefined;
@@ -1662,6 +1715,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1662
1715
  display_offset_y?: string | undefined;
1663
1716
  subcircuit_id?: string | undefined;
1664
1717
  position_mode?: "none" | "relative_to_panel_anchor" | undefined;
1718
+ anchor_position?: {
1719
+ x: number;
1720
+ y: number;
1721
+ } | undefined;
1722
+ anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
1665
1723
  pcb_panel_id?: string | undefined;
1666
1724
  carrier_pcb_board_id?: string | undefined;
1667
1725
  is_subcircuit?: boolean | undefined;
@@ -1670,11 +1728,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1670
1728
  x: number;
1671
1729
  y: number;
1672
1730
  }[] | undefined;
1673
- anchor_position?: {
1674
- x: number;
1675
- y: number;
1676
- } | undefined;
1677
- anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
1678
1731
  } | {
1679
1732
  type: "pcb_panel";
1680
1733
  width: number;
@@ -1692,8 +1745,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1692
1745
  y: number;
1693
1746
  };
1694
1747
  pcb_group_id: string;
1748
+ anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1695
1749
  pcb_component_ids: string[];
1696
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1697
1750
  source_group_id: string;
1698
1751
  description?: string | undefined;
1699
1752
  width?: number | undefined;
@@ -1703,6 +1756,10 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1703
1756
  display_offset_y?: string | undefined;
1704
1757
  subcircuit_id?: string | undefined;
1705
1758
  position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
1759
+ anchor_position?: {
1760
+ x: number;
1761
+ y: number;
1762
+ } | undefined;
1706
1763
  positioned_relative_to_pcb_group_id?: string | undefined;
1707
1764
  positioned_relative_to_pcb_board_id?: string | undefined;
1708
1765
  is_subcircuit?: boolean | undefined;
@@ -1710,10 +1767,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1710
1767
  x: number;
1711
1768
  y: number;
1712
1769
  }[] | undefined;
1713
- anchor_position?: {
1714
- x: number;
1715
- y: number;
1716
- } | undefined;
1717
1770
  child_layout_mode?: "packed" | "none" | undefined;
1718
1771
  layout_mode?: string | undefined;
1719
1772
  autorouter_configuration?: {
@@ -1762,12 +1815,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1762
1815
  font: "tscircuit2024";
1763
1816
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1764
1817
  pcb_component_id: string;
1765
- text: string;
1766
1818
  anchor_position: {
1767
1819
  x: number;
1768
1820
  y: number;
1769
1821
  };
1770
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1822
+ anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1823
+ text: string;
1771
1824
  pcb_silkscreen_text_id: string;
1772
1825
  font_size: number;
1773
1826
  subcircuit_id?: string | undefined;
@@ -1786,11 +1839,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1786
1839
  width: number;
1787
1840
  height: number;
1788
1841
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1789
- pcb_component_id: string;
1790
1842
  center: {
1791
1843
  x: number;
1792
1844
  y: number;
1793
1845
  };
1846
+ pcb_component_id: string;
1794
1847
  pcb_silkscreen_pill_id: string;
1795
1848
  subcircuit_id?: string | undefined;
1796
1849
  pcb_group_id?: string | undefined;
@@ -1800,12 +1853,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1800
1853
  font: "tscircuit2024";
1801
1854
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1802
1855
  pcb_component_id: string;
1803
- text: string;
1804
1856
  anchor_position: {
1805
1857
  x: number;
1806
1858
  y: number;
1807
1859
  };
1808
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1860
+ anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1861
+ text: string;
1809
1862
  font_size: number;
1810
1863
  pcb_copper_text_id: string;
1811
1864
  subcircuit_id?: string | undefined;
@@ -1824,11 +1877,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1824
1877
  width: number;
1825
1878
  height: number;
1826
1879
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1827
- pcb_component_id: string;
1828
1880
  center: {
1829
1881
  x: number;
1830
1882
  y: number;
1831
1883
  };
1884
+ pcb_component_id: string;
1832
1885
  stroke_width: number;
1833
1886
  pcb_silkscreen_rect_id: string;
1834
1887
  subcircuit_id?: string | undefined;
@@ -1841,11 +1894,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1841
1894
  } | {
1842
1895
  type: "pcb_silkscreen_circle";
1843
1896
  layer: "top" | "bottom";
1844
- pcb_component_id: string;
1845
1897
  center: {
1846
1898
  x: number;
1847
1899
  y: number;
1848
1900
  };
1901
+ pcb_component_id: string;
1849
1902
  radius: number;
1850
1903
  stroke_width: number;
1851
1904
  pcb_silkscreen_circle_id: string;
@@ -1854,11 +1907,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1854
1907
  } | {
1855
1908
  type: "pcb_silkscreen_oval";
1856
1909
  layer: "top" | "bottom";
1857
- pcb_component_id: string;
1858
1910
  center: {
1859
1911
  x: number;
1860
1912
  y: number;
1861
1913
  };
1914
+ pcb_component_id: string;
1862
1915
  pcb_silkscreen_oval_id: string;
1863
1916
  radius_x: number;
1864
1917
  radius_y: number;
@@ -1958,12 +2011,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1958
2011
  font: "tscircuit2024";
1959
2012
  layer: "top" | "bottom";
1960
2013
  pcb_component_id: string;
1961
- text: string;
1962
2014
  anchor_position: {
1963
2015
  x: number;
1964
2016
  y: number;
1965
2017
  };
1966
- anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
2018
+ anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
2019
+ text: string;
1967
2020
  font_size: number;
1968
2021
  pcb_fabrication_note_text_id: string;
1969
2022
  subcircuit_id?: string | undefined;
@@ -1974,11 +2027,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1974
2027
  width: number;
1975
2028
  height: number;
1976
2029
  layer: "top" | "bottom";
1977
- pcb_component_id: string;
1978
2030
  center: {
1979
2031
  x: number;
1980
2032
  y: number;
1981
2033
  };
2034
+ pcb_component_id: string;
1982
2035
  stroke_width: number;
1983
2036
  pcb_fabrication_note_rect_id: string;
1984
2037
  subcircuit_id?: string | undefined;
@@ -2022,7 +2075,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2022
2075
  x: number;
2023
2076
  y: number;
2024
2077
  };
2025
- anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
2078
+ anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
2026
2079
  font_size: number;
2027
2080
  pcb_note_text_id: string;
2028
2081
  name?: string | undefined;
@@ -2293,6 +2346,21 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2293
2346
  source_component_id?: string | undefined;
2294
2347
  subcircuit_id?: string | undefined;
2295
2348
  is_fatal?: boolean | undefined;
2349
+ } | {
2350
+ message: string;
2351
+ type: "pcb_component_not_on_board_edge_error";
2352
+ pcb_component_id: string;
2353
+ error_type: "pcb_component_not_on_board_edge_error";
2354
+ pcb_board_id: string;
2355
+ component_center: {
2356
+ x: number;
2357
+ y: number;
2358
+ };
2359
+ pcb_component_not_on_board_edge_error_id: string;
2360
+ pad_to_nearest_board_edge_distance: number;
2361
+ source_component_id?: string | undefined;
2362
+ subcircuit_id?: string | undefined;
2363
+ is_fatal?: boolean | undefined;
2296
2364
  } | {
2297
2365
  message: string;
2298
2366
  type: "pcb_component_invalid_layer_error";
@@ -2308,11 +2376,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2308
2376
  width: number;
2309
2377
  height: number;
2310
2378
  layer: "top" | "bottom";
2311
- pcb_component_id: string;
2312
2379
  center: {
2313
2380
  x: number;
2314
2381
  y: number;
2315
2382
  };
2383
+ pcb_component_id: string;
2316
2384
  pcb_courtyard_rect_id: string;
2317
2385
  subcircuit_id?: string | undefined;
2318
2386
  pcb_group_id?: string | undefined;
@@ -2343,11 +2411,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2343
2411
  } | {
2344
2412
  type: "pcb_courtyard_circle";
2345
2413
  layer: "top" | "bottom";
2346
- pcb_component_id: string;
2347
2414
  center: {
2348
2415
  x: number;
2349
2416
  y: number;
2350
2417
  };
2418
+ pcb_component_id: string;
2351
2419
  radius: number;
2352
2420
  pcb_courtyard_circle_id: string;
2353
2421
  subcircuit_id?: string | undefined;
@@ -2365,7 +2433,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2365
2433
  schematic_symbol_id?: string | undefined;
2366
2434
  } | {
2367
2435
  type: "schematic_text";
2368
- anchor: "top" | "bottom" | "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
2436
+ anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
2369
2437
  rotation: number;
2370
2438
  text: string;
2371
2439
  font_size: number;
@@ -3940,11 +4008,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
3940
4008
  schematic_net_label_id: string;
3941
4009
  anchor_side: "top" | "bottom" | "left" | "right";
3942
4010
  subcircuit_id?: string | undefined;
3943
- source_trace_id?: string | undefined;
3944
4011
  anchor_position?: {
3945
4012
  x: number;
3946
4013
  y: number;
3947
4014
  } | undefined;
4015
+ source_trace_id?: string | undefined;
3948
4016
  symbol_name?: string | undefined;
3949
4017
  schematic_trace_id?: string | undefined;
3950
4018
  is_movable?: boolean | undefined;
@@ -3996,7 +4064,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
3996
4064
  subcircuit_id?: string | undefined;
3997
4065
  color?: string | undefined;
3998
4066
  voltage?: number | undefined;
3999
- label_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
4067
+ label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
4000
4068
  } | {
4001
4069
  message: string;
4002
4070
  type: "schematic_manual_edit_conflict_warning";
@@ -4036,7 +4104,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
4036
4104
  schematic_table_id: string;
4037
4105
  column_widths: number[];
4038
4106
  row_heights: number[];
4039
- anchor?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
4107
+ anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
4040
4108
  subcircuit_id?: string | undefined;
4041
4109
  schematic_component_id?: string | undefined;
4042
4110
  cell_padding?: number | undefined;
@@ -4231,11 +4299,27 @@ declare const runTscircuitModule: (module: string, opts?: {
4231
4299
  pin_number?: number | undefined;
4232
4300
  most_frequently_referenced_by_name?: string | undefined;
4233
4301
  must_be_connected?: boolean | undefined;
4302
+ is_configured_for_i2c_sda?: boolean | undefined;
4303
+ is_configured_for_i2c_scl?: boolean | undefined;
4304
+ is_configured_for_spi_mosi?: boolean | undefined;
4305
+ is_configured_for_spi_miso?: boolean | undefined;
4306
+ is_configured_for_spi_sck?: boolean | undefined;
4307
+ is_configured_for_spi_cs?: boolean | undefined;
4308
+ is_configured_for_uart_tx?: boolean | undefined;
4309
+ is_configured_for_uart_rx?: boolean | undefined;
4310
+ supports_i2c_sda?: boolean | undefined;
4311
+ supports_i2c_scl?: boolean | undefined;
4312
+ supports_spi_mosi?: boolean | undefined;
4313
+ supports_spi_miso?: boolean | undefined;
4314
+ supports_spi_sck?: boolean | undefined;
4315
+ supports_spi_cs?: boolean | undefined;
4316
+ supports_uart_tx?: boolean | undefined;
4317
+ supports_uart_rx?: boolean | undefined;
4234
4318
  } | {
4235
4319
  type: "source_component_internal_connection";
4236
4320
  source_component_id: string;
4237
- source_component_internal_connection_id: string;
4238
4321
  source_port_ids: string[];
4322
+ source_component_internal_connection_id: string;
4239
4323
  subcircuit_id?: string | undefined;
4240
4324
  } | {
4241
4325
  type: "source_component";
@@ -4457,6 +4541,20 @@ declare const runTscircuitModule: (module: string, opts?: {
4457
4541
  display_name?: string | undefined;
4458
4542
  are_pins_interchangeable?: boolean | undefined;
4459
4543
  internally_connected_source_port_ids?: string[][] | undefined;
4544
+ } | {
4545
+ type: "source_component";
4546
+ name: string;
4547
+ source_component_id: string;
4548
+ ftype: "simple_connector";
4549
+ subcircuit_id?: string | undefined;
4550
+ source_group_id?: string | undefined;
4551
+ manufacturer_part_number?: string | undefined;
4552
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4553
+ display_value?: string | undefined;
4554
+ display_name?: string | undefined;
4555
+ are_pins_interchangeable?: boolean | undefined;
4556
+ internally_connected_source_port_ids?: string[][] | undefined;
4557
+ standard?: "usb_c" | "m2" | undefined;
4460
4558
  } | {
4461
4559
  type: "source_component";
4462
4560
  name: string;
@@ -4679,6 +4777,13 @@ declare const runTscircuitModule: (module: string, opts?: {
4679
4777
  warning_type: "source_pin_missing_trace_warning";
4680
4778
  source_pin_missing_trace_warning_id: string;
4681
4779
  subcircuit_id?: string | undefined;
4780
+ } | {
4781
+ message: string;
4782
+ type: "source_i2c_misconfigured_error";
4783
+ error_type: "source_i2c_misconfigured_error";
4784
+ source_i2c_misconfigured_error_id: string;
4785
+ source_port_ids: string[];
4786
+ is_fatal?: boolean | undefined;
4682
4787
  } | {
4683
4788
  type: "source_net";
4684
4789
  name: string;
@@ -5024,18 +5129,25 @@ declare const runTscircuitModule: (module: string, opts?: {
5024
5129
  source_component_id?: string | undefined;
5025
5130
  subcircuit_id?: string | undefined;
5026
5131
  is_fatal?: boolean | undefined;
5132
+ } | {
5133
+ message: string;
5134
+ type: "source_i2c_misconfigured_error";
5135
+ error_type: "source_i2c_misconfigured_error";
5136
+ source_i2c_misconfigured_error_id: string;
5137
+ source_port_ids: string[];
5138
+ is_fatal?: boolean | undefined;
5027
5139
  } | {
5028
5140
  type: "pcb_component";
5029
5141
  width: number;
5030
5142
  height: number;
5031
5143
  rotation: number;
5032
5144
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5033
- pcb_component_id: string;
5034
- source_component_id: string;
5035
5145
  center: {
5036
5146
  x: number;
5037
5147
  y: number;
5038
5148
  };
5149
+ pcb_component_id: string;
5150
+ source_component_id: string;
5039
5151
  obstructs_within_bounds: boolean;
5040
5152
  display_offset_x?: string | undefined;
5041
5153
  display_offset_y?: string | undefined;
@@ -5043,9 +5155,18 @@ declare const runTscircuitModule: (module: string, opts?: {
5043
5155
  is_allowed_to_be_off_board?: boolean | undefined;
5044
5156
  subcircuit_id?: string | undefined;
5045
5157
  pcb_group_id?: string | undefined;
5046
- position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
5158
+ position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
5159
+ anchor_position?: {
5160
+ x: number;
5161
+ y: number;
5162
+ } | undefined;
5163
+ anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
5047
5164
  positioned_relative_to_pcb_group_id?: string | undefined;
5048
5165
  positioned_relative_to_pcb_board_id?: string | undefined;
5166
+ cable_insertion_center?: {
5167
+ x: number;
5168
+ y: number;
5169
+ } | undefined;
5049
5170
  metadata?: {
5050
5171
  kicad_footprint?: {
5051
5172
  layer?: string | undefined;
@@ -5726,6 +5847,11 @@ declare const runTscircuitModule: (module: string, opts?: {
5726
5847
  display_offset_y?: string | undefined;
5727
5848
  subcircuit_id?: string | undefined;
5728
5849
  position_mode?: "none" | "relative_to_panel_anchor" | undefined;
5850
+ anchor_position?: {
5851
+ x: number;
5852
+ y: number;
5853
+ } | undefined;
5854
+ anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
5729
5855
  pcb_panel_id?: string | undefined;
5730
5856
  carrier_pcb_board_id?: string | undefined;
5731
5857
  is_subcircuit?: boolean | undefined;
@@ -5734,11 +5860,6 @@ declare const runTscircuitModule: (module: string, opts?: {
5734
5860
  x: number;
5735
5861
  y: number;
5736
5862
  }[] | undefined;
5737
- anchor_position?: {
5738
- x: number;
5739
- y: number;
5740
- } | undefined;
5741
- anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
5742
5863
  } | {
5743
5864
  type: "pcb_panel";
5744
5865
  width: number;
@@ -5756,8 +5877,8 @@ declare const runTscircuitModule: (module: string, opts?: {
5756
5877
  y: number;
5757
5878
  };
5758
5879
  pcb_group_id: string;
5880
+ anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
5759
5881
  pcb_component_ids: string[];
5760
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
5761
5882
  source_group_id: string;
5762
5883
  description?: string | undefined;
5763
5884
  width?: number | undefined;
@@ -5767,6 +5888,10 @@ declare const runTscircuitModule: (module: string, opts?: {
5767
5888
  display_offset_y?: string | undefined;
5768
5889
  subcircuit_id?: string | undefined;
5769
5890
  position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
5891
+ anchor_position?: {
5892
+ x: number;
5893
+ y: number;
5894
+ } | undefined;
5770
5895
  positioned_relative_to_pcb_group_id?: string | undefined;
5771
5896
  positioned_relative_to_pcb_board_id?: string | undefined;
5772
5897
  is_subcircuit?: boolean | undefined;
@@ -5774,10 +5899,6 @@ declare const runTscircuitModule: (module: string, opts?: {
5774
5899
  x: number;
5775
5900
  y: number;
5776
5901
  }[] | undefined;
5777
- anchor_position?: {
5778
- x: number;
5779
- y: number;
5780
- } | undefined;
5781
5902
  child_layout_mode?: "packed" | "none" | undefined;
5782
5903
  layout_mode?: string | undefined;
5783
5904
  autorouter_configuration?: {
@@ -5826,12 +5947,12 @@ declare const runTscircuitModule: (module: string, opts?: {
5826
5947
  font: "tscircuit2024";
5827
5948
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5828
5949
  pcb_component_id: string;
5829
- text: string;
5830
5950
  anchor_position: {
5831
5951
  x: number;
5832
5952
  y: number;
5833
5953
  };
5834
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
5954
+ anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
5955
+ text: string;
5835
5956
  pcb_silkscreen_text_id: string;
5836
5957
  font_size: number;
5837
5958
  subcircuit_id?: string | undefined;
@@ -5850,11 +5971,11 @@ declare const runTscircuitModule: (module: string, opts?: {
5850
5971
  width: number;
5851
5972
  height: number;
5852
5973
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5853
- pcb_component_id: string;
5854
5974
  center: {
5855
5975
  x: number;
5856
5976
  y: number;
5857
5977
  };
5978
+ pcb_component_id: string;
5858
5979
  pcb_silkscreen_pill_id: string;
5859
5980
  subcircuit_id?: string | undefined;
5860
5981
  pcb_group_id?: string | undefined;
@@ -5864,12 +5985,12 @@ declare const runTscircuitModule: (module: string, opts?: {
5864
5985
  font: "tscircuit2024";
5865
5986
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5866
5987
  pcb_component_id: string;
5867
- text: string;
5868
5988
  anchor_position: {
5869
5989
  x: number;
5870
5990
  y: number;
5871
5991
  };
5872
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
5992
+ anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
5993
+ text: string;
5873
5994
  font_size: number;
5874
5995
  pcb_copper_text_id: string;
5875
5996
  subcircuit_id?: string | undefined;
@@ -5888,11 +6009,11 @@ declare const runTscircuitModule: (module: string, opts?: {
5888
6009
  width: number;
5889
6010
  height: number;
5890
6011
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5891
- pcb_component_id: string;
5892
6012
  center: {
5893
6013
  x: number;
5894
6014
  y: number;
5895
6015
  };
6016
+ pcb_component_id: string;
5896
6017
  stroke_width: number;
5897
6018
  pcb_silkscreen_rect_id: string;
5898
6019
  subcircuit_id?: string | undefined;
@@ -5905,11 +6026,11 @@ declare const runTscircuitModule: (module: string, opts?: {
5905
6026
  } | {
5906
6027
  type: "pcb_silkscreen_circle";
5907
6028
  layer: "top" | "bottom";
5908
- pcb_component_id: string;
5909
6029
  center: {
5910
6030
  x: number;
5911
6031
  y: number;
5912
6032
  };
6033
+ pcb_component_id: string;
5913
6034
  radius: number;
5914
6035
  stroke_width: number;
5915
6036
  pcb_silkscreen_circle_id: string;
@@ -5918,11 +6039,11 @@ declare const runTscircuitModule: (module: string, opts?: {
5918
6039
  } | {
5919
6040
  type: "pcb_silkscreen_oval";
5920
6041
  layer: "top" | "bottom";
5921
- pcb_component_id: string;
5922
6042
  center: {
5923
6043
  x: number;
5924
6044
  y: number;
5925
6045
  };
6046
+ pcb_component_id: string;
5926
6047
  pcb_silkscreen_oval_id: string;
5927
6048
  radius_x: number;
5928
6049
  radius_y: number;
@@ -6022,12 +6143,12 @@ declare const runTscircuitModule: (module: string, opts?: {
6022
6143
  font: "tscircuit2024";
6023
6144
  layer: "top" | "bottom";
6024
6145
  pcb_component_id: string;
6025
- text: string;
6026
6146
  anchor_position: {
6027
6147
  x: number;
6028
6148
  y: number;
6029
6149
  };
6030
- anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
6150
+ anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
6151
+ text: string;
6031
6152
  font_size: number;
6032
6153
  pcb_fabrication_note_text_id: string;
6033
6154
  subcircuit_id?: string | undefined;
@@ -6038,11 +6159,11 @@ declare const runTscircuitModule: (module: string, opts?: {
6038
6159
  width: number;
6039
6160
  height: number;
6040
6161
  layer: "top" | "bottom";
6041
- pcb_component_id: string;
6042
6162
  center: {
6043
6163
  x: number;
6044
6164
  y: number;
6045
6165
  };
6166
+ pcb_component_id: string;
6046
6167
  stroke_width: number;
6047
6168
  pcb_fabrication_note_rect_id: string;
6048
6169
  subcircuit_id?: string | undefined;
@@ -6086,7 +6207,7 @@ declare const runTscircuitModule: (module: string, opts?: {
6086
6207
  x: number;
6087
6208
  y: number;
6088
6209
  };
6089
- anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
6210
+ anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
6090
6211
  font_size: number;
6091
6212
  pcb_note_text_id: string;
6092
6213
  name?: string | undefined;
@@ -6357,6 +6478,21 @@ declare const runTscircuitModule: (module: string, opts?: {
6357
6478
  source_component_id?: string | undefined;
6358
6479
  subcircuit_id?: string | undefined;
6359
6480
  is_fatal?: boolean | undefined;
6481
+ } | {
6482
+ message: string;
6483
+ type: "pcb_component_not_on_board_edge_error";
6484
+ pcb_component_id: string;
6485
+ error_type: "pcb_component_not_on_board_edge_error";
6486
+ pcb_board_id: string;
6487
+ component_center: {
6488
+ x: number;
6489
+ y: number;
6490
+ };
6491
+ pcb_component_not_on_board_edge_error_id: string;
6492
+ pad_to_nearest_board_edge_distance: number;
6493
+ source_component_id?: string | undefined;
6494
+ subcircuit_id?: string | undefined;
6495
+ is_fatal?: boolean | undefined;
6360
6496
  } | {
6361
6497
  message: string;
6362
6498
  type: "pcb_component_invalid_layer_error";
@@ -6372,11 +6508,11 @@ declare const runTscircuitModule: (module: string, opts?: {
6372
6508
  width: number;
6373
6509
  height: number;
6374
6510
  layer: "top" | "bottom";
6375
- pcb_component_id: string;
6376
6511
  center: {
6377
6512
  x: number;
6378
6513
  y: number;
6379
6514
  };
6515
+ pcb_component_id: string;
6380
6516
  pcb_courtyard_rect_id: string;
6381
6517
  subcircuit_id?: string | undefined;
6382
6518
  pcb_group_id?: string | undefined;
@@ -6407,11 +6543,11 @@ declare const runTscircuitModule: (module: string, opts?: {
6407
6543
  } | {
6408
6544
  type: "pcb_courtyard_circle";
6409
6545
  layer: "top" | "bottom";
6410
- pcb_component_id: string;
6411
6546
  center: {
6412
6547
  x: number;
6413
6548
  y: number;
6414
6549
  };
6550
+ pcb_component_id: string;
6415
6551
  radius: number;
6416
6552
  pcb_courtyard_circle_id: string;
6417
6553
  subcircuit_id?: string | undefined;
@@ -6429,7 +6565,7 @@ declare const runTscircuitModule: (module: string, opts?: {
6429
6565
  schematic_symbol_id?: string | undefined;
6430
6566
  } | {
6431
6567
  type: "schematic_text";
6432
- anchor: "top" | "bottom" | "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
6568
+ anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
6433
6569
  rotation: number;
6434
6570
  text: string;
6435
6571
  font_size: number;
@@ -8004,11 +8140,11 @@ declare const runTscircuitModule: (module: string, opts?: {
8004
8140
  schematic_net_label_id: string;
8005
8141
  anchor_side: "top" | "bottom" | "left" | "right";
8006
8142
  subcircuit_id?: string | undefined;
8007
- source_trace_id?: string | undefined;
8008
8143
  anchor_position?: {
8009
8144
  x: number;
8010
8145
  y: number;
8011
8146
  } | undefined;
8147
+ source_trace_id?: string | undefined;
8012
8148
  symbol_name?: string | undefined;
8013
8149
  schematic_trace_id?: string | undefined;
8014
8150
  is_movable?: boolean | undefined;
@@ -8060,7 +8196,7 @@ declare const runTscircuitModule: (module: string, opts?: {
8060
8196
  subcircuit_id?: string | undefined;
8061
8197
  color?: string | undefined;
8062
8198
  voltage?: number | undefined;
8063
- label_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
8199
+ label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
8064
8200
  } | {
8065
8201
  message: string;
8066
8202
  type: "schematic_manual_edit_conflict_warning";
@@ -8100,7 +8236,7 @@ declare const runTscircuitModule: (module: string, opts?: {
8100
8236
  schematic_table_id: string;
8101
8237
  column_widths: number[];
8102
8238
  row_heights: number[];
8103
- anchor?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
8239
+ anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
8104
8240
  subcircuit_id?: string | undefined;
8105
8241
  schematic_component_id?: string | undefined;
8106
8242
  cell_padding?: number | undefined;