@reicek/neataptic-ts 0.1.25 → 0.1.26

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.
Files changed (210) hide show
  1. package/.github/copilot-instructions.md +11 -0
  2. package/.github/skills/trace-analyzer-extension/SKILL.md +3 -3
  3. package/.github/skills/trace-analyzer-extension/assets/extension-checklist.md +1 -1
  4. package/.github/skills/trace-analyzer-extension/references/analyzer-extension-workflow.md +1 -1
  5. package/.github/skills/trace-audit-reporting/SKILL.md +3 -3
  6. package/.github/skills/trace-audit-reporting/references/trace-analysis-workflow.md +1 -1
  7. package/package.json +19 -13
  8. package/plans/Flappy_Bird_Folder_Documentation_Pass.md +4 -4
  9. package/plans/README.md +24 -0
  10. package/plans/Roadmap.md +62 -40
  11. package/plans/analyze-trace-solid-split.plans.md +66 -0
  12. package/plans/architecture-solid-split.plans.md +9 -15
  13. package/plans/asciiMaze-typescript-repair.plans.md +1 -1
  14. package/plans/generate-docs-solid-split.plans.md +87 -0
  15. package/plans/methods-docs.plans.md +25 -1
  16. package/plans/methods-solid-split.plans.md +14 -14
  17. package/plans/neat-docs.plans.md +9 -1
  18. package/plans/neat-test-surface-repair.plans.md +1 -1
  19. package/plans/render-docs-html-solid-split.plans.md +68 -0
  20. package/plans/src-no-explicit-any-cleanup.plans.md +1 -1
  21. package/plans/utils-docs.plans.md +6 -1
  22. package/scripts/analyze-trace/analyze-trace.analysis.ts +479 -0
  23. package/scripts/analyze-trace/analyze-trace.constants.ts +35 -0
  24. package/scripts/analyze-trace/analyze-trace.io.ts +69 -0
  25. package/scripts/analyze-trace/analyze-trace.report.ts +100 -0
  26. package/scripts/analyze-trace/analyze-trace.shared.ts +116 -0
  27. package/scripts/analyze-trace/analyze-trace.ts +45 -0
  28. package/scripts/analyze-trace/analyze-trace.types.ts +72 -0
  29. package/scripts/assets/theme.css +80 -23
  30. package/scripts/copy-examples.ts +239 -0
  31. package/scripts/export-onnx.ts +223 -0
  32. package/scripts/generate-bench-tables.ts +378 -37
  33. package/scripts/generate-docs/generate-docs.constants.ts +107 -0
  34. package/scripts/generate-docs/generate-docs.order.ts +355 -0
  35. package/scripts/generate-docs/generate-docs.state.ts +31 -0
  36. package/scripts/generate-docs/generate-docs.targets.ts +165 -0
  37. package/scripts/generate-docs/generate-docs.ts +63 -0
  38. package/scripts/generate-docs/generate-docs.types.ts +112 -0
  39. package/scripts/generate-docs/output/generate-docs.output.folder-index.utils.ts +167 -0
  40. package/scripts/generate-docs/output/generate-docs.output.ordering.utils.ts +353 -0
  41. package/scripts/generate-docs/output/generate-docs.output.readme.utils.ts +420 -0
  42. package/scripts/generate-docs/output/generate-docs.output.ts +123 -0
  43. package/scripts/generate-docs/output/generate-docs.output.warnings.utils.ts +219 -0
  44. package/scripts/generate-docs/symbols/generate-docs.symbols.collection.utils.ts +365 -0
  45. package/scripts/generate-docs/symbols/generate-docs.symbols.jsdoc.utils.ts +373 -0
  46. package/scripts/generate-docs/symbols/generate-docs.symbols.normalize.utils.ts +155 -0
  47. package/scripts/generate-docs/symbols/generate-docs.symbols.render.utils.ts +149 -0
  48. package/scripts/generate-docs/symbols/generate-docs.symbols.signature.utils.ts +289 -0
  49. package/scripts/generate-docs/symbols/generate-docs.symbols.ts +11 -0
  50. package/scripts/mermaid-cli.mjs +102 -22
  51. package/scripts/mermaid-cli.ts +736 -0
  52. package/scripts/render-docs-html/render-docs-html.assets.ts +54 -0
  53. package/scripts/render-docs-html/render-docs-html.mermaid.ts +245 -0
  54. package/scripts/{render-docs-html.sidebar.ts → render-docs-html/render-docs-html.navigation.ts} +141 -144
  55. package/scripts/render-docs-html/render-docs-html.pages.ts +333 -0
  56. package/scripts/render-docs-html/render-docs-html.shared.ts +333 -0
  57. package/scripts/render-docs-html/render-docs-html.types.ts +42 -0
  58. package/scripts/render-docs-html.ts +23 -587
  59. package/scripts/run-docs.ts +238 -0
  60. package/scripts/write-dist-docs-pkg.ts +40 -0
  61. package/src/README.md +75 -75
  62. package/src/architecture/connection/README.md +5 -5
  63. package/src/architecture/layer/README.md +508 -508
  64. package/src/architecture/network/README.md +1458 -1458
  65. package/src/architecture/network/activate/README.md +694 -694
  66. package/src/architecture/network/bootstrap/README.md +77 -77
  67. package/src/architecture/network/connect/README.md +74 -74
  68. package/src/architecture/network/deterministic/README.md +135 -135
  69. package/src/architecture/network/evolve/README.md +364 -364
  70. package/src/architecture/network/gating/README.md +130 -130
  71. package/src/architecture/network/genetic/README.md +399 -399
  72. package/src/architecture/network/mutate/README.md +897 -897
  73. package/src/architecture/network/onnx/README.md +720 -720
  74. package/src/architecture/network/onnx/export/README.md +728 -728
  75. package/src/architecture/network/onnx/export/layers/README.md +450 -450
  76. package/src/architecture/network/onnx/import/README.md +618 -618
  77. package/src/architecture/network/onnx/schema/README.md +32 -32
  78. package/src/architecture/network/prune/README.md +245 -245
  79. package/src/architecture/network/remove/README.md +135 -135
  80. package/src/architecture/network/runtime/README.md +106 -106
  81. package/src/architecture/network/serialize/README.md +542 -542
  82. package/src/architecture/network/slab/README.md +608 -608
  83. package/src/architecture/network/standalone/README.md +212 -212
  84. package/src/architecture/network/stats/README.md +84 -84
  85. package/src/architecture/network/topology/README.md +465 -465
  86. package/src/architecture/network/training/README.md +200 -200
  87. package/src/architecture/node/README.md +5 -5
  88. package/src/architecture/nodePool/README.md +14 -14
  89. package/src/methods/README.md +99 -99
  90. package/src/methods/activation/README.md +189 -189
  91. package/src/methods/cost/README.md +131 -131
  92. package/src/methods/rate/README.md +86 -86
  93. package/src/multithreading/README.md +77 -77
  94. package/src/multithreading/workers/browser/README.md +8 -8
  95. package/src/multithreading/workers/node/README.md +8 -8
  96. package/src/neat/README.md +148 -148
  97. package/src/neat/adaptive/README.md +120 -120
  98. package/src/neat/adaptive/acceptance/README.md +40 -40
  99. package/src/neat/adaptive/complexity/README.md +137 -137
  100. package/src/neat/adaptive/core/README.md +197 -197
  101. package/src/neat/adaptive/lineage/README.md +90 -90
  102. package/src/neat/adaptive/mutation/README.md +284 -284
  103. package/src/neat/compat/README.md +43 -43
  104. package/src/neat/compat/core/README.md +90 -90
  105. package/src/neat/diversity/README.md +35 -35
  106. package/src/neat/diversity/core/README.md +88 -88
  107. package/src/neat/evaluate/README.md +85 -85
  108. package/src/neat/evaluate/auto-distance/README.md +75 -75
  109. package/src/neat/evaluate/entropy-compat/README.md +37 -37
  110. package/src/neat/evaluate/entropy-sharing/README.md +43 -43
  111. package/src/neat/evaluate/fitness/README.md +23 -23
  112. package/src/neat/evaluate/novelty/README.md +120 -120
  113. package/src/neat/evaluate/objectives/README.md +17 -17
  114. package/src/neat/evaluate/shared/README.md +94 -94
  115. package/src/neat/evolve/README.md +96 -96
  116. package/src/neat/evolve/adaptive/README.md +60 -60
  117. package/src/neat/evolve/objectives/README.md +63 -63
  118. package/src/neat/evolve/offspring/README.md +56 -56
  119. package/src/neat/evolve/population/README.md +171 -171
  120. package/src/neat/evolve/runtime/README.md +79 -79
  121. package/src/neat/evolve/speciation/README.md +74 -74
  122. package/src/neat/evolve/warnings/README.md +10 -10
  123. package/src/neat/export/README.md +114 -114
  124. package/src/neat/helpers/README.md +50 -50
  125. package/src/neat/init/README.md +9 -9
  126. package/src/neat/lineage/core/README.md +101 -101
  127. package/src/neat/multiobjective/category/README.md +74 -74
  128. package/src/neat/multiobjective/crowding/README.md +272 -272
  129. package/src/neat/multiobjective/dominance/README.md +171 -171
  130. package/src/neat/multiobjective/fronts/README.md +68 -68
  131. package/src/neat/multiobjective/metrics/README.md +43 -43
  132. package/src/neat/multiobjective/objectives/README.md +31 -31
  133. package/src/neat/multiobjective/shared/README.md +27 -27
  134. package/src/neat/mutation/README.md +97 -97
  135. package/src/neat/mutation/add-conn/README.md +115 -115
  136. package/src/neat/mutation/add-node/README.md +126 -126
  137. package/src/neat/mutation/flow/README.md +149 -149
  138. package/src/neat/mutation/repair/README.md +185 -185
  139. package/src/neat/mutation/select/README.md +117 -117
  140. package/src/neat/mutation/shared/README.md +32 -32
  141. package/src/neat/objectives/README.md +25 -25
  142. package/src/neat/objectives/core/README.md +67 -67
  143. package/src/neat/pruning/README.md +40 -40
  144. package/src/neat/pruning/core/README.md +171 -171
  145. package/src/neat/pruning/facade/README.md +32 -32
  146. package/src/neat/rng/README.md +104 -104
  147. package/src/neat/rng/core/README.md +137 -137
  148. package/src/neat/rng/facade/README.md +50 -50
  149. package/src/neat/selection/README.md +111 -111
  150. package/src/neat/selection/core/README.md +227 -227
  151. package/src/neat/selection/facade/README.md +61 -61
  152. package/src/neat/shared/README.md +163 -163
  153. package/src/neat/speciation/README.md +31 -31
  154. package/src/neat/speciation/threshold/README.md +35 -35
  155. package/src/neat/species/README.md +25 -25
  156. package/src/neat/species/core/README.md +20 -20
  157. package/src/neat/species/core/shared/README.md +18 -18
  158. package/src/neat/species/history/context/README.md +22 -22
  159. package/src/neat/telemetry/accessors/README.md +58 -58
  160. package/src/neat/telemetry/exports/README.md +233 -233
  161. package/src/neat/telemetry/facade/README.md +252 -252
  162. package/src/neat/telemetry/facade/archive/README.md +57 -57
  163. package/src/neat/telemetry/facade/buffer/README.md +43 -43
  164. package/src/neat/telemetry/facade/lineage/README.md +12 -12
  165. package/src/neat/telemetry/facade/objectives/README.md +44 -44
  166. package/src/neat/telemetry/facade/runtime/README.md +26 -26
  167. package/src/neat/telemetry/facade/species/README.md +27 -27
  168. package/src/neat/telemetry/metrics/README.md +696 -696
  169. package/src/neat/telemetry/recorder/README.md +57 -57
  170. package/src/neat/telemetry/types/README.md +32 -32
  171. package/src/neat/topology-intent/README.md +75 -75
  172. package/src/utils/README.md +193 -193
  173. package/test/examples/asciiMaze/browser-entry/README.md +92 -92
  174. package/test/examples/asciiMaze/dashboardManager/README.md +109 -109
  175. package/test/examples/asciiMaze/dashboardManager/telemetry/README.md +28 -28
  176. package/test/examples/asciiMaze/evolutionEngine/README.md +1527 -1527
  177. package/test/examples/asciiMaze/mazeMovement/README.md +105 -105
  178. package/test/examples/asciiMaze/mazeMovement/finalization/README.md +16 -16
  179. package/test/examples/asciiMaze/mazeMovement/policy/README.md +57 -57
  180. package/test/examples/asciiMaze/mazeMovement/runtime/README.md +52 -52
  181. package/test/examples/asciiMaze/mazeMovement/shaping/README.md +46 -46
  182. package/test/examples/flappy_bird/browser-entry/README.md +508 -508
  183. package/test/examples/flappy_bird/browser-entry/host/README.md +101 -101
  184. package/test/examples/flappy_bird/browser-entry/host/resize/README.md +144 -144
  185. package/test/examples/flappy_bird/browser-entry/network-view/README.md +194 -194
  186. package/test/examples/flappy_bird/browser-entry/playback/README.md +278 -278
  187. package/test/examples/flappy_bird/browser-entry/playback/background/README.md +129 -129
  188. package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/README.md +502 -502
  189. package/test/examples/flappy_bird/browser-entry/playback/frame-render/README.md +139 -139
  190. package/test/examples/flappy_bird/browser-entry/playback/snapshot/README.md +10 -10
  191. package/test/examples/flappy_bird/browser-entry/playback/trail/README.md +43 -43
  192. package/test/examples/flappy_bird/browser-entry/playback/worker-channel/README.md +30 -30
  193. package/test/examples/flappy_bird/browser-entry/runtime/README.md +59 -59
  194. package/test/examples/flappy_bird/browser-entry/visualization/README.md +276 -276
  195. package/test/examples/flappy_bird/browser-entry/worker-channel/README.md +16 -16
  196. package/test/examples/flappy_bird/constants/README.md +1070 -1070
  197. package/test/examples/flappy_bird/environment/README.md +22 -22
  198. package/test/examples/flappy_bird/evaluation/README.md +32 -32
  199. package/test/examples/flappy_bird/evaluation/rollout/README.md +141 -141
  200. package/test/examples/flappy_bird/flappy-evolution-worker/README.md +425 -425
  201. package/test/examples/flappy_bird/simulation-shared/README.md +170 -170
  202. package/test/examples/flappy_bird/simulation-shared/observation/README.md +109 -109
  203. package/test/examples/flappy_bird/trainer/README.md +325 -325
  204. package/test/examples/flappy_bird/trainer/evaluation/README.md +74 -74
  205. package/scripts/analyze-trace.ts +0 -590
  206. package/scripts/copy-examples.mjs +0 -114
  207. package/scripts/export-onnx.mjs +0 -86
  208. package/scripts/generate-bench-tables.mjs +0 -182
  209. package/scripts/generate-docs.ts +0 -2900
  210. package/scripts/write-dist-docs-pkg.mjs +0 -16
@@ -2,26 +2,26 @@
2
2
 
3
3
  ## architecture/network/gating/network.gating.utils.types.ts
4
4
 
5
- ### NodeRemovalMutationConfig
6
-
7
- Normalized SUB_NODE mutation configuration used during node-removal rewiring.
8
-
9
- ### PreservedGaters
5
+ ### BridgingConnectionList
10
6
 
11
- Mutable gater collection retained while removing a hidden node.
7
+ Newly created connections that can be assigned preserved gaters.
12
8
 
13
9
  ### ConnectedNodeList
14
10
 
15
11
  Predecessor or successor node collection used during bridge construction.
16
12
 
17
- ### BridgingConnectionList
18
-
19
- Newly created connections that can be assigned preserved gaters.
20
-
21
13
  ### MutableNetworkGatingProps
22
14
 
23
15
  Network shape extension used to flag node index cache invalidation.
24
16
 
17
+ ### NodeRemovalMutationConfig
18
+
19
+ Normalized SUB_NODE mutation configuration used during node-removal rewiring.
20
+
21
+ ### PreservedGaters
22
+
23
+ Mutable gater collection retained while removing a hidden node.
24
+
25
25
  ## architecture/network/gating/network.gating.utils.ts
26
26
 
27
27
  ### gate
@@ -47,26 +47,6 @@ Parameters:
47
47
  - `node` - - Candidate gater node (must belong to network).
48
48
  - `connection` - - Connection to gate.
49
49
 
50
- ### ungate
51
-
52
- ```ts
53
- ungate(
54
- connection: default,
55
- ): void
56
- ```
57
-
58
- Remove gating from a connection, restoring its static weight contribution.
59
-
60
- Idempotent: If the connection is not currently gated, the call performs no structural changes
61
- (and optionally logs a warning). After ungating, the connection's weight will be used directly
62
- without modulation by a gater activation.
63
-
64
- Complexity: O(n) where n = number of gated connections (indexOf lookup) – typically small.
65
-
66
- Parameters:
67
- - `this` - - Bound Network instance.
68
- - `connection` - - Connection to ungate.
69
-
70
50
  ### removeNode
71
51
 
72
52
  ```ts
@@ -103,6 +83,26 @@ Parameters:
103
83
  - `this` - - Bound Network instance.
104
84
  - `node` - - Hidden node to remove.
105
85
 
86
+ ### ungate
87
+
88
+ ```ts
89
+ ungate(
90
+ connection: default,
91
+ ): void
92
+ ```
93
+
94
+ Remove gating from a connection, restoring its static weight contribution.
95
+
96
+ Idempotent: If the connection is not currently gated, the call performs no structural changes
97
+ (and optionally logs a warning). After ungating, the connection's weight will be used directly
98
+ without modulation by a gater activation.
99
+
100
+ Complexity: O(n) where n = number of gated connections (indexOf lookup) – typically small.
101
+
102
+ Parameters:
103
+ - `this` - - Bound Network instance.
104
+ - `connection` - - Connection to ungate.
105
+
106
106
  ## architecture/network/gating/network.gating.gate.utils.ts
107
107
 
108
108
  ### assertGaterNodeBelongsToNetwork
@@ -122,47 +122,37 @@ Parameters:
122
122
 
123
123
  Returns: Nothing.
124
124
 
125
- ### isConnectionAlreadyGated
125
+ ### attachGaterToConnection
126
126
 
127
127
  ```ts
128
- isConnectionAlreadyGated(
128
+ attachGaterToConnection(
129
+ network: default,
130
+ node: default,
129
131
  connection: default,
130
- ): boolean
132
+ ): void
131
133
  ```
132
134
 
133
- Determine whether a connection already has a gater node assigned.
135
+ Attach a gater to a connection and track that connection in the network gate list.
134
136
 
135
137
  Parameters:
136
- - `connection` - - Connection candidate.
137
-
138
- Returns: True when a gater is already set; otherwise false.
139
-
140
- ### warnConnectionAlreadyGated
141
-
142
- ```ts
143
- warnConnectionAlreadyGated(): void
144
- ```
145
-
146
- Emit a warning when a gate operation is skipped due to existing gating.
138
+ - `network` - - Network being updated.
139
+ - `node` - - Gater node to attach.
140
+ - `connection` - - Connection to gate.
147
141
 
148
142
  Returns: Nothing.
149
143
 
150
- ### attachGaterToConnection
144
+ ### detachConnectionFromGater
151
145
 
152
146
  ```ts
153
- attachGaterToConnection(
154
- network: default,
155
- node: default,
147
+ detachConnectionFromGater(
156
148
  connection: default,
157
149
  ): void
158
150
  ```
159
151
 
160
- Attach a gater to a connection and track that connection in the network gate list.
152
+ Remove reverse gater bookkeeping from a connection's gater node.
161
153
 
162
154
  Parameters:
163
- - `network` - - Network being updated.
164
- - `node` - - Gater node to attach.
165
- - `connection` - - Connection to gate.
155
+ - `connection` - - Connection to detach from its gater.
166
156
 
167
157
  Returns: Nothing.
168
158
 
@@ -183,15 +173,20 @@ Parameters:
183
173
 
184
174
  Returns: Zero-based index in the gates list, or -1 when absent.
185
175
 
186
- ### warnMissingGateConnection
176
+ ### isConnectionAlreadyGated
187
177
 
188
178
  ```ts
189
- warnMissingGateConnection(): void
179
+ isConnectionAlreadyGated(
180
+ connection: default,
181
+ ): boolean
190
182
  ```
191
183
 
192
- Emit a warning when an ungate request targets a non-tracked connection.
184
+ Determine whether a connection already has a gater node assigned.
193
185
 
194
- Returns: Nothing.
186
+ Parameters:
187
+ - `connection` - - Connection candidate.
188
+
189
+ Returns: True when a gater is already set; otherwise false.
195
190
 
196
191
  ### removeGateAtIndex
197
192
 
@@ -210,18 +205,23 @@ Parameters:
210
205
 
211
206
  Returns: Nothing.
212
207
 
213
- ### detachConnectionFromGater
208
+ ### warnConnectionAlreadyGated
214
209
 
215
210
  ```ts
216
- detachConnectionFromGater(
217
- connection: default,
218
- ): void
211
+ warnConnectionAlreadyGated(): void
219
212
  ```
220
213
 
221
- Remove reverse gater bookkeeping from a connection's gater node.
214
+ Emit a warning when a gate operation is skipped due to existing gating.
222
215
 
223
- Parameters:
224
- - `connection` - - Connection to detach from its gater.
216
+ Returns: Nothing.
217
+
218
+ ### warnMissingGateConnection
219
+
220
+ ```ts
221
+ warnMissingGateConnection(): void
222
+ ```
223
+
224
+ Emit a warning when an ungate request targets a non-tracked connection.
225
225
 
226
226
  Returns: Nothing.
227
227
 
@@ -244,32 +244,24 @@ Parameters:
244
244
 
245
245
  Returns: Index of the node in the network node list.
246
246
 
247
- ### resolveSubNodeMutationConfig
248
-
249
- ```ts
250
- resolveSubNodeMutationConfig(): NodeRemovalMutationConfig
251
- ```
252
-
253
- Resolve the active SUB_NODE mutation configuration shape.
254
-
255
- Returns: Normalized SUB_NODE config when available; otherwise undefined.
256
-
257
- ### disconnectNodeSelfLoop
247
+ ### createBridgingConnections
258
248
 
259
249
  ```ts
260
- disconnectNodeSelfLoop(
250
+ createBridgingConnections(
261
251
  network: default,
262
- node: default,
263
- ): void
252
+ predecessorNodes: ConnectedNodeList,
253
+ successorNodes: ConnectedNodeList,
254
+ ): BridgingConnectionList
264
255
  ```
265
256
 
266
- Disconnect a node self-loop before broader edge rewiring.
257
+ Create bridging connections from each predecessor to each successor when valid.
267
258
 
268
259
  Parameters:
269
- - `network` - - Network being updated.
270
- - `node` - - Node whose self-loop should be removed.
260
+ - `network` - - Network where bridge connections are created.
261
+ - `predecessorNodes` - - Source nodes collected from inbound edges.
262
+ - `successorNodes` - - Target nodes collected from outbound edges.
271
263
 
272
- Returns: Nothing.
264
+ Returns: Newly created bridge connections.
273
265
 
274
266
  ### disconnectInboundConnections
275
267
 
@@ -292,6 +284,23 @@ Parameters:
292
284
 
293
285
  Returns: Predecessor nodes that previously projected into the removed node.
294
286
 
287
+ ### disconnectNodeSelfLoop
288
+
289
+ ```ts
290
+ disconnectNodeSelfLoop(
291
+ network: default,
292
+ node: default,
293
+ ): void
294
+ ```
295
+
296
+ Disconnect a node self-loop before broader edge rewiring.
297
+
298
+ Parameters:
299
+ - `network` - - Network being updated.
300
+ - `node` - - Node whose self-loop should be removed.
301
+
302
+ Returns: Nothing.
303
+
295
304
  ### disconnectOutboundConnections
296
305
 
297
306
  ```ts
@@ -313,24 +322,26 @@ Parameters:
313
322
 
314
323
  Returns: Successor nodes that were previously targeted by the removed node.
315
324
 
316
- ### createBridgingConnections
325
+ ### preserveGaterForReassignment
317
326
 
318
327
  ```ts
319
- createBridgingConnections(
320
- network: default,
321
- predecessorNodes: ConnectedNodeList,
322
- successorNodes: ConnectedNodeList,
323
- ): BridgingConnectionList
328
+ preserveGaterForReassignment(
329
+ connection: default,
330
+ removedNode: default,
331
+ preservedGaters: PreservedGaters,
332
+ subNodeConfig: NodeRemovalMutationConfig,
333
+ ): void
324
334
  ```
325
335
 
326
- Create bridging connections from each predecessor to each successor when valid.
336
+ Preserve a gater for later reassignment when gate retention is enabled.
327
337
 
328
338
  Parameters:
329
- - `network` - - Network where bridge connections are created.
330
- - `predecessorNodes` - - Source nodes collected from inbound edges.
331
- - `successorNodes` - - Target nodes collected from outbound edges.
339
+ - `connection` - - Connection being detached.
340
+ - `removedNode` - - Node currently being removed.
341
+ - `preservedGaters` - - Mutable list of gaters to keep.
342
+ - `subNodeConfig` - - Current SUB_NODE mutation settings.
332
343
 
333
- Returns: Newly created bridge connections.
344
+ Returns: Nothing.
334
345
 
335
346
  ### reassignPreservedGaters
336
347
 
@@ -351,23 +362,6 @@ Parameters:
351
362
 
352
363
  Returns: Nothing.
353
364
 
354
- ### ungateConnectionsGatedByNode
355
-
356
- ```ts
357
- ungateConnectionsGatedByNode(
358
- network: default,
359
- node: default,
360
- ): void
361
- ```
362
-
363
- Ungate all connections that are currently gated by the removed node.
364
-
365
- Parameters:
366
- - `network` - - Network performing ungate operations.
367
- - `node` - - Node whose gated connections should be released.
368
-
369
- Returns: Nothing.
370
-
371
365
  ### removeNodeAtIndex
372
366
 
373
367
  ```ts
@@ -385,26 +379,30 @@ Parameters:
385
379
 
386
380
  Returns: Nothing.
387
381
 
388
- ### preserveGaterForReassignment
382
+ ### resolveSubNodeMutationConfig
389
383
 
390
384
  ```ts
391
- preserveGaterForReassignment(
392
- connection: default,
393
- removedNode: default,
394
- preservedGaters: PreservedGaters,
395
- subNodeConfig: NodeRemovalMutationConfig,
396
- ): void
385
+ resolveSubNodeMutationConfig(): NodeRemovalMutationConfig
397
386
  ```
398
387
 
399
- Preserve a gater for later reassignment when gate retention is enabled.
388
+ Resolve the active SUB_NODE mutation configuration shape.
389
+
390
+ Returns: Normalized SUB_NODE config when available; otherwise undefined.
391
+
392
+ ### selectRandomIndex
393
+
394
+ ```ts
395
+ selectRandomIndex(
396
+ length: number,
397
+ ): number
398
+ ```
399
+
400
+ Select a uniformly random integer index in the range [0, length).
400
401
 
401
402
  Parameters:
402
- - `connection` - - Connection being detached.
403
- - `removedNode` - - Node currently being removed.
404
- - `preservedGaters` - - Mutable list of gaters to keep.
405
- - `subNodeConfig` - - Current SUB_NODE mutation settings.
403
+ - `length` - - Upper bound (exclusive).
406
404
 
407
- Returns: Nothing.
405
+ Returns: Random zero-based index.
408
406
 
409
407
  ### shouldCreateBridgeConnection
410
408
 
@@ -423,17 +421,19 @@ Parameters:
423
421
 
424
422
  Returns: True when the pair is distinct and no projection already exists.
425
423
 
426
- ### selectRandomIndex
424
+ ### ungateConnectionsGatedByNode
427
425
 
428
426
  ```ts
429
- selectRandomIndex(
430
- length: number,
431
- ): number
427
+ ungateConnectionsGatedByNode(
428
+ network: default,
429
+ node: default,
430
+ ): void
432
431
  ```
433
432
 
434
- Select a uniformly random integer index in the range [0, length).
433
+ Ungate all connections that are currently gated by the removed node.
435
434
 
436
435
  Parameters:
437
- - `length` - - Upper bound (exclusive).
436
+ - `network` - - Network performing ungate operations.
437
+ - `node` - - Node whose gated connections should be released.
438
438
 
439
- Returns: Random zero-based index.
439
+ Returns: Nothing.