@holoscript/core 8.0.6 → 8.0.8

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 (248) hide show
  1. package/README.md +34 -34
  2. package/bin/holoscript.cjs +1 -1
  3. package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
  4. package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
  5. package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
  6. package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
  7. package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
  8. package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
  9. package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
  10. package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
  11. package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
  12. package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
  13. package/dist/{chunk-2GQHTXOK.js → chunk-22Q5A6RV.js} +3 -3
  14. package/dist/{chunk-XHZCF3AS.cjs → chunk-2BZHWUSR.cjs} +27 -15
  15. package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
  16. package/dist/{chunk-DBPGNHFS.js → chunk-2OWDB4FB.js} +13 -25
  17. package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
  18. package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
  19. package/dist/{chunk-RCZHLCX2.js → chunk-3GWWJT7L.js} +4 -4
  20. package/dist/{chunk-EK7L4DW7.js → chunk-3NGDZZR4.js} +4 -4
  21. package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
  22. package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
  23. package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
  24. package/dist/{chunk-VHAONJBY.js → chunk-4JGRWHZJ.js} +7 -5
  25. package/dist/{chunk-2J5WZLF5.cjs → chunk-4W5G5QVL.cjs} +26 -26
  26. package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
  27. package/dist/{chunk-H5PUZHJV.cjs → chunk-56VOWURB.cjs} +61 -40
  28. package/dist/{chunk-DQRQZB33.cjs → chunk-5A4TCHOC.cjs} +3 -3
  29. package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
  30. package/dist/{chunk-YU5RJQPE.js → chunk-5ET6L4NS.js} +3 -3
  31. package/dist/{chunk-A3GFOZAF.cjs → chunk-63ZGNR2T.cjs} +43 -39
  32. package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
  33. package/dist/{chunk-OXGPGQXN.cjs → chunk-7DMMMBCY.cjs} +7 -7
  34. package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
  35. package/dist/{chunk-P4AIF7OQ.js → chunk-7VMGP2FW.js} +44 -28
  36. package/dist/{chunk-7MVLEZB2.js → chunk-7X5PNIQJ.js} +3 -3
  37. package/dist/{chunk-X7QB5PL5.cjs → chunk-7ZHYEITD.cjs} +11 -11
  38. package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
  39. package/dist/{chunk-QWSB553J.cjs → chunk-AWB7QYY6.cjs} +6 -6
  40. package/dist/{chunk-VATGR4EM.js → chunk-B4EKV6HQ.js} +61 -40
  41. package/dist/{chunk-HBEN5TQR.js → chunk-BRNUPDHJ.js} +5 -5
  42. package/dist/{chunk-F63LYRVE.js → chunk-BTKZGHAV.js} +23 -11
  43. package/dist/{chunk-YTR32ZEB.cjs → chunk-C4GSLCHE.cjs} +300 -125
  44. package/dist/{chunk-CXS3DUKD.js → chunk-C7ZBSV2Q.js} +3 -3
  45. package/dist/{chunk-WOH6LKYT.cjs → chunk-CCPSNT6B.cjs} +12 -7
  46. package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
  47. package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
  48. package/dist/{chunk-D63CGNJU.js → chunk-DY72BMU5.js} +3 -3
  49. package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
  50. package/dist/{chunk-DCE3LDO3.cjs → chunk-EDPYCLRC.cjs} +52 -62
  51. package/dist/{chunk-NDUX553L.js → chunk-F2G6CWFT.js} +240 -65
  52. package/dist/{chunk-X7LYK5TX.cjs → chunk-F5LKJ6F5.cjs} +43 -31
  53. package/dist/{chunk-LAUFLPB6.js → chunk-FGMDMJM7.js} +10 -5
  54. package/dist/{chunk-P52PPB5R.js → chunk-FHQFPYV4.js} +4 -4
  55. package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
  56. package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
  57. package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
  58. package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
  59. package/dist/{chunk-5BLWXOIP.cjs → chunk-G6PNEASF.cjs} +13 -13
  60. package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
  61. package/dist/{chunk-2VL6SJ33.cjs → chunk-GH6C2QGW.cjs} +12 -21
  62. package/dist/{chunk-JEB5UU3E.js → chunk-GSOUNWEL.js} +35 -27
  63. package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
  64. package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
  65. package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
  66. package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
  67. package/dist/{chunk-IBXT6UP3.cjs → chunk-HFSVMKM3.cjs} +14 -14
  68. package/dist/{chunk-E767PVC6.cjs → chunk-HLFDZ35S.cjs} +5 -5
  69. package/dist/{chunk-ZXZ2AL2J.cjs → chunk-I76GIKN7.cjs} +20 -16
  70. package/dist/{chunk-4FDL7JLJ.cjs → chunk-KAIVDEIG.cjs} +145 -60
  71. package/dist/{chunk-X4EBCG4K.js → chunk-KCPHASCO.js} +18 -6
  72. package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
  73. package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
  74. package/dist/{chunk-4DO425P5.js → chunk-L5U4W6JC.js} +4 -4
  75. package/dist/{chunk-HBLKLLG5.cjs → chunk-LMJ5EBV7.cjs} +10 -10
  76. package/dist/{chunk-QWAR3GY6.cjs → chunk-LODTHGST.cjs} +8 -8
  77. package/dist/{chunk-TFUMBR7G.cjs → chunk-LPS5AMQD.cjs} +8 -8
  78. package/dist/{chunk-ISG3TQ2O.js → chunk-LWUOUCYL.js} +9 -5
  79. package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
  80. package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
  81. package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
  82. package/dist/{chunk-ULXWSPCK.js → chunk-MSYSQ2AJ.js} +101 -16
  83. package/dist/{chunk-TCBJMNXS.cjs → chunk-NGBXXZLL.cjs} +50 -62
  84. package/dist/{chunk-RXU4PQKA.js → chunk-NHJLP37F.js} +6 -6
  85. package/dist/{chunk-NTGBEMYL.cjs → chunk-NHYRRAGI.cjs} +5 -5
  86. package/dist/{chunk-YG3OAHJZ.cjs → chunk-O3MGZDCT.cjs} +89 -52
  87. package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
  88. package/dist/{chunk-N5YOAFNA.cjs → chunk-OS533P33.cjs} +37 -29
  89. package/dist/{chunk-IIUFMUTV.js → chunk-PABONWKI.js} +24 -11
  90. package/dist/{chunk-5BQIJG3O.js → chunk-PXNZ6TME.js} +47 -57
  91. package/dist/{chunk-KDZRD6EI.js → chunk-Q2Q34NF3.js} +63 -26
  92. package/dist/{chunk-IS4AEGLU.js → chunk-QBWNJXNR.js} +10 -6
  93. package/dist/{chunk-5IHG2LGT.js → chunk-QFU53KRH.js} +4 -4
  94. package/dist/{chunk-NTJZJ5IP.cjs → chunk-QGMUTVVH.cjs} +17 -17
  95. package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
  96. package/dist/{chunk-E64LOLJU.js → chunk-S762UEV5.js} +5 -5
  97. package/dist/{chunk-3SBVODUP.cjs → chunk-SH5PPVK7.cjs} +61 -45
  98. package/dist/{chunk-LY4DMQOW.cjs → chunk-SKZPC5AG.cjs} +5 -5
  99. package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
  100. package/dist/{chunk-S6OVFUXD.js → chunk-SSSN7VAM.js} +3 -3
  101. package/dist/{chunk-K5UGRXKR.js → chunk-SXOSDZD6.js} +6 -6
  102. package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
  103. package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
  104. package/dist/{chunk-U36W76U7.js → chunk-TEVX443G.js} +44 -51
  105. package/dist/{chunk-6DOKCECB.cjs → chunk-TQ377OLB.cjs} +23 -21
  106. package/dist/{chunk-YAPPQYJH.cjs → chunk-TRCGG42I.cjs} +195 -152
  107. package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
  108. package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
  109. package/dist/{chunk-3OIZJNVT.cjs → chunk-UGXHYIWT.cjs} +5 -5
  110. package/dist/{chunk-44GM3P4G.cjs → chunk-ULMSSHCJ.cjs} +21 -21
  111. package/dist/{chunk-3B5NVDHJ.cjs → chunk-UOL6Y5TD.cjs} +18 -18
  112. package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
  113. package/dist/{chunk-5TIZXMED.cjs → chunk-V7AKE5VT.cjs} +10 -10
  114. package/dist/{chunk-3B7AY37W.js → chunk-VEPGBETF.js} +6 -6
  115. package/dist/{chunk-BKCK3IU6.js → chunk-VF257YKO.js} +4 -4
  116. package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
  117. package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
  118. package/dist/{chunk-PVWNU4QT.cjs → chunk-WFKVS2K4.cjs} +64 -26
  119. package/dist/{chunk-TDCJ7YPA.js → chunk-WXQ57LAO.js} +3 -3
  120. package/dist/{chunk-NE5CZ2NC.cjs → chunk-X27QRG4C.cjs} +38 -38
  121. package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
  122. package/dist/{chunk-C34AJIJO.js → chunk-XQ5MWMP2.js} +4 -4
  123. package/dist/{chunk-TFWYKOOB.cjs → chunk-XW6IXEQH.cjs} +26 -13
  124. package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
  125. package/dist/{chunk-TJIMBJ6L.cjs → chunk-Y57W2CT5.cjs} +2 -2
  126. package/dist/{chunk-BFROVZOF.cjs → chunk-YCM6QQRT.cjs} +46 -53
  127. package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
  128. package/dist/{chunk-ISM4NX6N.js → chunk-YFWRJW4B.js} +2 -2
  129. package/dist/{chunk-6OTFG3EB.js → chunk-YN6IETRZ.js} +179 -136
  130. package/dist/{chunk-NPDNFPTU.js → chunk-YRRAUB35.js} +4 -4
  131. package/dist/{chunk-GCYR3D2K.js → chunk-Z6PMDS4G.js} +61 -23
  132. package/dist/{chunk-DPZXVDGM.js → chunk-ZA34AN3R.js} +8 -17
  133. package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
  134. package/dist/{chunk-VFKXK4GR.cjs → chunk-ZPZAVHXL.cjs} +20 -20
  135. package/dist/cli/holoscript-runner.cjs +39 -22
  136. package/dist/cli/holoscript-runner.js +32 -15
  137. package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
  138. package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
  139. package/dist/compiler/agent-inference.cjs +7 -7
  140. package/dist/compiler/agent-inference.js +3 -3
  141. package/dist/compiler/android-xr.cjs +8 -8
  142. package/dist/compiler/android-xr.js +6 -6
  143. package/dist/compiler/android.cjs +6 -6
  144. package/dist/compiler/android.js +4 -4
  145. package/dist/compiler/ar.cjs +6 -6
  146. package/dist/compiler/ar.js +4 -4
  147. package/dist/compiler/babylon.cjs +8 -8
  148. package/dist/compiler/babylon.js +7 -7
  149. package/dist/compiler/business-quest.cjs +9 -9
  150. package/dist/compiler/business-quest.js +1 -1
  151. package/dist/compiler/context.cjs +6 -6
  152. package/dist/compiler/context.js +3 -3
  153. package/dist/compiler/domain-block-utils.cjs +153 -153
  154. package/dist/compiler/domain-block-utils.js +4 -4
  155. package/dist/compiler/dtdl.cjs +7 -7
  156. package/dist/compiler/dtdl.js +4 -4
  157. package/dist/compiler/gltf-pipeline.cjs +8 -8
  158. package/dist/compiler/gltf-pipeline.js +1 -1
  159. package/dist/compiler/godot.cjs +6 -6
  160. package/dist/compiler/godot.js +5 -5
  161. package/dist/compiler/incremental.cjs +8 -8
  162. package/dist/compiler/incremental.js +3 -3
  163. package/dist/compiler/index.cjs +347 -362
  164. package/dist/compiler/index.d.ts +20 -0
  165. package/dist/compiler/index.js +200 -215
  166. package/dist/compiler/ios.cjs +6 -6
  167. package/dist/compiler/ios.js +4 -4
  168. package/dist/compiler/llm-provider-capabilities.cjs +6 -6
  169. package/dist/compiler/llm-provider-capabilities.js +3 -3
  170. package/dist/compiler/multi-layer.cjs +10 -10
  171. package/dist/compiler/multi-layer.js +9 -9
  172. package/dist/compiler/openxr.cjs +7 -7
  173. package/dist/compiler/openxr.js +6 -6
  174. package/dist/compiler/playcanvas.cjs +6 -6
  175. package/dist/compiler/playcanvas.js +5 -5
  176. package/dist/compiler/r3f.cjs +13 -13
  177. package/dist/compiler/r3f.js +8 -8
  178. package/dist/compiler/sdf.cjs +7 -7
  179. package/dist/compiler/sdf.js +5 -5
  180. package/dist/compiler/state.cjs +6 -6
  181. package/dist/compiler/state.js +4 -4
  182. package/dist/compiler/trait-composition.cjs +8 -8
  183. package/dist/compiler/trait-composition.js +4 -4
  184. package/dist/compiler/unity.cjs +7 -7
  185. package/dist/compiler/unity.js +6 -6
  186. package/dist/compiler/unreal.cjs +8 -8
  187. package/dist/compiler/unreal.js +6 -6
  188. package/dist/compiler/urdf.cjs +14 -14
  189. package/dist/compiler/urdf.js +5 -5
  190. package/dist/compiler/usd-physics.cjs +7 -7
  191. package/dist/compiler/usd-physics.js +4 -4
  192. package/dist/compiler/visionos.cjs +7 -7
  193. package/dist/compiler/visionos.js +6 -6
  194. package/dist/compiler/vrchat.cjs +7 -7
  195. package/dist/compiler/vrchat.js +5 -5
  196. package/dist/compiler/vrr.cjs +7 -7
  197. package/dist/compiler/vrr.js +5 -5
  198. package/dist/compiler/wasm.cjs +10 -10
  199. package/dist/compiler/wasm.js +5 -5
  200. package/dist/compiler/webgpu.cjs +6 -6
  201. package/dist/compiler/webgpu.js +5 -5
  202. package/dist/coordinators/index.cjs +27 -10
  203. package/dist/coordinators/index.js +27 -10
  204. package/dist/debugger.cjs +6 -6
  205. package/dist/debugger.js +4 -4
  206. package/dist/entries/scripting.cjs +6 -6
  207. package/dist/entries/scripting.js +2 -2
  208. package/dist/hololand/index.cjs +36 -36
  209. package/dist/hololand/index.js +2 -2
  210. package/dist/index.cjs +1056 -796
  211. package/dist/index.js +440 -180
  212. package/dist/math/tropical-spmv.cjs +10 -10
  213. package/dist/math/tropical-spmv.js +1 -1
  214. package/dist/math/vec3.cjs +13 -13
  215. package/dist/math/vec3.js +1 -1
  216. package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
  217. package/dist/parser.cjs +16 -16
  218. package/dist/parser.js +5 -5
  219. package/dist/reconstruction/index.cjs +37 -37
  220. package/dist/reconstruction/index.js +4 -4
  221. package/dist/runtime.cjs +274 -76
  222. package/dist/runtime.d.ts +10 -1
  223. package/dist/runtime.js +268 -70
  224. package/dist/self-improvement/index.cjs +12 -4
  225. package/dist/self-improvement/index.js +12 -4
  226. package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
  227. package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
  228. package/dist/testing.cjs +5 -5
  229. package/dist/testing.js +1 -1
  230. package/dist/traits/botanical-lotus.cjs +49 -49
  231. package/dist/traits/botanical-lotus.js +2 -2
  232. package/dist/traits/engines/index.cjs +39 -39
  233. package/dist/traits/engines/index.d.ts +279 -0
  234. package/dist/traits/engines/index.js +4 -4
  235. package/dist/traits/index.cjs +881 -773
  236. package/dist/traits/index.js +366 -258
  237. package/dist/world/index.cjs +21 -18
  238. package/dist/world/index.js +21 -18
  239. package/dist/world-model/index.cjs +11 -5
  240. package/dist/world-model/index.d.ts +8 -0
  241. package/dist/world-model/index.js +11 -5
  242. package/package.json +74 -68
  243. package/LICENSE +0 -21
  244. package/dist/GLTFPipeline-PVLTKDBD.cjs +0 -38
  245. package/dist/GLTFPipeline-QPI4I7DL.js +0 -17
  246. package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
  247. package/dist/HoloScriptRuntime-6ZGLUCFS.js +0 -10
  248. package/dist/HoloScriptRuntime-ALUASIL2.cjs +0 -19
@@ -1,7 +1,7 @@
1
1
  import { ReactiveState, ExpressionEvaluator, createState } from './chunk-XL6INWKT.js';
2
2
  import { lazyPeerSymbol, definePeerNamespace, getSharedEventBus, telemetry } from './chunk-IELX2OKI.js';
3
- import { HoloScriptCodeParser } from './chunk-URG2SJLK.js';
4
- import { JEPAPredictor, jepObjectiveHandler, mitosisHandler, orbitalHandler } from './chunk-H652NHX5.js';
3
+ import { HoloScriptCodeParser } from './chunk-MDR235RZ.js';
4
+ import { JEPAPredictor, jepObjectiveHandler, mitosisHandler, orbitalHandler } from './chunk-TVANHNJ7.js';
5
5
  import { logger } from './chunk-PHENW4MQ.js';
6
6
  import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
7
7
 
@@ -25,13 +25,7 @@ function calculateArc(start, end, speed) {
25
25
  }
26
26
 
27
27
  // src/runtime/condition-evaluator.ts
28
- var SUSPICIOUS_KEYWORDS = [
29
- "eval",
30
- "process",
31
- "require",
32
- "__proto__",
33
- "constructor"
34
- ];
28
+ var SUSPICIOUS_KEYWORDS = ["eval", "process", "require", "__proto__", "constructor"];
35
29
  function evaluateCondition(condition, evaluate) {
36
30
  if (!condition) return false;
37
31
  const condStr = String(condition);
@@ -227,7 +221,10 @@ async function applyTransformation(data, transform, ctx) {
227
221
  return ctx.evaluateExpression(mapper);
228
222
  });
229
223
  }
230
- return data.map((item) => ({ value: item, processed: true }));
224
+ return data.map((item) => ({
225
+ value: item,
226
+ processed: true
227
+ }));
231
228
  }
232
229
  case "reduce": {
233
230
  if (!Array.isArray(data)) return data;
@@ -585,11 +582,7 @@ var CREATION_PUFF_COUNT = 20;
585
582
  function normalizePosition(position) {
586
583
  if (!position) return [0, 0, 0];
587
584
  if (Array.isArray(position)) {
588
- return [
589
- Number(position[0]) || 0,
590
- Number(position[1]) || 0,
591
- Number(position[2]) || 0
592
- ];
585
+ return [Number(position[0]) || 0, Number(position[1]) || 0, Number(position[2]) || 0];
593
586
  }
594
587
  const p = position;
595
588
  return [Number(p[0]) || 0, Number(p[1]) || 0, Number(p[2]) || 0];
@@ -695,7 +688,12 @@ async function executeOrb(node, ctx) {
695
688
  ctx.applyDirectives(orbData);
696
689
  }
697
690
  if (!isUpdate) {
698
- ctx.createParticleEffect(`${node.name}_creation`, adjustedPos, CREATION_PUFF_COLOR, CREATION_PUFF_COUNT);
691
+ ctx.createParticleEffect(
692
+ `${node.name}_creation`,
693
+ adjustedPos,
694
+ CREATION_PUFF_COLOR,
695
+ CREATION_PUFF_COUNT
696
+ );
699
697
  }
700
698
  if (ctx.isAgent(node)) {
701
699
  if (!isUpdate || !ctx.getAgentRuntime(node.name)) {
@@ -1191,10 +1189,7 @@ var NODE_TYPE_HANDLERS = {
1191
1189
  building: (node) => executeStructure(node),
1192
1190
  // Capitalization-sensitive branches (composition vs Composition, template vs Template)
1193
1191
  composition: (node, r) => executeComposition(node, r.buildSimpleExecutorContext()),
1194
- Composition: (node, r) => executeHoloComposition(
1195
- node,
1196
- r.buildHoloCompositionContext()
1197
- ),
1192
+ Composition: (node, r) => executeHoloComposition(node, r.buildHoloCompositionContext()),
1198
1193
  template: (node, r) => r.executeTemplate(node),
1199
1194
  Template: (node, r) => executeHoloTemplate(
1200
1195
  node,
@@ -1239,9 +1234,7 @@ var NODE_TYPE_HANDLERS = {
1239
1234
  forEach: (node, r) => r.executeForEachLoop(
1240
1235
  node
1241
1236
  ),
1242
- while: (node, r) => r.executeWhileLoop(
1243
- node
1244
- ),
1237
+ while: (node, r) => r.executeWhileLoop(node),
1245
1238
  if: (node, r) => r.executeIfStatement(
1246
1239
  node
1247
1240
  ),
@@ -1404,9 +1397,7 @@ async function executeHoloObject(node, ctx) {
1404
1397
  })),
1405
1398
  ...template?.directives || []
1406
1399
  ],
1407
- traits: new Map(
1408
- (node.traits || []).map((t) => [t.name, t.config])
1409
- ),
1400
+ traits: new Map((node.traits || []).map((t) => [t.name, t.config])),
1410
1401
  children: node.children || []
1411
1402
  };
1412
1403
  if (template) {
@@ -2257,7 +2248,11 @@ async function executeMatch(node, ctx) {
2257
2248
  return lastResult;
2258
2249
  } else {
2259
2250
  const result = ctx.evaluateExpression(String(matchCase.body));
2260
- return { success: true, output: result, executionTime: Date.now() - startTime };
2251
+ return {
2252
+ success: true,
2253
+ output: result,
2254
+ executionTime: Date.now() - startTime
2255
+ };
2261
2256
  }
2262
2257
  }
2263
2258
  }
@@ -2318,9 +2313,7 @@ async function evaluateHoloExpression(expr, scopeOverride, ctx) {
2318
2313
  }
2319
2314
  const callee = await evaluateHoloExpression(expr.callee, scopeOverride, ctx);
2320
2315
  const args = await Promise.all(
2321
- expr.arguments.map(
2322
- (a) => evaluateHoloExpression(a, scopeOverride, ctx)
2323
- )
2316
+ expr.arguments.map((a) => evaluateHoloExpression(a, scopeOverride, ctx))
2324
2317
  );
2325
2318
  if (typeof callee === "function") {
2326
2319
  return callee(...args);
@@ -2606,11 +2599,7 @@ var HoloScriptAgentRuntime = class _HoloScriptAgentRuntime {
2606
2599
  ensureJepaObjectiveAttached() {
2607
2600
  if (!this.jepaObjectiveAttached) {
2608
2601
  const config = this.getJepaObjectiveConfig();
2609
- jepObjectiveHandler.onAttach?.(
2610
- this.jepaObjectiveNode,
2611
- config,
2612
- this.buildJepaTraitContext()
2613
- );
2602
+ jepObjectiveHandler.onAttach?.(this.jepaObjectiveNode, config, this.buildJepaTraitContext());
2614
2603
  this.jepaObjectiveAttached = true;
2615
2604
  }
2616
2605
  }
@@ -2665,17 +2654,12 @@ var HoloScriptAgentRuntime = class _HoloScriptAgentRuntime {
2665
2654
  const latentDim = config.latentDim;
2666
2655
  const outcomeStr = outcome.success ? `success:${String(outcome.output ?? "")}` : `failure:${String(outcome.error ?? "")}`;
2667
2656
  const targetVec = textToEmbeddingFloat32(outcomeStr, latentDim);
2668
- jepObjectiveHandler.onEvent?.(
2669
- this.jepaObjectiveNode,
2670
- config,
2671
- this.buildJepaTraitContext(),
2672
- {
2673
- type: "jepa:encode_pair",
2674
- context: contextStr,
2675
- targetVec,
2676
- conditioning: void 0
2677
- }
2678
- );
2657
+ jepObjectiveHandler.onEvent?.(this.jepaObjectiveNode, config, this.buildJepaTraitContext(), {
2658
+ type: "jepa:encode_pair",
2659
+ context: contextStr,
2660
+ targetVec,
2661
+ conditioning: void 0
2662
+ });
2679
2663
  }
2680
2664
  /**
2681
2665
  * Lightweight fork-detection heuristic for runtime adapters.
@@ -2751,7 +2735,9 @@ var HoloScriptAgentRuntime = class _HoloScriptAgentRuntime {
2751
2735
  if (this.isDestroyed) return { success: false, error: "Agent destroyed" };
2752
2736
  const forkCheck = this.checkForkSandbox();
2753
2737
  if (!forkCheck.allowed) {
2754
- logger.warn(`[Agent:${this.agentNode.name}] ForkSandboxGate blocked action "${actionName}": ${forkCheck.reason}`);
2738
+ logger.warn(
2739
+ `[Agent:${this.agentNode.name}] ForkSandboxGate blocked action "${actionName}": ${forkCheck.reason}`
2740
+ );
2755
2741
  return { success: false, error: `ForkSandboxGate: ${forkCheck.reason}` };
2756
2742
  }
2757
2743
  const directives = this.agentNode.directives;
@@ -2809,9 +2795,7 @@ var HoloScriptAgentRuntime = class _HoloScriptAgentRuntime {
2809
2795
  try {
2810
2796
  this.trainJepaOffline(stateBefore, actionName, executionResult);
2811
2797
  } catch (trainErr) {
2812
- logger.warn(
2813
- `[JEPA:${this.agentNode.name}] trainJepaOffline error: ${String(trainErr)}`
2814
- );
2798
+ logger.warn(`[JEPA:${this.agentNode.name}] trainJepaOffline error: ${String(trainErr)}`);
2815
2799
  }
2816
2800
  return executionResult;
2817
2801
  }
@@ -3038,10 +3022,11 @@ var StateSynchronizer = lazyPeerSymbol(
3038
3022
  "@holoscript/mesh",
3039
3023
  "StateSynchronizer"
3040
3024
  );
3041
- var WebSocketServer = lazyPeerSymbol("ws", "WebSocketServer");
3042
- var engineRuntime = definePeerNamespace(
3043
- "@holoscript/engine/runtime"
3025
+ var WebSocketServer = lazyPeerSymbol(
3026
+ "ws",
3027
+ "WebSocketServer"
3044
3028
  );
3029
+ var engineRuntime = definePeerNamespace("@holoscript/engine/runtime");
3045
3030
  var RUNTIME_SECURITY_LIMITS = {
3046
3031
  maxExecutionDepth: 50,
3047
3032
  maxTotalNodes: 1e3,
@@ -3080,7 +3065,10 @@ var HoloScriptRuntime = class {
3080
3065
  for (const [name, fn] of this.builtinFunctions) {
3081
3066
  this.context.functions.set(name, ((...spreadArgs) => fn(spreadArgs)));
3082
3067
  }
3083
- attachStateInvalidationConsumer(this.buildEventSystemContext(), defaultStateInvalidationRegistry);
3068
+ attachStateInvalidationConsumer(
3069
+ this.buildEventSystemContext(),
3070
+ defaultStateInvalidationRegistry
3071
+ );
3084
3072
  this.registerFunction("get_attended_entities", (args) => {
3085
3073
  const topK = typeof args[0] === "number" ? args[0] : 10;
3086
3074
  const selfRaw = this.context.variables.get("self");
@@ -3109,7 +3097,9 @@ var HoloScriptRuntime = class {
3109
3097
  this.traitHandlers.set("orbital", orbitalHandler);
3110
3098
  this.extensionRegistry = new ExtensionRegistry(this);
3111
3099
  engineRuntime.stateMachineInterpreter.setHookExecutor((code) => this.evaluateExpression(code));
3112
- engineRuntime.stateMachineInterpreter.setGuardEvaluator((expr) => this.evaluateExpression(expr));
3100
+ engineRuntime.stateMachineInterpreter.setGuardEvaluator(
3101
+ (expr) => this.evaluateExpression(expr)
3102
+ );
3113
3103
  }
3114
3104
  /**
3115
3105
  * Initialize built-in functions
@@ -4328,5 +4318,5 @@ var HoloScriptRuntime = class {
4328
4318
  };
4329
4319
 
4330
4320
  export { HoloScriptAgentRuntime, HoloScriptRuntime, TRAIT_OWNER_KEY, registerPluginTraits };
4331
- //# sourceMappingURL=chunk-5BQIJG3O.js.map
4332
- //# sourceMappingURL=chunk-5BQIJG3O.js.map
4321
+ //# sourceMappingURL=chunk-PXNZ6TME.js.map
4322
+ //# sourceMappingURL=chunk-PXNZ6TME.js.map
@@ -1,4 +1,4 @@
1
- import { init_CompilerBase, CompilerBase, escapeStringValue } from './chunk-CXS3DUKD.js';
1
+ import { init_CompilerBase, CompilerBase, escapeStringValue } from './chunk-C7ZBSV2Q.js';
2
2
  import { init_roomplan, init_lidar_scanner, init_face_tracking, init_ios_object_capture, init_shareplay, init_uwb_positioning, init_airpods_spatial_audio, ROOMPLAN_TRAITS, LIDAR_SCANNER_TRAITS, IOS_OBJECT_CAPTURE_TRAITS, FACE_TRACKING_TRAITS, SHAREPLAY_TRAITS, UWB_POSITIONING_TRAITS, AIRPODS_SPATIAL_AUDIO_TRAITS } from './chunk-SIEXCILW.js';
3
3
  import { init_npu_scene, init_portal_ar, init_camera_hand_tracking, NPU_SCENE_TRAITS, NPU_SCENE_DEFAULTS, PORTAL_AR_TRAITS, CAMERA_HAND_TRACKING_TRAITS } from './chunk-CBJY23VL.js';
4
4
  import { __esm, __export } from './chunk-OL46QLBJ.js';
@@ -248,9 +248,7 @@ function generateSceneFile(compiler, composition) {
248
248
  compiler.emit("var nodes: [String: SCNNode] = [:]");
249
249
  for (const obj of composition.objects || []) {
250
250
  const varName = compiler.sanitizeName(obj.name);
251
- compiler.emit(
252
- `nodes["${escapeStringValue(obj.name, "Swift")}"] = make${varName}()`
253
- );
251
+ compiler.emit(`nodes["${escapeStringValue(obj.name, "Swift")}"] = make${varName}()`);
254
252
  }
255
253
  compiler.emit("return nodes");
256
254
  compiler.indentLevel--;
@@ -735,7 +733,9 @@ function emitGeoAnchorMethods(compiler, composition) {
735
733
  compiler.emit("let anchor = ARAnchor(name: name, transform: transform)");
736
734
  compiler.emit("arView.session.add(anchor: anchor)");
737
735
  compiler.emit("geoAnchors[name] = anchor");
738
- compiler.emit('print("[HoloScript] Location-anchored: \\(name) at (\\(latitude), \\(longitude))")');
736
+ compiler.emit(
737
+ 'print("[HoloScript] Location-anchored: \\(name) at (\\(latitude), \\(longitude))")'
738
+ );
739
739
  compiler.indentLevel--;
740
740
  compiler.emit("}");
741
741
  compiler.emit("");
@@ -793,7 +793,9 @@ function emitGeoAnchorMethods(compiler, composition) {
793
793
  compiler.emit(
794
794
  "arView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])"
795
795
  );
796
- compiler.emit('print("[HoloScript] World map restored with \\(worldMap.anchors.count) anchors")');
796
+ compiler.emit(
797
+ 'print("[HoloScript] World map restored with \\(worldMap.anchors.count) anchors")'
798
+ );
797
799
  compiler.indentLevel--;
798
800
  compiler.emit("}");
799
801
  compiler.emit("");
@@ -1083,7 +1085,9 @@ function generateRoomPlanFile(compiler, composition) {
1083
1085
  compiler.emit("");
1084
1086
  compiler.emit(`extension ${cls}RoomPlanManager: RoomCaptureSessionDelegate {`);
1085
1087
  compiler.indentLevel++;
1086
- compiler.emit("func captureSession(_ session: RoomCaptureSession, didUpdate room: CapturedRoom) {");
1088
+ compiler.emit(
1089
+ "func captureSession(_ session: RoomCaptureSession, didUpdate room: CapturedRoom) {"
1090
+ );
1087
1091
  compiler.indentLevel++;
1088
1092
  compiler.emit("DispatchQueue.main.async { [weak self] in");
1089
1093
  compiler.indentLevel++;
@@ -1241,7 +1245,8 @@ function generateLiDARScannerFile(compiler, composition) {
1241
1245
  compiler.emit("@Published var isScanning: Bool = false");
1242
1246
  compiler.emit("@Published var entities: [LiDARHoloEntity] = []");
1243
1247
  compiler.emit("@Published var meshAnchors: [ARMeshAnchor] = []");
1244
- if (traits.has("lidar_point_cloud")) compiler.emit("@Published var pointCloud: [simd_float3] = []");
1248
+ if (traits.has("lidar_point_cloud"))
1249
+ compiler.emit("@Published var pointCloud: [simd_float3] = []");
1245
1250
  if (traits.has("lidar_depth_map")) compiler.emit("@Published var depthMap: CVPixelBuffer?");
1246
1251
  if (traits.has("lidar_depth_confidence"))
1247
1252
  compiler.emit("@Published var confidenceMap: CVPixelBuffer?");
@@ -1349,7 +1354,9 @@ function generateLiDARScannerFile(compiler, composition) {
1349
1354
  compiler.emit("// MARK: - Classification extraction");
1350
1355
  compiler.emit("");
1351
1356
  compiler.emit("/// Extract per-face classification from an ARMeshAnchor.");
1352
- compiler.emit("func extractClassifications(_ anchor: ARMeshAnchor) -> [ARMeshClassification] {");
1357
+ compiler.emit(
1358
+ "func extractClassifications(_ anchor: ARMeshAnchor) -> [ARMeshClassification] {"
1359
+ );
1353
1360
  compiler.indentLevel++;
1354
1361
  compiler.emit("guard let classBuffer = anchor.geometry.classification else { return [] }");
1355
1362
  compiler.emit("var classifications: [ARMeshClassification] = []");
@@ -1517,7 +1524,9 @@ function generateLiDARScannerFile(compiler, composition) {
1517
1524
  compiler.emit(
1518
1525
  "let simplified = MDLMesh(meshBySubdividing: mdlMesh, submeshIndex: 0, subdivisionLevels: 0, allocator: allocator)"
1519
1526
  );
1520
- compiler.emit('print("[HoloScript] Mesh simplified to target face count: \\(targetFaceCount)")');
1527
+ compiler.emit(
1528
+ 'print("[HoloScript] Mesh simplified to target face count: \\(targetFaceCount)")'
1529
+ );
1521
1530
  compiler.emit("return simplified");
1522
1531
  compiler.indentLevel--;
1523
1532
  compiler.emit("}");
@@ -2502,7 +2511,9 @@ function generateHandTrackingFile(compiler, composition) {
2502
2511
  compiler.emit("session.addInput(input)");
2503
2512
  compiler.emit("");
2504
2513
  compiler.emit("let output = AVCaptureVideoDataOutput()");
2505
- compiler.emit('output.setSampleBufferDelegate(self, queue: DispatchQueue(label: "handTracking"))');
2514
+ compiler.emit(
2515
+ 'output.setSampleBufferDelegate(self, queue: DispatchQueue(label: "handTracking"))'
2516
+ );
2506
2517
  compiler.emit("session.addOutput(output)");
2507
2518
  compiler.emit("");
2508
2519
  compiler.emit("captureSession = session");
@@ -2664,7 +2675,9 @@ function generateHandTrackingFile(compiler, composition) {
2664
2675
  "func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {"
2665
2676
  );
2666
2677
  compiler.indentLevel++;
2667
- compiler.emit("guard let pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer) else { return }");
2678
+ compiler.emit(
2679
+ "guard let pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer) else { return }"
2680
+ );
2668
2681
  compiler.emit("");
2669
2682
  compiler.emit(
2670
2683
  "let handler = VNImageRequestHandler(cvPixelBuffer: pixelBuffer, orientation: .up, options: [:])"
@@ -2995,7 +3008,9 @@ function generateObjectCaptureFile(compiler, composition) {
2995
3008
  compiler.emit("case .full: detail = .full");
2996
3009
  compiler.emit("case .raw: detail = .raw");
2997
3010
  compiler.emit("}");
2998
- compiler.emit("let request = PhotogrammetrySession.Request.modelFile(url: url, detail: detail)");
3011
+ compiler.emit(
3012
+ "let request = PhotogrammetrySession.Request.modelFile(url: url, detail: detail)"
3013
+ );
2999
3014
  compiler.emit("try session.process(requests: [request])");
3000
3015
  compiler.emit("for try await output in session.outputs {");
3001
3016
  compiler.indentLevel++;
@@ -3040,7 +3055,9 @@ function generateObjectCaptureFile(compiler, composition) {
3040
3055
  compiler.emit("}");
3041
3056
  compiler.emit("");
3042
3057
  }
3043
- compiler.emit("private func handlePhotogrammetryResult(_ result: PhotogrammetrySession.Result) {");
3058
+ compiler.emit(
3059
+ "private func handlePhotogrammetryResult(_ result: PhotogrammetrySession.Result) {"
3060
+ );
3044
3061
  compiler.indentLevel++;
3045
3062
  compiler.emit("switch result {");
3046
3063
  compiler.emit("case .modelFile(let url):");
@@ -3082,7 +3099,9 @@ function generateObjectCaptureFile(compiler, composition) {
3082
3099
  compiler.indentLevel--;
3083
3100
  compiler.emit("} catch {");
3084
3101
  compiler.indentLevel++;
3085
- compiler.emit('logger.error("[HoloScript] USDZ export failed: \\(error.localizedDescription)")');
3102
+ compiler.emit(
3103
+ 'logger.error("[HoloScript] USDZ export failed: \\(error.localizedDescription)")'
3104
+ );
3086
3105
  compiler.emit("return nil");
3087
3106
  compiler.indentLevel--;
3088
3107
  compiler.emit("}");
@@ -3696,7 +3715,9 @@ function generateSharePlayFile(compiler, composition) {
3696
3715
  if (compiler.compositionHasTrait(composition, "shareplay_anchor_local")) {
3697
3716
  compiler.emit("// MARK: - Local Anchor Mapping");
3698
3717
  compiler.emit("");
3699
- compiler.emit("func calibrateLocalAnchor(arFrame: ARFrame, sharedReferencePoint: simd_float3) {");
3718
+ compiler.emit(
3719
+ "func calibrateLocalAnchor(arFrame: ARFrame, sharedReferencePoint: simd_float3) {"
3720
+ );
3700
3721
  compiler.indentLevel++;
3701
3722
  compiler.emit("// Each participant creates a local ARKit anchor and maps shared positions");
3702
3723
  compiler.emit("let cameraPos = arFrame.camera.transform.columns.3");
@@ -3735,7 +3756,9 @@ function generateSharePlayFile(compiler, composition) {
3735
3756
  if (compiler.compositionHasTrait(composition, "shareplay_mute_zone")) {
3736
3757
  compiler.emit("// MARK: - Mute Zones");
3737
3758
  compiler.emit("");
3738
- compiler.emit("func addMuteZone(center: simd_float3, radius: Float, attenuation: Float = 0.0) {");
3759
+ compiler.emit(
3760
+ "func addMuteZone(center: simd_float3, radius: Float, attenuation: Float = 0.0) {"
3761
+ );
3739
3762
  compiler.indentLevel++;
3740
3763
  compiler.emit(
3741
3764
  "muteZones.append(MuteZone(center: center, radius: radius, attenuation: attenuation))"
@@ -4356,7 +4379,9 @@ function generateUWBPositioningFile(compiler, composition) {
4356
4379
  compiler.emit("mcAdvertiser?.delegate = self");
4357
4380
  compiler.emit("mcAdvertiser?.startAdvertisingPeer()");
4358
4381
  compiler.emit("");
4359
- compiler.emit("mcBrowser = MCNearbyServiceBrowser(peer: localPeerId, serviceType: serviceType)");
4382
+ compiler.emit(
4383
+ "mcBrowser = MCNearbyServiceBrowser(peer: localPeerId, serviceType: serviceType)"
4384
+ );
4360
4385
  compiler.emit("mcBrowser?.delegate = self");
4361
4386
  compiler.emit("mcBrowser?.startBrowsingForPeers()");
4362
4387
  compiler.emit("");
@@ -4972,11 +4997,15 @@ function generateSpatialAudioFile(compiler, composition) {
4972
4997
  }
4973
4998
  compiler.emit("// MARK: - Audio Pipeline");
4974
4999
  compiler.emit("");
4975
- compiler.emit("private func loadAndPlayAudio(sourceId: String, audioFile: String, gain: Float) {");
5000
+ compiler.emit(
5001
+ "private func loadAndPlayAudio(sourceId: String, audioFile: String, gain: Float) {"
5002
+ );
4976
5003
  compiler.indentLevel++;
4977
5004
  compiler.emit("guard let engine = phaseEngine, let source = sources[sourceId] else { return }");
4978
5005
  compiler.emit("");
4979
- compiler.emit("guard let url = Bundle.main.url(forResource: audioFile, withExtension: nil) else {");
5006
+ compiler.emit(
5007
+ "guard let url = Bundle.main.url(forResource: audioFile, withExtension: nil) else {"
5008
+ );
4980
5009
  compiler.indentLevel++;
4981
5010
  compiler.emit('print("[SpatialAudio] Audio file not found: \\(audioFile)")');
4982
5011
  compiler.emit("return");
@@ -4995,7 +5024,9 @@ function generateSpatialAudioFile(compiler, composition) {
4995
5024
  compiler.indentLevel--;
4996
5025
  compiler.emit(")");
4997
5026
  compiler.emit("");
4998
- compiler.emit("let channelLayout = AVAudioChannelLayout(layoutTag: kAudioChannelLayoutTag_Mono)!");
5027
+ compiler.emit(
5028
+ "let channelLayout = AVAudioChannelLayout(layoutTag: kAudioChannelLayoutTag_Mono)!"
5029
+ );
4999
5030
  compiler.emit("let samplerNodeDef = PHASESamplerNodeDefinition(");
5000
5031
  compiler.indentLevel++;
5001
5032
  compiler.emit("soundAssetIdentifier: sourceId,");
@@ -5010,14 +5041,18 @@ function generateSpatialAudioFile(compiler, composition) {
5010
5041
  if (traits.has("audio_falloff")) {
5011
5042
  compiler.emit("// Distance-based falloff (audio_falloff)");
5012
5043
  compiler.emit("let distanceModelParameters = PHASEGeometricSpreadingDistanceModelParameters()");
5013
- compiler.emit("distanceModelParameters.fadeOutParameters = PHASEDistanceModelFadeOutParameters(");
5044
+ compiler.emit(
5045
+ "distanceModelParameters.fadeOutParameters = PHASEDistanceModelFadeOutParameters("
5046
+ );
5014
5047
  compiler.indentLevel++;
5015
5048
  compiler.emit("cullDistance: 20.0");
5016
5049
  compiler.indentLevel--;
5017
5050
  compiler.emit(")");
5018
5051
  compiler.emit("distanceModelParameters.rolloffFactor = 1.0");
5019
5052
  compiler.emit("");
5020
- compiler.emit("let spatialPipelineDef = PHASESpatialPipeline(flags: [.directPathTransmission])!");
5053
+ compiler.emit(
5054
+ "let spatialPipelineDef = PHASESpatialPipeline(flags: [.directPathTransmission])!"
5055
+ );
5021
5056
  compiler.emit(
5022
5057
  "spatialPipelineDef.entries[PHASESpatialCategory.directPath]!.sendLevel = Double(gain)"
5023
5058
  );
@@ -5029,7 +5064,9 @@ function generateSpatialAudioFile(compiler, composition) {
5029
5064
  compiler.emit(")");
5030
5065
  compiler.emit("spatialMixerDef.distanceModelParameters = distanceModelParameters");
5031
5066
  } else {
5032
- compiler.emit("let spatialPipelineDef = PHASESpatialPipeline(flags: [.directPathTransmission])!");
5067
+ compiler.emit(
5068
+ "let spatialPipelineDef = PHASESpatialPipeline(flags: [.directPathTransmission])!"
5069
+ );
5033
5070
  compiler.emit(
5034
5071
  "spatialPipelineDef.entries[PHASESpatialCategory.directPath]!.sendLevel = Double(gain)"
5035
5072
  );
@@ -5382,5 +5419,5 @@ var init_IOSCompiler = __esm({
5382
5419
  });
5383
5420
 
5384
5421
  export { IOSCompiler, IOSCompiler_exports, compileToIOS, init_IOSCompiler };
5385
- //# sourceMappingURL=chunk-KDZRD6EI.js.map
5386
- //# sourceMappingURL=chunk-KDZRD6EI.js.map
5422
+ //# sourceMappingURL=chunk-Q2Q34NF3.js.map
5423
+ //# sourceMappingURL=chunk-Q2Q34NF3.js.map
@@ -1,5 +1,5 @@
1
- import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToSDF, compileMaterialBlock, materialToSDF } from './chunk-DPZXVDGM.js';
2
- import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
1
+ import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToSDF, compileMaterialBlock, materialToSDF } from './chunk-ZA34AN3R.js';
2
+ import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
3
3
  import { __export, __esm } from './chunk-OL46QLBJ.js';
4
4
  import { ANSCapabilityPath } from '@holoscript/core-types/ans';
5
5
 
@@ -213,10 +213,14 @@ ${layers}`;
213
213
  this.emit("<render_engine>ogre2</render_engine>");
214
214
  this.indentLevel--;
215
215
  this.emit("</plugin>");
216
- this.emit('<plugin name="gz::sim::systems::SceneBroadcaster" filename="gz-sim-scene-broadcaster-system" />');
216
+ this.emit(
217
+ '<plugin name="gz::sim::systems::SceneBroadcaster" filename="gz-sim-scene-broadcaster-system" />'
218
+ );
217
219
  this.emit('<plugin name="gz::sim::systems::Contact" filename="gz-sim-contact-system" />');
218
220
  this.emit('<plugin name="gz::sim::systems::Imu" filename="gz-sim-imu-system" />');
219
- this.emit('<plugin name="gz::sim::systems::JointStatePublisher" filename="gz-sim-joint-state-publisher-system" />');
221
+ this.emit(
222
+ '<plugin name="gz::sim::systems::JointStatePublisher" filename="gz-sim-joint-state-publisher-system" />'
223
+ );
220
224
  this.emit("");
221
225
  }
222
226
  calculateInertia(geometry, mass, scale) {
@@ -604,5 +608,5 @@ ${layers}`;
604
608
  });
605
609
 
606
610
  export { SDFCompiler, SDFCompiler_default, SDFCompiler_exports, init_SDFCompiler };
607
- //# sourceMappingURL=chunk-IS4AEGLU.js.map
608
- //# sourceMappingURL=chunk-IS4AEGLU.js.map
611
+ //# sourceMappingURL=chunk-QBWNJXNR.js.map
612
+ //# sourceMappingURL=chunk-QBWNJXNR.js.map
@@ -1,5 +1,5 @@
1
- import { init_ProvenanceSemiring, authorityWeight, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
2
- import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError } from './chunk-CXS3DUKD.js';
1
+ import { init_ProvenanceSemiring, authorityWeight, ProvenanceSemiring } from './chunk-SLHLXUMO.js';
2
+ import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError } from './chunk-C7ZBSV2Q.js';
3
3
 
4
4
  // src/compiler/TraitCompositionCompiler.ts
5
5
  init_AgentRBAC();
@@ -160,5 +160,5 @@ var UnauthorizedTraitCompositionAccessError = class extends UnauthorizedCompiler
160
160
  };
161
161
 
162
162
  export { CompositionConflictError, MissingComponentError, TraitCompositionCompiler, UnauthorizedTraitCompositionAccessError };
163
- //# sourceMappingURL=chunk-5IHG2LGT.js.map
164
- //# sourceMappingURL=chunk-5IHG2LGT.js.map
163
+ //# sourceMappingURL=chunk-QFU53KRH.js.map
164
+ //# sourceMappingURL=chunk-QFU53KRH.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
4
- var chunk2VL6SJ33_cjs = require('./chunk-2VL6SJ33.cjs');
5
- var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
3
+ var chunkEBS32AJI_cjs = require('./chunk-EBS32AJI.cjs');
4
+ var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
5
+ var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
6
6
  var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
7
7
  var ans = require('@holoscript/core-types/ans');
8
8
 
@@ -14,10 +14,10 @@ chunkHCCQLAA4_cjs.__export(OpenXRCompiler_exports, {
14
14
  exports.OpenXRCompiler = void 0;
15
15
  var init_OpenXRCompiler = chunkHCCQLAA4_cjs.__esm({
16
16
  "src/compiler/OpenXRCompiler.ts"() {
17
- chunkQWAR3GY6_cjs.init_CompilerBase();
18
- chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
19
- chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
20
- exports.OpenXRCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
17
+ chunkLODTHGST_cjs.init_CompilerBase();
18
+ chunkEBS32AJI_cjs.init_PlatformConditionalCompilerMixin();
19
+ chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
20
+ exports.OpenXRCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
21
21
  constructor(options = {}) {
22
22
  super();
23
23
  this.compilerName = "OpenXRCompiler";
@@ -36,7 +36,7 @@ var init_OpenXRCompiler = chunkHCCQLAA4_cjs.__esm({
36
36
  }
37
37
  compile(composition, agentToken, outputPath) {
38
38
  this.validateCompilerAccess(agentToken, outputPath);
39
- composition = chunkAIA52I7T_cjs.filterCompositionForPlatform(composition, "quest3");
39
+ composition = chunkEBS32AJI_cjs.filterCompositionForPlatform(composition, "quest3");
40
40
  this.lines = [];
41
41
  this.indentLevel = 0;
42
42
  this.emit("// Auto-generated by HoloScript OpenXRCompiler");
@@ -136,32 +136,32 @@ var init_OpenXRCompiler = chunkHCCQLAA4_cjs.__esm({
136
136
  if (domainBlocks.length > 0) {
137
137
  this.emit("");
138
138
  this.emit("// === v4.2 Domain Blocks ===");
139
- const compiled = chunk2VL6SJ33_cjs.compileDomainBlocks(
139
+ const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
140
140
  // @ts-expect-error During migration
141
141
  domainBlocks,
142
142
  {
143
143
  material: (block) => {
144
- const m = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
144
+ const m = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
145
145
  return `// Material: "${this.escapeStringValue(m.name, "TypeScript")}" type=${m.type} baseColor=${m.baseColor || "none"} roughness=${m.roughness ?? "default"} metallic=${m.metallic ?? "default"}`;
146
146
  },
147
147
  physics: (block) => {
148
- const p = chunk2VL6SJ33_cjs.compilePhysicsBlock(block);
148
+ const p = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
149
149
  return `// Physics: ${p.keyword} "${p.name || ""}" colliders=${p.colliders?.length || 0} rigidbody=${!!p.rigidbody}`;
150
150
  },
151
151
  vfx: (block) => {
152
- const ps = chunk2VL6SJ33_cjs.compileParticleBlock(block);
152
+ const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
153
153
  return `// Particles: "${this.escapeStringValue(ps.name, "TypeScript")}" rate=${ps.properties.rate || "default"} modules=${ps.modules.length}`;
154
154
  },
155
155
  postfx: (block) => {
156
- const pp = chunk2VL6SJ33_cjs.compilePostProcessingBlock(block);
156
+ const pp = chunkGH6C2QGW_cjs.compilePostProcessingBlock(block);
157
157
  return `// PostFX: ${pp.keyword} effects=[${pp.effects.map((e) => e.type).join(", ")}]`;
158
158
  },
159
159
  audio: (block) => {
160
- const a = chunk2VL6SJ33_cjs.compileAudioSourceBlock(block);
160
+ const a = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
161
161
  return `// Audio: "${this.escapeStringValue(a.name, "TypeScript")}" (${a.keyword}) clip=${a.properties.clip || "none"}`;
162
162
  },
163
163
  weather: (block) => {
164
- const w = chunk2VL6SJ33_cjs.compileWeatherBlock(block);
164
+ const w = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
165
165
  return `// Weather: ${w.keyword} layers=[${w.layers.map((l) => l.type).join(", ")}]`;
166
166
  }
167
167
  },
@@ -1045,5 +1045,5 @@ var init_OpenXRCompiler = chunkHCCQLAA4_cjs.__esm({
1045
1045
 
1046
1046
  exports.OpenXRCompiler_exports = OpenXRCompiler_exports;
1047
1047
  exports.init_OpenXRCompiler = init_OpenXRCompiler;
1048
- //# sourceMappingURL=chunk-NTJZJ5IP.cjs.map
1049
- //# sourceMappingURL=chunk-NTJZJ5IP.cjs.map
1048
+ //# sourceMappingURL=chunk-QGMUTVVH.cjs.map
1049
+ //# sourceMappingURL=chunk-QGMUTVVH.cjs.map