import { a as SkillSource, i as SandboxFileSource, n as AnySandbox, o as SandboxManifest, r as SandboxConfig, t as Sandbox } from "../chunks/Sandbox-JUa1Ghwp.mjs"; //#region src/sandbox/host-call-stub-source.d.ts declare const HOST_CALL_STUB_SOURCE: string; //#endregion //#region src/sandbox/runtime-types.d.ts /** * Runtime types for sandbox execution. * These define the contract that sandbox implementations must fulfill. */ /** * Result from executing code in a sandbox. */ interface CodeResult { stdout: string; stderr: string; exitCode: number; error?: string; } /** * Result from executing a shell command in a sandbox. */ interface CommandResult { stdout: string; stderr: string; exitCode: number; error?: string; } /** * Options for executing commands in a sandbox. */ interface CommandOptions { cwd?: string; env?: Record; timeout?: number; } /** * Abstract interface for sandbox operations. * Implementations are provided by sandbox runtimes such as microsandbox-backed executors. */ interface SandboxRuntime { readonly id: string; runCode(code: string, language?: 'python' | 'javascript' | 'typescript'): Promise; runCommand(command: string, options?: CommandOptions): Promise; readFile(path: string): Promise; writeFile(path: string, content: string): Promise; listFiles(path: string, options?: { recursive?: boolean; }): Promise; uploadFile(localPath: string, remotePath: string): Promise; uploadBuffer(remotePath: string, content: Buffer): Promise; downloadFile(remotePath: string): Promise; getEnv(key: string): string | undefined; setEnv(key: string, value: string): void; close(): Promise; } //#endregion export { type AnySandbox, type CodeResult, type CommandOptions, type CommandResult, HOST_CALL_STUB_SOURCE, Sandbox, type SandboxConfig, type SandboxFileSource, type SandboxManifest, type SandboxRuntime, type SkillSource };