@tscircuit/schematic-trace-solver 0.0.175 → 0.0.177

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.
Files changed (46) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.js +570 -17
  3. package/lib/solvers/AvailableNetOrientationSolver/AvailableNetOrientationSolver.ts +5 -1
  4. package/lib/solvers/MspConnectionPairSolver/getGroundConnectionPolicy.ts +13 -0
  5. package/lib/solvers/SameNetJunctionAlignmentSolver/SameNetJunctionAlignmentSolver.ts +2 -0
  6. package/lib/solvers/SameNetJunctionAlignmentSolver/alignSameNetJunctions.ts +748 -15
  7. package/lib/solvers/SameNetJunctionAlignmentSolver/findNearestSharedPinExitRail.ts +140 -0
  8. package/lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver.ts +3 -5
  9. package/package.json +1 -1
  10. package/tests/bug-reports/bug-report-20260707T134549Z/__snapshots__/bug-report-20260707T134549Z.snap.svg +2 -2
  11. package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.test.ts +9 -0
  12. package/tests/bug-reports/bug-report-20260707T230831Z/__snapshots__/bug-report-20260707T230831Z.snap.svg +2 -2
  13. package/tests/bug-reports/bug-report-20260717T042845Z/__snapshots__/bug-report-20260717T042845Z.snap.svg +2 -2
  14. package/tests/bug-reports/bug-report-20260721T221026Z/__snapshots__/bug-report-20260721T221026Z.snap.svg +2 -2
  15. package/tests/bug-reports/bug-report-20260730T061837Z/__snapshots__/bug-report-20260730T061837Z.snap.svg +2 -2
  16. package/tests/bug-reports/bug-report-20260730T061837Z/bug-report-20260730T061837Z.test.ts +8 -4
  17. package/tests/bug-reports/bug-report-20260804T171919Z/__snapshots__/bug-report-20260804T171919Z.snap.svg +2 -2
  18. package/tests/bug-reports/bug-report-20260805T061316Z/__snapshots__/bug-report-20260805T061316Z.snap.svg +2 -2
  19. package/tests/bug-reports/bug-report-20260806T061548Z/__snapshots__/bug-report-20260806T061548Z.snap.svg +2 -2
  20. package/tests/bug-reports/bug-report-20260825T045913Z/__snapshots__/bug-report-20260825T045913Z.snap.svg +2 -2
  21. package/tests/bug-reports/bug-report-20260826T072956Z/__snapshots__/bug-report-20260826T072956Z.snap.svg +6 -6
  22. package/tests/bug-reports/bug-report-20260901T134241Z/__snapshots__/bug-report-20260901T134241Z.snap.svg +7 -7
  23. package/tests/bug-reports/bug-report-20260901T134241Z/bug-report-20260901T134241Z.test.ts +48 -0
  24. package/tests/examples/__snapshots__/example51.snap.svg +2 -2
  25. package/tests/repros/__snapshots__/board-1273-trace-overlap-cycle.snap.svg +10 -10
  26. package/tests/repros/__snapshots__/board1096-usb-label-overlap-iteration.snap.svg +2 -2
  27. package/tests/repros/__snapshots__/repro-bq25895-cross-net-trace-overlap.snap.svg +2 -2
  28. package/tests/repros/__snapshots__/repro-core-ground-inline-label-fallback.snap.svg +10 -10
  29. package/tests/repros/__snapshots__/repro-example35-minimize-trace-crossing.snap.svg +2 -2
  30. package/tests/repros/__snapshots__/repro-isolated-rs485-isow7841.snap.svg +18 -18
  31. package/tests/repros/__snapshots__/repro-pga300-redundant-ground-traces.snap.svg +18 -18
  32. package/tests/repros/__snapshots__/repro-pmp11282-isolated-dcdc.snap.svg +10 -10
  33. package/tests/repros/__snapshots__/repro-powerbank-3v-system-power.snap.svg +2 -2
  34. package/tests/repros/__snapshots__/repro-smartwatch-power-sheet.snap.svg +451 -0
  35. package/tests/repros/__snapshots__/repro-ti-power-output-section.snap.svg +2 -2
  36. package/tests/repros/__snapshots__/repro-tida-01389-hbridge.snap.svg +2 -2
  37. package/tests/repros/__snapshots__/repro-tida010076-page02.snap.svg +2 -2
  38. package/tests/repros/__snapshots__/repro161-power-section-autolayout.snap.svg +2 -2
  39. package/tests/repros/__snapshots__/repro48-555-timer-vcc-rail-label.snap.svg +2 -2
  40. package/tests/repros/assets/repro-smartwatch-power-sheet.input.json +1112 -0
  41. package/tests/repros/repro-isolated-rs485-isow7841.test.ts +4 -1
  42. package/tests/repros/repro-powerbank-3v-system-power.test.ts +24 -0
  43. package/tests/repros/repro-smartwatch-power-sheet.test.ts +27 -0
  44. package/tests/repros/repro-tida-01389-hbridge.test.ts +24 -0
  45. package/tests/solvers/MspConnectionPairSolver/ground-direct-connection-groups.test.ts +11 -0
  46. package/tests/solvers/SameNetJunctionAlignmentSolver/parallel-load-rails.test.ts +1 -0
package/dist/index.d.ts CHANGED
@@ -842,6 +842,8 @@ declare class AvailableNetOrientationSolver extends BaseSolver {
842
842
  inputProblem: InputProblem;
843
843
  traces: SolvedTracePath[];
844
844
  netLabelPlacements: NetLabelPlacement[];
845
+ /** Exact provenance for connector traces created by this solver. */
846
+ readonly netLabelConnectorTraceIds: Set<string>;
845
847
  outputNetLabelPlacements: NetLabelPlacement[];
846
848
  queuedLabelIndices: number[];
847
849
  currentLabelIndex: number | null;
@@ -1185,6 +1187,7 @@ interface SameNetJunctionAlignmentSolverInput {
1185
1187
  inputProblem: InputProblem;
1186
1188
  traces: SolvedTracePath[];
1187
1189
  netLabelPlacements: NetLabelPlacement[];
1190
+ netLabelConnectorTraceIds: ReadonlySet<MspConnectionPairId>;
1188
1191
  }
1189
1192
  /** Turns separate same-net load traces into one shared rail with short junction branches. */
1190
1193
  declare class SameNetJunctionAlignmentSolver extends BaseSolver {