Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codeaashu/claude-code
/ functions
Functions
13,048 in github.com/codeaashu/claude-code
⨍
Functions
13,048
◇
Types & classes
657
↓ 1 callers
Function
pathsEqual
(path1: string, path2: string)
src/utils/file.ts:582
↓ 1 callers
Function
pathsOverlap
* One path is a prefix of the other. Special-cases root (normalize('/') + sep * = '//'). Case-insensitive on win32 since normalize() doesn't lowercas
src/utils/plugins/orphanedPluginFilter.ts:99
↓ 1 callers
Function
patternWithRoot
( pattern: string, source: PermissionRuleSource, )
src/utils/permissions/filesystem.ts:853
↓ 1 callers
Function
peekForStdinData
( stream: NodeJS.EventEmitter, ms: number, )
src/utils/process.ts:50
↓ 1 callers
Function
peekSpeculativeClassifierCheck
( command: string, )
src/tools/BashTool/bashPermissions.ts:1491
↓ 1 callers
Function
performBackgroundPluginInstallations
( setAppState: SetAppState, )
src/services/plugins/PluginInstallationManager.ts:60
↓ 1 callers
Function
performHandoff
()
src/components/DesktopHandoff.tsx:71
↓ 1 callers
Function
performHeapDump
( trigger: 'manual' | 'auto-1.5GB' = 'manual', dumpNumber = 0, )
src/utils/heapDumpService.ts:221
↓ 1 callers
Function
performMCPXaaAuth
* XAA (Cross-App Access) auth. * * One IdP browser login is reused across all XAA-configured MCP servers: * 1. Acquire an id_token from the IdP (ca
src/services/mcp/auth.ts:664
↓ 1 callers
Function
performPluginUpdate
* Perform the actual plugin update: fetch source, calculate version, copy to cache, update disk. * This is the core update execution extracted from u
src/services/plugins/pluginOperations.ts:896
↓ 1 callers
Function
performStartupChecks
(setAppState: SetAppState)
src/utils/plugins/performStartupChecks.tsx:24
↓ 1 callers
Function
permissionComponentForTool
(tool: Tool)
src/components/permissions/PermissionRequest.tsx:47
↓ 1 callers
Function
permissionResultToLog
(permissionResult: PermissionResult)
src/components/permissions/hooks.ts:31
↓ 1 callers
Function
permissionRuleExtractPrefix
( permissionRule: string, )
src/utils/permissions/shellRuleMatching.ts:43
↓ 1 callers
Function
persistRemoteAgentMetadata
* Persist a remote-agent metadata entry to the session sidecar. * Fire-and-forget — persistence failures must not block task registration.
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:92
↓ 1 callers
Method
persistToRemote
(sessionId: UUID, entry: TranscriptMessage)
src/utils/sessionStorage.ts:1302
↓ 1 callers
Function
pickDepthOneUuidCandidate
* Disambiguate multiple `"uuid":"<36>","timestamp":"` matches in one line by * finding the one at JSON nesting depth 1. String-aware brace counter:
src/utils/sessionStorage.ts:3275
↓ 1 callers
Function
pickDiverseCoreFiles
( sortedPaths: string[], want: number, )
src/utils/exampleCommands.ts:56
↓ 1 callers
Function
pickLineFormatInstruction
()
src/tools/FileReadTool/FileReadTool.ts:720
↓ 1 callers
Function
pillNeedsCta
(tasks: BackgroundTaskState[])
src/tasks/pillLabel.ts:74
↓ 1 callers
Function
pinCacheEdits
( userMessageIndex: number, block: import('./cachedMicrocompact.js').CacheEditsBlock, )
src/services/compact/microCompact.ts:111
↓ 1 callers
Function
pluginDisableHandler
( plugin: string | undefined, options: { scope?: string; cowork?: boolean; all?: boolean }, )
src/cli/handlers/plugins.ts:782
↓ 1 callers
Function
pluginEnableHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:740
↓ 1 callers
Function
pluginInstallHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:668
↓ 1 callers
Function
pluginListHandler
(options: { json?: boolean available?: boolean cowork?: boolean })
src/cli/handlers/plugins.ts:157
↓ 1 callers
Function
pluginUninstallHandler
( plugin: string, options: { scope?: string; cowork?: boolean; keepData?: boolean }, )
src/cli/handlers/plugins.ts:704
↓ 1 callers
Function
pluginUpdateHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:846
↓ 1 callers
Function
pluginValidateHandler
( manifestPath: string, options: { cowork?: boolean }, )
src/cli/handlers/plugins.ts:101
↓ 1 callers
Function
poll
()
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:552
↓ 1 callers
Method
poll
(fn: (msg: Message) => boolean = () => true)
src/utils/mailbox.ts:48
↓ 1 callers
Function
pollForApprovedExitPlanMode
( sessionId: string, timeoutMs: number, onPhaseChange?: (phase: UltraplanPhase) => void, shouldStop?:
src/utils/ultraplan/ccrSession.ts:198
↓ 1 callers
Function
pollForResponse
( requestId: string, _agentName?: string, teamName?: string, )
src/utils/swarm/permissionSync.ts:544
↓ 1 callers
Function
pollPolicyLimits
* Background polling callback
src/services/policyLimits/index.ts:613
↓ 1 callers
Function
pollRemoteSettings
* Background polling callback - fetches settings and triggers hot-reload if changed
src/services/remoteManagedSettings/index.ts:584
↓ 1 callers
Function
populateOAuthAccountInfoIfNeeded
()
src/services/oauth/client.ts:451
↓ 1 callers
Method
postOnce
* Single-attempt POST. Throws on retryable failures (429, 5xx, network) * so SerialBatchEventUploader re-queues and retries. Returns on success
src/cli/transports/HybridTransport.ts:202
↓ 1 callers
Method
postStream
* POST that returns the raw Response (for streaming). Timeout is disabled * automatically.
web/lib/api/client.ts:254
↓ 1 callers
Function
powershellCommandIsSafe
( _command: string, parsed: ParsedPowerShellCommand, )
src/tools/PowerShellTool/powershellSecurity.ts:1042
↓ 1 callers
Function
powershellPermissionRule
( permissionRule: string, )
src/tools/PowerShellTool/powershellPermissions.ts:132
↓ 1 callers
Function
powershellToolCheckPermission
( input: PowerShellInput, toolPermissionContext: ToolPermissionContext, )
src/tools/PowerShellTool/powershellPermissions.ts:435
↓ 1 callers
Function
powershellToolHasPermission
( input: PowerShellInput, context: ToolUseContext, )
src/tools/PowerShellTool/powershellPermissions.ts:639
↓ 1 callers
Function
powershellToolUseOptions
({ suggestions = [], onRejectFeedbackChange, onAcceptFeedbackChange, yesInputMode = false, noInputMo
src/components/permissions/PowerShellPermissionRequest/powershellToolUseOptions.tsx:7
↓ 1 callers
Function
preconnectAnthropicApi
()
src/utils/apiPreconnect.ts:31
↓ 1 callers
Function
prefetchApiKeyFromApiKeyHelperIfSafe
( isNonInteractiveSession: boolean, )
src/utils/auth.ts:591
↓ 1 callers
Function
prefetchAwsCredentialsAndBedRockInfoIfSafe
()
src/utils/auth.ts:1023
↓ 1 callers
Function
prefetchGcpCredentialsIfSafe
()
src/utils/auth.ts:994
↓ 1 callers
Function
prefetchOfficialMcpUrls
()
src/services/mcp/officialRegistry.ts:33
↓ 1 callers
Function
prefetchPassesEligibility
()
src/services/api/referral.ts:274
↓ 1 callers
Function
prefetchSystemContextIfSafe
* Prefetch system context (including git status) only when it's safe to do so. * Git commands can execute arbitrary code via hooks and config (e.g.,
src/main.tsx:360
↓ 1 callers
Function
prepareIfConditionMatcher
* Prepare a matcher for hook `if` conditions. Expensive work (tool lookup, * Zod validation, tree-sitter parsing for Bash) happens once here; the *
src/utils/hooks.ts:1390
↓ 1 callers
Function
prepareMessagesForInjection
(messages: Message[])
src/services/PromptSuggestion/speculation.ts:203
↓ 1 callers
Function
prepareServers
()
src/components/mcp/MCPSettings.tsx:70
↓ 1 callers
Function
prependBaseDir
( blocks: ContentBlockParam[], baseDir: string, )
src/skills/bundledSkills.ts:208
↓ 1 callers
Function
prependModeCharacterToInput
( input: string, mode: PromptInputMode, )
src/components/PromptInput/inputModes.ts:4
↓ 1 callers
Function
prependPathRefs
( content: string | Array<ContentBlockParam>, prefix: string, )
src/bridge/inboundAttachments.ts:142
↓ 1 callers
Function
prependToShellHistoryCache
(command: string)
src/utils/suggestions/shellHistoryCompletion.ts:74
↓ 1 callers
Function
presenceAddUser
( state: PresenceState, user: CollabUser )
web/lib/collaboration/presence.ts:31
↓ 1 callers
Function
presenceRemoveUser
( state: PresenceState, userId: string )
web/lib/collaboration/presence.ts:38
↓ 1 callers
Function
presenceUpdateCursor
( state: PresenceState, userId: string, position: number, selectionStart?: number, selectionEnd?: nu
web/lib/collaboration/presence.ts:60
↓ 1 callers
Method
prevVimWord
()
src/utils/Cursor.ts:737
↓ 1 callers
Method
prevWORD
()
src/utils/Cursor.ts:821
↓ 1 callers
Function
prewarmModifiers
()
src/utils/modifiers.ts:9
↓ 1 callers
Function
primeKeychainCacheFromPrefetch
(stdout: string | null)
src/utils/secureStorage/macOsKeychainHelpers.ts:98
↓ 1 callers
Function
printBanner
()
src/bridge/stub.ts:42
↓ 1 callers
Function
printHelp
()
src/bridge/bridgeMain.ts:1889
↓ 1 callers
Function
probeSeedCacheAnyVersion
( pluginId: string, )
src/utils/plugins/pluginLoader.ts:220
↓ 1 callers
Function
probeTmuxControlModeSync
* Sync one-shot probe: asks tmux directly whether this client is in control * mode via `#{client_control_mode}`. Runs on first isTmuxControlMode() ca
src/utils/fullscreen.ts:56
↓ 1 callers
Function
process
(msg: InMessage)
web/lib/workers/markdown.worker.ts:53
↓ 1 callers
Function
processAdjacentLines
(lineObjects: LineObject[])
src/components/StructuredDiff/Fallback.tsx:153
↓ 1 callers
Function
processAgentMentions
( input: string, agents: AgentDefinition[], )
src/utils/attachments.ts:1966
↓ 1 callers
Function
processAssistantMessage
( msg: AssistantMessage | NormalizedAssistantMessage, breakdown: MessageBreakdown, )
src/utils/analyzeContext.ts:782
↓ 1 callers
Function
processAtMentionedFiles
( input: string, toolUseContext: ToolUseContext, )
src/utils/attachments.ts:1894
↓ 1 callers
Function
processAttachment
( msg: AttachmentMessage, breakdown: MessageBreakdown, )
src/utils/analyzeContext.ts:839
↓ 1 callers
Function
processBashCommand
(inputString: string, precedingInputBlocks: ContentBlockParam[], attachmentMessages: AttachmentMessage[], cont
src/utils/processUserInput/processBashCommand.tsx:17
↓ 1 callers
Function
processBlock
( block: ContentBlockParam | ContentBlock | BetaContentBlock, message: UserMessage | AssistantMessage, s
src/utils/contextAnalysis.ts:99
↓ 1 callers
Function
processChunk
* Process a chunk of input data
src/utils/earlyInput.ts:72
↓ 1 callers
Function
processDispatchQueue
* Execute collected listeners with propagation control. * * Before each handler, calls event._prepareForTarget(node) so event * subclasses can do p
src/ink/events/dispatcher.ts:87
↓ 1 callers
Function
processElements
(elements: MarkdownToken[])
src/utils/claudemd.ts:494
↓ 1 callers
Function
processInitialMessage
(initialMsg: NonNullable<typeof pending>)
src/screens/REPL.tsx:3035
↓ 1 callers
Function
processMCPResult
( result: unknown, tool: string, // Tool name for validation (e.g., "search") name: string, // Server na
src/services/mcp/client.ts:2720
↓ 1 callers
Function
processMcpResourceAttachments
( input: string, toolUseContext: ToolUseContext, )
src/utils/attachments.ts:1995
↓ 1 callers
Function
processOrphanedPluginVersion
( versionPath: string, now: number, )
src/utils/plugins/cacheUtils.ts:149
↓ 1 callers
Function
processPreMappedToolResultBlock
( toolResultBlock: ToolResultBlockParam, toolName: string, maxResultSizeChars: number, )
src/utils/toolResultStorage.ts:232
↓ 1 callers
Function
processProgressMessages
* Process progress messages to group consecutive search/read operations into summaries. * For ants only - returns original messages for non-ants. *
src/tools/AgentTool/UI.tsx:100
↓ 1 callers
Function
processPromptSlashCommand
(commandName: string, args: string, commands: Command[], context: ToolUseContext, imageContentBlocks: ContentB
src/utils/processUserInput/processSlashCommand.tsx:817
↓ 1 callers
Function
processQueueIfReady
({ executeInput, }: ProcessQueueParams)
src/utils/queueProcessor.ts:52
↓ 1 callers
Function
processQueuedCommands
* Process queued commands to cap task notifications at MAX_VISIBLE_NOTIFICATIONS lines. * Other command types are always shown in full. * Idle notif
src/components/PromptInput/PromptInputQueuedCommands.tsx:47
↓ 1 callers
Function
processResponse
* Process a permission response by invoking the registered callback
src/hooks/useSwarmPermissionPoller.ts:231
↓ 1 callers
Function
processSandboxPermissionResponse
(params: { requestId: string host: string allow: boolean })
src/hooks/useSwarmPermissionPoller.ts:201
↓ 1 callers
Method
processSequence
(seq: string)
src/ink/termio/parser.ts:339
↓ 1 callers
Function
processStraddle
( s: LoadState, chunk: Buffer, bytesRead: number, )
src/utils/sessionStoragePortable.ts:572
↓ 1 callers
Method
processText
(text: string)
src/ink/termio/parser.ts:309
↓ 1 callers
Function
processTextPrompt
( input: string | Array<ContentBlockParam>, imageContentBlocks: ContentBlockParam[], imagePasteIds: numb
src/utils/processUserInput/processTextPrompt.ts:19
↓ 1 callers
Method
processToken
(token: Token)
src/ink/termio/parser.ts:299
↓ 1 callers
Function
processUserInputBase
( input: string | Array<ContentBlockParam>, mode: PromptInputMode, setToolJSX: SetToolJSXFn, context:
src/utils/processUserInput/processUserInput.ts:281
↓ 1 callers
Function
processUserMessage
( msg: UserMessage | NormalizedUserMessage, breakdown: MessageBreakdown, toolUseIdToName: Map<string, st
src/utils/analyzeContext.ts:805
↓ 1 callers
Function
processedStatsToClaudeCodeStats
* Convert ProcessedStats to ClaudeCodeStats. * Used for filtered date ranges that bypass the cache.
src/utils/stats.ts:749
↓ 1 callers
Function
productionDeps
()
src/query/deps.ts:33
↓ 1 callers
Function
projectIsInGitRepo
(cwd: string)
src/utils/memory/versions.ts:6
↓ 1 callers
Method
proposeDimensions
()
src/server/web/public/terminal.js:6177
← previous
next →
7,901–8,000 of 13,048, ranked by callers