openoperator / types /sandbox.ts
Leon4gr45's picture
Deploy to clean space
75fefa7 verified
raw
history blame contribute delete
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 {};