@holoscript/core 8.0.14 → 8.0.16
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 +6 -13
- package/bin/holo-decision.mjs +0 -0
- package/bin/holoscript.cjs +0 -0
- package/dist/{GLTFPipeline-6LS3UDYX.js → GLTFPipeline-FRBZIATS.js} +6 -6
- package/dist/{GLTFPipeline-VTI6PRRQ.cjs → GLTFPipeline-MTPP444P.cjs} +10 -10
- package/dist/{HoloCompositionParser-GILABNN3.js → HoloCompositionParser-2GVQAZ2X.js} +7 -7
- package/dist/HoloCompositionParser-3NDF6BMX.cjs +45 -0
- package/dist/HoloScriptPlusParser-URSIBEAW.cjs +30 -0
- package/dist/HoloScriptPlusParser-YCV6L7GI.js +13 -0
- package/dist/{HoloScriptRuntime-YBYXJHJN.cjs → HoloScriptRuntime-CRWI6C3P.cjs} +5 -5
- package/dist/{HoloScriptRuntime-UTRLJI5L.js → HoloScriptRuntime-IAZGHPFP.js} +4 -4
- package/dist/{SceneIRCompiler-VX75RB6H.js → SceneIRCompiler-BJQMKLWL.js} +6 -6
- package/dist/{SceneIRCompiler-7KQ5NKAU.cjs → SceneIRCompiler-RTPPDQAV.cjs} +11 -11
- package/dist/{chunk-Y2OCKXVD.js → chunk-22AULOAL.js} +5 -5
- package/dist/{chunk-D44CEFY4.cjs → chunk-2DJIS7TH.cjs} +5 -5
- package/dist/{chunk-LHUDAJQT.cjs → chunk-2PVEXEOL.cjs} +5 -5
- package/dist/{chunk-M7XR3F53.js → chunk-2UP2J3OK.js} +4 -4
- package/dist/{chunk-3KHRZTNW.js → chunk-3AUYBQ5I.js} +3 -3
- package/dist/{chunk-UKEK2NZJ.js → chunk-3MQAOMKD.js} +3 -3
- package/dist/{chunk-FWKEY4LD.js → chunk-4AGNARX6.js} +3 -3
- package/dist/{chunk-7ITJP33Q.cjs → chunk-4CQ7ULXZ.cjs} +3 -3
- package/dist/{chunk-47XZ62KM.js → chunk-4UA5OBWR.js} +5 -5
- package/dist/{chunk-ORBVCOTC.js → chunk-5LCJDX5A.js} +3 -3
- package/dist/{chunk-IK6Z2HNC.js → chunk-6OQHLNTT.js} +2 -2
- package/dist/{chunk-EI3J6LTW.cjs → chunk-6RDHWSZM.cjs} +217 -217
- package/dist/{chunk-73EDVY5D.js → chunk-7AY66PZP.js} +3 -3
- package/dist/{chunk-6FCNMTL5.js → chunk-7HDRN5BW.js} +4 -4
- package/dist/{chunk-N7MIIDLI.cjs → chunk-7IBXTJP7.cjs} +8 -8
- package/dist/{chunk-R5VKLUMR.js → chunk-AAUQTR7I.js} +4 -4
- package/dist/{chunk-HCONR4J6.cjs → chunk-AN3ZH7M7.cjs} +38 -38
- package/dist/{chunk-YW3I2FQL.js → chunk-ANMME7XT.js} +4 -2
- package/dist/{chunk-W4AJMMQR.js → chunk-AUF7HFOO.js} +60 -22
- package/dist/{chunk-SKVBUGMC.cjs → chunk-AUMTQV64.cjs} +7 -7
- package/dist/{chunk-7ZKQ32XK.js → chunk-B5K3WHJ4.js} +4 -4
- package/dist/{chunk-QQFB4RT2.cjs → chunk-BTVHY3UB.cjs} +2 -2
- package/dist/{chunk-SE2Y5BSL.cjs → chunk-CMEINO5I.cjs} +186 -70
- package/dist/{chunk-YMI3ED3B.cjs → chunk-CRUIGXF7.cjs} +5 -5
- package/dist/chunk-DDBYJJZK.js +1571 -0
- package/dist/{chunk-2E6PP5UE.cjs → chunk-E2SNPMBO.cjs} +11 -11
- package/dist/{chunk-GI5YYZH6.js → chunk-E4YS5SIZ.js} +90 -25
- package/dist/{chunk-62OYZT6Q.js → chunk-EKNWUSGW.js} +3 -3
- package/dist/{chunk-RVN7OPCP.js → chunk-ETIJOUIO.js} +4 -4
- package/dist/chunk-EUNELE7Y.cjs +1605 -0
- package/dist/{chunk-C73GVAYC.js → chunk-F33KLYOS.js} +5 -5
- package/dist/{chunk-4CRMVEON.cjs → chunk-F47FEV4X.cjs} +40 -40
- package/dist/{chunk-FGXJPJ3W.cjs → chunk-FCGTI7FO.cjs} +4 -4
- package/dist/{chunk-OSKGCXAQ.cjs → chunk-FGTXAVKG.cjs} +5 -5
- package/dist/{chunk-XZC75AJ4.cjs → chunk-FPGYWNNA.cjs} +5 -5
- package/dist/{chunk-5B2AJKA5.cjs → chunk-FQ4MYZYU.cjs} +20 -20
- package/dist/{chunk-KOGPVAP6.js → chunk-FT4FGTR6.js} +3 -3
- package/dist/{chunk-N7IYRAFG.cjs → chunk-FVNV4WHQ.cjs} +14 -14
- package/dist/{chunk-SJIRCTIS.cjs → chunk-HSGJFCVJ.cjs} +2 -2
- package/dist/{chunk-TKDDIE3T.cjs → chunk-ILO2KMER.cjs} +4 -4
- package/dist/{chunk-GGH3ZYDB.cjs → chunk-IPBSNGAN.cjs} +92 -27
- package/dist/{chunk-JQCXLKAU.js → chunk-IX2U3RQT.js} +3 -3
- package/dist/{chunk-P65OIMJT.cjs → chunk-IYK6LMQ7.cjs} +7 -7
- package/dist/{chunk-NWKARJM2.js → chunk-J3VVM6GV.js} +4 -4
- package/dist/{chunk-FOM36K5I.cjs → chunk-J74S4ZMF.cjs} +18 -18
- package/dist/{chunk-36NPLOI4.cjs → chunk-JERWCCEJ.cjs} +4 -2
- package/dist/{chunk-VXHB6ZHY.js → chunk-JTDDLCSP.js} +4 -4
- package/dist/{chunk-GYJLP4BO.cjs → chunk-K53L47NH.cjs} +30 -30
- package/dist/{chunk-FHR2AVMA.cjs → chunk-LJTM5ONX.cjs} +23 -23
- package/dist/{chunk-JCVSCKUH.js → chunk-LJVVOVA6.js} +4 -4
- package/dist/{chunk-LQNL3IYV.cjs → chunk-LNJKBQ2B.cjs} +38 -38
- package/dist/{chunk-2GKF7JQ6.js → chunk-M2GDE3NV.js} +3 -3
- package/dist/{chunk-Z7NUL73U.js → chunk-MSZNGI5P.js} +3 -3
- package/dist/{chunk-B6JHTTMR.cjs → chunk-N2BOTBPG.cjs} +15 -15
- package/dist/{chunk-L4DBUX3N.cjs → chunk-NFALJJCH.cjs} +12 -12
- package/dist/{chunk-YBM34FUJ.cjs → chunk-NRZRBK25.cjs} +6 -6
- package/dist/{chunk-SNMQUWIO.cjs → chunk-NTSLNIY7.cjs} +10 -10
- package/dist/{chunk-645EWDZW.cjs → chunk-NZJOAWJM.cjs} +4 -4
- package/dist/{chunk-LGRKBTPM.js → chunk-OG7RKWWX.js} +3 -3
- package/dist/{chunk-OOP4S3GU.cjs → chunk-OQVHCYY4.cjs} +5 -5
- package/dist/{chunk-TMNAKNV2.cjs → chunk-PEBNX3VM.cjs} +5 -5
- package/dist/{chunk-5T6BWIB7.js → chunk-PFZ5WLIP.js} +4 -4
- package/dist/{chunk-CESMPUEZ.cjs → chunk-PHLNABJD.cjs} +159 -145
- package/dist/{chunk-CHIZSMWD.js → chunk-PLK3DLTF.js} +3 -3
- package/dist/{chunk-4NEPHK2K.js → chunk-PMACVMHL.js} +3 -3
- package/dist/{chunk-EYHPTJ3F.js → chunk-PV2OXNP5.js} +40 -26
- package/dist/{chunk-KLM6QD6D.cjs → chunk-Q6VW7MGX.cjs} +14 -14
- package/dist/{chunk-YDSNDCV3.js → chunk-QC3CAVFN.js} +186 -69
- package/dist/{chunk-REN3LHO6.cjs → chunk-QKLEDRHN.cjs} +19 -19
- package/dist/{chunk-2EGGAZT3.js → chunk-QS27OYBU.js} +3 -3
- package/dist/{chunk-4376VHNJ.js → chunk-RUB7WL6C.js} +3 -3
- package/dist/chunk-S2BSXG3B.js +3308 -0
- package/dist/{chunk-TZQKJOPC.js → chunk-TW2AH2ZS.js} +3 -3
- package/dist/{chunk-Q4J2K7FI.js → chunk-TZM6DKSJ.js} +6 -6
- package/dist/{chunk-ESSEF6U2.js → chunk-U227RWXB.js} +3 -3
- package/dist/{chunk-ERYKKPHW.cjs → chunk-U6CQOM5Q.cjs} +13 -13
- package/dist/{chunk-VMCR5QVI.js → chunk-ULT2QAV5.js} +4 -4
- package/dist/chunk-VQOTDNFL.cjs +3337 -0
- package/dist/{chunk-VZI7S7P6.cjs → chunk-VSO6HPDZ.cjs} +7 -7
- package/dist/{chunk-QLPRI3QW.js → chunk-WQJMSSJT.js} +4 -4
- package/dist/{chunk-GILYQ5VH.cjs → chunk-WXSDBWGM.cjs} +4 -4
- package/dist/{chunk-42Z3SVHQ.js → chunk-X5PMMK7H.js} +3 -3
- package/dist/{chunk-ML4V5PVU.cjs → chunk-X5ZLSPU2.cjs} +74 -32
- package/dist/{chunk-PSWCJQS4.js → chunk-X727CQ7X.js} +5 -5
- package/dist/{chunk-YM7UUYR5.cjs → chunk-XHZYS4QO.cjs} +5 -5
- package/dist/{chunk-PZ46WRHX.cjs → chunk-XRQCTTDC.cjs} +8 -8
- package/dist/{chunk-IXFNA5TT.js → chunk-YBIHSN55.js} +4 -4
- package/dist/{chunk-BLCWQ225.js → chunk-Z574GVI3.js} +4 -4
- package/dist/{chunk-ZVQMKUGJ.js → chunk-Z5V3KA7L.js} +2 -2
- package/dist/{chunk-VTFLKSJL.cjs → chunk-ZHW6TDZ6.cjs} +14 -14
- package/dist/{chunk-KYJD2UMV.js → chunk-ZPHCTPR6.js} +4 -4
- package/dist/{chunk-VA7THINF.cjs → chunk-ZXXC2GXB.cjs} +38 -38
- package/dist/cli/holoscript-runner.cjs +168 -19
- package/dist/cli/holoscript-runner.js +162 -13
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +6 -6
- package/dist/compiler/android-xr.js +4 -4
- package/dist/compiler/android.cjs +5 -5
- package/dist/compiler/android.js +3 -3
- package/dist/compiler/context.cjs +5 -5
- package/dist/compiler/context.js +2 -2
- package/dist/compiler/daimon-seed.cjs +8 -8
- package/dist/compiler/daimon-seed.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +164 -164
- package/dist/compiler/domain-block-utils.js +3 -3
- package/dist/compiler/dtdl.cjs +6 -6
- package/dist/compiler/dtdl.js +3 -3
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +5 -5
- package/dist/compiler/godot.js +4 -4
- package/dist/compiler/incremental.cjs +7 -7
- package/dist/compiler/incremental.js +2 -2
- package/dist/compiler/index.cjs +1603 -204
- package/dist/compiler/index.d.ts +8 -0
- package/dist/compiler/index.js +1431 -55
- package/dist/compiler/ios.cjs +5 -5
- package/dist/compiler/ios.js +3 -3
- package/dist/compiler/llm-provider-capabilities.cjs +5 -5
- package/dist/compiler/llm-provider-capabilities.js +2 -2
- package/dist/compiler/openxr.cjs +5 -5
- package/dist/compiler/openxr.js +4 -4
- package/dist/compiler/sdf.cjs +6 -6
- package/dist/compiler/sdf.js +4 -4
- package/dist/compiler/state.cjs +5 -5
- package/dist/compiler/state.js +3 -3
- package/dist/compiler/trait-composition.cjs +6 -6
- package/dist/compiler/trait-composition.js +2 -2
- package/dist/compiler/unity.cjs +5 -5
- package/dist/compiler/unity.js +4 -4
- package/dist/compiler/unreal.cjs +6 -6
- package/dist/compiler/unreal.js +4 -4
- package/dist/compiler/urdf.cjs +13 -13
- package/dist/compiler/urdf.js +4 -4
- package/dist/compiler/usd-physics.cjs +6 -6
- package/dist/compiler/usd-physics.js +3 -3
- package/dist/compiler/visionos.cjs +5 -5
- package/dist/compiler/visionos.js +4 -4
- package/dist/compiler/vrchat.cjs +6 -6
- package/dist/compiler/vrchat.js +4 -4
- package/dist/compiler/wasm.cjs +9 -9
- package/dist/compiler/wasm.js +4 -4
- package/dist/compiler/webgpu.cjs +5 -5
- package/dist/compiler/webgpu.js +4 -4
- package/dist/constants.cjs +99 -99
- package/dist/constants.js +3 -3
- package/dist/debugger.cjs +5 -5
- package/dist/debugger.js +3 -3
- package/dist/{dist-GRMOP2UL.cjs → dist-YGATNURH.cjs} +705 -9
- package/dist/{dist-ZBUKU2JG.js → dist-ZEZXRCBG.js} +701 -10
- package/dist/entries/scripting.cjs +8 -8
- package/dist/entries/scripting.js +4 -4
- package/dist/evolution/index.cjs +20 -20
- package/dist/evolution/index.js +8 -8
- package/dist/index.cjs +871 -809
- package/dist/index.d.ts +8 -0
- package/dist/index.js +132 -70
- package/dist/parser/HoloCompositionTypes.d.ts +1 -1
- package/dist/parser.cjs +21 -21
- package/dist/parser.js +7 -7
- package/dist/reconstruction/index.cjs +63 -63
- package/dist/reconstruction/index.js +7 -7
- package/dist/runtime.cjs +9 -9
- package/dist/runtime.js +3 -3
- package/dist/traits/botanical-lotus.d.ts +61 -0
- package/dist/traits/index.cjs +664 -671
- package/dist/traits/index.d.ts +65 -0
- package/dist/traits/index.js +14 -21
- package/dist/types/HoloScriptPlus.d.ts +1 -1
- package/package.json +65 -63
- package/dist/HoloCompositionParser-ZVRYVEA5.cjs +0 -45
- package/dist/HoloScriptPlusParser-WTPRPRPR.cjs +0 -30
- package/dist/HoloScriptPlusParser-ZP53ECSL.js +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
4
4
|
var chunk4FIBOJW6_cjs = require('./chunk-4FIBOJW6.cjs');
|
|
5
5
|
var chunkN74QRJGP_cjs = require('./chunk-N74QRJGP.cjs');
|
|
6
6
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
@@ -12,7 +12,7 @@ function generateViewFile(compiler, composition) {
|
|
|
12
12
|
compiler.indentLevel = 0;
|
|
13
13
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
14
14
|
compiler.emit(
|
|
15
|
-
`// Source: composition "${
|
|
15
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
16
16
|
);
|
|
17
17
|
compiler.emit(`// iOS: ${compiler.options.iosVersion}`);
|
|
18
18
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -232,7 +232,7 @@ function generateSceneFile(compiler, composition) {
|
|
|
232
232
|
compiler.lines = [];
|
|
233
233
|
compiler.indentLevel = 0;
|
|
234
234
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
235
|
-
compiler.emit(`// Scene: ${
|
|
235
|
+
compiler.emit(`// Scene: ${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}`);
|
|
236
236
|
compiler.emit("");
|
|
237
237
|
compiler.emit("import Foundation");
|
|
238
238
|
compiler.emit("import SceneKit");
|
|
@@ -250,7 +250,7 @@ function generateSceneFile(compiler, composition) {
|
|
|
250
250
|
compiler.emit("var nodes: [String: SCNNode] = [:]");
|
|
251
251
|
for (const obj of composition.objects || []) {
|
|
252
252
|
const varName = compiler.sanitizeName(obj.name);
|
|
253
|
-
compiler.emit(`nodes["${
|
|
253
|
+
compiler.emit(`nodes["${chunkCMEINO5I_cjs.escapeStringValue(obj.name, "Swift")}"] = make${varName}()`);
|
|
254
254
|
}
|
|
255
255
|
compiler.emit("return nodes");
|
|
256
256
|
compiler.indentLevel--;
|
|
@@ -283,7 +283,7 @@ function generateStateFile(compiler, composition) {
|
|
|
283
283
|
compiler.lines = [];
|
|
284
284
|
compiler.indentLevel = 0;
|
|
285
285
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
286
|
-
compiler.emit(`// State: ${
|
|
286
|
+
compiler.emit(`// State: ${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}`);
|
|
287
287
|
compiler.emit("");
|
|
288
288
|
compiler.emit("import Foundation");
|
|
289
289
|
compiler.emit("import SceneKit");
|
|
@@ -300,7 +300,7 @@ function generateStateFile(compiler, composition) {
|
|
|
300
300
|
const swiftType = compiler.toSwiftType(prop.value);
|
|
301
301
|
const swiftValue = compiler.toSwiftValue(prop.value);
|
|
302
302
|
compiler.emit(
|
|
303
|
-
`@Published var ${
|
|
303
|
+
`@Published var ${chunkCMEINO5I_cjs.escapeStringValue(prop.key, "Swift")}: ${swiftType} = ${swiftValue}`
|
|
304
304
|
);
|
|
305
305
|
}
|
|
306
306
|
compiler.emit("");
|
|
@@ -454,7 +454,7 @@ function generateInfoPlist(compiler, composition) {
|
|
|
454
454
|
<true/>
|
|
455
455
|
</dict>
|
|
456
456
|
<key>CFBundleDisplayName</key>
|
|
457
|
-
<string>${
|
|
457
|
+
<string>${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "XML")}</string>
|
|
458
458
|
<key>MinimumOSVersion</key>
|
|
459
459
|
<string>${compiler.options.iosVersion}</string>
|
|
460
460
|
</dict>
|
|
@@ -488,7 +488,7 @@ function compileObjectFactory(compiler, obj) {
|
|
|
488
488
|
compiler.emit("geometry.materials = [material]");
|
|
489
489
|
compiler.emit("");
|
|
490
490
|
compiler.emit("let node = SCNNode(geometry: geometry)");
|
|
491
|
-
compiler.emit(`node.name = "${
|
|
491
|
+
compiler.emit(`node.name = "${chunkCMEINO5I_cjs.escapeStringValue(obj.name, "Swift")}"`);
|
|
492
492
|
const pos = compiler.findObjProp(obj, "position");
|
|
493
493
|
if (pos && Array.isArray(pos)) {
|
|
494
494
|
compiler.emit(`node.position = SCNVector3(${pos[0]}, ${pos[1]}, ${pos[2]})`);
|
|
@@ -547,7 +547,7 @@ function compileLightFactory(compiler, light) {
|
|
|
547
547
|
}
|
|
548
548
|
compiler.emit("");
|
|
549
549
|
compiler.emit("let node = SCNNode()");
|
|
550
|
-
compiler.emit(`node.name = "${
|
|
550
|
+
compiler.emit(`node.name = "${chunkCMEINO5I_cjs.escapeStringValue(light.name, "Swift")}"`);
|
|
551
551
|
compiler.emit("node.light = light");
|
|
552
552
|
const posProp = light.properties.find((p) => p.key === "position");
|
|
553
553
|
if (posProp && Array.isArray(posProp.value)) {
|
|
@@ -594,7 +594,7 @@ function compileAction(compiler, action) {
|
|
|
594
594
|
const name = compiler.sanitizeName(action.name);
|
|
595
595
|
compiler.emit(`func ${name}() {`);
|
|
596
596
|
compiler.indentLevel++;
|
|
597
|
-
compiler.emit(`print("[HoloScript] Action: ${
|
|
597
|
+
compiler.emit(`print("[HoloScript] Action: ${chunkCMEINO5I_cjs.escapeStringValue(action.name, "Swift")}")`);
|
|
598
598
|
compiler.emit("// Action implementation");
|
|
599
599
|
compiler.indentLevel--;
|
|
600
600
|
compiler.emit("}");
|
|
@@ -680,14 +680,14 @@ function emitGeoAnchorMethods(compiler, composition) {
|
|
|
680
680
|
});
|
|
681
681
|
const headingConfig = typeof headingTrait === "string" ? {} : headingTrait?.config || {};
|
|
682
682
|
const heading = headingConfig.degrees ?? 0;
|
|
683
|
-
compiler.emit(`// Geo-anchor: ${
|
|
683
|
+
compiler.emit(`// Geo-anchor: ${chunkCMEINO5I_cjs.escapeStringValue(obj.name, "Swift")}`);
|
|
684
684
|
if (usesARGeoAnchor) {
|
|
685
685
|
compiler.emit(
|
|
686
|
-
`createGeoAnchor(name: "${
|
|
686
|
+
`createGeoAnchor(name: "${chunkCMEINO5I_cjs.escapeStringValue(obj.name, "Swift")}", latitude: ${lat}, longitude: ${lng}, altitude: ${alt}, heading: ${heading})`
|
|
687
687
|
);
|
|
688
688
|
} else {
|
|
689
689
|
compiler.emit(
|
|
690
|
-
`createLocationAnchor(name: "${
|
|
690
|
+
`createLocationAnchor(name: "${chunkCMEINO5I_cjs.escapeStringValue(obj.name, "Swift")}", latitude: ${lat}, longitude: ${lng}, altitude: ${alt})`
|
|
691
691
|
);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
@@ -814,7 +814,7 @@ function emitGeoAnchorMethods(compiler, composition) {
|
|
|
814
814
|
}
|
|
815
815
|
var init_IOSARGenerators = chunkZHPMP447_cjs.__esm({
|
|
816
816
|
"src/compiler/IOSARGenerators.ts"() {
|
|
817
|
-
|
|
817
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
818
818
|
}
|
|
819
819
|
});
|
|
820
820
|
|
|
@@ -834,7 +834,7 @@ function generateRoomPlanFile(compiler, composition) {
|
|
|
834
834
|
const cls = compiler.options.className;
|
|
835
835
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 RoomPlan integration");
|
|
836
836
|
compiler.emit(
|
|
837
|
-
`// Source: composition "${
|
|
837
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
838
838
|
);
|
|
839
839
|
compiler.emit("// Requires iOS 16.0+, RoomPlan framework");
|
|
840
840
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -1192,7 +1192,7 @@ function generateLiDARScannerFile(compiler, composition) {
|
|
|
1192
1192
|
const traits = collectLiDARTraits(composition);
|
|
1193
1193
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 LiDAR Scanner integration");
|
|
1194
1194
|
compiler.emit(
|
|
1195
|
-
`// Source: composition "${
|
|
1195
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
1196
1196
|
);
|
|
1197
1197
|
compiler.emit("// Requires iOS 15.0+, device with LiDAR sensor");
|
|
1198
1198
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -1674,7 +1674,7 @@ function generateNPUSceneFile(compiler, composition) {
|
|
|
1674
1674
|
const defaults = chunkN74QRJGP_cjs.NPU_SCENE_DEFAULTS;
|
|
1675
1675
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 NPU Scene Understanding");
|
|
1676
1676
|
compiler.emit(
|
|
1677
|
-
`// Source: composition "${
|
|
1677
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
1678
1678
|
);
|
|
1679
1679
|
compiler.emit("// Requires iOS 15.0+, Vision + CoreML frameworks");
|
|
1680
1680
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2080,7 +2080,7 @@ function generatePortalARFile(compiler, composition) {
|
|
|
2080
2080
|
const cls = compiler.options.className;
|
|
2081
2081
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Portal AR integration");
|
|
2082
2082
|
compiler.emit(
|
|
2083
|
-
`// Source: composition "${
|
|
2083
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2084
2084
|
);
|
|
2085
2085
|
compiler.emit("// Requires iOS 15.0+, ARKit with scene reconstruction");
|
|
2086
2086
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2414,7 +2414,7 @@ function generatePortalARFile(compiler, composition) {
|
|
|
2414
2414
|
}
|
|
2415
2415
|
var init_IOSSpatialGenerators = chunkZHPMP447_cjs.__esm({
|
|
2416
2416
|
"src/compiler/IOSSpatialGenerators.ts"() {
|
|
2417
|
-
|
|
2417
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
2418
2418
|
chunk4FIBOJW6_cjs.init_roomplan();
|
|
2419
2419
|
chunk4FIBOJW6_cjs.init_lidar_scanner();
|
|
2420
2420
|
chunkN74QRJGP_cjs.init_npu_scene();
|
|
@@ -2448,7 +2448,7 @@ function generateHandTrackingFile(compiler, composition) {
|
|
|
2448
2448
|
const hasToSpatial = compiler.compositionHasTrait(composition, "camera_hand_to_spatial");
|
|
2449
2449
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Hand Tracking integration");
|
|
2450
2450
|
compiler.emit(
|
|
2451
|
-
`// Source: composition "${
|
|
2451
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2452
2452
|
);
|
|
2453
2453
|
compiler.emit("// Requires iOS 14.0+, Vision framework");
|
|
2454
2454
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2748,7 +2748,7 @@ function generateObjectCaptureFile(compiler, composition) {
|
|
|
2748
2748
|
const traits = collectObjectCaptureTraits(composition);
|
|
2749
2749
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Object Capture integration");
|
|
2750
2750
|
compiler.emit(
|
|
2751
|
-
`// Source: composition "${
|
|
2751
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2752
2752
|
);
|
|
2753
2753
|
compiler.emit("// Requires iOS 17.0+, RealityKit Object Capture API");
|
|
2754
2754
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -3279,7 +3279,7 @@ function generateSharePlayFile(compiler, composition) {
|
|
|
3279
3279
|
const cls = compiler.options.className;
|
|
3280
3280
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 SharePlay Multi-User AR");
|
|
3281
3281
|
compiler.emit(
|
|
3282
|
-
`// Source: composition "${
|
|
3282
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
3283
3283
|
);
|
|
3284
3284
|
compiler.emit("// Requires iOS 15.4+, GroupActivities framework");
|
|
3285
3285
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -3885,7 +3885,7 @@ function generateFaceTrackingFile(compiler, composition) {
|
|
|
3885
3885
|
const hasTongue = compiler.compositionHasTrait(composition, "face_tongue_detect");
|
|
3886
3886
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 TrueDepth Face Tracking");
|
|
3887
3887
|
compiler.emit(
|
|
3888
|
-
`// Source: composition "${
|
|
3888
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
3889
3889
|
);
|
|
3890
3890
|
compiler.emit("// Requires iOS 11.0+, ARKit, TrueDepth camera");
|
|
3891
3891
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -4279,7 +4279,7 @@ function generateUWBPositioningFile(compiler, composition) {
|
|
|
4279
4279
|
const cls = compiler.options.className;
|
|
4280
4280
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 UWB Positioning");
|
|
4281
4281
|
compiler.emit(
|
|
4282
|
-
`// Source: composition "${
|
|
4282
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
4283
4283
|
);
|
|
4284
4284
|
compiler.emit("// Requires iOS 16+, U1/U2 chip (iPhone 11+), Nearby Interaction framework");
|
|
4285
4285
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -4809,7 +4809,7 @@ function generateSpatialAudioFile(compiler, composition) {
|
|
|
4809
4809
|
const traits = collectSpatialAudioTraits(composition);
|
|
4810
4810
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 AirPods Spatial Audio");
|
|
4811
4811
|
compiler.emit(
|
|
4812
|
-
`// Source: composition "${
|
|
4812
|
+
`// Source: composition "${chunkCMEINO5I_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
4813
4813
|
);
|
|
4814
4814
|
compiler.emit("// Requires iOS 15+, AirPods Pro/Max with head tracking");
|
|
4815
4815
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -5245,7 +5245,7 @@ function generateSpatialAudioFile(compiler, composition) {
|
|
|
5245
5245
|
}
|
|
5246
5246
|
var init_IOSPeripheralGenerators = chunkZHPMP447_cjs.__esm({
|
|
5247
5247
|
"src/compiler/IOSPeripheralGenerators.ts"() {
|
|
5248
|
-
|
|
5248
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
5249
5249
|
chunkN74QRJGP_cjs.init_camera_hand_tracking();
|
|
5250
5250
|
chunk4FIBOJW6_cjs.init_face_tracking();
|
|
5251
5251
|
chunk4FIBOJW6_cjs.init_ios_object_capture();
|
|
@@ -5268,11 +5268,11 @@ function compileToIOS(composition, options) {
|
|
|
5268
5268
|
exports.IOSCompiler = void 0;
|
|
5269
5269
|
var init_IOSCompiler = chunkZHPMP447_cjs.__esm({
|
|
5270
5270
|
"src/compiler/IOSCompiler.ts"() {
|
|
5271
|
-
|
|
5271
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
5272
5272
|
init_IOSARGenerators();
|
|
5273
5273
|
init_IOSSpatialGenerators();
|
|
5274
5274
|
init_IOSPeripheralGenerators();
|
|
5275
|
-
exports.IOSCompiler = class extends
|
|
5275
|
+
exports.IOSCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
5276
5276
|
constructor(options = {}) {
|
|
5277
5277
|
super();
|
|
5278
5278
|
this.compilerName = "IOSCompiler";
|
|
@@ -5423,5 +5423,5 @@ var init_IOSCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
5423
5423
|
exports.IOSCompiler_exports = IOSCompiler_exports;
|
|
5424
5424
|
exports.compileToIOS = compileToIOS;
|
|
5425
5425
|
exports.init_IOSCompiler = init_IOSCompiler;
|
|
5426
|
-
//# sourceMappingURL=chunk-
|
|
5427
|
-
//# sourceMappingURL=chunk-
|
|
5426
|
+
//# sourceMappingURL=chunk-K53L47NH.cjs.map
|
|
5427
|
+
//# sourceMappingURL=chunk-K53L47NH.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTZCFKZ6Z_cjs = require('./chunk-TZCFKZ6Z.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkIYK6LMQ7_cjs = require('./chunk-IYK6LMQ7.cjs');
|
|
5
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
6
6
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
@@ -14,15 +14,15 @@ chunkZHPMP447_cjs.__export(UnrealCompiler_exports, {
|
|
|
14
14
|
});
|
|
15
15
|
function compileToUnreal(composition, options) {
|
|
16
16
|
const compiler = new exports.UnrealCompiler(options);
|
|
17
|
-
return compiler.compile(composition,
|
|
17
|
+
return compiler.compile(composition, chunkCMEINO5I_cjs.createTestCompilerToken());
|
|
18
18
|
}
|
|
19
19
|
exports.UnrealCompiler = void 0;
|
|
20
20
|
var init_UnrealCompiler = chunkZHPMP447_cjs.__esm({
|
|
21
21
|
"src/compiler/UnrealCompiler.ts"() {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
23
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
24
24
|
chunkTZCFKZ6Z_cjs.init_PlatformConditionalCompilerMixin();
|
|
25
|
-
exports.UnrealCompiler = class extends
|
|
25
|
+
exports.UnrealCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
26
26
|
constructor(options = {}) {
|
|
27
27
|
super();
|
|
28
28
|
this.compilerName = "UnrealCompiler";
|
|
@@ -656,36 +656,36 @@ var init_UnrealCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
656
656
|
this.emitS("");
|
|
657
657
|
this.emitS("// === v4.2 Domain Blocks ===");
|
|
658
658
|
let blockIdx = 0;
|
|
659
|
-
const compiled =
|
|
659
|
+
const compiled = chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
660
660
|
domainBlocks,
|
|
661
661
|
{
|
|
662
662
|
material: (block) => {
|
|
663
|
-
const mat =
|
|
664
|
-
return
|
|
663
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
664
|
+
return chunkIYK6LMQ7_cjs.materialToUnreal(mat, `DB${blockIdx++}`);
|
|
665
665
|
},
|
|
666
666
|
physics: (block) => {
|
|
667
|
-
const phys =
|
|
668
|
-
return
|
|
667
|
+
const phys = chunkIYK6LMQ7_cjs.compilePhysicsBlock(block);
|
|
668
|
+
return chunkIYK6LMQ7_cjs.physicsToUnreal(phys, `DB${blockIdx++}`);
|
|
669
669
|
},
|
|
670
670
|
vfx: (block) => {
|
|
671
|
-
const ps =
|
|
672
|
-
return
|
|
671
|
+
const ps = chunkIYK6LMQ7_cjs.compileParticleBlock(block);
|
|
672
|
+
return chunkIYK6LMQ7_cjs.particlesToUnreal(ps, `DB${blockIdx++}`);
|
|
673
673
|
},
|
|
674
674
|
postfx: (block) => {
|
|
675
|
-
const pp =
|
|
676
|
-
return
|
|
675
|
+
const pp = chunkIYK6LMQ7_cjs.compilePostProcessingBlock(block);
|
|
676
|
+
return chunkIYK6LMQ7_cjs.postProcessingToUnreal(pp, `DB${blockIdx++}`);
|
|
677
677
|
},
|
|
678
678
|
audio: (block) => {
|
|
679
|
-
const audio =
|
|
680
|
-
return
|
|
679
|
+
const audio = chunkIYK6LMQ7_cjs.compileAudioSourceBlock(block);
|
|
680
|
+
return chunkIYK6LMQ7_cjs.audioSourceToUnreal(audio, `DB${blockIdx++}`);
|
|
681
681
|
},
|
|
682
682
|
weather: (block) => {
|
|
683
|
-
const weather =
|
|
684
|
-
return
|
|
683
|
+
const weather = chunkIYK6LMQ7_cjs.compileWeatherBlock(block);
|
|
684
|
+
return chunkIYK6LMQ7_cjs.weatherToUnreal(weather);
|
|
685
685
|
},
|
|
686
686
|
dataviz: (block) => {
|
|
687
|
-
const dv =
|
|
688
|
-
return
|
|
687
|
+
const dv = chunkIYK6LMQ7_cjs.compileDataVizBlock(block);
|
|
688
|
+
return chunkIYK6LMQ7_cjs.datavizToUnreal(dv, `DB${blockIdx++}`);
|
|
689
689
|
}
|
|
690
690
|
},
|
|
691
691
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -730,5 +730,5 @@ var init_UnrealCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
730
730
|
exports.UnrealCompiler_exports = UnrealCompiler_exports;
|
|
731
731
|
exports.compileToUnreal = compileToUnreal;
|
|
732
732
|
exports.init_UnrealCompiler = init_UnrealCompiler;
|
|
733
|
-
//# sourceMappingURL=chunk-
|
|
734
|
-
//# sourceMappingURL=chunk-
|
|
733
|
+
//# sourceMappingURL=chunk-LJTM5ONX.cjs.map
|
|
734
|
+
//# sourceMappingURL=chunk-LJTM5ONX.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_AndroidKotlinHelpers, sanitizeName, toKotlinFloat3, toKotlinColor, mapShapeToFilament, toKotlinType, toKotlinValue, findObjProp, compositionUsesArCoreDepthTraits } from './chunk-CBSDJF3B.js';
|
|
2
2
|
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-DJNH4HFW.js';
|
|
3
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToAndroidXR, compileAudioSourceBlock, audioSourceToAndroidXR, compilePostProcessingBlock, compileParticleBlock, particlesToAndroidXR, compilePhysicsBlock, physicsToAndroidXR, compileMaterialBlock, materialToAndroidXR } from './chunk-
|
|
4
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
3
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToAndroidXR, compileAudioSourceBlock, audioSourceToAndroidXR, compilePostProcessingBlock, compileParticleBlock, particlesToAndroidXR, compilePhysicsBlock, physicsToAndroidXR, compileMaterialBlock, materialToAndroidXR } from './chunk-TW2AH2ZS.js';
|
|
4
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QC3CAVFN.js';
|
|
5
5
|
import { __esm, __export } from './chunk-W4GABFCR.js';
|
|
6
6
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
7
7
|
|
|
@@ -5687,5 +5687,5 @@ var init_AndroidXRCompiler = __esm({
|
|
|
5687
5687
|
});
|
|
5688
5688
|
|
|
5689
5689
|
export { ANDROIDXR_TRAIT_MAP, AndroidXRCompiler, AndroidXRCompiler_exports, compileToAndroidXR, getTraitMapping, init_AndroidXRCompiler, init_AndroidXRTraitMap };
|
|
5690
|
-
//# sourceMappingURL=chunk-
|
|
5691
|
-
//# sourceMappingURL=chunk-
|
|
5690
|
+
//# sourceMappingURL=chunk-LJVVOVA6.js.map
|
|
5691
|
+
//# sourceMappingURL=chunk-LJVVOVA6.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTZCFKZ6Z_cjs = require('./chunk-TZCFKZ6Z.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkIYK6LMQ7_cjs = require('./chunk-IYK6LMQ7.cjs');
|
|
5
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
6
6
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
@@ -14,10 +14,10 @@ chunkZHPMP447_cjs.__export(UnityCompiler_exports, {
|
|
|
14
14
|
exports.UnityCompiler = void 0;
|
|
15
15
|
var init_UnityCompiler = chunkZHPMP447_cjs.__esm({
|
|
16
16
|
"src/compiler/UnityCompiler.ts"() {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
18
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
19
19
|
chunkTZCFKZ6Z_cjs.init_PlatformConditionalCompilerMixin();
|
|
20
|
-
exports.UnityCompiler = class extends
|
|
20
|
+
exports.UnityCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
21
21
|
constructor(options = {}) {
|
|
22
22
|
super();
|
|
23
23
|
this.compilerName = "UnityCompiler";
|
|
@@ -207,63 +207,63 @@ var init_UnityCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
207
207
|
this.emit("");
|
|
208
208
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
209
209
|
let blockIdx = 0;
|
|
210
|
-
const compiled =
|
|
210
|
+
const compiled = chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
211
211
|
domainBlocks,
|
|
212
212
|
{
|
|
213
213
|
material: (block) => {
|
|
214
|
-
const mat =
|
|
214
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
215
215
|
const prefix = `db${blockIdx++}`;
|
|
216
|
-
return
|
|
216
|
+
return chunkIYK6LMQ7_cjs.materialToUnity(mat, prefix);
|
|
217
217
|
},
|
|
218
218
|
physics: (block) => {
|
|
219
|
-
const phys =
|
|
219
|
+
const phys = chunkIYK6LMQ7_cjs.compilePhysicsBlock(block);
|
|
220
220
|
const prefix = `db${blockIdx++}`;
|
|
221
|
-
return
|
|
221
|
+
return chunkIYK6LMQ7_cjs.physicsToUnity(phys, prefix);
|
|
222
222
|
},
|
|
223
223
|
vfx: (block) => {
|
|
224
|
-
const ps =
|
|
224
|
+
const ps = chunkIYK6LMQ7_cjs.compileParticleBlock(block);
|
|
225
225
|
const prefix = `db${blockIdx++}`;
|
|
226
|
-
return
|
|
226
|
+
return chunkIYK6LMQ7_cjs.particlesToUnity(ps, prefix);
|
|
227
227
|
},
|
|
228
228
|
postfx: (block) => {
|
|
229
|
-
const pp =
|
|
230
|
-
return
|
|
229
|
+
const pp = chunkIYK6LMQ7_cjs.compilePostProcessingBlock(block);
|
|
230
|
+
return chunkIYK6LMQ7_cjs.postProcessingToUnity(pp);
|
|
231
231
|
},
|
|
232
232
|
audio: (block) => {
|
|
233
|
-
const audio =
|
|
233
|
+
const audio = chunkIYK6LMQ7_cjs.compileAudioSourceBlock(block);
|
|
234
234
|
const prefix = `db${blockIdx++}`;
|
|
235
|
-
return
|
|
235
|
+
return chunkIYK6LMQ7_cjs.audioSourceToUnity(audio, prefix);
|
|
236
236
|
},
|
|
237
237
|
weather: (block) => {
|
|
238
|
-
const weather =
|
|
239
|
-
return
|
|
238
|
+
const weather = chunkIYK6LMQ7_cjs.compileWeatherBlock(block);
|
|
239
|
+
return chunkIYK6LMQ7_cjs.weatherToUnity(weather);
|
|
240
240
|
},
|
|
241
241
|
narrative: (block) => {
|
|
242
|
-
const narr =
|
|
243
|
-
return
|
|
242
|
+
const narr = chunkIYK6LMQ7_cjs.compileNarrativeBlock(block);
|
|
243
|
+
return chunkIYK6LMQ7_cjs.narrativeToUnity(narr);
|
|
244
244
|
},
|
|
245
245
|
payment: (block) => {
|
|
246
|
-
const pay =
|
|
247
|
-
return
|
|
246
|
+
const pay = chunkIYK6LMQ7_cjs.compilePaymentBlock(block);
|
|
247
|
+
return chunkIYK6LMQ7_cjs.paymentToUnity(pay);
|
|
248
248
|
},
|
|
249
249
|
healthcare: (block) => {
|
|
250
|
-
const h =
|
|
251
|
-
return
|
|
250
|
+
const h = chunkIYK6LMQ7_cjs.compileHealthcareBlock(block);
|
|
251
|
+
return chunkIYK6LMQ7_cjs.healthcareToUnity(h);
|
|
252
252
|
},
|
|
253
253
|
robotics: (block) => {
|
|
254
|
-
const r =
|
|
255
|
-
return
|
|
254
|
+
const r = chunkIYK6LMQ7_cjs.compileRoboticsBlock(block);
|
|
255
|
+
return chunkIYK6LMQ7_cjs.roboticsToUnity(r);
|
|
256
256
|
},
|
|
257
|
-
iot: (block) =>
|
|
258
|
-
dataviz: (block) =>
|
|
259
|
-
education: (block) =>
|
|
260
|
-
music: (block) =>
|
|
261
|
-
architecture: (block) =>
|
|
262
|
-
web3: (block) =>
|
|
263
|
-
procedural: (block) =>
|
|
264
|
-
rendering: (block) =>
|
|
265
|
-
navigation: (block) =>
|
|
266
|
-
input: (block) =>
|
|
257
|
+
iot: (block) => chunkIYK6LMQ7_cjs.iotToUnity(chunkIYK6LMQ7_cjs.compileIoTBlock(block)),
|
|
258
|
+
dataviz: (block) => chunkIYK6LMQ7_cjs.datavizToUnity(chunkIYK6LMQ7_cjs.compileDataVizBlock(block)),
|
|
259
|
+
education: (block) => chunkIYK6LMQ7_cjs.educationToUnity(chunkIYK6LMQ7_cjs.compileEducationBlock(block)),
|
|
260
|
+
music: (block) => chunkIYK6LMQ7_cjs.musicToUnity(chunkIYK6LMQ7_cjs.compileMusicBlock(block)),
|
|
261
|
+
architecture: (block) => chunkIYK6LMQ7_cjs.architectureToUnity(chunkIYK6LMQ7_cjs.compileArchitectureBlock(block)),
|
|
262
|
+
web3: (block) => chunkIYK6LMQ7_cjs.web3ToUnity(chunkIYK6LMQ7_cjs.compileWeb3Block(block)),
|
|
263
|
+
procedural: (block) => chunkIYK6LMQ7_cjs.proceduralToUnity(chunkIYK6LMQ7_cjs.compileProceduralBlock(block)),
|
|
264
|
+
rendering: (block) => chunkIYK6LMQ7_cjs.renderingToUnity(chunkIYK6LMQ7_cjs.compileRenderingBlock(block)),
|
|
265
|
+
navigation: (block) => chunkIYK6LMQ7_cjs.navigationToUnity(chunkIYK6LMQ7_cjs.compileNavigationBlock(block)),
|
|
266
|
+
input: (block) => chunkIYK6LMQ7_cjs.inputToUnity(chunkIYK6LMQ7_cjs.compileInputBlock(block))
|
|
267
267
|
},
|
|
268
268
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "CSharp")}"`
|
|
269
269
|
);
|
|
@@ -765,5 +765,5 @@ var init_UnityCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
765
765
|
|
|
766
766
|
exports.UnityCompiler_exports = UnityCompiler_exports;
|
|
767
767
|
exports.init_UnityCompiler = init_UnityCompiler;
|
|
768
|
-
//# sourceMappingURL=chunk-
|
|
769
|
-
//# sourceMappingURL=chunk-
|
|
768
|
+
//# sourceMappingURL=chunk-LNJKBQ2B.cjs.map
|
|
769
|
+
//# sourceMappingURL=chunk-LNJKBQ2B.cjs.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-FRBZIATS.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-M2GDE3NV.js.map
|
|
449
|
+
//# sourceMappingURL=chunk-M2GDE3NV.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VR_TRAITS } from './chunk-
|
|
1
|
+
import { VR_TRAITS } from './chunk-QS27OYBU.js';
|
|
2
2
|
|
|
3
3
|
// src/traits/knownTraitSet.ts
|
|
4
4
|
var NATIVE2D_TRAITS = [
|
|
@@ -571,5 +571,5 @@ var HOLOSCHEMA_GEOMETRIES = VALID_GEOMETRIES;
|
|
|
571
571
|
var HOLOSCHEMA_PROPERTIES = COMMON_PROPERTIES;
|
|
572
572
|
|
|
573
573
|
export { CODE_GRAPH_TRAITS, ErrorRecovery, HOLOSCHEMA_GEOMETRIES, HOLOSCHEMA_KEYWORDS, HOLOSCHEMA_PROPERTIES, NATIVE2D_TRAITS, RUNTIME_DIRECTIVE_TRAITS, buildKnownTraitSet, enrichErrorWithSuggestions, generateQuickFixes };
|
|
574
|
-
//# sourceMappingURL=chunk-
|
|
575
|
-
//# sourceMappingURL=chunk-
|
|
574
|
+
//# sourceMappingURL=chunk-MSZNGI5P.js.map
|
|
575
|
+
//# sourceMappingURL=chunk-MSZNGI5P.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkIYK6LMQ7_cjs = require('./chunk-IYK6LMQ7.cjs');
|
|
4
|
+
var chunkCMEINO5I_cjs = require('./chunk-CMEINO5I.cjs');
|
|
5
5
|
var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -205,9 +205,9 @@ function generateControllersYaml(robotName, jointNames, options) {
|
|
|
205
205
|
exports.URDFCompiler = void 0; exports.URDFCompiler_default = void 0;
|
|
206
206
|
var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
207
207
|
"src/compiler/URDFCompiler.ts"() {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
exports.URDFCompiler = class extends
|
|
208
|
+
chunkCMEINO5I_cjs.init_CompilerBase();
|
|
209
|
+
chunkIYK6LMQ7_cjs.init_DomainBlockCompilerMixin();
|
|
210
|
+
exports.URDFCompiler = class extends chunkCMEINO5I_cjs.CompilerBase {
|
|
211
211
|
constructor(options = {}) {
|
|
212
212
|
super();
|
|
213
213
|
this.compilerName = "URDFCompiler";
|
|
@@ -572,11 +572,11 @@ var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
572
572
|
if (domainBlocks.length === 0) return;
|
|
573
573
|
this.emitBlank();
|
|
574
574
|
this.emit("<!-- v4.2 Domain Blocks -->");
|
|
575
|
-
const compiled =
|
|
575
|
+
const compiled = chunkIYK6LMQ7_cjs.compileDomainBlocks(
|
|
576
576
|
domainBlocks,
|
|
577
577
|
{
|
|
578
578
|
material: (block) => {
|
|
579
|
-
const mat =
|
|
579
|
+
const mat = chunkIYK6LMQ7_cjs.compileMaterialBlock(block);
|
|
580
580
|
const lines = [];
|
|
581
581
|
lines.push(
|
|
582
582
|
`<material name="${this.escapeStringValue(mat.name, "TypeScript")}">`
|
|
@@ -597,15 +597,15 @@ var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
597
597
|
return lines.join("\n");
|
|
598
598
|
},
|
|
599
599
|
physics: (block) => {
|
|
600
|
-
const phys =
|
|
601
|
-
return
|
|
600
|
+
const phys = chunkIYK6LMQ7_cjs.compilePhysicsBlock(block);
|
|
601
|
+
return chunkIYK6LMQ7_cjs.physicsToURDF(phys);
|
|
602
602
|
},
|
|
603
603
|
audio: (block) => {
|
|
604
|
-
const audio =
|
|
604
|
+
const audio = chunkIYK6LMQ7_cjs.compileAudioSourceBlock(block);
|
|
605
605
|
return `<!-- Audio: ${this.escapeStringValue(audio.name, "TypeScript")} (${audio.keyword}) clip="${audio.properties.clip || ""}" volume="${audio.properties.volume ?? 1}" -->`;
|
|
606
606
|
},
|
|
607
607
|
weather: (block) => {
|
|
608
|
-
const weather =
|
|
608
|
+
const weather = chunkIYK6LMQ7_cjs.compileWeatherBlock(block);
|
|
609
609
|
return `<!-- Weather: ${weather.keyword} "${weather.name || ""}" layers: ${weather.layers.map((l) => l.type).join(", ")} -->`;
|
|
610
610
|
}
|
|
611
611
|
},
|
|
@@ -677,8 +677,8 @@ var init_URDFCompiler = chunkZHPMP447_cjs.__esm({
|
|
|
677
677
|
const link = {
|
|
678
678
|
name: linkName,
|
|
679
679
|
origin: {
|
|
680
|
-
xyz:
|
|
681
|
-
rpy:
|
|
680
|
+
xyz: [0, 0, 0],
|
|
681
|
+
rpy: [0, 0, 0]
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
684
|
if (this.options.includeVisual && geometry) {
|
|
@@ -1428,5 +1428,5 @@ exports.createURDFCompiler = createURDFCompiler;
|
|
|
1428
1428
|
exports.generateControllersYaml = generateControllersYaml;
|
|
1429
1429
|
exports.generateROS2LaunchFile = generateROS2LaunchFile;
|
|
1430
1430
|
exports.init_URDFCompiler = init_URDFCompiler;
|
|
1431
|
-
//# sourceMappingURL=chunk-
|
|
1432
|
-
//# sourceMappingURL=chunk-
|
|
1431
|
+
//# sourceMappingURL=chunk-N2BOTBPG.cjs.map
|
|
1432
|
+
//# sourceMappingURL=chunk-N2BOTBPG.cjs.map
|