Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 14 lines 414 Bytes
Raw
1 import * as color from 'src/ui/colors';
2
3 export const formatTitle = (errorsCount: number): string[] => {
4 if (errorsCount === 1) {
5 return [''];
6 }
7
8 const libName = color.bold(`${color.underline(color.redBright('effect-errors'))}`);
9 const title = color.bold(
10 color.cyanBright(`${errorsCount} error${errorsCount > 1 ? 's' : ''} occurred`)
11 );
12
13 return ['', `❌ ${libName} ❌ ${title}`, '', ''];
14 };