Base sandbox implementation with execute() as abstract method.
This class provides default implementations for all protocol methods using shell commands. Subclasses only need to implement execute().
BaseSandbox()Execute a command in the sandbox and return ExecuteResponse.
Structured listing with file metadata using os.scandir.
Read file content with line numbers using a single shell command.
Create a new file. Returns WriteResult; error populated on failure.
Edit a file by replacing string occurrences. Returns EditResult.
Structured search results or error string for invalid input.
Structured glob matching returning FileInfo dicts.
Upload multiple files to the sandbox.
Implementations must support partial success - catch exceptions per-file and return errors in FileUploadResponse objects rather than raising.
Download multiple files from the sandbox.
Implementations must support partial success - catch exceptions per-file and return errors in FileDownloadResponse objects rather than raising.
Async version of ls_info.
Async version of read using native store async methods.
Async version of grep_raw.
Async version of glob_info.
Async version of write using native store async methods.
Async version of edit using native store async methods.
Async version of upload_files.
Async version of download_files.