@holoscript/core 8.0.5 → 8.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -34
- package/bin/holoscript.cjs +1 -1
- package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
- package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
- package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
- package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
- package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
- package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
- package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
- package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
- package/dist/{chunk-V6MKC2FZ.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-IUDGEUDO.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-CCATWPXM.js → chunk-2OWDB4FB.js} +13 -25
- package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
- package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
- package/dist/{chunk-GYZE55MO.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-CMT5NMMS.js → chunk-3NGDZZR4.js} +4 -4
- package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
- package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
- package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
- package/dist/{chunk-LHAXPADA.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-ROHLEP2W.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-ZMCVKFXI.cjs → chunk-56VOWURB.cjs} +154 -47
- package/dist/{chunk-FXKAW7ZO.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-UJXISJBN.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-5NWINHR5.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-3WZEJHUQ.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-YN2YWTXW.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-OJXHYNXN.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-FYSPZT4V.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-UWXE23BT.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-UO4WPSGQ.js → chunk-B4EKV6HQ.js} +154 -48
- package/dist/{chunk-2X7NGX3M.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-D3STJ56J.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-I5CDNPPE.cjs → chunk-C4GSLCHE.cjs} +331 -125
- package/dist/{chunk-QPSKHBJP.js → chunk-C7ZBSV2Q.js} +13 -7
- package/dist/{chunk-YN6V7R3L.cjs → chunk-CCPSNT6B.cjs} +12 -7
- package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
- package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
- package/dist/{chunk-ANXZFVY2.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-6DO5IZ5N.cjs → chunk-EDPYCLRC.cjs} +85 -65
- package/dist/{chunk-WQKJSGVS.js → chunk-F2G6CWFT.js} +271 -66
- package/dist/{chunk-AVJHHUC5.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-ZU7NIRT6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-YVD3CSO3.js → chunk-FHQFPYV4.js} +4 -4
- package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
- package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
- package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
- package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
- package/dist/{chunk-XB274MW5.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-HKEXJUWS.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-WRKUDAZJ.js → chunk-GSOUNWEL.js} +35 -27
- package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
- package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
- package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
- package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
- package/dist/{chunk-NCWCUZNS.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-IUTY5WQ2.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-IWC5DM2M.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-ON5QSY35.cjs → chunk-KAIVDEIG.cjs} +175 -59
- package/dist/{chunk-R24NNAEG.js → chunk-KCPHASCO.js} +18 -6
- package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
- package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
- package/dist/{chunk-MVPBWHAC.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-2IWC4FP7.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-KKP7JKN4.cjs → chunk-LODTHGST.cjs} +18 -12
- package/dist/{chunk-4V2E7U7Q.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-PY37LNDP.js → chunk-LWUOUCYL.js} +9 -5
- package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
- package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
- package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
- package/dist/{chunk-E4M5OAYO.js → chunk-MSYSQ2AJ.js} +132 -16
- package/dist/{chunk-TWUXUCEW.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-FFAOS5HQ.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-S3MDHNKB.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-U44IKGG7.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-KQCN6AKJ.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-DAJXW4KX.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-QACVP4PM.js → chunk-PXNZ6TME.js} +77 -59
- package/dist/{chunk-OMXII44L.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-OH2FAIVU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-XKTPFXGA.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-CR4FMIWL.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-QD32ADK6.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-HNDK4IQU.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-JC5YBPSF.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-5KVXXUD4.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-KMC6CQH3.js → chunk-SXOSDZD6.js} +6 -6
- package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
- package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
- package/dist/{chunk-QXH7QDSZ.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-UFZZ7TSN.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-PJGFU5DN.cjs → chunk-TRCGG42I.cjs} +195 -152
- package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
- package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
- package/dist/{chunk-LKWQNUE6.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-JBNDTXXV.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-YWOBW2PV.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-7M3PNU2M.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-J7XZV333.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-UWJHCOH2.js → chunk-VF257YKO.js} +4 -4
- package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
- package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
- package/dist/{chunk-YT5L3B57.cjs → chunk-WFKVS2K4.cjs} +65 -27
- package/dist/{chunk-J6M4FPK5.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-5H2G27PK.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-DHO2YRIM.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-XIVIE43A.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-7H33U5SM.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-OBIYPYYS.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ADADVMXY.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-ONDAWTW4.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-4SDKXQ4C.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-OBP5REIV.js → chunk-Z6PMDS4G.js} +62 -24
- package/dist/{chunk-BOVPWH4H.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-6FH72EB2.cjs → chunk-ZPZAVHXL.cjs} +20 -20
- package/dist/cli/holoscript-runner.cjs +39 -22
- package/dist/cli/holoscript-runner.js +32 -15
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +8 -8
- package/dist/compiler/android-xr.js +6 -6
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/ar.cjs +6 -6
- package/dist/compiler/ar.js +4 -4
- package/dist/compiler/babylon.cjs +8 -8
- package/dist/compiler/babylon.js +7 -7
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +153 -153
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +530 -355
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +374 -210
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/multi-layer.cjs +10 -10
- package/dist/compiler/multi-layer.js +9 -9
- package/dist/compiler/openxr.cjs +7 -7
- package/dist/compiler/openxr.js +6 -6
- package/dist/compiler/playcanvas.cjs +6 -6
- package/dist/compiler/playcanvas.js +5 -5
- package/dist/compiler/r3f.cjs +13 -13
- package/dist/compiler/r3f.js +8 -8
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +8 -8
- package/dist/compiler/trait-composition.js +4 -4
- package/dist/compiler/unity.cjs +7 -7
- package/dist/compiler/unity.js +6 -6
- package/dist/compiler/unreal.cjs +8 -8
- package/dist/compiler/unreal.js +6 -6
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +7 -7
- package/dist/compiler/visionos.js +6 -6
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/vrr.cjs +7 -7
- package/dist/compiler/vrr.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/coordinators/index.cjs +27 -10
- package/dist/coordinators/index.js +27 -10
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.js +4 -4
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/hololand/index.cjs +36 -36
- package/dist/hololand/index.js +2 -2
- package/dist/index.cjs +1080 -2190
- package/dist/index.js +467 -1577
- package/dist/math/tropical-spmv.cjs +10 -10
- package/dist/math/tropical-spmv.js +1 -1
- package/dist/math/vec3.cjs +13 -13
- package/dist/math/vec3.js +1 -1
- package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
- package/dist/parser.cjs +16 -16
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +37 -37
- package/dist/reconstruction/index.js +4 -4
- package/dist/runtime.cjs +280 -74
- package/dist/runtime.d.ts +10 -1
- package/dist/runtime.js +268 -70
- package/dist/self-improvement/index.cjs +12 -4
- package/dist/self-improvement/index.js +12 -4
- package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
- package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
- package/dist/testing.cjs +5 -5
- package/dist/testing.js +1 -1
- package/dist/traits/botanical-lotus.cjs +52 -48
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/engines/index.cjs +39 -39
- package/dist/traits/engines/index.d.ts +279 -0
- package/dist/traits/engines/index.js +4 -4
- package/dist/traits/index.cjs +889 -773
- package/dist/traits/index.js +371 -259
- package/dist/world/index.cjs +21 -18
- package/dist/world/index.js +21 -18
- package/dist/world-model/index.cjs +11 -5
- package/dist/world-model/index.d.ts +8 -0
- package/dist/world-model/index.js +11 -5
- package/package.json +75 -69
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-37FPRVPH.js +0 -17
- package/dist/GLTFPipeline-EK3LFJKW.cjs +0 -38
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-ACDFKVVH.js +0 -10
- package/dist/HoloScriptRuntime-ON2OQVEF.cjs +0 -19
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKQU64CIX_cjs = require('./chunk-KQU64CIX.cjs');
|
|
4
4
|
var chunk3FOKASKO_cjs = require('./chunk-3FOKASKO.cjs');
|
|
5
5
|
var chunk4PDEPEQW_cjs = require('./chunk-4PDEPEQW.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk2GCNOI2U_cjs = require('./chunk-2GCNOI2U.cjs');
|
|
7
7
|
var chunkXHIV6326_cjs = require('./chunk-XHIV6326.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var chunk56VOWURB_cjs = require('./chunk-56VOWURB.cjs');
|
|
9
|
+
var chunkX2AVEAZM_cjs = require('./chunk-X2AVEAZM.cjs');
|
|
10
10
|
var chunkILRBGFVD_cjs = require('./chunk-ILRBGFVD.cjs');
|
|
11
11
|
var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
12
12
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
@@ -1117,9 +1117,7 @@ function calculateStability(positions) {
|
|
|
1117
1117
|
for (let i = 1; i < positions.length; i++) {
|
|
1118
1118
|
const p1 = positions[i - 1];
|
|
1119
1119
|
const p2 = positions[i];
|
|
1120
|
-
totalDelta += Math.sqrt(
|
|
1121
|
-
(p2[0] - p1[0]) ** 2 + (p2[1] - p1[1]) ** 2 + (p2[2] - p1[2]) ** 2
|
|
1122
|
-
);
|
|
1120
|
+
totalDelta += Math.sqrt((p2[0] - p1[0]) ** 2 + (p2[1] - p1[1]) ** 2 + (p2[2] - p1[2]) ** 2);
|
|
1123
1121
|
}
|
|
1124
1122
|
const avgDelta = totalDelta / (positions.length - 1);
|
|
1125
1123
|
return Math.max(0, 1 - avgDelta / 0.05);
|
|
@@ -1145,18 +1143,18 @@ function initState(node, config) {
|
|
|
1145
1143
|
const state = {
|
|
1146
1144
|
baseValue: config.value,
|
|
1147
1145
|
modifiers: Array.isArray(config.modifiers) ? [...config.modifiers] : [],
|
|
1148
|
-
lastEffective: applyStatModifiers(
|
|
1149
|
-
config.value,
|
|
1150
|
-
config.modifiers ?? [],
|
|
1151
|
-
config.min,
|
|
1152
|
-
config.max
|
|
1153
|
-
)
|
|
1146
|
+
lastEffective: applyStatModifiers(config.value, config.modifiers ?? [], config.min, config.max)
|
|
1154
1147
|
};
|
|
1155
1148
|
node.__statState = state;
|
|
1156
1149
|
return state;
|
|
1157
1150
|
}
|
|
1158
1151
|
function recompute(state, config) {
|
|
1159
|
-
state.lastEffective = applyStatModifiers(
|
|
1152
|
+
state.lastEffective = applyStatModifiers(
|
|
1153
|
+
state.baseValue,
|
|
1154
|
+
state.modifiers,
|
|
1155
|
+
config.min,
|
|
1156
|
+
config.max
|
|
1157
|
+
);
|
|
1160
1158
|
return state.lastEffective;
|
|
1161
1159
|
}
|
|
1162
1160
|
var statHandler = {
|
|
@@ -2631,7 +2629,11 @@ var anchorHandler = {
|
|
|
2631
2629
|
const [ox, oy, oz] = config.offset;
|
|
2632
2630
|
context.emit?.("set_position", {
|
|
2633
2631
|
node,
|
|
2634
|
-
position: [
|
|
2632
|
+
position: [
|
|
2633
|
+
state.pose.position[0] + ox,
|
|
2634
|
+
state.pose.position[1] + oy,
|
|
2635
|
+
state.pose.position[2] + oz
|
|
2636
|
+
]
|
|
2635
2637
|
});
|
|
2636
2638
|
context.emit?.("set_rotation", {
|
|
2637
2639
|
node,
|
|
@@ -4540,7 +4542,9 @@ function resolveBaseFrequency(element, config) {
|
|
|
4540
4542
|
return asFiniteNumber(frequencies[element]) ?? frequencies.none ?? 432;
|
|
4541
4543
|
}
|
|
4542
4544
|
function neighborId(neighbor) {
|
|
4543
|
-
return String(
|
|
4545
|
+
return String(
|
|
4546
|
+
neighbor.nodeId ?? neighbor.id ?? neighbor.name ?? neighbor.element ?? "nearby_gem"
|
|
4547
|
+
);
|
|
4544
4548
|
}
|
|
4545
4549
|
function neighborElement(neighbor) {
|
|
4546
4550
|
const configElement = isRecord(neighbor.config) ? normalizeElement(neighbor.config.element) : null;
|
|
@@ -9848,10 +9852,7 @@ var perceptionHandler = {
|
|
|
9848
9852
|
const now = Date.now();
|
|
9849
9853
|
const position = node.position || [0, 0, 0];
|
|
9850
9854
|
const rotation = node.rotation || [0, 0, 0];
|
|
9851
|
-
const forward = [
|
|
9852
|
-
Math.sin(rotation[1]),
|
|
9853
|
-
Math.cos(rotation[1])
|
|
9854
|
-
];
|
|
9855
|
+
const forward = [Math.sin(rotation[1]), Math.cos(rotation[1])];
|
|
9855
9856
|
const toRemove = [];
|
|
9856
9857
|
let highestThreat = 0;
|
|
9857
9858
|
for (const [id, entity] of state.entities) {
|
|
@@ -9906,10 +9907,7 @@ var perceptionHandler = {
|
|
|
9906
9907
|
if (!state) return;
|
|
9907
9908
|
const position = node.position || [0, 0, 0];
|
|
9908
9909
|
const rotation = node.rotation || [0, 0, 0];
|
|
9909
|
-
const forward = [
|
|
9910
|
-
Math.sin(rotation[1]),
|
|
9911
|
-
Math.cos(rotation[1])
|
|
9912
|
-
];
|
|
9910
|
+
const forward = [Math.sin(rotation[1]), Math.cos(rotation[1])];
|
|
9913
9911
|
if (event.type === "perception_detect") {
|
|
9914
9912
|
const target = event.target;
|
|
9915
9913
|
if (!target?.id) return;
|
|
@@ -15715,11 +15713,7 @@ var zkPrivateHandler = {
|
|
|
15715
15713
|
if (!s?.isReady) return;
|
|
15716
15714
|
const payload = extractPayload(event);
|
|
15717
15715
|
if (event.type === "proof_generate") {
|
|
15718
|
-
const {
|
|
15719
|
-
circuitId,
|
|
15720
|
-
publicInputs = {},
|
|
15721
|
-
privateInputs = {}
|
|
15722
|
-
} = payload;
|
|
15716
|
+
const { circuitId, publicInputs = {}, privateInputs = {} } = payload;
|
|
15723
15717
|
if (!circuitId) return;
|
|
15724
15718
|
const circuit = s.circuits.get(circuitId);
|
|
15725
15719
|
if (!circuit) {
|
|
@@ -15727,7 +15721,10 @@ var zkPrivateHandler = {
|
|
|
15727
15721
|
return;
|
|
15728
15722
|
}
|
|
15729
15723
|
const requestId = payload.requestId ?? `zk_${Date.now()}`;
|
|
15730
|
-
s.activeProofs.set(requestId, {
|
|
15724
|
+
s.activeProofs.set(requestId, {
|
|
15725
|
+
circuitId,
|
|
15726
|
+
startedAt: Date.now()
|
|
15727
|
+
});
|
|
15731
15728
|
ctx.emit("proof_generation_started", { node, requestId, circuit: circuitId });
|
|
15732
15729
|
const t0 = Date.now();
|
|
15733
15730
|
const timeout = new Promise(
|
|
@@ -15753,11 +15750,7 @@ var zkPrivateHandler = {
|
|
|
15753
15750
|
ctx.emit("zk_error", { node, requestId, error: err.message });
|
|
15754
15751
|
});
|
|
15755
15752
|
} else if (event.type === "proof_verify") {
|
|
15756
|
-
const {
|
|
15757
|
-
proof: proofBytes,
|
|
15758
|
-
publicInputs = {},
|
|
15759
|
-
circuitId
|
|
15760
|
-
} = payload;
|
|
15753
|
+
const { proof: proofBytes, publicInputs = {}, circuitId } = payload;
|
|
15761
15754
|
if (!proofBytes) return;
|
|
15762
15755
|
const requestId = payload.requestId ?? `verify_${Date.now()}`;
|
|
15763
15756
|
const t0 = Date.now();
|
|
@@ -16677,7 +16670,9 @@ var clothHandler = {
|
|
|
16677
16670
|
vertices: state.vertices
|
|
16678
16671
|
});
|
|
16679
16672
|
} else if (event.type === "wind_update") {
|
|
16680
|
-
state.windForce = vecToTuple(
|
|
16673
|
+
state.windForce = vecToTuple(
|
|
16674
|
+
event.direction
|
|
16675
|
+
);
|
|
16681
16676
|
} else if (event.type === "cloth_apply_force") {
|
|
16682
16677
|
const force = event.force;
|
|
16683
16678
|
const position = event.position;
|
|
@@ -17169,7 +17164,11 @@ var softBodyHandler = {
|
|
|
17169
17164
|
} else if (event.type === "soft_body_poke") {
|
|
17170
17165
|
const position = event.position;
|
|
17171
17166
|
const force = event.force || 10;
|
|
17172
|
-
const dirInput = event.direction || [
|
|
17167
|
+
const dirInput = event.direction || [
|
|
17168
|
+
0,
|
|
17169
|
+
-1,
|
|
17170
|
+
0
|
|
17171
|
+
];
|
|
17173
17172
|
const direction = Array.isArray(dirInput) ? [dirInput[0] ?? 0, dirInput[1] ?? -1, dirInput[2] ?? 0] : [dirInput[0] ?? 0, dirInput[1] ?? -1, dirInput[2] ?? 0];
|
|
17174
17173
|
context.emit?.("soft_body_impulse", {
|
|
17175
17174
|
node,
|
|
@@ -17271,7 +17270,13 @@ var affinityHandler = {
|
|
|
17271
17270
|
relationalWeight: 0.5,
|
|
17272
17271
|
maxEffort: 1,
|
|
17273
17272
|
adaptationRate: 0.1
|
|
17274
|
-
} : {
|
|
17273
|
+
} : {
|
|
17274
|
+
enabled: false,
|
|
17275
|
+
wellBeingWeight: 0.5,
|
|
17276
|
+
relationalWeight: 0.5,
|
|
17277
|
+
maxEffort: 1,
|
|
17278
|
+
adaptationRate: 0.1
|
|
17279
|
+
},
|
|
17275
17280
|
timeStep: cfg.timeStep ?? 0.1,
|
|
17276
17281
|
maxTime: cfg.maxTime,
|
|
17277
17282
|
// Forward any extra fields the caller added
|
|
@@ -17407,12 +17412,7 @@ function createCareField(input) {
|
|
|
17407
17412
|
});
|
|
17408
17413
|
return {
|
|
17409
17414
|
schemaVersion: "1.0.0",
|
|
17410
|
-
fieldId: input.fieldId ?? createCareId("care", [
|
|
17411
|
-
input.createdAt,
|
|
17412
|
-
input.steward.id,
|
|
17413
|
-
input.counterpart.id,
|
|
17414
|
-
input.goal
|
|
17415
|
-
]),
|
|
17415
|
+
fieldId: input.fieldId ?? createCareId("care", [input.createdAt, input.steward.id, input.counterpart.id, input.goal]),
|
|
17416
17416
|
createdAt: input.createdAt,
|
|
17417
17417
|
steward: input.steward,
|
|
17418
17418
|
counterpart: input.counterpart,
|
|
@@ -17441,11 +17441,7 @@ function createCareField(input) {
|
|
|
17441
17441
|
}
|
|
17442
17442
|
function createRepairLoop(input) {
|
|
17443
17443
|
return {
|
|
17444
|
-
loopId: input.loopId ?? createCareId("repair", [
|
|
17445
|
-
input.openedAt,
|
|
17446
|
-
input.actor.id,
|
|
17447
|
-
input.harmOrMismatch
|
|
17448
|
-
]),
|
|
17444
|
+
loopId: input.loopId ?? createCareId("repair", [input.openedAt, input.actor.id, input.harmOrMismatch]),
|
|
17449
17445
|
openedAt: input.openedAt,
|
|
17450
17446
|
status: "open",
|
|
17451
17447
|
harmOrMismatch: input.harmOrMismatch,
|
|
@@ -17462,12 +17458,7 @@ function createRepairLoop(input) {
|
|
|
17462
17458
|
}
|
|
17463
17459
|
function recordGratitude(input) {
|
|
17464
17460
|
return {
|
|
17465
|
-
entryId: input.entryId ?? createCareId("gratitude", [
|
|
17466
|
-
input.recordedAt,
|
|
17467
|
-
input.from.id,
|
|
17468
|
-
input.to.id,
|
|
17469
|
-
input.contribution
|
|
17470
|
-
]),
|
|
17461
|
+
entryId: input.entryId ?? createCareId("gratitude", [input.recordedAt, input.from.id, input.to.id, input.contribution]),
|
|
17471
17462
|
recordedAt: input.recordedAt,
|
|
17472
17463
|
from: input.from,
|
|
17473
17464
|
to: input.to,
|
|
@@ -17478,11 +17469,7 @@ function recordGratitude(input) {
|
|
|
17478
17469
|
}
|
|
17479
17470
|
function rememberRelationalContext(input) {
|
|
17480
17471
|
return {
|
|
17481
|
-
memoryId: input.memoryId ?? createCareId("memory", [
|
|
17482
|
-
input.recordedAt,
|
|
17483
|
-
input.subject.id,
|
|
17484
|
-
input.summary
|
|
17485
|
-
]),
|
|
17472
|
+
memoryId: input.memoryId ?? createCareId("memory", [input.recordedAt, input.subject.id, input.summary]),
|
|
17486
17473
|
recordedAt: input.recordedAt,
|
|
17487
17474
|
subject: input.subject,
|
|
17488
17475
|
summary: input.summary,
|
|
@@ -18425,7 +18412,11 @@ function generateFragments(position, scale, impactPoint, config) {
|
|
|
18425
18412
|
const explosionScale = config.explosion_force + Math.random() * config.explosion_force * 0.5;
|
|
18426
18413
|
fragments.push({
|
|
18427
18414
|
id: `fragment_${i}_${Date.now()}`,
|
|
18428
|
-
position: [
|
|
18415
|
+
position: [
|
|
18416
|
+
position[0] + points[i][0],
|
|
18417
|
+
position[1] + points[i][1],
|
|
18418
|
+
position[2] + points[i][2]
|
|
18419
|
+
],
|
|
18429
18420
|
velocity: [
|
|
18430
18421
|
dx / dist * explosionScale,
|
|
18431
18422
|
dy / dist * explosionScale + Math.random() * 2,
|
|
@@ -18591,11 +18582,7 @@ function triggerDestruction(node, config, context, state, impactPoint) {
|
|
|
18591
18582
|
state.fragments = generateFragments(
|
|
18592
18583
|
position,
|
|
18593
18584
|
scale,
|
|
18594
|
-
impactPoint ? [
|
|
18595
|
-
impactPoint[0] - position[0],
|
|
18596
|
-
impactPoint[1] - position[1],
|
|
18597
|
-
impactPoint[2] - position[2]
|
|
18598
|
-
] : null,
|
|
18585
|
+
impactPoint ? [impactPoint[0] - position[0], impactPoint[1] - position[1], impactPoint[2] - position[2]] : null,
|
|
18599
18586
|
config
|
|
18600
18587
|
);
|
|
18601
18588
|
const ctxExt = context;
|
|
@@ -19341,9 +19328,13 @@ var NetworkedTrait = class {
|
|
|
19341
19328
|
}
|
|
19342
19329
|
};
|
|
19343
19330
|
if (this.activeTransport === "websocket" && this.wsTransport) {
|
|
19344
|
-
this.wsTransport.send(
|
|
19331
|
+
this.wsTransport.send(
|
|
19332
|
+
message
|
|
19333
|
+
);
|
|
19345
19334
|
} else if (this.activeTransport === "webrtc" && this.rtcTransport) {
|
|
19346
|
-
this.rtcTransport.send(
|
|
19335
|
+
this.rtcTransport.send(
|
|
19336
|
+
message
|
|
19337
|
+
);
|
|
19347
19338
|
} else if (this.syncProtocol) {
|
|
19348
19339
|
this.syncProtocol.syncState(this.entityId, updates);
|
|
19349
19340
|
}
|
|
@@ -21908,7 +21899,11 @@ function renderAuditPrompt(template, receipt) {
|
|
|
21908
21899
|
replaceToken(
|
|
21909
21900
|
replaceToken(
|
|
21910
21901
|
replaceToken(
|
|
21911
|
-
replaceToken(
|
|
21902
|
+
replaceToken(
|
|
21903
|
+
replaceToken(template, "{claimId}", receipt.claimId),
|
|
21904
|
+
"{domain}",
|
|
21905
|
+
receipt.domain
|
|
21906
|
+
),
|
|
21912
21907
|
"{ledgerId}",
|
|
21913
21908
|
receipt.ledgerId
|
|
21914
21909
|
),
|
|
@@ -24665,7 +24660,10 @@ function buildReachabilityGraph(cells, blockedEdges, opts, axes) {
|
|
|
24665
24660
|
const edges = [];
|
|
24666
24661
|
const seen = /* @__PURE__ */ new Set();
|
|
24667
24662
|
for (const cell of orderedCells) {
|
|
24668
|
-
for (const [da, db] of [
|
|
24663
|
+
for (const [da, db] of [
|
|
24664
|
+
[1, 0],
|
|
24665
|
+
[0, 1]
|
|
24666
|
+
]) {
|
|
24669
24667
|
const next = cells.get(cellKey(cell.level, cell.a + da, cell.b + db));
|
|
24670
24668
|
if (!next) continue;
|
|
24671
24669
|
if (isBlocked(cell, next, blockedEdges)) continue;
|
|
@@ -24681,7 +24679,14 @@ function buildReachabilityGraph(cells, blockedEdges, opts, axes) {
|
|
|
24681
24679
|
if (manhattan > 1) continue;
|
|
24682
24680
|
const heightDelta = Math.abs(a.height - b.height);
|
|
24683
24681
|
if (heightDelta <= opts.max_step_height_m + opts.plane_tolerance_m) {
|
|
24684
|
-
addUndirectedEdge(
|
|
24682
|
+
addUndirectedEdge(
|
|
24683
|
+
edges,
|
|
24684
|
+
seen,
|
|
24685
|
+
a.key,
|
|
24686
|
+
b.key,
|
|
24687
|
+
"stair",
|
|
24688
|
+
Math.hypot(opts.cell_size_m, heightDelta)
|
|
24689
|
+
);
|
|
24685
24690
|
}
|
|
24686
24691
|
}
|
|
24687
24692
|
}
|
|
@@ -24702,7 +24707,11 @@ function buildCollisionMesh(cells, blockedEdges, opts, axes) {
|
|
|
24702
24707
|
fromHorizontal(cell.a, cell.b + 1, cell.height, opts.cell_size_m, axes)
|
|
24703
24708
|
);
|
|
24704
24709
|
triangles.push([base, base + 1, base + 2], [base, base + 2, base + 3]);
|
|
24705
|
-
surfaces.push({
|
|
24710
|
+
surfaces.push({
|
|
24711
|
+
id: `surface:${cell.key}`,
|
|
24712
|
+
kind: "floor",
|
|
24713
|
+
vertex_indices: [base, base + 1, base + 2, base + 3]
|
|
24714
|
+
});
|
|
24706
24715
|
}
|
|
24707
24716
|
for (const edge of [...blockedEdges.values()].sort(compareBlockedEdges)) {
|
|
24708
24717
|
const base = vertices.length;
|
|
@@ -24726,7 +24735,11 @@ function buildCollisionMesh(cells, blockedEdges, opts, axes) {
|
|
|
24726
24735
|
);
|
|
24727
24736
|
}
|
|
24728
24737
|
triangles.push([base, base + 1, base + 2], [base, base + 2, base + 3]);
|
|
24729
|
-
surfaces.push({
|
|
24738
|
+
surfaces.push({
|
|
24739
|
+
id: `surface:wall:${blockedKey(edge)}`,
|
|
24740
|
+
kind: "wall",
|
|
24741
|
+
vertex_indices: [base, base + 1, base + 2, base + 3]
|
|
24742
|
+
});
|
|
24730
24743
|
}
|
|
24731
24744
|
return {
|
|
24732
24745
|
vertices,
|
|
@@ -24754,7 +24767,12 @@ function detectHoles(cells, opts, axes) {
|
|
|
24754
24767
|
outside.add(`${minA}:${minB}`);
|
|
24755
24768
|
while (queue.length > 0) {
|
|
24756
24769
|
const [a, b] = queue.shift();
|
|
24757
|
-
for (const [da, db] of [
|
|
24770
|
+
for (const [da, db] of [
|
|
24771
|
+
[1, 0],
|
|
24772
|
+
[-1, 0],
|
|
24773
|
+
[0, 1],
|
|
24774
|
+
[0, -1]
|
|
24775
|
+
]) {
|
|
24758
24776
|
const na = a + da;
|
|
24759
24777
|
const nb = b + db;
|
|
24760
24778
|
if (na < minA || na > maxA || nb < minB || nb > maxB) continue;
|
|
@@ -26998,9 +27016,14 @@ var computerUseHandler = {
|
|
|
26998
27016
|
onDetach(node, _config, ctx) {
|
|
26999
27017
|
const state = node.__computerUseState;
|
|
27000
27018
|
if (!state) return;
|
|
27001
|
-
const closures = [...state.sessions.values()].map(
|
|
27002
|
-
|
|
27003
|
-
|
|
27019
|
+
const closures = [...state.sessions.values()].map(
|
|
27020
|
+
(s) => s.page?.close().catch((err) => {
|
|
27021
|
+
console.error(
|
|
27022
|
+
`[ComputerUseTrait] onDetach: failed to close page for session ${s.id}:`,
|
|
27023
|
+
err
|
|
27024
|
+
);
|
|
27025
|
+
})
|
|
27026
|
+
);
|
|
27004
27027
|
Promise.allSettled(closures ?? []);
|
|
27005
27028
|
ctx.emit("computer_use_stopped", {
|
|
27006
27029
|
node,
|
|
@@ -27028,7 +27051,10 @@ var computerUseHandler = {
|
|
|
27028
27051
|
const session = closeBrowserId ? state.sessions.get(closeBrowserId) : void 0;
|
|
27029
27052
|
if (session) {
|
|
27030
27053
|
session.page?.close().catch((err) => {
|
|
27031
|
-
console.error(
|
|
27054
|
+
console.error(
|
|
27055
|
+
`[ComputerUseTrait] browser_close: failed to close page for session ${session.id}:`,
|
|
27056
|
+
err
|
|
27057
|
+
);
|
|
27032
27058
|
});
|
|
27033
27059
|
state.sessions.delete(session.id);
|
|
27034
27060
|
ctx.emit("browser_closed", { node, browserId: session.id });
|
|
@@ -27587,7 +27613,10 @@ var ECSWorld = class {
|
|
|
27587
27613
|
return t;
|
|
27588
27614
|
}
|
|
27589
27615
|
addTransform(id, t) {
|
|
27590
|
-
this.transforms.set(
|
|
27616
|
+
this.transforms.set(
|
|
27617
|
+
id,
|
|
27618
|
+
this.normalizeTransform(t)
|
|
27619
|
+
);
|
|
27591
27620
|
this.masks.set(id, (this.masks.get(id) ?? 0) | 1 /* Transform */);
|
|
27592
27621
|
return this;
|
|
27593
27622
|
}
|
|
@@ -28853,11 +28882,7 @@ function startFlyTo(state, config, context, nodeId) {
|
|
|
28853
28882
|
const bodyPos = context.physics?.getBodyPosition?.(nodeId);
|
|
28854
28883
|
if (!bodyPos) return;
|
|
28855
28884
|
state.flyToStart = [...context.camera.position];
|
|
28856
|
-
state.flyToTarget = [
|
|
28857
|
-
bodyPos[0],
|
|
28858
|
-
bodyPos[1] + 2,
|
|
28859
|
-
bodyPos[2] + 5
|
|
28860
|
-
];
|
|
28885
|
+
state.flyToTarget = [bodyPos[0], bodyPos[1] + 2, bodyPos[2] + 5];
|
|
28861
28886
|
state.flyToProgress = 1;
|
|
28862
28887
|
}
|
|
28863
28888
|
function updateEdgeHighlights(state, context, nodeId) {
|
|
@@ -30550,11 +30575,19 @@ var neuralAnimationHandler = {
|
|
|
30550
30575
|
};
|
|
30551
30576
|
state.current_pose = result.pose;
|
|
30552
30577
|
if (result.contactFeatures.leftFoot !== state.prev_left_contact) {
|
|
30553
|
-
context.emit?.("on_foot_contact", {
|
|
30578
|
+
context.emit?.("on_foot_contact", {
|
|
30579
|
+
node,
|
|
30580
|
+
side: "left",
|
|
30581
|
+
state: result.contactFeatures.leftFoot
|
|
30582
|
+
});
|
|
30554
30583
|
state.prev_left_contact = result.contactFeatures.leftFoot;
|
|
30555
30584
|
}
|
|
30556
30585
|
if (result.contactFeatures.rightFoot !== state.prev_right_contact) {
|
|
30557
|
-
context.emit?.("on_foot_contact", {
|
|
30586
|
+
context.emit?.("on_foot_contact", {
|
|
30587
|
+
node,
|
|
30588
|
+
side: "right",
|
|
30589
|
+
state: result.contactFeatures.rightFoot
|
|
30590
|
+
});
|
|
30558
30591
|
state.prev_right_contact = result.contactFeatures.rightFoot;
|
|
30559
30592
|
}
|
|
30560
30593
|
if (result.stability < 0.3) {
|
|
@@ -31739,11 +31772,7 @@ function pollEyeTracking(session, state, frame) {
|
|
|
31739
31772
|
const { x, y, z, w } = r;
|
|
31740
31773
|
return {
|
|
31741
31774
|
origin: [t[0], t[1], t[2]],
|
|
31742
|
-
direction: [
|
|
31743
|
-
2 * (x * z + w * y),
|
|
31744
|
-
2 * (y * z - w * x),
|
|
31745
|
-
1 - 2 * (x * x + y * y)
|
|
31746
|
-
]
|
|
31775
|
+
direction: [2 * (x * z + w * y), 2 * (y * z - w * x), 1 - 2 * (x * x + y * y)]
|
|
31747
31776
|
};
|
|
31748
31777
|
}
|
|
31749
31778
|
} catch {
|
|
@@ -32269,13 +32298,15 @@ function smoothKeypoints(current, buffer, smoothing) {
|
|
|
32269
32298
|
smoothed.push(curr);
|
|
32270
32299
|
continue;
|
|
32271
32300
|
}
|
|
32272
|
-
smoothed.push(
|
|
32273
|
-
|
|
32274
|
-
|
|
32275
|
-
|
|
32276
|
-
|
|
32277
|
-
|
|
32278
|
-
|
|
32301
|
+
smoothed.push(
|
|
32302
|
+
withCompat({
|
|
32303
|
+
x: curr.x * (1 - smoothing) + prev.x * smoothing,
|
|
32304
|
+
y: curr.y * (1 - smoothing) + prev.y * smoothing,
|
|
32305
|
+
z: curr.z !== void 0 && prev.z !== void 0 ? curr.z * (1 - smoothing) + prev.z * smoothing : curr.z,
|
|
32306
|
+
confidence: curr.confidence,
|
|
32307
|
+
name: curr.name
|
|
32308
|
+
})
|
|
32309
|
+
);
|
|
32279
32310
|
}
|
|
32280
32311
|
return smoothed;
|
|
32281
32312
|
}
|
|
@@ -33008,7 +33039,10 @@ async function submitRenderJob(node, state, config, context, params) {
|
|
|
33008
33039
|
}
|
|
33009
33040
|
if (state.persistence) {
|
|
33010
33041
|
await state.persistence.moveToCompleted(job).catch((err) => {
|
|
33011
|
-
console.error(
|
|
33042
|
+
console.error(
|
|
33043
|
+
`[RenderNetworkTrait] submitJobToAPI: moveToCompleted failed for job ${job.id}:`,
|
|
33044
|
+
err
|
|
33045
|
+
);
|
|
33012
33046
|
});
|
|
33013
33047
|
}
|
|
33014
33048
|
context.emit?.("render_job_failed", { node, job, error: job.error });
|
|
@@ -33148,7 +33182,10 @@ function pollJobStatus(job, state, config, context, node) {
|
|
|
33148
33182
|
state.costByQuality[job.quality] += job.actualCredits;
|
|
33149
33183
|
if (state.persistence) {
|
|
33150
33184
|
state.persistence.moveToCompleted(job).catch((err) => {
|
|
33151
|
-
console.error(
|
|
33185
|
+
console.error(
|
|
33186
|
+
`[RenderNetworkTrait] pollJobStatus: moveToCompleted failed for job ${job.id}:`,
|
|
33187
|
+
err
|
|
33188
|
+
);
|
|
33152
33189
|
});
|
|
33153
33190
|
state.persistence.saveState(state).catch((err) => {
|
|
33154
33191
|
console.error(`[RenderNetworkTrait] pollJobStatus: saveState failed:`, err);
|
|
@@ -33175,7 +33212,10 @@ function pollJobStatus(job, state, config, context, node) {
|
|
|
33175
33212
|
}
|
|
33176
33213
|
if (state.persistence) {
|
|
33177
33214
|
state.persistence.moveToCompleted(job).catch((err) => {
|
|
33178
|
-
console.error(
|
|
33215
|
+
console.error(
|
|
33216
|
+
`[RenderNetworkTrait] pollJobStatus (failed): moveToCompleted failed for job ${job.id}:`,
|
|
33217
|
+
err
|
|
33218
|
+
);
|
|
33179
33219
|
});
|
|
33180
33220
|
}
|
|
33181
33221
|
context.emit?.("render_job_failed", { node, job, error: job.error });
|
|
@@ -33295,7 +33335,10 @@ function createFactId(subjectId, observerId, occurredAt) {
|
|
|
33295
33335
|
return `bf_${subjectId}_${observerId}_${occurredAt}_${Math.random().toString(36).slice(2, 8)}`;
|
|
33296
33336
|
}
|
|
33297
33337
|
function effectiveMaxFacts(config) {
|
|
33298
|
-
return Math.max(
|
|
33338
|
+
return Math.max(
|
|
33339
|
+
1,
|
|
33340
|
+
Math.floor(finiteNumber(config.max_behavior_facts, DEFAULT_REPUTATION_LEDGER_MAX_FACTS))
|
|
33341
|
+
);
|
|
33299
33342
|
}
|
|
33300
33343
|
function effectiveTtlDays(config) {
|
|
33301
33344
|
return Math.max(1, finiteNumber(config.world_ttl_days, DEFAULT_REPUTATION_LEDGER_TTL_DAYS));
|
|
@@ -36802,7 +36845,11 @@ var AdvancedClothSystem = class {
|
|
|
36802
36845
|
* Update wind force
|
|
36803
36846
|
*/
|
|
36804
36847
|
setWind(wind) {
|
|
36805
|
-
this.config.wind = syncVec([
|
|
36848
|
+
this.config.wind = syncVec([
|
|
36849
|
+
vecComponent(wind, 0),
|
|
36850
|
+
vecComponent(wind, 1),
|
|
36851
|
+
vecComponent(wind, 2)
|
|
36852
|
+
]);
|
|
36806
36853
|
}
|
|
36807
36854
|
/**
|
|
36808
36855
|
* Step the simulation
|
|
@@ -38121,11 +38168,7 @@ var CharacterTrait = class {
|
|
|
38121
38168
|
} else if (this.state.movementMode === "running") {
|
|
38122
38169
|
speed = this.config.runSpeed ?? 5;
|
|
38123
38170
|
}
|
|
38124
|
-
return [
|
|
38125
|
-
input.strafe * speed,
|
|
38126
|
-
0,
|
|
38127
|
-
input.forward * speed
|
|
38128
|
-
];
|
|
38171
|
+
return [input.strafe * speed, 0, input.forward * speed];
|
|
38129
38172
|
}
|
|
38130
38173
|
/**
|
|
38131
38174
|
* Apply acceleration toward target velocity
|
|
@@ -41323,11 +41366,7 @@ var IKTrait = class {
|
|
|
41323
41366
|
const p0 = positions[i];
|
|
41324
41367
|
const length = bones[i].length;
|
|
41325
41368
|
const dir = this.normalize(this.subtract(p0, p1));
|
|
41326
|
-
positions[i] = [
|
|
41327
|
-
p1[0] + dir[0] * length,
|
|
41328
|
-
p1[1] + dir[1] * length,
|
|
41329
|
-
p1[2] + dir[2] * length
|
|
41330
|
-
];
|
|
41369
|
+
positions[i] = [p1[0] + dir[0] * length, p1[1] + dir[1] * length, p1[2] + dir[2] * length];
|
|
41331
41370
|
}
|
|
41332
41371
|
if (this.config.pinRoot) {
|
|
41333
41372
|
positions[0] = [rootPos[0], rootPos[1], rootPos[2]];
|
|
@@ -41412,20 +41451,16 @@ var IKTrait = class {
|
|
|
41412
41451
|
*/
|
|
41413
41452
|
lookRotation(forward) {
|
|
41414
41453
|
const up = [0, 1, 0];
|
|
41415
|
-
const right = this.normalize(
|
|
41416
|
-
[
|
|
41417
|
-
|
|
41418
|
-
|
|
41419
|
-
|
|
41420
|
-
|
|
41421
|
-
|
|
41422
|
-
|
|
41423
|
-
[
|
|
41424
|
-
|
|
41425
|
-
forward[2] * right[0] - forward[0] * right[2],
|
|
41426
|
-
forward[0] * right[1] - forward[1] * right[0]
|
|
41427
|
-
]
|
|
41428
|
-
);
|
|
41454
|
+
const right = this.normalize([
|
|
41455
|
+
up[1] * forward[2] - up[2] * forward[1],
|
|
41456
|
+
up[2] * forward[0] - up[0] * forward[2],
|
|
41457
|
+
up[0] * forward[1] - up[1] * forward[0]
|
|
41458
|
+
]);
|
|
41459
|
+
const newUp = this.normalize([
|
|
41460
|
+
forward[1] * right[2] - forward[2] * right[1],
|
|
41461
|
+
forward[2] * right[0] - forward[0] * right[2],
|
|
41462
|
+
forward[0] * right[1] - forward[1] * right[0]
|
|
41463
|
+
]);
|
|
41429
41464
|
const trace = right[0] + newUp[1] + forward[2];
|
|
41430
41465
|
let w, x, y, z;
|
|
41431
41466
|
if (trace > 0) {
|
|
@@ -44827,7 +44862,11 @@ var SpatialAwarenessTrait = class extends events.EventEmitter {
|
|
|
44827
44862
|
* Move by delta
|
|
44828
44863
|
*/
|
|
44829
44864
|
move(delta) {
|
|
44830
|
-
this.setPosition([
|
|
44865
|
+
this.setPosition([
|
|
44866
|
+
this.position[0] + delta[0],
|
|
44867
|
+
this.position[1] + delta[1],
|
|
44868
|
+
this.position[2] + delta[2]
|
|
44869
|
+
]);
|
|
44831
44870
|
}
|
|
44832
44871
|
// ===========================================================================
|
|
44833
44872
|
// CONTEXT ACCESS
|
|
@@ -45049,7 +45088,10 @@ var spatialAwarenessHandler = {
|
|
|
45049
45088
|
name: "spatial_awareness",
|
|
45050
45089
|
defaultConfig: {},
|
|
45051
45090
|
async onAttach(node, config, ctx) {
|
|
45052
|
-
const instance = new SpatialAwarenessTrait(
|
|
45091
|
+
const instance = new SpatialAwarenessTrait(
|
|
45092
|
+
node.id || "spatial_awareness",
|
|
45093
|
+
config
|
|
45094
|
+
);
|
|
45053
45095
|
node.__spatial_awareness_instance = instance;
|
|
45054
45096
|
await instance.start();
|
|
45055
45097
|
ctx.emit("spatial_awareness_attached", { node, config });
|
|
@@ -47118,10 +47160,7 @@ function compileElasticityTraitContext(trait, params) {
|
|
|
47118
47160
|
if (p.enabled === false) {
|
|
47119
47161
|
return { enabled: false, coefficient: 0 };
|
|
47120
47162
|
}
|
|
47121
|
-
const coef = readNumber2(
|
|
47122
|
-
p.coefficient ?? p.restitution ?? p.factor ?? p.bounce_factor,
|
|
47123
|
-
0.5
|
|
47124
|
-
);
|
|
47163
|
+
const coef = readNumber2(p.coefficient ?? p.restitution ?? p.factor ?? p.bounce_factor, 0.5);
|
|
47125
47164
|
const enabled2 = p.enabled !== false && coef > 0;
|
|
47126
47165
|
return { enabled: enabled2, coefficient: enabled2 ? coef : 0 };
|
|
47127
47166
|
}
|
|
@@ -51663,7 +51702,11 @@ var slackAlertHandler = {
|
|
|
51663
51702
|
status: res.status
|
|
51664
51703
|
});
|
|
51665
51704
|
} else {
|
|
51666
|
-
context.emit?.("slack_alert:error", {
|
|
51705
|
+
context.emit?.("slack_alert:error", {
|
|
51706
|
+
channel,
|
|
51707
|
+
status: res.status,
|
|
51708
|
+
error: "HTTP error"
|
|
51709
|
+
});
|
|
51667
51710
|
}
|
|
51668
51711
|
}).catch((err) => {
|
|
51669
51712
|
context.emit?.("slack_alert:error", {
|
|
@@ -52437,16 +52480,16 @@ var tensorOpHandler = {
|
|
|
52437
52480
|
switch (t) {
|
|
52438
52481
|
case "tensor:create": {
|
|
52439
52482
|
const shape = event.shape ?? [1];
|
|
52440
|
-
const tensor =
|
|
52483
|
+
const tensor = chunk2GCNOI2U_cjs.createTensor(shape, event.data);
|
|
52441
52484
|
state.tensors.set(event.tensorId, tensor);
|
|
52442
52485
|
context.emit?.("tensor:created", { tensorId: event.tensorId, shape: tensor.shape });
|
|
52443
52486
|
break;
|
|
52444
52487
|
}
|
|
52445
52488
|
case "tensor:matmul":
|
|
52446
|
-
runBinaryOp(state, context, event, "matmul",
|
|
52489
|
+
runBinaryOp(state, context, event, "matmul", chunk2GCNOI2U_cjs.matmul);
|
|
52447
52490
|
break;
|
|
52448
52491
|
case "tensor:add":
|
|
52449
|
-
runBinaryOp(state, context, event, "add",
|
|
52492
|
+
runBinaryOp(state, context, event, "add", chunk2GCNOI2U_cjs.add);
|
|
52450
52493
|
break;
|
|
52451
52494
|
}
|
|
52452
52495
|
}
|
|
@@ -52520,7 +52563,7 @@ var onnxRuntimeHandler = {
|
|
|
52520
52563
|
});
|
|
52521
52564
|
return;
|
|
52522
52565
|
}
|
|
52523
|
-
const adapter = (config.adapterFactory ??
|
|
52566
|
+
const adapter = (config.adapterFactory ?? chunk2GCNOI2U_cjs.createNoOpInferenceAdapter)();
|
|
52524
52567
|
state.models.set(modelId, adapter);
|
|
52525
52568
|
const loadPromise = adapter.load(modelUrl).then(
|
|
52526
52569
|
() => {
|
|
@@ -54819,7 +54862,7 @@ var gotchaHandler = {
|
|
|
54819
54862
|
};
|
|
54820
54863
|
|
|
54821
54864
|
// src/traits/VRTraitSystem.ts
|
|
54822
|
-
|
|
54865
|
+
chunk56VOWURB_cjs.init_BotanicalLotusTrait();
|
|
54823
54866
|
|
|
54824
54867
|
// src/traits/FluidSimulationTrait.ts
|
|
54825
54868
|
var SpatialHash = class {
|
|
@@ -55713,7 +55756,7 @@ var VRTraitRegistry = class {
|
|
|
55713
55756
|
this.register(hapticHandler);
|
|
55714
55757
|
this.register(eyeTrackedHandler);
|
|
55715
55758
|
this.register(roadmapNodeHandler);
|
|
55716
|
-
this.register(
|
|
55759
|
+
this.register(chunkX2AVEAZM_cjs.mitosisHandler);
|
|
55717
55760
|
this.register(planeDetectionHandler);
|
|
55718
55761
|
this.register(meshDetectionHandler);
|
|
55719
55762
|
this.register(roomMeshHandler);
|
|
@@ -55749,7 +55792,7 @@ var VRTraitRegistry = class {
|
|
|
55749
55792
|
for (const handler of vfxParticleHandlers) this.register(handler);
|
|
55750
55793
|
this.register(gpuPhysicsHandler);
|
|
55751
55794
|
this.register(gpuBufferHandler);
|
|
55752
|
-
this.register(
|
|
55795
|
+
this.register(chunk56VOWURB_cjs.botanicalLotusHandler);
|
|
55753
55796
|
this.register(phyllotaxisHandler);
|
|
55754
55797
|
this.register(bloomReactiveHandler);
|
|
55755
55798
|
this.register(lotusRootHandler);
|
|
@@ -55878,8 +55921,8 @@ var VRTraitRegistry = class {
|
|
|
55878
55921
|
this.register(sseHandler);
|
|
55879
55922
|
this.register(modelLoadHandler);
|
|
55880
55923
|
this.register(inferenceHandler);
|
|
55881
|
-
this.register(
|
|
55882
|
-
this.register(
|
|
55924
|
+
this.register(chunkX2AVEAZM_cjs.embeddingHandler);
|
|
55925
|
+
this.register(chunkX2AVEAZM_cjs.jepObjectiveHandler);
|
|
55883
55926
|
this.register(fineTuneHandler);
|
|
55884
55927
|
this.register(vectorSearchHandler);
|
|
55885
55928
|
this.register(promptTemplateHandler);
|
|
@@ -55961,8 +56004,8 @@ var VRTraitRegistry = class {
|
|
|
55961
56004
|
this.register(trainingLoopHandler);
|
|
55962
56005
|
this.register(modelLoadHandler);
|
|
55963
56006
|
this.register(inferenceHandler);
|
|
55964
|
-
this.register(
|
|
55965
|
-
this.register(
|
|
56007
|
+
this.register(chunkX2AVEAZM_cjs.embeddingHandler);
|
|
56008
|
+
this.register(chunkX2AVEAZM_cjs.jepObjectiveHandler);
|
|
55966
56009
|
this.register(sqlQueryHandler);
|
|
55967
56010
|
this.register(ormEntityHandler);
|
|
55968
56011
|
this.register(offlineSyncHandler);
|
|
@@ -56012,7 +56055,7 @@ var VRTraitRegistry = class {
|
|
|
56012
56055
|
this.register(npcAIHandler);
|
|
56013
56056
|
this.register(objectTrackingHandler);
|
|
56014
56057
|
this.register(openXRHALHandler);
|
|
56015
|
-
this.register(
|
|
56058
|
+
this.register(chunkX2AVEAZM_cjs.orbitalHandler);
|
|
56016
56059
|
this.register(partnerSDKHandler);
|
|
56017
56060
|
this.register(poseEstimationHandler);
|
|
56018
56061
|
this.register(ragKnowledgeHandler);
|
|
@@ -56057,19 +56100,19 @@ var VRTraitRegistry = class {
|
|
|
56057
56100
|
this.register(chunkXHIV6326_cjs.hotReloadHandler);
|
|
56058
56101
|
this.register(iKHandler);
|
|
56059
56102
|
this.register(jointHandler);
|
|
56060
|
-
this.register(
|
|
56103
|
+
this.register(chunkKQU64CIX_cjs.lightingHandler);
|
|
56061
56104
|
this.register(lipSyncHandler);
|
|
56062
56105
|
this.register(lobbyHandler);
|
|
56063
|
-
this.register(
|
|
56106
|
+
this.register(chunkKQU64CIX_cjs.materialHandler);
|
|
56064
56107
|
this.register(morphHandler);
|
|
56065
56108
|
this.register(multiviewGaussianRendererHandler);
|
|
56066
56109
|
this.register(networkedHandler);
|
|
56067
56110
|
this.register(pIDControllerHandler);
|
|
56068
56111
|
this.register(pressableHandler);
|
|
56069
|
-
this.register(
|
|
56112
|
+
this.register(chunkKQU64CIX_cjs.renderingHandler);
|
|
56070
56113
|
this.register(rigidbodyHandler);
|
|
56071
56114
|
this.register(chunkXHIV6326_cjs.scriptTestHandler);
|
|
56072
|
-
this.register(
|
|
56115
|
+
this.register(chunkKQU64CIX_cjs.shaderHandler);
|
|
56073
56116
|
this.register(skeletonHandler);
|
|
56074
56117
|
this.register(slidableHandler);
|
|
56075
56118
|
this.register(spatialAwarenessHandler);
|
|
@@ -56579,5 +56622,5 @@ exports.windHandler = windHandler;
|
|
|
56579
56622
|
exports.withNegotiation = withNegotiation;
|
|
56580
56623
|
exports.wotThingHandler = wotThingHandler;
|
|
56581
56624
|
exports.zkPrivateHandler = zkPrivateHandler;
|
|
56582
|
-
//# sourceMappingURL=chunk-
|
|
56583
|
-
//# sourceMappingURL=chunk-
|
|
56625
|
+
//# sourceMappingURL=chunk-TRCGG42I.cjs.map
|
|
56626
|
+
//# sourceMappingURL=chunk-TRCGG42I.cjs.map
|