{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "php -r '\nrequire \"vendor\/autoload.php\";\n\n\/\/ Create container\n$container = new \\Framework\\Container();\nrequire \"src\/boot.php\";\n\necho \"Starting scan...\\n\";\n$start = microtime(true);\n\ntry {\n $useCase = $container->get(\\UseCases\\CodeAnalysis\\GetCodeAnalysisUseCase::class);\n $result = $useCase->runScan(\"cli-test\");\n $duration = round(microtime(true) - $start, 2);\n echo \"SUCCESS in {$duration}s:\\n\";\n print_r($result);\n} catch (Throwable $e) {\n echo \"ERROR: \" . $e->getMessage() . \"\\n\";\n echo \"File: \" . $e->getFile() . \":\" . $e->getLine() . \"\\n\";\n echo substr($e->getTraceAsString(), 0, 2000) . \"\\n\";\n}\n' 2>&1",
"timeout": 180000,
"description": "Run scan with proper container"
}
}