{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/AI\/AIClientInterface.php",
"old_string": "<?php\n\nnamespace Infrastructure\\AI;\n\ninterface AIClientInterface",
"new_string": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Infrastructure\\AI;\n\n\/\/ @responsibility: Schnittstelle für AI-Clients (Ollama, Claude)\n\ninterface AIClientInterface"
}
}
{
"tool_response": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/AI\/AIClientInterface.php",
"oldString": "<?php\n\nnamespace Infrastructure\\AI;\n\ninterface AIClientInterface",
"newString": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Infrastructure\\AI;\n\n\/\/ @responsibility: Schnittstelle für AI-Clients (Ollama, Claude)\n\ninterface AIClientInterface",
"originalFile": "<?php\n\nnamespace Infrastructure\\AI;\n\ninterface AIClientInterface\n{\n public function execute(string $prompt, array $options = []): AIResponse;\n\n public function isAvailable(): bool;\n\n public function getClientName(): string;\n\n public function getModelName(): string;\n}\n",
"structuredPatch": [
{
"oldStart": 1,
"oldLines": 7,
"newStart": 1,
"newLines": 11,
"lines": [
" <?php",
" ",
"+declare(strict_types=1);",
"+",
" namespace Infrastructure\\AI;",
" ",
"+\/\/ @responsibility: Schnittstelle für AI-Clients (Ollama, Claude)",
"+",
" interface AIClientInterface",
" {",
" public function execute(string $prompt, array $options = []): AIResponse;"
]
}
],
"userModified": false,
"replaceAll": false
}
}