/** * CodeExecutor — orchestrates the isolated-vm sandbox for code execution. * * Creates a fresh V8 isolate per execution, bridges all registered MCP tools * as synchronous namespaced functions, captures console output, and disposes * the isolate in a finally block. * * Security contract: * - No filesystem access: isolated-vm provides no fs module by default * - No network access: no require/import available inside the isolate * - No Node.js built-ins: the sandbox only has JS builtins + bridged tools */ import type { ToolEntry, ExecutionResult, ExecutionOptions } from './types.js'; export declare class CodeExecutor { private readonly tools; constructor(tools: ToolEntry[]); /** * Execute caller-supplied JavaScript code in an isolated V8 sandbox. * * All registered MCP tools are available as synchronous functions inside * the sandbox under their namespace (gitlab.*, jira.*, confluence.*). * * @param code JavaScript/TypeScript code to execute. * @param options Execution options (timeout, memory limit). * @returns Execution result and captured console logs. */ execute(code: string, options?: ExecutionOptions): Promise; private setupConsoleBridge; private setupToolBridges; private setupIntrospection; } //# sourceMappingURL=executor.d.ts.map