@holoscript/core 8.0.8 → 8.0.9

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.
Files changed (462) hide show
  1. package/bin/holoscript.cjs +5 -1
  2. package/dist/GLTFPipeline-L76YTXKA.js +15 -0
  3. package/dist/GLTFPipeline-ZWJN7GI6.cjs +36 -0
  4. package/dist/HoloCompositionParser-K76KTEEE.js +12 -0
  5. package/dist/HoloCompositionParser-UZH6Y4HO.cjs +45 -0
  6. package/dist/HoloScriptCodeParser-2D4ERFUZ.js +6 -0
  7. package/dist/HoloScriptCodeParser-UDRLDA7I.cjs +23 -0
  8. package/dist/HoloScriptPlusParser-FTMCGWXD.js +13 -0
  9. package/dist/HoloScriptPlusParser-LQR5GIKF.cjs +30 -0
  10. package/dist/HoloScriptRuntime-UTRLJI5L.js +12 -0
  11. package/dist/HoloScriptRuntime-YBYXJHJN.cjs +21 -0
  12. package/dist/SceneIRCompiler-63KA3M2F.js +17 -0
  13. package/dist/SceneIRCompiler-KWUFHZ4O.cjs +42 -0
  14. package/dist/{USDZExporter-AUHZODOF.cjs → USDZExporter-ML4UMIGC.cjs} +3 -3
  15. package/dist/{USDZExporter-GXB4AUSG.js → USDZExporter-ZFKLQ76G.js} +3 -3
  16. package/dist/agents/index.cjs +1 -1
  17. package/dist/agents/index.js +1 -1
  18. package/dist/audit/AuditLogger.d.ts +106 -0
  19. package/dist/audit/AuditQueryBuilder.d.ts +79 -0
  20. package/dist/audit/ComplianceReporter.d.ts +90 -0
  21. package/dist/audit/index.d.ts +13 -0
  22. package/dist/{chunk-FGMDMJM7.js → chunk-2BYAUHBO.js} +3 -3
  23. package/dist/{chunk-EDPYCLRC.cjs → chunk-2E6PP5UE.cjs} +83 -59
  24. package/dist/{chunk-GASCWJK5.js → chunk-2EGGAZT3.js} +65 -287
  25. package/dist/{chunk-SIEXCILW.js → chunk-2I3XAGMF.js} +3 -3
  26. package/dist/{chunk-OS533P33.cjs → chunk-2KKOYZYI.cjs} +1074 -1655
  27. package/dist/chunk-2MQKNDNH.js +51 -0
  28. package/dist/{chunk-7DMMMBCY.cjs → chunk-2X3IPCBK.cjs} +10 -10
  29. package/dist/chunk-2ZOTBO25.cjs +202 -0
  30. package/dist/chunk-356N4NPM.cjs +152 -0
  31. package/dist/{chunk-X3GJPRVK.cjs → chunk-36NPLOI4.cjs} +92 -81
  32. package/dist/{chunk-SLU6UPJI.cjs → chunk-37HHY7RH.cjs} +5 -5
  33. package/dist/{chunk-YDPEHCCI.cjs → chunk-3CDDRUER.cjs} +3 -118
  34. package/dist/chunk-3F7ZZWIN.js +1651 -0
  35. package/dist/chunk-3ILD7TKP.cjs +187 -0
  36. package/dist/{chunk-X27QRG4C.cjs → chunk-3IUHTGDD.cjs} +153 -41
  37. package/dist/{chunk-PXNZ6TME.js → chunk-4376VHNJ.js} +60 -36
  38. package/dist/{chunk-YKGPCZEE.cjs → chunk-4FIBOJW6.cjs} +10 -10
  39. package/dist/chunk-4Q7RKQQI.cjs +14195 -0
  40. package/dist/{chunk-YCM6QQRT.cjs → chunk-566ZB4LZ.cjs} +180 -8
  41. package/dist/{chunk-2Y3V22SG.js → chunk-5CURIYGT.js} +3 -3
  42. package/dist/{chunk-QBWNJXNR.js → chunk-5FYMCVBY.js} +5 -5
  43. package/dist/{chunk-ZA34AN3R.js → chunk-5LVFTGKH.js} +841 -12
  44. package/dist/chunk-63AUAIL6.js +48 -0
  45. package/dist/chunk-655FATJU.js +110 -0
  46. package/dist/{chunk-TQ377OLB.cjs → chunk-65S62L4D.cjs} +28 -22
  47. package/dist/chunk-6NTAZN5Z.cjs +502 -0
  48. package/dist/chunk-6TRX6AR2.js +9376 -0
  49. package/dist/chunk-6ZCCLKS2.cjs +51 -0
  50. package/dist/{chunk-MDR235RZ.js → chunk-734OB5SK.js} +721 -8
  51. package/dist/{chunk-Q2Q34NF3.js → chunk-77QI552M.js} +6 -6
  52. package/dist/{chunk-WKX5AMOY.js → chunk-7I74JWPW.js} +3 -3
  53. package/dist/{chunk-5FSKKMR7.cjs → chunk-7IDJDMPU.cjs} +232 -4
  54. package/dist/chunk-7VBKRGIZ.cjs +847 -0
  55. package/dist/{chunk-KCPHASCO.js → chunk-AATYYLYK.js} +5 -5
  56. package/dist/{chunk-WFKVS2K4.cjs → chunk-AUZRKIHQ.cjs} +1101 -55
  57. package/dist/{chunk-DTGBOSEM.cjs → chunk-AWXFEAQL.cjs} +12 -12
  58. package/dist/{chunk-THCK6ECW.js → chunk-B3CWTCK2.js} +231 -3
  59. package/dist/chunk-BCP4E7MD.cjs +997 -0
  60. package/dist/chunk-BG7RPYJP.js +91 -0
  61. package/dist/{chunk-VF257YKO.js → chunk-BP4KTMLY.js} +117 -5
  62. package/dist/{chunk-YN6IETRZ.js → chunk-BQJ3YBF3.js} +6424 -987
  63. package/dist/{chunk-KOUAQL2B.cjs → chunk-CANAL6CT.cjs} +1569 -168
  64. package/dist/{chunk-FDSGHPAK.js → chunk-CBSDJF3B.js} +3 -3
  65. package/dist/{chunk-FEWUHQNM.cjs → chunk-CFVK26P4.cjs} +4 -4
  66. package/dist/{chunk-M7K4LE66.cjs → chunk-CI33NINL.cjs} +4 -4
  67. package/dist/{chunk-2OWDB4FB.js → chunk-CKV5NYAE.js} +6 -6
  68. package/dist/{chunk-LPS5AMQD.cjs → chunk-CM4NHXVO.cjs} +24 -24
  69. package/dist/chunk-D3HSRXYB.js +115 -0
  70. package/dist/{chunk-FNHJRI32.js → chunk-DBH3D2MU.js} +1561 -160
  71. package/dist/{chunk-GW3LKD5C.js → chunk-DJNH4HFW.js} +3 -3
  72. package/dist/{chunk-2GCNOI2U.cjs → chunk-DN6F4DHH.cjs} +9 -3
  73. package/dist/chunk-DQRJ5RJG.js +432 -0
  74. package/dist/{chunk-C7ZBSV2Q.js → chunk-DUG3OQAS.js} +106 -43
  75. package/dist/chunk-ECUYJOJ2.cjs +199 -0
  76. package/dist/chunk-EEMTCAK7.js +182 -0
  77. package/dist/{chunk-3SKLAUDD.cjs → chunk-EI3J6LTW.cjs} +359 -581
  78. package/dist/{chunk-SSSN7VAM.js → chunk-EM2OGPYE.js} +4 -4
  79. package/dist/{chunk-56VOWURB.cjs → chunk-ENZCIQZC.cjs} +522 -453
  80. package/dist/chunk-ESBXUYOC.cjs +836 -0
  81. package/dist/{chunk-L5U4W6JC.js → chunk-ESSEF6U2.js} +4 -4
  82. package/dist/chunk-ET3AN4W3.js +824 -0
  83. package/dist/chunk-EXKSFGSX.cjs +14 -14
  84. package/dist/{chunk-I76GIKN7.cjs → chunk-F3YT6GUF.cjs} +17 -17
  85. package/dist/{chunk-WRWEX5ZF.js → chunk-F75DZBBI.js} +3 -3
  86. package/dist/{chunk-4JGRWHZJ.js → chunk-FG6PYGIZ.js} +12 -6
  87. package/dist/chunk-FGGJQRLZ.js +14 -14
  88. package/dist/{chunk-SXOSDZD6.js → chunk-FWCHPCD4.js} +128 -10
  89. package/dist/{chunk-XW6IXEQH.cjs → chunk-G35CAQ7I.cjs} +5 -5
  90. package/dist/{chunk-7VMGP2FW.js → chunk-G6KACNMO.js} +132 -188
  91. package/dist/{chunk-FJPADH77.cjs → chunk-GAWJJAGT.cjs} +6 -6
  92. package/dist/chunk-GGR7QUKK.cjs +4724 -0
  93. package/dist/chunk-GIBF4BHH.js +14098 -0
  94. package/dist/{chunk-AWB7QYY6.cjs → chunk-GILYQ5VH.cjs} +6 -6
  95. package/dist/{chunk-FWVYAMNW.cjs → chunk-GKFCHGCM.cjs} +4 -4
  96. package/dist/{chunk-Y3ZFVUUU.js → chunk-GLEJ2TLS.js} +3 -3
  97. package/dist/{chunk-3GWWJT7L.js → chunk-GP3OKSKT.js} +13 -13
  98. package/dist/chunk-GTIPOEHN.js +196 -0
  99. package/dist/{chunk-LMJ5EBV7.cjs → chunk-GZPUA2TL.cjs} +16 -15
  100. package/dist/{chunk-IELX2OKI.js → chunk-H4LJ4HEA.js} +3 -115
  101. package/dist/{chunk-ACVWFGBI.cjs → chunk-HCX4SMFK.cjs} +3 -3
  102. package/dist/{chunk-HYNTS5CP.js → chunk-HHRZ6STP.js} +24 -2
  103. package/dist/chunk-HIDEIEFG.js +48 -0
  104. package/dist/{chunk-W6RW64BB.cjs → chunk-HSWBIDZM.cjs} +228 -5
  105. package/dist/{chunk-GSOUNWEL.js → chunk-HVX7QQYK.js} +1035 -1616
  106. package/dist/{chunk-TRCGG42I.cjs → chunk-IFW5IW4L.cjs} +6502 -1019
  107. package/dist/{chunk-F5LKJ6F5.cjs → chunk-IJU6AS67.cjs} +32 -28
  108. package/dist/{chunk-TVANHNJ7.js → chunk-IK6Z2HNC.js} +173 -3
  109. package/dist/{chunk-QGMUTVVH.cjs → chunk-IS7NTKY5.cjs} +20 -20
  110. package/dist/{chunk-YFVQWSNJ.js → chunk-IXWGYWH6.js} +3 -3
  111. package/dist/chunk-J2DAS2PL.js +148 -0
  112. package/dist/chunk-JBQXZIWB.js +148 -0
  113. package/dist/chunk-JBYBMBMW.js +261 -0
  114. package/dist/{chunk-LWUOUCYL.js → chunk-JEJ7TT54.js} +5 -5
  115. package/dist/{chunk-DUCB6LGL.js → chunk-JOTCTHN5.js} +211 -5
  116. package/dist/{chunk-47RUFYKR.js → chunk-K56UVEXV.js} +3 -3
  117. package/dist/{chunk-XSFNHP2E.js → chunk-KB26H447.js} +3 -3
  118. package/dist/{chunk-3NGDZZR4.js → chunk-KEYG7HGY.js} +430 -37
  119. package/dist/{chunk-DY72BMU5.js → chunk-KFVNCW4Q.js} +4 -4
  120. package/dist/chunk-KPGC7SK2.js +192 -0
  121. package/dist/chunk-KROXXBK5.cjs +53 -0
  122. package/dist/{chunk-ZPZAVHXL.cjs → chunk-LB3ZZMKT.cjs} +137 -19
  123. package/dist/chunk-LDYZWNJW.cjs +1654 -0
  124. package/dist/{chunk-ULMSSHCJ.cjs → chunk-LMB555QB.cjs} +405 -38
  125. package/dist/{chunk-CBJY23VL.js → chunk-MD4IVS42.js} +3 -3
  126. package/dist/{chunk-VMLKSV26.js → chunk-MDDWEBCX.js} +226 -3
  127. package/dist/chunk-MUWH4QK5.cjs +94 -0
  128. package/dist/{chunk-T6W3Z3SH.cjs → chunk-N2ILK7BF.cjs} +4 -4
  129. package/dist/{chunk-6EX3I5P4.cjs → chunk-N74QRJGP.cjs} +6 -6
  130. package/dist/chunk-NFFHLX37.cjs +132 -0
  131. package/dist/chunk-NJSYWX7H.js +190 -0
  132. package/dist/{chunk-SH5PPVK7.cjs → chunk-NQN5LFN4.cjs} +165 -221
  133. package/dist/chunk-NTQRFOPP.cjs +56 -0
  134. package/dist/{chunk-YFWRJW4B.js → chunk-NWMJPTVL.js} +51 -55
  135. package/dist/{chunk-63ZGNR2T.cjs → chunk-OC6GV5QH.cjs} +42 -42
  136. package/dist/{chunk-7E7GCQCK.js → chunk-OG3MBHM3.js} +9 -3
  137. package/dist/chunk-OMNHTCS4.cjs +264 -0
  138. package/dist/chunk-OQXB6NNC.cjs +117 -0
  139. package/dist/{chunk-Y57W2CT5.cjs → chunk-OV46CCA2.cjs} +51 -55
  140. package/dist/{chunk-6PRZIHGL.cjs → chunk-OV6HHKLE.cjs} +21 -266
  141. package/dist/{chunk-C37BHB7N.cjs → chunk-P26YYPOO.cjs} +5 -5
  142. package/dist/{chunk-2BZHWUSR.cjs → chunk-P7JEKJTZ.cjs} +16 -16
  143. package/dist/{chunk-NGBXXZLL.cjs → chunk-PDXX5UI4.cjs} +45 -45
  144. package/dist/{chunk-FHQFPYV4.js → chunk-PJFTTSKE.js} +8 -7
  145. package/dist/{chunk-GVFJ6T4S.cjs → chunk-PVODJEJ7.cjs} +721 -8
  146. package/dist/{chunk-ZZ7RO2UQ.js → chunk-Q265VZJ4.js} +3 -3
  147. package/dist/{chunk-E7JP3BS3.cjs → chunk-Q47JEE2C.cjs} +4 -4
  148. package/dist/chunk-QBY7LRN2.js +281 -0
  149. package/dist/{chunk-Z6PMDS4G.js → chunk-QDQWKSU3.js} +1090 -53
  150. package/dist/{chunk-GH6C2QGW.cjs → chunk-QEDMOGF3.cjs} +857 -16
  151. package/dist/{chunk-5WUNN6ZN.cjs → chunk-QHSAVOOL.cjs} +24 -2
  152. package/dist/chunk-QJNCDVYM.cjs +137 -0
  153. package/dist/chunk-QM7FJB5W.js +4717 -0
  154. package/dist/chunk-QQFB4RT2.cjs +448 -0
  155. package/dist/chunk-QSYBHQAD.cjs +196 -0
  156. package/dist/{chunk-UGXHYIWT.cjs → chunk-QUJ3ZB55.cjs} +28 -28
  157. package/dist/{chunk-2YSNA2F2.cjs → chunk-QVJMDVYZ.cjs} +5 -5
  158. package/dist/chunk-RAJMAX6D.js +131 -0
  159. package/dist/{chunk-VVKVQZI6.js → chunk-RAN3ECAS.js} +3 -3
  160. package/dist/chunk-RKGUZBOC.js +79 -0
  161. package/dist/{chunk-HLFDZ35S.cjs → chunk-RRQIAJLQ.cjs} +8 -8
  162. package/dist/{chunk-PABONWKI.js → chunk-RXQNRZ5F.js} +3 -3
  163. package/dist/{chunk-7ZHYEITD.cjs → chunk-S4O7CFHQ.cjs} +10 -11
  164. package/dist/chunk-SE7ANBGN.js +128 -0
  165. package/dist/{chunk-X2AVEAZM.cjs → chunk-SJIRCTIS.cjs} +176 -2
  166. package/dist/{chunk-WXQ57LAO.js → chunk-SQXAZHDG.js} +4 -4
  167. package/dist/chunk-SR73L5ZP.cjs +84 -0
  168. package/dist/{chunk-OABEO6HH.js → chunk-SZOLTWWD.js} +2349 -214
  169. package/dist/{chunk-5JEU52DW.js → chunk-TPZ3BN2D.js} +3 -3
  170. package/dist/{chunk-QFU53KRH.js → chunk-TSTFYGGX.js} +4 -5
  171. package/dist/{chunk-EBS32AJI.cjs → chunk-TZCFKZ6Z.cjs} +5 -5
  172. package/dist/chunk-UCVZXQ63.js +724 -0
  173. package/dist/chunk-UGQ3QNV6.js +992 -0
  174. package/dist/chunk-UNMVGZVW.js +142 -0
  175. package/dist/{chunk-TEVX443G.js → chunk-UTUD6GJI.js} +178 -6
  176. package/dist/chunk-UXBYA7DV.cjs +155 -0
  177. package/dist/chunk-V6GXFSK7.cjs +443 -0
  178. package/dist/chunk-VHORVGCG.cjs +761 -0
  179. package/dist/{chunk-B4EKV6HQ.js → chunk-VKCTYLDN.js} +500 -442
  180. package/dist/{chunk-O3MGZDCT.cjs → chunk-VTEXJOSD.cjs} +63 -63
  181. package/dist/chunk-VVAAZITA.cjs +287 -0
  182. package/dist/{chunk-V7AKE5VT.cjs → chunk-W2GA3EQB.cjs} +435 -42
  183. package/dist/chunk-W4GABFCR.js +37 -0
  184. package/dist/chunk-WKEK4NCA.js +490 -0
  185. package/dist/{chunk-5A4TCHOC.cjs → chunk-WNYXT4TE.cjs} +4 -4
  186. package/dist/{chunk-S762UEV5.js → chunk-WTH23ISI.js} +6 -6
  187. package/dist/{chunk-BTKZGHAV.js → chunk-WWNCM473.js} +10 -6
  188. package/dist/{chunk-7X5PNIQJ.js → chunk-X3YFRH6K.js} +27 -25
  189. package/dist/{chunk-4YNYPHH3.cjs → chunk-X75H75UY.cjs} +2351 -213
  190. package/dist/{chunk-LYJJI7ZK.cjs → chunk-XCUDDFKC.cjs} +216 -9
  191. package/dist/chunk-YAO4HPJL.cjs +120 -0
  192. package/dist/chunk-YKY2JBER.cjs +9443 -0
  193. package/dist/chunk-YP5CHEYU.cjs +154 -0
  194. package/dist/{chunk-WRNEH5MO.js → chunk-YW3I2FQL.js} +18 -7
  195. package/dist/{chunk-BRNUPDHJ.js → chunk-Z557DVYN.js} +386 -19
  196. package/dist/{chunk-VSACG2AR.js → chunk-Z6LZUYZF.js} +21 -264
  197. package/dist/chunk-ZHPMP447.cjs +43 -0
  198. package/dist/{chunk-LODTHGST.cjs → chunk-ZK7KX5CD.cjs} +133 -70
  199. package/dist/{chunk-CCPSNT6B.cjs → chunk-ZRPALBQB.cjs} +5 -5
  200. package/dist/chunk-ZVFHPMC5.js +824 -0
  201. package/dist/chunk-ZVQMKUGJ.js +443 -0
  202. package/dist/cli/holoscript-runner.cjs +86 -48
  203. package/dist/cli/holoscript-runner.js +54 -16
  204. package/dist/codebase/index.cjs +1 -1
  205. package/dist/codebase/index.js +1 -1
  206. package/dist/compiler/agent-inference.cjs +11 -11
  207. package/dist/compiler/agent-inference.js +9 -6
  208. package/dist/compiler/android-xr.cjs +13 -12
  209. package/dist/compiler/android-xr.js +11 -10
  210. package/dist/compiler/android.cjs +12 -12
  211. package/dist/compiler/android.js +10 -10
  212. package/dist/compiler/business-quest.cjs +10 -10
  213. package/dist/compiler/business-quest.js +2 -2
  214. package/dist/compiler/coco.cjs +1 -1
  215. package/dist/compiler/coco.js +1 -1
  216. package/dist/compiler/context.cjs +9 -9
  217. package/dist/compiler/context.js +6 -6
  218. package/dist/compiler/daimon-seed.cjs +36 -0
  219. package/dist/compiler/daimon-seed.js +12 -0
  220. package/dist/compiler/domain-block-utils.cjs +205 -156
  221. package/dist/compiler/domain-block-utils.js +8 -7
  222. package/dist/compiler/dtdl.cjs +10 -10
  223. package/dist/compiler/dtdl.js +7 -7
  224. package/dist/compiler/gltf-pipeline.cjs +9 -9
  225. package/dist/compiler/gltf-pipeline.js +2 -2
  226. package/dist/compiler/godot.cjs +10 -9
  227. package/dist/compiler/godot.js +9 -8
  228. package/dist/compiler/incremental.cjs +11 -11
  229. package/dist/compiler/incremental.js +6 -6
  230. package/dist/compiler/index.cjs +2585 -3273
  231. package/dist/compiler/index.d.ts +149 -35
  232. package/dist/compiler/index.js +2197 -3102
  233. package/dist/compiler/ios.cjs +11 -11
  234. package/dist/compiler/ios.js +9 -9
  235. package/dist/compiler/llm-provider-capabilities.cjs +9 -9
  236. package/dist/compiler/llm-provider-capabilities.js +6 -6
  237. package/dist/compiler/nodetoy.cjs +1 -1
  238. package/dist/compiler/nodetoy.js +1 -1
  239. package/dist/compiler/openxr.cjs +11 -10
  240. package/dist/compiler/openxr.js +10 -9
  241. package/dist/compiler/remotion.cjs +1 -1
  242. package/dist/compiler/remotion.js +1 -1
  243. package/dist/compiler/reproducibility.cjs +1 -1
  244. package/dist/compiler/reproducibility.js +1 -1
  245. package/dist/compiler/sdf.cjs +11 -10
  246. package/dist/compiler/sdf.js +9 -8
  247. package/dist/compiler/semantic-scene.cjs +7 -7
  248. package/dist/compiler/semantic-scene.js +2 -2
  249. package/dist/compiler/state.cjs +9 -9
  250. package/dist/compiler/state.js +7 -7
  251. package/dist/compiler/trait-composition.cjs +11 -11
  252. package/dist/compiler/trait-composition.js +7 -7
  253. package/dist/compiler/traits/ProvenanceSemiring.d.ts +167 -0
  254. package/dist/compiler/traits/Semiring.d.ts +26 -0
  255. package/dist/compiler/unity.cjs +11 -10
  256. package/dist/compiler/unity.js +10 -9
  257. package/dist/compiler/unreal.cjs +12 -11
  258. package/dist/compiler/unreal.js +10 -9
  259. package/dist/compiler/urdf.cjs +18 -17
  260. package/dist/compiler/urdf.js +9 -8
  261. package/dist/compiler/usd-physics.cjs +11 -10
  262. package/dist/compiler/usd-physics.js +8 -7
  263. package/dist/compiler/visionos.cjs +11 -10
  264. package/dist/compiler/visionos.js +10 -9
  265. package/dist/compiler/vrchat.cjs +11 -10
  266. package/dist/compiler/vrchat.js +9 -8
  267. package/dist/compiler/wasm.cjs +14 -13
  268. package/dist/compiler/wasm.js +9 -8
  269. package/dist/compiler/webgpu.cjs +10 -9
  270. package/dist/compiler/webgpu.js +9 -8
  271. package/dist/constants.cjs +398 -0
  272. package/dist/constants.js +9 -0
  273. package/dist/coordinators/index.cjs +4 -1
  274. package/dist/coordinators/index.js +4 -1
  275. package/dist/debugger.cjs +11 -9
  276. package/dist/debugger.js +9 -7
  277. package/dist/{dist-ACXG6IH5.cjs → dist-GRMOP2UL.cjs} +341 -65
  278. package/dist/{dist-VD4L6V7Q.js → dist-ZBUKU2JG.js} +333 -63
  279. package/dist/entries/interop.cjs +23 -23
  280. package/dist/entries/interop.js +3 -3
  281. package/dist/entries/scripting.cjs +12 -11
  282. package/dist/entries/scripting.js +8 -7
  283. package/dist/evolution/index.cjs +66 -0
  284. package/dist/evolution/index.d.ts +162 -0
  285. package/dist/evolution/index.js +17 -0
  286. package/dist/hololand/index.cjs +41 -37
  287. package/dist/hololand/index.js +3 -3
  288. package/dist/index.cjs +12394 -3224
  289. package/dist/index.d.ts +260 -18
  290. package/dist/index.js +10755 -2182
  291. package/dist/keyword-registry/PluginKeywordRegistry.d.ts +138 -0
  292. package/dist/keyword-registry/index.cjs +29 -0
  293. package/dist/keyword-registry/index.d.ts +1 -0
  294. package/dist/keyword-registry/index.js +4 -0
  295. package/dist/math/tropical-spmv.cjs +11 -11
  296. package/dist/math/tropical-spmv.d.ts +1 -0
  297. package/dist/math/tropical-spmv.js +2 -2
  298. package/dist/math/tropicalSpmv.d.ts +43 -0
  299. package/dist/math/vec3.cjs +1 -1
  300. package/dist/math/vec3.js +1 -1
  301. package/dist/matter/StagedMatter.d.ts +82 -0
  302. package/dist/matter/index.cjs +17 -0
  303. package/dist/matter/index.d.ts +1 -0
  304. package/dist/matter/index.js +4 -0
  305. package/dist/{ml-dsa-Z7JDKW4L.js → ml-dsa-J6VKVT4K.js} +3 -3
  306. package/dist/{ml-dsa-FSKBTE3W.cjs → ml-dsa-MTIK4ZUQ.cjs} +23 -23
  307. package/dist/paper-0c-spike/index.cjs +1 -1
  308. package/dist/paper-0c-spike/index.js +1 -1
  309. package/dist/parameter-envelope/ParameterEnvelope.d.ts +128 -0
  310. package/dist/parameter-envelope/index.cjs +17 -0
  311. package/dist/parameter-envelope/index.d.ts +2 -0
  312. package/dist/parameter-envelope/index.js +4 -0
  313. package/dist/parser/HoloCompositionTypes.d.ts +2013 -0
  314. package/dist/parser/PipelineParser.d.ts +162 -0
  315. package/dist/parser.cjs +36 -20
  316. package/dist/parser.js +13 -9
  317. package/dist/plugin-manifest/ManifestAutoLoader.d.ts +35 -0
  318. package/dist/plugin-manifest/PluginManifest.d.ts +156 -0
  319. package/dist/plugin-manifest/index.cjs +25 -0
  320. package/dist/plugin-manifest/index.d.ts +2 -0
  321. package/dist/plugin-manifest/index.js +4 -0
  322. package/dist/plugin-solver-contract/PluginSolverContract.d.ts +288 -0
  323. package/dist/plugin-solver-contract/index.cjs +41 -0
  324. package/dist/plugin-solver-contract/index.d.ts +1 -0
  325. package/dist/plugin-solver-contract/index.js +4 -0
  326. package/dist/policy/ContentPolicyGate.d.ts +51 -0
  327. package/dist/policy/PolicyPack.d.ts +120 -0
  328. package/dist/policy/blocklist.d.ts +32 -0
  329. package/dist/policy/defaults.d.ts +44 -0
  330. package/dist/policy/index.cjs +106 -0
  331. package/dist/policy/index.d.ts +17 -0
  332. package/dist/policy/index.js +5 -0
  333. package/dist/policy/jsonLogic.d.ts +31 -0
  334. package/dist/policy/types.d.ts +174 -0
  335. package/dist/proof-composition/ProofCompositionLaw.d.ts +93 -0
  336. package/dist/proof-composition/index.cjs +25 -0
  337. package/dist/proof-composition/index.d.ts +1 -0
  338. package/dist/proof-composition/index.js +4 -0
  339. package/dist/receipts/hash-policy.d.ts +85 -0
  340. package/dist/reconstruction/index.cjs +75 -47
  341. package/dist/reconstruction/index.js +5 -5
  342. package/dist/runtime/plugin-trait-registrar.d.ts +36 -0
  343. package/dist/runtime.cjs +81 -79
  344. package/dist/runtime.js +9 -7
  345. package/dist/scene-presets-EDKYZ5GW.js +4 -0
  346. package/dist/scene-presets-NCW2CFRS.cjs +17 -0
  347. package/dist/self-improvement/index.cjs +1 -1
  348. package/dist/self-improvement/index.js +1 -1
  349. package/dist/{src-PT2FERDV.cjs → src-G3D7ZATQ.cjs} +545 -21
  350. package/dist/{src-J6CM4AUR.js → src-UXYA7HM6.js} +539 -16
  351. package/dist/storage/index.cjs +10 -10
  352. package/dist/storage/index.js +3 -3
  353. package/dist/testing.cjs +1 -1
  354. package/dist/testing.js +1 -1
  355. package/dist/tools/index.cjs +3631 -0
  356. package/dist/tools/index.js +3581 -0
  357. package/dist/traitDocs/traitDocs.cjs +9 -9
  358. package/dist/traitDocs/traitDocs.d.ts +1 -0
  359. package/dist/traitDocs/traitDocs.js +3 -3
  360. package/dist/traits/ControlLoopTrait.d.ts +154 -0
  361. package/dist/traits/KinematicChainTrait.d.ts +116 -0
  362. package/dist/traits/SensorSamplingTrait.d.ts +154 -0
  363. package/dist/traits/TraitTypes.d.ts +270 -0
  364. package/dist/traits/TransactionTrait.d.ts +121 -0
  365. package/dist/traits/botanical-lotus.cjs +54 -50
  366. package/dist/traits/botanical-lotus.js +2 -5
  367. package/dist/traits/control-loop.cjs +21 -0
  368. package/dist/traits/control-loop.d.ts +1 -0
  369. package/dist/traits/control-loop.js +4 -0
  370. package/dist/traits/engines/cloth-verlet.d.ts +65 -0
  371. package/dist/traits/engines/index.cjs +19 -19
  372. package/dist/traits/engines/index.d.ts +15 -275
  373. package/dist/traits/engines/index.js +3 -3
  374. package/dist/traits/engines/motion-data-schema.d.ts +119 -0
  375. package/dist/traits/engines/motion-matching.d.ts +102 -0
  376. package/dist/traits/engines/noise.d.ts +25 -0
  377. package/dist/traits/engines/onnx-adapter.d.ts +173 -0
  378. package/dist/traits/engines/onnx-motion-matching.d.ts +163 -0
  379. package/dist/traits/engines/pfnn-network.d.ts +92 -0
  380. package/dist/traits/engines/synthetic-walk-cycle.d.ts +38 -0
  381. package/dist/traits/engines/tensor-ops.d.ts +15 -0
  382. package/dist/traits/index.cjs +2789 -1259
  383. package/dist/traits/index.d.ts +35 -0
  384. package/dist/traits/index.js +1692 -411
  385. package/dist/traits/kinematic-chain.cjs +25 -0
  386. package/dist/traits/kinematic-chain.d.ts +1 -0
  387. package/dist/traits/kinematic-chain.js +4 -0
  388. package/dist/traits/sensor-sampling.cjs +33 -0
  389. package/dist/traits/sensor-sampling.d.ts +1 -0
  390. package/dist/traits/sensor-sampling.js +4 -0
  391. package/dist/traits/simulation-solver-factory.cjs +1 -1
  392. package/dist/traits/simulation-solver-factory.js +1 -1
  393. package/dist/traits/transaction.cjs +29 -0
  394. package/dist/traits/transaction.d.ts +1 -0
  395. package/dist/traits/transaction.js +4 -0
  396. package/dist/traits/webcam-gaze.cjs +1 -1
  397. package/dist/traits/webcam-gaze.js +1 -1
  398. package/dist/type-checker.cjs +7 -6
  399. package/dist/type-checker.js +5 -4
  400. package/dist/types/AdvancedTypeSystem.d.ts +489 -0
  401. package/dist/types/HoloScriptPlus.d.ts +810 -0
  402. package/dist/types/base.d.ts +248 -0
  403. package/dist/types.d.ts +799 -0
  404. package/dist/world/index.cjs +3 -4
  405. package/dist/world/index.js +3 -4
  406. package/dist/world-model/index.cjs +1 -1
  407. package/dist/world-model/index.js +1 -1
  408. package/dist/wot/index.cjs +1 -1
  409. package/dist/wot/index.js +1 -1
  410. package/package.json +113 -46
  411. package/dist/GLTFPipeline-3EJLL3TS.cjs +0 -38
  412. package/dist/GLTFPipeline-3OWJV2VK.js +0 -17
  413. package/dist/HoloScriptPlusParser-ADWRY5OS.cjs +0 -698
  414. package/dist/HoloScriptPlusParser-JLJDXHSC.js +0 -693
  415. package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +0 -27
  416. package/dist/HoloScriptPlusParser-WENAFEFV.js +0 -10
  417. package/dist/HoloScriptRuntime-GGRVEU4T.cjs +0 -19
  418. package/dist/HoloScriptRuntime-GJK6VJPH.js +0 -10
  419. package/dist/chunk-22Q5A6RV.js +0 -979
  420. package/dist/chunk-4C57PR42.js +0 -468
  421. package/dist/chunk-4W5G5QVL.cjs +0 -847
  422. package/dist/chunk-5ET6L4NS.js +0 -487
  423. package/dist/chunk-C4GSLCHE.cjs +0 -7153
  424. package/dist/chunk-F2G6CWFT.js +0 -7089
  425. package/dist/chunk-G6PNEASF.cjs +0 -814
  426. package/dist/chunk-GTA4Q3A3.js +0 -1491
  427. package/dist/chunk-HCCQLAA4.cjs +0 -74
  428. package/dist/chunk-HFSVMKM3.cjs +0 -72
  429. package/dist/chunk-KAIVDEIG.cjs +0 -4539
  430. package/dist/chunk-KQU64CIX.cjs +0 -1508
  431. package/dist/chunk-MSYSQ2AJ.js +0 -4533
  432. package/dist/chunk-NHJLP37F.js +0 -70
  433. package/dist/chunk-NHYRRAGI.cjs +0 -490
  434. package/dist/chunk-OIQYIIO3.cjs +0 -473
  435. package/dist/chunk-OL46QLBJ.js +0 -61
  436. package/dist/chunk-SKZPC5AG.cjs +0 -984
  437. package/dist/chunk-SLHLXUMO.js +0 -445
  438. package/dist/chunk-UOIGFQXC.cjs +0 -9750
  439. package/dist/chunk-UOL6Y5TD.cjs +0 -759
  440. package/dist/chunk-UVFI7XIR.cjs +0 -452
  441. package/dist/chunk-VEPGBETF.js +0 -844
  442. package/dist/chunk-XQ5MWMP2.js +0 -756
  443. package/dist/chunk-XT6JY5W5.js +0 -9684
  444. package/dist/chunk-YRRAUB35.js +0 -811
  445. package/dist/compiler/GasOptimizationAnalyzer.d.ts +0 -73
  446. package/dist/compiler/NFTMarketplaceCompiler.d.ts +0 -23
  447. package/dist/compiler/ar.cjs +0 -23
  448. package/dist/compiler/ar.js +0 -11
  449. package/dist/compiler/babylon.cjs +0 -21
  450. package/dist/compiler/babylon.js +0 -15
  451. package/dist/compiler/multi-layer.cjs +0 -24
  452. package/dist/compiler/multi-layer.js +0 -15
  453. package/dist/compiler/playcanvas.cjs +0 -19
  454. package/dist/compiler/playcanvas.js +0 -13
  455. package/dist/compiler/r3f.cjs +0 -39
  456. package/dist/compiler/r3f.d.ts +0 -22
  457. package/dist/compiler/r3f.js +0 -17
  458. package/dist/compiler/vrr.cjs +0 -24
  459. package/dist/compiler/vrr.js +0 -12
  460. package/dist/parser/NFTMarketplaceTypes.d.ts +0 -191
  461. package/dist/playwright-3AT3AKTV.cjs +0 -98673
  462. package/dist/playwright-VZPDVUEQ.js +0 -98660
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEDPYCLRC_cjs = require('./chunk-EDPYCLRC.cjs');
4
- var chunkGVFJ6T4S_cjs = require('./chunk-GVFJ6T4S.cjs');
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 chunkEDPYCLRC_cjs.HoloScriptRuntime();
25
- this.parser = new chunkGVFJ6T4S_cjs.HoloScriptCodeParser();
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-AWB7QYY6.cjs.map
424
- //# sourceMappingURL=chunk-AWB7QYY6.cjs.map
423
+ //# sourceMappingURL=chunk-GILYQ5VH.cjs.map
424
+ //# sourceMappingURL=chunk-GILYQ5VH.cjs.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkT6W3Z3SH_cjs = require('./chunk-T6W3Z3SH.cjs');
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 !== chunkT6W3Z3SH_cjs.HOLOMAP_SIMULATION_CONTRACT_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-FWVYAMNW.cjs.map
20
- //# sourceMappingURL=chunk-FWVYAMNW.cjs.map
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
- let r = rng() * tot;
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-Y3ZFVUUU.js.map
176
- //# sourceMappingURL=chunk-Y3ZFVUUU.js.map
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-C7ZBSV2Q.js';
3
- import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
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-WENAFEFV.js');
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$1 = this._extractExports(result);
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$1.has(k)) exports$1.set(k, v);
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: exports$1,
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$1 = /* @__PURE__ */ new Map();
843
+ const exports = /* @__PURE__ */ new Map();
844
844
  const ast = result.ast;
845
- if (!ast) return exports$1;
845
+ if (!ast) return exports;
846
846
  const root = ast.root;
847
- if (!root) return exports$1;
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$1.set(exportName, node);
874
+ exports.set(exportName, node);
875
875
  }
876
876
  }
877
- return exports$1;
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-3GWWJT7L.js.map
2007
- //# sourceMappingURL=chunk-3GWWJT7L.js.map
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 chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
4
- var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
5
- var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
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
- chunkHCCQLAA4_cjs.__export(WASMCompiler_exports, {
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, chunkLODTHGST_cjs.createTestCompilerToken());
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 = chunkHCCQLAA4_cjs.__esm({
29
+ var init_WASMCompiler = chunkZHPMP447_cjs.__esm({
30
30
  "src/compiler/WASMCompiler.ts"() {
31
- chunkLODTHGST_cjs.init_CompilerBase();
32
- chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
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 chunkLODTHGST_cjs.CompilerBase {
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
- chunkGH6C2QGW_cjs.compileDomainBlocks(
103
+ chunkQEDMOGF3_cjs.compileDomainBlocks(
104
104
  domainBlocks,
105
105
  {
106
106
  material: (block) => {
107
- const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
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$1 = [
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$1);
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-LMJ5EBV7.cjs.map
1189
- //# sourceMappingURL=chunk-LMJ5EBV7.cjs.map
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 { EventBus, definePeerNamespace, getSharedEventBus, lazyPeerSymbol, setSharedEventBus, telemetry };
322
- //# sourceMappingURL=chunk-IELX2OKI.js.map
323
- //# sourceMappingURL=chunk-IELX2OKI.js.map
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
- let r = rng() * tot;
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-ACVWFGBI.cjs.map
186
- //# sourceMappingURL=chunk-ACVWFGBI.cjs.map
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-HYNTS5CP.js.map
422
- //# sourceMappingURL=chunk-HYNTS5CP.js.map
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