MCPcopy Create free account

hub / github.com/AnukarOP/claude-code-leaked / functions

Functions11,462 in github.com/AnukarOP/claude-code-leaked

↓ 1 callersFunctionroll
(userId: string)
source code/buddy/companion.ts:109
↓ 1 callersFunctionrollRarity
(rng: () => number)
source code/buddy/companion.ts:45
↓ 1 callersFunctionrollStats
( rng: () => number, rarity: Rarity, )
source code/buddy/companion.ts:64
↓ 1 callersFunctionrootPathForSource
(source: PermissionRuleSource)
source code/utils/permissions/filesystem.ts:748
↓ 1 callersFunctionroughTokenCountEstimationForBlock
( block: string | Anthropic.ContentBlock | Anthropic.ContentBlockParam, )
source code/services/tokenEstimation.ts:393
↓ 1 callersFunctionroughTokenCountEstimationForFileType
( content: string, fileExtension: string, )
source code/services/tokenEstimation.ts:236
↓ 1 callersFunctionroughTokenCountEstimationForMessage
(message: { type: string message?: { content?: unknown } attachment?: Attachment })
source code/services/tokenEstimation.ts:343
↓ 1 callersFunctionround
(number: number, precision: number)
source code/cost-tracker.ts:248
↓ 1 callersFunctionroundCorners
* Zero out the alpha channel in the four corner regions outside a * quarter-circle of radius `r`. Produces rounded-rect corners.
source code/utils/ansiToPng.ts:248
↓ 1 callersFunctionroundLayout
( node: Node, scale: number, absLeft: number, absTop: number, )
source code/native-ts/yoga-layout/index.ts:2437
↓ 1 callersFunctionruleSourceToOTelSource
* Map a rule's origin to the documented OTel `source` vocabulary, matching * the interactive path's semantics (permissionLogging.ts:81): session-scop
source code/services/tools/toolExecution.ts:183
↓ 1 callersFunctionrun
()
source code/main.tsx:886
↓ 1 callersFunctionrun
()
source code/utils/preflightChecks.tsx:92
↓ 1 callersFunctionrun
()
source code/commands/install.tsx:100
↓ 1 callersFunctionrunAwsAuthRefresh
* Run awsAuthRefresh to perform interactive authentication (e.g., aws sso login) * Streams output in real-time for user visibility
source code/utils/auth.ts:614
↓ 1 callersFunctionrunChromeNativeHost
()
source code/utils/claudeInChrome/chromeNativeHost.ts:61
↓ 1 callersFunctionrunClaudeInChromeMcpServer
()
source code/utils/claudeInChrome/mcpServer.ts:250
↓ 1 callersFunctionrunCleanupFunctions
()
source code/utils/cleanupRegistry.ts:25
↓ 1 callersFunctionrunComputerUseMcpServer
()
source code/utils/computerUse/mcpServer.ts:87
↓ 1 callersFunctionrunExtraction
({ context, appendSystemMessage, isTrailingRun, }: { context: REPLHookContext appendSyst
source code/services/extractMemories/extractMemories.ts:331
↓ 1 callersFunctionrunFilePersistence
( turnStartTime: TurnStartTime, signal?: AbortSignal, )
source code/utils/filePersistence/filePersistence.ts:53
↓ 1 callersFunctionrunGcpAuthRefresh
* Run gcpAuthRefresh to perform interactive authentication (e.g., gcloud auth application-default login) * Streams output in real-time for user visib
source code/utils/auth.ts:877
↓ 1 callersFunctionrunHeadless
( inputPrompt: string | AsyncIterable<string>, getAppState: () => AppState, setAppState: (f: (prev: AppS
source code/cli/print.ts:457
↓ 1 callersFunctionrunHeadlessStreaming
( structuredIO: StructuredIO, mcpClients: MCPServerConnection[], commands: Command[], tools: Tools,
source code/cli/print.ts:978
↓ 1 callersFunctionrunInProcessTeammate
( config: InProcessRunnerConfig, )
source code/utils/swarm/inProcessRunner.ts:885
↓ 1 callersFunctionrunMigrations
()
source code/main.tsx:328
↓ 1 callersFunctionrunPermissionDialog
* Render the approval dialog mid-call via `setToolJSX` + `Promise`, wait for * the user. Mirrors `spawnMultiAgent.ts:419-436` (the `It2SetupPrompt` p
source code/utils/computerUse/wrapper.tsx:298
↓ 1 callersFunctionrunPermissionRequestHooksForHeadlessAgent
* Runs PermissionRequest hooks for headless/async agents that cannot show * permission prompts. This gives hooks an opportunity to allow or deny * t
source code/utils/permissions/permissions.ts:402
↓ 1 callersFunctionrunPostToolUseFailureHooks
( toolUseContext: ToolUseContext, tool: Tool<Input, unknown>, toolUseID: string, messageId: string,
source code/services/tools/toolHooks.ts:195
↓ 1 callersFunctionrunPostToolUseHooks
( toolUseContext: ToolUseContext, tool: Tool<Input, Output>, toolUseID: string, messageId: string, t
source code/services/tools/toolHooks.ts:41
↓ 1 callersFunctionrunPowerShellCommand
({ input, abortController, setAppState, setToolJSX, preventCwdChanges, isMainThread, toolUseId,
source code/tools/PowerShellTool/PowerShellTool.tsx:665
↓ 1 callersFunctionrunPreToolUseHooks
( toolUseContext: ToolUseContext, tool: Tool, processedInput: Record<string, unknown>, toolUseID: stri
source code/services/tools/toolHooks.ts:437
↓ 1 callersFunctionrunServer
()
source code/entrypoints/mcp.ts:192
↓ 1 callersFunctionrunShellCommand
({ input, abortController, setAppState, setToolJSX, preventCwdChanges, isMainThread, toolUseId,
source code/tools/BashTool/BashTool.tsx:828
↓ 1 callersMethodrunShellDirect
Fallback when tmux is not available — runs a non-persistent shell.
source code/utils/terminalPanel.ts:184
↓ 1 callersFunctionrunToolsConcurrently
( toolUseMessages: ToolUseBlock[], assistantMessages: AssistantMessage[], canUseTool: CanUseToolFn, to
source code/services/tools/toolOrchestration.ts:154
↓ 1 callersFunctionrunToolsSerially
( toolUseMessages: ToolUseBlock[], assistantMessages: AssistantMessage[], canUseTool: CanUseToolFn, to
source code/services/tools/toolOrchestration.ts:120
↓ 1 callersFunctionrunValidation
()
source code/commands/plugin/ValidatePlugin.tsx:26
↓ 1 callersFunctionrunWithTeammateContext
( context: TeammateContext, fn: () => T, )
source code/utils/teammateContext.ts:61
↓ 1 callersFunctionsafeJsonParse
(raw: string)
source code/bridge/bridgePointer.ts:206
↓ 1 callersFunctionsafeKeys
(obj: Record<string, unknown> | undefined | null)
source code/commands/insights.ts:3033
↓ 1 callersFunctionsafeParseJSONC
(json: string | null | undefined)
source code/utils/json.ts:67
↓ 1 callersFunctionsafeSpawn
Attempt to spawn a session; returns error string if spawn throws.
source code/bridge/bridgeMain.ts:129
↓ 1 callersFunctionsafeWriteFile
(p: string, content: string)
source code/skills/bundledSkills.ts:188
↓ 1 callersFunctionsanitizeAPIError
(apiError: APIError)
source code/services/api/errorUtils.ts:124
↓ 1 callersFunctionsanitizeAgentTypeForPath
* Sanitize an agent type name for use as a directory name. * Replaces colons (invalid on Windows, used in plugin-namespaced agent * types like "my-p
source code/tools/AgentTool/agentMemory.ts:22
↓ 1 callersFunctionsanitizeAppNames
(raw: readonly string[])
source code/utils/computerUse/appNames.ts:152
↓ 1 callersFunctionsanitizeConnectorName
(name: string)
source code/skills/bundled/scheduleRemoteAgents.ts:91
↓ 1 callersFunctionsanitizeErrorToolResultContent
* Strip non-text blocks from is_error tool_results — the API rejects the * combination with "all content must be type text if is_error is true". *
source code/utils/messages.ts:1886
↓ 1 callersFunctionsanitizeFileName
* Strip path components and keep only filename-safe chars. file_name comes * from the network (web composer), so treat it as untrusted even though th
source code/bridge/inboundAttachments.ts:57
↓ 1 callersFunctionsanitizeFilename
(text: string)
source code/commands/export/export.tsx:44
↓ 1 callersFunctionsanitizeHeaderValue
* Strip CR, LF, and NUL bytes from a header value to prevent HTTP header * injection (CRLF injection) via env var values or hook-configured header *
source code/utils/hooks/execHttpHook.ts:78
↓ 1 callersFunctionsanitizePathKey
* Sanitize a file path key by rejecting dangerous patterns. * Checks for null bytes, URL-encoded traversals, and other injection vectors. * Returns
source code/memdir/teamMemPaths.ts:24
↓ 1 callersFunctionsanitizePluginId
(pluginId: string)
source code/utils/plugins/pluginDirectories.ts:94
↓ 1 callersFunctionsanitizeTrustedNames
(raw: readonly string[])
source code/utils/computerUse/appNames.ts:161
↓ 1 callersFunctionsaveAgentToFile
( source: SettingSource | 'built-in', agentType: string, whenToUse: string, tools: string[] | undefine
source code/components/agents/agentFileUtils.ts:168
↓ 1 callersFunctionsaveAiGeneratedTitle
(sessionId: UUID, aiTitle: string)
source code/utils/sessionStorage.ts:2669
↓ 1 callersFunctionsaveApiKey
(apiKey: string)
source code/utils/auth.ts:1096
↓ 1 callersFunctionsaveCacheSafeParams
(params: CacheSafeParams | null)
source code/utils/forkedAgent.ts:77
↓ 1 callersFunctionsaveCachedRestrictions
* Save restrictions to cache file
source code/services/policyLimits/index.ts:412
↓ 1 callersFunctionsaveFacets
(facets: SessionFacets)
source code/commands/insights.ts:965
↓ 1 callersFunctionsaveIdpClientSecret
( idpIssuer: string, clientSecret: string, )
source code/services/mcp/xaaIdpLogin.ts:161
↓ 1 callersFunctionsaveIdpIdTokenFromJwt
( idpIssuer: string, idToken: string, )
source code/services/mcp/xaaIdpLogin.ts:135
↓ 1 callersFunctionsaveInstallCountsCache
* Save the install counts cache to disk atomically. * Uses a temp file + rename pattern to prevent corruption.
source code/utils/plugins/installCounts.ts:151
↓ 1 callersFunctionsaveMarketplaceJsonToZipCache
( marketplaceName: string, installLocation: string, )
source code/utils/plugins/zipCacheAdapters.ts:102
↓ 1 callersFunctionsaveSessionMeta
(meta: SessionMeta)
source code/commands/insights.ts:990
↓ 1 callersFunctionsaveSettings
* Save remote settings to file * Stores raw settings JSON (checksum is computed on-demand when needed)
source code/services/remoteManagedSettings/index.ts:369
↓ 1 callersMethodsaveTokens
(tokens: OAuthTokens)
source code/services/mcp/auth.ts:1706
↓ 1 callersFunctionscan
(dirPath: string, namespace: string[])
source code/utils/plugins/walkPluginMarkdown.ts:31
↓ 1 callersFunctionscanAllSessions
* Scans all project directories using filesystem metadata only (no JSONL parsing). * Returns a list of session file info sorted by mtime descending.
source code/commands/insights.ts:2757
↓ 1 callersFunctionscanArithOp
Scan next arithmetic binary operator; returns [text, length] or null.
source code/utils/bash/bashParser.ts:4193
↓ 1 callersFunctionscanBashResultForGitOps
* Scan a bash tool result for commit SHAs and PR URLs and push them into the * group accumulator. Called only for results whose tool_use_id was recor
source code/utils/collapseReadSearch.ts:557
↓ 1 callersFunctionscanChunkLines
( s: LoadState, buf: Buffer, boundaryMarker: Buffer, )
source code/utils/sessionStoragePortable.ts:616
↓ 1 callersFunctionscanDirectory
( dirPath: string, )
source code/utils/suggestions/directoryCompletion.ts:86
↓ 1 callersFunctionscanDirectoryForPaths
( dirPath: string, includeHidden = false, )
source code/utils/suggestions/directoryCompletion.ts:170
↓ 1 callersMethodscanElementSubtree
Paint an EXISTING DOM subtree to a fresh Screen at its natural * height, scan for query. Returns positions relative to the element's * boundin
source code/ink/ink.tsx:1073
↓ 1 callersFunctionscanPositions
(screen: Screen, query: string)
source code/ink/render-to-screen.ts:151
↓ 1 callersFunctionscanPreBoundaryMetadata
* Lightweight forward scan of [0, endOffset) collecting only metadata-entry lines. * Uses raw Buffer chunks and byte-level marker matching — no readl
source code/utils/sessionStorage.ts:3159
↓ 1 callersMethodscheduleDrain
()
source code/utils/sessionStorage.ts:620
↓ 1 callersFunctionscheduleFlush
()
source code/utils/bufferedWriter.ts:51
↓ 1 callersFunctionscheduleFlush
()
source code/services/analytics/datadog.ts:123
↓ 1 callersFunctionscheduleReload
* Debounce rapid skill changes into a single reload. When many skill files * change at once (e.g. auto-update installs a new binary and a new session
source code/utils/skills/skillChangeDetector.ts:257
↓ 1 callersFunctionscheduleRenderFrom
(node?: DOMNode)
source code/ink/dom.ts:421
↓ 1 callersFunctionscopeColor
( scope: string | undefined, text: string, theme: Theme, )
source code/native-ts/color-diff/index.ts:455
↓ 1 callersFunctionscrollDown
(s: ScrollBoxHandle, amount: number)
source code/components/ScrollKeybindingHandler.tsx:854
↓ 1 callersFunctionscrollUp
(s: ScrollBoxHandle, amount: number)
source code/components/ScrollKeybindingHandler.tsx:875
↓ 1 callersFunctionscrubBareGitRepoFiles
* Delete bare-repo files planted at cwd during a sandboxed command, before * Claude's unsandboxed git calls can see them. See the SECURITY block abov
source code/utils/sandbox/sandbox-adapter.ts:406
↓ 1 callersFunctionsearchToolsWithKeywords
* Keyword-based search over tool names and descriptions. * Handles both MCP tools (mcp__server__action) and regular tools (CamelCase). * * The mode
source code/tools/ToolSearchTool/ToolSearchTool.ts:188
↓ 1 callersFunctionseedEarlyInput
(text: string)
source code/utils/earlyInput.ts:184
↓ 1 callersFunctionsegmentTextByHighlights
( text: string, highlights: TextHighlight[], )
source code/utils/textHighlighting.ts:29
↓ 1 callersFunctionsegmentedCommandPermissionResult
( input: z.infer<typeof BashTool.inputSchema>, segments: string[], bashToolHasPermissionFn: ( input:
source code/tools/BashTool/bashCommandHelpers.ts:25
↓ 1 callersFunctionselect
(m: NavigableMessage)
source code/components/VirtualMessageList.tsx:348
↓ 1 callersMethodselectAggregationTemporality
()
source code/utils/telemetry/bigqueryExporter.ts:248
↓ 1 callersFunctionselectFreshToReplace
* Pick the largest fresh results to replace until the model-visible total * (frozen + remaining fresh) is at or under budget, or fresh is exhausted.
source code/utils/toolResultStorage.ts:677
↓ 1 callersFunctionselectLineAt
( s: SelectionState, screen: Screen, row: number, )
source code/ink/selection.ts:370
↓ 1 callersFunctionselectRelevantMemories
( query: string, memories: MemoryHeader[], signal: AbortSignal, recentTools: readonly string[], )
source code/memdir/findRelevantMemories.ts:79
↓ 1 callersFunctionselectTipWithLongestTimeSinceShown
( availableTips: Tip[], )
source code/services/tips/tipScheduler.ts:12
↓ 1 callersFunctionselectWordAt
( s: SelectionState, screen: Screen, col: number, row: number, )
source code/ink/selection.ts:242
↓ 1 callersFunctionselectableUserMessagesFilter
(message: Message)
source code/components/MessageSelector.tsx:769
↓ 1 callersFunctionselectionFocusMoveForKey
(key: Key)
source code/components/ScrollKeybindingHandler.tsx:134
← previousnext →7,401–7,500 of 11,462, ranked by callers