MCPcopy Create free account

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

Functions13,048 in github.com/codeaashu/claude-code

↓ 1 callersFunctionextractSnippet
(text: string, query: string, contextChars: number)
src/components/LogSelector.tsx:91
↓ 1 callersFunctionextractSnippet
(text: string, query: string)
web/lib/workers/search.worker.ts:72
↓ 1 callersMethodextractStateCookie
(req: IncomingMessage)
src/server/web/auth/oauth-auth.ts:265
↓ 1 callersFunctionextractTeammateOptions
(options: unknown)
src/main.tsx:4667
↓ 1 callersFunctionextractTeammateTranscriptsFromTasks
(tasks: { [taskId: string]: { type: string identity?: { agentId: string } messages?: Message[]
src/utils/sessionStorage.ts:4271
↓ 1 callersFunctionextractTeleportPlan
( content: ToolResultBlockParam['content'], )
src/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.
src/utils/messageQueueManager.ts:382
↓ 1 callersFunctionextractTodoListFromLog
* Extract todo list from SDK messages (finds last TodoWrite tool use).
src/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
src/utils/sessionRestore.ts:77
↓ 1 callersMethodextractToken
(req: IncomingMessage)
src/server/web/auth/token-auth.ts:59
↓ 1 callersFunctionextractToolInputForTelemetry
( input: unknown, )
src/services/analytics/metadata.ts:291
↓ 1 callersFunctionextractToolStats
(log: LogOption)
src/commands/insights.ts:467
↓ 1 callersFunctionextractToolUseBlock
( content: BetaContentBlock[], toolName: string, )
src/utils/permissions/classifierShared.ts:15
↓ 1 callersFunctionextractToolUseId
(message: AssistantMessage)
src/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
src/tools/SkillTool/SkillTool.ts:949
↓ 1 callersFunctionextractUserMessageText
* Extract plain text from a replayed SDKUserMessage NDJSON line. Returns the * trimmed text if this looks like a real human-authored message, otherwi
src/bridge/sessionRunner.ts:207
↓ 1 callersFunctionextractUserMessages
(messages: Message[])
src/skills/bundled/skillify.ts:6
↓ 1 callersFunctionextractWritePathsFromSubcommand
* Extracts write paths from a subcommand using PATH_EXTRACTORS. * Only returns paths for commands that can create new files/directories * (write/cre
src/tools/BashTool/readOnlyValidation.ts:1795
↓ 1 callersFunctionextractWrittenPaths
(agentMessages: Message[])
src/services/extractMemories/extractMemories.ts:251
↓ 1 callersFunctionfailDreamTask
(taskId: string, setAppState: SetAppState)
src/tasks/DreamTask/DreamTask.ts:122
↓ 1 callersFunctionfetchAndStoreClaudeCodeFirstTokenDate
()
src/services/api/firstTokenDate.ts:12
↓ 1 callersFunctionfetchAndStoreUserRoles
( accessToken: string, )
src/services/oauth/client.ts:276
↓ 1 callersFunctionfetchBootstrapAPI
()
src/services/api/bootstrap.ts:42
↓ 1 callersFunctionfetchBootstrapData
()
src/services/api/bootstrap.ts:114
↓ 1 callersFunctionfetchChannels
( clients: MCPServerConnection[], query: string, )
src/utils/suggestions/slackChannelSuggestions.ts:29
↓ 1 callersFunctionfetchCodeSessionsFromSessionsAPI
()
src/utils/teleport/api.ts:204
↓ 1 callersFunctionfetchFastModeStatus
( auth: { accessToken: string } | { apiKey: string }, )
src/utils/fastMode.ts:367
↓ 1 callersFunctionfetchFromOrigin
* Fetches a specific branch from remote origin * @param branch The branch to fetch. If not specified, fetches all branches.
src/utils/teleport.tsx:187
↓ 1 callersFunctionfetchGitDiff
()
src/utils/gitDiff.ts:49
↓ 1 callersFunctionfetchGitDiffHunks
()
src/utils/gitDiff.ts:114
↓ 1 callersFunctionfetchInfo
()
src/components/RemoteEnvironmentDialog.tsx:48
↓ 1 callersFunctionfetchInstallCountsFromGitHub
* Fetch install counts from GitHub stats repository
src/utils/plugins/installCounts.ts:184
↓ 1 callersFunctionfetchJSON
Minimal JSON fetch over https/http.
src/server/web/auth/oauth-auth.ts:29
↓ 1 callersFunctionfetchLatestEvents
( ctx: HistoryAuthCtx, limit = HISTORY_PAGE_SIZE, )
src/assistant/sessionHistory.ts:73
↓ 1 callersFunctionfetchLogs
(limit?: number)
src/utils/sessionStorage.ts:2559
↓ 1 callersFunctionfetchOlderEvents
( ctx: HistoryAuthCtx, beforeId: string, limit = HISTORY_PAGE_SIZE, )
src/assistant/sessionHistory.ts:81
↓ 1 callersFunctionfetchOverageCreditGrant
* Fetch the current user's overage credit grant eligibility from the backend. * The backend resolves tier-specific amounts and role-based claim permi
src/services/api/overageCreditGrant.ts:29
↓ 1 callersFunctionfetchPolicyLimits
* Fetch policy limits (single attempt, no retries)
src/services/policyLimits/index.ts:300
↓ 1 callersFunctionfetchPrStatus
()
src/utils/ghPrStatus.ts:46
↓ 1 callersFunctionfetchProfileInfo
(accessToken: string)
src/services/oauth/client.ts:355
↓ 1 callersFunctionfetchReferralEligibility
( campaign: ReferralCampaign = 'claude_code_guest_pass', )
src/services/api/referral.ts:26
↓ 1 callersFunctionfetchReferralRedemptions
( campaign: string = 'claude_code_guest_pass', )
src/services/api/referral.ts:47
↓ 1 callersFunctionfetchRemoteManagedSettings
* Fetch the full remote settings (single attempt, no retries) * Optionally pass a cached checksum for ETag-based caching
src/services/remoteManagedSettings/index.ts:248
↓ 1 callersFunctionfetchResponse
()
src/commands/btw/btw.tsx:88
↓ 1 callersFunctionfetchSessionTitle
* One-shot fetch of a session's title via GET /v1/sessions/{id}. * * Uses `getBridgeSession` from createSession.ts (ccr-byoc headers + org UUID) *
src/bridge/bridgeMain.ts:1971
↓ 1 callersFunctionfetchTeamMemory
( state: SyncState, repoSlug: string, etag?: string | null, )
src/services/teamMemorySync/index.ts:387
↓ 1 callersFunctionfetchTeamMemoryHashes
* Fetch only per-key checksums + metadata (no entry bodies). * Used for cheap serverChecksums refresh during 412 conflict resolution — avoids * down
src/services/teamMemorySync/index.ts:315
↓ 1 callersFunctionfetchTeamMemoryOnce
( state: SyncState, repoSlug: string, etag?: string | null, )
src/services/teamMemorySync/index.ts:188
↓ 1 callersFunctionfetchUltrareviewQuota
()
src/services/api/ultrareviewQuota.ts:19
↓ 1 callersFunctionfetchUntrackedFiles
* Fetch untracked file names (no content reading). * Returns file paths only - they'll be displayed with a note to stage them. * * @param maxFiles
src/utils/gitDiff.ts:334
↓ 1 callersFunctionfetchUserSettingsOnce
()
src/services/settingsSync/index.ts:247
↓ 1 callersFunctionfetchWithRetry
* Fetch remote settings with retry logic and exponential backoff * Uses existing codebase retry utilities for consistency
src/services/remoteManagedSettings/index.ts:209
↓ 1 callersFunctionfetchWithRetry
* Fetch policy limits with retry logic and exponential backoff
src/services/policyLimits/index.ts:267
↓ 1 callersMethodfetchWithRetry
( url: string, init: RequestInit, attempt = 0 )
web/lib/api/client.ts:118
↓ 1 callersFunctionfileHistoryEnabledSdk
()
src/utils/fileHistory.ts:73
↓ 1 callersFunctionfileHistoryHasAnyChanges
( state: FileHistoryState, messageId: UUID, )
src/utils/fileHistory.ts:494
↓ 1 callersFunctionfileNameWords
(filePath: string)
src/services/voiceKeyterms.ts:48
↓ 1 callersFunctionfileSuffixForOauthConfig
()
src/constants/oauth.ts:18
↓ 1 callersFunctionfillBackground
(px: Uint8Array, bg: AnsiColor)
src/utils/ansiToPng.ts:162
↓ 1 callersFunctionfilterAllowedSdkBetas
( sdkBetas: string[] | undefined, )
src/utils/betas.ts:64
↓ 1 callersFunctionfilterAppsForDescription
( installed: readonly InstalledAppLike[], homeDir: string | undefined, )
src/utils/computerUse/appNames.ts:168
↓ 1 callersFunctionfilterCdCwdSubcommands
* Filter out `cd ${cwd}` prefix subcommands, keeping astCommands aligned. * Extracted to keep bashToolHasPermission under Bun's feature() DCE * comp
src/tools/BashTool/bashPermissions.ts:1367
↓ 1 callersFunctionfilterContent
( content: ContentBlock[] | string, options: ExportOptions )
web/lib/export/json.ts:3
↓ 1 callersFunctionfilterControlOperators
( commandsAndOperators: string[], )
src/utils/bash/commands.ts:251
↓ 1 callersFunctionfilterDuplicateMemoryAttachments
( attachments: Attachment[], readFileState: FileStateCache, )
src/utils/attachments.ts:2520
↓ 1 callersFunctionfilterForBriefTool
(messages: T[], briefToolNames: string[])
src/components/Messages.tsx:93
↓ 1 callersFunctionfilterManagedDisabledPlugins
(plugins: LoadedPlugin[])
src/commands/plugin/ManagePlugins.tsx:391
↓ 1 callersFunctionfilterMessage
(msg: Message, options: ExportOptions)
web/lib/export/json.ts:17
↓ 1 callersFunctionfilterOutHyperlinkStyles
(styles: AnsiCode[])
src/ink/screen.ts:1113
↓ 1 callersFunctionfilterPermissionRelayClients
( clients: readonly T[], isInAllowlist: (name: string) => boolean, )
src/services/mcp/channelPermissions.ts:177
↓ 1 callersFunctionfilterReservedShortcuts
* Filter out reserved shortcuts that cannot be rebound. * These would cause /doctor to warn, so we exclude them from the template.
src/keybindings/template.ts:18
↓ 1 callersFunctionfilterResumableSessions
(logs: LogOption[], currentSessionId: string)
src/commands/resume/resume.tsx:191
↓ 1 callersFunctionfilterSwarmFieldsFromSchema
* Filter swarm-related fields from a tool's input schema. * Called at runtime when isAgentSwarmsEnabled() returns false.
src/utils/api.ts:96
↓ 1 callersFunctionfilterToBundledAndMcp
(commands: Command[])
src/utils/attachments.ts:2651
↓ 1 callersFunctionfilterTrailingThinkingFromLastAssistant
* Filter trailing thinking blocks from the last message if it's an assistant message. * The API doesn't allow assistant messages to end with thinking
src/utils/messages.ts:4781
↓ 1 callersFunctionfinalizeOutput
(s: LoadState)
src/utils/sessionStoragePortable.ts:699
↓ 1 callersFunctionfindAdjacentPairs
(markers: Marker[])
src/native-ts/color-diff/index.ts:576
↓ 1 callersFunctionfindAvailableTask
* Find an available task from the team's task list. * A task is available if it's pending, has no owner, and is not blocked.
src/utils/swarm/inProcessRunner.ts:595
↓ 1 callersFunctionfindAvailableTask
* Find an available task that can be worked on: * - Status is 'pending' * - No owner assigned * - Not blocked by any unresolved tasks
src/hooks/useTaskListWatcher.ts:197
↓ 1 callersFunctionfindBracketObject
( text: string, offset: number, open: string, close: string, isInner: boolean, )
src/vim/textObjects.ts:149
↓ 1 callersFunctionfindBtwTriggerPositions
(text: string)
src/utils/sideQuestion.ts:22
↓ 1 callersFunctionfindBuddyTriggerPositions
(text: string)
src/buddy/useBuddyNotification.tsx:79
↓ 1 callersFunctionfindChromeClient
(clients: MCPServerConnection[])
src/hooks/usePromptsFromClaudeInChrome.tsx:68
↓ 1 callersFunctionfindCommandNode
(node: Node, parent: Node | null)
src/utils/bash/parser.ts:138
↓ 1 callersFunctionfindCommonPrefix
* Finds the common prefix between two strings
src/hooks/fileSuggestions.ts:575
↓ 1 callersFunctionfindCurrentIDE
(availableIDEs: DetectedIDEInfo[], dynamicMcpConfig?: Record<string, ScopedMcpServerConfig>)
src/commands/ide/ide.tsx:208
↓ 1 callersFunctionfindElicitationInQueue
Find a queued elicitation event by server name and elicitationId.
src/services/mcp/elicitationHandler.ts:54
↓ 1 callersFunctionfindFileSnapshotEntry
* Find a file entry in the most recent file-snapshot system message in the transcript. * Scans backwards to find the latest snapshot.
src/utils/plans.ts:332
↓ 1 callersFunctionfindFirstMatch
( profiles: string[], substring: string, )
src/utils/model/bedrock.ts:43
↓ 1 callersFunctionfindFirstPipeOperator
* Finds the index of the first pipe operator in parsed shell command
src/utils/bash/bashPipeCommand.ts:105
↓ 1 callersFunctionfindFirstSubcommand
( args: string[], spec: CommandSpec | null, )
src/utils/shell/specPrefix.ts:71
↓ 1 callersFunctionfindFirstUnescapedChar
* Find the index of the first unescaped occurrence of a character. * A character is escaped if preceded by an odd number of backslashes.
src/utils/permissions/permissionRuleParser.ts:158
↓ 1 callersFunctionfindHighestTaskId
* Finds the highest task ID ever assigned, considering both existing files * and the high water mark (for deleted/reset tasks).
src/utils/tasks.ts:271
↓ 1 callersFunctionfindLastCompactBoundaryIndex
(messages: T[])
src/utils/messages.ts:4618
↓ 1 callersFunctionfindLastStringToken
* Find the last string token and its index in parsed tokens
src/utils/bash/shellCompletion.ts:55
↓ 1 callersFunctionfindLastUnescapedChar
* Find the index of the last unescaped occurrence of a character. * A character is escaped if preceded by an odd number of backslashes.
src/utils/permissions/permissionRuleParser.ts:181
↓ 1 callersFunctionfindLastUuid
* Walk backward through entries to find the last one with a uuid. * Some entry types (SummaryMessage, TagMessage) don't have one.
src/services/api/sessionIngress.ts:491
↓ 1 callersFunctionfindLongestCommonPrefix
(suggestions: SuggestionItem[])
src/hooks/fileSuggestions.ts:587
↓ 1 callersFunctionfindMarkdownFilesNative
* Native implementation to find markdown files using Node.js fs APIs * * This implementation exists alongside ripgrep for the following reasons: *
src/utils/markdownConfigLoader.ts:451
↓ 1 callersFunctionfindMatchedAlias
* Checks if a query matches any of the command's aliases. * Returns the matched alias if found, otherwise undefined.
src/utils/suggestions/commandSuggestions.ts:250
← previousnext →5,901–6,000 of 13,048, ranked by callers