@holoscript/core 8.0.6 → 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.
- 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
|
@@ -74,19 +74,54 @@ function buildSyntheticBipedPose(phase, speed) {
|
|
|
74
74
|
const speedScale = Math.min(speed, 6) / 6;
|
|
75
75
|
const hipY = 1 + Math.cos(phase * 4 * Math.PI) * HIP_BOB_AMPLITUDE * speedScale;
|
|
76
76
|
const hipYawRad = leftSwing * 0.05 * speedScale;
|
|
77
|
-
const hipQuat = [
|
|
77
|
+
const hipQuat = [
|
|
78
|
+
0,
|
|
79
|
+
Math.sin(hipYawRad / 2),
|
|
80
|
+
0,
|
|
81
|
+
Math.cos(hipYawRad / 2)
|
|
82
|
+
];
|
|
78
83
|
const leftThighPitchRad = leftSwing * STRIDE_AMPLITUDE_RAD * speedScale;
|
|
79
84
|
const rightThighPitchRad = rightSwing * STRIDE_AMPLITUDE_RAD * speedScale;
|
|
80
|
-
const leftThighQuat = [
|
|
81
|
-
|
|
85
|
+
const leftThighQuat = [
|
|
86
|
+
Math.sin(leftThighPitchRad / 2),
|
|
87
|
+
0,
|
|
88
|
+
0,
|
|
89
|
+
Math.cos(leftThighPitchRad / 2)
|
|
90
|
+
];
|
|
91
|
+
const rightThighQuat = [
|
|
92
|
+
Math.sin(rightThighPitchRad / 2),
|
|
93
|
+
0,
|
|
94
|
+
0,
|
|
95
|
+
Math.cos(rightThighPitchRad / 2)
|
|
96
|
+
];
|
|
82
97
|
const leftKneeRad = Math.max(0, leftSwing) * KNEE_FLEXION_AMPLITUDE_RAD * speedScale;
|
|
83
98
|
const rightKneeRad = Math.max(0, rightSwing) * KNEE_FLEXION_AMPLITUDE_RAD * speedScale;
|
|
84
|
-
const leftKneeQuat = [
|
|
85
|
-
|
|
99
|
+
const leftKneeQuat = [
|
|
100
|
+
Math.sin(leftKneeRad / 2),
|
|
101
|
+
0,
|
|
102
|
+
0,
|
|
103
|
+
Math.cos(leftKneeRad / 2)
|
|
104
|
+
];
|
|
105
|
+
const rightKneeQuat = [
|
|
106
|
+
Math.sin(rightKneeRad / 2),
|
|
107
|
+
0,
|
|
108
|
+
0,
|
|
109
|
+
Math.cos(rightKneeRad / 2)
|
|
110
|
+
];
|
|
86
111
|
const leftFootRad = -leftThighPitchRad * 0.5;
|
|
87
112
|
const rightFootRad = -rightThighPitchRad * 0.5;
|
|
88
|
-
const leftFootQuat = [
|
|
89
|
-
|
|
113
|
+
const leftFootQuat = [
|
|
114
|
+
Math.sin(leftFootRad / 2),
|
|
115
|
+
0,
|
|
116
|
+
0,
|
|
117
|
+
Math.cos(leftFootRad / 2)
|
|
118
|
+
];
|
|
119
|
+
const rightFootQuat = [
|
|
120
|
+
Math.sin(rightFootRad / 2),
|
|
121
|
+
0,
|
|
122
|
+
0,
|
|
123
|
+
Math.cos(rightFootRad / 2)
|
|
124
|
+
];
|
|
90
125
|
return {
|
|
91
126
|
hip: { position: [0, hipY, 0], rotation: hipQuat },
|
|
92
127
|
left_thigh: { position: [0.1, hipY - 0.4, 0], rotation: leftThighQuat },
|
|
@@ -137,7 +172,9 @@ function createSyntheticWalkCycleEngine(modelId) {
|
|
|
137
172
|
var MOTION_DATA_SCHEMA_VERSION = 1;
|
|
138
173
|
function validateTrainingFrame(frame) {
|
|
139
174
|
if (typeof frame.frameIndex !== "number" || frame.frameIndex < 0) {
|
|
140
|
-
throw new Error(
|
|
175
|
+
throw new Error(
|
|
176
|
+
`TrainingFrame: frameIndex must be a non-negative number, got ${frame.frameIndex}`
|
|
177
|
+
);
|
|
141
178
|
}
|
|
142
179
|
if (typeof frame.phase !== "number" || frame.phase < 0 || frame.phase >= 1) {
|
|
143
180
|
throw new Error(`TrainingFrame: phase must be in [0, 1), got ${frame.phase}`);
|
|
@@ -150,7 +187,9 @@ function validateTrainingFrame(frame) {
|
|
|
150
187
|
}
|
|
151
188
|
const validGaits = ["idle", "walk", "trot", "run", "crouch"];
|
|
152
189
|
if (!validGaits.includes(frame.gait)) {
|
|
153
|
-
throw new Error(
|
|
190
|
+
throw new Error(
|
|
191
|
+
`TrainingFrame: gait must be one of ${validGaits.join(", ")}, got ${frame.gait}`
|
|
192
|
+
);
|
|
154
193
|
}
|
|
155
194
|
}
|
|
156
195
|
function validateMotionCapture(capture) {
|
|
@@ -260,5 +299,5 @@ exports.projectLinearTrajectory = projectLinearTrajectory;
|
|
|
260
299
|
exports.validateMotionCapture = validateMotionCapture;
|
|
261
300
|
exports.validateTrainingCorpus = validateTrainingCorpus;
|
|
262
301
|
exports.validateTrainingFrame = validateTrainingFrame;
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
302
|
+
//# sourceMappingURL=chunk-RUVBFAF7.cjs.map
|
|
303
|
+
//# sourceMappingURL=chunk-RUVBFAF7.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePostProcessingBlock, compileParticleBlock, compilePhysicsBlock, compileMaterialBlock } from './chunk-
|
|
3
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-GW3LKD5C.js';
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePostProcessingBlock, compileParticleBlock, compilePhysicsBlock, compileMaterialBlock } 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
|
|
|
@@ -1042,5 +1042,5 @@ var init_OpenXRCompiler = __esm({
|
|
|
1042
1042
|
});
|
|
1043
1043
|
|
|
1044
1044
|
export { OpenXRCompiler, OpenXRCompiler_exports, init_OpenXRCompiler };
|
|
1045
|
-
//# sourceMappingURL=chunk-
|
|
1046
|
-
//# sourceMappingURL=chunk-
|
|
1045
|
+
//# sourceMappingURL=chunk-S762UEV5.js.map
|
|
1046
|
+
//# sourceMappingURL=chunk-S762UEV5.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkFEWUHQNM_cjs = require('./chunk-FEWUHQNM.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var chunkEBS32AJI_cjs = require('./chunk-EBS32AJI.cjs');
|
|
5
|
+
var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
|
|
6
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
7
7
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
8
8
|
var ans = require('@holoscript/core-types/ans');
|
|
9
9
|
|
|
@@ -969,7 +969,11 @@ var init_AndroidXRTraitDispatch = chunkHCCQLAA4_cjs.__esm({
|
|
|
969
969
|
trait: "mesh_detection",
|
|
970
970
|
components: ["MeshReconstruction"],
|
|
971
971
|
level: "full",
|
|
972
|
-
imports: [
|
|
972
|
+
imports: [
|
|
973
|
+
"com.google.ar.core.Config",
|
|
974
|
+
"com.google.ar.core.Frame",
|
|
975
|
+
"com.google.ar.core.Trackable"
|
|
976
|
+
],
|
|
973
977
|
generate: (varName) => [
|
|
974
978
|
`// @mesh_detection -- ARCore scene mesh reconstruction`,
|
|
975
979
|
`// android.permission.SCENE_UNDERSTANDING_COARSE required`,
|
|
@@ -1194,7 +1198,10 @@ var init_AndroidXRTraitDispatch = chunkHCCQLAA4_cjs.__esm({
|
|
|
1194
1198
|
trait: "gaze_interactable",
|
|
1195
1199
|
components: ["InteractableComponent"],
|
|
1196
1200
|
level: "full",
|
|
1197
|
-
imports: [
|
|
1201
|
+
imports: [
|
|
1202
|
+
"androidx.xr.scenecore.InteractableComponent",
|
|
1203
|
+
"androidx.xr.scenecore.InteractableType"
|
|
1204
|
+
],
|
|
1198
1205
|
generate: (varName) => [
|
|
1199
1206
|
`// Combine Android SceneCore Gaze entity with Hand tracking pinch`,
|
|
1200
1207
|
`${varName}.addComponent(InteractableComponent(InteractableType.GAZE_AND_PINCH))`,
|
|
@@ -2799,10 +2806,7 @@ var init_AndroidXRCodeTemplates = chunkHCCQLAA4_cjs.__esm({
|
|
|
2799
2806
|
trait: "controlnet",
|
|
2800
2807
|
components: [],
|
|
2801
2808
|
level: "full",
|
|
2802
|
-
imports: [
|
|
2803
|
-
"org.tensorflow.lite.Interpreter",
|
|
2804
|
-
"org.tensorflow.lite.support.image.TensorImage"
|
|
2805
|
-
],
|
|
2809
|
+
imports: ["org.tensorflow.lite.Interpreter", "org.tensorflow.lite.support.image.TensorImage"],
|
|
2806
2810
|
generate: (varName, config) => {
|
|
2807
2811
|
const model = String(config.model || "controlnet_canny");
|
|
2808
2812
|
const endpoint = String(config.endpoint || "");
|
|
@@ -2906,10 +2910,7 @@ var init_AndroidXRCodeTemplates = chunkHCCQLAA4_cjs.__esm({
|
|
|
2906
2910
|
trait: "diffusion_realtime",
|
|
2907
2911
|
components: [],
|
|
2908
2912
|
level: "full",
|
|
2909
|
-
imports: [
|
|
2910
|
-
"org.tensorflow.lite.Interpreter",
|
|
2911
|
-
"android.opengl.GLES31"
|
|
2912
|
-
],
|
|
2913
|
+
imports: ["org.tensorflow.lite.Interpreter", "android.opengl.GLES31"],
|
|
2913
2914
|
generate: (varName, config) => {
|
|
2914
2915
|
const backend = String(config.backend || "tflite");
|
|
2915
2916
|
const steps = Number(config.steps || 4);
|
|
@@ -3326,10 +3327,7 @@ var init_AndroidXRCodeTemplates = chunkHCCQLAA4_cjs.__esm({
|
|
|
3326
3327
|
]
|
|
3327
3328
|
};
|
|
3328
3329
|
const lines = mlkitSetup[task] ?? mlkitSetup["classification"];
|
|
3329
|
-
return [
|
|
3330
|
-
`// @vision -- ML Kit Vision (task: ${task})`,
|
|
3331
|
-
...lines
|
|
3332
|
-
];
|
|
3330
|
+
return [`// @vision -- ML Kit Vision (task: ${task})`, ...lines];
|
|
3333
3331
|
}
|
|
3334
3332
|
},
|
|
3335
3333
|
spatial_awareness: {
|
|
@@ -4012,7 +4010,9 @@ function generateNodeFactoryFile(compiler, composition) {
|
|
|
4012
4010
|
compiler.indentLevel = 0;
|
|
4013
4011
|
const pkg = compiler.options.packageName;
|
|
4014
4012
|
compiler.emit("// Auto-generated by HoloScript AndroidXRCompiler");
|
|
4015
|
-
compiler.emit(
|
|
4013
|
+
compiler.emit(
|
|
4014
|
+
`// Node Factory: ${compiler.escapeStringValue(composition.name, "Kotlin")}`
|
|
4015
|
+
);
|
|
4016
4016
|
compiler.emit("");
|
|
4017
4017
|
compiler.emit(`package ${pkg}`);
|
|
4018
4018
|
compiler.emit("");
|
|
@@ -4111,7 +4111,9 @@ function compileObjectFactory(compiler, obj) {
|
|
|
4111
4111
|
compiler.emit("parent = session.scene.activitySpace");
|
|
4112
4112
|
const pos = compiler.findProp(obj, "position");
|
|
4113
4113
|
if (pos && Array.isArray(pos)) {
|
|
4114
|
-
compiler.emit(
|
|
4114
|
+
compiler.emit(
|
|
4115
|
+
`setPose(Pose(${compiler.toKotlinFloat3(pos)}, Quaternion.identity()))`
|
|
4116
|
+
);
|
|
4115
4117
|
}
|
|
4116
4118
|
const scale = compiler.findProp(obj, "scale");
|
|
4117
4119
|
if (scale && Array.isArray(scale)) {
|
|
@@ -4634,7 +4636,9 @@ function emitObject(compiler, obj) {
|
|
|
4634
4636
|
compiler.emit(`// Activate strictly if depth API is physically supported on-device`);
|
|
4635
4637
|
compiler.emit(`if (xrSession.isDepthSupported) {`);
|
|
4636
4638
|
compiler.indent();
|
|
4637
|
-
compiler.emit(
|
|
4639
|
+
compiler.emit(
|
|
4640
|
+
`xrSession.scene.configure { config -> config.depthMode = Config.DepthMode.AUTOMATIC }`
|
|
4641
|
+
);
|
|
4638
4642
|
compiler.emit(`${v}.enableDepthOcclusion(true)`);
|
|
4639
4643
|
compiler.dedent();
|
|
4640
4644
|
compiler.emit(`}`);
|
|
@@ -4648,7 +4652,9 @@ function emitObject(compiler, obj) {
|
|
|
4648
4652
|
compiler.emit(`// AI upscaling: load texture, apply TFLite super-resolution`);
|
|
4649
4653
|
compiler.emit(`val ${v}TexturePath = "${texture}"`);
|
|
4650
4654
|
compiler.emit(`val ${v}OriginalBitmap = BitmapFactory.decodeFile(${v}TexturePath)`);
|
|
4651
|
-
compiler.emit(
|
|
4655
|
+
compiler.emit(
|
|
4656
|
+
`val ${v}UpscaledBitmap = ${v}Upscale(LocalContext.current, ${v}OriginalBitmap)`
|
|
4657
|
+
);
|
|
4652
4658
|
compiler.emit(`// Apply ${v}UpscaledBitmap to material texture`);
|
|
4653
4659
|
} else {
|
|
4654
4660
|
compiler.emit(`// AI upscaling trait present but no texture property found on ${v}`);
|
|
@@ -4662,10 +4668,14 @@ function emitObject(compiler, obj) {
|
|
|
4662
4668
|
compiler.emit(`val ${v}MaskPath = "${mask}"`);
|
|
4663
4669
|
compiler.emit(`val ${v}ImageBitmap = BitmapFactory.decodeFile(${v}TexturePath)`);
|
|
4664
4670
|
compiler.emit(`val ${v}MaskBitmap = BitmapFactory.decodeFile(${v}MaskPath)`);
|
|
4665
|
-
compiler.emit(
|
|
4671
|
+
compiler.emit(
|
|
4672
|
+
`val ${v}InpaintedBitmap = ${v}Inpaint(LocalContext.current, ${v}ImageBitmap, ${v}MaskBitmap)`
|
|
4673
|
+
);
|
|
4666
4674
|
compiler.emit(`// Apply ${v}InpaintedBitmap to material texture`);
|
|
4667
4675
|
} else {
|
|
4668
|
-
compiler.emit(
|
|
4676
|
+
compiler.emit(
|
|
4677
|
+
`// AI inpainting trait present but requires both 'texture' and 'mask' properties on ${v}`
|
|
4678
|
+
);
|
|
4669
4679
|
}
|
|
4670
4680
|
}
|
|
4671
4681
|
}
|
|
@@ -4777,7 +4787,9 @@ function emitAudio(compiler, audio) {
|
|
|
4777
4787
|
compiler.emit("");
|
|
4778
4788
|
compiler.emit(`// Audio: ${compiler.escapeStringValue(audio.name, "Kotlin")}`);
|
|
4779
4789
|
if (src) {
|
|
4780
|
-
compiler.emit(
|
|
4790
|
+
compiler.emit(
|
|
4791
|
+
`val ${v}Id = soundPool.load(this, R.raw.${compiler.sanitizeName(src)}, 1)`
|
|
4792
|
+
);
|
|
4781
4793
|
}
|
|
4782
4794
|
if (spatial && pos && Array.isArray(pos)) {
|
|
4783
4795
|
compiler.emit(
|
|
@@ -4869,7 +4881,9 @@ function emitFaceTracking(compiler, varName, config) {
|
|
|
4869
4881
|
if (blendshapes.length > 0) {
|
|
4870
4882
|
for (const bs of blendshapes) {
|
|
4871
4883
|
const bsConst = `FaceBlendShapeType.FACE_BLEND_SHAPE_TYPE_${bs.toUpperCase()}`;
|
|
4872
|
-
compiler.emit(
|
|
4884
|
+
compiler.emit(
|
|
4885
|
+
`val ${varName}_${compiler.sanitizeName(bs)} = faceState.blendShapes[${bsConst}]`
|
|
4886
|
+
);
|
|
4873
4887
|
}
|
|
4874
4888
|
} else {
|
|
4875
4889
|
compiler.emit(
|
|
@@ -4976,36 +4990,36 @@ function compileAndroidXRDomainBlocks(compiler, composition) {
|
|
|
4976
4990
|
compiler.emit("");
|
|
4977
4991
|
compiler.emit("// === v4.2 Domain Blocks ===");
|
|
4978
4992
|
let blockIdx = 0;
|
|
4979
|
-
const compiled =
|
|
4993
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
4980
4994
|
// @ts-expect-error During migration
|
|
4981
4995
|
domainBlocks,
|
|
4982
4996
|
{
|
|
4983
4997
|
material: (block) => {
|
|
4984
|
-
const mat =
|
|
4985
|
-
return
|
|
4998
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
4999
|
+
return chunkGH6C2QGW_cjs.materialToAndroidXR(mat, `db${blockIdx++}`);
|
|
4986
5000
|
},
|
|
4987
5001
|
physics: (block) => {
|
|
4988
|
-
const phys =
|
|
4989
|
-
return
|
|
5002
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
5003
|
+
return chunkGH6C2QGW_cjs.physicsToAndroidXR(phys, `db${blockIdx++}`);
|
|
4990
5004
|
},
|
|
4991
5005
|
vfx: (block) => {
|
|
4992
|
-
const ps =
|
|
4993
|
-
return
|
|
5006
|
+
const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
|
|
5007
|
+
return chunkGH6C2QGW_cjs.particlesToAndroidXR(ps, `db${blockIdx++}`);
|
|
4994
5008
|
},
|
|
4995
5009
|
postfx: (block) => {
|
|
4996
|
-
const pp =
|
|
5010
|
+
const pp = chunkGH6C2QGW_cjs.compilePostProcessingBlock(block);
|
|
4997
5011
|
const postfx = pp;
|
|
4998
5012
|
const effects = postfx.effects.map((e) => `// Effect: ${e.type} \u2014 ${JSON.stringify(e.properties)}`).join("\n");
|
|
4999
5013
|
return `// Post-Processing: ${postfx.keyword} \u2014 configure via Filament Renderer post-processing
|
|
5000
5014
|
${effects}`;
|
|
5001
5015
|
},
|
|
5002
5016
|
audio: (block) => {
|
|
5003
|
-
const audio =
|
|
5004
|
-
return
|
|
5017
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
5018
|
+
return chunkGH6C2QGW_cjs.audioSourceToAndroidXR(audio, `db${blockIdx++}`);
|
|
5005
5019
|
},
|
|
5006
5020
|
weather: (block) => {
|
|
5007
|
-
const weather =
|
|
5008
|
-
return
|
|
5021
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
5022
|
+
return chunkGH6C2QGW_cjs.weatherToAndroidXR(weather);
|
|
5009
5023
|
}
|
|
5010
5024
|
},
|
|
5011
5025
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${compiler.escapeStringValue(block.name, "Kotlin")}"`
|
|
@@ -5032,7 +5046,7 @@ function emitTransition(compiler, tr) {
|
|
|
5032
5046
|
}
|
|
5033
5047
|
var init_AndroidXRGenerators = chunkHCCQLAA4_cjs.__esm({
|
|
5034
5048
|
"src/compiler/AndroidXRGenerators.ts"() {
|
|
5035
|
-
|
|
5049
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
5036
5050
|
init_AndroidXRTraitMap();
|
|
5037
5051
|
}
|
|
5038
5052
|
});
|
|
@@ -5250,7 +5264,9 @@ function emitGlimmerObject(compiler, obj) {
|
|
|
5250
5264
|
} else if (modelSrc) {
|
|
5251
5265
|
compiler.emit(`Card(`);
|
|
5252
5266
|
compiler.indent();
|
|
5253
|
-
compiler.emit(
|
|
5267
|
+
compiler.emit(
|
|
5268
|
+
`title = { Text("${compiler.escapeStringValue(obj.name, "Kotlin")}") },`
|
|
5269
|
+
);
|
|
5254
5270
|
compiler.emit(`action = {`);
|
|
5255
5271
|
compiler.indent();
|
|
5256
5272
|
compiler.emit(`Button(onClick = { /* interact with ${v} */ }) {`);
|
|
@@ -5632,12 +5648,12 @@ function compileToAndroidXR(composition, options) {
|
|
|
5632
5648
|
exports.AndroidXRCompiler = void 0;
|
|
5633
5649
|
var init_AndroidXRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
5634
5650
|
"src/compiler/AndroidXRCompiler.ts"() {
|
|
5635
|
-
|
|
5636
|
-
|
|
5651
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
5652
|
+
chunkEBS32AJI_cjs.init_PlatformConditionalCompilerMixin();
|
|
5637
5653
|
chunkFEWUHQNM_cjs.init_AndroidKotlinHelpers();
|
|
5638
5654
|
init_AndroidXRGenerators();
|
|
5639
5655
|
init_AndroidXRGlassesGenerators();
|
|
5640
|
-
exports.AndroidXRCompiler = class extends
|
|
5656
|
+
exports.AndroidXRCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
5641
5657
|
constructor(options = {}) {
|
|
5642
5658
|
super();
|
|
5643
5659
|
this.compilerName = "AndroidXRCompiler";
|
|
@@ -5664,7 +5680,7 @@ var init_AndroidXRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
5664
5680
|
}
|
|
5665
5681
|
compile(composition, agentToken, outputPath) {
|
|
5666
5682
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
5667
|
-
composition =
|
|
5683
|
+
composition = chunkEBS32AJI_cjs.filterCompositionForPlatform(composition, "android-xr");
|
|
5668
5684
|
if (this.isGlassesMode) {
|
|
5669
5685
|
return {
|
|
5670
5686
|
activityFile: generateGlassesActivityFile(this, composition),
|
|
@@ -5733,5 +5749,5 @@ exports.compileToAndroidXR = compileToAndroidXR;
|
|
|
5733
5749
|
exports.getTraitMapping = getTraitMapping;
|
|
5734
5750
|
exports.init_AndroidXRCompiler = init_AndroidXRCompiler;
|
|
5735
5751
|
exports.init_AndroidXRTraitMap = init_AndroidXRTraitMap;
|
|
5736
|
-
//# sourceMappingURL=chunk-
|
|
5737
|
-
//# sourceMappingURL=chunk-
|
|
5752
|
+
//# sourceMappingURL=chunk-SH5PPVK7.cjs.map
|
|
5753
|
+
//# sourceMappingURL=chunk-SH5PPVK7.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
4
4
|
var ans = require('@holoscript/core-types/ans');
|
|
5
5
|
|
|
6
6
|
// src/compiler/AgentInferenceExportTarget.ts
|
|
7
|
-
|
|
7
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
8
8
|
var DEFAULT_MODEL_CONFIG = {
|
|
9
9
|
provider: "anthropic",
|
|
10
10
|
// Default to Opus 4.7 — most capable Claude. Users override per-agent via
|
|
@@ -37,7 +37,7 @@ var AGENT_TRAIT_NAMES = /* @__PURE__ */ new Set([
|
|
|
37
37
|
"memory",
|
|
38
38
|
"persona"
|
|
39
39
|
]);
|
|
40
|
-
var AgentInferenceCompiler = class extends
|
|
40
|
+
var AgentInferenceCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
41
41
|
constructor(options = {}) {
|
|
42
42
|
super();
|
|
43
43
|
this.compilerName = "AgentInferenceCompiler";
|
|
@@ -980,5 +980,5 @@ exports.AgentInferenceCompiler = AgentInferenceCompiler;
|
|
|
980
980
|
exports.AgentInferenceExportTarget_default = AgentInferenceExportTarget_default;
|
|
981
981
|
exports.createAgentInferenceCompiler = createAgentInferenceCompiler;
|
|
982
982
|
exports.createPythonAgentInferenceCompiler = createPythonAgentInferenceCompiler;
|
|
983
|
-
//# sourceMappingURL=chunk-
|
|
984
|
-
//# sourceMappingURL=chunk-
|
|
983
|
+
//# sourceMappingURL=chunk-SKZPC5AG.cjs.map
|
|
984
|
+
//# sourceMappingURL=chunk-SKZPC5AG.cjs.map
|
|
@@ -194,9 +194,15 @@ var init_ProvenanceSemiring = __esm({
|
|
|
194
194
|
this.rules.set("opacity", { property: "opacity", strategy: "min" });
|
|
195
195
|
this.rules.set("velocity", { property: "velocity", strategy: "vec-component-sum" });
|
|
196
196
|
this.rules.set("acceleration", { property: "acceleration", strategy: "vec-component-sum" });
|
|
197
|
-
this.rules.set("angularVelocity", {
|
|
197
|
+
this.rules.set("angularVelocity", {
|
|
198
|
+
property: "angularVelocity",
|
|
199
|
+
strategy: "vec-component-sum"
|
|
200
|
+
});
|
|
198
201
|
this.rules.set("stressTensor", { property: "stressTensor", strategy: "vec-component-max" });
|
|
199
|
-
this.rules.set("displacementField", {
|
|
202
|
+
this.rules.set("displacementField", {
|
|
203
|
+
property: "displacementField",
|
|
204
|
+
strategy: "vec-magnitude-max"
|
|
205
|
+
});
|
|
200
206
|
this.rules.set("forceField", { property: "forceField", strategy: "vec-authority-weighted" });
|
|
201
207
|
}
|
|
202
208
|
/**
|
|
@@ -435,5 +441,5 @@ var init_ProvenanceSemiring = __esm({
|
|
|
435
441
|
});
|
|
436
442
|
|
|
437
443
|
export { AuthorityTier, MaxPlusSemiring, MinPlusSemiring, ProvenanceSemiring, SumProductSemiring, TRAIT_ZERO, authorityWeight, createDeadElement, init_ProvenanceSemiring, init_Semiring, isDeadElement, strategyToSemiring };
|
|
438
|
-
//# sourceMappingURL=chunk-
|
|
439
|
-
//# sourceMappingURL=chunk-
|
|
444
|
+
//# sourceMappingURL=chunk-SLHLXUMO.js.map
|
|
445
|
+
//# sourceMappingURL=chunk-SLHLXUMO.js.map
|
|
@@ -435,7 +435,7 @@ function uint8ArrayToBase64(data) {
|
|
|
435
435
|
return btoa(binary);
|
|
436
436
|
}
|
|
437
437
|
async function importGLTFPipeline() {
|
|
438
|
-
return import('./GLTFPipeline-
|
|
438
|
+
return import('./GLTFPipeline-3OWJV2VK.js');
|
|
439
439
|
}
|
|
440
440
|
function registerGLTFTools(server) {
|
|
441
441
|
for (const tool of GLTF_PIPELINE_TOOLS) {
|
|
@@ -445,5 +445,5 @@ function registerGLTFTools(server) {
|
|
|
445
445
|
var GLTFPipelineMCPTool_default = handleGLTFToolCall;
|
|
446
446
|
|
|
447
447
|
export { GLTFPipelineMCPTool_default, GLTF_PIPELINE_TOOLS, analyzeOptimizations, handleGLTFToolCall, inspectComposition, registerGLTFTools, validateForGLTF };
|
|
448
|
-
//# sourceMappingURL=chunk-
|
|
449
|
-
//# sourceMappingURL=chunk-
|
|
448
|
+
//# sourceMappingURL=chunk-SSSN7VAM.js.map
|
|
449
|
+
//# sourceMappingURL=chunk-SSSN7VAM.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from './chunk-
|
|
2
|
-
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-
|
|
1
|
+
import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from './chunk-UDE4OZMR.js';
|
|
2
|
+
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-MSYSQ2AJ.js';
|
|
3
3
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
4
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-
|
|
5
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
4
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-ZA34AN3R.js';
|
|
5
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
6
6
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
7
7
|
|
|
8
8
|
// src/compiler/GLTFPipeline.ts
|
|
@@ -2248,5 +2248,5 @@ function createGLTFPipeline(options) {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
|
|
2250
2250
|
export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture };
|
|
2251
|
-
//# sourceMappingURL=chunk-
|
|
2252
|
-
//# sourceMappingURL=chunk-
|
|
2251
|
+
//# sourceMappingURL=chunk-SXOSDZD6.js.map
|
|
2252
|
+
//# sourceMappingURL=chunk-SXOSDZD6.js.map
|
|
@@ -550,5 +550,5 @@ function isPipelineSource(source) {
|
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
export { isPipelineSource, parsePipeline };
|
|
553
|
-
//# sourceMappingURL=chunk-
|
|
554
|
-
//# sourceMappingURL=chunk-
|
|
553
|
+
//# sourceMappingURL=chunk-SYTRBGDS.js.map
|
|
554
|
+
//# sourceMappingURL=chunk-SYTRBGDS.js.map
|
|
@@ -46,5 +46,5 @@ function isWebGpuEnvironmentPresent() {
|
|
|
46
46
|
exports.HOLOMAP_SIMULATION_CONTRACT_KIND = HOLOMAP_SIMULATION_CONTRACT_KIND;
|
|
47
47
|
exports.ensureNodeWebGpuSync = ensureNodeWebGpuSync;
|
|
48
48
|
exports.isWebGpuEnvironmentPresent = isWebGpuEnvironmentPresent;
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-T6W3Z3SH.cjs.map
|
|
50
|
+
//# sourceMappingURL=chunk-T6W3Z3SH.cjs.map
|