refactor(coding-agent): migrated image utilities to shared pi-utils package
- Extracted image metadata detection and MIME type utilities to @oh-my-pi/pi-utils package for shared use across projects. - Consolidated image-input.ts and mime.ts modules into image-loading.ts with simplified API removing redundant metadata parameters. - Updated all import paths across coding-agent to use readImageMetadata from @oh-my-pi/pi-utils instead of local utilities. - Added peek-file utility module to @oh-my-pi/pi-utils with buffer pooling for efficient file header reading.
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Changed
|
||||
|
||||
- Moved image metadata detection to @oh-my-pi/pi-utils package for shared use across projects
|
||||
- Simplified image loading API by removing redundant metadata parameters and consolidating image utilities
|
||||
- Updated imports to use readImageMetadata and parseImageMetadata from @oh-my-pi/pi-utils instead of local implementations
|
||||
|
||||
### Removed
|
||||
|
||||
- Removed image-input.ts utility module; functionality consolidated into image-loading.ts
|
||||
- Removed mime.ts utility module; MIME detection moved to @oh-my-pi/pi-utils
|
||||
- Removed ImageMetadata interface and ReadImageMetadataOptions from local codebase
|
||||
|
||||
## [14.0.0] - 2026-04-08
|
||||
|
||||
|
||||
Reference in New Issue
Block a user