@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkUVFI7XIR_cjs = require('./chunk-UVFI7XIR.cjs');
|
|
4
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
5
5
|
|
|
6
6
|
// src/compiler/TraitCompositionCompiler.ts
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
chunkLODTHGST_cjs.init_AgentRBAC();
|
|
8
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
9
|
+
chunkUVFI7XIR_cjs.init_ProvenanceSemiring();
|
|
10
10
|
var CompositionConflictError = class extends Error {
|
|
11
11
|
constructor(traitA, traitB, conflictKey) {
|
|
12
12
|
super(
|
|
@@ -63,7 +63,7 @@ var TraitCompositionCompiler = class {
|
|
|
63
63
|
*/
|
|
64
64
|
validateAccess(agentToken) {
|
|
65
65
|
if (!agentToken) return;
|
|
66
|
-
const rbac =
|
|
66
|
+
const rbac = chunkLODTHGST_cjs.getRBAC();
|
|
67
67
|
const decision = rbac.checkAccess({
|
|
68
68
|
token: agentToken,
|
|
69
69
|
resourceType: "ast" /* AST */,
|
|
@@ -83,12 +83,12 @@ var TraitCompositionCompiler = class {
|
|
|
83
83
|
if (!handler) throw new MissingComponentError(decl.name, name);
|
|
84
84
|
return { name, handler };
|
|
85
85
|
});
|
|
86
|
-
if (
|
|
86
|
+
if (chunkUVFI7XIR_cjs.authorityWeight(
|
|
87
87
|
decl.provenance?.context?.authorityLevel ?? 0
|
|
88
88
|
) < 100) {
|
|
89
89
|
this.detectConflicts(handlers);
|
|
90
90
|
}
|
|
91
|
-
const semiring = new
|
|
91
|
+
const semiring = new chunkUVFI7XIR_cjs.ProvenanceSemiring();
|
|
92
92
|
const applications = [];
|
|
93
93
|
for (const { name, handler } of handlers) {
|
|
94
94
|
let configAccumulator = {};
|
|
@@ -154,7 +154,7 @@ var TraitCompositionCompiler = class {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
var UnauthorizedTraitCompositionAccessError = class extends
|
|
157
|
+
var UnauthorizedTraitCompositionAccessError = class extends chunkLODTHGST_cjs.UnauthorizedCompilerAccessError {
|
|
158
158
|
constructor(decision, compilerName) {
|
|
159
159
|
super(decision, "trait composition", compilerName);
|
|
160
160
|
this.name = "UnauthorizedTraitCompositionAccessError";
|
|
@@ -165,5 +165,5 @@ exports.CompositionConflictError = CompositionConflictError;
|
|
|
165
165
|
exports.MissingComponentError = MissingComponentError;
|
|
166
166
|
exports.TraitCompositionCompiler = TraitCompositionCompiler;
|
|
167
167
|
exports.UnauthorizedTraitCompositionAccessError = UnauthorizedTraitCompositionAccessError;
|
|
168
|
-
//# sourceMappingURL=chunk-
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
168
|
+
//# sourceMappingURL=chunk-7ZHYEITD.cjs.map
|
|
169
|
+
//# sourceMappingURL=chunk-7ZHYEITD.cjs.map
|
|
@@ -182,5 +182,5 @@ exports.maxAbsDiff = maxAbsDiff;
|
|
|
182
182
|
exports.mulberry32 = mulberry32;
|
|
183
183
|
exports.tropicalMinPlusSpmv = tropicalMinPlusSpmv;
|
|
184
184
|
exports.tropicalMinPlusSpmvDense = tropicalMinPlusSpmvDense;
|
|
185
|
-
//# sourceMappingURL=chunk-
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
185
|
+
//# sourceMappingURL=chunk-ACVWFGBI.cjs.map
|
|
186
|
+
//# sourceMappingURL=chunk-ACVWFGBI.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkEDPYCLRC_cjs = require('./chunk-EDPYCLRC.cjs');
|
|
4
|
+
var chunkGVFJ6T4S_cjs = require('./chunk-GVFJ6T4S.cjs');
|
|
5
5
|
|
|
6
6
|
// src/HoloScriptDebugger.ts
|
|
7
7
|
var HoloScriptDebugger = class {
|
|
@@ -21,8 +21,8 @@ var HoloScriptDebugger = class {
|
|
|
21
21
|
callStack: [],
|
|
22
22
|
breakpoints: []
|
|
23
23
|
};
|
|
24
|
-
this.runtime = runtime || new
|
|
25
|
-
this.parser = new
|
|
24
|
+
this.runtime = runtime || new chunkEDPYCLRC_cjs.HoloScriptRuntime();
|
|
25
|
+
this.parser = new chunkGVFJ6T4S_cjs.HoloScriptCodeParser();
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Load source code for debugging
|
|
@@ -420,5 +420,5 @@ function createDebugger(runtime) {
|
|
|
420
420
|
|
|
421
421
|
exports.HoloScriptDebugger = HoloScriptDebugger;
|
|
422
422
|
exports.createDebugger = createDebugger;
|
|
423
|
-
//# sourceMappingURL=chunk-
|
|
424
|
-
//# sourceMappingURL=chunk-
|
|
423
|
+
//# sourceMappingURL=chunk-AWB7QYY6.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-AWB7QYY6.cjs.map
|
|
@@ -127,29 +127,11 @@ function validateBotanicalLotusConfig(input = {}) {
|
|
|
127
127
|
material.subsurface_radius_rgb.forEach(
|
|
128
128
|
(value, index) => addRangeError(errors, `material.subsurface_radius_rgb[${index}]`, value, 0, 2)
|
|
129
129
|
);
|
|
130
|
-
addRangeError(
|
|
131
|
-
|
|
132
|
-
"material.petal_translucency_base",
|
|
133
|
-
material.petal_translucency_base,
|
|
134
|
-
0,
|
|
135
|
-
1
|
|
136
|
-
);
|
|
137
|
-
addRangeError(
|
|
138
|
-
errors,
|
|
139
|
-
"material.petal_translucency_edge",
|
|
140
|
-
material.petal_translucency_edge,
|
|
141
|
-
0,
|
|
142
|
-
1
|
|
143
|
-
);
|
|
130
|
+
addRangeError(errors, "material.petal_translucency_base", material.petal_translucency_base, 0, 1);
|
|
131
|
+
addRangeError(errors, "material.petal_translucency_edge", material.petal_translucency_edge, 0, 1);
|
|
144
132
|
addRangeError(errors, "material.roughness", material.roughness, 0, 1);
|
|
145
133
|
addRangeError(errors, "material.ior", material.ior, 1, 2.5);
|
|
146
|
-
addRangeError(
|
|
147
|
-
errors,
|
|
148
|
-
"material.vein_normal_intensity",
|
|
149
|
-
material.vein_normal_intensity,
|
|
150
|
-
0,
|
|
151
|
-
0.25
|
|
152
|
-
);
|
|
134
|
+
addRangeError(errors, "material.vein_normal_intensity", material.vein_normal_intensity, 0, 0.25);
|
|
153
135
|
addRangeError(errors, "material.edge_curl_intensity", material.edge_curl_intensity, 0, 1);
|
|
154
136
|
addRangeError(errors, "material.gravity_sag_outer", material.gravity_sag_outer, 0, 1);
|
|
155
137
|
addRangeError(errors, "material.sheen", material.sheen, 0, 1);
|
|
@@ -169,13 +151,7 @@ function validateBotanicalLotusConfig(input = {}) {
|
|
|
169
151
|
errors.push(`geometry.petal_rings[${index}].count must be a positive integer`);
|
|
170
152
|
}
|
|
171
153
|
addRangeError(errors, `geometry.petal_rings[${index}].cup`, ring.cup, 0, 1);
|
|
172
|
-
addRangeError(
|
|
173
|
-
errors,
|
|
174
|
-
`geometry.petal_rings[${index}].gravity_sag`,
|
|
175
|
-
ring.gravity_sag,
|
|
176
|
-
0,
|
|
177
|
-
1
|
|
178
|
-
);
|
|
154
|
+
addRangeError(errors, `geometry.petal_rings[${index}].gravity_sag`, ring.gravity_sag, 0, 1);
|
|
179
155
|
});
|
|
180
156
|
if (!Number.isInteger(geometry.stamen_filament_count) || geometry.stamen_filament_count <= 0) {
|
|
181
157
|
errors.push("geometry.stamen_filament_count must be a positive integer");
|
|
@@ -801,7 +777,14 @@ function simulateLotusMorphogenesis(params) {
|
|
|
801
777
|
primordia,
|
|
802
778
|
emergentDivergenceDeg: meanDeg,
|
|
803
779
|
divergenceSpreadDeg: spreadDeg,
|
|
804
|
-
resolvedParams: {
|
|
780
|
+
resolvedParams: {
|
|
781
|
+
count,
|
|
782
|
+
seed,
|
|
783
|
+
apexRadius,
|
|
784
|
+
radialVelocity,
|
|
785
|
+
inhibitionExponent: s,
|
|
786
|
+
angularSamples: samples
|
|
787
|
+
}
|
|
805
788
|
};
|
|
806
789
|
}
|
|
807
790
|
function lotusInhibitionAt(theta, primordia, range, apexRadius) {
|
|
@@ -854,8 +837,18 @@ function stepLotusMeristem(m) {
|
|
|
854
837
|
}
|
|
855
838
|
let off = bestK;
|
|
856
839
|
if (bestK > 0 && bestK < m.samples) {
|
|
857
|
-
const y0 = lotusInhibitionAt(
|
|
858
|
-
|
|
840
|
+
const y0 = lotusInhibitionAt(
|
|
841
|
+
m.last + m.wMin + m.step * (bestK - 1),
|
|
842
|
+
m.primordia,
|
|
843
|
+
m.range,
|
|
844
|
+
m.apexRadius
|
|
845
|
+
);
|
|
846
|
+
const y2 = lotusInhibitionAt(
|
|
847
|
+
m.last + m.wMin + m.step * (bestK + 1),
|
|
848
|
+
m.primordia,
|
|
849
|
+
m.range,
|
|
850
|
+
m.apexRadius
|
|
851
|
+
);
|
|
859
852
|
const den = y0 - 2 * bestI + y2;
|
|
860
853
|
if (Math.abs(den) > 1e-12) off = bestK + 0.5 * (y0 - y2) / den;
|
|
861
854
|
}
|
|
@@ -1213,7 +1206,11 @@ function stepLotusPetalTurgor(state, dt, developmentalTime) {
|
|
|
1213
1206
|
const rate = state.turgorStiffness * state.turgor * dt;
|
|
1214
1207
|
for (let i = 0; i < state.segments; i += 1) {
|
|
1215
1208
|
const s = (i + 0.5) / state.segments;
|
|
1216
|
-
const maturity = lotusSmoothstep01(
|
|
1209
|
+
const maturity = lotusSmoothstep01(
|
|
1210
|
+
0,
|
|
1211
|
+
1,
|
|
1212
|
+
(t - state.matureStart - s * state.acropetalDelay) / state.matureSpan
|
|
1213
|
+
);
|
|
1217
1214
|
const kappaRest = state.budCurl * (1 - maturity) + state.openCurl * maturity;
|
|
1218
1215
|
state.kappaActual[i] += rate * (kappaRest - state.kappaActual[i]);
|
|
1219
1216
|
}
|
|
@@ -1388,7 +1385,11 @@ var init_BotanicalLotusTrait = __esm({
|
|
|
1388
1385
|
reference_anchors: updatedAnchors
|
|
1389
1386
|
});
|
|
1390
1387
|
state.config = updatedConfig;
|
|
1391
|
-
state.profile = createBotanicalLotusRenderProfile(
|
|
1388
|
+
state.profile = createBotanicalLotusRenderProfile(
|
|
1389
|
+
updatedConfig,
|
|
1390
|
+
state.placement,
|
|
1391
|
+
state.lighting
|
|
1392
|
+
);
|
|
1392
1393
|
context.emit?.("botanical_lotus_reference_updated", {
|
|
1393
1394
|
node,
|
|
1394
1395
|
anchorId,
|
|
@@ -1409,7 +1410,11 @@ var init_BotanicalLotusTrait = __esm({
|
|
|
1409
1410
|
surface_normal: surfaceNormal,
|
|
1410
1411
|
world_position: worldPosition
|
|
1411
1412
|
};
|
|
1412
|
-
state.profile = createBotanicalLotusRenderProfile(
|
|
1413
|
+
state.profile = createBotanicalLotusRenderProfile(
|
|
1414
|
+
state.config,
|
|
1415
|
+
state.placement,
|
|
1416
|
+
state.lighting
|
|
1417
|
+
);
|
|
1413
1418
|
context.emit?.("botanical_lotus_surface_bound", {
|
|
1414
1419
|
node,
|
|
1415
1420
|
surfaceAnchorId,
|
|
@@ -1431,7 +1436,11 @@ var init_BotanicalLotusTrait = __esm({
|
|
|
1431
1436
|
color_temperature_k: colorTemperatureK,
|
|
1432
1437
|
dominant_direction: dominantDirection
|
|
1433
1438
|
};
|
|
1434
|
-
state.profile = createBotanicalLotusRenderProfile(
|
|
1439
|
+
state.profile = createBotanicalLotusRenderProfile(
|
|
1440
|
+
state.config,
|
|
1441
|
+
state.placement,
|
|
1442
|
+
state.lighting
|
|
1443
|
+
);
|
|
1435
1444
|
context.emit?.("botanical_lotus_lighting_updated", {
|
|
1436
1445
|
node,
|
|
1437
1446
|
referenceId,
|
|
@@ -1579,9 +1588,21 @@ totalEmissiveRadiance += lotusScatter * (0.28 + uLotusBloom * 0.72);`
|
|
|
1579
1588
|
{ stage: "vertex", include: "begin_vertex", code: LOTUS_PETAL_SHADER_CHUNKS.vertexBend },
|
|
1580
1589
|
{ stage: "vertex", include: "worldpos_vertex", code: LOTUS_PETAL_SHADER_CHUNKS.vertexWorld },
|
|
1581
1590
|
{ stage: "fragment", include: "common", code: LOTUS_PETAL_SHADER_CHUNKS.fragmentHeader },
|
|
1582
|
-
{
|
|
1583
|
-
|
|
1584
|
-
|
|
1591
|
+
{
|
|
1592
|
+
stage: "fragment",
|
|
1593
|
+
include: "normal_fragment_maps",
|
|
1594
|
+
code: LOTUS_PETAL_SHADER_CHUNKS.fragmentNormalInjection
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
stage: "fragment",
|
|
1598
|
+
include: "color_fragment",
|
|
1599
|
+
code: LOTUS_PETAL_SHADER_CHUNKS.fragmentColorInjection
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
stage: "fragment",
|
|
1603
|
+
include: "emissivemap_fragment",
|
|
1604
|
+
code: LOTUS_PETAL_SHADER_CHUNKS.fragmentEmissiveInjection
|
|
1605
|
+
}
|
|
1585
1606
|
];
|
|
1586
1607
|
LOTUS_PETAL_DEFAULT_DYNAMIC = {
|
|
1587
1608
|
devTime: 1,
|
|
@@ -1613,5 +1634,5 @@ totalEmissiveRadiance += lotusScatter * (0.28 + uLotusBloom * 0.72);`
|
|
|
1613
1634
|
});
|
|
1614
1635
|
|
|
1615
1636
|
export { DEFAULT_BOTANICAL_LOTUS_CONFIG, DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS, LOTUS_GENESIS_SEED_PLACEHOLDER, LOTUS_GOLDEN_ANGLE_DEG, LOTUS_GROWTH_SECONDS, LOTUS_OUTER_PETAL_COLOR, LOTUS_PETAL_CHUNK_ENTRIES, LOTUS_PETAL_SHADER_CHUNKS, LOTUS_PETAL_UNIFORM_BINDINGS, LOTUS_RING_SCALING, assertBotanicalLotusConfig, botanicalLotusHandler, buildLotusFlowerPlacements, buildLotusPetalGeometryData, buildLotusPetalMaterialSpec, buildLotusSceneFromComposition, buildLotusSceneScaffold, createBotanicalLotusRenderProfile, createLotusMeristem, createLotusMorphogen, createLotusMorphogen2D, createLotusPetalTurgor, createLotusPond, deriveBotanicalLotusAnchorStatus, deriveLotusBloomFromGlow, disturbLotusPond, generateBotanicalNormalMap, generateBotanicalRoughnessMap, getBotanicalLotusPetalCount, init_BotanicalLotusTrait, lotusMorphogen2DPeaks, lotusMorphogen2DSampleAt, lotusMorphogenPeaks, lotusPetalGeometryParamsFromProfile, lotusPetalRenderColor, lotusPetalTurgorOpenProgress, lotusPetalTurgorTipDeg, lotusPondSurface, normalizeBotanicalLotusConfig, simulateLotusMorphogenesis, simulateLotusPetalGrowth, simulateLotusPhyllotaxis, stepLotusMeristem, stepLotusMorphogen, stepLotusMorphogen2D, stepLotusPetalTurgor, stepLotusPond, validateBotanicalLotusConfig };
|
|
1616
|
-
//# sourceMappingURL=chunk-
|
|
1617
|
-
//# sourceMappingURL=chunk-
|
|
1637
|
+
//# sourceMappingURL=chunk-B4EKV6HQ.js.map
|
|
1638
|
+
//# sourceMappingURL=chunk-B4EKV6HQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToVisionOS, compilePostProcessingBlock, compileParticleBlock, particlesToVisionOS, compilePhysicsBlock, physicsToVisionOS, compileMaterialBlock, materialToVisionOS } 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, audioSourceToVisionOS, compilePostProcessingBlock, compileParticleBlock, particlesToVisionOS, compilePhysicsBlock, physicsToVisionOS, compileMaterialBlock, materialToVisionOS } from './chunk-ZA34AN3R.js';
|
|
3
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
4
4
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
6
6
|
|
|
@@ -2422,5 +2422,5 @@ ${layers}`;
|
|
|
2422
2422
|
});
|
|
2423
2423
|
|
|
2424
2424
|
export { VisionOSCompiler, VisionOSCompiler_exports, generateTraitCode, getTraitMapping, init_VisionOSCompiler, init_VisionOSTraitMap, listAllTraits };
|
|
2425
|
-
//# sourceMappingURL=chunk-
|
|
2426
|
-
//# sourceMappingURL=chunk-
|
|
2425
|
+
//# sourceMappingURL=chunk-BRNUPDHJ.js.map
|
|
2426
|
+
//# sourceMappingURL=chunk-BRNUPDHJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUnreal, compileAudioSourceBlock, audioSourceToUnreal, compilePostProcessingBlock, postProcessingToUnreal, compileParticleBlock, particlesToUnreal, compilePhysicsBlock, physicsToUnreal, compileMaterialBlock, materialToUnreal } from './chunk-
|
|
3
|
-
import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GW3LKD5C.js';
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUnreal, compileAudioSourceBlock, audioSourceToUnreal, compilePostProcessingBlock, postProcessingToUnreal, compileParticleBlock, particlesToUnreal, compilePhysicsBlock, physicsToUnreal, compileMaterialBlock, materialToUnreal } from './chunk-ZA34AN3R.js';
|
|
3
|
+
import { createTestCompilerToken, 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
|
|
|
@@ -399,35 +399,47 @@ var init_UnrealCompiler = __esm({
|
|
|
399
399
|
break;
|
|
400
400
|
case "grabbable":
|
|
401
401
|
this.emitS(`// @grabbable \u2014 implement via GrabComponent or VR interaction framework`);
|
|
402
|
-
this.emitS(
|
|
402
|
+
this.emitS(
|
|
403
|
+
`UE_LOG(LogTemp, Warning, TEXT("@grabbable on %s \u2014 trait stubbed, needs GrabComponent implementation"), *GetName());`
|
|
404
|
+
);
|
|
403
405
|
break;
|
|
404
406
|
case "pointable":
|
|
405
407
|
case "hoverable":
|
|
406
408
|
this.emitS(
|
|
407
409
|
`// @${this.escapeStringValue(trait.name, "TypeScript")} \u2014 implement via line trace interaction`
|
|
408
410
|
);
|
|
409
|
-
this.emitS(
|
|
411
|
+
this.emitS(
|
|
412
|
+
`UE_LOG(LogTemp, Warning, TEXT("@%s on %s \u2014 trait stubbed, needs line trace interaction"), TEXT("${this.escapeStringValue(trait.name, "TypeScript")}"), *GetName());`
|
|
413
|
+
);
|
|
410
414
|
break;
|
|
411
415
|
case "portal":
|
|
412
416
|
this.emitS(`// @portal \u2014 destination: "${trait.config?.destination || "unknown"}"`);
|
|
413
|
-
this.emitS(
|
|
417
|
+
this.emitS(
|
|
418
|
+
`UE_LOG(LogTemp, Warning, TEXT("@portal on %s \u2014 trait stubbed, needs level streaming/teleport implementation"), *GetName());`
|
|
419
|
+
);
|
|
414
420
|
break;
|
|
415
421
|
case "emissive":
|
|
416
422
|
case "glowing":
|
|
417
423
|
this.emitS(
|
|
418
424
|
`// @${this.escapeStringValue(trait.name, "TypeScript")} \u2014 apply emissive material`
|
|
419
425
|
);
|
|
420
|
-
this.emitS(
|
|
426
|
+
this.emitS(
|
|
427
|
+
`UE_LOG(LogTemp, Warning, TEXT("@%s on %s \u2014 trait stubbed, needs emissive material"), TEXT("${this.escapeStringValue(trait.name, "TypeScript")}"), *GetName());`
|
|
428
|
+
);
|
|
421
429
|
break;
|
|
422
430
|
case "transparent":
|
|
423
431
|
this.emitS(`// @transparent \u2014 set material blend mode`);
|
|
424
|
-
this.emitS(
|
|
432
|
+
this.emitS(
|
|
433
|
+
`UE_LOG(LogTemp, Warning, TEXT("@transparent on %s \u2014 trait stubbed, needs translucent material"), *GetName());`
|
|
434
|
+
);
|
|
425
435
|
break;
|
|
426
436
|
default:
|
|
427
437
|
this.emitS(
|
|
428
438
|
`// @${this.escapeStringValue(trait.name, "TypeScript")} \u2014 custom trait implementation required`
|
|
429
439
|
);
|
|
430
|
-
this.emitS(
|
|
440
|
+
this.emitS(
|
|
441
|
+
`UE_LOG(LogTemp, Warning, TEXT("@%s on %s \u2014 unhandled trait, needs custom implementation"), TEXT("${this.escapeStringValue(trait.name, "TypeScript")}"), *GetName());`
|
|
442
|
+
);
|
|
431
443
|
}
|
|
432
444
|
}
|
|
433
445
|
compileLightSetup(light) {
|
|
@@ -710,5 +722,5 @@ var init_UnrealCompiler = __esm({
|
|
|
710
722
|
});
|
|
711
723
|
|
|
712
724
|
export { UnrealCompiler, UnrealCompiler_exports, compileToUnreal, init_UnrealCompiler };
|
|
713
|
-
//# sourceMappingURL=chunk-
|
|
714
|
-
//# sourceMappingURL=chunk-
|
|
725
|
+
//# sourceMappingURL=chunk-BTKZGHAV.js.map
|
|
726
|
+
//# sourceMappingURL=chunk-BTKZGHAV.js.map
|