Some checks failed
Smoke Test / smoke (push) Has been cancelled
Squash merge: de-duplicate crisis detector (closes #39) Co-authored-by: Alexander Whitestone <alexander@alexanderwhitestone.com> Co-committed-by: Alexander Whitestone <alexander@alexanderwhitestone.com>
35 lines
843 B
Python
35 lines
843 B
Python
"""
|
|
Crisis Detection System for the-door (LEGACY SHIM).
|
|
|
|
This module is a backward-compatible re-export layer.
|
|
The canonical detection logic lives in crisis/detect.py.
|
|
|
|
Both crisis_responder.py and the legacy test suite import from here.
|
|
Do NOT add detection logic to this file — it all comes from crisis.detect.
|
|
"""
|
|
|
|
from crisis.detect import (
|
|
CrisisDetector,
|
|
CrisisResult,
|
|
CrisisDetectionResult,
|
|
detect_crisis_legacy as detect_crisis,
|
|
CRITICAL_INDICATORS,
|
|
HIGH_INDICATORS,
|
|
MEDIUM_INDICATORS,
|
|
LOW_INDICATORS,
|
|
SCORES as RISK_SCORES,
|
|
)
|
|
|
|
# Re-export everything the legacy API exposed
|
|
__all__ = [
|
|
"CrisisDetector",
|
|
"CrisisResult",
|
|
"CrisisDetectionResult",
|
|
"detect_crisis",
|
|
"CRITICAL_INDICATORS",
|
|
"HIGH_INDICATORS",
|
|
"MEDIUM_INDICATORS",
|
|
"LOW_INDICATORS",
|
|
"RISK_SCORES",
|
|
]
|