@tscircuit/capacity-autorouter 0.0.852 → 0.0.854
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 +27 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6498,6 +6498,8 @@ type AutoroutingPipelineSolver9NetworkedOptions = Omit<AutoroutingPipelineSolver
|
|
|
6498
6498
|
hdCacheFetch?: typeof fetch;
|
|
6499
6499
|
hdCacheTimeoutMs?: number;
|
|
6500
6500
|
hdCacheTransportTimeoutMs?: number;
|
|
6501
|
+
hdCacheMaxBatchItems?: number;
|
|
6502
|
+
hdCacheMaxBatchBodyBytes?: number;
|
|
6501
6503
|
};
|
|
6502
6504
|
/** Pipeline9 with exact, version-scoped remote ordinary-node solving. */
|
|
6503
6505
|
declare class AutoroutingPipelineSolver9_Networked extends AutoroutingPipelineSolver9_PreloadedTraceGraph {
|
|
@@ -6505,6 +6507,8 @@ declare class AutoroutingPipelineSolver9_Networked extends AutoroutingPipelineSo
|
|
|
6505
6507
|
readonly hdCacheFetch?: typeof fetch;
|
|
6506
6508
|
readonly hdCacheTimeoutMs: number;
|
|
6507
6509
|
readonly hdCacheTransportTimeoutMs: number;
|
|
6510
|
+
readonly hdCacheMaxBatchItems: number;
|
|
6511
|
+
readonly hdCacheMaxBatchBodyBytes: number;
|
|
6508
6512
|
getSolverName(): string;
|
|
6509
6513
|
constructor(srj: SimpleRouteJson, opts?: AutoroutingPipelineSolver9NetworkedOptions);
|
|
6510
6514
|
private replaceHighDensityPipelineStep;
|
|
@@ -6521,6 +6525,9 @@ declare const AUTOROUTER_VERSION: string;
|
|
|
6521
6525
|
declare const DEFAULT_PIPELINE9_NETWORKED_CACHE_URL = "https://hd-cache2.tscircuit.com";
|
|
6522
6526
|
declare const DEFAULT_PIPELINE9_NETWORKED_TIMEOUT_MS = 30000;
|
|
6523
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";
|
|
6524
6531
|
|
|
6525
6532
|
type Pipeline9NetworkedCacheSource = "cache" | "solver";
|
|
6526
6533
|
/**
|
|
@@ -6551,6 +6558,14 @@ type Pipeline9NetworkedSolveRequest = {
|
|
|
6551
6558
|
autorouterVersion: string;
|
|
6552
6559
|
input: Pipeline9NetworkedHighDensityNodeInput;
|
|
6553
6560
|
};
|
|
6561
|
+
type Pipeline9NetworkedSolveBatchItem = {
|
|
6562
|
+
requestId: string;
|
|
6563
|
+
input: Pipeline9NetworkedHighDensityNodeInput;
|
|
6564
|
+
};
|
|
6565
|
+
type Pipeline9NetworkedSolveBatchRequest = {
|
|
6566
|
+
autorouterVersion: string;
|
|
6567
|
+
items: Pipeline9NetworkedSolveBatchItem[];
|
|
6568
|
+
};
|
|
6554
6569
|
type Pipeline9NetworkedSolveResponse = ({
|
|
6555
6570
|
ok: true;
|
|
6556
6571
|
autorouterVersion: string;
|
|
@@ -6560,6 +6575,17 @@ type Pipeline9NetworkedSolveResponse = ({
|
|
|
6560
6575
|
autorouterVersion?: string;
|
|
6561
6576
|
message: string;
|
|
6562
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;
|
|
6563
6589
|
|
|
6564
6590
|
/**
|
|
6565
6591
|
* Runs the exact ordinary-node solver used by Pipeline9. hd-cache2 calls this
|
|
@@ -7744,4 +7770,4 @@ declare const HyperSingleIntraNodeSolver: typeof PortfolioSingleIntraNodeSolver;
|
|
|
7744
7770
|
*/
|
|
7745
7771
|
type HyperSingleIntraNodeSolver = InstanceType<typeof PortfolioSingleIntraNodeSolver>;
|
|
7746
7772
|
|
|
7747
|
-
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_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, type Pipeline9NetworkedCacheSource, type Pipeline9NetworkedHighDensityNodeInput, type Pipeline9NetworkedHighDensityNodeOutput, 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 };
|
|
7773
|
+
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, 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 };
|