@sethdouglasford/claude-flow
Version:
Claude Code Flow - Advanced AI-powered development workflows with SPARC methodology
34 lines • 1.25 kB
JavaScript
/**
* Claude-Flow UI Module
* Provides compatible UI solutions for different terminal environments
*/
export { CompatibleUI, createCompatibleUI, isRawModeSupported, launchUI, } from "./compatible-ui";
export { handleRawModeError, withRawModeFallback, checkUISupport, showUISupport, } from "./fallback-handler";
/**
* Main UI launcher that automatically selects the best available UI
*/
export async function launchBestUI() {
const { checkUISupport, handleRawModeError } = await import("./fallback-handler");
const { launchUI } = await import("./compatible-ui");
const support = checkUISupport();
if (support.supported) {
try {
await launchUI();
}
catch (error) {
if (error instanceof Error) {
await handleRawModeError(error, {
enableUI: true,
fallbackMessage: "Falling back to compatible UI mode",
showHelp: true,
});
}
}
}
else {
const { launchUI: launchCompatibleUI } = await import("./compatible-ui");
console.log("🔄 Using compatible UI mode for this environment");
await launchCompatibleUI();
}
}
//# sourceMappingURL=index.js.map