@reicek/neataptic-ts 0.1.28 → 0.1.29
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 -11
- package/.github/skills/educational-docs/SKILL.md +1 -1
- package/.github/skills/educational-docs/assets/readme-tone-model.md +1 -1
- package/.github/skills/educational-docs/assets/visual-style-guide.md +1 -1
- package/.github/skills/solid-split/SKILL.md +6 -6
- package/.github/skills/trace-audit-reporting/SKILL.md +1 -1
- package/.github/skills/trace-audit-reporting/references/trace-analysis-workflow.md +1 -1
- package/CONTRIBUTING.md +1 -1
- package/README.md +10 -10
- package/STYLEGUIDE.md +2 -2
- package/benchmarks/asciiMaze.micro.bench.ts +10 -0
- package/benchmarks/benchmark.asciiMaze.micro.bench.test.ts +12 -0
- package/{test/benchmarks → benchmarks}/benchmark.browser.headless.test.ts +24 -9
- package/{test/benchmarks → benchmarks}/benchmark.fieldAudit.test.ts +1 -1
- package/{test/benchmarks → benchmarks}/benchmark.memory.test.ts +5 -5
- package/benchmarks/benchmark.neat.evaluate.hotspot.test.ts +11 -0
- package/{test/benchmarks → benchmarks}/benchmark.nodePool.determinism.test.ts +2 -2
- package/{test/benchmarks → benchmarks}/benchmark.nodePool.memory.test.ts +3 -3
- package/{test/benchmarks → benchmarks}/benchmark.nodePool.removeRelease.test.ts +4 -4
- package/{test/benchmarks → benchmarks}/benchmark.nodePool.stress.test.ts +2 -2
- package/{test/benchmarks → benchmarks}/benchmark.poolStats.persist.test.ts +1 -1
- package/{test/benchmarks → benchmarks}/benchmark.serialization.gater.test.ts +4 -4
- package/{test/benchmarks → benchmarks}/benchmark.slab.fragmentation.bounds.test.ts +4 -4
- package/{test/benchmarks → benchmarks}/benchmark.slab.fragmentation.trend.test.ts +4 -4
- package/{test/examples → examples}/README.md +1 -1
- package/{test/examples → examples}/asciiMaze/README.md +1 -1
- package/{test/examples → examples}/asciiMaze/asciiMaze.e2e.test.ts +1 -1
- package/{test/examples → examples}/asciiMaze/dashboardManager/dashboardManager.ts +1 -1
- package/{test/examples → examples}/asciiMaze/dashboardManager/dashboardManager.types.ts +1 -1
- package/{test/examples → examples}/asciiMaze/evolutionEngine/curriculumPhase.ts +1 -1
- package/{test/examples → examples}/asciiMaze/evolutionEngine/evolutionEngine.types.ts +3 -3
- package/{test/examples → examples}/asciiMaze/evolutionEngine/neatConfiguration.ts +1 -1
- package/{test/examples → examples}/asciiMaze/evolutionEngine/optionsAndSetup.ts +1 -1
- package/{test/examples → examples}/asciiMaze/evolutionEngine/populationDynamics.ts +3 -3
- package/{test/examples → examples}/asciiMaze/evolutionEngine/populationPruning.ts +1 -1
- package/{test/examples → examples}/asciiMaze/evolutionEngine/telemetryMetrics.ts +2 -2
- package/{test/examples → examples}/asciiMaze/evolutionEngine/trainingWarmStart.ts +2 -2
- package/{test/examples → examples}/asciiMaze/evolutionEngine.ts +1 -1
- package/{test/examples → examples}/asciiMaze/index.html +3 -3
- package/{test/examples → examples}/asciiMaze/networkRefinement.ts +1 -1
- package/{test/examples → examples}/asciiMaze/refineWinner.ts +2 -2
- package/{test/examples → examples}/flappy_bird/README.md +2 -2
- package/{test/examples → examples}/flappy_bird/browser-entry/README.md +71 -3
- package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.visualization.types.ts +55 -1
- package/{test/examples → examples}/flappy_bird/browser-entry/host/host.ts +491 -8
- package/{test/examples → examples}/flappy_bird/browser-entry/network-view/README.md +84 -12
- package/{test/examples → examples}/flappy_bird/browser-entry/network-view/network-view.draw.service.ts +49 -21
- package/{test/examples → examples}/flappy_bird/browser-entry/network-view/network-view.topology.utils.ts +1 -1
- package/{test/examples → examples}/flappy_bird/browser-entry/network-view/network-view.ts +144 -28
- package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.service.test.ts +5 -5
- package/{test/examples → examples}/flappy_bird/browser-entry/runtime/README.md +215 -0
- package/{test/examples → examples}/flappy_bird/browser-entry/runtime/docs.order.json +2 -0
- package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.evolution-loop.service.ts +121 -10
- package/examples/flappy_bird/browser-entry/runtime/runtime.startup-preview.service.ts +318 -0
- package/examples/flappy_bird/browser-entry/runtime/runtime.startup-preview.utils.test.ts +103 -0
- package/examples/flappy_bird/browser-entry/runtime/runtime.startup-preview.utils.ts +103 -0
- package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.types.ts +6 -0
- package/{test/examples → examples}/flappy_bird/browser-entry/visualization/README.md +31 -46
- package/{test/examples → examples}/flappy_bird/browser-entry/visualization/visualization.colors.utils.ts +1 -1
- package/{test/examples → examples}/flappy_bird/browser-entry/visualization/visualization.constants.ts +14 -19
- package/{test/examples → examples}/flappy_bird/browser-entry/visualization/visualization.draw.service.ts +254 -182
- package/{test/examples → examples}/flappy_bird/browser-entry/visualization/visualization.legend.utils.ts +1 -1
- package/{test/examples → examples}/flappy_bird/constants/README.md +72 -8
- package/{test/examples → examples}/flappy_bird/constants/constants.network.ts +1 -1
- package/{test/examples → examples}/flappy_bird/constants/constants.runtime.ts +30 -5
- package/{test/examples → examples}/flappy_bird/constants/constants.ts +8 -0
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.evolution.service.test.ts +2 -2
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.evolution.service.ts +2 -2
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.playback.service.ts +2 -2
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.runtime.service.ts +2 -2
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.utils.ts +1 -1
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.snapshot.utils.test.ts +1 -1
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.ts +2 -2
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.types.ts +1 -1
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.warm-start.service.test.ts +2 -2
- package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.warm-start.service.ts +2 -2
- package/{test/examples → examples}/flappy_bird/index.html +5 -4
- package/{test/examples → examples}/flappy_bird/trainer/README.md +1 -1
- package/{test/examples → examples}/flappy_bird/trainer/trainer.setup.service.ts +3 -3
- package/{test/examples → examples}/flappy_bird/trainer/trainer.ts +1 -1
- package/jest.config.mjs +30 -15
- package/package.json +9 -8
- package/plans/HyperEvoDevo_Racing_Curriculum_and_Behavioral_Drives.md +1 -1
- package/plans/Memory_Optimization.md +2 -2
- package/plans/README.md +2 -2
- package/plans/Roadmap.md +4 -4
- package/plans/flappy-network-visualizer-hover-highlight.plans.md +95 -0
- package/plans/flappy-startup-loading-preview.logs.md +56 -0
- package/plans/flappy-startup-loading-preview.plans.md +58 -0
- package/plans/test-colocation-and-root-examples.logs.md +27 -0
- package/plans/test-colocation-and-root-examples.plans.md +38 -0
- package/scripts/analyze-trace/analyze-trace.io.ts +1 -1
- package/scripts/analyze-trace/analyze-trace.ts +1 -1
- package/scripts/copy-examples.ts +2 -2
- package/scripts/generate-bench-tables.ts +1 -1
- package/scripts/generate-docs/generate-docs.constants.ts +5 -15
- package/scripts/render-docs-html/render-docs-html.shared.ts +10 -13
- package/src/architecture/activationArrayPool/activationArrayPool.capacity.test.ts +29 -0
- package/src/architecture/activationArrayPool/activationArrayPool.test.ts +93 -0
- package/src/architecture/connection/connection.test.ts +290 -0
- package/src/architecture/group/group.test.ts +308 -0
- package/src/architecture/layer/layer.test.ts +194 -0
- package/src/architecture/network/activate/network.activate.test.ts +361 -0
- package/src/architecture/network/deterministic/network.deterministic.test.ts +211 -0
- package/src/architecture/network/evolve/network.evolve.branches.test.ts +95 -0
- package/src/architecture/network/evolve/network.evolve.multithread.test.ts +157 -0
- package/src/architecture/network/evolve/network.evolve.test.ts +325 -0
- package/src/architecture/network/gating/network.gating.test.ts +236 -0
- package/src/architecture/network/genetic/network.genetic.test.ts +311 -0
- package/src/architecture/network/mutate/network.mutate.effects.test.ts +199 -0
- package/src/architecture/network/mutate/network.mutate.test.ts +540 -0
- package/src/architecture/network/onnx/export/network.onnx.export.conv.test.ts +432 -0
- package/src/architecture/network/onnx/export/network.onnx.export.recurrent.test.ts +183 -0
- package/src/architecture/network/onnx/export/network.onnx.export.test.ts +722 -0
- package/src/architecture/network/onnx/import/network.onnx.import.recurrent.test.ts +180 -0
- package/src/architecture/network/onnx/import/network.onnx.import.test.ts +195 -0
- package/src/architecture/network/onnx/network.onnx.test.ts +134 -0
- package/src/architecture/network/prune/network.prune.test.ts +416 -0
- package/src/architecture/network/remove/network.remove.test.ts +103 -0
- package/src/architecture/network/runtime/network.runtime.dropconnect.test.ts +82 -0
- package/src/architecture/network/runtime/network.runtime.dropout.test.ts +126 -0
- package/src/architecture/network/runtime/network.runtime.stochasticdepth.test.ts +82 -0
- package/src/architecture/network/runtime/network.runtime.weightnoise.test.ts +112 -0
- package/src/architecture/network/serialize/network.serialize.test.ts +762 -0
- package/src/architecture/network/slab/network.slab.alloc.stats.reuse.test.ts +51 -0
- package/src/architecture/network/slab/network.slab.async.test.ts +210 -0
- package/src/architecture/network/slab/network.slab.capacity.test.ts +97 -0
- package/src/architecture/network/slab/network.slab.fast-path.test.ts +162 -0
- package/src/architecture/network/slab/network.slab.flags.test.ts +67 -0
- package/src/architecture/network/slab/network.slab.gain.omission.test.ts +111 -0
- package/src/architecture/network/slab/network.slab.plasticity.test.ts +89 -0
- package/src/architecture/network/slab/network.slab.versioning.test.ts +57 -0
- package/src/architecture/network/standalone/README.md +15 -0
- package/src/architecture/network/standalone/network.standalone.test.ts +374 -0
- package/src/architecture/network/standalone/network.standalone.utils.activation.ts +24 -1
- package/src/architecture/network/standalone/network.standalone.utils.types.ts +2 -2
- package/src/architecture/network/stats/network.stats.test.ts +170 -0
- package/src/architecture/network/topology/network.topology.architecture.test.ts +169 -0
- package/src/architecture/network/topology/network.topology.test.ts +283 -0
- package/src/architecture/network/training/network.training.advanced.test.ts +215 -0
- package/src/architecture/network/training/network.training.basic.test.ts +643 -0
- package/src/architecture/network/training/network.training.cost.test.ts +140 -0
- package/src/architecture/network/training/network.training.dropout.test.ts +117 -0
- package/src/architecture/network/training/network.training.earlystopping.test.ts +136 -0
- package/src/architecture/network/training/network.training.gradient.features.test.ts +175 -0
- package/src/architecture/network/training/network.training.gradient.refinements.test.ts +225 -0
- package/src/architecture/network/training/network.training.gradient.separate-bias.test.ts +92 -0
- package/src/architecture/network/training/network.training.helpers.test.ts +239 -0
- package/src/architecture/network/training/network.training.learning-capability.test.ts +279 -0
- package/src/architecture/network/training/network.training.mixed-precision.test.ts +131 -0
- package/src/architecture/network/training/network.training.optimizer.behavior.test.ts +216 -0
- package/src/architecture/network/training/network.training.optimizer.formula.test.ts +195 -0
- package/src/architecture/network/training/network.training.optimizer.test.ts +105 -0
- package/src/architecture/network/training/network.training.plateau-smoothing.test.ts +72 -0
- package/src/architecture/network/training/network.training.propagate.test.ts +68 -0
- package/src/architecture/network/training/network.training.regularization.test.ts +275 -0
- package/src/architecture/network/training/network.training.smoothing.test.ts +188 -0
- package/src/architecture/node/node.test.ts +337 -0
- package/src/architecture/nodePool/nodePool.test.ts +93 -0
- package/src/methods/activation/activation.test.ts +462 -0
- package/src/methods/connection/connection.test.ts +104 -0
- package/src/methods/cost/cost.test.ts +244 -0
- package/src/methods/crossover/crossover.test.ts +109 -0
- package/src/methods/gating/gating.test.ts +91 -0
- package/src/methods/mutation/mutation.test.ts +214 -0
- package/src/methods/rate/rate.test.ts +533 -0
- package/src/methods/selection/selection.test.ts +115 -0
- package/src/multithreading/multi.test.ts +65 -0
- package/src/multithreading/multi.utils.test.ts +220 -0
- package/src/multithreading/workers/node/testworker.test.ts +147 -0
- package/src/multithreading/workers/node/worker.test.ts +41 -0
- package/src/multithreading/workers/workers.test.ts +25 -0
- package/src/neat/adaptive/acceptance/adaptive.acceptance.test.ts +88 -0
- package/src/neat/adaptive/complexity/adaptive.complexity.test.ts +276 -0
- package/src/neat/adaptive/lineage/adaptive.lineage.test.ts +213 -0
- package/src/neat/adaptive/mutation/adaptive.mutation.test.ts +214 -0
- package/src/neat/compat/compat.test.ts +88 -0
- package/src/neat/diversity/diversity.test.ts +77 -0
- package/src/neat/evaluate/auto-distance/evaluate.auto-distance.test.ts +62 -0
- package/src/neat/evaluate/entropy-compat/evaluate.entropy-compat.test.ts +68 -0
- package/src/neat/evaluate/entropy-sharing/evaluate.entropy-sharing.test.ts +63 -0
- package/src/neat/evaluate/fitness/evaluate.fitness.test.ts +119 -0
- package/src/neat/evaluate/novelty/evaluate.novelty.test.ts +86 -0
- package/src/neat/evaluate/objectives/evaluate.objectives.test.ts +72 -0
- package/src/neat/evolve/adaptive/evolve.adaptive.test.ts +287 -0
- package/src/neat/evolve/evolve.test.ts +41 -0
- package/src/neat/evolve/objectives/evolve.objectives.test.ts +328 -0
- package/src/neat/evolve/offspring/evolve.offspring.test.ts +93 -0
- package/src/neat/evolve/population/evolve.population.test.ts +336 -0
- package/src/neat/evolve/speciation/evolve.speciation.test.ts +51 -0
- package/src/neat/export/neat.export.test.ts +178 -0
- package/src/neat/helpers/neat.helpers.test.ts +210 -0
- package/src/neat/init/neat.init.test.ts +96 -0
- package/src/neat/lineage/lineage.test.ts +33 -0
- package/src/neat/maintenance/facade/maintenance.facade.test.ts +35 -0
- package/src/neat/multiobjective/category/multiobjective.category.test.ts +317 -0
- package/src/neat/multiobjective/multiobjective.test.ts +140 -0
- package/src/neat/mutation/add-conn/mutation.add-conn.test.ts +259 -0
- package/src/neat/mutation/add-node/mutation.add-node.test.ts +198 -0
- package/src/neat/mutation/flow/mutation.flow.test.ts +87 -0
- package/src/neat/mutation/mutation.test.ts +257 -0
- package/src/neat/mutation/select/mutation.select.test.ts +298 -0
- package/src/neat/objectives/objectives.test.ts +117 -0
- package/src/neat/pruning/pruning.test.ts +137 -0
- package/src/neat/rng/rng.test.ts +59 -0
- package/src/neat/selection/facade/selection.facade.test.ts +95 -0
- package/src/neat/selection/selection.test.ts +103 -0
- package/src/neat/speciation/assignment/speciation.assignment.test.ts +150 -0
- package/{test/neat/neat.speciation.age.penalty.test.ts → src/neat/speciation/history/speciation.history.test.ts} +24 -19
- package/src/neat/speciation/sharing/speciation.sharing.test.ts +181 -0
- package/src/neat/speciation/speciation.test.ts +57 -0
- package/src/neat/speciation/threshold/speciation.threshold.test.ts +169 -0
- package/src/neat/species/history/read/species.history.read.test.ts +204 -0
- package/src/neat/telemetry/exports/telemetry.exports.test.ts +263 -0
- package/src/neat/telemetry/facade/archive/telemetry.facade.archive.test.ts +169 -0
- package/src/neat/telemetry/facade/buffer/telemetry.facade.buffer.test.ts +265 -0
- package/src/neat/telemetry/facade/lineage/telemetry.facade.lineage.test.ts +34 -0
- package/src/neat/telemetry/facade/novelty/telemetry.facade.novelty.test.ts +42 -0
- package/src/neat/telemetry/facade/objectives/telemetry.facade.objectives.test.ts +83 -0
- package/src/neat/telemetry/facade/operator-stats/telemetry.facade.operator-stats.test.ts +31 -0
- package/src/neat/telemetry/facade/runtime/telemetry.facade.runtime.test.ts +81 -0
- package/src/neat/telemetry/facade/species/telemetry.facade.species.test.ts +162 -0
- package/src/neat/telemetry/metrics/telemetry.metrics.diversity.test.ts +78 -0
- package/src/neat/telemetry/metrics/telemetry.metrics.lineage.test.ts +82 -0
- package/src/neat/telemetry/metrics/telemetry.metrics.objectives.test.ts +122 -0
- package/src/neat/telemetry/recorder/telemetry.recorder.test.ts +302 -0
- package/src/neat/telemetry/runtime/telemetry.runtime.test.ts +128 -0
- package/src/neat/topology-intent/neat.topology-intent.test.ts +154 -0
- package/testing/jest-setup.ts +22 -0
- package/tsconfig.json +1 -1
- package/tsconfig.test.json +10 -5
- package/bench-browser/dev.bundle.1759662879868-23916.js +0 -10517
- package/bench-browser/dev.bundle.js +0 -15045
- package/bench-browser/dev.bundle.js.map +0 -7
- package/bench-browser/jest-dev.html +0 -25
- package/bench-browser/jest-prod.html +0 -25
- package/bench-browser/prod.bundle.1759662879868-23916.js +0 -41
- package/bench-browser/prod.bundle.js +0 -10155
- package/bench-browser/tmp-dev.html +0 -25
- package/bench-browser/tmp-prod.html +0 -25
- package/test/architecture/activationArrayPool.capacity.test.ts +0 -30
- package/test/architecture/activationArrayPool.test.ts +0 -46
- package/test/architecture/connection.test.ts +0 -301
- package/test/architecture/group.test.ts +0 -964
- package/test/architecture/layer.test.ts +0 -1605
- package/test/architecture/node.test.ts +0 -1608
- package/test/architecture/nodePool.test.ts +0 -50
- package/test/benchmarks/benchmark.asciiMaze.micro.bench.test.ts +0 -0
- package/test/benchmarks/benchmark.neat.evaluate.hotspot.test.ts +0 -0
- package/test/methods/activation.test.ts +0 -1081
- package/test/methods/connection.test.ts +0 -147
- package/test/methods/cost.test.ts +0 -1123
- package/test/methods/crossover.test.ts +0 -206
- package/test/methods/gating.test.ts +0 -150
- package/test/methods/mutation.test.ts +0 -454
- package/test/methods/optimizers.advanced.test.ts +0 -88
- package/test/methods/optimizers.behavior.test.ts +0 -114
- package/test/methods/optimizers.formula.test.ts +0 -109
- package/test/methods/rate.cosineWarmRestarts.test.ts +0 -44
- package/test/methods/rate.linearWarmupDecay.test.ts +0 -41
- package/test/methods/rate.reduceOnPlateau.test.ts +0 -45
- package/test/methods/rate.test.ts +0 -684
- package/test/methods/selection.test.ts +0 -245
- package/test/multithreading/activations.functions.test.ts +0 -55
- package/test/multithreading/multi.test.ts +0 -309
- package/test/multithreading/worker.node.process.test.ts +0 -39
- package/test/multithreading/workers.coverage.test.ts +0 -44
- package/test/multithreading/workers.dynamic.import.test.ts +0 -8
- package/test/neat/neat.adaptive.ancestorUniq.cooldown.test.ts +0 -45
- package/test/neat/neat.adaptive.ancestorUniq.epsilon.test.ts +0 -94
- package/test/neat/neat.adaptive.ancestorUniq.lineagePressure.test.ts +0 -84
- package/test/neat/neat.adaptive.complexityBudget.connShrink.test.ts +0 -33
- package/test/neat/neat.adaptive.complexityBudget.growth.novelty.test.ts +0 -45
- package/test/neat/neat.adaptive.complexityBudget.minClamp.test.ts +0 -27
- package/test/neat/neat.adaptive.complexityBudget.test.ts +0 -36
- package/test/neat/neat.adaptive.complexityBudget.trend.test.ts +0 -59
- package/test/neat/neat.adaptive.criterion.complexity.test.ts +0 -55
- package/test/neat/neat.adaptive.minimalCriterion.rejection.test.ts +0 -36
- package/test/neat/neat.adaptive.mutation.amount.adapt.test.ts +0 -41
- package/test/neat/neat.adaptive.mutation.anneal.strategy.test.ts +0 -38
- package/test/neat/neat.adaptive.mutation.exploreLow.strategy.test.ts +0 -38
- package/test/neat/neat.adaptive.mutation.strategy.test.ts +0 -44
- package/test/neat/neat.adaptive.mutation.twotier.balance.test.ts +0 -39
- package/test/neat/neat.adaptive.mutation.twotier.fallback.single.test.ts +0 -35
- package/test/neat/neat.adaptive.operator.adaptation.decay.balance.test.ts +0 -38
- package/test/neat/neat.adaptive.operator.bandit.decay.test.ts +0 -30
- package/test/neat/neat.adaptive.operator.decay.test.ts +0 -33
- package/test/neat/neat.adaptive.phasedComplexity.test.ts +0 -27
- package/test/neat/neat.adaptive.phasedComplexity.toggle.test.ts +0 -30
- package/test/neat/neat.adaptive.pruning.test.ts +0 -28
- package/test/neat/neat.adaptive.targetSpecies.test.ts +0 -43
- package/test/neat/neat.additional.coverage.test.ts +0 -146
- package/test/neat/neat.advanced.enhancements.test.ts +0 -85
- package/test/neat/neat.advanced.test.ts +0 -606
- package/test/neat/neat.compat.distance.cache.test.ts +0 -52
- package/test/neat/neat.diversity.autocompat.test.ts +0 -55
- package/test/neat/neat.diversity.metrics.test.ts +0 -22
- package/test/neat/neat.diversity.stats.test.ts +0 -43
- package/test/neat/neat.enhancements.test.ts +0 -92
- package/test/neat/neat.entropy.ancestorAdaptive.test.ts +0 -158
- package/test/neat/neat.entropy.compat.csv.test.ts +0 -104
- package/test/neat/neat.evolution.pruning.test.ts +0 -39
- package/test/neat/neat.export.meta.fromjson.test.ts +0 -25
- package/test/neat/neat.export.state.rehydrate.test.ts +0 -40
- package/test/neat/neat.fastmode.autotune.test.ts +0 -46
- package/test/neat/neat.helpers.spawn.pool.test.ts +0 -53
- package/test/neat/neat.innovation.test.ts +0 -213
- package/test/neat/neat.lineage.antibreeding.test.ts +0 -53
- package/test/neat/neat.lineage.buildAnc.window.test.ts +0 -32
- package/test/neat/neat.lineage.entropy.test.ts +0 -68
- package/test/neat/neat.lineage.inbreeding.test.ts +0 -68
- package/test/neat/neat.lineage.pressure.test.ts +0 -35
- package/test/neat/neat.multiobjective.adaptive.test.ts +0 -61
- package/test/neat/neat.multiobjective.dynamic.schedule.test.ts +0 -45
- package/test/neat/neat.multiobjective.dynamic.test.ts +0 -38
- package/test/neat/neat.multiobjective.fastsort.delegation.test.ts +0 -66
- package/test/neat/neat.multiobjective.prune.test.ts +0 -45
- package/test/neat/neat.multiobjective.test.ts +0 -21
- package/test/neat/neat.mutation.addconn.cycle.guard.test.ts +0 -66
- package/test/neat/neat.mutation.undefined.pool.test.ts +0 -30
- package/test/neat/neat.objective.events.test.ts +0 -26
- package/test/neat/neat.objective.importance.test.ts +0 -21
- package/test/neat/neat.objective.lifetimes.test.ts +0 -33
- package/test/neat/neat.objectives.register.clear.test.ts +0 -61
- package/test/neat/neat.offspring.allocation.test.ts +0 -37
- package/test/neat/neat.operator.bandit.test.ts +0 -17
- package/test/neat/neat.operator.phases.test.ts +0 -50
- package/test/neat/neat.pruneInactive.behavior.test.ts +0 -69
- package/test/neat/neat.pruning.adaptive.test.ts +0 -69
- package/test/neat/neat.reenable.adaptation.test.ts +0 -24
- package/test/neat/neat.rng.state.test.ts +0 -40
- package/test/neat/neat.selection.strategies.test.ts +0 -51
- package/test/neat/neat.spawn.add.test.ts +0 -156
- package/test/neat/neat.speciation.assign.existing.test.ts +0 -75
- package/test/neat/neat.speciation.auto.tuning.jitter.test.ts +0 -91
- package/test/neat/neat.speciation.create.newSpecies.test.ts +0 -74
- package/test/neat/neat.speciation.fitnessSharing.equal.test.ts +0 -51
- package/test/neat/neat.speciation.fitnessSharing.kernel.test.ts +0 -51
- package/test/neat/neat.speciation.pid.threshold.clip.max.test.ts +0 -81
- package/test/neat/neat.speciation.pid.threshold.clip.min.test.ts +0 -81
- package/test/neat/neat.speciation.stagnation.prune.test.ts +0 -51
- package/test/neat/neat.speciation.test.ts +0 -98
- package/test/neat/neat.species.allocation.telemetry.test.ts +0 -26
- package/test/neat/neat.species.history.csv.test.ts +0 -24
- package/test/neat/neat.species.history.fallbacks.test.ts +0 -102
- package/test/neat/neat.telemetry.advanced.test.ts +0 -286
- package/test/neat/neat.telemetry.csv.lineage.test.ts +0 -24
- package/test/neat/neat.telemetry.fastmode.diversity.test.ts +0 -88
- package/test/neat/neat.telemetry.objective.events.test.ts +0 -109
- package/test/neat/neat.telemetry.parity.test.ts +0 -48
- package/test/neat/neat.telemetry.select.entropy.cache.test.ts +0 -95
- package/test/neat/neat.telemetry.stream.test.ts +0 -27
- package/test/neat/neat.telemetry.test.ts +0 -16
- package/test/neat/neat.test.ts +0 -445
- package/test/neat/neat.topology-intent.test.ts +0 -129
- package/test/neat/neat.utilities.test.ts +0 -62
- package/test/network/__suppress_console.ts +0 -9
- package/test/network/acyclic.topoorder.test.ts +0 -17
- package/test/network/architecture.descriptor.test.ts +0 -111
- package/test/network/checkpoint.metricshook.test.ts +0 -40
- package/test/network/error.handling.test.ts +0 -613
- package/test/network/evolution.test.ts +0 -288
- package/test/network/genetic.test.ts +0 -227
- package/test/network/learning.capability.test.ts +0 -252
- package/test/network/mutation.effects.test.ts +0 -512
- package/test/network/network.activate.test.ts +0 -141
- package/test/network/network.activateBatch.test.ts +0 -30
- package/test/network/network.deterministic.test.ts +0 -77
- package/test/network/network.evolve.branches.test.ts +0 -83
- package/test/network/network.evolve.multithread.branches.test.ts +0 -103
- package/test/network/network.evolve.test.ts +0 -122
- package/test/network/network.gating.removal.test.ts +0 -98
- package/test/network/network.mutate.additional.test.ts +0 -146
- package/test/network/network.mutate.edgecases.test.ts +0 -103
- package/test/network/network.mutate.test.ts +0 -103
- package/test/network/network.prune.earlyexit.test.ts +0 -72
- package/test/network/network.pruning.test.ts +0 -63
- package/test/network/network.remove.errors.test.ts +0 -45
- package/test/network/network.slab.alloc.stats.reuse.test.ts +0 -36
- package/test/network/network.slab.async.test.ts +0 -164
- package/test/network/network.slab.capacity.test.ts +0 -83
- package/test/network/network.slab.fallbacks.test.ts +0 -42
- package/test/network/network.slab.fast.gain.parity.test.ts +0 -43
- package/test/network/network.slab.fast.gating.guard.test.ts +0 -46
- package/test/network/network.slab.fast.parity.test.ts +0 -39
- package/test/network/network.slab.flags.test.ts +0 -52
- package/test/network/network.slab.gain.omission.test.ts +0 -58
- package/test/network/network.slab.gain.release-on-reset.test.ts +0 -50
- package/test/network/network.slab.phase3.test.ts +0 -52
- package/test/network/network.slab.plasticity.test.ts +0 -72
- package/test/network/network.slab.versioning.test.ts +0 -52
- package/test/network/network.stats.test.ts +0 -70
- package/test/network/network.topology-intent.test.ts +0 -44
- package/test/network/network.training.advanced.test.ts +0 -176
- package/test/network/network.training.basic.test.ts +0 -301
- package/test/network/network.training.helpers.test.ts +0 -186
- package/test/network/onnx.export.test.ts +0 -620
- package/test/network/onnx.recurrent.fused.test.ts +0 -178
- package/test/network/pruning.topology.test.ts +0 -323
- package/test/network/regularization.determinism.test.ts +0 -97
- package/test/network/regularization.dropconnect.test.ts +0 -17
- package/test/network/regularization.dropconnect.validation.test.ts +0 -18
- package/test/network/regularization.stochasticdepth.test.ts +0 -42
- package/test/network/regularization.test.ts +0 -863
- package/test/network/regularization.weightnoise.test.ts +0 -35
- package/test/network/setupTests.ts +0 -2
- package/test/network/standalone.test.ts +0 -334
- package/test/network/structure.serialization.test.ts +0 -630
- package/test/onnx/onnx.conv.groundwork.test.ts +0 -105
- package/test/onnx/onnx.conv.infer.test.ts +0 -44
- package/test/onnx/onnx.conv.pool.flatten.test.ts +0 -31
- package/test/onnx/onnx.conv.pool.validation.test.ts +0 -174
- package/test/onnx/onnx.export.test.ts +0 -490
- package/test/onnx/onnx.import.test.ts +0 -127
- package/test/onnx/onnx.roundtrip.test.ts +0 -81
- package/test/training/training.determinism.mixed-precision.test.ts +0 -136
- package/test/training/training.earlystopping.test.ts +0 -91
- package/test/training/training.edge-cases.test.ts +0 -107
- package/test/training/training.extensions.test.ts +0 -48
- package/test/training/training.gradient.features.test.ts +0 -112
- package/test/training/training.gradient.refinements.test.ts +0 -178
- package/test/training/training.gradient.separate-bias.test.ts +0 -41
- package/test/training/training.optimizer.test.ts +0 -59
- package/test/training/training.plateau.smoothing.test.ts +0 -58
- package/test/training/training.smoothing.types.test.ts +0 -178
- package/test/training/training.train.options.coverage.test.ts +0 -52
- package/test/types/es2023.d.ts +0 -10
- package/test/utils/console-helper.ts +0 -80
- package/test/utils/jest-setup.ts +0 -184
- package/test/utils/pollUntil.test.ts +0 -44
- package/test/utils/pollUntil.ts +0 -67
- package/test/utils/test-helpers.ts +0 -180
- /package/{test/benchmarks → benchmarks}/benchmark.browser.memory.test.ts +0 -0
- /package/{test/benchmarks → benchmarks}/benchmark.buildVariants.test.ts +0 -0
- /package/{test/benchmarks → benchmarks}/benchmark.regressionAnnotations.test.ts +0 -0
- /package/{test/benchmarks → benchmarks}/benchmark.report.test.ts +0 -0
- /package/{test/benchmarks → benchmarks}/benchmark.variance.escalation.test.ts +0 -0
- /package/{test/benchmarks → benchmarks}/benchmark.variance.test.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/asciiMaze.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.abort.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.constants.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.curriculum.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.globals.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.host.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.types.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry/browser-entry.utils.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browser-entry.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browserLogger.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/browserTerminalUtility.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/colors.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/archive/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/archive/dashboardManager.archive.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/dashboardManager.constants.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/dashboardManager.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/dashboardManager.utils.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/live/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/live/dashboardManager.live.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/telemetry/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager/telemetry/dashboardManager.telemetry.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/dashboardManager.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/docs.order.json +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/engineState.constants.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/engineState.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/engineState.types.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/engineState.utils.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/evolutionEngine.constants.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/evolutionEngine.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/evolutionEngine.utils.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/evolutionLoop.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/networkInspection.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/rngAndTiming.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/sampling.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/scratchPools.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/evolutionEngine/setupHelpers.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/fitness.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/fitness.types.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/index.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/interfaces.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/finalization/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/finalization/mazeMovement.finalization.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/mazeMovement.constants.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/mazeMovement.services.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/mazeMovement.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/mazeMovement.types.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/mazeMovement.utils.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/policy/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/policy/mazeMovement.policy.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/runtime/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/runtime/mazeMovement.runtime.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/shaping/README.md +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement/shaping/mazeMovement.shaping.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeMovement.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeUtils.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeVision.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazeVisualization.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/mazes.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/networkVisualization.ts +0 -0
- /package/{test/examples → examples}/asciiMaze/terminalUtility.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.host.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.math.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.network-view.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.observation.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.playback.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.render.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.runtime.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.simulation.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.spawn.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.stats.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.stats.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.telemetry.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.text-frame.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.viewport.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.visualization.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.worker-channel.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/browser-entry.worker.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/host.canvas.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/host.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/host.dom.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/host.resize.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/host.stats.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/host.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/resize/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/resize/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/resize/host.resize.service.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/resize/host.resize.service.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/resize/host.resize.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/resize/host.resize.service.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/host/resize/host.resize.service.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/network-view/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/network-view/network-view.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/network-view/network-view.labels.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/network-view/network-view.layout.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/network-view/network-view.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.batch.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.cache.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.geometry.batch.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.geometry.layout.utils.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.geometry.layout.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.geometry.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.geometry.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.layer.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.math.utils.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.math.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.pulse.selection.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.pulse.timing.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.pulse.utils.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.pulse.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.scene.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/playback.background.cache.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/playback.background.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/playback.background.draw.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/playback.background.scene.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/playback.background.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/playback.background.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/playback.background.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/background/playback.background.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.bird.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.canvas.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.entity.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.scene.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.trail.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.errors.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.frame-render.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.iteration.services.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.iteration.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.loop.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.orchestration.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.render.pipe-outline.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.render.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.render.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.session.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.snapshot.utils.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.snapshot.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.starfield.layer.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.starfield.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.starfield.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.starfield.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.starfield.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.trail.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/playback.worker-channel.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/snapshot/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/snapshot/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/snapshot/playback.snapshot.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/snapshot/playback.snapshot.summary.utils.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/snapshot/playback.snapshot.summary.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/trail/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/trail/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/trail/playback.trail.history.services.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/trail/playback.trail.history.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/trail/playback.trail.opacity.utils.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/trail/playback.trail.opacity.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/worker-channel/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/worker-channel/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/worker-channel/playback.worker-channel.request.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/worker-channel/playback.worker-channel.summary.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/playback/worker-channel/playback.worker-channel.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.browser-globals.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.errors.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.evolution-launch.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.lifecycle.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.startup.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.telemetry.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/runtime/runtime.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/visualization/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/visualization/visualization.errors.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/visualization/visualization.topology.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/visualization/visualization.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/visualization/visualization.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/worker-channel.errors.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/worker-channel.generation.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/worker-channel.playback.service.test.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/worker-channel.playback.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/worker-channel.request.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/worker-channel.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/worker-channel.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/browser-entry/worker-channel/worker-channel.url.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.birds.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.difficulty.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.fitness.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.frame.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.layout.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.network-view.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.observation.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.palette.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.physics.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.pipe-render.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.pipes.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.rendering.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.starfield.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.stats.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/constants.world.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/constants/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/environment/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/environment/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/environment/environment.collision.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/environment/environment.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/environment/environment.observation.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/environment/environment.state.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/environment/environment.step.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/environment/environment.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/evaluation.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/evaluation.fitness.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/evaluation.rollout.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/evaluation.seed.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/evaluation.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/rollout/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/rollout/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/rollout/evaluation.rollout.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/rollout/evaluation.rollout.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/rollout/evaluation.rollout.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/rollout/evaluation.rollout.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/evaluation/rollout/evaluation.rollout.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.errors.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.protocol.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.frame.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.snapshot.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappy.simulation.shared.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappyEnvironment.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappyEvaluation.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/flappyEvolution.worker.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/index.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/rng.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/observation/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/observation/docs.order.json +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/observation/observation.features.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/observation/observation.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/observation/observation.vector.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.control.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.difficulty.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.errors.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.math.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.memory.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.observation.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.spawn.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.statistics.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/simulation-shared/simulation-shared.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainFlappyBird.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/evaluation/README.md +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/evaluation/trainer.evaluation.service.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/evaluation/trainer.evaluation.service.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/evaluation/trainer.evaluation.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/evaluation/trainer.evaluation.service.types.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/evaluation/trainer.evaluation.service.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.constants.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.errors.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.evaluation-plan.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.evaluation.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.fitness.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.loop.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.report.service.services.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.report.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.reporting.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.selection.utils.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.signals.service.ts +0 -0
- /package/{test/examples → examples}/flappy_bird/trainer/trainer.types.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
-
When generating, modifying, or suggesting code that touches files under `src
|
|
5
|
+
When generating, modifying, or suggesting code that touches files under `src/`, `testing/`, `benchmarks/`, or `examples/`, follow the project `STYLEGUIDE.md` rules and perform the quick validations listed below before returning suggestions.
|
|
6
6
|
|
|
7
7
|
## Educational docs preference (JSDoc)
|
|
8
8
|
|
|
@@ -70,7 +70,7 @@ a compressed plan plus matching log.
|
|
|
70
70
|
|
|
71
71
|
For split or refactor work with meaningful documentation scope, let `solid-split` own the boundary work and `educational-docs` own documentation quality.
|
|
72
72
|
|
|
73
|
-
When you touch code under `src
|
|
73
|
+
When you touch code under `src/`, `testing/`, `benchmarks/`, or `examples/`, prefer improving JSDoc so the generated docs are:
|
|
74
74
|
|
|
75
75
|
- **Interesting and explanatory**, not just type signatures.
|
|
76
76
|
- **Example-driven**: include small examples in the main description (prefer fenced code blocks like ```ts) so the docs generator preserves them.
|
|
@@ -109,7 +109,7 @@ When a task touches `.github/workflows/**`, `package.json`, `package-lock.json`,
|
|
|
109
109
|
|
|
110
110
|
Because JSDoc is auto-compiled into each folder's `README.md`, those README files are the fastest condensed overview of a module's purpose, exported surface, neighboring files, and intended usage.
|
|
111
111
|
|
|
112
|
-
Before exploring or editing a folder in `src
|
|
112
|
+
Before exploring or editing a folder in `src/`, `examples/`, `benchmarks/`, or `testing/`, agents should:
|
|
113
113
|
|
|
114
114
|
1. Read the nearest folder `README.md` first.
|
|
115
115
|
- Example: before changing `src/architecture/network/genetic/*`, read `src/architecture/network/genetic/README.md`.
|
|
@@ -137,7 +137,7 @@ belong in that skill.
|
|
|
137
137
|
|
|
138
138
|
## Demo-first library gap policy (critical)
|
|
139
139
|
|
|
140
|
-
Examples and demos in `
|
|
140
|
+
Examples and demos in `examples/` are not places to normalize library ergonomics gaps. They are probes that should reveal where the public API, defaults, or runtime contracts fall short of world-class expectations.
|
|
141
141
|
|
|
142
142
|
When demo work exposes a mismatch between obvious user intent and the library behavior:
|
|
143
143
|
|
|
@@ -206,7 +206,7 @@ Avoid (legacy/less clear):
|
|
|
206
206
|
|
|
207
207
|
## Standard architecture for project files
|
|
208
208
|
|
|
209
|
-
When splitting medium or large modules in `src
|
|
209
|
+
When splitting medium or large modules in `src/`, `examples/`, `benchmarks/`, or `testing/`, prefer a dedicated folder-based module boundary instead of accumulating many sibling files at the parent level.
|
|
210
210
|
|
|
211
211
|
Use this naming convention for a module named `module`:
|
|
212
212
|
|
|
@@ -243,7 +243,7 @@ Architecture rules:
|
|
|
243
243
|
- Avoid one-off naming patterns during refactors; once a module is folderized, keep all follow-up files in the same naming scheme.
|
|
244
244
|
- Replace broad catch-all files with narrower module-owned `*.types.ts`, `*.services.ts`, or `*.utils.ts` files rather than recreating another hub.
|
|
245
245
|
|
|
246
|
-
## Strict rules to enforce (apply to any suggestion touching `src
|
|
246
|
+
## Strict rules to enforce (apply to any suggestion touching `src/`, `testing/`, `benchmarks/`, or `examples/`)
|
|
247
247
|
|
|
248
248
|
1. Naming: avoid short local identifiers. Do not use these short names for non-trivial locals: `dx`, `dy`, `d`, `i`, `a`, `b`, `c`, `p`, `o`, `cand`, `tries`, `idx`.
|
|
249
249
|
- If the original code uses a short name in a tiny loop (1–3 lines) and it is clearly idiomatic, allow `i`, `j` only.
|
|
@@ -251,7 +251,7 @@ Architecture rules:
|
|
|
251
251
|
|
|
252
252
|
2. JSDoc: exported classes/functions/constants and public methods must have JSDoc with `@param` and `@returns` where appropriate. Add short `@example` when behavior is non-obvious.
|
|
253
253
|
|
|
254
|
-
|
|
254
|
+
JSDoc-for-constants rule: All exported or shared default constants in `src/`, `testing/`, `benchmarks/`, and `examples/` must include a concise educational JSDoc explaining what the value controls (e.g., decay factor meaning, floor rates). Keep descriptions short and clarifying.
|
|
255
255
|
|
|
256
256
|
3. Tests: follow the single-expect rule. Each `it()` (or `test()`) must have exactly one top-level `expect(...)` statement. If multiple assertions are needed, split into multiple `it()` cases or use helper assertions.
|
|
257
257
|
|
|
@@ -261,7 +261,7 @@ Architecture rules:
|
|
|
261
261
|
|
|
262
262
|
6. Lookup tables and enums: prefer a single table/enum for small fixed mappings (for example direction deltas) and helper methods like `#opposite(direction)` rather than scattered arithmetic.
|
|
263
263
|
|
|
264
|
-
7. Types: avoid `any` and `unknown` in `src
|
|
264
|
+
7. Types: avoid `any` and `unknown` in `src/`, `testing/`, `benchmarks/`, and `examples/`. Use precise types or `// eslint-disable-next-line @typescript-eslint/no-explicit-any` with a short justification comment.
|
|
265
265
|
|
|
266
266
|
8. Local helper structure preference:
|
|
267
267
|
- For new or refactored functions that introduce internal helpers, order the function as:
|
|
@@ -272,7 +272,7 @@ Architecture rules:
|
|
|
272
272
|
- Helpers should be small and pure where practical, with step-level inline comments and JSDoc.
|
|
273
273
|
|
|
274
274
|
9. Mandatory implementation pattern (always; keep cognitive complexity low):
|
|
275
|
-
|
|
275
|
+
- Applies to all new code and any modified/refactored code in `src/`, `testing/`, `benchmarks/`, and `examples/`.
|
|
276
276
|
- Prefer a _declarative top-level flow_ ("collect → transform → fold/return") over deeply nested control flow.
|
|
277
277
|
- Avoid ternary chains (especially nested) for multi-branch fallback logic; use named resolver helpers with early returns instead.
|
|
278
278
|
- When normalizing legacy/loose data, isolate type assertions/casting into a single helper and keep the rest strongly typed.
|
|
@@ -332,7 +332,7 @@ type Output = unknown;
|
|
|
332
332
|
|
|
333
333
|
## Automated validations to run before finalizing a suggestion
|
|
334
334
|
|
|
335
|
-
When you modify or create files under `src
|
|
335
|
+
When you modify or create files under `src/`, `testing/`, `benchmarks/`, or `examples/`, run (or advise running) these quick validations. If you cannot run them, still make sure your suggestion would pass them.
|
|
336
336
|
|
|
337
337
|
1. TypeScript diagnostics
|
|
338
338
|
|
|
@@ -340,7 +340,7 @@ When you modify or create files under `src/` or `test/`, run (or advise running)
|
|
|
340
340
|
|
|
341
341
|
## Purpose
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
Give brief, actionable guidance so suggestions touching `src/`, `testing/`, `benchmarks/`, or `examples/` prioritize compliance with `STYLEGUIDE.md`.
|
|
344
344
|
|
|
345
345
|
Keep it light: prefer small, automated checks and a short validation summary with every patch.
|
|
346
346
|
|
|
@@ -72,7 +72,7 @@ better teaching choice.
|
|
|
72
72
|
- A generated folder README has become so large or monolithic that the better
|
|
73
73
|
fix is to invoke `solid-split` and break the boundary into smaller chapter
|
|
74
74
|
folders before continuing the docs pass.
|
|
75
|
-
- A folder under `src
|
|
75
|
+
- A folder under `src/`, `examples/`, `benchmarks/`, or `testing/` needs richer JSDoc so doc generation becomes
|
|
76
76
|
more useful.
|
|
77
77
|
- A split or refactor changed a module boundary and the documentation story now
|
|
78
78
|
lags behind the code.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# README Tone Model
|
|
2
2
|
|
|
3
3
|
Use this rubric when shaping JSDoc so generated README output feels closer to
|
|
4
|
-
`
|
|
4
|
+
`examples/flappy_bird/README.md` and farther from a dry symbol dump.
|
|
5
5
|
|
|
6
6
|
## What Makes The Flappy Bird README Strong
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: solid-split
|
|
3
|
-
description: 'Plan and execute repo-consistent SOLID splits in NeatapticTS across src
|
|
3
|
+
description: 'Plan and execute repo-consistent SOLID splits in NeatapticTS across src/, examples/, benchmarks/, or testing/ surfaces, starting from a user-specified root such as #file:flappy_bird. Use when folderizing a module, thinning a compatibility facade, improving JSDoc so generated README files read naturally, or continuing an incremental split pass with stable imports.'
|
|
4
4
|
argument-hint: 'Describe the split root, target module or folder, any relevant plan file, and optional detail about the next boundary to extract.'
|
|
5
5
|
user-invocable: true
|
|
6
6
|
disable-model-invocation: false
|
|
@@ -9,8 +9,8 @@ disable-model-invocation: false
|
|
|
9
9
|
# Solid Split Playbook
|
|
10
10
|
|
|
11
11
|
Use this skill to run the NeatapticTS house style for deliberate, resumable,
|
|
12
|
-
documentation-aware SOLID splits in either library code under `src/` or
|
|
13
|
-
|
|
12
|
+
documentation-aware SOLID splits in either library code under `src/` or
|
|
13
|
+
supporting surfaces under `examples/`, `benchmarks/`, and `testing/`.
|
|
14
14
|
|
|
15
15
|
This skill is designed to complement the existing `solid-split` custom agent.
|
|
16
16
|
The skill defines the repository-specific split protocol, documentation bar,
|
|
@@ -170,7 +170,7 @@ one-pass rewrites.
|
|
|
170
170
|
- Keep top-level flows declarative: collect, transform, fold, return.
|
|
171
171
|
- Use descriptive names and ES2023-first style where the touched code benefits.
|
|
172
172
|
|
|
173
|
-
For demos under `
|
|
173
|
+
For demos under `examples/`, treat DX gaps as library/runtime evidence
|
|
174
174
|
first. Do not normalize demo-specific workarounds if the real issue is a shared
|
|
175
175
|
API, default, or runtime contract.
|
|
176
176
|
|
|
@@ -247,8 +247,8 @@ small-chapter split pattern.
|
|
|
247
247
|
- A good split outcome is one where a new reader can discover the boundary by
|
|
248
248
|
drilling down through a few concise README pages rather than one monolithic
|
|
249
249
|
README.
|
|
250
|
-
- Apply this standard everywhere the split skill is used: `src/`, `
|
|
251
|
-
`
|
|
250
|
+
- Apply this standard everywhere the split skill is used: `src/`, `examples/`,
|
|
251
|
+
`benchmarks/`, `testing/`, `scripts/`, browser/demo surfaces, tooling folders, and any
|
|
252
252
|
other project area that has become too broad for one file or one folder README.
|
|
253
253
|
- Do not treat examples, scripts, or support tooling as exceptions. If they are
|
|
254
254
|
large enough to need a SOLID split, they should follow the same direct-path,
|
|
@@ -99,7 +99,7 @@ surface for the library rather than the final destination for a workaround.
|
|
|
99
99
|
|
|
100
100
|
- This repository already includes `scripts/analyze-trace/analyze-trace.ts` for compact,
|
|
101
101
|
thread-aware trace audits.
|
|
102
|
-
- For work in `src
|
|
102
|
+
- For work in `src/`, `examples/`, `benchmarks/`, or `testing/`, consult the nearest folder `README.md` before
|
|
103
103
|
deep file reads.
|
|
104
104
|
- For substantial architecture findings, align the report with the relevant
|
|
105
105
|
`plans/` document when one exists.
|
|
@@ -23,7 +23,7 @@ npm run trace:analyze -- <trace-path> --top=15
|
|
|
23
23
|
Example:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npm run trace:analyze --
|
|
26
|
+
npm run trace:analyze -- examples/flappy_bird/Trace-20260309T191949.json --top=15
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
## What the Analyzer Produces
|
package/CONTRIBUTING.md
CHANGED
|
@@ -43,7 +43,7 @@ npm run docs
|
|
|
43
43
|
|
|
44
44
|
- Keep changes small and focused. Prefer many small PRs over one large PR.
|
|
45
45
|
- Follow TypeScript types and avoid `any` unless necessary; include type updates where relevant.
|
|
46
|
-
- Add or update tests for behavioral changes.
|
|
46
|
+
- Add or update tests for behavioral changes. Most behavioral tests now live alongside their owners in `src/**/*.test.ts`, the shared global Jest setup lives in `testing/jest-setup.ts`, and longer-running suites live in `examples/` and `benchmarks/`; run them with `npm test`.
|
|
47
47
|
|
|
48
48
|
---
|
|
49
49
|
|
package/README.md
CHANGED
|
@@ -35,9 +35,9 @@ If you want a library you can inspect, modify, and learn from while still runnin
|
|
|
35
35
|
| Goal | Best place to start |
|
|
36
36
|
| --- | --- |
|
|
37
37
|
| Read the architecture from the source side | [src/README.md](./src/README.md) |
|
|
38
|
-
| Study the strongest end-to-end example | [
|
|
39
|
-
| Study curriculum learning and reward shaping | [
|
|
40
|
-
| Browse runnable example source directly | [
|
|
38
|
+
| Study the strongest end-to-end example | [examples/flappy_bird/README.md](./examples/flappy_bird/README.md) |
|
|
39
|
+
| Study curriculum learning and reward shaping | [examples/asciiMaze/README.md](./examples/asciiMaze/README.md) |
|
|
40
|
+
| Browse runnable example source directly | [examples](./examples) |
|
|
41
41
|
| Review contribution standards | [CONTRIBUTING.md](./CONTRIBUTING.md) and [STYLEGUIDE.md](./STYLEGUIDE.md) |
|
|
42
42
|
|
|
43
43
|
## Reading paths
|
|
@@ -47,13 +47,13 @@ If you want a library you can inspect, modify, and learn from while still runnin
|
|
|
47
47
|
1. Read [docs/index.html](./docs/index.html).
|
|
48
48
|
2. Read [src/README.md](./src/README.md).
|
|
49
49
|
3. Open one example:
|
|
50
|
-
- [
|
|
51
|
-
- [
|
|
50
|
+
- [examples/flappy_bird/README.md](./examples/flappy_bird/README.md)
|
|
51
|
+
- [examples/asciiMaze/README.md](./examples/asciiMaze/README.md)
|
|
52
52
|
|
|
53
53
|
### If you want runnable source first
|
|
54
54
|
|
|
55
|
-
- [
|
|
56
|
-
- [
|
|
55
|
+
- [examples/flappy_bird](./examples/flappy_bird) for the clearest full-system example.
|
|
56
|
+
- [examples/asciiMaze](./examples/asciiMaze) for evolution orchestration, telemetry, and visualization.
|
|
57
57
|
|
|
58
58
|
### If you want library internals
|
|
59
59
|
|
|
@@ -66,7 +66,7 @@ If you want a library you can inspect, modify, and learn from while still runnin
|
|
|
66
66
|
|
|
67
67
|
### Flappy Bird
|
|
68
68
|
|
|
69
|
-
[
|
|
69
|
+
[examples/flappy_bird](./examples/flappy_bird) is the best single example if you want to understand how NeatapticTS feels in a real project.
|
|
70
70
|
|
|
71
71
|
It combines:
|
|
72
72
|
|
|
@@ -78,7 +78,7 @@ It combines:
|
|
|
78
78
|
|
|
79
79
|
### ASCII Maze
|
|
80
80
|
|
|
81
|
-
[
|
|
81
|
+
[examples/asciiMaze](./examples/asciiMaze) is the best companion example if you want to study curriculum progression, compact observations, reward shaping, and browser plus terminal visualization.
|
|
82
82
|
|
|
83
83
|
## Install
|
|
84
84
|
|
|
@@ -117,7 +117,7 @@ For options, telemetry, and subsystem details, continue in [docs/index.html](./d
|
|
|
117
117
|
| Path | Purpose |
|
|
118
118
|
| --- | --- |
|
|
119
119
|
| [src](./src) | Core library code and generated module docs |
|
|
120
|
-
| [
|
|
120
|
+
| [examples](./examples) | Educational examples and demos |
|
|
121
121
|
| [docs](./docs) | Generated documentation site and example assets |
|
|
122
122
|
| [scripts](./scripts) | Build and docs tooling |
|
|
123
123
|
| [plans](./plans) | Architecture and roadmap material |
|
package/STYLEGUIDE.md
CHANGED
|
@@ -429,7 +429,7 @@ All tests in the repository must follow these rules to keep examples, tutorials,
|
|
|
429
429
|
- Aim for 100% coverage on logic you change or add. For legacy modules where 100% isn't feasible in one pass, document missing coverage areas and add tests incrementally.
|
|
430
430
|
|
|
431
431
|
- Check existing tests and folder patterns before creating a new test file:
|
|
432
|
-
- Use existing folders (e.g. `
|
|
432
|
+
- Use existing folders (e.g. `src/neat/`, `benchmarks/`, or `examples/`) and file naming conventions as a guide.
|
|
433
433
|
- Reuse and extend existing fixtures/helpers instead of adding new duplicate files.
|
|
434
434
|
|
|
435
435
|
Example test layout:
|
|
@@ -508,6 +508,6 @@ Use this regex to find likely candidates to rename (review results manually):
|
|
|
508
508
|
|
|
509
509
|
---
|
|
510
510
|
|
|
511
|
-
If you want, I can run a repo-wide scan and propose a patchset that renames short locals automatically (I will not apply bulk renames without your approval). If you'd like that, say which folders to prioritize (suggestion: `
|
|
511
|
+
If you want, I can run a repo-wide scan and propose a patchset that renames short locals automatically (I will not apply bulk renames without your approval). If you'd like that, say which folders to prioritize (suggestion: `examples/asciiMaze/` then `src/`).
|
|
512
512
|
|
|
513
513
|
Thank you — I'll keep the guide updated as we iterate on modernization and educational docs. <3
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Placeholder CLI entrypoint for the standalone ASCII Maze micro-benchmark.
|
|
3
|
+
*
|
|
4
|
+
* `npm run bench:asciiMaze` historically pointed at a missing legacy file.
|
|
5
|
+
* Packet 10 preserves the command as a documented compatibility seam until a
|
|
6
|
+
* dedicated non-Jest benchmark harness is implemented.
|
|
7
|
+
*/
|
|
8
|
+
console.info(
|
|
9
|
+
'[bench:asciiMaze] Standalone ASCII Maze micro-benchmark harness is not implemented yet.',
|
|
10
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Placeholder for a future standalone ASCII Maze micro-benchmark harness.
|
|
3
|
+
*
|
|
4
|
+
* Packet 10 moves the benchmark lane to `benchmarks/**` but does not invent a
|
|
5
|
+
* new harness where none exists yet. This explicit skipped test keeps the
|
|
6
|
+
* benchmark suite structurally honest and prevents an empty-file failure.
|
|
7
|
+
*/
|
|
8
|
+
describe('benchmark.asciiMaze.micro placeholder', () => {
|
|
9
|
+
it.skip('tracks the standalone ASCII Maze micro-benchmark seam', () => {
|
|
10
|
+
expect(true).toBe(true);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -50,6 +50,15 @@ interface BrowserRunRecord {
|
|
|
50
50
|
} | null;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Captures both the benchmark records and the temporary files created while
|
|
55
|
+
* loading the generated bundles in a browser page.
|
|
56
|
+
*/
|
|
57
|
+
interface HeadlessRunResult {
|
|
58
|
+
runs: BrowserRunRecord[];
|
|
59
|
+
cleanupPaths: string[];
|
|
60
|
+
}
|
|
61
|
+
|
|
53
62
|
/**
|
|
54
63
|
* Builds development & production browser bundles with esbuild.
|
|
55
64
|
*
|
|
@@ -68,7 +77,7 @@ const buildBundles = async (): Promise<{
|
|
|
68
77
|
prodPath: string;
|
|
69
78
|
}> => {
|
|
70
79
|
const esbuild = await import('esbuild');
|
|
71
|
-
const benchDir = path.resolve(__dirname, '
|
|
80
|
+
const benchDir = path.resolve(__dirname, '..', 'bench-browser');
|
|
72
81
|
const entry = path.join(benchDir, 'bench-entry.ts');
|
|
73
82
|
if (!fs.existsSync(entry)) throw new Error('bench-entry.ts missing');
|
|
74
83
|
const ts = Date.now();
|
|
@@ -118,17 +127,17 @@ const buildBundles = async (): Promise<{
|
|
|
118
127
|
const runHeadless = async (paths: {
|
|
119
128
|
devPath: string;
|
|
120
129
|
prodPath: string;
|
|
121
|
-
}): Promise<
|
|
130
|
+
}): Promise<HeadlessRunResult> => {
|
|
122
131
|
let puppeteerModule;
|
|
123
132
|
try {
|
|
124
133
|
puppeteerModule = await import('puppeteer');
|
|
125
134
|
} catch {
|
|
126
|
-
return [];
|
|
135
|
+
return { runs: [], cleanupPaths: [] };
|
|
127
136
|
}
|
|
128
137
|
const puppeteer = puppeteerModule.default ?? puppeteerModule;
|
|
129
|
-
const benchDir = path.resolve(__dirname, '
|
|
138
|
+
const benchDir = path.resolve(__dirname, '..', 'bench-browser');
|
|
130
139
|
const templatePath = path.join(benchDir, 'index.html');
|
|
131
|
-
if (!fs.existsSync(templatePath)) return [];
|
|
140
|
+
if (!fs.existsSync(templatePath)) return { runs: [], cleanupPaths: [] };
|
|
132
141
|
const template = fs.readFileSync(templatePath, 'utf-8');
|
|
133
142
|
const bundles = [
|
|
134
143
|
{ mode: 'dev', path: paths.devPath },
|
|
@@ -138,8 +147,9 @@ const runHeadless = async (paths: {
|
|
|
138
147
|
const browser = await puppeteer
|
|
139
148
|
.launch({ headless: true, args: ['--no-sandbox'] })
|
|
140
149
|
.catch(() => null);
|
|
141
|
-
if (!browser) return [];
|
|
150
|
+
if (!browser) return { runs: [], cleanupPaths: [] };
|
|
142
151
|
const runs: BrowserRunRecord[] = [];
|
|
152
|
+
const cleanupPaths: string[] = [];
|
|
143
153
|
for (const b of bundles) {
|
|
144
154
|
if (!b.path || !fs.existsSync(b.path)) continue;
|
|
145
155
|
const fileName = path.basename(b.path);
|
|
@@ -150,6 +160,7 @@ const runHeadless = async (paths: {
|
|
|
150
160
|
try {
|
|
151
161
|
if (!fs.existsSync(localCopy)) {
|
|
152
162
|
fs.copyFileSync(b.path, localCopy);
|
|
163
|
+
cleanupPaths.push(localCopy);
|
|
153
164
|
}
|
|
154
165
|
} catch {
|
|
155
166
|
// Ignore file copy errors; bundle may already exist
|
|
@@ -161,6 +172,7 @@ const runHeadless = async (paths: {
|
|
|
161
172
|
.replace(/__BUNDLE__/g, fileName);
|
|
162
173
|
const tmpPath = path.join(benchDir, `jest-${b.mode}.${fileName}.html`);
|
|
163
174
|
fs.writeFileSync(tmpPath, html, 'utf-8');
|
|
175
|
+
cleanupPaths.push(tmpPath);
|
|
164
176
|
const page = await browser.newPage();
|
|
165
177
|
await page.goto(`file://${tmpPath}`);
|
|
166
178
|
// Poll the page for the benchmark payload with a hard timeout.
|
|
@@ -207,7 +219,7 @@ const runHeadless = async (paths: {
|
|
|
207
219
|
await page.close();
|
|
208
220
|
}
|
|
209
221
|
await browser.close();
|
|
210
|
-
return runs;
|
|
222
|
+
return { runs, cleanupPaths };
|
|
211
223
|
};
|
|
212
224
|
|
|
213
225
|
/**
|
|
@@ -246,17 +258,20 @@ describe('browser headless benchmark integration', () => {
|
|
|
246
258
|
let runs: BrowserRunRecord[] = [];
|
|
247
259
|
let devPath = '';
|
|
248
260
|
let prodPath = '';
|
|
261
|
+
let cleanupPaths: string[] = [];
|
|
249
262
|
|
|
250
263
|
beforeAll(async () => {
|
|
251
264
|
const built = await buildBundles();
|
|
252
265
|
devPath = built.devPath;
|
|
253
266
|
prodPath = built.prodPath;
|
|
254
|
-
|
|
267
|
+
const headlessRun = await runHeadless(built);
|
|
268
|
+
runs = headlessRun.runs;
|
|
269
|
+
cleanupPaths = headlessRun.cleanupPaths;
|
|
255
270
|
mergeResults(runs);
|
|
256
271
|
});
|
|
257
272
|
|
|
258
273
|
afterAll(() => {
|
|
259
|
-
[devPath, prodPath].forEach((f) => {
|
|
274
|
+
Array.from(new Set([devPath, prodPath, ...cleanupPaths])).forEach((f) => {
|
|
260
275
|
try {
|
|
261
276
|
fs.unlinkSync(f);
|
|
262
277
|
} catch {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
* - Persist an evolving `benchmark.results.json` artifact (≤10 history entries) with
|
|
11
11
|
* provenance (git commit, dist bundle hash) and optional regression annotations.
|
|
12
12
|
*
|
|
13
|
-
* NOTE: This file intentionally lives under `
|
|
13
|
+
* NOTE: This file intentionally lives under `benchmarks/` to leverage Jest's execution & coverage
|
|
14
14
|
* while remaining framework-agnostic for future extraction into a standalone CLI harness.
|
|
15
15
|
*/
|
|
16
|
-
import { memoryStats } from '
|
|
17
|
-
import Network from '
|
|
18
|
-
import NeatapticNode from '
|
|
16
|
+
import { memoryStats } from '../src/utils/memory';
|
|
17
|
+
import Network from '../src/architecture/network';
|
|
18
|
+
import NeatapticNode from '../src/architecture/node';
|
|
19
19
|
import type { BenchAggregateGroup } from './benchmark.report.test';
|
|
20
20
|
import { aggregateBenchMeasurements } from './benchmark.report.test';
|
|
21
21
|
import * as fs from 'fs';
|
|
@@ -560,7 +560,7 @@ describe('benchmark.memory dist-only', () => {
|
|
|
560
560
|
exists: false,
|
|
561
561
|
};
|
|
562
562
|
try {
|
|
563
|
-
const distPath = path.resolve(__dirname, '
|
|
563
|
+
const distPath = path.resolve(__dirname, '../dist/neataptic.js');
|
|
564
564
|
if (fs.existsSync(distPath)) {
|
|
565
565
|
const stat = fs.statSync(distPath);
|
|
566
566
|
// Hash only when file reasonably small (<25MB) to avoid CI slowdown (practical upper bound here is tiny)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Placeholder for a future NEAT evaluation hotspot benchmark.
|
|
3
|
+
*
|
|
4
|
+
* The benchmark tree migration keeps this seam visible without pretending the
|
|
5
|
+
* hotspot harness already exists.
|
|
6
|
+
*/
|
|
7
|
+
describe('benchmark.neat.evaluate.hotspot placeholder', () => {
|
|
8
|
+
it.skip('tracks the evaluation hotspot benchmark seam', () => {
|
|
9
|
+
expect(true).toBe(true);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { memoryStats } from '
|
|
1
|
+
import { memoryStats } from '../src/utils/memory';
|
|
2
2
|
import {
|
|
3
3
|
acquireNode,
|
|
4
4
|
releaseNode,
|
|
5
5
|
resetNodePool,
|
|
6
|
-
} from '
|
|
7
|
-
import { config } from '
|
|
6
|
+
} from '../src/architecture/nodePool';
|
|
7
|
+
import { config } from '../src/config';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Runtime interface for mutable config properties in tests.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Network from '
|
|
2
|
-
import { config } from '
|
|
3
|
-
import { nodePoolStats, resetNodePool } from '
|
|
4
|
-
import type Node from '
|
|
1
|
+
import Network from '../src/architecture/network';
|
|
2
|
+
import { config } from '../src/config';
|
|
3
|
+
import { nodePoolStats, resetNodePool } from '../src/architecture/nodePool';
|
|
4
|
+
import type Node from '../src/architecture/node';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Runtime interface for mutable config properties in tests.
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
releaseNode,
|
|
12
12
|
nodePoolStats,
|
|
13
13
|
resetNodePool,
|
|
14
|
-
} from '
|
|
15
|
-
import type Node from '
|
|
14
|
+
} from '../src/architecture/nodePool';
|
|
15
|
+
import type Node from '../src/architecture/node';
|
|
16
16
|
|
|
17
17
|
describe('benchmark.nodePool.stress', () => {
|
|
18
18
|
it('achieves recycledRatio >=0.5 with stable highWaterMark tail', () => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as fs from 'fs';
|
|
6
6
|
import * as path from 'path';
|
|
7
|
-
import { memoryStats } from '
|
|
7
|
+
import { memoryStats } from '../src/utils/memory';
|
|
8
8
|
|
|
9
9
|
describe('benchmark.poolStats.persist', () => {
|
|
10
10
|
it('injects meta.poolStats.nodePool snapshot (single expectation)', () => {
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* both compact tuple and verbose JSON serialization round-trips.
|
|
5
5
|
* Single expectation style aggregating all checks.
|
|
6
6
|
*/
|
|
7
|
-
import Network from '
|
|
8
|
-
import type Node from '
|
|
9
|
-
import type Connection from '
|
|
7
|
+
import Network from '../src/architecture/network';
|
|
8
|
+
import type Node from '../src/architecture/node';
|
|
9
|
+
import type Connection from '../src/architecture/connection';
|
|
10
10
|
import {
|
|
11
11
|
serialize as serializeTuple,
|
|
12
12
|
deserialize as deserializeTuple,
|
|
13
13
|
toJSONImpl,
|
|
14
14
|
fromJSONImpl,
|
|
15
|
-
} from '
|
|
15
|
+
} from '../src/architecture/network/network.utils';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Runtime interface for Network with internal properties and methods.
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* benchmark.slab.fragmentation.bounds.test.ts
|
|
3
3
|
* Ensures fragmentation percentage stays within [0,100] and responds to growth+prune cycles.
|
|
4
4
|
*/
|
|
5
|
-
import Network from '
|
|
6
|
-
import { memoryStats } from '
|
|
7
|
-
import { config } from '
|
|
8
|
-
import type Node from '
|
|
5
|
+
import Network from '../src/architecture/network';
|
|
6
|
+
import { memoryStats } from '../src/utils/memory';
|
|
7
|
+
import { config } from '../src/config';
|
|
8
|
+
import type Node from '../src/architecture/node';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Runtime interface for Network with slab management methods.
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Scenario: grow network to expand slab capacity, capture low fragmentation state, prune nodes to induce higher
|
|
5
5
|
* fragmentation (capacity retained, used shrinks), then regrow slightly. Verifies fragmentationPct increases after prune.
|
|
6
6
|
*/
|
|
7
|
-
import Network from '
|
|
8
|
-
import { memoryStats } from '
|
|
9
|
-
import { config } from '
|
|
10
|
-
import type Node from '
|
|
7
|
+
import Network from '../src/architecture/network';
|
|
8
|
+
import { memoryStats } from '../src/utils/memory';
|
|
9
|
+
import { config } from '../src/config';
|
|
10
|
+
import type Node from '../src/architecture/node';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Runtime interface for Network with slab management methods.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
These are not throwaway demos. They are small, opinionated neuroevolution laboratories.
|
|
4
4
|
|
|
5
|
-
The `
|
|
5
|
+
The `examples` folder exists to show what NeatapticTS looks like when it leaves the comfort of tiny benchmark tasks and has to deal with real design questions: what the agent should observe, how fitness should be shaped, how evolution should be made fair, how browser playback should stay responsive, and how the resulting network should remain inspectable enough to teach from.
|
|
6
6
|
|
|
7
7
|
There are currently two flagship examples here:
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import { colors } from './colors';
|
|
|
3
3
|
import { DashboardManager } from './dashboardManager';
|
|
4
4
|
import { TerminalUtility } from './terminalUtility';
|
|
5
5
|
import type { IDashboardManager, INetwork } from './interfaces';
|
|
6
|
-
import type Network from '
|
|
6
|
+
import type Network from '../../src/architecture/network';
|
|
7
7
|
import {
|
|
8
8
|
EvolutionEngine,
|
|
9
9
|
resolveMazeEvolutionPhaseOutcome,
|