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
↓ 1 callers
Function
transition
( state: CommandState, input: string, ctx: TransitionContext, )
src/vim/transitions.ts:59
↓ 1 callers
Function
translateCodexStreamToAnthropic
* Translates Codex streaming response to Anthropic format. * Converts Codex SSE events into Anthropic-compatible streaming events. * @param codexRes
src/services/api/codex-fetch-adapter.ts:290
↓ 1 callers
Function
translateMessages
* Translates Anthropic message format to Codex input format. * Handles text content, tool results, and image attachments. * @param anthropicMessages
src/services/api/codex-fetch-adapter.ts:128
↓ 1 callers
Function
translateToCodexBody
* Translates a complete Anthropic API request body to Codex format. * @param anthropicBody - The Anthropic request body to translate * @returns Obje
src/services/api/codex-fetch-adapter.ts:222
↓ 1 callers
Function
translateTools
* Translates Anthropic tool definitions to Codex format. * @param anthropicTools - Array of Anthropic tool definitions * @returns Array of Codex-com
src/services/api/codex-fetch-adapter.ts:110
↓ 1 callers
Function
traverse
(node, depth, parentId)
src/components/ui/TreeSelect.tsx:160
↓ 1 callers
Function
treeify
(obj: TreeNode, options: TreeifyOptions = {})
src/utils/treeify.ts:39
↓ 1 callers
Function
triggerFastModeCooldown
( resetTimestamp: number, reason: CooldownReason, )
src/utils/fastMode.ts:214
↓ 1 callers
Function
trimTrailingWhitespace
(s: string)
src/utils/git/gitConfigParser.ts:186
↓ 1 callers
Function
truncateCommand
(command: string)
src/tools/TaskStopTool/UI.tsx:12
↓ 1 callers
Function
truncateContentBlocks
( blocks: ContentBlockParam[], maxChars: number, )
src/utils/mcpValidation.ts:94
↓ 1 callers
Function
truncateForPreview
(input: unknown)
src/services/mcp/channelPermissions.ts:160
↓ 1 callers
Function
truncateLine
(text: string, maxLen: number)
src/commands/copy/copy.tsx:95
↓ 1 callers
Function
truncateMcpContent
( content: MCPToolResult, )
src/utils/mcpValidation.ts:180
↓ 1 callers
Function
truncateSessionMemoryForCompact
(content: string)
src/services/SessionMemory/prompts.ts:256
↓ 1 callers
Function
truncateString
(content: string, maxChars: number)
src/utils/mcpValidation.ts:87
↓ 1 callers
Function
truncateTag
* Truncate a tag to fit within maxWidth, accounting for padding and hash prefix
src/components/TagTabs.tsx:43
↓ 1 callers
Function
truncateToLines
(text: string, maxLines: number)
src/utils/stringUtils.ts:229
↓ 1 callers
Function
truncateToTokens
* Truncate content to roughly maxTokens, keeping the head. roughTokenCountEstimation * uses ~4 chars/token (its default bytesPerToken), so char budge
src/services/compact/compact.ts:1666
↓ 1 callers
Function
truncateToolInputValue
(value: unknown, depth = 0)
src/services/analytics/metadata.ts:242
↓ 1 callers
Function
tryAcquireComputerUseLock
()
src/utils/computerUse/computerUseLock.ts:148
↓ 1 callers
Function
tryAcquireConsolidationLock
()
src/services/autoDream/consolidationLock.ts:46
↓ 1 callers
Function
tryFlattenJson
(content: string)
src/tools/MCPTool/UI.tsx:298
↓ 1 callers
Function
tryGetInstalledAppNames
* Enumerate installed apps, timed. Fails soft — if Spotlight is slow or * claude-swift throws, the tool description just omits the list. Resolution
src/utils/computerUse/mcpServer.ts:25
↓ 1 callers
Function
tryGetPDFReference
( filename: string, )
src/utils/attachments.ts:2986
↓ 1 callers
Function
tryJPEGConversion
( context: ImageCompressionContext, quality: number, sharp: SharpFunction, )
src/utils/imageResizer.ts:725
↓ 1 callers
Function
tryJsonFormatContent
(content: string)
src/components/shell/OutputLine.tsx:33
↓ 1 callers
Function
tryPalettePNG
( context: ImageCompressionContext, sharp: SharpFunction, )
src/utils/imageResizer.ts:702
↓ 1 callers
Function
tryParseBraceExpr
(P: ParseState)
src/utils/bash/bashParser.ts:2215
↓ 1 callers
Function
tryParseBraceLikeCat
(P: ParseState)
src/utils/bash/bashParser.ts:2268
↓ 1 callers
Function
tryProgressiveResizing
( context: ImageCompressionContext, sharp: SharpFunction, )
src/utils/imageResizer.ts:646
↓ 1 callers
Function
tryQuoteShellArgs
(args: unknown[])
src/utils/bash/shellQuote.ts:47
↓ 1 callers
Function
tryReadImageFromPath
( text: string, )
src/utils/imagePaste.ts:351
↓ 1 callers
Function
tryRenderShutdownMessage
(content: string)
src/components/messages/ShutdownMessage.tsx:95
↓ 1 callers
Function
tryRenderTaskAssignmentMessage
(content: string)
src/components/messages/TaskAssignmentMessage.tsx:58
↓ 1 callers
Function
trySlackSendCompact
(output: string | MCPToolResult, input: unknown)
src/tools/MCPTool/UI.tsx:372
↓ 1 callers
Method
tryStart
* Start a query. Returns the generation number on success, * or null if a query is already running (concurrent guard). * Accepts transitions fro
src/utils/QueryGuard.ts:61
↓ 1 callers
Function
tryUnwrapTextPayload
(content: string)
src/tools/MCPTool/UI.tsx:327
↓ 1 callers
Function
turnDiffToDiffData
(turn: TurnDiff)
src/components/diff/DiffDialog.tsx:30
↓ 1 callers
Function
typeViaClipboard
* Port of Cowork's `typeViaClipboard`. Sequence: * 1. Save the user's clipboard. * 2. Write our text. * 3. READ-BACK VERIFY — clipboard write
src/utils/computerUse/executor.ts:180
↓ 1 callers
Function
unescapeRuleContent
(content: string)
src/utils/permissions/permissionRuleParser.ts:74
↓ 1 callers
Function
unhideComputerUseApps
( bundleIds: readonly string[], )
src/utils/computerUse/executor.ts:652
↓ 1 callers
Function
uninstallPlugin
( plugin: string, scope: InstallableScope = 'user', keepData = false, )
src/services/plugins/pluginCliCommands.ts:153
↓ 1 callers
Function
unlinkSync
(path: string)
src/utils/fsOperations.ts:494
↓ 1 callers
Function
unregisterAgentForeground
(taskId: string, setAppState: SetAppState)
src/tasks/LocalAgentTask/LocalAgentTask.tsx:657
↓ 1 callers
Function
unregisterEscHotkey
()
src/utils/computerUse/escHotkey.ts:40
↓ 1 callers
Function
unregisterLeaderSetToolPermissionContext
()
src/utils/swarm/leaderPermissionBridge.ts:52
↓ 1 callers
Function
unregisterLeaderToolUseConfirmQueue
()
src/utils/swarm/leaderPermissionBridge.ts:38
↓ 1 callers
Function
unregisterPermissionCallback
(requestId: string)
src/hooks/useSwarmPermissionPoller.ts:94
↓ 1 callers
Function
unregisterTeamForSessionCleanup
(teamName: string)
src/utils/swarm/teamHelpers.ts:568
↓ 1 callers
Function
unsetEffortLevel
()
src/commands/effort/effort.tsx:76
↓ 1 callers
Method
unsetMeasureFunc
()
src/ink/layout/yoga.ts:98
↓ 1 callers
Function
unwrapCcrProxyUrl
(url: string)
src/services/mcp/config.ts:182
↓ 1 callers
Function
unwrapResults
(text: string)
src/utils/suggestions/slackChannelSuggestions.ts:73
↓ 1 callers
Function
upOrHistoryUp
()
src/hooks/useTextInput.ts:269
↓ 1 callers
Function
update
()
src/components/PromptInput/PromptInputFooterLeftSide.tsx:86
↓ 1 callers
Function
update
()
src/cli/update.ts:30
↓ 1 callers
Function
updateAgentFile
( agent: AgentDefinition, newWhenToUse: string, newTools: string[] | undefined, newSystemPrompt: strin
src/components/agents/agentFileUtils.ts:208
↓ 1 callers
Function
updateAgentSummary
(taskId: string, summary: string, setAppState: SetAppState)
src/tasks/LocalAgentTask/LocalAgentTask.tsx:359
↓ 1 callers
Function
updateDeepLinkTerminalPreference
()
src/utils/deepLink/terminalPreference.ts:38
↓ 1 callers
Function
updateGithubRepoPathMapping
()
src/utils/githubRepoPathMapping.ts:23
↓ 1 callers
Function
updateInstallationPathOnDisk
( pluginId: string, scope: PersistableScope, projectPath: string | undefined, newPath: string, newVe
src/utils/plugins/installedPluginsManager.ts:537
↓ 1 callers
Function
updateLatest
( channelOrVersion: string, forceReinstall: boolean = false, )
src/utils/nativeInstaller/installer.ts:495
↓ 1 callers
Function
updateMagicDoc
* Update a single Magic Doc
src/services/MagicDocs/magicDocs.ts:114
↓ 1 callers
Function
updatePlugin
* Update a single plugin's installations. * Returns the plugin ID if any installation was updated, null otherwise.
src/utils/plugins/pluginAutoupdate.ts:108
↓ 1 callers
Function
updatePluginCli
( plugin: string, scope: PluginScope, )
src/services/plugins/pluginCliCommands.ts:300
↓ 1 callers
Function
updatePlugins
* Update plugins from marketplaces that have autoUpdate enabled. * Returns the list of plugin IDs that were updated.
src/utils/plugins/pluginAutoupdate.ts:206
↓ 1 callers
Function
updateSelection
( s: SelectionState, col: number, row: number, )
src/ink/selection.ts:100
↓ 1 callers
Function
updateSessionActivity
(sessionId: string, activity: SessionActivity)
src/bridge/bridgeUI.ts:498
↓ 1 callers
Function
updateSessionTitle
( sessionId: string, title: string, )
src/utils/teleport/api.ts:425
↓ 1 callers
Function
updateStatusDisplay
Refresh the inline status display. Shows idle or active depending on state.
src/bridge/bridgeMain.ts:372
↓ 1 callers
Function
updateSymlink
( symlinkPath: string, targetPath: string, )
src/utils/nativeInstaller/installer.ts:639
↓ 1 callers
Function
uploadBriefAttachment
( fullPath: string, size: number, ctx: BriefUploadContext, )
src/tools/BriefTool/upload.ts:92
↓ 1 callers
Function
uploadSessionFiles
( files: Array<{ path: string; relativePath: string }>, config: FilesApiConfig, concurrency: number = DE
src/services/api/filesApi.ts:570
↓ 1 callers
Function
uploadTeamMemory
( state: SyncState, repoSlug: string, entries: Record<string, string>, ifMatchChecksum?: string | null
src/services/teamMemorySync/index.ts:462
↓ 1 callers
Function
uploadUserSettings
( entries: Record<string, string>, )
src/services/settingsSync/index.ts:347
↓ 1 callers
Function
uploadsDir
()
src/bridge/inboundAttachments.ts:60
↓ 1 callers
Function
uriToFilePath
* Extracts a file path from a file:// URI, decoding percent-encoded characters.
src/tools/LSPTool/LSPTool.ts:538
↓ 1 callers
Function
urlMatchesPattern
* Match a URL against a pattern with * as a wildcard (any characters). * Same semantics as the MCP server allowlist patterns.
src/utils/hooks/execHttpHook.ts:64
↓ 1 callers
Function
urlPatternToRegex
* Convert a URL pattern with wildcards to a RegExp * Supports * as wildcard matching any characters * Examples: * "https://example.com/*" matches
src/services/mcp/config.ts:320
↓ 1 callers
Function
useAfterFirstRender
()
src/hooks/useAfterFirstRender.ts:4
↓ 1 callers
Function
useApiKeyVerification
()
src/hooks/useApiKeyVerification.ts:25
↓ 1 callers
Function
useArrowKeyHistory
(onSetInput: (value: string, mode: HistoryMode, pastedContents: Record<number, PastedContent>) => void, curren
src/hooks/useArrowKeyHistory.tsx:63
↓ 1 callers
Function
useAssistantHistory
({ config, setMessages, scrollRef, onPrepend, }: Props)
src/hooks/useAssistantHistory.ts:72
↓ 1 callers
Function
useAutoModeUnavailableNotification
()
src/hooks/notifs/useAutoModeUnavailableNotification.ts:19
↓ 1 callers
Function
useAwaySummary
( messages: readonly Message[], setMessages: SetMessages, isLoading: boolean, )
src/hooks/useAwaySummary.ts:32
↓ 1 callers
Function
useBackgroundTaskNavigation
(options?: { onOpenBackgroundTasks?: () => void })
src/hooks/useBackgroundTaskNavigation.ts:67
↓ 1 callers
Function
useBlink
( enabled: boolean, intervalMs: number = BLINK_INTERVAL_MS, )
src/hooks/useBlink.ts:22
↓ 1 callers
Function
useBuddyNotification
()
src/buddy/useBuddyNotification.tsx:43
↓ 1 callers
Function
useCanSwitchToExistingSubscription
()
src/hooks/notifs/useCanSwitchToExistingSubscription.tsx:13
↓ 1 callers
Function
useCanUseTool
(setToolUseConfirmQueue, setToolPermissionContext)
src/hooks/useCanUseTool.tsx:28
↓ 1 callers
Function
useChromeExtensionNotification
()
src/hooks/useChromeExtensionNotification.tsx:16
↓ 1 callers
Function
useClaudeCodeHintRecommendation
()
src/hooks/useClaudeCodeHintRecommendation.tsx:24
↓ 1 callers
Function
useClawdAnimation
()
src/components/LogoV2/AnimatedClawd.tsx:92
↓ 1 callers
Function
useCompactWarningSuppression
()
src/services/compact/compactWarningHook.ts:11
↓ 1 callers
Function
useCopyOnSelect
( selection: Selection, isActive: boolean, onCopied?: (text: string) => void, )
src/hooks/useCopyOnSelect.ts:26
↓ 1 callers
Function
useCostSummary
( getFpsMetrics?: () => FpsMetrics | undefined, )
src/costHook.ts:6
↓ 1 callers
Function
useDeferredHookMessages
( pendingHookMessages: Promise<HookResultMessage[]> | undefined, setMessages: (action: React.SetStateActio
src/hooks/useDeferredHookMessages.ts:12
↓ 1 callers
Function
useDeprecationWarningNotification
(model)
src/hooks/notifs/useDeprecationWarningNotification.tsx:6
↓ 1 callers
Function
useDiffData
()
src/hooks/useDiffData.ts:34
← previous
next →
7,801–7,900 of 11,548, ranked by callers