@tscircuit/eval 0.0.401 → 0.0.403

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.
@@ -78,6 +78,8 @@ interface ExecutionContext extends WebWorkerConfiguration {
78
78
  circuit: RootCircuit;
79
79
  logger: StoredLogger;
80
80
  tsConfig: TsConfig | null;
81
+ importStack: string[];
82
+ currentlyImporting: Set<string>;
81
83
  }
82
84
  declare function createExecutionContext(webWorkerConfiguration: WebWorkerConfiguration, opts?: {
83
85
  name?: string;
@@ -1079,6 +1081,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1079
1081
  pcb_port_id?: string | undefined;
1080
1082
  rect_border_radius?: number | undefined;
1081
1083
  is_covered_with_solder_mask?: boolean | undefined;
1084
+ corner_radius?: number | undefined;
1082
1085
  } | {
1083
1086
  x: number;
1084
1087
  y: number;
@@ -1096,6 +1099,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1096
1099
  pcb_port_id?: string | undefined;
1097
1100
  rect_border_radius?: number | undefined;
1098
1101
  is_covered_with_solder_mask?: boolean | undefined;
1102
+ corner_radius?: number | undefined;
1099
1103
  } | {
1100
1104
  x: number;
1101
1105
  y: number;
@@ -1243,6 +1247,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1243
1247
  name?: string | undefined;
1244
1248
  subcircuit_id?: string | undefined;
1245
1249
  is_subcircuit?: boolean | undefined;
1250
+ anchor_position?: {
1251
+ x: number;
1252
+ y: number;
1253
+ } | undefined;
1254
+ anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
1246
1255
  layout_mode?: string | undefined;
1247
1256
  autorouter_configuration?: {
1248
1257
  trace_clearance: number;
@@ -1466,11 +1475,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1466
1475
  font: "tscircuit2024";
1467
1476
  font_size: number;
1468
1477
  pcb_fabrication_note_dimension_id: string;
1469
- from: string | {
1478
+ from: {
1470
1479
  x: number;
1471
1480
  y: number;
1472
1481
  };
1473
- to: string | {
1482
+ to: {
1474
1483
  x: number;
1475
1484
  y: number;
1476
1485
  };
@@ -1714,6 +1723,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1714
1723
  };
1715
1724
  source_component_id?: string | undefined;
1716
1725
  subcircuit_id?: string | undefined;
1726
+ } | {
1727
+ message: string;
1728
+ type: "pcb_component_invalid_layer_error";
1729
+ source_component_id: string;
1730
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1731
+ error_type: "pcb_component_invalid_layer_error";
1732
+ pcb_component_invalid_layer_error_id: string;
1733
+ pcb_component_id?: string | undefined;
1734
+ subcircuit_id?: string | undefined;
1717
1735
  } | {
1718
1736
  type: "pcb_courtyard_rect";
1719
1737
  width: number;
@@ -2144,6 +2162,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2144
2162
  subcircuit_connectivity_map_key?: string | undefined;
2145
2163
  schematic_voltage_probe_id?: string | undefined;
2146
2164
  timestamps_ms?: number[] | undefined;
2165
+ simulation_voltage_probe_id?: string | undefined;
2147
2166
  } | {
2148
2167
  type: "simulation_switch";
2149
2168
  simulation_switch_id: string;
@@ -3123,6 +3142,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3123
3142
  pcb_port_id?: string | undefined;
3124
3143
  rect_border_radius?: number | undefined;
3125
3144
  is_covered_with_solder_mask?: boolean | undefined;
3145
+ corner_radius?: number | undefined;
3126
3146
  } | {
3127
3147
  x: number;
3128
3148
  y: number;
@@ -3140,6 +3160,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3140
3160
  pcb_port_id?: string | undefined;
3141
3161
  rect_border_radius?: number | undefined;
3142
3162
  is_covered_with_solder_mask?: boolean | undefined;
3163
+ corner_radius?: number | undefined;
3143
3164
  } | {
3144
3165
  x: number;
3145
3166
  y: number;
@@ -3287,6 +3308,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3287
3308
  name?: string | undefined;
3288
3309
  subcircuit_id?: string | undefined;
3289
3310
  is_subcircuit?: boolean | undefined;
3311
+ anchor_position?: {
3312
+ x: number;
3313
+ y: number;
3314
+ } | undefined;
3315
+ anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
3290
3316
  layout_mode?: string | undefined;
3291
3317
  autorouter_configuration?: {
3292
3318
  trace_clearance: number;
@@ -3510,11 +3536,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3510
3536
  font: "tscircuit2024";
3511
3537
  font_size: number;
3512
3538
  pcb_fabrication_note_dimension_id: string;
3513
- from: string | {
3539
+ from: {
3514
3540
  x: number;
3515
3541
  y: number;
3516
3542
  };
3517
- to: string | {
3543
+ to: {
3518
3544
  x: number;
3519
3545
  y: number;
3520
3546
  };
@@ -3758,6 +3784,15 @@ declare const runTscircuitModule: (module: string, opts?: {
3758
3784
  };
3759
3785
  source_component_id?: string | undefined;
3760
3786
  subcircuit_id?: string | undefined;
3787
+ } | {
3788
+ message: string;
3789
+ type: "pcb_component_invalid_layer_error";
3790
+ source_component_id: string;
3791
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3792
+ error_type: "pcb_component_invalid_layer_error";
3793
+ pcb_component_invalid_layer_error_id: string;
3794
+ pcb_component_id?: string | undefined;
3795
+ subcircuit_id?: string | undefined;
3761
3796
  } | {
3762
3797
  type: "pcb_courtyard_rect";
3763
3798
  width: number;
@@ -4188,6 +4223,7 @@ declare const runTscircuitModule: (module: string, opts?: {
4188
4223
  subcircuit_connectivity_map_key?: string | undefined;
4189
4224
  schematic_voltage_probe_id?: string | undefined;
4190
4225
  timestamps_ms?: number[] | undefined;
4226
+ simulation_voltage_probe_id?: string | undefined;
4191
4227
  } | {
4192
4228
  type: "simulation_switch";
4193
4229
  simulation_switch_id: string;