{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": ".\/venv\/bin\/python -c \"\n# Test syntax and imports of key pipeline files\nimport sys\nimport importlib.util\n\nfiles_to_test = [\n 'detect.py',\n 'extract.py', \n 'embed.py',\n 'pipeline.py',\n 'enrich.py',\n]\n\nprint('Testing key pipeline files...')\nfor f in files_to_test:\n try:\n spec = importlib.util.spec_from_file_location(f.replace('.py',''), f)\n module = importlib.util.module_from_spec(spec)\n # Don't execute, just load\n print(f' {f}: Syntax OK')\n except Exception as e:\n print(f' {f}: ERROR - {e}')\n\nprint('\\\\nDone!')\n\"",
"description": "Test pipeline file syntax"
}
}
{
"tool_response": {
"stdout": "Testing key pipeline files...\n detect.py: Syntax OK\n extract.py: Syntax OK\n embed.py: Syntax OK\n pipeline.py: Syntax OK\n enrich.py: Syntax OK\n\nDone!",
"stderr": "",
"interrupted": false,
"isImage": false
}
}