MCPcopy Index your code

hub / github.com/NanmiCoder/cc-haha / functions

Functions17,500 in github.com/NanmiCoder/cc-haha

↓ 66 callersMethodtext
()
src/utils/Cursor.ts:1038
↓ 65 callersFunctiongetInitialSettings
()
src/utils/settings/settings.ts:812
↓ 65 callersFunctionmakeSnapshotEntry
()
src/server/__tests__/sessions.test.ts:185
↓ 64 callersMethodactivateProvider
(id: string)
src/server/services/providerService.ts:331
↓ 64 callersFunctionmakeSession
(overrides: Partial<PerSessionState> = {})
desktop/src/stores/chatStore.test.ts:144
↓ 64 callersFunctionreaddir
(fsPath)
src/utils/fsOperations.ts:398
↓ 64 callersFunctionwriteToStdout
(data: string)
src/utils/process.ts:28
↓ 61 callersFunctioncreateAttachmentMessage
( attachment: Attachment, )
src/utils/attachments.ts:3197
↓ 61 callersFunctionparsePluginIdentifier
(plugin: string)
src/utils/plugins/pluginIdentifier.ts:51
↓ 61 callersFunctionquote
(args: ReadonlyArray<unknown>)
src/utils/bash/shellQuote.ts:267
↓ 61 callersFunctionrm
(fsPath, options)
src/utils/fsOperations.ts:410
↓ 60 callersFunctionfetch
(req, server)
src/server/index.ts:162
↓ 60 callersMethodread
()
src/cli/structuredIO.ts:215
↓ 59 callersFunctionisClaudeAISubscriber
()
src/utils/auth.ts:1587
↓ 59 callersFunctionsleep
( ms: number, signal?: AbortSignal, opts?: { throwOnAbort?: boolean; abortError?: () => Error; unref?: b
src/utils/sleep.ts:14
↓ 59 callersFunctionunlink
(fsPath)
src/utils/fsOperations.ts:402
↓ 58 callersFunctionformatTokens
(count: number)
src/utils/format.ts:133
↓ 58 callersMethodnotFound
(message: string)
src/server/middleware/errorHandler.ts:21
↓ 58 callersFunctionuseKeybindings
( // Handler returning `false` means "not consumed" — the event propagates // to later useInput/useKeybind
src/keybindings/useKeybinding.ts:113
↓ 57 callersFunctiongetDesktopHost
()
desktop/src/lib/desktopHost/index.ts:25
↓ 56 callersMethodemit
(type: string | symbol, ...args: unknown[])
src/ink/events/emitter.ts:15
↓ 56 callersFunctionexpandPath
(path: string, baseDir?: string)
src/utils/path.ts:32
↓ 56 callersMethodsendMessage
* Send a user message to the remote session via HTTP POST
src/remote/RemoteSessionManager.ts:219
↓ 55 callersFunctionisFullscreenEnvEnabled
()
src/utils/fullscreen.ts:112
↓ 54 callersFunctiononComplete
(cliMsg: any)
src/server/ws/handler.ts:2093
↓ 52 callersFunctiongracefulShutdown
( exitCode = 0, reason: ExitReason = 'other', options?: { getAppState?: () => AppState setAppSta
src/utils/gracefulShutdown.ts:391
↓ 52 callersFunctionisAgentSwarmsEnabled
()
src/utils/agentSwarmsEnabled.ts:24
↓ 52 callersFunctionuseSetAppState
()
src/state/AppState.tsx:170
↓ 51 callersFunctionleaf
(P: ParseState, type: string, tok: Token)
src/utils/bash/bashParser.ts:702
↓ 51 callersFunctionrestoreLex
(L: Lexer, s: LexSave)
src/utils/bash/bashParser.ts:759
↓ 50 callersFunctionfetch
(req)
src/server/__tests__/conversations.test.ts:1648
↓ 49 callersMethodclose
* Clean up connections gracefully
src/cli/remoteIO.ts:247
↓ 49 callersFunctionerrorMessage
(err: ImportTokenError, codeUrl: string)
src/commands/remote-setup/remote-setup.tsx:62
↓ 49 callersFunctionextractTag
(html: string, tagName: string)
src/utils/messages.ts:645
↓ 49 callersMethodstop
Stop polling.
src/server/services/teamWatcher.ts:40
↓ 48 callersFunctionformatFileSize
(sizeInBytes: number)
src/utils/format.ts:9
↓ 48 callersMethodkill
()
src/utils/ShellCommand.ts:361
↓ 48 callersFunctiontruncateToWidth
(text: string, maxWidth: number)
src/utils/truncate.ts:63
↓ 47 callersFunctioncreateCommandContext
(options?: { chatId?: number userId?: number match?: string text?: string })
adapters/telegram/__tests__/commands.test.ts:15
↓ 47 callersFunctiongit
(cwd: string, ...args: string[])
src/server/__tests__/sessions.test.ts:47
↓ 47 callersFunctioninvoke
(channel: ElectronIpcChannel, payload?: unknown)
desktop/src/lib/desktopHost/electronHost.ts:40
↓ 47 callersFunctionregisterHandler
( channel: ElectronIpcChannel, handler: (event: Electron.IpcMainInvokeEvent, payload: unknown) => T | Prom
desktop/electron/main.ts:207
↓ 47 callersFunctionuseTheme
()
src/components/design-system/ThemeProvider.tsx:122
↓ 46 callersMethodmarkDirty
()
src/native-ts/yoga-layout/index.ts:577
↓ 46 callersMethodreadFile
* Reads a file with caching. Returns both content and encoding. * Cache key includes file path and modification time for automatic invalidation.
src/utils/fileReadCache.ts:22
↓ 46 callersFunctionregisterCleanup
(cleanupFn: () => Promise<void>)
src/utils/cleanupRegistry.ts:14
↓ 46 callersFunctionwrapMessagesInSystemReminder
( messages: UserMessage[], )
src/utils/messages.ts:3218
↓ 45 callersMethodenqueue
* Enqueue a patch to PUT /worker. Coalesces with any existing pending * patch. Fire-and-forget — callers don't need to await.
src/cli/transports/WorkerStateUploader.ts:43
↓ 45 callersFunctionisDefined
(n: number)
src/native-ts/yoga-layout/index.ts:108
↓ 45 callersFunctionmakeSession
( id: string, title: string, projectRoot: string, modifiedAt: string, )
desktop/src/components/layout/Sidebar.test.tsx:124
↓ 45 callersFunctionsanitizeToolNameForAnalytics
( toolName: string, )
src/services/analytics/metadata.ts:70
↓ 45 callersFunctionstr
(key: string)
adapters/feishu/index.ts:456
↓ 44 callersFunctionformatNumber
(number: number)
src/utils/format.ts:124
↓ 44 callersFunctiongetSecureStorage
()
src/utils/secureStorage/index.ts:9
↓ 44 callersFunctionisFastModeEnabled
()
src/utils/fastMode.ts:38
↓ 44 callersFunctionqueryCheckpoint
(name: string)
src/utils/queryProfiler.ts:69
↓ 43 callersFunctioncreateAssistantAPIErrorMessage
({ content, apiError, error, errorDetails, businessErrorCode, }: { content: string apiError?: As
src/utils/messages.ts:444
↓ 43 callersFunctionmakeAssistantEntry
( content: string, parentUuid?: string, usage?: { input_tokens?: number output_tokens?: number
src/server/__tests__/sessions.test.ts:228
↓ 43 callersFunctionnextToken
* Scan next token. Context-sensitive: `cmd` mode treats [ as operator (test * command start), `arg` mode treats [ as word char (glob/subscript).
src/utils/bash/bashParser.ts:302
↓ 43 callersFunctiontranslateCliMessage
(cliMsg: any, sessionId: string)
src/server/ws/handler.ts:1434
↓ 43 callersMethodwrite
(message: StdoutMessage)
src/cli/transports/SSETransport.ts:572
↓ 42 callersFunctioncliError
(msg?: string)
src/cli/exit.ts:19
↓ 42 callersFunctionfieldMatches
(field: string, value: number)
src/server/services/cronScheduler.ts:123
↓ 42 callersFunctiongracefulShutdownSync
( exitCode = 0, reason: ExitReason = 'other', options?: { getAppState?: () => AppState setAppSta
src/utils/gracefulShutdown.ts:336
↓ 42 callersFunctionsanitizePath
(name: string)
src/utils/cachePaths.ts:19
↓ 41 callersFunctionbuildTool
(def: D)
src/Tool.ts:783
↓ 41 callersFunctioncsi
(...args: (string | number)[])
src/ink/termio/csi.ts:45
↓ 41 callersFunctionmakeRequest
创建一个模拟 Request
src/server/__tests__/settings.test.ts:171
↓ 41 callersFunctionmkdirSync
(dirPath, options)
src/utils/fsOperations.ts:528
↓ 40 callersFunctiongetDisplayPath
(filePath: string)
src/utils/file.ts:155
↓ 40 callersFunctiononCancel
()
src/screens/REPL.tsx:2105
↓ 40 callersFunctionupdateTaskState
( taskId: string, setAppState: SetAppState, updater: (task: T) => T, )
src/utils/task/framework.ts:48
↓ 40 callersFunctionuseInput
(inputHandler: Handler, options: Options = {})
src/ink/hooks/use-input.ts:42
↓ 39 callersMethodcreateSession
* Create a new session file for the given working directory.
src/server/services/sessionService.ts:2561
↓ 39 callersFunctionescapeHtml
(s: string)
src/server/api/haha-oauth.ts:120
↓ 39 callersFunctionexistsSync
(fsPath)
src/utils/fsOperations.ts:389
↓ 39 callersFunctionlog
(message: string, ...args: unknown[])
src/utils/claudeInChrome/chromeNativeHost.ts:34
↓ 39 callersFunctionrmSync
(path, options)
src/utils/fsOperations.ts:569
↓ 38 callersFunctionapi
(method: string, path: string, body?: unknown)
src/server/__tests__/e2e/full-flow.test.ts:77
↓ 38 callersFunctiononStateChange
(state, detail)
src/cli/print.ts:3924
↓ 38 callersFunctionpathExists
(target: string)
src/utils/computerUse/pythonBridge.ts:45
↓ 38 callersMethodshift
* Shift full-width rows within [top, bottom] by n. n > 0 = up. Mirrors * what DECSTBM + SU/SD does to the terminal. Paired with blit() to reuse
src/ink/output.ts:219
↓ 37 callersMethoddestroy
Destroy all sessions.
adapters/common/ws-bridge.ts:146
↓ 37 callersFunctiongetModelStrings
()
src/utils/model/modelStrings.ts:136
↓ 37 callersFunctionmaybe
(label: string, f: () => Promise<A[]>)
src/utils/attachments.ts:1001
↓ 36 callersFunctiongetIsRemoteMode
()
src/bootstrap/state.ts:1655
↓ 36 callersFunctionparseUserSpecifiedModel
( modelInput: ModelName | ModelAlias, )
src/utils/model/model.ts:477
↓ 36 callersFunctionsendMessage
(ws: ServerWebSocket<WebSocketData>, message: ServerMessage)
src/server/ws/handler.ts:2022
↓ 36 callersMethodstopImmediatePropagation
()
src/ink/events/event.ts:8
↓ 36 callersFunctionunsupported
(feature: string)
desktop/src/lib/desktopHost/browserHost.ts:23
↓ 35 callersMethodcheckForUpdates
()
desktop/electron/services/updateSmoke.ts:52
↓ 35 callersMethodensureCreated
* 首次创建卡片(CardKit 主路径;失败则降级到直发 Schema 2.0 卡 + patch)。 * 幂等:已创建/正在创建时直接返回。
adapters/feishu/streaming-card.ts:189
↓ 35 callersFunctiongetProject
()
src/utils/sessionStorage.ts:443
↓ 35 callersFunctiongetSubscriptionType
()
src/utils/auth.ts:1686
↓ 35 callersFunctionroughTokenCountEstimation
( content: string, bytesPerToken: number = 4, )
src/services/tokenEstimation.ts:203
↓ 34 callersFunctionasSystemPrompt
(value: readonly string[])
src/utils/systemPromptType.ts:12
↓ 34 callersFunctiongetTeamName
(teamContext?: { teamName: string })
src/utils/teammate.ts:111
↓ 34 callersFunctionopt
(text: string, v?: number)
adapters/feishu/__tests__/markdown-style.test.ts:23
↓ 34 callersMethodread
()
src/utils/claudeInChrome/chromeNativeHost.ts:501
↓ 34 callersFunctionresetSettingsCache
()
src/utils/settings/settingsCache.ts:55
← previousnext →101–200 of 17,500, ranked by callers