@tscircuit/capacity-autorouter 0.0.780 → 0.0.782

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
@@ -63,6 +63,14 @@ type PointId = string;
63
63
  type OffBoardConnectionId = string;
64
64
  type ObstacleId = string;
65
65
  type RootConnectionName = string;
66
+ type CircuitJsonMetadata = {
67
+ pcb_smtpad_id?: string;
68
+ pcb_plated_hole_id?: string;
69
+ pcb_port_id?: string;
70
+ pcb_via_id?: string;
71
+ source_component_name?: string;
72
+ source_port_name?: string;
73
+ };
66
74
  type TerminalViaHint = {
67
75
  toLayer: string;
68
76
  viaDiameter?: number;
@@ -158,6 +166,11 @@ interface Obstacle {
158
166
  obstacleId?: string;
159
167
  /** Optional source component identifier associated with this obstacle. */
160
168
  componentId?: string;
169
+ /**
170
+ * Optional Circuit JSON provenance carried through SRJ.
171
+ * Routing algorithms must not use this field.
172
+ */
173
+ circuitJsonMetadata?: CircuitJsonMetadata;
161
174
  type: "rect";
162
175
  layers: string[];
163
176
  /** Public z-layer indexes supplied by SimpleRouteJson producers. */
@@ -6594,6 +6607,7 @@ declare class SingleRouteUselessViaRemovalSolver extends BaseSolver {
6594
6607
  ENABLE_OBSTACLE_DETOUR_SHORTCUTS: boolean;
6595
6608
  geometryShortcutsApplied: number;
6596
6609
  multilayerSectionsCollapsed: number;
6610
+ obstacleDetourCandidatesValidated: number;
6597
6611
  constructor(params: {
6598
6612
  obstacleSHI: ObstacleSpatialHashIndex;
6599
6613
  hdRouteSHI: HighDensityRouteSpatialIndex;