Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanmiCoder/cc-haha
/ functions
Functions
17,500 in github.com/NanmiCoder/cc-haha
⨍
Functions
17,500
◇
Types & classes
494
↓ 8 callers
Function
updateTerminalRuntime
( runtime: TerminalRuntime, patch: Partial<Pick<TerminalRuntime, 'terminal' | 'fit' | 'nativeSessionId' |
desktop/src/lib/terminalRuntime.ts:53
↓ 8 callers
Function
useOptionalKeybindingContext
()
src/keybindings/KeybindingContext.tsx:196
↓ 8 callers
Function
useTabHeaderFocus
()
src/components/design-system/Tabs.tsx:307
↓ 8 callers
Function
validatePluginPaths
* Validate a list of plugin component relative paths by checking existence in parallel. * * This helper parallelizes the pathExists checks (the expe
src/utils/plugins/pluginLoader.ts:1268
↓ 8 callers
Function
worktreeBranchName
(slug: string)
src/utils/worktree.ts:251
↓ 8 callers
Function
wrapText
* Wrap text to fit within a given width, returning array of lines. * ANSI-aware: preserves styling across line breaks. * * @param hard - If true, b
src/components/MarkdownTable.tsx:44
↓ 8 callers
Function
writeJson
(filePath: string, value: unknown)
src/server/__tests__/provider-runtime-env.test.ts:13
↓ 8 callers
Function
y0
(M)
desktop/src-tauri/resources/preview-agent.js:18
↓ 7 callers
Function
$
(b: { host: HTMLElement }, sel: string)
desktop/src/preview-agent/editBubble.test.ts:7
↓ 7 callers
Method
_load_key_map
Extract KEY_MAP from a helper by importing it with mocked deps.
runtime/test_helpers.py:33
↓ 7 callers
Function
abortSpeculation
(setAppState: SetAppState)
src/services/PromptSuggestion/speculation.ts:802
↓ 7 callers
Function
addSpan
(spans: Map<string, MutableSpan>, span: Omit<TraceSpan, 'childIds'>)
desktop/src/lib/traceViewModel.ts:584
↓ 7 callers
Function
appRoot
()
desktop/electron/main.ts:60
↓ 7 callers
Method
baseItem
(target: DoctorTarget)
src/server/services/doctorService.ts:363
↓ 7 callers
Function
buildApplicationMenuTemplate
( appName: string, onNavigate: (destination: NativeMenuDestination) => void, platform = process.platform
desktop/electron/services/menu.ts:12
↓ 7 callers
Function
buildConversationChain
( messages: Map<UUID, TranscriptMessage>, leafMessage: TranscriptMessage, )
src/utils/sessionStorage.ts:2098
↓ 7 callers
Function
buildEffectiveSystemPrompt
({ mainThreadAgentDefinition, toolUseContext, customSystemPrompt, defaultSystemPrompt, appendSystemP
src/utils/systemPrompt.ts:41
↓ 7 callers
Function
buildRenderedCard
(renderedMarkdown: string)
adapters/feishu/streaming-card.ts:66
↓ 7 callers
Function
buildSidebarProjectPreferences
( projectOrder: string[], pinnedProjectKeys: Set<string>, hiddenProjectKeys: Set<string>, projectOrgan
desktop/src/components/layout/Sidebar.tsx:1608
↓ 7 callers
Function
calculateContextBudget
( args: CalculateContextBudgetArgs, )
src/utils/contextBudget.ts:115
↓ 7 callers
Function
callAuthorizedApps
(method: string, body?: unknown)
src/server/__tests__/computer-use-api.test.ts:22
↓ 7 callers
Function
callIdeRpc
( toolName: string, args: Record<string, unknown>, client: ConnectedMCPServer, )
src/services/mcp/client.ts:2109
↓ 7 callers
Function
checkGate_CACHED_OR_BLOCKING
( gate: string, )
src/services/analytics/growthbook.ts:906
↓ 7 callers
Function
checkWritePermissionForTool
( tool: Tool<Input>, input: z.infer<Input>, toolPermissionContext: ToolPermissionContext, precomputedP
src/utils/permissions/filesystem.ts:1225
↓ 7 callers
Function
clearClassifierChecking
(toolUseID: string)
src/utils/classifierApprovals.ts:68
↓ 7 callers
Function
countToolDefinitionTokens
( tools: Tools, getToolPermissionContext: () => Promise<ToolPermissionContext>, agentInfo: AgentDefiniti
src/utils/analyzeContext.ts:246
↓ 7 callers
Function
createCacheSafeParams
( context: REPLHookContext, )
src/utils/forkedAgent.ts:131
↓ 7 callers
Function
createChildAbortController
( parent: AbortController, maxListeners?: number, )
src/utils/abortController.ts:68
↓ 7 callers
Function
createDiagnosis
( status: TraceDiagnosis['status'], reason: TraceDiagnosisReason, evidence: TraceSpan[], spans: TraceS
desktop/src/lib/traceViewModel.ts:405
↓ 7 callers
Method
createSession
(workDir: string)
adapters/common/http-client.ts:99
↓ 7 callers
Function
createSpanAttributes
( spanType: SpanType, customAttributes: Record<string, string | number | boolean> = {}, )
src/utils/telemetry/sessionTracing.ts:156
↓ 7 callers
Function
d0
(M,Q,Z)
desktop/src-tauri/resources/preview-agent.js:18
↓ 7 callers
Function
debug
(msg: string)
src/tools/BriefTool/upload.ts:56
↓ 7 callers
Function
deferred
()
desktop/src/stores/workspacePanelStore.test.ts:36
↓ 7 callers
Method
deleteSession
* Delete a session's JSONL file.
src/server/services/sessionService.ts:2631
↓ 7 callers
Function
describeFileType
(path: string)
desktop/src/lib/openWithItems.ts:14
↓ 7 callers
Method
destroy
()
adapters/wechat/typing.ts:36
↓ 7 callers
Function
detectCurrentRepositoryWithHost
()
src/utils/detectRepository.ts:32
↓ 7 callers
Function
detectPythonRuntime
( platform: NodeJS.Platform, runCommand: CommandRunner, venvPythonPath?: string, customPythonPath?: st
src/server/api/computer-use-python.ts:103
↓ 7 callers
Method
disconnect
()
desktop/src/components/browser/BrowserSurface.test.tsx:8
↓ 7 callers
Function
editFileInEditor
(filePath: string)
src/utils/promptEditor.ts:31
↓ 7 callers
Function
editPromptInEditor
( currentPrompt: string, pastedContents?: Record<number, PastedContent>, )
src/utils/promptEditor.ts:138
↓ 7 callers
Function
emptyFrame
( rows: number, columns: number, stylePool: StylePool, charPool: CharPool, hyperlinkPool: HyperlinkP
src/ink/frame.ts:22
↓ 7 callers
Function
ensureConfigScope
(scope?: string)
src/services/mcp/utils.ts:301
↓ 7 callers
Function
escapeMarkdownV2
(text: string)
adapters/common/format.ts:251
↓ 7 callers
Function
execTmux
* Executes a tmux command, routing through WSL on Windows. * On Windows, tmux only exists inside WSL — WSL interop lets the tmux session * launch .e
src/utils/tmuxSocket.ts:44
↓ 7 callers
Function
expandTildePath
(target: string, platform: NodeJS.Platform = process.platform)
desktop/electron/services/shell.ts:41
↓ 7 callers
Function
extractAgentToolActivities
( message: MessageType, )
src/tools/AgentTool/agentToolUtils.ts:377
↓ 7 callers
Function
extractErrorDetail
(data: unknown)
src/bridge/debugUtils.ts:106
↓ 7 callers
Function
extractOutputRedirections
(cmd: string)
src/utils/bash/commands.ts:634
↓ 7 callers
Function
extractText
(content: string, msgType: string)
adapters/feishu/__tests__/feishu.test.ts:12
↓ 7 callers
Function
findCommand
( commandName: string, commands: Command[], )
src/commands.ts:690
↓ 7 callers
Function
findMarkdownTablesOutsideCodeBlocks
(text: string)
adapters/feishu/markdown-style.ts:152
↓ 7 callers
Function
findSlashToken
(value: string, cursorPos: number)
desktop/src/components/chat/composerUtils.ts:317
↓ 7 callers
Function
finishRecording
()
src/hooks/useVoice.ts:322
↓ 7 callers
Function
finiteNumberOrUndefined
(value: unknown)
src/services/api/traceCapture.ts:992
↓ 7 callers
Function
formatBytes
(bytes: number)
desktop/src/lib/formatBytes.ts:1
↓ 7 callers
Function
formatPermissionInstructions
(requestId: string)
adapters/common/permission.ts:60
↓ 7 callers
Function
formatRelativeTimeAgo
( date: Date, options: RelativeTimeOptions & { now?: Date } = {}, )
src/utils/format.ts:186
↓ 7 callers
Function
formatTraceJson
(value: unknown)
desktop/src/lib/traceViewModel.ts:456
↓ 7 callers
Method
fromJSON
(object: any)
src/types/generated/google/protobuf/timestamp.ts:183
↓ 7 callers
Method
fromText
( text: string, columns: number, offset: number = 0, selection: number = 0, )
src/utils/Cursor.ts:162
↓ 7 callers
Function
generateTaskId
(type: TaskType)
src/Task.ts:98
↓ 7 callers
Function
getAnthropicApiKey
()
src/utils/auth.ts:216
↓ 7 callers
Function
getCallbackChatId
(ctx: TelegramCommandContext)
adapters/telegram/commands.ts:682
↓ 7 callers
Function
getConfig
( file: string, createDefault: () => A, throwOnInvalid?: boolean, )
src/utils/config.ts:1421
↓ 7 callers
Function
getCurrentAgentInfo
* Get current agent info
src/utils/telemetry/perfettoTracing.ts:147
↓ 7 callers
Function
getCurrentTurnTokenBudget
()
src/bootstrap/state.ts:729
↓ 7 callers
Function
getDebugLogPath
()
src/utils/debug.ts:230
↓ 7 callers
Function
getDefaultOptionForUser
(fastMode = false)
src/utils/model/modelOptions.ts:67
↓ 7 callers
Function
getDumpPromptsPath
(agentIdOrSessionId?: string)
src/services/api/dumpPrompts.ts:98
↓ 7 callers
Function
getElectronMenuMocks
()
desktop/electron/services/menu.test.ts:15
↓ 7 callers
Function
getErrorMessage
(error: unknown, fallback: string)
desktop/src/stores/settingsStore.ts:774
↓ 7 callers
Function
getFeatureValue_CACHED_WITH_REFRESH
( feature: string, defaultValue: T, _refreshIntervalMs: number, )
src/services/analytics/growthbook.ts:785
↓ 7 callers
Method
getGitInfo
(sessionId: string)
adapters/common/http-client.ts:202
↓ 7 callers
Method
getInstance
()
src/utils/activityManager.ts:35
↓ 7 callers
Function
getMCPUserAgent
()
src/utils/http.ts:38
↓ 7 callers
Method
getMemberTranscript
( teamName: string, agentId: string, )
src/server/services/teamService.ts:199
↓ 7 callers
Function
getMemoryPath
(memoryType: MemoryType)
src/utils/config.ts:1788
↓ 7 callers
Function
getModelContextWindowFromEnvValue
( model: string, raw: string | undefined, )
src/utils/model/modelContextWindows.ts:109
↓ 7 callers
Function
getOpenAICodexContextWindowForModel
( model: string, )
src/services/openaiAuth/models.ts:120
↓ 7 callers
Function
getOpus46PricingSuffix
(fastMode: boolean)
src/utils/model/model.ts:335
↓ 7 callers
Method
getPermissionMode
获取当前权限模式
src/server/services/settingsService.ts:213
↓ 7 callers
Function
getPluginCachePath
()
src/utils/plugins/pluginLoader.ts:129
↓ 7 callers
Function
getPreservedSelection
(prevSuggestions: SuggestionItem[], prevSelection: number, newSuggestions: SuggestionItem[])
src/hooks/useTypeahead.tsx:52
↓ 7 callers
Function
getPreviewHost
()
desktop/src/lib/previewBridge.ts:5
↓ 7 callers
Method
getProjectsDir
()
src/server/services/sessionService.ts:497
↓ 7 callers
Function
getProviderUsageTrust
(args: { isFirstPartyAnthropic: boolean })
src/utils/contextBudget.ts:22
↓ 7 callers
Function
getRemoteManagedSettingsSyncFromCache
()
src/services/remoteManagedSettings/syncCacheState.ts:70
↓ 7 callers
Function
getRemoteTaskSessionUrl
(sessionId: string)
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:853
↓ 7 callers
Function
getSessionPanelState
( panelBySession: Record<string, WorkspacePanelSessionState | undefined>, sessionId: string, )
desktop/src/stores/workspacePanelStore.ts:119
↓ 7 callers
Method
getSessionPermissionMode
(sessionId: string)
src/server/services/conversationService.ts:661
↓ 7 callers
Function
getSimpleCommandPrefix
(command: string)
src/tools/BashTool/bashPermissions.ts:161
↓ 7 callers
Method
getTeam
(name: string)
src/server/services/teamService.ts:132
↓ 7 callers
Function
getTeamMemPath
()
src/memdir/teamMemPaths.ts:84
↓ 7 callers
Function
getTotalOutputTokens
()
src/bootstrap/state.ts:708
↓ 7 callers
Function
getUserMsgOptIn
()
src/bootstrap/state.ts:1112
↓ 7 callers
Function
getUserSpecifiedModelSetting
()
src/utils/model/model.ts:66
↓ 7 callers
Function
getXaaIdpSettings
()
src/services/mcp/xaaIdpLogin.ts:47
↓ 7 callers
Function
gitConfig
(rootDir: string, key: string, value: string)
scripts/git-hooks/install.ts:48
← previous
next →
1,201–1,300 of 17,500, ranked by callers