MCPcopy Create free account

hub / github.com/AnukarOP/claude-code-leaked / functions

Functions11,462 in github.com/AnukarOP/claude-code-leaked

↓ 2 callersFunctionteammateModelDisplayString
(value: string | null | undefined)
source code/components/Settings/Config.tsx:1740
↓ 2 callersFunctiontearDown
(msg: string)
source code/utils/worktree.ts:343
↓ 2 callersFunctiontextForResubmit
( msg: UserMessage, )
source code/utils/messages.ts:2875
↓ 2 callersFunctiontoCompact
(entry: TranscriptEntry, lookup: ToolLookup)
source code/utils/permissions/yoloClassifier.ts:428
↓ 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
source code/utils/permissions/yoloClassifier.ts:386
↓ 2 callersFunctiontoInfraSessionId
(id: string)
source code/bridge/sessionIdCompat.ts:56
↓ 2 callersFunctiontoInternalMessages
( messages: readonly DeepImmutable<SDKMessage>[], )
source code/utils/messages/mappers.ts:28
↓ 2 callersMethodtoLocalPath
(windowsPath: string)
source code/utils/idePathConversion.ts:30
↓ 2 callersFunctiontoRelativePath
(absolutePath: string)
source code/utils/path.ts:97
↓ 2 callersMethodtoString
* Returns the accumulated string, with truncation marker if truncated
source code/utils/stringUtils.ts:183
↓ 2 callersFunctiontoggleMembership
( list: string[], name: string, shouldContain: boolean, )
source code/services/mcp/config.ts:1540
↓ 2 callersFunctiontokenize
(text: string)
source code/native-ts/color-diff/index.ts:552
↓ 2 callersFunctiontoolToAPISchema
( tool: Tool, options: { getToolPermissionContext: () => Promise<ToolPermissionContext> tools: Too
source code/utils/api.ts:121
↓ 2 callersFunctiontrackGitOperations
( command: string, exitCode: number, stdout?: string, )
source code/tools/shared/gitOperationTracking.ts:191
↓ 2 callersFunctiontransformResultContent
( resultContent: PromptMessage['content'], serverName: string, )
source code/services/mcp/client.ts:2480
↓ 2 callersFunctiontriggerTeardown
()
source code/bridge/replBridge.ts:876
↓ 2 callersFunctiontruncateDescription
(description: string)
source code/hooks/unifiedSuggestions.ts:75
↓ 2 callersFunctiontruncateEntrypointContent
(raw: string)
source code/memdir/memdir.ts:59
↓ 2 callersFunctiontruncateHeadForPTLRetry
( messages: Message[], ptlResponse: AssistantMessage, )
source code/services/compact/compact.ts:245
↓ 2 callersFunctiontruncateJson
* Truncates a JSON value to a maximum length for the prompt.
source code/services/toolUseSummary/toolUseSummaryGenerator.ts:104
↓ 2 callersFunctiontruncateMcpContentIfNeeded
( content: MCPToolResult, )
source code/utils/mcpValidation.ts:202
↓ 2 callersFunctiontryAcquireLock
( versionPath: string, lockFilePath: string, )
source code/utils/nativeInstaller/pidLock.ts:240
↓ 2 callersFunctiontryAcquireSchedulerLock
( opts?: SchedulerLockOptions, )
source code/utils/cronTasksLock.ts:113
↓ 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.
source code/utils/swarm/inProcessRunner.ts:626
↓ 2 callersFunctiontryCreateExclusive
( lock: SchedulerLock, dir?: string, )
source code/utils/cronTasksLock.ts:66
↓ 2 callersFunctiontryGenerateSuggestion
( abortController: AbortController, messages: Message[], getAppState: () => AppState, cacheSafeParams:
source code/services/PromptSuggestion/promptSuggestion.ts:127
↓ 2 callersFunctiontryParseAssignment
(P: ParseState)
source code/utils/bash/bashParser.ts:1433
↓ 2 callersMethodtryProcessMessage
()
source code/utils/claudeInChrome/chromeNativeHost.ts:470
↓ 2 callersFunctiontryPush
(line: string)
source code/utils/readFileInRange.ts:150
↓ 2 callersFunctiontryReconnectInPlace
* Reconnect-in-place: if the just-registered environmentId matches what * was requested, call reconnectSession to force-stop stale workers and *
source code/bridge/replBridge.ts:383
↓ 2 callersFunctiontryRenderPlanApprovalMessage
(content: string, senderName: string)
source code/components/messages/PlanApprovalMessage.tsx:139
↓ 2 callersFunctiontrySessionMemoryCompaction
( messages: Message[], agentId?: AgentId, autoCompactThreshold?: number, )
source code/services/compact/sessionMemoryCompact.ts:516
↓ 2 callersFunctiontryWithVersionLock
( versionFilePath: string, callback: () => void | Promise<void>, retries = 0, )
source code/utils/nativeInstaller/installer.ts:183
↓ 2 callersFunctionunescapeJsonString
(raw: string)
source code/utils/sessionStoragePortable.ts:41
↓ 2 callersFunctionunregisterForeground
(taskId: string, setAppState: SetAppState)
source code/tasks/LocalShellTask/LocalShellTask.tsx:493
↓ 2 callersFunctionunwrapDefault
( mod: MaybeDefault<T>, )
source code/tools/FileReadTool/imageProcessor.ts:92
↓ 2 callersMethodup
()
source code/utils/Cursor.ts:355
↓ 2 callersMethodupLogicalLine
()
source code/utils/Cursor.ts:513
↓ 2 callersFunctionupdateLastSummarizedMessageIdIfSafe
* Updates lastSummarizedMessageId after successful extraction. * Only sets it if the last message doesn't have tool calls (to avoid orphaned tool_res
source code/services/SessionMemory/sessionMemory.ts:490
↓ 2 callersFunctionupdatePluginsForMarketplaces
( marketplaceNames: Set<string>, )
source code/utils/plugins/pluginAutoupdate.ts:163
↓ 2 callersFunctionupdateRetryAfter
()
source code/services/mockRateLimits.ts:188
↓ 2 callersFunctionupdateSessionBridgeId
( bridgeSessionId: string | null, )
source code/utils/concurrentSessions.ts:146
↓ 2 callersFunctionupdateTaskUnsafe
( taskListId: string, taskId: string, updates: Partial<Omit<Task, 'id'>>, )
source code/utils/tasks.ts:356
↓ 2 callersFunctionupdateWatchPaths
(paths: string[])
source code/utils/hooks/fileChangedWatcher.ts:110
↓ 2 callersFunctionupdateYankLength
(length: number)
source code/utils/Cursor.ts:107
↓ 2 callersFunctionuploadFile
( filePath: string, relativePath: string, config: FilesApiConfig, opts?: { signal?: AbortSignal }, )
source code/services/api/filesApi.ts:380
↓ 2 callersFunctionurlMatchesPattern
* Check if a URL matches a pattern with wildcard support
source code/services/mcp/config.ts:333
↓ 2 callersFunctionuseApp
()
source code/ink/hooks/use-app.ts:9
↓ 2 callersFunctionuseClipboardImageHint
( isFocused: boolean, enabled: boolean, )
source code/hooks/useClipboardImageHint.ts:21
↓ 2 callersFunctionuseCoordinatorTaskCount
()
source code/components/CoordinatorAgentStatus.tsx:85
↓ 2 callersFunctionuseManagePlugins
({ enabled = true, }: { enabled?: boolean } = {})
source code/hooks/useManagePlugins.ts:39
↓ 2 callersFunctionuseMergedCommands
( initialCommands: Command[], mcpCommands: Command[], )
source code/hooks/useMergedCommands.ts:7
↓ 2 callersFunctionuseMergedTools
( initialTools: Tools, mcpTools: Tools, toolPermissionContext: ToolPermissionContext, )
source code/hooks/useMergedTools.ts:22
↓ 2 callersFunctionuseModalOrTerminalSize
(fallback)
source code/context/modalContext.tsx:40
↓ 2 callersFunctionusePermissionExplainerUI
(props)
source code/components/permissions/PermissionExplanation.tsx:94
↓ 2 callersFunctionusePluginRecommendationBase
()
source code/hooks/usePluginRecommendationBase.tsx:26
↓ 2 callersFunctionuseRegisterKeybindingContext
(context, t0)
source code/keybindings/KeybindingContext.tsx:217
↓ 2 callersFunctionuseSelectNavigation
({ visibleOptionCount = 5, options, initialFocusValue, onFocus, focusValue, }: UseSelectNavigationPr
source code/components/CustomSelect/use-select-navigation.ts:507
↓ 2 callersFunctionuseSelection
()
source code/ink/hooks/use-selection.ts:16
↓ 2 callersFunctionuseSetVoiceState
()
source code/context/voice.tsx:78
↓ 2 callersFunctionuseSettingsErrors
()
source code/hooks/notifs/useSettingsErrors.tsx:11
↓ 2 callersFunctionuseShellPermissionFeedback
({ toolUseConfirm, onDone, onReject, explainerVisible, }: { toolUseConfirm: ToolUseConfirm onDone:
source code/components/permissions/useShellPermissionFeedback.ts:18
↓ 2 callersFunctionuseShimmerAnimation
( mode: SpinnerMode, message: string, isStalled: boolean, )
source code/components/Spinner/useShimmerAnimation.ts:8
↓ 2 callersFunctionuseShowGuestPassesUpsell
()
source code/components/LogoV2/GuestPassesUpsell.tsx:38
↓ 2 callersFunctionuseShowOverageCreditUpsell
()
source code/components/LogoV2/OverageCreditUpsell.tsx:50
↓ 2 callersFunctionuseTextInput
({ value: originalValue, onChange, onSubmit, onExit, onExitMessage, onHistoryUp, onHistoryDown,
source code/hooks/useTextInput.ts:75
↓ 2 callersFunctionuseThemeSetting
()
source code/components/design-system/ThemeProvider.tsx:146
↓ 2 callersFunctionuseUpdateNotification
( updatedVersion: string | null | undefined, initialVersion: string = MACRO.VERSION, )
source code/hooks/useUpdateNotification.ts:18
↓ 2 callersFunctionvalidateAgentType
(agentType: string)
source code/components/agents/validateAgent.ts:17
↓ 2 callersFunctionvalidateBindings
( userBlocks: unknown, _parsedBindings: ParsedBinding[], )
source code/keybindings/validate.ts:427
↓ 2 callersFunctionvalidateContentTokens
( content: string, ext: string, maxTokens?: number, )
source code/tools/FileReadTool/FileReadTool.ts:757
↓ 2 callersFunctionvalidateFlagArgument
( value: string, argType: FlagArgType, )
source code/utils/shell/readOnlyCommandValidation.ts:1652
↓ 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
source code/tools/BashTool/sedValidation.ts:15
↓ 2 callersFunctionvalidateGitState
()
source code/utils/teleport.tsx:174
↓ 2 callersFunctionvalidateGitUrl
* Validate a git URL using Node.js URL parsing
source code/utils/plugins/pluginLoader.ts:472
↓ 2 callersFunctionvalidateHookJson
* Parse and validate a JSON string against the hook output Zod schema. * Returns the validated output or formatted validation errors.
source code/utils/hooks.ts:384
↓ 2 callersFunctionvalidateMemoryPath
* Normalize and validate a candidate auto-memory directory path. * * SECURITY: Rejects paths that would be dangerous as a read-allowlist root * or
source code/memdir/paths.ts:111
↓ 2 callersFunctionvalidatePermissionRule
(rule: string)
source code/utils/settings/permissionValidation.ts:60
↓ 2 callersFunctionvalidateSessionRepository
(sessionData: SessionResource)
source code/utils/teleport.tsx:369
↓ 2 callersFunctionvalidateSettingsFileContent
(content: string)
source code/utils/settings/validation.ts:181
↓ 2 callersFunctionverifyAutoModeGateAccess
( currentContext: ToolPermissionContext, // Runtime AppState.fastMode — passed from callers with AppState
source code/utils/permissions/permissionSetup.ts:1080
↓ 2 callersFunctionverifyIt2Setup
()
source code/utils/swarm/backends/it2Setup.ts:154
↓ 2 callersFunctionversionIsAvailable
(version: string)
source code/utils/nativeInstaller/installer.ts:492
↓ 2 callersFunctionvisitNodes
(node: Node, visitor: (node: Node) => void)
source code/utils/bash/ParsedCommand.ts:108
↓ 2 callersFunctionwaitForPaneShellReady
()
source code/utils/swarm/backends/TmuxBackend.ts:37
↓ 2 callersFunctionwaitForRemoteManagedSettingsToLoad
()
source code/services/remoteManagedSettings/index.ts:157
↓ 2 callersFunctionwaitForScrollIdle
()
source code/bootstrap/state.ts:820
↓ 2 callersFunctionwalk
(node: TreeSitterNode)
source code/utils/bash/treeSitterAnalysis.ts:426
↓ 2 callersFunctionwalkArithmetic
* Recursively validate an arithmetic_expansion node. Allows only literal * numeric expressions — no variables, no substitutions. Returns null if * s
source code/utils/bash/ast.ts:1677
↓ 2 callersFunctionwalkFileRedirect
* Extract operator + target from a `file_redirect` node. The target must be * a static word or string.
source code/utils/bash/ast.ts:1073
↓ 2 callersFunctionwalkHeredocRedirect
* Heredoc redirect. Only quoted-delimiter heredocs (<<'EOF') are safe — * their bodies are literal text. Unquoted-delimiter heredocs (<<EOF) * under
source code/utils/bash/ast.ts:1145
↓ 2 callersFunctionwalkString
* Extract literal content from a double-quoted string node. A `string` node's * children are `"` delimiters, `string_content` literals, and possibly
source code/utils/bash/ast.ts:1510
↓ 2 callersMethodwarn
(message: string, ...args: unknown[])
source code/utils/claudeInChrome/mcpServer.ts:289
↓ 2 callersMethodwatchCurrentBranchRef
* Watch the loose ref file for the current branch. * Called on startup and whenever HEAD changes (branch switch).
source code/utils/git/gitFilesystem.ts:393
↓ 2 callersFunctionwidestLine
(string: string)
source code/ink/widest-line.ts:5
↓ 2 callersFunctionwillDefer
(t: Tool)
source code/services/api/claude.ts:1210
↓ 2 callersFunctionwindowsCommandValue
(claudePath: string)
source code/utils/deepLink/registerProtocol.ts:61
↓ 2 callersFunctionwireTransport
(newTransport: ReplBridgeTransport)
source code/bridge/replBridge.ts:1210
↓ 2 callersFunctionwireTransportCallbacks
()
source code/bridge/remoteBridgeCore.ts:382
↓ 2 callersMethodwithCache
(key: string, compute: () => T)
source code/utils/Cursor.ts:1489
← previousnext →4,101–4,200 of 11,462, ranked by callers