Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev -> Main v0.0.9 #890

Merged
merged 101 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
e7026c3
first commit
Aryan-Singh-14 Jul 11, 2023
898c75f
instagram APIs implemented and AI generated caption utility added
Aryan-Singh-14 Jul 13, 2023
fce5808
Image upload to S3 and URL generation added
Aryan-Singh-14 Jul 14, 2023
ac457a5
added upload to s3 instagram bucket
Aryan-Singh-14 Jul 18, 2023
0ab34be
Merge branch 'dev' into instagram_tool
Aryan-Singh-14 Jul 18, 2023
59a95ed
fixing the send email attachement issue
Jul 18, 2023
35b5bc4
fixing schedule agent run
Jul 18, 2023
2551e8f
Refactored code
Aryan-Singh-14 Jul 19, 2023
281753f
Resource duplicate fix (#803)
luciferlinx101 Jul 19, 2023
6f3deb4
removed jpeg files used for testing
Aryan-Singh-14 Jul 19, 2023
c697937
Dalle fix (#812)
Tarraann Jul 19, 2023
2889187
fixed recurring run issues
Aryan-Singh-14 Jul 20, 2023
9f0a78d
Supercoder Improve tool addition (#755)
Autocop-Agent Jul 20, 2023
e37014e
fixed recurring issues
Aryan-Singh-14 Jul 20, 2023
0937ba5
Edit agent templates (#793)
anisha1607 Jul 20, 2023
ded659c
Readme added
Aryan-Singh-14 Jul 20, 2023
3708a30
instabot config folder deleted
Aryan-Singh-14 Jul 20, 2023
cdf3495
Read file s3 fix (#823)
luciferlinx101 Jul 20, 2023
0bb6000
refactored code
Aryan-Singh-14 Jul 20, 2023
1218fd6
Handled the case where stable diffusion generated multiple photos
Aryan-Singh-14 Jul 21, 2023
37bab8d
ui bug bash fixes
jedan2506 Jul 21, 2023
2607db3
docker compose.yaml version reverted to original
Aryan-Singh-14 Jul 21, 2023
9f6c045
removed the utility to add stable diffusion automatically
Aryan-Singh-14 Jul 21, 2023
e2dbae1
ui bug bash fixes
jedan2506 Jul 21, 2023
873a049
ui bug bash fixes
jedan2506 Jul 21, 2023
167c4bf
Edit agent templates fix (#838)
anisha1607 Jul 21, 2023
c76c453
ui bug bash fixes
jedan2506 Jul 21, 2023
8415dbe
Merge pull request #837 from TransformerOptimus/bugs_revamp_dev
nborthy Jul 21, 2023
b6587bf
added test cases and modified readme
Aryan-Singh-14 Jul 25, 2023
6595b1a
Frontend bugs (#849)
nborthy Jul 25, 2023
58355d3
Added instagram tool bucket entry in config_template.yaml
Aryan-Singh-14 Jul 25, 2023
bb0304f
added instagram tool bucket entry in config template
Aryan-Singh-14 Jul 25, 2023
e2c01bc
ui bug fixes
jedan2506 Jul 25, 2023
dab5ab7
Merge pull request #828 from TransformerOptimus/instagram_tool
Aryan-Singh-14 Jul 25, 2023
e57b8bc
ui bug fixes
jedan2506 Jul 25, 2023
802eeb1
ui bug fixes
jedan2506 Jul 25, 2023
de8189e
Merge pull request #853 from TransformerOptimus/apm_changes
nborthy Jul 25, 2023
1ea8d16
External repo support for marketplace (#847)
luciferlinx101 Jul 25, 2023
bddffb5
instagram image added
jedan2506 Jul 25, 2023
e3291fb
Merge pull request #856 from TransformerOptimus/instagram_pictures
nborthy Jul 25, 2023
84b593c
apm bug fixes
jedan2506 Jul 25, 2023
4b202ba
Dev rebase (#858)
nihiragarwal24 Jul 25, 2023
eca6e6d
apm bug fixes
jedan2506 Jul 25, 2023
8eeaca4
apm bug fixes
jedan2506 Jul 25, 2023
6392966
Merge pull request #859 from TransformerOptimus/instagram_pictures
nborthy Jul 25, 2023
97c5ee9
Docker image (#836)
Fluder-Paradyne Jul 25, 2023
b638d37
handled resource path change (#861)
Aryan-Singh-14 Jul 26, 2023
fdadbf0
Updated Expiry Time backward fix
luciferlinx101 Jul 26, 2023
a2d8e5e
Merge pull request #864 from TransformerOptimus/jwt-expiry-backward-fix
nborthy Jul 26, 2023
e105b2e
readme toolkit fix (#867)
luciferlinx101 Jul 26, 2023
d9c942f
Knowledge frontend (#860)
nborthy Jul 26, 2023
800bb30
Fixed Delete Agent Bug (#830)
anisha1607 Jul 26, 2023
20dfa29
close button fix
NishantBorthakur Jul 26, 2023
73fff67
Merge branch 'dev_fixes' of github.com:TransformerOptimus/SuperAGI in…
jedan2506 Jul 26, 2023
3fea732
refactor
NishantBorthakur Jul 26, 2023
799417e
centralise prevent default
NishantBorthakur Jul 26, 2023
b124288
Merge branch 'dev_fixes' of github.com:TransformerOptimus/SuperAGI in…
jedan2506 Jul 26, 2023
0ebd563
app.css fixes
jedan2506 Jul 26, 2023
c1f9ab9
Dev fixes (#869)
jedan2506 Jul 26, 2023
9973567
close icon issue
NishantBorthakur Jul 26, 2023
5707bdb
resolving conflcits
NishantBorthakur Jul 26, 2023
f74b781
Merge pull request #872 from TransformerOptimus/dev_fixes
nborthy Jul 26, 2023
ae6e620
Added tools.json (#868)
luciferlinx101 Jul 26, 2023
030e886
Updated Chat completion for tool selection prompt
luciferlinx101 Jul 26, 2023
9326e6c
Updated Prompt
luciferlinx101 Jul 26, 2023
32e31c0
Bug fixes afternoon (#875)
jedan2506 Jul 26, 2023
6eeb7f6
Docker image (#876)
Fluder-Paradyne Jul 26, 2023
b798985
Final knowledge backend (#870)
Tarraann Jul 26, 2023
caad111
very minor fix for naming
Jul 26, 2023
98ee15a
Merge pull request #877 from TransformerOptimus/minor_fix_knowledge
Tarraann Jul 26, 2023
4356fbc
Changes for HTTP EXception in Knowledge Controller
Jul 27, 2023
73efa91
HTTP changes for vector_dbs
Jul 27, 2023
db80c8c
Bug fixes afternoon (#878)
jedan2506 Jul 27, 2023
4c06c1d
Refactoring of vector embedding
Jul 27, 2023
f149e9b
adding of knowledge logo
namansleeps2 Jul 27, 2023
75930b2
Delete HTTP fixed
Jul 27, 2023
2d52781
Merge remote-tracking branch 'origin/knowledge_logo' into http_knowledge
Jul 27, 2023
a876859
Updated prompt
luciferlinx101 Jul 27, 2023
a59a1b6
changes in tests
Jul 27, 2023
d6bf83c
changes
Jul 27, 2023
7bc8e81
Merge pull request #882 from TransformerOptimus/prompt-fix
Jul 27, 2023
5085269
changes
Jul 27, 2023
129e00d
args fix in dalle
Jul 27, 2023
4672c07
bug fix
luciferlinx101 Jul 27, 2023
79928cb
Merge pull request #884 from TransformerOptimus/prompt-fix
Tarraann Jul 27, 2023
2fe3f0d
Merge remote-tracking branch 'origin/dev' into dalle_args_fix
Jul 27, 2023
1de727f
minor change
Jul 27, 2023
e440d63
Merge pull request #883 from TransformerOptimus/dalle_args_fix
Tarraann Jul 27, 2023
d80920e
Merge pull request #881 from TransformerOptimus/http_knowledge
Tarraann Jul 27, 2023
edec2f5
minor changes
namansleeps2 Jul 27, 2023
6a0df87
Merge pull request #885 from TransformerOptimus/knowledge_changes
Tarraann Jul 27, 2023
b901801
fixes (#886)
Tarraann Jul 27, 2023
98312be
the user will now be unable to select striked knowledges
namansleeps2 Jul 27, 2023
a1f2abe
minor fix
namansleeps2 Jul 27, 2023
bb27d3f
Merge pull request #888 from TransformerOptimus/minor_changes_launch
namansleeps Jul 27, 2023
a16526d
Fix for agent details - not fetching data
Jul 27, 2023
08d8ba1
minor change for details
Jul 27, 2023
7dfbe3a
Fixes
Jul 27, 2023
bb308fc
Merge pull request #889 from TransformerOptimus/agent_detail_fix
anisha1607 Jul 27, 2023
de12454
conflict resolved
luciferlinx101 Jul 27, 2023
d978a6a
Merge pull request #892 from TransformerOptimus/conflict-resolve-dev
nborthy Jul 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
venv/
gui/
# Ignore everything
**

# Allow files and directories
!/migrations
!/nginx
!/superagi
!/tgwui
!/tools
!/workspace
!/main.py
!/requirements.txt
!/entrypoint.sh
!/entrypoint_celery.sh
!/wait-for-it.sh
!/tools.json
!/install_tool_dependencies.sh
!/alembic.ini
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ workspace/output
workspace/input
celerybeat-schedule
../bfg-report*
superagi/tools/marketplace_tools/
superagi/tools/external_tools/
tests/unit_tests/resource_manager/test_path
tools.json
38 changes: 28 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
FROM python:3.9
# Stage 1: Compile image
FROM python:3.10-slim-bullseye AS compile-image
WORKDIR /app
COPY requirements.txt .

#RUN apt-get update && apt-get install --no-install-recommends -y git wget libpq-dev gcc python3-dev && pip install psycopg2
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get update && \
apt-get install --no-install-recommends -y wget libpq-dev gcc g++ python3-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt

COPY . .
COPY config.yaml ./config.yaml
COPY entrypoint.sh ./entrypoint.sh
COPY wait-for-it.sh ./wait-for-it.sh
RUN chmod +x ./entrypoint.sh ./wait-for-it.sh

CMD ["./wait-for-it.sh", "super__postgres:5432","-t","60","--","./entrypoint.sh"]
RUN chmod +x ./entrypoint.sh ./wait-for-it.sh ./install_tool_dependencies.sh ./entrypoint_celery.sh

# Stage 2: Build image
FROM python:3.10-slim-bullseye AS build-image
WORKDIR /app

RUN apt-get update && \
apt-get install --no-install-recommends -y libpq-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

COPY --from=compile-image /opt/venv /opt/venv
COPY --from=compile-image /app /app

ENV PATH="/opt/venv/bin:$PATH"
11 changes: 9 additions & 2 deletions DockerfileCelery
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ RUN pip install --upgrade pip
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

WORKDIR /app
COPY . .
COPY config.yaml .

# Downloads the tools
RUN python superagi/tool_manager.py

# Set executable permissions for install_tool_dependencies.sh
RUN chmod +x install_tool_dependencies.sh

# Install dependencies
RUN ./install_tool_dependencies.sh

# Downloads the tools
RUN python superagi/tool_manager.py
Expand Down
1 change: 1 addition & 0 deletions config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RESOURCES_OUTPUT_ROOT_DIR: workspace/output/{agent_id}/{agent_execution_id} # Fo

#S3 RELATED DETAILS ONLY WHEN STORAGE_TYPE IS "S3"
BUCKET_NAME:
INSTAGRAM_TOOL_BUCKET_NAME: #Public read bucket, Images generated by stable diffusion are put in this bucket and the public url of the same is generated.
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:

Expand Down
75 changes: 75 additions & 0 deletions docker-compose.image.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
version: '3.8'
services:
backend:
image: "superagidev/backend:dev"
depends_on:
- super__redis
- super__postgres
networks:
- super_network
env_file:
- config.yaml
command: ["/app/wait-for-it.sh", "super__postgres:5432","-t","60","--","/app/entrypoint.sh"]

celery:
image: "superagidev/backend:dev"
depends_on:
- super__redis
- super__postgres
networks:
- super_network
env_file:
- config.yaml
command: ["/app/entrypoint_celery.sh"]
volumes:
- "./workspace:/app/workspace"

gui:
image: "superagidev/gui:dev"
environment:
- NEXT_PUBLIC_API_BASE_URL=/api
networks:
- super_network

super__redis:
image: "redis/redis-stack-server:latest"
networks:
- super_network
# uncomment to expose redis port to host
# ports:
# - "6379:6379"
volumes:
- redis_data:/data

super__postgres:
image: "docker.io/library/postgres:latest"
environment:
- POSTGRES_USER=superagi
- POSTGRES_PASSWORD=password
- POSTGRES_DB=super_agi_main
volumes:
- superagi_postgres_data:/var/lib/postgresql/data/
networks:
- super_network
# uncomment to expose postgres port to host
# ports:
# - "5432:5432"

proxy:
image: nginx:stable-alpine
ports:
- "3000:80"
networks:
- super_network
depends_on:
- backend
- gui
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf

networks:
super_network:
driver: bridge
volumes:
superagi_postgres_data:
redis_data:
13 changes: 7 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@ services:
- super__postgres
networks:
- super_network
command: ["/app/wait-for-it.sh", "super__postgres:5432","-t","60","--","/app/entrypoint.sh"]
celery:
volumes:
- "./:/app"
- "${EXTERNAL_RESOURCE_DIR:-./workspace}:/app/ext"
build:
context: .
dockerfile: DockerfileCelery
build: .
depends_on:
- super__redis
- super__postgres
networks:
- super_network
command: ["/app/entrypoint_celery.sh"]
gui:
build: ./gui
environment:
- NEXT_PUBLIC_API_BASE_URL=/api
build:
context: ./gui
args:
NEXT_PUBLIC_API_BASE_URL: "/api"
networks:
- super_network
# volumes:
Expand Down
5 changes: 1 addition & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/bash

# Downloads the tools
# Downloads the tools from marketplace and external tool repositories
python superagi/tool_manager.py

# Set executable permissions for install_tool_dependencies.sh
chmod +x install_tool_dependencies.sh

# Install dependencies
./install_tool_dependencies.sh

Expand Down
10 changes: 7 additions & 3 deletions entrypoint_celery.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
Xvfb :0 -screen 0 1280x1024x24 &
x11vnc -display :0 -N -forever -shared &

exec "$@"
# Downloads the tools
python superagi/tool_manager.py

# Install dependencies
./install_tool_dependencies.sh

exec celery -A superagi.worker worker --beat --loglevel=info
15 changes: 13 additions & 2 deletions gui/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
node_modules/
.next/
# Ignore everything
**

# Allow files and directories
!app
!pages
!public
!utils
!package.json
!next.config.js
!package-lock.json
!.eslintrc.json
!jsconfig.json
18 changes: 12 additions & 6 deletions gui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
FROM node:lts AS deps

FROM node:18-alpine AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app

COPY package*.json ./
COPY package.json package-lock.json ./
RUN npm ci

FROM node:lts AS builder
# Rebuild the source code only when needed
FROM node:18-alpine AS builder

WORKDIR /app
COPY . .

COPY --from=deps /app/node_modules ./node_modules

COPY . .
ARG NEXT_PUBLIC_API_BASE_URL=/api
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
EXPOSE 3000

CMD ["npm", "run", "dev"]
40 changes: 36 additions & 4 deletions gui/DockerfileProd
Original file line number Diff line number Diff line change
@@ -1,11 +1,43 @@
FROM node:lts
FROM node:18-alpine AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --only=production

# Rebuild the source code only when needed
FROM node:18-alpine AS builder

WORKDIR /app

COPY package.json .
RUN npm install
COPY --from=deps /app/node_modules ./node_modules

COPY . .
ARG NEXT_PUBLIC_API_BASE_URL=/api
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL

RUN npm run build
CMD ["npm", "run", "start"]

# Production image, copy all the files and run next
FROM node:18-alpine AS runner
WORKDIR /app

ENV NODE_ENV production

RUN addgroup --system --gid 1001 supergroup
RUN adduser --system --uid 1001 superuser

COPY --from=builder /app/public ./public
COPY --from=builder /app/package.json ./package.json

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=superuser:supergroup /app/.next/standalone ./
COPY --from=builder --chown=superuser:supergroup /app/.next/static ./.next/static

USER superuser

EXPOSE 3000

ENV PORT 3000

CMD ["node", "server.js"]
1 change: 1 addition & 0 deletions gui/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
assetPrefix: process.env.NODE_ENV === "production" ? "/" : "./",
output: 'standalone'
};

module.exports = nextConfig;
10 changes: 10 additions & 0 deletions gui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"react-draggable": "^4.4.5",
"react-grid-layout": "^1.3.4",
"react-markdown": "^8.0.7",
"react-spinners": "^0.13.8",
"react-toastify": "^9.1.3"
}
}
Loading