Skip to content

Commit 7a75eca

Browse files
jefcodercforge42
authored andcommitted
version 2.0.1
1 parent 8c0c39d commit 7a75eca

File tree

309 files changed

+1772
-714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+1772
-714
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [2.0.0] - 2025-01-15
6+
- initial release
7+
8+
## [2.0.1] - 2025-02-08
9+
### Added
10+
- Added integration of SurfAi agent for browser automation as a default tool
11+
- Improved the logging system.
12+
- Refactored the core code in `code_agent.py`.
13+
- Updated the prompt with more effective instructions for code generation.
14+
- Modified the parameters passed between various functions to a dynamic dictionary, allowing data transfer in the flow even between non-sequential functions.
15+
- Added the `<finalAnswerDataLog>` tag for data extraction and writing in memory logs, enhancing the management of more complex tasks.
16+
- General improvements in error handling.

Dockerfile

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,55 @@
1-
# Dockerfile
21
FROM python:3.11-slim
32

4-
# Set environment variables
5-
ENV PYTHONDONTWRITEBYTECODE=1
6-
ENV PYTHONUNBUFFERED=1
7-
8-
# Set work directory
9-
WORKDIR /app
10-
11-
# Install system dependencies for building Python C extensions and for pygraphviz
123
RUN apt-get update && apt-get install -y --no-install-recommends \
134
build-essential \
14-
python3-dev \
15-
graphviz \
16-
libgraphviz-dev \
5+
wget \
6+
ca-certificates \
7+
x11vnc \
8+
xvfb \
9+
fluxbox \
10+
novnc \
11+
websockify \
12+
libnss3 \
13+
libatk1.0-0 \
14+
libatk-bridge2.0-0 \
15+
libcups2 \
16+
libdrm2 \
17+
libxkbcommon0 \
18+
libx11-xcb1 \
19+
libxcb1 \
20+
libxcomposite1 \
21+
libxdamage1 \
22+
libxrandr2 \
23+
libgbm1 \
24+
libasound2 \
25+
libpangocairo-1.0-0 \
26+
xauth \
27+
libgtk-3-0 \
28+
libxcb-xinerama0 \
29+
dbus-x11 \
30+
libxtst6 \
31+
fonts-noto \
32+
x11-apps \
1733
&& rm -rf /var/lib/apt/lists/*
1834

19-
# Copy requirements and install Python dependencies
35+
WORKDIR /app
36+
2037
COPY requirements.txt .
2138
RUN pip install --upgrade pip
2239
RUN pip install --no-cache-dir -r requirements.txt
2340

24-
# Download SpaCy model
41+
RUN playwright install --with-deps
42+
2543
RUN python -m spacy download en_core_web_sm
2644

27-
# Copy the rest of your project
2845
COPY . .
2946

30-
# Expose the port (Flask default)
31-
EXPOSE 5000
47+
EXPOSE 5901 6901 5000
48+
49+
COPY entrypoint.sh /app/entrypoint.sh
50+
RUN chmod +x /app/entrypoint.sh
51+
52+
CMD ["/app/entrypoint.sh"]
53+
3254

33-
# Run the application
34-
CMD ["python", "app.py"]
3555

0 commit comments

Comments
 (0)