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
This commit is contained in:
78
src/constants/spinner.ts
Normal file
78
src/constants/spinner.ts
Normal file
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* 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;
|
||||
Reference in New Issue
Block a user