Merge stop.py into trigger.py to handle PreToolUse, Stop, and SubagentStop hooks via a single entry point routed by hook_event_name. Add PreToolUse hook for gitmode commit gating, SubagentStop hook for automatic dirty-files cleanup, and update tests and docs accordingly.