@tscircuit/eval 0.0.430 → 0.0.432

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.
@@ -767,6 +767,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
767
767
  warning_type: "source_pin_missing_trace_warning";
768
768
  source_pin_missing_trace_warning_id: string;
769
769
  subcircuit_id?: string | undefined;
770
+ } | {
771
+ message: string;
772
+ type: "unknown_error_finding_part";
773
+ error_type: "unknown_error_finding_part";
774
+ unknown_error_finding_part_id: string;
775
+ source_component_id?: string | undefined;
776
+ subcircuit_id?: string | undefined;
770
777
  } | {
771
778
  type: "pcb_component";
772
779
  width: number;
@@ -1506,7 +1513,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1506
1513
  offset?: number | undefined;
1507
1514
  } | {
1508
1515
  type: "pcb_note_text";
1509
- text: string;
1510
1516
  font: "tscircuit2024";
1511
1517
  font_size: number;
1512
1518
  anchor_position: {
@@ -1515,9 +1521,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1515
1521
  };
1516
1522
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
1517
1523
  pcb_note_text_id: string;
1524
+ name?: string | undefined;
1518
1525
  pcb_component_id?: string | undefined;
1519
1526
  subcircuit_id?: string | undefined;
1520
1527
  pcb_group_id?: string | undefined;
1528
+ text?: string | undefined;
1521
1529
  color?: string | undefined;
1522
1530
  } | {
1523
1531
  type: "pcb_note_rect";
@@ -1529,9 +1537,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1529
1537
  };
1530
1538
  stroke_width: number;
1531
1539
  pcb_note_rect_id: string;
1540
+ name?: string | undefined;
1532
1541
  pcb_component_id?: string | undefined;
1533
1542
  subcircuit_id?: string | undefined;
1534
1543
  pcb_group_id?: string | undefined;
1544
+ text?: string | undefined;
1535
1545
  is_filled?: boolean | undefined;
1536
1546
  has_stroke?: boolean | undefined;
1537
1547
  is_stroke_dashed?: boolean | undefined;
@@ -1544,9 +1554,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1544
1554
  }[];
1545
1555
  stroke_width: number;
1546
1556
  pcb_note_path_id: string;
1557
+ name?: string | undefined;
1547
1558
  pcb_component_id?: string | undefined;
1548
1559
  subcircuit_id?: string | undefined;
1549
1560
  pcb_group_id?: string | undefined;
1561
+ text?: string | undefined;
1550
1562
  color?: string | undefined;
1551
1563
  } | {
1552
1564
  type: "pcb_note_line";
@@ -1556,9 +1568,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1556
1568
  x2: number;
1557
1569
  y2: number;
1558
1570
  pcb_note_line_id: string;
1571
+ name?: string | undefined;
1559
1572
  pcb_component_id?: string | undefined;
1560
1573
  subcircuit_id?: string | undefined;
1561
1574
  pcb_group_id?: string | undefined;
1575
+ text?: string | undefined;
1562
1576
  color?: string | undefined;
1563
1577
  is_dashed?: boolean | undefined;
1564
1578
  } | {
@@ -1575,6 +1589,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1575
1589
  };
1576
1590
  arrow_size: number;
1577
1591
  pcb_note_dimension_id: string;
1592
+ name?: string | undefined;
1578
1593
  pcb_component_id?: string | undefined;
1579
1594
  subcircuit_id?: string | undefined;
1580
1595
  pcb_group_id?: string | undefined;
@@ -1776,6 +1791,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1776
1791
  is_stroke_dashed?: boolean | undefined;
1777
1792
  color?: string | undefined;
1778
1793
  is_closed?: boolean | undefined;
1794
+ } | {
1795
+ type: "pcb_courtyard_polygon";
1796
+ pcb_component_id: string;
1797
+ layer: "top" | "bottom";
1798
+ points: {
1799
+ x: number;
1800
+ y: number;
1801
+ }[];
1802
+ pcb_courtyard_polygon_id: string;
1803
+ subcircuit_id?: string | undefined;
1804
+ pcb_group_id?: string | undefined;
1805
+ color?: string | undefined;
1779
1806
  } | {
1780
1807
  x: number;
1781
1808
  y: number;
@@ -2836,6 +2863,13 @@ declare const runTscircuitModule: (module: string, opts?: {
2836
2863
  warning_type: "source_pin_missing_trace_warning";
2837
2864
  source_pin_missing_trace_warning_id: string;
2838
2865
  subcircuit_id?: string | undefined;
2866
+ } | {
2867
+ message: string;
2868
+ type: "unknown_error_finding_part";
2869
+ error_type: "unknown_error_finding_part";
2870
+ unknown_error_finding_part_id: string;
2871
+ source_component_id?: string | undefined;
2872
+ subcircuit_id?: string | undefined;
2839
2873
  } | {
2840
2874
  type: "pcb_component";
2841
2875
  width: number;
@@ -3575,7 +3609,6 @@ declare const runTscircuitModule: (module: string, opts?: {
3575
3609
  offset?: number | undefined;
3576
3610
  } | {
3577
3611
  type: "pcb_note_text";
3578
- text: string;
3579
3612
  font: "tscircuit2024";
3580
3613
  font_size: number;
3581
3614
  anchor_position: {
@@ -3584,9 +3617,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3584
3617
  };
3585
3618
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
3586
3619
  pcb_note_text_id: string;
3620
+ name?: string | undefined;
3587
3621
  pcb_component_id?: string | undefined;
3588
3622
  subcircuit_id?: string | undefined;
3589
3623
  pcb_group_id?: string | undefined;
3624
+ text?: string | undefined;
3590
3625
  color?: string | undefined;
3591
3626
  } | {
3592
3627
  type: "pcb_note_rect";
@@ -3598,9 +3633,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3598
3633
  };
3599
3634
  stroke_width: number;
3600
3635
  pcb_note_rect_id: string;
3636
+ name?: string | undefined;
3601
3637
  pcb_component_id?: string | undefined;
3602
3638
  subcircuit_id?: string | undefined;
3603
3639
  pcb_group_id?: string | undefined;
3640
+ text?: string | undefined;
3604
3641
  is_filled?: boolean | undefined;
3605
3642
  has_stroke?: boolean | undefined;
3606
3643
  is_stroke_dashed?: boolean | undefined;
@@ -3613,9 +3650,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3613
3650
  }[];
3614
3651
  stroke_width: number;
3615
3652
  pcb_note_path_id: string;
3653
+ name?: string | undefined;
3616
3654
  pcb_component_id?: string | undefined;
3617
3655
  subcircuit_id?: string | undefined;
3618
3656
  pcb_group_id?: string | undefined;
3657
+ text?: string | undefined;
3619
3658
  color?: string | undefined;
3620
3659
  } | {
3621
3660
  type: "pcb_note_line";
@@ -3625,9 +3664,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3625
3664
  x2: number;
3626
3665
  y2: number;
3627
3666
  pcb_note_line_id: string;
3667
+ name?: string | undefined;
3628
3668
  pcb_component_id?: string | undefined;
3629
3669
  subcircuit_id?: string | undefined;
3630
3670
  pcb_group_id?: string | undefined;
3671
+ text?: string | undefined;
3631
3672
  color?: string | undefined;
3632
3673
  is_dashed?: boolean | undefined;
3633
3674
  } | {
@@ -3644,6 +3685,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3644
3685
  };
3645
3686
  arrow_size: number;
3646
3687
  pcb_note_dimension_id: string;
3688
+ name?: string | undefined;
3647
3689
  pcb_component_id?: string | undefined;
3648
3690
  subcircuit_id?: string | undefined;
3649
3691
  pcb_group_id?: string | undefined;
@@ -3845,6 +3887,18 @@ declare const runTscircuitModule: (module: string, opts?: {
3845
3887
  is_stroke_dashed?: boolean | undefined;
3846
3888
  color?: string | undefined;
3847
3889
  is_closed?: boolean | undefined;
3890
+ } | {
3891
+ type: "pcb_courtyard_polygon";
3892
+ pcb_component_id: string;
3893
+ layer: "top" | "bottom";
3894
+ points: {
3895
+ x: number;
3896
+ y: number;
3897
+ }[];
3898
+ pcb_courtyard_polygon_id: string;
3899
+ subcircuit_id?: string | undefined;
3900
+ pcb_group_id?: string | undefined;
3901
+ color?: string | undefined;
3848
3902
  } | {
3849
3903
  x: number;
3850
3904
  y: number;
@@ -783,6 +783,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
783
783
  warning_type: "source_pin_missing_trace_warning";
784
784
  source_pin_missing_trace_warning_id: string;
785
785
  subcircuit_id?: string | undefined;
786
+ } | {
787
+ message: string;
788
+ type: "unknown_error_finding_part";
789
+ error_type: "unknown_error_finding_part";
790
+ unknown_error_finding_part_id: string;
791
+ source_component_id?: string | undefined;
792
+ subcircuit_id?: string | undefined;
786
793
  } | {
787
794
  type: "pcb_component";
788
795
  width: number;
@@ -1522,7 +1529,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1522
1529
  offset?: number | undefined;
1523
1530
  } | {
1524
1531
  type: "pcb_note_text";
1525
- text: string;
1526
1532
  font: "tscircuit2024";
1527
1533
  font_size: number;
1528
1534
  anchor_position: {
@@ -1531,9 +1537,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1531
1537
  };
1532
1538
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
1533
1539
  pcb_note_text_id: string;
1540
+ name?: string | undefined;
1534
1541
  pcb_component_id?: string | undefined;
1535
1542
  subcircuit_id?: string | undefined;
1536
1543
  pcb_group_id?: string | undefined;
1544
+ text?: string | undefined;
1537
1545
  color?: string | undefined;
1538
1546
  } | {
1539
1547
  type: "pcb_note_rect";
@@ -1545,9 +1553,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1545
1553
  };
1546
1554
  stroke_width: number;
1547
1555
  pcb_note_rect_id: string;
1556
+ name?: string | undefined;
1548
1557
  pcb_component_id?: string | undefined;
1549
1558
  subcircuit_id?: string | undefined;
1550
1559
  pcb_group_id?: string | undefined;
1560
+ text?: string | undefined;
1551
1561
  is_filled?: boolean | undefined;
1552
1562
  has_stroke?: boolean | undefined;
1553
1563
  is_stroke_dashed?: boolean | undefined;
@@ -1560,9 +1570,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1560
1570
  }[];
1561
1571
  stroke_width: number;
1562
1572
  pcb_note_path_id: string;
1573
+ name?: string | undefined;
1563
1574
  pcb_component_id?: string | undefined;
1564
1575
  subcircuit_id?: string | undefined;
1565
1576
  pcb_group_id?: string | undefined;
1577
+ text?: string | undefined;
1566
1578
  color?: string | undefined;
1567
1579
  } | {
1568
1580
  type: "pcb_note_line";
@@ -1572,9 +1584,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1572
1584
  x2: number;
1573
1585
  y2: number;
1574
1586
  pcb_note_line_id: string;
1587
+ name?: string | undefined;
1575
1588
  pcb_component_id?: string | undefined;
1576
1589
  subcircuit_id?: string | undefined;
1577
1590
  pcb_group_id?: string | undefined;
1591
+ text?: string | undefined;
1578
1592
  color?: string | undefined;
1579
1593
  is_dashed?: boolean | undefined;
1580
1594
  } | {
@@ -1591,6 +1605,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1591
1605
  };
1592
1606
  arrow_size: number;
1593
1607
  pcb_note_dimension_id: string;
1608
+ name?: string | undefined;
1594
1609
  pcb_component_id?: string | undefined;
1595
1610
  subcircuit_id?: string | undefined;
1596
1611
  pcb_group_id?: string | undefined;
@@ -1792,6 +1807,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1792
1807
  is_stroke_dashed?: boolean | undefined;
1793
1808
  color?: string | undefined;
1794
1809
  is_closed?: boolean | undefined;
1810
+ } | {
1811
+ type: "pcb_courtyard_polygon";
1812
+ pcb_component_id: string;
1813
+ layer: "top" | "bottom";
1814
+ points: {
1815
+ x: number;
1816
+ y: number;
1817
+ }[];
1818
+ pcb_courtyard_polygon_id: string;
1819
+ subcircuit_id?: string | undefined;
1820
+ pcb_group_id?: string | undefined;
1821
+ color?: string | undefined;
1795
1822
  } | {
1796
1823
  x: number;
1797
1824
  y: number;
@@ -2852,6 +2879,13 @@ declare const runTscircuitModule: (module: string, opts?: {
2852
2879
  warning_type: "source_pin_missing_trace_warning";
2853
2880
  source_pin_missing_trace_warning_id: string;
2854
2881
  subcircuit_id?: string | undefined;
2882
+ } | {
2883
+ message: string;
2884
+ type: "unknown_error_finding_part";
2885
+ error_type: "unknown_error_finding_part";
2886
+ unknown_error_finding_part_id: string;
2887
+ source_component_id?: string | undefined;
2888
+ subcircuit_id?: string | undefined;
2855
2889
  } | {
2856
2890
  type: "pcb_component";
2857
2891
  width: number;
@@ -3591,7 +3625,6 @@ declare const runTscircuitModule: (module: string, opts?: {
3591
3625
  offset?: number | undefined;
3592
3626
  } | {
3593
3627
  type: "pcb_note_text";
3594
- text: string;
3595
3628
  font: "tscircuit2024";
3596
3629
  font_size: number;
3597
3630
  anchor_position: {
@@ -3600,9 +3633,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3600
3633
  };
3601
3634
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
3602
3635
  pcb_note_text_id: string;
3636
+ name?: string | undefined;
3603
3637
  pcb_component_id?: string | undefined;
3604
3638
  subcircuit_id?: string | undefined;
3605
3639
  pcb_group_id?: string | undefined;
3640
+ text?: string | undefined;
3606
3641
  color?: string | undefined;
3607
3642
  } | {
3608
3643
  type: "pcb_note_rect";
@@ -3614,9 +3649,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3614
3649
  };
3615
3650
  stroke_width: number;
3616
3651
  pcb_note_rect_id: string;
3652
+ name?: string | undefined;
3617
3653
  pcb_component_id?: string | undefined;
3618
3654
  subcircuit_id?: string | undefined;
3619
3655
  pcb_group_id?: string | undefined;
3656
+ text?: string | undefined;
3620
3657
  is_filled?: boolean | undefined;
3621
3658
  has_stroke?: boolean | undefined;
3622
3659
  is_stroke_dashed?: boolean | undefined;
@@ -3629,9 +3666,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3629
3666
  }[];
3630
3667
  stroke_width: number;
3631
3668
  pcb_note_path_id: string;
3669
+ name?: string | undefined;
3632
3670
  pcb_component_id?: string | undefined;
3633
3671
  subcircuit_id?: string | undefined;
3634
3672
  pcb_group_id?: string | undefined;
3673
+ text?: string | undefined;
3635
3674
  color?: string | undefined;
3636
3675
  } | {
3637
3676
  type: "pcb_note_line";
@@ -3641,9 +3680,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3641
3680
  x2: number;
3642
3681
  y2: number;
3643
3682
  pcb_note_line_id: string;
3683
+ name?: string | undefined;
3644
3684
  pcb_component_id?: string | undefined;
3645
3685
  subcircuit_id?: string | undefined;
3646
3686
  pcb_group_id?: string | undefined;
3687
+ text?: string | undefined;
3647
3688
  color?: string | undefined;
3648
3689
  is_dashed?: boolean | undefined;
3649
3690
  } | {
@@ -3660,6 +3701,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3660
3701
  };
3661
3702
  arrow_size: number;
3662
3703
  pcb_note_dimension_id: string;
3704
+ name?: string | undefined;
3663
3705
  pcb_component_id?: string | undefined;
3664
3706
  subcircuit_id?: string | undefined;
3665
3707
  pcb_group_id?: string | undefined;
@@ -3861,6 +3903,18 @@ declare const runTscircuitModule: (module: string, opts?: {
3861
3903
  is_stroke_dashed?: boolean | undefined;
3862
3904
  color?: string | undefined;
3863
3905
  is_closed?: boolean | undefined;
3906
+ } | {
3907
+ type: "pcb_courtyard_polygon";
3908
+ pcb_component_id: string;
3909
+ layer: "top" | "bottom";
3910
+ points: {
3911
+ x: number;
3912
+ y: number;
3913
+ }[];
3914
+ pcb_courtyard_polygon_id: string;
3915
+ subcircuit_id?: string | undefined;
3916
+ pcb_group_id?: string | undefined;
3917
+ color?: string | undefined;
3864
3918
  } | {
3865
3919
  x: number;
3866
3920
  y: number;