@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,21 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
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');
|
|
6
7
|
|
|
7
8
|
// src/compiler/WebGPUCompiler.ts
|
|
8
9
|
var WebGPUCompiler_exports = {};
|
|
9
|
-
|
|
10
|
+
chunkHCCQLAA4_cjs.__export(WebGPUCompiler_exports, {
|
|
10
11
|
WebGPUCompiler: () => exports.WebGPUCompiler
|
|
11
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
|
+
}
|
|
12
19
|
exports.WebGPUCompiler = void 0;
|
|
13
|
-
var init_WebGPUCompiler =
|
|
20
|
+
var init_WebGPUCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
14
21
|
"src/compiler/WebGPUCompiler.ts"() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports.WebGPUCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
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 = chunkEGIZHYJP_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 = chunkEGIZHYJP_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 = chunkEGIZHYJP_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,12 +165,14 @@ var init_WebGPUCompiler = chunkEGIZHYJP_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");
|
|
162
172
|
const [px, py, pz] = Array.isArray(pos) ? pos : [0, 0, 0];
|
|
163
|
-
this.emit(
|
|
173
|
+
this.emit(
|
|
174
|
+
`const ${v}ModelMatrix = createBuffer(device, new Float32Array([1,0,0,0, 0,1,0,0, 0,0,1,0, ${px},${py},${pz},1]), GPUBufferUsage.UNIFORM);`
|
|
175
|
+
);
|
|
164
176
|
} else if (isModel) {
|
|
165
177
|
this.emit(`// WARNING: geometry "model" without source URL \u2014 placeholder cube`);
|
|
166
178
|
this.emitMeshObject(v, obj, "cube");
|
|
@@ -299,9 +311,9 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
299
311
|
this.emit("});");
|
|
300
312
|
}
|
|
301
313
|
emitGpuParticleObject(v, obj) {
|
|
302
|
-
const trait = obj.traits
|
|
314
|
+
const trait = findGpuParticleTrait(obj.traits);
|
|
303
315
|
const count = trait?.config?.count || 1e4;
|
|
304
|
-
this.emit(`// GPU Particles (${count})`);
|
|
316
|
+
this.emit(`// GPU Particles (${count}) from @${trait?.name ?? "gpu_particle"}`);
|
|
305
317
|
this.emit(`const ${v}ParticleCount = ${count};`);
|
|
306
318
|
this.emit(`const ${v}ParticleBufA = createStorageBuffer(device, ${v}ParticleCount * 32);`);
|
|
307
319
|
this.emit(`const ${v}ParticleBufB = createStorageBuffer(device, ${v}ParticleCount * 32);`);
|
|
@@ -394,7 +406,7 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
394
406
|
emitComputeShaders(composition) {
|
|
395
407
|
const gpuObjs = (composition.objects || []).filter(
|
|
396
408
|
(o) => o.traits?.some(
|
|
397
|
-
(t) => t.name
|
|
409
|
+
(t) => isGpuParticleTraitName(t.name) || t.name === "gpu_physics" || t.name === "compute"
|
|
398
410
|
)
|
|
399
411
|
);
|
|
400
412
|
if (gpuObjs.length === 0) return;
|
|
@@ -402,8 +414,8 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
402
414
|
for (const obj of gpuObjs) {
|
|
403
415
|
const v = this.sanitizeName(obj.name);
|
|
404
416
|
const traits = obj.traits || [];
|
|
405
|
-
if (traits.some((t) => t.name
|
|
406
|
-
const count = traits
|
|
417
|
+
if (traits.some((t) => isGpuParticleTraitName(t.name))) {
|
|
418
|
+
const count = findGpuParticleTrait(traits)?.config?.count || 1e4;
|
|
407
419
|
this.emit(
|
|
408
420
|
`const ${v}ParticleCompute = device.createComputePipeline({ layout: "auto", compute: { module: device.createShaderModule({ code: WGSL_PARTICLE_COMPUTE }), entryPoint: "cs_particle_update" } });`
|
|
409
421
|
);
|
|
@@ -448,7 +460,7 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
448
460
|
this.emit("struct FIn { @location(0) wNorm: vec3<f32>, @location(1) wPos: vec3<f32> };");
|
|
449
461
|
this.emit("@fragment fn fs_main(i: FIn) -> @location(0) vec4<f32> {");
|
|
450
462
|
this.emit(" let N = normalize(i.wNorm); let L = normalize(vec3<f32>(1.0, 2.0, 1.5));");
|
|
451
|
-
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);");
|
|
452
464
|
this.emit(" return vec4<f32>(mat.color.rgb * (0.15 + d), mat.color.a); }`;");
|
|
453
465
|
this.emit("");
|
|
454
466
|
this.emit("const WGSL_SPLAT = /* wgsl */`");
|
|
@@ -464,7 +476,7 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
464
476
|
);
|
|
465
477
|
this.emit(" var q = array<vec2<f32>,4>(vec2(-1,-1),vec2(1,-1),vec2(-1,1),vec2(1,1));");
|
|
466
478
|
this.emit(
|
|
467
|
-
" 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);"
|
|
468
480
|
);
|
|
469
481
|
this.emit(" o.c = vec4<f32>(s.sh, s.opacity); o.uv = q[vi]; return o; }");
|
|
470
482
|
this.emit("@fragment fn fs_splat(i: SO) -> @location(0) vec4<f32> {");
|
|
@@ -496,8 +508,8 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
496
508
|
this.emit(
|
|
497
509
|
"@compute @workgroup_size(64) fn cs_particle_update(@builtin(global_invocation_id) gid: vec3<u32>) {"
|
|
498
510
|
);
|
|
499
|
-
this.emit(" let i = gid
|
|
500
|
-
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;");
|
|
501
513
|
this.emit(
|
|
502
514
|
" if (p.life <= 0.0) { p.pos = vec3(0.0); p.vel = vec3(0.0, 5.0, 0.0); p.life = 2.0; }"
|
|
503
515
|
);
|
|
@@ -510,10 +522,10 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
510
522
|
this.emit(
|
|
511
523
|
"@compute @workgroup_size(64) fn cs_physics_step(@builtin(global_invocation_id) gid: vec3<u32>) {"
|
|
512
524
|
);
|
|
513
|
-
this.emit(" let i = gid
|
|
514
|
-
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;");
|
|
515
527
|
this.emit(
|
|
516
|
-
" 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; }`;"
|
|
517
529
|
);
|
|
518
530
|
this.emit("");
|
|
519
531
|
}
|
|
@@ -529,14 +541,14 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
529
541
|
this.emit("const enc = device.createCommandEncoder();");
|
|
530
542
|
const gpuObjs = (composition.objects || []).filter(
|
|
531
543
|
(o) => o.traits?.some(
|
|
532
|
-
(t) => t.name
|
|
544
|
+
(t) => isGpuParticleTraitName(t.name) || t.name === "gpu_physics" || t.name === "compute"
|
|
533
545
|
)
|
|
534
546
|
);
|
|
535
547
|
if (gpuObjs.length > 0 && this.options.enableCompute) {
|
|
536
548
|
this.emit("const cp = enc.beginComputePass();");
|
|
537
549
|
for (const obj of gpuObjs) {
|
|
538
550
|
const v = this.sanitizeName(obj.name);
|
|
539
|
-
if (obj.traits?.some((t) => t.name
|
|
551
|
+
if (obj.traits?.some((t) => isGpuParticleTraitName(t.name))) {
|
|
540
552
|
this.emit(
|
|
541
553
|
`cp.setPipeline(${v}ParticleCompute); cp.dispatchWorkgroups(${v}ComputeDispatches);`
|
|
542
554
|
);
|
|
@@ -582,7 +594,7 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
582
594
|
this.emit(`rp.setPipeline(${v}SplatPipeline); rp.draw(4, ${v}SplatCount.value);`);
|
|
583
595
|
} else if (traits.some((t) => t.name === "point_cloud")) {
|
|
584
596
|
this.emit(`rp.setPipeline(${v}PointPipeline); rp.draw(${v}PointCount.value);`);
|
|
585
|
-
} else if (traits.some((t) => t.name
|
|
597
|
+
} else if (traits.some((t) => isGpuParticleTraitName(t.name))) {
|
|
586
598
|
this.emit(
|
|
587
599
|
`rp.setPipeline(${v}ParticlePipeline); rp.setVertexBuffer(0, ${v}ParticleBufA); rp.draw(${v}ParticleCount);`
|
|
588
600
|
);
|
|
@@ -656,5 +668,5 @@ var init_WebGPUCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
656
668
|
|
|
657
669
|
exports.WebGPUCompiler_exports = WebGPUCompiler_exports;
|
|
658
670
|
exports.init_WebGPUCompiler = init_WebGPUCompiler;
|
|
659
|
-
//# sourceMappingURL=chunk-
|
|
660
|
-
//# sourceMappingURL=chunk-
|
|
671
|
+
//# sourceMappingURL=chunk-H3MGK7TX.cjs.map
|
|
672
|
+
//# sourceMappingURL=chunk-H3MGK7TX.cjs.map
|
|
@@ -1,11 +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
|
-
|
|
8
|
-
|
|
7
|
+
chunkRMHC2VG7_cjs.init_AgentRBAC();
|
|
8
|
+
chunkRMHC2VG7_cjs.init_CompilerBase();
|
|
9
|
+
chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
|
|
9
10
|
var CompositionConflictError = class extends Error {
|
|
10
11
|
constructor(traitA, traitB, conflictKey) {
|
|
11
12
|
super(
|
|
@@ -62,7 +63,7 @@ var TraitCompositionCompiler = class {
|
|
|
62
63
|
*/
|
|
63
64
|
validateAccess(agentToken) {
|
|
64
65
|
if (!agentToken) return;
|
|
65
|
-
const rbac =
|
|
66
|
+
const rbac = chunkRMHC2VG7_cjs.getRBAC();
|
|
66
67
|
const decision = rbac.checkAccess({
|
|
67
68
|
token: agentToken,
|
|
68
69
|
resourceType: "ast" /* AST */,
|
|
@@ -82,10 +83,12 @@ var TraitCompositionCompiler = class {
|
|
|
82
83
|
if (!handler) throw new MissingComponentError(decl.name, name);
|
|
83
84
|
return { name, handler };
|
|
84
85
|
});
|
|
85
|
-
if (
|
|
86
|
+
if (chunk5S7RKFGR_cjs.authorityWeight(
|
|
87
|
+
decl.provenance?.context?.authorityLevel ?? 0
|
|
88
|
+
) < 100) {
|
|
86
89
|
this.detectConflicts(handlers);
|
|
87
90
|
}
|
|
88
|
-
const semiring = new
|
|
91
|
+
const semiring = new chunk5S7RKFGR_cjs.ProvenanceSemiring();
|
|
89
92
|
const applications = [];
|
|
90
93
|
for (const { name, handler } of handlers) {
|
|
91
94
|
let configAccumulator = {};
|
|
@@ -151,15 +154,9 @@ var TraitCompositionCompiler = class {
|
|
|
151
154
|
}
|
|
152
155
|
}
|
|
153
156
|
};
|
|
154
|
-
var UnauthorizedTraitCompositionAccessError = class extends
|
|
157
|
+
var UnauthorizedTraitCompositionAccessError = class extends chunkRMHC2VG7_cjs.UnauthorizedCompilerAccessError {
|
|
155
158
|
constructor(decision, compilerName) {
|
|
156
|
-
super(
|
|
157
|
-
`[${compilerName}] Unauthorized access: ${decision.reason || "Access denied"}
|
|
158
|
-
Agent Role: ${decision.agentRole || "unknown"}
|
|
159
|
-
Required Permission: ${decision.requiredPermission || "unknown"}`
|
|
160
|
-
);
|
|
161
|
-
this.decision = decision;
|
|
162
|
-
this.compilerName = compilerName;
|
|
159
|
+
super(decision, "trait composition", compilerName);
|
|
163
160
|
this.name = "UnauthorizedTraitCompositionAccessError";
|
|
164
161
|
}
|
|
165
162
|
};
|
|
@@ -168,5 +165,5 @@ exports.CompositionConflictError = CompositionConflictError;
|
|
|
168
165
|
exports.MissingComponentError = MissingComponentError;
|
|
169
166
|
exports.TraitCompositionCompiler = TraitCompositionCompiler;
|
|
170
167
|
exports.UnauthorizedTraitCompositionAccessError = UnauthorizedTraitCompositionAccessError;
|
|
171
|
-
//# sourceMappingURL=chunk-
|
|
172
|
-
//# sourceMappingURL=chunk-
|
|
168
|
+
//# sourceMappingURL=chunk-H5DZIHJP.cjs.map
|
|
169
|
+
//# sourceMappingURL=chunk-H5DZIHJP.cjs.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
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');
|
|
6
7
|
|
|
7
8
|
// src/compiler/VRChatCompiler.ts
|
|
8
9
|
var VRChatCompiler_exports = {};
|
|
9
|
-
|
|
10
|
+
chunkHCCQLAA4_cjs.__export(VRChatCompiler_exports, {
|
|
10
11
|
VRChatCompiler: () => exports.VRChatCompiler,
|
|
11
12
|
compileToVRChat: () => compileToVRChat
|
|
12
13
|
});
|
|
@@ -15,12 +16,11 @@ function compileToVRChat(composition, options) {
|
|
|
15
16
|
return Promise.resolve(compiler.compile(composition, ""));
|
|
16
17
|
}
|
|
17
18
|
exports.VRChatCompiler = void 0;
|
|
18
|
-
var init_VRChatCompiler =
|
|
19
|
+
var init_VRChatCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
19
20
|
"src/compiler/VRChatCompiler.ts"() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.VRChatCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
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 = chunkEGIZHYJP_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 = chunkEGIZHYJP_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 = chunkEGIZHYJP_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 = chunkEGIZHYJP_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
|
);
|
|
@@ -375,9 +393,7 @@ var init_VRChatCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
375
393
|
`\xE2\u201D\u0153\xE2\u201D\u20AC\xE2\u201D\u20AC ${this.escapeStringValue(group.name, "CSharp")} (SpatialGroup)`
|
|
376
394
|
);
|
|
377
395
|
for (const child of group.objects || []) {
|
|
378
|
-
lines.push(
|
|
379
|
-
`\xE2\u201D\u201A \xE2\u201D\u201D\xE2\u201D\u20AC\xE2\u201D\u20AC ${this.escapeStringValue(child.name, "CSharp")}`
|
|
380
|
-
);
|
|
396
|
+
lines.push(`\xE2\u201D\u201A \xE2\u201D\u201D\xE2\u201D\u20AC\xE2\u201D\u20AC ${this.escapeStringValue(child.name, "CSharp")}`);
|
|
381
397
|
}
|
|
382
398
|
}
|
|
383
399
|
}
|
|
@@ -514,12 +530,9 @@ var init_VRChatCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
514
530
|
this.emit("");
|
|
515
531
|
}
|
|
516
532
|
generateWorldId() {
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
id += chars[Math.floor(Math.random() * chars.length)];
|
|
521
|
-
}
|
|
522
|
-
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`;
|
|
523
536
|
}
|
|
524
537
|
// === Utility Methods ===
|
|
525
538
|
emit(line) {
|
|
@@ -610,5 +623,5 @@ var init_VRChatCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
610
623
|
exports.VRChatCompiler_exports = VRChatCompiler_exports;
|
|
611
624
|
exports.compileToVRChat = compileToVRChat;
|
|
612
625
|
exports.init_VRChatCompiler = init_VRChatCompiler;
|
|
613
|
-
//# sourceMappingURL=chunk-
|
|
614
|
-
//# sourceMappingURL=chunk-
|
|
626
|
+
//# sourceMappingURL=chunk-HANL7K2Q.cjs.map
|
|
627
|
+
//# sourceMappingURL=chunk-HANL7K2Q.cjs.map
|
|
@@ -34,7 +34,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
34
34
|
}
|
|
35
35
|
return to;
|
|
36
36
|
};
|
|
37
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
38
37
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
39
38
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
40
39
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -44,14 +43,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
44
43
|
mod
|
|
45
44
|
));
|
|
46
45
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
48
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
49
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
50
|
-
if (decorator = decorators[i])
|
|
51
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
52
|
-
if (kind && result) __defProp(target, key, result);
|
|
53
|
-
return result;
|
|
54
|
-
};
|
|
55
46
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
56
47
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
57
48
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -68,7 +59,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
68
59
|
});
|
|
69
60
|
|
|
70
61
|
exports.__commonJS = __commonJS;
|
|
71
|
-
exports.__decorateClass = __decorateClass;
|
|
72
62
|
exports.__esm = __esm;
|
|
73
63
|
exports.__export = __export;
|
|
74
64
|
exports.__privateAdd = __privateAdd;
|
|
@@ -77,9 +67,8 @@ exports.__privateMethod = __privateMethod;
|
|
|
77
67
|
exports.__privateSet = __privateSet;
|
|
78
68
|
exports.__privateWrapper = __privateWrapper;
|
|
79
69
|
exports.__publicField = __publicField;
|
|
80
|
-
exports.__reExport = __reExport;
|
|
81
70
|
exports.__require = __require;
|
|
82
71
|
exports.__toCommonJS = __toCommonJS;
|
|
83
72
|
exports.__toESM = __toESM;
|
|
84
|
-
//# sourceMappingURL=chunk-
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-HCCQLAA4.cjs.map
|
|
74
|
+
//# sourceMappingURL=chunk-HCCQLAA4.cjs.map
|