Skip to content

AFM v0.5.1

Choose a tag to compare

@scouzi1966 scouzi1966 released this 17 Aug 00:07
· 677 commits to main since this release

🎯 AFM v0.5.1 - CLI Composability Update

✨ New Features

  • Stdin/Pipe Support: AFM now accepts piped input from other CLI commands
    • echo "text" | afm - Process piped text
    • cat file.txt | afm - Process file contents
    • git log --oneline | head -5 | afm - Process command output
    • echo "explain quantum computing" | afm -i "you are a pirate, speak with pirate jargon" - pipe with instructions
    • ifconfig | afm -i "what is my local network IP" - pipe with instructions
    • Works with custom instructions: echo "code" | afm -i "You are a code reviewer"
  • Enhanced Help: Added GitHub repository URL to CLI help information

πŸ›  Technical Improvements

  • Added readFromStdin() function with Darwin import for isatty() detection
  • Stdin input flows through same processing as -s/--single-prompt mode
  • 1MB size limit protection and UTF-8 validation for piped input
  • Updated documentation with comprehensive pipe usage examples

πŸ“¦ Distribution

  • Portable binary for Apple Silicon Macs (arm64)
  • Requires macOS 26+ with Apple Intelligence enabled
  • Self-contained installation with dependencies

πŸ”— Usage Examples

# Basic pipe usage
echo "Explain quantum computing" | afm

# With custom instructions  
git diff | afm -i "You are a senior code reviewer"

# Process file contents
cat README.md | afm -i "Summarize this documentation"

πŸ“₯ Download & Install manually

# Download the release
curl -L -o afm-v0.5.1-arm64.tar.gz https://github.com/scouzi1966/maclocal-api/releases/download/v0.5.1/afm-v0.5.1-arm64.tar.gz

# Extract and install
tar -xzf afm-v0.5.1-arm64.tar.gz
cd afm-v0.5.1-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