/// import type { Graph, RuntimeExecutor } from '@nodarium/types'; export class WorkerRuntimeExecutor implements RuntimeExecutor { private worker = new ComlinkWorker( new URL(`./worker-runtime-executor-backend.ts`, import.meta.url) ); async execute(graph: Graph, settings: Record) { return this.worker.executeGraph(graph, settings); } async getPerformanceData() { return this.worker.getPerformanceData(); } set useRuntimeCache(useCache: boolean) { this.worker.setUseRuntimeCache(useCache); } set useRegistryCache(useCache: boolean) { this.worker.setUseRegistryCache(useCache); } }