факит
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user