@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
|
@@ -129,29 +129,11 @@ function validateBotanicalLotusConfig(input = {}) {
|
|
|
129
129
|
material.subsurface_radius_rgb.forEach(
|
|
130
130
|
(value, index) => addRangeError(errors, `material.subsurface_radius_rgb[${index}]`, value, 0, 2)
|
|
131
131
|
);
|
|
132
|
-
addRangeError(
|
|
133
|
-
|
|
134
|
-
"material.petal_translucency_base",
|
|
135
|
-
material.petal_translucency_base,
|
|
136
|
-
0,
|
|
137
|
-
1
|
|
138
|
-
);
|
|
139
|
-
addRangeError(
|
|
140
|
-
errors,
|
|
141
|
-
"material.petal_translucency_edge",
|
|
142
|
-
material.petal_translucency_edge,
|
|
143
|
-
0,
|
|
144
|
-
1
|
|
145
|
-
);
|
|
132
|
+
addRangeError(errors, "material.petal_translucency_base", material.petal_translucency_base, 0, 1);
|
|
133
|
+
addRangeError(errors, "material.petal_translucency_edge", material.petal_translucency_edge, 0, 1);
|
|
146
134
|
addRangeError(errors, "material.roughness", material.roughness, 0, 1);
|
|
147
135
|
addRangeError(errors, "material.ior", material.ior, 1, 2.5);
|
|
148
|
-
addRangeError(
|
|
149
|
-
errors,
|
|
150
|
-
"material.vein_normal_intensity",
|
|
151
|
-
material.vein_normal_intensity,
|
|
152
|
-
0,
|
|
153
|
-
0.25
|
|
154
|
-
);
|
|
136
|
+
addRangeError(errors, "material.vein_normal_intensity", material.vein_normal_intensity, 0, 0.25);
|
|
155
137
|
addRangeError(errors, "material.edge_curl_intensity", material.edge_curl_intensity, 0, 1);
|
|
156
138
|
addRangeError(errors, "material.gravity_sag_outer", material.gravity_sag_outer, 0, 1);
|
|
157
139
|
addRangeError(errors, "material.sheen", material.sheen, 0, 1);
|
|
@@ -171,13 +153,7 @@ function validateBotanicalLotusConfig(input = {}) {
|
|
|
171
153
|
errors.push(`geometry.petal_rings[${index}].count must be a positive integer`);
|
|
172
154
|
}
|
|
173
155
|
addRangeError(errors, `geometry.petal_rings[${index}].cup`, ring.cup, 0, 1);
|
|
174
|
-
addRangeError(
|
|
175
|
-
errors,
|
|
176
|
-
`geometry.petal_rings[${index}].gravity_sag`,
|
|
177
|
-
ring.gravity_sag,
|
|
178
|
-
0,
|
|
179
|
-
1
|
|
180
|
-
);
|
|
156
|
+
addRangeError(errors, `geometry.petal_rings[${index}].gravity_sag`, ring.gravity_sag, 0, 1);
|
|
181
157
|
});
|
|
182
158
|
if (!Number.isInteger(geometry.stamen_filament_count) || geometry.stamen_filament_count <= 0) {
|
|
183
159
|
errors.push("geometry.stamen_filament_count must be a positive integer");
|
|
@@ -803,7 +779,14 @@ function simulateLotusMorphogenesis(params) {
|
|
|
803
779
|
primordia,
|
|
804
780
|
emergentDivergenceDeg: meanDeg,
|
|
805
781
|
divergenceSpreadDeg: spreadDeg,
|
|
806
|
-
resolvedParams: {
|
|
782
|
+
resolvedParams: {
|
|
783
|
+
count,
|
|
784
|
+
seed,
|
|
785
|
+
apexRadius,
|
|
786
|
+
radialVelocity,
|
|
787
|
+
inhibitionExponent: s,
|
|
788
|
+
angularSamples: samples
|
|
789
|
+
}
|
|
807
790
|
};
|
|
808
791
|
}
|
|
809
792
|
function lotusInhibitionAt(theta, primordia, range, apexRadius) {
|
|
@@ -856,8 +839,18 @@ function stepLotusMeristem(m) {
|
|
|
856
839
|
}
|
|
857
840
|
let off = bestK;
|
|
858
841
|
if (bestK > 0 && bestK < m.samples) {
|
|
859
|
-
const y0 = lotusInhibitionAt(
|
|
860
|
-
|
|
842
|
+
const y0 = lotusInhibitionAt(
|
|
843
|
+
m.last + m.wMin + m.step * (bestK - 1),
|
|
844
|
+
m.primordia,
|
|
845
|
+
m.range,
|
|
846
|
+
m.apexRadius
|
|
847
|
+
);
|
|
848
|
+
const y2 = lotusInhibitionAt(
|
|
849
|
+
m.last + m.wMin + m.step * (bestK + 1),
|
|
850
|
+
m.primordia,
|
|
851
|
+
m.range,
|
|
852
|
+
m.apexRadius
|
|
853
|
+
);
|
|
861
854
|
const den = y0 - 2 * bestI + y2;
|
|
862
855
|
if (Math.abs(den) > 1e-12) off = bestK + 0.5 * (y0 - y2) / den;
|
|
863
856
|
}
|
|
@@ -1215,7 +1208,11 @@ function stepLotusPetalTurgor(state, dt, developmentalTime) {
|
|
|
1215
1208
|
const rate = state.turgorStiffness * state.turgor * dt;
|
|
1216
1209
|
for (let i = 0; i < state.segments; i += 1) {
|
|
1217
1210
|
const s = (i + 0.5) / state.segments;
|
|
1218
|
-
const maturity = lotusSmoothstep01(
|
|
1211
|
+
const maturity = lotusSmoothstep01(
|
|
1212
|
+
0,
|
|
1213
|
+
1,
|
|
1214
|
+
(t - state.matureStart - s * state.acropetalDelay) / state.matureSpan
|
|
1215
|
+
);
|
|
1219
1216
|
const kappaRest = state.budCurl * (1 - maturity) + state.openCurl * maturity;
|
|
1220
1217
|
state.kappaActual[i] += rate * (kappaRest - state.kappaActual[i]);
|
|
1221
1218
|
}
|
|
@@ -1390,7 +1387,11 @@ var init_BotanicalLotusTrait = chunkHCCQLAA4_cjs.__esm({
|
|
|
1390
1387
|
reference_anchors: updatedAnchors
|
|
1391
1388
|
});
|
|
1392
1389
|
state.config = updatedConfig;
|
|
1393
|
-
state.profile = createBotanicalLotusRenderProfile(
|
|
1390
|
+
state.profile = createBotanicalLotusRenderProfile(
|
|
1391
|
+
updatedConfig,
|
|
1392
|
+
state.placement,
|
|
1393
|
+
state.lighting
|
|
1394
|
+
);
|
|
1394
1395
|
context.emit?.("botanical_lotus_reference_updated", {
|
|
1395
1396
|
node,
|
|
1396
1397
|
anchorId,
|
|
@@ -1411,7 +1412,11 @@ var init_BotanicalLotusTrait = chunkHCCQLAA4_cjs.__esm({
|
|
|
1411
1412
|
surface_normal: surfaceNormal,
|
|
1412
1413
|
world_position: worldPosition
|
|
1413
1414
|
};
|
|
1414
|
-
state.profile = createBotanicalLotusRenderProfile(
|
|
1415
|
+
state.profile = createBotanicalLotusRenderProfile(
|
|
1416
|
+
state.config,
|
|
1417
|
+
state.placement,
|
|
1418
|
+
state.lighting
|
|
1419
|
+
);
|
|
1415
1420
|
context.emit?.("botanical_lotus_surface_bound", {
|
|
1416
1421
|
node,
|
|
1417
1422
|
surfaceAnchorId,
|
|
@@ -1433,7 +1438,11 @@ var init_BotanicalLotusTrait = chunkHCCQLAA4_cjs.__esm({
|
|
|
1433
1438
|
color_temperature_k: colorTemperatureK,
|
|
1434
1439
|
dominant_direction: dominantDirection
|
|
1435
1440
|
};
|
|
1436
|
-
state.profile = createBotanicalLotusRenderProfile(
|
|
1441
|
+
state.profile = createBotanicalLotusRenderProfile(
|
|
1442
|
+
state.config,
|
|
1443
|
+
state.placement,
|
|
1444
|
+
state.lighting
|
|
1445
|
+
);
|
|
1437
1446
|
context.emit?.("botanical_lotus_lighting_updated", {
|
|
1438
1447
|
node,
|
|
1439
1448
|
referenceId,
|
|
@@ -1581,9 +1590,21 @@ totalEmissiveRadiance += lotusScatter * (0.28 + uLotusBloom * 0.72);`
|
|
|
1581
1590
|
{ stage: "vertex", include: "begin_vertex", code: exports.LOTUS_PETAL_SHADER_CHUNKS.vertexBend },
|
|
1582
1591
|
{ stage: "vertex", include: "worldpos_vertex", code: exports.LOTUS_PETAL_SHADER_CHUNKS.vertexWorld },
|
|
1583
1592
|
{ stage: "fragment", include: "common", code: exports.LOTUS_PETAL_SHADER_CHUNKS.fragmentHeader },
|
|
1584
|
-
{
|
|
1585
|
-
|
|
1586
|
-
|
|
1593
|
+
{
|
|
1594
|
+
stage: "fragment",
|
|
1595
|
+
include: "normal_fragment_maps",
|
|
1596
|
+
code: exports.LOTUS_PETAL_SHADER_CHUNKS.fragmentNormalInjection
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
stage: "fragment",
|
|
1600
|
+
include: "color_fragment",
|
|
1601
|
+
code: exports.LOTUS_PETAL_SHADER_CHUNKS.fragmentColorInjection
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
stage: "fragment",
|
|
1605
|
+
include: "emissivemap_fragment",
|
|
1606
|
+
code: exports.LOTUS_PETAL_SHADER_CHUNKS.fragmentEmissiveInjection
|
|
1607
|
+
}
|
|
1587
1608
|
];
|
|
1588
1609
|
LOTUS_PETAL_DEFAULT_DYNAMIC = {
|
|
1589
1610
|
devTime: 1,
|
|
@@ -1651,5 +1672,5 @@ exports.stepLotusMorphogen2D = stepLotusMorphogen2D;
|
|
|
1651
1672
|
exports.stepLotusPetalTurgor = stepLotusPetalTurgor;
|
|
1652
1673
|
exports.stepLotusPond = stepLotusPond;
|
|
1653
1674
|
exports.validateBotanicalLotusConfig = validateBotanicalLotusConfig;
|
|
1654
|
-
//# sourceMappingURL=chunk-
|
|
1655
|
-
//# sourceMappingURL=chunk-
|
|
1675
|
+
//# sourceMappingURL=chunk-56VOWURB.cjs.map
|
|
1676
|
+
//# sourceMappingURL=chunk-56VOWURB.cjs.map
|
|
@@ -437,7 +437,7 @@ function uint8ArrayToBase64(data) {
|
|
|
437
437
|
return btoa(binary);
|
|
438
438
|
}
|
|
439
439
|
async function importGLTFPipeline() {
|
|
440
|
-
return import('./GLTFPipeline-
|
|
440
|
+
return import('./GLTFPipeline-3EJLL3TS.cjs');
|
|
441
441
|
}
|
|
442
442
|
function registerGLTFTools(server) {
|
|
443
443
|
for (const tool of GLTF_PIPELINE_TOOLS) {
|
|
@@ -453,5 +453,5 @@ exports.handleGLTFToolCall = handleGLTFToolCall;
|
|
|
453
453
|
exports.inspectComposition = inspectComposition;
|
|
454
454
|
exports.registerGLTFTools = registerGLTFTools;
|
|
455
455
|
exports.validateForGLTF = validateForGLTF;
|
|
456
|
-
//# sourceMappingURL=chunk-
|
|
457
|
-
//# sourceMappingURL=chunk-
|
|
456
|
+
//# sourceMappingURL=chunk-5A4TCHOC.cjs.map
|
|
457
|
+
//# sourceMappingURL=chunk-5A4TCHOC.cjs.map
|
|
@@ -396,5 +396,5 @@ var skeletonHandler = {
|
|
|
396
396
|
};
|
|
397
397
|
|
|
398
398
|
export { SkeletonTrait, createSkeletonTrait, skeletonHandler };
|
|
399
|
-
//# sourceMappingURL=chunk-
|
|
400
|
-
//# sourceMappingURL=chunk-
|
|
399
|
+
//# sourceMappingURL=chunk-5EDVCNRT.js.map
|
|
400
|
+
//# sourceMappingURL=chunk-5EDVCNRT.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 { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
3
3
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
4
4
|
|
|
@@ -483,5 +483,5 @@ var init_ARCompiler = __esm({
|
|
|
483
483
|
});
|
|
484
484
|
|
|
485
485
|
export { ARCompiler, ARCompiler_default, ARCompiler_exports, init_ARCompiler };
|
|
486
|
-
//# sourceMappingURL=chunk-
|
|
487
|
-
//# sourceMappingURL=chunk-
|
|
486
|
+
//# sourceMappingURL=chunk-5ET6L4NS.js.map
|
|
487
|
+
//# sourceMappingURL=chunk-5ET6L4NS.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
|
|
|
@@ -59,10 +59,10 @@ chunkHCCQLAA4_cjs.__export(GodotCompiler_exports, {
|
|
|
59
59
|
exports.GodotCompiler = void 0;
|
|
60
60
|
var init_GodotCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
61
61
|
"src/compiler/GodotCompiler.ts"() {
|
|
62
|
-
|
|
62
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
63
63
|
init_godot_acoustic_bus();
|
|
64
|
-
|
|
65
|
-
exports.GodotCompiler = class extends
|
|
64
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
65
|
+
exports.GodotCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
66
66
|
constructor(options = {}) {
|
|
67
67
|
super();
|
|
68
68
|
this.compilerName = "GodotCompiler";
|
|
@@ -170,59 +170,59 @@ var init_GodotCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
170
170
|
this.emit("");
|
|
171
171
|
this.emit("# === v4.2 Domain Blocks ===");
|
|
172
172
|
let blockIdx = 0;
|
|
173
|
-
const compiled =
|
|
173
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
174
174
|
domainBlocks,
|
|
175
175
|
{
|
|
176
176
|
material: (block) => {
|
|
177
|
-
const mat =
|
|
178
|
-
return
|
|
177
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
178
|
+
return chunkGH6C2QGW_cjs.materialToGodot(mat, `db${blockIdx++}`);
|
|
179
179
|
},
|
|
180
180
|
physics: (block) => {
|
|
181
|
-
const phys =
|
|
182
|
-
return
|
|
181
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
182
|
+
return chunkGH6C2QGW_cjs.physicsToGodot(phys, `db${blockIdx++}`);
|
|
183
183
|
},
|
|
184
184
|
vfx: (block) => {
|
|
185
|
-
const ps =
|
|
186
|
-
return
|
|
185
|
+
const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
|
|
186
|
+
return chunkGH6C2QGW_cjs.particlesToGodot(ps, `db${blockIdx++}`);
|
|
187
187
|
},
|
|
188
188
|
postfx: (block) => {
|
|
189
|
-
const pp =
|
|
190
|
-
return
|
|
189
|
+
const pp = chunkGH6C2QGW_cjs.compilePostProcessingBlock(block);
|
|
190
|
+
return chunkGH6C2QGW_cjs.postProcessingToGodot(pp);
|
|
191
191
|
},
|
|
192
192
|
audio: (block) => {
|
|
193
|
-
const audio =
|
|
194
|
-
return
|
|
193
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
194
|
+
return chunkGH6C2QGW_cjs.audioSourceToGodot(audio, `db${blockIdx++}`);
|
|
195
195
|
},
|
|
196
196
|
weather: (block) => {
|
|
197
|
-
const weather =
|
|
198
|
-
return
|
|
197
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
198
|
+
return chunkGH6C2QGW_cjs.weatherToGodot(weather);
|
|
199
199
|
},
|
|
200
200
|
narrative: (block) => {
|
|
201
|
-
const narr =
|
|
202
|
-
return
|
|
201
|
+
const narr = chunkGH6C2QGW_cjs.compileNarrativeBlock(block);
|
|
202
|
+
return chunkGH6C2QGW_cjs.narrativeToGodot(narr);
|
|
203
203
|
},
|
|
204
204
|
payment: (block) => {
|
|
205
|
-
const pay =
|
|
206
|
-
return
|
|
205
|
+
const pay = chunkGH6C2QGW_cjs.compilePaymentBlock(block);
|
|
206
|
+
return chunkGH6C2QGW_cjs.paymentToGodot(pay);
|
|
207
207
|
},
|
|
208
208
|
healthcare: (block) => {
|
|
209
|
-
const h =
|
|
210
|
-
return
|
|
209
|
+
const h = chunkGH6C2QGW_cjs.compileHealthcareBlock(block);
|
|
210
|
+
return chunkGH6C2QGW_cjs.healthcareToGodot(h);
|
|
211
211
|
},
|
|
212
212
|
robotics: (block) => {
|
|
213
|
-
const r =
|
|
214
|
-
return
|
|
213
|
+
const r = chunkGH6C2QGW_cjs.compileRoboticsBlock(block);
|
|
214
|
+
return chunkGH6C2QGW_cjs.roboticsToGodot(r);
|
|
215
215
|
},
|
|
216
|
-
iot: (block) =>
|
|
217
|
-
dataviz: (block) =>
|
|
218
|
-
education: (block) =>
|
|
219
|
-
music: (block) =>
|
|
220
|
-
architecture: (block) =>
|
|
221
|
-
web3: (block) =>
|
|
222
|
-
procedural: (block) =>
|
|
223
|
-
rendering: (block) =>
|
|
224
|
-
navigation: (block) =>
|
|
225
|
-
input: (block) =>
|
|
216
|
+
iot: (block) => chunkGH6C2QGW_cjs.iotToGodot(chunkGH6C2QGW_cjs.compileIoTBlock(block)),
|
|
217
|
+
dataviz: (block) => chunkGH6C2QGW_cjs.datavizToGodot(chunkGH6C2QGW_cjs.compileDataVizBlock(block)),
|
|
218
|
+
education: (block) => chunkGH6C2QGW_cjs.educationToGodot(chunkGH6C2QGW_cjs.compileEducationBlock(block)),
|
|
219
|
+
music: (block) => chunkGH6C2QGW_cjs.musicToGodot(chunkGH6C2QGW_cjs.compileMusicBlock(block)),
|
|
220
|
+
architecture: (block) => chunkGH6C2QGW_cjs.architectureToGodot(chunkGH6C2QGW_cjs.compileArchitectureBlock(block)),
|
|
221
|
+
web3: (block) => chunkGH6C2QGW_cjs.web3ToGodot(chunkGH6C2QGW_cjs.compileWeb3Block(block)),
|
|
222
|
+
procedural: (block) => chunkGH6C2QGW_cjs.proceduralToGodot(chunkGH6C2QGW_cjs.compileProceduralBlock(block)),
|
|
223
|
+
rendering: (block) => chunkGH6C2QGW_cjs.renderingToGodot(chunkGH6C2QGW_cjs.compileRenderingBlock(block)),
|
|
224
|
+
navigation: (block) => chunkGH6C2QGW_cjs.navigationToGodot(chunkGH6C2QGW_cjs.compileNavigationBlock(block)),
|
|
225
|
+
input: (block) => chunkGH6C2QGW_cjs.inputToGodot(chunkGH6C2QGW_cjs.compileInputBlock(block))
|
|
226
226
|
},
|
|
227
227
|
(block) => `# Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "GDScript")}"`
|
|
228
228
|
);
|
|
@@ -433,7 +433,11 @@ var init_GodotCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
433
433
|
this.emit(`var ${varName}_reverb = AudioEffectReverb.new()`);
|
|
434
434
|
this.emit(`# @reverb_zone \u2014 add to AudioBus`);
|
|
435
435
|
} else if (tn === "audio_material" || tn === "audio_occlusion" || tn === "audio_portal") {
|
|
436
|
-
const acoustic = compileAcousticTrait(
|
|
436
|
+
const acoustic = compileAcousticTrait(
|
|
437
|
+
tn,
|
|
438
|
+
trait.config || {},
|
|
439
|
+
varName
|
|
440
|
+
);
|
|
437
441
|
if (acoustic) {
|
|
438
442
|
for (const line of acoustic.lines) this.emit(line);
|
|
439
443
|
}
|
|
@@ -685,5 +689,5 @@ var init_GodotCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
685
689
|
|
|
686
690
|
exports.GodotCompiler_exports = GodotCompiler_exports;
|
|
687
691
|
exports.init_GodotCompiler = init_GodotCompiler;
|
|
688
|
-
//# sourceMappingURL=chunk-
|
|
689
|
-
//# sourceMappingURL=chunk-
|
|
692
|
+
//# sourceMappingURL=chunk-63ZGNR2T.cjs.map
|
|
693
|
+
//# sourceMappingURL=chunk-63ZGNR2T.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3SKLAUDD_cjs = require('./chunk-3SKLAUDD.cjs');
|
|
4
4
|
|
|
5
5
|
// src/constants.ts
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
chunk3SKLAUDD_cjs.init_constants();
|
|
7
|
+
chunk3SKLAUDD_cjs.init_constants();
|
|
8
8
|
var STRUCTURAL_DIRECTIVES = [
|
|
9
9
|
// Asset & Manifest
|
|
10
10
|
"manifest",
|
|
@@ -304,7 +304,7 @@ var VALID_GEOMETRIES = [
|
|
|
304
304
|
"sparkles",
|
|
305
305
|
"particles"
|
|
306
306
|
];
|
|
307
|
-
var VALID_TRAITS = [...
|
|
307
|
+
var VALID_TRAITS = [...chunk3SKLAUDD_cjs.VR_TRAITS];
|
|
308
308
|
var COMMON_PROPERTIES = [
|
|
309
309
|
"position",
|
|
310
310
|
"rotation",
|
|
@@ -774,5 +774,5 @@ exports.LIFECYCLE_HOOKS = LIFECYCLE_HOOKS;
|
|
|
774
774
|
exports.STRUCTURAL_DIRECTIVES = STRUCTURAL_DIRECTIVES;
|
|
775
775
|
exports.enrichErrorWithSuggestions = enrichErrorWithSuggestions;
|
|
776
776
|
exports.generateQuickFixes = generateQuickFixes;
|
|
777
|
-
//# sourceMappingURL=chunk-
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
777
|
+
//# sourceMappingURL=chunk-6PRZIHGL.cjs.map
|
|
778
|
+
//# sourceMappingURL=chunk-6PRZIHGL.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
|
|
|
6
6
|
// src/compiler/StateCompiler.ts
|
|
@@ -12,8 +12,8 @@ chunkHCCQLAA4_cjs.__export(StateCompiler_exports, {
|
|
|
12
12
|
exports.StateCompiler = void 0; exports.UnauthorizedStateCompilerAccessError = void 0;
|
|
13
13
|
var init_StateCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
14
14
|
"src/compiler/StateCompiler.ts"() {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
chunkLODTHGST_cjs.init_AgentRBAC();
|
|
16
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
17
17
|
exports.StateCompiler = class {
|
|
18
18
|
constructor() {
|
|
19
19
|
this.anonCounter = 0;
|
|
@@ -41,7 +41,7 @@ var init_StateCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
41
41
|
*/
|
|
42
42
|
validateAccess(agentToken) {
|
|
43
43
|
if (!agentToken) return;
|
|
44
|
-
const rbac =
|
|
44
|
+
const rbac = chunkLODTHGST_cjs.getRBAC();
|
|
45
45
|
const decision = rbac.checkAccess({
|
|
46
46
|
token: agentToken,
|
|
47
47
|
resourceType: "ast" /* AST */,
|
|
@@ -101,7 +101,7 @@ var init_StateCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
101
101
|
return `${node.type}_${this.anonCounter++}`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
exports.UnauthorizedStateCompilerAccessError = class extends
|
|
104
|
+
exports.UnauthorizedStateCompilerAccessError = class extends chunkLODTHGST_cjs.UnauthorizedCompilerAccessError {
|
|
105
105
|
constructor(decision, compilerName) {
|
|
106
106
|
super(decision, "state compilation", compilerName);
|
|
107
107
|
this.name = "UnauthorizedStateCompilerAccessError";
|
|
@@ -112,5 +112,5 @@ var init_StateCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
112
112
|
|
|
113
113
|
exports.StateCompiler_exports = StateCompiler_exports;
|
|
114
114
|
exports.init_StateCompiler = init_StateCompiler;
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
115
|
+
//# sourceMappingURL=chunk-7DMMMBCY.cjs.map
|
|
116
|
+
//# sourceMappingURL=chunk-7DMMMBCY.cjs.map
|
|
@@ -411,5 +411,5 @@ async function resolveOnnxModelPath(modelUrl) {
|
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
export { BUNDLED_MODEL_SEED, HIDDEN_DIM, NoOpInferenceAdapter, OnnxNodeInferenceAdapter, PHASE_CONTROL_POINTS, PfnnNetwork, PureJsInferenceAdapter, add, createBundledPfnn, createNoOpInferenceAdapter, createOnnxNodeInferenceAdapter, createPureJsInferenceAdapter, createTensor, eluInPlace, matmul, resolveOnnxModelPath };
|
|
414
|
-
//# sourceMappingURL=chunk-
|
|
415
|
-
//# sourceMappingURL=chunk-
|
|
414
|
+
//# sourceMappingURL=chunk-7E7GCQCK.js.map
|
|
415
|
+
//# sourceMappingURL=chunk-7E7GCQCK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_AndroidKotlinHelpers, sanitizeName, toKotlinFloat3, toKotlinColor, mapShapeToFilament, toKotlinType, toKotlinValue, findObjProp, compositionUsesArCoreDepthTraits } from './chunk-FDSGHPAK.js';
|
|
2
|
-
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-
|
|
3
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToAndroidXR, compileAudioSourceBlock, audioSourceToAndroidXR, compilePostProcessingBlock, compileParticleBlock, particlesToAndroidXR, compilePhysicsBlock, physicsToAndroidXR, compileMaterialBlock, materialToAndroidXR } from './chunk-
|
|
4
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
2
|
+
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-GW3LKD5C.js';
|
|
3
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToAndroidXR, compileAudioSourceBlock, audioSourceToAndroidXR, compilePostProcessingBlock, compileParticleBlock, particlesToAndroidXR, compilePhysicsBlock, physicsToAndroidXR, compileMaterialBlock, materialToAndroidXR } from './chunk-ZA34AN3R.js';
|
|
4
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
5
5
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
6
6
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
7
7
|
|
|
@@ -967,7 +967,11 @@ var init_AndroidXRTraitDispatch = __esm({
|
|
|
967
967
|
trait: "mesh_detection",
|
|
968
968
|
components: ["MeshReconstruction"],
|
|
969
969
|
level: "full",
|
|
970
|
-
imports: [
|
|
970
|
+
imports: [
|
|
971
|
+
"com.google.ar.core.Config",
|
|
972
|
+
"com.google.ar.core.Frame",
|
|
973
|
+
"com.google.ar.core.Trackable"
|
|
974
|
+
],
|
|
971
975
|
generate: (varName) => [
|
|
972
976
|
`// @mesh_detection -- ARCore scene mesh reconstruction`,
|
|
973
977
|
`// android.permission.SCENE_UNDERSTANDING_COARSE required`,
|
|
@@ -1192,7 +1196,10 @@ var init_AndroidXRTraitDispatch = __esm({
|
|
|
1192
1196
|
trait: "gaze_interactable",
|
|
1193
1197
|
components: ["InteractableComponent"],
|
|
1194
1198
|
level: "full",
|
|
1195
|
-
imports: [
|
|
1199
|
+
imports: [
|
|
1200
|
+
"androidx.xr.scenecore.InteractableComponent",
|
|
1201
|
+
"androidx.xr.scenecore.InteractableType"
|
|
1202
|
+
],
|
|
1196
1203
|
generate: (varName) => [
|
|
1197
1204
|
`// Combine Android SceneCore Gaze entity with Hand tracking pinch`,
|
|
1198
1205
|
`${varName}.addComponent(InteractableComponent(InteractableType.GAZE_AND_PINCH))`,
|
|
@@ -2797,10 +2804,7 @@ var init_AndroidXRCodeTemplates = __esm({
|
|
|
2797
2804
|
trait: "controlnet",
|
|
2798
2805
|
components: [],
|
|
2799
2806
|
level: "full",
|
|
2800
|
-
imports: [
|
|
2801
|
-
"org.tensorflow.lite.Interpreter",
|
|
2802
|
-
"org.tensorflow.lite.support.image.TensorImage"
|
|
2803
|
-
],
|
|
2807
|
+
imports: ["org.tensorflow.lite.Interpreter", "org.tensorflow.lite.support.image.TensorImage"],
|
|
2804
2808
|
generate: (varName, config) => {
|
|
2805
2809
|
const model = String(config.model || "controlnet_canny");
|
|
2806
2810
|
const endpoint = String(config.endpoint || "");
|
|
@@ -2904,10 +2908,7 @@ var init_AndroidXRCodeTemplates = __esm({
|
|
|
2904
2908
|
trait: "diffusion_realtime",
|
|
2905
2909
|
components: [],
|
|
2906
2910
|
level: "full",
|
|
2907
|
-
imports: [
|
|
2908
|
-
"org.tensorflow.lite.Interpreter",
|
|
2909
|
-
"android.opengl.GLES31"
|
|
2910
|
-
],
|
|
2911
|
+
imports: ["org.tensorflow.lite.Interpreter", "android.opengl.GLES31"],
|
|
2911
2912
|
generate: (varName, config) => {
|
|
2912
2913
|
const backend = String(config.backend || "tflite");
|
|
2913
2914
|
const steps = Number(config.steps || 4);
|
|
@@ -3324,10 +3325,7 @@ var init_AndroidXRCodeTemplates = __esm({
|
|
|
3324
3325
|
]
|
|
3325
3326
|
};
|
|
3326
3327
|
const lines = mlkitSetup[task] ?? mlkitSetup["classification"];
|
|
3327
|
-
return [
|
|
3328
|
-
`// @vision -- ML Kit Vision (task: ${task})`,
|
|
3329
|
-
...lines
|
|
3330
|
-
];
|
|
3328
|
+
return [`// @vision -- ML Kit Vision (task: ${task})`, ...lines];
|
|
3331
3329
|
}
|
|
3332
3330
|
},
|
|
3333
3331
|
spatial_awareness: {
|
|
@@ -4010,7 +4008,9 @@ function generateNodeFactoryFile(compiler, composition) {
|
|
|
4010
4008
|
compiler.indentLevel = 0;
|
|
4011
4009
|
const pkg = compiler.options.packageName;
|
|
4012
4010
|
compiler.emit("// Auto-generated by HoloScript AndroidXRCompiler");
|
|
4013
|
-
compiler.emit(
|
|
4011
|
+
compiler.emit(
|
|
4012
|
+
`// Node Factory: ${compiler.escapeStringValue(composition.name, "Kotlin")}`
|
|
4013
|
+
);
|
|
4014
4014
|
compiler.emit("");
|
|
4015
4015
|
compiler.emit(`package ${pkg}`);
|
|
4016
4016
|
compiler.emit("");
|
|
@@ -4109,7 +4109,9 @@ function compileObjectFactory(compiler, obj) {
|
|
|
4109
4109
|
compiler.emit("parent = session.scene.activitySpace");
|
|
4110
4110
|
const pos = compiler.findProp(obj, "position");
|
|
4111
4111
|
if (pos && Array.isArray(pos)) {
|
|
4112
|
-
compiler.emit(
|
|
4112
|
+
compiler.emit(
|
|
4113
|
+
`setPose(Pose(${compiler.toKotlinFloat3(pos)}, Quaternion.identity()))`
|
|
4114
|
+
);
|
|
4113
4115
|
}
|
|
4114
4116
|
const scale = compiler.findProp(obj, "scale");
|
|
4115
4117
|
if (scale && Array.isArray(scale)) {
|
|
@@ -4632,7 +4634,9 @@ function emitObject(compiler, obj) {
|
|
|
4632
4634
|
compiler.emit(`// Activate strictly if depth API is physically supported on-device`);
|
|
4633
4635
|
compiler.emit(`if (xrSession.isDepthSupported) {`);
|
|
4634
4636
|
compiler.indent();
|
|
4635
|
-
compiler.emit(
|
|
4637
|
+
compiler.emit(
|
|
4638
|
+
`xrSession.scene.configure { config -> config.depthMode = Config.DepthMode.AUTOMATIC }`
|
|
4639
|
+
);
|
|
4636
4640
|
compiler.emit(`${v}.enableDepthOcclusion(true)`);
|
|
4637
4641
|
compiler.dedent();
|
|
4638
4642
|
compiler.emit(`}`);
|
|
@@ -4646,7 +4650,9 @@ function emitObject(compiler, obj) {
|
|
|
4646
4650
|
compiler.emit(`// AI upscaling: load texture, apply TFLite super-resolution`);
|
|
4647
4651
|
compiler.emit(`val ${v}TexturePath = "${texture}"`);
|
|
4648
4652
|
compiler.emit(`val ${v}OriginalBitmap = BitmapFactory.decodeFile(${v}TexturePath)`);
|
|
4649
|
-
compiler.emit(
|
|
4653
|
+
compiler.emit(
|
|
4654
|
+
`val ${v}UpscaledBitmap = ${v}Upscale(LocalContext.current, ${v}OriginalBitmap)`
|
|
4655
|
+
);
|
|
4650
4656
|
compiler.emit(`// Apply ${v}UpscaledBitmap to material texture`);
|
|
4651
4657
|
} else {
|
|
4652
4658
|
compiler.emit(`// AI upscaling trait present but no texture property found on ${v}`);
|
|
@@ -4660,10 +4666,14 @@ function emitObject(compiler, obj) {
|
|
|
4660
4666
|
compiler.emit(`val ${v}MaskPath = "${mask}"`);
|
|
4661
4667
|
compiler.emit(`val ${v}ImageBitmap = BitmapFactory.decodeFile(${v}TexturePath)`);
|
|
4662
4668
|
compiler.emit(`val ${v}MaskBitmap = BitmapFactory.decodeFile(${v}MaskPath)`);
|
|
4663
|
-
compiler.emit(
|
|
4669
|
+
compiler.emit(
|
|
4670
|
+
`val ${v}InpaintedBitmap = ${v}Inpaint(LocalContext.current, ${v}ImageBitmap, ${v}MaskBitmap)`
|
|
4671
|
+
);
|
|
4664
4672
|
compiler.emit(`// Apply ${v}InpaintedBitmap to material texture`);
|
|
4665
4673
|
} else {
|
|
4666
|
-
compiler.emit(
|
|
4674
|
+
compiler.emit(
|
|
4675
|
+
`// AI inpainting trait present but requires both 'texture' and 'mask' properties on ${v}`
|
|
4676
|
+
);
|
|
4667
4677
|
}
|
|
4668
4678
|
}
|
|
4669
4679
|
}
|
|
@@ -4775,7 +4785,9 @@ function emitAudio(compiler, audio) {
|
|
|
4775
4785
|
compiler.emit("");
|
|
4776
4786
|
compiler.emit(`// Audio: ${compiler.escapeStringValue(audio.name, "Kotlin")}`);
|
|
4777
4787
|
if (src) {
|
|
4778
|
-
compiler.emit(
|
|
4788
|
+
compiler.emit(
|
|
4789
|
+
`val ${v}Id = soundPool.load(this, R.raw.${compiler.sanitizeName(src)}, 1)`
|
|
4790
|
+
);
|
|
4779
4791
|
}
|
|
4780
4792
|
if (spatial && pos && Array.isArray(pos)) {
|
|
4781
4793
|
compiler.emit(
|
|
@@ -4867,7 +4879,9 @@ function emitFaceTracking(compiler, varName, config) {
|
|
|
4867
4879
|
if (blendshapes.length > 0) {
|
|
4868
4880
|
for (const bs of blendshapes) {
|
|
4869
4881
|
const bsConst = `FaceBlendShapeType.FACE_BLEND_SHAPE_TYPE_${bs.toUpperCase()}`;
|
|
4870
|
-
compiler.emit(
|
|
4882
|
+
compiler.emit(
|
|
4883
|
+
`val ${varName}_${compiler.sanitizeName(bs)} = faceState.blendShapes[${bsConst}]`
|
|
4884
|
+
);
|
|
4871
4885
|
}
|
|
4872
4886
|
} else {
|
|
4873
4887
|
compiler.emit(
|
|
@@ -5248,7 +5262,9 @@ function emitGlimmerObject(compiler, obj) {
|
|
|
5248
5262
|
} else if (modelSrc) {
|
|
5249
5263
|
compiler.emit(`Card(`);
|
|
5250
5264
|
compiler.indent();
|
|
5251
|
-
compiler.emit(
|
|
5265
|
+
compiler.emit(
|
|
5266
|
+
`title = { Text("${compiler.escapeStringValue(obj.name, "Kotlin")}") },`
|
|
5267
|
+
);
|
|
5252
5268
|
compiler.emit(`action = {`);
|
|
5253
5269
|
compiler.indent();
|
|
5254
5270
|
compiler.emit(`Button(onClick = { /* interact with ${v} */ }) {`);
|
|
@@ -5727,5 +5743,5 @@ var init_AndroidXRCompiler = __esm({
|
|
|
5727
5743
|
});
|
|
5728
5744
|
|
|
5729
5745
|
export { ANDROIDXR_TRAIT_MAP, AndroidXRCompiler, AndroidXRCompiler_exports, compileToAndroidXR, getTraitMapping, init_AndroidXRCompiler, init_AndroidXRTraitMap };
|
|
5730
|
-
//# sourceMappingURL=chunk-
|
|
5731
|
-
//# sourceMappingURL=chunk-
|
|
5746
|
+
//# sourceMappingURL=chunk-7VMGP2FW.js.map
|
|
5747
|
+
//# sourceMappingURL=chunk-7VMGP2FW.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHoloMapRuntime, HOLOMAP_DEFAULTS } from './chunk-
|
|
1
|
+
import { createHoloMapRuntime, HOLOMAP_DEFAULTS } from './chunk-Z6PMDS4G.js';
|
|
2
2
|
|
|
3
3
|
// src/reconstruction/FusedAttentionKernel.ts
|
|
4
4
|
var FUSED_ATTENTION_WGSL = `
|
|
@@ -619,5 +619,5 @@ async function replayMobileSensorBundle(bundle, config = {}) {
|
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
export { ANCHOR_DEFAULTS, ARCORE_DEPTH_RECOMMENDED_RANGE_MILLIMETERS, HOLOMAP_MOBILE_SENSOR_BUNDLE_VERSION, TRAJECTORY_DEFAULTS, arCoreDepthFrameToMobileSensorFrame, cameraPoseFromColumnMajorTransform, createAnchorContext, createArCoreDepthMobileSensorBundle, createFusedAttentionBackend, createPagedKVCache, createTrajectoryMemory, mergeAnchoredProvenance, mobileSensorBundleToFrames, replayMobileSensorBundle, validateMobileSensorBundle };
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
623
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-7X5PNIQJ.js.map
|
|
623
|
+
//# sourceMappingURL=chunk-7X5PNIQJ.js.map
|