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.0 KB
Raw Blame
import type { MemberState, PulseKind } from '../model/members'

/**
 * Colours by the names of Claude Code's own theme, so they follow a dark or a light theme. ANSI names (`cyan`, `yellow`)
 * are whatever the terminal makes of them and fade on a white background.
 */
export const HEAD = 'suggestion'
export const GOOD = 'success'
export const BAD = 'error'
export const WARN = 'warning'
export const ACCENT = 'claude'

/** A tile's colour by state; idle is drawn dim instead. Every state also has its word, so colour is never the only cue. */
export const STATE_COLORS: Record<MemberState, string | undefined> = {
  idle: undefined,
  working: ACCENT,
  blocked: WARN,
  done: GOOD,
  failed: BAD,
}

export const STATE_GLYPHS: Record<MemberState, string> = { idle: 'β—‹', working: '●', blocked: 'β—†', done: 'βœ“', failed: 'βœ—' }

/** A lit tile: blue while its agent reads files, yellow while it writes, drawn inverse so it stands out of its state colour. */
export const PULSE_COLORS: Record<PulseKind, string> = { read: HEAD, write: WARN }