claudewheel v0.20.1 /claudewheel.hook_scripts
Edit
On this page

Registry of hook script templates for deploy-hooks, with blocker/advise scripts generated from the guardrail model.

#claudewheel.hook_scripts

#claudewheel.hook_scripts

Registry of hook script templates for deploy-hooks, with blocker/advise scripts generated from the guardrail model.

Each entry maps a script name to its content as a string constant. Scripts are deployed to SCRIPTS_DIR (~/.claudewheel/scripts/).

#deploy_scripts

python
def deploy_scripts(names: list[str], scripts_dir: Path, force_overwrite: bool=False) -> list[tuple[str, str]]

Write the named hook scripts into scripts_dir, chmod 0755.

Returns a list of (name, action) pairs where action is one of "created", "overwritten", or "exists" (skipped because it already existed and force_overwrite was False). Unknown names in names raise KeyError -- callers validate against HOOK_SCRIPTS first.