mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
feat: add macOS desktop notification Stop hook
Add a new Stop hook that sends a native macOS notification with the task summary (first line of last_assistant_message) when Claude finishes responding. Uses osascript via spawnSync for shell injection safety. Supports run-with-flags fast require() path. Only active on standard and strict profiles; silently skips on non-macOS platforms.
This commit is contained in:
parent
7f7e319d9f
commit
445ae5099d
3 changed files with 101 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ User request → Claude picks a tool → PreToolUse hook runs → Tool executes
|
|||
| **Session summary** | `Stop` | Persists session state when transcript path is available |
|
||||
| **Pattern extraction** | `Stop` | Evaluates session for extractable patterns (continuous learning) |
|
||||
| **Cost tracker** | `Stop` | Emits lightweight run-cost telemetry markers |
|
||||
| **Desktop notify** | `Stop` | Sends macOS desktop notification with task summary (standard+) |
|
||||
| **Session end marker** | `SessionEnd` | Lifecycle marker and cleanup log |
|
||||
|
||||
## Customizing Hooks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue