@tscircuit/capacity-autorouter 0.0.855 → 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 +4 -107
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
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
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
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,108 +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 ordinary-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
|
-
/**
|
|
6534
|
-
* Every solution-affecting input for Pipeline9's ordinary single-node
|
|
6535
|
-
* high-density solver. The shape is JSON-serializable so the exact same helper
|
|
6536
|
-
* can run in the cache service.
|
|
6537
|
-
*/
|
|
6538
|
-
type Pipeline9NetworkedHighDensityNodeInput = {
|
|
6539
|
-
nodeWithPortPoints: NodeWithPortPoints;
|
|
6540
|
-
connectivityNetMap: Record<string, string[]>;
|
|
6541
|
-
colorMap: Record<string, string>;
|
|
6542
|
-
viaDiameter: number;
|
|
6543
|
-
traceWidth: number;
|
|
6544
|
-
obstacleMargin: number;
|
|
6545
|
-
effort: 1;
|
|
6546
|
-
obstacles: Obstacle[];
|
|
6547
|
-
layerCount: number;
|
|
6548
|
-
nodePf: number | null;
|
|
6549
|
-
};
|
|
6550
|
-
type Pipeline9NetworkedHighDensityNodeOutput = {
|
|
6551
|
-
status: "solved";
|
|
6552
|
-
routes: HighDensityIntraNodeRoute$1[];
|
|
6553
|
-
} | {
|
|
6554
|
-
status: "failed";
|
|
6555
|
-
error: string;
|
|
6556
|
-
};
|
|
6557
|
-
type Pipeline9NetworkedSolveRequest = {
|
|
6558
|
-
autorouterVersion: string;
|
|
6559
|
-
input: Pipeline9NetworkedHighDensityNodeInput;
|
|
6560
|
-
};
|
|
6561
|
-
type Pipeline9NetworkedSolveBatchItem = {
|
|
6562
|
-
requestId: string;
|
|
6563
|
-
input: Pipeline9NetworkedHighDensityNodeInput;
|
|
6564
|
-
};
|
|
6565
|
-
type Pipeline9NetworkedSolveBatchRequest = {
|
|
6566
|
-
autorouterVersion: string;
|
|
6567
|
-
items: Pipeline9NetworkedSolveBatchItem[];
|
|
6568
|
-
};
|
|
6569
|
-
type Pipeline9NetworkedSolveResponse = ({
|
|
6570
|
-
ok: true;
|
|
6571
|
-
autorouterVersion: string;
|
|
6572
|
-
source: Pipeline9NetworkedCacheSource;
|
|
6573
|
-
} & Pipeline9NetworkedHighDensityNodeOutput) | {
|
|
6574
|
-
ok: false;
|
|
6575
|
-
autorouterVersion?: string;
|
|
6576
|
-
message: string;
|
|
6577
|
-
};
|
|
6578
|
-
type Pipeline9NetworkedSolveBatchCacheMiss = {
|
|
6579
|
-
requestId: string;
|
|
6580
|
-
ok: false;
|
|
6581
|
-
autorouterVersion: string;
|
|
6582
|
-
code: "CACHE_MISS";
|
|
6583
|
-
message: string;
|
|
6584
|
-
};
|
|
6585
|
-
/** One independently consumable NDJSON line returned by POST /solve-batch. */
|
|
6586
|
-
type Pipeline9NetworkedSolveBatchResult = ({
|
|
6587
|
-
requestId: string;
|
|
6588
|
-
} & Pipeline9NetworkedSolveResponse) | Pipeline9NetworkedSolveBatchCacheMiss;
|
|
6589
|
-
|
|
6590
|
-
/**
|
|
6591
|
-
* Runs the exact ordinary-node solver used by Pipeline9. hd-cache2 calls this
|
|
6592
|
-
* exported helper so a cache entry can only be produced by its installed
|
|
6593
|
-
* autorouter implementation.
|
|
6594
|
-
*/
|
|
6595
|
-
declare function solvePipeline9NetworkedHighDensityNode(input: Pipeline9NetworkedHighDensityNodeInput): Pipeline9NetworkedHighDensityNodeOutput;
|
|
6596
|
-
|
|
6597
6494
|
type AutoroutingPipeline10Input = {
|
|
6598
6495
|
inputSrj: SimpleRouteJson;
|
|
6599
6496
|
options: AutoroutingPipelineSolverOptions$1;
|
|
@@ -7770,4 +7667,4 @@ declare const HyperSingleIntraNodeSolver: typeof PortfolioSingleIntraNodeSolver;
|
|
|
7770
7667
|
*/
|
|
7771
7668
|
type HyperSingleIntraNodeSolver = InstanceType<typeof PortfolioSingleIntraNodeSolver>;
|
|
7772
7669
|
|
|
7773
|
-
export {
|
|
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 };
|