mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
Remove unused code
This commit is contained in:
@@ -151,13 +151,9 @@ class Orchestrator(BaseAgent, GitMixin):
|
||||
log.debug(f"Agent {agent.__class__.__name__} returned")
|
||||
if agent.agent_type == "spec-writer":
|
||||
await self.ui.send_project_root(self.state_manager.get_full_project_root())
|
||||
# self.executor = Executor(self.state_manager, self.ui)
|
||||
continue
|
||||
|
||||
if (
|
||||
response.type == ResponseType.CREATE_SPECIFICATION
|
||||
or response.type == ResponseType.DONE_WITH_SPECIFICATION
|
||||
):
|
||||
if response.type == ResponseType.CREATE_SPECIFICATION:
|
||||
continue
|
||||
|
||||
# TODO: rollback changes to "next" so they aren't accidentally committed?
|
||||
|
||||
@@ -63,7 +63,6 @@ class SpecWriter(BaseAgent):
|
||||
|
||||
await self.ui.send_project_stage({"stage": ProjectStage.PROJECT_DESCRIPTION})
|
||||
|
||||
# if self.state_manager.user_options is not None and not self.state_manager.user_options.get("project_description", ""):
|
||||
user_description = await self.ask_question(
|
||||
"Please describe the app you want to build.",
|
||||
allow_empty=False,
|
||||
@@ -99,7 +98,6 @@ class SpecWriter(BaseAgent):
|
||||
|
||||
self.next_state.knowledge_base.user_options["original_description"] = description
|
||||
self.next_state.knowledge_base.user_options["project_description"] = llm_assisted_description
|
||||
# await self.state_manager.commit()
|
||||
return AgentResponse.done(self)
|
||||
|
||||
async def change_spec(self) -> AgentResponse:
|
||||
|
||||
@@ -110,9 +110,7 @@ class StateManager:
|
||||
|
||||
project = await Project.rename(self.current_session, id, project_name, new_dir_name)
|
||||
|
||||
# self.project.name = project.name
|
||||
# self.project.folder_name = project.folder_name
|
||||
self.project = project # ???
|
||||
self.project = project
|
||||
|
||||
def get_unique_folder_name(self, current_dir: str, folder_name: str) -> str:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user