SurfSense/surfsense_backend/app/agents/new_chat/tools
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
..
confluence feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
discord feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
dropbox feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
gmail feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
google_calendar feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
google_drive feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
luma feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
notion feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
onedrive feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
teams feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
__init__.py refactor: remove search_surfsense_docs tool and related references 2026-05-28 22:35:14 -07:00
connected_accounts.py feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
generate_image.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
hitl.py fix: fixed composio issues 2026-05-02 21:16:03 -07:00
invalid_tool.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
knowledge_base.py refactor(agents): move utils + document_xml to app/agents/shared (slice 5a) 2026-06-04 12:50:38 +02:00
mcp_client.py chore: linting 2026-04-27 14:04:50 -07:00
mcp_tool.py refactor(agents): move middleware package to app/agents/shared (slice 5c) 2026-06-04 13:00:41 +02:00
mcp_tools_cache.py refactor(mcp): per-connector cache refresh on lifecycle events 2026-05-20 17:43:27 +02:00
podcast.py chore: linting 2026-05-28 19:21:29 -07:00
registry.py refactor(agents): move middleware package to app/agents/shared (slice 5c) 2026-06-04 13:00:41 +02:00
report.py feat: made agent file sytem optimized 2026-03-28 16:39:46 -07:00
resume.py fix: adjust spacing in resume template for highlights 2026-04-22 19:24:30 +05:30
scrape_webpage.py feat: update YouTube transcript fetching to select primary language transcripts 2026-02-06 14:02:46 -08:00
update_memory.py refactor: extract shared memory service 2026-05-20 02:01:36 +05:30
video_presentation.py chore: linting 2026-05-28 19:21:29 -07:00
web_search.py chore: ran linting 2026-03-17 04:40:46 +05:30