Spaces:
Paused

icebear icebear0828 commited on
Commit
50720ce
·
unverified ·
1 Parent(s): 20dcebd

fix: write runtime cache to data/ instead of git-tracked config/ (#138)

Browse files

model-store synced merged catalog back to config/models.yaml on every
backend fetch (~1h), and update-checker mutated config/default.yaml on
version detection. Both made the repo dirty after normal runtime.

- syncStaticModels() → data/models-cache.yaml (gitignored)
- applyVersionUpdate() → data/version-state.json (gitignored)
- loadStaticModels() overlays cache on cold start for fallback
- loadCurrentConfig() checks version override before YAML baseline
- config/ is now read-only for runtime operations

Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>

5 files changed +283 -20
Files changed (5)
CHANGELOG.md+5
src/__tests__/update-checker.test.tsAdded+129
src/models/__tests__/model-cache.test.tsAdded+71
src/models/model-store.ts+45-13
src/update-checker.ts+33-7