mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
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.
|
||
|---|---|---|
| .. | ||
| middleware | ||
| prompts | ||
| tools | ||
| __init__.py | ||
| test_action_log.py | ||
| test_agent_cache.py | ||
| test_busy_mutex.py | ||
| test_compaction.py | ||
| test_context_editing.py | ||
| test_dedup_tool_calls.py | ||
| test_default_permissions_layering.py | ||
| test_desktop_safety_rules.py | ||
| test_doom_loop.py | ||
| test_feature_flags.py | ||
| test_hitl_auto_approve.py | ||
| test_memory_response_content.py | ||
| test_mention_resolver.py | ||
| test_noop_injection.py | ||
| test_otel_span.py | ||
| test_path_resolver.py | ||
| test_permissions.py | ||
| test_plugin_loader.py | ||
| test_prompt_caching.py | ||
| test_retry_after.py | ||
| test_skills_backends.py | ||
| test_state_reducers.py | ||
| test_tool_call_repair.py | ||