MCPcopy Index your code

hub / github.com/NanmiCoder/cc-haha / functions

Functions17,500 in github.com/NanmiCoder/cc-haha

↓ 2,740 callersFunctionlogForDebugging
( message: string, { level }: { level: DebugLogLevel } = { level: 'debug', }, )
src/utils/debug.ts:203
↓ 2,083 callersFunctiont
(key: TranslationKey, params?: Record<string, string | number>)
desktop/src/i18n/index.ts:62
↓ 1,094 callersFunctionlogEvent
( eventName: string, // intentionally no strings unless AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_F
src/services/analytics/index.ts:133
↓ 1,028 callersMethodhas
(key: string)
src/utils/fileStateCache.ts:50
↓ 950 callersMethodget
()
src/ink/output.ts:268
↓ 913 callersFunctiontest
(id: string, overrides?: { baseUrl?: string; modelId?: string; apiFormat?: string; authStrategy?: string })
desktop/src/api/providers.ts:70
↓ 766 callersMethodset
(key: string, value: FileState)
src/utils/fileStateCache.ts:45
↓ 696 callersFunctionrender
( node: ReactNode, options?: NodeJS.WriteStream | RenderOptions, )
src/ink.ts:18
↓ 661 callersMethodmax
()
src/utils/fileStateCache.ts:66
↓ 640 callersFunctionlogError
(error: unknown)
src/utils/log.ts:158
↓ 451 callersMethodadd
* Add an item to the buffer. If the buffer is full, * the oldest item will be evicted.
src/utils/CircularBuffer.ts:18
↓ 415 callersFunctionlazySchema
(factory: () => T)
src/utils/lazySchema.ts:5
↓ 400 callersMethodresolve
(authorizationCode: string)
src/services/oauth/auth-code-listener.ts:183
↓ 396 callersMethoddelete
(key: string)
src/utils/fileStateCache.ts:54
↓ 378 callersMethodentries
()
src/utils/fileStateCache.ts:82
↓ 374 callersMethodkeys
()
src/utils/fileStateCache.ts:78
↓ 374 callersMethodtoString
()
src/utils/bash/ParsedCommand.ts:23
↓ 369 callersFunctionjsonStringify
( value: unknown, replacer?: | ((this: unknown, key: string, value: unknown) => unknown) | (number
src/utils/slowOperations.ts:180
↓ 362 callersFunctionisEnvTruthy
(envVar: string | boolean | undefined)
src/utils/envUtils.ts:32
↓ 328 callersFunctionadvance
Advance one JS char, updating byte offset for UTF-8.
src/utils/bash/bashParser.ts:146
↓ 327 callersFunctionset
()
desktop/src/lib/desktopHost/browserHost.ts:240
↓ 325 callersFunctionerrorMessage
(e: unknown)
src/utils/errors.ts:119
↓ 276 callersFunctiononDone
(result?: string, doneOptions?: { display?: CommandResultDisplay; metaMessages?: strin
src/screens/REPL.tsx:3209
↓ 256 callersFunctionwaitFor
(predicate: () => boolean, timeoutMs = 5000)
adapters/whatsapp/__tests__/protocol.test.ts:48
↓ 244 callersFunctiongetGlobalConfig
()
src/utils/config.ts:1044
↓ 236 callersFunctionuseAppState
(selector)
src/state/AppState.tsx:142
↓ 233 callersFunctionmk
Build a node. Slices text from source by byte range via char-index lookup.
src/utils/bash/bashParser.ts:660
↓ 233 callersFunctionsetAppState
(updater: (prev: AppState) => AppState)
src/goals/goalState.test.ts:23
↓ 232 callersFunctionresolve
(start: UUID)
src/utils/sessionStorage.ts:2043
↓ 230 callersFunctiongetFsImplementation
()
src/utils/fsOperations.ts:621
↓ 227 callersFunctionpeek
(L: Lexer, off = 0)
src/utils/bash/bashParser.ts:162
↓ 219 callersFunctionlogMCPDebug
(serverName: string, message: string)
src/utils/log.ts:315
↓ 219 callersMethodon
(_event: 'did-finish-load', handler: () => void)
desktop/electron/services/preview.test.ts:36
↓ 212 callersMethodget
(key: string)
src/utils/fileStateCache.ts:41
↓ 207 callersFunctiongetCwd
()
src/utils/cwd.ts:26
↓ 202 callersFunctionlogForDiagnosticsNoPII
( level: DiagnosticLogLevel, event: string, data?: Record<string, unknown>, )
src/utils/diagLogs.ts:27
↓ 190 callersFunctiongetSessionId
()
src/bootstrap/state.ts:431
↓ 189 callersFunctioncreateUserMessage
({ content, isMeta, isVisibleInTranscriptOnly, isVirtual, isCompactSummary, summarizeMetadata, t
src/utils/messages.ts:472
↓ 188 callersFunctionget
(name: string)
desktop/src/api/teams.ts:24
↓ 188 callersMethodpreventDefault
()
src/ink/events/terminal-event.ts:64
↓ 182 callersMethodwrite
(x: number, y: number, text: string, softWrap?: boolean[])
src/ink/output.ts:241
↓ 179 callersMethoderror
(error: unknown)
src/utils/stream.ts:59
↓ 169 callersFunctionexecFileNoThrow
( file: string, args: string[], options: ExecFileOptions = { timeout: 10 * SECONDS_IN_MINUTE * MS_IN
src/utils/execFileNoThrow.ts:26
↓ 157 callersFunctionsaveGlobalConfig
( updater: (currentConfig: GlobalConfig) => GlobalConfig, )
src/utils/config.ts:797
↓ 154 callersFunctionwriteFile
(rootDir: string, relativePath: string, content = 'ok')
scripts/quality-gate/package-smoke/index.test.ts:30
↓ 153 callersMethodclose
()
src/services/oauth/auth-code-listener.ts:199
↓ 148 callersFunctiongetFeatureValue_CACHED_MAY_BE_STALE
( feature: string, defaultValue: T, )
src/services/analytics/growthbook.ts:736
↓ 140 callersMethodreadFile
( sessionId: string, filePath: string, )
src/server/services/workspaceService.ts:402
↓ 139 callersFunctionwriteFile
(relativePath: string, content: string)
scripts/pr/changed-files.test.ts:22
↓ 136 callersFunctionjsonParse
(text, reviver)
src/utils/slowOperations.ts:204
↓ 135 callersFunctionuseTranslation
()
desktop/src/i18n/index.ts:49
↓ 134 callersMethodbadRequest
(message: string)
src/server/middleware/errorHandler.ts:17
↓ 133 callersFunctionreadFile
(fsPath, options)
src/utils/fsOperations.ts:427
↓ 130 callersMethodget
(chatId: string)
adapters/common/session-store.ts:27
↓ 126 callersMethodaddProvider
(input: CreateProviderInput)
src/server/services/providerService.ts:212
↓ 126 callersMethoddelete
(chatId: string)
adapters/common/session-store.ts:38
↓ 125 callersMethodabort
错误中止 —— 尝试把错误信息渲染到卡片上。
adapters/feishu/streaming-card.ts:390
↓ 125 callersFunctiongetPlatform
()
src/utils/nativeInstaller/installer.ts:87
↓ 124 callersFunctionfetch
(req)
src/server/__tests__/teams.test.ts:468
↓ 118 callersFunctiongetSettingsForSource
( source: SettingSource, )
src/utils/settings/settings.ts:309
↓ 116 callersMethodclear
* 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 callersFunctionuseKeybinding
( action: string, handler: () => void | false | Promise<void>, options: Options = {}, )
src/keybindings/useKeybinding.ts:33
↓ 115 callersFunctionmkdir
(dirPath, options)
src/utils/fsOperations.ts:414
↓ 101 callersMethodclear
()
src/utils/task/TaskOutput.ts:381
↓ 98 callersFunctiontoError
(e: unknown)
src/utils/errors.ts:111
↓ 97 callersMethodopen
()
desktop/src/api/websocket.test.ts:46
↓ 96 callersFunctionreadFileSync
(filePath: string)
src/utils/fileRead.ts:100
↓ 95 callersFunctionexecFileNoThrowWithCwd
( file: string, args: string[], { abortSignal, timeout: finalTimeout = 10 * SECONDS_IN_MINUTE *
src/utils/execFileNoThrow.ts:89
↓ 94 callersFunctionstat
(fsPath)
src/utils/fsOperations.ts:394
↓ 93 callersFunctiongetErrnoCode
(e: unknown)
src/utils/errors.ts:128
↓ 92 callersFunctionfetch
(req)
src/server/__tests__/sessions.test.ts:2225
↓ 92 callersFunctiongetOriginalCwd
()
src/bootstrap/state.ts:500
↓ 91 callersFunctioncolor
( c: keyof Theme | Color | undefined, theme: ThemeName, type: ColorType = 'foreground', )
src/components/design-system/color.ts:9
↓ 91 callersMethodrecord
(durationMs: number)
src/utils/fpsTracker.ts:11
↓ 89 callersFunctionplural
( n: number, word: string, pluralWord = word + 's', )
src/utils/stringUtils.ts:32
↓ 86 callersFunctionisENOENT
(e: unknown)
src/utils/errors.ts:139
↓ 85 callersMethodget
* 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 callersFunctionbasename
(path: string | null | undefined)
desktop/src/components/shared/ProjectContextChip.tsx:12
↓ 84 callersFunctionskipBlanks
(L: Lexer)
src/utils/bash/bashParser.ts:272
↓ 82 callersFunctioncount
(arr: readonly T[], pred: (x: T) => unknown)
src/utils/array.ts:5
↓ 82 callersFunctionupdateSettingsForSource
( source: EditableSettingSource, settings: SettingsJson, )
src/utils/settings/settings.ts:416
↓ 81 callersFunctionmakeSessionState
(overrides: Partial<PerSessionState> = {})
desktop/src/components/chat/MessageList.test.tsx:28
↓ 81 callersFunctionresolve
(id: string)
src/server/api/__tests__/previewFs.test.ts:82
↓ 80 callersFunctionsampleInput
A sample provider input for reuse across tests
src/server/__tests__/providers.test.ts:55
↓ 80 callersMethodsend
(message: JSONRPCMessage)
src/services/mcp/InProcessTransport.ts:26
↓ 80 callersMethodwrite
* 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 callersMethodclear
()
src/server/services/diagnosticsService.ts:293
↓ 79 callersMethodwarn
(message: string, ...args: unknown[])
src/utils/computerUse/hostAdapter.ts:23
↓ 79 callersFunctionwriteSessionFile
Write a JSONL session file with given entries.
src/server/__tests__/sessions.test.ts:78
↓ 78 callersFunctionapi
(method: string, urlPath: string, body?: unknown)
src/server/__tests__/e2e/business-flow.test.ts:78
↓ 77 callersFunctionmakeUserEntry
(content: string, uuid?: string)
src/server/__tests__/sessions.test.ts:214
↓ 77 callersMethodset
(chatId: string, sessionId: string, workDir: string)
adapters/common/session-store.ts:32
↓ 76 callersFunctionprofileCheckpoint
(name: string)
src/utils/startupProfiler.ts:65
↓ 75 callersFunctiongetAPIProvider
()
src/utils/model/providers.ts:11
↓ 75 callersFunctiongetOauthConfig
()
src/constants/oauth.ts:186
↓ 72 callersFunctionuseTerminalSize
()
src/hooks/useTerminalSize.ts:7
↓ 70 callersFunctionisSet
(value: any)
src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts:856
↓ 69 callersFunctionR
(M,Q,Z)
desktop/src-tauri/resources/preview-agent.js:18
↓ 68 callersFunctiongetIsNonInteractiveSession
()
src/bootstrap/state.ts:1057
↓ 68 callersFunctionrgb
(r: number, g: number, b: number)
src/native-ts/color-diff/index.ts:84
next →1–100 of 17,500, ranked by callers