UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

47 lines 1.16 kB
/** * Isolated VM Sandbox * @description Secure sandboxed execution environment using isolated-vm * @author Optimizely MCP Server * @version 1.0.0 */ import { PluginContext, PluginResult } from '../types/index.js'; export interface SandboxOptions { timeout?: number; memoryLimit?: number; inspector?: boolean; } export declare class IsolatedVMSandbox { private logger; private isolate; private defaultOptions; constructor(options?: SandboxOptions); /** * Execute plugin code in sandbox */ execute(code: string, context: PluginContext, options?: SandboxOptions): Promise<PluginResult>; /** * Inject safe APIs based on permissions */ private injectAPIs; /** * Inject context data */ private injectContextData; /** * Inject utility functions */ private injectUtilities; /** * Create async proxy for functions */ private createAsyncProxy; /** * Get memory usage of isolate */ private getMemoryUsage; /** * Destroy the isolate */ destroy(): Promise<void>; } //# sourceMappingURL=IsolatedVMSandbox.d.ts.map