stop method

void stop()

Stops the orchestrator.

Implementation

void stop() {
  _isRunning = false;

  final statusFile = File('.spectra/AGENTS.json');
  if (statusFile.existsSync()) {
    statusFile.deleteSync();
  }
  final runtimeFile = File('.spectra/RUNTIME.json');
  if (runtimeFile.existsSync()) {
    runtimeFile.deleteSync();
  }

  logger.info('Orchestrator stopped.');
}