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:
2026-01-27 23:33:06 -05:00
commit 0062e5d9d9
521 changed files with 66418 additions and 0 deletions

24
src/constants/write.ts Normal file
View File

@@ -0,0 +1,24 @@
/**
* Write tool constants
*/
export const WRITE_MESSAGES = {
PERMISSION_DENIED: "Permission denied by user",
} as const;
export const WRITE_TITLES = {
CANCELLED: (path: string) => `Write cancelled: ${path}`,
FAILED: (path: string) => `Write failed: ${path}`,
WRITING: (name: string) => `Writing ${name}`,
OVERWROTE: (path: string) => `Overwrote: ${path}`,
CREATED: (path: string) => `Created: ${path}`,
OVERWRITE_DESC: (path: string) => `Overwrite file: ${path}`,
CREATE_DESC: (path: string) => `Create file: ${path}`,
} as const;
export const WRITE_DESCRIPTION = `Write content to a file. Creates the file if it doesn't exist, or overwrites if it does.
Guidelines:
- Use absolute paths
- Parent directories will be created automatically
- Requires user approval for file writes`;