| feat: add comprehensive hook system with webhook and async batch support
- Implement hook framework with 13 extension points
* Message, Turn, Tool, Session, and System level hooks
* Pre/post execution hooks with modify/deny capabilities
* Priority-based hook ordering
- Add webhook support for remote HTTP integration
* Synchronous webhook mode
* Custom headers and authentication
* Automatic retry with exponential backoff
- Implement async webhook with batch sending
* Non-blocking event queue (< 1ms latency)
* Configurable batch size and flush interval
* Background tokio task processing
* Reduces HTTP requests by 90-98%
- Add CLI commands for hook management
* 'atomcode hooks list' - view loaded hooks
* 'atomcode hooks paths' - show config paths
* 'atomcode hooks test' - test individual hooks
- Include 6 built-in engineering hooks
* Tool audit logging
* Turn statistics
* Auto git commit
* Session summary
* Error reporting
* Response validation
- Fix existing test failures
* self_update version comparison logic
* Windows path JSON escaping in read tests
* Edit test Windows compatibility
- Add comprehensive documentation
* Hook usage guide
* Complete timing reference
* Webhook integration guide
* Async webhook guide
* CLI command guide
- Add example hooks (shell scripts)
* Tool call logger
* Auto git commit
* Code review helper
Tested: 305+ tests passing, build successful
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
| 1 个月前 |