@tscircuit/eval 0.0.298 → 0.0.300

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.
@@ -104,8 +104,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
104
104
  source_port_id: string;
105
105
  subcircuit_id?: string | undefined;
106
106
  port_hints?: string[] | undefined;
107
- pin_number?: number | undefined;
108
107
  subcircuit_connectivity_map_key?: string | undefined;
108
+ pin_number?: number | undefined;
109
109
  } | {
110
110
  type: "source_component";
111
111
  name: string;
@@ -279,6 +279,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
279
279
  display_value?: string | undefined;
280
280
  are_pins_interchangeable?: boolean | undefined;
281
281
  internally_connected_source_port_ids?: string[][] | undefined;
282
+ } | {
283
+ type: "source_component";
284
+ name: string;
285
+ source_component_id: string;
286
+ ftype: "simple_pinout";
287
+ subcircuit_id?: string | undefined;
288
+ source_group_id?: string | undefined;
289
+ manufacturer_part_number?: string | undefined;
290
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
291
+ display_value?: string | undefined;
292
+ are_pins_interchangeable?: boolean | undefined;
293
+ internally_connected_source_port_ids?: string[][] | undefined;
282
294
  } | {
283
295
  type: "source_component";
284
296
  name: string;
@@ -433,6 +445,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
433
445
  is_ground?: boolean | undefined;
434
446
  is_digital_signal?: boolean | undefined;
435
447
  is_analog_signal?: boolean | undefined;
448
+ is_positive_voltage_source?: boolean | undefined;
436
449
  } | {
437
450
  type: "source_group";
438
451
  source_group_id: string;
@@ -563,6 +576,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
563
576
  display_value?: string | undefined;
564
577
  are_pins_interchangeable?: boolean | undefined;
565
578
  internally_connected_source_port_ids?: string[][] | undefined;
579
+ } | {
580
+ type: "source_component";
581
+ name: string;
582
+ source_component_id: string;
583
+ ftype: "simple_pinout";
584
+ subcircuit_id?: string | undefined;
585
+ source_group_id?: string | undefined;
586
+ manufacturer_part_number?: string | undefined;
587
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
588
+ display_value?: string | undefined;
589
+ are_pins_interchangeable?: boolean | undefined;
590
+ internally_connected_source_port_ids?: string[][] | undefined;
566
591
  } | {
567
592
  type: "source_component";
568
593
  name: string;
@@ -666,6 +691,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
666
691
  source_net_id: string;
667
692
  source_pcb_ground_plane_id: string;
668
693
  subcircuit_id?: string | undefined;
694
+ } | {
695
+ type: "source_manually_placed_via";
696
+ source_group_id: string;
697
+ source_net_id: string;
698
+ source_manually_placed_via_id: string;
699
+ subcircuit_id?: string | undefined;
700
+ source_trace_id?: string | undefined;
669
701
  } | {
670
702
  type: "source_project_metadata";
671
703
  name?: string | undefined;
@@ -1370,6 +1402,57 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1370
1402
  spoke_outer_diameter: number;
1371
1403
  subcircuit_id?: string | undefined;
1372
1404
  pcb_plated_hole_id?: string | undefined;
1405
+ } | {
1406
+ type: "pcb_copper_pour";
1407
+ width: number;
1408
+ height: number;
1409
+ center: {
1410
+ x: number;
1411
+ y: number;
1412
+ };
1413
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1414
+ shape: "rect";
1415
+ pcb_copper_pour_id: string;
1416
+ rotation?: number | undefined;
1417
+ subcircuit_id?: string | undefined;
1418
+ pcb_group_id?: string | undefined;
1419
+ source_net_id?: string | undefined;
1420
+ } | {
1421
+ type: "pcb_copper_pour";
1422
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1423
+ shape: "brep";
1424
+ pcb_copper_pour_id: string;
1425
+ brep_shape: {
1426
+ outer_ring: {
1427
+ vertices: {
1428
+ x: number;
1429
+ y: number;
1430
+ bulge?: number | undefined;
1431
+ }[];
1432
+ };
1433
+ inner_rings: {
1434
+ vertices: {
1435
+ x: number;
1436
+ y: number;
1437
+ bulge?: number | undefined;
1438
+ }[];
1439
+ }[];
1440
+ };
1441
+ subcircuit_id?: string | undefined;
1442
+ pcb_group_id?: string | undefined;
1443
+ source_net_id?: string | undefined;
1444
+ } | {
1445
+ type: "pcb_copper_pour";
1446
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1447
+ shape: "polygon";
1448
+ points: {
1449
+ x: number;
1450
+ y: number;
1451
+ }[];
1452
+ pcb_copper_pour_id: string;
1453
+ subcircuit_id?: string | undefined;
1454
+ pcb_group_id?: string | undefined;
1455
+ source_net_id?: string | undefined;
1373
1456
  } | {
1374
1457
  x: number;
1375
1458
  y: number;
@@ -1470,7 +1553,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1470
1553
  has_output_arrow?: boolean | undefined;
1471
1554
  } | {
1472
1555
  type: "schematic_trace";
1473
- source_trace_id: string;
1474
1556
  schematic_trace_id: string;
1475
1557
  junctions: {
1476
1558
  x: number;
@@ -1490,6 +1572,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1490
1572
  to_schematic_port_id?: string | undefined;
1491
1573
  }[];
1492
1574
  subcircuit_id?: string | undefined;
1575
+ source_trace_id?: string | undefined;
1576
+ subcircuit_connectivity_map_key?: string | undefined;
1493
1577
  } | {
1494
1578
  type: "schematic_path";
1495
1579
  points: {
@@ -1661,6 +1745,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1661
1745
  model_obj_url?: string | undefined;
1662
1746
  model_stl_url?: string | undefined;
1663
1747
  model_3mf_url?: string | undefined;
1748
+ model_gltf_url?: string | undefined;
1749
+ model_glb_url?: string | undefined;
1750
+ model_step_url?: string | undefined;
1664
1751
  model_jscad?: any;
1665
1752
  } | {
1666
1753
  type: "simulation_voltage_source";
@@ -1707,8 +1794,8 @@ declare const runTscircuitModule: (module: string, opts?: {
1707
1794
  source_port_id: string;
1708
1795
  subcircuit_id?: string | undefined;
1709
1796
  port_hints?: string[] | undefined;
1710
- pin_number?: number | undefined;
1711
1797
  subcircuit_connectivity_map_key?: string | undefined;
1798
+ pin_number?: number | undefined;
1712
1799
  } | {
1713
1800
  type: "source_component";
1714
1801
  name: string;
@@ -1882,6 +1969,18 @@ declare const runTscircuitModule: (module: string, opts?: {
1882
1969
  display_value?: string | undefined;
1883
1970
  are_pins_interchangeable?: boolean | undefined;
1884
1971
  internally_connected_source_port_ids?: string[][] | undefined;
1972
+ } | {
1973
+ type: "source_component";
1974
+ name: string;
1975
+ source_component_id: string;
1976
+ ftype: "simple_pinout";
1977
+ subcircuit_id?: string | undefined;
1978
+ source_group_id?: string | undefined;
1979
+ manufacturer_part_number?: string | undefined;
1980
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
1981
+ display_value?: string | undefined;
1982
+ are_pins_interchangeable?: boolean | undefined;
1983
+ internally_connected_source_port_ids?: string[][] | undefined;
1885
1984
  } | {
1886
1985
  type: "source_component";
1887
1986
  name: string;
@@ -2036,6 +2135,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2036
2135
  is_ground?: boolean | undefined;
2037
2136
  is_digital_signal?: boolean | undefined;
2038
2137
  is_analog_signal?: boolean | undefined;
2138
+ is_positive_voltage_source?: boolean | undefined;
2039
2139
  } | {
2040
2140
  type: "source_group";
2041
2141
  source_group_id: string;
@@ -2166,6 +2266,18 @@ declare const runTscircuitModule: (module: string, opts?: {
2166
2266
  display_value?: string | undefined;
2167
2267
  are_pins_interchangeable?: boolean | undefined;
2168
2268
  internally_connected_source_port_ids?: string[][] | undefined;
2269
+ } | {
2270
+ type: "source_component";
2271
+ name: string;
2272
+ source_component_id: string;
2273
+ ftype: "simple_pinout";
2274
+ subcircuit_id?: string | undefined;
2275
+ source_group_id?: string | undefined;
2276
+ manufacturer_part_number?: string | undefined;
2277
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
2278
+ display_value?: string | undefined;
2279
+ are_pins_interchangeable?: boolean | undefined;
2280
+ internally_connected_source_port_ids?: string[][] | undefined;
2169
2281
  } | {
2170
2282
  type: "source_component";
2171
2283
  name: string;
@@ -2269,6 +2381,13 @@ declare const runTscircuitModule: (module: string, opts?: {
2269
2381
  source_net_id: string;
2270
2382
  source_pcb_ground_plane_id: string;
2271
2383
  subcircuit_id?: string | undefined;
2384
+ } | {
2385
+ type: "source_manually_placed_via";
2386
+ source_group_id: string;
2387
+ source_net_id: string;
2388
+ source_manually_placed_via_id: string;
2389
+ subcircuit_id?: string | undefined;
2390
+ source_trace_id?: string | undefined;
2272
2391
  } | {
2273
2392
  type: "source_project_metadata";
2274
2393
  name?: string | undefined;
@@ -2973,6 +3092,57 @@ declare const runTscircuitModule: (module: string, opts?: {
2973
3092
  spoke_outer_diameter: number;
2974
3093
  subcircuit_id?: string | undefined;
2975
3094
  pcb_plated_hole_id?: string | undefined;
3095
+ } | {
3096
+ type: "pcb_copper_pour";
3097
+ width: number;
3098
+ height: number;
3099
+ center: {
3100
+ x: number;
3101
+ y: number;
3102
+ };
3103
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3104
+ shape: "rect";
3105
+ pcb_copper_pour_id: string;
3106
+ rotation?: number | undefined;
3107
+ subcircuit_id?: string | undefined;
3108
+ pcb_group_id?: string | undefined;
3109
+ source_net_id?: string | undefined;
3110
+ } | {
3111
+ type: "pcb_copper_pour";
3112
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3113
+ shape: "brep";
3114
+ pcb_copper_pour_id: string;
3115
+ brep_shape: {
3116
+ outer_ring: {
3117
+ vertices: {
3118
+ x: number;
3119
+ y: number;
3120
+ bulge?: number | undefined;
3121
+ }[];
3122
+ };
3123
+ inner_rings: {
3124
+ vertices: {
3125
+ x: number;
3126
+ y: number;
3127
+ bulge?: number | undefined;
3128
+ }[];
3129
+ }[];
3130
+ };
3131
+ subcircuit_id?: string | undefined;
3132
+ pcb_group_id?: string | undefined;
3133
+ source_net_id?: string | undefined;
3134
+ } | {
3135
+ type: "pcb_copper_pour";
3136
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3137
+ shape: "polygon";
3138
+ points: {
3139
+ x: number;
3140
+ y: number;
3141
+ }[];
3142
+ pcb_copper_pour_id: string;
3143
+ subcircuit_id?: string | undefined;
3144
+ pcb_group_id?: string | undefined;
3145
+ source_net_id?: string | undefined;
2976
3146
  } | {
2977
3147
  x: number;
2978
3148
  y: number;
@@ -3073,7 +3243,6 @@ declare const runTscircuitModule: (module: string, opts?: {
3073
3243
  has_output_arrow?: boolean | undefined;
3074
3244
  } | {
3075
3245
  type: "schematic_trace";
3076
- source_trace_id: string;
3077
3246
  schematic_trace_id: string;
3078
3247
  junctions: {
3079
3248
  x: number;
@@ -3093,6 +3262,8 @@ declare const runTscircuitModule: (module: string, opts?: {
3093
3262
  to_schematic_port_id?: string | undefined;
3094
3263
  }[];
3095
3264
  subcircuit_id?: string | undefined;
3265
+ source_trace_id?: string | undefined;
3266
+ subcircuit_connectivity_map_key?: string | undefined;
3096
3267
  } | {
3097
3268
  type: "schematic_path";
3098
3269
  points: {
@@ -3264,6 +3435,9 @@ declare const runTscircuitModule: (module: string, opts?: {
3264
3435
  model_obj_url?: string | undefined;
3265
3436
  model_stl_url?: string | undefined;
3266
3437
  model_3mf_url?: string | undefined;
3438
+ model_gltf_url?: string | undefined;
3439
+ model_glb_url?: string | undefined;
3440
+ model_step_url?: string | undefined;
3267
3441
  model_jscad?: any;
3268
3442
  } | {
3269
3443
  type: "simulation_voltage_source";