@tscircuit/capacity-autorouter 0.0.661 → 0.0.663

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/index.d.ts CHANGED
@@ -150,8 +150,7 @@ interface Obstacle {
150
150
  }
151
151
  interface SimpleRouteConnection {
152
152
  name: string;
153
- rootConnectionName?: string;
154
- mergedConnectionNames?: string[];
153
+ __rootConnectionNames?: string[];
155
154
  isOffBoard?: boolean;
156
155
  netConnectionName?: string;
157
156
  nominalTraceWidth?: number;
@@ -236,6 +235,7 @@ interface CapacityMeshNode {
236
235
  _qfpRegionType?: "center" | "pad" | "pad-gap" | "corner";
237
236
  _isNarrowQfpPadGap?: boolean;
238
237
  _soicRegionType?: "center" | "pad" | "pad-gap";
238
+ _isComponentTopologyNode?: boolean;
239
239
  _parent?: CapacityMeshNode;
240
240
  }
241
241
  interface CapacityMeshEdge {
@@ -5603,11 +5603,10 @@ interface MultiGraphTopologyPlannerSolverOutput {
5603
5603
  componentNoConnectionSrjs: SimpleRouteJson[];
5604
5604
  globalMeshNodes: CapacityMeshNode[];
5605
5605
  componentMeshNodes: CapacityMeshNode[][];
5606
- mergedMeshNodes: CapacityMeshNode[];
5607
5606
  }
5608
5607
  /**
5609
- * Produces a merged routing topology where component replacement regions from
5610
- * the global solve are substituted with component-local routing regions.
5608
+ * Produces the global and component-local topology groups consumed by the
5609
+ * Pipeline 7 topology merging stage.
5611
5610
  */
5612
5611
  declare class MultiGraphTopologyPlannerSolver extends BasePipelineSolver<MultiGraphTopologyPlannerSolverParams> {
5613
5612
  globalTopologySolver?: RectDiffPipeline;
@@ -5617,8 +5616,8 @@ declare class MultiGraphTopologyPlannerSolver extends BasePipelineSolver<MultiGr
5617
5616
  constructor(params: MultiGraphTopologyPlannerSolverParams);
5618
5617
  getConstructorParams(): readonly [MultiGraphTopologyPlannerSolverParams];
5619
5618
  /**
5620
- * Returns the global solve, the per-component solves, and the merged routing
5621
- * regions used by downstream stages.
5619
+ * Returns the global solve and the independently generated component-local
5620
+ * topology groups.
5622
5621
  */
5623
5622
  getOutput(): MultiGraphTopologyPlannerSolverOutput;
5624
5623
  finalVisualize(): GraphicsObject | null;
@@ -5644,6 +5643,35 @@ declare class MultiGraphTopologyPlannerSolver extends BasePipelineSolver<MultiGr
5644
5643
  private filterGlobalRectDiffNodesFromVisualization;
5645
5644
  }
5646
5645
 
5646
+ interface TopologyMergingNodeGroup {
5647
+ groupId: string;
5648
+ nodes: CapacityMeshNode[];
5649
+ isComponent: boolean;
5650
+ }
5651
+ interface TopologyMergingSolverParams {
5652
+ nodeGroups: readonly TopologyMergingNodeGroup[];
5653
+ layerCount: number;
5654
+ }
5655
+
5656
+ declare class TopologyMergingSolver extends BaseSolver$1 {
5657
+ readonly inputProblem: TopologyMergingSolverParams;
5658
+ private readonly preparedNodes;
5659
+ private readonly preparedNodeBySourceKey;
5660
+ private readonly outputProvenance;
5661
+ private readonly xCoordinates;
5662
+ private readonly atomicRegions;
5663
+ private outputNodes;
5664
+ private currentXIndex;
5665
+ constructor(inputProblem: TopologyMergingSolverParams);
5666
+ getConstructorParams(): [TopologyMergingSolverParams];
5667
+ _step(): void;
5668
+ getOutput(): CapacityMeshNode[];
5669
+ computeProgress(): number;
5670
+ visualize(): GraphicsObject;
5671
+ private completePassthroughTopology;
5672
+ private processCurrentXSlab;
5673
+ }
5674
+
5647
5675
  declare class MergedComponentTopologyView extends BaseSolver {
5648
5676
  private readonly topologyPlanningSolver;
5649
5677
  constructor(topologyPlanningSolver: MultiGraphTopologyPlannerSolver);
@@ -5676,6 +5704,7 @@ declare class AutoroutingPipelineSolver7_MultiGraph extends BaseSolver {
5676
5704
  netToPointPairsSolver?: NetToPointPairsSolver;
5677
5705
  componentTopologyGeneratorSolver?: MergedComponentTopologyView;
5678
5706
  topologyPlanningSolver?: MultiGraphTopologyPlannerSolver;
5707
+ topologyMergingSolver?: TopologyMergingSolver;
5679
5708
  globalTopologyGeneratorSolver?: RectDiffPipeline;
5680
5709
  nodeDimensionSubdivisionSolver?: NodeDimensionSubdivisionSolver;
5681
5710
  nodeTargetMerger?: CapacityNodeTargetMerger;
@@ -5718,7 +5747,7 @@ declare class AutoroutingPipelineSolver7_MultiGraph extends BaseSolver {
5718
5747
  sharedEdgeSegmentsWithNecessaryCrampedPortPoints?: SharedEdgeSegment[];
5719
5748
  highDensityNodePortPoints?: NodeWithPortPoints[];
5720
5749
  cacheProvider: CacheProvider | null;
5721
- pipelineDef: (PipelineStep$2<typeof PreprocessSimpleRouteJsonSolver$1> | PipelineStep$2<typeof ComponentDetectionSolver> | PipelineStep$2<typeof EscapeViaLocationSolver> | PipelineStep$2<typeof NetToPointPairsSolver2_OffBoardConnection> | PipelineStep$2<typeof MultiGraphTopologyPlannerSolver> | PipelineStep$2<typeof NodeDimensionSubdivisionSolver> | PipelineStep$2<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep$2<typeof AvailableSegmentPointSolver> | PipelineStep$2<typeof MultiTargetNecessaryCrampedPortPointSolver> | PipelineStep$2<typeof TinyHypergraphPortPointPathingSolver> | PipelineStep$2<typeof UniformPortDistributionSolver> | PipelineStep$2<typeof HighDensitySolver> | PipelineStep$2<typeof HighDensityForceImproveSolver> | PipelineStep$2<typeof Pipeline4HighDensityRepairSolver> | PipelineStep$2<typeof MultipleHighDensityRouteStitchSolver3> | PipelineStep$2<typeof TraceSimplificationSolver> | PipelineStep$2<typeof TraceWidthSolver> | PipelineStep$2<typeof GlobalDrcForceImproveSolver>)[];
5750
+ pipelineDef: (PipelineStep$2<typeof PreprocessSimpleRouteJsonSolver$1> | PipelineStep$2<typeof ComponentDetectionSolver> | PipelineStep$2<typeof EscapeViaLocationSolver> | PipelineStep$2<typeof NetToPointPairsSolver2_OffBoardConnection> | PipelineStep$2<typeof MultiGraphTopologyPlannerSolver> | PipelineStep$2<typeof TopologyMergingSolver> | PipelineStep$2<typeof NodeDimensionSubdivisionSolver> | PipelineStep$2<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep$2<typeof AvailableSegmentPointSolver> | PipelineStep$2<typeof MultiTargetNecessaryCrampedPortPointSolver> | PipelineStep$2<typeof TinyHypergraphPortPointPathingSolver> | PipelineStep$2<typeof UniformPortDistributionSolver> | PipelineStep$2<typeof HighDensitySolver> | PipelineStep$2<typeof HighDensityForceImproveSolver> | PipelineStep$2<typeof Pipeline4HighDensityRepairSolver> | PipelineStep$2<typeof MultipleHighDensityRouteStitchSolver3> | PipelineStep$2<typeof TraceSimplificationSolver> | PipelineStep$2<typeof TraceWidthSolver> | PipelineStep$2<typeof GlobalDrcForceImproveSolver>)[];
5722
5751
  constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions$2);
5723
5752
  private setSimpleRouteJson;
5724
5753
  getConstructorParams(): readonly [SimpleRouteJson, CapacityMeshSolverOptions$2];