@holoscript/core 8.0.8 → 8.0.10
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/bin/holoscript.cjs +5 -1
- package/dist/GLTFPipeline-L76YTXKA.js +15 -0
- package/dist/GLTFPipeline-ZWJN7GI6.cjs +36 -0
- package/dist/HoloCompositionParser-K76KTEEE.js +12 -0
- package/dist/HoloCompositionParser-UZH6Y4HO.cjs +45 -0
- package/dist/HoloScriptCodeParser-2D4ERFUZ.js +6 -0
- package/dist/HoloScriptCodeParser-UDRLDA7I.cjs +23 -0
- package/dist/HoloScriptPlusParser-FTMCGWXD.js +13 -0
- package/dist/HoloScriptPlusParser-LQR5GIKF.cjs +30 -0
- package/dist/HoloScriptRuntime-UTRLJI5L.js +12 -0
- package/dist/HoloScriptRuntime-YBYXJHJN.cjs +21 -0
- package/dist/SceneIRCompiler-63KA3M2F.js +17 -0
- package/dist/SceneIRCompiler-KWUFHZ4O.cjs +42 -0
- package/dist/{USDZExporter-AUHZODOF.cjs → USDZExporter-ML4UMIGC.cjs} +3 -3
- package/dist/{USDZExporter-GXB4AUSG.js → USDZExporter-ZFKLQ76G.js} +3 -3
- package/dist/agents/index.cjs +1 -1
- package/dist/agents/index.js +1 -1
- package/dist/audit/AuditLogger.d.ts +106 -0
- package/dist/audit/AuditQueryBuilder.d.ts +79 -0
- package/dist/audit/ComplianceReporter.d.ts +90 -0
- package/dist/audit/index.d.ts +13 -0
- package/dist/{chunk-FGMDMJM7.js → chunk-2BYAUHBO.js} +3 -3
- package/dist/{chunk-EDPYCLRC.cjs → chunk-2E6PP5UE.cjs} +83 -59
- package/dist/{chunk-GASCWJK5.js → chunk-2EGGAZT3.js} +65 -287
- package/dist/{chunk-SIEXCILW.js → chunk-2I3XAGMF.js} +3 -3
- package/dist/{chunk-OS533P33.cjs → chunk-2KKOYZYI.cjs} +1074 -1655
- package/dist/chunk-2MQKNDNH.js +51 -0
- package/dist/{chunk-7DMMMBCY.cjs → chunk-2X3IPCBK.cjs} +10 -10
- package/dist/chunk-2ZOTBO25.cjs +202 -0
- package/dist/chunk-356N4NPM.cjs +152 -0
- package/dist/{chunk-X3GJPRVK.cjs → chunk-36NPLOI4.cjs} +92 -81
- package/dist/{chunk-SLU6UPJI.cjs → chunk-37HHY7RH.cjs} +5 -5
- package/dist/{chunk-YDPEHCCI.cjs → chunk-3CDDRUER.cjs} +3 -118
- package/dist/chunk-3F7ZZWIN.js +1651 -0
- package/dist/chunk-3ILD7TKP.cjs +187 -0
- package/dist/{chunk-X27QRG4C.cjs → chunk-3IUHTGDD.cjs} +153 -41
- package/dist/{chunk-PXNZ6TME.js → chunk-4376VHNJ.js} +60 -36
- package/dist/{chunk-YKGPCZEE.cjs → chunk-4FIBOJW6.cjs} +10 -10
- package/dist/chunk-4Q7RKQQI.cjs +14195 -0
- package/dist/{chunk-YCM6QQRT.cjs → chunk-566ZB4LZ.cjs} +180 -8
- package/dist/{chunk-2Y3V22SG.js → chunk-5CURIYGT.js} +3 -3
- package/dist/{chunk-QBWNJXNR.js → chunk-5FYMCVBY.js} +5 -5
- package/dist/{chunk-ZA34AN3R.js → chunk-5LVFTGKH.js} +841 -12
- package/dist/{chunk-Z6PMDS4G.js → chunk-5OUOMBKK.js} +1090 -53
- package/dist/chunk-63AUAIL6.js +48 -0
- package/dist/chunk-655FATJU.js +110 -0
- package/dist/{chunk-TQ377OLB.cjs → chunk-65S62L4D.cjs} +28 -22
- package/dist/chunk-6NTAZN5Z.cjs +502 -0
- package/dist/chunk-6TRX6AR2.js +9376 -0
- package/dist/chunk-6ZCCLKS2.cjs +51 -0
- package/dist/{chunk-MDR235RZ.js → chunk-734OB5SK.js} +721 -8
- package/dist/{chunk-Q2Q34NF3.js → chunk-77QI552M.js} +6 -6
- package/dist/{chunk-WKX5AMOY.js → chunk-7I74JWPW.js} +3 -3
- package/dist/{chunk-5FSKKMR7.cjs → chunk-7IDJDMPU.cjs} +232 -4
- package/dist/chunk-7VBKRGIZ.cjs +847 -0
- package/dist/{chunk-KCPHASCO.js → chunk-AATYYLYK.js} +5 -5
- package/dist/{chunk-DTGBOSEM.cjs → chunk-AWXFEAQL.cjs} +12 -12
- package/dist/{chunk-THCK6ECW.js → chunk-B3CWTCK2.js} +231 -3
- package/dist/chunk-BCP4E7MD.cjs +997 -0
- package/dist/chunk-BG7RPYJP.js +91 -0
- package/dist/{chunk-VF257YKO.js → chunk-BP4KTMLY.js} +117 -5
- package/dist/{chunk-YN6IETRZ.js → chunk-BQJ3YBF3.js} +6424 -987
- package/dist/{chunk-7X5PNIQJ.js → chunk-BXSOEQI3.js} +27 -25
- package/dist/{chunk-WFKVS2K4.cjs → chunk-C65C5VED.cjs} +1101 -55
- package/dist/{chunk-KOUAQL2B.cjs → chunk-CANAL6CT.cjs} +1569 -168
- package/dist/{chunk-FDSGHPAK.js → chunk-CBSDJF3B.js} +3 -3
- package/dist/{chunk-FEWUHQNM.cjs → chunk-CFVK26P4.cjs} +4 -4
- package/dist/{chunk-M7K4LE66.cjs → chunk-CI33NINL.cjs} +4 -4
- package/dist/{chunk-2OWDB4FB.js → chunk-CKV5NYAE.js} +6 -6
- package/dist/{chunk-LPS5AMQD.cjs → chunk-CM4NHXVO.cjs} +24 -24
- package/dist/chunk-D3HSRXYB.js +115 -0
- package/dist/{chunk-FNHJRI32.js → chunk-DBH3D2MU.js} +1561 -160
- package/dist/{chunk-GW3LKD5C.js → chunk-DJNH4HFW.js} +3 -3
- package/dist/{chunk-2GCNOI2U.cjs → chunk-DN6F4DHH.cjs} +9 -3
- package/dist/chunk-DQRJ5RJG.js +432 -0
- package/dist/{chunk-C7ZBSV2Q.js → chunk-DUG3OQAS.js} +106 -43
- package/dist/chunk-ECUYJOJ2.cjs +199 -0
- package/dist/chunk-EEMTCAK7.js +182 -0
- package/dist/{chunk-3SKLAUDD.cjs → chunk-EI3J6LTW.cjs} +359 -581
- package/dist/{chunk-SSSN7VAM.js → chunk-EM2OGPYE.js} +4 -4
- package/dist/{chunk-56VOWURB.cjs → chunk-ENZCIQZC.cjs} +522 -453
- package/dist/chunk-ESBXUYOC.cjs +836 -0
- package/dist/{chunk-L5U4W6JC.js → chunk-ESSEF6U2.js} +4 -4
- package/dist/chunk-ET3AN4W3.js +824 -0
- package/dist/chunk-EXKSFGSX.cjs +14 -14
- package/dist/{chunk-I76GIKN7.cjs → chunk-F3YT6GUF.cjs} +17 -17
- package/dist/{chunk-WRWEX5ZF.js → chunk-F75DZBBI.js} +3 -3
- package/dist/{chunk-4JGRWHZJ.js → chunk-FG6PYGIZ.js} +12 -6
- package/dist/chunk-FGGJQRLZ.js +14 -14
- package/dist/{chunk-SXOSDZD6.js → chunk-FWCHPCD4.js} +128 -10
- package/dist/{chunk-XW6IXEQH.cjs → chunk-G35CAQ7I.cjs} +5 -5
- package/dist/{chunk-7VMGP2FW.js → chunk-G6KACNMO.js} +132 -188
- package/dist/{chunk-FJPADH77.cjs → chunk-GAWJJAGT.cjs} +6 -6
- package/dist/chunk-GGR7QUKK.cjs +4724 -0
- package/dist/chunk-GIBF4BHH.js +14098 -0
- package/dist/{chunk-AWB7QYY6.cjs → chunk-GILYQ5VH.cjs} +6 -6
- package/dist/{chunk-FWVYAMNW.cjs → chunk-GKFCHGCM.cjs} +4 -4
- package/dist/{chunk-Y3ZFVUUU.js → chunk-GLEJ2TLS.js} +3 -3
- package/dist/{chunk-3GWWJT7L.js → chunk-GP3OKSKT.js} +13 -13
- package/dist/chunk-GTIPOEHN.js +196 -0
- package/dist/{chunk-LMJ5EBV7.cjs → chunk-GZPUA2TL.cjs} +16 -15
- package/dist/{chunk-IELX2OKI.js → chunk-H4LJ4HEA.js} +3 -115
- package/dist/{chunk-ACVWFGBI.cjs → chunk-HCX4SMFK.cjs} +3 -3
- package/dist/{chunk-HYNTS5CP.js → chunk-HHRZ6STP.js} +24 -2
- package/dist/chunk-HIDEIEFG.js +48 -0
- package/dist/{chunk-W6RW64BB.cjs → chunk-HSWBIDZM.cjs} +228 -5
- package/dist/{chunk-GSOUNWEL.js → chunk-HVX7QQYK.js} +1035 -1616
- package/dist/{chunk-TRCGG42I.cjs → chunk-IFW5IW4L.cjs} +6502 -1019
- package/dist/{chunk-F5LKJ6F5.cjs → chunk-IJU6AS67.cjs} +32 -28
- package/dist/{chunk-TVANHNJ7.js → chunk-IK6Z2HNC.js} +173 -3
- package/dist/{chunk-QGMUTVVH.cjs → chunk-IS7NTKY5.cjs} +20 -20
- package/dist/{chunk-YFVQWSNJ.js → chunk-IXWGYWH6.js} +3 -3
- package/dist/chunk-J2DAS2PL.js +148 -0
- package/dist/chunk-JBQXZIWB.js +148 -0
- package/dist/chunk-JBYBMBMW.js +261 -0
- package/dist/{chunk-LWUOUCYL.js → chunk-JEJ7TT54.js} +5 -5
- package/dist/{chunk-DUCB6LGL.js → chunk-JOTCTHN5.js} +211 -5
- package/dist/{chunk-47RUFYKR.js → chunk-K56UVEXV.js} +3 -3
- package/dist/{chunk-XSFNHP2E.js → chunk-KB26H447.js} +3 -3
- package/dist/{chunk-3NGDZZR4.js → chunk-KEYG7HGY.js} +430 -37
- package/dist/{chunk-DY72BMU5.js → chunk-KFVNCW4Q.js} +4 -4
- package/dist/chunk-KPGC7SK2.js +192 -0
- package/dist/chunk-KROXXBK5.cjs +53 -0
- package/dist/{chunk-ZPZAVHXL.cjs → chunk-LB3ZZMKT.cjs} +137 -19
- package/dist/chunk-LDYZWNJW.cjs +1654 -0
- package/dist/{chunk-UGXHYIWT.cjs → chunk-LHNHO27U.cjs} +28 -28
- package/dist/{chunk-ULMSSHCJ.cjs → chunk-LMB555QB.cjs} +405 -38
- package/dist/{chunk-CBJY23VL.js → chunk-MD4IVS42.js} +3 -3
- package/dist/{chunk-VMLKSV26.js → chunk-MDDWEBCX.js} +226 -3
- package/dist/chunk-MUWH4QK5.cjs +94 -0
- package/dist/{chunk-T6W3Z3SH.cjs → chunk-N2ILK7BF.cjs} +4 -4
- package/dist/{chunk-6EX3I5P4.cjs → chunk-N74QRJGP.cjs} +6 -6
- package/dist/chunk-NFFHLX37.cjs +132 -0
- package/dist/chunk-NJSYWX7H.js +190 -0
- package/dist/{chunk-SH5PPVK7.cjs → chunk-NQN5LFN4.cjs} +165 -221
- package/dist/chunk-NTQRFOPP.cjs +56 -0
- package/dist/{chunk-YFWRJW4B.js → chunk-NWMJPTVL.js} +51 -55
- package/dist/{chunk-63ZGNR2T.cjs → chunk-OC6GV5QH.cjs} +42 -42
- package/dist/{chunk-7E7GCQCK.js → chunk-OG3MBHM3.js} +9 -3
- package/dist/chunk-OMNHTCS4.cjs +264 -0
- package/dist/chunk-OQXB6NNC.cjs +117 -0
- package/dist/{chunk-Y57W2CT5.cjs → chunk-OV46CCA2.cjs} +51 -55
- package/dist/{chunk-6PRZIHGL.cjs → chunk-OV6HHKLE.cjs} +21 -266
- package/dist/{chunk-C37BHB7N.cjs → chunk-P26YYPOO.cjs} +5 -5
- package/dist/{chunk-2BZHWUSR.cjs → chunk-P7JEKJTZ.cjs} +16 -16
- package/dist/{chunk-NGBXXZLL.cjs → chunk-PDXX5UI4.cjs} +45 -45
- package/dist/{chunk-FHQFPYV4.js → chunk-PJFTTSKE.js} +8 -7
- package/dist/{chunk-GVFJ6T4S.cjs → chunk-PVODJEJ7.cjs} +721 -8
- package/dist/{chunk-ZZ7RO2UQ.js → chunk-Q265VZJ4.js} +3 -3
- package/dist/{chunk-E7JP3BS3.cjs → chunk-Q47JEE2C.cjs} +4 -4
- package/dist/chunk-QBY7LRN2.js +281 -0
- package/dist/{chunk-GH6C2QGW.cjs → chunk-QEDMOGF3.cjs} +857 -16
- package/dist/{chunk-5WUNN6ZN.cjs → chunk-QHSAVOOL.cjs} +24 -2
- package/dist/chunk-QJNCDVYM.cjs +137 -0
- package/dist/chunk-QM7FJB5W.js +4717 -0
- package/dist/chunk-QQFB4RT2.cjs +448 -0
- package/dist/chunk-QSYBHQAD.cjs +196 -0
- package/dist/{chunk-2YSNA2F2.cjs → chunk-QVJMDVYZ.cjs} +5 -5
- package/dist/chunk-RAJMAX6D.js +131 -0
- package/dist/{chunk-VVKVQZI6.js → chunk-RAN3ECAS.js} +3 -3
- package/dist/chunk-RKGUZBOC.js +79 -0
- package/dist/{chunk-HLFDZ35S.cjs → chunk-RRQIAJLQ.cjs} +8 -8
- package/dist/{chunk-PABONWKI.js → chunk-RXQNRZ5F.js} +3 -3
- package/dist/{chunk-7ZHYEITD.cjs → chunk-S4O7CFHQ.cjs} +10 -11
- package/dist/chunk-SE7ANBGN.js +128 -0
- package/dist/{chunk-X2AVEAZM.cjs → chunk-SJIRCTIS.cjs} +176 -2
- package/dist/{chunk-WXQ57LAO.js → chunk-SQXAZHDG.js} +4 -4
- package/dist/chunk-SR73L5ZP.cjs +84 -0
- package/dist/{chunk-OABEO6HH.js → chunk-SZOLTWWD.js} +2349 -214
- package/dist/{chunk-5JEU52DW.js → chunk-TPZ3BN2D.js} +3 -3
- package/dist/{chunk-QFU53KRH.js → chunk-TSTFYGGX.js} +4 -5
- package/dist/{chunk-EBS32AJI.cjs → chunk-TZCFKZ6Z.cjs} +5 -5
- package/dist/chunk-UCVZXQ63.js +724 -0
- package/dist/chunk-UGQ3QNV6.js +992 -0
- package/dist/chunk-UNMVGZVW.js +142 -0
- package/dist/{chunk-TEVX443G.js → chunk-UTUD6GJI.js} +178 -6
- package/dist/chunk-UXBYA7DV.cjs +155 -0
- package/dist/chunk-V6GXFSK7.cjs +443 -0
- package/dist/chunk-VHORVGCG.cjs +761 -0
- package/dist/{chunk-B4EKV6HQ.js → chunk-VKCTYLDN.js} +500 -442
- package/dist/{chunk-O3MGZDCT.cjs → chunk-VTEXJOSD.cjs} +63 -63
- package/dist/chunk-VVAAZITA.cjs +287 -0
- package/dist/{chunk-V7AKE5VT.cjs → chunk-W2GA3EQB.cjs} +435 -42
- package/dist/chunk-W4GABFCR.js +37 -0
- package/dist/chunk-WKEK4NCA.js +490 -0
- package/dist/{chunk-5A4TCHOC.cjs → chunk-WNYXT4TE.cjs} +4 -4
- package/dist/{chunk-S762UEV5.js → chunk-WTH23ISI.js} +6 -6
- package/dist/{chunk-BTKZGHAV.js → chunk-WWNCM473.js} +10 -6
- package/dist/{chunk-4YNYPHH3.cjs → chunk-X75H75UY.cjs} +2351 -213
- package/dist/{chunk-LYJJI7ZK.cjs → chunk-XCUDDFKC.cjs} +216 -9
- package/dist/chunk-YAO4HPJL.cjs +120 -0
- package/dist/chunk-YKY2JBER.cjs +9443 -0
- package/dist/chunk-YP5CHEYU.cjs +154 -0
- package/dist/{chunk-WRNEH5MO.js → chunk-YW3I2FQL.js} +18 -7
- package/dist/{chunk-BRNUPDHJ.js → chunk-Z557DVYN.js} +386 -19
- package/dist/{chunk-VSACG2AR.js → chunk-Z6LZUYZF.js} +21 -264
- package/dist/chunk-ZHPMP447.cjs +43 -0
- package/dist/{chunk-LODTHGST.cjs → chunk-ZK7KX5CD.cjs} +133 -70
- package/dist/{chunk-CCPSNT6B.cjs → chunk-ZRPALBQB.cjs} +5 -5
- package/dist/chunk-ZVFHPMC5.js +824 -0
- package/dist/chunk-ZVQMKUGJ.js +443 -0
- package/dist/cli/holoscript-runner.cjs +86 -48
- package/dist/cli/holoscript-runner.js +54 -16
- package/dist/codebase/index.cjs +1 -1
- package/dist/codebase/index.js +1 -1
- package/dist/compiler/agent-inference.cjs +11 -11
- package/dist/compiler/agent-inference.js +9 -6
- package/dist/compiler/android-xr.cjs +13 -12
- package/dist/compiler/android-xr.js +11 -10
- package/dist/compiler/android.cjs +12 -12
- package/dist/compiler/android.js +10 -10
- package/dist/compiler/business-quest.cjs +10 -10
- package/dist/compiler/business-quest.js +2 -2
- package/dist/compiler/coco.cjs +1 -1
- package/dist/compiler/coco.js +1 -1
- package/dist/compiler/context.cjs +9 -9
- package/dist/compiler/context.js +6 -6
- package/dist/compiler/daimon-seed.cjs +36 -0
- package/dist/compiler/daimon-seed.js +12 -0
- package/dist/compiler/domain-block-utils.cjs +205 -156
- package/dist/compiler/domain-block-utils.js +8 -7
- package/dist/compiler/dtdl.cjs +10 -10
- package/dist/compiler/dtdl.js +7 -7
- package/dist/compiler/gltf-pipeline.cjs +9 -9
- package/dist/compiler/gltf-pipeline.js +2 -2
- package/dist/compiler/godot.cjs +10 -9
- package/dist/compiler/godot.js +9 -8
- package/dist/compiler/incremental.cjs +11 -11
- package/dist/compiler/incremental.js +6 -6
- package/dist/compiler/index.cjs +2585 -3273
- package/dist/compiler/index.d.ts +149 -35
- package/dist/compiler/index.js +2197 -3102
- package/dist/compiler/ios.cjs +11 -11
- package/dist/compiler/ios.js +9 -9
- package/dist/compiler/llm-provider-capabilities.cjs +9 -9
- package/dist/compiler/llm-provider-capabilities.js +6 -6
- package/dist/compiler/nodetoy.cjs +1 -1
- package/dist/compiler/nodetoy.js +1 -1
- package/dist/compiler/openxr.cjs +11 -10
- package/dist/compiler/openxr.js +10 -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 +11 -10
- package/dist/compiler/sdf.js +9 -8
- package/dist/compiler/semantic-scene.cjs +7 -7
- package/dist/compiler/semantic-scene.js +2 -2
- package/dist/compiler/state.cjs +9 -9
- package/dist/compiler/state.js +7 -7
- package/dist/compiler/trait-composition.cjs +11 -11
- package/dist/compiler/trait-composition.js +7 -7
- package/dist/compiler/traits/ProvenanceSemiring.d.ts +167 -0
- package/dist/compiler/traits/Semiring.d.ts +26 -0
- package/dist/compiler/unity.cjs +11 -10
- package/dist/compiler/unity.js +10 -9
- package/dist/compiler/unreal.cjs +12 -11
- package/dist/compiler/unreal.js +10 -9
- package/dist/compiler/urdf.cjs +18 -17
- package/dist/compiler/urdf.js +9 -8
- package/dist/compiler/usd-physics.cjs +11 -10
- package/dist/compiler/usd-physics.js +8 -7
- package/dist/compiler/visionos.cjs +11 -10
- package/dist/compiler/visionos.js +10 -9
- package/dist/compiler/vrchat.cjs +11 -10
- package/dist/compiler/vrchat.js +9 -8
- package/dist/compiler/wasm.cjs +14 -13
- package/dist/compiler/wasm.js +9 -8
- package/dist/compiler/webgpu.cjs +10 -9
- package/dist/compiler/webgpu.js +9 -8
- package/dist/constants.cjs +398 -0
- package/dist/constants.js +9 -0
- package/dist/coordinators/index.cjs +4 -1
- package/dist/coordinators/index.js +4 -1
- package/dist/debugger.cjs +11 -9
- package/dist/debugger.js +9 -7
- package/dist/{dist-ACXG6IH5.cjs → dist-GRMOP2UL.cjs} +341 -65
- package/dist/{dist-VD4L6V7Q.js → dist-ZBUKU2JG.js} +333 -63
- package/dist/entries/interop.cjs +23 -23
- package/dist/entries/interop.js +3 -3
- package/dist/entries/scripting.cjs +12 -11
- package/dist/entries/scripting.js +8 -7
- package/dist/evolution/index.cjs +66 -0
- package/dist/evolution/index.d.ts +162 -0
- package/dist/evolution/index.js +17 -0
- package/dist/hololand/index.cjs +41 -37
- package/dist/hololand/index.js +3 -3
- package/dist/index.cjs +12394 -3224
- package/dist/index.d.ts +260 -18
- package/dist/index.js +10755 -2182
- package/dist/keyword-registry/PluginKeywordRegistry.d.ts +138 -0
- package/dist/keyword-registry/index.cjs +29 -0
- package/dist/keyword-registry/index.d.ts +1 -0
- package/dist/keyword-registry/index.js +4 -0
- package/dist/math/tropical-spmv.cjs +11 -11
- package/dist/math/tropical-spmv.d.ts +1 -0
- package/dist/math/tropical-spmv.js +2 -2
- package/dist/math/tropicalSpmv.d.ts +43 -0
- package/dist/math/vec3.cjs +1 -1
- package/dist/math/vec3.js +1 -1
- package/dist/matter/StagedMatter.d.ts +82 -0
- package/dist/matter/index.cjs +17 -0
- package/dist/matter/index.d.ts +1 -0
- package/dist/matter/index.js +4 -0
- package/dist/{ml-dsa-Z7JDKW4L.js → ml-dsa-J6VKVT4K.js} +3 -3
- package/dist/{ml-dsa-FSKBTE3W.cjs → ml-dsa-MTIK4ZUQ.cjs} +23 -23
- package/dist/paper-0c-spike/index.cjs +1 -1
- package/dist/paper-0c-spike/index.js +1 -1
- package/dist/parameter-envelope/ParameterEnvelope.d.ts +128 -0
- package/dist/parameter-envelope/index.cjs +17 -0
- package/dist/parameter-envelope/index.d.ts +2 -0
- package/dist/parameter-envelope/index.js +4 -0
- package/dist/parser/HoloCompositionTypes.d.ts +2013 -0
- package/dist/parser/PipelineParser.d.ts +162 -0
- package/dist/parser.cjs +36 -20
- package/dist/parser.js +13 -9
- package/dist/plugin-manifest/ManifestAutoLoader.d.ts +35 -0
- package/dist/plugin-manifest/PluginManifest.d.ts +156 -0
- package/dist/plugin-manifest/index.cjs +25 -0
- package/dist/plugin-manifest/index.d.ts +2 -0
- package/dist/plugin-manifest/index.js +4 -0
- package/dist/plugin-solver-contract/PluginSolverContract.d.ts +288 -0
- package/dist/plugin-solver-contract/index.cjs +41 -0
- package/dist/plugin-solver-contract/index.d.ts +1 -0
- package/dist/plugin-solver-contract/index.js +4 -0
- package/dist/policy/ContentPolicyGate.d.ts +51 -0
- package/dist/policy/PolicyPack.d.ts +120 -0
- package/dist/policy/blocklist.d.ts +32 -0
- package/dist/policy/defaults.d.ts +44 -0
- package/dist/policy/index.cjs +106 -0
- package/dist/policy/index.d.ts +17 -0
- package/dist/policy/index.js +5 -0
- package/dist/policy/jsonLogic.d.ts +31 -0
- package/dist/policy/types.d.ts +174 -0
- package/dist/proof-composition/ProofCompositionLaw.d.ts +93 -0
- package/dist/proof-composition/index.cjs +25 -0
- package/dist/proof-composition/index.d.ts +1 -0
- package/dist/proof-composition/index.js +4 -0
- package/dist/receipts/hash-policy.d.ts +85 -0
- package/dist/reconstruction/index.cjs +75 -47
- package/dist/reconstruction/index.js +5 -5
- package/dist/runtime/plugin-trait-registrar.d.ts +36 -0
- package/dist/runtime.cjs +81 -79
- package/dist/runtime.js +9 -7
- package/dist/scene-presets-EDKYZ5GW.js +4 -0
- package/dist/scene-presets-NCW2CFRS.cjs +17 -0
- package/dist/self-improvement/index.cjs +1 -1
- package/dist/self-improvement/index.js +1 -1
- package/dist/{src-PT2FERDV.cjs → src-G3D7ZATQ.cjs} +545 -21
- package/dist/{src-J6CM4AUR.js → src-UXYA7HM6.js} +539 -16
- package/dist/storage/index.cjs +10 -10
- package/dist/storage/index.js +3 -3
- package/dist/testing.cjs +1 -1
- package/dist/testing.js +1 -1
- package/dist/tools/index.cjs +3631 -0
- package/dist/tools/index.js +3581 -0
- package/dist/traitDocs/traitDocs.cjs +9 -9
- package/dist/traitDocs/traitDocs.d.ts +1 -0
- package/dist/traitDocs/traitDocs.js +3 -3
- package/dist/traits/ControlLoopTrait.d.ts +154 -0
- package/dist/traits/KinematicChainTrait.d.ts +116 -0
- package/dist/traits/SensorSamplingTrait.d.ts +154 -0
- package/dist/traits/TraitTypes.d.ts +270 -0
- package/dist/traits/TransactionTrait.d.ts +121 -0
- package/dist/traits/botanical-lotus.cjs +54 -50
- package/dist/traits/botanical-lotus.js +2 -5
- package/dist/traits/control-loop.cjs +21 -0
- package/dist/traits/control-loop.d.ts +1 -0
- package/dist/traits/control-loop.js +4 -0
- package/dist/traits/engines/cloth-verlet.d.ts +65 -0
- package/dist/traits/engines/index.cjs +19 -19
- package/dist/traits/engines/index.d.ts +15 -275
- package/dist/traits/engines/index.js +3 -3
- package/dist/traits/engines/motion-data-schema.d.ts +119 -0
- package/dist/traits/engines/motion-matching.d.ts +102 -0
- package/dist/traits/engines/noise.d.ts +25 -0
- package/dist/traits/engines/onnx-adapter.d.ts +173 -0
- package/dist/traits/engines/onnx-motion-matching.d.ts +163 -0
- package/dist/traits/engines/pfnn-network.d.ts +92 -0
- package/dist/traits/engines/synthetic-walk-cycle.d.ts +38 -0
- package/dist/traits/engines/tensor-ops.d.ts +15 -0
- package/dist/traits/index.cjs +2789 -1259
- package/dist/traits/index.d.ts +35 -0
- package/dist/traits/index.js +1692 -411
- package/dist/traits/kinematic-chain.cjs +25 -0
- package/dist/traits/kinematic-chain.d.ts +1 -0
- package/dist/traits/kinematic-chain.js +4 -0
- package/dist/traits/sensor-sampling.cjs +33 -0
- package/dist/traits/sensor-sampling.d.ts +1 -0
- package/dist/traits/sensor-sampling.js +4 -0
- package/dist/traits/simulation-solver-factory.cjs +1 -1
- package/dist/traits/simulation-solver-factory.js +1 -1
- package/dist/traits/transaction.cjs +29 -0
- package/dist/traits/transaction.d.ts +1 -0
- package/dist/traits/transaction.js +4 -0
- package/dist/traits/webcam-gaze.cjs +1 -1
- package/dist/traits/webcam-gaze.js +1 -1
- package/dist/type-checker.cjs +7 -6
- package/dist/type-checker.js +5 -4
- package/dist/types/AdvancedTypeSystem.d.ts +489 -0
- package/dist/types/HoloScriptPlus.d.ts +810 -0
- package/dist/types/base.d.ts +248 -0
- package/dist/types.d.ts +799 -0
- package/dist/world/index.cjs +3 -4
- package/dist/world/index.js +3 -4
- package/dist/world-model/index.cjs +1 -1
- package/dist/world-model/index.js +1 -1
- package/dist/wot/index.cjs +1 -1
- package/dist/wot/index.js +1 -1
- package/package.json +135 -69
- package/dist/GLTFPipeline-3EJLL3TS.cjs +0 -38
- package/dist/GLTFPipeline-3OWJV2VK.js +0 -17
- package/dist/HoloScriptPlusParser-ADWRY5OS.cjs +0 -698
- package/dist/HoloScriptPlusParser-JLJDXHSC.js +0 -693
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +0 -27
- package/dist/HoloScriptPlusParser-WENAFEFV.js +0 -10
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +0 -19
- package/dist/HoloScriptRuntime-GJK6VJPH.js +0 -10
- package/dist/chunk-22Q5A6RV.js +0 -979
- package/dist/chunk-4C57PR42.js +0 -468
- package/dist/chunk-4W5G5QVL.cjs +0 -847
- package/dist/chunk-5ET6L4NS.js +0 -487
- package/dist/chunk-C4GSLCHE.cjs +0 -7153
- package/dist/chunk-F2G6CWFT.js +0 -7089
- package/dist/chunk-G6PNEASF.cjs +0 -814
- package/dist/chunk-GTA4Q3A3.js +0 -1491
- package/dist/chunk-HCCQLAA4.cjs +0 -74
- package/dist/chunk-HFSVMKM3.cjs +0 -72
- package/dist/chunk-KAIVDEIG.cjs +0 -4539
- package/dist/chunk-KQU64CIX.cjs +0 -1508
- package/dist/chunk-MSYSQ2AJ.js +0 -4533
- package/dist/chunk-NHJLP37F.js +0 -70
- package/dist/chunk-NHYRRAGI.cjs +0 -490
- package/dist/chunk-OIQYIIO3.cjs +0 -473
- package/dist/chunk-OL46QLBJ.js +0 -61
- package/dist/chunk-SKZPC5AG.cjs +0 -984
- package/dist/chunk-SLHLXUMO.js +0 -445
- package/dist/chunk-UOIGFQXC.cjs +0 -9750
- package/dist/chunk-UOL6Y5TD.cjs +0 -759
- package/dist/chunk-UVFI7XIR.cjs +0 -452
- package/dist/chunk-VEPGBETF.js +0 -844
- package/dist/chunk-XQ5MWMP2.js +0 -756
- package/dist/chunk-XT6JY5W5.js +0 -9684
- package/dist/chunk-YRRAUB35.js +0 -811
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +0 -73
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +0 -23
- package/dist/compiler/ar.cjs +0 -23
- package/dist/compiler/ar.js +0 -11
- package/dist/compiler/babylon.cjs +0 -21
- package/dist/compiler/babylon.js +0 -15
- package/dist/compiler/multi-layer.cjs +0 -24
- package/dist/compiler/multi-layer.js +0 -15
- package/dist/compiler/playcanvas.cjs +0 -19
- package/dist/compiler/playcanvas.js +0 -13
- package/dist/compiler/r3f.cjs +0 -39
- package/dist/compiler/r3f.d.ts +0 -22
- package/dist/compiler/r3f.js +0 -17
- package/dist/compiler/vrr.cjs +0 -24
- package/dist/compiler/vrr.js +0 -12
- package/dist/parser/NFTMarketplaceTypes.d.ts +0 -191
- package/dist/playwright-3AT3AKTV.cjs +0 -98673
- package/dist/playwright-VZPDVUEQ.js +0 -98660
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk2E6PP5UE_cjs = require('./chunk-2E6PP5UE.cjs');
|
|
4
|
+
var chunkPVODJEJ7_cjs = require('./chunk-PVODJEJ7.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 chunk2E6PP5UE_cjs.HoloScriptRuntime();
|
|
25
|
+
this.parser = new chunkPVODJEJ7_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-GILYQ5VH.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-GILYQ5VH.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN2ILK7BF_cjs = require('./chunk-N2ILK7BF.cjs');
|
|
4
4
|
|
|
5
5
|
// src/reconstruction/simulationContractBinding.ts
|
|
6
6
|
function assertHoloMapManifestContract(m) {
|
|
7
7
|
if (m.version !== "1.0.0") {
|
|
8
8
|
throw new Error(`HoloMap manifest version ${m.version} is not v1.0 contract`);
|
|
9
9
|
}
|
|
10
|
-
if (m.simulationContract.kind !==
|
|
10
|
+
if (m.simulationContract.kind !== chunkN2ILK7BF_cjs.HOLOMAP_SIMULATION_CONTRACT_KIND) {
|
|
11
11
|
throw new Error(`Unexpected SimulationContract kind: ${m.simulationContract.kind}`);
|
|
12
12
|
}
|
|
13
13
|
if (!m.simulationContract.replayFingerprint || m.simulationContract.replayFingerprint.length < 8) {
|
|
@@ -16,5 +16,5 @@ function assertHoloMapManifestContract(m) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
exports.assertHoloMapManifestContract = assertHoloMapManifestContract;
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-GKFCHGCM.cjs.map
|
|
20
|
+
//# sourceMappingURL=chunk-GKFCHGCM.cjs.map
|
|
@@ -108,7 +108,7 @@ function barabasiAlbertCsr(n, m, rng) {
|
|
|
108
108
|
guard++;
|
|
109
109
|
let tot = 0;
|
|
110
110
|
for (let u = 0; u < v; u++) tot += indeg[u] + 1;
|
|
111
|
-
|
|
111
|
+
const r = rng() * tot;
|
|
112
112
|
let acc = 0;
|
|
113
113
|
let pick = 0;
|
|
114
114
|
for (let u = 0; u < v; u++) {
|
|
@@ -172,5 +172,5 @@ function maxAbsDiff(a, b) {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
export { TROPICAL_INF, barabasiAlbertCsr, csrFromDense, erdosRenyiCsr, layeredNeuralCsr, maxAbsDiff, mulberry32, tropicalMinPlusSpmv, tropicalMinPlusSpmvDense };
|
|
175
|
-
//# sourceMappingURL=chunk-
|
|
176
|
-
//# sourceMappingURL=chunk-
|
|
175
|
+
//# sourceMappingURL=chunk-GLEJ2TLS.js.map
|
|
176
|
+
//# sourceMappingURL=chunk-GLEJ2TLS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computeContentHash } from './chunk-4R6SBXDB.js';
|
|
2
|
-
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError } from './chunk-
|
|
3
|
-
import { init_safeJsonParse, readJson } from './chunk-
|
|
2
|
+
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError } from './chunk-DUG3OQAS.js';
|
|
3
|
+
import { init_safeJsonParse, readJson } from './chunk-RAN3ECAS.js';
|
|
4
4
|
import { createHash } from 'crypto';
|
|
5
5
|
|
|
6
6
|
// src/compiler/TraitDependencyGraph.ts
|
|
@@ -725,7 +725,7 @@ var ImportResolver = class {
|
|
|
725
725
|
throw new Error(`File not found: '${canonicalPath}' (imported from '${importedBy}')`);
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
const { HoloScriptPlusParser } = await import('./HoloScriptPlusParser-
|
|
728
|
+
const { HoloScriptPlusParser } = await import('./HoloScriptPlusParser-FTMCGWXD.js');
|
|
729
729
|
const parser = new HoloScriptPlusParser({ enableTypeScriptImports: true });
|
|
730
730
|
const result = parser.parse(source);
|
|
731
731
|
if (!result.success && result.errors.length > 0) {
|
|
@@ -733,7 +733,7 @@ var ImportResolver = class {
|
|
|
733
733
|
`Parse error in '${canonicalPath}': ${result.errors[0]?.message ?? "unknown error"}`
|
|
734
734
|
);
|
|
735
735
|
}
|
|
736
|
-
const exports
|
|
736
|
+
const exports = this._extractExports(result);
|
|
737
737
|
const transitiveDeps = [];
|
|
738
738
|
const subImports = result.ast?.imports ?? [];
|
|
739
739
|
const baseDir = canonicalPath.replace(/\/[^/]+$/, "");
|
|
@@ -750,7 +750,7 @@ var ImportResolver = class {
|
|
|
750
750
|
errors
|
|
751
751
|
);
|
|
752
752
|
for (const [k, v] of subMod.exports) {
|
|
753
|
-
if (!exports
|
|
753
|
+
if (!exports.has(k)) exports.set(k, v);
|
|
754
754
|
}
|
|
755
755
|
} catch (err) {
|
|
756
756
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -766,7 +766,7 @@ var ImportResolver = class {
|
|
|
766
766
|
const mod = {
|
|
767
767
|
canonicalPath,
|
|
768
768
|
result,
|
|
769
|
-
exports
|
|
769
|
+
exports,
|
|
770
770
|
dependencies: transitiveDeps
|
|
771
771
|
};
|
|
772
772
|
this.cache.set(canonicalPath, mod);
|
|
@@ -840,11 +840,11 @@ var ImportResolver = class {
|
|
|
840
840
|
* 2. Fragment file: result.ast.root.children[] are nodes, each may have @export directives
|
|
841
841
|
*/
|
|
842
842
|
_extractExports(result) {
|
|
843
|
-
const exports
|
|
843
|
+
const exports = /* @__PURE__ */ new Map();
|
|
844
844
|
const ast = result.ast;
|
|
845
|
-
if (!ast) return exports
|
|
845
|
+
if (!ast) return exports;
|
|
846
846
|
const root = ast.root;
|
|
847
|
-
if (!root) return exports
|
|
847
|
+
if (!root) return exports;
|
|
848
848
|
const seen = /* @__PURE__ */ new Set();
|
|
849
849
|
const nodesToCheck = [];
|
|
850
850
|
const addNode = (n) => {
|
|
@@ -871,10 +871,10 @@ var ImportResolver = class {
|
|
|
871
871
|
const exportDir = directives.find((d) => d?.type === "export");
|
|
872
872
|
if (exportDir) {
|
|
873
873
|
const exportName = exportDir.exportName ?? nodeRec.id ?? nodeRec.name ?? nodeRec.type;
|
|
874
|
-
exports
|
|
874
|
+
exports.set(exportName, node);
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
return exports
|
|
877
|
+
return exports;
|
|
878
878
|
}
|
|
879
879
|
/**
|
|
880
880
|
* Default Node.js file reader. Only used on server-side / CLI.
|
|
@@ -2003,5 +2003,5 @@ var UnauthorizedIncrementalCompilerAccessError = class extends UnauthorizedCompi
|
|
|
2003
2003
|
};
|
|
2004
2004
|
|
|
2005
2005
|
export { IncrementalCompiler, TraitDependencyGraph, UnauthorizedIncrementalCompilerAccessError, createIncrementalCompiler, deserializeCache, globalTraitGraph, serializeCache };
|
|
2006
|
-
//# sourceMappingURL=chunk-
|
|
2007
|
-
//# sourceMappingURL=chunk-
|
|
2006
|
+
//# sourceMappingURL=chunk-GP3OKSKT.js.map
|
|
2007
|
+
//# sourceMappingURL=chunk-GP3OKSKT.js.map
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// src/traits/TransactionTrait.ts
|
|
2
|
+
function initState(config) {
|
|
3
|
+
return {
|
|
4
|
+
balance: config.initialBalance ?? 0,
|
|
5
|
+
escrow: config.initialEscrow ?? 0,
|
|
6
|
+
ledger: [],
|
|
7
|
+
seenKeys: /* @__PURE__ */ new Set()
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function getState(node, config) {
|
|
11
|
+
if (!node.__tx_state) node.__tx_state = initState(config);
|
|
12
|
+
return node.__tx_state;
|
|
13
|
+
}
|
|
14
|
+
function validateAmount(amount) {
|
|
15
|
+
if (!Number.isInteger(amount) || amount < 0) {
|
|
16
|
+
return { ok: false, action: "pay", amount, reason: "negative_amount" };
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
function checkDuplicate(state, key) {
|
|
21
|
+
if (!key) return false;
|
|
22
|
+
if (state.seenKeys.has(key)) return true;
|
|
23
|
+
state.seenKeys.add(key);
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
function commit(state, receipt) {
|
|
27
|
+
state.ledger.push({ ...receipt, index: state.ledger.length });
|
|
28
|
+
}
|
|
29
|
+
function debitBalance(state, action, amount, limit, idempotencyKey) {
|
|
30
|
+
const amtErr = validateAmount(amount);
|
|
31
|
+
if (amtErr) {
|
|
32
|
+
const r2 = { ...amtErr, action };
|
|
33
|
+
commit(state, r2);
|
|
34
|
+
return r2;
|
|
35
|
+
}
|
|
36
|
+
if (checkDuplicate(state, idempotencyKey)) {
|
|
37
|
+
return { ok: false, action, amount, idempotencyKey, reason: "duplicate" };
|
|
38
|
+
}
|
|
39
|
+
if (limit > 0 && amount > limit) {
|
|
40
|
+
const r2 = { ok: false, action, amount, idempotencyKey, reason: "limit_exceeded" };
|
|
41
|
+
commit(state, r2);
|
|
42
|
+
return r2;
|
|
43
|
+
}
|
|
44
|
+
if (amount > state.balance) {
|
|
45
|
+
const r2 = { ok: false, action, amount, idempotencyKey, reason: "insufficient_funds" };
|
|
46
|
+
commit(state, r2);
|
|
47
|
+
return r2;
|
|
48
|
+
}
|
|
49
|
+
state.balance -= amount;
|
|
50
|
+
const r = {
|
|
51
|
+
ok: true,
|
|
52
|
+
action,
|
|
53
|
+
amount,
|
|
54
|
+
idempotencyKey,
|
|
55
|
+
balanceAfter: state.balance,
|
|
56
|
+
escrowAfter: state.escrow
|
|
57
|
+
};
|
|
58
|
+
commit(state, r);
|
|
59
|
+
return r;
|
|
60
|
+
}
|
|
61
|
+
function stakeBalance(state, amount, limit, idempotencyKey) {
|
|
62
|
+
const amtErr = validateAmount(amount);
|
|
63
|
+
if (amtErr) {
|
|
64
|
+
const r2 = { ...amtErr, action: "stake" };
|
|
65
|
+
commit(state, r2);
|
|
66
|
+
return r2;
|
|
67
|
+
}
|
|
68
|
+
if (checkDuplicate(state, idempotencyKey)) {
|
|
69
|
+
return { ok: false, action: "stake", amount, idempotencyKey, reason: "duplicate" };
|
|
70
|
+
}
|
|
71
|
+
if (limit > 0 && amount > limit) {
|
|
72
|
+
const r2 = { ok: false, action: "stake", amount, idempotencyKey, reason: "limit_exceeded" };
|
|
73
|
+
commit(state, r2);
|
|
74
|
+
return r2;
|
|
75
|
+
}
|
|
76
|
+
if (amount > state.balance) {
|
|
77
|
+
const r2 = { ok: false, action: "stake", amount, idempotencyKey, reason: "insufficient_funds" };
|
|
78
|
+
commit(state, r2);
|
|
79
|
+
return r2;
|
|
80
|
+
}
|
|
81
|
+
state.balance -= amount;
|
|
82
|
+
state.escrow += amount;
|
|
83
|
+
const r = {
|
|
84
|
+
ok: true,
|
|
85
|
+
action: "stake",
|
|
86
|
+
amount,
|
|
87
|
+
idempotencyKey,
|
|
88
|
+
balanceAfter: state.balance,
|
|
89
|
+
escrowAfter: state.escrow
|
|
90
|
+
};
|
|
91
|
+
commit(state, r);
|
|
92
|
+
return r;
|
|
93
|
+
}
|
|
94
|
+
function unstakeBalance(state, amount, idempotencyKey) {
|
|
95
|
+
const amtErr = validateAmount(amount);
|
|
96
|
+
if (amtErr) {
|
|
97
|
+
const r2 = { ...amtErr, action: "unstake" };
|
|
98
|
+
commit(state, r2);
|
|
99
|
+
return r2;
|
|
100
|
+
}
|
|
101
|
+
if (checkDuplicate(state, idempotencyKey)) {
|
|
102
|
+
return { ok: false, action: "unstake", amount, idempotencyKey, reason: "duplicate" };
|
|
103
|
+
}
|
|
104
|
+
if (amount > state.escrow) {
|
|
105
|
+
const r2 = { ok: false, action: "unstake", amount, idempotencyKey, reason: "insufficient_escrow" };
|
|
106
|
+
commit(state, r2);
|
|
107
|
+
return r2;
|
|
108
|
+
}
|
|
109
|
+
state.escrow -= amount;
|
|
110
|
+
state.balance += amount;
|
|
111
|
+
const r = {
|
|
112
|
+
ok: true,
|
|
113
|
+
action: "unstake",
|
|
114
|
+
amount,
|
|
115
|
+
idempotencyKey,
|
|
116
|
+
balanceAfter: state.balance,
|
|
117
|
+
escrowAfter: state.escrow
|
|
118
|
+
};
|
|
119
|
+
commit(state, r);
|
|
120
|
+
return r;
|
|
121
|
+
}
|
|
122
|
+
function depositBalance(state, amount, idempotencyKey) {
|
|
123
|
+
const amtErr = validateAmount(amount);
|
|
124
|
+
if (amtErr) {
|
|
125
|
+
const r2 = { ...amtErr, action: "deposit" };
|
|
126
|
+
commit(state, r2);
|
|
127
|
+
return r2;
|
|
128
|
+
}
|
|
129
|
+
if (checkDuplicate(state, idempotencyKey)) {
|
|
130
|
+
return { ok: false, action: "deposit", amount, idempotencyKey, reason: "duplicate" };
|
|
131
|
+
}
|
|
132
|
+
state.balance += amount;
|
|
133
|
+
const r = {
|
|
134
|
+
ok: true,
|
|
135
|
+
action: "deposit",
|
|
136
|
+
amount,
|
|
137
|
+
idempotencyKey,
|
|
138
|
+
balanceAfter: state.balance,
|
|
139
|
+
escrowAfter: state.escrow
|
|
140
|
+
};
|
|
141
|
+
commit(state, r);
|
|
142
|
+
return r;
|
|
143
|
+
}
|
|
144
|
+
var transactionHandler = {
|
|
145
|
+
name: "transaction",
|
|
146
|
+
defaultConfig: {},
|
|
147
|
+
onAttach(node, config) {
|
|
148
|
+
const n = node;
|
|
149
|
+
n.__tx_state = initState(config);
|
|
150
|
+
n.__tx_last_receipt = null;
|
|
151
|
+
n.__tx_ledger = null;
|
|
152
|
+
},
|
|
153
|
+
onEvent(node, config, _ctx, event) {
|
|
154
|
+
const n = node;
|
|
155
|
+
const state = getState(n, config);
|
|
156
|
+
const limits = config.limits ?? {};
|
|
157
|
+
if (event.type === "transaction.pay") {
|
|
158
|
+
const req = event;
|
|
159
|
+
const r = debitBalance(state, "pay", req.amount, limits.payLimit ?? 0, req.idempotencyKey);
|
|
160
|
+
n.__tx_last_receipt = r;
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (event.type === "transaction.transfer") {
|
|
164
|
+
const req = event;
|
|
165
|
+
const r = debitBalance(state, "transfer", req.amount, limits.transferLimit ?? 0, req.idempotencyKey);
|
|
166
|
+
n.__tx_last_receipt = r;
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (event.type === "transaction.stake") {
|
|
170
|
+
const req = event;
|
|
171
|
+
const r = stakeBalance(state, req.amount, limits.stakeLimit ?? 0, req.idempotencyKey);
|
|
172
|
+
n.__tx_last_receipt = r;
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
if (event.type === "transaction.unstake") {
|
|
176
|
+
const req = event;
|
|
177
|
+
const r = unstakeBalance(state, req.amount, req.idempotencyKey);
|
|
178
|
+
n.__tx_last_receipt = r;
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
if (event.type === "transaction.deposit") {
|
|
182
|
+
const req = event;
|
|
183
|
+
const r = depositBalance(state, req.amount, req.idempotencyKey);
|
|
184
|
+
n.__tx_last_receipt = r;
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (event.type === "transaction.ledger") {
|
|
188
|
+
n.__tx_ledger = [...state.ledger];
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export { debitBalance, depositBalance, stakeBalance, transactionHandler, unstakeBalance };
|
|
195
|
+
//# sourceMappingURL=chunk-GTIPOEHN.js.map
|
|
196
|
+
//# sourceMappingURL=chunk-GTIPOEHN.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkQEDMOGF3_cjs = require('./chunk-QEDMOGF3.cjs');
|
|
4
|
+
var chunkZK7KX5CD_cjs = require('./chunk-ZK7KX5CD.cjs');
|
|
5
|
+
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
8
8
|
// src/compiler/WASMCompiler.ts
|
|
9
9
|
var WASMCompiler_exports = {};
|
|
10
|
-
|
|
10
|
+
chunkZHPMP447_cjs.__export(WASMCompiler_exports, {
|
|
11
11
|
WASMCompiler: () => exports.WASMCompiler,
|
|
12
12
|
compileASTToWASM: () => compileASTToWASM,
|
|
13
13
|
compileToWASM: () => compileToWASM,
|
|
@@ -19,17 +19,17 @@ function createWASMCompiler(options) {
|
|
|
19
19
|
}
|
|
20
20
|
function compileToWASM(composition, options) {
|
|
21
21
|
const compiler = new exports.WASMCompiler(options);
|
|
22
|
-
return compiler.compile(composition,
|
|
22
|
+
return compiler.compile(composition, chunkZK7KX5CD_cjs.createTestCompilerToken());
|
|
23
23
|
}
|
|
24
24
|
function compileASTToWASM(ast, options) {
|
|
25
25
|
const compiler = new exports.WASMCompiler(options);
|
|
26
26
|
return compiler.compileAST(ast);
|
|
27
27
|
}
|
|
28
28
|
var WASM_WAT_LIMITATIONS, WASM_BINARY_LIMITATIONS; exports.WASMCompiler = void 0; exports.WASMCompiler_default = void 0;
|
|
29
|
-
var init_WASMCompiler =
|
|
29
|
+
var init_WASMCompiler = chunkZHPMP447_cjs.__esm({
|
|
30
30
|
"src/compiler/WASMCompiler.ts"() {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
chunkZK7KX5CD_cjs.init_CompilerBase();
|
|
32
|
+
chunkQEDMOGF3_cjs.init_DomainBlockCompilerMixin();
|
|
33
33
|
WASM_WAT_LIMITATIONS = [
|
|
34
34
|
"Emits WebAssembly Text Format scaffolding only.",
|
|
35
35
|
'Does not return instantiable bytes unless format is set to "wasm".',
|
|
@@ -40,7 +40,7 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
40
40
|
"Lowers trait/lifecycle/event hooks to deterministic host event calls, not arbitrary user code.",
|
|
41
41
|
"Does not run a general-purpose WAT parser for unsupported custom WAT extensions."
|
|
42
42
|
];
|
|
43
|
-
exports.WASMCompiler = class extends
|
|
43
|
+
exports.WASMCompiler = class extends chunkZK7KX5CD_cjs.CompilerBase {
|
|
44
44
|
constructor(options = {}) {
|
|
45
45
|
super();
|
|
46
46
|
this.compilerName = "WASMCompiler";
|
|
@@ -100,11 +100,11 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
100
100
|
if (domainBlocks.length > 0) {
|
|
101
101
|
this.emit("");
|
|
102
102
|
this.emit(" ;; === v4.2 Domain Blocks ===");
|
|
103
|
-
|
|
103
|
+
chunkQEDMOGF3_cjs.compileDomainBlocks(
|
|
104
104
|
domainBlocks,
|
|
105
105
|
{
|
|
106
106
|
material: (block) => {
|
|
107
|
-
const mat =
|
|
107
|
+
const mat = chunkQEDMOGF3_cjs.compileMaterialBlock(block);
|
|
108
108
|
this.emit(
|
|
109
109
|
` ;; Material: "${this.escapeStringValue(mat.name, "TypeScript")}" type=${mat.type}`
|
|
110
110
|
);
|
|
@@ -925,7 +925,7 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
925
925
|
]);
|
|
926
926
|
}
|
|
927
927
|
binaryExportSection(functions, importedFunctionCount) {
|
|
928
|
-
const exports
|
|
928
|
+
const exports = [
|
|
929
929
|
[...this.encodeString("memory"), 2, ...this.encodeULEB(0)],
|
|
930
930
|
...functions.filter((fn) => !fn.name.startsWith("update_object_")).map((fn, index) => [
|
|
931
931
|
...this.encodeString(fn.name),
|
|
@@ -933,7 +933,7 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
933
933
|
...this.encodeULEB(importedFunctionCount + index)
|
|
934
934
|
])
|
|
935
935
|
];
|
|
936
|
-
return this.binaryVector(exports
|
|
936
|
+
return this.binaryVector(exports);
|
|
937
937
|
}
|
|
938
938
|
binaryCodeSection(functions) {
|
|
939
939
|
return this.binaryVector(
|
|
@@ -1116,6 +1116,7 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
1116
1116
|
// HELPERS
|
|
1117
1117
|
// ===========================================================================
|
|
1118
1118
|
emit(line) {
|
|
1119
|
+
if (line.length === 0) return;
|
|
1119
1120
|
const indent = " ".repeat(this.indentLevel);
|
|
1120
1121
|
this.lines.push(indent + line);
|
|
1121
1122
|
}
|
|
@@ -1185,5 +1186,5 @@ exports.compileASTToWASM = compileASTToWASM;
|
|
|
1185
1186
|
exports.compileToWASM = compileToWASM;
|
|
1186
1187
|
exports.createWASMCompiler = createWASMCompiler;
|
|
1187
1188
|
exports.init_WASMCompiler = init_WASMCompiler;
|
|
1188
|
-
//# sourceMappingURL=chunk-
|
|
1189
|
-
//# sourceMappingURL=chunk-
|
|
1189
|
+
//# sourceMappingURL=chunk-GZPUA2TL.cjs.map
|
|
1190
|
+
//# sourceMappingURL=chunk-GZPUA2TL.cjs.map
|
|
@@ -1,117 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
2
|
|
|
3
|
-
// src/events/EventBus.ts
|
|
4
|
-
var EventBus = class {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.listeners = /* @__PURE__ */ new Map();
|
|
7
|
-
this.history = [];
|
|
8
|
-
this.maxHistory = 100;
|
|
9
|
-
this.nextId = 0;
|
|
10
|
-
this.paused = false;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Subscribe to an event.
|
|
14
|
-
*/
|
|
15
|
-
on(event, callback, priority = 0) {
|
|
16
|
-
const id = this.nextId++;
|
|
17
|
-
const list = this.listeners.get(event) || [];
|
|
18
|
-
list.push({ callback, priority, once: false, id });
|
|
19
|
-
list.sort((a, b) => b.priority - a.priority);
|
|
20
|
-
this.listeners.set(event, list);
|
|
21
|
-
return id;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Subscribe to an event once (auto-removes after first fire).
|
|
25
|
-
*/
|
|
26
|
-
once(event, callback, priority = 0) {
|
|
27
|
-
const id = this.nextId++;
|
|
28
|
-
const list = this.listeners.get(event) || [];
|
|
29
|
-
list.push({ callback, priority, once: true, id });
|
|
30
|
-
list.sort((a, b) => b.priority - a.priority);
|
|
31
|
-
this.listeners.set(event, list);
|
|
32
|
-
return id;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Unsubscribe by listener ID.
|
|
36
|
-
*/
|
|
37
|
-
off(listenerId) {
|
|
38
|
-
for (const [event, list] of this.listeners) {
|
|
39
|
-
const idx = list.findIndex((l) => l.id === listenerId);
|
|
40
|
-
if (idx !== -1) {
|
|
41
|
-
list.splice(idx, 1);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Unsubscribe all listeners for an event.
|
|
48
|
-
*/
|
|
49
|
-
offAll(event) {
|
|
50
|
-
this.listeners.delete(event);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Emit an event to all subscribers.
|
|
54
|
-
*/
|
|
55
|
-
emit(event, data) {
|
|
56
|
-
if (this.paused) return;
|
|
57
|
-
this.history.push({ event, data, timestamp: Date.now() });
|
|
58
|
-
if (this.history.length > this.maxHistory) this.history.shift();
|
|
59
|
-
const list = this.listeners.get(event);
|
|
60
|
-
if (list) {
|
|
61
|
-
const toRemove = [];
|
|
62
|
-
for (const listener of list) {
|
|
63
|
-
listener.callback(data);
|
|
64
|
-
if (listener.once) toRemove.push(listener.id);
|
|
65
|
-
}
|
|
66
|
-
for (const id of toRemove) {
|
|
67
|
-
const idx = list.findIndex((l) => l.id === id);
|
|
68
|
-
if (idx !== -1) list.splice(idx, 1);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
if (event !== "*") {
|
|
72
|
-
const wildcardList = this.listeners.get("*");
|
|
73
|
-
if (wildcardList) {
|
|
74
|
-
for (const listener of wildcardList) {
|
|
75
|
-
listener.callback({ event, data });
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Get event history.
|
|
82
|
-
*/
|
|
83
|
-
getHistory() {
|
|
84
|
-
return [...this.history];
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Get listener count for an event.
|
|
88
|
-
*/
|
|
89
|
-
listenerCount(event) {
|
|
90
|
-
return this.listeners.get(event)?.length || 0;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Pause/resume event emission.
|
|
94
|
-
*/
|
|
95
|
-
setPaused(paused) {
|
|
96
|
-
this.paused = paused;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Clear all listeners and history.
|
|
100
|
-
*/
|
|
101
|
-
clear() {
|
|
102
|
-
this.listeners.clear();
|
|
103
|
-
this.history = [];
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
var sharedBus = null;
|
|
107
|
-
function getSharedEventBus() {
|
|
108
|
-
if (!sharedBus) sharedBus = new EventBus();
|
|
109
|
-
return sharedBus;
|
|
110
|
-
}
|
|
111
|
-
function setSharedEventBus(bus) {
|
|
112
|
-
sharedBus = bus;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
3
|
// src/monitoring/telemetry.ts
|
|
116
4
|
var TelemetryRegistry = class {
|
|
117
5
|
constructor() {
|
|
@@ -318,6 +206,6 @@ function definePeerNamespace(specifier) {
|
|
|
318
206
|
);
|
|
319
207
|
}
|
|
320
208
|
|
|
321
|
-
export {
|
|
322
|
-
//# sourceMappingURL=chunk-
|
|
323
|
-
//# sourceMappingURL=chunk-
|
|
209
|
+
export { definePeerNamespace, lazyPeerSymbol, telemetry };
|
|
210
|
+
//# sourceMappingURL=chunk-H4LJ4HEA.js.map
|
|
211
|
+
//# sourceMappingURL=chunk-H4LJ4HEA.js.map
|
|
@@ -110,7 +110,7 @@ function barabasiAlbertCsr(n, m, rng) {
|
|
|
110
110
|
guard++;
|
|
111
111
|
let tot = 0;
|
|
112
112
|
for (let u = 0; u < v; u++) tot += indeg[u] + 1;
|
|
113
|
-
|
|
113
|
+
const r = rng() * tot;
|
|
114
114
|
let acc = 0;
|
|
115
115
|
let pick = 0;
|
|
116
116
|
for (let u = 0; u < v; u++) {
|
|
@@ -182,5 +182,5 @@ exports.maxAbsDiff = maxAbsDiff;
|
|
|
182
182
|
exports.mulberry32 = mulberry32;
|
|
183
183
|
exports.tropicalMinPlusSpmv = tropicalMinPlusSpmv;
|
|
184
184
|
exports.tropicalMinPlusSpmvDense = tropicalMinPlusSpmvDense;
|
|
185
|
-
//# sourceMappingURL=chunk-
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
185
|
+
//# sourceMappingURL=chunk-HCX4SMFK.cjs.map
|
|
186
|
+
//# sourceMappingURL=chunk-HCX4SMFK.cjs.map
|
|
@@ -313,6 +313,28 @@ var SceneGraphGenerator = class {
|
|
|
313
313
|
if (npc.npcType) node["hs:npcType"] = npc.npcType;
|
|
314
314
|
if (npc.model) node["hs:model"] = npc.model;
|
|
315
315
|
if (npc.dialogueTree) node["hs:dialogueTree"] = npc.dialogueTree;
|
|
316
|
+
if (npc.position) {
|
|
317
|
+
node["hs:locatedAt"] = {
|
|
318
|
+
"@type": "hs:Position",
|
|
319
|
+
"hs:x": npc.position.x,
|
|
320
|
+
"hs:y": npc.position.y,
|
|
321
|
+
"hs:z": npc.position.z
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
if (npc.brain) {
|
|
325
|
+
const brain = {
|
|
326
|
+
"@type": "hs:AgentBrain",
|
|
327
|
+
"hs:brainType": npc.brain.brainType
|
|
328
|
+
};
|
|
329
|
+
if (npc.brain.autonomy) brain["hs:autonomy"] = npc.brain.autonomy;
|
|
330
|
+
if (npc.brain.brainRef) brain["hs:brainRef"] = npc.brain.brainRef;
|
|
331
|
+
if (npc.brain.toolPermissions?.length) brain["hs:canInteractWith"] = npc.brain.toolPermissions;
|
|
332
|
+
if (npc.brain.model) {
|
|
333
|
+
brain["hs:model"] = { "hs:provider": npc.brain.model.provider, "hs:name": npc.brain.model.name };
|
|
334
|
+
}
|
|
335
|
+
node["hs:brain"] = brain;
|
|
336
|
+
node["hs:hasAgency"] = true;
|
|
337
|
+
}
|
|
316
338
|
if (npc.properties?.length > 0) {
|
|
317
339
|
const props = {};
|
|
318
340
|
for (const prop of npc.properties) {
|
|
@@ -418,5 +440,5 @@ var SemanticSceneGraph = class {
|
|
|
418
440
|
var SemanticSceneGraph_default = SemanticSceneGraph;
|
|
419
441
|
|
|
420
442
|
export { SceneGraphGenerator, SemanticSceneGraph, SemanticSceneGraph_default, generateSemanticSceneGraph, generateSemanticSceneGraphObject };
|
|
421
|
-
//# sourceMappingURL=chunk-
|
|
422
|
-
//# sourceMappingURL=chunk-
|
|
443
|
+
//# sourceMappingURL=chunk-HHRZ6STP.js.map
|
|
444
|
+
//# sourceMappingURL=chunk-HHRZ6STP.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// src/parameter-envelope/ParameterEnvelope.ts
|
|
2
|
+
function isInEnvelope(value, record) {
|
|
3
|
+
const { min, max, allowed } = record;
|
|
4
|
+
if (typeof value === "number") {
|
|
5
|
+
if (min !== void 0 && value < min) return false;
|
|
6
|
+
if (max !== void 0 && value > max) return false;
|
|
7
|
+
} else if (min !== void 0 || max !== void 0) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
if (allowed !== void 0) {
|
|
11
|
+
if (!allowed.includes(value)) return false;
|
|
12
|
+
}
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
function checkParameterEnvelope(params, envelope) {
|
|
16
|
+
const violations = [];
|
|
17
|
+
for (const record of envelope) {
|
|
18
|
+
if (!(record.param in params)) continue;
|
|
19
|
+
const value = params[record.param];
|
|
20
|
+
if (isInEnvelope(value, record)) continue;
|
|
21
|
+
const verdict = record.onViolation ?? "error";
|
|
22
|
+
const rangeDesc = buildRangeDescription(record);
|
|
23
|
+
const unitSuffix = record.unit ? ` ${record.unit}` : "";
|
|
24
|
+
violations.push({
|
|
25
|
+
param: record.param,
|
|
26
|
+
value,
|
|
27
|
+
record,
|
|
28
|
+
verdict,
|
|
29
|
+
message: `Parameter "${record.param}" value ${JSON.stringify(value)}${unitSuffix} is outside its declared envelope (${rangeDesc})`
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const passed = violations.every((v) => v.verdict !== "error");
|
|
33
|
+
const redischarge = violations.some((v) => v.verdict === "redischarge");
|
|
34
|
+
return { passed, redischarge, violations };
|
|
35
|
+
}
|
|
36
|
+
function buildRangeDescription(record) {
|
|
37
|
+
const parts = [];
|
|
38
|
+
if (record.min !== void 0) parts.push(`min=${record.min}`);
|
|
39
|
+
if (record.max !== void 0) parts.push(`max=${record.max}`);
|
|
40
|
+
if (record.allowed !== void 0) {
|
|
41
|
+
parts.push(`allowed=[${record.allowed.map((v) => JSON.stringify(v)).join(", ")}]`);
|
|
42
|
+
}
|
|
43
|
+
return parts.length > 0 ? parts.join(", ") : "unconstrained";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { checkParameterEnvelope, isInEnvelope };
|
|
47
|
+
//# sourceMappingURL=chunk-HIDEIEFG.js.map
|
|
48
|
+
//# sourceMappingURL=chunk-HIDEIEFG.js.map
|