MCPcopy Create free account

hub / github.com/amantus-ai/llm-codes / functions

Functions180 in github.com/amantus-ai/llm-codes

↓ 1 callersMethodacquireLock
* Acquire a distributed lock for a URL * Returns lock ID if successful, null if lock already held
src/lib/cache/redis-cache.ts:475
↓ 1 callersFunctionassertAllowedPlaywrightNavigationUrl
(url: string)
src/lib/playwright-scraper.ts:293
↓ 1 callersFunctionassertAllowedPlaywrightSameHostNavigationUrl
(url: string, expectedHostname: string)
src/lib/playwright-scraper.ts:304
↓ 1 callersFunctioncrawlUrl
(url, { limit, maxDepth })
scripts/verify-modes.mjs:157
↓ 1 callersFunctiondeduplicateMarkdown
(markdown: string)
src/utils/documentation-filter.ts:391
↓ 1 callersFunctionencodeCachedScrape
(markdown: string, metadata: Record<string, unknown>)
src/app/api/scrape/route.ts:336
↓ 1 callersFunctionextractCodeBlocks
(markdown)
scripts/verify-modes.mjs:242
↓ 1 callersFunctionfilterAvailabilityStrings
(markdown: string)
src/utils/documentation-filter.ts:326
↓ 1 callersFunctionfilterUrlsFromMarkdown
(markdown: string)
src/utils/documentation-filter.ts:298
↓ 1 callersFunctionfindOpenPort
(startPort)
scripts/verify-firecrawl.mjs:107
↓ 1 callersFunctionfindOpenPort
(startPort)
scripts/verify-modes.mjs:99
↓ 1 callersFunctionformatDatePrefix
(date: Date)
src/utils/url-utils.ts:150
↓ 1 callersFunctionformatHostResolverAddress
(address: string)
src/lib/playwright-scraper.ts:344
↓ 1 callersFunctiongetConnectionStats
()
src/lib/http2-client.ts:40
↓ 1 callersMethodgetCrawlResults
* Get crawl job results for a specific page
src/lib/cache/redis-cache.ts:655
↓ 1 callersFunctiongetFirecrawlCrawlStatus
( apiKey: string, statusUrl: string, )
src/lib/firecrawl.ts:254
↓ 1 callersFunctiongetProviderName
(provider: ScrapeProvider)
src/lib/scrape-provider.ts:29
↓ 1 callersMethodgetStats
* Get queue statistics
src/lib/retry-queue.ts:164
↓ 1 callersFunctionhasUnmatchedClosingParen
(value: string)
src/utils/content-processing.ts:110
↓ 1 callersMethodincrementFirecrawlFetches
* Increment Firecrawl fetch counter
src/lib/cache/redis-cache.ts:400
↓ 1 callersFunctioninferAllowedOrigins
(links: URL[], baseUrl: URL)
src/utils/content-processing.ts:116
↓ 1 callersFunctioninferAllowedOrigins
(links, baseUrl)
scripts/verify-firecrawl.mjs:196
↓ 1 callersMethodinitializeRedis
()
src/lib/cache/redis-cache.ts:94
↓ 1 callersFunctionisAllowedDocumentationPath
(linkUrl: URL, baseUrl: URL, isAppleDocs: boolean)
src/utils/content-processing.ts:155
↓ 1 callersFunctionisAssetPath
(pathLower: string)
src/utils/content-processing.ts:202
↓ 1 callersFunctionisAssetPath
(path)
scripts/verify-firecrawl.mjs:222
↓ 1 callersFunctionisCacheableFirecrawlContent
(markdown: string)
src/lib/firecrawl.ts:186
↓ 1 callersFunctionisDocumentationHost
(hostname: string)
src/utils/content-processing.ts:142
↓ 1 callersFunctionisLikelyCodeBlockEnd
* Detects if a line likely marks the end of an unclosed code block
src/utils/code-extraction.ts:12
↓ 1 callersMethodisLocked
* Check if a URL is currently being processed
src/lib/cache/redis-cache.ts:529
↓ 1 callersFunctionisNotFoundContent
(markdown: string)
src/lib/firecrawl.ts:170
↓ 1 callersFunctionisPortOpen
(port)
scripts/verify-firecrawl.mjs:114
↓ 1 callersFunctionisPortOpen
(port)
scripts/verify-modes.mjs:106
↓ 1 callersFunctionisRetryableFirecrawlStatus
(status: number)
src/lib/firecrawl.ts:110
↓ 1 callersFunctionmatchesAllowedException
(url: string, exceptionPattern: string)
src/utils/url-utils.ts:19
↓ 1 callersFunctionprocessUrlsWithDepth
( urls: string[], currentDepth: number, maxDepth: number, maxUrlsToProcess: number, proces
src/app/page.tsx:280
↓ 1 callersFunctionreadCrawlEvents
(jobId)
scripts/verify-modes.mjs:204
↓ 1 callersMethodreleaseLock
* Release a distributed lock
src/lib/cache/redis-cache.ts:507
↓ 1 callersMethodremove
* Remove a task from the retry queue
src/lib/retry-queue.ts:128
↓ 1 callersFunctionrequestNotificationPermission
()
src/app/page.tsx:167
↓ 1 callersMethodreset
()
src/lib/circuit-breaker.ts:215
↓ 1 callersFunctionresolveLink
(href: string, baseUrl: URL)
src/utils/content-processing.ts:90
↓ 1 callersFunctionrun
(command, args)
scripts/verify-firecrawl.mjs:97
↓ 1 callersFunctionrun
(command, args)
scripts/verify-modes.mjs:89
↓ 1 callersFunctionscrapePlaywrightUrl
( url: string, options: PlaywrightScrapeOptions = {}, )
src/lib/playwright-scraper.ts:58
↓ 1 callersFunctionscrapeUrl
(urlToScrape: string)
src/app/page.tsx:203
↓ 1 callersFunctionscrapeUrl
(url)
scripts/verify-modes.mjs:134
↓ 1 callersFunctionsleep
(ms)
scripts/verify-modes.mjs:252
↓ 1 callersFunctionstripAnsi
(value: string)
src/lib/playwright-scraper.ts:236
↓ 1 callersFunctionstripTrailingUrlPunctuation
(href: string)
src/utils/content-processing.ts:100
↓ 1 callersFunctionstripTrailingUrlPunctuation
(href)
scripts/verify-firecrawl.mjs:211
↓ 1 callersMethodwaitForLock
* Wait for a lock to be released (with timeout)
src/lib/cache/redis-cache.ts:546
↓ 1 callersFunctionwaitForServer
(url)
scripts/verify-firecrawl.mjs:125
↓ 1 callersFunctionwaitForServer
(url)
scripts/verify-modes.mjs:117
FunctionGET
(_request: NextRequest)
src/app/api/cache/stats/route.ts:4
FunctionGET
( request: NextRequest, { params }: { params: Promise<{ jobId: string }> }, )
src/app/api/crawl/[jobId]/results/route.ts:4
FunctionHome
()
src/app/page.tsx:23
FunctionIcon
()
src/app/icon.tsx:12
FunctionRootLayout
({ children }: { children: React.ReactNode })
src/app/layout.tsx:72
FunctionThemeScript
()
src/app/theme-script.tsx:1
MethodclearLocalCache
* Clear all local cache
src/lib/cache/redis-cache.ts:393
Methodconstructor
(message: string, status: number, details?: unknown)
src/lib/firecrawl.ts:71
Methodconstructor
(redis: Redis | null, keyPrefix = "retry")
src/lib/retry-queue.ts:19
Methodconstructor
(message: string)
src/lib/scrape-provider.ts:6
Methodconstructor
(message: string, context?: Record<string, unknown>)
src/lib/errors.ts:9
Methodconstructor
( message: string, statusCode?: number, url?: string, context?: Record<string, unknown>, )
src/lib/errors.ts:36
Methodconstructor
( message: string, statusCode?: number, url?: string, apiError?: string, retryable = false
src/lib/errors.ts:52
Methodconstructor
( message: string, operation: "get" | "set" | "delete" | "lock", context?: Record<string, unknown>
src/lib/errors.ts:69
Methodconstructor
(message: string, field?: string, value?: unknown, context?: Record<string, unknown>)
src/lib/errors.ts:83
Methodconstructor
( message: string, state: "open" | "half-open", cooldownRemaining?: number, context?: Record<s
src/lib/errors.ts:94
Methodconstructor
( message: string, contentLength: number, truncated = false, context?: Record<string, unknown>
src/lib/errors.ts:110
Methodconstructor
(message: string, status: number, retryable = false, details?: unknown)
src/lib/playwright-scraper.ts:41
Methodconstructor
(redis: Redis | null, name: string, config: Partial<CircuitBreakerConfig> = {})
src/lib/circuit-breaker.ts:23
Methodconstructor
( ttl: number = PROCESSING_CONFIG.CACHE_DURATION / 1000, // Convert ms to seconds compressionThreshold
src/lib/cache/redis-cache.ts:77
FunctiondownloadMarkdown
()
src/app/page.tsx:608
FunctionhandleLogScroll
()
src/app/page.tsx:158
FunctionprocessUrl
()
src/app/page.tsx:382
MethodresetStats
* Reset statistics
src/lib/cache/redis-cache.ts:449
Functionstart
(controller)
src/app/api/crawl/[jobId]/status/route.ts:52
Functionstart
(controller)
src/hooks/__tests__/useCrawl.test.ts:36
← previous101–180 of 180, ranked by callers