mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 13:17:55 -05:00
Added setup for dev ops and configured prompts
This commit is contained in:
@@ -3,7 +3,8 @@ ROLES = {
|
||||
'product_owner': ['project_description', 'user_stories', 'user_tasks'],
|
||||
'architect': ['architecture'],
|
||||
'tech_lead': ['development_planing'],
|
||||
'full_stack_developer': ['create_scripts', 'coding']
|
||||
'full_stack_developer': ['create_scripts', 'coding'],
|
||||
'dev_ops': ['environment_setup'],
|
||||
}
|
||||
STEPS = [
|
||||
'project_description',
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
from utils.llm import parse_llm_output
|
||||
|
||||
def process_user_stories(stories):
|
||||
return stories
|
||||
return stories, None
|
||||
|
||||
def process_user_tasks(tasks):
|
||||
return tasks
|
||||
return tasks, None
|
||||
|
||||
def process_os_technologies(technologies):
|
||||
return technologies, None
|
||||
|
||||
def run_commands(commands):
|
||||
return commands, None
|
||||
|
||||
def return_array_from_prompt(name_plural, name_singular, return_var_name):
|
||||
return {
|
||||
@@ -42,4 +48,40 @@ USER_TASKS = {
|
||||
'functions': {
|
||||
'process_user_tasks': process_user_tasks
|
||||
},
|
||||
}
|
||||
|
||||
RUN_COMMAND = {
|
||||
'definitions': [
|
||||
|
||||
],
|
||||
'functions': {
|
||||
'run_command': parse_llm_output
|
||||
},
|
||||
}
|
||||
|
||||
FILTER_OS_TECHNOLOGIES = {
|
||||
'definitions': [
|
||||
return_array_from_prompt('os specific technologies', 'os specific technology', 'technologies')
|
||||
],
|
||||
'functions': {
|
||||
'process_os_specific_technologies': process_os_technologies
|
||||
},
|
||||
}
|
||||
|
||||
INSTALL_TECH = {
|
||||
'definitions': [
|
||||
return_array_from_prompt('os specific technologies', 'os specific technology', 'technologies')
|
||||
],
|
||||
'functions': {
|
||||
'process_os_specific_technologies': process_os_technologies
|
||||
},
|
||||
}
|
||||
|
||||
COMMANDS_TO_RUN = {
|
||||
'definitions': [
|
||||
return_array_from_prompt('commands', 'command', 'commands')
|
||||
],
|
||||
'functions': {
|
||||
'process_commands': run_commands
|
||||
},
|
||||
}
|
||||
@@ -11,6 +11,8 @@ from steps.user_stories.user_stories import get_user_stories
|
||||
from steps.user_tasks.user_tasks import get_user_tasks
|
||||
from steps.architecture.architecture import get_architecture
|
||||
|
||||
from flow.development import start_development
|
||||
|
||||
|
||||
def init():
|
||||
load_dotenv()
|
||||
@@ -33,4 +35,4 @@ if __name__ == "__main__":
|
||||
|
||||
architecture, architecture_messages = get_architecture(high_level_summary, user_stories, user_tasks, args)
|
||||
|
||||
# development
|
||||
start_development(user_stories, user_tasks, architecture, args)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
I ran the command `npm start` and for this response from CLI:
|
||||
I ran the command `{{ command }}` and for this response from CLI:
|
||||
```
|
||||
{{ cli_response }}
|
||||
```
|
||||
|
||||
@@ -1 +1 @@
|
||||
Ok, let's install {{ technology }} on my machine. You will tell me a command that I need to run and I will tell you the output I got. Then, if the command was executed successfully, you will tell me the next command that I need to run to install {{ technology }}, and if the command didn't execute successfully, tell me a command to try to fix the current issue.
|
||||
Ok, let's install {{ technology }} on my machine. You will tell me commands that I need to run and I will tell you the output I got. Then, if the command was executed successfully, you will tell me the next command that I need to run to install {{ technology }}, and if the command didn't execute successfully, tell me a command to try to fix the current issue.
|
||||
Reference in New Issue
Block a user