claude-flow-tbowman01
Version:
Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)
35 lines • 1.3 kB
JavaScript
/**
* Claude-Flow UI Module
* Provides compatible UI solutions for different terminal environments
*/
export { CompatibleUI, createCompatibleUI, isRawModeSupported, launchUI, } from './compatible-ui.js';
export { handleRawModeError, withRawModeFallback, checkUISupport, showUISupport, } from './fallback-handler.js';
/**
* Main UI launcher that automatically selects the best available UI
*/
export async function launchBestUI() {
const fallbackHandler = await import('./fallback-handler.js');
const { checkUISupport, handleRawModeError } = fallbackHandler;
const launchUI = fallbackHandler.launchUI;
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.js');
console.log('🔄 Using compatible UI mode for this environment');
await launchCompatibleUI();
}
}
//# sourceMappingURL=index.js.map