SurfSense/surfsense_backend/tests/integration
CREDO23 227983a104 refactor(agents): move middleware package to app/agents/shared (slice 5c)
Relocate the entire new_chat/middleware/ package to the shared kernel as one
cohesive unit (it is live shared infrastructure: the multi-agent stack wraps
nearly every middleware via multi_agent_chat/middleware/main_agent/*, and
anonymous_agent consumes it too). Flip 69 live importers across both the
package-path and submodule-path forms.

Shims left for the frozen single-agent stack: a package __init__ re-export plus
submodule shims for permission, skills_backends, and scoped_model_fallback
(the three imported via submodule path by chat_deepagent/subagents).

Cycle break: importing shared.middleware previously reached back into
new_chat.tools at module load, which dragged in new_chat.__init__ ->
chat_deepagent -> the middleware shim -> half-initialized shared.middleware.
Made action_log's ToolDefinition import TYPE_CHECKING-only and
tool_call_repair's INVALID_TOOL_NAME import function-local. These tools-package
back-edges fully resolve in slice 6.

Asset note: skills_backends._default_builtin_root now walks to
app/agents/new_chat/skills/builtin (the skills/ tree migrates in slice 7).
2026-06-04 13:00:41 +02:00
..
agents/multi_agent_chat test: add agent refactor guardrail suite 2026-06-04 11:44:23 +02:00
chat feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
composio fix(tests): improve composio module hijack in integration tests 2026-05-13 00:44:20 +05:30
document_upload test: update Stripe and Google Calendar integration tests to use ComposioService 2026-05-16 21:13:17 +05:30
google_unification test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking 2026-05-16 21:26:40 +05:30
harness feat: updated agent harness 2026-04-28 09:22:19 -07:00
indexing_pipeline test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking 2026-05-16 21:26:40 +05:30
notifications test: add notifications integration behavior guard 2026-06-03 21:53:06 +02:00
retriever refactor(agents): move middleware package to app/agents/shared (slice 5c) 2026-06-04 13:00:41 +02:00
__init__.py test: bootstrap pytest environment for backend 2026-02-24 18:19:56 +02:00
conftest.py test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking 2026-05-16 21:26:40 +05:30
test_document_versioning.py chore: ran linting 2026-04-03 13:14:40 +05:30
test_obsidian_plugin_routes.py chore: linting 2026-04-27 14:04:50 -07:00