mirror of
https://github.com/xlionjuan/hermes-subagent-output-guide.git
synced 2026-11-16 22:37:50 +00:00
- 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
6 lines
316 B
Python
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)
|