MCPcopy Create free account

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

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

↓ 1 callersFunctionconnectToServer
( name: string, serverRef: McpServerConfig, )
src/services/mcpClient.ts:224
↓ 1 callersFunctioncontentBlocksEqual
( cb1: TextBlock | ToolUseBlock, cb2: TextBlock | ToolUseBlock, )
src/components/binary-feedback/utils.ts:38
↓ 1 callersFunctionconvertAnthropicMessagesToOpenAIMessages
( messages: (UserMessage | AssistantMessage)[], )
src/services/claude.ts:512
↓ 1 callersFunctionconvertFileNameToDate
(filename: string)
src/utils/cleanup.ts:13
↓ 1 callersFunctionconvertHtmlToMarkdown
(html: string)
src/tools/URLFetcherTool/htmlToMarkdown.ts:35
↓ 1 callersMethodconvertMessagesToInput
(messages: any[])
src/services/adapters/responsesAPI.ts:387
↓ 1 callersMethodcreateAdapter
* Create appropriate adapter based on model configuration
src/services/modelAdapterFactory.ts:12
↓ 1 callersFunctioncreateAndStoreApiKey
( accessToken: string, )
src/services/oauth.ts:290
↓ 1 callersFunctioncreateDefaultState
({ visibleOptionCount: customVisibleOptionCount, defaultValue, options, }: Pick< UseSelectStateProps,
src/components/CustomSelect/use-select-state.ts:268
↓ 1 callersFunctioncreateFileTree
(sortedPaths: string[])
src/tools/lsTool/lsTool.tsx:193
↓ 1 callersMethodcreateMessagesSummary
* Helper: Create summary of message sequence
src/utils/messageContextManager.ts:224
↓ 1 callersFunctioncreateProgressMessage
( toolUseID: string, siblingToolUseIDs: Set<string>, content: AssistantMessage, normalizedMessages: No
src/utils/messages.tsx:174
↓ 1 callersMethodcreateRequest
(params: UnifiedRequestParams)
src/services/adapters/responsesAPI.ts:8
↓ 1 callersFunctioncreateSummaryTable
( systemText: string, systemSections: Section[], tools: ToolSummary[], messages: unknown, )
src/commands/ctx_viz.ts:88
↓ 1 callersMethoddel
()
src/utils/Cursor.ts:159
↓ 1 callersFunctiondeleteAgent
(agent: AgentConfig)
src/commands/agents.tsx:449
↓ 1 callersFunctiondeleteConfigForCLI
(key: string, global: boolean)
src/utils/config.ts:631
↓ 1 callersMethoddeleteToLineEnd
()
src/utils/Cursor.ts:190
↓ 1 callersMethoddeleteToLineStart
()
src/utils/Cursor.ts:186
↓ 1 callersMethoddeleteWordAfter
()
src/utils/Cursor.ts:206
↓ 1 callersMethoddeleteWordBefore
()
src/utils/Cursor.ts:199
↓ 1 callersFunctiondetectAndReadImageFromPath
(input: string)
src/utils/messages.tsx:43
↓ 1 callersFunctiondetectRepoLineEndings
( filePath: string, )
src/utils/file.ts:155
↓ 1 callersFunctiondetectRepoLineEndingsDirect
( cwd: string, )
src/utils/file.ts:161
↓ 1 callersFunctiondetectShell
()
src/utils/PersistentShell.ts:124
↓ 1 callersFunctiondiagnoseError
(error: any, context?: any)
src/utils/debugLogger.ts:962
↓ 1 callersMethoddispatchPerformanceEvent
()
src/services/systemReminder.ts:195
↓ 1 callersMethoddispatchSecurityEvent
()
src/services/systemReminder.ts:172
↓ 1 callersMethoddispatchTodoEvent
(agentId?: string)
src/services/systemReminder.ts:105
↓ 1 callersMethoddown
()
src/utils/Cursor.ts:71
↓ 1 callersFunctiondownOrHistoryDown
()
src/hooks/useTextInput.ts:216
↓ 1 callersMethodeditDistanceScore
* Algorithm 4: Edit Distance (typo tolerance) * Handles cases like "noda" → "node"
src/utils/fuzzyMatcher.ts:251
↓ 1 callersMethodemitAgentMentionEvent
* Emit agent mention event with proper typing * Centralized event emission to ensure consistency
src/services/mentionProcessor.ts:216
↓ 1 callersFunctionensureDebugDir
()
src/utils/debugLogger.ts:79
↓ 1 callersFunctionensureDirectoryExists
(location: AgentLocation)
src/commands/agents.tsx:348
↓ 1 callersMethodestimateMessageCount
* Helper: Estimate how many messages fit in token budget
src/utils/messageContextManager.ts:180
↓ 1 callersMethodexactPrefixMatch
* Exact prefix matching
src/utils/advancedFuzzyMatcher.ts:69
↓ 1 callersMethodexchangeCodeForTokens
( authorizationCode: string, state: string, useManualRedirect: boolean = false, )
src/services/oauth.ts:223
↓ 1 callersMethodexec_
(command: string, timeout?: number)
src/utils/PersistentShell.ts:383
↓ 1 callersFunctionexecuteAutoCompact
* 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 callersFunctionexecuteBashCommands
(content: string)
src/services/customCommands.ts:23
↓ 1 callersFunctionexit
()
src/components/PromptInput.tsx:794
↓ 1 callersMethodextractAgentMentions
* Extract agent mentions with unified pattern matching * Consolidates run-agent, agent, and ask-model detection logic
src/services/mentionProcessor.ts:183
↓ 1 callersFunctionextractContextTokens
(data: any)
src/components/ModelSelector.tsx:1225
↓ 1 callersFunctionextractImage
( data: Record<string, unknown>, )
src/tools/NotebookReadTool/NotebookReadTool.tsx:150
↓ 1 callersFunctionfetchAnthropicCompatibleModelsWithFallback
( baseURL: string, provider: string, apiKeyUrl: string, )
src/components/ModelSelector.tsx:730
↓ 1 callersFunctionfetchAnthropicCompatibleProviderModels
()
src/components/ModelSelector.tsx:796
↓ 1 callersFunctionfetchAnthropicModels
( baseURL: string, apiKey: string, )
src/services/claude.ts:357
↓ 1 callersFunctionfetchBaiduQianfanModels
()
src/components/ModelSelector.tsx:1043
↓ 1 callersFunctionfetchCustomOpenAIModels
()
src/components/ModelSelector.tsx:1081
↓ 1 callersFunctionfetchDeepSeekModels
()
src/components/ModelSelector.tsx:850
↓ 1 callersFunctionfetchGLMModels
()
src/components/ModelSelector.tsx:967
↓ 1 callersFunctionfetchGeminiModels
()
src/components/ModelSelector.tsx:1122
↓ 1 callersFunctionfetchKimiModels
()
src/components/ModelSelector.tsx:811
↓ 1 callersFunctionfetchModels
()
src/components/ModelSelector.tsx:1384
↓ 1 callersFunctionfetchQwenModels
()
src/components/ModelSelector.tsx:928
↓ 1 callersFunctionfetchSiliconFlowModels
()
src/components/ModelSelector.tsx:889
↓ 1 callersFunctionfixRelativeImports
(dir)
scripts/build.mjs:25
↓ 1 callersFunctionformat
( token: Token, listDepth = 0, orderedListNumber: number | null = null, parent: Token | null = null, )
src/utils/markdown.ts:16
↓ 1 callersFunctionformatCost
(cost: number)
src/cost-tracker.ts:38
↓ 1 callersFunctionformatDiff
( lines: string[], startingLineNumber: number, width: number, dim: boolean, overrideTheme?: ThemeNam
src/components/StructuredDiff.tsx:30
↓ 1 callersFunctionformatError
(error: unknown)
src/query.ts:666
↓ 1 callersFunctionformatLines
(text: string)
src/commands/agents.tsx:667
↓ 1 callersFunctionformatMessages
(messages: any)
src/utils/debugLogger.ts:190
↓ 1 callersFunctionformatNumber
(number: number)
src/utils/format.tsx:37
↓ 1 callersFunctionformatSystemPromptWithContext
( systemPrompt: string[], context: { [k: string]: string }, agentId?: string, skipContextReminders = f
src/services/claude.ts:1281
↓ 1 callersMethodfuzzySegmentMatch
* Fuzzy segment matching (dao → dao-qi-harmony) * Matches segments flexibly
src/utils/advancedFuzzyMatcher.ts:245
↓ 1 callersFunctiongenerateAgentId
()
src/utils/agentStorage.ts:95
↓ 1 callersFunctiongenerateAgentWithClaude
(prompt: string)
src/commands/agents.tsx:120
↓ 1 callersMethodgenerateAuthUrls
( codeChallenge: string, state: string, )
src/services/oauth.ts:68
↓ 1 callersFunctiongenerateCodeChallenge
(verifier: string)
src/services/oauth.ts:29
↓ 1 callersFunctiongenerateCodeVerifier
()
src/services/oauth.ts:25
↓ 1 callersFunctiongenerateFileModificationReminder
(filePath: string)
src/services/fileFreshness.ts:365
↓ 1 callersMethodgenerateReminders
* Conditional reminder injection - only when context is present * Enhanced with performance optimizations and priority management
src/services/systemReminder.ts:57
↓ 1 callersFunctiongenerateSystemReminders
( hasContext: boolean = false, agentId?: string, )
src/services/systemReminder.ts:477
↓ 1 callersFunctiongenerateTodoSummary
(todos: TodoItem[])
src/tools/TodoWriteTool/TodoWriteTool.tsx:85
↓ 1 callersFunctiongetAbsoluteAndRelativePaths
(path: string | undefined)
src/utils/file.ts:311
↓ 1 callersFunctiongetAgentPrompt
()
src/constants/prompts.ts:155
↓ 1 callersMethodgetAllPhases
()
src/utils/debugLogger.ts:115
↓ 1 callersFunctiongetAnthropicApiKey
()
src/utils/config.ts:672
↓ 1 callersFunctiongetAnthropicClient
( model?: string, )
src/services/claude.ts:911
↓ 1 callersFunctiongetBinaryFeedbackConfig
()
src/components/binary-feedback/utils.ts:20
↓ 1 callersFunctiongetBinaryFeedbackResultForChoice
( m1: AssistantMessage, m2: AssistantMessage, choice: BinaryFeedbackChoice, )
src/components/binary-feedback/utils.ts:135
↓ 1 callersFunctiongetBranch
()
src/utils/git.ts:17
↓ 1 callersFunctiongetClaudeFiles
()
src/context.ts:25
↓ 1 callersFunctiongetCommand
(commandName: string, commands: Command[])
src/commands.ts:119
↓ 1 callersFunctiongetCommandFilePaths
( command: string, output: string, )
src/tools/BashTool/utils.ts:26
↓ 1 callersFunctiongetCommandPriority
(command: string)
src/utils/commonUnixCommands.ts:131
↓ 1 callersFunctiongetCommonSystemCommands
(systemCommands: string[])
src/utils/commonUnixCommands.ts:120
↓ 1 callersFunctiongetCompressionModelContextLimit
* 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 callersFunctiongetConfigDirectory
* Get the cougar config directory
src/utils/agentStorage.ts:15
↓ 1 callersFunctiongetConfigForCLI
(key: string, global: boolean)
src/utils/config.ts:564
↓ 1 callersFunctiongetContextSections
(text: string)
src/commands/ctx_viz.ts:22
↓ 1 callersFunctiongetConversationId
(agentId?: string, messageId?: string)
src/services/responseStateManager.ts:87
↓ 1 callersMethodgetCougarContext
()
src/services/claude.ts:164
↓ 1 callersMethodgetCurrentModel
* Get the current terminal model (for interactive CLI sessions)
src/utils/model.ts:91
↓ 1 callersFunctiongetDedupeKey
(level: LogLevel, phase: string, data: any)
src/utils/debugLogger.ts:153
↓ 1 callersFunctiongetDefaultAgentId
()
src/utils/agentStorage.ts:81
↓ 1 callersFunctiongetDontAskAgainOptions
(toolUseConfirm: ToolUseConfirm, path: string)
src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx:106
↓ 1 callersFunctiongetErroredToolUseMessages
( normalizedMessages: NormalizedMessage[], )
src/utils/messages.tsx:872
← previousnext →401–500 of 1,377, ranked by callers