{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/var\/www\/scripts\/pipeline\/generators\/__init__.py",
"old_string": " \"run_critique_round\",\n \"revise_content\",\n]",
"new_string": " \"run_critique_round\",\n \"revise_content\",\n \"check_formatting\",\n \"check_order_formatting\",\n \"extract_rules\",\n]"
}
}
{
"tool_response": {
"filePath": "\/var\/www\/scripts\/pipeline\/generators\/__init__.py",
"oldString": " \"run_critique_round\",\n \"revise_content\",\n]",
"newString": " \"run_critique_round\",\n \"revise_content\",\n \"check_formatting\",\n \"check_order_formatting\",\n \"extract_rules\",\n]",
"originalFile": "\"\"\"\nGenerators Module - Content Generation for KI-System.\n\nSplit from generate.py for better maintainability (SRP).\n\"\"\"\n\nfrom .config_loader import (\n get_author_profile,\n get_config_item,\n get_contract,\n get_order,\n get_prompt,\n get_structure,\n)\nfrom .content_generator import build_generation_prompt, call_llm, generate_content\nfrom .critic import get_critic, revise_content, run_critic, run_critique_round\nfrom .format_checker import check_formatting, check_order_formatting, extract_rules\nfrom .persistence import save_sources, save_version, update_order_status\nfrom .rag_context import get_rag_context, get_semantic_context, get_taxonomy_context\nfrom .utils import repair_json\n\n__all__ = [\n \"repair_json\",\n \"get_rag_context\",\n \"get_semantic_context\",\n \"get_taxonomy_context\",\n \"get_prompt\",\n \"get_config_item\",\n \"get_author_profile\",\n \"get_contract\",\n \"get_structure\",\n \"get_order\",\n \"build_generation_prompt\",\n \"call_llm\",\n \"generate_content\",\n \"save_version\",\n \"save_sources\",\n \"update_order_status\",\n \"get_critic\",\n \"run_critic\",\n \"run_critique_round\",\n \"revise_content\",\n]\n",
"structuredPatch": [
{
"oldStart": 40,
"oldLines": 4,
"newStart": 40,
"newLines": 7,
"lines": [
" \"run_critic\",",
" \"run_critique_round\",",
" \"revise_content\",",
"+ \"check_formatting\",",
"+ \"check_order_formatting\",",
"+ \"extract_rules\",",
" ]"
]
}
],
"userModified": false,
"replaceAll": false
}
}