github vava-nessa/free-coding-models v0.5.74

latest releases: v0.6.2, v0.6.1, v0.6.0...
3 months ago

Added

  • --config-dir <dir> flag for XDG and custom config locations — you can now point free-coding-models at any directory for its state files via free-coding-models --config-dir ~/.config/free-coding-models (or any path) or via FCM_CONFIG_DIR (useful for Docker). When set, config.json, backups/ and cache.json all live together in the chosen directory instead of scattering ~/.free-coding-models.json + ~/.free-coding-models.cache.json + ~/.free-coding-models.backups. The flag is parsed before any module loads so src/core/config.js, src/core/cache.js and src/core/security.js all respect it, docker-entrypoint.sh and src/tui/cli-help.js are updated, and 12 new tests cover getConfigDir(), CONFIG_PATH and cache relocation. With the follow-up fix, ~ and ~/ are now correctly expanded to your homedir (previously resolve() would treat ~ as a literal folder) and saveConfig() / saveCache() auto-create the target directory on first run so an empty XDG folder no longer throws ENOENT. Thanks @Muhammad95959 for the feature (PR #158).
  • Dependabot auto-merge workflow — new .github/workflows/dependabot-auto-merge.yml that squash-merges the patch-and-minor group automatically when required checks (audit, lockfile-lint, Vercel, semgrep) are green. Major updates stay manual for human review. This keeps weekly dependency churn low while preserving safety for breaking changes.

Fixed

  • Star History chart in README was showing a "GitHub restricted access" placeholder — GitHub restricted stargazer data and api.star-history.com/chart now returns an SVG with x-chart-status: restricted and a message instead of the real graph. The README now points to the working mirror star-history.dera.page/svg and link star-history.dera.page/#..., verified to return a real 200 SVG. Fixes the broken image at the bottom of the README. Thanks @FaintFlower (PR #159).
  • First-run crash when --config-dir points to a fresh directory — previously saveConfig wrote to ${CONFIG_PATH}.tmp-... and then rename without ensuring the parent dir exists, which threw ENOENT on a non-existent XDG path. Both saveConfig (via dirname(CONFIG_PATH)) and saveCache (via dirname(cachePath)) now mkdir -p with 0o700 before writing.
  • Tilde not expanded for --config-dir / FCM_CONFIG_DIR — resolve("~/...") would create a literal ~/ folder under cwd. Added expandTilde() that maps ~ and ~/ to homedir() before resolve(), in both src/core/config.js and the pre-import handling in bin/free-coding-models.js.
  • Test MODELS flat array matches sources count now accounts for deprecated models — sources.js filters models with deprecatedAfter < today (e.g. cerebras/zai-glm-4.7 deprecated 2026-08-17) when building MODELS, but the test counted all models. The test now mirrors the same filter so the suite is green (813/813).

Changed

  • Dependencies (deps #152, patch-and-minor group, 6 updates) — @tabler/icons-react 3.45.0 -> 3.46.0, kandown 0.34.3 -> 0.50.0, @tanstack/react-virtual 3.14.8 -> 3.14.9, @vitejs/plugin-react 6.0.4 -> 6.0.5, vite 8.1.5 -> 8.2.1, vite-plus 0.2.6 -> 0.2.9. All checks (audit, lockfile-lint, Vercel, semgrep, notify-discord) passed. Major group (chalk 5.6.2 -> 6.0.0 which requires Node 22, plus @tanstack/react-table 8 -> 9) is left for manual review and not auto-merged.

Tests

  • 813 tests passing (up from 812 after fixing the deprecated-model count and adding 12 new tests for --config-dir / cache relocation).

Don't miss a new free-coding-models release

NewReleases is sending notifications on new releases.