@wildshard/engine 0.1.15 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/index.html +157 -11
  3. package/lint/engine-sides.json +23 -0
  4. package/lint/host-callback-syntax.mjs +2 -1
  5. package/lint/host-callbacks.mjs +3 -3
  6. package/lint/host-files.mjs +5 -4
  7. package/lint/host-register.json +496 -0
  8. package/lint/no-base64.mjs +3 -1
  9. package/lint/ratchet.json +2 -2
  10. package/lint/shard-imports.d.mts +1 -0
  11. package/lint/shard-imports.mjs +60 -13
  12. package/lint/shard-source.d.mts +9 -0
  13. package/lint/shard-source.mjs +91 -0
  14. package/lint/shardfile-boundaries.mjs +10 -8
  15. package/lint/sim-closure.mjs +6 -3
  16. package/lint/wildshard-plugin.d.ts +4 -0
  17. package/lint/wildshard-plugin.js +44 -27
  18. package/package.json +24 -6
  19. package/scripts/app-build/buildIdentity.d.mts +3 -1
  20. package/scripts/app-build/buildIdentity.mjs +25 -5
  21. package/scripts/app-build/builtAt.d.mts +4 -0
  22. package/scripts/app-build/builtAt.mjs +21 -0
  23. package/scripts/app-build/outputProducts.d.mts +3 -0
  24. package/scripts/app-build/outputProducts.mjs +31 -0
  25. package/scripts/app-build/serviceWorker.ts +16 -2
  26. package/scripts/app-build/versionFiles.ts +2 -1
  27. package/scripts/app-build-pipeline.mjs +7 -1
  28. package/scripts/audio-download-proof.mjs +843 -0
  29. package/scripts/build-app.mjs +4 -0
  30. package/scripts/build-mirror.d.mts +2 -0
  31. package/scripts/build-mirror.mjs +5 -4
  32. package/scripts/built-product.mjs +3 -3
  33. package/scripts/cell-mem/metrics-preload.mjs +65 -0
  34. package/scripts/cell-mem-bench.mjs +130 -0
  35. package/scripts/check-chunks.mjs +2 -1
  36. package/scripts/check-devserver.mjs +1 -1
  37. package/scripts/chromium-keychain-check.mjs +4 -2
  38. package/scripts/chromium-keychain.mjs +3 -1
  39. package/scripts/cook.mjs +7 -3
  40. package/scripts/devices.d.mts +4 -0
  41. package/scripts/devices.mjs +39 -0
  42. package/scripts/devserver-client.d.mts +7 -0
  43. package/scripts/devserver-client.mjs +85 -0
  44. package/scripts/doctor-proof.mjs +1 -1
  45. package/scripts/e2e-faults.mjs +159 -0
  46. package/scripts/engine-ci-budget.ts +7 -1
  47. package/scripts/format-lock.mjs +20 -11
  48. package/scripts/generate-title-launch.mjs +3 -2
  49. package/scripts/grid-crossing-walk-proof.mjs +30 -11
  50. package/scripts/heavy-lane.py +25 -1
  51. package/scripts/host-ruler/register-migrate.mjs +242 -0
  52. package/scripts/host-ruler/register.d.mts +36 -0
  53. package/scripts/host-ruler/register.mjs +116 -0
  54. package/scripts/host-ruler/roots.d.mts +29 -0
  55. package/scripts/host-ruler/roots.mjs +333 -0
  56. package/scripts/host-ruler/server-roots.d.mts +23 -0
  57. package/scripts/host-ruler/server-roots.mjs +272 -0
  58. package/scripts/main-watch.d.mts +1 -1
  59. package/scripts/main-watch.mjs +10 -6
  60. package/scripts/map-hash.mjs +3 -6
  61. package/scripts/memory-proof.mjs +158 -0
  62. package/scripts/mmo-bots.mjs +2 -2
  63. package/scripts/offline-proof-rules.d.mts +5 -2
  64. package/scripts/offline-proof-rules.mjs +43 -6
  65. package/scripts/offline-proof.mjs +15 -6
  66. package/scripts/online-rig.mjs +4 -4
  67. package/scripts/page-release/flow.d.mts +1 -0
  68. package/scripts/page-release/flow.mjs +6 -2
  69. package/scripts/page-release.mjs +5 -1
  70. package/scripts/physics-route.json +0 -71
  71. package/scripts/pins-catalogue.ts +103 -0
  72. package/scripts/pins-reuse.mjs +3 -1
  73. package/scripts/pins.ts +22 -14
  74. package/scripts/preview-grid.ts +203 -0
  75. package/scripts/road-preload-proof.mjs +167 -0
  76. package/scripts/server-release/publish.mjs +2 -2
  77. package/scripts/server-release/served-slug.d.mts +2 -0
  78. package/scripts/server-release/served-slug.mjs +10 -0
  79. package/scripts/server-release/sign.d.mts +1 -0
  80. package/scripts/server-release/sign.mjs +3 -7
  81. package/scripts/shard-components.mjs +0 -2
  82. package/scripts/shard-outputs.d.mts +8 -0
  83. package/scripts/shard-outputs.mjs +45 -11
  84. package/scripts/side-parity.d.mts +2 -1
  85. package/scripts/side-parity.mjs +25 -4
  86. package/scripts/test-amber.d.mts +1 -0
  87. package/scripts/test-amber.mjs +10 -0
  88. package/scripts/test-products.json +3 -3
  89. package/scripts/tier-textures-proof.mjs +101 -0
  90. package/scripts/tier-textures.mjs +60 -0
  91. package/scripts/tracked-public.d.mts +1 -0
  92. package/scripts/tracked-public.mjs +17 -0
  93. package/scripts/tsconfig.json +1 -0
  94. package/scripts/vps/wildshard-config +79 -23
  95. package/scripts/worker-client-play.mjs +1 -0
  96. package/scripts/worker-client-proof.mjs +1 -1
  97. package/scripts/worker-client-slug.mjs +44 -0
  98. package/src/cli/engine.mjs +8 -0
  99. package/src/client/app/bootRoute.ts +4 -1
  100. package/src/client/app/dropModal.ts +15 -2
  101. package/src/client/app/entry.ts +96 -13
  102. package/src/client/app/slugPath.ts +5 -0
  103. package/src/client/engine/audio/Audio.ts +20 -2
  104. package/src/client/engine/boot/bakedTextures.ts +3 -2
  105. package/src/client/engine/boot/bootTrace.ts +6 -1
  106. package/src/client/engine/boot/bytes.ts +4 -3
  107. package/src/client/engine/boot/clearDownloads.ts +1 -1
  108. package/src/client/engine/boot/contentRead.ts +4 -0
  109. package/src/client/engine/boot/dropNotice.ts +20 -6
  110. package/src/client/engine/boot/gpuFiles.ts +25 -2
  111. package/src/client/engine/boot/lastEnd.ts +8 -2
  112. package/src/client/engine/boot/parsedPages.ts +127 -58
  113. package/src/client/engine/boot/shardPrefetch.ts +7 -1
  114. package/src/client/engine/boot/sw.ts +19 -0
  115. package/src/client/engine/build.d.ts +2 -0
  116. package/src/client/engine/core/Game.ts +29 -3
  117. package/src/client/engine/core/GpuRecovery.ts +7 -0
  118. package/src/client/engine/core/Volumetrics.ts +5 -0
  119. package/src/client/engine/core/assets.ts +27 -20
  120. package/src/client/engine/core/bootstrap.ts +5 -3
  121. package/src/client/engine/core/ktx2.ts +84 -11
  122. package/src/client/engine/debug/probe.ts +18 -1
  123. package/src/client/engine/explore/Compare.ts +2 -2
  124. package/src/client/engine/explore/TouchFly.ts +3 -5
  125. package/src/client/engine/fx/LightPool.ts +41 -1
  126. package/src/client/engine/input/dom.ts +12 -0
  127. package/src/client/engine/net/predictor.ts +6 -2
  128. package/src/client/engine/player/Player.ts +10 -2
  129. package/src/client/engine/player/TouchControls.ts +12 -4
  130. package/src/client/engine/pwa/sw.js +59 -11
  131. package/src/client/engine/render/drawCheck.ts +96 -0
  132. package/src/client/engine/render/precompile.ts +20 -14
  133. package/src/client/engine/saves/staleBuildNote.ts +46 -0
  134. package/src/client/engine/telemetry/browserErrors.ts +161 -21
  135. package/src/client/engine/telemetry/deviceSnapshot.ts +155 -0
  136. package/src/client/engine/telemetry/screenOutbox.ts +61 -0
  137. package/src/client/engine/telemetry/staleBuildReport.ts +12 -0
  138. package/src/client/engine/ui/DeathFade.ts +99 -11
  139. package/src/client/engine/ui/ErrorModal.ts +13 -6
  140. package/src/client/engine/ui/Feedback.ts +2 -1
  141. package/src/client/engine/ui/Loading.ts +10 -6
  142. package/src/client/engine/ui/Map.ts +2 -1
  143. package/src/client/engine/ui/WeaponStrip.ts +2 -1
  144. package/src/client/engine/ui/backGuard.ts +104 -0
  145. package/src/client/engine/ui/hudAdapters.ts +30 -4
  146. package/src/client/engine/ui/loading.css +17 -0
  147. package/src/client/engine/ui/namePrompt.ts +6 -5
  148. package/src/client/engine/ui/styles/combat.css +12 -0
  149. package/src/client/engine/ui/styles/namePrompt.css +4 -2
  150. package/src/client/game/boot/audio.generated.ts +0 -396
  151. package/src/client/game/boot/bytes.generated.ts +42 -71
  152. package/src/client/game/boot/versions.generated.ts +0 -13
  153. package/src/client/game/compendium/keepsakes.ts +16 -6
  154. package/src/client/game/grapple/tool.ts +10 -7
  155. package/src/client/game/grid/area.ts +38 -0
  156. package/src/client/game/grid/cellLoading.ts +23 -12
  157. package/src/client/game/grid/cellScreens.ts +39 -74
  158. package/src/client/game/grid/live.ts +28 -2
  159. package/src/client/game/grid/liveSession.ts +54 -10
  160. package/src/client/game/grid/menu.ts +4 -0
  161. package/src/client/game/grid/nearPlaceholderPlan.ts +8 -0
  162. package/src/client/game/grid/nearPlaceholderView.ts +9 -3
  163. package/src/client/game/grid/neighbourPanels.ts +10 -1
  164. package/src/client/game/grid/oneWayIn.ts +92 -27
  165. package/src/client/game/grid/pageEntry.ts +19 -0
  166. package/src/client/game/grid/pageShell.ts +1 -1
  167. package/src/client/game/grid/placedCards.ts +55 -0
  168. package/src/client/game/grid/placedCells.ts +131 -0
  169. package/src/client/game/grid/plotAudio.ts +114 -0
  170. package/src/client/game/grid/products.ts +55 -5
  171. package/src/client/game/grid/regionalRuntime.ts +6 -0
  172. package/src/client/game/grid/regionalWorld.ts +15 -2
  173. package/src/client/game/grid/roadCull.ts +44 -14
  174. package/src/client/game/grid/roadLookPlatform.ts +2 -2
  175. package/src/client/game/grid/roadTileBacking.ts +13 -3
  176. package/src/client/game/grid/session.ts +47 -22
  177. package/src/client/game/grid/shardfileFar.ts +9 -3
  178. package/src/client/game/grid/spawnGround.ts +68 -0
  179. package/src/client/game/grid/voidLook.ts +29 -23
  180. package/src/client/game/loot/runtime.ts +3 -1
  181. package/src/client/game/mainMenu.ts +14 -6
  182. package/src/client/game/riding/hud.ts +6 -4
  183. package/src/client/game/session/finish.ts +22 -4
  184. package/src/client/game/session/play.ts +8 -2
  185. package/src/client/game/session/session.ts +4 -1
  186. package/src/client/game/shard/titleList.ts +6 -2
  187. package/src/client/game/shardfile/clientWorker.ts +43 -13
  188. package/src/client/game/shardfile/serverRoute.ts +10 -22
  189. package/src/client/game/slugPage.css +11 -0
  190. package/src/client/game/slugPage.ts +84 -0
  191. package/src/client/game/systems/viewmodel/heldView.ts +6 -3
  192. package/src/client/game/titleDeck.ts +56 -32
  193. package/src/client/host/online/doctor.ts +7 -6
  194. package/src/client/host/online/linkScreens.ts +16 -0
  195. package/src/client/host/online/release.ts +51 -5
  196. package/src/client/host/online/shell.ts +62 -27
  197. package/src/client/host/standalone/shell.ts +7 -3
  198. package/src/cook/game/audioReport.ts +57 -0
  199. package/src/cook/game/entryTotals.ts +26 -6
  200. package/src/cook/game/installedRuntimeReads.ts +3 -0
  201. package/src/cook/game/shardCook.ts +38 -8
  202. package/src/cook/game/tierTextures.ts +276 -0
  203. package/src/e2e/smoke/game.ts +19 -14
  204. package/src/e2e/smoke/page-globals.d.ts +9 -8
  205. package/src/e2e/smoke/template2.spec.ts +8 -7
  206. package/src/server/engine/sim/respawn.ts +6 -1
  207. package/src/server/engine/sim.ts +3 -0
  208. package/src/server/game/grid/simulation.ts +35 -0
  209. package/src/server/game/loot/harvest.ts +2 -0
  210. package/src/server/game/loot/keepsakeProgression.ts +40 -0
  211. package/src/server/game/loot/playerOwned.ts +5 -1
  212. package/src/server/game/plugin/simulation.ts +4 -0
  213. package/src/server/game/population/nativeBake.ts +2 -1
  214. package/src/server/game/quest/chapterRecords.ts +2 -0
  215. package/src/server/game/quest/serverChapters.ts +4 -0
  216. package/src/server/game/quest/serverDoors.ts +11 -5
  217. package/src/server/game/roomRespawn.ts +4 -0
  218. package/src/server/game/shardfile/installedSides.ts +18 -0
  219. package/src/server/game/shardfile/nativeAssemblyHosts.ts +19 -10
  220. package/src/server/game/shardfile/nativeAssemblyInput.ts +1 -4
  221. package/src/server/host/bake/headlessWorker.ts +5 -1
  222. package/src/server/host/dedicated/cellHost.ts +98 -29
  223. package/src/server/host/dedicated/cellProtocol.ts +11 -1
  224. package/src/server/host/dedicated/cellWorker.ts +9 -3
  225. package/src/server/host/dedicated/crossing.ts +6 -2
  226. package/src/server/host/dedicated/dedicatedRoom.ts +21 -8
  227. package/src/server/host/dedicated/gridCells.ts +52 -9
  228. package/src/server/host/dedicated/main.ts +31 -12
  229. package/src/server/host/dedicated/placementFile.ts +56 -0
  230. package/src/server/host/dedicated/releaseFile.ts +17 -10
  231. package/src/server/host/dedicated/roadRoom.ts +21 -5
  232. package/src/server/host/dedicated/socketTransport.ts +2 -1
  233. package/src/server/host/dedicated/workerTable.ts +13 -1
  234. package/src/server/host/dedicated/world.ts +111 -10
  235. package/src/server/host/headlessRuntime.ts +10 -5
  236. package/src/server/host/installers.ts +62 -0
  237. package/src/server/host/openWorld.ts +59 -0
  238. package/src/server/host/ropeDecks.ts +2 -0
  239. package/src/server/host/standalone/cellWorld.ts +25 -19
  240. package/src/server/host/standalone/fallFloor.ts +2 -2
  241. package/src/server/host/standalone/gridServer.ts +7 -4
  242. package/src/server/host/standalone/roadWorld.ts +41 -4
  243. package/src/shared/engine/audio/bootAudio.ts +33 -0
  244. package/src/shared/engine/level/spec.ts +3 -3
  245. package/src/shared/engine/net/acts.ts +3 -0
  246. package/src/shared/engine/net/deviceWord.ts +138 -0
  247. package/src/shared/engine/net/socketFrames.ts +7 -4
  248. package/src/shared/engine/physics/query.ts +27 -0
  249. package/src/shared/engine/physics/terrain.ts +19 -28
  250. package/src/shared/engine/saves/saves.lock.json +15 -0
  251. package/src/shared/engine/sim/actRoutes.ts +2 -0
  252. package/src/shared/game/compendium/keepsakeProgression.ts +24 -0
  253. package/src/shared/game/grid/catalogue.ts +12 -5
  254. package/src/shared/game/grid/catalogueSlot.ts +18 -0
  255. package/src/shared/game/grid/farProxy.ts +6 -5
  256. package/src/shared/game/grid/pageMode.ts +1 -1
  257. package/src/shared/game/grid/placementRows.ts +33 -0
  258. package/src/shared/game/grid/roadLayout.ts +26 -3
  259. package/src/shared/game/grid/singleplayer.json +0 -13
  260. package/src/shared/game/grid/voidFloor.ts +122 -0
  261. package/src/shared/game/strings.ts +15 -0
  262. package/src/shared/host/standalone/netInput.ts +2 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,29 @@ run `../repo-kit/release.sh vX.Y.Z --prepare` and `--finish` as before (the help
9
9
  `scripts/changelog.mjs` checks the format; the pre-push hook and CI refuse a push whose `package.json` version has no
10
10
  valid section, and a `vX.Y.Z` tag whose commit has none.
11
11
 
12
+ ## v0.1.18 (2026-11-13)
13
+
14
+ - Share a shard with a link: play.wildshard.io/slug/driftwood-isle opens that shard and shows its name and picture in chat previews.
15
+ - New shards placed on the world grid after a release, like Thin Ice, get their own card in Shard select and you can walk in.
16
+ - iPhones use less memory: Driftwood loads compressed textures, and the world file loads with far fewer allocations.
17
+ - Walking off a shard's edge no longer stalls while the next shard builds, and Driftwood Isle and Pine Hollow have their sounds back.
18
+ - Behind the scenes: we log each player's device to find crashes, and shard authors can prepare a release without the engine source.
19
+
20
+ ## v0.1.17 (2026-11-13)
21
+
22
+ - Crossing is on: walk off one shard's edge into the next at full speed, with no invisible walls at chunk edges or seams.
23
+ - On phones, touch play never locks the pointer, a back swipe keeps you in the game, and the death card has a Respawn now button.
24
+ - Quest markers and other pins sit on their targets in every grid cell, and Driftwood's near scenery stays drawn up to its edge.
25
+ - The title shows the build and a reload button at once, a stale build makes you update, and a loading shard shows its own card.
26
+ - Android phones without half-float textures fall back instead of failing, a lost GPU returns you to the world, and errors reach us.
27
+
28
+ ## v0.1.16 (2026-11-13)
29
+
30
+ - Pine Hollow's spawn shows its own textured ground, no longer bare tan slopes.
31
+ - The world grid has room for 7 by 7 shards (the same 25 for now), and the empty spots between them are flat ground you can walk on.
32
+ - The engine's command line tool, which crashed when installed from npm in v0.1.15, now runs.
33
+ - Behind the scenes: the server can open a newly placed shard without a restart (off for now).
34
+
12
35
  ## v0.1.15 (2026-11-13)
13
36
 
14
37
  - Music plays piano only now; the music style choice is gone from Settings (this came in v0.1.14, whose notes missed it).
package/index.html CHANGED
@@ -2,11 +2,36 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
+ <script data-secure-door>
6
+ // QA 2026-11-13 (Chrome on iOS): plain http is not a secure context, so there is no crypto.randomUUID, crypto.subtle or
7
+ // service worker, and the title froze under WILDSHARD with no buttons. A public host moves to its https twin before
8
+ // the game loads; an address with none (a LAN dev server on a port) gets a plain line instead of a silent title.
9
+ (() => {
10
+ if (window.isSecureContext !== false) return;
11
+ const host = location.hostname;
12
+ if (host === 'localhost' || host === '127.0.0.1' || host === '[::1]' || host.endsWith('.localhost')) return;
13
+ if (location.protocol === 'http:' && location.port === '' && host.includes('.') && !host.endsWith('.local') && !/^[\d.]+$|^\[/u.test(host)) {
14
+ document.documentElement.dataset.secureDoor = 'moving'; // the doctor door below must not override this navigation
15
+ location.replace('https://' + location.host + location.pathname + location.search + location.hash);
16
+ return;
17
+ }
18
+ document.documentElement.dataset.insecure = '';
19
+ const say = () => {
20
+ const line = document.createElement('div');
21
+ line.setAttribute('role', 'alert');
22
+ line.style.cssText = 'position:fixed;left:16px;right:16px;bottom:24px;z-index:99;padding:12px 14px;font:14px/1.4 system-ui,sans-serif;color:#e6f2f8;background:rgba(6,10,18,.88);border:1px solid #ff5a4a;border-radius:6px';
23
+ line.textContent = 'Wildshard needs a secure page and this one is not (no https). Open it with an https:// address, or from localhost.';
24
+ document.body.append(line);
25
+ };
26
+ if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', say); else say();
27
+ })();
28
+ </script>
5
29
  <script data-doctor-door>
6
30
  // E7.5 prep: `/?doctor`, or a /doctor/ navigation the service worker answered with this document, goes to the Connection
7
31
  // doctor's own page past the worker (`sw=0`) before any of the game loads. A /doctor/ that already passed it is an old deploy.
8
32
  (() => {
9
33
  const query = new URLSearchParams(location.search), door = query.has('doctor'), path = location.pathname.startsWith('/doctor');
34
+ if (document.documentElement.dataset.secureDoor === 'moving') return; // already moving to https, which keeps ?doctor
10
35
  if (!door && !(path && query.get('sw') !== '0')) return;
11
36
  query.delete('doctor'); query.set('sw', '0'); if (!query.has('from')) query.set('from', 'link');
12
37
  document.documentElement.dataset.doctor = '';
@@ -426,6 +451,23 @@ html[data-ws-keyboard] #game, html[data-ws-keyboard] #hud { top: var(--ws-kb-top
426
451
  .ws-load .ws-load-hold, .ws-load .ws-load-copy, .ws-load .ws-load-menu { width: 100%; }
427
452
  }
428
453
 
454
+ /* QA 2026-11-13 (Jake: "make it look the same as the one for Shard Select"): a grid cell's preparation is this same card,
455
+ inset over the live world (Loading's `inset` mode): no backdrop, wordmark or footer, no input (the move stick, the look pad
456
+ and the buttons under it keep working). It sits under the minimap and above the touch buttons on a 402 x 874 portrait,
457
+ centred near the top on desktop, where its footer line (the work now, or a refusal's reason) follows the card. */
458
+ .ws-load[data-inset] { z-index: calc(var(--ws-layer-hud) + 5); background: none; pointer-events: none; justify-content: flex-start; }
459
+ .ws-load[data-inset]::before, .ws-load[data-inset]::after, .ws-load[data-inset] .ws-load-head { display: none; }
460
+ .ws-load[data-inset] .ws-load-foot { box-sizing: border-box; width: min(560px, calc(100% - 32px)); margin: 8px auto 0; padding: 6px 10px; background: rgba(3, 8, 15, 0.55); text-shadow: 0 1px 2px #000; }
461
+ .ws-load[data-inset] .ws-load-foot:has([data-el="foot"]:empty) { display: none; }
462
+ .ws-load[data-inset] .ws-load-body { flex: none; padding: clamp(72px, 12vh, 140px) 16px 0; }
463
+ .ws-load[data-inset] .ws-load-copy, .ws-load[data-inset] .ws-load-retry { pointer-events: auto; }
464
+ /* a phone: the card starts under the minimap and ends above the hover chip; the footer line shows only a refusal */
465
+ @media (max-width: 700px) {
466
+ .ws-load[data-inset] .ws-load-body { padding: calc(136px + env(safe-area-inset-top, 0px)) 16px 0; }
467
+ .ws-load[data-inset]:not([data-failed='true']) .ws-load-foot { display: none; }
468
+ }
469
+ @media (max-height: 500px) { .ws-load[data-inset] .ws-load-body { padding-top: 12px; } }
470
+
429
471
  /* G846: everyone sees the detailed progress; only the hold control is Developer-only. */
430
472
  /* </inline-shell-css> */
431
473
  html, body { margin: 0; width: 100%; height: 100%; background: #0b1622; }
@@ -444,6 +486,21 @@ html[data-ws-keyboard] #game, html[data-ws-keyboard] #hud { top: var(--ws-kb-top
444
486
  .ws-launch-hero { position: absolute; inset: 0; background: url('/assets/title/main-crossroads-landscape-9437ac10c599548a.jpg') center / cover no-repeat; }
445
487
  .ws-launch-brand { position: relative; margin: calc(24px + env(safe-area-inset-top, 0px)) 24px 0; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: .16em; text-shadow: 0 0 18px #8fe3ff73; }
446
488
  @media (orientation: portrait) { .ws-launch-hero { top: 50%; bottom: auto; width: 100%; aspect-ratio: 1; transform: translateY(-50%); background-image: url('/assets/title/main-crossroads-square-24abf23d2606ae3f.jpg'); } }
489
+ /* QA 11-13 (Jake: "is it broken? Is it doing something?"): before any bundle the static title wears the build pill
490
+ (update.css's .ws-update, copied, 5 px higher so it clears the wordmark: no module may be needed to see or tap it) and a bar that moves until StartTitle removes it */
491
+ .ws-launch-pill { position: absolute; right: 16px; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateY(-50%); z-index: 1; display: flex; align-items: center; gap: 6px; box-sizing: border-box; height: 19px; max-width: calc(100vw - 32px); margin: 0; padding: 0 8px; background: var(--ws-glass-deep); border: 1px solid var(--ws-cyan-line); color: var(--ws-text-dim); font: 8px/1 var(--ws-mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
492
+ .ws-launch-pill::before { content: ''; position: absolute; inset: -13px -6px; }
493
+ .ws-launch-pill i { flex: none; width: 4px; height: 4px; background: rgba(196, 220, 232, .35); }
494
+ .ws-launch-pill span { min-width: 0; margin-right: -.14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
495
+ .ws-launch-pill[data-reloading] { color: var(--ws-cyan); border-color: var(--ws-cyan); }
496
+ @media (min-width: 701px) { .ws-launch-pill { right: 44px; } }
497
+ .ws-launch-load { position: relative; margin: 0 24px calc(28px + env(safe-area-inset-bottom, 0px)); font: 10px var(--ws-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ws-text-dim); }
498
+ .ws-launch[data-stalled] .ws-launch-load, .ws-launch[data-stalled] .ws-launch-pill { color: var(--ws-amber); border-color: var(--ws-amber); }
499
+ .ws-launch-bar { position: relative; height: 3px; margin-bottom: 10px; background: var(--ws-cyan-faint); overflow: hidden; }
500
+ .ws-launch-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ws-cyan); box-shadow: 0 0 10px rgba(143, 227, 255, .6); transition: width .25s ease-out; }
501
+ .ws-launch-bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(143, 227, 255, .6), transparent); animation: ws-launch-sweep 1.2s linear infinite; }
502
+ @keyframes ws-launch-sweep { to { left: 100%; } }
503
+ @media (prefers-reduced-motion: reduce) { .ws-launch-bar::after { animation: none; } }
447
504
  @font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/jetbrains-mono-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
448
505
  @font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/jetbrains-mono-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
449
506
  @font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/jetbrains-mono-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@@ -465,17 +522,68 @@ html[data-ws-keyboard] #game, html[data-ws-keyboard] #hud { top: var(--ws-kb-top
465
522
  @font-face{font-family:'Rajdhani';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/rajdhani-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
466
523
  @font-face{font-family:'Rajdhani';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/rajdhani-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
467
524
  </style>
468
- <!-- UI styles: base first (tokens + shared primitives), then one sheet per screen with its own class prefix (scripts/check-css.mjs) -->
469
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/base.css" />
470
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/loading.css" />
471
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/game.css" />
472
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/menu.css" />
473
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/gmenu.css" />
474
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/touch.css" />
475
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/update.css" />
476
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/feedback.css" />
477
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/minimap.css" />
478
- <link rel="stylesheet" media="print" onload="this.media='all'" href="/src/client/engine/ui/styles/rotate.css" />
525
+ <script data-stale-build>
526
+ // STALE-BUILD SB2/SB4/SB5 (J321, Jake 11-13: "more than 3 weeks old ... just a forced update path"): a document stamped over
527
+ // 21 days before the clock stops here, before the entry's <script>, and only updates. The entry's own stamp
528
+ // (app-build/builtAt.mjs entryStamp) calls the same screen. A clock behind the stamp, or a server Date that says the build is fresh, never traps.
529
+ (() => {
530
+ const root = document.documentElement, LIMIT = 1814400000, build = String(globalThis.__WS_BUILD_ID__ || '');
531
+ const keep = (store, key, value) => { try { return value === undefined ? store.getItem(key) : value === null ? store.removeItem(key) : store.setItem(key, value); } catch { return null; } };
532
+ const old = at => at > 0 && Date.now() - at > LIMIT && keep(sessionStorage, 'ws-stale-pass') !== build;
533
+ globalThis.__wsStaleBuild = at => {
534
+ if (root.dataset.staleBuild !== undefined) return true;
535
+ if (!old(at)) return false;
536
+ root.dataset.staleBuild = ''; root.classList.add('title-first');
537
+ const box = document.createElement('div'), date = new Date(at).toLocaleDateString(undefined, {year: 'numeric', month: 'long', day: 'numeric'});
538
+ box.className = 'ws-launch'; box.dataset.staleScreen = '';
539
+ box.innerHTML = '<div class="ws-launch-hero" aria-hidden="true"></div><div class="ws-launch-brand">WILDSHARD</div><div style="position:relative;margin:0 24px calc(28px + env(safe-area-inset-bottom,0px));font:16px/1.4 system-ui,sans-serif"><p role="status" style="margin:0 0 14px;padding:12px 14px;background:rgba(6,10,18,.88);border:1px solid #8fe3ff"></p><button type="button" style="padding:12px 18px;background:rgba(6,10,18,.88);border:1px solid #8fe3ff;color:#8fe3ff;font:600 14px system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase">Update now</button></div>';
540
+ const line = box.querySelector('p'), say = text => { line.textContent = 'This version is from ' + date + ', too old' + text; };
541
+ let busy = false;
542
+ const update = async manual => {
543
+ if (busy) return;
544
+ busy = true;
545
+ if (manual) keep(sessionStorage, 'ws-stale-tries', null);
546
+ if (navigator.onLine === false) { busy = false; return say(' to play. Connect to the internet to update.'); }
547
+ say('. Updating…');
548
+ let server, fresh = {};
549
+ try { server = await fetch('/version.json?ws-fresh=' + Date.now(), {cache: 'no-store'}); fresh = await server.json(); }
550
+ catch { if (!server) { busy = false; return say(' to play. Connect to the internet to update.'); } }
551
+ // the device clock is wrong (the server's Date says the build is fresh), or the server has nothing newer (no deploy in
552
+ // 3 weeks): an update cannot help, so this build boots for the session instead of locking everyone out
553
+ if (Date.parse(server.headers.get('date') || '') - at <= LIMIT || fresh.build === build) { keep(sessionStorage, 'ws-stale-pass', build); return location.reload(); }
554
+ const tries = Number(keep(sessionStorage, 'ws-stale-tries')) || 0;
555
+ keep(localStorage, 'ws-stale-build', JSON.stringify({build, at, server: String(fresh.build || ''), tries, seen: Date.now()}));
556
+ if (tries >= 2) return say(', and updating did not replace it. Close the app fully and open it again.');
557
+ keep(sessionStorage, 'ws-stale-tries', String(tries + 1));
558
+ try { for (const worker of await navigator.serviceWorker.getRegistrations()) await worker.unregister(); } catch {}
559
+ try { for (const name of await caches.keys()) if (name.startsWith('ws-')) await caches.delete(name); } catch {}
560
+ const url = new URL(location.href); url.searchParams.set('ws-fresh', String(Date.now())); location.replace(url);
561
+ };
562
+ box.querySelector('button').onclick = () => update(true);
563
+ addEventListener('online', () => update(false));
564
+ (document.body || root.appendChild(document.createElement('body'))).append(box);
565
+ update(false);
566
+ return true;
567
+ };
568
+ if (root.dataset.secureDoor === 'moving' || root.dataset.doctor !== undefined) return;
569
+ const page = Number(globalThis.__WS_BUILT_AT__) || 0;
570
+ if (old(page)) { window.stop(); globalThis.__wsStaleBuild(page); }
571
+ })();
572
+ </script>
573
+ <!-- UI styles: base first (tokens + shared primitives), then one sheet per screen with its own class prefix (scripts/check-css.mjs).
574
+ Plain links on purpose (Jake 11-13, J323 follow-up: "compact the 10 style sheets into one ... minify"): the build bundles them,
575
+ in this order and ahead of the code's own CSS, into the one minified stylesheet, and stampBuildHtml (buildIdentity.mjs) makes
576
+ that one non-blocking (media=print onload). A print-media link here would ship as its own unminified file. -->
577
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/base.css" />
578
+ <link rel="stylesheet" href="/src/client/engine/ui/loading.css" />
579
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/game.css" />
580
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/menu.css" />
581
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/gmenu.css" />
582
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/touch.css" />
583
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/update.css" />
584
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/feedback.css" />
585
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/minimap.css" />
586
+ <link rel="stylesheet" href="/src/client/engine/ui/styles/rotate.css" />
479
587
  </head>
480
588
  <body>
481
589
  <script>
@@ -499,7 +607,45 @@ html[data-ws-keyboard] #game, html[data-ws-keyboard] #hud { top: var(--ws-kb-top
499
607
  <div class="ws-launch" data-title-shell>
500
608
  <div class="ws-launch-hero" aria-hidden="true"></div>
501
609
  <div class="ws-launch-brand">WILDSHARD</div>
610
+ <!-- plain HTML: a reload that works when every bundle failed; pointerup too, as iOS drops a jittered tap's click (Update.ts) -->
611
+ <button type="button" class="ws-launch-pill" data-launch-reload onclick="this.dataset.reloading='';location.reload()" onpointerup="this.dataset.reloading='';location.reload()"><i></i><span data-launch-version>reload</span></button>
612
+ <div class="ws-launch-load" role="progressbar" aria-label="Loading" aria-valuemin="0" aria-valuemax="100" data-launch-load><div class="ws-launch-bar"><i data-launch-fill></i></div><span data-launch-step>Loading</span></div>
502
613
  </div><!-- /title-shell -->
614
+ <script data-launch-progress>
615
+ // QA 11-13: the static title names its build (buildIdentity.mjs stamps __WS_BUILD_LABEL__, the build pill's git describe)
616
+ // and counts the code and style files this document names, from __bootTiming (LS1), then the entry's own steps, with
617
+ // the seconds ticking, until StartTitle removes it. Nothing new for 8 s turns the line and the pill amber, the pill saying reload.
618
+ (() => {
619
+ const shell = document.querySelector('[data-title-shell]'), at = name => shell?.querySelector('[data-launch-' + name + ']');
620
+ if (!shell) return;
621
+ const id = String(globalThis.__WS_BUILD_ID__ || ''), sha = /^([0-9a-f]{7})[0-9a-f]*-/iu.exec(id)?.[1] || '';
622
+ const label = typeof globalThis.__WS_BUILD_LABEL__ === 'string' ? globalThis.__WS_BUILD_LABEL__ : sha;
623
+ const version = at('version'), name = stalled => label === '' ? 'reload' : stalled || !matchMedia('(max-width: 700px)').matches ? label + ' · reload' : label;
624
+ version.textContent = name(false);
625
+ const fill = at('fill'), step = at('step'), load = at('load');
626
+ let seen = '', changed = performance.now();
627
+ const tick = () => {
628
+ // StartTitle removed it, or a world's Loading adopted its card (no title on this page): stop. The entry may still turn a
629
+ // world page into the title (a player reload, an unlisted shard), so a hidden shell waits for title-first.
630
+ if (!shell.isConnected || document.querySelector('.ws-load:not([data-shell])')) { clearInterval(timer); return; }
631
+ if (!document.documentElement.classList.contains('title-first')) return;
632
+ const files = new Set([...document.querySelectorAll('script[type="module"][src],link[rel="modulepreload"],link[rel="stylesheet"]')]
633
+ .map(node => new URL(node.getAttribute('src') || node.getAttribute('href'), location.href).href));
634
+ const t = window.__bootTiming, ops = new Set((t?.entries || []).map(row => row.operation));
635
+ const got = new Set((t?.resources || []).filter(row => files.has(row.url) && row.responseStatus !== 0).map(row => row.url)).size;
636
+ const opening = ops.has('app:page-entry-import'), started = ops.has('app:entry-body');
637
+ const pct = Math.round((files.size ? Math.min(got, files.size) / files.size * 80 : 0) + (started ? 10 : 0) + (opening ? 5 : 0));
638
+ const now = performance.now(), key = got + '/' + started + opening;
639
+ if (key !== seen) { seen = key; changed = now; }
640
+ const stalled = now - changed > 8000;
641
+ fill.style.width = pct + '%'; load.setAttribute('aria-valuenow', String(pct));
642
+ if (shell.hasAttribute('data-stalled') !== stalled) { shell.toggleAttribute('data-stalled', stalled); version.textContent = name(stalled); }
643
+ step.textContent = (stalled ? 'Still waiting · tap reload' : opening ? 'Opening the menu' : started ? 'Starting'
644
+ : got > 0 ? 'Loading · ' + got + ' of ' + files.size + ' files' : 'Loading') + ' · ' + (now / 1000).toFixed(1) + ' s';
645
+ };
646
+ const timer = setInterval(tick, 100); tick();
647
+ })();
648
+ </script>
503
649
  <canvas id="game"></canvas>
504
650
  <div id="hud"></div>
505
651
  <div id="ws-top-edge" aria-hidden="true"></div>
@@ -390,6 +390,7 @@
390
390
  "src/client/engine/render/regionCinematic.ts": "client",
391
391
  "src/client/engine/render/regionLook.ts": "client",
392
392
  "src/client/engine/render/releasedArrays.ts": "client",
393
+ "src/client/engine/render/drawCheck.ts": "client",
393
394
  "src/client/engine/render/renderer.ts": "client",
394
395
  "src/client/engine/render/scatterInstances.ts": "client",
395
396
  "src/client/engine/render/scenePreparation.ts": "client",
@@ -413,16 +414,21 @@
413
414
  "src/client/engine/render/viewmodelFeel.ts": "client",
414
415
  "src/client/engine/saves/indexed.ts": "client",
415
416
  "src/client/engine/saves/slots.ts": "client",
417
+ "src/client/engine/saves/staleBuildNote.ts": "client",
416
418
  "src/client/engine/saves/view/storage.ts": "client",
417
419
  "src/client/engine/script/client.ts": "client",
418
420
  "src/client/engine/telemetry/bootInbox.ts": "client",
419
421
  "src/client/engine/telemetry/browserErrors.ts": "client",
422
+ "src/client/engine/telemetry/deviceSnapshot.ts": "client",
423
+ "src/client/engine/telemetry/screenOutbox.ts": "client",
424
+ "src/client/engine/telemetry/staleBuildReport.ts": "client",
420
425
  "src/client/engine/telemetry/crossroads.ts": "client",
421
426
  "src/client/engine/telemetry/health.ts": "client",
422
427
  "src/client/engine/telemetry/model.ts": "client",
423
428
  "src/client/engine/telemetry/runtime.ts": "client",
424
429
  "src/client/engine/ui/authoredDebugRows.ts": "client",
425
430
  "src/client/engine/ui/BootSettings.ts": "client",
431
+ "src/client/engine/ui/backGuard.ts": "client",
426
432
  "src/client/engine/ui/graphicsBlock.ts": "client",
427
433
  "src/client/engine/ui/BossBar.ts": "client",
428
434
  "src/client/engine/ui/buildCheck.ts": "client",
@@ -608,6 +614,7 @@
608
614
  "src/client/game/grid/admissionPriority.ts": "client",
609
615
  "src/client/game/grid/admissionYield.ts": "client",
610
616
  "src/client/game/grid/approachProductInputs.ts": "client",
617
+ "src/client/game/grid/area.ts": "client",
611
618
  "src/client/game/grid/assetResidency.ts": "client",
612
619
  "src/client/game/grid/borderShimmer.ts": "client",
613
620
  "src/client/game/grid/budgetOverlay.ts": "client",
@@ -654,6 +661,8 @@
654
661
  "src/client/game/grid/neighbourPanels.ts": "client",
655
662
  "src/client/game/grid/neighbourRows.ts": "client",
656
663
  "src/client/game/grid/oneWayIn.ts": "client",
664
+ "src/client/game/grid/placedCells.ts": "client",
665
+ "src/client/game/grid/placedCards.ts": "client",
657
666
  "src/client/game/grid/pageEntry.ts": "client",
658
667
  "src/client/game/grid/pageResidency.ts": "client",
659
668
  "src/client/game/grid/pageShell.ts": "client",
@@ -664,6 +673,7 @@
664
673
  "src/client/game/grid/preparationAdmission.ts": "client",
665
674
  "src/client/game/grid/productInputs.ts": "client",
666
675
  "src/client/game/grid/productLeases.ts": "client",
676
+ "src/client/game/grid/plotAudio.ts": "client",
667
677
  "src/client/game/grid/products.ts": "client",
668
678
  "src/client/game/grid/refusal.ts": "client",
669
679
  "src/client/game/grid/regionalBuildCheckpoint.ts": "client",
@@ -706,6 +716,7 @@
706
716
  "src/client/game/grid/shardfileFar.ts": "client",
707
717
  "src/client/game/grid/skinEnvelope.ts": "client",
708
718
  "src/client/game/grid/softWallLook.ts": "client",
719
+ "src/client/game/grid/spawnGround.ts": "client",
709
720
  "src/client/game/grid/tileDecoder.ts": "client",
710
721
  "src/client/game/grid/tileDecodeWorker.ts": "client",
711
722
  "src/client/game/grid/titleOrder.ts": "client",
@@ -1019,6 +1030,7 @@
1019
1030
  "src/client/game/shardfile/worldSceneUniforms.ts": "client",
1020
1031
  "src/client/game/shardfile/worldSceneWeld.ts": "client",
1021
1032
  "src/client/game/shardfile/worldUpdates.ts": "client",
1033
+ "src/client/game/slugPage.ts": "client",
1022
1034
  "src/client/game/stealth/controller.ts": "client",
1023
1035
  "src/client/game/summary.ts": "client",
1024
1036
  "src/client/game/systems/audio/crossbowSounds.ts": "client",
@@ -1081,6 +1093,7 @@
1081
1093
  "src/client/host/online/voice.ts": "client",
1082
1094
  "src/client/host/online/voiceUi.ts": "client",
1083
1095
  "src/client/host/standalone/shell.ts": "client",
1096
+ "src/cook/game/audioReport.ts": "cook",
1084
1097
  "src/cook/game/brotliSizeCache.d.mts": "cook",
1085
1098
  "src/cook/game/brotliSizeCache.mjs": "cook",
1086
1099
  "src/cook/game/contentNamed.ts": "cook",
@@ -1102,6 +1115,7 @@
1102
1115
  "src/cook/game/shardCook.ts": "cook",
1103
1116
  "src/cook/game/spawnParts.ts": "cook",
1104
1117
  "src/cook/game/stripPack.ts": "cook",
1118
+ "src/cook/game/tierTextures.ts": "cook",
1105
1119
  "src/server/engine/ai/bossContenders.ts": "server",
1106
1120
  "src/server/engine/ai/burstFlyer.ts": "server",
1107
1121
  "src/server/engine/ai/challengeGrazer.ts": "server",
@@ -1193,6 +1207,7 @@
1193
1207
  "src/server/game/grid/simulation.ts": "server",
1194
1208
  "src/server/game/loadout/nativeAmmunition.ts": "server",
1195
1209
  "src/server/game/loadout/ownedEffects.ts": "server",
1210
+ "src/server/game/loot/keepsakeProgression.ts": "server",
1196
1211
  "src/server/game/loot/personal.ts": "server",
1197
1212
  "src/server/game/loot/playerOwned.ts": "server",
1198
1213
  "src/server/game/loot/harvest.ts": "server",
@@ -1258,6 +1273,7 @@
1258
1273
  "src/server/game/shardfile/declaredTalks.ts": "server",
1259
1274
  "src/server/game/shardfile/groupRuntime.ts": "server",
1260
1275
  "src/server/game/shardfile/homeKeeper.ts": "server",
1276
+ "src/server/game/shardfile/installedSides.ts": "server",
1261
1277
  "src/server/game/shardfile/nativeAssembly.ts": "server",
1262
1278
  "src/server/game/shardfile/nativeAssemblyHosts.ts": "server",
1263
1279
  "src/server/game/shardfile/nativeAssemblyInput.ts": "server",
@@ -1289,6 +1305,7 @@
1289
1305
  "src/server/host/dedicated/playerDoc.ts": "server",
1290
1306
  "src/server/host/dedicated/playerSaves.ts": "server",
1291
1307
  "src/server/host/dedicated/playerStore.ts": "server",
1308
+ "src/server/host/dedicated/placementFile.ts": "server",
1292
1309
  "src/server/host/dedicated/releaseFile.ts": "server",
1293
1310
  "src/server/host/dedicated/saves/database.ts": "server",
1294
1311
  "src/server/host/dedicated/saves/migrate.ts": "server",
@@ -1310,6 +1327,8 @@
1310
1327
  "src/server/host/headless.ts": "server",
1311
1328
  "src/server/host/headlessProduct.ts": "server",
1312
1329
  "src/server/host/headlessRuntime.ts": "server",
1330
+ "src/server/host/installers.ts": "server",
1331
+ "src/server/host/openWorld.ts": "server",
1313
1332
  "src/server/host/ropeDecks.ts": "server",
1314
1333
  "src/server/host/standalone/cellWorld.ts": "server",
1315
1334
  "src/server/host/standalone/continuation.ts": "server",
@@ -1441,6 +1460,7 @@
1441
1460
  "src/shared/engine/net/schema.ts": "shared",
1442
1461
  "src/shared/engine/net/shardNet.ts": "shared",
1443
1462
  "src/shared/engine/net/socketFrames.ts": "shared",
1463
+ "src/shared/engine/net/deviceWord.ts": "shared",
1444
1464
  "src/shared/engine/net/transport.ts": "shared",
1445
1465
  "src/shared/engine/net/wireFrames.ts": "shared",
1446
1466
  "src/shared/engine/net/wireMessages.ts": "shared",
@@ -1590,6 +1610,7 @@
1590
1610
  "src/shared/game/boss/slotLaw.ts": "shared",
1591
1611
  "src/shared/game/boss/wake.ts": "shared",
1592
1612
  "src/shared/game/compendium/finds.ts": "shared",
1613
+ "src/shared/game/compendium/keepsakeProgression.ts": "shared",
1593
1614
  "src/shared/game/compendium/registry.ts": "shared",
1594
1615
  "src/shared/game/compendium/rules.ts": "shared",
1595
1616
  "src/shared/game/compendium/state.ts": "shared",
@@ -1604,6 +1625,7 @@
1604
1625
  "src/shared/game/grid/catalogue.ts": "shared",
1605
1626
  "src/shared/game/grid/catalogueDocument.ts": "shared",
1606
1627
  "src/shared/game/grid/catalogueSlot.ts": "shared",
1628
+ "src/shared/game/grid/placementRows.ts": "shared",
1607
1629
  "src/shared/game/grid/cellEvents.ts": "shared",
1608
1630
  "src/shared/game/grid/collisionStrips.ts": "shared",
1609
1631
  "src/shared/game/grid/compiledStrips.ts": "shared",
@@ -1614,6 +1636,7 @@
1614
1636
  "src/shared/game/grid/ghosts.ts": "shared",
1615
1637
  "src/shared/game/grid/gridAssetBytes.ts": "shared",
1616
1638
  "src/shared/game/grid/gridCollision.ts": "shared",
1639
+ "src/shared/game/grid/voidFloor.ts": "shared",
1617
1640
  "src/shared/game/grid/instances.ts": "shared",
1618
1641
  "src/shared/game/grid/pageMode.ts": "shared",
1619
1642
  "src/shared/game/grid/platformInputs.ts": "shared",
@@ -1,10 +1,10 @@
1
1
  // G642: callback admission from syntax; the typed catalogue is a separate build tool.
2
2
  import { hostPlayFile } from './host-files.mjs';
3
+ import { shardFile } from './shard-source.mjs';
3
4
  import { createSyntaxGraph, syntaxChild as child,
4
5
  syntaxFunctions as functions, syntaxClasses as classes } from './syntax-values.mjs';
5
6
 
6
7
  const platform = file => /^src\/(?:engine|game|sdk|sharddev)\//u.test(file);
7
- const shard = file => file.startsWith('src/shards/');
8
8
  const keyOf = node => node?.type === 'Identifier' ? node.name : node?.type === 'Literal' ? String(node.value) : null;
9
9
  const unwrap = input => {
10
10
  let node = input;
@@ -16,6 +16,7 @@ const unwrap = input => {
16
16
  export function hostCallbackSites(root, file, program) {
17
17
  if (!hostPlayFile(root, file)) return [];
18
18
  const { primary, make, values } = createSyntaxGraph(root, file, program);
19
+ const shard = path => shardFile(root, path) !== null;
19
20
  function leaves(ref, label, seen = new Set()) {
20
21
  const node = unwrap(ref.node);
21
22
  if (!node || seen.has(node)) return [];
@@ -3,12 +3,12 @@ import { existsSync } from 'node:fs';
3
3
  import { relative, resolve } from 'node:path';
4
4
  import ts from '@typescript/typescript6';
5
5
  import { hostPlayFile } from './host-files.mjs';
6
+ import { shardFile, shardSourceDirs } from './shard-source.mjs';
6
7
  import { formatSource } from '../scripts/format-package.mjs';
7
8
 
8
9
  const projects = new Map();
9
10
  const localPath = (root, file) => relative(root, file).replaceAll('\\', '/');
10
11
  const platform = file => /^src\/(?:engine|game|sdk|sharddev)\//u.test(file);
11
- const shard = file => /^src\/shards\/([^/]+)\/(.+)$/u.exec(file);
12
12
  /** One compiler/checker per immutable tree; no diagnostics or emit, only binding/signature resolution. */
13
13
  export function hostAnalysis(inputRoot) {
14
14
  const root = resolve(inputRoot);
@@ -16,7 +16,7 @@ export function hostAnalysis(inputRoot) {
16
16
  const configFile = resolve(root, 'tsconfig.json');
17
17
  const config = existsSync(configFile) ? ts.readConfigFile(configFile, file => ts.sys.readFile(file)).config : {};
18
18
  const parsed = ts.parseJsonConfigFileContent(config, ts.sys, root);
19
- const files = ts.sys.readDirectory(resolve(root, 'src/shards'), ['.ts', '.tsx', '.mts', '.cts'], ['**/node_modules/**', '**/dist/**'])
19
+ const files = shardSourceDirs(root).flatMap(dir => ts.sys.readDirectory(resolve(root, dir), ['.ts', '.tsx', '.mts', '.cts'], ['**/node_modules/**', '**/dist/**']))
20
20
  .filter(file => hostPlayFile(root, localPath(root, file)));
21
21
  const sectionRegistry = formatSource(root, 'sections.ts');
22
22
  const program = ts.createProgram([...files, ...existsSync(sectionRegistry) ? [sectionRegistry] : []], { target: ts.ScriptTarget.ES2022, module: ts.ModuleKind.ESNext,
@@ -49,7 +49,7 @@ export function hostAnalysis(inputRoot) {
49
49
  if (type.getCallSignatures().length > 0) return [label];
50
50
  return checker.getPropertiesOfType(type).flatMap(property => {
51
51
  const decl = property.valueDeclaration;
52
- if (!decl || !shard(pathOf(decl))) return [];
52
+ if (!decl || shardFile(root, pathOf(decl)) === null) return [];
53
53
  return typeLeaves(checker.getTypeOfSymbolAtLocation(property, node), node, `${label}.${property.name}`, next);
54
54
  });
55
55
  }
@@ -1,7 +1,8 @@
1
1
  // Path-only play boundary, shared by lint and the typed catalogue builder.
2
+ import { shardFile } from './shard-source.mjs';
2
3
 
3
- /** Build-only functions are not play callbacks. */
4
- export function hostPlayFile(_root, file) {
5
- const match = /^src\/shards\/([^/]+)\/(.+)$/u.exec(file);
6
- return match !== null && !/^(?:data|generators|behaviour|assets|blender)\/|^shard\.config\.|\.d\.ts$|\.generated\./u.test(match[2]);
4
+ /** Build-only functions are not play callbacks. `file` is relative to `root`, in either shard layout (SA45). */
5
+ export function hostPlayFile(root, file) {
6
+ const shard = shardFile(root, file);
7
+ return shard !== null && !/^(?:data|generators|behaviour|assets|blender)\/|^shard\.config\.|\.d\.ts$|\.generated\./u.test(shard.local);
7
8
  }