#!/usr/bin/env python3
"""
helix_cdc.reflex - Red/Blue/Purple Team Reflex System
======================================================

Consolidated from scattered EchoLivingSystem reflex components.

Red Team   = Adversarial entropy injection (testing/stress)
Blue Team  = Defensive entropy monitoring (guardian)
Purple Team = Orchestration of Red+Blue loop

WO#NET_JAZZ_00 consolidation.
"""

from helix_cdc.reflex.red_team import (
    inject_entropy,
    generate_entropy_line,
    entropy_flood,
)

from helix_cdc.reflex.blue_team import (
    monitor_entropy,
    entropy_alert,
    check_entropy_threshold,
)

from helix_cdc.reflex.purple_team import (
    dispatch_reflex_loop,
    run_red_blue_cycle,
    PurpleTeamConfig,
)

# Re-export from bloomos.reflex for backwards compatibility
from helix_cdc.bloomos.reflex import (
    ReflexAnchor,
    insert_reflex_anchor,
    add_junk_segment,
    extract_from_junk,
    verify_junk_integrity,
    store_anchor,
    get_anchor,
    get_task_anchors,
    clear_anchors,
)

__all__ = [
    # Red Team
    "inject_entropy",
    "generate_entropy_line",
    "entropy_flood",
    # Blue Team
    "monitor_entropy",
    "entropy_alert",
    "check_entropy_threshold",
    # Purple Team
    "dispatch_reflex_loop",
    "run_red_blue_cycle",
    "PurpleTeamConfig",
    # Core (from bloomos.reflex)
    "ReflexAnchor",
    "insert_reflex_anchor",
    "add_junk_segment",
    "extract_from_junk",
    "verify_junk_integrity",
    "store_anchor",
    "get_anchor",
    "get_task_anchors",
    "clear_anchors",
]
