{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Content\/GenerateContentUseCase.php",
"offset": 35,
"limit": 30
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Content\/GenerateContentUseCase.php",
"content": " \/**\n * Start async content generation (returns immediately)\n *\/\n public function generateAsync(int $orderId, string $model, string $collection, int $contextLimit): bool\n {\n $scriptPath = $this->pipelinePath . '\/web_generate.py';\n $logPath = '\/tmp\/content_gen_' . $orderId . '.log';\n\n $cmd = sprintf(\n 'nohup %s %s generate %d %s %s %d > %s 2>&1 &',\n escapeshellarg($this->pythonPath),\n escapeshellarg($scriptPath),\n $orderId,\n escapeshellarg($model),\n escapeshellarg($collection),\n $contextLimit,\n escapeshellarg($logPath)\n );\n\n exec($cmd); \/\/ nosemgrep: exec-use\n\n return true;\n }\n\n \/**\n * Run critique on a version\n *\/\n public function critique(int $versionId, string $model): ContentGenerationResult\n {\n $result = $this->callPython('critique', $versionId, [$model]);",
"numLines": 30,
"startLine": 35,
"totalLines": 140
}
}
}