Spaces:
Paused
Paused
Download types/sandbox.ts from Leon4gr45/paper2code-cli: direct link, hf CLI and curl.
- Browser
- Download file 631 Bytes
-
https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/types/sandbox.ts
- Command line
-
hf download hf://spaces/Leon4gr45/paper2code-cli/types/sandbox.ts
-
curl -L -o sandbox.ts https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/types/sandbox.ts
631 Bytes
| // Global types for sandbox file management | |
| export interface SandboxFile { | |
| content: string; | |
| lastModified: number; | |
| } | |
| export interface SandboxFileCache { | |
| files: Record<string, SandboxFile>; | |
| lastSync: number; | |
| sandboxId: string; | |
| manifest?: any; // FileManifest type from file-manifest.ts | |
| } | |
| export interface SandboxState { | |
| fileCache: SandboxFileCache | null; | |
| sandbox: any; // E2B sandbox instance | |
| sandboxData: { | |
| sandboxId: string; | |
| url: string; | |
| } | null; | |
| } | |
| // Declare global types | |
| declare global { | |
| var activeSandbox: any; | |
| var sandboxState: SandboxState; | |
| var existingFiles: Set<string>; | |
| } | |
| export {}; |