MCPcopy Create free account

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

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

↓ 42 callersFunctioncliError
(msg?: string)
source code/cli/exit.ts:21
↓ 42 callersFunctiongracefulShutdownSync
( exitCode = 0, reason: ExitReason = 'other', options?: { getAppState?: () => AppState setAppSta
source code/utils/gracefulShutdown.ts:338
↓ 41 callersFunctioncsi
(...args: (string | number)[])
source code/ink/termio/csi.ts:47
↓ 41 callersMethodemit
(type: string | symbol, ...args: unknown[])
source code/ink/events/emitter.ts:17
↓ 40 callersFunctionbuildTool
(def: D)
source code/Tool.ts:785
↓ 40 callersFunctioncreateAssistantAPIErrorMessage
({ content, apiError, error, errorDetails, }: { content: string apiError?: AssistantMessage['apiEr
source code/utils/messages.ts:437
↓ 40 callersFunctiononCancel
()
source code/screens/REPL.tsx:2108
↓ 40 callersFunctionupdateTaskState
( taskId: string, setAppState: SetAppState, updater: (task: T) => T, )
source code/utils/task/framework.ts:50
↓ 40 callersFunctionuseInput
(inputHandler: Handler, options: Options = {})
source code/ink/hooks/use-input.ts:44
↓ 39 callersFunctiongetDisplayPath
(filePath: string)
source code/utils/file.ts:157
↓ 39 callersFunctiongetSecureStorage
()
source code/utils/secureStorage/index.ts:11
↓ 39 callersFunctionlog
(message: string, ...args: unknown[])
source code/utils/claudeInChrome/chromeNativeHost.ts:36
↓ 38 callersFunctiononStateChange
(state, detail)
source code/cli/print.ts:3960
↓ 37 callersFunctionmaybe
(label: string, f: () => Promise<A[]>)
source code/utils/attachments.ts:1007
↓ 36 callersMethodclose
* Clean up connections gracefully
source code/cli/remoteIO.ts:249
↓ 36 callersFunctiongetIsRemoteMode
()
source code/bootstrap/state.ts:1633
↓ 36 callersFunctiongetSubscriptionType
()
source code/utils/auth.ts:1664
↓ 36 callersFunctionparseUserSpecifiedModel
( modelInput: ModelName | ModelAlias, )
source code/utils/model/model.ts:447
↓ 36 callersMethodread
()
source code/cli/structuredIO.ts:217
↓ 36 callersMethodreadFile
* Reads a file with caching. Returns both content and encoding. * Cache key includes file path and modification time for automatic invalidation.
source code/utils/fileReadCache.ts:24
↓ 36 callersFunctionroughTokenCountEstimation
( content: string, bytesPerToken: number = 4, )
source code/services/tokenEstimation.ts:205
↓ 36 callersMethodstopImmediatePropagation
()
source code/ink/events/event.ts:10
↓ 35 callersMethodkill
()
source code/utils/ShellCommand.ts:347
↓ 34 callersFunctionasSystemPrompt
(value: readonly string[])
source code/utils/systemPromptType.ts:14
↓ 34 callersFunctiongetModelStrings
()
source code/utils/model/modelStrings.ts:138
↓ 34 callersFunctiongetProject
()
source code/utils/sessionStorage.ts:445
↓ 34 callersFunctiongetTeamName
(teamContext?: { teamName: string })
source code/utils/teammate.ts:113
↓ 34 callersFunctionsaveLex
(L: Lexer)
source code/utils/bash/bashParser.ts:758
↓ 34 callersFunctionuseShortcutDisplay
( action: string, context: KeybindingContextName, fallback: string, )
source code/keybindings/useShortcutDisplay.ts:31
↓ 33 callersFunctioncreatePermissionRequestMessage
(params: { request_id: string agent_id: string tool_name: string tool_use_id: string description: st
source code/utils/teammateMailbox.ts:490
↓ 33 callersFunctiongetAppState
()
source code/commands/commit.ts:73
↓ 33 callersFunctiongetMainLoopModel
()
source code/utils/model/model.ts:94
↓ 33 callersMethodread
()
source code/utils/claudeInChrome/chromeNativeHost.ts:503
↓ 32 callersFunctioncreateAbortController
( maxListeners: number = DEFAULT_MAX_LISTENERS, )
source code/utils/abortController.ts:18
↓ 32 callersFunctionisBareMode
()
source code/utils/envUtils.ts:62
↓ 32 callersFunctionpermissionRuleValueToString
( ruleValue: PermissionRuleValue, )
source code/utils/permissions/permissionRuleParser.ts:146
↓ 32 callersFunctiontruncate
( text: string, columns: number, position: 'start' | 'middle' | 'end', )
source code/ink/wrap-text.ts:17
↓ 31 callersMethodcleanup
()
source code/utils/ShellCommand.ts:94
↓ 31 callersFunctionresolveToCanonical
(name: string)
source code/tools/PowerShellTool/readOnlyValidation.ts:986
↓ 31 callersFunctionsendControlResponseSuccess
( message: SDKControlRequest, response?: Record<string, unknown>, )
source code/cli/print.ts:2738
↓ 31 callersFunctionuseNotifications
()
source code/context/notifications.tsx:40
↓ 30 callersFunctionextractTextContent
( blocks: readonly { readonly type: string }[], separator = '', )
source code/utils/messages.ts:2895
↓ 30 callersFunctionfindToolByName
(tools: Tools, name: string)
source code/Tool.ts:360
↓ 30 callersFunctionlogMCPError
(serverName: string, error: unknown)
source code/utils/log.ts:302
↓ 30 callersFunctionresolve
(requestId, behavior, fromServer)
source code/services/mcp/channelPermissions.ts:230
↓ 29 callersFunctioncreateBaseHookInput
( permissionMode?: string, sessionId?: string, // Typed narrowly (not ToolUseContext) so callers can pas
source code/utils/hooks.ts:303
↓ 29 callersFunctiondebug
(msg: string)
source code/bridge/bridgeApi.ts:71
↓ 29 callersMethodwrite
(message: StdoutMessage)
source code/cli/transports/SSETransport.ts:574
↓ 28 callersFunctiongetOAuthHeaders
(accessToken: string)
source code/utils/teleport/api.ts:278
↓ 28 callersFunctionisAutoMemoryEnabled
()
source code/memdir/paths.ts:32
↓ 28 callersFunctiontoolMatchesName
( tool: { name: string; aliases?: string[] }, name: string, )
source code/Tool.ts:350
↓ 27 callersMethodcancel
()
source code/utils/task/diskOutput.ts:139
↓ 27 callersFunctiongetCommandName
(cmd: CommandBase)
source code/types/command.ts:211
↓ 27 callersFunctionisFsInaccessible
(e: unknown)
source code/utils/errors.ts:188
↓ 27 callersMethodisSandboxingEnabled
()
source code/utils/sandbox/sandbox-adapter.ts:887
↓ 27 callersFunctionloadKnownMarketplacesConfig
()
source code/utils/plugins/marketplaceManager.ts:266
↓ 27 callersFunctiononChange
(autoCompactEnabled: boolean)
source code/components/Settings/Config.tsx:273
↓ 27 callersFunctionopenBrowser
(url: string)
source code/utils/browser.ts:41
↓ 27 callersFunctionwriteToMailbox
( recipientName: string, message: Omit<TeammateMessage, 'read'>, teamName?: string, )
source code/utils/teammateMailbox.ts:136
↓ 26 callersFunctionclearAllCaches
()
source code/utils/plugins/cacheUtils.ts:46
↓ 26 callersFunctioncliOk
(msg?: string)
source code/cli/exit.ts:29
↓ 26 callersMethodclose
* Closes the WebSocket connection.
source code/utils/mcpWebSocketTransport.ts:161
↓ 26 callersFunctionformatDuration
( ms: number, options?: { hideTrailingZeros?: boolean; mostSignificantOnly?: boolean }, )
source code/utils/format.ts:36
↓ 26 callersFunctiongetAgentName
()
source code/utils/teammate.ts:100
↓ 26 callersFunctiongetOauthAccountInfo
()
source code/utils/auth.ts:1617
↓ 26 callersFunctionuseExitOnCtrlCDWithKeybindings
( onExit?: () => void, onInterrupt?: () => boolean, isActive?: boolean, )
source code/hooks/useExitOnCtrlCDWithKeybindings.ts:20
↓ 25 callersFunctiongetTaskOutputPath
(taskId: string)
source code/utils/task/diskOutput.ts:74
↓ 25 callersFunctionisEnvDefinedFalsy
( envVar: string | boolean | undefined, )
source code/utils/envUtils.ts:41
↓ 25 callersFunctionrm
(fsPath, options)
source code/utils/fsOperations.ts:412
↓ 25 callersMethodshift
* Shift full-width rows within [top, bottom] by n. n > 0 = up. Mirrors * what DECSTBM + SU/SD does to the terminal. Paired with blit() to reuse
source code/ink/output.ts:221
↓ 24 callersMethodadd
(uuid: string)
source code/bridge/bridgeMessaging.ts:442
↓ 24 callersFunctionisDigit
(c: string)
source code/utils/bash/bashParser.ts:236
↓ 24 callersFunctionsendControlResponseError
( message: SDKControlRequest, errorMessage: string, )
source code/cli/print.ts:2752
↓ 23 callersFunctionf
()
source code/costHook.ts:12
↓ 23 callersFunctiongetAppState
()
source code/tools/SkillTool/SkillTool.ts:786
↓ 23 callersFunctiongetCanonicalName
(fullModelName: ModelName)
source code/utils/model/model.ts:281
↓ 23 callersFunctiongetProjectDir
(cwd: string)
source code/utils/cachePaths.ts:23
↓ 23 callersFunctionisOperator
(part: ParseEntry | undefined, op: string)
source code/utils/bash/commands.ts:794
↓ 23 callersFunctionopen
(sock)
source code/upstreamproxy/relay.ts:195
↓ 23 callersFunctionresolveValue
(v: Value, ownerSize: number)
source code/native-ts/yoga-layout/index.ts:99
↓ 23 callersFunctiontooComplex
(node: Node)
source code/utils/bash/ast.ts:2035
↓ 22 callersFunctioncheckAndRefreshOAuthTokenIfNeeded
( retryCount = 0, force = false, )
source code/utils/auth.ts:1429
↓ 22 callersFunctioncheckHasTrustDialogAccepted
()
source code/utils/config.ts:699
↓ 22 callersFunctioncreateSystemMessage
( content: string, level: SystemMessageLevel, toolUseID?: string, preventContinuation?: boolean, )
source code/utils/messages.ts:4337
↓ 22 callersFunctiongetProjectRoot
()
source code/bootstrap/state.ts:513
↓ 22 callersFunctiongetSpanId
(span: Span)
source code/utils/telemetry/sessionTracing.ts:83
↓ 22 callersFunctionisTeammate
()
source code/utils/teammate.ts:127
↓ 22 callersFunctiononSelect
(value: string)
source code/components/ClaudeCodeHint/PluginHintMenu.tsx:28
↓ 21 callersFunctionapplyPermissionUpdate
( context: ToolPermissionContext, update: PermissionUpdate, )
source code/utils/permissions/PermissionUpdate.ts:57
↓ 21 callersFunctioncheckStatsigFeatureGate_CACHED_MAY_BE_STALE
( gate: string, )
source code/services/analytics/growthbook.ts:806
↓ 21 callersFunctionenqueuePendingNotification
(command: QueuedCommand)
source code/utils/messageQueueManager.ts:144
↓ 21 callersFunctionexitWithError
(message: string)
source code/utils/process.ts:40
↓ 21 callersFunctionextractLastJsonStringField
( text: string, key: string, )
source code/utils/sessionStoragePortable.ts:84
↓ 21 callersMethodgetComputedHeight
()
source code/ink/layout/yoga.ts:122
↓ 21 callersFunctiongetServerKey
( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, )
source code/services/mcp/auth.ts:327
↓ 21 callersFunctiongetSessionIdFromLog
(log: LogOption)
source code/utils/sessionStorage.ts:2929
↓ 21 callersFunctionnormalize
(p: string)
source code/utils/plugins/pluginOptionsStorage.ts:332
↓ 21 callersFunctionsafeResolvePath
( fs: FsOperations, filePath: string, )
source code/utils/fsOperations.ts:140
↓ 21 callersFunctiontryParseShellCommand
( cmd: string, env?: | Record<string, string | undefined> | ((key: string) => string | undefined),
source code/utils/bash/shellQuote.ts:26
↓ 20 callersFunctioncreateSignal
()
source code/utils/signal.ts:29
← previousnext →101–200 of 11,462, ranked by callers