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
↓ 19 callers
Method
send
(sessionId: string, message: ClientMessage)
desktop/src/api/websocket.ts:109
↓ 19 callers
Function
stripAnsi
(value: string)
desktop/src/components/chat/ToolCallBlock.tsx:779
↓ 19 callers
Function
useAppStateStore
()
src/state/AppState.tsx:177
↓ 18 callers
Function
api
( method: string, pathname: string, options: { body?: Record<string, unknown> bearerToken?: stri
src/server/__tests__/h5-access-api.test.ts:10
↓ 18 callers
Method
appendText
追加文本增量。不等待,只安排一次节流 flush。
adapters/feishu/streaming-card.ts:259
↓ 18 callers
Function
buildPermissionCard
( toolName: string, input: unknown, requestId: string, workDir?: string, )
adapters/feishu/__tests__/feishu.test.ts:217
↓ 18 callers
Method
checkNow
Visible for testing -- force a single poll cycle.
src/server/services/teamWatcher.ts:48
↓ 18 callers
Function
clearOpenAIOAuthTokenCache
()
src/services/openaiAuth/storage.ts:220
↓ 18 callers
Function
cronMatches
(cronExpr: string, date: Date)
src/server/services/cronScheduler.ts:171
↓ 18 callers
Function
getTracer
()
src/utils/telemetry/sessionTracing.ts:152
↓ 18 callers
Function
handleApiRequest
(req: Request, url: URL)
src/server/router.ts:32
↓ 18 callers
Function
handleModelsApi
( req: Request, url: URL, segments: string[], )
src/server/api/models.ts:166
↓ 18 callers
Function
isPolicyAllowed
(policy: string)
src/services/policyLimits/index.ts:514
↓ 18 callers
Method
listSessions
* List all sessions, optionally filtered by project path.
src/server/services/sessionService.ts:2332
↓ 18 callers
Function
makeRequest
Create a mock Request
src/server/__tests__/providers.test.ts:38
↓ 18 callers
Function
makeTeamConfig
Create a standard team config for testing.
src/server/__tests__/team-watcher.test.ts:48
↓ 18 callers
Function
maybeResizeAndDownsampleImageBuffer
( imageBuffer: Buffer, originalSize: number, ext: string, )
src/utils/imageResizer.ts:179
↓ 18 callers
Function
normalizeNameForMCP
(name: string)
src/services/mcp/normalization.ts:17
↓ 18 callers
Function
onResponse
(requestId_3, handler_0)
src/hooks/useReplBridge.tsx:577
↓ 18 callers
Function
onSubmit
(selectedServers)
src/components/MCPServerDesktopImportDialog.tsx:72
↓ 18 callers
Function
parseFrontmatter
( markdown: string, sourcePath?: string, )
src/utils/frontmatterParser.ts:130
↓ 18 callers
Method
resetSession
Reset session for a chatId (e.g. /new command).
adapters/common/ws-bridge.ts:128
↓ 18 callers
Function
setCwd
(path: string, relativeTo?: string)
src/utils/Shell.ts:447
↓ 18 callers
Function
setOriginalCwd
(cwd: string)
src/bootstrap/state.ts:515
↓ 18 callers
Function
spawn
(opts: SessionSpawnOpts, dir: string)
src/bridge/sessionRunner.ts:250
↓ 18 callers
Function
t
(M)
desktop/src-tauri/resources/preview-agent.js:18
↓ 18 callers
Function
toRelative
(rootDir: string, targetPath: string)
scripts/quality-gate/package-smoke/index.ts:166
↓ 17 callers
Function
appendEntryToFile
( fullPath: string, entry: Record<string, unknown>, )
src/utils/sessionStorage.ts:2601
↓ 17 callers
Function
createCleanGitRepo
(baseDir: string)
src/server/__tests__/sessions.test.ts:54
↓ 17 callers
Function
emit
(ws: WebSocket, payload: Record<string, unknown>)
src/server/__tests__/fixtures/mock-sdk-cli.ts:8
↓ 17 callers
Method
end
* End a query. Returns true if this generation is still current * (meaning the caller should perform cleanup). Returns false if a * newer query
src/utils/QueryGuard.ts:74
↓ 17 callers
Function
findMatches
(rootDir: string, matcher: (candidate: string) => boolean, options?: { directoriesOnly?: boolean })
scripts/quality-gate/package-smoke/index.ts:207
↓ 17 callers
Function
getEmptyToolPermissionContext
()
src/Tool.ts:141
↓ 17 callers
Function
getMcpConfigsByScope
( scope: 'project' | 'user' | 'local' | 'enterprise', )
src/services/mcp/config.ts:896
↓ 17 callers
Function
headlessProfilerCheckpoint
(name: string)
src/utils/headlessProfiler.ts:83
↓ 17 callers
Function
i
(M)
desktop/src-tauri/resources/preview-agent.js:18
↓ 17 callers
Function
matchingRuleForInput
( path: string, toolPermissionContext: ToolPermissionContext, toolType: 'edit' | 'read', behavior: 'al
src/utils/permissions/filesystem.ts:970
↓ 17 callers
Function
normalizeCaseForComparison
(path: string)
src/utils/permissions/filesystem.ts:90
↓ 17 callers
Function
onProgress
(progress: { data: ShellProgress; })
src/utils/processUserInput/processBashCommand.tsx:55
↓ 17 callers
Function
onReject
(feedback)
src/hooks/useSSHSession.ts:143
↓ 17 callers
Function
osc
(...parts: (string | number)[])
src/ink/termio/osc.ts:18
↓ 17 callers
Function
parse
* Parse a command string and return a ParsedCommand instance. * Returns null if parsing fails completely.
src/utils/bash/ParsedCommand.ts:310
↓ 17 callers
Function
prepareApiRequest
()
src/utils/teleport/api.ts:181
↓ 17 callers
Function
readNonEmptyString
(record: Record<string, unknown>, ...keys: string[])
desktop/src/stores/chatStore.ts:2613
↓ 17 callers
Method
right
()
src/utils/Cursor.ts:311
↓ 17 callers
Method
save
()
adapters/common/session-store.ts:75
↓ 17 callers
Function
saveCurrentProjectConfig
( updater: (currentConfig: ProjectConfig) => ProjectConfig, cwd?: string, )
src/utils/config.ts:1633
↓ 17 callers
Function
setStep
()
src/components/TeleportProgress.tsx:120
↓ 17 callers
Method
sleep
(ms: number)
src/cli/transports/SerialBatchEventUploader.ts:261
↓ 17 callers
Function
splitMessage
(text: string, limit: number)
adapters/common/format.ts:39
↓ 17 callers
Method
startSession
({ serverPort }: { serverPort: number })
src/server/services/hahaOAuthService.ts:106
↓ 17 callers
Function
stringOf
(value: unknown)
desktop/src/lib/trace/sse.ts:392
↓ 17 callers
Method
updateUserSettings
更新用户级设置(浅合并)
src/server/services/settingsService.ts:169
↓ 17 callers
Function
waitForProgrammaticScrollReset
()
desktop/src/components/chat/MessageList.test.tsx:20
↓ 17 callers
Function
withCors
(response: Response, cors: CorsResolution)
src/server/index.ts:61
↓ 16 callers
Function
B
(M,Q)
desktop/src-tauri/resources/preview-agent.js:18
↓ 16 callers
Function
D
(M,Q,Z,q)
desktop/src-tauri/resources/preview-agent.js:18
↓ 16 callers
Function
contentTypeForPath
(filePath: string)
src/server/api/previewFs.ts:37
↓ 16 callers
Function
createAssistantMessage
({ content, usage, isVirtual, }: { content: string | BetaContentBlock[] usage?: Usage isVirtual?:
src/utils/messages.ts:420
↓ 16 callers
Function
createServer
(body: Record<string, unknown>)
src/server/api/mcp.ts:466
↓ 16 callers
Method
get
(index: number)
src/ink/screen.ts:50
↓ 16 callers
Method
getComputedTop
()
src/ink/layout/yoga.ts:112
↓ 16 callers
Function
getGraphemeSegmenter
()
src/utils/intl.ts:13
↓ 16 callers
Function
getOpenAIOAuthTokens
()
src/services/openaiAuth/storage.ts:193
↓ 16 callers
Function
git
(cwd: string, ...args: string[])
src/server/__tests__/workspace-service.test.ts:24
↓ 16 callers
Method
graphemeAt
(pos: number)
src/utils/Cursor.ts:980
↓ 16 callers
Function
handleSettingsApi
( req: Request, url: URL, segments: string[], )
src/server/api/settings.ts:41
↓ 16 callers
Function
handler
(e: MouseEvent)
desktop/src/components/tasks/TaskRow.tsx:32
↓ 16 callers
Function
hasProgressMessage
* Guard: checks if progress data has a `message` field (agent_progress or * skill_progress). Other progress types (e.g. bash_progress forwarded from
src/tools/AgentTool/UI.tsx:40
↓ 16 callers
Function
isBetaTracingEnabled
()
src/utils/telemetry/betaSessionTracing.ts:78
↓ 16 callers
Function
isBuiltInAgent
( agent: AgentDefinition, )
src/tools/AgentTool/loadAgentsDir.ts:168
↓ 16 callers
Function
isDesktopRuntime
()
desktop/src/lib/desktopRuntime.ts:69
↓ 16 callers
Function
isFastModeSupportedByModel
( modelSetting: ModelSetting, )
src/utils/fastMode.ts:167
↓ 16 callers
Function
isLocalAgentTask
(task: unknown)
src/tasks/LocalAgentTask/LocalAgentTask.tsx:149
↓ 16 callers
Function
isSettingSourceEnabled
(source: SettingSource)
src/utils/settings/constants.ts:174
↓ 16 callers
Function
loadInstalledPluginsV2
()
src/utils/plugins/installedPluginsManager.ts:344
↓ 16 callers
Method
loadTokens
()
src/server/services/hahaOAuthService.ts:78
↓ 16 callers
Function
q0
(M)
desktop/src-tauri/resources/preview-agent.js:18
↓ 16 callers
Method
readJsonlFile
(filePath: string)
src/server/services/sessionService.ts:513
↓ 16 callers
Function
readTeamFile
(teamName: string)
src/utils/swarm/teamHelpers.ts:132
↓ 16 callers
Function
repositoryBadRequest
(code: RepositoryErrorCode, message: string)
src/server/services/repositoryLaunchService.ts:135
↓ 16 callers
Function
req
(url: string, init: RequestInit = {})
src/server/__tests__/h5-access-policy.test.ts:9
↓ 16 callers
Function
sameFloat
(a: number, b: number)
src/native-ts/yoga-layout/index.ts:113
↓ 16 callers
Function
setCwdState
(cwd: string)
src/bootstrap/state.ts:531
↓ 16 callers
Function
splitCommand_DEPRECATED
(command: string)
src/utils/bash/commands.ts:265
↓ 16 callers
Method
startTool
记录一次 tool_use 开始。dedupe 按 toolUseId(缺省时按 name+index)。
adapters/feishu/streaming-card.ts:275
↓ 16 callers
Method
throttledUpdate
* 节流更新入口。 * * @param throttleMs - 最小 flush 间隔。CardKit 传 THROTTLE.CARDKIT_MS, * Patch 降级路径传 THROTTLE.PATCH_MS。
adapters/feishu/flush-controller.ts:121
↓ 16 callers
Function
updateRepresentativeClaim
()
src/services/mockRateLimits.ts:210
↓ 16 callers
Function
waitUntil
( predicate: () => boolean | Promise<boolean>, label: string, timeoutMs = 8000, )
src/server/__tests__/conversations.test.ts:1401
↓ 16 callers
Function
writeStatus
Write a status line and track its visual line count.
src/bridge/bridgeUI.ts:118
↓ 15 callers
Function
at
(date: string, time: string)
src/utils/__tests__/stats.test.ts:17
↓ 15 callers
Function
classifyPreviewLink
(href: string)
desktop/src/lib/previewLinkRouter.ts:20
↓ 15 callers
Method
close
()
src/services/mcp/InProcessTransport.ts:37
↓ 15 callers
Function
describeCron
(cron: string, t: TFunc)
desktop/src/lib/cronDescribe.ts:34
↓ 15 callers
Function
emitHookResponse
(data: { hookId: string hookName: string hookEvent: string output: string stdout: string stderr: s
src/utils/hooks/hookEvents.ts:153
↓ 15 callers
Method
enable
()
src/server/services/h5AccessService.ts:650
↓ 15 callers
Function
enqueue
(command: QueuedCommand)
src/utils/messageQueueManager.ts:128
↓ 15 callers
Method
executeTask
* Execute a single task by spawning a CLI subprocess. * @param task The task to execute * @param options.createSession When true, creates a Sess
src/server/services/cronScheduler.ts:461
↓ 15 callers
Method
finalize
* 流式结束,切到最终态。 * - 先 waitForFlush 确保中间帧写入完成 * - 然后 close streaming_mode(仅 CardKit 路径) * - 最后用完整 rendered 卡片 update * - complete FlushContro
adapters/feishu/streaming-card.ts:322
↓ 15 callers
Function
flushSeg
()
src/utils/bash/bashParser.ts:2926
← previous
next →
401–500 of 17,500, ranked by callers