@holoscript/core 8.0.1 → 8.0.3

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.
Files changed (48) hide show
  1. package/bin/holoscript.cjs +0 -0
  2. package/dist/{GLTFPipeline-P3WMNYCN.js → GLTFPipeline-PN3DN6FO.js} +5 -5
  3. package/dist/{GLTFPipeline-N6B6PJ6G.cjs → GLTFPipeline-W45UOCNY.cjs} +9 -9
  4. package/dist/HoloScriptRuntime-ACDFKVVH.js +10 -0
  5. package/dist/{HoloScriptRuntime-VJ374RER.cjs → HoloScriptRuntime-ON2OQVEF.cjs} +5 -5
  6. package/dist/{chunk-CR7XRXRN.cjs → chunk-33AZRKKQ.cjs} +5 -5
  7. package/dist/{chunk-BGY3SDG3.js → chunk-37ZNYWWW.js} +24 -3
  8. package/dist/{chunk-X3UVCWNL.cjs → chunk-5PLWAEQQ.cjs} +8 -8
  9. package/dist/{chunk-MQWAT42R.cjs → chunk-6DO5IZ5N.cjs} +41 -44
  10. package/dist/{chunk-K574J76X.cjs → chunk-6S5VS7BF.cjs} +3 -3
  11. package/dist/{chunk-YVOAF4ML.js → chunk-DHXLCJJN.js} +3 -3
  12. package/dist/{chunk-HR2OSYVQ.js → chunk-DXWOTOUK.js} +3 -3
  13. package/dist/{chunk-KHDZJE5D.cjs → chunk-ELEHNDDS.cjs} +5 -5
  14. package/dist/{chunk-SMIWS6DE.cjs → chunk-IELX2OKI.js} +118 -7
  15. package/dist/{chunk-7T25IEZ2.js → chunk-JYTTPNKK.js} +3 -3
  16. package/dist/{chunk-FL33V6U7.js → chunk-MVPBWHAC.js} +3 -3
  17. package/dist/{chunk-JIBL5LRK.js → chunk-QACVP4PM.js} +24 -7
  18. package/dist/{chunk-4GU5GCIY.js → chunk-QRPRIJ2W.js} +145 -4
  19. package/dist/{chunk-J52VSAQ7.js → chunk-QSCGZ4DW.js} +3 -3
  20. package/dist/{chunk-E6XXE66V.js → chunk-RLLNOI3T.js} +3 -3
  21. package/dist/{chunk-AOVGZ25K.cjs → chunk-SMRVK6BI.cjs} +5 -5
  22. package/dist/{chunk-7V4JI5TB.cjs → chunk-U5GLSXSD.cjs} +6 -6
  23. package/dist/{chunk-6Q7RC2MK.cjs → chunk-UPXIY52O.cjs} +147 -3
  24. package/dist/{chunk-L5LKKENW.cjs → chunk-UWXE23BT.cjs} +4 -4
  25. package/dist/{chunk-ALC6K7GL.cjs → chunk-VDDJUO4G.cjs} +28 -7
  26. package/dist/{chunk-CSD27UNQ.js → chunk-XF3AATZJ.js} +5 -5
  27. package/dist/{chunk-RARB3MBR.js → chunk-YDPEHCCI.cjs} +127 -3
  28. package/dist/compiler/gltf-pipeline.cjs +8 -8
  29. package/dist/compiler/gltf-pipeline.js +1 -1
  30. package/dist/compiler/index.cjs +41 -41
  31. package/dist/compiler/index.js +7 -7
  32. package/dist/compiler/r3f.cjs +8 -8
  33. package/dist/compiler/r3f.js +3 -3
  34. package/dist/debugger.cjs +5 -5
  35. package/dist/debugger.js +3 -3
  36. package/dist/index.cjs +305 -397
  37. package/dist/index.js +12 -104
  38. package/dist/reconstruction/index.cjs +31 -31
  39. package/dist/reconstruction/index.js +2 -2
  40. package/dist/runtime.cjs +150 -293
  41. package/dist/runtime.js +82 -23
  42. package/dist/traits/botanical-lotus.cjs +60 -44
  43. package/dist/traits/botanical-lotus.js +2 -2
  44. package/dist/traits/index.cjs +481 -465
  45. package/dist/traits/index.js +5 -5
  46. package/package.json +66 -65
  47. package/LICENSE +0 -21
  48. package/dist/HoloScriptRuntime-CBYJX3LZ.js +0 -10
File without changes
@@ -1,8 +1,8 @@
1
- export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture } from './chunk-E6XXE66V.js';
1
+ export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture } from './chunk-RLLNOI3T.js';
2
2
  import './chunk-EKBKLK7P.js';
3
- import './chunk-BGY3SDG3.js';
3
+ import './chunk-37ZNYWWW.js';
4
4
  import './chunk-XT6JY5W5.js';
5
- import './chunk-4GU5GCIY.js';
5
+ import './chunk-QRPRIJ2W.js';
6
6
  import './chunk-TJHVSBP2.js';
7
7
  import './chunk-4C57PR42.js';
8
8
  import './chunk-GZG4KA4E.js';
@@ -13,5 +13,5 @@ import './chunk-N75IH2HY.js';
13
13
  import './chunk-MXFUTKCO.js';
14
14
  import './chunk-VVKVQZI6.js';
15
15
  import './chunk-OL46QLBJ.js';
16
- //# sourceMappingURL=GLTFPipeline-P3WMNYCN.js.map
17
- //# sourceMappingURL=GLTFPipeline-P3WMNYCN.js.map
16
+ //# sourceMappingURL=GLTFPipeline-PN3DN6FO.js.map
17
+ //# sourceMappingURL=GLTFPipeline-PN3DN6FO.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkX3UVCWNL_cjs = require('./chunk-X3UVCWNL.cjs');
3
+ var chunk5PLWAEQQ_cjs = require('./chunk-5PLWAEQQ.cjs');
4
4
  require('./chunk-EXUP2BUM.cjs');
5
- require('./chunk-ALC6K7GL.cjs');
5
+ require('./chunk-VDDJUO4G.cjs');
6
6
  require('./chunk-UOIGFQXC.cjs');
7
- require('./chunk-6Q7RC2MK.cjs');
7
+ require('./chunk-UPXIY52O.cjs');
8
8
  require('./chunk-5S7RKFGR.cjs');
9
9
  require('./chunk-OIQYIIO3.cjs');
10
10
  require('./chunk-AIA52I7T.cjs');
@@ -20,19 +20,19 @@ require('./chunk-HCCQLAA4.cjs');
20
20
 
21
21
  Object.defineProperty(exports, "GLTFPipeline", {
22
22
  enumerable: true,
23
- get: function () { return chunkX3UVCWNL_cjs.GLTFPipeline; }
23
+ get: function () { return chunk5PLWAEQQ_cjs.GLTFPipeline; }
24
24
  });
25
25
  Object.defineProperty(exports, "createGLTFPipeline", {
26
26
  enumerable: true,
27
- get: function () { return chunkX3UVCWNL_cjs.createGLTFPipeline; }
27
+ get: function () { return chunk5PLWAEQQ_cjs.createGLTFPipeline; }
28
28
  });
29
29
  Object.defineProperty(exports, "generateScaleNormalMap", {
30
30
  enumerable: true,
31
- get: function () { return chunkX3UVCWNL_cjs.generateScaleNormalMap; }
31
+ get: function () { return chunk5PLWAEQQ_cjs.generateScaleNormalMap; }
32
32
  });
33
33
  Object.defineProperty(exports, "generateScaleTexture", {
34
34
  enumerable: true,
35
- get: function () { return chunkX3UVCWNL_cjs.generateScaleTexture; }
35
+ get: function () { return chunk5PLWAEQQ_cjs.generateScaleTexture; }
36
36
  });
37
- //# sourceMappingURL=GLTFPipeline-N6B6PJ6G.cjs.map
38
- //# sourceMappingURL=GLTFPipeline-N6B6PJ6G.cjs.map
37
+ //# sourceMappingURL=GLTFPipeline-W45UOCNY.cjs.map
38
+ //# sourceMappingURL=GLTFPipeline-W45UOCNY.cjs.map
@@ -0,0 +1,10 @@
1
+ export { HoloScriptRuntime } from './chunk-QACVP4PM.js';
2
+ import './chunk-XL6INWKT.js';
3
+ import './chunk-IELX2OKI.js';
4
+ import './chunk-URG2SJLK.js';
5
+ import './chunk-H652NHX5.js';
6
+ import './chunk-PHENW4MQ.js';
7
+ import './chunk-VVKVQZI6.js';
8
+ import './chunk-OL46QLBJ.js';
9
+ //# sourceMappingURL=HoloScriptRuntime-ACDFKVVH.js.map
10
+ //# sourceMappingURL=HoloScriptRuntime-ACDFKVVH.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkMQWAT42R_cjs = require('./chunk-MQWAT42R.cjs');
3
+ var chunk6DO5IZ5N_cjs = require('./chunk-6DO5IZ5N.cjs');
4
4
  require('./chunk-GJNCFRJU.cjs');
5
- require('./chunk-SMIWS6DE.cjs');
5
+ require('./chunk-YDPEHCCI.cjs');
6
6
  require('./chunk-JIYN45TV.cjs');
7
7
  require('./chunk-TVHSPJ4N.cjs');
8
8
  require('./chunk-ILRBGFVD.cjs');
@@ -13,7 +13,7 @@ require('./chunk-HCCQLAA4.cjs');
13
13
 
14
14
  Object.defineProperty(exports, "HoloScriptRuntime", {
15
15
  enumerable: true,
16
- get: function () { return chunkMQWAT42R_cjs.HoloScriptRuntime; }
16
+ get: function () { return chunk6DO5IZ5N_cjs.HoloScriptRuntime; }
17
17
  });
18
- //# sourceMappingURL=HoloScriptRuntime-VJ374RER.cjs.map
19
- //# sourceMappingURL=HoloScriptRuntime-VJ374RER.cjs.map
18
+ //# sourceMappingURL=HoloScriptRuntime-ON2OQVEF.cjs.map
19
+ //# sourceMappingURL=HoloScriptRuntime-ON2OQVEF.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkKHDZJE5D_cjs = require('./chunk-KHDZJE5D.cjs');
3
+ var chunkELEHNDDS_cjs = require('./chunk-ELEHNDDS.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 = chunkKHDZJE5D_cjs.createHoloMapRuntime();
588
+ const runtime = chunkELEHNDDS_cjs.createHoloMapRuntime();
589
589
  await runtime.init({
590
- ...chunkKHDZJE5D_cjs.HOLOMAP_DEFAULTS,
590
+ ...chunkELEHNDDS_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-CR7XRXRN.cjs.map
639
- //# sourceMappingURL=chunk-CR7XRXRN.cjs.map
638
+ //# sourceMappingURL=chunk-33AZRKKQ.cjs.map
639
+ //# sourceMappingURL=chunk-33AZRKKQ.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { init_material_properties_visual, init_surface_texture_visual, init_lighting_visual, init_gems_minerals_visual, init_fabric_cloth_visual, init_visual_effects_visual, init_age_condition_visual, init_water_fluid_visual, init_weather_phenomena_visual, init_emotion_mood_visual, init_size_scale_visual, init_environmental_biome_visual, init_magic_fantasy_visual, init_scifi_technology_visual, init_creatures_mythical_visual, init_nature_life_visual, init_furniture_decor_visual, init_construction_building_visual, init_containers_storage_visual, init_shape_form_visual, init_animals_visual, init_maritime_naval_visual, init_time_period_visual, init_accessibility_visual, init_accessibility_extended_visual, init_architecture_realestate_visual, init_audio_visual, init_cooking_food_visual, init_core_vr_interaction_visual, init_data_visualization_visual, init_education_learning_visual, init_environment_input_visual, init_game_mechanics_visual, init_geospatial_web3_visual, init_healthcare_medical_visual, init_humanoid_avatar_visual, init_intelligence_behavior_visual, init_interop_copresence_visual, init_iot_autonomous_agents_visual, init_locomotion_movement_visual, init_measurement_sensing_visual, init_media_analytics_visual, init_multisensory_haptic_visual, init_musical_sound_visual, init_music_performance_visual, init_narrative_storytelling_visual, init_networking_ai_visual, init_npc_roles_visual, init_object_interaction_visual, init_parser_core_ui_visual, init_physical_affordances_visual, init_physics_expansion_visual, init_procedural_generation_visual, init_resource_gathering_visual, init_safety_boundaries_visual, init_signs_communication_visual, init_simple_modifiers_visual, init_social_commerce_visual, init_social_effects_visual, init_sports_fitness_visual, init_state_persistence_visual, init_transportation_vehicles_visual, init_volumetric_webgpu_visual, init_weather_particles_visual, init_xr_platform_visual, MATERIAL_PROPERTIES_VISUALS, SURFACE_TEXTURE_VISUALS, LIGHTING_VISUALS, GEMS_MINERALS_VISUALS, FABRIC_CLOTH_VISUALS, VISUAL_EFFECTS_VISUALS, AGE_CONDITION_VISUALS, WATER_FLUID_VISUALS, WEATHER_PHENOMENA_VISUALS, EMOTION_MOOD_VISUALS, SIZE_SCALE_VISUALS, ENVIRONMENTAL_BIOME_VISUALS, MAGIC_FANTASY_VISUALS, SCIFI_TECHNOLOGY_VISUALS, CREATURES_MYTHICAL_VISUALS, NATURE_LIFE_VISUALS, FURNITURE_DECOR_VISUALS, CONSTRUCTION_BUILDING_VISUALS, CONTAINERS_STORAGE_VISUALS, SHAPE_FORM_VISUALS, ANIMALS_VISUALS, MARITIME_NAVAL_VISUALS, TIME_PERIOD_VISUALS, ACCESSIBILITY_VISUALS, ACCESSIBILITY_EXTENDED_VISUALS, ARCHITECTURE_REALESTATE_VISUALS, AUDIO_VISUALS, COOKING_FOOD_VISUALS, CORE_VR_INTERACTION_VISUALS, DATA_VISUALIZATION_VISUALS, EDUCATION_LEARNING_VISUALS, ENVIRONMENT_INPUT_VISUALS, GAME_MECHANICS_VISUALS, GEOSPATIAL_WEB3_VISUALS, HEALTHCARE_MEDICAL_VISUALS, HUMANOID_AVATAR_VISUALS, INTELLIGENCE_BEHAVIOR_VISUALS, INTEROP_COPRESENCE_VISUALS, IOT_AUTONOMOUS_AGENTS_VISUALS, LOCOMOTION_MOVEMENT_VISUALS, MEASUREMENT_SENSING_VISUALS, MEDIA_ANALYTICS_VISUALS, MULTISENSORY_HAPTIC_VISUALS, MUSICAL_SOUND_VISUALS, MUSIC_PERFORMANCE_VISUALS, NARRATIVE_STORYTELLING_VISUALS, NETWORKING_AI_VISUALS, NPC_ROLES_VISUALS, OBJECT_INTERACTION_VISUALS, PARSER_CORE_UI_VISUALS, PHYSICAL_AFFORDANCES_VISUALS, PHYSICS_EXPANSION_VISUALS, PROCEDURAL_GENERATION_VISUALS, RESOURCE_GATHERING_VISUALS, SAFETY_BOUNDARIES_VISUALS, SIGNS_COMMUNICATION_VISUALS, SIMPLE_MODIFIERS_VISUALS, SOCIAL_COMMERCE_VISUALS, SOCIAL_EFFECTS_VISUALS, SPORTS_FITNESS_VISUALS, STATE_PERSISTENCE_VISUALS, TRANSPORTATION_VEHICLES_VISUALS, VOLUMETRIC_WEBGPU_VISUALS, WEATHER_PARTICLES_VISUALS, XR_PLATFORM_VISUALS } from './chunk-XT6JY5W5.js';
2
- import { init_BotanicalLotusTrait, createBotanicalLotusRenderProfile, buildLotusPetalMaterialSpec, LOTUS_PETAL_UNIFORM_BINDINGS } from './chunk-4GU5GCIY.js';
2
+ import { init_BotanicalLotusTrait, createBotanicalLotusRenderProfile, buildLotusPetalMaterialSpec, LOTUS_PETAL_UNIFORM_BINDINGS, buildLotusPetalGeometryData, lotusPetalGeometryParamsFromProfile, buildLotusFlowerPlacements } from './chunk-QRPRIJ2W.js';
3
3
  import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
4
4
  import { init_TraitVisualRegistry, init_types, init_TraitCompositor, TraitCompositor, TraitVisualRegistry } from './chunk-4C57PR42.js';
5
5
  import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GZG4KA4E.js';
@@ -2934,6 +2934,27 @@ var init_R3FCompiler = __esm({
2934
2934
  const profile = createBotanicalLotusRenderProfile(config);
2935
2935
  props.__compiledMaterial = buildLotusPetalMaterialSpec(profile);
2936
2936
  props.__uniformBindings = LOTUS_PETAL_UNIFORM_BINDINGS;
2937
+ props.__petalGeometry = buildLotusPetalGeometryData(
2938
+ lotusPetalGeometryParamsFromProfile(profile)
2939
+ );
2940
+ props.__petalPlacements = buildLotusFlowerPlacements(profile);
2941
+ props.__lotusScene = {
2942
+ stemHeight: 2.4,
2943
+ colors: {
2944
+ water: profile.colors.water,
2945
+ leaf: profile.colors.leaf,
2946
+ leafDark: profile.colors.leaf_dark
2947
+ },
2948
+ // The flower CENTRE: the seed pod (receptacle) ringed by stamen filaments —
2949
+ // the iconic lotus centre, colours + count from the profile.
2950
+ center: {
2951
+ seedPod: profile.colors.seed_pod,
2952
+ seedPodRim: profile.colors.seed_pod_rim,
2953
+ stamen: profile.colors.stamen,
2954
+ stamenTip: profile.colors.stamen_tip,
2955
+ stamenCount: profile.stamen_filament_count
2956
+ }
2957
+ };
2937
2958
  }
2938
2959
  compileNode(node) {
2939
2960
  if (node.type === "system") {
@@ -4392,5 +4413,5 @@ var init_R3FCompiler = __esm({
4392
4413
  });
4393
4414
 
4394
4415
  export { ASTNodePool, ENVIRONMENT_PRESETS, MATERIAL_PRESETS, QUALITY_TIER_SCALES, R3FCompiler, R3FCompiler_exports, UI_COMPONENT_PRESETS, init_ObjectPool, init_R3FCompiler, init_visual, registerAllPresets };
4395
- //# sourceMappingURL=chunk-BGY3SDG3.js.map
4396
- //# sourceMappingURL=chunk-BGY3SDG3.js.map
4416
+ //# sourceMappingURL=chunk-37ZNYWWW.js.map
4417
+ //# sourceMappingURL=chunk-37ZNYWWW.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkEXUP2BUM_cjs = require('./chunk-EXUP2BUM.cjs');
4
- var chunkALC6K7GL_cjs = require('./chunk-ALC6K7GL.cjs');
4
+ var chunkVDDJUO4G_cjs = require('./chunk-VDDJUO4G.cjs');
5
5
  var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
6
6
  var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
7
7
  var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
@@ -9,7 +9,7 @@ var ans = require('@holoscript/core-types/ans');
9
9
 
10
10
  // src/compiler/GLTFPipeline.ts
11
11
  chunkOIQYIIO3_cjs.init_TraitCompositor();
12
- chunkALC6K7GL_cjs.init_R3FCompiler();
12
+ chunkVDDJUO4G_cjs.init_R3FCompiler();
13
13
  chunkKKP7JKN4_cjs.init_CompilerBase();
14
14
  chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
15
15
 
@@ -120,8 +120,8 @@ function declareExtensions(gltf) {
120
120
  }
121
121
 
122
122
  // src/compiler/GLTFPipeline.ts
123
- chunkALC6K7GL_cjs.init_ObjectPool();
124
- var gltfNodePool = new chunkALC6K7GL_cjs.ASTNodePool(
123
+ chunkVDDJUO4G_cjs.init_ObjectPool();
124
+ var gltfNodePool = new chunkVDDJUO4G_cjs.ASTNodePool(
125
125
  () => ({ name: "" }),
126
126
  (node) => {
127
127
  node.name = "";
@@ -1601,8 +1601,8 @@ var GLTFPipeline = class extends chunkKKP7JKN4_cjs.CompilerBase {
1601
1601
  let attenuationColor;
1602
1602
  let attenuationDistance;
1603
1603
  const namedMat = this.findProp(object, "material");
1604
- if (typeof namedMat === "string" && chunkALC6K7GL_cjs.MATERIAL_PRESETS[namedMat]) {
1605
- const preset = chunkALC6K7GL_cjs.MATERIAL_PRESETS[namedMat];
1604
+ if (typeof namedMat === "string" && chunkVDDJUO4G_cjs.MATERIAL_PRESETS[namedMat]) {
1605
+ const preset = chunkVDDJUO4G_cjs.MATERIAL_PRESETS[namedMat];
1606
1606
  if (preset.color) color = this.parseColorString(preset.color);
1607
1607
  if (preset.metalness !== void 0) metallic = preset.metalness;
1608
1608
  if (preset.roughness !== void 0) roughness = preset.roughness;
@@ -2253,5 +2253,5 @@ exports.GLTFPipeline = GLTFPipeline;
2253
2253
  exports.createGLTFPipeline = createGLTFPipeline;
2254
2254
  exports.generateScaleNormalMap = generateScaleNormalMap;
2255
2255
  exports.generateScaleTexture = generateScaleTexture;
2256
- //# sourceMappingURL=chunk-X3UVCWNL.cjs.map
2257
- //# sourceMappingURL=chunk-X3UVCWNL.cjs.map
2256
+ //# sourceMappingURL=chunk-5PLWAEQQ.cjs.map
2257
+ //# sourceMappingURL=chunk-5PLWAEQQ.cjs.map
@@ -1,36 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkGJNCFRJU_cjs = require('./chunk-GJNCFRJU.cjs');
4
- var chunkSMIWS6DE_cjs = require('./chunk-SMIWS6DE.cjs');
4
+ var chunkYDPEHCCI_cjs = require('./chunk-YDPEHCCI.cjs');
5
5
  var chunkJIYN45TV_cjs = require('./chunk-JIYN45TV.cjs');
6
6
  var chunkTVHSPJ4N_cjs = require('./chunk-TVHSPJ4N.cjs');
7
7
  var chunkILRBGFVD_cjs = require('./chunk-ILRBGFVD.cjs');
8
8
  var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
9
9
  var ws = require('ws');
10
- var orbital = require('@holoscript/engine/orbital');
11
- var mesh = require('@holoscript/mesh');
12
- var engineRuntime = require('@holoscript/engine/runtime');
13
- var learning = require('@holoscript/framework/learning');
14
-
15
- function _interopNamespace(e) {
16
- if (e && e.__esModule) return e;
17
- var n = Object.create(null);
18
- if (e) {
19
- Object.keys(e).forEach(function (k) {
20
- if (k !== 'default') {
21
- var d = Object.getOwnPropertyDescriptor(e, k);
22
- Object.defineProperty(n, k, d.get ? d : {
23
- enumerable: true,
24
- get: function () { return e[k]; }
25
- });
26
- }
27
- });
28
- }
29
- n.default = e;
30
- return Object.freeze(n);
31
- }
32
-
33
- var engineRuntime__namespace = /*#__PURE__*/_interopNamespace(engineRuntime);
34
10
 
35
11
  // src/HoloScriptRuntime.ts
36
12
  chunkE7JP3BS3_cjs.init_safeJsonParse();
@@ -2413,6 +2389,12 @@ async function evaluateHoloExpression(expr, scopeOverride, ctx) {
2413
2389
  return void 0;
2414
2390
  }
2415
2391
  }
2392
+
2393
+ // src/HoloScriptAgentRuntime.ts
2394
+ var MemoryConsolidator = chunkYDPEHCCI_cjs.lazyPeerSymbol(
2395
+ "@holoscript/framework/learning",
2396
+ "MemoryConsolidator"
2397
+ );
2416
2398
  function stringProperty(value) {
2417
2399
  return typeof value === "string" ? value : void 0;
2418
2400
  }
@@ -2604,12 +2586,12 @@ var HoloScriptAgentRuntime = class _HoloScriptAgentRuntime {
2604
2586
  */
2605
2587
  consolidateMemory() {
2606
2588
  if (this.isDestroyed || this.rawEpisodes.length < 5) return;
2607
- const { newFacts, prunedEpisodes } = learning.MemoryConsolidator.compressEpisodes(this.rawEpisodes);
2589
+ const { newFacts, prunedEpisodes } = MemoryConsolidator.compressEpisodes(this.rawEpisodes);
2608
2590
  if (newFacts.length > 0) {
2609
2591
  this.semanticFacts.push(...newFacts);
2610
2592
  this.rawEpisodes = this.rawEpisodes.filter((e) => !prunedEpisodes.includes(e.id));
2611
2593
  }
2612
- this.semanticFacts = learning.MemoryConsolidator.pruneStaleFacts(this.semanticFacts);
2594
+ this.semanticFacts = MemoryConsolidator.pruneStaleFacts(this.semanticFacts);
2613
2595
  }
2614
2596
  /**
2615
2597
  * Lazily attach the JEPAObjective trait on first use so constructor stays fast.
@@ -3028,6 +3010,21 @@ var ExtensionRegistry = class {
3028
3010
  };
3029
3011
 
3030
3012
  // src/HoloScriptRuntime.ts
3013
+ var TimeManager = chunkYDPEHCCI_cjs.lazyPeerSymbol(
3014
+ "@holoscript/engine/orbital",
3015
+ "TimeManager"
3016
+ );
3017
+ var AttentionEngine = chunkYDPEHCCI_cjs.lazyPeerSymbol(
3018
+ "@holoscript/engine/orbital",
3019
+ "AttentionEngine"
3020
+ );
3021
+ var StateSynchronizer = chunkYDPEHCCI_cjs.lazyPeerSymbol(
3022
+ "@holoscript/mesh",
3023
+ "StateSynchronizer"
3024
+ );
3025
+ var engineRuntime = chunkYDPEHCCI_cjs.definePeerNamespace(
3026
+ "@holoscript/engine/runtime"
3027
+ );
3031
3028
  var RUNTIME_SECURITY_LIMITS = {
3032
3029
  maxExecutionDepth: 50,
3033
3030
  maxTotalNodes: 1e3,
@@ -3054,15 +3051,15 @@ var HoloScriptRuntime = class {
3054
3051
  this.context = createEmptyContext();
3055
3052
  this.currentScope = { variables: this.context.variables };
3056
3053
  this.builtinFunctions = this.initBuiltins(customFunctions);
3057
- this.agentPool = new engineRuntime__namespace.ObjectPool(
3054
+ this.agentPool = new engineRuntime.ObjectPool(
3058
3055
  () => new HoloScriptAgentRuntime(),
3059
3056
  // Preallocation mode (optional args)
3060
3057
  (agent) => agent.destroy(),
3061
3058
  50
3062
3059
  );
3063
- engineRuntime__namespace.registerVoiceSynthesizer("default", new engineRuntime__namespace.BaseVoiceSynthesizer());
3064
- engineRuntime__namespace.registerEmotionDetector("default", new engineRuntime__namespace.LocalEmotionDetector());
3065
- engineRuntime__namespace.registerSpeechRecognizer("default", new engineRuntime__namespace.MockSpeechRecognizer());
3060
+ engineRuntime.registerVoiceSynthesizer("default", new engineRuntime.BaseVoiceSynthesizer());
3061
+ engineRuntime.registerEmotionDetector("default", new engineRuntime.LocalEmotionDetector());
3062
+ engineRuntime.registerSpeechRecognizer("default", new engineRuntime.MockSpeechRecognizer());
3066
3063
  for (const [name, fn] of this.builtinFunctions) {
3067
3064
  this.context.functions.set(name, ((...spreadArgs) => fn(spreadArgs)));
3068
3065
  }
@@ -3085,7 +3082,7 @@ var HoloScriptRuntime = class {
3085
3082
  });
3086
3083
  }
3087
3084
  });
3088
- return orbital.AttentionEngine.getTopKEntities(
3085
+ return AttentionEngine.getTopKEntities(
3089
3086
  observerPos,
3090
3087
  entities,
3091
3088
  topK
@@ -3094,8 +3091,8 @@ var HoloScriptRuntime = class {
3094
3091
  this.traitHandlers.set("mitosis", chunkTVHSPJ4N_cjs.mitosisHandler);
3095
3092
  this.traitHandlers.set("orbital", chunkTVHSPJ4N_cjs.orbitalHandler);
3096
3093
  this.extensionRegistry = new ExtensionRegistry(this);
3097
- engineRuntime__namespace.stateMachineInterpreter.setHookExecutor((code) => this.evaluateExpression(code));
3098
- engineRuntime__namespace.stateMachineInterpreter.setGuardEvaluator((expr) => this.evaluateExpression(expr));
3094
+ engineRuntime.stateMachineInterpreter.setHookExecutor((code) => this.evaluateExpression(code));
3095
+ engineRuntime.stateMachineInterpreter.setGuardEvaluator((expr) => this.evaluateExpression(expr));
3099
3096
  }
3100
3097
  /**
3101
3098
  * Initialize built-in functions
@@ -3557,10 +3554,10 @@ var HoloScriptRuntime = class {
3557
3554
  // contract requires Promise<void> so trait-side emits can `await`
3558
3555
  // through a unified interface. Wrap with Promise.resolve.
3559
3556
  globalBusEmit: (event, data) => {
3560
- chunkSMIWS6DE_cjs.getSharedEventBus().emit(event, data);
3557
+ chunkYDPEHCCI_cjs.getSharedEventBus().emit(event, data);
3561
3558
  return Promise.resolve();
3562
3559
  },
3563
- sendStateMachineEvent: (id, event) => engineRuntime__namespace.stateMachineInterpreter.sendEvent(id, event)
3560
+ sendStateMachineEvent: (id, event) => engineRuntime.stateMachineInterpreter.sendEvent(id, event)
3564
3561
  };
3565
3562
  }
3566
3563
  /**
@@ -3713,7 +3710,7 @@ var HoloScriptRuntime = class {
3713
3710
  try {
3714
3711
  this.wss = new ws.WebSocketServer({ port });
3715
3712
  chunkILRBGFVD_cjs.logger.info(`[Visualizer] WebSocket server started on port ${port}`);
3716
- this.timeManager = new orbital.TimeManager(/* @__PURE__ */ new Date());
3713
+ this.timeManager = new TimeManager(/* @__PURE__ */ new Date());
3717
3714
  this.timeManager.onUpdate((julianDate, date) => {
3718
3715
  this.updateTraits(julianDate);
3719
3716
  this.broadcast("time_update", {
@@ -3861,12 +3858,12 @@ var HoloScriptRuntime = class {
3861
3858
  evaluateHoloExpression: (expr, scopeOverride) => this.evaluateHoloExpression(expr, scopeOverride),
3862
3859
  telemetry: {
3863
3860
  setGauge: (name, value) => {
3864
- chunkSMIWS6DE_cjs.telemetry.setGauge(name, value);
3861
+ chunkYDPEHCCI_cjs.telemetry.setGauge(name, value);
3865
3862
  },
3866
3863
  incrementCounter: (name, value, labels) => {
3867
- chunkSMIWS6DE_cjs.telemetry.incrementCounter(name, value, labels);
3864
+ chunkYDPEHCCI_cjs.telemetry.incrementCounter(name, value, labels);
3868
3865
  },
3869
- measureLatency: (name, fn) => chunkSMIWS6DE_cjs.telemetry.measureLatency(name, fn),
3866
+ measureLatency: (name, fn) => chunkYDPEHCCI_cjs.telemetry.measureLatency(name, fn),
3870
3867
  executionDepth: () => this.context.executionStack.length
3871
3868
  }
3872
3869
  };
@@ -4185,7 +4182,7 @@ var HoloScriptRuntime = class {
4185
4182
  loadSkill(skill) {
4186
4183
  loadSkill(skill, {
4187
4184
  proceduralSkills: this.proceduralSkills,
4188
- broadcastSkill: (s) => mesh.StateSynchronizer.getInstance().broadcastSkill(s)
4185
+ broadcastSkill: (s) => StateSynchronizer.getInstance().broadcastSkill(s)
4189
4186
  });
4190
4187
  }
4191
4188
  async executeSkill(skillId, contextVariables = {}) {
@@ -4207,7 +4204,7 @@ var HoloScriptRuntime = class {
4207
4204
  } else {
4208
4205
  skill.successRate = Math.max(0, skill.successRate - 1);
4209
4206
  }
4210
- mesh.StateSynchronizer.getInstance().broadcastSkill(skill);
4207
+ StateSynchronizer.getInstance().broadcastSkill(skill);
4211
4208
  return {
4212
4209
  ...result,
4213
4210
  executionTime: Date.now() - startTime
@@ -4306,5 +4303,5 @@ var HoloScriptRuntime = class {
4306
4303
 
4307
4304
  exports.HoloScriptAgentRuntime = HoloScriptAgentRuntime;
4308
4305
  exports.HoloScriptRuntime = HoloScriptRuntime;
4309
- //# sourceMappingURL=chunk-MQWAT42R.cjs.map
4310
- //# sourceMappingURL=chunk-MQWAT42R.cjs.map
4306
+ //# sourceMappingURL=chunk-6DO5IZ5N.cjs.map
4307
+ //# sourceMappingURL=chunk-6DO5IZ5N.cjs.map
@@ -437,7 +437,7 @@ function uint8ArrayToBase64(data) {
437
437
  return btoa(binary);
438
438
  }
439
439
  async function importGLTFPipeline() {
440
- return import('./GLTFPipeline-N6B6PJ6G.cjs');
440
+ return import('./GLTFPipeline-W45UOCNY.cjs');
441
441
  }
442
442
  function registerGLTFTools(server) {
443
443
  for (const tool of GLTF_PIPELINE_TOOLS) {
@@ -453,5 +453,5 @@ exports.handleGLTFToolCall = handleGLTFToolCall;
453
453
  exports.inspectComposition = inspectComposition;
454
454
  exports.registerGLTFTools = registerGLTFTools;
455
455
  exports.validateForGLTF = validateForGLTF;
456
- //# sourceMappingURL=chunk-K574J76X.cjs.map
457
- //# sourceMappingURL=chunk-K574J76X.cjs.map
456
+ //# sourceMappingURL=chunk-6S5VS7BF.cjs.map
457
+ //# sourceMappingURL=chunk-6S5VS7BF.cjs.map
@@ -1,4 +1,4 @@
1
- import { createHoloMapRuntime, HOLOMAP_DEFAULTS } from './chunk-CSD27UNQ.js';
1
+ import { createHoloMapRuntime, HOLOMAP_DEFAULTS } from './chunk-XF3AATZJ.js';
2
2
 
3
3
  // src/reconstruction/FusedAttentionKernel.ts
4
4
  var FUSED_ATTENTION_WGSL = `
@@ -619,5 +619,5 @@ async function replayMobileSensorBundle(bundle, config = {}) {
619
619
  }
620
620
 
621
621
  export { ANCHOR_DEFAULTS, ARCORE_DEPTH_RECOMMENDED_RANGE_MILLIMETERS, HOLOMAP_MOBILE_SENSOR_BUNDLE_VERSION, TRAJECTORY_DEFAULTS, arCoreDepthFrameToMobileSensorFrame, cameraPoseFromColumnMajorTransform, createAnchorContext, createArCoreDepthMobileSensorBundle, createFusedAttentionBackend, createPagedKVCache, createTrajectoryMemory, mergeAnchoredProvenance, mobileSensorBundleToFrames, replayMobileSensorBundle, validateMobileSensorBundle };
622
- //# sourceMappingURL=chunk-YVOAF4ML.js.map
623
- //# sourceMappingURL=chunk-YVOAF4ML.js.map
622
+ //# sourceMappingURL=chunk-DHXLCJJN.js.map
623
+ //# sourceMappingURL=chunk-DHXLCJJN.js.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-4GU5GCIY.js';
6
+ import { init_BotanicalLotusTrait, botanicalLotusHandler } from './chunk-QRPRIJ2W.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-HR2OSYVQ.js.map
56165
- //# sourceMappingURL=chunk-HR2OSYVQ.js.map
56164
+ //# sourceMappingURL=chunk-DXWOTOUK.js.map
56165
+ //# sourceMappingURL=chunk-DXWOTOUK.js.map
@@ -4,9 +4,9 @@ var chunkLM2VU56C_cjs = require('./chunk-LM2VU56C.cjs');
4
4
  var chunkCIWWXYHZ_cjs = require('./chunk-CIWWXYHZ.cjs');
5
5
 
6
6
  // src/version.ts
7
- var HOLOSCRIPT_VERSION = "8.0.1" ;
8
- var GIT_COMMIT_SHA = "efb467dce" ;
9
- var BUILD_TIMESTAMP = "2026-06-04T22:03:08.151Z" ;
7
+ var HOLOSCRIPT_VERSION = "8.0.3" ;
8
+ var GIT_COMMIT_SHA = "b806c07bf" ;
9
+ var BUILD_TIMESTAMP = "2026-06-05T00:05:33.792Z" ;
10
10
  function getVersionString() {
11
11
  const sha = `+${GIT_COMMIT_SHA}` ;
12
12
  return `${HOLOSCRIPT_VERSION}${sha}`;
@@ -2192,5 +2192,5 @@ exports.putCachedWeightBlob = putCachedWeightBlob;
2192
2192
  exports.resetHoloMapTelemetryForTests = resetHoloMapTelemetryForTests;
2193
2193
  exports.runHoloMapMicroEncoderCpu = runHoloMapMicroEncoderCpu;
2194
2194
  exports.tryCreateHoloMapEncoderDevice = tryCreateHoloMapEncoderDevice;
2195
- //# sourceMappingURL=chunk-KHDZJE5D.cjs.map
2196
- //# sourceMappingURL=chunk-KHDZJE5D.cjs.map
2195
+ //# sourceMappingURL=chunk-ELEHNDDS.cjs.map
2196
+ //# sourceMappingURL=chunk-ELEHNDDS.cjs.map
@@ -1,4 +1,4 @@
1
- 'use strict';
1
+ import { createRequire } from 'module';
2
2
 
3
3
  // src/events/EventBus.ts
4
4
  var EventBus = class {
@@ -203,10 +203,121 @@ var TelemetryRegistry = class {
203
203
  }
204
204
  };
205
205
  var telemetry = new TelemetryRegistry();
206
+ var _requirePeer;
207
+ function requirePeer(specifier) {
208
+ if (!_requirePeer) {
209
+ if (typeof createRequire !== "function") {
210
+ throw new Error(
211
+ "@holoscript/core: optional peer symbols require a Node.js environment (`createRequire` is unavailable in this bundle). The core parser and compiler surface work without the optional peers."
212
+ );
213
+ }
214
+ _requirePeer = createRequire(import.meta.url);
215
+ }
216
+ return _requirePeer(specifier);
217
+ }
218
+ var peerCache = /* @__PURE__ */ new Map();
219
+ function loadPeer(specifier) {
220
+ const cached = peerCache.get(specifier);
221
+ if (cached) return cached;
222
+ let mod;
223
+ try {
224
+ mod = requirePeer(specifier);
225
+ } catch (err) {
226
+ const e = err;
227
+ const pkg = specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
228
+ if (e && (e.code === "ERR_MODULE_NOT_FOUND" || e.code === "MODULE_NOT_FOUND")) {
229
+ throw new Error(
230
+ `@holoscript/core: optional peer "${pkg}" is required to use this symbol but is not installed. Run \`npm install ${pkg}\` (or your package manager's equivalent) to enable it. The core parser and compiler surface work without it.`
231
+ );
232
+ }
233
+ throw err;
234
+ }
235
+ peerCache.set(specifier, mod);
236
+ return mod;
237
+ }
238
+ function resolveSymbol(specifier, name) {
239
+ const mod = loadPeer(specifier);
240
+ if (!(name in mod)) {
241
+ const pkg = specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
242
+ throw new Error(
243
+ `@holoscript/core: symbol "${name}" was not found in optional peer "${specifier}" (package "${pkg}"). The installed peer version may be incompatible with this @holoscript/core release.`
244
+ );
245
+ }
246
+ return mod[name];
247
+ }
248
+ function lazyPeerSymbol(specifier, name) {
249
+ const target = function lazyPeerProxyTarget() {
250
+ };
251
+ let resolved;
252
+ const real = () => {
253
+ if (resolved === void 0) resolved = resolveSymbol(specifier, name);
254
+ return resolved;
255
+ };
256
+ const tryReal = () => {
257
+ try {
258
+ return real();
259
+ } catch {
260
+ return void 0;
261
+ }
262
+ };
263
+ return new Proxy(target, {
264
+ apply(_t, thisArg, args) {
265
+ return Reflect.apply(real(), thisArg, args);
266
+ },
267
+ construct(_t, args, newTarget) {
268
+ return Reflect.construct(real(), args, newTarget);
269
+ },
270
+ get(_t, prop) {
271
+ const r = tryReal();
272
+ if (r == null) return Reflect.get(_t, prop);
273
+ const v = Reflect.get(r, prop, r);
274
+ return typeof v === "function" ? v.bind(r) : v;
275
+ },
276
+ has(_t, prop) {
277
+ const r = tryReal();
278
+ return Reflect.has(r ?? _t, prop);
279
+ },
280
+ getPrototypeOf(_t) {
281
+ const r = tryReal();
282
+ return Reflect.getPrototypeOf(r ?? _t);
283
+ },
284
+ // ownKeys / getOwnPropertyDescriptor MUST satisfy Proxy invariants (the
285
+ // function target has a non-configurable `prototype` key), so on resolution
286
+ // failure delegate to the TARGET — never return [] / undefined, which throws.
287
+ ownKeys(_t) {
288
+ const r = tryReal();
289
+ return Reflect.ownKeys(r ?? _t);
290
+ },
291
+ getOwnPropertyDescriptor(_t, prop) {
292
+ const r = tryReal();
293
+ return Reflect.getOwnPropertyDescriptor(r ?? _t, prop);
294
+ }
295
+ });
296
+ }
297
+ function definePeerNamespace(specifier) {
298
+ return new Proxy(
299
+ {},
300
+ {
301
+ get(_t, prop) {
302
+ if (typeof prop !== "string") return void 0;
303
+ return loadPeer(specifier)[prop];
304
+ },
305
+ has(_t, prop) {
306
+ return typeof prop === "string" && prop in loadPeer(specifier);
307
+ },
308
+ ownKeys() {
309
+ return Reflect.ownKeys(loadPeer(specifier));
310
+ },
311
+ getOwnPropertyDescriptor(_t, prop) {
312
+ if (typeof prop !== "string") return void 0;
313
+ const mod = loadPeer(specifier);
314
+ if (!(prop in mod)) return void 0;
315
+ return { enumerable: true, configurable: true, value: mod[prop] };
316
+ }
317
+ }
318
+ );
319
+ }
206
320
 
207
- exports.EventBus = EventBus;
208
- exports.getSharedEventBus = getSharedEventBus;
209
- exports.setSharedEventBus = setSharedEventBus;
210
- exports.telemetry = telemetry;
211
- //# sourceMappingURL=chunk-SMIWS6DE.cjs.map
212
- //# sourceMappingURL=chunk-SMIWS6DE.cjs.map
321
+ export { EventBus, definePeerNamespace, getSharedEventBus, lazyPeerSymbol, setSharedEventBus, telemetry };
322
+ //# sourceMappingURL=chunk-IELX2OKI.js.map
323
+ //# sourceMappingURL=chunk-IELX2OKI.js.map
@@ -435,7 +435,7 @@ function uint8ArrayToBase64(data) {
435
435
  return btoa(binary);
436
436
  }
437
437
  async function importGLTFPipeline() {
438
- return import('./GLTFPipeline-P3WMNYCN.js');
438
+ return import('./GLTFPipeline-PN3DN6FO.js');
439
439
  }
440
440
  function registerGLTFTools(server) {
441
441
  for (const tool of GLTF_PIPELINE_TOOLS) {
@@ -445,5 +445,5 @@ function registerGLTFTools(server) {
445
445
  var GLTFPipelineMCPTool_default = handleGLTFToolCall;
446
446
 
447
447
  export { GLTFPipelineMCPTool_default, GLTF_PIPELINE_TOOLS, analyzeOptimizations, handleGLTFToolCall, inspectComposition, registerGLTFTools, validateForGLTF };
448
- //# sourceMappingURL=chunk-7T25IEZ2.js.map
449
- //# sourceMappingURL=chunk-7T25IEZ2.js.map
448
+ //# sourceMappingURL=chunk-JYTTPNKK.js.map
449
+ //# sourceMappingURL=chunk-JYTTPNKK.js.map