Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Reorganize repo

Tomas Valenta55560bd09693
diff --git a/.dockerignore b/apps/dashboard/.dockerignore
similarity index 100%
rename from .dockerignore
rename to apps/dashboard/.dockerignore
diff --git a/.env.example b/apps/dashboard/.env.example
similarity index 100%
rename from .env.example
rename to apps/dashboard/.env.example
diff --git a/.eslintrc.js b/apps/dashboard/.eslintrc.js
similarity index 100%
rename from .eslintrc.js
rename to apps/dashboard/.eslintrc.js
diff --git a/.gitignore b/apps/dashboard/.gitignore
similarity index 100%
rename from .gitignore
rename to apps/dashboard/.gitignore
diff --git a/.python-version b/apps/dashboard/.python-version
similarity index 100%
rename from .python-version
rename to apps/dashboard/.python-version
diff --git a/.vercelignore b/apps/dashboard/.vercelignore
similarity index 100%
rename from .vercelignore
rename to apps/dashboard/.vercelignore
diff --git a/Dockerfile b/apps/dashboard/Dockerfile
similarity index 100%
rename from Dockerfile
rename to apps/dashboard/Dockerfile
diff --git a/api-client/api/index.ts b/apps/dashboard/api-client/api/index.ts
similarity index 91%
rename from api-client/api/index.ts
rename to apps/dashboard/api-client/api/index.ts
index 9693f2472..efffc4af1 100644
--- a/api-client/api/index.ts
+++ b/apps/dashboard/api-client/api/index.ts
@@ -2,7 +2,7 @@ import 'cross-fetch/polyfill'
import { Fetcher } from 'openapi-typescript-fetch'
import type { components, paths } from './schema.gen'
-import { localURL } from 'db/credentials'
+import { localURL } from 'apps/dashboard/db/credentials'
export const baseUrl = process.env.NEXT_PUBLIC_PROXY
? `${localURL}/api/service`
diff --git a/api-client/api/schema.gen.ts b/apps/dashboard/api-client/api/schema.gen.ts
similarity index 100%
rename from api-client/api/schema.gen.ts
rename to apps/dashboard/api-client/api/schema.gen.ts
diff --git a/api-service/.dockerignore b/apps/dashboard/api-service/.dockerignore
similarity index 100%
rename from api-service/.dockerignore
rename to apps/dashboard/api-service/.dockerignore
diff --git a/api-service/.gitignore b/apps/dashboard/api-service/.gitignore
similarity index 100%
rename from api-service/.gitignore
rename to apps/dashboard/api-service/.gitignore
diff --git a/api-service/.openapi-generator-ignore b/apps/dashboard/api-service/.openapi-generator-ignore
similarity index 100%
rename from api-service/.openapi-generator-ignore
rename to apps/dashboard/api-service/.openapi-generator-ignore
diff --git a/api-service/.openapi-generator/FILES b/apps/dashboard/api-service/.openapi-generator/FILES
similarity index 100%
rename from api-service/.openapi-generator/FILES
rename to apps/dashboard/api-service/.openapi-generator/FILES
diff --git a/api-service/.openapi-generator/VERSION b/apps/dashboard/api-service/.openapi-generator/VERSION
similarity index 100%
rename from api-service/.openapi-generator/VERSION
rename to apps/dashboard/api-service/.openapi-generator/VERSION
diff --git a/api-service/Dockerfile b/apps/dashboard/api-service/Dockerfile
similarity index 100%
rename from api-service/Dockerfile
rename to apps/dashboard/api-service/Dockerfile
diff --git a/api-service/Makefile b/apps/dashboard/api-service/Makefile
similarity index 100%
rename from api-service/Makefile
rename to apps/dashboard/api-service/Makefile
diff --git a/api-service/agent/__init__.py b/apps/dashboard/api-service/agent/__init__.py
similarity index 100%
rename from api-service/agent/__init__.py
rename to apps/dashboard/api-service/agent/__init__.py
diff --git a/api-service/agent/base.py b/apps/dashboard/api-service/agent/base.py
similarity index 100%
rename from api-service/agent/base.py
rename to apps/dashboard/api-service/agent/base.py
diff --git a/api-service/agent/from_template.py b/apps/dashboard/api-service/agent/from_template.py
similarity index 100%
rename from api-service/agent/from_template.py
rename to apps/dashboard/api-service/agent/from_template.py
diff --git a/api-service/agent/smol_agent.py b/apps/dashboard/api-service/agent/smol_agent.py
similarity index 100%
rename from api-service/agent/smol_agent.py
rename to apps/dashboard/api-service/agent/smol_agent.py
diff --git a/api-service/app.py b/apps/dashboard/api-service/app.py
similarity index 100%
rename from api-service/app.py
rename to apps/dashboard/api-service/app.py
diff --git a/api-service/database/__init__.py b/apps/dashboard/api-service/database/__init__.py
similarity index 100%
rename from api-service/database/__init__.py
rename to apps/dashboard/api-service/database/__init__.py
diff --git a/api-service/database/base.py b/apps/dashboard/api-service/database/base.py
similarity index 100%
rename from api-service/database/base.py
rename to apps/dashboard/api-service/database/base.py
diff --git a/api-service/database/client.py b/apps/dashboard/api-service/database/client.py
similarity index 100%
rename from api-service/database/client.py
rename to apps/dashboard/api-service/database/client.py
diff --git a/api-service/database/database.py b/apps/dashboard/api-service/database/database.py
similarity index 100%
rename from api-service/database/database.py
rename to apps/dashboard/api-service/database/database.py
diff --git a/api-service/deployment/__init__.py b/apps/dashboard/api-service/deployment/__init__.py
similarity index 100%
rename from api-service/deployment/__init__.py
rename to apps/dashboard/api-service/deployment/__init__.py
diff --git a/api-service/deployment/in_memory.py b/apps/dashboard/api-service/deployment/in_memory.py
similarity index 100%
rename from api-service/deployment/in_memory.py
rename to apps/dashboard/api-service/deployment/in_memory.py
diff --git a/api-service/deployment/manager.py b/apps/dashboard/api-service/deployment/manager.py
similarity index 100%
rename from api-service/deployment/manager.py
rename to apps/dashboard/api-service/deployment/manager.py
diff --git a/api-service/deployment/work_queue.py b/apps/dashboard/api-service/deployment/work_queue.py
similarity index 100%
rename from api-service/deployment/work_queue.py
rename to apps/dashboard/api-service/deployment/work_queue.py
diff --git a/api-service/generate.py b/apps/dashboard/api-service/generate.py
similarity index 100%
rename from api-service/generate.py
rename to apps/dashboard/api-service/generate.py
diff --git a/api-service/observability.py b/apps/dashboard/api-service/observability.py
similarity index 100%
rename from api-service/observability.py
rename to apps/dashboard/api-service/observability.py
diff --git a/api-service/openapi.json b/apps/dashboard/api-service/openapi.json
similarity index 100%
rename from api-service/openapi.json
rename to apps/dashboard/api-service/openapi.json
diff --git a/api-service/openapitools.json b/apps/dashboard/api-service/openapitools.json
similarity index 100%
rename from api-service/openapitools.json
rename to apps/dashboard/api-service/openapitools.json
diff --git a/api-service/playground/.gitignore b/apps/dashboard/api-service/playground/.gitignore
similarity index 100%
rename from api-service/playground/.gitignore
rename to apps/dashboard/api-service/playground/.gitignore
diff --git a/api-service/playground/nodemon.json b/apps/dashboard/api-service/playground/nodemon.json
similarity index 100%
rename from api-service/playground/nodemon.json
rename to apps/dashboard/api-service/playground/nodemon.json
diff --git a/api-service/playground/package-lock.json b/apps/dashboard/api-service/playground/package-lock.json
similarity index 100%
rename from api-service/playground/package-lock.json
rename to apps/dashboard/api-service/playground/package-lock.json
diff --git a/api-service/playground/package.json b/apps/dashboard/api-service/playground/package.json
similarity index 100%
rename from api-service/playground/package.json
rename to apps/dashboard/api-service/playground/package.json
diff --git a/api-service/playground/scripts/build.js b/apps/dashboard/api-service/playground/scripts/build.js
similarity index 100%
rename from api-service/playground/scripts/build.js
rename to apps/dashboard/api-service/playground/scripts/build.js
diff --git a/api-service/playground/src/app.ts b/apps/dashboard/api-service/playground/src/app.ts
similarity index 100%
rename from api-service/playground/src/app.ts
rename to apps/dashboard/api-service/playground/src/app.ts
diff --git a/api-service/playground/src/generated/routes.ts b/apps/dashboard/api-service/playground/src/generated/routes.ts
similarity index 100%
rename from api-service/playground/src/generated/routes.ts
rename to apps/dashboard/api-service/playground/src/generated/routes.ts
diff --git a/api-service/playground/src/server.ts b/apps/dashboard/api-service/playground/src/server.ts
similarity index 100%
rename from api-service/playground/src/server.ts
rename to apps/dashboard/api-service/playground/src/server.ts
diff --git a/api-service/playground/src/sessions/filesystemController.ts b/apps/dashboard/api-service/playground/src/sessions/filesystemController.ts
similarity index 100%
rename from api-service/playground/src/sessions/filesystemController.ts
rename to apps/dashboard/api-service/playground/src/sessions/filesystemController.ts
diff --git a/api-service/playground/src/sessions/process.ts b/apps/dashboard/api-service/playground/src/sessions/process.ts
similarity index 100%
rename from api-service/playground/src/sessions/process.ts
rename to apps/dashboard/api-service/playground/src/sessions/process.ts
diff --git a/api-service/playground/src/sessions/processesController.ts b/apps/dashboard/api-service/playground/src/sessions/processesController.ts
similarity index 100%
rename from api-service/playground/src/sessions/processesController.ts
rename to apps/dashboard/api-service/playground/src/sessions/processesController.ts
diff --git a/api-service/playground/src/sessions/session.ts b/apps/dashboard/api-service/playground/src/sessions/session.ts
similarity index 100%
rename from api-service/playground/src/sessions/session.ts
rename to apps/dashboard/api-service/playground/src/sessions/session.ts
diff --git a/api-service/playground/src/sessions/sessionsController.ts b/apps/dashboard/api-service/playground/src/sessions/sessionsController.ts
similarity index 100%
rename from api-service/playground/src/sessions/sessionsController.ts
rename to apps/dashboard/api-service/playground/src/sessions/sessionsController.ts
diff --git a/api-service/playground/swagger.json b/apps/dashboard/api-service/playground/swagger.json
similarity index 100%
rename from api-service/playground/swagger.json
rename to apps/dashboard/api-service/playground/swagger.json
diff --git a/api-service/playground/tsconfig.json b/apps/dashboard/api-service/playground/tsconfig.json
similarity index 100%
rename from api-service/playground/tsconfig.json
rename to apps/dashboard/api-service/playground/tsconfig.json
diff --git a/api-service/playground/tsoa.json b/apps/dashboard/api-service/playground/tsoa.json
similarity index 100%
rename from api-service/playground/tsoa.json
rename to apps/dashboard/api-service/playground/tsoa.json
diff --git a/api-service/playground_client/__init__.py b/apps/dashboard/api-service/playground_client/__init__.py
similarity index 100%
rename from api-service/playground_client/__init__.py
rename to apps/dashboard/api-service/playground_client/__init__.py
diff --git a/api-service/playground_client/api/__init__.py b/apps/dashboard/api-service/playground_client/api/__init__.py
similarity index 100%
rename from api-service/playground_client/api/__init__.py
rename to apps/dashboard/api-service/playground_client/api/__init__.py
diff --git a/api-service/playground_client/api/default_api.py b/apps/dashboard/api-service/playground_client/api/default_api.py
similarity index 100%
rename from api-service/playground_client/api/default_api.py
rename to apps/dashboard/api-service/playground_client/api/default_api.py
diff --git a/api-service/playground_client/api_client.py b/apps/dashboard/api-service/playground_client/api_client.py
similarity index 100%
rename from api-service/playground_client/api_client.py
rename to apps/dashboard/api-service/playground_client/api_client.py
diff --git a/api-service/playground_client/configuration.py b/apps/dashboard/api-service/playground_client/configuration.py
similarity index 100%
rename from api-service/playground_client/configuration.py
rename to apps/dashboard/api-service/playground_client/configuration.py
diff --git a/api-service/playground_client/docs/CreateSessionsRequest.md b/apps/dashboard/api-service/playground_client/docs/CreateSessionsRequest.md
similarity index 100%
rename from api-service/playground_client/docs/CreateSessionsRequest.md
rename to apps/dashboard/api-service/playground_client/docs/CreateSessionsRequest.md
diff --git a/api-service/playground_client/docs/DefaultApi.md b/apps/dashboard/api-service/playground_client/docs/DefaultApi.md
similarity index 100%
rename from api-service/playground_client/docs/DefaultApi.md
rename to apps/dashboard/api-service/playground_client/docs/DefaultApi.md
diff --git a/api-service/playground_client/docs/EntryInfo.md b/apps/dashboard/api-service/playground_client/docs/EntryInfo.md
similarity index 100%
rename from api-service/playground_client/docs/EntryInfo.md
rename to apps/dashboard/api-service/playground_client/docs/EntryInfo.md
diff --git a/api-service/playground_client/docs/ListFilesystemDirResponse.md b/apps/dashboard/api-service/playground_client/docs/ListFilesystemDirResponse.md
similarity index 100%
rename from api-service/playground_client/docs/ListFilesystemDirResponse.md
rename to apps/dashboard/api-service/playground_client/docs/ListFilesystemDirResponse.md
diff --git a/api-service/playground_client/docs/OpenPort.md b/apps/dashboard/api-service/playground_client/docs/OpenPort.md
similarity index 100%
rename from api-service/playground_client/docs/OpenPort.md
rename to apps/dashboard/api-service/playground_client/docs/OpenPort.md
diff --git a/api-service/playground_client/docs/OutStderrResponse.md b/apps/dashboard/api-service/playground_client/docs/OutStderrResponse.md
similarity index 100%
rename from api-service/playground_client/docs/OutStderrResponse.md
rename to apps/dashboard/api-service/playground_client/docs/OutStderrResponse.md
diff --git a/api-service/playground_client/docs/OutStdoutResponse.md b/apps/dashboard/api-service/playground_client/docs/OutStdoutResponse.md
similarity index 100%
rename from api-service/playground_client/docs/OutStdoutResponse.md
rename to apps/dashboard/api-service/playground_client/docs/OutStdoutResponse.md
diff --git a/api-service/playground_client/docs/OutType.md b/apps/dashboard/api-service/playground_client/docs/OutType.md
similarity index 100%
rename from api-service/playground_client/docs/OutType.md
rename to apps/dashboard/api-service/playground_client/docs/OutType.md
diff --git a/api-service/playground_client/docs/OutTypeStderr.md b/apps/dashboard/api-service/playground_client/docs/OutTypeStderr.md
similarity index 100%
rename from api-service/playground_client/docs/OutTypeStderr.md
rename to apps/dashboard/api-service/playground_client/docs/OutTypeStderr.md
diff --git a/api-service/playground_client/docs/OutTypeStdout.md b/apps/dashboard/api-service/playground_client/docs/OutTypeStdout.md
similarity index 100%
rename from api-service/playground_client/docs/OutTypeStdout.md
rename to apps/dashboard/api-service/playground_client/docs/OutTypeStdout.md
diff --git a/api-service/playground_client/docs/ProcessResponse.md b/apps/dashboard/api-service/playground_client/docs/ProcessResponse.md
similarity index 100%
rename from api-service/playground_client/docs/ProcessResponse.md
rename to apps/dashboard/api-service/playground_client/docs/ProcessResponse.md
diff --git a/api-service/playground_client/docs/ReadFilesystemFileResponse.md b/apps/dashboard/api-service/playground_client/docs/ReadFilesystemFileResponse.md
similarity index 100%
rename from api-service/playground_client/docs/ReadFilesystemFileResponse.md
rename to apps/dashboard/api-service/playground_client/docs/ReadFilesystemFileResponse.md
diff --git a/api-service/playground_client/docs/SessionResponse.md b/apps/dashboard/api-service/playground_client/docs/SessionResponse.md
similarity index 100%
rename from api-service/playground_client/docs/SessionResponse.md
rename to apps/dashboard/api-service/playground_client/docs/SessionResponse.md
diff --git a/api-service/playground_client/docs/StartProcessParams.md b/apps/dashboard/api-service/playground_client/docs/StartProcessParams.md
similarity index 100%
rename from api-service/playground_client/docs/StartProcessParams.md
rename to apps/dashboard/api-service/playground_client/docs/StartProcessParams.md
diff --git a/api-service/playground_client/docs/WriteFilesystemFileRequest.md b/apps/dashboard/api-service/playground_client/docs/WriteFilesystemFileRequest.md
similarity index 100%
rename from api-service/playground_client/docs/WriteFilesystemFileRequest.md
rename to apps/dashboard/api-service/playground_client/docs/WriteFilesystemFileRequest.md
diff --git a/api-service/playground_client/docs/WriteProcessStdinRequest.md b/apps/dashboard/api-service/playground_client/docs/WriteProcessStdinRequest.md
similarity index 100%
rename from api-service/playground_client/docs/WriteProcessStdinRequest.md
rename to apps/dashboard/api-service/playground_client/docs/WriteProcessStdinRequest.md
diff --git a/api-service/playground_client/exceptions.py b/apps/dashboard/api-service/playground_client/exceptions.py
similarity index 100%
rename from api-service/playground_client/exceptions.py
rename to apps/dashboard/api-service/playground_client/exceptions.py
diff --git a/api-service/playground_client/models/__init__.py b/apps/dashboard/api-service/playground_client/models/__init__.py
similarity index 100%
rename from api-service/playground_client/models/__init__.py
rename to apps/dashboard/api-service/playground_client/models/__init__.py
diff --git a/api-service/playground_client/models/create_sessions_request.py b/apps/dashboard/api-service/playground_client/models/create_sessions_request.py
similarity index 100%
rename from api-service/playground_client/models/create_sessions_request.py
rename to apps/dashboard/api-service/playground_client/models/create_sessions_request.py
diff --git a/api-service/playground_client/models/entry_info.py b/apps/dashboard/api-service/playground_client/models/entry_info.py
similarity index 100%
rename from api-service/playground_client/models/entry_info.py
rename to apps/dashboard/api-service/playground_client/models/entry_info.py
diff --git a/api-service/playground_client/models/list_filesystem_dir_response.py b/apps/dashboard/api-service/playground_client/models/list_filesystem_dir_response.py
similarity index 100%
rename from api-service/playground_client/models/list_filesystem_dir_response.py
rename to apps/dashboard/api-service/playground_client/models/list_filesystem_dir_response.py
diff --git a/api-service/playground_client/models/open_port.py b/apps/dashboard/api-service/playground_client/models/open_port.py
similarity index 100%
rename from api-service/playground_client/models/open_port.py
rename to apps/dashboard/api-service/playground_client/models/open_port.py
diff --git a/api-service/playground_client/models/out_stderr_response.py b/apps/dashboard/api-service/playground_client/models/out_stderr_response.py
similarity index 100%
rename from api-service/playground_client/models/out_stderr_response.py
rename to apps/dashboard/api-service/playground_client/models/out_stderr_response.py
diff --git a/api-service/playground_client/models/out_stdout_response.py b/apps/dashboard/api-service/playground_client/models/out_stdout_response.py
similarity index 100%
rename from api-service/playground_client/models/out_stdout_response.py
rename to apps/dashboard/api-service/playground_client/models/out_stdout_response.py
diff --git a/api-service/playground_client/models/out_type.py b/apps/dashboard/api-service/playground_client/models/out_type.py
similarity index 100%
rename from api-service/playground_client/models/out_type.py
rename to apps/dashboard/api-service/playground_client/models/out_type.py
diff --git a/api-service/playground_client/models/out_type_stderr.py b/apps/dashboard/api-service/playground_client/models/out_type_stderr.py
similarity index 100%
rename from api-service/playground_client/models/out_type_stderr.py
rename to apps/dashboard/api-service/playground_client/models/out_type_stderr.py
diff --git a/api-service/playground_client/models/out_type_stdout.py b/apps/dashboard/api-service/playground_client/models/out_type_stdout.py
similarity index 100%
rename from api-service/playground_client/models/out_type_stdout.py
rename to apps/dashboard/api-service/playground_client/models/out_type_stdout.py
diff --git a/api-service/playground_client/models/process_response.py b/apps/dashboard/api-service/playground_client/models/process_response.py
similarity index 100%
rename from api-service/playground_client/models/process_response.py
rename to apps/dashboard/api-service/playground_client/models/process_response.py
diff --git a/api-service/playground_client/models/read_filesystem_file_response.py b/apps/dashboard/api-service/playground_client/models/read_filesystem_file_response.py
similarity index 100%
rename from api-service/playground_client/models/read_filesystem_file_response.py
rename to apps/dashboard/api-service/playground_client/models/read_filesystem_file_response.py
diff --git a/api-service/playground_client/models/session_response.py b/apps/dashboard/api-service/playground_client/models/session_response.py
similarity index 100%
rename from api-service/playground_client/models/session_response.py
rename to apps/dashboard/api-service/playground_client/models/session_response.py
diff --git a/api-service/playground_client/models/start_process_params.py b/apps/dashboard/api-service/playground_client/models/start_process_params.py
similarity index 100%
rename from api-service/playground_client/models/start_process_params.py
rename to apps/dashboard/api-service/playground_client/models/start_process_params.py
diff --git a/api-service/playground_client/models/write_filesystem_file_request.py b/apps/dashboard/api-service/playground_client/models/write_filesystem_file_request.py
similarity index 100%
rename from api-service/playground_client/models/write_filesystem_file_request.py
rename to apps/dashboard/api-service/playground_client/models/write_filesystem_file_request.py
diff --git a/api-service/playground_client/models/write_process_stdin_request.py b/apps/dashboard/api-service/playground_client/models/write_process_stdin_request.py
similarity index 100%
rename from api-service/playground_client/models/write_process_stdin_request.py
rename to apps/dashboard/api-service/playground_client/models/write_process_stdin_request.py
diff --git a/api-service/playground_client/rest.py b/apps/dashboard/api-service/playground_client/rest.py
similarity index 100%
rename from api-service/playground_client/rest.py
rename to apps/dashboard/api-service/playground_client/rest.py
diff --git a/api-service/playground_client/test/__init__.py b/apps/dashboard/api-service/playground_client/test/__init__.py
similarity index 100%
rename from api-service/playground_client/test/__init__.py
rename to apps/dashboard/api-service/playground_client/test/__init__.py
diff --git a/api-service/playground_client/test/test_create_sessions_request.py b/apps/dashboard/api-service/playground_client/test/test_create_sessions_request.py
similarity index 100%
rename from api-service/playground_client/test/test_create_sessions_request.py
rename to apps/dashboard/api-service/playground_client/test/test_create_sessions_request.py
diff --git a/api-service/playground_client/test/test_default_api.py b/apps/dashboard/api-service/playground_client/test/test_default_api.py
similarity index 100%
rename from api-service/playground_client/test/test_default_api.py
rename to apps/dashboard/api-service/playground_client/test/test_default_api.py
diff --git a/api-service/playground_client/test/test_entry_info.py b/apps/dashboard/api-service/playground_client/test/test_entry_info.py
similarity index 100%
rename from api-service/playground_client/test/test_entry_info.py
rename to apps/dashboard/api-service/playground_client/test/test_entry_info.py
diff --git a/api-service/playground_client/test/test_list_filesystem_dir_response.py b/apps/dashboard/api-service/playground_client/test/test_list_filesystem_dir_response.py
similarity index 100%
rename from api-service/playground_client/test/test_list_filesystem_dir_response.py
rename to apps/dashboard/api-service/playground_client/test/test_list_filesystem_dir_response.py
diff --git a/api-service/playground_client/test/test_open_port.py b/apps/dashboard/api-service/playground_client/test/test_open_port.py
similarity index 100%
rename from api-service/playground_client/test/test_open_port.py
rename to apps/dashboard/api-service/playground_client/test/test_open_port.py
diff --git a/api-service/playground_client/test/test_out_stderr_response.py b/apps/dashboard/api-service/playground_client/test/test_out_stderr_response.py
similarity index 100%
rename from api-service/playground_client/test/test_out_stderr_response.py
rename to apps/dashboard/api-service/playground_client/test/test_out_stderr_response.py
diff --git a/api-service/playground_client/test/test_out_stdout_response.py b/apps/dashboard/api-service/playground_client/test/test_out_stdout_response.py
similarity index 100%
rename from api-service/playground_client/test/test_out_stdout_response.py
rename to apps/dashboard/api-service/playground_client/test/test_out_stdout_response.py
diff --git a/api-service/playground_client/test/test_out_type.py b/apps/dashboard/api-service/playground_client/test/test_out_type.py
similarity index 100%
rename from api-service/playground_client/test/test_out_type.py
rename to apps/dashboard/api-service/playground_client/test/test_out_type.py
diff --git a/api-service/playground_client/test/test_out_type_stderr.py b/apps/dashboard/api-service/playground_client/test/test_out_type_stderr.py
similarity index 100%
rename from api-service/playground_client/test/test_out_type_stderr.py
rename to apps/dashboard/api-service/playground_client/test/test_out_type_stderr.py
diff --git a/api-service/playground_client/test/test_out_type_stdout.py b/apps/dashboard/api-service/playground_client/test/test_out_type_stdout.py
similarity index 100%
rename from api-service/playground_client/test/test_out_type_stdout.py
rename to apps/dashboard/api-service/playground_client/test/test_out_type_stdout.py
diff --git a/api-service/playground_client/test/test_process_response.py b/apps/dashboard/api-service/playground_client/test/test_process_response.py
similarity index 100%
rename from api-service/playground_client/test/test_process_response.py
rename to apps/dashboard/api-service/playground_client/test/test_process_response.py
diff --git a/api-service/playground_client/test/test_read_filesystem_file_response.py b/apps/dashboard/api-service/playground_client/test/test_read_filesystem_file_response.py
similarity index 100%
rename from api-service/playground_client/test/test_read_filesystem_file_response.py
rename to apps/dashboard/api-service/playground_client/test/test_read_filesystem_file_response.py
diff --git a/api-service/playground_client/test/test_session_response.py b/apps/dashboard/api-service/playground_client/test/test_session_response.py
similarity index 100%
rename from api-service/playground_client/test/test_session_response.py
rename to apps/dashboard/api-service/playground_client/test/test_session_response.py
diff --git a/api-service/playground_client/test/test_start_process_params.py b/apps/dashboard/api-service/playground_client/test/test_start_process_params.py
similarity index 100%
rename from api-service/playground_client/test/test_start_process_params.py
rename to apps/dashboard/api-service/playground_client/test/test_start_process_params.py
diff --git a/api-service/playground_client/test/test_write_filesystem_file_request.py b/apps/dashboard/api-service/playground_client/test/test_write_filesystem_file_request.py
similarity index 100%
rename from api-service/playground_client/test/test_write_filesystem_file_request.py
rename to apps/dashboard/api-service/playground_client/test/test_write_filesystem_file_request.py
diff --git a/api-service/playground_client/test/test_write_process_stdin_request.py b/apps/dashboard/api-service/playground_client/test/test_write_process_stdin_request.py
similarity index 100%
rename from api-service/playground_client/test/test_write_process_stdin_request.py
rename to apps/dashboard/api-service/playground_client/test/test_write_process_stdin_request.py
diff --git a/api-service/playground_client_README.md b/apps/dashboard/api-service/playground_client_README.md
similarity index 100%
rename from api-service/playground_client_README.md
rename to apps/dashboard/api-service/playground_client_README.md
diff --git a/api-service/poetry.lock b/apps/dashboard/api-service/poetry.lock
similarity index 100%
rename from api-service/poetry.lock
rename to apps/dashboard/api-service/poetry.lock
diff --git a/api-service/poetry.toml b/apps/dashboard/api-service/poetry.toml
similarity index 100%
rename from api-service/poetry.toml
rename to apps/dashboard/api-service/poetry.toml
diff --git a/api-service/pyproject.toml b/apps/dashboard/api-service/pyproject.toml
similarity index 100%
rename from api-service/pyproject.toml
rename to apps/dashboard/api-service/pyproject.toml
diff --git a/api-service/session/__init__.py b/apps/dashboard/api-service/session/__init__.py
similarity index 100%
rename from api-service/session/__init__.py
rename to apps/dashboard/api-service/session/__init__.py
diff --git a/api-service/session/env.py b/apps/dashboard/api-service/session/env.py
similarity index 100%
rename from api-service/session/env.py
rename to apps/dashboard/api-service/session/env.py
diff --git a/api-service/session/playground/__init__.py b/apps/dashboard/api-service/session/playground/__init__.py
similarity index 100%
rename from api-service/session/playground/__init__.py
rename to apps/dashboard/api-service/session/playground/__init__.py
diff --git a/api-service/session/playground/base.py b/apps/dashboard/api-service/session/playground/base.py
similarity index 100%
rename from api-service/session/playground/base.py
rename to apps/dashboard/api-service/session/playground/base.py
diff --git a/api-service/session/playground/nodejs.py b/apps/dashboard/api-service/session/playground/nodejs.py
similarity index 100%
rename from api-service/session/playground/nodejs.py
rename to apps/dashboard/api-service/session/playground/nodejs.py
diff --git a/api-service/session/session.py b/apps/dashboard/api-service/session/session.py
similarity index 100%
rename from api-service/session/session.py
rename to apps/dashboard/api-service/session/session.py
diff --git a/api-service/start.sh b/apps/dashboard/api-service/start.sh
similarity index 100%
rename from api-service/start.sh
rename to apps/dashboard/api-service/start.sh
diff --git a/components/AgentChallengeTag.tsx b/apps/dashboard/components/AgentChallengeTag.tsx
similarity index 82%
rename from components/AgentChallengeTag.tsx
rename to apps/dashboard/components/AgentChallengeTag.tsx
index 67d9a07fc..a76c9660c 100644
--- a/components/AgentChallengeTag.tsx
+++ b/apps/dashboard/components/AgentChallengeTag.tsx
@@ -1,5 +1,5 @@
import clsx from 'clsx'
-import { AgentChallengeTag as AgentChallengeTagType } from 'utils/agentLogs'
+import { AgentChallengeTag as AgentChallengeTagType } from 'apps/dashboard/utils/agentLogs'
export interface Props {
tag: AgentChallengeTagType
diff --git a/components/AgentChallengeTagButton.tsx b/apps/dashboard/components/AgentChallengeTagButton.tsx
similarity index 89%
rename from components/AgentChallengeTagButton.tsx
rename to apps/dashboard/components/AgentChallengeTagButton.tsx
index 619f1c0c2..c989c99ad 100644
--- a/components/AgentChallengeTagButton.tsx
+++ b/apps/dashboard/components/AgentChallengeTagButton.tsx
@@ -4,7 +4,7 @@ import {
import {
Plus,
} from 'lucide-react'
-import AgentChallengeTagModal, { Severity } from 'components/AgentChallengeTagModal'
+import AgentChallengeTagModal, { Severity } from 'apps/dashboard/components/AgentChallengeTagModal'
export interface Props {
newTagName: string
diff --git a/components/AgentChallengeTagModal.tsx b/apps/dashboard/components/AgentChallengeTagModal.tsx
similarity index 100%
rename from components/AgentChallengeTagModal.tsx
rename to apps/dashboard/components/AgentChallengeTagModal.tsx
diff --git a/components/AgentDeploymentsList.tsx b/apps/dashboard/components/AgentDeploymentsList.tsx
similarity index 98%
rename from components/AgentDeploymentsList.tsx
rename to apps/dashboard/components/AgentDeploymentsList.tsx
index 1c0e5b8ea..585bf22c7 100644
--- a/components/AgentDeploymentsList.tsx
+++ b/apps/dashboard/components/AgentDeploymentsList.tsx
@@ -12,9 +12,9 @@ import { usePostHog } from 'posthog-js/react'
import {
LiteDeployment,
-} from 'utils/agentLogs'
+} from 'apps/dashboard/utils/agentLogs'
-import DeploymentTree from 'components/DeploymentTree'
+import DeploymentTree from 'apps/dashboard/components/DeploymentTree'
export interface Props {
deployments: LiteDeployment[]
diff --git a/components/AgentDeploymentsStepsList.tsx b/apps/dashboard/components/AgentDeploymentsStepsList.tsx
similarity index 100%
rename from components/AgentDeploymentsStepsList.tsx
rename to apps/dashboard/components/AgentDeploymentsStepsList.tsx
diff --git a/components/AgentFunctions.tsx b/apps/dashboard/components/AgentFunctions.tsx
similarity index 96%
rename from components/AgentFunctions.tsx
rename to apps/dashboard/components/AgentFunctions.tsx
index cc008bbd9..5483fd7c9 100644
--- a/components/AgentFunctions.tsx
+++ b/apps/dashboard/components/AgentFunctions.tsx
@@ -6,8 +6,8 @@ import {
ChevronRight,
} from 'lucide-react'
-import JsonView from 'components/JsonView'
-import { AgentFunction } from 'utils/agentLogs'
+import JsonView from 'apps/dashboard/components/JsonView'
+import { AgentFunction } from 'apps/dashboard/utils/agentLogs'
export interface Props {
functions: AgentFunction[]
diff --git a/components/AgentInstructions.tsx b/apps/dashboard/components/AgentInstructions.tsx
similarity index 91%
rename from components/AgentInstructions.tsx
rename to apps/dashboard/components/AgentInstructions.tsx
index ee41f714f..6648db0f4 100644
--- a/components/AgentInstructions.tsx
+++ b/apps/dashboard/components/AgentInstructions.tsx
@@ -8,10 +8,10 @@ import {
ArrowRight,
} from 'lucide-react'
-import smolTemplates from 'utils/smolTemplates'
-import InstructionsEditor, { InstructionsEditorRef } from 'components/InstructionsEditor'
-import InstructionsTemplateButton from 'components/InstructionsTemplateButton'
-import AlertError from 'components/AlertError'
+import smolTemplates from 'apps/dashboard/utils/smolTemplates'
+import InstructionsEditor, { InstructionsEditorRef } from 'apps/dashboard/components/InstructionsEditor'
+import InstructionsTemplateButton from 'apps/dashboard/components/InstructionsTemplateButton'
+import AlertError from 'apps/dashboard/components/AlertError'
import { usePostHog } from 'posthog-js/react'
export interface Props {
diff --git a/components/AgentLogFileContent.tsx b/apps/dashboard/components/AgentLogFileContent.tsx
similarity index 89%
rename from components/AgentLogFileContent.tsx
rename to apps/dashboard/components/AgentLogFileContent.tsx
index 78cb74524..53a71e9c4 100644
--- a/components/AgentLogFileContent.tsx
+++ b/apps/dashboard/components/AgentLogFileContent.tsx
@@ -12,10 +12,10 @@ import {
AgentPromptLogs,
AgentNextActionLog,
LiteLogFile,
-} from 'utils/agentLogs'
-import AgentPrompLogDetail from 'components/AgentPromptLogDetail'
-import AgentPromptLogsList from 'components/AgentPromptLogsList'
-import AgentNextActionLogDetail from 'components/AgentNextActionLogDetail'
+} from 'apps/dashboard/utils/agentLogs'
+import AgentPrompLogDetail from 'apps/dashboard/components/AgentPromptLogDetail'
+import AgentPromptLogsList from 'apps/dashboard/components/AgentPromptLogsList'
+import AgentNextActionLogDetail from 'apps/dashboard/components/AgentNextActionLogDetail'
import { useLocalStorage } from 'hooks/useLocalStorage'
export interface Props {
diff --git a/components/AgentLogFilesList/Upload.tsx b/apps/dashboard/components/AgentLogFilesList/Upload.tsx
similarity index 92%
rename from components/AgentLogFilesList/Upload.tsx
rename to apps/dashboard/components/AgentLogFilesList/Upload.tsx
index 9310ea3bb..0020494b5 100644
--- a/components/AgentLogFilesList/Upload.tsx
+++ b/apps/dashboard/components/AgentLogFilesList/Upload.tsx
@@ -1,9 +1,9 @@
import { useRef, useState } from 'react'
import { useUploadLogUpload } from 'hooks/useUploadLogUpload'
-import { log_files } from 'db/prisma'
+import { log_files } from 'apps/dashboard/db/prisma'
import { useRouter } from 'next/router'
-import LogFolderUploadButton from 'components/LogFolderUploadButton'
+import LogFolderUploadButton from 'apps/dashboard/components/LogFolderUploadButton'
export interface Props {
defaultProjectID: string
diff --git a/components/AgentLogFilesList/UploadFiletree.tsx b/apps/dashboard/components/AgentLogFilesList/UploadFiletree.tsx
similarity index 91%
rename from components/AgentLogFilesList/UploadFiletree.tsx
rename to apps/dashboard/components/AgentLogFilesList/UploadFiletree.tsx
index 516e7c88f..bd5f394ed 100644
--- a/components/AgentLogFilesList/UploadFiletree.tsx
+++ b/apps/dashboard/components/AgentLogFilesList/UploadFiletree.tsx
@@ -1,10 +1,10 @@
import { useCallback } from 'react'
import path from 'path-browserify'
-import Filesystem, { FileInfo } from 'components/Filesystem'
-import { AgentChallengeTag, LiteLogFile } from 'utils/agentLogs'
+import Filesystem, { FileInfo } from 'apps/dashboard/components/Filesystem'
+import { AgentChallengeTag, LiteLogFile } from 'apps/dashboard/utils/agentLogs'
import { FiletreeProvider } from 'hooks/useFiletree'
-import { log_uploads } from 'db/prisma'
+import { log_uploads } from 'apps/dashboard/db/prisma'
export interface Props {
logUpload: log_uploads
diff --git a/components/AgentLogFilesList/UploadedLogsDetail.tsx b/apps/dashboard/components/AgentLogFilesList/UploadedLogsDetail.tsx
similarity index 91%
rename from components/AgentLogFilesList/UploadedLogsDetail.tsx
rename to apps/dashboard/components/AgentLogFilesList/UploadedLogsDetail.tsx
index 75360e38c..5e1745ed6 100644
--- a/components/AgentLogFilesList/UploadedLogsDetail.tsx
+++ b/apps/dashboard/components/AgentLogFilesList/UploadedLogsDetail.tsx
@@ -3,14 +3,14 @@ import { ChevronRight } from 'lucide-react'
import { useEffect, useState } from 'react'
import { useRouter } from 'next/router'
-import RenameLogUploadButton from 'components/RenameLogUploadButton'
-import UploadTree from 'components/AgentLogFilesList/UploadFiletree'
+import RenameLogUploadButton from 'apps/dashboard/components/RenameLogUploadButton'
+import UploadTree from 'apps/dashboard/components/AgentLogFilesList/UploadFiletree'
import { useRenameLogUpload } from 'hooks/useRenameLogUpload'
-import { LiteLogFile } from 'utils/agentLogs'
+import { LiteLogFile } from 'apps/dashboard/utils/agentLogs'
import { SupabaseClient, useSupabaseClient } from '@supabase/auth-helpers-react'
-import { Database } from 'db/supabase'
-import { formatLogFileContent } from 'utils/formatLogFileContent'
-import { log_uploads } from 'db/prisma'
+import { Database } from 'apps/dashboard/db/supabase'
+import { formatLogFileContent } from 'apps/dashboard/utils/formatLogFileContent'
+import { log_uploads } from 'apps/dashboard/db/prisma'
async function getUploadLogsContent(client: SupabaseClient<Database>, logUploadID: string) {
const result = await client
diff --git a/components/AgentLogFilesList/index.tsx b/apps/dashboard/components/AgentLogFilesList/index.tsx
similarity index 92%
rename from components/AgentLogFilesList/index.tsx
rename to apps/dashboard/components/AgentLogFilesList/index.tsx
index cc754589d..802911105 100644
--- a/components/AgentLogFilesList/index.tsx
+++ b/apps/dashboard/components/AgentLogFilesList/index.tsx
@@ -10,14 +10,14 @@ import { useRouter } from 'next/router'
import { SupabaseClient } from '@supabase/supabase-js'
import { useSupabaseClient } from '@supabase/auth-helpers-react'
-import { log_uploads } from 'db/prisma'
+import { log_uploads } from 'apps/dashboard/db/prisma'
import {
LiteLogFile,
-} from 'utils/agentLogs'
-import AgentLogFileContent from 'components/AgentLogFileContent'
+} from 'apps/dashboard/utils/agentLogs'
+import AgentLogFileContent from 'apps/dashboard/components/AgentLogFileContent'
import { useLocalStorage } from 'hooks/useLocalStorage'
-import { Database } from 'db/supabase'
-import { formatLogFileContent } from 'utils/formatLogFileContent'
+import { Database } from 'apps/dashboard/db/supabase'
+import { formatLogFileContent } from 'apps/dashboard/utils/formatLogFileContent'
import Upload from './Upload'
import UploadedLogsDetail from './UploadedLogsDetail'
diff --git a/components/AgentNextActionLogDetail.tsx b/apps/dashboard/components/AgentNextActionLogDetail.tsx
similarity index 88%
rename from components/AgentNextActionLogDetail.tsx
rename to apps/dashboard/components/AgentNextActionLogDetail.tsx
index e05384195..4bbff9076 100644
--- a/components/AgentNextActionLogDetail.tsx
+++ b/apps/dashboard/components/AgentNextActionLogDetail.tsx
@@ -1,6 +1,6 @@
-import { AgentNextActionLog } from 'utils/agentLogs'
+import { AgentNextActionLog } from 'apps/dashboard/utils/agentLogs'
-import JsonView from 'components/JsonView'
+import JsonView from 'apps/dashboard/components/JsonView'
export interface Props {
log: AgentNextActionLog
}
diff --git a/components/AgentPromptLogDetail.tsx b/apps/dashboard/components/AgentPromptLogDetail.tsx
similarity index 95%
rename from components/AgentPromptLogDetail.tsx
rename to apps/dashboard/components/AgentPromptLogDetail.tsx
index aa179e0da..0b2753a30 100644
--- a/components/AgentPromptLogDetail.tsx
+++ b/apps/dashboard/components/AgentPromptLogDetail.tsx
@@ -2,9 +2,9 @@ import {
SystemPromptLog,
UserPromptLog,
AssistantPromptLog,
-} from 'utils/agentLogs'
+} from 'apps/dashboard/utils/agentLogs'
import { useMemo } from 'react'
-import JsonView from 'components/JsonView'
+import JsonView from 'apps/dashboard/components/JsonView'
function handleJSONQuotes(content: string) {
diff --git a/components/AgentPromptLogsList.tsx b/apps/dashboard/components/AgentPromptLogsList.tsx
similarity index 97%
rename from components/AgentPromptLogsList.tsx
rename to apps/dashboard/components/AgentPromptLogsList.tsx
index 2a6848533..7ecb47900 100644
--- a/components/AgentPromptLogsList.tsx
+++ b/apps/dashboard/components/AgentPromptLogsList.tsx
@@ -10,7 +10,7 @@ import {
SystemPromptLog,
UserPromptLog,
AssistantPromptLog,
-} from 'utils/agentLogs'
+} from 'apps/dashboard/utils/agentLogs'
export interface Props {
logs: (SystemPromptLog | UserPromptLog | AssistantPromptLog)[]
diff --git a/components/AgentRun.tsx b/apps/dashboard/components/AgentRun.tsx
similarity index 100%
rename from components/AgentRun.tsx
rename to apps/dashboard/components/AgentRun.tsx
diff --git a/components/AgentRunLogContent.tsx b/apps/dashboard/components/AgentRunLogContent.tsx
similarity index 99%
rename from components/AgentRunLogContent.tsx
rename to apps/dashboard/components/AgentRunLogContent.tsx
index 0c4f974b8..eff1d9521 100644
--- a/components/AgentRunLogContent.tsx
+++ b/apps/dashboard/components/AgentRunLogContent.tsx
@@ -11,7 +11,7 @@ import { GithubIcon } from 'lucide-react'
import { DeploymentAuthData } from 'pages/api/agent'
import {
LiteDeploymentLog,
-} from 'utils/agentLogs'
+} from 'apps/dashboard/utils/agentLogs'
import { useLocalStorage } from 'hooks/useLocalStorage'
import useDeploymentRunLog from 'hooks/useDeploymentRunLog'
diff --git a/components/AgentRunLogDetail.tsx b/apps/dashboard/components/AgentRunLogDetail.tsx
similarity index 94%
rename from components/AgentRunLogDetail.tsx
rename to apps/dashboard/components/AgentRunLogDetail.tsx
index 19b94884f..8648443bc 100644
--- a/components/AgentRunLogDetail.tsx
+++ b/apps/dashboard/components/AgentRunLogDetail.tsx
@@ -1,4 +1,4 @@
-import JsonView from 'components/JsonView'
+import JsonView from 'apps/dashboard/components/JsonView'
export interface Props {
step?: any
diff --git a/components/AlertError.tsx b/apps/dashboard/components/AlertError.tsx
similarity index 100%
rename from components/AlertError.tsx
rename to apps/dashboard/components/AlertError.tsx
diff --git a/components/ChooseOpenAIKey.tsx b/apps/dashboard/components/ChooseOpenAIKey.tsx
similarity index 97%
rename from components/ChooseOpenAIKey.tsx
rename to apps/dashboard/components/ChooseOpenAIKey.tsx
index d8590c8d6..98115c71a 100644
--- a/components/ChooseOpenAIKey.tsx
+++ b/apps/dashboard/components/ChooseOpenAIKey.tsx
@@ -5,7 +5,7 @@ import {
import { usePostHog } from 'posthog-js/react'
import clsx from 'clsx'
-import OpenAIKeyInput from 'components/OpenAIKeyInput'
+import OpenAIKeyInput from 'apps/dashboard/components/OpenAIKeyInput'
export interface Props {
selectedOpenAIKeyType: string
diff --git a/components/ConfigureGitHubButton.tsx b/apps/dashboard/components/ConfigureGitHubButton.tsx
similarity index 100%
rename from components/ConfigureGitHubButton.tsx
rename to apps/dashboard/components/ConfigureGitHubButton.tsx
diff --git a/components/DashboardHome.tsx b/apps/dashboard/components/DashboardHome.tsx
similarity index 76%
rename from components/DashboardHome.tsx
rename to apps/dashboard/components/DashboardHome.tsx
index 65d4c1e65..197b8b9e1 100644
--- a/components/DashboardHome.tsx
+++ b/apps/dashboard/components/DashboardHome.tsx
@@ -2,10 +2,10 @@ import { useMemo } from 'react'
import { useRouter } from 'next/router'
import dynamic from 'next/dynamic'
-import { log_uploads, projects } from 'db/prisma'
-import { LiteDeployment } from 'utils/agentLogs'
-const AgentDeploymentsList = dynamic(() => import('components/AgentDeploymentsList'), { ssr: false })
-const AgentLogFilesList = dynamic(() => import('components/AgentLogFilesList'), { ssr: false })
+import { log_uploads, projects } from 'apps/dashboard/db/prisma'
+import { LiteDeployment } from 'apps/dashboard/utils/agentLogs'
+const AgentDeploymentsList = dynamic(() => import('apps/dashboard/components/AgentDeploymentsList'), { ssr: false })
+const AgentLogFilesList = dynamic(() => import('apps/dashboard/components/AgentLogFilesList'), { ssr: false })
export interface Props {
projects: (projects & { log_uploads: log_uploads[], deployments: LiteDeployment[] })[]
diff --git a/components/DeployAgent.tsx b/apps/dashboard/components/DeployAgent.tsx
similarity index 96%
rename from components/DeployAgent.tsx
rename to apps/dashboard/components/DeployAgent.tsx
index 72861a5e9..162664f6a 100644
--- a/components/DeployAgent.tsx
+++ b/apps/dashboard/components/DeployAgent.tsx
@@ -4,9 +4,9 @@ import {
ScrollText,
} from 'lucide-react'
-import InstructionsEditor from 'components/InstructionsEditor'
-import { RepoSetup } from 'utils/repoSetup'
-import SpinnerIcon from 'components/Spinner'
+import InstructionsEditor from 'apps/dashboard/components/InstructionsEditor'
+import { RepoSetup } from 'apps/dashboard/utils/repoSetup'
+import SpinnerIcon from 'apps/dashboard/components/Spinner'
import AlertError from './AlertError'
export interface Props {
diff --git a/components/DeploymentTree.tsx b/apps/dashboard/components/DeploymentTree.tsx
similarity index 87%
rename from components/DeploymentTree.tsx
rename to apps/dashboard/components/DeploymentTree.tsx
index 4fbf89dc3..ac16e1e6e 100644
--- a/components/DeploymentTree.tsx
+++ b/apps/dashboard/components/DeploymentTree.tsx
@@ -1,7 +1,7 @@
import { useCallback } from 'react'
-import Filesystem, { FileInfo } from 'components/Filesystem'
-import { LiteDeployment } from 'utils/agentLogs'
+import Filesystem, { FileInfo } from 'apps/dashboard/components/Filesystem'
+import { LiteDeployment } from 'apps/dashboard/utils/agentLogs'
import { FiletreeProvider } from 'hooks/useFiletree'
import RunItem from './RunItem'
diff --git a/components/DirWrapper.tsx b/apps/dashboard/components/DirWrapper.tsx
similarity index 90%
rename from components/DirWrapper.tsx
rename to apps/dashboard/components/DirWrapper.tsx
index 78b42e582..19e7c0fd9 100644
--- a/components/DirWrapper.tsx
+++ b/apps/dashboard/components/DirWrapper.tsx
@@ -1,14 +1,14 @@
import React, { memo } from 'react'
-import Text from 'components/Text'
+import Text from 'apps/dashboard/components/Text'
import {
Metadata,
NodeType,
-} from '../filesystem/node'
-import { useChildren } from '../hooks/filesystem'
-import Dir from '../filesystem/dir'
-import Filesystem from '../filesystem/filesystem'
+} from '../../../filesystem/node'
+import { useChildren } from '../../../hooks/filesystem'
+import Dir from '../../../filesystem/dir'
+import Filesystem from '../../../filesystem/filesystem'
import {
FileProps,
diff --git a/components/Feedback/FeedbackButton.tsx b/apps/dashboard/components/Feedback/FeedbackButton.tsx
similarity index 100%
rename from components/Feedback/FeedbackButton.tsx
rename to apps/dashboard/components/Feedback/FeedbackButton.tsx
diff --git a/components/Feedback/FeedbackModal.tsx b/apps/dashboard/components/Feedback/FeedbackModal.tsx
similarity index 95%
rename from components/Feedback/FeedbackModal.tsx
rename to apps/dashboard/components/Feedback/FeedbackModal.tsx
index 07480a5e1..d207f213d 100644
--- a/components/Feedback/FeedbackModal.tsx
+++ b/apps/dashboard/components/Feedback/FeedbackModal.tsx
@@ -3,8 +3,8 @@ import { FormEvent, MouseEvent, useRef, useState } from 'react'
import { useOnClickOutside } from 'usehooks-ts'
import { Send } from 'lucide-react'
-import Textarea from 'components/Textarea'
-import SpinnerIcon from 'components/Spinner'
+import Textarea from 'apps/dashboard/components/Textarea'
+import SpinnerIcon from 'apps/dashboard/components/Spinner'
import { useAddFeedback } from 'hooks/useAddFeedback'
export interface Props {
diff --git a/components/Feedback/index.tsx b/apps/dashboard/components/Feedback/index.tsx
similarity index 100%
rename from components/Feedback/index.tsx
rename to apps/dashboard/components/Feedback/index.tsx
diff --git a/components/Filesystem/Dir.tsx b/apps/dashboard/components/Filesystem/Dir.tsx
similarity index 92%
rename from components/Filesystem/Dir.tsx
rename to apps/dashboard/components/Filesystem/Dir.tsx
index cccc8ab20..0d249b2d9 100644
--- a/components/Filesystem/Dir.tsx
+++ b/apps/dashboard/components/Filesystem/Dir.tsx
@@ -11,10 +11,10 @@ import {
useMetadata,
} from 'hooks/filesystem'
-import { AgentChallengeTag as AgentChallengeTagType } from 'utils/agentLogs'
-import AgentChallengeTagButton from 'components/AgentChallengeTagButton'
-import { Severity } from 'components/AgentChallengeTagModal'
-import AgentChallengeTag from 'components/AgentChallengeTag'
+import { AgentChallengeTag as AgentChallengeTagType } from 'apps/dashboard/utils/agentLogs'
+import AgentChallengeTagButton from 'apps/dashboard/components/AgentChallengeTagButton'
+import { Severity } from 'apps/dashboard/components/AgentChallengeTagModal'
+import AgentChallengeTag from 'apps/dashboard/components/AgentChallengeTag'
import {
DirProps,
NodeType,
diff --git a/components/Filesystem/File.tsx b/apps/dashboard/components/Filesystem/File.tsx
similarity index 97%
rename from components/Filesystem/File.tsx
rename to apps/dashboard/components/Filesystem/File.tsx
index 7c71475a8..8beaae4af 100644
--- a/components/Filesystem/File.tsx
+++ b/apps/dashboard/components/Filesystem/File.tsx
@@ -7,7 +7,7 @@ import Link from 'next/link'
import {
FileProps,
NodeType,
-} from '../../filesystem'
+} from '../../../../filesystem'
import { useRouter } from 'next/router'
function File({
diff --git a/components/Filesystem/index.tsx b/apps/dashboard/components/Filesystem/index.tsx
similarity index 97%
rename from components/Filesystem/index.tsx
rename to apps/dashboard/components/Filesystem/index.tsx
index 335bbdfda..cf7ef8fa2 100644
--- a/components/Filesystem/index.tsx
+++ b/apps/dashboard/components/Filesystem/index.tsx
@@ -12,11 +12,11 @@ import FilesystemPrimitive, {
NodeType,
SelectHandler,
useFilesystem,
-} from '../../filesystem'
+} from '../../../../filesystem'
import Dir from './Dir'
import File from './File'
-import { AgentChallengeTag } from 'utils/agentLogs'
+import { AgentChallengeTag } from 'apps/dashboard/utils/agentLogs'
export interface FileInfo {
isDir: boolean
diff --git a/components/FilesystemTree.tsx b/apps/dashboard/components/FilesystemTree.tsx
similarity index 98%
rename from components/FilesystemTree.tsx
rename to apps/dashboard/components/FilesystemTree.tsx
index ea3ef7eb1..1bc7b3c7b 100644
--- a/components/FilesystemTree.tsx
+++ b/apps/dashboard/components/FilesystemTree.tsx
@@ -12,7 +12,7 @@ import { useChildren } from 'hooks/filesystem'
import Dir from 'filesystem/dir'
import DirWrapper, { DirProps } from './DirWrapper'
-import Text from 'components/Text'
+import Text from 'apps/dashboard/components/Text'
import { useFiletree } from 'hooks/useFiletree'
import Filesystem from 'filesystem/filesystem'
diff --git a/components/GitHubButton.tsx b/apps/dashboard/components/GitHubButton.tsx
similarity index 92%
rename from components/GitHubButton.tsx
rename to apps/dashboard/components/GitHubButton.tsx
index 4d3bfc621..0cf20ce8f 100644
--- a/components/GitHubButton.tsx
+++ b/apps/dashboard/components/GitHubButton.tsx
@@ -6,7 +6,7 @@ import {
Github,
} from 'lucide-react'
-import Text from 'components/Text'
+import Text from 'apps/dashboard/components/Text'
export interface Props {
className?: string
diff --git a/components/Header/Navigation/HeaderLink.tsx b/apps/dashboard/components/Header/Navigation/HeaderLink.tsx
similarity index 93%
rename from components/Header/Navigation/HeaderLink.tsx
rename to apps/dashboard/components/Header/Navigation/HeaderLink.tsx
index 32b485d53..1e044feef 100644
--- a/components/Header/Navigation/HeaderLink.tsx
+++ b/apps/dashboard/components/Header/Navigation/HeaderLink.tsx
@@ -1,7 +1,7 @@
import clsx from 'clsx'
import { UrlObject } from 'url'
-import TitleLink from 'components/TitleLink'
+import TitleLink from 'apps/dashboard/components/TitleLink'
import { ReactNode } from 'react'
export interface Props {
diff --git a/components/Header/Navigation/index.tsx b/apps/dashboard/components/Header/Navigation/index.tsx
similarity index 100%
rename from components/Header/Navigation/index.tsx
rename to apps/dashboard/components/Header/Navigation/index.tsx
diff --git a/components/Header/index.tsx b/apps/dashboard/components/Header/index.tsx
similarity index 100%
rename from components/Header/index.tsx
rename to apps/dashboard/components/Header/index.tsx
diff --git a/components/InstructionsEditor.tsx b/apps/dashboard/components/InstructionsEditor.tsx
similarity index 96%
rename from components/InstructionsEditor.tsx
rename to apps/dashboard/components/InstructionsEditor.tsx
index e6bc93329..034a7ed60 100644
--- a/components/InstructionsEditor.tsx
+++ b/apps/dashboard/components/InstructionsEditor.tsx
@@ -5,7 +5,7 @@ import {
import { EditorContent } from '@tiptap/react'
import clsx from 'clsx'
-import Text from 'components/Text'
+import Text from 'apps/dashboard/components/Text'
import useDocEditor from 'hooks/useDocEditor'
export interface Props {
diff --git a/components/InstructionsTemplateButton.tsx b/apps/dashboard/components/InstructionsTemplateButton.tsx
similarity index 100%
rename from components/InstructionsTemplateButton.tsx
rename to apps/dashboard/components/InstructionsTemplateButton.tsx
diff --git a/components/JsonView.tsx b/apps/dashboard/components/JsonView.tsx
similarity index 100%
rename from components/JsonView.tsx
rename to apps/dashboard/components/JsonView.tsx
diff --git a/components/Layout.tsx b/apps/dashboard/components/Layout.tsx
similarity index 95%
rename from components/Layout.tsx
rename to apps/dashboard/components/Layout.tsx
index 56b6156d7..3dbb2e93d 100644
--- a/components/Layout.tsx
+++ b/apps/dashboard/components/Layout.tsx
@@ -15,9 +15,9 @@ import {
} from 'lucide-react'
import Script from 'next/script'
-import DashboardDesktopSidebar from 'components/Sidebar/DashboardDesktopSidebar'
-import DashboardMobileSidebar from 'components/Sidebar/DashboardMobileSidebar'
-import Feedback from 'components/Feedback'
+import DashboardDesktopSidebar from 'apps/dashboard/components/Sidebar/DashboardDesktopSidebar'
+import DashboardMobileSidebar from 'apps/dashboard/components/Sidebar/DashboardMobileSidebar'
+import Feedback from 'apps/dashboard/components/Feedback'
import * as gtag from '../utils/gtag'
import StarUs from './StarUs'
diff --git a/components/LogFolderUploadButton.tsx b/apps/dashboard/components/LogFolderUploadButton.tsx
similarity index 100%
rename from components/LogFolderUploadButton.tsx
rename to apps/dashboard/components/LogFolderUploadButton.tsx
diff --git a/components/OpenAIKeyInput.tsx b/apps/dashboard/components/OpenAIKeyInput.tsx
similarity index 100%
rename from components/OpenAIKeyInput.tsx
rename to apps/dashboard/components/OpenAIKeyInput.tsx
diff --git a/components/RenameLogUploadButton.tsx b/apps/dashboard/components/RenameLogUploadButton.tsx
similarity index 90%
rename from components/RenameLogUploadButton.tsx
rename to apps/dashboard/components/RenameLogUploadButton.tsx
index d282a2173..39a7818ac 100644
--- a/components/RenameLogUploadButton.tsx
+++ b/apps/dashboard/components/RenameLogUploadButton.tsx
@@ -1,7 +1,7 @@
import {
Edit,
} from 'lucide-react'
-import Spinner from 'components/Spinner'
+import Spinner from 'apps/dashboard/components/Spinner'
import clsx from 'clsx'
diff --git a/components/RunItem.tsx b/apps/dashboard/components/RunItem.tsx
similarity index 98%
rename from components/RunItem.tsx
rename to apps/dashboard/components/RunItem.tsx
index c599d00ab..63e86f4ca 100644
--- a/components/RunItem.tsx
+++ b/apps/dashboard/components/RunItem.tsx
@@ -3,7 +3,7 @@ import Link from 'next/link'
import { usePostHog } from 'posthog-js/react'
import {
FileProps,
-} from '../filesystem'
+} from '../../../filesystem'
function RunItem({
name,
diff --git a/components/SelectRepository/ExistingRepositories/RepositoriesList.tsx b/apps/dashboard/components/SelectRepository/ExistingRepositories/RepositoriesList.tsx
similarity index 93%
rename from components/SelectRepository/ExistingRepositories/RepositoriesList.tsx
rename to apps/dashboard/components/SelectRepository/ExistingRepositories/RepositoriesList.tsx
index b089c590f..dce227d05 100644
--- a/components/SelectRepository/ExistingRepositories/RepositoriesList.tsx
+++ b/apps/dashboard/components/SelectRepository/ExistingRepositories/RepositoriesList.tsx
@@ -2,7 +2,7 @@ import {
Github,
} from 'lucide-react'
-import { Repos, RepoSetup } from 'utils/repoSetup'
+import { Repos, RepoSetup } from 'apps/dashboard/utils/repoSetup'
export interface Props {
repos: Repos
diff --git a/components/SelectRepository/ExistingRepositories/index.tsx b/apps/dashboard/components/SelectRepository/ExistingRepositories/index.tsx
similarity index 86%
rename from components/SelectRepository/ExistingRepositories/index.tsx
rename to apps/dashboard/components/SelectRepository/ExistingRepositories/index.tsx
index 984371d05..fe9e40d0c 100644
--- a/components/SelectRepository/ExistingRepositories/index.tsx
+++ b/apps/dashboard/components/SelectRepository/ExistingRepositories/index.tsx
@@ -1,8 +1,8 @@
import clsx from 'clsx'
-import ConfigureGitHubButton from 'components/ConfigureGitHubButton'
-import SpinnerIcon from 'components/Spinner'
-import { RepoSetup, Repos } from 'utils/repoSetup'
+import ConfigureGitHubButton from 'apps/dashboard/components/ConfigureGitHubButton'
+import SpinnerIcon from 'apps/dashboard/components/Spinner'
+import { RepoSetup, Repos } from 'apps/dashboard/utils/repoSetup'
import RepositoriesList from './RepositoriesList'
diff --git a/components/SelectRepository/NewRepository/PermissionsModal.tsx b/apps/dashboard/components/SelectRepository/NewRepository/PermissionsModal.tsx
similarity index 100%
rename from components/SelectRepository/NewRepository/PermissionsModal.tsx
rename to apps/dashboard/components/SelectRepository/NewRepository/PermissionsModal.tsx
diff --git a/components/SelectRepository/NewRepository/RepoAccountSelect.tsx b/apps/dashboard/components/SelectRepository/NewRepository/RepoAccountSelect.tsx
similarity index 97%
rename from components/SelectRepository/NewRepository/RepoAccountSelect.tsx
rename to apps/dashboard/components/SelectRepository/NewRepository/RepoAccountSelect.tsx
index 455483d28..c580c6937 100644
--- a/components/SelectRepository/NewRepository/RepoAccountSelect.tsx
+++ b/apps/dashboard/components/SelectRepository/NewRepository/RepoAccountSelect.tsx
@@ -10,7 +10,7 @@ import {
Plus,
} from 'lucide-react'
-import { GitHubAccount } from 'utils/github'
+import { GitHubAccount } from 'apps/dashboard/utils/github'
export interface Props {
accounts: GitHubAccount[]
diff --git a/components/SelectRepository/NewRepository/RepoNameInput.tsx b/apps/dashboard/components/SelectRepository/NewRepository/RepoNameInput.tsx
similarity index 100%
rename from components/SelectRepository/NewRepository/RepoNameInput.tsx
rename to apps/dashboard/components/SelectRepository/NewRepository/RepoNameInput.tsx
diff --git a/components/SelectRepository/NewRepository/index.tsx b/apps/dashboard/components/SelectRepository/NewRepository/index.tsx
similarity index 93%
rename from components/SelectRepository/NewRepository/index.tsx
rename to apps/dashboard/components/SelectRepository/NewRepository/index.tsx
index 9f71fddb3..db42dd77c 100644
--- a/components/SelectRepository/NewRepository/index.tsx
+++ b/apps/dashboard/components/SelectRepository/NewRepository/index.tsx
@@ -5,16 +5,16 @@ import {
import clsx from 'clsx'
import { usePostHog } from 'posthog-js/react'
-import ConfigureGitHubButton from 'components/ConfigureGitHubButton'
-import AlertError from 'components/AlertError'
+import ConfigureGitHubButton from 'apps/dashboard/components/ConfigureGitHubButton'
+import AlertError from 'apps/dashboard/components/AlertError'
import {
configureGitHubApp,
GitHubAccount,
-} from 'utils/github'
+} from 'apps/dashboard/utils/github'
import { useGitHubClient } from 'hooks/useGitHubClient'
-import SpinnerIcon from 'components/Spinner'
+import SpinnerIcon from 'apps/dashboard/components/Spinner'
import { createRepo } from 'github/repo'
-import { RepoSetup } from 'utils/repoSetup'
+import { RepoSetup } from 'apps/dashboard/utils/repoSetup'
import RepoAccountSelect from './RepoAccountSelect'
import RepoNameInput from './RepoNameInput'
diff --git a/components/SelectRepository/NewRepository/newRepoState.ts b/apps/dashboard/components/SelectRepository/NewRepository/newRepoState.ts
similarity index 97%
rename from components/SelectRepository/NewRepository/newRepoState.ts
rename to apps/dashboard/components/SelectRepository/NewRepository/newRepoState.ts
index e4f0ff109..abe413b08 100644
--- a/components/SelectRepository/NewRepository/newRepoState.ts
+++ b/apps/dashboard/components/SelectRepository/NewRepository/newRepoState.ts
@@ -1,4 +1,4 @@
-import { GitHubAccount } from 'utils/github'
+import { GitHubAccount } from 'apps/dashboard/utils/github'
export enum ActionType {
Initial,
diff --git a/components/SelectRepository/RepoSwitch.tsx b/apps/dashboard/components/SelectRepository/RepoSwitch.tsx
similarity index 100%
rename from components/SelectRepository/RepoSwitch.tsx
rename to apps/dashboard/components/SelectRepository/RepoSwitch.tsx
diff --git a/components/SelectRepository/index.tsx b/apps/dashboard/components/SelectRepository/index.tsx
similarity index 94%
rename from components/SelectRepository/index.tsx
rename to apps/dashboard/components/SelectRepository/index.tsx
index a55efa018..8556a78a8 100644
--- a/components/SelectRepository/index.tsx
+++ b/apps/dashboard/components/SelectRepository/index.tsx
@@ -11,10 +11,10 @@ import {
import {
configureGitHubApp,
GitHubAccount,
-} from 'utils/github'
-import SpinnerIcon from 'components/Spinner'
+} from 'apps/dashboard/utils/github'
+import SpinnerIcon from 'apps/dashboard/components/Spinner'
import { usePostHog } from 'posthog-js/react'
-import { RepoSetup, Repos } from 'utils/repoSetup'
+import { RepoSetup, Repos } from 'apps/dashboard/utils/repoSetup'
import RepoSwitch from './RepoSwitch'
import ExistingRepositories from './ExistingRepositories'
diff --git a/components/Sidebar/DashboardDesktopSidebar.tsx b/apps/dashboard/components/Sidebar/DashboardDesktopSidebar.tsx
similarity index 100%
rename from components/Sidebar/DashboardDesktopSidebar.tsx
rename to apps/dashboard/components/Sidebar/DashboardDesktopSidebar.tsx
diff --git a/components/Sidebar/DashboardMobileSidebar.tsx b/apps/dashboard/components/Sidebar/DashboardMobileSidebar.tsx
similarity index 100%
rename from components/Sidebar/DashboardMobileSidebar.tsx
rename to apps/dashboard/components/Sidebar/DashboardMobileSidebar.tsx
diff --git a/components/Sidebar/types.ts b/apps/dashboard/components/Sidebar/types.ts
similarity index 100%
rename from components/Sidebar/types.ts
rename to apps/dashboard/components/Sidebar/types.ts
diff --git a/components/Spinner.tsx b/apps/dashboard/components/Spinner.tsx
similarity index 100%
rename from components/Spinner.tsx
rename to apps/dashboard/components/Spinner.tsx
diff --git a/components/StarUs.tsx b/apps/dashboard/components/StarUs.tsx
similarity index 100%
rename from components/StarUs.tsx
rename to apps/dashboard/components/StarUs.tsx
diff --git a/components/Steps.tsx b/apps/dashboard/components/Steps.tsx
similarity index 100%
rename from components/Steps.tsx
rename to apps/dashboard/components/Steps.tsx
diff --git a/components/Text.tsx b/apps/dashboard/components/Text.tsx
similarity index 100%
rename from components/Text.tsx
rename to apps/dashboard/components/Text.tsx
diff --git a/components/Textarea.tsx b/apps/dashboard/components/Textarea.tsx
similarity index 100%
rename from components/Textarea.tsx
rename to apps/dashboard/components/Textarea.tsx
diff --git a/components/TitleButton.tsx b/apps/dashboard/components/TitleButton.tsx
similarity index 89%
rename from components/TitleButton.tsx
rename to apps/dashboard/components/TitleButton.tsx
index 8e5f2129d..885c6d417 100644
--- a/components/TitleButton.tsx
+++ b/apps/dashboard/components/TitleButton.tsx
@@ -1,6 +1,6 @@
import clsx from 'clsx'
-import Text from 'components/Text'
+import Text from 'apps/dashboard/components/Text'
export interface Props {
onClick: () => void
diff --git a/components/TitleLink.tsx b/apps/dashboard/components/TitleLink.tsx
similarity index 91%
rename from components/TitleLink.tsx
rename to apps/dashboard/components/TitleLink.tsx
index 9f65457b5..4a909ea74 100644
--- a/components/TitleLink.tsx
+++ b/apps/dashboard/components/TitleLink.tsx
@@ -3,7 +3,7 @@ import Link from 'next/link'
import { ReactNode } from 'react'
import { UrlObject } from 'url'
-import Text, { Size } from 'components/Text'
+import Text, { Size } from 'apps/dashboard/components/Text'
export interface Props {
className?: string
diff --git a/db/credentials.ts b/apps/dashboard/db/credentials.ts
similarity index 100%
rename from db/credentials.ts
rename to apps/dashboard/db/credentials.ts
diff --git a/db/prisma.ts b/apps/dashboard/db/prisma.ts
similarity index 100%
rename from db/prisma.ts
rename to apps/dashboard/db/prisma.ts
diff --git a/db/supabase.ts b/apps/dashboard/db/supabase.ts
similarity index 100%
rename from db/supabase.ts
rename to apps/dashboard/db/supabase.ts
diff --git a/db/tables.ts b/apps/dashboard/db/tables.ts
similarity index 100%
rename from db/tables.ts
rename to apps/dashboard/db/tables.ts
diff --git a/db/types.ts b/apps/dashboard/db/types.ts
similarity index 100%
rename from db/types.ts
rename to apps/dashboard/db/types.ts
diff --git a/docker-compose.yml b/apps/dashboard/docker-compose.yml
similarity index 100%
rename from docker-compose.yml
rename to apps/dashboard/docker-compose.yml
diff --git a/editor/extensions/keymap.ts b/apps/dashboard/editor/extensions/keymap.ts
similarity index 100%
rename from editor/extensions/keymap.ts
rename to apps/dashboard/editor/extensions/keymap.ts
diff --git a/editor/schema.ts b/apps/dashboard/editor/schema.ts
similarity index 100%
rename from editor/schema.ts
rename to apps/dashboard/editor/schema.ts
diff --git a/filesystem/dir.ts b/apps/dashboard/filesystem/dir.ts
similarity index 100%
rename from filesystem/dir.ts
rename to apps/dashboard/filesystem/dir.ts
diff --git a/filesystem/file.ts b/apps/dashboard/filesystem/file.ts
similarity index 100%
rename from filesystem/file.ts
rename to apps/dashboard/filesystem/file.ts
diff --git a/filesystem/filesystem.ts b/apps/dashboard/filesystem/filesystem.ts
similarity index 100%
rename from filesystem/filesystem.ts
rename to apps/dashboard/filesystem/filesystem.ts
diff --git a/filesystem/index.ts b/apps/dashboard/filesystem/index.ts
similarity index 70%
rename from filesystem/index.ts
rename to apps/dashboard/filesystem/index.ts
index 5e2cd3f95..d38b8a786 100644
--- a/filesystem/index.ts
+++ b/apps/dashboard/filesystem/index.ts
@@ -1,15 +1,15 @@
-import Tree from 'components/FilesystemTree'
+import Tree from 'apps/dashboard/components/FilesystemTree'
export type {
Props as FilesystemTreeProps,
FileProps,
SelectHandler,
-} from 'components/FilesystemTree'
+} from 'apps/dashboard/components/FilesystemTree'
-import DirWrapper from '../components/DirWrapper'
+import DirWrapper from '../apps/dashboard/components/DirWrapper'
export type {
Props as DirWrapperProps,
DirProps,
-} from '../components/DirWrapper'
+} from '../apps/dashboard/components/DirWrapper'
export { NodeType } from './node'
export type { Metadata } from './node'
diff --git a/filesystem/node.ts b/apps/dashboard/filesystem/node.ts
similarity index 100%
rename from filesystem/node.ts
rename to apps/dashboard/filesystem/node.ts
diff --git a/github/client.ts b/apps/dashboard/github/client.ts
similarity index 100%
rename from github/client.ts
rename to apps/dashboard/github/client.ts
diff --git a/github/installationClient.ts b/apps/dashboard/github/installationClient.ts
similarity index 100%
rename from github/installationClient.ts
rename to apps/dashboard/github/installationClient.ts
diff --git a/github/pullRequest.ts b/apps/dashboard/github/pullRequest.ts
similarity index 99%
rename from github/pullRequest.ts
rename to apps/dashboard/github/pullRequest.ts
index bad51f34c..4e9d94804 100644
--- a/github/pullRequest.ts
+++ b/apps/dashboard/github/pullRequest.ts
@@ -2,7 +2,7 @@ import { Configuration, OpenAIApi } from 'openai'
import { backOff } from 'exponential-backoff'
import api from 'api-client/api'
-import { deployments, prisma } from 'db/prisma'
+import { deployments, prisma } from 'apps/dashboard/db/prisma'
import { GitHubClient } from './client'
diff --git a/github/repo.ts b/apps/dashboard/github/repo.ts
similarity index 100%
rename from github/repo.ts
rename to apps/dashboard/github/repo.ts
diff --git a/github/userClient.ts b/apps/dashboard/github/userClient.ts
similarity index 100%
rename from github/userClient.ts
rename to apps/dashboard/github/userClient.ts
diff --git a/github/webhooks.ts b/apps/dashboard/github/webhooks.ts
similarity index 98%
rename from github/webhooks.ts
rename to apps/dashboard/github/webhooks.ts
index 8efae450a..9c1af0dd7 100644
--- a/github/webhooks.ts
+++ b/apps/dashboard/github/webhooks.ts
@@ -4,10 +4,10 @@ import {
createNodeMiddleware,
} from '@octokit/webhooks'
-import { prisma } from 'db/prisma'
-import { client as posthog } from 'utils/posthog'
+import { prisma } from 'apps/dashboard/db/prisma'
+import { client as posthog } from 'apps/dashboard/utils/posthog'
import { DeploymentAuthData } from 'pages/api/agent'
-import { smolDeveloperTemplateID } from 'utils/smolTemplates'
+import { smolDeveloperTemplateID } from 'apps/dashboard/utils/smolTemplates'
import {
disableAgentDeployment,
diff --git a/hooks/filesystem.ts b/apps/dashboard/hooks/filesystem.ts
similarity index 100%
rename from hooks/filesystem.ts
rename to apps/dashboard/hooks/filesystem.ts
diff --git a/hooks/useAddFeedback.ts b/apps/dashboard/hooks/useAddFeedback.ts
similarity index 100%
rename from hooks/useAddFeedback.ts
rename to apps/dashboard/hooks/useAddFeedback.ts
diff --git a/hooks/useAddLogUploadTag.ts b/apps/dashboard/hooks/useAddLogUploadTag.ts
similarity index 92%
rename from hooks/useAddLogUploadTag.ts
rename to apps/dashboard/hooks/useAddLogUploadTag.ts
index d2da92581..f0db4d459 100644
--- a/hooks/useAddLogUploadTag.ts
+++ b/apps/dashboard/hooks/useAddLogUploadTag.ts
@@ -1,6 +1,6 @@
import { useCallback } from 'react'
import useSWRMutation from 'swr/mutation'
-import { AgentChallengeTag } from 'utils/agentLogs'
+import { AgentChallengeTag } from 'apps/dashboard/utils/agentLogs'
export interface PostLogUploadTag {
id: string
diff --git a/hooks/useDeleteLogUpload.ts b/apps/dashboard/hooks/useDeleteLogUpload.ts
similarity index 100%
rename from hooks/useDeleteLogUpload.ts
rename to apps/dashboard/hooks/useDeleteLogUpload.ts
diff --git a/hooks/useDeleteLogUploadTag.ts b/apps/dashboard/hooks/useDeleteLogUploadTag.ts
similarity index 92%
rename from hooks/useDeleteLogUploadTag.ts
rename to apps/dashboard/hooks/useDeleteLogUploadTag.ts
index e84ce6e3f..71f7b1a5d 100644
--- a/hooks/useDeleteLogUploadTag.ts
+++ b/apps/dashboard/hooks/useDeleteLogUploadTag.ts
@@ -1,6 +1,6 @@
import { useCallback } from 'react'
import useSWRMutation from 'swr/mutation'
-import { AgentChallengeTag } from 'utils/agentLogs'
+import { AgentChallengeTag } from 'apps/dashboard/utils/agentLogs'
export interface DeleteLogUploadTag {
// Log Upload ID
diff --git a/hooks/useDeploymentRunLog.ts b/apps/dashboard/hooks/useDeploymentRunLog.ts
similarity index 88%
rename from hooks/useDeploymentRunLog.ts
rename to apps/dashboard/hooks/useDeploymentRunLog.ts
index 0cce76cc0..7d578ead3 100644
--- a/hooks/useDeploymentRunLog.ts
+++ b/apps/dashboard/hooks/useDeploymentRunLog.ts
@@ -1,9 +1,9 @@
import { useSupabaseClient } from '@supabase/auth-helpers-react'
import { useState, useEffect, useMemo } from 'react'
-import { logsTable } from 'db/tables'
-import { Database } from 'db/supabase'
-import { LiteDeploymentLog } from 'utils/agentLogs'
+import { logsTable } from 'apps/dashboard/db/tables'
+import { Database } from 'apps/dashboard/db/supabase'
+import { LiteDeploymentLog } from 'apps/dashboard/utils/agentLogs'
function useDeploymentRunLog(initLog: LiteDeploymentLog) {
const [logContent, setLogContent] = useState<any>()
diff --git a/hooks/useDocEditor.ts b/apps/dashboard/hooks/useDocEditor.ts
similarity index 100%
rename from hooks/useDocEditor.ts
rename to apps/dashboard/hooks/useDocEditor.ts
diff --git a/hooks/useExpiringState.ts b/apps/dashboard/hooks/useExpiringState.ts
similarity index 100%
rename from hooks/useExpiringState.ts
rename to apps/dashboard/hooks/useExpiringState.ts
diff --git a/hooks/useFiletree.tsx b/apps/dashboard/hooks/useFiletree.tsx
similarity index 100%
rename from hooks/useFiletree.tsx
rename to apps/dashboard/hooks/useFiletree.tsx
diff --git a/hooks/useGitHubClient.ts b/apps/dashboard/hooks/useGitHubClient.ts
similarity index 100%
rename from hooks/useGitHubClient.ts
rename to apps/dashboard/hooks/useGitHubClient.ts
diff --git a/hooks/useListenOnMessage.ts b/apps/dashboard/hooks/useListenOnMessage.ts
similarity index 100%
rename from hooks/useListenOnMessage.ts
rename to apps/dashboard/hooks/useListenOnMessage.ts
diff --git a/hooks/useLocalStorage.ts b/apps/dashboard/hooks/useLocalStorage.ts
similarity index 100%
rename from hooks/useLocalStorage.ts
rename to apps/dashboard/hooks/useLocalStorage.ts
diff --git a/hooks/useOnClickOutside.ts b/apps/dashboard/hooks/useOnClickOutside.ts
similarity index 100%
rename from hooks/useOnClickOutside.ts
rename to apps/dashboard/hooks/useOnClickOutside.ts
diff --git a/hooks/useRenameLogUpload.ts b/apps/dashboard/hooks/useRenameLogUpload.ts
similarity index 100%
rename from hooks/useRenameLogUpload.ts
rename to apps/dashboard/hooks/useRenameLogUpload.ts
diff --git a/hooks/useRepositories.ts b/apps/dashboard/hooks/useRepositories.ts
similarity index 100%
rename from hooks/useRepositories.ts
rename to apps/dashboard/hooks/useRepositories.ts
diff --git a/hooks/useUploadLogUpload.ts b/apps/dashboard/hooks/useUploadLogUpload.ts
similarity index 94%
rename from hooks/useUploadLogUpload.ts
rename to apps/dashboard/hooks/useUploadLogUpload.ts
index b6e82fd60..62e5231df 100644
--- a/hooks/useUploadLogUpload.ts
+++ b/apps/dashboard/hooks/useUploadLogUpload.ts
@@ -1,4 +1,4 @@
-import { log_files } from 'db/prisma'
+import { log_files } from 'apps/dashboard/db/prisma'
import { useCallback } from 'react'
import useSWRMutation from 'swr/mutation'
diff --git a/next.config.js b/apps/dashboard/next.config.js
similarity index 100%
rename from next.config.js
rename to apps/dashboard/next.config.js
diff --git a/package-lock.json b/apps/dashboard/package-lock.json
similarity index 100%
rename from package-lock.json
rename to apps/dashboard/package-lock.json
diff --git a/package.json b/apps/dashboard/package.json
similarity index 100%
rename from package.json
rename to apps/dashboard/package.json
diff --git a/pages/_app.tsx b/apps/dashboard/pages/_app.tsx
similarity index 95%
rename from pages/_app.tsx
rename to apps/dashboard/pages/_app.tsx
index 033405bd5..9fc3e33cc 100644
--- a/pages/_app.tsx
+++ b/apps/dashboard/pages/_app.tsx
@@ -10,9 +10,9 @@ import { useRouter } from 'next/router'
import 'styles/global.css'
-import { Database } from 'db/supabase'
-import { clientCreds } from 'db/credentials'
-import Layout from 'components/Layout'
+import { Database } from 'apps/dashboard/db/supabase'
+import { clientCreds } from 'apps/dashboard/db/credentials'
+import Layout from 'apps/dashboard/components/Layout'
// Initialize PostHog
if (typeof window !== 'undefined' && process.env.NEXT_PUBLIC_POSTHOG_KEY) {
diff --git a/pages/agent/smol-developer/index.tsx b/apps/dashboard/pages/agent/smol-developer/index.tsx
similarity index 98%
rename from pages/agent/smol-developer/index.tsx
rename to apps/dashboard/pages/agent/smol-developer/index.tsx
index a45910ec9..d75454720 100644
--- a/pages/agent/smol-developer/index.tsx
+++ b/apps/dashboard/pages/agent/smol-developer/index.tsx
@@ -10,8 +10,8 @@ import {
} from '@supabase/auth-helpers-react'
import { usePostHog } from 'posthog-js/react'
-import SpinnerIcon from 'components/Spinner'
-import StarUs from 'components/StarUs'
+import SpinnerIcon from 'apps/dashboard/components/Spinner'
+import StarUs from 'apps/dashboard/components/StarUs'
function SmolDeveloper() {
const supabaseClient = useSupabaseClient()
diff --git a/pages/agent/smol-developer/setup.tsx b/apps/dashboard/pages/agent/smol-developer/setup.tsx
similarity index 93%
rename from pages/agent/smol-developer/setup.tsx
rename to apps/dashboard/pages/agent/smol-developer/setup.tsx
index 7e0283a92..aaf32cbad 100644
--- a/pages/agent/smol-developer/setup.tsx
+++ b/apps/dashboard/pages/agent/smol-developer/setup.tsx
@@ -14,20 +14,20 @@ import { usePostHog } from 'posthog-js/react'
import { nanoid } from 'nanoid'
import { useRouter } from 'next/router'
-import Steps from 'components/Steps'
-import SelectRepository from 'components/SelectRepository'
-import AgentInstructions from 'components/AgentInstructions'
-import DeployAgent from 'components/DeployAgent'
-import { serverCreds } from 'db/credentials'
+import Steps from 'apps/dashboard/components/Steps'
+import SelectRepository from 'apps/dashboard/components/SelectRepository'
+import AgentInstructions from 'apps/dashboard/components/AgentInstructions'
+import DeployAgent from 'apps/dashboard/components/DeployAgent'
+import { serverCreds } from 'apps/dashboard/db/credentials'
import { useGitHubClient } from 'hooks/useGitHubClient'
import { useRepositories } from 'hooks/useRepositories'
import { useLocalStorage } from 'hooks/useLocalStorage'
import useListenOnMessage from 'hooks/useListenOnMessage'
-import { GitHubAccount } from 'utils/github'
-import { RepoSetup } from 'utils/repoSetup'
-import StarUs from 'components/StarUs'
-import { smolDeveloperTemplateID } from 'utils/smolTemplates'
-import ChooseOpenAIKey from 'components/ChooseOpenAIKey'
+import { GitHubAccount } from 'apps/dashboard/utils/github'
+import { RepoSetup } from 'apps/dashboard/utils/repoSetup'
+import StarUs from 'apps/dashboard/components/StarUs'
+import { smolDeveloperTemplateID } from 'apps/dashboard/utils/smolTemplates'
+import ChooseOpenAIKey from 'apps/dashboard/components/ChooseOpenAIKey'
export interface PostAgentBody {
// ID of the installation of the GitHub App
diff --git a/pages/api/agent/index.ts b/apps/dashboard/pages/api/agent/index.ts
similarity index 97%
rename from pages/api/agent/index.ts
rename to apps/dashboard/pages/api/agent/index.ts
index 8ba9335e3..ecaae4b17 100644
--- a/pages/api/agent/index.ts
+++ b/apps/dashboard/pages/api/agent/index.ts
@@ -1,11 +1,11 @@
import { createServerSupabaseClient } from '@supabase/auth-helpers-nextjs'
import { NextApiRequest, NextApiResponse } from 'next'
import { nanoid } from 'nanoid'
-import { client as posthog } from 'utils/posthog'
+import { client as posthog } from 'apps/dashboard/utils/posthog'
import { PostAgentResponse } from 'pages/agent/smol-developer/setup'
-import { prisma } from 'db/prisma'
-import { serverCreds } from 'db/credentials'
+import { prisma } from 'apps/dashboard/db/prisma'
+import { serverCreds } from 'apps/dashboard/db/credentials'
import { PostAgentBody } from 'pages/agent/smol-developer/setup'
import { getGHInstallationClient } from 'github/installationClient'
import {
diff --git a/pages/api/agent/run.ts b/apps/dashboard/pages/api/agent/run.ts
similarity index 96%
rename from pages/api/agent/run.ts
rename to apps/dashboard/pages/api/agent/run.ts
index e5a623307..d43473f6b 100644
--- a/pages/api/agent/run.ts
+++ b/apps/dashboard/pages/api/agent/run.ts
@@ -1,12 +1,12 @@
import { NextApiRequest, NextApiResponse } from 'next'
-import { prisma } from 'db/prisma'
+import { prisma } from 'apps/dashboard/db/prisma'
import { getGHInstallationClient } from 'github/installationClient'
import { addCommentToPR } from 'github/pullRequest'
-import { client as posthog } from 'utils/posthog'
+import { client as posthog } from 'apps/dashboard/utils/posthog'
import { DeploymentAuthData } from '.'
-import { smolDeveloperTemplateID } from 'utils/smolTemplates'
+import { smolDeveloperTemplateID } from 'apps/dashboard/utils/smolTemplates'
// Indicate that the agent state changed (run finished)
async function postRun(req: NextApiRequest, res: NextApiResponse) {
diff --git a/pages/api/badge.ts b/apps/dashboard/pages/api/badge.ts
similarity index 100%
rename from pages/api/badge.ts
rename to apps/dashboard/pages/api/badge.ts
diff --git a/pages/api/badge_light.ts b/apps/dashboard/pages/api/badge_light.ts
similarity index 100%
rename from pages/api/badge_light.ts
rename to apps/dashboard/pages/api/badge_light.ts
diff --git a/pages/api/feedback.ts b/apps/dashboard/pages/api/feedback.ts
similarity index 92%
rename from pages/api/feedback.ts
rename to apps/dashboard/pages/api/feedback.ts
index 4430ee979..c54ae189d 100644
--- a/pages/api/feedback.ts
+++ b/apps/dashboard/pages/api/feedback.ts
@@ -1,8 +1,8 @@
import { createServerSupabaseClient } from '@supabase/auth-helpers-nextjs'
import { NextApiRequest, NextApiResponse } from 'next'
-import { prisma } from 'db/prisma'
-import { serverCreds } from 'db/credentials'
+import { prisma } from 'apps/dashboard/db/prisma'
+import { serverCreds } from 'apps/dashboard/db/credentials'
import { PostFeedback } from 'hooks/useAddFeedback'
async function postFeedback(req: NextApiRequest, res: NextApiResponse) {
diff --git a/pages/api/github/oauth.ts b/apps/dashboard/pages/api/github/oauth.ts
similarity index 100%
rename from pages/api/github/oauth.ts
rename to apps/dashboard/pages/api/github/oauth.ts
diff --git a/pages/api/github/webhook.ts b/apps/dashboard/pages/api/github/webhook.ts
similarity index 100%
rename from pages/api/github/webhook.ts
rename to apps/dashboard/pages/api/github/webhook.ts
diff --git a/pages/api/log_upload/index.ts b/apps/dashboard/pages/api/log_upload/index.ts
similarity index 98%
rename from pages/api/log_upload/index.ts
rename to apps/dashboard/pages/api/log_upload/index.ts
index dd592b0d3..7e027a2da 100644
--- a/pages/api/log_upload/index.ts
+++ b/apps/dashboard/pages/api/log_upload/index.ts
@@ -1,8 +1,8 @@
import { createServerSupabaseClient } from '@supabase/auth-helpers-nextjs'
import { NextApiRequest, NextApiResponse } from 'next'
-import { prisma } from 'db/prisma'
-import { serverCreds } from 'db/credentials'
+import { prisma } from 'apps/dashboard/db/prisma'
+import { serverCreds } from 'apps/dashboard/db/credentials'
import { PostLogUpload } from 'hooks/useUploadLogUpload'
import { DeleteLogUpload } from 'hooks/useDeleteLogUpload'
import { PatchLogUpload } from 'hooks/useRenameLogUpload'
diff --git a/pages/api/log_upload/tag.ts b/apps/dashboard/pages/api/log_upload/tag.ts
similarity index 96%
rename from pages/api/log_upload/tag.ts
rename to apps/dashboard/pages/api/log_upload/tag.ts
index df5dced79..29bf1c1de 100644
--- a/pages/api/log_upload/tag.ts
+++ b/apps/dashboard/pages/api/log_upload/tag.ts
@@ -1,8 +1,8 @@
import { createServerSupabaseClient } from '@supabase/auth-helpers-nextjs'
import { NextApiRequest, NextApiResponse } from 'next'
-import { prisma } from 'db/prisma'
-import { serverCreds } from 'db/credentials'
+import { prisma } from 'apps/dashboard/db/prisma'
+import { serverCreds } from 'apps/dashboard/db/credentials'
import { DeleteLogUploadTag } from 'hooks/useDeleteLogUploadTag'
import { PostLogUploadTag } from 'hooks/useAddLogUploadTag'
diff --git a/pages/api/service/[...all].ts b/apps/dashboard/pages/api/service/[...all].ts
similarity index 100%
rename from pages/api/service/[...all].ts
rename to apps/dashboard/pages/api/service/[...all].ts
diff --git a/pages/api/supabase/[...all].ts b/apps/dashboard/pages/api/supabase/[...all].ts
similarity index 100%
rename from pages/api/supabase/[...all].ts
rename to apps/dashboard/pages/api/supabase/[...all].ts
diff --git a/pages/github/callback.ts b/apps/dashboard/pages/github/callback.ts
similarity index 100%
rename from pages/github/callback.ts
rename to apps/dashboard/pages/github/callback.ts
diff --git a/pages/index.tsx b/apps/dashboard/pages/index.tsx
similarity index 95%
rename from pages/index.tsx
rename to apps/dashboard/pages/index.tsx
index 8dc88f7bb..f041125cf 100644
--- a/pages/index.tsx
+++ b/apps/dashboard/pages/index.tsx
@@ -2,10 +2,10 @@ import type { GetServerSideProps } from 'next'
import { createServerSupabaseClient } from '@supabase/auth-helpers-nextjs'
import { nanoid } from 'nanoid'
-import { prisma, projects, log_uploads } from 'db/prisma'
-import { serverCreds } from 'db/credentials'
-import DashboardHome from 'components/DashboardHome'
-import { LiteDeployment } from 'utils/agentLogs'
+import { prisma, projects, log_uploads } from 'apps/dashboard/db/prisma'
+import { serverCreds } from 'apps/dashboard/db/credentials'
+import DashboardHome from 'apps/dashboard/components/DashboardHome'
+import { LiteDeployment } from 'apps/dashboard/utils/agentLogs'
export interface Props {
projects: (projects & { log_uploads: log_uploads[], deployments: LiteDeployment[] })[]
diff --git a/pages/logs/[slug].tsx b/apps/dashboard/pages/logs/[slug].tsx
similarity index 87%
rename from pages/logs/[slug].tsx
rename to apps/dashboard/pages/logs/[slug].tsx
index 27f21353d..0406d7956 100644
--- a/pages/logs/[slug].tsx
+++ b/apps/dashboard/pages/logs/[slug].tsx
@@ -2,11 +2,11 @@ import type { GetServerSideProps } from 'next'
import { createServerSupabaseClient } from '@supabase/auth-helpers-nextjs'
import type { ParsedUrlQuery } from 'querystring'
-import { prisma, log_files, deployments } from 'db/prisma'
-import { serverCreds } from 'db/credentials'
-import { LiteDeploymentLog } from 'utils/agentLogs'
-import AgentRunLogContent from 'components/AgentRunLogContent'
-import { wait } from 'utils/wait'
+import { prisma, log_files, deployments } from 'apps/dashboard/db/prisma'
+import { serverCreds } from 'apps/dashboard/db/credentials'
+import { LiteDeploymentLog } from 'apps/dashboard/utils/agentLogs'
+import AgentRunLogContent from 'apps/dashboard/components/AgentRunLogContent'
+import { wait } from 'apps/dashboard/utils/wait'
interface PathProps extends ParsedUrlQuery {
slug: string
diff --git a/pages/sign.tsx b/apps/dashboard/pages/sign.tsx
similarity index 97%
rename from pages/sign.tsx
rename to apps/dashboard/pages/sign.tsx
index 0db8a291b..6f5cde479 100644
--- a/pages/sign.tsx
+++ b/apps/dashboard/pages/sign.tsx
@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
import { useSessionContext, useSupabaseClient, useUser } from '@supabase/auth-helpers-react'
import { useEffect, useState } from 'react'
-import Spinner from 'components/Spinner'
+import Spinner from 'apps/dashboard/components/Spinner'
import { Github } from 'lucide-react'
function SignIn() {
diff --git a/postcss.config.js b/apps/dashboard/postcss.config.js
similarity index 100%
rename from postcss.config.js
rename to apps/dashboard/postcss.config.js
diff --git a/public/anthropic.png b/apps/dashboard/public/anthropic.png
similarity index 100%
rename from public/anthropic.png
rename to apps/dashboard/public/anthropic.png
diff --git a/public/azure-open-ai.png b/apps/dashboard/public/azure-open-ai.png
similarity index 100%
rename from public/azure-open-ai.png
rename to apps/dashboard/public/azure-open-ai.png
diff --git a/public/banana.png b/apps/dashboard/public/banana.png
similarity index 100%
rename from public/banana.png
rename to apps/dashboard/public/banana.png
diff --git a/public/favicon.png b/apps/dashboard/public/favicon.png
similarity index 100%
rename from public/favicon.png
rename to apps/dashboard/public/favicon.png
diff --git a/public/graphics.png b/apps/dashboard/public/graphics.png
similarity index 100%
rename from public/graphics.png
rename to apps/dashboard/public/graphics.png
diff --git a/public/hugging-face.png b/apps/dashboard/public/hugging-face.png
similarity index 100%
rename from public/hugging-face.png
rename to apps/dashboard/public/hugging-face.png
diff --git a/public/open-ai.png b/apps/dashboard/public/open-ai.png
similarity index 100%
rename from public/open-ai.png
rename to apps/dashboard/public/open-ai.png
diff --git a/public/replicate.png b/apps/dashboard/public/replicate.png
similarity index 100%
rename from public/replicate.png
rename to apps/dashboard/public/replicate.png
diff --git a/sentry.client.config.ts b/apps/dashboard/sentry.client.config.ts
similarity index 100%
rename from sentry.client.config.ts
rename to apps/dashboard/sentry.client.config.ts
diff --git a/sentry.edge.config.ts b/apps/dashboard/sentry.edge.config.ts
similarity index 100%
rename from sentry.edge.config.ts
rename to apps/dashboard/sentry.edge.config.ts
diff --git a/sentry.server.config.ts b/apps/dashboard/sentry.server.config.ts
similarity index 100%
rename from sentry.server.config.ts
rename to apps/dashboard/sentry.server.config.ts
diff --git a/styles/global.css b/apps/dashboard/styles/global.css
similarity index 100%
rename from styles/global.css
rename to apps/dashboard/styles/global.css
diff --git a/styles/prosemirror.css b/apps/dashboard/styles/prosemirror.css
similarity index 100%
rename from styles/prosemirror.css
rename to apps/dashboard/styles/prosemirror.css
diff --git a/tailwind.config.js b/apps/dashboard/tailwind.config.js
similarity index 100%
rename from tailwind.config.js
rename to apps/dashboard/tailwind.config.js
diff --git a/tsconfig.json b/apps/dashboard/tsconfig.json
similarity index 100%
rename from tsconfig.json
rename to apps/dashboard/tsconfig.json
diff --git a/utils/agentLogs.ts b/apps/dashboard/utils/agentLogs.ts
similarity index 95%
rename from utils/agentLogs.ts
rename to apps/dashboard/utils/agentLogs.ts
index 6cef34ff3..c5d599d79 100644
--- a/utils/agentLogs.ts
+++ b/apps/dashboard/utils/agentLogs.ts
@@ -1,4 +1,4 @@
-import { deployments, log_files, log_uploads } from 'db/prisma'
+import { deployments, log_files, log_uploads } from 'apps/dashboard/db/prisma'
export interface LiteDeploymentLog extends Omit<log_files, 'content'> {
content: any
diff --git a/utils/formatLogFileContent.ts b/apps/dashboard/utils/formatLogFileContent.ts
similarity index 96%
rename from utils/formatLogFileContent.ts
rename to apps/dashboard/utils/formatLogFileContent.ts
index 09ff4526e..9a2eb430f 100644
--- a/utils/formatLogFileContent.ts
+++ b/apps/dashboard/utils/formatLogFileContent.ts
@@ -1,6 +1,6 @@
import path from 'path-browserify'
-import { log_files } from 'db/prisma'
+import { log_files } from 'apps/dashboard/db/prisma'
import { AgentNextActionLog, AgentPromptLogs } from './agentLogs'
diff --git a/utils/github.ts b/apps/dashboard/utils/github.ts
similarity index 87%
rename from utils/github.ts
rename to apps/dashboard/utils/github.ts
index 4bade856c..0e21929c9 100644
--- a/utils/github.ts
+++ b/apps/dashboard/utils/github.ts
@@ -1,4 +1,4 @@
-import { openPopupModal } from 'utils/popupModal'
+import { openPopupModal } from 'apps/dashboard/utils/popupModal'
export interface GitHubAccount {
name: string
diff --git a/utils/gtag.ts b/apps/dashboard/utils/gtag.ts
similarity index 100%
rename from utils/gtag.ts
rename to apps/dashboard/utils/gtag.ts
diff --git a/utils/logger.ts b/apps/dashboard/utils/logger.ts
similarity index 100%
rename from utils/logger.ts
rename to apps/dashboard/utils/logger.ts
diff --git a/utils/popupModal.ts b/apps/dashboard/utils/popupModal.ts
similarity index 100%
rename from utils/popupModal.ts
rename to apps/dashboard/utils/popupModal.ts
diff --git a/utils/posthog.ts b/apps/dashboard/utils/posthog.ts
similarity index 100%
rename from utils/posthog.ts
rename to apps/dashboard/utils/posthog.ts
diff --git a/utils/repoSetup.ts b/apps/dashboard/utils/repoSetup.ts
similarity index 100%
rename from utils/repoSetup.ts
rename to apps/dashboard/utils/repoSetup.ts
diff --git a/utils/smolTemplates.ts b/apps/dashboard/utils/smolTemplates.ts
similarity index 100%
rename from utils/smolTemplates.ts
rename to apps/dashboard/utils/smolTemplates.ts
diff --git a/utils/wait.ts b/apps/dashboard/utils/wait.ts
similarity index 100%
rename from utils/wait.ts
rename to apps/dashboard/utils/wait.ts
diff --git a/vercel.json b/apps/dashboard/vercel.json
similarity index 100%
rename from vercel.json
rename to apps/dashboard/vercel.json