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
↓ 3 callers
Method
deleteWordBefore
()
source code/utils/Cursor.ts:918
↓ 3 callers
Function
dequeueAllMatching
( predicate: (cmd: QueuedCommand) => boolean, )
source code/utils/messageQueueManager.ts:246
↓ 3 callers
Function
detectEncodingForResolvedPath
( resolvedPath: string, )
source code/utils/fileRead.ts:22
↓ 3 callers
Function
detectHomebrew
()
source code/utils/nativeInstaller/packageManagers.ts:105
↓ 3 callers
Function
detectImageFormatFromBase64
( base64Data: string, )
source code/utils/imageResizer.ts:821
↓ 3 callers
Function
detectSessionPatternType
( pattern: string, )
source code/utils/memoryFileDetection.ts:67
↓ 3 callers
Function
detectUnreachableRules
( context: ToolPermissionContext, options: DetectUnreachableRulesOptions, )
source code/utils/permissions/shadowedRuleDetection.ts:195
↓ 3 callers
Function
diffEach
( prev: Screen, next: Screen, cb: DiffCallback, )
source code/ink/screen.ts:1158
↓ 3 callers
Function
discoverOidc
( idpIssuer: string, )
source code/services/mcp/xaaIdpLogin.ts:204
↓ 3 callers
Function
discoverSkillDirsForPaths
( filePaths: string[], cwd: string, )
source code/skills/loadSkillsDir.ts:863
↓ 3 callers
Method
dispatch
* Dispatch an event through capture and bubble phases. * Returns true if preventDefault() was NOT called.
source code/ink/events/dispatcher.ts:187
↓ 3 callers
Function
doInitializeTelemetry
()
source code/entrypoints/init.ts:290
↓ 3 callers
Method
done
()
source code/utils/stream.ts:51
↓ 3 callers
Function
effortLevelToSymbol
(level: EffortLevel)
source code/components/EffortIndicator.ts:29
↓ 3 callers
Function
emit
(event: HookExecutionEvent)
source code/utils/hooks/hookEvents.ts:74
↓ 3 callers
Function
emitStatusChange
(limits: ClaudeAILimits)
source code/services/claudeAiLimits.ts:186
↓ 3 callers
Method
enablePaneBorderStatus
* Enables pane border status for a window (shows pane titles).
source code/utils/swarm/backends/TmuxBackend.ts:236
↓ 3 callers
Function
encodeChunk
(data: Uint8Array)
source code/upstreamproxy/relay.ts:68
↓ 3 callers
Function
endInteractionSpan
()
source code/utils/telemetry/sessionTracing.ts:239
↓ 3 callers
Method
endOfLogicalLine
()
source code/utils/Cursor.ts:497
↓ 3 callers
Function
endToolSpan
(toolResult?: string, resultTokens?: number)
source code/utils/telemetry/sessionTracing.ts:693
↓ 3 callers
Function
enhanceSystemPromptWithEnvDetails
( existingSystemPrompt: string[], model: string, additionalWorkingDirectories?: string[], enabledToolN
source code/constants/prompts.ts:762
↓ 3 callers
Function
enqueueRemoteNotification
* Enqueue a remote task notification to the message queue.
source code/tasks/RemoteAgentTask/RemoteAgentTask.tsx:168
↓ 3 callers
Function
ensureMemoryDirExists
(memoryDir: string)
source code/memdir/memdir.ts:131
↓ 3 callers
Function
ensureOutputDir
* Ensure the task output directory exists
source code/utils/task/diskOutput.ts:67
↓ 3 callers
Function
ensureParserInitialized
()
source code/utils/bash/bashParser.ts:41
↓ 3 callers
Function
ensureTaskListLockFile
* Ensures the lock file exists for a task list
source code/utils/tasks.ts:513
↓ 3 callers
Function
ensureTasksDir
(taskListId: string)
source code/utils/tasks.ts:235
↓ 3 callers
Function
escapeRegExp
(str: string)
source code/utils/stringUtils.ts:11
↓ 3 callers
Function
evictTerminalTask
( taskId: string, setAppState: SetAppState, )
source code/utils/task/framework.ts:127
↓ 3 callers
Function
excludeToolsByServer
( tools: Tool[], serverName: string, )
source code/services/mcp/utils.ts:117
↓ 3 callers
Function
execFilePromise
( cmd: string, args: string[], )
source code/utils/settings/mdm/rawRead.ts:34
↓ 3 callers
Function
executeConfigChangeHooks
( source: ConfigChangeSource, filePath?: string, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, )
source code/utils/hooks.ts:4216
↓ 3 callers
Function
executeOpenLine
( direction: 'above' | 'below', ctx: OperatorContext, )
source code/vim/operators.ts:399
↓ 3 callers
Function
executePermissionRequestHooks
( toolName: string, toolUseID: string, toolInput: ToolInput, toolUseContext: ToolUseContext, permiss
source code/utils/hooks.ts:4159
↓ 3 callers
Function
executePreCompactHooks
( compactData: { trigger: 'manual' | 'auto' customInstructions: string | null }, signal?: AbortS
source code/utils/hooks.ts:3963
↓ 3 callers
Function
executeSessionEndHooks
( reason: ExitReason, options?: { getAppState?: () => AppState setAppState?: (updater: (prev: AppS
source code/utils/hooks.ts:4099
↓ 3 callers
Function
executeStopFailureHooks
( lastMessage: AssistantMessage, toolUseContext?: ToolUseContext, timeoutMs: number = TOOL_HOOK_EXECUTIO
source code/utils/hooks.ts:3596
↓ 3 callers
Function
executeWorktreeCreateHook
( name: string, )
source code/utils/hooks.ts:4930
↓ 3 callers
Function
exitWithMessage
(message: string)
source code/cli/structuredIO.ts:778
↓ 3 callers
Function
expandEnvVarsInString
(value: string)
source code/services/mcp/envExpansion.ts:12
↓ 3 callers
Function
expandPastedTextRefs
( input: string, pastedContents: Record<number, PastedContent>, )
source code/history.ts:83
↓ 3 callers
Function
expandTilde
(path: string)
source code/utils/permissions/pathValidation.ts:82
↓ 3 callers
Function
extractClaudeCodeHints
( output: string, command: string, )
source code/utils/claudeCodeHints.ts:74
↓ 3 callers
Function
extractFirstPrompt
(transcript: TranscriptMessage[])
source code/utils/sessionStorage.ts:1727
↓ 3 callers
Function
extractPrefixFromElement
* Extract a static prefix from a single parsed command element. * Returns null for commands we won't suggest (shells, eval cmdlets, path-like * invo
source code/utils/powershell/staticPrefix.ts:32
↓ 3 callers
Function
extractQuotaStatusFromError
(error: APIError)
source code/services/claudeAiLimits.ts:489
↓ 3 callers
Function
extractReadFilesFromMessages
( messages: Message[], cwd: string, maxSize: number = ASK_READ_FILE_STATE_CACHE_SIZE, )
source code/utils/queryHelpers.ts:348
↓ 3 callers
Function
extractRequestId
* Extract the API request_id (req_xxx) that the SDK attaches as a * non-enumerable `_request_id` property on response objects.
source code/utils/permissions/yoloClassifier.ts:626
↓ 3 callers
Function
extractResultText
( agentMessages: Message[], defaultText = 'Execution completed', )
source code/utils/forkedAgent.ts:239
↓ 3 callers
Function
extractSystemReminderContent
* Check if text is entirely a system reminder (wrapped in <system-reminder> tags). * Returns the inner content if it is, null otherwise.
source code/utils/telemetry/betaSessionTracing.ts:151
↓ 3 callers
Function
extractTaggedBullets
(tagName: string)
source code/utils/permissions/yoloClassifier.ts:110
↓ 3 callers
Method
feed
Feed input and get resulting actions
source code/ink/termio/parser.ts:289
↓ 3 callers
Function
fetchAndLoadPolicyLimits
* Fetch and load policy limits with file caching * Fails open - returns null if fetch fails and no cache exists
source code/services/policyLimits/index.ts:434
↓ 3 callers
Function
fetchAndLoadRemoteManagedSettings
* Fetch and load remote settings with file caching * Internal function that handles the full load/fetch logic * Fails open - returns null if fetch f
source code/services/remoteManagedSettings/index.ts:417
↓ 3 callers
Function
fetchOfficialMarketplaceFromGcs
( installLocation: string, marketplacesCacheDir: string, )
source code/utils/plugins/officialMarketplaceGcs.ts:49
↓ 3 callers
Function
fetchRemoteCredentials
( sessionId: string, baseUrl: string, accessToken: string, timeoutMs: number, )
source code/bridge/remoteBridgeCore.ts:933
↓ 3 callers
Function
fetchSessionLogsFromUrl
* Shared implementation for fetching session logs from a URL
source code/services/api/sessionIngress.ts:422
↓ 3 callers
Function
fetchUtilization
()
source code/services/api/usage.ts:35
↓ 3 callers
Function
fileHistoryGetDiffStats
( state: FileHistoryState, messageId: UUID, )
source code/utils/fileHistory.ts:416
↓ 3 callers
Function
fileHistoryMakeSnapshot
( updateFileHistoryState: ( updater: (prev: FileHistoryState) => FileHistoryState, ) => void, messag
source code/utils/fileHistory.ts:200
↓ 3 callers
Function
filterDeniedAgents
( agents: T[], context: ToolPermissionContext, agentToolName: string, )
source code/utils/permissions/permissions.ts:327
↓ 3 callers
Function
filterOrphanedThinkingOnlyMessages
( messages: Message[], )
source code/utils/messages.ts:4999
↓ 3 callers
Function
filterOutFlags
* SECURITY: Extract positional (non-flag) arguments, correctly handling the * POSIX `--` end-of-options delimiter. * * Most commands (rm, cat, touc
source code/tools/BashTool/pathValidation.ts:128
↓ 3 callers
Function
filterRulesByContentsMatchingInput
* Filter rules by contents matching an input command. * PowerShell-specific: uses case-insensitive matching throughout. * Follows the same structure
source code/tools/PowerShellTool/powershellPermissions.ts:172
↓ 3 callers
Function
filterRulesByContentsMatchingInput
( input: z.infer<typeof BashTool.inputSchema>, rules: Map<string, PermissionRule>, matchMode: 'exact' |
source code/tools/BashTool/bashPermissions.ts:780
↓ 3 callers
Function
filterWhitespaceOnlyAssistantMessages
( messages: Message[], )
source code/utils/messages.ts:4877
↓ 3 callers
Function
finalizeAgentTool
( agentMessages: MessageType[], agentId: string, metadata: { prompt: string resolvedAgentModel:
source code/tools/AgentTool/agentToolUtils.ts:278
↓ 3 callers
Function
finalizeHook
( hook: PendingAsyncHook, exitCode: number, outcome: 'success' | 'error' | 'cancelled', )
source code/utils/hooks/AsyncHookRegistry.ts:93
↓ 3 callers
Method
findCharacter
* Find a character using vim f/F/t/T semantics. * * @param char - The character to find * @param type - 'f' (forward to), 'F' (backward to),
source code/utils/Cursor.ts:1064
↓ 3 callers
Function
findExecutable
* Find an executable using where.exe on Windows * @param executable - The name of the executable to find * @returns The path to the executable or nu
source code/utils/windowsPaths.ts:31
↓ 3 callers
Method
findLogicalLineEnd
(fromOffset: number = this.offset)
source code/utils/Cursor.ts:470
↓ 3 callers
Method
findLogicalLineStart
(fromOffset: number = this.offset)
source code/utils/Cursor.ts:465
↓ 3 callers
Function
findMidInputSlashCommand
( input: string, cursorOffset: number, )
source code/utils/suggestions/commandSuggestions.ts:116
↓ 3 callers
Function
findProjectSkill
()
source code/utils/hooks/skillImprovement.ts:60
↓ 3 callers
Function
findUltraplanTriggerPositions
(text: string)
source code/utils/ultraplan/keyword.ts:99
↓ 3 callers
Function
finish
(msg: string)
source code/commands/plugin/BrowseMarketplace.tsx:546
↓ 3 callers
Function
finish
(msg: string)
source code/commands/plugin/ManagePlugins.tsx:1635
↓ 3 callers
Function
finish
(msg: string)
source code/commands/plugin/DiscoverPlugins.tsx:471
↓ 3 callers
Function
fireRawRead
()
source code/utils/settings/mdm/rawRead.ts:57
↓ 3 callers
Function
firstGrapheme
(text: string)
source code/utils/intl.ts:28
↓ 3 callers
Method
flush
* Send the DA1 sentinel. Resolves when DA1's response arrives. * * As a side effect, all queries still pending when DA1 arrives are * resolve
source code/ink/terminal-querier.ts:172
↓ 3 callers
Method
flush
* Block until all pending events are POSTed. Used by bridge's initial * history flush so onStateChange('connected') fires after persistence.
source code/cli/transports/HybridTransport.ts:151
↓ 3 callers
Function
flushAndCleanup
(shellCommand: ShellCommand)
source code/tasks/LocalShellTask/LocalShellTask.tsx:517
↓ 3 callers
Function
flushLogs
()
source code/services/analytics/datadog.ts:104
↓ 3 callers
Function
flushRegex
()
source code/utils/bash/bashParser.ts:3041
↓ 3 callers
Method
flushStreamEventBuffer
* Drain the stream_event delay buffer: accumulate text_deltas into * full-so-far snapshots, clear the timer, enqueue the resulting events. * Cal
source code/cli/transports/ccrClient.ts:773
↓ 3 callers
Method
focus
(node: DOMElement)
source code/ink/focus.ts:29
↓ 3 callers
Function
forceExit
* Force process exit, handling the case where the terminal is gone. * When the terminal/PTY is closed (e.g., SIGHUP), process.exit() can throw * EIO
source code/utils/gracefulShutdown.ts:195
↓ 3 callers
Function
formatAPIError
(error: APIError)
source code/services/api/errorUtils.ts:202
↓ 3 callers
Function
formatAsTeammateMessage
* Formats a message as <teammate-message> XML for injection into the conversation. * This ensures the model sees messages in the same format as tmux
source code/utils/swarm/inProcessRunner.ts:459
↓ 3 callers
Function
formatLimitInfo
( appliedLimit: number | undefined, appliedOffset: number | undefined, )
source code/tools/GrepTool/GrepTool.ts:136
↓ 3 callers
Function
formatLogMetadata
(log: { modified: Date messageCount: number fileSize?: number gitBranch?: string tag?: string agen
source code/utils/format.ts:205
↓ 3 callers
Function
formatMarketplaceLoadingErrors
( failures: Array<{ name: string; error: string }>, successCount: number, )
source code/utils/plugins/marketplaceHelpers.ts:121
↓ 3 callers
Function
formatPermissionSource
(source: PermissionRuleSource)
source code/utils/permissions/permissionSetup.ts:249
↓ 3 callers
Function
formatRelativeTime
( date: Date, options: RelativeTimeOptions & { now?: Date } = {}, )
source code/utils/format.ts:146
↓ 3 callers
Function
formatReplacementValue
(options: { displayText: string; mode: string; hasAtPrefix: boolean; needsQuotes: boolean; isQuoted?
source code/hooks/useTypeahead.tsx:150
↓ 3 callers
Function
formatRulesForCritique
( section: string, userRules: string[], defaultRules: string[], )
source code/cli/handlers/autoMode.ts:153
↓ 3 callers
Function
formatSnippet
({ before, match, after }: Snippet, highlightColor: (text: string) => string)
source code/components/LogSelector.tsx:86
↓ 3 callers
Function
formatTotalCost
()
source code/cost-tracker.ts:230
← previous
next →
1,801–1,900 of 11,462, ranked by callers