Merge pull request #288 from Pythagora-io/exit

expansion prints
This commit is contained in:
LeonOstrez
2023-11-02 13:01:57 +00:00
committed by GitHub
3 changed files with 5 additions and 0 deletions

View File

@@ -8,10 +8,12 @@ MESSAGE_TYPE = {
'run_command': 'run_command', # Command to run server needed for extension only
'project_folder_name': 'project_folder_name', # Project folder name for extension only
'button': 'button', # Button text for extension only
'exit': 'exit', # Exit message to let extension know we are done
}
LOCAL_IGNORE_MESSAGE_TYPES = [
'info',
'project_folder_name',
'button',
'exit',
]

View File

@@ -466,6 +466,7 @@ class Developer(Agent):
user_input = ''
while user_input.lower() != 'done':
print('done', type='button')
user_input = styled_text(self.project, 'Please set up your local environment so that the technologies listed can be utilized. When you\'re done, write "DONE"')
save_progress(self.project.args['app_id'], self.project.current_step, {
"os_specific_technologies": [], "newly_installed_technologies": [], "app_data": generate_app_data(self.project.args)

View File

@@ -85,3 +85,5 @@ def exit_gpt_pilot(project, ask_feedback=True):
ask_to_store_prompt(project, path_id)
ask_user_feedback(project, path_id, ask_feedback)
print('Exit', type='exit')