MCPcopy Create free account

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

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

↓ 2 callersFunctionstripToolReferenceBlocksFromUserMessage
( message: UserMessage, )
src/utils/messages.ts:1677
↓ 2 callersFunctionstripTrailingWhitespace
(str: string)
src/tools/FileEditTool/utils.ts:44
↓ 2 callersFunctionstripWww
(hostname: string)
src/tools/WebFetchTool/utils.ts:236
↓ 2 callersFunctionsubmitTranscriptShare
( messages: Message[], trigger: TranscriptShareTrigger, appearanceId: string, )
src/components/FeedbackSurvey/submitTranscriptShare.ts:29
↓ 2 callersFunctionsubstituteUserConfigInContent
( content: string, options: PluginOptionValues, schema: PluginOptionSchema, )
src/utils/plugins/pluginOptionsStorage.ts:385
↓ 2 callersFunctionsuggestionForPrefix
(prefix: string)
src/tools/BashTool/bashPermissions.ts:339
↓ 2 callersFunctionsupportsPersistence
( destination: PermissionUpdateDestination, )
src/utils/permissions/PermissionUpdate.ts:208
↓ 2 callersMethodsuspendStdin
()
src/ink/ink.tsx:1366
↓ 2 callersFunctionsyncRemoteEvalToDisk
* Write the complete remoteEvalFeatureValues map to disk. Called exactly * once per successful processRemoteEvalPayload — never from a failure path,
src/services/analytics/growthbook.ts:407
↓ 2 callersMethodtabSet
()
src/server/web/public/terminal.js:3434
↓ 2 callersFunctiontagMessagesWithToolUseID
( messages: (UserMessage | AttachmentMessage | SystemMessage)[], toolUseID: string | undefined, )
src/tools/utils.ts:12
↓ 2 callersFunctiontallyInto
(stdout: string)
src/utils/exampleCommands.ts:105
↓ 2 callersFunctiontargetFor
(i: number)
src/components/VirtualMessageList.tsx:472
↓ 2 callersFunctionteammateModelDisplayString
(value: string | null | undefined)
src/components/Settings/Config.tsx:1738
↓ 2 callersFunctiontearDown
(msg: string)
src/utils/worktree.ts:341
↓ 2 callersFunctiontextForResubmit
( msg: UserMessage, )
src/utils/messages.ts:2873
↓ 2 callersFunctiontoCompact
(entry: TranscriptEntry, lookup: ToolLookup)
src/utils/permissions/yoloClassifier.ts:426
↓ 2 callersFunctiontoCompactBlock
* Serialize a single transcript block as a JSONL dict line: `{"Bash":"ls"}` * for tool calls, `{"user":"text"}` for user text. The tool value is the
src/utils/permissions/yoloClassifier.ts:384
↓ 2 callersFunctiontoInfraSessionId
(id: string)
src/bridge/sessionIdCompat.ts:54
↓ 2 callersFunctiontoInternalMessages
( messages: readonly DeepImmutable<SDKMessage>[], )
src/utils/messages/mappers.ts:26
↓ 2 callersMethodtoLocalPath
(windowsPath: string)
src/utils/idePathConversion.ts:28
↓ 2 callersFunctiontoRelativePath
(absolutePath: string)
src/utils/path.ts:95
↓ 2 callersMethodtoString
* Returns the accumulated string, with truncation marker if truncated
src/utils/stringUtils.ts:181
↓ 2 callersFunctiontoggleMembership
( list: string[], name: string, shouldContain: boolean, )
src/services/mcp/config.ts:1538
↓ 2 callersFunctiontokenAmountToUSD
Convert token amount (smallest unit) to USD, assuming 1 USDC = 1 USD
src/services/x402/client.ts:29
↓ 2 callersFunctiontokenize
(text: string)
src/native-ts/color-diff/index.ts:550
↓ 2 callersFunctiontokenize
(text: string)
web/lib/workers/search.worker.ts:40
↓ 2 callersFunctiontoolToAPISchema
( tool: Tool, options: { getToolPermissionContext: () => Promise<ToolPermissionContext> tools: Too
src/utils/api.ts:119
↓ 2 callersFunctiontrackGitOperations
( command: string, exitCode: number, stdout?: string, )
src/tools/shared/gitOperationTracking.ts:189
↓ 2 callersFunctiontransformResultContent
( resultContent: PromptMessage['content'], serverName: string, )
src/services/mcp/client.ts:2478
↓ 2 callersFunctiontriggerTeardown
()
src/bridge/replBridge.ts:874
↓ 2 callersFunctiontruncateDescription
(description: string)
src/hooks/unifiedSuggestions.ts:73
↓ 2 callersFunctiontruncateEntrypointContent
(raw: string)
src/memdir/memdir.ts:57
↓ 2 callersFunctiontruncateHeadForPTLRetry
( messages: Message[], ptlResponse: AssistantMessage, )
src/services/compact/compact.ts:243
↓ 2 callersFunctiontruncateJson
* Truncates a JSON value to a maximum length for the prompt.
src/services/toolUseSummary/toolUseSummaryGenerator.ts:102
↓ 2 callersFunctiontruncateMcpContentIfNeeded
( content: MCPToolResult, )
src/utils/mcpValidation.ts:200
↓ 2 callersFunctiontryAcquireLock
( versionPath: string, lockFilePath: string, )
src/utils/nativeInstaller/pidLock.ts:238
↓ 2 callersFunctiontryAcquireSchedulerLock
( opts?: SchedulerLockOptions, )
src/utils/cronTasksLock.ts:111
↓ 2 callersFunctiontryClaimNextTask
* Try to claim an available task from the team's task list. * Returns the formatted prompt if a task was claimed, or undefined if none available.
src/utils/swarm/inProcessRunner.ts:624
↓ 2 callersFunctiontryCreateExclusive
( lock: SchedulerLock, dir?: string, )
src/utils/cronTasksLock.ts:64
↓ 2 callersFunctiontryGenerateSuggestion
( abortController: AbortController, messages: Message[], getAppState: () => AppState, cacheSafeParams:
src/services/PromptSuggestion/promptSuggestion.ts:125
↓ 2 callersFunctiontryParseAssignment
(P: ParseState)
src/utils/bash/bashParser.ts:1431
↓ 2 callersMethodtryProcessMessage
()
src/utils/claudeInChrome/chromeNativeHost.ts:468
↓ 2 callersFunctiontryPush
(line: string)
src/utils/readFileInRange.ts:148
↓ 2 callersFunctiontryReconnectInPlace
* Reconnect-in-place: if the just-registered environmentId matches what * was requested, call reconnectSession to force-stop stale workers and *
src/bridge/replBridge.ts:381
↓ 2 callersFunctiontryRenderPlanApprovalMessage
(content: string, senderName: string)
src/components/messages/PlanApprovalMessage.tsx:137
↓ 2 callersFunctiontrySessionMemoryCompaction
( messages: Message[], agentId?: AgentId, autoCompactThreshold?: number, )
src/services/compact/sessionMemoryCompact.ts:514
↓ 2 callersFunctiontryWithVersionLock
( versionFilePath: string, callback: () => void | Promise<void>, retries = 0, )
src/utils/nativeInstaller/installer.ts:181
↓ 2 callersFunctionunescapeJsonString
(raw: string)
src/utils/sessionStoragePortable.ts:39
↓ 2 callersFunctionunregisterForeground
(taskId: string, setAppState: SetAppState)
src/tasks/LocalShellTask/LocalShellTask.tsx:491
↓ 2 callersMethodunsign
* Verifies the HMAC and returns the raw session ID, or null on failure. * Uses constant-time comparison to prevent timing attacks.
src/server/web/auth/adapter.ts:133
↓ 2 callersFunctionunwrapDefault
( mod: MaybeDefault<T>, )
src/tools/FileReadTool/imageProcessor.ts:90
↓ 2 callersMethodup
()
src/utils/Cursor.ts:353
↓ 2 callersMethodupLogicalLine
()
src/utils/Cursor.ts:511
↓ 2 callersMethodupdateCell
(e3, t3, i3, s3, r2, o2, n2, a2, h2)
src/server/web/public/terminal.js:6871
↓ 2 callersMethodupdateCompositionElements
(e3)
src/server/web/public/terminal.js:1161
↓ 2 callersFunctionupdateLastSummarizedMessageIdIfSafe
* Updates lastSummarizedMessageId after successful extraction. * Only sets it if the last message doesn't have tool calls (to avoid orphaned tool_res
src/services/SessionMemory/sessionMemory.ts:488
↓ 2 callersFunctionupdatePluginsForMarketplaces
( marketplaceNames: Set<string>, )
src/utils/plugins/pluginAutoupdate.ts:161
↓ 2 callersFunctionupdateRetryAfter
()
src/services/mockRateLimits.ts:186
↓ 2 callersFunctionupdateSessionBridgeId
( bridgeSessionId: string | null, )
src/utils/concurrentSessions.ts:144
↓ 2 callersFunctionupdateTaskUnsafe
( taskListId: string, taskId: string, updates: Partial<Omit<Task, 'id'>>, )
src/utils/tasks.ts:354
↓ 2 callersFunctionupdateWatchPaths
(paths: string[])
src/utils/hooks/fileChangedWatcher.ts:108
↓ 2 callersFunctionupdateYankLength
(length: number)
src/utils/Cursor.ts:105
↓ 2 callersFunctionuploadFile
( filePath: string, relativePath: string, config: FilesApiConfig, opts?: { signal?: AbortSignal }, )
src/services/api/filesApi.ts:378
↓ 2 callersFunctionurlMatchesPattern
* Check if a URL matches a pattern with wildcard support
src/services/mcp/config.ts:331
↓ 2 callersFunctionuseApp
()
src/ink/hooks/use-app.ts:7
↓ 2 callersFunctionuseClipboardImageHint
( isFocused: boolean, enabled: boolean, )
src/hooks/useClipboardImageHint.ts:19
↓ 2 callersFunctionuseCoordinatorTaskCount
()
src/components/CoordinatorAgentStatus.tsx:83
↓ 2 callersFunctionuseManagePlugins
({ enabled = true, }: { enabled?: boolean } = {})
src/hooks/useManagePlugins.ts:37
↓ 2 callersFunctionuseMergedCommands
( initialCommands: Command[], mcpCommands: Command[], )
src/hooks/useMergedCommands.ts:5
↓ 2 callersFunctionuseMergedTools
( initialTools: Tools, mcpTools: Tools, toolPermissionContext: ToolPermissionContext, )
src/hooks/useMergedTools.ts:20
↓ 2 callersFunctionuseModalOrTerminalSize
(fallback)
src/context/modalContext.tsx:38
↓ 2 callersFunctionusePermissionExplainerUI
(props)
src/components/permissions/PermissionExplanation.tsx:92
↓ 2 callersFunctionusePluginRecommendationBase
()
src/hooks/usePluginRecommendationBase.tsx:24
↓ 2 callersFunctionuseRegisterKeybindingContext
(context, t0)
src/keybindings/KeybindingContext.tsx:215
↓ 2 callersFunctionuseSelectNavigation
({ visibleOptionCount = 5, options, initialFocusValue, onFocus, focusValue, }: UseSelectNavigationPr
src/components/CustomSelect/use-select-navigation.ts:505
↓ 2 callersFunctionuseSelection
()
src/ink/hooks/use-selection.ts:14
↓ 2 callersFunctionuseSetVoiceState
()
src/context/voice.tsx:76
↓ 2 callersFunctionuseSettingsErrors
()
src/hooks/notifs/useSettingsErrors.tsx:9
↓ 2 callersFunctionuseShellPermissionFeedback
({ toolUseConfirm, onDone, onReject, explainerVisible, }: { toolUseConfirm: ToolUseConfirm onDone:
src/components/permissions/useShellPermissionFeedback.ts:16
↓ 2 callersFunctionuseShimmerAnimation
( mode: SpinnerMode, message: string, isStalled: boolean, )
src/components/Spinner/useShimmerAnimation.ts:6
↓ 2 callersFunctionuseShowGuestPassesUpsell
()
src/components/LogoV2/GuestPassesUpsell.tsx:36
↓ 2 callersFunctionuseShowOverageCreditUpsell
()
src/components/LogoV2/OverageCreditUpsell.tsx:48
↓ 2 callersFunctionuseTextInput
({ value: originalValue, onChange, onSubmit, onExit, onExitMessage, onHistoryUp, onHistoryDown,
src/hooks/useTextInput.ts:73
↓ 2 callersFunctionuseTheme
()
web/components/layout/ThemeProvider.tsx:57
↓ 2 callersFunctionuseThemeSetting
()
src/components/design-system/ThemeProvider.tsx:144
↓ 2 callersFunctionuseUpdateNotification
( updatedVersion: string | null | undefined, initialVersion: string = MACRO.VERSION, )
src/hooks/useUpdateNotification.ts:16
↓ 2 callersFunctionvalidateAgentType
(agentType: string)
src/components/agents/validateAgent.ts:15
↓ 2 callersFunctionvalidateBindings
( userBlocks: unknown, _parsedBindings: ParsedBinding[], )
src/keybindings/validate.ts:425
↓ 2 callersFunctionvalidateContentTokens
( content: string, ext: string, maxTokens?: number, )
src/tools/FileReadTool/FileReadTool.ts:755
↓ 2 callersFunctionvalidateFlagArgument
( value: string, argType: FlagArgType, )
src/utils/shell/readOnlyCommandValidation.ts:1650
↓ 2 callersFunctionvalidateFlagsAgainstAllowlist
* Helper: Validate flags against an allowlist * Handles both single flags and combined flags (e.g., -nE) * @param flags Array of flags to validate
src/tools/BashTool/sedValidation.ts:13
↓ 2 callersFunctionvalidateGitState
()
src/utils/teleport.tsx:172
↓ 2 callersFunctionvalidateGitUrl
* Validate a git URL using Node.js URL parsing
src/utils/plugins/pluginLoader.ts:470
↓ 2 callersFunctionvalidateHookJson
* Parse and validate a JSON string against the hook output Zod schema. * Returns the validated output or formatted validation errors.
src/utils/hooks.ts:382
↓ 2 callersFunctionvalidateMemoryPath
* Normalize and validate a candidate auto-memory directory path. * * SECURITY: Rejects paths that would be dangerous as a read-allowlist root * or
src/memdir/paths.ts:109
↓ 2 callersFunctionvalidatePermissionRule
(rule: string)
src/utils/settings/permissionValidation.ts:58
↓ 2 callersFunctionvalidateSessionRepository
(sessionData: SessionResource)
src/utils/teleport.tsx:367
↓ 2 callersFunctionvalidateSettingsFileContent
(content: string)
src/utils/settings/validation.ts:179
↓ 2 callersFunctionvalidateSrcRoot
()
mcp-server/src/server.ts:946
← previousnext →4,601–4,700 of 13,048, ranked by callers