@wildshard/engine 0.1.18 → 0.1.19
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/CHANGELOG.md +8 -0
- package/budgets/shard-size-baseline.json +10 -4
- package/index.html +6 -4
- package/lint/engine-sides.json +14 -0
- package/lint/ratchet.json +0 -68
- package/lint/ratchet.mjs +1 -4
- package/package.json +17 -15
- package/scripts/agent-sync.mjs +27 -8
- package/scripts/app-build/appCook.ts +8 -2
- package/scripts/app-build/catalogue.ts +10 -7
- package/scripts/app-build/gen.ts +22 -2
- package/scripts/app-build/isolation.d.mts +10 -0
- package/scripts/app-build/isolation.mjs +47 -0
- package/scripts/app-build/outputProducts.mjs +4 -0
- package/scripts/app-build/previousDeploy.d.mts +2 -0
- package/scripts/app-build/previousDeploy.mjs +10 -1
- package/scripts/app-build/serviceWorker.ts +10 -3
- package/scripts/app-build/splitOutput.mjs +4 -2
- package/scripts/app-build/standaloneOutput.d.mts +1 -1
- package/scripts/app-build/standaloneOutput.mjs +5 -3
- package/scripts/app-build/titlePreloads.d.mts +8 -0
- package/scripts/app-build/titlePreloads.mjs +69 -0
- package/scripts/app-build/worldMapAtlas.ts +10 -6
- package/scripts/app-build-pipeline.mjs +31 -3
- package/scripts/built-product.mjs +1 -1
- package/scripts/cell-mem-bench.mjs +81 -23
- package/scripts/check-custom-sections-zero.mjs +1 -1
- package/scripts/check-devserver.mjs +2 -0
- package/scripts/check-models.mjs +2 -0
- package/scripts/check-paths.allow.json +0 -115
- package/scripts/check-paths.mjs +2 -2
- package/scripts/check-platform-ratchets.mjs +2 -3
- package/scripts/chromium-keychain.d.mts +1 -1
- package/scripts/ci-static.sh +1 -1
- package/scripts/committed-fast-checks.mjs +0 -2
- package/scripts/content-sw-proof.mjs +2 -1
- package/scripts/cook-worker.mjs +9 -3
- package/scripts/cook.mjs +18 -5
- package/scripts/docs-inputs-proof.mjs +6 -6
- package/scripts/e7-voice-staging-proof.mjs +1 -1
- package/scripts/gate-related-tests.mjs +1 -1
- package/scripts/git-source-view.mjs +1 -1
- package/scripts/goldens/capture.mjs +17 -5
- package/scripts/grid-crossing-nightly.mjs +59 -0
- package/scripts/grid-crossing-qa.mjs +44 -0
- package/scripts/grid-crossing-ratchet.d.mts +6 -0
- package/scripts/grid-crossing-ratchet.mjs +52 -0
- package/scripts/grid-crossing-report.mjs +122 -0
- package/scripts/grid-crossing-stages.mjs +47 -0
- package/scripts/grid-crossing-tour.mjs +277 -0
- package/scripts/grid-crossing-walk-proof.mjs +124 -17
- package/scripts/host-ruler/roots.mjs +2 -2
- package/scripts/host-ruler.d.mts +91 -0
- package/scripts/host-ruler.mjs +565 -0
- package/scripts/live-prepush.py +3 -5
- package/scripts/loading-flow/benchmax.mjs +3 -1
- package/scripts/look-loop/test_look_loop.py +1 -38
- package/scripts/memory-proof.mjs +61 -6
- package/scripts/mmo-bots.mjs +8 -2
- package/scripts/net-lag-proof.mjs +219 -0
- package/scripts/night-market-kit-budget.mjs +2 -2
- package/scripts/offline-proof-rules.d.mts +2 -2
- package/scripts/offline-proof-rules.mjs +15 -4
- package/scripts/offline-proof.mjs +74 -13
- package/scripts/{shard-platform-output.mjs → output-reader.mjs} +1 -1
- package/scripts/page-release/content.d.mts +9 -1
- package/scripts/page-release/content.mjs +131 -17
- package/scripts/page-release/flow.mjs +36 -10
- package/scripts/page-release/stamp-content.mjs +24 -0
- package/scripts/page-release.mjs +28 -6
- package/scripts/page-size.mjs +2 -1
- package/scripts/pin-packs.ts +1 -1
- package/scripts/pins.ts +4 -4
- package/scripts/precommit-checks.mjs +1 -7
- package/scripts/precommit-jobs.mjs +0 -1
- package/scripts/precommit-source.py +1 -9
- package/scripts/program-discovery.mjs +1 -1
- package/scripts/ring-cook.mjs +2 -1
- package/scripts/ring-step.ts +1 -1
- package/scripts/script-scenario-metrics.mjs +1 -1
- package/scripts/shard-output-content.d.mts +1 -1
- package/scripts/shard-output-content.mjs +2 -2
- package/scripts/shard-outputs.mjs +1 -1
- package/scripts/shard-public.mjs +1 -1
- package/scripts/shard-wire-meter.mjs +24 -9
- package/scripts/side-parity.mjs +4 -2
- package/scripts/standalone-smoke.mjs +8 -3
- package/scripts/tier-textures.mjs +22 -4
- package/scripts/tile-bake-report.mjs +1 -1
- package/scripts/tile-bakes.mjs +1 -1
- package/scripts/title-assets.generated.json +2 -0
- package/scripts/tsconfig.json +0 -2
- package/scripts/vendor/basisu/LICENSE +201 -0
- package/scripts/vendor/basisu/basis_encoder.cjs +2 -0
- package/scripts/vendor/basisu/basis_encoder.wasm +0 -0
- package/scripts/vitest-push-guards.config.ts +1 -1
- package/scripts/vps/harden-apply.sh +4 -1
- package/scripts/vps/harden-prometheus.sh +176 -0
- package/scripts/vps/harden.sh +16 -0
- package/scripts/vps/rebuild.sh +18 -0
- package/scripts/vps/wildshard-config +6 -2
- package/scripts/worker-client-play.mjs +6 -2
- package/scripts/worktree-reap.mjs +5 -5
- package/src/.oxlintrc.json +3 -182
- package/src/client/app/entry.ts +10 -2
- package/src/client/engine/boot/bootCache.ts +2 -2
- package/src/client/engine/boot/bootTrace.ts +12 -4
- package/src/client/engine/boot/browserChunkRecovery.ts +4 -0
- package/src/client/engine/boot/clearDownloads.ts +5 -2
- package/src/client/engine/boot/contentRead.ts +11 -0
- package/src/client/engine/boot/gpuFiles.ts +4 -2
- package/src/client/engine/boot/lastEnd.ts +99 -12
- package/src/client/engine/boot/texturePack.ts +2 -2
- package/src/client/engine/net/netPlayer.ts +19 -2
- package/src/client/engine/net/otherPlayers.ts +55 -8
- package/src/client/engine/net/predictor.ts +33 -9
- package/src/client/engine/net/redial.ts +29 -6
- package/src/client/engine/pwa/cacheNames.ts +58 -1
- package/src/client/engine/pwa/sw.js +41 -11
- package/src/client/engine/render/dataLook.ts +152 -40
- package/src/client/engine/render/families/detail.ts +89 -0
- package/src/client/engine/render/families/pbr.ts +7 -1
- package/src/client/engine/render/look.ts +6 -0
- package/src/client/engine/render/lookLight.ts +103 -11
- package/src/client/engine/render/lookRender.ts +105 -0
- package/src/client/engine/saves/indexed.ts +2 -2
- package/src/client/engine/telemetry/browserErrors.ts +24 -3
- package/src/client/engine/telemetry/staleBuildReport.ts +22 -1
- package/src/client/engine/ui/debugOptions.ts +1 -1
- package/src/client/engine/ui/lookLightOption.ts +10 -6
- package/src/client/engine/ui/namePrompt.ts +7 -0
- package/src/client/game/boot/audio.generated.ts +114 -114
- package/src/client/game/boot/bytes.generated.ts +118 -220
- package/src/client/game/boot/placedSpawn.ts +35 -0
- package/src/client/game/boot/spawnDownload.ts +25 -6
- package/src/client/game/boot/versions.generated.ts +7 -5
- package/src/client/game/devScene/hook.ts +291 -0
- package/src/client/game/grid/cellLoading.ts +12 -2
- package/src/client/game/grid/live.ts +112 -16
- package/src/client/game/grid/liveSession.ts +33 -2
- package/src/client/game/grid/mapAtlas.ts +18 -4
- package/src/client/game/grid/minimapBlend.ts +15 -5
- package/src/client/game/grid/oneWayIn.ts +5 -1
- package/src/client/game/grid/placedCells.ts +114 -12
- package/src/client/game/grid/placedContent.ts +85 -0
- package/src/client/game/grid/prefetch.ts +9 -1
- package/src/client/game/grid/productInputs.ts +3 -1
- package/src/client/game/grid/productLeases.ts +4 -1
- package/src/client/game/grid/products.ts +8 -4
- package/src/client/game/grid/roadLook.ts +24 -15
- package/src/client/game/grid/roadLookPlatform.ts +4 -2
- package/src/client/game/grid/roadResources.ts +24 -0
- package/src/client/game/grid/roadSign.worker.ts +4 -3
- package/src/client/game/grid/roadSignPaint.ts +16 -5
- package/src/client/game/grid/roadSignPreparation.ts +4 -3
- package/src/client/game/grid/roadSignScale.ts +8 -0
- package/src/client/game/grid/roadTileCapture.worker.ts +3 -1
- package/src/client/game/grid/roadTileCaptureWorker.ts +2 -1
- package/src/client/game/grid/roadTileWrite.worker.ts +4 -2
- package/src/client/game/grid/roadTileWriter.ts +2 -1
- package/src/client/game/grid/screenReports.ts +39 -0
- package/src/client/game/grid/session.ts +20 -4
- package/src/client/game/grid/softWallLook.ts +25 -8
- package/src/client/game/mainMenu.ts +6 -2
- package/src/client/game/plugin/context.ts +2 -1
- package/src/client/game/plugin/followedMovers.ts +7 -1
- package/src/client/game/quest/figures.ts +2 -0
- package/src/client/game/session/finish.ts +6 -0
- package/src/client/game/shardfile/assetCache.ts +4 -4
- package/src/client/game/shardfile/client.ts +4 -1
- package/src/client/game/shardfile/clientAssets.ts +9 -5
- package/src/client/game/shardfile/clientLibrary.ts +1 -1
- package/src/client/game/shardfile/clientWater.ts +51 -9
- package/src/client/game/shardfile/clientWorker.ts +19 -7
- package/src/client/game/shardfile/look.ts +8 -3
- package/src/client/game/shardfile/product.ts +34 -7
- package/src/client/game/shardfile/productChecks.ts +2 -2
- package/src/client/game/shardfile/productCost.ts +2 -2
- package/src/client/game/shardfile/readAsset.ts +2 -2
- package/src/client/game/shardfile/reflectingWater.ts +73 -0
- package/src/client/game/shardfile/seatGrace.ts +9 -0
- package/src/client/game/shardfile/skinPlayback.ts +1 -1
- package/src/client/game/systems/npc/figureRows.ts +9 -0
- package/src/client/host/online/doctor.ts +2 -0
- package/src/client/host/online/linkScreens.ts +30 -4
- package/src/client/host/standalone/shell.ts +4 -0
- package/src/cook/game/astc6Encode.ts +55 -0
- package/src/cook/game/astc6Wasm.ts +176 -0
- package/src/cook/game/cookJob.ts +30 -6
- package/src/cook/game/cookWorker.ts +38 -11
- package/src/cook/game/entryTotals.ts +51 -24
- package/src/cook/game/shardCook.ts +35 -7
- package/src/cook/game/spawnParts.ts +33 -8
- package/src/cook/game/tierTextures.ts +87 -14
- package/src/server/engine/ai/bossContenders.ts +27 -3
- package/src/server/engine/ai/phases.ts +1 -1
- package/src/server/engine/entities/creatureRefill.ts +9 -2
- package/src/server/engine/net/ledgerBook.ts +2 -0
- package/src/server/engine/net/room.ts +15 -0
- package/src/server/engine/sim/respawn.ts +8 -0
- package/src/server/game/boss/arenaRoomEntry.ts +5 -1
- package/src/server/game/boss/arenaRoomNative.ts +2 -0
- package/src/server/game/boss/native.ts +2 -1
- package/src/server/game/boss/nativeWake.ts +9 -5
- package/src/server/game/boss/openArenaNative.ts +2 -2
- package/src/server/game/boss/openArenaRoom.ts +3 -1
- package/src/server/game/grid/room.ts +44 -3
- package/src/server/game/grid/simulation.ts +23 -0
- package/src/server/game/population/mixedRoster.ts +11 -3
- package/src/server/game/population/nativeBake.ts +8 -3
- package/src/server/game/population/nativeReturns.ts +6 -3
- package/src/server/game/population/roster.ts +5 -3
- package/src/server/game/quest/eliteDrops.ts +15 -4
- package/src/server/game/quest/nativeChapter.ts +1 -1
- package/src/server/game/quest/nativeComposition.ts +5 -1
- package/src/server/game/riding/nativeTaming.ts +10 -6
- package/src/server/game/riding/wildRefill.ts +3 -2
- package/src/server/game/shardfile/bossRow.ts +4 -2
- package/src/server/game/shardfile/homeKeeper.ts +4 -2
- package/src/server/host/bake/headlessWorker.ts +1 -1
- package/src/server/host/dedicated/cellHost.ts +98 -16
- package/src/server/host/dedicated/cellProtocol.ts +16 -1
- package/src/server/host/dedicated/cellWorker.ts +8 -5
- package/src/server/host/dedicated/dedicatedRoom.ts +16 -6
- package/src/server/host/dedicated/gridCells.ts +15 -6
- package/src/server/host/dedicated/loopLag.ts +21 -0
- package/src/server/host/dedicated/main.ts +13 -5
- package/src/server/host/dedicated/packReader.ts +3 -3
- package/src/server/host/dedicated/placementFile.ts +3 -2
- package/src/server/host/dedicated/roadRoom.ts +34 -4
- package/src/server/host/dedicated/serverMetrics.ts +126 -0
- package/src/server/host/dedicated/socketPump.ts +21 -4
- package/src/server/host/dedicated/workerTable.ts +15 -4
- package/src/server/host/dedicated/world.ts +65 -7
- package/src/server/host/headless.ts +1 -1
- package/src/server/host/headlessRuntime.ts +1 -1
- package/src/server/host/standalone/roadWorld.ts +15 -3
- package/src/server/host/standalone/serverHost.ts +4 -1
- package/src/server/host/standalone/serverProduct.ts +41 -11
- package/src/shared/engine/ai/BossBrain.ts +8 -0
- package/src/shared/game/boss/wake.ts +6 -0
- package/src/shared/game/devColliders.ts +47 -0
- package/src/shared/game/eliteSystem.ts +8 -0
- package/src/shared/game/grid/allocator.ts +3 -0
- package/src/shared/game/grid/placementRows.ts +5 -2
- package/src/shared/game/plugin/bossRecord.ts +3 -2
- package/src/shared/game/shardfile/ktx2Targets.ts +23 -3
- package/src/shared/game/shardfile/outputDescriptor.ts +9 -5
- package/src/shared/game/shardfile/packReads.ts +28 -3
- package/src/shared/game/shardfile/serverPack.ts +9 -0
- package/src/shared/game/systems/looks/trampleField.ts +2 -0
- package/src/shared/host/formatJsonSchema.ts +2 -2
- package/src/tsconfig.json +1 -27
- package/lint/host-reviews.json +0 -14
- package/lint/listed-view-code.json +0 -13
- package/lint/platform-pending-users.json +0 -2520
- package/lint/platform-pending-users.md +0 -18
- package/scripts/cell-mem/metrics-preload.mjs +0 -65
- package/scripts/check-closed-components.d.mts +0 -7
- package/scripts/check-closed-components.mjs +0 -87
- package/scripts/g571-hosts.d.mts +0 -3
- package/scripts/g571-hosts.mjs +0 -54
- package/scripts/host-ruler/register-migrate.mjs +0 -242
- package/scripts/listed-view-code.d.mts +0 -7
- package/scripts/listed-view-code.mjs +0 -93
- package/scripts/look-loop/fit-lut.py +0 -142
- package/scripts/look-loop/palette-delta.py +0 -183
- package/scripts/look-loop/regions/driftwood-isle.json +0 -25
- package/scripts/look-loop/regions/far-reach.json +0 -225
- package/scripts/look-loop/regions/open-plot-night-market.json +0 -855
- package/scripts/look-loop/regions/pine-hollow.json +0 -22
- package/scripts/look-loop/regions/sunscar-dunes.json +0 -281
- package/scripts/platform-chargebacks.d.mts +0 -9
- package/scripts/platform-chargebacks.mjs +0 -135
- package/scripts/shard-component-spans.d.mts +0 -15
- package/scripts/shard-component-spans.mjs +0 -18
- package/scripts/shard-components.d.mts +0 -16
- package/scripts/shard-components.mjs +0 -363
- package/scripts/shard-platform-hosts.d.mts +0 -2
- package/scripts/shard-platform-hosts.mjs +0 -93
- package/scripts/shard-platform-sections.d.mts +0 -2
- package/scripts/shard-platform-sections.mjs +0 -9
- package/scripts/shard-platform.d.mts +0 -76
- package/scripts/shard-platform.mjs +0 -1072
- package/src/.oxfmtrc.json +0 -48
- package/src/scripts/ask-new.sh +0 -29
- package/src/scripts/asks.mjs +0 -142
- package/src/scripts/herdr-prompt.sh +0 -34
- package/src/scripts/herdr-question-open.sh +0 -67
- package/src/scripts/md-wrap.mjs +0 -229
- /package/scripts/{shard-platform-format.d.mts → node-format.d.mts} +0 -0
- /package/scripts/{shard-platform-format.mjs → node-format.mjs} +0 -0
- /package/scripts/{shard-platform-output.d.mts → output-reader.d.mts} +0 -0
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"shard": "pine-hollow",
|
|
3
|
-
"about": "PH-L4: the look loop's colour regions over the 54 frames of the look loop: art/pine-hollow/round-14-look-loop/ (frames 1-9 cabin, 10-18 pond, 19-27 oldgrowth) + round-17-look-loop-3/ (28-36 ridge, 37-45 den, 46-54 hamlet); each zone's 1-4 FP front/left/right/back, 5 TOP, 6-9 DIAG front/left/right/back). regions: material -> [[frame, [x0, y0, x1, y1]]] normalised, the same for the mockup and the capture (oldgrowth FP back: below the giant's trunk; the FP mockups are 2:3 recompositions of the 390x844 capture: the bands are wide on purpose, the filters pick the material). filters: [hue lo, hue hi (deg), min sat, min value, max value(, max sat)] or a shadow of another material. The pond's water is left out: the capture's black water is PH-L9's, not a colour the LUT should learn.",
|
|
4
|
-
"regions": {
|
|
5
|
-
"sky": [[1, [0.25, 0.13, 0.75, 0.24]], [2, [0.25, 0.13, 0.75, 0.24]], [3, [0.25, 0.13, 0.75, 0.24]], [4, [0.25, 0.13, 0.75, 0.24]], [10, [0.25, 0.13, 0.75, 0.24]], [12, [0.25, 0.13, 0.75, 0.24]], [13, [0.25, 0.13, 0.75, 0.24]], [19, [0.25, 0.13, 0.75, 0.24]], [20, [0.25, 0.13, 0.75, 0.24]], [21, [0.25, 0.13, 0.75, 0.24]], [22, [0.25, 0.13, 0.75, 0.24]], [6, [0.0, 0.0, 1.0, 0.06]], [15, [0.0, 0.0, 1.0, 0.06]], [24, [0.0, 0.0, 1.0, 0.06]], [28, [0.25, 0.13, 0.75, 0.24]], [29, [0.25, 0.13, 0.75, 0.24]], [30, [0.25, 0.13, 0.75, 0.24]], [31, [0.25, 0.13, 0.75, 0.24]], [37, [0.25, 0.13, 0.75, 0.24]], [38, [0.25, 0.13, 0.75, 0.24]], [40, [0.25, 0.13, 0.75, 0.24]], [46, [0.25, 0.13, 0.75, 0.24]], [47, [0.25, 0.13, 0.75, 0.24]], [48, [0.25, 0.13, 0.75, 0.24]], [49, [0.25, 0.13, 0.75, 0.24]], [33, [0.0, 0.0, 1.0, 0.06]], [42, [0.0, 0.0, 1.0, 0.06]], [51, [0.0, 0.0, 1.0, 0.06]]],
|
|
6
|
-
"foliage": [[1, [0.0, 0.2, 1.0, 0.52]], [2, [0.0, 0.2, 1.0, 0.52]], [3, [0.0, 0.2, 1.0, 0.52]], [4, [0.0, 0.2, 1.0, 0.52]], [5, [0.0, 0.0, 1.0, 1.0]], [6, [0.0, 0.12, 1.0, 1.0]], [7, [0.0, 0.12, 1.0, 1.0]], [8, [0.0, 0.12, 1.0, 1.0]], [9, [0.0, 0.12, 1.0, 1.0]], [10, [0.0, 0.2, 1.0, 0.52]], [11, [0.0, 0.2, 1.0, 0.52]], [12, [0.0, 0.2, 1.0, 0.52]], [13, [0.0, 0.2, 1.0, 0.52]], [14, [0.0, 0.0, 1.0, 1.0]], [15, [0.0, 0.12, 1.0, 1.0]], [16, [0.0, 0.12, 1.0, 1.0]], [17, [0.0, 0.12, 1.0, 1.0]], [18, [0.0, 0.12, 1.0, 1.0]], [19, [0.0, 0.2, 1.0, 0.52]], [20, [0.0, 0.2, 1.0, 0.52]], [21, [0.0, 0.2, 1.0, 0.52]], [22, [0.0, 0.2, 1.0, 0.52]], [23, [0.0, 0.0, 1.0, 1.0]], [24, [0.0, 0.12, 1.0, 1.0]], [25, [0.0, 0.12, 1.0, 1.0]], [26, [0.0, 0.12, 1.0, 1.0]], [27, [0.0, 0.12, 1.0, 1.0]], [28, [0.0, 0.2, 1.0, 0.52]], [29, [0.0, 0.2, 1.0, 0.52]], [30, [0.0, 0.2, 1.0, 0.52]], [31, [0.0, 0.2, 1.0, 0.52]], [32, [0.0, 0.0, 1.0, 1.0]], [33, [0.0, 0.12, 1.0, 1.0]], [34, [0.0, 0.12, 1.0, 1.0]], [35, [0.0, 0.12, 1.0, 1.0]], [36, [0.0, 0.12, 1.0, 1.0]], [37, [0.0, 0.2, 1.0, 0.52]], [38, [0.0, 0.2, 1.0, 0.52]], [39, [0.0, 0.2, 1.0, 0.52]], [40, [0.0, 0.2, 1.0, 0.52]], [41, [0.0, 0.0, 1.0, 1.0]], [42, [0.0, 0.12, 1.0, 1.0]], [43, [0.0, 0.12, 1.0, 1.0]], [44, [0.0, 0.12, 1.0, 1.0]], [45, [0.0, 0.12, 1.0, 1.0]], [46, [0.0, 0.2, 1.0, 0.52]], [47, [0.0, 0.2, 1.0, 0.52]], [48, [0.0, 0.2, 1.0, 0.52]], [49, [0.0, 0.2, 1.0, 0.52]], [50, [0.0, 0.0, 1.0, 1.0]], [51, [0.0, 0.12, 1.0, 1.0]], [52, [0.0, 0.12, 1.0, 1.0]], [53, [0.0, 0.12, 1.0, 1.0]], [54, [0.0, 0.12, 1.0, 1.0]]],
|
|
7
|
-
"ground": [[1, [0.0, 0.52, 0.42, 0.78]], [2, [0.0, 0.52, 0.42, 0.78]], [3, [0.0, 0.52, 0.42, 0.78]], [4, [0.0, 0.52, 0.42, 0.78]], [5, [0.0, 0.0, 1.0, 1.0]], [6, [0.0, 0.12, 1.0, 1.0]], [7, [0.0, 0.12, 1.0, 1.0]], [8, [0.0, 0.12, 1.0, 1.0]], [9, [0.0, 0.12, 1.0, 1.0]], [10, [0.0, 0.52, 0.42, 0.78]], [11, [0.0, 0.52, 0.42, 0.78]], [12, [0.0, 0.52, 0.42, 0.78]], [13, [0.0, 0.52, 0.42, 0.78]], [14, [0.0, 0.0, 1.0, 1.0]], [15, [0.0, 0.12, 1.0, 1.0]], [16, [0.0, 0.12, 1.0, 1.0]], [17, [0.0, 0.12, 1.0, 1.0]], [18, [0.0, 0.12, 1.0, 1.0]], [19, [0.0, 0.52, 0.42, 0.78]], [20, [0.0, 0.52, 0.42, 0.78]], [21, [0.0, 0.52, 0.42, 0.78]], [22, [0.02, 0.6, 0.4, 0.8]], [23, [0.0, 0.0, 1.0, 1.0]], [24, [0.0, 0.12, 1.0, 1.0]], [25, [0.0, 0.12, 1.0, 1.0]], [26, [0.0, 0.12, 1.0, 1.0]], [27, [0.0, 0.12, 1.0, 1.0]], [28, [0.0, 0.52, 0.42, 0.78]], [29, [0.0, 0.52, 0.42, 0.78]], [30, [0.0, 0.52, 0.42, 0.78]], [31, [0.0, 0.52, 0.42, 0.78]], [32, [0.0, 0.0, 1.0, 1.0]], [33, [0.0, 0.12, 1.0, 1.0]], [34, [0.0, 0.12, 1.0, 1.0]], [35, [0.0, 0.12, 1.0, 1.0]], [36, [0.0, 0.12, 1.0, 1.0]], [37, [0.0, 0.52, 0.42, 0.78]], [38, [0.0, 0.52, 0.42, 0.78]], [39, [0.0, 0.52, 0.42, 0.78]], [40, [0.0, 0.52, 0.42, 0.78]], [41, [0.0, 0.0, 1.0, 1.0]], [42, [0.0, 0.12, 1.0, 1.0]], [43, [0.0, 0.12, 1.0, 1.0]], [44, [0.0, 0.12, 1.0, 1.0]], [45, [0.0, 0.12, 1.0, 1.0]], [46, [0.0, 0.52, 0.42, 0.78]], [47, [0.0, 0.52, 0.42, 0.78]], [48, [0.0, 0.52, 0.42, 0.78]], [49, [0.0, 0.52, 0.42, 0.78]], [50, [0.0, 0.0, 1.0, 1.0]], [51, [0.0, 0.12, 1.0, 1.0]], [52, [0.0, 0.12, 1.0, 1.0]], [53, [0.0, 0.12, 1.0, 1.0]], [54, [0.0, 0.12, 1.0, 1.0]]],
|
|
8
|
-
"ground shadow": [[1, [0.0, 0.52, 0.42, 0.78]], [2, [0.0, 0.52, 0.42, 0.78]], [3, [0.0, 0.52, 0.42, 0.78]], [4, [0.0, 0.52, 0.42, 0.78]], [5, [0.0, 0.0, 1.0, 1.0]], [6, [0.0, 0.12, 1.0, 1.0]], [7, [0.0, 0.12, 1.0, 1.0]], [8, [0.0, 0.12, 1.0, 1.0]], [9, [0.0, 0.12, 1.0, 1.0]], [10, [0.0, 0.52, 0.42, 0.78]], [11, [0.0, 0.52, 0.42, 0.78]], [12, [0.0, 0.52, 0.42, 0.78]], [13, [0.0, 0.52, 0.42, 0.78]], [14, [0.0, 0.0, 1.0, 1.0]], [15, [0.0, 0.12, 1.0, 1.0]], [16, [0.0, 0.12, 1.0, 1.0]], [17, [0.0, 0.12, 1.0, 1.0]], [18, [0.0, 0.12, 1.0, 1.0]], [19, [0.0, 0.52, 0.42, 0.78]], [20, [0.0, 0.52, 0.42, 0.78]], [21, [0.0, 0.52, 0.42, 0.78]], [22, [0.02, 0.6, 0.4, 0.8]], [23, [0.0, 0.0, 1.0, 1.0]], [24, [0.0, 0.12, 1.0, 1.0]], [25, [0.0, 0.12, 1.0, 1.0]], [26, [0.0, 0.12, 1.0, 1.0]], [27, [0.0, 0.12, 1.0, 1.0]], [28, [0.0, 0.52, 0.42, 0.78]], [29, [0.0, 0.52, 0.42, 0.78]], [30, [0.0, 0.52, 0.42, 0.78]], [31, [0.0, 0.52, 0.42, 0.78]], [32, [0.0, 0.0, 1.0, 1.0]], [33, [0.0, 0.12, 1.0, 1.0]], [34, [0.0, 0.12, 1.0, 1.0]], [35, [0.0, 0.12, 1.0, 1.0]], [36, [0.0, 0.12, 1.0, 1.0]], [37, [0.0, 0.52, 0.42, 0.78]], [38, [0.0, 0.52, 0.42, 0.78]], [39, [0.0, 0.52, 0.42, 0.78]], [40, [0.0, 0.52, 0.42, 0.78]], [41, [0.0, 0.0, 1.0, 1.0]], [42, [0.0, 0.12, 1.0, 1.0]], [43, [0.0, 0.12, 1.0, 1.0]], [44, [0.0, 0.12, 1.0, 1.0]], [45, [0.0, 0.12, 1.0, 1.0]], [46, [0.0, 0.52, 0.42, 0.78]], [47, [0.0, 0.52, 0.42, 0.78]], [48, [0.0, 0.52, 0.42, 0.78]], [49, [0.0, 0.52, 0.42, 0.78]], [50, [0.0, 0.0, 1.0, 1.0]], [51, [0.0, 0.12, 1.0, 1.0]], [52, [0.0, 0.12, 1.0, 1.0]], [53, [0.0, 0.12, 1.0, 1.0]], [54, [0.0, 0.12, 1.0, 1.0]]],
|
|
9
|
-
"rock": [[11, [0.1, 0.18, 0.95, 0.5]], [14, [0.0, 0.0, 0.4, 0.4]], [15, [0.0, 0.0, 0.3, 0.5]], [17, [0.0, 0.0, 1.0, 0.3]], [6, [0.3, 0.0, 1.0, 0.25]], [32, [0.55, 0.0, 1.0, 0.45]], [33, [0.5, 0.0, 1.0, 0.35]], [41, [0.55, 0.0, 1.0, 1.0]], [44, [0.4, 0.3, 1.0, 1.0]]],
|
|
10
|
-
"trail": [[5, [0.3, 0.2, 0.7, 0.8]], [1, [0.3, 0.6, 0.7, 0.78]], [12, [0.1, 0.55, 0.7, 0.78]], [46, [0.3, 0.55, 0.8, 0.8]], [32, [0.3, 0.2, 0.5, 0.9]]]
|
|
11
|
-
},
|
|
12
|
-
"filters": {
|
|
13
|
-
"sky": [190, 235, 0.12, 0.45, 1.0],
|
|
14
|
-
"foliage": [62, 170, 0.16, 0.07, 0.95],
|
|
15
|
-
"ground": [12, 55, 0.14, 0.18, 0.92],
|
|
16
|
-
"ground shadow": {"shadowOf": "ground", "below": 0.72, "vmin": 0.05, "excludeHue": [62, 170, 0.16]},
|
|
17
|
-
"rock": [0, 360, 0.0, 0.3, 0.92, 0.12],
|
|
18
|
-
"trail": [10, 50, 0.1, 0.2, 0.9]
|
|
19
|
-
},
|
|
20
|
-
"fitWeights": {"ground": 1.5, "foliage": 1.2, "sky": 1.5, "rock": 1.5, "trail": 1.5, "ground shadow": 2.5},
|
|
21
|
-
"greyAnchor": 1.0
|
|
22
|
-
}
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"shard": "sunscar-dunes",
|
|
3
|
-
"about": "E374 Signal Dunes loop 1 (P2), the look loop's colour regions for H1, the spawn crest: 1 FP front, 2 left, 3 right, 4 back, 5 top, 6-9 diag front/left/right/back. regions: material -> [[frame, [x0, y0, x1, y1]]] normalised, the same for the mockup and the capture.",
|
|
4
|
-
"regions": {
|
|
5
|
-
"sand lit": [
|
|
6
|
-
[
|
|
7
|
-
1,
|
|
8
|
-
[
|
|
9
|
-
0.02,
|
|
10
|
-
0.4,
|
|
11
|
-
0.6,
|
|
12
|
-
0.78
|
|
13
|
-
]
|
|
14
|
-
],
|
|
15
|
-
[
|
|
16
|
-
2,
|
|
17
|
-
[
|
|
18
|
-
0.02,
|
|
19
|
-
0.4,
|
|
20
|
-
0.6,
|
|
21
|
-
0.78
|
|
22
|
-
]
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
3,
|
|
26
|
-
[
|
|
27
|
-
0.02,
|
|
28
|
-
0.4,
|
|
29
|
-
0.6,
|
|
30
|
-
0.78
|
|
31
|
-
]
|
|
32
|
-
],
|
|
33
|
-
[
|
|
34
|
-
4,
|
|
35
|
-
[
|
|
36
|
-
0.02,
|
|
37
|
-
0.4,
|
|
38
|
-
0.6,
|
|
39
|
-
0.78
|
|
40
|
-
]
|
|
41
|
-
],
|
|
42
|
-
[
|
|
43
|
-
5,
|
|
44
|
-
[
|
|
45
|
-
0.05,
|
|
46
|
-
0.25,
|
|
47
|
-
0.95,
|
|
48
|
-
0.98
|
|
49
|
-
]
|
|
50
|
-
],
|
|
51
|
-
[
|
|
52
|
-
6,
|
|
53
|
-
[
|
|
54
|
-
0.05,
|
|
55
|
-
0.3,
|
|
56
|
-
0.95,
|
|
57
|
-
0.98
|
|
58
|
-
]
|
|
59
|
-
],
|
|
60
|
-
[
|
|
61
|
-
7,
|
|
62
|
-
[
|
|
63
|
-
0.05,
|
|
64
|
-
0.3,
|
|
65
|
-
0.95,
|
|
66
|
-
0.98
|
|
67
|
-
]
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
8,
|
|
71
|
-
[
|
|
72
|
-
0.05,
|
|
73
|
-
0.3,
|
|
74
|
-
0.95,
|
|
75
|
-
0.98
|
|
76
|
-
]
|
|
77
|
-
],
|
|
78
|
-
[
|
|
79
|
-
9,
|
|
80
|
-
[
|
|
81
|
-
0.05,
|
|
82
|
-
0.3,
|
|
83
|
-
0.95,
|
|
84
|
-
0.98
|
|
85
|
-
]
|
|
86
|
-
]
|
|
87
|
-
],
|
|
88
|
-
"sand shade": [
|
|
89
|
-
[
|
|
90
|
-
1,
|
|
91
|
-
[
|
|
92
|
-
0.02,
|
|
93
|
-
0.4,
|
|
94
|
-
0.6,
|
|
95
|
-
0.78
|
|
96
|
-
]
|
|
97
|
-
],
|
|
98
|
-
[
|
|
99
|
-
2,
|
|
100
|
-
[
|
|
101
|
-
0.02,
|
|
102
|
-
0.4,
|
|
103
|
-
0.6,
|
|
104
|
-
0.78
|
|
105
|
-
]
|
|
106
|
-
],
|
|
107
|
-
[
|
|
108
|
-
3,
|
|
109
|
-
[
|
|
110
|
-
0.02,
|
|
111
|
-
0.4,
|
|
112
|
-
0.6,
|
|
113
|
-
0.78
|
|
114
|
-
]
|
|
115
|
-
],
|
|
116
|
-
[
|
|
117
|
-
4,
|
|
118
|
-
[
|
|
119
|
-
0.02,
|
|
120
|
-
0.4,
|
|
121
|
-
0.6,
|
|
122
|
-
0.78
|
|
123
|
-
]
|
|
124
|
-
],
|
|
125
|
-
[
|
|
126
|
-
5,
|
|
127
|
-
[
|
|
128
|
-
0.05,
|
|
129
|
-
0.25,
|
|
130
|
-
0.95,
|
|
131
|
-
0.98
|
|
132
|
-
]
|
|
133
|
-
],
|
|
134
|
-
[
|
|
135
|
-
6,
|
|
136
|
-
[
|
|
137
|
-
0.05,
|
|
138
|
-
0.3,
|
|
139
|
-
0.95,
|
|
140
|
-
0.98
|
|
141
|
-
]
|
|
142
|
-
],
|
|
143
|
-
[
|
|
144
|
-
7,
|
|
145
|
-
[
|
|
146
|
-
0.05,
|
|
147
|
-
0.3,
|
|
148
|
-
0.95,
|
|
149
|
-
0.98
|
|
150
|
-
]
|
|
151
|
-
],
|
|
152
|
-
[
|
|
153
|
-
8,
|
|
154
|
-
[
|
|
155
|
-
0.05,
|
|
156
|
-
0.3,
|
|
157
|
-
0.95,
|
|
158
|
-
0.98
|
|
159
|
-
]
|
|
160
|
-
],
|
|
161
|
-
[
|
|
162
|
-
9,
|
|
163
|
-
[
|
|
164
|
-
0.05,
|
|
165
|
-
0.3,
|
|
166
|
-
0.95,
|
|
167
|
-
0.98
|
|
168
|
-
]
|
|
169
|
-
]
|
|
170
|
-
],
|
|
171
|
-
"sky band": [
|
|
172
|
-
[
|
|
173
|
-
1,
|
|
174
|
-
[
|
|
175
|
-
0.05,
|
|
176
|
-
0.3,
|
|
177
|
-
0.95,
|
|
178
|
-
0.42
|
|
179
|
-
]
|
|
180
|
-
],
|
|
181
|
-
[
|
|
182
|
-
2,
|
|
183
|
-
[
|
|
184
|
-
0.05,
|
|
185
|
-
0.3,
|
|
186
|
-
0.95,
|
|
187
|
-
0.42
|
|
188
|
-
]
|
|
189
|
-
],
|
|
190
|
-
[
|
|
191
|
-
3,
|
|
192
|
-
[
|
|
193
|
-
0.05,
|
|
194
|
-
0.3,
|
|
195
|
-
0.95,
|
|
196
|
-
0.42
|
|
197
|
-
]
|
|
198
|
-
],
|
|
199
|
-
[
|
|
200
|
-
6,
|
|
201
|
-
[
|
|
202
|
-
0.05,
|
|
203
|
-
0.02,
|
|
204
|
-
0.7,
|
|
205
|
-
0.12
|
|
206
|
-
]
|
|
207
|
-
]
|
|
208
|
-
],
|
|
209
|
-
"upper sky": [
|
|
210
|
-
[
|
|
211
|
-
1,
|
|
212
|
-
[
|
|
213
|
-
0.05,
|
|
214
|
-
0.17,
|
|
215
|
-
0.55,
|
|
216
|
-
0.27
|
|
217
|
-
]
|
|
218
|
-
],
|
|
219
|
-
[
|
|
220
|
-
2,
|
|
221
|
-
[
|
|
222
|
-
0.05,
|
|
223
|
-
0.17,
|
|
224
|
-
0.55,
|
|
225
|
-
0.27
|
|
226
|
-
]
|
|
227
|
-
],
|
|
228
|
-
[
|
|
229
|
-
3,
|
|
230
|
-
[
|
|
231
|
-
0.05,
|
|
232
|
-
0.17,
|
|
233
|
-
0.55,
|
|
234
|
-
0.27
|
|
235
|
-
]
|
|
236
|
-
],
|
|
237
|
-
[
|
|
238
|
-
4,
|
|
239
|
-
[
|
|
240
|
-
0.05,
|
|
241
|
-
0.17,
|
|
242
|
-
0.55,
|
|
243
|
-
0.27
|
|
244
|
-
]
|
|
245
|
-
]
|
|
246
|
-
]
|
|
247
|
-
},
|
|
248
|
-
"filters": {
|
|
249
|
-
"sand lit": [
|
|
250
|
-
5,
|
|
251
|
-
45,
|
|
252
|
-
0.3,
|
|
253
|
-
0.3,
|
|
254
|
-
1.0
|
|
255
|
-
],
|
|
256
|
-
"sand shade": {
|
|
257
|
-
"shadowOf": "sand lit",
|
|
258
|
-
"below": 0.72,
|
|
259
|
-
"vmin": 0.05,
|
|
260
|
-
"excludeHue": [
|
|
261
|
-
200,
|
|
262
|
-
300,
|
|
263
|
-
0.5
|
|
264
|
-
]
|
|
265
|
-
},
|
|
266
|
-
"sky band": [
|
|
267
|
-
0,
|
|
268
|
-
50,
|
|
269
|
-
0.25,
|
|
270
|
-
0.4,
|
|
271
|
-
1.0
|
|
272
|
-
],
|
|
273
|
-
"upper sky": [
|
|
274
|
-
200,
|
|
275
|
-
340,
|
|
276
|
-
0.05,
|
|
277
|
-
0.05,
|
|
278
|
-
0.8
|
|
279
|
-
]
|
|
280
|
-
}
|
|
281
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Component } from './shard-components.mjs';
|
|
2
|
-
/** G520 reviewed ownership; these rows are the fixture-backed cut list. */
|
|
3
|
-
export function platformChargeback(path: string, name?: string): Component | null;
|
|
4
|
-
export function hasChargebackDeclarations(path: string): boolean;
|
|
5
|
-
export function retiredPlatformModule(path: string): boolean;
|
|
6
|
-
export function inlinePlatformSpans(path: string, source: string, report?: (line: string) => void): { name: string; lines: number[] }[];
|
|
7
|
-
export function inlinePlatformPaths(): string[];
|
|
8
|
-
export function chargePlatformUsers(moduleUsers: Map<string, Set<string>>, bindingUsers: Map<string, Set<string>>): void;
|
|
9
|
-
export function recordPrivateCharge<T extends { path: string; lines: number; name?: string }>(charges: Map<string, T[]>, owner: string | undefined, row: T, report?: (line: string) => void): boolean;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
// G520 / G496: fixture-only growth is still shard code. This is the cut list,
|
|
2
|
-
// not an allowance or a budget. A real second shard needs a reviewed re-score.
|
|
3
|
-
/** @type {Map<string,import('./shard-components.mjs').Component>} */
|
|
4
|
-
const modules = new Map([
|
|
5
|
-
...['game/boss/arenaScript', 'game/boss/arenaField'].map(path => [`src/${path}.ts`, 'C4']),
|
|
6
|
-
// G530 O1: the seated-figure specimen's one user is Nalati's mounted shepherd (Explorer catalogue)
|
|
7
|
-
['src/client/game/models/mountedSpecimen.ts', 'C1'],
|
|
8
|
-
]);
|
|
9
|
-
// G677 credits exact listed entry adapters through g571-hosts, without new
|
|
10
|
-
// dispatch-user overrides or duplicate stealth/signal credit. Siblings stay charged.
|
|
11
|
-
/** @type {Map<string,Map<string,import('./shard-components.mjs').Component>>} */
|
|
12
|
-
// G665 R16: the listed open-arena host (including its boundary) is credited.
|
|
13
|
-
const declarations = new Map([
|
|
14
|
-
['src/client/game/shardfile/worldAssembly.ts', new Map([['installAssemblyArenaScript', 'C9']])],
|
|
15
|
-
['src/client/game/looks/speciesBook.ts',new Map(['SpeciesLookBook','packedRows'].map(name=>[name,'C1']))],
|
|
16
|
-
['src/client/game/practice/course.ts', new Map(['MountedCourseEntry', 'GrappleCourseEntry', 'MountEntryRows', 'GrappleEntryRows'].map(name => [name, 'C6']))],
|
|
17
|
-
['src/client/game/boss/encounterView.ts', new Map(['SlotEncounterView','PatrolEncounterView'].map(name=>[name,'C4']))],
|
|
18
|
-
['src/shared/game/boss/slotLaw.ts', new Map([['SlotEncounterLaw','C4']])],
|
|
19
|
-
['src/client/game/shardfile/worldScenes.ts', new Map([['WorldScenePoolPublications', 'C1']])],
|
|
20
|
-
['src/client/game/shardfile/scenePools.ts', new Map([['WorldSceneTierPools', 'C1']])],
|
|
21
|
-
['src/format/worldScenes.ts', new Map([['WorldSceneTierPools', 'C1'], ['WorldScenePoolPublications', 'C1']])],
|
|
22
|
-
]);
|
|
23
|
-
|
|
24
|
-
/** Concrete dependencies of the optional chapter facet retain their original
|
|
25
|
-
* users and mixed component attribution; a dispatcher is not another owner.
|
|
26
|
-
* @type {Map<string,readonly string[]|null>} */
|
|
27
|
-
const chapterViewNativeOwners = new Map([
|
|
28
|
-
// Remaining unapproved dependencies retain their actual optional-facet consumer.
|
|
29
|
-
// G621 D4/R13 retires the approved figure, equipment and height-patch overrides.
|
|
30
|
-
["src/client/game/quest/carriedProp.ts", null],
|
|
31
|
-
["src/shared/engine/combat/effects/types.ts", ["SourceMulDef", "anyTag", "sourceMultiplier"]],
|
|
32
|
-
]);
|
|
33
|
-
|
|
34
|
-
// Single-shard branches inside otherwise shared declarations. These spans select
|
|
35
|
-
// code lines, never fixed credits; packet/instance-matrix handling stays shared.
|
|
36
|
-
/** @type {Map<string,Map<string,[string,number][]>>} */
|
|
37
|
-
const inline = new Map([
|
|
38
|
-
// the tier-selected pool decoder the resident scenes and the catalogue's cold intake share
|
|
39
|
-
['src/client/game/shardfile/scenePools.ts', new Map([['WorldSceneTierPools', [
|
|
40
|
-
['geometryPools: files.map(file => ({ url: product.url(tierFile(file.file))', 1],
|
|
41
|
-
['const file = [...files.map(entry => tierFile(entry.file))', 1],
|
|
42
|
-
]]])],
|
|
43
|
-
['src/client/game/shardfile/worldScenes.ts', new Map([
|
|
44
|
-
['WorldScenePoolPublications', [
|
|
45
|
-
["for (const row of section.libraries) if (row.kind === 'pool' && row.publish !== undefined)", 3],
|
|
46
|
-
['if (row.publish !== undefined) for (const part of row.files.flatMap', 4],
|
|
47
|
-
]],
|
|
48
|
-
])],
|
|
49
|
-
['src/format/worldScenes.ts', new Map([
|
|
50
|
-
['WorldScenePoolPublications', [["v.strictObject({ id, kind: v.literal('pool'), publish:", 1]]],
|
|
51
|
-
['WorldSceneTierPools', [
|
|
52
|
-
['channels: v.exactOptional(bounded(v.strictObject', 1],
|
|
53
|
-
['const poolParts = ', 2],
|
|
54
|
-
[": entry.kind === 'pool' ? { ...entry, files: entry.files.filter(active) }", 1],
|
|
55
|
-
]],
|
|
56
|
-
])],
|
|
57
|
-
]);
|
|
58
|
-
|
|
59
|
-
/** @param {string} path @param {string} [name] */
|
|
60
|
-
function reviewedOwner(path, name) {
|
|
61
|
-
if(path === 'src/client/game/practice/course.ts' && ['GrappleCourseEntry','GrappleEntryRows'].includes(name ?? '')) return 'nine-dragon-stack';
|
|
62
|
-
if (path.endsWith('/worldScenes.ts') || path === 'src/client/game/shardfile/scenePools.ts') return 'nine-dragon-stack';
|
|
63
|
-
return 'nalati-grasslands';
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/** Shared declarations containing reviewed single-shard branches. */
|
|
67
|
-
export function inlinePlatformPaths() { return [...inline.keys()]; }
|
|
68
|
-
|
|
69
|
-
/** @param {string} path @param {string} source @param {(line:string)=>void} [report]
|
|
70
|
-
* @returns {{name:string,lines:number[]}[]} */
|
|
71
|
-
export function inlinePlatformSpans(path, source, report = console.error) {
|
|
72
|
-
const rows = [], lines = source.split('\n'), claimed = new Set();
|
|
73
|
-
for (const [name, blocks] of inline.get(path) ?? []) {
|
|
74
|
-
const selected = [];
|
|
75
|
-
for (const [needle, length] of blocks) {
|
|
76
|
-
const matches = lines.flatMap((line, index) => (needle.startsWith('=') ? line === needle.slice(1) : line.includes(needle)) ? [index] : []);
|
|
77
|
-
if (matches.length !== 1) { report(`shard-platform: skip changed inline span ${path}#${name}: ${needle}`); continue; }
|
|
78
|
-
for (const start of matches) for (let line = start; line < start + length; line++) if (!claimed.has(line)) { claimed.add(line); selected.push(line); }
|
|
79
|
-
}
|
|
80
|
-
rows.push({ name, lines: selected });
|
|
81
|
-
}
|
|
82
|
-
return rows;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/** Reviewed sole-user ownership, including declarations hidden behind shared
|
|
86
|
-
* optional dispatch. StaticCapture remains shared.
|
|
87
|
-
* @param {string} path @param {string} [name]
|
|
88
|
-
* @returns {import('./shard-components.mjs').Component|null} */
|
|
89
|
-
export function platformChargeback(path, name) {
|
|
90
|
-
return modules.get(path) ?? (name === undefined ? null : declarations.get(path)?.get(name) ?? null);
|
|
91
|
-
}
|
|
92
|
-
/** @param {string} path */
|
|
93
|
-
export function hasChargebackDeclarations(path) { return declarations.has(path); }
|
|
94
|
-
|
|
95
|
-
/** Whole-module G520 deletions leave no host to receive a pending-user credit.
|
|
96
|
-
* Keep the shared WIP ledger untouched. @param {string} path */
|
|
97
|
-
export function retiredPlatformModule(path) {
|
|
98
|
-
return path === 'src/engine/models/glbNodes.ts' || path === 'src/game/shardfile/buildingAssembly.ts';
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/** A canonical output census can omit an audited host's owning shard.
|
|
102
|
-
* Preserve its owner without indexing a shard outside this measurement.
|
|
103
|
-
* @template {{path:string,lines:number,name?:string}} T
|
|
104
|
-
* @param {Map<string,T[]>} charges @param {string|undefined} owner
|
|
105
|
-
* @param {T} row @param {(line:string)=>void} [report] */
|
|
106
|
-
export function recordPrivateCharge(charges, owner, row, report = console.error) {
|
|
107
|
-
// an audited inline branch charges its reviewed owner even inside a declaration another shard shares
|
|
108
|
-
const reviewed = platformChargeback(row.path, row.name) !== null || inline.get(row.path)?.has(row.name ?? '') === true;
|
|
109
|
-
const shard = reviewed ? reviewedOwner(row.path, row.name) : owner;
|
|
110
|
-
const target = charges.get(shard ?? '');
|
|
111
|
-
if (target === undefined) {
|
|
112
|
-
report(`shard-platform: skip ${row.path}${row.name === undefined ? '' : `#${row.name}`}: ${row.lines} lines owned by ${shard ?? 'no user'}, outside measured shards`);
|
|
113
|
-
return false;
|
|
114
|
-
}
|
|
115
|
-
target.push(row);
|
|
116
|
-
return true;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** Reconcile broad import reach with the audited, actual row consumers.
|
|
120
|
-
* @param {Map<string,Set<string>>} moduleUsers
|
|
121
|
-
* @param {Map<string,Set<string>>} bindingUsers */
|
|
122
|
-
export function chargePlatformUsers(moduleUsers, bindingUsers) {
|
|
123
|
-
for (const [path, names] of chapterViewNativeOwners) {
|
|
124
|
-
if (names === null) { if (moduleUsers.has(path)) moduleUsers.set(path, new Set(['nalati-grasslands'])); }
|
|
125
|
-
else for (const name of names) { const key = `${path}\0${name}`; if (bindingUsers.has(key)) bindingUsers.set(key, new Set(['nalati-grasslands'])); }
|
|
126
|
-
}
|
|
127
|
-
for (const path of modules.keys()) if (moduleUsers.has(path)) {
|
|
128
|
-
const shard = reviewedOwner(path);
|
|
129
|
-
moduleUsers.set(path, new Set([shard]));
|
|
130
|
-
}
|
|
131
|
-
for (const [path, names] of declarations) for (const name of names.keys()) {
|
|
132
|
-
const key = `${path}\0${name}`;
|
|
133
|
-
if (bindingUsers.has(key)) bindingUsers.set(key, new Set([reviewedOwner(path, name)]));
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Component, ComponentInventory, ComponentSpan } from './shard-components.mjs';
|
|
2
|
-
import type { CustomSource } from './shard-platform.mjs';
|
|
3
|
-
|
|
4
|
-
export interface ComponentSpanInput {
|
|
5
|
-
customSources?:CustomSource[];
|
|
6
|
-
components?:ComponentInventory;
|
|
7
|
-
conversion:{customRuntimeLines:number};
|
|
8
|
-
}
|
|
9
|
-
export interface ComponentSpanReport {
|
|
10
|
-
schema:'shard-platform-spans/1';measurement:'source';shard:string;
|
|
11
|
-
total:number|null;counts:Record<Component,number>|null;
|
|
12
|
-
spans:ComponentSpan[]|null;unknown:string[]|null;measurementError:string|null;
|
|
13
|
-
}
|
|
14
|
-
export function componentSpanReports(root:string,inventory:Partial<Record<string,ComponentSpanInput>>,slugs:readonly string[],measurementError:string|null):Record<string,ComponentSpanReport>;
|
|
15
|
-
export function writeComponentSpans(directory:string,input:unknown,revision:string):void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { componentInventory } from './shard-components.mjs';
|
|
2
|
-
|
|
3
|
-
/** Publish the existing verified census; never build or count ownership again.
|
|
4
|
-
* @param {string} root
|
|
5
|
-
* @param {Partial<Record<string,import('./shard-component-spans.mjs').ComponentSpanInput>>} inventory
|
|
6
|
-
* @param {readonly string[]} slugs
|
|
7
|
-
* @param {string|null} measurementError */
|
|
8
|
-
export function componentSpanReports(root,inventory,slugs,measurementError) {
|
|
9
|
-
return Object.fromEntries(slugs.map(shard=>{
|
|
10
|
-
if(measurementError!==null)return [shard,{schema:'shard-platform-spans/1',measurement:'source',shard,
|
|
11
|
-
total:null,counts:null,spans:null,unknown:null,measurementError}];
|
|
12
|
-
const row=inventory[shard];
|
|
13
|
-
if(row?.customSources===undefined)throw new Error(`Census: missing source spans for ${shard}`);
|
|
14
|
-
const measured=row.components??componentInventory(root,shard,row.customSources,row.conversion.customRuntimeLines);
|
|
15
|
-
return [shard,{schema:'shard-platform-spans/1',measurement:'source',shard,
|
|
16
|
-
total:measured.total,counts:measured.counts,spans:measured.spans,unknown:measured.unknown,measurementError:null}];
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type {CustomSource} from './shard-platform.mjs';
|
|
2
|
-
|
|
3
|
-
export type Component = 'C1'|'C2'|'C3'|'C4'|'C5'|'C6'|'C7'|'C8'|'C9';
|
|
4
|
-
export interface ComponentSpan {path:string;symbol:string|null;kind:CustomSource['kind'];component:Component;lines:number;start?:number;end?:number;reason:string}
|
|
5
|
-
export interface ComponentInventory {shard:string;counts:Record<Component,number>;total:number;unknown:string[];spans:ComponentSpan[]}
|
|
6
|
-
export interface ShardWaveRow {id:string;status:string;current:boolean;shards:{slug:string;name:string}[]}
|
|
7
|
-
export interface ComponentState {closed:boolean;state:'closed'|'closing'|'open';lines:Record<string,number|null>}
|
|
8
|
-
export interface ComponentWave {id:string;status:string;current:boolean;shards:string[];names:Record<string,string>;unknown:Record<string,string[]|null>;closed:number;total:number;components:Record<Component,ComponentState>}
|
|
9
|
-
export const SHARD_WAVES:ShardWaveRow[];
|
|
10
|
-
export const COMPONENT_SHARDS:readonly string[];
|
|
11
|
-
export const W1_SHARDS:readonly string[];
|
|
12
|
-
export const COMPONENTS:Record<Component,string>;
|
|
13
|
-
export function componentInventory(root:string,shard:string,sources:CustomSource[],canonical:number):ComponentInventory;
|
|
14
|
-
export function componentWave(rows:Record<string,{components?:ComponentInventory}>,id?:string,closing?:Component[]):ComponentWave;
|
|
15
|
-
export function componentMarkdown(rows:Record<string,{components?:ComponentInventory}>):string[];
|
|
16
|
-
export function componentStates(rows:Record<string,{components?:ComponentInventory}>,slugs:string[],closing?:Component[]):Record<Component,ComponentState>;
|