@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.
- 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-V6MKC2FZ.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-IUDGEUDO.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-CCATWPXM.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-GYZE55MO.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-CMT5NMMS.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-LHAXPADA.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-ROHLEP2W.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-ZMCVKFXI.cjs → chunk-56VOWURB.cjs} +154 -47
- package/dist/{chunk-FXKAW7ZO.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-UJXISJBN.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-5NWINHR5.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-3WZEJHUQ.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-YN2YWTXW.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-OJXHYNXN.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-FYSPZT4V.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-UWXE23BT.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-UO4WPSGQ.js → chunk-B4EKV6HQ.js} +154 -48
- package/dist/{chunk-2X7NGX3M.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-D3STJ56J.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-I5CDNPPE.cjs → chunk-C4GSLCHE.cjs} +331 -125
- package/dist/{chunk-QPSKHBJP.js → chunk-C7ZBSV2Q.js} +13 -7
- package/dist/{chunk-YN6V7R3L.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-ANXZFVY2.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-6DO5IZ5N.cjs → chunk-EDPYCLRC.cjs} +85 -65
- package/dist/{chunk-WQKJSGVS.js → chunk-F2G6CWFT.js} +271 -66
- package/dist/{chunk-AVJHHUC5.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-ZU7NIRT6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-YVD3CSO3.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-XB274MW5.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-HKEXJUWS.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-WRKUDAZJ.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-NCWCUZNS.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-IUTY5WQ2.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-IWC5DM2M.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-ON5QSY35.cjs → chunk-KAIVDEIG.cjs} +175 -59
- package/dist/{chunk-R24NNAEG.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-MVPBWHAC.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-2IWC4FP7.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-KKP7JKN4.cjs → chunk-LODTHGST.cjs} +18 -12
- package/dist/{chunk-4V2E7U7Q.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-PY37LNDP.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-E4M5OAYO.js → chunk-MSYSQ2AJ.js} +132 -16
- package/dist/{chunk-TWUXUCEW.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-FFAOS5HQ.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-S3MDHNKB.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-U44IKGG7.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-KQCN6AKJ.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-DAJXW4KX.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-QACVP4PM.js → chunk-PXNZ6TME.js} +77 -59
- package/dist/{chunk-OMXII44L.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-OH2FAIVU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-XKTPFXGA.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-CR4FMIWL.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-QD32ADK6.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-HNDK4IQU.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-JC5YBPSF.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-5KVXXUD4.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-KMC6CQH3.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-QXH7QDSZ.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-UFZZ7TSN.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-PJGFU5DN.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-LKWQNUE6.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-JBNDTXXV.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-YWOBW2PV.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-7M3PNU2M.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-J7XZV333.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-UWJHCOH2.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-YT5L3B57.cjs → chunk-WFKVS2K4.cjs} +65 -27
- package/dist/{chunk-J6M4FPK5.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-5H2G27PK.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-DHO2YRIM.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-XIVIE43A.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-7H33U5SM.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-OBIYPYYS.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ADADVMXY.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-ONDAWTW4.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-4SDKXQ4C.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-OBP5REIV.js → chunk-Z6PMDS4G.js} +62 -24
- package/dist/{chunk-BOVPWH4H.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-6FH72EB2.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 +530 -355
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +374 -210
- 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 +1080 -2190
- package/dist/index.js +467 -1577
- 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 +280 -74
- 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 +52 -48
- 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 +889 -773
- package/dist/traits/index.js +371 -259
- 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 +75 -69
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-37FPRVPH.js +0 -17
- package/dist/GLTFPipeline-EK3LFJKW.cjs +0 -38
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-ACDFKVVH.js +0 -10
- package/dist/HoloScriptRuntime-ON2OQVEF.cjs +0 -19
|
@@ -72,19 +72,54 @@ function buildSyntheticBipedPose(phase, speed) {
|
|
|
72
72
|
const speedScale = Math.min(speed, 6) / 6;
|
|
73
73
|
const hipY = 1 + Math.cos(phase * 4 * Math.PI) * HIP_BOB_AMPLITUDE * speedScale;
|
|
74
74
|
const hipYawRad = leftSwing * 0.05 * speedScale;
|
|
75
|
-
const hipQuat = [
|
|
75
|
+
const hipQuat = [
|
|
76
|
+
0,
|
|
77
|
+
Math.sin(hipYawRad / 2),
|
|
78
|
+
0,
|
|
79
|
+
Math.cos(hipYawRad / 2)
|
|
80
|
+
];
|
|
76
81
|
const leftThighPitchRad = leftSwing * STRIDE_AMPLITUDE_RAD * speedScale;
|
|
77
82
|
const rightThighPitchRad = rightSwing * STRIDE_AMPLITUDE_RAD * speedScale;
|
|
78
|
-
const leftThighQuat = [
|
|
79
|
-
|
|
83
|
+
const leftThighQuat = [
|
|
84
|
+
Math.sin(leftThighPitchRad / 2),
|
|
85
|
+
0,
|
|
86
|
+
0,
|
|
87
|
+
Math.cos(leftThighPitchRad / 2)
|
|
88
|
+
];
|
|
89
|
+
const rightThighQuat = [
|
|
90
|
+
Math.sin(rightThighPitchRad / 2),
|
|
91
|
+
0,
|
|
92
|
+
0,
|
|
93
|
+
Math.cos(rightThighPitchRad / 2)
|
|
94
|
+
];
|
|
80
95
|
const leftKneeRad = Math.max(0, leftSwing) * KNEE_FLEXION_AMPLITUDE_RAD * speedScale;
|
|
81
96
|
const rightKneeRad = Math.max(0, rightSwing) * KNEE_FLEXION_AMPLITUDE_RAD * speedScale;
|
|
82
|
-
const leftKneeQuat = [
|
|
83
|
-
|
|
97
|
+
const leftKneeQuat = [
|
|
98
|
+
Math.sin(leftKneeRad / 2),
|
|
99
|
+
0,
|
|
100
|
+
0,
|
|
101
|
+
Math.cos(leftKneeRad / 2)
|
|
102
|
+
];
|
|
103
|
+
const rightKneeQuat = [
|
|
104
|
+
Math.sin(rightKneeRad / 2),
|
|
105
|
+
0,
|
|
106
|
+
0,
|
|
107
|
+
Math.cos(rightKneeRad / 2)
|
|
108
|
+
];
|
|
84
109
|
const leftFootRad = -leftThighPitchRad * 0.5;
|
|
85
110
|
const rightFootRad = -rightThighPitchRad * 0.5;
|
|
86
|
-
const leftFootQuat = [
|
|
87
|
-
|
|
111
|
+
const leftFootQuat = [
|
|
112
|
+
Math.sin(leftFootRad / 2),
|
|
113
|
+
0,
|
|
114
|
+
0,
|
|
115
|
+
Math.cos(leftFootRad / 2)
|
|
116
|
+
];
|
|
117
|
+
const rightFootQuat = [
|
|
118
|
+
Math.sin(rightFootRad / 2),
|
|
119
|
+
0,
|
|
120
|
+
0,
|
|
121
|
+
Math.cos(rightFootRad / 2)
|
|
122
|
+
];
|
|
88
123
|
return {
|
|
89
124
|
hip: { position: [0, hipY, 0], rotation: hipQuat },
|
|
90
125
|
left_thigh: { position: [0.1, hipY - 0.4, 0], rotation: leftThighQuat },
|
|
@@ -135,7 +170,9 @@ function createSyntheticWalkCycleEngine(modelId) {
|
|
|
135
170
|
var MOTION_DATA_SCHEMA_VERSION = 1;
|
|
136
171
|
function validateTrainingFrame(frame) {
|
|
137
172
|
if (typeof frame.frameIndex !== "number" || frame.frameIndex < 0) {
|
|
138
|
-
throw new Error(
|
|
173
|
+
throw new Error(
|
|
174
|
+
`TrainingFrame: frameIndex must be a non-negative number, got ${frame.frameIndex}`
|
|
175
|
+
);
|
|
139
176
|
}
|
|
140
177
|
if (typeof frame.phase !== "number" || frame.phase < 0 || frame.phase >= 1) {
|
|
141
178
|
throw new Error(`TrainingFrame: phase must be in [0, 1), got ${frame.phase}`);
|
|
@@ -148,7 +185,9 @@ function validateTrainingFrame(frame) {
|
|
|
148
185
|
}
|
|
149
186
|
const validGaits = ["idle", "walk", "trot", "run", "crouch"];
|
|
150
187
|
if (!validGaits.includes(frame.gait)) {
|
|
151
|
-
throw new Error(
|
|
188
|
+
throw new Error(
|
|
189
|
+
`TrainingFrame: gait must be one of ${validGaits.join(", ")}, got ${frame.gait}`
|
|
190
|
+
);
|
|
152
191
|
}
|
|
153
192
|
}
|
|
154
193
|
function validateMotionCapture(capture) {
|
|
@@ -243,5 +282,5 @@ function inferenceFrameToTensor(frame, sortedJointNames) {
|
|
|
243
282
|
}
|
|
244
283
|
|
|
245
284
|
export { MOTION_DATA_SCHEMA_VERSION, NullMotionMatchingEngine, SYNTHETIC_WALK_JOINTS, SyntheticWalkCycleEngine, TRAJECTORY_FRAME_DT, TRAJECTORY_HORIZON_FRAMES, buildSyntheticBipedPose, classifyGait, createNullMotionMatchingEngine, createSyntheticWalkCycleEngine, inferenceFrameToTensor, magnitude, projectLinearTrajectory, validateMotionCapture, validateTrainingCorpus, validateTrainingFrame };
|
|
246
|
-
//# sourceMappingURL=chunk-
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
285
|
+
//# sourceMappingURL=chunk-GVOKJNUN.js.map
|
|
286
|
+
//# sourceMappingURL=chunk-GVOKJNUN.js.map
|
|
@@ -426,7 +426,8 @@ function validatePlatformConstraints(composition) {
|
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
428
|
for (const obj of composition.objects || []) checkObject(obj);
|
|
429
|
-
for (const tmpl of composition.templates || [])
|
|
429
|
+
for (const tmpl of composition.templates || [])
|
|
430
|
+
check(tmpl.platformConstraint, `template "${tmpl.name}"`);
|
|
430
431
|
for (const tmpl of composition.templates || []) {
|
|
431
432
|
for (const trait of tmpl.traits || []) {
|
|
432
433
|
check(trait.platformConstraint, `trait "@${trait.name}" on template "${tmpl.name}"`);
|
|
@@ -434,7 +435,8 @@ function validatePlatformConstraints(composition) {
|
|
|
434
435
|
}
|
|
435
436
|
for (const norm of composition.norms || []) check(norm.platformConstraint, `norm "${norm.name}"`);
|
|
436
437
|
for (const grp of composition.spatialGroups || []) checkGroup(grp);
|
|
437
|
-
for (const light of composition.lights || [])
|
|
438
|
+
for (const light of composition.lights || [])
|
|
439
|
+
check(light.platformConstraint, `light "${light.name}"`);
|
|
438
440
|
return errors;
|
|
439
441
|
}
|
|
440
442
|
function filterCompositionForPlatform(composition, platform) {
|
|
@@ -525,5 +527,5 @@ var init_PlatformConditionalCompilerMixin = __esm({
|
|
|
525
527
|
});
|
|
526
528
|
|
|
527
529
|
export { ALL_PLATFORMS, DEFAULT_EMBODIMENT, PLATFORM_CAPABILITIES, PLATFORM_CATEGORIES, PlatformConditionalCompilerMixin, agentBudgetFor, createPlatformTarget, embodimentFor, filterCompositionForPlatform, hasCapability, init_PlatformConditional, init_PlatformConditionalCompilerMixin, matchesPlatform, matchesPlatformConstraint, normalizePlatformName, platformCategory, resolvePlatforms, selectBlock };
|
|
528
|
-
//# sourceMappingURL=chunk-
|
|
529
|
-
//# sourceMappingURL=chunk-
|
|
530
|
+
//# sourceMappingURL=chunk-GW3LKD5C.js.map
|
|
531
|
+
//# sourceMappingURL=chunk-GW3LKD5C.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkG6PNEASF_cjs = require('./chunk-G6PNEASF.cjs');
|
|
4
|
+
var chunkNHYRRAGI_cjs = require('./chunk-NHYRRAGI.cjs');
|
|
5
|
+
var chunk4W5G5QVL_cjs = require('./chunk-4W5G5QVL.cjs');
|
|
6
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
9
9
|
// src/compiler/MultiLayerCompiler.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var MultiLayerCompiler = class extends
|
|
10
|
+
chunkG6PNEASF_cjs.init_VRRCompiler();
|
|
11
|
+
chunkNHYRRAGI_cjs.init_ARCompiler();
|
|
12
|
+
chunk4W5G5QVL_cjs.init_BabylonCompiler();
|
|
13
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
14
|
+
var MultiLayerCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
15
15
|
constructor(options) {
|
|
16
16
|
super();
|
|
17
17
|
this.compilerName = "MultiLayerCompiler";
|
|
@@ -28,7 +28,7 @@ var MultiLayerCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
28
28
|
errors: []
|
|
29
29
|
};
|
|
30
30
|
if (this.options.targets.includes("ar")) {
|
|
31
|
-
const arCompiler = new
|
|
31
|
+
const arCompiler = new chunkNHYRRAGI_cjs.ARCompiler({
|
|
32
32
|
target: "webxr",
|
|
33
33
|
minify: this.options.minify,
|
|
34
34
|
source_maps: this.options.source_maps,
|
|
@@ -39,7 +39,7 @@ var MultiLayerCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
39
39
|
if (!arResult.success) result.success = false;
|
|
40
40
|
}
|
|
41
41
|
if (this.options.targets.includes("vrr")) {
|
|
42
|
-
const vrrCompiler = new
|
|
42
|
+
const vrrCompiler = new chunkG6PNEASF_cjs.VRRCompiler({
|
|
43
43
|
target: "threejs",
|
|
44
44
|
minify: this.options.minify,
|
|
45
45
|
source_maps: this.options.source_maps,
|
|
@@ -52,7 +52,7 @@ var MultiLayerCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
52
52
|
if (!vrrResult.success) result.success = false;
|
|
53
53
|
}
|
|
54
54
|
if (this.options.targets.includes("vr")) {
|
|
55
|
-
const vrCompiler = new
|
|
55
|
+
const vrCompiler = new chunk4W5G5QVL_cjs.BabylonCompiler({});
|
|
56
56
|
try {
|
|
57
57
|
const vrResult = vrCompiler.compile(composition, agentToken);
|
|
58
58
|
result.vr = vrResult;
|
|
@@ -68,5 +68,5 @@ var MultiLayerCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
exports.MultiLayerCompiler = MultiLayerCompiler;
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-HFSVMKM3.cjs.map
|
|
72
|
+
//# sourceMappingURL=chunk-HFSVMKM3.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
4
4
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
5
5
|
var ans = require('@holoscript/core-types/ans');
|
|
6
6
|
|
|
@@ -14,8 +14,8 @@ chunkHCCQLAA4_cjs.__export(DTDLCompiler_exports, {
|
|
|
14
14
|
exports.DTDLCompiler = void 0; exports.DTDL_TRAIT_COMPONENTS = void 0; exports.DTDLCompiler_default = void 0;
|
|
15
15
|
var init_DTDLCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
16
16
|
"src/compiler/DTDLCompiler.ts"() {
|
|
17
|
-
|
|
18
|
-
exports.DTDLCompiler = class extends
|
|
17
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
18
|
+
exports.DTDLCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
19
19
|
constructor(options = {}) {
|
|
20
20
|
super();
|
|
21
21
|
this.compilerName = "DTDLCompiler";
|
|
@@ -420,5 +420,5 @@ var init_DTDLCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
420
420
|
|
|
421
421
|
exports.DTDLCompiler_exports = DTDLCompiler_exports;
|
|
422
422
|
exports.init_DTDLCompiler = init_DTDLCompiler;
|
|
423
|
-
//# sourceMappingURL=chunk-
|
|
424
|
-
//# sourceMappingURL=chunk-
|
|
423
|
+
//# sourceMappingURL=chunk-HLFDZ35S.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-HLFDZ35S.cjs.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
|
|
|
@@ -14,9 +14,9 @@ chunkHCCQLAA4_cjs.__export(SDFCompiler_exports, {
|
|
|
14
14
|
exports.SDFCompiler = void 0; exports.SDFCompiler_default = void 0;
|
|
15
15
|
var init_SDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
16
16
|
"src/compiler/SDFCompiler.ts"() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.SDFCompiler = class extends
|
|
17
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
18
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
19
|
+
exports.SDFCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
20
20
|
constructor(options = {}) {
|
|
21
21
|
super();
|
|
22
22
|
this.compilerName = "SDFCompiler";
|
|
@@ -96,23 +96,23 @@ var init_SDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
96
96
|
if (domainBlocks.length === 0) return;
|
|
97
97
|
this.emit("");
|
|
98
98
|
this.emit("<!-- v4.2 Domain Blocks -->");
|
|
99
|
-
const compiled =
|
|
99
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
100
100
|
domainBlocks,
|
|
101
101
|
{
|
|
102
102
|
material: (block) => {
|
|
103
|
-
const mat =
|
|
104
|
-
return
|
|
103
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
104
|
+
return chunkGH6C2QGW_cjs.materialToSDF(mat);
|
|
105
105
|
},
|
|
106
106
|
physics: (block) => {
|
|
107
|
-
const phys =
|
|
108
|
-
return
|
|
107
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
108
|
+
return chunkGH6C2QGW_cjs.physicsToSDF(phys);
|
|
109
109
|
},
|
|
110
110
|
audio: (block) => {
|
|
111
|
-
const audio =
|
|
111
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
112
112
|
return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" -->`;
|
|
113
113
|
},
|
|
114
114
|
weather: (block) => {
|
|
115
|
-
const weather =
|
|
115
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
116
116
|
const layers = weather.layers.map((l) => `<!-- ${l.type}: ${JSON.stringify(l.properties)} -->`).join("\n");
|
|
117
117
|
return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" -->
|
|
118
118
|
${layers}`;
|
|
@@ -215,10 +215,14 @@ ${layers}`;
|
|
|
215
215
|
this.emit("<render_engine>ogre2</render_engine>");
|
|
216
216
|
this.indentLevel--;
|
|
217
217
|
this.emit("</plugin>");
|
|
218
|
-
this.emit(
|
|
218
|
+
this.emit(
|
|
219
|
+
'<plugin name="gz::sim::systems::SceneBroadcaster" filename="gz-sim-scene-broadcaster-system" />'
|
|
220
|
+
);
|
|
219
221
|
this.emit('<plugin name="gz::sim::systems::Contact" filename="gz-sim-contact-system" />');
|
|
220
222
|
this.emit('<plugin name="gz::sim::systems::Imu" filename="gz-sim-imu-system" />');
|
|
221
|
-
this.emit(
|
|
223
|
+
this.emit(
|
|
224
|
+
'<plugin name="gz::sim::systems::JointStatePublisher" filename="gz-sim-joint-state-publisher-system" />'
|
|
225
|
+
);
|
|
222
226
|
this.emit("");
|
|
223
227
|
}
|
|
224
228
|
calculateInertia(geometry, mass, scale) {
|
|
@@ -607,5 +611,5 @@ ${layers}`;
|
|
|
607
611
|
|
|
608
612
|
exports.SDFCompiler_exports = SDFCompiler_exports;
|
|
609
613
|
exports.init_SDFCompiler = init_SDFCompiler;
|
|
610
|
-
//# sourceMappingURL=chunk-
|
|
611
|
-
//# sourceMappingURL=chunk-
|
|
614
|
+
//# sourceMappingURL=chunk-I76GIKN7.cjs.map
|
|
615
|
+
//# sourceMappingURL=chunk-I76GIKN7.cjs.map
|