MCPcopy Create free account

hub / github.com/abinthomasonline/repo2txt / functions

Functions234 in github.com/abinthomasonline/repo2txt

↓ 27 callersMethodvalidateUrl
* Validate a URL for this provider * @param url - URL to validate * @returns True if valid, false otherwise
src/lib/providers/types.ts:71
↓ 21 callersMethodgetNode
* Get a node by path
src/lib/file-tree/FileTree.ts:28
↓ 17 callersFunctionsanitizeFilename
(name: string)
src/lib/utils/repoName.ts:8
↓ 15 callersMethodparseUrl
* Parse a URL to extract repository information * @param url - URL to parse * @returns Parsed repository information
src/lib/providers/types.ts:78
↓ 14 callersMethodexecute
* Execute a function with rate limiting
src/lib/utils/rateLimiter.ts:25
↓ 14 callersMethodinitialize
* Initialize with directory files or zip file
src/features/local/LocalProvider.ts:67
↓ 13 callersMethodclear
* Clear all nodes
src/lib/file-tree/FileTree.ts:281
↓ 12 callersMethodfetchTree
* Fetch the file tree from the repository * @param url - Repository URL or identifier * @param options - Additional fetch options * @returns
src/lib/providers/types.ts:45
↓ 12 callersMethodgetAllNodes
* Get all nodes
src/lib/file-tree/FileTree.ts:42
↓ 12 callersFunctionsetCredentials
* Set authentication credentials
src/lib/providers/BaseProvider.ts:44
↓ 11 callersFunctionextractGitHubRepoName
(url: string)
src/lib/utils/repoName.ts:24
↓ 8 callersFunctionextractAzureRepoName
(url: string)
src/lib/utils/repoName.ts:71
↓ 8 callersFunctionextractGitLabRepoName
(url: string)
src/lib/utils/repoName.ts:46
↓ 8 callersMethodgetActiveCount
* Get current active request count
src/lib/utils/rateLimiter.ts:79
↓ 8 callersMethodgetRepoInfo
* Get metadata about the current repository
src/lib/providers/types.ts:64
↓ 8 callersMethodsetCredentials
* Set authentication credentials
src/lib/providers/types.ts:37
↓ 7 callersFunctioncreateMockFileList
(files: MockFile[])
src/features/local/__tests__/LocalProvider.test.ts:22
↓ 7 callersFunctionextractLocalName
(files: FileList | File)
src/lib/utils/repoName.ts:93
↓ 7 callersMethodgetExtension
* Get the file extension
src/lib/file-tree/FileNode.ts:46
↓ 6 callersMethodfetchFile
* Fetch content of a single file * @param node - File node to fetch * @returns File content
src/lib/providers/types.ts:52
↓ 6 callersMethodgetName
* Get a human-readable name for this provider
src/lib/providers/types.ts:27
↓ 6 callersMethodisDirectory
* Check if this is a directory (tree)
src/lib/file-tree/FileNode.ts:62
↓ 5 callersMethodapplyGitignore
* Apply gitignore patterns
src/lib/file-tree/FileTree.ts:135
↓ 5 callersFunctiongetTokenizerWorker
()
src/lib/formatter/TokenizerWorker.ts:156
↓ 5 callersMethodisChildOf
* Check if this node is a child of the given path
src/lib/file-tree/FileNode.ts:76
↓ 5 callersMethodisFile
* Check if this is a file (blob)
src/lib/file-tree/FileNode.ts:55
↓ 5 callersMethodsize
* Get total number of nodes
src/lib/file-tree/FileTree.ts:274
↓ 5 callersMethodtokenizeBatch
* Tokenize multiple files with progress callback
src/lib/formatter/TokenizerWorker.ts:90
↓ 4 callersMethodbuildGitHubHeaders
* Build GitHub-specific headers with authentication
src/features/github/GitHubProvider.ts:288
↓ 4 callersFunctioncreateProvider
(type: ProviderType)
src/lib/providers/ProviderFactory.ts:24
↓ 4 callersFunctiongetFileExtension
(path: string)
src/store/slices/fileTreeSlice.ts:355
↓ 4 callersFunctionhandleProviderChange
(provider: ProviderType)
src/components/ProviderSelector.tsx:34
↓ 4 callersFunctionisProviderRegistered
(type: ProviderType)
src/lib/providers/ProviderFactory.ts:41
↓ 4 callersMethodreset
* Reset the provider state
src/lib/providers/types.ts:83
↓ 4 callersMethodselectNode
* Select a node by path
src/lib/file-tree/FileTree.ts:77
↓ 3 callersMethodfetchMultiple
* Fetch multiple files with progress tracking * @param nodes - Array of file nodes to fetch * @returns Async generator yielding file contents
src/lib/providers/types.ts:59
↓ 3 callersMethodgenerateDirectoryTree
* Generate ASCII directory tree
src/lib/formatter/Formatter.ts:76
↓ 3 callersFunctiongetDefaultFilename
(prefix: string = 'repo')
src/lib/utils/repoName.ts:115
↓ 3 callersMethodgetDepth
* Get depth level in the tree (number of slashes)
src/lib/file-tree/FileNode.ts:69
↓ 3 callersMethodgetQueueLength
* Get queue length
src/lib/utils/rateLimiter.ts:86
↓ 3 callersMethodgetType
* Get the type of this provider
src/lib/providers/types.ts:22
↓ 3 callersMethodhandleFetchError
* Override error handling for GitHub-specific errors
src/features/github/GitHubProvider.ts:304
↓ 3 callersMethodrequiresAuth
* Check if this provider requires authentication
src/lib/providers/types.ts:32
↓ 3 callersMethodselectDirectory
* Select all nodes in a directory (recursively)
src/lib/file-tree/FileTree.ts:107
↓ 3 callersMethodtokenize
* Tokenize single text
src/lib/formatter/TokenizerWorker.ts:59
↓ 3 callersFunctiontraverse
(nodes: TreeNode[], depth: number)
src/components/file-tree/FileTree.tsx:28
↓ 2 callersMethodaddNodes
* Add nodes to the tree
src/lib/file-tree/FileTree.ts:18
↓ 2 callersMethodbuildAzureHeaders
* Build Azure DevOps-specific headers with authentication
src/features/azure/AzureDevOpsProvider.ts:203
↓ 2 callersMethodbuildGitLabHeaders
* Build GitLab-specific headers with authentication
src/features/gitlab/GitLabProvider.ts:212
↓ 2 callersFunctionbuildTree
(nodes: FileNode[], options: TreeBuilderOptions)
src/lib/tree-builder.ts:18
↓ 2 callersMethodclone
* Clone the tree
src/lib/file-tree/FileTree.ts:216
↓ 2 callersMethodcountTokens
* Count tokens using GPT tokenizer
src/lib/formatter/Formatter.ts:122
↓ 2 callersMethoddelay
* Utility: delay execution
src/lib/utils/rateLimiter.ts:101
↓ 2 callersFunctionextractDirectories
(nodes: FileNode[])
src/lib/tree-builder.ts:100
↓ 2 callersMethodfilterByExtension
* Filter nodes by extension
src/lib/file-tree/FileTree.ts:118
↓ 2 callersMethodgenerateFileContents
* Generate file contents section
src/lib/formatter/Formatter.ts:101
↓ 2 callersMethodgetDirectory
* Get the directory path (excluding filename)
src/lib/file-tree/FileNode.ts:38
↓ 2 callersMethodgetExtensionCounts
* Get file count by extension
src/lib/file-tree/FileTree.ts:195
↓ 2 callersMethodgetFileNodes
* Get only file nodes (blobs)
src/lib/file-tree/FileTree.ts:49
↓ 2 callersFunctiongetLabel
()
src/components/ui/ThemeToggle.tsx:23
↓ 2 callersMethodgetVisibleNodes
* Get visible nodes (not excluded)
src/lib/file-tree/FileTree.ts:63
↓ 2 callersMethodhandleFetchError
* Override error handling for Azure DevOps-specific errors
src/features/azure/AzureDevOpsProvider.ts:222
↓ 2 callersMethodhandleFetchError
* Override error handling for GitLab-specific errors
src/features/gitlab/GitLabProvider.ts:243
↓ 2 callersFunctionhandleFile
(file: File)
src/features/local/components/ZipUploader.tsx:45
↓ 2 callersFunctionhandleTabChange
(tab: TabType)
src/features/local/components/LocalForm.tsx:22
↓ 2 callersMethodhasNode
* Check if a node exists
src/lib/file-tree/FileTree.ts:35
↓ 2 callersMethodterminate
* Terminate the worker
src/lib/formatter/TokenizerWorker.ts:144
↓ 2 callersMethodtoJSON
* Convert to plain object for serialization
src/lib/file-tree/FileNode.ts:83
↓ 2 callersMethodtoggleSelection
* Toggle selection of a node
src/lib/file-tree/FileTree.ts:97
↓ 1 callersMethodbuildFileUrl
* Build file content URL for GitLab API
src/features/gitlab/GitLabProvider.ts:171
↓ 1 callersMethodclear
* Clear the queue
src/lib/utils/rateLimiter.ts:93
↓ 1 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils/cn.ts:8
↓ 1 callersFunctioncreateFileTreeSlice
(set, get)
src/store/slices/fileTreeSlice.ts:55
↓ 1 callersFunctioncreateProviderSlice
(set)
src/store/slices/providerSlice.ts:30
↓ 1 callersFunctioncreateThemeSlice
(set, get)
src/store/slices/themeSlice.ts:11
↓ 1 callersFunctioncreateUISlice
(set, get)
src/store/slices/uiSlice.ts:26
↓ 1 callersMethoddeselectNode
* Deselect a node by path
src/lib/file-tree/FileTree.ts:87
↓ 1 callersMethodexecuteAll
* Execute multiple functions with rate limiting
src/lib/utils/rateLimiter.ts:55
↓ 1 callersMethodextractBranchFromPath
* Extract branch from branchAndPath (before first slash or entire string)
src/features/gitlab/GitLabProvider.ts:228
↓ 1 callersMethodextractDirectoryName
* Extract directory name from FileList
src/features/local/LocalProvider.ts:235
↓ 1 callersMethodextractPathFromLastString
* Extract path from branchAndPath (everything after branch)
src/features/gitlab/GitLabProvider.ts:235
↓ 1 callersMethodfetchReferences
* Fetch references (branches and tags)
src/features/github/GitHubProvider.ts:133
↓ 1 callersMethodfetchTree
* Fetch tree from local files
src/features/local/LocalProvider.ts:108
↓ 1 callersMethodfetchTreeRecursive
* Fetch complete file tree recursively using Items API
src/features/azure/AzureDevOpsProvider.ts:139
↓ 1 callersMethodfetchTreeRecursive
* Fetch complete file tree recursively
src/features/github/GitHubProvider.ts:222
↓ 1 callersMethodfetchTreeRecursive
* Fetch complete file tree recursively from GitLab
src/features/gitlab/GitLabProvider.ts:145
↓ 1 callersMethodfetchTreeSha
* Fetch tree SHA for a specific ref/path
src/features/github/GitHubProvider.ts:199
↓ 1 callersFunctionflattenTree
* Flatten tree structure for virtual scrolling
src/components/file-tree/FileTree.tsx:22
↓ 1 callersFunctionfn
()
src/lib/utils/__tests__/rateLimiter.test.ts:35
↓ 1 callersMethodformatAsync
* Format tree structure and file contents into output text (async with Web Worker)
src/lib/formatter/Formatter.ts:32
↓ 1 callersFunctiongetCheckboxState
()
src/components/file-tree/FileTreeNode.tsx:68
↓ 1 callersMethodgetDirectoryNodes
* Get only directory nodes (trees)
src/lib/file-tree/FileTree.ts:56
↓ 1 callersFunctiongetFileIcon
()
src/components/file-tree/FileTreeNode.tsx:47
↓ 1 callersFunctiongetIcon
()
src/components/ui/ThemeToggle.tsx:17
↓ 1 callersMethodgetLanguageFromExtension
* Get language identifier for syntax highlighting
src/lib/formatter/Formatter.ts:164
↓ 1 callersMethodgetName
* Get the file name from the path
src/lib/file-tree/FileNode.ts:30
↓ 1 callersFunctiongetProviderForUrl
(url: string)
src/lib/providers/ProviderFactory.ts:56
↓ 1 callersFunctiongetRegisteredProviders
()
src/lib/providers/ProviderFactory.ts:48
↓ 1 callersMethodgetSelectedNodes
* Get selected nodes
src/lib/file-tree/FileTree.ts:70
↓ 1 callersFunctionhandleAddSuggestion
(pattern: string)
src/components/filters/GitIgnoreEditor.tsx:71
next →1–100 of 234, ranked by callers