pub fn detect_caller(stdin: &Value) -> CallerKindExpand description
Detect which agent is calling the hook.
Priority:
POLYHOOK_CALLERenv var (explicit override)- Agent-specific env vars
- Heuristics on the raw stdin JSON shape
Unknown
pub fn detect_caller(stdin: &Value) -> CallerKindDetect which agent is calling the hook.
Priority:
POLYHOOK_CALLER env var (explicit override)Unknown