{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": ".\/venv\/bin\/python << 'EOF'\nimport sys\nimport json\nsys.path.insert(0, '\/var\/www\/scripts\/pipeline')\nfrom config import get_db_password\nimport mysql.connector\n\nconn = mysql.connector.connect(host='localhost', database='ki_content', user='root', password=get_db_password())\ncursor = conn.cursor(dictionary=True)\n\n# 1. Update Formatierungsprüfer fokus\ncursor.execute(\"SELECT content FROM content_config WHERE id = 33\")\ncritic = cursor.fetchone()\nconfig = json.loads(critic['content'])\n\n# Add Gedankenstrich rule to fokus\nnew_rule = \"Gedankenstrich-Verbot: Keine Gedankenstriche (– oder —) im Text, nur Bindestrich (-)\"\nif new_rule not in config['fokus']:\n config['fokus'].append(new_rule)\n \n new_content = json.dumps(config, ensure_ascii=False)\n cursor.execute(\"UPDATE content_config SET content = %s, updated_at = NOW() WHERE id = 33\", (new_content,))\n conn.commit()\n print(\"✓ Formatierungsprüfer (ID 33): Gedankenstrich-Verbot zum Fokus hinzugefügt\")\n print()\n print(\"Neuer Fokus:\")\n for f in config['fokus']:\n print(f\" - {f}\")\n\n# 2. Update Cary LinkedIn profile - add grammatik_und_satzbau\ncursor.execute(\"SELECT content FROM content_config WHERE id = 28\")\nprofile = cursor.fetchone()\nprofile_config = json.loads(profile['content'])\n\nif 'grammatik_und_satzbau' not in profile_config:\n profile_config['grammatik_und_satzbau'] = {\n \"saetze\": \"vollstaendig grammatikalisch korrekt\",\n \"rhythmus\": \"ruhig mit variierenden satzlaengen\", \n \"stakkato\": \"ausgeschlossen\",\n \"einschuebe\": \"keine\",\n \"gedankenstriche\": \"verboten\"\n }\n \n new_content = json.dumps(profile_config, ensure_ascii=False)\n cursor.execute(\"UPDATE content_config SET content = %s, updated_at = NOW() WHERE id = 28\", (new_content,))\n conn.commit()\n print()\n print(\"✓ Cary LinkedIn (ID 28): grammatik_und_satzbau Sektion hinzugefügt\")\n\ncursor.close()\nconn.close()\nEOF\n",
"description": "Fix critic fokus in database"
}
}
{
"tool_response": {
"stdout": "✓ Formatierungsprüfer (ID 33): Gedankenstrich-Verbot zum Fokus hinzugefügt\n\nNeuer Fokus:\n - Emoji-Verbot: Keine Emojis im Text (auch nicht für Listen)\n - Hashtag-Verbot: Keine Hashtags am Ende\n - Markdown-Verbot: Keine Fettschrift, Kursiv oder andere Formatierung\n - Listen-Format: Nur - (Bindestrich) für Aufzählungen\n - Ausrufezeichen: Sparsam, Punkt bevorzugen\n - Gedankenstrich-Verbot: Keine Gedankenstriche (– oder —) im Text, nur Bindestrich (-)\n\n✓ Cary LinkedIn (ID 28): grammatik_und_satzbau Sektion hinzugefügt",
"stderr": "",
"interrupted": false,
"isImage": false
}
}