@tscircuit/capacity-autorouter 0.0.857 → 0.0.858
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 +119 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6275,11 +6275,12 @@ declare class Pipeline9HighDensitySolver extends BaseSolver {
|
|
|
6275
6275
|
constructor(params: Pipeline9HighDensitySolverParams);
|
|
6276
6276
|
getSolverName(): string;
|
|
6277
6277
|
getUpdatedFixedHdRoutes(): PreloadedHighDensityRoute[];
|
|
6278
|
-
|
|
6279
|
-
|
|
6278
|
+
protected finishActiveNode(routes: HighDensityIntraNodeRoute$1[]): void;
|
|
6279
|
+
protected startRegularSolver(node: NodeWithPortPoints): void;
|
|
6280
6280
|
private startRegionalFallback;
|
|
6281
6281
|
private finishRegionalFallback;
|
|
6282
6282
|
private recordRegionalCandidateRejections;
|
|
6283
|
+
protected finishRegularSolverFailure(error: string): void;
|
|
6283
6284
|
_step(): void;
|
|
6284
6285
|
visualize(): GraphicsObject;
|
|
6285
6286
|
}
|
|
@@ -6491,6 +6492,121 @@ declare class AutoroutingPipelineSolver9_PreloadedTraceGraph extends BaseSolver
|
|
|
6491
6492
|
getOutputSimpleRouteJson(): SimpleRouteJson;
|
|
6492
6493
|
}
|
|
6493
6494
|
|
|
6495
|
+
type AutoroutingPipelineSolver9NetworkedOptions = Omit<AutoroutingPipelineSolverOptions$1, "effort"> & {
|
|
6496
|
+
effort?: 1;
|
|
6497
|
+
/** Base URL of an hd-cache2-compatible server. */
|
|
6498
|
+
hdCache2ServerUrl?: string;
|
|
6499
|
+
/** Optional cache namespace, used to isolate cold/hot benchmark runs. */
|
|
6500
|
+
hdCache2CacheVersion?: string;
|
|
6501
|
+
};
|
|
6502
|
+
/** Pipeline9 with exact, version-scoped remote terminal node solving. */
|
|
6503
|
+
declare class AutoroutingPipelineSolver9_Networked extends AutoroutingPipelineSolver9_PreloadedTraceGraph {
|
|
6504
|
+
readonly hdCache2ServerUrl: string;
|
|
6505
|
+
readonly hdCache2CacheVersion?: string;
|
|
6506
|
+
getSolverName(): string;
|
|
6507
|
+
constructor(srj: SimpleRouteJson, opts?: AutoroutingPipelineSolver9NetworkedOptions);
|
|
6508
|
+
private replaceHighDensityPipelineStep;
|
|
6509
|
+
stepAsync(): Promise<void>;
|
|
6510
|
+
solveAsync(): Promise<void>;
|
|
6511
|
+
solveUntilPhaseAsync(phase: string): Promise<void>;
|
|
6512
|
+
solve(): void;
|
|
6513
|
+
solveUntilPhase(_phase: string): void;
|
|
6514
|
+
}
|
|
6515
|
+
|
|
6516
|
+
/** The exact published autorouter version used to isolate network cache keys. */
|
|
6517
|
+
declare const AUTOROUTER_VERSION: string;
|
|
6518
|
+
|
|
6519
|
+
type Pipeline9NetworkedCacheSource = "cache" | "solver";
|
|
6520
|
+
declare const PIPELINE9_NETWORKED_SOLVE_POLICY: "ordinary_then_regional_without_fixed_copper_v1";
|
|
6521
|
+
/**
|
|
6522
|
+
* Every solution-affecting input for Pipeline9's terminal single-node policy:
|
|
6523
|
+
* ordinary high-density routing followed, when enabled, by the regional
|
|
6524
|
+
* no-fixed-copper fallback. The shape is JSON-serializable so the exact same
|
|
6525
|
+
* helper can run in the cache service.
|
|
6526
|
+
*/
|
|
6527
|
+
type Pipeline9NetworkedHighDensityNodeInput = {
|
|
6528
|
+
solvePolicy: typeof PIPELINE9_NETWORKED_SOLVE_POLICY;
|
|
6529
|
+
enableRegionalFallback: boolean;
|
|
6530
|
+
nodeWithPortPoints: NodeWithPortPoints;
|
|
6531
|
+
connectivityNetMap: Record<string, string[]>;
|
|
6532
|
+
colorMap: Record<string, string>;
|
|
6533
|
+
viaDiameter: number;
|
|
6534
|
+
traceWidth: number;
|
|
6535
|
+
obstacleMargin: number;
|
|
6536
|
+
effort: 1;
|
|
6537
|
+
obstacles: Obstacle[];
|
|
6538
|
+
regionalObstacles: Obstacle[];
|
|
6539
|
+
layerCount: number;
|
|
6540
|
+
nodePf: number | null;
|
|
6541
|
+
};
|
|
6542
|
+
type Pipeline9NetworkedHighDensityNodeOutput = {
|
|
6543
|
+
status: "solved";
|
|
6544
|
+
solutionStage: "ordinary";
|
|
6545
|
+
routes: HighDensityIntraNodeRoute$1[];
|
|
6546
|
+
} | {
|
|
6547
|
+
status: "solved";
|
|
6548
|
+
solutionStage: "regional-fallback";
|
|
6549
|
+
ordinaryFailure: string;
|
|
6550
|
+
routes: HighDensityIntraNodeRoute$1[];
|
|
6551
|
+
} | {
|
|
6552
|
+
status: "failed";
|
|
6553
|
+
solutionStage: "ordinary";
|
|
6554
|
+
error: string;
|
|
6555
|
+
} | {
|
|
6556
|
+
status: "failed";
|
|
6557
|
+
solutionStage: "regional-fallback";
|
|
6558
|
+
ordinaryFailure: string;
|
|
6559
|
+
error: string;
|
|
6560
|
+
};
|
|
6561
|
+
type Pipeline9NetworkedSolveRequest = {
|
|
6562
|
+
autorouterVersion: string;
|
|
6563
|
+
/** Optional cache namespace used to isolate benchmark runs. */
|
|
6564
|
+
cacheVersion?: string;
|
|
6565
|
+
input: Pipeline9NetworkedHighDensityNodeInput;
|
|
6566
|
+
};
|
|
6567
|
+
type Pipeline9NetworkedSolveBatchItem = {
|
|
6568
|
+
requestId: string;
|
|
6569
|
+
input: Pipeline9NetworkedHighDensityNodeInput;
|
|
6570
|
+
};
|
|
6571
|
+
type Pipeline9NetworkedSolveBatchRequest = {
|
|
6572
|
+
autorouterVersion: string;
|
|
6573
|
+
/** Optional cache namespace used to isolate benchmark runs. */
|
|
6574
|
+
cacheVersion?: string;
|
|
6575
|
+
items: Pipeline9NetworkedSolveBatchItem[];
|
|
6576
|
+
};
|
|
6577
|
+
type Pipeline9NetworkedSolveResponse = ({
|
|
6578
|
+
ok: true;
|
|
6579
|
+
autorouterVersion: string;
|
|
6580
|
+
cacheVersion?: string;
|
|
6581
|
+
source: Pipeline9NetworkedCacheSource;
|
|
6582
|
+
} & Pipeline9NetworkedHighDensityNodeOutput) | {
|
|
6583
|
+
ok: false;
|
|
6584
|
+
autorouterVersion?: string;
|
|
6585
|
+
cacheVersion?: string;
|
|
6586
|
+
message: string;
|
|
6587
|
+
};
|
|
6588
|
+
type Pipeline9NetworkedSolveBatchCacheMiss = {
|
|
6589
|
+
requestId: string;
|
|
6590
|
+
ok: false;
|
|
6591
|
+
autorouterVersion: string;
|
|
6592
|
+
cacheVersion?: string;
|
|
6593
|
+
code: "CACHE_MISS";
|
|
6594
|
+
message: string;
|
|
6595
|
+
};
|
|
6596
|
+
/** One independently consumable NDJSON line returned by POST /solve-batch. */
|
|
6597
|
+
type Pipeline9NetworkedSolveBatchResult = ({
|
|
6598
|
+
requestId: string;
|
|
6599
|
+
} & Pipeline9NetworkedSolveResponse) | Pipeline9NetworkedSolveBatchCacheMiss;
|
|
6600
|
+
|
|
6601
|
+
declare const DEFAULT_HD_CACHE2_SERVER_URL = "https://hd-cache2.tscircuit.com";
|
|
6602
|
+
|
|
6603
|
+
/**
|
|
6604
|
+
* Runs Pipeline9's terminal no-fixed-copper node policy. hd-cache2 calls this
|
|
6605
|
+
* exported helper so ordinary and regional cache entries can only be produced
|
|
6606
|
+
* by its installed autorouter implementation.
|
|
6607
|
+
*/
|
|
6608
|
+
declare function solvePipeline9NetworkedHighDensityNode(input: Pipeline9NetworkedHighDensityNodeInput): Pipeline9NetworkedHighDensityNodeOutput;
|
|
6609
|
+
|
|
6494
6610
|
type AutoroutingPipeline10Input = {
|
|
6495
6611
|
inputSrj: SimpleRouteJson;
|
|
6496
6612
|
options: AutoroutingPipelineSolverOptions$1;
|
|
@@ -7667,4 +7783,4 @@ declare const HyperSingleIntraNodeSolver: typeof PortfolioSingleIntraNodeSolver;
|
|
|
7667
7783
|
*/
|
|
7668
7784
|
type HyperSingleIntraNodeSolver = InstanceType<typeof PortfolioSingleIntraNodeSolver>;
|
|
7669
7785
|
|
|
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 };
|
|
7786
|
+
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_HD_CACHE2_SERVER_URL, 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 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 };
|