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

postfix #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Binary file added __pycache__/agent_loader.cpython-311.pyc
Binary file not shown.
Binary file added __pycache__/agent_operator.cpython-311.pyc
Binary file not shown.
Binary file added __pycache__/cards.cpython-311.pyc
Binary file not shown.
Binary file added __pycache__/email_client.cpython-311.pyc
Binary file not shown.
Binary file added __pycache__/gpt.cpython-311.pyc
Binary file not shown.
Binary file added __pycache__/pdf2text.cpython-311.pyc
Binary file not shown.
Binary file added __pycache__/shortcode.cpython-311.pyc
Binary file not shown.
Empty file modified agent_loader.py
100644 → 100755
Empty file.
Empty file modified agent_operator.py
100644 → 100755
Empty file.
30 changes: 15 additions & 15 deletions agents/agents.json
100644 → 100755

Large diffs are not rendered by default.

Empty file modified agents/new_agent_files/1.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/10.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/11.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/12.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/13.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/14.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/15.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/2.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/3.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/4.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/5.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/6.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/7.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/8.txt
100644 → 100755
Empty file.
Empty file modified agents/new_agent_files/9.txt
100644 → 100755
Empty file.
Empty file modified agents/pics/0bdb90f6-d2c8-408b-abdd-cb724d5ba6ba.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/19a4d6db-9148-499e-848a-9c4bcd9b6b38.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/1acb636e-2ce8-4d70-8e1d-18609e8626bb.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/243455ab-eb20-427a-9343-0a813cb3d759.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/37f2c50d-205c-4f65-ae38-f6b8c6565e58.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/3ce264f2-8d98-4b10-b65d-0f01ce8fc43e.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/451da327-6b04-4f98-8208-4f249ef11aaf.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/5a8b5285-68ff-419f-84dc-440774a58cf8.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/6b251dd9-b336-4ce4-8002-0c7e079f2bc6.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/6eb2b0a6-7a4d-4ada-8399-1b13fdbdb4a2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/7b32abaa-e75b-4f22-bc67-082db025dece.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/7f606e2f-4d21-4a9b-bffb-fb59fbc95322.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/81770a8a-78fc-40da-a21d-8f49eccf7f35.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/977e7696-f898-4da3-b295-88936db01028.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/9ce541fa-6ccd-4938-93ad-e29405b520fc.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/a6b2d3bf-0daf-4383-8984-ad990429c374.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/cover_photo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/edd4c5d5-d993-4735-984c-f6ee4ad2f96b.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/f9d75dff-f3ae-49c7-9d15-9f21acc5f9f4.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/pics/ffb03fc9-8ae5-4b08-8a8d-446986030e0a.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified agents/temp_agents.json
100644 → 100755
Empty file.
Binary file added api_state.pkl
Binary file not shown.
Empty file modified cards.py
100644 → 100755
Empty file.
Empty file modified contribute.md
100644 → 100755
Empty file.
874 changes: 874 additions & 0 deletions email_client-api.py

Large diffs are not rendered by default.

242 changes: 242 additions & 0 deletions email_client.log

Large diffs are not rendered by default.

418 changes: 218 additions & 200 deletions email_client.py
100644 → 100755

Large diffs are not rendered by default.

Empty file modified error-response-email.txt
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions gpt.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import time
import openai
openai.api_base = 'http://127.0.0.1:5000/v1'
#https://api.openai.com/v1
import tiktoken
import re
import pickle
Expand Down
Empty file modified instructions.json
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions main.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import json
import os
import subprocess
from dotenv import load_dotenv
import os

load_dotenv()

from email_client import EmailClient
from gpt import GPTModel
Expand Down
Empty file modified pdf2text.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion processed_threads.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"1771693114718505586": {"nums": {"5": {"processed": true}}, "metadata": {"subject": "atlas: what's the purpose of graph data?", "timestamp": "2023-07-17 18:23:28", "sender": "Sean McDonald <[email protected]>", "receiver": "Dev Agent <[email protected]>", "in_reply_to": "", "references": ""}}, "<CA+n7KzBegnS0+QdnKx3xG1ZVmQxVy8jDFFPYfhXSXnBxbZrO=w@mail.gmail.com>": {"nums": {"b'2254'": {"processed": true}}, "metadata": {"subject": "test", "timestamp": "2024-02-08 23:25:48", "sender": "Sean McDonald <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<CA+n7KzBegnS0+QdnKx3xG1ZVmQxVy8jDFFPYfhXSXnBxbZrO=w@mail.gmail.com>"}}, "<CA+n7KzDjWMbBsr_Htwn_ypmX6YH-M4AAQszYE5dbVHLuEKtfBQ@mail.gmail.com>": {"nums": {"b'2255'": {"processed": true}}, "metadata": {"subject": "joke", "timestamp": "2024-02-09 00:07:57", "sender": "Sean McDonald <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<CA+n7KzDjWMbBsr_Htwn_ypmX6YH-M4AAQszYE5dbVHLuEKtfBQ@mail.gmail.com>"}}}
{"1771693114718505586": {"nums": {"5": {"processed": true}}, "metadata": {"subject": "atlas: what's the purpose of graph data?", "timestamp": "2023-07-17 18:23:28", "sender": "Sean McDonald <[email protected]>", "receiver": "Dev Agent <[email protected]>", "in_reply_to": "", "references": ""}}, "<CA+n7KzBegnS0+QdnKx3xG1ZVmQxVy8jDFFPYfhXSXnBxbZrO=w@mail.gmail.com>": {"nums": {"b'2254'": {"processed": true}}, "metadata": {"subject": "test", "timestamp": "2024-02-08 23:25:48", "sender": "Sean McDonald <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<CA+n7KzBegnS0+QdnKx3xG1ZVmQxVy8jDFFPYfhXSXnBxbZrO=w@mail.gmail.com>"}}, "<CA+n7KzDjWMbBsr_Htwn_ypmX6YH-M4AAQszYE5dbVHLuEKtfBQ@mail.gmail.com>": {"nums": {"b'2255'": {"processed": true}}, "metadata": {"subject": "joke", "timestamp": "2024-02-09 00:07:57", "sender": "Sean McDonald <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<CA+n7KzDjWMbBsr_Htwn_ypmX6YH-M4AAQszYE5dbVHLuEKtfBQ@mail.gmail.com>"}}, "<[email protected]>": {"nums": {"b'37'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 10:42:03", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'41'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 11:02:40", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'47'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 11:26:18", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'50'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 11:40:24", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "": {"nums": {"b'49'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 11:40:24", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": ""}}, "<[email protected]>": {"nums": {"b'51'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 12:36:28", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'53'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 12:48:37", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'54'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 12:55:07", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'55'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 12:57:59", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'56'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 13:02:58", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'58'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 13:17:27", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'65'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 13:57:48", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'66'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:00:32", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'67'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:20:39", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'68'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:23:12", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'69'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:25:52", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'70'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:31:23", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'71'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:35:15", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'73'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:43:04", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'74'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:45:58", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}, "<[email protected]>": {"nums": {"b'77'": {"processed": true}}, "metadata": {"subject": "Test Email", "timestamp": "2024-02-24 14:49:22", "sender": "root <[email protected]>", "receiver": "", "in_reply_to": "", "references": "<[email protected]>"}}}
Empty file modified shortcode.py
100644 → 100755
Empty file.
Empty file modified start-config.json
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions start.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import os
import subprocess
import openai
openai.api_base = 'http://127.0.0.1:5000/v1'
import json
import argparse
from dotenv import load_dotenv
import os

load_dotenv()

from tools import update_team

Expand Down
Empty file modified static/content.json
100644 → 100755
Empty file.
Empty file modified static/favicon.ico
100644 → 100755
Empty file.
Empty file modified static/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/logos/atat-board-art.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/logos/atat-board-basic.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/logos/atat-board.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/logos/atat-glyph.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/logos/atat-wide-trans.png
100644 → 100755
Empty file modified static/logos/atat-wide-white-trans.png
100644 → 100755
Empty file modified static/logos/atat.png
100644 → 100755
Empty file modified static/logos/email-example-1.png
100644 → 100755
Empty file modified static/logos/email-example-2.png
100644 → 100755
Empty file modified static/logos/sl-logo-art-square.png
100644 → 100755
Empty file modified static/logos/sl-logo-black-square.png
100644 → 100755
Empty file modified static/logos/sl-logo-white-wide-trans.png
100644 → 100755
Empty file modified static/logos/sl-logo-wide-black.png
100644 → 100755
Empty file modified static/logos/sl-logo-wide-trans.png
100644 → 100755
Empty file modified static/logos/sl-trans-glyph.png
100644 → 100755
Empty file modified static/main.css
100644 → 100755
Empty file.
Empty file modified templates/index.html
100644 → 100755
Empty file.
Empty file modified templates/readme.html
100644 → 100755
Empty file.
40 changes: 40 additions & 0 deletions test_email.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import imaplib
import getpass

# IMAP server details
IMAP_SERVER = 'localhost'
IMAP_PORT = 993

# User credentials
USERNAME = 'emailuser'
PASSWORD = '1234'
#getpass.getpass('Enter your password: ')

# Connect to the IMAP server
imap_server = imaplib.IMAP4_SSL(IMAP_SERVER, IMAP_PORT)

# Log in
try:
imap_server.login(USERNAME, PASSWORD)
print("Logged in successfully.")
except imaplib.IMAP4.error as e:
print(f"Login failed: {e}")
exit(1)

# Select the INBOX
status, messages = imap_server.select('INBOX')
if status != 'OK':
print(f"Failed to select INBOX: {messages}")
imap_server.logout()
exit(1)

# Search for unseen emails
status, response = imap_server.search(None, 'UNSEEN')
if status != 'OK':
print(f"Failed to search for unseen emails: {response}")
else:
unseen_emails = response[0].split()
print(f"Found {len(unseen_emails)} unseen emails.")

# Log out
imap_server.logout()
5 changes: 5 additions & 0 deletions thread-reconciler.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
from datetime import datetime
from email.utils import parsedate_to_datetime

from dotenv import load_dotenv
import os

load_dotenv()

print("Script started.")

# Fetch IMAP server details from environment variables
Expand Down
Empty file modified tools/__init__.py
100644 → 100755
Empty file.
Binary file added tools/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file added tools/__pycache__/update_team.cpython-311.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions tools/render_agents.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import argparse
import shutil
import openai
openai.api_base = 'http://127.0.0.1:5000/v1'
import requests

domain_name = os.environ.get('DOMAIN_NAME', 'semantic-life.com')
Expand Down
Empty file modified tools/testing_emails.md
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions tools/thread-reconciler.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
from datetime import datetime
from email.utils import parsedate_to_datetime

from dotenv import load_dotenv
import os

load_dotenv()

print("Script started.")

# Fetch IMAP server details from environment variables
Expand Down
Empty file modified tools/tuple-finder.py
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions tools/update_content.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
import json
import os
import openai
openai.api_base = 'http://127.0.0.1:5000/v1'
import re
import argparse

from dotenv import load_dotenv
import os

load_dotenv()

openai.api_key = os.getenv("OPENAI_API_KEY")
company_name = os.environ['COMPANY_NAME']

Expand Down
4 changes: 4 additions & 0 deletions tools/update_team.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import os
import openai
openai.api_base = 'http://127.0.0.1:5000/v1'
import glob
import time
from dotenv import load_dotenv
import os

load_dotenv()
# Load environment variables
openai.api_key = os.getenv("OPENAI_API_KEY")
company_name = os.getenv("COMPANY_NAME", "Your Default Company Name")
Expand Down
Empty file modified tools/vars_tester.py
100644 → 100755
Empty file.