Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonOstrez committed Aug 6, 2024
1 parent 82411d8 commit 32ec266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions core/agents/spec_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ async def initialize_spec(self) -> AgentResponse:
if len(user_description) < ANALYZE_THRESHOLD and complexity != Complexity.SIMPLE:
initial_spec = await self.analyze_spec(user_description)
reviewed_spec = await self.review_spec(desc=user_description, spec=initial_spec)
else:
initial_spec = reviewed_spec = user_description

self.next_state.specification = self.current_state.specification.clone()
self.next_state.specification.original_description = user_description
Expand Down
7 changes: 4 additions & 3 deletions core/templates/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

from .javascript_react import JavascriptReactProjectTemplate
from .node_express_mongoose import NodeExpressMongooseProjectTemplate
from .react_express import ReactExpressProjectTemplate

# from .react_express import ReactExpressProjectTemplate

log = get_logger(__name__)

Expand All @@ -14,11 +15,11 @@ class ProjectTemplateEnum(str, Enum):

JAVASCRIPT_REACT = JavascriptReactProjectTemplate.name
NODE_EXPRESS_MONGOOSE = NodeExpressMongooseProjectTemplate.name
REACT_EXPRESS = ReactExpressProjectTemplate.name
# REACT_EXPRESS = ReactExpressProjectTemplate.name


PROJECT_TEMPLATES = {
JavascriptReactProjectTemplate.name: JavascriptReactProjectTemplate,
NodeExpressMongooseProjectTemplate.name: NodeExpressMongooseProjectTemplate,
ReactExpressProjectTemplate.name: ReactExpressProjectTemplate,
# ReactExpressProjectTemplate.name: ReactExpressProjectTemplate,
}

0 comments on commit 32ec266

Please sign in to comment.