@holoscript/core 6.0.3 → 6.1.1
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 +40 -40
- package/bin/holoscript.cjs +3 -0
- package/dist/GLTFPipeline-SFIORFJU.js +16 -0
- package/dist/GLTFPipeline-VNNDPONV.cjs +37 -0
- package/dist/{HoloScriptPlusParser-BZR5DELQ.js → HoloScriptPlusParser-7FBIFUFC.js} +6 -5
- package/dist/{HoloScriptPlusParser-SBMYDNXO.cjs → HoloScriptPlusParser-A2W7OCN2.cjs} +17 -16
- package/dist/HoloScriptPlusParser-F2Z56FJR.js +10 -0
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +27 -0
- package/dist/{USDZExporter-MHEHXZB4.cjs → USDZExporter-3FWJ25JI.cjs} +344 -16
- package/dist/{USDZExporter-YA55ZS35.js → USDZExporter-D2HQLQYK.js} +344 -16
- package/dist/agents/index.cjs +19 -0
- package/dist/agents/index.d.ts +100 -0
- package/dist/agents/index.js +17 -0
- package/dist/chunk-22W6NGYN.js +725 -0
- package/dist/{chunk-XSUZMPVQ.cjs → chunk-27MPVJVZ.cjs} +64 -28
- package/dist/{chunk-W76ETJTI.js → chunk-2A7FURVO.js} +44 -8
- package/dist/{chunk-C7BNX4XJ.js → chunk-2B7WVIDZ.js} +11 -8
- package/dist/chunk-2BSMSUCE.js +1941 -0
- package/dist/chunk-2HLIGOKU.cjs +5546 -0
- package/dist/{chunk-GC3YU46J.js → chunk-2M2DPHKB.js} +4 -4
- package/dist/{chunk-A6GO3DPZ.cjs → chunk-2YSNA2F2.cjs} +321 -49
- package/dist/{chunk-ZL6VJ6SN.js → chunk-33XCOVE3.js} +5 -5
- package/dist/chunk-3FOKASKO.cjs +348 -0
- package/dist/{chunk-XSF76QRU.js → chunk-4C57PR42.js} +3 -3
- package/dist/chunk-4N4SXXWF.js +769 -0
- package/dist/chunk-4PDEPEQW.cjs +41 -0
- package/dist/chunk-4R6SBXDB.js +45 -0
- package/dist/chunk-4SY77NA4.cjs +413 -0
- package/dist/{chunk-74YCHHTE.js → chunk-4UUKPCY4.js} +670 -116
- package/dist/{chunk-VZNKJZTT.cjs → chunk-52ULD552.cjs} +178 -113
- package/dist/{chunk-65RFOWZI.js → chunk-5CKA5SXU.js} +441 -23
- package/dist/chunk-5FSKKMR7.cjs +2092 -0
- package/dist/{chunk-FF3Q7ADR.js → chunk-5JEU52DW.js} +5 -3
- package/dist/chunk-5N54COB6.cjs +327 -0
- package/dist/chunk-5S7RKFGR.cjs +446 -0
- package/dist/{chunk-EJA7G2C4.cjs → chunk-5WUNN6ZN.cjs} +2 -2
- package/dist/{chunk-ELLQPFAF.js → chunk-6ASWLXXN.js} +24 -10
- package/dist/chunk-6CTRH7HT.cjs +1985 -0
- package/dist/{chunk-ARNKA274.cjs → chunk-6EX3I5P4.cjs} +6 -6
- package/dist/chunk-6FGQNDR4.js +5731 -0
- package/dist/{chunk-X4YVN7H3.cjs → chunk-6KMK2UXT.cjs} +152 -56
- package/dist/{chunk-KUJRR4FJ.js → chunk-6L4VE27M.js} +36 -24
- package/dist/{chunk-RT7LJRSF.cjs → chunk-6S6TKNEA.cjs} +7357 -8312
- package/dist/chunk-77V4GTCA.js +596 -0
- package/dist/{chunk-XH7SE4HH.cjs → chunk-7AD52FRS.cjs} +19 -19
- package/dist/chunk-7OPW2KO7.cjs +639 -0
- package/dist/chunk-A6KINLZJ.js +236 -0
- package/dist/chunk-AIA52I7T.cjs +543 -0
- package/dist/chunk-AIX25INK.cjs +602 -0
- package/dist/{chunk-WN3YF33G.cjs → chunk-AO4I2Z7M.cjs} +15 -17
- package/dist/{chunk-TSWTWZ42.cjs → chunk-BPICAGBV.cjs} +376 -209
- package/dist/chunk-BRQJKJGT.cjs +20 -0
- package/dist/{chunk-3FXV5S25.cjs → chunk-C37BHB7N.cjs} +6 -3
- package/dist/{chunk-XNMEH2BI.js → chunk-CBJY23VL.js} +3 -3
- package/dist/chunk-CIWWXYHZ.cjs +50 -0
- package/dist/{chunk-NTMZSDXM.cjs → chunk-DIL6DDDN.cjs} +101 -45
- package/dist/chunk-DMXC24WV.js +404 -0
- package/dist/{chunk-SPDELRRV.cjs → chunk-DTGBOSEM.cjs} +12 -12
- package/dist/chunk-E7JP3BS3.cjs +61 -0
- package/dist/{chunk-HJJLD366.js → chunk-EKBKLK7P.js} +3 -3
- package/dist/chunk-EKYL4PE3.cjs +404 -0
- package/dist/{chunk-7N3JIJMT.js → chunk-EMMC5CSQ.js} +12 -8
- package/dist/{chunk-EUFLX2PI.js → chunk-EOBB6A4B.js} +7263 -8214
- package/dist/chunk-EOFNVCM6.js +325 -0
- package/dist/{chunk-NKRKT6V2.js → chunk-ER4GATIU.js} +11 -10
- package/dist/{chunk-N5FTS757.cjs → chunk-EXKSFGSX.cjs} +7 -148
- package/dist/{chunk-LK5IAVH6.cjs → chunk-EXUP2BUM.cjs} +27 -27
- package/dist/chunk-FDSGHPAK.js +130 -0
- package/dist/chunk-FEWUHQNM.cjs +144 -0
- package/dist/{chunk-5TOFIR6L.js → chunk-FGGJQRLZ.js} +5 -142
- package/dist/chunk-FHP6LXJS.js +415 -0
- package/dist/{chunk-7LCYLPW2.cjs → chunk-FJPADH77.cjs} +7 -4
- package/dist/{chunk-HBZYCASG.js → chunk-FXKTYFYA.js} +203 -36
- package/dist/chunk-GCMWDSBZ.cjs +729 -0
- package/dist/chunk-GJNCFRJU.cjs +125 -0
- package/dist/{chunk-I3XGTIHM.cjs → chunk-GMP623FG.cjs} +16 -13
- package/dist/{chunk-CNVM7J3M.js → chunk-GN3KDX4W.js} +149 -53
- package/dist/{chunk-WFJIDI2N.cjs → chunk-GQYKQSTC.cjs} +10 -10
- package/dist/chunk-GTU2Z2WW.cjs +262 -0
- package/dist/chunk-GZG4KA4E.js +529 -0
- package/dist/{chunk-DIEDKX5B.cjs → chunk-H3MGK7TX.cjs} +45 -33
- package/dist/{chunk-DN7UFU63.cjs → chunk-H5DZIHJP.cjs} +14 -17
- package/dist/{chunk-DH5G2JUA.cjs → chunk-HANL7K2Q.cjs} +66 -53
- package/dist/{chunk-EGIZHYJP.cjs → chunk-HCCQLAA4.cjs} +2 -13
- package/dist/{chunk-HHS6FMOU.cjs → chunk-HGVXZDSK.cjs} +178 -29
- package/dist/{chunk-LBPEZQAF.js → chunk-HRODTEEO.js} +30 -10
- package/dist/{chunk-ZGTGVSTZ.js → chunk-HYNTS5CP.js} +2 -2
- package/dist/{chunk-RE3OKSYF.cjs → chunk-HZCQO4JM.cjs} +6 -6
- package/dist/{chunk-NCUHGRTZ.js → chunk-I2O7TW6B.js} +12 -8
- package/dist/chunk-IHESJZSW.js +4490 -0
- package/dist/{chunk-7H5UNJZD.cjs → chunk-IRWWS72C.cjs} +64 -22
- package/dist/{chunk-EMO7HAKJ.cjs → chunk-IVIA7K75.cjs} +691 -133
- package/dist/chunk-IVY74O6C.js +247 -0
- package/dist/chunk-J32ZJZJH.js +554 -0
- package/dist/chunk-JD7CIZ33.js +1949 -0
- package/dist/{chunk-7X2IEJIE.cjs → chunk-JIYN45TV.cjs} +41 -42
- package/dist/{chunk-XDXZM3ZP.cjs → chunk-KHPCJRI3.cjs} +24 -21
- package/dist/chunk-KKFZ3B6J.cjs +557 -0
- package/dist/chunk-KPJL34Y7.cjs +186 -0
- package/dist/{chunk-7KPI4EKH.cjs → chunk-KQTPCYTG.cjs} +130 -50
- package/dist/{chunk-F5LVGHNT.js → chunk-KX76JUQY.js} +3 -3
- package/dist/chunk-L4LFINPO.js +623 -0
- package/dist/{chunk-2UX5LRAP.cjs → chunk-L63H3SQ4.cjs} +46 -32
- package/dist/{chunk-NLPSZT4C.js → chunk-LAOCQJ2M.js} +64 -8
- package/dist/chunk-LM2VU56C.cjs +37 -0
- package/dist/chunk-M56JSP4A.js +400 -0
- package/dist/chunk-MBOOR7X4.js +18 -0
- package/dist/{chunk-PQLGZKMC.cjs → chunk-MJVIRCUV.cjs} +31 -27
- package/dist/{chunk-AC4BSHFV.js → chunk-MSMIFMBL.js} +135 -18
- package/dist/{chunk-56IF4NTA.js → chunk-MXFUTKCO.js} +18 -18
- package/dist/{chunk-NRUB55IT.cjs → chunk-MXJ5SS53.cjs} +450 -32
- package/dist/chunk-MXWNGCRS.js +2176 -0
- package/dist/chunk-MYY4PMWX.cjs +264 -0
- package/dist/chunk-N75IH2HY.js +258 -0
- package/dist/chunk-NG77ATEW.cjs +778 -0
- package/dist/chunk-NW5G5FBQ.js +215 -0
- package/dist/{chunk-4FCZDTD5.js → chunk-OEFY723R.js} +29 -16
- package/dist/chunk-OEV5RMZO.cjs +3042 -0
- package/dist/{chunk-VSXOIUCF.cjs → chunk-OIQYIIO3.cjs} +7 -7
- package/dist/{chunk-32TWR3HE.js → chunk-OL46QLBJ.js} +3 -12
- package/dist/chunk-OPZ7XDDI.js +487 -0
- package/dist/chunk-OSYNRVOV.cjs +243 -0
- package/dist/{chunk-HUFNKFA6.js → chunk-P7YIA5LN.js} +93 -13
- package/dist/chunk-PGANYCAG.cjs +220 -0
- package/dist/{chunk-CO2VM2DK.js → chunk-QAVXL2IH.js} +62 -20
- package/dist/{chunk-BO2OKHIY.js → chunk-QCCBXSCE.js} +1640 -1311
- package/dist/{chunk-WYH4GVZ5.js → chunk-QPOQ7VPI.js} +16 -13
- package/dist/{chunk-V42NTCFH.js → chunk-QTPMJRGS.js} +2331 -17
- package/dist/{chunk-FEFHPUEM.cjs → chunk-QWNQ523V.cjs} +1705 -1382
- package/dist/{chunk-VK5AXKO3.js → chunk-R3IVNY6P.js} +166 -101
- package/dist/chunk-R75BSDH7.cjs +50 -0
- package/dist/{chunk-AIUXRS74.cjs → chunk-RMHC2VG7.cjs} +2358 -41
- package/dist/chunk-RUXGBKPS.cjs +4517 -0
- package/dist/{chunk-PLMYCCA4.js → chunk-S5IFXW6E.js} +113 -9
- package/dist/{chunk-27LWW5FU.cjs → chunk-S6YWHCKV.cjs} +5 -5
- package/dist/{chunk-SUCBB66F.js → chunk-SIEXCILW.js} +3 -3
- package/dist/{chunk-CLYEIWA5.cjs → chunk-SLU6UPJI.cjs} +5 -3
- package/dist/{chunk-H6WMMLQK.cjs → chunk-T5J7ZKP3.cjs} +454 -61
- package/dist/chunk-TDCNJHWO.js +341 -0
- package/dist/{chunk-IHOUYQIA.js → chunk-TG7O4WBC.js} +5 -5
- package/dist/chunk-THCK6ECW.js +2085 -0
- package/dist/chunk-TJHVSBP2.js +439 -0
- package/dist/chunk-TK74TR4H.js +5541 -0
- package/dist/{chunk-BU5ZAFMC.js → chunk-U4NBQJBY.js} +11 -13
- package/dist/{chunk-Y5MUAYTO.js → chunk-UD3DSHZM.js} +10 -13
- package/dist/chunk-UDMYRFDZ.js +3038 -0
- package/dist/{chunk-PPULB4GG.cjs → chunk-UOIGFQXC.cjs} +90 -68
- package/dist/{chunk-EPWRXL6S.js → chunk-URG2SJLK.js} +41 -42
- package/dist/{chunk-VJVCD5T5.cjs → chunk-V73NPPTM.cjs} +152 -35
- package/dist/chunk-VECQYRXL.js +474 -0
- package/dist/chunk-VEXPG4WN.js +1989 -0
- package/dist/{chunk-4SMUJFHL.js → chunk-VMLKSV26.js} +9 -6
- package/dist/{chunk-HKCVM6OK.cjs → chunk-VSK7W3O5.cjs} +47 -27
- package/dist/chunk-VVKVQZI6.js +55 -0
- package/dist/{chunk-KDB6BUMB.js → chunk-W55Z7QIX.js} +172 -25
- package/dist/{chunk-BY3B7ZYV.cjs → chunk-W6P2GBHH.cjs} +3 -3
- package/dist/{chunk-PBA6NXCT.cjs → chunk-W6RW64BB.cjs} +11 -8
- package/dist/chunk-WDT3JTGM.cjs +483 -0
- package/dist/{chunk-26TLYBFD.js → chunk-WKX5AMOY.js} +3 -3
- package/dist/chunk-WNNE3PO3.js +34 -0
- package/dist/chunk-WRLUBRKS.cjs +1943 -0
- package/dist/chunk-WRNEH5MO.js +3169 -0
- package/dist/{chunk-54FHG2MX.js → chunk-WRWEX5ZF.js} +7 -4
- package/dist/chunk-X3GJPRVK.cjs +3246 -0
- package/dist/{chunk-4KJ2R7VP.cjs → chunk-XFXGA5IW.cjs} +126 -22
- package/dist/{chunk-L3Z2HIWJ.cjs → chunk-XHIV6326.cjs} +4 -4
- package/dist/chunk-XJAN7CZG.cjs +432 -0
- package/dist/chunk-XL6INWKT.js +121 -0
- package/dist/{chunk-KYM4XRFG.js → chunk-XMWZG36H.js} +4 -4
- package/dist/{chunk-BKIGPPVM.js → chunk-XSFNHP2E.js} +6 -3
- package/dist/{chunk-ODGMVILH.js → chunk-XT6JY5W5.js} +25 -3
- package/dist/chunk-XXZJEFKW.cjs +490 -0
- package/dist/chunk-Y3MWXQSB.cjs +5737 -0
- package/dist/chunk-YF2I3MV3.js +46 -0
- package/dist/{chunk-CMYAWUX3.js → chunk-YIMN575O.js} +445 -53
- package/dist/chunk-YIVFJNYV.js +176 -0
- package/dist/{chunk-V2ILLPHK.cjs → chunk-YKGPCZEE.cjs} +10 -10
- package/dist/chunk-YQELFNJV.js +39 -0
- package/dist/chunk-YSCKYJOB.cjs +2196 -0
- package/dist/chunk-Z5XMPRNC.cjs +5390 -0
- package/dist/{chunk-3FYZOR7S.cjs → chunk-ZDSYWBIE.cjs} +18 -18
- package/dist/{chunk-CQDOF3G7.cjs → chunk-ZKSS47EV.cjs} +24 -19
- package/dist/chunk-ZUL5AVTX.cjs +1993 -0
- package/dist/chunk-ZXBZVXDW.js +5386 -0
- package/dist/{chunk-AW7WAELW.js → chunk-ZZ7RO2UQ.js} +314 -46
- package/dist/cli/holoscript-runner.cjs +203 -206
- package/dist/cli/holoscript-runner.js +147 -150
- package/dist/codebase/index.cjs +1 -1
- package/dist/codebase/index.d.ts +25 -0
- package/dist/codebase/index.js +1 -1
- package/dist/compiler/agent-inference.cjs +10 -8
- package/dist/compiler/agent-inference.js +6 -4
- package/dist/compiler/android-xr.cjs +12 -8
- package/dist/compiler/android-xr.js +10 -6
- package/dist/compiler/android.cjs +12 -9
- package/dist/compiler/android.js +10 -7
- package/dist/compiler/ar.cjs +9 -7
- package/dist/compiler/ar.js +7 -5
- package/dist/compiler/babylon.cjs +12 -9
- package/dist/compiler/babylon.js +11 -8
- package/dist/compiler/business-quest.cjs +43 -0
- package/dist/compiler/business-quest.js +4 -0
- package/dist/compiler/coco.cjs +1 -1
- package/dist/compiler/coco.js +1 -1
- package/dist/compiler/context.cjs +25 -0
- package/dist/compiler/context.d.ts +28 -0
- package/dist/compiler/context.js +8 -0
- package/dist/compiler/domain-block-utils.cjs +161 -151
- package/dist/compiler/domain-block-utils.js +7 -5
- package/dist/compiler/dtdl.cjs +10 -8
- package/dist/compiler/dtdl.js +7 -5
- package/dist/compiler/gltf-pipeline.cjs +9 -9
- package/dist/compiler/gltf-pipeline.js +2 -2
- package/dist/compiler/godot.cjs +9 -7
- package/dist/compiler/godot.js +8 -6
- package/dist/compiler/incremental.cjs +12 -8
- package/dist/compiler/incremental.js +7 -3
- package/dist/compiler/index.cjs +5152 -814
- package/dist/compiler/index.d.ts +404 -21
- package/dist/compiler/index.js +5063 -859
- package/dist/compiler/ios.cjs +11 -9
- package/dist/compiler/ios.js +9 -7
- package/dist/compiler/llm-provider-capabilities.cjs +25 -0
- package/dist/compiler/llm-provider-capabilities.d.ts +43 -0
- package/dist/compiler/llm-provider-capabilities.js +8 -0
- package/dist/compiler/multi-layer.cjs +14 -17
- package/dist/compiler/multi-layer.js +13 -10
- package/dist/compiler/nodetoy.cjs +5 -5
- package/dist/compiler/nodetoy.js +2 -2
- package/dist/compiler/openxr.cjs +10 -7
- package/dist/compiler/openxr.js +9 -6
- package/dist/compiler/playcanvas.cjs +10 -8
- package/dist/compiler/playcanvas.js +9 -7
- package/dist/compiler/r3f.cjs +17 -14
- package/dist/compiler/r3f.d.ts +22 -0
- package/dist/compiler/r3f.js +12 -9
- package/dist/compiler/remotion.cjs +1 -1
- package/dist/compiler/remotion.js +1 -1
- package/dist/compiler/reproducibility.cjs +1 -1
- package/dist/compiler/reproducibility.js +1 -1
- package/dist/compiler/sdf.cjs +10 -8
- package/dist/compiler/sdf.js +8 -6
- package/dist/compiler/semantic-scene.cjs +7 -7
- package/dist/compiler/semantic-scene.js +2 -2
- package/dist/compiler/state.cjs +9 -6
- package/dist/compiler/state.js +7 -4
- package/dist/compiler/trait-composition.cjs +11 -8
- package/dist/compiler/trait-composition.js +7 -4
- package/dist/compiler/unity.cjs +10 -7
- package/dist/compiler/unity.js +9 -6
- package/dist/compiler/unreal.cjs +11 -8
- package/dist/compiler/unreal.js +9 -6
- package/dist/compiler/urdf.cjs +20 -14
- package/dist/compiler/urdf.js +8 -6
- package/dist/compiler/usd-physics.cjs +10 -8
- package/dist/compiler/usd-physics.js +7 -5
- package/dist/compiler/visionos.cjs +10 -7
- package/dist/compiler/visionos.js +9 -6
- package/dist/compiler/vrchat.cjs +10 -8
- package/dist/compiler/vrchat.js +8 -6
- package/dist/compiler/vrr.cjs +10 -8
- package/dist/compiler/vrr.js +8 -6
- package/dist/compiler/wasm.cjs +13 -11
- package/dist/compiler/wasm.js +8 -6
- package/dist/compiler/webgpu.cjs +9 -7
- package/dist/compiler/webgpu.js +8 -6
- package/dist/constants.d.ts +4 -0
- package/dist/coordinators/index.cjs +1266 -0
- package/dist/coordinators/index.d.ts +260 -0
- package/dist/coordinators/index.js +1259 -0
- package/dist/debugger.cjs +9 -7
- package/dist/debugger.js +7 -5
- package/dist/entries/interop.cjs +23 -21
- package/dist/entries/interop.d.ts +9 -0
- package/dist/entries/interop.js +5 -3
- package/dist/entries/scripting.cjs +18 -17
- package/dist/entries/scripting.d.ts +7 -0
- package/dist/entries/scripting.js +8 -7
- package/dist/hololand/index.cjs +146 -0
- package/dist/hololand/index.d.ts +70 -0
- package/dist/hololand/index.js +5 -0
- package/dist/index.cjs +21396 -39967
- package/dist/index.d.ts +1496 -40
- package/dist/index.js +21066 -40142
- package/dist/math/tropical-spmv.cjs +45 -0
- package/dist/math/tropical-spmv.js +4 -0
- package/dist/math/vec3.cjs +14 -14
- package/dist/math/vec3.js +2 -2
- package/dist/ml-dsa-FSKBTE3W.cjs +1265 -0
- package/dist/ml-dsa-Z7JDKW4L.js +1265 -0
- package/dist/paper-0c-spike/index.cjs +150 -0
- package/dist/paper-0c-spike/index.d.ts +29 -0
- package/dist/paper-0c-spike/index.js +141 -0
- package/dist/parser.cjs +45 -10
- package/dist/parser.d.ts +11 -0
- package/dist/parser.js +10 -7
- package/dist/{playwright-7DTEQCBD.cjs → playwright-3AT3AKTV.cjs} +1985 -1985
- package/dist/{playwright-BIZXMLD2.js → playwright-VZPDVUEQ.js} +3 -3
- package/dist/reconstruction/index.cjs +153 -0
- package/dist/reconstruction/index.d.ts +105 -0
- package/dist/reconstruction/index.js +8 -0
- package/dist/runtime.cjs +7 -5
- package/dist/runtime.js +6 -4
- package/dist/self-improvement/index.cjs +563 -0
- package/dist/self-improvement/index.d.ts +0 -48
- package/dist/self-improvement/index.js +545 -0
- package/dist/storage/index.cjs +10 -9
- package/dist/storage/index.d.ts +24 -0
- package/dist/storage/index.js +3 -2
- package/dist/testing.cjs +25 -0
- package/dist/testing.d.ts +70 -0
- package/dist/testing.js +4 -0
- package/dist/tools/index.d.ts +33 -0
- package/dist/traitDocs/traitDocs.cjs +33 -0
- package/dist/traitDocs/traitDocs.d.ts +69 -0
- package/dist/traitDocs/traitDocs.js +7 -0
- package/dist/traits/botanical-lotus.cjs +41 -0
- package/dist/traits/botanical-lotus.d.ts +172 -0
- package/dist/traits/botanical-lotus.js +4 -0
- package/dist/traits/engines/index.cjs +520 -0
- package/dist/traits/engines/index.d.ts +111 -0
- package/dist/traits/engines/index.js +380 -0
- package/dist/traits/index.cjs +14387 -4320
- package/dist/traits/index.d.ts +197 -0
- package/dist/traits/index.js +16455 -6958
- package/dist/traits/simulation-solver-factory.cjs +13 -0
- package/dist/traits/simulation-solver-factory.d.ts +23 -0
- package/dist/traits/simulation-solver-factory.js +4 -0
- package/dist/traits/webcam-gaze.cjs +35 -0
- package/dist/traits/webcam-gaze.d.ts +17 -0
- package/dist/traits/webcam-gaze.js +4 -0
- package/dist/type-checker.cjs +6 -5
- package/dist/type-checker.js +4 -3
- package/dist/world/index.cjs +947 -0
- package/dist/world/index.d.ts +147 -0
- package/dist/world/index.js +939 -0
- package/dist/world-model/index.cjs +1446 -0
- package/dist/world-model/index.d.ts +119 -0
- package/dist/world-model/index.js +1414 -0
- package/dist/wot/index.cjs +7 -7
- package/dist/wot/index.js +2 -2
- package/package.json +150 -23
- package/dist/GLTFPipeline-3KLWWUQO.cjs +0 -34
- package/dist/GLTFPipeline-LYII2ZVQ.js +0 -13
- package/dist/chunk-3KEU5QYY.cjs +0 -175
- package/dist/chunk-6OQBLABR.js +0 -5240
- package/dist/chunk-6WNCRE6F.js +0 -126
- package/dist/chunk-C2QHVHZF.js +0 -4066
- package/dist/chunk-CN4NOESF.cjs +0 -416
- package/dist/chunk-DXVCEFZB.js +0 -2027
- package/dist/chunk-ENV7K6XA.js +0 -282
- package/dist/chunk-H7XMORZI.js +0 -2731
- package/dist/chunk-HAN4V3PF.cjs +0 -2037
- package/dist/chunk-HF4OFY25.cjs +0 -4097
- package/dist/chunk-LER4WXW5.cjs +0 -286
- package/dist/chunk-M6FU6S22.js +0 -2911
- package/dist/chunk-MWEFR6YQ.js +0 -1857
- package/dist/chunk-PJMOXFPR.cjs +0 -1861
- package/dist/chunk-QHVVVN47.cjs +0 -2033
- package/dist/chunk-QWKUKVRE.js +0 -2026
- package/dist/chunk-UITWA6DV.cjs +0 -2829
- package/dist/chunk-UQW6SLM5.js +0 -172
- package/dist/chunk-WUXIRGZP.cjs +0 -2915
- package/dist/chunk-X67XRI2T.js +0 -410
- package/dist/chunk-Y7VK5TH3.cjs +0 -129
- package/dist/chunk-YCMQQQ5U.cjs +0 -5244
- package/dist/post-quantum-JTTAAGO3.cjs +0 -6
- package/dist/post-quantum-RVPVDEPI.js +0 -4
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
3
|
+
var chunkUOIGFQXC_cjs = require('./chunk-UOIGFQXC.cjs');
|
|
4
|
+
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
5
|
+
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
6
|
+
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
7
|
+
var chunkHGVXZDSK_cjs = require('./chunk-HGVXZDSK.cjs');
|
|
8
|
+
var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
|
|
9
|
+
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
10
10
|
|
|
11
11
|
// src/traits/visual/presets/hologram-media.visual.ts
|
|
12
12
|
var HOLOGRAM_MEDIA_VISUALS;
|
|
13
|
-
var init_hologram_media_visual =
|
|
13
|
+
var init_hologram_media_visual = chunkHCCQLAA4_cjs.__esm({
|
|
14
14
|
"src/traits/visual/presets/hologram-media.visual.ts"() {
|
|
15
15
|
HOLOGRAM_MEDIA_VISUALS = {
|
|
16
16
|
depth_estimation: {
|
|
@@ -89,7 +89,7 @@ var init_hologram_media_visual = chunkEGIZHYJP_cjs.__esm({
|
|
|
89
89
|
|
|
90
90
|
// src/traits/visual/presets/gaps-physics.visual.ts
|
|
91
91
|
var GAPS_PHYSICS_VISUALS;
|
|
92
|
-
var init_gaps_physics_visual =
|
|
92
|
+
var init_gaps_physics_visual = chunkHCCQLAA4_cjs.__esm({
|
|
93
93
|
"src/traits/visual/presets/gaps-physics.visual.ts"() {
|
|
94
94
|
GAPS_PHYSICS_VISUALS = /* @__PURE__ */ new Map([
|
|
95
95
|
// --- Pillar A: Unified Physics ---
|
|
@@ -349,7 +349,7 @@ var init_gaps_physics_visual = chunkEGIZHYJP_cjs.__esm({
|
|
|
349
349
|
|
|
350
350
|
// src/traits/visual/presets/phone-sleeve-vr.visual.ts
|
|
351
351
|
var PHONE_SLEEVE_VR_VISUALS;
|
|
352
|
-
var init_phone_sleeve_vr_visual =
|
|
352
|
+
var init_phone_sleeve_vr_visual = chunkHCCQLAA4_cjs.__esm({
|
|
353
353
|
"src/traits/visual/presets/phone-sleeve-vr.visual.ts"() {
|
|
354
354
|
PHONE_SLEEVE_VR_VISUALS = {
|
|
355
355
|
// --- Hardware Form Factor ---
|
|
@@ -513,154 +513,154 @@ var init_phone_sleeve_vr_visual = chunkEGIZHYJP_cjs.__esm({
|
|
|
513
513
|
|
|
514
514
|
// src/traits/visual/index.ts
|
|
515
515
|
function registerAllPresets() {
|
|
516
|
-
const registry =
|
|
516
|
+
const registry = chunkOIQYIIO3_cjs.TraitVisualRegistry.getInstance();
|
|
517
517
|
for (const presetMap of ALL_PRESETS) {
|
|
518
518
|
registry.registerBatch(presetMap);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
var ALL_PRESETS;
|
|
522
|
-
var init_visual =
|
|
522
|
+
var init_visual = chunkHCCQLAA4_cjs.__esm({
|
|
523
523
|
"src/traits/visual/index.ts"() {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
524
|
+
chunkOIQYIIO3_cjs.init_TraitVisualRegistry();
|
|
525
|
+
chunkOIQYIIO3_cjs.init_types();
|
|
526
|
+
chunkOIQYIIO3_cjs.init_TraitVisualRegistry();
|
|
527
|
+
chunkUOIGFQXC_cjs.init_material_properties_visual();
|
|
528
|
+
chunkUOIGFQXC_cjs.init_surface_texture_visual();
|
|
529
|
+
chunkUOIGFQXC_cjs.init_lighting_visual();
|
|
530
|
+
chunkUOIGFQXC_cjs.init_gems_minerals_visual();
|
|
531
|
+
chunkUOIGFQXC_cjs.init_fabric_cloth_visual();
|
|
532
|
+
chunkUOIGFQXC_cjs.init_visual_effects_visual();
|
|
533
|
+
chunkUOIGFQXC_cjs.init_age_condition_visual();
|
|
534
|
+
chunkUOIGFQXC_cjs.init_water_fluid_visual();
|
|
535
|
+
chunkUOIGFQXC_cjs.init_weather_phenomena_visual();
|
|
536
|
+
chunkUOIGFQXC_cjs.init_emotion_mood_visual();
|
|
537
|
+
chunkUOIGFQXC_cjs.init_size_scale_visual();
|
|
538
|
+
chunkUOIGFQXC_cjs.init_environmental_biome_visual();
|
|
539
|
+
chunkUOIGFQXC_cjs.init_magic_fantasy_visual();
|
|
540
|
+
chunkUOIGFQXC_cjs.init_scifi_technology_visual();
|
|
541
|
+
chunkUOIGFQXC_cjs.init_creatures_mythical_visual();
|
|
542
|
+
chunkUOIGFQXC_cjs.init_nature_life_visual();
|
|
543
|
+
chunkUOIGFQXC_cjs.init_furniture_decor_visual();
|
|
544
|
+
chunkUOIGFQXC_cjs.init_construction_building_visual();
|
|
545
|
+
chunkUOIGFQXC_cjs.init_containers_storage_visual();
|
|
546
|
+
chunkUOIGFQXC_cjs.init_shape_form_visual();
|
|
547
|
+
chunkUOIGFQXC_cjs.init_animals_visual();
|
|
548
|
+
chunkUOIGFQXC_cjs.init_maritime_naval_visual();
|
|
549
|
+
chunkUOIGFQXC_cjs.init_time_period_visual();
|
|
550
|
+
chunkUOIGFQXC_cjs.init_accessibility_visual();
|
|
551
|
+
chunkUOIGFQXC_cjs.init_accessibility_extended_visual();
|
|
552
|
+
chunkUOIGFQXC_cjs.init_architecture_realestate_visual();
|
|
553
|
+
chunkUOIGFQXC_cjs.init_audio_visual();
|
|
554
|
+
chunkUOIGFQXC_cjs.init_cooking_food_visual();
|
|
555
|
+
chunkUOIGFQXC_cjs.init_core_vr_interaction_visual();
|
|
556
|
+
chunkUOIGFQXC_cjs.init_data_visualization_visual();
|
|
557
|
+
chunkUOIGFQXC_cjs.init_education_learning_visual();
|
|
558
|
+
chunkUOIGFQXC_cjs.init_environment_input_visual();
|
|
559
|
+
chunkUOIGFQXC_cjs.init_game_mechanics_visual();
|
|
560
|
+
chunkUOIGFQXC_cjs.init_geospatial_web3_visual();
|
|
561
|
+
chunkUOIGFQXC_cjs.init_healthcare_medical_visual();
|
|
562
|
+
chunkUOIGFQXC_cjs.init_humanoid_avatar_visual();
|
|
563
|
+
chunkUOIGFQXC_cjs.init_intelligence_behavior_visual();
|
|
564
|
+
chunkUOIGFQXC_cjs.init_interop_copresence_visual();
|
|
565
|
+
chunkUOIGFQXC_cjs.init_iot_autonomous_agents_visual();
|
|
566
|
+
chunkUOIGFQXC_cjs.init_locomotion_movement_visual();
|
|
567
|
+
chunkUOIGFQXC_cjs.init_measurement_sensing_visual();
|
|
568
|
+
chunkUOIGFQXC_cjs.init_media_analytics_visual();
|
|
569
|
+
chunkUOIGFQXC_cjs.init_multisensory_haptic_visual();
|
|
570
|
+
chunkUOIGFQXC_cjs.init_musical_sound_visual();
|
|
571
|
+
chunkUOIGFQXC_cjs.init_music_performance_visual();
|
|
572
|
+
chunkUOIGFQXC_cjs.init_narrative_storytelling_visual();
|
|
573
|
+
chunkUOIGFQXC_cjs.init_networking_ai_visual();
|
|
574
|
+
chunkUOIGFQXC_cjs.init_npc_roles_visual();
|
|
575
|
+
chunkUOIGFQXC_cjs.init_object_interaction_visual();
|
|
576
|
+
chunkUOIGFQXC_cjs.init_parser_core_ui_visual();
|
|
577
|
+
chunkUOIGFQXC_cjs.init_physical_affordances_visual();
|
|
578
|
+
chunkUOIGFQXC_cjs.init_physics_expansion_visual();
|
|
579
|
+
chunkUOIGFQXC_cjs.init_procedural_generation_visual();
|
|
580
|
+
chunkUOIGFQXC_cjs.init_resource_gathering_visual();
|
|
581
|
+
chunkUOIGFQXC_cjs.init_safety_boundaries_visual();
|
|
582
|
+
chunkUOIGFQXC_cjs.init_signs_communication_visual();
|
|
583
|
+
chunkUOIGFQXC_cjs.init_simple_modifiers_visual();
|
|
584
|
+
chunkUOIGFQXC_cjs.init_social_commerce_visual();
|
|
585
|
+
chunkUOIGFQXC_cjs.init_social_effects_visual();
|
|
586
|
+
chunkUOIGFQXC_cjs.init_sports_fitness_visual();
|
|
587
|
+
chunkUOIGFQXC_cjs.init_state_persistence_visual();
|
|
588
|
+
chunkUOIGFQXC_cjs.init_transportation_vehicles_visual();
|
|
589
|
+
chunkUOIGFQXC_cjs.init_volumetric_webgpu_visual();
|
|
590
|
+
chunkUOIGFQXC_cjs.init_weather_particles_visual();
|
|
591
|
+
chunkUOIGFQXC_cjs.init_xr_platform_visual();
|
|
592
592
|
init_hologram_media_visual();
|
|
593
593
|
init_gaps_physics_visual();
|
|
594
594
|
init_phone_sleeve_vr_visual();
|
|
595
595
|
ALL_PRESETS = [
|
|
596
596
|
// Original 12
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
597
|
+
chunkUOIGFQXC_cjs.MATERIAL_PROPERTIES_VISUALS,
|
|
598
|
+
chunkUOIGFQXC_cjs.SURFACE_TEXTURE_VISUALS,
|
|
599
|
+
chunkUOIGFQXC_cjs.LIGHTING_VISUALS,
|
|
600
|
+
chunkUOIGFQXC_cjs.GEMS_MINERALS_VISUALS,
|
|
601
|
+
chunkUOIGFQXC_cjs.FABRIC_CLOTH_VISUALS,
|
|
602
|
+
chunkUOIGFQXC_cjs.VISUAL_EFFECTS_VISUALS,
|
|
603
|
+
chunkUOIGFQXC_cjs.AGE_CONDITION_VISUALS,
|
|
604
|
+
chunkUOIGFQXC_cjs.WATER_FLUID_VISUALS,
|
|
605
|
+
chunkUOIGFQXC_cjs.WEATHER_PHENOMENA_VISUALS,
|
|
606
|
+
chunkUOIGFQXC_cjs.EMOTION_MOOD_VISUALS,
|
|
607
|
+
chunkUOIGFQXC_cjs.SIZE_SCALE_VISUALS,
|
|
608
|
+
chunkUOIGFQXC_cjs.ENVIRONMENTAL_BIOME_VISUALS,
|
|
609
609
|
// Expansion wave 1
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
610
|
+
chunkUOIGFQXC_cjs.MAGIC_FANTASY_VISUALS,
|
|
611
|
+
chunkUOIGFQXC_cjs.SCIFI_TECHNOLOGY_VISUALS,
|
|
612
|
+
chunkUOIGFQXC_cjs.CREATURES_MYTHICAL_VISUALS,
|
|
613
|
+
chunkUOIGFQXC_cjs.NATURE_LIFE_VISUALS,
|
|
614
|
+
chunkUOIGFQXC_cjs.FURNITURE_DECOR_VISUALS,
|
|
615
|
+
chunkUOIGFQXC_cjs.CONSTRUCTION_BUILDING_VISUALS,
|
|
616
|
+
chunkUOIGFQXC_cjs.CONTAINERS_STORAGE_VISUALS,
|
|
617
|
+
chunkUOIGFQXC_cjs.SHAPE_FORM_VISUALS,
|
|
618
|
+
chunkUOIGFQXC_cjs.ANIMALS_VISUALS,
|
|
619
|
+
chunkUOIGFQXC_cjs.MARITIME_NAVAL_VISUALS,
|
|
620
|
+
chunkUOIGFQXC_cjs.TIME_PERIOD_VISUALS,
|
|
621
621
|
// Expansion wave 2 — full coverage
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
622
|
+
chunkUOIGFQXC_cjs.ACCESSIBILITY_VISUALS,
|
|
623
|
+
chunkUOIGFQXC_cjs.ACCESSIBILITY_EXTENDED_VISUALS,
|
|
624
|
+
chunkUOIGFQXC_cjs.ARCHITECTURE_REALESTATE_VISUALS,
|
|
625
|
+
chunkUOIGFQXC_cjs.AUDIO_VISUALS,
|
|
626
|
+
chunkUOIGFQXC_cjs.COOKING_FOOD_VISUALS,
|
|
627
|
+
chunkUOIGFQXC_cjs.CORE_VR_INTERACTION_VISUALS,
|
|
628
|
+
chunkUOIGFQXC_cjs.DATA_VISUALIZATION_VISUALS,
|
|
629
|
+
chunkUOIGFQXC_cjs.EDUCATION_LEARNING_VISUALS,
|
|
630
|
+
chunkUOIGFQXC_cjs.ENVIRONMENT_INPUT_VISUALS,
|
|
631
|
+
chunkUOIGFQXC_cjs.GAME_MECHANICS_VISUALS,
|
|
632
|
+
chunkUOIGFQXC_cjs.GEOSPATIAL_WEB3_VISUALS,
|
|
633
|
+
chunkUOIGFQXC_cjs.HEALTHCARE_MEDICAL_VISUALS,
|
|
634
|
+
chunkUOIGFQXC_cjs.HUMANOID_AVATAR_VISUALS,
|
|
635
|
+
chunkUOIGFQXC_cjs.INTELLIGENCE_BEHAVIOR_VISUALS,
|
|
636
|
+
chunkUOIGFQXC_cjs.INTEROP_COPRESENCE_VISUALS,
|
|
637
|
+
chunkUOIGFQXC_cjs.IOT_AUTONOMOUS_AGENTS_VISUALS,
|
|
638
|
+
chunkUOIGFQXC_cjs.LOCOMOTION_MOVEMENT_VISUALS,
|
|
639
|
+
chunkUOIGFQXC_cjs.MEASUREMENT_SENSING_VISUALS,
|
|
640
|
+
chunkUOIGFQXC_cjs.MEDIA_ANALYTICS_VISUALS,
|
|
641
|
+
chunkUOIGFQXC_cjs.MULTISENSORY_HAPTIC_VISUALS,
|
|
642
|
+
chunkUOIGFQXC_cjs.MUSICAL_SOUND_VISUALS,
|
|
643
|
+
chunkUOIGFQXC_cjs.MUSIC_PERFORMANCE_VISUALS,
|
|
644
|
+
chunkUOIGFQXC_cjs.NARRATIVE_STORYTELLING_VISUALS,
|
|
645
|
+
chunkUOIGFQXC_cjs.NETWORKING_AI_VISUALS,
|
|
646
|
+
chunkUOIGFQXC_cjs.NPC_ROLES_VISUALS,
|
|
647
|
+
chunkUOIGFQXC_cjs.OBJECT_INTERACTION_VISUALS,
|
|
648
|
+
chunkUOIGFQXC_cjs.PARSER_CORE_UI_VISUALS,
|
|
649
|
+
chunkUOIGFQXC_cjs.PHYSICAL_AFFORDANCES_VISUALS,
|
|
650
|
+
chunkUOIGFQXC_cjs.PHYSICS_EXPANSION_VISUALS,
|
|
651
|
+
chunkUOIGFQXC_cjs.PROCEDURAL_GENERATION_VISUALS,
|
|
652
|
+
chunkUOIGFQXC_cjs.RESOURCE_GATHERING_VISUALS,
|
|
653
|
+
chunkUOIGFQXC_cjs.SAFETY_BOUNDARIES_VISUALS,
|
|
654
|
+
chunkUOIGFQXC_cjs.SIGNS_COMMUNICATION_VISUALS,
|
|
655
|
+
chunkUOIGFQXC_cjs.SIMPLE_MODIFIERS_VISUALS,
|
|
656
|
+
chunkUOIGFQXC_cjs.SOCIAL_COMMERCE_VISUALS,
|
|
657
|
+
chunkUOIGFQXC_cjs.SOCIAL_EFFECTS_VISUALS,
|
|
658
|
+
chunkUOIGFQXC_cjs.SPORTS_FITNESS_VISUALS,
|
|
659
|
+
chunkUOIGFQXC_cjs.STATE_PERSISTENCE_VISUALS,
|
|
660
|
+
chunkUOIGFQXC_cjs.TRANSPORTATION_VEHICLES_VISUALS,
|
|
661
|
+
chunkUOIGFQXC_cjs.VOLUMETRIC_WEBGPU_VISUALS,
|
|
662
|
+
chunkUOIGFQXC_cjs.WEATHER_PARTICLES_VISUALS,
|
|
663
|
+
chunkUOIGFQXC_cjs.XR_PLATFORM_VISUALS,
|
|
664
664
|
// Hologram Media Pipeline
|
|
665
665
|
HOLOGRAM_MEDIA_VISUALS,
|
|
666
666
|
// GAPS Feature Roadmap — Phase 1
|
|
@@ -674,7 +674,7 @@ var init_visual = chunkEGIZHYJP_cjs.__esm({
|
|
|
674
674
|
|
|
675
675
|
// src/compiler/ObjectPool.ts
|
|
676
676
|
exports.ASTNodePool = void 0;
|
|
677
|
-
var init_ObjectPool =
|
|
677
|
+
var init_ObjectPool = chunkHCCQLAA4_cjs.__esm({
|
|
678
678
|
"src/compiler/ObjectPool.ts"() {
|
|
679
679
|
exports.ASTNodePool = class {
|
|
680
680
|
/**
|
|
@@ -727,22 +727,38 @@ var init_ObjectPool = chunkEGIZHYJP_cjs.__esm({
|
|
|
727
727
|
|
|
728
728
|
// src/compiler/R3FCompiler.ts
|
|
729
729
|
var R3FCompiler_exports = {};
|
|
730
|
-
|
|
730
|
+
chunkHCCQLAA4_cjs.__export(R3FCompiler_exports, {
|
|
731
731
|
ENVIRONMENT_PRESETS: () => exports.ENVIRONMENT_PRESETS,
|
|
732
732
|
MATERIAL_PRESETS: () => exports.MATERIAL_PRESETS,
|
|
733
733
|
QUALITY_TIER_SCALES: () => exports.QUALITY_TIER_SCALES,
|
|
734
734
|
R3FCompiler: () => exports.R3FCompiler,
|
|
735
735
|
UI_COMPONENT_PRESETS: () => exports.UI_COMPONENT_PRESETS
|
|
736
736
|
});
|
|
737
|
+
function isVfxParticleTraitName(name) {
|
|
738
|
+
return name.startsWith("vfx_particle_");
|
|
739
|
+
}
|
|
740
|
+
function vfxParticleEffect(name) {
|
|
741
|
+
return name.replace("vfx_particle_", "");
|
|
742
|
+
}
|
|
743
|
+
function gemResonanceConfig(config) {
|
|
744
|
+
return {
|
|
745
|
+
max_distance: 0.5,
|
|
746
|
+
base_frequencies: "auto",
|
|
747
|
+
blend_mode: "harmonic",
|
|
748
|
+
output: "spatial_audio",
|
|
749
|
+
...config || {}
|
|
750
|
+
};
|
|
751
|
+
}
|
|
737
752
|
var r3fNodePool; exports.MATERIAL_PRESETS = void 0; exports.ENVIRONMENT_PRESETS = void 0; var MESH_TYPES; exports.UI_COMPONENT_PRESETS = void 0; exports.QUALITY_TIER_SCALES = void 0; exports.R3FCompiler = void 0;
|
|
738
|
-
var init_R3FCompiler =
|
|
753
|
+
var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
739
754
|
"src/compiler/R3FCompiler.ts"() {
|
|
740
|
-
|
|
741
|
-
|
|
755
|
+
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
756
|
+
chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
|
|
742
757
|
init_visual();
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
758
|
+
chunkHGVXZDSK_cjs.init_DomainBlockCompilerMixin();
|
|
759
|
+
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
760
|
+
chunkRMHC2VG7_cjs.init_AgentRBAC();
|
|
761
|
+
chunkRMHC2VG7_cjs.init_CompilerBase();
|
|
746
762
|
init_ObjectPool();
|
|
747
763
|
r3fNodePool = new exports.ASTNodePool(
|
|
748
764
|
() => ({ type: "", props: {} }),
|
|
@@ -2545,10 +2561,14 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2545
2561
|
constructor(options = {}) {
|
|
2546
2562
|
// ─── RBAC Enforcement ─────────────────────────────────────────────────
|
|
2547
2563
|
this.compilerName = "R3FCompiler";
|
|
2548
|
-
this.rbac =
|
|
2564
|
+
this.rbac = chunkRMHC2VG7_cjs.getRBAC();
|
|
2549
2565
|
this.qualityTier = options.qualityTier ?? "high";
|
|
2550
2566
|
this.tierScales = exports.QUALITY_TIER_SCALES[this.qualityTier];
|
|
2551
2567
|
this._defaultLighting = options.defaultLighting ?? true;
|
|
2568
|
+
this._holomapPointCloud = options.holomapPointCloud;
|
|
2569
|
+
if (options.platformTarget) {
|
|
2570
|
+
this._platformTarget = typeof options.platformTarget === "string" ? chunkAIA52I7T_cjs.createPlatformTarget(options.platformTarget) : options.platformTarget;
|
|
2571
|
+
}
|
|
2552
2572
|
}
|
|
2553
2573
|
/**
|
|
2554
2574
|
* Validate agent permissions before compilation.
|
|
@@ -2572,7 +2592,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2572
2592
|
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2573
2593
|
});
|
|
2574
2594
|
if (!astDecision.allowed) {
|
|
2575
|
-
throw new
|
|
2595
|
+
throw new chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError(astDecision, "AST access", this.compilerName);
|
|
2576
2596
|
}
|
|
2577
2597
|
const codeDecision = this.rbac.checkAccess({
|
|
2578
2598
|
token: agentToken,
|
|
@@ -2581,7 +2601,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2581
2601
|
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2582
2602
|
});
|
|
2583
2603
|
if (!codeDecision.allowed) {
|
|
2584
|
-
throw new
|
|
2604
|
+
throw new chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError(codeDecision, "code generation", this.compilerName);
|
|
2585
2605
|
}
|
|
2586
2606
|
if (outputPath) {
|
|
2587
2607
|
const outputDecision = this.rbac.checkAccess({
|
|
@@ -2592,7 +2612,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2592
2612
|
expectedWorkflowStep: "serialize" /* SERIALIZE */
|
|
2593
2613
|
});
|
|
2594
2614
|
if (!outputDecision.allowed) {
|
|
2595
|
-
throw new
|
|
2615
|
+
throw new chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError(
|
|
2596
2616
|
outputDecision,
|
|
2597
2617
|
`output write to '${outputPath}'`,
|
|
2598
2618
|
this.compilerName
|
|
@@ -2742,15 +2762,15 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2742
2762
|
this.injectDefaultLighting(root);
|
|
2743
2763
|
const domainBlocks = ast.domainBlocks ?? [];
|
|
2744
2764
|
if (domainBlocks.length > 0) {
|
|
2745
|
-
const compiled =
|
|
2765
|
+
const compiled = chunkHGVXZDSK_cjs.compileDomainBlocks(
|
|
2746
2766
|
domainBlocks,
|
|
2747
2767
|
{
|
|
2748
2768
|
material: (block) => {
|
|
2749
|
-
const mat =
|
|
2769
|
+
const mat = chunkHGVXZDSK_cjs.compileMaterialBlock(block);
|
|
2750
2770
|
return {
|
|
2751
2771
|
type: "DomainBlockOutput",
|
|
2752
2772
|
props: {
|
|
2753
|
-
__raw:
|
|
2773
|
+
__raw: chunkHGVXZDSK_cjs.materialToR3F(mat, this.tierScales),
|
|
2754
2774
|
__domain: "material",
|
|
2755
2775
|
__name: mat.name
|
|
2756
2776
|
},
|
|
@@ -2758,11 +2778,11 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2758
2778
|
};
|
|
2759
2779
|
},
|
|
2760
2780
|
physics: (block) => {
|
|
2761
|
-
const phys =
|
|
2781
|
+
const phys = chunkHGVXZDSK_cjs.compilePhysicsBlock(block);
|
|
2762
2782
|
return {
|
|
2763
2783
|
type: "DomainBlockOutput",
|
|
2764
2784
|
props: {
|
|
2765
|
-
__raw:
|
|
2785
|
+
__raw: chunkHGVXZDSK_cjs.physicsToR3F(phys),
|
|
2766
2786
|
__domain: "physics",
|
|
2767
2787
|
__name: phys.name || phys.keyword
|
|
2768
2788
|
},
|
|
@@ -2770,11 +2790,11 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2770
2790
|
};
|
|
2771
2791
|
},
|
|
2772
2792
|
vfx: (block) => {
|
|
2773
|
-
const ps =
|
|
2793
|
+
const ps = chunkHGVXZDSK_cjs.compileParticleBlock(block);
|
|
2774
2794
|
return {
|
|
2775
2795
|
type: "DomainBlockOutput",
|
|
2776
2796
|
props: {
|
|
2777
|
-
__raw:
|
|
2797
|
+
__raw: chunkHGVXZDSK_cjs.particlesToR3F(ps, this.tierScales),
|
|
2778
2798
|
__domain: "vfx",
|
|
2779
2799
|
__name: ps.name
|
|
2780
2800
|
},
|
|
@@ -2782,11 +2802,11 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2782
2802
|
};
|
|
2783
2803
|
},
|
|
2784
2804
|
postfx: (block) => {
|
|
2785
|
-
const pp =
|
|
2805
|
+
const pp = chunkHGVXZDSK_cjs.compilePostProcessingBlock(block);
|
|
2786
2806
|
return {
|
|
2787
2807
|
type: "DomainBlockOutput",
|
|
2788
2808
|
props: {
|
|
2789
|
-
__raw:
|
|
2809
|
+
__raw: chunkHGVXZDSK_cjs.postProcessingToR3F(pp),
|
|
2790
2810
|
__domain: "postfx",
|
|
2791
2811
|
__name: pp.name || "PostProcessing"
|
|
2792
2812
|
},
|
|
@@ -2794,24 +2814,36 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2794
2814
|
};
|
|
2795
2815
|
},
|
|
2796
2816
|
audio: (block) => {
|
|
2797
|
-
const audio =
|
|
2817
|
+
const audio = chunkHGVXZDSK_cjs.compileAudioSourceBlock(block);
|
|
2798
2818
|
return {
|
|
2799
2819
|
type: "DomainBlockOutput",
|
|
2800
|
-
props: { __raw:
|
|
2820
|
+
props: { __raw: chunkHGVXZDSK_cjs.audioSourceToR3F(audio), __domain: "audio", __name: audio.name },
|
|
2801
2821
|
children: []
|
|
2802
2822
|
};
|
|
2803
2823
|
},
|
|
2804
2824
|
weather: (block) => {
|
|
2805
|
-
const weather =
|
|
2825
|
+
const weather = chunkHGVXZDSK_cjs.compileWeatherBlock(block);
|
|
2806
2826
|
return {
|
|
2807
2827
|
type: "DomainBlockOutput",
|
|
2808
2828
|
props: {
|
|
2809
|
-
__raw:
|
|
2829
|
+
__raw: chunkHGVXZDSK_cjs.weatherToR3F(weather),
|
|
2810
2830
|
__domain: "weather",
|
|
2811
2831
|
__name: weather.name || "Weather"
|
|
2812
2832
|
},
|
|
2813
2833
|
children: []
|
|
2814
2834
|
};
|
|
2835
|
+
},
|
|
2836
|
+
simulation: (block) => {
|
|
2837
|
+
const sim = chunkHGVXZDSK_cjs.compileSimulationBlock(block);
|
|
2838
|
+
return {
|
|
2839
|
+
type: "DomainBlockOutput",
|
|
2840
|
+
props: {
|
|
2841
|
+
__raw: chunkHGVXZDSK_cjs.simulationToR3F(sim),
|
|
2842
|
+
__domain: "simulation",
|
|
2843
|
+
__name: sim.name || "Simulation"
|
|
2844
|
+
},
|
|
2845
|
+
children: []
|
|
2846
|
+
};
|
|
2815
2847
|
}
|
|
2816
2848
|
}
|
|
2817
2849
|
);
|
|
@@ -2822,6 +2854,64 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2822
2854
|
}
|
|
2823
2855
|
return root;
|
|
2824
2856
|
}
|
|
2857
|
+
/**
|
|
2858
|
+
* Compiles a declarative 'world' node into R3F scene nodes.
|
|
2859
|
+
* Nested `world.children` (objects) are compiled via the same path as top-level objects.
|
|
2860
|
+
*/
|
|
2861
|
+
compileWorldNode(world, templateMap) {
|
|
2862
|
+
const nodes = [];
|
|
2863
|
+
const props = {};
|
|
2864
|
+
if (world.properties) {
|
|
2865
|
+
for (const prop of world.properties) {
|
|
2866
|
+
props[prop.key] = prop.value;
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
if (props.ambient_light !== void 0) {
|
|
2870
|
+
nodes.push(
|
|
2871
|
+
this.createNode("ambientLight", {
|
|
2872
|
+
intensity: Number(props.ambient_light)
|
|
2873
|
+
})
|
|
2874
|
+
);
|
|
2875
|
+
}
|
|
2876
|
+
if (props.skybox_color !== void 0) {
|
|
2877
|
+
nodes.push(
|
|
2878
|
+
this.createNode("Environment", {
|
|
2879
|
+
background: true,
|
|
2880
|
+
preset: "sunset"
|
|
2881
|
+
// Default preset if just color is given
|
|
2882
|
+
})
|
|
2883
|
+
);
|
|
2884
|
+
nodes.push(
|
|
2885
|
+
this.createNode("color", {
|
|
2886
|
+
attach: "background",
|
|
2887
|
+
args: [props.skybox_color]
|
|
2888
|
+
})
|
|
2889
|
+
);
|
|
2890
|
+
}
|
|
2891
|
+
if (props.gravity !== void 0) {
|
|
2892
|
+
nodes.push(
|
|
2893
|
+
this.createNode("Physics", {
|
|
2894
|
+
gravity: [0, -Number(props.gravity), 0]
|
|
2895
|
+
})
|
|
2896
|
+
);
|
|
2897
|
+
}
|
|
2898
|
+
const childNodes = [];
|
|
2899
|
+
if (world.children && world.children.length > 0) {
|
|
2900
|
+
for (const child of world.children) {
|
|
2901
|
+
childNodes.push(this.compileObjectDecl(child, templateMap));
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
if (childNodes.length === 0) {
|
|
2905
|
+
return nodes;
|
|
2906
|
+
}
|
|
2907
|
+
const group = this.createNode(
|
|
2908
|
+
"group",
|
|
2909
|
+
{},
|
|
2910
|
+
world.name ? chunkRMHC2VG7_cjs.escapeStringValue(world.name, "JSX") : void 0
|
|
2911
|
+
);
|
|
2912
|
+
group.children = [...nodes, ...childNodes];
|
|
2913
|
+
return [group];
|
|
2914
|
+
}
|
|
2825
2915
|
createNode(type, props = {}, id) {
|
|
2826
2916
|
const node = r3fNodePool.acquire();
|
|
2827
2917
|
node.type = type;
|
|
@@ -2844,7 +2934,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2844
2934
|
const r3fNode = r3fNodePool.acquire();
|
|
2845
2935
|
r3fNode.type = type;
|
|
2846
2936
|
const rawId = node.id || node.name;
|
|
2847
|
-
r3fNode.id = rawId ?
|
|
2937
|
+
r3fNode.id = rawId ? chunkRMHC2VG7_cjs.escapeStringValue(rawId, "JSX") : void 0;
|
|
2848
2938
|
r3fNode.props = this.compileProperties(node, rawProps);
|
|
2849
2939
|
r3fNode.children = [];
|
|
2850
2940
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -2873,9 +2963,13 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2873
2963
|
// ─── HoloComposition Compilation (.holo files) ────────────────────────
|
|
2874
2964
|
compileComposition(composition, agentToken, outputPath) {
|
|
2875
2965
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
2966
|
+
if (this._platformTarget) {
|
|
2967
|
+
const platformMixin = new chunkAIA52I7T_cjs.PlatformConditionalCompilerMixin();
|
|
2968
|
+
composition = platformMixin.filterForPlatform(composition, this._platformTarget);
|
|
2969
|
+
}
|
|
2876
2970
|
const root = r3fNodePool.acquire();
|
|
2877
2971
|
root.type = "group";
|
|
2878
|
-
root.id = composition.name ?
|
|
2972
|
+
root.id = composition.name ? chunkRMHC2VG7_cjs.escapeStringValue(composition.name, "JSX") : void 0;
|
|
2879
2973
|
root.props = {};
|
|
2880
2974
|
root.children = [];
|
|
2881
2975
|
root.traits = /* @__PURE__ */ new Map();
|
|
@@ -2931,6 +3025,16 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2931
3025
|
root.children.push(this.compileZoneBlock(zone));
|
|
2932
3026
|
}
|
|
2933
3027
|
}
|
|
3028
|
+
if (Array.isArray(composition.worlds)) {
|
|
3029
|
+
for (const world of composition.worlds) {
|
|
3030
|
+
root.children.push(
|
|
3031
|
+
...this.compileWorldNode(
|
|
3032
|
+
world,
|
|
3033
|
+
templateMap
|
|
3034
|
+
)
|
|
3035
|
+
);
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
2934
3038
|
if (composition.ui) {
|
|
2935
3039
|
root.children.push(this.compileUIBlock(composition.ui));
|
|
2936
3040
|
}
|
|
@@ -2963,9 +3067,24 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2963
3067
|
children: this.extractPostProcessingNodes(root)
|
|
2964
3068
|
});
|
|
2965
3069
|
}
|
|
3070
|
+
this.injectHolomapPointCloud(root);
|
|
2966
3071
|
this.injectDefaultLighting(root);
|
|
2967
3072
|
return root;
|
|
2968
3073
|
}
|
|
3074
|
+
/** R3F host apps can map this node to BufferGeometry + pointsMaterial from base64 buffers. */
|
|
3075
|
+
injectHolomapPointCloud(root) {
|
|
3076
|
+
const h = this._holomapPointCloud;
|
|
3077
|
+
if (!h || h.pointCount < 1 || !h.positionsB64 || !h.colorsB64) return;
|
|
3078
|
+
if (!root.children) root.children = [];
|
|
3079
|
+
root.children.push({
|
|
3080
|
+
type: "holomapPointCloud",
|
|
3081
|
+
props: {
|
|
3082
|
+
positionsB64: h.positionsB64,
|
|
3083
|
+
colorsB64: h.colorsB64,
|
|
3084
|
+
pointCount: h.pointCount
|
|
3085
|
+
}
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
2969
3088
|
compileLightBlock(light) {
|
|
2970
3089
|
const lightMapping = {
|
|
2971
3090
|
directional: "directionalLight",
|
|
@@ -2997,7 +3116,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
2997
3116
|
}
|
|
2998
3117
|
const r3fNode = r3fNodePool.acquire();
|
|
2999
3118
|
r3fNode.type = type;
|
|
3000
|
-
r3fNode.id = light.name ?
|
|
3119
|
+
r3fNode.id = light.name ? chunkRMHC2VG7_cjs.escapeStringValue(light.name, "JSX") : void 0;
|
|
3001
3120
|
r3fNode.props = props;
|
|
3002
3121
|
r3fNode.children = [];
|
|
3003
3122
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -3190,9 +3309,12 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3190
3309
|
for (const p of obj.properties) {
|
|
3191
3310
|
const prop = p;
|
|
3192
3311
|
if (prop && prop.type === "spread") {
|
|
3193
|
-
const resolved = this.resolveSpreadArgument(
|
|
3194
|
-
|
|
3195
|
-
|
|
3312
|
+
const resolved = this.resolveSpreadArgument(
|
|
3313
|
+
prop.target || prop.argument,
|
|
3314
|
+
{
|
|
3315
|
+
templates: templateMap
|
|
3316
|
+
}
|
|
3317
|
+
);
|
|
3196
3318
|
if (resolved && typeof resolved === "object" && !Array.isArray(resolved)) {
|
|
3197
3319
|
for (const [key, value] of Object.entries(resolved)) {
|
|
3198
3320
|
expandedProperties.push({ key, value });
|
|
@@ -3267,9 +3389,15 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3267
3389
|
mProps.transparent = value < 1;
|
|
3268
3390
|
props.materialProps = mProps;
|
|
3269
3391
|
} else if (key === "emissive") {
|
|
3270
|
-
props.materialProps = {
|
|
3392
|
+
props.materialProps = {
|
|
3393
|
+
...props.materialProps || {},
|
|
3394
|
+
emissive: value
|
|
3395
|
+
};
|
|
3271
3396
|
} else if (key === "emissiveIntensity" || key === "emissive_intensity") {
|
|
3272
|
-
props.materialProps = {
|
|
3397
|
+
props.materialProps = {
|
|
3398
|
+
...props.materialProps || {},
|
|
3399
|
+
emissiveIntensity: value
|
|
3400
|
+
};
|
|
3273
3401
|
} else if (key === "size") {
|
|
3274
3402
|
if (Array.isArray(value)) {
|
|
3275
3403
|
props.args = value;
|
|
@@ -3297,11 +3425,13 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3297
3425
|
}
|
|
3298
3426
|
}
|
|
3299
3427
|
if (obj.traits && Array.isArray(obj.traits)) {
|
|
3300
|
-
const semiring = new
|
|
3428
|
+
const semiring = new chunk5S7RKFGR_cjs.ProvenanceSemiring();
|
|
3301
3429
|
const physicsApplications = obj.traits.filter((t) => t.name === "physics" || t.name === "collidable").map((t) => {
|
|
3302
3430
|
let baseConfig = t.config || {};
|
|
3303
|
-
if (t.name === "collidable" && !baseConfig.type)
|
|
3304
|
-
|
|
3431
|
+
if (t.name === "collidable" && !baseConfig.type)
|
|
3432
|
+
baseConfig = { ...baseConfig, type: "fixed" };
|
|
3433
|
+
if (t.name === "physics" && !baseConfig.type)
|
|
3434
|
+
baseConfig = { ...baseConfig, type: "dynamic" };
|
|
3305
3435
|
return {
|
|
3306
3436
|
name: t.name,
|
|
3307
3437
|
config: baseConfig,
|
|
@@ -3332,6 +3462,9 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3332
3462
|
props.animated = trait.config || true;
|
|
3333
3463
|
} else if (name === "positional" || name === "spatial_audio") {
|
|
3334
3464
|
props.spatial = true;
|
|
3465
|
+
} else if (name === "gem_resonance") {
|
|
3466
|
+
props.gemResonance = gemResonanceConfig(trait.config);
|
|
3467
|
+
props.spatial = true;
|
|
3335
3468
|
} else if (name === "shadow") {
|
|
3336
3469
|
props.castShadow = true;
|
|
3337
3470
|
if (trait.config?.mapSize)
|
|
@@ -3346,7 +3479,10 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3346
3479
|
...props.materialProps
|
|
3347
3480
|
};
|
|
3348
3481
|
} else {
|
|
3349
|
-
props.materialProps = {
|
|
3482
|
+
props.materialProps = {
|
|
3483
|
+
...props.materialProps,
|
|
3484
|
+
...trait.config
|
|
3485
|
+
};
|
|
3350
3486
|
}
|
|
3351
3487
|
} else if (name === "networked") {
|
|
3352
3488
|
props.networked = trait.config || true;
|
|
@@ -3393,6 +3529,8 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3393
3529
|
props.pointCloud = trait.config || true;
|
|
3394
3530
|
} else if (name === "photogrammetry") {
|
|
3395
3531
|
props.photogrammetry = trait.config || true;
|
|
3532
|
+
} else if (name === "web_surface") {
|
|
3533
|
+
props.webSurface = trait.config || true;
|
|
3396
3534
|
} else if (name === "cloth") {
|
|
3397
3535
|
props.cloth = trait.config || { stiffness: 0.8 };
|
|
3398
3536
|
if (!props.rigidBody) props.rigidBody = { type: "dynamic" };
|
|
@@ -3473,6 +3611,14 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3473
3611
|
props.compute = trait.config || true;
|
|
3474
3612
|
} else if (name === "gpu_particle") {
|
|
3475
3613
|
props.gpuParticle = trait.config || { count: 1e4 };
|
|
3614
|
+
} else if (isVfxParticleTraitName(name)) {
|
|
3615
|
+
const particleConfig = {
|
|
3616
|
+
effect: vfxParticleEffect(name),
|
|
3617
|
+
...trait.config || {}
|
|
3618
|
+
};
|
|
3619
|
+
const gpuParticles = props.gpuParticles ?? [];
|
|
3620
|
+
props.gpuParticles = [...gpuParticles, particleConfig];
|
|
3621
|
+
if (!props.gpuParticle) props.gpuParticle = particleConfig;
|
|
3476
3622
|
} else if (name === "gpu_physics") {
|
|
3477
3623
|
props.gpuPhysics = trait.config || true;
|
|
3478
3624
|
} else if (name === "digital_twin") {
|
|
@@ -3557,10 +3703,13 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3557
3703
|
const traitNames = obj.traits.map(
|
|
3558
3704
|
(t) => t.name
|
|
3559
3705
|
);
|
|
3560
|
-
const compositor = new
|
|
3706
|
+
const compositor = new chunkOIQYIIO3_cjs.TraitCompositor();
|
|
3561
3707
|
const composedMaterial = compositor.compose(traitNames);
|
|
3562
3708
|
if (Object.keys(composedMaterial).length > 0) {
|
|
3563
|
-
props.materialProps = {
|
|
3709
|
+
props.materialProps = {
|
|
3710
|
+
...props.materialProps,
|
|
3711
|
+
...composedMaterial
|
|
3712
|
+
};
|
|
3564
3713
|
}
|
|
3565
3714
|
}
|
|
3566
3715
|
let type;
|
|
@@ -3601,6 +3750,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3601
3750
|
r3fNode.assetMaturity = m;
|
|
3602
3751
|
}
|
|
3603
3752
|
}
|
|
3753
|
+
delete props.maturityOverride;
|
|
3604
3754
|
if (obj.children && Array.isArray(obj.children)) {
|
|
3605
3755
|
for (const child of obj.children) {
|
|
3606
3756
|
r3fNode.children.push(this.compileObjectDecl(child));
|
|
@@ -3707,7 +3857,11 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3707
3857
|
props[key] = value;
|
|
3708
3858
|
}
|
|
3709
3859
|
}
|
|
3710
|
-
const r3fNode = this.createNode(
|
|
3860
|
+
const r3fNode = this.createNode(
|
|
3861
|
+
"Component",
|
|
3862
|
+
props,
|
|
3863
|
+
node.id || node.name
|
|
3864
|
+
);
|
|
3711
3865
|
if (node.directives) {
|
|
3712
3866
|
r3fNode.directives = node.directives;
|
|
3713
3867
|
}
|
|
@@ -3813,7 +3967,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3813
3967
|
entries.push(this.createNode("TimelineEntry", entryProps));
|
|
3814
3968
|
}
|
|
3815
3969
|
}
|
|
3816
|
-
const safeName = timeline.name ?
|
|
3970
|
+
const safeName = timeline.name ? chunkRMHC2VG7_cjs.escapeStringValue(timeline.name, "JSX") : void 0;
|
|
3817
3971
|
const timelineNode = this.createNode(
|
|
3818
3972
|
"Timeline",
|
|
3819
3973
|
{ autoplay: timeline.autoplay, loop: timeline.loop },
|
|
@@ -3835,7 +3989,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3835
3989
|
}
|
|
3836
3990
|
}
|
|
3837
3991
|
}
|
|
3838
|
-
const safeName = audio.name ?
|
|
3992
|
+
const safeName = audio.name ? chunkRMHC2VG7_cjs.escapeStringValue(audio.name, "JSX") : void 0;
|
|
3839
3993
|
return this.createNode("Audio", props, safeName);
|
|
3840
3994
|
}
|
|
3841
3995
|
compileZoneBlock(zone) {
|
|
@@ -3854,7 +4008,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3854
4008
|
})
|
|
3855
4009
|
);
|
|
3856
4010
|
}
|
|
3857
|
-
const safeName = zone.name ?
|
|
4011
|
+
const safeName = zone.name ? chunkRMHC2VG7_cjs.escapeStringValue(zone.name, "JSX") : void 0;
|
|
3858
4012
|
return this.createNode("Zone", props, safeName);
|
|
3859
4013
|
}
|
|
3860
4014
|
compileUIBlock(ui) {
|
|
@@ -3871,7 +4025,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3871
4025
|
}
|
|
3872
4026
|
}
|
|
3873
4027
|
}
|
|
3874
|
-
const safeElName = el.name ?
|
|
4028
|
+
const safeElName = el.name ? chunkRMHC2VG7_cjs.escapeStringValue(el.name, "JSX") : void 0;
|
|
3875
4029
|
children.push(this.createNode("UIElement", elProps, safeElName));
|
|
3876
4030
|
}
|
|
3877
4031
|
}
|
|
@@ -3886,16 +4040,18 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3886
4040
|
props[prop.key] = prop.value;
|
|
3887
4041
|
}
|
|
3888
4042
|
}
|
|
3889
|
-
const safeName = transition.name ?
|
|
4043
|
+
const safeName = transition.name ? chunkRMHC2VG7_cjs.escapeStringValue(transition.name, "JSX") : void 0;
|
|
3890
4044
|
return this.createNode("Transition", props, safeName);
|
|
3891
4045
|
}
|
|
3892
4046
|
compileConditionalBlock(cond, templateMap) {
|
|
3893
4047
|
const children = [];
|
|
3894
4048
|
if (cond.objects) {
|
|
3895
|
-
for (const obj of cond.objects)
|
|
4049
|
+
for (const obj of cond.objects)
|
|
4050
|
+
children.push(this.compileObjectDecl(obj, templateMap));
|
|
3896
4051
|
}
|
|
3897
4052
|
if (cond.spatialGroups) {
|
|
3898
|
-
for (const g of cond.spatialGroups)
|
|
4053
|
+
for (const g of cond.spatialGroups)
|
|
4054
|
+
children.push(this.compileSpatialGroup(g, templateMap));
|
|
3899
4055
|
}
|
|
3900
4056
|
const elseChildren = [];
|
|
3901
4057
|
if (cond.elseObjects) {
|
|
@@ -3972,19 +4128,21 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
3972
4128
|
}
|
|
3973
4129
|
extractPostProcessingNodes(node) {
|
|
3974
4130
|
const effects = [];
|
|
3975
|
-
const ppTrait = node.traits?.get(
|
|
4131
|
+
const ppTrait = node.traits?.get(
|
|
4132
|
+
"postprocessing"
|
|
4133
|
+
);
|
|
3976
4134
|
if (ppTrait) {
|
|
3977
|
-
if (ppTrait.bloom)
|
|
3978
|
-
|
|
3979
|
-
if (ppTrait.
|
|
4135
|
+
if (ppTrait.bloom)
|
|
4136
|
+
effects.push(this.createNode("Bloom", ppTrait.bloom));
|
|
4137
|
+
if (ppTrait.ssao)
|
|
4138
|
+
effects.push(this.createNode("SSAO", ppTrait.ssao));
|
|
4139
|
+
if (ppTrait.vignette)
|
|
4140
|
+
effects.push(this.createNode("Vignette", ppTrait.vignette));
|
|
3980
4141
|
}
|
|
3981
4142
|
if (node.props.bloom) {
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
typeof node.props.bloom === "object" ? node.props.bloom : { intensity: 1 }
|
|
3986
|
-
)
|
|
3987
|
-
);
|
|
4143
|
+
const bloom = node.props.bloom;
|
|
4144
|
+
const bloomProps = typeof bloom === "object" && bloom !== null ? bloom : { intensity: 1 };
|
|
4145
|
+
effects.push(this.createNode("Bloom", bloomProps));
|
|
3988
4146
|
}
|
|
3989
4147
|
node.children?.forEach((child) => effects.push(...this.extractPostProcessingNodes(child)));
|
|
3990
4148
|
return effects;
|
|
@@ -4037,12 +4195,12 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
4037
4195
|
behavior: "group",
|
|
4038
4196
|
system: "System",
|
|
4039
4197
|
component: "Component",
|
|
4040
|
-
avatar: "Avatar",
|
|
4041
4198
|
dna: "DNA",
|
|
4042
4199
|
gaussian_splat: "GaussianSplat",
|
|
4043
4200
|
splat: "GaussianSplat",
|
|
4044
4201
|
nerf: "NeRF",
|
|
4045
|
-
volumetric_video: "VolumetricVideo"
|
|
4202
|
+
volumetric_video: "VolumetricVideo",
|
|
4203
|
+
world: "group"
|
|
4046
4204
|
};
|
|
4047
4205
|
return mapping[type] || type;
|
|
4048
4206
|
}
|
|
@@ -4050,7 +4208,7 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
4050
4208
|
const expandedProps = this.expandSpreads(rawProps);
|
|
4051
4209
|
const props = { ...expandedProps };
|
|
4052
4210
|
if (node.position) {
|
|
4053
|
-
props.position =
|
|
4211
|
+
props.position = node.position;
|
|
4054
4212
|
}
|
|
4055
4213
|
if (rawProps.position && Array.isArray(rawProps.position)) {
|
|
4056
4214
|
props.position = rawProps.position;
|
|
@@ -4071,7 +4229,10 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
4071
4229
|
props.args = this.getGeometryArgs(rawProps.geometry, { size: rawProps.size || 1 });
|
|
4072
4230
|
}
|
|
4073
4231
|
if (rawProps.material && typeof rawProps.material === "string" && exports.MATERIAL_PRESETS[rawProps.material]) {
|
|
4074
|
-
props.materialProps = {
|
|
4232
|
+
props.materialProps = {
|
|
4233
|
+
...exports.MATERIAL_PRESETS[rawProps.material],
|
|
4234
|
+
...props.materialProps
|
|
4235
|
+
};
|
|
4075
4236
|
}
|
|
4076
4237
|
if (node.directives) {
|
|
4077
4238
|
for (const d of node.directives) {
|
|
@@ -4085,6 +4246,9 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
4085
4246
|
props.animated = d.config || true;
|
|
4086
4247
|
} else if (d.name === "spatial_audio" || d.name === "voice") {
|
|
4087
4248
|
props.spatial = true;
|
|
4249
|
+
} else if (d.name === "gem_resonance") {
|
|
4250
|
+
props.gemResonance = gemResonanceConfig(d.config);
|
|
4251
|
+
props.spatial = true;
|
|
4088
4252
|
} else if (d.name === "networked") {
|
|
4089
4253
|
props.networked = d.config || true;
|
|
4090
4254
|
} else if (d.name === "moldable") {
|
|
@@ -4121,6 +4285,8 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
4121
4285
|
props.nerf = d.config || true;
|
|
4122
4286
|
} else if (d.name === "volumetric_video") {
|
|
4123
4287
|
props.volumetricVideo = d.config || true;
|
|
4288
|
+
} else if (d.name === "web_surface") {
|
|
4289
|
+
props.webSurface = d.config || true;
|
|
4124
4290
|
}
|
|
4125
4291
|
}
|
|
4126
4292
|
}
|
|
@@ -4147,7 +4313,8 @@ var init_R3FCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
4147
4313
|
if (m.pbr.ior !== void 0) materialProps["ior"] = m.pbr.ior;
|
|
4148
4314
|
if (m.pbr.iridescence !== void 0) materialProps["iridescence"] = m.pbr.iridescence;
|
|
4149
4315
|
}
|
|
4150
|
-
|
|
4316
|
+
const prior = r3fNode.props.materialProps ?? {};
|
|
4317
|
+
r3fNode.props.materialProps = { ...prior, ...materialProps };
|
|
4151
4318
|
}
|
|
4152
4319
|
if (graphics.lighting) {
|
|
4153
4320
|
const l = graphics.lighting;
|
|
@@ -4210,5 +4377,5 @@ exports.init_ObjectPool = init_ObjectPool;
|
|
|
4210
4377
|
exports.init_R3FCompiler = init_R3FCompiler;
|
|
4211
4378
|
exports.init_visual = init_visual;
|
|
4212
4379
|
exports.registerAllPresets = registerAllPresets;
|
|
4213
|
-
//# sourceMappingURL=chunk-
|
|
4214
|
-
//# sourceMappingURL=chunk-
|
|
4380
|
+
//# sourceMappingURL=chunk-BPICAGBV.cjs.map
|
|
4381
|
+
//# sourceMappingURL=chunk-BPICAGBV.cjs.map
|