We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2734e36 commit df61e3cCopy full SHA for df61e3c
core/agents/orchestrator.py
@@ -117,7 +117,13 @@ async def run(self) -> bool:
117
return True
118
119
async def install_dependencies(self):
120
- # Check if node_modules directory exists
+ # First check if package.json exists
121
+ package_json_path = os.path.join(self.state_manager.get_full_project_root(), "package.json")
122
+ if not os.path.exists(package_json_path):
123
+ # Skip if no package.json found
124
+ return
125
+
126
+ # Then check if node_modules directory exists
127
node_modules_path = os.path.join(self.state_manager.get_full_project_root(), "node_modules")
128
if not os.path.exists(node_modules_path):
129
await self.send_message("Installing project dependencies...")
0 commit comments