@tscircuit/cli 0.1.1838 → 0.1.1840

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.
@@ -3087,7 +3087,9 @@ class AutorouterDiagnostics {
3087
3087
  };
3088
3088
  if (this.options.enabled && !this.hasWrittenPlacementSnapshot) {
3089
3089
  const placementCircuitJson = this.getCurrentCircuitJson().filter((element) => !this.isRouteElement(element));
3090
- this.writePngSnapshot("placement-unrouted.png", placementCircuitJson);
3090
+ this.writePngSnapshot("placement-unrouted.png", placementCircuitJson, {
3091
+ shouldDrawRatsNest: true
3092
+ });
3091
3093
  this.hasWrittenPlacementSnapshot = true;
3092
3094
  }
3093
3095
  if (this.options.enabled) {
@@ -3335,9 +3337,9 @@ class AutorouterDiagnostics {
3335
3337
  this.logArtifact(filePath);
3336
3338
  return filePath;
3337
3339
  }
3338
- writePngSnapshot(fileName, circuitJson) {
3340
+ writePngSnapshot(fileName, circuitJson, options) {
3339
3341
  try {
3340
- const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson);
3342
+ const pcbSvg = convertCircuitJsonToPcbSvg(circuitJson, options);
3341
3343
  const png = convertSvgToPngBuffer(pcbSvg);
3342
3344
  const debugDir = path2.resolve(this.options.debugDir ?? DEFAULT_DEBUG_DIR);
3343
3345
  fs2.mkdirSync(debugDir, { recursive: true });
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.1837";
65760
+ var version = "0.1.1839";
65761
65761
  var package_default = {
65762
65762
  name: "@tscircuit/cli",
65763
65763
  version,
@@ -65773,6 +65773,7 @@ var package_default = {
65773
65773
  "@tscircuit/circuit-json-placement-analysis": "^0.0.6",
65774
65774
  "@tscircuit/circuit-json-routing-analysis": "^0.0.6",
65775
65775
  "@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#bb0b41d80c9714695b498e182c2a558f1e0ceb2d",
65776
+ "@tscircuit/circuit-json-util": "^0.0.105",
65776
65777
  "@tscircuit/eval": "^0.0.1016",
65777
65778
  "@tscircuit/fake-snippets": "^0.0.182",
65778
65779
  "@tscircuit/file-server": "^0.0.32",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.1838",
3
+ "version": "0.1.1840",
4
4
  "main": "dist/cli/main.js",
5
5
  "exports": {
6
6
  ".": "./dist/cli/main.js",
@@ -13,6 +13,7 @@
13
13
  "@tscircuit/circuit-json-placement-analysis": "^0.0.6",
14
14
  "@tscircuit/circuit-json-routing-analysis": "^0.0.6",
15
15
  "@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#bb0b41d80c9714695b498e182c2a558f1e0ceb2d",
16
+ "@tscircuit/circuit-json-util": "^0.0.105",
16
17
  "@tscircuit/eval": "^0.0.1016",
17
18
  "@tscircuit/fake-snippets": "^0.0.182",
18
19
  "@tscircuit/file-server": "^0.0.32",