/**
 * RuntimeDetachedFactory — adapter wrapping WarpRuntime's graph cloning.
 *
 * Creates read-only detached graph instances for isolated materialization.
 */
import DetachedGraphFactory from "../capabilities/DetachedGraphFactory.js";
import { openDetachedGraph, } from "../services/controllers/detachedOpen.js";
export default class RuntimeDetachedFactory extends DetachedGraphFactory {
    _runtime;
    _open;
    constructor(runtime, open) {
        super();
        this._runtime = runtime;
        this._open = open;
    }
    async openReadOnly() {
        return await openDetachedGraph(this._runtime, this._open);
    }
}
