Understanding the technical architecture behind Cedar-OS spells
SpellActivationManager
is a singleton class that manages all low-level event handling for spells. It’s the bridge between DOM events and spell activations.
SpellSlice
is a Zustand store slice that provides high-level spell management and integrates with Cedar’s state system.
useSpell
hook provides the React-friendly interface for components to use spells.