Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tanbiralam/claude-code
/ functions
Functions
11,484 in github.com/tanbiralam/claude-code
⨍
Functions
11,484
◇
Types & classes
506
↓ 2 callers
Function
detectAndUninstallDelistedPlugins
()
src/utils/plugins/pluginBlocklist.ts:64
↓ 2 callers
Function
detectAsdf
()
src/utils/nativeInstaller/packageManagers.ts:81
↓ 2 callers
Function
detectColorMode
(theme: string)
src/native-ts/color-diff/index.ts:95
↓ 2 callers
Function
detectCommandSubstitution
( prev: ParseEntry | undefined, kept: ParseEntry[], index: number, )
src/utils/bash/commands.ts:1143
↓ 2 callers
Function
detectFileEncoding
(filePath: string)
src/utils/file.ts:100
↓ 2 callers
Function
detectGateway
({ headers, baseUrl, }: { headers?: globalThis.Headers baseUrl?: string })
src/services/api/logging.ts:107
↓ 2 callers
Function
detectJetBrainsIDEFromParentProcessAsync
()
src/utils/envDynamic.ts:64
↓ 2 callers
Function
detectLanguage
( filePath: string, firstLine: string | null, )
src/native-ts/color-diff/index.ts:422
↓ 2 callers
Function
detectLineEndingsForString
(content: string)
src/utils/fileRead.ts:51
↓ 2 callers
Function
detectMagicDocHeader
( content: string, )
src/services/MagicDocs/magicDocs.ts:52
↓ 2 callers
Function
detectMise
()
src/utils/nativeInstaller/packageManagers.ts:62
↓ 2 callers
Function
detectPackageManager
()
src/services/voice.ts:151
↓ 2 callers
Function
detectPromptTooLong
* Detect API 400 "prompt is too long: N tokens > M maximum" errors and * parse the token counts. Returns undefined for any other error. * These are
src/utils/permissions/yoloClassifier.ts:1463
↓ 2 callers
Function
detectRunningIDEs
()
src/utils/ide.ts:1154
↓ 2 callers
Function
detectShell
()
src/utils/completionCache.ts:24
↓ 2 callers
Function
detectWinget
()
src/utils/nativeInstaller/packageManagers.ts:133
↓ 2 callers
Function
diff
(before: AnyObject, after: AnyObject)
src/ink/reconciler.ts:62
↓ 2 callers
Function
diffMarketplaces
( declared: Record<string, DeclaredMarketplace>, materialized: KnownMarketplacesFile, opts?: { projectRo
src/utils/plugins/reconciler.ts:50
↓ 2 callers
Function
disableAudioBellForProfile
(profileName: string)
src/commands/terminalSetup/terminalSetup.tsx:289
↓ 2 callers
Method
discard
* Discards all pending and in-progress tools. Called when streaming fallback * occurs and results from the failed attempt should be abandoned. *
src/services/tools/StreamingToolExecutor.ts:69
↓ 2 callers
Method
dispatchDiscrete
* Dispatch with discrete (sync) priority. * For user-initiated events: keyboard, click, focus, paste.
src/ink/events/dispatcher.ts:207
↓ 2 callers
Function
dispose
()
src/utils/hooks/fileChangedWatcher.ts:177
↓ 2 callers
Method
doDisconnect
()
src/cli/transports/WebSocketTransport.ts:380
↓ 2 callers
Function
doDownloadUserSettings
( maxRetries = DEFAULT_MAX_RETRIES, )
src/services/settingsSync/index.ts:157
↓ 2 callers
Function
doRequest
()
src/services/mcp/client.ts:374
↓ 2 callers
Function
doUninstall
(deleteDataDir: boolean)
src/commands/plugin/ManagePlugins.tsx:1556
↓ 2 callers
Function
doesMostRecentAssistantMessageExceed200k
( messages: Message[], )
src/utils/tokens.ts:159
↓ 2 callers
Function
done
(result: T)
src/interactiveHelpers.tsx:41
↓ 2 callers
Method
down
()
src/utils/Cursor.ts:377
↓ 2 callers
Method
downLogicalLine
()
src/utils/Cursor.ts:533
↓ 2 callers
Function
downloadUserSettings
()
src/services/settingsSync/index.ts:129
↓ 2 callers
Function
downloadVersionFromBinaryRepo
( version: string, stagingPath: string, baseUrl: string, authConfig?: { auth?: { username: string;
src/utils/nativeInstaller/download.ts:382
↓ 2 callers
Method
drain
* Drain loop. At most one instance runs at a time (guarded by this.draining). * Sends batches serially. On failure, backs off and retries indefinit
src/cli/transports/SerialBatchEventUploader.ts:156
↓ 2 callers
Function
drainFlushGate
()
src/bridge/remoteBridgeCore.ts:607
↓ 2 callers
Function
drainFlushGate
()
src/bridge/replBridge.ts:848
↓ 2 callers
Method
drainWriteQueue
()
src/utils/sessionStorage.ts:645
↓ 2 callers
Function
dropContainedSpans
* Drops spans that are fully contained within another span, keeping only the * outermost. Nested quotes (e.g., `"$(echo 'hi')"`) yield overlapping sp
src/utils/bash/treeSitterAnalysis.ts:159
↓ 2 callers
Function
dropSubtreeCache
(node: DOMElement)
src/ink/render-node-to-output.ts:1450
↓ 2 callers
Function
dumpErrorPrompts
* Dump classifier input prompts + context-comparison diagnostics on API error. * Written to a session-scoped file in the claude temp dir so /share ca
src/utils/permissions/yoloClassifier.ts:213
↓ 2 callers
Function
eagerParseCliFlag
( flagName: string, argv: string[] = process.argv, )
src/utils/cliArgs.ts:13
↓ 2 callers
Function
embedTextInBorder
( borderLine: string, text: string, align: 'start' | 'end' | 'center', offset: number = 0, borderCha
src/ink/render-border.ts:35
↓ 2 callers
Function
emitHookStarted
( hookId: string, hookName: string, hookEvent: string, )
src/utils/hooks/hookEvents.ts:93
↓ 2 callers
Function
emitProcessMetadata
* Emit metadata events for a process/agent
src/utils/telemetry/perfettoTracing.ts:340
↓ 2 callers
Function
enable
()
src/utils/cronScheduler.ts:396
↓ 2 callers
Function
enableOptionAsMetaForProfile
(profileName: string)
src/commands/terminalSetup/terminalSetup.tsx:270
↓ 2 callers
Function
endLLMRequestSpan
( span?: Span, metadata?: { inputTokens?: number outputTokens?: number cacheReadTokens?: numbe
src/utils/telemetry/sessionTracing.ts:353
↓ 2 callers
Method
endOfVimWord
()
src/utils/Cursor.ts:691
↓ 2 callers
Method
endOfWORD
()
src/utils/Cursor.ts:788
↓ 2 callers
Function
endToolBlockedOnUserSpan
( decision?: string, source?: string, )
src/utils/telemetry/sessionTracing.ts:577
↓ 2 callers
Function
endToolExecutionSpan
(metadata?: { success?: boolean error?: string })
src/utils/telemetry/sessionTracing.ts:657
↓ 2 callers
Method
enqueue
(value: T)
src/utils/stream.ts:38
↓ 2 callers
Method
enqueue
* If flush is active, queue the items and return true. * If flush is not active, return false (caller should send directly).
src/bridge/flushGate.ts:46
↓ 2 callers
Function
enqueueRemoteReviewFailureNotification
* Enqueue a remote-review failure notification.
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:347
↓ 2 callers
Function
enqueueResult
(value: string)
src/utils/processUserInput/processSlashCommand.tsx:126
↓ 2 callers
Function
ensureModelStringsInitialized
()
src/utils/model/modelStrings.ts:152
↓ 2 callers
Function
ensurePermissionDirsAsync
* Ensure the permissions directory structure exists (async)
src/utils/swarm/permissionSync.ts:133
↓ 2 callers
Function
ensureServerStarted
* Ensure the appropriate LSP server is started for the given file. * Returns undefined if no server handles this file type. * * @throws {Erro
src/services/lsp/LSPServerManager.ts:215
↓ 2 callers
Function
envSessionKind
* Kind override from env. Set by the spawner (`claude --bg`, daemon * supervisor) so the child can register without the parent having to * write the
src/utils/concurrentSessions.ts:31
↓ 2 callers
Method
error
(message: string, ...args: unknown[])
src/utils/computerUse/hostAdapter.ts:25
↓ 2 callers
Function
escapeXmlAttr
(s: string)
src/utils/xml.ts:14
↓ 2 callers
Function
estimateSkillFrontmatterTokens
(skill: Command)
src/skills/loadSkillsDir.ts:100
↓ 2 callers
Function
evictOldestEvents
* Drop the oldest half of events[] when over MAX_EVENTS. Called from the * stale-span cleanup interval (60s). The half-batch splice keeps this * amo
src/utils/telemetry/perfettoTracing.ts:232
↓ 2 callers
Function
evictOldestIfAtCap
()
src/utils/imageStore.ts:115
↓ 2 callers
Function
evictStaleSpans
* Evict pending spans older than STALE_SPAN_TTL_MS. * Mirrors the TTL cleanup pattern in sessionTracing.ts.
src/utils/telemetry/perfettoTracing.ts:187
↓ 2 callers
Function
execHttpHook
( hook: HttpHook, _hookEvent: HookEvent, jsonInput: string, signal?: AbortSignal, )
src/utils/hooks/execHttpHook.ts:123
↓ 2 callers
Function
executeEnvHooks
( hookInput: HookInput, timeoutMs: number, )
src/utils/hooks.ts:4241
↓ 2 callers
Function
executeInBackground
({ processId, hookId, shellCommand, asyncResponse, hookEvent, hookName, command, asyncRewake,
src/utils/hooks.ts:184
↓ 2 callers
Function
executeIndent
( dir: '>' | '<', count: number, ctx: OperatorContext, )
src/vim/operators.ts:348
↓ 2 callers
Function
executeInstructionsLoadedHooks
( filePath: string, memoryType: InstructionsMemoryType, loadReason: InstructionsLoadReason, options?:
src/utils/hooks.ts:4335
↓ 2 callers
Function
executeJoin
(count: number, ctx: OperatorContext)
src/vim/operators.ts:258
↓ 2 callers
Function
executeLineOp
( op: Operator, count: number, ctx: OperatorContext, )
src/vim/operators.ts:102
↓ 2 callers
Function
executeNonStreamingRequest
( clientOptions: { model: string fetchOverride?: Options['fetchOverride'] source: string },
src/services/api/claude.ts:818
↓ 2 callers
Function
executeOperatorFind
( op: Operator, findType: FindType, char: string, count: number, ctx: OperatorContext, )
src/vim/operators.ts:59
↓ 2 callers
Function
executeOperatorTextObj
( op: Operator, scope: TextObjScope, objType: string, count: number, ctx: OperatorContext, )
src/vim/operators.ts:80
↓ 2 callers
Function
executePostCompactHooks
( compactData: { trigger: 'manual' | 'auto' compactSummary: string }, signal?: AbortSignal, ti
src/utils/hooks.ts:4034
↓ 2 callers
Function
executeReplace
( char: string, count: number, ctx: OperatorContext, )
src/vim/operators.ts:199
↓ 2 callers
Function
executeTaskCompletedHooks
( taskId: string, taskSubject: string, taskDescription?: string, teammateName?: string, teamName?: s
src/utils/hooks.ts:3789
↓ 2 callers
Function
executeToggleCase
(count: number, ctx: OperatorContext)
src/vim/operators.ts:222
↓ 2 callers
Function
executeUserInput
* Core logic for executing user input without UI side effects. * * All commands arrive as `queuedCommands`. First command gets full treatment * (at
src/utils/handlePromptSubmit.ts:396
↓ 2 callers
Function
executeWorktreeRemoveHook
( worktreePath: string, )
src/utils/hooks.ts:4967
↓ 2 callers
Function
executeX
(count: number, ctx: OperatorContext)
src/vim/operators.ts:171
↓ 2 callers
Function
expandKey
Key for click-to-expand: tool_use_id where available (so tool_use + its * tool_result expand together), else uuid for groups/thinking.
src/components/Messages.tsx:725
↓ 2 callers
Function
expandString
(str: string)
src/services/mcp/config.ts:562
↓ 2 callers
Function
extractAgentMentions
(content: string)
src/utils/attachments.ts:2802
↓ 2 callers
Function
extractBashCommentLabel
(command: string)
src/tools/BashTool/commentLabel.ts:8
↓ 2 callers
Function
extractBashToolsFromMessages
(messages: Message[])
src/utils/queryHelpers.ts:507
↓ 2 callers
Function
extractCommandName
* Extract the command name from a PowerShell command string. * Uses the parser to get the first command name from the AST.
src/tools/PowerShellTool/powershellPermissions.ts:118
↓ 2 callers
Function
extractConversationText
(messages: Message[])
src/utils/sessionTitle.ts:33
↓ 2 callers
Function
extractFromServerConfigRecord
( serverConfigs: Record<string, unknown>, )
src/utils/plugins/lspRecommendation.ts:112
↓ 2 callers
Function
extractFunctionHooks
( sessionMatchers: SessionHookMatcher[], )
src/utils/hooks/sessionHooks.ts:357
↓ 2 callers
Function
extractGitHubRepoFromGitUrl
* Extract GitHub owner/repo from a git URL if it's a GitHub URL. * Returns null if not a GitHub URL. * * Handles: * - git@github.com:owner/repo.gi
src/utils/plugins/marketplaceHelpers.ts:348
↓ 2 callers
Function
extractHostFromSource
( source: MarketplaceSource, )
src/utils/plugins/marketplaceHelpers.ts:235
↓ 2 callers
Function
extractInboundMessageFields
( msg: SDKMessage, )
src/bridge/inboundMessages.ts:21
↓ 2 callers
Function
extractJsonStringFieldPrefix
* Like extractJsonStringField but returns the first `maxLen` characters of the * value even when the closing quote is missing (truncated buffer). New
src/utils/sessionStorage.ts:4921
↓ 2 callers
Function
extractMcpToolDetails
(toolName: string)
src/services/analytics/metadata.ts:176
↓ 2 callers
Function
extractMcpToolDisplayName
(userFacingName: string)
src/services/mcp/mcpStringUtils.ts:88
↓ 2 callers
Function
extractPDFPages
( filePath: string, options?: { firstPage?: number; lastPage?: number }, )
src/utils/pdf.ts:179
↓ 2 callers
Function
extractPartialResult
( messages: MessageType[], )
src/tools/AgentTool/agentToolUtils.ts:488
↓ 2 callers
Function
extractPathsFromCommand
* Extract file paths from a parsed PowerShell command element. * Uses the AST args to find positional and named path parameters. * * If any path ar
src/tools/PowerShellTool/pathValidation.ts:1304
↓ 2 callers
Function
extractPathsFromText
(textContent: string)
src/utils/claudemd.ts:458
← previous
next →
2,801–2,900 of 11,484, ranked by callers