@tscircuit/capacity-autorouter 0.0.856 → 0.0.857

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
@@ -6275,12 +6275,11 @@ declare class Pipeline9HighDensitySolver extends BaseSolver {
6275
6275
  constructor(params: Pipeline9HighDensitySolverParams);
6276
6276
  getSolverName(): string;
6277
6277
  getUpdatedFixedHdRoutes(): PreloadedHighDensityRoute[];
6278
- protected finishActiveNode(routes: HighDensityIntraNodeRoute$1[]): void;
6279
- protected startRegularSolver(node: NodeWithPortPoints): void;
6280
- protected startRegionalFallback(promotedFixedRouteConnectionNames?: ReadonlySet<string>): void;
6278
+ private finishActiveNode;
6279
+ private startRegularSolver;
6280
+ private startRegionalFallback;
6281
6281
  private finishRegionalFallback;
6282
6282
  private recordRegionalCandidateRejections;
6283
- protected finishRegularSolverFailure(error: string): void;
6284
6283
  _step(): void;
6285
6284
  visualize(): GraphicsObject;
6286
6285
  }
@@ -6492,125 +6491,6 @@ declare class AutoroutingPipelineSolver9_PreloadedTraceGraph extends BaseSolver
6492
6491
  getOutputSimpleRouteJson(): SimpleRouteJson;
6493
6492
  }
6494
6493
 
6495
- type AutoroutingPipelineSolver9NetworkedOptions = Omit<AutoroutingPipelineSolverOptions$1, "effort"> & {
6496
- effort?: 1;
6497
- hdCacheBaseUrl?: string;
6498
- hdCacheFetch?: typeof fetch;
6499
- hdCacheTimeoutMs?: number;
6500
- hdCacheTransportTimeoutMs?: number;
6501
- hdCacheMaxBatchItems?: number;
6502
- hdCacheMaxBatchBodyBytes?: number;
6503
- };
6504
- /** Pipeline9 with exact, version-scoped remote terminal node solving. */
6505
- declare class AutoroutingPipelineSolver9_Networked extends AutoroutingPipelineSolver9_PreloadedTraceGraph {
6506
- readonly hdCacheBaseUrl: string;
6507
- readonly hdCacheFetch?: typeof fetch;
6508
- readonly hdCacheTimeoutMs: number;
6509
- readonly hdCacheTransportTimeoutMs: number;
6510
- readonly hdCacheMaxBatchItems: number;
6511
- readonly hdCacheMaxBatchBodyBytes: number;
6512
- getSolverName(): string;
6513
- constructor(srj: SimpleRouteJson, opts?: AutoroutingPipelineSolver9NetworkedOptions);
6514
- private replaceHighDensityPipelineStep;
6515
- stepAsync(): Promise<void>;
6516
- solveAsync(): Promise<void>;
6517
- solveUntilPhaseAsync(phase: string): Promise<void>;
6518
- solve(): void;
6519
- solveUntilPhase(_phase: string): void;
6520
- }
6521
-
6522
- /** The exact published autorouter version used to isolate network cache keys. */
6523
- declare const AUTOROUTER_VERSION: string;
6524
-
6525
- declare const DEFAULT_PIPELINE9_NETWORKED_CACHE_URL = "https://hd-cache2.tscircuit.com";
6526
- declare const DEFAULT_PIPELINE9_NETWORKED_TIMEOUT_MS = 30000;
6527
- declare const DEFAULT_PIPELINE9_NETWORKED_TRANSPORT_TIMEOUT_MS = 310000;
6528
- declare const DEFAULT_PIPELINE9_NETWORKED_MAX_BATCH_ITEMS = 100;
6529
- declare const DEFAULT_PIPELINE9_NETWORKED_MAX_BATCH_BODY_BYTES: number;
6530
- type Pipeline9NetworkedFallbackReason = "http_error" | "invalid_json" | "invalid_response" | "logical_timeout" | "missing_response" | "remote_error" | "request_serialization_error" | "response_too_large" | "transport_error" | "transport_timeout" | "version_mismatch";
6531
-
6532
- type Pipeline9NetworkedCacheSource = "cache" | "solver";
6533
- declare const PIPELINE9_NETWORKED_SOLVE_POLICY: "ordinary_then_regional_without_fixed_copper_v1";
6534
- /**
6535
- * Every solution-affecting input for Pipeline9's terminal single-node policy:
6536
- * ordinary high-density routing followed, when enabled, by the regional
6537
- * no-fixed-copper fallback. The shape is JSON-serializable so the exact same
6538
- * helper can run in the cache service.
6539
- */
6540
- type Pipeline9NetworkedHighDensityNodeInput = {
6541
- solvePolicy: typeof PIPELINE9_NETWORKED_SOLVE_POLICY;
6542
- enableRegionalFallback: boolean;
6543
- nodeWithPortPoints: NodeWithPortPoints;
6544
- connectivityNetMap: Record<string, string[]>;
6545
- colorMap: Record<string, string>;
6546
- viaDiameter: number;
6547
- traceWidth: number;
6548
- obstacleMargin: number;
6549
- effort: 1;
6550
- obstacles: Obstacle[];
6551
- regionalObstacles: Obstacle[];
6552
- layerCount: number;
6553
- nodePf: number | null;
6554
- };
6555
- type Pipeline9NetworkedHighDensityNodeOutput = {
6556
- status: "solved";
6557
- solutionStage: "ordinary";
6558
- routes: HighDensityIntraNodeRoute$1[];
6559
- } | {
6560
- status: "solved";
6561
- solutionStage: "regional-fallback";
6562
- ordinaryFailure: string;
6563
- routes: HighDensityIntraNodeRoute$1[];
6564
- } | {
6565
- status: "failed";
6566
- solutionStage: "ordinary";
6567
- error: string;
6568
- } | {
6569
- status: "failed";
6570
- solutionStage: "regional-fallback";
6571
- ordinaryFailure: string;
6572
- error: string;
6573
- };
6574
- type Pipeline9NetworkedSolveRequest = {
6575
- autorouterVersion: string;
6576
- input: Pipeline9NetworkedHighDensityNodeInput;
6577
- };
6578
- type Pipeline9NetworkedSolveBatchItem = {
6579
- requestId: string;
6580
- input: Pipeline9NetworkedHighDensityNodeInput;
6581
- };
6582
- type Pipeline9NetworkedSolveBatchRequest = {
6583
- autorouterVersion: string;
6584
- items: Pipeline9NetworkedSolveBatchItem[];
6585
- };
6586
- type Pipeline9NetworkedSolveResponse = ({
6587
- ok: true;
6588
- autorouterVersion: string;
6589
- source: Pipeline9NetworkedCacheSource;
6590
- } & Pipeline9NetworkedHighDensityNodeOutput) | {
6591
- ok: false;
6592
- autorouterVersion?: string;
6593
- message: string;
6594
- };
6595
- type Pipeline9NetworkedSolveBatchCacheMiss = {
6596
- requestId: string;
6597
- ok: false;
6598
- autorouterVersion: string;
6599
- code: "CACHE_MISS";
6600
- message: string;
6601
- };
6602
- /** One independently consumable NDJSON line returned by POST /solve-batch. */
6603
- type Pipeline9NetworkedSolveBatchResult = ({
6604
- requestId: string;
6605
- } & Pipeline9NetworkedSolveResponse) | Pipeline9NetworkedSolveBatchCacheMiss;
6606
-
6607
- /**
6608
- * Runs Pipeline9's terminal no-fixed-copper node policy. hd-cache2 calls this
6609
- * exported helper so ordinary and regional cache entries can only be produced
6610
- * by its installed autorouter implementation.
6611
- */
6612
- declare function solvePipeline9NetworkedHighDensityNode(input: Pipeline9NetworkedHighDensityNodeInput): Pipeline9NetworkedHighDensityNodeOutput;
6613
-
6614
6494
  type AutoroutingPipeline10Input = {
6615
6495
  inputSrj: SimpleRouteJson;
6616
6496
  options: AutoroutingPipelineSolverOptions$1;
@@ -7787,4 +7667,4 @@ declare const HyperSingleIntraNodeSolver: typeof PortfolioSingleIntraNodeSolver;
7787
7667
  */
7788
7668
  type HyperSingleIntraNodeSolver = InstanceType<typeof PortfolioSingleIntraNodeSolver>;
7789
7669
 
7790
- export { AUTOROUTER_VERSION, AssignableAutoroutingPipeline1Solver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AttachProjectedRectsSolver, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver7_MultiGraph as AutoroutingPipelineSolver, AutoroutingPipelineSolver10_BgaFanout, AutoroutingPipelineSolver2_PortPointPathing, AutoroutingPipelineSolver3_HgPortPointPathing, AutoroutingPipelineSolver4_TinyHypergraph as AutoroutingPipelineSolver4, AutoroutingPipelineSolver4_TinyHypergraph, AutoroutingPipelineSolver5_HdCache as AutoroutingPipelineSolver5, AutoroutingPipelineSolver5_HdCache, AutoroutingPipelineSolver6_PolyHypergraph as AutoroutingPipelineSolver6, AutoroutingPipelineSolver6_PolyHypergraph, AutoroutingPipelineSolver7_MultiGraph, AutoroutingPipelineSolver8, type AutoroutingPipelineSolver9NetworkedOptions, AutoroutingPipelineSolver9_Networked, AutoroutingPipelineSolver9_PreloadedTraceGraph, type AutoroutingPipelineSolverOptions, type BusId, type CachableSolver, type CacheProvider, CapacityMeshSolver, type ConnectionPoint$1 as ConnectionPoint, type ConvertSrjToGraphicsObjectOptions, CurvyIntraNodeSolver, DEFAULT_PIPELINE9_NETWORKED_CACHE_URL, DEFAULT_PIPELINE9_NETWORKED_MAX_BATCH_BODY_BYTES, DEFAULT_PIPELINE9_NETWORKED_MAX_BATCH_ITEMS, DEFAULT_PIPELINE9_NETWORKED_TIMEOUT_MS, DEFAULT_PIPELINE9_NETWORKED_TRANSPORT_TIMEOUT_MS, type DifferentialPair, GrowShrinkHighDensityIntraNodeSolver, type HighDensityIntraNodeRouteWithJumpers, JumperHighDensitySolver as HighDensitySolver, HyperSingleIntraNodeSolver, InMemoryCache, IntraNodeSolverWithJumpers, type Jumper, LocalStorageCache, type MultiLayerConnectionPoint, type Obstacle, PIPELINE9_NETWORKED_SOLVE_POLICY, type Pipeline9NetworkedCacheSource, type Pipeline9NetworkedFallbackReason, type Pipeline9NetworkedHighDensityNodeInput, type Pipeline9NetworkedHighDensityNodeOutput, type Pipeline9NetworkedSolveBatchCacheMiss, type Pipeline9NetworkedSolveBatchItem, type Pipeline9NetworkedSolveBatchRequest, type Pipeline9NetworkedSolveBatchResult, type Pipeline9NetworkedSolveRequest, type Pipeline9NetworkedSolveResponse, PolyHighDensitySolver, PolySingleIntraNodeSolver as PolyIntraNodeSolver, PolySingleIntraNodeSolver, PortfolioSingleIntraNodeSolver, ProjectHighDensityToPolygonSolver, type RerouteRectRegion, type SimpleRouteBus, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, type SimplifiedPcbTraces, SingleHighDensityRouteWithJumpersSolver, type SingleLayerConnectionPoint, type TerminalViaHint, type TraceColorMode, calculateOptimalCapacityDepth, convertSrjToGraphicsObject, getGlobalInMemoryCache, getGlobalLocalStorageCache, getRerouteSimpleRouteJson, getTunedTotalCapacity1, reconnectReroutedSimpleRouteJsonRegion, setupGlobalCaches, solvePipeline9NetworkedHighDensityNode };
7670
+ export { AssignableAutoroutingPipeline1Solver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AttachProjectedRectsSolver, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver7_MultiGraph as AutoroutingPipelineSolver, AutoroutingPipelineSolver10_BgaFanout, AutoroutingPipelineSolver2_PortPointPathing, AutoroutingPipelineSolver3_HgPortPointPathing, AutoroutingPipelineSolver4_TinyHypergraph as AutoroutingPipelineSolver4, AutoroutingPipelineSolver4_TinyHypergraph, AutoroutingPipelineSolver5_HdCache as AutoroutingPipelineSolver5, AutoroutingPipelineSolver5_HdCache, AutoroutingPipelineSolver6_PolyHypergraph as AutoroutingPipelineSolver6, AutoroutingPipelineSolver6_PolyHypergraph, AutoroutingPipelineSolver7_MultiGraph, AutoroutingPipelineSolver8, AutoroutingPipelineSolver9_PreloadedTraceGraph, type AutoroutingPipelineSolverOptions, type BusId, type CachableSolver, type CacheProvider, CapacityMeshSolver, type ConnectionPoint$1 as ConnectionPoint, type ConvertSrjToGraphicsObjectOptions, CurvyIntraNodeSolver, type DifferentialPair, GrowShrinkHighDensityIntraNodeSolver, type HighDensityIntraNodeRouteWithJumpers, JumperHighDensitySolver as HighDensitySolver, HyperSingleIntraNodeSolver, InMemoryCache, IntraNodeSolverWithJumpers, type Jumper, LocalStorageCache, type MultiLayerConnectionPoint, type Obstacle, PolyHighDensitySolver, PolySingleIntraNodeSolver as PolyIntraNodeSolver, PolySingleIntraNodeSolver, PortfolioSingleIntraNodeSolver, ProjectHighDensityToPolygonSolver, type RerouteRectRegion, type SimpleRouteBus, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, type SimplifiedPcbTraces, SingleHighDensityRouteWithJumpersSolver, type SingleLayerConnectionPoint, type TerminalViaHint, type TraceColorMode, calculateOptimalCapacityDepth, convertSrjToGraphicsObject, getGlobalInMemoryCache, getGlobalLocalStorageCache, getRerouteSimpleRouteJson, getTunedTotalCapacity1, reconnectReroutedSimpleRouteJsonRegion, setupGlobalCaches };