@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.
- package/.github/copilot-instructions.md +11 -0
- package/.github/skills/trace-analyzer-extension/SKILL.md +3 -3
- package/.github/skills/trace-analyzer-extension/assets/extension-checklist.md +1 -1
- package/.github/skills/trace-analyzer-extension/references/analyzer-extension-workflow.md +1 -1
- package/.github/skills/trace-audit-reporting/SKILL.md +3 -3
- package/.github/skills/trace-audit-reporting/references/trace-analysis-workflow.md +1 -1
- package/package.json +19 -13
- package/plans/Flappy_Bird_Folder_Documentation_Pass.md +4 -4
- package/plans/README.md +24 -0
- package/plans/Roadmap.md +62 -40
- package/plans/analyze-trace-solid-split.plans.md +66 -0
- package/plans/architecture-solid-split.plans.md +9 -15
- package/plans/asciiMaze-typescript-repair.plans.md +1 -1
- package/plans/generate-docs-solid-split.plans.md +87 -0
- package/plans/methods-docs.plans.md +25 -1
- package/plans/methods-solid-split.plans.md +14 -14
- package/plans/neat-docs.plans.md +9 -1
- package/plans/neat-test-surface-repair.plans.md +1 -1
- package/plans/render-docs-html-solid-split.plans.md +68 -0
- package/plans/src-no-explicit-any-cleanup.plans.md +1 -1
- package/plans/utils-docs.plans.md +6 -1
- package/scripts/analyze-trace/analyze-trace.analysis.ts +479 -0
- package/scripts/analyze-trace/analyze-trace.constants.ts +35 -0
- package/scripts/analyze-trace/analyze-trace.io.ts +69 -0
- package/scripts/analyze-trace/analyze-trace.report.ts +100 -0
- package/scripts/analyze-trace/analyze-trace.shared.ts +116 -0
- package/scripts/analyze-trace/analyze-trace.ts +45 -0
- package/scripts/analyze-trace/analyze-trace.types.ts +72 -0
- package/scripts/assets/theme.css +80 -23
- package/scripts/copy-examples.ts +239 -0
- package/scripts/export-onnx.ts +223 -0
- package/scripts/generate-bench-tables.ts +378 -37
- package/scripts/generate-docs/generate-docs.constants.ts +107 -0
- package/scripts/generate-docs/generate-docs.order.ts +355 -0
- package/scripts/generate-docs/generate-docs.state.ts +31 -0
- package/scripts/generate-docs/generate-docs.targets.ts +165 -0
- package/scripts/generate-docs/generate-docs.ts +63 -0
- package/scripts/generate-docs/generate-docs.types.ts +112 -0
- package/scripts/generate-docs/output/generate-docs.output.folder-index.utils.ts +167 -0
- package/scripts/generate-docs/output/generate-docs.output.ordering.utils.ts +353 -0
- package/scripts/generate-docs/output/generate-docs.output.readme.utils.ts +420 -0
- package/scripts/generate-docs/output/generate-docs.output.ts +123 -0
- package/scripts/generate-docs/output/generate-docs.output.warnings.utils.ts +219 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.collection.utils.ts +365 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.jsdoc.utils.ts +373 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.normalize.utils.ts +155 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.render.utils.ts +149 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.signature.utils.ts +289 -0
- package/scripts/generate-docs/symbols/generate-docs.symbols.ts +11 -0
- package/scripts/mermaid-cli.mjs +102 -22
- package/scripts/mermaid-cli.ts +736 -0
- package/scripts/render-docs-html/render-docs-html.assets.ts +54 -0
- package/scripts/render-docs-html/render-docs-html.mermaid.ts +245 -0
- package/scripts/{render-docs-html.sidebar.ts → render-docs-html/render-docs-html.navigation.ts} +141 -144
- package/scripts/render-docs-html/render-docs-html.pages.ts +333 -0
- package/scripts/render-docs-html/render-docs-html.shared.ts +333 -0
- package/scripts/render-docs-html/render-docs-html.types.ts +42 -0
- package/scripts/render-docs-html.ts +23 -587
- package/scripts/run-docs.ts +238 -0
- package/scripts/write-dist-docs-pkg.ts +40 -0
- package/src/README.md +75 -75
- package/src/architecture/connection/README.md +5 -5
- package/src/architecture/layer/README.md +508 -508
- package/src/architecture/network/README.md +1458 -1458
- package/src/architecture/network/activate/README.md +694 -694
- package/src/architecture/network/bootstrap/README.md +77 -77
- package/src/architecture/network/connect/README.md +74 -74
- package/src/architecture/network/deterministic/README.md +135 -135
- package/src/architecture/network/evolve/README.md +364 -364
- package/src/architecture/network/gating/README.md +130 -130
- package/src/architecture/network/genetic/README.md +399 -399
- package/src/architecture/network/mutate/README.md +897 -897
- package/src/architecture/network/onnx/README.md +720 -720
- package/src/architecture/network/onnx/export/README.md +728 -728
- package/src/architecture/network/onnx/export/layers/README.md +450 -450
- package/src/architecture/network/onnx/import/README.md +618 -618
- package/src/architecture/network/onnx/schema/README.md +32 -32
- package/src/architecture/network/prune/README.md +245 -245
- package/src/architecture/network/remove/README.md +135 -135
- package/src/architecture/network/runtime/README.md +106 -106
- package/src/architecture/network/serialize/README.md +542 -542
- package/src/architecture/network/slab/README.md +608 -608
- package/src/architecture/network/standalone/README.md +212 -212
- package/src/architecture/network/stats/README.md +84 -84
- package/src/architecture/network/topology/README.md +465 -465
- package/src/architecture/network/training/README.md +200 -200
- package/src/architecture/node/README.md +5 -5
- package/src/architecture/nodePool/README.md +14 -14
- package/src/methods/README.md +99 -99
- package/src/methods/activation/README.md +189 -189
- package/src/methods/cost/README.md +131 -131
- package/src/methods/rate/README.md +86 -86
- package/src/multithreading/README.md +77 -77
- package/src/multithreading/workers/browser/README.md +8 -8
- package/src/multithreading/workers/node/README.md +8 -8
- package/src/neat/README.md +148 -148
- package/src/neat/adaptive/README.md +120 -120
- package/src/neat/adaptive/acceptance/README.md +40 -40
- package/src/neat/adaptive/complexity/README.md +137 -137
- package/src/neat/adaptive/core/README.md +197 -197
- package/src/neat/adaptive/lineage/README.md +90 -90
- package/src/neat/adaptive/mutation/README.md +284 -284
- package/src/neat/compat/README.md +43 -43
- package/src/neat/compat/core/README.md +90 -90
- package/src/neat/diversity/README.md +35 -35
- package/src/neat/diversity/core/README.md +88 -88
- package/src/neat/evaluate/README.md +85 -85
- package/src/neat/evaluate/auto-distance/README.md +75 -75
- package/src/neat/evaluate/entropy-compat/README.md +37 -37
- package/src/neat/evaluate/entropy-sharing/README.md +43 -43
- package/src/neat/evaluate/fitness/README.md +23 -23
- package/src/neat/evaluate/novelty/README.md +120 -120
- package/src/neat/evaluate/objectives/README.md +17 -17
- package/src/neat/evaluate/shared/README.md +94 -94
- package/src/neat/evolve/README.md +96 -96
- package/src/neat/evolve/adaptive/README.md +60 -60
- package/src/neat/evolve/objectives/README.md +63 -63
- package/src/neat/evolve/offspring/README.md +56 -56
- package/src/neat/evolve/population/README.md +171 -171
- package/src/neat/evolve/runtime/README.md +79 -79
- package/src/neat/evolve/speciation/README.md +74 -74
- package/src/neat/evolve/warnings/README.md +10 -10
- package/src/neat/export/README.md +114 -114
- package/src/neat/helpers/README.md +50 -50
- package/src/neat/init/README.md +9 -9
- package/src/neat/lineage/core/README.md +101 -101
- package/src/neat/multiobjective/category/README.md +74 -74
- package/src/neat/multiobjective/crowding/README.md +272 -272
- package/src/neat/multiobjective/dominance/README.md +171 -171
- package/src/neat/multiobjective/fronts/README.md +68 -68
- package/src/neat/multiobjective/metrics/README.md +43 -43
- package/src/neat/multiobjective/objectives/README.md +31 -31
- package/src/neat/multiobjective/shared/README.md +27 -27
- package/src/neat/mutation/README.md +97 -97
- package/src/neat/mutation/add-conn/README.md +115 -115
- package/src/neat/mutation/add-node/README.md +126 -126
- package/src/neat/mutation/flow/README.md +149 -149
- package/src/neat/mutation/repair/README.md +185 -185
- package/src/neat/mutation/select/README.md +117 -117
- package/src/neat/mutation/shared/README.md +32 -32
- package/src/neat/objectives/README.md +25 -25
- package/src/neat/objectives/core/README.md +67 -67
- package/src/neat/pruning/README.md +40 -40
- package/src/neat/pruning/core/README.md +171 -171
- package/src/neat/pruning/facade/README.md +32 -32
- package/src/neat/rng/README.md +104 -104
- package/src/neat/rng/core/README.md +137 -137
- package/src/neat/rng/facade/README.md +50 -50
- package/src/neat/selection/README.md +111 -111
- package/src/neat/selection/core/README.md +227 -227
- package/src/neat/selection/facade/README.md +61 -61
- package/src/neat/shared/README.md +163 -163
- package/src/neat/speciation/README.md +31 -31
- package/src/neat/speciation/threshold/README.md +35 -35
- package/src/neat/species/README.md +25 -25
- package/src/neat/species/core/README.md +20 -20
- package/src/neat/species/core/shared/README.md +18 -18
- package/src/neat/species/history/context/README.md +22 -22
- package/src/neat/telemetry/accessors/README.md +58 -58
- package/src/neat/telemetry/exports/README.md +233 -233
- package/src/neat/telemetry/facade/README.md +252 -252
- package/src/neat/telemetry/facade/archive/README.md +57 -57
- package/src/neat/telemetry/facade/buffer/README.md +43 -43
- package/src/neat/telemetry/facade/lineage/README.md +12 -12
- package/src/neat/telemetry/facade/objectives/README.md +44 -44
- package/src/neat/telemetry/facade/runtime/README.md +26 -26
- package/src/neat/telemetry/facade/species/README.md +27 -27
- package/src/neat/telemetry/metrics/README.md +696 -696
- package/src/neat/telemetry/recorder/README.md +57 -57
- package/src/neat/telemetry/types/README.md +32 -32
- package/src/neat/topology-intent/README.md +75 -75
- package/src/utils/README.md +193 -193
- package/test/examples/asciiMaze/browser-entry/README.md +92 -92
- package/test/examples/asciiMaze/dashboardManager/README.md +109 -109
- package/test/examples/asciiMaze/dashboardManager/telemetry/README.md +28 -28
- package/test/examples/asciiMaze/evolutionEngine/README.md +1527 -1527
- package/test/examples/asciiMaze/mazeMovement/README.md +105 -105
- package/test/examples/asciiMaze/mazeMovement/finalization/README.md +16 -16
- package/test/examples/asciiMaze/mazeMovement/policy/README.md +57 -57
- package/test/examples/asciiMaze/mazeMovement/runtime/README.md +52 -52
- package/test/examples/asciiMaze/mazeMovement/shaping/README.md +46 -46
- package/test/examples/flappy_bird/browser-entry/README.md +508 -508
- package/test/examples/flappy_bird/browser-entry/host/README.md +101 -101
- package/test/examples/flappy_bird/browser-entry/host/resize/README.md +144 -144
- package/test/examples/flappy_bird/browser-entry/network-view/README.md +194 -194
- package/test/examples/flappy_bird/browser-entry/playback/README.md +278 -278
- package/test/examples/flappy_bird/browser-entry/playback/background/README.md +129 -129
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/README.md +502 -502
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/README.md +139 -139
- package/test/examples/flappy_bird/browser-entry/playback/snapshot/README.md +10 -10
- package/test/examples/flappy_bird/browser-entry/playback/trail/README.md +43 -43
- package/test/examples/flappy_bird/browser-entry/playback/worker-channel/README.md +30 -30
- package/test/examples/flappy_bird/browser-entry/runtime/README.md +59 -59
- package/test/examples/flappy_bird/browser-entry/visualization/README.md +276 -276
- package/test/examples/flappy_bird/browser-entry/worker-channel/README.md +16 -16
- package/test/examples/flappy_bird/constants/README.md +1070 -1070
- package/test/examples/flappy_bird/environment/README.md +22 -22
- package/test/examples/flappy_bird/evaluation/README.md +32 -32
- package/test/examples/flappy_bird/evaluation/rollout/README.md +141 -141
- package/test/examples/flappy_bird/flappy-evolution-worker/README.md +425 -425
- package/test/examples/flappy_bird/simulation-shared/README.md +170 -170
- package/test/examples/flappy_bird/simulation-shared/observation/README.md +109 -109
- package/test/examples/flappy_bird/trainer/README.md +325 -325
- package/test/examples/flappy_bird/trainer/evaluation/README.md +74 -74
- package/scripts/analyze-trace.ts +0 -590
- package/scripts/copy-examples.mjs +0 -114
- package/scripts/export-onnx.mjs +0 -86
- package/scripts/generate-bench-tables.mjs +0 -182
- package/scripts/generate-docs.ts +0 -2900
- package/scripts/write-dist-docs-pkg.mjs +0 -16
|
@@ -15,6 +15,13 @@ plus `0.4` carried forward to the next render tick.
|
|
|
15
15
|
|
|
16
16
|
## browser-entry/playback/worker-channel/playback.worker-channel.types.ts
|
|
17
17
|
|
|
18
|
+
### PlaybackStepPayload
|
|
19
|
+
|
|
20
|
+
Shared alias for the worker playback-step payload.
|
|
21
|
+
|
|
22
|
+
This keeps the playback worker-channel modules focused on playback semantics
|
|
23
|
+
instead of long imported protocol names.
|
|
24
|
+
|
|
18
25
|
### PlaybackStepRequest
|
|
19
26
|
|
|
20
27
|
Request payload for one playback-step worker call.
|
|
@@ -36,13 +43,6 @@ Output for the resolved playback-step request and frame-budget remainder.
|
|
|
36
43
|
The resolved request records both the integer step batch to send now and the
|
|
37
44
|
leftover fractional budget to carry into the next render tick.
|
|
38
45
|
|
|
39
|
-
### PlaybackStepPayload
|
|
40
|
-
|
|
41
|
-
Shared alias for the worker playback-step payload.
|
|
42
|
-
|
|
43
|
-
This keeps the playback worker-channel modules focused on playback semantics
|
|
44
|
-
instead of long imported protocol names.
|
|
45
|
-
|
|
46
46
|
## browser-entry/playback/worker-channel/playback.worker-channel.request.services.ts
|
|
47
47
|
|
|
48
48
|
Playback batch-request helpers for the browser worker channel.
|
|
@@ -78,6 +78,29 @@ Once the worker replies with a playback-step payload, these helpers turn that
|
|
|
78
78
|
raw protocol data into the browser-facing telemetry and end-of-episode summary
|
|
79
79
|
values used elsewhere in the playback loop.
|
|
80
80
|
|
|
81
|
+
### resolvePlaybackCompletionSummary
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
resolvePlaybackCompletionSummary(
|
|
85
|
+
playbackStepPayload: { requestId: number; snapshot: EvolutionPlaybackStepSnapshot; instrumentation?: { activationCallsPerFrame: number; simulationStepsPerRaf: number; } | undefined; done: boolean; averagePipesPassed?: number | undefined; p90FramesSurvived?: number | undefined; winnerPipesPassed?: number | undefined; winnerFramesSurvived?: number | undefined; },
|
|
86
|
+
latestLeaderPipesPassed: number,
|
|
87
|
+
latestLeaderFramesSurvived: number,
|
|
88
|
+
): { averagePipesPassed: number; p90FramesSurvived: number; winnerPipesPassed: number; winnerFramesSurvived: number; }
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Resolves final playback summary values when the worker reports completion.
|
|
92
|
+
|
|
93
|
+
Some end-of-episode aggregates may be omitted from the worker payload, so the
|
|
94
|
+
browser falls back to the latest leader values it has already observed during
|
|
95
|
+
playback.
|
|
96
|
+
|
|
97
|
+
Parameters:
|
|
98
|
+
- `playbackStepPayload` - - Playback payload returned by worker.
|
|
99
|
+
- `latestLeaderPipesPassed` - - Last observed leader pipes passed fallback.
|
|
100
|
+
- `latestLeaderFramesSurvived` - - Last observed leader frames fallback.
|
|
101
|
+
|
|
102
|
+
Returns: Final aggregate playback summary.
|
|
103
|
+
|
|
81
104
|
### resolvePlaybackFrameStats
|
|
82
105
|
|
|
83
106
|
```ts
|
|
@@ -103,26 +126,3 @@ Parameters:
|
|
|
103
126
|
- `leaderFramesSurvived` - - Current frame leader survived frames.
|
|
104
127
|
|
|
105
128
|
Returns: Normalized per-frame HUD telemetry payload.
|
|
106
|
-
|
|
107
|
-
### resolvePlaybackCompletionSummary
|
|
108
|
-
|
|
109
|
-
```ts
|
|
110
|
-
resolvePlaybackCompletionSummary(
|
|
111
|
-
playbackStepPayload: { requestId: number; snapshot: EvolutionPlaybackStepSnapshot; instrumentation?: { activationCallsPerFrame: number; simulationStepsPerRaf: number; } | undefined; done: boolean; averagePipesPassed?: number | undefined; p90FramesSurvived?: number | undefined; winnerPipesPassed?: number | undefined; winnerFramesSurvived?: number | undefined; },
|
|
112
|
-
latestLeaderPipesPassed: number,
|
|
113
|
-
latestLeaderFramesSurvived: number,
|
|
114
|
-
): { averagePipesPassed: number; p90FramesSurvived: number; winnerPipesPassed: number; winnerFramesSurvived: number; }
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
Resolves final playback summary values when the worker reports completion.
|
|
118
|
-
|
|
119
|
-
Some end-of-episode aggregates may be omitted from the worker payload, so the
|
|
120
|
-
browser falls back to the latest leader values it has already observed during
|
|
121
|
-
playback.
|
|
122
|
-
|
|
123
|
-
Parameters:
|
|
124
|
-
- `playbackStepPayload` - - Playback payload returned by worker.
|
|
125
|
-
- `latestLeaderPipesPassed` - - Last observed leader pipes passed fallback.
|
|
126
|
-
- `latestLeaderFramesSurvived` - - Last observed leader frames fallback.
|
|
127
|
-
|
|
128
|
-
Returns: Final aggregate playback summary.
|
|
@@ -14,6 +14,13 @@ control presented as one small API.
|
|
|
14
14
|
|
|
15
15
|
## browser-entry/runtime/runtime.ts
|
|
16
16
|
|
|
17
|
+
### RuntimeRunHandle
|
|
18
|
+
|
|
19
|
+
Public run handle returned by the browser runtime entrypoint.
|
|
20
|
+
|
|
21
|
+
The handle is intentionally minimal so callers can treat the demo like a
|
|
22
|
+
long-running process with start/stop/status semantics.
|
|
23
|
+
|
|
17
24
|
### start
|
|
18
25
|
|
|
19
26
|
```ts
|
|
@@ -44,13 +51,6 @@ runHandle.stop();
|
|
|
44
51
|
await runHandle.done;
|
|
45
52
|
```
|
|
46
53
|
|
|
47
|
-
### RuntimeRunHandle
|
|
48
|
-
|
|
49
|
-
Public run handle returned by the browser runtime entrypoint.
|
|
50
|
-
|
|
51
|
-
The handle is intentionally minimal so callers can treat the demo like a
|
|
52
|
-
long-running process with start/stop/status semantics.
|
|
53
|
-
|
|
54
54
|
## browser-entry/runtime/runtime.types.ts
|
|
55
55
|
|
|
56
56
|
Core runtime contracts for the Flappy Bird browser demo.
|
|
@@ -59,20 +59,6 @@ The runtime boundary is where the browser-side application comes together:
|
|
|
59
59
|
DOM host setup, worker creation, telemetry wiring, lifecycle control, and the
|
|
60
60
|
configuration passed into the evolution loop.
|
|
61
61
|
|
|
62
|
-
### RuntimeRunHandle
|
|
63
|
-
|
|
64
|
-
Public run handle returned by the browser runtime entrypoint.
|
|
65
|
-
|
|
66
|
-
The handle is intentionally minimal so callers can treat the demo like a
|
|
67
|
-
long-running process with start/stop/status semantics.
|
|
68
|
-
|
|
69
|
-
### RuntimeGlobalWindow
|
|
70
|
-
|
|
71
|
-
Browser `window` extension shape used for global runtime wiring.
|
|
72
|
-
|
|
73
|
-
This keeps the auto-start and compatibility globals typed without coupling
|
|
74
|
-
the runtime modules directly to ad hoc window-property access.
|
|
75
|
-
|
|
76
62
|
### RuntimeContainerTarget
|
|
77
63
|
|
|
78
64
|
Container argument accepted by the browser runtime start function.
|
|
@@ -80,12 +66,12 @@ Container argument accepted by the browser runtime start function.
|
|
|
80
66
|
Callers can either pass a host element directly or provide an element id for
|
|
81
67
|
late resolution inside the runtime startup path.
|
|
82
68
|
|
|
83
|
-
###
|
|
69
|
+
### RuntimeGlobalWindow
|
|
84
70
|
|
|
85
|
-
|
|
71
|
+
Browser `window` extension shape used for global runtime wiring.
|
|
86
72
|
|
|
87
|
-
|
|
88
|
-
|
|
73
|
+
This keeps the auto-start and compatibility globals typed without coupling
|
|
74
|
+
the runtime modules directly to ad hoc window-property access.
|
|
89
75
|
|
|
90
76
|
### RuntimeHostViewContext
|
|
91
77
|
|
|
@@ -101,6 +87,20 @@ Mutable lifecycle state used to coordinate stop semantics and completion.
|
|
|
101
87
|
The runtime loop is asynchronous and long-lived, so the browser keeps a small
|
|
102
88
|
shared lifecycle object for idempotent shutdown and completion signaling.
|
|
103
89
|
|
|
90
|
+
### RuntimeRunHandle
|
|
91
|
+
|
|
92
|
+
Public run handle returned by the browser runtime entrypoint.
|
|
93
|
+
|
|
94
|
+
The handle is intentionally minimal so callers can treat the demo like a
|
|
95
|
+
long-running process with start/stop/status semantics.
|
|
96
|
+
|
|
97
|
+
### RuntimeStartConfig
|
|
98
|
+
|
|
99
|
+
Static runtime configuration resolved before the browser loop starts.
|
|
100
|
+
|
|
101
|
+
These values define the high-level NEAT and network shape used for the whole
|
|
102
|
+
browser session.
|
|
103
|
+
|
|
104
104
|
### RuntimeStartContext
|
|
105
105
|
|
|
106
106
|
Shared runtime startup dependencies created before evolution begins.
|
|
@@ -116,6 +116,19 @@ These functions cover the pre-loop phase: resolve the host container, build a
|
|
|
116
116
|
typed browser view, derive static config, create telemetry state, spawn the
|
|
117
117
|
worker, and paint the initial HUD before evolution begins.
|
|
118
118
|
|
|
119
|
+
### createRuntimeStartConfig
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
createRuntimeStartConfig(): RuntimeStartConfig
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Resolves the static runtime configuration used during browser startup.
|
|
126
|
+
|
|
127
|
+
Centralizing the configuration fold here makes the runtime entry read as
|
|
128
|
+
orchestration instead of constant plumbing.
|
|
129
|
+
|
|
130
|
+
Returns: Runtime configuration derived from shared constants.
|
|
131
|
+
|
|
119
132
|
### createRuntimeStartContext
|
|
120
133
|
|
|
121
134
|
```ts
|
|
@@ -153,19 +166,6 @@ Parameters:
|
|
|
153
166
|
|
|
154
167
|
Returns: Nothing.
|
|
155
168
|
|
|
156
|
-
### createRuntimeStartConfig
|
|
157
|
-
|
|
158
|
-
```ts
|
|
159
|
-
createRuntimeStartConfig(): RuntimeStartConfig
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
Resolves the static runtime configuration used during browser startup.
|
|
163
|
-
|
|
164
|
-
Centralizing the configuration fold here makes the runtime entry read as
|
|
165
|
-
orchestration instead of constant plumbing.
|
|
166
|
-
|
|
167
|
-
Returns: Runtime configuration derived from shared constants.
|
|
168
|
-
|
|
169
169
|
## browser-entry/runtime/runtime.lifecycle.service.ts
|
|
170
170
|
|
|
171
171
|
Lifecycle and teardown helpers for the browser runtime.
|
|
@@ -247,6 +247,27 @@ for the next evolved generation, updates the HUD and network view, plays back
|
|
|
247
247
|
that generation on the canvas, then folds the outcome into best-so-far
|
|
248
248
|
browser state.
|
|
249
249
|
|
|
250
|
+
### resolveGenerationPopulationNetworks
|
|
251
|
+
|
|
252
|
+
```ts
|
|
253
|
+
resolveGenerationPopulationNetworks(
|
|
254
|
+
generationPayload: { populationNetworksJson?: Record<string, unknown>[] | undefined; },
|
|
255
|
+
bestNetwork: default | undefined,
|
|
256
|
+
): default[]
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
Resolves the browser-side network cache for the current playback generation.
|
|
260
|
+
|
|
261
|
+
Playback birds are created from the generation population in stable array
|
|
262
|
+
order, so the browser can reuse this ordered cache to redraw the network
|
|
263
|
+
panel when the red-bird champion changes.
|
|
264
|
+
|
|
265
|
+
Parameters:
|
|
266
|
+
- `generationPayload` - - Worker generation-ready payload.
|
|
267
|
+
- `bestNetwork` - - Current generation best-network fallback.
|
|
268
|
+
|
|
269
|
+
Returns: Ordered population networks for the upcoming playback session.
|
|
270
|
+
|
|
250
271
|
### runRuntimeEvolutionLoop
|
|
251
272
|
|
|
252
273
|
```ts
|
|
@@ -276,27 +297,6 @@ Dependencies required to run the browser runtime evolution loop.
|
|
|
276
297
|
Grouping these dependencies into one object keeps the public loop entry more
|
|
277
298
|
declarative and avoids a long positional parameter list.
|
|
278
299
|
|
|
279
|
-
### resolveGenerationPopulationNetworks
|
|
280
|
-
|
|
281
|
-
```ts
|
|
282
|
-
resolveGenerationPopulationNetworks(
|
|
283
|
-
generationPayload: { populationNetworksJson?: Record<string, unknown>[] | undefined; },
|
|
284
|
-
bestNetwork: default | undefined,
|
|
285
|
-
): default[]
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
Resolves the browser-side network cache for the current playback generation.
|
|
289
|
-
|
|
290
|
-
Playback birds are created from the generation population in stable array
|
|
291
|
-
order, so the browser can reuse this ordered cache to redraw the network
|
|
292
|
-
panel when the red-bird champion changes.
|
|
293
|
-
|
|
294
|
-
Parameters:
|
|
295
|
-
- `generationPayload` - - Worker generation-ready payload.
|
|
296
|
-
- `bestNetwork` - - Current generation best-network fallback.
|
|
297
|
-
|
|
298
|
-
Returns: Ordered population networks for the upcoming playback session.
|
|
299
|
-
|
|
300
300
|
## browser-entry/runtime/runtime.telemetry.service.ts
|
|
301
301
|
|
|
302
302
|
Runtime telemetry helpers for live browser HUD updates.
|