@holoscript/core 8.0.6 → 8.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -34
- package/bin/holoscript.cjs +1 -1
- package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
- package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
- package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
- package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
- package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
- package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
- package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
- package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
- package/dist/{chunk-2GQHTXOK.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-XHZCF3AS.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-DBPGNHFS.js → chunk-2OWDB4FB.js} +13 -25
- package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
- package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
- package/dist/{chunk-RCZHLCX2.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-EK7L4DW7.js → chunk-3NGDZZR4.js} +4 -4
- package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
- package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
- package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
- package/dist/{chunk-VHAONJBY.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-2J5WZLF5.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-H5PUZHJV.cjs → chunk-56VOWURB.cjs} +61 -40
- package/dist/{chunk-DQRQZB33.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-YU5RJQPE.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-A3GFOZAF.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-OXGPGQXN.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-P4AIF7OQ.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-7MVLEZB2.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-X7QB5PL5.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-QWSB553J.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-VATGR4EM.js → chunk-B4EKV6HQ.js} +61 -40
- package/dist/{chunk-HBEN5TQR.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-F63LYRVE.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-YTR32ZEB.cjs → chunk-C4GSLCHE.cjs} +300 -125
- package/dist/{chunk-CXS3DUKD.js → chunk-C7ZBSV2Q.js} +3 -3
- package/dist/{chunk-WOH6LKYT.cjs → chunk-CCPSNT6B.cjs} +12 -7
- package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
- package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
- package/dist/{chunk-D63CGNJU.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-DCE3LDO3.cjs → chunk-EDPYCLRC.cjs} +52 -62
- package/dist/{chunk-NDUX553L.js → chunk-F2G6CWFT.js} +240 -65
- package/dist/{chunk-X7LYK5TX.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-LAUFLPB6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-P52PPB5R.js → chunk-FHQFPYV4.js} +4 -4
- package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
- package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
- package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
- package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
- package/dist/{chunk-5BLWXOIP.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-2VL6SJ33.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-JEB5UU3E.js → chunk-GSOUNWEL.js} +35 -27
- package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
- package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
- package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
- package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
- package/dist/{chunk-IBXT6UP3.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-E767PVC6.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-ZXZ2AL2J.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-4FDL7JLJ.cjs → chunk-KAIVDEIG.cjs} +145 -60
- package/dist/{chunk-X4EBCG4K.js → chunk-KCPHASCO.js} +18 -6
- package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
- package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
- package/dist/{chunk-4DO425P5.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-HBLKLLG5.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-QWAR3GY6.cjs → chunk-LODTHGST.cjs} +8 -8
- package/dist/{chunk-TFUMBR7G.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-ISG3TQ2O.js → chunk-LWUOUCYL.js} +9 -5
- package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
- package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
- package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
- package/dist/{chunk-ULXWSPCK.js → chunk-MSYSQ2AJ.js} +101 -16
- package/dist/{chunk-TCBJMNXS.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-RXU4PQKA.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-NTGBEMYL.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-YG3OAHJZ.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-N5YOAFNA.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-IIUFMUTV.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-5BQIJG3O.js → chunk-PXNZ6TME.js} +47 -57
- package/dist/{chunk-KDZRD6EI.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-IS4AEGLU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-5IHG2LGT.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-NTJZJ5IP.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-E64LOLJU.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-3SBVODUP.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-LY4DMQOW.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-S6OVFUXD.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-K5UGRXKR.js → chunk-SXOSDZD6.js} +6 -6
- package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
- package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
- package/dist/{chunk-U36W76U7.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-6DOKCECB.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-YAPPQYJH.cjs → chunk-TRCGG42I.cjs} +195 -152
- package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
- package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
- package/dist/{chunk-3OIZJNVT.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-44GM3P4G.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-3B5NVDHJ.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-5TIZXMED.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-3B7AY37W.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-BKCK3IU6.js → chunk-VF257YKO.js} +4 -4
- package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
- package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
- package/dist/{chunk-PVWNU4QT.cjs → chunk-WFKVS2K4.cjs} +64 -26
- package/dist/{chunk-TDCJ7YPA.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-NE5CZ2NC.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-C34AJIJO.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-TFWYKOOB.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-TJIMBJ6L.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-BFROVZOF.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ISM4NX6N.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-6OTFG3EB.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-NPDNFPTU.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-GCYR3D2K.js → chunk-Z6PMDS4G.js} +61 -23
- package/dist/{chunk-DPZXVDGM.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-VFKXK4GR.cjs → chunk-ZPZAVHXL.cjs} +20 -20
- package/dist/cli/holoscript-runner.cjs +39 -22
- package/dist/cli/holoscript-runner.js +32 -15
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +8 -8
- package/dist/compiler/android-xr.js +6 -6
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/ar.cjs +6 -6
- package/dist/compiler/ar.js +4 -4
- package/dist/compiler/babylon.cjs +8 -8
- package/dist/compiler/babylon.js +7 -7
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +153 -153
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +347 -362
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +200 -215
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/multi-layer.cjs +10 -10
- package/dist/compiler/multi-layer.js +9 -9
- package/dist/compiler/openxr.cjs +7 -7
- package/dist/compiler/openxr.js +6 -6
- package/dist/compiler/playcanvas.cjs +6 -6
- package/dist/compiler/playcanvas.js +5 -5
- package/dist/compiler/r3f.cjs +13 -13
- package/dist/compiler/r3f.js +8 -8
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +8 -8
- package/dist/compiler/trait-composition.js +4 -4
- package/dist/compiler/unity.cjs +7 -7
- package/dist/compiler/unity.js +6 -6
- package/dist/compiler/unreal.cjs +8 -8
- package/dist/compiler/unreal.js +6 -6
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +7 -7
- package/dist/compiler/visionos.js +6 -6
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/vrr.cjs +7 -7
- package/dist/compiler/vrr.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/coordinators/index.cjs +27 -10
- package/dist/coordinators/index.js +27 -10
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.js +4 -4
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/hololand/index.cjs +36 -36
- package/dist/hololand/index.js +2 -2
- package/dist/index.cjs +1056 -796
- package/dist/index.js +440 -180
- package/dist/math/tropical-spmv.cjs +10 -10
- package/dist/math/tropical-spmv.js +1 -1
- package/dist/math/vec3.cjs +13 -13
- package/dist/math/vec3.js +1 -1
- package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
- package/dist/parser.cjs +16 -16
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +37 -37
- package/dist/reconstruction/index.js +4 -4
- package/dist/runtime.cjs +274 -76
- package/dist/runtime.d.ts +10 -1
- package/dist/runtime.js +268 -70
- package/dist/self-improvement/index.cjs +12 -4
- package/dist/self-improvement/index.js +12 -4
- package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
- package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
- package/dist/testing.cjs +5 -5
- package/dist/testing.js +1 -1
- package/dist/traits/botanical-lotus.cjs +49 -49
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/engines/index.cjs +39 -39
- package/dist/traits/engines/index.d.ts +279 -0
- package/dist/traits/engines/index.js +4 -4
- package/dist/traits/index.cjs +881 -773
- package/dist/traits/index.js +366 -258
- package/dist/world/index.cjs +21 -18
- package/dist/world/index.js +21 -18
- package/dist/world-model/index.cjs +11 -5
- package/dist/world-model/index.d.ts +8 -0
- package/dist/world-model/index.js +11 -5
- package/package.json +74 -68
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-PVLTKDBD.cjs +0 -38
- package/dist/GLTFPipeline-QPI4I7DL.js +0 -17
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-6ZGLUCFS.js +0 -10
- package/dist/HoloScriptRuntime-ALUASIL2.cjs +0 -19
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { lightingHandler, materialHandler, renderingHandler, shaderHandler } from './chunk-
|
|
1
|
+
import { lightingHandler, materialHandler, renderingHandler, shaderHandler } from './chunk-GTA4Q3A3.js';
|
|
2
2
|
import { webcamGazeHandler } from './chunk-TDCNJHWO.js';
|
|
3
3
|
import { SimulationSolverFactory } from './chunk-YQELFNJV.js';
|
|
4
|
-
import { createTensor, createNoOpInferenceAdapter, add, matmul } from './chunk-
|
|
4
|
+
import { createTensor, createNoOpInferenceAdapter, add, matmul } from './chunk-7E7GCQCK.js';
|
|
5
5
|
import { absorbHandler, hotReloadHandler, scriptTestHandler } from './chunk-2M2DPHKB.js';
|
|
6
|
-
import { init_BotanicalLotusTrait, botanicalLotusHandler } from './chunk-
|
|
7
|
-
import { mitosisHandler, embeddingHandler, jepObjectiveHandler, orbitalHandler } from './chunk-
|
|
6
|
+
import { init_BotanicalLotusTrait, botanicalLotusHandler } from './chunk-B4EKV6HQ.js';
|
|
7
|
+
import { mitosisHandler, embeddingHandler, jepObjectiveHandler, orbitalHandler } from './chunk-TVANHNJ7.js';
|
|
8
8
|
import { logger } from './chunk-PHENW4MQ.js';
|
|
9
9
|
import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
|
|
10
10
|
import { __require } from './chunk-OL46QLBJ.js';
|
|
@@ -1115,9 +1115,7 @@ function calculateStability(positions) {
|
|
|
1115
1115
|
for (let i = 1; i < positions.length; i++) {
|
|
1116
1116
|
const p1 = positions[i - 1];
|
|
1117
1117
|
const p2 = positions[i];
|
|
1118
|
-
totalDelta += Math.sqrt(
|
|
1119
|
-
(p2[0] - p1[0]) ** 2 + (p2[1] - p1[1]) ** 2 + (p2[2] - p1[2]) ** 2
|
|
1120
|
-
);
|
|
1118
|
+
totalDelta += Math.sqrt((p2[0] - p1[0]) ** 2 + (p2[1] - p1[1]) ** 2 + (p2[2] - p1[2]) ** 2);
|
|
1121
1119
|
}
|
|
1122
1120
|
const avgDelta = totalDelta / (positions.length - 1);
|
|
1123
1121
|
return Math.max(0, 1 - avgDelta / 0.05);
|
|
@@ -1143,18 +1141,18 @@ function initState(node, config) {
|
|
|
1143
1141
|
const state = {
|
|
1144
1142
|
baseValue: config.value,
|
|
1145
1143
|
modifiers: Array.isArray(config.modifiers) ? [...config.modifiers] : [],
|
|
1146
|
-
lastEffective: applyStatModifiers(
|
|
1147
|
-
config.value,
|
|
1148
|
-
config.modifiers ?? [],
|
|
1149
|
-
config.min,
|
|
1150
|
-
config.max
|
|
1151
|
-
)
|
|
1144
|
+
lastEffective: applyStatModifiers(config.value, config.modifiers ?? [], config.min, config.max)
|
|
1152
1145
|
};
|
|
1153
1146
|
node.__statState = state;
|
|
1154
1147
|
return state;
|
|
1155
1148
|
}
|
|
1156
1149
|
function recompute(state, config) {
|
|
1157
|
-
state.lastEffective = applyStatModifiers(
|
|
1150
|
+
state.lastEffective = applyStatModifiers(
|
|
1151
|
+
state.baseValue,
|
|
1152
|
+
state.modifiers,
|
|
1153
|
+
config.min,
|
|
1154
|
+
config.max
|
|
1155
|
+
);
|
|
1158
1156
|
return state.lastEffective;
|
|
1159
1157
|
}
|
|
1160
1158
|
var statHandler = {
|
|
@@ -2629,7 +2627,11 @@ var anchorHandler = {
|
|
|
2629
2627
|
const [ox, oy, oz] = config.offset;
|
|
2630
2628
|
context.emit?.("set_position", {
|
|
2631
2629
|
node,
|
|
2632
|
-
position: [
|
|
2630
|
+
position: [
|
|
2631
|
+
state.pose.position[0] + ox,
|
|
2632
|
+
state.pose.position[1] + oy,
|
|
2633
|
+
state.pose.position[2] + oz
|
|
2634
|
+
]
|
|
2633
2635
|
});
|
|
2634
2636
|
context.emit?.("set_rotation", {
|
|
2635
2637
|
node,
|
|
@@ -4538,7 +4540,9 @@ function resolveBaseFrequency(element, config) {
|
|
|
4538
4540
|
return asFiniteNumber(frequencies[element]) ?? frequencies.none ?? 432;
|
|
4539
4541
|
}
|
|
4540
4542
|
function neighborId(neighbor) {
|
|
4541
|
-
return String(
|
|
4543
|
+
return String(
|
|
4544
|
+
neighbor.nodeId ?? neighbor.id ?? neighbor.name ?? neighbor.element ?? "nearby_gem"
|
|
4545
|
+
);
|
|
4542
4546
|
}
|
|
4543
4547
|
function neighborElement(neighbor) {
|
|
4544
4548
|
const configElement = isRecord(neighbor.config) ? normalizeElement(neighbor.config.element) : null;
|
|
@@ -9846,10 +9850,7 @@ var perceptionHandler = {
|
|
|
9846
9850
|
const now = Date.now();
|
|
9847
9851
|
const position = node.position || [0, 0, 0];
|
|
9848
9852
|
const rotation = node.rotation || [0, 0, 0];
|
|
9849
|
-
const forward = [
|
|
9850
|
-
Math.sin(rotation[1]),
|
|
9851
|
-
Math.cos(rotation[1])
|
|
9852
|
-
];
|
|
9853
|
+
const forward = [Math.sin(rotation[1]), Math.cos(rotation[1])];
|
|
9853
9854
|
const toRemove = [];
|
|
9854
9855
|
let highestThreat = 0;
|
|
9855
9856
|
for (const [id, entity] of state.entities) {
|
|
@@ -9904,10 +9905,7 @@ var perceptionHandler = {
|
|
|
9904
9905
|
if (!state) return;
|
|
9905
9906
|
const position = node.position || [0, 0, 0];
|
|
9906
9907
|
const rotation = node.rotation || [0, 0, 0];
|
|
9907
|
-
const forward = [
|
|
9908
|
-
Math.sin(rotation[1]),
|
|
9909
|
-
Math.cos(rotation[1])
|
|
9910
|
-
];
|
|
9908
|
+
const forward = [Math.sin(rotation[1]), Math.cos(rotation[1])];
|
|
9911
9909
|
if (event.type === "perception_detect") {
|
|
9912
9910
|
const target = event.target;
|
|
9913
9911
|
if (!target?.id) return;
|
|
@@ -15713,11 +15711,7 @@ var zkPrivateHandler = {
|
|
|
15713
15711
|
if (!s?.isReady) return;
|
|
15714
15712
|
const payload = extractPayload(event);
|
|
15715
15713
|
if (event.type === "proof_generate") {
|
|
15716
|
-
const {
|
|
15717
|
-
circuitId,
|
|
15718
|
-
publicInputs = {},
|
|
15719
|
-
privateInputs = {}
|
|
15720
|
-
} = payload;
|
|
15714
|
+
const { circuitId, publicInputs = {}, privateInputs = {} } = payload;
|
|
15721
15715
|
if (!circuitId) return;
|
|
15722
15716
|
const circuit = s.circuits.get(circuitId);
|
|
15723
15717
|
if (!circuit) {
|
|
@@ -15725,7 +15719,10 @@ var zkPrivateHandler = {
|
|
|
15725
15719
|
return;
|
|
15726
15720
|
}
|
|
15727
15721
|
const requestId = payload.requestId ?? `zk_${Date.now()}`;
|
|
15728
|
-
s.activeProofs.set(requestId, {
|
|
15722
|
+
s.activeProofs.set(requestId, {
|
|
15723
|
+
circuitId,
|
|
15724
|
+
startedAt: Date.now()
|
|
15725
|
+
});
|
|
15729
15726
|
ctx.emit("proof_generation_started", { node, requestId, circuit: circuitId });
|
|
15730
15727
|
const t0 = Date.now();
|
|
15731
15728
|
const timeout = new Promise(
|
|
@@ -15751,11 +15748,7 @@ var zkPrivateHandler = {
|
|
|
15751
15748
|
ctx.emit("zk_error", { node, requestId, error: err.message });
|
|
15752
15749
|
});
|
|
15753
15750
|
} else if (event.type === "proof_verify") {
|
|
15754
|
-
const {
|
|
15755
|
-
proof: proofBytes,
|
|
15756
|
-
publicInputs = {},
|
|
15757
|
-
circuitId
|
|
15758
|
-
} = payload;
|
|
15751
|
+
const { proof: proofBytes, publicInputs = {}, circuitId } = payload;
|
|
15759
15752
|
if (!proofBytes) return;
|
|
15760
15753
|
const requestId = payload.requestId ?? `verify_${Date.now()}`;
|
|
15761
15754
|
const t0 = Date.now();
|
|
@@ -16675,7 +16668,9 @@ var clothHandler = {
|
|
|
16675
16668
|
vertices: state.vertices
|
|
16676
16669
|
});
|
|
16677
16670
|
} else if (event.type === "wind_update") {
|
|
16678
|
-
state.windForce = vecToTuple(
|
|
16671
|
+
state.windForce = vecToTuple(
|
|
16672
|
+
event.direction
|
|
16673
|
+
);
|
|
16679
16674
|
} else if (event.type === "cloth_apply_force") {
|
|
16680
16675
|
const force = event.force;
|
|
16681
16676
|
const position = event.position;
|
|
@@ -17167,7 +17162,11 @@ var softBodyHandler = {
|
|
|
17167
17162
|
} else if (event.type === "soft_body_poke") {
|
|
17168
17163
|
const position = event.position;
|
|
17169
17164
|
const force = event.force || 10;
|
|
17170
|
-
const dirInput = event.direction || [
|
|
17165
|
+
const dirInput = event.direction || [
|
|
17166
|
+
0,
|
|
17167
|
+
-1,
|
|
17168
|
+
0
|
|
17169
|
+
];
|
|
17171
17170
|
const direction = Array.isArray(dirInput) ? [dirInput[0] ?? 0, dirInput[1] ?? -1, dirInput[2] ?? 0] : [dirInput[0] ?? 0, dirInput[1] ?? -1, dirInput[2] ?? 0];
|
|
17172
17171
|
context.emit?.("soft_body_impulse", {
|
|
17173
17172
|
node,
|
|
@@ -17269,7 +17268,13 @@ var affinityHandler = {
|
|
|
17269
17268
|
relationalWeight: 0.5,
|
|
17270
17269
|
maxEffort: 1,
|
|
17271
17270
|
adaptationRate: 0.1
|
|
17272
|
-
} : {
|
|
17271
|
+
} : {
|
|
17272
|
+
enabled: false,
|
|
17273
|
+
wellBeingWeight: 0.5,
|
|
17274
|
+
relationalWeight: 0.5,
|
|
17275
|
+
maxEffort: 1,
|
|
17276
|
+
adaptationRate: 0.1
|
|
17277
|
+
},
|
|
17273
17278
|
timeStep: cfg.timeStep ?? 0.1,
|
|
17274
17279
|
maxTime: cfg.maxTime,
|
|
17275
17280
|
// Forward any extra fields the caller added
|
|
@@ -17405,12 +17410,7 @@ function createCareField(input) {
|
|
|
17405
17410
|
});
|
|
17406
17411
|
return {
|
|
17407
17412
|
schemaVersion: "1.0.0",
|
|
17408
|
-
fieldId: input.fieldId ?? createCareId("care", [
|
|
17409
|
-
input.createdAt,
|
|
17410
|
-
input.steward.id,
|
|
17411
|
-
input.counterpart.id,
|
|
17412
|
-
input.goal
|
|
17413
|
-
]),
|
|
17413
|
+
fieldId: input.fieldId ?? createCareId("care", [input.createdAt, input.steward.id, input.counterpart.id, input.goal]),
|
|
17414
17414
|
createdAt: input.createdAt,
|
|
17415
17415
|
steward: input.steward,
|
|
17416
17416
|
counterpart: input.counterpart,
|
|
@@ -17439,11 +17439,7 @@ function createCareField(input) {
|
|
|
17439
17439
|
}
|
|
17440
17440
|
function createRepairLoop(input) {
|
|
17441
17441
|
return {
|
|
17442
|
-
loopId: input.loopId ?? createCareId("repair", [
|
|
17443
|
-
input.openedAt,
|
|
17444
|
-
input.actor.id,
|
|
17445
|
-
input.harmOrMismatch
|
|
17446
|
-
]),
|
|
17442
|
+
loopId: input.loopId ?? createCareId("repair", [input.openedAt, input.actor.id, input.harmOrMismatch]),
|
|
17447
17443
|
openedAt: input.openedAt,
|
|
17448
17444
|
status: "open",
|
|
17449
17445
|
harmOrMismatch: input.harmOrMismatch,
|
|
@@ -17460,12 +17456,7 @@ function createRepairLoop(input) {
|
|
|
17460
17456
|
}
|
|
17461
17457
|
function recordGratitude(input) {
|
|
17462
17458
|
return {
|
|
17463
|
-
entryId: input.entryId ?? createCareId("gratitude", [
|
|
17464
|
-
input.recordedAt,
|
|
17465
|
-
input.from.id,
|
|
17466
|
-
input.to.id,
|
|
17467
|
-
input.contribution
|
|
17468
|
-
]),
|
|
17459
|
+
entryId: input.entryId ?? createCareId("gratitude", [input.recordedAt, input.from.id, input.to.id, input.contribution]),
|
|
17469
17460
|
recordedAt: input.recordedAt,
|
|
17470
17461
|
from: input.from,
|
|
17471
17462
|
to: input.to,
|
|
@@ -17476,11 +17467,7 @@ function recordGratitude(input) {
|
|
|
17476
17467
|
}
|
|
17477
17468
|
function rememberRelationalContext(input) {
|
|
17478
17469
|
return {
|
|
17479
|
-
memoryId: input.memoryId ?? createCareId("memory", [
|
|
17480
|
-
input.recordedAt,
|
|
17481
|
-
input.subject.id,
|
|
17482
|
-
input.summary
|
|
17483
|
-
]),
|
|
17470
|
+
memoryId: input.memoryId ?? createCareId("memory", [input.recordedAt, input.subject.id, input.summary]),
|
|
17484
17471
|
recordedAt: input.recordedAt,
|
|
17485
17472
|
subject: input.subject,
|
|
17486
17473
|
summary: input.summary,
|
|
@@ -18423,7 +18410,11 @@ function generateFragments(position, scale, impactPoint, config) {
|
|
|
18423
18410
|
const explosionScale = config.explosion_force + Math.random() * config.explosion_force * 0.5;
|
|
18424
18411
|
fragments.push({
|
|
18425
18412
|
id: `fragment_${i}_${Date.now()}`,
|
|
18426
|
-
position: [
|
|
18413
|
+
position: [
|
|
18414
|
+
position[0] + points[i][0],
|
|
18415
|
+
position[1] + points[i][1],
|
|
18416
|
+
position[2] + points[i][2]
|
|
18417
|
+
],
|
|
18427
18418
|
velocity: [
|
|
18428
18419
|
dx / dist * explosionScale,
|
|
18429
18420
|
dy / dist * explosionScale + Math.random() * 2,
|
|
@@ -18589,11 +18580,7 @@ function triggerDestruction(node, config, context, state, impactPoint) {
|
|
|
18589
18580
|
state.fragments = generateFragments(
|
|
18590
18581
|
position,
|
|
18591
18582
|
scale,
|
|
18592
|
-
impactPoint ? [
|
|
18593
|
-
impactPoint[0] - position[0],
|
|
18594
|
-
impactPoint[1] - position[1],
|
|
18595
|
-
impactPoint[2] - position[2]
|
|
18596
|
-
] : null,
|
|
18583
|
+
impactPoint ? [impactPoint[0] - position[0], impactPoint[1] - position[1], impactPoint[2] - position[2]] : null,
|
|
18597
18584
|
config
|
|
18598
18585
|
);
|
|
18599
18586
|
const ctxExt = context;
|
|
@@ -19339,9 +19326,13 @@ var NetworkedTrait = class {
|
|
|
19339
19326
|
}
|
|
19340
19327
|
};
|
|
19341
19328
|
if (this.activeTransport === "websocket" && this.wsTransport) {
|
|
19342
|
-
this.wsTransport.send(
|
|
19329
|
+
this.wsTransport.send(
|
|
19330
|
+
message
|
|
19331
|
+
);
|
|
19343
19332
|
} else if (this.activeTransport === "webrtc" && this.rtcTransport) {
|
|
19344
|
-
this.rtcTransport.send(
|
|
19333
|
+
this.rtcTransport.send(
|
|
19334
|
+
message
|
|
19335
|
+
);
|
|
19345
19336
|
} else if (this.syncProtocol) {
|
|
19346
19337
|
this.syncProtocol.syncState(this.entityId, updates);
|
|
19347
19338
|
}
|
|
@@ -21906,7 +21897,11 @@ function renderAuditPrompt(template, receipt) {
|
|
|
21906
21897
|
replaceToken(
|
|
21907
21898
|
replaceToken(
|
|
21908
21899
|
replaceToken(
|
|
21909
|
-
replaceToken(
|
|
21900
|
+
replaceToken(
|
|
21901
|
+
replaceToken(template, "{claimId}", receipt.claimId),
|
|
21902
|
+
"{domain}",
|
|
21903
|
+
receipt.domain
|
|
21904
|
+
),
|
|
21910
21905
|
"{ledgerId}",
|
|
21911
21906
|
receipt.ledgerId
|
|
21912
21907
|
),
|
|
@@ -24663,7 +24658,10 @@ function buildReachabilityGraph(cells, blockedEdges, opts, axes) {
|
|
|
24663
24658
|
const edges = [];
|
|
24664
24659
|
const seen = /* @__PURE__ */ new Set();
|
|
24665
24660
|
for (const cell of orderedCells) {
|
|
24666
|
-
for (const [da, db] of [
|
|
24661
|
+
for (const [da, db] of [
|
|
24662
|
+
[1, 0],
|
|
24663
|
+
[0, 1]
|
|
24664
|
+
]) {
|
|
24667
24665
|
const next = cells.get(cellKey(cell.level, cell.a + da, cell.b + db));
|
|
24668
24666
|
if (!next) continue;
|
|
24669
24667
|
if (isBlocked(cell, next, blockedEdges)) continue;
|
|
@@ -24679,7 +24677,14 @@ function buildReachabilityGraph(cells, blockedEdges, opts, axes) {
|
|
|
24679
24677
|
if (manhattan > 1) continue;
|
|
24680
24678
|
const heightDelta = Math.abs(a.height - b.height);
|
|
24681
24679
|
if (heightDelta <= opts.max_step_height_m + opts.plane_tolerance_m) {
|
|
24682
|
-
addUndirectedEdge(
|
|
24680
|
+
addUndirectedEdge(
|
|
24681
|
+
edges,
|
|
24682
|
+
seen,
|
|
24683
|
+
a.key,
|
|
24684
|
+
b.key,
|
|
24685
|
+
"stair",
|
|
24686
|
+
Math.hypot(opts.cell_size_m, heightDelta)
|
|
24687
|
+
);
|
|
24683
24688
|
}
|
|
24684
24689
|
}
|
|
24685
24690
|
}
|
|
@@ -24700,7 +24705,11 @@ function buildCollisionMesh(cells, blockedEdges, opts, axes) {
|
|
|
24700
24705
|
fromHorizontal(cell.a, cell.b + 1, cell.height, opts.cell_size_m, axes)
|
|
24701
24706
|
);
|
|
24702
24707
|
triangles.push([base, base + 1, base + 2], [base, base + 2, base + 3]);
|
|
24703
|
-
surfaces.push({
|
|
24708
|
+
surfaces.push({
|
|
24709
|
+
id: `surface:${cell.key}`,
|
|
24710
|
+
kind: "floor",
|
|
24711
|
+
vertex_indices: [base, base + 1, base + 2, base + 3]
|
|
24712
|
+
});
|
|
24704
24713
|
}
|
|
24705
24714
|
for (const edge of [...blockedEdges.values()].sort(compareBlockedEdges)) {
|
|
24706
24715
|
const base = vertices.length;
|
|
@@ -24724,7 +24733,11 @@ function buildCollisionMesh(cells, blockedEdges, opts, axes) {
|
|
|
24724
24733
|
);
|
|
24725
24734
|
}
|
|
24726
24735
|
triangles.push([base, base + 1, base + 2], [base, base + 2, base + 3]);
|
|
24727
|
-
surfaces.push({
|
|
24736
|
+
surfaces.push({
|
|
24737
|
+
id: `surface:wall:${blockedKey(edge)}`,
|
|
24738
|
+
kind: "wall",
|
|
24739
|
+
vertex_indices: [base, base + 1, base + 2, base + 3]
|
|
24740
|
+
});
|
|
24728
24741
|
}
|
|
24729
24742
|
return {
|
|
24730
24743
|
vertices,
|
|
@@ -24752,7 +24765,12 @@ function detectHoles(cells, opts, axes) {
|
|
|
24752
24765
|
outside.add(`${minA}:${minB}`);
|
|
24753
24766
|
while (queue.length > 0) {
|
|
24754
24767
|
const [a, b] = queue.shift();
|
|
24755
|
-
for (const [da, db] of [
|
|
24768
|
+
for (const [da, db] of [
|
|
24769
|
+
[1, 0],
|
|
24770
|
+
[-1, 0],
|
|
24771
|
+
[0, 1],
|
|
24772
|
+
[0, -1]
|
|
24773
|
+
]) {
|
|
24756
24774
|
const na = a + da;
|
|
24757
24775
|
const nb = b + db;
|
|
24758
24776
|
if (na < minA || na > maxA || nb < minB || nb > maxB) continue;
|
|
@@ -26996,9 +27014,14 @@ var computerUseHandler = {
|
|
|
26996
27014
|
onDetach(node, _config, ctx) {
|
|
26997
27015
|
const state = node.__computerUseState;
|
|
26998
27016
|
if (!state) return;
|
|
26999
|
-
const closures = [...state.sessions.values()].map(
|
|
27000
|
-
|
|
27001
|
-
|
|
27017
|
+
const closures = [...state.sessions.values()].map(
|
|
27018
|
+
(s) => s.page?.close().catch((err) => {
|
|
27019
|
+
console.error(
|
|
27020
|
+
`[ComputerUseTrait] onDetach: failed to close page for session ${s.id}:`,
|
|
27021
|
+
err
|
|
27022
|
+
);
|
|
27023
|
+
})
|
|
27024
|
+
);
|
|
27002
27025
|
Promise.allSettled(closures ?? []);
|
|
27003
27026
|
ctx.emit("computer_use_stopped", {
|
|
27004
27027
|
node,
|
|
@@ -27026,7 +27049,10 @@ var computerUseHandler = {
|
|
|
27026
27049
|
const session = closeBrowserId ? state.sessions.get(closeBrowserId) : void 0;
|
|
27027
27050
|
if (session) {
|
|
27028
27051
|
session.page?.close().catch((err) => {
|
|
27029
|
-
console.error(
|
|
27052
|
+
console.error(
|
|
27053
|
+
`[ComputerUseTrait] browser_close: failed to close page for session ${session.id}:`,
|
|
27054
|
+
err
|
|
27055
|
+
);
|
|
27030
27056
|
});
|
|
27031
27057
|
state.sessions.delete(session.id);
|
|
27032
27058
|
ctx.emit("browser_closed", { node, browserId: session.id });
|
|
@@ -27585,7 +27611,10 @@ var ECSWorld = class {
|
|
|
27585
27611
|
return t;
|
|
27586
27612
|
}
|
|
27587
27613
|
addTransform(id, t) {
|
|
27588
|
-
this.transforms.set(
|
|
27614
|
+
this.transforms.set(
|
|
27615
|
+
id,
|
|
27616
|
+
this.normalizeTransform(t)
|
|
27617
|
+
);
|
|
27589
27618
|
this.masks.set(id, (this.masks.get(id) ?? 0) | 1 /* Transform */);
|
|
27590
27619
|
return this;
|
|
27591
27620
|
}
|
|
@@ -28851,11 +28880,7 @@ function startFlyTo(state, config, context, nodeId) {
|
|
|
28851
28880
|
const bodyPos = context.physics?.getBodyPosition?.(nodeId);
|
|
28852
28881
|
if (!bodyPos) return;
|
|
28853
28882
|
state.flyToStart = [...context.camera.position];
|
|
28854
|
-
state.flyToTarget = [
|
|
28855
|
-
bodyPos[0],
|
|
28856
|
-
bodyPos[1] + 2,
|
|
28857
|
-
bodyPos[2] + 5
|
|
28858
|
-
];
|
|
28883
|
+
state.flyToTarget = [bodyPos[0], bodyPos[1] + 2, bodyPos[2] + 5];
|
|
28859
28884
|
state.flyToProgress = 1;
|
|
28860
28885
|
}
|
|
28861
28886
|
function updateEdgeHighlights(state, context, nodeId) {
|
|
@@ -30548,11 +30573,19 @@ var neuralAnimationHandler = {
|
|
|
30548
30573
|
};
|
|
30549
30574
|
state.current_pose = result.pose;
|
|
30550
30575
|
if (result.contactFeatures.leftFoot !== state.prev_left_contact) {
|
|
30551
|
-
context.emit?.("on_foot_contact", {
|
|
30576
|
+
context.emit?.("on_foot_contact", {
|
|
30577
|
+
node,
|
|
30578
|
+
side: "left",
|
|
30579
|
+
state: result.contactFeatures.leftFoot
|
|
30580
|
+
});
|
|
30552
30581
|
state.prev_left_contact = result.contactFeatures.leftFoot;
|
|
30553
30582
|
}
|
|
30554
30583
|
if (result.contactFeatures.rightFoot !== state.prev_right_contact) {
|
|
30555
|
-
context.emit?.("on_foot_contact", {
|
|
30584
|
+
context.emit?.("on_foot_contact", {
|
|
30585
|
+
node,
|
|
30586
|
+
side: "right",
|
|
30587
|
+
state: result.contactFeatures.rightFoot
|
|
30588
|
+
});
|
|
30556
30589
|
state.prev_right_contact = result.contactFeatures.rightFoot;
|
|
30557
30590
|
}
|
|
30558
30591
|
if (result.stability < 0.3) {
|
|
@@ -31737,11 +31770,7 @@ function pollEyeTracking(session, state, frame) {
|
|
|
31737
31770
|
const { x, y, z, w } = r;
|
|
31738
31771
|
return {
|
|
31739
31772
|
origin: [t[0], t[1], t[2]],
|
|
31740
|
-
direction: [
|
|
31741
|
-
2 * (x * z + w * y),
|
|
31742
|
-
2 * (y * z - w * x),
|
|
31743
|
-
1 - 2 * (x * x + y * y)
|
|
31744
|
-
]
|
|
31773
|
+
direction: [2 * (x * z + w * y), 2 * (y * z - w * x), 1 - 2 * (x * x + y * y)]
|
|
31745
31774
|
};
|
|
31746
31775
|
}
|
|
31747
31776
|
} catch {
|
|
@@ -32267,13 +32296,15 @@ function smoothKeypoints(current, buffer, smoothing) {
|
|
|
32267
32296
|
smoothed.push(curr);
|
|
32268
32297
|
continue;
|
|
32269
32298
|
}
|
|
32270
|
-
smoothed.push(
|
|
32271
|
-
|
|
32272
|
-
|
|
32273
|
-
|
|
32274
|
-
|
|
32275
|
-
|
|
32276
|
-
|
|
32299
|
+
smoothed.push(
|
|
32300
|
+
withCompat({
|
|
32301
|
+
x: curr.x * (1 - smoothing) + prev.x * smoothing,
|
|
32302
|
+
y: curr.y * (1 - smoothing) + prev.y * smoothing,
|
|
32303
|
+
z: curr.z !== void 0 && prev.z !== void 0 ? curr.z * (1 - smoothing) + prev.z * smoothing : curr.z,
|
|
32304
|
+
confidence: curr.confidence,
|
|
32305
|
+
name: curr.name
|
|
32306
|
+
})
|
|
32307
|
+
);
|
|
32277
32308
|
}
|
|
32278
32309
|
return smoothed;
|
|
32279
32310
|
}
|
|
@@ -33006,7 +33037,10 @@ async function submitRenderJob(node, state, config, context, params) {
|
|
|
33006
33037
|
}
|
|
33007
33038
|
if (state.persistence) {
|
|
33008
33039
|
await state.persistence.moveToCompleted(job).catch((err) => {
|
|
33009
|
-
console.error(
|
|
33040
|
+
console.error(
|
|
33041
|
+
`[RenderNetworkTrait] submitJobToAPI: moveToCompleted failed for job ${job.id}:`,
|
|
33042
|
+
err
|
|
33043
|
+
);
|
|
33010
33044
|
});
|
|
33011
33045
|
}
|
|
33012
33046
|
context.emit?.("render_job_failed", { node, job, error: job.error });
|
|
@@ -33146,7 +33180,10 @@ function pollJobStatus(job, state, config, context, node) {
|
|
|
33146
33180
|
state.costByQuality[job.quality] += job.actualCredits;
|
|
33147
33181
|
if (state.persistence) {
|
|
33148
33182
|
state.persistence.moveToCompleted(job).catch((err) => {
|
|
33149
|
-
console.error(
|
|
33183
|
+
console.error(
|
|
33184
|
+
`[RenderNetworkTrait] pollJobStatus: moveToCompleted failed for job ${job.id}:`,
|
|
33185
|
+
err
|
|
33186
|
+
);
|
|
33150
33187
|
});
|
|
33151
33188
|
state.persistence.saveState(state).catch((err) => {
|
|
33152
33189
|
console.error(`[RenderNetworkTrait] pollJobStatus: saveState failed:`, err);
|
|
@@ -33173,7 +33210,10 @@ function pollJobStatus(job, state, config, context, node) {
|
|
|
33173
33210
|
}
|
|
33174
33211
|
if (state.persistence) {
|
|
33175
33212
|
state.persistence.moveToCompleted(job).catch((err) => {
|
|
33176
|
-
console.error(
|
|
33213
|
+
console.error(
|
|
33214
|
+
`[RenderNetworkTrait] pollJobStatus (failed): moveToCompleted failed for job ${job.id}:`,
|
|
33215
|
+
err
|
|
33216
|
+
);
|
|
33177
33217
|
});
|
|
33178
33218
|
}
|
|
33179
33219
|
context.emit?.("render_job_failed", { node, job, error: job.error });
|
|
@@ -33293,7 +33333,10 @@ function createFactId(subjectId, observerId, occurredAt) {
|
|
|
33293
33333
|
return `bf_${subjectId}_${observerId}_${occurredAt}_${Math.random().toString(36).slice(2, 8)}`;
|
|
33294
33334
|
}
|
|
33295
33335
|
function effectiveMaxFacts(config) {
|
|
33296
|
-
return Math.max(
|
|
33336
|
+
return Math.max(
|
|
33337
|
+
1,
|
|
33338
|
+
Math.floor(finiteNumber(config.max_behavior_facts, DEFAULT_REPUTATION_LEDGER_MAX_FACTS))
|
|
33339
|
+
);
|
|
33297
33340
|
}
|
|
33298
33341
|
function effectiveTtlDays(config) {
|
|
33299
33342
|
return Math.max(1, finiteNumber(config.world_ttl_days, DEFAULT_REPUTATION_LEDGER_TTL_DAYS));
|
|
@@ -36800,7 +36843,11 @@ var AdvancedClothSystem = class {
|
|
|
36800
36843
|
* Update wind force
|
|
36801
36844
|
*/
|
|
36802
36845
|
setWind(wind) {
|
|
36803
|
-
this.config.wind = syncVec([
|
|
36846
|
+
this.config.wind = syncVec([
|
|
36847
|
+
vecComponent(wind, 0),
|
|
36848
|
+
vecComponent(wind, 1),
|
|
36849
|
+
vecComponent(wind, 2)
|
|
36850
|
+
]);
|
|
36804
36851
|
}
|
|
36805
36852
|
/**
|
|
36806
36853
|
* Step the simulation
|
|
@@ -38119,11 +38166,7 @@ var CharacterTrait = class {
|
|
|
38119
38166
|
} else if (this.state.movementMode === "running") {
|
|
38120
38167
|
speed = this.config.runSpeed ?? 5;
|
|
38121
38168
|
}
|
|
38122
|
-
return [
|
|
38123
|
-
input.strafe * speed,
|
|
38124
|
-
0,
|
|
38125
|
-
input.forward * speed
|
|
38126
|
-
];
|
|
38169
|
+
return [input.strafe * speed, 0, input.forward * speed];
|
|
38127
38170
|
}
|
|
38128
38171
|
/**
|
|
38129
38172
|
* Apply acceleration toward target velocity
|
|
@@ -41321,11 +41364,7 @@ var IKTrait = class {
|
|
|
41321
41364
|
const p0 = positions[i];
|
|
41322
41365
|
const length = bones[i].length;
|
|
41323
41366
|
const dir = this.normalize(this.subtract(p0, p1));
|
|
41324
|
-
positions[i] = [
|
|
41325
|
-
p1[0] + dir[0] * length,
|
|
41326
|
-
p1[1] + dir[1] * length,
|
|
41327
|
-
p1[2] + dir[2] * length
|
|
41328
|
-
];
|
|
41367
|
+
positions[i] = [p1[0] + dir[0] * length, p1[1] + dir[1] * length, p1[2] + dir[2] * length];
|
|
41329
41368
|
}
|
|
41330
41369
|
if (this.config.pinRoot) {
|
|
41331
41370
|
positions[0] = [rootPos[0], rootPos[1], rootPos[2]];
|
|
@@ -41410,20 +41449,16 @@ var IKTrait = class {
|
|
|
41410
41449
|
*/
|
|
41411
41450
|
lookRotation(forward) {
|
|
41412
41451
|
const up = [0, 1, 0];
|
|
41413
|
-
const right = this.normalize(
|
|
41414
|
-
[
|
|
41415
|
-
|
|
41416
|
-
|
|
41417
|
-
|
|
41418
|
-
|
|
41419
|
-
|
|
41420
|
-
|
|
41421
|
-
[
|
|
41422
|
-
|
|
41423
|
-
forward[2] * right[0] - forward[0] * right[2],
|
|
41424
|
-
forward[0] * right[1] - forward[1] * right[0]
|
|
41425
|
-
]
|
|
41426
|
-
);
|
|
41452
|
+
const right = this.normalize([
|
|
41453
|
+
up[1] * forward[2] - up[2] * forward[1],
|
|
41454
|
+
up[2] * forward[0] - up[0] * forward[2],
|
|
41455
|
+
up[0] * forward[1] - up[1] * forward[0]
|
|
41456
|
+
]);
|
|
41457
|
+
const newUp = this.normalize([
|
|
41458
|
+
forward[1] * right[2] - forward[2] * right[1],
|
|
41459
|
+
forward[2] * right[0] - forward[0] * right[2],
|
|
41460
|
+
forward[0] * right[1] - forward[1] * right[0]
|
|
41461
|
+
]);
|
|
41427
41462
|
const trace = right[0] + newUp[1] + forward[2];
|
|
41428
41463
|
let w, x, y, z;
|
|
41429
41464
|
if (trace > 0) {
|
|
@@ -44825,7 +44860,11 @@ var SpatialAwarenessTrait = class extends EventEmitter {
|
|
|
44825
44860
|
* Move by delta
|
|
44826
44861
|
*/
|
|
44827
44862
|
move(delta) {
|
|
44828
|
-
this.setPosition([
|
|
44863
|
+
this.setPosition([
|
|
44864
|
+
this.position[0] + delta[0],
|
|
44865
|
+
this.position[1] + delta[1],
|
|
44866
|
+
this.position[2] + delta[2]
|
|
44867
|
+
]);
|
|
44829
44868
|
}
|
|
44830
44869
|
// ===========================================================================
|
|
44831
44870
|
// CONTEXT ACCESS
|
|
@@ -45047,7 +45086,10 @@ var spatialAwarenessHandler = {
|
|
|
45047
45086
|
name: "spatial_awareness",
|
|
45048
45087
|
defaultConfig: {},
|
|
45049
45088
|
async onAttach(node, config, ctx) {
|
|
45050
|
-
const instance = new SpatialAwarenessTrait(
|
|
45089
|
+
const instance = new SpatialAwarenessTrait(
|
|
45090
|
+
node.id || "spatial_awareness",
|
|
45091
|
+
config
|
|
45092
|
+
);
|
|
45051
45093
|
node.__spatial_awareness_instance = instance;
|
|
45052
45094
|
await instance.start();
|
|
45053
45095
|
ctx.emit("spatial_awareness_attached", { node, config });
|
|
@@ -47116,10 +47158,7 @@ function compileElasticityTraitContext(trait, params) {
|
|
|
47116
47158
|
if (p.enabled === false) {
|
|
47117
47159
|
return { enabled: false, coefficient: 0 };
|
|
47118
47160
|
}
|
|
47119
|
-
const coef = readNumber2(
|
|
47120
|
-
p.coefficient ?? p.restitution ?? p.factor ?? p.bounce_factor,
|
|
47121
|
-
0.5
|
|
47122
|
-
);
|
|
47161
|
+
const coef = readNumber2(p.coefficient ?? p.restitution ?? p.factor ?? p.bounce_factor, 0.5);
|
|
47123
47162
|
const enabled2 = p.enabled !== false && coef > 0;
|
|
47124
47163
|
return { enabled: enabled2, coefficient: enabled2 ? coef : 0 };
|
|
47125
47164
|
}
|
|
@@ -51661,7 +51700,11 @@ var slackAlertHandler = {
|
|
|
51661
51700
|
status: res.status
|
|
51662
51701
|
});
|
|
51663
51702
|
} else {
|
|
51664
|
-
context.emit?.("slack_alert:error", {
|
|
51703
|
+
context.emit?.("slack_alert:error", {
|
|
51704
|
+
channel,
|
|
51705
|
+
status: res.status,
|
|
51706
|
+
error: "HTTP error"
|
|
51707
|
+
});
|
|
51665
51708
|
}
|
|
51666
51709
|
}).catch((err) => {
|
|
51667
51710
|
context.emit?.("slack_alert:error", {
|
|
@@ -56161,5 +56204,5 @@ var VRTraitRegistry = class {
|
|
|
56161
56204
|
var vrTraitRegistry = new VRTraitRegistry();
|
|
56162
56205
|
|
|
56163
56206
|
export { AIDriverTrait, ALL_CIRCUITS, ARKIT_MOUTH_SHAPES, AnimationTrait, BUILTIN_CIRCUITS, BarretenbergBackend, BehaviorTreeRunner, CARE_ETHICS_TRAIT, CRDTRoomTraitValidationError, CRDT_ROOM_TRAIT_DEFAULTS, CharacterTrait, ComponentType, ConsensusTrait, DEFAULT_ANIMATION_MAP, DEFAULT_AUTONOMY_GUARD_POLICY, DEFAULT_BEHAVIOR_FACT_TTL_ALERT_RULE, DEFAULT_EXPRESSION_PRESETS, DEFAULT_EXTERNAL_TIMEOUT_MS, DEFAULT_FOVEATED_BLEND, DEFAULT_FREQUENCY_BANDS, DEFAULT_REPUTATION_LEDGER_MAX_FACTS, DEFAULT_REPUTATION_LEDGER_TTL_DAYS, DEFAULT_SYNC_FIELD, DEFAULT_TRAIT_CONFIG2 as DEFAULT_TRAIT_CONFIG, DRAFT_DEFAULTS, DRAFT_TRAIT, DialogTrait, DraftManager, ECSWorld, EmotionDirectiveTrait, EnvironmentalAudioSystem, GEM_RESONANCE_ELEMENT_FREQUENCIES, GOAPPlanner, GOLDEN_ANGLE_DEG, IKTrait, InteractiveGraphTrait, JobQueuePersistence, JointTrait, LOCAL_WEBCAM_VIEW_ID, LipSyncTrait, LobbyTrait, MAX_EXPERIENCE_LOG_ENTRIES, MorphTrait, MultiviewGaussianRendererTrait, NetworkedTrait, OCULUS_VISEME_MAP, PIDControllerTrait, PressableTrait, REFERENCE_SPACE_CHAIN, REFUSED_CARE_OPTIMIZATION_TARGETS, RigidbodyTrait, SPATIAL_PREDICATE_CIRCUITS, SYNC_PRESETS, SandboxExecutionTrait, SlidableTrait, SpatialAwarenessTrait, SyncTierTrait, TIER_DEFAULTS, TriggerTrait, URDFRobotTrait, VRTraitRegistry, VoiceInputTrait, VoiceOutputTrait, VoronoiFractureSystem, WEATHER_PRESETS, aIDriverHandler, abTestHandler, abstain, accessibleHandler, advancedClothHandler, affinityHandler, agentDiscoveryHandler, agentMemoryHandler, agentMovementSystem, agentPortalHandler, aiInpaintingHandler, aiTextureGenHandler, aiUpscalingHandler, ainpcBrainHandler, alertHandler, altTextHandler, ambisonicsHandler, analyticsHandler, anchorHandler, applyFBXAxisConversion, applyStatModifiers, applyUSDAxisConversion, approve, audioMaterialHandler, audioOcclusionHandler, audioPortalHandler, auditLogHandler, autoVote, avatarEmbodimentHandler, behaviorTreeHandler, biofeedbackHandler, blackboardHandler, bloomReactiveHandler, bodyTrackingHandler, bufferHandler, buildBehaviorFactDisclosure, buoyancyHandler, cRDTRoomHandler, careEthicsHandler, chainHandler, characterHandler, choreographyHandler, circuitBreakerHandler, clothHandler, coLocatedHandler, compareSemVer, computeHandler, computePhyllotaxisPosition, computerUseHandler, consensusHandler, consentGateHandler, controlNetHandler, controllerInputHandler, controlnetHandler, createAIDriverTrait, createAnimationTrait, createApprovalRequest, createBaseMainnetAccountingAdapter, createBehaviorFactTtlAlertRule, createCRDTRoomTraitConfig, createCanBusAccountingAdapter, createCareField, createCharacterTrait, createConsensusTrait, createDialogTrait, createEdiX12AccountingAdapter, createEmotionDirectiveTrait, createHl7FhirAccountingAdapter, createIKTrait, createJointTrait, createLipSyncTrait, createLobbyTrait, createMorphTrait, createNetworkedTrait, createRepairLoop, createRigidbodyTrait, createRollbackCheckpoint, createSelectiveDisclosure, createSharedSpatialProvider, createSimulatedController, createSpatialAwarenessTrait, createTriggerTrait, createURDFRobotTrait, createVoiceInputTrait, createVoiceOutputTrait, cronHandler, dataBindingHandler, deriveBloomReactiveOutput, deriveLotusCenterPhase, deriveLotusGardenerSchedule, deriveLotusGenesisGate, deriveLotusGenesisSeed, deriveLotusPetalVisual, deriveLotusRootEmissive, deriveLotusStalkPosture, deriveWalkableNavmesh, destructionHandler, deviceProfiles, dialogHandler, dialogueHandler, diffusionRealtimeHandler, digitalTwinHandler, dropTableHandler, economyPrimitivesHandler, effectiveWeight, embeddingSearchHandler, emissiveAt, emotionDirectiveHandler, emotionHandler, emotionalVoiceHandler, encounterHandler, environmentalAudioHandler, evaluateAction, evaluateAutonomyGuard, evaluateCareEthicsTurn, extractLotusGenesisAnchorHash, extractPayload, eyeTrackedHandler, faceTrackingHandler, factionHandler, fbxHandler, feedbackLoopHandler, findReachablePath, findWalkableNodeAt, flowFieldHandler, fluidHandler, gardenerPulseJitter, gaussianSplatHandler, gemResonanceHandler, geospatialAnchorHandler, geospatialEnvHandler, gestureHandler, getActiveSessions, getAgentId, getAirAbsorption, getAuditLog, getCachedThingDescription, getCapabilities, getCareEthicsState, getEventHistory, getFBXAnimationStacks, getFBXBoneNames, getFBXMorphTargets, getFBXState, getGLTFAnimations, getGLTFMorphTargets, getGLTFState, getMQTTSinkClient, getMQTTSinkState, getMQTTSourceClient, getMQTTSourceState, getMyProposals, getMyVotes, getNegotiationMethods, getPredicateCircuitId, getSession, getUSDActiveVariant, getUSDAnimation, getUSDBlendShapes, getUSDJointNames, getUSDState, getUSDVariantSets, getWoTThingState, gltfHandler, goalOrientedHandler, gpuBufferHandler, gpuParticleHandler, gpuPhysicsHandler, granularMaterialHandler, handMenuHandler, handMeshAIHandler, handTrackingHandler, hapticCueHandler, hapticHandler, hasMQTTSinkTrait, hasMQTTSourceTrait, hasVoted, hasWoTThingTrait, hashGardenerSeed, hashSeed, headTrackedAudioHandler, heatmap3dHandler, highContrastHandler, hitlHandler, hrtfHandler, iKHandler, initiate, invalidateThingDescription, isConsentGranted, isFBXLoaded, isGLTFLoaded, isInSession, isMQTTSinkConnected, isMQTTSourceConnected, isReservedPaperId, isUSDLoaded, isUSDZ, isWalkableAt, jointHandler, layerAwareHandler, leave, lightEstimationHandler, lipSyncHandler, llmAgentHandler, lobbyHandler, localLLMHandler, lodSystem, lotusCenterHandler, lotusGardenerHandler, lotusGenesisTriggerHandler, lotusPetalHandler, lotusRootHandler, lotusStalkHandler, luckHandler, magnifiableHandler, marketplaceHandler, marketplaceIntegrationHandler, matchesCondition, materialXHandler, memoryHandler, meshDetectionHandler, messagingHandler, modifiedThreshold, morphHandler, motionReducedHandler, mqttSinkHandler, mqttSourceHandler, multiAgentHandler, multiviewGaussianRendererHandler, negotiationHandler, nerfHandler, networkedAvatarHandler, networkedHandler, neuralAnimationHandler, neuralForgeHandler, neuralLinkHandler, neuralUpscalingHandler, nftHandler, normalizeCenter, normalizeLotusSeed, normalizePointCloud, npcAIHandler, objectTrackingHandler, occlusionHandler, openXRHALHandler, parseCRDTRoomEntityConfig, parseCRDTRoomTraitConfig, partnerSDKHandler, patrolHandler, perceptionHandler, persistentAnchorHandler, photogrammetryHandler, phyllotaxisHandler, physicsSystem, pickByWeight, planeDetectionHandler, poiHandler, pointCloudHandler, portableHandler, poseEstimationHandler, pressableHandler, propose, publishToMQTTSink, quotaHandler, ragKnowledgeHandler, rateLimiterHandler, rbacHandler, realityKitMeshHandler, recordGratitude, rememberRelationalContext, remotePresenceHandler, renderNetworkHandler, reputationLedgerHandler, resolveBloomStage, resolveCRDTRoomTraitConfig, resolvePulseHz, resourceAccountingHandler, reverbZoneHandler, rigidbodyHandler, roadmapNodeHandler, roleHandler, rooftopAnchorHandler, roomMeshHandler, ropeHandler, runECSBenchmark, runResourceAccountingAudit, sceneGraphHandler, sceneReconstructionHandler, schedulerHandler, screenReaderHandler, scrollableHandler, seatedHandler, secondsToUSDTimeCode, seededRand01, sensorHandler, setAgentManifest, sharePlayHandler, sharedAnchorHandler, sharedWorldHandler, shouldFire, signRequest, skillRegistryHandler, slidableHandler, softBodyHandler, sonificationHandler, spatialAccessoryHandler, spatialAudioCueHandler, spatialAwarenessHandler, spatialNavigationHandler, spatialPersonaHandler, spectatorHandler, ssoOidcHandler, ssoSamlHandler, stableDiffusionHandler, stableResourceAccountingReceiptHash, statHandler, structuredLoggerHandler, subtitleHandler, syncTierHandler, tenantHandler, terrainAnchorHandler, timeoutGuardHandler, tokenGatedHandler, transformHandler, triggerHandler, urdfRobotHandler, usdHandler, usdTimeCodeToSeconds, userMonitorHandler, validateCRDTRoomTraitConfig, validateCareField, validateSemVer, vectorDBHandler, verifyWebhookSignature, visionHandler, voiceInputHandler, voiceMeshHandler, voiceOutputHandler, voiceProximityHandler, volumetricHandler, volumetricVideoHandler, volumetricWindowHandler, voronoiFractureHandler, vote, vpsHandler, vrTraitRegistry, walletHandler, wasmBridgeHandler, windHandler, withNegotiation, wotThingHandler, zkPrivateHandler };
|
|
56164
|
-
//# sourceMappingURL=chunk-
|
|
56165
|
-
//# sourceMappingURL=chunk-
|
|
56207
|
+
//# sourceMappingURL=chunk-YN6IETRZ.js.map
|
|
56208
|
+
//# sourceMappingURL=chunk-YN6IETRZ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compileParticleBlock, compilePhysicsBlock, compileMaterialBlock } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compileParticleBlock, compilePhysicsBlock, compileMaterialBlock } from './chunk-ZA34AN3R.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
3
3
|
import { init_safeJsonParse, jsonClone } from './chunk-VVKVQZI6.js';
|
|
4
4
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -807,5 +807,5 @@ const ${twinName} = new THREE.Group();`);
|
|
|
807
807
|
});
|
|
808
808
|
|
|
809
809
|
export { VRRCompiler, VRRCompiler_default, VRRCompiler_exports, init_VRRCompiler };
|
|
810
|
-
//# sourceMappingURL=chunk-
|
|
811
|
-
//# sourceMappingURL=chunk-
|
|
810
|
+
//# sourceMappingURL=chunk-YRRAUB35.js.map
|
|
811
|
+
//# sourceMappingURL=chunk-YRRAUB35.js.map
|