Files
codetyper.cli/src/constants/write.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

25 lines
804 B
TypeScript

/**
* 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`;