@tscircuit/eval 0.0.379 → 0.0.381

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.
@@ -725,6 +725,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
725
725
  source_manually_placed_via_id: string;
726
726
  subcircuit_id?: string | undefined;
727
727
  source_trace_id?: string | undefined;
728
+ } | {
729
+ type: "source_board";
730
+ source_group_id: string;
731
+ source_board_id: string;
732
+ title?: string | undefined;
728
733
  } | {
729
734
  type: "source_project_metadata";
730
735
  name?: string | undefined;
@@ -784,6 +789,27 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
784
789
  hole_height: number;
785
790
  subcircuit_id?: string | undefined;
786
791
  pcb_group_id?: string | undefined;
792
+ } | {
793
+ x: number;
794
+ y: number;
795
+ type: "pcb_hole";
796
+ pcb_hole_id: string;
797
+ hole_shape: "pill";
798
+ hole_width: number;
799
+ hole_height: number;
800
+ subcircuit_id?: string | undefined;
801
+ pcb_group_id?: string | undefined;
802
+ } | {
803
+ x: number;
804
+ y: number;
805
+ type: "pcb_hole";
806
+ pcb_hole_id: string;
807
+ hole_shape: "rotated_pill";
808
+ hole_width: number;
809
+ hole_height: number;
810
+ ccw_rotation: number;
811
+ subcircuit_id?: string | undefined;
812
+ pcb_group_id?: string | undefined;
787
813
  } | {
788
814
  message: string;
789
815
  type: "pcb_missing_footprint_error";
@@ -841,12 +867,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
841
867
  type: "pcb_plated_hole";
842
868
  hole_width: number;
843
869
  hole_height: number;
870
+ ccw_rotation: number;
844
871
  shape: "oval" | "pill";
845
872
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
846
873
  pcb_plated_hole_id: string;
847
874
  outer_width: number;
848
875
  outer_height: number;
849
- ccw_rotation: number;
850
876
  pcb_component_id?: string | undefined;
851
877
  subcircuit_id?: string | undefined;
852
878
  pcb_group_id?: string | undefined;
@@ -1053,8 +1079,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1053
1079
  width: number;
1054
1080
  height: number;
1055
1081
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1056
- shape: "rotated_rect";
1057
1082
  ccw_rotation: number;
1083
+ shape: "rotated_rect";
1058
1084
  pcb_smtpad_id: string;
1059
1085
  pcb_component_id?: string | undefined;
1060
1086
  subcircuit_id?: string | undefined;
@@ -1070,8 +1096,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1070
1096
  width: number;
1071
1097
  height: number;
1072
1098
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1073
- shape: "rotated_pill";
1074
1099
  ccw_rotation: number;
1100
+ shape: "rotated_pill";
1075
1101
  pcb_smtpad_id: string;
1076
1102
  radius: number;
1077
1103
  pcb_component_id?: string | undefined;
@@ -1157,8 +1183,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1157
1183
  width: number;
1158
1184
  height: number;
1159
1185
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1160
- shape: "rotated_rect";
1161
1186
  ccw_rotation: number;
1187
+ shape: "rotated_rect";
1162
1188
  pcb_solder_paste_id: string;
1163
1189
  pcb_component_id?: string | undefined;
1164
1190
  subcircuit_id?: string | undefined;
@@ -1408,6 +1434,100 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1408
1434
  subcircuit_id?: string | undefined;
1409
1435
  pcb_group_id?: string | undefined;
1410
1436
  color?: string | undefined;
1437
+ } | {
1438
+ type: "pcb_fabrication_note_rect";
1439
+ width: number;
1440
+ height: number;
1441
+ pcb_component_id: string;
1442
+ center: {
1443
+ x: number;
1444
+ y: number;
1445
+ };
1446
+ layer: "top" | "bottom";
1447
+ stroke_width: number;
1448
+ pcb_fabrication_note_rect_id: string;
1449
+ subcircuit_id?: string | undefined;
1450
+ pcb_group_id?: string | undefined;
1451
+ is_filled?: boolean | undefined;
1452
+ has_stroke?: boolean | undefined;
1453
+ is_stroke_dashed?: boolean | undefined;
1454
+ color?: string | undefined;
1455
+ } | {
1456
+ type: "pcb_note_text";
1457
+ text: string;
1458
+ font: "tscircuit2024";
1459
+ font_size: number;
1460
+ anchor_position: {
1461
+ x: number;
1462
+ y: number;
1463
+ };
1464
+ anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
1465
+ pcb_note_text_id: string;
1466
+ pcb_component_id?: string | undefined;
1467
+ subcircuit_id?: string | undefined;
1468
+ pcb_group_id?: string | undefined;
1469
+ color?: string | undefined;
1470
+ } | {
1471
+ type: "pcb_note_rect";
1472
+ width: number;
1473
+ height: number;
1474
+ center: {
1475
+ x: number;
1476
+ y: number;
1477
+ };
1478
+ stroke_width: number;
1479
+ pcb_note_rect_id: string;
1480
+ pcb_component_id?: string | undefined;
1481
+ subcircuit_id?: string | undefined;
1482
+ pcb_group_id?: string | undefined;
1483
+ is_filled?: boolean | undefined;
1484
+ has_stroke?: boolean | undefined;
1485
+ is_stroke_dashed?: boolean | undefined;
1486
+ color?: string | undefined;
1487
+ } | {
1488
+ type: "pcb_note_path";
1489
+ route: {
1490
+ x: number;
1491
+ y: number;
1492
+ }[];
1493
+ stroke_width: number;
1494
+ pcb_note_path_id: string;
1495
+ pcb_component_id?: string | undefined;
1496
+ subcircuit_id?: string | undefined;
1497
+ pcb_group_id?: string | undefined;
1498
+ color?: string | undefined;
1499
+ } | {
1500
+ type: "pcb_note_line";
1501
+ stroke_width: number;
1502
+ x1: number;
1503
+ y1: number;
1504
+ x2: number;
1505
+ y2: number;
1506
+ pcb_note_line_id: string;
1507
+ pcb_component_id?: string | undefined;
1508
+ subcircuit_id?: string | undefined;
1509
+ pcb_group_id?: string | undefined;
1510
+ color?: string | undefined;
1511
+ is_dashed?: boolean | undefined;
1512
+ } | {
1513
+ type: "pcb_note_dimension";
1514
+ font: "tscircuit2024";
1515
+ font_size: number;
1516
+ pcb_note_dimension_id: string;
1517
+ from: {
1518
+ x: number;
1519
+ y: number;
1520
+ };
1521
+ to: {
1522
+ x: number;
1523
+ y: number;
1524
+ };
1525
+ arrow_size: number;
1526
+ pcb_component_id?: string | undefined;
1527
+ subcircuit_id?: string | undefined;
1528
+ pcb_group_id?: string | undefined;
1529
+ text?: string | undefined;
1530
+ color?: string | undefined;
1411
1531
  } | {
1412
1532
  message: string;
1413
1533
  type: "pcb_autorouting_error";
@@ -1566,6 +1686,39 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1566
1686
  };
1567
1687
  source_component_id?: string | undefined;
1568
1688
  subcircuit_id?: string | undefined;
1689
+ } | {
1690
+ type: "pcb_courtyard_rect";
1691
+ width: number;
1692
+ height: number;
1693
+ pcb_component_id: string;
1694
+ center: {
1695
+ x: number;
1696
+ y: number;
1697
+ };
1698
+ layer: "top" | "bottom";
1699
+ stroke_width: number;
1700
+ pcb_courtyard_rect_id: string;
1701
+ subcircuit_id?: string | undefined;
1702
+ pcb_group_id?: string | undefined;
1703
+ is_filled?: boolean | undefined;
1704
+ has_stroke?: boolean | undefined;
1705
+ is_stroke_dashed?: boolean | undefined;
1706
+ color?: string | undefined;
1707
+ } | {
1708
+ type: "pcb_courtyard_outline";
1709
+ pcb_component_id: string;
1710
+ layer: "top" | "bottom";
1711
+ outline: {
1712
+ x: number;
1713
+ y: number;
1714
+ }[];
1715
+ stroke_width: number;
1716
+ pcb_courtyard_outline_id: string;
1717
+ subcircuit_id?: string | undefined;
1718
+ pcb_group_id?: string | undefined;
1719
+ is_stroke_dashed?: boolean | undefined;
1720
+ color?: string | undefined;
1721
+ is_closed?: boolean | undefined;
1569
1722
  } | {
1570
1723
  x: number;
1571
1724
  y: number;
@@ -1596,8 +1749,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1596
1749
  x2: number;
1597
1750
  y2: number;
1598
1751
  color: string;
1599
- schematic_component_id: string;
1600
1752
  is_dashed: boolean;
1753
+ schematic_component_id: string;
1601
1754
  schematic_line_id: string;
1602
1755
  subcircuit_id?: string | undefined;
1603
1756
  stroke_width?: number | null | undefined;
@@ -1612,8 +1765,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1612
1765
  rotation: number;
1613
1766
  is_filled: boolean;
1614
1767
  color: string;
1615
- schematic_component_id: string;
1616
1768
  is_dashed: boolean;
1769
+ schematic_component_id: string;
1617
1770
  schematic_rect_id: string;
1618
1771
  subcircuit_id?: string | undefined;
1619
1772
  stroke_width?: number | null | undefined;
@@ -1627,8 +1780,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1627
1780
  radius: number;
1628
1781
  is_filled: boolean;
1629
1782
  color: string;
1630
- schematic_component_id: string;
1631
1783
  is_dashed: boolean;
1784
+ schematic_component_id: string;
1632
1785
  schematic_circle_id: string;
1633
1786
  subcircuit_id?: string | undefined;
1634
1787
  stroke_width?: number | null | undefined;
@@ -1641,8 +1794,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1641
1794
  };
1642
1795
  radius: number;
1643
1796
  color: string;
1644
- schematic_component_id: string;
1645
1797
  is_dashed: boolean;
1798
+ schematic_component_id: string;
1646
1799
  direction: "clockwise" | "counterclockwise";
1647
1800
  schematic_arc_id: string;
1648
1801
  start_angle_degrees: number;
@@ -2595,6 +2748,11 @@ declare const runTscircuitModule: (module: string, opts?: {
2595
2748
  source_manually_placed_via_id: string;
2596
2749
  subcircuit_id?: string | undefined;
2597
2750
  source_trace_id?: string | undefined;
2751
+ } | {
2752
+ type: "source_board";
2753
+ source_group_id: string;
2754
+ source_board_id: string;
2755
+ title?: string | undefined;
2598
2756
  } | {
2599
2757
  type: "source_project_metadata";
2600
2758
  name?: string | undefined;
@@ -2654,6 +2812,27 @@ declare const runTscircuitModule: (module: string, opts?: {
2654
2812
  hole_height: number;
2655
2813
  subcircuit_id?: string | undefined;
2656
2814
  pcb_group_id?: string | undefined;
2815
+ } | {
2816
+ x: number;
2817
+ y: number;
2818
+ type: "pcb_hole";
2819
+ pcb_hole_id: string;
2820
+ hole_shape: "pill";
2821
+ hole_width: number;
2822
+ hole_height: number;
2823
+ subcircuit_id?: string | undefined;
2824
+ pcb_group_id?: string | undefined;
2825
+ } | {
2826
+ x: number;
2827
+ y: number;
2828
+ type: "pcb_hole";
2829
+ pcb_hole_id: string;
2830
+ hole_shape: "rotated_pill";
2831
+ hole_width: number;
2832
+ hole_height: number;
2833
+ ccw_rotation: number;
2834
+ subcircuit_id?: string | undefined;
2835
+ pcb_group_id?: string | undefined;
2657
2836
  } | {
2658
2837
  message: string;
2659
2838
  type: "pcb_missing_footprint_error";
@@ -2711,12 +2890,12 @@ declare const runTscircuitModule: (module: string, opts?: {
2711
2890
  type: "pcb_plated_hole";
2712
2891
  hole_width: number;
2713
2892
  hole_height: number;
2893
+ ccw_rotation: number;
2714
2894
  shape: "oval" | "pill";
2715
2895
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
2716
2896
  pcb_plated_hole_id: string;
2717
2897
  outer_width: number;
2718
2898
  outer_height: number;
2719
- ccw_rotation: number;
2720
2899
  pcb_component_id?: string | undefined;
2721
2900
  subcircuit_id?: string | undefined;
2722
2901
  pcb_group_id?: string | undefined;
@@ -2923,8 +3102,8 @@ declare const runTscircuitModule: (module: string, opts?: {
2923
3102
  width: number;
2924
3103
  height: number;
2925
3104
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2926
- shape: "rotated_rect";
2927
3105
  ccw_rotation: number;
3106
+ shape: "rotated_rect";
2928
3107
  pcb_smtpad_id: string;
2929
3108
  pcb_component_id?: string | undefined;
2930
3109
  subcircuit_id?: string | undefined;
@@ -2940,8 +3119,8 @@ declare const runTscircuitModule: (module: string, opts?: {
2940
3119
  width: number;
2941
3120
  height: number;
2942
3121
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2943
- shape: "rotated_pill";
2944
3122
  ccw_rotation: number;
3123
+ shape: "rotated_pill";
2945
3124
  pcb_smtpad_id: string;
2946
3125
  radius: number;
2947
3126
  pcb_component_id?: string | undefined;
@@ -3027,8 +3206,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3027
3206
  width: number;
3028
3207
  height: number;
3029
3208
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3030
- shape: "rotated_rect";
3031
3209
  ccw_rotation: number;
3210
+ shape: "rotated_rect";
3032
3211
  pcb_solder_paste_id: string;
3033
3212
  pcb_component_id?: string | undefined;
3034
3213
  subcircuit_id?: string | undefined;
@@ -3278,6 +3457,100 @@ declare const runTscircuitModule: (module: string, opts?: {
3278
3457
  subcircuit_id?: string | undefined;
3279
3458
  pcb_group_id?: string | undefined;
3280
3459
  color?: string | undefined;
3460
+ } | {
3461
+ type: "pcb_fabrication_note_rect";
3462
+ width: number;
3463
+ height: number;
3464
+ pcb_component_id: string;
3465
+ center: {
3466
+ x: number;
3467
+ y: number;
3468
+ };
3469
+ layer: "top" | "bottom";
3470
+ stroke_width: number;
3471
+ pcb_fabrication_note_rect_id: string;
3472
+ subcircuit_id?: string | undefined;
3473
+ pcb_group_id?: string | undefined;
3474
+ is_filled?: boolean | undefined;
3475
+ has_stroke?: boolean | undefined;
3476
+ is_stroke_dashed?: boolean | undefined;
3477
+ color?: string | undefined;
3478
+ } | {
3479
+ type: "pcb_note_text";
3480
+ text: string;
3481
+ font: "tscircuit2024";
3482
+ font_size: number;
3483
+ anchor_position: {
3484
+ x: number;
3485
+ y: number;
3486
+ };
3487
+ anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
3488
+ pcb_note_text_id: string;
3489
+ pcb_component_id?: string | undefined;
3490
+ subcircuit_id?: string | undefined;
3491
+ pcb_group_id?: string | undefined;
3492
+ color?: string | undefined;
3493
+ } | {
3494
+ type: "pcb_note_rect";
3495
+ width: number;
3496
+ height: number;
3497
+ center: {
3498
+ x: number;
3499
+ y: number;
3500
+ };
3501
+ stroke_width: number;
3502
+ pcb_note_rect_id: string;
3503
+ pcb_component_id?: string | undefined;
3504
+ subcircuit_id?: string | undefined;
3505
+ pcb_group_id?: string | undefined;
3506
+ is_filled?: boolean | undefined;
3507
+ has_stroke?: boolean | undefined;
3508
+ is_stroke_dashed?: boolean | undefined;
3509
+ color?: string | undefined;
3510
+ } | {
3511
+ type: "pcb_note_path";
3512
+ route: {
3513
+ x: number;
3514
+ y: number;
3515
+ }[];
3516
+ stroke_width: number;
3517
+ pcb_note_path_id: string;
3518
+ pcb_component_id?: string | undefined;
3519
+ subcircuit_id?: string | undefined;
3520
+ pcb_group_id?: string | undefined;
3521
+ color?: string | undefined;
3522
+ } | {
3523
+ type: "pcb_note_line";
3524
+ stroke_width: number;
3525
+ x1: number;
3526
+ y1: number;
3527
+ x2: number;
3528
+ y2: number;
3529
+ pcb_note_line_id: string;
3530
+ pcb_component_id?: string | undefined;
3531
+ subcircuit_id?: string | undefined;
3532
+ pcb_group_id?: string | undefined;
3533
+ color?: string | undefined;
3534
+ is_dashed?: boolean | undefined;
3535
+ } | {
3536
+ type: "pcb_note_dimension";
3537
+ font: "tscircuit2024";
3538
+ font_size: number;
3539
+ pcb_note_dimension_id: string;
3540
+ from: {
3541
+ x: number;
3542
+ y: number;
3543
+ };
3544
+ to: {
3545
+ x: number;
3546
+ y: number;
3547
+ };
3548
+ arrow_size: number;
3549
+ pcb_component_id?: string | undefined;
3550
+ subcircuit_id?: string | undefined;
3551
+ pcb_group_id?: string | undefined;
3552
+ text?: string | undefined;
3553
+ color?: string | undefined;
3281
3554
  } | {
3282
3555
  message: string;
3283
3556
  type: "pcb_autorouting_error";
@@ -3436,6 +3709,39 @@ declare const runTscircuitModule: (module: string, opts?: {
3436
3709
  };
3437
3710
  source_component_id?: string | undefined;
3438
3711
  subcircuit_id?: string | undefined;
3712
+ } | {
3713
+ type: "pcb_courtyard_rect";
3714
+ width: number;
3715
+ height: number;
3716
+ pcb_component_id: string;
3717
+ center: {
3718
+ x: number;
3719
+ y: number;
3720
+ };
3721
+ layer: "top" | "bottom";
3722
+ stroke_width: number;
3723
+ pcb_courtyard_rect_id: string;
3724
+ subcircuit_id?: string | undefined;
3725
+ pcb_group_id?: string | undefined;
3726
+ is_filled?: boolean | undefined;
3727
+ has_stroke?: boolean | undefined;
3728
+ is_stroke_dashed?: boolean | undefined;
3729
+ color?: string | undefined;
3730
+ } | {
3731
+ type: "pcb_courtyard_outline";
3732
+ pcb_component_id: string;
3733
+ layer: "top" | "bottom";
3734
+ outline: {
3735
+ x: number;
3736
+ y: number;
3737
+ }[];
3738
+ stroke_width: number;
3739
+ pcb_courtyard_outline_id: string;
3740
+ subcircuit_id?: string | undefined;
3741
+ pcb_group_id?: string | undefined;
3742
+ is_stroke_dashed?: boolean | undefined;
3743
+ color?: string | undefined;
3744
+ is_closed?: boolean | undefined;
3439
3745
  } | {
3440
3746
  x: number;
3441
3747
  y: number;
@@ -3466,8 +3772,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3466
3772
  x2: number;
3467
3773
  y2: number;
3468
3774
  color: string;
3469
- schematic_component_id: string;
3470
3775
  is_dashed: boolean;
3776
+ schematic_component_id: string;
3471
3777
  schematic_line_id: string;
3472
3778
  subcircuit_id?: string | undefined;
3473
3779
  stroke_width?: number | null | undefined;
@@ -3482,8 +3788,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3482
3788
  rotation: number;
3483
3789
  is_filled: boolean;
3484
3790
  color: string;
3485
- schematic_component_id: string;
3486
3791
  is_dashed: boolean;
3792
+ schematic_component_id: string;
3487
3793
  schematic_rect_id: string;
3488
3794
  subcircuit_id?: string | undefined;
3489
3795
  stroke_width?: number | null | undefined;
@@ -3497,8 +3803,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3497
3803
  radius: number;
3498
3804
  is_filled: boolean;
3499
3805
  color: string;
3500
- schematic_component_id: string;
3501
3806
  is_dashed: boolean;
3807
+ schematic_component_id: string;
3502
3808
  schematic_circle_id: string;
3503
3809
  subcircuit_id?: string | undefined;
3504
3810
  stroke_width?: number | null | undefined;
@@ -3511,8 +3817,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3511
3817
  };
3512
3818
  radius: number;
3513
3819
  color: string;
3514
- schematic_component_id: string;
3515
3820
  is_dashed: boolean;
3821
+ schematic_component_id: string;
3516
3822
  direction: "clockwise" | "counterclockwise";
3517
3823
  schematic_arc_id: string;
3518
3824
  start_angle_degrees: number;