SurfSense/surfsense_backend/app/agents/new_chat/middleware
CREDO23 1b536b8aee refactor(agents): move filesystem_selection to app/agents/shared (slice 3a)
Promote the filesystem mode contracts (FilesystemMode, FilesystemSelection,
ClientPlatform, LocalFilesystemMount) out of `new_chat` into the cross-agent
`app/agents/shared` kernel.

Pure leaf consumed across the whole multi-agent filesystem middleware/tool tree,
the chat flows/monolith, routes and tests. git mv (content unchanged) + flipped
all ~48 importers. A re-export shim remains at new_chat/filesystem_selection.py
only for the not-yet-retired single-agent (chat_deepagent).

Also updated the stream parity test's annotation normalizer to strip the new
app.agents.shared.filesystem_selection. prefix (the dataclasses' __module__
changed with the move), keeping monolith<->flows signature parity intact.

Behavior-preserving: only import paths change. 1326 tests green.
2026-06-04 12:28:20 +02:00
..
__init__.py feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
action_log.py refactor(agents): move feature flags to app/agents/shared/feature_flags (slice 2b) 2026-06-04 12:23:12 +02:00
anonymous_document.py feat: updated file management for main agent 2026-04-28 04:32:52 -07:00
busy_mutex.py refactor(agents): move error taxonomy to app/agents/shared/errors (slice 1) 2026-06-04 12:13:55 +02:00
compaction.py feat: enhance task management and timeout configurations in multi-agent chat 2026-05-27 14:58:10 -07:00
context_editing.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
dedup_tool_calls.py Harden HITL for multi-step tasks: bypass internal MCP gate, full-args dedup, and decision-envelope normalization. 2026-05-04 19:25:27 +02:00
doom_loop.py feat: enhance task management and timeout configurations in multi-agent chat 2026-05-27 14:58:10 -07:00
file_intent.py feat: updated file management for main agent 2026-04-28 04:32:52 -07:00
filesystem.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
flatten_system.py feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
kb_persistence.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
kb_postgres_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
knowledge_search.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
knowledge_tree.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
local_folder_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
memory_injection.py Merge remote-tracking branch 'upstream/dev' into improvement-agent-speed 2026-05-20 21:23:48 +02:00
multi_root_local_folder_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
noop_injection.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
otel_span.py feat(agents): emit metrics for model and tool calls 2026-05-21 23:02:36 +05:30
permission.py refactor(agents): move error taxonomy to app/agents/shared/errors (slice 1) 2026-06-04 12:13:55 +02:00
retry_after.py feat(chat): add model retry and stream lifecycle events 2026-05-22 17:48:43 +05:30
scoped_model_fallback.py feat(chat): add model retry and stream lifecycle events 2026-05-22 17:48:43 +05:30
skills_backends.py fix: repair pre-existing agent_task, gateway, and skills tests 2026-06-04 10:25:06 +02:00
tool_call_repair.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00