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
↓ 13 callers
Function
getServerIdentityKey
(server: Pick<McpServerRecord, 'name' | 'scope' | 'projectPath'>)
desktop/src/pages/McpSettings.tsx:314
↓ 13 callers
Function
getSmallFastModel
()
src/utils/model/model.ts:41
↓ 13 callers
Function
getStringField
(record: Record<string, unknown>, key: string)
desktop/src/components/chat/ToolCallGroup.tsx:1008
↓ 13 callers
Function
getTeammateContext
()
src/utils/teammateContext.ts:47
↓ 13 callers
Function
getTheme
(themeName: ThemeName)
src/utils/theme.ts:598
↓ 13 callers
Function
handleProxyRequest
(req: Request, url: URL)
src/server/proxy/handler.ts:159
↓ 13 callers
Function
hasCommand
(cmd: string)
src/services/voice.ts:49
↓ 13 callers
Function
hasMediaInput
( messages: readonly { type: string message?: { content?: unknown } attachment?: unknown }[],
src/utils/contextBudget.ts:45
↓ 13 callers
Function
isAnyTracingEnabled
* Check if any tracing is enabled (either standard enhanced telemetry OR beta tracing)
src/utils/telemetry/sessionTracing.ts:148
↓ 13 callers
Function
isInBundledMode
()
src/utils/bundledMode.ts:16
↓ 13 callers
Function
isUndercover
()
src/utils/undercover.ts:28
↓ 13 callers
Method
left
()
src/utils/Cursor.ts:301
↓ 13 callers
Function
loadInstalledPluginsFromDisk
()
src/utils/plugins/installedPluginsManager.ts:538
↓ 13 callers
Function
localFileUrl
(base: string, absPath: string)
desktop/src/lib/handlePreviewLink.ts:41
↓ 13 callers
Function
logDebug
(message: string)
src/services/api/filesApi.ts:44
↓ 13 callers
Function
makeItems
(onSelect1 = vi.fn(), onSelect2 = vi.fn(), onSelect3 = vi.fn())
desktop/src/components/common/OpenWithMenu.test.tsx:9
↓ 13 callers
Function
makeRequest
( method: string, urlStr: string, body?: Record<string, unknown> | Uint8Array, contentType = 'applicat
src/server/__tests__/desktop-ui-preferences.test.ts:26
↓ 13 callers
Function
makeRequest
(method: string, pathName: string, body?: Record<string, unknown>)
src/server/__tests__/adapters.test.ts:25
↓ 13 callers
Function
makeUpgradeHeaders
(origin?: string)
src/server/__tests__/h5-access-auth.test.ts:97
↓ 13 callers
Function
markDirty
(node?: DOMNode)
src/ink/dom.ts:393
↓ 13 callers
Method
modifyText
(end: Cursor, insertString: string = '')
src/utils/Cursor.ts:845
↓ 13 callers
Method
navigate
(url: string)
desktop/electron/services/preview.ts:109
↓ 13 callers
Function
normalizeLegacyToolName
(name: string)
src/utils/permissions/permissionRuleParser.ts:31
↓ 13 callers
Function
normalizeModelStringForAPI
(model: string)
src/utils/model/model.ts:652
↓ 13 callers
Method
onServerMessage
Register (or replace) the handler for server messages on a specific chatId.
adapters/common/ws-bridge.ts:112
↓ 13 callers
Method
redactProcessOutput
(line: string)
src/server/services/conversationService.ts:1488
↓ 13 callers
Function
requiresH5AuthForServerUrl
(serverUrl: string, browserHostname = getBrowserHostname())
desktop/src/lib/desktopRuntime.ts:408
↓ 13 callers
Function
resolveOnce
(allow: boolean)
src/screens/REPL.tsx:2254
↓ 13 callers
Method
sanitizeString
(value: string, maxLength = MAX_STRING_LENGTH)
src/server/services/diagnosticsService.ts:332
↓ 13 callers
Method
setCardMessageReady
* 标记卡片消息是否已发送成功,决定 flush 是否被放行。 * * 首次变 true 时同步更新 lastUpdateTime,让第一次 throttledUpdate * 看到一个小的 elapsed,匹配 openclaw 的 "card 创建完立即可刷" 行为。
adapters/feishu/flush-controller.ts:72
↓ 13 callers
Function
showSetupDialog
(root: Root, renderer: (done: (result: T) => void) => React.ReactNode, options?: { onChangeAppState?: typeof
src/interactiveHelpers.tsx:86
↓ 13 callers
Method
spawn
(input: TerminalSpawnInput, webContents: TerminalWebContentsLike)
desktop/electron/services/terminal.ts:526
↓ 13 callers
Method
testProviderConfig
(input: TestProviderInput)
src/server/services/providerService.ts:564
↓ 13 callers
Function
tokenCountWithEstimation
(messages: readonly Message[])
src/utils/tokens.ts:244
↓ 13 callers
Function
uniq
(xs: Iterable<T>)
src/utils/array.ts:11
↓ 13 callers
Function
useRegisterOverlay
(id, t0)
src/context/overlayContext.tsx:38
↓ 13 callers
Function
useSettings
()
src/hooks/useSettings.ts:15
↓ 13 callers
Method
validateToken
(token: string | null | undefined)
src/server/services/h5AccessService.ts:774
↓ 13 callers
Method
waitForOpen
Wait until the WebSocket for chatId is open. Resolves false on timeout or error.
adapters/common/ws-bridge.ts:235
↓ 12 callers
Function
F0
(M)
desktop/src-tauri/resources/preview-agent.js:22
↓ 12 callers
Function
K0
(M)
desktop/src-tauri/resources/preview-agent.js:18
↓ 12 callers
Method
active
()
src/bridge/flushGate.ts:20
↓ 12 callers
Function
addPresenceCheck
( report: PackageSmokeReport, rootDir: string, label: string, targetPath: string, )
scripts/quality-gate/package-smoke/index.ts:211
↓ 12 callers
Method
appendSessionMetadata
( sessionId: string, metadata: { workDir: string customTitle?: string | null reposit
src/server/services/sessionService.ts:2871
↓ 12 callers
Function
asSessionId
(id: string)
src/types/ids.ts:23
↓ 12 callers
Function
calculateCurrentContextTokenTotal
( estimatedTokens: number, currentUsage: { input_tokens: number output_tokens?: number cache_c
src/utils/context.ts:175
↓ 12 callers
Function
cleanup
()
src/services/mcp/auth.ts:218
↓ 12 callers
Method
clear
()
src/bridge/bridgeMessaging.ts:456
↓ 12 callers
Function
clearKeychainCache
()
src/utils/secureStorage/macOsKeychainHelpers.ts:87
↓ 12 callers
Function
clickByRole
(name: RegExp | string)
desktop/src/components/controls/ModelSelector.test.tsx:20
↓ 12 callers
Function
createNavKey
(s: string, name: string, ctrl: boolean)
src/ink/parse-keypress.ts:787
↓ 12 callers
Function
createTaskStateBase
( id: string, type: TaskType, description: string, toolUseId?: string, )
src/Task.ts:108
↓ 12 callers
Method
createTimeoutController
Create an AbortController with timeout
adapters/common/http-client.ts:90
↓ 12 callers
Function
drainSdkEvents
()
src/utils/sdkEventQueue.ts:124
↓ 12 callers
Function
enqueue
(chatId: string, fn: () => Promise<void>)
adapters/common/chat-queue.ts:11
↓ 12 callers
Function
escapeMarkdownTable
(value: string | number | boolean | undefined)
scripts/quality-gate/reporter.ts:23
↓ 12 callers
Function
evaluateChangePolicy
( inputFiles: string[], inputLabels: string[] = [], )
scripts/pr/change-policy.ts:186
↓ 12 callers
Function
executeHooksOutsideREPL
* Execute hooks outside of the REPL (e.g. notifications, session end) * * Unlike executeHooks() which yields messages that are exposed to the model
src/utils/hooks.ts:3022
↓ 12 callers
Function
fetchTraceCallDetail
(sessionId: string, callId: string)
desktop/src/lib/trace/callCache.ts:6
↓ 12 callers
Function
formatCount
(count: number)
desktop/src/components/chat/ToolCallBlock.tsx:597
↓ 12 callers
Function
formatDuration
Format a millisecond duration as a human-readable string (e.g. "5m 30s").
src/bridge/jwtUtils.ts:8
↓ 12 callers
Function
formatMessageTimestamp
( value: number | string | Date, t: Translator, locale: Locale, now = Date.now(), )
desktop/src/lib/formatMessageTimestamp.ts:9
↓ 12 callers
Function
formatPathLink
* Format a file path as a clickable hyperlink. * * Paths containing spaces (e.g., "Application Support") are not clickable * in most terminals - th
src/commands/terminalSetup/terminalSetup.tsx:65
↓ 12 callers
Function
formatTelegramOutboundText
(text: string)
adapters/telegram/format.ts:6
↓ 12 callers
Method
fromPartial
(object: I)
src/types/generated/google/protobuf/timestamp.ts:186
↓ 12 callers
Function
getAllowedChannels
()
src/bootstrap/state.ts:1700
↓ 12 callers
Function
getBranch
()
src/utils/git.ts:261
↓ 12 callers
Function
getCommands
(cwd: string)
src/commands.ts:478
↓ 12 callers
Function
getDefaultMainLoopModel
()
src/utils/model/model.ts:228
↓ 12 callers
Function
getDirectoryForPath
(path: string)
src/utils/path.ts:109
↓ 12 callers
Function
getManagedSettingsPath
()
src/server/__tests__/h5-access-service.test.ts:20
↓ 12 callers
Function
getPlan
(agentId?: AgentId)
src/utils/plans.ts:135
↓ 12 callers
Function
getPlanFilePath
(agentId?: AgentId)
src/utils/plans.ts:119
↓ 12 callers
Function
getPluginErrorMessage
(error: PluginError)
src/types/plugin.ts:295
↓ 12 callers
Method
getProvider
(id: string)
src/server/services/providerService.ts:201
↓ 12 callers
Function
getSessionIngressAuthToken
()
src/utils/sessionIngressAuth.ts:101
↓ 12 callers
Function
getTimestamp
* Get timestamp in microseconds relative to trace start
src/utils/telemetry/perfettoTracing.ts:172
↓ 12 callers
Function
getTranscriptPathForSession
(sessionId: string)
src/utils/sessionStorage.ts:207
↓ 12 callers
Function
hasAnthropicCompatibleThirdPartyConfig
()
src/utils/model/modelOptions.ts:48
↓ 12 callers
Function
is1mContextDisabled
()
src/utils/context.ts:38
↓ 12 callers
Function
isSet
(value: any)
src/types/generated/events_mono/growthbook/v1/growthbook_experiment_event.ts:214
↓ 12 callers
Function
isSimpleTarget
(target: ParseEntry | undefined)
src/utils/bash/commands.ts:798
↓ 12 callers
Function
isTodoV2Enabled
()
src/utils/tasks.ts:133
↓ 12 callers
Function
logAutoModeOutcome
* Telemetry helper for tengu_auto_mode_outcome. All string fields are * enum-like values (outcome, model name, classifier type, failure kind) — * ne
src/utils/permissions/yoloClassifier.ts:1425
↓ 12 callers
Function
logUnaryEvent
(event: LogEvent)
src/utils/unaryLogging.ts:23
↓ 12 callers
Function
matchWildcardPattern
( pattern: string, command: string, )
src/tools/BashTool/bashPermissions.ts:353
↓ 12 callers
Function
memoizeWithLRU
( f: (...args: Args) => Result, cacheFn: (...args: Args) => string, maxCacheSize: number = 100, )
src/utils/memoize.ts:234
↓ 12 callers
Function
modelSupportsEffort
(model: string)
src/utils/effort.ts:23
↓ 12 callers
Function
normalizeMessages
(messages: Message[])
src/utils/messages.ts:753
↓ 12 callers
Function
normalizeMessagesForAPI
( messages: Message[], tools: Tools = [], )
src/utils/messages.ts:2004
↓ 12 callers
Function
openaiChatStreamToAnthropic
( upstream: ReadableStream<Uint8Array>, model: string, )
src/server/proxy/streaming/openaiChatStreamToAnthropic.ts:94
↓ 12 callers
Function
openaiChatToAnthropic
(response: OpenAIChatResponse, model: string)
src/server/proxy/transform/openaiChatToAnthropic.ts:18
↓ 12 callers
Function
openaiUsageToAnthropic
(usage: OpenAICompatibleUsage | undefined)
src/server/proxy/transform/usage.ts:21
↓ 12 callers
Function
parseRange
( rangeHeader: string | null | undefined, size: number, )
src/server/api/previewFs.ts:76
↓ 12 callers
Function
percentValue
(v: number)
src/native-ts/yoga-layout/index.ts:93
↓ 12 callers
Function
prepareUserContent
({ inputString, precedingInputBlocks, }: { inputString: string precedingInputBlocks: ContentBlockParam
src/utils/messages.ts:537
↓ 12 callers
Function
previewFsUrl
(base: string, sessionId: string, filePath: string)
desktop/src/lib/handlePreviewLink.ts:21
↓ 12 callers
Function
recordTranscript
( messages: Message[], teamInfo?: TeamInfo, startingParentUuidHint?: UUID, allMessages?: readonly Mess
src/utils/sessionStorage.ts:1437
↓ 12 callers
Method
removeChild
(child: LayoutNode)
src/ink/layout/yoga.ts:67
↓ 12 callers
Function
removeRecordKey
(record: Record<string, T>, key: string)
desktop/src/stores/workspacePanelStore.ts:151
← previous
next →
601–700 of 17,500, ranked by callers