MCPcopy Create free account

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

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

↓ 1 callersFunctionaddShellCommandToAnusHistory
( anusClient: AnusClient, rawQuery: string, resultText: string, )
packages/cli/src/ui/hooks/shellCommandProcessor.ts:33
↓ 1 callersMethodanalyzeContentChunksForLoop
* Analyzes content in fixed-size chunks to detect repetitive patterns. * * Uses a sliding window approach: * 1. Extract chunks of fixed size
packages/core/src/services/loopDetectionService.ts:238
↓ 1 callersMethodasFullyQualifiedTool
()
packages/core/src/tools/mcp-tool.ts:185
↓ 1 callersFunctionauthFlow
()
packages/cli/src/ui/hooks/useAuthCommand.ts:45
↓ 1 callersMethodauthRequired
(details?: string)
packages/cli/src/zed-integration/acp.ts:326
↓ 1 callersFunctionauthWithUserCode
(client: OAuth2Client)
packages/core/src/code_assist/oauth2.ts:203
↓ 1 callersFunctionauthWithWeb
(client: OAuth2Client)
packages/core/src/code_assist/oauth2.ts:249
↓ 1 callersFunctionbackupFile
(filePath: string)
packages/cli/src/ui/utils/terminalSetup.ts:100
↓ 1 callersMethodbuildAuthorizationUrl
* Build the authorization URL with PKCE parameters. * * @param config OAuth configuration * @param pkceParams PKCE parameters * @param mcp
packages/core/src/mcp/oauth-provider.ts:279
↓ 1 callersMethodbuildChatSystemPrompt
* Builds the system prompt for the chat based on the provided configurations. * It templates the base system prompt and appends instructions for em
packages/core/src/core/subagent.ts:654
↓ 1 callersMethodbuildResultCache
()
packages/core/src/utils/filesearch/fileSearch.ts:173
↓ 1 callersFunctioncacheCredentials
(credentials: Credentials)
packages/core/src/code_assist/oauth2.ts:383
↓ 1 callersFunctioncalculateInitialCursorPosition
( initialLines: string[], offset: number, )
packages/cli/src/ui/components/shared/text-buffer.ts:571
↓ 1 callersMethodcancel
(params: schema.CancelNotification)
packages/cli/src/zed-integration/acp.ts:366
↓ 1 callersMethodcancelPendingPrompt
()
packages/cli/src/zed-integration/zedIntegration.ts:198
↓ 1 callersFunctioncapitalize
(s: string)
packages/cli/src/ui/components/ThemeDialog.tsx:59
↓ 1 callersFunctioncheckBooleanDefaults
(schema: Record<string, unknown>)
packages/cli/src/config/settingsSchema.test.ts:160
↓ 1 callersMethodcheckContentLoop
* Detects content loops by analyzing streaming text for repetitive patterns. * * The algorithm works by: * 1. Appending new content to the st
packages/core/src/services/loopDetectionService.ts:166
↓ 1 callersMethodcheckForLoopWithLLM
(signal: AbortSignal)
packages/core/src/services/loopDetectionService.ts:325
↓ 1 callersFunctioncheckModelChange
()
packages/cli/src/ui/App.tsx:373
↓ 1 callersMethodcheckToolCallLoop
(toolCall: { name: string; args: object })
packages/core/src/services/loopDetectionService.ts:134
↓ 1 callersFunctioncleanup
()
packages/cli/src/ui/hooks/useBracketedPaste.ts:20
↓ 1 callersFunctioncleanup
()
scripts/telemetry_utils.js:376
↓ 1 callersFunctioncleanupCheckpoints
()
packages/cli/src/utils/cleanup.ts:29
↓ 1 callersMethodcloseDiff
* Closes an open diff view for a specific file.
packages/vscode-ide-companion/src/diff-manager.ts:135
↓ 1 callersFunctioncollect
(it: AsyncIterable<T>)
packages/core/src/providers/grok/contentGenerator.stream.test.ts:29
↓ 1 callersFunctioncollectDependencies
(packageName, packageLock, dependenciesMap)
packages/vscode-ide-companion/scripts/generate-notices.js:90
↓ 1 callersFunctioncompactSchema
* Compact JSON schema by removing descriptions and unnecessary properties - ULTRA AGGRESSIVE
packages/core/src/providers/grok/tools.ts:72
↓ 1 callersFunctionconcatenateInstructions
( instructionContents: AnusFileContent[], // CWD is needed to resolve relative paths for display markers
packages/core/src/utils/memoryDiscovery.ts:275
↓ 1 callersFunctionconfigureCursor
()
packages/cli/src/ui/utils/terminalSetup.ts:283
↓ 1 callersFunctionconfigureVSCode
()
packages/cli/src/ui/utils/terminalSetup.ts:279
↓ 1 callersFunctionconfigureWindsurf
()
packages/cli/src/ui/utils/terminalSetup.ts:287
↓ 1 callersFunctionconnectAndDiscover
( mcpServerName: string, mcpServerConfig: MCPServerConfig, toolRegistry: ToolRegistry, promptRegistry:
packages/core/src/tools/mcp-client.ts:373
↓ 1 callersFunctioncopyFilesRecursive
(source, target)
scripts/copy_files.js:33
↓ 1 callersFunctioncorrectNewStringEscaping
( anusClient: AnusClient, oldString: string, potentiallyProblematicNewString: string, abortSignal: Abo
packages/core/src/utils/editCorrector.ts:532
↓ 1 callersFunctioncorrectOldStringMismatch
( anusClient: AnusClient, fileContent: string, problematicSnippet: string, abortSignal: AbortSignal, )
packages/core/src/utils/editCorrector.ts:375
↓ 1 callersFunctioncorrectStringEscaping
( potentiallyProblematicString: string, client: AnusClient, abortSignal: AbortSignal, )
packages/core/src/utils/editCorrector.ts:604
↓ 1 callersFunctioncreate
* Recursively creates files and directories based on the provided `FileSystemStructure`. * @param dir The base directory where the structure will be
packages/test-utils/src/file-system-test-helpers.ts:59
↓ 1 callersMethodcreateChatObject
(context: ContextState)
packages/core/src/core/subagent.ts:552
↓ 1 callersFunctioncreateCodeAssistContentGenerator
( httpOptions: HttpOptions, authType: AuthType, config: Config, sessionId?: string, )
packages/core/src/code_assist/codeAssist.ts:14
↓ 1 callersFunctioncreateCustomTheme
(customTheme: CustomTheme)
packages/cli/src/ui/themes/theme.ts:223
↓ 1 callersMethodcreateFileSnapshot
(message: string)
packages/core/src/services/gitService.ts:108
↓ 1 callersFunctioncreateInitialMetrics
()
packages/core/src/telemetry/uiTelemetry.ts:85
↓ 1 callersFunctioncreateInitialModelMetrics
()
packages/core/src/telemetry/uiTelemetry.ts:69
↓ 1 callersMethodcreateInvocation
( params: LSToolParams, )
packages/core/src/tools/ls.ts:340
↓ 1 callersFunctioncreateLogger
( context: vscode.ExtensionContext, logger: vscode.OutputChannel, )
packages/vscode-ide-companion/src/utils/logger.ts:10
↓ 1 callersFunctioncreateMcpServer
(diffManager: DiffManager)
packages/vscode-ide-companion/src/ide-server.ts:243
↓ 1 callersFunctioncreateMockCallableTool
( toolDeclarations: FunctionDeclaration[], )
packages/core/src/tools/tool-registry.test.ts:94
↓ 1 callersFunctioncreateMultipleFiles
(count: number, contentPrefix = 'Content')
packages/core/src/tools/read-many-files.test.ts:531
↓ 1 callersFunctioncreateTempFilesForModify
( currentContent: string, proposedContent: string, file_path: string, )
packages/core/src/tools/modifiable-tool.ts:53
↓ 1 callersFunctioncreateToolCallErrorMessage
( expectedTools: string | string[], foundTools: string[], result: string, )
integration-tests/test-helper.ts:26
↓ 1 callersMethodcreateToolRegistry
()
packages/core/src/config/config.ts:723
↓ 1 callersFunctiondefaultSummarizer
( result: ToolResult, _anusClient: AnusClient, _abortSignal: AbortSignal, )
packages/core/src/utils/summarizer.ts:38
↓ 1 callersMethoddeleteContent
(uri: vscode.Uri)
packages/vscode-ide-companion/src/diff-manager.ts:34
↓ 1 callersFunctiondeleteTempFiles
(oldPath: string, newPath: string)
packages/core/src/tools/modifiable-tool.ts:123
↓ 1 callersFunctiondetectAndEnableKittyProtocol
()
packages/cli/src/ui/utils/kittyProtocolDetector.ts:17
↓ 1 callersFunctiondetectCommandSubstitution
(command: string)
packages/core/src/utils/shell-utils.ts:227
↓ 1 callersFunctiondetectTerminal
()
packages/cli/src/ui/utils/terminalSetup.ts:55
↓ 1 callersFunctiondetermineSurface
* Determine the surface that the user is currently using. Surface is effectively the * distribution channel in which the user is using ANUS. ANUS c
packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts:94
↓ 1 callersFunctiondisableSimulationAfterFallback
()
packages/core/src/utils/testUtils.ts:52
↓ 1 callersMethoddiscoverAndRegisterToolsFromCommand
()
packages/core/src/tools/tool-registry.ts:286
↓ 1 callersMethoddiscoverMcpTools
* Discovers tools from project (if available and configured). * Can be called multiple times to update discovered tools. * This will NOT discove
packages/core/src/tools/tool-registry.ts:241
↓ 1 callersMethoddiscoverOAuthFromMCPServer
* Discover OAuth configuration from an MCP server URL. * * @param mcpServerUrl The MCP server URL * @returns OAuth configuration if discovere
packages/core/src/mcp/oauth-provider.ts:145
↓ 1 callersMethoddiscoverOAuthFromWWWAuthenticate
* Discover OAuth configuration from WWW-Authenticate header. * * @param wwwAuthenticate The WWW-Authenticate header value * @returns The disc
packages/core/src/mcp/oauth-utils.ts:265
↓ 1 callersMethoddiscoverToolsForServer
* Discover or re-discover tools for a single MCP server. * @param serverName - The name of the server to discover tools from.
packages/core/src/tools/tool-registry.ts:262
↓ 1 callersFunctiondownloadFile
(url, dest)
scripts/telemetry_utils.js:64
↓ 1 callersFunctionensureAnusDirExists
()
packages/core/src/utils/user_id.ts:18
↓ 1 callersMethodensureConfigDir
* Ensure the config directory exists.
packages/core/src/mcp/oauth-token-storage.ts:56
↓ 1 callersMethodensureParentDirectoriesExist
* Creates parent directories if they don't exist
packages/core/src/tools/edit.ts:408
↓ 1 callersFunctionensureSandboxImageIsPresent
( sandbox: string, image: string, )
packages/cli/src/utils/sandbox.ts:915
↓ 1 callersFunctionentrypoint
(workdir: string)
packages/cli/src/utils/sandbox.ts:118
↓ 1 callersMethodexchangeCodeForToken
* Exchange authorization code for tokens. * * @param config OAuth configuration * @param code Authorization code * @param codeVerifier PKC
packages/core/src/mcp/oauth-provider.ts:336
↓ 1 callersMethodextractInjections
* Iteratively parses the prompt string to extract shell injections (!{...}), * correctly handling nested braces within the command. * * @para
packages/cli/src/services/prompt-processors/shellProcessor.ts:202
↓ 1 callersFunctionextractWWWAuthenticateHeader
* Extract WWW-Authenticate header from error message string. * This is a more robust approach than regex matching. * * @param errorString The error
packages/core/src/tools/mcp-client.ts:160
↓ 1 callersFunctionfetchAndSetSuggestions
()
packages/cli/src/ui/hooks/useSlashCompletion.ts:132
↓ 1 callersFunctionfetchUserMessages
()
packages/cli/src/ui/App.tsx:734
↓ 1 callersFunctionfetchWithTimeout
( url: string, timeout: number, )
packages/core/src/utils/fetch.ts:40
↓ 1 callersFunctionfindEnclosingCodeBlockStart
( content: string, index: number, )
packages/cli/src/ui/utils/markdownUtilities.ts:69
↓ 1 callersFunctionfindEnvFile
(startDir: string)
packages/cli/src/config/settings.ts:202
↓ 1 callersFunctionfindFile
(startPath, filter)
scripts/telemetry_utils.js:76
↓ 1 callersFunctionfindLastEditTimestamp
* Will look through the ANUSent history and determine when the most recent * edit to a target file occurred. If no edit happened, it will return -1
packages/core/src/utils/editCorrector.ts:81
↓ 1 callersFunctionfindProjectRoot
(startDir: string)
packages/core/src/utils/memoryDiscovery.ts:43
↓ 1 callersFunctionfindProjectRoot
(startDir: string)
packages/core/src/utils/memoryImportProcessor.ts:52
↓ 1 callersFunctionfindSourceFiles
(dir, allFiles = [])
scripts/check-build-status.js:36
↓ 1 callersFunctionfindVsCodeCommand
()
packages/core/src/ide/ide-installer.ts:27
↓ 1 callersFunctionflattenSchema
( schema: SettingsSchema, prefix = '', )
packages/cli/src/utils/settingsUtils.ts:19
↓ 1 callersFunctionformatFileList
(openFiles: File[])
packages/cli/src/ui/commands/ideCommand.ts:57
↓ 1 callersFunctionformatMemoryUsage
(bytes: number)
packages/core/src/utils/formatters.ts:8
↓ 1 callersFunctionformatStructure
* Reads the directory structure using BFS, respecting maxItems. * @param node The current node in the reduced structure. * @param indent The current
packages/core/src/utils/getFolderStructure.ts:225
↓ 1 callersFunctionfromCountTokenResponse
( res: CaCountTokenResponse, )
packages/core/src/code_assist/converter.ts:110
↓ 1 callersMethodfullyResolvedPath
* Fully resolves a path, including symbolic links. * If the path does not exist, it returns the fully resolved path as it would be * if it did e
packages/core/src/utils/workspaceContext.ts:147
↓ 1 callersMethodgeneratePKCEParams
* Generate PKCE parameters for OAuth flow. * * @returns PKCE parameters including code verifier, challenge, and state
packages/core/src/mcp/oauth-provider.ts:157
↓ 1 callersFunctiongenerateSettingsItems
()
packages/cli/src/ui/components/SettingsDialog.tsx:121
↓ 1 callersFunctiongetAllContextFilenames
()
packages/core/src/tools/memoryTool.ts:99
↓ 1 callersMethodgetAnusIgnorePatterns
* Returns loaded patterns from .anusignore
packages/core/src/services/fileDiscoveryService.ts:106
↓ 1 callersFunctiongetAnusMdFilePathsInternal
( currentWorkingDirectory: string, includeDirectoriesToReadAnus: readonly string[], userHomePath: string
packages/core/src/utils/memoryDiscovery.ts:87
↓ 1 callersFunctiongetAnusMdFilePathsInternalForEachDir
( dir: string, userHomePath: string, debugMode: boolean, fileService: FileDiscoveryService, extensio
packages/core/src/utils/memoryDiscovery.ts:117
↓ 1 callersMethodgetAvailableEditorDisplays
()
packages/cli/src/ui/editors/editorSettingsManager.ts:62
↓ 1 callersFunctiongetAvailablePort
()
packages/core/src/code_assist/oauth2.ts:323
↓ 1 callersFunctiongetBestAvailableUpdate
* From a nightly and stable update, determines which is the "best" one to offer. * The rule is to always prefer nightly if the base versions are the
packages/cli/src/ui/utils/updateCheck.ts:23
← previousnext →801–900 of 1,620, ranked by callers