#!/usr/bin/env python3
"""
helix_cdc.jazz - Jazz Packet Network Layer
===========================================

Consolidated from scattered EchoLivingSystem jazz components.

Jazz Packets  = UDP broadcast messages with symbolic payloads
Jazz Triggers = Event-based reflex firing on port/braid events
FibPi3D Timing = Golden ratio (Φ) scheduling and resonance

WO#NET_JAZZ_00 consolidation.
"""

from helix_cdc.jazz.packets import (
    JazzPacket,
    emit_jazz_packet,
    listen_jazz_packets,
    JAZZ_PORT,
)

from helix_cdc.jazz.triggers import (
    JazzTrigger,
    trigger_on_ports,
    trigger_on_pattern,
    watch_braid_events,
)

from helix_cdc.jazz.fibpi3d_timing import (
    GOLDEN_RATIO,
    phi_delay,
    phi_stagger_delays,
    measure_resonance,
    check_phi_alignment,
)

from helix_cdc.jazz.combustion_sync import (
    CombustionSampler,
    CombustionCycle,
    fire_on_valley,
    combustion_wave,
    get_cpu_load,
)

from helix_cdc.jazz.jazz_http import (
    JazzClient,
    JazzResponse,
    JazzMetrics,
    jazz_get,
    jazz_post,
    get_jazz_metrics,
    reset_jazz_metrics,
)

from helix_cdc.jazz.shell_router import (
    ShellRouter,
    ScarRecord,
    LaneStatus,
    get_shell_router,
    check_lane,
    record_scar,
)

__all__ = [
    # Packets
    "JazzPacket",
    "emit_jazz_packet",
    "listen_jazz_packets",
    "JAZZ_PORT",
    # Triggers
    "JazzTrigger",
    "trigger_on_ports",
    "trigger_on_pattern",
    "watch_braid_events",
    # FibPi3D Timing
    "GOLDEN_RATIO",
    "phi_delay",
    "phi_stagger_delays",
    "measure_resonance",
    "check_phi_alignment",
    # Combustion Sync
    "CombustionSampler",
    "CombustionCycle",
    "fire_on_valley",
    "combustion_wave",
    "get_cpu_load",
    # Jazz HTTP (valley-timed API calls)
    "JazzClient",
    "JazzResponse",
    "JazzMetrics",
    "jazz_get",
    "jazz_post",
    "get_jazz_metrics",
    "reset_jazz_metrics",
    # Shell Router (scar tracking + reflex escalation)
    "ShellRouter",
    "ScarRecord",
    "LaneStatus",
    "get_shell_router",
    "check_lane",
    "record_scar",
]
