@tscircuit/eval 0.0.692 → 0.0.694
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.
- package/dist/blob-url.js +1 -1
- package/dist/eval/index.d.ts +82 -4
- package/dist/lib/index.d.ts +82 -4
- package/dist/webworker/entrypoint.js +3 -3
- package/package.json +3 -3
package/dist/eval/index.d.ts
CHANGED
|
@@ -165,8 +165,27 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
165
165
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
166
166
|
source_group_id?: string | undefined;
|
|
167
167
|
pin_number?: number | undefined;
|
|
168
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
169
168
|
must_be_connected?: boolean | undefined;
|
|
169
|
+
provides_power?: boolean | undefined;
|
|
170
|
+
requires_power?: boolean | undefined;
|
|
171
|
+
provides_ground?: boolean | undefined;
|
|
172
|
+
requires_ground?: boolean | undefined;
|
|
173
|
+
provides_voltage?: string | number | undefined;
|
|
174
|
+
requires_voltage?: string | number | undefined;
|
|
175
|
+
do_not_connect?: boolean | undefined;
|
|
176
|
+
include_in_board_pinout?: boolean | undefined;
|
|
177
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
178
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
179
|
+
needs_external_pullup?: boolean | undefined;
|
|
180
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
181
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
182
|
+
needs_external_pulldown?: boolean | undefined;
|
|
183
|
+
can_use_open_drain?: boolean | undefined;
|
|
184
|
+
is_using_open_drain?: boolean | undefined;
|
|
185
|
+
can_use_push_pull?: boolean | undefined;
|
|
186
|
+
is_using_push_pull?: boolean | undefined;
|
|
187
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
188
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
170
189
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
171
190
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
172
191
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -183,6 +202,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
183
202
|
supports_spi_cs?: boolean | undefined;
|
|
184
203
|
supports_uart_tx?: boolean | undefined;
|
|
185
204
|
supports_uart_rx?: boolean | undefined;
|
|
205
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
186
206
|
} | {
|
|
187
207
|
type: "source_component_internal_connection";
|
|
188
208
|
source_component_id: string;
|
|
@@ -1004,6 +1024,14 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1004
1024
|
source_i2c_misconfigured_error_id: string;
|
|
1005
1025
|
source_port_ids: string[];
|
|
1006
1026
|
is_fatal?: boolean | undefined;
|
|
1027
|
+
} | {
|
|
1028
|
+
message: string;
|
|
1029
|
+
type: "source_ambiguous_port_reference";
|
|
1030
|
+
error_type: "source_ambiguous_port_reference";
|
|
1031
|
+
source_ambiguous_port_reference_id: string;
|
|
1032
|
+
source_component_id?: string | undefined;
|
|
1033
|
+
source_port_id?: string | undefined;
|
|
1034
|
+
is_fatal?: boolean | undefined;
|
|
1007
1035
|
} | {
|
|
1008
1036
|
type: "pcb_component";
|
|
1009
1037
|
width: number;
|
|
@@ -1286,6 +1314,17 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1286
1314
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
1287
1315
|
subcircuit_id?: string | undefined;
|
|
1288
1316
|
pcb_group_id?: string | undefined;
|
|
1317
|
+
} | {
|
|
1318
|
+
message: string;
|
|
1319
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
1320
|
+
pcb_component_id: string;
|
|
1321
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
1322
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
1323
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
1324
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
1325
|
+
source_component_id?: string | undefined;
|
|
1326
|
+
subcircuit_id?: string | undefined;
|
|
1327
|
+
pcb_board_id?: string | undefined;
|
|
1289
1328
|
} | {
|
|
1290
1329
|
x: number;
|
|
1291
1330
|
y: number;
|
|
@@ -3933,8 +3972,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
3933
3972
|
source_port_id: string;
|
|
3934
3973
|
schematic_port_id: string;
|
|
3935
3974
|
subcircuit_id?: string | undefined;
|
|
3936
|
-
schematic_component_id?: string | undefined;
|
|
3937
3975
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
3976
|
+
schematic_component_id?: string | undefined;
|
|
3938
3977
|
distance_from_component_edge?: number | undefined;
|
|
3939
3978
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3940
3979
|
true_ccw_index?: number | undefined;
|
|
@@ -4297,8 +4336,27 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4297
4336
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
4298
4337
|
source_group_id?: string | undefined;
|
|
4299
4338
|
pin_number?: number | undefined;
|
|
4300
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
4301
4339
|
must_be_connected?: boolean | undefined;
|
|
4340
|
+
provides_power?: boolean | undefined;
|
|
4341
|
+
requires_power?: boolean | undefined;
|
|
4342
|
+
provides_ground?: boolean | undefined;
|
|
4343
|
+
requires_ground?: boolean | undefined;
|
|
4344
|
+
provides_voltage?: string | number | undefined;
|
|
4345
|
+
requires_voltage?: string | number | undefined;
|
|
4346
|
+
do_not_connect?: boolean | undefined;
|
|
4347
|
+
include_in_board_pinout?: boolean | undefined;
|
|
4348
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
4349
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
4350
|
+
needs_external_pullup?: boolean | undefined;
|
|
4351
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
4352
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
4353
|
+
needs_external_pulldown?: boolean | undefined;
|
|
4354
|
+
can_use_open_drain?: boolean | undefined;
|
|
4355
|
+
is_using_open_drain?: boolean | undefined;
|
|
4356
|
+
can_use_push_pull?: boolean | undefined;
|
|
4357
|
+
is_using_push_pull?: boolean | undefined;
|
|
4358
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
4359
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
4302
4360
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
4303
4361
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
4304
4362
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -4315,6 +4373,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4315
4373
|
supports_spi_cs?: boolean | undefined;
|
|
4316
4374
|
supports_uart_tx?: boolean | undefined;
|
|
4317
4375
|
supports_uart_rx?: boolean | undefined;
|
|
4376
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
4318
4377
|
} | {
|
|
4319
4378
|
type: "source_component_internal_connection";
|
|
4320
4379
|
source_component_id: string;
|
|
@@ -5136,6 +5195,14 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5136
5195
|
source_i2c_misconfigured_error_id: string;
|
|
5137
5196
|
source_port_ids: string[];
|
|
5138
5197
|
is_fatal?: boolean | undefined;
|
|
5198
|
+
} | {
|
|
5199
|
+
message: string;
|
|
5200
|
+
type: "source_ambiguous_port_reference";
|
|
5201
|
+
error_type: "source_ambiguous_port_reference";
|
|
5202
|
+
source_ambiguous_port_reference_id: string;
|
|
5203
|
+
source_component_id?: string | undefined;
|
|
5204
|
+
source_port_id?: string | undefined;
|
|
5205
|
+
is_fatal?: boolean | undefined;
|
|
5139
5206
|
} | {
|
|
5140
5207
|
type: "pcb_component";
|
|
5141
5208
|
width: number;
|
|
@@ -5418,6 +5485,17 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5418
5485
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
5419
5486
|
subcircuit_id?: string | undefined;
|
|
5420
5487
|
pcb_group_id?: string | undefined;
|
|
5488
|
+
} | {
|
|
5489
|
+
message: string;
|
|
5490
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
5491
|
+
pcb_component_id: string;
|
|
5492
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
5493
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
5494
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
5495
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
5496
|
+
source_component_id?: string | undefined;
|
|
5497
|
+
subcircuit_id?: string | undefined;
|
|
5498
|
+
pcb_board_id?: string | undefined;
|
|
5421
5499
|
} | {
|
|
5422
5500
|
x: number;
|
|
5423
5501
|
y: number;
|
|
@@ -8065,8 +8143,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8065
8143
|
source_port_id: string;
|
|
8066
8144
|
schematic_port_id: string;
|
|
8067
8145
|
subcircuit_id?: string | undefined;
|
|
8068
|
-
schematic_component_id?: string | undefined;
|
|
8069
8146
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
8147
|
+
schematic_component_id?: string | undefined;
|
|
8070
8148
|
distance_from_component_edge?: number | undefined;
|
|
8071
8149
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
8072
8150
|
true_ccw_index?: number | undefined;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -181,8 +181,27 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
181
181
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
182
182
|
source_group_id?: string | undefined;
|
|
183
183
|
pin_number?: number | undefined;
|
|
184
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
185
184
|
must_be_connected?: boolean | undefined;
|
|
185
|
+
provides_power?: boolean | undefined;
|
|
186
|
+
requires_power?: boolean | undefined;
|
|
187
|
+
provides_ground?: boolean | undefined;
|
|
188
|
+
requires_ground?: boolean | undefined;
|
|
189
|
+
provides_voltage?: string | number | undefined;
|
|
190
|
+
requires_voltage?: string | number | undefined;
|
|
191
|
+
do_not_connect?: boolean | undefined;
|
|
192
|
+
include_in_board_pinout?: boolean | undefined;
|
|
193
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
194
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
195
|
+
needs_external_pullup?: boolean | undefined;
|
|
196
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
197
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
198
|
+
needs_external_pulldown?: boolean | undefined;
|
|
199
|
+
can_use_open_drain?: boolean | undefined;
|
|
200
|
+
is_using_open_drain?: boolean | undefined;
|
|
201
|
+
can_use_push_pull?: boolean | undefined;
|
|
202
|
+
is_using_push_pull?: boolean | undefined;
|
|
203
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
204
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
186
205
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
187
206
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
188
207
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -199,6 +218,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
199
218
|
supports_spi_cs?: boolean | undefined;
|
|
200
219
|
supports_uart_tx?: boolean | undefined;
|
|
201
220
|
supports_uart_rx?: boolean | undefined;
|
|
221
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
202
222
|
} | {
|
|
203
223
|
type: "source_component_internal_connection";
|
|
204
224
|
source_component_id: string;
|
|
@@ -1020,6 +1040,14 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1020
1040
|
source_i2c_misconfigured_error_id: string;
|
|
1021
1041
|
source_port_ids: string[];
|
|
1022
1042
|
is_fatal?: boolean | undefined;
|
|
1043
|
+
} | {
|
|
1044
|
+
message: string;
|
|
1045
|
+
type: "source_ambiguous_port_reference";
|
|
1046
|
+
error_type: "source_ambiguous_port_reference";
|
|
1047
|
+
source_ambiguous_port_reference_id: string;
|
|
1048
|
+
source_component_id?: string | undefined;
|
|
1049
|
+
source_port_id?: string | undefined;
|
|
1050
|
+
is_fatal?: boolean | undefined;
|
|
1023
1051
|
} | {
|
|
1024
1052
|
type: "pcb_component";
|
|
1025
1053
|
width: number;
|
|
@@ -1302,6 +1330,17 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1302
1330
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
1303
1331
|
subcircuit_id?: string | undefined;
|
|
1304
1332
|
pcb_group_id?: string | undefined;
|
|
1333
|
+
} | {
|
|
1334
|
+
message: string;
|
|
1335
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
1336
|
+
pcb_component_id: string;
|
|
1337
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
1338
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
1339
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
1340
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
1341
|
+
source_component_id?: string | undefined;
|
|
1342
|
+
subcircuit_id?: string | undefined;
|
|
1343
|
+
pcb_board_id?: string | undefined;
|
|
1305
1344
|
} | {
|
|
1306
1345
|
x: number;
|
|
1307
1346
|
y: number;
|
|
@@ -3949,8 +3988,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
3949
3988
|
source_port_id: string;
|
|
3950
3989
|
schematic_port_id: string;
|
|
3951
3990
|
subcircuit_id?: string | undefined;
|
|
3952
|
-
schematic_component_id?: string | undefined;
|
|
3953
3991
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
3992
|
+
schematic_component_id?: string | undefined;
|
|
3954
3993
|
distance_from_component_edge?: number | undefined;
|
|
3955
3994
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3956
3995
|
true_ccw_index?: number | undefined;
|
|
@@ -4313,8 +4352,27 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4313
4352
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
4314
4353
|
source_group_id?: string | undefined;
|
|
4315
4354
|
pin_number?: number | undefined;
|
|
4316
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
4317
4355
|
must_be_connected?: boolean | undefined;
|
|
4356
|
+
provides_power?: boolean | undefined;
|
|
4357
|
+
requires_power?: boolean | undefined;
|
|
4358
|
+
provides_ground?: boolean | undefined;
|
|
4359
|
+
requires_ground?: boolean | undefined;
|
|
4360
|
+
provides_voltage?: string | number | undefined;
|
|
4361
|
+
requires_voltage?: string | number | undefined;
|
|
4362
|
+
do_not_connect?: boolean | undefined;
|
|
4363
|
+
include_in_board_pinout?: boolean | undefined;
|
|
4364
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
4365
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
4366
|
+
needs_external_pullup?: boolean | undefined;
|
|
4367
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
4368
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
4369
|
+
needs_external_pulldown?: boolean | undefined;
|
|
4370
|
+
can_use_open_drain?: boolean | undefined;
|
|
4371
|
+
is_using_open_drain?: boolean | undefined;
|
|
4372
|
+
can_use_push_pull?: boolean | undefined;
|
|
4373
|
+
is_using_push_pull?: boolean | undefined;
|
|
4374
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
4375
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
4318
4376
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
4319
4377
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
4320
4378
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -4331,6 +4389,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4331
4389
|
supports_spi_cs?: boolean | undefined;
|
|
4332
4390
|
supports_uart_tx?: boolean | undefined;
|
|
4333
4391
|
supports_uart_rx?: boolean | undefined;
|
|
4392
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
4334
4393
|
} | {
|
|
4335
4394
|
type: "source_component_internal_connection";
|
|
4336
4395
|
source_component_id: string;
|
|
@@ -5152,6 +5211,14 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5152
5211
|
source_i2c_misconfigured_error_id: string;
|
|
5153
5212
|
source_port_ids: string[];
|
|
5154
5213
|
is_fatal?: boolean | undefined;
|
|
5214
|
+
} | {
|
|
5215
|
+
message: string;
|
|
5216
|
+
type: "source_ambiguous_port_reference";
|
|
5217
|
+
error_type: "source_ambiguous_port_reference";
|
|
5218
|
+
source_ambiguous_port_reference_id: string;
|
|
5219
|
+
source_component_id?: string | undefined;
|
|
5220
|
+
source_port_id?: string | undefined;
|
|
5221
|
+
is_fatal?: boolean | undefined;
|
|
5155
5222
|
} | {
|
|
5156
5223
|
type: "pcb_component";
|
|
5157
5224
|
width: number;
|
|
@@ -5434,6 +5501,17 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5434
5501
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
5435
5502
|
subcircuit_id?: string | undefined;
|
|
5436
5503
|
pcb_group_id?: string | undefined;
|
|
5504
|
+
} | {
|
|
5505
|
+
message: string;
|
|
5506
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
5507
|
+
pcb_component_id: string;
|
|
5508
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
5509
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
5510
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
5511
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
5512
|
+
source_component_id?: string | undefined;
|
|
5513
|
+
subcircuit_id?: string | undefined;
|
|
5514
|
+
pcb_board_id?: string | undefined;
|
|
5437
5515
|
} | {
|
|
5438
5516
|
x: number;
|
|
5439
5517
|
y: number;
|
|
@@ -8081,8 +8159,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8081
8159
|
source_port_id: string;
|
|
8082
8160
|
schematic_port_id: string;
|
|
8083
8161
|
subcircuit_id?: string | undefined;
|
|
8084
|
-
schematic_component_id?: string | undefined;
|
|
8085
8162
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
8163
|
+
schematic_component_id?: string | undefined;
|
|
8086
8164
|
distance_from_component_edge?: number | undefined;
|
|
8087
8165
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
8088
8166
|
true_ccw_index?: number | undefined;
|