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
↓ 25 callers
Function
renderCard
(filesChanged: string[])
desktop/src/components/chat/CurrentTurnChangeCard.test.tsx:112
↓ 25 callers
Function
runTurn
(sessionId: string, content: string, allowError = false)
src/server/__tests__/conversations.test.ts:1326
↓ 25 callers
Function
s
(M,Q,Z,q,J)
desktop/src-tauri/resources/preview-agent.js:22
↓ 25 callers
Function
tu
(id: string)
tests/reorderAssistantToolUseBlocks.test.ts:8
↓ 25 callers
Function
updateSessionIn
Helper: immutably update a specific session within the sessions record
desktop/src/stores/chatStore.ts:838
↓ 25 callers
Function
writeTeamConfig
Write a team config.json to the temp directory.
src/server/__tests__/teams.test.ts:37
↓ 24 callers
Method
add
(uuid: string)
src/bridge/bridgeMessaging.ts:440
↓ 24 callers
Function
appendFileSync
(path, data, options)
src/utils/fsOperations.ts:468
↓ 24 callers
Method
enqueue
(value: T)
src/utils/stream.ts:38
↓ 24 callers
Function
errorResponse
(error: unknown)
src/server/middleware/errorHandler.ts:34
↓ 24 callers
Function
formatDuration
( ms: number, options?: { hideTrailingZeros?: boolean; mostSignificantOnly?: boolean }, )
src/utils/format.ts:34
↓ 24 callers
Function
isDigit
(c: string)
src/utils/bash/bashParser.ts:234
↓ 24 callers
Function
notifyDesktop
(options: DesktopNotificationOptions)
desktop/src/lib/desktopNotifications.ts:363
↓ 24 callers
Function
release
* Return the task released back to stub form: retain dropped, messages * cleared, evictAfter set if terminal. Shared by exitTeammateView and * the s
src/state/teammateViewHelpers.ts:28
↓ 24 callers
Function
sendControlResponseError
( message: SDKControlRequest, errorMessage: string, )
src/cli/print.ts:2713
↓ 24 callers
Function
useTabStore
(selector: (state: { tabs: typeof mocks.tabState.tabs activeTabId: string | null setActiveTab: typ
desktop/src/components/layout/AppShell.test.tsx:41
↓ 23 callers
Method
createTask
创建新任务
src/server/services/cronService.ts:66
↓ 23 callers
Function
f
()
src/costHook.ts:10
↓ 23 callers
Function
formatNumber
(value: number | undefined)
desktop/src/components/chat/LocalSlashCommandPanel.tsx:123
↓ 23 callers
Function
getAppState
()
src/tools/SkillTool/SkillTool.ts:784
↓ 23 callers
Function
getContextWindowForModel
( model: string, betas?: string[], )
src/utils/context.ts:58
↓ 23 callers
Function
getProjectRoot
()
src/bootstrap/state.ts:511
↓ 23 callers
Function
isOperator
(part: ParseEntry | undefined, op: string)
src/utils/bash/commands.ts:792
↓ 23 callers
Function
mapHistoryMessagesToUiMessages
( messages: MessageEntry[], options?: HistoryMappingOptions, )
desktop/src/stores/chatStore.ts:3293
↓ 23 callers
Function
resolveValue
(v: Value, ownerSize: number)
src/native-ts/yoga-layout/index.ts:97
↓ 23 callers
Method
send
(msg: Message)
src/utils/mailbox.ts:33
↓ 23 callers
Function
tooComplex
(node: Node)
src/utils/bash/ast.ts:2033
↓ 22 callers
Function
checkAndRefreshOAuthTokenIfNeeded
( retryCount = 0, force = false, )
src/utils/auth.ts:1450
↓ 22 callers
Function
checkHasTrustDialogAccepted
()
src/utils/config.ts:697
↓ 22 callers
Method
connectSession
Connect to a session with a known sessionId. Returns false if already connected.
adapters/common/ws-bridge.ts:63
↓ 22 callers
Function
createSystemMessage
( content: string, level: SystemMessageLevel, toolUseID?: string, preventContinuation?: boolean, )
src/utils/messages.ts:4452
↓ 22 callers
Function
enableH5Access
(options: { allowedOrigins?: string[] publicBaseUrl?: string | null } = {})
src/server/__tests__/h5-access-auth.test.ts:122
↓ 22 callers
Function
formatDurationMs
(ms?: number)
desktop/src/lib/trace/formatters.ts:7
↓ 22 callers
Function
formatImStatus
(summary: ImStatusSummary | null)
adapters/common/format.ts:259
↓ 22 callers
Function
getProjectDir
(cwd: string)
src/utils/cachePaths.ts:27
↓ 22 callers
Function
getSpanId
(span: Span)
src/utils/telemetry/sessionTracing.ts:81
↓ 22 callers
Function
handleProvidersApi
( req: Request, _url: URL, segments: string[], )
src/server/api/providers.ts:32
↓ 22 callers
Function
inspectPackagedArtifacts
(rootDir: string, options: InspectOptions)
scripts/quality-gate/package-smoke/index.ts:775
↓ 22 callers
Function
isTeammate
()
src/utils/teammate.ts:125
↓ 22 callers
Function
makeTable
(label: string)
adapters/feishu/__tests__/markdown-style.test.ts:260
↓ 22 callers
Function
onSelect
(value: string)
src/components/ClaudeCodeHint/PluginHintMenu.tsx:26
↓ 22 callers
Method
reject
(error: Error)
src/services/oauth/auth-code-listener.ts:191
↓ 22 callers
Method
searchSessions
* Full-text search across all session transcripts. * * Two-phase: (A) ripgrep scans `~/.claude/projects` for candidate files + * matched line
src/server/services/searchService.ts:140
↓ 22 callers
Function
sleep
(ms: number)
src/server/__tests__/real-llm-test.ts:19
↓ 21 callers
Function
a
(M,Q,Z,q,J)
desktop/src-tauri/resources/preview-agent.js:18
↓ 21 callers
Function
applyPermissionUpdate
( context: ToolPermissionContext, update: PermissionUpdate, )
src/utils/permissions/PermissionUpdate.ts:55
↓ 21 callers
Function
checkStatsigFeatureGate_CACHED_MAY_BE_STALE
( gate: string, )
src/services/analytics/growthbook.ts:806
↓ 21 callers
Function
clickElement
(element: Element)
desktop/src/components/workspace/WorkspacePanel.test.tsx:93
↓ 21 callers
Function
createController
(overrides?: Record<string, unknown>)
adapters/telegram/__tests__/commands.test.ts:47
↓ 21 callers
Function
createRepoRoot
()
scripts/quality-gate/package-smoke/index.test.ts:14
↓ 21 callers
Function
enqueuePendingNotification
(command: QueuedCommand)
src/utils/messageQueueManager.ts:142
↓ 21 callers
Method
enqueueWrite
(filePath: string, entry: Entry)
src/utils/sessionStorage.ts:624
↓ 21 callers
Function
exitWithError
(message: string)
src/utils/process.ts:38
↓ 21 callers
Function
extractLastJsonStringField
( text: string, key: string, )
src/utils/sessionStoragePortable.ts:82
↓ 21 callers
Method
getComputedHeight
()
src/ink/layout/yoga.ts:120
↓ 21 callers
Function
getServerKey
( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, )
src/services/mcp/auth.ts:325
↓ 21 callers
Method
getSession
* Get full session detail including all messages.
src/server/services/sessionService.ts:2430
↓ 21 callers
Function
getSessionIdFromLog
(log: LogOption)
src/utils/sessionStorage.ts:2956
↓ 21 callers
Method
getUserSettings
获取用户级设置
src/server/services/settingsService.ts:95
↓ 21 callers
Function
isFirstPartyAnthropicBaseUrl
()
src/utils/model/providers.ts:32
↓ 21 callers
Function
makeTempDir
(prefix: string)
src/server/__tests__/workspace-service.test.ts:20
↓ 21 callers
Function
normalize
(p: string)
src/utils/plugins/pluginOptionsStorage.ts:330
↓ 21 callers
Function
normalizePath
(targetPath: string)
scripts/quality-gate/package-smoke/index.ts:170
↓ 21 callers
Function
safeResolvePath
( fs: FsOperations, filePath: string, )
src/utils/fsOperations.ts:138
↓ 21 callers
Function
shouldOfferStaticHtmlPreview
( filePath: string, opts?: { siblingFiles?: string[] }, )
desktop/src/lib/htmlPreviewPolicy.ts:85
↓ 21 callers
Function
tryParseShellCommand
( cmd: string, env?: | Record<string, string | undefined> | ((key: string) => string | undefined),
src/utils/bash/shellQuote.ts:24
↓ 21 callers
Function
useWizard
()
src/components/wizard/useWizard.ts:5
↓ 20 callers
Function
createSignal
()
src/utils/signal.ts:27
↓ 20 callers
Function
fileHistoryEnabled
()
src/utils/fileHistory.ts:63
↓ 20 callers
Function
getAllCommands
* Gets all commands including MCP skills/prompts from AppState. * SkillTool needs this because getCommands() only returns local/bundled skills.
src/tools/SkillTool/SkillTool.ts:81
↓ 20 callers
Function
getAnthropicApiKeyWithSource
( opts: { skipRetrievingKeyFromApiKeyHelper?: boolean } = {}, )
src/utils/auth.ts:228
↓ 20 callers
Function
getTranscriptPath
()
src/utils/sessionStorage.ts:202
↓ 20 callers
Function
h
(M)
desktop/src-tauri/resources/preview-agent.js:18
↓ 20 callers
Function
initializeTouchH5
(win: WindowLike | undefined = typeof window === 'undefined' ? undefined : window)
desktop/src/lib/touchH5.ts:160
↓ 20 callers
Function
isMcpServerDisabled
(name: string)
src/services/mcp/config.ts:1534
↓ 20 callers
Function
isPlanModeInterviewPhaseEnabled
()
src/utils/planModeV2.ts:50
↓ 20 callers
Function
isValidCron
(cron: string)
desktop/src/lib/cronDescribe.ts:167
↓ 20 callers
Function
logOTelEvent
( eventName: string, metadata: { [key: string]: string | undefined } = {}, )
src/utils/telemetry/events.ts:21
↓ 20 callers
Function
rename
(oldPath, newPath)
src/utils/fsOperations.ts:431
↓ 20 callers
Method
segment
(highlights: TextHighlight[])
src/utils/textHighlighting.ts:76
↓ 20 callers
Function
setBaseUrl
(url: string)
desktop/src/api/client.ts:27
↓ 20 callers
Function
unmount
()
src/ink/root.ts:99
↓ 20 callers
Function
validateElectronIpcPayload
(channel: ElectronIpcChannel, payload: unknown)
desktop/electron/ipc/capabilities.ts:130
↓ 19 callers
Function
ansiIdx
(index: number)
src/native-ts/color-diff/index.ts:88
↓ 19 callers
Function
anthropicToOpenaiResponses
( body: AnthropicRequest, options: OpenAIResponsesTransformOptions = {}, )
src/server/proxy/transform/anthropicToOpenaiResponses.ts:27
↓ 19 callers
Function
asAgentId
(id: string)
src/types/ids.ts:31
↓ 19 callers
Function
clearPluginCache
(reason?: string)
src/utils/plugins/pluginLoader.ts:3229
↓ 19 callers
Function
clearServerCache
( name: string, serverRef: ScopedMcpServerConfig, )
src/services/mcp/client.ts:1642
↓ 19 callers
Function
countCharInString
( str: { indexOf(search: string, start?: number): number }, char: string, start = 0, )
src/utils/stringUtils.ts:54
↓ 19 callers
Function
createCommandInputMessage
( content: string, )
src/utils/messages.ts:4633
↓ 19 callers
Method
dispose
()
src/server/services/hahaOpenAIOAuthService.ts:279
↓ 19 callers
Function
evictTaskOutput
(taskId: string)
src/utils/task/diskOutput.ts:288
↓ 19 callers
Method
feed
Feed a new chunk of streaming text; returns any NEW PendingUploads.
adapters/common/attachment/image-block-watcher.ts:50
↓ 19 callers
Function
getClaudeCodeUserAgent
()
src/utils/userAgent.ts:8
↓ 19 callers
Function
getSettingsFilePathForSource
( source: SettingSource, )
src/utils/settings/settings.ts:274
↓ 19 callers
Method
has
(uuid: string)
src/bridge/bridgeMessaging.ts:452
↓ 19 callers
Method
internal
(message: string)
src/server/middleware/errorHandler.ts:29
↓ 19 callers
Function
normalizePathForComparison
(filePath: string)
src/utils/file.ts:565
↓ 19 callers
Function
o
(M,Q)
desktop/src-tauri/resources/preview-agent.js:18
↓ 19 callers
Method
pathExists
(filePath: string)
src/server/services/doctorService.ts:441
← previous
next →
301–400 of 17,500, ranked by callers