@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToVRChat, compileInputBlock, navigationToVRChat, compileNavigationBlock, renderingToVRChat, compileRenderingBlock, proceduralToVRChat, compileProceduralBlock, web3ToVRChat, compileWeb3Block, architectureToVRChat, compileArchitectureBlock, musicToVRChat, compileMusicBlock, educationToVRChat, compileEducationBlock, datavizToVRChat, compileDataVizBlock, iotToVRChat, compileIoTBlock, compileRoboticsBlock, roboticsToVRChat, compileHealthcareBlock, healthcareToVRChat, compilePaymentBlock, paymentToVRChat, compileNarrativeBlock, narrativeToVRChat, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToVRChat } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToVRChat, compileInputBlock, navigationToVRChat, compileNavigationBlock, renderingToVRChat, compileRenderingBlock, proceduralToVRChat, compileProceduralBlock, web3ToVRChat, compileWeb3Block, architectureToVRChat, compileArchitectureBlock, musicToVRChat, compileMusicBlock, educationToVRChat, compileEducationBlock, datavizToVRChat, compileDataVizBlock, iotToVRChat, compileIoTBlock, compileRoboticsBlock, roboticsToVRChat, compileHealthcareBlock, healthcareToVRChat, compilePaymentBlock, paymentToVRChat, compileNarrativeBlock, narrativeToVRChat, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToVRChat } from './chunk-BOVPWH4H.js';
|
|
2
2
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
3
3
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -619,5 +619,5 @@ var init_VRChatCompiler = __esm({
|
|
|
619
619
|
});
|
|
620
620
|
|
|
621
621
|
export { VRChatCompiler, VRChatCompiler_exports, compileToVRChat, init_VRChatCompiler };
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
623
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-UWJHCOH2.js.map
|
|
623
|
+
//# sourceMappingURL=chunk-UWJHCOH2.js.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 chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
@@ -17,7 +17,7 @@ var init_VRRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
17
17
|
"src/compiler/VRRCompiler.ts"() {
|
|
18
18
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
19
19
|
chunkE7JP3BS3_cjs.init_safeJsonParse();
|
|
20
|
-
|
|
20
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
21
21
|
VRRTraitDefs = {
|
|
22
22
|
vrr_twin: { validator: (p) => !!p.mirror },
|
|
23
23
|
reality_mirror: { validator: (p) => Array.isArray(p.sync) && p.sync.length > 0 },
|
|
@@ -619,28 +619,28 @@ var init_VRRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
619
619
|
const domainBlocks = Array.isArray(comp.domainBlocks) ? comp.domainBlocks : [];
|
|
620
620
|
if (domainBlocks.length > 0) {
|
|
621
621
|
this.generatedCode.push("\n// === v4.2 Domain Blocks ===");
|
|
622
|
-
const compiled =
|
|
622
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
623
623
|
// @ts-expect-error During migration
|
|
624
624
|
domainBlocks,
|
|
625
625
|
{
|
|
626
626
|
material: (block) => {
|
|
627
|
-
const m =
|
|
627
|
+
const m = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
628
628
|
return `// VRR Material: "${this.escapeStringValue(m.name, "TypeScript")}" type=${m.type} baseColor=${m.baseColor || "none"}`;
|
|
629
629
|
},
|
|
630
630
|
physics: (block) => {
|
|
631
|
-
const p =
|
|
631
|
+
const p = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
632
632
|
return `// VRR Physics: ${p.keyword} "${p.name || ""}" colliders=${p.colliders?.length || 0}`;
|
|
633
633
|
},
|
|
634
634
|
vfx: (block) => {
|
|
635
|
-
const ps =
|
|
635
|
+
const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
|
|
636
636
|
return `// VRR Particles: "${this.escapeStringValue(ps.name, "TypeScript")}" rate=${ps.properties.rate || "default"}`;
|
|
637
637
|
},
|
|
638
638
|
audio: (block) => {
|
|
639
|
-
const a =
|
|
639
|
+
const a = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
640
640
|
return `// VRR Audio: "${this.escapeStringValue(a.name, "TypeScript")}" clip=${a.properties.clip || "none"}`;
|
|
641
641
|
},
|
|
642
642
|
weather: (block) => {
|
|
643
|
-
const w =
|
|
643
|
+
const w = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
644
644
|
return `// VRR Weather: ${w.keyword} layers=[${w.layers.map((l) => l.type).join(", ")}]`;
|
|
645
645
|
}
|
|
646
646
|
},
|
|
@@ -810,5 +810,5 @@ const ${twinName} = new THREE.Group();`);
|
|
|
810
810
|
|
|
811
811
|
exports.VRRCompiler_exports = VRRCompiler_exports;
|
|
812
812
|
exports.init_VRRCompiler = init_VRRCompiler;
|
|
813
|
-
//# sourceMappingURL=chunk-
|
|
814
|
-
//# sourceMappingURL=chunk-
|
|
813
|
+
//# sourceMappingURL=chunk-XB274MW5.cjs.map
|
|
814
|
+
//# sourceMappingURL=chunk-XB274MW5.cjs.map
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var module$1 = require('module');
|
|
4
|
+
|
|
5
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
1
6
|
// src/events/EventBus.ts
|
|
2
7
|
var EventBus = class {
|
|
3
8
|
constructor() {
|
|
@@ -201,7 +206,126 @@ var TelemetryRegistry = class {
|
|
|
201
206
|
}
|
|
202
207
|
};
|
|
203
208
|
var telemetry = new TelemetryRegistry();
|
|
209
|
+
var _requirePeer;
|
|
210
|
+
function requirePeer(specifier) {
|
|
211
|
+
if (!_requirePeer) {
|
|
212
|
+
if (typeof module$1.createRequire !== "function") {
|
|
213
|
+
throw new Error(
|
|
214
|
+
"@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."
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
_requirePeer = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-YDPEHCCI.cjs', document.baseURI).href)));
|
|
218
|
+
}
|
|
219
|
+
return _requirePeer(specifier);
|
|
220
|
+
}
|
|
221
|
+
var peerCache = /* @__PURE__ */ new Map();
|
|
222
|
+
function loadPeer(specifier) {
|
|
223
|
+
const cached = peerCache.get(specifier);
|
|
224
|
+
if (cached) return cached;
|
|
225
|
+
let mod;
|
|
226
|
+
try {
|
|
227
|
+
mod = requirePeer(specifier);
|
|
228
|
+
} catch (err) {
|
|
229
|
+
const e = err;
|
|
230
|
+
const pkg = specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
|
|
231
|
+
if (e && (e.code === "ERR_MODULE_NOT_FOUND" || e.code === "MODULE_NOT_FOUND")) {
|
|
232
|
+
throw new Error(
|
|
233
|
+
`@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.`
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
throw err;
|
|
237
|
+
}
|
|
238
|
+
peerCache.set(specifier, mod);
|
|
239
|
+
return mod;
|
|
240
|
+
}
|
|
241
|
+
function resolveSymbol(specifier, name) {
|
|
242
|
+
const mod = loadPeer(specifier);
|
|
243
|
+
if (!(name in mod)) {
|
|
244
|
+
const pkg = specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
|
|
245
|
+
throw new Error(
|
|
246
|
+
`@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.`
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
return mod[name];
|
|
250
|
+
}
|
|
251
|
+
function lazyPeerSymbol(specifier, name) {
|
|
252
|
+
const target = function lazyPeerProxyTarget() {
|
|
253
|
+
};
|
|
254
|
+
let resolved;
|
|
255
|
+
const real = () => {
|
|
256
|
+
if (resolved === void 0) resolved = resolveSymbol(specifier, name);
|
|
257
|
+
return resolved;
|
|
258
|
+
};
|
|
259
|
+
const tryReal = () => {
|
|
260
|
+
try {
|
|
261
|
+
return real();
|
|
262
|
+
} catch {
|
|
263
|
+
return void 0;
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
return new Proxy(target, {
|
|
267
|
+
apply(_t, thisArg, args) {
|
|
268
|
+
return Reflect.apply(real(), thisArg, args);
|
|
269
|
+
},
|
|
270
|
+
construct(_t, args, newTarget) {
|
|
271
|
+
return Reflect.construct(real(), args, newTarget);
|
|
272
|
+
},
|
|
273
|
+
get(_t, prop) {
|
|
274
|
+
const r = tryReal();
|
|
275
|
+
if (r == null) return Reflect.get(_t, prop);
|
|
276
|
+
const v = Reflect.get(r, prop, r);
|
|
277
|
+
return typeof v === "function" ? v.bind(r) : v;
|
|
278
|
+
},
|
|
279
|
+
has(_t, prop) {
|
|
280
|
+
const r = tryReal();
|
|
281
|
+
return Reflect.has(r ?? _t, prop);
|
|
282
|
+
},
|
|
283
|
+
getPrototypeOf(_t) {
|
|
284
|
+
const r = tryReal();
|
|
285
|
+
return Reflect.getPrototypeOf(r ?? _t);
|
|
286
|
+
},
|
|
287
|
+
// ownKeys / getOwnPropertyDescriptor MUST satisfy Proxy invariants (the
|
|
288
|
+
// function target has a non-configurable `prototype` key), so on resolution
|
|
289
|
+
// failure delegate to the TARGET — never return [] / undefined, which throws.
|
|
290
|
+
ownKeys(_t) {
|
|
291
|
+
const r = tryReal();
|
|
292
|
+
return Reflect.ownKeys(r ?? _t);
|
|
293
|
+
},
|
|
294
|
+
getOwnPropertyDescriptor(_t, prop) {
|
|
295
|
+
const r = tryReal();
|
|
296
|
+
return Reflect.getOwnPropertyDescriptor(r ?? _t, prop);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
function definePeerNamespace(specifier) {
|
|
301
|
+
return new Proxy(
|
|
302
|
+
{},
|
|
303
|
+
{
|
|
304
|
+
get(_t, prop) {
|
|
305
|
+
if (typeof prop !== "string") return void 0;
|
|
306
|
+
return loadPeer(specifier)[prop];
|
|
307
|
+
},
|
|
308
|
+
has(_t, prop) {
|
|
309
|
+
return typeof prop === "string" && prop in loadPeer(specifier);
|
|
310
|
+
},
|
|
311
|
+
ownKeys() {
|
|
312
|
+
return Reflect.ownKeys(loadPeer(specifier));
|
|
313
|
+
},
|
|
314
|
+
getOwnPropertyDescriptor(_t, prop) {
|
|
315
|
+
if (typeof prop !== "string") return void 0;
|
|
316
|
+
const mod = loadPeer(specifier);
|
|
317
|
+
if (!(prop in mod)) return void 0;
|
|
318
|
+
return { enumerable: true, configurable: true, value: mod[prop] };
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
}
|
|
204
323
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
324
|
+
exports.EventBus = EventBus;
|
|
325
|
+
exports.definePeerNamespace = definePeerNamespace;
|
|
326
|
+
exports.getSharedEventBus = getSharedEventBus;
|
|
327
|
+
exports.lazyPeerSymbol = lazyPeerSymbol;
|
|
328
|
+
exports.setSharedEventBus = setSharedEventBus;
|
|
329
|
+
exports.telemetry = telemetry;
|
|
330
|
+
//# sourceMappingURL=chunk-YDPEHCCI.cjs.map
|
|
331
|
+
//# sourceMappingURL=chunk-YDPEHCCI.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_AndroidKotlinHelpers, sanitizeName, toKotlinFloat3, toKotlinColor, mapShapeToFilament, toKotlinType, toKotlinValue, findObjProp, compositionUsesArCoreDepthTraits } from './chunk-FDSGHPAK.js';
|
|
2
2
|
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-GZG4KA4E.js';
|
|
3
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToAndroidXR, compileAudioSourceBlock, audioSourceToAndroidXR, compilePostProcessingBlock, compileParticleBlock, particlesToAndroidXR, compilePhysicsBlock, physicsToAndroidXR, compileMaterialBlock, materialToAndroidXR } from './chunk-
|
|
3
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToAndroidXR, compileAudioSourceBlock, audioSourceToAndroidXR, compilePostProcessingBlock, compileParticleBlock, particlesToAndroidXR, compilePhysicsBlock, physicsToAndroidXR, compileMaterialBlock, materialToAndroidXR } from './chunk-BOVPWH4H.js';
|
|
4
4
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
5
5
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
6
6
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -5727,5 +5727,5 @@ var init_AndroidXRCompiler = __esm({
|
|
|
5727
5727
|
});
|
|
5728
5728
|
|
|
5729
5729
|
export { ANDROIDXR_TRAIT_MAP, AndroidXRCompiler, AndroidXRCompiler_exports, compileToAndroidXR, getTraitMapping, init_AndroidXRCompiler, init_AndroidXRTraitMap };
|
|
5730
|
-
//# sourceMappingURL=chunk-
|
|
5731
|
-
//# sourceMappingURL=chunk-
|
|
5730
|
+
//# sourceMappingURL=chunk-YN2YWTXW.js.map
|
|
5731
|
+
//# sourceMappingURL=chunk-YN2YWTXW.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock } from './chunk-BOVPWH4H.js';
|
|
2
2
|
import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
3
3
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -1179,5 +1179,5 @@ var init_WASMCompiler = __esm({
|
|
|
1179
1179
|
});
|
|
1180
1180
|
|
|
1181
1181
|
export { WASMCompiler, WASMCompiler_default, WASMCompiler_exports, compileASTToWASM, compileToWASM, createWASMCompiler, init_WASMCompiler };
|
|
1182
|
-
//# sourceMappingURL=chunk-
|
|
1183
|
-
//# sourceMappingURL=chunk-
|
|
1182
|
+
//# sourceMappingURL=chunk-YVD3CSO3.js.map
|
|
1183
|
+
//# sourceMappingURL=chunk-YVD3CSO3.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.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');
|
|
@@ -16,7 +16,7 @@ var init_PlayCanvasCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
16
16
|
"src/compiler/PlayCanvasCompiler.ts"() {
|
|
17
17
|
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
18
18
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
19
|
-
|
|
19
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
20
20
|
SHAPE_TO_PRIMITIVE = {
|
|
21
21
|
sphere: "sphere",
|
|
22
22
|
orb: "sphere",
|
|
@@ -146,33 +146,33 @@ var init_PlayCanvasCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
146
146
|
this.emit("");
|
|
147
147
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
148
148
|
let blockIdx = 0;
|
|
149
|
-
const compiled =
|
|
149
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
150
150
|
// @ts-expect-error During migration
|
|
151
151
|
domainBlocks,
|
|
152
152
|
{
|
|
153
153
|
material: (block) => {
|
|
154
|
-
const mat =
|
|
155
|
-
return
|
|
154
|
+
const mat = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
155
|
+
return chunkHKEXJUWS_cjs.materialToPlayCanvas(mat, `db${blockIdx++}`);
|
|
156
156
|
},
|
|
157
157
|
physics: (block) => {
|
|
158
|
-
const phys =
|
|
159
|
-
return
|
|
158
|
+
const phys = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
159
|
+
return chunkHKEXJUWS_cjs.physicsToPlayCanvas(phys, `db${blockIdx++}`);
|
|
160
160
|
},
|
|
161
161
|
vfx: (block) => {
|
|
162
|
-
const ps =
|
|
163
|
-
return
|
|
162
|
+
const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
|
|
163
|
+
return chunkHKEXJUWS_cjs.particlesToPlayCanvas(ps, `db${blockIdx++}`);
|
|
164
164
|
},
|
|
165
165
|
postfx: (block) => {
|
|
166
|
-
const pp =
|
|
166
|
+
const pp = chunkHKEXJUWS_cjs.compilePostProcessingBlock(block);
|
|
167
167
|
return `// Post-Processing: ${pp.keyword} \u2014 configure via PlayCanvas PostEffects
|
|
168
168
|
` + pp.effects.map((e) => `// Effect: ${e.type} \u2014 ${JSON.stringify(e.properties)}`).join("\n");
|
|
169
169
|
},
|
|
170
170
|
audio: (block) => {
|
|
171
|
-
const audio =
|
|
172
|
-
return
|
|
171
|
+
const audio = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
172
|
+
return chunkHKEXJUWS_cjs.audioSourceToPlayCanvas(audio, `db${blockIdx++}`);
|
|
173
173
|
},
|
|
174
174
|
weather: (block) => {
|
|
175
|
-
const weather =
|
|
175
|
+
const weather = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
176
176
|
return `// Weather: ${weather.keyword} "${weather.name || ""}" \u2014 implement via PlayCanvas particle system
|
|
177
177
|
` + weather.layers.map((l) => `// Layer: ${l.type} \u2014 ${JSON.stringify(l.properties)}`).join("\n");
|
|
178
178
|
}
|
|
@@ -755,5 +755,5 @@ var init_PlayCanvasCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
755
755
|
|
|
756
756
|
exports.PlayCanvasCompiler_exports = PlayCanvasCompiler_exports;
|
|
757
757
|
exports.init_PlayCanvasCompiler = init_PlayCanvasCompiler;
|
|
758
|
-
//# sourceMappingURL=chunk-
|
|
759
|
-
//# sourceMappingURL=chunk-
|
|
758
|
+
//# sourceMappingURL=chunk-YWOBW2PV.cjs.map
|
|
759
|
+
//# sourceMappingURL=chunk-YWOBW2PV.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from './chunk-EKBKLK7P.js';
|
|
2
|
-
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-
|
|
2
|
+
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-FS7BFHFN.js';
|
|
3
3
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
4
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-
|
|
4
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-BOVPWH4H.js';
|
|
5
5
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
6
6
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
7
7
|
|
|
@@ -2248,5 +2248,5 @@ function createGLTFPipeline(options) {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
|
|
2250
2250
|
export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture };
|
|
2251
|
-
//# sourceMappingURL=chunk-
|
|
2252
|
-
//# sourceMappingURL=chunk-
|
|
2251
|
+
//# sourceMappingURL=chunk-ZPYP4RBA.js.map
|
|
2252
|
+
//# sourceMappingURL=chunk-ZPYP4RBA.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHNDK4IQU_cjs = require('../chunk-HNDK4IQU.cjs');
|
|
4
4
|
require('../chunk-FEWUHQNM.cjs');
|
|
5
5
|
require('../chunk-AIA52I7T.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-HKEXJUWS.cjs');
|
|
7
7
|
require('../chunk-KKP7JKN4.cjs');
|
|
8
8
|
require('../chunk-5FSKKMR7.cjs');
|
|
9
9
|
require('../chunk-GTU2Z2WW.cjs');
|
|
10
10
|
require('../chunk-E7JP3BS3.cjs');
|
|
11
11
|
require('../chunk-HCCQLAA4.cjs');
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
chunkHNDK4IQU_cjs.init_AndroidXRCompiler();
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "AndroidXRCompiler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHNDK4IQU_cjs.AndroidXRCompiler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "compileToAndroidXR", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHNDK4IQU_cjs.compileToAndroidXR; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=android-xr.cjs.map
|
|
24
24
|
//# sourceMappingURL=android-xr.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { init_AndroidXRCompiler } from '../chunk-
|
|
2
|
-
export { AndroidXRCompiler, compileToAndroidXR } from '../chunk-
|
|
1
|
+
import { init_AndroidXRCompiler } from '../chunk-YN2YWTXW.js';
|
|
2
|
+
export { AndroidXRCompiler, compileToAndroidXR } from '../chunk-YN2YWTXW.js';
|
|
3
3
|
import '../chunk-FDSGHPAK.js';
|
|
4
4
|
import '../chunk-GZG4KA4E.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-BOVPWH4H.js';
|
|
6
6
|
import '../chunk-QPSKHBJP.js';
|
|
7
7
|
import '../chunk-THCK6ECW.js';
|
|
8
8
|
import '../chunk-N75IH2HY.js';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkROHLEP2W_cjs = require('../chunk-ROHLEP2W.cjs');
|
|
4
4
|
require('../chunk-5S7RKFGR.cjs');
|
|
5
5
|
require('../chunk-OIQYIIO3.cjs');
|
|
6
6
|
require('../chunk-AIA52I7T.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-HKEXJUWS.cjs');
|
|
8
8
|
require('../chunk-KKP7JKN4.cjs');
|
|
9
9
|
require('../chunk-5FSKKMR7.cjs');
|
|
10
10
|
require('../chunk-GTU2Z2WW.cjs');
|
|
11
11
|
require('../chunk-E7JP3BS3.cjs');
|
|
12
12
|
require('../chunk-HCCQLAA4.cjs');
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
chunkROHLEP2W_cjs.init_BabylonCompiler();
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "BabylonCompiler", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkROHLEP2W_cjs.BabylonCompiler; }
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=babylon.cjs.map
|
|
21
21
|
//# sourceMappingURL=babylon.cjs.map
|
package/dist/compiler/babylon.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { init_BabylonCompiler } from '../chunk-
|
|
2
|
-
export { BabylonCompiler } from '../chunk-
|
|
1
|
+
import { init_BabylonCompiler } from '../chunk-J7XZV333.js';
|
|
2
|
+
export { BabylonCompiler } from '../chunk-J7XZV333.js';
|
|
3
3
|
import '../chunk-TJHVSBP2.js';
|
|
4
4
|
import '../chunk-4C57PR42.js';
|
|
5
5
|
import '../chunk-GZG4KA4E.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-BOVPWH4H.js';
|
|
7
7
|
import '../chunk-QPSKHBJP.js';
|
|
8
8
|
import '../chunk-THCK6ECW.js';
|
|
9
9
|
import '../chunk-N75IH2HY.js';
|
|
@@ -2,42 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunk7H33U5SM_cjs = require('../chunk-7H33U5SM.cjs');
|
|
6
6
|
require('../chunk-HCCQLAA4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "BUSINESS_QUEST_TOOLS", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk7H33U5SM_cjs.BUSINESS_QUEST_TOOLS; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "buildVRRCompositionFromDraft", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk7H33U5SM_cjs.buildVRRCompositionFromDraft; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "businessVRRDraftSchema", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk7H33U5SM_cjs.businessVRRDraftSchema; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "default", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk7H33U5SM_cjs.BusinessQuestTools_default; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "draftToHoloPreview", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk7H33U5SM_cjs.draftToHoloPreview; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "handleBusinessQuestToolCall", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk7H33U5SM_cjs.handleBusinessQuestToolCall; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "registerBusinessQuestTools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk7H33U5SM_cjs.registerBusinessQuestTools; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "validateBusinessVRRDraft", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk7H33U5SM_cjs.validateBusinessVRRDraft; }
|
|
41
41
|
});
|
|
42
42
|
//# sourceMappingURL=business-quest.cjs.map
|
|
43
43
|
//# sourceMappingURL=business-quest.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BUSINESS_QUEST_TOOLS, buildVRRCompositionFromDraft, businessVRRDraftSchema, BusinessQuestTools_default as default, draftToHoloPreview, handleBusinessQuestToolCall, registerBusinessQuestTools, validateBusinessVRRDraft } from '../chunk-
|
|
1
|
+
export { BUSINESS_QUEST_TOOLS, buildVRRCompositionFromDraft, businessVRRDraftSchema, BusinessQuestTools_default as default, draftToHoloPreview, handleBusinessQuestToolCall, registerBusinessQuestTools, validateBusinessVRRDraft } from '../chunk-ADADVMXY.js';
|
|
2
2
|
import '../chunk-OL46QLBJ.js';
|
|
3
3
|
//# sourceMappingURL=business-quest.js.map
|
|
4
4
|
//# sourceMappingURL=business-quest.js.map
|