MCPcopy Create free account

hub / github.com/tanbiralam/claude-code / functions

Functions11,484 in github.com/tanbiralam/claude-code

↓ 1 callersFunctioncomputeDiffStatsBetweenMessages
* Computes the diff stats for all the file edits in-between two messages.
src/components/MessageSelector.tsx:722
↓ 1 callersFunctioncomputeDiffStatsForFile
* Computes the number of lines changed in the diff.
src/utils/fileHistory.ts:677
↓ 1 callersFunctioncomputeEditsFromContents
( filePath: string, oldContent: string, newContent: string, editMode: 'single' | 'multiple', )
src/hooks/useDiffInIDE.ts:170
↓ 1 callersFunctioncomputeEnvInfo
( modelId: string, additionalWorkingDirectories?: string[], )
src/constants/prompts.ts:606
↓ 1 callersFunctioncomputeFingerprintFromMessages
( messages: (UserMessage | AssistantMessage)[], )
src/utils/fingerprint.ts:71
↓ 1 callersFunctioncomputeFlexBasis
( child: Node, mainAxis: FlexDirection, availableMain: number, availableCross: number, crossMode: Me
src/native-ts/yoga-layout/index.ts:2059
↓ 1 callersFunctioncomputeGlimmerIndex
( tick: number, messageWidth: number, )
src/bridge/bridgeStatusUtil.ts:61
↓ 1 callersFunctioncomputeGutterWidth
(patch: StructuredPatchHunk)
src/components/StructuredDiff.tsx:46
↓ 1 callersFunctioncomputeLevel
(chunk: Buffer)
src/hooks/useVoice.ts:185
↓ 1 callersFunctioncomputeNextCronRun
( fields: CronFields, from: Date, )
src/utils/cron.ts:119
↓ 1 callersFunctioncomputePerToolHashes
( strippedTools: ReadonlyArray<unknown>, names: string[], )
src/services/api/promptCacheBreakDetection.ts:187
↓ 1 callersFunctioncomputeRestoredAttributionState
( result: ResumeResult, )
src/utils/sessionRestore.ts:157
↓ 1 callersFunctioncomputeSearchText
(msg: RenderableMessage)
src/utils/transcriptSearch.ts:32
↓ 1 callersFunctioncomputeShimmerSegments
( text: string, glimmerIndex: number, )
src/bridge/bridgeStatusUtil.ts:79
↓ 1 callersFunctioncomputeSliceStart
(collapsed: ReadonlyArray<{ uuid: string; }>, anchorRef: { current: SliceAnchor; }, cap = MAX_MESSAGES_WIT
src/components/Messages.tsx:315
↓ 1 callersFunctioncomputeStickyPromptText
(msg: RenderableMessage)
src/components/VirtualMessageList.tsx:145
↓ 1 callersFunctioncomputeTimeProgress
* Calculate what fraction of a time window has elapsed. * Used for time-relative early warning fallback. * @param resetsAt - Unix epoch timestamp in
src/services/claudeAiLimits.ts:98
↓ 1 callersFunctioncomputeTools
()
src/screens/REPL.tsx:2404
↓ 1 callersFunctioncomputeTopLevelEntries
* Extract unique top-level path segments, sorted by (length asc, then alpha asc). * Handles both Unix (/) and Windows (\) path separators. * Mirrors
src/native-ts/file-index/index.ts:336
↓ 1 callersFunctioncomputeTrustDialogAccepted
()
src/utils/config.ts:705
↓ 1 callersFunctioncomputeUnseenDivider
(messages: readonly Message[], dividerIndex: number | null)
src/components/FullscreenLayout.tsx:239
↓ 1 callersFunctionconfigureApiKeyHeaders
( headers: Record<string, string>, isNonInteractiveSession: boolean, )
src/services/api/client.ts:318
↓ 1 callersFunctionconfigureEffortParams
* Configure effort parameters for API request. *
src/services/api/claude.ts:440
↓ 1 callersFunctionconfigureGlobalMTLS
()
src/utils/mtls.ts:166
↓ 1 callersFunctionconfigureTaskBudgetParams
( taskBudget: Options['taskBudget'], outputConfig: BetaOutputConfig & { task_budget?: TaskBudgetParam },
src/services/api/claude.ts:479
↓ 1 callersFunctionconfirmOverage
()
src/commands/review/reviewRemote.ts:38
↓ 1 callersFunctionconfirmRemove
()
src/commands/plugin/ManageMarketplaces.tsx:344
↓ 1 callersMethodconnect
* Connect to the remote session via WebSocket
src/remote/RemoteSessionManager.ts:108
↓ 1 callersMethodconnect
()
src/cli/transports/WebSocketTransport.ts:135
↓ 1 callersFunctionconsumeAbsoluteRemovedFlag
()
src/ink/node-cache.ts:50
↓ 1 callersFunctionconsumeEarlyInput
()
src/utils/earlyInput.ts:164
↓ 1 callersFunctionconsumeFollowScroll
()
src/ink/render-node-to-output.ts:100
↓ 1 callersFunctionconsumeInternalWrite
(path: string, windowMs: number)
src/utils/settings/internalWrites.ts:26
↓ 1 callersFunctionconsumeNextEagerLoadReason
()
src/utils/claudemd.ts:1102
↓ 1 callersFunctionconsumePendingCacheEdits
()
src/services/compact/microCompact.ts:88
↓ 1 callersFunctionconsumePostCompaction
()
src/bootstrap/state.ts:777
↓ 1 callersFunctioncontainsControlStructure
* Checks if a command contains bash control structures that shell-quote cannot parse. * These include for/while/until/if/case/select loops and condit
src/utils/bash/bashPipeCommand.ts:247
↓ 1 callersFunctioncontainsDangerousOperations
* Check if a sed expression contains dangerous operations (denylist) * @param expression Single sed expression (without quotes) * @returns true if d
src/tools/BashTool/sedValidation.ts:473
↓ 1 callersFunctioncontainsExcludedCommand
(command: string)
src/tools/BashTool/shouldUseSandbox.ts:21
↓ 1 callersFunctioncontainsMultilineString
* Detects if a command contains multiline strings in quotes
src/utils/bash/shellQuoting.ts:27
↓ 1 callersFunctioncontainsUnquotedExpansion
* Checks if a command contains glob characters (?, *, [, ]) or expandable `$` * variables OUTSIDE the quote contexts where bash would treat them as l
src/tools/BashTool/readOnlyValidation.ts:1600
↓ 1 callersFunctioncontentBlocksToString
(blocks: ContentBlockParam[])
src/commands/review/ultrareviewCommand.tsx:6
↓ 1 callersFunctioncontentContainsImages
* Check if MCP content contains any image blocks. * Used to decide whether to persist to file (images should use truncation instead * to preserve im
src/services/mcp/client.ts:2713
↓ 1 callersFunctionconvertAssistantMessage
* Convert an SDKAssistantMessage to an AssistantMessage
src/remote/sdkMessageAdapter.ts:31
↓ 1 callersMethodconvertAttributes
( attributes: Attributes | undefined, )
src/utils/telemetry/bigqueryExporter.ts:226
↓ 1 callersFunctionconvertCompactBoundaryMessage
* Convert an SDKCompactBoundaryMessage to a SystemMessage
src/remote/sdkMessageAdapter.ts:128
↓ 1 callersFunctionconvertFileNameToDate
(filename: string)
src/utils/cleanup.ts:48
↓ 1 callersFunctionconvertInitMessage
* Convert an SDKSystemMessage (init) to a SystemMessage
src/remote/sdkMessageAdapter.ts:74
↓ 1 callersFunctionconvertPluginHooksToMatchers
* Convert plugin hooks configuration to native matchers with plugin context
src/utils/plugins/loadPluginHooks.ts:28
↓ 1 callersFunctionconvertResultMessage
* Convert an SDKResultMessage to a SystemMessage
src/remote/sdkMessageAdapter.ts:55
↓ 1 callersFunctionconvertSSEUrlToPostUrl
* Convert an SSE URL to the HTTP POST endpoint URL. * The SSE stream URL and POST URL share the same base; the POST endpoint * is at `/events` (with
src/cli/transports/SSETransport.ts:704
↓ 1 callersFunctionconvertStatusMessage
* Convert an SDKStatusMessage to a SystemMessage
src/remote/sdkMessageAdapter.ts:88
↓ 1 callersFunctionconvertStreamEvent
* Convert an SDKPartialAssistantMessage (streaming) to a StreamEvent
src/remote/sdkMessageAdapter.ts:45
↓ 1 callersFunctionconvertToolProgressMessage
* Convert an SDKToolProgressMessage to a SystemMessage. * We use a system message instead of ProgressMessage since the Progress type * is a complex
src/remote/sdkMessageAdapter.ts:111
↓ 1 callersFunctionconvertWsUrlToPostUrl
* Convert a WebSocket URL to the HTTP POST endpoint URL. * From: wss://api.example.com/v2/session_ingress/ws/<session_id> * To: https://api.example.
src/cli/transports/HybridTransport.ts:269
↓ 1 callersFunctioncopyAndToast
()
src/components/ScrollKeybindingHandler.tsx:399
↓ 1 callersFunctioncopyAnsiToClipboard
( ansiText: string, options?: AnsiToPngOptions, )
src/utils/screenshotClipboard.ts:16
↓ 1 callersFunctioncopyNative
* Shell out to a native clipboard utility as a safety net for OSC 52. * Only called when not in an SSH session (over SSH, these would write to * the
src/ink/termio/osc.ts:171
↓ 1 callersFunctioncopyOverlayToMain
( overlayPath: string, writtenPaths: Set<string>, cwd: string, )
src/services/PromptSuggestion/speculation.ts:99
↓ 1 callersFunctioncopyPlanForFork
( log: LogOption, targetSessionId: SessionId, )
src/utils/plans.ts:239
↓ 1 callersFunctioncopyPngToClipboard
( pngPath: string, )
src/utils/screenshotClipboard.ts:46
↓ 1 callersFunctioncopyTextOf
(msg: NavigableMessage)
src/components/messageActions.tsx:409
↓ 1 callersFunctioncopyWorktreeIncludeFiles
( repoRoot: string, worktreePath: string, )
src/utils/worktree.ts:391
↓ 1 callersFunctioncountAutoModeAttachmentsSinceLastExit
* Count auto_mode attachments since the last auto_mode_exit (or from start if no exit). * This ensures the full/sparse cycle resets when re-entering
src/utils/attachments.ts:1319
↓ 1 callersFunctioncountBuiltInToolTokens
( tools: Tools, getToolPermissionContext: () => Promise<ToolPermissionContext>, agentInfo: AgentDefiniti
src/utils/analyzeContext.ts:363
↓ 1 callersFunctioncountCustomAgentTokens
(agentDefinitions: { activeAgents: AgentDefinition[] })
src/utils/analyzeContext.ts:732
↓ 1 callersFunctioncountHunkLines
(hunks: StructuredPatchHunk[])
src/hooks/useTurnDiffs.ts:55
↓ 1 callersFunctioncountMemoryFileAccessFromEntries
* Count memory file accesses in transcript entries. * Uses the same detection conditions as the PostToolUse session file access hooks.
src/utils/attribution.ts:225
↓ 1 callersFunctioncountMemoryFileTokens
()
src/utils/analyzeContext.ts:320
↓ 1 callersFunctioncountModelVisibleMessagesSince
( messages: Message[], sinceUuid: string | undefined, )
src/services/extractMemories/extractMemories.ts:82
↓ 1 callersFunctioncountPlanModeAttachmentsSinceLastExit
* Count plan_mode attachments since the last plan_mode_exit (or from start if no exit). * This ensures the full/sparse cycle resets when re-entering
src/utils/attachments.ts:1169
↓ 1 callersFunctioncountSkillTokens
( tools: Tools, getToolPermissionContext: () => Promise<ToolPermissionContext>, agentInfo: AgentDefiniti
src/utils/analyzeContext.ts:554
↓ 1 callersFunctioncountSlashCommandTokens
( tools: Tools, getToolPermissionContext: () => Promise<ToolPermissionContext>, agentInfo: AgentDefiniti
src/utils/analyzeContext.ts:521
↓ 1 callersFunctioncountSymbols
* Counts the total number of symbols including nested children
src/tools/LSPTool/LSPTool.ts:518
↓ 1 callersFunctioncountSystemTokens
( effectiveSystemPrompt: readonly string[], )
src/utils/analyzeContext.ts:272
↓ 1 callersFunctioncountTokensViaHaikuFallback
( messages: Anthropic.Beta.Messages.BetaMessageParam[], tools: Anthropic.Beta.Messages.BetaToolUnion[], )
src/services/tokenEstimation.ts:251
↓ 1 callersFunctioncountTokensWithAPI
( content: string, )
src/services/tokenEstimation.ts:124
↓ 1 callersFunctioncountTokensWithBedrock
({ model, messages, tools, betas, containsThinking, }: { model: string messages: Anthropic.Beta.
src/services/tokenEstimation.ts:437
↓ 1 callersFunctioncountToolCallsSince
( messages: Message[], sinceUuid: string | undefined, )
src/services/SessionMemory/sessionMemory.ts:108
↓ 1 callersFunctioncountToolUses
(messages: MessageType[])
src/tools/AgentTool/agentToolUtils.ts:262
↓ 1 callersFunctioncountUniqueFilesFromCallItems
* Counts unique files from CallHierarchyItem array * Filters out items with undefined URIs
src/tools/LSPTool/LSPTool.ts:835
↓ 1 callersFunctioncountUniqueFilesFromIncomingCalls
* Counts unique files from CallHierarchyIncomingCall array * Filters out calls with undefined URIs
src/tools/LSPTool/LSPTool.ts:844
↓ 1 callersFunctioncountUniqueFilesFromOutgoingCalls
* Counts unique files from CallHierarchyOutgoingCall array * Filters out calls with undefined URIs
src/tools/LSPTool/LSPTool.ts:855
↓ 1 callersFunctioncountUnseenAssistantTurns
(messages: readonly Message[], dividerIndex: number)
src/components/FullscreenLayout.tsx:200
↓ 1 callersFunctioncountUserPromptsFromEntries
* Count non-sidechain user messages in transcript entries. * Used to calculate the number of "steers" (user prompts - 1). * * Counts user messages
src/utils/attribution.ts:171
↓ 1 callersFunctioncountUserPromptsInMessages
( messages: ReadonlyArray<{ type: string; message?: { content?: unknown } }>, )
src/utils/attribution.ts:119
↓ 1 callersFunctioncountVisualLines
* Count how many visual terminal rows a string occupies, accounting for * line wrapping. Each `\n` is one row, and content wider than the terminal
src/bridge/bridgeUI.ts:95
↓ 1 callersFunctioncrc32
(data: Uint8Array)
src/utils/ansiToPng.ts:284
↓ 1 callersFunctioncreateAdminRequest
( params: AdminRequestCreateParams, )
src/services/api/adminRequests.ts:49
↓ 1 callersFunctioncreateAgentsKilledMessage
()
src/utils/messages.ts:4473
↓ 1 callersFunctioncreateAllTimeStatsPromise
* Creates a stats loading promise that never rejects. * Always loads all-time stats for the heatmap.
src/components/Stats.tsx:63
↓ 1 callersFunctioncreateAndSaveSnapshot
( binShell: string, )
src/utils/bash/ShellSnapshot.ts:413
↓ 1 callersFunctioncreateAndStoreApiKey
( accessToken: string, )
src/services/oauth/client.ts:311
↓ 1 callersFunctioncreateApiMetricsMessage
(metrics: { ttftMs: number otps: number isP50?: boolean hookDurationMs?: number turnDurationMs?: num
src/utils/messages.ts:4483
↓ 1 callersFunctioncreateApiQueryHook
( config: ApiQueryHookConfig<TResult>, )
src/utils/hooks/apiQueryHookHelper.ts:56
↓ 1 callersFunctioncreateAwaySummaryMessage
( content: string, )
src/utils/messages.ts:4447
↓ 1 callersFunctioncreateAxiosInstance
( extra: HttpsProxyAgentOptions<string> = {}, )
src/utils/proxy.ts:168
↓ 1 callersFunctioncreateBaseClaudeCodeInternalEvent
()
src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts:552
↓ 1 callersFunctioncreateBaseEnvironmentMetadata
()
src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts:181
↓ 1 callersFunctioncreateBaseGitHubActionsMetadata
()
src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts:132
← previousnext →4,701–4,800 of 11,484, ranked by callers