Files
hyperframes/packages/studio/src
Miguel Angel Simon Sierra efcf3942f7 refactor(studio): one JSON store behind every persisted setting
Three modules were each re-implementing the same four concerns — reaching a
Storage that can throw, parsing JSON that may be anything, deciding what a bad
value means, and writing without letting a quota error escape — with their own
try/catch and their own answer to each. createJsonStore owns the first, second
and fourth; a caller supplies only its key, its fallback, and how to read its
own shape.

UI preferences, agent drafts and render settings now sit on it. Validation
stays with each caller, since only it knows which fields are meaningful.
2026-08-04 15:57:28 -07:00
..