факит

This commit is contained in:
Mikan
2025-06-02 16:43:01 +03:00
parent 4f10dd93c5
commit 6ede1ca15f
13 changed files with 720 additions and 17 deletions

View File

@@ -99,13 +99,17 @@ def run_workflow():
ai_response = ai_interface.analyze_project(user_prompt, full_context)
log(f"AI response: {ai_response}")
# Шаг 5: Генерация плана модификации
command_generator = CommandGenerator()
modifications = ai_response.get("modifications", [])
modification_plan = command_generator.generate_commands(modifications)
ai_response = ai_interface.get_modifications(user_prompt, full_context)
log(f"AI response: {ai_response}")
# # Шаг 5: Генерация плана модификации
# command_generator = CommandGenerator()
# modifications = ai_response.get("modifications", [])
# modification_plan = command_generator.generate_commands(modifications)
with open("modification_plan.md", "w", encoding="utf-8") as f:
f.write(modification_plan)
f.write(ai_response["response"])
log(f"Generated modification plan:\n{modification_plan}")
# log(f"Generated modification plan:\n{modification_plan}")
log("ReactDev workflow completed.")