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
↓ 15 callers
Function
getBodyElements
(card: Record<string, unknown>)
adapters/feishu/__tests__/feishu.test.ts:426
↓ 15 callers
Function
getHeightsForSession
(sessionId: string)
desktop/src/components/chat/virtualHeightCache.ts:34
↓ 15 callers
Function
getMcpConfigByName
(name: string)
src/services/mcp/config.ts:1041
↓ 15 callers
Function
getOrganizationUUID
()
src/services/oauth/client.ts:426
↓ 15 callers
Function
getPluginsDirectory
()
src/utils/plugins/pluginDirectories.ts:53
↓ 15 callers
Function
handleDesktopUiApi
( req: Request, url: URL, segments: string[], )
src/server/api/desktop-ui.ts:17
↓ 15 callers
Function
isEssentialTrafficOnly
()
src/utils/privacyLevel.ts:34
↓ 15 callers
Function
isIdentStart
(c: string)
src/utils/bash/bashParser.ts:226
↓ 15 callers
Method
listTasks
列出所有任务(跨所有 task list)
src/server/services/taskService.ts:105
↓ 15 callers
Function
loadAllPlugins
()
src/commands/plugin/DiscoverPlugins.tsx:124
↓ 15 callers
Function
makeFileHistorySnapshotEntry
( snapshotMessageId: string, trackedFileBackups: Record<string, unknown>, )
src/server/__tests__/sessions.test.ts:198
↓ 15 callers
Function
mergeSlashCommands
( preferred: ReadonlyArray<SlashCommandOption>, fallback: ReadonlyArray<SlashCommandOption> = FALLBACK_SLA
desktop/src/components/chat/composerUtils.ts:199
↓ 15 callers
Method
observe
()
desktop/src/components/browser/BrowserSurface.test.tsx:8
↓ 15 callers
Function
onExit
(handler: (payload: TerminalExitPayload) => void)
desktop/src/api/terminal.ts:53
↓ 15 callers
Function
onProgress
(lastLines, allLines, totalLines, totalBytes, isIncomplete)
src/tools/BashTool/BashTool.tsx:883
↓ 15 callers
Function
onSelect
(log_0: LogOption)
src/screens/ResumeConversation.tsx:178
↓ 15 callers
Function
parsePermissionCommand
( text: string, pendingRequestIds?: Iterable<string> | null, )
adapters/common/permission.ts:13
↓ 15 callers
Function
parseStatements
* Parse a sequence of statements separated by ; & newline. Returns a flat list * where ; and & are sibling leaves (NOT wrapped in 'list' — only && ||
src/utils/bash/bashParser.ts:769
↓ 15 callers
Function
parseWord
* Parse a word-position element: bare word, string, expansion, or concatenation * thereof. Returns a single node; if multiple adjacent fragments, wra
src/utils/bash/bashParser.ts:2008
↓ 15 callers
Function
readFileSync
(fsPath, options)
src/utils/fsOperations.ts:445
↓ 15 callers
Function
reassembleSseText
(sseText: string)
desktop/src/lib/trace/sse.ts:17
↓ 15 callers
Function
renderModelName
(model: ModelName)
src/utils/model/model.ts:427
↓ 15 callers
Method
resize
(cols: number, rows: number)
desktop/electron/services/terminal.test.ts:32
↓ 15 callers
Function
semanticBoolean
( inner: T = z.boolean() as unknown as T, )
src/utils/semanticBoolean.ts:22
↓ 15 callers
Function
text
(s: string)
tests/reorderAssistantToolUseBlocks.test.ts:14
↓ 15 callers
Function
tuc
()
src/utils/computerUse/wrapper.tsx:53
↓ 15 callers
Method
updateProvider
(id: string, input: UpdateProviderInput)
src/server/services/providerService.ts:239
↓ 15 callers
Function
validateBridgeId
(id: string, label: string)
src/bridge/bridgeApi.ts:48
↓ 15 callers
Function
wrapInSystemReminder
(content: string)
src/utils/messages.ts:3214
↓ 15 callers
Function
writeFileSync_DEPRECATED
( filePath: string, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptionsWithFlush, )
src/utils/slowOperations.ts:248
↓ 15 callers
Function
writeSessionFile
Write a JSONL session file. Entries may be objects (serialized) or raw strings (for malformed-line tests).
src/server/__tests__/searchService.sessions.test.ts:34
↓ 14 callers
Method
appendReasoning
追加 reasoning/thinking delta —— 与 appendText 并列,渲染为顶部预览。
adapters/feishu/streaming-card.ts:267
↓ 14 callers
Function
capitalize
(str: string)
src/utils/stringUtils.ts:20
↓ 14 callers
Function
cellAt
(screen: Screen, x: number, y: number)
src/ink/screen.ts:593
↓ 14 callers
Function
checkAttachmentLimit
( kind: 'image' | 'file', size: number, mime?: string, )
adapters/common/attachment/attachment-limits.ts:27
↓ 14 callers
Function
classifyH5Request
( request: Request, url: URL, context: H5RequestContext, )
src/server/h5AccessPolicy.ts:61
↓ 14 callers
Function
cleanSessionTitleSource
(raw: string)
src/utils/sessionTitleText.ts:28
↓ 14 callers
Function
collectSse
(stream: ReadableStream<Uint8Array>)
src/server/__tests__/proxy-streaming.test.ts:23
↓ 14 callers
Function
consumePendingDelta
(sessionId: string)
desktop/src/stores/chatStore.ts:393
↓ 14 callers
Function
createTraceBodySnapshot
( body: unknown, options?: { maxPreviewChars?: number; alreadyTruncated?: boolean }, )
src/services/api/traceCapture.ts:246
↓ 14 callers
Function
enableConfigs
()
src/utils/config.ts:1334
↓ 14 callers
Method
forceFlush
()
src/utils/telemetry/bigqueryExporter.ts:221
↓ 14 callers
Function
getConfiguredWorkDir
(config: AdapterConfig, platformConfig: AdapterPlatformConfig)
adapters/common/config.ts:168
↓ 14 callers
Function
getCurrentProjectConfig
(cwd?: string)
src/utils/config.ts:1608
↓ 14 callers
Function
getCurrentWorktreeSession
()
src/utils/worktree.ts:159
↓ 14 callers
Method
getDiff
( sessionId: string, filePath: string, )
src/server/services/workspaceService.ts:550
↓ 14 callers
Function
getProxyFetchOptions
(opts?: { forAnthropicAPI?: boolean; proxyUrl?: string | null; targetUrl?: string | URL | null; noProxy?: stri
src/utils/proxy.ts:310
↓ 14 callers
Function
getShortcutDisplay
( action: string, context: KeybindingContextName, fallback: string, )
src/keybindings/shortcutFormat.ts:38
↓ 14 callers
Method
getStatus
(sessionId: string)
src/server/services/workspaceService.ts:246
↓ 14 callers
Function
handleAdaptersApi
( req: Request, _url: URL, _segments: string[], )
src/server/api/adapters.ts:142
↓ 14 callers
Function
hasDangerousExpansion
* Checks if a redirection target contains shell expansion syntax that could * bypass path validation. These require manual approval for security. *
src/utils/bash/commands.ts:830
↓ 14 callers
Function
hasEmbeddedSearchTools
()
src/utils/embeddedTools.ts:15
↓ 14 callers
Function
initializeDesktopServerUrl
()
desktop/src/lib/desktopRuntime.ts:157
↓ 14 callers
Function
isAnthropicAuthEnabled
()
src/utils/auth.ts:101
↓ 14 callers
Method
isAtEnd
()
src/utils/Cursor.ts:1000
↓ 14 callers
Function
isFastModeAvailable
()
src/utils/fastMode.ts:42
↓ 14 callers
Function
isOpenAIOfficialProviderId
( id: string | null | undefined, )
src/server/services/openaiOfficialProvider.ts:21
↓ 14 callers
Function
isOpus1mMergeEnabled
()
src/utils/model/model.ts:342
↓ 14 callers
Function
listTasks
(taskListId: string)
src/utils/tasks.ts:443
↓ 14 callers
Function
loadConfig
()
adapters/common/config.ts:103
↓ 14 callers
Function
logPluginFetch
( source: PluginFetchSource, urlOrSpec: string | undefined, outcome: PluginFetchOutcome, durationMs: n
src/utils/plugins/fetchTelemetry.ts:79
↓ 14 callers
Function
logSuggestionSuppressed
( reason: string, suggestion?: string, promptId?: PromptVariant, source?: 'cli' | 'sdk', )
src/services/PromptSuggestion/promptSuggestion.ts:499
↓ 14 callers
Function
makeMockClient
(responses: Record<string, any>)
adapters/feishu/__tests__/cardkit.test.ts:29
↓ 14 callers
Function
makeProvider
(overrides: Partial<SavedProvider> = {})
desktop/src/stores/providerStore.test.ts:73
↓ 14 callers
Function
makeStream
(chunks: string[])
src/server/__tests__/proxy-streaming.test.ts:11
↓ 14 callers
Function
open
(sock)
src/upstreamproxy/relay.ts:193
↓ 14 callers
Function
readXmlTag
(xml: string, tag: string)
desktop/src/stores/chatStore.ts:2608
↓ 14 callers
Function
registerBundledSkill
(definition: BundledSkillDefinition)
src/skills/bundledSkills.ts:53
↓ 14 callers
Function
resolve
(value: T)
src/hooks/toolPermission/PermissionContext.ts:79
↓ 14 callers
Function
resolveGitDir
( startPath?: string, )
src/utils/git/gitFilesystem.ts:40
↓ 14 callers
Method
resolvePath
Compute the target path. Creates parent dirs on demand. * If a file with the same name already exists, prefix with a timestamp * to avoid clob
adapters/common/attachment/attachment-store.ts:57
↓ 14 callers
Function
set
(name: string, value: number)
src/context/stats.tsx:36
↓ 14 callers
Function
statSync
(fsPath)
src/utils/fsOperations.ts:435
↓ 14 callers
Function
switchSession
( sessionId: SessionId, projectDir: string | null = null, )
src/bootstrap/state.ts:468
↓ 14 callers
Function
toIDEDisplayName
(terminal: string | null)
src/utils/ide.ts:1214
↓ 14 callers
Method
updateConfig
更新配置(浅合并,敏感字段如果是脱敏值则保留原值)
src/server/services/adapterService.ts:125
↓ 14 callers
Function
useSelectedMessageBg
()
src/components/messageActions.tsx:212
↓ 14 callers
Function
useTerminalFocus
()
src/ink/hooks/use-terminal-focus.ts:13
↓ 14 callers
Function
wrapForMultiplexer
(sequence: string)
src/ink/termio/osc.ts:35
↓ 14 callers
Function
writeFileHistoryBackup
( sessionId: string, backupFileName: string, content: string, )
src/server/__tests__/sessions.test.ts:359
↓ 13 callers
Function
F
(M,Q)
desktop/src-tauri/resources/preview-agent.js:18
↓ 13 callers
Function
buildOpenWithItems
(ctx: OpenWithContext, targets: OpenTarget[], deps: OpenWithDeps)
desktop/src/lib/openWithItems.ts:58
↓ 13 callers
Function
buildProjectPickerCard
(projects: RecentProject[])
adapters/feishu/__tests__/feishu.test.ts:69
↓ 13 callers
Function
classifyH5PublicBaseUrl
(value: string)
src/server/services/h5AccessService.ts:322
↓ 13 callers
Function
cleanup
()
src/utils/ShellCommand.ts:479
↓ 13 callers
Method
close
()
desktop/electron/services/preview.ts:127
↓ 13 callers
Function
defaultPortableDir
(app: AppModeAppLike)
desktop/electron/services/appMode.ts:22
↓ 13 callers
Function
ensureArray
* Ensure a value is an array. PowerShell 5.1's ConvertTo-Json may unwrap * single-element arrays into plain objects.
src/utils/powershell/parser.ts:703
↓ 13 callers
Method
ensureFreshAccessToken
()
src/server/services/hahaOAuthService.ts:248
↓ 13 callers
Method
equals
(other: Cursor)
src/utils/Cursor.ts:991
↓ 13 callers
Function
executeHooks
* Common logic for executing hooks * @param hookInput The structured hook input that will be validated and converted to JSON * @param toolUseID The
src/utils/hooks.ts:1970
↓ 13 callers
Function
extractLarkApiCode
(err: unknown)
adapters/feishu/card-errors.ts:55
↓ 13 callers
Function
firstPartyNameToCanonical
(name: ModelName)
src/utils/model/model.ts:239
↓ 13 callers
Method
getComputedWidth
()
src/ink/layout/yoga.ts:116
↓ 13 callers
Function
getDefaultMainLoopModelSetting
()
src/utils/model/model.ts:192
↓ 13 callers
Function
getKairosActive
()
src/bootstrap/state.ts:1085
↓ 13 callers
Function
getMessagesAfterCompactBoundary
(messages: T[], options?: { includeSnipped?: boolean })
src/utils/messages.ts:4785
↓ 13 callers
Method
getPosition
()
src/utils/Cursor.ts:1046
↓ 13 callers
Method
getProviderRuntimeEnv
(id: string)
src/server/services/providerService.ts:369
↓ 13 callers
Function
getRemoteSessionUrl
( sessionId: string, ingressUrl?: string, )
src/constants/product.ts:65
← previous
next →
501–600 of 17,500, ranked by callers