Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dulikaifazr/Cougar-CLI
/ functions
Functions
1,377 in github.com/dulikaifazr/Cougar-CLI
⨍
Functions
1,377
◇
Types & classes
170
↓ 5 callers
Function
setCwd
(cwd: string)
src/utils/state.ts:11
↓ 5 callers
Method
startOfLine
()
src/utils/Cursor.ts:81
↓ 5 callers
Function
textColorForRiskScore
(riskScore: number | null)
src/components/permissions/PermissionRequestTitle.tsx:35
↓ 5 callers
Function
toBashPath
(pathStr: string, type: 'posix' | 'msys' | 'wsl')
src/utils/PersistentShell.ts:49
↓ 5 callers
Function
toolUseConfirmGetPrefix
( toolUseConfirm: ToolUseConfirm, )
src/components/permissions/PermissionRequest.tsx:49
↓ 5 callers
Function
useDoublePress
( setPending: (pending: boolean) => void, onDoublePress: () => void, onFirstPress?: () => void, )
src/hooks/useDoublePress.ts:8
↓ 4 callers
Function
addLineNumbers
({ content, // 1-indexed startLine, }: { content: string startLine: number })
src/utils/file.ts:364
↓ 4 callers
Method
closeServer
()
src/services/oauth.ts:282
↓ 4 callers
Function
extractLanguageName
(file_path: string)
src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx:155
↓ 4 callers
Function
extractLanguageName
(file_path: string)
src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx:173
↓ 4 callers
Method
findModelProfileByModelName
(modelName: string)
src/utils/model.ts:851
↓ 4 callers
Method
fromText
( text: string, columns: number, offset: number = 0, selection: number = 0, )
src/utils/Cursor.ts:21
↓ 4 callers
Method
getActiveModelProfiles
* Get all active model profiles
src/utils/model.ts:466
↓ 4 callers
Method
getAllAvailableModelNames
* Get all available model names (modelName field) - active only
src/utils/model.ts:613
↓ 4 callers
Method
getAllConfiguredModels
* Get all configured models (both active and inactive) for switching
src/utils/model.ts:606
↓ 4 callers
Method
getDefaultModel
* Get default model profile
src/utils/model.ts:686
↓ 4 callers
Function
getLastAssistantMessageId
( messages: Message[], )
src/utils/messages.tsx:988
↓ 4 callers
Function
getMaxThinkingTokens
( messages: Message[], )
src/utils/thinking.ts:7
↓ 4 callers
Function
getMcpServer
(name: McpName)
src/services/mcpClient.ts:203
↓ 4 callers
Method
getOffset
(position: Position)
src/utils/Cursor.ts:244
↓ 4 callers
Function
getSystemPrompt
()
src/constants/prompts.ts:19
↓ 4 callers
Function
getToolDescription
(tool: Tool)
src/Tool.ts:93
↓ 4 callers
Function
getUpdateCommandSuggestions
()
src/utils/autoUpdater.ts:77
↓ 4 callers
Function
handleModelPointerChange
( pointer: ModelPointerType, modelId: string, )
src/components/ModelConfig.tsx:118
↓ 4 callers
Function
hasWritePermission
(directory: string)
src/utils/permissions/filesystem.ts:66
↓ 4 callers
Method
isAtEnd
()
src/utils/Cursor.ts:228
↓ 4 callers
Method
isAtStart
()
src/utils/Cursor.ts:225
↓ 4 callers
Function
isGPT5Model
(modelName: string)
src/services/claude.ts:66
↓ 4 callers
Function
lastX
(as: AsyncGenerator<A>)
src/utils/generators.ts:3
↓ 4 callers
Function
logCancelledEvent
()
src/hooks/useCanUseTool.ts:27
↓ 4 callers
Function
logUnaryPermissionEvent
( completion_type: CompletionType, { assistantMessage: { message: { id: message_id }, }, }
src/components/permissions/utils.ts:5
↓ 4 callers
Function
markPhase
(phase: string, data?: any)
src/utils/debugLogger.ts:428
↓ 4 callers
Function
normalizeMessagesForAPI
( messages: Message[], )
src/utils/messages.tsx:886
↓ 4 callers
Function
onCancel
()
src/screens/REPL.tsx:174
↓ 4 callers
Function
ripGrep
( args: string[], target: string, abortSignal: AbortSignal, )
src/utils/ripgrep.ts:50
↓ 4 callers
Method
saveConfig
* Save configuration changes
src/utils/model.ts:699
↓ 4 callers
Function
scanAgentDirectory
* Scan a directory for agent configuration files
src/utils/agentLoader.ts:69
↓ 4 callers
Function
scanMarkdownFiles
* Scan directory for markdown files using find command * * This function discovers .md files in the specified directory using the * system's find c
src/services/customCommands.ts:328
↓ 4 callers
Function
scanSkillDirectory
* Scan a directory for skill configurations * Skills are directories containing SKILL.md
src/utils/skillLoader.ts:46
↓ 4 callers
Method
sendToShell
(command: string)
src/utils/PersistentShell.ts:517
↓ 4 callers
Function
setModelPointer
( pointer: ModelPointerType, modelName: string, )
src/utils/config.ts:753
↓ 4 callers
Method
setPointer
* Set model pointer assignment
src/utils/model.ts:578
↓ 4 callers
Function
setSessionState
( keyOrState: keyof SessionState | Partial<SessionState>, value?: any, )
src/utils/sessionState.ts:22
↓ 4 callers
Function
splitCommand
(command: string)
src/utils/commands.ts:24
↓ 4 callers
Function
splitSysPromptPrefix
(systemPrompt: string[])
src/services/claude.ts:1161
↓ 4 callers
Method
text
()
src/utils/Cursor.ts:232
↓ 4 callers
Function
updateAgent
( agent: AgentConfig, description: string, tools: string[] | '*', systemPrompt: string, color?: stri
src/commands/agents.tsx:528
↓ 4 callers
Method
updateLastUsed
(modelName: string)
src/utils/model.ts:859
↓ 4 callers
Function
usePermissionContext
()
src/context/PermissionContext.tsx:131
↓ 4 callers
Function
usePermissionRequestLogging
( toolUseConfirm: ToolUseConfirm, unaryEvent: UnaryEvent, )
src/hooks/usePermissionRequestLogging.ts:16
↓ 4 callers
Function
validateAgentType
(agentType: string, existingAgents: AgentConfig[] = [])
src/commands/agents.tsx:233
↓ 4 callers
Function
watchDirectory
(dirPath: string, label: string)
src/utils/agentLoader.ts:241
↓ 4 callers
Function
watchDirectory
(dirPath: string, label: string)
src/utils/skillLoader.ts:234
↓ 4 callers
Function
writeTextContent
( filePath: string, content: string, encoding: BufferEncoding, endings: LineEndingType, )
src/utils/file.ts:134
↓ 4 callers
Function
writeToFile
(filePath: string, entry: LogEntry)
src/utils/debugLogger.ts:125
↓ 3 callers
Function
abortableDelay
(delayMs: number, signal?: AbortSignal)
src/services/openai.ts:37
↓ 3 callers
Function
applyMarkdown
(content: string)
src/utils/markdown.ts:8
↓ 3 callers
Function
base64URLEncode
(buffer: Buffer)
src/services/oauth.ts:17
↓ 3 callers
Function
bashToolCommandHasExactMatchPermission
( tool: Tool, command: string, allowedTools: string[], )
src/permissions.ts:30
↓ 3 callers
Function
clampIndex
(index: number, length: number)
src/components/ModelSelector.tsx:508
↓ 3 callers
Function
clearConversation
(context: { setForkConvoWithMessagesOnTheNextRender: ( forkConvoWithMessages: Message[], ) => void })
src/commands/clear.ts:11
↓ 3 callers
Method
clearTodoReminders
(agentId?: string)
src/services/systemReminder.ts:311
↓ 3 callers
Function
createExpertChatSession
( expertModel: string, )
src/utils/expertChatStorage.ts:49
↓ 3 callers
Method
createMentionReminder
* Unified mention reminder creation - eliminates duplicate logic * Centralizes reminder creation with consistent deduplication
src/services/systemReminder.ts:430
↓ 3 callers
Function
dateToFilename
(date: Date)
src/utils/log.ts:70
↓ 3 callers
Function
findSimilarFile
(filePath: string)
src/utils/file.ts:328
↓ 3 callers
Method
findTool
(name: string)
src/utils/toolExecutionController.ts:137
↓ 3 callers
Method
flushCurrentGroup
( groups: ToolExecutionGroup[], currentGroup: ToolExecutionGroup, )
src/utils/toolExecutionController.ts:141
↓ 3 callers
Function
formatDuration
(ms: number)
src/utils/format.tsx:19
↓ 3 callers
Function
formatOutput
(content: string)
src/tools/BashTool/utils.ts:5
↓ 3 callers
Function
generateCougarContext
()
src/services/claude.ts:186
↓ 3 callers
Function
getAgentDirectory
(location: AgentLocation)
src/commands/agents.tsx:328
↓ 3 callers
Function
getAgentFilePath
(agentId: string)
src/utils/agentStorage.ts:32
↓ 3 callers
Function
getAgentFilePath
(agent: AgentConfig)
src/commands/agents.tsx:340
↓ 3 callers
Function
getAssistantResponse
()
src/query.ts:226
↓ 3 callers
Function
getDisplayModelName
(modelId?: string | null)
src/commands/agents.tsx:98
↓ 3 callers
Function
getFormFieldsForModelParams
()
src/components/ModelSelector.tsx:2566
↓ 3 callers
Function
getLatestVersion
()
src/utils/autoUpdater.ts:35
↓ 3 callers
Method
getLine
(line: number)
src/utils/Cursor.ts:365
↓ 3 callers
Function
getMaxTokensFromProfile
(modelProfile: any)
src/services/claude.ts:2199
↓ 3 callers
Function
getMessagesSetter
()
src/messages.ts:21
↓ 3 callers
Function
getModelFeatures
(modelName: string)
src/services/openai.ts:313
↓ 3 callers
Function
getModelInputTokenCostUSD
(model: string)
src/services/claude.ts:2292
↓ 3 callers
Function
getNextAvailableLogForkNumber
( date: string, forkNumber: number, // Main chain has sidechainNumber 0 sidechainNumber: number, )
src/utils/log.ts:281
↓ 3 callers
Function
getProjectDir
(cwd: string)
src/utils/log.ts:59
↓ 3 callers
Function
getRetryDelay
* Calculate retry delay with exponential backoff and jitter
src/services/openai.ts:20
↓ 3 callers
Function
getSafeVisibleOptionCount
* Clamp visible list height to stay within the terminal. * Prevents overflowing renders that leave stray borders when the list rerenders.
src/components/ModelSelector.tsx:587
↓ 3 callers
Function
goToNextStep
()
src/components/Onboarding.tsx:39
↓ 3 callers
Function
handleProviderSelection
(provider: string)
src/components/ModelSelector.tsx:544
↓ 3 callers
Method
initialize
()
src/services/claude.ts:134
↓ 3 callers
Function
isDefaultSlowAndCapableModel
()
src/utils/model.ts:51
↓ 3 callers
Function
isGlobalConfigKey
(key: string)
src/utils/config.ts:218
↓ 3 callers
Function
isProjectConfigKey
(key: string)
src/utils/config.ts:260
↓ 3 callers
Function
loadExpertChatSession
( sessionId: string, )
src/utils/expertChatStorage.ts:68
↓ 3 callers
Function
loadLogList
( path = CACHE_PATHS.messages(), )
src/utils/log.ts:196
↓ 3 callers
Function
markProjectOnboardingComplete
()
src/components/ProjectOnboarding.tsx:22
↓ 3 callers
Method
match
* Main matching function - combines multiple algorithms
src/utils/advancedFuzzyMatcher.ts:27
↓ 3 callers
Function
matchCommands
(commands: string[], query: string)
src/utils/fuzzyMatcher.ts:321
↓ 3 callers
Function
next
(generator: AsyncGenerator<A, void>)
src/utils/generators.ts:26
↓ 3 callers
Method
nextWord
()
src/utils/Cursor.ts:100
← previous
next →
101–200 of 1,377, ranked by callers