feat(03-02): integrate hook server into daemon with graceful degradation and dynamic poll
- Add hookPort, httpServer, lastHookTime, mu to Daemon struct - startHookServer binds HTTP on hookPort, degrades if port busy - Stop() closes httpServer before unix listener - pollLoop uses time.After(currentPollInterval()) instead of fixed ticker - currentPollInterval returns 20s when hooks active (<60s), 5s otherwise - processHookEvent records lastHookTime on each hook event Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Reference in New Issue
Block a user