hermes-currenttime-hint/.vulture_whitelist.py
Shihfu Juan 8625ba115a
feat: initial hermes-currenttime-hint plugin
Appends an ISO 8601 current-time tag to the user message tail via the
pre_llm_call hook. Two independent triggers, whichever fires first:

- USER_MESSAGE_INTERVAL (default 5): every Nth user message
- TIME_INTERVAL_SECONDS (default 1800): wall-clock interval

First injection for a session always fires on the very first user
message. State is held in memory only (lazy TTL + 1024-session LRU
cap). Per-session state is dropped on on_session_end.

Time format: ISO 8601 with UTC offset, second precision. Honours $TZ
via POSIX time.tzset() if set; defaults to host local timezone.

Plugin is opt-in via 'hermes plugins enable hermes-currenttime-hint'.
No per-plugin configuration. Plugin.yaml hooks and register() wiring
are validated by tests/test_registration.py.
2026-07-10 19:08:35 +08:00

4 lines
No EOL
306 B
Python

# Vulture whitelist — intentionally kept identifiers that vulture flags.
# Functions named with underscore prefix and consumed only by pytest fixtures
# or other plugins are tracked here so vulture doesn't suggest removing them.
_clean_state # pytest autouse fixture, called implicitly via fixture chain