<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class RecalculateIntelligence extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'intelligence:recalculate';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Recalculate AI-powered production intelligence and predictive risks';

    /**
     * Execute the console command.
     */
    public function handle(\App\Services\IntelligenceEngineService $engine)
    {
        $this->info('Starting intelligence recalculation...');
        
        $engine->recalculateAll();
        
        $this->info('Recalculation complete!');
    }
}
