Files
coucou/windows/hook/Cargo.toml
ARNAV AGGARWAL abcebb1c0f feat(windows): drop a permission card answered in the terminal
- 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.
2026-11-02 12:20:16 +08:00

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"