MCPcopy Create free account

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

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

↓ 3 callersFunctiononHistoryDown
()
src/hooks/useArrowKeyHistory.ts:31
↓ 3 callersFunctiononHistoryUp
()
src/hooks/useArrowKeyHistory.ts:19
↓ 3 callersFunctiononSelect
(index: number)
src/screens/LogList.tsx:46
↓ 3 callersFunctionoverwriteLog
(path: string, messages: object[])
src/utils/log.ts:170
↓ 3 callersFunctionparseISOString
(s: string)
src/utils/log.ts:375
↓ 3 callersMethodpreserveRecentMessages
* Strategy 1: Preserve most recent messages
src/utils/messageContextManager.ts:54
↓ 3 callersMethodprevWord
()
src/utils/Cursor.ts:114
↓ 3 callersFunctionprocessOutputText
(text: string | string[] | undefined)
src/tools/NotebookReadTool/NotebookReadTool.tsx:143
↓ 3 callersFunctionprocessUserInput
( input: string, mode: 'bash' | 'prompt' | 'koding', setToolJSX: SetToolJSXFn, context: ToolUseContext
src/utils/messages.tsx:203
↓ 3 callersFunctionpushCurrent
()
src/utils/PersistentShell.ts:90
↓ 3 callersFunctionreadLog
(path: string)
src/utils/log.ts:130
↓ 3 callersFunctionrenderWindowedOptions
( options: Array<{ value: string; label: string }>, focusedIndex: number, maxVisible: number, )
src/components/ModelSelector.tsx:598
↓ 3 callersFunctionresetFileFreshnessSession
()
src/services/fileFreshness.ts:367
↓ 3 callersFunctionresetHistory
()
src/hooks/useArrowKeyHistory.ts:43
↓ 3 callersMethodresolveModelWithInfo
* 解析模型参数并返回完整信息
src/utils/model.ts:767
↓ 3 callersMethodsafeReadFile
* 安全地读取文件 * @param filePath 文件路径 * @param options 读取选项 * @returns 读取结果
src/utils/secureFile.ts:151
↓ 3 callersFunctionsafeWriteFile
(path: string, data: string, encoding: BufferEncoding = 'utf8')
src/utils/log.ts:43
↓ 3 callersFunctionsanitize
(str: string)
src/commands/agents.tsx:203
↓ 3 callersFunctionupdateInput
(input: string | undefined)
src/hooks/useArrowKeyHistory.ts:11
↓ 3 callersFunctionwithRetry
( operation: (attempt: number) => Promise<T>, options: RetryOptions = {}, )
src/services/claude.ts:304
↓ 2 callersMethodabbreviationMatch
* Abbreviation matching (nde → node, daoqi → dao-qi)
src/utils/advancedFuzzyMatcher.ts:147
↓ 2 callersFunctionaddMessageToSession
( sessionId: string, role: 'user' | 'assistant', content: string, )
src/utils/expertChatStorage.ts:107
↓ 2 callersFunctionaddToTotalCost
(cost: number, duration: number)
src/cost-tracker.ts:21
↓ 2 callersFunctionallContentBlocksEqual
( content1: (TextBlock | ToolUseBlock)[], content2: (TextBlock | ToolUseBlock)[], )
src/components/binary-feedback/utils.ts:52
↓ 2 callersFunctionapplyEdit
( file_path: string, old_string: string, new_string: string, )
src/tools/FileEditTool/utils.ts:12
↓ 2 callersFunctionassertMinVersion
()
src/utils/autoUpdater.ts:15
↓ 2 callersFunctionbaseCreateAssistantMessage
( content: ContentBlock[], extra?: Partial<AssistantMessage>, )
src/utils/messages.tsx:100
↓ 2 callersFunctionbashToolCommandHasPermission
( tool: Tool, command: string, prefix: string | null, allowedTools: string[], )
src/permissions.ts:49
↓ 2 callersFunctioncaptureException
(error: unknown)
src/services/sentry.ts:3
↓ 2 callersFunctioncategoryForRiskScore
(riskScore: number)
src/components/permissions/PermissionRequestTitle.tsx:7
↓ 2 callersFunctioncheckOverride
(agent: AgentConfig)
src/commands/agents.tsx:1342
↓ 2 callersFunctionclearScreenAndResolve
()
src/services/mcpServerApproval.tsx:19
↓ 2 callersMethodcloseIfInitialized
()
src/utils/PersistentShell.ts:285
↓ 2 callersFunctionconvertOpenAIResponseToAnthropic
(response: OpenAI.ChatCompletion, tools?: Tool[])
src/services/claude.ts:835
↓ 2 callersFunctioncreateCustomCommand
* 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 callersFunctioncreateStreamProcessor
( stream: any, signal?: AbortSignal, )
src/services/openai.ts:857
↓ 2 callersFunctioncreateToolResultStopMessage
( toolUseID: string, )
src/utils/messages.tsx:192
↓ 2 callersFunctiondefaultConfigForProject
(projectPath: string)
src/utils/config.ts:62
↓ 2 callersFunctiondeserializeMessages
(messages: any[], tools: Tool[])
src/utils/conversationRecovery.ts:31
↓ 2 callersFunctiondetectFileEncodingDirect
(filePath: string)
src/utils/file.ts:208
↓ 2 callersFunctiondetectLineEndingsDirect
( filePath: string, encoding: BufferEncoding = 'utf8', )
src/utils/file.ts:252
↓ 2 callersMethoddetermineAPIType
* Determine which API should be used
src/services/modelAdapterFactory.ts:31
↓ 2 callersMethodemitEvent
(event: string, context: any)
src/services/systemReminder.ts:415
↓ 2 callersFunctionenableConfigs
()
src/utils/config.ts:339
↓ 2 callersFunctionfetchModelsWithRetry
()
src/components/ModelSelector.tsx:1322
↓ 2 callersFunctionfetchOllamaModels
()
src/components/ModelSelector.tsx:1160
↓ 2 callersMethodfindModelProfileByName
(name: string)
src/utils/model.ts:855
↓ 2 callersFunctionfindSmartBreak
(text: string, maxLength: number)
src/hooks/useUnifiedCompletion.ts:522
↓ 2 callersFunctionflattenOptions
( options: (Option | OptionSubtree)[], )
src/components/CustomSelect/use-select-state.ts:249
↓ 2 callersFunctionformat
(content: string | undefined, color: string)
src/components/messages/AssistantLocalCommandOutputMessage.tsx:44
↓ 2 callersFunctionformatApiKeyDisplay
(key: string)
src/components/ModelSelector.tsx:2270
↓ 2 callersFunctionformatDate
(date: Date)
src/utils/log.ts:345
↓ 2 callersFunctionformatFileSizeError
(sizeInBytes: number)
src/tools/FileReadTool/FileReadTool.tsx:290
↓ 2 callersFunctionformatNumber
(num: number)
src/components/ModelSelector.tsx:527
↓ 2 callersFunctionformatTotalCost
()
src/cost-tracker.ts:42
↓ 2 callersFunctiongenerateAgentFileContent
( agentType: string, description: string, tools: string[] | '*', systemPrompt: string, model?: strin
src/commands/agents.tsx:357
↓ 2 callersMethodgenerateFileChangeReminder
* Generate reminders for external file changes * Called when todo files are modified externally
src/services/systemReminder.ts:260
↓ 2 callersMethodgenerateFileModificationReminder
(filePath: string)
src/services/fileFreshness.ts:177
↓ 2 callersFunctiongetAbsolutePath
(path: string | undefined)
src/utils/file.ts:307
↓ 2 callersFunctiongetAllTools
()
src/tools.ts:28
↓ 2 callersFunctiongetAssistantMessageFromError
(error: unknown)
src/services/claude.ts:1816
↓ 2 callersFunctiongetCLISyspromptPrefix
()
src/constants/prompts.ts:15
↓ 2 callersFunctiongetCompletionWithProfile
( modelProfile: any, opts: OpenAI.ChatCompletionCreateParams, attempt: number = 0, maxAttempts: number
src/services/openai.ts:482
↓ 2 callersFunctiongetEnvInfo
()
src/constants/prompts.ts:144
↓ 2 callersFunctiongetErrorsPath
()
src/utils/log.ts:76
↓ 2 callersFunctiongetHistory
()
src/history.ts:8
↓ 2 callersFunctiongetMcprcServerStatus
( serverName: string, )
src/services/mcpClient.ts:294
↓ 2 callersFunctiongetMessagesGetter
()
src/messages.ts:11
↓ 2 callersFunctiongetModelCapabilities
(modelName: string)
src/constants/modelCapabilities.ts:160
↓ 2 callersFunctiongetModelConfig
* Helper to get the model config from defaults.
src/utils/model.ts:29
↓ 2 callersFunctiongetModelErrorKey
( baseURL: string, model: string, type: ModelErrorType, )
src/services/openai.ts:69
↓ 2 callersFunctiongetOrCreateUserID
()
src/utils/config.ts:553
↓ 2 callersFunctiongetPastedTextPrompt
(text: string)
src/components/PromptInput.tsx:98
↓ 2 callersFunctiongetReasoningEffort
( modelProfile: any, messages: Message[], )
src/utils/thinking.ts:57
↓ 2 callersFunctiongetSessionFilePath
* 获取会话文件路径 - 使用 sessionId.json 格式
src/utils/expertChatStorage.ts:42
↓ 2 callersFunctiongetThemeColor
(colorName: string, theme: any)
src/components/ModeIndicator.tsx:62
↓ 2 callersFunctiongetTodoConfig
()
src/utils/todoStorage.ts:249
↓ 2 callersFunctiongetToolUseID
(message: NormalizedMessage)
src/utils/messages.tsx:971
↓ 2 callersFunctiongetTotalCost
()
src/cost-tracker.ts:26
↓ 2 callersFunctiongetTotalDuration
()
src/cost-tracker.ts:30
↓ 2 callersFunctiongetUnresolvedToolUseIDs
( normalizedMessages: NormalizedMessage[], )
src/utils/messages.tsx:810
↓ 2 callersFunctiongrantReadPermissionForOriginalDir
()
src/utils/permissions/filesystem.ts:95
↓ 2 callersFunctiongrantWritePermissionForOriginalDir
()
src/utils/permissions/filesystem.ts:118
↓ 2 callersFunctionhandleCancel
()
src/commands/agents.tsx:2403
↓ 2 callersFunctionhandleChange
(value: string)
src/commands/agents.tsx:2397
↓ 2 callersFunctionhandleConfirm
()
src/commands/agents.tsx:2262
↓ 2 callersFunctionhandleConnectionTest
()
src/components/ModelSelector.tsx:2122
↓ 2 callersFunctionhandleHashCommand
(interpreted: string)
src/commands/terminalSetup.ts:54
↓ 2 callersFunctionhandleManageModels
()
src/components/ModelConfig.tsx:128
↓ 2 callersFunctionhandleMessageStream
( stream: ChatCompletionStream, signal?: AbortSignal, )
src/services/claude.ts:714
↓ 2 callersFunctionhandleNavigation
(newIndex: number)
src/hooks/useUnifiedCompletion.ts:1113
↓ 2 callersFunctionhandleSelect
(message: UserMessage)
src/components/MessageSelector.tsx:41
↓ 2 callersFunctionhasError
(data: unknown)
src/services/openai.ts:619
↓ 2 callersFunctionhasFlag
(...flags: string[])
src/index.ts:8
↓ 2 callersFunctionintersects
(a: Set<A>, b: Set<A>)
src/screens/REPL.tsx:796
↓ 2 callersFunctioninvalidateCache
()
src/utils/todoStorage.ts:56
↓ 2 callersFunctionisEmptyMessageText
(text: string)
src/utils/messages.tsx:953
↓ 2 callersFunctionisGPT5ModelName
(modelName: string)
src/utils/config.ts:779
↓ 2 callersFunctionisInDirectory
( relativePath: string, relativeCwd: string, )
src/utils/file.ts:70
↓ 2 callersFunctionisPermissionError
(error: unknown)
src/utils/log.ts:21
← previousnext →201–300 of 1,377, ranked by callers