import { emergencyTerminalRestore } from '../../stubs/tui/index.ts';
import { postmortem } from "@oh-my-pi/pi-utils";

/**
 * Interactive mode and embeddable RPC client exports for the coding agent.
 *
 * Branch-specific runners live in their concrete modules so importing this
 * barrel does not pull print, RPC server, or ACP server mode into the normal
 * TUI graph.
 */
export * from "./interactive-mode";
export * from "./rpc/rpc-client";
export * from "./rpc/rpc-types";

postmortem.register("terminal-restore", () => {
	emergencyTerminalRestore();
});
