Skip to content

AFM v0.5.2

Choose a tag to compare

@scouzi1966 scouzi1966 released this 21 Aug 01:26
· 599 commits to main since this release

🎯 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 images
    • afm vision -f document.pdf - Extract text from PDF files
    • afm vision -f invoice.pdf --table - Extract tables as CSV
    • afm 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