Skip to content

Releases: CreevekCZ/afm-cli

v0.2.0

15 Mar 23:39
a9915e1

Choose a tag to compare

🚀 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's DynamicGenerationSchema API
  • 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-prompt for convenience

🔗 Links

v0.1.1 MVP Release

17 Nov 18:00

Choose a tag to compare

🎉 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)

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