brainy/scripts
David Snelling 1874b77896 feat: add ImageHandler with EXIF extraction and comprehensive MIME detection (v5.2.0)
Implements Phase 1.5 (Comprehensive MIME Type Detection) and adds built-in image processing support to IntelligentImportAugmentation.

**New Features:**
- ImageHandler: Extracts image metadata (dimensions, format, color space) using sharp
- EXIF extraction: Camera data, GPS, timestamps using exifr library
- Support for JPEG, PNG, WebP, GIF, TIFF, BMP, SVG, HEIC, AVIF formats
- MimeTypeDetector: Unified MIME type detection with magic byte support
- FormatDetector: Enhanced with image format detection via MIME + magic bytes

**Architecture Fixes:**
- Fixed brain.import() augmentation pipeline integration (src/brainy.ts:3140-3154)
- Added parameter spreading for ImportSource objects to enable augmentation access
- Fixed metadata propagation through ImportCoordinator to final results
- Added augmentation data check in ImportCoordinator.extract()

**Integration:**
- ImageHandler registered as built-in handler alongside CSV, Excel, PDF
- Images import as 'media' entities with 'image' subtype
- Full metadata preserved in knowledge graph entities
- Configuration options: enableImage, extractEXIF, imageDefaults

**Test Coverage:**
- 15 integration tests (image-import.test.ts) - 100% passing
- 27 unit tests (image-handler.test.ts) - 100% passing
- Format detection tests for all supported image types
- Error handling and resilience tests

**Breaking Changes:** None - backward compatible

Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 14:06:17 -08:00
..
buildEmbeddedPatterns.ts fix: handle potential undefined embedding vectors in buildEmbeddedPatterns 2025-09-29 10:10:00 -07:00
buildKeywordEmbeddings.ts feat: Phase 3 - Unified Semantic Type Inference (Nouns + Verbs) 2025-10-16 10:59:26 -07:00
buildTypeEmbeddings.ts perf: pre-compute type embeddings at build time (zero runtime cost) 2025-10-09 18:08:57 -07:00
check-keyword-embeddings.cjs feat: Phase 3 - Unified Semantic Type Inference (Nouns + Verbs) 2025-10-16 10:59:26 -07:00
check-patterns.cjs fix: use .cjs extension for check-patterns script 2025-08-27 10:00:56 -07:00
check-type-embeddings.cjs perf: pre-compute type embeddings at build time (zero runtime cost) 2025-10-09 18:08:57 -07:00
create-models-release.sh feat: reliable multi-source model delivery system 2025-08-28 08:45:35 -07:00
diagnose-workshop-issue.ts feat: brain.find() excludes VFS by default (Option 3C) 2025-10-24 11:42:47 -07:00
download-models.cjs feat: Brainy 3.0 - Production-ready Triple Intelligence database 2025-09-11 16:23:32 -07:00
ensure-models.js 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
migrate-to-structured-logger.ts feat: Brainy 3.0 - Triple Intelligence Release 2025-09-15 11:06:16 -07:00
migrate-vfs-storage.ts feat: add ImageHandler with EXIF extraction and comprehensive MIME detection (v5.2.0) 2025-11-03 14:06:17 -08:00
prepare-models.js 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
release.sh feat: add --skip-tests flag to release script 2025-10-01 13:51:47 -07:00
setup-github-models.sh feat: reliable multi-source model delivery system 2025-08-28 08:45:35 -07:00
test-with-memory.sh 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
update-augmentations-metadata.sh feat: comprehensive metadata namespace architecture and cleanup system 2025-08-27 15:38:48 -07:00