@holoscript/core 8.0.4 → 8.0.6
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-W45UOCNY.cjs → GLTFPipeline-PVLTKDBD.cjs} +11 -11
- package/dist/{GLTFPipeline-PN3DN6FO.js → GLTFPipeline-QPI4I7DL.js} +7 -7
- package/dist/{HoloScriptRuntime-ACDFKVVH.js → HoloScriptRuntime-6ZGLUCFS.js} +3 -3
- package/dist/{HoloScriptRuntime-ON2OQVEF.cjs → HoloScriptRuntime-ALUASIL2.cjs} +4 -4
- package/dist/{chunk-V6MKC2FZ.js → chunk-2GQHTXOK.js} +3 -3
- package/dist/{chunk-ROHLEP2W.cjs → chunk-2J5WZLF5.cjs} +19 -19
- package/dist/{chunk-HKEXJUWS.cjs → chunk-2VL6SJ33.cjs} +7 -7
- package/dist/{chunk-YWOBW2PV.cjs → chunk-3B5NVDHJ.cjs} +18 -18
- package/dist/{chunk-J7XZV333.js → chunk-3B7AY37W.js} +4 -4
- package/dist/{chunk-33AZRKKQ.cjs → chunk-3OIZJNVT.cjs} +5 -5
- package/dist/{chunk-HNDK4IQU.cjs → chunk-3SBVODUP.cjs} +19 -19
- package/dist/{chunk-JBNDTXXV.cjs → chunk-44GM3P4G.cjs} +18 -18
- package/dist/{chunk-MVPBWHAC.js → chunk-4DO425P5.js} +3 -3
- package/dist/{chunk-VDDJUO4G.cjs → chunk-4FDL7JLJ.cjs} +76 -45
- package/dist/{chunk-XB274MW5.cjs → chunk-5BLWXOIP.cjs} +13 -13
- package/dist/{chunk-QACVP4PM.js → chunk-5BQIJG3O.js} +33 -5
- package/dist/{chunk-XKTPFXGA.js → chunk-5IHG2LGT.js} +3 -3
- package/dist/{chunk-7M3PNU2M.cjs → chunk-5TIZXMED.cjs} +10 -10
- package/dist/{chunk-UFZZ7TSN.cjs → chunk-6DOKCECB.cjs} +20 -20
- package/dist/{chunk-DXWOTOUK.js → chunk-6OTFG3EB.js} +3 -3
- package/dist/{chunk-DHXLCJJN.js → chunk-7MVLEZB2.js} +3 -3
- package/dist/{chunk-5NWINHR5.cjs → chunk-A3GFOZAF.cjs} +38 -38
- package/dist/{chunk-OBIYPYYS.cjs → chunk-BFROVZOF.cjs} +5 -5
- package/dist/{chunk-UWJHCOH2.js → chunk-BKCK3IU6.js} +4 -4
- package/dist/{chunk-DHO2YRIM.js → chunk-C34AJIJO.js} +4 -4
- package/dist/{chunk-QPSKHBJP.js → chunk-CXS3DUKD.js} +12 -6
- package/dist/{chunk-ANXZFVY2.js → chunk-D63CGNJU.js} +3 -3
- package/dist/{chunk-CCATWPXM.js → chunk-DBPGNHFS.js} +4 -4
- package/dist/{chunk-6DO5IZ5N.cjs → chunk-DCE3LDO3.cjs} +36 -6
- package/dist/{chunk-BOVPWH4H.js → chunk-DPZXVDGM.js} +3 -3
- package/dist/{chunk-6S5VS7BF.cjs → chunk-DQRQZB33.cjs} +3 -3
- package/dist/{chunk-QD32ADK6.js → chunk-E64LOLJU.js} +4 -4
- package/dist/{chunk-IUTY5WQ2.cjs → chunk-E767PVC6.cjs} +5 -5
- package/dist/{chunk-CMT5NMMS.js → chunk-EK7L4DW7.js} +4 -4
- package/dist/{chunk-D3STJ56J.js → chunk-F63LYRVE.js} +4 -4
- package/dist/{chunk-XF3AATZJ.js → chunk-GCYR3D2K.js} +5 -5
- package/dist/{chunk-UPXIY52O.cjs → chunk-H5PUZHJV.cjs} +103 -10
- package/dist/{chunk-2X7NGX3M.js → chunk-HBEN5TQR.js} +4 -4
- package/dist/{chunk-2IWC4FP7.cjs → chunk-HBLKLLG5.cjs} +10 -10
- package/dist/{chunk-NCWCUZNS.cjs → chunk-IBXT6UP3.cjs} +14 -14
- package/dist/{chunk-DAJXW4KX.js → chunk-IIUFMUTV.js} +3 -3
- package/dist/{chunk-OH2FAIVU.js → chunk-IS4AEGLU.js} +4 -4
- package/dist/{chunk-PY37LNDP.js → chunk-ISG3TQ2O.js} +4 -4
- package/dist/{chunk-ADADVMXY.js → chunk-ISM4NX6N.js} +2 -2
- package/dist/{chunk-WRKUDAZJ.js → chunk-JEB5UU3E.js} +3 -3
- package/dist/{chunk-RLLNOI3T.js → chunk-K5UGRXKR.js} +5 -5
- package/dist/{chunk-OMXII44L.js → chunk-KDZRD6EI.js} +3 -3
- package/dist/{chunk-ZU7NIRT6.js → chunk-LAUFLPB6.js} +3 -3
- package/dist/{chunk-JC5YBPSF.cjs → chunk-LY4DMQOW.cjs} +5 -5
- package/dist/{chunk-KQCN6AKJ.cjs → chunk-N5YOAFNA.cjs} +5 -5
- package/dist/{chunk-QSCGZ4DW.js → chunk-NDUX553L.js} +36 -6
- package/dist/{chunk-5H2G27PK.cjs → chunk-NE5CZ2NC.cjs} +38 -38
- package/dist/{chunk-4SDKXQ4C.js → chunk-NPDNFPTU.js} +4 -4
- package/dist/{chunk-S3MDHNKB.cjs → chunk-NTGBEMYL.cjs} +5 -5
- package/dist/{chunk-CR4FMIWL.cjs → chunk-NTJZJ5IP.cjs} +14 -14
- package/dist/{chunk-3WZEJHUQ.cjs → chunk-OXGPGQXN.cjs} +7 -7
- package/dist/{chunk-YN2YWTXW.js → chunk-P4AIF7OQ.js} +4 -4
- package/dist/{chunk-YVD3CSO3.js → chunk-P52PPB5R.js} +4 -4
- package/dist/{chunk-ELEHNDDS.cjs → chunk-PVWNU4QT.cjs} +5 -5
- package/dist/{chunk-KKP7JKN4.cjs → chunk-QWAR3GY6.cjs} +12 -6
- package/dist/{chunk-UWXE23BT.cjs → chunk-QWSB553J.cjs} +4 -4
- package/dist/{chunk-GYZE55MO.js → chunk-RCZHLCX2.js} +3 -3
- package/dist/{chunk-FFAOS5HQ.js → chunk-RXU4PQKA.js} +6 -6
- package/dist/{chunk-JYTTPNKK.js → chunk-S6OVFUXD.js} +3 -3
- package/dist/{chunk-TWUXUCEW.cjs → chunk-TCBJMNXS.cjs} +38 -38
- package/dist/{chunk-J6M4FPK5.js → chunk-TDCJ7YPA.js} +3 -3
- package/dist/{chunk-4V2E7U7Q.cjs → chunk-TFUMBR7G.cjs} +7 -7
- package/dist/{chunk-XIVIE43A.cjs → chunk-TFWYKOOB.cjs} +5 -5
- package/dist/{chunk-7H33U5SM.cjs → chunk-TJIMBJ6L.cjs} +2 -2
- package/dist/{chunk-QXH7QDSZ.js → chunk-U36W76U7.js} +3 -3
- package/dist/{chunk-37ZNYWWW.js → chunk-ULXWSPCK.js} +38 -7
- package/dist/{chunk-QRPRIJ2W.js → chunk-VATGR4EM.js} +103 -11
- package/dist/{chunk-5PLWAEQQ.cjs → chunk-VFKXK4GR.cjs} +16 -16
- package/dist/{chunk-LHAXPADA.js → chunk-VHAONJBY.js} +4 -4
- package/dist/{chunk-YN6V7R3L.cjs → chunk-WOH6LKYT.cjs} +5 -5
- package/dist/{chunk-R24NNAEG.js → chunk-X4EBCG4K.js} +4 -4
- package/dist/{chunk-AVJHHUC5.cjs → chunk-X7LYK5TX.cjs} +21 -21
- package/dist/{chunk-FYSPZT4V.cjs → chunk-X7QB5PL5.cjs} +7 -7
- package/dist/{chunk-IUDGEUDO.cjs → chunk-XHZCF3AS.cjs} +13 -13
- package/dist/{chunk-SMRVK6BI.cjs → chunk-YAPPQYJH.cjs} +5 -5
- package/dist/{chunk-U44IKGG7.cjs → chunk-YG3OAHJZ.cjs} +30 -30
- package/dist/{chunk-U5GLSXSD.cjs → chunk-YTR32ZEB.cjs} +80 -49
- package/dist/{chunk-UJXISJBN.js → chunk-YU5RJQPE.js} +3 -3
- package/dist/{chunk-IWC5DM2M.cjs → chunk-ZXZ2AL2J.cjs} +14 -14
- 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 +152 -152
- 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 +375 -185
- package/dist/compiler/index.js +236 -57
- 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 +10 -10
- package/dist/compiler/r3f.js +5 -5
- 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 +4 -4
- package/dist/debugger.js +2 -2
- package/dist/index.cjs +570 -1940
- package/dist/index.js +86 -1456
- package/dist/reconstruction/index.cjs +31 -31
- package/dist/reconstruction/index.js +2 -2
- package/dist/runtime.cjs +14 -6
- package/dist/runtime.js +2 -2
- package/dist/traits/botanical-lotus.cjs +52 -48
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/index.cjs +481 -473
- package/dist/traits/index.js +12 -8
- package/package.json +63 -47
|
@@ -528,9 +528,10 @@ function lotusSmoothstep(edge0, edge1, x) {
|
|
|
528
528
|
return t * t * (3 - 2 * t);
|
|
529
529
|
}
|
|
530
530
|
function lotusPetalHalfWidthFraction(v) {
|
|
531
|
-
const broad = Math.sin(Math.PI * Math.pow(v,
|
|
532
|
-
const
|
|
533
|
-
|
|
531
|
+
const broad = Math.sin(Math.PI * Math.pow(v, 1.3));
|
|
532
|
+
const baseFill = 0.25 + 0.75 * lotusSmoothstep(0, 0.18, v);
|
|
533
|
+
const tipRound = 1 - lotusSmoothstep(0.9, 1, v) * 0.3;
|
|
534
|
+
return Math.max(0, broad * baseFill * tipRound);
|
|
534
535
|
}
|
|
535
536
|
function buildLotusPetalGeometryData(params = {}) {
|
|
536
537
|
const P = { ...exports.DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS, ...params };
|
|
@@ -617,7 +618,69 @@ function buildLotusPetalGeometryData(params = {}) {
|
|
|
617
618
|
k += 6;
|
|
618
619
|
}
|
|
619
620
|
}
|
|
620
|
-
|
|
621
|
+
const thickness = P.thickness ?? 0;
|
|
622
|
+
if (thickness <= 0) {
|
|
623
|
+
return { positions, normals, petalUv, veinPhase, indices, vertexCount };
|
|
624
|
+
}
|
|
625
|
+
const N = vertexCount;
|
|
626
|
+
const total = N * 2;
|
|
627
|
+
const sPos = new Float32Array(total * 3);
|
|
628
|
+
const sNorm = new Float32Array(total * 3);
|
|
629
|
+
const sUv = new Float32Array(total * 2);
|
|
630
|
+
const sVein = new Float32Array(total);
|
|
631
|
+
sPos.set(positions, 0);
|
|
632
|
+
sNorm.set(normals, 0);
|
|
633
|
+
sUv.set(petalUv, 0);
|
|
634
|
+
sVein.set(veinPhase, 0);
|
|
635
|
+
for (let idx = 0; idx < N; idx += 1) {
|
|
636
|
+
const nx = normals[idx * 3];
|
|
637
|
+
const ny = normals[idx * 3 + 1];
|
|
638
|
+
const nz = normals[idx * 3 + 2];
|
|
639
|
+
sPos[(N + idx) * 3] = positions[idx * 3] - nx * thickness;
|
|
640
|
+
sPos[(N + idx) * 3 + 1] = positions[idx * 3 + 1] - ny * thickness;
|
|
641
|
+
sPos[(N + idx) * 3 + 2] = positions[idx * 3 + 2] - nz * thickness;
|
|
642
|
+
sNorm[(N + idx) * 3] = -nx;
|
|
643
|
+
sNorm[(N + idx) * 3 + 1] = -ny;
|
|
644
|
+
sNorm[(N + idx) * 3 + 2] = -nz;
|
|
645
|
+
sUv[(N + idx) * 2] = petalUv[idx * 2];
|
|
646
|
+
sUv[(N + idx) * 2 + 1] = petalUv[idx * 2 + 1];
|
|
647
|
+
sVein[N + idx] = veinPhase[idx];
|
|
648
|
+
}
|
|
649
|
+
const boundary = [];
|
|
650
|
+
for (let i = 0; i < nu; i += 1) boundary.push(i);
|
|
651
|
+
for (let j = 0; j < nv; j += 1) boundary.push(j * cols + nu);
|
|
652
|
+
for (let i = nu; i > 0; i -= 1) boundary.push(nv * cols + i);
|
|
653
|
+
for (let j = nv; j > 0; j -= 1) boundary.push(j * cols);
|
|
654
|
+
const frontTris = indices.length;
|
|
655
|
+
const sIdx = new Uint32Array(frontTris * 2 + boundary.length * 6);
|
|
656
|
+
sIdx.set(indices, 0);
|
|
657
|
+
let bk = frontTris;
|
|
658
|
+
for (let tIdx = 0; tIdx < frontTris; tIdx += 3) {
|
|
659
|
+
sIdx[bk] = indices[tIdx] + N;
|
|
660
|
+
sIdx[bk + 1] = indices[tIdx + 2] + N;
|
|
661
|
+
sIdx[bk + 2] = indices[tIdx + 1] + N;
|
|
662
|
+
bk += 3;
|
|
663
|
+
}
|
|
664
|
+
let ek = frontTris * 2;
|
|
665
|
+
for (let e = 0; e < boundary.length; e += 1) {
|
|
666
|
+
const a = boundary[e];
|
|
667
|
+
const b = boundary[(e + 1) % boundary.length];
|
|
668
|
+
sIdx[ek] = a;
|
|
669
|
+
sIdx[ek + 1] = b;
|
|
670
|
+
sIdx[ek + 2] = b + N;
|
|
671
|
+
sIdx[ek + 3] = a;
|
|
672
|
+
sIdx[ek + 4] = b + N;
|
|
673
|
+
sIdx[ek + 5] = a + N;
|
|
674
|
+
ek += 6;
|
|
675
|
+
}
|
|
676
|
+
return {
|
|
677
|
+
positions: sPos,
|
|
678
|
+
normals: sNorm,
|
|
679
|
+
petalUv: sUv,
|
|
680
|
+
veinPhase: sVein,
|
|
681
|
+
indices: sIdx,
|
|
682
|
+
vertexCount: total
|
|
683
|
+
};
|
|
621
684
|
}
|
|
622
685
|
function lotusPetalGeometryParamsFromProfile(profile, options = {}) {
|
|
623
686
|
const rings = profile.petal_rings;
|
|
@@ -654,6 +717,25 @@ function buildLotusFlowerPlacements(profile = createBotanicalLotusRenderProfile(
|
|
|
654
717
|
});
|
|
655
718
|
return placements;
|
|
656
719
|
}
|
|
720
|
+
function buildLotusSceneScaffold() {
|
|
721
|
+
return {
|
|
722
|
+
waterSize: 60,
|
|
723
|
+
stem: { height: 2.4, topRadius: 0.045, bottomRadius: 0.06 },
|
|
724
|
+
receptacle: { radius: 0.42, squashY: 0.72, lift: 0.04 },
|
|
725
|
+
calyx: { radius: 0.16, height: 0.28, drop: 0.18 },
|
|
726
|
+
pads: [
|
|
727
|
+
{ pos: [2.4, 0.02, 1.1], radius: 1.2, rotation: 0.3, dark: false },
|
|
728
|
+
{ pos: [-2.7, 0.02, -0.6], radius: 1.5, rotation: 1.2, dark: true },
|
|
729
|
+
{ pos: [0.6, 0.02, -3], radius: 1, rotation: 2.5, dark: false },
|
|
730
|
+
{ pos: [-1.4, 0.02, 2.8], radius: 1.1, rotation: 3.6, dark: true }
|
|
731
|
+
],
|
|
732
|
+
leaves: [
|
|
733
|
+
{ pos: [3.7, 0, 1.5], height: 1.5, radius: 1.4, tilt: 0.22, rotation: 0.4, dark: false },
|
|
734
|
+
{ pos: [-4, 0, -1.3], height: 1.2, radius: 1.6, tilt: 0.3, rotation: 1.6, dark: true },
|
|
735
|
+
{ pos: [1.4, 0, -3.7], height: 1, radius: 1.2, tilt: 0.18, rotation: 2.7, dark: false }
|
|
736
|
+
]
|
|
737
|
+
};
|
|
738
|
+
}
|
|
657
739
|
function lotusMulberry32(seed) {
|
|
658
740
|
let a = seed >>> 0;
|
|
659
741
|
return () => {
|
|
@@ -1481,7 +1563,14 @@ diffuseColor.rgb += lotusVeinColor * lotusVeinColorField * uLotusVeinIntensity *
|
|
|
1481
1563
|
diffuseColor.a *= mix(0.7, 1.0, uLotusGrowth);`,
|
|
1482
1564
|
/** Spliced after `#include <emissivemap_fragment>` — backlit subsurface scatter. */
|
|
1483
1565
|
fragmentEmissiveInjection: `
|
|
1484
|
-
|
|
1566
|
+
// NaN-safe: guard normalize() of the interpolated normal/view vectors \u2014 on thin
|
|
1567
|
+
// petals they can interpolate to ~0, and normalize(vec3(0)) divides by zero (X4008),
|
|
1568
|
+
// leaking NaN/Inf that flickers across the bloom. Fall back to a +z facing vector.
|
|
1569
|
+
float lotusNLen = length(vLotusWorldNormal);
|
|
1570
|
+
float lotusVLen = length(vLotusViewDir);
|
|
1571
|
+
vec3 lotusN = lotusNLen > 1e-4 ? vLotusWorldNormal / lotusNLen : vec3(0.0, 0.0, 1.0);
|
|
1572
|
+
vec3 lotusV = lotusVLen > 1e-4 ? vLotusViewDir / lotusVLen : vec3(0.0, 0.0, 1.0);
|
|
1573
|
+
float lotusBacklight = pow(1.0 - abs(dot(lotusN, lotusV)), 2.15);
|
|
1485
1574
|
float lotusTranslucency = mix(uLotusTransmissionBase, uLotusTransmissionEdge, lotusEdge);
|
|
1486
1575
|
float lotusPulse = 0.92 + sin(uLotusTime * 0.65 + vLotusVeinPhase * 6.28318) * 0.08;
|
|
1487
1576
|
vec3 lotusScatter = uLotusSubsurfaceColor * lotusBacklight * lotusTranslucency * uLotusSSS * uLotusGrowth * lotusPulse;
|
|
@@ -1511,13 +1600,16 @@ totalEmissiveRadiance += lotusScatter * (0.28 + uLotusBloom * 0.72);`
|
|
|
1511
1600
|
};
|
|
1512
1601
|
exports.DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS = {
|
|
1513
1602
|
length: 1.7,
|
|
1514
|
-
width
|
|
1515
|
-
|
|
1603
|
+
// Broader (width/length 0.65 → 0.85) + a deeper cup so each petal reads as a wide
|
|
1604
|
+
// cupped tear-drop, not a thin sliver; the obovate silhouette does the rest.
|
|
1605
|
+
width: 1.45,
|
|
1606
|
+
cup: 0.4,
|
|
1516
1607
|
ridge: 0.12,
|
|
1517
1608
|
gravitySag: 0.18,
|
|
1518
1609
|
segmentsU: 24,
|
|
1519
1610
|
segmentsV: 40,
|
|
1520
|
-
veinPhase: 0
|
|
1611
|
+
veinPhase: 0,
|
|
1612
|
+
thickness: 0.012
|
|
1521
1613
|
};
|
|
1522
1614
|
}
|
|
1523
1615
|
});
|
|
@@ -1527,6 +1619,7 @@ exports.buildLotusFlowerPlacements = buildLotusFlowerPlacements;
|
|
|
1527
1619
|
exports.buildLotusPetalGeometryData = buildLotusPetalGeometryData;
|
|
1528
1620
|
exports.buildLotusPetalMaterialSpec = buildLotusPetalMaterialSpec;
|
|
1529
1621
|
exports.buildLotusSceneFromComposition = buildLotusSceneFromComposition;
|
|
1622
|
+
exports.buildLotusSceneScaffold = buildLotusSceneScaffold;
|
|
1530
1623
|
exports.createBotanicalLotusRenderProfile = createBotanicalLotusRenderProfile;
|
|
1531
1624
|
exports.createLotusMeristem = createLotusMeristem;
|
|
1532
1625
|
exports.createLotusMorphogen = createLotusMorphogen;
|
|
@@ -1558,5 +1651,5 @@ exports.stepLotusMorphogen2D = stepLotusMorphogen2D;
|
|
|
1558
1651
|
exports.stepLotusPetalTurgor = stepLotusPetalTurgor;
|
|
1559
1652
|
exports.stepLotusPond = stepLotusPond;
|
|
1560
1653
|
exports.validateBotanicalLotusConfig = validateBotanicalLotusConfig;
|
|
1561
|
-
//# sourceMappingURL=chunk-
|
|
1562
|
-
//# sourceMappingURL=chunk-
|
|
1654
|
+
//# sourceMappingURL=chunk-H5PUZHJV.cjs.map
|
|
1655
|
+
//# sourceMappingURL=chunk-H5PUZHJV.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_PlatformConditionalCompilerMixin, filterCompositionForPlatform } from './chunk-GZG4KA4E.js';
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToVisionOS, compilePostProcessingBlock, compileParticleBlock, particlesToVisionOS, compilePhysicsBlock, physicsToVisionOS, compileMaterialBlock, materialToVisionOS } from './chunk-
|
|
3
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToVisionOS, compilePostProcessingBlock, compileParticleBlock, particlesToVisionOS, compilePhysicsBlock, physicsToVisionOS, compileMaterialBlock, materialToVisionOS } from './chunk-DPZXVDGM.js';
|
|
3
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
|
|
4
4
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
6
6
|
|
|
@@ -2422,5 +2422,5 @@ ${layers}`;
|
|
|
2422
2422
|
});
|
|
2423
2423
|
|
|
2424
2424
|
export { VisionOSCompiler, VisionOSCompiler_exports, generateTraitCode, getTraitMapping, init_VisionOSCompiler, init_VisionOSTraitMap, listAllTraits };
|
|
2425
|
-
//# sourceMappingURL=chunk-
|
|
2426
|
-
//# sourceMappingURL=chunk-
|
|
2425
|
+
//# sourceMappingURL=chunk-HBEN5TQR.js.map
|
|
2426
|
+
//# sourceMappingURL=chunk-HBEN5TQR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk2VL6SJ33_cjs = require('./chunk-2VL6SJ33.cjs');
|
|
4
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
5
5
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
6
6
|
var ans = require('@holoscript/core-types/ans');
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ function createWASMCompiler(options) {
|
|
|
19
19
|
}
|
|
20
20
|
function compileToWASM(composition, options) {
|
|
21
21
|
const compiler = new exports.WASMCompiler(options);
|
|
22
|
-
return compiler.compile(composition,
|
|
22
|
+
return compiler.compile(composition, chunkQWAR3GY6_cjs.createTestCompilerToken());
|
|
23
23
|
}
|
|
24
24
|
function compileASTToWASM(ast, options) {
|
|
25
25
|
const compiler = new exports.WASMCompiler(options);
|
|
@@ -28,8 +28,8 @@ function compileASTToWASM(ast, options) {
|
|
|
28
28
|
var WASM_WAT_LIMITATIONS, WASM_BINARY_LIMITATIONS; exports.WASMCompiler = void 0; exports.WASMCompiler_default = void 0;
|
|
29
29
|
var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
30
30
|
"src/compiler/WASMCompiler.ts"() {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
32
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
33
33
|
WASM_WAT_LIMITATIONS = [
|
|
34
34
|
"Emits WebAssembly Text Format scaffolding only.",
|
|
35
35
|
'Does not return instantiable bytes unless format is set to "wasm".',
|
|
@@ -40,7 +40,7 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
40
40
|
"Lowers trait/lifecycle/event hooks to deterministic host event calls, not arbitrary user code.",
|
|
41
41
|
"Does not run a general-purpose WAT parser for unsupported custom WAT extensions."
|
|
42
42
|
];
|
|
43
|
-
exports.WASMCompiler = class extends
|
|
43
|
+
exports.WASMCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
44
44
|
constructor(options = {}) {
|
|
45
45
|
super();
|
|
46
46
|
this.compilerName = "WASMCompiler";
|
|
@@ -100,11 +100,11 @@ var init_WASMCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
100
100
|
if (domainBlocks.length > 0) {
|
|
101
101
|
this.emit("");
|
|
102
102
|
this.emit(" ;; === v4.2 Domain Blocks ===");
|
|
103
|
-
|
|
103
|
+
chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
104
104
|
domainBlocks,
|
|
105
105
|
{
|
|
106
106
|
material: (block) => {
|
|
107
|
-
const mat =
|
|
107
|
+
const mat = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
108
108
|
this.emit(
|
|
109
109
|
` ;; Material: "${this.escapeStringValue(mat.name, "TypeScript")}" type=${mat.type}`
|
|
110
110
|
);
|
|
@@ -1185,5 +1185,5 @@ exports.compileASTToWASM = compileASTToWASM;
|
|
|
1185
1185
|
exports.compileToWASM = compileToWASM;
|
|
1186
1186
|
exports.createWASMCompiler = createWASMCompiler;
|
|
1187
1187
|
exports.init_WASMCompiler = init_WASMCompiler;
|
|
1188
|
-
//# sourceMappingURL=chunk-
|
|
1189
|
-
//# sourceMappingURL=chunk-
|
|
1188
|
+
//# sourceMappingURL=chunk-HBLKLLG5.cjs.map
|
|
1189
|
+
//# sourceMappingURL=chunk-HBLKLLG5.cjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunk5BLWXOIP_cjs = require('./chunk-5BLWXOIP.cjs');
|
|
4
|
+
var chunkNTGBEMYL_cjs = require('./chunk-NTGBEMYL.cjs');
|
|
5
|
+
var chunk2J5WZLF5_cjs = require('./chunk-2J5WZLF5.cjs');
|
|
6
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
9
9
|
// src/compiler/MultiLayerCompiler.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var MultiLayerCompiler = class extends
|
|
10
|
+
chunk5BLWXOIP_cjs.init_VRRCompiler();
|
|
11
|
+
chunkNTGBEMYL_cjs.init_ARCompiler();
|
|
12
|
+
chunk2J5WZLF5_cjs.init_BabylonCompiler();
|
|
13
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
14
|
+
var MultiLayerCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
15
15
|
constructor(options) {
|
|
16
16
|
super();
|
|
17
17
|
this.compilerName = "MultiLayerCompiler";
|
|
@@ -28,7 +28,7 @@ var MultiLayerCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
28
28
|
errors: []
|
|
29
29
|
};
|
|
30
30
|
if (this.options.targets.includes("ar")) {
|
|
31
|
-
const arCompiler = new
|
|
31
|
+
const arCompiler = new chunkNTGBEMYL_cjs.ARCompiler({
|
|
32
32
|
target: "webxr",
|
|
33
33
|
minify: this.options.minify,
|
|
34
34
|
source_maps: this.options.source_maps,
|
|
@@ -39,7 +39,7 @@ var MultiLayerCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
39
39
|
if (!arResult.success) result.success = false;
|
|
40
40
|
}
|
|
41
41
|
if (this.options.targets.includes("vrr")) {
|
|
42
|
-
const vrrCompiler = new
|
|
42
|
+
const vrrCompiler = new chunk5BLWXOIP_cjs.VRRCompiler({
|
|
43
43
|
target: "threejs",
|
|
44
44
|
minify: this.options.minify,
|
|
45
45
|
source_maps: this.options.source_maps,
|
|
@@ -52,7 +52,7 @@ var MultiLayerCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
52
52
|
if (!vrrResult.success) result.success = false;
|
|
53
53
|
}
|
|
54
54
|
if (this.options.targets.includes("vr")) {
|
|
55
|
-
const vrCompiler = new
|
|
55
|
+
const vrCompiler = new chunk2J5WZLF5_cjs.BabylonCompiler({});
|
|
56
56
|
try {
|
|
57
57
|
const vrResult = vrCompiler.compile(composition, agentToken);
|
|
58
58
|
result.vr = vrResult;
|
|
@@ -68,5 +68,5 @@ var MultiLayerCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
exports.MultiLayerCompiler = MultiLayerCompiler;
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-IBXT6UP3.cjs.map
|
|
72
|
+
//# sourceMappingURL=chunk-IBXT6UP3.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
|
|
2
2
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
3
3
|
|
|
4
4
|
// src/compiler/LLMProviderCapabilitiesCompiler.ts
|
|
@@ -721,5 +721,5 @@ function daysBetween(earlier, later) {
|
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
export { LLMCapabilityCompileError, LLMProviderCapabilitiesCompiler, createLLMProviderCapabilitiesCompiler };
|
|
724
|
-
//# sourceMappingURL=chunk-
|
|
725
|
-
//# sourceMappingURL=chunk-
|
|
724
|
+
//# sourceMappingURL=chunk-IIUFMUTV.js.map
|
|
725
|
+
//# sourceMappingURL=chunk-IIUFMUTV.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToSDF, compileMaterialBlock, materialToSDF } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToSDF, compileMaterialBlock, materialToSDF } from './chunk-DPZXVDGM.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
|
|
3
3
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
5
5
|
|
|
@@ -604,5 +604,5 @@ ${layers}`;
|
|
|
604
604
|
});
|
|
605
605
|
|
|
606
606
|
export { SDFCompiler, SDFCompiler_default, SDFCompiler_exports, init_SDFCompiler };
|
|
607
|
-
//# sourceMappingURL=chunk-
|
|
608
|
-
//# sourceMappingURL=chunk-
|
|
607
|
+
//# sourceMappingURL=chunk-IS4AEGLU.js.map
|
|
608
|
+
//# sourceMappingURL=chunk-IS4AEGLU.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-DPZXVDGM.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.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-ISG3TQ2O.js.map
|
|
686
|
+
//# sourceMappingURL=chunk-ISG3TQ2O.js.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-ISM4NX6N.js.map
|
|
404
|
+
//# sourceMappingURL=chunk-ISM4NX6N.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-CXS3DUKD.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-JEB5UU3E.js.map
|
|
3038
|
+
//# sourceMappingURL=chunk-JEB5UU3E.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from './chunk-EKBKLK7P.js';
|
|
2
|
-
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-
|
|
2
|
+
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-ULXWSPCK.js';
|
|
3
3
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
4
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-
|
|
5
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
4
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-DPZXVDGM.js';
|
|
5
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
|
|
6
6
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
7
7
|
|
|
8
8
|
// src/compiler/GLTFPipeline.ts
|
|
@@ -2248,5 +2248,5 @@ function createGLTFPipeline(options) {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
|
|
2250
2250
|
export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture };
|
|
2251
|
-
//# sourceMappingURL=chunk-
|
|
2252
|
-
//# sourceMappingURL=chunk-
|
|
2251
|
+
//# sourceMappingURL=chunk-K5UGRXKR.js.map
|
|
2252
|
+
//# sourceMappingURL=chunk-K5UGRXKR.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase, escapeStringValue } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase, escapeStringValue } from './chunk-CXS3DUKD.js';
|
|
2
2
|
import { init_roomplan, init_lidar_scanner, init_face_tracking, init_ios_object_capture, init_shareplay, init_uwb_positioning, init_airpods_spatial_audio, ROOMPLAN_TRAITS, LIDAR_SCANNER_TRAITS, IOS_OBJECT_CAPTURE_TRAITS, FACE_TRACKING_TRAITS, SHAREPLAY_TRAITS, UWB_POSITIONING_TRAITS, AIRPODS_SPATIAL_AUDIO_TRAITS } from './chunk-SIEXCILW.js';
|
|
3
3
|
import { init_npu_scene, init_portal_ar, init_camera_hand_tracking, NPU_SCENE_TRAITS, NPU_SCENE_DEFAULTS, PORTAL_AR_TRAITS, CAMERA_HAND_TRACKING_TRAITS } from './chunk-CBJY23VL.js';
|
|
4
4
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
@@ -5382,5 +5382,5 @@ var init_IOSCompiler = __esm({
|
|
|
5382
5382
|
});
|
|
5383
5383
|
|
|
5384
5384
|
export { IOSCompiler, IOSCompiler_exports, compileToIOS, init_IOSCompiler };
|
|
5385
|
-
//# sourceMappingURL=chunk-
|
|
5386
|
-
//# sourceMappingURL=chunk-
|
|
5385
|
+
//# sourceMappingURL=chunk-KDZRD6EI.js.map
|
|
5386
|
+
//# sourceMappingURL=chunk-KDZRD6EI.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
|
|
2
2
|
|
|
3
3
|
// src/compiler/QuantumCircuitCompiler.ts
|
|
4
4
|
init_CompilerBase();
|
|
@@ -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-LAUFLPB6.js.map
|
|
325
|
+
//# sourceMappingURL=chunk-LAUFLPB6.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
4
4
|
var ans = require('@holoscript/core-types/ans');
|
|
5
5
|
|
|
6
6
|
// src/compiler/AgentInferenceExportTarget.ts
|
|
7
|
-
|
|
7
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
8
8
|
var DEFAULT_MODEL_CONFIG = {
|
|
9
9
|
provider: "anthropic",
|
|
10
10
|
// Default to Opus 4.7 — most capable Claude. Users override per-agent via
|
|
@@ -37,7 +37,7 @@ var AGENT_TRAIT_NAMES = /* @__PURE__ */ new Set([
|
|
|
37
37
|
"memory",
|
|
38
38
|
"persona"
|
|
39
39
|
]);
|
|
40
|
-
var AgentInferenceCompiler = class extends
|
|
40
|
+
var AgentInferenceCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
41
41
|
constructor(options = {}) {
|
|
42
42
|
super();
|
|
43
43
|
this.compilerName = "AgentInferenceCompiler";
|
|
@@ -980,5 +980,5 @@ exports.AgentInferenceCompiler = AgentInferenceCompiler;
|
|
|
980
980
|
exports.AgentInferenceExportTarget_default = AgentInferenceExportTarget_default;
|
|
981
981
|
exports.createAgentInferenceCompiler = createAgentInferenceCompiler;
|
|
982
982
|
exports.createPythonAgentInferenceCompiler = createPythonAgentInferenceCompiler;
|
|
983
|
-
//# sourceMappingURL=chunk-
|
|
984
|
-
//# sourceMappingURL=chunk-
|
|
983
|
+
//# sourceMappingURL=chunk-LY4DMQOW.cjs.map
|
|
984
|
+
//# sourceMappingURL=chunk-LY4DMQOW.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkFEWUHQNM_cjs = require('./chunk-FEWUHQNM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
5
5
|
var chunkDTGBOSEM_cjs = require('./chunk-DTGBOSEM.cjs');
|
|
6
6
|
var chunk6EX3I5P4_cjs = require('./chunk-6EX3I5P4.cjs');
|
|
7
7
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
@@ -2939,12 +2939,12 @@ function compileToAndroid(composition, options) {
|
|
|
2939
2939
|
exports.AndroidCompiler = void 0;
|
|
2940
2940
|
var init_AndroidCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
2941
2941
|
"src/compiler/AndroidCompiler.ts"() {
|
|
2942
|
-
|
|
2942
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
2943
2943
|
init_AndroidARGenerators();
|
|
2944
2944
|
init_AndroidFeatureGenerators();
|
|
2945
2945
|
init_AndroidPeripheralGenerators();
|
|
2946
2946
|
chunkFEWUHQNM_cjs.init_AndroidKotlinHelpers();
|
|
2947
|
-
exports.AndroidCompiler = class extends
|
|
2947
|
+
exports.AndroidCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
2948
2948
|
constructor(options = {}) {
|
|
2949
2949
|
super();
|
|
2950
2950
|
this.compilerName = "AndroidCompiler";
|
|
@@ -3038,5 +3038,5 @@ var init_AndroidCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3038
3038
|
exports.AndroidCompiler_exports = AndroidCompiler_exports;
|
|
3039
3039
|
exports.compileToAndroid = compileToAndroid;
|
|
3040
3040
|
exports.init_AndroidCompiler = init_AndroidCompiler;
|
|
3041
|
-
//# sourceMappingURL=chunk-
|
|
3042
|
-
//# sourceMappingURL=chunk-
|
|
3041
|
+
//# sourceMappingURL=chunk-N5YOAFNA.cjs.map
|
|
3042
|
+
//# sourceMappingURL=chunk-N5YOAFNA.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { init_R3FCompiler, MATERIAL_PRESETS } from './chunk-
|
|
1
|
+
import { init_R3FCompiler, MATERIAL_PRESETS } from './chunk-ULXWSPCK.js';
|
|
2
2
|
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
|
|
3
3
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
4
4
|
import { init_PlatformConditional, platformCategory, PLATFORM_CAPABILITIES, PLATFORM_CATEGORIES } from './chunk-GZG4KA4E.js';
|
|
5
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToUSDA, compileInputBlock, navigationToUSDA, compileNavigationBlock, renderingToUSDA, compileRenderingBlock, proceduralToUSDA, compileProceduralBlock, web3ToUSDA, compileWeb3Block, architectureToUSDA, compileArchitectureBlock, musicToUSDA, compileMusicBlock, educationToUSDA, compileEducationBlock, datavizToUSDA, compileDataVizBlock, iotToUSDA, compileIoTBlock, compileRoboticsBlock, roboticsToUSDA, compileHealthcareBlock, healthcareToUSDA, compilePaymentBlock, paymentToUSDA, compileNarrativeBlock, narrativeToUSDA, compileWeatherBlock, weatherToUSD, compileAudioSourceBlock, audioSourceToUSD, compilePostProcessingBlock, postProcessingToUSD, compileParticleBlock, particlesToUSD, compilePhysicsBlock, compileMaterialBlock, materialToUSD } from './chunk-
|
|
6
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
5
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToUSDA, compileInputBlock, navigationToUSDA, compileNavigationBlock, renderingToUSDA, compileRenderingBlock, proceduralToUSDA, compileProceduralBlock, web3ToUSDA, compileWeb3Block, architectureToUSDA, compileArchitectureBlock, musicToUSDA, compileMusicBlock, educationToUSDA, compileEducationBlock, datavizToUSDA, compileDataVizBlock, iotToUSDA, compileIoTBlock, compileRoboticsBlock, roboticsToUSDA, compileHealthcareBlock, healthcareToUSDA, compilePaymentBlock, paymentToUSDA, compileNarrativeBlock, narrativeToUSDA, compileWeatherBlock, weatherToUSD, compileAudioSourceBlock, audioSourceToUSD, compilePostProcessingBlock, postProcessingToUSD, compileParticleBlock, particlesToUSD, compilePhysicsBlock, compileMaterialBlock, materialToUSD } from './chunk-DPZXVDGM.js';
|
|
6
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
|
|
7
7
|
import { parsePipeline } from './chunk-J32ZJZJH.js';
|
|
8
8
|
import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
|
|
9
9
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
@@ -2560,6 +2560,36 @@ var init_NIRCompiler = __esm({
|
|
|
2560
2560
|
}
|
|
2561
2561
|
});
|
|
2562
2562
|
|
|
2563
|
+
// src/compiler/CodeEditorCompiler.ts
|
|
2564
|
+
var KNOWN_TRAITS = /* @__PURE__ */ new Set([
|
|
2565
|
+
"code_editor",
|
|
2566
|
+
"lsp_client",
|
|
2567
|
+
"editor_gutters",
|
|
2568
|
+
"editor_keybindings",
|
|
2569
|
+
"store_diagnostics",
|
|
2570
|
+
"editor_toolbar",
|
|
2571
|
+
"spatial_blame"
|
|
2572
|
+
]);
|
|
2573
|
+
var CodeEditorCompiler = class {
|
|
2574
|
+
constructor() {
|
|
2575
|
+
this.compilerName = "CodeEditorCompiler";
|
|
2576
|
+
}
|
|
2577
|
+
compile(composition, _agentToken, _outputPath, options) {
|
|
2578
|
+
const indent = options?.indent ?? 2;
|
|
2579
|
+
const strict = options?.strictTraits ?? false;
|
|
2580
|
+
const config = {};
|
|
2581
|
+
const allTraits = [...composition.traits ?? []];
|
|
2582
|
+
for (const obj of composition.objects) {
|
|
2583
|
+
allTraits.push(...obj.traits ?? []);
|
|
2584
|
+
}
|
|
2585
|
+
for (const trait of allTraits) {
|
|
2586
|
+
if (strict && !KNOWN_TRAITS.has(trait.name)) continue;
|
|
2587
|
+
config[trait.name] = trait.config;
|
|
2588
|
+
}
|
|
2589
|
+
return JSON.stringify(config, null, indent);
|
|
2590
|
+
}
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2563
2593
|
// src/compiler/USDZPipeline.ts
|
|
2564
2594
|
init_DomainBlockCompilerMixin();
|
|
2565
2595
|
init_R3FCompiler();
|
|
@@ -6879,6 +6909,6 @@ function compilePipelineSource(source, options = {}) {
|
|
|
6879
6909
|
return compilePipelineSourceToNode(source, options.node);
|
|
6880
6910
|
}
|
|
6881
6911
|
|
|
6882
|
-
export { A2AAgentCardCompiler, A2AAgentCardCompiler_exports, BUILTIN_RESOURCES, CAPABILITY_HIERARCHY, CATEGORY_DEFAULT_EMBODIMENT, CompilerBridge, CrossRealityTraitRegistry, EFFECTS_BY_CATEGORY, EFFECT_TO_CAPABILITY, EffectChecker, EffectRow, GaussianSplattingCompiler, HANDOFF_PATH_RULES, LinearTypeChecker, MVC_BUDGET_CONSTRAINTS, NIRCompiler, NIRCompiler_exports, Native2DCompiler, Native2DCompiler_exports, PLATFORM_BUDGETS, PLATFORM_EMBODIMENT_OVERRIDES, ResourceBudgetAnalyzer, SHARED_SORT_SHADER_PATH, SpatialPartitionPass, TRAIT_EFFECTS, TRAIT_RESOURCE_COSTS, TRAIT_RESOURCE_MAP, TRUST_LEVEL_CAPABILITIES, ThreeJSCompiler, ThreeJSCompiler_exports, USDZPipeline, bestCategoryForTraits, buildSafetyReport, checkCapabilities, compilePipelineSource, compilePipelineSourceToNode, compilePipelineSourceToPython, compilePipelineToNode, compilePipelineToPython, createCrossRealityTraitRegistry, createEffectChecker, createGaussianSplattingCompiler, dangerLevel, deriveRequirements, detectMultiUserSharedSort, effectCategory, expandCapabilities, formatReport, generateCertificate, getCompilerBridge, getCrossRealityTraitRegistry, inferFromBuiltins, inferFromTraits, init_A2AAgentCardCompiler, init_NIRCompiler, init_Native2DCompiler, init_ThreeJSCompiler, isSafeTraitSet, knownBuiltins, knownTraits, quickSafetyCheck, resetCrossRealityTraitRegistry, runSafetyPass, selectModality, selectModalityForAll, spatialPartition };
|
|
6883
|
-
//# sourceMappingURL=chunk-
|
|
6884
|
-
//# sourceMappingURL=chunk-
|
|
6912
|
+
export { A2AAgentCardCompiler, A2AAgentCardCompiler_exports, BUILTIN_RESOURCES, CAPABILITY_HIERARCHY, CATEGORY_DEFAULT_EMBODIMENT, CodeEditorCompiler, CompilerBridge, CrossRealityTraitRegistry, EFFECTS_BY_CATEGORY, EFFECT_TO_CAPABILITY, EffectChecker, EffectRow, GaussianSplattingCompiler, HANDOFF_PATH_RULES, LinearTypeChecker, MVC_BUDGET_CONSTRAINTS, NIRCompiler, NIRCompiler_exports, Native2DCompiler, Native2DCompiler_exports, PLATFORM_BUDGETS, PLATFORM_EMBODIMENT_OVERRIDES, ResourceBudgetAnalyzer, SHARED_SORT_SHADER_PATH, SpatialPartitionPass, TRAIT_EFFECTS, TRAIT_RESOURCE_COSTS, TRAIT_RESOURCE_MAP, TRUST_LEVEL_CAPABILITIES, ThreeJSCompiler, ThreeJSCompiler_exports, USDZPipeline, bestCategoryForTraits, buildSafetyReport, checkCapabilities, compilePipelineSource, compilePipelineSourceToNode, compilePipelineSourceToPython, compilePipelineToNode, compilePipelineToPython, createCrossRealityTraitRegistry, createEffectChecker, createGaussianSplattingCompiler, dangerLevel, deriveRequirements, detectMultiUserSharedSort, effectCategory, expandCapabilities, formatReport, generateCertificate, getCompilerBridge, getCrossRealityTraitRegistry, inferFromBuiltins, inferFromTraits, init_A2AAgentCardCompiler, init_NIRCompiler, init_Native2DCompiler, init_ThreeJSCompiler, isSafeTraitSet, knownBuiltins, knownTraits, quickSafetyCheck, resetCrossRealityTraitRegistry, runSafetyPass, selectModality, selectModalityForAll, spatialPartition };
|
|
6913
|
+
//# sourceMappingURL=chunk-NDUX553L.js.map
|
|
6914
|
+
//# sourceMappingURL=chunk-NDUX553L.js.map
|