@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.
@@ -709,6 +709,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
709
709
  source_manually_placed_via_id: string;
710
710
  subcircuit_id?: string | undefined;
711
711
  source_trace_id?: string | undefined;
712
+ } | {
713
+ type: "source_board";
714
+ source_group_id: string;
715
+ source_board_id: string;
716
+ title?: string | undefined;
712
717
  } | {
713
718
  type: "source_project_metadata";
714
719
  name?: string | undefined;
@@ -768,6 +773,27 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
768
773
  hole_height: number;
769
774
  subcircuit_id?: string | undefined;
770
775
  pcb_group_id?: string | undefined;
776
+ } | {
777
+ x: number;
778
+ y: number;
779
+ type: "pcb_hole";
780
+ pcb_hole_id: string;
781
+ hole_shape: "pill";
782
+ hole_width: number;
783
+ hole_height: number;
784
+ subcircuit_id?: string | undefined;
785
+ pcb_group_id?: string | undefined;
786
+ } | {
787
+ x: number;
788
+ y: number;
789
+ type: "pcb_hole";
790
+ pcb_hole_id: string;
791
+ hole_shape: "rotated_pill";
792
+ hole_width: number;
793
+ hole_height: number;
794
+ ccw_rotation: number;
795
+ subcircuit_id?: string | undefined;
796
+ pcb_group_id?: string | undefined;
771
797
  } | {
772
798
  message: string;
773
799
  type: "pcb_missing_footprint_error";
@@ -825,12 +851,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
825
851
  type: "pcb_plated_hole";
826
852
  hole_width: number;
827
853
  hole_height: number;
854
+ ccw_rotation: number;
828
855
  shape: "oval" | "pill";
829
856
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
830
857
  pcb_plated_hole_id: string;
831
858
  outer_width: number;
832
859
  outer_height: number;
833
- ccw_rotation: number;
834
860
  pcb_component_id?: string | undefined;
835
861
  subcircuit_id?: string | undefined;
836
862
  pcb_group_id?: string | undefined;
@@ -1037,8 +1063,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1037
1063
  width: number;
1038
1064
  height: number;
1039
1065
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1040
- shape: "rotated_rect";
1041
1066
  ccw_rotation: number;
1067
+ shape: "rotated_rect";
1042
1068
  pcb_smtpad_id: string;
1043
1069
  pcb_component_id?: string | undefined;
1044
1070
  subcircuit_id?: string | undefined;
@@ -1054,8 +1080,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1054
1080
  width: number;
1055
1081
  height: number;
1056
1082
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1057
- shape: "rotated_pill";
1058
1083
  ccw_rotation: number;
1084
+ shape: "rotated_pill";
1059
1085
  pcb_smtpad_id: string;
1060
1086
  radius: number;
1061
1087
  pcb_component_id?: string | undefined;
@@ -1141,8 +1167,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1141
1167
  width: number;
1142
1168
  height: number;
1143
1169
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1144
- shape: "rotated_rect";
1145
1170
  ccw_rotation: number;
1171
+ shape: "rotated_rect";
1146
1172
  pcb_solder_paste_id: string;
1147
1173
  pcb_component_id?: string | undefined;
1148
1174
  subcircuit_id?: string | undefined;
@@ -1392,6 +1418,100 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1392
1418
  subcircuit_id?: string | undefined;
1393
1419
  pcb_group_id?: string | undefined;
1394
1420
  color?: string | undefined;
1421
+ } | {
1422
+ type: "pcb_fabrication_note_rect";
1423
+ width: number;
1424
+ height: number;
1425
+ pcb_component_id: string;
1426
+ center: {
1427
+ x: number;
1428
+ y: number;
1429
+ };
1430
+ layer: "top" | "bottom";
1431
+ stroke_width: number;
1432
+ pcb_fabrication_note_rect_id: string;
1433
+ subcircuit_id?: string | undefined;
1434
+ pcb_group_id?: string | undefined;
1435
+ is_filled?: boolean | undefined;
1436
+ has_stroke?: boolean | undefined;
1437
+ is_stroke_dashed?: boolean | undefined;
1438
+ color?: string | undefined;
1439
+ } | {
1440
+ type: "pcb_note_text";
1441
+ text: string;
1442
+ font: "tscircuit2024";
1443
+ font_size: number;
1444
+ anchor_position: {
1445
+ x: number;
1446
+ y: number;
1447
+ };
1448
+ anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
1449
+ pcb_note_text_id: string;
1450
+ pcb_component_id?: string | undefined;
1451
+ subcircuit_id?: string | undefined;
1452
+ pcb_group_id?: string | undefined;
1453
+ color?: string | undefined;
1454
+ } | {
1455
+ type: "pcb_note_rect";
1456
+ width: number;
1457
+ height: number;
1458
+ center: {
1459
+ x: number;
1460
+ y: number;
1461
+ };
1462
+ stroke_width: number;
1463
+ pcb_note_rect_id: string;
1464
+ pcb_component_id?: string | undefined;
1465
+ subcircuit_id?: string | undefined;
1466
+ pcb_group_id?: string | undefined;
1467
+ is_filled?: boolean | undefined;
1468
+ has_stroke?: boolean | undefined;
1469
+ is_stroke_dashed?: boolean | undefined;
1470
+ color?: string | undefined;
1471
+ } | {
1472
+ type: "pcb_note_path";
1473
+ route: {
1474
+ x: number;
1475
+ y: number;
1476
+ }[];
1477
+ stroke_width: number;
1478
+ pcb_note_path_id: string;
1479
+ pcb_component_id?: string | undefined;
1480
+ subcircuit_id?: string | undefined;
1481
+ pcb_group_id?: string | undefined;
1482
+ color?: string | undefined;
1483
+ } | {
1484
+ type: "pcb_note_line";
1485
+ stroke_width: number;
1486
+ x1: number;
1487
+ y1: number;
1488
+ x2: number;
1489
+ y2: number;
1490
+ pcb_note_line_id: string;
1491
+ pcb_component_id?: string | undefined;
1492
+ subcircuit_id?: string | undefined;
1493
+ pcb_group_id?: string | undefined;
1494
+ color?: string | undefined;
1495
+ is_dashed?: boolean | undefined;
1496
+ } | {
1497
+ type: "pcb_note_dimension";
1498
+ font: "tscircuit2024";
1499
+ font_size: number;
1500
+ pcb_note_dimension_id: string;
1501
+ from: {
1502
+ x: number;
1503
+ y: number;
1504
+ };
1505
+ to: {
1506
+ x: number;
1507
+ y: number;
1508
+ };
1509
+ arrow_size: number;
1510
+ pcb_component_id?: string | undefined;
1511
+ subcircuit_id?: string | undefined;
1512
+ pcb_group_id?: string | undefined;
1513
+ text?: string | undefined;
1514
+ color?: string | undefined;
1395
1515
  } | {
1396
1516
  message: string;
1397
1517
  type: "pcb_autorouting_error";
@@ -1550,6 +1670,39 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1550
1670
  };
1551
1671
  source_component_id?: string | undefined;
1552
1672
  subcircuit_id?: string | undefined;
1673
+ } | {
1674
+ type: "pcb_courtyard_rect";
1675
+ width: number;
1676
+ height: number;
1677
+ pcb_component_id: string;
1678
+ center: {
1679
+ x: number;
1680
+ y: number;
1681
+ };
1682
+ layer: "top" | "bottom";
1683
+ stroke_width: number;
1684
+ pcb_courtyard_rect_id: string;
1685
+ subcircuit_id?: string | undefined;
1686
+ pcb_group_id?: string | undefined;
1687
+ is_filled?: boolean | undefined;
1688
+ has_stroke?: boolean | undefined;
1689
+ is_stroke_dashed?: boolean | undefined;
1690
+ color?: string | undefined;
1691
+ } | {
1692
+ type: "pcb_courtyard_outline";
1693
+ pcb_component_id: string;
1694
+ layer: "top" | "bottom";
1695
+ outline: {
1696
+ x: number;
1697
+ y: number;
1698
+ }[];
1699
+ stroke_width: number;
1700
+ pcb_courtyard_outline_id: string;
1701
+ subcircuit_id?: string | undefined;
1702
+ pcb_group_id?: string | undefined;
1703
+ is_stroke_dashed?: boolean | undefined;
1704
+ color?: string | undefined;
1705
+ is_closed?: boolean | undefined;
1553
1706
  } | {
1554
1707
  x: number;
1555
1708
  y: number;
@@ -1580,8 +1733,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1580
1733
  x2: number;
1581
1734
  y2: number;
1582
1735
  color: string;
1583
- schematic_component_id: string;
1584
1736
  is_dashed: boolean;
1737
+ schematic_component_id: string;
1585
1738
  schematic_line_id: string;
1586
1739
  subcircuit_id?: string | undefined;
1587
1740
  stroke_width?: number | null | undefined;
@@ -1596,8 +1749,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1596
1749
  rotation: number;
1597
1750
  is_filled: boolean;
1598
1751
  color: string;
1599
- schematic_component_id: string;
1600
1752
  is_dashed: boolean;
1753
+ schematic_component_id: string;
1601
1754
  schematic_rect_id: string;
1602
1755
  subcircuit_id?: string | undefined;
1603
1756
  stroke_width?: number | null | undefined;
@@ -1611,8 +1764,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1611
1764
  radius: number;
1612
1765
  is_filled: boolean;
1613
1766
  color: string;
1614
- schematic_component_id: string;
1615
1767
  is_dashed: boolean;
1768
+ schematic_component_id: string;
1616
1769
  schematic_circle_id: string;
1617
1770
  subcircuit_id?: string | undefined;
1618
1771
  stroke_width?: number | null | undefined;
@@ -1625,8 +1778,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1625
1778
  };
1626
1779
  radius: number;
1627
1780
  color: string;
1628
- schematic_component_id: string;
1629
1781
  is_dashed: boolean;
1782
+ schematic_component_id: string;
1630
1783
  direction: "clockwise" | "counterclockwise";
1631
1784
  schematic_arc_id: string;
1632
1785
  start_angle_degrees: number;
@@ -2579,6 +2732,11 @@ declare const runTscircuitModule: (module: string, opts?: {
2579
2732
  source_manually_placed_via_id: string;
2580
2733
  subcircuit_id?: string | undefined;
2581
2734
  source_trace_id?: string | undefined;
2735
+ } | {
2736
+ type: "source_board";
2737
+ source_group_id: string;
2738
+ source_board_id: string;
2739
+ title?: string | undefined;
2582
2740
  } | {
2583
2741
  type: "source_project_metadata";
2584
2742
  name?: string | undefined;
@@ -2638,6 +2796,27 @@ declare const runTscircuitModule: (module: string, opts?: {
2638
2796
  hole_height: number;
2639
2797
  subcircuit_id?: string | undefined;
2640
2798
  pcb_group_id?: string | undefined;
2799
+ } | {
2800
+ x: number;
2801
+ y: number;
2802
+ type: "pcb_hole";
2803
+ pcb_hole_id: string;
2804
+ hole_shape: "pill";
2805
+ hole_width: number;
2806
+ hole_height: number;
2807
+ subcircuit_id?: string | undefined;
2808
+ pcb_group_id?: string | undefined;
2809
+ } | {
2810
+ x: number;
2811
+ y: number;
2812
+ type: "pcb_hole";
2813
+ pcb_hole_id: string;
2814
+ hole_shape: "rotated_pill";
2815
+ hole_width: number;
2816
+ hole_height: number;
2817
+ ccw_rotation: number;
2818
+ subcircuit_id?: string | undefined;
2819
+ pcb_group_id?: string | undefined;
2641
2820
  } | {
2642
2821
  message: string;
2643
2822
  type: "pcb_missing_footprint_error";
@@ -2695,12 +2874,12 @@ declare const runTscircuitModule: (module: string, opts?: {
2695
2874
  type: "pcb_plated_hole";
2696
2875
  hole_width: number;
2697
2876
  hole_height: number;
2877
+ ccw_rotation: number;
2698
2878
  shape: "oval" | "pill";
2699
2879
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
2700
2880
  pcb_plated_hole_id: string;
2701
2881
  outer_width: number;
2702
2882
  outer_height: number;
2703
- ccw_rotation: number;
2704
2883
  pcb_component_id?: string | undefined;
2705
2884
  subcircuit_id?: string | undefined;
2706
2885
  pcb_group_id?: string | undefined;
@@ -2907,8 +3086,8 @@ declare const runTscircuitModule: (module: string, opts?: {
2907
3086
  width: number;
2908
3087
  height: number;
2909
3088
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2910
- shape: "rotated_rect";
2911
3089
  ccw_rotation: number;
3090
+ shape: "rotated_rect";
2912
3091
  pcb_smtpad_id: string;
2913
3092
  pcb_component_id?: string | undefined;
2914
3093
  subcircuit_id?: string | undefined;
@@ -2924,8 +3103,8 @@ declare const runTscircuitModule: (module: string, opts?: {
2924
3103
  width: number;
2925
3104
  height: number;
2926
3105
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2927
- shape: "rotated_pill";
2928
3106
  ccw_rotation: number;
3107
+ shape: "rotated_pill";
2929
3108
  pcb_smtpad_id: string;
2930
3109
  radius: number;
2931
3110
  pcb_component_id?: string | undefined;
@@ -3011,8 +3190,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3011
3190
  width: number;
3012
3191
  height: number;
3013
3192
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3014
- shape: "rotated_rect";
3015
3193
  ccw_rotation: number;
3194
+ shape: "rotated_rect";
3016
3195
  pcb_solder_paste_id: string;
3017
3196
  pcb_component_id?: string | undefined;
3018
3197
  subcircuit_id?: string | undefined;
@@ -3262,6 +3441,100 @@ declare const runTscircuitModule: (module: string, opts?: {
3262
3441
  subcircuit_id?: string | undefined;
3263
3442
  pcb_group_id?: string | undefined;
3264
3443
  color?: string | undefined;
3444
+ } | {
3445
+ type: "pcb_fabrication_note_rect";
3446
+ width: number;
3447
+ height: number;
3448
+ pcb_component_id: string;
3449
+ center: {
3450
+ x: number;
3451
+ y: number;
3452
+ };
3453
+ layer: "top" | "bottom";
3454
+ stroke_width: number;
3455
+ pcb_fabrication_note_rect_id: string;
3456
+ subcircuit_id?: string | undefined;
3457
+ pcb_group_id?: string | undefined;
3458
+ is_filled?: boolean | undefined;
3459
+ has_stroke?: boolean | undefined;
3460
+ is_stroke_dashed?: boolean | undefined;
3461
+ color?: string | undefined;
3462
+ } | {
3463
+ type: "pcb_note_text";
3464
+ text: string;
3465
+ font: "tscircuit2024";
3466
+ font_size: number;
3467
+ anchor_position: {
3468
+ x: number;
3469
+ y: number;
3470
+ };
3471
+ anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
3472
+ pcb_note_text_id: string;
3473
+ pcb_component_id?: string | undefined;
3474
+ subcircuit_id?: string | undefined;
3475
+ pcb_group_id?: string | undefined;
3476
+ color?: string | undefined;
3477
+ } | {
3478
+ type: "pcb_note_rect";
3479
+ width: number;
3480
+ height: number;
3481
+ center: {
3482
+ x: number;
3483
+ y: number;
3484
+ };
3485
+ stroke_width: number;
3486
+ pcb_note_rect_id: string;
3487
+ pcb_component_id?: string | undefined;
3488
+ subcircuit_id?: string | undefined;
3489
+ pcb_group_id?: string | undefined;
3490
+ is_filled?: boolean | undefined;
3491
+ has_stroke?: boolean | undefined;
3492
+ is_stroke_dashed?: boolean | undefined;
3493
+ color?: string | undefined;
3494
+ } | {
3495
+ type: "pcb_note_path";
3496
+ route: {
3497
+ x: number;
3498
+ y: number;
3499
+ }[];
3500
+ stroke_width: number;
3501
+ pcb_note_path_id: string;
3502
+ pcb_component_id?: string | undefined;
3503
+ subcircuit_id?: string | undefined;
3504
+ pcb_group_id?: string | undefined;
3505
+ color?: string | undefined;
3506
+ } | {
3507
+ type: "pcb_note_line";
3508
+ stroke_width: number;
3509
+ x1: number;
3510
+ y1: number;
3511
+ x2: number;
3512
+ y2: number;
3513
+ pcb_note_line_id: string;
3514
+ pcb_component_id?: string | undefined;
3515
+ subcircuit_id?: string | undefined;
3516
+ pcb_group_id?: string | undefined;
3517
+ color?: string | undefined;
3518
+ is_dashed?: boolean | undefined;
3519
+ } | {
3520
+ type: "pcb_note_dimension";
3521
+ font: "tscircuit2024";
3522
+ font_size: number;
3523
+ pcb_note_dimension_id: string;
3524
+ from: {
3525
+ x: number;
3526
+ y: number;
3527
+ };
3528
+ to: {
3529
+ x: number;
3530
+ y: number;
3531
+ };
3532
+ arrow_size: number;
3533
+ pcb_component_id?: string | undefined;
3534
+ subcircuit_id?: string | undefined;
3535
+ pcb_group_id?: string | undefined;
3536
+ text?: string | undefined;
3537
+ color?: string | undefined;
3265
3538
  } | {
3266
3539
  message: string;
3267
3540
  type: "pcb_autorouting_error";
@@ -3420,6 +3693,39 @@ declare const runTscircuitModule: (module: string, opts?: {
3420
3693
  };
3421
3694
  source_component_id?: string | undefined;
3422
3695
  subcircuit_id?: string | undefined;
3696
+ } | {
3697
+ type: "pcb_courtyard_rect";
3698
+ width: number;
3699
+ height: number;
3700
+ pcb_component_id: string;
3701
+ center: {
3702
+ x: number;
3703
+ y: number;
3704
+ };
3705
+ layer: "top" | "bottom";
3706
+ stroke_width: number;
3707
+ pcb_courtyard_rect_id: string;
3708
+ subcircuit_id?: string | undefined;
3709
+ pcb_group_id?: string | undefined;
3710
+ is_filled?: boolean | undefined;
3711
+ has_stroke?: boolean | undefined;
3712
+ is_stroke_dashed?: boolean | undefined;
3713
+ color?: string | undefined;
3714
+ } | {
3715
+ type: "pcb_courtyard_outline";
3716
+ pcb_component_id: string;
3717
+ layer: "top" | "bottom";
3718
+ outline: {
3719
+ x: number;
3720
+ y: number;
3721
+ }[];
3722
+ stroke_width: number;
3723
+ pcb_courtyard_outline_id: string;
3724
+ subcircuit_id?: string | undefined;
3725
+ pcb_group_id?: string | undefined;
3726
+ is_stroke_dashed?: boolean | undefined;
3727
+ color?: string | undefined;
3728
+ is_closed?: boolean | undefined;
3423
3729
  } | {
3424
3730
  x: number;
3425
3731
  y: number;
@@ -3450,8 +3756,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3450
3756
  x2: number;
3451
3757
  y2: number;
3452
3758
  color: string;
3453
- schematic_component_id: string;
3454
3759
  is_dashed: boolean;
3760
+ schematic_component_id: string;
3455
3761
  schematic_line_id: string;
3456
3762
  subcircuit_id?: string | undefined;
3457
3763
  stroke_width?: number | null | undefined;
@@ -3466,8 +3772,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3466
3772
  rotation: number;
3467
3773
  is_filled: boolean;
3468
3774
  color: string;
3469
- schematic_component_id: string;
3470
3775
  is_dashed: boolean;
3776
+ schematic_component_id: string;
3471
3777
  schematic_rect_id: string;
3472
3778
  subcircuit_id?: string | undefined;
3473
3779
  stroke_width?: number | null | undefined;
@@ -3481,8 +3787,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3481
3787
  radius: number;
3482
3788
  is_filled: boolean;
3483
3789
  color: string;
3484
- schematic_component_id: string;
3485
3790
  is_dashed: boolean;
3791
+ schematic_component_id: string;
3486
3792
  schematic_circle_id: string;
3487
3793
  subcircuit_id?: string | undefined;
3488
3794
  stroke_width?: number | null | undefined;
@@ -3495,8 +3801,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3495
3801
  };
3496
3802
  radius: number;
3497
3803
  color: string;
3498
- schematic_component_id: string;
3499
3804
  is_dashed: boolean;
3805
+ schematic_component_id: string;
3500
3806
  direction: "clockwise" | "counterclockwise";
3501
3807
  schematic_arc_id: string;
3502
3808
  start_angle_degrees: number;