@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,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
|
|
4
|
+
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/compiler/DomainBlockCompilerMixin.ts
|
|
7
7
|
function esc(value, target) {
|
|
8
|
-
return
|
|
8
|
+
return chunkRMHC2VG7_cjs.escapeStringValue(value, target);
|
|
9
9
|
}
|
|
10
10
|
function compileMaterialBlock(block) {
|
|
11
11
|
const type = block.keyword === "unlit_material" ? "unlit" : block.keyword === "shader" ? "shader" : "pbr";
|
|
@@ -2153,7 +2153,9 @@ function paymentToR3F(paywall) {
|
|
|
2153
2153
|
lines.push(` description: "${paywall.description}",`);
|
|
2154
2154
|
}
|
|
2155
2155
|
if (paywall.gatedContent && paywall.gatedContent.length > 0) {
|
|
2156
|
-
lines.push(
|
|
2156
|
+
lines.push(
|
|
2157
|
+
` gatedContent: [${paywall.gatedContent.map((g) => `"${esc(g, "TypeScript")}"`).join(", ")}],`
|
|
2158
|
+
);
|
|
2157
2159
|
}
|
|
2158
2160
|
if (paywall.revenueSplit) {
|
|
2159
2161
|
lines.push(
|
|
@@ -2256,13 +2258,17 @@ function healthcareToR3F(healthcare) {
|
|
|
2256
2258
|
);
|
|
2257
2259
|
}
|
|
2258
2260
|
if (healthcare.vitalSigns) {
|
|
2259
|
-
lines.push(
|
|
2261
|
+
lines.push(
|
|
2262
|
+
` vitalSigns: [${healthcare.vitalSigns.map((v) => `"${esc(v, "TypeScript")}"`).join(", ")}],`
|
|
2263
|
+
);
|
|
2260
2264
|
}
|
|
2261
2265
|
if (healthcare.alertThresholds) {
|
|
2262
2266
|
lines.push(` alertThresholds: ${JSON.stringify(healthcare.alertThresholds)},`);
|
|
2263
2267
|
}
|
|
2264
2268
|
if (healthcare.procedureSteps) {
|
|
2265
|
-
lines.push(
|
|
2269
|
+
lines.push(
|
|
2270
|
+
` steps: [${healthcare.procedureSteps.map((s) => `"${esc(s, "TypeScript")}"`).join(", ")}],`
|
|
2271
|
+
);
|
|
2266
2272
|
}
|
|
2267
2273
|
lines.push("};");
|
|
2268
2274
|
return lines.join("\n");
|
|
@@ -2536,7 +2542,7 @@ function roboticsToGodot(robotics) {
|
|
|
2536
2542
|
);
|
|
2537
2543
|
}
|
|
2538
2544
|
lines.push(" current_angle = angle");
|
|
2539
|
-
lines.push(" rotation
|
|
2545
|
+
lines.push(" rotation[0] = angle");
|
|
2540
2546
|
lines.push(" joint_position_changed.emit(angle)");
|
|
2541
2547
|
}
|
|
2542
2548
|
return lines.join("\n");
|
|
@@ -2620,7 +2626,9 @@ function iotToR3F(iot) {
|
|
|
2620
2626
|
if (iot.deviceType) lines.push(` deviceType: "${iot.deviceType}",`);
|
|
2621
2627
|
if (iot.protocol) lines.push(` protocol: "${esc(iot.protocol, "TypeScript")}",`);
|
|
2622
2628
|
if (iot.telemetryFields)
|
|
2623
|
-
lines.push(
|
|
2629
|
+
lines.push(
|
|
2630
|
+
` telemetryFields: [${iot.telemetryFields.map((f) => `"${esc(f, "TypeScript")}"`).join(", ")}],`
|
|
2631
|
+
);
|
|
2624
2632
|
if (iot.updateInterval) lines.push(` updateInterval: ${iot.updateInterval},`);
|
|
2625
2633
|
if (iot.twinModel) lines.push(` twinModel: "${esc(iot.twinModel, "TypeScript")}",`);
|
|
2626
2634
|
lines.push("};");
|
|
@@ -2656,7 +2664,8 @@ function iotToGodot(iot) {
|
|
|
2656
2664
|
lines.push(
|
|
2657
2665
|
`@export var telemetry_fields: PackedStringArray = [${iot.telemetryFields.map((f) => `"${esc(f, "GDScript")}"`).join(", ")}]`
|
|
2658
2666
|
);
|
|
2659
|
-
if (iot.twinModel)
|
|
2667
|
+
if (iot.twinModel)
|
|
2668
|
+
lines.push(`@export var twin_model: String = "${esc(iot.twinModel, "GDScript")}"`);
|
|
2660
2669
|
lines.push("");
|
|
2661
2670
|
lines.push("signal telemetry_received(field: String, value: float)");
|
|
2662
2671
|
lines.push("signal connection_changed(connected: bool)");
|
|
@@ -2691,14 +2700,18 @@ function compileDataVizBlock(block) {
|
|
|
2691
2700
|
const props = block.properties || {};
|
|
2692
2701
|
let axes;
|
|
2693
2702
|
if (props.x_axis || props.y_axis || props.z_axis) {
|
|
2694
|
-
axes =
|
|
2703
|
+
axes = [
|
|
2704
|
+
String(props.x_axis ?? ""),
|
|
2705
|
+
String(props.y_axis ?? ""),
|
|
2706
|
+
String(props.z_axis ?? "")
|
|
2707
|
+
];
|
|
2695
2708
|
} else if (props.axes && typeof props.axes === "object") {
|
|
2696
2709
|
const a = props.axes;
|
|
2697
|
-
axes =
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2710
|
+
axes = [
|
|
2711
|
+
String(a[0] ?? ""),
|
|
2712
|
+
String(a[1] ?? ""),
|
|
2713
|
+
String(a[2] ?? "")
|
|
2714
|
+
];
|
|
2702
2715
|
}
|
|
2703
2716
|
let dimensions;
|
|
2704
2717
|
if (props.width != null || props.height != null) {
|
|
@@ -2836,11 +2849,15 @@ function educationToR3F(edu) {
|
|
|
2836
2849
|
lines.push(` type: "${edu.keyword}",`);
|
|
2837
2850
|
if (edu.difficulty) lines.push(` difficulty: "${esc(edu.difficulty, "TypeScript")}",`);
|
|
2838
2851
|
if (edu.objectives)
|
|
2839
|
-
lines.push(
|
|
2852
|
+
lines.push(
|
|
2853
|
+
` objectives: [${edu.objectives.map((o) => `"${esc(o, "TypeScript")}"`).join(", ")}],`
|
|
2854
|
+
);
|
|
2840
2855
|
if (edu.duration) lines.push(` duration: ${edu.duration},`);
|
|
2841
2856
|
if (edu.questions) lines.push(` questions: ${JSON.stringify(edu.questions)},`);
|
|
2842
2857
|
if (edu.prerequisites)
|
|
2843
|
-
lines.push(
|
|
2858
|
+
lines.push(
|
|
2859
|
+
` prerequisites: [${edu.prerequisites.map((p) => `"${esc(p, "TypeScript")}"`).join(", ")}],`
|
|
2860
|
+
);
|
|
2844
2861
|
lines.push("};");
|
|
2845
2862
|
return lines.join("\n");
|
|
2846
2863
|
}
|
|
@@ -2850,7 +2867,8 @@ function educationToUnity(edu) {
|
|
|
2850
2867
|
lines.push(`// Education: ${edu.name}`);
|
|
2851
2868
|
lines.push(`public class ${safeName}Education : MonoBehaviour {`);
|
|
2852
2869
|
lines.push(` public string contentType = "${esc(edu.keyword, "CSharp")}";`);
|
|
2853
|
-
if (edu.difficulty)
|
|
2870
|
+
if (edu.difficulty)
|
|
2871
|
+
lines.push(` public string difficulty = "${esc(edu.difficulty, "CSharp")}";`);
|
|
2854
2872
|
if (edu.duration) lines.push(` public int durationMinutes = ${edu.duration};`);
|
|
2855
2873
|
if (edu.objectives)
|
|
2856
2874
|
lines.push(
|
|
@@ -2866,7 +2884,8 @@ function educationToGodot(edu) {
|
|
|
2866
2884
|
lines.push("extends Node");
|
|
2867
2885
|
lines.push("");
|
|
2868
2886
|
lines.push(`@export var content_type: String = "${esc(edu.keyword, "GDScript")}"`);
|
|
2869
|
-
if (edu.difficulty)
|
|
2887
|
+
if (edu.difficulty)
|
|
2888
|
+
lines.push(`@export var difficulty: String = "${esc(edu.difficulty, "GDScript")}"`);
|
|
2870
2889
|
if (edu.duration) lines.push(`@export var duration_minutes: int = ${edu.duration}`);
|
|
2871
2890
|
if (edu.objectives)
|
|
2872
2891
|
lines.push(
|
|
@@ -2939,7 +2958,8 @@ function musicToR3F(music) {
|
|
|
2939
2958
|
if (music.bpm) lines.push(` bpm: ${music.bpm},`);
|
|
2940
2959
|
if (music.timeSignature) lines.push(` timeSignature: [${music.timeSignature.join(", ")}],`);
|
|
2941
2960
|
if (music.key) lines.push(` key: "${esc(music.key, "TypeScript")}",`);
|
|
2942
|
-
if (music.effects)
|
|
2961
|
+
if (music.effects)
|
|
2962
|
+
lines.push(` effects: [${music.effects.map((e) => `"${esc(e, "TypeScript")}"`).join(", ")}],`);
|
|
2943
2963
|
if (music.pattern) lines.push(` pattern: "${esc(music.pattern, "TypeScript")}",`);
|
|
2944
2964
|
if (music.bars) lines.push(` bars: ${music.bars},`);
|
|
2945
2965
|
lines.push("};");
|
|
@@ -3130,9 +3150,12 @@ function web3ToR3F(web3) {
|
|
|
3130
3150
|
lines.push(` type: "${web3.keyword}",`);
|
|
3131
3151
|
if (web3.standard) lines.push(` standard: "${web3.standard}",`);
|
|
3132
3152
|
if (web3.network) lines.push(` network: "${web3.network}",`);
|
|
3133
|
-
if (web3.contractAddress)
|
|
3153
|
+
if (web3.contractAddress)
|
|
3154
|
+
lines.push(` contractAddress: "${esc(web3.contractAddress, "TypeScript")}",`);
|
|
3134
3155
|
if (web3.functions)
|
|
3135
|
-
lines.push(
|
|
3156
|
+
lines.push(
|
|
3157
|
+
` functions: [${web3.functions.map((f) => `"${esc(f, "TypeScript")}"`).join(", ")}],`
|
|
3158
|
+
);
|
|
3136
3159
|
if (web3.supply) lines.push(` supply: ${web3.supply},`);
|
|
3137
3160
|
if (web3.votingThreshold) lines.push(` votingThreshold: ${web3.votingThreshold},`);
|
|
3138
3161
|
lines.push("};");
|
|
@@ -3627,6 +3650,130 @@ function inputToUSDA(input) {
|
|
|
3627
3650
|
lines.push("}");
|
|
3628
3651
|
return lines.join("\n");
|
|
3629
3652
|
}
|
|
3653
|
+
function parseGravityVector(props) {
|
|
3654
|
+
const gv = props.gravity_vector ?? props.gravityVector;
|
|
3655
|
+
if (Array.isArray(gv) && gv.length === 3 && gv.every((n) => typeof n === "number")) {
|
|
3656
|
+
return [gv[0], gv[1], gv[2]];
|
|
3657
|
+
}
|
|
3658
|
+
const g = props.gravity;
|
|
3659
|
+
if (typeof g === "number" && !Number.isNaN(g)) {
|
|
3660
|
+
return [0, -Math.abs(g), 0];
|
|
3661
|
+
}
|
|
3662
|
+
return void 0;
|
|
3663
|
+
}
|
|
3664
|
+
function parseSimulationEnvironment(block) {
|
|
3665
|
+
const p = block.properties || {};
|
|
3666
|
+
const env = {};
|
|
3667
|
+
const topG = parseGravityVector(p);
|
|
3668
|
+
if (topG) env.gravity = topG;
|
|
3669
|
+
if (typeof p.skybox === "string" && p.skybox.trim()) {
|
|
3670
|
+
env.skyboxPreset = p.skybox.trim();
|
|
3671
|
+
}
|
|
3672
|
+
const colorRaw = p.skybox_color ?? p.skyboxColor ?? p.background_color;
|
|
3673
|
+
if (colorRaw != null && String(colorRaw).trim() !== "") {
|
|
3674
|
+
env.skyboxColor = String(colorRaw).trim();
|
|
3675
|
+
}
|
|
3676
|
+
const po = p.physics_overrides ?? p.physicsOverrides;
|
|
3677
|
+
if (po && typeof po === "object" && !Array.isArray(po)) {
|
|
3678
|
+
env.physicsOverrides = { ...po };
|
|
3679
|
+
}
|
|
3680
|
+
for (const child of block.children || []) {
|
|
3681
|
+
const c = child;
|
|
3682
|
+
if (c.type !== "DomainBlock") continue;
|
|
3683
|
+
const kw = c.keyword;
|
|
3684
|
+
const cp = c.properties || {};
|
|
3685
|
+
if (kw === "skybox" || kw === "environment_sky" || kw === "hdri") {
|
|
3686
|
+
if (typeof cp.preset === "string" && cp.preset.trim()) env.skyboxPreset = cp.preset.trim();
|
|
3687
|
+
if (cp.color != null && String(cp.color).trim() !== "") env.skyboxColor = String(cp.color).trim();
|
|
3688
|
+
}
|
|
3689
|
+
if (kw === "gravity" || kw === "world_gravity") {
|
|
3690
|
+
const g = parseGravityVector(cp);
|
|
3691
|
+
if (g) env.gravity = g;
|
|
3692
|
+
}
|
|
3693
|
+
if (kw === "physics_world" || kw === "physics_overrides") {
|
|
3694
|
+
env.physicsOverrides = { ...env.physicsOverrides, ...cp };
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
if (!env.gravity && !env.skyboxPreset && !env.skyboxColor && !env.physicsOverrides) {
|
|
3698
|
+
return void 0;
|
|
3699
|
+
}
|
|
3700
|
+
return env;
|
|
3701
|
+
}
|
|
3702
|
+
function compileSimulationBlock(block) {
|
|
3703
|
+
const traits = block.traits || [];
|
|
3704
|
+
let simulationType = "unknown";
|
|
3705
|
+
if (traits.includes("thermal_simulation")) simulationType = "thermal";
|
|
3706
|
+
else if (traits.includes("structural_fem")) simulationType = "structural";
|
|
3707
|
+
else if (traits.includes("hydraulic_pipe")) simulationType = "hydraulic";
|
|
3708
|
+
const overlays = [];
|
|
3709
|
+
for (const child of block.children || []) {
|
|
3710
|
+
const c = child;
|
|
3711
|
+
if (c.traits?.includes("scalar_field_overlay") || c.keyword === "scalar_field_overlay") {
|
|
3712
|
+
const p = c.properties || {};
|
|
3713
|
+
overlays.push({
|
|
3714
|
+
source: p.source ?? "",
|
|
3715
|
+
colormap: p.colormap ?? "turbo",
|
|
3716
|
+
range: p.range ?? [0, 1],
|
|
3717
|
+
opacity: p.opacity ?? 0.7,
|
|
3718
|
+
visible: p.visible ?? true,
|
|
3719
|
+
label: p.label ?? ""
|
|
3720
|
+
});
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
const environment = parseSimulationEnvironment(block);
|
|
3724
|
+
return {
|
|
3725
|
+
keyword: block.keyword,
|
|
3726
|
+
name: block.name,
|
|
3727
|
+
simulationType,
|
|
3728
|
+
traits,
|
|
3729
|
+
config: block.properties || {},
|
|
3730
|
+
environment,
|
|
3731
|
+
overlays
|
|
3732
|
+
};
|
|
3733
|
+
}
|
|
3734
|
+
function simulationEnvironmentToR3FChunks(env) {
|
|
3735
|
+
if (!env) return { visualLines: [], userDataExpr: null };
|
|
3736
|
+
const visualLines = [];
|
|
3737
|
+
if (env.skyboxColor) {
|
|
3738
|
+
const hex = env.skyboxColor.startsWith("#") ? env.skyboxColor : `#${env.skyboxColor}`;
|
|
3739
|
+
visualLines.push(`<color attach="background" args={['${hex}']} />`);
|
|
3740
|
+
}
|
|
3741
|
+
if (env.skyboxPreset) {
|
|
3742
|
+
visualLines.push(
|
|
3743
|
+
`<Environment preset={${JSON.stringify(env.skyboxPreset)}} background />`
|
|
3744
|
+
);
|
|
3745
|
+
}
|
|
3746
|
+
const meta = {};
|
|
3747
|
+
if (env.gravity) meta.gravity = env.gravity;
|
|
3748
|
+
if (env.physicsOverrides && Object.keys(env.physicsOverrides).length > 0) {
|
|
3749
|
+
meta.physicsOverrides = env.physicsOverrides;
|
|
3750
|
+
}
|
|
3751
|
+
const userDataExpr = Object.keys(meta).length > 0 ? JSON.stringify({ holoscript: meta }) : null;
|
|
3752
|
+
return { visualLines, userDataExpr };
|
|
3753
|
+
}
|
|
3754
|
+
function simulationToR3F(sim) {
|
|
3755
|
+
const configExpr = JSON.stringify(sim.config);
|
|
3756
|
+
const { visualLines, userDataExpr } = simulationEnvironmentToR3FChunks(sim.environment);
|
|
3757
|
+
const overlayJSX = sim.overlays.map(
|
|
3758
|
+
(o) => `<ScalarFieldOverlay colormap="${o.colormap}" range={[${o.range.join(", ")}]} opacity={${o.opacity}} visible={${o.visible}} label="${o.label}" />`
|
|
3759
|
+
).join("\n ");
|
|
3760
|
+
const envVisual = visualLines.length > 0 ? `${visualLines.join("\n ")}
|
|
3761
|
+
` : "";
|
|
3762
|
+
const wrapWithGroup = (body) => userDataExpr ? `<group userData={${userDataExpr}}>
|
|
3763
|
+
${body}
|
|
3764
|
+
</group>` : body;
|
|
3765
|
+
if (sim.simulationType === "unknown") {
|
|
3766
|
+
const body = `${envVisual}${overlayJSX}`;
|
|
3767
|
+
return `{/* Simulation: ${sim.name} (unknown solver \u2014 add thermal_simulation, structural_fem, or hydraulic_pipe trait) */}
|
|
3768
|
+
${wrapWithGroup(body)}`;
|
|
3769
|
+
}
|
|
3770
|
+
const providerInner = overlayJSX ? `
|
|
3771
|
+
${overlayJSX}
|
|
3772
|
+
` : "\n ";
|
|
3773
|
+
const provider = `${envVisual}<SimulationProvider type="${sim.simulationType}" config={${configExpr}}>${providerInner}</SimulationProvider>`;
|
|
3774
|
+
return `{/* Simulation: ${sim.name} (${sim.simulationType}) */}
|
|
3775
|
+
${wrapWithGroup(provider)}`;
|
|
3776
|
+
}
|
|
3630
3777
|
function compileDomainBlocks(blocks, handlers, fallback) {
|
|
3631
3778
|
return blocks.map((block) => {
|
|
3632
3779
|
const handler = handlers[block.domain];
|
|
@@ -3652,14 +3799,14 @@ function hexToRGBA(hex, alpha) {
|
|
|
3652
3799
|
];
|
|
3653
3800
|
}
|
|
3654
3801
|
function getRequiredCapability() {
|
|
3655
|
-
return
|
|
3802
|
+
return chunkRMHC2VG7_cjs.ANSCapabilityPath.DOMAIN_BLOCK;
|
|
3656
3803
|
}
|
|
3657
3804
|
exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = void 0;
|
|
3658
|
-
var init_DomainBlockCompilerMixin =
|
|
3805
|
+
var init_DomainBlockCompilerMixin = chunkHCCQLAA4_cjs.__esm({
|
|
3659
3806
|
"src/compiler/DomainBlockCompilerMixin.ts"() {
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY =
|
|
3807
|
+
chunkRMHC2VG7_cjs.init_CompilerBase();
|
|
3808
|
+
chunkRMHC2VG7_cjs.init_ANSNamespace();
|
|
3809
|
+
exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = "/compile/mixin/domain-block";
|
|
3663
3810
|
}
|
|
3664
3811
|
});
|
|
3665
3812
|
|
|
@@ -3696,6 +3843,7 @@ exports.compilePostProcessingBlock = compilePostProcessingBlock;
|
|
|
3696
3843
|
exports.compileProceduralBlock = compileProceduralBlock;
|
|
3697
3844
|
exports.compileRenderingBlock = compileRenderingBlock;
|
|
3698
3845
|
exports.compileRoboticsBlock = compileRoboticsBlock;
|
|
3846
|
+
exports.compileSimulationBlock = compileSimulationBlock;
|
|
3699
3847
|
exports.compileWeatherBlock = compileWeatherBlock;
|
|
3700
3848
|
exports.compileWeb3Block = compileWeb3Block;
|
|
3701
3849
|
exports.datavizToGodot = datavizToGodot;
|
|
@@ -3798,6 +3946,7 @@ exports.roboticsToR3F = roboticsToR3F;
|
|
|
3798
3946
|
exports.roboticsToUSDA = roboticsToUSDA;
|
|
3799
3947
|
exports.roboticsToUnity = roboticsToUnity;
|
|
3800
3948
|
exports.roboticsToVRChat = roboticsToVRChat;
|
|
3949
|
+
exports.simulationToR3F = simulationToR3F;
|
|
3801
3950
|
exports.weatherToAndroidXR = weatherToAndroidXR;
|
|
3802
3951
|
exports.weatherToGodot = weatherToGodot;
|
|
3803
3952
|
exports.weatherToR3F = weatherToR3F;
|
|
@@ -3809,5 +3958,5 @@ exports.web3ToR3F = web3ToR3F;
|
|
|
3809
3958
|
exports.web3ToUSDA = web3ToUSDA;
|
|
3810
3959
|
exports.web3ToUnity = web3ToUnity;
|
|
3811
3960
|
exports.web3ToVRChat = web3ToVRChat;
|
|
3812
|
-
//# sourceMappingURL=chunk-
|
|
3813
|
-
//# sourceMappingURL=chunk-
|
|
3961
|
+
//# sourceMappingURL=chunk-HGVXZDSK.cjs.map
|
|
3962
|
+
//# sourceMappingURL=chunk-HGVXZDSK.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from './chunk-
|
|
2
|
-
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-
|
|
3
|
-
import { init_TraitCompositor, TraitCompositor } from './chunk-
|
|
4
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-
|
|
5
|
-
import { init_CompilerBase,
|
|
1
|
+
import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from './chunk-EKBKLK7P.js';
|
|
2
|
+
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-FXKTYFYA.js';
|
|
3
|
+
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
4
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-W55Z7QIX.js';
|
|
5
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QTPMJRGS.js';
|
|
6
|
+
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
6
7
|
|
|
7
8
|
// src/compiler/GLTFPipeline.ts
|
|
8
9
|
init_TraitCompositor();
|
|
9
10
|
init_R3FCompiler();
|
|
10
11
|
init_CompilerBase();
|
|
11
|
-
init_ANSNamespace();
|
|
12
12
|
init_DomainBlockCompilerMixin();
|
|
13
13
|
|
|
14
14
|
// src/compiler/gltf/extensions.ts
|
|
@@ -871,6 +871,7 @@ var GLTFPipeline = class extends CompilerBase {
|
|
|
871
871
|
this._skins = null;
|
|
872
872
|
this._jointStartIndex = 0;
|
|
873
873
|
this.options = {
|
|
874
|
+
provenanceHash: options.provenanceHash ?? "",
|
|
874
875
|
format: options.format ?? "glb",
|
|
875
876
|
dracoCompression: options.dracoCompression ?? false,
|
|
876
877
|
quantize: options.quantize ?? true,
|
|
@@ -1198,7 +1199,7 @@ var GLTFPipeline = class extends CompilerBase {
|
|
|
1198
1199
|
if (SHARED_COMPILE_BUFFER.length > MAX_RETAINED_BUFFER_SIZE) {
|
|
1199
1200
|
SHARED_COMPILE_BUFFER = new Uint8Array(INITIAL_COMPILE_BUFFER_SIZE);
|
|
1200
1201
|
}
|
|
1201
|
-
const gltf = this.buildDocument(composition
|
|
1202
|
+
const gltf = this.buildDocument(composition, buffer.byteLength);
|
|
1202
1203
|
if (this.options.format === "glb") {
|
|
1203
1204
|
const binary = this.createGLB(gltf, buffer);
|
|
1204
1205
|
this.stats.fileSizeBytes = binary.byteLength;
|
|
@@ -2031,7 +2032,8 @@ var GLTFPipeline = class extends CompilerBase {
|
|
|
2031
2032
|
/**
|
|
2032
2033
|
* Build the glTF JSON document
|
|
2033
2034
|
*/
|
|
2034
|
-
buildDocument(
|
|
2035
|
+
buildDocument(composition, bufferLength) {
|
|
2036
|
+
const name = composition.name;
|
|
2035
2037
|
const gltf = {
|
|
2036
2038
|
asset: {
|
|
2037
2039
|
version: "2.0",
|
|
@@ -2064,6 +2066,24 @@ var GLTFPipeline = class extends CompilerBase {
|
|
|
2064
2066
|
if (this._skins && this._skins.length > 0) {
|
|
2065
2067
|
gltf.skins = this._skins;
|
|
2066
2068
|
}
|
|
2069
|
+
const objectNames = (composition.objects || []).map((o) => o.name);
|
|
2070
|
+
const allTraits = /* @__PURE__ */ new Set();
|
|
2071
|
+
for (const obj of composition.objects || []) {
|
|
2072
|
+
for (const trait of obj.traits || []) {
|
|
2073
|
+
allTraits.add(typeof trait === "string" ? trait : trait.name);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
const groupNames = (composition.spatialGroups || []).map((g) => g.name);
|
|
2077
|
+
gltf.asset.extras = {
|
|
2078
|
+
holoscript: {
|
|
2079
|
+
version: "6.0",
|
|
2080
|
+
compositionName: name,
|
|
2081
|
+
objects: objectNames,
|
|
2082
|
+
traits: [...allTraits],
|
|
2083
|
+
spatialGroups: groupNames,
|
|
2084
|
+
...this.options.provenanceHash ? { provenanceHash: this.options.provenanceHash } : {}
|
|
2085
|
+
}
|
|
2086
|
+
};
|
|
2067
2087
|
declareExtensions(gltf);
|
|
2068
2088
|
if (this.options.format === "gltf") {
|
|
2069
2089
|
gltf.buffers[0].uri = `${name}.bin`;
|
|
@@ -2228,5 +2248,5 @@ function createGLTFPipeline(options) {
|
|
|
2228
2248
|
}
|
|
2229
2249
|
|
|
2230
2250
|
export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture };
|
|
2231
|
-
//# sourceMappingURL=chunk-
|
|
2232
|
-
//# sourceMappingURL=chunk-
|
|
2251
|
+
//# sourceMappingURL=chunk-HRODTEEO.js.map
|
|
2252
|
+
//# sourceMappingURL=chunk-HRODTEEO.js.map
|
|
@@ -418,5 +418,5 @@ var SemanticSceneGraph = class {
|
|
|
418
418
|
var SemanticSceneGraph_default = SemanticSceneGraph;
|
|
419
419
|
|
|
420
420
|
export { SceneGraphGenerator, SemanticSceneGraph, SemanticSceneGraph_default, generateSemanticSceneGraph, generateSemanticSceneGraphObject };
|
|
421
|
-
//# sourceMappingURL=chunk-
|
|
422
|
-
//# sourceMappingURL=chunk-
|
|
421
|
+
//# sourceMappingURL=chunk-HYNTS5CP.js.map
|
|
422
|
+
//# sourceMappingURL=chunk-HYNTS5CP.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkRUXGBKPS_cjs = require('./chunk-RUXGBKPS.cjs');
|
|
4
|
+
var chunkJIYN45TV_cjs = require('./chunk-JIYN45TV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/HoloScriptDebugger.ts
|
|
7
7
|
var HoloScriptDebugger = class {
|
|
@@ -21,8 +21,8 @@ var HoloScriptDebugger = class {
|
|
|
21
21
|
callStack: [],
|
|
22
22
|
breakpoints: []
|
|
23
23
|
};
|
|
24
|
-
this.runtime = runtime || new
|
|
25
|
-
this.parser = new
|
|
24
|
+
this.runtime = runtime || new chunkRUXGBKPS_cjs.HoloScriptRuntime();
|
|
25
|
+
this.parser = new chunkJIYN45TV_cjs.HoloScriptCodeParser();
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Load source code for debugging
|
|
@@ -420,5 +420,5 @@ function createDebugger(runtime) {
|
|
|
420
420
|
|
|
421
421
|
exports.HoloScriptDebugger = HoloScriptDebugger;
|
|
422
422
|
exports.createDebugger = createDebugger;
|
|
423
|
-
//# sourceMappingURL=chunk-
|
|
424
|
-
//# sourceMappingURL=chunk-
|
|
423
|
+
//# sourceMappingURL=chunk-HZCQO4JM.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-HZCQO4JM.cjs.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { init_TraitCompositor, TraitCompositor } from './chunk-
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToPlayCanvas, compilePostProcessingBlock, compileParticleBlock, particlesToPlayCanvas, compilePhysicsBlock, physicsToPlayCanvas, compileMaterialBlock, materialToPlayCanvas } from './chunk-
|
|
3
|
-
import { init_CompilerBase,
|
|
4
|
-
import { __export, __esm } from './chunk-
|
|
1
|
+
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToPlayCanvas, compilePostProcessingBlock, compileParticleBlock, particlesToPlayCanvas, compilePhysicsBlock, physicsToPlayCanvas, compileMaterialBlock, materialToPlayCanvas } from './chunk-W55Z7QIX.js';
|
|
3
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QTPMJRGS.js';
|
|
4
|
+
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
5
|
+
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
5
6
|
|
|
6
7
|
// src/compiler/PlayCanvasCompiler.ts
|
|
7
8
|
var PlayCanvasCompiler_exports = {};
|
|
@@ -13,7 +14,6 @@ var init_PlayCanvasCompiler = __esm({
|
|
|
13
14
|
"src/compiler/PlayCanvasCompiler.ts"() {
|
|
14
15
|
init_TraitCompositor();
|
|
15
16
|
init_CompilerBase();
|
|
16
|
-
init_ANSNamespace();
|
|
17
17
|
init_DomainBlockCompilerMixin();
|
|
18
18
|
SHAPE_TO_PRIMITIVE = {
|
|
19
19
|
sphere: "sphere",
|
|
@@ -40,7 +40,8 @@ var init_PlayCanvasCompiler = __esm({
|
|
|
40
40
|
className: options.className || "GeneratedScene",
|
|
41
41
|
enablePhysics: options.enablePhysics ?? true,
|
|
42
42
|
enableXR: options.enableXR ?? false,
|
|
43
|
-
indent: options.indent || " "
|
|
43
|
+
indent: options.indent || " ",
|
|
44
|
+
provenanceHash: options.provenanceHash ?? ""
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
getRequiredCapability() {
|
|
@@ -54,6 +55,9 @@ var init_PlayCanvasCompiler = __esm({
|
|
|
54
55
|
this.emit(
|
|
55
56
|
`// Source: composition "${this.escapeStringValue(composition.name, "TypeScript")}"`
|
|
56
57
|
);
|
|
58
|
+
if (this.options.provenanceHash) {
|
|
59
|
+
this.emit(`// Provenance Hash: ${this.options.provenanceHash}`);
|
|
60
|
+
}
|
|
57
61
|
this.emit("");
|
|
58
62
|
this.emitImports(composition);
|
|
59
63
|
this.emit("");
|
|
@@ -748,5 +752,5 @@ var init_PlayCanvasCompiler = __esm({
|
|
|
748
752
|
});
|
|
749
753
|
|
|
750
754
|
export { PlayCanvasCompiler, PlayCanvasCompiler_exports, init_PlayCanvasCompiler };
|
|
751
|
-
//# sourceMappingURL=chunk-
|
|
752
|
-
//# sourceMappingURL=chunk-
|
|
755
|
+
//# sourceMappingURL=chunk-I2O7TW6B.js.map
|
|
756
|
+
//# sourceMappingURL=chunk-I2O7TW6B.js.map
|