SurfSense/surfsense_backend/app/routes
CREDO23 a019f18d1c refactor(agents): move connector_searchable_types, agent_cache, system_prompt + prompts to app/agents/shared (slice 7b)
Three live shared leaves discovered while taking stock after slice 7 (all are
consumed by the multi-agent stack and/or live routes, not single-agent-only):

- connector_searchable_types -> shared + shim (multi-agent factory uses it)
- agent_cache -> shared + shim (multi-agent runtime/agent_cache uses it)
- system_prompt + prompts/ (42 .md fragments) -> shared together + shim.
  Repointed composer's _PROMPTS_PACKAGE to app.agents.shared.prompts so
  importlib.resources fragment loading keeps working; system_prompt's relative
  ".prompts.composer" import is preserved by moving both as a unit.

Each keeps a re-export shim for the frozen chat_deepagent. After this slice,
new_chat/ holds only the frozen single-agent stack (chat_deepagent, subagents/,
__init__) plus shims.
2026-06-04 13:21:45 +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 feature flags to app/agents/shared/feature_flags (slice 2b) 2026-06-04 12:23:12 +02:00
agent_flags_route.py refactor(agents): move feature flags to app/agents/shared/feature_flags (slice 2b) 2026-06-04 12:23:12 +02:00
agent_permissions_route.py refactor(agents): move feature flags to app/agents/shared/feature_flags (slice 2b) 2026-06-04 12:23:12 +02:00
agent_revert_route.py refactor(agents): move feature flags to app/agents/shared/feature_flags (slice 2b) 2026-06-04 12:23:12 +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 checkpointer + mention_resolver to app/agents/shared (slice 5b) 2026-06-04 12:52:54 +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 filesystem_state, path_resolver, sandbox to app/agents/shared (slice 3b) 2026-06-04 12:34:28 +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): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +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 tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +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 filesystem_state, path_resolver, sandbox to app/agents/shared (slice 3b) 2026-06-04 12:34:28 +02:00
search_source_connectors_routes.py refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +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