@tscircuit/eval 0.0.325 → 0.0.326

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.
@@ -697,14 +697,14 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
697
697
  internally_connected_source_port_ids?: string[][] | undefined;
698
698
  } | {
699
699
  type: "source_pcb_ground_plane";
700
- source_group_id: string;
701
700
  source_net_id: string;
701
+ source_group_id: string;
702
702
  source_pcb_ground_plane_id: string;
703
703
  subcircuit_id?: string | undefined;
704
704
  } | {
705
705
  type: "source_manually_placed_via";
706
- source_group_id: string;
707
706
  source_net_id: string;
707
+ source_group_id: string;
708
708
  source_manually_placed_via_id: string;
709
709
  subcircuit_id?: string | undefined;
710
710
  source_trace_id?: string | undefined;
@@ -783,6 +783,16 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
783
783
  subcircuit_id?: string | undefined;
784
784
  pcb_group_id?: string | undefined;
785
785
  footprinter_string?: string | undefined;
786
+ } | {
787
+ message: string;
788
+ type: "circuit_json_footprint_load_error";
789
+ pcb_component_id: string;
790
+ source_component_id: string;
791
+ error_type: "circuit_json_footprint_load_error";
792
+ circuit_json_footprint_load_error_id: string;
793
+ subcircuit_id?: string | undefined;
794
+ pcb_group_id?: string | undefined;
795
+ circuit_json?: any[] | undefined;
786
796
  } | {
787
797
  message: string;
788
798
  type: "pcb_manual_edit_conflict_warning";
@@ -856,6 +866,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
856
866
  pad_shape: "rect";
857
867
  rect_pad_width: number;
858
868
  rect_pad_height: number;
869
+ hole_offset_x: number;
870
+ hole_offset_y: number;
859
871
  pcb_component_id?: string | undefined;
860
872
  subcircuit_id?: string | undefined;
861
873
  pcb_group_id?: string | undefined;
@@ -875,6 +887,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
875
887
  pad_shape: "rect";
876
888
  rect_pad_width: number;
877
889
  rect_pad_height: number;
890
+ hole_offset_x: number;
891
+ hole_offset_y: number;
878
892
  hole_ccw_rotation: number;
879
893
  rect_ccw_rotation: number;
880
894
  pcb_component_id?: string | undefined;
@@ -921,6 +935,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
921
935
  subcircuit_id?: string | undefined;
922
936
  pcb_group_id?: string | undefined;
923
937
  is_board_pinout?: boolean | undefined;
938
+ } | {
939
+ type: "pcb_net";
940
+ pcb_net_id: string;
941
+ rats_nest_color?: string | undefined;
942
+ source_net_id?: string | undefined;
924
943
  } | {
925
944
  type: "pcb_text";
926
945
  width: number;
@@ -964,6 +983,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
964
983
  route_order_index?: number | undefined;
965
984
  should_round_corners?: boolean | undefined;
966
985
  trace_length?: number | undefined;
986
+ rats_nest_color?: string | undefined;
967
987
  } | {
968
988
  x: number;
969
989
  y: number;
@@ -1543,8 +1563,60 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1543
1563
  y1: number;
1544
1564
  x2: number;
1545
1565
  y2: number;
1566
+ color: string;
1567
+ schematic_component_id: string;
1568
+ is_dashed: boolean;
1569
+ schematic_line_id: string;
1570
+ subcircuit_id?: string | undefined;
1571
+ stroke_width?: number | null | undefined;
1572
+ } | {
1573
+ type: "schematic_rect";
1574
+ width: number;
1575
+ height: number;
1576
+ center: {
1577
+ x: number;
1578
+ y: number;
1579
+ };
1580
+ rotation: number;
1581
+ is_filled: boolean;
1582
+ color: string;
1546
1583
  schematic_component_id: string;
1584
+ is_dashed: boolean;
1585
+ schematic_rect_id: string;
1586
+ subcircuit_id?: string | undefined;
1587
+ stroke_width?: number | null | undefined;
1588
+ fill_color?: string | undefined;
1589
+ } | {
1590
+ type: "schematic_circle";
1591
+ center: {
1592
+ x: number;
1593
+ y: number;
1594
+ };
1595
+ radius: number;
1596
+ is_filled: boolean;
1597
+ color: string;
1598
+ schematic_component_id: string;
1599
+ is_dashed: boolean;
1600
+ schematic_circle_id: string;
1601
+ subcircuit_id?: string | undefined;
1602
+ stroke_width?: number | null | undefined;
1603
+ fill_color?: string | undefined;
1604
+ } | {
1605
+ type: "schematic_arc";
1606
+ center: {
1607
+ x: number;
1608
+ y: number;
1609
+ };
1610
+ radius: number;
1611
+ color: string;
1612
+ schematic_component_id: string;
1613
+ is_dashed: boolean;
1614
+ direction: "clockwise" | "counterclockwise";
1615
+ schematic_arc_id: string;
1616
+ start_angle_degrees: number;
1617
+ end_angle_degrees: number;
1547
1618
  subcircuit_id?: string | undefined;
1619
+ stroke_width?: number | null | undefined;
1548
1620
  } | {
1549
1621
  type: "schematic_component";
1550
1622
  center: {
@@ -2444,14 +2516,14 @@ declare const runTscircuitModule: (module: string, opts?: {
2444
2516
  internally_connected_source_port_ids?: string[][] | undefined;
2445
2517
  } | {
2446
2518
  type: "source_pcb_ground_plane";
2447
- source_group_id: string;
2448
2519
  source_net_id: string;
2520
+ source_group_id: string;
2449
2521
  source_pcb_ground_plane_id: string;
2450
2522
  subcircuit_id?: string | undefined;
2451
2523
  } | {
2452
2524
  type: "source_manually_placed_via";
2453
- source_group_id: string;
2454
2525
  source_net_id: string;
2526
+ source_group_id: string;
2455
2527
  source_manually_placed_via_id: string;
2456
2528
  subcircuit_id?: string | undefined;
2457
2529
  source_trace_id?: string | undefined;
@@ -2530,6 +2602,16 @@ declare const runTscircuitModule: (module: string, opts?: {
2530
2602
  subcircuit_id?: string | undefined;
2531
2603
  pcb_group_id?: string | undefined;
2532
2604
  footprinter_string?: string | undefined;
2605
+ } | {
2606
+ message: string;
2607
+ type: "circuit_json_footprint_load_error";
2608
+ pcb_component_id: string;
2609
+ source_component_id: string;
2610
+ error_type: "circuit_json_footprint_load_error";
2611
+ circuit_json_footprint_load_error_id: string;
2612
+ subcircuit_id?: string | undefined;
2613
+ pcb_group_id?: string | undefined;
2614
+ circuit_json?: any[] | undefined;
2533
2615
  } | {
2534
2616
  message: string;
2535
2617
  type: "pcb_manual_edit_conflict_warning";
@@ -2603,6 +2685,8 @@ declare const runTscircuitModule: (module: string, opts?: {
2603
2685
  pad_shape: "rect";
2604
2686
  rect_pad_width: number;
2605
2687
  rect_pad_height: number;
2688
+ hole_offset_x: number;
2689
+ hole_offset_y: number;
2606
2690
  pcb_component_id?: string | undefined;
2607
2691
  subcircuit_id?: string | undefined;
2608
2692
  pcb_group_id?: string | undefined;
@@ -2622,6 +2706,8 @@ declare const runTscircuitModule: (module: string, opts?: {
2622
2706
  pad_shape: "rect";
2623
2707
  rect_pad_width: number;
2624
2708
  rect_pad_height: number;
2709
+ hole_offset_x: number;
2710
+ hole_offset_y: number;
2625
2711
  hole_ccw_rotation: number;
2626
2712
  rect_ccw_rotation: number;
2627
2713
  pcb_component_id?: string | undefined;
@@ -2668,6 +2754,11 @@ declare const runTscircuitModule: (module: string, opts?: {
2668
2754
  subcircuit_id?: string | undefined;
2669
2755
  pcb_group_id?: string | undefined;
2670
2756
  is_board_pinout?: boolean | undefined;
2757
+ } | {
2758
+ type: "pcb_net";
2759
+ pcb_net_id: string;
2760
+ rats_nest_color?: string | undefined;
2761
+ source_net_id?: string | undefined;
2671
2762
  } | {
2672
2763
  type: "pcb_text";
2673
2764
  width: number;
@@ -2711,6 +2802,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2711
2802
  route_order_index?: number | undefined;
2712
2803
  should_round_corners?: boolean | undefined;
2713
2804
  trace_length?: number | undefined;
2805
+ rats_nest_color?: string | undefined;
2714
2806
  } | {
2715
2807
  x: number;
2716
2808
  y: number;
@@ -3290,8 +3382,60 @@ declare const runTscircuitModule: (module: string, opts?: {
3290
3382
  y1: number;
3291
3383
  x2: number;
3292
3384
  y2: number;
3385
+ color: string;
3386
+ schematic_component_id: string;
3387
+ is_dashed: boolean;
3388
+ schematic_line_id: string;
3389
+ subcircuit_id?: string | undefined;
3390
+ stroke_width?: number | null | undefined;
3391
+ } | {
3392
+ type: "schematic_rect";
3393
+ width: number;
3394
+ height: number;
3395
+ center: {
3396
+ x: number;
3397
+ y: number;
3398
+ };
3399
+ rotation: number;
3400
+ is_filled: boolean;
3401
+ color: string;
3293
3402
  schematic_component_id: string;
3403
+ is_dashed: boolean;
3404
+ schematic_rect_id: string;
3405
+ subcircuit_id?: string | undefined;
3406
+ stroke_width?: number | null | undefined;
3407
+ fill_color?: string | undefined;
3408
+ } | {
3409
+ type: "schematic_circle";
3410
+ center: {
3411
+ x: number;
3412
+ y: number;
3413
+ };
3414
+ radius: number;
3415
+ is_filled: boolean;
3416
+ color: string;
3417
+ schematic_component_id: string;
3418
+ is_dashed: boolean;
3419
+ schematic_circle_id: string;
3420
+ subcircuit_id?: string | undefined;
3421
+ stroke_width?: number | null | undefined;
3422
+ fill_color?: string | undefined;
3423
+ } | {
3424
+ type: "schematic_arc";
3425
+ center: {
3426
+ x: number;
3427
+ y: number;
3428
+ };
3429
+ radius: number;
3430
+ color: string;
3431
+ schematic_component_id: string;
3432
+ is_dashed: boolean;
3433
+ direction: "clockwise" | "counterclockwise";
3434
+ schematic_arc_id: string;
3435
+ start_angle_degrees: number;
3436
+ end_angle_degrees: number;
3294
3437
  subcircuit_id?: string | undefined;
3438
+ stroke_width?: number | null | undefined;
3295
3439
  } | {
3296
3440
  type: "schematic_component";
3297
3441
  center: {
@@ -713,14 +713,14 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
713
713
  internally_connected_source_port_ids?: string[][] | undefined;
714
714
  } | {
715
715
  type: "source_pcb_ground_plane";
716
- source_group_id: string;
717
716
  source_net_id: string;
717
+ source_group_id: string;
718
718
  source_pcb_ground_plane_id: string;
719
719
  subcircuit_id?: string | undefined;
720
720
  } | {
721
721
  type: "source_manually_placed_via";
722
- source_group_id: string;
723
722
  source_net_id: string;
723
+ source_group_id: string;
724
724
  source_manually_placed_via_id: string;
725
725
  subcircuit_id?: string | undefined;
726
726
  source_trace_id?: string | undefined;
@@ -799,6 +799,16 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
799
799
  subcircuit_id?: string | undefined;
800
800
  pcb_group_id?: string | undefined;
801
801
  footprinter_string?: string | undefined;
802
+ } | {
803
+ message: string;
804
+ type: "circuit_json_footprint_load_error";
805
+ pcb_component_id: string;
806
+ source_component_id: string;
807
+ error_type: "circuit_json_footprint_load_error";
808
+ circuit_json_footprint_load_error_id: string;
809
+ subcircuit_id?: string | undefined;
810
+ pcb_group_id?: string | undefined;
811
+ circuit_json?: any[] | undefined;
802
812
  } | {
803
813
  message: string;
804
814
  type: "pcb_manual_edit_conflict_warning";
@@ -872,6 +882,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
872
882
  pad_shape: "rect";
873
883
  rect_pad_width: number;
874
884
  rect_pad_height: number;
885
+ hole_offset_x: number;
886
+ hole_offset_y: number;
875
887
  pcb_component_id?: string | undefined;
876
888
  subcircuit_id?: string | undefined;
877
889
  pcb_group_id?: string | undefined;
@@ -891,6 +903,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
891
903
  pad_shape: "rect";
892
904
  rect_pad_width: number;
893
905
  rect_pad_height: number;
906
+ hole_offset_x: number;
907
+ hole_offset_y: number;
894
908
  hole_ccw_rotation: number;
895
909
  rect_ccw_rotation: number;
896
910
  pcb_component_id?: string | undefined;
@@ -937,6 +951,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
937
951
  subcircuit_id?: string | undefined;
938
952
  pcb_group_id?: string | undefined;
939
953
  is_board_pinout?: boolean | undefined;
954
+ } | {
955
+ type: "pcb_net";
956
+ pcb_net_id: string;
957
+ rats_nest_color?: string | undefined;
958
+ source_net_id?: string | undefined;
940
959
  } | {
941
960
  type: "pcb_text";
942
961
  width: number;
@@ -980,6 +999,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
980
999
  route_order_index?: number | undefined;
981
1000
  should_round_corners?: boolean | undefined;
982
1001
  trace_length?: number | undefined;
1002
+ rats_nest_color?: string | undefined;
983
1003
  } | {
984
1004
  x: number;
985
1005
  y: number;
@@ -1559,8 +1579,60 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1559
1579
  y1: number;
1560
1580
  x2: number;
1561
1581
  y2: number;
1582
+ color: string;
1583
+ schematic_component_id: string;
1584
+ is_dashed: boolean;
1585
+ schematic_line_id: string;
1586
+ subcircuit_id?: string | undefined;
1587
+ stroke_width?: number | null | undefined;
1588
+ } | {
1589
+ type: "schematic_rect";
1590
+ width: number;
1591
+ height: number;
1592
+ center: {
1593
+ x: number;
1594
+ y: number;
1595
+ };
1596
+ rotation: number;
1597
+ is_filled: boolean;
1598
+ color: string;
1562
1599
  schematic_component_id: string;
1600
+ is_dashed: boolean;
1601
+ schematic_rect_id: string;
1602
+ subcircuit_id?: string | undefined;
1603
+ stroke_width?: number | null | undefined;
1604
+ fill_color?: string | undefined;
1605
+ } | {
1606
+ type: "schematic_circle";
1607
+ center: {
1608
+ x: number;
1609
+ y: number;
1610
+ };
1611
+ radius: number;
1612
+ is_filled: boolean;
1613
+ color: string;
1614
+ schematic_component_id: string;
1615
+ is_dashed: boolean;
1616
+ schematic_circle_id: string;
1617
+ subcircuit_id?: string | undefined;
1618
+ stroke_width?: number | null | undefined;
1619
+ fill_color?: string | undefined;
1620
+ } | {
1621
+ type: "schematic_arc";
1622
+ center: {
1623
+ x: number;
1624
+ y: number;
1625
+ };
1626
+ radius: number;
1627
+ color: string;
1628
+ schematic_component_id: string;
1629
+ is_dashed: boolean;
1630
+ direction: "clockwise" | "counterclockwise";
1631
+ schematic_arc_id: string;
1632
+ start_angle_degrees: number;
1633
+ end_angle_degrees: number;
1563
1634
  subcircuit_id?: string | undefined;
1635
+ stroke_width?: number | null | undefined;
1564
1636
  } | {
1565
1637
  type: "schematic_component";
1566
1638
  center: {
@@ -2460,14 +2532,14 @@ declare const runTscircuitModule: (module: string, opts?: {
2460
2532
  internally_connected_source_port_ids?: string[][] | undefined;
2461
2533
  } | {
2462
2534
  type: "source_pcb_ground_plane";
2463
- source_group_id: string;
2464
2535
  source_net_id: string;
2536
+ source_group_id: string;
2465
2537
  source_pcb_ground_plane_id: string;
2466
2538
  subcircuit_id?: string | undefined;
2467
2539
  } | {
2468
2540
  type: "source_manually_placed_via";
2469
- source_group_id: string;
2470
2541
  source_net_id: string;
2542
+ source_group_id: string;
2471
2543
  source_manually_placed_via_id: string;
2472
2544
  subcircuit_id?: string | undefined;
2473
2545
  source_trace_id?: string | undefined;
@@ -2546,6 +2618,16 @@ declare const runTscircuitModule: (module: string, opts?: {
2546
2618
  subcircuit_id?: string | undefined;
2547
2619
  pcb_group_id?: string | undefined;
2548
2620
  footprinter_string?: string | undefined;
2621
+ } | {
2622
+ message: string;
2623
+ type: "circuit_json_footprint_load_error";
2624
+ pcb_component_id: string;
2625
+ source_component_id: string;
2626
+ error_type: "circuit_json_footprint_load_error";
2627
+ circuit_json_footprint_load_error_id: string;
2628
+ subcircuit_id?: string | undefined;
2629
+ pcb_group_id?: string | undefined;
2630
+ circuit_json?: any[] | undefined;
2549
2631
  } | {
2550
2632
  message: string;
2551
2633
  type: "pcb_manual_edit_conflict_warning";
@@ -2619,6 +2701,8 @@ declare const runTscircuitModule: (module: string, opts?: {
2619
2701
  pad_shape: "rect";
2620
2702
  rect_pad_width: number;
2621
2703
  rect_pad_height: number;
2704
+ hole_offset_x: number;
2705
+ hole_offset_y: number;
2622
2706
  pcb_component_id?: string | undefined;
2623
2707
  subcircuit_id?: string | undefined;
2624
2708
  pcb_group_id?: string | undefined;
@@ -2638,6 +2722,8 @@ declare const runTscircuitModule: (module: string, opts?: {
2638
2722
  pad_shape: "rect";
2639
2723
  rect_pad_width: number;
2640
2724
  rect_pad_height: number;
2725
+ hole_offset_x: number;
2726
+ hole_offset_y: number;
2641
2727
  hole_ccw_rotation: number;
2642
2728
  rect_ccw_rotation: number;
2643
2729
  pcb_component_id?: string | undefined;
@@ -2684,6 +2770,11 @@ declare const runTscircuitModule: (module: string, opts?: {
2684
2770
  subcircuit_id?: string | undefined;
2685
2771
  pcb_group_id?: string | undefined;
2686
2772
  is_board_pinout?: boolean | undefined;
2773
+ } | {
2774
+ type: "pcb_net";
2775
+ pcb_net_id: string;
2776
+ rats_nest_color?: string | undefined;
2777
+ source_net_id?: string | undefined;
2687
2778
  } | {
2688
2779
  type: "pcb_text";
2689
2780
  width: number;
@@ -2727,6 +2818,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2727
2818
  route_order_index?: number | undefined;
2728
2819
  should_round_corners?: boolean | undefined;
2729
2820
  trace_length?: number | undefined;
2821
+ rats_nest_color?: string | undefined;
2730
2822
  } | {
2731
2823
  x: number;
2732
2824
  y: number;
@@ -3306,8 +3398,60 @@ declare const runTscircuitModule: (module: string, opts?: {
3306
3398
  y1: number;
3307
3399
  x2: number;
3308
3400
  y2: number;
3401
+ color: string;
3402
+ schematic_component_id: string;
3403
+ is_dashed: boolean;
3404
+ schematic_line_id: string;
3405
+ subcircuit_id?: string | undefined;
3406
+ stroke_width?: number | null | undefined;
3407
+ } | {
3408
+ type: "schematic_rect";
3409
+ width: number;
3410
+ height: number;
3411
+ center: {
3412
+ x: number;
3413
+ y: number;
3414
+ };
3415
+ rotation: number;
3416
+ is_filled: boolean;
3417
+ color: string;
3309
3418
  schematic_component_id: string;
3419
+ is_dashed: boolean;
3420
+ schematic_rect_id: string;
3421
+ subcircuit_id?: string | undefined;
3422
+ stroke_width?: number | null | undefined;
3423
+ fill_color?: string | undefined;
3424
+ } | {
3425
+ type: "schematic_circle";
3426
+ center: {
3427
+ x: number;
3428
+ y: number;
3429
+ };
3430
+ radius: number;
3431
+ is_filled: boolean;
3432
+ color: string;
3433
+ schematic_component_id: string;
3434
+ is_dashed: boolean;
3435
+ schematic_circle_id: string;
3436
+ subcircuit_id?: string | undefined;
3437
+ stroke_width?: number | null | undefined;
3438
+ fill_color?: string | undefined;
3439
+ } | {
3440
+ type: "schematic_arc";
3441
+ center: {
3442
+ x: number;
3443
+ y: number;
3444
+ };
3445
+ radius: number;
3446
+ color: string;
3447
+ schematic_component_id: string;
3448
+ is_dashed: boolean;
3449
+ direction: "clockwise" | "counterclockwise";
3450
+ schematic_arc_id: string;
3451
+ start_angle_degrees: number;
3452
+ end_angle_degrees: number;
3310
3453
  subcircuit_id?: string | undefined;
3454
+ stroke_width?: number | null | undefined;
3311
3455
  } | {
3312
3456
  type: "schematic_component";
3313
3457
  center: {