mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-21 18:11:58 +01:00
Store::save_theme replaces a library theme under the suite lock when its file still has the stamp the caller loaded it with (StoreError::Changed otherwise; built-ins refused) and bumps library_revision, sharing the import/delete write steps. The disk backend replaces through craft_atomic with the existing pre-rename guard, which now checks bytes for selection.json and the stamp for a theme. Op::Save / OpOutput::Saved on the worker; SuiteClient::save_theme, is_saving and take_saved, one save in flight. Tests: store save, changed stamp, built-in refusal, client round trip, and a save child in two_processes.