Releases: CreevekCZ/afm-cli
Releases · CreevekCZ/afm-cli
v0.2.0
🚀 Release v0.2.0
Release v0.2.0 of afm-cli, a Swift CLI for interacting with macOS Apple Intelligence foundation models.
✨ What's New
Structured JSON Output
--schema/--json-schema— Request structured output that conforms to a JSON Schema using Apple'sDynamicGenerationSchemaAPI- Accepts a file path (e.g.
schema.json) or an inline JSON string - Output is pretty-printed JSON matching the requested shape
- Supported schema types:
string,integer,number,boolean,object,array
Context window overflow handling
- When using
--conversation, if the combined prompt exceeds the 4096-token context limit, the CLI automatically drops the oldest messages, rebuilds the prompt from recent history, and retries. A warning is printed to stderr.
Improvements
- File input validation — Clear limits and validation for
--file: max 1 MB, UTF-8, plain text only --pre-prompt— Alias for--system-promptfor convenience
🔗 Links
- Documentation
- License (MIT)
v0.1.1 MVP Release
🎉 Initial Release v0.1.1
First release of afm-cli, a Swift CLI for interacting with macOS Apple Intelligence foundation models.
✨ Features
Core Functionality
- Generate text using Apple Intelligence Foundation models
- Multiple input methods:
- Command-line arguments (positional or
--prompt) - File input (
--file) - Standard input (piping)
- Command-line arguments (positional or
Advanced Features
- System prompts/pre-prompts (
--system-prompt,-s) to guide response style and format - Conversation management (
--conversation,-c) to save and load conversation history in JSON format
User Experience
- Help command (
--help,-h) - Version command (
--version,-v) - System requirement validation (macOS 26.0+, Apple Silicon, Apple Intelligence enabled)
🔗 Links
- Documentation
- License (MIT)