{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "function statistics",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/Api\/TaskController.php",
"output_mode": "content",
"-A": 20
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "392: public function statistics(): void\n393- {\n394- try {\n395- $taskStats = $this->getTasksUseCase->getStatistics();\n396-\n397- $tokenStats = $this->resultRepository->getTokenStatistics();\n398- $modelUsage = $this->resultRepository->getModelUsage();\n399-\n400- $this->json([\n401- 'success' => true,\n402- 'data' => [\n403- 'tasks' => $taskStats,\n404- 'tokens' => $tokenStats,\n405- 'models' => $modelUsage,\n406- ],\n407- ]);\n408- } catch (\\Exception $e) {\n409- error_log(sprintf('[API.Task.statistics] %s: %s', get_class($e), $e->getMessage()));\n410- $this->jsonError($e->getMessage());\n411- }\n412- }",
"numLines": 21
}
}