SurfSense/surfsense_backend/app/agents/new_chat
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
..
middleware refactor(agents): move middleware package to app/agents/shared (slice 5c) 2026-06-04 13:00:41 +02:00
subagents refactor: remove search_surfsense_docs tool and related references 2026-05-28 22:35:14 -07:00
tools refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +02:00
__init__.py cloud: added openrouter integration with global configs 2026-04-15 23:46:29 -07:00
agent_cache.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
anonymous_agent.py refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +02:00
chat_deepagent.py refactor: extract shared connector->searchable-type mapping out of chat_deepagent 2026-06-04 12:05:17 +02:00
connector_searchable_types.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
context.py refactor(agents): move context schema + state reducers to app/agents/shared (slice 2) 2026-06-04 12:19:22 +02:00
feature_flags.py refactor(agents): move feature flags to app/agents/shared/feature_flags (slice 2b) 2026-06-04 12:23:12 +02:00
filesystem_backends.py refactor(agents): move filesystem_backends to app/agents/shared (slice 5d) 2026-06-04 13:03:15 +02:00
filesystem_selection.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
llm_config.py refactor(agents): move llm_config + prompt_caching to app/agents/shared (slice 4b) 2026-06-04 12:41:52 +02:00
permissions.py refactor(agents): move permissions to app/agents/shared (slice 4a) 2026-06-04 12:38:30 +02:00
plugin_loader.py refactor(agents): move skills/, plugins/, plugin_loader to app/agents/shared (slice 7) 2026-06-04 13:16:22 +02:00
prompt_caching.py refactor(agents): move llm_config + prompt_caching to app/agents/shared (slice 4b) 2026-06-04 12:41:52 +02:00
system_prompt.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