Skip to content

v0.5.6: Fix AcervoManager model resolution for short/component IDs

Choose a tag to compare

@stovak stovak released this 05 Apr 11:05
· 51 commits to main since this release
2fb6f80

SwiftAcervo v0.5.6

Bug Fix: AcervoManager Short/Component ID Resolution

Fixes a crash where AcervoManager.perform would throw invalidModelId when called with a short component ID (e.g. t5-xxl-encoder-int4) that lacks an org/repo prefix.

Fix Details

  • AcervoManager now uses a two-stage resolution strategy in the shared perform helper:
    1. Try the direct org/repo path lookup as before (existing behavior preserved)
    2. On failure, fall back to the component registry (Acervo.component(_:)) and derive the directory from descriptor.repoId via Acervo.slugify
  • Throws AcervoError.invalidModelId only when both resolution paths fail
  • Change confined to Sources/SwiftAcervo/AcervoManager.swift (+16 / -2)

Testing

  • 371 unit tests passing
  • Test on macOS: pass
  • Test on iOS Simulator: pass

Documentation

  • Version updated across AGENTS.md, CLAUDE.md, GEMINI.md, README.md
  • README SPM installation example updated to from: "0.5.6"

Full Changelog: v0.5.5...v0.5.6