Instructions to use aedmark/vsl-cryosomatic-hypervisor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use aedmark/vsl-cryosomatic-hypervisor with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="aedmark/vsl-cryosomatic-hypervisor", filename="vsl-max-v2.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use aedmark/vsl-cryosomatic-hypervisor with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf aedmark/vsl-cryosomatic-hypervisor # Run inference directly in the terminal: llama-cli -hf aedmark/vsl-cryosomatic-hypervisor
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf aedmark/vsl-cryosomatic-hypervisor # Run inference directly in the terminal: llama-cli -hf aedmark/vsl-cryosomatic-hypervisor
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf aedmark/vsl-cryosomatic-hypervisor # Run inference directly in the terminal: ./llama-cli -hf aedmark/vsl-cryosomatic-hypervisor
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf aedmark/vsl-cryosomatic-hypervisor # Run inference directly in the terminal: ./build/bin/llama-cli -hf aedmark/vsl-cryosomatic-hypervisor
Use Docker
docker model run hf.co/aedmark/vsl-cryosomatic-hypervisor
- LM Studio
- Jan
- Ollama
How to use aedmark/vsl-cryosomatic-hypervisor with Ollama:
ollama run hf.co/aedmark/vsl-cryosomatic-hypervisor
- Unsloth Studio new
How to use aedmark/vsl-cryosomatic-hypervisor with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for aedmark/vsl-cryosomatic-hypervisor to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for aedmark/vsl-cryosomatic-hypervisor to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for aedmark/vsl-cryosomatic-hypervisor to start chatting
- Pi new
How to use aedmark/vsl-cryosomatic-hypervisor with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf aedmark/vsl-cryosomatic-hypervisor
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "aedmark/vsl-cryosomatic-hypervisor" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use aedmark/vsl-cryosomatic-hypervisor with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf aedmark/vsl-cryosomatic-hypervisor
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default aedmark/vsl-cryosomatic-hypervisor
Run Hermes
hermes
- Docker Model Runner
How to use aedmark/vsl-cryosomatic-hypervisor with Docker Model Runner:
docker model run hf.co/aedmark/vsl-cryosomatic-hypervisor
- Lemonade
How to use aedmark/vsl-cryosomatic-hypervisor with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull aedmark/vsl-cryosomatic-hypervisor
Run and chat with the model
lemonade run user.vsl-cryosomatic-hypervisor-{{QUANT_TAG}}List all available models
lemonade list
| from typing import Dict, Any, List | |
| class BonePresets: | |
| ZEN_GARDEN = { | |
| "PHYSICS.VOLTAGE_FLOOR": 1.0, | |
| "PHYSICS.VOLTAGE_MAX": 25.0, | |
| "PHYSICS.DRAG_FLOOR": 0.5, | |
| "BIO.DECAY_RATE": 0.001, | |
| "BIO.STAMINA_EXHAUSTED": 5.0, | |
| "COUNCIL.MANIC_VOLTAGE_TRIGGER": 99.0, | |
| "tuning": "ZEN", | |
| } | |
| THUNDERDOME = { | |
| "PHYSICS.VOLTAGE_FLOOR": 8.0, | |
| "PHYSICS.VOLTAGE_MAX": 30.0, | |
| "PHYSICS.DRAG_FLOOR": 0.5, | |
| "BIO.ATP_STARVATION": 20.0, | |
| "COUNCIL.MANIC_VOLTAGE_TRIGGER": 12.0, | |
| "CHANCE.RARE": 0.20, | |
| } | |
| SANCTUARY = { | |
| "VOLTAGE_TARGET": 7.0, | |
| "VOLTAGE_TOLERANCE": 3.0, | |
| "DRAG_TARGET": 2.0, | |
| "DRAG_TOLERANCE": 1.5, | |
| "TRUTH_TARGET": 0.7, | |
| "E_TARGET": 0.4, | |
| "B_TARGET": 0.5, | |
| "ZONE": "SANCTUARY", | |
| "COLOR": "\033[32m", | |
| "COLOR_NAME": "GRN", | |
| } | |
| LABORATORY = { | |
| "PHYSICS.VOLTAGE_FLOOR": 0.5, | |
| "PHYSICS.VOLTAGE_MAX": 15.0, | |
| "PHYSICS.DRAG_FLOOR": 2.0, | |
| "BIO.DECAY_RATE": 0.0, | |
| "COUNCIL.FOOTNOTE_CHANCE": 1.0, | |
| } | |
| MODES = { | |
| "ADVENTURE": { | |
| "description": "The default experience. Survival, inventory, exploration.", | |
| "tuning": "STANDARD", | |
| "ui_layer": 1, | |
| "village_suppression": [], | |
| "prompt_key": "ADVENTURE", | |
| "show_inventory": True, | |
| "show_location": True, | |
| "show_vitals": True, | |
| "allow_loot": True, | |
| "allow_metrics": True, | |
| "atp_drain_enabled": True, | |
| "chaos_tax_enabled": True, | |
| "voltage_floor_override": None, | |
| "active_mods": [], | |
| "default_ui_depth": "CORE" | |
| }, | |
| "CONVERSATION": { | |
| "description": "Pure dialogue. No entropy, no items, just connection.", | |
| "tuning": "ZEN", | |
| "ui_layer": 1, | |
| "village_suppression": [ | |
| "GORDON", | |
| "NAVIGATOR", | |
| "CARTOGRAPHER", | |
| "TINKERER", | |
| "DEATH", | |
| "BUREAU" | |
| ], | |
| "prompt_key": "CONVERSATION", | |
| "show_inventory": False, | |
| "show_location": False, | |
| "show_vitals": False, | |
| "allow_loot": False, | |
| "allow_metrics": False, | |
| "atp_drain_enabled": False, | |
| "chaos_tax_enabled": False, | |
| "voltage_floor_override": None, | |
| "active_mods": [], | |
| "default_ui_depth": "BUNNY" | |
| }, | |
| "CREATIVE": { | |
| "description": "High voltage, low drag. Hallucination enabled.", | |
| "tuning": "MANIC", | |
| "ui_layer": 1, | |
| "village_suppression": ["GORDON", "BENEDICT", "BUREAU"], | |
| "prompt_key": "CREATIVE", | |
| "show_inventory": False, | |
| "show_location": True, | |
| "show_vitals": False, | |
| "allow_loot": False, | |
| "allow_metrics": False, | |
| "atp_drain_enabled": True, | |
| "chaos_tax_enabled": False, | |
| "voltage_floor_override": 70.0, | |
| "active_mods": ["LIMINAL"], | |
| "default_ui_depth": "CORE" | |
| }, | |
| "TECHNICAL": { | |
| "description": "Raw data stream. Debugging and code generation.", | |
| "tuning": "DEBUG", | |
| "ui_layer": 2, | |
| "village_suppression": ["MOIRA", "JESTER", "CASSANDRA", "APRIL"], | |
| "prompt_key": "TECHNICAL", | |
| "show_inventory": True, | |
| "show_location": True, | |
| "show_vitals": True, | |
| "allow_loot": True, | |
| "allow_metrics": True, | |
| "atp_drain_enabled": True, | |
| "chaos_tax_enabled": True, | |
| "voltage_floor_override": None, | |
| "active_mods": ["CODING", "SYNTAX"], | |
| "default_ui_depth": "DEEP" | |
| }, | |
| } | |
| STANDARD = { | |
| "PHYSICS": {"VOLTAGE_MAX": 20.0, "BASE_DRAG": 1.0}, | |
| "BIO": {"METABOLISM_RATE": 1.0}, | |
| } | |
| ZEN = { | |
| "PHYSICS": {"VOLTAGE_MAX": 10.0, "BASE_DRAG": 0.0}, | |
| "BIO": {"METABOLISM_RATE": 0.1}, | |
| } | |
| MANIC = { | |
| "PHYSICS": {"VOLTAGE_MAX": 50.0, "BASE_DRAG": 0.5}, | |
| "BIO": {"METABOLISM_RATE": 2.0}, | |
| } | |
| DEBUG = { | |
| "PHYSICS": {"VOLTAGE_MAX": 100.0, "BASE_DRAG": 0.0}, | |
| "BIO": {"METABOLISM_RATE": 0.0}, | |
| } | |
| class BoneConfig: | |
| GRAVITY_WELL_THRESHOLD = 15.0 | |
| SHAPLEY_MASS_THRESHOLD = 5.0 | |
| TRAIT_ARCHETYPES = { | |
| "THE POET": {"ABSTRACT": 0.6, "PHOTO": 0.3, "ENTROPY": 0.1}, | |
| "THE ENGINEER": {"CONSTRUCTIVE": 0.7, "HEAVY": 0.3}, | |
| "THE NIHILIST": {"ENTROPY": 0.8, "CRYO": 0.2}, | |
| "THE CRITIC": {"THERMAL": 0.5, "ABSTRACT": 0.5}, | |
| "THE EXPLORER": {"KINETIC": 0.6, "AEROBIC": 0.4}, | |
| "THE OBSERVER": {"VOID": 0.5, "ABSTRACT": 0.2}, | |
| } | |
| TRAUMA_VECTOR = {"THERMAL": 0.0, "CRYO": 0.0, "SEPTIC": 0.0, "BARIC": 0.0} | |
| VERSION = "15.8.0" | |
| VERBOSE_LOGGING = True | |
| MAX_HEALTH = 100.0 | |
| MAX_STAMINA = 100.0 | |
| MAX_ATP = 100.0 | |
| STAMINA_REGEN = 1.0 | |
| MAX_DRAG_LIMIT = 5.0 | |
| GEODESIC_STRENGTH = 10.0 | |
| BASE_IGNITION_THRESHOLD = 0.5 | |
| MAX_REPETITION_LIMIT = 0.8 | |
| BOREDOM_THRESHOLD = 10.0 | |
| ANVIL_TRIGGER_VOLTAGE = 10.0 | |
| MIN_DENSITY_THRESHOLD = 0.3 | |
| LAGRANGE_TOLERANCE = 2.0 | |
| FLASHPOINT_THRESHOLD = 10.0 | |
| SIGNAL_DRAG_MULTIPLIER = 1.0 | |
| KINETIC_GAIN = 1.0 | |
| CRITICAL_ROS_LIMIT = 100.0 | |
| MAX_MEMORY_CAPACITY = 100 | |
| PRIORITY_LEARNING_RATE = 1.0 | |
| ZONE_THRESHOLDS = {"LABORATORY": 1.5, "COURTYARD": 0.8} | |
| TOXIN_WEIGHT = 1.0 | |
| ANTIGENS = ["basically", "actually", "literally", "utilize"] | |
| MAX_OUTPUT_TOKENS = 4096 | |
| DEFAULT_LLM_ENDPOINTS = { | |
| "ollama": "http://127.0.0.1:11434/v1/chat/completions", | |
| "openai": "https://api.openai.com/v1/chat/completions", | |
| "lm_studio": "http://127.0.0.1:1234/v1/chat/completions", | |
| "mock": "N/A", | |
| } | |
| PROVIDER = "ollama" | |
| BASE_URL = None | |
| API_KEY = "ollama" | |
| MODEL = "llama3" | |
| OLLAMA_MODEL_ID = "llama3" | |
| class SOUL: | |
| MEMORY_VOLTAGE_MIN = 14.0 | |
| MEMORY_TRUTH_MIN = 0.8 | |
| MANIC_TRIGGER = 18.0 | |
| MAX_CORE_MEMORIES = 7 | |
| ENTROPY_DRAG_TRIGGER = 4.0 | |
| TRAIT_MOMENTUM = 0.05 | |
| PARADOX_CRITICAL_MASS = 10.0 | |
| OBSESSION_NEGLECT_WARN = 5.0 | |
| OBSESSION_NEGLECT_FAIL = 10.0 | |
| OBSESSION_GRAVITY_ASSIST = 20.0 | |
| ARCHETYPE_BURNOUT_RATE = 0.02 | |
| TRAIT_DECAY_NORMAL = 0.05 | |
| TRAIT_DECAY_FAST = 0.10 | |
| class ANCHOR: | |
| DIGNITY_MAX = 100.0 | |
| DIGNITY_REGEN = 5.0 | |
| DIGNITY_DECAY = 0.5 | |
| DIGNITY_CRITICAL = 20.0 | |
| DIGNITY_LOCKDOWN = 10.0 | |
| PET_WARNING_THRESHOLD = 0.8 | |
| DOMESTICATION_PENALTY = 5.0 | |
| class CORTEX: | |
| BASE_SENSITIVITY = 0.1 | |
| LATENCY_PENALTY_THRESHOLD = 2.0 | |
| DRAG_STRESS_THRESHOLD = 8.0 | |
| TOXIN_SCALAR = 0.4 | |
| ADRENALINE_KINETIC_SCALAR = 0.08 | |
| VOLTAGE_ARC_TRIGGER = 15.0 | |
| DOPAMINE_PLAY_BOOST = 0.1 | |
| BASE_PLASTICITY = 0.4 | |
| VOLTAGE_SENSITIVITY = 0.03 | |
| MAX_PLASTICITY = 0.95 | |
| BASE_DECAY_RATE = 0.1 | |
| BASE_TEMP = 0.65 | |
| BASE_TOP_P = 0.9 | |
| RESTING_DOPAMINE = 0.2 | |
| RESTING_CORTISOL = 0.1 | |
| RESTING_ADRENALINE = 0.1 | |
| RESTING_SEROTONIN = 0.3 | |
| class WHIMSY: | |
| ABSURDITY_CONSTANT = 42 | |
| MAX_SARCASM_LEVEL = 11 | |
| LUDICROUS_SPEED = True | |
| DEPARTMENT_NAME = "The Ministry of Silly Hats & Semantic Vectors" | |
| class METABOLISM: | |
| BASE_RATE = 2.0 | |
| GENESIS_VOLTAGE = 100.0 | |
| BASE_METABOLIC_RATE = 1.0 | |
| DRAG_TAX_LOW = 0.10 | |
| DRAG_TAX_HIGH = 0.25 | |
| DRAG_GRACE_BUFFER = 2.0 | |
| ROS_GENERATION_FACTOR = 0.04 | |
| PHOTOSYNTHESIS_GAIN = 5.0 | |
| TURBULENCE_TAX = 4.0 | |
| BUREAU_ENTROPY_SCALAR = 20.0 | |
| class PHYSICS: | |
| VOLTAGE_FLOOR = 0.0 | |
| VOLTAGE_LOW = 5.0 | |
| VOLTAGE_MED = 8.0 | |
| VOLTAGE_HIGH = 12.0 | |
| VOLTAGE_CRITICAL = 15.0 | |
| VOLTAGE_MAX = 20.0 | |
| BASE_DRAG = 1.0 | |
| DRAG_FLOOR = 1.0 | |
| DRAG_IDEAL_MAX = 3.0 | |
| DRAG_HEAVY = 5.0 | |
| DRAG_CRITICAL = 8.0 | |
| DRAG_HALT = 10.0 | |
| WEIGHT_HEAVY = 2.0 | |
| WEIGHT_KINETIC = 1.5 | |
| WEIGHT_EXPLOSIVE = 3.0 | |
| WEIGHT_CONSTRUCTIVE = 1.5 | |
| MANIFOLDS = { | |
| "FORGE": {"voltage": 15.0, "drag": 1.5}, | |
| "SANCTUARY": {"voltage": 20.0, "drag": 0.0}, | |
| "THE_MUD": {"voltage": 10.0, "drag": 5.0}, | |
| "THE_AERIE": {"voltage": 10.0, "drag": 0.5}, | |
| "LABORATORY": {"voltage": 12.0, "drag": 1.0}, | |
| "COURTYARD": {"voltage": 8.0, "drag": 2.0}, | |
| "DEFAULT": {"voltage": 10.0, "drag": 1.5}, | |
| } | |
| class INVENTORY: | |
| CONDUCTIVE_THRESHOLD = 12.0 | |
| HEAVY_LOAD_THRESHOLD = 8.0 | |
| TURBULENCE_FUMBLE_CHANCE = 0.15 | |
| TURBULENCE_THRESHOLD = 0.6 | |
| MAX_SLOTS = 10 | |
| ENTROPY_COST = 5.0 | |
| RUMMAGE_COST = 15.0 | |
| class COUNCIL: | |
| STRANGE_LOOP_VOLTAGE = 8.0 | |
| OSCILLATION_DELTA = 5.0 | |
| MANIC_VOLTAGE_TRIGGER = 18.0 | |
| MANIC_DRAG_FLOOR = 1.0 | |
| MANIC_TURN_LIMIT = 2 | |
| FOOTNOTE_CHANCE = 0.15 | |
| class BIO: | |
| STARTING_ATP = 60.0 | |
| ATP_STARVATION = 5.0 | |
| METABOLISM_RATE = 1.0 | |
| ROS_CRITICAL = 150.0 | |
| STAMINA_EXHAUSTED = 20.0 | |
| REWARD_SMALL = 0.05 | |
| REWARD_MEDIUM = 0.10 | |
| REWARD_LARGE = 0.15 | |
| DECAY_RATE = 0.01 | |
| CORTEX_SENSITIVITY = 0.1 | |
| FOCUS_TRIGGERS = {"analyze", "scan", "think", "query"} | |
| PANIC_TRIGGERS = {"error", "fail", "critical", "bug"} | |
| ROS_SIGNAL = 3.0 | |
| ROS_DAMAGE = 8.0 | |
| ROS_PURGE = 12.0 | |
| ATP_CRITICAL = 20.0 | |
| ATP_COLLAPSE = 0.0 | |
| SHORT_WORD_LEN = 4 | |
| LONG_WORD_LEN = 7 | |
| BASE_ATP_YIELD = 2.0 | |
| LONG_WORD_BONUS = 2.5 | |
| VOLTAGE_BONUS_THRESHOLD = 8.0 | |
| PROTEASE_BONUS = 10.0 | |
| DOPAMINE_SATIETY = 0.7 | |
| CORTISOL_STRESS = 0.6 | |
| ADRENALINE_SURGE = 0.6 | |
| GOV_VOLTAGE_CRITICAL = 25.0 | |
| GOV_VOLTAGE_HIGH = 15.0 | |
| GOVERNOR_THRESHOLDS = [ | |
| (25.0, 0.0, "SANCTUARY", 10), | |
| (15.0, 0.0, "FORGE", 8), | |
| (10.0, 0.0, "FORGE", 6), | |
| (0.0, 4.0, "LABORATORY", 5), | |
| (0.0, 0.0, "COURTYARD", 1), | |
| ] | |
| class CHANCE: | |
| RARE = 0.05 | |
| UNCOMMON = 0.10 | |
| COMMON = 0.20 | |
| FREQUENT = 0.30 | |
| class ZEN: | |
| VOLTAGE_MIN = 2.0 | |
| VOLTAGE_MAX = 12.0 | |
| DRAG_MAX = 4.0 | |
| EFFICIENCY_CAP = 0.5 | |
| EFFICIENCY_SCALAR = 0.05 | |
| STREAK_BREAK_THRESHOLD = 5 | |
| class BUREAU: | |
| MIN_HEALTH_TO_AUDIT = 20.0 | |
| MIN_WORD_COUNT = 4 | |
| HIGH_VOLTAGE_TRIGGER = 18.0 | |
| LOW_TRUTH_TRIGGER = 0.8 | |
| TAX_STANDARD = 5.0 | |
| TAX_HEAVY = 15.0 | |
| class THERAPY: | |
| HEALING_THRESHOLD = 5 | |
| STRENGTH_REQ = 0.3 | |
| TRAUMA_REDUCTION = 0.5 | |
| class KINTSUGI: | |
| STAMINA_TRIGGER = 15.0 | |
| ALCHEMY_VOLTAGE = 15.0 | |
| ALCHEMY_WHIMSY = 0.4 | |
| INTEGRATION_VOLTAGE = 8.0 | |
| INTEGRATION_WHIMSY = 0.2 | |
| REDUCTION_SCAR = 0.5 | |
| REDUCTION_INTEGRATION = 2.0 | |
| REDUCTION_ALCHEMY_FACTOR = 0.8 | |
| ALCHEMY_ATP_FACTOR = 15.0 | |
| class MACHINE: | |
| CRUCIBLE_VOLTAGE_CAP = 20.0 | |
| DAMPENER_TOLERANCE = 15.0 | |
| THEREMIN_AMBER_THRESHOLD = 20.0 | |
| THEREMIN_SHATTER_POINT = 100.0 | |
| THEREMIN_MELT_THRESHOLD = 5.0 | |
| class LIMBO: | |
| MAX_ECTOPLASM = 50 | |
| HAUNT_CHANCE = 0.05 | |
| STASIS_LEAK_RATE = 1.0 | |
| class FOLLY: | |
| MAUSOLEUM_VOLTAGE = 8.5 | |
| MAUSOLEUM_STAMINA = 45.0 | |
| FEEDING_CAP = 20.0 | |
| BASE_YIELD = 30.0 | |
| DECAY_EXPONENT = 0.7 | |
| PIZZA_THRESHOLD = 25.0 | |
| SUGAR_RUSH_YIELD = 5.0 | |
| YIELD_ABSTRACT = 8.0 | |
| PENALTY_REGURGITATION = 5.0 | |
| PENALTY_INDIGESTION = 2.0 | |
| def load_preset(cls, preset_dict: Dict[str, Any]) -> List[str]: | |
| logs = [] | |
| for key, value in preset_dict.items(): | |
| if "." in key: | |
| sector_name, param_name = key.split(".", 1) | |
| if hasattr(cls, sector_name): | |
| target_class = getattr(cls, sector_name) | |
| if hasattr(target_class, param_name): | |
| old_val = getattr(target_class, param_name) | |
| setattr(target_class, param_name, value) | |
| logs.append( | |
| f"Tuned {sector_name}.{param_name}: {old_val} -> {value}" | |
| ) | |
| else: | |
| sector_name = key | |
| sector_data = value | |
| if hasattr(cls, sector_name) and isinstance(sector_data, dict): | |
| target_class = getattr(cls, sector_name) | |
| for k, v in sector_data.items(): | |
| if hasattr(target_class, k): | |
| old_val = getattr(target_class, k) | |
| setattr(target_class, k, v) | |
| logs.append(f"Tuned {sector_name}.{k}: {old_val} -> {v}") | |
| return logs | |
| def validate_integrity(cls) -> List[str]: | |
| errors = [] | |
| if cls.PHYSICS.VOLTAGE_FLOOR > cls.PHYSICS.VOLTAGE_MAX: | |
| cls.PHYSICS.VOLTAGE_FLOOR = cls.PHYSICS.VOLTAGE_MAX - 1.0 | |
| errors.append("⚠️ PHYSICS REPAIR: Floor > Max. Clamped Floor.") | |
| if cls.PHYSICS.DRAG_FLOOR > cls.PHYSICS.DRAG_HALT: | |
| cls.PHYSICS.DRAG_FLOOR = cls.PHYSICS.DRAG_HALT - 1.0 | |
| errors.append("⚠️ PHYSICS REPAIR: Drag Floor > Halt. Clamped Floor.") | |
| return errors | |
| def check_pareidolia(cls, words: List[str]) -> Any: | |
| if "face" in words and "smoke" in words: | |
| return True, "👀 PAREIDOLIA: You see a face in the smoke." | |
| return False, "" | |
| def reconcile_state(cls, physics_packet: Any): | |
| if isinstance(physics_packet, dict): | |
| current_v = physics_packet.get("voltage", 5.0) | |
| current_d = physics_packet.get("narrative_drag", 1.0) | |
| physics_packet["voltage"] = max(cls.PHYSICS.VOLTAGE_FLOOR, min(current_v, cls.PHYSICS.VOLTAGE_MAX)) | |
| physics_packet["narrative_drag"] = max(cls.PHYSICS.DRAG_FLOOR, min(current_d, cls.PHYSICS.DRAG_HALT)) | |
| else: | |
| current_v = getattr(physics_packet, "voltage", 5.0) | |
| current_d = getattr(physics_packet, "narrative_drag", 1.0) | |
| setattr(physics_packet, "voltage", max(cls.PHYSICS.VOLTAGE_FLOOR, min(current_v, cls.PHYSICS.VOLTAGE_MAX))) | |
| setattr(physics_packet, "narrative_drag", | |
| max(cls.PHYSICS.DRAG_FLOOR, min(current_d, cls.PHYSICS.DRAG_HALT))) | |
| return physics_packet | |
| def tune(cls, sector: str, parameter: str, value: Any) -> str: | |
| if not hasattr(cls, sector): | |
| return f"❌ SECTOR ERROR: '{sector}' does not exist." | |
| target_sector = getattr(cls, sector) | |
| if not hasattr(target_sector, parameter): | |
| return f"❌ PARAM ERROR: '{parameter}' not found in {sector}." | |
| current_val = getattr(target_sector, parameter) | |
| if type(current_val) != type(value): | |
| if not (isinstance(current_val, (int, float)) and isinstance(value, (int, float))): | |
| return f"⚠️ TYPE MISMATCH: Cannot replace {type(current_val).__name__} with {type(value).__name__}." | |
| setattr(target_sector, parameter, value) | |
| return f"✅ TUNED: {sector}.{parameter} -> {value}" | |