Claude.Hooks.Defaults (claude v0.5.2)

View Source

Defines default hook configurations for common tasks.

Atoms in hook configurations are expanded to their full definitions based on the event type they're used in.

Summary

Functions

Expands an atom hook to its full configuration based on the event type.

Expands all hooks in a list for a given event type.

Functions

expand_hook(hook, event_type)

Expands an atom hook to its full configuration based on the event type.

Returns the expanded hook configuration or the original if not an atom. Supports both plain atoms and tuples with atoms as the first element.

expand_hooks(hooks, event_type)

Expands all hooks in a list for a given event type.