Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/NanmiCoder/cc-haha
/ functions
Functions
17,500 in github.com/NanmiCoder/cc-haha
⨍
Functions
17,500
◇
Types & classes
494
↓ 2,740 callers
Function
logForDebugging
( message: string, { level }: { level: DebugLogLevel } = { level: 'debug', }, )
src/utils/debug.ts:203
↓ 2,083 callers
Function
t
(key: TranslationKey, params?: Record<string, string | number>)
desktop/src/i18n/index.ts:62
↓ 1,094 callers
Function
logEvent
( eventName: string, // intentionally no strings unless AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_F
src/services/analytics/index.ts:133
↓ 1,028 callers
Method
has
(key: string)
src/utils/fileStateCache.ts:50
↓ 950 callers
Method
get
()
src/ink/output.ts:268
↓ 913 callers
Function
test
(id: string, overrides?: { baseUrl?: string; modelId?: string; apiFormat?: string; authStrategy?: string })
desktop/src/api/providers.ts:70
↓ 766 callers
Method
set
(key: string, value: FileState)
src/utils/fileStateCache.ts:45
↓ 696 callers
Function
render
( node: ReactNode, options?: NodeJS.WriteStream | RenderOptions, )
src/ink.ts:18
↓ 661 callers
Method
max
()
src/utils/fileStateCache.ts:66
↓ 640 callers
Function
logError
(error: unknown)
src/utils/log.ts:158
↓ 451 callers
Method
add
* Add an item to the buffer. If the buffer is full, * the oldest item will be evicted.
src/utils/CircularBuffer.ts:18
↓ 415 callers
Function
lazySchema
(factory: () => T)
src/utils/lazySchema.ts:5
↓ 400 callers
Method
resolve
(authorizationCode: string)
src/services/oauth/auth-code-listener.ts:183
↓ 396 callers
Method
delete
(key: string)
src/utils/fileStateCache.ts:54
↓ 378 callers
Method
entries
()
src/utils/fileStateCache.ts:82
↓ 374 callers
Method
keys
()
src/utils/fileStateCache.ts:78
↓ 374 callers
Method
toString
()
src/utils/bash/ParsedCommand.ts:23
↓ 369 callers
Function
jsonStringify
( value: unknown, replacer?: | ((this: unknown, key: string, value: unknown) => unknown) | (number
src/utils/slowOperations.ts:180
↓ 362 callers
Function
isEnvTruthy
(envVar: string | boolean | undefined)
src/utils/envUtils.ts:32
↓ 328 callers
Function
advance
Advance one JS char, updating byte offset for UTF-8.
src/utils/bash/bashParser.ts:146
↓ 327 callers
Function
set
()
desktop/src/lib/desktopHost/browserHost.ts:240
↓ 325 callers
Function
errorMessage
(e: unknown)
src/utils/errors.ts:119
↓ 276 callers
Function
onDone
(result?: string, doneOptions?: { display?: CommandResultDisplay; metaMessages?: strin
src/screens/REPL.tsx:3209
↓ 256 callers
Function
waitFor
(predicate: () => boolean, timeoutMs = 5000)
adapters/whatsapp/__tests__/protocol.test.ts:48
↓ 244 callers
Function
getGlobalConfig
()
src/utils/config.ts:1044
↓ 236 callers
Function
useAppState
(selector)
src/state/AppState.tsx:142
↓ 233 callers
Function
mk
Build a node. Slices text from source by byte range via char-index lookup.
src/utils/bash/bashParser.ts:660
↓ 233 callers
Function
setAppState
(updater: (prev: AppState) => AppState)
src/goals/goalState.test.ts:23
↓ 232 callers
Function
resolve
(start: UUID)
src/utils/sessionStorage.ts:2043
↓ 230 callers
Function
getFsImplementation
()
src/utils/fsOperations.ts:621
↓ 227 callers
Function
peek
(L: Lexer, off = 0)
src/utils/bash/bashParser.ts:162
↓ 219 callers
Function
logMCPDebug
(serverName: string, message: string)
src/utils/log.ts:315
↓ 219 callers
Method
on
(_event: 'did-finish-load', handler: () => void)
desktop/electron/services/preview.test.ts:36
↓ 212 callers
Method
get
(key: string)
src/utils/fileStateCache.ts:41
↓ 207 callers
Function
getCwd
()
src/utils/cwd.ts:26
↓ 202 callers
Function
logForDiagnosticsNoPII
( level: DiagnosticLogLevel, event: string, data?: Record<string, unknown>, )
src/utils/diagLogs.ts:27
↓ 190 callers
Function
getSessionId
()
src/bootstrap/state.ts:431
↓ 189 callers
Function
createUserMessage
({ content, isMeta, isVisibleInTranscriptOnly, isVirtual, isCompactSummary, summarizeMetadata, t
src/utils/messages.ts:472
↓ 188 callers
Function
get
(name: string)
desktop/src/api/teams.ts:24
↓ 188 callers
Method
preventDefault
()
src/ink/events/terminal-event.ts:64
↓ 182 callers
Method
write
(x: number, y: number, text: string, softWrap?: boolean[])
src/ink/output.ts:241
↓ 179 callers
Method
error
(error: unknown)
src/utils/stream.ts:59
↓ 169 callers
Function
execFileNoThrow
( file: string, args: string[], options: ExecFileOptions = { timeout: 10 * SECONDS_IN_MINUTE * MS_IN
src/utils/execFileNoThrow.ts:26
↓ 157 callers
Function
saveGlobalConfig
( updater: (currentConfig: GlobalConfig) => GlobalConfig, )
src/utils/config.ts:797
↓ 154 callers
Function
writeFile
(rootDir: string, relativePath: string, content = 'ok')
scripts/quality-gate/package-smoke/index.test.ts:30
↓ 153 callers
Method
close
()
src/services/oauth/auth-code-listener.ts:199
↓ 148 callers
Function
getFeatureValue_CACHED_MAY_BE_STALE
( feature: string, defaultValue: T, )
src/services/analytics/growthbook.ts:736
↓ 140 callers
Method
readFile
( sessionId: string, filePath: string, )
src/server/services/workspaceService.ts:402
↓ 139 callers
Function
writeFile
(relativePath: string, content: string)
scripts/pr/changed-files.test.ts:22
↓ 136 callers
Function
jsonParse
(text, reviver)
src/utils/slowOperations.ts:204
↓ 135 callers
Function
useTranslation
()
desktop/src/i18n/index.ts:49
↓ 134 callers
Method
badRequest
(message: string)
src/server/middleware/errorHandler.ts:17
↓ 133 callers
Function
readFile
(fsPath, options)
src/utils/fsOperations.ts:427
↓ 130 callers
Method
get
(chatId: string)
adapters/common/session-store.ts:27
↓ 126 callers
Method
addProvider
(input: CreateProviderInput)
src/server/services/providerService.ts:212
↓ 126 callers
Method
delete
(chatId: string)
adapters/common/session-store.ts:38
↓ 125 callers
Method
abort
错误中止 —— 尝试把错误信息渲染到卡片上。
adapters/feishu/streaming-card.ts:390
↓ 125 callers
Function
getPlatform
()
src/utils/nativeInstaller/installer.ts:87
↓ 124 callers
Function
fetch
(req)
src/server/__tests__/teams.test.ts:468
↓ 118 callers
Function
getSettingsForSource
( source: SettingSource, )
src/utils/settings/settings.ts:309
↓ 116 callers
Method
clear
* Clear a region by writing empty cells. Used when a node shrinks to * ensure stale content from the previous frame is removed.
src/ink/output.ts:227
↓ 116 callers
Function
useKeybinding
( action: string, handler: () => void | false | Promise<void>, options: Options = {}, )
src/keybindings/useKeybinding.ts:33
↓ 115 callers
Function
mkdir
(dirPath, options)
src/utils/fsOperations.ts:414
↓ 101 callers
Method
clear
()
src/utils/task/TaskOutput.ts:381
↓ 98 callers
Function
toError
(e: unknown)
src/utils/errors.ts:111
↓ 97 callers
Method
open
()
desktop/src/api/websocket.test.ts:46
↓ 96 callers
Function
readFileSync
(filePath: string)
src/utils/fileRead.ts:100
↓ 95 callers
Function
execFileNoThrowWithCwd
( file: string, args: string[], { abortSignal, timeout: finalTimeout = 10 * SECONDS_IN_MINUTE *
src/utils/execFileNoThrow.ts:89
↓ 94 callers
Function
stat
(fsPath)
src/utils/fsOperations.ts:394
↓ 93 callers
Function
getErrnoCode
(e: unknown)
src/utils/errors.ts:128
↓ 92 callers
Function
fetch
(req)
src/server/__tests__/sessions.test.ts:2225
↓ 92 callers
Function
getOriginalCwd
()
src/bootstrap/state.ts:500
↓ 91 callers
Function
color
( c: keyof Theme | Color | undefined, theme: ThemeName, type: ColorType = 'foreground', )
src/components/design-system/color.ts:9
↓ 91 callers
Method
record
(durationMs: number)
src/utils/fpsTracker.ts:11
↓ 89 callers
Function
plural
( n: number, word: string, pluralWord = word + 's', )
src/utils/stringUtils.ts:32
↓ 86 callers
Function
isENOENT
(e: unknown)
src/utils/errors.ts:139
↓ 85 callers
Method
get
* Get a cached value by key. On first call for a key, computes and caches it. * Subsequent calls return the cached value until a watched file chang
src/utils/git/gitFilesystem.ts:463
↓ 84 callers
Function
basename
(path: string | null | undefined)
desktop/src/components/shared/ProjectContextChip.tsx:12
↓ 84 callers
Function
skipBlanks
(L: Lexer)
src/utils/bash/bashParser.ts:272
↓ 82 callers
Function
count
(arr: readonly T[], pred: (x: T) => unknown)
src/utils/array.ts:5
↓ 82 callers
Function
updateSettingsForSource
( source: EditableSettingSource, settings: SettingsJson, )
src/utils/settings/settings.ts:416
↓ 81 callers
Function
makeSessionState
(overrides: Partial<PerSessionState> = {})
desktop/src/components/chat/MessageList.test.tsx:28
↓ 81 callers
Function
resolve
(id: string)
src/server/api/__tests__/previewFs.test.ts:82
↓ 80 callers
Function
sampleInput
A sample provider input for reuse across tests
src/server/__tests__/providers.test.ts:55
↓ 80 callers
Method
send
(message: JSONRPCMessage)
src/services/mcp/InProcessTransport.ts:26
↓ 80 callers
Method
write
* Send output to the transport. * In bridge mode, control_request messages are always echoed to stdout so the * bridge parent can detect permiss
src/cli/remoteIO.ts:231
↓ 79 callers
Method
clear
()
src/server/services/diagnosticsService.ts:293
↓ 79 callers
Method
warn
(message: string, ...args: unknown[])
src/utils/computerUse/hostAdapter.ts:23
↓ 79 callers
Function
writeSessionFile
Write a JSONL session file with given entries.
src/server/__tests__/sessions.test.ts:78
↓ 78 callers
Function
api
(method: string, urlPath: string, body?: unknown)
src/server/__tests__/e2e/business-flow.test.ts:78
↓ 77 callers
Function
makeUserEntry
(content: string, uuid?: string)
src/server/__tests__/sessions.test.ts:214
↓ 77 callers
Method
set
(chatId: string, sessionId: string, workDir: string)
adapters/common/session-store.ts:32
↓ 76 callers
Function
profileCheckpoint
(name: string)
src/utils/startupProfiler.ts:65
↓ 75 callers
Function
getAPIProvider
()
src/utils/model/providers.ts:11
↓ 75 callers
Function
getOauthConfig
()
src/constants/oauth.ts:186
↓ 72 callers
Function
useTerminalSize
()
src/hooks/useTerminalSize.ts:7
↓ 70 callers
Function
isSet
(value: any)
src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts:856
↓ 69 callers
Function
R
(M,Q,Z)
desktop/src-tauri/resources/preview-agent.js:18
↓ 68 callers
Function
getIsNonInteractiveSession
()
src/bootstrap/state.ts:1057
↓ 68 callers
Function
rgb
(r: number, g: number, b: number)
src/native-ts/color-diff/index.ts:84
next →
1–100 of 17,500, ranked by callers