mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
Merge branch 'v2' of https://github.com/Pythagora-io/pythagora-v1 into v2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from core.agents.base import BaseAgent
|
||||
from core.agents.response import AgentResponse, ResponseType
|
||||
from core.config.actions import HUMAN_INTERVENTION_QUESTION
|
||||
from core.config.actions import CONTINUE_WHEN_DONE, HUMAN_INTERVENTION_QUESTION
|
||||
|
||||
|
||||
class HumanInput(BaseAgent):
|
||||
@@ -16,8 +16,9 @@ class HumanInput(BaseAgent):
|
||||
async def human_intervention(self, step) -> AgentResponse:
|
||||
description = step["human_intervention_description"]
|
||||
|
||||
await self.send_message(f"## {HUMAN_INTERVENTION_QUESTION}\n\n{description}")
|
||||
await self.ask_question(
|
||||
f"{HUMAN_INTERVENTION_QUESTION} {description}",
|
||||
CONTINUE_WHEN_DONE,
|
||||
buttons={"continue": "Continue"},
|
||||
default="continue",
|
||||
buttons_only=True,
|
||||
|
||||
@@ -365,7 +365,6 @@ class TechLead(RelevantFilesMixin, BaseAgent):
|
||||
"num_epics": len(self.current_state.epics),
|
||||
},
|
||||
)
|
||||
|
||||
return AgentResponse.done(self)
|
||||
|
||||
# TODO - Move to a separate agent for removing mocked data
|
||||
|
||||
@@ -287,8 +287,8 @@ class Troubleshooter(ChatWithBreakdownMixin, IterationPromptMixin, RelevantFiles
|
||||
|
||||
buttons = {
|
||||
"continue": "Everything works",
|
||||
"change": "I want to make a change",
|
||||
"bug": "There is an issue",
|
||||
"change": "I want to make a change",
|
||||
"redo": "Redo task",
|
||||
}
|
||||
|
||||
|
||||
@@ -256,6 +256,7 @@ async def run_pythagora_session(sm: StateManager, ui: UIBase, args: Namespace):
|
||||
}
|
||||
]
|
||||
)
|
||||
await ui.send_front_logs_headers("hardcoded", ["EX / TX", "hardcoded", "working"], "")
|
||||
|
||||
if be_back_logs:
|
||||
await ui.send_back_logs(be_back_logs)
|
||||
@@ -274,7 +275,6 @@ async def run_pythagora_session(sm: StateManager, ui: UIBase, args: Namespace):
|
||||
success = await start_new_project(sm, ui, args)
|
||||
if not success:
|
||||
return False
|
||||
|
||||
return await run_project(sm, ui, args)
|
||||
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ TS_DESCRIBE_ISSUE = "Please describe the issue you found (one at a time) and sha
|
||||
BH_HUMAN_TEST_AGAIN = "Please test the app again."
|
||||
BH_IS_BUG_FIXED = "Is the bug you reported fixed now?"
|
||||
BH_ADDITIONAL_FEEDBACK = "Please add any additional feedback that could help Pythagora solve this bug"
|
||||
HUMAN_INTERVENTION_QUESTION = "I need human intervention:"
|
||||
HUMAN_INTERVENTION_QUESTION = "I need human intervention"
|
||||
CONTINUE_WHEN_DONE = 'When you\'re done, just click "Continue"'
|
||||
RUN_COMMAND = "Can I run command:"
|
||||
DEV_EXECUTE_TASK = "Do you want to execute the above task?"
|
||||
|
||||
Reference in New Issue
Block a user