vigiles API reference
    Preparing search index...

    Interface CompiledHookProgram

    A compiled hook program: the harness block + a tamper-evident stamp.

    interface CompiledHookProgram {
        hooks: Record<
            string,
            readonly {
                hooks: readonly { command: string; type: "command" }[];
                matcher?: string;
            }[],
        >;
        settingsBlock: string;
        stamp: SHA256Hash;
    }
    Index

    Properties

    hooks: Record<
        string,
        readonly {
            hooks: readonly { command: string; type: "command" }[];
            matcher?: string;
        }[],
    >
    settingsBlock: string

    The rendered settings block to add to the harness's hooks config — JSON for Claude Code (.claude/settings.json), TOML [[hooks.<event>]] for Codex (config.toml). The CLI prints this; the structured hooks above is the Claude-Code-shaped intermediate.

    stamp: SHA256Hash

    SHA-256 of the sanctioned source — the runtime refuses an artifact whose stamp differs.