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
79 lines
1.4 KiB
TypeScript
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;
|