From 7c9e8296bfed515cabf06c825df61fe4fd8cb3db Mon Sep 17 00:00:00 2001 From: Roberto Date: Fri, 12 Jun 2026 17:31:58 +0200 Subject: [PATCH] Spostati i file del Repo api nella sua sottocartella per l'unione --- .env.example => api/.env.example | 0 {.gitea => api/.gitea}/workflows/deploy.yaml | 0 {.github => api/.github}/workflows/ci.yml | 0 .gitignore => api/.gitignore | 0 Dockerfile => api/Dockerfile | 0 README.md => api/README.md | 0 alembic.ini => api/alembic.ini | 0 {alembic => api/alembic}/env.py | 0 {alembic => api/alembic}/script.py.mako | 0 {alembic => api/alembic}/versions/001_initial_schema.py | 0 {alembic => api/alembic}/versions/003_agent_tables.py | 0 {alembic => api/alembic}/versions/004_add_memory_tables.py | 0 {alembic => api/alembic}/versions/005_associative_pgvector.py | 0 {alembic => api/alembic}/versions/006_memory_relations.py | 0 {alembic => api/alembic}/versions/007_rename_agents_to_scouts.py | 0 {alembic => api/alembic}/versions/008_scout_triage_queue.py | 0 .../alembic}/versions/009_cloud_scout_gmail_address.py | 0 .../alembic}/versions/1f5975a4f3f4_add_extraction_queue.py | 0 .../versions/818478c251dc_add_name_and_surname_to_users_table.py | 0 .../9a1f2d0b6c7e_deprecate_backend_agent_config_tables.py | 0 .../versions/a3b9c0d1e2f3_add_agent_config_to_local_agents.py | 0 .../alembic}/versions/b4c0d1e2f3a4_add_oauth_and_avatar.py | 0 .../alembic}/versions/c5d1e2f3a4b5_add_onboarding_completed_at.py | 0 .../alembic}/versions/d6e3f4a5b6c7_folder_index_tables.py | 0 .../alembic}/versions/e04100e88ace_avatar_url_varchar_to_text.py | 0 {app => api/app}/__init__.py | 0 {app => api/app}/agents/__init__.py | 0 {app => api/app}/agents/client_agent.py | 0 {app => api/app}/agents/filesystem_agent.py | 0 {app => api/app}/agents/folder_agent.py | 0 {app => api/app}/agents/note_agent.py | 0 {app => api/app}/agents/project_agent.py | 0 {app => api/app}/agents/relations_agent.py | 0 {app => api/app}/agents/task_agent.py | 0 {app => api/app}/agents/timeline_agent.py | 0 {app => api/app}/api/__init__.py | 0 {app => api/app}/api/deps.py | 0 {app => api/app}/api/middleware/__init__.py | 0 {app => api/app}/api/middleware/auth.py | 0 {app => api/app}/api/middleware/rate_limit.py | 0 {app => api/app}/api/middleware/sanitizer.py | 0 {app => api/app}/api/routes/__init__.py | 0 {app => api/app}/api/routes/auth.py | 0 {app => api/app}/api/routes/billing.py | 0 {app => api/app}/api/routes/chat.py | 0 {app => api/app}/api/routes/device_ws.py | 0 {app => api/app}/api/routes/memory.py | 0 {app => api/app}/api/routes/scout_setup.py | 0 {app => api/app}/api/routes/scout_webhooks.py | 0 {app => api/app}/api/routes/scouts.py | 0 {app => api/app}/auth/__init__.py | 0 {app => api/app}/auth/oauth_providers.py | 0 {app => api/app}/billing/__init__.py | 0 {app => api/app}/billing/quota.py | 0 {app => api/app}/billing/stripe_service.py | 0 {app => api/app}/billing/tier_manager.py | 0 {app => api/app}/config/__init__.py | 0 {app => api/app}/config/settings.py | 0 {app => api/app}/core/__init__.py | 0 {app => api/app}/core/brief_agent.py | 0 {app => api/app}/core/deep_agent.py | 0 {app => api/app}/core/device_manager.py | 0 {app => api/app}/core/embeddings.py | 0 {app => api/app}/core/folder_indexer.py | 0 {app => api/app}/core/langfuse_client.py | 0 {app => api/app}/core/llm.py | 0 {app => api/app}/core/memory_extraction.py | 0 {app => api/app}/core/memory_maintenance.py | 0 {app => api/app}/core/memory_middleware.py | 0 {app => api/app}/core/note_summarizer.py | 0 {app => api/app}/core/output_formatter.py | 0 {app => api/app}/core/preprocessors/__init__.py | 0 {app => api/app}/core/preprocessors/base.py | 0 {app => api/app}/core/preprocessors/email_html.py | 0 {app => api/app}/core/scout_registry.py | 0 {app => api/app}/core/scout_runner.py | 0 {app => api/app}/core/scout_session_buffer.py | 0 {app => api/app}/core/ws_context.py | 0 {app => api/app}/db.py | 0 {app => api/app}/integrations/__init__.py | 0 {app => api/app}/integrations/gmail.py | 0 {app => api/app}/integrations/ms_graph.py | 0 {app => api/app}/main.py | 0 {app => api/app}/models.py | 0 {app => api/app}/schemas/__init__.py | 0 {app => api/app}/schemas/contextual.py | 0 {app => api/app}/scouts/__init__.py | 0 {app => api/app}/scouts/connectors/__init__.py | 0 {app => api/app}/scouts/connectors/base.py | 0 {app => api/app}/scouts/connectors/gmail.py | 0 {app => api/app}/scouts/connectors/registry.py | 0 {app => api/app}/scouts/engine.py | 0 docker-compose.yml => api/docker-compose.yml | 0 logging.conf => api/logging.conf | 0 requirements.txt => api/requirements.txt | 0 results.xml => api/results.xml | 0 {scripts => api/scripts}/inspect_gmail_scout_token.py | 0 {scripts => api/scripts}/reset_triage_queue_to_queued.py | 0 {scripts => api/scripts}/show_gmail_scout_state.py | 0 {scripts => api/scripts}/trigger_gmail_scout.py | 0 {tests => api/tests}/__init__.py | 0 {tests => api/tests}/conftest.py | 0 {tests => api/tests}/fixtures/agent_runner_v2/cases.yaml | 0 .../tests}/fixtures/agent_runner_v2/data/email_action.html | 0 .../tests}/fixtures/agent_runner_v2/data/email_date.html | 0 .../tests}/fixtures/agent_runner_v2/data/email_info.html | 0 .../tests}/fixtures/agent_runner_v2/data/email_no_project.html | 0 {tests => api/tests}/fixtures/journey_v2/cases.yaml | 0 {tests => api/tests}/fixtures/journey_v2/data/email_action.html | 0 {tests => api/tests}/fixtures/journey_v2/data/email_info.html | 0 {tests => api/tests}/fixtures/preprocessors/cases.yaml | 0 .../tests}/fixtures/preprocessors/data/email_action.html | 0 {tests => api/tests}/fixtures/preprocessors/data/email_heavy.html | 0 .../tests}/fixtures/preprocessors/data/email_single.html | 0 .../tests}/fixtures/preprocessors/data/email_thread.html | 0 {tests => api/tests}/fixtures/preprocessors/data/fallback.txt | 0 .../tests}/fixtures/preprocessors/data/generic_page.html | 0 {tests => api/tests}/fixtures/preprocessors/data/notes.txt | 0 {tests => api/tests}/test_agent_runner_v2.py | 0 {tests => api/tests}/test_auth.py | 0 {tests => api/tests}/test_brief_agent.py | 0 {tests => api/tests}/test_contextual_scope.py | 0 {tests => api/tests}/test_contextual_ws.py | 0 {tests => api/tests}/test_deep_agent.py | 0 {tests => api/tests}/test_device_ws.py | 0 {tests => api/tests}/test_folder_agent_tool.py | 0 {tests => api/tests}/test_folder_indexer.py | 0 {tests => api/tests}/test_folder_quota.py | 0 {tests => api/tests}/test_integrations.py | 0 {tests => api/tests}/test_journey_v2.py | 0 {tests => api/tests}/test_manifest_injection.py | 0 {tests => api/tests}/test_memory_audit.py | 0 {tests => api/tests}/test_memory_extraction.py | 0 {tests => api/tests}/test_memory_middleware.py | 0 {tests => api/tests}/test_memory_models.py | 0 {tests => api/tests}/test_memory_proactive.py | 0 {tests => api/tests}/test_memory_relations.py | 0 {tests => api/tests}/test_middleware.py | 0 {tests => api/tests}/test_output_formatter.py | 0 {tests => api/tests}/test_preprocessors.py | 0 {tests => api/tests}/test_run_contextual.py | 0 {tests => api/tests}/test_schemas_v3.py | 0 {tests => api/tests}/test_scout_cloud_crud.py | 0 {tests => api/tests}/test_scout_connector_registry.py | 0 {tests => api/tests}/test_scout_connectors_base.py | 0 {tests => api/tests}/test_scout_connectors_gmail.py | 0 {tests => api/tests}/test_scout_engine.py | 0 {tests => api/tests}/test_scout_webhook.py | 0 {tests => api/tests}/test_ws_index_session.py | 0 {tests => api/tests}/test_ws_unified.py | 0 150 files changed, 0 insertions(+), 0 deletions(-) rename .env.example => api/.env.example (100%) rename {.gitea => api/.gitea}/workflows/deploy.yaml (100%) rename {.github => api/.github}/workflows/ci.yml (100%) rename .gitignore => api/.gitignore (100%) rename Dockerfile => api/Dockerfile (100%) rename README.md => api/README.md (100%) rename alembic.ini => api/alembic.ini (100%) rename {alembic => api/alembic}/env.py (100%) rename {alembic => api/alembic}/script.py.mako (100%) rename {alembic => api/alembic}/versions/001_initial_schema.py (100%) rename {alembic => api/alembic}/versions/003_agent_tables.py (100%) rename {alembic => api/alembic}/versions/004_add_memory_tables.py (100%) rename {alembic => api/alembic}/versions/005_associative_pgvector.py (100%) rename {alembic => api/alembic}/versions/006_memory_relations.py (100%) rename {alembic => api/alembic}/versions/007_rename_agents_to_scouts.py (100%) rename {alembic => api/alembic}/versions/008_scout_triage_queue.py (100%) rename {alembic => api/alembic}/versions/009_cloud_scout_gmail_address.py (100%) rename {alembic => api/alembic}/versions/1f5975a4f3f4_add_extraction_queue.py (100%) rename {alembic => api/alembic}/versions/818478c251dc_add_name_and_surname_to_users_table.py (100%) rename {alembic => api/alembic}/versions/9a1f2d0b6c7e_deprecate_backend_agent_config_tables.py (100%) rename {alembic => api/alembic}/versions/a3b9c0d1e2f3_add_agent_config_to_local_agents.py (100%) rename {alembic => api/alembic}/versions/b4c0d1e2f3a4_add_oauth_and_avatar.py (100%) rename {alembic => api/alembic}/versions/c5d1e2f3a4b5_add_onboarding_completed_at.py (100%) rename {alembic => api/alembic}/versions/d6e3f4a5b6c7_folder_index_tables.py (100%) rename {alembic => api/alembic}/versions/e04100e88ace_avatar_url_varchar_to_text.py (100%) rename {app => api/app}/__init__.py (100%) rename {app => api/app}/agents/__init__.py (100%) rename {app => api/app}/agents/client_agent.py (100%) rename {app => api/app}/agents/filesystem_agent.py (100%) rename {app => api/app}/agents/folder_agent.py (100%) rename {app => api/app}/agents/note_agent.py (100%) rename {app => api/app}/agents/project_agent.py (100%) rename {app => api/app}/agents/relations_agent.py (100%) rename {app => api/app}/agents/task_agent.py (100%) rename {app => api/app}/agents/timeline_agent.py (100%) rename {app => api/app}/api/__init__.py (100%) rename {app => api/app}/api/deps.py (100%) rename {app => api/app}/api/middleware/__init__.py (100%) rename {app => api/app}/api/middleware/auth.py (100%) rename {app => api/app}/api/middleware/rate_limit.py (100%) rename {app => api/app}/api/middleware/sanitizer.py (100%) rename {app => api/app}/api/routes/__init__.py (100%) rename {app => api/app}/api/routes/auth.py (100%) rename {app => api/app}/api/routes/billing.py (100%) rename {app => api/app}/api/routes/chat.py (100%) rename {app => api/app}/api/routes/device_ws.py (100%) rename {app => api/app}/api/routes/memory.py (100%) rename {app => api/app}/api/routes/scout_setup.py (100%) rename {app => api/app}/api/routes/scout_webhooks.py (100%) rename {app => api/app}/api/routes/scouts.py (100%) rename {app => api/app}/auth/__init__.py (100%) rename {app => api/app}/auth/oauth_providers.py (100%) rename {app => api/app}/billing/__init__.py (100%) rename {app => api/app}/billing/quota.py (100%) rename {app => api/app}/billing/stripe_service.py (100%) rename {app => api/app}/billing/tier_manager.py (100%) rename {app => api/app}/config/__init__.py (100%) rename {app => api/app}/config/settings.py (100%) rename {app => api/app}/core/__init__.py (100%) rename {app => api/app}/core/brief_agent.py (100%) rename {app => api/app}/core/deep_agent.py (100%) rename {app => api/app}/core/device_manager.py (100%) rename {app => api/app}/core/embeddings.py (100%) rename {app => api/app}/core/folder_indexer.py (100%) rename {app => api/app}/core/langfuse_client.py (100%) rename {app => api/app}/core/llm.py (100%) rename {app => api/app}/core/memory_extraction.py (100%) rename {app => api/app}/core/memory_maintenance.py (100%) rename {app => api/app}/core/memory_middleware.py (100%) rename {app => api/app}/core/note_summarizer.py (100%) rename {app => api/app}/core/output_formatter.py (100%) rename {app => api/app}/core/preprocessors/__init__.py (100%) rename {app => api/app}/core/preprocessors/base.py (100%) rename {app => api/app}/core/preprocessors/email_html.py (100%) rename {app => api/app}/core/scout_registry.py (100%) rename {app => api/app}/core/scout_runner.py (100%) rename {app => api/app}/core/scout_session_buffer.py (100%) rename {app => api/app}/core/ws_context.py (100%) rename {app => api/app}/db.py (100%) rename {app => api/app}/integrations/__init__.py (100%) rename {app => api/app}/integrations/gmail.py (100%) rename {app => api/app}/integrations/ms_graph.py (100%) rename {app => api/app}/main.py (100%) rename {app => api/app}/models.py (100%) rename {app => api/app}/schemas/__init__.py (100%) rename {app => api/app}/schemas/contextual.py (100%) rename {app => api/app}/scouts/__init__.py (100%) rename {app => api/app}/scouts/connectors/__init__.py (100%) rename {app => api/app}/scouts/connectors/base.py (100%) rename {app => api/app}/scouts/connectors/gmail.py (100%) rename {app => api/app}/scouts/connectors/registry.py (100%) rename {app => api/app}/scouts/engine.py (100%) rename docker-compose.yml => api/docker-compose.yml (100%) rename logging.conf => api/logging.conf (100%) rename requirements.txt => api/requirements.txt (100%) rename results.xml => api/results.xml (100%) rename {scripts => api/scripts}/inspect_gmail_scout_token.py (100%) rename {scripts => api/scripts}/reset_triage_queue_to_queued.py (100%) rename {scripts => api/scripts}/show_gmail_scout_state.py (100%) rename {scripts => api/scripts}/trigger_gmail_scout.py (100%) rename {tests => api/tests}/__init__.py (100%) rename {tests => api/tests}/conftest.py (100%) rename {tests => api/tests}/fixtures/agent_runner_v2/cases.yaml (100%) rename {tests => api/tests}/fixtures/agent_runner_v2/data/email_action.html (100%) rename {tests => api/tests}/fixtures/agent_runner_v2/data/email_date.html (100%) rename {tests => api/tests}/fixtures/agent_runner_v2/data/email_info.html (100%) rename {tests => api/tests}/fixtures/agent_runner_v2/data/email_no_project.html (100%) rename {tests => api/tests}/fixtures/journey_v2/cases.yaml (100%) rename {tests => api/tests}/fixtures/journey_v2/data/email_action.html (100%) rename {tests => api/tests}/fixtures/journey_v2/data/email_info.html (100%) rename {tests => api/tests}/fixtures/preprocessors/cases.yaml (100%) rename {tests => api/tests}/fixtures/preprocessors/data/email_action.html (100%) rename {tests => api/tests}/fixtures/preprocessors/data/email_heavy.html (100%) rename {tests => api/tests}/fixtures/preprocessors/data/email_single.html (100%) rename {tests => api/tests}/fixtures/preprocessors/data/email_thread.html (100%) rename {tests => api/tests}/fixtures/preprocessors/data/fallback.txt (100%) rename {tests => api/tests}/fixtures/preprocessors/data/generic_page.html (100%) rename {tests => api/tests}/fixtures/preprocessors/data/notes.txt (100%) rename {tests => api/tests}/test_agent_runner_v2.py (100%) rename {tests => api/tests}/test_auth.py (100%) rename {tests => api/tests}/test_brief_agent.py (100%) rename {tests => api/tests}/test_contextual_scope.py (100%) rename {tests => api/tests}/test_contextual_ws.py (100%) rename {tests => api/tests}/test_deep_agent.py (100%) rename {tests => api/tests}/test_device_ws.py (100%) rename {tests => api/tests}/test_folder_agent_tool.py (100%) rename {tests => api/tests}/test_folder_indexer.py (100%) rename {tests => api/tests}/test_folder_quota.py (100%) rename {tests => api/tests}/test_integrations.py (100%) rename {tests => api/tests}/test_journey_v2.py (100%) rename {tests => api/tests}/test_manifest_injection.py (100%) rename {tests => api/tests}/test_memory_audit.py (100%) rename {tests => api/tests}/test_memory_extraction.py (100%) rename {tests => api/tests}/test_memory_middleware.py (100%) rename {tests => api/tests}/test_memory_models.py (100%) rename {tests => api/tests}/test_memory_proactive.py (100%) rename {tests => api/tests}/test_memory_relations.py (100%) rename {tests => api/tests}/test_middleware.py (100%) rename {tests => api/tests}/test_output_formatter.py (100%) rename {tests => api/tests}/test_preprocessors.py (100%) rename {tests => api/tests}/test_run_contextual.py (100%) rename {tests => api/tests}/test_schemas_v3.py (100%) rename {tests => api/tests}/test_scout_cloud_crud.py (100%) rename {tests => api/tests}/test_scout_connector_registry.py (100%) rename {tests => api/tests}/test_scout_connectors_base.py (100%) rename {tests => api/tests}/test_scout_connectors_gmail.py (100%) rename {tests => api/tests}/test_scout_engine.py (100%) rename {tests => api/tests}/test_scout_webhook.py (100%) rename {tests => api/tests}/test_ws_index_session.py (100%) rename {tests => api/tests}/test_ws_unified.py (100%) diff --git a/.env.example b/api/.env.example similarity index 100% rename from .env.example rename to api/.env.example diff --git a/.gitea/workflows/deploy.yaml b/api/.gitea/workflows/deploy.yaml similarity index 100% rename from .gitea/workflows/deploy.yaml rename to api/.gitea/workflows/deploy.yaml diff --git a/.github/workflows/ci.yml b/api/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/ci.yml rename to api/.github/workflows/ci.yml diff --git a/.gitignore b/api/.gitignore similarity index 100% rename from .gitignore rename to api/.gitignore diff --git a/Dockerfile b/api/Dockerfile similarity index 100% rename from Dockerfile rename to api/Dockerfile diff --git a/README.md b/api/README.md similarity index 100% rename from README.md rename to api/README.md diff --git a/alembic.ini b/api/alembic.ini similarity index 100% rename from alembic.ini rename to api/alembic.ini diff --git a/alembic/env.py b/api/alembic/env.py similarity index 100% rename from alembic/env.py rename to api/alembic/env.py diff --git a/alembic/script.py.mako b/api/alembic/script.py.mako similarity index 100% rename from alembic/script.py.mako rename to api/alembic/script.py.mako diff --git a/alembic/versions/001_initial_schema.py b/api/alembic/versions/001_initial_schema.py similarity index 100% rename from alembic/versions/001_initial_schema.py rename to api/alembic/versions/001_initial_schema.py diff --git a/alembic/versions/003_agent_tables.py b/api/alembic/versions/003_agent_tables.py similarity index 100% rename from alembic/versions/003_agent_tables.py rename to api/alembic/versions/003_agent_tables.py diff --git a/alembic/versions/004_add_memory_tables.py b/api/alembic/versions/004_add_memory_tables.py similarity index 100% rename from alembic/versions/004_add_memory_tables.py rename to api/alembic/versions/004_add_memory_tables.py diff --git a/alembic/versions/005_associative_pgvector.py b/api/alembic/versions/005_associative_pgvector.py similarity index 100% rename from alembic/versions/005_associative_pgvector.py rename to api/alembic/versions/005_associative_pgvector.py diff --git a/alembic/versions/006_memory_relations.py b/api/alembic/versions/006_memory_relations.py similarity index 100% rename from alembic/versions/006_memory_relations.py rename to api/alembic/versions/006_memory_relations.py diff --git a/alembic/versions/007_rename_agents_to_scouts.py b/api/alembic/versions/007_rename_agents_to_scouts.py similarity index 100% rename from alembic/versions/007_rename_agents_to_scouts.py rename to api/alembic/versions/007_rename_agents_to_scouts.py diff --git a/alembic/versions/008_scout_triage_queue.py b/api/alembic/versions/008_scout_triage_queue.py similarity index 100% rename from alembic/versions/008_scout_triage_queue.py rename to api/alembic/versions/008_scout_triage_queue.py diff --git a/alembic/versions/009_cloud_scout_gmail_address.py b/api/alembic/versions/009_cloud_scout_gmail_address.py similarity index 100% rename from alembic/versions/009_cloud_scout_gmail_address.py rename to api/alembic/versions/009_cloud_scout_gmail_address.py diff --git a/alembic/versions/1f5975a4f3f4_add_extraction_queue.py b/api/alembic/versions/1f5975a4f3f4_add_extraction_queue.py similarity index 100% rename from alembic/versions/1f5975a4f3f4_add_extraction_queue.py rename to api/alembic/versions/1f5975a4f3f4_add_extraction_queue.py diff --git a/alembic/versions/818478c251dc_add_name_and_surname_to_users_table.py b/api/alembic/versions/818478c251dc_add_name_and_surname_to_users_table.py similarity index 100% rename from alembic/versions/818478c251dc_add_name_and_surname_to_users_table.py rename to api/alembic/versions/818478c251dc_add_name_and_surname_to_users_table.py diff --git a/alembic/versions/9a1f2d0b6c7e_deprecate_backend_agent_config_tables.py b/api/alembic/versions/9a1f2d0b6c7e_deprecate_backend_agent_config_tables.py similarity index 100% rename from alembic/versions/9a1f2d0b6c7e_deprecate_backend_agent_config_tables.py rename to api/alembic/versions/9a1f2d0b6c7e_deprecate_backend_agent_config_tables.py diff --git a/alembic/versions/a3b9c0d1e2f3_add_agent_config_to_local_agents.py b/api/alembic/versions/a3b9c0d1e2f3_add_agent_config_to_local_agents.py similarity index 100% rename from alembic/versions/a3b9c0d1e2f3_add_agent_config_to_local_agents.py rename to api/alembic/versions/a3b9c0d1e2f3_add_agent_config_to_local_agents.py diff --git a/alembic/versions/b4c0d1e2f3a4_add_oauth_and_avatar.py b/api/alembic/versions/b4c0d1e2f3a4_add_oauth_and_avatar.py similarity index 100% rename from alembic/versions/b4c0d1e2f3a4_add_oauth_and_avatar.py rename to api/alembic/versions/b4c0d1e2f3a4_add_oauth_and_avatar.py diff --git a/alembic/versions/c5d1e2f3a4b5_add_onboarding_completed_at.py b/api/alembic/versions/c5d1e2f3a4b5_add_onboarding_completed_at.py similarity index 100% rename from alembic/versions/c5d1e2f3a4b5_add_onboarding_completed_at.py rename to api/alembic/versions/c5d1e2f3a4b5_add_onboarding_completed_at.py diff --git a/alembic/versions/d6e3f4a5b6c7_folder_index_tables.py b/api/alembic/versions/d6e3f4a5b6c7_folder_index_tables.py similarity index 100% rename from alembic/versions/d6e3f4a5b6c7_folder_index_tables.py rename to api/alembic/versions/d6e3f4a5b6c7_folder_index_tables.py diff --git a/alembic/versions/e04100e88ace_avatar_url_varchar_to_text.py b/api/alembic/versions/e04100e88ace_avatar_url_varchar_to_text.py similarity index 100% rename from alembic/versions/e04100e88ace_avatar_url_varchar_to_text.py rename to api/alembic/versions/e04100e88ace_avatar_url_varchar_to_text.py diff --git a/app/__init__.py b/api/app/__init__.py similarity index 100% rename from app/__init__.py rename to api/app/__init__.py diff --git a/app/agents/__init__.py b/api/app/agents/__init__.py similarity index 100% rename from app/agents/__init__.py rename to api/app/agents/__init__.py diff --git a/app/agents/client_agent.py b/api/app/agents/client_agent.py similarity index 100% rename from app/agents/client_agent.py rename to api/app/agents/client_agent.py diff --git a/app/agents/filesystem_agent.py b/api/app/agents/filesystem_agent.py similarity index 100% rename from app/agents/filesystem_agent.py rename to api/app/agents/filesystem_agent.py diff --git a/app/agents/folder_agent.py b/api/app/agents/folder_agent.py similarity index 100% rename from app/agents/folder_agent.py rename to api/app/agents/folder_agent.py diff --git a/app/agents/note_agent.py b/api/app/agents/note_agent.py similarity index 100% rename from app/agents/note_agent.py rename to api/app/agents/note_agent.py diff --git a/app/agents/project_agent.py b/api/app/agents/project_agent.py similarity index 100% rename from app/agents/project_agent.py rename to api/app/agents/project_agent.py diff --git a/app/agents/relations_agent.py b/api/app/agents/relations_agent.py similarity index 100% rename from app/agents/relations_agent.py rename to api/app/agents/relations_agent.py diff --git a/app/agents/task_agent.py b/api/app/agents/task_agent.py similarity index 100% rename from app/agents/task_agent.py rename to api/app/agents/task_agent.py diff --git a/app/agents/timeline_agent.py b/api/app/agents/timeline_agent.py similarity index 100% rename from app/agents/timeline_agent.py rename to api/app/agents/timeline_agent.py diff --git a/app/api/__init__.py b/api/app/api/__init__.py similarity index 100% rename from app/api/__init__.py rename to api/app/api/__init__.py diff --git a/app/api/deps.py b/api/app/api/deps.py similarity index 100% rename from app/api/deps.py rename to api/app/api/deps.py diff --git a/app/api/middleware/__init__.py b/api/app/api/middleware/__init__.py similarity index 100% rename from app/api/middleware/__init__.py rename to api/app/api/middleware/__init__.py diff --git a/app/api/middleware/auth.py b/api/app/api/middleware/auth.py similarity index 100% rename from app/api/middleware/auth.py rename to api/app/api/middleware/auth.py diff --git a/app/api/middleware/rate_limit.py b/api/app/api/middleware/rate_limit.py similarity index 100% rename from app/api/middleware/rate_limit.py rename to api/app/api/middleware/rate_limit.py diff --git a/app/api/middleware/sanitizer.py b/api/app/api/middleware/sanitizer.py similarity index 100% rename from app/api/middleware/sanitizer.py rename to api/app/api/middleware/sanitizer.py diff --git a/app/api/routes/__init__.py b/api/app/api/routes/__init__.py similarity index 100% rename from app/api/routes/__init__.py rename to api/app/api/routes/__init__.py diff --git a/app/api/routes/auth.py b/api/app/api/routes/auth.py similarity index 100% rename from app/api/routes/auth.py rename to api/app/api/routes/auth.py diff --git a/app/api/routes/billing.py b/api/app/api/routes/billing.py similarity index 100% rename from app/api/routes/billing.py rename to api/app/api/routes/billing.py diff --git a/app/api/routes/chat.py b/api/app/api/routes/chat.py similarity index 100% rename from app/api/routes/chat.py rename to api/app/api/routes/chat.py diff --git a/app/api/routes/device_ws.py b/api/app/api/routes/device_ws.py similarity index 100% rename from app/api/routes/device_ws.py rename to api/app/api/routes/device_ws.py diff --git a/app/api/routes/memory.py b/api/app/api/routes/memory.py similarity index 100% rename from app/api/routes/memory.py rename to api/app/api/routes/memory.py diff --git a/app/api/routes/scout_setup.py b/api/app/api/routes/scout_setup.py similarity index 100% rename from app/api/routes/scout_setup.py rename to api/app/api/routes/scout_setup.py diff --git a/app/api/routes/scout_webhooks.py b/api/app/api/routes/scout_webhooks.py similarity index 100% rename from app/api/routes/scout_webhooks.py rename to api/app/api/routes/scout_webhooks.py diff --git a/app/api/routes/scouts.py b/api/app/api/routes/scouts.py similarity index 100% rename from app/api/routes/scouts.py rename to api/app/api/routes/scouts.py diff --git a/app/auth/__init__.py b/api/app/auth/__init__.py similarity index 100% rename from app/auth/__init__.py rename to api/app/auth/__init__.py diff --git a/app/auth/oauth_providers.py b/api/app/auth/oauth_providers.py similarity index 100% rename from app/auth/oauth_providers.py rename to api/app/auth/oauth_providers.py diff --git a/app/billing/__init__.py b/api/app/billing/__init__.py similarity index 100% rename from app/billing/__init__.py rename to api/app/billing/__init__.py diff --git a/app/billing/quota.py b/api/app/billing/quota.py similarity index 100% rename from app/billing/quota.py rename to api/app/billing/quota.py diff --git a/app/billing/stripe_service.py b/api/app/billing/stripe_service.py similarity index 100% rename from app/billing/stripe_service.py rename to api/app/billing/stripe_service.py diff --git a/app/billing/tier_manager.py b/api/app/billing/tier_manager.py similarity index 100% rename from app/billing/tier_manager.py rename to api/app/billing/tier_manager.py diff --git a/app/config/__init__.py b/api/app/config/__init__.py similarity index 100% rename from app/config/__init__.py rename to api/app/config/__init__.py diff --git a/app/config/settings.py b/api/app/config/settings.py similarity index 100% rename from app/config/settings.py rename to api/app/config/settings.py diff --git a/app/core/__init__.py b/api/app/core/__init__.py similarity index 100% rename from app/core/__init__.py rename to api/app/core/__init__.py diff --git a/app/core/brief_agent.py b/api/app/core/brief_agent.py similarity index 100% rename from app/core/brief_agent.py rename to api/app/core/brief_agent.py diff --git a/app/core/deep_agent.py b/api/app/core/deep_agent.py similarity index 100% rename from app/core/deep_agent.py rename to api/app/core/deep_agent.py diff --git a/app/core/device_manager.py b/api/app/core/device_manager.py similarity index 100% rename from app/core/device_manager.py rename to api/app/core/device_manager.py diff --git a/app/core/embeddings.py b/api/app/core/embeddings.py similarity index 100% rename from app/core/embeddings.py rename to api/app/core/embeddings.py diff --git a/app/core/folder_indexer.py b/api/app/core/folder_indexer.py similarity index 100% rename from app/core/folder_indexer.py rename to api/app/core/folder_indexer.py diff --git a/app/core/langfuse_client.py b/api/app/core/langfuse_client.py similarity index 100% rename from app/core/langfuse_client.py rename to api/app/core/langfuse_client.py diff --git a/app/core/llm.py b/api/app/core/llm.py similarity index 100% rename from app/core/llm.py rename to api/app/core/llm.py diff --git a/app/core/memory_extraction.py b/api/app/core/memory_extraction.py similarity index 100% rename from app/core/memory_extraction.py rename to api/app/core/memory_extraction.py diff --git a/app/core/memory_maintenance.py b/api/app/core/memory_maintenance.py similarity index 100% rename from app/core/memory_maintenance.py rename to api/app/core/memory_maintenance.py diff --git a/app/core/memory_middleware.py b/api/app/core/memory_middleware.py similarity index 100% rename from app/core/memory_middleware.py rename to api/app/core/memory_middleware.py diff --git a/app/core/note_summarizer.py b/api/app/core/note_summarizer.py similarity index 100% rename from app/core/note_summarizer.py rename to api/app/core/note_summarizer.py diff --git a/app/core/output_formatter.py b/api/app/core/output_formatter.py similarity index 100% rename from app/core/output_formatter.py rename to api/app/core/output_formatter.py diff --git a/app/core/preprocessors/__init__.py b/api/app/core/preprocessors/__init__.py similarity index 100% rename from app/core/preprocessors/__init__.py rename to api/app/core/preprocessors/__init__.py diff --git a/app/core/preprocessors/base.py b/api/app/core/preprocessors/base.py similarity index 100% rename from app/core/preprocessors/base.py rename to api/app/core/preprocessors/base.py diff --git a/app/core/preprocessors/email_html.py b/api/app/core/preprocessors/email_html.py similarity index 100% rename from app/core/preprocessors/email_html.py rename to api/app/core/preprocessors/email_html.py diff --git a/app/core/scout_registry.py b/api/app/core/scout_registry.py similarity index 100% rename from app/core/scout_registry.py rename to api/app/core/scout_registry.py diff --git a/app/core/scout_runner.py b/api/app/core/scout_runner.py similarity index 100% rename from app/core/scout_runner.py rename to api/app/core/scout_runner.py diff --git a/app/core/scout_session_buffer.py b/api/app/core/scout_session_buffer.py similarity index 100% rename from app/core/scout_session_buffer.py rename to api/app/core/scout_session_buffer.py diff --git a/app/core/ws_context.py b/api/app/core/ws_context.py similarity index 100% rename from app/core/ws_context.py rename to api/app/core/ws_context.py diff --git a/app/db.py b/api/app/db.py similarity index 100% rename from app/db.py rename to api/app/db.py diff --git a/app/integrations/__init__.py b/api/app/integrations/__init__.py similarity index 100% rename from app/integrations/__init__.py rename to api/app/integrations/__init__.py diff --git a/app/integrations/gmail.py b/api/app/integrations/gmail.py similarity index 100% rename from app/integrations/gmail.py rename to api/app/integrations/gmail.py diff --git a/app/integrations/ms_graph.py b/api/app/integrations/ms_graph.py similarity index 100% rename from app/integrations/ms_graph.py rename to api/app/integrations/ms_graph.py diff --git a/app/main.py b/api/app/main.py similarity index 100% rename from app/main.py rename to api/app/main.py diff --git a/app/models.py b/api/app/models.py similarity index 100% rename from app/models.py rename to api/app/models.py diff --git a/app/schemas/__init__.py b/api/app/schemas/__init__.py similarity index 100% rename from app/schemas/__init__.py rename to api/app/schemas/__init__.py diff --git a/app/schemas/contextual.py b/api/app/schemas/contextual.py similarity index 100% rename from app/schemas/contextual.py rename to api/app/schemas/contextual.py diff --git a/app/scouts/__init__.py b/api/app/scouts/__init__.py similarity index 100% rename from app/scouts/__init__.py rename to api/app/scouts/__init__.py diff --git a/app/scouts/connectors/__init__.py b/api/app/scouts/connectors/__init__.py similarity index 100% rename from app/scouts/connectors/__init__.py rename to api/app/scouts/connectors/__init__.py diff --git a/app/scouts/connectors/base.py b/api/app/scouts/connectors/base.py similarity index 100% rename from app/scouts/connectors/base.py rename to api/app/scouts/connectors/base.py diff --git a/app/scouts/connectors/gmail.py b/api/app/scouts/connectors/gmail.py similarity index 100% rename from app/scouts/connectors/gmail.py rename to api/app/scouts/connectors/gmail.py diff --git a/app/scouts/connectors/registry.py b/api/app/scouts/connectors/registry.py similarity index 100% rename from app/scouts/connectors/registry.py rename to api/app/scouts/connectors/registry.py diff --git a/app/scouts/engine.py b/api/app/scouts/engine.py similarity index 100% rename from app/scouts/engine.py rename to api/app/scouts/engine.py diff --git a/docker-compose.yml b/api/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to api/docker-compose.yml diff --git a/logging.conf b/api/logging.conf similarity index 100% rename from logging.conf rename to api/logging.conf diff --git a/requirements.txt b/api/requirements.txt similarity index 100% rename from requirements.txt rename to api/requirements.txt diff --git a/results.xml b/api/results.xml similarity index 100% rename from results.xml rename to api/results.xml diff --git a/scripts/inspect_gmail_scout_token.py b/api/scripts/inspect_gmail_scout_token.py similarity index 100% rename from scripts/inspect_gmail_scout_token.py rename to api/scripts/inspect_gmail_scout_token.py diff --git a/scripts/reset_triage_queue_to_queued.py b/api/scripts/reset_triage_queue_to_queued.py similarity index 100% rename from scripts/reset_triage_queue_to_queued.py rename to api/scripts/reset_triage_queue_to_queued.py diff --git a/scripts/show_gmail_scout_state.py b/api/scripts/show_gmail_scout_state.py similarity index 100% rename from scripts/show_gmail_scout_state.py rename to api/scripts/show_gmail_scout_state.py diff --git a/scripts/trigger_gmail_scout.py b/api/scripts/trigger_gmail_scout.py similarity index 100% rename from scripts/trigger_gmail_scout.py rename to api/scripts/trigger_gmail_scout.py diff --git a/tests/__init__.py b/api/tests/__init__.py similarity index 100% rename from tests/__init__.py rename to api/tests/__init__.py diff --git a/tests/conftest.py b/api/tests/conftest.py similarity index 100% rename from tests/conftest.py rename to api/tests/conftest.py diff --git a/tests/fixtures/agent_runner_v2/cases.yaml b/api/tests/fixtures/agent_runner_v2/cases.yaml similarity index 100% rename from tests/fixtures/agent_runner_v2/cases.yaml rename to api/tests/fixtures/agent_runner_v2/cases.yaml diff --git a/tests/fixtures/agent_runner_v2/data/email_action.html b/api/tests/fixtures/agent_runner_v2/data/email_action.html similarity index 100% rename from tests/fixtures/agent_runner_v2/data/email_action.html rename to api/tests/fixtures/agent_runner_v2/data/email_action.html diff --git a/tests/fixtures/agent_runner_v2/data/email_date.html b/api/tests/fixtures/agent_runner_v2/data/email_date.html similarity index 100% rename from tests/fixtures/agent_runner_v2/data/email_date.html rename to api/tests/fixtures/agent_runner_v2/data/email_date.html diff --git a/tests/fixtures/agent_runner_v2/data/email_info.html b/api/tests/fixtures/agent_runner_v2/data/email_info.html similarity index 100% rename from tests/fixtures/agent_runner_v2/data/email_info.html rename to api/tests/fixtures/agent_runner_v2/data/email_info.html diff --git a/tests/fixtures/agent_runner_v2/data/email_no_project.html b/api/tests/fixtures/agent_runner_v2/data/email_no_project.html similarity index 100% rename from tests/fixtures/agent_runner_v2/data/email_no_project.html rename to api/tests/fixtures/agent_runner_v2/data/email_no_project.html diff --git a/tests/fixtures/journey_v2/cases.yaml b/api/tests/fixtures/journey_v2/cases.yaml similarity index 100% rename from tests/fixtures/journey_v2/cases.yaml rename to api/tests/fixtures/journey_v2/cases.yaml diff --git a/tests/fixtures/journey_v2/data/email_action.html b/api/tests/fixtures/journey_v2/data/email_action.html similarity index 100% rename from tests/fixtures/journey_v2/data/email_action.html rename to api/tests/fixtures/journey_v2/data/email_action.html diff --git a/tests/fixtures/journey_v2/data/email_info.html b/api/tests/fixtures/journey_v2/data/email_info.html similarity index 100% rename from tests/fixtures/journey_v2/data/email_info.html rename to api/tests/fixtures/journey_v2/data/email_info.html diff --git a/tests/fixtures/preprocessors/cases.yaml b/api/tests/fixtures/preprocessors/cases.yaml similarity index 100% rename from tests/fixtures/preprocessors/cases.yaml rename to api/tests/fixtures/preprocessors/cases.yaml diff --git a/tests/fixtures/preprocessors/data/email_action.html b/api/tests/fixtures/preprocessors/data/email_action.html similarity index 100% rename from tests/fixtures/preprocessors/data/email_action.html rename to api/tests/fixtures/preprocessors/data/email_action.html diff --git a/tests/fixtures/preprocessors/data/email_heavy.html b/api/tests/fixtures/preprocessors/data/email_heavy.html similarity index 100% rename from tests/fixtures/preprocessors/data/email_heavy.html rename to api/tests/fixtures/preprocessors/data/email_heavy.html diff --git a/tests/fixtures/preprocessors/data/email_single.html b/api/tests/fixtures/preprocessors/data/email_single.html similarity index 100% rename from tests/fixtures/preprocessors/data/email_single.html rename to api/tests/fixtures/preprocessors/data/email_single.html diff --git a/tests/fixtures/preprocessors/data/email_thread.html b/api/tests/fixtures/preprocessors/data/email_thread.html similarity index 100% rename from tests/fixtures/preprocessors/data/email_thread.html rename to api/tests/fixtures/preprocessors/data/email_thread.html diff --git a/tests/fixtures/preprocessors/data/fallback.txt b/api/tests/fixtures/preprocessors/data/fallback.txt similarity index 100% rename from tests/fixtures/preprocessors/data/fallback.txt rename to api/tests/fixtures/preprocessors/data/fallback.txt diff --git a/tests/fixtures/preprocessors/data/generic_page.html b/api/tests/fixtures/preprocessors/data/generic_page.html similarity index 100% rename from tests/fixtures/preprocessors/data/generic_page.html rename to api/tests/fixtures/preprocessors/data/generic_page.html diff --git a/tests/fixtures/preprocessors/data/notes.txt b/api/tests/fixtures/preprocessors/data/notes.txt similarity index 100% rename from tests/fixtures/preprocessors/data/notes.txt rename to api/tests/fixtures/preprocessors/data/notes.txt diff --git a/tests/test_agent_runner_v2.py b/api/tests/test_agent_runner_v2.py similarity index 100% rename from tests/test_agent_runner_v2.py rename to api/tests/test_agent_runner_v2.py diff --git a/tests/test_auth.py b/api/tests/test_auth.py similarity index 100% rename from tests/test_auth.py rename to api/tests/test_auth.py diff --git a/tests/test_brief_agent.py b/api/tests/test_brief_agent.py similarity index 100% rename from tests/test_brief_agent.py rename to api/tests/test_brief_agent.py diff --git a/tests/test_contextual_scope.py b/api/tests/test_contextual_scope.py similarity index 100% rename from tests/test_contextual_scope.py rename to api/tests/test_contextual_scope.py diff --git a/tests/test_contextual_ws.py b/api/tests/test_contextual_ws.py similarity index 100% rename from tests/test_contextual_ws.py rename to api/tests/test_contextual_ws.py diff --git a/tests/test_deep_agent.py b/api/tests/test_deep_agent.py similarity index 100% rename from tests/test_deep_agent.py rename to api/tests/test_deep_agent.py diff --git a/tests/test_device_ws.py b/api/tests/test_device_ws.py similarity index 100% rename from tests/test_device_ws.py rename to api/tests/test_device_ws.py diff --git a/tests/test_folder_agent_tool.py b/api/tests/test_folder_agent_tool.py similarity index 100% rename from tests/test_folder_agent_tool.py rename to api/tests/test_folder_agent_tool.py diff --git a/tests/test_folder_indexer.py b/api/tests/test_folder_indexer.py similarity index 100% rename from tests/test_folder_indexer.py rename to api/tests/test_folder_indexer.py diff --git a/tests/test_folder_quota.py b/api/tests/test_folder_quota.py similarity index 100% rename from tests/test_folder_quota.py rename to api/tests/test_folder_quota.py diff --git a/tests/test_integrations.py b/api/tests/test_integrations.py similarity index 100% rename from tests/test_integrations.py rename to api/tests/test_integrations.py diff --git a/tests/test_journey_v2.py b/api/tests/test_journey_v2.py similarity index 100% rename from tests/test_journey_v2.py rename to api/tests/test_journey_v2.py diff --git a/tests/test_manifest_injection.py b/api/tests/test_manifest_injection.py similarity index 100% rename from tests/test_manifest_injection.py rename to api/tests/test_manifest_injection.py diff --git a/tests/test_memory_audit.py b/api/tests/test_memory_audit.py similarity index 100% rename from tests/test_memory_audit.py rename to api/tests/test_memory_audit.py diff --git a/tests/test_memory_extraction.py b/api/tests/test_memory_extraction.py similarity index 100% rename from tests/test_memory_extraction.py rename to api/tests/test_memory_extraction.py diff --git a/tests/test_memory_middleware.py b/api/tests/test_memory_middleware.py similarity index 100% rename from tests/test_memory_middleware.py rename to api/tests/test_memory_middleware.py diff --git a/tests/test_memory_models.py b/api/tests/test_memory_models.py similarity index 100% rename from tests/test_memory_models.py rename to api/tests/test_memory_models.py diff --git a/tests/test_memory_proactive.py b/api/tests/test_memory_proactive.py similarity index 100% rename from tests/test_memory_proactive.py rename to api/tests/test_memory_proactive.py diff --git a/tests/test_memory_relations.py b/api/tests/test_memory_relations.py similarity index 100% rename from tests/test_memory_relations.py rename to api/tests/test_memory_relations.py diff --git a/tests/test_middleware.py b/api/tests/test_middleware.py similarity index 100% rename from tests/test_middleware.py rename to api/tests/test_middleware.py diff --git a/tests/test_output_formatter.py b/api/tests/test_output_formatter.py similarity index 100% rename from tests/test_output_formatter.py rename to api/tests/test_output_formatter.py diff --git a/tests/test_preprocessors.py b/api/tests/test_preprocessors.py similarity index 100% rename from tests/test_preprocessors.py rename to api/tests/test_preprocessors.py diff --git a/tests/test_run_contextual.py b/api/tests/test_run_contextual.py similarity index 100% rename from tests/test_run_contextual.py rename to api/tests/test_run_contextual.py diff --git a/tests/test_schemas_v3.py b/api/tests/test_schemas_v3.py similarity index 100% rename from tests/test_schemas_v3.py rename to api/tests/test_schemas_v3.py diff --git a/tests/test_scout_cloud_crud.py b/api/tests/test_scout_cloud_crud.py similarity index 100% rename from tests/test_scout_cloud_crud.py rename to api/tests/test_scout_cloud_crud.py diff --git a/tests/test_scout_connector_registry.py b/api/tests/test_scout_connector_registry.py similarity index 100% rename from tests/test_scout_connector_registry.py rename to api/tests/test_scout_connector_registry.py diff --git a/tests/test_scout_connectors_base.py b/api/tests/test_scout_connectors_base.py similarity index 100% rename from tests/test_scout_connectors_base.py rename to api/tests/test_scout_connectors_base.py diff --git a/tests/test_scout_connectors_gmail.py b/api/tests/test_scout_connectors_gmail.py similarity index 100% rename from tests/test_scout_connectors_gmail.py rename to api/tests/test_scout_connectors_gmail.py diff --git a/tests/test_scout_engine.py b/api/tests/test_scout_engine.py similarity index 100% rename from tests/test_scout_engine.py rename to api/tests/test_scout_engine.py diff --git a/tests/test_scout_webhook.py b/api/tests/test_scout_webhook.py similarity index 100% rename from tests/test_scout_webhook.py rename to api/tests/test_scout_webhook.py diff --git a/tests/test_ws_index_session.py b/api/tests/test_ws_index_session.py similarity index 100% rename from tests/test_ws_index_session.py rename to api/tests/test_ws_index_session.py diff --git a/tests/test_ws_unified.py b/api/tests/test_ws_unified.py similarity index 100% rename from tests/test_ws_unified.py rename to api/tests/test_ws_unified.py