Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/freecodexyz/free-code
/ functions
Functions
11,548 in github.com/freecodexyz/free-code
⨍
Functions
11,548
◇
Types & classes
343
↓ 43 callers
Function
onCancel
()
src/screens/REPL.tsx:2109
↓ 42 callers
Function
buildTool
(def: D)
src/Tool.ts:783
↓ 42 callers
Function
cliError
(msg?: string)
src/cli/exit.ts:19
↓ 42 callers
Function
gracefulShutdownSync
( exitCode = 0, reason: ExitReason = 'other', options?: { getAppState?: () => AppState setAppSta
src/utils/gracefulShutdown.ts:336
↓ 41 callers
Function
csi
(...args: (string | number)[])
src/ink/termio/csi.ts:45
↓ 41 callers
Function
updateTaskState
( taskId: string, setAppState: SetAppState, updater: (task: T) => T, )
src/utils/task/framework.ts:48
↓ 40 callers
Function
createAssistantAPIErrorMessage
({ content, apiError, error, errorDetails, }: { content: string apiError?: AssistantMessage['apiEr
src/utils/messages.ts:435
↓ 40 callers
Function
useInput
(inputHandler: Handler, options: Options = {})
src/ink/hooks/use-input.ts:42
↓ 39 callers
Function
getDisplayPath
(filePath: string)
src/utils/file.ts:155
↓ 39 callers
Function
getSecureStorage
()
src/utils/secureStorage/index.ts:9
↓ 39 callers
Function
log
(message: string, ...args: unknown[])
src/utils/claudeInChrome/chromeNativeHost.ts:34
↓ 38 callers
Method
emit
(type: string | symbol, ...args: unknown[])
src/ink/events/emitter.ts:15
↓ 38 callers
Function
getModelStrings
()
src/utils/model/modelStrings.ts:136
↓ 38 callers
Function
onStateChange
(state, detail)
src/cli/print.ts:3958
↓ 37 callers
Function
maybe
(label: string, f: () => Promise<A[]>)
src/utils/attachments.ts:1005
↓ 37 callers
Method
read
()
src/cli/structuredIO.ts:215
↓ 36 callers
Method
close
* Clean up connections gracefully
src/cli/remoteIO.ts:247
↓ 36 callers
Function
getIsRemoteMode
()
src/bootstrap/state.ts:1631
↓ 36 callers
Function
parseUserSpecifiedModel
( modelInput: ModelName | ModelAlias, )
src/utils/model/model.ts:484
↓ 36 callers
Method
readFile
* 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
↓ 36 callers
Function
roughTokenCountEstimation
( content: string, bytesPerToken: number = 4, )
src/services/tokenEstimation.ts:203
↓ 36 callers
Method
stopImmediatePropagation
()
src/ink/events/event.ts:8
↓ 35 callers
Function
getSubscriptionType
()
src/utils/auth.ts:1730
↓ 35 callers
Method
kill
()
src/utils/ShellCommand.ts:345
↓ 34 callers
Function
asSystemPrompt
(value: readonly string[])
src/utils/systemPromptType.ts:12
↓ 34 callers
Function
getProject
()
src/utils/sessionStorage.ts:443
↓ 34 callers
Function
getTeamName
(teamContext?: { teamName: string })
src/utils/teammate.ts:111
↓ 34 callers
Function
saveLex
(L: Lexer)
src/utils/bash/bashParser.ts:756
↓ 34 callers
Function
useShortcutDisplay
( action: string, context: KeybindingContextName, fallback: string, )
src/keybindings/useShortcutDisplay.ts:29
↓ 33 callers
Function
createPermissionRequestMessage
(params: { request_id: string agent_id: string tool_name: string tool_use_id: string description: st
src/utils/teammateMailbox.ts:488
↓ 33 callers
Function
getAppState
()
src/commands/commit.ts:71
↓ 33 callers
Function
getMainLoopModel
()
src/utils/model/model.ts:95
↓ 33 callers
Method
read
()
src/utils/claudeInChrome/chromeNativeHost.ts:501
↓ 32 callers
Function
createAbortController
( maxListeners: number = DEFAULT_MAX_LISTENERS, )
src/utils/abortController.ts:16
↓ 32 callers
Method
end
()
src/utils/telemetry/sessionTracing.ts:15
↓ 32 callers
Function
isBareMode
()
src/utils/envUtils.ts:60
↓ 32 callers
Function
permissionRuleValueToString
( ruleValue: PermissionRuleValue, )
src/utils/permissions/permissionRuleParser.ts:144
↓ 32 callers
Function
resolve
(requestId, behavior, fromServer)
src/services/mcp/channelPermissions.ts:228
↓ 32 callers
Function
truncate
( text: string, columns: number, position: 'start' | 'middle' | 'end', )
src/ink/wrap-text.ts:15
↓ 31 callers
Method
cleanup
()
src/utils/ShellCommand.ts:92
↓ 31 callers
Function
resolveToCanonical
(name: string)
src/tools/PowerShellTool/readOnlyValidation.ts:984
↓ 31 callers
Function
sendControlResponseSuccess
( message: SDKControlRequest, response?: Record<string, unknown>, )
src/cli/print.ts:2736
↓ 31 callers
Function
useNotifications
()
src/context/notifications.tsx:38
↓ 30 callers
Function
extractTextContent
( blocks: readonly { readonly type: string }[], separator = '', )
src/utils/messages.ts:2893
↓ 30 callers
Function
findToolByName
(tools: Tools, name: string)
src/Tool.ts:358
↓ 30 callers
Function
logMCPError
(serverName: string, error: unknown)
src/utils/log.ts:300
↓ 29 callers
Function
createBaseHookInput
( permissionMode?: string, sessionId?: string, // Typed narrowly (not ToolUseContext) so callers can pas
src/utils/hooks.ts:301
↓ 29 callers
Function
debug
(msg: string)
src/bridge/bridgeApi.ts:69
↓ 29 callers
Method
write
(message: StdoutMessage)
src/cli/transports/SSETransport.ts:572
↓ 28 callers
Function
getOAuthHeaders
(accessToken: string)
src/utils/teleport/api.ts:276
↓ 28 callers
Function
isAutoMemoryEnabled
()
src/memdir/paths.ts:30
↓ 28 callers
Function
openBrowser
(url: string)
src/utils/browser.ts:39
↓ 28 callers
Function
toolMatchesName
( tool: { name: string; aliases?: string[] }, name: string, )
src/Tool.ts:348
↓ 27 callers
Method
cancel
()
src/utils/task/diskOutput.ts:137
↓ 27 callers
Function
getCommandName
(cmd: CommandBase)
src/types/command.ts:209
↓ 27 callers
Function
isFsInaccessible
(e: unknown)
src/utils/errors.ts:186
↓ 27 callers
Method
isSandboxingEnabled
()
src/utils/sandbox/sandbox-adapter.ts:885
↓ 27 callers
Function
loadKnownMarketplacesConfig
()
src/utils/plugins/marketplaceManager.ts:264
↓ 27 callers
Function
onChange
(autoCompactEnabled: boolean)
src/components/Settings/Config.tsx:271
↓ 27 callers
Function
writeToMailbox
( recipientName: string, message: Omit<TeammateMessage, 'read'>, teamName?: string, )
src/utils/teammateMailbox.ts:134
↓ 26 callers
Function
clearAllCaches
()
src/utils/plugins/cacheUtils.ts:44
↓ 26 callers
Function
cliOk
(msg?: string)
src/cli/exit.ts:27
↓ 26 callers
Method
close
* Closes the WebSocket connection.
src/utils/mcpWebSocketTransport.ts:159
↓ 26 callers
Function
formatDuration
( ms: number, options?: { hideTrailingZeros?: boolean; mostSignificantOnly?: boolean }, )
src/utils/format.ts:34
↓ 26 callers
Function
getAgentName
()
src/utils/teammate.ts:98
↓ 26 callers
Function
getOauthAccountInfo
()
src/utils/auth.ts:1683
↓ 26 callers
Function
useExitOnCtrlCDWithKeybindings
( onExit?: () => void, onInterrupt?: () => boolean, isActive?: boolean, )
src/hooks/useExitOnCtrlCDWithKeybindings.ts:18
↓ 25 callers
Method
append
(content: string)
src/utils/task/diskOutput.ts:110
↓ 25 callers
Function
getTaskOutputPath
(taskId: string)
src/utils/task/diskOutput.ts:72
↓ 25 callers
Function
rm
(fsPath, options)
src/utils/fsOperations.ts:410
↓ 25 callers
Method
shift
* 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
↓ 24 callers
Method
add
(uuid: string)
src/bridge/bridgeMessaging.ts:440
↓ 24 callers
Method
enqueue
(value: T)
src/utils/stream.ts:38
↓ 24 callers
Function
isDigit
(c: string)
src/utils/bash/bashParser.ts:234
↓ 24 callers
Function
isEnvDefinedFalsy
( envVar: string | boolean | undefined, )
src/utils/envUtils.ts:39
↓ 24 callers
Function
sendControlResponseError
( message: SDKControlRequest, errorMessage: string, )
src/cli/print.ts:2750
↓ 23 callers
Function
createSystemMessage
( content: string, level: SystemMessageLevel, toolUseID?: string, preventContinuation?: boolean, )
src/utils/messages.ts:4335
↓ 23 callers
Function
f
()
src/costHook.ts:10
↓ 23 callers
Function
getAppState
()
src/tools/SkillTool/SkillTool.ts:784
↓ 23 callers
Function
getProjectDir
(cwd: string)
src/utils/cachePaths.ts:21
↓ 23 callers
Function
isOperator
(part: ParseEntry | undefined, op: string)
src/utils/bash/commands.ts:792
↓ 23 callers
Function
open
(sock)
src/upstreamproxy/relay.ts:193
↓ 23 callers
Function
resolveValue
(v: Value, ownerSize: number)
src/native-ts/yoga-layout/index.ts:97
↓ 23 callers
Function
tooComplex
(node: Node)
src/utils/bash/ast.ts:2033
↓ 22 callers
Function
checkAndRefreshOAuthTokenIfNeeded
( retryCount = 0, force = false, )
src/utils/auth.ts:1484
↓ 22 callers
Function
checkHasTrustDialogAccepted
()
src/utils/config.ts:717
↓ 22 callers
Function
formatSSE
* Formats data as Server-Sent Events (SSE) format. * @param event - The event type * @param data - The data payload * @returns Formatted SSE string
src/services/api/codex-fetch-adapter.ts:279
↓ 22 callers
Function
getCanonicalName
(fullModelName: ModelName)
src/utils/model/model.ts:296
↓ 22 callers
Function
getProjectRoot
()
src/bootstrap/state.ts:511
↓ 22 callers
Function
isTeammate
()
src/utils/teammate.ts:125
↓ 22 callers
Function
onSelect
(value: string)
src/components/ClaudeCodeHint/PluginHintMenu.tsx:26
↓ 21 callers
Function
applyPermissionUpdate
( context: ToolPermissionContext, update: PermissionUpdate, )
src/utils/permissions/PermissionUpdate.ts:55
↓ 21 callers
Function
enqueuePendingNotification
(command: QueuedCommand)
src/utils/messageQueueManager.ts:142
↓ 21 callers
Function
exitWithError
(message: string)
src/utils/process.ts:38
↓ 21 callers
Function
extractLastJsonStringField
( text: string, key: string, )
src/utils/sessionStoragePortable.ts:82
↓ 21 callers
Method
getComputedHeight
()
src/ink/layout/yoga.ts:120
↓ 21 callers
Function
getServerKey
( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, )
src/services/mcp/auth.ts:325
↓ 21 callers
Function
getSessionIdFromLog
(log: LogOption)
src/utils/sessionStorage.ts:2927
↓ 21 callers
Function
normalize
(p: string)
src/utils/plugins/pluginOptionsStorage.ts:330
↓ 21 callers
Function
safeResolvePath
( fs: FsOperations, filePath: string, )
src/utils/fsOperations.ts:138
← previous
next →
101–200 of 11,548, ranked by callers