@holoscript/core 8.0.0 → 8.0.2
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 +2 -2
- package/dist/{GLTFPipeline-M7WSSJED.cjs → GLTFPipeline-76QTLF4Z.cjs} +10 -9
- package/dist/{GLTFPipeline-276GE64O.js → GLTFPipeline-ES5YMBGT.js} +6 -5
- package/dist/HoloScriptRuntime-2DDYOPOR.js +10 -0
- package/dist/{HoloScriptRuntime-SXEAEU2N.cjs → HoloScriptRuntime-ZGRR5EB3.cjs} +5 -5
- package/dist/{chunk-JJBE3TIH.cjs → chunk-2IWC4FP7.cjs} +6 -6
- package/dist/{chunk-S4W6Z2MN.js → chunk-2X7NGX3M.js} +3 -3
- package/dist/{chunk-NGKREZ36.js → chunk-3OYVN53V.js} +505 -5
- package/dist/{chunk-GQT4TYKY.cjs → chunk-3OZACAFQ.cjs} +44 -19
- package/dist/{chunk-T2QCTZMO.js → chunk-4SDKXQ4C.js} +3 -3
- package/dist/{chunk-253GBQZY.cjs → chunk-5H2G27PK.cjs} +35 -35
- package/dist/{chunk-C2A5DUMF.cjs → chunk-5NWINHR5.cjs} +35 -35
- package/dist/{chunk-D54CNIAJ.cjs → chunk-7H33U5SM.cjs} +2 -2
- package/dist/{chunk-CXFDRBQU.cjs → chunk-7M3PNU2M.cjs} +7 -7
- package/dist/{chunk-WJIHFLMJ.js → chunk-ADADVMXY.js} +2 -2
- package/dist/{chunk-NHWSN2SD.cjs → chunk-AVJHHUC5.cjs} +17 -17
- package/dist/{chunk-JCLBKPMX.js → chunk-BOVPWH4H.js} +48 -4
- package/dist/{chunk-ZZEI7MV4.js → chunk-CCATWPXM.js} +3 -3
- package/dist/{chunk-NBMHU6SW.js → chunk-CMT5NMMS.js} +3 -3
- package/dist/{chunk-HINXWAOD.cjs → chunk-CR4FMIWL.cjs} +11 -11
- package/dist/{chunk-IZM5VQZD.js → chunk-D3STJ56J.js} +3 -3
- package/dist/{chunk-EUDQTK7N.cjs → chunk-DAKRKDZV.cjs} +27 -38
- package/dist/{chunk-ZBQXLH2L.js → chunk-DHO2YRIM.js} +3 -3
- package/dist/{chunk-RVBHAXFG.js → chunk-DXWOTOUK.js} +16 -11
- package/dist/{chunk-F43YAA34.js → chunk-E47Z63DF.js} +3 -3
- package/dist/{chunk-62FBK3B7.js → chunk-FFAOS5HQ.js} +4 -4
- package/dist/{chunk-UM6C3CGK.js → chunk-FS7BFHFN.js} +28 -3
- package/dist/{chunk-SJBGLS25.cjs → chunk-FXIO6GHT.cjs} +5 -5
- package/dist/{chunk-XUUVDHIF.cjs → chunk-HKEXJUWS.cjs} +48 -3
- package/dist/{chunk-NXZFOPVD.cjs → chunk-HNDK4IQU.cjs} +16 -16
- package/dist/{chunk-SMIWS6DE.cjs → chunk-IELX2OKI.js} +118 -7
- package/dist/{chunk-KH4CNH66.cjs → chunk-IMGDUSTT.cjs} +4 -4
- package/dist/{chunk-LICPB5HZ.cjs → chunk-IUDGEUDO.cjs} +10 -10
- package/dist/{chunk-73FELZVJ.cjs → chunk-IWC5DM2M.cjs} +11 -11
- package/dist/{chunk-PHVRG4I2.js → chunk-J7XZV333.js} +3 -3
- package/dist/{chunk-K4VVR7CN.cjs → chunk-JBNDTXXV.cjs} +15 -15
- package/dist/{chunk-3NFFOWGG.js → chunk-KFIXE2MB.js} +14 -5
- package/dist/{chunk-B4TFTDG4.js → chunk-LCEXRE5Z.js} +3 -3
- package/dist/{chunk-IVSZDECV.js → chunk-LHAXPADA.js} +3 -3
- package/dist/{chunk-7CUEMLDZ.cjs → chunk-LKBTCABN.cjs} +540 -38
- package/dist/{chunk-AYBXB26F.js → chunk-LOGP3JWH.js} +5 -5
- package/dist/{chunk-KVRSTFNH.cjs → chunk-NCWCUZNS.cjs} +8 -8
- package/dist/{chunk-NV4VMVXU.js → chunk-NNFA2C3Y.js} +3 -3
- package/dist/{chunk-HZSPDCXV.cjs → chunk-O7WLJ53D.cjs} +3 -3
- package/dist/{chunk-MGE5Z4GS.js → chunk-OH2FAIVU.js} +3 -3
- package/dist/{chunk-UMABK6SI.js → chunk-PY37LNDP.js} +3 -3
- package/dist/{chunk-23J755AR.js → chunk-QD32ADK6.js} +3 -3
- package/dist/chunk-QRPRIJ2W.js +1525 -0
- package/dist/{chunk-HZTDET3N.js → chunk-R24NNAEG.js} +3 -3
- package/dist/{chunk-W7VDOASB.cjs → chunk-RMTPN3G4.cjs} +5 -5
- package/dist/{chunk-6DPSFNJB.cjs → chunk-ROHLEP2W.cjs} +16 -16
- package/dist/{chunk-3HYYMEXI.cjs → chunk-SMRVK6BI.cjs} +17 -12
- package/dist/{chunk-25IQCHTO.cjs → chunk-TWUXUCEW.cjs} +35 -35
- package/dist/{chunk-KEFNV2WM.cjs → chunk-U7IUS5HJ.cjs} +13 -13
- package/dist/{chunk-3AO425MZ.cjs → chunk-UFZZ7TSN.cjs} +17 -17
- package/dist/chunk-UPXIY52O.cjs +1562 -0
- package/dist/{chunk-BE4UJCQT.js → chunk-UWJHCOH2.js} +3 -3
- package/dist/{chunk-7HIASF7S.cjs → chunk-XB274MW5.cjs} +10 -10
- package/dist/{chunk-RARB3MBR.js → chunk-YDPEHCCI.cjs} +127 -3
- package/dist/{chunk-KJLB4OPV.js → chunk-YN2YWTXW.js} +3 -3
- package/dist/{chunk-IPWSXCCN.js → chunk-YVD3CSO3.js} +3 -3
- package/dist/{chunk-OR4Q2BGL.cjs → chunk-YWOBW2PV.cjs} +15 -15
- package/dist/{chunk-JX7YL6ZE.js → chunk-ZPYP4RBA.js} +4 -4
- package/dist/compiler/android-xr.cjs +5 -5
- package/dist/compiler/android-xr.js +3 -3
- package/dist/compiler/babylon.cjs +4 -4
- package/dist/compiler/babylon.js +3 -3
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/domain-block-utils.cjs +154 -150
- package/dist/compiler/domain-block-utils.js +2 -2
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +4 -4
- package/dist/compiler/godot.js +3 -3
- package/dist/compiler/index.cjs +129 -581
- package/dist/compiler/index.d.ts +12 -0
- package/dist/compiler/index.js +42 -498
- package/dist/compiler/multi-layer.cjs +5 -5
- package/dist/compiler/multi-layer.js +4 -4
- package/dist/compiler/nodetoy.d.ts +69 -0
- package/dist/compiler/openxr.cjs +4 -4
- package/dist/compiler/openxr.js +3 -3
- package/dist/compiler/playcanvas.cjs +4 -4
- package/dist/compiler/playcanvas.js +3 -3
- package/dist/compiler/r3f.cjs +9 -8
- package/dist/compiler/r3f.js +4 -3
- package/dist/compiler/sdf.cjs +5 -5
- package/dist/compiler/sdf.js +3 -3
- package/dist/compiler/unity.cjs +4 -4
- package/dist/compiler/unity.js +3 -3
- package/dist/compiler/unreal.cjs +5 -5
- package/dist/compiler/unreal.js +3 -3
- package/dist/compiler/urdf.cjs +12 -12
- package/dist/compiler/urdf.js +3 -3
- package/dist/compiler/usd-physics.cjs +5 -5
- package/dist/compiler/usd-physics.js +2 -2
- package/dist/compiler/visionos.cjs +4 -4
- package/dist/compiler/visionos.js +3 -3
- package/dist/compiler/vrchat.cjs +5 -5
- package/dist/compiler/vrchat.js +3 -3
- package/dist/compiler/vrr.cjs +5 -5
- package/dist/compiler/vrr.js +3 -3
- package/dist/compiler/wasm.cjs +8 -8
- package/dist/compiler/wasm.js +3 -3
- package/dist/compiler/webgpu.cjs +4 -4
- package/dist/compiler/webgpu.js +3 -3
- package/dist/debugger.cjs +5 -5
- package/dist/debugger.js +3 -3
- package/dist/dist-ACXG6IH5.cjs +3113 -0
- package/dist/dist-VD4L6V7Q.js +3076 -0
- package/dist/index.cjs +1894 -559
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1448 -113
- package/dist/reconstruction/index.cjs +31 -31
- package/dist/reconstruction/index.js +2 -2
- package/dist/runtime.cjs +150 -293
- package/dist/runtime.js +82 -23
- package/dist/src-4ROC227P.cjs +2094 -0
- package/dist/src-HCCCSYP7.js +2073 -0
- package/dist/traits/botanical-lotus.cjs +162 -10
- package/dist/traits/botanical-lotus.d.ts +330 -0
- package/dist/traits/botanical-lotus.js +4 -1
- package/dist/traits/index.cjs +610 -455
- package/dist/traits/index.js +9 -5
- package/package.json +23 -23
- package/dist/HoloScriptRuntime-3URVTKPJ.js +0 -10
- package/dist/chunk-VECQYRXL.js +0 -474
- package/dist/chunk-WDT3JTGM.cjs +0 -483
|
@@ -7,6 +7,9 @@ var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
|
7
7
|
function esc(value, target) {
|
|
8
8
|
return chunkKKP7JKN4_cjs.escapeStringValue(value, target);
|
|
9
9
|
}
|
|
10
|
+
function isPhysicalMaterial(mat) {
|
|
11
|
+
return PHYSICAL_MATERIAL_KEYS.some((k) => mat[k] !== void 0);
|
|
12
|
+
}
|
|
10
13
|
function compileMaterialBlock(block) {
|
|
11
14
|
const type = block.keyword === "unlit_material" ? "unlit" : block.keyword === "shader" ? "shader" : "pbr";
|
|
12
15
|
const textureMaps = {};
|
|
@@ -28,6 +31,17 @@ function compileMaterialBlock(block) {
|
|
|
28
31
|
ior: otherProps.ior,
|
|
29
32
|
emissiveColor: otherProps.emissive_color,
|
|
30
33
|
emissiveIntensity: otherProps.emissive_intensity,
|
|
34
|
+
clearcoat: otherProps.clearcoat ?? otherProps.clear_coat,
|
|
35
|
+
clearcoatRoughness: otherProps.clearcoat_roughness ?? otherProps.clearcoatRoughness,
|
|
36
|
+
transmission: otherProps.transmission,
|
|
37
|
+
thickness: otherProps.thickness,
|
|
38
|
+
sheen: otherProps.sheen,
|
|
39
|
+
sheenColor: otherProps.sheen_color ?? otherProps.sheenColor,
|
|
40
|
+
sheenRoughness: otherProps.sheen_roughness ?? otherProps.sheenRoughness,
|
|
41
|
+
specularIntensity: otherProps.specular_intensity ?? otherProps.specularIntensity,
|
|
42
|
+
iridescence: otherProps.iridescence,
|
|
43
|
+
attenuationColor: otherProps.attenuation_color ?? otherProps.attenuationColor,
|
|
44
|
+
attenuationDistance: otherProps.attenuation_distance ?? otherProps.attenuationDistance,
|
|
31
45
|
textureMaps,
|
|
32
46
|
traits: block.traits || []
|
|
33
47
|
};
|
|
@@ -246,6 +260,23 @@ function materialToR3F(mat, tier) {
|
|
|
246
260
|
const propName = type.replace(/_map$/, "Map").replace(/^albedo/, "");
|
|
247
261
|
return `${propName}={useTexture("${path}")}`;
|
|
248
262
|
}).join(" ");
|
|
263
|
+
if (isPhysicalMaterial(mat)) {
|
|
264
|
+
const physical = [
|
|
265
|
+
mat.ior !== void 0 ? `ior={${mat.ior}}` : "",
|
|
266
|
+
mat.clearcoat !== void 0 ? `clearcoat={${mat.clearcoat}}` : "",
|
|
267
|
+
mat.clearcoatRoughness !== void 0 ? `clearcoatRoughness={${mat.clearcoatRoughness}}` : "",
|
|
268
|
+
mat.transmission !== void 0 ? `transmission={${mat.transmission}}` : "",
|
|
269
|
+
mat.thickness !== void 0 ? `thickness={${mat.thickness}}` : "",
|
|
270
|
+
mat.sheen !== void 0 ? `sheen={${mat.sheen}}` : "",
|
|
271
|
+
mat.sheenColor ? `sheenColor="${mat.sheenColor}"` : "",
|
|
272
|
+
mat.sheenRoughness !== void 0 ? `sheenRoughness={${mat.sheenRoughness}}` : "",
|
|
273
|
+
mat.specularIntensity !== void 0 ? `specularIntensity={${mat.specularIntensity}}` : "",
|
|
274
|
+
mat.iridescence !== void 0 ? `iridescence={${mat.iridescence}}` : "",
|
|
275
|
+
mat.attenuationColor ? `attenuationColor="${mat.attenuationColor}"` : "",
|
|
276
|
+
mat.attenuationDistance !== void 0 ? `attenuationDistance={${mat.attenuationDistance}}` : ""
|
|
277
|
+
].filter(Boolean).join(" ");
|
|
278
|
+
return `<meshPhysicalMaterial ${props} ${physical} ${textures} />`;
|
|
279
|
+
}
|
|
249
280
|
return `<meshStandardMaterial ${props} ${textures} />`;
|
|
250
281
|
}
|
|
251
282
|
function materialToUSD(mat) {
|
|
@@ -3801,11 +3832,24 @@ function hexToRGBA(hex, alpha) {
|
|
|
3801
3832
|
function getRequiredCapability() {
|
|
3802
3833
|
return chunkKKP7JKN4_cjs.ANSCapabilityPath.DOMAIN_BLOCK;
|
|
3803
3834
|
}
|
|
3804
|
-
exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = void 0;
|
|
3835
|
+
var PHYSICAL_MATERIAL_KEYS; exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = void 0;
|
|
3805
3836
|
var init_DomainBlockCompilerMixin = chunkHCCQLAA4_cjs.__esm({
|
|
3806
3837
|
"src/compiler/DomainBlockCompilerMixin.ts"() {
|
|
3807
3838
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
3808
3839
|
chunkKKP7JKN4_cjs.init_ANSNamespace();
|
|
3840
|
+
PHYSICAL_MATERIAL_KEYS = [
|
|
3841
|
+
"clearcoat",
|
|
3842
|
+
"clearcoatRoughness",
|
|
3843
|
+
"transmission",
|
|
3844
|
+
"thickness",
|
|
3845
|
+
"sheen",
|
|
3846
|
+
"sheenColor",
|
|
3847
|
+
"sheenRoughness",
|
|
3848
|
+
"specularIntensity",
|
|
3849
|
+
"iridescence",
|
|
3850
|
+
"attenuationColor",
|
|
3851
|
+
"attenuationDistance"
|
|
3852
|
+
];
|
|
3809
3853
|
exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = "/compile/mixin/domain-block";
|
|
3810
3854
|
}
|
|
3811
3855
|
});
|
|
@@ -3873,6 +3917,7 @@ exports.iotToR3F = iotToR3F;
|
|
|
3873
3917
|
exports.iotToUSDA = iotToUSDA;
|
|
3874
3918
|
exports.iotToUnity = iotToUnity;
|
|
3875
3919
|
exports.iotToVRChat = iotToVRChat;
|
|
3920
|
+
exports.isPhysicalMaterial = isPhysicalMaterial;
|
|
3876
3921
|
exports.materialToAndroidXR = materialToAndroidXR;
|
|
3877
3922
|
exports.materialToBabylon = materialToBabylon;
|
|
3878
3923
|
exports.materialToGLTF = materialToGLTF;
|
|
@@ -3958,5 +4003,5 @@ exports.web3ToR3F = web3ToR3F;
|
|
|
3958
4003
|
exports.web3ToUSDA = web3ToUSDA;
|
|
3959
4004
|
exports.web3ToUnity = web3ToUnity;
|
|
3960
4005
|
exports.web3ToVRChat = web3ToVRChat;
|
|
3961
|
-
//# sourceMappingURL=chunk-
|
|
3962
|
-
//# sourceMappingURL=chunk-
|
|
4006
|
+
//# sourceMappingURL=chunk-HKEXJUWS.cjs.map
|
|
4007
|
+
//# sourceMappingURL=chunk-HKEXJUWS.cjs.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkFEWUHQNM_cjs = require('./chunk-FEWUHQNM.cjs');
|
|
4
4
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
6
6
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
7
7
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
8
8
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -4976,36 +4976,36 @@ function compileAndroidXRDomainBlocks(compiler, composition) {
|
|
|
4976
4976
|
compiler.emit("");
|
|
4977
4977
|
compiler.emit("// === v4.2 Domain Blocks ===");
|
|
4978
4978
|
let blockIdx = 0;
|
|
4979
|
-
const compiled =
|
|
4979
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
4980
4980
|
// @ts-expect-error During migration
|
|
4981
4981
|
domainBlocks,
|
|
4982
4982
|
{
|
|
4983
4983
|
material: (block) => {
|
|
4984
|
-
const mat =
|
|
4985
|
-
return
|
|
4984
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
4985
|
+
return chunkHKEXJUWS_cjs.materialToAndroidXR(mat, `db${blockIdx++}`);
|
|
4986
4986
|
},
|
|
4987
4987
|
physics: (block) => {
|
|
4988
|
-
const phys =
|
|
4989
|
-
return
|
|
4988
|
+
const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
4989
|
+
return chunkHKEXJUWS_cjs.physicsToAndroidXR(phys, `db${blockIdx++}`);
|
|
4990
4990
|
},
|
|
4991
4991
|
vfx: (block) => {
|
|
4992
|
-
const ps =
|
|
4993
|
-
return
|
|
4992
|
+
const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
|
|
4993
|
+
return chunkHKEXJUWS_cjs.particlesToAndroidXR(ps, `db${blockIdx++}`);
|
|
4994
4994
|
},
|
|
4995
4995
|
postfx: (block) => {
|
|
4996
|
-
const pp =
|
|
4996
|
+
const pp = chunkHKEXJUWS_cjs.compilePostProcessingBlock(block);
|
|
4997
4997
|
const postfx = pp;
|
|
4998
4998
|
const effects = postfx.effects.map((e) => `// Effect: ${e.type} \u2014 ${JSON.stringify(e.properties)}`).join("\n");
|
|
4999
4999
|
return `// Post-Processing: ${postfx.keyword} \u2014 configure via Filament Renderer post-processing
|
|
5000
5000
|
${effects}`;
|
|
5001
5001
|
},
|
|
5002
5002
|
audio: (block) => {
|
|
5003
|
-
const audio =
|
|
5004
|
-
return
|
|
5003
|
+
const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
5004
|
+
return chunkHKEXJUWS_cjs.audioSourceToAndroidXR(audio, `db${blockIdx++}`);
|
|
5005
5005
|
},
|
|
5006
5006
|
weather: (block) => {
|
|
5007
|
-
const weather =
|
|
5008
|
-
return
|
|
5007
|
+
const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
5008
|
+
return chunkHKEXJUWS_cjs.weatherToAndroidXR(weather);
|
|
5009
5009
|
}
|
|
5010
5010
|
},
|
|
5011
5011
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${compiler.escapeStringValue(block.name, "Kotlin")}"`
|
|
@@ -5032,7 +5032,7 @@ function emitTransition(compiler, tr) {
|
|
|
5032
5032
|
}
|
|
5033
5033
|
var init_AndroidXRGenerators = chunkHCCQLAA4_cjs.__esm({
|
|
5034
5034
|
"src/compiler/AndroidXRGenerators.ts"() {
|
|
5035
|
-
|
|
5035
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
5036
5036
|
init_AndroidXRTraitMap();
|
|
5037
5037
|
}
|
|
5038
5038
|
});
|
|
@@ -5733,5 +5733,5 @@ exports.compileToAndroidXR = compileToAndroidXR;
|
|
|
5733
5733
|
exports.getTraitMapping = getTraitMapping;
|
|
5734
5734
|
exports.init_AndroidXRCompiler = init_AndroidXRCompiler;
|
|
5735
5735
|
exports.init_AndroidXRTraitMap = init_AndroidXRTraitMap;
|
|
5736
|
-
//# sourceMappingURL=chunk-
|
|
5737
|
-
//# sourceMappingURL=chunk-
|
|
5736
|
+
//# sourceMappingURL=chunk-HNDK4IQU.cjs.map
|
|
5737
|
+
//# sourceMappingURL=chunk-HNDK4IQU.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { createRequire } from 'module';
|
|
2
2
|
|
|
3
3
|
// src/events/EventBus.ts
|
|
4
4
|
var EventBus = class {
|
|
@@ -203,10 +203,121 @@ var TelemetryRegistry = class {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
var telemetry = new TelemetryRegistry();
|
|
206
|
+
var _requirePeer;
|
|
207
|
+
function requirePeer(specifier) {
|
|
208
|
+
if (!_requirePeer) {
|
|
209
|
+
if (typeof createRequire !== "function") {
|
|
210
|
+
throw new Error(
|
|
211
|
+
"@holoscript/core: optional peer symbols require a Node.js environment (`createRequire` is unavailable in this bundle). The core parser and compiler surface work without the optional peers."
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
_requirePeer = createRequire(import.meta.url);
|
|
215
|
+
}
|
|
216
|
+
return _requirePeer(specifier);
|
|
217
|
+
}
|
|
218
|
+
var peerCache = /* @__PURE__ */ new Map();
|
|
219
|
+
function loadPeer(specifier) {
|
|
220
|
+
const cached = peerCache.get(specifier);
|
|
221
|
+
if (cached) return cached;
|
|
222
|
+
let mod;
|
|
223
|
+
try {
|
|
224
|
+
mod = requirePeer(specifier);
|
|
225
|
+
} catch (err) {
|
|
226
|
+
const e = err;
|
|
227
|
+
const pkg = specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
|
|
228
|
+
if (e && (e.code === "ERR_MODULE_NOT_FOUND" || e.code === "MODULE_NOT_FOUND")) {
|
|
229
|
+
throw new Error(
|
|
230
|
+
`@holoscript/core: optional peer "${pkg}" is required to use this symbol but is not installed. Run \`npm install ${pkg}\` (or your package manager's equivalent) to enable it. The core parser and compiler surface work without it.`
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
throw err;
|
|
234
|
+
}
|
|
235
|
+
peerCache.set(specifier, mod);
|
|
236
|
+
return mod;
|
|
237
|
+
}
|
|
238
|
+
function resolveSymbol(specifier, name) {
|
|
239
|
+
const mod = loadPeer(specifier);
|
|
240
|
+
if (!(name in mod)) {
|
|
241
|
+
const pkg = specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
|
|
242
|
+
throw new Error(
|
|
243
|
+
`@holoscript/core: symbol "${name}" was not found in optional peer "${specifier}" (package "${pkg}"). The installed peer version may be incompatible with this @holoscript/core release.`
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
return mod[name];
|
|
247
|
+
}
|
|
248
|
+
function lazyPeerSymbol(specifier, name) {
|
|
249
|
+
const target = function lazyPeerProxyTarget() {
|
|
250
|
+
};
|
|
251
|
+
let resolved;
|
|
252
|
+
const real = () => {
|
|
253
|
+
if (resolved === void 0) resolved = resolveSymbol(specifier, name);
|
|
254
|
+
return resolved;
|
|
255
|
+
};
|
|
256
|
+
const tryReal = () => {
|
|
257
|
+
try {
|
|
258
|
+
return real();
|
|
259
|
+
} catch {
|
|
260
|
+
return void 0;
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
return new Proxy(target, {
|
|
264
|
+
apply(_t, thisArg, args) {
|
|
265
|
+
return Reflect.apply(real(), thisArg, args);
|
|
266
|
+
},
|
|
267
|
+
construct(_t, args, newTarget) {
|
|
268
|
+
return Reflect.construct(real(), args, newTarget);
|
|
269
|
+
},
|
|
270
|
+
get(_t, prop) {
|
|
271
|
+
const r = tryReal();
|
|
272
|
+
if (r == null) return Reflect.get(_t, prop);
|
|
273
|
+
const v = Reflect.get(r, prop, r);
|
|
274
|
+
return typeof v === "function" ? v.bind(r) : v;
|
|
275
|
+
},
|
|
276
|
+
has(_t, prop) {
|
|
277
|
+
const r = tryReal();
|
|
278
|
+
return Reflect.has(r ?? _t, prop);
|
|
279
|
+
},
|
|
280
|
+
getPrototypeOf(_t) {
|
|
281
|
+
const r = tryReal();
|
|
282
|
+
return Reflect.getPrototypeOf(r ?? _t);
|
|
283
|
+
},
|
|
284
|
+
// ownKeys / getOwnPropertyDescriptor MUST satisfy Proxy invariants (the
|
|
285
|
+
// function target has a non-configurable `prototype` key), so on resolution
|
|
286
|
+
// failure delegate to the TARGET — never return [] / undefined, which throws.
|
|
287
|
+
ownKeys(_t) {
|
|
288
|
+
const r = tryReal();
|
|
289
|
+
return Reflect.ownKeys(r ?? _t);
|
|
290
|
+
},
|
|
291
|
+
getOwnPropertyDescriptor(_t, prop) {
|
|
292
|
+
const r = tryReal();
|
|
293
|
+
return Reflect.getOwnPropertyDescriptor(r ?? _t, prop);
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
function definePeerNamespace(specifier) {
|
|
298
|
+
return new Proxy(
|
|
299
|
+
{},
|
|
300
|
+
{
|
|
301
|
+
get(_t, prop) {
|
|
302
|
+
if (typeof prop !== "string") return void 0;
|
|
303
|
+
return loadPeer(specifier)[prop];
|
|
304
|
+
},
|
|
305
|
+
has(_t, prop) {
|
|
306
|
+
return typeof prop === "string" && prop in loadPeer(specifier);
|
|
307
|
+
},
|
|
308
|
+
ownKeys() {
|
|
309
|
+
return Reflect.ownKeys(loadPeer(specifier));
|
|
310
|
+
},
|
|
311
|
+
getOwnPropertyDescriptor(_t, prop) {
|
|
312
|
+
if (typeof prop !== "string") return void 0;
|
|
313
|
+
const mod = loadPeer(specifier);
|
|
314
|
+
if (!(prop in mod)) return void 0;
|
|
315
|
+
return { enumerable: true, configurable: true, value: mod[prop] };
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
}
|
|
206
320
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
exports.telemetry = telemetry;
|
|
211
|
-
//# sourceMappingURL=chunk-SMIWS6DE.cjs.map
|
|
212
|
-
//# sourceMappingURL=chunk-SMIWS6DE.cjs.map
|
|
321
|
+
export { EventBus, definePeerNamespace, getSharedEventBus, lazyPeerSymbol, setSharedEventBus, telemetry };
|
|
322
|
+
//# sourceMappingURL=chunk-IELX2OKI.js.map
|
|
323
|
+
//# sourceMappingURL=chunk-IELX2OKI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDAKRKDZV_cjs = require('./chunk-DAKRKDZV.cjs');
|
|
4
4
|
var chunkJIYN45TV_cjs = require('./chunk-JIYN45TV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/HoloScriptDebugger.ts
|
|
@@ -21,7 +21,7 @@ var HoloScriptDebugger = class {
|
|
|
21
21
|
callStack: [],
|
|
22
22
|
breakpoints: []
|
|
23
23
|
};
|
|
24
|
-
this.runtime = runtime || new
|
|
24
|
+
this.runtime = runtime || new chunkDAKRKDZV_cjs.HoloScriptRuntime();
|
|
25
25
|
this.parser = new chunkJIYN45TV_cjs.HoloScriptCodeParser();
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
@@ -420,5 +420,5 @@ function createDebugger(runtime) {
|
|
|
420
420
|
|
|
421
421
|
exports.HoloScriptDebugger = HoloScriptDebugger;
|
|
422
422
|
exports.createDebugger = createDebugger;
|
|
423
|
-
//# sourceMappingURL=chunk-
|
|
424
|
-
//# sourceMappingURL=chunk-
|
|
423
|
+
//# sourceMappingURL=chunk-IMGDUSTT.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-IMGDUSTT.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
4
4
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
5
5
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -206,7 +206,7 @@ exports.URDFCompiler = void 0; exports.URDFCompiler_default = void 0;
|
|
|
206
206
|
var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
207
207
|
"src/compiler/URDFCompiler.ts"() {
|
|
208
208
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
209
|
-
|
|
209
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
210
210
|
exports.URDFCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
211
211
|
constructor(options = {}) {
|
|
212
212
|
super();
|
|
@@ -560,11 +560,11 @@ var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
560
560
|
if (domainBlocks.length === 0) return;
|
|
561
561
|
this.emitBlank();
|
|
562
562
|
this.emit("<!-- v4.2 Domain Blocks -->");
|
|
563
|
-
const compiled =
|
|
563
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
564
564
|
domainBlocks,
|
|
565
565
|
{
|
|
566
566
|
material: (block) => {
|
|
567
|
-
const mat =
|
|
567
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
568
568
|
const lines = [];
|
|
569
569
|
lines.push(
|
|
570
570
|
`<material name="${this.escapeStringValue(mat.name, "TypeScript")}">`
|
|
@@ -585,15 +585,15 @@ var init_URDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
585
585
|
return lines.join("\n");
|
|
586
586
|
},
|
|
587
587
|
physics: (block) => {
|
|
588
|
-
const phys =
|
|
589
|
-
return
|
|
588
|
+
const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
589
|
+
return chunkHKEXJUWS_cjs.physicsToURDF(phys);
|
|
590
590
|
},
|
|
591
591
|
audio: (block) => {
|
|
592
|
-
const audio =
|
|
592
|
+
const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
593
593
|
return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" volume="${audio.properties.volume ?? 1}" -->`;
|
|
594
594
|
},
|
|
595
595
|
weather: (block) => {
|
|
596
|
-
const weather =
|
|
596
|
+
const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
597
597
|
return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" layers: ${weather.layers.map((l) => l.type).join(", ")} -->`;
|
|
598
598
|
}
|
|
599
599
|
},
|
|
@@ -1405,5 +1405,5 @@ exports.createURDFCompiler = createURDFCompiler;
|
|
|
1405
1405
|
exports.generateControllersYaml = generateControllersYaml;
|
|
1406
1406
|
exports.generateROS2LaunchFile = generateROS2LaunchFile;
|
|
1407
1407
|
exports.init_URDFCompiler = init_URDFCompiler;
|
|
1408
|
-
//# sourceMappingURL=chunk-
|
|
1409
|
-
//# sourceMappingURL=chunk-
|
|
1408
|
+
//# sourceMappingURL=chunk-IUDGEUDO.cjs.map
|
|
1409
|
+
//# sourceMappingURL=chunk-IUDGEUDO.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
4
4
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
5
5
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -15,7 +15,7 @@ exports.SDFCompiler = void 0; exports.SDFCompiler_default = void 0;
|
|
|
15
15
|
var init_SDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
16
16
|
"src/compiler/SDFCompiler.ts"() {
|
|
17
17
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
18
|
-
|
|
18
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
19
19
|
exports.SDFCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
20
20
|
constructor(options = {}) {
|
|
21
21
|
super();
|
|
@@ -96,23 +96,23 @@ var init_SDFCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
96
96
|
if (domainBlocks.length === 0) return;
|
|
97
97
|
this.emit("");
|
|
98
98
|
this.emit("<!-- v4.2 Domain Blocks -->");
|
|
99
|
-
const compiled =
|
|
99
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
100
100
|
domainBlocks,
|
|
101
101
|
{
|
|
102
102
|
material: (block) => {
|
|
103
|
-
const mat =
|
|
104
|
-
return
|
|
103
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
104
|
+
return chunkHKEXJUWS_cjs.materialToSDF(mat);
|
|
105
105
|
},
|
|
106
106
|
physics: (block) => {
|
|
107
|
-
const phys =
|
|
108
|
-
return
|
|
107
|
+
const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
108
|
+
return chunkHKEXJUWS_cjs.physicsToSDF(phys);
|
|
109
109
|
},
|
|
110
110
|
audio: (block) => {
|
|
111
|
-
const audio =
|
|
111
|
+
const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
112
112
|
return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" -->`;
|
|
113
113
|
},
|
|
114
114
|
weather: (block) => {
|
|
115
|
-
const weather =
|
|
115
|
+
const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
116
116
|
const layers = weather.layers.map((l) => `<!-- ${l.type}: ${JSON.stringify(l.properties)} -->`).join("\n");
|
|
117
117
|
return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" -->
|
|
118
118
|
${layers}`;
|
|
@@ -607,5 +607,5 @@ ${layers}`;
|
|
|
607
607
|
|
|
608
608
|
exports.SDFCompiler_exports = SDFCompiler_exports;
|
|
609
609
|
exports.init_SDFCompiler = init_SDFCompiler;
|
|
610
|
-
//# sourceMappingURL=chunk-
|
|
611
|
-
//# sourceMappingURL=chunk-
|
|
610
|
+
//# sourceMappingURL=chunk-IWC5DM2M.cjs.map
|
|
611
|
+
//# sourceMappingURL=chunk-IWC5DM2M.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
|
|
2
2
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
3
3
|
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GZG4KA4E.js';
|
|
4
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToBabylon, compilePostProcessingBlock, postProcessingToBabylon, compileParticleBlock, particlesToBabylon, compilePhysicsBlock, physicsToBabylon, compileMaterialBlock, materialToBabylon } from './chunk-
|
|
4
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToBabylon, compilePostProcessingBlock, postProcessingToBabylon, compileParticleBlock, particlesToBabylon, compilePhysicsBlock, physicsToBabylon, compileMaterialBlock, materialToBabylon } from './chunk-BOVPWH4H.js';
|
|
5
5
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
6
6
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
7
7
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -840,5 +840,5 @@ ${layers}`;
|
|
|
840
840
|
});
|
|
841
841
|
|
|
842
842
|
export { BabylonCompiler, BabylonCompiler_exports, init_BabylonCompiler };
|
|
843
|
-
//# sourceMappingURL=chunk-
|
|
844
|
-
//# sourceMappingURL=chunk-
|
|
843
|
+
//# sourceMappingURL=chunk-J7XZV333.js.map
|
|
844
|
+
//# sourceMappingURL=chunk-J7XZV333.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
5
5
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -1701,7 +1701,7 @@ var init_VisionOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
1701
1701
|
init_VisionOSTraitMap();
|
|
1702
1702
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
1703
1703
|
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
1704
|
-
|
|
1704
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
1705
1705
|
exports.VisionOSCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
1706
1706
|
constructor(options = {}) {
|
|
1707
1707
|
super();
|
|
@@ -1840,31 +1840,31 @@ var init_VisionOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
1840
1840
|
this.emit("");
|
|
1841
1841
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
1842
1842
|
let blockIdx = 0;
|
|
1843
|
-
const compiled =
|
|
1843
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
1844
1844
|
domainBlocks,
|
|
1845
1845
|
{
|
|
1846
1846
|
material: (block) => {
|
|
1847
|
-
const mat =
|
|
1848
|
-
return
|
|
1847
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
1848
|
+
return chunkHKEXJUWS_cjs.materialToVisionOS(mat, `db${blockIdx++}`);
|
|
1849
1849
|
},
|
|
1850
1850
|
physics: (block) => {
|
|
1851
|
-
const phys =
|
|
1852
|
-
return
|
|
1851
|
+
const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
1852
|
+
return chunkHKEXJUWS_cjs.physicsToVisionOS(phys, `db${blockIdx++}`);
|
|
1853
1853
|
},
|
|
1854
1854
|
vfx: (block) => {
|
|
1855
|
-
const ps =
|
|
1856
|
-
return
|
|
1855
|
+
const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
|
|
1856
|
+
return chunkHKEXJUWS_cjs.particlesToVisionOS(ps, `db${blockIdx++}`);
|
|
1857
1857
|
},
|
|
1858
1858
|
postfx: (block) => {
|
|
1859
|
-
const pp =
|
|
1859
|
+
const pp = chunkHKEXJUWS_cjs.compilePostProcessingBlock(block);
|
|
1860
1860
|
return `// Post-Processing: ${pp.keyword} \u2014 configure via RealityKit RenderCallbacks`;
|
|
1861
1861
|
},
|
|
1862
1862
|
audio: (block) => {
|
|
1863
|
-
const audio =
|
|
1864
|
-
return
|
|
1863
|
+
const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
1864
|
+
return chunkHKEXJUWS_cjs.audioSourceToVisionOS(audio, `db${blockIdx++}`);
|
|
1865
1865
|
},
|
|
1866
1866
|
weather: (block) => {
|
|
1867
|
-
const weather =
|
|
1867
|
+
const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
1868
1868
|
const w = weather;
|
|
1869
1869
|
const layers = w.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
|
|
1870
1870
|
return `// Weather: ${w.keyword} "${w.name || ""}" \u2014 implement via custom RealityKit particles
|
|
@@ -2429,5 +2429,5 @@ exports.getTraitMapping = getTraitMapping;
|
|
|
2429
2429
|
exports.init_VisionOSCompiler = init_VisionOSCompiler;
|
|
2430
2430
|
exports.init_VisionOSTraitMap = init_VisionOSTraitMap;
|
|
2431
2431
|
exports.listAllTraits = listAllTraits;
|
|
2432
|
-
//# sourceMappingURL=chunk-
|
|
2433
|
-
//# sourceMappingURL=chunk-
|
|
2432
|
+
//# sourceMappingURL=chunk-JBNDTXXV.cjs.map
|
|
2433
|
+
//# sourceMappingURL=chunk-JBNDTXXV.cjs.map
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { ReactiveState, ExpressionEvaluator, createState } from './chunk-XL6INWKT.js';
|
|
2
|
-
import { getSharedEventBus, telemetry } from './chunk-
|
|
2
|
+
import { lazyPeerSymbol, definePeerNamespace, getSharedEventBus, telemetry } from './chunk-IELX2OKI.js';
|
|
3
3
|
import { HoloScriptCodeParser } from './chunk-URG2SJLK.js';
|
|
4
4
|
import { JEPAPredictor, jepObjectiveHandler, mitosisHandler, orbitalHandler } from './chunk-H652NHX5.js';
|
|
5
5
|
import { logger } from './chunk-PHENW4MQ.js';
|
|
6
6
|
import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
|
|
7
7
|
import { WebSocketServer, WebSocket } from 'ws';
|
|
8
|
-
import { AttentionEngine, TimeManager } from '@holoscript/engine/orbital';
|
|
9
8
|
import { StateSynchronizer } from '@holoscript/mesh';
|
|
10
|
-
import * as engineRuntime from '@holoscript/engine/runtime';
|
|
11
9
|
import { MemoryConsolidator } from '@holoscript/framework/learning';
|
|
12
10
|
|
|
13
11
|
// src/HoloScriptRuntime.ts
|
|
@@ -3006,6 +3004,17 @@ var ExtensionRegistry = class {
|
|
|
3006
3004
|
};
|
|
3007
3005
|
|
|
3008
3006
|
// src/HoloScriptRuntime.ts
|
|
3007
|
+
var TimeManager = lazyPeerSymbol(
|
|
3008
|
+
"@holoscript/engine/orbital",
|
|
3009
|
+
"TimeManager"
|
|
3010
|
+
);
|
|
3011
|
+
var AttentionEngine = lazyPeerSymbol(
|
|
3012
|
+
"@holoscript/engine/orbital",
|
|
3013
|
+
"AttentionEngine"
|
|
3014
|
+
);
|
|
3015
|
+
var engineRuntime = definePeerNamespace(
|
|
3016
|
+
"@holoscript/engine/runtime"
|
|
3017
|
+
);
|
|
3009
3018
|
var RUNTIME_SECURITY_LIMITS = {
|
|
3010
3019
|
maxExecutionDepth: 50,
|
|
3011
3020
|
maxTotalNodes: 1e3,
|
|
@@ -4283,5 +4292,5 @@ var HoloScriptRuntime = class {
|
|
|
4283
4292
|
};
|
|
4284
4293
|
|
|
4285
4294
|
export { HoloScriptAgentRuntime, HoloScriptRuntime };
|
|
4286
|
-
//# sourceMappingURL=chunk-
|
|
4287
|
-
//# sourceMappingURL=chunk-
|
|
4295
|
+
//# sourceMappingURL=chunk-KFIXE2MB.js.map
|
|
4296
|
+
//# sourceMappingURL=chunk-KFIXE2MB.js.map
|
|
@@ -435,7 +435,7 @@ function uint8ArrayToBase64(data) {
|
|
|
435
435
|
return btoa(binary);
|
|
436
436
|
}
|
|
437
437
|
async function importGLTFPipeline() {
|
|
438
|
-
return import('./GLTFPipeline-
|
|
438
|
+
return import('./GLTFPipeline-ES5YMBGT.js');
|
|
439
439
|
}
|
|
440
440
|
function registerGLTFTools(server) {
|
|
441
441
|
for (const tool of GLTF_PIPELINE_TOOLS) {
|
|
@@ -445,5 +445,5 @@ function registerGLTFTools(server) {
|
|
|
445
445
|
var GLTFPipelineMCPTool_default = handleGLTFToolCall;
|
|
446
446
|
|
|
447
447
|
export { GLTFPipelineMCPTool_default, GLTF_PIPELINE_TOOLS, analyzeOptimizations, handleGLTFToolCall, inspectComposition, registerGLTFTools, validateForGLTF };
|
|
448
|
-
//# sourceMappingURL=chunk-
|
|
449
|
-
//# sourceMappingURL=chunk-
|
|
448
|
+
//# sourceMappingURL=chunk-LCEXRE5Z.js.map
|
|
449
|
+
//# sourceMappingURL=chunk-LCEXRE5Z.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUSD, compileAudioSourceBlock, audioSourceToUSD, compilePostProcessingBlock, postProcessingToUSD, compileParticleBlock, particlesToUSD, compilePhysicsBlock, physicsToURDF, compileMaterialBlock, materialToUSD } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUSD, compileAudioSourceBlock, audioSourceToUSD, compilePostProcessingBlock, postProcessingToUSD, compileParticleBlock, particlesToUSD, compilePhysicsBlock, physicsToURDF, compileMaterialBlock, materialToUSD } from './chunk-BOVPWH4H.js';
|
|
2
2
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
3
3
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
4
4
|
|
|
@@ -878,5 +878,5 @@ function compileForIsaacSim(composition, options) {
|
|
|
878
878
|
}
|
|
879
879
|
|
|
880
880
|
export { USDPhysicsCompiler, compileForIsaacSim, compileToUSDPhysics };
|
|
881
|
-
//# sourceMappingURL=chunk-
|
|
882
|
-
//# sourceMappingURL=chunk-
|
|
881
|
+
//# sourceMappingURL=chunk-LHAXPADA.js.map
|
|
882
|
+
//# sourceMappingURL=chunk-LHAXPADA.js.map
|