[TASK] Fix code formatting
[TASK] Refactor dependency services and action services
[TASK] Resolve and streamline clear workspace element commands (discard/flush)
[TASK] Rework clear workspaces command processing