diff --git a/euclid/helpers/Project.py b/euclid/helpers/Project.py index 8c778b3..9f3343a 100644 --- a/euclid/helpers/Project.py +++ b/euclid/helpers/Project.py @@ -122,7 +122,7 @@ class Project: .execute()) def get_full_file_path(self, file_path, file_name): - file_path = file_path.replace('./', '', 1).rstrip(file_name) + file_path = file_path.replace('./', '', 1).rsplit(file_name, 1)[0] if file_path.endswith('/'): file_path = file_path.rstrip('/') diff --git a/euclid/helpers/agents/ProductOwner.py b/euclid/helpers/agents/ProductOwner.py index b4fe137..96badba 100644 --- a/euclid/helpers/agents/ProductOwner.py +++ b/euclid/helpers/agents/ProductOwner.py @@ -44,8 +44,7 @@ class ProductOwner(Agent): generate_messages_from_description(main_prompt, self.project.args['app_type'], self.project.args['name'])) high_level_summary = convo_project_description.send_message('utils/summary.prompt', - {'conversation': '\n'.join( - [f"{msg['role']}: {msg['content']}" for msg in high_level_messages])}) + {'conversation': '\n'.join([f"{msg['role']}: {msg['content']}" for msg in high_level_messages])}) save_progress(self.project.args['app_id'], self.project.current_step, { "prompt": main_prompt, diff --git a/euclid/prompts/prompts.py b/euclid/prompts/prompts.py index d17a045..0b1826f 100644 --- a/euclid/prompts/prompts.py +++ b/euclid/prompts/prompts.py @@ -12,6 +12,7 @@ from logger.logger import logger def ask_for_app_type(): + return 'app' answer = styled_select( "What type of app do you want to build?", choices=common.APP_TYPES