@holoscript/core 8.0.6 → 8.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -34
- package/bin/holoscript.cjs +1 -1
- package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
- package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
- package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
- package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
- package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
- package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
- package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
- package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
- package/dist/{chunk-2GQHTXOK.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-XHZCF3AS.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-DBPGNHFS.js → chunk-2OWDB4FB.js} +13 -25
- package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
- package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
- package/dist/{chunk-RCZHLCX2.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-EK7L4DW7.js → chunk-3NGDZZR4.js} +4 -4
- package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
- package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
- package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
- package/dist/{chunk-VHAONJBY.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-2J5WZLF5.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-H5PUZHJV.cjs → chunk-56VOWURB.cjs} +61 -40
- package/dist/{chunk-DQRQZB33.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-YU5RJQPE.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-A3GFOZAF.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-OXGPGQXN.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-P4AIF7OQ.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-7MVLEZB2.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-X7QB5PL5.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-QWSB553J.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-VATGR4EM.js → chunk-B4EKV6HQ.js} +61 -40
- package/dist/{chunk-HBEN5TQR.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-F63LYRVE.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-YTR32ZEB.cjs → chunk-C4GSLCHE.cjs} +300 -125
- package/dist/{chunk-CXS3DUKD.js → chunk-C7ZBSV2Q.js} +3 -3
- package/dist/{chunk-WOH6LKYT.cjs → chunk-CCPSNT6B.cjs} +12 -7
- package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
- package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
- package/dist/{chunk-D63CGNJU.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-DCE3LDO3.cjs → chunk-EDPYCLRC.cjs} +52 -62
- package/dist/{chunk-NDUX553L.js → chunk-F2G6CWFT.js} +240 -65
- package/dist/{chunk-X7LYK5TX.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-LAUFLPB6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-P52PPB5R.js → chunk-FHQFPYV4.js} +4 -4
- package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
- package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
- package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
- package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
- package/dist/{chunk-5BLWXOIP.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-2VL6SJ33.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-JEB5UU3E.js → chunk-GSOUNWEL.js} +35 -27
- package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
- package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
- package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
- package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
- package/dist/{chunk-IBXT6UP3.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-E767PVC6.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-ZXZ2AL2J.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-4FDL7JLJ.cjs → chunk-KAIVDEIG.cjs} +145 -60
- package/dist/{chunk-X4EBCG4K.js → chunk-KCPHASCO.js} +18 -6
- package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
- package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
- package/dist/{chunk-4DO425P5.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-HBLKLLG5.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-QWAR3GY6.cjs → chunk-LODTHGST.cjs} +8 -8
- package/dist/{chunk-TFUMBR7G.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-ISG3TQ2O.js → chunk-LWUOUCYL.js} +9 -5
- package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
- package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
- package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
- package/dist/{chunk-ULXWSPCK.js → chunk-MSYSQ2AJ.js} +101 -16
- package/dist/{chunk-TCBJMNXS.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-RXU4PQKA.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-NTGBEMYL.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-YG3OAHJZ.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-N5YOAFNA.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-IIUFMUTV.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-5BQIJG3O.js → chunk-PXNZ6TME.js} +47 -57
- package/dist/{chunk-KDZRD6EI.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-IS4AEGLU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-5IHG2LGT.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-NTJZJ5IP.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-E64LOLJU.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-3SBVODUP.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-LY4DMQOW.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-S6OVFUXD.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-K5UGRXKR.js → chunk-SXOSDZD6.js} +6 -6
- package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
- package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
- package/dist/{chunk-U36W76U7.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-6DOKCECB.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-YAPPQYJH.cjs → chunk-TRCGG42I.cjs} +195 -152
- package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
- package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
- package/dist/{chunk-3OIZJNVT.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-44GM3P4G.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-3B5NVDHJ.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-5TIZXMED.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-3B7AY37W.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-BKCK3IU6.js → chunk-VF257YKO.js} +4 -4
- package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
- package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
- package/dist/{chunk-PVWNU4QT.cjs → chunk-WFKVS2K4.cjs} +64 -26
- package/dist/{chunk-TDCJ7YPA.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-NE5CZ2NC.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-C34AJIJO.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-TFWYKOOB.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-TJIMBJ6L.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-BFROVZOF.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ISM4NX6N.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-6OTFG3EB.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-NPDNFPTU.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-GCYR3D2K.js → chunk-Z6PMDS4G.js} +61 -23
- package/dist/{chunk-DPZXVDGM.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-VFKXK4GR.cjs → chunk-ZPZAVHXL.cjs} +20 -20
- package/dist/cli/holoscript-runner.cjs +39 -22
- package/dist/cli/holoscript-runner.js +32 -15
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +8 -8
- package/dist/compiler/android-xr.js +6 -6
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/ar.cjs +6 -6
- package/dist/compiler/ar.js +4 -4
- package/dist/compiler/babylon.cjs +8 -8
- package/dist/compiler/babylon.js +7 -7
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +153 -153
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +347 -362
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +200 -215
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/multi-layer.cjs +10 -10
- package/dist/compiler/multi-layer.js +9 -9
- package/dist/compiler/openxr.cjs +7 -7
- package/dist/compiler/openxr.js +6 -6
- package/dist/compiler/playcanvas.cjs +6 -6
- package/dist/compiler/playcanvas.js +5 -5
- package/dist/compiler/r3f.cjs +13 -13
- package/dist/compiler/r3f.js +8 -8
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +8 -8
- package/dist/compiler/trait-composition.js +4 -4
- package/dist/compiler/unity.cjs +7 -7
- package/dist/compiler/unity.js +6 -6
- package/dist/compiler/unreal.cjs +8 -8
- package/dist/compiler/unreal.js +6 -6
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +7 -7
- package/dist/compiler/visionos.js +6 -6
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/vrr.cjs +7 -7
- package/dist/compiler/vrr.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/coordinators/index.cjs +27 -10
- package/dist/coordinators/index.js +27 -10
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.js +4 -4
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/hololand/index.cjs +36 -36
- package/dist/hololand/index.js +2 -2
- package/dist/index.cjs +1056 -796
- package/dist/index.js +440 -180
- package/dist/math/tropical-spmv.cjs +10 -10
- package/dist/math/tropical-spmv.js +1 -1
- package/dist/math/vec3.cjs +13 -13
- package/dist/math/vec3.js +1 -1
- package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
- package/dist/parser.cjs +16 -16
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +37 -37
- package/dist/reconstruction/index.js +4 -4
- package/dist/runtime.cjs +274 -76
- package/dist/runtime.d.ts +10 -1
- package/dist/runtime.js +268 -70
- package/dist/self-improvement/index.cjs +12 -4
- package/dist/self-improvement/index.js +12 -4
- package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
- package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
- package/dist/testing.cjs +5 -5
- package/dist/testing.js +1 -1
- package/dist/traits/botanical-lotus.cjs +49 -49
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/engines/index.cjs +39 -39
- package/dist/traits/engines/index.d.ts +279 -0
- package/dist/traits/engines/index.js +4 -4
- package/dist/traits/index.cjs +881 -773
- package/dist/traits/index.js +366 -258
- package/dist/world/index.cjs +21 -18
- package/dist/world/index.js +21 -18
- package/dist/world-model/index.cjs +11 -5
- package/dist/world-model/index.d.ts +8 -0
- package/dist/world-model/index.js +11 -5
- package/package.json +74 -68
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-PVLTKDBD.cjs +0 -38
- package/dist/GLTFPipeline-QPI4I7DL.js +0 -17
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-6ZGLUCFS.js +0 -10
- package/dist/HoloScriptRuntime-ALUASIL2.cjs +0 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToURDF, compileMaterialBlock } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToURDF, compileMaterialBlock } from './chunk-ZA34AN3R.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
3
3
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
5
5
|
|
|
@@ -264,8 +264,16 @@ var init_URDFCompiler = __esm({
|
|
|
264
264
|
const trait = obj.traits?.find((t) => this.getTraitName(t) === traitName);
|
|
265
265
|
if (!trait) return void 0;
|
|
266
266
|
if (typeof trait === "string") return {};
|
|
267
|
-
const
|
|
268
|
-
|
|
267
|
+
const traitObj = trait;
|
|
268
|
+
if ("config" in traitObj && typeof traitObj.config === "object") {
|
|
269
|
+
return traitObj.config;
|
|
270
|
+
}
|
|
271
|
+
const { name: _name, ...rest } = traitObj;
|
|
272
|
+
if (rest.type === "ObjectTrait") {
|
|
273
|
+
const { type: _type, ...config } = rest;
|
|
274
|
+
return config;
|
|
275
|
+
}
|
|
276
|
+
return rest;
|
|
269
277
|
}
|
|
270
278
|
/** Map HoloScript joint types to URDF joint types */
|
|
271
279
|
mapJointType(holoType) {
|
|
@@ -407,6 +415,10 @@ var init_URDFCompiler = __esm({
|
|
|
407
415
|
}
|
|
408
416
|
/** Extract mass from physics property or trait */
|
|
409
417
|
extractMass(obj) {
|
|
418
|
+
const physicsTraitConfig = this.getTraitConfig(obj, "physics");
|
|
419
|
+
if (physicsTraitConfig?.mass !== void 0 && typeof physicsTraitConfig.mass === "number") {
|
|
420
|
+
return physicsTraitConfig.mass;
|
|
421
|
+
}
|
|
410
422
|
const physicsProp = obj.properties.find((p) => p.key === "physics");
|
|
411
423
|
if (physicsProp && typeof physicsProp.value === "object" && !Array.isArray(physicsProp.value)) {
|
|
412
424
|
const massEntry = physicsProp.value.mass;
|
|
@@ -1395,5 +1407,5 @@ var init_URDFCompiler = __esm({
|
|
|
1395
1407
|
});
|
|
1396
1408
|
|
|
1397
1409
|
export { URDFCompiler, URDFCompiler_default, URDFCompiler_exports, compileForGazebo, compileForIsaacSim, compileForROS2, compileToURDF, createURDFCompiler, generateControllersYaml, generateROS2LaunchFile, init_URDFCompiler };
|
|
1398
|
-
//# sourceMappingURL=chunk-
|
|
1399
|
-
//# sourceMappingURL=chunk-
|
|
1410
|
+
//# sourceMappingURL=chunk-KCPHASCO.js.map
|
|
1411
|
+
//# sourceMappingURL=chunk-KCPHASCO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk6PRZIHGL_cjs = require('./chunk-6PRZIHGL.cjs');
|
|
4
|
+
var chunk3SKLAUDD_cjs = require('./chunk-3SKLAUDD.cjs');
|
|
5
5
|
var crypto = require('crypto');
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
@@ -983,7 +983,7 @@ function similarity(a, b) {
|
|
|
983
983
|
function findSimilarTrait(input, threshold = 0.5) {
|
|
984
984
|
let bestMatch;
|
|
985
985
|
let bestScore = threshold;
|
|
986
|
-
for (const trait of
|
|
986
|
+
for (const trait of chunk3SKLAUDD_cjs.VR_TRAITS) {
|
|
987
987
|
const score = similarity(input, trait);
|
|
988
988
|
if (score > bestScore) {
|
|
989
989
|
bestScore = score;
|
|
@@ -1788,7 +1788,7 @@ var HoloScriptPlusParser = class {
|
|
|
1788
1788
|
this.hasVRTraits = false;
|
|
1789
1789
|
this.hasControlFlow = false;
|
|
1790
1790
|
this.compiledExpressions = /* @__PURE__ */ new Map();
|
|
1791
|
-
this.errorRecovery = new
|
|
1791
|
+
this.errorRecovery = new chunk6PRZIHGL_cjs.ErrorRecovery();
|
|
1792
1792
|
/**
|
|
1793
1793
|
* Internal incremental parser for parseIncremental.
|
|
1794
1794
|
* Uses ChunkBasedIncrementalParser with AST-aware chunking and
|
|
@@ -1814,7 +1814,7 @@ var HoloScriptPlusParser = class {
|
|
|
1814
1814
|
getQuickFixes() {
|
|
1815
1815
|
const fixes = /* @__PURE__ */ new Map();
|
|
1816
1816
|
for (const error of this.errors) {
|
|
1817
|
-
const errorFixes =
|
|
1817
|
+
const errorFixes = chunk6PRZIHGL_cjs.generateQuickFixes(
|
|
1818
1818
|
{
|
|
1819
1819
|
code: error.code,
|
|
1820
1820
|
message: error.message,
|
|
@@ -1835,7 +1835,7 @@ var HoloScriptPlusParser = class {
|
|
|
1835
1835
|
*/
|
|
1836
1836
|
getEnrichedErrors() {
|
|
1837
1837
|
return this.errors.map(
|
|
1838
|
-
(error) =>
|
|
1838
|
+
(error) => chunk6PRZIHGL_cjs.enrichErrorWithSuggestions(
|
|
1839
1839
|
{
|
|
1840
1840
|
code: error.code,
|
|
1841
1841
|
message: error.message,
|
|
@@ -1920,7 +1920,10 @@ var HoloScriptPlusParser = class {
|
|
|
1920
1920
|
directives: [],
|
|
1921
1921
|
children: [incrementalResult.ast],
|
|
1922
1922
|
traits: /* @__PURE__ */ new Map(),
|
|
1923
|
-
loc: incrementalResult.ast.loc || {
|
|
1923
|
+
loc: incrementalResult.ast.loc || {
|
|
1924
|
+
start: { line: 1, column: 1 },
|
|
1925
|
+
end: { line: 1, column: 1 }
|
|
1926
|
+
},
|
|
1924
1927
|
body: [incrementalResult.ast]
|
|
1925
1928
|
};
|
|
1926
1929
|
if (root.type === "fragment" && root.loc) {
|
|
@@ -2632,7 +2635,7 @@ var HoloScriptPlusParser = class {
|
|
|
2632
2635
|
const body = this.check("LBRACE") ? this.parseCodeBlock() : "";
|
|
2633
2636
|
return { type: "migrate", fromVersion, body };
|
|
2634
2637
|
}
|
|
2635
|
-
if (
|
|
2638
|
+
if (chunk3SKLAUDD_cjs.VR_TRAITS.includes(name)) {
|
|
2636
2639
|
if (!this.options.enableVRTraits) {
|
|
2637
2640
|
this.warn(`VR trait @${name} is disabled`);
|
|
2638
2641
|
return null;
|
|
@@ -2645,7 +2648,7 @@ var HoloScriptPlusParser = class {
|
|
|
2645
2648
|
}
|
|
2646
2649
|
return this.parseTraitSumTail({ type: "trait", name, config: config2 });
|
|
2647
2650
|
}
|
|
2648
|
-
if (
|
|
2651
|
+
if (chunk6PRZIHGL_cjs.LIFECYCLE_HOOKS.includes(name)) {
|
|
2649
2652
|
const params = [];
|
|
2650
2653
|
if (this.check("LPAREN")) {
|
|
2651
2654
|
this.advance();
|
|
@@ -2954,7 +2957,7 @@ var HoloScriptPlusParser = class {
|
|
|
2954
2957
|
return { type: "hololand_event", event: eventName, params };
|
|
2955
2958
|
}
|
|
2956
2959
|
}
|
|
2957
|
-
if (
|
|
2960
|
+
if (chunk6PRZIHGL_cjs.STRUCTURAL_DIRECTIVES.includes(name)) {
|
|
2958
2961
|
let nodeName;
|
|
2959
2962
|
if (this.check("STRING")) {
|
|
2960
2963
|
nodeName = this.advance().value;
|
|
@@ -4655,7 +4658,7 @@ var HoloScriptPlusParser = class {
|
|
|
4655
4658
|
code: "HSP001"
|
|
4656
4659
|
};
|
|
4657
4660
|
}
|
|
4658
|
-
if (current.type === "IDENTIFIER" &&
|
|
4661
|
+
if (current.type === "IDENTIFIER" && chunk3SKLAUDD_cjs.VR_TRAITS.includes(current.value)) {
|
|
4659
4662
|
if (prev?.type !== "AT") {
|
|
4660
4663
|
return {
|
|
4661
4664
|
message: `'${current.value}' is a trait and requires '@' prefix`,
|
|
@@ -4881,5 +4884,5 @@ exports.getSourceContext = getSourceContext;
|
|
|
4881
4884
|
exports.globalParseCache = globalParseCache;
|
|
4882
4885
|
exports.parse = parse;
|
|
4883
4886
|
exports.parseIncrementalChunks = parseIncrementalChunks;
|
|
4884
|
-
//# sourceMappingURL=chunk-
|
|
4885
|
-
//# sourceMappingURL=chunk-
|
|
4887
|
+
//# sourceMappingURL=chunk-KOUAQL2B.cjs.map
|
|
4888
|
+
//# sourceMappingURL=chunk-KOUAQL2B.cjs.map
|
|
@@ -1504,5 +1504,5 @@ exports.lightingHandler = lightingHandler;
|
|
|
1504
1504
|
exports.materialHandler = materialHandler;
|
|
1505
1505
|
exports.renderingHandler = renderingHandler;
|
|
1506
1506
|
exports.shaderHandler = shaderHandler;
|
|
1507
|
-
//# sourceMappingURL=chunk-
|
|
1508
|
-
//# sourceMappingURL=chunk-
|
|
1507
|
+
//# sourceMappingURL=chunk-KQU64CIX.cjs.map
|
|
1508
|
+
//# sourceMappingURL=chunk-KQU64CIX.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HoloScriptRuntime } from './chunk-
|
|
2
|
-
import { HoloScriptCodeParser } from './chunk-
|
|
1
|
+
import { HoloScriptRuntime } from './chunk-PXNZ6TME.js';
|
|
2
|
+
import { HoloScriptCodeParser } from './chunk-MDR235RZ.js';
|
|
3
3
|
|
|
4
4
|
// src/HoloScriptDebugger.ts
|
|
5
5
|
var HoloScriptDebugger = class {
|
|
@@ -417,5 +417,5 @@ function createDebugger(runtime) {
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
export { HoloScriptDebugger, createDebugger };
|
|
420
|
-
//# sourceMappingURL=chunk-
|
|
421
|
-
//# sourceMappingURL=chunk-
|
|
420
|
+
//# sourceMappingURL=chunk-L5U4W6JC.js.map
|
|
421
|
+
//# sourceMappingURL=chunk-L5U4W6JC.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
|
|
4
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
5
5
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ function createWASMCompiler(options) {
|
|
|
19
19
|
}
|
|
20
20
|
function compileToWASM(composition, options) {
|
|
21
21
|
const compiler = new exports.WASMCompiler(options);
|
|
22
|
-
return compiler.compile(composition,
|
|
22
|
+
return compiler.compile(composition, chunkLODTHGST_cjs.createTestCompilerToken());
|
|
23
23
|
}
|
|
24
24
|
function compileASTToWASM(ast, options) {
|
|
25
25
|
const compiler = new exports.WASMCompiler(options);
|
|
@@ -28,8 +28,8 @@ function compileASTToWASM(ast, options) {
|
|
|
28
28
|
var WASM_WAT_LIMITATIONS, WASM_BINARY_LIMITATIONS; exports.WASMCompiler = void 0; exports.WASMCompiler_default = void 0;
|
|
29
29
|
var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
30
30
|
"src/compiler/WASMCompiler.ts"() {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
32
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
33
33
|
WASM_WAT_LIMITATIONS = [
|
|
34
34
|
"Emits WebAssembly Text Format scaffolding only.",
|
|
35
35
|
'Does not return instantiable bytes unless format is set to "wasm".',
|
|
@@ -40,7 +40,7 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
40
40
|
"Lowers trait/lifecycle/event hooks to deterministic host event calls, not arbitrary user code.",
|
|
41
41
|
"Does not run a general-purpose WAT parser for unsupported custom WAT extensions."
|
|
42
42
|
];
|
|
43
|
-
exports.WASMCompiler = class extends
|
|
43
|
+
exports.WASMCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
44
44
|
constructor(options = {}) {
|
|
45
45
|
super();
|
|
46
46
|
this.compilerName = "WASMCompiler";
|
|
@@ -100,11 +100,11 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
100
100
|
if (domainBlocks.length > 0) {
|
|
101
101
|
this.emit("");
|
|
102
102
|
this.emit(" ;; === v4.2 Domain Blocks ===");
|
|
103
|
-
|
|
103
|
+
chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
104
104
|
domainBlocks,
|
|
105
105
|
{
|
|
106
106
|
material: (block) => {
|
|
107
|
-
const mat =
|
|
107
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
108
108
|
this.emit(
|
|
109
109
|
` ;; Material: "${this.escapeStringValue(mat.name, "TypeScript")}" type=${mat.type}`
|
|
110
110
|
);
|
|
@@ -1185,5 +1185,5 @@ exports.compileASTToWASM = compileASTToWASM;
|
|
|
1185
1185
|
exports.compileToWASM = compileToWASM;
|
|
1186
1186
|
exports.createWASMCompiler = createWASMCompiler;
|
|
1187
1187
|
exports.init_WASMCompiler = init_WASMCompiler;
|
|
1188
|
-
//# sourceMappingURL=chunk-
|
|
1189
|
-
//# sourceMappingURL=chunk-
|
|
1188
|
+
//# sourceMappingURL=chunk-LMJ5EBV7.cjs.map
|
|
1189
|
+
//# sourceMappingURL=chunk-LMJ5EBV7.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5FSKKMR7_cjs = require('./chunk-5FSKKMR7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkM7K4LE66_cjs = require('./chunk-M7K4LE66.cjs');
|
|
5
5
|
var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var crypto3 = require('crypto');
|
|
@@ -3449,7 +3449,7 @@ var init_AgentRBAC = chunkHCCQLAA4_cjs.__esm({
|
|
|
3449
3449
|
init_AgentTokenIssuer();
|
|
3450
3450
|
init_CulturalCompatibilityChecker();
|
|
3451
3451
|
init_ConfabulationValidator();
|
|
3452
|
-
|
|
3452
|
+
chunkM7K4LE66_cjs.init_AgentRiskRegistry();
|
|
3453
3453
|
RESOURCE_PERMISSION_MAP = {
|
|
3454
3454
|
["source_file" /* SOURCE_FILE */]: {
|
|
3455
3455
|
read: "read:source" /* READ_SOURCE */,
|
|
@@ -3742,7 +3742,7 @@ var init_AgentRBAC = chunkHCCQLAA4_cjs.__esm({
|
|
|
3742
3742
|
* @returns Extended access decision including risk tier and applied cap.
|
|
3743
3743
|
*/
|
|
3744
3744
|
checkAccessWithRiskGate(request, composition, options) {
|
|
3745
|
-
const registry = options?.registry ??
|
|
3745
|
+
const registry = options?.registry ?? chunkM7K4LE66_cjs.getAgentRiskRegistry();
|
|
3746
3746
|
const dryRun = options?.dryRun ?? false;
|
|
3747
3747
|
const rbacDecision = this.checkAccess(request);
|
|
3748
3748
|
if (!rbacDecision.allowed) {
|
|
@@ -3761,8 +3761,8 @@ var init_AgentRBAC = chunkHCCQLAA4_cjs.__esm({
|
|
|
3761
3761
|
const confabResult = validator.validateComposition(composition);
|
|
3762
3762
|
const tier = registry.getTier(agentId);
|
|
3763
3763
|
const riskScore = registry.getScore(agentId);
|
|
3764
|
-
const cap =
|
|
3765
|
-
if (
|
|
3764
|
+
const cap = chunkM7K4LE66_cjs.TIER_COMPOSITION_RISK_CAP[tier];
|
|
3765
|
+
if (chunkM7K4LE66_cjs.isDangerousOperation(request.operation)) {
|
|
3766
3766
|
if (tier === "quarantined" /* QUARANTINED */) {
|
|
3767
3767
|
return {
|
|
3768
3768
|
allowed: false,
|
|
@@ -3826,7 +3826,7 @@ var init_AgentRBAC = chunkHCCQLAA4_cjs.__esm({
|
|
|
3826
3826
|
getAgentRiskTier(token, registry) {
|
|
3827
3827
|
const verification = this.tokenIssuer.verifyToken(token);
|
|
3828
3828
|
if (!verification.valid || !verification.payload) return null;
|
|
3829
|
-
const reg = registry ??
|
|
3829
|
+
const reg = registry ?? chunkM7K4LE66_cjs.getAgentRiskRegistry();
|
|
3830
3830
|
return reg.getTier(verification.payload.sub);
|
|
3831
3831
|
}
|
|
3832
3832
|
// ===========================================================================
|
|
@@ -6004,5 +6004,5 @@ exports.isCapabilityTokenCredential = isCapabilityTokenCredential;
|
|
|
6004
6004
|
exports.normalizeNormProvenance = normalizeNormProvenance;
|
|
6005
6005
|
exports.normsByCategory = normsByCategory;
|
|
6006
6006
|
exports.serializeNormProvenance = serializeNormProvenance;
|
|
6007
|
-
//# sourceMappingURL=chunk-
|
|
6008
|
-
//# sourceMappingURL=chunk-
|
|
6007
|
+
//# sourceMappingURL=chunk-LODTHGST.cjs.map
|
|
6008
|
+
//# sourceMappingURL=chunk-LODTHGST.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkR75BSDH7_cjs = require('./chunk-R75BSDH7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
5
5
|
var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
6
6
|
var crypto = require('crypto');
|
|
7
7
|
|
|
@@ -727,7 +727,7 @@ var ImportResolver = class {
|
|
|
727
727
|
throw new Error(`File not found: '${canonicalPath}' (imported from '${importedBy}')`);
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
const { HoloScriptPlusParser } = await import('./HoloScriptPlusParser-
|
|
730
|
+
const { HoloScriptPlusParser } = await import('./HoloScriptPlusParser-QCGFPWIL.cjs');
|
|
731
731
|
const parser = new HoloScriptPlusParser({ enableTypeScriptImports: true });
|
|
732
732
|
const result = parser.parse(source);
|
|
733
733
|
if (!result.success && result.errors.length > 0) {
|
|
@@ -1268,8 +1268,8 @@ function createSemanticCache(options) {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
|
|
1270
1270
|
// src/compiler/IncrementalCompiler.ts
|
|
1271
|
-
|
|
1272
|
-
|
|
1271
|
+
chunkLODTHGST_cjs.init_AgentRBAC();
|
|
1272
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
1273
1273
|
chunkE7JP3BS3_cjs.init_safeJsonParse();
|
|
1274
1274
|
function hashContent(content) {
|
|
1275
1275
|
let hash = 0;
|
|
@@ -1772,7 +1772,7 @@ var IncrementalCompiler = class _IncrementalCompiler {
|
|
|
1772
1772
|
*/
|
|
1773
1773
|
validateAccess(agentToken) {
|
|
1774
1774
|
if (!agentToken) return;
|
|
1775
|
-
const rbac =
|
|
1775
|
+
const rbac = chunkLODTHGST_cjs.getRBAC();
|
|
1776
1776
|
const decision = rbac.checkAccess({
|
|
1777
1777
|
token: agentToken,
|
|
1778
1778
|
resourceType: "ast" /* AST */,
|
|
@@ -1997,7 +1997,7 @@ function deserializeCache(json) {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
return compiler;
|
|
1999
1999
|
}
|
|
2000
|
-
var UnauthorizedIncrementalCompilerAccessError = class extends
|
|
2000
|
+
var UnauthorizedIncrementalCompilerAccessError = class extends chunkLODTHGST_cjs.UnauthorizedCompilerAccessError {
|
|
2001
2001
|
constructor(decision, compilerName) {
|
|
2002
2002
|
super(decision, "incremental compilation", compilerName);
|
|
2003
2003
|
this.name = "UnauthorizedIncrementalCompilerAccessError";
|
|
@@ -2011,5 +2011,5 @@ exports.createIncrementalCompiler = createIncrementalCompiler;
|
|
|
2011
2011
|
exports.deserializeCache = deserializeCache;
|
|
2012
2012
|
exports.globalTraitGraph = globalTraitGraph;
|
|
2013
2013
|
exports.serializeCache = serializeCache;
|
|
2014
|
-
//# sourceMappingURL=chunk-
|
|
2015
|
-
//# sourceMappingURL=chunk-
|
|
2014
|
+
//# sourceMappingURL=chunk-LPS5AMQD.cjs.map
|
|
2015
|
+
//# sourceMappingURL=chunk-LPS5AMQD.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToGodot, compileInputBlock, navigationToGodot, compileNavigationBlock, renderingToGodot, compileRenderingBlock, proceduralToGodot, compileProceduralBlock, web3ToGodot, compileWeb3Block, architectureToGodot, compileArchitectureBlock, musicToGodot, compileMusicBlock, educationToGodot, compileEducationBlock, datavizToGodot, compileDataVizBlock, iotToGodot, compileIoTBlock, compileRoboticsBlock, roboticsToGodot, compileHealthcareBlock, healthcareToGodot, compilePaymentBlock, paymentToGodot, compileNarrativeBlock, narrativeToGodot, compileWeatherBlock, weatherToGodot, compileAudioSourceBlock, audioSourceToGodot, compilePostProcessingBlock, postProcessingToGodot, compileParticleBlock, particlesToGodot, compilePhysicsBlock, physicsToGodot, compileMaterialBlock, materialToGodot } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToGodot, compileInputBlock, navigationToGodot, compileNavigationBlock, renderingToGodot, compileRenderingBlock, proceduralToGodot, compileProceduralBlock, web3ToGodot, compileWeb3Block, architectureToGodot, compileArchitectureBlock, musicToGodot, compileMusicBlock, educationToGodot, compileEducationBlock, datavizToGodot, compileDataVizBlock, iotToGodot, compileIoTBlock, compileRoboticsBlock, roboticsToGodot, compileHealthcareBlock, healthcareToGodot, compilePaymentBlock, paymentToGodot, compileNarrativeBlock, narrativeToGodot, compileWeatherBlock, weatherToGodot, compileAudioSourceBlock, audioSourceToGodot, compilePostProcessingBlock, postProcessingToGodot, compileParticleBlock, particlesToGodot, compilePhysicsBlock, physicsToGodot, compileMaterialBlock, materialToGodot } from './chunk-ZA34AN3R.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
3
3
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
5
5
|
|
|
@@ -431,7 +431,11 @@ var init_GodotCompiler = __esm({
|
|
|
431
431
|
this.emit(`var ${varName}_reverb = AudioEffectReverb.new()`);
|
|
432
432
|
this.emit(`# @reverb_zone \u2014 add to AudioBus`);
|
|
433
433
|
} else if (tn === "audio_material" || tn === "audio_occlusion" || tn === "audio_portal") {
|
|
434
|
-
const acoustic = compileAcousticTrait(
|
|
434
|
+
const acoustic = compileAcousticTrait(
|
|
435
|
+
tn,
|
|
436
|
+
trait.config || {},
|
|
437
|
+
varName
|
|
438
|
+
);
|
|
435
439
|
if (acoustic) {
|
|
436
440
|
for (const line of acoustic.lines) this.emit(line);
|
|
437
441
|
}
|
|
@@ -682,5 +686,5 @@ var init_GodotCompiler = __esm({
|
|
|
682
686
|
});
|
|
683
687
|
|
|
684
688
|
export { GodotCompiler, GodotCompiler_exports, init_GodotCompiler };
|
|
685
|
-
//# sourceMappingURL=chunk-
|
|
686
|
-
//# sourceMappingURL=chunk-
|
|
689
|
+
//# sourceMappingURL=chunk-LWUOUCYL.js.map
|
|
690
|
+
//# sourceMappingURL=chunk-LWUOUCYL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkM7K4LE66_cjs = require('./chunk-M7K4LE66.cjs');
|
|
4
4
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/hololand/index.ts
|
|
@@ -622,7 +622,9 @@ var _HololandClient = class _HololandClient {
|
|
|
622
622
|
signal: controller.signal
|
|
623
623
|
});
|
|
624
624
|
if (!response.ok) {
|
|
625
|
-
throw new Error(
|
|
625
|
+
throw new Error(
|
|
626
|
+
`Failed to fetch world "${worldId}": ${response.status} ${response.statusText}`
|
|
627
|
+
);
|
|
626
628
|
}
|
|
627
629
|
return await response.json();
|
|
628
630
|
} finally {
|
|
@@ -650,7 +652,7 @@ function disconnectFromHololand() {
|
|
|
650
652
|
}
|
|
651
653
|
|
|
652
654
|
// src/hololand/PhysicsBoundsRegistry.ts
|
|
653
|
-
|
|
655
|
+
chunkM7K4LE66_cjs.init_AgentRiskRegistry();
|
|
654
656
|
var DEFAULT_ENVELOPES = {
|
|
655
657
|
["low" /* LOW */]: {
|
|
656
658
|
maxForceN: 1e3,
|
|
@@ -721,7 +723,7 @@ function resetPhysicsBoundsRegistry() {
|
|
|
721
723
|
globalBoundsRegistry = null;
|
|
722
724
|
}
|
|
723
725
|
function wrapPhysicsService(service, agentId, options = {}) {
|
|
724
|
-
const riskRegistry = options.riskRegistry ??
|
|
726
|
+
const riskRegistry = options.riskRegistry ?? chunkM7K4LE66_cjs.getAgentRiskRegistry();
|
|
725
727
|
const boundsRegistry = options.boundsRegistry ?? getPhysicsBoundsRegistry();
|
|
726
728
|
const onViolation = options.onViolation;
|
|
727
729
|
function currentEnvelope() {
|
|
@@ -937,7 +939,7 @@ function clampVector(v, maxMagnitude) {
|
|
|
937
939
|
}
|
|
938
940
|
|
|
939
941
|
// src/hololand/CrossValidationRegistry.ts
|
|
940
|
-
|
|
942
|
+
chunkM7K4LE66_cjs.init_AgentRiskRegistry();
|
|
941
943
|
var DEFAULT_MIN_OBSERVERS = 3;
|
|
942
944
|
var DEFAULT_NUMERIC_TOLERANCE = 1;
|
|
943
945
|
var DEFAULT_AGREEMENT_SEVERITY = 15;
|
|
@@ -957,7 +959,7 @@ var CrossValidationRegistry = class {
|
|
|
957
959
|
perField: config.tolerance?.perField
|
|
958
960
|
};
|
|
959
961
|
this.agreementSeverityThreshold = config.agreementSeverityThreshold ?? DEFAULT_AGREEMENT_SEVERITY;
|
|
960
|
-
this.riskRegistry = config.riskRegistry ??
|
|
962
|
+
this.riskRegistry = config.riskRegistry ?? chunkM7K4LE66_cjs.getAgentRiskRegistry();
|
|
961
963
|
this.maxRounds = config.maxRounds ?? DEFAULT_MAX_ROUNDS;
|
|
962
964
|
this.now = config.now ?? (() => Date.now());
|
|
963
965
|
if (this.defaultMinObservers < 2) {
|
|
@@ -966,14 +968,10 @@ var CrossValidationRegistry = class {
|
|
|
966
968
|
);
|
|
967
969
|
}
|
|
968
970
|
if (this.agreementSeverityThreshold < 0 || this.agreementSeverityThreshold > 100) {
|
|
969
|
-
throw new Error(
|
|
970
|
-
"CrossValidationRegistry: agreementSeverityThreshold must be in [0,100]"
|
|
971
|
-
);
|
|
971
|
+
throw new Error("CrossValidationRegistry: agreementSeverityThreshold must be in [0,100]");
|
|
972
972
|
}
|
|
973
973
|
if (this.tolerance.defaultNumericTolerance <= 0) {
|
|
974
|
-
throw new Error(
|
|
975
|
-
"CrossValidationRegistry: defaultNumericTolerance must be > 0"
|
|
976
|
-
);
|
|
974
|
+
throw new Error("CrossValidationRegistry: defaultNumericTolerance must be > 0");
|
|
977
975
|
}
|
|
978
976
|
if (this.maxRounds < 1) {
|
|
979
977
|
throw new Error("CrossValidationRegistry: maxRounds must be >= 1");
|
|
@@ -1981,5 +1979,5 @@ exports.resetCrossValidationRegistry = resetCrossValidationRegistry;
|
|
|
1981
1979
|
exports.resetPhysicsBoundsRegistry = resetPhysicsBoundsRegistry;
|
|
1982
1980
|
exports.suggestedQuorum = suggestedQuorum;
|
|
1983
1981
|
exports.wrapPhysicsService = wrapPhysicsService;
|
|
1984
|
-
//# sourceMappingURL=chunk-
|
|
1985
|
-
//# sourceMappingURL=chunk-
|
|
1982
|
+
//# sourceMappingURL=chunk-LYJJI7ZK.cjs.map
|
|
1983
|
+
//# sourceMappingURL=chunk-LYJJI7ZK.cjs.map
|
|
@@ -78,10 +78,7 @@ var init_AgentRiskRegistry = chunkHCCQLAA4_cjs.__esm({
|
|
|
78
78
|
ring.shift();
|
|
79
79
|
}
|
|
80
80
|
this.events.set(event.agentId, ring);
|
|
81
|
-
this.lifetimeEvents.set(
|
|
82
|
-
event.agentId,
|
|
83
|
-
(this.lifetimeEvents.get(event.agentId) ?? 0) + 1
|
|
84
|
-
);
|
|
81
|
+
this.lifetimeEvents.set(event.agentId, (this.lifetimeEvents.get(event.agentId) ?? 0) + 1);
|
|
85
82
|
}
|
|
86
83
|
/**
|
|
87
84
|
* Record a successful (clean) operation. Reduces the agent's accrued score
|
|
@@ -92,10 +89,7 @@ var init_AgentRiskRegistry = chunkHCCQLAA4_cjs.__esm({
|
|
|
92
89
|
*/
|
|
93
90
|
recordSuccess(agentId) {
|
|
94
91
|
if (this.successCreditPerOp <= 0) {
|
|
95
|
-
this.lifetimeSuccesses.set(
|
|
96
|
-
agentId,
|
|
97
|
-
(this.lifetimeSuccesses.get(agentId) ?? 0) + 1
|
|
98
|
-
);
|
|
92
|
+
this.lifetimeSuccesses.set(agentId, (this.lifetimeSuccesses.get(agentId) ?? 0) + 1);
|
|
99
93
|
return;
|
|
100
94
|
}
|
|
101
95
|
const ring = this.events.get(agentId) ?? [];
|
|
@@ -109,10 +103,7 @@ var init_AgentRiskRegistry = chunkHCCQLAA4_cjs.__esm({
|
|
|
109
103
|
ring.shift();
|
|
110
104
|
}
|
|
111
105
|
this.events.set(agentId, ring);
|
|
112
|
-
this.lifetimeSuccesses.set(
|
|
113
|
-
agentId,
|
|
114
|
-
(this.lifetimeSuccesses.get(agentId) ?? 0) + 1
|
|
115
|
-
);
|
|
106
|
+
this.lifetimeSuccesses.set(agentId, (this.lifetimeSuccesses.get(agentId) ?? 0) + 1);
|
|
116
107
|
}
|
|
117
108
|
/**
|
|
118
109
|
* Compute the current decayed risk score for an agent (0-100).
|
|
@@ -258,5 +249,5 @@ var init_AgentRiskRegistry = chunkHCCQLAA4_cjs.__esm({
|
|
|
258
249
|
exports.getAgentRiskRegistry = getAgentRiskRegistry;
|
|
259
250
|
exports.init_AgentRiskRegistry = init_AgentRiskRegistry;
|
|
260
251
|
exports.isDangerousOperation = isDangerousOperation;
|
|
261
|
-
//# sourceMappingURL=chunk-
|
|
262
|
-
//# sourceMappingURL=chunk-
|
|
252
|
+
//# sourceMappingURL=chunk-M7K4LE66.cjs.map
|
|
253
|
+
//# sourceMappingURL=chunk-M7K4LE66.cjs.map
|
|
@@ -2281,11 +2281,7 @@ var HoloScriptCodeParser = class {
|
|
|
2281
2281
|
*/
|
|
2282
2282
|
parsePosition(value) {
|
|
2283
2283
|
if (Array.isArray(value)) {
|
|
2284
|
-
return [
|
|
2285
|
-
Number(value[0]) || 0,
|
|
2286
|
-
Number(value[1]) || 0,
|
|
2287
|
-
Number(value[2]) || 0
|
|
2288
|
-
];
|
|
2284
|
+
return [Number(value[0]) || 0, Number(value[1]) || 0, Number(value[2]) || 0];
|
|
2289
2285
|
}
|
|
2290
2286
|
if (typeof value === "object" && value !== null) {
|
|
2291
2287
|
const v = value;
|
|
@@ -2517,5 +2513,5 @@ var HoloScriptCodeParser = class {
|
|
|
2517
2513
|
};
|
|
2518
2514
|
|
|
2519
2515
|
export { ERROR_CODES, HoloScriptCodeParser, ParserPools };
|
|
2520
|
-
//# sourceMappingURL=chunk-
|
|
2521
|
-
//# sourceMappingURL=chunk-
|
|
2516
|
+
//# sourceMappingURL=chunk-MDR235RZ.js.map
|
|
2517
|
+
//# sourceMappingURL=chunk-MDR235RZ.js.map
|