@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
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
// src/compiler/BusinessQuestTools.ts
|
|
4
|
+
var vrrQuestEntrySchema = z.object({
|
|
5
|
+
id: z.string().min(1),
|
|
6
|
+
title: z.string().min(1),
|
|
7
|
+
steps: z.array(z.string()).min(1)
|
|
8
|
+
});
|
|
9
|
+
var businessVRRDraftSchema = z.object({
|
|
10
|
+
compositionName: z.string().min(1).regex(/^[A-Za-z_][A-Za-z0-9_]*$/, "compositionName must be a valid HoloScript identifier"),
|
|
11
|
+
twin: z.object({
|
|
12
|
+
mirrorId: z.string().min(1),
|
|
13
|
+
realitySync: z.array(z.string()).min(1),
|
|
14
|
+
geoSync: z.object({
|
|
15
|
+
center: z.string().min(1),
|
|
16
|
+
radius: z.number().nonnegative().optional()
|
|
17
|
+
}).optional()
|
|
18
|
+
}),
|
|
19
|
+
weather: z.object({
|
|
20
|
+
provider: z.enum(["weather.gov", "openweathermap"]),
|
|
21
|
+
refresh: z.string().optional()
|
|
22
|
+
}).optional(),
|
|
23
|
+
events: z.object({
|
|
24
|
+
provider: z.enum(["eventbrite", "ticketmaster"]),
|
|
25
|
+
refresh: z.string().optional()
|
|
26
|
+
}).optional(),
|
|
27
|
+
businesses: z.array(
|
|
28
|
+
z.object({
|
|
29
|
+
id: z.string().min(1),
|
|
30
|
+
displayName: z.string().optional(),
|
|
31
|
+
geo: z.object({
|
|
32
|
+
lat: z.number().gte(-90).lte(90),
|
|
33
|
+
lng: z.number().gte(-180).lte(180)
|
|
34
|
+
}),
|
|
35
|
+
inventory: z.object({
|
|
36
|
+
provider: z.enum(["square_pos", "shopify", "woocommerce"]),
|
|
37
|
+
refresh: z.string().optional(),
|
|
38
|
+
websocket: z.boolean().optional()
|
|
39
|
+
}).optional(),
|
|
40
|
+
quests: z.array(vrrQuestEntrySchema).min(1)
|
|
41
|
+
})
|
|
42
|
+
).min(1),
|
|
43
|
+
layerShift: z.object({
|
|
44
|
+
from: z.enum(["ar", "vrr", "vr"]),
|
|
45
|
+
to: z.enum(["ar", "vrr", "vr"]),
|
|
46
|
+
price: z.number().nonnegative().optional(),
|
|
47
|
+
persistState: z.boolean().optional()
|
|
48
|
+
}).optional()
|
|
49
|
+
});
|
|
50
|
+
function vrrTrait(name, params) {
|
|
51
|
+
return {
|
|
52
|
+
type: "ObjectTrait",
|
|
53
|
+
name,
|
|
54
|
+
config: params,
|
|
55
|
+
params
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function emptyCompositionShell(name) {
|
|
59
|
+
return {
|
|
60
|
+
type: "Composition",
|
|
61
|
+
name,
|
|
62
|
+
templates: [],
|
|
63
|
+
objects: [],
|
|
64
|
+
spatialGroups: [],
|
|
65
|
+
lights: [],
|
|
66
|
+
imports: [],
|
|
67
|
+
timelines: [],
|
|
68
|
+
audio: [],
|
|
69
|
+
zones: [],
|
|
70
|
+
transitions: [],
|
|
71
|
+
conditionals: [],
|
|
72
|
+
iterators: [],
|
|
73
|
+
npcs: [],
|
|
74
|
+
quests: [],
|
|
75
|
+
abilities: [],
|
|
76
|
+
dialogues: [],
|
|
77
|
+
stateMachines: [],
|
|
78
|
+
achievements: [],
|
|
79
|
+
talentTrees: [],
|
|
80
|
+
shapes: [],
|
|
81
|
+
metadata: {
|
|
82
|
+
source: "business-quest-tools",
|
|
83
|
+
draftKind: "hololand-vrr"
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function buildVRRCompositionFromDraft(draft) {
|
|
88
|
+
const composition = emptyCompositionShell(draft.compositionName);
|
|
89
|
+
const twinTraits = [
|
|
90
|
+
vrrTrait("vrr_twin", { mirror: draft.twin.mirrorId }),
|
|
91
|
+
vrrTrait("reality_mirror", { sync: draft.twin.realitySync })
|
|
92
|
+
];
|
|
93
|
+
if (draft.twin.geoSync) {
|
|
94
|
+
twinTraits.push(
|
|
95
|
+
vrrTrait("geo_sync", {
|
|
96
|
+
center: draft.twin.geoSync.center,
|
|
97
|
+
radius: draft.twin.geoSync.radius ?? 0
|
|
98
|
+
})
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
const twinObject = {
|
|
102
|
+
type: "Object",
|
|
103
|
+
name: `${draft.compositionName}_twin_root`,
|
|
104
|
+
properties: [],
|
|
105
|
+
traits: twinTraits
|
|
106
|
+
};
|
|
107
|
+
const objects = [twinObject];
|
|
108
|
+
if (draft.weather) {
|
|
109
|
+
objects.push({
|
|
110
|
+
type: "Object",
|
|
111
|
+
name: `${draft.compositionName}_weather`,
|
|
112
|
+
properties: [],
|
|
113
|
+
traits: [
|
|
114
|
+
vrrTrait("weather_sync", {
|
|
115
|
+
provider: draft.weather.provider,
|
|
116
|
+
refresh: draft.weather.refresh ?? "5_minutes"
|
|
117
|
+
})
|
|
118
|
+
]
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
if (draft.events) {
|
|
122
|
+
objects.push({
|
|
123
|
+
type: "Object",
|
|
124
|
+
name: `${draft.compositionName}_events`,
|
|
125
|
+
properties: [],
|
|
126
|
+
traits: [
|
|
127
|
+
vrrTrait("event_sync", {
|
|
128
|
+
provider: draft.events.provider,
|
|
129
|
+
refresh: draft.events.refresh ?? "5_minutes"
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
for (const biz of draft.businesses) {
|
|
135
|
+
const questPayload = biz.quests.map((q) => ({
|
|
136
|
+
id: q.id,
|
|
137
|
+
title: q.title,
|
|
138
|
+
steps: q.steps
|
|
139
|
+
}));
|
|
140
|
+
const bizTraits = [
|
|
141
|
+
vrrTrait("geo_anchor", { lat: biz.geo.lat, lng: biz.geo.lng }),
|
|
142
|
+
vrrTrait("quest_hub", { quests: questPayload })
|
|
143
|
+
];
|
|
144
|
+
if (biz.inventory) {
|
|
145
|
+
bizTraits.push(
|
|
146
|
+
vrrTrait("inventory_sync", {
|
|
147
|
+
provider: biz.inventory.provider,
|
|
148
|
+
refresh: biz.inventory.refresh ?? "1_minute",
|
|
149
|
+
websocket: biz.inventory.websocket ?? false
|
|
150
|
+
})
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
objects.push({
|
|
154
|
+
type: "Object",
|
|
155
|
+
name: biz.displayName ?? biz.id,
|
|
156
|
+
properties: [],
|
|
157
|
+
traits: bizTraits
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
if (draft.layerShift) {
|
|
161
|
+
objects.push({
|
|
162
|
+
type: "Object",
|
|
163
|
+
name: `${draft.compositionName}_layer_shift`,
|
|
164
|
+
properties: [],
|
|
165
|
+
traits: [
|
|
166
|
+
vrrTrait("layer_shift", {
|
|
167
|
+
from: draft.layerShift.from,
|
|
168
|
+
to: draft.layerShift.to,
|
|
169
|
+
price: draft.layerShift.price ?? 0,
|
|
170
|
+
persist_state: draft.layerShift.persistState !== false
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
composition.objects = objects;
|
|
176
|
+
return composition;
|
|
177
|
+
}
|
|
178
|
+
function validateBusinessVRRDraft(draft, options) {
|
|
179
|
+
const issues = [];
|
|
180
|
+
const parsed = businessVRRDraftSchema.safeParse(draft);
|
|
181
|
+
if (!parsed.success) {
|
|
182
|
+
for (const err of parsed.error.issues) {
|
|
183
|
+
issues.push({
|
|
184
|
+
path: err.path.join("."),
|
|
185
|
+
message: err.message,
|
|
186
|
+
severity: "error"
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
return Promise.resolve({ ok: false, issues });
|
|
190
|
+
}
|
|
191
|
+
if (options?.parseWithVrrCompiler) {
|
|
192
|
+
return import('./compiler/vrr.js').then(({ VRRCompiler }) => {
|
|
193
|
+
const composition = buildVRRCompositionFromDraft(parsed.data);
|
|
194
|
+
const compiler = new VRRCompiler({
|
|
195
|
+
target: "threejs",
|
|
196
|
+
minify: false,
|
|
197
|
+
source_maps: false,
|
|
198
|
+
api_integrations: {},
|
|
199
|
+
performance: { target_fps: 60, max_players: 1e3, lazy_loading: true }
|
|
200
|
+
});
|
|
201
|
+
const data = compiler.parseVRRComposition(composition);
|
|
202
|
+
if (data.questNodes.length === 0) {
|
|
203
|
+
issues.push({
|
|
204
|
+
path: "businesses",
|
|
205
|
+
message: "VRR parse found no @quest_hub nodes \u2014 check draft.quests",
|
|
206
|
+
severity: "warning"
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
if (data.twinNodes.length === 0) {
|
|
210
|
+
issues.push({
|
|
211
|
+
path: "twin",
|
|
212
|
+
message: "VRR parse found no @vrr_twin nodes",
|
|
213
|
+
severity: "warning"
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
return { ok: issues.every((i) => i.severity !== "error"), issues };
|
|
217
|
+
}).catch((err) => {
|
|
218
|
+
issues.push({
|
|
219
|
+
path: "",
|
|
220
|
+
message: err instanceof Error ? err.message : String(err),
|
|
221
|
+
severity: "error"
|
|
222
|
+
});
|
|
223
|
+
return { ok: false, issues };
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
return Promise.resolve({ ok: true, issues });
|
|
227
|
+
}
|
|
228
|
+
function draftToHoloPreview(draft) {
|
|
229
|
+
const lines = [];
|
|
230
|
+
lines.push(`// Preview \u2014 generated by BusinessQuestTools (no-code VRR draft)`);
|
|
231
|
+
lines.push(`composition "${draft.compositionName}" {`);
|
|
232
|
+
lines.push(
|
|
233
|
+
` // twin: mirror=${draft.twin.mirrorId} sync=[${draft.twin.realitySync.join(", ")}]`
|
|
234
|
+
);
|
|
235
|
+
if (draft.weather) {
|
|
236
|
+
lines.push(` // weather: ${draft.weather.provider}`);
|
|
237
|
+
}
|
|
238
|
+
if (draft.events) {
|
|
239
|
+
lines.push(` // events: ${draft.events.provider}`);
|
|
240
|
+
}
|
|
241
|
+
for (const biz of draft.businesses) {
|
|
242
|
+
lines.push(` // business "${biz.id}" @ geo ${biz.geo.lat},${biz.geo.lng}`);
|
|
243
|
+
for (const q of biz.quests) {
|
|
244
|
+
lines.push(` // quest "${q.title}" (${q.steps.length} steps)`);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
lines.push(`}`);
|
|
248
|
+
return lines.join("\n");
|
|
249
|
+
}
|
|
250
|
+
var BUSINESS_QUEST_TOOLS = [
|
|
251
|
+
{
|
|
252
|
+
name: "holoscript_business_quest_scaffold_vrr",
|
|
253
|
+
description: "Build a HoloComposition JSON for Hololand VRR from a structured draft (no .holo source). Includes @vrr_twin, @reality_mirror, optional @geo_sync, @weather_sync, @event_sync, per-business @geo_anchor + @quest_hub + optional @inventory_sync, and optional @layer_shift.",
|
|
254
|
+
inputSchema: {
|
|
255
|
+
type: "object",
|
|
256
|
+
properties: {
|
|
257
|
+
draft: {
|
|
258
|
+
type: "object",
|
|
259
|
+
description: "BusinessVRRDraft \u2014 see businessVRRDraftSchema in @holoscript/core"
|
|
260
|
+
},
|
|
261
|
+
runVrrParse: {
|
|
262
|
+
type: "boolean",
|
|
263
|
+
description: "If true, run VRRCompiler.parseVRRComposition and return trait counts",
|
|
264
|
+
default: false
|
|
265
|
+
},
|
|
266
|
+
agentToken: {
|
|
267
|
+
type: "string",
|
|
268
|
+
description: "Optional agent token for future RBAC (reserved)"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
required: ["draft"]
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: "holoscript_business_quest_validate_vrr_draft",
|
|
276
|
+
description: "Validate a BusinessVRRDraft (Zod). Optionally run VRRCompiler parse smoke check.",
|
|
277
|
+
inputSchema: {
|
|
278
|
+
type: "object",
|
|
279
|
+
properties: {
|
|
280
|
+
draft: { type: "object", description: "Candidate BusinessVRRDraft JSON" },
|
|
281
|
+
parseWithVrrCompiler: {
|
|
282
|
+
type: "boolean",
|
|
283
|
+
description: "When true, dynamically loads VRRCompiler for wiring verification",
|
|
284
|
+
default: false
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
required: ["draft"]
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "holoscript_business_quest_preview_holo",
|
|
292
|
+
description: "Return a commented HoloScript-style preview string for founder review (not a full parser round-trip).",
|
|
293
|
+
inputSchema: {
|
|
294
|
+
type: "object",
|
|
295
|
+
properties: {
|
|
296
|
+
draft: { type: "object" }
|
|
297
|
+
},
|
|
298
|
+
required: ["draft"]
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
];
|
|
302
|
+
async function handleBusinessQuestToolCall(request) {
|
|
303
|
+
try {
|
|
304
|
+
switch (request.name) {
|
|
305
|
+
case "holoscript_business_quest_scaffold_vrr":
|
|
306
|
+
return await handleScaffold(request.arguments);
|
|
307
|
+
case "holoscript_business_quest_validate_vrr_draft":
|
|
308
|
+
return await handleValidate(request.arguments);
|
|
309
|
+
case "holoscript_business_quest_preview_holo":
|
|
310
|
+
return await handlePreview(request.arguments);
|
|
311
|
+
default:
|
|
312
|
+
return {
|
|
313
|
+
isError: true,
|
|
314
|
+
content: [{ type: "text", text: `Unknown tool: ${request.name}` }]
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
} catch (error) {
|
|
318
|
+
return {
|
|
319
|
+
isError: true,
|
|
320
|
+
content: [
|
|
321
|
+
{
|
|
322
|
+
type: "text",
|
|
323
|
+
text: `Error: ${error instanceof Error ? error.message : String(error)}`
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
async function handleScaffold(args) {
|
|
330
|
+
const parsed = businessVRRDraftSchema.safeParse(args.draft);
|
|
331
|
+
if (!parsed.success) {
|
|
332
|
+
return {
|
|
333
|
+
isError: true,
|
|
334
|
+
content: [{ type: "text", text: JSON.stringify(parsed.error.flatten(), null, 2) }]
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
const composition = buildVRRCompositionFromDraft(parsed.data);
|
|
338
|
+
const runParse = Boolean(args.runVrrParse);
|
|
339
|
+
let vrrSummary;
|
|
340
|
+
if (runParse) {
|
|
341
|
+
const { VRRCompiler } = await import('./compiler/vrr.js');
|
|
342
|
+
const compiler = new VRRCompiler({
|
|
343
|
+
target: "threejs",
|
|
344
|
+
minify: false,
|
|
345
|
+
source_maps: false,
|
|
346
|
+
api_integrations: {},
|
|
347
|
+
performance: { target_fps: 60, max_players: 1e3, lazy_loading: true }
|
|
348
|
+
});
|
|
349
|
+
const data = compiler.parseVRRComposition(composition);
|
|
350
|
+
vrrSummary = {
|
|
351
|
+
twinNodes: data.twinNodes.length,
|
|
352
|
+
weatherNodes: data.weatherNodes.length,
|
|
353
|
+
eventNodes: data.eventNodes.length,
|
|
354
|
+
inventoryNodes: data.inventoryNodes.length,
|
|
355
|
+
questNodes: data.questNodes.length,
|
|
356
|
+
layerShiftNodes: data.layerShiftNodes.length,
|
|
357
|
+
paywallNodes: data.paywallNodes.length,
|
|
358
|
+
geoAnchorNodes: data.geoAnchorNodes.length
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
const payload = {
|
|
362
|
+
success: true,
|
|
363
|
+
compositionName: composition.name,
|
|
364
|
+
objectCount: composition.objects.length,
|
|
365
|
+
composition,
|
|
366
|
+
vrrTraitCounts: vrrSummary
|
|
367
|
+
};
|
|
368
|
+
return {
|
|
369
|
+
isError: false,
|
|
370
|
+
content: [{ type: "text", text: JSON.stringify(payload, null, 2) }]
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
async function handleValidate(args) {
|
|
374
|
+
const parseWithVrrCompiler = Boolean(args.parseWithVrrCompiler);
|
|
375
|
+
const result = await validateBusinessVRRDraft(args.draft, { parseWithVrrCompiler });
|
|
376
|
+
return {
|
|
377
|
+
isError: !result.ok,
|
|
378
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
async function handlePreview(args) {
|
|
382
|
+
const parsed = businessVRRDraftSchema.safeParse(args.draft);
|
|
383
|
+
if (!parsed.success) {
|
|
384
|
+
return {
|
|
385
|
+
isError: true,
|
|
386
|
+
content: [{ type: "text", text: JSON.stringify(parsed.error.flatten(), null, 2) }]
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
const text = draftToHoloPreview(parsed.data);
|
|
390
|
+
return {
|
|
391
|
+
isError: false,
|
|
392
|
+
content: [{ type: "text", text }]
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
function registerBusinessQuestTools(server) {
|
|
396
|
+
for (const tool of BUSINESS_QUEST_TOOLS) {
|
|
397
|
+
server.registerTool(tool, handleBusinessQuestToolCall);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
var BusinessQuestTools_default = handleBusinessQuestToolCall;
|
|
401
|
+
|
|
402
|
+
export { BUSINESS_QUEST_TOOLS, BusinessQuestTools_default, buildVRRCompositionFromDraft, businessVRRDraftSchema, draftToHoloPreview, handleBusinessQuestToolCall, registerBusinessQuestTools, validateBusinessVRRDraft };
|
|
403
|
+
//# sourceMappingURL=chunk-DMXC24WV.js.map
|
|
404
|
+
//# sourceMappingURL=chunk-DMXC24WV.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
4
4
|
|
|
5
5
|
// src/traits/constants/mobile/geospatial.ts
|
|
6
6
|
exports.GEOSPATIAL_ARCORE_TRAITS = void 0; exports.GEOSPATIAL_DEFAULTS = void 0;
|
|
7
|
-
var init_geospatial =
|
|
7
|
+
var init_geospatial = chunkHCCQLAA4_cjs.__esm({
|
|
8
8
|
"src/traits/constants/mobile/geospatial.ts"() {
|
|
9
9
|
exports.GEOSPATIAL_ARCORE_TRAITS = [
|
|
10
10
|
// --- VPS Core ---
|
|
@@ -60,7 +60,7 @@ var init_geospatial = chunk3SAK5KFL_cjs.__esm({
|
|
|
60
60
|
|
|
61
61
|
// src/traits/constants/mobile/spatial-authoring.ts
|
|
62
62
|
exports.SPATIAL_AUTHORING_TRAITS = void 0; exports.SPATIAL_AUTHORING_DEFAULTS = void 0;
|
|
63
|
-
var init_spatial_authoring =
|
|
63
|
+
var init_spatial_authoring = chunkHCCQLAA4_cjs.__esm({
|
|
64
64
|
"src/traits/constants/mobile/spatial-authoring.ts"() {
|
|
65
65
|
exports.SPATIAL_AUTHORING_TRAITS = [
|
|
66
66
|
// --- Gyro Placement ---
|
|
@@ -98,7 +98,7 @@ var init_spatial_authoring = chunk3SAK5KFL_cjs.__esm({
|
|
|
98
98
|
|
|
99
99
|
// src/traits/constants/mobile/haptic-feedback.ts
|
|
100
100
|
exports.HAPTIC_FEEDBACK_TRAITS = void 0;
|
|
101
|
-
var init_haptic_feedback =
|
|
101
|
+
var init_haptic_feedback = chunkHCCQLAA4_cjs.__esm({
|
|
102
102
|
"src/traits/constants/mobile/haptic-feedback.ts"() {
|
|
103
103
|
exports.HAPTIC_FEEDBACK_TRAITS = [
|
|
104
104
|
// --- Interaction ---
|
|
@@ -132,7 +132,7 @@ var init_haptic_feedback = chunk3SAK5KFL_cjs.__esm({
|
|
|
132
132
|
|
|
133
133
|
// src/traits/constants/mobile/nearby-connections.ts
|
|
134
134
|
exports.NEARBY_CONNECTIONS_TRAITS = void 0;
|
|
135
|
-
var init_nearby_connections =
|
|
135
|
+
var init_nearby_connections = chunkHCCQLAA4_cjs.__esm({
|
|
136
136
|
"src/traits/constants/mobile/nearby-connections.ts"() {
|
|
137
137
|
exports.NEARBY_CONNECTIONS_TRAITS = [
|
|
138
138
|
// --- Discovery ---
|
|
@@ -162,7 +162,7 @@ var init_nearby_connections = chunk3SAK5KFL_cjs.__esm({
|
|
|
162
162
|
|
|
163
163
|
// src/traits/constants/mobile/foldable-display.ts
|
|
164
164
|
exports.FOLDABLE_DISPLAY_TRAITS = void 0;
|
|
165
|
-
var init_foldable_display =
|
|
165
|
+
var init_foldable_display = chunkHCCQLAA4_cjs.__esm({
|
|
166
166
|
"src/traits/constants/mobile/foldable-display.ts"() {
|
|
167
167
|
exports.FOLDABLE_DISPLAY_TRAITS = [
|
|
168
168
|
"foldable_detect",
|
|
@@ -183,7 +183,7 @@ var init_foldable_display = chunk3SAK5KFL_cjs.__esm({
|
|
|
183
183
|
|
|
184
184
|
// src/traits/constants/mobile/samsung-dex.ts
|
|
185
185
|
exports.SAMSUNG_DEX_TRAITS = void 0;
|
|
186
|
-
var init_samsung_dex =
|
|
186
|
+
var init_samsung_dex = chunkHCCQLAA4_cjs.__esm({
|
|
187
187
|
"src/traits/constants/mobile/samsung-dex.ts"() {
|
|
188
188
|
exports.SAMSUNG_DEX_TRAITS = [
|
|
189
189
|
"dex_detect",
|
|
@@ -202,7 +202,7 @@ var init_samsung_dex = chunk3SAK5KFL_cjs.__esm({
|
|
|
202
202
|
|
|
203
203
|
// src/traits/constants/mobile/webxr.ts
|
|
204
204
|
exports.WEBXR_TRAITS = void 0;
|
|
205
|
-
var init_webxr =
|
|
205
|
+
var init_webxr = chunkHCCQLAA4_cjs.__esm({
|
|
206
206
|
"src/traits/constants/mobile/webxr.ts"() {
|
|
207
207
|
exports.WEBXR_TRAITS = [
|
|
208
208
|
// --- Session ---
|
|
@@ -236,7 +236,7 @@ var init_webxr = chunk3SAK5KFL_cjs.__esm({
|
|
|
236
236
|
|
|
237
237
|
// src/traits/constants/mobile/google-lens.ts
|
|
238
238
|
exports.GOOGLE_LENS_TRAITS = void 0;
|
|
239
|
-
var init_google_lens =
|
|
239
|
+
var init_google_lens = chunkHCCQLAA4_cjs.__esm({
|
|
240
240
|
"src/traits/constants/mobile/google-lens.ts"() {
|
|
241
241
|
exports.GOOGLE_LENS_TRAITS = [
|
|
242
242
|
"lens_recognize",
|
|
@@ -259,7 +259,7 @@ var init_google_lens = chunk3SAK5KFL_cjs.__esm({
|
|
|
259
259
|
|
|
260
260
|
// src/traits/constants/mobile/depth-scanner.ts
|
|
261
261
|
exports.DEPTH_SCANNER_TRAITS = void 0; exports.DEPTH_SCANNER_DEFAULTS = void 0;
|
|
262
|
-
var init_depth_scanner =
|
|
262
|
+
var init_depth_scanner = chunkHCCQLAA4_cjs.__esm({
|
|
263
263
|
"src/traits/constants/mobile/depth-scanner.ts"() {
|
|
264
264
|
exports.DEPTH_SCANNER_TRAITS = [
|
|
265
265
|
// --- Core ---
|
|
@@ -315,5 +315,5 @@ exports.init_nearby_connections = init_nearby_connections;
|
|
|
315
315
|
exports.init_samsung_dex = init_samsung_dex;
|
|
316
316
|
exports.init_spatial_authoring = init_spatial_authoring;
|
|
317
317
|
exports.init_webxr = init_webxr;
|
|
318
|
-
//# sourceMappingURL=chunk-
|
|
319
|
-
//# sourceMappingURL=chunk-
|
|
318
|
+
//# sourceMappingURL=chunk-DTGBOSEM.cjs.map
|
|
319
|
+
//# sourceMappingURL=chunk-DTGBOSEM.cjs.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
4
|
+
var zod = require('zod');
|
|
5
|
+
|
|
6
|
+
function safeJsonParse(s, schema) {
|
|
7
|
+
let raw;
|
|
8
|
+
try {
|
|
9
|
+
raw = JSON.parse(s);
|
|
10
|
+
} catch (e) {
|
|
11
|
+
const message = e instanceof Error ? e.message : String(e);
|
|
12
|
+
return { ok: false, error: { kind: "json-parse", message, cause: e } };
|
|
13
|
+
}
|
|
14
|
+
const parsed = schema.safeParse(raw);
|
|
15
|
+
if (parsed.success) {
|
|
16
|
+
return { ok: true, value: parsed.data };
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
ok: false,
|
|
20
|
+
error: { kind: "schema", message: parsed.error.message, zodError: parsed.error }
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function readJson(s) {
|
|
24
|
+
const r = safeJsonParse(s, zod.z.unknown());
|
|
25
|
+
if (r.ok) {
|
|
26
|
+
return r.value;
|
|
27
|
+
}
|
|
28
|
+
if (r.error.kind === "json-parse") {
|
|
29
|
+
const err = new SyntaxError(r.error.message);
|
|
30
|
+
err.cause = r.error.cause;
|
|
31
|
+
throw err;
|
|
32
|
+
}
|
|
33
|
+
throw new Error(`[readJson] schema failure on z.unknown: ${r.error.message}`);
|
|
34
|
+
}
|
|
35
|
+
function jsonClone(value) {
|
|
36
|
+
return readJson(JSON.stringify(value));
|
|
37
|
+
}
|
|
38
|
+
function tryParseJson(s, fallback) {
|
|
39
|
+
if (s === null || s === void 0) {
|
|
40
|
+
return fallback;
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
return JSON.parse(s);
|
|
44
|
+
} catch {
|
|
45
|
+
return fallback;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.safeJsonParseSchema = void 0;
|
|
49
|
+
var init_safeJsonParse = chunkHCCQLAA4_cjs.__esm({
|
|
50
|
+
"src/errors/safeJsonParse.ts"() {
|
|
51
|
+
exports.safeJsonParseSchema = safeJsonParse;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
exports.init_safeJsonParse = init_safeJsonParse;
|
|
56
|
+
exports.jsonClone = jsonClone;
|
|
57
|
+
exports.readJson = readJson;
|
|
58
|
+
exports.safeJsonParse = safeJsonParse;
|
|
59
|
+
exports.tryParseJson = tryParseJson;
|
|
60
|
+
//# sourceMappingURL=chunk-E7JP3BS3.cjs.map
|
|
61
|
+
//# sourceMappingURL=chunk-E7JP3BS3.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { vec3SubArray, vec3NormalizeInPlace, vec3CrossArray, vec3ScaleArray } from './chunk-
|
|
1
|
+
import { vec3SubArray, vec3NormalizeInPlace, vec3CrossArray, vec3ScaleArray } from './chunk-MXFUTKCO.js';
|
|
2
2
|
|
|
3
3
|
// src/compiler/ProceduralGeometry.ts
|
|
4
4
|
var LOD_PRESETS = {
|
|
@@ -1165,5 +1165,5 @@ function generateMembraneGeometry(anchors, subdivisions = 8, bulge = 0.15, lod)
|
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
1167
|
export { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry };
|
|
1168
|
-
//# sourceMappingURL=chunk-
|
|
1169
|
-
//# sourceMappingURL=chunk-
|
|
1168
|
+
//# sourceMappingURL=chunk-EKBKLK7P.js.map
|
|
1169
|
+
//# sourceMappingURL=chunk-EKBKLK7P.js.map
|