Skip to main content

Module settings

Module settings 

Source

Structs§

ClashSettings
HookContext
Session-level context from Claude Code hook input.
LoadedPolicy
A policy source loaded from a specific level.

Enums§

PolicyLevel
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 (.json or .star) and return the compiled JSON source.
evaluate_star_policy
Evaluate a .star policy file and return the compiled JSON source.
is_disabled
Check whether clash is disabled via the CLASH_DISABLE environment variable.
parse_notification_config
Extract the notifications: section from a YAML string.