refactor(agents): sink sandbox.py into filesystem subsystem

shared/sandbox.py was used only by the filesystem middleware/tools (and the
boundary) -- never by main_agent or subagents as shared code. Move it next to
its only agent-side consumer:

  multi_agent_chat/shared/sandbox.py
  -> multi_agent_chat/shared/middleware/filesystem/sandbox.py
This commit is contained in:
CREDO23 2026-06-05 13:15:57 +02:00
parent 24b62a63b4
commit 7d866a2279
6 changed files with 10 additions and 6 deletions

View file

@ -8,7 +8,9 @@ from deepagents import FilesystemMiddleware
from langchain_core.tools import BaseTool
from app.agents.chat.multi_agent_chat.shared.filesystem_selection import FilesystemMode
from app.agents.chat.multi_agent_chat.shared.sandbox import is_sandbox_enabled
from app.agents.chat.multi_agent_chat.shared.middleware.filesystem.sandbox import (
is_sandbox_enabled,
)
from app.agents.chat.multi_agent_chat.shared.state.filesystem_state import (
SurfSenseFilesystemState,
)

View file

@ -14,7 +14,7 @@ from typing import TYPE_CHECKING
from daytona.common.errors import DaytonaError
from langchain.tools import ToolRuntime
from app.agents.chat.multi_agent_chat.shared.sandbox import (
from app.agents.chat.multi_agent_chat.shared.middleware.filesystem.sandbox import (
_evict_sandbox_cache,
delete_sandbox,
get_or_create_sandbox,