Custom hook that provides command execution functionality and current scope.
Retrieves the CommandExecutor from the MAIDR context (per-instance DI).
The scope is subscribed to reactively via useSyncExternalStore so that
components re-render when the scope changes (e.g. switching from TRACE
to BRAILLE mode).
Custom hook that provides command execution functionality and current scope. Retrieves the CommandExecutor from the MAIDR context (per-instance DI). The scope is subscribed to reactively via useSyncExternalStore so that components re-render when the scope changes (e.g. switching from TRACE to BRAILLE mode).