{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": ".\/venv\/bin\/python -c \"\nimport mysql.connector\nconn = mysql.connector.connect(host='localhost', database='ki_content', user='root', password='v8mFLmkF2fth_r')\ncursor = conn.cursor()\ncursor.execute('SET FOREIGN_KEY_CHECKS=0')\n\ntables = [\n 'chunk_entities', 'entity_relations', 'document_entities', 'entities',\n 'chunk_semantics', 'chunk_taxonomy', 'generated_questions', 'section_knowledge',\n 'document_pages', 'document_sections', 'chunks', 'documents'\n]\n\nfor t in tables:\n try:\n cursor.execute(f'TRUNCATE TABLE {t}')\n print(f'Truncated {t}')\n except Exception as e:\n print(f'Failed {t}: {e}')\n\ncursor.execute('SET FOREIGN_KEY_CHECKS=1')\nconn.commit()\nconn.close()\nprint('Done')\n\"",
"description": "Reset all pipeline tables"
}
}
{
"tool_response": {
"stdout": "Truncated chunk_entities\nTruncated entity_relations\nTruncated document_entities\nTruncated entities\nTruncated chunk_semantics\nTruncated chunk_taxonomy\nTruncated generated_questions\nTruncated section_knowledge\nTruncated document_pages\nTruncated document_sections\nTruncated chunks\nTruncated documents\nDone",
"stderr": "",
"interrupted": false,
"isImage": false
}
}