{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "author_profile|getAuthorProfile|getStylePrompt",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ChatController.php",
"output_mode": "content",
"-n": true
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "59: $authorProfiles = $this->getAuthorProfiles();\n106: $authorProfileId = $this->validateAuthorProfileId((int) ($_POST['author_profile_id'] ?? $session['author_profile_id'] ?? 0));\n113: $currentProfileId = (int) ($session['author_profile_id'] ?? 0);\n138: $stylePrompt = $this->getStylePromptFromProfile($authorProfileId);\n356: private function getAuthorProfiles(): array\n358: $stmt = $this->db->query('SELECT id, name, slug, config FROM author_profiles WHERE is_active = 1 ORDER BY id');\n366: private function getAuthorProfile(int $profileId): ?array\n368: $profiles = $this->getAuthorProfiles();\n412: start_microtime, end_microtime, author_profile_id, system_prompt_id, collections, context_limit)\n528: $profile = $this->getAuthorProfile($profileId);\n554: private function getStylePromptFromProfile(int $profileId): ?string\n560: $profile = $this->getAuthorProfile($profileId);\n607: $stmt = $this->db->prepare('UPDATE chat_sessions SET model = ?, collections = ?, context_limit = ?, author_profile_id = ?, temperature = ?, max_tokens = ? WHERE id = ?');",
"numLines": 13
}
}