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
↓ 1 callers
Function
handleStopHooks
( messagesForQuery: Message[], assistantMessages: AssistantMessage[], systemPrompt: SystemPrompt, user
query/stopHooks.ts:65
↓ 1 callers
Function
handleSubmit
()
commands/install-github-app/install-github-app.tsx:268
↓ 1 callers
Function
handleSubmitCode
(value: string, url: string)
components/ConsoleOAuthFlow.tsx:155
↓ 1 callers
Function
handleSubmitCode
(value: string, url: string)
commands/install-github-app/OAuthFlowStep.tsx:67
↓ 1 callers
Method
handleSuccessRedirect
* Completes the OAuth flow by redirecting the user's browser to a success page. * Different success pages are shown based on the granted scopes.
services/oauth/auth-code-listener.ts:80
↓ 1 callers
Function
handleSwarmWorkerPermission
* Handles the swarm worker permission flow. * * When running as a swarm worker: * 1. Tries classifier auto-approval for bash commands * 2. Forward
hooks/toolPermission/handlers/swarmWorkerHandler.ts:40
↓ 1 callers
Function
handleTeleport
()
components/tasks/RemoteSessionDetailDialog.tsx:831
↓ 1 callers
Function
handleTeleportPrerequisites
* Helper function to handle teleport prerequisites (authentication and git state) * Shows TeleportError dialog rendered into the existing root if nee
utils/teleport.tsx:509
↓ 1 callers
Function
handleToggleAutoUpdate
(marketplace: MarketplaceState)
commands/plugin/ManageMarketplaces.tsx:391
↓ 1 callers
Function
handleTransportPermanentClose
* Body of the transport's setOnClose callback, hoisted to initBridgeCore * scope so /bridge-kick can fire it directly. setOnClose wraps this with
bridge/replBridge.ts:887
↓ 1 callers
Function
handleUrlSchemeLaunch
()
utils/deepLink/protocolHandler.ts:84
↓ 1 callers
Function
handleValidationError
( error: unknown, modelName: string, )
utils/model/validateModel.ts:84
↓ 1 callers
Function
handleWrapper
( command: string, args: string[], recursionDepth: number, wrapperCount: number, )
utils/bash/prefix.ts:72
↓ 1 callers
Function
handleWrite
(selected_1)
commands/copy/copy.tsx:222
↓ 1 callers
Function
hasActualOperatorNodes
(rootNode: unknown)
utils/bash/treeSitterAnalysis.ts:421
↓ 1 callers
Function
hasAnthropicApiKeyAuth
()
utils/auth.ts:219
↓ 1 callers
Function
hasAnyProps
(props: SpanProps)
ink/Ansi.tsx:215
↓ 1 callers
Function
hasAnyTextProps
(props: SpanProps)
ink/Ansi.tsx:218
↓ 1 callers
Function
hasBackslashEscapedOperator
(command: string)
tools/BashTool/bashSecurity.ts:1631
↓ 1 callers
Function
hasBackslashEscapedWhitespace
* Detects backslash-escaped whitespace characters (space, tab) outside of quotes. * * In bash, `echo\ test` is a single token (command named "echo t
tools/BashTool/bashSecurity.ts:1549
↓ 1 callers
Function
hasCommandArgs
(input: string)
utils/suggestions/commandSuggestions.ts:208
↓ 1 callers
Method
hasCompletedResults
* Check if there are any completed results ready to yield
services/tools/StreamingToolExecutor.ts:495
↓ 1 callers
Function
hasContentAfterIndex
(messages: RenderableMessage[], index: number, tools: Tools, streamingToolUseIDs: Set<string>)
components/MessageRow.tsx:50
↓ 1 callers
Function
hasCursorUpViewportYankBug
()
ink/terminal.ts:177
↓ 1 callers
Function
hasDangerousSettingsChanged
( oldSettings: SettingsJson | null | undefined, newSettings: SettingsJson | null | undefined, )
components/ManagedSettingsSecurityDialog/utils.ts:87
↓ 1 callers
Method
hasExecutingTools
* Check if there are any tools still executing
services/tools/StreamingToolExecutor.ts:502
↓ 1 callers
Function
hasExistingEnvironment
()
commands/remote-setup/api.ts:102
↓ 1 callers
Function
hasFileArgs
(command: string)
tools/BashTool/sedValidation.ts:307
↓ 1 callers
Function
hasForegroundTasks
(state: AppState)
tasks/LocalShellTask/LocalShellTask.tsx:378
↓ 1 callers
Function
hasFrictionSignal
(messages: Message[])
hooks/useIssueFlagBanner.ts:74
↓ 1 callers
Function
hasGlobs
(path: string)
utils/sandbox/sandbox-adapter.ts:616
↓ 1 callers
Function
hasGrowthBookEnvOverride
(feature: string)
services/analytics/growthbook.ts:199
↓ 1 callers
Function
hasIdeOnboardingDialogBeenShown
()
components/IdeOnboardingDialog.tsx:149
↓ 1 callers
Function
hasImageInClipboard
()
utils/imagePaste.ts:96
↓ 1 callers
Function
hasManagedSettingsFile
* Check if file-based managed settings (managed-settings.json or any * managed-settings.d/*.json) exist and have content. Cheap sync check * used to
utils/settings/mdm/settings.ts:280
↓ 1 callers
Function
hasMarkdownSyntax
(s: string)
components/Markdown.tsx:32
↓ 1 callers
Function
hasMcpDiscoveryButNoToken
( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, )
services/mcp/auth.ts:349
↓ 1 callers
Function
hasMeasureFuncInSubtree
(node: Node)
native-ts/yoga-layout/index.ts:2174
↓ 1 callers
Function
hasMemoryFileRead
(messages: Message[])
components/FeedbackSurvey/useMemorySurvey.tsx:24
↓ 1 callers
Function
hasMemoryWritesSince
* Returns true if any assistant message after the cursor UUID contains a * Write/Edit tool_use block targeting an auto-memory path. * * The main ag
services/extractMemories/extractMemories.ts:121
↓ 1 callers
Function
hasMessageAfterBoundary
(messages: Message[], boundaryUuid: string)
components/FeedbackSurvey/usePostCompactSurvey.tsx:17
↓ 1 callers
Function
hasMetInitializationThreshold
( currentTokenCount: number, )
services/SessionMemory/sessionMemoryUtils.ts:173
↓ 1 callers
Function
hasMetUpdateThreshold
(currentTokenCount: number)
services/SessionMemory/sessionMemoryUtils.ts:184
↓ 1 callers
Function
hasMultipleCodepoints
(str: string)
ink/termio/parser.ts:54
↓ 1 callers
Function
hasNestedError
(value: unknown)
services/api/errorUtils.ts:151
↓ 1 callers
Function
hasOnlyWhitespaceTextContent
* Check if an assistant message has only whitespace-only text content blocks. * Returns true if all content blocks are text blocks with only whitespa
utils/messages.ts:4835
↓ 1 callers
Function
hasParentPath
( entry: object, )
utils/filePersistence/outputsScanner.ts:33
↓ 1 callers
Function
hasPath
(entry: object)
utils/filePersistence/outputsScanner.ts:39
↓ 1 callers
Method
hasPendingProgress
* Check if any tool has pending progress messages
services/tools/StreamingToolExecutor.ts:445
↓ 1 callers
Method
hasPendingResponse
()
services/oauth/auth-code-listener.ts:58
↓ 1 callers
Function
hasPendingUpdates
()
utils/plugins/installedPluginsManager.ts:595
↓ 1 callers
Function
hasPermissionCallback
(requestId: string)
hooks/useSwarmPermissionPoller.ts:104
↓ 1 callers
Function
hasPermissionsToUseToolInner
( tool: Tool, input: { [key: string]: unknown }, context: ToolUseContext, )
utils/permissions/permissions.ts:1158
↓ 1 callers
Function
hasProfileScope
()
bridge/bridgeEnabled.ts:101
↓ 1 callers
Function
hasRTLCharacters
* Quick check for RTL characters (Hebrew, Arabic, and related scripts). * Avoids running the full bidi algorithm on pure-LTR text.
ink/bidi.ts:131
↓ 1 callers
Function
hasRecentInteraction
(threshold: number)
hooks/useNotifyAfterTimeout.ts:15
↓ 1 callers
Function
hasRequiredSubscription
()
utils/computerUse/gates.ts:39
↓ 1 callers
Function
hasRootNode
(emitter: unknown)
native-ts/color-diff/index.ts:491
↓ 1 callers
Function
hasRules
(updates: PermissionUpdate[] | undefined)
utils/permissions/PermissionUpdate.ts:45
↓ 1 callers
Function
hasSandboxPermissionCallback
(requestId: string)
hooks/useSwarmPermissionPoller.ts:191
↓ 1 callers
Function
hasSession
* Checks if a tmux session exists
tools/shared/spawnMultiAgent.ts:159
↓ 1 callers
Method
hasSession
()
utils/terminalPanel.ts:74
↓ 1 callers
Method
hasSessionInSwarm
* Checks if a tmux session exists in the swarm socket.
utils/swarm/backends/TmuxBackend.ts:459
↓ 1 callers
Function
hasShownHintThisSession
()
utils/claudeCodeHints.ts:180
↓ 1 callers
Function
hasShownLspRecommendationThisSession
()
bootstrap/state.ts:1402
↓ 1 callers
Function
hasStdinRedirect
(command: string)
utils/bash/shellQuoting.ts:81
↓ 1 callers
Function
hasStringFormat
( schema: PrimitiveSchemaDefinition, )
utils/mcp/elicitationValidation.ts:245
↓ 1 callers
Function
hasSuccessfulToolCall
( messages: Message[], toolName: string, )
utils/messages.ts:4719
↓ 1 callers
Function
hasSummarySinceLastUserTurn
(messages: readonly Message[])
hooks/useAwaySummary.ts:16
↓ 1 callers
Function
hasSyncSecurityConcerns
(command: string)
tools/PowerShellTool/readOnlyValidation.ts:1112
↓ 1 callers
Method
hasTextSelection
Whether there is an active text selection.
ink/ink.tsx:1236
↓ 1 callers
Function
hasTmuxToolBeenUsed
()
utils/tmuxSocket.ts:195
↓ 1 callers
Function
hasToolUseWithIds
* Check if a message contains tool_use blocks with any of the given ids
services/compact/sessionMemoryCompact.ts:175
↓ 1 callers
Function
hasUltraplanKeyword
(text: string)
utils/ultraplan/keyword.ts:107
↓ 1 callers
Function
hasUltrathinkKeyword
(text: string)
utils/thinking.ts:29
↓ 1 callers
Function
hasUnescapedChar
* Checks if content contains an unescaped occurrence of a single character. * Handles bash escape sequences correctly where a backslash escapes the f
tools/BashTool/bashSecurity.ts:209
↓ 1 callers
Function
hasUnescapedEmptyParens
* Checks if a string contains unescaped empty parentheses "()". * Returns true only if both the "(" and ")" are unescaped and adjacent.
utils/settings/permissionValidation.ts:43
↓ 1 callers
Method
hasUnfinishedTools
* Check if there are any unfinished tools
services/tools/StreamingToolExecutor.ts:509
↓ 1 callers
Function
hasUnknownModelCost
()
bootstrap/state.ts:749
↓ 1 callers
Function
hasUnresolvedHooksFromLookup
( toolUseID: string, hookEvent: HookEvent, lookups: MessageLookups, )
utils/messages.ts:1449
↓ 1 callers
Function
hasUsedBackslashReturn
()
commands/terminalSetup/terminalSetup.tsx:130
↓ 1 callers
Function
hasValidDates
(log: LogOption)
commands/insights.ts:730
↓ 1 callers
Function
hasVisibleAssistantContent
* Checks if an assistant message has visible text content (not just tool_use blocks). * Tool uses are displayed as grouped/collapsed UI elements, not
utils/sessionStorage.ts:2430
↓ 1 callers
Function
hasVisibleSpaceEffect
(styles: AnsiCode[])
ink/screen.ts:271
↓ 1 callers
Function
hasVisibleUserContent
* Checks if a user message has visible content (text or image, not just tool_result). * Tool results are displayed as part of collapsed groups, not a
utils/sessionStorage.ts:2399
↓ 1 callers
Function
hasVoiceAuth
()
voice/voiceModeEnabled.ts:32
↓ 1 callers
Function
hasWildcards
(pattern: string)
utils/permissions/shellRuleMatching.ts:54
↓ 1 callers
Function
hasWorkingInProcessTeammates
(appState: AppState)
utils/teammate.ts:220
↓ 1 callers
Function
hasWorktreeChanges
( worktreePath: string, headCommit: string, )
utils/worktree.ts:1144
↓ 1 callers
Function
hashContent
(content: string)
utils/hash.ts:19
↓ 1 callers
Function
hashContent
(content: string)
services/teamMemorySync/index.ts:134
↓ 1 callers
Function
hashFileContent
* Creates a full SHA256 hash (64 chars) for file contents * Used for deduplication and change detection analytics
utils/fileOperationAnalytics.ts:22
↓ 1 callers
Function
hashFilePath
* Creates a truncated SHA256 hash (16 chars) for file paths * Used for privacy-preserving analytics on file operations
utils/fileOperationAnalytics.ts:9
↓ 1 callers
Function
hashPair
(a: string, b: string)
utils/hash.ts:34
↓ 1 callers
Function
hashPastedText
(content: string)
utils/pasteStore.ts:21
↓ 1 callers
Function
hashPluginId
(name: string, marketplace?: string)
utils/telemetry/pluginTelemetry.ts:48
↓ 1 callers
Function
hashString
(str: string)
services/api/dumpPrompts.ts:9
↓ 1 callers
Function
hashSystemPrompt
* Generate a hash for a system prompt.
utils/telemetry/betaSessionTracing.ts:129
↓ 1 callers
Function
heuristicallyExtractBaseCommand
* Extract the primary command from a PowerShell command line. * Takes the LAST pipeline segment since that determines the exit code. * * Heuristic
tools/PowerShellTool/commandSemantics.ts:121
↓ 1 callers
Function
heuristicallyExtractBaseCommand
* Extract the primary command from a complex command line; * May get it super wrong - don't depend on this for security
tools/BashTool/commandSemantics.ts:112
← previous
next →
6,201–6,300 of 11,462, ranked by callers