@tscircuit/capacity-autorouter 0.0.662 → 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
@@ -235,6 +235,7 @@ interface CapacityMeshNode {
235
235
  _qfpRegionType?: "center" | "pad" | "pad-gap" | "corner";
236
236
  _isNarrowQfpPadGap?: boolean;
237
237
  _soicRegionType?: "center" | "pad" | "pad-gap";
238
+ _isComponentTopologyNode?: boolean;
238
239
  _parent?: CapacityMeshNode;
239
240
  }
240
241
  interface CapacityMeshEdge {
@@ -5602,11 +5603,10 @@ interface MultiGraphTopologyPlannerSolverOutput {
5602
5603
  componentNoConnectionSrjs: SimpleRouteJson[];
5603
5604
  globalMeshNodes: CapacityMeshNode[];
5604
5605
  componentMeshNodes: CapacityMeshNode[][];
5605
- mergedMeshNodes: CapacityMeshNode[];
5606
5606
  }
5607
5607
  /**
5608
- * Produces a merged routing topology where component replacement regions from
5609
- * 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.
5610
5610
  */
5611
5611
  declare class MultiGraphTopologyPlannerSolver extends BasePipelineSolver<MultiGraphTopologyPlannerSolverParams> {
5612
5612
  globalTopologySolver?: RectDiffPipeline;
@@ -5616,8 +5616,8 @@ declare class MultiGraphTopologyPlannerSolver extends BasePipelineSolver<MultiGr
5616
5616
  constructor(params: MultiGraphTopologyPlannerSolverParams);
5617
5617
  getConstructorParams(): readonly [MultiGraphTopologyPlannerSolverParams];
5618
5618
  /**
5619
- * Returns the global solve, the per-component solves, and the merged routing
5620
- * regions used by downstream stages.
5619
+ * Returns the global solve and the independently generated component-local
5620
+ * topology groups.
5621
5621
  */
5622
5622
  getOutput(): MultiGraphTopologyPlannerSolverOutput;
5623
5623
  finalVisualize(): GraphicsObject | null;
@@ -5643,6 +5643,35 @@ declare class MultiGraphTopologyPlannerSolver extends BasePipelineSolver<MultiGr
5643
5643
  private filterGlobalRectDiffNodesFromVisualization;
5644
5644
  }
5645
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
+
5646
5675
  declare class MergedComponentTopologyView extends BaseSolver {
5647
5676
  private readonly topologyPlanningSolver;
5648
5677
  constructor(topologyPlanningSolver: MultiGraphTopologyPlannerSolver);
@@ -5675,6 +5704,7 @@ declare class AutoroutingPipelineSolver7_MultiGraph extends BaseSolver {
5675
5704
  netToPointPairsSolver?: NetToPointPairsSolver;
5676
5705
  componentTopologyGeneratorSolver?: MergedComponentTopologyView;
5677
5706
  topologyPlanningSolver?: MultiGraphTopologyPlannerSolver;
5707
+ topologyMergingSolver?: TopologyMergingSolver;
5678
5708
  globalTopologyGeneratorSolver?: RectDiffPipeline;
5679
5709
  nodeDimensionSubdivisionSolver?: NodeDimensionSubdivisionSolver;
5680
5710
  nodeTargetMerger?: CapacityNodeTargetMerger;
@@ -5717,7 +5747,7 @@ declare class AutoroutingPipelineSolver7_MultiGraph extends BaseSolver {
5717
5747
  sharedEdgeSegmentsWithNecessaryCrampedPortPoints?: SharedEdgeSegment[];
5718
5748
  highDensityNodePortPoints?: NodeWithPortPoints[];
5719
5749
  cacheProvider: CacheProvider | null;
5720
- 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>)[];
5721
5751
  constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions$2);
5722
5752
  private setSimpleRouteJson;
5723
5753
  getConstructorParams(): readonly [SimpleRouteJson, CapacityMeshSolverOptions$2];