Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AnukarOP/claude-code-leaked
/ functions
Functions
11,462 in github.com/AnukarOP/claude-code-leaked
⨍
Functions
11,462
◇
Types & classes
340
↓ 1 callers
Function
useTeammateViewAutoExit
()
source code/hooks/useTeammateViewAutoExit.ts:13
↓ 1 callers
Function
useTeleportResume
(source)
source code/hooks/useTeleportResume.tsx:17
↓ 1 callers
Function
useTerminalTitle
(title: string | null)
source code/ink/hooks/use-terminal-title.ts:19
↓ 1 callers
Function
useTimeout
(delay: number, resetTrigger?: number)
source code/hooks/useTimeout.ts:5
↓ 1 callers
Function
useTurnDiffs
(messages: Message[])
source code/hooks/useTurnDiffs.ts:102
↓ 1 callers
Function
useTypeahead
({ commands, onInputChange, onSubmit, setCursorOffset, input, cursorOffset, mode, agents, se
source code/hooks/useTypeahead.tsx:355
↓ 1 callers
Function
useUnseenDivider
(messageCount: number)
source code/components/FullscreenLayout.tsx:88
↓ 1 callers
Function
useVimInput
(props: UseVimInputProps)
source code/hooks/useVimInput.ts:36
↓ 1 callers
Function
useVirtualScroll
( scrollRef: RefObject<ScrollBoxHandle | null>, itemKeys: readonly string[], /** * Terminal column co
source code/hooks/useVirtualScroll.ts:144
↓ 1 callers
Function
useVoiceIntegration
({ setInputValueRaw, inputValueRef, insertTextRef }: UseVoiceIntegrationArgs)
source code/hooks/useVoiceIntegration.tsx:120
↓ 1 callers
Function
useVoiceKeybindingHandler
({ voiceHandleKeyEvent, stripTrailing, resetAnchor, isActive }: { voiceHandleKeyEvent: (fallbackMs?:
source code/hooks/useVoiceIntegration.tsx:375
↓ 1 callers
Function
userFacingName
(input: Partial<{ description: string; prompt: string; subagent_type: string; name: string; team_nam
source code/tools/AgentTool/UI.tsx:762
↓ 1 callers
Function
userFacingNameBackgroundColor
(input: Partial<{ description: string; prompt: string; subagent_type: string; }> | undefined)
source code/tools/AgentTool/UI.tsx:778
↓ 1 callers
Function
userMessageToMessageParam
( message: UserMessage, addCache = false, enablePromptCaching: boolean, querySource?: QuerySource, )
source code/services/api/claude.ts:590
↓ 1 callers
Function
uuidToBigInt
* Parse a UUID string (with or without hyphens) into a 128-bit bigint.
source code/utils/taggedId.ts:38
↓ 1 callers
Function
validateAgent
( agent: Omit<CustomAgentDefinition, 'location'>, availableTools: Tools, existingAgents: AgentDefinition
source code/components/agents/validateAgent.ts:37
↓ 1 callers
Method
validateAndRespond
( authCode: string | undefined, state: string | undefined, res: ServerResponse, )
source code/services/oauth/auth-code-listener.ts:154
↓ 1 callers
Function
validateAttachmentPaths
( rawPaths: string[], )
source code/tools/BriefTool/attachments.ts:28
↓ 1 callers
Function
validateBlock
* Validate a keybinding block from user config.
source code/keybindings/validate.ts:132
↓ 1 callers
Function
validateCommandForMode
( cmd: string, toolPermissionContext: ToolPermissionContext, )
source code/tools/BashTool/modeValidation.ts:25
↓ 1 callers
Function
validateCommandPaths
( command: PathCommand, args: string[], cwd: string, toolPermissionContext: ToolPermissionContext, c
source code/tools/BashTool/pathValidation.ts:605
↓ 1 callers
Function
validateComponentFile
* Validate the YAML frontmatter in a plugin component markdown file. * * The runtime loader (parseFrontmatter) silently drops unparseable YAML to a
source code/utils/plugins/validatePlugin.ts:519
↓ 1 callers
Function
validateElicitationInputAsync
( stringValue: string, schema: PrimitiveSchemaDefinition, signal: AbortSignal, )
source code/utils/mcp/elicitationValidation.ts:309
↓ 1 callers
Function
validateGlobPattern
( cleanPath: string, cwd: string, toolPermissionContext: ToolPermissionContext, operationType: FileOpe
source code/utils/permissions/pathValidation.ts:271
↓ 1 callers
Function
validateHooksJson
* Validate a plugin's hooks.json file. Unlike frontmatter, this one HARD-ERRORS * at runtime (pluginLoader uses .parse() not .safeParse()) — a bad ho
source code/utils/plugins/validatePlugin.ts:648
↓ 1 callers
Function
validateHtmlPreview
(preview: string | undefined)
source code/tools/AskUserQuestionTool/AskUserQuestionTool.tsx:252
↓ 1 callers
Function
validateImagesForAPI
(messages: unknown[])
source code/utils/imageValidation.ts:67
↓ 1 callers
Function
validateInputForSettingsFileEdit
( filePath: string, originalContent: string, getUpdatedContent: () => string, )
source code/utils/settings/validateEditTool.ts:16
↓ 1 callers
Function
validateKeystroke
* Validate a single keystroke string and return any parse errors.
source code/keybindings/validate.ts:93
↓ 1 callers
Function
validateOfficialNameSource
( name: string, source: { source: string; repo?: string; url?: string }, )
source code/utils/plugins/schemas.ts:121
↓ 1 callers
Function
validateOutputRedirections
( redirections: Array<{ target: string; operator: '>' | '>>' }>, cwd: string, toolPermissionContext: Too
source code/tools/BashTool/pathValidation.ts:926
↓ 1 callers
Function
validatePathWithinPlugin
* Validate that a resolved path stays within the plugin directory. * Prevents path traversal attacks via .. or absolute paths.
source code/utils/plugins/lspPluginIntegration.ts:30
↓ 1 callers
Function
validatePluginContents
( pluginDir: string, )
source code/utils/plugins/validatePlugin.ts:765
↓ 1 callers
Function
validateRepoAtPath
( path: string, expectedRepo: string, )
source code/utils/githubRepoPathMapping.ts:107
↓ 1 callers
Function
validateRequired
()
source code/components/mcp/ElicitationDialog.tsx:733
↓ 1 callers
Function
validateSinglePathCommand
* Validates a single command for path constraints and shell safety. * * This function: * 1. Parses the command arguments * 2. Checks if it's a pat
source code/tools/BashTool/pathValidation.ts:836
↓ 1 callers
Function
validateSinglePathCommandArgv
* Like validateSinglePathCommand but operates on AST-derived argv directly * instead of re-parsing the command string with shell-quote. Avoids the *
source code/tools/BashTool/pathValidation.ts:890
↓ 1 callers
Function
validateTeamMemKey
(relativeKey: string)
source code/memdir/teamMemPaths.ts:267
↓ 1 callers
Function
validateURL
(url: string)
source code/tools/WebFetchTool/utils.ts:141
↓ 1 callers
Function
validateUrl
(url: string)
source code/utils/browser.ts:5
↓ 1 callers
Function
validateUserConfig
(userBlocks: unknown)
source code/keybindings/validate.ts:314
↓ 1 callers
Function
validateZipFile
( file: ZipFileMetadata, state: ZipValidationState, )
source code/utils/dxt/zip.ts:65
↓ 1 callers
Function
verifyAndDemote
(plugins: readonly LoadedPlugin[])
source code/utils/plugins/dependencyResolver.ts:179
↓ 1 callers
Function
verifyApiKey
( apiKey: string, isNonInteractiveSession: boolean, )
source code/services/api/claude.ts:532
↓ 1 callers
Function
vertexModelSupportsWebSearch
(model: string)
source code/utils/betas.ts:116
↓ 1 callers
Function
viewTeammateOutput
(paneId: string, backendType: PaneBackendType | undefined)
source code/components/teams/TeamsDialog.tsx:607
↓ 1 callers
Function
visibleCellAtIndex
( cells: Int32Array, charPool: CharPool, hyperlinkPool: HyperlinkPool, index: number, lastRenderedSt
source code/ink/screen.ts:626
↓ 1 callers
Method
waitForAuthorization
( state: string, onReady: () => Promise<void>, )
source code/services/oauth/auth-code-listener.ts:64
↓ 1 callers
Method
waitForAuthorizationCode
( state: string, onReady: () => Promise<void>, )
source code/services/oauth/index.ts:136
↓ 1 callers
Function
waitForCallback
* Wait for the OAuth authorization code on a local callback server. * Returns the code once /callback is hit with a matching state. * * `onListenin
source code/services/mcp/xaaIdpLogin.ts:274
↓ 1 callers
Function
waitForInitialization
()
source code/services/lsp/manager.ts:123
↓ 1 callers
Method
waitForNetworkInitialization
()
source code/utils/sandbox/sandbox-adapter.ts:911
↓ 1 callers
Function
waitForNextPromptOrShutdown
* Waits for new prompts or shutdown request. * Polls the teammate's mailbox every 500ms, checking for: * - Shutdown request from leader (returned to
source code/utils/swarm/inProcessRunner.ts:691
↓ 1 callers
Function
waitForSessionMemoryExtraction
()
source code/services/SessionMemory/sessionMemoryUtils.ts:91
↓ 1 callers
Function
waitForTaskCompletion
(taskId: string, getAppState: () => { tasks?: Record<string, TaskState>; }, timeoutMs: number, abortControll
source code/tools/TaskOutputTool/TaskOutputTool.tsx:120
↓ 1 callers
Function
waitForTeammatesToBecomeIdle
( setAppState: (f: (prev: AppState) => AppState) => void, appState: AppState, )
source code/utils/teammate.ts:240
↓ 1 callers
Function
walk
(currentDir: string)
source code/utils/markdownConfigLoader.ts:460
↓ 1 callers
Function
walk
( id: PluginId, requiredBy: PluginId, )
source code/utils/plugins/dependencyResolver.ts:108
↓ 1 callers
Function
walk
(p: string)
source code/utils/plugins/pluginDirectories.ts:137
↓ 1 callers
Function
walk
(node: DOMElement, offsetY: number)
source code/ink/dom.ts:472
↓ 1 callers
Function
walkChainBeforeParse
(buf: Buffer)
source code/utils/sessionStorage.ts:3308
↓ 1 callers
Function
walkCommand
* Walk a `command` node and extract argv. Children appear in order: * [variable_assignment...] command_name [argument...] [file_redirect...] * Any c
source code/utils/bash/ast.ts:1239
↓ 1 callers
Function
walkDir
(dir: string)
source code/services/teamMemorySync/index.ts:577
↓ 1 callers
Function
walkHerestringRedirect
* Here-string redirect (`<<< content`). The content becomes stdin — not * argv, not a path. Safe when content is a literal word, raw_string, or * st
source code/utils/bash/ast.ts:1213
↓ 1 callers
Function
walkProgram
(root: Node)
source code/utils/bash/ast.ts:464
↓ 1 callers
Function
walkRedirectedStatement
* A `redirected_statement` wraps a command (or pipeline) plus one or more * `file_redirect`/`heredoc_redirect` nodes. Extract redirects, walk the *
source code/utils/bash/ast.ts:1019
↓ 1 callers
Function
walkTestExpr
* Recursively walk a test_command expression tree (unary/binary/negated/ * parenthesized expressions). Leaves are test_operator tokens and operands
source code/utils/bash/ast.ts:964
↓ 1 callers
Function
walkTopLevel
(node: TreeSitterNode)
source code/utils/bash/treeSitterAnalysis.ts:310
↓ 1 callers
Function
walkTree
(node: DOMElement, result: DOMElement[])
source code/ink/focus.ts:142
↓ 1 callers
Function
webFetchToolInputToPermissionRuleContent
(input: { [k: string]: unknown })
source code/tools/WebFetchTool/WebFetchTool.ts:52
↓ 1 callers
Method
withCurrentMatch
(baseId: number)
source code/ink/screen.ts:192
↓ 1 callers
Function
withFixture
* Generic fixture management helper * Handles caching, reading, writing fixtures for any data type
source code/services/vcr.ts:41
↓ 1 callers
Function
withLock
( versionPath: string, lockFilePath: string, callback: () => void | Promise<void>, )
source code/utils/nativeInstaller/pidLock.ts:332
↓ 1 callers
Function
withModifiers
* Bracket `fn()` with modifier press/release. `pressed` tracks which presses * actually landed, so a mid-press throw only releases what was pressed —
source code/utils/computerUse/executor.ts:152
↓ 1 callers
Method
withSelectionBg
(baseId: number)
source code/ink/screen.ts:246
↓ 1 callers
Function
withStatsCacheLock
(fn: () => Promise<T>)
source code/utils/statsCache.ts:29
↓ 1 callers
Function
withTimeout
* Race a promise against a timeout. Cleans up the timer regardless of outcome * to avoid unhandled rejections from orphaned setTimeout callbacks.
source code/services/lsp/LSPServerInstance.ts:501
↓ 1 callers
Function
withTokenCountVCR
( messages: unknown[], tools: unknown[], f: () => Promise<number | null>, )
source code/services/vcr.ts:384
↓ 1 callers
Function
withoutCcdSpawnEnvKeys
( env: Record<string, string> | undefined, )
source code/utils/managedEnv.ts:73
↓ 1 callers
Function
withoutHostManagedProviderVars
* When the host owns inference routing (sets * CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST in spawn env), strip * provider-selection / model-default vars f
source code/utils/managedEnv.ts:47
↓ 1 callers
Method
withoutOutputRedirections
()
source code/utils/bash/ParsedCommand.ts:27
↓ 1 callers
Function
withoutSSHTunnelVars
* `claude ssh` remote: ANTHROPIC_UNIX_SOCKET routes auth through a -R forwarded * socket to a local proxy, and the launcher sets a handful of placeho
source code/utils/managedEnv.ts:25
↓ 1 callers
Function
wordAlignedLCP
* Word-aligned longest common prefix. Doesn't chop mid-word. * Case-insensitive comparison (PowerShell: Git === git), emits first * string's casing.
source code/utils/powershell/staticPrefix.ts:296
↓ 1 callers
Function
wordBackground
(marker: Marker, theme: Theme)
source code/native-ts/color-diff/index.ts:381
↓ 1 callers
Function
wordDiffStrings
(oldStr: string, newStr: string)
source code/native-ts/color-diff/index.ts:606
↓ 1 callers
Function
worker
()
source code/services/api/filesApi.ts:290
↓ 1 callers
Function
wrap
(text: string, width: number)
source code/buddy/CompanionSprite.tsx:30
↓ 1 callers
Function
wrapApiForFaultInjection
( api: BridgeApiClient, )
source code/bridge/bridgeDebug.ts:86
↓ 1 callers
Function
wrapText
* Inserts newlines in a string to wrap it at the specified width. * Uses ANSI-aware slicing to avoid splitting escape sequences. * @param text The t
source code/utils/terminal.ts:21
↓ 1 callers
Function
wrapWithCwd
(fn: () => T)
source code/tools/AgentTool/resumeAgent.ts:229
↓ 1 callers
Function
wrapWithOsc8Link
(text: string, url: string)
source code/bridge/bridgeStatusUtil.ts:163
↓ 1 callers
Method
write
(message: StdoutMessage)
source code/cli/structuredIO.ts:467
↓ 1 callers
Method
write
(message: StdoutMessage)
source code/cli/transports/WebSocketTransport.ts:662
↓ 1 callers
Function
writeCacheBreakDiff
( prevContent: string, newContent: string, )
source code/services/api/promptCacheBreakDetection.ts:710
↓ 1 callers
Function
writeHeapSnapshot
* Write heap snapshot to a file. * Uses pipeline() which handles stream cleanup automatically on errors.
source code/utils/heapDumpService.ts:286
↓ 1 callers
Method
writeInternalEvent
* Write an internal worker event via POST /sessions/{id}/worker/internal-events. * These events are NOT visible to frontend clients — they store wo
source code/cli/transports/ccrClient.ts:795
↓ 1 callers
Function
writeLineToScreen
* Write a single line's characters into the screen buffer. * Extracted from Output.get() so JSC can optimize this tight, * monomorphic loop independ
source code/ink/output.ts:635
↓ 1 callers
Function
writeLockFile
* Write lock content to a file atomically
source code/utils/nativeInstaller/pidLock.ts:212
↓ 1 callers
Function
writePerfettoTraceSync
* Final synchronous write (fallback for process 'exit' handler where async is forbidden).
source code/utils/telemetry/perfettoTracing.ts:1044
↓ 1 callers
Function
writeRemoteAgentMetadata
( taskId: string, metadata: RemoteAgentMetadata, )
source code/utils/sessionStorage.ts:339
← previous
next →
8,001–8,100 of 11,462, ranked by callers