Configuração¶
Project root detection and configuration management.
SemtreeConfig
dataclass
¶
SemtreeConfig(include_extensions=(lambda: ['.py', '.js', '.ts', '.tsx', '.jsx', '.go', '.rs', '.java', '.c', '.cpp', '.h', '.hpp', '.rb', '.php', '.swift', '.kt', '.cs', '.md', '.txt', '.yaml', '.yml', '.toml', '.json'])(), exclude_dirs=(lambda: ['.git', '.hg', '.svn', 'node_modules', '__pycache__', '.venv', 'venv', 'env', '.env', 'dist', 'build', 'target', '.ctx', '.idea', '.vscode', '*.egg-info', 'coverage', '.coverage', 'htmlcov'])(), max_file_size_kb=512, use_gitignore=True, default_token_budget=8000, git_context=True, mcp_host='127.0.0.1', mcp_port=5137)
find_project_root ¶
Walk up from start (default: cwd) until a root marker is found.
Falls back to cwd if no marker is found within 10 levels.