Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Austin1serb/Anthropic-Leaked-Source-Code
/ functions
Functions
11,462 in github.com/Austin1serb/Anthropic-Leaked-Source-Code
⨍
Functions
11,462
◇
Types & classes
340
↓ 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
utils/plugins/marketplaceManager.ts:1256
↓ 2 callers
Function
cacheToObject
( cache: FileStateCache, )
utils/fileStateCache.ts:109
↓ 2 callers
Function
cachedHighlight
(hl: NonNullable<Awaited<ReturnType<typeof getCliHighlightPromise>>>, code: string, language: string)
components/HighlightedCode/Fallback.tsx:21
↓ 2 callers
Function
calculateBaseline
(node: Node)
native-ts/yoga-layout/index.ts:2304
↓ 2 callers
Function
calculateContextPercentages
( currentUsage: { input_tokens: number cache_creation_input_tokens: number cache_read_input_toke
utils/context.ts:118
↓ 2 callers
Method
calculateLayout
(width?: number, _height?: number)
ink/layout/yoga.ts:82
↓ 2 callers
Function
calculateShouldShowGrove
( settingsResult: ApiResult<AccountSettings>, configResult: ApiResult<GroveConfig>, showIfAlreadyViewed:
services/api/grove.ts:284
↓ 2 callers
Function
calculateStreaks
(dailyActivity: DailyActivity[])
utils/stats.ts:853
↓ 2 callers
Function
calculateToolResultTokens
(block: ToolResultBlockParam)
services/compact/microCompact.ts:138
↓ 2 callers
Function
callInner
* Inner implementation of call, separated to allow ENOENT handling in the outer call.
tools/FileReadTool/FileReadTool.ts:804
↓ 2 callers
Function
callSafe
Call a listener with sync-throw and async-rejection both routed to logError.
services/analytics/growthbook.ts:110
↓ 2 callers
Function
camelToSnakeCase
(str: string)
services/analytics/datadog.ts:85
↓ 2 callers
Method
cancelReservation
* Cancel a reservation when processQueueIfReady had nothing to process. * Transitions dispatching → idle.
utils/QueryGuard.ts:49
↓ 2 callers
Function
canonicalizePath
(dir: string)
utils/sessionStoragePortable.ts:339
↓ 2 callers
Function
captureHooksConfigSnapshot
()
utils/hooks/hooksConfigSnapshot.ts:95
↓ 2 callers
Function
captureTeammateModeSnapshot
()
utils/swarm/backends/teammateModeSnapshot.ts:56
↓ 2 callers
Function
checkAndRefreshOAuthTokenIfNeededImpl
( retryCount: number, force: boolean, )
utils/auth.ts:1447
↓ 2 callers
Function
checkAndRestoreTerminalBackup
()
utils/appleTerminalBackup.ts:82
↓ 2 callers
Function
checkCommandAndSuggestRules
( input: z.infer<typeof BashTool.inputSchema>, toolPermissionContext: ToolPermissionContext, commandPref
tools/BashTool/bashPermissions.ts:1183
↓ 2 callers
Function
checkCrossProjectResume
( log: LogOption, showAllProjects: boolean, worktreePaths: string[], )
utils/crossProjectResume.ts:30
↓ 2 callers
Function
checkDuplicateKeysInJson
( jsonString: string, )
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),
tools/BashTool/bashPermissions.ts:1391
↓ 2 callers
Function
checkElements
(cmd: ParsedCommandElement)
utils/powershell/parser.ts:1741
↓ 2 callers
Function
checkEnvLessBridgeMinVersion
()
bridge/envLessBridgeConfig.ts:147
↓ 2 callers
Function
checkExistingSecret
()
commands/install-github-app/install-github-app.tsx:218
↓ 2 callers
Function
checkGlobalInstallPermissions
()
utils/autoUpdater.ts:292
↓ 2 callers
Function
checkMcpServerHealth
(name: string, server: ScopedMcpServerConfig)
cli/handlers/mcp.tsx:26
↓ 2 callers
Function
checkNeedsClaudeAiLogin
()
utils/background/remote/preconditions.ts:23
↓ 2 callers
Function
checkPermissionMode
( input: { command: string }, parsed: ParsedPowerShellCommand, toolPermissionContext: ToolPermissionCont
tools/PowerShellTool/modeValidation.ts:132
↓ 2 callers
Function
checkReadOnlyConstraints
( input: z.infer<typeof BashTool.inputSchema>, compoundCommandHasCd: boolean, )
tools/BashTool/readOnlyValidation.ts:1876
↓ 2 callers
Function
checkRecordingAvailability
()
services/voice.ts:259
↓ 2 callers
Function
checkSemantics
(commands: SimpleCommand[])
utils/bash/ast.ts:2213
↓ 2 callers
Function
checkStsCallerIdentity
()
utils/aws.ts:50
↓ 2 callers
Function
checkTeamMemSecrets
( filePath: string, content: string, )
services/teamMemorySync/teamMemSecretGuard.ts:15
↓ 2 callers
Function
checkVoiceDependencies
()
services/voice.ts:190
↓ 2 callers
Function
claimTask
( taskListId: string, taskId: string, claimantAgentId: string, options: ClaimTaskOptions = {}, )
utils/tasks.ts:541
↓ 2 callers
Function
classifyCommandName
( name: string, )
utils/powershell/parser.ts:800
↓ 2 callers
Function
classifyGuiEditor
(editor: string)
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
utils/imageResizer.ts:50
↓ 2 callers
Function
classifyYoloAction
( messages: Message[], action: TranscriptEntry, tools: Tools, context: ToolPermissionContext, signal
utils/permissions/yoloClassifier.ts:1012
↓ 2 callers
Function
cleanup
()
services/lsp/LSPClient.ts:125
↓ 2 callers
Function
cleanup
()
services/mcp/xaaIdpLogin.ts:281
↓ 2 callers
Method
cleanupAfterCommand
()
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:
utils/plugins/installedPluginsManager.ts:192
↓ 2 callers
Function
cleanupNpmCacheForAnthropicPackages
()
utils/cleanup.ts:438
↓ 2 callers
Function
cleanupOldFilesInDirectory
( dirPath: string, cutoffDate: Date, isMessagePath: boolean, )
utils/cleanup.ts:55
↓ 2 callers
Function
cleanupOrphanedPluginVersionsInBackground
()
utils/plugins/cacheUtils.ts:74
↓ 2 callers
Function
cleanupPath
(path: string | undefined)
ink/components/ErrorOverview.tsx:12
↓ 2 callers
Function
cleanupSecureStorage
()
cli/handlers/mcp.tsx:79
↓ 2 callers
Function
cleanupStaleLocks
(locksDir: string)
utils/nativeInstaller/pidLock.ts:394
↓ 2 callers
Function
cleanupTeamDirectories
(teamName: string)
utils/swarm/teamHelpers.ts:641
↓ 2 callers
Function
cleanupYogaNode
(node: DOMElement | TextNode)
ink/reconciler.ts:95
↓ 2 callers
Function
clearAgentDefinitionsCache
()
tools/AgentTool/loadAgentsDir.ts:395
↓ 2 callers
Function
clearApiKeyHelperCache
()
utils/auth.ts:585
↓ 2 callers
Function
clearAuthRelatedCaches
()
commands/logout/logout.tsx:51
↓ 2 callers
Function
clearAwsCredentialsCache
()
utils/auth.ts:809
↓ 2 callers
Function
clearBetasCaches
()
utils/betas.ts:430
↓ 2 callers
Function
clearDeliveredDiagnosticsForFile
(fileUri: string)
services/lsp/LSPDiagnosticRegistry.ts:372
↓ 2 callers
Function
clearGcpCredentialsCache
()
utils/auth.ts:983
↓ 2 callers
Function
clearLegacyApiKeyPrefetch
()
utils/secureStorage/keychainPrefetch.ts:114
↓ 2 callers
Function
clearMcpAuthCache
()
services/mcp/client.ts:311
↓ 2 callers
Function
clearPluginAgentCache
()
utils/plugins/loadPluginAgents.ts:346
↓ 2 callers
Function
clearPluginCommandCache
()
utils/plugins/loadPluginCommands.ts:679
↓ 2 callers
Function
clearPluginHookCache
()
utils/plugins/loadPluginHooks.ts:159
↓ 2 callers
Function
clearPluginOutputStyleCache
()
utils/plugins/loadPluginOutputStyles.ts:176
↓ 2 callers
Function
clearPolicyLimitsCache
()
services/policyLimits/index.ts:595
↓ 2 callers
Function
clearPromptCache
()
tools/SkillTool/prompt.ts:217
↓ 2 callers
Function
clearRegisteredPluginHooks
()
bootstrap/state.ts:1446
↓ 2 callers
Function
clearRemoteManagedSettingsCache
()
services/remoteManagedSettings/index.ts:391
↓ 2 callers
Function
clearSessionMetadata
()
utils/sessionStorage.ts:2792
↓ 2 callers
Function
clearSkillCaches
()
skills/loadSkillsDir.ts:806
↓ 2 callers
Function
clearSpeculativeChecks
()
tools/BashTool/bashPermissions.ts:1543
↓ 2 callers
Method
clearTextSelection
Clear the current text selection without copying.
ink/ink.tsx:1042
↓ 2 callers
Function
clearToolSchemaCache
()
utils/toolSchemaCache.ts:24
↓ 2 callers
Function
clone
(value: T, options?: StructuredSerializeOptions)
utils/slowOperations.ts:221
↓ 2 callers
Method
close
* Close the WebSocket connection
remote/SessionsWebSocket.ts:369
↓ 2 callers
Function
closeOpenSpans
* Force-close any remaining open spans at session end.
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
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 * (
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.
services/compact/microCompact.ts:226
↓ 2 callers
Function
collectContextData
( context: CollectContextDataInput, )
commands/context/context-noninteractive.ts:34
↓ 2 callers
Function
collectDirectoryNames
( files: string[], start: number, end: number, out: Set<string>, )
hooks/fileSuggestions.ts:420
↓ 2 callers
Function
colorToEscape
(c: Color, fg: boolean, mode: ColorMode)
native-ts/color-diff/index.ts:129
↓ 2 callers
Function
colorToString
* Convert termio's Color to the string format used by Ink.
ink/Ansi.tsx:196
↓ 2 callers
Function
commandArraysMatch
* Check if two command arrays match exactly
services/mcp/config.ts:149
↓ 2 callers
Function
commandHasArgAbbreviation
( command: ParsedCommandElement, fullParam: string, minPrefix: string, )
utils/powershell/parser.ts:1663
↓ 2 callers
Function
commitTextField
(fieldName_3: string, schema_1: PrimitiveSchemaDefinition, value_0: string)
components/mcp/ElicitationDialog.tsx:365
↓ 2 callers
Function
completeMainSessionTask
( taskId: string, success: boolean, setAppState: SetAppState, )
tasks/LocalMainSessionTask.ts:168
↓ 2 callers
Function
compressImageBuffer
( imageBuffer: Buffer, maxBytes: number = IMAGE_TARGET_RAW_SIZE, originalMediaType?: string, )
utils/imageResizer.ts:498
↓ 2 callers
Function
computeFileModificationState
* Compute the character contribution for a file modification. * Returns the FileAttributionState to store, or null if tracking failed.
utils/commitAttribution.ts:325
↓ 2 callers
Function
computeFingerprint
( messageText: string, version: string, )
utils/fingerprint.ts:50
↓ 2 callers
Function
computeInitialTeamContext
()
utils/swarm/reconnection.ts:23
↓ 2 callers
Function
computeNewLimitsFromHeaders
( headers: globalThis.Headers, )
services/claudeAiLimits.ts:376
↓ 2 callers
Function
computeSimpleEnvInfo
( modelId: string, additionalWorkingDirectories?: string[], )
constants/prompts.ts:651
↓ 2 callers
Function
computeToolHashes
()
services/api/promptCacheBreakDetection.ts:285
↓ 2 callers
Function
computeTurnStats
(turn: TurnDiff)
hooks/useTurnDiffs.ts:79
↓ 2 callers
Function
computeWheelStep
(state: WheelAccelState, dir: 1 | -1, now: number)
components/ScrollKeybindingHandler.tsx:176
↓ 2 callers
Function
configureGlobalAgents
()
utils/proxy.ts:327
↓ 2 callers
Method
connect
* Connect to the sessions WebSocket endpoint
remote/SessionsWebSocket.ts:100
↓ 2 callers
Function
connectMcpBatch
(configs: Record<string, ScopedMcpServerConfig>, label: string)
main.tsx:2691
← previous
next →
2,601–2,700 of 11,462, ranked by callers