{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "head -30 \/opt\/scripts\/pipeline\/pipeline.py",
"description": "Check pipeline imports"
}
}
{
"tool_response": {
"stdout": "#!\/usr\/bin\/env python3\n\"\"\"\nKI-System Document Pipeline\nMain orchestration script for document processing.\n\nUsage:\n python pipeline.py scan # Scan for new documents\n python pipeline.py process # Process queued documents\n python pipeline.py embed # Embed pending chunks\n python pipeline.py all # Full pipeline run\n python pipeline.py file <path> # Process single file\n\"\"\"\n\nimport json\nimport os\nimport sys\nimport time\nfrom pathlib import Path\n\nfrom analyze import analyze_document\nfrom chunk import chunk_by_structure\nfrom config import MAX_RETRIES, RETRY_BACKOFF_BASE\nfrom db import db\nfrom detect import queue_files, scan_directory\nfrom embed import embed_chunks, embed_pending_chunks\nfrom extract import extract, get_full_text\n\n\ndef process_file(file_path):\n \"\"\"Process a single file through the pipeline.\"\"\"",
"stderr": "",
"interrupted": false,
"isImage": false
}
}