@hypersoniclabs/helix-cli 0.1.7 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +627 -6
- package/assets/bridge/metahuman-eye-baked.png +0 -0
- package/assets/item-def-sounds/Common/A_DryShot.ogg +0 -0
- package/assets/item-def-sounds/Common/A_LMG_CloseCoverA.ogg +0 -0
- package/assets/item-def-sounds/Common/A_LMG_CloseCoverB.ogg +0 -0
- package/assets/item-def-sounds/Common/A_LMG_InsertMag.ogg +0 -0
- package/assets/item-def-sounds/Common/A_LMG_RemoveMag.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_InsertMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_InsertMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_InsertMag_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_RemoveMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_RemoveMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_RemoveMag_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_ChargingHandle_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_ChargingHandle_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_ChargingHandle_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_InsertMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_InsertMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_InsertMag_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_RemoveMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_RemoveMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_RemoveMag_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_SMG_ChargingHandle_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_SMG_ChargingHandle_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_SMG_ChargingHandle_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Sniper_ChargingHandle.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Sniper_RemoveMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Sniper_RemoveMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Sniper_RemoveMag_003.ogg +0 -0
- package/assets/item-def-sounds/Explosions/Explosions_Grenade_Punch-Close_01.ogg +0 -0
- package/assets/item-def-sounds/Explosions/Explosions_Grenade_Punch-Close_02.ogg +0 -0
- package/assets/item-def-sounds/Explosions/Explosions_Grenade_Punch-Close_03.ogg +0 -0
- package/assets/item-def-sounds/LMG/A_LWS-32_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/LMG/A_LWS-32_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/LMG/A_LWS-32_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/Pistol/A_Gaston_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/Pistol/A_Gaston_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/Pistol/A_Gaston_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/Rifle/A_KAL_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/Rifle/A_KAL_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/Rifle/A_KAL_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_InsertMag.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_RemoveMag.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/Shotgun/A_DB-12_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/Shotgun/A_DB-12_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/Shotgun/A_DB-12_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/Sniper/A_CS-446_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/Sniper/A_CS-446_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/Sniper/A_CS-446_Shot_003.ogg +0 -0
- package/bridge-plugins/helix.bridge.unreal/bin/unreal-skeletal-mesh-extract.js +812 -0
- package/bridge-plugins/helix.bridge.unreal/bridge-plugin.json +40 -0
- package/bridge-plugins/helix.bridge.unreal/test/exporter.test.js +418 -0
- package/bridge-plugins/helix.bridge.unreal/test/handler.test.js +417 -0
- package/bridge-plugins/helix.bridge.unreal/unreal/export_skeletal_mesh.py +384 -0
- package/bridge-recipes/cyberpunk/cyberpunk-female-bone-map.json +476 -0
- package/bridge-recipes/sims4/README.md +43 -0
- package/bridge-recipes/sims4/sims4-female-bone-map.json +65 -0
- package/bridge-recipes/unreal/character-customizer/README.md +58 -0
- package/bridge-recipes/unreal/character-customizer/all.json +13 -0
- package/bridge-recipes/unreal/character-customizer/base-male-body.json +6 -0
- package/bridge-recipes/unreal/character-customizer/base-male-head.json +6 -0
- package/bridge-recipes/unreal/character-customizer/beard.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/beard.json +6 -0
- package/bridge-recipes/unreal/character-customizer/bottom.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/bottom.json +6 -0
- package/bridge-recipes/unreal/character-customizer/eyewear.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/eyewear.json +6 -0
- package/bridge-recipes/unreal/character-customizer/footwear.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/footwear.json +6 -0
- package/bridge-recipes/unreal/character-customizer/hair.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/hair.json +6 -0
- package/bridge-recipes/unreal/character-customizer/test/recipes.test.js +74 -0
- package/bridge-recipes/unreal/character-customizer/top.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/top.json +6 -0
- package/bridge-recipes/unreal/helix-character-creator-female/README.md +57 -0
- package/bridge-recipes/unreal/helix-character-creator-female/all.json +18 -0
- package/bridge-recipes/unreal/helix-character-creator-female/back.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/back.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/base-female-face.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/base-female.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/bottom.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/bottom.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/eyewear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/eyewear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-basic-t-shirt.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-basic-t-shirt.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch-hair.json +23 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch-nebula-urbanghost.json +7 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch-singles.json +19 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch5.json +19 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch6.json +19 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch7.json +11 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cap-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cap-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cap.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cap.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cargo-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cargo-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-carnival-mask-3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-carnival-mask-3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-chain.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-chain.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-shoes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-shoes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-compression-bodysuit-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-compression-bodysuit-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-compression-bodysuit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-compression-bodysuit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-eye-hole-mask-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-eye-hole-mask-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-eye-patch.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-eye-patch.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-firefight-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-firefight-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-sneakers.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-sneakers.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-gamer-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-gamer-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-guy-fawkes-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-guy-fawkes-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a1.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a1.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a10.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a10.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a11.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a11.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a12.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a12.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a13.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a13.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a14.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a14.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a15.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a15.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a16.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a16.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a17.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a17.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a18.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a18.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a19.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a19.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a20.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a20.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a21.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a21.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a4.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a4.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a5.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a5.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a6.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a6.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a7.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a7.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a8.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a8.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a9.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a9.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-high-waist-tailored-trousers.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-high-waist-tailored-trousers.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hogwarts-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hogwarts-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hoody.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hoody.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-jacket-6.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-jacket-6.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-joker-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-joker-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-kombes-brown.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-kombes-brown.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-kombes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-kombes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-marshmallow-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-marshmallow-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-maska.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-maska.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-nebula-executive-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-nebula-executive-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-nebula-executive-shoes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-nebula-executive-shoes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-ninza-costume.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-ninza-costume.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-orange-kombes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-orange-kombes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-panama.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-panama.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-panda-bag-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-panda-bag-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-pantslow.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-pantslow.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-paper-bag-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-paper-bag-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-pig-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-pig-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-police-uniform.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-police-uniform.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-prison-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-prison-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-short-b4low.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-short-b4low.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-short-swimming.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-short-swimming.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-shortlow.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-shortlow.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-shorts-b3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-shorts-b3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-sterile-gloves.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-sterile-gloves.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-surgeon-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-surgeon-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-swat.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-swat.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-topx1.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-topx1.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-hoodie.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-hoodie.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-warehouse-uniform.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-warehouse-uniform.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-wide-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-wide-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-wolf-set.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-wolf-set.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-woman-mask-3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-woman-mask-3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-women-out-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-women-out-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/footwear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/footwear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/gloves.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/gloves.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/hair.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/hair.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/headwear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/headwear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/neck.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/neck.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/README.md +15 -0
- package/bridge-recipes/unreal/helix-character-creator-male/all.json +18 -0
- package/bridge-recipes/unreal/helix-character-creator-male/back.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/back.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/base-male-face.json +6 -0
- package/bridge-recipes/unreal/helix-character-creator-male/base-male.json +6 -0
- package/bridge-recipes/unreal/helix-character-creator-male/bottom.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/bottom.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/eyewear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/eyewear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/footwear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/footwear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/gloves.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/gloves.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/hair.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/hair.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/headwear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/headwear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch-hair.json +23 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch-nebula-urbanghost.json +7 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch-uniforms.json +10 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch6-slot2.json +7 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch7-slot3.json +6 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch8-combined.json +11 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-boots-25.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-cargo-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-cargo-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-carnival-mask-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-carnival-mask-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-carnival-mask-3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-carnival-mask-3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-shoes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-shoes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-diamond-hands.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-diamond-hands.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-doctor-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-doctor-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-hole-mask-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-hole-mask-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-hole-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-hole-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-patch.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-patch.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-cargo-pants-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-cargo-pants-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-cargo-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-puffy.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-puffy.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-firefight-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-firefight-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-gamer-mask-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-gamer-mask-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a1.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a1.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a10.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a10.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a11.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a11.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a12.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a12.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a13.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a13.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a14.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a14.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a15.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a15.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a16.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a16.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a17.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a17.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a18.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a18.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a19.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a19.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a20.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a20.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a21.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a21.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a4.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a4.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a5.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a5.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a6.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a6.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a7.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a7.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a8.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a8.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a9.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a9.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-kombes-brown-v2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-kombes-brown-v2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-kombes-brown.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-man-mask-3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-marshmallow-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-marshmallow-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-mikejack-jacket.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-coat.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-coat.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-shoes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-shoes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-gloves.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-gloves.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-mantle.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-mantle.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-tunic.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-tunic.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-orangekombes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-orangekombes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-out2-boots.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-out2-boots.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-panda-bag-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-panda-bag-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pants-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pants-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-paper-bag-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-paper-bag-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pig-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pig-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-police-uniform.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-police-uniform.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-prison-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-prison-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-puffer-jacket.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-puffer-jacket.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pullover-hoodie.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pullover-hoodie.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-robber-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-robber-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-short-swimming.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-short-swimming.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-sinth-ascetic-jacket.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-sinth-ascetic-jacket.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-sip-cap.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-sip-cap.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-socks.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-socks.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-surgeon-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-surgeon-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-tech-hoodie.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-tech-hoodie.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-hoodie.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-hoodie.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-warehouse-uniform.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-warehouse-uniform.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/neck.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/neck.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/palette-pilot.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/test/recipes.test.js +122 -0
- package/bridge-recipes/unreal/helix-character-creator-male/top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/variants/bottom-nopalette.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/variants/headwear-nopalette.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/variants/neck-nopalette.addon.json +1 -0
- package/dist/ability.d.ts +2 -2
- package/dist/ability.js +6 -5
- package/dist/ability.js.map +1 -1
- package/dist/achievement.d.ts +123 -0
- package/dist/achievement.js +400 -0
- package/dist/achievement.js.map +1 -0
- package/dist/api.d.ts +19 -1
- package/dist/api.js +80 -6
- package/dist/api.js.map +1 -1
- package/dist/assets.d.ts +595 -0
- package/dist/assets.js +1121 -0
- package/dist/assets.js.map +1 -0
- package/dist/audioCommand.d.ts +65 -0
- package/dist/audioCommand.js +181 -0
- package/dist/audioCommand.js.map +1 -0
- package/dist/bakeBodyRegionsCli.d.ts +19 -0
- package/dist/bakeBodyRegionsCli.js +25 -0
- package/dist/bakeBodyRegionsCli.js.map +1 -0
- package/dist/bakeLighting.d.ts +173 -0
- package/dist/bakeLighting.js +452 -0
- package/dist/bakeLighting.js.map +1 -0
- package/dist/bridge/bridge.testutil.d.ts +105 -0
- package/dist/bridge/bridge.testutil.js +259 -0
- package/dist/bridge/bridge.testutil.js.map +1 -0
- package/dist/bridge/characterAddon.d.ts +47 -0
- package/dist/bridge/characterAddon.js +146 -0
- package/dist/bridge/characterAddon.js.map +1 -0
- package/dist/bridge/detect.d.ts +4 -0
- package/dist/bridge/detect.js +154 -0
- package/dist/bridge/detect.js.map +1 -0
- package/dist/bridge/execute.d.ts +3 -0
- package/dist/bridge/execute.js +206 -0
- package/dist/bridge/execute.js.map +1 -0
- package/dist/bridge/glb.d.ts +60 -0
- package/dist/bridge/glb.js +81 -0
- package/dist/bridge/glb.js.map +1 -0
- package/dist/bridge/hash.d.ts +6 -0
- package/dist/bridge/hash.js +40 -0
- package/dist/bridge/hash.js.map +1 -0
- package/dist/bridge/index.d.ts +11 -0
- package/dist/bridge/index.js +28 -0
- package/dist/bridge/index.js.map +1 -0
- package/dist/bridge/internal/artifacts.d.ts +5 -0
- package/dist/bridge/internal/artifacts.js +31 -0
- package/dist/bridge/internal/artifacts.js.map +1 -0
- package/dist/bridge/internal/builtInExecution.d.ts +4 -0
- package/dist/bridge/internal/builtInExecution.js +514 -0
- package/dist/bridge/internal/builtInExecution.js.map +1 -0
- package/dist/bridge/internal/externalExecution.d.ts +12 -0
- package/dist/bridge/internal/externalExecution.js +261 -0
- package/dist/bridge/internal/externalExecution.js.map +1 -0
- package/dist/bridge/internal/outputReservation.d.ts +13 -0
- package/dist/bridge/internal/outputReservation.js +151 -0
- package/dist/bridge/internal/outputReservation.js.map +1 -0
- package/dist/bridge/internal/snapshots.d.ts +32 -0
- package/dist/bridge/internal/snapshots.js +562 -0
- package/dist/bridge/internal/snapshots.js.map +1 -0
- package/dist/bridge/management.d.ts +40 -0
- package/dist/bridge/management.js +333 -0
- package/dist/bridge/management.js.map +1 -0
- package/dist/bridge/manifest.d.ts +8 -0
- package/dist/bridge/manifest.js +192 -0
- package/dist/bridge/manifest.js.map +1 -0
- package/dist/bridge/metahuman.d.ts +26 -0
- package/dist/bridge/metahuman.js +332 -0
- package/dist/bridge/metahuman.js.map +1 -0
- package/dist/bridge/planner.d.ts +9 -0
- package/dist/bridge/planner.js +246 -0
- package/dist/bridge/planner.js.map +1 -0
- package/dist/bridge/plugins.d.ts +17 -0
- package/dist/bridge/plugins.js +307 -0
- package/dist/bridge/plugins.js.map +1 -0
- package/dist/bridge/resolution.d.ts +8 -0
- package/dist/bridge/resolution.js +55 -0
- package/dist/bridge/resolution.js.map +1 -0
- package/dist/bridge/types.d.ts +247 -0
- package/dist/bridge/types.js +60 -0
- package/dist/bridge/types.js.map +1 -0
- package/dist/bridge/validate.d.ts +12 -0
- package/dist/bridge/validate.js +370 -0
- package/dist/bridge/validate.js.map +1 -0
- package/dist/bridge/zipSource.d.ts +27 -0
- package/dist/bridge/zipSource.js +90 -0
- package/dist/bridge/zipSource.js.map +1 -0
- package/dist/browser/hostSlots.d.ts +57 -0
- package/dist/browser/hostSlots.js +371 -0
- package/dist/browser/hostSlots.js.map +1 -0
- package/dist/browser/launch.d.ts +25 -0
- package/dist/browser/launch.js +74 -0
- package/dist/browser/launch.js.map +1 -0
- package/dist/browser/nonSystemChrome.d.ts +15 -0
- package/dist/browser/nonSystemChrome.js +91 -0
- package/dist/browser/nonSystemChrome.js.map +1 -0
- package/dist/builds/index.d.ts +54 -0
- package/dist/builds/index.js +215 -0
- package/dist/builds/index.js.map +1 -0
- package/dist/bundle.d.ts +35 -2
- package/dist/bundle.js +437 -20
- package/dist/bundle.js.map +1 -1
- package/dist/canary/cli.d.ts +17 -0
- package/dist/canary/cli.js +95 -0
- package/dist/canary/cli.js.map +1 -0
- package/dist/canary/index.d.ts +4 -0
- package/dist/canary/index.js +21 -0
- package/dist/canary/index.js.map +1 -0
- package/dist/canary/inventory.d.ts +46 -0
- package/dist/canary/inventory.js +499 -0
- package/dist/canary/inventory.js.map +1 -0
- package/dist/canary/pacifica.d.ts +51 -0
- package/dist/canary/pacifica.js +247 -0
- package/dist/canary/pacifica.js.map +1 -0
- package/dist/canary/plan.d.ts +115 -0
- package/dist/canary/plan.js +479 -0
- package/dist/canary/plan.js.map +1 -0
- package/dist/character/addonPushOut.d.ts +66 -0
- package/dist/character/addonPushOut.js +211 -0
- package/dist/character/addonPushOut.js.map +1 -0
- package/dist/character/avatarPreflight.d.ts +92 -0
- package/dist/character/avatarPreflight.js +261 -0
- package/dist/character/avatarPreflight.js.map +1 -0
- package/dist/character/bakeBodyRegions.d.ts +80 -0
- package/dist/character/bakeBodyRegions.js +190 -0
- package/dist/character/bakeBodyRegions.js.map +1 -0
- package/dist/character/baseColorGuard.d.ts +62 -0
- package/dist/character/baseColorGuard.js +141 -0
- package/dist/character/baseColorGuard.js.map +1 -0
- package/dist/character/bodyGeometryGuard.d.ts +243 -0
- package/dist/character/bodyGeometryGuard.js +417 -0
- package/dist/character/bodyGeometryGuard.js.map +1 -0
- package/dist/character/bodyRegionHide.d.ts +57 -0
- package/dist/character/bodyRegionHide.js +97 -0
- package/dist/character/bodyRegionHide.js.map +1 -0
- package/dist/character/composeBaseMale.d.ts +25 -0
- package/dist/character/composeBaseMale.js +712 -0
- package/dist/character/composeBaseMale.js.map +1 -0
- package/dist/character/esm.js +3 -1
- package/dist/character/esm.js.map +1 -1
- package/dist/character/faceManifest.d.ts +53 -0
- package/dist/character/faceManifest.js +256 -0
- package/dist/character/faceManifest.js.map +1 -0
- package/dist/character/fbx.d.ts +61 -0
- package/dist/character/fbx.js +360 -0
- package/dist/character/fbx.js.map +1 -0
- package/dist/character/fitGarmentFile.d.ts +39 -0
- package/dist/character/fitGarmentFile.js +53 -0
- package/dist/character/fitGarmentFile.js.map +1 -0
- package/dist/character/helixPalette.d.ts +68 -0
- package/dist/character/helixPalette.js +183 -0
- package/dist/character/helixPalette.js.map +1 -0
- package/dist/character/hideCoverage.d.ts +135 -0
- package/dist/character/hideCoverage.js +450 -0
- package/dist/character/hideCoverage.js.map +1 -0
- package/dist/character/imageLimits.d.ts +3 -0
- package/dist/character/imageLimits.js +7 -0
- package/dist/character/imageLimits.js.map +1 -0
- package/dist/character/importCharacter.d.ts +188 -10
- package/dist/character/importCharacter.js +853 -76
- package/dist/character/importCharacter.js.map +1 -1
- package/dist/character/importTrust.d.ts +11 -0
- package/dist/character/importTrust.js +56 -0
- package/dist/character/importTrust.js.map +1 -0
- package/dist/character/ktx2Decode.d.ts +11 -0
- package/dist/character/ktx2Decode.js +87 -0
- package/dist/character/ktx2Decode.js.map +1 -0
- package/dist/character/mat4.d.ts +7 -0
- package/dist/character/mat4.js +25 -2
- package/dist/character/mat4.js.map +1 -1
- package/dist/character/meshyToHelixMap.d.ts +10 -0
- package/dist/character/meshyToHelixMap.js +92 -3
- package/dist/character/meshyToHelixMap.js.map +1 -1
- package/dist/character/metahumanToHelixMap.d.ts +2 -0
- package/dist/character/metahumanToHelixMap.js +34 -0
- package/dist/character/metahumanToHelixMap.js.map +1 -0
- package/dist/character/normalMapGuard.d.ts +59 -0
- package/dist/character/normalMapGuard.js +139 -0
- package/dist/character/normalMapGuard.js.map +1 -0
- package/dist/character/quat.js +2 -2
- package/dist/character/quat.js.map +1 -1
- package/dist/character/reframeSkeletonFile.d.ts +19 -0
- package/dist/character/reframeSkeletonFile.js +45 -0
- package/dist/character/reframeSkeletonFile.js.map +1 -0
- package/dist/character/repairLodSkeletonsFile.d.ts +25 -0
- package/dist/character/repairLodSkeletonsFile.js +49 -0
- package/dist/character/repairLodSkeletonsFile.js.map +1 -0
- package/dist/character/restFrameGuard.d.ts +52 -0
- package/dist/character/restFrameGuard.js +90 -0
- package/dist/character/restFrameGuard.js.map +1 -0
- package/dist/character/slotBudgets.d.ts +37 -0
- package/dist/character/slotBudgets.generated.d.ts +15 -0
- package/dist/character/slotBudgets.generated.js +110 -0
- package/dist/character/slotBudgets.generated.js.map +1 -0
- package/dist/character/slotBudgets.js +45 -0
- package/dist/character/slotBudgets.js.map +1 -0
- package/dist/character/stages/atlasMaterials.d.ts +53 -0
- package/dist/character/stages/atlasMaterials.js +246 -0
- package/dist/character/stages/atlasMaterials.js.map +1 -0
- package/dist/character/stages/bakeTexture.d.ts +28 -7
- package/dist/character/stages/bakeTexture.js +586 -108
- package/dist/character/stages/bakeTexture.js.map +1 -1
- package/dist/character/stages/conform.d.ts +54 -9
- package/dist/character/stages/conform.js +686 -113
- package/dist/character/stages/conform.js.map +1 -1
- package/dist/character/stages/earClearance.d.ts +105 -0
- package/dist/character/stages/earClearance.js +480 -0
- package/dist/character/stages/earClearance.js.map +1 -0
- package/dist/character/stages/faceRegion.d.ts +55 -0
- package/dist/character/stages/faceRegion.js +183 -0
- package/dist/character/stages/faceRegion.js.map +1 -0
- package/dist/character/stages/firstPersonHide.d.ts +42 -0
- package/dist/character/stages/firstPersonHide.js +140 -0
- package/dist/character/stages/firstPersonHide.js.map +1 -0
- package/dist/character/stages/joinPerMesh.d.ts +18 -0
- package/dist/character/stages/joinPerMesh.js +46 -0
- package/dist/character/stages/joinPerMesh.js.map +1 -0
- package/dist/character/stages/ktx2.d.ts +6 -4
- package/dist/character/stages/ktx2.js +81 -29
- package/dist/character/stages/ktx2.js.map +1 -1
- package/dist/character/stages/limbBridge.d.ts +114 -0
- package/dist/character/stages/limbBridge.js +1286 -0
- package/dist/character/stages/limbBridge.js.map +1 -0
- package/dist/character/stages/mergeLods.d.ts +19 -0
- package/dist/character/stages/mergeLods.js +58 -2
- package/dist/character/stages/mergeLods.js.map +1 -1
- package/dist/character/stages/poseAwareFit.d.ts +192 -0
- package/dist/character/stages/poseAwareFit.js +417 -0
- package/dist/character/stages/poseAwareFit.js.map +1 -0
- package/dist/character/stages/poseFit/math.d.ts +141 -0
- package/dist/character/stages/poseFit/math.js +514 -0
- package/dist/character/stages/poseFit/math.js.map +1 -0
- package/dist/character/stages/poseFit/measure.d.ts +88 -0
- package/dist/character/stages/poseFit/measure.js +148 -0
- package/dist/character/stages/poseFit/measure.js.map +1 -0
- package/dist/character/stages/poseFit/model.d.ts +46 -0
- package/dist/character/stages/poseFit/model.js +147 -0
- package/dist/character/stages/poseFit/model.js.map +1 -0
- package/dist/character/stages/poseFit/offsetField.d.ts +76 -0
- package/dist/character/stages/poseFit/offsetField.js +249 -0
- package/dist/character/stages/poseFit/offsetField.js.map +1 -0
- package/dist/character/stages/poseFit/posing.d.ts +52 -0
- package/dist/character/stages/poseFit/posing.js +330 -0
- package/dist/character/stages/poseFit/posing.js.map +1 -0
- package/dist/character/stages/poseFit/testRig.d.ts +31 -0
- package/dist/character/stages/poseFit/testRig.js +85 -0
- package/dist/character/stages/poseFit/testRig.js.map +1 -0
- package/dist/character/stages/reframeSkeletonToHost.d.ts +35 -0
- package/dist/character/stages/reframeSkeletonToHost.js +111 -0
- package/dist/character/stages/reframeSkeletonToHost.js.map +1 -0
- package/dist/character/stages/report.js +0 -2
- package/dist/character/stages/report.js.map +1 -1
- package/dist/character/stages/resizeTextures.js +4 -4
- package/dist/character/stages/resizeTextures.js.map +1 -1
- package/dist/character/stages/retarget.d.ts +8 -2
- package/dist/character/stages/retarget.js +52 -4
- package/dist/character/stages/retarget.js.map +1 -1
- package/dist/character/stages/retargetClip.d.ts +6 -2
- package/dist/character/stages/retargetClip.js +53 -16
- package/dist/character/stages/retargetClip.js.map +1 -1
- package/dist/character/stages/sanitizeMaterials.d.ts +39 -0
- package/dist/character/stages/sanitizeMaterials.js +136 -0
- package/dist/character/stages/sanitizeMaterials.js.map +1 -0
- package/dist/character/stages/simplifyMesh.js +6 -3
- package/dist/character/stages/simplifyMesh.js.map +1 -1
- package/dist/character/stages/splitFacePrimitive.js +0 -2
- package/dist/character/stages/splitFacePrimitive.js.map +1 -1
- package/dist/character/stages/splitSharedLodSkeletons.d.ts +31 -0
- package/dist/character/stages/splitSharedLodSkeletons.js +104 -0
- package/dist/character/stages/splitSharedLodSkeletons.js.map +1 -0
- package/dist/character/stages/unifyMaterial.d.ts +66 -0
- package/dist/character/stages/unifyMaterial.js +136 -0
- package/dist/character/stages/unifyMaterial.js.map +1 -0
- package/dist/character/stages/vrmDynamics.d.ts +144 -0
- package/dist/character/stages/vrmDynamics.js +421 -0
- package/dist/character/stages/vrmDynamics.js.map +1 -0
- package/dist/character/stages/vrmFace.d.ts +82 -0
- package/dist/character/stages/vrmFace.js +280 -0
- package/dist/character/stages/vrmFace.js.map +1 -0
- package/dist/character/stages/weldedSimplify.d.ts +15 -1
- package/dist/character/stages/weldedSimplify.js +90 -9
- package/dist/character/stages/weldedSimplify.js.map +1 -1
- package/dist/character/testutil/meshyBridgeFixture.d.ts +33 -0
- package/dist/character/testutil/meshyBridgeFixture.js +219 -0
- package/dist/character/testutil/meshyBridgeFixture.js.map +1 -0
- package/dist/character/testutil/meshyHead.d.ts +19 -0
- package/dist/character/testutil/meshyHead.js +99 -0
- package/dist/character/testutil/meshyHead.js.map +1 -0
- package/dist/character/testutil/meshyRig.d.ts +17 -0
- package/dist/character/testutil/meshyRig.js +117 -0
- package/dist/character/testutil/meshyRig.js.map +1 -0
- package/dist/character/testutil/slotBudgetExpectations.d.ts +11 -0
- package/dist/character/testutil/slotBudgetExpectations.js +21 -0
- package/dist/character/testutil/slotBudgetExpectations.js.map +1 -0
- package/dist/character/testutil/syntheticRig.d.ts +12 -1
- package/dist/character/testutil/syntheticRig.js +88 -3
- package/dist/character/testutil/syntheticRig.js.map +1 -1
- package/dist/character/unrealMaterialSidecar.d.ts +94 -0
- package/dist/character/unrealMaterialSidecar.js +879 -0
- package/dist/character/unrealMaterialSidecar.js.map +1 -0
- package/dist/character/untrustedSource.d.ts +54 -0
- package/dist/character/untrustedSource.js +181 -0
- package/dist/character/untrustedSource.js.map +1 -0
- package/dist/character/vrmCharacter.d.ts +156 -0
- package/dist/character/vrmCharacter.js +678 -0
- package/dist/character/vrmCharacter.js.map +1 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +66 -22
- package/dist/config.js.map +1 -1
- package/dist/continuum/adminPackagePinCommand.d.ts +14 -0
- package/dist/continuum/adminPackagePinCommand.js +46 -0
- package/dist/continuum/adminPackagePinCommand.js.map +1 -0
- package/dist/continuum/adminPackagePublishCommand.d.ts +13 -0
- package/dist/continuum/adminPackagePublishCommand.js +22 -0
- package/dist/continuum/adminPackagePublishCommand.js.map +1 -0
- package/dist/continuum/authoring.d.ts +52 -0
- package/dist/continuum/authoring.js +143 -0
- package/dist/continuum/authoring.js.map +1 -0
- package/dist/continuum/characterMigrationGenerator.d.ts +17 -0
- package/dist/continuum/characterMigrationGenerator.js +242 -0
- package/dist/continuum/characterMigrationGenerator.js.map +1 -0
- package/dist/continuum/cli.d.ts +69 -0
- package/dist/continuum/cli.js +145 -0
- package/dist/continuum/cli.js.map +1 -0
- package/dist/continuum/cliAuthority.d.ts +17 -0
- package/dist/continuum/cliAuthority.js +28 -0
- package/dist/continuum/cliAuthority.js.map +1 -0
- package/dist/continuum/client.d.ts +103 -0
- package/dist/continuum/client.js +190 -0
- package/dist/continuum/client.js.map +1 -0
- package/dist/continuum/homeScenePackage.d.ts +159 -0
- package/dist/continuum/homeScenePackage.js +267 -0
- package/dist/continuum/homeScenePackage.js.map +1 -0
- package/dist/continuum/homeScenePackageCommand.d.ts +44 -0
- package/dist/continuum/homeScenePackageCommand.js +107 -0
- package/dist/continuum/homeScenePackageCommand.js.map +1 -0
- package/dist/continuum/identity.d.ts +4 -0
- package/dist/continuum/identity.js +20 -0
- package/dist/continuum/identity.js.map +1 -0
- package/dist/continuum/index.d.ts +11 -0
- package/dist/continuum/index.js +28 -0
- package/dist/continuum/index.js.map +1 -0
- package/dist/continuum/missingNormals.d.ts +48 -0
- package/dist/continuum/missingNormals.js +99 -0
- package/dist/continuum/missingNormals.js.map +1 -0
- package/dist/continuum/objectUpload.d.ts +64 -0
- package/dist/continuum/objectUpload.js +375 -0
- package/dist/continuum/objectUpload.js.map +1 -0
- package/dist/continuum/pull.d.ts +22 -0
- package/dist/continuum/pull.js +47 -0
- package/dist/continuum/pull.js.map +1 -0
- package/dist/continuum/sourceBundle.d.ts +18 -0
- package/dist/continuum/sourceBundle.js +160 -0
- package/dist/continuum/sourceBundle.js.map +1 -0
- package/dist/continuum/state.d.ts +41 -0
- package/dist/continuum/state.js +198 -0
- package/dist/continuum/state.js.map +1 -0
- package/dist/continuum/types.d.ts +156 -0
- package/dist/continuum/types.js +6 -0
- package/dist/continuum/types.js.map +1 -0
- package/dist/continuum/workflow.d.ts +62 -0
- package/dist/continuum/workflow.js +592 -0
- package/dist/continuum/workflow.js.map +1 -0
- package/dist/cs2/areas.d.ts +41 -0
- package/dist/cs2/areas.js +82 -0
- package/dist/cs2/areas.js.map +1 -0
- package/dist/cs2/binary.d.ts +10 -0
- package/dist/cs2/binary.js +59 -0
- package/dist/cs2/binary.js.map +1 -0
- package/dist/cs2/cityLegacy.d.ts +29 -0
- package/dist/cs2/cityLegacy.js +48 -0
- package/dist/cs2/cityLegacy.js.map +1 -0
- package/dist/cs2/convert/areas.d.ts +32 -0
- package/dist/cs2/convert/areas.js +96 -0
- package/dist/cs2/convert/areas.js.map +1 -0
- package/dist/cs2/convert/glb.d.ts +48 -0
- package/dist/cs2/convert/glb.js +178 -0
- package/dist/cs2/convert/glb.js.map +1 -0
- package/dist/cs2/convert/markings.d.ts +96 -0
- package/dist/cs2/convert/markings.js +329 -0
- package/dist/cs2/convert/markings.js.map +1 -0
- package/dist/cs2/convert/nodeSeams.d.ts +20 -0
- package/dist/cs2/convert/nodeSeams.js +164 -0
- package/dist/cs2/convert/nodeSeams.js.map +1 -0
- package/dist/cs2/convert/roadBake.d.ts +112 -0
- package/dist/cs2/convert/roadBake.js +290 -0
- package/dist/cs2/convert/roadBake.js.map +1 -0
- package/dist/cs2/convert/roads.d.ts +110 -0
- package/dist/cs2/convert/roads.js +419 -0
- package/dist/cs2/convert/roads.js.map +1 -0
- package/dist/cs2/convert/terrain.d.ts +67 -0
- package/dist/cs2/convert/terrain.js +141 -0
- package/dist/cs2/convert/terrain.js.map +1 -0
- package/dist/cs2/convert/terrainConform.d.ts +58 -0
- package/dist/cs2/convert/terrainConform.js +284 -0
- package/dist/cs2/convert/terrainConform.js.map +1 -0
- package/dist/cs2/convert/treeRoadClearance.d.ts +17 -0
- package/dist/cs2/convert/treeRoadClearance.js +78 -0
- package/dist/cs2/convert/treeRoadClearance.js.map +1 -0
- package/dist/cs2/convert/trees.d.ts +33 -0
- package/dist/cs2/convert/trees.js +68 -0
- package/dist/cs2/convert/trees.js.map +1 -0
- package/dist/cs2/csm2.d.ts +58 -0
- package/dist/cs2/csm2.js +188 -0
- package/dist/cs2/csm2.js.map +1 -0
- package/dist/cs2/fixtures.d.ts +5 -0
- package/dist/cs2/fixtures.js +15 -0
- package/dist/cs2/fixtures.js.map +1 -0
- package/dist/cs2/impostors.d.ts +31 -0
- package/dist/cs2/impostors.js +42 -0
- package/dist/cs2/impostors.js.map +1 -0
- package/dist/cs2/index.d.ts +22 -0
- package/dist/cs2/index.js +191 -0
- package/dist/cs2/index.js.map +1 -0
- package/dist/cs2/inspect.d.ts +81 -0
- package/dist/cs2/inspect.js +181 -0
- package/dist/cs2/inspect.js.map +1 -0
- package/dist/cs2/lods.d.ts +22 -0
- package/dist/cs2/lods.js +136 -0
- package/dist/cs2/lods.js.map +1 -0
- package/dist/cs2/materials.d.ts +43 -0
- package/dist/cs2/materials.js +137 -0
- package/dist/cs2/materials.js.map +1 -0
- package/dist/cs2/placements.d.ts +57 -0
- package/dist/cs2/placements.js +116 -0
- package/dist/cs2/placements.js.map +1 -0
- package/dist/cs2/roadPieces.d.ts +79 -0
- package/dist/cs2/roadPieces.js +263 -0
- package/dist/cs2/roadPieces.js.map +1 -0
- package/dist/cs2/roads.d.ts +92 -0
- package/dist/cs2/roads.js +329 -0
- package/dist/cs2/roads.js.map +1 -0
- package/dist/cs2/terrain.d.ts +37 -0
- package/dist/cs2/terrain.js +91 -0
- package/dist/cs2/terrain.js.map +1 -0
- package/dist/cs2/types.d.ts +444 -0
- package/dist/cs2/types.js +22 -0
- package/dist/cs2/types.js.map +1 -0
- package/dist/cs2/water.d.ts +26 -0
- package/dist/cs2/water.js +58 -0
- package/dist/cs2/water.js.map +1 -0
- package/dist/currency.d.ts +94 -0
- package/dist/currency.js +425 -0
- package/dist/currency.js.map +1 -0
- package/dist/dev/devServer.d.ts +53 -0
- package/dist/dev/devServer.js +228 -0
- package/dist/dev/devServer.js.map +1 -0
- package/dist/dev/shellPage.d.ts +3 -0
- package/dist/dev/shellPage.js +297 -0
- package/dist/dev/shellPage.js.map +1 -0
- package/dist/dev/state.d.ts +84 -0
- package/dist/dev/state.js +265 -0
- package/dist/dev/state.js.map +1 -0
- package/dist/device.d.ts +104 -0
- package/dist/device.js +2744 -0
- package/dist/device.js.map +1 -0
- package/dist/deviceActionValidation.d.ts +21 -0
- package/dist/deviceActionValidation.js +460 -0
- package/dist/deviceActionValidation.js.map +1 -0
- package/dist/distribution.d.ts +69 -0
- package/dist/distribution.js +138 -0
- package/dist/distribution.js.map +1 -0
- package/dist/enginePins.d.ts +45 -0
- package/dist/enginePins.js +134 -0
- package/dist/enginePins.js.map +1 -0
- package/dist/gesture/axisReference.d.ts +22 -0
- package/dist/gesture/axisReference.js +32 -0
- package/dist/gesture/axisReference.js.map +1 -0
- package/dist/gesture/capture.d.ts +84 -0
- package/dist/gesture/capture.js +303 -0
- package/dist/gesture/capture.js.map +1 -0
- package/dist/gesture/harnessPage.d.ts +23 -0
- package/dist/gesture/harnessPage.js +153 -0
- package/dist/gesture/harnessPage.js.map +1 -0
- package/dist/gesture/inspect.d.ts +189 -0
- package/dist/gesture/inspect.js +678 -0
- package/dist/gesture/inspect.js.map +1 -0
- package/dist/gesture/rig.d.ts +12 -0
- package/dist/gesture/rig.js +111 -0
- package/dist/gesture/rig.js.map +1 -0
- package/dist/gesture/worldRuntime.d.ts +65 -0
- package/dist/gesture/worldRuntime.js +110 -0
- package/dist/gesture/worldRuntime.js.map +1 -0
- package/dist/glb/draw-calls.d.ts +60 -0
- package/dist/glb/draw-calls.js +160 -0
- package/dist/glb/draw-calls.js.map +1 -0
- package/dist/glb/glb-summary.d.ts +68 -0
- package/dist/glb/glb-summary.js +450 -0
- package/dist/glb/glb-summary.js.map +1 -0
- package/dist/glb/index.d.ts +12 -0
- package/dist/glb/index.js +24 -0
- package/dist/glb/index.js.map +1 -0
- package/dist/glb/smooth-normals.d.ts +98 -0
- package/dist/glb/smooth-normals.js +395 -0
- package/dist/glb/smooth-normals.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6786 -128
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +35 -1
- package/dist/init.js +1115 -47
- package/dist/init.js.map +1 -1
- package/dist/install.d.ts +16 -5
- package/dist/install.js +123 -23
- package/dist/install.js.map +1 -1
- package/dist/interactable.d.ts +154 -0
- package/dist/interactable.js +1219 -0
- package/dist/interactable.js.map +1 -0
- package/dist/item.d.ts +217 -0
- package/dist/item.js +892 -0
- package/dist/item.js.map +1 -0
- package/dist/itemDef/distribute.d.ts +17 -0
- package/dist/itemDef/distribute.js +29 -0
- package/dist/itemDef/distribute.js.map +1 -0
- package/dist/itemDef/emoteRules.d.ts +85 -0
- package/dist/itemDef/emoteRules.js +368 -0
- package/dist/itemDef/emoteRules.js.map +1 -0
- package/dist/itemDef/gunConfigRules.d.ts +24 -0
- package/dist/itemDef/gunConfigRules.js +300 -0
- package/dist/itemDef/gunConfigRules.js.map +1 -0
- package/dist/itemDef/inspect.d.ts +19 -0
- package/dist/itemDef/inspect.js +144 -0
- package/dist/itemDef/inspect.js.map +1 -0
- package/dist/itemDef/scaffold.d.ts +41 -0
- package/dist/itemDef/scaffold.js +303 -0
- package/dist/itemDef/scaffold.js.map +1 -0
- package/dist/itemDef/tables.d.ts +81 -0
- package/dist/itemDef/tables.js +226 -0
- package/dist/itemDef/tables.js.map +1 -0
- package/dist/itemDef/validate.d.ts +30 -0
- package/dist/itemDef/validate.js +175 -0
- package/dist/itemDef/validate.js.map +1 -0
- package/dist/itemPublishVersion.d.ts +46 -0
- package/dist/itemPublishVersion.js +242 -0
- package/dist/itemPublishVersion.js.map +1 -0
- package/dist/itemSearch.d.ts +128 -0
- package/dist/itemSearch.js +140 -0
- package/dist/itemSearch.js.map +1 -0
- package/dist/itemSetVersion.d.ts +42 -0
- package/dist/itemSetVersion.js +94 -0
- package/dist/itemSetVersion.js.map +1 -0
- package/dist/itemThumbnail.d.ts +40 -0
- package/dist/itemThumbnail.js +116 -0
- package/dist/itemThumbnail.js.map +1 -0
- package/dist/lib.d.ts +571 -7
- package/dist/lib.js +1178 -15
- package/dist/lib.js.map +1 -1
- package/dist/looks.d.ts +103 -0
- package/dist/looks.js +102 -0
- package/dist/looks.js.map +1 -0
- package/dist/materials/availability.d.ts +8 -0
- package/dist/materials/availability.js +22 -0
- package/dist/materials/availability.js.map +1 -0
- package/dist/materials/identity.d.ts +30 -0
- package/dist/materials/identity.js +68 -0
- package/dist/materials/identity.js.map +1 -0
- package/dist/materials/pins.d.ts +23 -0
- package/dist/materials/pins.js +93 -0
- package/dist/materials/pins.js.map +1 -0
- package/dist/mesh/surfaceBvh.d.ts +13 -0
- package/dist/mesh/surfaceBvh.js +197 -0
- package/dist/mesh/surfaceBvh.js.map +1 -0
- package/dist/module-validation.d.ts +2 -0
- package/dist/module-validation.js +24 -0
- package/dist/module-validation.js.map +1 -0
- package/dist/money.d.ts +183 -0
- package/dist/money.js +299 -0
- package/dist/money.js.map +1 -0
- package/dist/npc/capture.d.ts +41 -0
- package/dist/npc/capture.js +99 -0
- package/dist/npc/capture.js.map +1 -0
- package/dist/npc/format.d.ts +2 -0
- package/dist/npc/format.js +102 -0
- package/dist/npc/format.js.map +1 -0
- package/dist/npc/inspect.d.ts +23 -0
- package/dist/npc/inspect.js +54 -0
- package/dist/npc/inspect.js.map +1 -0
- package/dist/npc/metrics.d.ts +132 -0
- package/dist/npc/metrics.js +214 -0
- package/dist/npc/metrics.js.map +1 -0
- package/dist/npc/session.d.ts +35 -0
- package/dist/npc/session.js +172 -0
- package/dist/npc/session.js.map +1 -0
- package/dist/pack/locomotionReference.d.ts +40 -0
- package/dist/pack/locomotionReference.js +132 -0
- package/dist/pack/locomotionReference.js.map +1 -0
- package/dist/pack/scaffold.d.ts +15 -0
- package/dist/pack/scaffold.js +144 -0
- package/dist/pack/scaffold.js.map +1 -0
- package/dist/pack/validate.d.ts +67 -0
- package/dist/pack/validate.js +317 -0
- package/dist/pack/validate.js.map +1 -0
- package/dist/package.d.ts +14 -1
- package/dist/package.js +106 -7
- package/dist/package.js.map +1 -1
- package/dist/paletteShowcase.d.ts +183 -0
- package/dist/paletteShowcase.js +454 -0
- package/dist/paletteShowcase.js.map +1 -0
- package/dist/paletteShowcaseProfiles.d.ts +112 -0
- package/dist/paletteShowcaseProfiles.js +121 -0
- package/dist/paletteShowcaseProfiles.js.map +1 -0
- package/dist/paths.d.ts +4 -0
- package/dist/paths.js +11 -0
- package/dist/paths.js.map +1 -0
- package/dist/placementRequest.d.ts +37 -0
- package/dist/placementRequest.js +220 -0
- package/dist/placementRequest.js.map +1 -0
- package/dist/placements/assets.d.ts +7 -0
- package/dist/placements/assets.js +114 -0
- package/dist/placements/assets.js.map +1 -0
- package/dist/placements/attachFoliageLods.d.ts +4 -0
- package/dist/placements/attachFoliageLods.js +70 -0
- package/dist/placements/attachFoliageLods.js.map +1 -0
- package/dist/placements/attachImpostors.d.ts +3 -0
- package/dist/placements/attachImpostors.js +51 -0
- package/dist/placements/attachImpostors.js.map +1 -0
- package/dist/placements/authored.d.ts +11 -0
- package/dist/placements/authored.js +65 -0
- package/dist/placements/authored.js.map +1 -0
- package/dist/placements/bake.d.ts +2 -0
- package/dist/placements/bake.js +235 -0
- package/dist/placements/bake.js.map +1 -0
- package/dist/placements/captureHost.d.ts +4 -0
- package/dist/placements/captureHost.js +125 -0
- package/dist/placements/captureHost.js.map +1 -0
- package/dist/placements/foliageCapture.d.ts +2 -0
- package/dist/placements/foliageCapture.js +98 -0
- package/dist/placements/foliageCapture.js.map +1 -0
- package/dist/placements/foliageCards.d.ts +17 -0
- package/dist/placements/foliageCards.js +120 -0
- package/dist/placements/foliageCards.js.map +1 -0
- package/dist/placements/foliageLods.d.ts +8 -0
- package/dist/placements/foliageLods.js +240 -0
- package/dist/placements/foliageLods.js.map +1 -0
- package/dist/placements/foliageTexture.d.ts +4 -0
- package/dist/placements/foliageTexture.js +91 -0
- package/dist/placements/foliageTexture.js.map +1 -0
- package/dist/placements/impostorCapture.d.ts +2 -0
- package/dist/placements/impostorCapture.js +111 -0
- package/dist/placements/impostorCapture.js.map +1 -0
- package/dist/placements/impostors.d.ts +18 -0
- package/dist/placements/impostors.js +279 -0
- package/dist/placements/impostors.js.map +1 -0
- package/dist/placements/source.d.ts +53 -0
- package/dist/placements/source.js +111 -0
- package/dist/placements/source.js.map +1 -0
- package/dist/product.d.ts +84 -0
- package/dist/product.js +285 -0
- package/dist/product.js.map +1 -0
- package/dist/publications.d.ts +116 -0
- package/dist/publications.js +180 -0
- package/dist/publications.js.map +1 -0
- package/dist/publishDuplicateGuard.d.ts +92 -0
- package/dist/publishDuplicateGuard.js +128 -0
- package/dist/publishDuplicateGuard.js.map +1 -0
- package/dist/realizability.d.ts +36 -0
- package/dist/realizability.js +269 -0
- package/dist/realizability.js.map +1 -0
- package/dist/resolve.d.ts +7 -1
- package/dist/resolve.js +77 -11
- package/dist/resolve.js.map +1 -1
- package/dist/sceneElements/compiler.d.ts +21 -0
- package/dist/sceneElements/compiler.js +976 -0
- package/dist/sceneElements/compiler.js.map +1 -0
- package/dist/sceneElements/continuum.d.ts +54 -0
- package/dist/sceneElements/continuum.js +451 -0
- package/dist/sceneElements/continuum.js.map +1 -0
- package/dist/sceneElements/devices.d.ts +12 -0
- package/dist/sceneElements/devices.js +212 -0
- package/dist/sceneElements/devices.js.map +1 -0
- package/dist/sceneElements/meshCells.d.ts +49 -0
- package/dist/sceneElements/meshCells.js +174 -0
- package/dist/sceneElements/meshCells.js.map +1 -0
- package/dist/sceneElements/types.d.ts +261 -0
- package/dist/sceneElements/types.js +3 -0
- package/dist/sceneElements/types.js.map +1 -0
- package/dist/sceneHlod/approximate.d.ts +23 -0
- package/dist/sceneHlod/approximate.js +171 -0
- package/dist/sceneHlod/approximate.js.map +1 -0
- package/dist/sceneHlod/artifact.d.ts +3 -0
- package/dist/sceneHlod/artifact.js +29 -0
- package/dist/sceneHlod/artifact.js.map +1 -0
- package/dist/sceneHlod/bakeSurface.d.ts +2 -0
- package/dist/sceneHlod/bakeSurface.js +59 -0
- package/dist/sceneHlod/bakeSurface.js.map +1 -0
- package/dist/sceneHlod/basisEncoder.d.ts +3 -0
- package/dist/sceneHlod/basisEncoder.js +68 -0
- package/dist/sceneHlod/basisEncoder.js.map +1 -0
- package/dist/sceneHlod/cellArtifact.d.ts +17 -0
- package/dist/sceneHlod/cellArtifact.js +78 -0
- package/dist/sceneHlod/cellArtifact.js.map +1 -0
- package/dist/sceneHlod/commands.d.ts +2 -0
- package/dist/sceneHlod/commands.js +114 -0
- package/dist/sceneHlod/commands.js.map +1 -0
- package/dist/sceneHlod/complete.d.ts +78 -0
- package/dist/sceneHlod/complete.js +261 -0
- package/dist/sceneHlod/complete.js.map +1 -0
- package/dist/sceneHlod/completePrototype.d.ts +39 -0
- package/dist/sceneHlod/completePrototype.js +121 -0
- package/dist/sceneHlod/completePrototype.js.map +1 -0
- package/dist/sceneHlod/geometry.d.ts +6 -0
- package/dist/sceneHlod/geometry.js +101 -0
- package/dist/sceneHlod/geometry.js.map +1 -0
- package/dist/sceneHlod/imageSampling.d.ts +11 -0
- package/dist/sceneHlod/imageSampling.js +100 -0
- package/dist/sceneHlod/imageSampling.js.map +1 -0
- package/dist/sceneHlod/refinement.d.ts +46 -0
- package/dist/sceneHlod/refinement.js +204 -0
- package/dist/sceneHlod/refinement.js.map +1 -0
- package/dist/sceneHlod/scene.d.ts +80 -0
- package/dist/sceneHlod/scene.js +264 -0
- package/dist/sceneHlod/scene.js.map +1 -0
- package/dist/sceneHlod/sharedAtlas.d.ts +37 -0
- package/dist/sceneHlod/sharedAtlas.js +84 -0
- package/dist/sceneHlod/sharedAtlas.js.map +1 -0
- package/dist/sceneHlod/source.d.ts +17 -0
- package/dist/sceneHlod/source.js +241 -0
- package/dist/sceneHlod/source.js.map +1 -0
- package/dist/sceneHlod/textureCodec.d.ts +4 -0
- package/dist/sceneHlod/textureCodec.js +66 -0
- package/dist/sceneHlod/textureCodec.js.map +1 -0
- package/dist/sceneHlod/transfer.d.ts +8 -0
- package/dist/sceneHlod/transfer.js +147 -0
- package/dist/sceneHlod/transfer.js.map +1 -0
- package/dist/sceneHlod/types.d.ts +69 -0
- package/dist/sceneHlod/types.js +3 -0
- package/dist/sceneHlod/types.js.map +1 -0
- package/dist/sceneImport/archive.d.ts +30 -0
- package/dist/sceneImport/archive.js +336 -0
- package/dist/sceneImport/archive.js.map +1 -0
- package/dist/sceneImport/bistroMaterialBake.d.ts +20 -0
- package/dist/sceneImport/bistroMaterialBake.js +169 -0
- package/dist/sceneImport/bistroMaterialBake.js.map +1 -0
- package/dist/sceneImport/bistroTexturePlan.d.ts +6 -0
- package/dist/sceneImport/bistroTexturePlan.js +23 -0
- package/dist/sceneImport/bistroTexturePlan.js.map +1 -0
- package/dist/sceneImport/compiler.d.ts +36 -0
- package/dist/sceneImport/compiler.js +251 -0
- package/dist/sceneImport/compiler.js.map +1 -0
- package/dist/sceneImport/composeMounts.d.ts +159 -0
- package/dist/sceneImport/composeMounts.js +687 -0
- package/dist/sceneImport/composeMounts.js.map +1 -0
- package/dist/sceneImport/defaultMaterials.d.ts +45 -0
- package/dist/sceneImport/defaultMaterials.js +121 -0
- package/dist/sceneImport/defaultMaterials.js.map +1 -0
- package/dist/sceneImport/externalTextures.d.ts +44 -0
- package/dist/sceneImport/externalTextures.js +146 -0
- package/dist/sceneImport/externalTextures.js.map +1 -0
- package/dist/sceneImport/fbx.d.ts +101 -0
- package/dist/sceneImport/fbx.js +307 -0
- package/dist/sceneImport/fbx.js.map +1 -0
- package/dist/sceneImport/glbSplit.d.ts +24 -0
- package/dist/sceneImport/glbSplit.js +95 -0
- package/dist/sceneImport/glbSplit.js.map +1 -0
- package/dist/sceneImport/gltfIo.d.ts +32 -0
- package/dist/sceneImport/gltfIo.js +39 -0
- package/dist/sceneImport/gltfIo.js.map +1 -0
- package/dist/sceneImport/helsinkiTiles.d.ts +31 -0
- package/dist/sceneImport/helsinkiTiles.js +52 -0
- package/dist/sceneImport/helsinkiTiles.js.map +1 -0
- package/dist/sceneImport/materials/binding.d.ts +16 -0
- package/dist/sceneImport/materials/binding.js +42 -0
- package/dist/sceneImport/materials/binding.js.map +1 -0
- package/dist/sceneImport/materials/catalog.d.ts +36 -0
- package/dist/sceneImport/materials/catalog.js +233 -0
- package/dist/sceneImport/materials/catalog.js.map +1 -0
- package/dist/sceneImport/materials/index.d.ts +4 -0
- package/dist/sceneImport/materials/index.js +21 -0
- package/dist/sceneImport/materials/index.js.map +1 -0
- package/dist/sceneImport/materials/matcher.d.ts +33 -0
- package/dist/sceneImport/materials/matcher.js +127 -0
- package/dist/sceneImport/materials/matcher.js.map +1 -0
- package/dist/sceneImport/materials/recipe.d.ts +30 -0
- package/dist/sceneImport/materials/recipe.js +134 -0
- package/dist/sceneImport/materials/recipe.js.map +1 -0
- package/dist/sceneImport/multiAsset.d.ts +79 -0
- package/dist/sceneImport/multiAsset.js +535 -0
- package/dist/sceneImport/multiAsset.js.map +1 -0
- package/dist/sceneImport/multiAssetSpawn.d.ts +40 -0
- package/dist/sceneImport/multiAssetSpawn.js +98 -0
- package/dist/sceneImport/multiAssetSpawn.js.map +1 -0
- package/dist/sceneImport/obj.d.ts +41 -0
- package/dist/sceneImport/obj.js +276 -0
- package/dist/sceneImport/obj.js.map +1 -0
- package/dist/sceneImport/package.d.ts +104 -0
- package/dist/sceneImport/package.js +1004 -0
- package/dist/sceneImport/package.js.map +1 -0
- package/dist/sceneImport/packageReader.d.ts +10 -0
- package/dist/sceneImport/packageReader.js +250 -0
- package/dist/sceneImport/packageReader.js.map +1 -0
- package/dist/sceneImport/proxy.d.ts +100 -0
- package/dist/sceneImport/proxy.js +334 -0
- package/dist/sceneImport/proxy.js.map +1 -0
- package/dist/sceneImport/publish.d.ts +47 -0
- package/dist/sceneImport/publish.js +98 -0
- package/dist/sceneImport/publish.js.map +1 -0
- package/dist/sceneImport/semantic.d.ts +75 -0
- package/dist/sceneImport/semantic.js +296 -0
- package/dist/sceneImport/semantic.js.map +1 -0
- package/dist/sceneImport/spawnProbe.d.ts +55 -0
- package/dist/sceneImport/spawnProbe.js +159 -0
- package/dist/sceneImport/spawnProbe.js.map +1 -0
- package/dist/sceneImport/streamLayout.d.ts +96 -0
- package/dist/sceneImport/streamLayout.js +203 -0
- package/dist/sceneImport/streamLayout.js.map +1 -0
- package/dist/sceneImport/textureDecode.d.ts +21 -0
- package/dist/sceneImport/textureDecode.js +292 -0
- package/dist/sceneImport/textureDecode.js.map +1 -0
- package/dist/sceneImport/types.d.ts +84 -0
- package/dist/sceneImport/types.js +58 -0
- package/dist/sceneImport/types.js.map +1 -0
- package/dist/scenePerformance.d.ts +162 -0
- package/dist/scenePerformance.js +905 -0
- package/dist/scenePerformance.js.map +1 -0
- package/dist/screenshot/captureScreenshots.d.ts +36 -0
- package/dist/screenshot/captureScreenshots.js +229 -0
- package/dist/screenshot/captureScreenshots.js.map +1 -0
- package/dist/screenshot/encodeImagePreview.d.ts +5 -0
- package/dist/screenshot/encodeImagePreview.js +42 -0
- package/dist/screenshot/encodeImagePreview.js.map +1 -0
- package/dist/screenshot/publishThumbnail.d.ts +4 -0
- package/dist/screenshot/publishThumbnail.js +56 -0
- package/dist/screenshot/publishThumbnail.js.map +1 -0
- package/dist/screenshot/staticServe.d.ts +14 -0
- package/dist/screenshot/staticServe.js +120 -0
- package/dist/screenshot/staticServe.js.map +1 -0
- package/dist/source-archive.d.ts +101 -0
- package/dist/source-archive.js +309 -0
- package/dist/source-archive.js.map +1 -0
- package/dist/stdioBlocking.d.ts +1 -0
- package/dist/stdioBlocking.js +9 -0
- package/dist/stdioBlocking.js.map +1 -0
- package/dist/terrain/bake.d.ts +40 -0
- package/dist/terrain/bake.js +318 -0
- package/dist/terrain/bake.js.map +1 -0
- package/dist/terrain/generate.d.ts +21 -0
- package/dist/terrain/generate.js +239 -0
- package/dist/terrain/generate.js.map +1 -0
- package/dist/terrain/grid.d.ts +48 -0
- package/dist/terrain/grid.js +133 -0
- package/dist/terrain/grid.js.map +1 -0
- package/dist/terrain/import.d.ts +40 -0
- package/dist/terrain/import.js +252 -0
- package/dist/terrain/import.js.map +1 -0
- package/dist/terrain/index.d.ts +11 -0
- package/dist/terrain/index.js +88 -0
- package/dist/terrain/index.js.map +1 -0
- package/dist/terrain/inspect.d.ts +35 -0
- package/dist/terrain/inspect.js +115 -0
- package/dist/terrain/inspect.js.map +1 -0
- package/dist/terrain/island.d.ts +31 -0
- package/dist/terrain/island.js +128 -0
- package/dist/terrain/island.js.map +1 -0
- package/dist/terrain/noise.d.ts +79 -0
- package/dist/terrain/noise.js +162 -0
- package/dist/terrain/noise.js.map +1 -0
- package/dist/terrain/normals.d.ts +21 -0
- package/dist/terrain/normals.js +55 -0
- package/dist/terrain/normals.js.map +1 -0
- package/dist/terrain/presets/alpine.json +20 -0
- package/dist/terrain/presets/coast.json +20 -0
- package/dist/terrain/presets/desert.json +22 -0
- package/dist/terrain/presets/forest.json +20 -0
- package/dist/terrain/presets/meadow.json +20 -0
- package/dist/terrain/presets/volcanic.json +22 -0
- package/dist/terrain/presets.d.ts +29 -0
- package/dist/terrain/presets.js +128 -0
- package/dist/terrain/presets.js.map +1 -0
- package/dist/terrain/source.d.ts +42 -0
- package/dist/terrain/source.js +241 -0
- package/dist/terrain/source.js.map +1 -0
- package/dist/terrain/tile.d.ts +92 -0
- package/dist/terrain/tile.js +268 -0
- package/dist/terrain/tile.js.map +1 -0
- package/dist/textureAudit.d.ts +23 -0
- package/dist/textureAudit.js +192 -0
- package/dist/textureAudit.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/unreal/avatarMode.d.ts +21 -0
- package/dist/unreal/avatarMode.js +33 -0
- package/dist/unreal/avatarMode.js.map +1 -0
- package/dist/unreal/delivery.d.ts +46 -0
- package/dist/unreal/delivery.js +89 -0
- package/dist/unreal/delivery.js.map +1 -0
- package/dist/unreal/doctor.d.ts +50 -0
- package/dist/unreal/doctor.js +102 -0
- package/dist/unreal/doctor.js.map +1 -0
- package/dist/unreal/package.d.ts +80 -0
- package/dist/unreal/package.js +273 -0
- package/dist/unreal/package.js.map +1 -0
- package/dist/unreal/release.d.ts +41 -0
- package/dist/unreal/release.js +122 -0
- package/dist/unreal/release.js.map +1 -0
- package/dist/unreal.d.ts +30 -0
- package/dist/unreal.js +362 -0
- package/dist/unreal.js.map +1 -0
- package/dist/unrealCandidate.d.ts +213 -0
- package/dist/unrealCandidate.js +765 -0
- package/dist/unrealCandidate.js.map +1 -0
- package/dist/unrealManifest.d.ts +74 -0
- package/dist/unrealManifest.js +354 -0
- package/dist/unrealManifest.js.map +1 -0
- package/dist/unrealPublish.d.ts +111 -0
- package/dist/unrealPublish.js +331 -0
- package/dist/unrealPublish.js.map +1 -0
- package/dist/vault.d.ts +121 -0
- package/dist/vault.js +136 -0
- package/dist/vault.js.map +1 -0
- package/dist/vehicle/addOnDefinition.d.ts +19 -0
- package/dist/vehicle/addOnDefinition.js +21 -0
- package/dist/vehicle/addOnDefinition.js.map +1 -0
- package/dist/vehicle/addon.d.ts +158 -0
- package/dist/vehicle/addon.js +441 -0
- package/dist/vehicle/addon.js.map +1 -0
- package/dist/vehicle/addonDefinitionGuard.d.ts +53 -0
- package/dist/vehicle/addonDefinitionGuard.js +206 -0
- package/dist/vehicle/addonDefinitionGuard.js.map +1 -0
- package/dist/vehicle/addonPublished.d.ts +80 -0
- package/dist/vehicle/addonPublished.js +221 -0
- package/dist/vehicle/addonPublished.js.map +1 -0
- package/dist/vehicle/audio.d.ts +259 -0
- package/dist/vehicle/audio.js +1069 -0
- package/dist/vehicle/audio.js.map +1 -0
- package/dist/vehicle/audioDefects.d.ts +125 -0
- package/dist/vehicle/audioDefects.js +591 -0
- package/dist/vehicle/audioDefects.js.map +1 -0
- package/dist/vehicle/audioDistinct.d.ts +62 -0
- package/dist/vehicle/audioDistinct.js +479 -0
- package/dist/vehicle/audioDistinct.js.map +1 -0
- package/dist/vehicle/audioImport.d.ts +217 -0
- package/dist/vehicle/audioImport.js +610 -0
- package/dist/vehicle/audioImport.js.map +1 -0
- package/dist/vehicle/audioProvenance.d.ts +47 -0
- package/dist/vehicle/audioProvenance.js +364 -0
- package/dist/vehicle/audioProvenance.js.map +1 -0
- package/dist/vehicle/audioReference.d.ts +36 -0
- package/dist/vehicle/audioReference.js +176 -0
- package/dist/vehicle/audioReference.js.map +1 -0
- package/dist/vehicle/audioSlots.d.ts +27 -0
- package/dist/vehicle/audioSlots.js +43 -0
- package/dist/vehicle/audioSlots.js.map +1 -0
- package/dist/vehicle/audioSpectral.d.ts +71 -0
- package/dist/vehicle/audioSpectral.js +534 -0
- package/dist/vehicle/audioSpectral.js.map +1 -0
- package/dist/vehicle/cabinCheck.d.ts +209 -0
- package/dist/vehicle/cabinCheck.js +799 -0
- package/dist/vehicle/cabinCheck.js.map +1 -0
- package/dist/vehicle/drive.d.ts +66 -0
- package/dist/vehicle/drive.js +228 -0
- package/dist/vehicle/drive.js.map +1 -0
- package/dist/vehicle/enginePolicy.d.ts +68 -0
- package/dist/vehicle/enginePolicy.js +209 -0
- package/dist/vehicle/enginePolicy.js.map +1 -0
- package/dist/vehicle/hostFrame.d.ts +78 -0
- package/dist/vehicle/hostFrame.js +136 -0
- package/dist/vehicle/hostFrame.js.map +1 -0
- package/dist/vehicle/inspectionSheets.d.ts +42 -0
- package/dist/vehicle/inspectionSheets.js +173 -0
- package/dist/vehicle/inspectionSheets.js.map +1 -0
- package/dist/vehicle/keyboardLaunch.d.ts +189 -0
- package/dist/vehicle/keyboardLaunch.js +340 -0
- package/dist/vehicle/keyboardLaunch.js.map +1 -0
- package/dist/vehicle/lampCoverage.d.ts +49 -0
- package/dist/vehicle/lampCoverage.js +252 -0
- package/dist/vehicle/lampCoverage.js.map +1 -0
- package/dist/vehicle/mintAddOn.d.ts +110 -0
- package/dist/vehicle/mintAddOn.js +321 -0
- package/dist/vehicle/mintAddOn.js.map +1 -0
- package/dist/vehicle/mintVehicle.d.ts +189 -0
- package/dist/vehicle/mintVehicle.js +417 -0
- package/dist/vehicle/mintVehicle.js.map +1 -0
- package/dist/vehicle/paintHue.d.ts +89 -0
- package/dist/vehicle/paintHue.js +248 -0
- package/dist/vehicle/paintHue.js.map +1 -0
- package/dist/vehicle/panelCoverage.d.ts +37 -0
- package/dist/vehicle/panelCoverage.js +93 -0
- package/dist/vehicle/panelCoverage.js.map +1 -0
- package/dist/vehicle/platform.d.ts +71 -0
- package/dist/vehicle/platform.js +144 -0
- package/dist/vehicle/platform.js.map +1 -0
- package/dist/vehicle/preview.d.ts +339 -0
- package/dist/vehicle/preview.js +854 -0
- package/dist/vehicle/preview.js.map +1 -0
- package/dist/vehicle/previewAddon.d.ts +197 -0
- package/dist/vehicle/previewAddon.js +520 -0
- package/dist/vehicle/previewAddon.js.map +1 -0
- package/dist/vehicle/previewSeats.d.ts +102 -0
- package/dist/vehicle/previewSeats.js +190 -0
- package/dist/vehicle/previewSeats.js.map +1 -0
- package/dist/vehicle/publish.d.ts +78 -0
- package/dist/vehicle/publish.js +111 -0
- package/dist/vehicle/publish.js.map +1 -0
- package/dist/vehicle/recheckListed.d.ts +87 -0
- package/dist/vehicle/recheckListed.js +200 -0
- package/dist/vehicle/recheckListed.js.map +1 -0
- package/dist/vehicle/renditionManifest.d.ts +10 -0
- package/dist/vehicle/renditionManifest.js +56 -0
- package/dist/vehicle/renditionManifest.js.map +1 -0
- package/dist/vehicle/sealCheck.d.ts +30 -0
- package/dist/vehicle/sealCheck.js +59 -0
- package/dist/vehicle/sealCheck.js.map +1 -0
- package/dist/vehicle/simulate.d.ts +219 -0
- package/dist/vehicle/simulate.js +536 -0
- package/dist/vehicle/simulate.js.map +1 -0
- package/dist/vehicle/simulateRuntime.d.ts +76 -0
- package/dist/vehicle/simulateRuntime.js +252 -0
- package/dist/vehicle/simulateRuntime.js.map +1 -0
- package/dist/vehicle/testutil/sourcedAudio.d.ts +13 -0
- package/dist/vehicle/testutil/sourcedAudio.js +96 -0
- package/dist/vehicle/testutil/sourcedAudio.js.map +1 -0
- package/dist/vehicle/validate.d.ts +225 -0
- package/dist/vehicle/validate.js +956 -0
- package/dist/vehicle/validate.js.map +1 -0
- package/dist/vehicle/wheelDesign.d.ts +98 -0
- package/dist/vehicle/wheelDesign.js +276 -0
- package/dist/vehicle/wheelDesign.js.map +1 -0
- package/dist/verifySubPath.d.ts +69 -0
- package/dist/verifySubPath.js +458 -0
- package/dist/verifySubPath.js.map +1 -0
- package/dist/visualQa/animation.d.ts +57 -0
- package/dist/visualQa/animation.js +503 -0
- package/dist/visualQa/animation.js.map +1 -0
- package/dist/visualQa/avatar.d.ts +3 -0
- package/dist/visualQa/avatar.js +443 -0
- package/dist/visualQa/avatar.js.map +1 -0
- package/dist/visualQa/avatarMath.d.ts +180 -0
- package/dist/visualQa/avatarMath.js +318 -0
- package/dist/visualQa/avatarMath.js.map +1 -0
- package/dist/visualQa/avatarPreview.d.ts +26 -0
- package/dist/visualQa/avatarPreview.js +167 -0
- package/dist/visualQa/avatarPreview.js.map +1 -0
- package/dist/visualQa/avatarPreviewMath.d.ts +189 -0
- package/dist/visualQa/avatarPreviewMath.js +696 -0
- package/dist/visualQa/avatarPreviewMath.js.map +1 -0
- package/dist/visualQa/avatarPreviewProbe.d.ts +7 -0
- package/dist/visualQa/avatarPreviewProbe.js +181 -0
- package/dist/visualQa/avatarPreviewProbe.js.map +1 -0
- package/dist/visualQa/avatarProbe.d.ts +1 -0
- package/dist/visualQa/avatarProbe.js +264 -0
- package/dist/visualQa/avatarProbe.js.map +1 -0
- package/dist/visualQa/browser.d.ts +116 -0
- package/dist/visualQa/browser.js +817 -0
- package/dist/visualQa/browser.js.map +1 -0
- package/dist/visualQa/candidate.d.ts +116 -0
- package/dist/visualQa/candidate.js +265 -0
- package/dist/visualQa/candidate.js.map +1 -0
- package/dist/visualQa/checklists.d.ts +31 -0
- package/dist/visualQa/checklists.js +160 -0
- package/dist/visualQa/checklists.js.map +1 -0
- package/dist/visualQa/command.d.ts +110 -0
- package/dist/visualQa/command.js +521 -0
- package/dist/visualQa/command.js.map +1 -0
- package/dist/visualQa/commonAsserts.d.ts +68 -0
- package/dist/visualQa/commonAsserts.js +239 -0
- package/dist/visualQa/commonAsserts.js.map +1 -0
- package/dist/visualQa/contactSheet.d.ts +32 -0
- package/dist/visualQa/contactSheet.js +153 -0
- package/dist/visualQa/contactSheet.js.map +1 -0
- package/dist/visualQa/critic.d.ts +18 -0
- package/dist/visualQa/critic.js +179 -0
- package/dist/visualQa/critic.js.map +1 -0
- package/dist/visualQa/emotePage.d.ts +10 -0
- package/dist/visualQa/emotePage.js +249 -0
- package/dist/visualQa/emotePage.js.map +1 -0
- package/dist/visualQa/evidenceOverlay.d.ts +74 -0
- package/dist/visualQa/evidenceOverlay.js +268 -0
- package/dist/visualQa/evidenceOverlay.js.map +1 -0
- package/dist/visualQa/harness.d.ts +57 -0
- package/dist/visualQa/harness.js +3 -0
- package/dist/visualQa/harness.js.map +1 -0
- package/dist/visualQa/hosted.d.ts +152 -0
- package/dist/visualQa/hosted.js +367 -0
- package/dist/visualQa/hosted.js.map +1 -0
- package/dist/visualQa/labelLimit.d.ts +12 -0
- package/dist/visualQa/labelLimit.js +31 -0
- package/dist/visualQa/labelLimit.js.map +1 -0
- package/dist/visualQa/mirror.d.ts +36 -0
- package/dist/visualQa/mirror.js +98 -0
- package/dist/visualQa/mirror.js.map +1 -0
- package/dist/visualQa/moveUx.d.ts +44 -0
- package/dist/visualQa/moveUx.js +103 -0
- package/dist/visualQa/moveUx.js.map +1 -0
- package/dist/visualQa/pinnedChrome.d.ts +63 -0
- package/dist/visualQa/pinnedChrome.js +214 -0
- package/dist/visualQa/pinnedChrome.js.map +1 -0
- package/dist/visualQa/resolve.d.ts +88 -0
- package/dist/visualQa/resolve.js +248 -0
- package/dist/visualQa/resolve.js.map +1 -0
- package/dist/visualQa/scene.d.ts +14 -0
- package/dist/visualQa/scene.js +688 -0
- package/dist/visualQa/scene.js.map +1 -0
- package/dist/visualQa/shot.d.ts +2 -0
- package/dist/visualQa/shot.js +27 -0
- package/dist/visualQa/shot.js.map +1 -0
- package/dist/visualQa/signIn.d.ts +35 -0
- package/dist/visualQa/signIn.js +144 -0
- package/dist/visualQa/signIn.js.map +1 -0
- package/dist/visualQa/submitBudget.d.ts +25 -0
- package/dist/visualQa/submitBudget.js +82 -0
- package/dist/visualQa/submitBudget.js.map +1 -0
- package/dist/visualQa/types.d.ts +195 -0
- package/dist/visualQa/types.js +12 -0
- package/dist/visualQa/types.js.map +1 -0
- package/dist/visualQa/vehicle.d.ts +130 -0
- package/dist/visualQa/vehicle.js +2001 -0
- package/dist/visualQa/vehicle.js.map +1 -0
- package/dist/visualQa/vehicleAddonProbe.d.ts +1 -0
- package/dist/visualQa/vehicleAddonProbe.js +115 -0
- package/dist/visualQa/vehicleAddonProbe.js.map +1 -0
- package/dist/visualQa/vehicleCabinFit.d.ts +78 -0
- package/dist/visualQa/vehicleCabinFit.js +55 -0
- package/dist/visualQa/vehicleCabinFit.js.map +1 -0
- package/dist/visualQa/vehicleClearance.d.ts +135 -0
- package/dist/visualQa/vehicleClearance.js +299 -0
- package/dist/visualQa/vehicleClearance.js.map +1 -0
- package/dist/visualQa/vehicleDriveAlive.d.ts +55 -0
- package/dist/visualQa/vehicleDriveAlive.js +103 -0
- package/dist/visualQa/vehicleDriveAlive.js.map +1 -0
- package/dist/visualQa/vehicleGrip.d.ts +156 -0
- package/dist/visualQa/vehicleGrip.js +439 -0
- package/dist/visualQa/vehicleGrip.js.map +1 -0
- package/dist/visualQa/vehicleInspection.d.ts +30 -0
- package/dist/visualQa/vehicleInspection.js +189 -0
- package/dist/visualQa/vehicleInspection.js.map +1 -0
- package/dist/visualQa/vehicleLamps.d.ts +118 -0
- package/dist/visualQa/vehicleLamps.js +374 -0
- package/dist/visualQa/vehicleLamps.js.map +1 -0
- package/dist/visualQa/vehicleMath.d.ts +440 -0
- package/dist/visualQa/vehicleMath.js +967 -0
- package/dist/visualQa/vehicleMath.js.map +1 -0
- package/dist/visualQa/vehicleOccupants.d.ts +66 -0
- package/dist/visualQa/vehicleOccupants.js +448 -0
- package/dist/visualQa/vehicleOccupants.js.map +1 -0
- package/dist/visualQa/vehiclePenetration.d.ts +172 -0
- package/dist/visualQa/vehiclePenetration.js +1157 -0
- package/dist/visualQa/vehiclePenetration.js.map +1 -0
- package/dist/visualQa/vehiclePoses.d.ts +25 -0
- package/dist/visualQa/vehiclePoses.js +56 -0
- package/dist/visualQa/vehiclePoses.js.map +1 -0
- package/dist/visualQa/vehiclePosture.d.ts +78 -0
- package/dist/visualQa/vehiclePosture.js +263 -0
- package/dist/visualQa/vehiclePosture.js.map +1 -0
- package/dist/visualQa/vehiclePreview.d.ts +103 -0
- package/dist/visualQa/vehiclePreview.js +312 -0
- package/dist/visualQa/vehiclePreview.js.map +1 -0
- package/dist/visualQa/vehicleProbe.d.ts +3 -0
- package/dist/visualQa/vehicleProbe.js +670 -0
- package/dist/visualQa/vehicleProbe.js.map +1 -0
- package/dist/visualQa/vehicleStance.d.ts +108 -0
- package/dist/visualQa/vehicleStance.js +200 -0
- package/dist/visualQa/vehicleStance.js.map +1 -0
- package/dist/visualQa/viewer.d.ts +6 -0
- package/dist/visualQa/viewer.js +750 -0
- package/dist/visualQa/viewer.js.map +1 -0
- package/dist/visualQa/viewerGeometry.d.ts +116 -0
- package/dist/visualQa/viewerGeometry.js +476 -0
- package/dist/visualQa/viewerGeometry.js.map +1 -0
- package/dist/visualQa/viewerPage.d.ts +11 -0
- package/dist/visualQa/viewerPage.js +414 -0
- package/dist/visualQa/viewerPage.js.map +1 -0
- package/dist/visualQa/webgpuSelfTest.d.ts +52 -0
- package/dist/visualQa/webgpuSelfTest.js +113 -0
- package/dist/visualQa/webgpuSelfTest.js.map +1 -0
- package/dist/visualQa/winChrome.d.ts +92 -0
- package/dist/visualQa/winChrome.js +445 -0
- package/dist/visualQa/winChrome.js.map +1 -0
- package/dist/visualQa/worldWalk.d.ts +59 -0
- package/dist/visualQa/worldWalk.js +523 -0
- package/dist/visualQa/worldWalk.js.map +1 -0
- package/dist/visualQa/worldWalkMath.d.ts +263 -0
- package/dist/visualQa/worldWalkMath.js +873 -0
- package/dist/visualQa/worldWalkMath.js.map +1 -0
- package/dist/visualQa/worldWalkProbe.d.ts +1 -0
- package/dist/visualQa/worldWalkProbe.js +206 -0
- package/dist/visualQa/worldWalkProbe.js.map +1 -0
- package/dist/visualsConfig.d.ts +65 -0
- package/dist/visualsConfig.js +1333 -0
- package/dist/visualsConfig.js.map +1 -0
- package/dist/voiceCommand.d.ts +11 -0
- package/dist/voiceCommand.js +101 -0
- package/dist/voiceCommand.js.map +1 -0
- package/dist/world/analyze.d.ts +51 -0
- package/dist/world/analyze.js +767 -0
- package/dist/world/analyze.js.map +1 -0
- package/dist/world/baseline.d.ts +33 -0
- package/dist/world/baseline.js +111 -0
- package/dist/world/baseline.js.map +1 -0
- package/dist/world/canonicalize.d.ts +7 -0
- package/dist/world/canonicalize.js +110 -0
- package/dist/world/canonicalize.js.map +1 -0
- package/dist/world/diff.d.ts +18 -0
- package/dist/world/diff.js +58 -0
- package/dist/world/diff.js.map +1 -0
- package/dist/world/focus.d.ts +11 -0
- package/dist/world/focus.js +161 -0
- package/dist/world/focus.js.map +1 -0
- package/dist/world/format.d.ts +6 -0
- package/dist/world/format.js +125 -0
- package/dist/world/format.js.map +1 -0
- package/dist/world/readWorldMetrics.d.ts +10 -0
- package/dist/world/readWorldMetrics.js +31 -0
- package/dist/world/readWorldMetrics.js.map +1 -0
- package/dist/world/snapshotTypes.d.ts +59 -0
- package/dist/world/snapshotTypes.js +8 -0
- package/dist/world/snapshotTypes.js.map +1 -0
- package/dist/world/snapshotWorld.d.ts +16 -0
- package/dist/world/snapshotWorld.js +142 -0
- package/dist/world/snapshotWorld.js.map +1 -0
- package/dist/world/wiring.d.ts +21 -0
- package/dist/world/wiring.js +73 -0
- package/dist/world/wiring.js.map +1 -0
- package/dist/world/zones.d.ts +23 -0
- package/dist/world/zones.js +134 -0
- package/dist/world/zones.js.map +1 -0
- package/docs/bridge.md +304 -0
- package/docs/device-hand-reach.md +44 -0
- package/docs/scene-hlod.md +139 -0
- package/docs/vehicle-audio-import.md +299 -0
- package/docs/vehicle-simulate.md +165 -0
- package/docs/visual-qa-candidate-versions.md +71 -0
- package/docs/visual-qa.md +462 -0
- package/package.json +69 -4
- package/plugins/beamng-vehicle/README.md +129 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_abs.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_engine.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_expression.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_jbeam.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_materials.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_stock_events.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/fmod_studio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/fsb5.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_ac.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_beamng.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_fixtures.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/test_beamng_engine.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/test_sim_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/beamng-vehicle.mjs +1295 -0
- package/plugins/beamng-vehicle/bin/beamng_abs.py +408 -0
- package/plugins/beamng-vehicle/bin/beamng_audio.py +394 -0
- package/plugins/beamng-vehicle/bin/beamng_engine.py +184 -0
- package/plugins/beamng-vehicle/bin/beamng_expression.py +373 -0
- package/plugins/beamng-vehicle/bin/beamng_jbeam.py +858 -0
- package/plugins/beamng-vehicle/bin/beamng_materials.py +261 -0
- package/plugins/beamng-vehicle/bin/beamng_stock_events.py +171 -0
- package/plugins/beamng-vehicle/bin/convert-beamng.py +1563 -0
- package/plugins/beamng-vehicle/bin/fmod_studio.py +524 -0
- package/plugins/beamng-vehicle/bin/fsb5.py +304 -0
- package/plugins/beamng-vehicle/bin/index-beamng-common.mjs +16 -0
- package/plugins/beamng-vehicle/bin/index-beamng.py +69 -0
- package/plugins/beamng-vehicle/bin/lower-beamng.py +2399 -0
- package/plugins/beamng-vehicle/bin/sim_audio.py +250 -0
- package/plugins/beamng-vehicle/bin/sim_audio_ac.py +378 -0
- package/plugins/beamng-vehicle/bin/sim_audio_beamng.py +878 -0
- package/plugins/beamng-vehicle/bin/sim_audio_fixtures.py +287 -0
- package/plugins/beamng-vehicle/bin/sim_audio_import.py +135 -0
- package/plugins/beamng-vehicle/bin/test_beamng_engine.py +124 -0
- package/plugins/beamng-vehicle/bin/test_beamng_jbeam.py +383 -0
- package/plugins/beamng-vehicle/bin/test_beamng_precedence.py +134 -0
- package/plugins/beamng-vehicle/bin/test_sim_audio.py +249 -0
- package/plugins/beamng-vehicle/bridge-plugin.json +55 -0
- package/plugins/beamng-vehicle/controller-adapters/beamng-0.39.4-abs.json +52 -0
- package/plugins/beamng-vehicle/lib/common-dependency.mjs +357 -0
- package/plugins/beamng-vehicle/lib/dae-scan.mjs +40 -0
- package/plugins/beamng-vehicle/lib/file-identity.mjs +46 -0
- package/plugins/beamng-vehicle/lib/material-semantics.mjs +312 -0
- package/plugins/beamng-vehicle/lib/palette-contract.mjs +6 -0
- package/plugins/beamng-vehicle/lib/vehicle-qa.mjs +567 -0
- package/plugins/beamng-vehicle/lib/vehicle-source.mjs +247 -0
- package/plugins/beamng-vehicle/profiles/source-compatibility.json +14 -0
- package/plugins/beamng-vehicle/vendor/vehicle-package-v2.mjs +6451 -0
- package/vendor/README.md +63 -0
- package/vendor/ability-manifest.mjs +527 -6
- package/vendor/audits/asset-credits.mjs +96 -0
- package/vendor/audits/check-loaders.mjs +80 -0
- package/vendor/audits/perf-gate.mjs +759 -0
- package/vendor/audits/prove-live.mjs +307 -0
- package/vendor/audits/source-audit.mjs +530 -0
- package/vendor/audits/world-audit.mjs +439 -0
- package/vendor/capture-body.glb +0 -0
- package/vendor/capture-face.glb +0 -0
- package/vendor/installed-index.mjs +1 -1
- package/vendor/vehicle-package-v2.mjs +6451 -0
|
@@ -0,0 +1,1295 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn, spawnSync } from 'node:child_process';
|
|
3
|
+
import { createHash } from 'node:crypto';
|
|
4
|
+
import { constants, copyFileSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, writeFileSync } from 'node:fs';
|
|
5
|
+
import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from 'node:path';
|
|
6
|
+
import { tmpdir } from 'node:os';
|
|
7
|
+
import process from 'node:process';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { auditVehicleGlb, injectVehicleMaterialBindings, injectVehicleReceipt, readVehicleReceipt } from '../lib/vehicle-qa.mjs';
|
|
10
|
+
import { inspectBeamngCommonDependency, materializeBeamngCommonDependency } from '../lib/common-dependency.mjs';
|
|
11
|
+
import { daeHasName } from '../lib/dae-scan.mjs';
|
|
12
|
+
import { SUPPORTED_PALETTE_CONTRACTS } from '../lib/palette-contract.mjs';
|
|
13
|
+
import { sha256FileSync } from '../lib/file-identity.mjs';
|
|
14
|
+
import { buildVehicleSourceManifest, markVehicleSourceFunctionallyLowered, BEAMNG_VEHICLE_SOURCE_SCHEMA } from '../lib/vehicle-source.mjs';
|
|
15
|
+
import { validateVehiclePackage } from '../vendor/vehicle-package-v2.mjs';
|
|
16
|
+
|
|
17
|
+
const MAX_FILES = 50_000;
|
|
18
|
+
const MAX_DAE = 12;
|
|
19
|
+
const MAX_CONVERTER_LOG_BYTES = 1024 * 1024;
|
|
20
|
+
const MAX_SELECTED_INDEX_SUMMARY_BYTES = 128 * 1024 * 1024;
|
|
21
|
+
const AUDIO_EXTENSIONS = new Set(['.wav', '.ogg', '.flac', '.mp3']);
|
|
22
|
+
const SHA256 = /^[a-f0-9]{64}$/;
|
|
23
|
+
const PORTABLE_CANDIDATE_ID = /^[a-z0-9](?:[a-z0-9_-]{0,126}[a-z0-9])?$/;
|
|
24
|
+
const WINDOWS_RESERVED_BASENAME = /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$/i;
|
|
25
|
+
const TERMINAL_PACKAGE_BINDING_SCHEMA = 'helix.beamng-terminal-package-binding/1';
|
|
26
|
+
const ABS_SOURCE_RECEIPT_BYTES = readFileSync(resolve(
|
|
27
|
+
dirname(fileURLToPath(import.meta.url)), '..', 'controller-adapters', 'beamng-0.39.4-abs.json',
|
|
28
|
+
));
|
|
29
|
+
if (createHash('sha256').update(ABS_SOURCE_RECEIPT_BYTES).digest('hex')
|
|
30
|
+
!== 'a5221e536221a7fbba16bd14f33490904138ae1fad52f6abaa5ae41057e1e317') {
|
|
31
|
+
throw new Error('BeamNG ABS controller source receipt does not match adapter v1');
|
|
32
|
+
}
|
|
33
|
+
const ABS_SOURCE_RECEIPT = JSON.parse(ABS_SOURCE_RECEIPT_BYTES.toString('utf8'));
|
|
34
|
+
|
|
35
|
+
function walk(root) {
|
|
36
|
+
const rows = [];
|
|
37
|
+
const visit = (dir) => {
|
|
38
|
+
for (const entry of readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
39
|
+
const path = join(dir, entry.name);
|
|
40
|
+
if (entry.isSymbolicLink()) throw new Error(`source contains a symlink: ${relative(root, path)}`);
|
|
41
|
+
if (entry.isDirectory()) visit(path);
|
|
42
|
+
else if (entry.isFile()) rows.push(path);
|
|
43
|
+
if (rows.length > MAX_FILES) throw new Error(`source contains more than ${MAX_FILES} files`);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
visit(root);
|
|
47
|
+
return rows;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function semanticCount(files, pattern) {
|
|
51
|
+
return files.reduce((count, path) => count + (pattern.test(basename(path).toLowerCase()) ? 1 : 0), 0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function daeHasAuthoredSteering(path) {
|
|
55
|
+
return daeHasName(path, /steer/i);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function daeHasAuthoredTyre(path) {
|
|
59
|
+
return daeHasName(path, /(?:tyre|tire)/i);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function commonGeometryRoot(root) {
|
|
63
|
+
if (!root || !existsSync(root)) return null;
|
|
64
|
+
const resolved = resolve(root);
|
|
65
|
+
const nested = join(resolved, 'vehicles', 'common');
|
|
66
|
+
return existsSync(nested) ? nested : resolved;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function daeHasAuthoredRoadWheel(path) {
|
|
70
|
+
return daeHasName(path, /(?:tyre|tire|(?<!steering)(?<!steering_)(?<!steer_)wheel(?!well)|(?<!t)rim)/i);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function authoredTyreDependency(root) {
|
|
74
|
+
const common = commonGeometryRoot(root);
|
|
75
|
+
if (!common) return null;
|
|
76
|
+
const candidates = walk(common).filter((path) => extname(path).toLowerCase() === '.dae'
|
|
77
|
+
&& daeHasAuthoredTyre(path));
|
|
78
|
+
return candidates.sort((a, b) => lstatSync(b).size - lstatSync(a).size || a.localeCompare(b))[0] ?? null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function authoredRoadWheelDependencies(root) {
|
|
82
|
+
const common = commonGeometryRoot(root);
|
|
83
|
+
if (!common) return [];
|
|
84
|
+
return walk(common).filter((path) => extname(path).toLowerCase() === '.dae' && daeHasAuthoredRoadWheel(path))
|
|
85
|
+
.sort((a, b) => Number(daeHasAuthoredTyre(b)) - Number(daeHasAuthoredTyre(a))
|
|
86
|
+
|| lstatSync(b).size - lstatSync(a).size || a.localeCompare(b))
|
|
87
|
+
.slice(0, 6);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function dependencyReceipt(path, source = null, commonDependency = null) {
|
|
91
|
+
if (!path) return null;
|
|
92
|
+
if (source && path.startsWith(`${resolve(source)}/`)) return relative(resolve(source), path);
|
|
93
|
+
if (commonDependency?.root && path.startsWith(`${resolve(commonDependency.root)}/`)) {
|
|
94
|
+
return `common-dependency:${relative(resolve(commonDependency.root), path)}@sha256:${commonDependency.closureSha256}`;
|
|
95
|
+
}
|
|
96
|
+
throw new Error(`BeamNG dependency path is outside the source and reviewed common closure: ${path}`);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function vehiclePalette(path) {
|
|
100
|
+
if (!path || !existsSync(path)) throw new Error('BeamNG vehicle import requires named input palette=<palette.json>');
|
|
101
|
+
let document;
|
|
102
|
+
try { document = JSON.parse(readFileSync(path, 'utf8')); }
|
|
103
|
+
catch (error) { throw new Error(`BeamNG Palette input is not valid JSON: ${error instanceof Error ? error.message : String(error)}`); }
|
|
104
|
+
if (!SUPPORTED_PALETTE_CONTRACTS.includes(document?.contract) || !Array.isArray(document.families)) {
|
|
105
|
+
throw new Error(`BeamNG Palette input contract must be ${SUPPORTED_PALETTE_CONTRACTS.map((id) => `'${id}'`).join(' or ')} with a families array`);
|
|
106
|
+
}
|
|
107
|
+
const required = ['vehicle-paint-metallic', 'vehicle-glass', 'tire-rubber', 'chrome', 'stainless-steel', 'aluminum-brushed',
|
|
108
|
+
'brake-rotor', 'brake-caliper-painted', 'vehicle-interior-plastic', 'vehicle-leather', 'vehicle-carpet',
|
|
109
|
+
'dashboard-soft-touch', 'headlamp-lens', 'taillamp-lens', 'underbody-coating', 'carbon-fiber'];
|
|
110
|
+
const families = new Map(document.families.map((family) => [family?.id, family]));
|
|
111
|
+
for (const id of required) {
|
|
112
|
+
const family = families.get(id);
|
|
113
|
+
const defaults = family?.shader?.defaults;
|
|
114
|
+
if (!family || typeof family.definitionVersion !== 'string'
|
|
115
|
+
|| !Number.isFinite(defaults?.roughness) || defaults.roughness < 0 || defaults.roughness > 1
|
|
116
|
+
|| !Number.isFinite(defaults?.metallic) || defaults.metallic < 0 || defaults.metallic > 1) {
|
|
117
|
+
throw new Error(`BeamNG Palette input has no valid reusable vehicle family '${id}'`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
path: resolve(path),
|
|
122
|
+
contract: document.contract,
|
|
123
|
+
familyVersions: Object.fromEntries(required.map((id) => [id, families.get(id).definitionVersion])),
|
|
124
|
+
familyDefaults: Object.fromEntries(required.map((id) => [id, {
|
|
125
|
+
roughness: families.get(id).shader.defaults.roughness,
|
|
126
|
+
metallic: families.get(id).shader.defaults.metallic,
|
|
127
|
+
}])),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function stampConversionMaterials(output, conversion, palette) {
|
|
132
|
+
injectVehicleMaterialBindings(output, conversion.importQuality?.materials?.bindings,
|
|
133
|
+
palette.familyVersions, palette.familyDefaults);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function assess(source, commonRoot = null) {
|
|
137
|
+
const vehicles = join(source, 'vehicles');
|
|
138
|
+
if (!existsSync(vehicles)) throw new Error("not a BeamNG mod: missing top-level 'vehicles' directory");
|
|
139
|
+
const localCommon = join(vehicles, 'common');
|
|
140
|
+
const localWheelDependencies = authoredRoadWheelDependencies(localCommon);
|
|
141
|
+
const localTyreDependency = authoredTyreDependency(localCommon);
|
|
142
|
+
const externalTyreDependency = authoredTyreDependency(commonRoot);
|
|
143
|
+
const tyreDependency = localTyreDependency ?? externalTyreDependency;
|
|
144
|
+
const candidates = readdirSync(vehicles, { withFileTypes: true })
|
|
145
|
+
.filter((entry) => entry.isDirectory() && entry.name !== 'common')
|
|
146
|
+
.map((entry) => {
|
|
147
|
+
const root = join(vehicles, entry.name);
|
|
148
|
+
const files = walk(root);
|
|
149
|
+
const jbeams = files.filter((path) => extname(path).toLowerCase() === '.jbeam');
|
|
150
|
+
let cabinJBeamSignals = 0;
|
|
151
|
+
let wheelJBeamSignals = 0;
|
|
152
|
+
let audioReferences = false;
|
|
153
|
+
for (const path of jbeams) {
|
|
154
|
+
const text = readFileSync(path, 'utf8');
|
|
155
|
+
cabinJBeamSignals += text.match(/seat|steer|dashboard|interior|cabin/gi)?.length ?? 0;
|
|
156
|
+
wheelJBeamSignals += text.match(/wheel|rim|tyre|tire/gi)?.length ?? 0;
|
|
157
|
+
audioReferences ||= /soundconfig|sampleName|engineSound|exhaustSound/i.test(text);
|
|
158
|
+
}
|
|
159
|
+
const daes = files.filter((path) => extname(path).toLowerCase() === '.dae');
|
|
160
|
+
const glbs = files.filter((path) => extname(path).toLowerCase() === '.glb');
|
|
161
|
+
const materials = files.filter((path) => /(?:\.materials\.json|materials\.cs)$/i.test(path));
|
|
162
|
+
const audio = files.filter((path) => AUDIO_EXTENSIONS.has(extname(path).toLowerCase()));
|
|
163
|
+
const cabin = semanticCount(files, /(interior|cabin|dashboard|dash|seat|steer)/)
|
|
164
|
+
+ Math.min(20, cabinJBeamSignals);
|
|
165
|
+
const wheels = semanticCount(files, /(wheel|rim|tyre|tire)/)
|
|
166
|
+
+ Math.min(12, wheelJBeamSignals);
|
|
167
|
+
const hasAudio = audio.length > 0 || audioReferences;
|
|
168
|
+
// JBeam power-steering controllers are not visual cabin evidence. Require
|
|
169
|
+
// a steering object in DAE geometry before spending a Blender conversion.
|
|
170
|
+
// Source GLBs are checked for the same authorship receipt after conversion.
|
|
171
|
+
const authoredSteering = glbs.length > 0 || daes.some(daeHasAuthoredSteering);
|
|
172
|
+
const authoredTyres = glbs.length > 0 || daes.some(daeHasAuthoredTyre) || tyreDependency !== null;
|
|
173
|
+
const blockers = [];
|
|
174
|
+
if (jbeams.length === 0) blockers.push('no JBeam vehicle definition');
|
|
175
|
+
if (jbeams.length > 0 && jbeams.length < 5) blockers.push('fewer than five configurable JBeam part definitions');
|
|
176
|
+
if (daes.length === 0 && glbs.length === 0) blockers.push('no DAE or GLB render geometry');
|
|
177
|
+
if (materials.length === 0) blockers.push('no BeamNG material bindings');
|
|
178
|
+
if (cabin < 2) blockers.push('no convincing cabin/steering source');
|
|
179
|
+
if (!authoredSteering) blockers.push('no authored steering-wheel mesh in source geometry');
|
|
180
|
+
if (!authoredTyres) blockers.push('no authored tyre geometry in the mod or named beamngCommon dependency');
|
|
181
|
+
if (wheels < 4) blockers.push('fewer than four wheel/rim/tyre source signals');
|
|
182
|
+
if (!hasAudio) blockers.push('no recorded audio and no source engine/exhaust sound reference');
|
|
183
|
+
const score = jbeams.length * 2 + Math.min(daes.length + glbs.length, 12) * 3
|
|
184
|
+
+ Math.min(materials.length, 8) * 2 + Math.min(cabin, 20) + Math.min(wheels, 12) + (hasAudio ? 10 : 0);
|
|
185
|
+
return { id: entry.name, root, files, jbeams, daes, glbs, materials, audio, audioReferences,
|
|
186
|
+
cabin, wheels, hasAudio, authoredSteering, authoredTyres, tyreDependency, localWheelDependencies, blockers, score };
|
|
187
|
+
});
|
|
188
|
+
const viable = candidates.filter((row) => row.blockers.length === 0).sort((a, b) => b.score - a.score || a.id.localeCompare(b.id));
|
|
189
|
+
if (viable.length === 0) {
|
|
190
|
+
throw new Error(`no importable BeamNG vehicle:\n${candidates.map((row) => `- ${row.id}: ${row.blockers.join('; ')}`).join('\n')}`);
|
|
191
|
+
}
|
|
192
|
+
if (viable.length > 1 && viable[0].score === viable[1].score) {
|
|
193
|
+
throw new Error(`ambiguous BeamNG mod: equally viable vehicles ${viable.filter((row) => row.score === viable[0].score).map((row) => row.id).join(', ')}`);
|
|
194
|
+
}
|
|
195
|
+
return { selected: viable[0], candidates };
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function selectedCommonDependencyPaths(receipt, source, candidate, selectedPartSummary) {
|
|
199
|
+
const selected = new Set();
|
|
200
|
+
for (const row of selectedPartSummary?.sources ?? []) {
|
|
201
|
+
if (typeof row?.root === 'string' && row.root.startsWith('dependency:')
|
|
202
|
+
&& typeof row.path === 'string') selected.add(row.path);
|
|
203
|
+
}
|
|
204
|
+
const requestedBadge = requestedConfiguration(source, candidate);
|
|
205
|
+
for (const path of daeSelection(candidate, requestedBadge)) {
|
|
206
|
+
const portable = relative(receipt.sourceRoot, path).replaceAll('\\', '/');
|
|
207
|
+
if (portable.startsWith('vehicles/common/')) selected.add(portable);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const rows = new Map(receipt.files.map((row) => [row.path, row]));
|
|
211
|
+
const selectedDirectories = new Set([...selected].map((path) => dirname(path).replaceAll('\\', '/')));
|
|
212
|
+
const materialPaths = receipt.files.filter((row) => /(?:\.materials\.json|materials\.cs)$/i.test(row.path)
|
|
213
|
+
&& [...selectedDirectories].some((directory) => row.path.startsWith(`${directory}/`)));
|
|
214
|
+
const referencedNames = new Set();
|
|
215
|
+
for (const row of materialPaths) {
|
|
216
|
+
selected.add(row.path);
|
|
217
|
+
if (row.sizeBytes > 8 * 1024 * 1024) {
|
|
218
|
+
throw new Error(`Selected BeamNG common material file is too large: ${row.path}`);
|
|
219
|
+
}
|
|
220
|
+
const text = readFileSync(join(receipt.sourceRoot, ...row.path.split('/')), 'utf8');
|
|
221
|
+
for (const match of text.matchAll(/[A-Za-z0-9_./\\-]+\.(?:dds|png|jpe?g|tga|bmp)/gi)) {
|
|
222
|
+
referencedNames.add(basename(match[0].replaceAll('\\', '/')).toLowerCase());
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
for (const row of rows.values()) {
|
|
226
|
+
if (referencedNames.has(basename(row.path).toLowerCase())) selected.add(row.path);
|
|
227
|
+
}
|
|
228
|
+
return [...selected].sort();
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function blenderExecutable() {
|
|
232
|
+
const candidates = [process.env.HELIX_BLENDER, '/Applications/Blender.app/Contents/MacOS/Blender', 'blender'].filter(Boolean);
|
|
233
|
+
return candidates.find((candidate) => candidate.includes('/') ? existsSync(candidate) : true);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function run(executable, args) {
|
|
237
|
+
return new Promise((ok, fail) => {
|
|
238
|
+
const child = spawn(executable, args, { stdio: ['ignore', 'pipe', 'pipe'], shell: false });
|
|
239
|
+
let stdout = '', stderr = '';
|
|
240
|
+
const tail = (current, chunk) => `${current}${chunk.toString('utf8')}`.slice(-MAX_CONVERTER_LOG_BYTES);
|
|
241
|
+
child.stdout.on('data', (chunk) => { stdout = tail(stdout, chunk); });
|
|
242
|
+
child.stderr.on('data', (chunk) => { stderr = tail(stderr, chunk); });
|
|
243
|
+
child.on('error', fail);
|
|
244
|
+
child.on('close', (code) => code === 0 ? ok(`${stdout}\n${stderr}`)
|
|
245
|
+
: fail(new Error(`${basename(executable)} exited ${code}: ${stderr.slice(-4000)}`)));
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function requestedConfiguration(source, candidate) {
|
|
250
|
+
const hint = basename(source).toLowerCase().replace(/[^a-z0-9]+/g, '');
|
|
251
|
+
const matches = candidate.files.filter((path) => /^info(?:_[^.]+)?\.json$/i.test(basename(path))).flatMap((path) => {
|
|
252
|
+
try {
|
|
253
|
+
const info = JSON.parse(readFileSync(path, 'utf8'));
|
|
254
|
+
const id = basename(path).match(/^info_([^.]+)\.json$/i)?.[1] ?? '';
|
|
255
|
+
const tokens = `${String(info.Configuration ?? info.configuration ?? '')} ${id}`.toLowerCase().match(/[a-z0-9]+/g) ?? [];
|
|
256
|
+
const token = tokens.filter((value) => value.length >= 3 && hint.includes(value))
|
|
257
|
+
.sort((a, b) => b.length - a.length || a.localeCompare(b))[0];
|
|
258
|
+
return token ? [{ configuration: token, year: Number(info.Years?.max ?? info.years?.max ?? 0), specificity: token.length }] : [];
|
|
259
|
+
} catch { return []; }
|
|
260
|
+
}).sort((a, b) => b.specificity - a.specificity || b.year - a.year || a.configuration.localeCompare(b.configuration));
|
|
261
|
+
return matches[0]?.configuration || null;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function compatibilityProfile(candidate, configurationHint) {
|
|
265
|
+
const path = resolve(dirname(fileURLToPath(import.meta.url)), '..', 'profiles', 'source-compatibility.json');
|
|
266
|
+
const profiles = JSON.parse(readFileSync(path, 'utf8')).profiles ?? [];
|
|
267
|
+
return profiles.find((profile) => profile.candidateId === candidate.id
|
|
268
|
+
&& (profile.configuration ?? null) === configurationHint) ?? null;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function daeSelection(candidate, configurationHint = null) {
|
|
272
|
+
const own = candidate.daes.sort((a, b) => {
|
|
273
|
+
const identity = Number(basename(b, '.dae').toLowerCase() === candidate.id.toLowerCase())
|
|
274
|
+
- Number(basename(a, '.dae').toLowerCase() === candidate.id.toLowerCase());
|
|
275
|
+
return identity || lstatSync(b).size - lstatSync(a).size;
|
|
276
|
+
});
|
|
277
|
+
// BeamNG mods commonly carry complete trim/configuration variants as separate large DAEs.
|
|
278
|
+
// Combining them creates several cars in one GLB, so import exactly one highest-confidence
|
|
279
|
+
// primary body plus only small, explicitly named wheel geometry.
|
|
280
|
+
const rootLevel = own.filter((path) => dirname(path) === candidate.root);
|
|
281
|
+
let primary = rootLevel[0] ?? own[0];
|
|
282
|
+
const requestedBadge = configurationHint;
|
|
283
|
+
if (requestedBadge) {
|
|
284
|
+
const variants = candidate.files.filter((path) => /^info(?:_[^.]+)?\.json$/i.test(basename(path))).flatMap((path) => {
|
|
285
|
+
try {
|
|
286
|
+
const info = JSON.parse(readFileSync(path, 'utf8'));
|
|
287
|
+
const configuration = String(info.Configuration ?? info.configuration ?? '').toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
288
|
+
const id = basename(path).match(/^info_([^.]+)\.json$/i)?.[1];
|
|
289
|
+
const year = Number(info.Years?.max ?? info.years?.max ?? 0);
|
|
290
|
+
return id && configuration.includes(requestedBadge) ? [{ id, year }] : [];
|
|
291
|
+
} catch { return []; }
|
|
292
|
+
}).sort((a, b) => b.year - a.year || a.id.localeCompare(b.id));
|
|
293
|
+
const selected = variants[0] && own.find((path) => path.split('/').includes(variants[0].id));
|
|
294
|
+
if (selected) primary = selected;
|
|
295
|
+
}
|
|
296
|
+
const normalized = (path) => path.toLowerCase().replace(/[^a-z0-9]+/g, '');
|
|
297
|
+
const desired = requestedBadge
|
|
298
|
+
? own.filter((path) => normalized(relative(candidate.root, path)).includes(requestedBadge)) : [];
|
|
299
|
+
const desiredBody = desired.filter((path) => !/(wheel|rim|tyre|tire|steer)/i.test(path))
|
|
300
|
+
.sort((a, b) => lstatSync(b).size - lstatSync(a).size)[0];
|
|
301
|
+
const desiredSteering = desired.filter((path) => /steer/i.test(path))
|
|
302
|
+
.sort((a, b) => lstatSync(b).size - lstatSync(a).size)[0];
|
|
303
|
+
const desiredWheels = desired.filter((path) => /(wheel|rim|tyre|tire)/i.test(path))
|
|
304
|
+
.sort((a, b) => lstatSync(b).size - lstatSync(a).size).slice(0, 2);
|
|
305
|
+
const profile = compatibilityProfile(candidate, configurationHint);
|
|
306
|
+
const supplemental = (profile?.supplementalGeometry ?? []).flatMap((rule) => own.filter((path) => {
|
|
307
|
+
const relativePath = normalized(relative(candidate.root, path));
|
|
308
|
+
return (rule.include ?? []).every((token) => relativePath.includes(token))
|
|
309
|
+
&& !(rule.exclude ?? []).some((token) => relativePath.includes(token));
|
|
310
|
+
}).sort((a, b) => lstatSync(b).size - lstatSync(a).size).slice(0, 1));
|
|
311
|
+
const suspension = rootLevel.find((path) => /suspension/i.test(path));
|
|
312
|
+
const primaryBytes = primary ? lstatSync(primary).size : 0;
|
|
313
|
+
const rootSupplements = rootLevel.filter((path) => path !== primary && path !== suspension
|
|
314
|
+
&& !/(wheel|rim|tyre|tire)/i.test(path)
|
|
315
|
+
&& lstatSync(path).size < primaryBytes * 0.35)
|
|
316
|
+
// Small root-level DAEs commonly contain trim-specific bumpers, lamps, or
|
|
317
|
+
// cabins referenced by the selected config. Import them as candidates;
|
|
318
|
+
// Blender's exact JBeam filter retains only configured meshes.
|
|
319
|
+
.sort((a, b) => lstatSync(a).size - lstatSync(b).size || a.localeCompare(b))
|
|
320
|
+
.slice(0, 3);
|
|
321
|
+
const pedals = own.find((path) => /pedal/i.test(path));
|
|
322
|
+
const shared = own.filter((path) => !desired.includes(path) && path !== primary
|
|
323
|
+
&& /(wheel|rim|tyre|tire)/i.test(path) && lstatSync(path).size < 25 * 1024 * 1024);
|
|
324
|
+
return [...new Set([primary, suspension, desiredBody, ...supplemental, ...rootSupplements,
|
|
325
|
+
desiredSteering, ...desiredWheels, pedals,
|
|
326
|
+
...candidate.localWheelDependencies, candidate.tyreDependency,
|
|
327
|
+
...shared.slice(0, desiredWheels.length > 0 ? 0 : 3)].filter(Boolean))].slice(0, MAX_DAE);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
function stampBridgeProvenance(output, source, selected) {
|
|
331
|
+
injectVehicleReceipt(output, {
|
|
332
|
+
HELIX_provenance: {
|
|
333
|
+
source: `BeamNG vehicle mod ${basename(source)} / vehicles/${selected.id}`,
|
|
334
|
+
derivation: 'mod-derived',
|
|
335
|
+
distribution: 'INTERNAL-ONLY',
|
|
336
|
+
convertedBy: 'HELIX Bridge / hypersonic.beamng-vehicle',
|
|
337
|
+
convertedOn: new Date().toISOString().slice(0, 10),
|
|
338
|
+
pipeline: 'BeamNG candidate assessment + authored geometry/material conversion + canonical vehicle QA',
|
|
339
|
+
},
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
function sourceGlbConfiguration(source, candidate, indexPath, commonRoot, identity) {
|
|
344
|
+
const configurationHint = requestedConfiguration(source, candidate);
|
|
345
|
+
const executable = resolve(dirname(fileURLToPath(import.meta.url)), 'index-beamng.py');
|
|
346
|
+
const indexed = spawnSync('python3', [executable,
|
|
347
|
+
'--source-root', source, '--vehicle-root', candidate.root, '--candidate', candidate.id, '--output', indexPath,
|
|
348
|
+
'--bridge-plan-key', identity.bridgePlanKey, '--source-sha', identity.sourceSha256,
|
|
349
|
+
...(identity.commonClosureSha256 ? ['--common-closure', identity.commonClosureSha256] : []),
|
|
350
|
+
...(configurationHint ? ['--configuration-hint', configurationHint] : []),
|
|
351
|
+
...(commonRoot ? ['--common-root', commonRoot] : []),
|
|
352
|
+
], { encoding: 'utf8', maxBuffer: MAX_SELECTED_INDEX_SUMMARY_BYTES });
|
|
353
|
+
if (indexed.status !== 0) throw new Error(`source GLB configuration indexing failed: ${indexed.stderr.trim()}`);
|
|
354
|
+
const summary = JSON.parse(indexed.stdout);
|
|
355
|
+
const configuration = summary.configuration;
|
|
356
|
+
return { configurationHint, configuration: {
|
|
357
|
+
file: basename(configuration.path), path: configuration.path,
|
|
358
|
+
sha256: configuration.sha256, sizeBytes: configuration.sizeBytes,
|
|
359
|
+
parts: summary.selectedBodies, slotClosure: summary.slotClosure,
|
|
360
|
+
selectedMeshes: [], explicitOverrides: summary.explicitOverrides ?? 0,
|
|
361
|
+
selectedPartSummary: summary,
|
|
362
|
+
} };
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
async function convert(source, candidate, output, palette, commonDependency = null, mirrorZ = false,
|
|
366
|
+
partIndexPath, identity) {
|
|
367
|
+
const commonRoot = commonDependency?.root ?? null;
|
|
368
|
+
if (candidate.glbs.length > 0) {
|
|
369
|
+
const preferred = candidate.glbs.sort((a, b) => lstatSync(b).size - lstatSync(a).size)[0];
|
|
370
|
+
copyFileSync(preferred, output);
|
|
371
|
+
const selected = sourceGlbConfiguration(source, candidate, partIndexPath, commonRoot, identity);
|
|
372
|
+
const receipt = readVehicleReceipt(preferred);
|
|
373
|
+
return { converter: 'source-glb', sourceGeometry: [relative(candidate.root, preferred)],
|
|
374
|
+
sourceGeometryPaths: [preferred], configurationHint: selected.configurationHint,
|
|
375
|
+
importQuality: { ...(receipt.HELIX_import_quality ?? {}), configuration: selected.configuration },
|
|
376
|
+
vehicleGeometry: { ...(receipt.HELIX_vehicle ?? {}), bounds: receipt.HELIX_bounds ?? null } };
|
|
377
|
+
}
|
|
378
|
+
const blender = blenderExecutable();
|
|
379
|
+
if (!blender) throw new Error('Blender is required to convert BeamNG DAE geometry');
|
|
380
|
+
const configurationHint = requestedConfiguration(source, candidate);
|
|
381
|
+
const daes = daeSelection(candidate, configurationHint);
|
|
382
|
+
if (daes.length === 0) throw new Error('candidate has no DAE geometry after selection');
|
|
383
|
+
const receipt = `${output}.receipt.json`;
|
|
384
|
+
const pluginDir = dirname(fileURLToPath(import.meta.url));
|
|
385
|
+
const args = ['-b', '--python', resolve(pluginDir, 'convert-beamng.py'), '--',
|
|
386
|
+
'--source-root', source, '--vehicle-root', candidate.root, '--output', output, '--receipt', receipt,
|
|
387
|
+
'--part-index', partIndexPath, '--bridge-plan-key', identity.bridgePlanKey, '--source-sha', identity.sourceSha256,
|
|
388
|
+
...(identity.commonClosureSha256 ? ['--common-closure', identity.commonClosureSha256] : []),
|
|
389
|
+
'--palette', palette,
|
|
390
|
+
...daes.flatMap((path) => ['--dae', path]),
|
|
391
|
+
...(commonRoot ? ['--material-root', resolve(commonRoot)] : []),
|
|
392
|
+
...(configurationHint ? ['--configuration-hint', configurationHint] : []),
|
|
393
|
+
...(mirrorZ ? ['--mirror-z'] : [])];
|
|
394
|
+
const converterLog = await run(blender, args);
|
|
395
|
+
if (!existsSync(receipt)) {
|
|
396
|
+
throw new Error(`Blender did not produce a vehicle receipt:\n${converterLog.slice(-6000)}`);
|
|
397
|
+
}
|
|
398
|
+
const conversionReceipt = JSON.parse(readFileSync(receipt, 'utf8'));
|
|
399
|
+
injectVehicleReceipt(output, conversionReceipt);
|
|
400
|
+
const localDependencies = new Set(candidate.localWheelDependencies);
|
|
401
|
+
return { converter: 'blender-dae', sourceGeometry: daes.map((path) => path === candidate.tyreDependency || localDependencies.has(path)
|
|
402
|
+
? dependencyReceipt(path, source, commonDependency) : relative(candidate.root, path)),
|
|
403
|
+
sourceGeometryPaths: daes,
|
|
404
|
+
configurationHint, mirrorZ, importQuality: conversionReceipt.HELIX_import_quality ?? {},
|
|
405
|
+
vehicleGeometry: { ...(conversionReceipt.HELIX_vehicle ?? {}), bounds: conversionReceipt.HELIX_bounds ?? null } };
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
function sha256Json(value) {
|
|
409
|
+
const bytes = Buffer.from(`${JSON.stringify(value, null, 2)}\n`);
|
|
410
|
+
return { bytes, sha256: createHash('sha256').update(bytes).digest('hex') };
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
function jsonIdentity(value) {
|
|
414
|
+
const bytes = Buffer.from(JSON.stringify(value));
|
|
415
|
+
return { sha256: createHash('sha256').update(bytes).digest('hex'), sizeBytes: bytes.length };
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
function assertSha256(value, label) {
|
|
419
|
+
if (typeof value !== 'string' || !SHA256.test(value)) throw new Error(`${label} must be a lowercase sha256 digest`);
|
|
420
|
+
return value;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
function assertSize(value, label) {
|
|
424
|
+
if (!Number.isSafeInteger(value) || value < 0) throw new Error(`${label} must be a non-negative safe integer`);
|
|
425
|
+
return value;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
function portableCandidateId(value) {
|
|
429
|
+
if (typeof value !== 'string' || basename(value) !== value || !PORTABLE_CANDIDATE_ID.test(value)
|
|
430
|
+
|| WINDOWS_RESERVED_BASENAME.test(value)) {
|
|
431
|
+
throw new Error('BeamNG vehicle packaging requires a strict portable candidateId slug/basename');
|
|
432
|
+
}
|
|
433
|
+
return value;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
function portableInputIdentity(inputs = {}) {
|
|
437
|
+
if (!inputs || typeof inputs !== 'object' || Array.isArray(inputs)) {
|
|
438
|
+
throw new Error('BeamNG vehicle packaging requires a named-input identity map');
|
|
439
|
+
}
|
|
440
|
+
return Object.fromEntries(Object.entries(inputs).sort(([left], [right]) => left.localeCompare(right)).map(([name, row]) => {
|
|
441
|
+
if (!row || typeof row !== 'object' || Array.isArray(row) || typeof row.path !== 'string') {
|
|
442
|
+
throw new Error(`BeamNG vehicle packaging input '${name}' has no identity`);
|
|
443
|
+
}
|
|
444
|
+
const file = basename(row.path);
|
|
445
|
+
if (!file || file === '.' || file === '..' || file.includes('/') || file.includes('\\')) {
|
|
446
|
+
throw new Error(`BeamNG vehicle packaging input '${name}' has no portable basename`);
|
|
447
|
+
}
|
|
448
|
+
return [name, {
|
|
449
|
+
file,
|
|
450
|
+
sha256: assertSha256(row.sha256, `BeamNG vehicle packaging input '${name}'.sha256`),
|
|
451
|
+
sizeBytes: assertSize(row.sizeBytes, `BeamNG vehicle packaging input '${name}'.sizeBytes`),
|
|
452
|
+
}];
|
|
453
|
+
}));
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
function terminalPackageBinding({ bridgePlanKey, candidateId, source, inputs, canonicalGlb,
|
|
457
|
+
vehicleSourceManifest, functionalVehicle }) {
|
|
458
|
+
return {
|
|
459
|
+
schemaVersion: TERMINAL_PACKAGE_BINDING_SCHEMA,
|
|
460
|
+
bridgePlanKey,
|
|
461
|
+
candidateId,
|
|
462
|
+
source,
|
|
463
|
+
inputs,
|
|
464
|
+
canonicalGlb,
|
|
465
|
+
vehicleSourceManifest: jsonIdentity(vehicleSourceManifest),
|
|
466
|
+
functionalVehicle: jsonIdentity(functionalVehicle),
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
function equalJson(left, right) {
|
|
471
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
function prepareAssetDirectory(outputDir) {
|
|
475
|
+
if (typeof outputDir !== 'string' || outputDir.length === 0) {
|
|
476
|
+
throw new Error('BeamNG vehicle packaging requires an output directory');
|
|
477
|
+
}
|
|
478
|
+
const root = resolve(outputDir);
|
|
479
|
+
if (existsSync(root)) {
|
|
480
|
+
const rootInfo = lstatSync(root);
|
|
481
|
+
if (rootInfo.isSymbolicLink() || !rootInfo.isDirectory()) {
|
|
482
|
+
throw new Error('BeamNG vehicle packaging output must be a non-symlink directory');
|
|
483
|
+
}
|
|
484
|
+
} else {
|
|
485
|
+
mkdirSync(root, { recursive: true });
|
|
486
|
+
}
|
|
487
|
+
const assets = join(root, 'assets');
|
|
488
|
+
if (existsSync(assets)) {
|
|
489
|
+
const assetsInfo = lstatSync(assets);
|
|
490
|
+
if (assetsInfo.isSymbolicLink() || !assetsInfo.isDirectory()) {
|
|
491
|
+
throw new Error('BeamNG vehicle packaging assets destination must be a non-symlink directory');
|
|
492
|
+
}
|
|
493
|
+
} else {
|
|
494
|
+
mkdirSync(assets);
|
|
495
|
+
}
|
|
496
|
+
const canonicalRoot = realpathSync(root);
|
|
497
|
+
const canonicalAssets = realpathSync(assets);
|
|
498
|
+
const confined = relative(canonicalRoot, canonicalAssets);
|
|
499
|
+
if (!confined || confined === '..' || confined.startsWith(`..${sep}`) || isAbsolute(confined)) {
|
|
500
|
+
throw new Error('BeamNG vehicle packaging assets destination escapes the output directory');
|
|
501
|
+
}
|
|
502
|
+
return assets;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
function confinedNewAsset(assets, file) {
|
|
506
|
+
if (typeof file !== 'string' || basename(file) !== file || file === '.' || file === '..'
|
|
507
|
+
|| file.includes('/') || file.includes('\\')) {
|
|
508
|
+
throw new Error(`BeamNG vehicle packaging refused a non-portable asset basename: ${String(file)}`);
|
|
509
|
+
}
|
|
510
|
+
const path = resolve(assets, file);
|
|
511
|
+
const confined = relative(resolve(assets), path);
|
|
512
|
+
if (!confined || confined === '..' || confined.startsWith(`..${sep}`) || isAbsolute(confined)) {
|
|
513
|
+
throw new Error(`BeamNG vehicle packaging asset escapes its destination: ${file}`);
|
|
514
|
+
}
|
|
515
|
+
if (existsSync(path)) throw new Error(`BeamNG vehicle packaging refuses to overwrite an existing asset: ${file}`);
|
|
516
|
+
return path;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// A bank row the importer extracted carries bytes + checksum + cid but no `url`: the url is the public
|
|
520
|
+
// transport address of the sealed object, which must be supplied before the Vehicle Package is
|
|
521
|
+
// sealed. The engine validator rejects any row with runtime fields and no url, so validate the package
|
|
522
|
+
// with an explicit pending placeholder and leave the emitted rows untouched.
|
|
523
|
+
function withPendingBankUrls(pkg) {
|
|
524
|
+
const rows = pkg?.audio?.bank?.assets;
|
|
525
|
+
if (!Array.isArray(rows)) return pkg;
|
|
526
|
+
return { ...pkg, audio: { ...pkg.audio, bank: { ...pkg.audio.bank, assets: rows.map((row) => (
|
|
527
|
+
row && row.url === undefined && typeof row.checksumSha256 === 'string'
|
|
528
|
+
? { ...row, url: `pending-publish://sha256/${row.checksumSha256}` } : row)) } } };
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
// Copy the WAVs the importer extracted next to the vehicle package, re-hashing each against the row
|
|
532
|
+
// the (already hash-bound) package declares. The package JSON is written to `assets/`, so a row's
|
|
533
|
+
// `path` ("audio/<name>.wav") resolves relative to it for Package sealing.
|
|
534
|
+
function packageAudioSamples(vehiclePackage, importedGlb, assets, outputDir, candidateId) {
|
|
535
|
+
const rows = vehiclePackage?.audio?.bank?.assets;
|
|
536
|
+
if (!Array.isArray(rows) || rows.length === 0) return [];
|
|
537
|
+
const sourceDirectory = join(dirname(importedGlb), 'audio');
|
|
538
|
+
const destinationDirectory = join(assets, 'audio');
|
|
539
|
+
if (existsSync(destinationDirectory)) {
|
|
540
|
+
const info = lstatSync(destinationDirectory);
|
|
541
|
+
if (info.isSymbolicLink() || !info.isDirectory()) throw new Error('BeamNG vehicle packaging audio destination must be a non-symlink directory');
|
|
542
|
+
} else {
|
|
543
|
+
mkdirSync(destinationDirectory);
|
|
544
|
+
}
|
|
545
|
+
const artifacts = [];
|
|
546
|
+
for (const row of rows) {
|
|
547
|
+
const name = row?.name;
|
|
548
|
+
if (typeof name !== 'string' || !/^[A-Za-z0-9][A-Za-z0-9._-]*\.wav$/.test(name) || row.path !== `audio/${name}`) {
|
|
549
|
+
throw new Error(`BeamNG vehicle packaging refused a non-portable audio sample row: ${String(name)}`);
|
|
550
|
+
}
|
|
551
|
+
const source = join(sourceDirectory, name);
|
|
552
|
+
if (!existsSync(source) || lstatSync(source).isSymbolicLink() || !lstatSync(source).isFile()) {
|
|
553
|
+
throw new Error(`BeamNG vehicle packaging cannot find the extracted audio sample ${name} beside the converted GLB`);
|
|
554
|
+
}
|
|
555
|
+
const identity = sha256FileSync(source);
|
|
556
|
+
if (identity.sha256 !== row.checksumSha256 || identity.sizeBytes !== row.bytes) {
|
|
557
|
+
throw new Error(`BeamNG vehicle packaging audio sample ${name} does not match its package checksum`);
|
|
558
|
+
}
|
|
559
|
+
const destination = confinedNewAsset(destinationDirectory, name);
|
|
560
|
+
copyFileSync(source, destination, constants.COPYFILE_EXCL);
|
|
561
|
+
artifacts.push({ kind: 'helix.package.asset', path: relative(outputDir, destination),
|
|
562
|
+
metadata: { role: 'vehicle-audio-bank-sample', vehicle: candidateId, mediaType: 'audio/wav',
|
|
563
|
+
sha256: identity.sha256, sizeBytes: identity.sizeBytes } });
|
|
564
|
+
}
|
|
565
|
+
return artifacts;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
function assertValidVehiclePackage(pkg, boundary) {
|
|
569
|
+
const errors = validateVehiclePackage(withPendingBankUrls(pkg)).filter((issue) => issue.level === 'error');
|
|
570
|
+
if (errors.length > 0) {
|
|
571
|
+
throw new Error(`${boundary} rejected invalid Vehicle Package v2:\n${errors
|
|
572
|
+
.map((issue) => `- ${issue.path}: ${issue.message}`).join('\n')}`);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
function record(value) {
|
|
577
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
function approximately(left, right, epsilon = 1e-8) {
|
|
581
|
+
return Number.isFinite(left) && Number.isFinite(right) && Math.abs(left - right) <= epsilon;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
function validateAbsLowering(lowering) {
|
|
585
|
+
const nonempty = (value) => typeof value === 'string' && value.length > 0;
|
|
586
|
+
const abs = lowering?.sourceSemantics?.controllers?.abs;
|
|
587
|
+
const runtimeAbs = lowering?.vehiclePackage?.simulation?.land?.abs;
|
|
588
|
+
const { adapter, beamng, sourceModule, portableProjection, sourceShape } = ABS_SOURCE_RECEIPT;
|
|
589
|
+
const validBase = record(abs)
|
|
590
|
+
&& abs.schemaVersion === 'helix.beamng-controller-adapter/1'
|
|
591
|
+
&& abs.adapterId === adapter.id && abs.adapterVersion === adapter.version
|
|
592
|
+
&& abs.beamng?.version === beamng.version && abs.beamng?.steamBuildId === beamng.steamBuildId
|
|
593
|
+
&& abs.sourceModule?.path === sourceModule.path && abs.sourceModule?.sha256 === sourceModule.sha256
|
|
594
|
+
&& abs.sourceModule?.sizeBytes === sourceModule.sizeBytes && abs.sourceShapeId === sourceShape.id
|
|
595
|
+
&& abs.sourceReceiptSha256 === createHash('sha256').update(ABS_SOURCE_RECEIPT_BYTES).digest('hex')
|
|
596
|
+
&& abs.selectedConfiguration?.file === lowering?.build?.configuration?.file
|
|
597
|
+
&& abs.selectedConfiguration?.sha256 === lowering?.build?.configuration?.sha256
|
|
598
|
+
&& Array.isArray(abs.activationCandidates) && record(abs.axleTargets);
|
|
599
|
+
const validTarget = (value) => record(value) && nonempty(value.partName) && nonempty(value.source)
|
|
600
|
+
&& Object.hasOwn(value, 'raw') && Number.isFinite(value.value) && value.value > 0 && value.value < 1
|
|
601
|
+
&& ['source-default', 'source-literal'].includes(value.status)
|
|
602
|
+
&& approximately(value.frequencyHz, sourceShape.frequencyDefaultHz);
|
|
603
|
+
const adapted = validBase && abs.status === 'adapted'
|
|
604
|
+
&& abs.parity === portableProjection.status
|
|
605
|
+
&& record(abs.activation) && nonempty(abs.activation.slotType) && nonempty(abs.activation.partName)
|
|
606
|
+
&& nonempty(abs.activation.source) && abs.activation.field === sourceShape.activationField
|
|
607
|
+
&& abs.activation.value === true && abs.activationCandidates.length === 1
|
|
608
|
+
&& equalJson(abs.activationCandidates[0], abs.activation)
|
|
609
|
+
&& validTarget(abs.axleTargets.front) && validTarget(abs.axleTargets.rear)
|
|
610
|
+
&& approximately(abs.axleTargets.front.value, abs.axleTargets.rear.value)
|
|
611
|
+
&& record(abs.runtime) && equalJson(abs.runtime, runtimeAbs)
|
|
612
|
+
&& approximately(abs.runtime.targetSlip, abs.axleTargets.front.value)
|
|
613
|
+
&& approximately(abs.runtime.releaseRate, portableProjection.releaseRate)
|
|
614
|
+
&& approximately(abs.runtime.applyRate, portableProjection.applyRate)
|
|
615
|
+
&& approximately(abs.runtime.minSpeed, portableProjection.minSpeed)
|
|
616
|
+
&& equalJson(abs.limitations, [portableProjection.note]);
|
|
617
|
+
const unsupported = validBase && abs.status === 'unsupported' && nonempty(abs.reason)
|
|
618
|
+
&& abs.runtime === undefined && runtimeAbs === undefined && abs.activation === undefined;
|
|
619
|
+
const provenance = abs?.status === 'adapted' ? [[
|
|
620
|
+
'simulation.land.abs.targetSlip',
|
|
621
|
+
{ disposition: 'derived', source: ['front', 'rear'].map((axle) => abs.axleTargets[axle]?.source).join(', ') },
|
|
622
|
+
], [
|
|
623
|
+
'simulation.land.abs.modulationRates',
|
|
624
|
+
{ disposition: 'defaulted', source: `${adapter.id}@${adapter.version}` },
|
|
625
|
+
]] : [[
|
|
626
|
+
'simulation.land.abs',
|
|
627
|
+
{ disposition: 'unsupported', source: 'selected JBeam ABS controller shape' },
|
|
628
|
+
]];
|
|
629
|
+
const capabilityRows = Array.isArray(lowering?.capabilities)
|
|
630
|
+
? lowering.capabilities.filter((row) => row?.capability === 'beamng.controller.abs') : [];
|
|
631
|
+
const capabilitySources = abs?.status === 'adapted' ? [
|
|
632
|
+
abs.activation.source,
|
|
633
|
+
`${sourceModule.path}@sha256:${sourceModule.sha256}`,
|
|
634
|
+
] : abs?.activationCandidates?.map((row) => row?.source
|
|
635
|
+
?? `${row?.partName ?? 'unknown'}#${row?.field ?? 'unknown'}`) ?? [];
|
|
636
|
+
if (abs?.status === 'unsupported' && capabilitySources.length === 0) {
|
|
637
|
+
capabilitySources.push('selected JBeam ABS controller shape');
|
|
638
|
+
}
|
|
639
|
+
const capabilityValid = capabilityRows.length === 1
|
|
640
|
+
&& capabilityRows[0].disposition === (abs?.status === 'adapted' ? 'derived' : 'unsupported')
|
|
641
|
+
&& equalJson(capabilityRows[0].source, capabilitySources) && nonempty(capabilityRows[0].note);
|
|
642
|
+
return {
|
|
643
|
+
abs,
|
|
644
|
+
valid: adapted || unsupported,
|
|
645
|
+
capabilityValid,
|
|
646
|
+
functional: abs?.status === 'adapted' && abs?.parity === 'functional',
|
|
647
|
+
provenance,
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
function assertValidFunctionalLowering(lowering, boundary) {
|
|
652
|
+
const absContract = lowering?.schemaVersion === 'helix.beamng-functional-lowering/3';
|
|
653
|
+
const semantics = lowering?.sourceSemantics;
|
|
654
|
+
const suspension = semantics?.suspension;
|
|
655
|
+
const coverage = lowering?.coverage;
|
|
656
|
+
const suspensionCounts = suspension?.counts;
|
|
657
|
+
const suspensionProvenance = coverage?.suspensionProvenance;
|
|
658
|
+
const requiredSuspensionCounts = ['selectedLeafParts', 'excludedStructuralParts', 'resolvedAxles', 'sourceRows'];
|
|
659
|
+
const requiredProvenanceCounts = ['source-literal', 'derived', 'defaulted', 'unsupported'];
|
|
660
|
+
const nonempty = (value) => typeof value === 'string' && value.length > 0;
|
|
661
|
+
const explicitUnsupported = (value) => record(value) && value.status === 'unsupported' && nonempty(value.reason);
|
|
662
|
+
const semanticReceipt = (value) => record(value)
|
|
663
|
+
&& ['literal', 'derived', 'defaulted', 'unsupported'].includes(value.status) && nonempty(value.unit)
|
|
664
|
+
&& Array.isArray(value.variables)
|
|
665
|
+
&& (value.status === 'unsupported' ? nonempty(value.reason) : Number.isFinite(value.value));
|
|
666
|
+
const selectedReceipt = (value) => semanticReceipt(value) && (value.status === 'unsupported'
|
|
667
|
+
|| (Object.hasOwn(value, 'raw') && value.symmetricRows === 2));
|
|
668
|
+
const dampingReceipt = (value) => semanticReceipt(value) && (value.status === 'unsupported'
|
|
669
|
+
|| (Object.hasOwn(value, 'raw') && value.symmetricRows === 2
|
|
670
|
+
&& semanticReceipt(value.velocitySplit) && Object.hasOwn(value.velocitySplit, 'raw')
|
|
671
|
+
&& value.velocitySplit.symmetricRows === 2 && value.velocitySplit.unit === 'm/s'
|
|
672
|
+
&& value.velocitySplit.status !== 'unsupported' && value.velocitySplit.value >= 0));
|
|
673
|
+
const torsionReceipt = (value) => semanticReceipt(value)
|
|
674
|
+
&& (value.status === 'unsupported' || Object.hasOwn(value, 'raw'));
|
|
675
|
+
const suspensionAxle = (value) => {
|
|
676
|
+
if (explicitUnsupported(value) && Array.isArray(value.candidates)) return true;
|
|
677
|
+
if (!record(value) || !record(value.damping)) return false;
|
|
678
|
+
const receipts = [value.springRate, value.precompressionRange, value.bumpLimit,
|
|
679
|
+
...['slowBump', 'fastBump', 'slowRebound', 'fastRebound'].map((name) => value.damping[name])];
|
|
680
|
+
const receiptShapeValid = receipts.slice(0, 3).every(selectedReceipt)
|
|
681
|
+
&& receipts.slice(3).every(dampingReceipt);
|
|
682
|
+
const expectedStatus = receipts.every((receipt) => receipt?.status !== 'unsupported')
|
|
683
|
+
? 'resolved' : 'unsupported';
|
|
684
|
+
return value.status === expectedStatus
|
|
685
|
+
&& nonempty(value.slotType) && nonempty(value.partName) && nonempty(value.source)
|
|
686
|
+
&& receiptShapeValid && record(value.derived) && record(value.rowCounts)
|
|
687
|
+
&& ['spring', 'damper', 'travelLimit'].every((name) => Number.isInteger(value.rowCounts[name])
|
|
688
|
+
&& value.rowCounts[name] >= 0);
|
|
689
|
+
};
|
|
690
|
+
const antiRollAxle = (value) => explicitUnsupported(value) || (record(value)
|
|
691
|
+
&& nonempty(value.slotType) && nonempty(value.partName) && nonempty(value.source)
|
|
692
|
+
&& torsionReceipt(value.torsionSpring) && value.runtimeStatus === 'unsupported' && nonempty(value.reason));
|
|
693
|
+
const tyreFields = ['pressurePSI', 'radius', 'tireWidth', 'frictionCoef', 'slidingFrictionCoef',
|
|
694
|
+
'noLoadCoef', 'fullLoadCoef', 'loadSensitivitySlope'];
|
|
695
|
+
const tyreAxle = (value) => {
|
|
696
|
+
if (explicitUnsupported(value) && Array.isArray(value.candidates)) return true;
|
|
697
|
+
if (!record(value) || !nonempty(value.partName) || !nonempty(value.source)
|
|
698
|
+
|| !tyreFields.every((name) => semanticReceipt(value[name]) && Object.hasOwn(value[name], 'raw'))) return false;
|
|
699
|
+
const expectedStatus = tyreFields.every((name) => value[name].status !== 'unsupported')
|
|
700
|
+
? 'functional' : 'unsupported';
|
|
701
|
+
return value.status === expectedStatus;
|
|
702
|
+
};
|
|
703
|
+
const tyres = semantics?.wheelsTyres;
|
|
704
|
+
const tyreFormula = 'frictionCoef * (fullLoadCoef + (noLoadCoef - fullLoadCoef) * exp(-loadSensitivitySlope * fz))';
|
|
705
|
+
const expectedTyreLoads = Array.from({ length: 24 }, (_, index) => Math.round(Math.exp(
|
|
706
|
+
Math.log(100) + ((Math.log(40000) - Math.log(100)) * index) / 23,
|
|
707
|
+
) * 1e9) / 1e9);
|
|
708
|
+
const selectedTyresComplete = ['front', 'rear'].every((axle) => record(tyres?.axles?.[axle])
|
|
709
|
+
&& tyres.axles[axle].status === 'functional'
|
|
710
|
+
&& tyreFields.every((name) => tyres.axles[axle][name]?.status !== 'unsupported'));
|
|
711
|
+
const runtimeTyres = lowering?.vehiclePackage?.simulation?.land?.tyreByAxle;
|
|
712
|
+
const tyreShapePrior = { alphaPeakRad: 0.139626, cxMult: 1.05, sigmaX: 0.048,
|
|
713
|
+
sigmaY: 0.08, camberGain: 0.15, dxOverDy: 1, sFall: 0.3,
|
|
714
|
+
rollingResistance: 0.013, angularInertia: 1.3 };
|
|
715
|
+
const validRuntimeTyre = (runtime, axle) => {
|
|
716
|
+
const source = tyres?.axles?.[axle];
|
|
717
|
+
if (!record(runtime) || !record(source) || !record(runtime.loadSensitivity)
|
|
718
|
+
|| !record(runtime.muLut) || runtime.calibration !== 'prior'
|
|
719
|
+
|| !approximately(runtime.radius, source.radius?.value)
|
|
720
|
+
|| !Array.isArray(runtime.muLut.fz) || !equalJson(runtime.muLut.fz, tyres?.lut?.fz)
|
|
721
|
+
|| !Array.isArray(runtime.muLut.mu) || runtime.muLut.mu.length !== runtime.muLut.fz.length
|
|
722
|
+
|| !Object.entries(tyreShapePrior).every(([name, value]) => approximately(runtime[name], value))) return false;
|
|
723
|
+
for (const field of ['frictionCoef', 'slidingFrictionCoef', 'noLoadCoef', 'fullLoadCoef', 'loadSensitivitySlope']) {
|
|
724
|
+
if (!approximately(runtime.loadSensitivity[field], source[field]?.value)) return false;
|
|
725
|
+
}
|
|
726
|
+
const slideRatio = source.slidingFrictionCoef.value / source.frictionCoef.value;
|
|
727
|
+
if (!approximately(runtime.muLut.slideRatio, Math.round(slideRatio * 1e6) / 1e6)) return false;
|
|
728
|
+
return runtime.muLut.fz.every((load, index) => approximately(runtime.muLut.mu[index],
|
|
729
|
+
Math.round((source.frictionCoef.value * (source.fullLoadCoef.value
|
|
730
|
+
+ (source.noLoadCoef.value - source.fullLoadCoef.value)
|
|
731
|
+
* Math.exp(-source.loadSensitivitySlope.value * load))) * 1e9) / 1e9));
|
|
732
|
+
};
|
|
733
|
+
const validFallbackTyre = (runtime) => record(runtime) && record(runtime.loadSensitivity)
|
|
734
|
+
&& record(runtime.muLut) && runtime.calibration === 'prior'
|
|
735
|
+
&& approximately(runtime.radius, 0.3466)
|
|
736
|
+
&& Object.entries(tyreShapePrior).every(([name, value]) => approximately(runtime[name], value))
|
|
737
|
+
&& equalJson(runtime.muLut.fz, tyres?.lut?.fz)
|
|
738
|
+
&& Array.isArray(runtime.muLut.mu) && Array.isArray(runtime.muLut.fz)
|
|
739
|
+
&& runtime.muLut.mu.length === runtime.muLut.fz.length
|
|
740
|
+
&& runtime.muLut.mu.every((value) => approximately(value, 1.1))
|
|
741
|
+
&& approximately(runtime.muLut.slideRatio, 0.85)
|
|
742
|
+
&& equalJson(runtime.loadSensitivity, { frictionCoef: 1, slidingFrictionCoef: 0.85,
|
|
743
|
+
noLoadCoef: 1.1, fullLoadCoef: 1.1, loadSensitivitySlope: 0 });
|
|
744
|
+
const validTyres = record(tyres) && tyres.status === 'unsupported'
|
|
745
|
+
&& record(tyres.axles) && tyreAxle(tyres.axles.front) && tyreAxle(tyres.axles.rear)
|
|
746
|
+
&& record(tyres.variables) && record(tyres.lut) && Array.isArray(tyres.lut.fz)
|
|
747
|
+
&& equalJson(tyres.lut.fz, expectedTyreLoads) && tyres.lut.formula === tyreFormula
|
|
748
|
+
&& Array.isArray(tyres.runtimeBlockers) && tyres.runtimeBlockers.length > 0
|
|
749
|
+
&& typeof tyres.extractionComplete === 'boolean'
|
|
750
|
+
&& tyres.extractionComplete === selectedTyresComplete
|
|
751
|
+
&& Array.isArray(runtimeTyres) && runtimeTyres.length === 2
|
|
752
|
+
&& (tyres.extractionComplete
|
|
753
|
+
? validRuntimeTyre(runtimeTyres[0], 'front') && validRuntimeTyre(runtimeTyres[1], 'rear')
|
|
754
|
+
: runtimeTyres.every(validFallbackTyre));
|
|
755
|
+
const driveline = semantics?.driveline;
|
|
756
|
+
const differentialFields = ['lockTorque', 'activeLockTorque', 'viscousCoef', 'viscousTorque', 'lsdPreload',
|
|
757
|
+
'lsdLockCoef', 'lsdRevLockCoef', 'friction', 'dynamicFriction', 'torqueLossCoef',
|
|
758
|
+
'defaultVirtualInertia', 'speedLimitCoef', 'diffTorqueSplit'];
|
|
759
|
+
const differential = (value) => record(value) && nonempty(value.deviceName)
|
|
760
|
+
&& nonempty(value.partName) && nonempty(value.source) && nonempty(value.type)
|
|
761
|
+
&& differentialFields.every((name) => semanticReceipt(value.fields?.[name])
|
|
762
|
+
&& Object.hasOwn(value.fields[name], 'raw'))
|
|
763
|
+
&& Array.isArray(value.controllers) && value.controllers.every(nonempty)
|
|
764
|
+
&& Array.isArray(value.overlaySources) && value.overlaySources.every(nonempty)
|
|
765
|
+
&& record(value.overlayFieldSources)
|
|
766
|
+
&& Object.values(value.overlayFieldSources).every((sources) => Array.isArray(sources)
|
|
767
|
+
&& sources.length > 0 && sources.every(nonempty))
|
|
768
|
+
&& Array.isArray(value.overlayConflicts)
|
|
769
|
+
&& value.overlayConflicts.every((conflict) => record(conflict) && nonempty(conflict.field)
|
|
770
|
+
&& Array.isArray(conflict.sources) && conflict.sources.length > 1 && conflict.sources.every(nonempty))
|
|
771
|
+
&& (value.type !== 'viscous' || (semanticReceipt(value.fields?.viscousExponent)
|
|
772
|
+
&& Object.hasOwn(value.fields.viscousExponent, 'raw')))
|
|
773
|
+
&& semanticReceipt(value.gearRatio) && record(value.outputPorts)
|
|
774
|
+
&& [value.outputPorts.a, value.outputPorts.b].every((port) => port === 1 || port === 2)
|
|
775
|
+
&& value.outputPorts.a !== value.outputPorts.b;
|
|
776
|
+
const drivenAxles = Array.isArray(driveline?.drivenAxles) ? driveline.drivenAxles : [];
|
|
777
|
+
const differentialEntries = record(driveline?.differentials)
|
|
778
|
+
? Object.entries(driveline.differentials) : [];
|
|
779
|
+
const runtimeDriveline = lowering?.vehiclePackage?.simulation?.land?.driveline;
|
|
780
|
+
const hasRuntimeDiff = (name) => record(runtimeDriveline) && record(runtimeDriveline[name]);
|
|
781
|
+
const expectedDiffCount = drivenAxles.length + (drivenAxles.length === 2 ? 1 : 0);
|
|
782
|
+
const expectedLocations = [...drivenAxles, ...(drivenAxles.length === 2 ? ['centre'] : [])].sort();
|
|
783
|
+
const semanticLocations = differentialEntries.map(([location]) => location).sort();
|
|
784
|
+
const runtimeLocations = ['front', 'rear', 'centre'].filter(hasRuntimeDiff).sort();
|
|
785
|
+
const runtimeFields = {
|
|
786
|
+
lockTorque: 'lockTorque', viscousCoef: 'viscousCoef', viscousTorque: 'viscousTorque',
|
|
787
|
+
lsdPreload: 'lsdPreload', lsdLockCoef: 'lsdLockCoef', lsdRevLockCoef: 'lsdRevLockCoef',
|
|
788
|
+
friction: 'friction', dynamicFriction: 'dynamicFriction',
|
|
789
|
+
};
|
|
790
|
+
const runtimeCriticalDifferentialFields = new Set([
|
|
791
|
+
'type', 'name', 'inputName', 'inputIndex', 'diffType', 'gearRatio', 'viscousExponent',
|
|
792
|
+
...differentialFields,
|
|
793
|
+
]);
|
|
794
|
+
const axleWheels = { front: ['FL', 'FR'], rear: ['RL', 'RR'] };
|
|
795
|
+
const expectedWheels = drivenAxles.flatMap((axle) => axleWheels[axle]).sort();
|
|
796
|
+
const wheelPathEntries = record(driveline?.wheelPaths) ? Object.entries(driveline.wheelPaths) : [];
|
|
797
|
+
const validWheelPaths = nonempty(driveline?.transmissionDevice)
|
|
798
|
+
&& equalJson(wheelPathEntries.map(([wheel]) => wheel).sort(), expectedWheels)
|
|
799
|
+
&& wheelPathEntries.every(([, path]) => Array.isArray(path) && path.length > 0
|
|
800
|
+
&& path.every(nonempty) && new Set(path).size === path.length
|
|
801
|
+
&& path.at(-1) === driveline.transmissionDevice)
|
|
802
|
+
&& drivenAxles.every((axle) => axleWheels[axle].every((wheel) =>
|
|
803
|
+
driveline.wheelPaths[wheel].includes(driveline.differentials[axle]?.deviceName)))
|
|
804
|
+
&& (drivenAxles.length !== 2 || expectedWheels.every((wheel) =>
|
|
805
|
+
driveline.wheelPaths[wheel].includes(driveline.differentials.centre?.deviceName)))
|
|
806
|
+
&& expectedWheels.every((wheel) => {
|
|
807
|
+
const path = driveline.wheelPaths[wheel];
|
|
808
|
+
const axle = wheel.startsWith('F') ? 'front' : 'rear';
|
|
809
|
+
const axleIndex = path.indexOf(driveline.differentials[axle].deviceName);
|
|
810
|
+
const gearboxIndex = path.indexOf(driveline.transmissionDevice);
|
|
811
|
+
if (drivenAxles.length !== 2) return axleIndex >= 0 && axleIndex < gearboxIndex;
|
|
812
|
+
const centreIndex = path.indexOf(driveline.differentials.centre.deviceName);
|
|
813
|
+
return axleIndex >= 0 && axleIndex < centreIndex && centreIndex < gearboxIndex;
|
|
814
|
+
});
|
|
815
|
+
const gearboxKinds = { manualGearbox: 'manual', sequentialGearbox: 'sequential',
|
|
816
|
+
dctGearbox: 'dct', cvtGearbox: 'cvt', automaticGearbox: 'automatic' };
|
|
817
|
+
const validRuntimeGearbox = record(driveline?.gearbox) && driveline.gearbox.status === 'derived'
|
|
818
|
+
&& nonempty(driveline.gearbox.deviceName) && nonempty(driveline.gearbox.deviceType)
|
|
819
|
+
&& nonempty(driveline.gearbox.partName) && nonempty(driveline.gearbox.source)
|
|
820
|
+
&& gearboxKinds[driveline.gearbox.deviceType] === driveline.gearbox.kind
|
|
821
|
+
&& runtimeDriveline?.gearbox?.kind === driveline.gearbox.kind
|
|
822
|
+
&& driveline.transmissionDevice === driveline.gearbox.deviceName;
|
|
823
|
+
const expectedDriveBias = driveline?.runtimeStatus === 'unsupported' ? 0.5
|
|
824
|
+
: drivenAxles.length === 1 ? (drivenAxles[0] === 'front' ? 1 : 0)
|
|
825
|
+
: runtimeDriveline?.centre?.torqueSplit;
|
|
826
|
+
const validLegacyDriveline = semanticReceipt(driveline?.legacyFinalDrive)
|
|
827
|
+
&& approximately(lowering?.vehiclePackage?.physics?.driveBiasFront?.value, expectedDriveBias)
|
|
828
|
+
&& (driveline.legacyFinalDrive.status === 'unsupported'
|
|
829
|
+
|| approximately(lowering?.vehiclePackage?.physics?.gearbox?.finalDrive?.value,
|
|
830
|
+
driveline.legacyFinalDrive.value));
|
|
831
|
+
const validRuntimeDiff = ([location, source], requireParity) => {
|
|
832
|
+
const runtime = runtimeDriveline?.[location];
|
|
833
|
+
const fields = source.fields;
|
|
834
|
+
const supportedType = ['open', 'locked', 'viscous', 'lsd'].includes(source.type);
|
|
835
|
+
const resolved = [...differentialFields.map((name) => fields[name]), source.gearRatio]
|
|
836
|
+
.every((receipt) => receipt.status !== 'unsupported');
|
|
837
|
+
const activeController = source.controllers.some((name) => name.includes('activeCenterDiff'));
|
|
838
|
+
const runtimeConflict = source.overlayConflicts.some((conflict) =>
|
|
839
|
+
runtimeCriticalDifferentialFields.has(conflict.field));
|
|
840
|
+
const representableLosses = ['torqueLossCoef', 'defaultVirtualInertia', 'speedLimitCoef']
|
|
841
|
+
.every((name) => fields[name].value === 0);
|
|
842
|
+
const typeParametersValid = source.type !== 'locked' || fields.lockTorque.value > 0;
|
|
843
|
+
const viscousRuntimeSafe = source.type !== 'viscous'
|
|
844
|
+
|| (fields.viscousCoef.value > 0 && fields.viscousTorque.value > 0
|
|
845
|
+
&& Number.isFinite(fields.viscousExponent.value));
|
|
846
|
+
const viscousParity = viscousRuntimeSafe
|
|
847
|
+
&& (source.type !== 'viscous'
|
|
848
|
+
|| (fields.viscousExponent.status !== 'unsupported' && fields.viscousExponent.value === 1));
|
|
849
|
+
if (!record(runtime) || !supportedType || !resolved || !typeParametersValid || !viscousRuntimeSafe
|
|
850
|
+
|| runtimeConflict
|
|
851
|
+
|| !(source.gearRatio.value > 0)
|
|
852
|
+
|| !(fields.diffTorqueSplit.value >= 0 && fields.diffTorqueSplit.value <= 1)
|
|
853
|
+
|| runtime.type !== source.type
|
|
854
|
+
|| !approximately(runtime.gearRatio, source.gearRatio.value)) return false;
|
|
855
|
+
if (requireParity && (activeController || !representableLosses
|
|
856
|
+
|| fields.activeLockTorque.value !== 0 || !viscousParity)) return false;
|
|
857
|
+
const sourceSplit = source.fields.diffTorqueSplit.value;
|
|
858
|
+
const expectedSplit = source.outputPorts.a === 1 ? sourceSplit : Math.round((1 - sourceSplit) * 1e8) / 1e8;
|
|
859
|
+
if (!approximately(runtime.torqueSplit, expectedSplit)) return false;
|
|
860
|
+
return Object.entries(runtimeFields).every(([runtimeField, receiptField]) =>
|
|
861
|
+
approximately(runtime[runtimeField], source.fields[receiptField].value));
|
|
862
|
+
};
|
|
863
|
+
const validDriveline = record(driveline) && ['functional', 'unsupported'].includes(driveline.status)
|
|
864
|
+
&& ['functional', 'approximate', 'unsupported'].includes(driveline.runtimeStatus)
|
|
865
|
+
&& drivenAxles.every((name) => ['front', 'rear'].includes(name))
|
|
866
|
+
&& new Set(drivenAxles).size === drivenAxles.length && record(driveline.wheelPaths)
|
|
867
|
+
&& differentialEntries.every(([location, value]) => ['front', 'rear', 'centre'].includes(location)
|
|
868
|
+
&& differential(value))
|
|
869
|
+
&& record(driveline.variables) && Array.isArray(driveline.runtimeBlockers)
|
|
870
|
+
&& (explicitUnsupported(driveline.gearbox) || validRuntimeGearbox)
|
|
871
|
+
&& validLegacyDriveline
|
|
872
|
+
&& (driveline.status === 'functional') === (driveline.runtimeBlockers.length === 0)
|
|
873
|
+
&& (driveline.status === 'functional' ? driveline.runtimeStatus === 'functional'
|
|
874
|
+
: driveline.runtimeStatus !== 'functional')
|
|
875
|
+
&& (driveline.runtimeStatus !== 'unsupported'
|
|
876
|
+
? differentialEntries.length === expectedDiffCount
|
|
877
|
+
&& equalJson(semanticLocations, expectedLocations)
|
|
878
|
+
&& equalJson(runtimeLocations, expectedLocations)
|
|
879
|
+
&& validRuntimeGearbox
|
|
880
|
+
&& validWheelPaths
|
|
881
|
+
&& differentialEntries.every((entry) => validRuntimeDiff(entry, driveline.status === 'functional'))
|
|
882
|
+
: !hasRuntimeDiff('front') && !hasRuntimeDiff('rear') && !hasRuntimeDiff('centre'));
|
|
883
|
+
const absValidation = validateAbsLowering(lowering);
|
|
884
|
+
const abs = absValidation.abs;
|
|
885
|
+
const sourceExtractionComplete = suspension?.axles?.front?.status === 'resolved'
|
|
886
|
+
&& suspension?.axles?.rear?.status === 'resolved'
|
|
887
|
+
&& suspension?.antiRoll?.front?.torsionSpring?.status !== 'unsupported'
|
|
888
|
+
&& suspension?.antiRoll?.front?.torsionSpring !== undefined
|
|
889
|
+
&& suspension?.antiRoll?.rear?.torsionSpring?.status !== 'unsupported'
|
|
890
|
+
&& suspension?.antiRoll?.rear?.torsionSpring !== undefined;
|
|
891
|
+
const countedSuspensionProvenance = Object.fromEntries(requiredProvenanceCounts.map((disposition) => [
|
|
892
|
+
disposition,
|
|
893
|
+
Array.isArray(lowering?.provenance) ? lowering.provenance.filter((row) => record(row)
|
|
894
|
+
&& row.disposition === disposition
|
|
895
|
+
&& typeof row.target === 'string'
|
|
896
|
+
&& (row.target.startsWith('physics.suspension')
|
|
897
|
+
|| row.target.startsWith('sourceSemantics.suspension'))).length : -1,
|
|
898
|
+
]));
|
|
899
|
+
const requiredSemanticTargets = new Map();
|
|
900
|
+
const receiptDisposition = (receipt) => receipt?.status === 'literal' ? 'source-literal' : receipt?.status;
|
|
901
|
+
const expectedEvidence = (receipt, source) => ({ disposition: receiptDisposition(receipt), source });
|
|
902
|
+
for (const axle of ['front', 'rear']) {
|
|
903
|
+
const row = suspension?.axles?.[axle];
|
|
904
|
+
if (record(row) && nonempty(row.partName)) {
|
|
905
|
+
requiredSemanticTargets.set(`sourceSemantics.suspension.axles.${axle}.springRate`,
|
|
906
|
+
expectedEvidence(row.springRate, row.source));
|
|
907
|
+
requiredSemanticTargets.set(`sourceSemantics.suspension.axles.${axle}.precompressionRange`,
|
|
908
|
+
expectedEvidence(row.precompressionRange, row.source));
|
|
909
|
+
requiredSemanticTargets.set(`sourceSemantics.suspension.axles.${axle}.bumpLimit`,
|
|
910
|
+
expectedEvidence(row.bumpLimit, row.source));
|
|
911
|
+
for (const field of ['slowBump', 'fastBump', 'slowRebound', 'fastRebound']) {
|
|
912
|
+
requiredSemanticTargets.set(`sourceSemantics.suspension.axles.${axle}.damping.${field}`,
|
|
913
|
+
expectedEvidence(row.damping?.[field], row.source));
|
|
914
|
+
}
|
|
915
|
+
if (Object.keys(row.derived ?? {}).length > 0) {
|
|
916
|
+
requiredSemanticTargets.set(`sourceSemantics.suspension.axles.${axle}.derived`,
|
|
917
|
+
{ disposition: 'derived', source: row.source });
|
|
918
|
+
}
|
|
919
|
+
} else if (explicitUnsupported(row)) {
|
|
920
|
+
requiredSemanticTargets.set(`sourceSemantics.suspension.axles.${axle}`,
|
|
921
|
+
{ disposition: 'unsupported', source: 'selected JBeam part custody' });
|
|
922
|
+
}
|
|
923
|
+
if (record(suspension?.antiRoll?.[axle]) && nonempty(suspension.antiRoll[axle].partName)) {
|
|
924
|
+
requiredSemanticTargets.set(`sourceSemantics.suspension.antiRoll.${axle}.torsionSpring`,
|
|
925
|
+
expectedEvidence(suspension.antiRoll[axle].torsionSpring, suspension.antiRoll[axle].source));
|
|
926
|
+
}
|
|
927
|
+
const tyre = tyres?.axles?.[axle];
|
|
928
|
+
if (record(tyre) && nonempty(tyre.partName)) {
|
|
929
|
+
for (const field of tyreFields) {
|
|
930
|
+
requiredSemanticTargets.set(`sourceSemantics.wheelsTyres.axles.${axle}.${field}`,
|
|
931
|
+
expectedEvidence(tyre[field], tyre.source));
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
if (record(driveline?.gearbox) && driveline.gearbox.status === 'derived') {
|
|
936
|
+
requiredSemanticTargets.set('simulation.land.driveline.gearbox.kind',
|
|
937
|
+
{ disposition: 'source-literal', source: driveline.gearbox.source });
|
|
938
|
+
}
|
|
939
|
+
for (const [location, row] of differentialEntries) {
|
|
940
|
+
requiredSemanticTargets.set(`sourceSemantics.driveline.differentials.${location}.type`, {
|
|
941
|
+
disposition: ['open', 'locked', 'viscous', 'lsd'].includes(row.type) ? 'source-literal' : 'unsupported',
|
|
942
|
+
source: row.source,
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
requiredSemanticTargets.set('simulation.land.driveline.differentials', {
|
|
946
|
+
disposition: driveline?.status === 'functional' ? 'derived' : 'unsupported',
|
|
947
|
+
source: 'selected JBeam powertrain graph',
|
|
948
|
+
});
|
|
949
|
+
requiredSemanticTargets.set('simulation.land.tyreByAxle', {
|
|
950
|
+
disposition: 'unsupported',
|
|
951
|
+
source: 'selected JBeam pressureWheels',
|
|
952
|
+
});
|
|
953
|
+
if (absContract) {
|
|
954
|
+
for (const [target, evidence] of absValidation.provenance) {
|
|
955
|
+
requiredSemanticTargets.set(target, evidence);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
const provenanceByTarget = new Map();
|
|
959
|
+
if (Array.isArray(lowering?.provenance)) {
|
|
960
|
+
for (const row of lowering.provenance) {
|
|
961
|
+
if (record(row) && typeof row.target === 'string') {
|
|
962
|
+
const rows = provenanceByTarget.get(row.target) ?? [];
|
|
963
|
+
rows.push(row);
|
|
964
|
+
provenanceByTarget.set(row.target, rows);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
const validSemanticTargets = [...requiredSemanticTargets].every(([target, expected]) => {
|
|
969
|
+
const rows = provenanceByTarget.get(target);
|
|
970
|
+
return rows?.length === 1 && rows[0].disposition === expected.disposition
|
|
971
|
+
&& rows[0].source === expected.source;
|
|
972
|
+
});
|
|
973
|
+
const axleRows = [suspension?.axles?.front, suspension?.axles?.rear];
|
|
974
|
+
const expectedSuspensionCounts = {
|
|
975
|
+
selectedLeafParts: axleRows.reduce((count, row) => count + (Array.isArray(row?.candidates)
|
|
976
|
+
? row.candidates.length : record(row) && nonempty(row.partName) ? 1 : 0), 0),
|
|
977
|
+
excludedStructuralParts: Array.isArray(suspension?.excludedStructuralParts)
|
|
978
|
+
? suspension.excludedStructuralParts.length : -1,
|
|
979
|
+
resolvedAxles: axleRows.filter((row) => row?.status === 'resolved').length,
|
|
980
|
+
sourceRows: axleRows.reduce((count, row) => count + (record(row?.rowCounts)
|
|
981
|
+
? Object.values(row.rowCounts).reduce((sum, value) => sum + (Number.isInteger(value) ? value : 0), 0) : 0), 0),
|
|
982
|
+
};
|
|
983
|
+
const validSemantics = record(semantics)
|
|
984
|
+
&& record(semantics.mass) && Number.isInteger(semantics.mass.uniqueNodes)
|
|
985
|
+
&& Number.isFinite(semantics.mass.selectedNodeMassKg)
|
|
986
|
+
&& Array.isArray(semantics.seats)
|
|
987
|
+
&& Array.isArray(semantics.cameras)
|
|
988
|
+
&& record(semantics.brakes) && record(semantics.brakes.axles)
|
|
989
|
+
&& record(suspension)
|
|
990
|
+
&& record(suspension.axles) && suspensionAxle(suspension.axles.front) && suspensionAxle(suspension.axles.rear)
|
|
991
|
+
&& record(suspension.antiRoll) && antiRollAxle(suspension.antiRoll.front) && antiRollAxle(suspension.antiRoll.rear)
|
|
992
|
+
&& Array.isArray(suspension.excludedStructuralParts)
|
|
993
|
+
&& Array.isArray(suspension.runtimeBlockers) && suspension.runtimeBlockers.length > 0
|
|
994
|
+
&& typeof suspension.extractionComplete === 'boolean'
|
|
995
|
+
&& suspension.extractionComplete === sourceExtractionComplete
|
|
996
|
+
&& record(suspensionCounts)
|
|
997
|
+
&& requiredSuspensionCounts.every((name) => Number.isInteger(suspensionCounts[name])
|
|
998
|
+
&& suspensionCounts[name] >= 0 && suspensionCounts[name] === expectedSuspensionCounts[name])
|
|
999
|
+
&& validTyres && Array.isArray(semantics.wheelsTyres.selectedParts)
|
|
1000
|
+
&& validDriveline
|
|
1001
|
+
&& (!absContract || record(semantics.controllers))
|
|
1002
|
+
&& Array.isArray(semantics.electrics)
|
|
1003
|
+
&& Array.isArray(semantics.audioEvents)
|
|
1004
|
+
&& Array.isArray(semantics.openableControllers);
|
|
1005
|
+
const validCoverage = record(coverage)
|
|
1006
|
+
&& record(coverage.functionalDomains)
|
|
1007
|
+
&& coverage.functionalDomains.suspension === false
|
|
1008
|
+
&& coverage.functionalDomains.wheelsTyres === false
|
|
1009
|
+
&& coverage.functionalDomains.differentials === (driveline?.status === 'functional')
|
|
1010
|
+
&& (!absContract || coverage.functionalDomains.abs === absValidation.functional)
|
|
1011
|
+
&& record(suspensionProvenance)
|
|
1012
|
+
&& requiredProvenanceCounts.every((name) => Number.isInteger(suspensionProvenance[name])
|
|
1013
|
+
&& suspensionProvenance[name] >= 0
|
|
1014
|
+
&& suspensionProvenance[name] === countedSuspensionProvenance[name]);
|
|
1015
|
+
const validCapabilities = Array.isArray(lowering?.capabilities) && lowering.capabilities.length > 0
|
|
1016
|
+
&& lowering.capabilities.every((row) => record(row) && typeof row.capability === 'string'
|
|
1017
|
+
&& typeof row.disposition === 'string' && Array.isArray(row.source) && typeof row.note === 'string');
|
|
1018
|
+
const validProvenance = Array.isArray(lowering?.provenance) && lowering.provenance.length > 0
|
|
1019
|
+
&& lowering.provenance.every((row) => record(row) && typeof row.target === 'string'
|
|
1020
|
+
&& typeof row.source === 'string'
|
|
1021
|
+
&& ['source-literal', 'derived', 'defaulted', 'unsupported', 'out-of-scope',
|
|
1022
|
+
'missing-source', 'discovered-not-lowered'].includes(row.disposition)
|
|
1023
|
+
&& typeof row.detail === 'string');
|
|
1024
|
+
const invalid = [
|
|
1025
|
+
[['helix.beamng-functional-lowering/2', 'helix.beamng-functional-lowering/3']
|
|
1026
|
+
.includes(lowering?.schemaVersion), 'schema'],
|
|
1027
|
+
[validSemantics, 'sourceSemantics'], [!absContract || absValidation.valid, 'abs'],
|
|
1028
|
+
[validCapabilities && (!absContract || absValidation.capabilityValid), 'capabilities'],
|
|
1029
|
+
[validProvenance, 'provenance'], [validSemanticTargets, 'semanticProvenance'],
|
|
1030
|
+
[validCoverage, 'coverage'],
|
|
1031
|
+
].filter(([valid]) => !valid).map(([, name]) => name);
|
|
1032
|
+
if (invalid.length > 0) {
|
|
1033
|
+
throw new Error(`${boundary} has an incompatible schema or incomplete functional-lowering diagnostics: ${invalid.join(', ')}`);
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/** How the cylinder count was decided, so a defaulted or conflicting value is visible in the report. */
|
|
1038
|
+
function engineCylinderReport(functionalVehicle) {
|
|
1039
|
+
const row = functionalVehicle.provenance?.find?.((entry) => entry.target === 'engine.cylinders')
|
|
1040
|
+
?? functionalVehicle.vehiclePackage?.provenance?.find?.((entry) => entry.target === 'engine.cylinders');
|
|
1041
|
+
return { count: functionalVehicle.vehiclePackage.audio?.sampleCylinderCount ?? null,
|
|
1042
|
+
disposition: row?.disposition ?? null, source: row?.source ?? null, detail: row?.detail ?? null };
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
function lowerFunctionalVehicle({ source, candidate, sourceManifest, conversion, outputDir, commonRoot,
|
|
1046
|
+
selectedPartIndexArtifact, absControllerReceipt, engineOverride }) {
|
|
1047
|
+
const configurationFile = conversion.importQuality?.configuration?.file;
|
|
1048
|
+
if (!configurationFile) throw new Error('functional BeamNG lowering requires an exact selected .pc configuration');
|
|
1049
|
+
const configuration = resolve(candidate.root, configurationFile);
|
|
1050
|
+
if (!existsSync(configuration) || dirname(configuration) !== resolve(candidate.root)) {
|
|
1051
|
+
throw new Error('functional BeamNG lowering refused a configuration outside the selected vehicle root');
|
|
1052
|
+
}
|
|
1053
|
+
const sourcePath = join(outputDir, `.${candidate.id}.lowering-source.json`);
|
|
1054
|
+
const geometryPath = join(outputDir, `.${candidate.id}.lowering-geometry.json`);
|
|
1055
|
+
const bundlePath = join(outputDir, `${candidate.id}.functional-lowering.json`);
|
|
1056
|
+
const audioDir = join(outputDir, 'audio');
|
|
1057
|
+
rmSync(audioDir, { recursive: true, force: true });
|
|
1058
|
+
let lowered;
|
|
1059
|
+
let bundle;
|
|
1060
|
+
try {
|
|
1061
|
+
writeFileSync(sourcePath, `${JSON.stringify(sourceManifest)}\n`);
|
|
1062
|
+
writeFileSync(geometryPath, `${JSON.stringify({ HELIX_vehicle: conversion.vehicleGeometry ?? {} })}\n`);
|
|
1063
|
+
const executable = resolve(dirname(fileURLToPath(import.meta.url)), 'lower-beamng.py');
|
|
1064
|
+
lowered = spawnSync('python3', [executable,
|
|
1065
|
+
'--source-root', source, '--vehicle-root', candidate.root, '--configuration', configuration,
|
|
1066
|
+
'--vehicle-source', sourcePath, '--geometry', geometryPath, '--output', bundlePath,
|
|
1067
|
+
'--audio-dir', audioDir,
|
|
1068
|
+
'--part-index', selectedPartIndexArtifact.path,
|
|
1069
|
+
...(absControllerReceipt ? ['--abs-controller-receipt', absControllerReceipt] : []),
|
|
1070
|
+
...(engineOverride ? ['--engine-override', engineOverride] : []),
|
|
1071
|
+
...(commonRoot ? ['--common-root', commonRoot] : []),
|
|
1072
|
+
], { encoding: 'utf8', maxBuffer: MAX_CONVERTER_LOG_BYTES });
|
|
1073
|
+
if (lowered.status !== 0) throw new Error(`functional BeamNG lowering failed: ${lowered.stderr.trim()}`);
|
|
1074
|
+
bundle = JSON.parse(readFileSync(bundlePath, 'utf8'));
|
|
1075
|
+
} finally {
|
|
1076
|
+
rmSync(sourcePath, { force: true });
|
|
1077
|
+
rmSync(geometryPath, { force: true });
|
|
1078
|
+
}
|
|
1079
|
+
assertValidFunctionalLowering(bundle, 'functional BeamNG lowerer');
|
|
1080
|
+
if (bundle?.vehiclePackage?.schemaVersion !== 'helix.vehicle-package/2'
|
|
1081
|
+
|| bundle?.addOnPackages?.schemaVersion !== 'helix.vehicle-addon-packages/1'
|
|
1082
|
+
|| bundle?.build?.schemaVersion !== 'helix.vehicle-build-source/1'
|
|
1083
|
+
|| bundle?.identity?.candidateId !== candidate.id
|
|
1084
|
+
|| bundle?.identity?.bridgePlanKey !== sourceManifest.identity.bridgePlanKey) {
|
|
1085
|
+
throw new Error('functional BeamNG lowerer returned an incompatible or mismatched contract');
|
|
1086
|
+
}
|
|
1087
|
+
assertValidVehiclePackage(bundle.vehiclePackage, 'functional BeamNG lowerer');
|
|
1088
|
+
return bundle;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
function packageVehicleSource(request) {
|
|
1092
|
+
const input = request.input;
|
|
1093
|
+
const manifest = input?.metadata?.vehicleSourceManifest;
|
|
1094
|
+
if (input?.kind !== 'format.glb' || !input.path || manifest?.schemaVersion !== BEAMNG_VEHICLE_SOURCE_SCHEMA) {
|
|
1095
|
+
throw new Error('BeamNG vehicle packaging requires a converted GLB with helix.beamng-vehicle-source/1 metadata');
|
|
1096
|
+
}
|
|
1097
|
+
const functional = input?.metadata?.functionalVehicle;
|
|
1098
|
+
const candidateId = portableCandidateId(manifest?.vehicle?.candidateId);
|
|
1099
|
+
assertValidFunctionalLowering(functional, 'BeamNG functional package metadata');
|
|
1100
|
+
if (functional.vehiclePackage?.schemaVersion !== 'helix.vehicle-package/2'
|
|
1101
|
+
|| functional.addOnPackages?.schemaVersion !== 'helix.vehicle-addon-packages/1'
|
|
1102
|
+
|| functional.build?.schemaVersion !== 'helix.vehicle-build-source/1'
|
|
1103
|
+
|| functional.identity?.candidateId !== manifest.vehicle.candidateId
|
|
1104
|
+
|| functional.identity?.bridgePlanKey !== manifest.identity?.bridgePlanKey) {
|
|
1105
|
+
throw new Error('BeamNG functional package metadata has an incompatible schema or mismatched identity');
|
|
1106
|
+
}
|
|
1107
|
+
if (basename(input.path) !== `${candidateId}.glb`) {
|
|
1108
|
+
throw new Error('BeamNG vehicle packaging input GLB basename does not match its candidateId');
|
|
1109
|
+
}
|
|
1110
|
+
const bridgePlanKey = assertSha256(request.deterministicKey, 'BeamNG vehicle packaging deterministicKey');
|
|
1111
|
+
const source = {
|
|
1112
|
+
sha256: assertSha256(request.source?.sha256, 'BeamNG vehicle packaging source.sha256'),
|
|
1113
|
+
sizeBytes: assertSize(request.source?.sizeBytes, 'BeamNG vehicle packaging source.sizeBytes'),
|
|
1114
|
+
};
|
|
1115
|
+
const reviewedInput = {
|
|
1116
|
+
sha256: assertSha256(input.sha256, 'BeamNG vehicle packaging input.sha256'),
|
|
1117
|
+
sizeBytes: assertSize(input.sizeBytes, 'BeamNG vehicle packaging input.sizeBytes'),
|
|
1118
|
+
};
|
|
1119
|
+
const inputs = portableInputIdentity(request.inputs);
|
|
1120
|
+
if (manifest.identity?.bridgePlanKey !== bridgePlanKey || functional.identity?.bridgePlanKey !== bridgePlanKey) {
|
|
1121
|
+
throw new Error('BeamNG terminal metadata does not match the reviewed Bridge plan');
|
|
1122
|
+
}
|
|
1123
|
+
if (manifest.identity?.sourceSha256 !== source.sha256 || manifest.identity?.sourceSizeBytes !== source.sizeBytes
|
|
1124
|
+
|| functional.identity?.sourceSha256 !== source.sha256) {
|
|
1125
|
+
throw new Error('BeamNG terminal metadata does not match the reviewed source identity');
|
|
1126
|
+
}
|
|
1127
|
+
if (!equalJson(manifest.identity?.inputs, inputs)) {
|
|
1128
|
+
throw new Error('BeamNG terminal metadata does not match the reviewed named-input hashes');
|
|
1129
|
+
}
|
|
1130
|
+
const currentGlb = sha256FileSync(input.path);
|
|
1131
|
+
if (!equalJson(currentGlb, reviewedInput)) {
|
|
1132
|
+
throw new Error('BeamNG vehicle packaging current GLB identity does not match its reviewed artifact receipt');
|
|
1133
|
+
}
|
|
1134
|
+
const expectedBinding = terminalPackageBinding({ bridgePlanKey, candidateId, source, inputs,
|
|
1135
|
+
canonicalGlb: currentGlb, vehicleSourceManifest: manifest, functionalVehicle: functional });
|
|
1136
|
+
if (!equalJson(input.metadata?.terminalPackageBinding, expectedBinding)) {
|
|
1137
|
+
throw new Error('BeamNG vehicle packaging terminal package binding is missing or stale');
|
|
1138
|
+
}
|
|
1139
|
+
assertValidVehiclePackage(functional.vehiclePackage, 'BeamNG vehicle packaging');
|
|
1140
|
+
const assets = prepareAssetDirectory(request.outputDir);
|
|
1141
|
+
const glb = confinedNewAsset(assets, `${candidateId}.glb`);
|
|
1142
|
+
const sourceManifest = confinedNewAsset(assets, `${candidateId}.vehicle-source.json`);
|
|
1143
|
+
copyFileSync(input.path, glb, constants.COPYFILE_EXCL);
|
|
1144
|
+
writeFileSync(sourceManifest, `${JSON.stringify(manifest, null, 2)}\n`, { flag: 'wx' });
|
|
1145
|
+
const artifacts = [
|
|
1146
|
+
{ kind: 'helix.package.asset', path: relative(request.outputDir, glb),
|
|
1147
|
+
metadata: { role: 'canonical-vehicle-glb', vehicleSourceSchema: manifest.schemaVersion } },
|
|
1148
|
+
{ kind: 'helix.package.asset', path: relative(request.outputDir, sourceManifest),
|
|
1149
|
+
metadata: { role: 'vehicle-source-manifest', schemaVersion: manifest.schemaVersion,
|
|
1150
|
+
vehicle: candidateId } },
|
|
1151
|
+
];
|
|
1152
|
+
for (const [suffix, value, role] of [
|
|
1153
|
+
['vehicle-lowering', functional, 'vehicle-functional-lowering'],
|
|
1154
|
+
['vehicle-package', functional.vehiclePackage, 'vehicle-package'],
|
|
1155
|
+
['vehicle-addons', functional.addOnPackages, 'vehicle-add-on-packages'],
|
|
1156
|
+
['vehicle-build', functional.build, 'vehicle-build-source'],
|
|
1157
|
+
]) {
|
|
1158
|
+
const path = confinedNewAsset(assets, `${candidateId}.${suffix}.json`);
|
|
1159
|
+
writeFileSync(path, `${JSON.stringify(value, null, 2)}\n`, { flag: 'wx' });
|
|
1160
|
+
artifacts.push({ kind: 'helix.package.asset', path: relative(request.outputDir, path),
|
|
1161
|
+
metadata: { role, schemaVersion: value.schemaVersion, vehicle: candidateId } });
|
|
1162
|
+
}
|
|
1163
|
+
artifacts.push(...packageAudioSamples(functional.vehiclePackage, input.path, assets, request.outputDir, candidateId));
|
|
1164
|
+
return { artifacts };
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
async function main() {
|
|
1168
|
+
let raw = '';
|
|
1169
|
+
process.stdin.setEncoding('utf8');
|
|
1170
|
+
for await (const chunk of process.stdin) raw += chunk;
|
|
1171
|
+
const request = JSON.parse(raw);
|
|
1172
|
+
if (request?.schemaVersion !== 'helix.bridge-plugin-request/1') throw new Error('unsupported Bridge plugin request');
|
|
1173
|
+
if (request.capability === 'beamng.vehicle.package') {
|
|
1174
|
+
process.stdout.write(JSON.stringify(packageVehicleSource(request)));
|
|
1175
|
+
return;
|
|
1176
|
+
}
|
|
1177
|
+
if (request.capability && request.capability !== 'beamng.vehicle.import') {
|
|
1178
|
+
throw new Error(`unsupported BeamNG vehicle capability: ${request.capability}`);
|
|
1179
|
+
}
|
|
1180
|
+
const palette = vehiclePalette(request.inputs?.palette?.path);
|
|
1181
|
+
const source = resolve(request.source.source);
|
|
1182
|
+
const outputDir = resolve(request.outputDir);
|
|
1183
|
+
mkdirSync(outputDir, { recursive: true });
|
|
1184
|
+
const commonScratch = request.inputs?.beamngCommon?.path ? join(outputDir, '.beamng-common') : null;
|
|
1185
|
+
const reviewedCommon = request.inputs?.beamngCommon?.path
|
|
1186
|
+
? inspectBeamngCommonDependency(request.inputs.beamngCommon.path)
|
|
1187
|
+
: null;
|
|
1188
|
+
let commonDependency = null;
|
|
1189
|
+
let commonRoot = null;
|
|
1190
|
+
let assessment, selected, output, conversion, qa, vehicleSourceManifest, functionalVehicle, selectedPartIndexPath;
|
|
1191
|
+
try {
|
|
1192
|
+
assessment = assess(source, reviewedCommon?.sourceRoot ?? null);
|
|
1193
|
+
selected = assessment.selected;
|
|
1194
|
+
output = join(outputDir, `${selected.id}.glb`);
|
|
1195
|
+
selectedPartIndexPath = join(outputDir, `.${selected.id}.selected-parts.json`);
|
|
1196
|
+
if (reviewedCommon && commonScratch) {
|
|
1197
|
+
const preliminaryIdentity = { bridgePlanKey: request.deterministicKey, sourceSha256: request.source.sha256,
|
|
1198
|
+
commonClosureSha256: reviewedCommon.closureSha256 };
|
|
1199
|
+
const preliminary = sourceGlbConfiguration(source, selected, selectedPartIndexPath,
|
|
1200
|
+
reviewedCommon.sourceRoot, preliminaryIdentity);
|
|
1201
|
+
const selectedPaths = selectedCommonDependencyPaths(reviewedCommon, source, selected,
|
|
1202
|
+
preliminary.configuration.selectedPartSummary);
|
|
1203
|
+
commonDependency = materializeBeamngCommonDependency(request.inputs.beamngCommon.path, commonScratch, {
|
|
1204
|
+
selectedPaths,
|
|
1205
|
+
cacheRoot: resolve(process.env.HELIX_BRIDGE_CACHE_DIR ?? join(tmpdir(), 'helix-beamng-common-cas')),
|
|
1206
|
+
});
|
|
1207
|
+
commonRoot = commonDependency.root;
|
|
1208
|
+
assessment = assess(source, commonRoot);
|
|
1209
|
+
selected = assessment.selected;
|
|
1210
|
+
}
|
|
1211
|
+
const indexIdentity = { bridgePlanKey: request.deterministicKey, sourceSha256: request.source.sha256,
|
|
1212
|
+
commonClosureSha256: commonDependency?.closureSha256 ?? null };
|
|
1213
|
+
conversion = await convert(source, selected, output, palette.path, commonDependency, false,
|
|
1214
|
+
selectedPartIndexPath, indexIdentity);
|
|
1215
|
+
stampConversionMaterials(output, conversion, palette);
|
|
1216
|
+
stampBridgeProvenance(output, source, selected);
|
|
1217
|
+
qa = auditVehicleGlb(output, { sourceRoot: selected.root, hasAudio: selected.hasAudio });
|
|
1218
|
+
if (qa.findings.some((row) => row.code === 'frame.forward-semantics' && row.status === 'error') && selected.glbs.length === 0) {
|
|
1219
|
+
conversion = await convert(source, selected, output, palette.path, commonDependency, true,
|
|
1220
|
+
selectedPartIndexPath, indexIdentity);
|
|
1221
|
+
stampConversionMaterials(output, conversion, palette);
|
|
1222
|
+
stampBridgeProvenance(output, source, selected);
|
|
1223
|
+
qa = auditVehicleGlb(output, { sourceRoot: selected.root, hasAudio: selected.hasAudio });
|
|
1224
|
+
}
|
|
1225
|
+
vehicleSourceManifest = buildVehicleSourceManifest({
|
|
1226
|
+
request, source, candidate: selected, conversion,
|
|
1227
|
+
commonDependency, importQuality: conversion.importQuality ?? {}, qa,
|
|
1228
|
+
});
|
|
1229
|
+
functionalVehicle = lowerFunctionalVehicle({ source, candidate: selected, sourceManifest: vehicleSourceManifest,
|
|
1230
|
+
conversion, outputDir, commonRoot, selectedPartIndexArtifact: { path: selectedPartIndexPath },
|
|
1231
|
+
absControllerReceipt: request.inputs?.beamngAbsController?.path
|
|
1232
|
+
? resolve(request.inputs.beamngAbsController.path) : null,
|
|
1233
|
+
engineOverride: request.inputs?.beamngEngine?.path ? resolve(request.inputs.beamngEngine.path) : null });
|
|
1234
|
+
vehicleSourceManifest = markVehicleSourceFunctionallyLowered(vehicleSourceManifest, functionalVehicle);
|
|
1235
|
+
} finally {
|
|
1236
|
+
if (selectedPartIndexPath) rmSync(selectedPartIndexPath, { force: true });
|
|
1237
|
+
if (commonScratch) rmSync(commonScratch, { recursive: true, force: true });
|
|
1238
|
+
}
|
|
1239
|
+
const sourceManifestPath = join(outputDir, `${selected.id}.vehicle-source.json`);
|
|
1240
|
+
const sourceManifestDigest = sha256Json(vehicleSourceManifest);
|
|
1241
|
+
writeFileSync(sourceManifestPath, sourceManifestDigest.bytes);
|
|
1242
|
+
injectVehicleReceipt(output, { HELIX_beamng_vehicle_source: vehicleSourceManifest });
|
|
1243
|
+
const { importQuality: _importQuality, ...conversionReport } = conversion;
|
|
1244
|
+
const report = {
|
|
1245
|
+
schemaVersion: 'helix.beamng-vehicle-import/1',
|
|
1246
|
+
selected: selected.id,
|
|
1247
|
+
assessment: assessment.candidates.map((row) => ({ id: row.id, eligible: row.blockers.length === 0,
|
|
1248
|
+
score: row.score, blockers: row.blockers, jbeam: row.jbeams.length, geometry: row.daes.length + row.glbs.length,
|
|
1249
|
+
materials: row.materials.length, audio: row.audio.length,
|
|
1250
|
+
audioReferences: row.audioReferences, cabinSignals: row.cabin, authoredSteering: row.authoredSteering,
|
|
1251
|
+
authoredTyres: row.authoredTyres, tyreDependency: dependencyReceipt(row.tyreDependency, source, commonDependency),
|
|
1252
|
+
wheelDependencies: row.localWheelDependencies.map((path) => dependencyReceipt(path, source, commonDependency)), wheelSignals: row.wheels })),
|
|
1253
|
+
conversion: conversionReport,
|
|
1254
|
+
commonDependency: commonDependency ? { closureSha256: commonDependency.closureSha256,
|
|
1255
|
+
fileCount: commonDependency.fileCount, sizeBytes: commonDependency.sizeBytes,
|
|
1256
|
+
inputSha256: request.inputs.beamngCommon.sha256 } : null,
|
|
1257
|
+
vehicleSource: { schemaVersion: vehicleSourceManifest.schemaVersion,
|
|
1258
|
+
path: basename(sourceManifestPath), sha256: sourceManifestDigest.sha256 },
|
|
1259
|
+
functionalVehicle: { schemaVersion: functionalVehicle.schemaVersion,
|
|
1260
|
+
vehiclePackage: functionalVehicle.vehiclePackage.id,
|
|
1261
|
+
audioBankAssets: functionalVehicle.vehiclePackage.audio?.bank?.assets?.length ?? 0,
|
|
1262
|
+
engineCylinders: engineCylinderReport(functionalVehicle),
|
|
1263
|
+
explicitSelections: functionalVehicle.coverage.explicitSelections,
|
|
1264
|
+
resolvedSelectionPercent: functionalVehicle.coverage.resolvedSelectionPercent },
|
|
1265
|
+
qa,
|
|
1266
|
+
};
|
|
1267
|
+
writeFileSync(join(outputDir, 'beamng-import-report.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
1268
|
+
if (!qa.eligible) {
|
|
1269
|
+
throw new Error(`converted vehicle failed acceptance:\n${qa.findings.filter((row) => row.status === 'error').map((row) => `- ${row.code}: ${JSON.stringify(row.measured)} (${row.requirement})`).join('\n')}`);
|
|
1270
|
+
}
|
|
1271
|
+
const canonicalGlb = sha256FileSync(output);
|
|
1272
|
+
const terminalBinding = terminalPackageBinding({
|
|
1273
|
+
bridgePlanKey: request.deterministicKey,
|
|
1274
|
+
candidateId: selected.id,
|
|
1275
|
+
source: { sha256: request.source.sha256, sizeBytes: request.source.sizeBytes },
|
|
1276
|
+
inputs: portableInputIdentity(request.inputs),
|
|
1277
|
+
canonicalGlb,
|
|
1278
|
+
vehicleSourceManifest,
|
|
1279
|
+
functionalVehicle,
|
|
1280
|
+
});
|
|
1281
|
+
process.stdout.write(JSON.stringify({ artifacts: [{ kind: 'format.glb', path: basename(output),
|
|
1282
|
+
metadata: { ...report, vehicleSourceManifest, functionalVehicle, terminalPackageBinding: terminalBinding } }] }));
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
export { convert };
|
|
1286
|
+
|
|
1287
|
+
// Compare real paths: argv[1] keeps a symlinked prefix (macOS /var -> /private/var) that import.meta.url
|
|
1288
|
+
// has already resolved, and a plain comparison then exits 0 without running anything.
|
|
1289
|
+
const invokedDirectly = (() => {
|
|
1290
|
+
try { return Boolean(process.argv[1]) && realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url)); }
|
|
1291
|
+
catch { return false; }
|
|
1292
|
+
})();
|
|
1293
|
+
if (invokedDirectly) {
|
|
1294
|
+
main().catch((error) => { process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`); process.exitCode = 1; });
|
|
1295
|
+
}
|