Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dulikaifazr/Cougar-CLI
/ functions
Functions
1,377 in github.com/dulikaifazr/Cougar-CLI
⨍
Functions
1,377
◇
Types & classes
170
↓ 138 callers
Function
getTheme
(overrideTheme?: ThemeNames)
src/utils/theme.ts:115
↓ 91 callers
Function
getCwd
()
src/utils/state.ts:27
↓ 73 callers
Function
logError
(error: unknown)
src/utils/log.ts:93
↓ 65 callers
Function
getGlobalConfig
()
src/utils/config.ts:284
↓ 34 callers
Function
onDone
()
src/components/ModelSelector.tsx:175
↓ 34 callers
Method
set
(url: string, content: string)
src/tools/URLFetcherTool/cache.ts:10
↓ 33 callers
Method
get
(url: string)
src/tools/URLFetcherTool/cache.ts:17
↓ 33 callers
Function
getModelManager
()
src/utils/model.ts:873
↓ 29 callers
Function
navigateTo
( screen: | 'provider' | 'partnerProviders' | 'partnerCodingPlans' | 'apiKey'
src/components/ModelSelector.tsx:209
↓ 28 callers
Function
getCurrentProjectConfig
()
src/utils/config.ts:438
↓ 27 callers
Function
createUserMessage
( content: string | ContentBlockParam[], toolUseResult?: FullToolUseResult, )
src/utils/messages.tsx:158
↓ 27 callers
Function
saveGlobalConfig
(config: GlobalConfig)
src/utils/config.ts:264
↓ 24 callers
Method
clear
()
src/tools/URLFetcherTool/cache.ts:32
↓ 23 callers
Function
fetch
( cache: LRUCache<K, V>, key: K, value: () => V, )
src/utils/file.ts:182
↓ 22 callers
Function
createAssistantMessage
(content: string)
src/utils/messages.tsx:128
↓ 20 callers
Function
execFileNoThrow
( file: string, args: string[], abortSignal?: AbortSignal, timeout = 10 * SECONDS_IN_MINUTE * MS_IN_SE
src/utils/execFileNoThrow.ts:11
↓ 19 callers
Method
userFacingName
User-facing name function
src/services/customCommands.ts:195
↓ 16 callers
Function
emitReminderEvent
(event: string, context: any)
src/services/systemReminder.ts:485
↓ 16 callers
Function
getCurrentRequest
()
src/utils/debugLogger.ts:423
↓ 16 callers
Function
saveCurrentProjectConfig
(projectConfig: ProjectConfig)
src/utils/config.ts:461
↓ 15 callers
Method
getModel
* Get model by pointer type (main, task, reasoning, quick)
src/utils/model.ts:482
↓ 15 callers
Function
logUnaryEvent
(event: LogEvent)
src/utils/unaryLogging.ts:17
↓ 14 callers
Method
addEventListener
( event: string, callback: (context: any) => void, )
src/services/systemReminder.ts:405
↓ 14 callers
Method
getModelName
* Get model name by pointer type
src/utils/model.ts:495
↓ 14 callers
Function
getTodos
(agentId?: string)
src/utils/todoStorage.ts:97
↓ 14 callers
Function
updateMetrics
(operation: string, cacheHit: boolean = false)
src/utils/todoStorage.ts:61
↓ 13 callers
Method
findModelProfile
(modelName: string)
src/utils/model.ts:847
↓ 13 callers
Method
match
* Calculate fuzzy match score for a candidate against a query
src/utils/fuzzyMatcher.ts:69
↓ 13 callers
Function
setup
(cwd: string, safeMode?: boolean)
src/entrypoints/cli.tsx:179
↓ 13 callers
Function
useExitOnCtrlCD
(onExit: () => void)
src/hooks/useExitOnCtrlCD.ts:10
↓ 13 callers
Function
useTerminalSize
()
src/hooks/useTerminalSize.ts:20
↓ 12 callers
Function
detectFileEncoding
(filePath: string)
src/utils/file.ts:203
↓ 12 callers
Function
isDebugMode
()
src/utils/debugLogger.ts:25
↓ 11 callers
Function
clearTerminal
()
src/utils/terminal.ts:44
↓ 11 callers
Function
getOriginalCwd
()
src/utils/state.ts:23
↓ 11 callers
Function
onChange
(theme: string)
src/components/Config.tsx:73
↓ 10 callers
Function
extractTag
(html: string, tagName: string)
src/utils/messages.tsx:564
↓ 9 callers
Function
addMcpServer
( name: McpName, server: McpServerConfig, scope: ConfigScope = 'project', )
src/services/mcpClient.ts:82
↓ 9 callers
Function
fetchCustomModels
( baseURL: string, apiKey: string, )
src/services/openai.ts:1146
↓ 9 callers
Function
normalizeMessages
(messages: Message[])
src/utils/messages.tsx:671
↓ 8 callers
Method
close
()
src/utils/PersistentShell.ts:553
↓ 8 callers
Function
debugLog
( level: LogLevel, phase: string, data: any, requestId?: string, )
src/utils/debugLogger.ts:324
↓ 8 callers
Method
exec
( command: string, abortSignal?: AbortSignal, timeout?: number, )
src/utils/PersistentShell.ts:372
↓ 8 callers
Function
getSessionState
(key?: K)
src/utils/sessionState.ts:35
↓ 8 callers
Method
left
()
src/utils/Cursor.ts:53
↓ 8 callers
Function
quoteForBash
(str: string)
src/utils/PersistentShell.ts:45
↓ 8 callers
Function
toAbsolutePath
(path: string)
src/utils/permissions/filesystem.ts:14
↓ 7 callers
Function
addToHistory
(command: string)
src/history.ts:12
↓ 7 callers
Function
clearAgentCache
()
src/utils/agentLoader.ts:203
↓ 7 callers
Function
countTokens
(messages: Message[])
src/utils/tokens.ts:4
↓ 7 callers
Function
f
()
src/cost-tracker.ts:52
↓ 7 callers
Function
getProviderLabel
(provider: string, modelCount: number)
src/components/ModelSelector.tsx:536
↓ 7 callers
Function
maybeClearImagePasteErrorTimeout
()
src/hooks/useTextInput.ts:79
↓ 7 callers
Method
modifyText
(end: Cursor, insertString: string = '')
src/utils/Cursor.ts:138
↓ 7 callers
Function
safeParseJSON
(json: string | null | undefined)
src/utils/json.ts:3
↓ 7 callers
Function
setTodos
(todos: TodoItem[], agentId?: string)
src/utils/todoStorage.ts:131
↓ 7 callers
Method
validateFilePath
* 验证文件路径是否安全 * @param filePath 文件路径 * @returns 验证结果
src/utils/secureFile.ts:50
↓ 6 callers
Method
createReminderMessage
( type: string, category: ReminderMessage['category'], priority: ReminderMessage['priority'],
src/services/systemReminder.ts:286
↓ 6 callers
Function
ensureConfigScope
(scope?: string)
src/services/mcpClient.ts:67
↓ 6 callers
Method
equals
(other: Cursor)
src/utils/Cursor.ts:219
↓ 6 callers
Function
formatByteCount
(bytes: number)
src/commands/ctx_viz.ts:83
↓ 6 callers
Function
formatTokenCount
(bytes: number)
src/commands/ctx_viz.ts:77
↓ 6 callers
Method
getAvailableModels
* Get all active models for pointer assignment
src/utils/model.ts:599
↓ 6 callers
Function
getConfig
( file: string, defaultConfig: A, throwOnInvalid?: boolean, )
src/utils/config.ts:351
↓ 6 callers
Function
getPatch
({ filePath, fileContents, oldStr, newStr, }: { filePath: string fileContents: string oldStr: st
src/utils/diff.ts:11
↓ 6 callers
Function
handleSelect
()
src/commands/agents.tsx:1958
↓ 6 callers
Function
isDebugVerboseMode
()
src/utils/debugLogger.ts:28
↓ 6 callers
Method
isOverWordChar
()
src/utils/Cursor.ts:214
↓ 6 callers
Function
question
(query: string)
src/entrypoints/cli.tsx:612
↓ 6 callers
Function
renderAgent
(agent: AgentConfig, isBuiltIn = false)
src/commands/agents.tsx:1362
↓ 6 callers
Function
resolveAgentId
(agentId?: string)
src/utils/agentStorage.ts:88
↓ 6 callers
Method
right
()
src/utils/Cursor.ts:57
↓ 6 callers
Function
setMessages
()
src/messages.ts:5
↓ 5 callers
Method
analyzeContextCompatibility
* Enhanced context validation with different severity levels
src/utils/model.ts:345
↓ 5 callers
Method
backspace
()
src/utils/Cursor.ts:166
↓ 5 callers
Function
createAssistantAPIErrorMessage
( content: string, )
src/utils/messages.tsx:138
↓ 5 callers
Function
createImageResponse
( buffer: Buffer, ext: string, )
src/tools/FileReadTool/FileReadTool.tsx:293
↓ 5 callers
Function
detectLineEndings
(filePath: string)
src/utils/file.ts:247
↓ 5 callers
Method
endOfLine
()
src/utils/Cursor.ts:93
↓ 5 callers
Function
getCustomCommandDirectories
()
src/services/customCommands.ts:663
↓ 5 callers
Method
getInstance
()
src/utils/secureFile.ts:38
↓ 5 callers
Method
getMainAgentModel
* Get the main agent default model (for non-terminal mode and MCP calls)
src/utils/model.ts:108
↓ 5 callers
Function
getMessagesPath
( messageLogName: string, forkNumber: number, sidechainNumber: number, )
src/utils/log.ts:80
↓ 5 callers
Function
getPercentage
(n: number)
src/commands/ctx_viz.ts:110
↓ 5 callers
Function
getPermissionKey
( tool: Tool, input: { [k: string]: unknown }, prefix: string | null, )
src/permissions.ts:254
↓ 5 callers
Method
getPosition
()
src/utils/Cursor.ts:240
↓ 5 callers
Function
gracefulExit
(code = 0)
src/entrypoints/cli.tsx:1479
↓ 5 callers
Function
handleSave
()
src/commands/agents.tsx:2717
↓ 5 callers
Function
hasReadPermission
(directory: string)
src/utils/permissions/filesystem.ts:53
↓ 5 callers
Method
insert
(insertString: string)
src/utils/Cursor.ts:154
↓ 5 callers
Function
intersperse
(as: A[], separator: (index: number) => A)
src/utils/array.ts:1
↓ 5 callers
Function
isCommandAvailable
(command: string)
src/utils/externalEditor.ts:15
↓ 5 callers
Function
isSubpath
(base: string, target: string)
src/utils/permissions/filesystem.ts:26
↓ 5 callers
Function
logMCPError
(serverName: string, error: unknown)
src/utils/log.ts:390
↓ 5 callers
Function
query
( messages: Message[], systemPrompt: string[], context: { [k: string]: string }, canUseTool: CanUseToo
src/query.ts:161
↓ 5 callers
Function
queryLLM
( messages: (UserMessage | AssistantMessage)[], systemPrompt: string[], maxThinkingTokens: number, too
src/services/claude.ts:1169
↓ 5 callers
Function
queryQuick
({ systemPrompt = [], userPrompt, assistantPrompt, enablePromptCaching = false, signal, }: { syste
src/services/claude.ts:2341
↓ 5 callers
Function
recordFileEdit
(filePath: string, content?: string)
src/services/fileFreshness.ts:361
↓ 5 callers
Function
resolveWithCancelledAndAbortAllToolCalls
()
src/hooks/useCanUseTool.ts:29
↓ 5 callers
Function
savePermission
( tool: Tool, input: { [k: string]: unknown }, prefix: string | null, )
src/permissions.ts:225
next →
1–100 of 1,377, ranked by callers