MCPcopy Create free account

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

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

↓ 52 callersFunctiongracefulShutdown
( exitCode = 0, reason: ExitReason = 'other', options?: { getAppState?: () => AppState setAppSta
src/utils/gracefulShutdown.ts:391
↓ 52 callersFunctionisAgentSwarmsEnabled
()
src/utils/agentSwarmsEnabled.ts:24
↓ 52 callersFunctionuseSetAppState
()
src/state/AppState.tsx:170
↓ 51 callersFunctionleaf
(P: ParseState, type: string, tok: Token)
src/utils/bash/bashParser.ts:702
↓ 51 callersMethodreadFile
* Reads a file with caching. Returns both content and encoding. * Cache key includes file path and modification time for automatic invalidation.
src/utils/fileReadCache.ts:22
↓ 51 callersFunctionrestoreLex
(L: Lexer, s: LexSave)
src/utils/bash/bashParser.ts:759
↓ 49 callersFunctionextractTag
(html: string, tagName: string)
src/utils/messages.ts:633
↓ 49 callersFunctionformatTokens
(count: number)
src/utils/format.ts:133
↓ 48 callersFunctionerrorMessage
(err: ImportTokenError, codeUrl: string)
src/commands/remote-setup/remote-setup.tsx:62
↓ 48 callersFunctiont3
(e4, t4)
src/server/web/public/terminal.js:2455
↓ 48 callersFunctiontruncateToWidth
(text: string, maxWidth: number)
src/utils/truncate.ts:63
↓ 47 callersFunctionescapeHtml
(str: string)
web/lib/export/html.ts:4
↓ 47 callersFunctionformatNumber
(number: number)
src/utils/format.ts:124
↓ 47 callersFunctionuseTheme
()
src/components/design-system/ThemeProvider.tsx:122
↓ 46 callersFunctionformatFileSize
(sizeInBytes: number)
src/utils/format.ts:9
↓ 46 callersMethodmarkDirty
()
src/native-ts/yoga-layout/index.ts:577
↓ 46 callersFunctionregisterCleanup
(cleanupFn: () => Promise<void>)
src/utils/cleanupRegistry.ts:14
↓ 46 callersFunctionwrapMessagesInSystemReminder
( messages: UserMessage[], )
src/utils/messages.ts:3101
↓ 45 callersMethodemit
(type: string | symbol, ...args: unknown[])
src/ink/events/emitter.ts:15
↓ 45 callersMethodenqueue
* Enqueue a patch to PUT /worker. Coalesces with any existing pending * patch. Fire-and-forget — callers don't need to await.
src/cli/transports/WorkerStateUploader.ts:43
↓ 45 callersFunctionisDefined
(n: number)
src/native-ts/yoga-layout/index.ts:108
↓ 45 callersFunctionsanitizeToolNameForAnalytics
( toolName: string, )
src/services/analytics/metadata.ts:70
↓ 44 callersMethodclose
* Clean up connections gracefully
src/cli/remoteIO.ts:247
↓ 44 callersFunctioni3
(e4, i4)
src/server/web/public/terminal.js:4829
↓ 44 callersFunctionisFastModeEnabled
()
src/utils/fastMode.ts:38
↓ 44 callersFunctionpathExists
(path: string)
src/utils/file.ts:39
↓ 44 callersFunctionqueryCheckpoint
(name: string)
src/utils/queryProfiler.ts:69
↓ 43 callersMethoddispose
()
scripts/types.d.ts:74
↓ 43 callersFunctionnextToken
* Scan next token. Context-sensitive: `cmd` mode treats [ as operator (test * command start), `arg` mode treats [ as word char (glob/subscript).
src/utils/bash/bashParser.ts:302
↓ 43 callersMethodpop
()
src/server/web/public/terminal.js:2394
↓ 42 callersFunctioncliError
(msg?: string)
src/cli/exit.ts:19
↓ 42 callersFunctiongracefulShutdownSync
( exitCode = 0, reason: ExitReason = 'other', options?: { getAppState?: () => AppState setAppSta
src/utils/gracefulShutdown.ts:336
↓ 41 callersFunctioncsi
(...args: (string | number)[])
src/ink/termio/csi.ts:45
↓ 40 callersFunctionbuildTool
(def: D)
src/Tool.ts:783
↓ 40 callersFunctioncreateAssistantAPIErrorMessage
({ content, apiError, error, errorDetails, }: { content: string apiError?: AssistantMessage['apiEr
src/utils/messages.ts:435
↓ 40 callersFunctiononCancel
()
src/screens/REPL.tsx:2106
↓ 40 callersMethodpost
(path: string, body: unknown, opts?: RequestOptions)
web/lib/api/client.ts:221
↓ 40 callersFunctionupdateTaskState
( taskId: string, setAppState: SetAppState, updater: (task: T) => T, )
src/utils/task/framework.ts:48
↓ 40 callersFunctionuseInput
(inputHandler: Handler, options: Options = {})
src/ink/hooks/use-input.ts:42
↓ 39 callersFunctiongetDisplayPath
(filePath: string)
src/utils/file.ts:155
↓ 39 callersFunctiongetSecureStorage
()
src/utils/secureStorage/index.ts:9
↓ 39 callersFunctionlog
(message: string, ...args: unknown[])
src/utils/claudeInChrome/chromeNativeHost.ts:34
↓ 38 callersMethodcreate
(base?: I)
src/types/generated/google/protobuf/timestamp.ts:185
↓ 38 callersFunctiononStateChange
(state, detail)
src/cli/print.ts:3958
↓ 38 callersMethodstopImmediatePropagation
()
src/ink/events/event.ts:8
↓ 37 callersMethodkill
()
src/utils/ShellCommand.ts:345
↓ 37 callersFunctionmaybe
(label: string, f: () => Promise<A[]>)
src/utils/attachments.ts:1005
↓ 37 callersMethodreset
()
src/utils/sandbox/sandbox-adapter.ts:921
↓ 36 callersMethodcancel
(e3, t3)
src/server/web/public/terminal.js:786
↓ 36 callersFunctiongetIsRemoteMode
()
src/bootstrap/state.ts:1631
↓ 36 callersFunctiongetSubscriptionType
()
src/utils/auth.ts:1662
↓ 36 callersFunctionparseUserSpecifiedModel
( modelInput: ModelName | ModelAlias, )
src/utils/model/model.ts:445
↓ 36 callersFunctionroughTokenCountEstimation
( content: string, bytesPerToken: number = 4, )
src/services/tokenEstimation.ts:203
↓ 36 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
src/ink/output.ts:219
↓ 34 callersFunctionasSystemPrompt
(value: readonly string[])
src/utils/systemPromptType.ts:12
↓ 34 callersFunctiongetModelStrings
()
src/utils/model/modelStrings.ts:136
↓ 34 callersFunctiongetProject
()
src/utils/sessionStorage.ts:443
↓ 34 callersFunctiongetTeamName
(teamContext?: { teamName: string })
src/utils/teammate.ts:111
↓ 34 callersFunctionsaveLex
(L: Lexer)
src/utils/bash/bashParser.ts:756
↓ 34 callersFunctionuseShortcutDisplay
( action: string, context: KeybindingContextName, fallback: string, )
src/keybindings/useShortcutDisplay.ts:29
↓ 33 callersFunctioncreatePermissionRequestMessage
(params: { request_id: string agent_id: string tool_name: string tool_use_id: string description: st
src/utils/teammateMailbox.ts:488
↓ 33 callersFunctiongetAppState
()
src/commands/commit.ts:71
↓ 33 callersFunctiongetMainLoopModel
()
src/utils/model/model.ts:92
↓ 32 callersFunctioncreateAbortController
( maxListeners: number = DEFAULT_MAX_LISTENERS, )
src/utils/abortController.ts:16
↓ 32 callersFunctionisBareMode
()
src/utils/envUtils.ts:60
↓ 32 callersFunctionpermissionRuleValueToString
( ruleValue: PermissionRuleValue, )
src/utils/permissions/permissionRuleParser.ts:144
↓ 32 callersFunctionresolve
(requestId, behavior, fromServer)
src/services/mcp/channelPermissions.ts:228
↓ 32 callersMethodtriggerDataEvent
(e3, t3 = false)
src/server/web/public/terminal.js:5541
↓ 32 callersFunctiontruncate
( text: string, columns: number, position: 'start' | 'middle' | 'end', )
src/ink/wrap-text.ts:15
↓ 31 callersMethodcleanup
()
src/utils/ShellCommand.ts:92
↓ 31 callersFunctionresolveToCanonical
(name: string)
src/tools/PowerShellTool/readOnlyValidation.ts:984
↓ 31 callersFunctionsendControlResponseSuccess
( message: SDKControlRequest, response?: Record<string, unknown>, )
src/cli/print.ts:2736
↓ 31 callersFunctionuseNotifications
()
src/context/notifications.tsx:38
↓ 30 callersFunctionextractTextContent
( blocks: readonly { readonly type: string }[], separator = '', )
src/utils/messages.ts:2893
↓ 30 callersFunctionfindToolByName
(tools: Tools, name: string)
src/Tool.ts:358
↓ 30 callersMethodgetWidth
()
src/server/web/public/terminal.js:1709
↓ 30 callersFunctionlogMCPError
(serverName: string, error: unknown)
src/utils/log.ts:300
↓ 29 callersFunctioncreateBaseHookInput
( permissionMode?: string, sessionId?: string, // Typed narrowly (not ToolUseContext) so callers can pas
src/utils/hooks.ts:301
↓ 29 callersFunctiondebug
(msg: string)
src/bridge/bridgeApi.ts:69
↓ 29 callersMethodwrite
(message: StdoutMessage)
src/cli/transports/SSETransport.ts:572
↓ 28 callersFunctiongetOAuthHeaders
(accessToken: string)
src/utils/teleport/api.ts:276
↓ 28 callersFunctionisAutoMemoryEnabled
()
src/memdir/paths.ts:30
↓ 28 callersFunctiontoolMatchesName
( tool: { name: string; aliases?: string[] }, name: string, )
src/Tool.ts:348
↓ 27 callersMethodcreateInstance
(e3, ...t3)
src/server/web/public/terminal.js:5637
↓ 27 callersFunctiongetCommandName
(cmd: CommandBase)
src/types/command.ts:209
↓ 27 callersFunctionisFsInaccessible
(e: unknown)
src/utils/errors.ts:186
↓ 27 callersMethodisSandboxingEnabled
()
src/utils/sandbox/sandbox-adapter.ts:885
↓ 27 callersFunctionloadKnownMarketplacesConfig
()
src/utils/plugins/marketplaceManager.ts:264
↓ 27 callersFunctiononChange
(autoCompactEnabled: boolean)
src/components/Settings/Config.tsx:271
↓ 27 callersFunctionopenBrowser
(url: string)
src/utils/browser.ts:39
↓ 27 callersMethodregisterEscHandler
(e3, t3)
src/server/web/public/terminal.js:5338
↓ 27 callersFunctionwriteToMailbox
( recipientName: string, message: Omit<TeammateMessage, 'read'>, teamName?: string, )
src/utils/teammateMailbox.ts:134
↓ 26 callersFunctionc
(e3, t3)
src/server/web/public/terminal.js:1216
↓ 26 callersFunctionclearAllCaches
()
src/utils/plugins/cacheUtils.ts:44
↓ 26 callersFunctioncliOk
(msg?: string)
src/cli/exit.ts:27
↓ 26 callersMethodclose
* Closes the WebSocket connection.
src/utils/mcpWebSocketTransport.ts:159
↓ 26 callersFunctionf
(e3, t3, i3, s3)
src/server/web/public/terminal.js:7948
↓ 26 callersFunctionformatDuration
( ms: number, options?: { hideTrailingZeros?: boolean; mostSignificantOnly?: boolean }, )
src/utils/format.ts:34
↓ 26 callersFunctiongetAgentName
()
src/utils/teammate.ts:98
↓ 26 callersFunctiongetOauthAccountInfo
()
src/utils/auth.ts:1615
← previousnext →101–200 of 13,048, ranked by callers