@holoscript/core 6.0.3 → 6.0.4
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 +38 -38
- package/dist/GLTFPipeline-DEN36VNK.js +12 -0
- package/dist/GLTFPipeline-YPCAK236.cjs +33 -0
- package/dist/{HoloScriptPlusParser-BZR5DELQ.js → HoloScriptPlusParser-BN6KVRCM.js} +5 -5
- package/dist/{HoloScriptPlusParser-SBMYDNXO.cjs → HoloScriptPlusParser-NC5FE6AL.cjs} +16 -16
- package/dist/{USDZExporter-YA55ZS35.js → USDZExporter-NTMBNTDB.js} +3 -3
- package/dist/{USDZExporter-MHEHXZB4.cjs → USDZExporter-UWGWNMMD.cjs} +3 -3
- package/dist/{chunk-32TWR3HE.js → chunk-2CWOLHTE.js} +3 -4
- package/dist/{chunk-2UX5LRAP.cjs → chunk-33LSUQDD.cjs} +33 -31
- package/dist/{chunk-LBPEZQAF.js → chunk-3FJCK5XA.js} +7 -7
- package/dist/{chunk-EGIZHYJP.cjs → chunk-3SAK5KFL.cjs} +2 -4
- package/dist/{chunk-PJMOXFPR.cjs → chunk-4XSNJCLC.cjs} +25 -27
- package/dist/{chunk-HKCVM6OK.cjs → chunk-5BGSECRJ.cjs} +21 -21
- package/dist/{chunk-EMO7HAKJ.cjs → chunk-5O6TQC6M.cjs} +26 -30
- package/dist/{chunk-XSUZMPVQ.cjs → chunk-5OEOHAAW.cjs} +26 -26
- package/dist/{chunk-EJA7G2C4.cjs → chunk-5WUNN6ZN.cjs} +2 -2
- package/dist/{chunk-CQDOF3G7.cjs → chunk-6TZPZCOJ.cjs} +18 -18
- package/dist/{chunk-NRUB55IT.cjs → chunk-6UEHYZ7V.cjs} +18 -16
- package/dist/{chunk-V42NTCFH.js → chunk-6XSERL6L.js} +4230 -2197
- package/dist/{chunk-X4YVN7H3.cjs → chunk-72EQECGT.cjs} +37 -17
- package/dist/{chunk-4KJ2R7VP.cjs → chunk-7AGYRWKW.cjs} +19 -19
- package/dist/{chunk-UQW6SLM5.js → chunk-A7PIMZGU.js} +110 -19
- package/dist/{chunk-RT7LJRSF.cjs → chunk-ATSKSYVE.cjs} +1013 -6708
- package/dist/{chunk-WN3YF33G.cjs → chunk-B5TCIAPQ.cjs} +9 -10
- package/dist/{chunk-AIUXRS74.cjs → chunk-BF2235SI.cjs} +4275 -2242
- package/dist/{chunk-DIEDKX5B.cjs → chunk-BND3ST2K.cjs} +18 -16
- package/dist/{chunk-EPWRXL6S.js → chunk-BU7VWW2K.js} +29 -29
- package/dist/{chunk-6OQBLABR.js → chunk-BWFJEM5A.js} +368 -189
- package/dist/{chunk-ARNKA274.cjs → chunk-CAUCGUEA.cjs} +6 -6
- package/dist/{chunk-YCMQQQ5U.cjs → chunk-CBJSLA2E.cjs} +398 -219
- package/dist/{chunk-BU5ZAFMC.js → chunk-CDPGV4DN.js} +6 -7
- package/dist/{chunk-CO2VM2DK.js → chunk-CS2EMTGF.js} +10 -9
- package/dist/{chunk-AW7WAELW.js → chunk-DMG7C4H2.js} +4 -4
- package/dist/{chunk-XSF76QRU.js → chunk-DXJQDCFL.js} +3 -3
- package/dist/{chunk-4FCZDTD5.js → chunk-E3FWRT3Z.js} +7 -9
- package/dist/{chunk-KYM4XRFG.js → chunk-E3UALNFA.js} +4 -4
- package/dist/{chunk-GC3YU46J.js → chunk-EONILVMF.js} +2 -2
- package/dist/{chunk-VJVCD5T5.cjs → chunk-EQV4R3EV.cjs} +22 -22
- package/dist/{chunk-FEFHPUEM.cjs → chunk-F3HH56EB.cjs} +74 -658
- package/dist/{chunk-WYH4GVZ5.js → chunk-F4IULT7N.js} +2 -2
- package/dist/{chunk-XDXZM3ZP.cjs → chunk-FFKU7BTK.cjs} +19 -19
- package/dist/{chunk-NKRKT6V2.js → chunk-FHQVYCH2.js} +11 -10
- package/dist/{chunk-7H5UNJZD.cjs → chunk-FSF7EQVA.cjs} +11 -10
- package/dist/{chunk-KUJRR4FJ.js → chunk-G4VZTCIB.js} +9 -7
- package/dist/{chunk-A6GO3DPZ.cjs → chunk-G7CT3EMP.cjs} +4 -4
- package/dist/{chunk-EUFLX2PI.js → chunk-GGHSW2NN.js} +989 -6611
- package/dist/chunk-GVUR45UF.cjs +777 -0
- package/dist/{chunk-ODGMVILH.js → chunk-H5Z7NASB.js} +3 -3
- package/dist/{chunk-7KPI4EKH.cjs → chunk-HE7ULERA.cjs} +45 -49
- package/dist/{chunk-26TLYBFD.js → chunk-HPS76H7Q.js} +3 -3
- package/dist/{chunk-RE3OKSYF.cjs → chunk-HQUEA5R6.cjs} +6 -6
- package/dist/{chunk-ZGTGVSTZ.js → chunk-HYNTS5CP.js} +2 -2
- package/dist/{chunk-PBA6NXCT.cjs → chunk-IBDG74G2.cjs} +6 -3
- package/dist/chunk-IFNQFCTM.js +3098 -0
- package/dist/{chunk-ZL6VJ6SN.js → chunk-IWI6J7FX.js} +5 -5
- package/dist/{chunk-3KEU5QYY.cjs → chunk-K3JDKWGI.cjs} +118 -23
- package/dist/{chunk-NLPSZT4C.js → chunk-K6EKD26I.js} +6 -6
- package/dist/chunk-KCQ5NDYC.cjs +3172 -0
- package/dist/{chunk-ELLQPFAF.js → chunk-KED34ILP.js} +11 -9
- package/dist/{chunk-BY3B7ZYV.cjs → chunk-KSGXLT74.cjs} +3 -3
- package/dist/{chunk-65RFOWZI.js → chunk-L4G4RLXX.js} +9 -7
- package/dist/{chunk-4SMUJFHL.js → chunk-LDP5OK6G.js} +6 -3
- package/dist/{chunk-VZNKJZTT.cjs → chunk-LGGRPKTV.cjs} +82 -96
- package/dist/{chunk-C2QHVHZF.js → chunk-LSW7P7ML.js} +23 -414
- package/dist/{chunk-HHS6FMOU.cjs → chunk-LXJ4667L.cjs} +83 -22
- package/dist/{chunk-H6WMMLQK.cjs → chunk-LZ266PCM.cjs} +20 -13
- package/dist/{chunk-V2ILLPHK.cjs → chunk-MD6KDHVE.cjs} +10 -10
- package/dist/{chunk-6WNCRE6F.js → chunk-MEASWI2Y.js} +5 -5
- package/dist/chunk-MPXBVFHQ.js +768 -0
- package/dist/{chunk-WUXIRGZP.cjs → chunk-NCUKG4SK.cjs} +304 -144
- package/dist/chunk-NDQNIJEH.js +1715 -0
- package/dist/{chunk-Y5MUAYTO.js → chunk-NOZZ46QU.js} +9 -8
- package/dist/{chunk-F5LVGHNT.js → chunk-OFKWH2IP.js} +3 -3
- package/dist/{chunk-SPDELRRV.cjs → chunk-PMGODDJA.cjs} +12 -12
- package/dist/{chunk-I3XGTIHM.cjs → chunk-Q4QX3AET.cjs} +2 -2
- package/dist/{chunk-Y7VK5TH3.cjs → chunk-Q5JT3YML.cjs} +10 -10
- package/dist/{chunk-TSWTWZ42.cjs → chunk-Q5SJOGHQ.cjs} +247 -205
- package/dist/{chunk-M6FU6S22.js → chunk-QGKNANZ3.js} +251 -91
- package/dist/{chunk-WFJIDI2N.cjs → chunk-QLEAOI3Q.cjs} +10 -10
- package/dist/{chunk-VK5AXKO3.js → chunk-R7MA7QWV.js} +70 -84
- package/dist/{chunk-W76ETJTI.js → chunk-RVYPEYPX.js} +6 -6
- package/dist/{chunk-MWEFR6YQ.js → chunk-S2N5TNMA.js} +7 -9
- package/dist/{chunk-NCUHGRTZ.js → chunk-S565K7NK.js} +7 -7
- package/dist/{chunk-AC4BSHFV.js → chunk-SDAMZIRE.js} +5 -5
- package/dist/{chunk-HBZYCASG.js → chunk-T36DDXSF.js} +75 -33
- package/dist/{chunk-BO2OKHIY.js → chunk-T4NKMBDL.js} +30 -611
- package/dist/{chunk-7X2IEJIE.cjs → chunk-T7LEXZUZ.cjs} +29 -29
- package/dist/{chunk-HUFNKFA6.js → chunk-TEWCN33Y.js} +8 -12
- package/dist/{chunk-L3Z2HIWJ.cjs → chunk-TQSZUOW5.cjs} +2 -2
- package/dist/chunk-TSH3MSQU.cjs +129 -0
- package/dist/{chunk-PLMYCCA4.js → chunk-UERJ3YJV.js} +6 -6
- package/dist/{chunk-7N3JIJMT.js → chunk-UPJBDCVF.js} +6 -6
- package/dist/{chunk-CMYAWUX3.js → chunk-V3NN3HPP.js} +12 -5
- package/dist/{chunk-SUCBB66F.js → chunk-WB4Z63GG.js} +3 -3
- package/dist/{chunk-PPULB4GG.cjs → chunk-WDW67DZB.cjs} +68 -68
- package/dist/chunk-WGMEAYBG.js +126 -0
- package/dist/{chunk-VSXOIUCF.cjs → chunk-X4ZF6CNE.cjs} +7 -7
- package/dist/{chunk-HF4OFY25.cjs → chunk-X6SEAXAX.cjs} +29 -445
- package/dist/{chunk-C7BNX4XJ.js → chunk-XCWFGZAA.js} +6 -6
- package/dist/{chunk-CNVM7J3M.js → chunk-XD6IYDUX.js} +34 -14
- package/dist/chunk-XG23EUQX.cjs +1717 -0
- package/dist/{chunk-DN7UFU63.cjs → chunk-XRKWN5PL.cjs} +12 -11
- package/dist/{chunk-XNMEH2BI.js → chunk-XUTX5CBW.js} +3 -3
- package/dist/{chunk-PQLGZKMC.cjs → chunk-XWPNTWDN.cjs} +26 -26
- package/dist/{chunk-NTMZSDXM.cjs → chunk-XXINBTZK.cjs} +43 -43
- package/dist/{chunk-74YCHHTE.js → chunk-YCXFCXDS.js} +8 -12
- package/dist/{chunk-KDB6BUMB.js → chunk-YQK5JNFK.js} +77 -18
- package/dist/{chunk-DH5G2JUA.cjs → chunk-Z34RLXRA.cjs} +44 -46
- package/dist/{chunk-XH7SE4HH.cjs → chunk-ZP4D3CSX.cjs} +19 -19
- package/dist/cli/holoscript-runner.cjs +33 -32
- package/dist/cli/holoscript-runner.js +13 -12
- package/dist/codebase/index.cjs +1 -1
- package/dist/codebase/index.d.ts +25 -0
- package/dist/codebase/index.js +1 -1
- package/dist/compiler/agent-inference.cjs +7 -8
- package/dist/compiler/agent-inference.js +3 -4
- package/dist/compiler/android-xr.cjs +7 -8
- package/dist/compiler/android-xr.js +5 -6
- package/dist/compiler/android.cjs +8 -9
- package/dist/compiler/android.js +6 -7
- package/dist/compiler/ar.cjs +6 -7
- package/dist/compiler/ar.js +4 -5
- package/dist/compiler/babylon.cjs +8 -9
- package/dist/compiler/babylon.js +7 -8
- package/dist/compiler/coco.cjs +1 -1
- package/dist/compiler/coco.js +1 -1
- package/dist/compiler/domain-block-utils.cjs +158 -151
- package/dist/compiler/domain-block-utils.js +4 -5
- package/dist/compiler/dtdl.cjs +7 -8
- package/dist/compiler/dtdl.js +4 -5
- package/dist/compiler/gltf-pipeline.cjs +9 -9
- package/dist/compiler/gltf-pipeline.js +2 -2
- package/dist/compiler/godot.cjs +6 -7
- package/dist/compiler/godot.js +5 -6
- package/dist/compiler/incremental.cjs +7 -8
- package/dist/compiler/incremental.js +2 -3
- package/dist/compiler/index.cjs +1934 -878
- package/dist/compiler/index.js +1904 -842
- package/dist/compiler/ios.cjs +8 -9
- package/dist/compiler/ios.js +6 -7
- package/dist/compiler/multi-layer.cjs +10 -17
- package/dist/compiler/multi-layer.js +9 -10
- package/dist/compiler/nodetoy.cjs +1 -1
- package/dist/compiler/nodetoy.js +1 -1
- package/dist/compiler/openxr.cjs +6 -7
- package/dist/compiler/openxr.js +5 -6
- package/dist/compiler/playcanvas.cjs +7 -8
- package/dist/compiler/playcanvas.js +6 -7
- package/dist/compiler/r3f.cjs +13 -14
- package/dist/compiler/r3f.js +8 -9
- package/dist/compiler/remotion.cjs +1 -1
- package/dist/compiler/remotion.js +1 -1
- package/dist/compiler/reproducibility.cjs +1 -1
- package/dist/compiler/reproducibility.js +1 -1
- package/dist/compiler/sdf.cjs +7 -8
- package/dist/compiler/sdf.js +5 -6
- package/dist/compiler/semantic-scene.cjs +7 -7
- package/dist/compiler/semantic-scene.js +2 -2
- package/dist/compiler/state.cjs +5 -6
- package/dist/compiler/state.js +3 -4
- package/dist/compiler/trait-composition.cjs +7 -8
- package/dist/compiler/trait-composition.js +3 -4
- package/dist/compiler/unity.cjs +6 -7
- package/dist/compiler/unity.js +5 -6
- package/dist/compiler/unreal.cjs +7 -8
- package/dist/compiler/unreal.js +5 -6
- package/dist/compiler/urdf.cjs +13 -14
- package/dist/compiler/urdf.js +5 -6
- package/dist/compiler/usd-physics.cjs +7 -8
- package/dist/compiler/usd-physics.js +4 -5
- package/dist/compiler/visionos.cjs +6 -7
- package/dist/compiler/visionos.js +5 -6
- package/dist/compiler/vrchat.cjs +7 -8
- package/dist/compiler/vrchat.js +5 -6
- package/dist/compiler/vrr.cjs +7 -8
- package/dist/compiler/vrr.js +5 -6
- package/dist/compiler/wasm.cjs +10 -11
- package/dist/compiler/wasm.js +5 -6
- package/dist/compiler/webgpu.cjs +6 -7
- package/dist/compiler/webgpu.js +5 -6
- package/dist/constants.d.ts +3 -0
- package/dist/debugger.cjs +7 -7
- package/dist/debugger.js +5 -5
- package/dist/entries/interop.cjs +1 -1
- package/dist/entries/interop.d.ts +9 -0
- package/dist/entries/interop.js +1 -1
- package/dist/entries/scripting.cjs +18 -17
- package/dist/entries/scripting.d.ts +7 -0
- package/dist/entries/scripting.js +8 -7
- package/dist/index.cjs +6773 -27555
- package/dist/index.d.ts +19 -0
- package/dist/index.js +5212 -26101
- package/dist/math/vec3.cjs +1 -1
- package/dist/math/vec3.js +1 -1
- package/dist/ml-dsa-PHCWUBPX.cjs +1178 -0
- package/dist/ml-dsa-WYLJHJO6.js +1178 -0
- package/dist/parser.cjs +11 -10
- package/dist/parser.js +8 -7
- package/dist/{playwright-BIZXMLD2.js → playwright-5OSAPTNH.js} +3 -3
- package/dist/{playwright-7DTEQCBD.cjs → playwright-RL6GY4F7.cjs} +1985 -1985
- package/dist/runtime.cjs +5 -5
- package/dist/runtime.js +4 -4
- package/dist/self-improvement/index.d.ts +0 -48
- package/dist/storage/index.cjs +1 -1
- package/dist/storage/index.d.ts +24 -0
- package/dist/storage/index.js +1 -1
- package/dist/tools/index.d.ts +12 -0
- package/dist/traits/index.cjs +925 -607
- package/dist/traits/index.js +137 -20
- package/dist/type-checker.cjs +4 -4
- package/dist/type-checker.js +2 -2
- package/package.json +56 -21
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-3KLWWUQO.cjs +0 -34
- package/dist/GLTFPipeline-LYII2ZVQ.js +0 -13
- package/dist/chunk-CN4NOESF.cjs +0 -416
- package/dist/chunk-DXVCEFZB.js +0 -2027
- package/dist/chunk-ENV7K6XA.js +0 -282
- package/dist/chunk-H7XMORZI.js +0 -2731
- package/dist/chunk-HAN4V3PF.cjs +0 -2037
- package/dist/chunk-LER4WXW5.cjs +0 -286
- package/dist/chunk-QHVVVN47.cjs +0 -2033
- package/dist/chunk-QWKUKVRE.js +0 -2026
- package/dist/chunk-UITWA6DV.cjs +0 -2829
- package/dist/chunk-X67XRI2T.js +0 -410
- package/dist/post-quantum-JTTAAGO3.cjs +0 -6
- package/dist/post-quantum-RVPVDEPI.js +0 -4
- package/dist/wot/index.cjs +0 -29
- package/dist/wot/index.js +0 -4
|
@@ -1484,5 +1484,5 @@ var shaderHandler = {
|
|
|
1484
1484
|
};
|
|
1485
1485
|
|
|
1486
1486
|
export { LIGHTING_PRESETS, LightingTrait, MATERIAL_PRESETS, MaterialTrait, RenderingTrait, SHADER_CHUNKS, SHADER_PRESETS, ShaderTrait, createLightingTrait, createMaterialTrait, createRenderingTrait, createShaderTrait, lightingHandler, materialHandler, renderingHandler, shaderHandler };
|
|
1487
|
-
//# sourceMappingURL=chunk-
|
|
1488
|
-
//# sourceMappingURL=chunk-
|
|
1487
|
+
//# sourceMappingURL=chunk-F4IULT7N.js.map
|
|
1488
|
+
//# sourceMappingURL=chunk-F4IULT7N.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
4
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
5
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
6
|
+
var platform = require('@holoscript/platform');
|
|
6
7
|
|
|
7
8
|
// src/compiler/OpenXRCompiler.ts
|
|
8
9
|
var OpenXRCompiler_exports = {};
|
|
9
|
-
|
|
10
|
+
chunk3SAK5KFL_cjs.__export(OpenXRCompiler_exports, {
|
|
10
11
|
OpenXRCompiler: () => exports.OpenXRCompiler
|
|
11
12
|
});
|
|
12
13
|
exports.OpenXRCompiler = void 0;
|
|
13
|
-
var init_OpenXRCompiler =
|
|
14
|
+
var init_OpenXRCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
14
15
|
"src/compiler/OpenXRCompiler.ts"() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports.OpenXRCompiler = class extends chunkQHVVVN47_cjs.CompilerBase {
|
|
16
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
17
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
18
|
+
exports.OpenXRCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
19
19
|
constructor(options = {}) {
|
|
20
20
|
super();
|
|
21
21
|
this.compilerName = "OpenXRCompiler";
|
|
@@ -30,7 +30,7 @@ var init_OpenXRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
getRequiredCapability() {
|
|
33
|
-
return
|
|
33
|
+
return platform.ANSCapabilityPath.OPENXR;
|
|
34
34
|
}
|
|
35
35
|
compile(composition, agentToken, outputPath) {
|
|
36
36
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
@@ -133,32 +133,32 @@ var init_OpenXRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
133
133
|
if (domainBlocks.length > 0) {
|
|
134
134
|
this.emit("");
|
|
135
135
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
136
|
-
const compiled =
|
|
136
|
+
const compiled = chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
137
137
|
// @ts-expect-error During migration
|
|
138
138
|
domainBlocks,
|
|
139
139
|
{
|
|
140
140
|
material: (block) => {
|
|
141
|
-
const m =
|
|
141
|
+
const m = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
142
142
|
return `// Material: "${this.escapeStringValue(m.name, "TypeScript")}" type=${m.type} baseColor=${m.baseColor || "none"} roughness=${m.roughness ?? "default"} metallic=${m.metallic ?? "default"}`;
|
|
143
143
|
},
|
|
144
144
|
physics: (block) => {
|
|
145
|
-
const p =
|
|
145
|
+
const p = chunkLXJ4667L_cjs.compilePhysicsBlock(block);
|
|
146
146
|
return `// Physics: ${p.keyword} "${p.name || ""}" colliders=${p.colliders?.length || 0} rigidbody=${!!p.rigidbody}`;
|
|
147
147
|
},
|
|
148
148
|
vfx: (block) => {
|
|
149
|
-
const ps =
|
|
149
|
+
const ps = chunkLXJ4667L_cjs.compileParticleBlock(block);
|
|
150
150
|
return `// Particles: "${this.escapeStringValue(ps.name, "TypeScript")}" rate=${ps.properties.rate || "default"} modules=${ps.modules.length}`;
|
|
151
151
|
},
|
|
152
152
|
postfx: (block) => {
|
|
153
|
-
const pp =
|
|
153
|
+
const pp = chunkLXJ4667L_cjs.compilePostProcessingBlock(block);
|
|
154
154
|
return `// PostFX: ${pp.keyword} effects=[${pp.effects.map((e) => e.type).join(", ")}]`;
|
|
155
155
|
},
|
|
156
156
|
audio: (block) => {
|
|
157
|
-
const a =
|
|
157
|
+
const a = chunkLXJ4667L_cjs.compileAudioSourceBlock(block);
|
|
158
158
|
return `// Audio: "${this.escapeStringValue(a.name, "TypeScript")}" (${a.keyword}) clip=${a.properties.clip || "none"}`;
|
|
159
159
|
},
|
|
160
160
|
weather: (block) => {
|
|
161
|
-
const w =
|
|
161
|
+
const w = chunkLXJ4667L_cjs.compileWeatherBlock(block);
|
|
162
162
|
return `// Weather: ${w.keyword} layers=[${w.layers.map((l) => l.type).join(", ")}]`;
|
|
163
163
|
}
|
|
164
164
|
},
|
|
@@ -1042,5 +1042,5 @@ var init_OpenXRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
1042
1042
|
|
|
1043
1043
|
exports.OpenXRCompiler_exports = OpenXRCompiler_exports;
|
|
1044
1044
|
exports.init_OpenXRCompiler = init_OpenXRCompiler;
|
|
1045
|
-
//# sourceMappingURL=chunk-
|
|
1046
|
-
//# sourceMappingURL=chunk-
|
|
1045
|
+
//# sourceMappingURL=chunk-FFKU7BTK.cjs.map
|
|
1046
|
+
//# sourceMappingURL=chunk-FFKU7BTK.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { init_CompilerBase,
|
|
1
|
+
import { init_ARCompiler, ARCompiler } from './chunk-MEASWI2Y.js';
|
|
2
|
+
import { init_BabylonCompiler, BabylonCompiler } from './chunk-KED34ILP.js';
|
|
3
|
+
import { init_VRRCompiler, VRRCompiler } from './chunk-R7MA7QWV.js';
|
|
4
|
+
import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
5
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
5
6
|
|
|
6
7
|
// src/compiler/MultiLayerCompiler.ts
|
|
7
8
|
init_VRRCompiler();
|
|
8
9
|
init_ARCompiler();
|
|
9
10
|
init_BabylonCompiler();
|
|
10
11
|
init_CompilerBase();
|
|
11
|
-
init_ANSNamespace();
|
|
12
12
|
var MultiLayerCompiler = class extends CompilerBase {
|
|
13
13
|
constructor(options) {
|
|
14
14
|
super();
|
|
@@ -56,14 +56,15 @@ var MultiLayerCompiler = class extends CompilerBase {
|
|
|
56
56
|
result.vr = vrResult;
|
|
57
57
|
} catch (err) {
|
|
58
58
|
result.success = false;
|
|
59
|
-
result.errors.push(
|
|
59
|
+
result.errors.push(
|
|
60
|
+
`VR Compilation Error: ${err instanceof Error ? err.message : String(err)}`
|
|
61
|
+
);
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
return result;
|
|
63
65
|
}
|
|
64
66
|
};
|
|
65
|
-
var MultiLayerCompiler_default = MultiLayerCompiler;
|
|
66
67
|
|
|
67
|
-
export { MultiLayerCompiler
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
69
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
export { MultiLayerCompiler };
|
|
69
|
+
//# sourceMappingURL=chunk-FHQVYCH2.js.map
|
|
70
|
+
//# sourceMappingURL=chunk-FHQVYCH2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkAIUXRS74_cjs = require('./chunk-AIUXRS74.cjs');
|
|
4
3
|
var crypto = require('crypto');
|
|
4
|
+
var platform = require('@holoscript/platform');
|
|
5
5
|
|
|
6
6
|
// src/compiler/TraitDependencyGraph.ts
|
|
7
7
|
function hashConfig(config) {
|
|
@@ -785,7 +785,11 @@ var ImportResolver = class {
|
|
|
785
785
|
try {
|
|
786
786
|
const fs = await import('fs/promises');
|
|
787
787
|
const path = await import('path');
|
|
788
|
-
const
|
|
788
|
+
const pkgName = "@loro/loro";
|
|
789
|
+
const { LoroDoc } = await import(
|
|
790
|
+
/* @vite-ignore */
|
|
791
|
+
pkgName
|
|
792
|
+
);
|
|
789
793
|
const crdtPath = path.resolve(process.cwd(), ".holomesh/worldstate.crdt");
|
|
790
794
|
const bytes = await fs.readFile(crdtPath);
|
|
791
795
|
const doc = new LoroDoc();
|
|
@@ -1240,9 +1244,6 @@ var SemanticCache = class {
|
|
|
1240
1244
|
function createSemanticCache(options) {
|
|
1241
1245
|
return new SemanticCache(options);
|
|
1242
1246
|
}
|
|
1243
|
-
|
|
1244
|
-
// src/compiler/IncrementalCompiler.ts
|
|
1245
|
-
chunkAIUXRS74_cjs.init_AgentRBAC();
|
|
1246
1247
|
function hashContent(content) {
|
|
1247
1248
|
let hash = 0;
|
|
1248
1249
|
for (let i = 0; i < content.length; i++) {
|
|
@@ -1741,12 +1742,12 @@ var IncrementalCompiler = class _IncrementalCompiler {
|
|
|
1741
1742
|
*/
|
|
1742
1743
|
validateAccess(agentToken) {
|
|
1743
1744
|
if (!agentToken) return;
|
|
1744
|
-
const rbac =
|
|
1745
|
+
const rbac = platform.getRBAC();
|
|
1745
1746
|
const decision = rbac.checkAccess({
|
|
1746
1747
|
token: agentToken,
|
|
1747
|
-
resourceType:
|
|
1748
|
+
resourceType: platform.ResourceType.AST,
|
|
1748
1749
|
operation: "read",
|
|
1749
|
-
expectedWorkflowStep:
|
|
1750
|
+
expectedWorkflowStep: platform.WorkflowStep.GENERATE_ASSEMBLY
|
|
1750
1751
|
});
|
|
1751
1752
|
if (!decision.allowed) {
|
|
1752
1753
|
throw new UnauthorizedIncrementalCompilerAccessError(decision, "IncrementalCompiler");
|
|
@@ -1969,5 +1970,5 @@ exports.createIncrementalCompiler = createIncrementalCompiler;
|
|
|
1969
1970
|
exports.deserializeCache = deserializeCache;
|
|
1970
1971
|
exports.globalTraitGraph = globalTraitGraph;
|
|
1971
1972
|
exports.serializeCache = serializeCache;
|
|
1972
|
-
//# sourceMappingURL=chunk-
|
|
1973
|
-
//# sourceMappingURL=chunk-
|
|
1973
|
+
//# sourceMappingURL=chunk-FSF7EQVA.cjs.map
|
|
1974
|
+
//# sourceMappingURL=chunk-FSF7EQVA.cjs.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToWebGPU } from './chunk-
|
|
2
|
-
import { init_CompilerBase,
|
|
3
|
-
import { __export, __esm } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToWebGPU } from './chunk-YQK5JNFK.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
3
|
+
import { __export, __esm } from './chunk-2CWOLHTE.js';
|
|
4
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
4
5
|
|
|
5
6
|
// src/compiler/WebGPUCompiler.ts
|
|
6
7
|
var WebGPUCompiler_exports = {};
|
|
@@ -11,7 +12,6 @@ var WebGPUCompiler;
|
|
|
11
12
|
var init_WebGPUCompiler = __esm({
|
|
12
13
|
"src/compiler/WebGPUCompiler.ts"() {
|
|
13
14
|
init_CompilerBase();
|
|
14
|
-
init_ANSNamespace();
|
|
15
15
|
init_DomainBlockCompilerMixin();
|
|
16
16
|
WebGPUCompiler = class extends CompilerBase {
|
|
17
17
|
constructor(options = {}) {
|
|
@@ -158,7 +158,9 @@ var init_WebGPUCompiler = __esm({
|
|
|
158
158
|
this.emit(`const ${v}Model = await assetLoader.load("${modelSrc}");`);
|
|
159
159
|
const pos = this.findObjProp(obj, "position");
|
|
160
160
|
const [px, py, pz] = Array.isArray(pos) ? pos : [0, 0, 0];
|
|
161
|
-
this.emit(
|
|
161
|
+
this.emit(
|
|
162
|
+
`const ${v}ModelMatrix = createBuffer(device, new Float32Array([1,0,0,0, 0,1,0,0, 0,0,1,0, ${px},${py},${pz},1]), GPUBufferUsage.UNIFORM);`
|
|
163
|
+
);
|
|
162
164
|
} else if (isModel) {
|
|
163
165
|
this.emit(`// WARNING: geometry "model" without source URL \u2014 placeholder cube`);
|
|
164
166
|
this.emitMeshObject(v, obj, "cube");
|
|
@@ -653,5 +655,5 @@ var init_WebGPUCompiler = __esm({
|
|
|
653
655
|
});
|
|
654
656
|
|
|
655
657
|
export { WebGPUCompiler, WebGPUCompiler_exports, init_WebGPUCompiler };
|
|
656
|
-
//# sourceMappingURL=chunk-
|
|
657
|
-
//# sourceMappingURL=chunk-
|
|
658
|
+
//# sourceMappingURL=chunk-G4VZTCIB.js.map
|
|
659
|
+
//# sourceMappingURL=chunk-G4VZTCIB.js.map
|
|
@@ -293,7 +293,7 @@ var CompositionTestRunner = class {
|
|
|
293
293
|
runTestsFromSource(source) {
|
|
294
294
|
const tests = this.extractTestBlocks(source);
|
|
295
295
|
if (this.config.debug) {
|
|
296
|
-
console.
|
|
296
|
+
console.debug(`[composition_test] Found ${tests.length} @test blocks`);
|
|
297
297
|
}
|
|
298
298
|
return this.runAll(tests);
|
|
299
299
|
}
|
|
@@ -340,7 +340,7 @@ var CompositionTestRunner = class {
|
|
|
340
340
|
const computed = this.evaluateComputedValues(state);
|
|
341
341
|
const fullState = { ...state, ...computed };
|
|
342
342
|
if (this.config.debug) {
|
|
343
|
-
console.
|
|
343
|
+
console.debug(`[composition_test] "${test.name}" state:`, fullState);
|
|
344
344
|
}
|
|
345
345
|
for (const assertion of test.assertions) {
|
|
346
346
|
const passed = this.evaluateAssertion(assertion.expression, fullState);
|
|
@@ -998,5 +998,5 @@ exports.testHandler = testHandler;
|
|
|
998
998
|
exports.toStringArray = toStringArray;
|
|
999
999
|
exports.truncateText = truncateText;
|
|
1000
1000
|
exports.weiToEth = weiToEth;
|
|
1001
|
-
//# sourceMappingURL=chunk-
|
|
1002
|
-
//# sourceMappingURL=chunk-
|
|
1001
|
+
//# sourceMappingURL=chunk-G7CT3EMP.cjs.map
|
|
1002
|
+
//# sourceMappingURL=chunk-G7CT3EMP.cjs.map
|