Skip to content

snapclass 0.1.2

Choose a tag to compare

@Mattie Mattie released this 24 Jun 18:36

What's Changed

  • Add snapclass lifecycle hooks for migration/live-state setup:
    • __snapclass_ready__(self, *, snapshot) after snapshot attachment and setup.
    • __snapclass_loaded__(self, *, snapshot, path) after file data is applied.
  • Suppress autosave/reload behavior while lifecycle hooks run.
  • Wrap lifecycle hook failures in SnapclassError with hook name and path context when available.
  • Document the hook contract in the packaged snapclass fluency skill.

Migration Notes

  • Hooks are intended for transient/live state setup and post-load rebuilds.
  • Hook code should be idempotent and should not mutate fields used by the snapshot pattern.
  • Sidecars may be read inside hooks; sidecar writes should happen after hooks return.