feat(plugins): pre_api_request/post_api_request with narrow payloads

- Rename per-LLM-call hooks from pre_llm_request/post_llm_request for clarity vs pre_llm_call
- Emit summary kwargs only (counts, usage dict from normalize_usage); keep env_var_enabled for HERMES_DUMP_REQUESTS
- Add is_truthy_value/env_var_enabled to utils; wire hermes_cli.plugins._env_enabled through it
- Update Langfuse local setup doc; add scripts/langfuse_smoketest.py and optional ~/.hermes plugin tests

Made-with: Cursor
This commit is contained in:
kshitijk4poor 2026-04-06 10:33:13 +05:30 committed by Teknium
parent 9e820dda37
commit f530ef1835
7 changed files with 637 additions and 25 deletions

View file

@ -56,8 +56,8 @@ VALID_HOOKS: Set[str] = {
"post_tool_call",
"pre_llm_call",
"post_llm_call",
"pre_llm_request",
"post_llm_request",
"pre_api_request",
"post_api_request",
"on_session_start",
"on_session_end",
}