MCPcopy Create free account

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

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

↓ 2 callersFunctiondetectColorMode
(theme: string)
source code/native-ts/color-diff/index.ts:97
↓ 2 callersFunctiondetectCommandSubstitution
( prev: ParseEntry | undefined, kept: ParseEntry[], index: number, )
source code/utils/bash/commands.ts:1145
↓ 2 callersFunctiondetectFileEncoding
(filePath: string)
source code/utils/file.ts:102
↓ 2 callersFunctiondetectGateway
({ headers, baseUrl, }: { headers?: globalThis.Headers baseUrl?: string })
source code/services/api/logging.ts:109
↓ 2 callersFunctiondetectJetBrainsIDEFromParentProcessAsync
()
source code/utils/envDynamic.ts:66
↓ 2 callersFunctiondetectLanguage
( filePath: string, firstLine: string | null, )
source code/native-ts/color-diff/index.ts:424
↓ 2 callersFunctiondetectLineEndingsForString
(content: string)
source code/utils/fileRead.ts:53
↓ 2 callersFunctiondetectMagicDocHeader
( content: string, )
source code/services/MagicDocs/magicDocs.ts:54
↓ 2 callersFunctiondetectMise
()
source code/utils/nativeInstaller/packageManagers.ts:64
↓ 2 callersFunctiondetectPackageManager
()
source code/services/voice.ts:153
↓ 2 callersFunctiondetectPromptTooLong
* Detect API 400 "prompt is too long: N tokens > M maximum" errors and * parse the token counts. Returns undefined for any other error. * These are
source code/utils/permissions/yoloClassifier.ts:1465
↓ 2 callersFunctiondetectRunningIDEs
()
source code/utils/ide.ts:1156
↓ 2 callersFunctiondetectShell
()
source code/utils/completionCache.ts:26
↓ 2 callersFunctiondetectWinget
()
source code/utils/nativeInstaller/packageManagers.ts:135
↓ 2 callersFunctiondiff
(before: AnyObject, after: AnyObject)
source code/ink/reconciler.ts:64
↓ 2 callersFunctiondiffMarketplaces
( declared: Record<string, DeclaredMarketplace>, materialized: KnownMarketplacesFile, opts?: { projectRo
source code/utils/plugins/reconciler.ts:52
↓ 2 callersFunctiondisableAudioBellForProfile
(profileName: string)
source code/commands/terminalSetup/terminalSetup.tsx:291
↓ 2 callersMethoddiscard
* Discards all pending and in-progress tools. Called when streaming fallback * occurs and results from the failed attempt should be abandoned. *
source code/services/tools/StreamingToolExecutor.ts:71
↓ 2 callersMethoddispatchDiscrete
* Dispatch with discrete (sync) priority. * For user-initiated events: keyboard, click, focus, paste.
source code/ink/events/dispatcher.ts:209
↓ 2 callersFunctiondispose
()
source code/utils/hooks/fileChangedWatcher.ts:179
↓ 2 callersMethoddoDisconnect
()
source code/cli/transports/WebSocketTransport.ts:382
↓ 2 callersFunctiondoDownloadUserSettings
( maxRetries = DEFAULT_MAX_RETRIES, )
source code/services/settingsSync/index.ts:159
↓ 2 callersFunctiondoRequest
()
source code/services/mcp/client.ts:376
↓ 2 callersFunctiondoUninstall
(deleteDataDir: boolean)
source code/commands/plugin/ManagePlugins.tsx:1558
↓ 2 callersFunctiondoesMostRecentAssistantMessageExceed200k
( messages: Message[], )
source code/utils/tokens.ts:161
↓ 2 callersFunctiondone
(result: T)
source code/interactiveHelpers.tsx:43
↓ 2 callersMethoddown
()
source code/utils/Cursor.ts:379
↓ 2 callersMethoddownLogicalLine
()
source code/utils/Cursor.ts:535
↓ 2 callersFunctiondownloadUserSettings
()
source code/services/settingsSync/index.ts:131
↓ 2 callersFunctiondownloadVersionFromBinaryRepo
( version: string, stagingPath: string, baseUrl: string, authConfig?: { auth?: { username: string;
source code/utils/nativeInstaller/download.ts:384
↓ 2 callersMethoddrain
* Drain loop. At most one instance runs at a time (guarded by this.draining). * Sends batches serially. On failure, backs off and retries indefinit
source code/cli/transports/SerialBatchEventUploader.ts:158
↓ 2 callersFunctiondrainFlushGate
()
source code/bridge/remoteBridgeCore.ts:609
↓ 2 callersFunctiondrainFlushGate
()
source code/bridge/replBridge.ts:850
↓ 2 callersMethoddrainWriteQueue
()
source code/utils/sessionStorage.ts:647
↓ 2 callersFunctiondropContainedSpans
* Drops spans that are fully contained within another span, keeping only the * outermost. Nested quotes (e.g., `"$(echo 'hi')"`) yield overlapping sp
source code/utils/bash/treeSitterAnalysis.ts:161
↓ 2 callersFunctiondropSubtreeCache
(node: DOMElement)
source code/ink/render-node-to-output.ts:1452
↓ 2 callersFunctiondumpErrorPrompts
* Dump classifier input prompts + context-comparison diagnostics on API error. * Written to a session-scoped file in the claude temp dir so /share ca
source code/utils/permissions/yoloClassifier.ts:215
↓ 2 callersFunctioneagerParseCliFlag
( flagName: string, argv: string[] = process.argv, )
source code/utils/cliArgs.ts:15
↓ 2 callersFunctionembedTextInBorder
( borderLine: string, text: string, align: 'start' | 'end' | 'center', offset: number = 0, borderCha
source code/ink/render-border.ts:37
↓ 2 callersFunctionemitHookStarted
( hookId: string, hookName: string, hookEvent: string, )
source code/utils/hooks/hookEvents.ts:95
↓ 2 callersFunctionemitProcessMetadata
* Emit metadata events for a process/agent
source code/utils/telemetry/perfettoTracing.ts:342
↓ 2 callersFunctionenable
()
source code/utils/cronScheduler.ts:398
↓ 2 callersFunctionenableOptionAsMetaForProfile
(profileName: string)
source code/commands/terminalSetup/terminalSetup.tsx:272
↓ 2 callersFunctionendLLMRequestSpan
( span?: Span, metadata?: { inputTokens?: number outputTokens?: number cacheReadTokens?: numbe
source code/utils/telemetry/sessionTracing.ts:355
↓ 2 callersMethodendOfVimWord
()
source code/utils/Cursor.ts:693
↓ 2 callersMethodendOfWORD
()
source code/utils/Cursor.ts:790
↓ 2 callersFunctionendToolBlockedOnUserSpan
( decision?: string, source?: string, )
source code/utils/telemetry/sessionTracing.ts:579
↓ 2 callersFunctionendToolExecutionSpan
(metadata?: { success?: boolean error?: string })
source code/utils/telemetry/sessionTracing.ts:659
↓ 2 callersMethodenqueue
(value: T)
source code/utils/stream.ts:40
↓ 2 callersMethodenqueue
* If flush is active, queue the items and return true. * If flush is not active, return false (caller should send directly).
source code/bridge/flushGate.ts:48
↓ 2 callersFunctionenqueueRemoteReviewFailureNotification
* Enqueue a remote-review failure notification.
source code/tasks/RemoteAgentTask/RemoteAgentTask.tsx:349
↓ 2 callersFunctionenqueueResult
(value: string)
source code/utils/processUserInput/processSlashCommand.tsx:128
↓ 2 callersFunctionensureModelStringsInitialized
()
source code/utils/model/modelStrings.ts:154
↓ 2 callersFunctionensurePermissionDirsAsync
* Ensure the permissions directory structure exists (async)
source code/utils/swarm/permissionSync.ts:135
↓ 2 callersFunctionensureServerStarted
* Ensure the appropriate LSP server is started for the given file. * Returns undefined if no server handles this file type. * * @throws {Erro
source code/services/lsp/LSPServerManager.ts:217
↓ 2 callersFunctionenvSessionKind
* Kind override from env. Set by the spawner (`claude --bg`, daemon * supervisor) so the child can register without the parent having to * write the
source code/utils/concurrentSessions.ts:33
↓ 2 callersMethoderror
(message: string, ...args: unknown[])
source code/utils/computerUse/hostAdapter.ts:27
↓ 2 callersFunctionescapeXmlAttr
(s: string)
source code/utils/xml.ts:16
↓ 2 callersFunctionestimateSkillFrontmatterTokens
(skill: Command)
source code/skills/loadSkillsDir.ts:102
↓ 2 callersFunctionevictOldestEvents
* Drop the oldest half of events[] when over MAX_EVENTS. Called from the * stale-span cleanup interval (60s). The half-batch splice keeps this * amo
source code/utils/telemetry/perfettoTracing.ts:234
↓ 2 callersFunctionevictOldestIfAtCap
()
source code/utils/imageStore.ts:117
↓ 2 callersFunctionevictStaleSpans
* Evict pending spans older than STALE_SPAN_TTL_MS. * Mirrors the TTL cleanup pattern in sessionTracing.ts.
source code/utils/telemetry/perfettoTracing.ts:189
↓ 2 callersFunctionexecHttpHook
( hook: HttpHook, _hookEvent: HookEvent, jsonInput: string, signal?: AbortSignal, )
source code/utils/hooks/execHttpHook.ts:125
↓ 2 callersFunctionexecuteEnvHooks
( hookInput: HookInput, timeoutMs: number, )
source code/utils/hooks.ts:4243
↓ 2 callersFunctionexecuteInBackground
({ processId, hookId, shellCommand, asyncResponse, hookEvent, hookName, command, asyncRewake,
source code/utils/hooks.ts:186
↓ 2 callersFunctionexecuteIndent
( dir: '>' | '<', count: number, ctx: OperatorContext, )
source code/vim/operators.ts:350
↓ 2 callersFunctionexecuteInstructionsLoadedHooks
( filePath: string, memoryType: InstructionsMemoryType, loadReason: InstructionsLoadReason, options?:
source code/utils/hooks.ts:4337
↓ 2 callersFunctionexecuteJoin
(count: number, ctx: OperatorContext)
source code/vim/operators.ts:260
↓ 2 callersFunctionexecuteLineOp
( op: Operator, count: number, ctx: OperatorContext, )
source code/vim/operators.ts:104
↓ 2 callersFunctionexecuteNonStreamingRequest
( clientOptions: { model: string fetchOverride?: Options['fetchOverride'] source: string },
source code/services/api/claude.ts:820
↓ 2 callersFunctionexecuteOperatorFind
( op: Operator, findType: FindType, char: string, count: number, ctx: OperatorContext, )
source code/vim/operators.ts:61
↓ 2 callersFunctionexecuteOperatorTextObj
( op: Operator, scope: TextObjScope, objType: string, count: number, ctx: OperatorContext, )
source code/vim/operators.ts:82
↓ 2 callersFunctionexecutePostCompactHooks
( compactData: { trigger: 'manual' | 'auto' compactSummary: string }, signal?: AbortSignal, ti
source code/utils/hooks.ts:4036
↓ 2 callersFunctionexecuteReplace
( char: string, count: number, ctx: OperatorContext, )
source code/vim/operators.ts:201
↓ 2 callersFunctionexecuteTaskCompletedHooks
( taskId: string, taskSubject: string, taskDescription?: string, teammateName?: string, teamName?: s
source code/utils/hooks.ts:3791
↓ 2 callersFunctionexecuteToggleCase
(count: number, ctx: OperatorContext)
source code/vim/operators.ts:224
↓ 2 callersFunctionexecuteUserInput
* Core logic for executing user input without UI side effects. * * All commands arrive as `queuedCommands`. First command gets full treatment * (at
source code/utils/handlePromptSubmit.ts:398
↓ 2 callersFunctionexecuteWorktreeRemoveHook
( worktreePath: string, )
source code/utils/hooks.ts:4969
↓ 2 callersFunctionexecuteX
(count: number, ctx: OperatorContext)
source code/vim/operators.ts:173
↓ 2 callersFunctionexpandKey
Key for click-to-expand: tool_use_id where available (so tool_use + its * tool_result expand together), else uuid for groups/thinking.
source code/components/Messages.tsx:727
↓ 2 callersFunctionexpandString
(str: string)
source code/services/mcp/config.ts:564
↓ 2 callersFunctionextractAgentMentions
(content: string)
source code/utils/attachments.ts:2804
↓ 2 callersFunctionextractBashCommentLabel
(command: string)
source code/tools/BashTool/commentLabel.ts:10
↓ 2 callersFunctionextractBashToolsFromMessages
(messages: Message[])
source code/utils/queryHelpers.ts:509
↓ 2 callersFunctionextractCommandName
* Extract the command name from a PowerShell command string. * Uses the parser to get the first command name from the AST.
source code/tools/PowerShellTool/powershellPermissions.ts:120
↓ 2 callersFunctionextractConversationText
(messages: Message[])
source code/utils/sessionTitle.ts:35
↓ 2 callersFunctionextractFromServerConfigRecord
( serverConfigs: Record<string, unknown>, )
source code/utils/plugins/lspRecommendation.ts:114
↓ 2 callersFunctionextractFunctionHooks
( sessionMatchers: SessionHookMatcher[], )
source code/utils/hooks/sessionHooks.ts:359
↓ 2 callersFunctionextractGitHubRepoFromGitUrl
* Extract GitHub owner/repo from a git URL if it's a GitHub URL. * Returns null if not a GitHub URL. * * Handles: * - git@github.com:owner/repo.gi
source code/utils/plugins/marketplaceHelpers.ts:350
↓ 2 callersFunctionextractHostFromSource
( source: MarketplaceSource, )
source code/utils/plugins/marketplaceHelpers.ts:237
↓ 2 callersFunctionextractInboundMessageFields
( msg: SDKMessage, )
source code/bridge/inboundMessages.ts:23
↓ 2 callersFunctionextractJsonStringFieldPrefix
* Like extractJsonStringField but returns the first `maxLen` characters of the * value even when the closing quote is missing (truncated buffer). New
source code/utils/sessionStorage.ts:4923
↓ 2 callersFunctionextractMcpToolDetails
(toolName: string)
source code/services/analytics/metadata.ts:178
↓ 2 callersFunctionextractMcpToolDisplayName
(userFacingName: string)
source code/services/mcp/mcpStringUtils.ts:90
↓ 2 callersFunctionextractPDFPages
( filePath: string, options?: { firstPage?: number; lastPage?: number }, )
source code/utils/pdf.ts:181
↓ 2 callersFunctionextractPartialResult
( messages: MessageType[], )
source code/tools/AgentTool/agentToolUtils.ts:490
↓ 2 callersFunctionextractPathsFromCommand
* Extract file paths from a parsed PowerShell command element. * Uses the AST args to find positional and named path parameters. * * If any path ar
source code/tools/PowerShellTool/pathValidation.ts:1306
↓ 2 callersFunctionextractPathsFromText
(textContent: string)
source code/utils/claudemd.ts:460
↓ 2 callersFunctionextractQuotaStatusFromHeaders
( headers: globalThis.Headers, )
source code/services/claudeAiLimits.ts:456
↓ 2 callersFunctionextractQuotedContent
(command: string, isJq = false)
source code/tools/BashTool/bashSecurity.ts:130
← previousnext →2,801–2,900 of 11,462, ranked by callers