@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,21 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkHGVXZDSK_cjs = require('./chunk-HGVXZDSK.cjs');
|
|
4
|
+
var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
|
|
5
|
+
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
6
|
+
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
8
8
|
// src/compiler/WebGPUCompiler.ts
|
|
9
9
|
var WebGPUCompiler_exports = {};
|
|
10
|
-
|
|
10
|
+
chunkHCCQLAA4_cjs.__export(WebGPUCompiler_exports, {
|
|
11
11
|
WebGPUCompiler: () => exports.WebGPUCompiler
|
|
12
12
|
});
|
|
13
|
+
function isGpuParticleTraitName(name) {
|
|
14
|
+
return typeof name === "string" && (name === "gpu_particle" || name.startsWith("vfx_particle_"));
|
|
15
|
+
}
|
|
16
|
+
function findGpuParticleTrait(traits) {
|
|
17
|
+
return traits?.find((t) => isGpuParticleTraitName(t.name));
|
|
18
|
+
}
|
|
13
19
|
exports.WebGPUCompiler = void 0;
|
|
14
|
-
var init_WebGPUCompiler =
|
|
20
|
+
var init_WebGPUCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
15
21
|
"src/compiler/WebGPUCompiler.ts"() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports.WebGPUCompiler = class extends
|
|
22
|
+
chunkRMHC2VG7_cjs.init_CompilerBase();
|
|
23
|
+
chunkHGVXZDSK_cjs.init_DomainBlockCompilerMixin();
|
|
24
|
+
exports.WebGPUCompiler = class extends chunkRMHC2VG7_cjs.CompilerBase {
|
|
19
25
|
constructor(options = {}) {
|
|
20
26
|
super();
|
|
21
27
|
this.compilerName = "WebGPUCompiler";
|
|
@@ -26,11 +32,12 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
26
32
|
entryPoint: options.entryPoint || "main",
|
|
27
33
|
enableCompute: options.enableCompute ?? true,
|
|
28
34
|
msaa: options.msaa || 4,
|
|
29
|
-
indent: options.indent || " "
|
|
35
|
+
indent: options.indent || " ",
|
|
36
|
+
provenanceHash: options.provenanceHash ?? ""
|
|
30
37
|
};
|
|
31
38
|
}
|
|
32
39
|
getRequiredCapability() {
|
|
33
|
-
return
|
|
40
|
+
return ans.ANSCapabilityPath.WEBGPU;
|
|
34
41
|
}
|
|
35
42
|
compile(composition, agentToken, outputPath) {
|
|
36
43
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
@@ -42,6 +49,9 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
42
49
|
`// Source: composition "${this.escapeStringValue(composition.name, "TypeScript")}"`
|
|
43
50
|
);
|
|
44
51
|
this.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
52
|
+
if (this.options.provenanceHash) {
|
|
53
|
+
this.emit(`// Provenance Hash: ${this.options.provenanceHash}`);
|
|
54
|
+
}
|
|
45
55
|
this.emit("");
|
|
46
56
|
this.emitDeviceInit();
|
|
47
57
|
if (composition.environment) this.emitEnvironment(composition.environment);
|
|
@@ -67,12 +77,12 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
67
77
|
this.emit("");
|
|
68
78
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
69
79
|
let blockIdx = 0;
|
|
70
|
-
const compiled =
|
|
80
|
+
const compiled = chunkHGVXZDSK_cjs.compileDomainBlocks(
|
|
71
81
|
domainBlocks,
|
|
72
82
|
{
|
|
73
83
|
material: (block) => {
|
|
74
|
-
const mat =
|
|
75
|
-
return
|
|
84
|
+
const mat = chunkHGVXZDSK_cjs.compileMaterialBlock(block);
|
|
85
|
+
return chunkHGVXZDSK_cjs.materialToWebGPU(mat, `db${blockIdx++}`);
|
|
76
86
|
}
|
|
77
87
|
},
|
|
78
88
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -155,7 +165,7 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
155
165
|
this.emit(`// Object: ${this.escapeStringValue(obj.name, "TypeScript")}`);
|
|
156
166
|
const isGaussianSplat = traits.some((t) => t.name === "gaussian_splat");
|
|
157
167
|
const isPointCloud = traits.some((t) => t.name === "point_cloud");
|
|
158
|
-
const isGpuParticle = traits.some((t) => t.name
|
|
168
|
+
const isGpuParticle = traits.some((t) => isGpuParticleTraitName(t.name));
|
|
159
169
|
if (isModel && modelSrc) {
|
|
160
170
|
this.emit(`const ${v}Model = await assetLoader.load("${modelSrc}");`);
|
|
161
171
|
const pos = this.findObjProp(obj, "position");
|
|
@@ -301,9 +311,9 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
301
311
|
this.emit("});");
|
|
302
312
|
}
|
|
303
313
|
emitGpuParticleObject(v, obj) {
|
|
304
|
-
const trait = obj.traits
|
|
314
|
+
const trait = findGpuParticleTrait(obj.traits);
|
|
305
315
|
const count = trait?.config?.count || 1e4;
|
|
306
|
-
this.emit(`// GPU Particles (${count})`);
|
|
316
|
+
this.emit(`// GPU Particles (${count}) from @${trait?.name ?? "gpu_particle"}`);
|
|
307
317
|
this.emit(`const ${v}ParticleCount = ${count};`);
|
|
308
318
|
this.emit(`const ${v}ParticleBufA = createStorageBuffer(device, ${v}ParticleCount * 32);`);
|
|
309
319
|
this.emit(`const ${v}ParticleBufB = createStorageBuffer(device, ${v}ParticleCount * 32);`);
|
|
@@ -396,7 +406,7 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
396
406
|
emitComputeShaders(composition) {
|
|
397
407
|
const gpuObjs = (composition.objects || []).filter(
|
|
398
408
|
(o) => o.traits?.some(
|
|
399
|
-
(t) => t.name
|
|
409
|
+
(t) => isGpuParticleTraitName(t.name) || t.name === "gpu_physics" || t.name === "compute"
|
|
400
410
|
)
|
|
401
411
|
);
|
|
402
412
|
if (gpuObjs.length === 0) return;
|
|
@@ -404,8 +414,8 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
404
414
|
for (const obj of gpuObjs) {
|
|
405
415
|
const v = this.sanitizeName(obj.name);
|
|
406
416
|
const traits = obj.traits || [];
|
|
407
|
-
if (traits.some((t) => t.name
|
|
408
|
-
const count = traits
|
|
417
|
+
if (traits.some((t) => isGpuParticleTraitName(t.name))) {
|
|
418
|
+
const count = findGpuParticleTrait(traits)?.config?.count || 1e4;
|
|
409
419
|
this.emit(
|
|
410
420
|
`const ${v}ParticleCompute = device.createComputePipeline({ layout: "auto", compute: { module: device.createShaderModule({ code: WGSL_PARTICLE_COMPUTE }), entryPoint: "cs_particle_update" } });`
|
|
411
421
|
);
|
|
@@ -450,7 +460,7 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
450
460
|
this.emit("struct FIn { @location(0) wNorm: vec3<f32>, @location(1) wPos: vec3<f32> };");
|
|
451
461
|
this.emit("@fragment fn fs_main(i: FIn) -> @location(0) vec4<f32> {");
|
|
452
462
|
this.emit(" let N = normalize(i.wNorm); let L = normalize(vec3<f32>(1.0, 2.0, 1.5));");
|
|
453
|
-
this.emit(" let d = max(dot(N, L), 0.0) * (1.0 - mat.rm
|
|
463
|
+
this.emit(" let d = max(dot(N, L), 0.0) * (1.0 - mat.rm[0] * 0.5);");
|
|
454
464
|
this.emit(" return vec4<f32>(mat.color.rgb * (0.15 + d), mat.color.a); }`;");
|
|
455
465
|
this.emit("");
|
|
456
466
|
this.emit("const WGSL_SPLAT = /* wgsl */`");
|
|
@@ -466,7 +476,7 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
466
476
|
);
|
|
467
477
|
this.emit(" var q = array<vec2<f32>,4>(vec2(-1,-1),vec2(1,-1),vec2(-1,1),vec2(1,1));");
|
|
468
478
|
this.emit(
|
|
469
|
-
" var o: SO; let s = splats[ii]; o.p = vec4<f32>(s.center.xy + q[vi]*0.01, s.center
|
|
479
|
+
" var o: SO; let s = splats[ii]; o.p = vec4<f32>(s.center.xy + q[vi]*0.01, s.center[2], 1.0);"
|
|
470
480
|
);
|
|
471
481
|
this.emit(" o.c = vec4<f32>(s.sh, s.opacity); o.uv = q[vi]; return o; }");
|
|
472
482
|
this.emit("@fragment fn fs_splat(i: SO) -> @location(0) vec4<f32> {");
|
|
@@ -498,8 +508,8 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
498
508
|
this.emit(
|
|
499
509
|
"@compute @workgroup_size(64) fn cs_particle_update(@builtin(global_invocation_id) gid: vec3<u32>) {"
|
|
500
510
|
);
|
|
501
|
-
this.emit(" let i = gid
|
|
502
|
-
this.emit(" p.vel
|
|
511
|
+
this.emit(" let i = gid[0]; if (i >= arrayLength(&pin)) { return; } var p = pin[i];");
|
|
512
|
+
this.emit(" p.vel[1] -= 9.81 * dt; p.pos += p.vel * dt; p.life -= dt;");
|
|
503
513
|
this.emit(
|
|
504
514
|
" if (p.life <= 0.0) { p.pos = vec3(0.0); p.vel = vec3(0.0, 5.0, 0.0); p.life = 2.0; }"
|
|
505
515
|
);
|
|
@@ -512,10 +522,10 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
512
522
|
this.emit(
|
|
513
523
|
"@compute @workgroup_size(64) fn cs_physics_step(@builtin(global_invocation_id) gid: vec3<u32>) {"
|
|
514
524
|
);
|
|
515
|
-
this.emit(" let i = gid
|
|
516
|
-
this.emit(" b.vel
|
|
525
|
+
this.emit(" let i = gid[0]; if (i >= arrayLength(&bodies)) { return; } var b = bodies[i];");
|
|
526
|
+
this.emit(" b.vel[1] -= 9.81 * dt; b.pos += b.vel * dt;");
|
|
517
527
|
this.emit(
|
|
518
|
-
" if (b.pos
|
|
528
|
+
" if (b.pos[1] < 0.0) { b.pos[1] = 0.0; b.vel[1] = -b.vel[1] * 0.6; } bodies[i] = b; }`;"
|
|
519
529
|
);
|
|
520
530
|
this.emit("");
|
|
521
531
|
}
|
|
@@ -531,14 +541,14 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
531
541
|
this.emit("const enc = device.createCommandEncoder();");
|
|
532
542
|
const gpuObjs = (composition.objects || []).filter(
|
|
533
543
|
(o) => o.traits?.some(
|
|
534
|
-
(t) => t.name
|
|
544
|
+
(t) => isGpuParticleTraitName(t.name) || t.name === "gpu_physics" || t.name === "compute"
|
|
535
545
|
)
|
|
536
546
|
);
|
|
537
547
|
if (gpuObjs.length > 0 && this.options.enableCompute) {
|
|
538
548
|
this.emit("const cp = enc.beginComputePass();");
|
|
539
549
|
for (const obj of gpuObjs) {
|
|
540
550
|
const v = this.sanitizeName(obj.name);
|
|
541
|
-
if (obj.traits?.some((t) => t.name
|
|
551
|
+
if (obj.traits?.some((t) => isGpuParticleTraitName(t.name))) {
|
|
542
552
|
this.emit(
|
|
543
553
|
`cp.setPipeline(${v}ParticleCompute); cp.dispatchWorkgroups(${v}ComputeDispatches);`
|
|
544
554
|
);
|
|
@@ -584,7 +594,7 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
584
594
|
this.emit(`rp.setPipeline(${v}SplatPipeline); rp.draw(4, ${v}SplatCount.value);`);
|
|
585
595
|
} else if (traits.some((t) => t.name === "point_cloud")) {
|
|
586
596
|
this.emit(`rp.setPipeline(${v}PointPipeline); rp.draw(${v}PointCount.value);`);
|
|
587
|
-
} else if (traits.some((t) => t.name
|
|
597
|
+
} else if (traits.some((t) => isGpuParticleTraitName(t.name))) {
|
|
588
598
|
this.emit(
|
|
589
599
|
`rp.setPipeline(${v}ParticlePipeline); rp.setVertexBuffer(0, ${v}ParticleBufA); rp.draw(${v}ParticleCount);`
|
|
590
600
|
);
|
|
@@ -658,5 +668,5 @@ var init_WebGPUCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
658
668
|
|
|
659
669
|
exports.WebGPUCompiler_exports = WebGPUCompiler_exports;
|
|
660
670
|
exports.init_WebGPUCompiler = init_WebGPUCompiler;
|
|
661
|
-
//# sourceMappingURL=chunk-
|
|
662
|
-
//# sourceMappingURL=chunk-
|
|
671
|
+
//# sourceMappingURL=chunk-H3MGK7TX.cjs.map
|
|
672
|
+
//# sourceMappingURL=chunk-H3MGK7TX.cjs.map
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
4
|
+
var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
|
|
5
5
|
|
|
6
6
|
// src/compiler/TraitCompositionCompiler.ts
|
|
7
|
-
|
|
7
|
+
chunkRMHC2VG7_cjs.init_AgentRBAC();
|
|
8
|
+
chunkRMHC2VG7_cjs.init_CompilerBase();
|
|
9
|
+
chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
|
|
8
10
|
var CompositionConflictError = class extends Error {
|
|
9
11
|
constructor(traitA, traitB, conflictKey) {
|
|
10
12
|
super(
|
|
@@ -61,12 +63,12 @@ var TraitCompositionCompiler = class {
|
|
|
61
63
|
*/
|
|
62
64
|
validateAccess(agentToken) {
|
|
63
65
|
if (!agentToken) return;
|
|
64
|
-
const rbac =
|
|
66
|
+
const rbac = chunkRMHC2VG7_cjs.getRBAC();
|
|
65
67
|
const decision = rbac.checkAccess({
|
|
66
68
|
token: agentToken,
|
|
67
|
-
resourceType:
|
|
69
|
+
resourceType: "ast" /* AST */,
|
|
68
70
|
operation: "read",
|
|
69
|
-
expectedWorkflowStep:
|
|
71
|
+
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
70
72
|
});
|
|
71
73
|
if (!decision.allowed) {
|
|
72
74
|
throw new UnauthorizedTraitCompositionAccessError(decision, "TraitCompositionCompiler");
|
|
@@ -81,12 +83,12 @@ var TraitCompositionCompiler = class {
|
|
|
81
83
|
if (!handler) throw new MissingComponentError(decl.name, name);
|
|
82
84
|
return { name, handler };
|
|
83
85
|
});
|
|
84
|
-
if (
|
|
86
|
+
if (chunk5S7RKFGR_cjs.authorityWeight(
|
|
85
87
|
decl.provenance?.context?.authorityLevel ?? 0
|
|
86
88
|
) < 100) {
|
|
87
89
|
this.detectConflicts(handlers);
|
|
88
90
|
}
|
|
89
|
-
const semiring = new
|
|
91
|
+
const semiring = new chunk5S7RKFGR_cjs.ProvenanceSemiring();
|
|
90
92
|
const applications = [];
|
|
91
93
|
for (const { name, handler } of handlers) {
|
|
92
94
|
let configAccumulator = {};
|
|
@@ -152,15 +154,9 @@ var TraitCompositionCompiler = class {
|
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
};
|
|
155
|
-
var UnauthorizedTraitCompositionAccessError = class extends
|
|
157
|
+
var UnauthorizedTraitCompositionAccessError = class extends chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError {
|
|
156
158
|
constructor(decision, compilerName) {
|
|
157
|
-
super(
|
|
158
|
-
`[${compilerName}] Unauthorized access: ${decision.reason || "Access denied"}
|
|
159
|
-
Agent Role: ${decision.agentRole || "unknown"}
|
|
160
|
-
Required Permission: ${decision.requiredPermission || "unknown"}`
|
|
161
|
-
);
|
|
162
|
-
this.decision = decision;
|
|
163
|
-
this.compilerName = compilerName;
|
|
159
|
+
super(decision, "trait composition", compilerName);
|
|
164
160
|
this.name = "UnauthorizedTraitCompositionAccessError";
|
|
165
161
|
}
|
|
166
162
|
};
|
|
@@ -169,5 +165,5 @@ exports.CompositionConflictError = CompositionConflictError;
|
|
|
169
165
|
exports.MissingComponentError = MissingComponentError;
|
|
170
166
|
exports.TraitCompositionCompiler = TraitCompositionCompiler;
|
|
171
167
|
exports.UnauthorizedTraitCompositionAccessError = UnauthorizedTraitCompositionAccessError;
|
|
172
|
-
//# sourceMappingURL=chunk-
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
168
|
+
//# sourceMappingURL=chunk-H5DZIHJP.cjs.map
|
|
169
|
+
//# sourceMappingURL=chunk-H5DZIHJP.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkHGVXZDSK_cjs = require('./chunk-HGVXZDSK.cjs');
|
|
4
|
+
var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
|
|
5
|
+
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
6
|
+
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
8
8
|
// src/compiler/VRChatCompiler.ts
|
|
9
9
|
var VRChatCompiler_exports = {};
|
|
10
|
-
|
|
10
|
+
chunkHCCQLAA4_cjs.__export(VRChatCompiler_exports, {
|
|
11
11
|
VRChatCompiler: () => exports.VRChatCompiler,
|
|
12
12
|
compileToVRChat: () => compileToVRChat
|
|
13
13
|
});
|
|
@@ -16,11 +16,11 @@ function compileToVRChat(composition, options) {
|
|
|
16
16
|
return Promise.resolve(compiler.compile(composition, ""));
|
|
17
17
|
}
|
|
18
18
|
exports.VRChatCompiler = void 0;
|
|
19
|
-
var init_VRChatCompiler =
|
|
19
|
+
var init_VRChatCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
20
20
|
"src/compiler/VRChatCompiler.ts"() {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.VRChatCompiler = class extends
|
|
21
|
+
chunkRMHC2VG7_cjs.init_CompilerBase();
|
|
22
|
+
chunkHGVXZDSK_cjs.init_DomainBlockCompilerMixin();
|
|
23
|
+
exports.VRChatCompiler = class extends chunkRMHC2VG7_cjs.CompilerBase {
|
|
24
24
|
constructor(options = {}) {
|
|
25
25
|
super();
|
|
26
26
|
this.compilerName = "VRChatCompiler";
|
|
@@ -28,20 +28,25 @@ var init_VRChatCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
28
28
|
this.indentLevel = 0;
|
|
29
29
|
this.udonScripts = /* @__PURE__ */ new Map();
|
|
30
30
|
this.interactableObjects = [];
|
|
31
|
+
this.worldIdCounter = 0;
|
|
32
|
+
const outputFormat = options.outputFormat ?? (options.useUdonSharp === false ? "udon-assembly" : "udonsharp-csharp");
|
|
31
33
|
this.options = {
|
|
32
34
|
namespace: options.namespace || "HoloWorld",
|
|
33
35
|
className: options.className || "GeneratedWorld",
|
|
34
36
|
worldName: options.worldName || "HoloScript World",
|
|
35
37
|
indent: options.indent || " ",
|
|
36
38
|
sdkVersion: options.sdkVersion || "3.5",
|
|
37
|
-
|
|
39
|
+
outputFormat,
|
|
40
|
+
useUdonSharp: options.useUdonSharp ?? outputFormat === "udonsharp-csharp",
|
|
41
|
+
provenanceHash: options.provenanceHash ?? ""
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
44
|
getRequiredCapability() {
|
|
41
|
-
return
|
|
45
|
+
return ans.ANSCapabilityPath.VRCHAT;
|
|
42
46
|
}
|
|
43
47
|
compile(composition, agentToken, outputPath) {
|
|
44
48
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
49
|
+
this.assertSupportedOutputFormat();
|
|
45
50
|
this.lines = [];
|
|
46
51
|
this.udonScripts.clear();
|
|
47
52
|
this.interactableObjects = [];
|
|
@@ -51,12 +56,22 @@ var init_VRChatCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
51
56
|
const prefabHierarchy = this.generatePrefabHierarchy(composition);
|
|
52
57
|
const worldDescriptor = this.generateWorldDescriptor(composition);
|
|
53
58
|
return {
|
|
59
|
+
outputFormat: this.options.outputFormat,
|
|
54
60
|
mainScript,
|
|
55
61
|
udonScripts: this.udonScripts,
|
|
56
62
|
prefabHierarchy,
|
|
57
63
|
worldDescriptor
|
|
58
64
|
};
|
|
59
65
|
}
|
|
66
|
+
assertSupportedOutputFormat() {
|
|
67
|
+
if (this.options.outputFormat === "udonsharp-csharp" && this.options.useUdonSharp) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const requested = this.options.outputFormat === "udonsharp-csharp" ? "non-UdonSharp Udon output" : this.options.outputFormat;
|
|
71
|
+
throw new Error(
|
|
72
|
+
`VRChat ${requested} output is gated: founder direction is Byte/Udon output, but the artifact contract must be confirmed before implementation (Udon Assembly text vs serialized Udon bytecode asset). The current compiler only emits legacy UdonSharp C# with outputFormat: 'udonsharp-csharp' and useUdonSharp: true.`
|
|
73
|
+
);
|
|
74
|
+
}
|
|
60
75
|
generateMainScript(composition) {
|
|
61
76
|
this.lines = [];
|
|
62
77
|
this.indentLevel = 0;
|
|
@@ -66,6 +81,9 @@ var init_VRChatCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
66
81
|
);
|
|
67
82
|
this.emit(`// VRChat SDK: ${this.options.sdkVersion}`);
|
|
68
83
|
this.emit("// Do not edit manually \xE2\u20AC\u201D regenerate from .holo source");
|
|
84
|
+
if (this.options.provenanceHash) {
|
|
85
|
+
this.emit(`// Provenance Hash: ${this.options.provenanceHash}`);
|
|
86
|
+
}
|
|
69
87
|
this.emit("");
|
|
70
88
|
this.emit("using UdonSharp;");
|
|
71
89
|
this.emit("using UnityEngine;");
|
|
@@ -167,59 +185,59 @@ var init_VRChatCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
167
185
|
this.emit("");
|
|
168
186
|
this.emit("// === v4.2 Domain Blocks (VRChat/Unity) ===");
|
|
169
187
|
let blockIdx = 0;
|
|
170
|
-
const compiled =
|
|
188
|
+
const compiled = chunkHGVXZDSK_cjs.compileDomainBlocks(
|
|
171
189
|
domainBlocks,
|
|
172
190
|
{
|
|
173
191
|
material: (block) => {
|
|
174
|
-
const mat =
|
|
175
|
-
return
|
|
192
|
+
const mat = chunkHGVXZDSK_cjs.compileMaterialBlock(block);
|
|
193
|
+
return chunkHGVXZDSK_cjs.materialToVRChat(mat, `db${blockIdx++}`);
|
|
176
194
|
},
|
|
177
195
|
physics: (block) => {
|
|
178
|
-
const phys =
|
|
179
|
-
return
|
|
196
|
+
const phys = chunkHGVXZDSK_cjs.compilePhysicsBlock(block);
|
|
197
|
+
return chunkHGVXZDSK_cjs.physicsToUnity(phys, `db${blockIdx++}`);
|
|
180
198
|
},
|
|
181
199
|
vfx: (block) => {
|
|
182
|
-
const ps =
|
|
183
|
-
return
|
|
200
|
+
const ps = chunkHGVXZDSK_cjs.compileParticleBlock(block);
|
|
201
|
+
return chunkHGVXZDSK_cjs.particlesToUnity(ps, `db${blockIdx++}`);
|
|
184
202
|
},
|
|
185
203
|
postfx: (block) => {
|
|
186
|
-
const pp =
|
|
187
|
-
return
|
|
204
|
+
const pp = chunkHGVXZDSK_cjs.compilePostProcessingBlock(block);
|
|
205
|
+
return chunkHGVXZDSK_cjs.postProcessingToUnity(pp);
|
|
188
206
|
},
|
|
189
207
|
audio: (block) => {
|
|
190
|
-
const audio =
|
|
191
|
-
return
|
|
208
|
+
const audio = chunkHGVXZDSK_cjs.compileAudioSourceBlock(block);
|
|
209
|
+
return chunkHGVXZDSK_cjs.audioSourceToUnity(audio, `db${blockIdx++}`);
|
|
192
210
|
},
|
|
193
211
|
weather: (block) => {
|
|
194
|
-
const weather =
|
|
195
|
-
return
|
|
212
|
+
const weather = chunkHGVXZDSK_cjs.compileWeatherBlock(block);
|
|
213
|
+
return chunkHGVXZDSK_cjs.weatherToUnity(weather);
|
|
196
214
|
},
|
|
197
215
|
narrative: (block) => {
|
|
198
|
-
const narr =
|
|
199
|
-
return
|
|
216
|
+
const narr = chunkHGVXZDSK_cjs.compileNarrativeBlock(block);
|
|
217
|
+
return chunkHGVXZDSK_cjs.narrativeToVRChat(narr);
|
|
200
218
|
},
|
|
201
219
|
payment: (block) => {
|
|
202
|
-
const pay =
|
|
203
|
-
return
|
|
220
|
+
const pay = chunkHGVXZDSK_cjs.compilePaymentBlock(block);
|
|
221
|
+
return chunkHGVXZDSK_cjs.paymentToVRChat(pay);
|
|
204
222
|
},
|
|
205
223
|
healthcare: (block) => {
|
|
206
|
-
const h =
|
|
207
|
-
return
|
|
224
|
+
const h = chunkHGVXZDSK_cjs.compileHealthcareBlock(block);
|
|
225
|
+
return chunkHGVXZDSK_cjs.healthcareToVRChat(h);
|
|
208
226
|
},
|
|
209
227
|
robotics: (block) => {
|
|
210
|
-
const r =
|
|
211
|
-
return
|
|
228
|
+
const r = chunkHGVXZDSK_cjs.compileRoboticsBlock(block);
|
|
229
|
+
return chunkHGVXZDSK_cjs.roboticsToVRChat(r);
|
|
212
230
|
},
|
|
213
|
-
iot: (block) =>
|
|
214
|
-
dataviz: (block) =>
|
|
215
|
-
education: (block) =>
|
|
216
|
-
music: (block) =>
|
|
217
|
-
architecture: (block) =>
|
|
218
|
-
web3: (block) =>
|
|
219
|
-
procedural: (block) =>
|
|
220
|
-
rendering: (block) =>
|
|
221
|
-
navigation: (block) =>
|
|
222
|
-
input: (block) =>
|
|
231
|
+
iot: (block) => chunkHGVXZDSK_cjs.iotToVRChat(chunkHGVXZDSK_cjs.compileIoTBlock(block)),
|
|
232
|
+
dataviz: (block) => chunkHGVXZDSK_cjs.datavizToVRChat(chunkHGVXZDSK_cjs.compileDataVizBlock(block)),
|
|
233
|
+
education: (block) => chunkHGVXZDSK_cjs.educationToVRChat(chunkHGVXZDSK_cjs.compileEducationBlock(block)),
|
|
234
|
+
music: (block) => chunkHGVXZDSK_cjs.musicToVRChat(chunkHGVXZDSK_cjs.compileMusicBlock(block)),
|
|
235
|
+
architecture: (block) => chunkHGVXZDSK_cjs.architectureToVRChat(chunkHGVXZDSK_cjs.compileArchitectureBlock(block)),
|
|
236
|
+
web3: (block) => chunkHGVXZDSK_cjs.web3ToVRChat(chunkHGVXZDSK_cjs.compileWeb3Block(block)),
|
|
237
|
+
procedural: (block) => chunkHGVXZDSK_cjs.proceduralToVRChat(chunkHGVXZDSK_cjs.compileProceduralBlock(block)),
|
|
238
|
+
rendering: (block) => chunkHGVXZDSK_cjs.renderingToVRChat(chunkHGVXZDSK_cjs.compileRenderingBlock(block)),
|
|
239
|
+
navigation: (block) => chunkHGVXZDSK_cjs.navigationToVRChat(chunkHGVXZDSK_cjs.compileNavigationBlock(block)),
|
|
240
|
+
input: (block) => chunkHGVXZDSK_cjs.inputToVRChat(chunkHGVXZDSK_cjs.compileInputBlock(block))
|
|
223
241
|
},
|
|
224
242
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "CSharp")}"`
|
|
225
243
|
);
|
|
@@ -512,12 +530,9 @@ var init_VRChatCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
512
530
|
this.emit("");
|
|
513
531
|
}
|
|
514
532
|
generateWorldId() {
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
id += chars[Math.floor(Math.random() * chars.length)];
|
|
519
|
-
}
|
|
520
|
-
return id + "-0000-0000-0000-000000000000";
|
|
533
|
+
const seq = this.worldIdCounter++;
|
|
534
|
+
const hex = seq.toString(16).padStart(8, "0");
|
|
535
|
+
return `${hex}-0000-0000-0000-000000000000`;
|
|
521
536
|
}
|
|
522
537
|
// === Utility Methods ===
|
|
523
538
|
emit(line) {
|
|
@@ -608,5 +623,5 @@ var init_VRChatCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
|
608
623
|
exports.VRChatCompiler_exports = VRChatCompiler_exports;
|
|
609
624
|
exports.compileToVRChat = compileToVRChat;
|
|
610
625
|
exports.init_VRChatCompiler = init_VRChatCompiler;
|
|
611
|
-
//# sourceMappingURL=chunk-
|
|
612
|
-
//# sourceMappingURL=chunk-
|
|
626
|
+
//# sourceMappingURL=chunk-HANL7K2Q.cjs.map
|
|
627
|
+
//# sourceMappingURL=chunk-HANL7K2Q.cjs.map
|
|
@@ -43,14 +43,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
43
|
mod
|
|
44
44
|
));
|
|
45
45
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
47
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
48
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
49
|
-
if (decorator = decorators[i])
|
|
50
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
51
|
-
if (kind && result) __defProp(target, key, result);
|
|
52
|
-
return result;
|
|
53
|
-
};
|
|
54
46
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
55
47
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
56
48
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -67,7 +59,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
67
59
|
});
|
|
68
60
|
|
|
69
61
|
exports.__commonJS = __commonJS;
|
|
70
|
-
exports.__decorateClass = __decorateClass;
|
|
71
62
|
exports.__esm = __esm;
|
|
72
63
|
exports.__export = __export;
|
|
73
64
|
exports.__privateAdd = __privateAdd;
|
|
@@ -79,5 +70,5 @@ exports.__publicField = __publicField;
|
|
|
79
70
|
exports.__require = __require;
|
|
80
71
|
exports.__toCommonJS = __toCommonJS;
|
|
81
72
|
exports.__toESM = __toESM;
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
83
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-HCCQLAA4.cjs.map
|
|
74
|
+
//# sourceMappingURL=chunk-HCCQLAA4.cjs.map
|