@tscircuit/cli 0.1.1739 → 0.1.1740
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/cli/build/build.worker.js +15 -9
- package/dist/cli/main.js +659 -283
- package/dist/cli/snapshot/snapshot.worker.js +15 -9
- package/dist/lib/index.js +8 -7
- package/package.json +8 -7
|
@@ -3809,20 +3809,26 @@ function getPlatformConfigWithCliDefaults(userConfig) {
|
|
|
3809
3809
|
import {
|
|
3810
3810
|
convertCircuitJsonToSchematicSimulationSvg,
|
|
3811
3811
|
convertCircuitJsonToSimulationGraphSvg,
|
|
3812
|
-
isSimulationExperiment
|
|
3813
|
-
isSimulationTransientVoltageGraph
|
|
3812
|
+
isSimulationExperiment
|
|
3814
3813
|
} from "circuit-to-svg";
|
|
3815
|
-
var
|
|
3814
|
+
var SIMULATION_ANALYSIS_RESULT_TYPES = new Set([
|
|
3815
|
+
"simulation_transient_voltage_graph",
|
|
3816
|
+
"simulation_transient_current_graph",
|
|
3817
|
+
"simulation_dc_operating_point_voltage",
|
|
3818
|
+
"simulation_dc_operating_point_current",
|
|
3819
|
+
"simulation_dc_sweep_voltage_graph",
|
|
3820
|
+
"simulation_dc_sweep_current_graph",
|
|
3821
|
+
"simulation_ac_sweep_voltage_graph",
|
|
3822
|
+
"simulation_ac_sweep_current_graph"
|
|
3823
|
+
]);
|
|
3824
|
+
var isSimulationAnalysisResult = (element) => SIMULATION_ANALYSIS_RESULT_TYPES.has(element.type);
|
|
3816
3825
|
var getSimulationSvgInputs = (circuitJson, simulationExperimentId) => {
|
|
3817
|
-
const
|
|
3818
|
-
|
|
3819
|
-
if (simulationTransientCurrentGraphIds.length === 0 && simulationTransientVoltageGraphIds.length === 0) {
|
|
3826
|
+
const hasAnalysisResult = circuitJson.some((element) => isSimulationAnalysisResult(element) && element.simulation_experiment_id === simulationExperimentId);
|
|
3827
|
+
if (!hasAnalysisResult) {
|
|
3820
3828
|
return;
|
|
3821
3829
|
}
|
|
3822
3830
|
return {
|
|
3823
|
-
simulation_experiment_id: simulationExperimentId
|
|
3824
|
-
simulation_transient_current_graph_ids: simulationTransientCurrentGraphIds,
|
|
3825
|
-
simulation_transient_voltage_graph_ids: simulationTransientVoltageGraphIds
|
|
3831
|
+
simulation_experiment_id: simulationExperimentId
|
|
3826
3832
|
};
|
|
3827
3833
|
};
|
|
3828
3834
|
var toFileNameSuffix = (value) => value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
package/dist/lib/index.js
CHANGED
|
@@ -65757,7 +65757,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
65757
65757
|
}));
|
|
65758
65758
|
};
|
|
65759
65759
|
// package.json
|
|
65760
|
-
var version = "0.1.
|
|
65760
|
+
var version = "0.1.1739";
|
|
65761
65761
|
var package_default = {
|
|
65762
65762
|
name: "@tscircuit/cli",
|
|
65763
65763
|
version,
|
|
@@ -65780,7 +65780,7 @@ var package_default = {
|
|
|
65780
65780
|
"@tscircuit/image-utils": "^0.0.8",
|
|
65781
65781
|
"@tscircuit/krt-wasm": "^0.1.6",
|
|
65782
65782
|
"@tscircuit/math-utils": "0.0.36",
|
|
65783
|
-
"@tscircuit/props": "^0.0.
|
|
65783
|
+
"@tscircuit/props": "^0.0.592",
|
|
65784
65784
|
"@tscircuit/runframe": "^0.0.2274",
|
|
65785
65785
|
"@tscircuit/schematic-match-adapt": "^0.0.22",
|
|
65786
65786
|
"@tscircuit/solver-utils": "0.0.16",
|
|
@@ -65794,21 +65794,21 @@ var package_default = {
|
|
|
65794
65794
|
"@types/semver": "^7.5.8",
|
|
65795
65795
|
"bun-match-svg": "^0.0.12",
|
|
65796
65796
|
chokidar: "4.0.1",
|
|
65797
|
-
"circuit-json": "^0.0.
|
|
65797
|
+
"circuit-json": "^0.0.455",
|
|
65798
65798
|
"circuit-json-to-3d-png": "^0.0.6",
|
|
65799
65799
|
"circuit-json-to-bom-csv": "^0.0.7",
|
|
65800
65800
|
"circuit-json-to-connectivity-map": "^0.0.25",
|
|
65801
|
-
"circuit-json-to-footprinter": "^0.0.
|
|
65801
|
+
"circuit-json-to-footprinter": "^0.0.15",
|
|
65802
65802
|
"circuit-json-to-gerber": "^0.0.83",
|
|
65803
65803
|
"circuit-json-to-kicad": "0.0.157",
|
|
65804
65804
|
"circuit-json-to-pnp-csv": "^0.0.7",
|
|
65805
65805
|
"circuit-json-to-readable-netlist": "^0.0.15",
|
|
65806
|
-
"circuit-json-to-spice": "^0.0.
|
|
65806
|
+
"circuit-json-to-spice": "^0.0.45",
|
|
65807
65807
|
"circuit-json-to-step": "^0.0.38",
|
|
65808
65808
|
"circuit-json-to-tscircuit": "^0.0.42",
|
|
65809
65809
|
"circuit-json-trace-length-analysis": "github:tscircuit/circuit-json-trace-length-analysis#2b44792a40df0ca83b6bfb6ac95ed5e35e7168b8",
|
|
65810
65810
|
"circuit-to-canvas": "^0.0.111",
|
|
65811
|
-
"circuit-to-svg": "^0.0.
|
|
65811
|
+
"circuit-to-svg": "^0.0.393",
|
|
65812
65812
|
commander: "^14.0.0",
|
|
65813
65813
|
conf: "^13.1.0",
|
|
65814
65814
|
configstore: "^7.0.0",
|
|
@@ -65837,9 +65837,10 @@ var package_default = {
|
|
|
65837
65837
|
prompts: "^2.4.2",
|
|
65838
65838
|
redaxios: "^0.5.1",
|
|
65839
65839
|
semver: "^7.6.3",
|
|
65840
|
+
spicets: "^0.0.4",
|
|
65840
65841
|
stepts: "^0.0.3",
|
|
65841
65842
|
tempy: "^3.1.0",
|
|
65842
|
-
tscircuit: "0.0.
|
|
65843
|
+
tscircuit: "0.0.2142-libonly",
|
|
65843
65844
|
tsx: "^4.7.1",
|
|
65844
65845
|
"typed-ky": "^0.0.4",
|
|
65845
65846
|
zod: "^3.23.8"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1740",
|
|
4
4
|
"main": "dist/cli/main.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/cli/main.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@tscircuit/image-utils": "^0.0.8",
|
|
21
21
|
"@tscircuit/krt-wasm": "^0.1.6",
|
|
22
22
|
"@tscircuit/math-utils": "0.0.36",
|
|
23
|
-
"@tscircuit/props": "^0.0.
|
|
23
|
+
"@tscircuit/props": "^0.0.592",
|
|
24
24
|
"@tscircuit/runframe": "^0.0.2274",
|
|
25
25
|
"@tscircuit/schematic-match-adapt": "^0.0.22",
|
|
26
26
|
"@tscircuit/solver-utils": "0.0.16",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"@types/semver": "^7.5.8",
|
|
35
35
|
"bun-match-svg": "^0.0.12",
|
|
36
36
|
"chokidar": "4.0.1",
|
|
37
|
-
"circuit-json": "^0.0.
|
|
37
|
+
"circuit-json": "^0.0.455",
|
|
38
38
|
"circuit-json-to-3d-png": "^0.0.6",
|
|
39
39
|
"circuit-json-to-bom-csv": "^0.0.7",
|
|
40
40
|
"circuit-json-to-connectivity-map": "^0.0.25",
|
|
41
|
-
"circuit-json-to-footprinter": "^0.0.
|
|
41
|
+
"circuit-json-to-footprinter": "^0.0.15",
|
|
42
42
|
"circuit-json-to-gerber": "^0.0.83",
|
|
43
43
|
"circuit-json-to-kicad": "0.0.157",
|
|
44
44
|
"circuit-json-to-pnp-csv": "^0.0.7",
|
|
45
45
|
"circuit-json-to-readable-netlist": "^0.0.15",
|
|
46
|
-
"circuit-json-to-spice": "^0.0.
|
|
46
|
+
"circuit-json-to-spice": "^0.0.45",
|
|
47
47
|
"circuit-json-to-step": "^0.0.38",
|
|
48
48
|
"circuit-json-to-tscircuit": "^0.0.42",
|
|
49
49
|
"circuit-json-trace-length-analysis": "github:tscircuit/circuit-json-trace-length-analysis#2b44792a40df0ca83b6bfb6ac95ed5e35e7168b8",
|
|
50
50
|
"circuit-to-canvas": "^0.0.111",
|
|
51
|
-
"circuit-to-svg": "^0.0.
|
|
51
|
+
"circuit-to-svg": "^0.0.393",
|
|
52
52
|
"commander": "^14.0.0",
|
|
53
53
|
"conf": "^13.1.0",
|
|
54
54
|
"configstore": "^7.0.0",
|
|
@@ -77,9 +77,10 @@
|
|
|
77
77
|
"prompts": "^2.4.2",
|
|
78
78
|
"redaxios": "^0.5.1",
|
|
79
79
|
"semver": "^7.6.3",
|
|
80
|
+
"spicets": "^0.0.4",
|
|
80
81
|
"stepts": "^0.0.3",
|
|
81
82
|
"tempy": "^3.1.0",
|
|
82
|
-
"tscircuit": "0.0.
|
|
83
|
+
"tscircuit": "0.0.2142-libonly",
|
|
83
84
|
"tsx": "^4.7.1",
|
|
84
85
|
"typed-ky": "^0.0.4",
|
|
85
86
|
"zod": "^3.23.8"
|