hermes-subagent-output-guide/.vulture_whitelist.py
XLion e8232e84e6
refactor: change _child_sessions from set[str] to dict[str, ChildInfo] with cascade cleanup
- Add ChildInfo dataclass for parent→children metadata tracking
- Change _child_sessions from set[str] to dict[str, ChildInfo]
- _on_subagent_start now accepts parent_session_id, parent_turn_id
- _on_session_end implements cascade cleanup (orphaned children cleanup)
- Remove child_goal from vulture whitelist (now used in ChildInfo)
- Fix conftest.py to register module in sys.modules (required by @dataclass
  with PEP 563 string annotations)
- Update existing tests for dict structure
- Add 5 new tests covering cascade cleanup scenarios

Closes: #7
2026-07-01 22:24:17 +08:00

6 lines
316 B
Python

# vulture whitelist — intentionally unused parameters in hook callbacks
# Hook callbacks accept kwargs via named parameters for clarity; unused
# ones are caught by **_: Any.
_on_subagent_start # unused function reference (register() wires it)
_on_pre_llm_call # unused function reference (register() wires it)