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
executeRemoteSkill
* Load a remote canonical skill and inject its SKILL.md content into the * conversation. Unlike local skills (which go through processPromptSlashComm
source code/tools/SkillTool/SkillTool.ts:971
↓ 1 callers
Function
executeRepeatFind
( reverse: boolean, count: number, ctx: TransitionContext, )
source code/vim/transitions.ts:467
↓ 1 callers
Function
executeSessionStartHooks
( source: 'startup' | 'resume' | 'clear' | 'compact', sessionId?: string, agentType?: string, model?:
source code/utils/hooks.ts:3869
↓ 1 callers
Function
executeSetupHooks
( trigger: 'init' | 'maintenance', signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT
source code/utils/hooks.ts:3904
↓ 1 callers
Function
executeStatusLineCommand
( statusLineInput: StatusLineCommandInput, signal?: AbortSignal, timeoutMs: number = 5000, // Short time
source code/utils/hooks.ts:4586
↓ 1 callers
Function
executeStopHooks
( permissionMode?: string, signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, s
source code/utils/hooks.ts:3641
↓ 1 callers
Function
executeSubagentStartHooks
( agentId: string, agentType: string, signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TI
source code/utils/hooks.ts:3934
↓ 1 callers
Function
executeTaskCreatedHooks
( taskId: string, taskSubject: string, taskDescription?: string, teammateName?: string, teamName?: s
source code/utils/hooks.ts:3747
↓ 1 callers
Function
executeTeammateIdleHooks
( teammateName: string, teamName: string, permissionMode?: string, signal?: AbortSignal, timeoutMs:
source code/utils/hooks.ts:3711
↓ 1 callers
Method
executeTool
* Execute a tool and collect its results
source code/services/tools/StreamingToolExecutor.ts:267
↓ 1 callers
Function
executeUserPromptSubmitHooks
( prompt: string, permissionMode: string, toolUseContext: ToolUseContext, requestPrompt?: ( source
source code/utils/hooks.ts:3828
↓ 1 callers
Function
existsSync
(fsPath)
source code/utils/fsOperations.ts:391
↓ 1 callers
Function
exit
()
source code/utils/handlePromptSubmit.ts:37
↓ 1 callers
Function
exitRestoredWorktree
()
source code/utils/sessionRestore.ts:382
↓ 1 callers
Function
exitWithMessage
(root: Root, message: string, options?: { color?: TextProps['color']; exitCode?: number; beforeExit?: ()
source code/interactiveHelpers.tsx:67
↓ 1 callers
Function
expandBraces
* Expands brace patterns in a glob string. * @example * expandBraces("src/*.{ts,tsx}") // returns ["src/*.ts", "src/*.tsx"] * expandBraces("{a,b}/{
source code/utils/frontmatterParser.ts:242
↓ 1 callers
Function
expandEnvVars
* Internal utility: Expands environment variables in an MCP server config
source code/services/mcp/config.ts:558
↓ 1 callers
Function
expandField
(field: string, range: FieldRange)
source code/utils/cron.ts:33
↓ 1 callers
Function
expandFilePath
(filePath: string)
source code/utils/commitAttribution.ts:298
↓ 1 callers
Function
expandIPv6Groups
* Expand `::` and optional trailing dotted-decimal so an IPv6 address is * represented as exactly 8 hex groups. Returns null if expansion is not * w
source code/utils/hooks/ssrfGuard.ts:135
↓ 1 callers
Function
expandTabs
( text: string, interval = DEFAULT_TAB_INTERVAL, )
source code/ink/tabstops.ts:11
↓ 1 callers
Function
expectColorDiff
()
source code/components/StructuredDiff/colorDiff.ts:27
↓ 1 callers
Function
expectColorFile
()
source code/components/StructuredDiff/colorDiff.ts:31
↓ 1 callers
Function
exportWithReactRenderer
(context: ToolUseContext)
source code/commands/export/export.tsx:51
↓ 1 callers
Function
extendSelection
( s: SelectionState, screen: Screen, col: number, row: number, )
source code/ink/selection.ts:391
↓ 1 callers
Function
extensionForMimeType
(mimeType: string | undefined)
source code/utils/mcpOutputStorage.ts:68
↓ 1 callers
Function
externalMetadataToAppState
( metadata: SessionExternalMetadata, )
source code/state/onChangeAppState.ts:26
↓ 1 callers
Function
extractActivities
( line: string, sessionId: string, onDebug: (msg: string) => void, )
source code/bridge/sessionRunner.ts:109
↓ 1 callers
Function
extractAgentIdsFromMessages
(messages: Message[])
source code/utils/sessionStorage.ts:4246
↓ 1 callers
Function
extractAgentMcpServers
( agents: AgentDefinition[], )
source code/services/mcp/utils.ts:468
↓ 1 callers
Function
extractApprovedPlan
(content: ToolResultBlockParam['content'])
source code/utils/ultraplan/ccrSession.ts:335
↓ 1 callers
Function
extractAtMentionedFiles
(content: string)
source code/utils/attachments.ts:2759
↓ 1 callers
Function
extractBaseCommand
* Extract the command name from a single pipeline segment. * Strips leading `&` / `.` call operators and `.exe` suffix, lowercases.
source code/tools/PowerShellTool/commandSemantics.ts:102
↓ 1 callers
Function
extractBaseCommand
* Extract just the command name (first word) from a single command string.
source code/tools/BashTool/commandSemantics.ts:106
↓ 1 callers
Function
extractBundledSkillFiles
* Extract a bundled skill's reference files to disk so the model can * Read/Grep them on demand. Called lazily on first skill invocation. * * Retur
source code/skills/bundledSkills.ts:133
↓ 1 callers
Function
extractCliName
* Extract the actual CLI name from a bash command string, skipping * env var assignments (e.g. `FOO=bar vercel` → `vercel`) and prefixes * in STRIPP
source code/utils/queryHelpers.ts:545
↓ 1 callers
Function
extractCodeBlocks
(markdown: string)
source code/commands/copy/copy.tsx:32
↓ 1 callers
Function
extractCommandArguments
(commandNode: Node)
source code/utils/bash/parser.ts:191
↓ 1 callers
Function
extractCommandNameAndArgs
(value: string)
source code/hooks/useTypeahead.tsx:328
↓ 1 callers
Function
extractCompoundStructure
( rootNode: unknown, command: string, )
source code/utils/bash/treeSitterAnalysis.ts:298
↓ 1 callers
Function
extractConversationContext
* Extract recent conversation context from messages for the explainer. * Returns a summary of recent assistant messages to provide context * for "wh
source code/utils/permissions/permissionExplainer.ts:104
↓ 1 callers
Function
extractCwdResetWarning
* Extracts the "Shell cwd was reset" warning message from stderr * Returns the cleaned stderr and the warning message separately
source code/tools/BashTool/BashToolResultMessage.tsx:47
↓ 1 callers
Function
extractDangerousPatterns
(rootNode: unknown)
source code/utils/bash/treeSitterAnalysis.ts:450
↓ 1 callers
Method
extractDataPoints
(metric: MetricData)
source code/utils/telemetry/bigqueryExporter.ts:200
↓ 1 callers
Function
extractDebugCategories
(message: string)
source code/utils/debugFilter.ts:67
↓ 1 callers
Function
extractDirectories
(updates: PermissionUpdate[] | undefined)
source code/components/permissions/PermissionDecisionDebugInfo.tsx:194
↓ 1 callers
Function
extractEnvVars
(commandNode: Node | null)
source code/utils/bash/parser.ts:177
↓ 1 callers
Function
extractErrorTypeFromData
(data: unknown)
source code/bridge/bridgeApi.ts:528
↓ 1 callers
Function
extractFacetsFromAPI
( log: LogOption, sessionId: string, )
source code/commands/insights.ts:1003
↓ 1 callers
Function
extractFirstFrame
* Extracts content from the first complete frame in Ink's output. * Ink with non-TTY stdout outputs multiple frames, each wrapped in DEC synchronized
source code/utils/staticRender.tsx:64
↓ 1 callers
Function
extractFirstMessageText
( messages: (UserMessage | AssistantMessage)[], )
source code/utils/fingerprint.ts:18
↓ 1 callers
Function
extractFirstPrompt
(messages: Message[])
source code/commands/export/export.tsx:21
↓ 1 callers
Function
extractFirstPromptFromChunk
* Scans a chunk of text for the first meaningful user prompt.
source code/utils/sessionStorage.ts:4820
↓ 1 callers
Function
extractFirstPromptFromHead
(head: string)
source code/utils/sessionStoragePortable.ts:137
↓ 1 callers
Function
extractFirstUserMessageText
* Extract text from first user message for fingerprint computation.
source code/utils/sideQuery.ts:71
↓ 1 callers
Function
extractGlobBaseDirectory
(pattern: string)
source code/utils/glob.ts:19
↓ 1 callers
Function
extractHost
* Extract hostname from a URL or git spec and bucket to the allowlist. * Handles `https://host/...`, `git@host:path`, `ssh://host/...`. * Returns a
source code/utils/plugins/fetchTelemetry.ts:56
↓ 1 callers
Function
extractHttpStatus
(err: unknown)
source code/bridge/debugUtils.ts:90
↓ 1 callers
Function
extractHyperlinkFromStyles
( styles: AnsiCode[], )
source code/ink/screen.ts:1101
↓ 1 callers
Function
extractImage
( data: Record<string, unknown>, )
source code/utils/notebook.ts:43
↓ 1 callers
Function
extractImagesFromValue
* Extract images from ContentBlockParam[] and convert to PastedContent format. * Returns empty array for string values or if no images found.
source code/utils/messageQueueManager.ts:392
↓ 1 callers
Function
extractInboundAttachments
(msg: unknown)
source code/bridge/inboundAttachments.ts:44
↓ 1 callers
Function
extractIncludePathsFromTokens
( tokens: ReturnType<Lexer['lex']>, basePath: string, )
source code/utils/claudemd.ts:453
↓ 1 callers
Function
extractLastToolInfo
(progressMessages: ProgressMessage<Progress>[], tools: Tools)
source code/tools/AgentTool/UI.tsx:790
↓ 1 callers
Function
extractLspInfoFromManifest
* Extract LSP info (extensions and command) from inline lspServers config. * * NOTE: Can only read inline configs, not external .lsp.json files. *
source code/utils/plugins/lspRecommendation.ts:69
↓ 1 callers
Function
extractMappedIPv4
* Extract the embedded IPv4 address from an IPv4-mapped IPv6 address * (0:0:0:0:0:ffff:X:Y) in any valid representation — compressed, expanded, * he
source code/utils/hooks/ssrfGuard.ts:189
↓ 1 callers
Function
extractMarkupText
* Extracts text content from MarkupContent or MarkedString
source code/tools/LSPTool/formatters.ts:225
↓ 1 callers
Function
extractMcpResourceMentions
(content: string)
source code/utils/attachments.ts:2794
↓ 1 callers
Function
extractMcpbContents
* Extract MCPB file and write contents to extraction directory. * * @param modes - name→mode map from `parseZipModes`. MCPB bundles can ship * na
source code/utils/plugins/mcpbHandler.ts:552
↓ 1 callers
Function
extractMode
(updates: PermissionUpdate[] | undefined)
source code/components/permissions/PermissionDecisionDebugInfo.tsx:207
↓ 1 callers
Function
extractModelIdFromArn
(modelId: string)
source code/utils/model/bedrock.ts:201
↓ 1 callers
Function
extractNestedErrorMessage
* Extract a human-readable message from a deserialized API error that lacks * a top-level `.message`. * * Checks two nesting levels (deeper first f
source code/services/api/errorUtils.ts:171
↓ 1 callers
Function
extractPipePositions
(rootNode: Node)
source code/utils/bash/ParsedCommand.ts:115
↓ 1 callers
Function
extractPrefixBeforeHeredoc
* If the command contains a heredoc (<<), extract the command prefix before it. * Returns the first word(s) before the heredoc operator as a stable p
source code/tools/BashTool/bashPermissions.ts:309
↓ 1 callers
Function
extractProviderPathFromArg
(arg: string)
source code/tools/PowerShellTool/powershellPermissions.ts:987
↓ 1 callers
Function
extractQuoteContext
( rootNode: unknown, command: string, )
source code/utils/bash/treeSitterAnalysis.ts:226
↓ 1 callers
Function
extractRedirectionNodes
(rootNode: Node)
source code/utils/bash/ParsedCommand.ts:133
↓ 1 callers
Function
extractReviewFromLog
* Extract review content from the remote session log. * * Two producers, two event shapes: * - bughunter mode: run_hunt.sh is a SessionStart hook;
source code/tasks/RemoteAgentTask/RemoteAgentTask.tsx:256
↓ 1 callers
Function
extractReviewTagFromLog
* Tag-only variant of extractReviewFromLog for delta scanning. * * Returns non-null ONLY when an explicit <remote-review> tag is found. * Unlike ex
source code/tasks/RemoteAgentTask/RemoteAgentTask.tsx:297
↓ 1 callers
Function
extractSafeCatHeredoc
* Check if a command_substitution node is exactly `$(cat <<'DELIM'...DELIM)` * and return the heredoc body if so. Any deviation (extra args to cat,
source code/utils/bash/ast.ts:1723
↓ 1 callers
Function
extractSandboxViolations
* Extracts sandbox violations from stderr if present * Returns both the cleaned stderr and the violations content
source code/tools/BashTool/BashToolResultMessage.tsx:26
↓ 1 callers
Function
extractSectionName
Extract a human-readable name from a system prompt section's content
source code/utils/analyzeContext.ts:263
↓ 1 callers
Function
extractSedExpressions
(command: string)
source code/tools/BashTool/sedValidation.ts:390
↓ 1 callers
Function
extractServerMessage
(data: unknown)
source code/utils/errorLogSink.ts:130
↓ 1 callers
Function
extractShotCountFromMessages
* Extract the shot count from PR attribution text in a `gh pr create` Bash call. * The attribution format is: "N-shotted by model-name" * Returns th
source code/utils/stats.ts:942
↓ 1 callers
Function
extractSideQuestionResponse
* Extract a display string from forked agent messages. * * IMPORTANT: claude.ts yields one AssistantMessage PER CONTENT BLOCK, not one * per API re
source code/utils/sideQuestion.ts:127
↓ 1 callers
Function
extractSkillName
( toolName: string, input: unknown, )
source code/services/analytics/metadata.ts:217
↓ 1 callers
Function
extractSnippet
(text: string, query: string, contextChars: number)
source code/components/LogSelector.tsx:93
↓ 1 callers
Function
extractTeammateOptions
(options: unknown)
source code/main.tsx:4669
↓ 1 callers
Function
extractTeammateTranscriptsFromTasks
(tasks: { [taskId: string]: { type: string identity?: { agentId: string } messages?: Message[]
source code/utils/sessionStorage.ts:4273
↓ 1 callers
Function
extractTeleportPlan
( content: ToolResultBlockParam['content'], )
source code/utils/ultraplan/ccrSession.ts:323
↓ 1 callers
Function
extractTextFromValue
* Extract text from a queued command value. * For strings, returns the string. * For ContentBlockParam[], extracts text from text blocks.
source code/utils/messageQueueManager.ts:384
↓ 1 callers
Function
extractTodoListFromLog
* Extract todo list from SDK messages (finds last TodoWrite tool use).
source code/tasks/RemoteAgentTask/RemoteAgentTask.tsx:367
↓ 1 callers
Function
extractTodosFromTranscript
* Scan the transcript for the last TodoWrite tool_use block and return its todos. * Used to hydrate AppState.todos on SDK --resume so the model's tod
source code/utils/sessionRestore.ts:79
↓ 1 callers
Function
extractToolInputForTelemetry
( input: unknown, )
source code/services/analytics/metadata.ts:293
↓ 1 callers
Function
extractToolStats
(log: LogOption)
source code/commands/insights.ts:469
↓ 1 callers
Function
extractToolUseBlock
( content: BetaContentBlock[], toolName: string, )
source code/utils/permissions/classifierShared.ts:17
↓ 1 callers
Function
extractToolUseId
(message: AssistantMessage)
source code/services/mcp/client.ts:3249
↓ 1 callers
Function
extractUrlScheme
* Extract URL scheme for telemetry. Defaults to 'gs' for unrecognized schemes * since the AKI backend is the only production path and the loader thro
source code/tools/SkillTool/SkillTool.ts:951
↓ 1 callers
Function
extractUserMessageText
* Extract plain text from a replayed SDKUserMessage NDJSON line. Returns the * trimmed text if this looks like a real human-authored message, otherwi
source code/bridge/sessionRunner.ts:209
← previous
next →
5,101–5,200 of 11,462, ranked by callers