MCPcopy Create free account

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

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

↓ 9 callersFunctionload
(silent: boolean)
desktop/src/pages/TraceSession.tsx:63
↓ 9 callersFunctionloadProviderIndex
(configDir?: string)
scripts/quality-gate/providerTargets.ts:130
↓ 9 callersFunctionmakeDeps
(overrides?: Partial<PreviewLinkDeps>)
desktop/src/lib/handlePreviewLink.test.ts:10
↓ 9 callersFunctionmaybeRedirect
( P: ParseState, node: TsNode, allowHerestring = false, )
src/utils/bash/bashParser.ts:1406
↓ 9 callersFunctionmcpInfoFromString
(toolString: string)
src/services/mcp/mcpStringUtils.ts:19
↓ 9 callersFunctionmcpToolDetailsForAnalytics
( toolName: string, mcpServerType: string | undefined, mcpServerBaseUrl: string | undefined, )
src/services/analytics/metadata.ts:141
↓ 9 callersFunctionmetric
(contentWeight: number)
desktop/src/components/chat/MessageList.test.tsx:4415
↓ 9 callersFunctionopen
(ws: ServerWebSocket<WebSocketData>)
src/server/ws/handler.ts:176
↓ 9 callersFunctionopenTargetError
(statusCode: number, message: string, code: string)
src/server/services/openTargetService.ts:234
↓ 9 callersFunctionparseCardApiError
(err: unknown)
adapters/feishu/card-errors.ts:98
↓ 9 callersFunctionparseDollarLike
(P: ParseState)
src/utils/bash/bashParser.ts:2429
↓ 9 callersFunctionparseDoubleQuoted
(P: ParseState)
src/utils/bash/bashParser.ts:2339
↓ 9 callersFunctionparseGoalCommand
(args: string)
src/goals/goalState.ts:35
↓ 9 callersFunctionparseH5FixedPort
(contents: string)
desktop/electron/services/sidecarManager.ts:110
↓ 9 callersFunctionparsePermitCallbackData
(data: string)
adapters/common/permission.ts:44
↓ 9 callersFunctionparseTraceResponseBody
(preview: string, source: 'anthropic' | 'proxy')
desktop/src/lib/trace/requestParse.ts:56
↓ 9 callersFunctionpathExists
(target: string)
src/server/api/computer-use.ts:73
↓ 9 callersFunctionpreviewScript
()
desktop/electron/services/preview.test.ts:69
↓ 9 callersFunctionquoteWithEvalStdinRedirect
* Quotes a command and adds `< /dev/null` as a shell redirect on eval, rather than * as an eval argument. This is critical for pipe commands where we
src/utils/bash/bashPipeCommand.ts:262
↓ 9 callersMethodreadPreferences
()
src/server/services/desktopUiPreferencesService.ts:233
↓ 9 callersFunctionrealpathSync
(path: string)
src/utils/fsOperations.ts:523
↓ 9 callersFunctionredactSecretsInText
(value: string)
src/services/api/traceCapture.ts:636
↓ 9 callersFunctionrejectOnce
(error: Error)
src/services/mcp/auth.ts:1036
↓ 9 callersFunctionremoveRemoteAgentMetadata
* Remove a remote-agent metadata entry from the session sidecar. * Called on task completion/kill so restored sessions don't resurrect * tasks that
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:105
↓ 9 callersFunctionresetTerminalShellEnvironmentCacheForTests
()
src/utils/terminalShellEnvironment.ts:192
↓ 9 callersFunctionresolvePromptCacheKey
( body: AnthropicRequest, headerSessionId?: string | null, )
src/server/proxy/promptCacheKey.ts:22
↓ 9 callersMethodrespondToPermissionRequest
* Respond to a permission request from CCR
src/remote/RemoteSessionManager.ts:247
↓ 9 callersFunctionrun
()
src/cli/print.ts:1871
↓ 9 callersFunctionrunAgent
({ agentDefinition, promptMessages, toolUseContext, canUseTool, isAsync, canShowPermissionPrompts,
src/tools/AgentTool/runAgent.ts:248
↓ 9 callersFunctionrunBrowserStep
( stage: DesktopSmokeStage, args: string[], options: Parameters<typeof runLoggedCommand>[1], context:
scripts/quality-gate/desktop-smoke/execute.ts:169
↓ 9 callersFunctionrunForkedAgent
({ promptMessages, cacheSafeParams, canUseTool, querySource, forkLabel, overrides, maxOutputToke
src/utils/forkedAgent.ts:504
↓ 9 callersFunctionrunGit
( cwd: string, args: string[], timeout = GIT_TIMEOUT_MS, )
src/server/services/repositoryLaunchService.ts:139
↓ 9 callersFunctionrunGoal
(args: string, context: Partial<LocalJSXCommandContext> = {})
src/commands/goal/goal.test.tsx:12
↓ 9 callersFunctionsaveKnownMarketplacesConfig
( config: KnownMarketplacesConfig, )
src/utils/plugins/marketplaceManager.ts:333
↓ 9 callersMethodsendRequest
( request: SDKControlRequest['request'], schema: z.Schema, signal?: AbortSignal, requestId: st
src/cli/structuredIO.ts:473
↓ 9 callersFunctionsetDraftField
(key: K, value: McpDraft[K])
desktop/src/pages/McpSettings.tsx:766
↓ 9 callersFunctionsetupWorkspace
()
src/server/api/__tests__/previewFs.test.ts:33
↓ 9 callersFunctionsideQuery
(opts: SideQueryOptions)
src/utils/sideQuery.ts:110
↓ 9 callersFunctionskipNewlines
(P: ParseState)
src/utils/bash/bashParser.ts:921
↓ 9 callersMethodstop
(chatId: string)
adapters/wechat/typing.ts:27
↓ 9 callersFunctionthinking
(s: string)
tests/reorderAssistantToolUseBlocks.test.ts:19
↓ 9 callersFunctiontoComparable
(p: string)
src/utils/memoryFileDetection.ts:31
↓ 9 callersFunctiontoInkColor
(color: string | undefined)
src/utils/ink.ts:15
↓ 9 callersFunctiontranslateSelectionForJump
(s: ScrollBoxHandle, delta: number)
src/components/ScrollKeybindingHandler.tsx:413
↓ 9 callersFunctiontryRmdir
(dirPath: string, fsImpl: FsOperations)
src/utils/cleanup.ts:147
↓ 9 callersFunctionupdateState
(newState: VoiceState)
src/hooks/useVoice.ts:275
↓ 9 callersFunctionuseMainLoopModel
()
src/hooks/useMainLoopModel.ts:13
↓ 9 callersFunctionuseMobileViewport
()
desktop/src/hooks/useMobileViewport.ts:10
↓ 9 callersFunctionuseVoiceState
(selector)
src/context/voice.tsx:55
↓ 9 callersFunctionwalkArgument
* Convert an argument node to its literal string value. Quotes are resolved. * This function implements the argument-position allowlist.
src/utils/bash/ast.ts:1399
↓ 9 callersFunctionwindowsPowerShellOverride
( shellPath: string | null | undefined, platform: NodeJS.Platform = process.platform, )
desktop/electron/services/sidecarManager.ts:296
↓ 9 callersMethodwriteBatch
(messages: StdoutMessage[])
src/cli/transports/HybridTransport.ts:135
↓ 8 callersFunctionS0
(M,Q)
desktop/src-tauri/resources/preview-agent.js:18
↓ 8 callersFunctionaddMcpConfig
( name: string, config: unknown, scope: ConfigScope, )
src/services/mcp/config.ts:635
↓ 8 callersFunctionaddToken
(result: string, token: string, noSpace = false)
src/utils/bash/commands.ts:1190
↓ 8 callersFunctionaggregateClaudeCodeStatsForRange
( range: StatsDateRange, )
src/utils/stats.ts:826
↓ 8 callersFunctionallWorkingDirectories
( context: ToolPermissionContext, )
src/utils/permissions/filesystem.ts:682
↓ 8 callersMethodappendEntry
(entry: Entry, sessionId: UUID = getSessionId() as UUID)
src/utils/sessionStorage.ts:1157
↓ 8 callersFunctionapplyPermissionUpdates
( context: ToolPermissionContext, updates: PermissionUpdate[], )
src/utils/permissions/PermissionUpdate.ts:196
↓ 8 callersFunctionassistantEntry
( uuid: string, timestamp: string, usage: { input_tokens?: number output_tokens?: number cac
src/utils/__tests__/stats.test.ts:35
↓ 8 callersFunctionbaseRequest
(metadata?: AnthropicRequest['metadata'])
src/server/__tests__/proxy-transform.test.ts:756
↓ 8 callersFunctionblockedConstraintMatches
* Check if a blocked ref/path constraint matches a source. * If the blocklist entry has no ref/path, it matches ALL refs/paths (wildcard). * If the
src/utils/plugins/marketplaceHelpers.ts:371
↓ 8 callersFunctionbucket
(min: number, max?: number)
src/components/Stats.tsx:396
↓ 8 callersFunctionbuildPendingClassifierCheck
* Builds the pending classifier check metadata if classifier is enabled and has allow descriptions. * Returns undefined if classifier is disabled, in
src/tools/BashTool/bashPermissions.ts:1459
↓ 8 callersFunctioncalculateUSDCost
(resolvedModel: string, usage: Usage)
src/utils/modelCost.ts:177
↓ 8 callersFunctioncellAtCI
* Write cell data into an existing Cell object to avoid allocation. * Caller must ensure index is valid.
src/ink/screen.ts:656
↓ 8 callersFunctionchunk
(payload: Record<string, unknown>)
desktop/src/lib/trace/sse.test.ts:131
↓ 8 callersFunctionclampNumber
(value: number, min: number, max: number)
desktop/src/components/chat/MessageList.tsx:1038
↓ 8 callersFunctionclassifyFetchError
(error: unknown)
src/utils/plugins/fetchTelemetry.ts:108
↓ 8 callersFunctionclearCapabilityCache
()
src/utils/__tests__/thinking.test.ts:149
↓ 8 callersFunctionclearMarketplacesCache
()
src/utils/plugins/marketplaceManager.ts:128
↓ 8 callersMethodcomplete
Immediately flush all remaining content (called on message_complete).
adapters/common/message-buffer.ts:37
↓ 8 callersFunctioncopyTextToClipboard
(text: string)
desktop/src/components/chat/clipboard.ts:1
↓ 8 callersFunctioncorsRejectedResponse
(cors: CorsResolution)
src/server/index.ts:72
↓ 8 callersFunctioncreateKeyValueRow
(key = '', value = '')
desktop/src/pages/McpSettings.tsx:138
↓ 8 callersMethodcreateSession
()
src/utils/terminalPanel.ts:83
↓ 8 callersFunctioncwd
()
src/utils/fsOperations.ts:385
↓ 8 callersFunctiondeferred
()
desktop/src/components/workspace/WorkspacePanel.test.tsx:47
↓ 8 callersMethoddesanitizePath
* Convert a sanitized directory name back to the original absolute path. * Reverses sanitizePath(): `-Users-nanmi-workspace` → `/Users/nanmi/worksp
src/server/services/sessionService.ts:1525
↓ 8 callersFunctiondetectPlatform
()
desktop/src/lib/desktopNotifications.ts:48
↓ 8 callersFunctionenterTeammateView
( taskId: string, setAppState: (updater: (prev: AppState) => AppState) => void, )
src/state/teammateViewHelpers.ts:46
↓ 8 callersFunctionexecSyncWithDefaults_DEPRECATED
( command: string, optionsOrAbortSignal?: ExecSyncOptions | AbortSignal, timeout = 10 * SECONDS_IN_MINUT
src/utils/execFileNoThrowPortable.ts:41
↓ 8 callersFunctionfakeTool
({ permissionDecision, requiresUserInteraction = false, }: { permissionDecision: PermissionDecision | {
src/utils/permissions/permissions.test.ts:36
↓ 8 callersFunctionfilterSettingsEnv
* Compose the strip filters applied to every settings-sourced env object.
src/utils/managedEnv.ts:93
↓ 8 callersFunctionflushSessionStorage
()
src/utils/sessionStorage.ts:1612
↓ 8 callersFunctionformatAgentId
(agentName: string, teamName: string)
src/utils/agentId.ts:38
↓ 8 callersMethodformatFsError
( prefix: string, targetPath: string, error: unknown, )
src/server/services/workspaceService.ts:1727
↓ 8 callersFunctionformatNum
(n: number)
src/utils/mcp/elicitationValidation.ts:187
↓ 8 callersFunctionformatNumber
(value: number | undefined)
desktop/src/components/chat/ContextUsageIndicator.tsx:31
↓ 8 callersFunctiongenerateTitle
( conversationText: string, providerId?: string | null, languagePreference?: TitleLanguagePreference | n
src/server/services/titleService.ts:155
↓ 8 callersFunctiongetAdditionalDirectoriesForClaudeMd
()
src/bootstrap/state.ts:1690
↓ 8 callersFunctiongetAttributionRepoRoot
()
src/utils/commitAttribution.ts:83
↓ 8 callersFunctiongetBaseUrl
()
desktop/src/api/client.ts:31
↓ 8 callersFunctiongetConfiguredApiKeyHelper
()
src/utils/auth.ts:357
↓ 8 callersFunctiongetConnectedIdeClient
( mcpClients?: MCPServerConnection[], )
src/utils/ide.ts:1251
↓ 8 callersFunctiongetCutoffDate
()
src/utils/cleanup.ts:25
↓ 8 callersFunctiongetDynamicConfig_CACHED_MAY_BE_STALE
( configName: string, defaultValue: T, )
src/services/analytics/growthbook.ts:1152
↓ 8 callersFunctiongetFastModeState
( model: ModelSetting, fastModeUserEnabled: boolean | undefined, )
src/utils/fastMode.ts:319
↓ 8 callersFunctiongetHooksConfigFromSnapshot
()
src/utils/hooks/hooksConfigSnapshot.ts:119
↓ 8 callersMethodgetLastSequenceNum
* High-water mark of sequence numbers seen on this stream. Callers that * recreate the transport (e.g. replBridge onWorkReceived) read this before
src/cli/transports/SSETransport.ts:227
← previousnext →1,001–1,100 of 17,500, ranked by callers