Skip to content

v0.1.1

Latest

Choose a tag to compare

@kabatin kabatin released this 28 Oct 09:40
· 2 commits to main since this release
  • sfx-api setup: the install command shared by the AI servers. --models sa3-medium,sa3-small,moss
    (default all), --check (changes nothing: machine, per-component state and download bytes),
    --yes, --json (one object on stdout), --prefix, --lan (token from SFX_API_TOKEN, the
    config or generated; never printed), --port, --coordinate-with NAME=URL, --service (launchd
    plist, bootout + bootstrap, waits for /v1/health), --label-suffix. Stable Audio 3 runs its
    own install.sh at a pinned commit; MOSS gets a pinned checkout, the README's pinned environment and
    the model at a pinned revision. Downloads resume, a stalled one is restarted, free disk is checked
    first. The config is merged (existing values kept), written atomically with mode 0600 and validated
    by the server's own loader.
  • The Stable Audio 3 weights are fetched at a pinned revision before install.sh runs offline;
    both engines' dependencies resolve with UV_EXCLUDE_NEWER. Peer URLs and tokens and the LAN
    token are checked before any download; a known peer gets its new URL. --label-suffix needs
    --port. Usage errors with --json still print the JSON object. The plist is replaced atomically,
    launchd is given time to drop the old agent, and directories setup creates are 0700.

Install / update

uv tool install git+https://github.com/kabatin/sfx-api@v0.1.1               # new install
uv tool install --reinstall git+https://github.com/kabatin/sfx-api@v0.1.1   # update an existing install

The config and its token are kept. Restart the server after updating, once /v1/health shows "running": 0:
launchctl kickstart -k gui/$(id -u)/com.github.kabatin.sfx-api for the LaunchAgent, or run sfx-api setup --service again.
ixa 0.8.3 and later do this for you: pnpm ixa ai install upgrades an older sfx-api before checking what is installed.

Full changes: v0.1.0...v0.1.1