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
↓ 3 callers
Function
onHistoryDown
()
src/hooks/useArrowKeyHistory.ts:31
↓ 3 callers
Function
onHistoryUp
()
src/hooks/useArrowKeyHistory.ts:19
↓ 3 callers
Function
onSelect
(index: number)
src/screens/LogList.tsx:46
↓ 3 callers
Function
overwriteLog
(path: string, messages: object[])
src/utils/log.ts:170
↓ 3 callers
Function
parseISOString
(s: string)
src/utils/log.ts:375
↓ 3 callers
Method
preserveRecentMessages
* Strategy 1: Preserve most recent messages
src/utils/messageContextManager.ts:54
↓ 3 callers
Method
prevWord
()
src/utils/Cursor.ts:114
↓ 3 callers
Function
processOutputText
(text: string | string[] | undefined)
src/tools/NotebookReadTool/NotebookReadTool.tsx:143
↓ 3 callers
Function
processUserInput
( input: string, mode: 'bash' | 'prompt' | 'koding', setToolJSX: SetToolJSXFn, context: ToolUseContext
src/utils/messages.tsx:203
↓ 3 callers
Function
pushCurrent
()
src/utils/PersistentShell.ts:90
↓ 3 callers
Function
readLog
(path: string)
src/utils/log.ts:130
↓ 3 callers
Function
renderWindowedOptions
( options: Array<{ value: string; label: string }>, focusedIndex: number, maxVisible: number, )
src/components/ModelSelector.tsx:598
↓ 3 callers
Function
resetFileFreshnessSession
()
src/services/fileFreshness.ts:367
↓ 3 callers
Function
resetHistory
()
src/hooks/useArrowKeyHistory.ts:43
↓ 3 callers
Method
resolveModelWithInfo
* 解析模型参数并返回完整信息
src/utils/model.ts:767
↓ 3 callers
Method
safeReadFile
* 安全地读取文件 * @param filePath 文件路径 * @param options 读取选项 * @returns 读取结果
src/utils/secureFile.ts:151
↓ 3 callers
Function
safeWriteFile
(path: string, data: string, encoding: BufferEncoding = 'utf8')
src/utils/log.ts:43
↓ 3 callers
Function
sanitize
(str: string)
src/commands/agents.tsx:203
↓ 3 callers
Function
updateInput
(input: string | undefined)
src/hooks/useArrowKeyHistory.ts:11
↓ 3 callers
Function
withRetry
( operation: (attempt: number) => Promise<T>, options: RetryOptions = {}, )
src/services/claude.ts:304
↓ 2 callers
Method
abbreviationMatch
* Abbreviation matching (nde → node, daoqi → dao-qi)
src/utils/advancedFuzzyMatcher.ts:147
↓ 2 callers
Function
addMessageToSession
( sessionId: string, role: 'user' | 'assistant', content: string, )
src/utils/expertChatStorage.ts:107
↓ 2 callers
Function
addToTotalCost
(cost: number, duration: number)
src/cost-tracker.ts:21
↓ 2 callers
Function
allContentBlocksEqual
( content1: (TextBlock | ToolUseBlock)[], content2: (TextBlock | ToolUseBlock)[], )
src/components/binary-feedback/utils.ts:52
↓ 2 callers
Function
applyEdit
( file_path: string, old_string: string, new_string: string, )
src/tools/FileEditTool/utils.ts:12
↓ 2 callers
Function
assertMinVersion
()
src/utils/autoUpdater.ts:15
↓ 2 callers
Function
baseCreateAssistantMessage
( content: ContentBlock[], extra?: Partial<AssistantMessage>, )
src/utils/messages.tsx:100
↓ 2 callers
Function
bashToolCommandHasPermission
( tool: Tool, command: string, prefix: string | null, allowedTools: string[], )
src/permissions.ts:49
↓ 2 callers
Function
captureException
(error: unknown)
src/services/sentry.ts:3
↓ 2 callers
Function
categoryForRiskScore
(riskScore: number)
src/components/permissions/PermissionRequestTitle.tsx:7
↓ 2 callers
Function
checkOverride
(agent: AgentConfig)
src/commands/agents.tsx:1342
↓ 2 callers
Function
clearScreenAndResolve
()
src/services/mcpServerApproval.tsx:19
↓ 2 callers
Method
closeIfInitialized
()
src/utils/PersistentShell.ts:285
↓ 2 callers
Function
convertOpenAIResponseToAnthropic
(response: OpenAI.ChatCompletion, tools?: Tool[])
src/services/claude.ts:835
↓ 2 callers
Function
createCustomCommand
* Create a Command object from custom command file data * * This function transforms parsed custom command data into a Command object * that integr
src/services/customCommands.ts:370
↓ 2 callers
Function
createStreamProcessor
( stream: any, signal?: AbortSignal, )
src/services/openai.ts:857
↓ 2 callers
Function
createToolResultStopMessage
( toolUseID: string, )
src/utils/messages.tsx:192
↓ 2 callers
Function
defaultConfigForProject
(projectPath: string)
src/utils/config.ts:62
↓ 2 callers
Function
deserializeMessages
(messages: any[], tools: Tool[])
src/utils/conversationRecovery.ts:31
↓ 2 callers
Function
detectFileEncodingDirect
(filePath: string)
src/utils/file.ts:208
↓ 2 callers
Function
detectLineEndingsDirect
( filePath: string, encoding: BufferEncoding = 'utf8', )
src/utils/file.ts:252
↓ 2 callers
Method
determineAPIType
* Determine which API should be used
src/services/modelAdapterFactory.ts:31
↓ 2 callers
Method
emitEvent
(event: string, context: any)
src/services/systemReminder.ts:415
↓ 2 callers
Function
enableConfigs
()
src/utils/config.ts:339
↓ 2 callers
Function
fetchModelsWithRetry
()
src/components/ModelSelector.tsx:1322
↓ 2 callers
Function
fetchOllamaModels
()
src/components/ModelSelector.tsx:1160
↓ 2 callers
Method
findModelProfileByName
(name: string)
src/utils/model.ts:855
↓ 2 callers
Function
findSmartBreak
(text: string, maxLength: number)
src/hooks/useUnifiedCompletion.ts:522
↓ 2 callers
Function
flattenOptions
( options: (Option | OptionSubtree)[], )
src/components/CustomSelect/use-select-state.ts:249
↓ 2 callers
Function
format
(content: string | undefined, color: string)
src/components/messages/AssistantLocalCommandOutputMessage.tsx:44
↓ 2 callers
Function
formatApiKeyDisplay
(key: string)
src/components/ModelSelector.tsx:2270
↓ 2 callers
Function
formatDate
(date: Date)
src/utils/log.ts:345
↓ 2 callers
Function
formatFileSizeError
(sizeInBytes: number)
src/tools/FileReadTool/FileReadTool.tsx:290
↓ 2 callers
Function
formatNumber
(num: number)
src/components/ModelSelector.tsx:527
↓ 2 callers
Function
formatTotalCost
()
src/cost-tracker.ts:42
↓ 2 callers
Function
generateAgentFileContent
( agentType: string, description: string, tools: string[] | '*', systemPrompt: string, model?: strin
src/commands/agents.tsx:357
↓ 2 callers
Method
generateFileChangeReminder
* Generate reminders for external file changes * Called when todo files are modified externally
src/services/systemReminder.ts:260
↓ 2 callers
Method
generateFileModificationReminder
(filePath: string)
src/services/fileFreshness.ts:177
↓ 2 callers
Function
getAbsolutePath
(path: string | undefined)
src/utils/file.ts:307
↓ 2 callers
Function
getAllTools
()
src/tools.ts:28
↓ 2 callers
Function
getAssistantMessageFromError
(error: unknown)
src/services/claude.ts:1816
↓ 2 callers
Function
getCLISyspromptPrefix
()
src/constants/prompts.ts:15
↓ 2 callers
Function
getCompletionWithProfile
( modelProfile: any, opts: OpenAI.ChatCompletionCreateParams, attempt: number = 0, maxAttempts: number
src/services/openai.ts:482
↓ 2 callers
Function
getEnvInfo
()
src/constants/prompts.ts:144
↓ 2 callers
Function
getErrorsPath
()
src/utils/log.ts:76
↓ 2 callers
Function
getHistory
()
src/history.ts:8
↓ 2 callers
Function
getMcprcServerStatus
( serverName: string, )
src/services/mcpClient.ts:294
↓ 2 callers
Function
getMessagesGetter
()
src/messages.ts:11
↓ 2 callers
Function
getModelCapabilities
(modelName: string)
src/constants/modelCapabilities.ts:160
↓ 2 callers
Function
getModelConfig
* Helper to get the model config from defaults.
src/utils/model.ts:29
↓ 2 callers
Function
getModelErrorKey
( baseURL: string, model: string, type: ModelErrorType, )
src/services/openai.ts:69
↓ 2 callers
Function
getOrCreateUserID
()
src/utils/config.ts:553
↓ 2 callers
Function
getPastedTextPrompt
(text: string)
src/components/PromptInput.tsx:98
↓ 2 callers
Function
getReasoningEffort
( modelProfile: any, messages: Message[], )
src/utils/thinking.ts:57
↓ 2 callers
Function
getSessionFilePath
* 获取会话文件路径 - 使用 sessionId.json 格式
src/utils/expertChatStorage.ts:42
↓ 2 callers
Function
getThemeColor
(colorName: string, theme: any)
src/components/ModeIndicator.tsx:62
↓ 2 callers
Function
getTodoConfig
()
src/utils/todoStorage.ts:249
↓ 2 callers
Function
getToolUseID
(message: NormalizedMessage)
src/utils/messages.tsx:971
↓ 2 callers
Function
getTotalCost
()
src/cost-tracker.ts:26
↓ 2 callers
Function
getTotalDuration
()
src/cost-tracker.ts:30
↓ 2 callers
Function
getUnresolvedToolUseIDs
( normalizedMessages: NormalizedMessage[], )
src/utils/messages.tsx:810
↓ 2 callers
Function
grantReadPermissionForOriginalDir
()
src/utils/permissions/filesystem.ts:95
↓ 2 callers
Function
grantWritePermissionForOriginalDir
()
src/utils/permissions/filesystem.ts:118
↓ 2 callers
Function
handleCancel
()
src/commands/agents.tsx:2403
↓ 2 callers
Function
handleChange
(value: string)
src/commands/agents.tsx:2397
↓ 2 callers
Function
handleConfirm
()
src/commands/agents.tsx:2262
↓ 2 callers
Function
handleConnectionTest
()
src/components/ModelSelector.tsx:2122
↓ 2 callers
Function
handleHashCommand
(interpreted: string)
src/commands/terminalSetup.ts:54
↓ 2 callers
Function
handleManageModels
()
src/components/ModelConfig.tsx:128
↓ 2 callers
Function
handleMessageStream
( stream: ChatCompletionStream, signal?: AbortSignal, )
src/services/claude.ts:714
↓ 2 callers
Function
handleNavigation
(newIndex: number)
src/hooks/useUnifiedCompletion.ts:1113
↓ 2 callers
Function
handleSelect
(message: UserMessage)
src/components/MessageSelector.tsx:41
↓ 2 callers
Function
hasError
(data: unknown)
src/services/openai.ts:619
↓ 2 callers
Function
hasFlag
(...flags: string[])
src/index.ts:8
↓ 2 callers
Function
intersects
(a: Set<A>, b: Set<A>)
src/screens/REPL.tsx:796
↓ 2 callers
Function
invalidateCache
()
src/utils/todoStorage.ts:56
↓ 2 callers
Function
isEmptyMessageText
(text: string)
src/utils/messages.tsx:953
↓ 2 callers
Function
isGPT5ModelName
(modelName: string)
src/utils/config.ts:779
↓ 2 callers
Function
isInDirectory
( relativePath: string, relativeCwd: string, )
src/utils/file.ts:70
↓ 2 callers
Function
isPermissionError
(error: unknown)
src/utils/log.ts:21
← previous
next →
201–300 of 1,377, ranked by callers