mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-28 07:16:53 +05:00
- 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
49 lines
708 B
TypeScript
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
|