MCPcopy Create free account

hub / github.com/amrkmn/x / functions

Functions149 in github.com/amrkmn/x

↓ 55 callersMethodinfo
(scope: string, message: string, ...args: unknown[])
scripts/log.ts:288
↓ 20 callersMethoderror
(scope: string, message: string, ...args: unknown[])
scripts/log.ts:296
↓ 16 callersFunctionasString
(value: unknown, path: string)
src/lib/validation.ts:7
↓ 11 callersMethodlog
(level: LogLevel, message: string, ...args: unknown[])
scripts/log.ts:86
↓ 10 callersFunctioncalculateFileChecksum
(filePath: string)
scripts/cache/files.ts:7
↓ 9 callersFunctionfileExists
(client: S3Client, key: string)
scripts/cache/client.ts:53
↓ 8 callersFunctionformatBytes
(bytes: number)
tests/cache-format.test.ts:5
↓ 8 callersMethodprogress
(current: number, bytes?: number)
scripts/log.ts:204
↓ 7 callersMethodcomplete
(stats: { valid?: number; invalid?: number; missing?: number; bytes?: number })
scripts/log.ts:231
↓ 7 callersFunctionfindExtensionUpdates
( data: ExtensionsData, options: FindExtensionUpdatesOptions )
scripts/extensions.ts:226
↓ 7 callersFunctiongenerateCacheKey
()
scripts/cache/utils.ts:71
↓ 7 callersMethodmessage
(scope: string, message: string)
scripts/log.ts:68
↓ 7 callersFunctionwriteJsonToS3
(key: string, data: any)
scripts/cache/utils.ts:78
↓ 6 callersFunctioncreateExtensionsData
()
tests/update-pipeline.test.ts:21
↓ 6 callersFunctionensureDir
(dir: string)
scripts/cache/files.ts:164
↓ 6 callersFunctionformatSourceName
(sourceName: string)
src/lib/search/utils.ts:4
↓ 6 callersFunctionformatTransferStats
( bytes: number, elapsedSeconds: number, totalBytes?: number )
scripts/log.ts:40
↓ 6 callersFunctiongenerateInstanceId
()
scripts/cache/lock.ts:16
↓ 6 callersFunctiongetObject
(client: S3Client, key: string)
scripts/cache/client.ts:61
↓ 6 callersFunctionisLockStale
(lock: CacheLock, currentHostname: string)
tests/cache-lock.test.ts:43
↓ 6 callersFunctionparseSourceUrlExt
(source: string)
tests/extensions-source.test.ts:99
↓ 5 callersFunctionasRecord
(value: unknown, path: string)
src/lib/validation.ts:37
↓ 5 callersFunctionfetch
(request: Request, env: any)
scripts/worker.ts:2
↓ 5 callersFunctiongetMetadataKey
(cacheKey: string)
scripts/cache/metadata.ts:10
↓ 5 callersFunctiongetMetadataKey
(cacheKey: string)
tests/cache-metadata.test.ts:5
↓ 5 callersFunctionloadManifest
(s3: S3Client)
scripts/cache/manifest.ts:9
↓ 4 callersFunctioncleanupDir
(dir: string)
scripts/cache/files.ts:170
↓ 4 callersMethodcounter
( scope: string, label: string, totalItems: number, totalBytes?: number,
scripts/log.ts:304
↓ 4 callersFunctiondebounce
( func: T, wait: number )
src/lib/search/debounce.ts:5
↓ 4 callersFunctiondeleteObject
(client: S3Client, key: string)
scripts/cache/client.ts:66
↓ 4 callersFunctionfindCacheByKey
(manifest: CacheManifest, key: string)
scripts/cache/manifest.ts:62
↓ 4 callersFunctionfindSourceByFormattedName
( formattedName: string, availableSources: string[] )
src/lib/search/utils.ts:11
↓ 4 callersFunctiongetClient
()
scripts/cache/client.ts:37
↓ 4 callersFunctionpersistQuickUpdates
(updated: boolean)
scripts/task.ts:65
↓ 4 callersFunctionrunTask
(args = process.argv.slice(2))
scripts/task.ts:183
↓ 4 callersFunctionsetupTestRepo
(dir: string, files: Record<string, string> = {})
tests/update-pipeline.test.ts:54
↓ 4 callersMethodwarn
(scope: string, message: string, ...args: unknown[])
scripts/log.ts:292
↓ 3 callersFunctionasArray
(value: unknown, path: string)
src/lib/validation.ts:30
↓ 3 callersFunctionasString
(value: unknown, path: string)
scripts/validation.ts:7
↓ 3 callersMethodendProgressLine
()
scripts/log.ts:105
↓ 3 callersFunctionfindCacheByPrefix
(manifest: CacheManifest, prefix: string)
scripts/cache/manifest.ts:66
↓ 3 callersFunctiongenerateDataJson
( data?: ExtensionsData, options: GenerateDataOptions = {} )
scripts/extensions.ts:159
↓ 3 callersFunctionisRecord
(value: unknown)
scripts/validation.ts:3
↓ 3 callersFunctionloadExtensionsData
(path = EXTENSIONS_FILE)
scripts/extensions.ts:79
↓ 3 callersFunctionloadMetadata
(s3: S3Client, cacheKey: string)
scripts/cache/metadata.ts:76
↓ 3 callersFunctionparseAppData
(value: unknown)
src/lib/validation.ts:90
↓ 3 callersFunctionrestoreStaticCache
()
scripts/task.ts:53
↓ 3 callersFunctionsaveManifest
(manifest: CacheManifest)
scripts/cache/manifest.ts:30
↓ 3 callersMethodtransfer
(prefix: string, totalBytes?: number)
scripts/log.ts:300
↓ 3 callersFunctionupdateMeilisearch
()
scripts/meilisearch.ts:7
↓ 2 callersFunctionasOptionalString
(value: unknown, path: string)
src/lib/validation.ts:22
↓ 2 callersFunctioncacheExists
(s3: S3Client, key: string)
scripts/cache/s3.ts:18
↓ 2 callersFunctionchecksumFiles
(paths: string[])
scripts/cache/files.ts:138
↓ 2 callersFunctioncleanupStaleCache
(s3: S3Client, key: string)
scripts/cache/s3.ts:20
↓ 2 callersFunctioncollectFileEntries
( paths: string[] )
scripts/cache/files.ts:83
↓ 2 callersFunctioncompressToTar
( paths: string[], outputPath: string )
scripts/cache/files.ts:103
↓ 2 callersFunctiondeleteMetadata
(s3: S3Client, cacheKey: string)
scripts/cache/metadata.ts:127
↓ 2 callersMethodelapsedSeconds
()
scripts/log.ts:200
↓ 2 callersFunctionexpectSingleDebouncedResult
(results: number[], expected: number)
tests/debounce.test.ts:4
↓ 2 callersFunctionextractTar
(tarPath: string, destPath = '.')
scripts/cache/files.ts:53
↓ 2 callersFunctionfindCachesByPrefix
(manifest: CacheManifest, prefix: string)
scripts/cache/manifest.ts:71
↓ 2 callersFunctionformatBytes
(bytes: number)
scripts/cache.ts:26
↓ 2 callersFunctioninitMinisearch
(extensions: EnrichedExtension[])
src/lib/search/minisearch.ts:12
↓ 2 callersMethodmessage
(bytes: number)
scripts/log.ts:149
↓ 2 callersFunctionparseExtension
(value: unknown, path: string)
src/lib/validation.ts:50
↓ 2 callersFunctionparseExtensionsData
( value: unknown )
scripts/validation.ts:38
↓ 2 callersFunctionparseSearchIndex
(value: unknown)
src/lib/validation.ts:118
↓ 2 callersFunctionparseSourceUrl
(source: string)
scripts/extensions.ts:193
↓ 2 callersMethodprefix
(scope: string)
scripts/log.ts:62
↓ 2 callersMethodprogressPrefix
(prefix: string)
scripts/log.ts:72
↓ 2 callersFunctionremoveCacheEntry
(s3: S3Client, key: string)
scripts/cache/manifest.ts:56
↓ 2 callersFunctionrewriteMirroredIndexFiles
(dest: string, key: string)
scripts/extensions.ts:55
↓ 2 callersFunctionsaveExtensionsData
( data: ExtensionsData, path = EXTENSIONS_FILE )
scripts/extensions.ts:83
↓ 2 callersFunctionsaveMetadata
( key: string, files: Record<string, FileMetadata>, cacheFilePath: string, timestamp?: number
scripts/cache/metadata.ts:14
↓ 2 callersFunctionsaveStaticCache
()
scripts/task.ts:61
↓ 2 callersFunctionupdateBothAccessTimes
( s3: S3Client, cacheKey: string, metadata: CacheMetadata )
scripts/cache/metadata.ts:109
↓ 2 callersFunctionupdateExtensions
( command: 'check' | 'static' | 'full', args: string[] )
scripts/task.ts:124
↓ 2 callersFunctionuploadToS3
( key: string, data: Uint8Array | ArrayBuffer | Blob | ReadableStream<Uint8Array>, options?: {
scripts/cache/client.ts:118
↓ 1 callersFunctionacquireLock
(s3: S3Client, instanceId: string)
scripts/cache/lock.ts:70
↓ 1 callersFunctionaddCacheEntry
( s3: S3Client, key: string, hash: string, timestamp: number )
scripts/cache/manifest.ts:34
↓ 1 callersFunctionapplyCommitUpdates
(data: ExtensionsData, updates: ExtensionUpdate[])
scripts/extensions.ts:286
↓ 1 callersFunctionasNsfw
(value: unknown, path: string)
src/lib/validation.ts:44
↓ 1 callersFunctionasOptionalNumber
(value: unknown, path: string)
src/lib/validation.ts:14
↓ 1 callersFunctionbuildEndpoint
* Builds the endpoint URL. For virtual-hosted style, the bucket is prepended * as a subdomain: https://{bucket}.{host}/... * For path-style, the ori
scripts/cache/client.ts:27
↓ 1 callersFunctioncleanupOldCaches
(s3: S3Client, prefix: string)
scripts/cache/s3.ts:58
↓ 1 callersFunctioncloneRepository
(source: string, temp: string)
scripts/extensions.ts:292
↓ 1 callersFunctioncreateFileUploadStream
( sourcePath: string, totalBytes: number, onProgress: (bytes: number) => void )
scripts/cache/utils.ts:85
↓ 1 callersFunctiondownloadCache
(s3: S3Client, key: string, targetPath: string)
scripts/cache.ts:30
↓ 1 callersFunctiondownloadFileFromS3
( s3: S3Client, key: string, targetPath: string )
scripts/cache/utils.ts:132
↓ 1 callersFunctionfinalizeFullUpdate
( command: 'static' | 'full', useCache: boolean, data: Awaited<ReturnType<typeof loadExtensionsDat
scripts/task.ts:82
↓ 1 callersFunctiongenerateSearchIndexJson
( data: ExtensionsData, staticDir = STATIC_DIR, searchIndexFile = SEARCH_INDEX_FILE )
scripts/extensions.ts:106
↓ 1 callersFunctiongetFilterOptionsFallback
()
src/lib/search/minisearch.ts:99
↓ 1 callersFunctiongetGitDir
()
scripts/setup-hooks.ts:14
↓ 1 callersFunctionhandleQuickUpdates
( data: Awaited<ReturnType<typeof loadExtensionsData>>, updates: Awaited<ReturnType<typeof findExtensi
scripts/task.ts:69
↓ 1 callersFunctionisInteractiveTerminal
()
scripts/log.ts:15
↓ 1 callersFunctionisLockStale
* Checks if a lock is stale based on Restic's algorithm: * 1. If timestamp is older than LOCK_TIMEOUT_MS (30 min), it's stale * 2. If on same machin
scripts/cache/lock.ts:39
↓ 1 callersFunctionisProcessRunning
* Checks if a process is still running (only works on same machine). * Uses Node.js process.kill(pid, 0) which doesn't actually kill but checks exist
scripts/cache/lock.ts:24
↓ 1 callersFunctionisRecord
(value: unknown)
src/lib/validation.ts:3
↓ 1 callersFunctionloadSyncedCommits
(dataFile = DATA_FILE)
scripts/extensions.ts:209
↓ 1 callersFunctionmain
()
scripts/sync.ts:5
next →1–100 of 149, ranked by callers