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
↓ 2 callers
Function
buildTheme
(themeName: string, mode: ColorMode)
src/native-ts/color-diff/index.ts:282
↓ 2 callers
Function
buildToolLookup
(tools: Tools)
src/utils/permissions/yoloClassifier.ts:364
↓ 2 callers
Function
buildTranscriptEntries
(messages: Message[])
src/utils/permissions/yoloClassifier.ts:302
↓ 2 callers
Function
byteAt
(L: Lexer, charIdx: number)
src/utils/bash/bashParser.ts:166
↓ 2 callers
Function
cacheExtraUsageDisabledReason
* Cache the extra usage disabled reason from API headers.
src/services/claudeAiLimits.ts:441
↓ 2 callers
Function
cacheMarketplaceFromUrl
* Cache a marketplace from a URL * * Downloads a marketplace.json file from a URL and saves it locally. * Creates the cache directory structure if
src/utils/plugins/marketplaceManager.ts:1256
↓ 2 callers
Function
cacheToObject
( cache: FileStateCache, )
src/utils/fileStateCache.ts:109
↓ 2 callers
Function
cachedHighlight
(hl: NonNullable<Awaited<ReturnType<typeof getCliHighlightPromise>>>, code: string, language: string)
src/components/HighlightedCode/Fallback.tsx:21
↓ 2 callers
Function
calculateBaseline
(node: Node)
src/native-ts/yoga-layout/index.ts:2304
↓ 2 callers
Function
calculateContextPercentages
( currentUsage: { input_tokens: number cache_creation_input_tokens: number cache_read_input_toke
src/utils/context.ts:118
↓ 2 callers
Method
calculateLayout
(width?: number, _height?: number)
src/ink/layout/yoga.ts:82
↓ 2 callers
Function
calculateShouldShowGrove
( settingsResult: ApiResult<AccountSettings>, configResult: ApiResult<GroveConfig>, showIfAlreadyViewed:
src/services/api/grove.ts:284
↓ 2 callers
Function
calculateStreaks
(dailyActivity: DailyActivity[])
src/utils/stats.ts:853
↓ 2 callers
Function
calculateToolResultTokens
(block: ToolResultBlockParam)
src/services/compact/microCompact.ts:138
↓ 2 callers
Function
callInner
* Inner implementation of call, separated to allow ENOENT handling in the outer call.
src/tools/FileReadTool/FileReadTool.ts:804
↓ 2 callers
Function
callSafe
Call a listener with sync-throw and async-rejection both routed to logError.
src/services/analytics/growthbook.ts:110
↓ 2 callers
Function
camelToSnakeCase
(str: string)
src/services/analytics/datadog.ts:85
↓ 2 callers
Method
cancelReservation
* Cancel a reservation when processQueueIfReady had nothing to process. * Transitions dispatching → idle.
src/utils/QueryGuard.ts:49
↓ 2 callers
Function
canonicalizePath
(dir: string)
src/utils/sessionStoragePortable.ts:339
↓ 2 callers
Function
captureHooksConfigSnapshot
()
src/utils/hooks/hooksConfigSnapshot.ts:95
↓ 2 callers
Function
captureTeammateModeSnapshot
()
src/utils/swarm/backends/teammateModeSnapshot.ts:56
↓ 2 callers
Method
charProperties
(e3, t3)
src/server/web/public/terminal.js:5921
↓ 2 callers
Function
checkAndRefreshOAuthTokenIfNeededImpl
( retryCount: number, force: boolean, )
src/utils/auth.ts:1447
↓ 2 callers
Function
checkAndRestoreTerminalBackup
()
src/utils/appleTerminalBackup.ts:82
↓ 2 callers
Function
checkCommandAndSuggestRules
( input: z.infer<typeof BashTool.inputSchema>, toolPermissionContext: ToolPermissionContext, commandPref
src/tools/BashTool/bashPermissions.ts:1183
↓ 2 callers
Function
checkCrossProjectResume
( log: LogOption, showAllProjects: boolean, worktreePaths: string[], )
src/utils/crossProjectResume.ts:30
↓ 2 callers
Function
checkDuplicateKeysInJson
( jsonString: string, )
src/keybindings/validate.ts:258
↓ 2 callers
Function
checkEarlyExitDeny
* Early-exit deny enforcement for the AST too-complex and checkSemantics * paths. Returns the exact-match result if non-passthrough (deny/ask/allow),
src/tools/BashTool/bashPermissions.ts:1391
↓ 2 callers
Function
checkElements
(cmd: ParsedCommandElement)
src/utils/powershell/parser.ts:1741
↓ 2 callers
Function
checkEnvLessBridgeMinVersion
()
src/bridge/envLessBridgeConfig.ts:147
↓ 2 callers
Function
checkExistingSecret
()
src/commands/install-github-app/install-github-app.tsx:218
↓ 2 callers
Function
checkGlobalInstallPermissions
()
src/utils/autoUpdater.ts:292
↓ 2 callers
Function
checkMcpServerHealth
(name: string, server: ScopedMcpServerConfig)
src/cli/handlers/mcp.tsx:26
↓ 2 callers
Function
checkNeedsClaudeAiLogin
()
src/utils/background/remote/preconditions.ts:23
↓ 2 callers
Function
checkPermissionMode
( input: { command: string }, parsed: ParsedPowerShellCommand, toolPermissionContext: ToolPermissionCont
src/tools/PowerShellTool/modeValidation.ts:132
↓ 2 callers
Function
checkReadOnlyConstraints
( input: z.infer<typeof BashTool.inputSchema>, compoundCommandHasCd: boolean, )
src/tools/BashTool/readOnlyValidation.ts:1876
↓ 2 callers
Function
checkRecordingAvailability
()
src/services/voice.ts:259
↓ 2 callers
Function
checkSemantics
(commands: SimpleCommand[])
src/utils/bash/ast.ts:2213
↓ 2 callers
Function
checkStsCallerIdentity
()
src/utils/aws.ts:50
↓ 2 callers
Function
checkTeamMemSecrets
( filePath: string, content: string, )
src/services/teamMemorySync/teamMemSecretGuard.ts:15
↓ 2 callers
Function
checkVoiceDependencies
()
src/services/voice.ts:190
↓ 2 callers
Function
claimTask
( taskListId: string, taskId: string, claimantAgentId: string, options: ClaimTaskOptions = {}, )
src/utils/tasks.ts:541
↓ 2 callers
Function
classifyCommandName
( name: string, )
src/utils/powershell/parser.ts:800
↓ 2 callers
Function
classifyGuiEditor
(editor: string)
src/utils/editor.ts:49
↓ 2 callers
Function
classifyImageError
* Classifies image processing errors for analytics. * * Uses error codes when available (Node.js module errors), falls back to * message matching f
src/utils/imageResizer.ts:50
↓ 2 callers
Function
classifyYoloAction
( messages: Message[], action: TranscriptEntry, tools: Tools, context: ToolPermissionContext, signal
src/utils/permissions/yoloClassifier.ts:1012
↓ 2 callers
Function
cleanup
()
src/screens/REPL.tsx:2300
↓ 2 callers
Function
cleanup
()
src/services/lsp/LSPClient.ts:125
↓ 2 callers
Function
cleanup
()
src/services/mcp/xaaIdpLogin.ts:281
↓ 2 callers
Method
cleanupAfterCommand
()
src/utils/sandbox/sandbox-adapter.ts:916
↓ 2 callers
Function
cleanupLegacyCache
* Clean up legacy non-versioned cache directories. * * Legacy cache structure: ~/.claude/plugins/cache/{plugin-name}/ * Versioned cache structure:
src/utils/plugins/installedPluginsManager.ts:192
↓ 2 callers
Function
cleanupNpmCacheForAnthropicPackages
()
src/utils/cleanup.ts:438
↓ 2 callers
Function
cleanupOldFilesInDirectory
( dirPath: string, cutoffDate: Date, isMessagePath: boolean, )
src/utils/cleanup.ts:55
↓ 2 callers
Function
cleanupOrphanedPluginVersionsInBackground
()
src/utils/plugins/cacheUtils.ts:74
↓ 2 callers
Function
cleanupPath
(path: string | undefined)
src/ink/components/ErrorOverview.tsx:12
↓ 2 callers
Function
cleanupSecureStorage
()
src/cli/handlers/mcp.tsx:79
↓ 2 callers
Function
cleanupStaleLocks
(locksDir: string)
src/utils/nativeInstaller/pidLock.ts:394
↓ 2 callers
Function
cleanupTeamDirectories
(teamName: string)
src/utils/swarm/teamHelpers.ts:641
↓ 2 callers
Function
cleanupYogaNode
(node: DOMElement | TextNode)
src/ink/reconciler.ts:95
↓ 2 callers
Function
clearAgentDefinitionsCache
()
src/tools/AgentTool/loadAgentsDir.ts:395
↓ 2 callers
Method
clearAllMarkers
()
src/server/web/public/terminal.js:4037
↓ 2 callers
Function
clearApiKeyHelperCache
()
src/utils/auth.ts:585
↓ 2 callers
Function
clearAuthRelatedCaches
()
src/commands/logout/logout.tsx:51
↓ 2 callers
Function
clearAwsCredentialsCache
()
src/utils/auth.ts:809
↓ 2 callers
Function
clearBetasCaches
()
src/utils/betas.ts:430
↓ 2 callers
Method
clearCookie
(res: ServerResponse)
src/server/web/auth/adapter.ts:179
↓ 2 callers
Function
clearDeliveredDiagnosticsForFile
(fileUri: string)
src/services/lsp/LSPDiagnosticRegistry.ts:372
↓ 2 callers
Function
clearGcpCredentialsCache
()
src/utils/auth.ts:983
↓ 2 callers
Method
clearHandler
(e3)
src/server/web/public/terminal.js:4761
↓ 2 callers
Function
clearLegacyApiKeyPrefetch
()
src/utils/secureStorage/keychainPrefetch.ts:114
↓ 2 callers
Function
clearMcpAuthCache
()
src/services/mcp/client.ts:311
↓ 2 callers
Function
clearPluginAgentCache
()
src/utils/plugins/loadPluginAgents.ts:346
↓ 2 callers
Function
clearPluginCommandCache
()
src/utils/plugins/loadPluginCommands.ts:679
↓ 2 callers
Function
clearPluginHookCache
()
src/utils/plugins/loadPluginHooks.ts:159
↓ 2 callers
Function
clearPluginOutputStyleCache
()
src/utils/plugins/loadPluginOutputStyles.ts:176
↓ 2 callers
Function
clearPolicyLimitsCache
()
src/services/policyLimits/index.ts:595
↓ 2 callers
Function
clearPromptCache
()
src/tools/SkillTool/prompt.ts:217
↓ 2 callers
Method
clearRange
()
src/server/web/public/terminal.js:3478
↓ 2 callers
Function
clearRegisteredPluginHooks
()
src/bootstrap/state.ts:1446
↓ 2 callers
Function
clearRemoteManagedSettingsCache
()
src/services/remoteManagedSettings/index.ts:391
↓ 2 callers
Function
clearSessionMetadata
()
src/utils/sessionStorage.ts:2792
↓ 2 callers
Function
clearSkillCaches
()
src/skills/loadSkillsDir.ts:806
↓ 2 callers
Function
clearSpeculativeChecks
()
src/tools/BashTool/bashPermissions.ts:1543
↓ 2 callers
Method
clearTextSelection
Clear the current text selection without copying.
src/ink/ink.tsx:1042
↓ 2 callers
Function
clearToolSchemaCache
()
src/utils/toolSchemaCache.ts:24
↓ 2 callers
Function
clone
(value: T, options?: StructuredSerializeOptions)
src/utils/slowOperations.ts:221
↓ 2 callers
Method
close
* Close the WebSocket connection
src/remote/SessionsWebSocket.ts:369
↓ 2 callers
Function
closeOpenSpans
* Force-close any remaining open spans at session end.
src/utils/telemetry/perfettoTracing.ts:965
↓ 2 callers
Function
coalescePatches
* Coalesce two patches for PUT /worker. * * Top-level keys: overlay replaces base (last value wins). * Metadata keys (external_metadata, internal_m
src/cli/transports/WorkerStateUploader.ts:106
↓ 2 callers
Function
collectCandidatesByMessage
* Extract candidate tool_result blocks grouped by API-level user message. * * normalizeMessagesForAPI merges consecutive user messages into one * (
src/utils/toolResultStorage.ts:600
↓ 2 callers
Function
collectCompactableToolIds
* Walk messages and collect tool_use IDs whose tool name is in * COMPACTABLE_TOOLS, in encounter order. Shared by both microcompact paths.
src/services/compact/microCompact.ts:226
↓ 2 callers
Function
collectContextData
( context: CollectContextDataInput, )
src/commands/context/context-noninteractive.ts:34
↓ 2 callers
Function
collectDirectoryNames
( files: string[], start: number, end: number, out: Set<string>, )
src/hooks/fileSuggestions.ts:420
↓ 2 callers
Function
colorToEscape
(c: Color, fg: boolean, mode: ColorMode)
src/native-ts/color-diff/index.ts:129
↓ 2 callers
Function
colorToString
* Convert termio's Color to the string format used by Ink.
src/ink/Ansi.tsx:196
↓ 2 callers
Function
commandArraysMatch
* Check if two command arrays match exactly
src/services/mcp/config.ts:149
↓ 2 callers
Function
commandHasArgAbbreviation
( command: ParsedCommandElement, fullParam: string, minPrefix: string, )
src/utils/powershell/parser.ts:1663
↓ 2 callers
Function
commitTextField
(fieldName_3: string, schema_1: PrimitiveSchemaDefinition, value_0: string)
src/components/mcp/ElicitationDialog.tsx:365
↓ 2 callers
Function
completeMainSessionTask
( taskId: string, success: boolean, setAppState: SetAppState, )
src/tasks/LocalMainSessionTask.ts:168
↓ 2 callers
Function
compressImageBuffer
( imageBuffer: Buffer, maxBytes: number = IMAGE_TARGET_RAW_SIZE, originalMediaType?: string, )
src/utils/imageResizer.ts:498
← previous
next →
3,001–3,100 of 13,048, ranked by callers