Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Austin1serb/Anthropic-Leaked-Source-Code
/ functions
Functions
11,462 in github.com/Austin1serb/Anthropic-Leaked-Source-Code
⨍
Functions
11,462
◇
Types & classes
340
↓ 1 callers
Function
executePush
* Execute the push and track its lifecycle. * Push is read-only on disk (delta+probe, no merge writes), so no event * suppression is needed — edits
services/teamMemorySync/watcher.ts:84
↓ 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
tools/SkillTool/SkillTool.ts:969
↓ 1 callers
Function
executeRepeatFind
( reverse: boolean, count: number, ctx: TransitionContext, )
vim/transitions.ts:465
↓ 1 callers
Function
executeSessionStartHooks
( source: 'startup' | 'resume' | 'clear' | 'compact', sessionId?: string, agentType?: string, model?:
utils/hooks.ts:3867
↓ 1 callers
Function
executeSetupHooks
( trigger: 'init' | 'maintenance', signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT
utils/hooks.ts:3902
↓ 1 callers
Function
executeStatusLineCommand
( statusLineInput: StatusLineCommandInput, signal?: AbortSignal, timeoutMs: number = 5000, // Short time
utils/hooks.ts:4584
↓ 1 callers
Function
executeStopHooks
( permissionMode?: string, signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, s
utils/hooks.ts:3639
↓ 1 callers
Function
executeSubagentStartHooks
( agentId: string, agentType: string, signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TI
utils/hooks.ts:3932
↓ 1 callers
Function
executeTaskCreatedHooks
( taskId: string, taskSubject: string, taskDescription?: string, teammateName?: string, teamName?: s
utils/hooks.ts:3745
↓ 1 callers
Function
executeTeammateIdleHooks
( teammateName: string, teamName: string, permissionMode?: string, signal?: AbortSignal, timeoutMs:
utils/hooks.ts:3709
↓ 1 callers
Method
executeTool
* Execute a tool and collect its results
services/tools/StreamingToolExecutor.ts:265
↓ 1 callers
Function
executeUserPromptSubmitHooks
( prompt: string, permissionMode: string, toolUseContext: ToolUseContext, requestPrompt?: ( source
utils/hooks.ts:3826
↓ 1 callers
Function
existsSync
(fsPath)
utils/fsOperations.ts:389
↓ 1 callers
Function
exit
()
utils/handlePromptSubmit.ts:35
↓ 1 callers
Function
exitRestoredWorktree
()
utils/sessionRestore.ts:380
↓ 1 callers
Function
exitWithMessage
(root: Root, message: string, options?: { color?: TextProps['color']; exitCode?: number; beforeExit?: ()
interactiveHelpers.tsx:65
↓ 1 callers
Function
expandBraces
* Expands brace patterns in a glob string. * @example * expandBraces("src/*.{ts,tsx}") // returns ["src/*.ts", "src/*.tsx"] * expandBraces("{a,b}/{
utils/frontmatterParser.ts:240
↓ 1 callers
Function
expandEnvVars
* Internal utility: Expands environment variables in an MCP server config
services/mcp/config.ts:556
↓ 1 callers
Function
expandField
(field: string, range: FieldRange)
utils/cron.ts:31
↓ 1 callers
Function
expandFilePath
(filePath: string)
utils/commitAttribution.ts:296
↓ 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
utils/hooks/ssrfGuard.ts:133
↓ 1 callers
Function
expandTabs
( text: string, interval = DEFAULT_TAB_INTERVAL, )
ink/tabstops.ts:9
↓ 1 callers
Function
expectColorDiff
()
components/StructuredDiff/colorDiff.ts:25
↓ 1 callers
Function
expectColorFile
()
components/StructuredDiff/colorDiff.ts:29
↓ 1 callers
Function
exportWithReactRenderer
(context: ToolUseContext)
commands/export/export.tsx:49
↓ 1 callers
Function
extendSelection
( s: SelectionState, screen: Screen, col: number, row: number, )
ink/selection.ts:389
↓ 1 callers
Function
extensionForMimeType
(mimeType: string | undefined)
utils/mcpOutputStorage.ts:66
↓ 1 callers
Function
externalMetadataToAppState
( metadata: SessionExternalMetadata, )
state/onChangeAppState.ts:24
↓ 1 callers
Function
extractActivities
( line: string, sessionId: string, onDebug: (msg: string) => void, )
bridge/sessionRunner.ts:107
↓ 1 callers
Function
extractAgentIdsFromMessages
(messages: Message[])
utils/sessionStorage.ts:4244
↓ 1 callers
Function
extractAgentMcpServers
( agents: AgentDefinition[], )
services/mcp/utils.ts:466
↓ 1 callers
Function
extractApprovedPlan
(content: ToolResultBlockParam['content'])
utils/ultraplan/ccrSession.ts:333
↓ 1 callers
Function
extractAtMentionedFiles
(content: string)
utils/attachments.ts:2757
↓ 1 callers
Function
extractBaseCommand
* Extract the command name from a single pipeline segment. * Strips leading `&` / `.` call operators and `.exe` suffix, lowercases.
tools/PowerShellTool/commandSemantics.ts:100
↓ 1 callers
Function
extractBaseCommand
* Extract just the command name (first word) from a single command string.
tools/BashTool/commandSemantics.ts:104
↓ 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
skills/bundledSkills.ts:131
↓ 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
utils/queryHelpers.ts:543
↓ 1 callers
Function
extractCodeBlocks
(markdown: string)
commands/copy/copy.tsx:30
↓ 1 callers
Function
extractCommandArguments
(commandNode: Node)
utils/bash/parser.ts:189
↓ 1 callers
Function
extractCommandNameAndArgs
(value: string)
hooks/useTypeahead.tsx:326
↓ 1 callers
Function
extractCompoundStructure
( rootNode: unknown, command: string, )
utils/bash/treeSitterAnalysis.ts:296
↓ 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
utils/permissions/permissionExplainer.ts:102
↓ 1 callers
Function
extractCwdResetWarning
* Extracts the "Shell cwd was reset" warning message from stderr * Returns the cleaned stderr and the warning message separately
tools/BashTool/BashToolResultMessage.tsx:45
↓ 1 callers
Function
extractDangerousPatterns
(rootNode: unknown)
utils/bash/treeSitterAnalysis.ts:448
↓ 1 callers
Method
extractDataPoints
(metric: MetricData)
utils/telemetry/bigqueryExporter.ts:198
↓ 1 callers
Function
extractDebugCategories
(message: string)
utils/debugFilter.ts:65
↓ 1 callers
Function
extractDirectories
(updates: PermissionUpdate[] | undefined)
components/permissions/PermissionDecisionDebugInfo.tsx:192
↓ 1 callers
Function
extractEnvVars
(commandNode: Node | null)
utils/bash/parser.ts:175
↓ 1 callers
Function
extractErrorTypeFromData
(data: unknown)
bridge/bridgeApi.ts:526
↓ 1 callers
Function
extractFacetsFromAPI
( log: LogOption, sessionId: string, )
commands/insights.ts:1001
↓ 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
utils/staticRender.tsx:62
↓ 1 callers
Function
extractFirstMessageText
( messages: (UserMessage | AssistantMessage)[], )
utils/fingerprint.ts:16
↓ 1 callers
Function
extractFirstPrompt
(messages: Message[])
commands/export/export.tsx:19
↓ 1 callers
Function
extractFirstPromptFromChunk
* Scans a chunk of text for the first meaningful user prompt.
utils/sessionStorage.ts:4818
↓ 1 callers
Function
extractFirstPromptFromHead
(head: string)
utils/sessionStoragePortable.ts:135
↓ 1 callers
Function
extractFirstUserMessageText
* Extract text from first user message for fingerprint computation.
utils/sideQuery.ts:69
↓ 1 callers
Function
extractGlobBaseDirectory
(pattern: string)
utils/glob.ts:17
↓ 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
utils/plugins/fetchTelemetry.ts:54
↓ 1 callers
Function
extractHttpStatus
(err: unknown)
bridge/debugUtils.ts:88
↓ 1 callers
Function
extractHyperlinkFromStyles
( styles: AnsiCode[], )
ink/screen.ts:1099
↓ 1 callers
Function
extractImage
( data: Record<string, unknown>, )
utils/notebook.ts:41
↓ 1 callers
Function
extractImagesFromValue
* Extract images from ContentBlockParam[] and convert to PastedContent format. * Returns empty array for string values or if no images found.
utils/messageQueueManager.ts:390
↓ 1 callers
Function
extractInboundAttachments
(msg: unknown)
bridge/inboundAttachments.ts:42
↓ 1 callers
Function
extractIncludePathsFromTokens
( tokens: ReturnType<Lexer['lex']>, basePath: string, )
utils/claudemd.ts:451
↓ 1 callers
Function
extractLastToolInfo
(progressMessages: ProgressMessage<Progress>[], tools: Tools)
tools/AgentTool/UI.tsx:788
↓ 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. *
utils/plugins/lspRecommendation.ts:67
↓ 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
utils/hooks/ssrfGuard.ts:187
↓ 1 callers
Function
extractMarkupText
* Extracts text content from MarkupContent or MarkedString
tools/LSPTool/formatters.ts:223
↓ 1 callers
Function
extractMcpResourceMentions
(content: string)
utils/attachments.ts:2792
↓ 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
utils/plugins/mcpbHandler.ts:550
↓ 1 callers
Function
extractMode
(updates: PermissionUpdate[] | undefined)
components/permissions/PermissionDecisionDebugInfo.tsx:205
↓ 1 callers
Function
extractModelIdFromArn
(modelId: string)
utils/model/bedrock.ts:199
↓ 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
services/api/errorUtils.ts:169
↓ 1 callers
Function
extractPipePositions
(rootNode: Node)
utils/bash/ParsedCommand.ts:113
↓ 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
tools/BashTool/bashPermissions.ts:307
↓ 1 callers
Function
extractProviderPathFromArg
(arg: string)
tools/PowerShellTool/powershellPermissions.ts:985
↓ 1 callers
Function
extractQuoteContext
( rootNode: unknown, command: string, )
utils/bash/treeSitterAnalysis.ts:224
↓ 1 callers
Function
extractRedirectionNodes
(rootNode: Node)
utils/bash/ParsedCommand.ts:131
↓ 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;
tasks/RemoteAgentTask/RemoteAgentTask.tsx:254
↓ 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
tasks/RemoteAgentTask/RemoteAgentTask.tsx:295
↓ 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,
utils/bash/ast.ts:1721
↓ 1 callers
Function
extractSandboxViolations
* Extracts sandbox violations from stderr if present * Returns both the cleaned stderr and the violations content
tools/BashTool/BashToolResultMessage.tsx:24
↓ 1 callers
Function
extractSectionName
Extract a human-readable name from a system prompt section's content
utils/analyzeContext.ts:261
↓ 1 callers
Function
extractSedExpressions
(command: string)
tools/BashTool/sedValidation.ts:388
↓ 1 callers
Function
extractServerMessage
(data: unknown)
utils/errorLogSink.ts:128
↓ 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
utils/stats.ts:940
↓ 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
utils/sideQuestion.ts:125
↓ 1 callers
Function
extractSkillName
( toolName: string, input: unknown, )
services/analytics/metadata.ts:215
↓ 1 callers
Function
extractSnippet
(text: string, query: string, contextChars: number)
components/LogSelector.tsx:91
↓ 1 callers
Function
extractTeammateOptions
(options: unknown)
main.tsx:4667
↓ 1 callers
Function
extractTeammateTranscriptsFromTasks
(tasks: { [taskId: string]: { type: string identity?: { agentId: string } messages?: Message[]
utils/sessionStorage.ts:4271
↓ 1 callers
Function
extractTeleportPlan
( content: ToolResultBlockParam['content'], )
utils/ultraplan/ccrSession.ts:321
↓ 1 callers
Function
extractTextFromValue
* Extract text from a queued command value. * For strings, returns the string. * For ContentBlockParam[], extracts text from text blocks.
utils/messageQueueManager.ts:382
↓ 1 callers
Function
extractTodoListFromLog
* Extract todo list from SDK messages (finds last TodoWrite tool use).
tasks/RemoteAgentTask/RemoteAgentTask.tsx:365
↓ 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
utils/sessionRestore.ts:77
↓ 1 callers
Function
extractToolInputForTelemetry
( input: unknown, )
services/analytics/metadata.ts:291
↓ 1 callers
Function
extractToolStats
(log: LogOption)
commands/insights.ts:467
↓ 1 callers
Function
extractToolUseBlock
( content: BetaContentBlock[], toolName: string, )
utils/permissions/classifierShared.ts:15
↓ 1 callers
Function
extractToolUseId
(message: AssistantMessage)
services/mcp/client.ts:3247
↓ 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
tools/SkillTool/SkillTool.ts:949
← previous
next →
5,101–5,200 of 11,462, ranked by callers