MCPcopy Create free account

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

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

↓ 5 callersFunctionrenderModelLabel
(model: string | null)
src/commands/model/model.tsx:293
↓ 5 callersFunctionrenderNodeToOutput
( node: DOMElement, output: Output, { offsetX = 0, offsetY = 0, prevScreen, skipSelfBlit
src/ink/render-node-to-output.ts:387
↓ 5 callersMethodreportDelivery
* Report delivery status for a client-to-worker event. * POST /v1/code/sessions/{id}/worker/events/delivery (batch endpoint)
src/cli/transports/ccrClient.ts:964
↓ 5 callersFunctionreportPermissionWait
()
src/utils/swarm/inProcessRunner.ts:205
↓ 5 callersFunctionrequest
(method: string, path: string, body?: unknown, options?: { timeout?: number })
desktop/src/api/client.ts:71
↓ 5 callersFunctionrequestDesktopNotificationPermission
()
desktop/src/lib/desktopNotifications.ts:248
↓ 5 callersFunctionrequireH5Token
(req: Request, tokenOverride?: string | null)
src/server/middleware/auth.ts:77
↓ 5 callersMethodresetFramesForAltScreen
* Seed prev/back frames with full-size BLANK screens (rows×cols of empty * cells, not 0×0). In alt-screen mode, next.screen.height is always * t
src/ink/ink.tsx:989
↓ 5 callersFunctionresetMicrocompactState
()
src/services/compact/microCompact.ts:130
↓ 5 callersFunctionresetStateForTests
()
src/bootstrap/state.ts:919
↓ 5 callersFunctionresolveAgentTools
( agentDefinition: Pick< AgentDefinition, 'tools' | 'disallowedTools' | 'source' | 'permissionMode'
src/tools/AgentTool/agentToolUtils.ts:124
↓ 5 callersFunctionresolveAzureOpenAIDeployment
(model: string)
src/services/api/azureOpenAI.ts:104
↓ 5 callersFunctionresolveFilePath
(value: string, baseDir = '/')
desktop/src/lib/assistantOutputTargets.ts:677
↓ 5 callersMethodresolveSessionToolPath
( filePath: unknown, workspaceRoot: string, )
src/server/services/workspaceService.ts:996
↓ 5 callersFunctionresolveSessionWorkDir
(sessionId: string)
src/server/services/sessionRewindService.ts:252
↓ 5 callersFunctionresolveSideQueryThinkingConfig
( thinking: SideQueryOptions['thinking'], maxTokens: number, )
src/utils/sideQuery.ts:220
↓ 5 callersFunctionresolveTranscriptToolPath
( filePath: unknown, baseDir: string, )
src/server/services/sessionRewindService.ts:429
↓ 5 callersFunctionresolveValue
(value: string)
src/utils/plugins/mcpPluginIntegration.ts:475
↓ 5 callersFunctionresolveWorkspaceAttachmentPath
(workDir: string | undefined, filePath: string)
desktop/src/components/workspace/WorkspacePanel.tsx:160
↓ 5 callersMethodrespondToPermission
( sessionId: string, requestId: string, allowed: boolean, rule?: string, updatedInput?: Re
src/server/services/conversationService.ts:471
↓ 5 callersFunctionrestartRemoteServer
(options: { authRequired?: boolean } = {})
src/server/__tests__/h5-access-auth.test.ts:91
↓ 5 callersFunctionrestoreEnvVar
(name: string, value: string | undefined)
src/utils/__tests__/contextBudget.test.ts:11
↓ 5 callersFunctionrestoreSessionMetadata
(meta: { customTitle?: string tag?: string agentName?: string agentColor?: string agentSetting?: str
src/utils/sessionStorage.ts:2787
↓ 5 callersFunctionrunGitInfoCommand
(workDir: string, args: string[])
src/server/api/sessions.ts:745
↓ 5 callersFunctionrunH5Action
(action: () => Promise<void>)
desktop/src/pages/Settings.tsx:3375
↓ 5 callersFunctionrunMigrationStep
( report: DesktopMigrationReport, fallbackKey: string, step: () => void, )
desktop/src/lib/persistenceMigrations.ts:150
↓ 5 callersFunctionrunOne
( fileId: string, fileName?: string, mimeType?: string, )
adapters/telegram/index.ts:730
↓ 5 callersFunctionsafeRemoveOverlay
(overlayPath: string)
src/services/PromptSuggestion/speculation.ts:72
↓ 5 callersFunctionsanitizeName
* Sanitizes a name for use in file paths
src/utils/tasks.ts:717
↓ 5 callersFunctionsanitizePathComponent
(input: string)
src/utils/tasks.ts:217
↓ 5 callersMethodsanitizeValue
(value: unknown, depth = 0)
src/server/services/diagnosticsService.ts:298
↓ 5 callersMethodsearchWorkspace
使用 ripgrep 搜索工作目录
src/server/services/searchService.ts:87
↓ 5 callersFunctionseedDirFor
* If installLocation points into a configured seed directory, return that seed * directory. Seed-managed entries are admin-controlled — users can't
src/utils/plugins/marketplaceManager.ts:502
↓ 5 callersFunctionseedSecureStorage
(tokens: OpenAIOAuthTokens)
src/services/openaiAuth/storage.test.ts:67
↓ 5 callersFunctionselectSlashCommand
(command: string)
desktop/src/pages/EmptySession.tsx:563
↓ 5 callersFunctionsequential
( fn: (...args: T) => Promise<R>, )
src/utils/sequential.ts:19
↓ 5 callersFunctionsetAllowedChannels
(entries: ChannelEntry[])
src/bootstrap/state.ts:1704
↓ 5 callersFunctionsetBashPath
(path: string | null)
desktop/src/api/terminal.ts:61
↓ 5 callersMethodsetCurrentModel
(modelId: string)
adapters/common/http-client.ts:318
↓ 5 callersFunctionsetLastSummarizedMessageId
( messageId: string | undefined, )
src/services/SessionMemory/sessionMemoryUtils.ts:65
↓ 5 callersFunctionsetMainThreadAgentType
(agentType: string | undefined)
src/bootstrap/state.ts:1651
↓ 5 callersFunctionsetMcpServerEnabled
(name: string, enabled: boolean)
src/services/mcp/config.ts:1559
↓ 5 callersFunctionsetModel
(modelValue: string | null)
src/commands/model/model.tsx:198
↓ 5 callersFunctionsetNativeNotificationSenderForTests
(sender: NativeNotificationSender | null)
desktop/src/lib/desktopNotifications.ts:429
↓ 5 callersMethodsetOnClose
(callback: (closeCode?: number) => void)
src/cli/transports/SSETransport.ts:671
↓ 5 callersMethodsetOnData
(callback: (data: string) => void)
src/cli/transports/SSETransport.ts:667
↓ 5 callersFunctionsetPendingUpdate
(next: DesktopUpdate | null, proxyKey: string | null)
desktop/src/stores/updateStore.ts:94
↓ 5 callersFunctionsetSessionCache
(value: SettingsJson | null)
src/services/remoteManagedSettings/syncCacheState.ts:37
↓ 5 callersFunctionsetSessionIngressToken
(token: string | null)
src/bootstrap/state.ts:1162
↓ 5 callersFunctionsetSvgFallbackStyle
(element: Element, property: string, value: string)
desktop/src/components/chat/MermaidRenderer.tsx:269
↓ 5 callersFunctionsetThreadGoalHook
( context: Pick<ToolUseContext, 'setAppState'>, threadId: string, objective: string, now = Date.now(),
src/goals/goalState.ts:58
↓ 5 callersMethodsetWidth
(value: number)
src/ink/layout/yoga.ts:134
↓ 5 callersFunctionshouldDisableAllHooksIncludingManaged
()
src/utils/hooks/hooksConfigSnapshot.ts:83
↓ 5 callersFunctionshouldIgnoreLowTrustUsage
( args: ShouldIgnoreLowTrustUsageArgs, )
src/utils/contextBudget.ts:99
↓ 5 callersFunctionshouldProcessMockLimits
()
src/services/mockRateLimits.ts:713
↓ 5 callersFunctionshouldSendExplicitDisabledThinking
()
src/utils/thinking.ts:183
↓ 5 callersFunctionshouldShowAlwaysAllowOptions
()
src/utils/permissions/permissionsLoader.ts:42
↓ 5 callersFunctionshouldSkipHookDueToTrust
()
src/utils/hooks.ts:289
↓ 5 callersFunctionshouldSkipWebFetchPreflight
( settings: { skipWebFetchPreflight?: boolean } = getSettings_DEPRECATED(), )
src/tools/WebFetchTool/utils.ts:80
↓ 5 callersFunctionslugifyProviderName
(value: string)
scripts/quality-gate/providerTargets.ts:32
↓ 5 callersFunctionsortLogs
(logs: LogOption[])
src/types/logs.ts:319
↓ 5 callersFunctionsplitFiles
(output: string)
scripts/pr/changed-files.ts:25
↓ 5 callersFunctionsse
(frames: Array<{ event?: string; data: string }>)
desktop/src/lib/trace/sse.test.ts:4
↓ 5 callersMethodstart
* Starts listening on an OS-assigned port and returns the port number. * This avoids race conditions by keeping the server open until it's used.
src/services/oauth/auth-code-listener.ts:37
↓ 5 callersMethodstartOAuthFlow
( authURLHandler: (url: string, automaticUrl?: string) => Promise<void>, options?: { loginWithCl
src/services/oauth/index.ts:32
↓ 5 callersMethodstartPolling
* Begin polling the output file for progress. Called from React * useEffect when the progress component mounts.
src/utils/task/TaskOutput.ts:81
↓ 5 callersFunctionstartsWithApiErrorPrefix
(text: string)
src/services/api/errors.ts:57
↓ 5 callersFunctionstopCapturingEarlyInput
()
src/utils/earlyInput.ts:142
↓ 5 callersFunctionstopWorkWithRetry
* Retry stopWork with exponential backoff (3 attempts, 1s/2s/4s). * Ensures the server learns the work item ended, preventing server-side zombies.
src/bridge/bridgeMain.ts:1627
↓ 5 callersMethodstream
(card: DingTalkAiCardInstance, content: string, finished = false)
adapters/dingtalk/ai-card.ts:76
↓ 5 callersFunctionstripGeneratedImageMetadataLines
(text: string)
desktop/src/stores/chatStore.ts:2424
↓ 5 callersFunctionstripPromptXMLTags
(content: string)
src/utils/messages.ts:2878
↓ 5 callersFunctionsubprocessEnv
()
src/utils/subprocessEnv.ts:79
↓ 5 callersFunctionsuppressCompactWarning
()
src/services/compact/compactWarningState.ts:11
↓ 5 callersFunctionswitchToSkillsTab
()
desktop/src/__tests__/skillsSettings.test.tsx:61
↓ 5 callersFunctiontaskFixture
(overrides: Record<string, unknown>)
src/server/__tests__/tasks.test.ts:11
↓ 5 callersFunctionteleportToRemote
(options: { initialMessage: string | null; branchName?: string; title?: string; /** * The descripti
src/utils/teleport.tsx:730
↓ 5 callersFunctionthemeColorToAnsi
(themeColor: string)
src/utils/theme.ts:626
↓ 5 callersFunctiontokenize
( input: string, initialState: State, initialBuffer: string, flush: boolean, x10Mouse: boolean, )
src/ink/termio/tokenize.ts:99
↓ 5 callersFunctiontraceCallRequests
(fetchMock: ReturnType<typeof mockFetch>)
desktop/src/lib/trace/callCache.test.ts:42
↓ 5 callersFunctiontruncatePathMiddle
(path: string, maxLength: number)
src/utils/truncate.ts:16
↓ 5 callersFunctiontryPair
( messageText: string, senderInfo: { userId: string | number; displayName: string }, platform: ImPlatfor
adapters/common/pairing.ts:98
↓ 5 callersFunctionunlinkIfOld
( filePath: string, cutoffDate: Date, fsImpl: FsOperations, )
src/utils/cleanup.ts:134
↓ 5 callersMethodunmarkSessionDeleted
(sessionId: string)
src/server/services/conversationService.ts:877
↓ 5 callersFunctionupdateFileHistoryState
(updater: (prev: FileHistoryState) => FileHistoryState)
src/screens/REPL.tsx:2443
↓ 5 callersMethodupdateManagedSettings
(settings: Record<string, unknown>)
src/server/services/providerService.ts:183
↓ 5 callersMethodupdateProfileAvatar
(bytes: Uint8Array, contentType: string | null)
src/server/services/desktopUiPreferencesService.ts:300
↓ 5 callersFunctionupdateProgressFromMessage
(tracker: ProgressTracker, message: Message, resolveActivityDescription?: ActivityDescriptionResolver, tools?:
src/tasks/LocalAgentTask/LocalAgentTask.tsx:68
↓ 5 callersFunctionupdateSessionName
( name: string | undefined, )
src/utils/concurrentSessions.ts:131
↓ 5 callersFunctionupdateUsage
( usage: Readonly<NonNullableUsage>, partUsage: BetaMessageDeltaUsage | undefined, )
src/services/api/claude.ts:3160
↓ 5 callersFunctionupsertBackgroundAgentTask
( current: Record<string, BackgroundAgentTask>, event: Partial<BackgroundAgentTask> & Pick<BackgroundAgent
desktop/src/stores/chatStore.ts:2729
↓ 5 callersFunctionusage
()
scripts/quality-gate/package-smoke/index.ts:65
↓ 5 callersFunctionuseCommandQueue
()
src/hooks/useCommandQueue.ts:13
↓ 5 callersFunctionvalidateForceLoginOrg
()
src/utils/auth.ts:2018
↓ 5 callersFunctionvalidateUserConfig
( values: UserConfigValues, schema: UserConfigSchema, )
src/utils/plugins/mcpbHandler.ts:346
↓ 5 callersFunctionvalidateWorktreeSlug
(slug: string)
src/utils/worktree.ts:67
↓ 5 callersFunctionw1
(M,Q,Z)
desktop/src-tauri/resources/preview-agent.js:18
↓ 5 callersFunctionwithMockStreamDelay
( delayMs: number | undefined, callback: () => Promise<T>, )
src/server/__tests__/conversations.test.ts:1229
↓ 5 callersFunctionwithOAuthRetry
* Execute an OAuth-authenticated request with a single retry on 401. * On 401, attempts token refresh via handleOAuth401Error (same pattern as *
src/bridge/bridgeApi.ts:106
↓ 5 callersFunctionwithStreamIdleTimeout
( upstream: ReadableStream<Uint8Array>, timeoutMs: number, )
src/server/proxy/handler.ts:107
← previousnext →2,101–2,200 of 17,500, ranked by callers