cerevox
Version:
TypeScript SDK for browser automation and secure command execution in highly available and scalable micro computer environments
23 lines • 657 B
TypeScript
import { CommandResult } from './types';
import { BaseClass } from './base';
import { Session } from './session';
export declare class CodeRunner extends BaseClass {
private terminal;
private session;
/**
* 创建 CodeRunner 实例
* @param sandbox - E2B 沙箱实例
* @param envs - 环境变量配置
* @param logLevel - 日志级别
*/
constructor(session: Session);
private injectCode;
run(code: string, options?: {
timeout?: number;
syncDir?: string;
inject?: boolean;
}): Promise<CommandResult & {
syncDir: string;
}>;
}
//# sourceMappingURL=code-runner.d.ts.map