SurfSense/surfsense_backend/app/services
CREDO23 24b62a63b4 refactor(agents): introduce chat/ category; dissolve top-level agents/shared
Recursive shared-folder rule: a shared/ must be shared by ALL siblings at its
level. The kernel (context, compaction, retry_after, web_search) was shared by
only 2 of the agents -- anonymous_chat + multi_agent_chat -- never by podcaster
or video_presentation. Those 2 are the "chat" category, so their shared code
belongs in that category's shared/, not the top-level one.

  app/agents/anonymous_chat/   -> app/agents/chat/anonymous_chat/
  app/agents/multi_agent_chat/ -> app/agents/chat/multi_agent_chat/
  app/agents/shared/           -> app/agents/chat/shared/   (anon<->mac kernel)

Top-level app/agents/shared/ is gone: nothing was shared across all three
categories (chat / podcaster / video_presentation).

~289 import sites rewritten (app.agents.{anonymous_chat,multi_agent_chat,shared}
-> app.agents.chat.*); all moves are git renames (history preserved).
app/agents/ now: chat/, podcaster/, video_presentation/, runtime/.
2026-06-05 12:54:02 +02:00
..
confluence fix: break circular import in llm_service and kb_sync_service files 2026-04-23 11:47:15 +02:00
dropbox fix: break circular import in llm_service and kb_sync_service files 2026-04-23 11:47:15 +02:00
gmail feat: enhance task management and timeout configurations in multi-agent chat 2026-05-27 14:58:10 -07:00
google_calendar feat: enhance task management and timeout configurations in multi-agent chat 2026-05-27 14:58:10 -07:00
google_drive fix: fixed composio issues 2026-05-02 21:16:03 -07:00
linear fix: break circular import in llm_service and kb_sync_service files 2026-04-23 11:47:15 +02:00
mcp_oauth Harden Linear and Slack MCP subagent permissions. 2026-04-29 20:24:21 +02:00
memory feat: add no-update sentinel handling to save_memory function and corresponding unit tests 2026-05-20 15:03:35 +05:30
notion fix: break circular import in llm_service and kb_sync_service files 2026-04-23 11:47:15 +02:00
onedrive feat: enhance task management and timeout configurations in multi-agent chat 2026-05-27 14:58:10 -07:00
streaming feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
__init__.py Fixed all ruff lint and formatting errors 2025-07-24 14:43:48 -07:00
ai_file_sort_service.py feat: added ai file sorting 2026-04-14 01:43:30 -07:00
auto_model_pin_service.py feat: add preferred premium auto configuration logic and corresponding tests 2026-05-02 23:35:47 -07:00
billable_calls.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
chat_comments_service.py refactor: point notification callers at notifications module 2026-06-03 18:04:47 +02:00
chat_session_state_service.py Add chat session state service 2026-01-20 16:31:40 +02:00
composio_service.py feat: enhance task management and timeout configurations in multi-agent chat 2026-05-27 14:58:10 -07:00
connector_service.py feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
docling_service.py chore: evals 2026-05-13 14:02:26 -07:00
export_service.py Harden vision LLM fallback, folder upload validation, and export memory 2026-04-09 16:14:53 +02:00
folder_service.py feat: added ai file sorting 2026-04-14 01:43:30 -07:00
image_gen_router_service.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
kokoro_tts_service.py feat: Added Local TTS (Kokoro TTS) Support 2025-08-13 17:25:34 -07:00
llm_router_service.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
llm_service.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
model_list_service.py cloud: added openrouter integration with global configs 2026-04-15 23:46:29 -07:00
new_streaming_service.py Include optional metadata on tool and thinking-step SSE payloads. 2026-05-08 22:47:58 +02:00
obsidian_plugin_indexer.py chore: linting 2026-04-27 14:04:50 -07:00
openrouter_integration_service.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
page_limit_service.py chore: ran linting 2026-04-04 03:11:56 +05:30
pricing_registration.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
provider_api_base.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
provider_capabilities.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
public_chat_service.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
quality_score.py chore: ran linting 2026-05-02 03:36:13 +05:30
quota_checked_vision_llm.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
reranker_service.py roadmap(1.3): Update citation prompt to use new whole document structure 2025-12-14 22:07:31 -08:00
revert_service.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
stt_service.py chore: updated docs & refactored sst_service.py 2025-10-15 14:31:38 -07:00
task_dispatcher.py feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
task_logging_service.py chore: removed chinese comments to pass ruff checks and updated migration nos 2025-10-13 20:07:32 -07:00
token_quota_service.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
token_tracking_service.py fix(tokens): use canonical prompt_tokens_details path for cache fields 2026-05-20 09:55:39 +02:00
turnstile_service.py feat: no login experience and prem tokens 2026-04-15 17:02:00 -07:00
user_tool_allowlist.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
vision_llm_router_service.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
vision_model_list_service.py chore: ran linting 2026-04-08 05:20:03 +05:30
web_search_service.py chore: ran linting 2026-03-17 04:40:46 +05:30