@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
|
@@ -75,10 +75,14 @@ var mitosisHandler = {
|
|
|
75
75
|
var JEPAPredictor = class {
|
|
76
76
|
constructor(config, weights) {
|
|
77
77
|
if (!Number.isInteger(config.latentDim) || config.latentDim < 1) {
|
|
78
|
-
throw new RangeError(
|
|
78
|
+
throw new RangeError(
|
|
79
|
+
`JEPAPredictor: latentDim must be a positive integer, got ${config.latentDim}`
|
|
80
|
+
);
|
|
79
81
|
}
|
|
80
82
|
if (!Number.isInteger(config.condDim) || config.condDim < 0) {
|
|
81
|
-
throw new RangeError(
|
|
83
|
+
throw new RangeError(
|
|
84
|
+
`JEPAPredictor: condDim must be a non-negative integer, got ${config.condDim}`
|
|
85
|
+
);
|
|
82
86
|
}
|
|
83
87
|
this.latentDim = config.latentDim;
|
|
84
88
|
this.condDim = config.condDim;
|
|
@@ -384,12 +388,20 @@ var jepObjectiveHandler = {
|
|
|
384
388
|
const step = state.step;
|
|
385
389
|
const contextStr = readString(event.context);
|
|
386
390
|
if (!contextStr) {
|
|
387
|
-
emitError(context, {
|
|
391
|
+
emitError(context, {
|
|
392
|
+
code: "JEPA_CONTEXT_REQUIRED",
|
|
393
|
+
message: "jepa:encode_pair requires a non-empty context string",
|
|
394
|
+
step
|
|
395
|
+
});
|
|
388
396
|
return;
|
|
389
397
|
}
|
|
390
398
|
const targetVec = toFloat32Array(event.targetVec);
|
|
391
399
|
if (!targetVec) {
|
|
392
|
-
emitError(context, {
|
|
400
|
+
emitError(context, {
|
|
401
|
+
code: "JEPA_TARGET_VEC_REQUIRED",
|
|
402
|
+
message: "jepa:encode_pair requires targetVec (Float32Array or number[])",
|
|
403
|
+
step
|
|
404
|
+
});
|
|
393
405
|
return;
|
|
394
406
|
}
|
|
395
407
|
if (targetVec.length !== config.latentDim) {
|
|
@@ -402,17 +414,17 @@ var jepObjectiveHandler = {
|
|
|
402
414
|
}
|
|
403
415
|
const contextEmb = encodeContext(state, config, contextStr);
|
|
404
416
|
if (!contextEmb) {
|
|
405
|
-
emitError(context, {
|
|
417
|
+
emitError(context, {
|
|
418
|
+
code: "JEPA_ENCODE_FAILED",
|
|
419
|
+
message: "Context encoding returned null vector",
|
|
420
|
+
step
|
|
421
|
+
});
|
|
406
422
|
return;
|
|
407
423
|
}
|
|
408
424
|
const conditioning = toFloat32ArrayOrNull(event.conditioning);
|
|
409
425
|
const { predicted } = state.predictor.forward(contextEmb, conditioning);
|
|
410
426
|
const predictionLoss = mseLoss(predicted, targetVec);
|
|
411
|
-
const sigregLoss = computeSIGReg(
|
|
412
|
-
predicted,
|
|
413
|
-
config.sigregProjections,
|
|
414
|
-
config.sigregSigma
|
|
415
|
-
);
|
|
427
|
+
const sigregLoss = computeSIGReg(predicted, config.sigregProjections, config.sigregSigma);
|
|
416
428
|
const totalLoss = predictionLoss + config.sigregWeight * sigregLoss;
|
|
417
429
|
context.emit?.("jepa:loss", {
|
|
418
430
|
predictionLoss,
|
|
@@ -446,17 +458,12 @@ function encodeContext(state, config, contextStr) {
|
|
|
446
458
|
};
|
|
447
459
|
const mockNode = {};
|
|
448
460
|
embeddingHandler.onAttach?.(mockNode, state.embeddingConfig, captureContext);
|
|
449
|
-
embeddingHandler.onEvent?.(
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
input: contextStr,
|
|
456
|
-
model: config.embeddingModel,
|
|
457
|
-
dimensions: config.latentDim
|
|
458
|
-
}
|
|
459
|
-
);
|
|
461
|
+
embeddingHandler.onEvent?.(mockNode, state.embeddingConfig, captureContext, {
|
|
462
|
+
type: "embedding:generate",
|
|
463
|
+
input: contextStr,
|
|
464
|
+
model: config.embeddingModel,
|
|
465
|
+
dimensions: config.latentDim
|
|
466
|
+
});
|
|
460
467
|
embeddingHandler.onDetach?.(mockNode, state.embeddingConfig, captureContext);
|
|
461
468
|
return result;
|
|
462
469
|
}
|
|
@@ -596,5 +603,5 @@ var orbitalHandler = {
|
|
|
596
603
|
};
|
|
597
604
|
|
|
598
605
|
export { JEPAPredictor, embeddingHandler, jepObjectiveHandler, mitosisHandler, orbitalHandler };
|
|
599
|
-
//# sourceMappingURL=chunk-
|
|
600
|
-
//# sourceMappingURL=chunk-
|
|
606
|
+
//# sourceMappingURL=chunk-TVANHNJ7.js.map
|
|
607
|
+
//# sourceMappingURL=chunk-TVANHNJ7.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { vec3SubArray, vec3NormalizeInPlace, vec3CrossArray, vec3ScaleArray } from './chunk-
|
|
1
|
+
import { vec3SubArray, vec3NormalizeInPlace, vec3CrossArray, vec3ScaleArray } from './chunk-33YHE7HX.js';
|
|
2
2
|
|
|
3
3
|
// src/compiler/ProceduralGeometry.ts
|
|
4
4
|
var LOD_PRESETS = {
|
|
@@ -1165,5 +1165,5 @@ function generateMembraneGeometry(anchors, subdivisions = 8, bulge = 0.15, lod)
|
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
1167
|
export { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry };
|
|
1168
|
-
//# sourceMappingURL=chunk-
|
|
1169
|
-
//# sourceMappingURL=chunk-
|
|
1168
|
+
//# sourceMappingURL=chunk-UDE4OZMR.js.map
|
|
1169
|
+
//# sourceMappingURL=chunk-UDE4OZMR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWFKVS2K4_cjs = require('./chunk-WFKVS2K4.cjs');
|
|
4
4
|
|
|
5
5
|
// src/reconstruction/FusedAttentionKernel.ts
|
|
6
6
|
var FUSED_ATTENTION_WGSL = `
|
|
@@ -585,9 +585,9 @@ function mobileSensorBundleToFrames(bundle) {
|
|
|
585
585
|
}
|
|
586
586
|
async function replayMobileSensorBundle(bundle, config = {}) {
|
|
587
587
|
const frames = mobileSensorBundleToFrames(bundle);
|
|
588
|
-
const runtime =
|
|
588
|
+
const runtime = chunkWFKVS2K4_cjs.createHoloMapRuntime();
|
|
589
589
|
await runtime.init({
|
|
590
|
-
...
|
|
590
|
+
...chunkWFKVS2K4_cjs.HOLOMAP_DEFAULTS,
|
|
591
591
|
seed: 0,
|
|
592
592
|
modelHash: bundle.bundleId,
|
|
593
593
|
videoHash: bundle.bundleId,
|
|
@@ -635,5 +635,5 @@ exports.mergeAnchoredProvenance = mergeAnchoredProvenance;
|
|
|
635
635
|
exports.mobileSensorBundleToFrames = mobileSensorBundleToFrames;
|
|
636
636
|
exports.replayMobileSensorBundle = replayMobileSensorBundle;
|
|
637
637
|
exports.validateMobileSensorBundle = validateMobileSensorBundle;
|
|
638
|
-
//# sourceMappingURL=chunk-
|
|
639
|
-
//# sourceMappingURL=chunk-
|
|
638
|
+
//# sourceMappingURL=chunk-UGXHYIWT.cjs.map
|
|
639
|
+
//# sourceMappingURL=chunk-UGXHYIWT.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkEBS32AJI_cjs = require('./chunk-EBS32AJI.cjs');
|
|
4
|
+
var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
|
|
5
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
@@ -1699,10 +1699,10 @@ exports.VisionOSCompiler = void 0;
|
|
|
1699
1699
|
var init_VisionOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
1700
1700
|
"src/compiler/VisionOSCompiler.ts"() {
|
|
1701
1701
|
init_VisionOSTraitMap();
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
exports.VisionOSCompiler = class extends
|
|
1702
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
1703
|
+
chunkEBS32AJI_cjs.init_PlatformConditionalCompilerMixin();
|
|
1704
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
1705
|
+
exports.VisionOSCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
1706
1706
|
constructor(options = {}) {
|
|
1707
1707
|
super();
|
|
1708
1708
|
this.compilerName = "VisionOSCompiler";
|
|
@@ -1719,7 +1719,7 @@ var init_VisionOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
1719
1719
|
}
|
|
1720
1720
|
compile(composition, agentToken, outputPath) {
|
|
1721
1721
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
1722
|
-
composition =
|
|
1722
|
+
composition = chunkEBS32AJI_cjs.filterCompositionForPlatform(composition, "visionos");
|
|
1723
1723
|
this.lines = [];
|
|
1724
1724
|
this.indentLevel = 0;
|
|
1725
1725
|
this.emit("// Auto-generated by HoloScript VisionOSCompiler");
|
|
@@ -1840,31 +1840,31 @@ var init_VisionOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
1840
1840
|
this.emit("");
|
|
1841
1841
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
1842
1842
|
let blockIdx = 0;
|
|
1843
|
-
const compiled =
|
|
1843
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
1844
1844
|
domainBlocks,
|
|
1845
1845
|
{
|
|
1846
1846
|
material: (block) => {
|
|
1847
|
-
const mat =
|
|
1848
|
-
return
|
|
1847
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
1848
|
+
return chunkGH6C2QGW_cjs.materialToVisionOS(mat, `db${blockIdx++}`);
|
|
1849
1849
|
},
|
|
1850
1850
|
physics: (block) => {
|
|
1851
|
-
const phys =
|
|
1852
|
-
return
|
|
1851
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
1852
|
+
return chunkGH6C2QGW_cjs.physicsToVisionOS(phys, `db${blockIdx++}`);
|
|
1853
1853
|
},
|
|
1854
1854
|
vfx: (block) => {
|
|
1855
|
-
const ps =
|
|
1856
|
-
return
|
|
1855
|
+
const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
|
|
1856
|
+
return chunkGH6C2QGW_cjs.particlesToVisionOS(ps, `db${blockIdx++}`);
|
|
1857
1857
|
},
|
|
1858
1858
|
postfx: (block) => {
|
|
1859
|
-
const pp =
|
|
1859
|
+
const pp = chunkGH6C2QGW_cjs.compilePostProcessingBlock(block);
|
|
1860
1860
|
return `// Post-Processing: ${pp.keyword} \u2014 configure via RealityKit RenderCallbacks`;
|
|
1861
1861
|
},
|
|
1862
1862
|
audio: (block) => {
|
|
1863
|
-
const audio =
|
|
1864
|
-
return
|
|
1863
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
1864
|
+
return chunkGH6C2QGW_cjs.audioSourceToVisionOS(audio, `db${blockIdx++}`);
|
|
1865
1865
|
},
|
|
1866
1866
|
weather: (block) => {
|
|
1867
|
-
const weather =
|
|
1867
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
1868
1868
|
const w = weather;
|
|
1869
1869
|
const layers = w.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
|
|
1870
1870
|
return `// Weather: ${w.keyword} "${w.name || ""}" \u2014 implement via custom RealityKit particles
|
|
@@ -2429,5 +2429,5 @@ exports.getTraitMapping = getTraitMapping;
|
|
|
2429
2429
|
exports.init_VisionOSCompiler = init_VisionOSCompiler;
|
|
2430
2430
|
exports.init_VisionOSTraitMap = init_VisionOSTraitMap;
|
|
2431
2431
|
exports.listAllTraits = listAllTraits;
|
|
2432
|
-
//# sourceMappingURL=chunk-
|
|
2433
|
-
//# sourceMappingURL=chunk-
|
|
2432
|
+
//# sourceMappingURL=chunk-ULMSSHCJ.cjs.map
|
|
2433
|
+
//# sourceMappingURL=chunk-ULMSSHCJ.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
|
|
5
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
@@ -15,8 +15,8 @@ var SHAPE_TO_PRIMITIVE; exports.PlayCanvasCompiler = void 0;
|
|
|
15
15
|
var init_PlayCanvasCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
16
16
|
"src/compiler/PlayCanvasCompiler.ts"() {
|
|
17
17
|
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
19
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
20
20
|
SHAPE_TO_PRIMITIVE = {
|
|
21
21
|
sphere: "sphere",
|
|
22
22
|
orb: "sphere",
|
|
@@ -32,7 +32,7 @@ var init_PlayCanvasCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
32
32
|
capsule: "capsule",
|
|
33
33
|
disc: "plane"
|
|
34
34
|
};
|
|
35
|
-
exports.PlayCanvasCompiler = class extends
|
|
35
|
+
exports.PlayCanvasCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
36
36
|
constructor(options = {}) {
|
|
37
37
|
super();
|
|
38
38
|
this.compilerName = "PlayCanvasCompiler";
|
|
@@ -146,33 +146,33 @@ var init_PlayCanvasCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
146
146
|
this.emit("");
|
|
147
147
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
148
148
|
let blockIdx = 0;
|
|
149
|
-
const compiled =
|
|
149
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
150
150
|
// @ts-expect-error During migration
|
|
151
151
|
domainBlocks,
|
|
152
152
|
{
|
|
153
153
|
material: (block) => {
|
|
154
|
-
const mat =
|
|
155
|
-
return
|
|
154
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
155
|
+
return chunkGH6C2QGW_cjs.materialToPlayCanvas(mat, `db${blockIdx++}`);
|
|
156
156
|
},
|
|
157
157
|
physics: (block) => {
|
|
158
|
-
const phys =
|
|
159
|
-
return
|
|
158
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
159
|
+
return chunkGH6C2QGW_cjs.physicsToPlayCanvas(phys, `db${blockIdx++}`);
|
|
160
160
|
},
|
|
161
161
|
vfx: (block) => {
|
|
162
|
-
const ps =
|
|
163
|
-
return
|
|
162
|
+
const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
|
|
163
|
+
return chunkGH6C2QGW_cjs.particlesToPlayCanvas(ps, `db${blockIdx++}`);
|
|
164
164
|
},
|
|
165
165
|
postfx: (block) => {
|
|
166
|
-
const pp =
|
|
166
|
+
const pp = chunkGH6C2QGW_cjs.compilePostProcessingBlock(block);
|
|
167
167
|
return `// Post-Processing: ${pp.keyword} \u2014 configure via PlayCanvas PostEffects
|
|
168
168
|
` + pp.effects.map((e) => `// Effect: ${e.type} \u2014 ${JSON.stringify(e.properties)}`).join("\n");
|
|
169
169
|
},
|
|
170
170
|
audio: (block) => {
|
|
171
|
-
const audio =
|
|
172
|
-
return
|
|
171
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
172
|
+
return chunkGH6C2QGW_cjs.audioSourceToPlayCanvas(audio, `db${blockIdx++}`);
|
|
173
173
|
},
|
|
174
174
|
weather: (block) => {
|
|
175
|
-
const weather =
|
|
175
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
176
176
|
return `// Weather: ${weather.keyword} "${weather.name || ""}" \u2014 implement via PlayCanvas particle system
|
|
177
177
|
` + weather.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
|
|
178
178
|
}
|
|
@@ -755,5 +755,5 @@ var init_PlayCanvasCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
755
755
|
|
|
756
756
|
exports.PlayCanvasCompiler_exports = PlayCanvasCompiler_exports;
|
|
757
757
|
exports.init_PlayCanvasCompiler = init_PlayCanvasCompiler;
|
|
758
|
-
//# sourceMappingURL=chunk-
|
|
759
|
-
//# sourceMappingURL=chunk-
|
|
758
|
+
//# sourceMappingURL=chunk-UOL6Y5TD.cjs.map
|
|
759
|
+
//# sourceMappingURL=chunk-UOL6Y5TD.cjs.map
|
|
@@ -196,9 +196,15 @@ var init_ProvenanceSemiring = chunkHCCQLAA4_cjs.__esm({
|
|
|
196
196
|
this.rules.set("opacity", { property: "opacity", strategy: "min" });
|
|
197
197
|
this.rules.set("velocity", { property: "velocity", strategy: "vec-component-sum" });
|
|
198
198
|
this.rules.set("acceleration", { property: "acceleration", strategy: "vec-component-sum" });
|
|
199
|
-
this.rules.set("angularVelocity", {
|
|
199
|
+
this.rules.set("angularVelocity", {
|
|
200
|
+
property: "angularVelocity",
|
|
201
|
+
strategy: "vec-component-sum"
|
|
202
|
+
});
|
|
200
203
|
this.rules.set("stressTensor", { property: "stressTensor", strategy: "vec-component-max" });
|
|
201
|
-
this.rules.set("displacementField", {
|
|
204
|
+
this.rules.set("displacementField", {
|
|
205
|
+
property: "displacementField",
|
|
206
|
+
strategy: "vec-magnitude-max"
|
|
207
|
+
});
|
|
202
208
|
this.rules.set("forceField", { property: "forceField", strategy: "vec-authority-weighted" });
|
|
203
209
|
}
|
|
204
210
|
/**
|
|
@@ -442,5 +448,5 @@ exports.init_ProvenanceSemiring = init_ProvenanceSemiring;
|
|
|
442
448
|
exports.init_Semiring = init_Semiring;
|
|
443
449
|
exports.isDeadElement = isDeadElement;
|
|
444
450
|
exports.strategyToSemiring = strategyToSemiring;
|
|
445
|
-
//# sourceMappingURL=chunk-
|
|
446
|
-
//# sourceMappingURL=chunk-
|
|
451
|
+
//# sourceMappingURL=chunk-UVFI7XIR.cjs.map
|
|
452
|
+
//# sourceMappingURL=chunk-UVFI7XIR.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
|
|
|
@@ -19,9 +19,9 @@ function findGpuParticleTrait(traits) {
|
|
|
19
19
|
exports.WebGPUCompiler = void 0;
|
|
20
20
|
var init_WebGPUCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
21
21
|
"src/compiler/WebGPUCompiler.ts"() {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.WebGPUCompiler = class extends
|
|
22
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
23
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
24
|
+
exports.WebGPUCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
25
25
|
constructor(options = {}) {
|
|
26
26
|
super();
|
|
27
27
|
this.compilerName = "WebGPUCompiler";
|
|
@@ -77,12 +77,12 @@ var init_WebGPUCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
77
77
|
this.emit("");
|
|
78
78
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
79
79
|
let blockIdx = 0;
|
|
80
|
-
const compiled =
|
|
80
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
81
81
|
domainBlocks,
|
|
82
82
|
{
|
|
83
83
|
material: (block) => {
|
|
84
|
-
const mat =
|
|
85
|
-
return
|
|
84
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
85
|
+
return chunkGH6C2QGW_cjs.materialToWebGPU(mat, `db${blockIdx++}`);
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -668,5 +668,5 @@ var init_WebGPUCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
668
668
|
|
|
669
669
|
exports.WebGPUCompiler_exports = WebGPUCompiler_exports;
|
|
670
670
|
exports.init_WebGPUCompiler = init_WebGPUCompiler;
|
|
671
|
-
//# sourceMappingURL=chunk-
|
|
672
|
-
//# sourceMappingURL=chunk-
|
|
671
|
+
//# sourceMappingURL=chunk-V7AKE5VT.cjs.map
|
|
672
|
+
//# sourceMappingURL=chunk-V7AKE5VT.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-
|
|
1
|
+
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-SLHLXUMO.js';
|
|
2
2
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
3
|
-
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-
|
|
4
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToBabylon, compilePostProcessingBlock, postProcessingToBabylon, compileParticleBlock, particlesToBabylon, compilePhysicsBlock, physicsToBabylon, compileMaterialBlock, materialToBabylon } from './chunk-
|
|
5
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
3
|
+
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GW3LKD5C.js';
|
|
4
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToBabylon, compilePostProcessingBlock, postProcessingToBabylon, compileParticleBlock, particlesToBabylon, compilePhysicsBlock, physicsToBabylon, compileMaterialBlock, materialToBabylon } from './chunk-ZA34AN3R.js';
|
|
5
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
6
6
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
7
7
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
8
8
|
|
|
@@ -840,5 +840,5 @@ ${layers}`;
|
|
|
840
840
|
});
|
|
841
841
|
|
|
842
842
|
export { BabylonCompiler, BabylonCompiler_exports, init_BabylonCompiler };
|
|
843
|
-
//# sourceMappingURL=chunk-
|
|
844
|
-
//# sourceMappingURL=chunk-
|
|
843
|
+
//# sourceMappingURL=chunk-VEPGBETF.js.map
|
|
844
|
+
//# sourceMappingURL=chunk-VEPGBETF.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToVRChat, compileInputBlock, navigationToVRChat, compileNavigationBlock, renderingToVRChat, compileRenderingBlock, proceduralToVRChat, compileProceduralBlock, web3ToVRChat, compileWeb3Block, architectureToVRChat, compileArchitectureBlock, musicToVRChat, compileMusicBlock, educationToVRChat, compileEducationBlock, datavizToVRChat, compileDataVizBlock, iotToVRChat, compileIoTBlock, compileRoboticsBlock, roboticsToVRChat, compileHealthcareBlock, healthcareToVRChat, compilePaymentBlock, paymentToVRChat, compileNarrativeBlock, narrativeToVRChat, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToVRChat } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToVRChat, compileInputBlock, navigationToVRChat, compileNavigationBlock, renderingToVRChat, compileRenderingBlock, proceduralToVRChat, compileProceduralBlock, web3ToVRChat, compileWeb3Block, architectureToVRChat, compileArchitectureBlock, musicToVRChat, compileMusicBlock, educationToVRChat, compileEducationBlock, datavizToVRChat, compileDataVizBlock, iotToVRChat, compileIoTBlock, compileRoboticsBlock, roboticsToVRChat, compileHealthcareBlock, healthcareToVRChat, compilePaymentBlock, paymentToVRChat, compileNarrativeBlock, narrativeToVRChat, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToVRChat } from './chunk-ZA34AN3R.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
3
3
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
5
5
|
|
|
@@ -619,5 +619,5 @@ var init_VRChatCompiler = __esm({
|
|
|
619
619
|
});
|
|
620
620
|
|
|
621
621
|
export { VRChatCompiler, VRChatCompiler_exports, compileToVRChat, init_VRChatCompiler };
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
623
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-VF257YKO.js.map
|
|
623
|
+
//# sourceMappingURL=chunk-VF257YKO.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_constants, VR_TRAITS } from './chunk-
|
|
1
|
+
import { init_constants, VR_TRAITS } from './chunk-GASCWJK5.js';
|
|
2
2
|
|
|
3
3
|
// src/constants.ts
|
|
4
4
|
init_constants();
|
|
@@ -765,5 +765,5 @@ var HOLOSCHEMA_GEOMETRIES = VALID_GEOMETRIES;
|
|
|
765
765
|
var HOLOSCHEMA_PROPERTIES = COMMON_PROPERTIES;
|
|
766
766
|
|
|
767
767
|
export { ErrorRecovery, HOLOSCHEMA_GEOMETRIES, HOLOSCHEMA_KEYWORDS, HOLOSCHEMA_PROPERTIES, LIFECYCLE_HOOKS, STRUCTURAL_DIRECTIVES, enrichErrorWithSuggestions, generateQuickFixes };
|
|
768
|
-
//# sourceMappingURL=chunk-
|
|
769
|
-
//# sourceMappingURL=chunk-
|
|
768
|
+
//# sourceMappingURL=chunk-VSACG2AR.js.map
|
|
769
|
+
//# sourceMappingURL=chunk-VSACG2AR.js.map
|
|
@@ -19,11 +19,7 @@ function vec3Length(v) {
|
|
|
19
19
|
return Math.sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]);
|
|
20
20
|
}
|
|
21
21
|
function vec3Cross(a, b) {
|
|
22
|
-
return [
|
|
23
|
-
a[1] * b[2] - a[2] * b[1],
|
|
24
|
-
a[2] * b[0] - a[0] * b[2],
|
|
25
|
-
a[0] * b[1] - a[1] * b[0]
|
|
26
|
-
];
|
|
22
|
+
return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];
|
|
27
23
|
}
|
|
28
24
|
function vec3CrossArray(a, b) {
|
|
29
25
|
return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];
|
|
@@ -65,5 +61,5 @@ exports.vec3Scale = vec3Scale;
|
|
|
65
61
|
exports.vec3ScaleArray = vec3ScaleArray;
|
|
66
62
|
exports.vec3Sub = vec3Sub;
|
|
67
63
|
exports.vec3SubArray = vec3SubArray;
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
69
|
-
//# sourceMappingURL=chunk-
|
|
64
|
+
//# sourceMappingURL=chunk-VW5CRJBE.cjs.map
|
|
65
|
+
//# sourceMappingURL=chunk-VW5CRJBE.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLM2VU56C_cjs = require('./chunk-LM2VU56C.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkT6W3Z3SH_cjs = require('./chunk-T6W3Z3SH.cjs');
|
|
5
5
|
|
|
6
6
|
// src/version.ts
|
|
7
7
|
var HOLOSCRIPT_VERSION = "8.0.6" ;
|
|
8
|
-
var GIT_COMMIT_SHA = "
|
|
9
|
-
var BUILD_TIMESTAMP = "2026-06-
|
|
8
|
+
var GIT_COMMIT_SHA = "33f2b3e49" ;
|
|
9
|
+
var BUILD_TIMESTAMP = "2026-06-08T22:53:19.715Z" ;
|
|
10
10
|
function getVersionString() {
|
|
11
11
|
const sha = `+${GIT_COMMIT_SHA}` ;
|
|
12
12
|
return `${HOLOSCRIPT_VERSION}${sha}`;
|
|
@@ -90,14 +90,18 @@ function createImagePatchEmbedKernel(device) {
|
|
|
90
90
|
return {
|
|
91
91
|
async run(image, proj, params) {
|
|
92
92
|
const { imgH, imgW, patchH, patchW, numChannels, embedDim } = params;
|
|
93
|
-
if (imgH % patchH !== 0)
|
|
94
|
-
|
|
93
|
+
if (imgH % patchH !== 0)
|
|
94
|
+
throw new Error(`imagePatchEmbed: imgH=${imgH} not divisible by patchH=${patchH}`);
|
|
95
|
+
if (imgW % patchW !== 0)
|
|
96
|
+
throw new Error(`imagePatchEmbed: imgW=${imgW} not divisible by patchW=${patchW}`);
|
|
95
97
|
const patchLen = patchH * patchW * numChannels;
|
|
96
98
|
const numPatchesY = imgH / patchH;
|
|
97
99
|
const numPatchesX = imgW / patchW;
|
|
98
100
|
const numPatches = numPatchesY * numPatchesX;
|
|
99
|
-
if (image.length !== imgH * imgW * numChannels)
|
|
100
|
-
|
|
101
|
+
if (image.length !== imgH * imgW * numChannels)
|
|
102
|
+
throw new Error(`imagePatchEmbed: image size mismatch`);
|
|
103
|
+
if (proj.length !== embedDim * patchLen)
|
|
104
|
+
throw new Error(`imagePatchEmbed: proj size mismatch`);
|
|
101
105
|
const outBytes = numPatches * embedDim * 4;
|
|
102
106
|
const imgBuf = storageBuffer(device, image);
|
|
103
107
|
const projBuf = storageBuffer(device, proj);
|
|
@@ -1033,8 +1037,18 @@ function createHoloMapMicroEncoder(device) {
|
|
|
1033
1037
|
const qFlat = await gemm.run(tokens, weights.Wq, 1, EMBED_DIM, EMBED_DIM);
|
|
1034
1038
|
const kFlat = await gemm.run(tokens, weights.Wk, 1, EMBED_DIM, EMBED_DIM);
|
|
1035
1039
|
const vFlat = await gemm.run(tokens, weights.Wv, 1, EMBED_DIM, EMBED_DIM);
|
|
1036
|
-
const q3 = await rope.run(qFlat, {
|
|
1037
|
-
|
|
1040
|
+
const q3 = await rope.run(qFlat, {
|
|
1041
|
+
seqLen: 1,
|
|
1042
|
+
numHeads: NUM_HEADS,
|
|
1043
|
+
headDim: HEAD_DIM,
|
|
1044
|
+
posOffset: frame.index
|
|
1045
|
+
});
|
|
1046
|
+
const k3 = await rope.run(kFlat, {
|
|
1047
|
+
seqLen: 1,
|
|
1048
|
+
numHeads: NUM_HEADS,
|
|
1049
|
+
headDim: HEAD_DIM,
|
|
1050
|
+
posOffset: frame.index
|
|
1051
|
+
});
|
|
1038
1052
|
let attn = await fusedMha.run(q3, k3, vFlat, {
|
|
1039
1053
|
numHeads: NUM_HEADS,
|
|
1040
1054
|
qLen: 1,
|
|
@@ -1208,7 +1222,10 @@ function resetHoloMapTelemetryForTests() {
|
|
|
1208
1222
|
async function sha256Digest(bytes) {
|
|
1209
1223
|
const c = globalThis.crypto;
|
|
1210
1224
|
if (c?.subtle) {
|
|
1211
|
-
const buf = await c.subtle.digest(
|
|
1225
|
+
const buf = await c.subtle.digest(
|
|
1226
|
+
"SHA-256",
|
|
1227
|
+
bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength)
|
|
1228
|
+
);
|
|
1212
1229
|
return bufferToHex(new Uint8Array(buf));
|
|
1213
1230
|
}
|
|
1214
1231
|
const { createHash } = await import('crypto');
|
|
@@ -1549,8 +1566,16 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
1549
1566
|
updateBounds(positions) {
|
|
1550
1567
|
if (positions.length === 0) return;
|
|
1551
1568
|
if (!this.boundsValid) {
|
|
1552
|
-
this.boundsMin = [
|
|
1553
|
-
|
|
1569
|
+
this.boundsMin = [
|
|
1570
|
+
Number.POSITIVE_INFINITY,
|
|
1571
|
+
Number.POSITIVE_INFINITY,
|
|
1572
|
+
Number.POSITIVE_INFINITY
|
|
1573
|
+
];
|
|
1574
|
+
this.boundsMax = [
|
|
1575
|
+
Number.NEGATIVE_INFINITY,
|
|
1576
|
+
Number.NEGATIVE_INFINITY,
|
|
1577
|
+
Number.NEGATIVE_INFINITY
|
|
1578
|
+
];
|
|
1554
1579
|
}
|
|
1555
1580
|
for (let i = 0; i < positions.length; i += 3) {
|
|
1556
1581
|
const x = positions[i] ?? 0;
|
|
@@ -1648,7 +1673,7 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
1648
1673
|
this.config = { ...config };
|
|
1649
1674
|
this.config.tileGrid = _HoloMapRuntimeImpl.normalizeTileGrid(this.config.tileGrid);
|
|
1650
1675
|
const allowCpu = this.config.allowCpuFallback !== false;
|
|
1651
|
-
if (!allowCpu && !
|
|
1676
|
+
if (!allowCpu && !chunkT6W3Z3SH_cjs.isWebGpuEnvironmentPresent()) {
|
|
1652
1677
|
const err = "HoloMap: native reconstruction requires WebGPU (allowCpuFallback=false). Run in a WebGPU-capable browser, or set allowCpuFallback=true for CPU fallback, or use compatibility scene ingest (Marble) for headless benchmarks.";
|
|
1653
1678
|
logHoloMapEvent(this.runId, "error", { message: err });
|
|
1654
1679
|
throw new Error(err);
|
|
@@ -1669,7 +1694,13 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
1669
1694
|
this.globalConfSum = 0;
|
|
1670
1695
|
this.lastAcceptedFrameTimestampMs = null;
|
|
1671
1696
|
this.sessionStartMs = performance.now();
|
|
1672
|
-
this.perfMetrics = {
|
|
1697
|
+
this.perfMetrics = {
|
|
1698
|
+
stepCount: 0,
|
|
1699
|
+
throttledCount: 0,
|
|
1700
|
+
totalStepMs: 0,
|
|
1701
|
+
maxStepMs: 0,
|
|
1702
|
+
minStepMs: Infinity
|
|
1703
|
+
};
|
|
1673
1704
|
this.replayKey = chunkLM2VU56C_cjs.computeHoloMapReplayFingerprint({
|
|
1674
1705
|
modelHash: this.config.modelHash,
|
|
1675
1706
|
seed: this.config.seed,
|
|
@@ -1695,7 +1726,7 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
1695
1726
|
modelHash: this.config.modelHash,
|
|
1696
1727
|
seed: this.config.seed,
|
|
1697
1728
|
allowCpuFallback: allowCpu,
|
|
1698
|
-
webgpu:
|
|
1729
|
+
webgpu: chunkT6W3Z3SH_cjs.isWebGpuEnvironmentPresent(),
|
|
1699
1730
|
microEncoder: this.microEncoder ? "webgpu" : "cpu",
|
|
1700
1731
|
tileGrid: this.config.tileGrid,
|
|
1701
1732
|
weightLoadedBytes: this.weightBytes?.byteLength ?? 0,
|
|
@@ -1785,11 +1816,7 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
1785
1816
|
],
|
|
1786
1817
|
luminance: meanLuma / 255,
|
|
1787
1818
|
texture: Math.sqrt(lumaVariance) / 255,
|
|
1788
|
-
meanColor: [
|
|
1789
|
-
Math.round(rSum / denom),
|
|
1790
|
-
Math.round(gSum / denom),
|
|
1791
|
-
Math.round(bSum / denom)
|
|
1792
|
-
]
|
|
1819
|
+
meanColor: [Math.round(rSum / denom), Math.round(gSum / denom), Math.round(bSum / denom)]
|
|
1793
1820
|
});
|
|
1794
1821
|
}
|
|
1795
1822
|
}
|
|
@@ -1958,7 +1985,10 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
1958
1985
|
let interFrameDeltaMeters = 0;
|
|
1959
1986
|
let interFrameRotationRadians = 0;
|
|
1960
1987
|
if (this.prevCameraPose) {
|
|
1961
|
-
interFrameDeltaMeters = _HoloMapRuntimeImpl.poseDistanceMeters(
|
|
1988
|
+
interFrameDeltaMeters = _HoloMapRuntimeImpl.poseDistanceMeters(
|
|
1989
|
+
cameraPose,
|
|
1990
|
+
this.prevCameraPose
|
|
1991
|
+
);
|
|
1962
1992
|
interFrameRotationRadians = _HoloMapRuntimeImpl.poseRotationDeltaRadians(
|
|
1963
1993
|
cameraPose,
|
|
1964
1994
|
this.prevCameraPose
|
|
@@ -2033,7 +2063,9 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
2033
2063
|
interFrameRotationRadians
|
|
2034
2064
|
)
|
|
2035
2065
|
});
|
|
2036
|
-
const trajectoryKeyframes = _HoloMapRuntimeImpl.cloneTrajectoryKeyframes(
|
|
2066
|
+
const trajectoryKeyframes = _HoloMapRuntimeImpl.cloneTrajectoryKeyframes(
|
|
2067
|
+
this.trajectoryKeyframes
|
|
2068
|
+
);
|
|
2037
2069
|
const step = {
|
|
2038
2070
|
frame,
|
|
2039
2071
|
pose: cameraPose,
|
|
@@ -2101,7 +2133,7 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
2101
2133
|
bounds,
|
|
2102
2134
|
replayHash: this.replayKey,
|
|
2103
2135
|
simulationContract: {
|
|
2104
|
-
kind:
|
|
2136
|
+
kind: chunkT6W3Z3SH_cjs.HOLOMAP_SIMULATION_CONTRACT_KIND,
|
|
2105
2137
|
replayFingerprint: this.replayKey,
|
|
2106
2138
|
holoScriptBuild: getVersionString()
|
|
2107
2139
|
},
|
|
@@ -2143,7 +2175,13 @@ var _HoloMapRuntimeImpl = class _HoloMapRuntimeImpl {
|
|
|
2143
2175
|
this.globalConfSum = 0;
|
|
2144
2176
|
this.boundsValid = false;
|
|
2145
2177
|
this.lastAcceptedFrameTimestampMs = null;
|
|
2146
|
-
this.perfMetrics = {
|
|
2178
|
+
this.perfMetrics = {
|
|
2179
|
+
stepCount: 0,
|
|
2180
|
+
throttledCount: 0,
|
|
2181
|
+
totalStepMs: 0,
|
|
2182
|
+
maxStepMs: 0,
|
|
2183
|
+
minStepMs: Infinity
|
|
2184
|
+
};
|
|
2147
2185
|
}
|
|
2148
2186
|
};
|
|
2149
2187
|
_HoloMapRuntimeImpl.LOOP_CLOSURE_MIN_GAP = 3;
|
|
@@ -2192,5 +2230,5 @@ exports.putCachedWeightBlob = putCachedWeightBlob;
|
|
|
2192
2230
|
exports.resetHoloMapTelemetryForTests = resetHoloMapTelemetryForTests;
|
|
2193
2231
|
exports.runHoloMapMicroEncoderCpu = runHoloMapMicroEncoderCpu;
|
|
2194
2232
|
exports.tryCreateHoloMapEncoderDevice = tryCreateHoloMapEncoderDevice;
|
|
2195
|
-
//# sourceMappingURL=chunk-
|
|
2196
|
-
//# sourceMappingURL=chunk-
|
|
2233
|
+
//# sourceMappingURL=chunk-WFKVS2K4.cjs.map
|
|
2234
|
+
//# sourceMappingURL=chunk-WFKVS2K4.cjs.map
|