MCPcopy Create free account

hub / github.com/anus-dev/ANUS / functions

Functions1,620 in github.com/anus-dev/ANUS

↓ 226 callersMethodbuild
* Validates raw parameters and builds a ready-to-execute invocation. * @param params The raw, untrusted parameters from the model. * @returns A
packages/core/src/tools/tools.ts:137
↓ 161 callersFunctionrenderWithProviders
( component: React.ReactElement, )
packages/cli/src/test-utils/render.tsx:12
↓ 118 callersMethodexecute
* Executes the tool with the validated parameters. * @param signal AbortSignal for tool cancellation. * @param updateOutput Optional callback to
packages/core/src/tools/tools.ts:51
↓ 108 callersMethodtoHaveOnlyValidCharacters
()
packages/cli/src/test-utils/customMatchers.ts:62
↓ 105 callersFunctioncreateKey
(name: string, mods: Partial<Key> = {})
packages/cli/src/ui/keyMatchers.test.ts:14
↓ 105 callersFunctionparseArguments
()
packages/cli/src/config/config.ts:79
↓ 102 callersFunctionwait
(ms = 50)
packages/cli/src/ui/components/InputPrompt.test.tsx:197
↓ 95 callersFunctiongetBufferState
(result: { current: TextBuffer })
packages/cli/src/ui/components/shared/text-buffer.test.ts:177
↓ 95 callersFunctionhandleVimAction
( state: TextBufferState, action: VimAction, )
packages/cli/src/ui/components/shared/vim-buffer-actions.ts:78
↓ 89 callersFunctionloadCliConfig
( settings: Settings, extensions: Extension[], sessionId: string, argv: CliArgs, cwd: string = proce
packages/cli/src/config/config.ts:315
↓ 82 callersMethoddebug
(msg: string)
packages/cli/src/zed-integration/zedIntegration.ts:759
↓ 75 callersFunctioncreateTestState
( lines: string[] = ['hello world'], cursorRow = 0, cursorCol = 0, )
packages/cli/src/ui/components/shared/vim-buffer-actions.test.ts:13
↓ 73 callersMethodaddAndCheck
* Processes a stream event and checks for loop conditions. * @param event - The stream event to process * @returns true if a loop is detected, f
packages/core/src/services/loopDetectionService.ts:89
↓ 67 callersFunctionrenderVimHook
(buffer?: Partial<TextBuffer>)
packages/cli/src/ui/hooks/vim.test.ts:144
↓ 65 callersFunctioncreateTool
(name: string)
packages/core/src/providers/grok/tool-filter.test.ts:20
↓ 63 callersFunctiongetErrorMessage
(error: unknown)
packages/core/src/utils/errors.ts:18
↓ 62 callersFunctioncreateMockCommandContext
( overrides: DeepPartial<CommandContext> = {}, )
packages/cli/src/test-utils/mockCommandContext.ts:28
↓ 62 callersMethodget
(key: K)
packages/core/src/utils/LruCache.ts:17
↓ 59 callersFunctionuseTextBuffer
({ initialText = '', initialCursorOffset = 0, viewport, stdin, setRawMode, onChange, isValidPath
packages/cli/src/ui/components/shared/text-buffer.ts:1491
↓ 58 callersFunctioncreateContentEvent
(content: string)
packages/core/src/services/loopDetectionService.test.ts:55
↓ 58 callersFunctioncreateTmpDir
( structure: FileSystemStructure, )
packages/test-utils/src/file-system-test-helpers.ts:85
↓ 58 callersFunctionisMessageAction
(result: unknown)
packages/cli/src/ui/commands/mcpCommand.test.ts:39
↓ 57 callersMethodmkdir
(dir: string)
integration-tests/test-helper.ts:189
↓ 57 callersFunctiontestPath
(...segments: string[])
packages/core/src/utils/memoryImportProcessor.test.ts:15
↓ 55 callersMethodadd
* Adds one or more ignore patterns. * @param patterns A single pattern string or an array of pattern strings. * Each pattern can
packages/core/src/utils/filesearch/ignore.ts:64
↓ 50 callersFunctioncpLen
(str: string)
packages/cli/src/ui/utils/textUtils.ts:33
↓ 50 callersFunctionloadSettings
(workspaceDir: string)
packages/cli/src/config/settings.ts:315
↓ 49 callersFunctiondebugLog
(category: string, message: string, data?: any)
packages/core/src/providers/grok/debug-logger.ts:50
↓ 48 callersMethodgetTargetDir
()
packages/core/src/config/config.ts:467
↓ 47 callersFunctioncreateMockBuffer
( text = 'hello world', cursor: [number, number] = [0, 5], )
packages/cli/src/ui/hooks/vim.test.ts:52
↓ 47 callersFunctionwait
(ms = 50)
packages/cli/src/ui/components/SettingsDialog.test.tsx:62
↓ 45 callersFunctionoffsetToLogicalPos
( text: string, offset: number, )
packages/cli/src/ui/components/shared/text-buffer.ts:598
↓ 44 callersFunctionisValidColor
(color: string)
packages/cli/src/ui/themes/color-utils.ts:180
↓ 43 callersMethodclose
()
packages/core/src/core/logger.ts:431
↓ 42 callersFunctioncreateTestFile
(...pathSegments: string[])
packages/core/src/utils/getFolderStructure.test.ts:24
↓ 41 callersMethodinitialize
()
packages/core/src/utils/filesearch/fileSearch.ts:87
↓ 40 callersMethodreadFile
(fileName: string)
integration-tests/test-helper.ts:324
↓ 39 callersMethodgetDebugMode
()
packages/core/src/config/config.ts:487
↓ 38 callersFunctioncreateMockSettings
( userSettings = {}, systemSettings = {}, workspaceSettings = {}, )
packages/cli/src/ui/components/SettingsDialog.test.tsx:76
↓ 38 callersMethodgetModel
()
packages/core/src/config/config.ts:414
↓ 37 callersMethodloadCommands
* Discovers and returns a list of slash commands from the loader's source. * @param signal An AbortSignal to allow cancellation. * @returns A pr
packages/cli/src/services/types.ts:24
↓ 37 callersFunctiontextBufferReducer
( state: TextBufferState, action: TextBufferAction, )
packages/cli/src/ui/components/shared/text-buffer.ts:986
↓ 36 callersFunctioncreateTestFile
(fullPath: string, fileContents: string)
packages/cli/src/ui/hooks/atCommandProcessor.test.ts:32
↓ 36 callersMethodisIgnored
(filePath: string)
packages/core/src/utils/gitIgnoreParser.ts:14
↓ 36 callersMethodprocess
* Processes a prompt string, applying a specific transformation as part of a pipeline. * * Each processor in a command's pipeline receives the o
packages/cli/src/services/prompt-processors/types.ts:32
↓ 35 callersMethodgetDirectories
* Gets a copy of all workspace directories. * @returns Array of absolute directory paths
packages/core/src/utils/workspaceContext.ts:99
↓ 35 callersMethodgetHistory
()
packages/core/src/core/client.ts:173
↓ 35 callersMethodset
(key: K, value: V)
packages/core/src/utils/LruCache.ts:27
↓ 34 callersFunctionescapePath
(filePath: string)
packages/core/src/utils/paths.ts:134
↓ 33 callersFunctionaccountsFile
()
packages/core/src/utils/user_account.test.ts:29
↓ 33 callersMethodgetDescription
* Gets a pre-execution description of the tool operation. * @returns A markdown string describing what the tool will do.
packages/core/src/tools/tools.ts:29
↓ 33 callersMethodgetExcludeTools
()
packages/core/src/config/config.ts:502
↓ 33 callersFunctionresolveColor
(colorValue: string)
packages/cli/src/ui/themes/color-utils.ts:207
↓ 33 callersFunctionsetupProcessorHook
( builtinCommands: SlashCommand[] = [], fileCommands: SlashCommand[] = [], mcpCommands: SlashComma
packages/cli/src/ui/hooks/slashCommandProcessor.test.ts:122
↓ 31 callersMethodisPathWithinWorkspace
* Checks if a given path is within any of the workspace directories. * @param pathToCheck The path to validate * @returns True if the path is wi
packages/core/src/utils/workspaceContext.ts:127
↓ 31 callersFunctionisWordCharStrict
(char: string)
packages/cli/src/ui/components/shared/text-buffer.ts:39
↓ 31 callersMethodshouldConfirmExecute
* Determines if the tool should prompt for confirmation before execution. * @returns Confirmation details or false if no confirmation is needed.
packages/core/src/tools/tools.ts:41
↓ 30 callersMethodgetWorkspaceContext
()
packages/core/src/config/config.ts:475
↓ 30 callersMethodsearch
(pattern: string, options?: SearchOptions)
packages/core/src/utils/filesearch/fileSearch.ts:88
↓ 29 callersFunctioncreateTestCommand
( overrides: Partial<SlashCommand>, kind: CommandKind = CommandKind.BUILT_IN, )
packages/cli/src/ui/hooks/slashCommandProcessor.test.ts:90
↓ 29 callersFunctiongetCoreSystemPrompt
(userMemory?: string)
packages/core/src/core/prompts.ts:23
↓ 29 callersFunctiongetUserCommandsDir
()
packages/core/src/utils/paths.ts:192
↓ 29 callersFunctionhandleAtCommand
({ query, config, addItem, onDebugMessage, messageId: userMessageTimestamp, signal, }: HandleAtCom
packages/cli/src/ui/hooks/atCommandProcessor.ts:127
↓ 29 callersMethodvalidateToolParams
* Validates the parameters for the tool * @param params Parameters to validate * @returns An error message string if invalid, null otherwise
packages/core/src/tools/ls.ts:318
↓ 28 callersMethodcreateLogEvent
(eventName: EventNames, data: EventValue[] = [])
packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts:204
↓ 28 callersFunctionunescapeStringForAnusBug
(inputString: string)
packages/core/src/utils/editCorrector.ts:689
↓ 26 callersMethodenqueueLogEvent
(event: LogEvent)
packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts:176
↓ 26 callersMethodgetAnusClient
()
packages/core/src/config/config.ts:582
↓ 26 callersMethodgetChat
()
packages/core/src/core/client.ts:162
↓ 26 callersFunctionmockTextPart
(text: string)
packages/core/src/utils/generateContentResponseUtilities.test.ts:26
↓ 26 callersFunctionuseKeypress
( onKeypress: KeypressHandler, { isActive }: { isActive: boolean }, )
packages/cli/src/ui/hooks/useKeypress.ts:24
↓ 26 callersFunctionvalidateImportPath
( importPath: string, basePath: string, allowedDirectories: string[], )
packages/core/src/utils/memoryImportProcessor.ts:404
↓ 25 callersFunctionisSubpath
(parentPath: string, childPath: string)
packages/core/src/utils/paths.ts:211
↓ 24 callersMethodaddEvent
(event: UiEvent)
packages/core/src/telemetry/uiTelemetry.ts:106
↓ 24 callersMethodgetActiveTheme
* Gets the currently active theme. * @returns The active theme.
packages/cli/src/ui/themes/theme-manager.ts:128
↓ 24 callersFunctionparseAndFormatApiError
( error: unknown, authType?: AuthType, userTier?: UserTierId, currentModel?: string, fallbackModel?:
packages/core/src/utils/errorParsing.ts:103
↓ 24 callersFunctionpartToString
( value: PartListUnion, options?: { verbose?: boolean }, )
packages/core/src/utils/partUtils.ts:14
↓ 24 callersMethodsendMessageStream
( request: PartListUnion, signal: AbortSignal, prompt_id: string, turns: number = MAX_TURNS,
packages/core/src/core/client.ts:448
↓ 23 callersMethodcreate
(options: FileSearchOptions)
packages/core/src/utils/filesearch/fileSearch.ts:232
↓ 23 callersFunctioncreateFile
(filePath: string, content = '')
packages/core/src/tools/read-many-files.test.ts:196
↓ 23 callersFunctionloadIgnoreRules
(options: LoadIgnoreRulesOptions)
packages/core/src/utils/filesearch/ignore.ts:22
↓ 22 callersFunctionaddFile
(uri: vscode.Uri)
packages/vscode-ide-companion/src/open-files-manager.test.ts:105
↓ 22 callersFunctioncrawl
(options: CrawlOptions)
packages/core/src/utils/filesearch/crawler.ts:31
↓ 22 callersFunctiongetSystemEncoding
()
packages/core/src/utils/systemEncoding.ts:53
↓ 22 callersFunctiongetUri
(path: string)
packages/vscode-ide-companion/src/open-files-manager.test.ts:102
↓ 22 callersFunctionlogicalPosToOffset
( lines: string[], row: number, col: number, )
packages/cli/src/ui/components/shared/text-buffer.ts:651
↓ 22 callersFunctionmockFunctionCallPart
( name: string, args?: Record<string, unknown>, )
packages/core/src/utils/generateContentResponseUtilities.test.ts:27
↓ 22 callersFunctionprocessImports
( content: string, basePath: string, debugMode: boolean = false, importState: ImportState = { proc
packages/core/src/utils/memoryImportProcessor.ts:206
↓ 22 callersFunctiontoCodePoints
(str: string)
packages/cli/src/ui/utils/textUtils.ts:27
↓ 21 callersFunctiongetInstallationInfo
( projectRoot: string, isAutoUpdateDisabled: boolean, )
packages/cli/src/utils/installationInfo.ts:33
↓ 21 callersMethodrecordHistory
( userInput: Content, modelOutput: Content[], automaticFunctionCallingHistory?: Content[], )
packages/core/src/core/anusChat.ts:492
↓ 21 callersMethodreset
* Resets all loop detection state.
packages/core/src/services/loopDetectionService.ts:398
↓ 21 callersMethodsetValue
( scope: SettingScope, key: K, value: Settings[K], )
packages/cli/src/config/settings.ts:148
↓ 21 callersFunctionwindowsCodePageToEncoding
(cp: number)
packages/core/src/utils/systemEncoding.ts:115
↓ 20 callersMethodclear
()
packages/core/src/utils/LruCache.ts:39
↓ 20 callersFunctioncreateTestFile
(fullPath: string, fileContents: string)
packages/core/src/utils/memoryDiscovery.test.ts:39
↓ 20 callersFunctioncreateTestFile
(content: string, ...pathSegments: string[])
packages/core/src/utils/bfsFileSearch.test.ts:24
↓ 20 callersFunctionformatDuration
(milliseconds: number)
packages/cli/src/ui/utils/formatters.ts:25
↓ 20 callersMethodgetMcpServers
()
packages/core/src/config/config.ts:522
↓ 20 callersFunctionisNodeError
(error: unknown)
packages/core/src/utils/errors.ts:14
next →1–100 of 1,620, ranked by callers