{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "PYTHONUNBUFFERED=1 .\/venv\/bin\/python -c \"\nfrom pipeline import process_document\nfrom db import db\n\ndb.connect()\n\ndoc_path = '\/var\/www\/nextcloud\/data\/root\/files\/Documents\/demo.pdf'\nprint(f'Processing: {doc_path}')\n\ndoc_id = process_document(doc_path)\nprint(f'Document ID: {doc_id}')\n\n# Check results\ncursor = db.execute('SELECT COUNT(*) as cnt FROM chunks WHERE document_id = %s', (doc_id,))\nchunks = cursor.fetchone()['cnt']\ncursor.close()\n\nprint(f'Chunks: {chunks}')\ndb.disconnect()\n\"",
"timeout": 120000,
"description": "Process demo.pdf"
}
}