UNPKG

cerevox

Version:

TypeScript SDK for browser automation and secure command execution in highly available and scalable micro computer environments

34 lines 1.19 kB
import { BaseClass } from './base'; import { Terminal } from './terminal'; import { CodeRunner } from './code-runner'; import { FileSystem } from './file-system'; import { Browser } from './browser'; import { AI } from './ai'; import { Sandbox } from './sandbox'; export declare const sessions: Record<string, Session>; export declare class Session extends BaseClass { readonly sandbox: Sandbox; readonly terminal: Terminal; readonly codeRunner: CodeRunner; readonly files: FileSystem; readonly browser: Browser; private ws; private keepAliveTimer; private workspace; private isClosed; readonly ai: AI; constructor(sandbox: Sandbox, options?: { envs?: Record<string, string>; logLevel?: 'debug' | 'info' | 'warn' | 'error' | 'fatal'; workspace?: string; }); connect(): Promise<unknown>; private keepAlive; isRunning(): Promise<boolean>; get id(): string; getLogger(): import("pino").Logger; track(event: string, context: Record<string, string>): Promise<Response>; setTimeout(ms: number): Promise<void>; close(forceToKill?: boolean): Promise<void>; } //# sourceMappingURL=session.d.ts.map