@tscircuit/eval 0.0.271 → 0.0.273

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.
@@ -384,6 +384,16 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
384
384
  x?: number | undefined;
385
385
  y?: number | undefined;
386
386
  } | undefined;
387
+ } | {
388
+ message: string;
389
+ type: "source_trace_not_connected";
390
+ error_type: "source_trace_not_connected";
391
+ source_trace_not_connected_id: string;
392
+ subcircuit_id?: string | undefined;
393
+ source_trace_id?: string | undefined;
394
+ source_group_id?: string | undefined;
395
+ connected_source_port_ids?: string[] | undefined;
396
+ selectors_not_found?: string[] | undefined;
387
397
  } | {
388
398
  type: "source_net";
389
399
  name: string;
@@ -635,6 +645,16 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
635
645
  software_used_string?: string | undefined;
636
646
  project_url?: string | undefined;
637
647
  created_at?: string | undefined;
648
+ } | {
649
+ message: string;
650
+ type: "source_trace_not_connected";
651
+ error_type: "source_trace_not_connected";
652
+ source_trace_not_connected_id: string;
653
+ subcircuit_id?: string | undefined;
654
+ source_trace_id?: string | undefined;
655
+ source_group_id?: string | undefined;
656
+ connected_source_port_ids?: string[] | undefined;
657
+ selectors_not_found?: string[] | undefined;
638
658
  } | {
639
659
  type: "pcb_component";
640
660
  width: number;
@@ -750,6 +770,26 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
750
770
  pcb_group_id?: string | undefined;
751
771
  port_hints?: string[] | undefined;
752
772
  pcb_port_id?: string | undefined;
773
+ } | {
774
+ x: number;
775
+ y: number;
776
+ type: "pcb_plated_hole";
777
+ hole_shape: "rotated_pill";
778
+ hole_width: number;
779
+ hole_height: number;
780
+ shape: "rotated_pill_hole_with_rect_pad";
781
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
782
+ pcb_plated_hole_id: string;
783
+ pad_shape: "rect";
784
+ rect_pad_width: number;
785
+ rect_pad_height: number;
786
+ hole_ccw_rotation: number;
787
+ rect_ccw_rotation: number;
788
+ pcb_component_id?: string | undefined;
789
+ subcircuit_id?: string | undefined;
790
+ pcb_group_id?: string | undefined;
791
+ port_hints?: string[] | undefined;
792
+ pcb_port_id?: string | undefined;
753
793
  } | {
754
794
  type: "pcb_keepout";
755
795
  width: number;
@@ -885,6 +925,22 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
885
925
  pcb_group_id?: string | undefined;
886
926
  port_hints?: string[] | undefined;
887
927
  pcb_port_id?: string | undefined;
928
+ } | {
929
+ x: number;
930
+ y: number;
931
+ type: "pcb_smtpad";
932
+ width: number;
933
+ height: number;
934
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
935
+ shape: "rotated_pill";
936
+ pcb_smtpad_id: string;
937
+ radius: number;
938
+ ccw_rotation: number;
939
+ pcb_component_id?: string | undefined;
940
+ subcircuit_id?: string | undefined;
941
+ pcb_group_id?: string | undefined;
942
+ port_hints?: string[] | undefined;
943
+ pcb_port_id?: string | undefined;
888
944
  } | {
889
945
  x: number;
890
946
  y: number;
@@ -1547,6 +1603,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1547
1603
  model_stl_url?: string | undefined;
1548
1604
  model_3mf_url?: string | undefined;
1549
1605
  model_jscad?: any;
1606
+ } | {
1607
+ type: "simulation_voltage_source";
1608
+ voltage: number;
1609
+ simulation_voltage_source_id: string;
1610
+ positive_source_port_id: string;
1611
+ negative_source_port_id: string;
1550
1612
  })[]>;
1551
1613
 
1552
1614
  declare const runTscircuitModule: (module: string, opts?: {
@@ -1860,6 +1922,16 @@ declare const runTscircuitModule: (module: string, opts?: {
1860
1922
  x?: number | undefined;
1861
1923
  y?: number | undefined;
1862
1924
  } | undefined;
1925
+ } | {
1926
+ message: string;
1927
+ type: "source_trace_not_connected";
1928
+ error_type: "source_trace_not_connected";
1929
+ source_trace_not_connected_id: string;
1930
+ subcircuit_id?: string | undefined;
1931
+ source_trace_id?: string | undefined;
1932
+ source_group_id?: string | undefined;
1933
+ connected_source_port_ids?: string[] | undefined;
1934
+ selectors_not_found?: string[] | undefined;
1863
1935
  } | {
1864
1936
  type: "source_net";
1865
1937
  name: string;
@@ -2111,6 +2183,16 @@ declare const runTscircuitModule: (module: string, opts?: {
2111
2183
  software_used_string?: string | undefined;
2112
2184
  project_url?: string | undefined;
2113
2185
  created_at?: string | undefined;
2186
+ } | {
2187
+ message: string;
2188
+ type: "source_trace_not_connected";
2189
+ error_type: "source_trace_not_connected";
2190
+ source_trace_not_connected_id: string;
2191
+ subcircuit_id?: string | undefined;
2192
+ source_trace_id?: string | undefined;
2193
+ source_group_id?: string | undefined;
2194
+ connected_source_port_ids?: string[] | undefined;
2195
+ selectors_not_found?: string[] | undefined;
2114
2196
  } | {
2115
2197
  type: "pcb_component";
2116
2198
  width: number;
@@ -2226,6 +2308,26 @@ declare const runTscircuitModule: (module: string, opts?: {
2226
2308
  pcb_group_id?: string | undefined;
2227
2309
  port_hints?: string[] | undefined;
2228
2310
  pcb_port_id?: string | undefined;
2311
+ } | {
2312
+ x: number;
2313
+ y: number;
2314
+ type: "pcb_plated_hole";
2315
+ hole_shape: "rotated_pill";
2316
+ hole_width: number;
2317
+ hole_height: number;
2318
+ shape: "rotated_pill_hole_with_rect_pad";
2319
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
2320
+ pcb_plated_hole_id: string;
2321
+ pad_shape: "rect";
2322
+ rect_pad_width: number;
2323
+ rect_pad_height: number;
2324
+ hole_ccw_rotation: number;
2325
+ rect_ccw_rotation: number;
2326
+ pcb_component_id?: string | undefined;
2327
+ subcircuit_id?: string | undefined;
2328
+ pcb_group_id?: string | undefined;
2329
+ port_hints?: string[] | undefined;
2330
+ pcb_port_id?: string | undefined;
2229
2331
  } | {
2230
2332
  type: "pcb_keepout";
2231
2333
  width: number;
@@ -2361,6 +2463,22 @@ declare const runTscircuitModule: (module: string, opts?: {
2361
2463
  pcb_group_id?: string | undefined;
2362
2464
  port_hints?: string[] | undefined;
2363
2465
  pcb_port_id?: string | undefined;
2466
+ } | {
2467
+ x: number;
2468
+ y: number;
2469
+ type: "pcb_smtpad";
2470
+ width: number;
2471
+ height: number;
2472
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2473
+ shape: "rotated_pill";
2474
+ pcb_smtpad_id: string;
2475
+ radius: number;
2476
+ ccw_rotation: number;
2477
+ pcb_component_id?: string | undefined;
2478
+ subcircuit_id?: string | undefined;
2479
+ pcb_group_id?: string | undefined;
2480
+ port_hints?: string[] | undefined;
2481
+ pcb_port_id?: string | undefined;
2364
2482
  } | {
2365
2483
  x: number;
2366
2484
  y: number;
@@ -3023,6 +3141,12 @@ declare const runTscircuitModule: (module: string, opts?: {
3023
3141
  model_stl_url?: string | undefined;
3024
3142
  model_3mf_url?: string | undefined;
3025
3143
  model_jscad?: any;
3144
+ } | {
3145
+ type: "simulation_voltage_source";
3146
+ voltage: number;
3147
+ simulation_voltage_source_id: string;
3148
+ positive_source_port_id: string;
3149
+ negative_source_port_id: string;
3026
3150
  })[]>;
3027
3151
 
3028
3152
  export { CircuitRunner, runTscircuitCode, runTscircuitModule };
@@ -398,6 +398,16 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
398
398
  x?: number | undefined;
399
399
  y?: number | undefined;
400
400
  } | undefined;
401
+ } | {
402
+ message: string;
403
+ type: "source_trace_not_connected";
404
+ error_type: "source_trace_not_connected";
405
+ source_trace_not_connected_id: string;
406
+ subcircuit_id?: string | undefined;
407
+ source_trace_id?: string | undefined;
408
+ source_group_id?: string | undefined;
409
+ connected_source_port_ids?: string[] | undefined;
410
+ selectors_not_found?: string[] | undefined;
401
411
  } | {
402
412
  type: "source_net";
403
413
  name: string;
@@ -649,6 +659,16 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
649
659
  software_used_string?: string | undefined;
650
660
  project_url?: string | undefined;
651
661
  created_at?: string | undefined;
662
+ } | {
663
+ message: string;
664
+ type: "source_trace_not_connected";
665
+ error_type: "source_trace_not_connected";
666
+ source_trace_not_connected_id: string;
667
+ subcircuit_id?: string | undefined;
668
+ source_trace_id?: string | undefined;
669
+ source_group_id?: string | undefined;
670
+ connected_source_port_ids?: string[] | undefined;
671
+ selectors_not_found?: string[] | undefined;
652
672
  } | {
653
673
  type: "pcb_component";
654
674
  width: number;
@@ -764,6 +784,26 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
764
784
  pcb_group_id?: string | undefined;
765
785
  port_hints?: string[] | undefined;
766
786
  pcb_port_id?: string | undefined;
787
+ } | {
788
+ x: number;
789
+ y: number;
790
+ type: "pcb_plated_hole";
791
+ hole_shape: "rotated_pill";
792
+ hole_width: number;
793
+ hole_height: number;
794
+ shape: "rotated_pill_hole_with_rect_pad";
795
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
796
+ pcb_plated_hole_id: string;
797
+ pad_shape: "rect";
798
+ rect_pad_width: number;
799
+ rect_pad_height: number;
800
+ hole_ccw_rotation: number;
801
+ rect_ccw_rotation: number;
802
+ pcb_component_id?: string | undefined;
803
+ subcircuit_id?: string | undefined;
804
+ pcb_group_id?: string | undefined;
805
+ port_hints?: string[] | undefined;
806
+ pcb_port_id?: string | undefined;
767
807
  } | {
768
808
  type: "pcb_keepout";
769
809
  width: number;
@@ -899,6 +939,22 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
899
939
  pcb_group_id?: string | undefined;
900
940
  port_hints?: string[] | undefined;
901
941
  pcb_port_id?: string | undefined;
942
+ } | {
943
+ x: number;
944
+ y: number;
945
+ type: "pcb_smtpad";
946
+ width: number;
947
+ height: number;
948
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
949
+ shape: "rotated_pill";
950
+ pcb_smtpad_id: string;
951
+ radius: number;
952
+ ccw_rotation: number;
953
+ pcb_component_id?: string | undefined;
954
+ subcircuit_id?: string | undefined;
955
+ pcb_group_id?: string | undefined;
956
+ port_hints?: string[] | undefined;
957
+ pcb_port_id?: string | undefined;
902
958
  } | {
903
959
  x: number;
904
960
  y: number;
@@ -1561,6 +1617,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1561
1617
  model_stl_url?: string | undefined;
1562
1618
  model_3mf_url?: string | undefined;
1563
1619
  model_jscad?: any;
1620
+ } | {
1621
+ type: "simulation_voltage_source";
1622
+ voltage: number;
1623
+ simulation_voltage_source_id: string;
1624
+ positive_source_port_id: string;
1625
+ negative_source_port_id: string;
1564
1626
  })[]>;
1565
1627
 
1566
1628
  declare const runTscircuitModule: (module: string, opts?: {
@@ -1874,6 +1936,16 @@ declare const runTscircuitModule: (module: string, opts?: {
1874
1936
  x?: number | undefined;
1875
1937
  y?: number | undefined;
1876
1938
  } | undefined;
1939
+ } | {
1940
+ message: string;
1941
+ type: "source_trace_not_connected";
1942
+ error_type: "source_trace_not_connected";
1943
+ source_trace_not_connected_id: string;
1944
+ subcircuit_id?: string | undefined;
1945
+ source_trace_id?: string | undefined;
1946
+ source_group_id?: string | undefined;
1947
+ connected_source_port_ids?: string[] | undefined;
1948
+ selectors_not_found?: string[] | undefined;
1877
1949
  } | {
1878
1950
  type: "source_net";
1879
1951
  name: string;
@@ -2125,6 +2197,16 @@ declare const runTscircuitModule: (module: string, opts?: {
2125
2197
  software_used_string?: string | undefined;
2126
2198
  project_url?: string | undefined;
2127
2199
  created_at?: string | undefined;
2200
+ } | {
2201
+ message: string;
2202
+ type: "source_trace_not_connected";
2203
+ error_type: "source_trace_not_connected";
2204
+ source_trace_not_connected_id: string;
2205
+ subcircuit_id?: string | undefined;
2206
+ source_trace_id?: string | undefined;
2207
+ source_group_id?: string | undefined;
2208
+ connected_source_port_ids?: string[] | undefined;
2209
+ selectors_not_found?: string[] | undefined;
2128
2210
  } | {
2129
2211
  type: "pcb_component";
2130
2212
  width: number;
@@ -2240,6 +2322,26 @@ declare const runTscircuitModule: (module: string, opts?: {
2240
2322
  pcb_group_id?: string | undefined;
2241
2323
  port_hints?: string[] | undefined;
2242
2324
  pcb_port_id?: string | undefined;
2325
+ } | {
2326
+ x: number;
2327
+ y: number;
2328
+ type: "pcb_plated_hole";
2329
+ hole_shape: "rotated_pill";
2330
+ hole_width: number;
2331
+ hole_height: number;
2332
+ shape: "rotated_pill_hole_with_rect_pad";
2333
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
2334
+ pcb_plated_hole_id: string;
2335
+ pad_shape: "rect";
2336
+ rect_pad_width: number;
2337
+ rect_pad_height: number;
2338
+ hole_ccw_rotation: number;
2339
+ rect_ccw_rotation: number;
2340
+ pcb_component_id?: string | undefined;
2341
+ subcircuit_id?: string | undefined;
2342
+ pcb_group_id?: string | undefined;
2343
+ port_hints?: string[] | undefined;
2344
+ pcb_port_id?: string | undefined;
2243
2345
  } | {
2244
2346
  type: "pcb_keepout";
2245
2347
  width: number;
@@ -2375,6 +2477,22 @@ declare const runTscircuitModule: (module: string, opts?: {
2375
2477
  pcb_group_id?: string | undefined;
2376
2478
  port_hints?: string[] | undefined;
2377
2479
  pcb_port_id?: string | undefined;
2480
+ } | {
2481
+ x: number;
2482
+ y: number;
2483
+ type: "pcb_smtpad";
2484
+ width: number;
2485
+ height: number;
2486
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2487
+ shape: "rotated_pill";
2488
+ pcb_smtpad_id: string;
2489
+ radius: number;
2490
+ ccw_rotation: number;
2491
+ pcb_component_id?: string | undefined;
2492
+ subcircuit_id?: string | undefined;
2493
+ pcb_group_id?: string | undefined;
2494
+ port_hints?: string[] | undefined;
2495
+ pcb_port_id?: string | undefined;
2378
2496
  } | {
2379
2497
  x: number;
2380
2498
  y: number;
@@ -3037,6 +3155,12 @@ declare const runTscircuitModule: (module: string, opts?: {
3037
3155
  model_stl_url?: string | undefined;
3038
3156
  model_3mf_url?: string | undefined;
3039
3157
  model_jscad?: any;
3158
+ } | {
3159
+ type: "simulation_voltage_source";
3160
+ voltage: number;
3161
+ simulation_voltage_source_id: string;
3162
+ positive_source_port_id: string;
3163
+ negative_source_port_id: string;
3040
3164
  })[]>;
3041
3165
 
3042
3166
  declare const getImportsFromCode: (code: string) => string[];