UNPKG

mcard-js

Version:

MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers

22 lines 712 B
/** * JavaScript runtime executor. * * Executes JavaScript code in VM sandbox or subprocess for module/import support. */ import { Runtime } from './base.js'; export declare class JavaScriptRuntime implements Runtime { execute(code: string, context: unknown, config: any): Promise<unknown>; /** * Check if code requires subprocess execution (has imports/exports). */ private requiresSubprocess; /** * Execute code in VM sandbox (fast, for simple scripts). */ private executeInVM; /** * Execute code in subprocess (for modules/imports). */ executeSubprocess(code: string, context: unknown): Promise<unknown>; } //# sourceMappingURL=javascript.d.ts.map