@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
package/README.md CHANGED
@@ -53,41 +53,41 @@ const output = compiler.compile(composition.ast);
53
53
 
54
54
  ## Compilers (30+ implementations; verify live targets via health + ExportTarget enum)
55
55
 
56
- | Compiler | Target | Output |
57
- | ------------------------ | ------------------------- | ----------------- |
58
- | `UnityCompiler` | Unity Engine | C# + Prefab |
59
- | `UnrealCompiler` | Unreal Engine 5 | C++ + Blueprint |
60
- | `GodotCompiler` | Godot 4 | GDScript + .tscn |
61
- | `R3FCompiler` | React Three Fiber | TSX + hooks |
62
- | `BabylonCompiler` | Babylon.js | TypeScript |
63
- | `PlayCanvasCompiler` | PlayCanvas | JavaScript |
64
- | `OpenXRCompiler` | OpenXR Standard | C++ |
65
- | `VRChatCompiler` | VRChat | UdonSharp C# |
66
- | `VisionOSCompiler` | Apple Vision Pro | Swift |
67
- | `AndroidXRCompiler` | Android XR | Kotlin |
68
- | `IOSCompiler` | iOS / ARKit | Swift |
69
- | `AndroidCompiler` | Android / ARCore | Kotlin |
70
- | `ARCompiler` | Generic AR | TypeScript |
71
- | `WASMCompiler` | WebAssembly | .wasm + .js |
72
- | `WebGPUCompiler` | WebGPU Compute | WGSL + TypeScript |
73
- | `URDFCompiler` | Robotics (URDF) | .urdf XML |
74
- | `SDFCompiler` | Gazebo SDF simulation XML | .sdf XML |
75
- | `DTDLCompiler` | Digital Twins | JSON-LD |
76
- | `StateCompiler` | Reactive State | JSON |
77
- | `A2AAgentCardCompiler` | A2A Agent Cards | JSON |
78
- | `NIRCompiler` | Neuromorphic IR | JSON |
79
- | `VRRCompiler` | Variable Rate Rendering | TypeScript |
80
- | `Native2DCompiler` | 2D HTML/CSS | TSX + HTML |
81
- | `NodeServiceCompiler` | Node.js Services | TypeScript |
82
- | `AIGlassesCompiler` | AI Glasses | Kotlin Compose |
83
- | `GLTFPipeline` | glTF | .glb / .gltf |
84
- | `NFTMarketplaceCompiler` | NFT Marketplace | Solidity |
85
- | `USDPhysicsCompiler` | USD Physics | .usda |
56
+ | Compiler | Target | Output |
57
+ | ------------------------ | ------------------------- | ------------------ |
58
+ | `UnityCompiler` | Unity Engine | C# + Prefab |
59
+ | `UnrealCompiler` | Unreal Engine 5 | C++ + Blueprint |
60
+ | `GodotCompiler` | Godot 4 | GDScript + .tscn |
61
+ | `R3FCompiler` | React Three Fiber | TSX + hooks |
62
+ | `BabylonCompiler` | Babylon.js | TypeScript |
63
+ | `PlayCanvasCompiler` | PlayCanvas | JavaScript |
64
+ | `OpenXRCompiler` | OpenXR Standard | C++ |
65
+ | `VRChatCompiler` | VRChat | UdonSharp C# |
66
+ | `VisionOSCompiler` | Apple Vision Pro | Swift |
67
+ | `AndroidXRCompiler` | Android XR | Kotlin |
68
+ | `IOSCompiler` | iOS / ARKit | Swift |
69
+ | `AndroidCompiler` | Android / ARCore | Kotlin |
70
+ | `ARCompiler` | Generic AR | TypeScript |
71
+ | `WASMCompiler` | WebAssembly | .wasm + .js |
72
+ | `WebGPUCompiler` | WebGPU Compute | WGSL + TypeScript |
73
+ | `URDFCompiler` | Robotics (URDF) | .urdf XML |
74
+ | `SDFCompiler` | Gazebo SDF simulation XML | .sdf XML |
75
+ | `DTDLCompiler` | Digital Twins | JSON-LD |
76
+ | `StateCompiler` | Reactive State | JSON |
77
+ | `A2AAgentCardCompiler` | A2A Agent Cards | JSON |
78
+ | `NIRCompiler` | Neuromorphic IR | JSON |
79
+ | `VRRCompiler` | Variable Rate Rendering | TypeScript |
80
+ | `Native2DCompiler` | 2D HTML/CSS | TSX + HTML |
81
+ | `NodeServiceCompiler` | Node.js Services | TypeScript |
82
+ | `AIGlassesCompiler` | AI Glasses | Kotlin Compose |
83
+ | `GLTFPipeline` | glTF | .glb / .gltf |
84
+ | `NFTMarketplaceCompiler` | NFT Marketplace | Solidity |
85
+ | `USDPhysicsCompiler` | USD Physics | .usda |
86
86
  | `TSLCompiler` | Trait Shader Language | WGSL + TS pipeline |
87
- | `SCMCompiler` | Structural Causal Model | JSON DAG |
88
- | `QuiltCompiler` | Looking Glass Hologram | Multi-view PNG |
89
- | `MVHEVCCompiler` | MV-HEVC Hologram | Swift + .mov |
90
- | `FlatSemanticCompiler` | Semantic 2D Layout | TSX |
87
+ | `SCMCompiler` | Structural Causal Model | JSON DAG |
88
+ | `QuiltCompiler` | Looking Glass Hologram | Multi-view PNG |
89
+ | `MVHEVCCompiler` | MV-HEVC Hologram | Swift + .mov |
90
+ | `FlatSemanticCompiler` | Semantic 2D Layout | TSX |
91
91
 
92
92
  ## Trait System
93
93
 
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
2
+ 'use strict';
3
3
  require('../dist/index.cjs');
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ var chunkZPZAVHXL_cjs = require('./chunk-ZPZAVHXL.cjs');
4
+ require('./chunk-FT6TDR2O.cjs');
5
+ require('./chunk-KAIVDEIG.cjs');
6
+ require('./chunk-UOIGFQXC.cjs');
7
+ require('./chunk-56VOWURB.cjs');
8
+ require('./chunk-UVFI7XIR.cjs');
9
+ require('./chunk-OIQYIIO3.cjs');
10
+ require('./chunk-EBS32AJI.cjs');
11
+ require('./chunk-GH6C2QGW.cjs');
12
+ require('./chunk-LODTHGST.cjs');
13
+ require('./chunk-5FSKKMR7.cjs');
14
+ require('./chunk-M7K4LE66.cjs');
15
+ require('./chunk-VW5CRJBE.cjs');
16
+ require('./chunk-E7JP3BS3.cjs');
17
+ require('./chunk-HCCQLAA4.cjs');
18
+
19
+
20
+
21
+ Object.defineProperty(exports, "GLTFPipeline", {
22
+ enumerable: true,
23
+ get: function () { return chunkZPZAVHXL_cjs.GLTFPipeline; }
24
+ });
25
+ Object.defineProperty(exports, "createGLTFPipeline", {
26
+ enumerable: true,
27
+ get: function () { return chunkZPZAVHXL_cjs.createGLTFPipeline; }
28
+ });
29
+ Object.defineProperty(exports, "generateScaleNormalMap", {
30
+ enumerable: true,
31
+ get: function () { return chunkZPZAVHXL_cjs.generateScaleNormalMap; }
32
+ });
33
+ Object.defineProperty(exports, "generateScaleTexture", {
34
+ enumerable: true,
35
+ get: function () { return chunkZPZAVHXL_cjs.generateScaleTexture; }
36
+ });
37
+ //# sourceMappingURL=GLTFPipeline-3EJLL3TS.cjs.map
38
+ //# sourceMappingURL=GLTFPipeline-3EJLL3TS.cjs.map
@@ -0,0 +1,17 @@
1
+ export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture } from './chunk-SXOSDZD6.js';
2
+ import './chunk-UDE4OZMR.js';
3
+ import './chunk-MSYSQ2AJ.js';
4
+ import './chunk-XT6JY5W5.js';
5
+ import './chunk-B4EKV6HQ.js';
6
+ import './chunk-SLHLXUMO.js';
7
+ import './chunk-4C57PR42.js';
8
+ import './chunk-GW3LKD5C.js';
9
+ import './chunk-ZA34AN3R.js';
10
+ import './chunk-C7ZBSV2Q.js';
11
+ import './chunk-THCK6ECW.js';
12
+ import './chunk-2Y3V22SG.js';
13
+ import './chunk-33YHE7HX.js';
14
+ import './chunk-VVKVQZI6.js';
15
+ import './chunk-OL46QLBJ.js';
16
+ //# sourceMappingURL=GLTFPipeline-3OWJV2VK.js.map
17
+ //# sourceMappingURL=GLTFPipeline-3OWJV2VK.js.map
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkGMP623FG_cjs = require('./chunk-GMP623FG.cjs');
6
- var chunkJIYN45TV_cjs = require('./chunk-JIYN45TV.cjs');
5
+ var chunkKQU64CIX_cjs = require('./chunk-KQU64CIX.cjs');
6
+ var chunkGVFJ6T4S_cjs = require('./chunk-GVFJ6T4S.cjs');
7
7
  require('./chunk-ILRBGFVD.cjs');
8
8
  require('./chunk-E7JP3BS3.cjs');
9
9
  require('./chunk-HCCQLAA4.cjs');
@@ -11,7 +11,7 @@ require('./chunk-HCCQLAA4.cjs');
11
11
  // src/HoloScriptPlusParser.ts
12
12
  var HoloScriptPlusParser = class {
13
13
  constructor() {
14
- this.baseParser = new chunkJIYN45TV_cjs.HoloScriptCodeParser();
14
+ this.baseParser = new chunkGVFJ6T4S_cjs.HoloScriptCodeParser();
15
15
  }
16
16
  /**
17
17
  * Parse HoloScript+ code with trait annotations
@@ -348,7 +348,7 @@ var HoloScriptPlusParser = class {
348
348
  */
349
349
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- dynamic material config from parsed AST
350
350
  createMaterialTrait(config) {
351
- const material = new chunkGMP623FG_cjs.MaterialTrait({
351
+ const material = new chunkKQU64CIX_cjs.MaterialTrait({
352
352
  type: config.type || "pbr",
353
353
  pbr: config.pbr
354
354
  });
@@ -374,11 +374,11 @@ var HoloScriptPlusParser = class {
374
374
  createLightingTrait(config) {
375
375
  let lighting;
376
376
  if (config.preset) {
377
- const presetFactory = chunkGMP623FG_cjs.LIGHTING_PRESETS[config.preset];
377
+ const presetFactory = chunkKQU64CIX_cjs.LIGHTING_PRESETS[config.preset];
378
378
  const presetConfig = presetFactory ? presetFactory() : void 0;
379
- lighting = new chunkGMP623FG_cjs.LightingTrait(presetConfig);
379
+ lighting = new chunkKQU64CIX_cjs.LightingTrait(presetConfig);
380
380
  } else {
381
- lighting = new chunkGMP623FG_cjs.LightingTrait();
381
+ lighting = new chunkKQU64CIX_cjs.LightingTrait();
382
382
  }
383
383
  if (config.globalIllumination) {
384
384
  lighting.setGlobalIllumination(config.globalIllumination);
@@ -394,7 +394,7 @@ var HoloScriptPlusParser = class {
394
394
  * Create RenderingTrait from config
395
395
  */
396
396
  createRenderingTrait(config) {
397
- const rendering = new chunkGMP623FG_cjs.RenderingTrait();
397
+ const rendering = new chunkKQU64CIX_cjs.RenderingTrait();
398
398
  if (config.quality) {
399
399
  rendering.applyQualityPreset(config.quality);
400
400
  }
@@ -429,9 +429,9 @@ var HoloScriptPlusParser = class {
429
429
  * Create ShaderTrait from config
430
430
  */
431
431
  createShaderTrait(config) {
432
- if (config.preset && chunkGMP623FG_cjs.SHADER_PRESETS[config.preset]) {
433
- const preset = chunkGMP623FG_cjs.SHADER_PRESETS[config.preset];
434
- return new chunkGMP623FG_cjs.ShaderTrait(preset);
432
+ if (config.preset && chunkKQU64CIX_cjs.SHADER_PRESETS[config.preset]) {
433
+ const preset = chunkKQU64CIX_cjs.SHADER_PRESETS[config.preset];
434
+ return new chunkKQU64CIX_cjs.ShaderTrait(preset);
435
435
  }
436
436
  const shaderConfig = {
437
437
  source: {
@@ -446,7 +446,7 @@ var HoloScriptPlusParser = class {
446
446
  depthWrite: config.depthWrite,
447
447
  cullFace: config.cullFace
448
448
  };
449
- return new chunkGMP623FG_cjs.ShaderTrait(shaderConfig);
449
+ return new chunkKQU64CIX_cjs.ShaderTrait(shaderConfig);
450
450
  }
451
451
  /**
452
452
  * Validate shader trait configuration
@@ -457,7 +457,7 @@ var HoloScriptPlusParser = class {
457
457
  if (!config.preset && !config.vertex && !config.fragment) {
458
458
  errors.push("shader must have either preset or vertex/fragment code");
459
459
  }
460
- if (config.preset && !chunkGMP623FG_cjs.SHADER_PRESETS[config.preset]) {
460
+ if (config.preset && !chunkKQU64CIX_cjs.SHADER_PRESETS[config.preset]) {
461
461
  errors.push(
462
462
  `shader.preset "${config.preset}" is not a valid preset. Available: hologram, forceField, dissolve`
463
463
  );
@@ -694,5 +694,5 @@ var HoloScriptPlusParser_default = HoloScriptPlusParser;
694
694
 
695
695
  exports.HoloScriptPlusParser = HoloScriptPlusParser;
696
696
  exports.default = HoloScriptPlusParser_default;
697
- //# sourceMappingURL=HoloScriptPlusParser-A2W7OCN2.cjs.map
698
- //# sourceMappingURL=HoloScriptPlusParser-A2W7OCN2.cjs.map
697
+ //# sourceMappingURL=HoloScriptPlusParser-ADWRY5OS.cjs.map
698
+ //# sourceMappingURL=HoloScriptPlusParser-ADWRY5OS.cjs.map
@@ -1,5 +1,5 @@
1
- import { MaterialTrait, LIGHTING_PRESETS, LightingTrait, RenderingTrait, SHADER_PRESETS, ShaderTrait } from './chunk-QPOQ7VPI.js';
2
- import { HoloScriptCodeParser } from './chunk-URG2SJLK.js';
1
+ import { MaterialTrait, LIGHTING_PRESETS, LightingTrait, RenderingTrait, SHADER_PRESETS, ShaderTrait } from './chunk-GTA4Q3A3.js';
2
+ import { HoloScriptCodeParser } from './chunk-MDR235RZ.js';
3
3
  import './chunk-PHENW4MQ.js';
4
4
  import './chunk-VVKVQZI6.js';
5
5
  import './chunk-OL46QLBJ.js';
@@ -689,5 +689,5 @@ var HoloScriptPlusParser = class {
689
689
  var HoloScriptPlusParser_default = HoloScriptPlusParser;
690
690
 
691
691
  export { HoloScriptPlusParser, HoloScriptPlusParser_default as default };
692
- //# sourceMappingURL=HoloScriptPlusParser-7FBIFUFC.js.map
693
- //# sourceMappingURL=HoloScriptPlusParser-7FBIFUFC.js.map
692
+ //# sourceMappingURL=HoloScriptPlusParser-JLJDXHSC.js.map
693
+ //# sourceMappingURL=HoloScriptPlusParser-JLJDXHSC.js.map
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ var chunkKOUAQL2B_cjs = require('./chunk-KOUAQL2B.cjs');
4
+ require('./chunk-6PRZIHGL.cjs');
5
+ require('./chunk-3SKLAUDD.cjs');
6
+ require('./chunk-X3GJPRVK.cjs');
7
+ require('./chunk-DTGBOSEM.cjs');
8
+ require('./chunk-YKGPCZEE.cjs');
9
+ require('./chunk-6EX3I5P4.cjs');
10
+ require('./chunk-HCCQLAA4.cjs');
11
+
12
+
13
+
14
+ Object.defineProperty(exports, "HoloScriptPlusParser", {
15
+ enumerable: true,
16
+ get: function () { return chunkKOUAQL2B_cjs.HoloScriptPlusParser; }
17
+ });
18
+ Object.defineProperty(exports, "createParser", {
19
+ enumerable: true,
20
+ get: function () { return chunkKOUAQL2B_cjs.createParser; }
21
+ });
22
+ Object.defineProperty(exports, "parse", {
23
+ enumerable: true,
24
+ get: function () { return chunkKOUAQL2B_cjs.parse; }
25
+ });
26
+ //# sourceMappingURL=HoloScriptPlusParser-QCGFPWIL.cjs.map
27
+ //# sourceMappingURL=HoloScriptPlusParser-QCGFPWIL.cjs.map
@@ -1,10 +1,10 @@
1
- export { HoloScriptPlusParser, createParser, parse } from './chunk-YIMN575O.js';
2
- import './chunk-4N4SXXWF.js';
3
- import './chunk-2BSMSUCE.js';
1
+ export { HoloScriptPlusParser, createParser, parse } from './chunk-FNHJRI32.js';
2
+ import './chunk-VSACG2AR.js';
3
+ import './chunk-GASCWJK5.js';
4
4
  import './chunk-WRNEH5MO.js';
5
5
  import './chunk-WKX5AMOY.js';
6
6
  import './chunk-SIEXCILW.js';
7
7
  import './chunk-CBJY23VL.js';
8
8
  import './chunk-OL46QLBJ.js';
9
- //# sourceMappingURL=HoloScriptPlusParser-F2Z56FJR.js.map
10
- //# sourceMappingURL=HoloScriptPlusParser-F2Z56FJR.js.map
9
+ //# sourceMappingURL=HoloScriptPlusParser-WENAFEFV.js.map
10
+ //# sourceMappingURL=HoloScriptPlusParser-WENAFEFV.js.map
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ var chunkEDPYCLRC_cjs = require('./chunk-EDPYCLRC.cjs');
4
+ require('./chunk-GJNCFRJU.cjs');
5
+ require('./chunk-YDPEHCCI.cjs');
6
+ require('./chunk-GVFJ6T4S.cjs');
7
+ require('./chunk-X2AVEAZM.cjs');
8
+ require('./chunk-ILRBGFVD.cjs');
9
+ require('./chunk-E7JP3BS3.cjs');
10
+ require('./chunk-HCCQLAA4.cjs');
11
+
12
+
13
+
14
+ Object.defineProperty(exports, "HoloScriptRuntime", {
15
+ enumerable: true,
16
+ get: function () { return chunkEDPYCLRC_cjs.HoloScriptRuntime; }
17
+ });
18
+ //# sourceMappingURL=HoloScriptRuntime-GGRVEU4T.cjs.map
19
+ //# sourceMappingURL=HoloScriptRuntime-GGRVEU4T.cjs.map
@@ -0,0 +1,10 @@
1
+ export { HoloScriptRuntime } from './chunk-PXNZ6TME.js';
2
+ import './chunk-XL6INWKT.js';
3
+ import './chunk-IELX2OKI.js';
4
+ import './chunk-MDR235RZ.js';
5
+ import './chunk-TVANHNJ7.js';
6
+ import './chunk-PHENW4MQ.js';
7
+ import './chunk-VVKVQZI6.js';
8
+ import './chunk-OL46QLBJ.js';
9
+ //# sourceMappingURL=HoloScriptRuntime-GJK6VJPH.js.map
10
+ //# sourceMappingURL=HoloScriptRuntime-GJK6VJPH.js.map
@@ -206,7 +206,10 @@ var _USDZExporter = class _USDZExporter {
206
206
  normalTexture: mat.normalTexture ? this.mapGLTFTextureRef(mat.normalTexture.index, mat.normalTexture.texCoord || 0) : void 0,
207
207
  occlusionTexture: mat.occlusionTexture ? this.mapGLTFTextureRef(mat.occlusionTexture.index, mat.occlusionTexture.texCoord || 0) : void 0,
208
208
  emissiveTexture: mat.emissiveTexture ? this.mapGLTFTextureRef(mat.emissiveTexture.index, mat.emissiveTexture.texCoord || 0) : void 0,
209
- metallicRoughnessTexture: pbr?.metallicRoughnessTexture ? this.mapGLTFTextureRef(pbr.metallicRoughnessTexture.index, pbr.metallicRoughnessTexture.texCoord || 0) : void 0
209
+ metallicRoughnessTexture: pbr?.metallicRoughnessTexture ? this.mapGLTFTextureRef(
210
+ pbr.metallicRoughnessTexture.index,
211
+ pbr.metallicRoughnessTexture.texCoord || 0
212
+ ) : void 0
210
213
  };
211
214
  });
212
215
  const nodeIdMap = /* @__PURE__ */ new Map();
@@ -349,7 +352,15 @@ var _USDZExporter = class _USDZExporter {
349
352
  return void 0;
350
353
  }
351
354
  mapGLTFPrimitiveMode(mode) {
352
- const modes = ["points", "lines", "lineLoop", "lineStrip", "triangles", "triangleStrip", "triangleFan"];
355
+ const modes = [
356
+ "points",
357
+ "lines",
358
+ "lineLoop",
359
+ "lineStrip",
360
+ "triangles",
361
+ "triangleStrip",
362
+ "triangleFan"
363
+ ];
353
364
  return modes[mode ?? 4] || "triangles";
354
365
  }
355
366
  mapGLTFTextureRef(index, uvChannel) {
@@ -1033,5 +1044,5 @@ _USDZExporter.DEFAULT_OPTIONS = {
1033
1044
  var USDZExporter = _USDZExporter;
1034
1045
 
1035
1046
  exports.USDZExporter = USDZExporter;
1036
- //# sourceMappingURL=USDZExporter-3FWJ25JI.cjs.map
1037
- //# sourceMappingURL=USDZExporter-3FWJ25JI.cjs.map
1047
+ //# sourceMappingURL=USDZExporter-AUHZODOF.cjs.map
1048
+ //# sourceMappingURL=USDZExporter-AUHZODOF.cjs.map
@@ -204,7 +204,10 @@ var _USDZExporter = class _USDZExporter {
204
204
  normalTexture: mat.normalTexture ? this.mapGLTFTextureRef(mat.normalTexture.index, mat.normalTexture.texCoord || 0) : void 0,
205
205
  occlusionTexture: mat.occlusionTexture ? this.mapGLTFTextureRef(mat.occlusionTexture.index, mat.occlusionTexture.texCoord || 0) : void 0,
206
206
  emissiveTexture: mat.emissiveTexture ? this.mapGLTFTextureRef(mat.emissiveTexture.index, mat.emissiveTexture.texCoord || 0) : void 0,
207
- metallicRoughnessTexture: pbr?.metallicRoughnessTexture ? this.mapGLTFTextureRef(pbr.metallicRoughnessTexture.index, pbr.metallicRoughnessTexture.texCoord || 0) : void 0
207
+ metallicRoughnessTexture: pbr?.metallicRoughnessTexture ? this.mapGLTFTextureRef(
208
+ pbr.metallicRoughnessTexture.index,
209
+ pbr.metallicRoughnessTexture.texCoord || 0
210
+ ) : void 0
208
211
  };
209
212
  });
210
213
  const nodeIdMap = /* @__PURE__ */ new Map();
@@ -347,7 +350,15 @@ var _USDZExporter = class _USDZExporter {
347
350
  return void 0;
348
351
  }
349
352
  mapGLTFPrimitiveMode(mode) {
350
- const modes = ["points", "lines", "lineLoop", "lineStrip", "triangles", "triangleStrip", "triangleFan"];
353
+ const modes = [
354
+ "points",
355
+ "lines",
356
+ "lineLoop",
357
+ "lineStrip",
358
+ "triangles",
359
+ "triangleStrip",
360
+ "triangleFan"
361
+ ];
351
362
  return modes[mode ?? 4] || "triangles";
352
363
  }
353
364
  mapGLTFTextureRef(index, uvChannel) {
@@ -1031,5 +1042,5 @@ _USDZExporter.DEFAULT_OPTIONS = {
1031
1042
  var USDZExporter = _USDZExporter;
1032
1043
 
1033
1044
  export { USDZExporter };
1034
- //# sourceMappingURL=USDZExporter-D2HQLQYK.js.map
1035
- //# sourceMappingURL=USDZExporter-D2HQLQYK.js.map
1045
+ //# sourceMappingURL=USDZExporter-GXB4AUSG.js.map
1046
+ //# sourceMappingURL=USDZExporter-GXB4AUSG.js.map
@@ -1,4 +1,4 @@
1
- import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
1
+ import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
2
2
  import { ANSCapabilityPath } from '@holoscript/core-types/ans';
3
3
 
4
4
  // src/compiler/AgentInferenceExportTarget.ts
@@ -975,5 +975,5 @@ function createPythonAgentInferenceCompiler(options) {
975
975
  var AgentInferenceExportTarget_default = AgentInferenceCompiler;
976
976
 
977
977
  export { AgentInferenceCompiler, AgentInferenceExportTarget_default, createAgentInferenceCompiler, createPythonAgentInferenceCompiler };
978
- //# sourceMappingURL=chunk-V6MKC2FZ.js.map
979
- //# sourceMappingURL=chunk-V6MKC2FZ.js.map
978
+ //# sourceMappingURL=chunk-22Q5A6RV.js.map
979
+ //# sourceMappingURL=chunk-22Q5A6RV.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
4
- var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
3
+ var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
4
+ var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
5
5
  var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
6
6
  var ans = require('@holoscript/core-types/ans');
7
7
 
@@ -205,9 +205,9 @@ function generateControllersYaml(robotName, jointNames, options) {
205
205
  exports.URDFCompiler = void 0; exports.URDFCompiler_default = void 0;
206
206
  var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
207
207
  "src/compiler/URDFCompiler.ts"() {
208
- chunkKKP7JKN4_cjs.init_CompilerBase();
209
- chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
210
- exports.URDFCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
208
+ chunkLODTHGST_cjs.init_CompilerBase();
209
+ chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
210
+ exports.URDFCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
211
211
  constructor(options = {}) {
212
212
  super();
213
213
  this.compilerName = "URDFCompiler";
@@ -266,8 +266,16 @@ var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
266
266
  const trait = obj.traits?.find((t) => this.getTraitName(t) === traitName);
267
267
  if (!trait) return void 0;
268
268
  if (typeof trait === "string") return {};
269
- const { name: _name, ...config } = trait;
270
- return config;
269
+ const traitObj = trait;
270
+ if ("config" in traitObj && typeof traitObj.config === "object") {
271
+ return traitObj.config;
272
+ }
273
+ const { name: _name, ...rest } = traitObj;
274
+ if (rest.type === "ObjectTrait") {
275
+ const { type: _type, ...config } = rest;
276
+ return config;
277
+ }
278
+ return rest;
271
279
  }
272
280
  /** Map HoloScript joint types to URDF joint types */
273
281
  mapJointType(holoType) {
@@ -409,6 +417,10 @@ var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
409
417
  }
410
418
  /** Extract mass from physics property or trait */
411
419
  extractMass(obj) {
420
+ const physicsTraitConfig = this.getTraitConfig(obj, "physics");
421
+ if (physicsTraitConfig?.mass !== void 0 && typeof physicsTraitConfig.mass === "number") {
422
+ return physicsTraitConfig.mass;
423
+ }
412
424
  const physicsProp = obj.properties.find((p) => p.key === "physics");
413
425
  if (physicsProp && typeof physicsProp.value === "object" && !Array.isArray(physicsProp.value)) {
414
426
  const massEntry = physicsProp.value.mass;
@@ -560,11 +572,11 @@ var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
560
572
  if (domainBlocks.length === 0) return;
561
573
  this.emitBlank();
562
574
  this.emit("<!-- v4.2 Domain Blocks -->");
563
- const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
575
+ const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
564
576
  domainBlocks,
565
577
  {
566
578
  material: (block) => {
567
- const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
579
+ const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
568
580
  const lines = [];
569
581
  lines.push(
570
582
  `<material name="${this.escapeStringValue(mat.name, "TypeScript")}">`
@@ -585,15 +597,15 @@ var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
585
597
  return lines.join("\n");
586
598
  },
587
599
  physics: (block) => {
588
- const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
589
- return chunkHKEXJUWS_cjs.physicsToURDF(phys);
600
+ const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
601
+ return chunkGH6C2QGW_cjs.physicsToURDF(phys);
590
602
  },
591
603
  audio: (block) => {
592
- const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
604
+ const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
593
605
  return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" volume="${audio.properties.volume ?? 1}" -->`;
594
606
  },
595
607
  weather: (block) => {
596
- const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
608
+ const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
597
609
  return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" layers: ${weather.layers.map((l) => l.type).join(", ")} -->`;
598
610
  }
599
611
  },
@@ -1405,5 +1417,5 @@ exports.createURDFCompiler = createURDFCompiler;
1405
1417
  exports.generateControllersYaml = generateControllersYaml;
1406
1418
  exports.generateROS2LaunchFile = generateROS2LaunchFile;
1407
1419
  exports.init_URDFCompiler = init_URDFCompiler;
1408
- //# sourceMappingURL=chunk-IUDGEUDO.cjs.map
1409
- //# sourceMappingURL=chunk-IUDGEUDO.cjs.map
1420
+ //# sourceMappingURL=chunk-2BZHWUSR.cjs.map
1421
+ //# sourceMappingURL=chunk-2BZHWUSR.cjs.map
@@ -428,5 +428,5 @@ exports.createTensor = createTensor;
428
428
  exports.eluInPlace = eluInPlace;
429
429
  exports.matmul = matmul;
430
430
  exports.resolveOnnxModelPath = resolveOnnxModelPath;
431
- //# sourceMappingURL=chunk-XJAN7CZG.cjs.map
432
- //# sourceMappingURL=chunk-XJAN7CZG.cjs.map
431
+ //# sourceMappingURL=chunk-2GCNOI2U.cjs.map
432
+ //# sourceMappingURL=chunk-2GCNOI2U.cjs.map
@@ -1,6 +1,6 @@
1
- import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GZG4KA4E.js';
2
- import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToUnity, compileInputBlock, navigationToUnity, compileNavigationBlock, renderingToUnity, compileRenderingBlock, proceduralToUnity, compileProceduralBlock, web3ToUnity, compileWeb3Block, architectureToUnity, compileArchitectureBlock, musicToUnity, compileMusicBlock, educationToUnity, compileEducationBlock, datavizToUnity, compileDataVizBlock, iotToUnity, compileIoTBlock, compileRoboticsBlock, roboticsToUnity, compileHealthcareBlock, healthcareToUnity, compilePaymentBlock, paymentToUnity, compileNarrativeBlock, narrativeToUnity, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToUnity } from './chunk-BOVPWH4H.js';
3
- import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
1
+ import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GW3LKD5C.js';
2
+ import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToUnity, compileInputBlock, navigationToUnity, compileNavigationBlock, renderingToUnity, compileRenderingBlock, proceduralToUnity, compileProceduralBlock, web3ToUnity, compileWeb3Block, architectureToUnity, compileArchitectureBlock, musicToUnity, compileMusicBlock, educationToUnity, compileEducationBlock, datavizToUnity, compileDataVizBlock, iotToUnity, compileIoTBlock, compileRoboticsBlock, roboticsToUnity, compileHealthcareBlock, healthcareToUnity, compilePaymentBlock, paymentToUnity, compileNarrativeBlock, narrativeToUnity, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToUnity } from './chunk-ZA34AN3R.js';
3
+ import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
4
4
  import { __export, __esm } from './chunk-OL46QLBJ.js';
5
5
  import { ANSCapabilityPath } from '@holoscript/core-types/ans';
6
6
 
@@ -152,30 +152,20 @@ var init_UnityCompiler = __esm({
152
152
  this.emit(` string holomapPosB64 = ${posLit};`);
153
153
  this.emit(` string holomapColB64 = ${colLit};`);
154
154
  this.emit(` int holomapN = ${h.pointCount};`);
155
- this.emit(
156
- " byte[] holomapPos = System.Convert.FromBase64String(holomapPosB64);"
157
- );
158
- this.emit(
159
- " byte[] holomapCol = System.Convert.FromBase64String(holomapColB64);"
160
- );
155
+ this.emit(" byte[] holomapPos = System.Convert.FromBase64String(holomapPosB64);");
156
+ this.emit(" byte[] holomapCol = System.Convert.FromBase64String(holomapColB64);");
161
157
  this.emit(" if (holomapPos.Length >= holomapN * 12 && holomapCol.Length >= holomapN * 3)");
162
158
  this.emit(" {");
163
- this.emit(
164
- ' var holomapGo = new GameObject("HoloMapReconstructionPoints");'
165
- );
159
+ this.emit(' var holomapGo = new GameObject("HoloMapReconstructionPoints");');
166
160
  this.emit(" holomapGo.transform.SetParent(transform, false);");
167
161
  this.emit(" var mesh = new Mesh();");
168
- this.emit(
169
- " mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;"
170
- );
162
+ this.emit(" mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;");
171
163
  this.emit(" var verts = new Vector3[holomapN];");
172
164
  this.emit(" var cols = new Color32[holomapN];");
173
165
  this.emit(" var idx = new int[holomapN];");
174
166
  this.emit(" for (int i = 0; i < holomapN; i++)");
175
167
  this.emit(" {");
176
- this.emit(
177
- " int p = i * 12; int c = i * 3;"
178
- );
168
+ this.emit(" int p = i * 12; int c = i * 3;");
179
169
  this.emit(
180
170
  " verts[i] = new Vector3(System.BitConverter.ToSingle(holomapPos, p), System.BitConverter.ToSingle(holomapPos, p + 4), System.BitConverter.ToSingle(holomapPos, p + 8));"
181
171
  );
@@ -191,13 +181,11 @@ var init_UnityCompiler = __esm({
191
181
  this.emit(" var mf = holomapGo.AddComponent<MeshFilter>();");
192
182
  this.emit(" mf.sharedMesh = mesh;");
193
183
  this.emit(" var mr = holomapGo.AddComponent<MeshRenderer>();");
184
+ this.emit(' var sh = Shader.Find("Universal Render Pipeline/Unlit");');
185
+ this.emit(' if (sh == null) sh = Shader.Find("Unlit/Color");');
194
186
  this.emit(
195
- ' var sh = Shader.Find("Universal Render Pipeline/Unlit");'
196
- );
197
- this.emit(
198
- ' if (sh == null) sh = Shader.Find("Unlit/Color");'
187
+ ' mr.sharedMaterial = sh != null ? new Material(sh) : new Material(Shader.Find("Hidden/InternalErrorShader"));'
199
188
  );
200
- this.emit(' mr.sharedMaterial = sh != null ? new Material(sh) : new Material(Shader.Find("Hidden/InternalErrorShader"));');
201
189
  this.emit(" }");
202
190
  this.emit(" }");
203
191
  }
@@ -774,5 +762,5 @@ var init_UnityCompiler = __esm({
774
762
  });
775
763
 
776
764
  export { UnityCompiler, UnityCompiler_exports, init_UnityCompiler };
777
- //# sourceMappingURL=chunk-CCATWPXM.js.map
778
- //# sourceMappingURL=chunk-CCATWPXM.js.map
765
+ //# sourceMappingURL=chunk-2OWDB4FB.js.map
766
+ //# sourceMappingURL=chunk-2OWDB4FB.js.map
@@ -76,10 +76,7 @@ var init_AgentRiskRegistry = __esm({
76
76
  ring.shift();
77
77
  }
78
78
  this.events.set(event.agentId, ring);
79
- this.lifetimeEvents.set(
80
- event.agentId,
81
- (this.lifetimeEvents.get(event.agentId) ?? 0) + 1
82
- );
79
+ this.lifetimeEvents.set(event.agentId, (this.lifetimeEvents.get(event.agentId) ?? 0) + 1);
83
80
  }
84
81
  /**
85
82
  * Record a successful (clean) operation. Reduces the agent's accrued score
@@ -90,10 +87,7 @@ var init_AgentRiskRegistry = __esm({
90
87
  */
91
88
  recordSuccess(agentId) {
92
89
  if (this.successCreditPerOp <= 0) {
93
- this.lifetimeSuccesses.set(
94
- agentId,
95
- (this.lifetimeSuccesses.get(agentId) ?? 0) + 1
96
- );
90
+ this.lifetimeSuccesses.set(agentId, (this.lifetimeSuccesses.get(agentId) ?? 0) + 1);
97
91
  return;
98
92
  }
99
93
  const ring = this.events.get(agentId) ?? [];
@@ -107,10 +101,7 @@ var init_AgentRiskRegistry = __esm({
107
101
  ring.shift();
108
102
  }
109
103
  this.events.set(agentId, ring);
110
- this.lifetimeSuccesses.set(
111
- agentId,
112
- (this.lifetimeSuccesses.get(agentId) ?? 0) + 1
113
- );
104
+ this.lifetimeSuccesses.set(agentId, (this.lifetimeSuccesses.get(agentId) ?? 0) + 1);
114
105
  }
115
106
  /**
116
107
  * Compute the current decayed risk score for an agent (0-100).
@@ -254,5 +245,5 @@ var init_AgentRiskRegistry = __esm({
254
245
  });
255
246
 
256
247
  export { TIER_COMPOSITION_RISK_CAP, getAgentRiskRegistry, init_AgentRiskRegistry, isDangerousOperation };
257
- //# sourceMappingURL=chunk-N75IH2HY.js.map
258
- //# sourceMappingURL=chunk-N75IH2HY.js.map
248
+ //# sourceMappingURL=chunk-2Y3V22SG.js.map
249
+ //# sourceMappingURL=chunk-2Y3V22SG.js.map