Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Cleanup

Tomas Valentae0c962a0c84b
diff --git a/.codesandbox/tasks.json b/.codesandbox/tasks.json
deleted file mode 100644
index 0b0362f11..000000000
--- a/.codesandbox/tasks.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "setupTasks": [],
- "tasks": {}
-}
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
deleted file mode 100644
index 0e03adf42..000000000
--- a/.devcontainer/devcontainer.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "image": "mcr.microsoft.com/devcontainers/universal:2",
- "features": {
- "ghcr.io/devcontainers-contrib/features/poetry:2": {
- "version": "latest"
- },
- "ghcr.io/shinepukur/devcontainer-features/vale:1": {
- "version": "latest"
- }
- },
- "customizations": {
- "vscode": {
- "extensions": [
- "dbaeumer.vscode-eslint",
- "ms-python.black-formatter",
- "ms-python.python",
- "ms-python.vscode-pylance",
- "bradlc.vscode-tailwindcss",
- "ChrisChinchilla.vale-vscode"
- ]
- }
- }
-}
\ No newline at end of file
diff --git a/.vale.ini b/.vale.ini
deleted file mode 100644
index f06b749d9..000000000
--- a/.vale.ini
+++ /dev/null
@@ -1,8 +0,0 @@
-StylesPath = vale-styles
-
-MinAlertLevel = suggestion
-
-Packages = Microsoft, proselint, write-good, alex, Readability, Joblint
-
-[*.md]
-BasedOnStyles = Vale, Microsoft, proselint, write-good, alex, Readability, Joblint
\ No newline at end of file
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 37ca5488f..b425f9057 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -5,6 +5,5 @@
"ms-python.vscode-pylance",
"ms-python.python",
"bradlc.vscode-tailwindcss",
- "ChrisChinchilla.vale-vscode"
]
}
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
deleted file mode 100644
index 30361083c..000000000
--- a/.vscode/launch.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "version": "0.2.0",
- "configurations": [
- {
- "name": "Quart: Debug Server",
- "type": "python",
- "request": "launch",
- "module": "quart",
- "args": ["--debug", "run", "--no-reload", "--port", "49155", "--host", "0.0.0.0"],
- "console": "integratedTerminal",
- "cwd": "${workspaceFolder}/api-service"
- }
- ]
-}
diff --git a/.vscode/recommendations.json b/.vscode/recommendations.json
deleted file mode 100644
index 37ca5488f..000000000
--- a/.vscode/recommendations.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "recommendations": [
- "ms-python.black-formatter",
- "dbaeumer.vscode-eslint",
- "ms-python.vscode-pylance",
- "ms-python.python",
- "bradlc.vscode-tailwindcss",
- "ChrisChinchilla.vale-vscode"
- ]
-}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
deleted file mode 100644
index eb7fd539e..000000000
--- a/.vscode/tasks.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "version": "2.0.0",
- "tasks": []
-}
\ No newline at end of file
diff --git a/api-service/cli.py b/api-service/cli.py
deleted file mode 100644
index a4240272f..000000000
--- a/api-service/cli.py
+++ /dev/null
@@ -1,81 +0,0 @@
-import sys
-import importlib
-from fastapi import FastAPI
-from pydantic import BaseModel
-from typing import Callable, Dict, Any
-from uvicorn import run
-
-# Replace the following with the actual implementation of AgentBase class
-from agent.base import (
- AgentBase,
- AgentConfig,
- AgentInteraction,
- AgentInteractionResponse,
- DataType,
-)
-
-app = FastAPI()
-
-agent_instance = None
-
-
[email protected]("/agent", status_code=201)
-def create_agent(config: AgentConfig):
- global agent_instance
- agent_instance = config.create()
- return {"status": "Agent created successfully"}
-
-
[email protected]("/agent/start")
-def start_agent(data: DataType):
- if not agent_instance:
- return {"error": "Agent not created"}
- agent_instance.start(data)
- return {"status": "Agent started successfully"}
-
-
[email protected]("/agent/stop")
-def stop_agent():
- if not agent_instance:
- return {"error": "Agent not created"}
- agent_instance.stop()
- return {"status": "Agent stopped successfully"}
-
-
[email protected]("/agent/interactions")
-def get_interactions():
- if not agent_instance:
- return {"error": "Agent not created"}
- return agent_instance.get_interactions()
-
-
[email protected]("/agent/interaction")
-def interaction(interaction: AgentInteraction) -> AgentInteractionResponse:
- if not agent_instance:
- return {"error": "Agent not created"}
- return agent_instance.interaction(interaction)
-
-
-def main():
- if len(sys.argv) != 3:
- print("Usage: python agent_cli.py <module_name> <class_name>")
- sys.exit(1)
-
- module_name = sys.argv[1]
- class_name = sys.argv[2]
-
- try:
- module = importlib.import_module(module_name)
- agent_class = getattr(module, class_name)
- if not issubclass(agent_class, AgentBase):
- raise ValueError(f"{class_name} is not a subclass of AgentBase")
- except Exception as e:
- print(f"Error: {e}")
- sys.exit(1)
-
- # Start the FastAPI server
- run(app, host="localhost", port=8080)
-
-
-if __name__ == "__main__":
- main()
diff --git a/csb.nix b/csb.nix
deleted file mode 100644
index 2ed1ed2b9..000000000
--- a/csb.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-with import <nixpkgs> {};
-
-stdenv.mkDerivation {
- name = "csb";
- buildInputs = [
- poetry
- jdk11_headless
- ];
- shellHook = ''
- export PATH="$PWD/node_modules/.bin/:$PATH"
- '';
-}
diff --git a/package.json b/package.json
index 55dd1e901..1284f3c48 100644
--- a/package.json
+++ b/package.json
@@ -28,16 +28,14 @@
"stop": "docker compose down && npm run db:stop",
"lint": "next lint",
"lint:fix": "next lint --fix",
- "dev:next:debug": "cross-env NODE_OPTIONS='--inspect' next dev",
- "dev:api-service:debug-without-launch": "npx concurrently -p none \"next dev\" \"npm run start:playground\"",
"db:generate": "prisma generate",
"db:pull": "prisma db pull",
+ "supabase:dump": "supabase db dump -f supabase/migrations/1680452567_name.sql",
"supabase:generate": "supabase gen types typescript --project-id \"ntjfcwpzsxugrykskdgi\" --schema public > db/supabase.ts",
"postinstall": "npm run db:generate",
"db:start": "npx --yes supabase start -x imgproxy,storage-api,studio,inbucket,edge-runtime,logflare,postgres-meta,deno-relay,pgadmin-schema-diff,vector,migra",
"db:stop": "npx --yes supabase stop",
"db:reset": "npx --yes supabase db reset",
- "vale:sync": "vale sync",
"generate:api-client": "openapi-typescript api-service/openapi.json --support-array-length --alphabetize --output api-client/api/schema.gen.ts"
},
"dependencies": {