@holoscript/core 6.0.4 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +3 -3
- package/bin/holoscript.cjs +3 -0
- package/dist/GLTFPipeline-SFIORFJU.js +16 -0
- package/dist/GLTFPipeline-VNNDPONV.cjs +37 -0
- package/dist/{HoloScriptPlusParser-BN6KVRCM.js → HoloScriptPlusParser-7FBIFUFC.js} +6 -5
- package/dist/{HoloScriptPlusParser-NC5FE6AL.cjs → HoloScriptPlusParser-A2W7OCN2.cjs} +17 -16
- package/dist/HoloScriptPlusParser-F2Z56FJR.js +10 -0
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +27 -0
- package/dist/{USDZExporter-UWGWNMMD.cjs → USDZExporter-3FWJ25JI.cjs} +344 -16
- package/dist/{USDZExporter-NTMBNTDB.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-5OEOHAAW.cjs → chunk-27MPVJVZ.cjs} +64 -28
- package/dist/{chunk-RVYPEYPX.js → chunk-2A7FURVO.js} +44 -8
- package/dist/{chunk-XCWFGZAA.js → chunk-2B7WVIDZ.js} +11 -8
- package/dist/{chunk-NDQNIJEH.js → chunk-2BSMSUCE.js} +250 -24
- package/dist/chunk-2HLIGOKU.cjs +5546 -0
- package/dist/{chunk-EONILVMF.js → chunk-2M2DPHKB.js} +4 -4
- package/dist/{chunk-G7CT3EMP.cjs → chunk-2YSNA2F2.cjs} +319 -47
- package/dist/{chunk-IWI6J7FX.js → chunk-33XCOVE3.js} +5 -5
- package/dist/chunk-3FOKASKO.cjs +348 -0
- package/dist/{chunk-DXJQDCFL.js → chunk-4C57PR42.js} +3 -3
- package/dist/{chunk-MPXBVFHQ.js → chunk-4N4SXXWF.js} +4 -3
- package/dist/chunk-4PDEPEQW.cjs +41 -0
- package/dist/chunk-4R6HPSHJ.js +2176 -0
- package/dist/chunk-4R6SBXDB.js +45 -0
- package/dist/chunk-4SY77NA4.cjs +413 -0
- package/dist/{chunk-YCXFCXDS.js → chunk-4UUKPCY4.js} +668 -110
- package/dist/{chunk-LGGRPKTV.cjs → chunk-52ULD552.cjs} +114 -35
- package/dist/{chunk-L4G4RLXX.js → chunk-5CKA5SXU.js} +438 -22
- 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-KED34ILP.js → chunk-6ASWLXXN.js} +21 -9
- package/dist/chunk-6CTRH7HT.cjs +1985 -0
- package/dist/{chunk-CAUCGUEA.cjs → chunk-6EX3I5P4.cjs} +6 -6
- package/dist/chunk-6FGQNDR4.js +5731 -0
- package/dist/{chunk-72EQECGT.cjs → chunk-6KMK2UXT.cjs} +122 -46
- package/dist/{chunk-G4VZTCIB.js → chunk-6L4VE27M.js} +33 -23
- package/dist/{chunk-ATSKSYVE.cjs → chunk-6S6TKNEA.cjs} +6478 -1738
- package/dist/chunk-77V4GTCA.js +596 -0
- package/dist/{chunk-ZP4D3CSX.cjs → chunk-7AD52FRS.cjs} +16 -16
- package/dist/chunk-A6KINLZJ.js +236 -0
- package/dist/chunk-AIA52I7T.cjs +543 -0
- package/dist/chunk-AIX25INK.cjs +602 -0
- package/dist/{chunk-B5TCIAPQ.cjs → chunk-AO4I2Z7M.cjs} +17 -18
- package/dist/{chunk-Q5SJOGHQ.cjs → chunk-BPICAGBV.cjs} +324 -199
- package/dist/chunk-BRQJKJGT.cjs +20 -0
- package/dist/{chunk-3FXV5S25.cjs → chunk-C37BHB7N.cjs} +6 -3
- package/dist/{chunk-XUTX5CBW.js → chunk-CBJY23VL.js} +3 -3
- package/dist/chunk-CIWWXYHZ.cjs +50 -0
- package/dist/{chunk-XXINBTZK.cjs → chunk-DIL6DDDN.cjs} +101 -45
- package/dist/chunk-DMXC24WV.js +404 -0
- package/dist/{chunk-PMGODDJA.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-UPJBDCVF.js → chunk-EMMC5CSQ.js} +12 -8
- package/dist/{chunk-GGHSW2NN.js → chunk-EOBB6A4B.js} +6389 -1718
- package/dist/chunk-EOFNVCM6.js +325 -0
- package/dist/{chunk-FHQVYCH2.js → chunk-ER4GATIU.js} +7 -7
- 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-T36DDXSF.js → chunk-FXKTYFYA.js} +150 -25
- package/dist/chunk-G2LS3RFO.js +623 -0
- package/dist/chunk-GCMWDSBZ.cjs +729 -0
- package/dist/chunk-GJNCFRJU.cjs +125 -0
- package/dist/{chunk-Q4QX3AET.cjs → chunk-GMP623FG.cjs} +16 -13
- package/dist/{chunk-XD6IYDUX.js → chunk-GN3KDX4W.js} +119 -43
- package/dist/{chunk-QLEAOI3Q.cjs → chunk-GQYKQSTC.cjs} +10 -10
- package/dist/chunk-GTU2Z2WW.cjs +262 -0
- package/dist/chunk-GZG4KA4E.js +529 -0
- package/dist/{chunk-BND3ST2K.cjs → chunk-H3MGK7TX.cjs} +42 -32
- package/dist/{chunk-XRKWN5PL.cjs → chunk-H5DZIHJP.cjs} +14 -18
- package/dist/{chunk-Z34RLXRA.cjs → chunk-HANL7K2Q.cjs} +65 -50
- package/dist/{chunk-3SAK5KFL.cjs → chunk-HCCQLAA4.cjs} +2 -11
- package/dist/{chunk-LXJ4667L.cjs → chunk-HGVXZDSK.cjs} +108 -20
- package/dist/{chunk-3FJCK5XA.js → chunk-HRODTEEO.js} +30 -10
- package/dist/{chunk-HQUEA5R6.cjs → chunk-HZCQO4JM.cjs} +6 -6
- package/dist/{chunk-S565K7NK.js → chunk-I2O7TW6B.js} +12 -8
- package/dist/chunk-IHESJZSW.js +4490 -0
- package/dist/{chunk-FSF7EQVA.cjs → chunk-IRWWS72C.cjs} +63 -22
- package/dist/{chunk-5O6TQC6M.cjs → chunk-IVIA7K75.cjs} +689 -127
- package/dist/chunk-IVY74O6C.js +247 -0
- package/dist/chunk-J32ZJZJH.js +554 -0
- package/dist/chunk-J56PTA46.cjs +639 -0
- package/dist/chunk-JD7CIZ33.js +1949 -0
- package/dist/{chunk-T7LEXZUZ.cjs → chunk-JIYN45TV.cjs} +14 -15
- package/dist/{chunk-FFKU7BTK.cjs → chunk-KHPCJRI3.cjs} +24 -21
- package/dist/chunk-KKFZ3B6J.cjs +557 -0
- package/dist/chunk-KPJL34Y7.cjs +186 -0
- package/dist/{chunk-HE7ULERA.cjs → chunk-KQTPCYTG.cjs} +128 -44
- package/dist/{chunk-OFKWH2IP.js → chunk-KX76JUQY.js} +3 -3
- package/dist/{chunk-33LSUQDD.cjs → chunk-L63H3SQ4.cjs} +43 -31
- package/dist/{chunk-K6EKD26I.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-XWPNTWDN.cjs → chunk-MJVIRCUV.cjs} +31 -27
- package/dist/{chunk-SDAMZIRE.js → chunk-MSMIFMBL.js} +135 -18
- package/dist/{chunk-56IF4NTA.js → chunk-MXFUTKCO.js} +18 -18
- package/dist/{chunk-6UEHYZ7V.cjs → chunk-MXJ5SS53.cjs} +447 -31
- package/dist/chunk-MYY4PMWX.cjs +264 -0
- package/dist/chunk-N75IH2HY.js +258 -0
- package/dist/{chunk-GVUR45UF.cjs → chunk-NG77ATEW.cjs} +7 -6
- package/dist/chunk-NW5G5FBQ.js +215 -0
- package/dist/{chunk-E3FWRT3Z.js → chunk-OEFY723R.js} +28 -13
- package/dist/chunk-OEV5RMZO.cjs +3042 -0
- package/dist/{chunk-X4ZF6CNE.cjs → chunk-OIQYIIO3.cjs} +7 -7
- package/dist/{chunk-2CWOLHTE.js → chunk-OL46QLBJ.js} +3 -11
- package/dist/chunk-OPZ7XDDI.js +487 -0
- package/dist/chunk-OSYNRVOV.cjs +243 -0
- package/dist/{chunk-TEWCN33Y.js → chunk-P7YIA5LN.js} +91 -7
- package/dist/chunk-PGANYCAG.cjs +220 -0
- package/dist/{chunk-CS2EMTGF.js → chunk-QAVXL2IH.js} +62 -21
- package/dist/{chunk-T4NKMBDL.js → chunk-QCCBXSCE.js} +1666 -756
- package/dist/{chunk-F4IULT7N.js → chunk-QPOQ7VPI.js} +16 -13
- package/dist/{chunk-6XSERL6L.js → chunk-QTPMJRGS.js} +3108 -2827
- package/dist/{chunk-F3HH56EB.cjs → chunk-QWNQ523V.cjs} +1730 -823
- package/dist/{chunk-R7MA7QWV.js → chunk-R3IVNY6P.js} +102 -23
- package/dist/chunk-R75BSDH7.cjs +50 -0
- package/dist/chunk-RAXUF5DF.cjs +2196 -0
- package/dist/{chunk-BF2235SI.cjs → chunk-RMHC2VG7.cjs} +2876 -2592
- package/dist/chunk-RUXGBKPS.cjs +4517 -0
- package/dist/{chunk-UERJ3YJV.js → chunk-S5IFXW6E.js} +113 -9
- package/dist/{chunk-27LWW5FU.cjs → chunk-S6YWHCKV.cjs} +5 -5
- package/dist/{chunk-WB4Z63GG.js → chunk-SIEXCILW.js} +3 -3
- package/dist/{chunk-CLYEIWA5.cjs → chunk-SLU6UPJI.cjs} +5 -3
- package/dist/{chunk-LZ266PCM.cjs → chunk-T5J7ZKP3.cjs} +446 -60
- 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-CDPGV4DN.js → chunk-U4NBQJBY.js} +14 -15
- package/dist/{chunk-NOZZ46QU.js → chunk-UD3DSHZM.js} +10 -14
- package/dist/chunk-UDMYRFDZ.js +3038 -0
- package/dist/{chunk-WDW67DZB.cjs → chunk-UOIGFQXC.cjs} +90 -68
- package/dist/{chunk-BU7VWW2K.js → chunk-URG2SJLK.js} +14 -15
- package/dist/{chunk-EQV4R3EV.cjs → chunk-V73NPPTM.cjs} +152 -35
- package/dist/chunk-VECQYRXL.js +474 -0
- package/dist/chunk-VEXPG4WN.js +1989 -0
- package/dist/{chunk-LDP5OK6G.js → chunk-VMLKSV26.js} +5 -5
- package/dist/{chunk-5BGSECRJ.cjs → chunk-VSK7W3O5.cjs} +47 -27
- package/dist/chunk-VVKVQZI6.js +55 -0
- package/dist/{chunk-YQK5JNFK.js → chunk-W55Z7QIX.js} +103 -15
- package/dist/{chunk-KSGXLT74.cjs → chunk-W6P2GBHH.cjs} +3 -3
- package/dist/{chunk-IBDG74G2.cjs → chunk-W6RW64BB.cjs} +7 -7
- package/dist/chunk-WDT3JTGM.cjs +483 -0
- package/dist/{chunk-HPS76H7Q.js → chunk-WKX5AMOY.js} +3 -3
- package/dist/chunk-WNNE3PO3.js +34 -0
- package/dist/{chunk-XG23EUQX.cjs → chunk-WRLUBRKS.cjs} +538 -312
- package/dist/{chunk-IFNQFCTM.js → chunk-WRNEH5MO.js} +79 -8
- package/dist/{chunk-54FHG2MX.js → chunk-WRWEX5ZF.js} +7 -4
- package/dist/{chunk-KCQ5NDYC.cjs → chunk-X3GJPRVK.cjs} +154 -80
- package/dist/{chunk-7AGYRWKW.cjs → chunk-XFXGA5IW.cjs} +126 -22
- package/dist/{chunk-TQSZUOW5.cjs → chunk-XHIV6326.cjs} +4 -4
- package/dist/chunk-XJAN7CZG.cjs +432 -0
- package/dist/chunk-XL6INWKT.js +121 -0
- package/dist/{chunk-E3UALNFA.js → chunk-XMWZG36H.js} +4 -4
- package/dist/{chunk-BKIGPPVM.js → chunk-XSFNHP2E.js} +6 -3
- package/dist/{chunk-H5Z7NASB.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-V3NN3HPP.js → chunk-YIMN575O.js} +437 -52
- package/dist/chunk-YIVFJNYV.js +176 -0
- package/dist/{chunk-MD6KDHVE.cjs → chunk-YKGPCZEE.cjs} +10 -10
- package/dist/chunk-YQELFNJV.js +39 -0
- package/dist/chunk-Z5XMPRNC.cjs +5390 -0
- package/dist/{chunk-3FYZOR7S.cjs → chunk-ZDSYWBIE.cjs} +18 -18
- package/dist/{chunk-6TZPZCOJ.cjs → chunk-ZKSS47EV.cjs} +24 -19
- package/dist/chunk-ZUL5AVTX.cjs +1993 -0
- package/dist/chunk-ZXBZVXDW.js +5386 -0
- package/dist/{chunk-DMG7C4H2.js → chunk-ZZ7RO2UQ.js} +312 -44
- package/dist/cli/holoscript-runner.cjs +200 -204
- package/dist/cli/holoscript-runner.js +144 -148
- package/dist/codebase/index.cjs +1 -1
- package/dist/codebase/index.js +1 -1
- package/dist/compiler/agent-inference.cjs +10 -7
- package/dist/compiler/agent-inference.js +6 -3
- package/dist/compiler/android-xr.cjs +12 -7
- package/dist/compiler/android-xr.js +10 -5
- package/dist/compiler/android.cjs +12 -8
- package/dist/compiler/android.js +10 -6
- package/dist/compiler/ar.cjs +9 -6
- package/dist/compiler/ar.js +7 -4
- package/dist/compiler/babylon.cjs +12 -8
- package/dist/compiler/babylon.js +11 -7
- 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 +155 -152
- package/dist/compiler/domain-block-utils.js +7 -4
- package/dist/compiler/dtdl.cjs +10 -7
- package/dist/compiler/dtdl.js +7 -4
- package/dist/compiler/gltf-pipeline.cjs +9 -9
- package/dist/compiler/gltf-pipeline.js +2 -2
- package/dist/compiler/godot.cjs +9 -6
- package/dist/compiler/godot.js +8 -5
- package/dist/compiler/incremental.cjs +12 -7
- package/dist/compiler/incremental.js +7 -2
- package/dist/compiler/index.cjs +3550 -268
- package/dist/compiler/index.d.ts +404 -21
- package/dist/compiler/index.js +3280 -138
- package/dist/compiler/ios.cjs +11 -8
- package/dist/compiler/ios.js +9 -6
- 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 -10
- package/dist/compiler/multi-layer.js +13 -9
- package/dist/compiler/nodetoy.cjs +5 -5
- package/dist/compiler/nodetoy.js +2 -2
- package/dist/compiler/openxr.cjs +10 -6
- package/dist/compiler/openxr.js +9 -5
- package/dist/compiler/playcanvas.cjs +10 -7
- package/dist/compiler/playcanvas.js +9 -6
- package/dist/compiler/r3f.cjs +17 -13
- package/dist/compiler/r3f.d.ts +22 -0
- package/dist/compiler/r3f.js +12 -8
- 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 -7
- package/dist/compiler/sdf.js +8 -5
- package/dist/compiler/semantic-scene.cjs +1 -1
- package/dist/compiler/semantic-scene.js +1 -1
- package/dist/compiler/state.cjs +9 -5
- package/dist/compiler/state.js +7 -3
- package/dist/compiler/trait-composition.cjs +11 -7
- package/dist/compiler/trait-composition.js +7 -3
- package/dist/compiler/unity.cjs +10 -6
- package/dist/compiler/unity.js +9 -5
- package/dist/compiler/unreal.cjs +11 -7
- package/dist/compiler/unreal.js +9 -5
- package/dist/compiler/urdf.cjs +20 -13
- package/dist/compiler/urdf.js +8 -5
- package/dist/compiler/usd-physics.cjs +10 -7
- package/dist/compiler/usd-physics.js +7 -4
- package/dist/compiler/visionos.cjs +10 -6
- package/dist/compiler/visionos.js +9 -5
- package/dist/compiler/vrchat.cjs +10 -7
- package/dist/compiler/vrchat.js +8 -5
- package/dist/compiler/vrr.cjs +10 -7
- package/dist/compiler/vrr.js +8 -5
- package/dist/compiler/wasm.cjs +13 -10
- package/dist/compiler/wasm.js +8 -5
- package/dist/compiler/webgpu.cjs +9 -6
- package/dist/compiler/webgpu.js +8 -5
- package/dist/constants.d.ts +3 -2
- 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.js +5 -3
- package/dist/entries/scripting.cjs +18 -18
- package/dist/entries/scripting.js +8 -8
- 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 +20332 -18121
- package/dist/index.d.ts +1477 -40
- package/dist/index.js +19451 -17638
- 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-PHCWUBPX.cjs → ml-dsa-FSKBTE3W.cjs} +177 -90
- package/dist/{ml-dsa-WYLJHJO6.js → ml-dsa-Z7JDKW4L.js} +158 -71
- 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 -11
- package/dist/parser.d.ts +11 -0
- package/dist/parser.js +10 -8
- package/dist/{playwright-RL6GY4F7.cjs → playwright-3AT3AKTV.cjs} +1985 -1985
- package/dist/{playwright-5OSAPTNH.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.js +545 -0
- package/dist/storage/index.cjs +10 -9
- 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 +22 -1
- 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.js +380 -0
- package/dist/traits/index.cjs +17630 -7881
- package/dist/traits/index.d.ts +197 -0
- package/dist/traits/index.js +16573 -7193
- 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 +29 -0
- package/dist/wot/index.js +4 -0
- package/package.json +153 -61
- package/dist/GLTFPipeline-DEN36VNK.js +0 -12
- package/dist/GLTFPipeline-YPCAK236.cjs +0 -33
- package/dist/chunk-4XSNJCLC.cjs +0 -1859
- package/dist/chunk-A7PIMZGU.js +0 -263
- package/dist/chunk-BWFJEM5A.js +0 -5419
- package/dist/chunk-CBJSLA2E.cjs +0 -5423
- package/dist/chunk-K3JDKWGI.cjs +0 -270
- package/dist/chunk-LSW7P7ML.js +0 -3675
- package/dist/chunk-MEASWI2Y.js +0 -126
- package/dist/chunk-NCUKG4SK.cjs +0 -3075
- package/dist/chunk-Q5JT3YML.cjs +0 -129
- package/dist/chunk-QGKNANZ3.js +0 -3071
- package/dist/chunk-S2N5TNMA.js +0 -1855
- package/dist/chunk-TSH3MSQU.cjs +0 -129
- package/dist/chunk-WGMEAYBG.js +0 -126
- package/dist/chunk-X6SEAXAX.cjs +0 -3681
|
@@ -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 {
|
|
7
|
-
import {
|
|
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,8 @@ var init_R3FCompiler = __esm({
|
|
|
739
754
|
init_ProvenanceSemiring();
|
|
740
755
|
init_visual();
|
|
741
756
|
init_DomainBlockCompilerMixin();
|
|
757
|
+
init_PlatformConditionalCompilerMixin();
|
|
758
|
+
init_AgentRBAC();
|
|
742
759
|
init_CompilerBase();
|
|
743
760
|
init_ObjectPool();
|
|
744
761
|
r3fNodePool = new ASTNodePool(
|
|
@@ -2546,6 +2563,10 @@ var init_R3FCompiler = __esm({
|
|
|
2546
2563
|
this.qualityTier = options.qualityTier ?? "high";
|
|
2547
2564
|
this.tierScales = QUALITY_TIER_SCALES[this.qualityTier];
|
|
2548
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
|
+
}
|
|
2549
2570
|
}
|
|
2550
2571
|
/**
|
|
2551
2572
|
* Validate agent permissions before compilation.
|
|
@@ -2564,18 +2585,18 @@ var init_R3FCompiler = __esm({
|
|
|
2564
2585
|
if (!agentToken) return;
|
|
2565
2586
|
const astDecision = this.rbac.checkAccess({
|
|
2566
2587
|
token: agentToken,
|
|
2567
|
-
resourceType:
|
|
2588
|
+
resourceType: "ast" /* AST */,
|
|
2568
2589
|
operation: "read",
|
|
2569
|
-
expectedWorkflowStep:
|
|
2590
|
+
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2570
2591
|
});
|
|
2571
2592
|
if (!astDecision.allowed) {
|
|
2572
2593
|
throw new UnauthorizedCompilerAccessError(astDecision, "AST access", this.compilerName);
|
|
2573
2594
|
}
|
|
2574
2595
|
const codeDecision = this.rbac.checkAccess({
|
|
2575
2596
|
token: agentToken,
|
|
2576
|
-
resourceType:
|
|
2597
|
+
resourceType: "code" /* CODE */,
|
|
2577
2598
|
operation: "write",
|
|
2578
|
-
expectedWorkflowStep:
|
|
2599
|
+
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2579
2600
|
});
|
|
2580
2601
|
if (!codeDecision.allowed) {
|
|
2581
2602
|
throw new UnauthorizedCompilerAccessError(codeDecision, "code generation", this.compilerName);
|
|
@@ -2583,10 +2604,10 @@ var init_R3FCompiler = __esm({
|
|
|
2583
2604
|
if (outputPath) {
|
|
2584
2605
|
const outputDecision = this.rbac.checkAccess({
|
|
2585
2606
|
token: agentToken,
|
|
2586
|
-
resourceType:
|
|
2607
|
+
resourceType: "output" /* OUTPUT */,
|
|
2587
2608
|
operation: "write",
|
|
2588
2609
|
resourcePath: outputPath,
|
|
2589
|
-
expectedWorkflowStep:
|
|
2610
|
+
expectedWorkflowStep: "serialize" /* SERIALIZE */
|
|
2590
2611
|
});
|
|
2591
2612
|
if (!outputDecision.allowed) {
|
|
2592
2613
|
throw new UnauthorizedCompilerAccessError(
|
|
@@ -2831,6 +2852,64 @@ var init_R3FCompiler = __esm({
|
|
|
2831
2852
|
}
|
|
2832
2853
|
return root;
|
|
2833
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
|
+
}
|
|
2834
2913
|
createNode(type, props = {}, id) {
|
|
2835
2914
|
const node = r3fNodePool.acquire();
|
|
2836
2915
|
node.type = type;
|
|
@@ -2882,6 +2961,10 @@ var init_R3FCompiler = __esm({
|
|
|
2882
2961
|
// ─── HoloComposition Compilation (.holo files) ────────────────────────
|
|
2883
2962
|
compileComposition(composition, agentToken, outputPath) {
|
|
2884
2963
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
2964
|
+
if (this._platformTarget) {
|
|
2965
|
+
const platformMixin = new PlatformConditionalCompilerMixin();
|
|
2966
|
+
composition = platformMixin.filterForPlatform(composition, this._platformTarget);
|
|
2967
|
+
}
|
|
2885
2968
|
const root = r3fNodePool.acquire();
|
|
2886
2969
|
root.type = "group";
|
|
2887
2970
|
root.id = composition.name ? escapeStringValue(composition.name, "JSX") : void 0;
|
|
@@ -2940,6 +3023,16 @@ var init_R3FCompiler = __esm({
|
|
|
2940
3023
|
root.children.push(this.compileZoneBlock(zone));
|
|
2941
3024
|
}
|
|
2942
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
|
+
}
|
|
2943
3036
|
if (composition.ui) {
|
|
2944
3037
|
root.children.push(this.compileUIBlock(composition.ui));
|
|
2945
3038
|
}
|
|
@@ -2972,9 +3065,24 @@ var init_R3FCompiler = __esm({
|
|
|
2972
3065
|
children: this.extractPostProcessingNodes(root)
|
|
2973
3066
|
});
|
|
2974
3067
|
}
|
|
3068
|
+
this.injectHolomapPointCloud(root);
|
|
2975
3069
|
this.injectDefaultLighting(root);
|
|
2976
3070
|
return root;
|
|
2977
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
|
+
}
|
|
2978
3086
|
compileLightBlock(light) {
|
|
2979
3087
|
const lightMapping = {
|
|
2980
3088
|
directional: "directionalLight",
|
|
@@ -3352,6 +3460,9 @@ var init_R3FCompiler = __esm({
|
|
|
3352
3460
|
props.animated = trait.config || true;
|
|
3353
3461
|
} else if (name === "positional" || name === "spatial_audio") {
|
|
3354
3462
|
props.spatial = true;
|
|
3463
|
+
} else if (name === "gem_resonance") {
|
|
3464
|
+
props.gemResonance = gemResonanceConfig(trait.config);
|
|
3465
|
+
props.spatial = true;
|
|
3355
3466
|
} else if (name === "shadow") {
|
|
3356
3467
|
props.castShadow = true;
|
|
3357
3468
|
if (trait.config?.mapSize)
|
|
@@ -3416,6 +3527,8 @@ var init_R3FCompiler = __esm({
|
|
|
3416
3527
|
props.pointCloud = trait.config || true;
|
|
3417
3528
|
} else if (name === "photogrammetry") {
|
|
3418
3529
|
props.photogrammetry = trait.config || true;
|
|
3530
|
+
} else if (name === "web_surface") {
|
|
3531
|
+
props.webSurface = trait.config || true;
|
|
3419
3532
|
} else if (name === "cloth") {
|
|
3420
3533
|
props.cloth = trait.config || { stiffness: 0.8 };
|
|
3421
3534
|
if (!props.rigidBody) props.rigidBody = { type: "dynamic" };
|
|
@@ -3496,6 +3609,14 @@ var init_R3FCompiler = __esm({
|
|
|
3496
3609
|
props.compute = trait.config || true;
|
|
3497
3610
|
} else if (name === "gpu_particle") {
|
|
3498
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;
|
|
3499
3620
|
} else if (name === "gpu_physics") {
|
|
3500
3621
|
props.gpuPhysics = trait.config || true;
|
|
3501
3622
|
} else if (name === "digital_twin") {
|
|
@@ -3627,6 +3748,7 @@ var init_R3FCompiler = __esm({
|
|
|
3627
3748
|
r3fNode.assetMaturity = m;
|
|
3628
3749
|
}
|
|
3629
3750
|
}
|
|
3751
|
+
delete props.maturityOverride;
|
|
3630
3752
|
if (obj.children && Array.isArray(obj.children)) {
|
|
3631
3753
|
for (const child of obj.children) {
|
|
3632
3754
|
r3fNode.children.push(this.compileObjectDecl(child));
|
|
@@ -4016,12 +4138,9 @@ var init_R3FCompiler = __esm({
|
|
|
4016
4138
|
effects.push(this.createNode("Vignette", ppTrait.vignette));
|
|
4017
4139
|
}
|
|
4018
4140
|
if (node.props.bloom) {
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
typeof node.props.bloom === "object" ? node.props.bloom : { intensity: 1 }
|
|
4023
|
-
)
|
|
4024
|
-
);
|
|
4141
|
+
const bloom = node.props.bloom;
|
|
4142
|
+
const bloomProps = typeof bloom === "object" && bloom !== null ? bloom : { intensity: 1 };
|
|
4143
|
+
effects.push(this.createNode("Bloom", bloomProps));
|
|
4025
4144
|
}
|
|
4026
4145
|
node.children?.forEach((child) => effects.push(...this.extractPostProcessingNodes(child)));
|
|
4027
4146
|
return effects;
|
|
@@ -4074,12 +4193,12 @@ var init_R3FCompiler = __esm({
|
|
|
4074
4193
|
behavior: "group",
|
|
4075
4194
|
system: "System",
|
|
4076
4195
|
component: "Component",
|
|
4077
|
-
avatar: "Avatar",
|
|
4078
4196
|
dna: "DNA",
|
|
4079
4197
|
gaussian_splat: "GaussianSplat",
|
|
4080
4198
|
splat: "GaussianSplat",
|
|
4081
4199
|
nerf: "NeRF",
|
|
4082
|
-
volumetric_video: "VolumetricVideo"
|
|
4200
|
+
volumetric_video: "VolumetricVideo",
|
|
4201
|
+
world: "group"
|
|
4083
4202
|
};
|
|
4084
4203
|
return mapping[type] || type;
|
|
4085
4204
|
}
|
|
@@ -4087,7 +4206,7 @@ var init_R3FCompiler = __esm({
|
|
|
4087
4206
|
const expandedProps = this.expandSpreads(rawProps);
|
|
4088
4207
|
const props = { ...expandedProps };
|
|
4089
4208
|
if (node.position) {
|
|
4090
|
-
props.position =
|
|
4209
|
+
props.position = node.position;
|
|
4091
4210
|
}
|
|
4092
4211
|
if (rawProps.position && Array.isArray(rawProps.position)) {
|
|
4093
4212
|
props.position = rawProps.position;
|
|
@@ -4125,6 +4244,9 @@ var init_R3FCompiler = __esm({
|
|
|
4125
4244
|
props.animated = d.config || true;
|
|
4126
4245
|
} else if (d.name === "spatial_audio" || d.name === "voice") {
|
|
4127
4246
|
props.spatial = true;
|
|
4247
|
+
} else if (d.name === "gem_resonance") {
|
|
4248
|
+
props.gemResonance = gemResonanceConfig(d.config);
|
|
4249
|
+
props.spatial = true;
|
|
4128
4250
|
} else if (d.name === "networked") {
|
|
4129
4251
|
props.networked = d.config || true;
|
|
4130
4252
|
} else if (d.name === "moldable") {
|
|
@@ -4161,6 +4283,8 @@ var init_R3FCompiler = __esm({
|
|
|
4161
4283
|
props.nerf = d.config || true;
|
|
4162
4284
|
} else if (d.name === "volumetric_video") {
|
|
4163
4285
|
props.volumetricVideo = d.config || true;
|
|
4286
|
+
} else if (d.name === "web_surface") {
|
|
4287
|
+
props.webSurface = d.config || true;
|
|
4164
4288
|
}
|
|
4165
4289
|
}
|
|
4166
4290
|
}
|
|
@@ -4187,7 +4311,8 @@ var init_R3FCompiler = __esm({
|
|
|
4187
4311
|
if (m.pbr.ior !== void 0) materialProps["ior"] = m.pbr.ior;
|
|
4188
4312
|
if (m.pbr.iridescence !== void 0) materialProps["iridescence"] = m.pbr.iridescence;
|
|
4189
4313
|
}
|
|
4190
|
-
|
|
4314
|
+
const prior = r3fNode.props.materialProps ?? {};
|
|
4315
|
+
r3fNode.props.materialProps = { ...prior, ...materialProps };
|
|
4191
4316
|
}
|
|
4192
4317
|
if (graphics.lighting) {
|
|
4193
4318
|
const l = graphics.lighting;
|
|
@@ -4246,5 +4371,5 @@ var init_R3FCompiler = __esm({
|
|
|
4246
4371
|
});
|
|
4247
4372
|
|
|
4248
4373
|
export { ASTNodePool, ENVIRONMENT_PRESETS, MATERIAL_PRESETS, QUALITY_TIER_SCALES, R3FCompiler, R3FCompiler_exports, UI_COMPONENT_PRESETS, init_ObjectPool, init_R3FCompiler, init_visual, registerAllPresets };
|
|
4249
|
-
//# sourceMappingURL=chunk-
|
|
4250
|
-
//# sourceMappingURL=chunk-
|
|
4374
|
+
//# sourceMappingURL=chunk-FXKTYFYA.js.map
|
|
4375
|
+
//# sourceMappingURL=chunk-FXKTYFYA.js.map
|