MCPcopy Create free account

hub / github.com/Austin1serb/Anthropic-Leaked-Source-Code / functions

Functions11,462 in github.com/Austin1serb/Anthropic-Leaked-Source-Code

↓ 1 callersFunctionexecutePush
* 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 callersFunctionexecuteRemoteSkill
* 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 callersFunctionexecuteRepeatFind
( reverse: boolean, count: number, ctx: TransitionContext, )
vim/transitions.ts:465
↓ 1 callersFunctionexecuteSessionStartHooks
( source: 'startup' | 'resume' | 'clear' | 'compact', sessionId?: string, agentType?: string, model?:
utils/hooks.ts:3867
↓ 1 callersFunctionexecuteSetupHooks
( trigger: 'init' | 'maintenance', signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT
utils/hooks.ts:3902
↓ 1 callersFunctionexecuteStatusLineCommand
( statusLineInput: StatusLineCommandInput, signal?: AbortSignal, timeoutMs: number = 5000, // Short time
utils/hooks.ts:4584
↓ 1 callersFunctionexecuteStopHooks
( permissionMode?: string, signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, s
utils/hooks.ts:3639
↓ 1 callersFunctionexecuteSubagentStartHooks
( agentId: string, agentType: string, signal?: AbortSignal, timeoutMs: number = TOOL_HOOK_EXECUTION_TI
utils/hooks.ts:3932
↓ 1 callersFunctionexecuteTaskCreatedHooks
( taskId: string, taskSubject: string, taskDescription?: string, teammateName?: string, teamName?: s
utils/hooks.ts:3745
↓ 1 callersFunctionexecuteTeammateIdleHooks
( teammateName: string, teamName: string, permissionMode?: string, signal?: AbortSignal, timeoutMs:
utils/hooks.ts:3709
↓ 1 callersMethodexecuteTool
* Execute a tool and collect its results
services/tools/StreamingToolExecutor.ts:265
↓ 1 callersFunctionexecuteUserPromptSubmitHooks
( prompt: string, permissionMode: string, toolUseContext: ToolUseContext, requestPrompt?: ( source
utils/hooks.ts:3826
↓ 1 callersFunctionexistsSync
(fsPath)
utils/fsOperations.ts:389
↓ 1 callersFunctionexit
()
utils/handlePromptSubmit.ts:35
↓ 1 callersFunctionexitRestoredWorktree
()
utils/sessionRestore.ts:380
↓ 1 callersFunctionexitWithMessage
(root: Root, message: string, options?: { color?: TextProps['color']; exitCode?: number; beforeExit?: ()
interactiveHelpers.tsx:65
↓ 1 callersFunctionexpandBraces
* 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 callersFunctionexpandEnvVars
* Internal utility: Expands environment variables in an MCP server config
services/mcp/config.ts:556
↓ 1 callersFunctionexpandField
(field: string, range: FieldRange)
utils/cron.ts:31
↓ 1 callersFunctionexpandFilePath
(filePath: string)
utils/commitAttribution.ts:296
↓ 1 callersFunctionexpandIPv6Groups
* 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 callersFunctionexpandTabs
( text: string, interval = DEFAULT_TAB_INTERVAL, )
ink/tabstops.ts:9
↓ 1 callersFunctionexpectColorDiff
()
components/StructuredDiff/colorDiff.ts:25
↓ 1 callersFunctionexpectColorFile
()
components/StructuredDiff/colorDiff.ts:29
↓ 1 callersFunctionexportWithReactRenderer
(context: ToolUseContext)
commands/export/export.tsx:49
↓ 1 callersFunctionextendSelection
( s: SelectionState, screen: Screen, col: number, row: number, )
ink/selection.ts:389
↓ 1 callersFunctionextensionForMimeType
(mimeType: string | undefined)
utils/mcpOutputStorage.ts:66
↓ 1 callersFunctionexternalMetadataToAppState
( metadata: SessionExternalMetadata, )
state/onChangeAppState.ts:24
↓ 1 callersFunctionextractActivities
( line: string, sessionId: string, onDebug: (msg: string) => void, )
bridge/sessionRunner.ts:107
↓ 1 callersFunctionextractAgentIdsFromMessages
(messages: Message[])
utils/sessionStorage.ts:4244
↓ 1 callersFunctionextractAgentMcpServers
( agents: AgentDefinition[], )
services/mcp/utils.ts:466
↓ 1 callersFunctionextractApprovedPlan
(content: ToolResultBlockParam['content'])
utils/ultraplan/ccrSession.ts:333
↓ 1 callersFunctionextractAtMentionedFiles
(content: string)
utils/attachments.ts:2757
↓ 1 callersFunctionextractBaseCommand
* Extract the command name from a single pipeline segment. * Strips leading `&` / `.` call operators and `.exe` suffix, lowercases.
tools/PowerShellTool/commandSemantics.ts:100
↓ 1 callersFunctionextractBaseCommand
* Extract just the command name (first word) from a single command string.
tools/BashTool/commandSemantics.ts:104
↓ 1 callersFunctionextractBundledSkillFiles
* 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 callersFunctionextractCliName
* 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 callersFunctionextractCodeBlocks
(markdown: string)
commands/copy/copy.tsx:30
↓ 1 callersFunctionextractCommandArguments
(commandNode: Node)
utils/bash/parser.ts:189
↓ 1 callersFunctionextractCommandNameAndArgs
(value: string)
hooks/useTypeahead.tsx:326
↓ 1 callersFunctionextractCompoundStructure
( rootNode: unknown, command: string, )
utils/bash/treeSitterAnalysis.ts:296
↓ 1 callersFunctionextractConversationContext
* 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 callersFunctionextractCwdResetWarning
* 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 callersFunctionextractDangerousPatterns
(rootNode: unknown)
utils/bash/treeSitterAnalysis.ts:448
↓ 1 callersMethodextractDataPoints
(metric: MetricData)
utils/telemetry/bigqueryExporter.ts:198
↓ 1 callersFunctionextractDebugCategories
(message: string)
utils/debugFilter.ts:65
↓ 1 callersFunctionextractDirectories
(updates: PermissionUpdate[] | undefined)
components/permissions/PermissionDecisionDebugInfo.tsx:192
↓ 1 callersFunctionextractEnvVars
(commandNode: Node | null)
utils/bash/parser.ts:175
↓ 1 callersFunctionextractErrorTypeFromData
(data: unknown)
bridge/bridgeApi.ts:526
↓ 1 callersFunctionextractFacetsFromAPI
( log: LogOption, sessionId: string, )
commands/insights.ts:1001
↓ 1 callersFunctionextractFirstFrame
* 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 callersFunctionextractFirstMessageText
( messages: (UserMessage | AssistantMessage)[], )
utils/fingerprint.ts:16
↓ 1 callersFunctionextractFirstPrompt
(messages: Message[])
commands/export/export.tsx:19
↓ 1 callersFunctionextractFirstPromptFromChunk
* Scans a chunk of text for the first meaningful user prompt.
utils/sessionStorage.ts:4818
↓ 1 callersFunctionextractFirstPromptFromHead
(head: string)
utils/sessionStoragePortable.ts:135
↓ 1 callersFunctionextractFirstUserMessageText
* Extract text from first user message for fingerprint computation.
utils/sideQuery.ts:69
↓ 1 callersFunctionextractGlobBaseDirectory
(pattern: string)
utils/glob.ts:17
↓ 1 callersFunctionextractHost
* 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 callersFunctionextractHttpStatus
(err: unknown)
bridge/debugUtils.ts:88
↓ 1 callersFunctionextractHyperlinkFromStyles
( styles: AnsiCode[], )
ink/screen.ts:1099
↓ 1 callersFunctionextractImage
( data: Record<string, unknown>, )
utils/notebook.ts:41
↓ 1 callersFunctionextractImagesFromValue
* 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 callersFunctionextractInboundAttachments
(msg: unknown)
bridge/inboundAttachments.ts:42
↓ 1 callersFunctionextractIncludePathsFromTokens
( tokens: ReturnType<Lexer['lex']>, basePath: string, )
utils/claudemd.ts:451
↓ 1 callersFunctionextractLastToolInfo
(progressMessages: ProgressMessage<Progress>[], tools: Tools)
tools/AgentTool/UI.tsx:788
↓ 1 callersFunctionextractLspInfoFromManifest
* 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 callersFunctionextractMappedIPv4
* 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 callersFunctionextractMarkupText
* Extracts text content from MarkupContent or MarkedString
tools/LSPTool/formatters.ts:223
↓ 1 callersFunctionextractMcpResourceMentions
(content: string)
utils/attachments.ts:2792
↓ 1 callersFunctionextractMcpbContents
* 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 callersFunctionextractMode
(updates: PermissionUpdate[] | undefined)
components/permissions/PermissionDecisionDebugInfo.tsx:205
↓ 1 callersFunctionextractModelIdFromArn
(modelId: string)
utils/model/bedrock.ts:199
↓ 1 callersFunctionextractNestedErrorMessage
* 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 callersFunctionextractPipePositions
(rootNode: Node)
utils/bash/ParsedCommand.ts:113
↓ 1 callersFunctionextractPrefixBeforeHeredoc
* 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 callersFunctionextractProviderPathFromArg
(arg: string)
tools/PowerShellTool/powershellPermissions.ts:985
↓ 1 callersFunctionextractQuoteContext
( rootNode: unknown, command: string, )
utils/bash/treeSitterAnalysis.ts:224
↓ 1 callersFunctionextractRedirectionNodes
(rootNode: Node)
utils/bash/ParsedCommand.ts:131
↓ 1 callersFunctionextractReviewFromLog
* 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 callersFunctionextractReviewTagFromLog
* 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 callersFunctionextractSafeCatHeredoc
* 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 callersFunctionextractSandboxViolations
* Extracts sandbox violations from stderr if present * Returns both the cleaned stderr and the violations content
tools/BashTool/BashToolResultMessage.tsx:24
↓ 1 callersFunctionextractSectionName
Extract a human-readable name from a system prompt section's content
utils/analyzeContext.ts:261
↓ 1 callersFunctionextractSedExpressions
(command: string)
tools/BashTool/sedValidation.ts:388
↓ 1 callersFunctionextractServerMessage
(data: unknown)
utils/errorLogSink.ts:128
↓ 1 callersFunctionextractShotCountFromMessages
* 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 callersFunctionextractSideQuestionResponse
* 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 callersFunctionextractSkillName
( toolName: string, input: unknown, )
services/analytics/metadata.ts:215
↓ 1 callersFunctionextractSnippet
(text: string, query: string, contextChars: number)
components/LogSelector.tsx:91
↓ 1 callersFunctionextractTeammateOptions
(options: unknown)
main.tsx:4667
↓ 1 callersFunctionextractTeammateTranscriptsFromTasks
(tasks: { [taskId: string]: { type: string identity?: { agentId: string } messages?: Message[]
utils/sessionStorage.ts:4271
↓ 1 callersFunctionextractTeleportPlan
( content: ToolResultBlockParam['content'], )
utils/ultraplan/ccrSession.ts:321
↓ 1 callersFunctionextractTextFromValue
* Extract text from a queued command value. * For strings, returns the string. * For ContentBlockParam[], extracts text from text blocks.
utils/messageQueueManager.ts:382
↓ 1 callersFunctionextractTodoListFromLog
* Extract todo list from SDK messages (finds last TodoWrite tool use).
tasks/RemoteAgentTask/RemoteAgentTask.tsx:365
↓ 1 callersFunctionextractTodosFromTranscript
* 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 callersFunctionextractToolInputForTelemetry
( input: unknown, )
services/analytics/metadata.ts:291
↓ 1 callersFunctionextractToolStats
(log: LogOption)
commands/insights.ts:467
↓ 1 callersFunctionextractToolUseBlock
( content: BetaContentBlock[], toolName: string, )
utils/permissions/classifierShared.ts:15
↓ 1 callersFunctionextractToolUseId
(message: AssistantMessage)
services/mcp/client.ts:3247
↓ 1 callersFunctionextractUrlScheme
* 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
← previousnext →5,101–5,200 of 11,462, ranked by callers