{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "function execute|public function execute",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/Api\/TaskController.php",
"output_mode": "content",
"-A": 25
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "288: public function executeAI(string $id): void\n289- {\n290- $this->requireCsrf();\n291-\n292- try {\n293- $input = $this->getJsonInput();\n294-\n295- $result = $this->executeAIUseCase->execute((int) $id, $input);\n296-\n297- $this->json([\n298- 'success' => true,\n299- 'data' => $result->toArray(),\n300- ]);\n301- } catch (\\InvalidArgumentException $e) {\n302- $this->json(['success' => false, 'error' => $e->getMessage()], 400);\n303- } catch (\\RuntimeException $e) {\n304- $this->json(['success' => false, 'error' => $e->getMessage()], 503);\n305- } catch (\\Exception $e) {\n306- $this->jsonError($e->getMessage());\n307- }\n308- }\n309-\n310- public function statistics(): void\n311- {\n312- try {\n313- $taskStats = $this->getTasksUseCase->getStatistics();",
"numLines": 26
}
}