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

0.2.2 #142

Merged
merged 42 commits into from
Jan 16, 2025
Merged

0.2.2 #142

Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
d611dc0
tackling more morpheus action items
danXyu Dec 11, 2024
e5d7f5c
building out conversations / multiple chats
danXyu Dec 11, 2024
11ca671
support for commands
danXyu Dec 12, 2024
48a0b7b
fix deprecated node modules warnings
danXyu Dec 12, 2024
2794f2c
responsivity, fixing conversations, more styles
danXyu Dec 14, 2024
10de423
Update README.md
lukestokes Dec 19, 2024
e5f8386
Update README.md
lukestokes Dec 19, 2024
7b9dce3
improving chat models
danXyu Dec 23, 2024
76ad774
another large refactor, agent core, dex screener, rugcheck, prep for …
danXyu Dec 30, 2024
fd74a80
significant changes, redesign workflows, integrate one inch config
danXyu Jan 6, 2025
ac9fe0e
halfway finished testing e2e
danXyu Jan 9, 2025
f334d98
finally wrapping up comprehensive e2e testing of all agents post Agen…
danXyu Jan 11, 2025
f1a58b7
remove linters, useless
danXyu Jan 11, 2025
0252a79
enable all except mor claims
danXyu Jan 11, 2025
075e4fb
small fix to command based agents
danXyu Jan 12, 2025
5dfc7bc
caught crypto data agent, better error handling
danXyu Jan 12, 2025
3ed090d
Merge pull request #127 from danXyu/dxy-more-morpheus-improvements-co…
LachsBagel Jan 13, 2025
a73df9f
Merge pull request #131 from lukestokes/patch-3
LachsBagel Jan 13, 2025
3af87a9
Merge pull request #130 from lukestokes/patch-2
LachsBagel Jan 13, 2025
0476e3e
ongoing fontend build debugging
LachsBagel Jan 13, 2025
065c8d9
fix build issues
danXyu Jan 13, 2025
d732ee6
Merge pull request #134 from danXyu/dxy-0.2.2-continued-testing
LachsBagel Jan 13, 2025
6a3d434
fix agent selection styling
danXyu Jan 13, 2025
7bf8467
also fix dca agent and tweet sizzler
danXyu Jan 13, 2025
c982b05
disable news agent
danXyu Jan 13, 2025
02c7828
Merge pull request #135 from danXyu/dxy-fix-agent-selection-styling
LachsBagel Jan 13, 2025
160428f
fixes to dca agent
danXyu Jan 13, 2025
de9ef5a
nit
danXyu Jan 13, 2025
5366e86
Merge pull request #137 from danXyu/dxy-fixes-to-dca-agent
LachsBagel Jan 13, 2025
69b236a
fix step sizes, and for base agent send amount
danXyu Jan 13, 2025
49d2629
Merge pull request #138 from danXyu/dxy-step-size-similar-fix
LachsBagel Jan 13, 2025
58ccf33
better fix for input
danXyu Jan 13, 2025
130143d
nit
danXyu Jan 13, 2025
06b7951
Merge pull request #139 from danXyu/dxy-better-fix-prefix0
LachsBagel Jan 13, 2025
82f46d7
quickfix step size
danXyu Jan 13, 2025
04bc183
Merge pull request #140 from danXyu/dxy-quick-fix-step-size
LachsBagel Jan 13, 2025
9528b5a
check in changes from last night, no luck on swap agent
danXyu Jan 16, 2025
394f0ff
Merge pull request #141 from danXyu/dxy-mor-fixes-rugcheck-token-anal…
LachsBagel Jan 16, 2025
ddaec65
Disable swap agent. Incorrect metamask payloads.
LachsBagel Jan 16, 2025
8d96b4e
updated download link for mac for 0.2.2
LachsBagel Jan 16, 2025
bc4d304
update docs
LachsBagel Jan 16, 2025
6a86eac
update docs
LachsBagel Jan 16, 2025
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
41 changes: 18 additions & 23 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,30 @@ name: Lint

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/checkout@v4
with:
submodules: "recursive"

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install Python linting dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black isort
pip install -r requirements.txt

- name: Run Python linters
run: |
black . --check
isort . --check-only
- name: Install Python linting dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black isort
pip install -r requirements.txt
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Python for AI Agents, JS for UI. Runs in your favorite browser. Made possible by Docker.
Fully Extensible! Add your own agents and have them automatically invoked based on user intent.

**Note:** This repository is meant to act as a sandbox for Smart Agent developers to explore existing agents and to build their own. It is not designed to be a production-ready application or consumer-based product. Please set your expectations accordingly. For additional information about a specific agent, browse to the submodules/moragents_dockers/agents/src/agents/ directory in the repo and view the README file for the agent you are interested in.

![UI 1](images/MORagents-UI.png)

![UI 2](images/gasless-usdc-base-agent.png)
Expand Down Expand Up @@ -52,6 +54,8 @@ Fully Extensible! Add your own agents and have them automatically invoked based
#### Upload a PDF with paperclip icon, then ask questions about the PDF 📄
- "Can you give me a summary?"
- "What's the main point of the document?"
#### Ask about popular tokens and summary reports for tokens 🍿
- "What are the most active tokens on Solana?"

---

Expand All @@ -62,8 +66,8 @@ Fully Extensible! Add your own agents and have them automatically invoked based
#### Steps to Install
1. Download Installer
1. For Mac on Apple Silicon M1, M2, M3, M4 (arm64)
1. Download and run MORagents installer [MORagents021-apple.pkg](https://drive.proton.me/urls/AG19JG17JC#EYS7RDpLVVWK)
> SHA256 b4e7126410561f986ba116af567e7ac05b9eb59e7f1dcbaca3d7cd85b69a30c4 MORagents021-apple.pkg
1. Download and run MORagents installer [MORagents022-apple.pkg](https://drive.proton.me/urls/YA24T6MMT0#iCrO2BCuVZff)
> SHA256 3f51ce7cb5a81903f1cc612901c5c63cacc106e83e14c5ca791ddd6b5e71e883 MORagents022-apple.pkg
2. Wait several minutes for background files to download and then your browser should automatically open to http://localhost:3333
> Note: After installation is complete, the MORagents app icon will bounce for several minutes on your dock, and then stop. This is normal behavior as it's downloading <7GB of files in the background. You can open "Activity Monitor" and in the Network tab see that it's downloading.

Expand Down
6 changes: 3 additions & 3 deletions build_assets/macOS/Packaging_Instructions_macOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ Future usage only requires you to run MORagents from your searchbar.

## Signing
```sh
productsign --sign "Developer ID Installer: Liquid Tensor LLC (ZQN244GMTD)" MORAgentsInstaller.pkg MORagents021-[apple\|intel].pkg
productsign --sign "Developer ID Installer: Liquid Tensor LLC (ZQN244GMTD)" MORAgentsInstaller.pkg MORagents022-apple.pkg
```

## Notarize
```sh
xcrun notarytool submit MORagents021-[apple\|intel].pkg --keychain-profile "NotaryProfile" --wait
xcrun notarytool submit MORagents022-apple.pkg --keychain-profile "NotaryProfile" --wait
```

## Staple
```sh
xcrun stapler staple MORagents021-[apple\|intel].pkg
xcrun stapler staple MORagents022-apple.pkg
```

---
Expand Down
4 changes: 2 additions & 2 deletions build_assets/macOS/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to MORagents v0.2.1 Installer</title>
<title>Welcome to MORagents v0.2.2 Installer</title>
<style>
body {
font-family: Arial, sans-serif;
Expand All @@ -29,7 +29,7 @@
</style>
</head>
<body>
<h1>Welcome to MORagents v0.2.1 Installer</h1>
<h1>Welcome to MORagents v0.2.2 Installer</h1>
<p>
Thank you for choosing to install MORagents on your system. This installer
will guide you through the process of setting up MORagents and its
Expand Down
20 changes: 12 additions & 8 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@

class AgentDockerConfig:
MACOS_APPLE_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:apple-0.2.1",
"lachsbagel/moragents_dockers-agents:apple-0.2.1",
"lachsbagel/moragents_dockers-nginx:apple-0.2.2",
"lachsbagel/moragents_dockers-agents:apple-0.2.2",
]
MACOS_INTEL_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:amd64-0.2.1",
"lachsbagel/moragents_dockers-agents:amd64-0.2.1",
"lachsbagel/moragents_dockers-nginx:amd64-0.2.2",
"lachsbagel/moragents_dockers-agents:amd64-0.2.2",
]
WINDOWS_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:amd64-0.2.1",
"lachsbagel/moragents_dockers-agents:amd64-0.2.1",
"lachsbagel/moragents_dockers-nginx:amd64-0.2.2",
"lachsbagel/moragents_dockers-agents:amd64-0.2.2",
]
LINUX_IMAGE_NAMES = [ # TODO, may need linux specific tagged images
"lachsbagel/moragents_dockers-nginx:amd64-0.2.1",
"lachsbagel/moragents_dockers-agents:amd64-0.2.1",
"lachsbagel/moragents_dockers-nginx:amd64-0.2.2",
"lachsbagel/moragents_dockers-agents:amd64-0.2.2",
]

@staticmethod
Expand Down Expand Up @@ -65,4 +65,8 @@ class AgentDockerConfigDeprecate:
"lachsbagel/moragents_dockers-agents:apple-0.2.0",
"lachsbagel/moragents_dockers-nginx:amd64-0.2.0",
"lachsbagel/moragents_dockers-agents:amd64-0.2.0",
"lachsbagel/moragents_dockers-nginx:apple-0.2.1",
"lachsbagel/moragents_dockers-agents:apple-0.2.1",
"lachsbagel/moragents_dockers-nginx:amd64-0.2.1",
"lachsbagel/moragents_dockers-agents:amd64-0.2.1"
]
Binary file modified images/MORagents-UI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions submodules/moragents_dockers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Docker compose will build and run two containers. One will be for the agents, th
```sh
docker-compose up
```
2. For Apple silicon (M1, M2, M3, etc)
2. For Apple silicon (M1, M2, M3, M4, etc)
```sh
docker-compose -f docker-compose-apple.yml up
docker compose -f docker-compose-apple.yml up
```

Open in the browser: `http://localhost:3333/`
Expand Down
22 changes: 22 additions & 0 deletions submodules/moragents_dockers/agents/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,28 @@
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir --upgrade -r requirements.txt

# Chrome installation for Debian Bullseye
RUN apt-get update && apt-get install -y \
wget \
gnupg2 \
apt-transport-https \
ca-certificates \
unzip \
xvfb \
libnss3 \
libxss1 \
libasound2 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libgbm1
Comment on lines +17 to +29

Check failure

Code scanning / Trivy

&#39;apt-get&#39; missing &#39;--no-install-recommends&#39; High

Artifact: submodules/moragents_dockers/agents/Dockerfile
Type: dockerfile
Vulnerability DS029
Severity: HIGH
Message: '--no-install-recommends' flag is missed: 'apt-get update && apt-get install -y wget gnupg2 apt-transport-https ca-certificates unzip xvfb libnss3 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0 libgbm1'
Link: DS029

# Install ChromiumDriver instead of Chrome
RUN apt-get install -y chromium chromium-driver

Check failure

Code scanning / Trivy

&#39;apt-get&#39; missing &#39;--no-install-recommends&#39; High

Artifact: submodules/moragents_dockers/agents/Dockerfile
Type: dockerfile
Vulnerability DS029
Severity: HIGH
Message: '--no-install-recommends' flag is missed: 'apt-get install -y chromium chromium-driver'
Link: DS029

# Set environment variables for Chrome
ENV CHROME_BIN=/usr/bin/chromium
ENV CHROMEDRIVER_BIN=/usr/bin/chromedriver

COPY . .

# Expose the port your application listens on
Expand Down
Loading
Loading