@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.
@@ -94,6 +94,8 @@ interface ExecutionContext extends WebWorkerConfiguration {
94
94
  circuit: RootCircuit;
95
95
  logger: StoredLogger;
96
96
  tsConfig: TsConfig | null;
97
+ importStack: string[];
98
+ currentlyImporting: Set<string>;
97
99
  }
98
100
  declare function createExecutionContext(webWorkerConfiguration: WebWorkerConfiguration, opts?: {
99
101
  name?: string;
@@ -1095,6 +1097,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1095
1097
  pcb_port_id?: string | undefined;
1096
1098
  rect_border_radius?: number | undefined;
1097
1099
  is_covered_with_solder_mask?: boolean | undefined;
1100
+ corner_radius?: number | undefined;
1098
1101
  } | {
1099
1102
  x: number;
1100
1103
  y: number;
@@ -1112,6 +1115,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1112
1115
  pcb_port_id?: string | undefined;
1113
1116
  rect_border_radius?: number | undefined;
1114
1117
  is_covered_with_solder_mask?: boolean | undefined;
1118
+ corner_radius?: number | undefined;
1115
1119
  } | {
1116
1120
  x: number;
1117
1121
  y: number;
@@ -1259,6 +1263,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1259
1263
  name?: string | undefined;
1260
1264
  subcircuit_id?: string | undefined;
1261
1265
  is_subcircuit?: boolean | undefined;
1266
+ anchor_position?: {
1267
+ x: number;
1268
+ y: number;
1269
+ } | undefined;
1270
+ anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
1262
1271
  layout_mode?: string | undefined;
1263
1272
  autorouter_configuration?: {
1264
1273
  trace_clearance: number;
@@ -1482,11 +1491,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1482
1491
  font: "tscircuit2024";
1483
1492
  font_size: number;
1484
1493
  pcb_fabrication_note_dimension_id: string;
1485
- from: string | {
1494
+ from: {
1486
1495
  x: number;
1487
1496
  y: number;
1488
1497
  };
1489
- to: string | {
1498
+ to: {
1490
1499
  x: number;
1491
1500
  y: number;
1492
1501
  };
@@ -1730,6 +1739,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1730
1739
  };
1731
1740
  source_component_id?: string | undefined;
1732
1741
  subcircuit_id?: string | undefined;
1742
+ } | {
1743
+ message: string;
1744
+ type: "pcb_component_invalid_layer_error";
1745
+ source_component_id: string;
1746
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1747
+ error_type: "pcb_component_invalid_layer_error";
1748
+ pcb_component_invalid_layer_error_id: string;
1749
+ pcb_component_id?: string | undefined;
1750
+ subcircuit_id?: string | undefined;
1733
1751
  } | {
1734
1752
  type: "pcb_courtyard_rect";
1735
1753
  width: number;
@@ -2160,6 +2178,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2160
2178
  subcircuit_connectivity_map_key?: string | undefined;
2161
2179
  schematic_voltage_probe_id?: string | undefined;
2162
2180
  timestamps_ms?: number[] | undefined;
2181
+ simulation_voltage_probe_id?: string | undefined;
2163
2182
  } | {
2164
2183
  type: "simulation_switch";
2165
2184
  simulation_switch_id: string;
@@ -3139,6 +3158,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3139
3158
  pcb_port_id?: string | undefined;
3140
3159
  rect_border_radius?: number | undefined;
3141
3160
  is_covered_with_solder_mask?: boolean | undefined;
3161
+ corner_radius?: number | undefined;
3142
3162
  } | {
3143
3163
  x: number;
3144
3164
  y: number;
@@ -3156,6 +3176,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3156
3176
  pcb_port_id?: string | undefined;
3157
3177
  rect_border_radius?: number | undefined;
3158
3178
  is_covered_with_solder_mask?: boolean | undefined;
3179
+ corner_radius?: number | undefined;
3159
3180
  } | {
3160
3181
  x: number;
3161
3182
  y: number;
@@ -3303,6 +3324,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3303
3324
  name?: string | undefined;
3304
3325
  subcircuit_id?: string | undefined;
3305
3326
  is_subcircuit?: boolean | undefined;
3327
+ anchor_position?: {
3328
+ x: number;
3329
+ y: number;
3330
+ } | undefined;
3331
+ anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
3306
3332
  layout_mode?: string | undefined;
3307
3333
  autorouter_configuration?: {
3308
3334
  trace_clearance: number;
@@ -3526,11 +3552,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3526
3552
  font: "tscircuit2024";
3527
3553
  font_size: number;
3528
3554
  pcb_fabrication_note_dimension_id: string;
3529
- from: string | {
3555
+ from: {
3530
3556
  x: number;
3531
3557
  y: number;
3532
3558
  };
3533
- to: string | {
3559
+ to: {
3534
3560
  x: number;
3535
3561
  y: number;
3536
3562
  };
@@ -3774,6 +3800,15 @@ declare const runTscircuitModule: (module: string, opts?: {
3774
3800
  };
3775
3801
  source_component_id?: string | undefined;
3776
3802
  subcircuit_id?: string | undefined;
3803
+ } | {
3804
+ message: string;
3805
+ type: "pcb_component_invalid_layer_error";
3806
+ source_component_id: string;
3807
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3808
+ error_type: "pcb_component_invalid_layer_error";
3809
+ pcb_component_invalid_layer_error_id: string;
3810
+ pcb_component_id?: string | undefined;
3811
+ subcircuit_id?: string | undefined;
3777
3812
  } | {
3778
3813
  type: "pcb_courtyard_rect";
3779
3814
  width: number;
@@ -4204,6 +4239,7 @@ declare const runTscircuitModule: (module: string, opts?: {
4204
4239
  subcircuit_connectivity_map_key?: string | undefined;
4205
4240
  schematic_voltage_probe_id?: string | undefined;
4206
4241
  timestamps_ms?: number[] | undefined;
4242
+ simulation_voltage_probe_id?: string | undefined;
4207
4243
  } | {
4208
4244
  type: "simulation_switch";
4209
4245
  simulation_switch_id: string;