@wildshard/shard-format 0.78.0 → 0.79.2

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 (240) hide show
  1. package/corpus/exports/brasscap-mesa/blobs/image/8f4621531cafc78dd6e1211fa2441b835ede01a6b14a35f39a2e633cfe10ede6.jpg +0 -0
  2. package/corpus/exports/brasscap-mesa/blobs/image/c98b52cc1a047d0ed997d3cfe7f814503226cab40d6b82954b915c8962d70509.jpg +0 -0
  3. package/corpus/exports/brasscap-mesa/blobs/image/e7e026a984ab02e61c6c4def9e31286af0623643be44f85646db53f2413ad6b1.jpg +0 -0
  4. package/corpus/exports/brasscap-mesa/cook.json +1 -1
  5. package/corpus/exports/brasscap-mesa/mounts/shardfiles/brasscap-mesa/discovery.json +1 -1
  6. package/corpus/exports/brasscap-mesa/sections/economy/loot.json +1 -1
  7. package/corpus/exports/brasscap-mesa/sections/ui/level.json +1 -1
  8. package/corpus/exports/brasscap-mesa/sections/world/props.json +1 -1
  9. package/corpus/exports/brasscap-mesa/sections/world/tiles.json +1 -1
  10. package/corpus/exports/brasscap-mesa/shard.json +1 -1
  11. package/corpus/exports/brasscap-mesa/validation.json +1 -1
  12. package/corpus/exports/brasscap-mesa.pin.json +4 -4
  13. package/package.json +7 -7
  14. package/src/cli/corpus-command.ts +72 -20
  15. package/src/cli/corpus-live.ts +237 -0
  16. package/src/cli/corpus-pins.ts +15 -4
  17. package/src/cli/corpus.ts +17 -4
  18. package/src/cli/main.ts +10 -3
  19. package/src/format/assetAdmission.ts +4 -1
  20. package/src/format/cook-preparation.ts +10 -4
  21. package/src/format/deprecations.ts +0 -22
  22. package/src/format/empty-shardfile.ts +1 -1
  23. package/src/format/fieldPresentation.ts +32 -13
  24. package/src/format/format-migrate.ts +16 -20
  25. package/src/format/format-migration-deleted.ts +77 -0
  26. package/src/format/format-migrations.ts +32 -0
  27. package/src/format/incoming-sent.ts +36 -0
  28. package/src/format/incoming.ts +55 -0
  29. package/src/format/minimap.ts +2 -3
  30. package/src/format/outputIndex.ts +1 -8
  31. package/src/format/postGraphLook.ts +4 -2
  32. package/src/format/shardSections.ts +1 -6
  33. package/src/format/shardfile-stream-admit.ts +2 -5
  34. package/src/format/shardfile-stream.ts +3 -3
  35. package/src/format/shardfileValidation.ts +5 -5
  36. package/src/format/version.ts +5 -16
  37. package/corpus/exports/brasscap-mesa/blobs/image/12ce848ef3a649f14ca1ba4b065a6f8b2e8ef8e9a3ff3a0b158b776e8c697231.jpg +0 -0
  38. package/corpus/exports/brasscap-mesa/blobs/image/827ad43db4e05bbb10ba144f5b8b45400c6dd30b4ccc3387a54c6a97cfa81f89.jpg +0 -0
  39. package/corpus/exports/brasscap-mesa/blobs/image/ec26086da4b778a8f9afe7199e93cfc77ebf136bf394e7865a882a8963afa229.jpg +0 -0
  40. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/02da0052111419cdff3a29f1c6d0ff0d223e0b53a956c16c65ed63d87928b3b9.bin +0 -0
  41. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/068a121cd780a2a9164416f6e4fde44834f2d2f3a5ed65c174e480b7a2d3f627.bin +0 -0
  42. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/07d5a061cd338618e528747d61eb2b17709510550ef0ba40a58b67761b200f3f.bin +0 -0
  43. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/08b1b9ab7c732d7dbe8f961f1fc40e84042d1fe42544f55c9ee89f04dffe3d5e.bin +0 -0
  44. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/18bdbdc704cb8aac93435d208dfe0e9a44374efb73afa3bc58c631650e0a2995.bin +0 -0
  45. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/1a210fcddcb9749ecb1c244837e8e37ea69b038faae191dee6bbbde228d31a18.bin +0 -0
  46. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/264ab9ede386504a5ff9814b0a620b879cb29f3f45a80bcfc0c80b8ee236e364.bin +0 -0
  47. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/2b6fbea4c846a23cf4802ebdb1804e128896c8dd87e5d23509db6729e5b1be4e.bin +0 -0
  48. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/2d755cc635dee90b0f3958272855a821e2dd605a189a5ffcd480a325155fe84f.bin +0 -0
  49. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/2d76c6829fe77fb55cc2541e4aca5ce5d18b68508dcdf3fa957fe4a83b9c887a.bin +0 -0
  50. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/32c15d55a4548501740593807c5007217c72dbc10a21f4613ef5e0cee0b90d1d.bin +0 -0
  51. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/3539b362cf3a61a79e92e113ebf8f255d0b25ec2d2edd816498879de831fa912.bin +0 -0
  52. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/3af38a2377bc89f6c6c82ee1e83df674efa2793db932b50a23bbce7ec9cd7941.bin +0 -0
  53. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/3c176a7a0d0850fdcee790ed2641216fc3d1cba025928de3d7784262bb9b6f4a.bin +0 -0
  54. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/3fb37e488aa81a64c997b3dd09794e988994c6ee3476c6d653ced1670888dd8e.bin +0 -0
  55. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/424dcc7b320317bf3f2c62c8f19bc80564035127eb38ab811e460934d57ea38c.bin +0 -0
  56. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/499cc7863851f97d79dbfc64e76f9e6978894199184a0d80ebdca13066a8fa78.bin +0 -0
  57. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/4a41356041e38f0a327a917a8a09454cf113c9136434adfae25a81df1d7ff95b.bin +0 -0
  58. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/4b7217644763b00c6ee6ae3f176c726914966fb791654a385c0638bb998b6dd2.bin +0 -0
  59. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/4cf11c7177bb082f335e5bc7a037ef00d09355c5ad8263e284a96a92630ff9ae.bin +0 -0
  60. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/536b37cab5a1edd6a68a71d122aab6898e44c68a5470a4ca8a9a72c57c02e034.bin +0 -0
  61. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/55d3628b27e0fcea383df86c434a69761439f51a013359f0829675b07ee2b616.bin +0 -0
  62. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/5652ba90fbd8146edaf42660329cc81798752f2f60b8d03956714460d5ba75ef.bin +0 -0
  63. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/57459ab5e2ac6cec65ef5e59789dd82b9666d8573df41c4a398df603f1fa456f.bin +0 -0
  64. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/5915b6aed21bba49b841b45574f44f60d26b44810bd68ac70b22f3f3b0dab072.bin +0 -0
  65. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/59602e887700e99c404799954afb03a497e4f6d0598ad7a62cfcfa7e1b707836.bin +0 -0
  66. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/5c4a5c7a8e99253561105c5fa3faf14326cf0c23adc32bfe7f8aea4dbf4b05f9.bin +0 -0
  67. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/61822a412cfd461f4f7ae50bc13f242a0fca6c5c58fca72247b596ab037a1c85.bin +0 -0
  68. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/673b7712908966718341508469b39cd49e6461f690ca3c23d4621ea7eba0cc30.bin +0 -0
  69. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/69394a49520f84f6dccc1655f1c89eedc913ac53a7e48ac5dc1bff4141639bb4.bin +0 -0
  70. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/6e58a53a6c2acd50f9f80fd270ca034c54421df8a587e181101b4b75b952ac5d.bin +0 -0
  71. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/75dc9f23ee71e11a3a0c67eb77275d741a281c3398808fb42efd52b9973d5d04.bin +0 -0
  72. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/76c6a403293a68ed3d6ad14e9dd27b555c3a1ef4a3cae12a2bd2ab3e67c5ad02.bin +0 -0
  73. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/82b73ce3a18e47092840fc029177861887aa2867b007248ac79ffa20895a4491.bin +0 -0
  74. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/8430d9bbfb4e2b678c54595ad95555c3c73d0e1b144a4d6e29664ccb4371baf0.bin +0 -0
  75. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/848d4492508689f5c4a224079dca8809e872e33b8f2635c9f16da5dc21beed16.bin +0 -0
  76. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/84941ac387a0d245ea20bd663ff4ee78c5315bedfa058ada0961765aff61acaf.bin +0 -0
  77. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/859b7bbcf048a4525db0548b8f5afef83bfc4870914767153f44c05e83436ec5.bin +0 -0
  78. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/87b68b45680a57c796eed9183211b03335a6ad6737372b3ef476c2cf42efa631.bin +0 -0
  79. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/8cef94308af8d09670e4c99a3b6c3d9280b7a27d386653a3bd7d482b2cdf2b65.bin +0 -0
  80. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/8e564bce3f352c2186ae09ed7fbca9739c10abc46fd5f6893c68cb47178bd2b4.bin +0 -0
  81. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/8f89e79d0fb9b04d48c7b5719e1d024161c6a2119835b18dcb193ff51123a9be.bin +0 -0
  82. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/8fe511ad48656a0b10801100b9100edab1be605a8a182dc5c834d298bf0d9166.bin +0 -0
  83. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/900bda6562d06fafda54c495e325d57dbb7931813178ee207449c5519d89d537.bin +0 -0
  84. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/997b1b7d9210bfa77dc71f16a57c6bd66bc7c648686dc2a2666044c95042978a.bin +0 -0
  85. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/a111bb4c6cec536bcf57dddc744b871ac9f3d094ce459c16243adca19020db77.bin +0 -0
  86. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/a2208bf899e6c84942eef9fbab569d597f574551afae5864f1953c6a517af068.bin +0 -0
  87. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/a302ddb2598a72ece53780094b64ad861dc68e6913d8a1ea08f5d141736e2986.bin +0 -0
  88. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/afcbc671326d0dac14e460662c1f793335877ba53cc965f67c0306833b087e7c.bin +0 -0
  89. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/b657159e6a28c801a211024f96a7ef60e388ce928a7b41ae3d7555a6f8fd2e3e.bin +0 -0
  90. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/be6bbc6cd15ba525790075252ba0ed0b28dae5cfbfa118c00dfb9ea1ab95e668.bin +0 -0
  91. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/c1360e3cbe6b3dc8894bc66c359853854c2e5adeac9c7cd5ba63f5db448be601.bin +0 -0
  92. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/c7983018dbf8e384ddf73191f526075bd0b29907061ab17642ecdc18ea7b9897.bin +0 -0
  93. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/cea66f27ca60ea173ee0a2bcd91964dc2638eb5657250fe3aa5bd3e41faf8730.bin +0 -0
  94. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/d052be571a0f3ab69926951f3a4c9d63f05da2ca6d91e5963dd63e04ecb515de.bin +0 -0
  95. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/d162a993a60dd682c8c21dd111429d84d8d30413a000cf481cf98d06ca83e706.bin +0 -0
  96. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/d238c3d3d054911714ebe30dafc99e6ad13925b7a600ba9f8d532d0f515f3f5a.bin +0 -0
  97. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/d9a98cfe2865a9bb0e94f35c735a570b0625b58f890a6b1f6e14fab2401f0af2.bin +0 -0
  98. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/dc27ae954b7b8a13a9459d6ca6ef2997f662715ff5f5453ea0da169f141748b8.bin +0 -0
  99. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/df8e7486d4d8d11b9b1ae751802292bb3f61b4520f30f9b5eba38764128c965e.bin +0 -0
  100. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/e3ff1fd41cf76668b8e1927c0c2e4056b63a293ebbd300a8f1b1d27d87786271.bin +0 -0
  101. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/e45b7344d373b3ef4a94f560cf4e17b1eb3b8cd89d1e552fc9be11d6b7b546f0.bin +0 -0
  102. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/eb14eb898224d5d81d1012bec54f2b79f9377dc60fa1d01e49b4c3e148292d77.bin +0 -0
  103. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/ed0e0101a3d91a3a615f9e78ef36f7deb8bb0eab0f133241d621925d0b596599.bin +0 -0
  104. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/f722e3a3b1f0a3d7b9f7d7c66c46d8c87245de5f8eece055daf95c7086f8c267.bin +0 -0
  105. package/corpus/legacy/brasscap-mesa-ss3/blobs/bin/f76013aedfd810f136fa689a151024bcb942687ef42ae7edf1fd3513ac4e22c7.bin +0 -0
  106. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/0547e63693282614673b13bade4c08eb772020757b131b7c80f2077873aab70e.glb +0 -0
  107. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/0cf89e9b1824440d213c8e9e33fb357734b7241b4c7eedaba3df7f8306e05425.glb +0 -0
  108. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/0e01060e3a507ffff6461c50b5c565c71380a6a67d9760cdd7a09afd3e30b584.glb +0 -0
  109. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/0ef326c5cf5292cd15b48b851460ee8156f51e0a5b62457c8f1f3c53c41665a3.glb +0 -0
  110. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/1112ff4a3f69db3b62c6d2d6ae021e7c43ce0ca1feb1d3130376881decb3c6b0.glb +0 -0
  111. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/11357cb8a0670fdc9a03780dd79a31e0aa7a0537786cbf66491bae1722d6feb3.glb +0 -0
  112. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/133f639cfa837bc5da7915121c71fd32281660c2aaa0248bd59bde47e7faf8bc.glb +0 -0
  113. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/16812a090136b6678633aa4db03e4187920ae0aca776ad6da373c600cd341972.glb +0 -0
  114. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/17e63980d7934cfe1d2823d78652af338fe9f0c2170106cd4506a2c4e7f4716f.glb +0 -0
  115. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/199224cafc86904bdefec8f01d131d7ca3e076a22b689bfc6a26dd20373cf286.glb +0 -0
  116. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/1a5c8cf223a2f64715ea5eaf14d97a0131f9ebdef4388dc4823dcfa57817724c.glb +0 -0
  117. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/1b0ec09ad6718149d7ca514136cee09b04c96425f03af0559fd097112aa0daa5.glb +0 -0
  118. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/1dc5a40152ec7b6236e954db1b04ffea1dd75d57b2e178d83ac33b653a4466fb.glb +0 -0
  119. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/1e5024bbb1284b2ed39bbca2d0ade3acb5be2a2c6ba643291f269b76098c7f79.glb +0 -0
  120. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/1e607ec4760a9caa60ac33fe7c64ab932c7bf69d323182cd42270580df7a8c6d.glb +0 -0
  121. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/1e7635972e13468ffcbb1608f1d12559b066b4533912be2c35e3db07fd4a679d.glb +0 -0
  122. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/1f03db3a38a21b8d4d02f8ede30e1303cd8d4c426815326a88f45a268b17a492.glb +0 -0
  123. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/24f9098ec8408090fbb2b5ffb9febefc17f0e2866032166c706958f4e8a8bbe4.glb +0 -0
  124. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/2624abb7bf45618be40f8c3221445179fca44f7321baff415fdf7ddd5e0afc6f.glb +0 -0
  125. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/27fc3bad6db6e2b5ade5d242867d882362482ddf19c647edef821afc27d52dc2.glb +0 -0
  126. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/29959bdb5b04a9180e88ec1ed976bae55424d3dc50985f13c0f85bae11ae79ee.glb +0 -0
  127. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/308cbce2b1b6360f9a2dc275d0bc28be1966fc3ff5e0a58844405ba867f3f668.glb +0 -0
  128. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/3674d7be969755aaffa368e57b8d1bb743bc98e766a57948859d54fdc7d2c066.glb +0 -0
  129. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/3736ca95c9c40b30e21302ae6c89148d8ac09264dfbb7e5764b08c265a73ba3c.glb +0 -0
  130. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/3f519c7c7482307cae908b27602dcb7716e2da4b651eff39c4c37103998d18fa.glb +0 -0
  131. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/4767636d5554b60c94b447b87b77fc1456a2b9af42bfe08585389d27f306dd5e.glb +0 -0
  132. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/4a3242773b3a73a73ee746a0cdf30c8d6d904bb4406dfdf9822dcd535d6ae308.glb +0 -0
  133. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/4c7bf3788cba151442d85c3f76553c2e356edf8566ae8243d0a535c9bcde51d0.glb +0 -0
  134. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/4fdf7ee67d12de1cd30c3c2bbd9409032dcab5feb3a7d3977b92c50b1d161afe.glb +0 -0
  135. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/5821f33aa00e9acd2f4c0a29129978ee7006a879d163ce1463ae476031bfabcf.glb +0 -0
  136. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/5a986c3e44fc686a2efe7648c3945bb7b51cf303918381383f21f898dd312cad.glb +0 -0
  137. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/5c32fc1de6d198ed606d3e8c3264319acdd950dab18e8b723fc6332bf2f56aea.glb +0 -0
  138. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/602ce4e8b00a0afbc1a894b65641e48d362ec834a559b9d97a4801473bb01da7.glb +0 -0
  139. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/6180f9f96167522d8cab4de1d52598cecee8d7ee042f48e41669c98cf61c19c3.glb +0 -0
  140. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/6205973ba63f7a554662ba05010d25131bed2d9656de422e2067ca54709d5b3c.glb +0 -0
  141. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/693e556f2165232e8a38b1b2d68676f235ece5705c564992cfa7731426f4d376.glb +0 -0
  142. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/6a46175438bec5527c281b577bd220b6badedf3c74266b997d39e596f83b8853.glb +0 -0
  143. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/6ca1bcad7ea053a259b7f9fc5a7ec388a4cd29d44391d93386ea8b1143d94c21.glb +0 -0
  144. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/6f9bc99656b611890d6acc76ee416f6222ca2d5f62167840b4216a21e020a4c8.glb +0 -0
  145. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/6fb1e7857996662233ab5314fc13f8aa30703f91c04542e352ec17f9dc4fc054.glb +0 -0
  146. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/7028ec39712143a7e9d09d2e1477282b654d0470102ca9d272ac82b23604cb21.glb +0 -0
  147. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/73af65ac86efa61099178f3e7075dcd26d389ee9b9aa3546c18dede10c3dfda1.glb +0 -0
  148. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/73b992b71bd3165ff7701ab1430c075cb5ba9b74e6363d24640377b1011ddc93.glb +0 -0
  149. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/7471261d4df59979ba41a622d93779b66ebecd50353ad433862e603ee65f8748.glb +0 -0
  150. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/76e9a3fcca962c2f900cf79dc1a0851840bd405dc11231f629f784adbcb69d23.glb +0 -0
  151. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/79d2d29e8cd8b642386b5f31429b39bc4d6f13e53107dda00ebc463abf80c79d.glb +0 -0
  152. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/7de66fcfffe4ff108510cbe6bebec44e28ab4b78e98e9c1a38466db5b81881f7.glb +0 -0
  153. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/811fa798cb81ea99488db98e3d3ddea815aac8f6e7493ad04d0176f603978678.glb +0 -0
  154. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/89b277f1636be220ff5658ff1f1c62efe14079d6e1f42efb373fbf0246801533.glb +0 -0
  155. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/905c5fe666d9f6174e987382e47d3f325c5696cf8792d7a4a1dd120a438b8270.glb +0 -0
  156. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/90efe3e05370ee853c0130b98ee82f00b86f7c7104e96b094715187fa49ac16f.glb +0 -0
  157. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/968a7c5cb13014bce00a29d43b344bd6943ff00ae2908abbc6b40a994f1172a1.glb +0 -0
  158. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/9a955b4e69dfa5b38f071099053c1a3684cf85ec2d346420de2853c61768f8cc.glb +0 -0
  159. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/9da2781216a2e482dd8a6ada5ebb43bcf48e0169430e787ac277559cb2ade19a.glb +0 -0
  160. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/9db02aab14a3b52463deadefbf4ba771809941e7fcb137c905955bdc80ec23bd.glb +0 -0
  161. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/a3fe1788cf5d7f260249c722f0e0695a4d55744d1b14be44122377147a296256.glb +0 -0
  162. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/a5c75af8f090d3c95fa46d2be49be5031138d7cd1bae234ae028edf717bf299e.glb +0 -0
  163. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/a771abd40bd337a464c1bd19f841b62e290124faa89b19ec50e85ab36bc740a5.glb +0 -0
  164. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/a94a2ad2ed463a47cdda117df25b06b3cf6be37ddac08594bc5f5d76c7237730.glb +0 -0
  165. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/ad434e4a6490e495994b25f7574a5847a9f7d9c2ca5a2b229a9dfdd2e5e2bb72.glb +0 -0
  166. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/aeae7b05404b852008a7897689e58aacef44a2c3bc0e87d2519ecdb4cb1e3ff5.glb +0 -0
  167. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/b0c0c8a4985f92be3b358a8e703c67957427501882aeee05b4ccd3c7880930d4.glb +0 -0
  168. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/b25174c3cd13eea6e1d9c3104ee5197dc6330129b2f0f7676e8a429900999d9b.glb +0 -0
  169. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/b3eecdec571df96338edf690443394ff859383b4c94f4cf33d42c240006f8543.glb +0 -0
  170. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/b7aa0c61ff9e7411535c7b7b8e587849a92bad00d431171ab16ad47d55db0a53.glb +0 -0
  171. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/b9deef944c22331bc05220d1d6e46412e3cb1246ef041a4405d0cbbd90c2d624.glb +0 -0
  172. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/ba9376e4ac39b809133ab717edb4c88b5219118766db492d7c97534ce119c2ec.glb +0 -0
  173. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/baf338e9c272158b905fb58a712e29410c657a45be2764f1c6c43ca87fd1db48.glb +0 -0
  174. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/bcf68be2df950c4cb42915453df6e0fcb7b7acb4162ddc2c1ed2ad2cefa68ff7.glb +0 -0
  175. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/bd442ac9fbe52b9f2e4ba586670017c3f2d9fedf1cbdec77ef24e9f8b3a183c8.glb +0 -0
  176. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/c142adcf253be43b66f23ede8cea1e8fcfa256ebf53054a1068ace04745718a6.glb +0 -0
  177. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/cfb165a7675d15cee2c490b31095a58f73bace50ccc1e0fdf2c8dc4400f1df27.glb +0 -0
  178. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/d40f2ee59612473e9f687f17a0e203fdb4ba54c7185b05a8d81a433b04f24134.glb +0 -0
  179. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/d50ce95411156a6b6cf386aefa5ee58db659811813f74be74f323e7c5795056f.glb +0 -0
  180. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/d6af418bbde39b4fc7d22a61401d416be7a3fc1214ea2d3f42b4549c392d22ca.glb +0 -0
  181. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/de7222ceeb1f72693dfb7fd1f343798659e03772d77f2b498fd8ebece2d5550a.glb +0 -0
  182. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/e26975b198127ac3b6b4f5c4bc08ad47d6691398feee777743285391cd36d502.glb +0 -0
  183. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/eb96567a266d24be188cb5b08021112f2fad311cbead939d53c5565da11f6265.glb +0 -0
  184. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/ecf66230bf7b68050c0827c2e4caf3de90e46859d291b794faa0dd3816d9dac6.glb +0 -0
  185. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/ed8f067763a4a8adb83d80c8324b2a9668f1061f5f5352f21295e6cc5132386f.glb +0 -0
  186. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/ee507a38772865467736d370791fe73c6aa4d83fe3e7ff4baa156b9cb2894c1c.glb +0 -0
  187. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/eeb89188619132e11973b37d5dfe12d6af95d9fcb47084cebe3a2ed4eb5a7247.glb +0 -0
  188. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/eedc5b62dc6f27d4a089e9f5b282f626129236d3f1689b001e04f8748bf8859c.glb +0 -0
  189. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/f4119b9c6c23435619682b5d247743459e76584b9b0d6c5cb689d8e156906695.glb +0 -0
  190. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/f576047267a0bf9bd4bfc47072ea3d11066345b839953546292da678d1cb4722.glb +0 -0
  191. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/f8cdfb11997d4ccabea88bcdd3924cc8b621b33618b18fe5fbfd286edfc1d87e.glb +0 -0
  192. package/corpus/legacy/brasscap-mesa-ss3/blobs/glb/fce95ecc5db24c903bd46f338e366e2715411465a5efac180e2f0f46397e59de.glb +0 -0
  193. package/corpus/legacy/brasscap-mesa-ss3/blobs/image/0579557f9344df6f2c4b1225e6252e53ab86d417a4c9b504b5c714a08a388e47.jpg +0 -0
  194. package/corpus/legacy/brasscap-mesa-ss3/blobs/image/9e18816a2ec16fbbb1f00f4a39c73ac2cbf6a8cdc17b4c96b1eba4cc9a754dc7.jpg +0 -0
  195. package/corpus/legacy/brasscap-mesa-ss3/blobs/image/eb453c71cfb1f9441eb00b32281f98e226e49d9dcf75c231455575fcdc652222.jpg +0 -0
  196. package/corpus/legacy/brasscap-mesa-ss3/blobs/json/8059b65753f0b38d85b2a7a14848842282c8f14c52ffcc3c83089997d8591765.json +0 -1
  197. package/corpus/legacy/brasscap-mesa-ss3/blobs/json/eaca25036cc30b1cbece326d11b2ceceee1254d7fa72d4141984d16f992af6d5.json +0 -1
  198. package/corpus/legacy/brasscap-mesa-ss3/blobs/wasm/1d6ace79610c4d510b60ad0c52915e42b57797d91f1ef292f60d8a3daec03dd6.wasm +0 -0
  199. package/corpus/legacy/brasscap-mesa-ss3/blobs/wasm/24a4d4c1292677b1c984b5c0d3497ae2929528bf511df475f80cc20945bb08ec.wasm +0 -0
  200. package/corpus/legacy/brasscap-mesa-ss3/blobs/wasm/b86d8afcc269fb063ebf64768fc3787635b65a7409a571115b07be2e4da39733.wasm +0 -0
  201. package/corpus/legacy/brasscap-mesa-ss3/cook.json +0 -1
  202. package/corpus/legacy/brasscap-mesa-ss3/mounts/shardfiles/brasscap-mesa/discovery.json +0 -1
  203. package/corpus/legacy/brasscap-mesa-ss3/sections/actors/creatures.json +0 -1
  204. package/corpus/legacy/brasscap-mesa-ss3/sections/actors/crowds.json +0 -1
  205. package/corpus/legacy/brasscap-mesa-ss3/sections/actors/species.json +0 -1
  206. package/corpus/legacy/brasscap-mesa-ss3/sections/audio/audio.json +0 -1
  207. package/corpus/legacy/brasscap-mesa-ss3/sections/combat/encounters.json +0 -1
  208. package/corpus/legacy/brasscap-mesa-ss3/sections/combat/items.json +0 -1
  209. package/corpus/legacy/brasscap-mesa-ss3/sections/combat/strikes.json +0 -1
  210. package/corpus/legacy/brasscap-mesa-ss3/sections/economy/ledger.json +0 -1
  211. package/corpus/legacy/brasscap-mesa-ss3/sections/economy/loot.json +0 -1
  212. package/corpus/legacy/brasscap-mesa-ss3/sections/look/look.json +0 -1
  213. package/corpus/legacy/brasscap-mesa-ss3/sections/look/materials.json +0 -1
  214. package/corpus/legacy/brasscap-mesa-ss3/sections/quests/quests.json +0 -1
  215. package/corpus/legacy/brasscap-mesa-ss3/sections/sim/client-scripts.json +0 -1
  216. package/corpus/legacy/brasscap-mesa-ss3/sections/sim/hooks.json +0 -1
  217. package/corpus/legacy/brasscap-mesa-ss3/sections/sim/plumbing.json +0 -1
  218. package/corpus/legacy/brasscap-mesa-ss3/sections/sim/scripts.json +0 -1
  219. package/corpus/legacy/brasscap-mesa-ss3/sections/sim/sim.json +0 -1
  220. package/corpus/legacy/brasscap-mesa-ss3/sections/state/migrations.json +0 -1
  221. package/corpus/legacy/brasscap-mesa-ss3/sections/state/state.json +0 -1
  222. package/corpus/legacy/brasscap-mesa-ss3/sections/ui/card.json +0 -1
  223. package/corpus/legacy/brasscap-mesa-ss3/sections/ui/compendium.json +0 -1
  224. package/corpus/legacy/brasscap-mesa-ss3/sections/ui/level.json +0 -1
  225. package/corpus/legacy/brasscap-mesa-ss3/sections/ui/ui.json +0 -1
  226. package/corpus/legacy/brasscap-mesa-ss3/sections/world/collision.json +0 -1
  227. package/corpus/legacy/brasscap-mesa-ss3/sections/world/days.json +0 -1
  228. package/corpus/legacy/brasscap-mesa-ss3/sections/world/edge.json +0 -1
  229. package/corpus/legacy/brasscap-mesa-ss3/sections/world/movers.json +0 -1
  230. package/corpus/legacy/brasscap-mesa-ss3/sections/world/navigation.json +0 -1
  231. package/corpus/legacy/brasscap-mesa-ss3/sections/world/props.json +0 -1
  232. package/corpus/legacy/brasscap-mesa-ss3/sections/world/spawn.json +0 -1
  233. package/corpus/legacy/brasscap-mesa-ss3/sections/world/terrain.json +0 -1
  234. package/corpus/legacy/brasscap-mesa-ss3/sections/world/tiles.json +0 -1
  235. package/corpus/legacy/brasscap-mesa-ss3/sections/world/traversal.json +0 -1
  236. package/corpus/legacy/brasscap-mesa-ss3/sections/world/water.json +0 -1
  237. package/corpus/legacy/brasscap-mesa-ss3/sections/world/weather.json +0 -1
  238. package/corpus/legacy/brasscap-mesa-ss3/shard.json +0 -1
  239. package/corpus/legacy/brasscap-mesa-ss3/validation.json +0 -1
  240. package/corpus/legacy/brasscap-mesa-ss3.pin.json +0 -8
@@ -23,7 +23,10 @@ import {
23
23
  } from './format-migration-envelope.ts'
24
24
  import {
25
25
  FORMAT_MIGRATIONS,
26
+ chainIdOf,
26
27
  checkMigrations,
28
+ deletedFieldsIn,
29
+ mendDeletedFields,
27
30
  versionBelow,
28
31
  } from './format-migrations.ts'
29
32
  import { validateShardfileFolder } from './shardfileValidation.ts'
@@ -61,7 +64,7 @@ interface MigratedShardfile {
61
64
  readonly from: string
62
65
  /** The copy's format version. */
63
66
  readonly to: string
64
- /** Migration ids, in the order they ran. */
67
+ /** Migration ids, in the order they ran, then each deleted field the copy was mended of (`format-migration-deleted.ts`). */
65
68
  readonly applied: readonly string[]
66
69
  /** Hash over every registered step and the runner (`migrated_shardfiles.chain_id`). */
67
70
  readonly chainId: string
@@ -78,21 +81,8 @@ interface Admitted {
78
81
  readonly from: string
79
82
  }
80
83
 
81
- const RUNNER = 1
82
84
  const NONE = 0
83
85
 
84
- function chainId(migrations: readonly FormatMigration[], hash: Hash): string {
85
- const steps = migrations.map(
86
- (step: Readonly<FormatMigration>): JsonRecord => ({
87
- id: step.id,
88
- to: step.to,
89
- touches: step.touches,
90
- affects: [...step.affects],
91
- }),
92
- )
93
- return hash(validationSourceBytes({ runner: RUNNER, migrations: steps }))
94
- }
95
-
96
86
  /** Refuse a format above the reader or below the floor. */
97
87
  function checkWindow(from: unknown, to: string): string {
98
88
  if (typeof from !== 'string') {
@@ -183,7 +173,7 @@ function runs(
183
173
  )
184
174
  }
185
175
 
186
- /** Run the steps, then rebuild the inventory around what they changed. */
176
+ /** Run the steps, mend the deleted fields, then rebuild the inventory around what they changed. */
187
177
  function writeCopy(
188
178
  files: Files,
189
179
  shard: MigratingShard,
@@ -193,6 +183,7 @@ function writeCopy(
193
183
  steps: readonly FormatMigration[]
194
184
  hash: Hash
195
185
  onStep: MigrateOptions['onStep']
186
+ mended: string[]
196
187
  }>,
197
188
  ): Map<string, Uint8Array> {
198
189
  const { index } = shard
@@ -206,6 +197,7 @@ function writeCopy(
206
197
  ),
207
198
  ])
208
199
  runSteps(shard, plan.steps, plan.onStep)
200
+ plan.mended.push(...mendDeletedFields(shard))
209
201
  const out = new Map(
210
202
  [...files].filter(
211
203
  ([path]: readonly [string, Uint8Array]): boolean => !gone.has(path),
@@ -246,12 +238,12 @@ function migrateShardfile(
246
238
  sections: readSections(files, admitted.index),
247
239
  mounts,
248
240
  }
249
- const window = { from: admitted.from, to }
250
241
  const steps = migrations.filter((step: Readonly<FormatMigration>): boolean =>
251
- runs(step, shard, window),
242
+ runs(step, shard, { from: admitted.from, to }),
252
243
  )
244
+ const mended: string[] = []
253
245
  const copy =
254
- steps.length === NONE
246
+ steps.length === NONE && deletedFieldsIn(shard).length === NONE
255
247
  ? files
256
248
  : writeCopy(files, shard, {
257
249
  cook: admitted.cook,
@@ -259,13 +251,17 @@ function migrateShardfile(
259
251
  steps,
260
252
  hash: options.hash,
261
253
  onStep: options.onStep,
254
+ mended,
262
255
  })
263
256
  return {
264
257
  files: copy,
265
258
  from: admitted.from,
266
259
  to: String(declaredShardfileFormat(admitted.index)),
267
- applied: steps.map((step: Readonly<FormatMigration>): string => step.id),
268
- chainId: chainId(migrations, options.hash),
260
+ applied: [
261
+ ...steps.map((step: Readonly<FormatMigration>): string => step.id),
262
+ ...mended,
263
+ ],
264
+ chainId: chainIdOf(migrations, options.hash),
269
265
  digest: options.hash(copy.get(INDEX) ?? new Uint8Array()),
270
266
  preparation: preparationOf(admitted.cook, steps),
271
267
  }
@@ -0,0 +1,77 @@
1
+ // oxlint-disable typescript/prefer-readonly-parameter-types -- a mend edits the shard it is handed, in place
2
+ /** FORMAT-PRUNE FP33 and FP44 (J486's delete at zero users): fields the shard schema no longer knows. Their own steps
3
+ * drop or rename them on the way up, but a copy written below that step (a channel still on an older format, or a
4
+ * made-up fixture carried to one) would keep them, and no reader could read it. So the chain mends every copy it
5
+ * writes, whatever its target, into the one way that target already admits: `requires` with no `sdk` (optional in
6
+ * every format), the old pointer as `shardfile` (FP8's rename, read since 0.1.0.1). A mend never writes the version. */
7
+ import { dropRequiresSdk } from './format-migration-envelope.ts'
8
+ import { OLD_POINTER, shardfilePointer } from './format-migration-prune.ts'
9
+
10
+ import type { MigratingShard } from './format-migrations.ts'
11
+
12
+ /** One deleted field: what finds it in a copy and what mends it. */
13
+ interface DeletedField {
14
+ readonly id: string
15
+ readonly carries: (shard: Readonly<MigratingShard>) => boolean
16
+ readonly mend: (shard: MigratingShard) => void
17
+ }
18
+
19
+ function isRecord(value: unknown): value is Record<string, unknown> {
20
+ return typeof value === 'object' && value !== null && !Array.isArray(value)
21
+ }
22
+
23
+ /** Whether any object under `value` holds `key`. */
24
+ function holds(value: unknown, key: string): boolean {
25
+ if (Array.isArray(value)) {
26
+ return value.some((item: unknown): boolean => holds(item, key))
27
+ }
28
+ return (
29
+ isRecord(value) &&
30
+ (Object.hasOwn(value, key) ||
31
+ Object.values(value).some((item: unknown): boolean => holds(item, key)))
32
+ )
33
+ }
34
+
35
+ const DELETED_FIELDS: readonly DeletedField[] = [
36
+ {
37
+ id: 'fp33-delete-requires-sdk',
38
+ carries: (shard: Readonly<MigratingShard>): boolean => {
39
+ const { requires } = shard.index
40
+ return isRecord(requires) && Object.hasOwn(requires, 'sdk')
41
+ },
42
+ mend: dropRequiresSdk.apply,
43
+ },
44
+ {
45
+ id: 'fp44-delete-grid-pointer',
46
+ carries: (shard: Readonly<MigratingShard>): boolean =>
47
+ [...shard.sections.values(), ...shard.mounts.values()].some(
48
+ (value: unknown): boolean => holds(value, OLD_POINTER),
49
+ ),
50
+ mend: shardfilePointer.apply,
51
+ },
52
+ ]
53
+
54
+ /** The deleted fields `shard` still carries. */
55
+ function deletedFieldsIn(shard: Readonly<MigratingShard>): readonly string[] {
56
+ return DELETED_FIELDS.filter((field: DeletedField): boolean =>
57
+ field.carries(shard),
58
+ ).map((field: DeletedField): string => field.id)
59
+ }
60
+
61
+ /** Mend each deleted field `shard` still carries; the ids of those it mended. */
62
+ function mendDeletedFields(shard: MigratingShard): readonly string[] {
63
+ const mended: string[] = []
64
+ for (const field of DELETED_FIELDS) {
65
+ if (field.carries(shard)) {
66
+ field.mend(shard)
67
+ mended.push(field.id)
68
+ }
69
+ }
70
+ return mended
71
+ }
72
+
73
+ const DELETED_FIELD_IDS: readonly string[] = DELETED_FIELDS.map(
74
+ (field: DeletedField): string => field.id,
75
+ )
76
+
77
+ export { DELETED_FIELD_IDS, deletedFieldsIn, mendDeletedFields }
@@ -1,3 +1,4 @@
1
+ import { DELETED_FIELD_IDS } from './format-migration-deleted.ts'
1
2
  // oxlint-disable typescript/prefer-readonly-parameter-types -- a step edits the shard it is handed, in place
2
3
  /** The migration chain's registry (SHARD-COMPAT CP1, J486). A migration is one pure, data-only step that rewrites an
3
4
  * older shard file's JSON to a newer format version. It is not a save migration (`migrations.ts`) and not a catalogue
@@ -22,6 +23,7 @@ import {
22
23
  schemaSource,
23
24
  shardfilePointer,
24
25
  } from './format-migration-prune.ts'
26
+ import { validationSourceBytes } from './validationReceipt.ts'
25
27
  import {
26
28
  SHARDFILE_VERSIONS,
27
29
  compareShardfileVersions,
@@ -144,10 +146,40 @@ function checkMigrations(migrations: readonly FormatMigration[]): void {
144
146
  }
145
147
  }
146
148
 
149
+ /** The runner's own version: a change in how it runs the steps changes every chain id. */
150
+ const RUNNER = 1
151
+
152
+ /** Hash over every registered step, the deleted fields the runner mends and the runner (`migrated_shardfiles.chain_id`). */
153
+ function chainIdOf(
154
+ migrations: readonly FormatMigration[],
155
+ hash: (bytes: Uint8Array) => string,
156
+ ): string {
157
+ const steps = migrations.map(
158
+ (step: Readonly<FormatMigration>): Record<string, unknown> => ({
159
+ id: step.id,
160
+ to: step.to,
161
+ touches: step.touches,
162
+ affects: [...step.affects],
163
+ }),
164
+ )
165
+ return hash(
166
+ validationSourceBytes({
167
+ runner: RUNNER,
168
+ migrations: steps,
169
+ deleted: DELETED_FIELD_IDS,
170
+ }),
171
+ )
172
+ }
173
+
147
174
  export {
148
175
  FORMAT_MIGRATIONS,
176
+ chainIdOf,
149
177
  checkMigrations,
150
178
  type FormatMigration,
151
179
  type MigratingShard,
152
180
  versionBelow,
153
181
  }
182
+ export {
183
+ deletedFieldsIn,
184
+ mendDeletedFields,
185
+ } from './format-migration-deleted.ts'
@@ -0,0 +1,36 @@
1
+ /** FORMAT-PRUNE FP60: what an incoming original's index carried before `incoming.ts` mended it. A published client
2
+ * declared its hashes (the source hash, the cook preparation's input hash) over the index as it sent it, `requires.sdk`
3
+ * included, so each check also accepts the index as sent. A leaf: `outputIndex.ts` reaches the preparation check, and
4
+ * this imports nothing. */
5
+
6
+ /** Each parsed incoming index whose `requires.sdk` was mended away, with the value the client sent. */
7
+ const SENT_SDK = new WeakMap<object, unknown>()
8
+
9
+ /** Remember the `requires.sdk` the client sent with `index`. */
10
+ function rememberSentSdk(index: object, sdk: unknown): void {
11
+ SENT_SDK.set(index, sdk)
12
+ }
13
+
14
+ /** The `requires.sdk` the client sent with `index`, when it was mended away. */
15
+ function sentSdkOf(index: object): unknown {
16
+ return SENT_SDK.get(index)
17
+ }
18
+
19
+ /** `value` with the `requires.sdk` its client sent. */
20
+ function withSentSdk(
21
+ value: Readonly<{ requires?: object }>,
22
+ sdk: unknown,
23
+ ): object {
24
+ return { ...value, requires: { ...value.requires, sdk } }
25
+ }
26
+
27
+ /** `value` as checked, then, when its client sent a `requires.sdk` that was mended away, as the client hashed it. */
28
+ function sentForms(
29
+ value: Readonly<{ requires?: object }>,
30
+ index: object,
31
+ ): readonly object[] {
32
+ const sdk = SENT_SDK.get(index)
33
+ return sdk === undefined ? [value] : [value, withSentSdk(value, sdk)]
34
+ }
35
+
36
+ export { rememberSentSdk, sentForms, sentSdkOf }
@@ -0,0 +1,55 @@
1
+ /** FORMAT-PRUNE FP60: an incoming original, mended of each deleted field before its strict parse. A published client
2
+ * still sends what its own format required: `@wildshard/upload` 0.4.22 (the oldest supported) checks with format 0.63.0
3
+ * and 0.4.25 with 0.66.0, both needing `requires.sdk`, and format 0.79.1's strict index refused every such upload
4
+ * ("Invalid key: Expected never but received sdk"). The stored bytes keep the field; the chain mends each copy it
5
+ * writes (`format-migration-deleted.ts`). Both validators read an original's index and sections through here, and check
6
+ * its declared source hash here: the client hashed `requires` as it sent it, `sdk` included. */
7
+ import { mendDeletedFields } from './format-migration-deleted.ts'
8
+ import { rememberSentSdk, sentForms } from './incoming-sent.ts'
9
+ import { parseOutputIndex, validateOutputSection } from './outputIndex.ts'
10
+ import { writtenSourceBytes } from './save-revision.ts'
11
+
12
+ import type { OutputIndex } from './outputIndex.ts'
13
+
14
+ function isRecord(value: unknown): value is Record<string, unknown> {
15
+ return typeof value === 'object' && value !== null && !Array.isArray(value)
16
+ }
17
+
18
+ /** `shard.json` as uploaded: its deleted fields mended in place (`requires.sdk`), then parsed strictly. */
19
+ function parseIncomingIndex(index: unknown): OutputIndex {
20
+ const requires = isRecord(index) ? index['requires'] : undefined
21
+ const sdk = isRecord(requires) ? requires['sdk'] : undefined
22
+ if (isRecord(index)) {
23
+ mendDeletedFields({ index, sections: new Map(), mounts: new Map() })
24
+ }
25
+ const parsed = parseOutputIndex(index)
26
+ if (sdk !== undefined) {
27
+ rememberSentSdk(parsed, sdk)
28
+ }
29
+ return parsed
30
+ }
31
+
32
+ /** A section as uploaded: its deleted fields mended in place (the old grid pointer becomes `shardfile`), then
33
+ * validated strictly. */
34
+ function validateIncomingSection(name: string, value: unknown): void {
35
+ const sections = new Map([[name, value]])
36
+ mendDeletedFields({ index: {}, sections, mounts: new Map() })
37
+ validateOutputSection(name, value)
38
+ }
39
+
40
+ /** Whether `index`'s declared source hash covers `shard` as admitted, or as its client hashed it: with the
41
+ * `requires.sdk` it sent (`parseIncomingIndex`). */
42
+ function declaredSourceMatches(
43
+ shard: Readonly<{ requires?: object }>,
44
+ // oxlint-disable-next-line typescript/prefer-readonly-parameter-types -- valibot's output type, only read
45
+ index: OutputIndex,
46
+ hash: (bytes: Readonly<Uint8Array>) => string,
47
+ ): boolean {
48
+ return sentForms(shard, index).some(
49
+ (source: object): boolean =>
50
+ hash(writtenSourceBytes(source, index.formatVersion)) ===
51
+ index.build.sourceHash,
52
+ )
53
+ }
54
+
55
+ export { declaredSourceMatches, parseIncomingIndex, validateIncomingSection }
@@ -273,12 +273,12 @@ const levelAudio = v.strictObject({ambience: text, score: text, catalogue:v.exac
273
273
  const levelSpawn = v.strictObject({ x: number, y: v.exactOptional(number), z: number, yaw: number });
274
274
  const weaponPicker = v.picklist(['crossbow', 'sword', 'custom']);
275
275
  const mapImage = v.exactOptional(image);
276
- export const ManifestMetadataSchema: v.StrictObjectSchema<{ readonly bindings: v.GenericSchema<ManifestMetadataInput['bindings'], ManifestMetadata['bindings']>; readonly boot: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['boot'], undefined>, Exclude<ManifestMetadata['boot'], undefined>>, undefined>; readonly gridShardfile: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['gridShardfile'], undefined>, Exclude<ManifestMetadata['gridShardfile'], undefined>>, undefined>; readonly shardfile: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['shardfile'], undefined>, Exclude<ManifestMetadata['shardfile'], undefined>>, undefined>; readonly ground: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['ground'], undefined>, Exclude<ManifestMetadata['ground'], undefined>>, undefined>; readonly groundColour: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['groundColour'], undefined>, Exclude<ManifestMetadata['groundColour'], undefined>>, undefined>; readonly world: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['world'], undefined>, Exclude<ManifestMetadata['world'], undefined>>, undefined>; readonly boundary: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['boundary'], undefined>, Exclude<ManifestMetadata['boundary'], undefined>>, undefined>; readonly cellGround: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['cellGround'], undefined>, Exclude<ManifestMetadata['cellGround'], undefined>>, undefined>; readonly hoverSpeedClass: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['hoverSpeedClass'], undefined>, Exclude<ManifestMetadata['hoverSpeedClass'], undefined>>, undefined>; readonly uses: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['uses'], undefined>, Exclude<ManifestMetadata['uses'], undefined>>, undefined>; readonly loadout: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['loadout'], undefined>, Exclude<ManifestMetadata['loadout'], undefined>>, undefined>; readonly species: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['species'], undefined>, Exclude<ManifestMetadata['species'], undefined>>, undefined>; readonly encounters: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['encounters'], undefined>, Exclude<ManifestMetadata['encounters'], undefined>>, undefined>; readonly fight: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['fight'], undefined>, Exclude<ManifestMetadata['fight'], undefined>>, undefined>; readonly creatures: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['creatures'], undefined>, Exclude<ManifestMetadata['creatures'], undefined>>, undefined>; readonly tiers: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['tiers'], undefined>, Exclude<ManifestMetadata['tiers'], undefined>>, undefined>; readonly loot: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['loot'], undefined>, Exclude<ManifestMetadata['loot'], undefined>>, undefined>; readonly hud: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['hud'], undefined>, Exclude<ManifestMetadata['hud'], undefined>>, undefined>; readonly bag: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['bag'], undefined>, Exclude<ManifestMetadata['bag'], undefined>>, undefined>; readonly regionalSimCost: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['regionalSimCost'], undefined>, Exclude<ManifestMetadata['regionalSimCost'], undefined>>, undefined>; readonly spawns: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['spawns'], undefined>, Exclude<ManifestMetadata['spawns'], undefined>>, undefined>; readonly audio: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['audio'], undefined>, Exclude<ManifestMetadata['audio'], undefined>>, undefined>; readonly api: v.GenericSchema<ManifestMetadataInput['api'], ManifestMetadata['api']>; readonly slug: v.GenericSchema<ManifestMetadataInput['slug'], ManifestMetadata['slug']>; readonly order: v.GenericSchema<ManifestMetadataInput['order'], ManifestMetadata['order']>; readonly status: v.GenericSchema<ManifestMetadataInput['status'], ManifestMetadata['status']>; readonly shardSelect: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['shardSelect'], undefined>, Exclude<ManifestMetadata['shardSelect'], undefined>>, undefined>; readonly name: v.GenericSchema<ManifestMetadataInput['name'], ManifestMetadata['name']>; readonly label: v.GenericSchema<ManifestMetadataInput['label'], ManifestMetadata['label']>; readonly seed: v.GenericSchema<ManifestMetadataInput['seed'], ManifestMetadata['seed']>; readonly biome: v.GenericSchema<ManifestMetadataInput['biome'], ManifestMetadata['biome']>; readonly blurb: v.GenericSchema<ManifestMetadataInput['blurb'], ManifestMetadata['blurb']>; readonly card: v.GenericSchema<ManifestMetadataInput['card'], ManifestMetadata['card']>; readonly style: v.GenericSchema<ManifestMetadataInput['style'], ManifestMetadata['style']>; readonly kitLook: v.GenericSchema<ManifestMetadataInput['kitLook'], ManifestMetadata['kitLook']>; readonly hands: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['hands'], undefined>, Exclude<ManifestMetadata['hands'], undefined>>, undefined>; readonly camera: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['camera'], undefined>, Exclude<ManifestMetadata['camera'], undefined>>, undefined>; readonly weapon: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['weapon'], undefined>, Exclude<ManifestMetadata['weapon'], undefined>>, undefined>; readonly treeCount: v.GenericSchema<ManifestMetadataInput['treeCount'], ManifestMetadata['treeCount']>; readonly trees: v.GenericSchema<ManifestMetadataInput['trees'], ManifestMetadata['trees']>; readonly assetGlobs: v.GenericSchema<ManifestMetadataInput['assetGlobs'], ManifestMetadata['assetGlobs']>; readonly spawn: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['spawn'], undefined>, Exclude<ManifestMetadata['spawn'], undefined>>, undefined>; readonly bounds: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['bounds'], undefined>, Exclude<ManifestMetadata['bounds'], undefined>>, undefined>; readonly sky: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['sky'], undefined>, Exclude<ManifestMetadata['sky'], undefined>>, undefined>; readonly atmosphere: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['atmosphere'], undefined>, Exclude<ManifestMetadata['atmosphere'], undefined>>, undefined>; readonly grade: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['grade'], undefined>, Exclude<ManifestMetadata['grade'], undefined>>, undefined>; readonly horizon: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['horizon'], undefined>, Exclude<ManifestMetadata['horizon'], undefined>>, undefined>; readonly minimap: v.GenericSchema<ManifestMetadataInput['minimap'], ManifestMetadata['minimap']>; readonly pois: v.GenericSchema<ManifestMetadataInput['pois'], ManifestMetadata['pois']>; readonly explore: v.GenericSchema<ManifestMetadataInput['explore'], ManifestMetadata['explore']>; readonly captureProbes: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<Exclude<ManifestMetadataInput['captureProbes'], undefined>[number], Exclude<ManifestMetadata['captureProbes'], undefined>[number]>, undefined>, undefined>; readonly next: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['next'], undefined>, Exclude<ManifestMetadata['next'], undefined>>, undefined>; readonly debugOptions: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['debugOptions'], undefined>, Exclude<ManifestMetadata['debugOptions'], undefined>>, undefined>; readonly bodyShadow: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['bodyShadow'], undefined>, Exclude<ManifestMetadata['bodyShadow'], undefined>>, undefined>; readonly ocean: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['ocean'], undefined>, Exclude<ManifestMetadata['ocean'], undefined>>, undefined>; readonly blender: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['blender'], undefined>, Exclude<ManifestMetadata['blender'], undefined>>, undefined>; readonly horizonStrips: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['horizonStrips'], undefined>, Exclude<ManifestMetadata['horizonStrips'], undefined>>, undefined>; readonly assets: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['assets'], undefined>, Exclude<ManifestMetadata['assets'], undefined>>, undefined>; readonly look: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['look'], undefined>, Exclude<ManifestMetadata['look'], undefined>>, undefined>; readonly pondLilyExclusions: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['pondLilyExclusions'], undefined>, Exclude<ManifestMetadata['pondLilyExclusions'], undefined>>, undefined>; readonly faunaTuning: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['faunaTuning'], undefined>, Exclude<ManifestMetadata['faunaTuning'], undefined>>, undefined>; readonly forest: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['forest'], undefined>, Exclude<ManifestMetadata['forest'], undefined>>, undefined>; }, undefined> = v.strictObject({
276
+ export const ManifestMetadataSchema: v.StrictObjectSchema<{ readonly bindings: v.GenericSchema<ManifestMetadataInput['bindings'], ManifestMetadata['bindings']>; readonly boot: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['boot'], undefined>, Exclude<ManifestMetadata['boot'], undefined>>, undefined>; readonly shardfile: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['shardfile'], undefined>, Exclude<ManifestMetadata['shardfile'], undefined>>, undefined>; readonly ground: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['ground'], undefined>, Exclude<ManifestMetadata['ground'], undefined>>, undefined>; readonly groundColour: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['groundColour'], undefined>, Exclude<ManifestMetadata['groundColour'], undefined>>, undefined>; readonly world: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['world'], undefined>, Exclude<ManifestMetadata['world'], undefined>>, undefined>; readonly boundary: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['boundary'], undefined>, Exclude<ManifestMetadata['boundary'], undefined>>, undefined>; readonly cellGround: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['cellGround'], undefined>, Exclude<ManifestMetadata['cellGround'], undefined>>, undefined>; readonly hoverSpeedClass: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['hoverSpeedClass'], undefined>, Exclude<ManifestMetadata['hoverSpeedClass'], undefined>>, undefined>; readonly uses: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['uses'], undefined>, Exclude<ManifestMetadata['uses'], undefined>>, undefined>; readonly loadout: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['loadout'], undefined>, Exclude<ManifestMetadata['loadout'], undefined>>, undefined>; readonly species: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['species'], undefined>, Exclude<ManifestMetadata['species'], undefined>>, undefined>; readonly encounters: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['encounters'], undefined>, Exclude<ManifestMetadata['encounters'], undefined>>, undefined>; readonly fight: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['fight'], undefined>, Exclude<ManifestMetadata['fight'], undefined>>, undefined>; readonly creatures: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['creatures'], undefined>, Exclude<ManifestMetadata['creatures'], undefined>>, undefined>; readonly tiers: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['tiers'], undefined>, Exclude<ManifestMetadata['tiers'], undefined>>, undefined>; readonly loot: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['loot'], undefined>, Exclude<ManifestMetadata['loot'], undefined>>, undefined>; readonly hud: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['hud'], undefined>, Exclude<ManifestMetadata['hud'], undefined>>, undefined>; readonly bag: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['bag'], undefined>, Exclude<ManifestMetadata['bag'], undefined>>, undefined>; readonly regionalSimCost: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['regionalSimCost'], undefined>, Exclude<ManifestMetadata['regionalSimCost'], undefined>>, undefined>; readonly spawns: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['spawns'], undefined>, Exclude<ManifestMetadata['spawns'], undefined>>, undefined>; readonly audio: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['audio'], undefined>, Exclude<ManifestMetadata['audio'], undefined>>, undefined>; readonly api: v.GenericSchema<ManifestMetadataInput['api'], ManifestMetadata['api']>; readonly slug: v.GenericSchema<ManifestMetadataInput['slug'], ManifestMetadata['slug']>; readonly order: v.GenericSchema<ManifestMetadataInput['order'], ManifestMetadata['order']>; readonly status: v.GenericSchema<ManifestMetadataInput['status'], ManifestMetadata['status']>; readonly shardSelect: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['shardSelect'], undefined>, Exclude<ManifestMetadata['shardSelect'], undefined>>, undefined>; readonly name: v.GenericSchema<ManifestMetadataInput['name'], ManifestMetadata['name']>; readonly label: v.GenericSchema<ManifestMetadataInput['label'], ManifestMetadata['label']>; readonly seed: v.GenericSchema<ManifestMetadataInput['seed'], ManifestMetadata['seed']>; readonly biome: v.GenericSchema<ManifestMetadataInput['biome'], ManifestMetadata['biome']>; readonly blurb: v.GenericSchema<ManifestMetadataInput['blurb'], ManifestMetadata['blurb']>; readonly card: v.GenericSchema<ManifestMetadataInput['card'], ManifestMetadata['card']>; readonly style: v.GenericSchema<ManifestMetadataInput['style'], ManifestMetadata['style']>; readonly kitLook: v.GenericSchema<ManifestMetadataInput['kitLook'], ManifestMetadata['kitLook']>; readonly hands: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['hands'], undefined>, Exclude<ManifestMetadata['hands'], undefined>>, undefined>; readonly camera: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['camera'], undefined>, Exclude<ManifestMetadata['camera'], undefined>>, undefined>; readonly weapon: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['weapon'], undefined>, Exclude<ManifestMetadata['weapon'], undefined>>, undefined>; readonly treeCount: v.GenericSchema<ManifestMetadataInput['treeCount'], ManifestMetadata['treeCount']>; readonly trees: v.GenericSchema<ManifestMetadataInput['trees'], ManifestMetadata['trees']>; readonly assetGlobs: v.GenericSchema<ManifestMetadataInput['assetGlobs'], ManifestMetadata['assetGlobs']>; readonly spawn: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['spawn'], undefined>, Exclude<ManifestMetadata['spawn'], undefined>>, undefined>; readonly bounds: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['bounds'], undefined>, Exclude<ManifestMetadata['bounds'], undefined>>, undefined>; readonly sky: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['sky'], undefined>, Exclude<ManifestMetadata['sky'], undefined>>, undefined>; readonly atmosphere: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['atmosphere'], undefined>, Exclude<ManifestMetadata['atmosphere'], undefined>>, undefined>; readonly grade: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['grade'], undefined>, Exclude<ManifestMetadata['grade'], undefined>>, undefined>; readonly horizon: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['horizon'], undefined>, Exclude<ManifestMetadata['horizon'], undefined>>, undefined>; readonly minimap: v.GenericSchema<ManifestMetadataInput['minimap'], ManifestMetadata['minimap']>; readonly pois: v.GenericSchema<ManifestMetadataInput['pois'], ManifestMetadata['pois']>; readonly explore: v.GenericSchema<ManifestMetadataInput['explore'], ManifestMetadata['explore']>; readonly captureProbes: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<Exclude<ManifestMetadataInput['captureProbes'], undefined>[number], Exclude<ManifestMetadata['captureProbes'], undefined>[number]>, undefined>, undefined>; readonly next: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['next'], undefined>, Exclude<ManifestMetadata['next'], undefined>>, undefined>; readonly debugOptions: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['debugOptions'], undefined>, Exclude<ManifestMetadata['debugOptions'], undefined>>, undefined>; readonly bodyShadow: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['bodyShadow'], undefined>, Exclude<ManifestMetadata['bodyShadow'], undefined>>, undefined>; readonly ocean: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['ocean'], undefined>, Exclude<ManifestMetadata['ocean'], undefined>>, undefined>; readonly blender: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['blender'], undefined>, Exclude<ManifestMetadata['blender'], undefined>>, undefined>; readonly horizonStrips: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['horizonStrips'], undefined>, Exclude<ManifestMetadata['horizonStrips'], undefined>>, undefined>; readonly assets: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['assets'], undefined>, Exclude<ManifestMetadata['assets'], undefined>>, undefined>; readonly look: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['look'], undefined>, Exclude<ManifestMetadata['look'], undefined>>, undefined>; readonly pondLilyExclusions: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['pondLilyExclusions'], undefined>, Exclude<ManifestMetadata['pondLilyExclusions'], undefined>>, undefined>; readonly faunaTuning: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['faunaTuning'], undefined>, Exclude<ManifestMetadata['faunaTuning'], undefined>>, undefined>; readonly forest: v.ExactOptionalSchema<v.GenericSchema<Exclude<ManifestMetadataInput['forest'], undefined>, Exclude<ManifestMetadata['forest'], undefined>>, undefined>; }, undefined> = v.strictObject({
277
277
  bindings,
278
278
  boot: v.exactOptional(v.strictObject({barrier: v.exactOptional(v.boolean()), cullBeforeFirstDraw: v.exactOptional(v.boolean()),
279
279
  phone: v.exactOptional(v.strictObject({ deferExtras: v.exactOptional(v.boolean()), fragile: v.exactOptional(v.boolean()), trace: v.exactOptional(v.boolean()) })), viewmodelSets: v.exactOptional(v.pipe(v.array(v.picklist(['walnut', 'brushed-steel', 'leather', 'cord', 'bolt', 'anodised', 'polymer', 'gunmetal'])), v.maxLength(8))), shaders: v.exactOptional(v.strictObject({background: v.boolean()})), audio: v.exactOptional(strings), precache: strings, stagedWorld: v.exactOptional(v.boolean()),
280
280
  steps: v.exactOptional(v.record(text, v.strictObject({label: text, weight: number}))), bytes: v.exactOptional(v.strictObject({sky: v.exactOptional(text), trees: v.exactOptional(text), cabins: v.exactOptional(text), props: v.exactOptional(text), music: v.exactOptional(text), sfx: v.exactOptional(text)}))})),
281
- gridShardfile: v.exactOptional(text), shardfile: v.exactOptional(text),
281
+ shardfile: v.exactOptional(text),
282
282
  ground: v.exactOptional(v.strictObject({structures: v.literal(true), paths: v.exactOptional(v.literal('plugin'))})),
283
283
  groundColour: v.exactOptional(rgb), world: v.exactOptional(v.strictObject({killY: number})),
284
284
  boundary: v.exactOptional(v.strictObject({visible: v.boolean()})),
@@ -512,7 +512,6 @@ export interface ManifestMetadataFields {
512
512
  sfx?: string;
513
513
  };
514
514
  };
515
- gridShardfile?: string;
516
515
  shardfile?: string;
517
516
  ground?: {
518
517
  structures: true;
@@ -17,7 +17,7 @@ import { ClientPlanRuntimeSchema } from './runtime.ts';
17
17
  import { RuntimeSpawnsSchema } from './runtimeSpawns.ts';
18
18
  import { RowsSchema } from './rows.ts';
19
19
  import { ShardHashSchema, ShardNaturalSchema, IdentitySchema, RequiresSchema, FilesSchema, type ShardIdentityInput, type ShardRequiresInput, type ShardReferencesInput, type ShardIdentity, type ShardRequires, type ShardReferences } from './shardSections.ts';
20
- import { LEGACY_LAYOUT, carriesEngineFloor, writesNoRequiresSdk, writesPreparationMarker, writesSaveRevision } from './version.ts';
20
+ import { LEGACY_LAYOUT, carriesEngineFloor, writesPreparationMarker, writesSaveRevision } from './version.ts';
21
21
  import { checkNoMovedWords } from './manifest-deprecations.ts';
22
22
  import { IndexFormatVersionSchema, LegacyIndexVersionSchema } from './index-format-version.ts';
23
23
  import type { IndexFormatVersion, LegacyIndexVersion } from './version.ts';
@@ -133,12 +133,6 @@ function checkSaveRevisionSpelling(input: unknown, index: OutputIndex): void {
133
133
  // Only the old spelling in a new format refuses: a parsed index (any version) already reads back as `saveRevision`.
134
134
  if (spelled === 'revision' && version !== undefined && writesSaveRevision(version)) { throw new Error(`Format ${version} names the save lineage identity.saveRevision (shard.json)`); }
135
135
  }
136
- /** FP33: 0.1.0.5 on carries no `requires.sdk`; an older file keeps it as written, so its source hash still matches. */
137
- // oxlint-disable-next-line typescript/prefer-readonly-parameter-types -- valibot output, only read
138
- function checkNoRequiresSdk(index: OutputIndex): void {
139
- const version = index.formatVersion === LEGACY_LAYOUT ? undefined : index.formatVersion;
140
- if (version !== undefined && writesNoRequiresSdk(version) && index.requires.sdk !== undefined) { throw new Error(`Format ${version} carries no requires.sdk (shard.json; FORMAT-PRUNE FP33)`); }
141
- }
142
136
  /** FP47b: `requires.engine` is a 0.1.0.6 word; an older file never carries it (an engine on that format refuses it). */
143
137
  // oxlint-disable-next-line typescript/prefer-readonly-parameter-types -- valibot output, only read
144
138
  function checkEngineFloorVersion(index: OutputIndex): void {
@@ -149,7 +143,6 @@ function parseOutputIndexRows(input: unknown): OutputIndex {
149
143
  const index = v.parse(OutputIndexSchema, input);
150
144
  checkIndexEnvelope(index);
151
145
  checkSaveRevisionSpelling(input, index);
152
- checkNoRequiresSdk(index);
153
146
  checkEngineFloorVersion(index);
154
147
  const prepared = preparationSpecOf(index) !== undefined || unreadPreparationSpec(index) !== undefined;
155
148
  if (prepared && index.cook === undefined) { throw new Error(`Missing cook preparation: run wildshard prepare <folder> --base <exact-preview-url> (${index.identity.slug})`); }
@@ -47,6 +47,8 @@ const pixel: v.GenericSchema<PostGraphPixelInput, PostGraphPixel> = v.variant('o
47
47
  const link = v.union([name, finite]);
48
48
  const tiers = v.pipe(v.array(v.picklist(['phone', 'desktop'])), v.minLength(1));
49
49
 
50
+ /** QA 11-24 row 70: a painted grass's card atlas (a phone and a full size), omitted by a grass without cards. */
51
+ const grassCards = v.strictObject({ url: v.pipe(v.string(), v.regex(/^\/[A-Za-z0-9/_.-]+$/u)), phoneUrl: v.pipe(v.string(), v.regex(/^\/[A-Za-z0-9/_.-]+$/u)), name: v.pipe(v.string(), v.minLength(1), v.maxLength(64)) });
50
52
  const triple = v.tuple([finite, finite, finite]), quad = v.tuple([finite, finite, finite, finite]);
51
53
  /** G615: a painterly level's painted world (the post-graph look's optional `painted` row); each part's own host admits its
52
54
  * row (air, ground, tiles, capture, grass rows, the painterly world's rows, panorama and key). */
@@ -63,7 +65,7 @@ export const PaintedWorldSchema: v.GenericSchema<PaintedWorldRowInput, PaintedWo
63
65
  world: v.exactOptional(v.strictObject({ rows: v.unknown(), panorama: v.unknown(), key: v.unknown(), ridge: v.pipe(v.array(finite), v.maxLength(8192)),
64
66
  grade: v.strictObject({ lend: v.pipe(v.string(), v.minLength(1), v.maxLength(128)), uniforms: v.record(v.pipe(v.string(), v.regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/u)), finite), saturation: v.string() }),
65
67
  tint: v.record(v.pipe(v.string(), v.regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/u)), v.picklist(['key', 'moon', 'light', 'veil', 'veilColour', 'flash'])) })),
66
- grass: v.strictObject({ rows: v.unknown(), cards: v.strictObject({ url: v.pipe(v.string(), v.regex(/^\/[A-Za-z0-9/_.-]+$/u)), phoneUrl: v.pipe(v.string(), v.regex(/^\/[A-Za-z0-9/_.-]+$/u)), name: v.pipe(v.string(), v.minLength(1), v.maxLength(64)) }) }),
68
+ grass: v.strictObject({ rows: v.unknown(), cards: v.exactOptional(grassCards) }),
67
69
  });
68
70
  /** An admitted painted world row. */
69
71
 
@@ -199,7 +201,7 @@ interface PaintedWorldRowFields {
199
201
  };
200
202
  grass: {
201
203
  rows: unknown;
202
- cards: {
204
+ cards?: {
203
205
  url: string;
204
206
  phoneUrl: string;
205
207
  name: string;
@@ -5,9 +5,7 @@ import type { BudgetTier } from './budget-tiers.ts';
5
5
  import * as v from 'valibot';
6
6
  import { WIRE_CELL, WIRE_TILE_SIZES } from './wireLimits.ts';
7
7
  import { SHARDFILE_ADMISSION_LIMITS as limits } from './admissionLimits.ts';
8
- import { SHARDFILE_VERSIONS } from './version.ts';
9
8
  import { oneSaveRevisionSpelling, saveRevisionOf } from './save-revision.ts';
10
- import type { FormatVersion } from './version.ts';
11
9
  import { RuntimeCostSchema } from './runtimeCost.ts';
12
10
  import { CommonsCostsSchema } from './commonsCosts.ts';
13
11
  import { ScriptBindingsSchema } from './scripts.ts';
@@ -46,7 +44,7 @@ const IdentityRowSchema = v.strictObject({ slug: name, name: v.pipe(v.string(),
46
44
  function identityWithSaveRevision(row: Readonly<v.InferOutput<typeof IdentityRowSchema>>): ShardIdentity { const { revision: _old, saveRevision: _new, ...rest } = row; return { ...rest, saveRevision: saveRevisionOf(row) }; }
47
45
  export const IdentitySchema: v.GenericSchema<ShardIdentityInput, ShardIdentity> = v.pipe(IdentityRowSchema, v.check(oneSaveRevisionSpelling, 'Shard identity needs exactly one of saveRevision or revision'), v.transform(identityWithSaveRevision));
48
46
  /** Wire revision, capabilities and exact commons declarations. */
49
- export const RequiresSchema: v.GenericSchema<ShardRequiresInput, ShardRequires> = v.strictObject({ sdk: v.exactOptional(v.picklist(SHARDFILE_VERSIONS)), capabilities: v.exactOptional(ShardNamesSchema), engine: v.exactOptional(EngineReleaseSchema), commons: v.pipe(v.array(ShardHashSchema), v.maxLength(limits.commons)), commonsWire: v.optional(v.record(ShardHashSchema, ShardNaturalSchema), {}), commonsCosts: v.optional(CommonsCostsSchema, {}) });
47
+ export const RequiresSchema: v.GenericSchema<ShardRequiresInput, ShardRequires> = v.strictObject({ capabilities: v.exactOptional(ShardNamesSchema), engine: v.exactOptional(EngineReleaseSchema), commons: v.pipe(v.array(ShardHashSchema), v.maxLength(limits.commons)), commonsWire: v.optional(v.record(ShardHashSchema, ShardNaturalSchema), {}), commonsCosts: v.optional(CommonsCostsSchema, {}) });
50
48
  /** Authored compressed and resident ceilings. */
51
49
  export const BudgetsSchema: v.GenericSchema<ShardBudgetsInput, ShardBudgets> = v.strictObject({
52
50
  /** Reviewed whole-client floor retained when an opaque runtime becomes declared data. */
@@ -251,8 +249,6 @@ interface ShardIdentityFields {
251
249
  }
252
250
  export type ShardIdentity = { [Key in keyof ShardIdentityFields]: ShardIdentityFields[Key] };
253
251
  interface ShardRequiresInputFields {
254
- /** SHARD-COMPAT CP8: deprecated (a copy of the format version, never read); writers stop sourcing it. */
255
- sdk?: FormatVersion;
256
252
  /** FORMAT-PRUNE FP4: deprecated (always empty, never read); the chain drops it and writers stop sourcing it. */
257
253
  capabilities?: ShardNamesInput;
258
254
  /** FORMAT-PRUNE FP47b (J505): the lowest engine release that can draw this product (0.1.0.6 on; `engine-floor.ts`). */
@@ -263,7 +259,6 @@ interface ShardRequiresInputFields {
263
259
  }
264
260
  export type ShardRequiresInput = { [Key in keyof ShardRequiresInputFields]: ShardRequiresInputFields[Key] };
265
261
  interface ShardRequiresFields {
266
- sdk?: FormatVersion;
267
262
  capabilities?: ShardNames;
268
263
  engine?: string;
269
264
  commons: (ShardHash)[];
@@ -8,10 +8,10 @@ import {
8
8
  assetAdmission,
9
9
  preflightDeclaredCosts,
10
10
  } from './assetAdmission.ts'
11
+ import { declaredSourceMatches } from './incoming.ts'
11
12
  import { issueError, withIssueCode } from './issue-codes.ts'
12
13
  import { assembleOutputShardfile } from './outputIndex.ts'
13
14
  import { admittedVerdict, recordVerdict } from './policy-verdict.ts'
14
- import { writtenSourceBytes } from './save-revision.ts'
15
15
  import { offlineMemoryAdmission } from './shardfile-assets.ts'
16
16
  import {
17
17
  assertShardfileTargets,
@@ -142,10 +142,7 @@ function admitTail(
142
142
  }>,
143
143
  ): void {
144
144
  checkWorldTargets(shard, product.payloads.get('world/targets'))
145
- if (
146
- product.hash(writtenSourceBytes(shard, product.index.formatVersion)) !==
147
- product.index.build.sourceHash
148
- ) {
145
+ if (!declaredSourceMatches(shard, product.index, product.hash)) {
149
146
  throw issueError(
150
147
  'source-hash',
151
148
  'Output sections differ from the declared source hash',
@@ -15,9 +15,9 @@
15
15
 
16
16
  import { SHARDFILE_ADMISSION_LIMITS as limits } from './admissionLimits.ts'
17
17
  import { assertSectionSides } from './feature-sides.ts'
18
+ import { parseIncomingIndex, validateIncomingSection } from './incoming.ts'
18
19
  import { issueError, withIssueCode } from './issue-codes.ts'
19
20
  import { unheldMount } from './manifest-deprecations.ts'
20
- import { parseOutputIndex, validateOutputSection } from './outputIndex.ts'
21
21
  import { admittedVerdict } from './policy-verdict.ts'
22
22
  import { assertScriptSides } from './script-sides.ts'
23
23
  import { scriptAdmissionRows } from './scriptContract.ts'
@@ -212,7 +212,7 @@ function readIndex(replay: Readonly<Replay>): OutputIndex {
212
212
  hash: shardJson.sha,
213
213
  bytes: shardJson.size,
214
214
  }
215
- return parseOutputIndex(readCanonicalJson(listedBytes(replay, listed)))
215
+ return parseIncomingIndex(readCanonicalJson(listedBytes(replay, listed)))
216
216
  }
217
217
 
218
218
  /** Each section: listed, hashed, canonical and valid; with the script side warnings (`assertScriptSides`). */
@@ -226,7 +226,7 @@ function readSections(
226
226
  withIssueCode('section-invalid', (): void => {
227
227
  const value = readCanonicalJson(listedBytes(replay, entry))
228
228
  assertSectionSides(entry.name, value)
229
- validateOutputSection(entry.name, value)
229
+ validateIncomingSection(entry.name, value)
230
230
  payloads.set(entry.name, value)
231
231
  })
232
232
  }
@@ -1,8 +1,8 @@
1
1
  import { cookMountPath, readCookData } from './cook-data.ts';
2
2
  import { checkDiscoveryMount } from './manifest-deprecations.ts';
3
3
  import { requireCookPreparation } from './cook-preparation.ts';
4
- import { parseOutputIndex, validateOutputSection, assembleOutputShardfile, type OutputFile, type OutputIndex } from './outputIndex.ts';
5
- import { asWrittenIdentity } from './save-revision.ts';
4
+ import { declaredSourceMatches, parseIncomingIndex, validateIncomingSection } from './incoming.ts';
5
+ import { assembleOutputShardfile, type OutputFile, type OutputIndex } from './outputIndex.ts';
6
6
  import { decisionModuleContracts, scriptAdmissionRows, type ScriptAdmissionRows, type ScriptContract } from './scriptContract.ts';
7
7
  import { registeredJsonContract, validateRegisteredJson } from './registeredJson.ts';
8
8
  import { validatePlatformFile } from './platformFileFamilies.ts';
@@ -183,7 +183,7 @@ type ReadListed = (entry: Readonly<{ path: string; hash: string; bytes: number }
183
183
  function readSections(index: OutputIndex, read: ReadListed): Map<string, unknown> {
184
184
  const payloads = new Map<string, unknown>();
185
185
  for (const entry of index.sections) {
186
- coded('section-invalid', (): void => { const value = readCanonicalJson(read(entry)); assertSectionSides(entry.name, value); validateOutputSection(entry.name, value); payloads.set(entry.name, value); });
186
+ coded('section-invalid', (): void => { const value = readCanonicalJson(read(entry)); assertSectionSides(entry.name, value); validateIncomingSection(entry.name, value); payloads.set(entry.name, value); });
187
187
  }
188
188
  return payloads;
189
189
  }
@@ -234,7 +234,7 @@ function readCook(index: OutputIndex, read: ReadListed, ports: Pick<ShardfileVal
234
234
  * check that refused (SA41, `issue-codes.ts`). */
235
235
  export function validateShardfileFolder(files: ShardfileFiles, ports: ShardfileValidationPorts): ValidatedShardfile {
236
236
  const verify = ports.verify ?? ((bytes: Uint8Array, expected: string): boolean => ports.hash(bytes) === expected);
237
- const index = coded('index-invalid', (): OutputIndex => parseOutputIndex(readCanonicalJson(files.read('shard.json', limits.sourceBytes))));
237
+ const index = coded('index-invalid', (): OutputIndex => parseIncomingIndex(readCanonicalJson(files.read('shard.json', limits.sourceBytes))));
238
238
  const listed = new Set(['shard.json', 'validation.json']), { assets, keep } = assetStore(files.read, ports.readThrough === true);
239
239
  const read: ReadListed = (entry): Uint8Array => coded('file-mismatch', (): Uint8Array => {
240
240
  listed.add(entry.path);
@@ -260,6 +260,6 @@ export function validateShardfileFolder(files: ShardfileFiles, ports: ShardfileV
260
260
  for (const path of files.paths()) if (!listed.has(path)) throw issueError('unlisted-file', `Unlisted output file: ${path}`);
261
261
  const shard = admitShardfileFolder(coded('shard-schema', (): unknown => assembleOutputShardfile(index, payloads)), assets, ports.hash, 'warn', scripts, { sections: payloads, mountedImages, index, judged: ports.judged ?? 'upload', armed: ports.armed });
262
262
  checkWorldTargets(shard, payloads.get('world/targets'));
263
- if (ports.hash(validationSourceBytes(asWrittenIdentity(shard, index.formatVersion))) !== index.build.sourceHash) throw issueError('source-hash', 'Output sections differ from the declared source hash');
263
+ if (!declaredSourceMatches(shard, index, ports.hash)) throw issueError('source-hash', 'Output sections differ from the declared source hash');
264
264
  return { index, shard, assets, sections: payloads, scripts, ...deprecationReport({ index, sections: payloads, cook }, warnings), policy: admittedVerdict(shard), audio: shardfileRecordings({ cook, read: files.read, shard, assets }) };
265
265
  }
@@ -42,9 +42,6 @@ const SHARDFILE_VERSION_PREPARATION = '0.1.0.3'
42
42
  /** The first format whose `shard.json` names the save lineage `identity.saveRevision` instead of `identity.revision`
43
43
  * (FORMAT-PRUNE FP26, J493): the number keys saves and only ever rises; it is not the API's shard revision. */
44
44
  const SHARDFILE_VERSION_SAVE_REVISION = '0.1.0.4'
45
- /** The first format whose `shard.json` carries no `requires.sdk` (FORMAT-PRUNE FP33, SHARD-COMPAT CP8): it only ever
46
- * copied the format version, and nothing reads it. */
47
- const SHARDFILE_VERSION_NO_REQUIRES_SDK = '0.1.0.5'
48
45
  /** The first format whose `shard.json` may name the lowest engine release that draws it, `requires.engine` (FORMAT-PRUNE
49
46
  * FP47b, J505): an engine on an older format refuses the word, so the floor holds there too. */
50
47
  const SHARDFILE_VERSION_ENGINE_FLOOR = '0.1.0.6'
@@ -149,13 +146,6 @@ function writesSaveRevision(version: string): boolean {
149
146
  )
150
147
  }
151
148
 
152
- /** Whether a format version writes no `requires.sdk` (0.1.0.5 on, FP33). */
153
- function writesNoRequiresSdk(version: string): boolean {
154
- return (
155
- compareShardfileVersions(version, SHARDFILE_VERSION_NO_REQUIRES_SDK) >= ZERO
156
- )
157
- }
158
-
159
149
  /** Whether a format version may carry `requires.engine` (0.1.0.6 on, FP47b). */
160
150
  function carriesEngineFloor(version: string): boolean {
161
151
  return (
@@ -194,16 +184,17 @@ function withoutKeys(value: unknown, keys: readonly string[]): unknown {
194
184
  )
195
185
  }
196
186
 
197
- /** `requires` as `version` writes it: no `sdk` from 0.1.0.5 (FORMAT-PRUNE FP33), no `engine` floor below 0.1.0.6 (FP47b). */
187
+ /** `requires` as `version` writes it: never an `sdk` (FORMAT-PRUNE FP33 deleted it), no `engine` floor below 0.1.0.6
188
+ * (FP47b). */
198
189
  function requiresAt(requires: unknown, version: string): unknown {
199
190
  return withoutKeys(requires, [
200
- ...(writesNoRequiresSdk(version) ? ['sdk'] : []),
191
+ 'sdk',
201
192
  ...(carriesEngineFloor(version) ? [] : ['engine']),
202
193
  ])
203
194
  }
204
195
 
205
- /** The rows a version from 0.1.0.3 on changes in place: PR4's preparation marker, FP26's save lineage, then FP33's
206
- * `requires.sdk`. */
196
+ /** The rows a version from 0.1.0.3 on changes in place: PR4's preparation marker, FP26's save lineage, then `requires`
197
+ * (FP33's deleted `sdk`, FP47b's engine floor). */
207
198
  function laterEnvelopeRows(
208
199
  // oxlint-disable-next-line typescript/prefer-readonly-parameter-types -- it changes the writer's envelope in place
209
200
  envelope: Record<string, unknown>,
@@ -277,12 +268,10 @@ export {
277
268
  writesIndexFormatVersion,
278
269
  writesPreparationMarker,
279
270
  writesSaveRevision,
280
- writesNoRequiresSdk,
281
271
  carriesEngineFloor,
282
272
  SHARDFILE_VERSION_ENGINE_FLOOR,
283
273
  SHARDFILE_VERSION_PREPARATION,
284
274
  SHARDFILE_VERSION_SAVE_REVISION,
285
- SHARDFILE_VERSION_NO_REQUIRES_SDK,
286
275
  SHARDFILE_FLOOR,
287
276
  type FormatVersion,
288
277
  type FormatVersionParts,