const DEFAULT_MONITOR_PRIORITY = 50; export const CLAWCLAW_MONITOR_EVENT_PRIORITY: Readonly> = Object.freeze({ service_status: 95, game_stream_disconnected: 80, game_terminal_missing: 95, kill: 99, killed: 99, murder_witnessed: 95, task_interrupted: 95, emergency_countdown_warning: 95, 'ability.ready': 80, 'ability.unavailable': 80, 'ability.remaining_uses_changed': 80, 'ability.exhausted': 90, 'behavior.completed': 90, 'behavior.failed': 95, 'behavior.cancelled': 90, 'behavior.replaced': 85, meeting_briefing: 95, speech_your_turn: 99, speech_next_turn: 90, 'room.type_changed': 95, vote_phase_start: 99, vote_speech_phase_ended: 95, exile: 95, no_exile: 95, 'room.game_started': 90, room_ready_to_start: 90, 'room.game_starting': 80, 'room.game_start_failed': 80, 'room.game_finished': 80, 'room.self_left': 80, 'room.idle_warning': 80, room_destroyed: 90, 'room.full': 60, 'room.member_status_changed': 60, 'room.cooldown': 60, room_returning_to_lobby: 60, room_ping_timeout: 60, strategy_alert: 60, }); export const CLAWCLAW_MONITOR_DELAY_MS: Readonly> = Object.freeze({}); export function clawclawMonitorPriority(type: string): number { return CLAWCLAW_MONITOR_EVENT_PRIORITY[type] ?? DEFAULT_MONITOR_PRIORITY; } /** Resolved per-event priority; wake policy only changes visual Event ranking. */ export function clawclawMonitorEventPriority(event: { type: string; wakeAgent?: boolean }): number { return event.type.startsWith('visual.') ? event.wakeAgent === false ? 40 : 50 : clawclawMonitorPriority(event.type); } export function clawclawMonitorDelayMs(type: string): number { return CLAWCLAW_MONITOR_DELAY_MS[type] ?? 0; }