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 viafree-coding-models --config-dir ~/.config/free-coding-models(or any path) or viaFCM_CONFIG_DIR(useful for Docker). When set,config.json,backups/andcache.jsonall 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 sosrc/core/config.js,src/core/cache.jsandsrc/core/security.jsall respect it,docker-entrypoint.shandsrc/tui/cli-help.jsare updated, and 12 new tests covergetConfigDir(),CONFIG_PATHand cache relocation. With the follow-up fix,~and~/are now correctly expanded to your homedir (previouslyresolve()would treat~as a literal folder) andsaveConfig()/saveCache()auto-create the target directory on first run so an empty XDG folder no longer throwsENOENT. Thanks @Muhammad95959 for the feature (PR #158).- Dependabot auto-merge workflow — new
.github/workflows/dependabot-auto-merge.ymlthat squash-merges thepatch-and-minorgroup 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/chartnow returns an SVG withx-chart-status: restrictedand a message instead of the real graph. The README now points to the working mirrorstar-history.dera.page/svgand linkstar-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-dirpoints to a fresh directory — previouslysaveConfigwrote to${CONFIG_PATH}.tmp-...and thenrenamewithout ensuring the parent dir exists, which threwENOENTon a non-existent XDG path. BothsaveConfig(viadirname(CONFIG_PATH)) andsaveCache(viadirname(cachePath)) nowmkdir -pwith0o700before writing. - Tilde not expanded for
--config-dir/FCM_CONFIG_DIR—resolve("~/...")would create a literal~/folder undercwd. AddedexpandTilde()that maps~and~/tohomedir()beforeresolve(), in bothsrc/core/config.jsand the pre-import handling inbin/free-coding-models.js. - Test
MODELS flat array matches sources countnow accounts for deprecated models —sources.jsfilters models withdeprecatedAfter < today(e.g.cerebras/zai-glm-4.7deprecated 2026-08-17) when buildingMODELS, 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-react3.45.0 -> 3.46.0,kandown0.34.3 -> 0.50.0,@tanstack/react-virtual3.14.8 -> 3.14.9,@vitejs/plugin-react6.0.4 -> 6.0.5,vite8.1.5 -> 8.2.1,vite-plus0.2.6 -> 0.2.9. All checks (audit, lockfile-lint, Vercel, semgrep, notify-discord) passed. Major group (chalk5.6.2 -> 6.0.0 which requires Node 22, plus@tanstack/react-table8 -> 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).