Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

1.5 KB
Raw Blame
/** A two-row half-block font, the RUFLO logo's style, for the BBS section titles. */
export const FONT: Record<string, readonly [string, string]> = {
  A: ['β–„β–€β–„', 'β–ˆβ–€β–ˆ'], B: ['β–ˆβ–„β–„', 'β–ˆβ–„β–ˆ'], C: ['β–ˆβ–€β–€', 'β–ˆβ–„β–„'], D: ['β–ˆβ–€β–„', 'β–ˆβ–„β–€'], E: ['β–ˆβ–€β–€', 'β–ˆβ–ˆβ–„'],
  F: ['β–ˆβ–€β–€', 'β–ˆβ–€ '], G: ['β–ˆβ–€β–€', 'β–ˆβ–„β–ˆ'], H: ['β–ˆ β–ˆ', 'β–ˆβ–€β–ˆ'], I: ['β–€β–ˆβ–€', 'β–„β–ˆβ–„'], J: ['  β–ˆ', 'β–ˆβ–„β–ˆ'],
  K: ['β–ˆ β–ˆ', 'β–ˆβ–€β–„'], L: ['β–ˆ  ', 'β–ˆβ–„β–„'], M: ['β–ˆβ–€β–„β–€β–ˆ', 'β–ˆ   β–ˆ'], N: ['β–ˆβ–„ β–ˆ', 'β–ˆ β–€β–ˆ'], O: ['β–ˆβ–€β–ˆ', 'β–ˆβ–„β–ˆ'],
  P: ['β–ˆβ–€β–ˆ', 'β–ˆβ–€β–€'], Q: ['β–ˆβ–€β–ˆ', 'β–€β–€β–ˆ'], R: ['β–ˆβ–€β–ˆ', 'β–ˆβ–€β–„'], S: ['β–ˆβ–€β–€', 'β–„β–„β–ˆ'], T: ['β–€β–ˆβ–€', ' β–ˆ '],
  U: ['β–ˆ β–ˆ', 'β–ˆβ–„β–ˆ'], V: ['β–ˆ β–ˆ', 'β–€β–„β–€'], W: ['β–ˆ   β–ˆ', 'β–€β–„β–€β–„β–€'], X: ['β–€β–„β–€', 'β–„β–€β–„'], Y: ['β–€β–„β–€', ' β–ˆ '],
  Z: ['β–€β–€β–ˆ', 'β–ˆβ–„β–„'], '|': ['β–‘β–’β–“β–’β–‘', 'β–‘β–’β–“β–’β–‘'], '.': [' ', 'β–„'], '-': ['β–„β–„', '  '], ' ': ['  ', '  '],
}

export function bigText(text: string): [string, string] {
  const rows: [string[], string[]] = [[], []]

  for (const ch of text.toUpperCase()) {
    const glyph = FONT[ch] ?? FONT[' ']!

    rows[0].push(glyph[0])
    rows[1].push(glyph[1])
  }

  return [rows[0].join(' '), rows[1].join(' ')]
}

/** Text spaced out letter by letter, the way BBS splash screens captioned their art: `S W A R M`. */
export function spaced(text: string): string {
  return [...text.toUpperCase()].join(' ')
}