Documentation Index
Fetch the complete documentation index at: https://docs.buntime.sh/llms.txt
Use this file to discover all available pages before exploring further.
Core Types
Session
interface Session {
id: string;
expiresAt: string;
previewUrl: string;
createdAt: string;
resourceLimits: ResourceLimits;
}
ExecuteRequest
interface ExecuteRequest {
sessionId: string;
code?: string;
command?: string;
files?: Array<{ path: string; content: string }>;
env?: Record<string, string>;
timeout?: number;
}
ExecuteResponse
interface ExecuteResponse {
stdout: string;
stderr: string;
exitCode: number;
executionTime: number;
memoryUsed: number;
}
File
interface File {
path: string;
size: number;
modified: string;
type: 'file' | 'directory';
}
Error Types
BuntimeError
class BuntimeError extends Error {
code: string;
status: number;
details?: any;
retryAfter?: number;
}
Import Types
import type {
Session,
ExecuteRequest,
ExecuteResponse,
File,
BuntimeError
} from 'buntime.sh';