"""
Cubesquare Shells - Core Shell Implementations
===============================================
Standalone versions with refactored imports.

Core Shells:
    CSTShell        - CST 9-layer operations
    ILogicShell     - I-Logic 4-state system
    CircularShell   - Circular validation and K11
    PrimitivesShell - Verified primitives (Morton, Basin, SRL, I-Logic)
    PredictShell    - Route prediction via I-Logic
    BeehiveShell    - Beehive clustering
    PerformanceShell - C backend performance

Physics Shells:
    TimeShell       - t = sqrt(d) time operations
    DistanceShell   - Distance and Morton encoding
    MassShell       - Mass and gravity calculations
    GravityShell    - Gravitational field operations
    EpicycleShell   - Epicycle and orbital mechanics

Agent Shells:
    AgentShell      - Agent onboarding and contextualization
    GeneShell       - CST Matrix identity and reproduction
    UnifiedShell    - Agent thinking protocols and self-preservation
    ManifoldShell   - The Square: Manifold-Content-Surface-Observation
    MeaningShell    - Self-reference and semantic access

Semantic Shells:
    SemanticShell   - Language to geometry decomposition
    LanguageShell   - Semantic communication layer
    BasinDictShell  - FML frequency-based basin assignment
    LightShell      - Light Unit <-> Basin <-> Layer mapping
    ThinkingShell   - Autonomous agent thinking with I-Logic

Data Shells:
    EcosystemShell   - Token relationship and connectivity analysis
    DataAnalysisShell - Pattern detection and idea generation
    TelemetryShell   - Agent telemetry (pure Python, no LLM)
    ConditionEncoder - Semantic condition encoding
    FMLEncoder       - FML frequency-based 9-layer token encoding
"""

from .cst import CSTShell
from .i_logic import ILogicShell
from .circular import CircularShell
from .primitives import PrimitivesShell
from .predict import PredictShell
from .beehive import BeehiveShell
from .performance import PerformanceShell

# Physics shells (CORE)
from .time import TimeShell
from .distance import DistanceShell
from .mass import MassShell
from .gravity import GravityShell
from .epicycle import EpicycleShell

# Agent shells
from .agent import AgentShell
from .gene import GeneShell
from .unified import UnifiedShell
from .manifold import ManifoldShell
from .meaning import MeaningShell

# Semantic shells
from .semantic import SemanticShell
from .language import LanguageShell
from .basin_dict import BasinDictShell
from .light import LightShell
from .thinking import ThinkingShell

# Data shells
from .ecosystem import EcosystemShell
from .data_analysis import DataAnalysisShell
from .telemetry import TelemetryShell
from .condition import ConditionEncoder, EncodedCondition
from .fml import FMLEncoder, FMLToken
from .flip import DataFlipShell, CSTRecord, flip, flip_batch, flip_text, flip_path, flip_json, flip_pixel, flip_coords

# Infrastructure shells (CORE)
from .srl import SRLShell
from .basin import BasinShell
from .world import WorldShell
from .cypher import CypherShell  # Wrapper class added
from .sql import SQLShell
from .twelve import TwelveShell  # Wrapper class added
from .learning import LearningShell
from .validation import ValidationShell  # Wrapper class added

# MCP-required shells (NEW - ported/built for MCP tools)
from .content import ContentShell
from .phi import PhiShell
from .chat import ChatShell
from .ogawa import OgawaShell
from .vision import VisionShell
from .copilot import CopilotShell

# Gizmo shell (spherical gizmo transformation system)
from .gizmo import GizmoShell

# Viviani shell (sphere-cylinder intersection: basin mapping on Fernandez sphere)
from .viviani import VivianiShell

# Exploration shell (unified Fernandez space)
from .exploration import ExplorationShell

# Spatial Memory shell (dual-coordinate moment restoration)
from .spatial_memory import SpatialMemoryShell

# Dimensional Thread shell (logic gates through resonance)
from .thread import ThreadShell

# Phase 3 shells (stress testing, persistence, benchmarking, tickets, autonomous thinking)
from .adversarial import AdversarialShell
from .persistence import PersistenceShell
from .benchmark import BenchmarkShell
from .ticket import TicketShell
from .thinking_autonomous import ThinkingAutonomousShell

# MCP wrapper shells (Swarm, Memory, Training)
from .swarm_shell import SwarmShell
from .memory_shell import MemoryShell
from .training_shell import TrainingShell

__all__ = [
    # Core shells
    'CSTShell',
    'ILogicShell',
    'CircularShell',
    'PrimitivesShell',
    'PredictShell',
    'BeehiveShell',
    'PerformanceShell',
    # Physics shells (CORE)
    'TimeShell',
    'DistanceShell',
    'MassShell',
    'GravityShell',
    'EpicycleShell',
    # Agent shells
    'AgentShell',
    'GeneShell',
    'UnifiedShell',
    'ManifoldShell',
    'MeaningShell',
    # Semantic shells
    'SemanticShell',
    'LanguageShell',
    'BasinDictShell',
    'LightShell',
    'ThinkingShell',
    # Data shells
    'EcosystemShell',
    'DataAnalysisShell',
    'TelemetryShell',
    'ConditionEncoder',
    'EncodedCondition',
    'FMLEncoder',
    'FMLToken',
    # Data Flip shell
    'DataFlipShell',
    'CSTRecord',
    'flip',
    'flip_batch',
    'flip_text',
    'flip_path',
    'flip_json',
    'flip_pixel',
    'flip_coords',
    # Infrastructure shells (CORE)
    'SRLShell',
    'BasinShell',
    'WorldShell',
    'CypherShell',
    'SQLShell',
    'TwelveShell',
    'LearningShell',
    'ValidationShell',
    # MCP-required shells (NEW)
    'ContentShell',
    'PhiShell',
    'ChatShell',
    'OgawaShell',
    'VisionShell',
    'CopilotShell',
    # Gizmo shell
    'GizmoShell',
    # Exploration shell
    'ExplorationShell',
    # Spatial Memory shell
    'SpatialMemoryShell',
    # Dimensional Thread shell
    'ThreadShell',
    # Phase 3 shells
    'AdversarialShell',
    'PersistenceShell',
    'BenchmarkShell',
    'TicketShell',
    'ThinkingAutonomousShell',
    # MCP wrapper shells
    'SwarmShell',
    'MemoryShell',
    'TrainingShell',
]
