{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/tmp\/fix_services.py",
"content": "#!\/usr\/bin\/env python3\n\nwith open('\/var\/www\/dev.campus.systemische-tools.de\/src\/services.php', 'r') as f:\n lines = f.readlines()\n\nfor i, line in enumerate(lines):\n if '$c->get(PipelineRepository::class),' in line and i > 380:\n # Replace with both repositories\n indent = ' '\n lines[i] = line.replace(\n '$c->get(PipelineRepository::class),',\n f'$c->get(PipelineConfigRepositoryInterface::class),\\n{indent}$c->get(PipelineStepRepositoryInterface::class),'\n )\n break\n\nwith open('\/var\/www\/dev.campus.systemische-tools.de\/src\/services.php', 'w') as f:\n f.writelines(lines)\n\nprint(\"Done!\")\n"
}
}