<?php
declare(strict_types=1);
namespace App\Services\Pipeline\Steps;
use App\Services\Compatibility\PackageCompatibilityService; use App\Services\Pipeline\AbstractPipelineStep;
final class CompatibilityPipelineStep extends AbstractPipelineStep {
 public function code():string{return 'compatibility';} public function label():string{return 'Compatibility Engine';} public function order():int{return 30;}
 public function execute(array $c):array {$r=(new PackageCompatibilityService())->evaluatePackageFile((string)$c['zip_path'],$c['package_id'],$c['user_id'],false);$d=(string)($r['decision']??'INCOMPATIBLE');return $this->result($d,(int)($r['score']??0),'Compatibility Engine : '.$d.'.',(array)($r['issues']??[]),(array)($r['warnings']??[]),['report'=>$r],$d==='INCOMPATIBLE');}
}
