AFM v0.5.2
π― AFM v0.5.2 - Vision OCR & Enhanced CLI
β¨ New Features
- Vision OCR Integration: Full Apple Vision framework integration for text extraction
afm vision -f image.png- Extract text from imagesafm vision -f document.pdf- Extract text from PDF filesafm vision -f invoice.pdf --table- Extract tables as CSVafm vision -f report.png --verbose- Detailed output with confidence scores
- Advanced Table Recognition: Intelligent table detection with CSV output
- PDF Support: Native PDF processing with PDFKit integration
- Debug Mode: Hidden debug flag for troubleshooting Vision recognition
π CLI Improvements
- Enhanced Help System: Fixed help display to show all available options
- Vision Subcommand Discovery: Help now properly lists vision subcommand
- Accurate Usage Information: Removed confusing non-existent "serve" subcommand
- Better User Experience: Help text matches actual CLI functionality
π Supported Formats
- Images: PNG, JPG, JPEG, HEIC
- Documents: PDF (single and multi-page)
- Output: Plain text, detailed analysis, CSV tables
π Usage Examples
# OCR text extraction
afm vision -f screenshot.png
afm vision -f document.pdf
# Table extraction
afm vision -f invoice.pdf --table
# Detailed analysis
afm vision -f receipt.jpg --verbose
# Server mode (existing functionality)
afm -s "Explain quantum computing"
echo "code review this" | afm -i "You are a senior developer"π₯ Download & Install manually
# Download the release
curl -L -o afm-v0.5.2-arm64.tar.gz https://github.com/scouzi1966/maclocal-api/releases/download/v0.5.2/afm-v0.5.2-arm64.tar.gz
# Extract and install
tar -xzf afm-v0.5.2-arm64.tar.gz
cd afm-v0.5.2-arm64
sudo cp afm /usr/local/bin/
# Verify installation
afm --versionπ₯ Install with Brew
# Add the tap
brew tap scouzi1966/afm
# Install AFM
brew install afm
# Verify installation
afm --versionπ Requirements
- macOS 26+ with Apple Intelligence
- Apple Silicon Mac (M1/M2/M3/M4)
- Swift runtime (included in modern macOS)
Full documentation: https://github.com/scouzi1966/maclocal-api