MCPcopy Create free account

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

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

↓ 1 callersFunctionbuildClaudeMdMessage
* Build the CLAUDE.md prefix message for the classifier. Returns null when * CLAUDE.md is disabled or empty. The content is wrapped in a delimiter th
utils/permissions/yoloClassifier.ts:460
↓ 1 callersFunctionbuildCommonPluginDirectoryPaths
(ideName: string)
utils/jetbrains.ts:29
↓ 1 callersFunctionbuildConsolidationPrompt
( memoryRoot: string, transcriptDir: string, extra: string, )
services/autoDream/consolidationPrompt.ts:10
↓ 1 callersFunctionbuildCronCreateDescription
(durableEnabled: boolean)
tools/ScheduleCronTool/prompt.ts:68
↓ 1 callersFunctionbuildCronCreatePrompt
(durableEnabled: boolean)
tools/ScheduleCronTool/prompt.ts:74
↓ 1 callersFunctionbuildCronDeletePrompt
(durableEnabled: boolean)
tools/ScheduleCronTool/prompt.ts:124
↓ 1 callersFunctionbuildCronListPrompt
(durableEnabled: boolean)
tools/ScheduleCronTool/prompt.ts:131
↓ 1 callersFunctionbuildDeepLinkBanner
(info: DeepLinkBannerInfo)
utils/deepLink/banner.ts:54
↓ 1 callersFunctionbuildDefaultExternalSystemPrompt
()
utils/permissions/yoloClassifier.ts:125
↓ 1 callersFunctionbuildDescription
* Builds a human-readable description from tagged template arguments. * Only called when an operation was actually slow — never on the fast path. *
utils/slowOperations.ts:75
↓ 1 callersFunctionbuildDesktopDeepLink
* Builds a deep link URL for Claude Desktop to resume a CLI session. * Format: claude://resume?session={sessionId}&cwd={cwd} * In dev mode: claude-d
utils/desktopDeepLink.ts:35
↓ 1 callersFunctionbuildDiagnostics
()
components/Settings/Status.tsx:54
↓ 1 callersFunctionbuildDiffableContent
( system: TextBlockParam[], tools: BetaToolUnion[], model: string, )
services/api/promptCacheBreakDetection.ts:206
↓ 1 callersFunctionbuildDownloadPath
( basePath: string, sessionId: string, relativePath: string, )
services/api/filesApi.ts:187
↓ 1 callersFunctionbuildEntriesFromLocalFiles
( projectId: string | null, )
services/settingsSync/index.ts:418
↓ 1 callersFunctionbuildErrorRows
(failedMarketplaces: Array<{ name: string; error?: string; }>, extraMarketplaceErrors: PluginError[], plug
commands/plugin/PluginSettings.tsx:211
↓ 1 callersFunctionbuildExtractCombinedPrompt
( newMessageCount: number, existingMemories: string, skipIndex = false, )
services/extractMemories/prompts.ts:101
↓ 1 callersFunctionbuildFetch
( fetchOverride: ClientOptions['fetch'], source: string | undefined, )
services/api/client.ts:358
↓ 1 callersFunctionbuildFinalValues
(fields: string[], collected: Record<string, string>, configSchema: PluginOptionSchema, initialValues: PluginO
commands/plugin/PluginOptionsDialog.tsx:24
↓ 1 callersFunctionbuildForkedMessages
( directive: string, assistantMessage: AssistantMessage, )
tools/AgentTool/forkSubagent.ts:107
↓ 1 callersFunctionbuildHookSchemas
()
schemas/hooks.ts:31
↓ 1 callersFunctionbuildIDEProperties
(mcpClients: MCPServerConnection[], ideInstallationStatus: IDEExtensionInstallationStatus | null = null, theme
utils/status.tsx:38
↓ 1 callersFunctionbuildImageContentBlocks
( pastedContents: Record<number, PastedContent> | undefined, )
utils/attachments.ts:1103
↓ 1 callersMethodbuildIndex
(paths: string[])
native-ts/file-index/index.ts:135
↓ 1 callersFunctionbuildInheritedCliFlags
(options?: { planModeRequired?: boolean permissionMode?: PermissionMode })
utils/swarm/spawnUtils.ts:38
↓ 1 callersFunctionbuildInstallationDiagnostics
()
utils/status.tsx:175
↓ 1 callersFunctionbuildInstallationHealthDiagnostics
()
utils/status.tsx:179
↓ 1 callersFunctionbuildKeystroke
* Build a ParsedKeystroke from Ink's input/key.
keybindings/resolver.ts:82
↓ 1 callersFunctionbuildLaunchMessage
(disconnectedBridge?: boolean)
commands/ultraplan.tsx:185
↓ 1 callersFunctionbuildMagicDocsUpdatePrompt
( docContents: string, docPath: string, docTitle: string, instructions?: string, )
services/MagicDocs/prompts.ts:98
↓ 1 callersFunctionbuildMcpProperties
(clients: MCPServerConnection[] = [], theme: ThemeName)
utils/status.tsx:89
↓ 1 callersFunctionbuildMemoryDiagnostics
()
utils/status.tsx:116
↓ 1 callersFunctionbuildMemoryPrompt
(params: { displayName: string memoryDir: string extraGuidelines?: string[] })
memdir/memdir.ts:272
↓ 1 callersFunctionbuildMessageLookups
( normalizedMessages: NormalizedMessage[], messages: Message[], )
utils/messages.ts:1170
↓ 1 callersFunctionbuildMissedTaskNotification
(missed: CronTask[])
utils/cronScheduler.ts:542
↓ 1 callersFunctionbuildNestedObject
( path: string[], value: unknown, )
tools/ConfigTool/ConfigTool.ts:455
↓ 1 callersFunctionbuildNestedTree
* Builds a nested tree structure from dot-notation paths * Uses lodash setWith to avoid automatic array creation
components/ValidationErrorsList.tsx:12
↓ 1 callersFunctionbuildParseScript
* Build the full PowerShell script that parses a command. * The user command is Base64-encoded (UTF-8) and embedded in a variable * to prevent injec
utils/powershell/parser.ts:687
↓ 1 callersFunctionbuildPlanApprovalOptions
({ showClearContext, showUltraplan, usedPercent, isAutoModeAvailable, isBypassPermissionsModeAvailab
components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx:674
↓ 1 callersFunctionbuildPluginAction
(pluginName: string)
commands/plugin/PluginSettings.tsx:184
↓ 1 callersFunctionbuildPositionSet
* Builds a Set of all character positions covered by the given spans.
utils/bash/treeSitterAnalysis.ts:142
↓ 1 callersFunctionbuildPrimarySection
()
components/Settings/Status.tsx:19
↓ 1 callersFunctionbuildProcessMetrics
* Builds process metrics object for all users.
services/analytics/metadata.ts:648
↓ 1 callersFunctionbuildPrompt
(instruction: string)
skills/bundled/batch.ts:19
↓ 1 callersFunctionbuildPrompt
( lang: DetectedLanguage | null, args: string, content: SkillContent, )
skills/bundled/claudeApi.ts:132
↓ 1 callersFunctionbuildPrompt
(args: string)
skills/bundled/loop.ts:25
↓ 1 callersFunctionbuildPrompt
(opts: { userTimezone: string connectorsInfo: string gitRepoUrl: string | null environmentsInfo: strin
skills/bundled/scheduleRemoteAgents.ts:135
↓ 1 callersFunctionbuildQueryConfig
()
query/config.ts:29
↓ 1 callersFunctionbuildReplacement
( candidate: ToolResultCandidate, )
utils/toolResultStorage.ts:728
↓ 1 callersFunctionbuildRequiresActionDetails
( tool: Tool, input: Record<string, unknown>, toolUseID: string, requestId: string, )
cli/structuredIO.ts:93
↓ 1 callersFunctionbuildSandboxProperties
()
utils/status.tsx:28
↓ 1 callersFunctionbuildSchemaNotSentHint
( tool: Tool, messages: Message[], tools: readonly { name: string }[], )
services/tools/toolExecution.ts:578
↓ 1 callersFunctionbuildSearchableText
* Builds searchable text for a log including messages, titles, summaries, and metadata. * Crops long transcripts to first/last N messages for perform
components/LogSelector.tsx:1537
↓ 1 callersFunctionbuildSecondarySection
({ mainLoopModel, mcp, theme, context }: { mainLoopModel: AppState['mainLoopModel']; mcp: AppState
components/Settings/Status.tsx:37
↓ 1 callersFunctionbuildSegmentWithoutRedirections
* Builds a command segment, stripping output redirections to avoid * treating filenames as commands in permission checking. * Uses ParsedCommand to
tools/BashTool/bashCommandHelpers.ts:163
↓ 1 callersFunctionbuildSessionContext
()
utils/computerUse/wrapper.tsx:59
↓ 1 callersFunctionbuildSessionReadyMessage
(url: string)
commands/ultraplan.tsx:189
↓ 1 callersFunctionbuildSettingSourcesProperties
()
utils/status.tsx:126
↓ 1 callersFunctionbuildSideQuestionFallbackParams
({ tools, commands, mcpClients, messages, readFileState, getAppState, setAppState, customSyste
utils/queryContext.ts:88
↓ 1 callersFunctionbuildStatusLineCommandInput
(permissionMode: PermissionMode, exceeds200kTokens: boolean, settings: ReadonlySettings, messages: Message[],
components/StatusLine.tsx:36
↓ 1 callersFunctionbuildSummaryPrompt
(previousSummary: string | null)
services/AgentSummary/agentSummary.ts:28
↓ 1 callersFunctionbuildSyntheticOutputTool
( jsonSchema: Record<string, unknown>, )
tools/SyntheticOutputTool/SyntheticOutputTool.ts:127
↓ 1 callersFunctionbuildSystemPromptBlocks
( systemPrompt: SystemPrompt, enablePromptCaching: boolean, options?: { skipGlobalCacheForSystemProm
services/api/claude.ts:3213
↓ 1 callersFunctionbuildToolNameMap
* Walk messages and build tool_use_id → tool_name from assistant tool_use * blocks. tool_use always precedes its tool_result (model calls, then resul
utils/toolResultStorage.ts:536
↓ 1 callersFunctionbuildTranscriptForClassifier
( messages: Message[], tools: Tools, )
utils/permissions/yoloClassifier.ts:434
↓ 1 callersFunctionbuildUltraplanPrompt
(blurb: string, seedPlan?: string)
commands/ultraplan.tsx:63
↓ 1 callersFunctionbuildWorktreeNotice
( parentCwd: string, worktreeCwd: string, )
tools/AgentTool/forkSubagent.ts:205
↓ 1 callersFunctionbuildYoloRejectionMessage
(reason: string)
utils/messages.ts:267
↓ 1 callersFunctionbuildYoloSystemPrompt
( context: ToolPermissionContext, )
utils/permissions/yoloClassifier.ts:484
↓ 1 callersFunctionbyIdAsc
(a: Task, b: Task)
components/TaskListV2.tsx:22
↓ 1 callersFunctionbyteLengthUtf8
(s: string)
utils/bash/bashParser.ts:633
↓ 1 callersFunctionbytesPerTokenForFileType
(fileExtension: string)
services/tokenEstimation.ts:215
↓ 1 callersFunctioncachePluginSettings
(plugins: LoadedPlugin[])
utils/plugins/pluginLoader.ts:3281
↓ 1 callersFunctioncacheSessionTitle
(customTitle: string)
utils/sessionStorage.ts:2870
↓ 1 callersFunctioncacheToStats
* Convert a PersistedStatsCache to ClaudeCodeStats by computing derived fields.
utils/stats.ts:440
↓ 1 callersFunctioncachedLexer
(content: string)
components/Markdown.tsx:37
↓ 1 callersFunctioncachedMicrocompactPath
* Cached microcompact path - uses cache editing API to remove tool results * without invalidating the cached prefix. * * Key differences from regul
services/compact/microCompact.ts:305
↓ 1 callersFunctioncalculateAgentStats
(progressMessages: ProgressMessage<Progress>[])
tools/AgentTool/UI.tsx:627
↓ 1 callersFunctioncalculateApiKeyHelperTTL
()
utils/auth.ts:435
↓ 1 callersFunctioncalculateCommitAttribution
( states: AttributionState[], stagedFiles: string[], )
utils/commitAttribution.ts:548
↓ 1 callersFunctioncalculateDeferredToolDescriptionChars
* Calculate total deferred tool description size in characters. * Includes name, description text, and input schema to match what's actually sent to
utils/toolSearch.ts:340
↓ 1 callersFunctioncalculateDepth
( command: string, args: string[], spec: CommandSpec | null, )
utils/shell/specPrefix.ts:139
↓ 1 callersFunctioncalculateFeedWidth
(config: FeedConfig)
components/LogoV2/Feed.tsx:24
↓ 1 callersFunctioncalculateHorizontalScrollWindow
( itemWidths: number[], availableWidth: number, arrowWidth: number, selectedIdx: number, firstItemHa
utils/horizontalScroll.ts:21
↓ 1 callersFunctioncalculateLayoutDimensions
( columns: number, layoutMode: LayoutMode, optimalLeftWidth: number, )
utils/logoV2Utils.ts:43
↓ 1 callersFunctioncalculateMaxRowLines
()
components/MarkdownTable.tsx:159
↓ 1 callersFunctioncalculateMessagesToKeepIndex
( messages: Message[], lastSummarizedIndex: number, )
services/compact/sessionMemoryCompact.ts:324
↓ 1 callersFunctioncalculateOptimalLeftWidth
( welcomeMessage: string, truncatedCwd: string, modelLine: string, )
utils/logoV2Utils.ts:80
↓ 1 callersFunctioncalculatePercentiles
* Pre-calculates percentiles from activity data for use in intensity calculations
utils/heatmap.ts:19
↓ 1 callersFunctioncalculateWordDiffs
(oldText: string, newText: string)
components/StructuredDiff/Fallback.tsx:227
↓ 1 callersFunctioncallMCPTool
({ client: { client, name, config }, tool, args, meta, signal, onProgress, }: { client: Connecte
services/mcp/client.ts:3029
↓ 1 callersFunctioncallMCPToolWithUrlElicitationRetry
({ client: connectedClient, clientConnection, tool, args, meta, signal, setAppState, onProgres
services/mcp/client.ts:2813
↓ 1 callersFunctioncallerFrame
(stack: string | undefined)
utils/slowOperations.ts:59
↓ 1 callersFunctioncanBatchWith
( head: QueuedCommand, next: QueuedCommand | undefined, )
cli/print.ts:443
↓ 1 callersMethodcanExecuteTool
* Check if a tool can execute based on current concurrency state
services/tools/StreamingToolExecutor.ts:129
↓ 1 callersFunctioncanUseTool
( tool, input, toolUseContext, assistantMessage, toolUseId, forceDecision, )
cli/print.ts:4152
↓ 1 callersFunctioncancel
(sessionId: string)
bridge/jwtUtils.ts:232
↓ 1 callersMethodcancelSession
* Send an interrupt signal to cancel the current request on the remote session
remote/RemoteSessionManager.ts:294
↓ 1 callersFunctioncaptureCarry
(s: LoadState, buf: Buffer, trailStart: number)
utils/sessionStoragePortable.ts:689
↓ 1 callersFunctioncaptureMemoryDiagnostics
( trigger: 'manual' | 'auto-1.5GB', dumpNumber = 0, )
utils/heapDumpService.ts:88
← previousnext →4,401–4,500 of 11,462, ranked by callers