Files
puaros/packages/ipuaro/src/domain/constants/index.ts
imfozilbek 130a8c4f24 feat(ipuaro): implement v0.1.0 foundation
- Project setup with tsup, vitest, ESM support
- Domain entities: Session, Project
- Value objects: FileData, FileAST, FileMeta, ChatMessage, ToolCall, ToolResult, UndoEntry
- Service interfaces: IStorage, ILLMClient, ITool, IIndexer, IToolRegistry
- Shared: Config (zod), IpuaroError, utils (hash, tokens), Result type
- CLI with placeholder commands (start, init, index)
- 91 unit tests with 100% coverage
- Fix package scope @puaros -> @samiyev in CLAUDE.md
2025-11-29 23:08:38 +05:00

49 lines
708 B
TypeScript

// Domain Constants
export const MAX_UNDO_STACK_SIZE = 10
export const SUPPORTED_EXTENSIONS = [
".ts",
".tsx",
".js",
".jsx",
".json",
".yaml",
".yml",
] as const
export const BINARY_EXTENSIONS = [
".png",
".jpg",
".jpeg",
".gif",
".ico",
".svg",
".woff",
".woff2",
".ttf",
".eot",
".mp3",
".mp4",
".webm",
".pdf",
".zip",
".tar",
".gz",
] as const
export const DEFAULT_IGNORE_PATTERNS = [
"node_modules",
"dist",
"build",
".git",
".next",
".nuxt",
"coverage",
".cache",
] as const
export const CONTEXT_WINDOW_SIZE = 128_000
export const CONTEXT_COMPRESSION_THRESHOLD = 0.8