@holoscript/core 6.1.3 → 8.0.0
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/dist/{GLTFPipeline-SFIORFJU.js → GLTFPipeline-276GE64O.js} +6 -6
- package/dist/{GLTFPipeline-VNNDPONV.cjs → GLTFPipeline-M7WSSJED.cjs} +10 -10
- package/dist/HoloScriptRuntime-3URVTKPJ.js +10 -0
- package/dist/HoloScriptRuntime-SXEAEU2N.cjs +19 -0
- package/dist/{chunk-2B7WVIDZ.js → chunk-23J755AR.js} +4 -4
- package/dist/{chunk-HANL7K2Q.cjs → chunk-253GBQZY.cjs} +38 -38
- package/dist/{chunk-KQTPCYTG.cjs → chunk-25IQCHTO.cjs} +38 -38
- package/dist/{chunk-V73NPPTM.cjs → chunk-3AO425MZ.cjs} +20 -20
- package/dist/{chunk-6S6TKNEA.cjs → chunk-3HYYMEXI.cjs} +279 -124
- package/dist/{chunk-IHESJZSW.js → chunk-3NFFOWGG.js} +6 -209
- package/dist/{chunk-AO4I2Z7M.cjs → chunk-3WZEJHUQ.cjs} +7 -7
- package/dist/{chunk-IRWWS72C.cjs → chunk-4V2E7U7Q.cjs} +7 -7
- package/dist/{chunk-ER4GATIU.js → chunk-62FBK3B7.js} +6 -6
- package/dist/{chunk-L63H3SQ4.cjs → chunk-6DPSFNJB.cjs} +19 -19
- package/dist/{chunk-XFXGA5IW.cjs → chunk-73FELZVJ.cjs} +14 -14
- package/dist/{chunk-QWNQ523V.cjs → chunk-7CUEMLDZ.cjs} +47 -47
- package/dist/{chunk-52ULD552.cjs → chunk-7HIASF7S.cjs} +13 -13
- package/dist/{chunk-U4NBQJBY.js → chunk-ANXZFVY2.js} +3 -3
- package/dist/{chunk-NHHVLKV3.js → chunk-AYBXB26F.js} +5 -5
- package/dist/{chunk-KX76JUQY.js → chunk-B4TFTDG4.js} +3 -3
- package/dist/{chunk-OEFY723R.js → chunk-BE4UJCQT.js} +4 -4
- package/dist/{chunk-DIL6DDDN.cjs → chunk-C2A5DUMF.cjs} +38 -38
- package/dist/{chunk-H3MGK7TX.cjs → chunk-CXFDRBQU.cjs} +10 -10
- package/dist/{chunk-4SY77NA4.cjs → chunk-D54CNIAJ.cjs} +2 -2
- package/dist/{chunk-22W6NGYN.js → chunk-DAJXW4KX.js} +3 -3
- package/dist/{chunk-RUXGBKPS.cjs → chunk-EUDQTK7N.cjs} +15 -222
- package/dist/{chunk-SXYLMIGP.js → chunk-F43YAA34.js} +3 -3
- package/dist/{chunk-H5DZIHJP.cjs → chunk-FYSPZT4V.cjs} +7 -7
- package/dist/{chunk-TK74TR4H.js → chunk-GIOYPNTH.js} +36 -2
- package/dist/{chunk-2HLIGOKU.cjs → chunk-GQHQOPXZ.cjs} +36 -2
- package/dist/{chunk-BPICAGBV.cjs → chunk-GQT4TYKY.cjs} +35 -35
- package/dist/{chunk-QAVXL2IH.js → chunk-GYZE55MO.js} +3 -3
- package/dist/{chunk-77V4GTCA.js → chunk-H652NHX5.js} +78 -74
- package/dist/{chunk-KHPCJRI3.cjs → chunk-HINXWAOD.cjs} +14 -14
- package/dist/{chunk-W6P2GBHH.cjs → chunk-HZSPDCXV.cjs} +3 -3
- package/dist/{chunk-EMMC5CSQ.js → chunk-HZTDET3N.js} +4 -4
- package/dist/{chunk-5CKA5SXU.js → chunk-IPWSXCCN.js} +4 -4
- package/dist/{chunk-GQYKQSTC.cjs → chunk-IUTY5WQ2.cjs} +5 -5
- package/dist/{chunk-MSMIFMBL.js → chunk-IVSZDECV.js} +4 -4
- package/dist/{chunk-2A7FURVO.js → chunk-IZM5VQZD.js} +4 -4
- package/dist/{chunk-33XCOVE3.js → chunk-J6M4FPK5.js} +3 -3
- package/dist/{chunk-6KMK2UXT.cjs → chunk-JC5YBPSF.cjs} +5 -5
- package/dist/{chunk-W55Z7QIX.js → chunk-JCLBKPMX.js} +3 -3
- package/dist/{chunk-MXJ5SS53.cjs → chunk-JJBE3TIH.cjs} +10 -10
- package/dist/{chunk-HRODTEEO.js → chunk-JX7YL6ZE.js} +5 -5
- package/dist/{chunk-IVIA7K75.cjs → chunk-K4VVR7CN.cjs} +18 -18
- package/dist/{chunk-VSK7W3O5.cjs → chunk-KEFNV2WM.cjs} +16 -16
- package/dist/{chunk-HZCQO4JM.cjs → chunk-KH4CNH66.cjs} +4 -4
- package/dist/{chunk-6FGQNDR4.js → chunk-KJLB4OPV.js} +4 -4
- package/dist/{chunk-RMHC2VG7.cjs → chunk-KKP7JKN4.cjs} +6 -2
- package/dist/{chunk-OEV5RMZO.cjs → chunk-KQCN6AKJ.cjs} +5 -5
- package/dist/{chunk-7AD52FRS.cjs → chunk-KVRSTFNH.cjs} +14 -14
- package/dist/{chunk-ZKSS47EV.cjs → chunk-LICPB5HZ.cjs} +13 -13
- package/dist/{chunk-S5IFXW6E.js → chunk-MGE5Z4GS.js} +4 -4
- package/dist/{chunk-6L4VE27M.js → chunk-NBMHU6SW.js} +4 -4
- package/dist/{chunk-QCCBXSCE.js → chunk-NGKREZ36.js} +5 -5
- package/dist/{chunk-27MPVJVZ.cjs → chunk-NHWSN2SD.cjs} +21 -21
- package/dist/{chunk-XMWZG36H.js → chunk-NV4VMVXU.js} +3 -3
- package/dist/{chunk-Y3MWXQSB.cjs → chunk-NXZFOPVD.cjs} +19 -19
- package/dist/{chunk-ZUL5AVTX.cjs → chunk-OBIYPYYS.cjs} +5 -5
- package/dist/{chunk-ZXBZVXDW.js → chunk-OMXII44L.js} +3 -3
- package/dist/{chunk-MJVIRCUV.cjs → chunk-OR4Q2BGL.cjs} +18 -18
- package/dist/{chunk-6ASWLXXN.js → chunk-PHVRG4I2.js} +4 -4
- package/dist/{chunk-QTPMJRGS.js → chunk-QPSKHBJP.js} +6 -2
- package/dist/{chunk-VEXPG4WN.js → chunk-QXH7QDSZ.js} +3 -3
- package/dist/chunk-RARB3MBR.js +207 -0
- package/dist/{chunk-EOBB6A4B.js → chunk-RVBHAXFG.js} +231 -76
- package/dist/{chunk-XXZJEFKW.cjs → chunk-S3MDHNKB.cjs} +5 -5
- package/dist/{chunk-4UUKPCY4.js → chunk-S4W6Z2MN.js} +4 -4
- package/dist/{chunk-BVLP6D3Q.cjs → chunk-SJBGLS25.cjs} +5 -5
- package/dist/chunk-SMIWS6DE.cjs +212 -0
- package/dist/{chunk-R3IVNY6P.js → chunk-T2QCTZMO.js} +4 -4
- package/dist/{chunk-AIX25INK.cjs → chunk-TVHSPJ4N.cjs} +79 -75
- package/dist/{chunk-Z5XMPRNC.cjs → chunk-U44IKGG7.cjs} +30 -30
- package/dist/{chunk-OPZ7XDDI.js → chunk-UJXISJBN.js} +3 -3
- package/dist/{chunk-FXKTYFYA.js → chunk-UM6C3CGK.js} +4 -4
- package/dist/{chunk-LAOCQJ2M.js → chunk-UMABK6SI.js} +4 -4
- package/dist/{chunk-GN3KDX4W.js → chunk-V6MKC2FZ.js} +3 -3
- package/dist/{chunk-EDPQSGB3.cjs → chunk-W7VDOASB.cjs} +5 -5
- package/dist/{chunk-DMXC24WV.js → chunk-WJIHFLMJ.js} +2 -2
- package/dist/{chunk-UDMYRFDZ.js → chunk-WRKUDAZJ.js} +3 -3
- package/dist/{chunk-GCMWDSBZ.cjs → chunk-XIVIE43A.cjs} +5 -5
- package/dist/{chunk-UD3DSHZM.js → chunk-XKTPFXGA.js} +3 -3
- package/dist/{chunk-HGVXZDSK.cjs → chunk-XUUVDHIF.cjs} +7 -7
- package/dist/{chunk-5N54COB6.cjs → chunk-YN6V7R3L.cjs} +13 -13
- package/dist/{chunk-I2O7TW6B.js → chunk-ZBQXLH2L.js} +4 -4
- package/dist/{chunk-EOFNVCM6.js → chunk-ZU7NIRT6.js} +11 -11
- package/dist/{chunk-P7YIA5LN.js → chunk-ZZEI7MV4.js} +4 -4
- package/dist/compiler/agent-inference.cjs +6 -6
- package/dist/compiler/agent-inference.js +2 -2
- 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/ar.cjs +5 -5
- package/dist/compiler/ar.js +3 -3
- package/dist/compiler/babylon.cjs +5 -5
- package/dist/compiler/babylon.js +4 -4
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +5 -5
- package/dist/compiler/context.js +2 -2
- package/dist/compiler/domain-block-utils.cjs +151 -151
- 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 +182 -182
- package/dist/compiler/index.js +56 -56
- 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/multi-layer.cjs +7 -7
- package/dist/compiler/multi-layer.js +6 -6
- package/dist/compiler/openxr.cjs +5 -5
- package/dist/compiler/openxr.js +4 -4
- package/dist/compiler/playcanvas.cjs +5 -5
- package/dist/compiler/playcanvas.js +4 -4
- package/dist/compiler/r3f.cjs +9 -9
- package/dist/compiler/r3f.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/vrr.cjs +6 -6
- package/dist/compiler/vrr.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/debugger.cjs +7 -6
- package/dist/debugger.js +5 -4
- package/dist/entries/scripting.cjs +0 -13
- package/dist/entries/scripting.js +0 -1
- package/dist/index.cjs +1002 -881
- package/dist/index.js +506 -87
- package/dist/parser.cjs +5 -5
- package/dist/parser.js +1 -1
- package/dist/reconstruction/index.cjs +31 -31
- package/dist/reconstruction/index.js +2 -2
- package/dist/runtime.cjs +302 -4
- package/dist/runtime.d.ts +61 -0
- package/dist/runtime.js +25 -3
- package/dist/traits/index.cjs +450 -439
- package/dist/traits/index.js +24 -13
- package/package.json +20 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
4
4
|
var chunkYKGPCZEE_cjs = require('./chunk-YKGPCZEE.cjs');
|
|
5
5
|
var chunk6EX3I5P4_cjs = require('./chunk-6EX3I5P4.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.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 "${chunkKKP7JKN4_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: ${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}`);
|
|
236
236
|
compiler.emit("");
|
|
237
237
|
compiler.emit("import Foundation");
|
|
238
238
|
compiler.emit("import SceneKit");
|
|
@@ -251,7 +251,7 @@ function generateSceneFile(compiler, composition) {
|
|
|
251
251
|
for (const obj of composition.objects || []) {
|
|
252
252
|
const varName = compiler.sanitizeName(obj.name);
|
|
253
253
|
compiler.emit(
|
|
254
|
-
`nodes["${
|
|
254
|
+
`nodes["${chunkKKP7JKN4_cjs.escapeStringValue(obj.name, "Swift")}"] = make${varName}()`
|
|
255
255
|
);
|
|
256
256
|
}
|
|
257
257
|
compiler.emit("return nodes");
|
|
@@ -285,7 +285,7 @@ function generateStateFile(compiler, composition) {
|
|
|
285
285
|
compiler.lines = [];
|
|
286
286
|
compiler.indentLevel = 0;
|
|
287
287
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler");
|
|
288
|
-
compiler.emit(`// State: ${
|
|
288
|
+
compiler.emit(`// State: ${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}`);
|
|
289
289
|
compiler.emit("");
|
|
290
290
|
compiler.emit("import Foundation");
|
|
291
291
|
compiler.emit("import SceneKit");
|
|
@@ -302,7 +302,7 @@ function generateStateFile(compiler, composition) {
|
|
|
302
302
|
const swiftType = compiler.toSwiftType(prop.value);
|
|
303
303
|
const swiftValue = compiler.toSwiftValue(prop.value);
|
|
304
304
|
compiler.emit(
|
|
305
|
-
`@Published var ${
|
|
305
|
+
`@Published var ${chunkKKP7JKN4_cjs.escapeStringValue(prop.key, "Swift")}: ${swiftType} = ${swiftValue}`
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
308
|
compiler.emit("");
|
|
@@ -456,7 +456,7 @@ function generateInfoPlist(compiler, composition) {
|
|
|
456
456
|
<true/>
|
|
457
457
|
</dict>
|
|
458
458
|
<key>CFBundleDisplayName</key>
|
|
459
|
-
<string>${
|
|
459
|
+
<string>${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "XML")}</string>
|
|
460
460
|
<key>MinimumOSVersion</key>
|
|
461
461
|
<string>${compiler.options.iosVersion}</string>
|
|
462
462
|
</dict>
|
|
@@ -490,7 +490,7 @@ function compileObjectFactory(compiler, obj) {
|
|
|
490
490
|
compiler.emit("geometry.materials = [material]");
|
|
491
491
|
compiler.emit("");
|
|
492
492
|
compiler.emit("let node = SCNNode(geometry: geometry)");
|
|
493
|
-
compiler.emit(`node.name = "${
|
|
493
|
+
compiler.emit(`node.name = "${chunkKKP7JKN4_cjs.escapeStringValue(obj.name, "Swift")}"`);
|
|
494
494
|
const pos = compiler.findObjProp(obj, "position");
|
|
495
495
|
if (pos && Array.isArray(pos)) {
|
|
496
496
|
compiler.emit(`node.position = SCNVector3(${pos[0]}, ${pos[1]}, ${pos[2]})`);
|
|
@@ -549,7 +549,7 @@ function compileLightFactory(compiler, light) {
|
|
|
549
549
|
}
|
|
550
550
|
compiler.emit("");
|
|
551
551
|
compiler.emit("let node = SCNNode()");
|
|
552
|
-
compiler.emit(`node.name = "${
|
|
552
|
+
compiler.emit(`node.name = "${chunkKKP7JKN4_cjs.escapeStringValue(light.name, "Swift")}"`);
|
|
553
553
|
compiler.emit("node.light = light");
|
|
554
554
|
const posProp = light.properties.find((p) => p.key === "position");
|
|
555
555
|
if (posProp && Array.isArray(posProp.value)) {
|
|
@@ -596,7 +596,7 @@ function compileAction(compiler, action) {
|
|
|
596
596
|
const name = compiler.sanitizeName(action.name);
|
|
597
597
|
compiler.emit(`func ${name}() {`);
|
|
598
598
|
compiler.indentLevel++;
|
|
599
|
-
compiler.emit(`print("[HoloScript] Action: ${
|
|
599
|
+
compiler.emit(`print("[HoloScript] Action: ${chunkKKP7JKN4_cjs.escapeStringValue(action.name, "Swift")}")`);
|
|
600
600
|
compiler.emit("// Action implementation");
|
|
601
601
|
compiler.indentLevel--;
|
|
602
602
|
compiler.emit("}");
|
|
@@ -682,14 +682,14 @@ function emitGeoAnchorMethods(compiler, composition) {
|
|
|
682
682
|
});
|
|
683
683
|
const headingConfig = typeof headingTrait === "string" ? {} : headingTrait?.config || {};
|
|
684
684
|
const heading = headingConfig.degrees ?? 0;
|
|
685
|
-
compiler.emit(`// Geo-anchor: ${
|
|
685
|
+
compiler.emit(`// Geo-anchor: ${chunkKKP7JKN4_cjs.escapeStringValue(obj.name, "Swift")}`);
|
|
686
686
|
if (usesARGeoAnchor) {
|
|
687
687
|
compiler.emit(
|
|
688
|
-
`createGeoAnchor(name: "${
|
|
688
|
+
`createGeoAnchor(name: "${chunkKKP7JKN4_cjs.escapeStringValue(obj.name, "Swift")}", latitude: ${lat}, longitude: ${lng}, altitude: ${alt}, heading: ${heading})`
|
|
689
689
|
);
|
|
690
690
|
} else {
|
|
691
691
|
compiler.emit(
|
|
692
|
-
`createLocationAnchor(name: "${
|
|
692
|
+
`createLocationAnchor(name: "${chunkKKP7JKN4_cjs.escapeStringValue(obj.name, "Swift")}", latitude: ${lat}, longitude: ${lng}, altitude: ${alt})`
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
695
|
}
|
|
@@ -812,7 +812,7 @@ function emitGeoAnchorMethods(compiler, composition) {
|
|
|
812
812
|
}
|
|
813
813
|
var init_IOSARGenerators = chunkHCCQLAA4_cjs.__esm({
|
|
814
814
|
"src/compiler/IOSARGenerators.ts"() {
|
|
815
|
-
|
|
815
|
+
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
816
816
|
}
|
|
817
817
|
});
|
|
818
818
|
|
|
@@ -832,7 +832,7 @@ function generateRoomPlanFile(compiler, composition) {
|
|
|
832
832
|
const cls = compiler.options.className;
|
|
833
833
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 RoomPlan integration");
|
|
834
834
|
compiler.emit(
|
|
835
|
-
`// Source: composition "${
|
|
835
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
836
836
|
);
|
|
837
837
|
compiler.emit("// Requires iOS 16.0+, RoomPlan framework");
|
|
838
838
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -1188,7 +1188,7 @@ function generateLiDARScannerFile(compiler, composition) {
|
|
|
1188
1188
|
const traits = collectLiDARTraits(composition);
|
|
1189
1189
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 LiDAR Scanner integration");
|
|
1190
1190
|
compiler.emit(
|
|
1191
|
-
`// Source: composition "${
|
|
1191
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
1192
1192
|
);
|
|
1193
1193
|
compiler.emit("// Requires iOS 15.0+, device with LiDAR sensor");
|
|
1194
1194
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -1665,7 +1665,7 @@ function generateNPUSceneFile(compiler, composition) {
|
|
|
1665
1665
|
const defaults = chunk6EX3I5P4_cjs.NPU_SCENE_DEFAULTS;
|
|
1666
1666
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 NPU Scene Understanding");
|
|
1667
1667
|
compiler.emit(
|
|
1668
|
-
`// Source: composition "${
|
|
1668
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
1669
1669
|
);
|
|
1670
1670
|
compiler.emit("// Requires iOS 15.0+, Vision + CoreML frameworks");
|
|
1671
1671
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2071,7 +2071,7 @@ function generatePortalARFile(compiler, composition) {
|
|
|
2071
2071
|
const cls = compiler.options.className;
|
|
2072
2072
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Portal AR integration");
|
|
2073
2073
|
compiler.emit(
|
|
2074
|
-
`// Source: composition "${
|
|
2074
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2075
2075
|
);
|
|
2076
2076
|
compiler.emit("// Requires iOS 15.0+, ARKit with scene reconstruction");
|
|
2077
2077
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2405,7 +2405,7 @@ function generatePortalARFile(compiler, composition) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
var init_IOSSpatialGenerators = chunkHCCQLAA4_cjs.__esm({
|
|
2407
2407
|
"src/compiler/IOSSpatialGenerators.ts"() {
|
|
2408
|
-
|
|
2408
|
+
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
2409
2409
|
chunkYKGPCZEE_cjs.init_roomplan();
|
|
2410
2410
|
chunkYKGPCZEE_cjs.init_lidar_scanner();
|
|
2411
2411
|
chunk6EX3I5P4_cjs.init_npu_scene();
|
|
@@ -2439,7 +2439,7 @@ function generateHandTrackingFile(compiler, composition) {
|
|
|
2439
2439
|
const hasToSpatial = compiler.compositionHasTrait(composition, "camera_hand_to_spatial");
|
|
2440
2440
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Hand Tracking integration");
|
|
2441
2441
|
compiler.emit(
|
|
2442
|
-
`// Source: composition "${
|
|
2442
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2443
2443
|
);
|
|
2444
2444
|
compiler.emit("// Requires iOS 14.0+, Vision framework");
|
|
2445
2445
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -2735,7 +2735,7 @@ function generateObjectCaptureFile(compiler, composition) {
|
|
|
2735
2735
|
const traits = collectObjectCaptureTraits(composition);
|
|
2736
2736
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 Object Capture integration");
|
|
2737
2737
|
compiler.emit(
|
|
2738
|
-
`// Source: composition "${
|
|
2738
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
2739
2739
|
);
|
|
2740
2740
|
compiler.emit("// Requires iOS 17.0+, RealityKit Object Capture API");
|
|
2741
2741
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -3260,7 +3260,7 @@ function generateSharePlayFile(compiler, composition) {
|
|
|
3260
3260
|
const cls = compiler.options.className;
|
|
3261
3261
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 SharePlay Multi-User AR");
|
|
3262
3262
|
compiler.emit(
|
|
3263
|
-
`// Source: composition "${
|
|
3263
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
3264
3264
|
);
|
|
3265
3265
|
compiler.emit("// Requires iOS 15.4+, GroupActivities framework");
|
|
3266
3266
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -3862,7 +3862,7 @@ function generateFaceTrackingFile(compiler, composition) {
|
|
|
3862
3862
|
const hasTongue = compiler.compositionHasTrait(composition, "face_tongue_detect");
|
|
3863
3863
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 TrueDepth Face Tracking");
|
|
3864
3864
|
compiler.emit(
|
|
3865
|
-
`// Source: composition "${
|
|
3865
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
3866
3866
|
);
|
|
3867
3867
|
compiler.emit("// Requires iOS 11.0+, ARKit, TrueDepth camera");
|
|
3868
3868
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -4256,7 +4256,7 @@ function generateUWBPositioningFile(compiler, composition) {
|
|
|
4256
4256
|
const cls = compiler.options.className;
|
|
4257
4257
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 UWB Positioning");
|
|
4258
4258
|
compiler.emit(
|
|
4259
|
-
`// Source: composition "${
|
|
4259
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
4260
4260
|
);
|
|
4261
4261
|
compiler.emit("// Requires iOS 16+, U1/U2 chip (iPhone 11+), Nearby Interaction framework");
|
|
4262
4262
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -4784,7 +4784,7 @@ function generateSpatialAudioFile(compiler, composition) {
|
|
|
4784
4784
|
const traits = collectSpatialAudioTraits(composition);
|
|
4785
4785
|
compiler.emit("// Auto-generated by HoloScript IOSCompiler \u2014 AirPods Spatial Audio");
|
|
4786
4786
|
compiler.emit(
|
|
4787
|
-
`// Source: composition "${
|
|
4787
|
+
`// Source: composition "${chunkKKP7JKN4_cjs.escapeStringValue(composition.name, "Swift")}"`
|
|
4788
4788
|
);
|
|
4789
4789
|
compiler.emit("// Requires iOS 15+, AirPods Pro/Max with head tracking");
|
|
4790
4790
|
compiler.emit("// Do not edit manually \u2014 regenerate from .holo source");
|
|
@@ -5208,7 +5208,7 @@ function generateSpatialAudioFile(compiler, composition) {
|
|
|
5208
5208
|
}
|
|
5209
5209
|
var init_IOSPeripheralGenerators = chunkHCCQLAA4_cjs.__esm({
|
|
5210
5210
|
"src/compiler/IOSPeripheralGenerators.ts"() {
|
|
5211
|
-
|
|
5211
|
+
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
5212
5212
|
chunk6EX3I5P4_cjs.init_camera_hand_tracking();
|
|
5213
5213
|
chunkYKGPCZEE_cjs.init_face_tracking();
|
|
5214
5214
|
chunkYKGPCZEE_cjs.init_ios_object_capture();
|
|
@@ -5231,11 +5231,11 @@ function compileToIOS(composition, options) {
|
|
|
5231
5231
|
exports.IOSCompiler = void 0;
|
|
5232
5232
|
var init_IOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
5233
5233
|
"src/compiler/IOSCompiler.ts"() {
|
|
5234
|
-
|
|
5234
|
+
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
5235
5235
|
init_IOSARGenerators();
|
|
5236
5236
|
init_IOSSpatialGenerators();
|
|
5237
5237
|
init_IOSPeripheralGenerators();
|
|
5238
|
-
exports.IOSCompiler = class extends
|
|
5238
|
+
exports.IOSCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
5239
5239
|
constructor(options = {}) {
|
|
5240
5240
|
super();
|
|
5241
5241
|
this.compilerName = "IOSCompiler";
|
|
@@ -5386,5 +5386,5 @@ var init_IOSCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
5386
5386
|
exports.IOSCompiler_exports = IOSCompiler_exports;
|
|
5387
5387
|
exports.compileToIOS = compileToIOS;
|
|
5388
5388
|
exports.init_IOSCompiler = init_IOSCompiler;
|
|
5389
|
-
//# sourceMappingURL=chunk-
|
|
5390
|
-
//# sourceMappingURL=chunk-
|
|
5389
|
+
//# sourceMappingURL=chunk-U44IKGG7.cjs.map
|
|
5390
|
+
//# sourceMappingURL=chunk-U44IKGG7.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
2
2
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
3
3
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
4
4
|
|
|
@@ -483,5 +483,5 @@ var init_ARCompiler = __esm({
|
|
|
483
483
|
});
|
|
484
484
|
|
|
485
485
|
export { ARCompiler, ARCompiler_default, ARCompiler_exports, init_ARCompiler };
|
|
486
|
-
//# sourceMappingURL=chunk-
|
|
487
|
-
//# sourceMappingURL=chunk-
|
|
486
|
+
//# sourceMappingURL=chunk-UJXISJBN.js.map
|
|
487
|
+
//# sourceMappingURL=chunk-UJXISJBN.js.map
|
|
@@ -2,8 +2,8 @@ import { init_material_properties_visual, init_surface_texture_visual, init_ligh
|
|
|
2
2
|
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
|
|
3
3
|
import { init_TraitVisualRegistry, init_types, init_TraitCompositor, TraitCompositor, TraitVisualRegistry } from './chunk-4C57PR42.js';
|
|
4
4
|
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GZG4KA4E.js';
|
|
5
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileSimulationBlock, simulationToR3F, compileWeatherBlock, weatherToR3F, compileAudioSourceBlock, audioSourceToR3F, compilePostProcessingBlock, postProcessingToR3F, compileParticleBlock, particlesToR3F, compilePhysicsBlock, physicsToR3F, compileMaterialBlock, materialToR3F } from './chunk-
|
|
6
|
-
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError, escapeStringValue } from './chunk-
|
|
5
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileSimulationBlock, simulationToR3F, compileWeatherBlock, weatherToR3F, compileAudioSourceBlock, audioSourceToR3F, compilePostProcessingBlock, postProcessingToR3F, compileParticleBlock, particlesToR3F, compilePhysicsBlock, physicsToR3F, compileMaterialBlock, materialToR3F } from './chunk-JCLBKPMX.js';
|
|
6
|
+
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError, escapeStringValue } from './chunk-QPSKHBJP.js';
|
|
7
7
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
8
8
|
|
|
9
9
|
// src/traits/visual/presets/hologram-media.visual.ts
|
|
@@ -4371,5 +4371,5 @@ var init_R3FCompiler = __esm({
|
|
|
4371
4371
|
});
|
|
4372
4372
|
|
|
4373
4373
|
export { ASTNodePool, ENVIRONMENT_PRESETS, MATERIAL_PRESETS, QUALITY_TIER_SCALES, R3FCompiler, R3FCompiler_exports, UI_COMPONENT_PRESETS, init_ObjectPool, init_R3FCompiler, init_visual, registerAllPresets };
|
|
4374
|
-
//# sourceMappingURL=chunk-
|
|
4375
|
-
//# sourceMappingURL=chunk-
|
|
4374
|
+
//# sourceMappingURL=chunk-UM6C3CGK.js.map
|
|
4375
|
+
//# sourceMappingURL=chunk-UM6C3CGK.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToGodot, compileInputBlock, navigationToGodot, compileNavigationBlock, renderingToGodot, compileRenderingBlock, proceduralToGodot, compileProceduralBlock, web3ToGodot, compileWeb3Block, architectureToGodot, compileArchitectureBlock, musicToGodot, compileMusicBlock, educationToGodot, compileEducationBlock, datavizToGodot, compileDataVizBlock, iotToGodot, compileIoTBlock, compileRoboticsBlock, roboticsToGodot, compileHealthcareBlock, healthcareToGodot, compilePaymentBlock, paymentToGodot, compileNarrativeBlock, narrativeToGodot, compileWeatherBlock, weatherToGodot, compileAudioSourceBlock, audioSourceToGodot, compilePostProcessingBlock, postProcessingToGodot, compileParticleBlock, particlesToGodot, compilePhysicsBlock, physicsToGodot, compileMaterialBlock, materialToGodot } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToGodot, compileInputBlock, navigationToGodot, compileNavigationBlock, renderingToGodot, compileRenderingBlock, proceduralToGodot, compileProceduralBlock, web3ToGodot, compileWeb3Block, architectureToGodot, compileArchitectureBlock, musicToGodot, compileMusicBlock, educationToGodot, compileEducationBlock, datavizToGodot, compileDataVizBlock, iotToGodot, compileIoTBlock, compileRoboticsBlock, roboticsToGodot, compileHealthcareBlock, healthcareToGodot, compilePaymentBlock, paymentToGodot, compileNarrativeBlock, narrativeToGodot, compileWeatherBlock, weatherToGodot, compileAudioSourceBlock, audioSourceToGodot, compilePostProcessingBlock, postProcessingToGodot, compileParticleBlock, particlesToGodot, compilePhysicsBlock, physicsToGodot, compileMaterialBlock, materialToGodot } from './chunk-JCLBKPMX.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
3
3
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
5
5
|
|
|
@@ -682,5 +682,5 @@ var init_GodotCompiler = __esm({
|
|
|
682
682
|
});
|
|
683
683
|
|
|
684
684
|
export { GodotCompiler, GodotCompiler_exports, init_GodotCompiler };
|
|
685
|
-
//# sourceMappingURL=chunk-
|
|
686
|
-
//# sourceMappingURL=chunk-
|
|
685
|
+
//# sourceMappingURL=chunk-UMABK6SI.js.map
|
|
686
|
+
//# sourceMappingURL=chunk-UMABK6SI.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
2
2
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
3
3
|
|
|
4
4
|
// src/compiler/AgentInferenceExportTarget.ts
|
|
@@ -975,5 +975,5 @@ function createPythonAgentInferenceCompiler(options) {
|
|
|
975
975
|
var AgentInferenceExportTarget_default = AgentInferenceCompiler;
|
|
976
976
|
|
|
977
977
|
export { AgentInferenceCompiler, AgentInferenceExportTarget_default, createAgentInferenceCompiler, createPythonAgentInferenceCompiler };
|
|
978
|
-
//# sourceMappingURL=chunk-
|
|
979
|
-
//# sourceMappingURL=chunk-
|
|
978
|
+
//# sourceMappingURL=chunk-V6MKC2FZ.js.map
|
|
979
|
+
//# sourceMappingURL=chunk-V6MKC2FZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSJBGLS25_cjs = require('./chunk-SJBGLS25.cjs');
|
|
4
4
|
|
|
5
5
|
// src/reconstruction/FusedAttentionKernel.ts
|
|
6
6
|
var FUSED_ATTENTION_WGSL = `
|
|
@@ -585,9 +585,9 @@ function mobileSensorBundleToFrames(bundle) {
|
|
|
585
585
|
}
|
|
586
586
|
async function replayMobileSensorBundle(bundle, config = {}) {
|
|
587
587
|
const frames = mobileSensorBundleToFrames(bundle);
|
|
588
|
-
const runtime =
|
|
588
|
+
const runtime = chunkSJBGLS25_cjs.createHoloMapRuntime();
|
|
589
589
|
await runtime.init({
|
|
590
|
-
...
|
|
590
|
+
...chunkSJBGLS25_cjs.HOLOMAP_DEFAULTS,
|
|
591
591
|
seed: 0,
|
|
592
592
|
modelHash: bundle.bundleId,
|
|
593
593
|
videoHash: bundle.bundleId,
|
|
@@ -635,5 +635,5 @@ exports.mergeAnchoredProvenance = mergeAnchoredProvenance;
|
|
|
635
635
|
exports.mobileSensorBundleToFrames = mobileSensorBundleToFrames;
|
|
636
636
|
exports.replayMobileSensorBundle = replayMobileSensorBundle;
|
|
637
637
|
exports.validateMobileSensorBundle = validateMobileSensorBundle;
|
|
638
|
-
//# sourceMappingURL=chunk-
|
|
639
|
-
//# sourceMappingURL=chunk-
|
|
638
|
+
//# sourceMappingURL=chunk-W7VDOASB.cjs.map
|
|
639
|
+
//# sourceMappingURL=chunk-W7VDOASB.cjs.map
|
|
@@ -400,5 +400,5 @@ function registerBusinessQuestTools(server) {
|
|
|
400
400
|
var BusinessQuestTools_default = handleBusinessQuestToolCall;
|
|
401
401
|
|
|
402
402
|
export { BUSINESS_QUEST_TOOLS, BusinessQuestTools_default, buildVRRCompositionFromDraft, businessVRRDraftSchema, draftToHoloPreview, handleBusinessQuestToolCall, registerBusinessQuestTools, validateBusinessVRRDraft };
|
|
403
|
-
//# sourceMappingURL=chunk-
|
|
404
|
-
//# sourceMappingURL=chunk-
|
|
403
|
+
//# sourceMappingURL=chunk-WJIHFLMJ.js.map
|
|
404
|
+
//# sourceMappingURL=chunk-WJIHFLMJ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { init_AndroidKotlinHelpers, sanitizeNameCapitalized, getSceneformGeometry, findObjProp, toKotlinType, toKotlinValue, toAndroidColor, compositionHasTrait } from './chunk-FDSGHPAK.js';
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
3
3
|
import { init_geospatial, init_depth_scanner, init_spatial_authoring, init_haptic_feedback, init_nearby_connections, init_foldable_display, init_samsung_dex, init_google_lens, init_webxr, SPATIAL_AUTHORING_TRAITS, SPATIAL_AUTHORING_DEFAULTS, HAPTIC_FEEDBACK_TRAITS, NEARBY_CONNECTIONS_TRAITS, FOLDABLE_DISPLAY_TRAITS, SAMSUNG_DEX_TRAITS, GOOGLE_LENS_TRAITS, WEBXR_TRAITS, DEPTH_SCANNER_TRAITS, GEOSPATIAL_DEFAULTS, DEPTH_SCANNER_DEFAULTS } from './chunk-WKX5AMOY.js';
|
|
4
4
|
import { init_portal_ar, init_camera_hand_tracking, init_npu_scene, NPU_SCENE_TRAITS, NPU_SCENE_DEFAULTS, CAMERA_HAND_TRACKING_TRAITS, PORTAL_AR_TRAITS } from './chunk-CBJY23VL.js';
|
|
5
5
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
@@ -3034,5 +3034,5 @@ var init_AndroidCompiler = __esm({
|
|
|
3034
3034
|
});
|
|
3035
3035
|
|
|
3036
3036
|
export { AndroidCompiler, AndroidCompiler_exports, compileToAndroid, init_AndroidCompiler };
|
|
3037
|
-
//# sourceMappingURL=chunk-
|
|
3038
|
-
//# sourceMappingURL=chunk-
|
|
3037
|
+
//# sourceMappingURL=chunk-WRKUDAZJ.js.map
|
|
3038
|
+
//# sourceMappingURL=chunk-WRKUDAZJ.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
4
4
|
var ans = require('@holoscript/core-types/ans');
|
|
5
5
|
|
|
6
6
|
// src/compiler/LLMProviderCapabilitiesCompiler.ts
|
|
7
|
-
|
|
7
|
+
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
8
8
|
var VENDOR_AS_SUBSTRATE_PATTERNS = [
|
|
9
9
|
{ pattern: /managed_agents_replaces_holomesh/i, rule: "W.GOLD.002 - vendor framework cannot replace HoloMesh" },
|
|
10
10
|
{ pattern: /vector_store_as_source_of_truth/i, rule: "docs/LLM_CAPABILITIES.md hard-don'ts - vendor stores never source-of-truth" },
|
|
@@ -62,7 +62,7 @@ var ADAPTER_OPTIONAL_BOOLEAN_FIELDS = ADAPTER_CAPABILITY_FIELD_ORDER.filter(
|
|
|
62
62
|
"bearerTokenAccess"
|
|
63
63
|
].includes(field)
|
|
64
64
|
);
|
|
65
|
-
var LLMProviderCapabilitiesCompiler = class extends
|
|
65
|
+
var LLMProviderCapabilitiesCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
66
66
|
constructor(options = {}) {
|
|
67
67
|
super();
|
|
68
68
|
this.compilerName = "LLMProviderCapabilitiesCompiler";
|
|
@@ -725,5 +725,5 @@ function daysBetween(earlier, later) {
|
|
|
725
725
|
exports.LLMCapabilityCompileError = LLMCapabilityCompileError;
|
|
726
726
|
exports.LLMProviderCapabilitiesCompiler = LLMProviderCapabilitiesCompiler;
|
|
727
727
|
exports.createLLMProviderCapabilitiesCompiler = createLLMProviderCapabilitiesCompiler;
|
|
728
|
-
//# sourceMappingURL=chunk-
|
|
729
|
-
//# sourceMappingURL=chunk-
|
|
728
|
+
//# sourceMappingURL=chunk-XIVIE43A.cjs.map
|
|
729
|
+
//# sourceMappingURL=chunk-XIVIE43A.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { init_ProvenanceSemiring, authorityWeight, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
|
|
2
|
-
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError } from './chunk-
|
|
2
|
+
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError } from './chunk-QPSKHBJP.js';
|
|
3
3
|
|
|
4
4
|
// src/compiler/TraitCompositionCompiler.ts
|
|
5
5
|
init_AgentRBAC();
|
|
@@ -160,5 +160,5 @@ var UnauthorizedTraitCompositionAccessError = class extends UnauthorizedCompiler
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
export { CompositionConflictError, MissingComponentError, TraitCompositionCompiler, UnauthorizedTraitCompositionAccessError };
|
|
163
|
-
//# sourceMappingURL=chunk-
|
|
164
|
-
//# sourceMappingURL=chunk-
|
|
163
|
+
//# sourceMappingURL=chunk-XKTPFXGA.js.map
|
|
164
|
+
//# sourceMappingURL=chunk-XKTPFXGA.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
4
4
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/compiler/DomainBlockCompilerMixin.ts
|
|
7
7
|
function esc(value, target) {
|
|
8
|
-
return
|
|
8
|
+
return chunkKKP7JKN4_cjs.escapeStringValue(value, target);
|
|
9
9
|
}
|
|
10
10
|
function compileMaterialBlock(block) {
|
|
11
11
|
const type = block.keyword === "unlit_material" ? "unlit" : block.keyword === "shader" ? "shader" : "pbr";
|
|
@@ -3799,13 +3799,13 @@ function hexToRGBA(hex, alpha) {
|
|
|
3799
3799
|
];
|
|
3800
3800
|
}
|
|
3801
3801
|
function getRequiredCapability() {
|
|
3802
|
-
return
|
|
3802
|
+
return chunkKKP7JKN4_cjs.ANSCapabilityPath.DOMAIN_BLOCK;
|
|
3803
3803
|
}
|
|
3804
3804
|
exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = void 0;
|
|
3805
3805
|
var init_DomainBlockCompilerMixin = chunkHCCQLAA4_cjs.__esm({
|
|
3806
3806
|
"src/compiler/DomainBlockCompilerMixin.ts"() {
|
|
3807
|
-
|
|
3808
|
-
|
|
3807
|
+
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
3808
|
+
chunkKKP7JKN4_cjs.init_ANSNamespace();
|
|
3809
3809
|
exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = "/compile/mixin/domain-block";
|
|
3810
3810
|
}
|
|
3811
3811
|
});
|
|
@@ -3958,5 +3958,5 @@ exports.web3ToR3F = web3ToR3F;
|
|
|
3958
3958
|
exports.web3ToUSDA = web3ToUSDA;
|
|
3959
3959
|
exports.web3ToUnity = web3ToUnity;
|
|
3960
3960
|
exports.web3ToVRChat = web3ToVRChat;
|
|
3961
|
-
//# sourceMappingURL=chunk-
|
|
3962
|
-
//# sourceMappingURL=chunk-
|
|
3961
|
+
//# sourceMappingURL=chunk-XUUVDHIF.cjs.map
|
|
3962
|
+
//# sourceMappingURL=chunk-XUUVDHIF.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
4
4
|
|
|
5
5
|
// src/compiler/QuantumCircuitCompiler.ts
|
|
6
|
-
|
|
6
|
+
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
7
7
|
function qubitsForMolecule(atoms) {
|
|
8
8
|
const orbitalCount = atoms.reduce((sum, a) => {
|
|
9
9
|
if (a.symbol === "H") return sum + 1;
|
|
@@ -65,7 +65,7 @@ function generateVQECircuit(atoms, moleculeName, ansatzLayers, initialParams) {
|
|
|
65
65
|
}
|
|
66
66
|
if (numQubits > 20) {
|
|
67
67
|
warnings.push(
|
|
68
|
-
`Circuit uses ${numQubits} qubits
|
|
68
|
+
`Circuit uses ${numQubits} qubits - near-term hardware is limited to ~20 qubits without error correction. Consider a smaller basis set.`
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
const n = numQubits;
|
|
@@ -88,7 +88,7 @@ function generateVQECircuit(atoms, moleculeName, ansatzLayers, initialParams) {
|
|
|
88
88
|
}
|
|
89
89
|
let paramIdx = 0;
|
|
90
90
|
for (let layer = 0; layer < ansatzLayers; layer++) {
|
|
91
|
-
lines.push(`// Layer ${layer}: Ry rotations (
|
|
91
|
+
lines.push(`// Layer ${layer}: Ry rotations ( - [${paramIdx}..${paramIdx + n - 1}] optimised by VQE)`);
|
|
92
92
|
for (let i = 0; i < n; i++) {
|
|
93
93
|
lines.push(`ry(theta_${paramIdx}) q[${i}];`);
|
|
94
94
|
paramIdx++;
|
|
@@ -117,7 +117,7 @@ function generateQAOACircuit(weightMatrix, p, initialGamma, initialBeta) {
|
|
|
117
117
|
}
|
|
118
118
|
if (n > 50) {
|
|
119
119
|
warnings.push(
|
|
120
|
-
`Circuit uses ${n} qubits
|
|
120
|
+
`Circuit uses ${n} qubits - near-term hardware handles ~50 qubits without error correction.`
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
123
|
const defaultGamma = initialGamma ?? 0.5;
|
|
@@ -144,7 +144,7 @@ function generateQAOACircuit(weightMatrix, p, initialGamma, initialBeta) {
|
|
|
144
144
|
lines.push(`h q[${i}];`);
|
|
145
145
|
}
|
|
146
146
|
for (let round = 0; round < p; round++) {
|
|
147
|
-
lines.push(`// Problem unitary
|
|
147
|
+
lines.push(`// Problem unitary - round ${round + 1} (gamma=gamma_${round})`);
|
|
148
148
|
for (let i = 0; i < n; i++) {
|
|
149
149
|
for (let j = i + 1; j < n; j++) {
|
|
150
150
|
const w = weightMatrix[i]?.[j] ?? 0;
|
|
@@ -156,7 +156,7 @@ function generateQAOACircuit(weightMatrix, p, initialGamma, initialBeta) {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
lines.push(`// Mixer unitary
|
|
159
|
+
lines.push(`// Mixer unitary - round ${round + 1} (beta=beta_${round})`);
|
|
160
160
|
for (let i = 0; i < n; i++) {
|
|
161
161
|
lines.push(`rx(2.0 * beta_${round}) q[${i}];`);
|
|
162
162
|
}
|
|
@@ -185,7 +185,7 @@ function generateStubCircuit() {
|
|
|
185
185
|
]
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
var QuantumCircuitCompiler = class extends
|
|
188
|
+
var QuantumCircuitCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
189
189
|
constructor() {
|
|
190
190
|
super(...arguments);
|
|
191
191
|
this.compilerName = "QuantumCircuitCompiler";
|
|
@@ -195,9 +195,9 @@ var QuantumCircuitCompiler = class extends chunkRMHC2VG7_cjs.CompilerBase {
|
|
|
195
195
|
*
|
|
196
196
|
* The method scans `composition.objects` for the first object that carries a
|
|
197
197
|
* `@quantumCircuit` or `@quantum_circuit` trait. Trait params drive the type:
|
|
198
|
-
* - `molecule` (or `atoms`)
|
|
199
|
-
* - `weightMatrix` / `weight_matrix` / `adjacency` / `numNodes`
|
|
200
|
-
* - none of the above
|
|
198
|
+
* - `molecule` (or `atoms`) - VQE hardware-efficient ansatz
|
|
199
|
+
* - `weightMatrix` / `weight_matrix` / `adjacency` / `numNodes` - QAOA Max-Cut
|
|
200
|
+
* - none of the above - stub 1-qubit circuit with a warning
|
|
201
201
|
*
|
|
202
202
|
* @param composition - Parsed HoloScript AST
|
|
203
203
|
* @param agentToken - JWT RBAC token or UCAN CapabilityTokenCredential (optional)
|
|
@@ -323,5 +323,5 @@ var QuantumCircuitCompiler = class extends chunkRMHC2VG7_cjs.CompilerBase {
|
|
|
323
323
|
};
|
|
324
324
|
|
|
325
325
|
exports.QuantumCircuitCompiler = QuantumCircuitCompiler;
|
|
326
|
-
//# sourceMappingURL=chunk-
|
|
327
|
-
//# sourceMappingURL=chunk-
|
|
326
|
+
//# sourceMappingURL=chunk-YN6V7R3L.cjs.map
|
|
327
|
+
//# sourceMappingURL=chunk-YN6V7R3L.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToPlayCanvas, compilePostProcessingBlock, compileParticleBlock, particlesToPlayCanvas, compilePhysicsBlock, physicsToPlayCanvas, compileMaterialBlock, materialToPlayCanvas } from './chunk-
|
|
3
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToPlayCanvas, compilePostProcessingBlock, compileParticleBlock, particlesToPlayCanvas, compilePhysicsBlock, physicsToPlayCanvas, compileMaterialBlock, materialToPlayCanvas } from './chunk-JCLBKPMX.js';
|
|
3
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
4
4
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
6
6
|
|
|
@@ -752,5 +752,5 @@ var init_PlayCanvasCompiler = __esm({
|
|
|
752
752
|
});
|
|
753
753
|
|
|
754
754
|
export { PlayCanvasCompiler, PlayCanvasCompiler_exports, init_PlayCanvasCompiler };
|
|
755
|
-
//# sourceMappingURL=chunk-
|
|
756
|
-
//# sourceMappingURL=chunk-
|
|
755
|
+
//# sourceMappingURL=chunk-ZBQXLH2L.js.map
|
|
756
|
+
//# sourceMappingURL=chunk-ZBQXLH2L.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
2
2
|
|
|
3
3
|
// src/compiler/QuantumCircuitCompiler.ts
|
|
4
4
|
init_CompilerBase();
|
|
@@ -63,7 +63,7 @@ function generateVQECircuit(atoms, moleculeName, ansatzLayers, initialParams) {
|
|
|
63
63
|
}
|
|
64
64
|
if (numQubits > 20) {
|
|
65
65
|
warnings.push(
|
|
66
|
-
`Circuit uses ${numQubits} qubits
|
|
66
|
+
`Circuit uses ${numQubits} qubits - near-term hardware is limited to ~20 qubits without error correction. Consider a smaller basis set.`
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
const n = numQubits;
|
|
@@ -86,7 +86,7 @@ function generateVQECircuit(atoms, moleculeName, ansatzLayers, initialParams) {
|
|
|
86
86
|
}
|
|
87
87
|
let paramIdx = 0;
|
|
88
88
|
for (let layer = 0; layer < ansatzLayers; layer++) {
|
|
89
|
-
lines.push(`// Layer ${layer}: Ry rotations (
|
|
89
|
+
lines.push(`// Layer ${layer}: Ry rotations ( - [${paramIdx}..${paramIdx + n - 1}] optimised by VQE)`);
|
|
90
90
|
for (let i = 0; i < n; i++) {
|
|
91
91
|
lines.push(`ry(theta_${paramIdx}) q[${i}];`);
|
|
92
92
|
paramIdx++;
|
|
@@ -115,7 +115,7 @@ function generateQAOACircuit(weightMatrix, p, initialGamma, initialBeta) {
|
|
|
115
115
|
}
|
|
116
116
|
if (n > 50) {
|
|
117
117
|
warnings.push(
|
|
118
|
-
`Circuit uses ${n} qubits
|
|
118
|
+
`Circuit uses ${n} qubits - near-term hardware handles ~50 qubits without error correction.`
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
const defaultGamma = initialGamma ?? 0.5;
|
|
@@ -142,7 +142,7 @@ function generateQAOACircuit(weightMatrix, p, initialGamma, initialBeta) {
|
|
|
142
142
|
lines.push(`h q[${i}];`);
|
|
143
143
|
}
|
|
144
144
|
for (let round = 0; round < p; round++) {
|
|
145
|
-
lines.push(`// Problem unitary
|
|
145
|
+
lines.push(`// Problem unitary - round ${round + 1} (gamma=gamma_${round})`);
|
|
146
146
|
for (let i = 0; i < n; i++) {
|
|
147
147
|
for (let j = i + 1; j < n; j++) {
|
|
148
148
|
const w = weightMatrix[i]?.[j] ?? 0;
|
|
@@ -154,7 +154,7 @@ function generateQAOACircuit(weightMatrix, p, initialGamma, initialBeta) {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
lines.push(`// Mixer unitary
|
|
157
|
+
lines.push(`// Mixer unitary - round ${round + 1} (beta=beta_${round})`);
|
|
158
158
|
for (let i = 0; i < n; i++) {
|
|
159
159
|
lines.push(`rx(2.0 * beta_${round}) q[${i}];`);
|
|
160
160
|
}
|
|
@@ -193,9 +193,9 @@ var QuantumCircuitCompiler = class extends CompilerBase {
|
|
|
193
193
|
*
|
|
194
194
|
* The method scans `composition.objects` for the first object that carries a
|
|
195
195
|
* `@quantumCircuit` or `@quantum_circuit` trait. Trait params drive the type:
|
|
196
|
-
* - `molecule` (or `atoms`)
|
|
197
|
-
* - `weightMatrix` / `weight_matrix` / `adjacency` / `numNodes`
|
|
198
|
-
* - none of the above
|
|
196
|
+
* - `molecule` (or `atoms`) - VQE hardware-efficient ansatz
|
|
197
|
+
* - `weightMatrix` / `weight_matrix` / `adjacency` / `numNodes` - QAOA Max-Cut
|
|
198
|
+
* - none of the above - stub 1-qubit circuit with a warning
|
|
199
199
|
*
|
|
200
200
|
* @param composition - Parsed HoloScript AST
|
|
201
201
|
* @param agentToken - JWT RBAC token or UCAN CapabilityTokenCredential (optional)
|
|
@@ -321,5 +321,5 @@ var QuantumCircuitCompiler = class extends CompilerBase {
|
|
|
321
321
|
};
|
|
322
322
|
|
|
323
323
|
export { QuantumCircuitCompiler };
|
|
324
|
-
//# sourceMappingURL=chunk-
|
|
325
|
-
//# sourceMappingURL=chunk-
|
|
324
|
+
//# sourceMappingURL=chunk-ZU7NIRT6.js.map
|
|
325
|
+
//# sourceMappingURL=chunk-ZU7NIRT6.js.map
|