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
↓ 1 callers
Function
connectToServer
( name: string, serverRef: McpServerConfig, )
src/services/mcpClient.ts:224
↓ 1 callers
Function
contentBlocksEqual
( cb1: TextBlock | ToolUseBlock, cb2: TextBlock | ToolUseBlock, )
src/components/binary-feedback/utils.ts:38
↓ 1 callers
Function
convertAnthropicMessagesToOpenAIMessages
( messages: (UserMessage | AssistantMessage)[], )
src/services/claude.ts:512
↓ 1 callers
Function
convertFileNameToDate
(filename: string)
src/utils/cleanup.ts:13
↓ 1 callers
Function
convertHtmlToMarkdown
(html: string)
src/tools/URLFetcherTool/htmlToMarkdown.ts:35
↓ 1 callers
Method
convertMessagesToInput
(messages: any[])
src/services/adapters/responsesAPI.ts:387
↓ 1 callers
Method
createAdapter
* Create appropriate adapter based on model configuration
src/services/modelAdapterFactory.ts:12
↓ 1 callers
Function
createAndStoreApiKey
( accessToken: string, )
src/services/oauth.ts:290
↓ 1 callers
Function
createDefaultState
({ visibleOptionCount: customVisibleOptionCount, defaultValue, options, }: Pick< UseSelectStateProps,
src/components/CustomSelect/use-select-state.ts:268
↓ 1 callers
Function
createFileTree
(sortedPaths: string[])
src/tools/lsTool/lsTool.tsx:193
↓ 1 callers
Method
createMessagesSummary
* Helper: Create summary of message sequence
src/utils/messageContextManager.ts:224
↓ 1 callers
Function
createProgressMessage
( toolUseID: string, siblingToolUseIDs: Set<string>, content: AssistantMessage, normalizedMessages: No
src/utils/messages.tsx:174
↓ 1 callers
Method
createRequest
(params: UnifiedRequestParams)
src/services/adapters/responsesAPI.ts:8
↓ 1 callers
Function
createSummaryTable
( systemText: string, systemSections: Section[], tools: ToolSummary[], messages: unknown, )
src/commands/ctx_viz.ts:88
↓ 1 callers
Method
del
()
src/utils/Cursor.ts:159
↓ 1 callers
Function
deleteAgent
(agent: AgentConfig)
src/commands/agents.tsx:449
↓ 1 callers
Function
deleteConfigForCLI
(key: string, global: boolean)
src/utils/config.ts:631
↓ 1 callers
Method
deleteToLineEnd
()
src/utils/Cursor.ts:190
↓ 1 callers
Method
deleteToLineStart
()
src/utils/Cursor.ts:186
↓ 1 callers
Method
deleteWordAfter
()
src/utils/Cursor.ts:206
↓ 1 callers
Method
deleteWordBefore
()
src/utils/Cursor.ts:199
↓ 1 callers
Function
detectAndReadImageFromPath
(input: string)
src/utils/messages.tsx:43
↓ 1 callers
Function
detectRepoLineEndings
( filePath: string, )
src/utils/file.ts:155
↓ 1 callers
Function
detectRepoLineEndingsDirect
( cwd: string, )
src/utils/file.ts:161
↓ 1 callers
Function
detectShell
()
src/utils/PersistentShell.ts:124
↓ 1 callers
Function
diagnoseError
(error: any, context?: any)
src/utils/debugLogger.ts:962
↓ 1 callers
Method
dispatchPerformanceEvent
()
src/services/systemReminder.ts:195
↓ 1 callers
Method
dispatchSecurityEvent
()
src/services/systemReminder.ts:172
↓ 1 callers
Method
dispatchTodoEvent
(agentId?: string)
src/services/systemReminder.ts:105
↓ 1 callers
Method
down
()
src/utils/Cursor.ts:71
↓ 1 callers
Function
downOrHistoryDown
()
src/hooks/useTextInput.ts:216
↓ 1 callers
Method
editDistanceScore
* Algorithm 4: Edit Distance (typo tolerance) * Handles cases like "noda" → "node"
src/utils/fuzzyMatcher.ts:251
↓ 1 callers
Method
emitAgentMentionEvent
* Emit agent mention event with proper typing * Centralized event emission to ensure consistency
src/services/mentionProcessor.ts:216
↓ 1 callers
Function
ensureDebugDir
()
src/utils/debugLogger.ts:79
↓ 1 callers
Function
ensureDirectoryExists
(location: AgentLocation)
src/commands/agents.tsx:348
↓ 1 callers
Method
estimateMessageCount
* Helper: Estimate how many messages fit in token budget
src/utils/messageContextManager.ts:180
↓ 1 callers
Method
exactPrefixMatch
* Exact prefix matching
src/utils/advancedFuzzyMatcher.ts:69
↓ 1 callers
Method
exchangeCodeForTokens
( authorizationCode: string, state: string, useManualRedirect: boolean = false, )
src/services/oauth.ts:223
↓ 1 callers
Method
exec_
(command: string, timeout?: number)
src/utils/PersistentShell.ts:383
↓ 1 callers
Function
executeAutoCompact
* Executes the conversation compression process using the main model * * This function generates a comprehensive summary using the main model * whi
src/utils/autoCompactCore.ts:146
↓ 1 callers
Function
executeBashCommands
(content: string)
src/services/customCommands.ts:23
↓ 1 callers
Function
exit
()
src/components/PromptInput.tsx:794
↓ 1 callers
Method
extractAgentMentions
* Extract agent mentions with unified pattern matching * Consolidates run-agent, agent, and ask-model detection logic
src/services/mentionProcessor.ts:183
↓ 1 callers
Function
extractContextTokens
(data: any)
src/components/ModelSelector.tsx:1225
↓ 1 callers
Function
extractImage
( data: Record<string, unknown>, )
src/tools/NotebookReadTool/NotebookReadTool.tsx:150
↓ 1 callers
Function
fetchAnthropicCompatibleModelsWithFallback
( baseURL: string, provider: string, apiKeyUrl: string, )
src/components/ModelSelector.tsx:730
↓ 1 callers
Function
fetchAnthropicCompatibleProviderModels
()
src/components/ModelSelector.tsx:796
↓ 1 callers
Function
fetchAnthropicModels
( baseURL: string, apiKey: string, )
src/services/claude.ts:357
↓ 1 callers
Function
fetchBaiduQianfanModels
()
src/components/ModelSelector.tsx:1043
↓ 1 callers
Function
fetchCustomOpenAIModels
()
src/components/ModelSelector.tsx:1081
↓ 1 callers
Function
fetchDeepSeekModels
()
src/components/ModelSelector.tsx:850
↓ 1 callers
Function
fetchGLMModels
()
src/components/ModelSelector.tsx:967
↓ 1 callers
Function
fetchGeminiModels
()
src/components/ModelSelector.tsx:1122
↓ 1 callers
Function
fetchKimiModels
()
src/components/ModelSelector.tsx:811
↓ 1 callers
Function
fetchModels
()
src/components/ModelSelector.tsx:1384
↓ 1 callers
Function
fetchQwenModels
()
src/components/ModelSelector.tsx:928
↓ 1 callers
Function
fetchSiliconFlowModels
()
src/components/ModelSelector.tsx:889
↓ 1 callers
Function
fixRelativeImports
(dir)
scripts/build.mjs:25
↓ 1 callers
Function
format
( token: Token, listDepth = 0, orderedListNumber: number | null = null, parent: Token | null = null, )
src/utils/markdown.ts:16
↓ 1 callers
Function
formatCost
(cost: number)
src/cost-tracker.ts:38
↓ 1 callers
Function
formatDiff
( lines: string[], startingLineNumber: number, width: number, dim: boolean, overrideTheme?: ThemeNam
src/components/StructuredDiff.tsx:30
↓ 1 callers
Function
formatError
(error: unknown)
src/query.ts:666
↓ 1 callers
Function
formatLines
(text: string)
src/commands/agents.tsx:667
↓ 1 callers
Function
formatMessages
(messages: any)
src/utils/debugLogger.ts:190
↓ 1 callers
Function
formatNumber
(number: number)
src/utils/format.tsx:37
↓ 1 callers
Function
formatSystemPromptWithContext
( systemPrompt: string[], context: { [k: string]: string }, agentId?: string, skipContextReminders = f
src/services/claude.ts:1281
↓ 1 callers
Method
fuzzySegmentMatch
* Fuzzy segment matching (dao → dao-qi-harmony) * Matches segments flexibly
src/utils/advancedFuzzyMatcher.ts:245
↓ 1 callers
Function
generateAgentId
()
src/utils/agentStorage.ts:95
↓ 1 callers
Function
generateAgentWithClaude
(prompt: string)
src/commands/agents.tsx:120
↓ 1 callers
Method
generateAuthUrls
( codeChallenge: string, state: string, )
src/services/oauth.ts:68
↓ 1 callers
Function
generateCodeChallenge
(verifier: string)
src/services/oauth.ts:29
↓ 1 callers
Function
generateCodeVerifier
()
src/services/oauth.ts:25
↓ 1 callers
Function
generateFileModificationReminder
(filePath: string)
src/services/fileFreshness.ts:365
↓ 1 callers
Method
generateReminders
* Conditional reminder injection - only when context is present * Enhanced with performance optimizations and priority management
src/services/systemReminder.ts:57
↓ 1 callers
Function
generateSystemReminders
( hasContext: boolean = false, agentId?: string, )
src/services/systemReminder.ts:477
↓ 1 callers
Function
generateTodoSummary
(todos: TodoItem[])
src/tools/TodoWriteTool/TodoWriteTool.tsx:85
↓ 1 callers
Function
getAbsoluteAndRelativePaths
(path: string | undefined)
src/utils/file.ts:311
↓ 1 callers
Function
getAgentPrompt
()
src/constants/prompts.ts:155
↓ 1 callers
Method
getAllPhases
()
src/utils/debugLogger.ts:115
↓ 1 callers
Function
getAnthropicApiKey
()
src/utils/config.ts:672
↓ 1 callers
Function
getAnthropicClient
( model?: string, )
src/services/claude.ts:911
↓ 1 callers
Function
getBinaryFeedbackConfig
()
src/components/binary-feedback/utils.ts:20
↓ 1 callers
Function
getBinaryFeedbackResultForChoice
( m1: AssistantMessage, m2: AssistantMessage, choice: BinaryFeedbackChoice, )
src/components/binary-feedback/utils.ts:135
↓ 1 callers
Function
getBranch
()
src/utils/git.ts:17
↓ 1 callers
Function
getClaudeFiles
()
src/context.ts:25
↓ 1 callers
Function
getCommand
(commandName: string, commands: Command[])
src/commands.ts:119
↓ 1 callers
Function
getCommandFilePaths
( command: string, output: string, )
src/tools/BashTool/utils.ts:26
↓ 1 callers
Function
getCommandPriority
(command: string)
src/utils/commonUnixCommands.ts:131
↓ 1 callers
Function
getCommonSystemCommands
(systemCommands: string[])
src/utils/commonUnixCommands.ts:120
↓ 1 callers
Function
getCompressionModelContextLimit
* Retrieves the context length for the main model that should execute compression * Uses ModelManager to get the current model's context length
src/utils/autoCompactCore.ts:24
↓ 1 callers
Function
getConfigDirectory
* Get the cougar config directory
src/utils/agentStorage.ts:15
↓ 1 callers
Function
getConfigForCLI
(key: string, global: boolean)
src/utils/config.ts:564
↓ 1 callers
Function
getContextSections
(text: string)
src/commands/ctx_viz.ts:22
↓ 1 callers
Function
getConversationId
(agentId?: string, messageId?: string)
src/services/responseStateManager.ts:87
↓ 1 callers
Method
getCougarContext
()
src/services/claude.ts:164
↓ 1 callers
Method
getCurrentModel
* Get the current terminal model (for interactive CLI sessions)
src/utils/model.ts:91
↓ 1 callers
Function
getDedupeKey
(level: LogLevel, phase: string, data: any)
src/utils/debugLogger.ts:153
↓ 1 callers
Function
getDefaultAgentId
()
src/utils/agentStorage.ts:81
↓ 1 callers
Function
getDontAskAgainOptions
(toolUseConfirm: ToolUseConfirm, path: string)
src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx:106
↓ 1 callers
Function
getErroredToolUseMessages
( normalizedMessages: NormalizedMessage[], )
src/utils/messages.tsx:872
← previous
next →
401–500 of 1,377, ranked by callers