SurfSense/surfsense_backend/app/agents/shared
CREDO23 aab95b9130 refactor(agents): move tools package to app/agents/shared (slice 6)
Relocate the entire new_chat/tools/ package (62 files incl. registry, hitl, MCP
cluster, and all connector subpackages: gmail/slack/discord/teams/drive/etc.)
to the shared kernel. The package turned out to be a clean cohesive cluster:
its only references to non-tools new_chat modules were comments, and its
middleware deps were already flipped to shared in slice 5c.

Flip 33 live importers (multi-agent, flows, routes, services, anonymous_agent,
tests). Re-export shims remain for the frozen single-agent stack: a package
__init__ mirroring the public surface (new_chat.__init__ imports it) plus
invalid_tool + registry submodule shims (chat_deepagent imports those).

Resolves slice 5c's two transient back-edges: shared/middleware/action_log
(TYPE_CHECKING ToolDefinition) and tool_call_repair (local INVALID_TOOL_NAME)
now point at app.agents.shared.tools.
2026-06-04 13:11:56 +02:00
..
middleware refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +02:00
tools refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +02:00
__init__.py feat: enhance task management and timeout configurations in multi-agent chat 2026-05-27 14:58:10 -07:00
checkpointer.py refactor(agents): move checkpointer + mention_resolver to app/agents/shared (slice 5b) 2026-06-04 12:52:54 +02:00
context.py refactor(agents): move context schema + state reducers to app/agents/shared (slice 2) 2026-06-04 12:19:22 +02:00
deliverable_wait.py feat: enhance task management and timeout configurations in multi-agent chat 2026-05-27 14:58:10 -07:00
document_xml.py refactor(agents): move utils + document_xml to app/agents/shared (slice 5a) 2026-06-04 12:50:38 +02:00
errors.py refactor(agents): move error taxonomy to app/agents/shared/errors (slice 1) 2026-06-04 12:13:55 +02:00
feature_flags.py refactor(agents): move feature flags to app/agents/shared/feature_flags (slice 2b) 2026-06-04 12:23:12 +02:00
filesystem_backends.py refactor(agents): move filesystem_backends to app/agents/shared (slice 5d) 2026-06-04 13:03:15 +02:00
filesystem_selection.py refactor(agents): move filesystem_selection to app/agents/shared (slice 3a) 2026-06-04 12:28:20 +02:00
filesystem_state.py refactor(agents): move filesystem_state, path_resolver, sandbox to app/agents/shared (slice 3b) 2026-06-04 12:34:28 +02:00
llm_config.py refactor(agents): move llm_config + prompt_caching to app/agents/shared (slice 4b) 2026-06-04 12:41:52 +02:00
mention_resolver.py refactor(agents): move checkpointer + mention_resolver to app/agents/shared (slice 5b) 2026-06-04 12:52:54 +02:00
path_resolver.py refactor(agents): move filesystem_state, path_resolver, sandbox to app/agents/shared (slice 3b) 2026-06-04 12:34:28 +02:00
permissions.py refactor(agents): move permissions to app/agents/shared (slice 4a) 2026-06-04 12:38:30 +02:00
prompt_caching.py refactor(agents): move llm_config + prompt_caching to app/agents/shared (slice 4b) 2026-06-04 12:41:52 +02:00
receipt.py refactor(agents): move middleware package to app/agents/shared (slice 5c) 2026-06-04 13:00:41 +02:00
receipt_command.py refactor(agents): move filesystem_state, path_resolver, sandbox to app/agents/shared (slice 3b) 2026-06-04 12:34:28 +02:00
sandbox.py refactor(agents): move filesystem_state, path_resolver, sandbox to app/agents/shared (slice 3b) 2026-06-04 12:34:28 +02:00
state_reducers.py refactor(agents): move context schema + state reducers to app/agents/shared (slice 2) 2026-06-04 12:19:22 +02:00
utils.py refactor(agents): move utils + document_xml to app/agents/shared (slice 5a) 2026-06-04 12:50:38 +02:00