{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "cd \/var\/www\/dev.campus.systemische-tools.de && php -r \"\nrequire 'vendor\/autoload.php';\nuse Symfony\\Component\\Yaml\\Yaml;\n\n\\$yaml = file_get_contents('config\/profiles\/cary-web.yaml');\n\\$data = Yaml::parse(\\$yaml);\n\\$json = json_encode(\\$data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);\n\n\/\/ Connect to database\n\\$env = parse_ini_file('.env');\n\\$pdo = new PDO('mysql:host=localhost;dbname=ki_content;charset=utf8mb4', 'root', \\$env['MARIADB_ROOT_PASSWORD']);\n\n\/\/ Update the profile\n\\$stmt = \\$pdo->prepare('UPDATE content_config SET content = ?, version = \\\"1.1\\\" WHERE name = \\\"Cary Web\\\" AND type = \\\"author_profile\\\"');\n\\$result = \\$stmt->execute([\\$json]);\necho \\$result ? 'Profile updated successfully' : 'Update failed';\necho PHP_EOL;\n\"",
"description": "Update Cary Web profile in database"
}
}
{
"tool_response": {
"stdout": "Profile updated successfully",
"stderr": "",
"interrupted": false,
"isImage": false
}
}