kintsugi-intercept 0.1.2

Kintsugi interception adapters: the $PATH shim, the Claude Code hook bridge, and the kintsugi-exec MCP server. All normalize to one ProposedCommand.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `kintsugi-hook`: the pre-tool hook bridge for every supported agent CLI.
//!
//! Reads a hook event JSON on stdin, records/decides via the daemon, and writes
//! a permission decision on stdout in the calling CLI's protocol. The dialect is
//! selected with `--agent <id>` (claude, qwen, gemini, copilot, cursor, codex,
//! opencode), defaulting to Claude Code. `kintsugi init` wires each detected CLI to
//! call this with the right flag.

use std::process::ExitCode;

fn main() -> ExitCode {
    let code = kintsugi_intercept::hook::run();
    ExitCode::from(u8::try_from(code & 0xff).unwrap_or(0))
}