UNPKG

dina-agi

Version:

DINA AGI - Dynamic Intelligence Network Architecture. 128 Autonomous Agents with Claude Flow, Swarms, and 300+ MCPs. True AGI System.

13 lines (11 loc) 371 B
const borderedText = (text: string) => { const lines = text.split('\n'); const width = Math.max(...lines.map((l) => l.length)); const res = [`┌${'─'.repeat(width + 2)}┐`]; for (const line of lines) { res.push(`│ ${line.padEnd(width)} │`); } res.push(`└${'─'.repeat(width + 2)}┘`); return res.join('\n'); }; export default borderedText;