@holoscript/core 8.0.6 → 8.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -34
- package/bin/holoscript.cjs +1 -1
- package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
- package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
- package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
- package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
- package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
- package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
- package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
- package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
- package/dist/{chunk-2GQHTXOK.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-XHZCF3AS.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-DBPGNHFS.js → chunk-2OWDB4FB.js} +13 -25
- package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
- package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
- package/dist/{chunk-RCZHLCX2.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-EK7L4DW7.js → chunk-3NGDZZR4.js} +4 -4
- package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
- package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
- package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
- package/dist/{chunk-VHAONJBY.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-2J5WZLF5.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-H5PUZHJV.cjs → chunk-56VOWURB.cjs} +61 -40
- package/dist/{chunk-DQRQZB33.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-YU5RJQPE.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-A3GFOZAF.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-OXGPGQXN.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-P4AIF7OQ.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-7MVLEZB2.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-X7QB5PL5.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-QWSB553J.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-VATGR4EM.js → chunk-B4EKV6HQ.js} +61 -40
- package/dist/{chunk-HBEN5TQR.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-F63LYRVE.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-YTR32ZEB.cjs → chunk-C4GSLCHE.cjs} +300 -125
- package/dist/{chunk-CXS3DUKD.js → chunk-C7ZBSV2Q.js} +3 -3
- package/dist/{chunk-WOH6LKYT.cjs → chunk-CCPSNT6B.cjs} +12 -7
- package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
- package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
- package/dist/{chunk-D63CGNJU.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-DCE3LDO3.cjs → chunk-EDPYCLRC.cjs} +52 -62
- package/dist/{chunk-NDUX553L.js → chunk-F2G6CWFT.js} +240 -65
- package/dist/{chunk-X7LYK5TX.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-LAUFLPB6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-P52PPB5R.js → chunk-FHQFPYV4.js} +4 -4
- package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
- package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
- package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
- package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
- package/dist/{chunk-5BLWXOIP.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-2VL6SJ33.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-JEB5UU3E.js → chunk-GSOUNWEL.js} +35 -27
- package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
- package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
- package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
- package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
- package/dist/{chunk-IBXT6UP3.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-E767PVC6.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-ZXZ2AL2J.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-4FDL7JLJ.cjs → chunk-KAIVDEIG.cjs} +145 -60
- package/dist/{chunk-X4EBCG4K.js → chunk-KCPHASCO.js} +18 -6
- package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
- package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
- package/dist/{chunk-4DO425P5.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-HBLKLLG5.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-QWAR3GY6.cjs → chunk-LODTHGST.cjs} +8 -8
- package/dist/{chunk-TFUMBR7G.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-ISG3TQ2O.js → chunk-LWUOUCYL.js} +9 -5
- package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
- package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
- package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
- package/dist/{chunk-ULXWSPCK.js → chunk-MSYSQ2AJ.js} +101 -16
- package/dist/{chunk-TCBJMNXS.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-RXU4PQKA.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-NTGBEMYL.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-YG3OAHJZ.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-N5YOAFNA.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-IIUFMUTV.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-5BQIJG3O.js → chunk-PXNZ6TME.js} +47 -57
- package/dist/{chunk-KDZRD6EI.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-IS4AEGLU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-5IHG2LGT.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-NTJZJ5IP.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-E64LOLJU.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-3SBVODUP.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-LY4DMQOW.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-S6OVFUXD.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-K5UGRXKR.js → chunk-SXOSDZD6.js} +6 -6
- package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
- package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
- package/dist/{chunk-U36W76U7.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-6DOKCECB.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-YAPPQYJH.cjs → chunk-TRCGG42I.cjs} +195 -152
- package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
- package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
- package/dist/{chunk-3OIZJNVT.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-44GM3P4G.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-3B5NVDHJ.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-5TIZXMED.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-3B7AY37W.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-BKCK3IU6.js → chunk-VF257YKO.js} +4 -4
- package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
- package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
- package/dist/{chunk-PVWNU4QT.cjs → chunk-WFKVS2K4.cjs} +64 -26
- package/dist/{chunk-TDCJ7YPA.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-NE5CZ2NC.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-C34AJIJO.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-TFWYKOOB.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-TJIMBJ6L.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-BFROVZOF.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ISM4NX6N.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-6OTFG3EB.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-NPDNFPTU.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-GCYR3D2K.js → chunk-Z6PMDS4G.js} +61 -23
- package/dist/{chunk-DPZXVDGM.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-VFKXK4GR.cjs → chunk-ZPZAVHXL.cjs} +20 -20
- package/dist/cli/holoscript-runner.cjs +39 -22
- package/dist/cli/holoscript-runner.js +32 -15
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +8 -8
- package/dist/compiler/android-xr.js +6 -6
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/ar.cjs +6 -6
- package/dist/compiler/ar.js +4 -4
- package/dist/compiler/babylon.cjs +8 -8
- package/dist/compiler/babylon.js +7 -7
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +153 -153
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +347 -362
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +200 -215
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/multi-layer.cjs +10 -10
- package/dist/compiler/multi-layer.js +9 -9
- package/dist/compiler/openxr.cjs +7 -7
- package/dist/compiler/openxr.js +6 -6
- package/dist/compiler/playcanvas.cjs +6 -6
- package/dist/compiler/playcanvas.js +5 -5
- package/dist/compiler/r3f.cjs +13 -13
- package/dist/compiler/r3f.js +8 -8
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +8 -8
- package/dist/compiler/trait-composition.js +4 -4
- package/dist/compiler/unity.cjs +7 -7
- package/dist/compiler/unity.js +6 -6
- package/dist/compiler/unreal.cjs +8 -8
- package/dist/compiler/unreal.js +6 -6
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +7 -7
- package/dist/compiler/visionos.js +6 -6
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/vrr.cjs +7 -7
- package/dist/compiler/vrr.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/coordinators/index.cjs +27 -10
- package/dist/coordinators/index.js +27 -10
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.js +4 -4
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/hololand/index.cjs +36 -36
- package/dist/hololand/index.js +2 -2
- package/dist/index.cjs +1056 -796
- package/dist/index.js +440 -180
- package/dist/math/tropical-spmv.cjs +10 -10
- package/dist/math/tropical-spmv.js +1 -1
- package/dist/math/vec3.cjs +13 -13
- package/dist/math/vec3.js +1 -1
- package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
- package/dist/parser.cjs +16 -16
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +37 -37
- package/dist/reconstruction/index.js +4 -4
- package/dist/runtime.cjs +274 -76
- package/dist/runtime.d.ts +10 -1
- package/dist/runtime.js +268 -70
- package/dist/self-improvement/index.cjs +12 -4
- package/dist/self-improvement/index.js +12 -4
- package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
- package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
- package/dist/testing.cjs +5 -5
- package/dist/testing.js +1 -1
- package/dist/traits/botanical-lotus.cjs +49 -49
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/engines/index.cjs +39 -39
- package/dist/traits/engines/index.d.ts +279 -0
- package/dist/traits/engines/index.js +4 -4
- package/dist/traits/index.cjs +881 -773
- package/dist/traits/index.js +366 -258
- package/dist/world/index.cjs +21 -18
- package/dist/world/index.js +21 -18
- package/dist/world-model/index.cjs +11 -5
- package/dist/world-model/index.d.ts +8 -0
- package/dist/world-model/index.js +11 -5
- package/package.json +74 -68
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-PVLTKDBD.cjs +0 -38
- package/dist/GLTFPipeline-QPI4I7DL.js +0 -17
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-6ZGLUCFS.js +0 -10
- package/dist/HoloScriptRuntime-ALUASIL2.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
|
|
package/bin/holoscript.cjs
CHANGED
|
@@ -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
|
|
6
|
-
var
|
|
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
|
|
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
|
|
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 =
|
|
377
|
+
const presetFactory = chunkKQU64CIX_cjs.LIGHTING_PRESETS[config.preset];
|
|
378
378
|
const presetConfig = presetFactory ? presetFactory() : void 0;
|
|
379
|
-
lighting = new
|
|
379
|
+
lighting = new chunkKQU64CIX_cjs.LightingTrait(presetConfig);
|
|
380
380
|
} else {
|
|
381
|
-
lighting = new
|
|
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
|
|
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 &&
|
|
433
|
-
const preset =
|
|
434
|
-
return new
|
|
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
|
|
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 && !
|
|
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-
|
|
698
|
-
//# sourceMappingURL=HoloScriptPlusParser-
|
|
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-
|
|
2
|
-
import { HoloScriptCodeParser } from './chunk-
|
|
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-
|
|
693
|
-
//# sourceMappingURL=HoloScriptPlusParser-
|
|
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-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
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-
|
|
10
|
-
//# sourceMappingURL=HoloScriptPlusParser-
|
|
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(
|
|
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 = [
|
|
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-
|
|
1037
|
-
//# sourceMappingURL=USDZExporter-
|
|
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(
|
|
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 = [
|
|
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-
|
|
1035
|
-
//# sourceMappingURL=USDZExporter-
|
|
1045
|
+
//# sourceMappingURL=USDZExporter-GXB4AUSG.js.map
|
|
1046
|
+
//# sourceMappingURL=USDZExporter-GXB4AUSG.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
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-
|
|
979
|
-
//# sourceMappingURL=chunk-
|
|
978
|
+
//# sourceMappingURL=chunk-22Q5A6RV.js.map
|
|
979
|
+
//# sourceMappingURL=chunk-22Q5A6RV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
exports.URDFCompiler = class extends
|
|
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
|
|
270
|
-
|
|
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 =
|
|
575
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
564
576
|
domainBlocks,
|
|
565
577
|
{
|
|
566
578
|
material: (block) => {
|
|
567
|
-
const mat =
|
|
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 =
|
|
589
|
-
return
|
|
600
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
601
|
+
return chunkGH6C2QGW_cjs.physicsToURDF(phys);
|
|
590
602
|
},
|
|
591
603
|
audio: (block) => {
|
|
592
|
-
const audio =
|
|
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 =
|
|
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-
|
|
1409
|
-
//# sourceMappingURL=chunk-
|
|
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-
|
|
432
|
-
//# sourceMappingURL=chunk-
|
|
431
|
+
//# sourceMappingURL=chunk-2GCNOI2U.cjs.map
|
|
432
|
+
//# sourceMappingURL=chunk-2GCNOI2U.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-
|
|
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-
|
|
3
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
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
|
-
|
|
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
|
-
'
|
|
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-
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
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-
|
|
258
|
-
//# sourceMappingURL=chunk-
|
|
248
|
+
//# sourceMappingURL=chunk-2Y3V22SG.js.map
|
|
249
|
+
//# sourceMappingURL=chunk-2Y3V22SG.js.map
|