Releases: Obitrain/obi
Releases · Obitrain/obi
Release list
0.2.1
obi 0.2.1
Spec
- Refreshed the vendored OpenAPI spec to obitrain-api v1.99.0.
obi schemanow surfaces the newgranularityparameter onGET /v1/training/session/laps:granularity=lengthreturns per-pool-length swim splits reconstructed from the 1 s distance channel (~1 s precision, finer than the samples endpoint), and regenerated models.
Fixes
- Derive
__version__from package metadata. - codegen: use ruff formatters; add
just refresh.
0.2.0
0.2.0
- QR code login —
obi auth loginrenders a scannable QR code for the device-link URL,
so you can authenticate from a phone without copy-pasting. - Rich login panel — login flow uses a styled Rich panel with live status and clean Ctrl-C
cancellation instead of plain text output. - OpenAPI spec refresh — bundled spec updated to v1.95.0 with regenerated models.
- Docs — agent driving guide added to README and quickstart.
- CI — actions bumped to Node 24 SHA pins.
0.1.0
obitrain 0.1.0 — initial release
The command-line client for the Obitrain API: authenticate once, call any endpoint, and discover the API contract offline.
Highlights
- Authentication — device-code login (
obi auth login), token storage (auth set/auth clear), per-profile0600credential files, and ephemeral--token/OBI_TOKEN. - Generic requests — one
obi api <PATH>passthrough (-X/-d/-q/-H/-o/--json/-n); bodies from inline JSON,@file, or stdin. - Offline discovery —
obi schemasearches a bundled OpenAPI contract;obi schema showrenders params, payloads, responses, and referenced schemas with no network. - Agent-friendly — bodies to stdout, one-line JSON diagnostics to stderr, stable exit codes, and
404/405/422repair hints. - Docs — published site with user and agent quickstarts.
Merging this PR tags 0.1.0, creates the GitHub Release, and publishes to PyPI.