{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "grep -A10 \"add_to_queue\" \/opt\/scripts\/pipeline\/db.py",
"description": "Check add_to_queue function"
}
}
{
"tool_response": {
"stdout": " def add_to_queue(self, file_path, action=\"process\"):\n \"\"\"Add item to pipeline queue.\"\"\"\n cursor = self.execute(\n \"\"\"INSERT INTO pipeline_queue\n (file_path, action, status, retry_count, created_at)\n VALUES (%s, %s, 'pending', 0, NOW())\"\"\",\n (file_path, action),\n )\n self.commit()\n queue_id = cursor.lastrowid\n cursor.close()",
"stderr": "",
"interrupted": false,
"isImage": false
}
}