@wildshard/engine 0.1.15 → 0.1.17

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 (207) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/index.html +157 -11
  3. package/lint/engine-sides.json +16 -0
  4. package/lint/host-register.json +496 -0
  5. package/lint/ratchet.json +2 -2
  6. package/lint/shard-imports.d.mts +1 -0
  7. package/lint/shard-imports.mjs +56 -8
  8. package/lint/wildshard-plugin.js +22 -4
  9. package/package.json +16 -5
  10. package/scripts/app-build/buildIdentity.d.mts +3 -1
  11. package/scripts/app-build/buildIdentity.mjs +25 -5
  12. package/scripts/app-build/builtAt.d.mts +4 -0
  13. package/scripts/app-build/builtAt.mjs +21 -0
  14. package/scripts/app-build/serviceWorker.ts +16 -2
  15. package/scripts/app-build/versionFiles.ts +2 -1
  16. package/scripts/app-build-pipeline.mjs +4 -1
  17. package/scripts/audio-download-proof.mjs +843 -0
  18. package/scripts/build-app.mjs +4 -0
  19. package/scripts/build-mirror.d.mts +2 -0
  20. package/scripts/build-mirror.mjs +5 -4
  21. package/scripts/built-product.mjs +3 -3
  22. package/scripts/cell-mem/metrics-preload.mjs +65 -0
  23. package/scripts/cell-mem-bench.mjs +130 -0
  24. package/scripts/check-chunks.mjs +2 -1
  25. package/scripts/devserver-client.d.mts +5 -0
  26. package/scripts/devserver-client.mjs +68 -0
  27. package/scripts/engine-ci-budget.ts +7 -1
  28. package/scripts/format-lock.mjs +20 -11
  29. package/scripts/generate-title-launch.mjs +3 -2
  30. package/scripts/grid-crossing-walk-proof.mjs +16 -8
  31. package/scripts/heavy-lane.py +25 -1
  32. package/scripts/host-ruler/register-migrate.mjs +242 -0
  33. package/scripts/host-ruler/register.d.mts +36 -0
  34. package/scripts/host-ruler/register.mjs +116 -0
  35. package/scripts/host-ruler/roots.d.mts +29 -0
  36. package/scripts/host-ruler/roots.mjs +333 -0
  37. package/scripts/host-ruler/server-roots.d.mts +23 -0
  38. package/scripts/host-ruler/server-roots.mjs +272 -0
  39. package/scripts/main-watch.d.mts +1 -1
  40. package/scripts/main-watch.mjs +10 -6
  41. package/scripts/map-hash.mjs +3 -6
  42. package/scripts/mmo-bots.mjs +2 -2
  43. package/scripts/offline-proof-rules.d.mts +1 -0
  44. package/scripts/offline-proof-rules.mjs +22 -1
  45. package/scripts/online-rig.mjs +4 -4
  46. package/scripts/page-release/flow.d.mts +1 -0
  47. package/scripts/page-release/flow.mjs +6 -2
  48. package/scripts/page-release.mjs +5 -1
  49. package/scripts/physics-route.json +0 -71
  50. package/scripts/pins-catalogue.ts +103 -0
  51. package/scripts/pins-reuse.mjs +3 -1
  52. package/scripts/pins.ts +22 -14
  53. package/scripts/preview-grid.ts +203 -0
  54. package/scripts/road-preload-proof.mjs +167 -0
  55. package/scripts/server-release/publish.mjs +2 -2
  56. package/scripts/server-release/served-slug.d.mts +2 -0
  57. package/scripts/server-release/served-slug.mjs +10 -0
  58. package/scripts/server-release/sign.d.mts +1 -0
  59. package/scripts/server-release/sign.mjs +3 -7
  60. package/scripts/shard-components.mjs +0 -2
  61. package/scripts/shard-outputs.d.mts +8 -0
  62. package/scripts/shard-outputs.mjs +45 -11
  63. package/scripts/side-parity.d.mts +2 -1
  64. package/scripts/side-parity.mjs +25 -4
  65. package/scripts/test-amber.d.mts +1 -0
  66. package/scripts/test-amber.mjs +10 -0
  67. package/scripts/test-products.json +3 -3
  68. package/scripts/tracked-public.d.mts +1 -0
  69. package/scripts/tracked-public.mjs +17 -0
  70. package/src/cli/engine.mjs +8 -0
  71. package/src/client/app/bootRoute.ts +4 -1
  72. package/src/client/app/dropModal.ts +15 -2
  73. package/src/client/app/entry.ts +67 -11
  74. package/src/client/app/slugPath.ts +5 -0
  75. package/src/client/engine/audio/Audio.ts +20 -2
  76. package/src/client/engine/boot/bakedTextures.ts +3 -2
  77. package/src/client/engine/boot/bootTrace.ts +6 -1
  78. package/src/client/engine/boot/bytes.ts +4 -3
  79. package/src/client/engine/boot/clearDownloads.ts +1 -1
  80. package/src/client/engine/boot/contentRead.ts +4 -0
  81. package/src/client/engine/boot/dropNotice.ts +20 -6
  82. package/src/client/engine/boot/gpuFiles.ts +25 -2
  83. package/src/client/engine/boot/lastEnd.ts +8 -2
  84. package/src/client/engine/boot/shardPrefetch.ts +7 -1
  85. package/src/client/engine/boot/sw.ts +19 -0
  86. package/src/client/engine/core/Game.ts +11 -3
  87. package/src/client/engine/core/GpuRecovery.ts +7 -0
  88. package/src/client/engine/core/Volumetrics.ts +5 -0
  89. package/src/client/engine/core/assets.ts +27 -20
  90. package/src/client/engine/core/bootstrap.ts +1 -2
  91. package/src/client/engine/core/ktx2.ts +84 -11
  92. package/src/client/engine/explore/Compare.ts +2 -2
  93. package/src/client/engine/explore/TouchFly.ts +3 -5
  94. package/src/client/engine/input/dom.ts +12 -0
  95. package/src/client/engine/net/predictor.ts +6 -2
  96. package/src/client/engine/player/Player.ts +10 -2
  97. package/src/client/engine/player/TouchControls.ts +12 -4
  98. package/src/client/engine/pwa/sw.js +47 -8
  99. package/src/client/engine/render/drawCheck.ts +96 -0
  100. package/src/client/engine/saves/staleBuildNote.ts +46 -0
  101. package/src/client/engine/telemetry/browserErrors.ts +157 -20
  102. package/src/client/engine/telemetry/screenOutbox.ts +61 -0
  103. package/src/client/engine/telemetry/staleBuildReport.ts +12 -0
  104. package/src/client/engine/ui/DeathFade.ts +99 -11
  105. package/src/client/engine/ui/ErrorModal.ts +13 -6
  106. package/src/client/engine/ui/Feedback.ts +2 -1
  107. package/src/client/engine/ui/Loading.ts +10 -6
  108. package/src/client/engine/ui/Map.ts +2 -1
  109. package/src/client/engine/ui/WeaponStrip.ts +2 -1
  110. package/src/client/engine/ui/backGuard.ts +104 -0
  111. package/src/client/engine/ui/hudAdapters.ts +30 -4
  112. package/src/client/engine/ui/loading.css +17 -0
  113. package/src/client/engine/ui/namePrompt.ts +6 -5
  114. package/src/client/engine/ui/styles/combat.css +12 -0
  115. package/src/client/engine/ui/styles/namePrompt.css +4 -2
  116. package/src/client/game/boot/audio.generated.ts +0 -294
  117. package/src/client/game/boot/bytes.generated.ts +0 -11
  118. package/src/client/game/boot/versions.generated.ts +0 -11
  119. package/src/client/game/compendium/keepsakes.ts +16 -6
  120. package/src/client/game/grapple/tool.ts +10 -7
  121. package/src/client/game/grid/cellLoading.ts +23 -12
  122. package/src/client/game/grid/cellScreens.ts +39 -74
  123. package/src/client/game/grid/liveSession.ts +40 -7
  124. package/src/client/game/grid/nearPlaceholderPlan.ts +8 -0
  125. package/src/client/game/grid/nearPlaceholderView.ts +9 -3
  126. package/src/client/game/grid/oneWayIn.ts +92 -27
  127. package/src/client/game/grid/pageEntry.ts +19 -0
  128. package/src/client/game/grid/pageShell.ts +1 -1
  129. package/src/client/game/grid/plotAudio.ts +114 -0
  130. package/src/client/game/grid/products.ts +55 -5
  131. package/src/client/game/grid/roadLookPlatform.ts +2 -2
  132. package/src/client/game/grid/session.ts +38 -22
  133. package/src/client/game/grid/spawnGround.ts +68 -0
  134. package/src/client/game/grid/voidLook.ts +29 -23
  135. package/src/client/game/loot/runtime.ts +3 -1
  136. package/src/client/game/mainMenu.ts +14 -6
  137. package/src/client/game/riding/hud.ts +6 -4
  138. package/src/client/game/session/finish.ts +17 -3
  139. package/src/client/game/session/play.ts +8 -2
  140. package/src/client/game/session/session.ts +4 -1
  141. package/src/client/game/shardfile/clientWorker.ts +41 -12
  142. package/src/client/game/shardfile/serverRoute.ts +10 -22
  143. package/src/client/game/slugPage.css +11 -0
  144. package/src/client/game/slugPage.ts +84 -0
  145. package/src/client/game/systems/viewmodel/heldView.ts +6 -3
  146. package/src/client/game/titleDeck.ts +55 -32
  147. package/src/client/host/online/doctor.ts +7 -6
  148. package/src/client/host/online/linkScreens.ts +16 -0
  149. package/src/client/host/online/release.ts +51 -5
  150. package/src/client/host/online/shell.ts +48 -27
  151. package/src/client/host/standalone/shell.ts +7 -3
  152. package/src/cook/game/audioReport.ts +57 -0
  153. package/src/cook/game/entryTotals.ts +26 -6
  154. package/src/cook/game/installedRuntimeReads.ts +3 -0
  155. package/src/server/engine/sim/respawn.ts +6 -1
  156. package/src/server/engine/sim.ts +3 -0
  157. package/src/server/game/grid/simulation.ts +35 -0
  158. package/src/server/game/loot/harvest.ts +2 -0
  159. package/src/server/game/loot/keepsakeProgression.ts +40 -0
  160. package/src/server/game/loot/playerOwned.ts +5 -1
  161. package/src/server/game/plugin/simulation.ts +4 -0
  162. package/src/server/game/population/nativeBake.ts +2 -1
  163. package/src/server/game/quest/chapterRecords.ts +2 -0
  164. package/src/server/game/quest/serverChapters.ts +4 -0
  165. package/src/server/game/quest/serverDoors.ts +11 -5
  166. package/src/server/game/roomRespawn.ts +4 -0
  167. package/src/server/game/shardfile/installedSides.ts +18 -0
  168. package/src/server/game/shardfile/nativeAssemblyHosts.ts +19 -10
  169. package/src/server/game/shardfile/nativeAssemblyInput.ts +1 -4
  170. package/src/server/host/bake/headlessWorker.ts +5 -1
  171. package/src/server/host/dedicated/cellHost.ts +98 -29
  172. package/src/server/host/dedicated/cellProtocol.ts +11 -1
  173. package/src/server/host/dedicated/cellWorker.ts +9 -3
  174. package/src/server/host/dedicated/crossing.ts +6 -2
  175. package/src/server/host/dedicated/dedicatedRoom.ts +21 -8
  176. package/src/server/host/dedicated/gridCells.ts +52 -9
  177. package/src/server/host/dedicated/main.ts +31 -12
  178. package/src/server/host/dedicated/placementFile.ts +72 -0
  179. package/src/server/host/dedicated/releaseFile.ts +17 -10
  180. package/src/server/host/dedicated/roadRoom.ts +21 -5
  181. package/src/server/host/dedicated/workerTable.ts +13 -1
  182. package/src/server/host/dedicated/world.ts +81 -9
  183. package/src/server/host/headlessRuntime.ts +10 -5
  184. package/src/server/host/installers.ts +62 -0
  185. package/src/server/host/openWorld.ts +59 -0
  186. package/src/server/host/ropeDecks.ts +2 -0
  187. package/src/server/host/standalone/cellWorld.ts +25 -19
  188. package/src/server/host/standalone/fallFloor.ts +2 -2
  189. package/src/server/host/standalone/gridServer.ts +7 -4
  190. package/src/server/host/standalone/roadWorld.ts +41 -4
  191. package/src/shared/engine/audio/bootAudio.ts +33 -0
  192. package/src/shared/engine/level/spec.ts +3 -3
  193. package/src/shared/engine/net/acts.ts +3 -0
  194. package/src/shared/engine/physics/query.ts +27 -0
  195. package/src/shared/engine/physics/terrain.ts +19 -28
  196. package/src/shared/engine/saves/saves.lock.json +15 -0
  197. package/src/shared/engine/sim/actRoutes.ts +2 -0
  198. package/src/shared/game/compendium/keepsakeProgression.ts +24 -0
  199. package/src/shared/game/grid/catalogue.ts +12 -5
  200. package/src/shared/game/grid/catalogueSlot.ts +11 -0
  201. package/src/shared/game/grid/farProxy.ts +6 -5
  202. package/src/shared/game/grid/pageMode.ts +1 -1
  203. package/src/shared/game/grid/roadLayout.ts +26 -3
  204. package/src/shared/game/grid/singleplayer.json +0 -13
  205. package/src/shared/game/grid/voidFloor.ts +122 -0
  206. package/src/shared/game/strings.ts +15 -0
  207. package/src/shared/host/standalone/netInput.ts +2 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,21 @@ 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.17 (2026-11-13)
13
+
14
+ - Crossing is on: walk off one shard's edge into the next at full speed, with no invisible walls at chunk edges or seams.
15
+ - 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.
16
+ - Quest markers and other pins sit on their targets in every grid cell, and Driftwood's near scenery stays drawn up to its edge.
17
+ - 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.
18
+ - Android phones without half-float textures fall back instead of failing, a lost GPU returns you to the world, and errors reach us.
19
+
20
+ ## v0.1.16 (2026-11-13)
21
+
22
+ - Pine Hollow's spawn shows its own textured ground, no longer bare tan slopes.
23
+ - 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.
24
+ - The engine's command line tool, which crashed when installed from npm in v0.1.15, now runs.
25
+ - Behind the scenes: the server can open a newly placed shard without a restart (off for now).
26
+
12
27
  ## v0.1.15 (2026-11-13)
13
28
 
14
29
  - 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,20 @@
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/screenOutbox.ts": "client",
423
+ "src/client/engine/telemetry/staleBuildReport.ts": "client",
420
424
  "src/client/engine/telemetry/crossroads.ts": "client",
421
425
  "src/client/engine/telemetry/health.ts": "client",
422
426
  "src/client/engine/telemetry/model.ts": "client",
423
427
  "src/client/engine/telemetry/runtime.ts": "client",
424
428
  "src/client/engine/ui/authoredDebugRows.ts": "client",
425
429
  "src/client/engine/ui/BootSettings.ts": "client",
430
+ "src/client/engine/ui/backGuard.ts": "client",
426
431
  "src/client/engine/ui/graphicsBlock.ts": "client",
427
432
  "src/client/engine/ui/BossBar.ts": "client",
428
433
  "src/client/engine/ui/buildCheck.ts": "client",
@@ -664,6 +669,7 @@
664
669
  "src/client/game/grid/preparationAdmission.ts": "client",
665
670
  "src/client/game/grid/productInputs.ts": "client",
666
671
  "src/client/game/grid/productLeases.ts": "client",
672
+ "src/client/game/grid/plotAudio.ts": "client",
667
673
  "src/client/game/grid/products.ts": "client",
668
674
  "src/client/game/grid/refusal.ts": "client",
669
675
  "src/client/game/grid/regionalBuildCheckpoint.ts": "client",
@@ -706,6 +712,7 @@
706
712
  "src/client/game/grid/shardfileFar.ts": "client",
707
713
  "src/client/game/grid/skinEnvelope.ts": "client",
708
714
  "src/client/game/grid/softWallLook.ts": "client",
715
+ "src/client/game/grid/spawnGround.ts": "client",
709
716
  "src/client/game/grid/tileDecoder.ts": "client",
710
717
  "src/client/game/grid/tileDecodeWorker.ts": "client",
711
718
  "src/client/game/grid/titleOrder.ts": "client",
@@ -1019,6 +1026,7 @@
1019
1026
  "src/client/game/shardfile/worldSceneUniforms.ts": "client",
1020
1027
  "src/client/game/shardfile/worldSceneWeld.ts": "client",
1021
1028
  "src/client/game/shardfile/worldUpdates.ts": "client",
1029
+ "src/client/game/slugPage.ts": "client",
1022
1030
  "src/client/game/stealth/controller.ts": "client",
1023
1031
  "src/client/game/summary.ts": "client",
1024
1032
  "src/client/game/systems/audio/crossbowSounds.ts": "client",
@@ -1081,6 +1089,7 @@
1081
1089
  "src/client/host/online/voice.ts": "client",
1082
1090
  "src/client/host/online/voiceUi.ts": "client",
1083
1091
  "src/client/host/standalone/shell.ts": "client",
1092
+ "src/cook/game/audioReport.ts": "cook",
1084
1093
  "src/cook/game/brotliSizeCache.d.mts": "cook",
1085
1094
  "src/cook/game/brotliSizeCache.mjs": "cook",
1086
1095
  "src/cook/game/contentNamed.ts": "cook",
@@ -1193,6 +1202,7 @@
1193
1202
  "src/server/game/grid/simulation.ts": "server",
1194
1203
  "src/server/game/loadout/nativeAmmunition.ts": "server",
1195
1204
  "src/server/game/loadout/ownedEffects.ts": "server",
1205
+ "src/server/game/loot/keepsakeProgression.ts": "server",
1196
1206
  "src/server/game/loot/personal.ts": "server",
1197
1207
  "src/server/game/loot/playerOwned.ts": "server",
1198
1208
  "src/server/game/loot/harvest.ts": "server",
@@ -1258,6 +1268,7 @@
1258
1268
  "src/server/game/shardfile/declaredTalks.ts": "server",
1259
1269
  "src/server/game/shardfile/groupRuntime.ts": "server",
1260
1270
  "src/server/game/shardfile/homeKeeper.ts": "server",
1271
+ "src/server/game/shardfile/installedSides.ts": "server",
1261
1272
  "src/server/game/shardfile/nativeAssembly.ts": "server",
1262
1273
  "src/server/game/shardfile/nativeAssemblyHosts.ts": "server",
1263
1274
  "src/server/game/shardfile/nativeAssemblyInput.ts": "server",
@@ -1289,6 +1300,7 @@
1289
1300
  "src/server/host/dedicated/playerDoc.ts": "server",
1290
1301
  "src/server/host/dedicated/playerSaves.ts": "server",
1291
1302
  "src/server/host/dedicated/playerStore.ts": "server",
1303
+ "src/server/host/dedicated/placementFile.ts": "server",
1292
1304
  "src/server/host/dedicated/releaseFile.ts": "server",
1293
1305
  "src/server/host/dedicated/saves/database.ts": "server",
1294
1306
  "src/server/host/dedicated/saves/migrate.ts": "server",
@@ -1310,6 +1322,8 @@
1310
1322
  "src/server/host/headless.ts": "server",
1311
1323
  "src/server/host/headlessProduct.ts": "server",
1312
1324
  "src/server/host/headlessRuntime.ts": "server",
1325
+ "src/server/host/installers.ts": "server",
1326
+ "src/server/host/openWorld.ts": "server",
1313
1327
  "src/server/host/ropeDecks.ts": "server",
1314
1328
  "src/server/host/standalone/cellWorld.ts": "server",
1315
1329
  "src/server/host/standalone/continuation.ts": "server",
@@ -1590,6 +1604,7 @@
1590
1604
  "src/shared/game/boss/slotLaw.ts": "shared",
1591
1605
  "src/shared/game/boss/wake.ts": "shared",
1592
1606
  "src/shared/game/compendium/finds.ts": "shared",
1607
+ "src/shared/game/compendium/keepsakeProgression.ts": "shared",
1593
1608
  "src/shared/game/compendium/registry.ts": "shared",
1594
1609
  "src/shared/game/compendium/rules.ts": "shared",
1595
1610
  "src/shared/game/compendium/state.ts": "shared",
@@ -1614,6 +1629,7 @@
1614
1629
  "src/shared/game/grid/ghosts.ts": "shared",
1615
1630
  "src/shared/game/grid/gridAssetBytes.ts": "shared",
1616
1631
  "src/shared/game/grid/gridCollision.ts": "shared",
1632
+ "src/shared/game/grid/voidFloor.ts": "shared",
1617
1633
  "src/shared/game/grid/instances.ts": "shared",
1618
1634
  "src/shared/game/grid/pageMode.ts": "shared",
1619
1635
  "src/shared/game/grid/platformInputs.ts": "shared",