{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "findAllProfiles|findAllContracts|findAllStructures",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src",
"output_mode": "content",
"-C": 5,
"-n": true
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-55- $collections = $this->getAvailableCollections();\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-56- $lastSettings = $this->repository->getLastOrderSettings();\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-57-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-58- $this->view('content.new', [\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-59- 'title' => 'Neuer Content-Auftrag',\nsrc\/Controller\/ContentController.php:60: 'profiles' => $this->repository->findAllProfiles(),\nsrc\/Controller\/ContentController.php:61: 'contracts' => $this->repository->findAllContracts(),\nsrc\/Controller\/ContentController.php:62: 'structures' => $this->repository->findAllStructures(),\nsrc\/Controller\/ContentController.php-63- 'models' => ModelConfig::getAll(),\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-64- 'collections' => $collections,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-65- \/\/ Defaults from last order\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-66- 'defaultModel' => $lastSettings['model'],\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-67- 'defaultCollections' => $lastSettings['collections'],\n--\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-90- }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-91-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-92- \/\/ Auto-apply first active contract if none selected\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-93- $contractId = $_POST['contract_id'] ?? null;\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-94- if ($contractId === null || $contractId === '') {\nsrc\/Controller\/ContentController.php:95: $contracts = $this->repository->findAllContracts();\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-96- if ($contracts !== []) {\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-97- $contractId = $contracts[0]['id'];\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-98- }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-99- }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-100-\n--\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-188- }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-189-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-190- $this->view('content.edit', [\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-191- 'title' => 'Auftrag bearbeiten',\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-192- 'order' => $order,\nsrc\/Controller\/ContentController.php:193: 'profiles' => $this->repository->findAllProfiles(),\nsrc\/Controller\/ContentController.php:194: 'contracts' => $this->repository->findAllContracts(),\nsrc\/Controller\/ContentController.php:195: 'structures' => $this->repository->findAllStructures(),\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-196- ]);\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-197- }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-198-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-199- \/**\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php-200- * POST \/content\/{id}\/generate\n--\nsrc\/Domain\/Repository\/ContentRepositoryInterface.php-61- public function findSourcesByOrder(int $orderId): array;\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-62-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-63- \/**\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-64- * @return array<int, array<string, mixed>>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-65- *\/\nsrc\/Domain\/Repository\/ContentRepositoryInterface.php:66: public function findAllProfiles(): array;\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-67-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-68- \/**\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-69- * @return array<int, array<string, mixed>>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-70- *\/\nsrc\/Domain\/Repository\/ContentRepositoryInterface.php:71: public function findAllContracts(): array;\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-72-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-73- \/**\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-74- * @return array<int, array<string, mixed>>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-75- *\/\nsrc\/Domain\/Repository\/ContentRepositoryInterface.php:76: public function findAllStructures(): array;\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-77-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-78- \/**\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-79- * @return array<int, array<string, mixed>>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php-80- *\/\nsrc\/Domain\/Repository\/ContentRepositoryInterface.php-81- public function findAllCritics(): array;\n--\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-244- return $stmt->fetchAll();\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-245- }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-246-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-247- \/\/ ==================== Profiles ====================\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-248-\nsrc\/Infrastructure\/Persistence\/ContentRepository.php:249: public function findAllProfiles(): array\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-250- {\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-251- $stmt = $this->pdo->query(\"\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-252- SELECT id, name, slug, content as config\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-253- FROM content_config\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-254- WHERE type = 'author_profile' AND status = 'active'\n--\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-258- return $stmt->fetchAll();\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-259- }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-260-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-261- \/\/ ==================== Contracts ====================\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-262-\nsrc\/Infrastructure\/Persistence\/ContentRepository.php:263: public function findAllContracts(): array\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-264- {\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-265- $stmt = $this->pdo->query(\"\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-266- SELECT id, name, slug, content as config\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-267- FROM content_config\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-268- WHERE type = 'contract' AND status = 'active'\n--\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-272- return $stmt->fetchAll();\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-273- }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-274-\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-275- \/\/ ==================== Structures ====================\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-276-\nsrc\/Infrastructure\/Persistence\/ContentRepository.php:277: public function findAllStructures(): array\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php-278- {\n\/var\/www\/dev.ca... [TRUNCATED-c6d9d354da936331]",
"numLines": 97
}
}