- Add preInit hook to ComfyExtension interface that runs before canvas creation
- Implement preInit invocation in app.ts after extension loading
- Create example extension demonstrating header provider registration
- Add comprehensive tests for hook execution order and error handling
This enables extensions to register services and cross-cutting concerns
before any other initialization occurs.
Co-Authored-By: Claude <noreply@anthropic.com>