mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
- The app watches the relay's connection while a card is up: when Claude Code ends the relay because the prompt was answered in the terminal or the Claude app, the island gets hook-resolved and the card goes at once. - The card also goes when the very tool call it asked about runs. - coucou-hook notices when the shell that ran it (Git Bash, cmd) is gone and exits, so an orphaned relay no longer keeps the card up.
30 lines
832 B
TOML
30 lines
832 B
TOML
[package]
|
|
name = "coucou-hook"
|
|
description = "Relays Claude Code hook events to Coucou over a named pipe (Windows) or a Unix socket (Linux)"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "coucou-hook"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
serde_json = "1"
|
|
|
|
# Just enough Win32 to know our own SID, to check who is serving the pipe, and
|
|
# to notice the process that ran us going away (ToolHelp finds it).
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows = { version = "0.61", features = [
|
|
"Win32_Foundation",
|
|
"Win32_Security",
|
|
"Win32_Security_Authorization",
|
|
"Win32_System_Diagnostics_ToolHelp",
|
|
"Win32_System_Pipes",
|
|
"Win32_System_Threading",
|
|
] }
|
|
|
|
# The socket syscalls and peer credentials the Linux transport needs.
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
libc = "0.2"
|