Skip to content

Commit

Permalink
Merge branch 'stitionai:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nalaso authored Mar 30, 2024
2 parents 51eb0a6 + d230541 commit 4b7516a
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
7 changes: 7 additions & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Roadmap

- [ ] Create an extensive testing suite for all [Agents](https://github.com/stitionai/devika/tree/main/src/agents).
- [ ] Catch down on all runtime errors and prepare for Project Devika stable release.
- [ ] Document and implement easy cross-platform installation/setup scripts and packages.
- [ ] Create tutorial videos on the installation steps, setup, and usage for Windows, Linux, and MacOS.
- [ ] Focusing on the Claude 3 Opus model, test Devika on the [SWE-Bench](https://www.swebench.com/) benchmarks.
2 changes: 2 additions & 0 deletions src/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,5 +364,7 @@ def execute(self, prompt: str, project_name_from_user: str = None, web_search: s

self.coder.save_code_to_project(code, project_name)

ProjectManager().add_message_from_devika(project_name, "I have completed the coding task. You can now run the project.")

AgentState().set_agent_active(project_name, False)
AgentState().set_agent_completed(project_name, True)
9 changes: 7 additions & 2 deletions src/browser/browser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from playwright.sync_api import sync_playwright
from playwright.sync_api import sync_playwright, TimeoutError
from markdownify import markdownify as md
from pdfminer.high_level import extract_text

Expand All @@ -18,7 +18,12 @@ def new_page(self):
return self.browser.new_page()

def go_to(self, url):
self.page.goto(url)
try:
self.page.goto(url, timeout=30000)
except TimeoutError as e:
print(f"TimeoutError: {e} when trying to navigate to {url}")
return False
return True

def screenshot(self, project_name):
screenshots_save_path = Config().get_screenshots_dir()
Expand Down

0 comments on commit 4b7516a

Please sign in to comment.