Structs§
- Clash
Settings - Hook
Context - Session-level context from Claude Code hook input.
- Loaded
Policy - A policy source loaded from a specific level.
Enums§
- Policy
Level - Policy level — where a policy file lives in the precedence hierarchy.
Constants§
- CLASH_
DISABLE_ ENV - The environment variable that disables all clash hooks.
- DEFAULT_
POLICY - Default policy source embedded at compile time.
Functions§
- evaluate_
policy_ file - Evaluate a policy file (
.jsonor.star) and return the compiled JSON source. - evaluate_
star_ policy - Evaluate a
.starpolicy file and return the compiled JSON source. - is_
disabled - Check whether clash is disabled via the
CLASH_DISABLEenvironment variable. - parse_
notification_ config - Extract the
notifications:section from a YAML string.