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
↓ 34 callers
Function
saveLex
(L: Lexer)
src/utils/bash/bashParser.ts:756
↓ 34 callers
Function
sendText
Send a text message (post format).
adapters/feishu/index.ts:285
↓ 34 callers
Method
stopSession
(sessionId: string)
src/server/services/conversationService.ts:790
↓ 34 callers
Function
update
(updater: (session: PerSessionState) => Partial<PerSessionState>)
desktop/src/stores/chatStore.ts:1545
↓ 34 callers
Function
useShortcutDisplay
( action: string, context: KeybindingContextName, fallback: string, )
src/keybindings/useShortcutDisplay.ts:29
↓ 33 callers
Function
createPermissionRequestMessage
(params: { request_id: string agent_id: string tool_name: string tool_use_id: string description: st
src/utils/teammateMailbox.ts:488
↓ 33 callers
Function
getAppState
()
src/commands/commit.ts:71
↓ 33 callers
Function
getMainLoopModel
()
src/utils/model/model.ts:97
↓ 33 callers
Function
sleep
(ms: number)
adapters/feishu/__tests__/streaming-card.test.ts:92
↓ 32 callers
Method
cancel
()
src/utils/task/diskOutput.ts:137
↓ 32 callers
Function
cleanup
()
desktop/electron/services/notifications.ts:61
↓ 32 callers
Method
cleanup
()
src/utils/ShellCommand.ts:105
↓ 32 callers
Function
createAbortController
( maxListeners: number = DEFAULT_MAX_LISTENERS, )
src/utils/abortController.ts:16
↓ 32 callers
Function
g
(U,F,z)
desktop/src-tauri/resources/preview-agent.js:22
↓ 32 callers
Function
isBareMode
()
src/utils/envUtils.ts:60
↓ 32 callers
Function
makeMockClient
(behavior: MockBehavior = {})
adapters/feishu/__tests__/streaming-card.test.ts:39
↓ 32 callers
Function
normalizeDriveRootPathForPlatform
( filePath: string, platform: NodeJS.Platform = process.platform, )
src/server/services/windowsDrivePath.ts:3
↓ 32 callers
Function
permissionRuleValueToString
( ruleValue: PermissionRuleValue, )
src/utils/permissions/permissionRuleParser.ts:144
↓ 32 callers
Function
resolve
(requestId, behavior, fromServer)
src/services/mcp/channelPermissions.ts:228
↓ 32 callers
Function
sendControlResponseSuccess
( message: SDKControlRequest, response?: Record<string, unknown>, )
src/cli/print.ts:2699
↓ 32 callers
Function
setImportant
(style: CSSStyleDeclaration, property: string, value: string)
desktop/src/preview-agent/screenshot.ts:18
↓ 32 callers
Function
truncate
( text: string, columns: number, position: 'start' | 'middle' | 'end', )
src/ink/wrap-text.ts:15
↓ 31 callers
Method
append
(content: string)
src/utils/task/diskOutput.ts:110
↓ 31 callers
Function
resolveToCanonical
(name: string)
src/tools/PowerShellTool/readOnlyValidation.ts:984
↓ 31 callers
Function
sendText
(chatId: string, text: string)
adapters/dingtalk/index.ts:124
↓ 31 callers
Method
stopPropagation
()
src/ink/events/terminal-event.ts:55
↓ 31 callers
Function
useNotifications
()
src/context/notifications.tsx:38
↓ 30 callers
Method
buildChildEnv
( workDir: string, sdkUrl?: string, options?: SessionStartOptions, )
src/server/services/conversationService.ts:1042
↓ 30 callers
Method
create
(base?: I)
src/types/generated/google/protobuf/timestamp.ts:185
↓ 30 callers
Function
extractTextContent
( blocks: readonly { readonly type: string }[], separator = '', )
src/utils/messages.ts:3010
↓ 30 callers
Method
findSessionFile
( sessionId: string )
src/server/services/sessionService.ts:1580
↓ 30 callers
Function
findToolByName
(tools: Tools, name: string)
src/Tool.ts:358
↓ 30 callers
Function
logMCPError
(serverName: string, error: unknown)
src/utils/log.ts:301
↓ 30 callers
Method
next
()
src/utils/stream.ts:19
↓ 30 callers
Function
readSettings
Read the settings.json written to the temp config dir
src/server/__tests__/providers.test.ts:73
↓ 30 callers
Function
renderPanel
(sessionId: string)
desktop/src/components/workspace/WorkspacePanel.test.tsx:84
↓ 30 callers
Function
t
(locale: Locale)
desktop/src/lib/formatMessageTimestamp.test.ts:5
↓ 29 callers
Function
anthropicToOpenaiChat
( body: AnthropicRequest, options: OpenAIChatTransformOptions = {}, )
src/server/proxy/transform/anthropicToOpenaiChat.ts:34
↓ 29 callers
Function
createBaseHookInput
( permissionMode?: string, sessionId?: string, // Typed narrowly (not ToolUseContext) so callers can pas
src/utils/hooks.ts:304
↓ 29 callers
Function
debug
(msg: string)
src/bridge/bridgeApi.ts:69
↓ 29 callers
Function
extractAssistantOutputTargets
( content: string, options: ExtractAssistantOutputTargetOptions = {}, )
desktop/src/lib/assistantOutputTargets.ts:79
↓ 29 callers
Function
nextId
()
desktop/src/stores/chatStore.ts:285
↓ 29 callers
Method
reset
()
src/utils/sandbox/sandbox-adapter.ts:921
↓ 29 callers
Function
setStatus
(s: string)
src/screens/REPL.tsx:4301
↓ 29 callers
Function
toolMatchesName
( tool: { name: string; aliases?: string[] }, name: string, )
src/Tool.ts:348
↓ 28 callers
Function
callback
(cliMsg: any)
src/server/ws/handler.ts:473
↓ 28 callers
Function
createService
( platform: NodeJS.Platform, options: { commands?: Record<string, boolean> commandPaths?: Record<s
src/server/__tests__/open-target-service.test.ts:11
↓ 28 callers
Function
frequencyToCron
(frequency: Frequency, time?: string)
src/utils/cronFrequency.ts:39
↓ 28 callers
Function
getMocks
()
desktop/src/components/workspace/WorkspacePanel.test.tsx:40
↓ 28 callers
Function
getOAuthHeaders
(accessToken: string)
src/utils/teleport/api.ts:276
↓ 28 callers
Method
getSessionWorkDir
* Get the actual working directory for a session. * First checks for stored session-meta entry, then falls back to desanitizePath.
src/server/services/sessionService.ts:2730
↓ 28 callers
Method
hasSession
(sessionId: string)
src/server/services/conversationService.ts:646
↓ 28 callers
Function
isAutoMemoryEnabled
()
src/memdir/paths.ts:30
↓ 28 callers
Function
isEnvDefinedFalsy
( envVar: string | boolean | undefined, )
src/utils/envUtils.ts:39
↓ 28 callers
Function
isRecord
(value: unknown)
desktop/src/lib/trace/sse.ts:388
↓ 28 callers
Function
json_output
(payload: dict[str, Any])
runtime/mac_helper.py:150
↓ 28 callers
Function
json_output
(payload: dict[str, Any])
runtime/win_helper.py:104
↓ 28 callers
Function
loadKnownMarketplacesConfig
()
src/utils/plugins/marketplaceManager.ts:270
↓ 28 callers
Function
makeSessionMetaEntry
(workDir: string)
src/server/__tests__/sessions.test.ts:319
↓ 28 callers
Function
onEvent
()
desktop/src/lib/desktopHost/browserHost.ts:232
↓ 28 callers
Function
openBrowser
(url: string)
src/utils/browser.ts:39
↓ 28 callers
Function
sendWhatsAppText
(jid: string, text: string)
adapters/whatsapp/index.ts:123
↓ 28 callers
Method
updateSettings
(input: { allowedOrigins?: string[] publicBaseUrl?: string | null fixedPort?: number | null di
src/server/services/h5AccessService.ts:688
↓ 28 callers
Function
writeToMailbox
( recipientName: string, message: Omit<TeammateMessage, 'read'>, teamName?: string, )
src/utils/teammateMailbox.ts:134
↓ 27 callers
Function
c
(M,Q)
desktop/src-tauri/resources/preview-agent.js:18
↓ 27 callers
Function
clearAllCaches
()
src/utils/plugins/cacheUtils.ts:46
↓ 27 callers
Function
cronToFrequency
(cron: string)
src/utils/cronFrequency.ts:62
↓ 27 callers
Function
getCommandName
(cmd: CommandBase)
src/types/command.ts:210
↓ 27 callers
Method
getSessionTrace
(sessionId: string)
src/services/api/traceCapture.ts:366
↓ 27 callers
Function
handleMcpApi
( req: Request, url: URL, segments: string[], )
src/server/api/mcp.ts:624
↓ 27 callers
Function
isFsInaccessible
(e: unknown)
src/utils/errors.ts:186
↓ 27 callers
Method
isSandboxingEnabled
()
src/utils/sandbox/sandbox-adapter.ts:885
↓ 27 callers
Function
l
(M,Q)
desktop/src-tauri/resources/preview-agent.js:18
↓ 27 callers
Method
listProviders
()
src/server/services/providerService.ts:192
↓ 27 callers
Method
off
(event: 'download-progress', handler: ProgressHandler)
desktop/electron/services/updateSmoke.ts:93
↓ 27 callers
Function
onChange
(autoCompactEnabled: boolean)
src/components/Settings/Config.tsx:271
↓ 27 callers
Method
recordCall
(input: RecordTraceCallInput)
src/services/api/traceCapture.ts:303
↓ 27 callers
Method
recordEvent
(input: DiagnosticEventInput)
src/server/services/diagnosticsService.ts:82
↓ 27 callers
Method
saveTokens
(tokens: StoredOAuthTokens)
src/server/services/hahaOAuthService.ts:88
↓ 27 callers
Function
setWorkspaceState
( updater: | ReturnType<typeof useWorkspacePanelStore.getInitialState> | Parameters<typeof useWorksp
desktop/src/components/workspace/WorkspacePanel.test.tsx:57
↓ 26 callers
Function
callPythonHelper
(command: string, payload: Record<string, unknown> = {})
src/utils/computerUse/pythonBridge.ts:159
↓ 26 callers
Function
cliOk
(msg?: string)
src/cli/exit.ts:27
↓ 26 callers
Method
close
* Closes the WebSocket connection.
src/utils/mcpWebSocketTransport.ts:159
↓ 26 callers
Method
end
* End the flush and return any queued items for draining. * Caller is responsible for sending the returned items.
src/bridge/flushGate.ts:37
↓ 26 callers
Function
formatTokenCount
(n?: number)
desktop/src/lib/formatTokenCount.ts:8
↓ 26 callers
Function
getAgentName
()
src/utils/teammate.ts:98
↓ 26 callers
Function
getCanonicalName
(fullModelName: ModelName)
src/utils/model/model.ts:301
↓ 26 callers
Function
getOauthAccountInfo
()
src/utils/auth.ts:1639
↓ 26 callers
Function
makeRequest
( method: string, urlStr: string, body?: Record<string, unknown>, )
src/server/__tests__/mcp.test.ts:52
↓ 26 callers
Function
sendText
(chatId: string, text: string)
adapters/wechat/index.ts:86
↓ 26 callers
Method
spawn
* Spawns an in-process teammate. * * Uses spawnInProcessTeammate() to: * 1. Create TeammateContext via createTeammateContext() * 2. Create
src/utils/swarm/backends/InProcessBackend.ts:72
↓ 26 callers
Method
tryRecord
Returns true if this is a NEW message, false if duplicate.
adapters/common/message-dedup.ts:24
↓ 26 callers
Function
useExitOnCtrlCDWithKeybindings
( onExit?: () => void, onInterrupt?: () => boolean, isActive?: boolean, )
src/hooks/useExitOnCtrlCDWithKeybindings.ts:18
↓ 25 callers
Function
create
(input: CreateTaskInput)
desktop/src/api/tasks.ts:13
↓ 25 callers
Method
focus
(node: DOMElement)
src/ink/focus.ts:27
↓ 25 callers
Method
getSessionLaunchInfo
* Inspect how a session should be launched. * Placeholder desktop-created sessions have zero transcript messages.
src/server/services/sessionService.ts:2754
↓ 25 callers
Method
getSessionMessages
* Get only the messages for a session (lighter than full detail).
src/server/services/sessionService.ts:2475
↓ 25 callers
Function
getTaskOutputPath
(taskId: string)
src/utils/task/diskOutput.ts:72
↓ 25 callers
Function
makeTeamConfig
Create a standard team config for testing.
src/server/__tests__/teams.test.ts:77
↓ 25 callers
Function
onChange
()
src/ink/hooks/use-interval.ts:22
← previous
next →
201–300 of 17,500, ranked by callers