feat: integrated with sandbox

This commit is contained in:
Henry Li
2026-01-14 12:32:34 +08:00
parent c1e9340062
commit de2d18561a
8 changed files with 103 additions and 34 deletions

View File

@@ -13,9 +13,11 @@ class LocalSandboxProvider(SandboxProvider):
return _singleton.id
def get(self, sandbox_id: str) -> None:
if _singleton is None:
self.acquire()
return _singleton
if sandbox_id == "local":
if _singleton is None:
self.acquire()
return _singleton
return None
def release(self, sandbox_id: str) -> None:
pass