MCPcopy Index your code

hub / github.com/dulikaifazr/Cougar-CLI / functions

Functions1,377 in github.com/dulikaifazr/Cougar-CLI

↓ 138 callersFunctiongetTheme
(overrideTheme?: ThemeNames)
src/utils/theme.ts:115
↓ 91 callersFunctiongetCwd
()
src/utils/state.ts:27
↓ 73 callersFunctionlogError
(error: unknown)
src/utils/log.ts:93
↓ 65 callersFunctiongetGlobalConfig
()
src/utils/config.ts:284
↓ 34 callersFunctiononDone
()
src/components/ModelSelector.tsx:175
↓ 34 callersMethodset
(url: string, content: string)
src/tools/URLFetcherTool/cache.ts:10
↓ 33 callersMethodget
(url: string)
src/tools/URLFetcherTool/cache.ts:17
↓ 33 callersFunctiongetModelManager
()
src/utils/model.ts:873
↓ 29 callersFunctionnavigateTo
( screen: | 'provider' | 'partnerProviders' | 'partnerCodingPlans' | 'apiKey'
src/components/ModelSelector.tsx:209
↓ 28 callersFunctiongetCurrentProjectConfig
()
src/utils/config.ts:438
↓ 27 callersFunctioncreateUserMessage
( content: string | ContentBlockParam[], toolUseResult?: FullToolUseResult, )
src/utils/messages.tsx:158
↓ 27 callersFunctionsaveGlobalConfig
(config: GlobalConfig)
src/utils/config.ts:264
↓ 24 callersMethodclear
()
src/tools/URLFetcherTool/cache.ts:32
↓ 23 callersFunctionfetch
( cache: LRUCache<K, V>, key: K, value: () => V, )
src/utils/file.ts:182
↓ 22 callersFunctioncreateAssistantMessage
(content: string)
src/utils/messages.tsx:128
↓ 20 callersFunctionexecFileNoThrow
( file: string, args: string[], abortSignal?: AbortSignal, timeout = 10 * SECONDS_IN_MINUTE * MS_IN_SE
src/utils/execFileNoThrow.ts:11
↓ 19 callersMethoduserFacingName
User-facing name function
src/services/customCommands.ts:195
↓ 16 callersFunctionemitReminderEvent
(event: string, context: any)
src/services/systemReminder.ts:485
↓ 16 callersFunctiongetCurrentRequest
()
src/utils/debugLogger.ts:423
↓ 16 callersFunctionsaveCurrentProjectConfig
(projectConfig: ProjectConfig)
src/utils/config.ts:461
↓ 15 callersMethodgetModel
* Get model by pointer type (main, task, reasoning, quick)
src/utils/model.ts:482
↓ 15 callersFunctionlogUnaryEvent
(event: LogEvent)
src/utils/unaryLogging.ts:17
↓ 14 callersMethodaddEventListener
( event: string, callback: (context: any) => void, )
src/services/systemReminder.ts:405
↓ 14 callersMethodgetModelName
* Get model name by pointer type
src/utils/model.ts:495
↓ 14 callersFunctiongetTodos
(agentId?: string)
src/utils/todoStorage.ts:97
↓ 14 callersFunctionupdateMetrics
(operation: string, cacheHit: boolean = false)
src/utils/todoStorage.ts:61
↓ 13 callersMethodfindModelProfile
(modelName: string)
src/utils/model.ts:847
↓ 13 callersMethodmatch
* Calculate fuzzy match score for a candidate against a query
src/utils/fuzzyMatcher.ts:69
↓ 13 callersFunctionsetup
(cwd: string, safeMode?: boolean)
src/entrypoints/cli.tsx:179
↓ 13 callersFunctionuseExitOnCtrlCD
(onExit: () => void)
src/hooks/useExitOnCtrlCD.ts:10
↓ 13 callersFunctionuseTerminalSize
()
src/hooks/useTerminalSize.ts:20
↓ 12 callersFunctiondetectFileEncoding
(filePath: string)
src/utils/file.ts:203
↓ 12 callersFunctionisDebugMode
()
src/utils/debugLogger.ts:25
↓ 11 callersFunctionclearTerminal
()
src/utils/terminal.ts:44
↓ 11 callersFunctiongetOriginalCwd
()
src/utils/state.ts:23
↓ 11 callersFunctiononChange
(theme: string)
src/components/Config.tsx:73
↓ 10 callersFunctionextractTag
(html: string, tagName: string)
src/utils/messages.tsx:564
↓ 9 callersFunctionaddMcpServer
( name: McpName, server: McpServerConfig, scope: ConfigScope = 'project', )
src/services/mcpClient.ts:82
↓ 9 callersFunctionfetchCustomModels
( baseURL: string, apiKey: string, )
src/services/openai.ts:1146
↓ 9 callersFunctionnormalizeMessages
(messages: Message[])
src/utils/messages.tsx:671
↓ 8 callersMethodclose
()
src/utils/PersistentShell.ts:553
↓ 8 callersFunctiondebugLog
( level: LogLevel, phase: string, data: any, requestId?: string, )
src/utils/debugLogger.ts:324
↓ 8 callersMethodexec
( command: string, abortSignal?: AbortSignal, timeout?: number, )
src/utils/PersistentShell.ts:372
↓ 8 callersFunctiongetSessionState
(key?: K)
src/utils/sessionState.ts:35
↓ 8 callersMethodleft
()
src/utils/Cursor.ts:53
↓ 8 callersFunctionquoteForBash
(str: string)
src/utils/PersistentShell.ts:45
↓ 8 callersFunctiontoAbsolutePath
(path: string)
src/utils/permissions/filesystem.ts:14
↓ 7 callersFunctionaddToHistory
(command: string)
src/history.ts:12
↓ 7 callersFunctionclearAgentCache
()
src/utils/agentLoader.ts:203
↓ 7 callersFunctioncountTokens
(messages: Message[])
src/utils/tokens.ts:4
↓ 7 callersFunctionf
()
src/cost-tracker.ts:52
↓ 7 callersFunctiongetProviderLabel
(provider: string, modelCount: number)
src/components/ModelSelector.tsx:536
↓ 7 callersFunctionmaybeClearImagePasteErrorTimeout
()
src/hooks/useTextInput.ts:79
↓ 7 callersMethodmodifyText
(end: Cursor, insertString: string = '')
src/utils/Cursor.ts:138
↓ 7 callersFunctionsafeParseJSON
(json: string | null | undefined)
src/utils/json.ts:3
↓ 7 callersFunctionsetTodos
(todos: TodoItem[], agentId?: string)
src/utils/todoStorage.ts:131
↓ 7 callersMethodvalidateFilePath
* 验证文件路径是否安全 * @param filePath 文件路径 * @returns 验证结果
src/utils/secureFile.ts:50
↓ 6 callersMethodcreateReminderMessage
( type: string, category: ReminderMessage['category'], priority: ReminderMessage['priority'],
src/services/systemReminder.ts:286
↓ 6 callersFunctionensureConfigScope
(scope?: string)
src/services/mcpClient.ts:67
↓ 6 callersMethodequals
(other: Cursor)
src/utils/Cursor.ts:219
↓ 6 callersFunctionformatByteCount
(bytes: number)
src/commands/ctx_viz.ts:83
↓ 6 callersFunctionformatTokenCount
(bytes: number)
src/commands/ctx_viz.ts:77
↓ 6 callersMethodgetAvailableModels
* Get all active models for pointer assignment
src/utils/model.ts:599
↓ 6 callersFunctiongetConfig
( file: string, defaultConfig: A, throwOnInvalid?: boolean, )
src/utils/config.ts:351
↓ 6 callersFunctiongetPatch
({ filePath, fileContents, oldStr, newStr, }: { filePath: string fileContents: string oldStr: st
src/utils/diff.ts:11
↓ 6 callersFunctionhandleSelect
()
src/commands/agents.tsx:1958
↓ 6 callersFunctionisDebugVerboseMode
()
src/utils/debugLogger.ts:28
↓ 6 callersMethodisOverWordChar
()
src/utils/Cursor.ts:214
↓ 6 callersFunctionquestion
(query: string)
src/entrypoints/cli.tsx:612
↓ 6 callersFunctionrenderAgent
(agent: AgentConfig, isBuiltIn = false)
src/commands/agents.tsx:1362
↓ 6 callersFunctionresolveAgentId
(agentId?: string)
src/utils/agentStorage.ts:88
↓ 6 callersMethodright
()
src/utils/Cursor.ts:57
↓ 6 callersFunctionsetMessages
()
src/messages.ts:5
↓ 5 callersMethodanalyzeContextCompatibility
* Enhanced context validation with different severity levels
src/utils/model.ts:345
↓ 5 callersMethodbackspace
()
src/utils/Cursor.ts:166
↓ 5 callersFunctioncreateAssistantAPIErrorMessage
( content: string, )
src/utils/messages.tsx:138
↓ 5 callersFunctioncreateImageResponse
( buffer: Buffer, ext: string, )
src/tools/FileReadTool/FileReadTool.tsx:293
↓ 5 callersFunctiondetectLineEndings
(filePath: string)
src/utils/file.ts:247
↓ 5 callersMethodendOfLine
()
src/utils/Cursor.ts:93
↓ 5 callersFunctiongetCustomCommandDirectories
()
src/services/customCommands.ts:663
↓ 5 callersMethodgetInstance
()
src/utils/secureFile.ts:38
↓ 5 callersMethodgetMainAgentModel
* Get the main agent default model (for non-terminal mode and MCP calls)
src/utils/model.ts:108
↓ 5 callersFunctiongetMessagesPath
( messageLogName: string, forkNumber: number, sidechainNumber: number, )
src/utils/log.ts:80
↓ 5 callersFunctiongetPercentage
(n: number)
src/commands/ctx_viz.ts:110
↓ 5 callersFunctiongetPermissionKey
( tool: Tool, input: { [k: string]: unknown }, prefix: string | null, )
src/permissions.ts:254
↓ 5 callersMethodgetPosition
()
src/utils/Cursor.ts:240
↓ 5 callersFunctiongracefulExit
(code = 0)
src/entrypoints/cli.tsx:1479
↓ 5 callersFunctionhandleSave
()
src/commands/agents.tsx:2717
↓ 5 callersFunctionhasReadPermission
(directory: string)
src/utils/permissions/filesystem.ts:53
↓ 5 callersMethodinsert
(insertString: string)
src/utils/Cursor.ts:154
↓ 5 callersFunctionintersperse
(as: A[], separator: (index: number) => A)
src/utils/array.ts:1
↓ 5 callersFunctionisCommandAvailable
(command: string)
src/utils/externalEditor.ts:15
↓ 5 callersFunctionisSubpath
(base: string, target: string)
src/utils/permissions/filesystem.ts:26
↓ 5 callersFunctionlogMCPError
(serverName: string, error: unknown)
src/utils/log.ts:390
↓ 5 callersFunctionquery
( messages: Message[], systemPrompt: string[], context: { [k: string]: string }, canUseTool: CanUseToo
src/query.ts:161
↓ 5 callersFunctionqueryLLM
( messages: (UserMessage | AssistantMessage)[], systemPrompt: string[], maxThinkingTokens: number, too
src/services/claude.ts:1169
↓ 5 callersFunctionqueryQuick
({ systemPrompt = [], userPrompt, assistantPrompt, enablePromptCaching = false, signal, }: { syste
src/services/claude.ts:2341
↓ 5 callersFunctionrecordFileEdit
(filePath: string, content?: string)
src/services/fileFreshness.ts:361
↓ 5 callersFunctionresolveWithCancelledAndAbortAllToolCalls
()
src/hooks/useCanUseTool.ts:29
↓ 5 callersFunctionsavePermission
( tool: Tool, input: { [k: string]: unknown }, prefix: string | null, )
src/permissions.ts:225
next →1–100 of 1,377, ranked by callers