MCPcopy Create free account

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

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

↓ 3 callersFunctioncacheAndRegisterPlugin
( pluginId: string, entry: PluginMarketplaceEntry, scope: PluginScope = 'user', projectPath?: string,
source code/utils/plugins/pluginInstallationHelpers.ts:130
↓ 3 callersFunctioncacheImagePath
(content: PastedContent)
source code/utils/imageStore.ts:43
↓ 3 callersFunctioncachePlugin
( source: PluginSource, options?: { manifest?: PluginManifest }, )
source code/utils/plugins/pluginLoader.ts:913
↓ 3 callersFunctioncacheWrite
( node: Node, aW: number, aH: number, wM: MeasureMode, hM: MeasureMode, oW: number, oH: number,
source code/native-ts/yoga-layout/index.ts:971
↓ 3 callersFunctioncalculateCostFromTokens
( model: string, tokens: { inputTokens: number outputTokens: number cacheReadInputTokens: numb
source code/utils/modelCost.ts:188
↓ 3 callersFunctioncalculateNextRetryDelay
* Calculate next retry delay using exponential backoff
source code/utils/plugins/officialMarketplaceStartupCheck.ts:68
↓ 3 callersFunctioncanCycleToAuto
(ctx: ToolPermissionContext)
source code/utils/permissions/getNextPermissionMode.ts:19
↓ 3 callersFunctioncanUseTool
(tool: Tool, input: unknown)
source code/services/MagicDocs/magicDocs.ts:174
↓ 3 callersFunctioncaptureAPIRequest
( params: BetaMessageStreamParams, querySource?: QuerySource, )
source code/utils/log.ts:333
↓ 3 callersFunctioncaptureScrolledRows
( s: SelectionState, screen: Screen, firstRow: number, lastRow: number, side: 'above' | 'below', )
source code/ink/selection.ts:815
↓ 3 callersFunctioncheckAndDisableAutoModeIfNeeded
( toolPermissionContext: ToolPermissionContext, setAppState: (f: (prev: AppState) => AppState) => void,
source code/utils/permissions/bypassPermissionsKillswitch.ts:76
↓ 3 callersFunctioncheckAndDisableBypassPermissionsIfNeeded
( toolPermissionContext: ToolPermissionContext, setAppState: (f: (prev: AppState) => AppState) => void, )
source code/utils/permissions/bypassPermissionsKillswitch.ts:21
↓ 3 callersFunctioncheckBridgeMinVersion
()
source code/bridge/bridgeEnabled.ts:162
↓ 3 callersFunctioncheckCachedPassesEligibility
()
source code/services/api/referral.ts:85
↓ 3 callersFunctioncheckDenyRuleForGuessedPath
* Best-effort deny check for paths obscured by :: or backtick syntax. * ONLY checks deny rules — never auto-allows. If the stripped guess * doesn't
source code/tools/PowerShellTool/pathValidation.ts:986
↓ 3 callersFunctioncheckEditableInternalPath
( absolutePath: string, input: { [key: string]: unknown }, )
source code/utils/permissions/filesystem.ts:1481
↓ 3 callersFunctioncheckGithubAppInstalled
( owner: string, repo: string, signal?: AbortSignal, )
source code/utils/background/remote/preconditions.ts:80
↓ 3 callersFunctioncheckIdeConnection
* Checks if the IDE connection is responding by testing if the port is open * @param host Host to connect to * @param port Port to connect to * @pa
source code/utils/ide.ts:404
↓ 3 callersFunctioncheckInstall
( force: boolean = false, )
source code/utils/nativeInstaller/installer.ts:802
↓ 3 callersFunctioncheckOriginFileChanged
( originalFile: string, backupFileName: string, originalStatsHint?: Stats, )
source code/utils/fileHistory.ts:602
↓ 3 callersFunctioncheckOutTeleportedSessionBranch
(branch?: string)
source code/utils/teleport.tsx:317
↓ 3 callersFunctioncheckPathConstraints
( input: z.infer<typeof BashTool.inputSchema>, cwd: string, toolPermissionContext: ToolPermissionContext
source code/tools/BashTool/pathValidation.ts:1015
↓ 3 callersFunctioncheckPathExists
* Check if a file or directory exists on Windows using the dir command * @param path - The path to check * @returns true if the path exists, false o
source code/utils/windowsPaths.ts:17
↓ 3 callersFunctioncheckPathSafetyForAutoEdit
( path: string, precomputedPathsToCheck?: readonly string[], )
source code/utils/permissions/filesystem.ts:622
↓ 3 callersFunctioncheckReadableInternalPath
( absolutePath: string, input: { [key: string]: unknown }, )
source code/utils/permissions/filesystem.ts:1613
↓ 3 callersFunctioncheckRemoteAgentEligibility
({ skipBundle = false }: { skipBundle?: boolean; } = {})
source code/tasks/RemoteAgentTask/RemoteAgentTask.tsx:126
↓ 3 callersFunctionchordToString
(chord: Chord)
source code/keybindings/parser.ts:145
↓ 3 callersFunctionchunk
(type: string, data: Uint8Array)
source code/utils/ansiToPng.ts:294
↓ 3 callersFunctionclassifyHandoffIfNeeded
({ agentMessages, tools, toolPermissionContext, abortSignal, subagentType, totalToolUseCount, }: {
source code/tools/AgentTool/agentToolUtils.ts:391
↓ 3 callersFunctioncleanMessagesForLogging
( messages: Message[], allMessages: readonly Message[] = messages, )
source code/utils/sessionStorage.ts:4452
↓ 3 callersFunctioncleanup
()
source code/services/mcp/client.ts:534
↓ 3 callersMethodcleanup
()
source code/services/oauth/index.ts:196
↓ 3 callersFunctioncleanupComputerUseAfterTurn
( ctx: Pick< ToolUseContext, 'getAppState' | 'setAppState' | 'sendOSNotification' >, )
source code/utils/computerUse/cleanup.ts:32
↓ 3 callersFunctioncleanupOldVersions
()
source code/utils/nativeInstaller/installer.ts:1186
↓ 3 callersFunctioncleanupTerminalModes
()
source code/utils/gracefulShutdown.ts:61
↓ 3 callersFunctioncleanupWorktree
()
source code/utils/worktree.ts:815
↓ 3 callersFunctionclearCommandMemoizationCaches
()
source code/commands.ts:525
↓ 3 callersFunctionclearConversation
({ setMessages, readFileState, discoveredSkillNames, loadedNestedMemoryPaths, getAppState, setAppS
source code/commands/clear/conversation.ts:51
↓ 3 callersFunctionclearDumpState
(agentIdOrSessionId: string)
source code/services/api/dumpPrompts.ts:42
↓ 3 callersFunctionclearIdleTimer
()
source code/utils/sessionActivity.ts:55
↓ 3 callersFunctionclearIdpClientSecret
(idpIssuer: string)
source code/services/mcp/xaaIdpLogin.ts:189
↓ 3 callersMethodclearLivenessTimer
()
source code/cli/transports/SSETransport.ts:563
↓ 3 callersFunctionclearPendingRequest
()
source code/hooks/toolPermission/handlers/swarmWorkerHandler.ts:63
↓ 3 callersFunctionclearPluginOptionsCache
()
source code/utils/plugins/pluginOptionsStorage.ts:81
↓ 3 callersFunctionclearServerTokensFromLocalStorage
( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, )
source code/services/mcp/auth.ts:622
↓ 3 callersFunctionclearSessionCaches
( preservedAgentIds: ReadonlySet<string> = new Set(), )
source code/commands/clear/caches.ts:49
↓ 3 callersFunctionclearSessionHooks
( setAppState: (updater: (prev: AppState) => AppState) => void, sessionId: string, )
source code/utils/hooks/sessionHooks.ts:439
↓ 3 callersFunctionclearStallTimer
()
source code/utils/nativeInstaller/download.ts:307
↓ 3 callersFunctionclearTimer
()
source code/utils/bufferedWriter.ts:32
↓ 3 callersFunctionclearTimer
()
source code/hooks/useAwaySummary.ts:59
↓ 3 callersFunctioncloseTabInIDE
()
source code/hooks/useDiffInIDE.ts:153
↓ 3 callersFunctioncloseTransportAndRejectPending
(reason: string)
source code/services/mcp/client.ts:1242
↓ 3 callersFunctioncmdQuote
* cmd.exe argument quoting. cmd.exe does NOT use CommandLineToArgvW-style * backslash escaping — it toggles its quoting state on every raw " * chara
source code/utils/deepLink/terminalLauncher.ts:555
↓ 3 callersFunctioncodesignRipgrepIfNecessary
()
source code/utils/ripgrep.ts:622
↓ 3 callersFunctioncollectCommandSubstitution
* Recurse into a command_substitution node's inner command(s). If the inner * command(s) parse cleanly (simple), add them to the innerCommands * acc
source code/utils/bash/ast.ts:1376
↓ 3 callersFunctioncollectCommands
* Recursively collect leaf `command` nodes from a structural wrapper node. * Returns an error result on any disallowed node type, or null on success.
source code/utils/bash/ast.ts:484
↓ 3 callersFunctioncolorsEqual
(a: Color, b: Color)
source code/ink/termio/types.ts:106
↓ 3 callersFunctioncommandAsHint
* Format a bash command for the ⎿ hint. Drops blank lines, collapses runs of * inline whitespace, then caps total length. Newlines are preserved so t
source code/utils/collapseReadSearch.ts:127
↓ 3 callersFunctioncommandHasAnyCd
(command: string)
source code/tools/BashTool/bashPermissions.ts:2619
↓ 3 callersFunctioncommandListDisplayTruncated
(commands: string[])
source code/components/permissions/shellPermissionHelpers.tsx:26
↓ 3 callersFunctioncommitCacheOutputs
(node: Node, performLayout: boolean)
source code/native-ts/yoga-layout/index.ts:1024
↓ 3 callersFunctioncompactConversation
( messages: Message[], context: ToolUseContext, cacheSafeParams: CacheSafeParams, suppressFollowUpQues
source code/services/compact/compact.ts:389
↓ 3 callersFunctioncomparePoints
-1 if a < b, 1 if a > b, 0 if equal (reading order: row then col).
source code/ink/selection.ts:229
↓ 3 callersFunctioncomputeStandaloneAgentContext
( agentName: string | undefined, agentColor: string | undefined, )
source code/utils/sessionRestore.ts:177
↓ 3 callersFunctioncomputeTargetDims
Logical → physical → API target dims. See `targetImageSize` + COORDINATES.md.
source code/utils/computerUse/executor.ts:62
↓ 3 callersFunctionconfigureMarked
()
source code/utils/markdown.ts:23
↓ 3 callersFunctionconsumeSpeculativeClassifierCheck
( command: string, )
source code/tools/BashTool/bashPermissions.ts:1535
↓ 3 callersFunctioncontainsHeredoc
* Detects if a command contains a heredoc pattern * Matches patterns like: <<EOF, <<'EOF', <<"EOF", <<-EOF, <<-'EOF', <<\EOF, etc.
source code/utils/bash/shellQuoting.ts:9
↓ 3 callersFunctioncontentHasToolReference
* Does the content array have a tool_result block whose inner content * contains tool_reference (ToolSearch loaded tools)?
source code/utils/messages.ts:1780
↓ 3 callersFunctionconvertImagesToBlocks
(images: PastedContent[])
source code/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx:632
↓ 3 callersFunctionconvertToLogOption
( transcript: TranscriptMessage[], value: number = 0, summary?: string, customTitle?: string, fileHi
source code/utils/sessionStorage.ts:2481
↓ 3 callersFunctionconvertToSandboxRuntimeConfig
( settings: SettingsJson, )
source code/utils/sandbox/sandbox-adapter.ts:174
↓ 3 callersFunctioncopyOrWriteToFile
(text: string, filename: string)
source code/commands/copy/copy.tsx:83
↓ 3 callersFunctioncopyPluginToVersionedCache
( sourcePath: string, pluginId: string, version: string, entry?: PluginMarketplaceEntry, marketplace
source code/utils/plugins/pluginLoader.ts:367
↓ 3 callersMethodcopySelectionNoClear
* Copy the current selection to the clipboard without clearing the * highlight. Matches iTerm2's copy-on-select behavior where the selected * re
source code/ink/ink.tsx:1018
↓ 3 callersFunctioncountLinesChanged
( patch: StructuredPatchHunk[], newFileContent?: string, )
source code/utils/diff.ts:51
↓ 3 callersFunctioncountMessagesTokensWithAPI
( messages: Anthropic.Beta.Messages.BetaMessageParam[], tools: Anthropic.Beta.Messages.BetaToolUnion[], )
source code/services/tokenEstimation.ts:142
↓ 3 callersFunctioncountNewlines
(buf: Buffer, start: number, end: number)
source code/utils/readEditContext.ts:155
↓ 3 callersFunctioncountToolsInMessages
(messages: Message[])
source code/services/PromptSuggestion/speculation.ts:157
↓ 3 callersFunctioncountUnescapedChar
* Counts unescaped occurrences of a character in a string. * A character is considered escaped if preceded by an odd number of backslashes.
source code/utils/settings/permissionValidation.ts:31
↓ 3 callersFunctioncountVisibleMessages
* Counts visible messages that would appear as conversation turns in the UI. * Excludes: * - System, attachment, and progress messages * - User mes
source code/utils/sessionStorage.ts:2455
↓ 3 callersFunctioncreateArgv0ShellFunction
* Creates a shell function that invokes `binaryPath` with a specific argv[0]. * This uses the bun-internal ARGV0 dispatch trick: the bun binary check
source code/utils/bash/ShellSnapshot.ts:37
↓ 3 callersFunctioncreateBridgeApiClient
(deps: BridgeApiDeps)
source code/bridge/bridgeApi.ts:70
↓ 3 callersFunctioncreateBridgeSession
({ environmentId, title, events, gitRepoUrl, branch, signal, baseUrl: baseUrlOverride, getAcce
source code/bridge/createSession.ts:36
↓ 3 callersFunctioncreateBufferedWriter
({ writeFn, flushIntervalMs = 1000, maxBufferSize = 100, maxBufferBytes = Infinity, immediateMode =
source code/utils/bufferedWriter.ts:11
↓ 3 callersFunctioncreateCommandSuggestionItem
* Creates a suggestion item from a command. * Only shows the matched alias in parentheses if the user typed an alias.
source code/utils/suggestions/commandSuggestions.ts:267
↓ 3 callersFunctioncreateCompactBoundaryMessage
( trigger: 'manual' | 'auto', preTokens: number, lastPreCompactMessageUuid?: UUID, userContext?: strin
source code/utils/messages.ts:4532
↓ 3 callersFunctioncreateDisabledBypassPermissionsContext
( currentContext: ToolPermissionContext, )
source code/utils/permissions/permissionSetup.ts:1391
↓ 3 callersFunctioncreatePlanAttachmentIfNeeded
( agentId?: AgentId, )
source code/services/compact/compact.ts:1472
↓ 3 callersFunctioncreateRoot
(options?: RenderOptions)
source code/ink.ts:27
↓ 3 callersFunctioncreateShutdownRequestMessage
(params: { requestId: string from: string reason?: string })
source code/utils/teammateMailbox.ts:774
↓ 3 callersFunctioncreateStopHookSummaryMessage
( hookCount: number, hookInfos: StopHookInfo[], hookErrors: string[], preventedContinuation: boolean,
source code/utils/messages.ts:4400
↓ 3 callersFunctioncreateSyntheticAssistantMessage
( request: SDKControlPermissionRequest, requestId: string, )
source code/remote/remotePermissionBridge.ts:14
↓ 3 callersFunctioncreateTokenizer
(options?: TokenizerOptions)
source code/ink/termio/tokenize.ts:59
↓ 3 callersFunctioncreateToolStub
(toolName: string)
source code/remote/remotePermissionBridge.ts:55
↓ 3 callersFunctioncreateV2ReplTransport
(opts: { sessionUrl: string ingressToken: string sessionId: string /** * SSE sequence-number high-w
source code/bridge/replBridgeTransport.ts:121
↓ 3 callersFunctioncronToHuman
(cron: string, opts?: { utc?: boolean })
source code/utils/cron.ts:220
↓ 3 callersFunctiondedupClaudeAiMcpServers
( claudeAiServers: Record<string, ScopedMcpServerConfig>, manualServers: Record<string, ScopedMcpServerCon
source code/services/mcp/config.ts:283
↓ 3 callersFunctiondefaultStyle
()
source code/ink/termio/types.ts:70
↓ 3 callersMethoddeleteTokenBefore
* Deletes a token before the cursor if one exists. * Supports pasted text refs: [Pasted text #1], [Pasted text #1 +10 lines], * [...Truncated te
source code/utils/Cursor.ts:939
← previousnext →1,701–1,800 of 11,462, ranked by callers