@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,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkR75BSDH7_cjs = require('./chunk-R75BSDH7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
5
5
|
var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
6
6
|
var crypto = require('crypto');
|
|
7
7
|
|
|
@@ -1268,8 +1268,8 @@ function createSemanticCache(options) {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
|
|
1270
1270
|
// src/compiler/IncrementalCompiler.ts
|
|
1271
|
-
|
|
1272
|
-
|
|
1271
|
+
chunkQWAR3GY6_cjs.init_AgentRBAC();
|
|
1272
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
1273
1273
|
chunkE7JP3BS3_cjs.init_safeJsonParse();
|
|
1274
1274
|
function hashContent(content) {
|
|
1275
1275
|
let hash = 0;
|
|
@@ -1772,7 +1772,7 @@ var IncrementalCompiler = class _IncrementalCompiler {
|
|
|
1772
1772
|
*/
|
|
1773
1773
|
validateAccess(agentToken) {
|
|
1774
1774
|
if (!agentToken) return;
|
|
1775
|
-
const rbac =
|
|
1775
|
+
const rbac = chunkQWAR3GY6_cjs.getRBAC();
|
|
1776
1776
|
const decision = rbac.checkAccess({
|
|
1777
1777
|
token: agentToken,
|
|
1778
1778
|
resourceType: "ast" /* AST */,
|
|
@@ -1997,7 +1997,7 @@ function deserializeCache(json) {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
return compiler;
|
|
1999
1999
|
}
|
|
2000
|
-
var UnauthorizedIncrementalCompilerAccessError = class extends
|
|
2000
|
+
var UnauthorizedIncrementalCompilerAccessError = class extends chunkQWAR3GY6_cjs.UnauthorizedCompilerAccessError {
|
|
2001
2001
|
constructor(decision, compilerName) {
|
|
2002
2002
|
super(decision, "incremental compilation", compilerName);
|
|
2003
2003
|
this.name = "UnauthorizedIncrementalCompilerAccessError";
|
|
@@ -2011,5 +2011,5 @@ exports.createIncrementalCompiler = createIncrementalCompiler;
|
|
|
2011
2011
|
exports.deserializeCache = deserializeCache;
|
|
2012
2012
|
exports.globalTraitGraph = globalTraitGraph;
|
|
2013
2013
|
exports.serializeCache = serializeCache;
|
|
2014
|
-
//# sourceMappingURL=chunk-
|
|
2015
|
-
//# sourceMappingURL=chunk-
|
|
2014
|
+
//# sourceMappingURL=chunk-TFUMBR7G.cjs.map
|
|
2015
|
+
//# sourceMappingURL=chunk-TFUMBR7G.cjs.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/LLMProviderCapabilitiesCompiler.ts
|
|
7
|
-
|
|
7
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
8
8
|
var VENDOR_AS_SUBSTRATE_PATTERNS = [
|
|
9
9
|
{ pattern: /managed_agents_replaces_holomesh/i, rule: "W.GOLD.002 - vendor framework cannot replace HoloMesh" },
|
|
10
10
|
{ pattern: /vector_store_as_source_of_truth/i, rule: "docs/LLM_CAPABILITIES.md hard-don'ts - vendor stores never source-of-truth" },
|
|
@@ -62,7 +62,7 @@ var ADAPTER_OPTIONAL_BOOLEAN_FIELDS = ADAPTER_CAPABILITY_FIELD_ORDER.filter(
|
|
|
62
62
|
"bearerTokenAccess"
|
|
63
63
|
].includes(field)
|
|
64
64
|
);
|
|
65
|
-
var LLMProviderCapabilitiesCompiler = class extends
|
|
65
|
+
var LLMProviderCapabilitiesCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
66
66
|
constructor(options = {}) {
|
|
67
67
|
super();
|
|
68
68
|
this.compilerName = "LLMProviderCapabilitiesCompiler";
|
|
@@ -725,5 +725,5 @@ function daysBetween(earlier, later) {
|
|
|
725
725
|
exports.LLMCapabilityCompileError = LLMCapabilityCompileError;
|
|
726
726
|
exports.LLMProviderCapabilitiesCompiler = LLMProviderCapabilitiesCompiler;
|
|
727
727
|
exports.createLLMProviderCapabilitiesCompiler = createLLMProviderCapabilitiesCompiler;
|
|
728
|
-
//# sourceMappingURL=chunk-
|
|
729
|
-
//# sourceMappingURL=chunk-
|
|
728
|
+
//# sourceMappingURL=chunk-TFWYKOOB.cjs.map
|
|
729
|
+
//# sourceMappingURL=chunk-TFWYKOOB.cjs.map
|
|
@@ -409,5 +409,5 @@ exports.draftToHoloPreview = draftToHoloPreview;
|
|
|
409
409
|
exports.handleBusinessQuestToolCall = handleBusinessQuestToolCall;
|
|
410
410
|
exports.registerBusinessQuestTools = registerBusinessQuestTools;
|
|
411
411
|
exports.validateBusinessVRRDraft = validateBusinessVRRDraft;
|
|
412
|
-
//# sourceMappingURL=chunk-
|
|
413
|
-
//# sourceMappingURL=chunk-
|
|
412
|
+
//# sourceMappingURL=chunk-TJIMBJ6L.cjs.map
|
|
413
|
+
//# sourceMappingURL=chunk-TJIMBJ6L.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/ContextCompiler.ts
|
|
@@ -1985,5 +1985,5 @@ function toCursorSlug(name) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
|
|
1987
1987
|
export { ContextCompileError, ContextCompiler, createContextCompiler };
|
|
1988
|
-
//# sourceMappingURL=chunk-
|
|
1989
|
-
//# sourceMappingURL=chunk-
|
|
1988
|
+
//# sourceMappingURL=chunk-U36W76U7.js.map
|
|
1989
|
+
//# sourceMappingURL=chunk-U36W76U7.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
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, buildLotusPetalGeometryData, lotusPetalGeometryParamsFromProfile, buildLotusFlowerPlacements } from './chunk-
|
|
2
|
+
import { init_BotanicalLotusTrait, createBotanicalLotusRenderProfile, buildLotusPetalMaterialSpec, LOTUS_PETAL_UNIFORM_BINDINGS, buildLotusPetalGeometryData, lotusPetalGeometryParamsFromProfile, buildLotusFlowerPlacements, buildLotusSceneScaffold } from './chunk-VATGR4EM.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';
|
|
6
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileSimulationBlock, simulationToR3F, compileWeatherBlock, weatherToR3F, compileAudioSourceBlock, audioSourceToR3F, compilePostProcessingBlock, postProcessingToR3F, compileParticleBlock, particlesToR3F, compilePhysicsBlock, physicsToR3F, compileMaterialBlock, materialToR3F } from './chunk-
|
|
7
|
-
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError, escapeStringValue } from './chunk-
|
|
6
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileSimulationBlock, simulationToR3F, compileWeatherBlock, weatherToR3F, compileAudioSourceBlock, audioSourceToR3F, compilePostProcessingBlock, postProcessingToR3F, compileParticleBlock, particlesToR3F, compilePhysicsBlock, physicsToR3F, compileMaterialBlock, materialToR3F } from './chunk-DPZXVDGM.js';
|
|
7
|
+
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError, escapeStringValue } from './chunk-CXS3DUKD.js';
|
|
8
8
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
9
9
|
|
|
10
10
|
// src/traits/visual/presets/hologram-media.visual.ts
|
|
@@ -2938,8 +2938,10 @@ var init_R3FCompiler = __esm({
|
|
|
2938
2938
|
lotusPetalGeometryParamsFromProfile(profile)
|
|
2939
2939
|
);
|
|
2940
2940
|
props.__petalPlacements = buildLotusFlowerPlacements(profile);
|
|
2941
|
+
const scaffold = buildLotusSceneScaffold();
|
|
2941
2942
|
props.__lotusScene = {
|
|
2942
|
-
stemHeight:
|
|
2943
|
+
stemHeight: scaffold.stem.height,
|
|
2944
|
+
scaffold,
|
|
2943
2945
|
colors: {
|
|
2944
2946
|
water: profile.colors.water,
|
|
2945
2947
|
leaf: profile.colors.leaf,
|
|
@@ -2952,9 +2954,38 @@ var init_R3FCompiler = __esm({
|
|
|
2952
2954
|
seedPodRim: profile.colors.seed_pod_rim,
|
|
2953
2955
|
stamen: profile.colors.stamen,
|
|
2954
2956
|
stamenTip: profile.colors.stamen_tip,
|
|
2955
|
-
stamenCount: profile.stamen_filament_count
|
|
2957
|
+
stamenCount: profile.stamen_filament_count,
|
|
2958
|
+
// Carpel layout for the flat-topped "shower-head" seed pod, parsed from the
|
|
2959
|
+
// profile's declared dot pattern (e.g. '1_center_7_12_18_radial' → [1,7,12,18]
|
|
2960
|
+
// = 1 central carpel + radial rings of 7, 12, 18). The renderer recesses a
|
|
2961
|
+
// carpel well per entry — the iconic lotus receptacle, compiled from `.holo`.
|
|
2962
|
+
carpelRings: (profile.seed_pod_dot_pattern?.match(/\d+/g) ?? [
|
|
2963
|
+
"1",
|
|
2964
|
+
"7",
|
|
2965
|
+
"12",
|
|
2966
|
+
"18"
|
|
2967
|
+
]).map(Number)
|
|
2956
2968
|
}
|
|
2957
2969
|
};
|
|
2970
|
+
const leafDarkColor = profile.colors.leaf_dark;
|
|
2971
|
+
const stemHeight = scaffold.stem.height;
|
|
2972
|
+
const stemNode = this.createNode("group", {
|
|
2973
|
+
__animatedTransform: [
|
|
2974
|
+
{ prop: "scaleY", target: "developmentalTime", edge0: 0, edge1: 0.42, from: 1e-3, to: 1 },
|
|
2975
|
+
{ prop: "posY", target: "developmentalTime", edge0: 0, edge1: 0.42, from: 0, to: stemHeight / 2 }
|
|
2976
|
+
]
|
|
2977
|
+
});
|
|
2978
|
+
stemNode.children = [
|
|
2979
|
+
this.createNode("mesh", {
|
|
2980
|
+
hsType: "cylinder",
|
|
2981
|
+
radiusTop: scaffold.stem.topRadius,
|
|
2982
|
+
radiusBottom: scaffold.stem.bottomRadius,
|
|
2983
|
+
height: stemHeight,
|
|
2984
|
+
color: leafDarkColor,
|
|
2985
|
+
roughness: 0.7
|
|
2986
|
+
})
|
|
2987
|
+
];
|
|
2988
|
+
props.__scaffoldNodes = [stemNode];
|
|
2958
2989
|
}
|
|
2959
2990
|
compileNode(node) {
|
|
2960
2991
|
if (node.type === "system") {
|
|
@@ -4413,5 +4444,5 @@ var init_R3FCompiler = __esm({
|
|
|
4413
4444
|
});
|
|
4414
4445
|
|
|
4415
4446
|
export { ASTNodePool, ENVIRONMENT_PRESETS, MATERIAL_PRESETS, QUALITY_TIER_SCALES, R3FCompiler, R3FCompiler_exports, UI_COMPONENT_PRESETS, init_ObjectPool, init_R3FCompiler, init_visual, registerAllPresets };
|
|
4416
|
-
//# sourceMappingURL=chunk-
|
|
4417
|
-
//# sourceMappingURL=chunk-
|
|
4447
|
+
//# sourceMappingURL=chunk-ULXWSPCK.js.map
|
|
4448
|
+
//# sourceMappingURL=chunk-ULXWSPCK.js.map
|
|
@@ -526,9 +526,10 @@ function lotusSmoothstep(edge0, edge1, x) {
|
|
|
526
526
|
return t * t * (3 - 2 * t);
|
|
527
527
|
}
|
|
528
528
|
function lotusPetalHalfWidthFraction(v) {
|
|
529
|
-
const broad = Math.sin(Math.PI * Math.pow(v,
|
|
530
|
-
const
|
|
531
|
-
|
|
529
|
+
const broad = Math.sin(Math.PI * Math.pow(v, 1.3));
|
|
530
|
+
const baseFill = 0.25 + 0.75 * lotusSmoothstep(0, 0.18, v);
|
|
531
|
+
const tipRound = 1 - lotusSmoothstep(0.9, 1, v) * 0.3;
|
|
532
|
+
return Math.max(0, broad * baseFill * tipRound);
|
|
532
533
|
}
|
|
533
534
|
function buildLotusPetalGeometryData(params = {}) {
|
|
534
535
|
const P = { ...DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS, ...params };
|
|
@@ -615,7 +616,69 @@ function buildLotusPetalGeometryData(params = {}) {
|
|
|
615
616
|
k += 6;
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
|
-
|
|
619
|
+
const thickness = P.thickness ?? 0;
|
|
620
|
+
if (thickness <= 0) {
|
|
621
|
+
return { positions, normals, petalUv, veinPhase, indices, vertexCount };
|
|
622
|
+
}
|
|
623
|
+
const N = vertexCount;
|
|
624
|
+
const total = N * 2;
|
|
625
|
+
const sPos = new Float32Array(total * 3);
|
|
626
|
+
const sNorm = new Float32Array(total * 3);
|
|
627
|
+
const sUv = new Float32Array(total * 2);
|
|
628
|
+
const sVein = new Float32Array(total);
|
|
629
|
+
sPos.set(positions, 0);
|
|
630
|
+
sNorm.set(normals, 0);
|
|
631
|
+
sUv.set(petalUv, 0);
|
|
632
|
+
sVein.set(veinPhase, 0);
|
|
633
|
+
for (let idx = 0; idx < N; idx += 1) {
|
|
634
|
+
const nx = normals[idx * 3];
|
|
635
|
+
const ny = normals[idx * 3 + 1];
|
|
636
|
+
const nz = normals[idx * 3 + 2];
|
|
637
|
+
sPos[(N + idx) * 3] = positions[idx * 3] - nx * thickness;
|
|
638
|
+
sPos[(N + idx) * 3 + 1] = positions[idx * 3 + 1] - ny * thickness;
|
|
639
|
+
sPos[(N + idx) * 3 + 2] = positions[idx * 3 + 2] - nz * thickness;
|
|
640
|
+
sNorm[(N + idx) * 3] = -nx;
|
|
641
|
+
sNorm[(N + idx) * 3 + 1] = -ny;
|
|
642
|
+
sNorm[(N + idx) * 3 + 2] = -nz;
|
|
643
|
+
sUv[(N + idx) * 2] = petalUv[idx * 2];
|
|
644
|
+
sUv[(N + idx) * 2 + 1] = petalUv[idx * 2 + 1];
|
|
645
|
+
sVein[N + idx] = veinPhase[idx];
|
|
646
|
+
}
|
|
647
|
+
const boundary = [];
|
|
648
|
+
for (let i = 0; i < nu; i += 1) boundary.push(i);
|
|
649
|
+
for (let j = 0; j < nv; j += 1) boundary.push(j * cols + nu);
|
|
650
|
+
for (let i = nu; i > 0; i -= 1) boundary.push(nv * cols + i);
|
|
651
|
+
for (let j = nv; j > 0; j -= 1) boundary.push(j * cols);
|
|
652
|
+
const frontTris = indices.length;
|
|
653
|
+
const sIdx = new Uint32Array(frontTris * 2 + boundary.length * 6);
|
|
654
|
+
sIdx.set(indices, 0);
|
|
655
|
+
let bk = frontTris;
|
|
656
|
+
for (let tIdx = 0; tIdx < frontTris; tIdx += 3) {
|
|
657
|
+
sIdx[bk] = indices[tIdx] + N;
|
|
658
|
+
sIdx[bk + 1] = indices[tIdx + 2] + N;
|
|
659
|
+
sIdx[bk + 2] = indices[tIdx + 1] + N;
|
|
660
|
+
bk += 3;
|
|
661
|
+
}
|
|
662
|
+
let ek = frontTris * 2;
|
|
663
|
+
for (let e = 0; e < boundary.length; e += 1) {
|
|
664
|
+
const a = boundary[e];
|
|
665
|
+
const b = boundary[(e + 1) % boundary.length];
|
|
666
|
+
sIdx[ek] = a;
|
|
667
|
+
sIdx[ek + 1] = b;
|
|
668
|
+
sIdx[ek + 2] = b + N;
|
|
669
|
+
sIdx[ek + 3] = a;
|
|
670
|
+
sIdx[ek + 4] = b + N;
|
|
671
|
+
sIdx[ek + 5] = a + N;
|
|
672
|
+
ek += 6;
|
|
673
|
+
}
|
|
674
|
+
return {
|
|
675
|
+
positions: sPos,
|
|
676
|
+
normals: sNorm,
|
|
677
|
+
petalUv: sUv,
|
|
678
|
+
veinPhase: sVein,
|
|
679
|
+
indices: sIdx,
|
|
680
|
+
vertexCount: total
|
|
681
|
+
};
|
|
619
682
|
}
|
|
620
683
|
function lotusPetalGeometryParamsFromProfile(profile, options = {}) {
|
|
621
684
|
const rings = profile.petal_rings;
|
|
@@ -652,6 +715,25 @@ function buildLotusFlowerPlacements(profile = createBotanicalLotusRenderProfile(
|
|
|
652
715
|
});
|
|
653
716
|
return placements;
|
|
654
717
|
}
|
|
718
|
+
function buildLotusSceneScaffold() {
|
|
719
|
+
return {
|
|
720
|
+
waterSize: 60,
|
|
721
|
+
stem: { height: 2.4, topRadius: 0.045, bottomRadius: 0.06 },
|
|
722
|
+
receptacle: { radius: 0.42, squashY: 0.72, lift: 0.04 },
|
|
723
|
+
calyx: { radius: 0.16, height: 0.28, drop: 0.18 },
|
|
724
|
+
pads: [
|
|
725
|
+
{ pos: [2.4, 0.02, 1.1], radius: 1.2, rotation: 0.3, dark: false },
|
|
726
|
+
{ pos: [-2.7, 0.02, -0.6], radius: 1.5, rotation: 1.2, dark: true },
|
|
727
|
+
{ pos: [0.6, 0.02, -3], radius: 1, rotation: 2.5, dark: false },
|
|
728
|
+
{ pos: [-1.4, 0.02, 2.8], radius: 1.1, rotation: 3.6, dark: true }
|
|
729
|
+
],
|
|
730
|
+
leaves: [
|
|
731
|
+
{ pos: [3.7, 0, 1.5], height: 1.5, radius: 1.4, tilt: 0.22, rotation: 0.4, dark: false },
|
|
732
|
+
{ pos: [-4, 0, -1.3], height: 1.2, radius: 1.6, tilt: 0.3, rotation: 1.6, dark: true },
|
|
733
|
+
{ pos: [1.4, 0, -3.7], height: 1, radius: 1.2, tilt: 0.18, rotation: 2.7, dark: false }
|
|
734
|
+
]
|
|
735
|
+
};
|
|
736
|
+
}
|
|
655
737
|
function lotusMulberry32(seed) {
|
|
656
738
|
let a = seed >>> 0;
|
|
657
739
|
return () => {
|
|
@@ -1516,17 +1598,20 @@ totalEmissiveRadiance += lotusScatter * (0.28 + uLotusBloom * 0.72);`
|
|
|
1516
1598
|
};
|
|
1517
1599
|
DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS = {
|
|
1518
1600
|
length: 1.7,
|
|
1519
|
-
width
|
|
1520
|
-
|
|
1601
|
+
// Broader (width/length 0.65 → 0.85) + a deeper cup so each petal reads as a wide
|
|
1602
|
+
// cupped tear-drop, not a thin sliver; the obovate silhouette does the rest.
|
|
1603
|
+
width: 1.45,
|
|
1604
|
+
cup: 0.4,
|
|
1521
1605
|
ridge: 0.12,
|
|
1522
1606
|
gravitySag: 0.18,
|
|
1523
1607
|
segmentsU: 24,
|
|
1524
1608
|
segmentsV: 40,
|
|
1525
|
-
veinPhase: 0
|
|
1609
|
+
veinPhase: 0,
|
|
1610
|
+
thickness: 0.012
|
|
1526
1611
|
};
|
|
1527
1612
|
}
|
|
1528
1613
|
});
|
|
1529
1614
|
|
|
1530
|
-
export { DEFAULT_BOTANICAL_LOTUS_CONFIG, DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS, LOTUS_GENESIS_SEED_PLACEHOLDER, LOTUS_GOLDEN_ANGLE_DEG, LOTUS_GROWTH_SECONDS, LOTUS_OUTER_PETAL_COLOR, LOTUS_PETAL_CHUNK_ENTRIES, LOTUS_PETAL_SHADER_CHUNKS, LOTUS_PETAL_UNIFORM_BINDINGS, LOTUS_RING_SCALING, assertBotanicalLotusConfig, botanicalLotusHandler, buildLotusFlowerPlacements, buildLotusPetalGeometryData, buildLotusPetalMaterialSpec, buildLotusSceneFromComposition, createBotanicalLotusRenderProfile, createLotusMeristem, createLotusMorphogen, createLotusMorphogen2D, createLotusPetalTurgor, createLotusPond, deriveBotanicalLotusAnchorStatus, deriveLotusBloomFromGlow, disturbLotusPond, generateBotanicalNormalMap, generateBotanicalRoughnessMap, getBotanicalLotusPetalCount, init_BotanicalLotusTrait, lotusMorphogen2DPeaks, lotusMorphogen2DSampleAt, lotusMorphogenPeaks, lotusPetalGeometryParamsFromProfile, lotusPetalRenderColor, lotusPetalTurgorOpenProgress, lotusPetalTurgorTipDeg, lotusPondSurface, normalizeBotanicalLotusConfig, simulateLotusMorphogenesis, simulateLotusPetalGrowth, simulateLotusPhyllotaxis, stepLotusMeristem, stepLotusMorphogen, stepLotusMorphogen2D, stepLotusPetalTurgor, stepLotusPond, validateBotanicalLotusConfig };
|
|
1531
|
-
//# sourceMappingURL=chunk-
|
|
1532
|
-
//# sourceMappingURL=chunk-
|
|
1615
|
+
export { DEFAULT_BOTANICAL_LOTUS_CONFIG, DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS, LOTUS_GENESIS_SEED_PLACEHOLDER, LOTUS_GOLDEN_ANGLE_DEG, LOTUS_GROWTH_SECONDS, LOTUS_OUTER_PETAL_COLOR, LOTUS_PETAL_CHUNK_ENTRIES, LOTUS_PETAL_SHADER_CHUNKS, LOTUS_PETAL_UNIFORM_BINDINGS, LOTUS_RING_SCALING, assertBotanicalLotusConfig, botanicalLotusHandler, buildLotusFlowerPlacements, buildLotusPetalGeometryData, buildLotusPetalMaterialSpec, buildLotusSceneFromComposition, buildLotusSceneScaffold, createBotanicalLotusRenderProfile, createLotusMeristem, createLotusMorphogen, createLotusMorphogen2D, createLotusPetalTurgor, createLotusPond, deriveBotanicalLotusAnchorStatus, deriveLotusBloomFromGlow, disturbLotusPond, generateBotanicalNormalMap, generateBotanicalRoughnessMap, getBotanicalLotusPetalCount, init_BotanicalLotusTrait, lotusMorphogen2DPeaks, lotusMorphogen2DSampleAt, lotusMorphogenPeaks, lotusPetalGeometryParamsFromProfile, lotusPetalRenderColor, lotusPetalTurgorOpenProgress, lotusPetalTurgorTipDeg, lotusPondSurface, normalizeBotanicalLotusConfig, simulateLotusMorphogenesis, simulateLotusPetalGrowth, simulateLotusPhyllotaxis, stepLotusMeristem, stepLotusMorphogen, stepLotusMorphogen2D, stepLotusPetalTurgor, stepLotusPond, validateBotanicalLotusConfig };
|
|
1616
|
+
//# sourceMappingURL=chunk-VATGR4EM.js.map
|
|
1617
|
+
//# sourceMappingURL=chunk-VATGR4EM.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkEXUP2BUM_cjs = require('./chunk-EXUP2BUM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk4FDL7JLJ_cjs = require('./chunk-4FDL7JLJ.cjs');
|
|
5
5
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunk2VL6SJ33_cjs = require('./chunk-2VL6SJ33.cjs');
|
|
7
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
8
8
|
var ans = require('@holoscript/core-types/ans');
|
|
9
9
|
|
|
10
10
|
// src/compiler/GLTFPipeline.ts
|
|
11
11
|
chunkOIQYIIO3_cjs.init_TraitCompositor();
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
chunk4FDL7JLJ_cjs.init_R3FCompiler();
|
|
13
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
14
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
15
15
|
|
|
16
16
|
// src/compiler/gltf/extensions.ts
|
|
17
17
|
function createEmissiveStrengthExtension(strength) {
|
|
@@ -120,8 +120,8 @@ function declareExtensions(gltf) {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
// src/compiler/GLTFPipeline.ts
|
|
123
|
-
|
|
124
|
-
var gltfNodePool = new
|
|
123
|
+
chunk4FDL7JLJ_cjs.init_ObjectPool();
|
|
124
|
+
var gltfNodePool = new chunk4FDL7JLJ_cjs.ASTNodePool(
|
|
125
125
|
() => ({ name: "" }),
|
|
126
126
|
(node) => {
|
|
127
127
|
node.name = "";
|
|
@@ -840,7 +840,7 @@ function generatePlaneGeometry(scale) {
|
|
|
840
840
|
var INITIAL_COMPILE_BUFFER_SIZE = 1024 * 1024;
|
|
841
841
|
var MAX_RETAINED_BUFFER_SIZE = 1024 * 1024 * 20;
|
|
842
842
|
var SHARED_COMPILE_BUFFER = new Uint8Array(INITIAL_COMPILE_BUFFER_SIZE);
|
|
843
|
-
var GLTFPipeline = class extends
|
|
843
|
+
var GLTFPipeline = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
844
844
|
constructor(options = {}) {
|
|
845
845
|
super();
|
|
846
846
|
this.compilerName = "GLTFPipeline";
|
|
@@ -1282,12 +1282,12 @@ var GLTFPipeline = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
const domainBlocks = composition.domainBlocks ?? [];
|
|
1284
1284
|
if (domainBlocks.length > 0) {
|
|
1285
|
-
|
|
1285
|
+
chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
1286
1286
|
domainBlocks,
|
|
1287
1287
|
{
|
|
1288
1288
|
material: (block) => {
|
|
1289
|
-
const mat =
|
|
1290
|
-
const gltfMat =
|
|
1289
|
+
const mat = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
1290
|
+
const gltfMat = chunk2VL6SJ33_cjs.materialToGLTF(mat);
|
|
1291
1291
|
this.materials.push(gltfMat);
|
|
1292
1292
|
this.stats.materialCount++;
|
|
1293
1293
|
return "";
|
|
@@ -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" &&
|
|
1605
|
-
const preset =
|
|
1604
|
+
if (typeof namedMat === "string" && chunk4FDL7JLJ_cjs.MATERIAL_PRESETS[namedMat]) {
|
|
1605
|
+
const preset = chunk4FDL7JLJ_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-
|
|
2257
|
-
//# sourceMappingURL=chunk-
|
|
2256
|
+
//# sourceMappingURL=chunk-VFKXK4GR.cjs.map
|
|
2257
|
+
//# sourceMappingURL=chunk-VFKXK4GR.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUSD, compileAudioSourceBlock, audioSourceToUSD, compilePostProcessingBlock, postProcessingToUSD, compileParticleBlock, particlesToUSD, compilePhysicsBlock, physicsToURDF, compileMaterialBlock, materialToUSD } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUSD, compileAudioSourceBlock, audioSourceToUSD, compilePostProcessingBlock, postProcessingToUSD, compileParticleBlock, particlesToUSD, compilePhysicsBlock, physicsToURDF, compileMaterialBlock, materialToUSD } from './chunk-DPZXVDGM.js';
|
|
2
|
+
import { init_CompilerBase, CompilerBase } from './chunk-CXS3DUKD.js';
|
|
3
3
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
4
4
|
|
|
5
5
|
// src/compiler/USDPhysicsCompiler.ts
|
|
@@ -878,5 +878,5 @@ function compileForIsaacSim(composition, options) {
|
|
|
878
878
|
}
|
|
879
879
|
|
|
880
880
|
export { USDPhysicsCompiler, compileForIsaacSim, compileToUSDPhysics };
|
|
881
|
-
//# sourceMappingURL=chunk-
|
|
882
|
-
//# sourceMappingURL=chunk-
|
|
881
|
+
//# sourceMappingURL=chunk-VHAONJBY.js.map
|
|
882
|
+
//# sourceMappingURL=chunk-VHAONJBY.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
4
4
|
|
|
5
5
|
// src/compiler/QuantumCircuitCompiler.ts
|
|
6
|
-
|
|
6
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
7
7
|
function qubitsForMolecule(atoms) {
|
|
8
8
|
const orbitalCount = atoms.reduce((sum, a) => {
|
|
9
9
|
if (a.symbol === "H") return sum + 1;
|
|
@@ -185,7 +185,7 @@ function generateStubCircuit() {
|
|
|
185
185
|
]
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
var QuantumCircuitCompiler = class extends
|
|
188
|
+
var QuantumCircuitCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
189
189
|
constructor() {
|
|
190
190
|
super(...arguments);
|
|
191
191
|
this.compilerName = "QuantumCircuitCompiler";
|
|
@@ -323,5 +323,5 @@ var QuantumCircuitCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
|
323
323
|
};
|
|
324
324
|
|
|
325
325
|
exports.QuantumCircuitCompiler = QuantumCircuitCompiler;
|
|
326
|
-
//# sourceMappingURL=chunk-
|
|
327
|
-
//# sourceMappingURL=chunk-
|
|
326
|
+
//# sourceMappingURL=chunk-WOH6LKYT.cjs.map
|
|
327
|
+
//# sourceMappingURL=chunk-WOH6LKYT.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToURDF, compileMaterialBlock } from './chunk-
|
|
2
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, compilePhysicsBlock, physicsToURDF, compileMaterialBlock } 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
|
|
|
@@ -1395,5 +1395,5 @@ var init_URDFCompiler = __esm({
|
|
|
1395
1395
|
});
|
|
1396
1396
|
|
|
1397
1397
|
export { URDFCompiler, URDFCompiler_default, URDFCompiler_exports, compileForGazebo, compileForIsaacSim, compileForROS2, compileToURDF, createURDFCompiler, generateControllersYaml, generateROS2LaunchFile, init_URDFCompiler };
|
|
1398
|
-
//# sourceMappingURL=chunk-
|
|
1399
|
-
//# sourceMappingURL=chunk-
|
|
1398
|
+
//# sourceMappingURL=chunk-X4EBCG4K.js.map
|
|
1399
|
+
//# sourceMappingURL=chunk-X4EBCG4K.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk2VL6SJ33_cjs = require('./chunk-2VL6SJ33.cjs');
|
|
5
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
@@ -14,15 +14,15 @@ chunkHCCQLAA4_cjs.__export(UnrealCompiler_exports, {
|
|
|
14
14
|
});
|
|
15
15
|
function compileToUnreal(composition, options) {
|
|
16
16
|
const compiler = new exports.UnrealCompiler(options);
|
|
17
|
-
return compiler.compile(composition,
|
|
17
|
+
return compiler.compile(composition, chunkQWAR3GY6_cjs.createTestCompilerToken());
|
|
18
18
|
}
|
|
19
19
|
exports.UnrealCompiler = void 0;
|
|
20
20
|
var init_UnrealCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
21
21
|
"src/compiler/UnrealCompiler.ts"() {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
23
|
+
chunk2VL6SJ33_cjs.init_DomainBlockCompilerMixin();
|
|
24
24
|
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
25
|
-
exports.UnrealCompiler = class extends
|
|
25
|
+
exports.UnrealCompiler = class extends chunkQWAR3GY6_cjs.CompilerBase {
|
|
26
26
|
constructor(options = {}) {
|
|
27
27
|
super();
|
|
28
28
|
this.compilerName = "UnrealCompiler";
|
|
@@ -644,32 +644,32 @@ var init_UnrealCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
644
644
|
this.emitS("");
|
|
645
645
|
this.emitS("// === v4.2 Domain Blocks ===");
|
|
646
646
|
let blockIdx = 0;
|
|
647
|
-
const compiled =
|
|
647
|
+
const compiled = chunk2VL6SJ33_cjs.compileDomainBlocks(
|
|
648
648
|
domainBlocks,
|
|
649
649
|
{
|
|
650
650
|
material: (block) => {
|
|
651
|
-
const mat =
|
|
652
|
-
return
|
|
651
|
+
const mat = chunk2VL6SJ33_cjs.compileMaterialBlock(block);
|
|
652
|
+
return chunk2VL6SJ33_cjs.materialToUnreal(mat, `DB${blockIdx++}`);
|
|
653
653
|
},
|
|
654
654
|
physics: (block) => {
|
|
655
|
-
const phys =
|
|
656
|
-
return
|
|
655
|
+
const phys = chunk2VL6SJ33_cjs.compilePhysicsBlock(block);
|
|
656
|
+
return chunk2VL6SJ33_cjs.physicsToUnreal(phys, `DB${blockIdx++}`);
|
|
657
657
|
},
|
|
658
658
|
vfx: (block) => {
|
|
659
|
-
const ps =
|
|
660
|
-
return
|
|
659
|
+
const ps = chunk2VL6SJ33_cjs.compileParticleBlock(block);
|
|
660
|
+
return chunk2VL6SJ33_cjs.particlesToUnreal(ps, `DB${blockIdx++}`);
|
|
661
661
|
},
|
|
662
662
|
postfx: (block) => {
|
|
663
|
-
const pp =
|
|
664
|
-
return
|
|
663
|
+
const pp = chunk2VL6SJ33_cjs.compilePostProcessingBlock(block);
|
|
664
|
+
return chunk2VL6SJ33_cjs.postProcessingToUnreal(pp, `DB${blockIdx++}`);
|
|
665
665
|
},
|
|
666
666
|
audio: (block) => {
|
|
667
|
-
const audio =
|
|
668
|
-
return
|
|
667
|
+
const audio = chunk2VL6SJ33_cjs.compileAudioSourceBlock(block);
|
|
668
|
+
return chunk2VL6SJ33_cjs.audioSourceToUnreal(audio, `DB${blockIdx++}`);
|
|
669
669
|
},
|
|
670
670
|
weather: (block) => {
|
|
671
|
-
const weather =
|
|
672
|
-
return
|
|
671
|
+
const weather = chunk2VL6SJ33_cjs.compileWeatherBlock(block);
|
|
672
|
+
return chunk2VL6SJ33_cjs.weatherToUnreal(weather);
|
|
673
673
|
}
|
|
674
674
|
},
|
|
675
675
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "TypeScript")}"`
|
|
@@ -714,5 +714,5 @@ var init_UnrealCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
714
714
|
exports.UnrealCompiler_exports = UnrealCompiler_exports;
|
|
715
715
|
exports.compileToUnreal = compileToUnreal;
|
|
716
716
|
exports.init_UnrealCompiler = init_UnrealCompiler;
|
|
717
|
-
//# sourceMappingURL=chunk-
|
|
718
|
-
//# sourceMappingURL=chunk-
|
|
717
|
+
//# sourceMappingURL=chunk-X7LYK5TX.cjs.map
|
|
718
|
+
//# sourceMappingURL=chunk-X7LYK5TX.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkQWAR3GY6_cjs = require('./chunk-QWAR3GY6.cjs');
|
|
5
5
|
|
|
6
6
|
// src/compiler/TraitCompositionCompiler.ts
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
chunkQWAR3GY6_cjs.init_AgentRBAC();
|
|
8
|
+
chunkQWAR3GY6_cjs.init_CompilerBase();
|
|
9
9
|
chunk5S7RKFGR_cjs.init_ProvenanceSemiring();
|
|
10
10
|
var CompositionConflictError = class extends Error {
|
|
11
11
|
constructor(traitA, traitB, conflictKey) {
|
|
@@ -63,7 +63,7 @@ var TraitCompositionCompiler = class {
|
|
|
63
63
|
*/
|
|
64
64
|
validateAccess(agentToken) {
|
|
65
65
|
if (!agentToken) return;
|
|
66
|
-
const rbac =
|
|
66
|
+
const rbac = chunkQWAR3GY6_cjs.getRBAC();
|
|
67
67
|
const decision = rbac.checkAccess({
|
|
68
68
|
token: agentToken,
|
|
69
69
|
resourceType: "ast" /* AST */,
|
|
@@ -154,7 +154,7 @@ var TraitCompositionCompiler = class {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
var UnauthorizedTraitCompositionAccessError = class extends
|
|
157
|
+
var UnauthorizedTraitCompositionAccessError = class extends chunkQWAR3GY6_cjs.UnauthorizedCompilerAccessError {
|
|
158
158
|
constructor(decision, compilerName) {
|
|
159
159
|
super(decision, "trait composition", compilerName);
|
|
160
160
|
this.name = "UnauthorizedTraitCompositionAccessError";
|
|
@@ -165,5 +165,5 @@ exports.CompositionConflictError = CompositionConflictError;
|
|
|
165
165
|
exports.MissingComponentError = MissingComponentError;
|
|
166
166
|
exports.TraitCompositionCompiler = TraitCompositionCompiler;
|
|
167
167
|
exports.UnauthorizedTraitCompositionAccessError = UnauthorizedTraitCompositionAccessError;
|
|
168
|
-
//# sourceMappingURL=chunk-
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
168
|
+
//# sourceMappingURL=chunk-X7QB5PL5.cjs.map
|
|
169
|
+
//# sourceMappingURL=chunk-X7QB5PL5.cjs.map
|