@holoscript/core 6.0.3 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/README.md +40 -40
  2. package/bin/holoscript.cjs +3 -0
  3. package/dist/GLTFPipeline-SFIORFJU.js +16 -0
  4. package/dist/GLTFPipeline-VNNDPONV.cjs +37 -0
  5. package/dist/{HoloScriptPlusParser-BZR5DELQ.js → HoloScriptPlusParser-7FBIFUFC.js} +6 -5
  6. package/dist/{HoloScriptPlusParser-SBMYDNXO.cjs → HoloScriptPlusParser-A2W7OCN2.cjs} +17 -16
  7. package/dist/HoloScriptPlusParser-F2Z56FJR.js +10 -0
  8. package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +27 -0
  9. package/dist/{USDZExporter-MHEHXZB4.cjs → USDZExporter-3FWJ25JI.cjs} +344 -16
  10. package/dist/{USDZExporter-YA55ZS35.js → USDZExporter-D2HQLQYK.js} +344 -16
  11. package/dist/agents/index.cjs +19 -0
  12. package/dist/agents/index.d.ts +100 -0
  13. package/dist/agents/index.js +17 -0
  14. package/dist/chunk-22W6NGYN.js +725 -0
  15. package/dist/{chunk-XSUZMPVQ.cjs → chunk-27MPVJVZ.cjs} +64 -28
  16. package/dist/{chunk-W76ETJTI.js → chunk-2A7FURVO.js} +44 -8
  17. package/dist/{chunk-C7BNX4XJ.js → chunk-2B7WVIDZ.js} +11 -8
  18. package/dist/chunk-2BSMSUCE.js +1941 -0
  19. package/dist/chunk-2HLIGOKU.cjs +5546 -0
  20. package/dist/{chunk-GC3YU46J.js → chunk-2M2DPHKB.js} +4 -4
  21. package/dist/{chunk-A6GO3DPZ.cjs → chunk-2YSNA2F2.cjs} +321 -49
  22. package/dist/{chunk-ZL6VJ6SN.js → chunk-33XCOVE3.js} +5 -5
  23. package/dist/chunk-3FOKASKO.cjs +348 -0
  24. package/dist/{chunk-XSF76QRU.js → chunk-4C57PR42.js} +3 -3
  25. package/dist/chunk-4N4SXXWF.js +769 -0
  26. package/dist/chunk-4PDEPEQW.cjs +41 -0
  27. package/dist/chunk-4R6SBXDB.js +45 -0
  28. package/dist/chunk-4SY77NA4.cjs +413 -0
  29. package/dist/{chunk-74YCHHTE.js → chunk-4UUKPCY4.js} +670 -116
  30. package/dist/{chunk-VZNKJZTT.cjs → chunk-52ULD552.cjs} +178 -113
  31. package/dist/{chunk-65RFOWZI.js → chunk-5CKA5SXU.js} +441 -23
  32. package/dist/chunk-5FSKKMR7.cjs +2092 -0
  33. package/dist/{chunk-FF3Q7ADR.js → chunk-5JEU52DW.js} +5 -3
  34. package/dist/chunk-5N54COB6.cjs +327 -0
  35. package/dist/chunk-5S7RKFGR.cjs +446 -0
  36. package/dist/{chunk-EJA7G2C4.cjs → chunk-5WUNN6ZN.cjs} +2 -2
  37. package/dist/{chunk-ELLQPFAF.js → chunk-6ASWLXXN.js} +24 -10
  38. package/dist/chunk-6CTRH7HT.cjs +1985 -0
  39. package/dist/{chunk-ARNKA274.cjs → chunk-6EX3I5P4.cjs} +6 -6
  40. package/dist/chunk-6FGQNDR4.js +5731 -0
  41. package/dist/{chunk-X4YVN7H3.cjs → chunk-6KMK2UXT.cjs} +152 -56
  42. package/dist/{chunk-KUJRR4FJ.js → chunk-6L4VE27M.js} +36 -24
  43. package/dist/{chunk-RT7LJRSF.cjs → chunk-6S6TKNEA.cjs} +7357 -8312
  44. package/dist/chunk-77V4GTCA.js +596 -0
  45. package/dist/{chunk-XH7SE4HH.cjs → chunk-7AD52FRS.cjs} +19 -19
  46. package/dist/chunk-7OPW2KO7.cjs +639 -0
  47. package/dist/chunk-A6KINLZJ.js +236 -0
  48. package/dist/chunk-AIA52I7T.cjs +543 -0
  49. package/dist/chunk-AIX25INK.cjs +602 -0
  50. package/dist/{chunk-WN3YF33G.cjs → chunk-AO4I2Z7M.cjs} +15 -17
  51. package/dist/{chunk-TSWTWZ42.cjs → chunk-BPICAGBV.cjs} +376 -209
  52. package/dist/chunk-BRQJKJGT.cjs +20 -0
  53. package/dist/{chunk-3FXV5S25.cjs → chunk-C37BHB7N.cjs} +6 -3
  54. package/dist/{chunk-XNMEH2BI.js → chunk-CBJY23VL.js} +3 -3
  55. package/dist/chunk-CIWWXYHZ.cjs +50 -0
  56. package/dist/{chunk-NTMZSDXM.cjs → chunk-DIL6DDDN.cjs} +101 -45
  57. package/dist/chunk-DMXC24WV.js +404 -0
  58. package/dist/{chunk-SPDELRRV.cjs → chunk-DTGBOSEM.cjs} +12 -12
  59. package/dist/chunk-E7JP3BS3.cjs +61 -0
  60. package/dist/{chunk-HJJLD366.js → chunk-EKBKLK7P.js} +3 -3
  61. package/dist/chunk-EKYL4PE3.cjs +404 -0
  62. package/dist/{chunk-7N3JIJMT.js → chunk-EMMC5CSQ.js} +12 -8
  63. package/dist/{chunk-EUFLX2PI.js → chunk-EOBB6A4B.js} +7263 -8214
  64. package/dist/chunk-EOFNVCM6.js +325 -0
  65. package/dist/{chunk-NKRKT6V2.js → chunk-ER4GATIU.js} +11 -10
  66. package/dist/{chunk-N5FTS757.cjs → chunk-EXKSFGSX.cjs} +7 -148
  67. package/dist/{chunk-LK5IAVH6.cjs → chunk-EXUP2BUM.cjs} +27 -27
  68. package/dist/chunk-FDSGHPAK.js +130 -0
  69. package/dist/chunk-FEWUHQNM.cjs +144 -0
  70. package/dist/{chunk-5TOFIR6L.js → chunk-FGGJQRLZ.js} +5 -142
  71. package/dist/chunk-FHP6LXJS.js +415 -0
  72. package/dist/{chunk-7LCYLPW2.cjs → chunk-FJPADH77.cjs} +7 -4
  73. package/dist/{chunk-HBZYCASG.js → chunk-FXKTYFYA.js} +203 -36
  74. package/dist/chunk-GCMWDSBZ.cjs +729 -0
  75. package/dist/chunk-GJNCFRJU.cjs +125 -0
  76. package/dist/{chunk-I3XGTIHM.cjs → chunk-GMP623FG.cjs} +16 -13
  77. package/dist/{chunk-CNVM7J3M.js → chunk-GN3KDX4W.js} +149 -53
  78. package/dist/{chunk-WFJIDI2N.cjs → chunk-GQYKQSTC.cjs} +10 -10
  79. package/dist/chunk-GTU2Z2WW.cjs +262 -0
  80. package/dist/chunk-GZG4KA4E.js +529 -0
  81. package/dist/{chunk-DIEDKX5B.cjs → chunk-H3MGK7TX.cjs} +45 -33
  82. package/dist/{chunk-DN7UFU63.cjs → chunk-H5DZIHJP.cjs} +14 -17
  83. package/dist/{chunk-DH5G2JUA.cjs → chunk-HANL7K2Q.cjs} +66 -53
  84. package/dist/{chunk-EGIZHYJP.cjs → chunk-HCCQLAA4.cjs} +2 -13
  85. package/dist/{chunk-HHS6FMOU.cjs → chunk-HGVXZDSK.cjs} +178 -29
  86. package/dist/{chunk-LBPEZQAF.js → chunk-HRODTEEO.js} +30 -10
  87. package/dist/{chunk-ZGTGVSTZ.js → chunk-HYNTS5CP.js} +2 -2
  88. package/dist/{chunk-RE3OKSYF.cjs → chunk-HZCQO4JM.cjs} +6 -6
  89. package/dist/{chunk-NCUHGRTZ.js → chunk-I2O7TW6B.js} +12 -8
  90. package/dist/chunk-IHESJZSW.js +4490 -0
  91. package/dist/{chunk-7H5UNJZD.cjs → chunk-IRWWS72C.cjs} +64 -22
  92. package/dist/{chunk-EMO7HAKJ.cjs → chunk-IVIA7K75.cjs} +691 -133
  93. package/dist/chunk-IVY74O6C.js +247 -0
  94. package/dist/chunk-J32ZJZJH.js +554 -0
  95. package/dist/chunk-JD7CIZ33.js +1949 -0
  96. package/dist/{chunk-7X2IEJIE.cjs → chunk-JIYN45TV.cjs} +41 -42
  97. package/dist/{chunk-XDXZM3ZP.cjs → chunk-KHPCJRI3.cjs} +24 -21
  98. package/dist/chunk-KKFZ3B6J.cjs +557 -0
  99. package/dist/chunk-KPJL34Y7.cjs +186 -0
  100. package/dist/{chunk-7KPI4EKH.cjs → chunk-KQTPCYTG.cjs} +130 -50
  101. package/dist/{chunk-F5LVGHNT.js → chunk-KX76JUQY.js} +3 -3
  102. package/dist/chunk-L4LFINPO.js +623 -0
  103. package/dist/{chunk-2UX5LRAP.cjs → chunk-L63H3SQ4.cjs} +46 -32
  104. package/dist/{chunk-NLPSZT4C.js → chunk-LAOCQJ2M.js} +64 -8
  105. package/dist/chunk-LM2VU56C.cjs +37 -0
  106. package/dist/chunk-M56JSP4A.js +400 -0
  107. package/dist/chunk-MBOOR7X4.js +18 -0
  108. package/dist/{chunk-PQLGZKMC.cjs → chunk-MJVIRCUV.cjs} +31 -27
  109. package/dist/{chunk-AC4BSHFV.js → chunk-MSMIFMBL.js} +135 -18
  110. package/dist/{chunk-56IF4NTA.js → chunk-MXFUTKCO.js} +18 -18
  111. package/dist/{chunk-NRUB55IT.cjs → chunk-MXJ5SS53.cjs} +450 -32
  112. package/dist/chunk-MXWNGCRS.js +2176 -0
  113. package/dist/chunk-MYY4PMWX.cjs +264 -0
  114. package/dist/chunk-N75IH2HY.js +258 -0
  115. package/dist/chunk-NG77ATEW.cjs +778 -0
  116. package/dist/chunk-NW5G5FBQ.js +215 -0
  117. package/dist/{chunk-4FCZDTD5.js → chunk-OEFY723R.js} +29 -16
  118. package/dist/chunk-OEV5RMZO.cjs +3042 -0
  119. package/dist/{chunk-VSXOIUCF.cjs → chunk-OIQYIIO3.cjs} +7 -7
  120. package/dist/{chunk-32TWR3HE.js → chunk-OL46QLBJ.js} +3 -12
  121. package/dist/chunk-OPZ7XDDI.js +487 -0
  122. package/dist/chunk-OSYNRVOV.cjs +243 -0
  123. package/dist/{chunk-HUFNKFA6.js → chunk-P7YIA5LN.js} +93 -13
  124. package/dist/chunk-PGANYCAG.cjs +220 -0
  125. package/dist/{chunk-CO2VM2DK.js → chunk-QAVXL2IH.js} +62 -20
  126. package/dist/{chunk-BO2OKHIY.js → chunk-QCCBXSCE.js} +1640 -1311
  127. package/dist/{chunk-WYH4GVZ5.js → chunk-QPOQ7VPI.js} +16 -13
  128. package/dist/{chunk-V42NTCFH.js → chunk-QTPMJRGS.js} +2331 -17
  129. package/dist/{chunk-FEFHPUEM.cjs → chunk-QWNQ523V.cjs} +1705 -1382
  130. package/dist/{chunk-VK5AXKO3.js → chunk-R3IVNY6P.js} +166 -101
  131. package/dist/chunk-R75BSDH7.cjs +50 -0
  132. package/dist/{chunk-AIUXRS74.cjs → chunk-RMHC2VG7.cjs} +2358 -41
  133. package/dist/chunk-RUXGBKPS.cjs +4517 -0
  134. package/dist/{chunk-PLMYCCA4.js → chunk-S5IFXW6E.js} +113 -9
  135. package/dist/{chunk-27LWW5FU.cjs → chunk-S6YWHCKV.cjs} +5 -5
  136. package/dist/{chunk-SUCBB66F.js → chunk-SIEXCILW.js} +3 -3
  137. package/dist/{chunk-CLYEIWA5.cjs → chunk-SLU6UPJI.cjs} +5 -3
  138. package/dist/{chunk-H6WMMLQK.cjs → chunk-T5J7ZKP3.cjs} +454 -61
  139. package/dist/chunk-TDCNJHWO.js +341 -0
  140. package/dist/{chunk-IHOUYQIA.js → chunk-TG7O4WBC.js} +5 -5
  141. package/dist/chunk-THCK6ECW.js +2085 -0
  142. package/dist/chunk-TJHVSBP2.js +439 -0
  143. package/dist/chunk-TK74TR4H.js +5541 -0
  144. package/dist/{chunk-BU5ZAFMC.js → chunk-U4NBQJBY.js} +11 -13
  145. package/dist/{chunk-Y5MUAYTO.js → chunk-UD3DSHZM.js} +10 -13
  146. package/dist/chunk-UDMYRFDZ.js +3038 -0
  147. package/dist/{chunk-PPULB4GG.cjs → chunk-UOIGFQXC.cjs} +90 -68
  148. package/dist/{chunk-EPWRXL6S.js → chunk-URG2SJLK.js} +41 -42
  149. package/dist/{chunk-VJVCD5T5.cjs → chunk-V73NPPTM.cjs} +152 -35
  150. package/dist/chunk-VECQYRXL.js +474 -0
  151. package/dist/chunk-VEXPG4WN.js +1989 -0
  152. package/dist/{chunk-4SMUJFHL.js → chunk-VMLKSV26.js} +9 -6
  153. package/dist/{chunk-HKCVM6OK.cjs → chunk-VSK7W3O5.cjs} +47 -27
  154. package/dist/chunk-VVKVQZI6.js +55 -0
  155. package/dist/{chunk-KDB6BUMB.js → chunk-W55Z7QIX.js} +172 -25
  156. package/dist/{chunk-BY3B7ZYV.cjs → chunk-W6P2GBHH.cjs} +3 -3
  157. package/dist/{chunk-PBA6NXCT.cjs → chunk-W6RW64BB.cjs} +11 -8
  158. package/dist/chunk-WDT3JTGM.cjs +483 -0
  159. package/dist/{chunk-26TLYBFD.js → chunk-WKX5AMOY.js} +3 -3
  160. package/dist/chunk-WNNE3PO3.js +34 -0
  161. package/dist/chunk-WRLUBRKS.cjs +1943 -0
  162. package/dist/chunk-WRNEH5MO.js +3169 -0
  163. package/dist/{chunk-54FHG2MX.js → chunk-WRWEX5ZF.js} +7 -4
  164. package/dist/chunk-X3GJPRVK.cjs +3246 -0
  165. package/dist/{chunk-4KJ2R7VP.cjs → chunk-XFXGA5IW.cjs} +126 -22
  166. package/dist/{chunk-L3Z2HIWJ.cjs → chunk-XHIV6326.cjs} +4 -4
  167. package/dist/chunk-XJAN7CZG.cjs +432 -0
  168. package/dist/chunk-XL6INWKT.js +121 -0
  169. package/dist/{chunk-KYM4XRFG.js → chunk-XMWZG36H.js} +4 -4
  170. package/dist/{chunk-BKIGPPVM.js → chunk-XSFNHP2E.js} +6 -3
  171. package/dist/{chunk-ODGMVILH.js → chunk-XT6JY5W5.js} +25 -3
  172. package/dist/chunk-XXZJEFKW.cjs +490 -0
  173. package/dist/chunk-Y3MWXQSB.cjs +5737 -0
  174. package/dist/chunk-YF2I3MV3.js +46 -0
  175. package/dist/{chunk-CMYAWUX3.js → chunk-YIMN575O.js} +445 -53
  176. package/dist/chunk-YIVFJNYV.js +176 -0
  177. package/dist/{chunk-V2ILLPHK.cjs → chunk-YKGPCZEE.cjs} +10 -10
  178. package/dist/chunk-YQELFNJV.js +39 -0
  179. package/dist/chunk-YSCKYJOB.cjs +2196 -0
  180. package/dist/chunk-Z5XMPRNC.cjs +5390 -0
  181. package/dist/{chunk-3FYZOR7S.cjs → chunk-ZDSYWBIE.cjs} +18 -18
  182. package/dist/{chunk-CQDOF3G7.cjs → chunk-ZKSS47EV.cjs} +24 -19
  183. package/dist/chunk-ZUL5AVTX.cjs +1993 -0
  184. package/dist/chunk-ZXBZVXDW.js +5386 -0
  185. package/dist/{chunk-AW7WAELW.js → chunk-ZZ7RO2UQ.js} +314 -46
  186. package/dist/cli/holoscript-runner.cjs +203 -206
  187. package/dist/cli/holoscript-runner.js +147 -150
  188. package/dist/codebase/index.cjs +1 -1
  189. package/dist/codebase/index.d.ts +25 -0
  190. package/dist/codebase/index.js +1 -1
  191. package/dist/compiler/agent-inference.cjs +10 -8
  192. package/dist/compiler/agent-inference.js +6 -4
  193. package/dist/compiler/android-xr.cjs +12 -8
  194. package/dist/compiler/android-xr.js +10 -6
  195. package/dist/compiler/android.cjs +12 -9
  196. package/dist/compiler/android.js +10 -7
  197. package/dist/compiler/ar.cjs +9 -7
  198. package/dist/compiler/ar.js +7 -5
  199. package/dist/compiler/babylon.cjs +12 -9
  200. package/dist/compiler/babylon.js +11 -8
  201. package/dist/compiler/business-quest.cjs +43 -0
  202. package/dist/compiler/business-quest.js +4 -0
  203. package/dist/compiler/coco.cjs +1 -1
  204. package/dist/compiler/coco.js +1 -1
  205. package/dist/compiler/context.cjs +25 -0
  206. package/dist/compiler/context.d.ts +28 -0
  207. package/dist/compiler/context.js +8 -0
  208. package/dist/compiler/domain-block-utils.cjs +161 -151
  209. package/dist/compiler/domain-block-utils.js +7 -5
  210. package/dist/compiler/dtdl.cjs +10 -8
  211. package/dist/compiler/dtdl.js +7 -5
  212. package/dist/compiler/gltf-pipeline.cjs +9 -9
  213. package/dist/compiler/gltf-pipeline.js +2 -2
  214. package/dist/compiler/godot.cjs +9 -7
  215. package/dist/compiler/godot.js +8 -6
  216. package/dist/compiler/incremental.cjs +12 -8
  217. package/dist/compiler/incremental.js +7 -3
  218. package/dist/compiler/index.cjs +5152 -814
  219. package/dist/compiler/index.d.ts +404 -21
  220. package/dist/compiler/index.js +5063 -859
  221. package/dist/compiler/ios.cjs +11 -9
  222. package/dist/compiler/ios.js +9 -7
  223. package/dist/compiler/llm-provider-capabilities.cjs +25 -0
  224. package/dist/compiler/llm-provider-capabilities.d.ts +43 -0
  225. package/dist/compiler/llm-provider-capabilities.js +8 -0
  226. package/dist/compiler/multi-layer.cjs +14 -17
  227. package/dist/compiler/multi-layer.js +13 -10
  228. package/dist/compiler/nodetoy.cjs +5 -5
  229. package/dist/compiler/nodetoy.js +2 -2
  230. package/dist/compiler/openxr.cjs +10 -7
  231. package/dist/compiler/openxr.js +9 -6
  232. package/dist/compiler/playcanvas.cjs +10 -8
  233. package/dist/compiler/playcanvas.js +9 -7
  234. package/dist/compiler/r3f.cjs +17 -14
  235. package/dist/compiler/r3f.d.ts +22 -0
  236. package/dist/compiler/r3f.js +12 -9
  237. package/dist/compiler/remotion.cjs +1 -1
  238. package/dist/compiler/remotion.js +1 -1
  239. package/dist/compiler/reproducibility.cjs +1 -1
  240. package/dist/compiler/reproducibility.js +1 -1
  241. package/dist/compiler/sdf.cjs +10 -8
  242. package/dist/compiler/sdf.js +8 -6
  243. package/dist/compiler/semantic-scene.cjs +7 -7
  244. package/dist/compiler/semantic-scene.js +2 -2
  245. package/dist/compiler/state.cjs +9 -6
  246. package/dist/compiler/state.js +7 -4
  247. package/dist/compiler/trait-composition.cjs +11 -8
  248. package/dist/compiler/trait-composition.js +7 -4
  249. package/dist/compiler/unity.cjs +10 -7
  250. package/dist/compiler/unity.js +9 -6
  251. package/dist/compiler/unreal.cjs +11 -8
  252. package/dist/compiler/unreal.js +9 -6
  253. package/dist/compiler/urdf.cjs +20 -14
  254. package/dist/compiler/urdf.js +8 -6
  255. package/dist/compiler/usd-physics.cjs +10 -8
  256. package/dist/compiler/usd-physics.js +7 -5
  257. package/dist/compiler/visionos.cjs +10 -7
  258. package/dist/compiler/visionos.js +9 -6
  259. package/dist/compiler/vrchat.cjs +10 -8
  260. package/dist/compiler/vrchat.js +8 -6
  261. package/dist/compiler/vrr.cjs +10 -8
  262. package/dist/compiler/vrr.js +8 -6
  263. package/dist/compiler/wasm.cjs +13 -11
  264. package/dist/compiler/wasm.js +8 -6
  265. package/dist/compiler/webgpu.cjs +9 -7
  266. package/dist/compiler/webgpu.js +8 -6
  267. package/dist/constants.d.ts +4 -0
  268. package/dist/coordinators/index.cjs +1266 -0
  269. package/dist/coordinators/index.d.ts +260 -0
  270. package/dist/coordinators/index.js +1259 -0
  271. package/dist/debugger.cjs +9 -7
  272. package/dist/debugger.js +7 -5
  273. package/dist/entries/interop.cjs +23 -21
  274. package/dist/entries/interop.d.ts +9 -0
  275. package/dist/entries/interop.js +5 -3
  276. package/dist/entries/scripting.cjs +18 -17
  277. package/dist/entries/scripting.d.ts +7 -0
  278. package/dist/entries/scripting.js +8 -7
  279. package/dist/hololand/index.cjs +146 -0
  280. package/dist/hololand/index.d.ts +70 -0
  281. package/dist/hololand/index.js +5 -0
  282. package/dist/index.cjs +21396 -39967
  283. package/dist/index.d.ts +1496 -40
  284. package/dist/index.js +21066 -40142
  285. package/dist/math/tropical-spmv.cjs +45 -0
  286. package/dist/math/tropical-spmv.js +4 -0
  287. package/dist/math/vec3.cjs +14 -14
  288. package/dist/math/vec3.js +2 -2
  289. package/dist/ml-dsa-FSKBTE3W.cjs +1265 -0
  290. package/dist/ml-dsa-Z7JDKW4L.js +1265 -0
  291. package/dist/paper-0c-spike/index.cjs +150 -0
  292. package/dist/paper-0c-spike/index.d.ts +29 -0
  293. package/dist/paper-0c-spike/index.js +141 -0
  294. package/dist/parser.cjs +45 -10
  295. package/dist/parser.d.ts +11 -0
  296. package/dist/parser.js +10 -7
  297. package/dist/{playwright-7DTEQCBD.cjs → playwright-3AT3AKTV.cjs} +1985 -1985
  298. package/dist/{playwright-BIZXMLD2.js → playwright-VZPDVUEQ.js} +3 -3
  299. package/dist/reconstruction/index.cjs +153 -0
  300. package/dist/reconstruction/index.d.ts +105 -0
  301. package/dist/reconstruction/index.js +8 -0
  302. package/dist/runtime.cjs +7 -5
  303. package/dist/runtime.js +6 -4
  304. package/dist/self-improvement/index.cjs +563 -0
  305. package/dist/self-improvement/index.d.ts +0 -48
  306. package/dist/self-improvement/index.js +545 -0
  307. package/dist/storage/index.cjs +10 -9
  308. package/dist/storage/index.d.ts +24 -0
  309. package/dist/storage/index.js +3 -2
  310. package/dist/testing.cjs +25 -0
  311. package/dist/testing.d.ts +70 -0
  312. package/dist/testing.js +4 -0
  313. package/dist/tools/index.d.ts +33 -0
  314. package/dist/traitDocs/traitDocs.cjs +33 -0
  315. package/dist/traitDocs/traitDocs.d.ts +69 -0
  316. package/dist/traitDocs/traitDocs.js +7 -0
  317. package/dist/traits/botanical-lotus.cjs +41 -0
  318. package/dist/traits/botanical-lotus.d.ts +172 -0
  319. package/dist/traits/botanical-lotus.js +4 -0
  320. package/dist/traits/engines/index.cjs +520 -0
  321. package/dist/traits/engines/index.d.ts +111 -0
  322. package/dist/traits/engines/index.js +380 -0
  323. package/dist/traits/index.cjs +14387 -4320
  324. package/dist/traits/index.d.ts +197 -0
  325. package/dist/traits/index.js +16455 -6958
  326. package/dist/traits/simulation-solver-factory.cjs +13 -0
  327. package/dist/traits/simulation-solver-factory.d.ts +23 -0
  328. package/dist/traits/simulation-solver-factory.js +4 -0
  329. package/dist/traits/webcam-gaze.cjs +35 -0
  330. package/dist/traits/webcam-gaze.d.ts +17 -0
  331. package/dist/traits/webcam-gaze.js +4 -0
  332. package/dist/type-checker.cjs +6 -5
  333. package/dist/type-checker.js +4 -3
  334. package/dist/world/index.cjs +947 -0
  335. package/dist/world/index.d.ts +147 -0
  336. package/dist/world/index.js +939 -0
  337. package/dist/world-model/index.cjs +1446 -0
  338. package/dist/world-model/index.d.ts +119 -0
  339. package/dist/world-model/index.js +1414 -0
  340. package/dist/wot/index.cjs +7 -7
  341. package/dist/wot/index.js +2 -2
  342. package/package.json +150 -23
  343. package/dist/GLTFPipeline-3KLWWUQO.cjs +0 -34
  344. package/dist/GLTFPipeline-LYII2ZVQ.js +0 -13
  345. package/dist/chunk-3KEU5QYY.cjs +0 -175
  346. package/dist/chunk-6OQBLABR.js +0 -5240
  347. package/dist/chunk-6WNCRE6F.js +0 -126
  348. package/dist/chunk-C2QHVHZF.js +0 -4066
  349. package/dist/chunk-CN4NOESF.cjs +0 -416
  350. package/dist/chunk-DXVCEFZB.js +0 -2027
  351. package/dist/chunk-ENV7K6XA.js +0 -282
  352. package/dist/chunk-H7XMORZI.js +0 -2731
  353. package/dist/chunk-HAN4V3PF.cjs +0 -2037
  354. package/dist/chunk-HF4OFY25.cjs +0 -4097
  355. package/dist/chunk-LER4WXW5.cjs +0 -286
  356. package/dist/chunk-M6FU6S22.js +0 -2911
  357. package/dist/chunk-MWEFR6YQ.js +0 -1857
  358. package/dist/chunk-PJMOXFPR.cjs +0 -1861
  359. package/dist/chunk-QHVVVN47.cjs +0 -2033
  360. package/dist/chunk-QWKUKVRE.js +0 -2026
  361. package/dist/chunk-UITWA6DV.cjs +0 -2829
  362. package/dist/chunk-UQW6SLM5.js +0 -172
  363. package/dist/chunk-WUXIRGZP.cjs +0 -2915
  364. package/dist/chunk-X67XRI2T.js +0 -410
  365. package/dist/chunk-Y7VK5TH3.cjs +0 -129
  366. package/dist/chunk-YCMQQQ5U.cjs +0 -5244
  367. package/dist/post-quantum-JTTAAGO3.cjs +0 -6
  368. package/dist/post-quantum-RVPVDEPI.js +0 -4
@@ -1,4 +1,4 @@
1
- import { loadConstraintsFromConfig, BUILTIN_CONSTRAINTS } from './chunk-BKIGPPVM.js';
1
+ import { loadConstraintsFromConfig, BUILTIN_CONSTRAINTS } from './chunk-XSFNHP2E.js';
2
2
 
3
3
  // src/types/AdvancedTypeSystem.ts
4
4
  var ExhaustivenessChecker = class {
@@ -509,8 +509,8 @@ var HoloScriptTypeChecker = class {
509
509
  * Check a node for type errors
510
510
  */
511
511
  checkNode(node) {
512
- this.currentLine = node.position?.x ?? 0;
513
- this.currentColumn = node.position?.y ?? 0;
512
+ this.currentLine = node.position?.[0] ?? 0;
513
+ this.currentColumn = node.position?.[1] ?? 0;
514
514
  switch (node.type) {
515
515
  case "connection":
516
516
  this.checkConnection(node);
@@ -577,7 +577,10 @@ var HoloScriptTypeChecker = class {
577
577
  }
578
578
  const targetType = this.typeMap.get(targetStr);
579
579
  const valueType = node.value ? this.inferType(node.value) : "unknown";
580
- this.typeMap.set(targetStr, targetType || { type: valueType, nullable: false });
580
+ this.typeMap.set(
581
+ targetStr,
582
+ targetType || { type: valueType, nullable: false }
583
+ );
581
584
  }
582
585
  checkSpread(node) {
583
586
  if (!node.target) {
@@ -1209,5 +1212,5 @@ function createTypeChecker() {
1209
1212
  }
1210
1213
 
1211
1214
  export { HoloScriptTypeChecker, createTypeChecker };
1212
- //# sourceMappingURL=chunk-4SMUJFHL.js.map
1213
- //# sourceMappingURL=chunk-4SMUJFHL.js.map
1215
+ //# sourceMappingURL=chunk-VMLKSV26.js.map
1216
+ //# sourceMappingURL=chunk-VMLKSV26.js.map
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var chunkLK5IAVH6_cjs = require('./chunk-LK5IAVH6.cjs');
4
- var chunkTSWTWZ42_cjs = require('./chunk-TSWTWZ42.cjs');
5
- var chunkVSXOIUCF_cjs = require('./chunk-VSXOIUCF.cjs');
6
- var chunkHHS6FMOU_cjs = require('./chunk-HHS6FMOU.cjs');
7
- var chunkQHVVVN47_cjs = require('./chunk-QHVVVN47.cjs');
3
+ var chunkEXUP2BUM_cjs = require('./chunk-EXUP2BUM.cjs');
4
+ var chunkBPICAGBV_cjs = require('./chunk-BPICAGBV.cjs');
5
+ var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
6
+ var chunkHGVXZDSK_cjs = require('./chunk-HGVXZDSK.cjs');
7
+ var chunkRMHC2VG7_cjs = require('./chunk-RMHC2VG7.cjs');
8
+ var ans = require('@holoscript/core-types/ans');
8
9
 
9
10
  // src/compiler/GLTFPipeline.ts
10
- chunkVSXOIUCF_cjs.init_TraitCompositor();
11
- chunkTSWTWZ42_cjs.init_R3FCompiler();
12
- chunkQHVVVN47_cjs.init_CompilerBase();
13
- chunkQHVVVN47_cjs.init_ANSNamespace();
14
- chunkHHS6FMOU_cjs.init_DomainBlockCompilerMixin();
11
+ chunkOIQYIIO3_cjs.init_TraitCompositor();
12
+ chunkBPICAGBV_cjs.init_R3FCompiler();
13
+ chunkRMHC2VG7_cjs.init_CompilerBase();
14
+ chunkHGVXZDSK_cjs.init_DomainBlockCompilerMixin();
15
15
 
16
16
  // src/compiler/gltf/extensions.ts
17
17
  function createEmissiveStrengthExtension(strength) {
@@ -120,8 +120,8 @@ function declareExtensions(gltf) {
120
120
  }
121
121
 
122
122
  // src/compiler/GLTFPipeline.ts
123
- chunkTSWTWZ42_cjs.init_ObjectPool();
124
- var gltfNodePool = new chunkTSWTWZ42_cjs.ASTNodePool(
123
+ chunkBPICAGBV_cjs.init_ObjectPool();
124
+ var gltfNodePool = new chunkBPICAGBV_cjs.ASTNodePool(
125
125
  () => ({ name: "" }),
126
126
  (node) => {
127
127
  node.name = "";
@@ -840,7 +840,7 @@ function generatePlaneGeometry(scale) {
840
840
  var INITIAL_COMPILE_BUFFER_SIZE = 1024 * 1024;
841
841
  var MAX_RETAINED_BUFFER_SIZE = 1024 * 1024 * 20;
842
842
  var SHARED_COMPILE_BUFFER = new Uint8Array(INITIAL_COMPILE_BUFFER_SIZE);
843
- var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
843
+ var GLTFPipeline = class extends chunkRMHC2VG7_cjs.CompilerBase {
844
844
  constructor(options = {}) {
845
845
  super();
846
846
  this.compilerName = "GLTFPipeline";
@@ -873,6 +873,7 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
873
873
  this._skins = null;
874
874
  this._jointStartIndex = 0;
875
875
  this.options = {
876
+ provenanceHash: options.provenanceHash ?? "",
876
877
  format: options.format ?? "glb",
877
878
  dracoCompression: options.dracoCompression ?? false,
878
879
  quantize: options.quantize ?? true,
@@ -883,10 +884,10 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
883
884
  generator: options.generator ?? "HoloScript GLTFPipeline v1.0.0",
884
885
  copyright: options.copyright ?? ""
885
886
  };
886
- this.compositor = new chunkVSXOIUCF_cjs.TraitCompositor();
887
+ this.compositor = new chunkOIQYIIO3_cjs.TraitCompositor();
887
888
  }
888
889
  getRequiredCapability() {
889
- return chunkQHVVVN47_cjs.ANSCapabilityPath.GLTF;
890
+ return ans.ANSCapabilityPath.GLTF;
890
891
  }
891
892
  get bufferData() {
892
893
  return SHARED_COMPILE_BUFFER;
@@ -1200,7 +1201,7 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
1200
1201
  if (SHARED_COMPILE_BUFFER.length > MAX_RETAINED_BUFFER_SIZE) {
1201
1202
  SHARED_COMPILE_BUFFER = new Uint8Array(INITIAL_COMPILE_BUFFER_SIZE);
1202
1203
  }
1203
- const gltf = this.buildDocument(composition.name, buffer.byteLength);
1204
+ const gltf = this.buildDocument(composition, buffer.byteLength);
1204
1205
  if (this.options.format === "glb") {
1205
1206
  const binary = this.createGLB(gltf, buffer);
1206
1207
  this.stats.fileSizeBytes = binary.byteLength;
@@ -1281,12 +1282,12 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
1281
1282
  }
1282
1283
  const domainBlocks = composition.domainBlocks ?? [];
1283
1284
  if (domainBlocks.length > 0) {
1284
- chunkHHS6FMOU_cjs.compileDomainBlocks(
1285
+ chunkHGVXZDSK_cjs.compileDomainBlocks(
1285
1286
  domainBlocks,
1286
1287
  {
1287
1288
  material: (block) => {
1288
- const mat = chunkHHS6FMOU_cjs.compileMaterialBlock(block);
1289
- const gltfMat = chunkHHS6FMOU_cjs.materialToGLTF(mat);
1289
+ const mat = chunkHGVXZDSK_cjs.compileMaterialBlock(block);
1290
+ const gltfMat = chunkHGVXZDSK_cjs.materialToGLTF(mat);
1290
1291
  this.materials.push(gltfMat);
1291
1292
  this.stats.materialCount++;
1292
1293
  return "";
@@ -1484,7 +1485,7 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
1484
1485
  }
1485
1486
  const radialSegments = typeof segmentsProp === "number" ? segmentsProp : 24;
1486
1487
  const lengthSteps = typeof stepsProp === "number" ? stepsProp : 8;
1487
- geometry = chunkLK5IAVH6_cjs.generateSplineGeometry(points, radii, radialSegments, lengthSteps);
1488
+ geometry = chunkEXUP2BUM_cjs.generateSplineGeometry(points, radii, radialSegments, lengthSteps);
1488
1489
  break;
1489
1490
  }
1490
1491
  case "membrane": {
@@ -1494,7 +1495,7 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
1494
1495
  const anchors = this.extractNestedArray(anchorsProp, 3);
1495
1496
  const subdivisions = typeof subdivisionsProp === "number" ? subdivisionsProp : 8;
1496
1497
  const bulge = typeof bulgeProp === "number" ? bulgeProp : 0.15;
1497
- geometry = chunkLK5IAVH6_cjs.generateMembraneGeometry(anchors, subdivisions, bulge);
1498
+ geometry = chunkEXUP2BUM_cjs.generateMembraneGeometry(anchors, subdivisions, bulge);
1498
1499
  break;
1499
1500
  }
1500
1501
  case "hull":
@@ -1522,7 +1523,7 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
1522
1523
  }
1523
1524
  const resolution = typeof resolutionProp === "number" ? resolutionProp : 24;
1524
1525
  const threshold = typeof thresholdProp === "number" ? thresholdProp : 1;
1525
- geometry = chunkLK5IAVH6_cjs.generateHullGeometry(blobs, resolution, threshold);
1526
+ geometry = chunkEXUP2BUM_cjs.generateHullGeometry(blobs, resolution, threshold);
1526
1527
  break;
1527
1528
  }
1528
1529
  default:
@@ -1600,8 +1601,8 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
1600
1601
  let attenuationColor;
1601
1602
  let attenuationDistance;
1602
1603
  const namedMat = this.findProp(object, "material");
1603
- if (typeof namedMat === "string" && chunkTSWTWZ42_cjs.MATERIAL_PRESETS[namedMat]) {
1604
- const preset = chunkTSWTWZ42_cjs.MATERIAL_PRESETS[namedMat];
1604
+ if (typeof namedMat === "string" && chunkBPICAGBV_cjs.MATERIAL_PRESETS[namedMat]) {
1605
+ const preset = chunkBPICAGBV_cjs.MATERIAL_PRESETS[namedMat];
1605
1606
  if (preset.color) color = this.parseColorString(preset.color);
1606
1607
  if (preset.metalness !== void 0) metallic = preset.metalness;
1607
1608
  if (preset.roughness !== void 0) roughness = preset.roughness;
@@ -2033,7 +2034,8 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
2033
2034
  /**
2034
2035
  * Build the glTF JSON document
2035
2036
  */
2036
- buildDocument(name, bufferLength) {
2037
+ buildDocument(composition, bufferLength) {
2038
+ const name = composition.name;
2037
2039
  const gltf = {
2038
2040
  asset: {
2039
2041
  version: "2.0",
@@ -2066,6 +2068,24 @@ var GLTFPipeline = class extends chunkQHVVVN47_cjs.CompilerBase {
2066
2068
  if (this._skins && this._skins.length > 0) {
2067
2069
  gltf.skins = this._skins;
2068
2070
  }
2071
+ const objectNames = (composition.objects || []).map((o) => o.name);
2072
+ const allTraits = /* @__PURE__ */ new Set();
2073
+ for (const obj of composition.objects || []) {
2074
+ for (const trait of obj.traits || []) {
2075
+ allTraits.add(typeof trait === "string" ? trait : trait.name);
2076
+ }
2077
+ }
2078
+ const groupNames = (composition.spatialGroups || []).map((g) => g.name);
2079
+ gltf.asset.extras = {
2080
+ holoscript: {
2081
+ version: "6.0",
2082
+ compositionName: name,
2083
+ objects: objectNames,
2084
+ traits: [...allTraits],
2085
+ spatialGroups: groupNames,
2086
+ ...this.options.provenanceHash ? { provenanceHash: this.options.provenanceHash } : {}
2087
+ }
2088
+ };
2069
2089
  declareExtensions(gltf);
2070
2090
  if (this.options.format === "gltf") {
2071
2091
  gltf.buffers[0].uri = `${name}.bin`;
@@ -2233,5 +2253,5 @@ exports.GLTFPipeline = GLTFPipeline;
2233
2253
  exports.createGLTFPipeline = createGLTFPipeline;
2234
2254
  exports.generateScaleNormalMap = generateScaleNormalMap;
2235
2255
  exports.generateScaleTexture = generateScaleTexture;
2236
- //# sourceMappingURL=chunk-HKCVM6OK.cjs.map
2237
- //# sourceMappingURL=chunk-HKCVM6OK.cjs.map
2256
+ //# sourceMappingURL=chunk-VSK7W3O5.cjs.map
2257
+ //# sourceMappingURL=chunk-VSK7W3O5.cjs.map
@@ -0,0 +1,55 @@
1
+ import { __esm } from './chunk-OL46QLBJ.js';
2
+ import { z } from 'zod';
3
+
4
+ function safeJsonParse(s, schema) {
5
+ let raw;
6
+ try {
7
+ raw = JSON.parse(s);
8
+ } catch (e) {
9
+ const message = e instanceof Error ? e.message : String(e);
10
+ return { ok: false, error: { kind: "json-parse", message, cause: e } };
11
+ }
12
+ const parsed = schema.safeParse(raw);
13
+ if (parsed.success) {
14
+ return { ok: true, value: parsed.data };
15
+ }
16
+ return {
17
+ ok: false,
18
+ error: { kind: "schema", message: parsed.error.message, zodError: parsed.error }
19
+ };
20
+ }
21
+ function readJson(s) {
22
+ const r = safeJsonParse(s, z.unknown());
23
+ if (r.ok) {
24
+ return r.value;
25
+ }
26
+ if (r.error.kind === "json-parse") {
27
+ const err = new SyntaxError(r.error.message);
28
+ err.cause = r.error.cause;
29
+ throw err;
30
+ }
31
+ throw new Error(`[readJson] schema failure on z.unknown: ${r.error.message}`);
32
+ }
33
+ function jsonClone(value) {
34
+ return readJson(JSON.stringify(value));
35
+ }
36
+ function tryParseJson(s, fallback) {
37
+ if (s === null || s === void 0) {
38
+ return fallback;
39
+ }
40
+ try {
41
+ return JSON.parse(s);
42
+ } catch {
43
+ return fallback;
44
+ }
45
+ }
46
+ var safeJsonParseSchema;
47
+ var init_safeJsonParse = __esm({
48
+ "src/errors/safeJsonParse.ts"() {
49
+ safeJsonParseSchema = safeJsonParse;
50
+ }
51
+ });
52
+
53
+ export { init_safeJsonParse, jsonClone, readJson, safeJsonParse, safeJsonParseSchema, tryParseJson };
54
+ //# sourceMappingURL=chunk-VVKVQZI6.js.map
55
+ //# sourceMappingURL=chunk-VVKVQZI6.js.map
@@ -1,5 +1,5 @@
1
- import { init_CompilerBase, init_ANSNamespace, ANSCapabilityPath, escapeStringValue } from './chunk-QWKUKVRE.js';
2
- import { __esm } from './chunk-32TWR3HE.js';
1
+ import { init_CompilerBase, init_ANSNamespace, ANSCapabilityPath, escapeStringValue } from './chunk-QTPMJRGS.js';
2
+ import { __esm } from './chunk-OL46QLBJ.js';
3
3
 
4
4
  // src/compiler/DomainBlockCompilerMixin.ts
5
5
  function esc(value, target) {
@@ -2151,7 +2151,9 @@ function paymentToR3F(paywall) {
2151
2151
  lines.push(` description: "${paywall.description}",`);
2152
2152
  }
2153
2153
  if (paywall.gatedContent && paywall.gatedContent.length > 0) {
2154
- lines.push(` gatedContent: [${paywall.gatedContent.map((g) => `"${esc(g, "TypeScript")}"`).join(", ")}],`);
2154
+ lines.push(
2155
+ ` gatedContent: [${paywall.gatedContent.map((g) => `"${esc(g, "TypeScript")}"`).join(", ")}],`
2156
+ );
2155
2157
  }
2156
2158
  if (paywall.revenueSplit) {
2157
2159
  lines.push(
@@ -2254,13 +2256,17 @@ function healthcareToR3F(healthcare) {
2254
2256
  );
2255
2257
  }
2256
2258
  if (healthcare.vitalSigns) {
2257
- lines.push(` vitalSigns: [${healthcare.vitalSigns.map((v) => `"${esc(v, "TypeScript")}"`).join(", ")}],`);
2259
+ lines.push(
2260
+ ` vitalSigns: [${healthcare.vitalSigns.map((v) => `"${esc(v, "TypeScript")}"`).join(", ")}],`
2261
+ );
2258
2262
  }
2259
2263
  if (healthcare.alertThresholds) {
2260
2264
  lines.push(` alertThresholds: ${JSON.stringify(healthcare.alertThresholds)},`);
2261
2265
  }
2262
2266
  if (healthcare.procedureSteps) {
2263
- lines.push(` steps: [${healthcare.procedureSteps.map((s) => `"${esc(s, "TypeScript")}"`).join(", ")}],`);
2267
+ lines.push(
2268
+ ` steps: [${healthcare.procedureSteps.map((s) => `"${esc(s, "TypeScript")}"`).join(", ")}],`
2269
+ );
2264
2270
  }
2265
2271
  lines.push("};");
2266
2272
  return lines.join("\n");
@@ -2534,7 +2540,7 @@ function roboticsToGodot(robotics) {
2534
2540
  );
2535
2541
  }
2536
2542
  lines.push(" current_angle = angle");
2537
- lines.push(" rotation.x = angle");
2543
+ lines.push(" rotation[0] = angle");
2538
2544
  lines.push(" joint_position_changed.emit(angle)");
2539
2545
  }
2540
2546
  return lines.join("\n");
@@ -2618,7 +2624,9 @@ function iotToR3F(iot) {
2618
2624
  if (iot.deviceType) lines.push(` deviceType: "${iot.deviceType}",`);
2619
2625
  if (iot.protocol) lines.push(` protocol: "${esc(iot.protocol, "TypeScript")}",`);
2620
2626
  if (iot.telemetryFields)
2621
- lines.push(` telemetryFields: [${iot.telemetryFields.map((f) => `"${esc(f, "TypeScript")}"`).join(", ")}],`);
2627
+ lines.push(
2628
+ ` telemetryFields: [${iot.telemetryFields.map((f) => `"${esc(f, "TypeScript")}"`).join(", ")}],`
2629
+ );
2622
2630
  if (iot.updateInterval) lines.push(` updateInterval: ${iot.updateInterval},`);
2623
2631
  if (iot.twinModel) lines.push(` twinModel: "${esc(iot.twinModel, "TypeScript")}",`);
2624
2632
  lines.push("};");
@@ -2654,7 +2662,8 @@ function iotToGodot(iot) {
2654
2662
  lines.push(
2655
2663
  `@export var telemetry_fields: PackedStringArray = [${iot.telemetryFields.map((f) => `"${esc(f, "GDScript")}"`).join(", ")}]`
2656
2664
  );
2657
- if (iot.twinModel) lines.push(`@export var twin_model: String = "${esc(iot.twinModel, "GDScript")}"`);
2665
+ if (iot.twinModel)
2666
+ lines.push(`@export var twin_model: String = "${esc(iot.twinModel, "GDScript")}"`);
2658
2667
  lines.push("");
2659
2668
  lines.push("signal telemetry_received(field: String, value: float)");
2660
2669
  lines.push("signal connection_changed(connected: bool)");
@@ -2689,14 +2698,18 @@ function compileDataVizBlock(block) {
2689
2698
  const props = block.properties || {};
2690
2699
  let axes;
2691
2700
  if (props.x_axis || props.y_axis || props.z_axis) {
2692
- axes = { x: props.x_axis, y: props.y_axis, z: props.z_axis };
2701
+ axes = [
2702
+ String(props.x_axis ?? ""),
2703
+ String(props.y_axis ?? ""),
2704
+ String(props.z_axis ?? "")
2705
+ ];
2693
2706
  } else if (props.axes && typeof props.axes === "object") {
2694
2707
  const a = props.axes;
2695
- axes = {
2696
- x: a.x,
2697
- y: a.y,
2698
- z: a.z
2699
- };
2708
+ axes = [
2709
+ String(a[0] ?? ""),
2710
+ String(a[1] ?? ""),
2711
+ String(a[2] ?? "")
2712
+ ];
2700
2713
  }
2701
2714
  let dimensions;
2702
2715
  if (props.width != null || props.height != null) {
@@ -2834,11 +2847,15 @@ function educationToR3F(edu) {
2834
2847
  lines.push(` type: "${edu.keyword}",`);
2835
2848
  if (edu.difficulty) lines.push(` difficulty: "${esc(edu.difficulty, "TypeScript")}",`);
2836
2849
  if (edu.objectives)
2837
- lines.push(` objectives: [${edu.objectives.map((o) => `"${esc(o, "TypeScript")}"`).join(", ")}],`);
2850
+ lines.push(
2851
+ ` objectives: [${edu.objectives.map((o) => `"${esc(o, "TypeScript")}"`).join(", ")}],`
2852
+ );
2838
2853
  if (edu.duration) lines.push(` duration: ${edu.duration},`);
2839
2854
  if (edu.questions) lines.push(` questions: ${JSON.stringify(edu.questions)},`);
2840
2855
  if (edu.prerequisites)
2841
- lines.push(` prerequisites: [${edu.prerequisites.map((p) => `"${esc(p, "TypeScript")}"`).join(", ")}],`);
2856
+ lines.push(
2857
+ ` prerequisites: [${edu.prerequisites.map((p) => `"${esc(p, "TypeScript")}"`).join(", ")}],`
2858
+ );
2842
2859
  lines.push("};");
2843
2860
  return lines.join("\n");
2844
2861
  }
@@ -2848,7 +2865,8 @@ function educationToUnity(edu) {
2848
2865
  lines.push(`// Education: ${edu.name}`);
2849
2866
  lines.push(`public class ${safeName}Education : MonoBehaviour {`);
2850
2867
  lines.push(` public string contentType = "${esc(edu.keyword, "CSharp")}";`);
2851
- if (edu.difficulty) lines.push(` public string difficulty = "${esc(edu.difficulty, "CSharp")}";`);
2868
+ if (edu.difficulty)
2869
+ lines.push(` public string difficulty = "${esc(edu.difficulty, "CSharp")}";`);
2852
2870
  if (edu.duration) lines.push(` public int durationMinutes = ${edu.duration};`);
2853
2871
  if (edu.objectives)
2854
2872
  lines.push(
@@ -2864,7 +2882,8 @@ function educationToGodot(edu) {
2864
2882
  lines.push("extends Node");
2865
2883
  lines.push("");
2866
2884
  lines.push(`@export var content_type: String = "${esc(edu.keyword, "GDScript")}"`);
2867
- if (edu.difficulty) lines.push(`@export var difficulty: String = "${esc(edu.difficulty, "GDScript")}"`);
2885
+ if (edu.difficulty)
2886
+ lines.push(`@export var difficulty: String = "${esc(edu.difficulty, "GDScript")}"`);
2868
2887
  if (edu.duration) lines.push(`@export var duration_minutes: int = ${edu.duration}`);
2869
2888
  if (edu.objectives)
2870
2889
  lines.push(
@@ -2937,7 +2956,8 @@ function musicToR3F(music) {
2937
2956
  if (music.bpm) lines.push(` bpm: ${music.bpm},`);
2938
2957
  if (music.timeSignature) lines.push(` timeSignature: [${music.timeSignature.join(", ")}],`);
2939
2958
  if (music.key) lines.push(` key: "${esc(music.key, "TypeScript")}",`);
2940
- if (music.effects) lines.push(` effects: [${music.effects.map((e) => `"${esc(e, "TypeScript")}"`).join(", ")}],`);
2959
+ if (music.effects)
2960
+ lines.push(` effects: [${music.effects.map((e) => `"${esc(e, "TypeScript")}"`).join(", ")}],`);
2941
2961
  if (music.pattern) lines.push(` pattern: "${esc(music.pattern, "TypeScript")}",`);
2942
2962
  if (music.bars) lines.push(` bars: ${music.bars},`);
2943
2963
  lines.push("};");
@@ -3128,9 +3148,12 @@ function web3ToR3F(web3) {
3128
3148
  lines.push(` type: "${web3.keyword}",`);
3129
3149
  if (web3.standard) lines.push(` standard: "${web3.standard}",`);
3130
3150
  if (web3.network) lines.push(` network: "${web3.network}",`);
3131
- if (web3.contractAddress) lines.push(` contractAddress: "${esc(web3.contractAddress, "TypeScript")}",`);
3151
+ if (web3.contractAddress)
3152
+ lines.push(` contractAddress: "${esc(web3.contractAddress, "TypeScript")}",`);
3132
3153
  if (web3.functions)
3133
- lines.push(` functions: [${web3.functions.map((f) => `"${esc(f, "TypeScript")}"`).join(", ")}],`);
3154
+ lines.push(
3155
+ ` functions: [${web3.functions.map((f) => `"${esc(f, "TypeScript")}"`).join(", ")}],`
3156
+ );
3134
3157
  if (web3.supply) lines.push(` supply: ${web3.supply},`);
3135
3158
  if (web3.votingThreshold) lines.push(` votingThreshold: ${web3.votingThreshold},`);
3136
3159
  lines.push("};");
@@ -3625,6 +3648,130 @@ function inputToUSDA(input) {
3625
3648
  lines.push("}");
3626
3649
  return lines.join("\n");
3627
3650
  }
3651
+ function parseGravityVector(props) {
3652
+ const gv = props.gravity_vector ?? props.gravityVector;
3653
+ if (Array.isArray(gv) && gv.length === 3 && gv.every((n) => typeof n === "number")) {
3654
+ return [gv[0], gv[1], gv[2]];
3655
+ }
3656
+ const g = props.gravity;
3657
+ if (typeof g === "number" && !Number.isNaN(g)) {
3658
+ return [0, -Math.abs(g), 0];
3659
+ }
3660
+ return void 0;
3661
+ }
3662
+ function parseSimulationEnvironment(block) {
3663
+ const p = block.properties || {};
3664
+ const env = {};
3665
+ const topG = parseGravityVector(p);
3666
+ if (topG) env.gravity = topG;
3667
+ if (typeof p.skybox === "string" && p.skybox.trim()) {
3668
+ env.skyboxPreset = p.skybox.trim();
3669
+ }
3670
+ const colorRaw = p.skybox_color ?? p.skyboxColor ?? p.background_color;
3671
+ if (colorRaw != null && String(colorRaw).trim() !== "") {
3672
+ env.skyboxColor = String(colorRaw).trim();
3673
+ }
3674
+ const po = p.physics_overrides ?? p.physicsOverrides;
3675
+ if (po && typeof po === "object" && !Array.isArray(po)) {
3676
+ env.physicsOverrides = { ...po };
3677
+ }
3678
+ for (const child of block.children || []) {
3679
+ const c = child;
3680
+ if (c.type !== "DomainBlock") continue;
3681
+ const kw = c.keyword;
3682
+ const cp = c.properties || {};
3683
+ if (kw === "skybox" || kw === "environment_sky" || kw === "hdri") {
3684
+ if (typeof cp.preset === "string" && cp.preset.trim()) env.skyboxPreset = cp.preset.trim();
3685
+ if (cp.color != null && String(cp.color).trim() !== "") env.skyboxColor = String(cp.color).trim();
3686
+ }
3687
+ if (kw === "gravity" || kw === "world_gravity") {
3688
+ const g = parseGravityVector(cp);
3689
+ if (g) env.gravity = g;
3690
+ }
3691
+ if (kw === "physics_world" || kw === "physics_overrides") {
3692
+ env.physicsOverrides = { ...env.physicsOverrides, ...cp };
3693
+ }
3694
+ }
3695
+ if (!env.gravity && !env.skyboxPreset && !env.skyboxColor && !env.physicsOverrides) {
3696
+ return void 0;
3697
+ }
3698
+ return env;
3699
+ }
3700
+ function compileSimulationBlock(block) {
3701
+ const traits = block.traits || [];
3702
+ let simulationType = "unknown";
3703
+ if (traits.includes("thermal_simulation")) simulationType = "thermal";
3704
+ else if (traits.includes("structural_fem")) simulationType = "structural";
3705
+ else if (traits.includes("hydraulic_pipe")) simulationType = "hydraulic";
3706
+ const overlays = [];
3707
+ for (const child of block.children || []) {
3708
+ const c = child;
3709
+ if (c.traits?.includes("scalar_field_overlay") || c.keyword === "scalar_field_overlay") {
3710
+ const p = c.properties || {};
3711
+ overlays.push({
3712
+ source: p.source ?? "",
3713
+ colormap: p.colormap ?? "turbo",
3714
+ range: p.range ?? [0, 1],
3715
+ opacity: p.opacity ?? 0.7,
3716
+ visible: p.visible ?? true,
3717
+ label: p.label ?? ""
3718
+ });
3719
+ }
3720
+ }
3721
+ const environment = parseSimulationEnvironment(block);
3722
+ return {
3723
+ keyword: block.keyword,
3724
+ name: block.name,
3725
+ simulationType,
3726
+ traits,
3727
+ config: block.properties || {},
3728
+ environment,
3729
+ overlays
3730
+ };
3731
+ }
3732
+ function simulationEnvironmentToR3FChunks(env) {
3733
+ if (!env) return { visualLines: [], userDataExpr: null };
3734
+ const visualLines = [];
3735
+ if (env.skyboxColor) {
3736
+ const hex = env.skyboxColor.startsWith("#") ? env.skyboxColor : `#${env.skyboxColor}`;
3737
+ visualLines.push(`<color attach="background" args={['${hex}']} />`);
3738
+ }
3739
+ if (env.skyboxPreset) {
3740
+ visualLines.push(
3741
+ `<Environment preset={${JSON.stringify(env.skyboxPreset)}} background />`
3742
+ );
3743
+ }
3744
+ const meta = {};
3745
+ if (env.gravity) meta.gravity = env.gravity;
3746
+ if (env.physicsOverrides && Object.keys(env.physicsOverrides).length > 0) {
3747
+ meta.physicsOverrides = env.physicsOverrides;
3748
+ }
3749
+ const userDataExpr = Object.keys(meta).length > 0 ? JSON.stringify({ holoscript: meta }) : null;
3750
+ return { visualLines, userDataExpr };
3751
+ }
3752
+ function simulationToR3F(sim) {
3753
+ const configExpr = JSON.stringify(sim.config);
3754
+ const { visualLines, userDataExpr } = simulationEnvironmentToR3FChunks(sim.environment);
3755
+ const overlayJSX = sim.overlays.map(
3756
+ (o) => `<ScalarFieldOverlay colormap="${o.colormap}" range={[${o.range.join(", ")}]} opacity={${o.opacity}} visible={${o.visible}} label="${o.label}" />`
3757
+ ).join("\n ");
3758
+ const envVisual = visualLines.length > 0 ? `${visualLines.join("\n ")}
3759
+ ` : "";
3760
+ const wrapWithGroup = (body) => userDataExpr ? `<group userData={${userDataExpr}}>
3761
+ ${body}
3762
+ </group>` : body;
3763
+ if (sim.simulationType === "unknown") {
3764
+ const body = `${envVisual}${overlayJSX}`;
3765
+ return `{/* Simulation: ${sim.name} (unknown solver \u2014 add thermal_simulation, structural_fem, or hydraulic_pipe trait) */}
3766
+ ${wrapWithGroup(body)}`;
3767
+ }
3768
+ const providerInner = overlayJSX ? `
3769
+ ${overlayJSX}
3770
+ ` : "\n ";
3771
+ const provider = `${envVisual}<SimulationProvider type="${sim.simulationType}" config={${configExpr}}>${providerInner}</SimulationProvider>`;
3772
+ return `{/* Simulation: ${sim.name} (${sim.simulationType}) */}
3773
+ ${wrapWithGroup(provider)}`;
3774
+ }
3628
3775
  function compileDomainBlocks(blocks, handlers, fallback) {
3629
3776
  return blocks.map((block) => {
3630
3777
  const handler = handlers[block.domain];
@@ -3657,10 +3804,10 @@ var init_DomainBlockCompilerMixin = __esm({
3657
3804
  "src/compiler/DomainBlockCompilerMixin.ts"() {
3658
3805
  init_CompilerBase();
3659
3806
  init_ANSNamespace();
3660
- DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = ANSCapabilityPath.DOMAIN_BLOCK;
3807
+ DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = "/compile/mixin/domain-block";
3661
3808
  }
3662
3809
  });
3663
3810
 
3664
- export { DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY, architectureToGodot, architectureToR3F, architectureToUSDA, architectureToUnity, architectureToVRChat, audioSourceToAndroidXR, audioSourceToBabylon, audioSourceToGodot, audioSourceToPlayCanvas, audioSourceToR3F, audioSourceToUSD, audioSourceToUnity, audioSourceToUnreal, audioSourceToVisionOS, compileArchitectureBlock, compileAudioSourceBlock, compileDataVizBlock, compileDomainBlocks, compileEducationBlock, compileHealthcareBlock, compileInputBlock, compileIoTBlock, compileMaterialBlock, compileMusicBlock, compileNarrativeBlock, compileNavigationBlock, compileParticleBlock, compilePaymentBlock, compilePhysicsBlock, compilePostProcessingBlock, compileProceduralBlock, compileRenderingBlock, compileRoboticsBlock, compileWeatherBlock, compileWeb3Block, datavizToGodot, datavizToR3F, datavizToUSDA, datavizToUnity, datavizToVRChat, educationToGodot, educationToR3F, educationToUSDA, educationToUnity, educationToVRChat, getRequiredCapability, healthcareToGodot, healthcareToR3F, healthcareToUSDA, healthcareToUnity, healthcareToVRChat, init_DomainBlockCompilerMixin, inputToGodot, inputToR3F, inputToUSDA, inputToUnity, inputToVRChat, iotToGodot, iotToR3F, iotToUSDA, iotToUnity, iotToVRChat, materialToAndroidXR, materialToBabylon, materialToGLTF, materialToGodot, materialToPlayCanvas, materialToR3F, materialToSDF, materialToUSD, materialToUnity, materialToUnreal, materialToVRChat, materialToVisionOS, materialToWebGPU, musicToGodot, musicToR3F, musicToUSDA, musicToUnity, musicToVRChat, narrativeToGodot, narrativeToR3F, narrativeToUSDA, narrativeToUnity, narrativeToVRChat, navigationToGodot, navigationToR3F, navigationToUSDA, navigationToUnity, navigationToVRChat, particlesToAndroidXR, particlesToBabylon, particlesToGodot, particlesToPlayCanvas, particlesToR3F, particlesToUSD, particlesToUnity, particlesToUnreal, particlesToVisionOS, paymentToGodot, paymentToR3F, paymentToUSDA, paymentToUnity, paymentToVRChat, physicsToAndroidXR, physicsToBabylon, physicsToGodot, physicsToPlayCanvas, physicsToR3F, physicsToSDF, physicsToURDF, physicsToUnity, physicsToUnreal, physicsToVisionOS, postProcessingToBabylon, postProcessingToGodot, postProcessingToR3F, postProcessingToUSD, postProcessingToUnity, postProcessingToUnreal, proceduralToGodot, proceduralToR3F, proceduralToUSDA, proceduralToUnity, proceduralToVRChat, renderingToGodot, renderingToR3F, renderingToUSDA, renderingToUnity, renderingToVRChat, roboticsToGodot, roboticsToR3F, roboticsToUSDA, roboticsToUnity, roboticsToVRChat, weatherToAndroidXR, weatherToGodot, weatherToR3F, weatherToUSD, weatherToUnity, weatherToUnreal, web3ToGodot, web3ToR3F, web3ToUSDA, web3ToUnity, web3ToVRChat };
3665
- //# sourceMappingURL=chunk-KDB6BUMB.js.map
3666
- //# sourceMappingURL=chunk-KDB6BUMB.js.map
3811
+ export { DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY, architectureToGodot, architectureToR3F, architectureToUSDA, architectureToUnity, architectureToVRChat, audioSourceToAndroidXR, audioSourceToBabylon, audioSourceToGodot, audioSourceToPlayCanvas, audioSourceToR3F, audioSourceToUSD, audioSourceToUnity, audioSourceToUnreal, audioSourceToVisionOS, compileArchitectureBlock, compileAudioSourceBlock, compileDataVizBlock, compileDomainBlocks, compileEducationBlock, compileHealthcareBlock, compileInputBlock, compileIoTBlock, compileMaterialBlock, compileMusicBlock, compileNarrativeBlock, compileNavigationBlock, compileParticleBlock, compilePaymentBlock, compilePhysicsBlock, compilePostProcessingBlock, compileProceduralBlock, compileRenderingBlock, compileRoboticsBlock, compileSimulationBlock, compileWeatherBlock, compileWeb3Block, datavizToGodot, datavizToR3F, datavizToUSDA, datavizToUnity, datavizToVRChat, educationToGodot, educationToR3F, educationToUSDA, educationToUnity, educationToVRChat, getRequiredCapability, healthcareToGodot, healthcareToR3F, healthcareToUSDA, healthcareToUnity, healthcareToVRChat, init_DomainBlockCompilerMixin, inputToGodot, inputToR3F, inputToUSDA, inputToUnity, inputToVRChat, iotToGodot, iotToR3F, iotToUSDA, iotToUnity, iotToVRChat, materialToAndroidXR, materialToBabylon, materialToGLTF, materialToGodot, materialToPlayCanvas, materialToR3F, materialToSDF, materialToUSD, materialToUnity, materialToUnreal, materialToVRChat, materialToVisionOS, materialToWebGPU, musicToGodot, musicToR3F, musicToUSDA, musicToUnity, musicToVRChat, narrativeToGodot, narrativeToR3F, narrativeToUSDA, narrativeToUnity, narrativeToVRChat, navigationToGodot, navigationToR3F, navigationToUSDA, navigationToUnity, navigationToVRChat, particlesToAndroidXR, particlesToBabylon, particlesToGodot, particlesToPlayCanvas, particlesToR3F, particlesToUSD, particlesToUnity, particlesToUnreal, particlesToVisionOS, paymentToGodot, paymentToR3F, paymentToUSDA, paymentToUnity, paymentToVRChat, physicsToAndroidXR, physicsToBabylon, physicsToGodot, physicsToPlayCanvas, physicsToR3F, physicsToSDF, physicsToURDF, physicsToUnity, physicsToUnreal, physicsToVisionOS, postProcessingToBabylon, postProcessingToGodot, postProcessingToR3F, postProcessingToUSD, postProcessingToUnity, postProcessingToUnreal, proceduralToGodot, proceduralToR3F, proceduralToUSDA, proceduralToUnity, proceduralToVRChat, renderingToGodot, renderingToR3F, renderingToUSDA, renderingToUnity, renderingToVRChat, roboticsToGodot, roboticsToR3F, roboticsToUSDA, roboticsToUnity, roboticsToVRChat, simulationToR3F, weatherToAndroidXR, weatherToGodot, weatherToR3F, weatherToUSD, weatherToUnity, weatherToUnreal, web3ToGodot, web3ToR3F, web3ToUSDA, web3ToUnity, web3ToVRChat };
3812
+ //# sourceMappingURL=chunk-W55Z7QIX.js.map
3813
+ //# sourceMappingURL=chunk-W55Z7QIX.js.map
@@ -437,7 +437,7 @@ function uint8ArrayToBase64(data) {
437
437
  return btoa(binary);
438
438
  }
439
439
  async function importGLTFPipeline() {
440
- return import('./GLTFPipeline-3KLWWUQO.cjs');
440
+ return import('./GLTFPipeline-VNNDPONV.cjs');
441
441
  }
442
442
  function registerGLTFTools(server) {
443
443
  for (const tool of GLTF_PIPELINE_TOOLS) {
@@ -453,5 +453,5 @@ exports.handleGLTFToolCall = handleGLTFToolCall;
453
453
  exports.inspectComposition = inspectComposition;
454
454
  exports.registerGLTFTools = registerGLTFTools;
455
455
  exports.validateForGLTF = validateForGLTF;
456
- //# sourceMappingURL=chunk-BY3B7ZYV.cjs.map
457
- //# sourceMappingURL=chunk-BY3B7ZYV.cjs.map
456
+ //# sourceMappingURL=chunk-W6P2GBHH.cjs.map
457
+ //# sourceMappingURL=chunk-W6P2GBHH.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk3FXV5S25_cjs = require('./chunk-3FXV5S25.cjs');
3
+ var chunkC37BHB7N_cjs = require('./chunk-C37BHB7N.cjs');
4
4
 
5
5
  // src/types/AdvancedTypeSystem.ts
6
6
  var ExhaustivenessChecker = class {
@@ -393,7 +393,7 @@ var HoloScriptTypeChecker = class {
393
393
  * Call before check() when you have a holoscript.config.json.
394
394
  */
395
395
  loadConfig(config) {
396
- this.customConstraints = chunk3FXV5S25_cjs.loadConstraintsFromConfig(config);
396
+ this.customConstraints = chunkC37BHB7N_cjs.loadConstraintsFromConfig(config);
397
397
  }
398
398
  /**
399
399
  * Register a type alias (e.g. from a `type Foo = ...` declaration in source).
@@ -511,8 +511,8 @@ var HoloScriptTypeChecker = class {
511
511
  * Check a node for type errors
512
512
  */
513
513
  checkNode(node) {
514
- this.currentLine = node.position?.x ?? 0;
515
- this.currentColumn = node.position?.y ?? 0;
514
+ this.currentLine = node.position?.[0] ?? 0;
515
+ this.currentColumn = node.position?.[1] ?? 0;
516
516
  switch (node.type) {
517
517
  case "connection":
518
518
  this.checkConnection(node);
@@ -579,7 +579,10 @@ var HoloScriptTypeChecker = class {
579
579
  }
580
580
  const targetType = this.typeMap.get(targetStr);
581
581
  const valueType = node.value ? this.inferType(node.value) : "unknown";
582
- this.typeMap.set(targetStr, targetType || { type: valueType, nullable: false });
582
+ this.typeMap.set(
583
+ targetStr,
584
+ targetType || { type: valueType, nullable: false }
585
+ );
583
586
  }
584
587
  checkSpread(node) {
585
588
  if (!node.target) {
@@ -1081,7 +1084,7 @@ var HoloScriptTypeChecker = class {
1081
1084
  return;
1082
1085
  }
1083
1086
  const traitNames = Array.from(traitsMap.keys());
1084
- const allConstraints = [...chunk3FXV5S25_cjs.BUILTIN_CONSTRAINTS, ...this.customConstraints];
1087
+ const allConstraints = [...chunkC37BHB7N_cjs.BUILTIN_CONSTRAINTS, ...this.customConstraints];
1085
1088
  for (const constraint of allConstraints) {
1086
1089
  if (constraint.type === "requires") {
1087
1090
  if (traitNames.includes(constraint.source)) {
@@ -1212,5 +1215,5 @@ function createTypeChecker() {
1212
1215
 
1213
1216
  exports.HoloScriptTypeChecker = HoloScriptTypeChecker;
1214
1217
  exports.createTypeChecker = createTypeChecker;
1215
- //# sourceMappingURL=chunk-PBA6NXCT.cjs.map
1216
- //# sourceMappingURL=chunk-PBA6NXCT.cjs.map
1218
+ //# sourceMappingURL=chunk-W6RW64BB.cjs.map
1219
+ //# sourceMappingURL=chunk-W6RW64BB.cjs.map