bcl-ward 0.2.0

Claude Code hook CLI — PII guard, leak detection, event logging
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod entry;

use crate::input::HookInput;
use crate::output;
use std::process;

pub fn run(input: &HookInput) {
    let log_entry = entry::LogEntry::from_hook_input(input);

    if let Err(e) = entry::append_to_log(&log_entry) {
        eprintln!("ward log: failed to write log entry: {}", e);
    }

    output::pass();
    process::exit(0);
}