Skip to content

OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.

TypeScript
489 B
Raw Blame
import { LiveEditorHost } from "./live-host";

let hostSingleton: LiveEditorHost | null = null;

/**
 * One shared LiveEditorHost for every in-renderer agent entry point (the BYOK
 * chat panel and the desktop MCP bridge) so their edits land in a single,
 * consistent undo history rather than fighting over transaction bookkeeping.
 */
export function getLiveEditorHost(): LiveEditorHost {
  return (hostSingleton ??= new LiveEditorHost());
}

export { runExclusive } from "./host-lock";