Changelog v1.9.2
Direct api_key configuration in .loki/config.yaml and .loki/models.json, enterprise CI/CD matrix, and PyInstaller size optimizations.
v1.9.2Oct 3, 2026Syncing from GitHub…
Added
- Direct
api_keyConfiguration for AI Connections (src/loki/config.py,src/loki/ai/chat.py):- Support direct
api_keyspecification in.loki/config.yaml(ai.api_key) and.loki/models.jsonprofiles. - Enhanced
/model addinloki chatto acceptapi_key=<KEY>, enabling one-step registration and activation of providers like OpenRouter, Anthropic, or OpenAI.
- Support direct
- Enterprise-Grade GitHub Actions CI/CD Pipeline (
.github/workflows/loki.yml):- Integrated
🔍 Lint & Code Standards (Ruff)running in ~6 seconds with zero lint errors acrosssrcandtests. - Added
🔒 Security & Vulnerability Audit (pip-audit)scanning the complete installed dependency tree for known CVEs. - Author a 7-leg cross-platform test matrix covering Ubuntu AMD64, Windows AMD64, and macOS ARM64 on Python 3.10, 3.11, and 3.12 (173 unit tests passing across all runners).
- Added
📦 Standalone Binary Spec Smoke Test (loki.spec)ensuring compiled PyInstaller binaries launch cleanly and pass CLI verification (--help,version). - Added workflow concurrency guards (
cancel-in-progress: true) to prevent redundant CI run accumulation.
- Integrated
Optimizations & Performance
- Optimized PyInstaller Packaging Specification (
loki.spec):- Pruned >860 static files and Prisma client assets (~50 MB) from
litellm.proxywhile surgically retaining necessary Python runtime code for spend tracking. - Excluded unused ASGI runtime and heavy libraries (
fastapi,starlette,uvicorn,matplotlib,scipy,pandas) reducing standalone executable compile time by >40%.
- Pruned >860 static files and Prisma client assets (~50 MB) from
Bug Fixes
- Missing
tenacityDependency in Packaging (pyproject.toml):- Added
tenacity>=8.2.0to[project.dependencies]inpyproject.tomlso global installations viauv toolandpipautomatically provide LiteLLM retry handlers required by Anthropic and OpenRouter.
- Added
Contributors
Upgrade
bash
uv tool upgrade loki-chaos-agent# or directly from LOKI:loki update
