@holoscript/core 8.0.5 → 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-EK3LFJKW.cjs → GLTFPipeline-PVLTKDBD.cjs} +11 -11
- package/dist/{GLTFPipeline-37FPRVPH.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-LKWQNUE6.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-ON5QSY35.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-ONDAWTW4.js → chunk-6OTFG3EB.js} +3 -3
- package/dist/{chunk-OJXHYNXN.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-FXKAW7ZO.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-OBP5REIV.js → chunk-GCYR3D2K.js} +5 -5
- package/dist/{chunk-ZMCVKFXI.cjs → chunk-H5PUZHJV.cjs} +95 -9
- 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-KMC6CQH3.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-WQKJSGVS.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-YT5L3B57.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-5KVXXUD4.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-E4M5OAYO.js → chunk-ULXWSPCK.js} +38 -7
- package/dist/{chunk-UO4WPSGQ.js → chunk-VATGR4EM.js} +95 -10
- package/dist/{chunk-6FH72EB2.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-PJGFU5DN.cjs → chunk-YAPPQYJH.cjs} +5 -5
- package/dist/{chunk-U44IKGG7.cjs → chunk-YG3OAHJZ.cjs} +30 -30
- package/dist/{chunk-I5CDNPPE.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 +40 -40
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkUOIGFQXC_cjs = require('./chunk-UOIGFQXC.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkH5PUZHJV_cjs = require('./chunk-H5PUZHJV.cjs');
|
|
5
5
|
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
6
6
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
7
7
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var chunk2VL6SJ33_cjs = require('./chunk-2VL6SJ33.cjs');
|
|
9
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
10
10
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
11
11
|
|
|
12
12
|
// src/traits/visual/presets/hologram-media.visual.ts
|
|
@@ -756,12 +756,12 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
756
756
|
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
757
757
|
chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
|
|
758
758
|
init_visual();
|
|
759
|
-
|
|
759
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
760
760
|
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
761
|
-
|
|
762
|
-
|
|
761
|
+
chunkQWAR3GY6_cjs.init_AgentRBAC();
|
|
762
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
763
763
|
init_ObjectPool();
|
|
764
|
-
|
|
764
|
+
chunkH5PUZHJV_cjs.init_BotanicalLotusTrait();
|
|
765
765
|
r3fNodePool = new exports.ASTNodePool(
|
|
766
766
|
() => ({ type: "", props: {} }),
|
|
767
767
|
(node) => {
|
|
@@ -2563,7 +2563,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2563
2563
|
constructor(options = {}) {
|
|
2564
2564
|
// ─── RBAC Enforcement ─────────────────────────────────────────────────
|
|
2565
2565
|
this.compilerName = "R3FCompiler";
|
|
2566
|
-
this.rbac =
|
|
2566
|
+
this.rbac = chunkQWAR3GY6_cjs.getRBAC();
|
|
2567
2567
|
this.qualityTier = options.qualityTier ?? "high";
|
|
2568
2568
|
this.tierScales = exports.QUALITY_TIER_SCALES[this.qualityTier];
|
|
2569
2569
|
this._defaultLighting = options.defaultLighting ?? true;
|
|
@@ -2594,7 +2594,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2594
2594
|
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2595
2595
|
});
|
|
2596
2596
|
if (!astDecision.allowed) {
|
|
2597
|
-
throw new
|
|
2597
|
+
throw new chunkQWAR3GY6_cjs.UnauthorizedCompilerAccessError(astDecision, "AST access", this.compilerName);
|
|
2598
2598
|
}
|
|
2599
2599
|
const codeDecision = this.rbac.checkAccess({
|
|
2600
2600
|
token: agentToken,
|
|
@@ -2603,7 +2603,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2603
2603
|
expectedWorkflowStep: "generate_assembly" /* GENERATE_ASSEMBLY */
|
|
2604
2604
|
});
|
|
2605
2605
|
if (!codeDecision.allowed) {
|
|
2606
|
-
throw new
|
|
2606
|
+
throw new chunkQWAR3GY6_cjs.UnauthorizedCompilerAccessError(codeDecision, "code generation", this.compilerName);
|
|
2607
2607
|
}
|
|
2608
2608
|
if (outputPath) {
|
|
2609
2609
|
const outputDecision = this.rbac.checkAccess({
|
|
@@ -2614,7 +2614,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2614
2614
|
expectedWorkflowStep: "serialize" /* SERIALIZE */
|
|
2615
2615
|
});
|
|
2616
2616
|
if (!outputDecision.allowed) {
|
|
2617
|
-
throw new
|
|
2617
|
+
throw new chunkQWAR3GY6_cjs.UnauthorizedCompilerAccessError(
|
|
2618
2618
|
outputDecision,
|
|
2619
2619
|
`output write to '${outputPath}'`,
|
|
2620
2620
|
this.compilerName
|
|
@@ -2764,15 +2764,15 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2764
2764
|
this.injectDefaultLighting(root);
|
|
2765
2765
|
const domainBlocks = ast.domainBlocks ?? [];
|
|
2766
2766
|
if (domainBlocks.length > 0) {
|
|
2767
|
-
const compiled =
|
|
2767
|
+
const compiled = chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
2768
2768
|
domainBlocks,
|
|
2769
2769
|
{
|
|
2770
2770
|
material: (block) => {
|
|
2771
|
-
const mat =
|
|
2771
|
+
const mat = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
2772
2772
|
return {
|
|
2773
2773
|
type: "DomainBlockOutput",
|
|
2774
2774
|
props: {
|
|
2775
|
-
__raw:
|
|
2775
|
+
__raw: chunk2VL6SJ33_cjs.materialToR3F(mat, this.tierScales),
|
|
2776
2776
|
__domain: "material",
|
|
2777
2777
|
__name: mat.name
|
|
2778
2778
|
},
|
|
@@ -2780,11 +2780,11 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2780
2780
|
};
|
|
2781
2781
|
},
|
|
2782
2782
|
physics: (block) => {
|
|
2783
|
-
const phys =
|
|
2783
|
+
const phys = chunk2VL6SJ33_cjs.compilePhysicsBlock(block);
|
|
2784
2784
|
return {
|
|
2785
2785
|
type: "DomainBlockOutput",
|
|
2786
2786
|
props: {
|
|
2787
|
-
__raw:
|
|
2787
|
+
__raw: chunk2VL6SJ33_cjs.physicsToR3F(phys),
|
|
2788
2788
|
__domain: "physics",
|
|
2789
2789
|
__name: phys.name || phys.keyword
|
|
2790
2790
|
},
|
|
@@ -2792,11 +2792,11 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2792
2792
|
};
|
|
2793
2793
|
},
|
|
2794
2794
|
vfx: (block) => {
|
|
2795
|
-
const ps =
|
|
2795
|
+
const ps = chunk2VL6SJ33_cjs.compileParticleBlock(block);
|
|
2796
2796
|
return {
|
|
2797
2797
|
type: "DomainBlockOutput",
|
|
2798
2798
|
props: {
|
|
2799
|
-
__raw:
|
|
2799
|
+
__raw: chunk2VL6SJ33_cjs.particlesToR3F(ps, this.tierScales),
|
|
2800
2800
|
__domain: "vfx",
|
|
2801
2801
|
__name: ps.name
|
|
2802
2802
|
},
|
|
@@ -2804,11 +2804,11 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2804
2804
|
};
|
|
2805
2805
|
},
|
|
2806
2806
|
postfx: (block) => {
|
|
2807
|
-
const pp =
|
|
2807
|
+
const pp = chunk2VL6SJ33_cjs.compilePostProcessingBlock(block);
|
|
2808
2808
|
return {
|
|
2809
2809
|
type: "DomainBlockOutput",
|
|
2810
2810
|
props: {
|
|
2811
|
-
__raw:
|
|
2811
|
+
__raw: chunk2VL6SJ33_cjs.postProcessingToR3F(pp),
|
|
2812
2812
|
__domain: "postfx",
|
|
2813
2813
|
__name: pp.name || "PostProcessing"
|
|
2814
2814
|
},
|
|
@@ -2816,19 +2816,19 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2816
2816
|
};
|
|
2817
2817
|
},
|
|
2818
2818
|
audio: (block) => {
|
|
2819
|
-
const audio =
|
|
2819
|
+
const audio = chunk2VL6SJ33_cjs.compileAudioSourceBlock(block);
|
|
2820
2820
|
return {
|
|
2821
2821
|
type: "DomainBlockOutput",
|
|
2822
|
-
props: { __raw:
|
|
2822
|
+
props: { __raw: chunk2VL6SJ33_cjs.audioSourceToR3F(audio), __domain: "audio", __name: audio.name },
|
|
2823
2823
|
children: []
|
|
2824
2824
|
};
|
|
2825
2825
|
},
|
|
2826
2826
|
weather: (block) => {
|
|
2827
|
-
const weather =
|
|
2827
|
+
const weather = chunk2VL6SJ33_cjs.compileWeatherBlock(block);
|
|
2828
2828
|
return {
|
|
2829
2829
|
type: "DomainBlockOutput",
|
|
2830
2830
|
props: {
|
|
2831
|
-
__raw:
|
|
2831
|
+
__raw: chunk2VL6SJ33_cjs.weatherToR3F(weather),
|
|
2832
2832
|
__domain: "weather",
|
|
2833
2833
|
__name: weather.name || "Weather"
|
|
2834
2834
|
},
|
|
@@ -2836,11 +2836,11 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2836
2836
|
};
|
|
2837
2837
|
},
|
|
2838
2838
|
simulation: (block) => {
|
|
2839
|
-
const sim =
|
|
2839
|
+
const sim = chunk2VL6SJ33_cjs.compileSimulationBlock(block);
|
|
2840
2840
|
return {
|
|
2841
2841
|
type: "DomainBlockOutput",
|
|
2842
2842
|
props: {
|
|
2843
|
-
__raw:
|
|
2843
|
+
__raw: chunk2VL6SJ33_cjs.simulationToR3F(sim),
|
|
2844
2844
|
__domain: "simulation",
|
|
2845
2845
|
__name: sim.name || "Simulation"
|
|
2846
2846
|
},
|
|
@@ -2909,7 +2909,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2909
2909
|
const group = this.createNode(
|
|
2910
2910
|
"group",
|
|
2911
2911
|
{},
|
|
2912
|
-
world.name ?
|
|
2912
|
+
world.name ? chunkQWAR3GY6_cjs.escapeStringValue(world.name, "JSX") : void 0
|
|
2913
2913
|
);
|
|
2914
2914
|
group.children = [...nodes, ...childNodes];
|
|
2915
2915
|
return [group];
|
|
@@ -2933,15 +2933,17 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2933
2933
|
* from `.holo` data instead of hand-authoring it.
|
|
2934
2934
|
*/
|
|
2935
2935
|
emitCompiledLotusMaterial(props, config) {
|
|
2936
|
-
const profile =
|
|
2937
|
-
props.__compiledMaterial =
|
|
2938
|
-
props.__uniformBindings =
|
|
2939
|
-
props.__petalGeometry =
|
|
2940
|
-
|
|
2936
|
+
const profile = chunkH5PUZHJV_cjs.createBotanicalLotusRenderProfile(config);
|
|
2937
|
+
props.__compiledMaterial = chunkH5PUZHJV_cjs.buildLotusPetalMaterialSpec(profile);
|
|
2938
|
+
props.__uniformBindings = chunkH5PUZHJV_cjs.LOTUS_PETAL_UNIFORM_BINDINGS;
|
|
2939
|
+
props.__petalGeometry = chunkH5PUZHJV_cjs.buildLotusPetalGeometryData(
|
|
2940
|
+
chunkH5PUZHJV_cjs.lotusPetalGeometryParamsFromProfile(profile)
|
|
2941
2941
|
);
|
|
2942
|
-
props.__petalPlacements =
|
|
2942
|
+
props.__petalPlacements = chunkH5PUZHJV_cjs.buildLotusFlowerPlacements(profile);
|
|
2943
|
+
const scaffold = chunkH5PUZHJV_cjs.buildLotusSceneScaffold();
|
|
2943
2944
|
props.__lotusScene = {
|
|
2944
|
-
stemHeight:
|
|
2945
|
+
stemHeight: scaffold.stem.height,
|
|
2946
|
+
scaffold,
|
|
2945
2947
|
colors: {
|
|
2946
2948
|
water: profile.colors.water,
|
|
2947
2949
|
leaf: profile.colors.leaf,
|
|
@@ -2954,9 +2956,38 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2954
2956
|
seedPodRim: profile.colors.seed_pod_rim,
|
|
2955
2957
|
stamen: profile.colors.stamen,
|
|
2956
2958
|
stamenTip: profile.colors.stamen_tip,
|
|
2957
|
-
stamenCount: profile.stamen_filament_count
|
|
2959
|
+
stamenCount: profile.stamen_filament_count,
|
|
2960
|
+
// Carpel layout for the flat-topped "shower-head" seed pod, parsed from the
|
|
2961
|
+
// profile's declared dot pattern (e.g. '1_center_7_12_18_radial' → [1,7,12,18]
|
|
2962
|
+
// = 1 central carpel + radial rings of 7, 12, 18). The renderer recesses a
|
|
2963
|
+
// carpel well per entry — the iconic lotus receptacle, compiled from `.holo`.
|
|
2964
|
+
carpelRings: (profile.seed_pod_dot_pattern?.match(/\d+/g) ?? [
|
|
2965
|
+
"1",
|
|
2966
|
+
"7",
|
|
2967
|
+
"12",
|
|
2968
|
+
"18"
|
|
2969
|
+
]).map(Number)
|
|
2958
2970
|
}
|
|
2959
2971
|
};
|
|
2972
|
+
const leafDarkColor = profile.colors.leaf_dark;
|
|
2973
|
+
const stemHeight = scaffold.stem.height;
|
|
2974
|
+
const stemNode = this.createNode("group", {
|
|
2975
|
+
__animatedTransform: [
|
|
2976
|
+
{ prop: "scaleY", target: "developmentalTime", edge0: 0, edge1: 0.42, from: 1e-3, to: 1 },
|
|
2977
|
+
{ prop: "posY", target: "developmentalTime", edge0: 0, edge1: 0.42, from: 0, to: stemHeight / 2 }
|
|
2978
|
+
]
|
|
2979
|
+
});
|
|
2980
|
+
stemNode.children = [
|
|
2981
|
+
this.createNode("mesh", {
|
|
2982
|
+
hsType: "cylinder",
|
|
2983
|
+
radiusTop: scaffold.stem.topRadius,
|
|
2984
|
+
radiusBottom: scaffold.stem.bottomRadius,
|
|
2985
|
+
height: stemHeight,
|
|
2986
|
+
color: leafDarkColor,
|
|
2987
|
+
roughness: 0.7
|
|
2988
|
+
})
|
|
2989
|
+
];
|
|
2990
|
+
props.__scaffoldNodes = [stemNode];
|
|
2960
2991
|
}
|
|
2961
2992
|
compileNode(node) {
|
|
2962
2993
|
if (node.type === "system") {
|
|
@@ -2970,7 +3001,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2970
3001
|
const r3fNode = r3fNodePool.acquire();
|
|
2971
3002
|
r3fNode.type = type;
|
|
2972
3003
|
const rawId = node.id || node.name;
|
|
2973
|
-
r3fNode.id = rawId ?
|
|
3004
|
+
r3fNode.id = rawId ? chunkQWAR3GY6_cjs.escapeStringValue(rawId, "JSX") : void 0;
|
|
2974
3005
|
r3fNode.props = this.compileProperties(node, rawProps);
|
|
2975
3006
|
r3fNode.children = [];
|
|
2976
3007
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -3009,7 +3040,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3009
3040
|
}
|
|
3010
3041
|
const root = r3fNodePool.acquire();
|
|
3011
3042
|
root.type = "group";
|
|
3012
|
-
root.id = composition.name ?
|
|
3043
|
+
root.id = composition.name ? chunkQWAR3GY6_cjs.escapeStringValue(composition.name, "JSX") : void 0;
|
|
3013
3044
|
root.props = {};
|
|
3014
3045
|
root.children = [];
|
|
3015
3046
|
root.traits = /* @__PURE__ */ new Map();
|
|
@@ -3156,7 +3187,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
3156
3187
|
}
|
|
3157
3188
|
const r3fNode = r3fNodePool.acquire();
|
|
3158
3189
|
r3fNode.type = type;
|
|
3159
|
-
r3fNode.id = light.name ?
|
|
3190
|
+
r3fNode.id = light.name ? chunkQWAR3GY6_cjs.escapeStringValue(light.name, "JSX") : void 0;
|
|
3160
3191
|
r3fNode.props = props;
|
|
3161
3192
|
r3fNode.children = [];
|
|
3162
3193
|
r3fNode.traits = /* @__PURE__ */ new Map();
|
|
@@ -4009,7 +4040,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4009
4040
|
entries.push(this.createNode("TimelineEntry", entryProps));
|
|
4010
4041
|
}
|
|
4011
4042
|
}
|
|
4012
|
-
const safeName = timeline.name ?
|
|
4043
|
+
const safeName = timeline.name ? chunkQWAR3GY6_cjs.escapeStringValue(timeline.name, "JSX") : void 0;
|
|
4013
4044
|
const timelineNode = this.createNode(
|
|
4014
4045
|
"Timeline",
|
|
4015
4046
|
{ autoplay: timeline.autoplay, loop: timeline.loop },
|
|
@@ -4031,7 +4062,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4031
4062
|
}
|
|
4032
4063
|
}
|
|
4033
4064
|
}
|
|
4034
|
-
const safeName = audio.name ?
|
|
4065
|
+
const safeName = audio.name ? chunkQWAR3GY6_cjs.escapeStringValue(audio.name, "JSX") : void 0;
|
|
4035
4066
|
return this.createNode("Audio", props, safeName);
|
|
4036
4067
|
}
|
|
4037
4068
|
compileZoneBlock(zone) {
|
|
@@ -4050,7 +4081,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4050
4081
|
})
|
|
4051
4082
|
);
|
|
4052
4083
|
}
|
|
4053
|
-
const safeName = zone.name ?
|
|
4084
|
+
const safeName = zone.name ? chunkQWAR3GY6_cjs.escapeStringValue(zone.name, "JSX") : void 0;
|
|
4054
4085
|
return this.createNode("Zone", props, safeName);
|
|
4055
4086
|
}
|
|
4056
4087
|
compileUIBlock(ui) {
|
|
@@ -4067,7 +4098,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4067
4098
|
}
|
|
4068
4099
|
}
|
|
4069
4100
|
}
|
|
4070
|
-
const safeElName = el.name ?
|
|
4101
|
+
const safeElName = el.name ? chunkQWAR3GY6_cjs.escapeStringValue(el.name, "JSX") : void 0;
|
|
4071
4102
|
children.push(this.createNode("UIElement", elProps, safeElName));
|
|
4072
4103
|
}
|
|
4073
4104
|
}
|
|
@@ -4082,7 +4113,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
4082
4113
|
props[prop.key] = prop.value;
|
|
4083
4114
|
}
|
|
4084
4115
|
}
|
|
4085
|
-
const safeName = transition.name ?
|
|
4116
|
+
const safeName = transition.name ? chunkQWAR3GY6_cjs.escapeStringValue(transition.name, "JSX") : void 0;
|
|
4086
4117
|
return this.createNode("Transition", props, safeName);
|
|
4087
4118
|
}
|
|
4088
4119
|
compileConditionalBlock(cond, templateMap) {
|
|
@@ -4419,5 +4450,5 @@ exports.init_ObjectPool = init_ObjectPool;
|
|
|
4419
4450
|
exports.init_R3FCompiler = init_R3FCompiler;
|
|
4420
4451
|
exports.init_visual = init_visual;
|
|
4421
4452
|
exports.registerAllPresets = registerAllPresets;
|
|
4422
|
-
//# sourceMappingURL=chunk-
|
|
4423
|
-
//# sourceMappingURL=chunk-
|
|
4453
|
+
//# sourceMappingURL=chunk-4FDL7JLJ.cjs.map
|
|
4454
|
+
//# sourceMappingURL=chunk-4FDL7JLJ.cjs.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 chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -15,9 +15,9 @@ chunkHCCQLAA4_cjs.__export(VRRCompiler_exports, {
|
|
|
15
15
|
var VRRTraitDefs; exports.VRRCompiler = void 0; exports.VRRCompiler_default = void 0;
|
|
16
16
|
var init_VRRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
17
17
|
"src/compiler/VRRCompiler.ts"() {
|
|
18
|
-
|
|
18
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
19
19
|
chunkE7JP3BS3_cjs.init_safeJsonParse();
|
|
20
|
-
|
|
20
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
21
21
|
VRRTraitDefs = {
|
|
22
22
|
vrr_twin: { validator: (p) => !!p.mirror },
|
|
23
23
|
reality_mirror: { validator: (p) => Array.isArray(p.sync) && p.sync.length > 0 },
|
|
@@ -43,7 +43,7 @@ var init_VRRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
43
43
|
},
|
|
44
44
|
geo_sync: { validator: (p) => !!p.center && Number(p.radius || 0) >= 0 }
|
|
45
45
|
};
|
|
46
|
-
exports.VRRCompiler = class extends
|
|
46
|
+
exports.VRRCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
47
47
|
constructor(options) {
|
|
48
48
|
super();
|
|
49
49
|
this.compilerName = "VRRCompiler";
|
|
@@ -619,28 +619,28 @@ var init_VRRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
619
619
|
const domainBlocks = Array.isArray(comp.domainBlocks) ? comp.domainBlocks : [];
|
|
620
620
|
if (domainBlocks.length > 0) {
|
|
621
621
|
this.generatedCode.push("\n// === v4.2 Domain Blocks ===");
|
|
622
|
-
const compiled =
|
|
622
|
+
const compiled = chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
623
623
|
// @ts-expect-error During migration
|
|
624
624
|
domainBlocks,
|
|
625
625
|
{
|
|
626
626
|
material: (block) => {
|
|
627
|
-
const m =
|
|
627
|
+
const m = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
628
628
|
return `// VRR Material: "${this.escapeStringValue(m.name, "TypeScript")}" type=${m.type} baseColor=${m.baseColor || "none"}`;
|
|
629
629
|
},
|
|
630
630
|
physics: (block) => {
|
|
631
|
-
const p =
|
|
631
|
+
const p = chunk2VL6SJ33_cjs.compilePhysicsBlock(block);
|
|
632
632
|
return `// VRR Physics: ${p.keyword} "${p.name || ""}" colliders=${p.colliders?.length || 0}`;
|
|
633
633
|
},
|
|
634
634
|
vfx: (block) => {
|
|
635
|
-
const ps =
|
|
635
|
+
const ps = chunk2VL6SJ33_cjs.compileParticleBlock(block);
|
|
636
636
|
return `// VRR Particles: "${this.escapeStringValue(ps.name, "TypeScript")}" rate=${ps.properties.rate || "default"}`;
|
|
637
637
|
},
|
|
638
638
|
audio: (block) => {
|
|
639
|
-
const a =
|
|
639
|
+
const a = chunk2VL6SJ33_cjs.compileAudioSourceBlock(block);
|
|
640
640
|
return `// VRR Audio: "${this.escapeStringValue(a.name, "TypeScript")}" clip=${a.properties.clip || "none"}`;
|
|
641
641
|
},
|
|
642
642
|
weather: (block) => {
|
|
643
|
-
const w =
|
|
643
|
+
const w = chunk2VL6SJ33_cjs.compileWeatherBlock(block);
|
|
644
644
|
return `// VRR Weather: ${w.keyword} layers=[${w.layers.map((l) => l.type).join(", ")}]`;
|
|
645
645
|
}
|
|
646
646
|
},
|
|
@@ -810,5 +810,5 @@ const ${twinName} = new THREE.Group();`);
|
|
|
810
810
|
|
|
811
811
|
exports.VRRCompiler_exports = VRRCompiler_exports;
|
|
812
812
|
exports.init_VRRCompiler = init_VRRCompiler;
|
|
813
|
-
//# sourceMappingURL=chunk-
|
|
814
|
-
//# sourceMappingURL=chunk-
|
|
813
|
+
//# sourceMappingURL=chunk-5BLWXOIP.cjs.map
|
|
814
|
+
//# sourceMappingURL=chunk-5BLWXOIP.cjs.map
|
|
@@ -4,7 +4,6 @@ import { HoloScriptCodeParser } from './chunk-URG2SJLK.js';
|
|
|
4
4
|
import { JEPAPredictor, jepObjectiveHandler, mitosisHandler, orbitalHandler } from './chunk-H652NHX5.js';
|
|
5
5
|
import { logger } from './chunk-PHENW4MQ.js';
|
|
6
6
|
import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
|
|
7
|
-
import { WebSocketServer, WebSocket } from 'ws';
|
|
8
7
|
|
|
9
8
|
// src/HoloScriptRuntime.ts
|
|
10
9
|
init_safeJsonParse();
|
|
@@ -322,6 +321,9 @@ function updateAnimations(animations, setVariable, now) {
|
|
|
322
321
|
}
|
|
323
322
|
}
|
|
324
323
|
}
|
|
324
|
+
|
|
325
|
+
// src/runtime/visualizer-server.ts
|
|
326
|
+
var WebSocket = lazyPeerSymbol("ws", "WebSocket");
|
|
325
327
|
function broadcast(wss, type, payload) {
|
|
326
328
|
if (!wss) return;
|
|
327
329
|
const message = JSON.stringify({ type, payload });
|
|
@@ -1452,7 +1454,14 @@ function applyDirectives(node, ctx) {
|
|
|
1452
1454
|
if (handler) {
|
|
1453
1455
|
handler.onAttach?.(node, d.config || {}, {
|
|
1454
1456
|
emit: (event, payload) => ctx.emit(event, payload),
|
|
1455
|
-
getScaleMultiplier: () => ctx.getCurrentScale() || 1
|
|
1457
|
+
getScaleMultiplier: () => ctx.getCurrentScale() || 1,
|
|
1458
|
+
// premortem 2026-06-07 (task_1780881034070_wnlv): the attach context
|
|
1459
|
+
// previously lacked state access, so a handler's `setState` no-op'd on
|
|
1460
|
+
// attach and solver results never reached durable runtime state (only
|
|
1461
|
+
// the fire-and-forget emit). Mirror updateTraits' context so attach-time
|
|
1462
|
+
// results are persisted for receipt / SimulationContract readers (D.057).
|
|
1463
|
+
getState: () => ctx.state.getSnapshot(),
|
|
1464
|
+
setState: (updates) => ctx.state.update(updates)
|
|
1456
1465
|
});
|
|
1457
1466
|
}
|
|
1458
1467
|
if (d.name === "chat") {
|
|
@@ -2943,6 +2952,15 @@ var HoloScriptAgentRuntime = class _HoloScriptAgentRuntime {
|
|
|
2943
2952
|
}
|
|
2944
2953
|
};
|
|
2945
2954
|
|
|
2955
|
+
// src/runtime/plugin-trait-registrar.ts
|
|
2956
|
+
var TRAIT_OWNER_KEY = "__pluginOwner";
|
|
2957
|
+
function registerPluginTraits(target, pluginId, handlers) {
|
|
2958
|
+
for (const handler of handlers) {
|
|
2959
|
+
handler[TRAIT_OWNER_KEY] = pluginId;
|
|
2960
|
+
target.registerTrait(handler.name, handler);
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2946
2964
|
// src/extensions/ExtensionRegistry.ts
|
|
2947
2965
|
var ExtensionRegistry = class {
|
|
2948
2966
|
constructor(runtime) {
|
|
@@ -3020,6 +3038,7 @@ var StateSynchronizer = lazyPeerSymbol(
|
|
|
3020
3038
|
"@holoscript/mesh",
|
|
3021
3039
|
"StateSynchronizer"
|
|
3022
3040
|
);
|
|
3041
|
+
var WebSocketServer = lazyPeerSymbol("ws", "WebSocketServer");
|
|
3023
3042
|
var engineRuntime = definePeerNamespace(
|
|
3024
3043
|
"@holoscript/engine/runtime"
|
|
3025
3044
|
);
|
|
@@ -3134,6 +3153,15 @@ var HoloScriptRuntime = class {
|
|
|
3134
3153
|
*/
|
|
3135
3154
|
registerTrait(name, handler) {
|
|
3136
3155
|
const vrName = name;
|
|
3156
|
+
const existingHandler = this.traitHandlers.get(vrName);
|
|
3157
|
+
if (existingHandler) {
|
|
3158
|
+
const priorOwner = existingHandler[TRAIT_OWNER_KEY] ?? "unknown";
|
|
3159
|
+
const incomingOwner = handler[TRAIT_OWNER_KEY] ?? "unknown";
|
|
3160
|
+
logger.warn(
|
|
3161
|
+
`Trait '${name}' is already registered by '${String(priorOwner)}'; ignoring the duplicate from '${String(incomingOwner)}' (keep-first). Trait names must be unique across plugins.`
|
|
3162
|
+
);
|
|
3163
|
+
return;
|
|
3164
|
+
}
|
|
3137
3165
|
this.traitHandlers.set(vrName, handler);
|
|
3138
3166
|
logger.info(`Registered trait: ${name}`);
|
|
3139
3167
|
}
|
|
@@ -4299,6 +4327,6 @@ var HoloScriptRuntime = class {
|
|
|
4299
4327
|
}
|
|
4300
4328
|
};
|
|
4301
4329
|
|
|
4302
|
-
export { HoloScriptAgentRuntime, HoloScriptRuntime };
|
|
4303
|
-
//# sourceMappingURL=chunk-
|
|
4304
|
-
//# sourceMappingURL=chunk-
|
|
4330
|
+
export { HoloScriptAgentRuntime, HoloScriptRuntime, TRAIT_OWNER_KEY, registerPluginTraits };
|
|
4331
|
+
//# sourceMappingURL=chunk-5BQIJG3O.js.map
|
|
4332
|
+
//# sourceMappingURL=chunk-5BQIJG3O.js.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-CXS3DUKD.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-5IHG2LGT.js.map
|
|
164
|
+
//# sourceMappingURL=chunk-5IHG2LGT.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,9 +19,9 @@ function findGpuParticleTrait(traits) {
|
|
|
19
19
|
exports.WebGPUCompiler = void 0;
|
|
20
20
|
var init_WebGPUCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
21
21
|
"src/compiler/WebGPUCompiler.ts"() {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.WebGPUCompiler = class extends
|
|
22
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
23
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
24
|
+
exports.WebGPUCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
25
25
|
constructor(options = {}) {
|
|
26
26
|
super();
|
|
27
27
|
this.compilerName = "WebGPUCompiler";
|
|
@@ -77,12 +77,12 @@ var init_WebGPUCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
77
77
|
this.emit("");
|
|
78
78
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
79
79
|
let blockIdx = 0;
|
|
80
|
-
const compiled =
|
|
80
|
+
const compiled = chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
81
81
|
domainBlocks,
|
|
82
82
|
{
|
|
83
83
|
material: (block) => {
|
|
84
|
-
const mat =
|
|
85
|
-
return
|
|
84
|
+
const mat = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
85
|
+
return chunk2VL6SJ33_cjs.materialToWebGPU(mat, `db${blockIdx++}`);
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -668,5 +668,5 @@ var init_WebGPUCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
668
668
|
|
|
669
669
|
exports.WebGPUCompiler_exports = WebGPUCompiler_exports;
|
|
670
670
|
exports.init_WebGPUCompiler = init_WebGPUCompiler;
|
|
671
|
-
//# sourceMappingURL=chunk-
|
|
672
|
-
//# sourceMappingURL=chunk-
|
|
671
|
+
//# sourceMappingURL=chunk-5TIZXMED.cjs.map
|
|
672
|
+
//# sourceMappingURL=chunk-5TIZXMED.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
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 ans = require('@holoscript/core-types/ans');
|
|
6
6
|
|
|
7
7
|
// src/compiler/USDPhysicsCompiler.ts
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var USDPhysicsCompiler = class extends
|
|
8
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
9
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
10
|
+
var USDPhysicsCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
11
11
|
constructor(options = {}) {
|
|
12
12
|
super();
|
|
13
13
|
this.compilerName = "USDPhysicsCompiler";
|
|
@@ -260,34 +260,34 @@ var USDPhysicsCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
260
260
|
if (domainBlocks.length > 0) {
|
|
261
261
|
this.emitBlank();
|
|
262
262
|
this.emit(`# === v4.2 Domain Blocks ===`);
|
|
263
|
-
const compiled =
|
|
263
|
+
const compiled = chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
264
264
|
domainBlocks,
|
|
265
265
|
{
|
|
266
266
|
material: (block) => {
|
|
267
|
-
const mat =
|
|
268
|
-
return
|
|
267
|
+
const mat = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
268
|
+
return chunk2VL6SJ33_cjs.materialToUSD(mat);
|
|
269
269
|
},
|
|
270
270
|
physics: (block) => {
|
|
271
|
-
const phys =
|
|
272
|
-
const urdf =
|
|
271
|
+
const phys = chunk2VL6SJ33_cjs.compilePhysicsBlock(block);
|
|
272
|
+
const urdf = chunk2VL6SJ33_cjs.physicsToURDF(phys);
|
|
273
273
|
return `# Physics: ${phys.keyword} "${phys.name || ""}"
|
|
274
274
|
` + urdf.split("\n").map((l) => `# URDF: ${l}`).join("\n");
|
|
275
275
|
},
|
|
276
276
|
vfx: (block) => {
|
|
277
|
-
const ps =
|
|
278
|
-
return
|
|
277
|
+
const ps = chunk2VL6SJ33_cjs.compileParticleBlock(block);
|
|
278
|
+
return chunk2VL6SJ33_cjs.particlesToUSD(ps);
|
|
279
279
|
},
|
|
280
280
|
postfx: (block) => {
|
|
281
|
-
const pp =
|
|
282
|
-
return
|
|
281
|
+
const pp = chunk2VL6SJ33_cjs.compilePostProcessingBlock(block);
|
|
282
|
+
return chunk2VL6SJ33_cjs.postProcessingToUSD(pp);
|
|
283
283
|
},
|
|
284
284
|
audio: (block) => {
|
|
285
|
-
const audio =
|
|
286
|
-
return
|
|
285
|
+
const audio = chunk2VL6SJ33_cjs.compileAudioSourceBlock(block);
|
|
286
|
+
return chunk2VL6SJ33_cjs.audioSourceToUSD(audio);
|
|
287
287
|
},
|
|
288
288
|
weather: (block) => {
|
|
289
|
-
const weather =
|
|
290
|
-
return
|
|
289
|
+
const weather = chunk2VL6SJ33_cjs.compileWeatherBlock(block);
|
|
290
|
+
return chunk2VL6SJ33_cjs.weatherToUSD(weather);
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
293
|
(block) => `# Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -882,5 +882,5 @@ function compileForIsaacSim(composition, options) {
|
|
|
882
882
|
exports.USDPhysicsCompiler = USDPhysicsCompiler;
|
|
883
883
|
exports.compileForIsaacSim = compileForIsaacSim;
|
|
884
884
|
exports.compileToUSDPhysics = compileToUSDPhysics;
|
|
885
|
-
//# sourceMappingURL=chunk-
|
|
886
|
-
//# sourceMappingURL=chunk-
|
|
885
|
+
//# sourceMappingURL=chunk-6DOKCECB.cjs.map
|
|
886
|
+
//# sourceMappingURL=chunk-6DOKCECB.cjs.map
|
|
@@ -3,7 +3,7 @@ import { webcamGazeHandler } from './chunk-TDCNJHWO.js';
|
|
|
3
3
|
import { SimulationSolverFactory } from './chunk-YQELFNJV.js';
|
|
4
4
|
import { createTensor, createNoOpInferenceAdapter, add, matmul } from './chunk-FHP6LXJS.js';
|
|
5
5
|
import { absorbHandler, hotReloadHandler, scriptTestHandler } from './chunk-2M2DPHKB.js';
|
|
6
|
-
import { init_BotanicalLotusTrait, botanicalLotusHandler } from './chunk-
|
|
6
|
+
import { init_BotanicalLotusTrait, botanicalLotusHandler } from './chunk-VATGR4EM.js';
|
|
7
7
|
import { mitosisHandler, embeddingHandler, jepObjectiveHandler, orbitalHandler } from './chunk-H652NHX5.js';
|
|
8
8
|
import { logger } from './chunk-PHENW4MQ.js';
|
|
9
9
|
import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
|
|
@@ -56161,5 +56161,5 @@ var VRTraitRegistry = class {
|
|
|
56161
56161
|
var vrTraitRegistry = new VRTraitRegistry();
|
|
56162
56162
|
|
|
56163
56163
|
export { AIDriverTrait, ALL_CIRCUITS, ARKIT_MOUTH_SHAPES, AnimationTrait, BUILTIN_CIRCUITS, BarretenbergBackend, BehaviorTreeRunner, CARE_ETHICS_TRAIT, CRDTRoomTraitValidationError, CRDT_ROOM_TRAIT_DEFAULTS, CharacterTrait, ComponentType, ConsensusTrait, DEFAULT_ANIMATION_MAP, DEFAULT_AUTONOMY_GUARD_POLICY, DEFAULT_BEHAVIOR_FACT_TTL_ALERT_RULE, DEFAULT_EXPRESSION_PRESETS, DEFAULT_EXTERNAL_TIMEOUT_MS, DEFAULT_FOVEATED_BLEND, DEFAULT_FREQUENCY_BANDS, DEFAULT_REPUTATION_LEDGER_MAX_FACTS, DEFAULT_REPUTATION_LEDGER_TTL_DAYS, DEFAULT_SYNC_FIELD, DEFAULT_TRAIT_CONFIG2 as DEFAULT_TRAIT_CONFIG, DRAFT_DEFAULTS, DRAFT_TRAIT, DialogTrait, DraftManager, ECSWorld, EmotionDirectiveTrait, EnvironmentalAudioSystem, GEM_RESONANCE_ELEMENT_FREQUENCIES, GOAPPlanner, GOLDEN_ANGLE_DEG, IKTrait, InteractiveGraphTrait, JobQueuePersistence, JointTrait, LOCAL_WEBCAM_VIEW_ID, LipSyncTrait, LobbyTrait, MAX_EXPERIENCE_LOG_ENTRIES, MorphTrait, MultiviewGaussianRendererTrait, NetworkedTrait, OCULUS_VISEME_MAP, PIDControllerTrait, PressableTrait, REFERENCE_SPACE_CHAIN, REFUSED_CARE_OPTIMIZATION_TARGETS, RigidbodyTrait, SPATIAL_PREDICATE_CIRCUITS, SYNC_PRESETS, SandboxExecutionTrait, SlidableTrait, SpatialAwarenessTrait, SyncTierTrait, TIER_DEFAULTS, TriggerTrait, URDFRobotTrait, VRTraitRegistry, VoiceInputTrait, VoiceOutputTrait, VoronoiFractureSystem, WEATHER_PRESETS, aIDriverHandler, abTestHandler, abstain, accessibleHandler, advancedClothHandler, affinityHandler, agentDiscoveryHandler, agentMemoryHandler, agentMovementSystem, agentPortalHandler, aiInpaintingHandler, aiTextureGenHandler, aiUpscalingHandler, ainpcBrainHandler, alertHandler, altTextHandler, ambisonicsHandler, analyticsHandler, anchorHandler, applyFBXAxisConversion, applyStatModifiers, applyUSDAxisConversion, approve, audioMaterialHandler, audioOcclusionHandler, audioPortalHandler, auditLogHandler, autoVote, avatarEmbodimentHandler, behaviorTreeHandler, biofeedbackHandler, blackboardHandler, bloomReactiveHandler, bodyTrackingHandler, bufferHandler, buildBehaviorFactDisclosure, buoyancyHandler, cRDTRoomHandler, careEthicsHandler, chainHandler, characterHandler, choreographyHandler, circuitBreakerHandler, clothHandler, coLocatedHandler, compareSemVer, computeHandler, computePhyllotaxisPosition, computerUseHandler, consensusHandler, consentGateHandler, controlNetHandler, controllerInputHandler, controlnetHandler, createAIDriverTrait, createAnimationTrait, createApprovalRequest, createBaseMainnetAccountingAdapter, createBehaviorFactTtlAlertRule, createCRDTRoomTraitConfig, createCanBusAccountingAdapter, createCareField, createCharacterTrait, createConsensusTrait, createDialogTrait, createEdiX12AccountingAdapter, createEmotionDirectiveTrait, createHl7FhirAccountingAdapter, createIKTrait, createJointTrait, createLipSyncTrait, createLobbyTrait, createMorphTrait, createNetworkedTrait, createRepairLoop, createRigidbodyTrait, createRollbackCheckpoint, createSelectiveDisclosure, createSharedSpatialProvider, createSimulatedController, createSpatialAwarenessTrait, createTriggerTrait, createURDFRobotTrait, createVoiceInputTrait, createVoiceOutputTrait, cronHandler, dataBindingHandler, deriveBloomReactiveOutput, deriveLotusCenterPhase, deriveLotusGardenerSchedule, deriveLotusGenesisGate, deriveLotusGenesisSeed, deriveLotusPetalVisual, deriveLotusRootEmissive, deriveLotusStalkPosture, deriveWalkableNavmesh, destructionHandler, deviceProfiles, dialogHandler, dialogueHandler, diffusionRealtimeHandler, digitalTwinHandler, dropTableHandler, economyPrimitivesHandler, effectiveWeight, embeddingSearchHandler, emissiveAt, emotionDirectiveHandler, emotionHandler, emotionalVoiceHandler, encounterHandler, environmentalAudioHandler, evaluateAction, evaluateAutonomyGuard, evaluateCareEthicsTurn, extractLotusGenesisAnchorHash, extractPayload, eyeTrackedHandler, faceTrackingHandler, factionHandler, fbxHandler, feedbackLoopHandler, findReachablePath, findWalkableNodeAt, flowFieldHandler, fluidHandler, gardenerPulseJitter, gaussianSplatHandler, gemResonanceHandler, geospatialAnchorHandler, geospatialEnvHandler, gestureHandler, getActiveSessions, getAgentId, getAirAbsorption, getAuditLog, getCachedThingDescription, getCapabilities, getCareEthicsState, getEventHistory, getFBXAnimationStacks, getFBXBoneNames, getFBXMorphTargets, getFBXState, getGLTFAnimations, getGLTFMorphTargets, getGLTFState, getMQTTSinkClient, getMQTTSinkState, getMQTTSourceClient, getMQTTSourceState, getMyProposals, getMyVotes, getNegotiationMethods, getPredicateCircuitId, getSession, getUSDActiveVariant, getUSDAnimation, getUSDBlendShapes, getUSDJointNames, getUSDState, getUSDVariantSets, getWoTThingState, gltfHandler, goalOrientedHandler, gpuBufferHandler, gpuParticleHandler, gpuPhysicsHandler, granularMaterialHandler, handMenuHandler, handMeshAIHandler, handTrackingHandler, hapticCueHandler, hapticHandler, hasMQTTSinkTrait, hasMQTTSourceTrait, hasVoted, hasWoTThingTrait, hashGardenerSeed, hashSeed, headTrackedAudioHandler, heatmap3dHandler, highContrastHandler, hitlHandler, hrtfHandler, iKHandler, initiate, invalidateThingDescription, isConsentGranted, isFBXLoaded, isGLTFLoaded, isInSession, isMQTTSinkConnected, isMQTTSourceConnected, isReservedPaperId, isUSDLoaded, isUSDZ, isWalkableAt, jointHandler, layerAwareHandler, leave, lightEstimationHandler, lipSyncHandler, llmAgentHandler, lobbyHandler, localLLMHandler, lodSystem, lotusCenterHandler, lotusGardenerHandler, lotusGenesisTriggerHandler, lotusPetalHandler, lotusRootHandler, lotusStalkHandler, luckHandler, magnifiableHandler, marketplaceHandler, marketplaceIntegrationHandler, matchesCondition, materialXHandler, memoryHandler, meshDetectionHandler, messagingHandler, modifiedThreshold, morphHandler, motionReducedHandler, mqttSinkHandler, mqttSourceHandler, multiAgentHandler, multiviewGaussianRendererHandler, negotiationHandler, nerfHandler, networkedAvatarHandler, networkedHandler, neuralAnimationHandler, neuralForgeHandler, neuralLinkHandler, neuralUpscalingHandler, nftHandler, normalizeCenter, normalizeLotusSeed, normalizePointCloud, npcAIHandler, objectTrackingHandler, occlusionHandler, openXRHALHandler, parseCRDTRoomEntityConfig, parseCRDTRoomTraitConfig, partnerSDKHandler, patrolHandler, perceptionHandler, persistentAnchorHandler, photogrammetryHandler, phyllotaxisHandler, physicsSystem, pickByWeight, planeDetectionHandler, poiHandler, pointCloudHandler, portableHandler, poseEstimationHandler, pressableHandler, propose, publishToMQTTSink, quotaHandler, ragKnowledgeHandler, rateLimiterHandler, rbacHandler, realityKitMeshHandler, recordGratitude, rememberRelationalContext, remotePresenceHandler, renderNetworkHandler, reputationLedgerHandler, resolveBloomStage, resolveCRDTRoomTraitConfig, resolvePulseHz, resourceAccountingHandler, reverbZoneHandler, rigidbodyHandler, roadmapNodeHandler, roleHandler, rooftopAnchorHandler, roomMeshHandler, ropeHandler, runECSBenchmark, runResourceAccountingAudit, sceneGraphHandler, sceneReconstructionHandler, schedulerHandler, screenReaderHandler, scrollableHandler, seatedHandler, secondsToUSDTimeCode, seededRand01, sensorHandler, setAgentManifest, sharePlayHandler, sharedAnchorHandler, sharedWorldHandler, shouldFire, signRequest, skillRegistryHandler, slidableHandler, softBodyHandler, sonificationHandler, spatialAccessoryHandler, spatialAudioCueHandler, spatialAwarenessHandler, spatialNavigationHandler, spatialPersonaHandler, spectatorHandler, ssoOidcHandler, ssoSamlHandler, stableDiffusionHandler, stableResourceAccountingReceiptHash, statHandler, structuredLoggerHandler, subtitleHandler, syncTierHandler, tenantHandler, terrainAnchorHandler, timeoutGuardHandler, tokenGatedHandler, transformHandler, triggerHandler, urdfRobotHandler, usdHandler, usdTimeCodeToSeconds, userMonitorHandler, validateCRDTRoomTraitConfig, validateCareField, validateSemVer, vectorDBHandler, verifyWebhookSignature, visionHandler, voiceInputHandler, voiceMeshHandler, voiceOutputHandler, voiceProximityHandler, volumetricHandler, volumetricVideoHandler, volumetricWindowHandler, voronoiFractureHandler, vote, vpsHandler, vrTraitRegistry, walletHandler, wasmBridgeHandler, windHandler, withNegotiation, wotThingHandler, zkPrivateHandler };
|
|
56164
|
-
//# sourceMappingURL=chunk-
|
|
56165
|
-
//# sourceMappingURL=chunk-
|
|
56164
|
+
//# sourceMappingURL=chunk-6OTFG3EB.js.map
|
|
56165
|
+
//# sourceMappingURL=chunk-6OTFG3EB.js.map
|