@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,10 +1,10 @@
|
|
|
1
|
-
import { init_material_properties_visual, init_surface_texture_visual, init_lighting_visual, init_gems_minerals_visual, init_fabric_cloth_visual, init_visual_effects_visual, init_age_condition_visual, init_water_fluid_visual, init_weather_phenomena_visual, init_emotion_mood_visual, init_size_scale_visual, init_environmental_biome_visual, init_magic_fantasy_visual, init_scifi_technology_visual, init_creatures_mythical_visual, init_nature_life_visual, init_furniture_decor_visual, init_construction_building_visual, init_containers_storage_visual, init_shape_form_visual, init_animals_visual, init_maritime_naval_visual, init_time_period_visual, init_accessibility_visual, init_accessibility_extended_visual, init_architecture_realestate_visual, init_audio_visual, init_cooking_food_visual, init_core_vr_interaction_visual, init_data_visualization_visual, init_education_learning_visual, init_environment_input_visual, init_game_mechanics_visual, init_geospatial_web3_visual, init_healthcare_medical_visual, init_humanoid_avatar_visual, init_intelligence_behavior_visual, init_interop_copresence_visual, init_iot_autonomous_agents_visual, init_locomotion_movement_visual, init_measurement_sensing_visual, init_media_analytics_visual, init_multisensory_haptic_visual, init_musical_sound_visual, init_music_performance_visual, init_narrative_storytelling_visual, init_networking_ai_visual, init_npc_roles_visual, init_object_interaction_visual, init_parser_core_ui_visual, init_physical_affordances_visual, init_physics_expansion_visual, init_procedural_generation_visual, init_resource_gathering_visual, init_safety_boundaries_visual, init_signs_communication_visual, init_simple_modifiers_visual, init_social_commerce_visual, init_social_effects_visual, init_sports_fitness_visual, init_state_persistence_visual, init_transportation_vehicles_visual, init_volumetric_webgpu_visual, init_weather_particles_visual, init_xr_platform_visual, MATERIAL_PROPERTIES_VISUALS, SURFACE_TEXTURE_VISUALS, LIGHTING_VISUALS, GEMS_MINERALS_VISUALS, FABRIC_CLOTH_VISUALS, VISUAL_EFFECTS_VISUALS, AGE_CONDITION_VISUALS, WATER_FLUID_VISUALS, WEATHER_PHENOMENA_VISUALS, EMOTION_MOOD_VISUALS, SIZE_SCALE_VISUALS, ENVIRONMENTAL_BIOME_VISUALS, MAGIC_FANTASY_VISUALS, SCIFI_TECHNOLOGY_VISUALS, CREATURES_MYTHICAL_VISUALS, NATURE_LIFE_VISUALS, FURNITURE_DECOR_VISUALS, CONSTRUCTION_BUILDING_VISUALS, CONTAINERS_STORAGE_VISUALS, SHAPE_FORM_VISUALS, ANIMALS_VISUALS, MARITIME_NAVAL_VISUALS, TIME_PERIOD_VISUALS, ACCESSIBILITY_VISUALS, ACCESSIBILITY_EXTENDED_VISUALS, ARCHITECTURE_REALESTATE_VISUALS, AUDIO_VISUALS, COOKING_FOOD_VISUALS, CORE_VR_INTERACTION_VISUALS, DATA_VISUALIZATION_VISUALS, EDUCATION_LEARNING_VISUALS, ENVIRONMENT_INPUT_VISUALS, GAME_MECHANICS_VISUALS, GEOSPATIAL_WEB3_VISUALS, HEALTHCARE_MEDICAL_VISUALS, HUMANOID_AVATAR_VISUALS, INTELLIGENCE_BEHAVIOR_VISUALS, INTEROP_COPRESENCE_VISUALS, IOT_AUTONOMOUS_AGENTS_VISUALS, LOCOMOTION_MOVEMENT_VISUALS, MEASUREMENT_SENSING_VISUALS, MEDIA_ANALYTICS_VISUALS, MULTISENSORY_HAPTIC_VISUALS, MUSICAL_SOUND_VISUALS, MUSIC_PERFORMANCE_VISUALS, NARRATIVE_STORYTELLING_VISUALS, NETWORKING_AI_VISUALS, NPC_ROLES_VISUALS, OBJECT_INTERACTION_VISUALS, PARSER_CORE_UI_VISUALS, PHYSICAL_AFFORDANCES_VISUALS, PHYSICS_EXPANSION_VISUALS, PROCEDURAL_GENERATION_VISUALS, RESOURCE_GATHERING_VISUALS, SAFETY_BOUNDARIES_VISUALS, SIGNS_COMMUNICATION_VISUALS, SIMPLE_MODIFIERS_VISUALS, SOCIAL_COMMERCE_VISUALS, SOCIAL_EFFECTS_VISUALS, SPORTS_FITNESS_VISUALS, STATE_PERSISTENCE_VISUALS, TRANSPORTATION_VEHICLES_VISUALS, VOLUMETRIC_WEBGPU_VISUALS, WEATHER_PARTICLES_VISUALS, XR_PLATFORM_VISUALS } from './chunk-
|
|
2
|
-
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-
|
|
3
|
-
import { init_TraitVisualRegistry, init_types, init_TraitCompositor, TraitCompositor, TraitVisualRegistry } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { init_AgentRBAC, getRBAC } from './chunk-
|
|
7
|
-
import { __esm, __export } from './chunk-
|
|
1
|
+
import { init_material_properties_visual, init_surface_texture_visual, init_lighting_visual, init_gems_minerals_visual, init_fabric_cloth_visual, init_visual_effects_visual, init_age_condition_visual, init_water_fluid_visual, init_weather_phenomena_visual, init_emotion_mood_visual, init_size_scale_visual, init_environmental_biome_visual, init_magic_fantasy_visual, init_scifi_technology_visual, init_creatures_mythical_visual, init_nature_life_visual, init_furniture_decor_visual, init_construction_building_visual, init_containers_storage_visual, init_shape_form_visual, init_animals_visual, init_maritime_naval_visual, init_time_period_visual, init_accessibility_visual, init_accessibility_extended_visual, init_architecture_realestate_visual, init_audio_visual, init_cooking_food_visual, init_core_vr_interaction_visual, init_data_visualization_visual, init_education_learning_visual, init_environment_input_visual, init_game_mechanics_visual, init_geospatial_web3_visual, init_healthcare_medical_visual, init_humanoid_avatar_visual, init_intelligence_behavior_visual, init_interop_copresence_visual, init_iot_autonomous_agents_visual, init_locomotion_movement_visual, init_measurement_sensing_visual, init_media_analytics_visual, init_multisensory_haptic_visual, init_musical_sound_visual, init_music_performance_visual, init_narrative_storytelling_visual, init_networking_ai_visual, init_npc_roles_visual, init_object_interaction_visual, init_parser_core_ui_visual, init_physical_affordances_visual, init_physics_expansion_visual, init_procedural_generation_visual, init_resource_gathering_visual, init_safety_boundaries_visual, init_signs_communication_visual, init_simple_modifiers_visual, init_social_commerce_visual, init_social_effects_visual, init_sports_fitness_visual, init_state_persistence_visual, init_transportation_vehicles_visual, init_volumetric_webgpu_visual, init_weather_particles_visual, init_xr_platform_visual, MATERIAL_PROPERTIES_VISUALS, SURFACE_TEXTURE_VISUALS, LIGHTING_VISUALS, GEMS_MINERALS_VISUALS, FABRIC_CLOTH_VISUALS, VISUAL_EFFECTS_VISUALS, AGE_CONDITION_VISUALS, WATER_FLUID_VISUALS, WEATHER_PHENOMENA_VISUALS, EMOTION_MOOD_VISUALS, SIZE_SCALE_VISUALS, ENVIRONMENTAL_BIOME_VISUALS, MAGIC_FANTASY_VISUALS, SCIFI_TECHNOLOGY_VISUALS, CREATURES_MYTHICAL_VISUALS, NATURE_LIFE_VISUALS, FURNITURE_DECOR_VISUALS, CONSTRUCTION_BUILDING_VISUALS, CONTAINERS_STORAGE_VISUALS, SHAPE_FORM_VISUALS, ANIMALS_VISUALS, MARITIME_NAVAL_VISUALS, TIME_PERIOD_VISUALS, ACCESSIBILITY_VISUALS, ACCESSIBILITY_EXTENDED_VISUALS, ARCHITECTURE_REALESTATE_VISUALS, AUDIO_VISUALS, COOKING_FOOD_VISUALS, CORE_VR_INTERACTION_VISUALS, DATA_VISUALIZATION_VISUALS, EDUCATION_LEARNING_VISUALS, ENVIRONMENT_INPUT_VISUALS, GAME_MECHANICS_VISUALS, GEOSPATIAL_WEB3_VISUALS, HEALTHCARE_MEDICAL_VISUALS, HUMANOID_AVATAR_VISUALS, INTELLIGENCE_BEHAVIOR_VISUALS, INTEROP_COPRESENCE_VISUALS, IOT_AUTONOMOUS_AGENTS_VISUALS, LOCOMOTION_MOVEMENT_VISUALS, MEASUREMENT_SENSING_VISUALS, MEDIA_ANALYTICS_VISUALS, MULTISENSORY_HAPTIC_VISUALS, MUSICAL_SOUND_VISUALS, MUSIC_PERFORMANCE_VISUALS, NARRATIVE_STORYTELLING_VISUALS, NETWORKING_AI_VISUALS, NPC_ROLES_VISUALS, OBJECT_INTERACTION_VISUALS, PARSER_CORE_UI_VISUALS, PHYSICAL_AFFORDANCES_VISUALS, PHYSICS_EXPANSION_VISUALS, PROCEDURAL_GENERATION_VISUALS, RESOURCE_GATHERING_VISUALS, SAFETY_BOUNDARIES_VISUALS, SIGNS_COMMUNICATION_VISUALS, SIMPLE_MODIFIERS_VISUALS, SOCIAL_COMMERCE_VISUALS, SOCIAL_EFFECTS_VISUALS, SPORTS_FITNESS_VISUALS, STATE_PERSISTENCE_VISUALS, TRANSPORTATION_VEHICLES_VISUALS, VOLUMETRIC_WEBGPU_VISUALS, WEATHER_PARTICLES_VISUALS, XR_PLATFORM_VISUALS } from './chunk-XT6JY5W5.js';
|
|
2
|
+
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
|
|
3
|
+
import { init_TraitVisualRegistry, init_types, init_TraitCompositor, TraitCompositor, TraitVisualRegistry } from './chunk-4C57PR42.js';
|
|
4
|
+
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GZG4KA4E.js';
|
|
5
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileSimulationBlock, simulationToR3F, compileWeatherBlock, weatherToR3F, compileAudioSourceBlock, audioSourceToR3F, compilePostProcessingBlock, postProcessingToR3F, compileParticleBlock, particlesToR3F, compilePhysicsBlock, physicsToR3F, compileMaterialBlock, materialToR3F } from './chunk-W55Z7QIX.js';
|
|
6
|
+
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError, escapeStringValue } from './chunk-QTPMJRGS.js';
|
|
7
|
+
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
8
8
|
|
|
9
9
|
// src/traits/visual/presets/hologram-media.visual.ts
|
|
10
10
|
var HOLOGRAM_MEDIA_VISUALS;
|
|
@@ -732,6 +732,21 @@ __export(R3FCompiler_exports, {
|
|
|
732
732
|
R3FCompiler: () => R3FCompiler,
|
|
733
733
|
UI_COMPONENT_PRESETS: () => UI_COMPONENT_PRESETS
|
|
734
734
|
});
|
|
735
|
+
function isVfxParticleTraitName(name) {
|
|
736
|
+
return name.startsWith("vfx_particle_");
|
|
737
|
+
}
|
|
738
|
+
function vfxParticleEffect(name) {
|
|
739
|
+
return name.replace("vfx_particle_", "");
|
|
740
|
+
}
|
|
741
|
+
function gemResonanceConfig(config) {
|
|
742
|
+
return {
|
|
743
|
+
max_distance: 0.5,
|
|
744
|
+
base_frequencies: "auto",
|
|
745
|
+
blend_mode: "harmonic",
|
|
746
|
+
output: "spatial_audio",
|
|
747
|
+
...config || {}
|
|
748
|
+
};
|
|
749
|
+
}
|
|
735
750
|
var r3fNodePool, MATERIAL_PRESETS, ENVIRONMENT_PRESETS, MESH_TYPES, UI_COMPONENT_PRESETS, QUALITY_TIER_SCALES, R3FCompiler;
|
|
736
751
|
var init_R3FCompiler = __esm({
|
|
737
752
|
"src/compiler/R3FCompiler.ts"() {
|
|
@@ -739,6 +754,7 @@ var init_R3FCompiler = __esm({
|
|
|
739
754
|
init_ProvenanceSemiring();
|
|
740
755
|
init_visual();
|
|
741
756
|
init_DomainBlockCompilerMixin();
|
|
757
|
+
init_PlatformConditionalCompilerMixin();
|
|
742
758
|
init_AgentRBAC();
|
|
743
759
|
init_CompilerBase();
|
|
744
760
|
init_ObjectPool();
|
|
@@ -2547,6 +2563,10 @@ var init_R3FCompiler = __esm({
|
|
|
2547
2563
|
this.qualityTier = options.qualityTier ?? "high";
|
|
2548
2564
|
this.tierScales = QUALITY_TIER_SCALES[this.qualityTier];
|
|
2549
2565
|
this._defaultLighting = options.defaultLighting ?? true;
|
|
2566
|
+
this._holomapPointCloud = options.holomapPointCloud;
|
|
2567
|
+
if (options.platformTarget) {
|
|
2568
|
+
this._platformTarget = typeof options.platformTarget === "string" ? createPlatformTarget(options.platformTarget) : options.platformTarget;
|
|
2569
|
+
}
|
|
2550
2570
|
}
|
|
2551
2571
|
/**
|
|
2552
2572
|
* Validate agent permissions before compilation.
|
|
@@ -2810,6 +2830,18 @@ var init_R3FCompiler = __esm({
|
|
|
2810
2830
|
},
|
|
2811
2831
|
children: []
|
|
2812
2832
|
};
|
|
2833
|
+
},
|
|
2834
|
+
simulation: (block) => {
|
|
2835
|
+
const sim = compileSimulationBlock(block);
|
|
2836
|
+
return {
|
|
2837
|
+
type: "DomainBlockOutput",
|
|
2838
|
+
props: {
|
|
2839
|
+
__raw: simulationToR3F(sim),
|
|
2840
|
+
__domain: "simulation",
|
|
2841
|
+
__name: sim.name || "Simulation"
|
|
2842
|
+
},
|
|
2843
|
+
children: []
|
|
2844
|
+
};
|
|
2813
2845
|
}
|
|
2814
2846
|
}
|
|
2815
2847
|
);
|
|
@@ -2820,6 +2852,64 @@ var init_R3FCompiler = __esm({
|
|
|
2820
2852
|
}
|
|
2821
2853
|
return root;
|
|
2822
2854
|
}
|
|
2855
|
+
/**
|
|
2856
|
+
* Compiles a declarative 'world' node into R3F scene nodes.
|
|
2857
|
+
* Nested `world.children` (objects) are compiled via the same path as top-level objects.
|
|
2858
|
+
*/
|
|
2859
|
+
compileWorldNode(world, templateMap) {
|
|
2860
|
+
const nodes = [];
|
|
2861
|
+
const props = {};
|
|
2862
|
+
if (world.properties) {
|
|
2863
|
+
for (const prop of world.properties) {
|
|
2864
|
+
props[prop.key] = prop.value;
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
if (props.ambient_light !== void 0) {
|
|
2868
|
+
nodes.push(
|
|
2869
|
+
this.createNode("ambientLight", {
|
|
2870
|
+
intensity: Number(props.ambient_light)
|
|
2871
|
+
})
|
|
2872
|
+
);
|
|
2873
|
+
}
|
|
2874
|
+
if (props.skybox_color !== void 0) {
|
|
2875
|
+
nodes.push(
|
|
2876
|
+
this.createNode("Environment", {
|
|
2877
|
+
background: true,
|
|
2878
|
+
preset: "sunset"
|
|
2879
|
+
// Default preset if just color is given
|
|
2880
|
+
})
|
|
2881
|
+
);
|
|
2882
|
+
nodes.push(
|
|
2883
|
+
this.createNode("color", {
|
|
2884
|
+
attach: "background",
|
|
2885
|
+
args: [props.skybox_color]
|
|
2886
|
+
})
|
|
2887
|
+
);
|
|
2888
|
+
}
|
|
2889
|
+
if (props.gravity !== void 0) {
|
|
2890
|
+
nodes.push(
|
|
2891
|
+
this.createNode("Physics", {
|
|
2892
|
+
gravity: [0, -Number(props.gravity), 0]
|
|
2893
|
+
})
|
|
2894
|
+
);
|
|
2895
|
+
}
|
|
2896
|
+
const childNodes = [];
|
|
2897
|
+
if (world.children && world.children.length > 0) {
|
|
2898
|
+
for (const child of world.children) {
|
|
2899
|
+
childNodes.push(this.compileObjectDecl(child, templateMap));
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
if (childNodes.length === 0) {
|
|
2903
|
+
return nodes;
|
|
2904
|
+
}
|
|
2905
|
+
const group = this.createNode(
|
|
2906
|
+
"group",
|
|
2907
|
+
{},
|
|
2908
|
+
world.name ? escapeStringValue(world.name, "JSX") : void 0
|
|
2909
|
+
);
|
|
2910
|
+
group.children = [...nodes, ...childNodes];
|
|
2911
|
+
return [group];
|
|
2912
|
+
}
|
|
2823
2913
|
createNode(type, props = {}, id) {
|
|
2824
2914
|
const node = r3fNodePool.acquire();
|
|
2825
2915
|
node.type = type;
|
|
@@ -2871,6 +2961,10 @@ var init_R3FCompiler = __esm({
|
|
|
2871
2961
|
// ─── HoloComposition Compilation (.holo files) ────────────────────────
|
|
2872
2962
|
compileComposition(composition, agentToken, outputPath) {
|
|
2873
2963
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
2964
|
+
if (this._platformTarget) {
|
|
2965
|
+
const platformMixin = new PlatformConditionalCompilerMixin();
|
|
2966
|
+
composition = platformMixin.filterForPlatform(composition, this._platformTarget);
|
|
2967
|
+
}
|
|
2874
2968
|
const root = r3fNodePool.acquire();
|
|
2875
2969
|
root.type = "group";
|
|
2876
2970
|
root.id = composition.name ? escapeStringValue(composition.name, "JSX") : void 0;
|
|
@@ -2929,6 +3023,16 @@ var init_R3FCompiler = __esm({
|
|
|
2929
3023
|
root.children.push(this.compileZoneBlock(zone));
|
|
2930
3024
|
}
|
|
2931
3025
|
}
|
|
3026
|
+
if (Array.isArray(composition.worlds)) {
|
|
3027
|
+
for (const world of composition.worlds) {
|
|
3028
|
+
root.children.push(
|
|
3029
|
+
...this.compileWorldNode(
|
|
3030
|
+
world,
|
|
3031
|
+
templateMap
|
|
3032
|
+
)
|
|
3033
|
+
);
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
2932
3036
|
if (composition.ui) {
|
|
2933
3037
|
root.children.push(this.compileUIBlock(composition.ui));
|
|
2934
3038
|
}
|
|
@@ -2961,9 +3065,24 @@ var init_R3FCompiler = __esm({
|
|
|
2961
3065
|
children: this.extractPostProcessingNodes(root)
|
|
2962
3066
|
});
|
|
2963
3067
|
}
|
|
3068
|
+
this.injectHolomapPointCloud(root);
|
|
2964
3069
|
this.injectDefaultLighting(root);
|
|
2965
3070
|
return root;
|
|
2966
3071
|
}
|
|
3072
|
+
/** R3F host apps can map this node to BufferGeometry + pointsMaterial from base64 buffers. */
|
|
3073
|
+
injectHolomapPointCloud(root) {
|
|
3074
|
+
const h = this._holomapPointCloud;
|
|
3075
|
+
if (!h || h.pointCount < 1 || !h.positionsB64 || !h.colorsB64) return;
|
|
3076
|
+
if (!root.children) root.children = [];
|
|
3077
|
+
root.children.push({
|
|
3078
|
+
type: "holomapPointCloud",
|
|
3079
|
+
props: {
|
|
3080
|
+
positionsB64: h.positionsB64,
|
|
3081
|
+
colorsB64: h.colorsB64,
|
|
3082
|
+
pointCount: h.pointCount
|
|
3083
|
+
}
|
|
3084
|
+
});
|
|
3085
|
+
}
|
|
2967
3086
|
compileLightBlock(light) {
|
|
2968
3087
|
const lightMapping = {
|
|
2969
3088
|
directional: "directionalLight",
|
|
@@ -3188,9 +3307,12 @@ var init_R3FCompiler = __esm({
|
|
|
3188
3307
|
for (const p of obj.properties) {
|
|
3189
3308
|
const prop = p;
|
|
3190
3309
|
if (prop && prop.type === "spread") {
|
|
3191
|
-
const resolved = this.resolveSpreadArgument(
|
|
3192
|
-
|
|
3193
|
-
|
|
3310
|
+
const resolved = this.resolveSpreadArgument(
|
|
3311
|
+
prop.target || prop.argument,
|
|
3312
|
+
{
|
|
3313
|
+
templates: templateMap
|
|
3314
|
+
}
|
|
3315
|
+
);
|
|
3194
3316
|
if (resolved && typeof resolved === "object" && !Array.isArray(resolved)) {
|
|
3195
3317
|
for (const [key, value] of Object.entries(resolved)) {
|
|
3196
3318
|
expandedProperties.push({ key, value });
|
|
@@ -3265,9 +3387,15 @@ var init_R3FCompiler = __esm({
|
|
|
3265
3387
|
mProps.transparent = value < 1;
|
|
3266
3388
|
props.materialProps = mProps;
|
|
3267
3389
|
} else if (key === "emissive") {
|
|
3268
|
-
props.materialProps = {
|
|
3390
|
+
props.materialProps = {
|
|
3391
|
+
...props.materialProps || {},
|
|
3392
|
+
emissive: value
|
|
3393
|
+
};
|
|
3269
3394
|
} else if (key === "emissiveIntensity" || key === "emissive_intensity") {
|
|
3270
|
-
props.materialProps = {
|
|
3395
|
+
props.materialProps = {
|
|
3396
|
+
...props.materialProps || {},
|
|
3397
|
+
emissiveIntensity: value
|
|
3398
|
+
};
|
|
3271
3399
|
} else if (key === "size") {
|
|
3272
3400
|
if (Array.isArray(value)) {
|
|
3273
3401
|
props.args = value;
|
|
@@ -3298,8 +3426,10 @@ var init_R3FCompiler = __esm({
|
|
|
3298
3426
|
const semiring = new ProvenanceSemiring();
|
|
3299
3427
|
const physicsApplications = obj.traits.filter((t) => t.name === "physics" || t.name === "collidable").map((t) => {
|
|
3300
3428
|
let baseConfig = t.config || {};
|
|
3301
|
-
if (t.name === "collidable" && !baseConfig.type)
|
|
3302
|
-
|
|
3429
|
+
if (t.name === "collidable" && !baseConfig.type)
|
|
3430
|
+
baseConfig = { ...baseConfig, type: "fixed" };
|
|
3431
|
+
if (t.name === "physics" && !baseConfig.type)
|
|
3432
|
+
baseConfig = { ...baseConfig, type: "dynamic" };
|
|
3303
3433
|
return {
|
|
3304
3434
|
name: t.name,
|
|
3305
3435
|
config: baseConfig,
|
|
@@ -3330,6 +3460,9 @@ var init_R3FCompiler = __esm({
|
|
|
3330
3460
|
props.animated = trait.config || true;
|
|
3331
3461
|
} else if (name === "positional" || name === "spatial_audio") {
|
|
3332
3462
|
props.spatial = true;
|
|
3463
|
+
} else if (name === "gem_resonance") {
|
|
3464
|
+
props.gemResonance = gemResonanceConfig(trait.config);
|
|
3465
|
+
props.spatial = true;
|
|
3333
3466
|
} else if (name === "shadow") {
|
|
3334
3467
|
props.castShadow = true;
|
|
3335
3468
|
if (trait.config?.mapSize)
|
|
@@ -3344,7 +3477,10 @@ var init_R3FCompiler = __esm({
|
|
|
3344
3477
|
...props.materialProps
|
|
3345
3478
|
};
|
|
3346
3479
|
} else {
|
|
3347
|
-
props.materialProps = {
|
|
3480
|
+
props.materialProps = {
|
|
3481
|
+
...props.materialProps,
|
|
3482
|
+
...trait.config
|
|
3483
|
+
};
|
|
3348
3484
|
}
|
|
3349
3485
|
} else if (name === "networked") {
|
|
3350
3486
|
props.networked = trait.config || true;
|
|
@@ -3391,6 +3527,8 @@ var init_R3FCompiler = __esm({
|
|
|
3391
3527
|
props.pointCloud = trait.config || true;
|
|
3392
3528
|
} else if (name === "photogrammetry") {
|
|
3393
3529
|
props.photogrammetry = trait.config || true;
|
|
3530
|
+
} else if (name === "web_surface") {
|
|
3531
|
+
props.webSurface = trait.config || true;
|
|
3394
3532
|
} else if (name === "cloth") {
|
|
3395
3533
|
props.cloth = trait.config || { stiffness: 0.8 };
|
|
3396
3534
|
if (!props.rigidBody) props.rigidBody = { type: "dynamic" };
|
|
@@ -3471,6 +3609,14 @@ var init_R3FCompiler = __esm({
|
|
|
3471
3609
|
props.compute = trait.config || true;
|
|
3472
3610
|
} else if (name === "gpu_particle") {
|
|
3473
3611
|
props.gpuParticle = trait.config || { count: 1e4 };
|
|
3612
|
+
} else if (isVfxParticleTraitName(name)) {
|
|
3613
|
+
const particleConfig = {
|
|
3614
|
+
effect: vfxParticleEffect(name),
|
|
3615
|
+
...trait.config || {}
|
|
3616
|
+
};
|
|
3617
|
+
const gpuParticles = props.gpuParticles ?? [];
|
|
3618
|
+
props.gpuParticles = [...gpuParticles, particleConfig];
|
|
3619
|
+
if (!props.gpuParticle) props.gpuParticle = particleConfig;
|
|
3474
3620
|
} else if (name === "gpu_physics") {
|
|
3475
3621
|
props.gpuPhysics = trait.config || true;
|
|
3476
3622
|
} else if (name === "digital_twin") {
|
|
@@ -3558,7 +3704,10 @@ var init_R3FCompiler = __esm({
|
|
|
3558
3704
|
const compositor = new TraitCompositor();
|
|
3559
3705
|
const composedMaterial = compositor.compose(traitNames);
|
|
3560
3706
|
if (Object.keys(composedMaterial).length > 0) {
|
|
3561
|
-
props.materialProps = {
|
|
3707
|
+
props.materialProps = {
|
|
3708
|
+
...props.materialProps,
|
|
3709
|
+
...composedMaterial
|
|
3710
|
+
};
|
|
3562
3711
|
}
|
|
3563
3712
|
}
|
|
3564
3713
|
let type;
|
|
@@ -3599,6 +3748,7 @@ var init_R3FCompiler = __esm({
|
|
|
3599
3748
|
r3fNode.assetMaturity = m;
|
|
3600
3749
|
}
|
|
3601
3750
|
}
|
|
3751
|
+
delete props.maturityOverride;
|
|
3602
3752
|
if (obj.children && Array.isArray(obj.children)) {
|
|
3603
3753
|
for (const child of obj.children) {
|
|
3604
3754
|
r3fNode.children.push(this.compileObjectDecl(child));
|
|
@@ -3705,7 +3855,11 @@ var init_R3FCompiler = __esm({
|
|
|
3705
3855
|
props[key] = value;
|
|
3706
3856
|
}
|
|
3707
3857
|
}
|
|
3708
|
-
const r3fNode = this.createNode(
|
|
3858
|
+
const r3fNode = this.createNode(
|
|
3859
|
+
"Component",
|
|
3860
|
+
props,
|
|
3861
|
+
node.id || node.name
|
|
3862
|
+
);
|
|
3709
3863
|
if (node.directives) {
|
|
3710
3864
|
r3fNode.directives = node.directives;
|
|
3711
3865
|
}
|
|
@@ -3890,10 +4044,12 @@ var init_R3FCompiler = __esm({
|
|
|
3890
4044
|
compileConditionalBlock(cond, templateMap) {
|
|
3891
4045
|
const children = [];
|
|
3892
4046
|
if (cond.objects) {
|
|
3893
|
-
for (const obj of cond.objects)
|
|
4047
|
+
for (const obj of cond.objects)
|
|
4048
|
+
children.push(this.compileObjectDecl(obj, templateMap));
|
|
3894
4049
|
}
|
|
3895
4050
|
if (cond.spatialGroups) {
|
|
3896
|
-
for (const g of cond.spatialGroups)
|
|
4051
|
+
for (const g of cond.spatialGroups)
|
|
4052
|
+
children.push(this.compileSpatialGroup(g, templateMap));
|
|
3897
4053
|
}
|
|
3898
4054
|
const elseChildren = [];
|
|
3899
4055
|
if (cond.elseObjects) {
|
|
@@ -3970,19 +4126,21 @@ var init_R3FCompiler = __esm({
|
|
|
3970
4126
|
}
|
|
3971
4127
|
extractPostProcessingNodes(node) {
|
|
3972
4128
|
const effects = [];
|
|
3973
|
-
const ppTrait = node.traits?.get(
|
|
4129
|
+
const ppTrait = node.traits?.get(
|
|
4130
|
+
"postprocessing"
|
|
4131
|
+
);
|
|
3974
4132
|
if (ppTrait) {
|
|
3975
|
-
if (ppTrait.bloom)
|
|
3976
|
-
|
|
3977
|
-
if (ppTrait.
|
|
4133
|
+
if (ppTrait.bloom)
|
|
4134
|
+
effects.push(this.createNode("Bloom", ppTrait.bloom));
|
|
4135
|
+
if (ppTrait.ssao)
|
|
4136
|
+
effects.push(this.createNode("SSAO", ppTrait.ssao));
|
|
4137
|
+
if (ppTrait.vignette)
|
|
4138
|
+
effects.push(this.createNode("Vignette", ppTrait.vignette));
|
|
3978
4139
|
}
|
|
3979
4140
|
if (node.props.bloom) {
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
typeof node.props.bloom === "object" ? node.props.bloom : { intensity: 1 }
|
|
3984
|
-
)
|
|
3985
|
-
);
|
|
4141
|
+
const bloom = node.props.bloom;
|
|
4142
|
+
const bloomProps = typeof bloom === "object" && bloom !== null ? bloom : { intensity: 1 };
|
|
4143
|
+
effects.push(this.createNode("Bloom", bloomProps));
|
|
3986
4144
|
}
|
|
3987
4145
|
node.children?.forEach((child) => effects.push(...this.extractPostProcessingNodes(child)));
|
|
3988
4146
|
return effects;
|
|
@@ -4035,12 +4193,12 @@ var init_R3FCompiler = __esm({
|
|
|
4035
4193
|
behavior: "group",
|
|
4036
4194
|
system: "System",
|
|
4037
4195
|
component: "Component",
|
|
4038
|
-
avatar: "Avatar",
|
|
4039
4196
|
dna: "DNA",
|
|
4040
4197
|
gaussian_splat: "GaussianSplat",
|
|
4041
4198
|
splat: "GaussianSplat",
|
|
4042
4199
|
nerf: "NeRF",
|
|
4043
|
-
volumetric_video: "VolumetricVideo"
|
|
4200
|
+
volumetric_video: "VolumetricVideo",
|
|
4201
|
+
world: "group"
|
|
4044
4202
|
};
|
|
4045
4203
|
return mapping[type] || type;
|
|
4046
4204
|
}
|
|
@@ -4048,7 +4206,7 @@ var init_R3FCompiler = __esm({
|
|
|
4048
4206
|
const expandedProps = this.expandSpreads(rawProps);
|
|
4049
4207
|
const props = { ...expandedProps };
|
|
4050
4208
|
if (node.position) {
|
|
4051
|
-
props.position =
|
|
4209
|
+
props.position = node.position;
|
|
4052
4210
|
}
|
|
4053
4211
|
if (rawProps.position && Array.isArray(rawProps.position)) {
|
|
4054
4212
|
props.position = rawProps.position;
|
|
@@ -4069,7 +4227,10 @@ var init_R3FCompiler = __esm({
|
|
|
4069
4227
|
props.args = this.getGeometryArgs(rawProps.geometry, { size: rawProps.size || 1 });
|
|
4070
4228
|
}
|
|
4071
4229
|
if (rawProps.material && typeof rawProps.material === "string" && MATERIAL_PRESETS[rawProps.material]) {
|
|
4072
|
-
props.materialProps = {
|
|
4230
|
+
props.materialProps = {
|
|
4231
|
+
...MATERIAL_PRESETS[rawProps.material],
|
|
4232
|
+
...props.materialProps
|
|
4233
|
+
};
|
|
4073
4234
|
}
|
|
4074
4235
|
if (node.directives) {
|
|
4075
4236
|
for (const d of node.directives) {
|
|
@@ -4083,6 +4244,9 @@ var init_R3FCompiler = __esm({
|
|
|
4083
4244
|
props.animated = d.config || true;
|
|
4084
4245
|
} else if (d.name === "spatial_audio" || d.name === "voice") {
|
|
4085
4246
|
props.spatial = true;
|
|
4247
|
+
} else if (d.name === "gem_resonance") {
|
|
4248
|
+
props.gemResonance = gemResonanceConfig(d.config);
|
|
4249
|
+
props.spatial = true;
|
|
4086
4250
|
} else if (d.name === "networked") {
|
|
4087
4251
|
props.networked = d.config || true;
|
|
4088
4252
|
} else if (d.name === "moldable") {
|
|
@@ -4119,6 +4283,8 @@ var init_R3FCompiler = __esm({
|
|
|
4119
4283
|
props.nerf = d.config || true;
|
|
4120
4284
|
} else if (d.name === "volumetric_video") {
|
|
4121
4285
|
props.volumetricVideo = d.config || true;
|
|
4286
|
+
} else if (d.name === "web_surface") {
|
|
4287
|
+
props.webSurface = d.config || true;
|
|
4122
4288
|
}
|
|
4123
4289
|
}
|
|
4124
4290
|
}
|
|
@@ -4145,7 +4311,8 @@ var init_R3FCompiler = __esm({
|
|
|
4145
4311
|
if (m.pbr.ior !== void 0) materialProps["ior"] = m.pbr.ior;
|
|
4146
4312
|
if (m.pbr.iridescence !== void 0) materialProps["iridescence"] = m.pbr.iridescence;
|
|
4147
4313
|
}
|
|
4148
|
-
|
|
4314
|
+
const prior = r3fNode.props.materialProps ?? {};
|
|
4315
|
+
r3fNode.props.materialProps = { ...prior, ...materialProps };
|
|
4149
4316
|
}
|
|
4150
4317
|
if (graphics.lighting) {
|
|
4151
4318
|
const l = graphics.lighting;
|
|
@@ -4204,5 +4371,5 @@ var init_R3FCompiler = __esm({
|
|
|
4204
4371
|
});
|
|
4205
4372
|
|
|
4206
4373
|
export { ASTNodePool, ENVIRONMENT_PRESETS, MATERIAL_PRESETS, QUALITY_TIER_SCALES, R3FCompiler, R3FCompiler_exports, UI_COMPONENT_PRESETS, init_ObjectPool, init_R3FCompiler, init_visual, registerAllPresets };
|
|
4207
|
-
//# sourceMappingURL=chunk-
|
|
4208
|
-
//# sourceMappingURL=chunk-
|
|
4374
|
+
//# sourceMappingURL=chunk-FXKTYFYA.js.map
|
|
4375
|
+
//# sourceMappingURL=chunk-FXKTYFYA.js.map
|