""" perception/__init__.py ===================== Perception 层:感知外部世界(键盘鼠标 + 屏幕截图)。 导出 ---- KeyboardMouseMonitor : 全局键鼠监听(pynput 全局钩子) ActivityDetector : 滑动窗口活跃度统计 ActivityLevel : 活跃度枚举(IDLE/LOW/NORMAL/HIGH) ScreenCapture : mss 屏幕截图 + 可选 OCR get_global_monitor : 获取全局单例 monitor stop_global_monitor : 停止全局单例 """ from __future__ import annotations from perception.keyboard_mouse_monitor import ( KeyboardMouseMonitor, ActivityDetector, ActivityLevel, ScreenCapture, get_global_monitor, stop_global_monitor, ) __all__ = [ "KeyboardMouseMonitor", "ActivityDetector", "ActivityLevel", "ScreenCapture", "get_global_monitor", "stop_global_monitor", ]