@holoscript/core 8.0.5 → 8.0.7

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-V6MKC2FZ.js → chunk-22Q5A6RV.js} +3 -3
  14. package/dist/{chunk-IUDGEUDO.cjs → chunk-2BZHWUSR.cjs} +27 -15
  15. package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
  16. package/dist/{chunk-CCATWPXM.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-GYZE55MO.js → chunk-3GWWJT7L.js} +4 -4
  20. package/dist/{chunk-CMT5NMMS.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-LHAXPADA.js → chunk-4JGRWHZJ.js} +7 -5
  25. package/dist/{chunk-ROHLEP2W.cjs → chunk-4W5G5QVL.cjs} +26 -26
  26. package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
  27. package/dist/{chunk-ZMCVKFXI.cjs → chunk-56VOWURB.cjs} +154 -47
  28. package/dist/{chunk-FXKAW7ZO.cjs → chunk-5A4TCHOC.cjs} +3 -3
  29. package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
  30. package/dist/{chunk-UJXISJBN.js → chunk-5ET6L4NS.js} +3 -3
  31. package/dist/{chunk-5NWINHR5.cjs → chunk-63ZGNR2T.cjs} +43 -39
  32. package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
  33. package/dist/{chunk-3WZEJHUQ.cjs → chunk-7DMMMBCY.cjs} +7 -7
  34. package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
  35. package/dist/{chunk-YN2YWTXW.js → chunk-7VMGP2FW.js} +44 -28
  36. package/dist/{chunk-OJXHYNXN.js → chunk-7X5PNIQJ.js} +3 -3
  37. package/dist/{chunk-FYSPZT4V.cjs → chunk-7ZHYEITD.cjs} +11 -11
  38. package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
  39. package/dist/{chunk-UWXE23BT.cjs → chunk-AWB7QYY6.cjs} +6 -6
  40. package/dist/{chunk-UO4WPSGQ.js → chunk-B4EKV6HQ.js} +154 -48
  41. package/dist/{chunk-2X7NGX3M.js → chunk-BRNUPDHJ.js} +5 -5
  42. package/dist/{chunk-D3STJ56J.js → chunk-BTKZGHAV.js} +23 -11
  43. package/dist/{chunk-I5CDNPPE.cjs → chunk-C4GSLCHE.cjs} +331 -125
  44. package/dist/{chunk-QPSKHBJP.js → chunk-C7ZBSV2Q.js} +13 -7
  45. package/dist/{chunk-YN6V7R3L.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-ANXZFVY2.js → chunk-DY72BMU5.js} +3 -3
  49. package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
  50. package/dist/{chunk-6DO5IZ5N.cjs → chunk-EDPYCLRC.cjs} +85 -65
  51. package/dist/{chunk-WQKJSGVS.js → chunk-F2G6CWFT.js} +271 -66
  52. package/dist/{chunk-AVJHHUC5.cjs → chunk-F5LKJ6F5.cjs} +43 -31
  53. package/dist/{chunk-ZU7NIRT6.js → chunk-FGMDMJM7.js} +10 -5
  54. package/dist/{chunk-YVD3CSO3.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-XB274MW5.cjs → chunk-G6PNEASF.cjs} +13 -13
  60. package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
  61. package/dist/{chunk-HKEXJUWS.cjs → chunk-GH6C2QGW.cjs} +12 -21
  62. package/dist/{chunk-WRKUDAZJ.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-NCWCUZNS.cjs → chunk-HFSVMKM3.cjs} +14 -14
  68. package/dist/{chunk-IUTY5WQ2.cjs → chunk-HLFDZ35S.cjs} +5 -5
  69. package/dist/{chunk-IWC5DM2M.cjs → chunk-I76GIKN7.cjs} +20 -16
  70. package/dist/{chunk-ON5QSY35.cjs → chunk-KAIVDEIG.cjs} +175 -59
  71. package/dist/{chunk-R24NNAEG.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-MVPBWHAC.js → chunk-L5U4W6JC.js} +4 -4
  75. package/dist/{chunk-2IWC4FP7.cjs → chunk-LMJ5EBV7.cjs} +10 -10
  76. package/dist/{chunk-KKP7JKN4.cjs → chunk-LODTHGST.cjs} +18 -12
  77. package/dist/{chunk-4V2E7U7Q.cjs → chunk-LPS5AMQD.cjs} +8 -8
  78. package/dist/{chunk-PY37LNDP.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-E4M5OAYO.js → chunk-MSYSQ2AJ.js} +132 -16
  83. package/dist/{chunk-TWUXUCEW.cjs → chunk-NGBXXZLL.cjs} +50 -62
  84. package/dist/{chunk-FFAOS5HQ.js → chunk-NHJLP37F.js} +6 -6
  85. package/dist/{chunk-S3MDHNKB.cjs → chunk-NHYRRAGI.cjs} +5 -5
  86. package/dist/{chunk-U44IKGG7.cjs → chunk-O3MGZDCT.cjs} +89 -52
  87. package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
  88. package/dist/{chunk-KQCN6AKJ.cjs → chunk-OS533P33.cjs} +37 -29
  89. package/dist/{chunk-DAJXW4KX.js → chunk-PABONWKI.js} +24 -11
  90. package/dist/{chunk-QACVP4PM.js → chunk-PXNZ6TME.js} +77 -59
  91. package/dist/{chunk-OMXII44L.js → chunk-Q2Q34NF3.js} +63 -26
  92. package/dist/{chunk-OH2FAIVU.js → chunk-QBWNJXNR.js} +10 -6
  93. package/dist/{chunk-XKTPFXGA.js → chunk-QFU53KRH.js} +4 -4
  94. package/dist/{chunk-CR4FMIWL.cjs → chunk-QGMUTVVH.cjs} +17 -17
  95. package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
  96. package/dist/{chunk-QD32ADK6.js → chunk-S762UEV5.js} +5 -5
  97. package/dist/{chunk-HNDK4IQU.cjs → chunk-SH5PPVK7.cjs} +61 -45
  98. package/dist/{chunk-JC5YBPSF.cjs → chunk-SKZPC5AG.cjs} +5 -5
  99. package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
  100. package/dist/{chunk-5KVXXUD4.js → chunk-SSSN7VAM.js} +3 -3
  101. package/dist/{chunk-KMC6CQH3.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-QXH7QDSZ.js → chunk-TEVX443G.js} +44 -51
  105. package/dist/{chunk-UFZZ7TSN.cjs → chunk-TQ377OLB.cjs} +23 -21
  106. package/dist/{chunk-PJGFU5DN.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-LKWQNUE6.cjs → chunk-UGXHYIWT.cjs} +5 -5
  110. package/dist/{chunk-JBNDTXXV.cjs → chunk-ULMSSHCJ.cjs} +21 -21
  111. package/dist/{chunk-YWOBW2PV.cjs → chunk-UOL6Y5TD.cjs} +18 -18
  112. package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
  113. package/dist/{chunk-7M3PNU2M.cjs → chunk-V7AKE5VT.cjs} +10 -10
  114. package/dist/{chunk-J7XZV333.js → chunk-VEPGBETF.js} +6 -6
  115. package/dist/{chunk-UWJHCOH2.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-YT5L3B57.cjs → chunk-WFKVS2K4.cjs} +65 -27
  119. package/dist/{chunk-J6M4FPK5.js → chunk-WXQ57LAO.js} +3 -3
  120. package/dist/{chunk-5H2G27PK.cjs → chunk-X27QRG4C.cjs} +38 -38
  121. package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
  122. package/dist/{chunk-DHO2YRIM.js → chunk-XQ5MWMP2.js} +4 -4
  123. package/dist/{chunk-XIVIE43A.cjs → chunk-XW6IXEQH.cjs} +26 -13
  124. package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
  125. package/dist/{chunk-7H33U5SM.cjs → chunk-Y57W2CT5.cjs} +2 -2
  126. package/dist/{chunk-OBIYPYYS.cjs → chunk-YCM6QQRT.cjs} +46 -53
  127. package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
  128. package/dist/{chunk-ADADVMXY.js → chunk-YFWRJW4B.js} +2 -2
  129. package/dist/{chunk-ONDAWTW4.js → chunk-YN6IETRZ.js} +179 -136
  130. package/dist/{chunk-4SDKXQ4C.js → chunk-YRRAUB35.js} +4 -4
  131. package/dist/{chunk-OBP5REIV.js → chunk-Z6PMDS4G.js} +62 -24
  132. package/dist/{chunk-BOVPWH4H.js → chunk-ZA34AN3R.js} +8 -17
  133. package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
  134. package/dist/{chunk-6FH72EB2.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 +530 -355
  164. package/dist/compiler/index.d.ts +20 -0
  165. package/dist/compiler/index.js +374 -210
  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 +1080 -2190
  211. package/dist/index.js +467 -1577
  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 +280 -74
  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 +52 -48
  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 +889 -773
  236. package/dist/traits/index.js +371 -259
  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 +75 -69
  243. package/LICENSE +0 -21
  244. package/dist/GLTFPipeline-37FPRVPH.js +0 -17
  245. package/dist/GLTFPipeline-EK3LFJKW.cjs +0 -38
  246. package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
  247. package/dist/HoloScriptRuntime-ACDFKVVH.js +0 -10
  248. package/dist/HoloScriptRuntime-ON2OQVEF.cjs +0 -19
@@ -1,90 +1,90 @@
1
1
  export { createReproducibilityContext, parseReproducibilityFlags } from '../chunk-5GLCTO44.js';
2
- export { ContextCompileError, ContextCompiler, createContextCompiler } from '../chunk-QXH7QDSZ.js';
3
- export { LLMCapabilityCompileError, LLMProviderCapabilitiesCompiler, createLLMProviderCapabilitiesCompiler } from '../chunk-DAJXW4KX.js';
4
- export { GLTF_PIPELINE_TOOLS, registerGLTFTools } from '../chunk-5KVXXUD4.js';
5
- export { BUSINESS_QUEST_TOOLS, buildVRRCompositionFromDraft, businessVRRDraftSchema, draftToHoloPreview, handleBusinessQuestToolCall, registerBusinessQuestTools, validateBusinessVRRDraft } from '../chunk-ADADVMXY.js';
2
+ export { ContextCompileError, ContextCompiler, createContextCompiler } from '../chunk-TEVX443G.js';
3
+ export { LLMCapabilityCompileError, LLMProviderCapabilitiesCompiler, createLLMProviderCapabilitiesCompiler } from '../chunk-PABONWKI.js';
4
+ export { GLTF_PIPELINE_TOOLS, registerGLTFTools } from '../chunk-SSSN7VAM.js';
5
+ export { BUSINESS_QUEST_TOOLS, buildVRRCompositionFromDraft, businessVRRDraftSchema, draftToHoloPreview, handleBusinessQuestToolCall, registerBusinessQuestTools, validateBusinessVRRDraft } from '../chunk-YFWRJW4B.js';
6
6
  export { NodeToyMapper, mapNodeToyToShader } from '../chunk-TG7O4WBC.js';
7
- export { QuantumCircuitCompiler } from '../chunk-ZU7NIRT6.js';
8
- import { init_Native2DCompiler, init_ThreeJSCompiler, ThreeJSCompiler_exports, init_A2AAgentCardCompiler, A2AAgentCardCompiler_exports, init_NIRCompiler, NIRCompiler_exports, Native2DCompiler_exports, Native2DCompiler } from '../chunk-WQKJSGVS.js';
9
- export { CompilerBridge, GaussianSplattingCompiler, Native2DCompiler, SHARED_SORT_SHADER_PATH, SpatialPartitionPass, USDZPipeline, bestCategoryForTraits, compilePipelineSource, compilePipelineSourceToNode, compilePipelineSourceToPython, compilePipelineToNode, compilePipelineToPython, createGaussianSplattingCompiler, detectMultiUserSharedSort, quickSafetyCheck, runSafetyPass, selectModality, selectModalityForAll, spatialPartition } from '../chunk-WQKJSGVS.js';
10
- export { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from '../chunk-EKBKLK7P.js';
7
+ export { QuantumCircuitCompiler } from '../chunk-FGMDMJM7.js';
8
+ import { init_Native2DCompiler, init_ThreeJSCompiler, ThreeJSCompiler_exports, init_A2AAgentCardCompiler, A2AAgentCardCompiler_exports, init_NIRCompiler, NIRCompiler_exports, Native2DCompiler_exports, Native2DCompiler } from '../chunk-F2G6CWFT.js';
9
+ export { CodeEditorCompiler, CompilerBridge, GaussianSplattingCompiler, Native2DCompiler, SHARED_SORT_SHADER_PATH, SpatialPartitionPass, USDZPipeline, bestCategoryForTraits, compilePipelineSource, compilePipelineSourceToNode, compilePipelineSourceToPython, compilePipelineToNode, compilePipelineToPython, createGaussianSplattingCompiler, detectMultiUserSharedSort, quickSafetyCheck, runSafetyPass, selectModality, selectModalityForAll, spatialPartition } from '../chunk-F2G6CWFT.js';
10
+ export { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from '../chunk-UDE4OZMR.js';
11
11
  export { SemanticSceneGraph } from '../chunk-HYNTS5CP.js';
12
- import '../chunk-V6MKC2FZ.js';
13
- import { assertHoloMapManifestContract } from '../chunk-MBOOR7X4.js';
12
+ import '../chunk-22Q5A6RV.js';
13
+ import { assertHoloMapManifestContract } from '../chunk-YFVQWSNJ.js';
14
14
  export { COCOExporterImpl as COCOExporter } from '../chunk-Q56TT7IL.js';
15
15
  export { RemotionBridgeImpl as RemotionBridge } from '../chunk-YYXH45E2.js';
16
- import { vrTraitRegistry } from '../chunk-ONDAWTW4.js';
17
- import '../chunk-QPOQ7VPI.js';
18
- import { isWebGpuEnvironmentPresent } from '../chunk-YF2I3MV3.js';
16
+ import { vrTraitRegistry } from '../chunk-YN6IETRZ.js';
17
+ import '../chunk-GTA4Q3A3.js';
18
+ import { isWebGpuEnvironmentPresent } from '../chunk-47RUFYKR.js';
19
19
  import '../chunk-TDCNJHWO.js';
20
20
  import '../chunk-YQELFNJV.js';
21
- import '../chunk-FHP6LXJS.js';
22
- export { IncrementalCompiler, createIncrementalCompiler } from '../chunk-GYZE55MO.js';
21
+ import '../chunk-7E7GCQCK.js';
22
+ export { IncrementalCompiler, createIncrementalCompiler } from '../chunk-3GWWJT7L.js';
23
23
  import '../chunk-2M2DPHKB.js';
24
24
  import '../chunk-4R6SBXDB.js';
25
- import { init_WASMCompiler, WASMCompiler_exports } from '../chunk-YVD3CSO3.js';
26
- export { WASMCompiler } from '../chunk-YVD3CSO3.js';
27
- import { init_WebGPUCompiler, WebGPUCompiler_exports, WebGPUCompiler } from '../chunk-CMT5NMMS.js';
28
- export { WebGPUCompiler } from '../chunk-CMT5NMMS.js';
29
- import { init_DTDLCompiler, DTDLCompiler_exports } from '../chunk-J6M4FPK5.js';
30
- export { DTDLCompiler } from '../chunk-J6M4FPK5.js';
31
- import { init_URDFCompiler, URDFCompiler_exports } from '../chunk-R24NNAEG.js';
32
- export { URDFCompiler, createURDFCompiler } from '../chunk-R24NNAEG.js';
33
- export { USDPhysicsCompiler } from '../chunk-LHAXPADA.js';
34
- import { init_SDFCompiler, SDFCompiler_exports } from '../chunk-OH2FAIVU.js';
35
- export { SDFCompiler } from '../chunk-OH2FAIVU.js';
36
- import { init_StateCompiler, StateCompiler_exports } from '../chunk-ANXZFVY2.js';
37
- export { StateCompiler } from '../chunk-ANXZFVY2.js';
38
- export { TraitCompositionCompiler } from '../chunk-XKTPFXGA.js';
39
- import { init_UnrealCompiler, UnrealCompiler_exports } from '../chunk-D3STJ56J.js';
40
- import { init_GodotCompiler, GodotCompiler_exports } from '../chunk-PY37LNDP.js';
41
- export { GodotCompiler } from '../chunk-PY37LNDP.js';
42
- import { init_R3FCompiler, R3FCompiler_exports } from '../chunk-E4M5OAYO.js';
43
- export { ENVIRONMENT_PRESETS, R3FCompiler } from '../chunk-E4M5OAYO.js';
25
+ import { init_WASMCompiler, WASMCompiler_exports } from '../chunk-FHQFPYV4.js';
26
+ export { WASMCompiler } from '../chunk-FHQFPYV4.js';
27
+ import { init_WebGPUCompiler, WebGPUCompiler_exports, WebGPUCompiler } from '../chunk-3NGDZZR4.js';
28
+ export { WebGPUCompiler } from '../chunk-3NGDZZR4.js';
29
+ import { init_DTDLCompiler, DTDLCompiler_exports } from '../chunk-WXQ57LAO.js';
30
+ export { DTDLCompiler } from '../chunk-WXQ57LAO.js';
31
+ import { init_URDFCompiler, URDFCompiler_exports } from '../chunk-KCPHASCO.js';
32
+ export { URDFCompiler, createURDFCompiler } from '../chunk-KCPHASCO.js';
33
+ export { USDPhysicsCompiler } from '../chunk-4JGRWHZJ.js';
34
+ import { init_SDFCompiler, SDFCompiler_exports } from '../chunk-QBWNJXNR.js';
35
+ export { SDFCompiler } from '../chunk-QBWNJXNR.js';
36
+ import { init_StateCompiler, StateCompiler_exports } from '../chunk-DY72BMU5.js';
37
+ export { StateCompiler } from '../chunk-DY72BMU5.js';
38
+ export { TraitCompositionCompiler } from '../chunk-QFU53KRH.js';
39
+ import { init_UnrealCompiler, UnrealCompiler_exports } from '../chunk-BTKZGHAV.js';
40
+ import { init_GodotCompiler, GodotCompiler_exports } from '../chunk-LWUOUCYL.js';
41
+ export { GodotCompiler } from '../chunk-LWUOUCYL.js';
42
+ import { init_R3FCompiler, R3FCompiler_exports } from '../chunk-MSYSQ2AJ.js';
43
+ export { ENVIRONMENT_PRESETS, R3FCompiler } from '../chunk-MSYSQ2AJ.js';
44
44
  import '../chunk-XT6JY5W5.js';
45
- import '../chunk-UO4WPSGQ.js';
46
- import { init_PlayCanvasCompiler, PlayCanvasCompiler_exports } from '../chunk-DHO2YRIM.js';
47
- export { PlayCanvasCompiler } from '../chunk-DHO2YRIM.js';
48
- import { init_AndroidCompiler, AndroidCompiler_exports } from '../chunk-WRKUDAZJ.js';
49
- export { AndroidCompiler } from '../chunk-WRKUDAZJ.js';
50
- import { init_AndroidXRCompiler, init_AndroidXRTraitMap, AndroidXRCompiler_exports, AndroidXRCompiler, getTraitMapping, ANDROIDXR_TRAIT_MAP } from '../chunk-YN2YWTXW.js';
51
- export { AndroidXRCompiler } from '../chunk-YN2YWTXW.js';
45
+ import '../chunk-B4EKV6HQ.js';
46
+ import { init_PlayCanvasCompiler, PlayCanvasCompiler_exports } from '../chunk-XQ5MWMP2.js';
47
+ export { PlayCanvasCompiler } from '../chunk-XQ5MWMP2.js';
48
+ import { init_AndroidCompiler, AndroidCompiler_exports } from '../chunk-GSOUNWEL.js';
49
+ export { AndroidCompiler } from '../chunk-GSOUNWEL.js';
50
+ import { init_AndroidXRCompiler, init_AndroidXRTraitMap, AndroidXRCompiler_exports, AndroidXRCompiler, getTraitMapping, ANDROIDXR_TRAIT_MAP } from '../chunk-7VMGP2FW.js';
51
+ export { AndroidXRCompiler } from '../chunk-7VMGP2FW.js';
52
52
  import '../chunk-FDSGHPAK.js';
53
- import { init_IOSCompiler, IOSCompiler_exports } from '../chunk-OMXII44L.js';
54
- export { IOSCompiler } from '../chunk-OMXII44L.js';
55
- import { init_VisionOSCompiler, init_VisionOSTraitMap, VisionOSCompiler_exports, getTraitMapping as getTraitMapping$1, listAllTraits, generateTraitCode } from '../chunk-2X7NGX3M.js';
56
- export { VisionOSCompiler } from '../chunk-2X7NGX3M.js';
57
- export { MultiLayerCompiler } from '../chunk-FFAOS5HQ.js';
58
- import { init_VRRCompiler, VRRCompiler_exports } from '../chunk-4SDKXQ4C.js';
59
- export { VRRCompiler } from '../chunk-4SDKXQ4C.js';
60
- import { init_ARCompiler, ARCompiler_exports } from '../chunk-UJXISJBN.js';
61
- export { ARCompiler } from '../chunk-UJXISJBN.js';
62
- import { init_OpenXRCompiler, OpenXRCompiler_exports } from '../chunk-QD32ADK6.js';
63
- export { OpenXRCompiler } from '../chunk-QD32ADK6.js';
64
- import { init_VRChatCompiler, VRChatCompiler_exports } from '../chunk-UWJHCOH2.js';
65
- export { VRChatCompiler } from '../chunk-UWJHCOH2.js';
66
- import { init_BabylonCompiler, BabylonCompiler_exports } from '../chunk-J7XZV333.js';
67
- export { BabylonCompiler } from '../chunk-J7XZV333.js';
68
- import '../chunk-TJHVSBP2.js';
53
+ import { init_IOSCompiler, IOSCompiler_exports } from '../chunk-Q2Q34NF3.js';
54
+ export { IOSCompiler } from '../chunk-Q2Q34NF3.js';
55
+ import { init_VisionOSCompiler, init_VisionOSTraitMap, VisionOSCompiler_exports, getTraitMapping as getTraitMapping$1, listAllTraits, generateTraitCode } from '../chunk-BRNUPDHJ.js';
56
+ export { VisionOSCompiler } from '../chunk-BRNUPDHJ.js';
57
+ export { MultiLayerCompiler } from '../chunk-NHJLP37F.js';
58
+ import { init_VRRCompiler, VRRCompiler_exports } from '../chunk-YRRAUB35.js';
59
+ export { VRRCompiler } from '../chunk-YRRAUB35.js';
60
+ import { init_ARCompiler, ARCompiler_exports } from '../chunk-5ET6L4NS.js';
61
+ export { ARCompiler } from '../chunk-5ET6L4NS.js';
62
+ import { init_OpenXRCompiler, OpenXRCompiler_exports } from '../chunk-S762UEV5.js';
63
+ export { OpenXRCompiler } from '../chunk-S762UEV5.js';
64
+ import { init_VRChatCompiler, VRChatCompiler_exports } from '../chunk-VF257YKO.js';
65
+ export { VRChatCompiler } from '../chunk-VF257YKO.js';
66
+ import { init_BabylonCompiler, BabylonCompiler_exports } from '../chunk-VEPGBETF.js';
67
+ export { BabylonCompiler } from '../chunk-VEPGBETF.js';
68
+ import '../chunk-SLHLXUMO.js';
69
69
  import '../chunk-4C57PR42.js';
70
- import { init_UnityCompiler, UnityCompiler_exports } from '../chunk-CCATWPXM.js';
71
- export { UnityCompiler } from '../chunk-CCATWPXM.js';
72
- import { init_PlatformConditionalCompilerMixin } from '../chunk-GZG4KA4E.js';
73
- export { PlatformConditionalCompilerMixin, createPlatformTarget, filterCompositionForPlatform, matchesPlatformConstraint, normalizePlatformName } from '../chunk-GZG4KA4E.js';
74
- import '../chunk-BOVPWH4H.js';
75
- import { init_CompilerBase, CompilerBase, init_ANSNamespace, ANSCapabilityPath, init_CompilerDocumentationGenerator } from '../chunk-QPSKHBJP.js';
76
- export { CompilerBase, CompilerDocumentationGenerator, UnauthorizedCompilerAccessError, createTestCompilerToken, isCapabilityTokenCredential } from '../chunk-QPSKHBJP.js';
70
+ import { init_UnityCompiler, UnityCompiler_exports } from '../chunk-2OWDB4FB.js';
71
+ export { UnityCompiler } from '../chunk-2OWDB4FB.js';
72
+ import { init_PlatformConditionalCompilerMixin } from '../chunk-GW3LKD5C.js';
73
+ export { PlatformConditionalCompilerMixin, createPlatformTarget, filterCompositionForPlatform, matchesPlatformConstraint, normalizePlatformName } from '../chunk-GW3LKD5C.js';
74
+ import '../chunk-ZA34AN3R.js';
75
+ import { init_CompilerBase, CompilerBase, init_ANSNamespace, ANSCapabilityPath, init_CompilerDocumentationGenerator } from '../chunk-C7ZBSV2Q.js';
76
+ export { CompilerBase, CompilerDocumentationGenerator, UnauthorizedCompilerAccessError, createTestCompilerToken, isCapabilityTokenCredential } from '../chunk-C7ZBSV2Q.js';
77
77
  import { init_traitDocs, getTraitDoc, getAllTraitNames } from '../chunk-THCK6ECW.js';
78
- import '../chunk-N75IH2HY.js';
79
- import '../chunk-MXFUTKCO.js';
80
- import '../chunk-J32ZJZJH.js';
81
- import { init_constants, CONNECTOR_PACKAGES, CONNECTOR_ENV_REQUIREMENTS, KNOWN_CONNECTORS } from '../chunk-2BSMSUCE.js';
78
+ import '../chunk-2Y3V22SG.js';
79
+ import '../chunk-33YHE7HX.js';
80
+ import '../chunk-SYTRBGDS.js';
81
+ import { init_constants, CONNECTOR_PACKAGES, CONNECTOR_ENV_REQUIREMENTS, KNOWN_CONNECTORS } from '../chunk-GASCWJK5.js';
82
82
  import '../chunk-WRNEH5MO.js';
83
83
  import '../chunk-WKX5AMOY.js';
84
84
  import '../chunk-SIEXCILW.js';
85
85
  import '../chunk-CBJY23VL.js';
86
86
  import { ExpressionEvaluator } from '../chunk-XL6INWKT.js';
87
- import '../chunk-H652NHX5.js';
87
+ import '../chunk-TVANHNJ7.js';
88
88
  import '../chunk-PHENW4MQ.js';
89
89
  import '../chunk-VVKVQZI6.js';
90
90
  import { __export, __esm, __toCommonJS } from '../chunk-OL46QLBJ.js';
@@ -204,9 +204,13 @@ function emitHandler(handler, meta, opts) {
204
204
  lines.push(` try {`);
205
205
  lines.push(` body = await _request.json();`);
206
206
  lines.push(` } catch {`);
207
- lines.push(` return NextResponse.json({ ok: false, error: 'Invalid JSON body' }, { status: 400 });`);
207
+ lines.push(
208
+ ` return NextResponse.json({ ok: false, error: 'Invalid JSON body' }, { status: 400 });`
209
+ );
208
210
  lines.push(` }`);
209
- lines.push(` const record = typeof body === 'object' && body !== null ? (body as Record<string, unknown>) : null;`);
211
+ lines.push(
212
+ ` const record = typeof body === 'object' && body !== null ? (body as Record<string, unknown>) : null;`
213
+ );
210
214
  lines.push(` if (!record) {`);
211
215
  lines.push(
212
216
  ` return NextResponse.json({ ok: false, error: 'JSON body must be an object' }, { status: 400 });`
@@ -285,21 +289,29 @@ function compileToNextJSAPI(composition, options = {}) {
285
289
  lines.push(``);
286
290
  if (includeValidation && hasBodyHandlers) {
287
291
  lines.push(`function isTuple3(value: unknown): value is [number, number, number] {`);
288
- lines.push(` return Array.isArray(value) && value.length === 3 && value.every((n) => typeof n === 'number');`);
292
+ lines.push(
293
+ ` return Array.isArray(value) && value.length === 3 && value.every((n) => typeof n === 'number');`
294
+ );
289
295
  lines.push(`}`);
290
296
  lines.push(``);
291
297
  lines.push(`function isTuple4(value: unknown): value is [number, number, number, number] {`);
292
- lines.push(` return Array.isArray(value) && value.length === 4 && value.every((n) => typeof n === 'number');`);
298
+ lines.push(
299
+ ` return Array.isArray(value) && value.length === 4 && value.every((n) => typeof n === 'number');`
300
+ );
293
301
  lines.push(`}`);
294
302
  lines.push(``);
295
303
  lines.push(
296
304
  `function validateSpatialRequestBody(record: Record<string, unknown>): { valid: true } | { valid: false; error: string; field: string } {`
297
305
  );
298
306
  lines.push(` if ('position' in record && !isTuple3(record.position)) {`);
299
- lines.push(` return { valid: false, error: 'position must be [x, y, z] numeric tuple', field: 'position' };`);
307
+ lines.push(
308
+ ` return { valid: false, error: 'position must be [x, y, z] numeric tuple', field: 'position' };`
309
+ );
300
310
  lines.push(` }`);
301
311
  lines.push(` if ('scale' in record && !isTuple3(record.scale)) {`);
302
- lines.push(` return { valid: false, error: 'scale must be [x, y, z] numeric tuple', field: 'scale' };`);
312
+ lines.push(
313
+ ` return { valid: false, error: 'scale must be [x, y, z] numeric tuple', field: 'scale' };`
314
+ );
303
315
  lines.push(` }`);
304
316
  lines.push(` if ('rotation' in record) {`);
305
317
  lines.push(` const rotation = record.rotation;`);
@@ -538,7 +550,9 @@ var init_NodeServiceCompiler = __esm({
538
550
  const handlerTrait = this.findTrait(traitObjects, "handler");
539
551
  const method = this.resolveString(propMap.get("method"))?.toUpperCase() || "GET";
540
552
  const path = this.resolveString(propMap.get("path")) || `/${this.toKebab(obj.name)}`;
541
- const handlerName = this.resolveString(propMap.get("handler")) || this.resolveString(this.readTraitConfig(handlerTrait, "name", "handler")) || this.resolveString(this.readTraitConfig(handlerTrait, "_arg0")) || this.toCamelCase(obj.name);
553
+ const handlerName = this.resolveString(propMap.get("handler")) || this.resolveString(
554
+ this.readTraitConfig(handlerTrait, "name", "handler")
555
+ ) || this.resolveString(this.readTraitConfig(handlerTrait, "_arg0")) || this.toCamelCase(obj.name);
542
556
  const hasHttpInfo = propMap.has("method") || propMap.has("path") || traits.includes("http") || traits.includes("route");
543
557
  if (!hasHttpInfo) return null;
544
558
  return {
@@ -2087,7 +2101,9 @@ var MCPConfigCompiler = class extends CompilerBase {
2087
2101
  let transport = "http";
2088
2102
  const connectorTrait = traits.find((t) => t.name === "connector");
2089
2103
  if (connectorTrait?.config) {
2090
- const t = this.resolveString(connectorTrait.config["transport"] || connectorTrait.config["_arg1"]);
2104
+ const t = this.resolveString(
2105
+ connectorTrait.config["transport"] || connectorTrait.config["_arg1"]
2106
+ );
2091
2107
  if (t === "stdio" || t === "sse" || t === "http") transport = t;
2092
2108
  }
2093
2109
  const envVars = [];
@@ -2386,15 +2402,10 @@ var EDGE_KEY = (e) => `${e.source}\0${e.target}\0${e.relation}`;
2386
2402
  function mergeSocialCausalModels(agentDags, options = {}) {
2387
2403
  const threshold = options.consensusThreshold ?? DEFAULT_THRESHOLD;
2388
2404
  if (threshold <= 0 || threshold > 1) {
2389
- throw new RangeError(
2390
- `consensusThreshold must be in (0, 1]; got ${threshold}`
2391
- );
2405
+ throw new RangeError(`consensusThreshold must be in (0, 1]; got ${threshold}`);
2392
2406
  }
2393
2407
  const agentCount = agentDags.length;
2394
- const minObservers = Math.min(
2395
- agentCount,
2396
- Math.floor(threshold * agentCount) + 1
2397
- );
2408
+ const minObservers = Math.min(agentCount, Math.floor(threshold * agentCount) + 1);
2398
2409
  if (agentCount === 0) {
2399
2410
  return {
2400
2411
  dag: emptyDag(options.modelName),
@@ -2587,14 +2598,10 @@ function byzantineResilientMerge(agentDags, ledger, options = {}) {
2587
2598
  throw new RangeError(`decayPerEpoch must be in [0, 1]; got ${decay}`);
2588
2599
  }
2589
2600
  if (dropThreshold < 0 || dropThreshold > 1) {
2590
- throw new RangeError(
2591
- `dropThreshold must be in [0, 1]; got ${dropThreshold}`
2592
- );
2601
+ throw new RangeError(`dropThreshold must be in [0, 1]; got ${dropThreshold}`);
2593
2602
  }
2594
2603
  if (minCluster < 2 || !Number.isInteger(minCluster)) {
2595
- throw new RangeError(
2596
- `minClusterAgents must be an integer >= 2; got ${minCluster}`
2597
- );
2604
+ throw new RangeError(`minClusterAgents must be an integer >= 2; got ${minCluster}`);
2598
2605
  }
2599
2606
  const agentIds = /* @__PURE__ */ new Map();
2600
2607
  const seenIds = /* @__PURE__ */ new Set();
@@ -2979,17 +2986,10 @@ var DispatchPolicy = class {
2979
2986
  }
2980
2987
  const emulator = await this.runTier1WasmEmulator(op, runtime);
2981
2988
  const reason = emulator.accepted ? void 0 : emulator.reason ?? "compiler-wasm SNN emulator rejected dispatch";
2982
- return this.buildDecision(
2983
- "tier-1-wasm" /* TIER_1_WASM */,
2984
- emulator.accepted,
2985
- op,
2986
- reason,
2987
- void 0,
2988
- {
2989
- wasmProbe: runtime,
2990
- wasmEmulator: emulator
2991
- }
2992
- );
2989
+ return this.buildDecision("tier-1-wasm" /* TIER_1_WASM */, emulator.accepted, op, reason, void 0, {
2990
+ wasmProbe: runtime,
2991
+ wasmEmulator: emulator
2992
+ });
2993
2993
  }
2994
2994
  async tryTier2(op) {
2995
2995
  const provider = this.config.llmProposalProvider;
@@ -3307,16 +3307,7 @@ async function sha256Hex(input) {
3307
3307
  function bytesToHex(bytes) {
3308
3308
  return Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
3309
3309
  }
3310
- var MINIMAL_WASM_MODULE = new Uint8Array([
3311
- 0,
3312
- 97,
3313
- 115,
3314
- 109,
3315
- 1,
3316
- 0,
3317
- 0,
3318
- 0
3319
- ]);
3310
+ var MINIMAL_WASM_MODULE = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0]);
3320
3311
  function emulateLifSteps(input, steps) {
3321
3312
  const vRest = -65;
3322
3313
  const vReset = -65;
@@ -3500,7 +3491,9 @@ async function runDispatchPolicyLatencyBenchmark(options = {}) {
3500
3491
  }
3501
3492
  const samples = [];
3502
3493
  for (let i = 0; i < iterations; i += 1) {
3503
- samples.push(await measureDispatchSample(policy, scenario, scenarioOperation, i, options.now));
3494
+ samples.push(
3495
+ await measureDispatchSample(policy, scenario, scenarioOperation, i, options.now)
3496
+ );
3504
3497
  }
3505
3498
  summaries.push(summarizeDispatchSamples(scenario, samples));
3506
3499
  }
@@ -3513,8 +3506,12 @@ async function runDispatchPolicyLatencyBenchmark(options = {}) {
3513
3506
  };
3514
3507
  }
3515
3508
  function recommendDispatchPolicyDefaults(summaries) {
3516
- const tier2 = summaries.find((summary) => summary.requestedTier === "tier-2-speculative" /* TIER_2_SPECULATIVE */);
3517
- const tier3 = summaries.find((summary) => summary.requestedTier === "tier-3-cpu-direct" /* TIER_3_CPU_DIRECT */);
3509
+ const tier2 = summaries.find(
3510
+ (summary) => summary.requestedTier === "tier-2-speculative" /* TIER_2_SPECULATIVE */
3511
+ );
3512
+ const tier3 = summaries.find(
3513
+ (summary) => summary.requestedTier === "tier-3-cpu-direct" /* TIER_3_CPU_DIRECT */
3514
+ );
3518
3515
  if (!tier2) {
3519
3516
  return {
3520
3517
  tier2DefaultEnabled: false,
@@ -3683,22 +3680,11 @@ function parseOBJExtended(text) {
3683
3680
  const parts = line.split(/\s+/);
3684
3681
  const cmd = parts[0];
3685
3682
  if (cmd === "v" && parts.length >= 4) {
3686
- allVertices.push(
3687
- parseFloat(parts[1]),
3688
- parseFloat(parts[2]),
3689
- parseFloat(parts[3])
3690
- );
3683
+ allVertices.push(parseFloat(parts[1]), parseFloat(parts[2]), parseFloat(parts[3]));
3691
3684
  } else if (cmd === "vn" && parts.length >= 4) {
3692
- allNormals.push(
3693
- parseFloat(parts[1]),
3694
- parseFloat(parts[2]),
3695
- parseFloat(parts[3])
3696
- );
3685
+ allNormals.push(parseFloat(parts[1]), parseFloat(parts[2]), parseFloat(parts[3]));
3697
3686
  } else if (cmd === "vt" && parts.length >= 3) {
3698
- allUVs.push(
3699
- parseFloat(parts[1]),
3700
- parseFloat(parts[2])
3701
- );
3687
+ allUVs.push(parseFloat(parts[1]), parseFloat(parts[2]));
3702
3688
  } else if (cmd === "g" || cmd === "o") {
3703
3689
  const name = parts.slice(1).join(" ") || `group_${groups.length}`;
3704
3690
  startGroup(name);
@@ -3718,7 +3704,12 @@ function parseOBJExtended(text) {
3718
3704
  return vIdx > 0 ? vIdx - 1 : allVertices.length / 3 + vIdx;
3719
3705
  });
3720
3706
  for (let t = 1; t < indices.length - 1; t++) {
3721
- currentGroup.triangles = appendTri(currentGroup.triangles, indices[0], indices[t], indices[t + 1]);
3707
+ currentGroup.triangles = appendTri(
3708
+ currentGroup.triangles,
3709
+ indices[0],
3710
+ indices[t],
3711
+ indices[t + 1]
3712
+ );
3722
3713
  }
3723
3714
  }
3724
3715
  }
@@ -3733,25 +3724,23 @@ function parseOBJExtended(text) {
3733
3724
  const verts = [];
3734
3725
  for (const idx of usedVerts) {
3735
3726
  remap.set(idx, next++);
3736
- verts.push(
3737
- allVertices[idx * 3],
3738
- allVertices[idx * 3 + 1],
3739
- allVertices[idx * 3 + 2]
3740
- );
3727
+ verts.push(allVertices[idx * 3], allVertices[idx * 3 + 1], allVertices[idx * 3 + 2]);
3741
3728
  }
3742
3729
  g.vertices = new Float64Array(verts);
3743
3730
  for (let i = 0; i < g.triangles.length; i++) {
3744
3731
  g.triangles[i] = remap.get(g.triangles[i]);
3745
3732
  }
3746
3733
  }
3747
- return groups.length > 0 ? groups : [{
3748
- name: "default",
3749
- vertices: new Float64Array(allVertices),
3750
- normals: new Float64Array(allNormals),
3751
- uvs: new Float64Array(allUVs),
3752
- triangles: new Uint32Array(0),
3753
- materialName: currentMaterial
3754
- }];
3734
+ return groups.length > 0 ? groups : [
3735
+ {
3736
+ name: "default",
3737
+ vertices: new Float64Array(allVertices),
3738
+ normals: new Float64Array(allNormals),
3739
+ uvs: new Float64Array(allUVs),
3740
+ triangles: new Uint32Array(0),
3741
+ materialName: currentMaterial
3742
+ }
3743
+ ];
3755
3744
  }
3756
3745
  function appendTri(arr, a, b, c) {
3757
3746
  const next = new Uint32Array(arr.length + 3);
@@ -3780,11 +3769,7 @@ function parseMTL(text) {
3780
3769
  } else if (current) {
3781
3770
  const mat = materials.get(current);
3782
3771
  if (cmd === "Kd" && parts.length >= 4) {
3783
- mat.baseColor = [
3784
- parseFloat(parts[1]),
3785
- parseFloat(parts[2]),
3786
- parseFloat(parts[3])
3787
- ];
3772
+ mat.baseColor = [parseFloat(parts[1]), parseFloat(parts[2]), parseFloat(parts[3])];
3788
3773
  } else if (cmd === "map_Kd" && parts.length >= 2) {
3789
3774
  mat.textureMap = parts.slice(1).join(" ");
3790
3775
  } else if (cmd === "map_Bump" && parts.length >= 2) {
@@ -3808,17 +3793,9 @@ function parseXYZ(text) {
3808
3793
  if (line.length === 0 || line.startsWith("#")) continue;
3809
3794
  const parts = line.split(/\s+/);
3810
3795
  if (parts.length < 3) continue;
3811
- points.push(
3812
- parseFloat(parts[0]),
3813
- parseFloat(parts[1]),
3814
- parseFloat(parts[2])
3815
- );
3796
+ points.push(parseFloat(parts[0]), parseFloat(parts[1]), parseFloat(parts[2]));
3816
3797
  if (parts.length >= 6) {
3817
- colors.push(
3818
- parseInt(parts[3], 10),
3819
- parseInt(parts[4], 10),
3820
- parseInt(parts[5], 10)
3821
- );
3798
+ colors.push(parseInt(parts[3], 10), parseInt(parts[4], 10), parseInt(parts[5], 10));
3822
3799
  } else {
3823
3800
  hasColor = false;
3824
3801
  }
@@ -3909,7 +3886,9 @@ var MatterpakCompiler = class extends CompilerBase {
3909
3886
  if (e57Cloud.count > 0) {
3910
3887
  stats.pointCount += e57Cloud.count;
3911
3888
  } else {
3912
- warnings.push("E57 parsing produced zero points (header-only or unsupported format variant)");
3889
+ warnings.push(
3890
+ "E57 parsing produced zero points (header-only or unsupported format variant)"
3891
+ );
3913
3892
  }
3914
3893
  }
3915
3894
  const objects = [];
@@ -3999,15 +3978,17 @@ var MatterpakCompiler = class extends CompilerBase {
3999
3978
  stats.rooms = spatialGroups.length;
4000
3979
  } else {
4001
3980
  for (const g of objGroups) {
4002
- const traits = [{
4003
- type: "ObjectTrait",
4004
- name: "geometry",
4005
- config: {
4006
- primitive: "mesh",
4007
- vertices: Array.from(g.vertices),
4008
- indices: Array.from(g.triangles)
3981
+ const traits = [
3982
+ {
3983
+ type: "ObjectTrait",
3984
+ name: "geometry",
3985
+ config: {
3986
+ primitive: "mesh",
3987
+ vertices: Array.from(g.vertices),
3988
+ indices: Array.from(g.triangles)
3989
+ }
4009
3990
  }
4010
- }];
3991
+ ];
4011
3992
  const matName = g.materialName;
4012
3993
  if (matName && mtl.materials.has(matName)) {
4013
3994
  const mat = mtl.materials.get(matName);
@@ -4061,11 +4042,7 @@ var MatterpakCompiler = class extends CompilerBase {
4061
4042
  const x = pc.points[i * 3];
4062
4043
  const y = pc.points[i * 3 + 1];
4063
4044
  const z = pc.points[i * 3 + 2];
4064
- particles.push(
4065
- (x - cx) * scale,
4066
- (y - cy) * scale,
4067
- (z - cz) * scale
4068
- );
4045
+ particles.push((x - cx) * scale, (y - cy) * scale, (z - cz) * scale);
4069
4046
  if (pc.colors) {
4070
4047
  particleColors.push(
4071
4048
  pc.colors[i * 3] / 255,
@@ -4082,17 +4059,19 @@ var MatterpakCompiler = class extends CompilerBase {
4082
4059
  position: { x: 0, y: 0, z: 0 },
4083
4060
  scale: { x: 1, y: 1, z: 1 },
4084
4061
  rotation: { x: 0, y: 0, z: 0 },
4085
- traits: [{
4086
- type: "ObjectTrait",
4087
- name: "particleSystem",
4088
- config: {
4089
- count: particles.length / 3,
4090
- positions: particles,
4091
- ...particleColors.length > 0 ? { colors: particleColors } : {},
4092
- size: 0.02 * scale,
4093
- billboard: true
4062
+ traits: [
4063
+ {
4064
+ type: "ObjectTrait",
4065
+ name: "particleSystem",
4066
+ config: {
4067
+ count: particles.length / 3,
4068
+ positions: particles,
4069
+ ...particleColors.length > 0 ? { colors: particleColors } : {},
4070
+ size: 0.02 * scale,
4071
+ billboard: true
4072
+ }
4094
4073
  }
4095
- }]
4074
+ ]
4096
4075
  });
4097
4076
  systemIndex++;
4098
4077
  }
@@ -4156,22 +4135,24 @@ var MatterpakCompiler = class extends CompilerBase {
4156
4135
  timelines: [],
4157
4136
  audio: [],
4158
4137
  zones: [],
4159
- worlds: [{
4160
- type: "World",
4161
- id: "property_world",
4162
- name: "Imported Property",
4163
- properties: [
4164
- { type: "WorldProperty", key: "gravityX", value: 0 },
4165
- { type: "WorldProperty", key: "gravityY", value: -9.81 },
4166
- { type: "WorldProperty", key: "gravityZ", value: 0 },
4167
- { type: "WorldProperty", key: "boundsMinX", value: (minX - cx) * scale },
4168
- { type: "WorldProperty", key: "boundsMinY", value: (minY - cy) * scale },
4169
- { type: "WorldProperty", key: "boundsMinZ", value: (minZ - cz) * scale },
4170
- { type: "WorldProperty", key: "boundsMaxX", value: (maxX - cx) * scale },
4171
- { type: "WorldProperty", key: "boundsMaxY", value: (maxY - cy) * scale },
4172
- { type: "WorldProperty", key: "boundsMaxZ", value: (maxZ - cz) * scale }
4173
- ]
4174
- }],
4138
+ worlds: [
4139
+ {
4140
+ type: "World",
4141
+ id: "property_world",
4142
+ name: "Imported Property",
4143
+ properties: [
4144
+ { type: "WorldProperty", key: "gravityX", value: 0 },
4145
+ { type: "WorldProperty", key: "gravityY", value: -9.81 },
4146
+ { type: "WorldProperty", key: "gravityZ", value: 0 },
4147
+ { type: "WorldProperty", key: "boundsMinX", value: (minX - cx) * scale },
4148
+ { type: "WorldProperty", key: "boundsMinY", value: (minY - cy) * scale },
4149
+ { type: "WorldProperty", key: "boundsMinZ", value: (minZ - cz) * scale },
4150
+ { type: "WorldProperty", key: "boundsMaxX", value: (maxX - cx) * scale },
4151
+ { type: "WorldProperty", key: "boundsMaxY", value: (maxY - cy) * scale },
4152
+ { type: "WorldProperty", key: "boundsMaxZ", value: (maxZ - cz) * scale }
4153
+ ]
4154
+ }
4155
+ ],
4175
4156
  ui: {
4176
4157
  type: "UI",
4177
4158
  elements: []
@@ -4474,7 +4455,9 @@ var HoloGramMLSCompiler = class extends CompilerBase {
4474
4455
  type: "SpatialGroup",
4475
4456
  id: `room_${roomName.replace(/\s+/g, "_")}`,
4476
4457
  name: roomName,
4477
- objects: objects.filter((o) => o.id?.startsWith(`floor_${roomName.replace(/\s+/g, "_")}`) || o.id?.startsWith(`label_${roomName.replace(/\s+/g, "_")}`) || o.traits?.some((t) => t.name === "image") && Math.abs((o.position?.x ?? 0) - pos.x) < roomSize && Math.abs((o.position?.z ?? 0) - pos.z) < roomSize),
4458
+ objects: objects.filter(
4459
+ (o) => o.id?.startsWith(`floor_${roomName.replace(/\s+/g, "_")}`) || o.id?.startsWith(`label_${roomName.replace(/\s+/g, "_")}`) || o.traits?.some((t) => t.name === "image") && Math.abs((o.position?.x ?? 0) - pos.x) < roomSize && Math.abs((o.position?.z ?? 0) - pos.z) < roomSize
4460
+ ),
4478
4461
  properties: []
4479
4462
  });
4480
4463
  wpPoints.push([pos.x, 0.1, pos.z]);
@@ -4529,18 +4512,20 @@ var HoloGramMLSCompiler = class extends CompilerBase {
4529
4512
  lights,
4530
4513
  camera,
4531
4514
  waypointSets: waypoints,
4532
- worlds: [{
4533
- type: "World",
4534
- name: "gallery_world",
4535
- bounds: {
4536
- minX: -this.options.roomSpacing * 2,
4537
- minY: 0,
4538
- minZ: -this.options.roomSpacing * 2,
4539
- maxX: this.options.roomSpacing * 2,
4540
- maxY: 10,
4541
- maxZ: this.options.roomSpacing * 2
4515
+ worlds: [
4516
+ {
4517
+ type: "World",
4518
+ name: "gallery_world",
4519
+ bounds: {
4520
+ minX: -this.options.roomSpacing * 2,
4521
+ minY: 0,
4522
+ minZ: -this.options.roomSpacing * 2,
4523
+ maxX: this.options.roomSpacing * 2,
4524
+ maxY: 10,
4525
+ maxZ: this.options.roomSpacing * 2
4526
+ }
4542
4527
  }
4543
- }],
4528
+ ],
4544
4529
  templates: [],
4545
4530
  imports: [],
4546
4531
  transitions: [],
@@ -5064,6 +5049,185 @@ var AndroidARCorePlugin = class {
5064
5049
  };
5065
5050
  platformPluginRegistry.register(new AndroidARCorePlugin());
5066
5051
 
5067
- export { AgentTrustLedger, AlphaTracker, AndroidARCorePlugin, DEFAULT_DISPATCH_LATENCY_OPERATION, DialectRegistry, DispatchPolicy, DispatchTier, FlatSemanticCompiler, HoloGramMLSCompiler, MCPConfigCompiler, MatterpakCompiler, NextJSAPICompiler, NextJSCompiler, NodeServiceCompiler, SCMCompiler, WebGPUWGSLPlugin, byzantineResilientMerge, compileAllToNextJSAPI, compileToNextJSAPI, createDefaultDispatchLatencyScenarios, createHoloGramMLSCompiler, createMatterpakCompiler, createTier3CpuDirectOutput, detectWasmRuntime, ensureDialectsBooted, formatDispatchLatencyBenchmarkReport, generateTraitForTarget, getAllManifests, getTraitInfo, listTraitsForTarget, manifestFromPlugin, mergeSocialCausalModels, platformPluginRegistry, queryTrait, recommendDispatchPolicyDefaults, registerBuiltinDialects, runCompilerWasmSnnEmulator, runDispatchPolicyLatencyBenchmark, traitExists };
5052
+ // src/compiler/sovereign-targets.ts
5053
+ var SOVEREIGN_TARGETS = [
5054
+ "webgpu",
5055
+ // WebGPUCompiler → WGSL compute+render shaders on our own WebGPU device (WebGPURenderer)
5056
+ "nir",
5057
+ // NIRCompiler → our Neuromorphic IR; NIRToWGSLCompiler runs it on our WebGPU path
5058
+ "native-2d",
5059
+ // Native2DCompiler → flat DOM/Tailwind/React UI; no 3D/third-party runtime
5060
+ "canvas2d-game",
5061
+ // Canvas2DGameCompiler → self-contained canvas game runtime (loop/physics/WebAudio)
5062
+ "tsl",
5063
+ // Trait Shader Language — our trait-to-shader codegen
5064
+ "vrr",
5065
+ // custom VR Rendering path (sovereign, not a vendor SDK)
5066
+ "wasm"
5067
+ // compiler-wasm Rust front-end → our own WASM artifact
5068
+ ];
5069
+ var BRIDGE_TARGETS = [
5070
+ "urdf",
5071
+ "sdf",
5072
+ "unity",
5073
+ "unreal",
5074
+ "godot",
5075
+ "vrchat",
5076
+ "openxr",
5077
+ "android",
5078
+ "android-xr",
5079
+ "ios",
5080
+ "visionos",
5081
+ "ar",
5082
+ "babylon",
5083
+ "r3f",
5084
+ "playcanvas",
5085
+ "usd",
5086
+ "usdz",
5087
+ "dtdl",
5088
+ "a2a-agent-card",
5089
+ "openxr-spatial-entities",
5090
+ "phone-sleeve-vr",
5091
+ "3dgs"
5092
+ ];
5093
+ var NATIVE_COMPILE_MODES = [
5094
+ "state",
5095
+ // StateCompiler → reactive state-shape extraction
5096
+ "trait-composition",
5097
+ // native trait composition
5098
+ "incremental",
5099
+ // incremental compilation mode
5100
+ "multi-layer",
5101
+ // multi-layer orchestrator (VR layer bridges to Babylon)
5102
+ "code-editor"
5103
+ // CodeEditorCompiler → CM6 config JSON bundle (Studio native editor)
5104
+ ];
5105
+ var SOVEREIGN_SET = new Set(SOVEREIGN_TARGETS);
5106
+ var BRIDGE_SET = new Set(BRIDGE_TARGETS);
5107
+ function isSovereignTarget(target) {
5108
+ return SOVEREIGN_SET.has(target);
5109
+ }
5110
+ function isBridgeTarget(target) {
5111
+ return BRIDGE_SET.has(target);
5112
+ }
5113
+ function targetSovereignty(target) {
5114
+ if (SOVEREIGN_SET.has(target)) return "sovereign";
5115
+ if (BRIDGE_SET.has(target)) return "bridge";
5116
+ return "mode";
5117
+ }
5118
+ var SOVEREIGN_ENGINES = [
5119
+ {
5120
+ id: "webgpu-renderer",
5121
+ name: "WebGPURenderer",
5122
+ file: "packages/engine/src/rendering/webgpu/WebGPURenderer.ts",
5123
+ kind: "renderer",
5124
+ maturity: "real",
5125
+ tests: false,
5126
+ promoted: true,
5127
+ note: "Sovereign GPU renderer \u2014 owns device/pipelines/shaders/buffers + WebXR; no Three.js/Babylon. Wired into preview/deploy path (2026-06-08): compile_to_webgpu returns previewHtml, POST /api/compile/webgpu-preview serves sovereign HTML, /scene/:id?renderer=webgpu and /embed/:id?renderer=webgpu compile+serve on the native path."
5128
+ },
5129
+ {
5130
+ id: "spatial-engine",
5131
+ name: "SpatialEngine",
5132
+ file: "packages/engine/src/SpatialEngine.ts",
5133
+ kind: "engine",
5134
+ maturity: "real",
5135
+ tests: true,
5136
+ promoted: false,
5137
+ note: "Native game loop: input\u2192net\u2192physics\u2192anim\u2192cull\u2192render. Render stage can drive WebGPURenderer."
5138
+ },
5139
+ {
5140
+ id: "snn-webgpu",
5141
+ name: "snn-webgpu",
5142
+ file: "packages/snn-webgpu/src",
5143
+ kind: "runtime",
5144
+ maturity: "real",
5145
+ tests: true,
5146
+ promoted: false,
5147
+ note: "Sovereign GPU spiking-neural-net runtime (raw WGSL). Best-tested native GPU stack; paper-grade (Paper 2)."
5148
+ },
5149
+ {
5150
+ id: "nir-to-wgsl",
5151
+ name: "NIRToWGSLCompiler",
5152
+ file: "packages/core/src/compiler/NIRToWGSLCompiler.ts",
5153
+ kind: "compiler",
5154
+ maturity: "real",
5155
+ tests: true,
5156
+ promoted: false,
5157
+ note: "Runs neuromorphic IR (LIF/CubaLIF ODEs, Euler/RK4) on our own WebGPU path. Most substantial native compiler."
5158
+ },
5159
+ {
5160
+ id: "holo-vm",
5161
+ name: "holo-vm",
5162
+ file: "packages/holo-vm/src/executor.ts",
5163
+ kind: "runtime",
5164
+ maturity: "real",
5165
+ tests: true,
5166
+ promoted: false,
5167
+ note: "Sovereign bytecode execution VM."
5168
+ },
5169
+ {
5170
+ id: "compiler-wasm",
5171
+ name: "compiler-wasm",
5172
+ file: "packages/compiler-wasm/src",
5173
+ kind: "frontend",
5174
+ maturity: "real",
5175
+ tests: true,
5176
+ promoted: false,
5177
+ note: "Sovereign Rust lexer/parser/AST front-end compiled to WASM."
5178
+ },
5179
+ {
5180
+ id: "native-2d",
5181
+ name: "Native2DCompiler",
5182
+ file: "packages/core/src/compiler/Native2DCompiler.ts",
5183
+ kind: "compiler",
5184
+ maturity: "real",
5185
+ tests: true,
5186
+ promoted: false,
5187
+ note: 'HS UI traits \u2192 flat DOM/Tailwind/React. The D.080 HS-native console base. Emits an "@generated by HoloScript" header.'
5188
+ },
5189
+ {
5190
+ id: "canvas2d-game",
5191
+ name: "Canvas2DGameCompiler",
5192
+ file: "packages/core/src/compiler/Canvas2DGameCompiler.ts",
5193
+ kind: "compiler",
5194
+ maturity: "real",
5195
+ tests: true,
5196
+ promoted: false,
5197
+ note: 'I.017 "2D-game compiler COMPLETE". Trait\u2192self-contained offline HTML canvas game.'
5198
+ },
5199
+ {
5200
+ id: "webgpu-compiler",
5201
+ name: "WebGPUCompiler",
5202
+ file: "packages/core/src/compiler/WebGPUCompiler.ts",
5203
+ kind: "compiler",
5204
+ maturity: "real",
5205
+ tests: true,
5206
+ promoted: false,
5207
+ note: "HS AST \u2192 WGSL compute+render + WebGPU init. Native GPU codegen."
5208
+ },
5209
+ {
5210
+ id: "nir-compiler",
5211
+ name: "NIRCompiler",
5212
+ file: "packages/core/src/compiler/NIRCompiler.ts",
5213
+ kind: "compiler",
5214
+ maturity: "real",
5215
+ tests: true,
5216
+ promoted: false,
5217
+ note: "HS \u2192 Neuromorphic IR graph (Loihi 2 / SpiNNaker 2 / SynSense interop). Sovereign IR."
5218
+ },
5219
+ {
5220
+ id: "sdf-raymarch",
5221
+ name: "SDFRayMarchCompiler",
5222
+ file: "packages/core/src/compiler/SDFRayMarchCompiler.ts",
5223
+ kind: "compiler",
5224
+ maturity: "real",
5225
+ tests: true,
5226
+ promoted: false,
5227
+ note: "Signed-distance-field \u2192 raymarch WGSL/GLSL. Native GPU renderer codegen."
5228
+ }
5229
+ ];
5230
+
5231
+ export { AgentTrustLedger, AlphaTracker, AndroidARCorePlugin, BRIDGE_TARGETS, DEFAULT_DISPATCH_LATENCY_OPERATION, DialectRegistry, DispatchPolicy, DispatchTier, FlatSemanticCompiler, HoloGramMLSCompiler, MCPConfigCompiler, MatterpakCompiler, NATIVE_COMPILE_MODES, NextJSAPICompiler, NextJSCompiler, NodeServiceCompiler, SCMCompiler, SOVEREIGN_ENGINES, SOVEREIGN_TARGETS, WebGPUWGSLPlugin, byzantineResilientMerge, compileAllToNextJSAPI, compileToNextJSAPI, createDefaultDispatchLatencyScenarios, createHoloGramMLSCompiler, createMatterpakCompiler, createTier3CpuDirectOutput, detectWasmRuntime, ensureDialectsBooted, formatDispatchLatencyBenchmarkReport, generateTraitForTarget, getAllManifests, getTraitInfo, isBridgeTarget, isSovereignTarget, listTraitsForTarget, manifestFromPlugin, mergeSocialCausalModels, platformPluginRegistry, queryTrait, recommendDispatchPolicyDefaults, registerBuiltinDialects, runCompilerWasmSnnEmulator, runDispatchPolicyLatencyBenchmark, targetSovereignty, traitExists };
5068
5232
  //# sourceMappingURL=index.js.map
5069
5233
  //# sourceMappingURL=index.js.map