// Cart feature
const cart = useCommandGroup('cart')
cart.register('add', handler) // registers 'cartAdd'
cart.dispatch('add', product) // dispatches 'cartAdd'
cart.on('*', listener) // listens to 'cart*'
// Orders feature — completely isolated
const orders = useCommandGroup('orders')
orders.dispatch('cancel', { id }) // dispatches 'ordersCancel'
useCommandGroup — namespace isolation for large apps and multi-team projects.
All dispatch/register/on calls are automatically prefixed with the namespace in camelCase. This prevents action name collisions when composing multiple feature modules.