SurfSense/surfsense_backend/app/routes
CREDO23 82c5dc5b02 refactor(agents): move mac-only modules out of the cross-agent shared kernel
app/agents/shared/ is a sibling of anonymous_chat/podcaster/multi_agent_chat/
video_presentation, so it should only hold code shared across 2+ of those
agents. In practice podcaster and video_presentation import nothing from it,
and anonymous_chat needs only context + compaction + retry_after + web_search.
Everything else was multi_agent_chat-only (the boundary just passes through).

Move the multi_agent_chat-only cluster into multi_agent_chat/shared/ (files
moved verbatim via git rename; ~116 import sites rewritten):

  errors, feature_flags, filesystem_selection, path_resolver, prompt_caching,
  sandbox, llm_config, mention_resolver
  middleware/busy_mutex, middleware/kb_persistence

busy_mutex/llm_config/mention_resolver are boundary-only but import the moved
modules, so they were folded in to avoid a backwards shared -> multi_agent_chat
dependency. main_agent builders now import the impls directly; the shared
middleware barrel keeps only the genuinely-shared compaction + retry_after.

Also delete the dead leftover shared/plugins and shared/skills dirs (live
copies already live under main_agent/).

Remaining in app/agents/shared/: context, system_prompt(+prompts), checkpointer,
middleware/{compaction,retry_after,dedup_tool_calls}, tools/. checkpointer and
system_prompt are boundary-only infra pending a dedicated home decision.
2026-06-05 12:30:15 +02:00
..
__init__.py refactor: serve notifications API from notifications module 2026-06-03 18:04:47 +02:00
agent_action_log_route.py refactor(agents): move mac-only modules out of the cross-agent shared kernel 2026-06-05 12:30:15 +02:00
agent_flags_route.py refactor(agents): move mac-only modules out of the cross-agent shared kernel 2026-06-05 12:30:15 +02:00
agent_permissions_route.py refactor(agents): move mac-only modules out of the cross-agent shared kernel 2026-06-05 12:30:15 +02:00
agent_revert_route.py refactor(agents): move mac-only modules out of the cross-agent shared kernel 2026-06-05 12:30:15 +02:00
airtable_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
anonymous_chat_routes.py refactor(agents): move mac-only modules out of the cross-agent shared kernel 2026-06-05 12:30:15 +02:00
auth_routes.py Add logout with token revocation and loading states 2026-02-05 18:56:38 +02:00
chat_comments_routes.py feat: perf optimizations 2026-02-27 17:19:25 -08:00
circleback_webhook_route.py feat: add connector_id to documents for source tracking and implement connector deletion task 2026-02-02 16:23:26 +05:30
clickup_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
composio_routes.py fix: fixed composio issues 2026-05-02 21:16:03 -07:00
confluence_add_connector_route.py feat: initial files for jira and confluence HITL tool 2026-03-21 12:16:44 +05:30
discord_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
documents_routes.py refactor(agents): move mac-only modules out of the cross-agent shared kernel 2026-06-05 12:30:15 +02:00
dropbox_add_connector_route.py feat: implement cursor-based delta sync for Dropbox integration, enhancing file indexing efficiency and preserving folder cursors during re-authentication 2026-04-06 18:36:29 +05:30
editor_routes.py refactor: improve document processing error handling and UI state management 2026-04-13 22:22:50 +05:30
export_routes.py feat: added ai file sorting 2026-04-14 01:43:30 -07:00
folders_routes.py fix(documents): use ORM objects in bulk_move so session hooks fire 2026-05-29 22:25:04 +02:00
gateway_webhook_routes.py feat(gateway): add Slack and Telegram gateway configuration and enablement checks 2026-06-01 23:58:28 +05:30
gateway_whatsapp_baileys_routes.py feat(gateway): enhance WhatsApp account management and connection handling 2026-06-01 22:49:46 +05:30
gateway_whatsapp_webhook_routes.py feat(gateway): add WhatsApp Cloud webhook intake 2026-05-29 10:18:58 +05:30
google_calendar_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
google_drive_add_connector_route.py chore: ran linting 2026-04-04 03:37:33 +05:30
google_gmail_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
image_generation_routes.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
incentive_tasks_routes.py feat: integrate Stripe for page purchases and reconciliation tasks 2026-03-31 18:39:45 -07:00
jira_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
linear_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
logs_routes.py feat: Enhance connector management UI with improved loading states, add document count display for connectors, and implement indexing progress indicators for better user feedback. 2025-12-31 17:21:26 +05:30
luma_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
mcp_oauth_route.py refactor(agents): group MCP tools into shared/tools/mcp/ subpackage 2026-06-04 20:35:38 +02:00
memory_routes.py feat: enhance memory API responses with limits and update UI components for memory limit handling 2026-05-20 03:17:05 +05:30
model_list_routes.py style: simplify LLM model terminology in UI 2026-04-02 10:11:35 +05:30
new_chat_routes.py refactor(agents): move mac-only modules out of the cross-agent shared kernel 2026-06-05 12:30:15 +02:00
new_llm_config_routes.py refactor(agents): move connector_searchable_types, agent_cache, system_prompt + prompts to app/agents/shared (slice 7b) 2026-06-04 13:21:45 +02:00
notes_routes.py feat: add source_markdown column to documents and implement migration logic for existing records using a pure-Python BlockNote JSON to Markdown converter 2026-02-17 11:34:11 +05:30
notion_add_connector_route.py chore: ran linting 2026-03-21 13:21:19 +05:30
oauth_connector_base.py chore: linting 2026-04-27 14:04:50 -07:00
obsidian_plugin_routes.py refactor: point notification callers at notifications module 2026-06-03 18:04:47 +02:00
onedrive_add_connector_route.py chore: ran linting 2026-03-30 01:50:41 +05:30
podcasts_routes.py refactor: require auth for podcast endpoints, remove public check 2026-01-29 20:49:05 +02:00
prompts_routes.py Fix review issues: authz, race conditions, UX safety, and consolidate migrations 2026-03-31 19:09:05 +02:00
public_chat_routes.py feat: add public report PDF preview endpoint and update report content handling for Typst-based resumes 2026-04-16 22:51:36 +05:30
rbac_routes.py rbac: surface automations permissions in the UI 2026-05-28 00:30:40 +02:00
reports_routes.py feat: add PDF preview and export functionality for Typst-based reports, enhance report content handling 2026-04-15 21:11:27 +05:30
sandbox_routes.py refactor(agents): move mac-only modules out of the cross-agent shared kernel 2026-06-05 12:30:15 +02:00
search_source_connectors_routes.py refactor(agents): group MCP tools into shared/tools/mcp/ subpackage 2026-06-04 20:35:38 +02:00
search_spaces_routes.py feat: add team memory routes 2026-05-20 02:02:27 +05:30
slack_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
stripe_routes.py fix: metadata extraction in Stripe checkout session 2026-05-05 01:26:41 -07:00
team_memory_routes.py feat: enhance memory API responses with limits and update UI components for memory limit handling 2026-05-20 03:17:05 +05:30
teams_add_connector_route.py set is_indexable=False for all live connector add routes 2026-04-21 21:52:43 +02:00
video_presentations_routes.py feat: init video presentation agent 2026-03-21 22:13:41 -07:00
vision_llm_routes.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
youtube_routes.py feat: expand report export functionality to support multiple formats (PDF, DOCX, HTML, EPUB, etc.) and enhance UI for format selection 2026-03-09 18:31:14 -07:00