You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: extract shared hook types into tokf-hook-types crate (#314)
## Summary
- Extract `ExternalEngineConfig`, `ErrorFallback`, `HookFormat`,
`PermissionVerdict`, `RewriteConfig`, `PermissionsConfig`, and related
types into a new `tokf-hook-types` crate
- Enables external tools to share the config format without duplicating
type definitions or risking format drift
- Adds `Serialize` derives for round-trip TOML support,
`skip_serializing_if` for clean output, and `Default` impl for
`ExternalEngineConfig`
- `tokf-cli` re-exports all types from the new crate for full backward
compatibility
## Test plan
- [x] `cargo fmt && cargo clippy --all-targets -- -D warnings` passes
- [x] All 1359 tokf tests pass (0 failures)
- [x] `tokf-hook-types` builds with only `serde` dependency
- [x] Verify tokf-cli re-exports work correctly (no API breakage)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments