Files
codetyper.cli/src/constants/spinner.ts
Carlos Gutierrez 0062e5d9d9 Terminal-based AI coding agent with interactive TUI for autonomous code generation.
Features:
  - Interactive TUI with React/Ink
  - Autonomous agent with tool calls (bash, read, write, edit, glob, grep)
  - Permission system with pattern-based rules
  - Session management with auto-compaction
  - Dual providers: GitHub Copilot and Ollama
  - MCP server integration
  - Todo panel and theme system
  - Streaming responses
  - GitHub-compatible project context
2026-01-27 23:33:06 -05:00

79 lines
1.4 KiB
TypeScript

/**
* Spinner animation constants
*/
// Spinner frame sets
export const Spinners = {
dots: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"],
line: ["-", "\\", "|", "/"],
circle: ["◐", "◓", "◑", "◒"],
arrow: ["←", "↖", "↑", "↗", "→", "↘", "↓", "↙"],
bounce: ["⠁", "⠂", "⠄", "⠂"],
bars: [
"▏",
"▎",
"▍",
"▌",
"▋",
"▊",
"▉",
"█",
"▉",
"▊",
"▋",
"▌",
"▍",
"▎",
"▏",
],
pulse: ["█", "▓", "▒", "░", "▒", "▓"],
blocks: ["▖", "▘", "▝", "▗"],
clock: [
"🕐",
"🕑",
"🕒",
"🕓",
"🕔",
"🕕",
"🕖",
"🕗",
"🕘",
"🕙",
"🕚",
"🕛",
],
moon: ["🌑", "🌒", "🌓", "🌔", "🌕", "🌖", "🌗", "🌘"],
braille: ["⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"],
scanner: [
"[ ]",
"[= ]",
"[== ]",
"[=== ]",
"[ ===]",
"[ ==]",
"[ =]",
"[ ]",
],
} as const;
// Default spinner configuration
export const SPINNER_DEFAULTS = {
type: "dots" as const,
interval: 80,
text: "Loading...",
} as const;
// Scanner spinner defaults
export const SCANNER_DEFAULTS = {
width: 10,
interval: 60,
char: "█",
} as const;
// Progress bar defaults
export const PROGRESS_BAR_DEFAULTS = {
width: 30,
filledChar: "█",
emptyChar: "░",
} as const;