@holoscript/core 6.0.3 → 6.0.4

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 (229) hide show
  1. package/README.md +38 -38
  2. package/dist/GLTFPipeline-DEN36VNK.js +12 -0
  3. package/dist/GLTFPipeline-YPCAK236.cjs +33 -0
  4. package/dist/{HoloScriptPlusParser-BZR5DELQ.js → HoloScriptPlusParser-BN6KVRCM.js} +5 -5
  5. package/dist/{HoloScriptPlusParser-SBMYDNXO.cjs → HoloScriptPlusParser-NC5FE6AL.cjs} +16 -16
  6. package/dist/{USDZExporter-YA55ZS35.js → USDZExporter-NTMBNTDB.js} +3 -3
  7. package/dist/{USDZExporter-MHEHXZB4.cjs → USDZExporter-UWGWNMMD.cjs} +3 -3
  8. package/dist/{chunk-32TWR3HE.js → chunk-2CWOLHTE.js} +3 -4
  9. package/dist/{chunk-2UX5LRAP.cjs → chunk-33LSUQDD.cjs} +33 -31
  10. package/dist/{chunk-LBPEZQAF.js → chunk-3FJCK5XA.js} +7 -7
  11. package/dist/{chunk-EGIZHYJP.cjs → chunk-3SAK5KFL.cjs} +2 -4
  12. package/dist/{chunk-PJMOXFPR.cjs → chunk-4XSNJCLC.cjs} +25 -27
  13. package/dist/{chunk-HKCVM6OK.cjs → chunk-5BGSECRJ.cjs} +21 -21
  14. package/dist/{chunk-EMO7HAKJ.cjs → chunk-5O6TQC6M.cjs} +26 -30
  15. package/dist/{chunk-XSUZMPVQ.cjs → chunk-5OEOHAAW.cjs} +26 -26
  16. package/dist/{chunk-EJA7G2C4.cjs → chunk-5WUNN6ZN.cjs} +2 -2
  17. package/dist/{chunk-CQDOF3G7.cjs → chunk-6TZPZCOJ.cjs} +18 -18
  18. package/dist/{chunk-NRUB55IT.cjs → chunk-6UEHYZ7V.cjs} +18 -16
  19. package/dist/{chunk-V42NTCFH.js → chunk-6XSERL6L.js} +4230 -2197
  20. package/dist/{chunk-X4YVN7H3.cjs → chunk-72EQECGT.cjs} +37 -17
  21. package/dist/{chunk-4KJ2R7VP.cjs → chunk-7AGYRWKW.cjs} +19 -19
  22. package/dist/{chunk-UQW6SLM5.js → chunk-A7PIMZGU.js} +110 -19
  23. package/dist/{chunk-RT7LJRSF.cjs → chunk-ATSKSYVE.cjs} +1013 -6708
  24. package/dist/{chunk-WN3YF33G.cjs → chunk-B5TCIAPQ.cjs} +9 -10
  25. package/dist/{chunk-AIUXRS74.cjs → chunk-BF2235SI.cjs} +4275 -2242
  26. package/dist/{chunk-DIEDKX5B.cjs → chunk-BND3ST2K.cjs} +18 -16
  27. package/dist/{chunk-EPWRXL6S.js → chunk-BU7VWW2K.js} +29 -29
  28. package/dist/{chunk-6OQBLABR.js → chunk-BWFJEM5A.js} +368 -189
  29. package/dist/{chunk-ARNKA274.cjs → chunk-CAUCGUEA.cjs} +6 -6
  30. package/dist/{chunk-YCMQQQ5U.cjs → chunk-CBJSLA2E.cjs} +398 -219
  31. package/dist/{chunk-BU5ZAFMC.js → chunk-CDPGV4DN.js} +6 -7
  32. package/dist/{chunk-CO2VM2DK.js → chunk-CS2EMTGF.js} +10 -9
  33. package/dist/{chunk-AW7WAELW.js → chunk-DMG7C4H2.js} +4 -4
  34. package/dist/{chunk-XSF76QRU.js → chunk-DXJQDCFL.js} +3 -3
  35. package/dist/{chunk-4FCZDTD5.js → chunk-E3FWRT3Z.js} +7 -9
  36. package/dist/{chunk-KYM4XRFG.js → chunk-E3UALNFA.js} +4 -4
  37. package/dist/{chunk-GC3YU46J.js → chunk-EONILVMF.js} +2 -2
  38. package/dist/{chunk-VJVCD5T5.cjs → chunk-EQV4R3EV.cjs} +22 -22
  39. package/dist/{chunk-FEFHPUEM.cjs → chunk-F3HH56EB.cjs} +74 -658
  40. package/dist/{chunk-WYH4GVZ5.js → chunk-F4IULT7N.js} +2 -2
  41. package/dist/{chunk-XDXZM3ZP.cjs → chunk-FFKU7BTK.cjs} +19 -19
  42. package/dist/{chunk-NKRKT6V2.js → chunk-FHQVYCH2.js} +11 -10
  43. package/dist/{chunk-7H5UNJZD.cjs → chunk-FSF7EQVA.cjs} +11 -10
  44. package/dist/{chunk-KUJRR4FJ.js → chunk-G4VZTCIB.js} +9 -7
  45. package/dist/{chunk-A6GO3DPZ.cjs → chunk-G7CT3EMP.cjs} +4 -4
  46. package/dist/{chunk-EUFLX2PI.js → chunk-GGHSW2NN.js} +989 -6611
  47. package/dist/chunk-GVUR45UF.cjs +777 -0
  48. package/dist/{chunk-ODGMVILH.js → chunk-H5Z7NASB.js} +3 -3
  49. package/dist/{chunk-7KPI4EKH.cjs → chunk-HE7ULERA.cjs} +45 -49
  50. package/dist/{chunk-26TLYBFD.js → chunk-HPS76H7Q.js} +3 -3
  51. package/dist/{chunk-RE3OKSYF.cjs → chunk-HQUEA5R6.cjs} +6 -6
  52. package/dist/{chunk-ZGTGVSTZ.js → chunk-HYNTS5CP.js} +2 -2
  53. package/dist/{chunk-PBA6NXCT.cjs → chunk-IBDG74G2.cjs} +6 -3
  54. package/dist/chunk-IFNQFCTM.js +3098 -0
  55. package/dist/{chunk-ZL6VJ6SN.js → chunk-IWI6J7FX.js} +5 -5
  56. package/dist/{chunk-3KEU5QYY.cjs → chunk-K3JDKWGI.cjs} +118 -23
  57. package/dist/{chunk-NLPSZT4C.js → chunk-K6EKD26I.js} +6 -6
  58. package/dist/chunk-KCQ5NDYC.cjs +3172 -0
  59. package/dist/{chunk-ELLQPFAF.js → chunk-KED34ILP.js} +11 -9
  60. package/dist/{chunk-BY3B7ZYV.cjs → chunk-KSGXLT74.cjs} +3 -3
  61. package/dist/{chunk-65RFOWZI.js → chunk-L4G4RLXX.js} +9 -7
  62. package/dist/{chunk-4SMUJFHL.js → chunk-LDP5OK6G.js} +6 -3
  63. package/dist/{chunk-VZNKJZTT.cjs → chunk-LGGRPKTV.cjs} +82 -96
  64. package/dist/{chunk-C2QHVHZF.js → chunk-LSW7P7ML.js} +23 -414
  65. package/dist/{chunk-HHS6FMOU.cjs → chunk-LXJ4667L.cjs} +83 -22
  66. package/dist/{chunk-H6WMMLQK.cjs → chunk-LZ266PCM.cjs} +20 -13
  67. package/dist/{chunk-V2ILLPHK.cjs → chunk-MD6KDHVE.cjs} +10 -10
  68. package/dist/{chunk-6WNCRE6F.js → chunk-MEASWI2Y.js} +5 -5
  69. package/dist/chunk-MPXBVFHQ.js +768 -0
  70. package/dist/{chunk-WUXIRGZP.cjs → chunk-NCUKG4SK.cjs} +304 -144
  71. package/dist/chunk-NDQNIJEH.js +1715 -0
  72. package/dist/{chunk-Y5MUAYTO.js → chunk-NOZZ46QU.js} +9 -8
  73. package/dist/{chunk-F5LVGHNT.js → chunk-OFKWH2IP.js} +3 -3
  74. package/dist/{chunk-SPDELRRV.cjs → chunk-PMGODDJA.cjs} +12 -12
  75. package/dist/{chunk-I3XGTIHM.cjs → chunk-Q4QX3AET.cjs} +2 -2
  76. package/dist/{chunk-Y7VK5TH3.cjs → chunk-Q5JT3YML.cjs} +10 -10
  77. package/dist/{chunk-TSWTWZ42.cjs → chunk-Q5SJOGHQ.cjs} +247 -205
  78. package/dist/{chunk-M6FU6S22.js → chunk-QGKNANZ3.js} +251 -91
  79. package/dist/{chunk-WFJIDI2N.cjs → chunk-QLEAOI3Q.cjs} +10 -10
  80. package/dist/{chunk-VK5AXKO3.js → chunk-R7MA7QWV.js} +70 -84
  81. package/dist/{chunk-W76ETJTI.js → chunk-RVYPEYPX.js} +6 -6
  82. package/dist/{chunk-MWEFR6YQ.js → chunk-S2N5TNMA.js} +7 -9
  83. package/dist/{chunk-NCUHGRTZ.js → chunk-S565K7NK.js} +7 -7
  84. package/dist/{chunk-AC4BSHFV.js → chunk-SDAMZIRE.js} +5 -5
  85. package/dist/{chunk-HBZYCASG.js → chunk-T36DDXSF.js} +75 -33
  86. package/dist/{chunk-BO2OKHIY.js → chunk-T4NKMBDL.js} +30 -611
  87. package/dist/{chunk-7X2IEJIE.cjs → chunk-T7LEXZUZ.cjs} +29 -29
  88. package/dist/{chunk-HUFNKFA6.js → chunk-TEWCN33Y.js} +8 -12
  89. package/dist/{chunk-L3Z2HIWJ.cjs → chunk-TQSZUOW5.cjs} +2 -2
  90. package/dist/chunk-TSH3MSQU.cjs +129 -0
  91. package/dist/{chunk-PLMYCCA4.js → chunk-UERJ3YJV.js} +6 -6
  92. package/dist/{chunk-7N3JIJMT.js → chunk-UPJBDCVF.js} +6 -6
  93. package/dist/{chunk-CMYAWUX3.js → chunk-V3NN3HPP.js} +12 -5
  94. package/dist/{chunk-SUCBB66F.js → chunk-WB4Z63GG.js} +3 -3
  95. package/dist/{chunk-PPULB4GG.cjs → chunk-WDW67DZB.cjs} +68 -68
  96. package/dist/chunk-WGMEAYBG.js +126 -0
  97. package/dist/{chunk-VSXOIUCF.cjs → chunk-X4ZF6CNE.cjs} +7 -7
  98. package/dist/{chunk-HF4OFY25.cjs → chunk-X6SEAXAX.cjs} +29 -445
  99. package/dist/{chunk-C7BNX4XJ.js → chunk-XCWFGZAA.js} +6 -6
  100. package/dist/{chunk-CNVM7J3M.js → chunk-XD6IYDUX.js} +34 -14
  101. package/dist/chunk-XG23EUQX.cjs +1717 -0
  102. package/dist/{chunk-DN7UFU63.cjs → chunk-XRKWN5PL.cjs} +12 -11
  103. package/dist/{chunk-XNMEH2BI.js → chunk-XUTX5CBW.js} +3 -3
  104. package/dist/{chunk-PQLGZKMC.cjs → chunk-XWPNTWDN.cjs} +26 -26
  105. package/dist/{chunk-NTMZSDXM.cjs → chunk-XXINBTZK.cjs} +43 -43
  106. package/dist/{chunk-74YCHHTE.js → chunk-YCXFCXDS.js} +8 -12
  107. package/dist/{chunk-KDB6BUMB.js → chunk-YQK5JNFK.js} +77 -18
  108. package/dist/{chunk-DH5G2JUA.cjs → chunk-Z34RLXRA.cjs} +44 -46
  109. package/dist/{chunk-XH7SE4HH.cjs → chunk-ZP4D3CSX.cjs} +19 -19
  110. package/dist/cli/holoscript-runner.cjs +33 -32
  111. package/dist/cli/holoscript-runner.js +13 -12
  112. package/dist/codebase/index.cjs +1 -1
  113. package/dist/codebase/index.d.ts +25 -0
  114. package/dist/codebase/index.js +1 -1
  115. package/dist/compiler/agent-inference.cjs +7 -8
  116. package/dist/compiler/agent-inference.js +3 -4
  117. package/dist/compiler/android-xr.cjs +7 -8
  118. package/dist/compiler/android-xr.js +5 -6
  119. package/dist/compiler/android.cjs +8 -9
  120. package/dist/compiler/android.js +6 -7
  121. package/dist/compiler/ar.cjs +6 -7
  122. package/dist/compiler/ar.js +4 -5
  123. package/dist/compiler/babylon.cjs +8 -9
  124. package/dist/compiler/babylon.js +7 -8
  125. package/dist/compiler/coco.cjs +1 -1
  126. package/dist/compiler/coco.js +1 -1
  127. package/dist/compiler/domain-block-utils.cjs +158 -151
  128. package/dist/compiler/domain-block-utils.js +4 -5
  129. package/dist/compiler/dtdl.cjs +7 -8
  130. package/dist/compiler/dtdl.js +4 -5
  131. package/dist/compiler/gltf-pipeline.cjs +9 -9
  132. package/dist/compiler/gltf-pipeline.js +2 -2
  133. package/dist/compiler/godot.cjs +6 -7
  134. package/dist/compiler/godot.js +5 -6
  135. package/dist/compiler/incremental.cjs +7 -8
  136. package/dist/compiler/incremental.js +2 -3
  137. package/dist/compiler/index.cjs +1934 -878
  138. package/dist/compiler/index.js +1904 -842
  139. package/dist/compiler/ios.cjs +8 -9
  140. package/dist/compiler/ios.js +6 -7
  141. package/dist/compiler/multi-layer.cjs +10 -17
  142. package/dist/compiler/multi-layer.js +9 -10
  143. package/dist/compiler/nodetoy.cjs +1 -1
  144. package/dist/compiler/nodetoy.js +1 -1
  145. package/dist/compiler/openxr.cjs +6 -7
  146. package/dist/compiler/openxr.js +5 -6
  147. package/dist/compiler/playcanvas.cjs +7 -8
  148. package/dist/compiler/playcanvas.js +6 -7
  149. package/dist/compiler/r3f.cjs +13 -14
  150. package/dist/compiler/r3f.js +8 -9
  151. package/dist/compiler/remotion.cjs +1 -1
  152. package/dist/compiler/remotion.js +1 -1
  153. package/dist/compiler/reproducibility.cjs +1 -1
  154. package/dist/compiler/reproducibility.js +1 -1
  155. package/dist/compiler/sdf.cjs +7 -8
  156. package/dist/compiler/sdf.js +5 -6
  157. package/dist/compiler/semantic-scene.cjs +7 -7
  158. package/dist/compiler/semantic-scene.js +2 -2
  159. package/dist/compiler/state.cjs +5 -6
  160. package/dist/compiler/state.js +3 -4
  161. package/dist/compiler/trait-composition.cjs +7 -8
  162. package/dist/compiler/trait-composition.js +3 -4
  163. package/dist/compiler/unity.cjs +6 -7
  164. package/dist/compiler/unity.js +5 -6
  165. package/dist/compiler/unreal.cjs +7 -8
  166. package/dist/compiler/unreal.js +5 -6
  167. package/dist/compiler/urdf.cjs +13 -14
  168. package/dist/compiler/urdf.js +5 -6
  169. package/dist/compiler/usd-physics.cjs +7 -8
  170. package/dist/compiler/usd-physics.js +4 -5
  171. package/dist/compiler/visionos.cjs +6 -7
  172. package/dist/compiler/visionos.js +5 -6
  173. package/dist/compiler/vrchat.cjs +7 -8
  174. package/dist/compiler/vrchat.js +5 -6
  175. package/dist/compiler/vrr.cjs +7 -8
  176. package/dist/compiler/vrr.js +5 -6
  177. package/dist/compiler/wasm.cjs +10 -11
  178. package/dist/compiler/wasm.js +5 -6
  179. package/dist/compiler/webgpu.cjs +6 -7
  180. package/dist/compiler/webgpu.js +5 -6
  181. package/dist/constants.d.ts +3 -0
  182. package/dist/debugger.cjs +7 -7
  183. package/dist/debugger.js +5 -5
  184. package/dist/entries/interop.cjs +1 -1
  185. package/dist/entries/interop.d.ts +9 -0
  186. package/dist/entries/interop.js +1 -1
  187. package/dist/entries/scripting.cjs +18 -17
  188. package/dist/entries/scripting.d.ts +7 -0
  189. package/dist/entries/scripting.js +8 -7
  190. package/dist/index.cjs +6773 -27555
  191. package/dist/index.d.ts +19 -0
  192. package/dist/index.js +5212 -26101
  193. package/dist/math/vec3.cjs +1 -1
  194. package/dist/math/vec3.js +1 -1
  195. package/dist/ml-dsa-PHCWUBPX.cjs +1178 -0
  196. package/dist/ml-dsa-WYLJHJO6.js +1178 -0
  197. package/dist/parser.cjs +11 -10
  198. package/dist/parser.js +8 -7
  199. package/dist/{playwright-BIZXMLD2.js → playwright-5OSAPTNH.js} +3 -3
  200. package/dist/{playwright-7DTEQCBD.cjs → playwright-RL6GY4F7.cjs} +1985 -1985
  201. package/dist/runtime.cjs +5 -5
  202. package/dist/runtime.js +4 -4
  203. package/dist/self-improvement/index.d.ts +0 -48
  204. package/dist/storage/index.cjs +1 -1
  205. package/dist/storage/index.d.ts +24 -0
  206. package/dist/storage/index.js +1 -1
  207. package/dist/tools/index.d.ts +12 -0
  208. package/dist/traits/index.cjs +925 -607
  209. package/dist/traits/index.js +137 -20
  210. package/dist/type-checker.cjs +4 -4
  211. package/dist/type-checker.js +2 -2
  212. package/package.json +56 -21
  213. package/LICENSE +0 -21
  214. package/dist/GLTFPipeline-3KLWWUQO.cjs +0 -34
  215. package/dist/GLTFPipeline-LYII2ZVQ.js +0 -13
  216. package/dist/chunk-CN4NOESF.cjs +0 -416
  217. package/dist/chunk-DXVCEFZB.js +0 -2027
  218. package/dist/chunk-ENV7K6XA.js +0 -282
  219. package/dist/chunk-H7XMORZI.js +0 -2731
  220. package/dist/chunk-HAN4V3PF.cjs +0 -2037
  221. package/dist/chunk-LER4WXW5.cjs +0 -286
  222. package/dist/chunk-QHVVVN47.cjs +0 -2033
  223. package/dist/chunk-QWKUKVRE.js +0 -2026
  224. package/dist/chunk-UITWA6DV.cjs +0 -2829
  225. package/dist/chunk-X67XRI2T.js +0 -410
  226. package/dist/post-quantum-JTTAAGO3.cjs +0 -6
  227. package/dist/post-quantum-RVPVDEPI.js +0 -4
  228. package/dist/wot/index.cjs +0 -29
  229. package/dist/wot/index.js +0 -4
@@ -21,7 +21,7 @@ var HoloScriptPersistenceParser = class {
21
21
  const node = {
22
22
  type: "memory",
23
23
  name,
24
- position: { x: 0, y: 0, z: 0 }
24
+ position: [0, 0, 0]
25
25
  };
26
26
  if (this.ctx.check("punctuation", "{")) {
27
27
  this.ctx.advance();
@@ -47,19 +47,19 @@ var HoloScriptPersistenceParser = class {
47
47
  node.semantic = {
48
48
  type: "semantic-memory",
49
49
  properties,
50
- position: { x: 0, y: 0, z: 0 }
50
+ position: [0, 0, 0]
51
51
  };
52
52
  } else if (key === "episodic" && typeToken.value === "EpisodicMemory") {
53
53
  node.episodic = {
54
54
  type: "episodic-memory",
55
55
  properties,
56
- position: { x: 0, y: 0, z: 0 }
56
+ position: [0, 0, 0]
57
57
  };
58
58
  } else if (key === "procedural" && typeToken.value === "ProceduralMemory") {
59
59
  node.procedural = {
60
60
  type: "procedural-memory",
61
61
  properties,
62
- position: { x: 0, y: 0, z: 0 }
62
+ position: [0, 0, 0]
63
63
  };
64
64
  }
65
65
  }
@@ -843,7 +843,7 @@ var HoloScriptCodeParser = class {
843
843
  condition: this.parseConditionExpression(condition.trim()),
844
844
  update: update.trim(),
845
845
  body,
846
- position: { x: 0, y: 0, z: 0 }
846
+ position: [0, 0, 0]
847
847
  };
848
848
  }
849
849
  /**
@@ -883,7 +883,7 @@ var HoloScriptCodeParser = class {
883
883
  type: "while-loop",
884
884
  condition: this.parseConditionExpression(condition.trim()),
885
885
  body: [],
886
- position: { x: 0, y: 0, z: 0 }
886
+ position: [0, 0, 0]
887
887
  };
888
888
  }
889
889
  /**
@@ -908,7 +908,7 @@ var HoloScriptCodeParser = class {
908
908
  variable: variable || "item",
909
909
  collection: collection || "items",
910
910
  body: [],
911
- position: { x: 0, y: 0, z: 0 }
911
+ position: [0, 0, 0]
912
912
  };
913
913
  }
914
914
  /**
@@ -927,7 +927,7 @@ var HoloScriptCodeParser = class {
927
927
  type: "import",
928
928
  imports: [],
929
929
  modulePath,
930
- position: { x: 0, y: 0, z: 0 }
930
+ position: [0, 0, 0]
931
931
  };
932
932
  }
933
933
  if (this.check("punctuation", "{")) {
@@ -954,7 +954,7 @@ var HoloScriptCodeParser = class {
954
954
  imports,
955
955
  defaultImport,
956
956
  modulePath,
957
- position: { x: 0, y: 0, z: 0 }
957
+ position: [0, 0, 0]
958
958
  };
959
959
  }
960
960
  /**
@@ -968,7 +968,7 @@ var HoloScriptCodeParser = class {
968
968
  return {
969
969
  type: "export",
970
970
  declaration: declaration || void 0,
971
- position: { x: 0, y: 0, z: 0 }
971
+ position: [0, 0, 0]
972
972
  };
973
973
  }
974
974
  const exports$1 = [];
@@ -984,7 +984,7 @@ var HoloScriptCodeParser = class {
984
984
  return {
985
985
  type: "export",
986
986
  exports: exports$1,
987
- position: { x: 0, y: 0, z: 0 }
987
+ position: [0, 0, 0]
988
988
  };
989
989
  }
990
990
  /**
@@ -1007,7 +1007,7 @@ var HoloScriptCodeParser = class {
1007
1007
  name,
1008
1008
  dataType,
1009
1009
  value: void 0,
1010
- position: { x: 0, y: 0, z: 0 }
1010
+ position: [0, 0, 0]
1011
1011
  };
1012
1012
  if (this.check("punctuation", "=")) {
1013
1013
  this.advance();
@@ -1294,7 +1294,7 @@ var HoloScriptCodeParser = class {
1294
1294
  parameters,
1295
1295
  body,
1296
1296
  returnType,
1297
- position: { x: 0, y: 0, z: 0 },
1297
+ position: [0, 0, 0],
1298
1298
  hologram: { shape: "cube", color: "#ff6b35", size: 1.5, glow: true, interactive: true }
1299
1299
  };
1300
1300
  }
@@ -1354,7 +1354,7 @@ var HoloScriptCodeParser = class {
1354
1354
  magnitude,
1355
1355
  multiplier: multipliers[magnitude] || 1,
1356
1356
  body,
1357
- position: { x: 0, y: 0, z: 0 }
1357
+ position: [0, 0, 0]
1358
1358
  };
1359
1359
  }
1360
1360
  /**
@@ -1378,7 +1378,7 @@ var HoloScriptCodeParser = class {
1378
1378
  type: "focus",
1379
1379
  target,
1380
1380
  body,
1381
- position: { x: 0, y: 0, z: 0 }
1381
+ position: [0, 0, 0]
1382
1382
  };
1383
1383
  }
1384
1384
  /**
@@ -1975,7 +1975,7 @@ var HoloScriptCodeParser = class {
1975
1975
  type: "migration",
1976
1976
  fromVersion,
1977
1977
  body: body.trim(),
1978
- position: { x: 0, y: 0, z: 0 }
1978
+ position: [0, 0, 0]
1979
1979
  };
1980
1980
  }
1981
1981
  /**
@@ -2030,7 +2030,7 @@ var HoloScriptCodeParser = class {
2030
2030
  condition: this.parseConditionExpression(condition.trim()),
2031
2031
  truePath,
2032
2032
  falsePath,
2033
- position: { x: 0, y: 0, z: 0 },
2033
+ position: [0, 0, 0],
2034
2034
  hologram: { shape: "pyramid", color: "#4ecdc4", size: 1, glow: true, interactive: true }
2035
2035
  };
2036
2036
  }
@@ -2064,7 +2064,7 @@ var HoloScriptCodeParser = class {
2064
2064
  type: "return",
2065
2065
  value: expression.trim(),
2066
2066
  // Use 'value' to match runtime's executeReturn
2067
- position: { x: 0, y: 0, z: 0 }
2067
+ position: [0, 0, 0]
2068
2068
  };
2069
2069
  }
2070
2070
  /**
@@ -2099,7 +2099,7 @@ var HoloScriptCodeParser = class {
2099
2099
  return {
2100
2100
  type: "expression-statement",
2101
2101
  expression: expression.trim(),
2102
- position: { x: 0, y: 0, z: 0 }
2102
+ position: [0, 0, 0]
2103
2103
  };
2104
2104
  }
2105
2105
  /**
@@ -2128,7 +2128,7 @@ var HoloScriptCodeParser = class {
2128
2128
  name,
2129
2129
  source,
2130
2130
  transformations: [],
2131
- position: { x: 0, y: 0, z: 0 },
2131
+ position: [0, 0, 0],
2132
2132
  hologram: { shape: "cylinder", color: "#45b7d1", size: 2, glow: true, interactive: true }
2133
2133
  };
2134
2134
  }
@@ -2150,7 +2150,7 @@ var HoloScriptCodeParser = class {
2150
2150
  }
2151
2151
  return {
2152
2152
  type: "nexus",
2153
- position: { x: 0, y: 0, z: 0 },
2153
+ position: [0, 0, 0],
2154
2154
  hologram: { shape: "sphere", color: "#9b59b6", size: 3, glow: true, interactive: true }
2155
2155
  };
2156
2156
  }
@@ -2172,7 +2172,7 @@ var HoloScriptCodeParser = class {
2172
2172
  }
2173
2173
  return {
2174
2174
  type: "building",
2175
- position: { x: 0, y: 0, z: 0 },
2175
+ position: [0, 0, 0],
2176
2176
  hologram: { shape: "cube", color: "#e74c3c", size: 4, glow: true, interactive: true }
2177
2177
  };
2178
2178
  }
@@ -2402,7 +2402,7 @@ var HoloScriptCodeParser = class {
2402
2402
  return {
2403
2403
  type: "expression-statement",
2404
2404
  expression: `animate("${target}", ${JSON.stringify(properties)})`,
2405
- position: { x: 0, y: 0, z: 0 }
2405
+ position: [0, 0, 0]
2406
2406
  };
2407
2407
  }
2408
2408
  /**
@@ -2429,7 +2429,7 @@ var HoloScriptCodeParser = class {
2429
2429
  return {
2430
2430
  type: "expression-statement",
2431
2431
  expression: `modify("${target}", ${JSON.stringify(properties)})`,
2432
- position: { x: 0, y: 0, z: 0 }
2432
+ position: [0, 0, 0]
2433
2433
  };
2434
2434
  }
2435
2435
  /**
@@ -2471,7 +2471,7 @@ var HoloScriptCodeParser = class {
2471
2471
  type: "ui2d",
2472
2472
  name: elementType,
2473
2473
  properties: { id: elementId, ...properties },
2474
- position: { x: 0, y: 0, z: 0 }
2474
+ position: [0, 0, 0]
2475
2475
  };
2476
2476
  }
2477
2477
  /**
@@ -2482,7 +2482,7 @@ var HoloScriptCodeParser = class {
2482
2482
  return {
2483
2483
  type: "expression-statement",
2484
2484
  expression: "showSettings()",
2485
- position: { x: 0, y: 0, z: 0 }
2485
+ position: [0, 0, 0]
2486
2486
  };
2487
2487
  }
2488
2488
  parseChat() {
@@ -2490,7 +2490,7 @@ var HoloScriptCodeParser = class {
2490
2490
  return {
2491
2491
  type: "expression-statement",
2492
2492
  expression: "openChat()",
2493
- position: { x: 0, y: 0, z: 0 }
2493
+ position: [0, 0, 0]
2494
2494
  };
2495
2495
  }
2496
2496
  /**
@@ -2522,5 +2522,5 @@ var HoloScriptCodeParser = class {
2522
2522
  exports.ERROR_CODES = ERROR_CODES;
2523
2523
  exports.HoloScriptCodeParser = HoloScriptCodeParser;
2524
2524
  exports.ParserPools = ParserPools;
2525
- //# sourceMappingURL=chunk-7X2IEJIE.cjs.map
2526
- //# sourceMappingURL=chunk-7X2IEJIE.cjs.map
2525
+ //# sourceMappingURL=chunk-T7LEXZUZ.cjs.map
2526
+ //# sourceMappingURL=chunk-T7LEXZUZ.cjs.map
@@ -1,6 +1,7 @@
1
- import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToUnity, compileInputBlock, navigationToUnity, compileNavigationBlock, renderingToUnity, compileRenderingBlock, proceduralToUnity, compileProceduralBlock, web3ToUnity, compileWeb3Block, architectureToUnity, compileArchitectureBlock, musicToUnity, compileMusicBlock, educationToUnity, compileEducationBlock, datavizToUnity, compileDataVizBlock, iotToUnity, compileIoTBlock, compileRoboticsBlock, roboticsToUnity, compileHealthcareBlock, healthcareToUnity, compilePaymentBlock, paymentToUnity, compileNarrativeBlock, narrativeToUnity, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToUnity } from './chunk-KDB6BUMB.js';
2
- import { init_CompilerBase, init_ANSNamespace, CompilerBase, ANSCapabilityPath } from './chunk-QWKUKVRE.js';
3
- import { __export, __esm } from './chunk-32TWR3HE.js';
1
+ import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToUnity, compileInputBlock, navigationToUnity, compileNavigationBlock, renderingToUnity, compileRenderingBlock, proceduralToUnity, compileProceduralBlock, web3ToUnity, compileWeb3Block, architectureToUnity, compileArchitectureBlock, musicToUnity, compileMusicBlock, educationToUnity, compileEducationBlock, datavizToUnity, compileDataVizBlock, iotToUnity, compileIoTBlock, compileRoboticsBlock, roboticsToUnity, compileHealthcareBlock, healthcareToUnity, compilePaymentBlock, paymentToUnity, compileNarrativeBlock, narrativeToUnity, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToUnity } from './chunk-YQK5JNFK.js';
2
+ import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
3
+ import { __export, __esm } from './chunk-2CWOLHTE.js';
4
+ import { ANSCapabilityPath } from '@holoscript/platform';
4
5
 
5
6
  // src/compiler/UnityCompiler.ts
6
7
  var UnityCompiler_exports = {};
@@ -11,7 +12,6 @@ var UnityCompiler;
11
12
  var init_UnityCompiler = __esm({
12
13
  "src/compiler/UnityCompiler.ts"() {
13
14
  init_CompilerBase();
14
- init_ANSNamespace();
15
15
  init_DomainBlockCompilerMixin();
16
16
  UnityCompiler = class extends CompilerBase {
17
17
  constructor(options = {}) {
@@ -291,9 +291,7 @@ var init_UnityCompiler = __esm({
291
291
  this.emit(`// WARNING: geometry "model" without source \u2014 placeholder cube`);
292
292
  this.emit(`var ${varName}GO = GameObject.CreatePrimitive(PrimitiveType.Cube);`);
293
293
  }
294
- this.emit(
295
- `${varName}GO.name = "${this.escapeStringValue(obj.name, "CSharp")}";`
296
- );
294
+ this.emit(`${varName}GO.name = "${this.escapeStringValue(obj.name, "CSharp")}";`);
297
295
  this.emit(`${varName}GO.transform.SetParent(${parentVar});`);
298
296
  } else if (isSparkles) {
299
297
  this.emit(
@@ -315,9 +313,7 @@ var init_UnityCompiler = __esm({
315
313
  };
316
314
  const primitive = primitiveMap[meshType] || "PrimitiveType.Cube";
317
315
  this.emit(`var ${varName}GO = GameObject.CreatePrimitive(${primitive});`);
318
- this.emit(
319
- `${varName}GO.name = "${this.escapeStringValue(obj.name, "CSharp")}";`
320
- );
316
+ this.emit(`${varName}GO.name = "${this.escapeStringValue(obj.name, "CSharp")}";`);
321
317
  this.emit(`${varName}GO.transform.SetParent(${parentVar});`);
322
318
  }
323
319
  const pos = this.findObjProp(obj, "position");
@@ -694,5 +690,5 @@ var init_UnityCompiler = __esm({
694
690
  });
695
691
 
696
692
  export { UnityCompiler, UnityCompiler_exports, init_UnityCompiler };
697
- //# sourceMappingURL=chunk-HUFNKFA6.js.map
698
- //# sourceMappingURL=chunk-HUFNKFA6.js.map
693
+ //# sourceMappingURL=chunk-TEWCN33Y.js.map
694
+ //# sourceMappingURL=chunk-TEWCN33Y.js.map
@@ -789,5 +789,5 @@ exports.ScriptTestRunner = ScriptTestRunner;
789
789
  exports.absorbHandler = absorbHandler;
790
790
  exports.hotReloadHandler = hotReloadHandler;
791
791
  exports.scriptTestHandler = scriptTestHandler;
792
- //# sourceMappingURL=chunk-L3Z2HIWJ.cjs.map
793
- //# sourceMappingURL=chunk-L3Z2HIWJ.cjs.map
792
+ //# sourceMappingURL=chunk-TQSZUOW5.cjs.map
793
+ //# sourceMappingURL=chunk-TQSZUOW5.cjs.map
@@ -0,0 +1,129 @@
1
+ 'use strict';
2
+
3
+ var chunkILRBGFVD_cjs = require('./chunk-ILRBGFVD.cjs');
4
+ var orbital = require('@holoscript/engine/orbital');
5
+
6
+ // src/traits/MitosisTrait.ts
7
+ var mitosisHandler = {
8
+ name: "mitosis",
9
+ defaultConfig: {
10
+ strategy: "collaborative",
11
+ max_children: 5,
12
+ auto_cleanup: true
13
+ },
14
+ onAttach(node, config, context) {
15
+ const state = {
16
+ parent_id: ("parent_id" in config ? config.parent_id : null) || null,
17
+ active_children: [],
18
+ tasks_delegated: 0,
19
+ completed_tasks: 0,
20
+ last_sync_time: Date.now()
21
+ };
22
+ node.__mitosisState = state;
23
+ context.emit?.("mitosis_init", {
24
+ nodeId: node.id,
25
+ strategy: config.strategy,
26
+ parent_id: state.parent_id
27
+ });
28
+ },
29
+ onDetach(node, config, context) {
30
+ const state = node.__mitosisState;
31
+ if (state && config.auto_cleanup) {
32
+ for (const childId of state.active_children) {
33
+ context.emit?.("mitosis_despawn_child", { childId });
34
+ }
35
+ }
36
+ delete node.__mitosisState;
37
+ },
38
+ onEvent(node, config, context, event) {
39
+ const state = node.__mitosisState;
40
+ if (!state) return;
41
+ if (event.type === "mitosis_spawned") {
42
+ const childId = event.childId;
43
+ const parentId = event.parentId;
44
+ if (node.id === parentId) {
45
+ state.active_children.push(childId);
46
+ state.tasks_delegated++;
47
+ context.emit?.("on_mitosis_spawned", { childId, parentId: node.id });
48
+ }
49
+ } else if (event.type === "mitosis_child_complete") {
50
+ const childId = "childId" in event ? event.childId : "";
51
+ const parentId = "parentId" in event ? event.parentId : "";
52
+ const result = "result" in event ? event.result : void 0;
53
+ if (node.id === parentId) {
54
+ state.completed_tasks++;
55
+ state.last_sync_time = Date.now();
56
+ context.emit?.("mitosis_synced", {
57
+ parentId: node.id,
58
+ childId,
59
+ result
60
+ });
61
+ if (config.strategy === "collaborative") {
62
+ if (result && typeof result === "object") {
63
+ Object.assign(node.properties || {}, result);
64
+ }
65
+ }
66
+ }
67
+ } else if (event.type === "mitosis_child_failed") {
68
+ context.emit?.("on_mitosis_error", {
69
+ parentId: node.id,
70
+ childId: event.childId,
71
+ error: event.error
72
+ });
73
+ }
74
+ }
75
+ };
76
+ var orbitalHandler = {
77
+ name: "orbital",
78
+ defaultConfig: {},
79
+ /**
80
+ * Called when trait is attached to a node
81
+ */
82
+ onAttach(node, _config, _context) {
83
+ chunkILRBGFVD_cjs.logger.info(`[OrbitalTrait] Attached to ${node.name}`);
84
+ },
85
+ /**
86
+ * Called every frame to update orbital position
87
+ */
88
+ onUpdate(node, config, context, _delta) {
89
+ const properties = node.properties || {};
90
+ const mergedConfig = { ...properties, ...config };
91
+ if (!mergedConfig || !mergedConfig.semiMajorAxis) {
92
+ return;
93
+ }
94
+ const julianDate = context.julianDate || 0;
95
+ const visualScale = context.getScaleMultiplier() * 50;
96
+ const satelliteScale = 5;
97
+ const rawPosition = orbital.calculatePosition(mergedConfig, julianDate);
98
+ const currentScale = mergedConfig.parent ? visualScale * satelliteScale : visualScale;
99
+ let finalPosition = {
100
+ x: rawPosition.x * currentScale,
101
+ y: rawPosition.z * currentScale,
102
+ z: rawPosition.y * currentScale
103
+ };
104
+ if (mergedConfig.parent) {
105
+ let parentNode = context.getNode?.(mergedConfig.parent);
106
+ if (!parentNode && typeof mergedConfig.parent === "object" && mergedConfig.parent && mergedConfig.parent.position) {
107
+ parentNode = mergedConfig.parent;
108
+ }
109
+ if (parentNode && parentNode.position) {
110
+ finalPosition = {
111
+ x: finalPosition.x + (parentNode.position.x || 0),
112
+ y: finalPosition.y + (parentNode.position.y || 0),
113
+ z: finalPosition.z + (parentNode.position.z || 0)
114
+ };
115
+ } else {
116
+ if (typeof mergedConfig.parent === "string") {
117
+ chunkILRBGFVD_cjs.logger.warn(`[OrbitalTrait] Parent "${mergedConfig.parent}" not found for ${node.name}`);
118
+ }
119
+ }
120
+ }
121
+ node.position = finalPosition;
122
+ context.emit("position_update", { position: finalPosition });
123
+ }
124
+ };
125
+
126
+ exports.mitosisHandler = mitosisHandler;
127
+ exports.orbitalHandler = orbitalHandler;
128
+ //# sourceMappingURL=chunk-TSH3MSQU.cjs.map
129
+ //# sourceMappingURL=chunk-TSH3MSQU.cjs.map
@@ -1,6 +1,7 @@
1
- import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToSDF, compileMaterialBlock, materialToSDF } from './chunk-KDB6BUMB.js';
2
- import { init_CompilerBase, init_ANSNamespace, CompilerBase, ANSCapabilityPath } from './chunk-QWKUKVRE.js';
3
- import { __export, __esm } from './chunk-32TWR3HE.js';
1
+ import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToSDF, compileMaterialBlock, materialToSDF } from './chunk-YQK5JNFK.js';
2
+ import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
3
+ import { __export, __esm } from './chunk-2CWOLHTE.js';
4
+ import { ANSCapabilityPath } from '@holoscript/platform';
4
5
 
5
6
  // src/compiler/SDFCompiler.ts
6
7
  var SDFCompiler_exports = {};
@@ -12,7 +13,6 @@ var SDFCompiler, SDFCompiler_default;
12
13
  var init_SDFCompiler = __esm({
13
14
  "src/compiler/SDFCompiler.ts"() {
14
15
  init_CompilerBase();
15
- init_ANSNamespace();
16
16
  init_DomainBlockCompilerMixin();
17
17
  SDFCompiler = class extends CompilerBase {
18
18
  constructor(options = {}) {
@@ -500,5 +500,5 @@ ${layers}`;
500
500
  });
501
501
 
502
502
  export { SDFCompiler, SDFCompiler_default, SDFCompiler_exports, init_SDFCompiler };
503
- //# sourceMappingURL=chunk-PLMYCCA4.js.map
504
- //# sourceMappingURL=chunk-PLMYCCA4.js.map
503
+ //# sourceMappingURL=chunk-UERJ3YJV.js.map
504
+ //# sourceMappingURL=chunk-UERJ3YJV.js.map
@@ -1,6 +1,7 @@
1
- import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToURDF, compileMaterialBlock } from './chunk-KDB6BUMB.js';
2
- import { init_CompilerBase, init_ANSNamespace, CompilerBase, ANSCapabilityPath } from './chunk-QWKUKVRE.js';
3
- import { __export, __esm } from './chunk-32TWR3HE.js';
1
+ import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToURDF, compileMaterialBlock } from './chunk-YQK5JNFK.js';
2
+ import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
3
+ import { __export, __esm } from './chunk-2CWOLHTE.js';
4
+ import { ANSCapabilityPath } from '@holoscript/platform';
4
5
 
5
6
  // src/compiler/URDFCompiler.ts
6
7
  var URDFCompiler_exports = {};
@@ -199,7 +200,6 @@ var URDFCompiler, URDFCompiler_default;
199
200
  var init_URDFCompiler = __esm({
200
201
  "src/compiler/URDFCompiler.ts"() {
201
202
  init_CompilerBase();
202
- init_ANSNamespace();
203
203
  init_DomainBlockCompilerMixin();
204
204
  URDFCompiler = class extends CompilerBase {
205
205
  constructor(options = {}) {
@@ -1391,5 +1391,5 @@ var init_URDFCompiler = __esm({
1391
1391
  });
1392
1392
 
1393
1393
  export { URDFCompiler, URDFCompiler_default, URDFCompiler_exports, compileForGazebo, compileForIsaacSim, compileForROS2, compileToURDF, generateControllersYaml, generateROS2LaunchFile, init_URDFCompiler };
1394
- //# sourceMappingURL=chunk-7N3JIJMT.js.map
1395
- //# sourceMappingURL=chunk-7N3JIJMT.js.map
1394
+ //# sourceMappingURL=chunk-UPJBDCVF.js.map
1395
+ //# sourceMappingURL=chunk-UPJBDCVF.js.map
@@ -1,4 +1,5 @@
1
- import { VR_TRAITS, ErrorRecovery, generateQuickFixes, enrichErrorWithSuggestions, LIFECYCLE_HOOKS, STRUCTURAL_DIRECTIVES } from './chunk-DXVCEFZB.js';
1
+ import { ErrorRecovery, generateQuickFixes, enrichErrorWithSuggestions, LIFECYCLE_HOOKS, STRUCTURAL_DIRECTIVES } from './chunk-MPXBVFHQ.js';
2
+ import { VR_TRAITS } from './chunk-NDQNIJEH.js';
2
3
  import * as crypto from 'crypto';
3
4
 
4
5
  // src/parser/HybridChunker.ts
@@ -2309,7 +2310,9 @@ var HoloScriptPlusParser = class {
2309
2310
  parseDirective() {
2310
2311
  this.expect("AT", "Expected @");
2311
2312
  const nameToken = this.current();
2312
- const isKeyword = ["STATE_MACHINE", "STATE", "ON_ENTRY", "ON_EXIT", "TRANSITION"].includes(nameToken.type);
2313
+ const isKeyword = ["STATE_MACHINE", "STATE", "ON_ENTRY", "ON_EXIT", "TRANSITION"].includes(
2314
+ nameToken.type
2315
+ );
2313
2316
  if (nameToken.type !== "IDENTIFIER" && !isKeyword) {
2314
2317
  this.error(
2315
2318
  `Expected directive name, got ${nameToken.type}. Directives start with @ followed by name (e.g., @grabbable)`,
@@ -2617,7 +2620,11 @@ var HoloScriptPlusParser = class {
2617
2620
  externalApiName = this.advance().value;
2618
2621
  }
2619
2622
  const config2 = this.check("LBRACE") ? this.parseBlockContent() : this.parseTraitConfig();
2620
- return { type: "external_api", name: externalApiName, ...config2 };
2623
+ return {
2624
+ type: "external_api",
2625
+ name: externalApiName,
2626
+ ...config2
2627
+ };
2621
2628
  }
2622
2629
  if (name === "generate") {
2623
2630
  const config2 = this.parseTraitConfig();
@@ -4451,5 +4458,5 @@ function parse(source, options) {
4451
4458
  }
4452
4459
 
4453
4460
  export { ChunkDetector, HSPLUS_ERROR_CODES, HoloScriptPlusParser, ParseCache, createKeywordError, createParser, createRichError, createTraitError, findSimilarKeyword, findSimilarTrait, formatRichError, formatRichErrors, getErrorCodeDocumentation, getSourceContext, globalParseCache, parse };
4454
- //# sourceMappingURL=chunk-CMYAWUX3.js.map
4455
- //# sourceMappingURL=chunk-CMYAWUX3.js.map
4461
+ //# sourceMappingURL=chunk-V3NN3HPP.js.map
4462
+ //# sourceMappingURL=chunk-V3NN3HPP.js.map
@@ -1,4 +1,4 @@
1
- import { __esm } from './chunk-32TWR3HE.js';
1
+ import { __esm } from './chunk-2CWOLHTE.js';
2
2
 
3
3
  // src/traits/constants/mobile/ios-object-capture.ts
4
4
  var IOS_OBJECT_CAPTURE_TRAITS;
@@ -225,5 +225,5 @@ var init_roomplan = __esm({
225
225
  });
226
226
 
227
227
  export { AIRPODS_SPATIAL_AUDIO_TRAITS, FACE_TRACKING_TRAITS, IOS_OBJECT_CAPTURE_TRAITS, LIDAR_SCANNER_TRAITS, ROOMPLAN_TRAITS, SHAREPLAY_TRAITS, UWB_POSITIONING_TRAITS, init_airpods_spatial_audio, init_face_tracking, init_ios_object_capture, init_lidar_scanner, init_roomplan, init_shareplay, init_uwb_positioning };
228
- //# sourceMappingURL=chunk-SUCBB66F.js.map
229
- //# sourceMappingURL=chunk-SUCBB66F.js.map
228
+ //# sourceMappingURL=chunk-WB4Z63GG.js.map
229
+ //# sourceMappingURL=chunk-WB4Z63GG.js.map