@wildshard/engine 0.1.18 → 0.1.20

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 (334) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/budgets/shard-size-baseline.json +10 -4
  3. package/index.html +6 -4
  4. package/lint/engine-sides.json +18 -0
  5. package/lint/ratchet.json +0 -68
  6. package/lint/ratchet.mjs +1 -4
  7. package/package.json +19 -15
  8. package/scripts/agent-sync.mjs +27 -8
  9. package/scripts/app-build/appCook.ts +8 -2
  10. package/scripts/app-build/catalogue.ts +10 -7
  11. package/scripts/app-build/gen.ts +33 -2
  12. package/scripts/app-build/isolation.d.mts +10 -0
  13. package/scripts/app-build/isolation.mjs +47 -0
  14. package/scripts/app-build/outputProducts.mjs +4 -0
  15. package/scripts/app-build/previousDeploy.d.mts +2 -0
  16. package/scripts/app-build/previousDeploy.mjs +10 -1
  17. package/scripts/app-build/serviceWorker.ts +10 -3
  18. package/scripts/app-build/splitOutput.mjs +4 -2
  19. package/scripts/app-build/standaloneOutput.d.mts +1 -1
  20. package/scripts/app-build/standaloneOutput.mjs +5 -3
  21. package/scripts/app-build/titlePreloads.d.mts +8 -0
  22. package/scripts/app-build/titlePreloads.mjs +69 -0
  23. package/scripts/app-build/worldMapAtlas.ts +10 -6
  24. package/scripts/app-build-pipeline.mjs +31 -3
  25. package/scripts/built-product.mjs +1 -1
  26. package/scripts/cell-mem-bench.mjs +83 -23
  27. package/scripts/check-custom-sections-zero.mjs +1 -1
  28. package/scripts/check-devserver.mjs +2 -0
  29. package/scripts/check-models.mjs +2 -0
  30. package/scripts/check-paths.allow.json +0 -115
  31. package/scripts/check-paths.mjs +2 -2
  32. package/scripts/check-platform-ratchets.mjs +2 -3
  33. package/scripts/chromium-keychain.d.mts +1 -1
  34. package/scripts/ci-static.sh +1 -1
  35. package/scripts/committed-fast-checks.mjs +0 -2
  36. package/scripts/content-sw-proof.mjs +2 -1
  37. package/scripts/cook-worker.mjs +9 -3
  38. package/scripts/cook.mjs +18 -5
  39. package/scripts/docs-inputs-proof.mjs +6 -6
  40. package/scripts/e7-voice-staging-proof.mjs +1 -1
  41. package/scripts/gate-related-tests.mjs +1 -1
  42. package/scripts/git-source-view.mjs +1 -1
  43. package/scripts/goldens/capture.mjs +17 -5
  44. package/scripts/grid-crossing-nightly.mjs +59 -0
  45. package/scripts/grid-crossing-qa.mjs +44 -0
  46. package/scripts/grid-crossing-ratchet.d.mts +6 -0
  47. package/scripts/grid-crossing-ratchet.mjs +52 -0
  48. package/scripts/grid-crossing-report.mjs +122 -0
  49. package/scripts/grid-crossing-stages.mjs +47 -0
  50. package/scripts/grid-crossing-tour.mjs +284 -0
  51. package/scripts/grid-crossing-walk-proof.mjs +126 -17
  52. package/scripts/host-ruler/roots.mjs +2 -2
  53. package/scripts/host-ruler.d.mts +91 -0
  54. package/scripts/host-ruler.mjs +565 -0
  55. package/scripts/land.mjs +2 -1
  56. package/scripts/live-prepush.py +3 -5
  57. package/scripts/loading-flow/benchmax.mjs +37 -12
  58. package/scripts/loading-flow/deskbench.mjs +276 -0
  59. package/scripts/loading-flow/stalls.d.mts +17 -3
  60. package/scripts/loading-flow/stalls.mjs +82 -3
  61. package/scripts/look-loop/test_look_loop.py +1 -38
  62. package/scripts/memory-proof.mjs +61 -6
  63. package/scripts/mmo-bots.mjs +8 -2
  64. package/scripts/net-lag-proof.mjs +219 -0
  65. package/scripts/night-market-kit-budget.mjs +2 -2
  66. package/scripts/nightly-model.ts +9 -6
  67. package/scripts/offline-proof-rules.d.mts +2 -2
  68. package/scripts/offline-proof-rules.mjs +15 -4
  69. package/scripts/offline-proof.mjs +80 -13
  70. package/scripts/{shard-platform-output.mjs → output-reader.mjs} +1 -1
  71. package/scripts/page-release/content.d.mts +9 -1
  72. package/scripts/page-release/content.mjs +131 -17
  73. package/scripts/page-release/flow.mjs +36 -10
  74. package/scripts/page-release/stamp-content.mjs +24 -0
  75. package/scripts/page-release.mjs +28 -6
  76. package/scripts/page-size.mjs +2 -1
  77. package/scripts/parity/boot-smoke.mjs +13 -2
  78. package/scripts/pin-format.ts +5 -2
  79. package/scripts/pin-packs.ts +1 -1
  80. package/scripts/pins-reuse.d.mts +1 -0
  81. package/scripts/pins-reuse.mjs +22 -0
  82. package/scripts/pins.ts +4 -4
  83. package/scripts/precommit-checks.mjs +1 -7
  84. package/scripts/precommit-jobs.mjs +0 -1
  85. package/scripts/precommit-source.py +1 -9
  86. package/scripts/program-discovery.mjs +1 -1
  87. package/scripts/ring-cook.mjs +2 -1
  88. package/scripts/ring-step.ts +1 -1
  89. package/scripts/scratch-dir.mjs +95 -0
  90. package/scripts/scratch-sweep.mjs +182 -0
  91. package/scripts/script-scenario-metrics.mjs +1 -1
  92. package/scripts/shard-output-content.d.mts +1 -1
  93. package/scripts/shard-output-content.mjs +2 -2
  94. package/scripts/shard-outputs.mjs +1 -1
  95. package/scripts/shard-public.mjs +1 -1
  96. package/scripts/shard-wire-meter.mjs +24 -9
  97. package/scripts/side-parity.mjs +4 -2
  98. package/scripts/standalone-smoke.mjs +8 -3
  99. package/scripts/tier-textures.mjs +22 -4
  100. package/scripts/tile-bake-report.mjs +1 -1
  101. package/scripts/tile-bakes.mjs +1 -1
  102. package/scripts/title-assets.generated.json +2 -0
  103. package/scripts/tsconfig.json +2 -14
  104. package/scripts/vendor/basisu/LICENSE +201 -0
  105. package/scripts/vendor/basisu/basis_encoder.cjs +2 -0
  106. package/scripts/vendor/basisu/basis_encoder.wasm +0 -0
  107. package/scripts/vitest-push-guards.config.ts +1 -1
  108. package/scripts/vps/harden-apply.sh +4 -1
  109. package/scripts/vps/harden-prometheus.sh +179 -0
  110. package/scripts/vps/harden.sh +16 -0
  111. package/scripts/vps/rebuild.sh +18 -0
  112. package/scripts/vps/wildshard-config +6 -2
  113. package/scripts/worker-client-play.mjs +6 -2
  114. package/scripts/worktree-reap.mjs +59 -13
  115. package/scripts/worktree.mjs +19 -5
  116. package/src/.oxlintrc.json +3 -182
  117. package/src/client/app/entry.ts +10 -2
  118. package/src/client/engine/anim/rigParser.ts +2 -2
  119. package/src/client/engine/boot/bootCache.ts +2 -2
  120. package/src/client/engine/boot/bootTrace.ts +12 -4
  121. package/src/client/engine/boot/browserChunkRecovery.ts +4 -0
  122. package/src/client/engine/boot/clearDownloads.ts +5 -2
  123. package/src/client/engine/boot/contentRead.ts +11 -0
  124. package/src/client/engine/boot/gpuFiles.ts +4 -2
  125. package/src/client/engine/boot/lastEnd.ts +99 -12
  126. package/src/client/engine/boot/texturePack.ts +2 -2
  127. package/src/client/engine/core/Game.ts +63 -19
  128. package/src/client/engine/core/gpuOnly.ts +10 -0
  129. package/src/client/engine/core/renderBudget.ts +134 -0
  130. package/src/client/engine/net/netPlayer.ts +19 -2
  131. package/src/client/engine/net/otherPlayers.ts +55 -8
  132. package/src/client/engine/net/predictor.ts +33 -9
  133. package/src/client/engine/net/redial.ts +68 -10
  134. package/src/client/engine/pwa/cacheNames.ts +58 -1
  135. package/src/client/engine/pwa/sw.js +41 -11
  136. package/src/client/engine/render/dataLook.ts +219 -44
  137. package/src/client/engine/render/families/detail.ts +89 -0
  138. package/src/client/engine/render/families/pbr.ts +9 -1
  139. package/src/client/engine/render/families/registry.ts +11 -2
  140. package/src/client/engine/render/families/sceneSurface.ts +116 -0
  141. package/src/client/engine/render/look.ts +12 -0
  142. package/src/client/engine/render/lookLight.ts +103 -11
  143. package/src/client/engine/render/lookRender.ts +105 -0
  144. package/src/client/engine/render/precompile.ts +4 -2
  145. package/src/client/engine/render/tiers.ts +4 -1
  146. package/src/client/engine/saves/indexed.ts +2 -2
  147. package/src/client/engine/telemetry/browserErrors.ts +24 -3
  148. package/src/client/engine/telemetry/staleBuildReport.ts +22 -1
  149. package/src/client/engine/ui/debugOptions.ts +1 -1
  150. package/src/client/engine/ui/lookLightOption.ts +10 -6
  151. package/src/client/engine/ui/namePrompt.ts +7 -0
  152. package/src/client/engine/world/declaredProps.ts +5 -1
  153. package/src/client/engine/world/skyRig.ts +4 -1
  154. package/src/client/engine/world/terrainTileView.ts +64 -23
  155. package/src/client/game/boot/audio.generated.ts +114 -114
  156. package/src/client/game/boot/bytes.generated.ts +118 -220
  157. package/src/client/game/boot/placedSpawn.ts +35 -0
  158. package/src/client/game/boot/spawnDownload.ts +25 -6
  159. package/src/client/game/boot/versions.generated.ts +7 -5
  160. package/src/client/game/devScene/hook.ts +428 -0
  161. package/src/client/game/devScene/liveLook.ts +21 -0
  162. package/src/client/game/grid/cellLoading.ts +12 -2
  163. package/src/client/game/grid/live.ts +152 -19
  164. package/src/client/game/grid/liveSession.ts +53 -3
  165. package/src/client/game/grid/mapAtlas.ts +18 -4
  166. package/src/client/game/grid/minimapBlend.ts +15 -5
  167. package/src/client/game/grid/oneWayIn.ts +5 -1
  168. package/src/client/game/grid/pageEntry.ts +12 -1
  169. package/src/client/game/grid/placedCells.ts +114 -12
  170. package/src/client/game/grid/placedContent.ts +85 -0
  171. package/src/client/game/grid/prefetch.ts +9 -1
  172. package/src/client/game/grid/productInputs.ts +23 -10
  173. package/src/client/game/grid/productLeases.ts +4 -1
  174. package/src/client/game/grid/products.ts +8 -4
  175. package/src/client/game/grid/roadLook.ts +24 -15
  176. package/src/client/game/grid/roadLookPlatform.ts +4 -2
  177. package/src/client/game/grid/roadResources.ts +24 -0
  178. package/src/client/game/grid/roadSign.worker.ts +4 -3
  179. package/src/client/game/grid/roadSignPaint.ts +16 -5
  180. package/src/client/game/grid/roadSignPreparation.ts +4 -3
  181. package/src/client/game/grid/roadSignScale.ts +8 -0
  182. package/src/client/game/grid/roadTileCapture.worker.ts +3 -1
  183. package/src/client/game/grid/roadTileCaptureWorker.ts +2 -1
  184. package/src/client/game/grid/roadTileWrite.worker.ts +4 -2
  185. package/src/client/game/grid/roadTileWriter.ts +2 -1
  186. package/src/client/game/grid/screenReports.ts +39 -0
  187. package/src/client/game/grid/session.ts +32 -7
  188. package/src/client/game/grid/softWallLook.ts +25 -8
  189. package/src/client/game/mainMenu.ts +6 -2
  190. package/src/client/game/plugin/context.ts +2 -1
  191. package/src/client/game/plugin/followedMovers.ts +7 -1
  192. package/src/client/game/quest/figures.ts +2 -0
  193. package/src/client/game/session/finish.ts +9 -0
  194. package/src/client/game/shardfile/assetCache.ts +4 -4
  195. package/src/client/game/shardfile/client.ts +28 -8
  196. package/src/client/game/shardfile/clientAssets.ts +9 -5
  197. package/src/client/game/shardfile/clientLibrary.ts +1 -1
  198. package/src/client/game/shardfile/clientPropMaterials.ts +4 -1
  199. package/src/client/game/shardfile/clientViews.ts +36 -8
  200. package/src/client/game/shardfile/clientWater.ts +51 -9
  201. package/src/client/game/shardfile/clientWorker.ts +19 -7
  202. package/src/client/game/shardfile/constructionCheckpoint.ts +2 -2
  203. package/src/client/game/shardfile/groundMerge.ts +57 -5
  204. package/src/client/game/shardfile/hybrid.ts +2 -0
  205. package/src/client/game/shardfile/look.ts +8 -3
  206. package/src/client/game/shardfile/product.ts +34 -7
  207. package/src/client/game/shardfile/productChecks.ts +2 -2
  208. package/src/client/game/shardfile/productCost.ts +2 -2
  209. package/src/client/game/shardfile/readAsset.ts +2 -2
  210. package/src/client/game/shardfile/reflectingWater.ts +73 -0
  211. package/src/client/game/shardfile/seatGrace.ts +9 -0
  212. package/src/client/game/shardfile/skinPlayback.ts +1 -1
  213. package/src/client/game/shardfile/slabLibrary.ts +115 -49
  214. package/src/client/game/shardfile/tileContent.ts +1 -1
  215. package/src/client/game/shardfile/tileDriver.ts +38 -11
  216. package/src/client/game/shardfile/wirePage.ts +7 -3
  217. package/src/client/game/shardfile/worldScenes.ts +17 -10
  218. package/src/client/game/systems/npc/figureRows.ts +9 -0
  219. package/src/client/host/online/doctor.ts +22 -7
  220. package/src/client/host/online/doctorView.ts +2 -0
  221. package/src/client/host/online/linkScreens.ts +109 -5
  222. package/src/client/host/online/shell.ts +13 -4
  223. package/src/client/host/standalone/shell.ts +40 -0
  224. package/src/cook/game/astc6Encode.ts +55 -0
  225. package/src/cook/game/astc6Wasm.ts +176 -0
  226. package/src/cook/game/cookJob.ts +30 -6
  227. package/src/cook/game/cookWorker.ts +38 -11
  228. package/src/cook/game/entryTotals.ts +51 -24
  229. package/src/cook/game/shardCook.ts +35 -7
  230. package/src/cook/game/spawnParts.ts +33 -8
  231. package/src/cook/game/tierTextures.ts +87 -14
  232. package/src/server/engine/ai/bossContenders.ts +27 -3
  233. package/src/server/engine/ai/phases.ts +1 -1
  234. package/src/server/engine/entities/creatureRefill.ts +9 -2
  235. package/src/server/engine/net/ledgerBook.ts +2 -0
  236. package/src/server/engine/net/room.ts +15 -0
  237. package/src/server/engine/sim/respawn.ts +8 -0
  238. package/src/server/game/boss/arenaRoomEntry.ts +5 -1
  239. package/src/server/game/boss/arenaRoomNative.ts +2 -0
  240. package/src/server/game/boss/native.ts +2 -1
  241. package/src/server/game/boss/nativeWake.ts +9 -5
  242. package/src/server/game/boss/openArenaNative.ts +2 -2
  243. package/src/server/game/boss/openArenaRoom.ts +3 -1
  244. package/src/server/game/grid/room.ts +44 -3
  245. package/src/server/game/grid/simulation.ts +23 -0
  246. package/src/server/game/population/mixedRoster.ts +11 -3
  247. package/src/server/game/population/nativeBake.ts +8 -3
  248. package/src/server/game/population/nativeReturns.ts +6 -3
  249. package/src/server/game/population/roster.ts +5 -3
  250. package/src/server/game/quest/eliteDrops.ts +18 -3
  251. package/src/server/game/quest/nativeChapter.ts +1 -1
  252. package/src/server/game/quest/nativeComposition.ts +5 -1
  253. package/src/server/game/riding/nativeTaming.ts +22 -7
  254. package/src/server/game/riding/wildRefill.ts +3 -2
  255. package/src/server/game/shardfile/bossRow.ts +4 -2
  256. package/src/server/game/shardfile/homeKeeper.ts +4 -2
  257. package/src/server/host/bake/headlessWorker.ts +1 -1
  258. package/src/server/host/dedicated/cellHost.ts +112 -18
  259. package/src/server/host/dedicated/cellProtocol.ts +18 -1
  260. package/src/server/host/dedicated/cellWorker.ts +8 -5
  261. package/src/server/host/dedicated/dedicatedRoom.ts +38 -11
  262. package/src/server/host/dedicated/gridCells.ts +15 -6
  263. package/src/server/host/dedicated/loopLag.ts +21 -0
  264. package/src/server/host/dedicated/main.ts +13 -5
  265. package/src/server/host/dedicated/packReader.ts +3 -3
  266. package/src/server/host/dedicated/placementFile.ts +3 -2
  267. package/src/server/host/dedicated/roadRoom.ts +34 -4
  268. package/src/server/host/dedicated/serverMetrics.ts +135 -0
  269. package/src/server/host/dedicated/socketPump.ts +21 -4
  270. package/src/server/host/dedicated/workerTable.ts +32 -14
  271. package/src/server/host/dedicated/world.ts +65 -7
  272. package/src/server/host/headless.ts +1 -1
  273. package/src/server/host/headlessRuntime.ts +1 -1
  274. package/src/server/host/standalone/roadWorld.ts +15 -3
  275. package/src/server/host/standalone/serverHost.ts +57 -8
  276. package/src/server/host/standalone/serverProduct.ts +48 -16
  277. package/src/server/host/standalone/serverRuntime.ts +1 -1
  278. package/src/shared/engine/ai/BossBrain.ts +8 -0
  279. package/src/shared/engine/core/framePacing.ts +12 -1
  280. package/src/shared/engine/physics/terrainTiles.ts +20 -4
  281. package/src/shared/game/boss/wake.ts +6 -0
  282. package/src/shared/game/devColliders.ts +107 -0
  283. package/src/shared/game/devGameplay.ts +41 -0
  284. package/src/shared/game/eliteSystem.ts +8 -0
  285. package/src/shared/game/grid/allocator.ts +3 -0
  286. package/src/shared/game/grid/placementRows.ts +5 -2
  287. package/src/shared/game/plugin/bossRecord.ts +3 -2
  288. package/src/shared/game/shardfile/ktx2Targets.ts +23 -3
  289. package/src/shared/game/shardfile/outputDescriptor.ts +9 -5
  290. package/src/shared/game/shardfile/packReads.ts +28 -3
  291. package/src/shared/game/shardfile/serverPack.ts +9 -0
  292. package/src/shared/game/systems/looks/trampleField.ts +2 -0
  293. package/src/shared/host/formatJsonSchema.ts +2 -2
  294. package/src/tsconfig.json +1 -27
  295. package/lint/host-reviews.json +0 -14
  296. package/lint/listed-view-code.json +0 -13
  297. package/lint/platform-pending-users.json +0 -2520
  298. package/lint/platform-pending-users.md +0 -18
  299. package/scripts/cell-mem/metrics-preload.mjs +0 -65
  300. package/scripts/check-closed-components.d.mts +0 -7
  301. package/scripts/check-closed-components.mjs +0 -87
  302. package/scripts/g571-hosts.d.mts +0 -3
  303. package/scripts/g571-hosts.mjs +0 -54
  304. package/scripts/host-ruler/register-migrate.mjs +0 -242
  305. package/scripts/listed-view-code.d.mts +0 -7
  306. package/scripts/listed-view-code.mjs +0 -93
  307. package/scripts/look-loop/fit-lut.py +0 -142
  308. package/scripts/look-loop/palette-delta.py +0 -183
  309. package/scripts/look-loop/regions/driftwood-isle.json +0 -25
  310. package/scripts/look-loop/regions/far-reach.json +0 -225
  311. package/scripts/look-loop/regions/open-plot-night-market.json +0 -855
  312. package/scripts/look-loop/regions/pine-hollow.json +0 -22
  313. package/scripts/look-loop/regions/sunscar-dunes.json +0 -281
  314. package/scripts/platform-chargebacks.d.mts +0 -9
  315. package/scripts/platform-chargebacks.mjs +0 -135
  316. package/scripts/shard-component-spans.d.mts +0 -15
  317. package/scripts/shard-component-spans.mjs +0 -18
  318. package/scripts/shard-components.d.mts +0 -16
  319. package/scripts/shard-components.mjs +0 -363
  320. package/scripts/shard-platform-hosts.d.mts +0 -2
  321. package/scripts/shard-platform-hosts.mjs +0 -93
  322. package/scripts/shard-platform-sections.d.mts +0 -2
  323. package/scripts/shard-platform-sections.mjs +0 -9
  324. package/scripts/shard-platform.d.mts +0 -76
  325. package/scripts/shard-platform.mjs +0 -1072
  326. package/src/.oxfmtrc.json +0 -48
  327. package/src/scripts/ask-new.sh +0 -29
  328. package/src/scripts/asks.mjs +0 -142
  329. package/src/scripts/herdr-prompt.sh +0 -34
  330. package/src/scripts/herdr-question-open.sh +0 -67
  331. package/src/scripts/md-wrap.mjs +0 -229
  332. /package/scripts/{shard-platform-format.d.mts → node-format.d.mts} +0 -0
  333. /package/scripts/{shard-platform-format.mjs → node-format.mjs} +0 -0
  334. /package/scripts/{shard-platform-output.d.mts → output-reader.d.mts} +0 -0
@@ -4,7 +4,7 @@ import {existsSync,readdirSync,readFileSync,statSync} from 'node:fs';
4
4
  import {relative,resolve} from 'node:path';
5
5
  import {createHash} from 'node:crypto';
6
6
  import * as v from 'valibot';
7
- import {outputFormat} from './shard-platform-format.mjs';
7
+ import {outputFormat} from './node-format.mjs';
8
8
  import {formatSource} from './format-package.mjs';
9
9
 
10
10
  const hash=v.pipe(v.string(),v.regex(/^[a-f0-9]{64}$/u)),natural=v.pipe(v.number(),v.safeInteger(),v.minValue(0));
@@ -1,4 +1,4 @@
1
- import type {OutputReader} from './shard-platform-output.mjs';
1
+ import type {OutputReader} from './output-reader.mjs';
2
2
 
3
3
  export interface OutputContent {status:'built';product:string;privateBinaries:string[];privateBinaryBytes:number;tiles:{total:number;l0:number;l1:number};gate:{enforcement:'report-only';status:'candidate'|'incomplete';issues:string[]}}
4
4
  export function outputContent(root:string,slug:string,products:string,reader?:OutputReader):OutputContent;
@@ -1,12 +1,12 @@
1
1
  // P4 structural columns use only the emitted index and verified sections.
2
2
  import {relative,resolve} from 'node:path';
3
- import {createOutputReader} from './shard-platform-output.mjs';
3
+ import {createOutputReader} from './output-reader.mjs';
4
4
  import {representativeProduct} from './shard-outputs.mjs';
5
5
 
6
6
  /** Private binaries are opaque bin blobs without a platform decoder declaration.
7
7
  * This is structural evidence, never a visual/behaviour compatibility verdict.
8
8
  * @param {string} root @param {string} slug @param {string} products
9
- * @param {import('./shard-platform-output.mjs').OutputReader} reader */
9
+ * @param {import('./output-reader.mjs').OutputReader} reader */
10
10
  export function outputContent(root,slug,products,reader=createOutputReader(root,products)) {
11
11
  const output=reader.sections(slug);
12
12
  const indexPath=relative(root,resolve(products,representativeProduct(root,slug),'shard.json')).replaceAll('\\','/');
@@ -92,7 +92,7 @@ export function productFolder(root, slug) {
92
92
  }
93
93
  /** The built product that stands for a source shard in per-shard measures: a folder that emits several outputs (all from
94
94
  * one source, sharing its structure and scripts) is read through its first output; any other folder is its own product.
95
- * Section inventories union every output (scripts/shard-platform-output.mjs). @param {string} root @param {string} slug */
95
+ * Section inventories union every output (scripts/output-reader.mjs). @param {string} root @param {string} slug */
96
96
  export function representativeProduct(root, slug) {
97
97
  return (/^[a-z0-9_-]+$/u.test(slug) ? shardOutputs(root, slug)?.[0]?.slug : undefined) ?? slug;
98
98
  }
@@ -12,7 +12,7 @@ export const GATHERED_SHARDS = Object.freeze(['_template', 'blender-template', '
12
12
  * it, so point the tool at assets/public first. targets.json outputs count: check-model-sources needs them on disk.
13
13
  * 2. Move every tracked file there, add the slug here and `/public/assets/<slug>/` to .gitignore, one shard per commit.
14
14
  * 3. Prove it from an archive with no aliases: gen, every product by SHA-256 against the parent, and the full
15
- * check-closed-components with docs and art present. Scripts and tests read the alias, so their paths don't change.
15
+ * the guards with docs and art present. Scripts and tests read the alias, so their paths don't change.
16
16
  * gen only copies: a file deleted here leaves its alias until the folder is cleared. */
17
17
  export const PUBLIC_TREES = Object.freeze(['sunscar-dunes', 'driftwood-isle']);
18
18
 
@@ -8,18 +8,20 @@
8
8
  // [--flow select|grid] [--upstream https://play.wildshard.io] [--settle ms] [--timeout ms] [--shot file.jpg]
9
9
  // [--last <slug>] a returning player whose last pick was <slug>, with nothing stored yet
10
10
  // [--dwell ms] time on the title before the tap
11
+ // [--card n] enter the deck's nth card instead of --shard's benchmark card (PAGE-SIZE PZ7 meters every card)
12
+ // byClass splits S1 shardfiles into `S1-packs` (blobs/pack/) and `S1-loose` (the other blobs) for PZ7. The browser
13
+ // profile lives in the root's tmp/wire-meter, never the system temp folder.
11
14
  import { spawn } from 'node:child_process';
12
15
  import { createRequire } from 'node:module';
13
- import { mkdtempSync, writeFileSync, rmSync } from 'node:fs';
16
+ import { mkdirSync, mkdtempSync, writeFileSync, rmSync } from 'node:fs';
14
17
  import http from 'node:http';
15
18
  import https from 'node:https';
16
- import { tmpdir } from 'node:os';
17
19
  import { join } from 'node:path';
18
20
  import { pathToFileURL } from 'node:url';
19
21
  import { parseArgs } from 'node:util';
20
22
  import { KEYCHAIN_ARGS } from './chromium-keychain.mjs';
21
23
 
22
- const { values: o } = parseArgs({ options: { root: { type: 'string' }, shard: { type: 'string' }, tier: { type: 'string', default: 'phone' }, flow: { type: 'string', default: 'select' },
24
+ const { values: o } = parseArgs({ options: { root: { type: 'string' }, shard: { type: 'string' }, card: { type: 'string' }, tier: { type: 'string', default: 'phone' }, flow: { type: 'string', default: 'select' },
23
25
  out: { type: 'string' }, upstream: { type: 'string' }, settle: { type: 'string', default: '20000' }, timeout: { type: 'string', default: '420000' }, shot: { type: 'string' }, last: { type: 'string' }, dwell: { type: 'string', default: '3000' } } });
24
26
  const require = createRequire(join(o.root, 'package.json'));
25
27
  const { chromium, devices } = require('playwright');
@@ -54,7 +56,8 @@ const port = await free();
54
56
  await new Promise(resolve => { proxy.listen(port, '127.0.0.1', resolve); });
55
57
  const url = `http://127.0.0.1:${port}/`;
56
58
 
57
- const profile = mkdtempSync(join(tmpdir(), 'wire-'));
59
+ mkdirSync(join(o.root, 'tmp/wire-meter'), { recursive: true });
60
+ const profile = mkdtempSync(join(o.root, 'tmp/wire-meter/profile-'));
58
61
  const context = await chromium.launchPersistentContext(profile, { headless: true, args: [...KEYCHAIN_ARGS, ...process.platform === 'darwin' ? ['--use-angle=metal'] : [], '--ignore-gpu-blocklist', '--mute-audio'],
59
62
  ...(o.tier === 'phone' ? devices['iPhone 16 Pro'] : { viewport: { width: 1440, height: 900 } }) });
60
63
  await developerSettings(context, { volume: 0, music: 0, tier: o.tier, holdLoading: true });
@@ -66,7 +69,8 @@ page.on('pageerror', e => errors.push(e.message.slice(0, 200)));
66
69
  const result = { shard: o.shard, tier: o.tier, url: upstream, build: null, fact: null, bar: null, stoppedOn: null };
67
70
  const summary = () => {
68
71
  const sum = list => list.reduce((n, r) => n + r.wire, 0), byStage = {}, byClass = {};
69
- const klass = u => u.startsWith('/assets/spawn/parts/') ? 'spawn-parts' : /\/shardfiles\//.test(u) ? 'shardfiles' : /\/assets\/packs\//.test(u) ? 'legacy-packs'
72
+ const klass = u => u.startsWith('/assets/spawn/parts/') ? 'spawn-parts' : /\/shardfiles\/[^/]+\/blobs\/pack\//.test(u) ? 'S1-packs'
73
+ : /\/shardfiles\/[^/]+\/blobs\//.test(u) ? 'S1-loose' : /\/shardfiles\//.test(u) ? 'shardfiles' : /\/assets\/packs\//.test(u) ? 'legacy-packs'
70
74
  : u.startsWith('/assets/spawn/') ? 'manifests' : u.startsWith('/b/') || /\.(?:js|mjs|css|html)(?:\?|$)/.test(u) || u === '/' ? 'app' : /\/assets\//.test(u) ? 'assets' : 'other';
71
75
  for (const r of rows) { byStage[r.stage] = (byStage[r.stage] ?? 0) + r.wire; const k = klass(r.url); byClass[k] = (byClass[k] ?? 0) + r.wire; }
72
76
  return { requests: rows.length, wireBytes: sum(rows), byStage, byClass };
@@ -76,14 +80,25 @@ try {
76
80
  result.build = await page.evaluate(() => fetch('/version.json').then(r => r.json()).then(v => v.build ?? v.sha ?? null)).catch(() => null);
77
81
  await page.locator('.ws-main-select').waitFor({ timeout });
78
82
  await page.waitForTimeout(Number(o.dwell));
79
- if (o.flow === 'grid') { stage = 'entry'; await page.locator('.ws-main-grid').click({ timeout }); }
83
+ // a first visit names its player before the deck or the grid opens
84
+ const named = async () => {
85
+ if (await page.locator('#ws-name-box input').waitFor({ timeout: 15_000 }).then(() => true).catch(() => false)) {
86
+ await page.locator('#ws-name-box input').fill('wiremeter'); await page.locator('#ws-name-box button[type=submit]').click();
87
+ }
88
+ };
89
+ if (o.flow === 'grid') { stage = 'entry'; await page.locator('.ws-main-grid').click({ timeout }); await named(); }
80
90
  else {
81
91
  await page.locator('.ws-main-select').click({ timeout });
92
+ await named();
82
93
  await page.locator('.ws-menu-card').first().waitFor({ timeout });
83
- const { loadingCardIndex } = await import(pathToFileURL(join(o.root, 'scripts/loading-benchmark/catalogue.mjs')).href);
84
94
  const titles = await page.locator('.ws-menu-card b').allTextContents();
85
- const index = loadingCardIndex(titles, o.shard);
86
- await page.locator(`.ws-menu-dots i[data-i="${index}"]`).click();
95
+ let index;
96
+ if (o.card !== undefined) index = Number(o.card);
97
+ else { const { loadingCardIndex } = await import(pathToFileURL(join(o.root, 'scripts/loading-benchmark/catalogue.mjs')).href); index = loadingCardIndex(titles, o.shard); }
98
+ if (!Number.isInteger(index) || index < 0 || index >= titles.length) throw new Error(`No deck card ${String(o.card ?? o.shard)} (index ${index} of ${titles.length})`);
99
+ result.card = { index, title: titles[index] ?? null, of: titles.length };
100
+ // the dots are positional (no data-i on them since the deck redesign); the card keeps its data-i
101
+ await page.locator('.ws-menu-dots i').nth(index).click();
87
102
  await page.locator(`.ws-menu-card.selected[data-i="${index}"]`).waitFor({ timeout });
88
103
  stage = 'entry';
89
104
  const explicit = page.locator('.ws-menu-shardfile');
@@ -69,14 +69,16 @@ export function colliderInventory(physics) {
69
69
 
70
70
  /**
71
71
  * One name per owner on both sides: a streamed tile keeps its authored owner with an 8 × 8 tile suffix (`pier.c3`), the server's
72
- * bake prefixes its pieces (`piece:pier`, `string:platform.grid`), a streamed tree keeps its tile (`.trunks.t3`). An owner
72
+ * bake prefixes its pieces (`piece:pier`, `string:platform.grid`), a streamed tree keeps its tile (`.trunks.t3`), and a placed
73
+ * piece keeps its placement after its model id (`nalati-grasslands/corral.camp.16`: Nalati's bake names it by the model). An owner
73
74
  * object with no string id, or a creature's numeric id, is an actor (the player, a creature, a loose body): an entity the wire
74
75
  * carries, grouped as `actor`.
75
76
  */
76
77
  export function ownerGroup(owner) {
77
78
  if (owner === null) return '(untagged)';
78
79
  if (owner.startsWith('(object') || owner === '(number)') return 'actor';
79
- return owner.replace(/^(?:piece|string):/u, '').replace(/\.c(?:[0-9]|[1-5][0-9]|6[0-3])$/u, '').replace(/\.trunks\.t\d+$/u, '');
80
+ return owner.replace(/^(?:piece|string):/u, '').replace(/\.c(?:[0-9]|[1-5][0-9]|6[0-3])$/u, '').replace(/\.trunks\.t\d+$/u, '')
81
+ .replace(/^([^/.]+\/[^/.]+)\.[a-z0-9-]+(?:\.\d+)?$/u, '$1');
80
82
  }
81
83
 
82
84
  /** A body of flesh is a creature, a person or a player on either side, whatever its owner: an actor. */
@@ -16,6 +16,7 @@ import { codeDirectory, stampBuildHtml } from './app-build/buildIdentity.mjs';
16
16
  import { standaloneDirectory, writeStandaloneOutput } from './app-build/standaloneOutput.mjs';
17
17
  import { readBuiltShardfile } from './built-product.mjs';
18
18
  import { KEYCHAIN_ARGS } from './chromium-keychain.mjs';
19
+ import { documentIsolation } from './app-build/isolation.mjs';
19
20
 
20
21
  const ROOT = resolveFile(import.meta.dirname, '..'), OUT = join(ROOT, 'tmp', 'standalone-smoke'), EMITTED = join(OUT, 'emitted');
21
22
  const option = (name, fallback) => process.argv.find(arg => arg.startsWith(`--${name}=`))?.slice(name.length + 3) ?? fallback;
@@ -46,16 +47,20 @@ const resolvePath = path => {
46
47
  };
47
48
  const declaredCreatures = join(unpacked !== '' || dist === '' ? resolveFile(product) : join(output, 'shardfiles', slug), 'sections/actors/creatures.json');
48
49
  const declaresCreatures = !existsSync(declaredCreatures) || JSON.parse(readFileSync(declaredCreatures, 'utf8')).creatures?.spawns?.length !== 0;
50
+ // PZ12 (J274): the build's own isolation (its `_headers` `/*` rule, dist/ only), on every answer, as its host sends it
51
+ const isolation = dist === '' || !existsSync(join(output, '_headers')) ? {} : documentIsolation(readFileSync(join(output, '_headers'), 'utf8'));
52
+ const isolatedBuild = isolation['cross-origin-embedder-policy'] === 'require-corp' && isolation['cross-origin-opener-policy'] === 'same-origin';
49
53
  const server = createServer((request, response) => {
50
54
  const path = new URL(request.url ?? '/', 'http://localhost').pathname;
51
55
  // The uncached pointer (J57): only these two responses say which build is live.
52
- if (path === '/') { response.writeHead(200, { 'content-type': 'text/html', 'cache-control': 'no-store' }).end(stampBuildHtml(html, pointer)); return; }
56
+ if (path === '/') { response.writeHead(200, { ...isolation, 'content-type': 'text/html', 'cache-control': 'no-store' }).end(stampBuildHtml(html, pointer)); return; }
53
57
  if (path === '/version.json') { response.writeHead(200, { 'content-type': 'application/json', 'cache-control': 'no-store' }).end(JSON.stringify({ build: pointer })); return; }
54
58
  // WebKit asks for the page's service worker over the pointer's reload, and a build has one. This smoke's has nothing to cache.
55
59
  if (path === '/sw.js') { response.writeHead(200, { 'content-type': 'text/javascript' }).end(); return; }
56
60
  const file = resolvePath(path);
57
61
  if (file === null || !existsSync(file) || !statSync(file).isFile()) { response.writeHead(404).end(); return; }
58
- response.writeHead(200, { 'content-type': TYPES[extname(file)] ?? 'application/octet-stream', ...file.endsWith('.pack.br') ? { 'content-encoding': 'br' } : {} }); // no COOP / COEP (J59 Q8)
62
+ // J59 Q8: the loopback needs no SharedArrayBuffer; an isolated channel's build (PZ12) sends its COOP / COEP on every file
63
+ response.writeHead(200, { ...isolation, 'content-type': TYPES[extname(file)] ?? 'application/octet-stream', ...file.endsWith('.pack.br') ? { 'content-encoding': 'br' } : {} });
59
64
  createReadStream(file).pipe(response);
60
65
  });
61
66
  await new Promise(resolve => { server.listen(0, '127.0.0.1', resolve); });
@@ -96,7 +101,7 @@ try {
96
101
  // A shard that declares no creature has no row to walk to (Nine's spawns are empty): the check holds for every shard that declares one.
97
102
  check('rows checked against the worker', report.probes >= seconds * 2 && (report.matched > 0 || !declaresCreatures), report);
98
103
  check('rows within one quantisation step', report.worstError <= report.step, { worst: report.worstError, step: report.step });
99
- check('no cross-origin isolation', !report.crossOriginIsolated, report.crossOriginIsolated);
104
+ check(isolatedBuild ? 'cross-origin isolated, as its channel (PZ12)' : 'no cross-origin isolation', report.crossOriginIsolated === isolatedBuild, report.crossOriginIsolated);
100
105
  check('commands reached the worker', report.positionMoved > 5, report.positionMoved);
101
106
  check('save durable', saved.ok && stored > 0, { saved, stored });
102
107
  check('save survives the reload', second.restored && second.tick === saved.tick, { second, saved });
@@ -7,14 +7,18 @@
7
7
  // phone file trimmed to --max. Bytes are file bytes; GPU is `ktx2GpuBytes`, mips included. --out writes the trimmed
8
8
  // phone files at their URL paths, for a browser to load.
9
9
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
10
+ import { homedir } from 'node:os';
10
11
  import { dirname, join, resolve } from 'node:path';
11
12
 
12
- const { glbImages, isKtx2, ktx2GpuBytes, tierGlb, trimKtx2 } = await import('../src/cook/game/tierTextures.ts');
13
+ const { glbImages, isKtx2, ktx2GpuBytes, masterOf, phoneTier, tierGlb, trimKtx2 } = await import('../src/cook/game/tierTextures.ts');
13
14
 
14
15
  const args = process.argv.slice(2), flag = (/** @type {string} */ name) => args.find(arg => arg.startsWith(`--${name}=`))?.slice(name.length + 3);
15
16
  const product = args.find(arg => !arg.startsWith('--'));
16
17
  if (product === undefined) throw new Error('usage: tier-textures <product-dir> [--max=512] [--out=dir]');
17
18
  const max = Number(flag('max') ?? 512), out = flag('out');
19
+ // --astc6 (S12c): a fourth column, the masters trimmed and re-encoded as ASTC 6×6 by the cook's encoder (`basisuAstc6`), as
20
+ // `phoneTier` cooks them with an encoder; its cache is the cook's, so a second run encodes nothing.
21
+ const astc6 = args.includes('--astc6') ? (await import('../src/cook/game/astc6Encode.ts')).basisuAstc6(process.env.WILDSHARD_ASTC6_CACHE ?? resolve(homedir(), '.cache/wildshard/gen/astc6/1')) : undefined;
18
22
  const slug = product.replace(/\/$/u, '').split('/').pop() ?? '';
19
23
  const discovery = JSON.parse(readFileSync(join(product, 'mounts/shardfiles', slug, 'discovery.json'), 'utf8'));
20
24
  /** @type {{phone: Record<string, string>, desktop: Record<string, string>}} */
@@ -31,10 +35,10 @@ const gpu = (url, bytes) => {
31
35
  };
32
36
  /** The desktop master of a phone source: the same source, or its name without the `.phone` / `-phone` mark. */
33
37
  /** @param {string} source @returns {string | undefined} */
34
- const master = source => table.desktop[source] ?? table.desktop[source.replace(/\.phone\./u, '.')] ?? table.desktop[source.replace(/-phone\./u, '.')];
38
+ const master = source => masterOf(table.desktop, source);
35
39
 
36
40
  /** @type {Record<string, [number, number]>} */
37
- const sum = { today: [0, 0], master: [0, 0], cooked: [0, 0], trimmed: [0, 0] };
41
+ const sum = { today: [0, 0], master: [0, 0], cooked: [0, 0], trimmed: [0, 0], astc6: [0, 0] };
38
42
  let rows = 0, missing = 0, mastered = 0;
39
43
  for (const [source, phoneUrl] of Object.entries(table.phone)) {
40
44
  if (!/\.(?:glb|ktx2)$/u.test(phoneUrl)) continue;
@@ -51,10 +55,24 @@ for (const [source, phoneUrl] of Object.entries(table.phone)) {
51
55
  add('master', masterUrl ?? phoneUrl, masterBytes ?? phone);
52
56
  add('cooked', masterUrl ?? phoneUrl, cooked);
53
57
  add('trimmed', phoneUrl, trimmed);
58
+
54
59
  if (out !== undefined) { const path = resolve(out, `.${phoneUrl}`); mkdirSync(dirname(path), { recursive: true }); writeFileSync(path, trimmed); }
55
60
  }
61
+ // --astc6: what `phoneTier` ships with the encoder, row by row: its cooked file, or today's where it keeps one (a `#layer` or horizon row).
62
+ if (astc6 !== undefined) {
63
+ const tier = phoneTier(new TextEncoder().encode(JSON.stringify(discovery)), read, undefined, astc6.encode);
64
+ const cookedTable = tier === undefined ? table : JSON.parse(new TextDecoder().decode(tier.discovery)).native.ktx2.args[0].shard;
65
+ const made = new Map([...(tier?.files.values() ?? [])].flat().map(file => [file.url, file.bytes]));
66
+ for (const url of Object.values(cookedTable.phone)) {
67
+ if (!/\.(?:glb|ktx2)$/u.test(url)) continue;
68
+ const bytes = made.get(url) ?? read(url);
69
+ if (bytes === undefined) continue;
70
+ const row = sum.astc6 ?? [0, 0]; row[0] += bytes.length; row[1] += gpu(url, bytes); sum.astc6 = row;
71
+ }
72
+ }
56
73
  const mb = (/** @type {number} */ n) => (n / 1e6).toFixed(2);
57
74
  console.log(`${slug} phone table: ${rows} KTX2/GLB rows (${mastered} with a desktop master, ${missing} not in the product), --max=${max}`);
58
- for (const [key, label] of [['today', 'phone today'], ['master', 'desktop masters'], ['cooked', `masters trimmed to ${max}`], ['trimmed', `phone today trimmed to ${max}`]]) {
75
+ for (const [key, label] of [['today', 'phone today'], ['master', 'desktop masters'], ['cooked', `masters trimmed to ${max}`], ['trimmed', `phone today trimmed to ${max}`], ...(astc6 === undefined ? [] : [['astc6', "the cook's phone table, 6x6"]])]) {
59
76
  console.log(`${label.padEnd(28)} file ${mb(sum[key]?.[0] ?? 0).padStart(7)} MB GPU ${mb(sum[key]?.[1] ?? 0).padStart(7)} MB`);
60
77
  }
78
+ if (astc6 !== undefined) console.log(`astc6: ${astc6.stats.encoded} encoded, ${astc6.stats.reused} reused, ${astc6.stats.failed} failed`);
@@ -4,7 +4,7 @@ import {createHash} from 'node:crypto';
4
4
  import {existsSync,readFileSync} from 'node:fs';
5
5
  import {resolve} from 'node:path';
6
6
  import * as v from 'valibot';
7
- import {outputFormat} from './shard-platform-format.mjs';
7
+ import {outputFormat} from './node-format.mjs';
8
8
 
9
9
  const {TilesSchema,SpawnSchema}=await import('@wildshard/format/shardSections');
10
10
  const {EntrywaysSchema}=await import('@wildshard/format/entryways');
@@ -3,7 +3,7 @@ import { createHash } from 'node:crypto';
3
3
  import { readFileSync } from 'node:fs';
4
4
  import { resolve } from 'node:path';
5
5
  import * as v from 'valibot';
6
- import { outputFormat } from './shard-platform-format.mjs';
6
+ import { outputFormat } from './node-format.mjs';
7
7
  import { parseTileBakePolicy, TILE_BAKE_POLICY } from './tile-bake-policy.mjs';
8
8
 
9
9
  const { CONTENT_CAPS: caps } = await import('@wildshard/format/contentBounds');
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "/assets/title/driftwood-isle-portrait.jpg": "/assets/title/driftwood-isle-portrait-e9d5c9aedd5c5920.jpg",
3
3
  "/assets/title/launch-1206x2622-6afc7dd7eee8.png": "/assets/title/launch-1206x2622-6afc7dd7eee8.png",
4
+ "/assets/title/main-crossroads-landscape-first.jpg": "/assets/title/main-crossroads-landscape-first-f3f196486b3476a0.jpg",
4
5
  "/assets/title/main-crossroads-landscape.jpg": "/assets/title/main-crossroads-landscape-9437ac10c599548a.jpg",
6
+ "/assets/title/main-crossroads-square-first.jpg": "/assets/title/main-crossroads-square-first-98ef65b2b3433656.jpg",
5
7
  "/assets/title/main-crossroads-square.jpg": "/assets/title/main-crossroads-square-24abf23d2606ae3f.jpg",
6
8
  "/assets/title/nalati-grasslands-portrait.jpg": "/assets/title/nalati-grasslands-portrait-5ac0c2e430a5a22b.jpg",
7
9
  "/assets/title/nine-dragon-stack-portrait.jpg": "/assets/title/nine-dragon-stack-portrait-d92d65e333c1ccba.jpg",
@@ -45,6 +45,8 @@
45
45
  "ci-native-fixtures.mjs",
46
46
  "agent-parity.mjs",
47
47
  "agent-sync.mjs",
48
+ "scratch-dir.mjs",
49
+ "scratch-sweep.mjs",
48
50
  "goldens/capture.mjs",
49
51
  "goldens/native-residency.mjs",
50
52
  "look-loop/views.mjs",
@@ -61,16 +63,13 @@
61
63
  "../test/author-errors.test.ts",
62
64
  "../test/author-lut-sampling.test.ts",
63
65
  "../test/author-placement-parity.test.ts",
64
- "../test/authored-html.test.ts",
65
66
  "../test/bake-collider-kernels.test.ts",
66
67
  "../test/balbal-program.test.ts",
67
68
  "../test/balbal-v2.test.ts",
68
69
  "../test/basis-glb-variant.test.ts",
69
70
  "../test/boot-audio-packs.test.ts",
70
- "../test/boot-extras.test.ts",
71
71
  "../test/boot-settings-interaction.test.ts",
72
72
  "../test/build-cache-report.test.ts",
73
- "../test/build-validation-receipts.test.ts",
74
73
  "../test/carried-quest-host.test.ts",
75
74
  "../test/channel-programs-gather.test.ts",
76
75
  "../test/ci12-ghost-owners.test.ts",
@@ -86,7 +85,6 @@
86
85
  "../test/contract-page-admission.test.ts",
87
86
  "../test/contract-program-owner.test.ts",
88
87
  "../test/contracts-platform.test.ts",
89
- "../test/control-chunks.test.ts",
90
88
  "../test/creature-refill.test.ts",
91
89
  "../test/creature-spawner.test.ts",
92
90
  "../test/debug-authored-rows.test.ts",
@@ -107,7 +105,6 @@
107
105
  "../test/elite-native-roster.test.ts",
108
106
  "../test/encounter-room.test.ts",
109
107
  "../test/encounter-slots.test.ts",
110
- "../test/engine-sides.test.ts",
111
108
  "../test/entry-styles.test.ts",
112
109
  "../test/faceted-ao-scope.test.ts",
113
110
  "../test/faceted-author-compiler.test.ts",
@@ -131,7 +128,6 @@
131
128
  "../test/fixtures/driftwood-rock-author.ts",
132
129
  "../test/fixtures/driftwood-trade-native.ts",
133
130
  "../test/fixtures/geometry-cache-author-observation.ts",
134
- "../test/fixtures/graph-scene-author-observation.ts",
135
131
  "../test/fixtures/half-float-before-control.ts",
136
132
  "../test/fixtures/headless/driftwood-optional-run.ts",
137
133
  "../test/fixtures/headless/driftwood-story-run.ts",
@@ -243,7 +239,6 @@
243
239
  "../test/graph-foliage-normal.test.ts",
244
240
  "../test/graph-instance-transform.test.ts",
245
241
  "../test/graph-optional-attribute.test.ts",
246
- "../test/graph-scene-author-ports.test.ts",
247
242
  "../test/graph-shadow-depth.test.ts",
248
243
  "../test/graph-shadow-offset.test.ts",
249
244
  "../test/graph-toon-caustics.test.ts",
@@ -326,10 +321,7 @@
326
321
  "../test/nine-source-rows.test.ts",
327
322
  "../test/nine-verb-tape.test.ts",
328
323
  "../test/no-base64.test.ts",
329
- "../test/no-generated-import.test.ts",
330
324
  "../test/no-shard-runtime.test.ts",
331
- "../test/open-plots-capture.test.ts",
332
- "../test/open-plots-config.test.ts",
333
325
  "../test/original-script-order.test.ts",
334
326
  "../test/output-runtime.test.ts",
335
327
  "../test/packed-specimen-files.test.ts",
@@ -347,9 +339,7 @@
347
339
  "../test/pine-native-story-admission.test.ts",
348
340
  "../test/pine-posed-tier-loading.test.ts",
349
341
  "../test/pine-product-reads.test.ts",
350
- "../test/platform-build-tools.test.ts",
351
342
  "../test/platform-file-families.test.ts",
352
- "../test/platform-namespace-reach.test.ts",
353
343
  "../test/platform-output-reader.test.ts",
354
344
  "../test/platform-runtime-closure.test.ts",
355
345
  "../test/polearm-decision.test.ts",
@@ -478,7 +468,6 @@
478
468
  "../test/splat-family-props.test.ts",
479
469
  "../test/stealth-crouch-kernel.test.ts",
480
470
  "../test/stealth-detection.test.ts",
481
- "../test/sunscar-generation-inputs.test.ts",
482
471
  "../test/taming-binding-order.test.ts",
483
472
  "../test/taming-guest-legacy.test.ts",
484
473
  "../test/taming-world-actions.test.ts",
@@ -495,7 +484,6 @@
495
484
  "../test/titan-world-commands.test.ts",
496
485
  "../test/uniform-tile-grid.test.ts",
497
486
  "../test/view-author-metadata.test.ts",
498
- "../test/vite-boot-modules.test.ts",
499
487
  "../test/vitest-module-cache.test.ts",
500
488
  "../test/wet-product-loans.test.ts",
501
489
  "../test/whole-library-cache.test.ts",
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2019-2026 Binomial LLC
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.