SurfSense/surfsense_backend/tests/unit/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: add unit tests for DedupHITLToolCallsMiddleware 2026-03-21 13:19:58 +05:30
test_dedup_hitl_tool_calls.py feat: updated agent harness 2026-04-28 09:22:19 -07:00
test_file_intent_middleware.py chore: linting 2026-04-27 14:04:50 -07:00
test_filesystem_backends.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
test_filesystem_middleware.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
test_filesystem_verification.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
test_kb_persistence_filesystem_parity.py chore: linting 2026-04-28 21:37:51 -07:00
test_kb_persistence_revisions.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
test_knowledge_search.py fix(test): pin enable_kb_planner_runnable=false for KB-search planner tests 2026-05-05 02:00:34 +02:00
test_knowledge_tree.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
test_local_folder_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
test_multi_root_local_folder_backend.py feat(sidebar): implement canonicalize roots, authoritative mount handling & preserved incremental UX for local folder mode 2026-04-27 19:58:12 +05:30