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
marketplaceSourceHint
(p: string)
src/utils/plugins/validatePlugin.ts:113
↓ 1 callers
Function
marketplaceUpdateHandler
( name: string | undefined, options: { cowork?: boolean }, )
src/cli/handlers/plugins.ts:616
↓ 1 callers
Function
maskBracesInQuotedContexts
* Mask `{` characters that appear inside single- or double-quoted contexts. * Uses a single-pass bash-aware quote-state scanner instead of a regex.
src/utils/bash/ast.ts:331
↓ 1 callers
Function
maskModelCodename
(baseName: string)
src/utils/model/model.ts:422
↓ 1 callers
Function
matchKey
(m: Match)
src/components/GlobalSearchDialog.tsx:320
↓ 1 callers
Function
matchesBinding
( input: string, key: Key, binding: ParsedBinding, )
src/keybindings/match.ts:111
↓ 1 callers
Function
matchesKeepGoingKeyword
(input: string)
src/utils/userPromptKeywords.ts:16
↓ 1 callers
Function
matchesKeyboardEvent
(e: KeyboardEvent, target: ParsedKeystroke)
src/hooks/useVoiceIntegration.tsx:61
↓ 1 callers
Function
matchesKeystroke
( input: string, key: Key, target: ParsedKeystroke, )
src/keybindings/match.ts:86
↓ 1 callers
Function
matchesNegativeKeyword
(input: string)
src/utils/userPromptKeywords.ts:4
↓ 1 callers
Function
matchesPattern
* Check if a match query matches a hook matcher pattern * @param matchQuery The query to match (e.g., 'Write', 'Edit', 'Bash') * @param matcher The
src/utils/hooks.ts:1346
↓ 1 callers
Function
matchesSectionHeader
* Check if a config line like `[remote "origin"]` matches the given section/subsection. * Section matching is case-insensitive; subsection matching i
src/utils/git/gitConfigParser.ts:198
↓ 1 callers
Method
materializeSessionFile
* Create the session file, write cached startup metadata, and flush * buffered entries. Called on the first user/assistant message.
src/utils/sessionStorage.ts:976
↓ 1 callers
Function
maxLineNumber
(hunk: Hunk)
src/native-ts/color-diff/index.ts:832
↓ 1 callers
Function
maybeGetTmuxMouseHint
()
src/utils/fullscreen.ts:180
↓ 1 callers
Function
maybeInstallIDEExtension
( ideType: IdeType, )
src/utils/ide.ts:590
↓ 1 callers
Function
maybeInvalidateCache
* Invalidate the description cache if deferred tools have changed.
src/tools/ToolSearchTool/ToolSearchTool.ts:91
↓ 1 callers
Function
maybeNotifyIDEConnected
(client: Client)
src/utils/ide.ts:829
↓ 1 callers
Function
maybeRefreshOverageCreditCache
()
src/components/LogoV2/OverageCreditUpsell.tsx:44
↓ 1 callers
Function
maybeRemoveApiKeyFromMacOSKeychainThrows
()
src/utils/authPortable.ts:4
↓ 1 callers
Function
maybeTimeBasedMicrocompact
( messages: Message[], querySource: QuerySource | undefined, )
src/services/compact/microCompact.ts:446
↓ 1 callers
Function
maybeTruncateInput
( input: string, pastedContents: Record<number, PastedContent>, )
src/components/PromptInput/inputPaste.ts:61
↓ 1 callers
Function
maybeTruncateMessageForInput
( text: string, nextPasteId: number, )
src/components/PromptInput/inputPaste.ts:20
↓ 1 callers
Function
mcpAddFromDesktopHandler
(options: { scope?: string; })
src/cli/handlers/mcp.tsx:317
↓ 1 callers
Function
mcpAddJsonHandler
(name: string, json: string, options: { scope?: string; clientSecret?: true; })
src/cli/handlers/mcp.tsx:286
↓ 1 callers
Function
mcpGetHandler
(name: string)
src/cli/handlers/mcp.tsx:193
↓ 1 callers
Function
mcpListHandler
()
src/cli/handlers/mcp.tsx:144
↓ 1 callers
Function
mcpQueryFor
(searchToken: string)
src/utils/suggestions/slackChannelSuggestions.ts:129
↓ 1 callers
Function
mcpRemoveHandler
(name: string, options: { scope?: string; })
src/cli/handlers/mcp.tsx:74
↓ 1 callers
Function
mcpResetChoicesHandler
()
src/cli/handlers/mcp.tsx:352
↓ 1 callers
Function
mcpServeHandler
({ debug, verbose }: { debug?: boolean; verbose?: boolean; })
src/cli/handlers/mcp.tsx:42
↓ 1 callers
Function
mcpToolInputToAutoClassifierInput
( input: Record<string, unknown>, toolName: string, )
src/services/mcp/client.ts:1735
↓ 1 callers
Method
measureWrappedText
()
src/utils/Cursor.ts:1293
↓ 1 callers
Function
memoryAge
(mtimeMs: number)
src/memdir/memoryAge.ts:15
↓ 1 callers
Function
memoryFileFreshnessPrefix
(data: object)
src/tools/FileReadTool/FileReadTool.ts:749
↓ 1 callers
Function
memoryFreshnessNote
(mtimeMs: number)
src/memdir/memoryAge.ts:49
↓ 1 callers
Function
memoryScopeForPath
(filePath: string)
src/utils/memoryFileDetection.ts:106
↓ 1 callers
Function
mergeAdjacentUserMessages
( msgs: (UserMessage | AssistantMessage)[], )
src/utils/messages.ts:2451
↓ 1 callers
Function
mergeArrays
* Custom merge function for arrays - concatenate and deduplicate
src/utils/settings/settings.ts:529
↓ 1 callers
Function
mergeAssistantMessages
( a: AssistantMessage, b: AssistantMessage, )
src/utils/messages.ts:2389
↓ 1 callers
Function
mergePluginErrors
* Merge fresh plugin-load errors with existing errors, preserving LSP and * plugin-component errors that were recorded by other systems and * dedupl
src/utils/plugins/refresh.ts:199
↓ 1 callers
Function
mergePluginSettings
* Merge settings from all enabled plugins into a single record. * Later plugins override earlier ones for the same key. * Only allowlisted keys are
src/utils/plugins/pluginLoader.ts:3250
↓ 1 callers
Function
mergePluginSources
(sources: { session: LoadedPlugin[] marketplace: LoadedPlugin[] builtin: LoadedPlugin[] managedNames?:
src/utils/plugins/pluginLoader.ts:3009
↓ 1 callers
Function
mergeUntrackedIntoNormalizedCache
* Merge already-normalized untracked files into the cache
src/hooks/fileSuggestions.ts:169
↓ 1 callers
Function
mergeUserContentBlocks
( a: ContentBlockParam[], b: ContentBlockParam[], )
src/utils/messages.ts:2600
↓ 1 callers
Function
mergeUserMessagesAndToolResults
( a: UserMessage, b: UserMessage, )
src/utils/messages.ts:2372
↓ 1 callers
Function
migrateAutoUpdatesToSettings
()
src/migrations/migrateAutoUpdatesToSettings.ts:13
↓ 1 callers
Function
migrateBypassPermissionsAcceptedToSettings
()
src/migrations/migrateBypassPermissionsAcceptedToSettings.ts:14
↓ 1 callers
Function
migrateChangelogFromConfig
()
src/utils/releaseNotes.ts:55
↓ 1 callers
Function
migrateEnableAllProjectMcpServersToSettings
()
src/migrations/migrateEnableAllProjectMcpServersToSettings.ts:17
↓ 1 callers
Function
migrateFennecToOpus
()
src/migrations/migrateFennecToOpus.ts:18
↓ 1 callers
Function
migrateLegacyOpusToCurrent
()
src/migrations/migrateLegacyOpusToCurrent.ts:29
↓ 1 callers
Function
migrateOpusToOpus1m
()
src/migrations/migrateOpusToOpus1m.ts:24
↓ 1 callers
Function
migrateReplBridgeEnabledToRemoteControlAtStartup
()
src/migrations/migrateReplBridgeEnabledToRemoteControlAtStartup.ts:10
↓ 1 callers
Function
migrateScreenPools
( screen: Screen, charPool: CharPool, hyperlinkPool: HyperlinkPool, )
src/ink/screen.ts:554
↓ 1 callers
Function
migrateSonnet1mToSonnet45
()
src/migrations/migrateSonnet1mToSonnet45.ts:25
↓ 1 callers
Function
migrateSonnet45ToSonnet46
()
src/migrations/migrateSonnet45ToSonnet46.ts:29
↓ 1 callers
Function
migrateStatsCache
* Migrate an older cache to the current schema. * Returns null if the version is unknown or too old to migrate. * * Preserves historical aggregates
src/utils/statsCache.ts:107
↓ 1 callers
Function
migrateToSinglePluginFile
()
src/utils/plugins/installedPluginsManager.ts:115
↓ 1 callers
Function
mkdirRecursive
(dirPath: string)
src/utils/worktree.ts:90
↓ 1 callers
Function
modalPagerAction
(input: string, key: Pick<Key, 'ctrl' | 'meta' | 'shift' | 'upArrow' | 'downArrow' | 'home' | 'end'>)
src/components/ScrollKeybindingHandler.tsx:900
↓ 1 callers
Function
modelBelongsToFamily
* Check if a model belongs to a given family by checking if its name * (or resolved name) contains the family identifier.
src/utils/model/modelAllowlist.ts:10
↓ 1 callers
Function
modelMatchesVersionPrefix
* Check if a model matches a version-prefix entry in the allowlist. * Supports shorthand like "opus-4-5" (mapped to "claude-opus-4-5") and * full pr
src/utils/model/modelAllowlist.ts:39
↓ 1 callers
Function
modelSupportsContextManagement
(model: string)
src/utils/betas.ts:125
↓ 1 callers
Function
modelSupportsThinking
(model: string)
src/utils/thinking.ts:90
↓ 1 callers
Function
moveFocus
(s: SelectionState, col: number, row: number)
src/ink/selection.ts:442
↓ 1 callers
Method
moveSelectionFocus
* Keyboard selection extension (shift+arrow/home/end). Moves focus; * anchor stays fixed so the highlight grows or shrinks relative to it. * Lef
src/ink/ink.tsx:1188
↓ 1 callers
Function
needsAutoModeExitAttachment
()
src/bootstrap/state.ts:1365
↓ 1 callers
Function
needsBidi
()
src/ink/bidi.ts:29
↓ 1 callers
Function
needsPlanModeExitAttachment
()
src/bootstrap/state.ts:1341
↓ 1 callers
Function
needsQuoting
(str: string)
src/utils/bash/commands.ts:1171
↓ 1 callers
Function
needsSegmentation
(str: string)
src/ink/stringWidth.ts:92
↓ 1 callers
Function
needsWidthCompensation
* Identify emoji where the terminal's wcwidth may disagree with Unicode. * On terminals with correct tables, the CHA we emit is a harmless no-op. *
src/ink/log-update.ts:733
↓ 1 callers
Method
noSelect
* Mark a region as non-selectable (excluded from fullscreen text * selection copy + highlight). Used by <NoSelect> to fence off * gutters (line
src/ink/output.ts:237
↓ 1 callers
Function
nodeTypeId
(nodeType: string | undefined)
src/utils/bash/ast.ts:213
↓ 1 callers
Function
normalizeAllowOnly
(paths: string[])
src/tools/BashTool/prompt.ts:189
↓ 1 callers
Function
normalizeAssistantMessageForSDK
* Normalizes tool inputs in assistant message content for SDK consumption. * Specifically injects plan content into ExitPlanModeV2 tool inputs since
src/utils/messages/mappers.ts:260
↓ 1 callers
Function
normalizeFileEditInput
({ file_path, edits, }: { file_path: string edits: EditInput[] })
src/tools/FileEditTool/utils.ts:581
↓ 1 callers
Function
normalizeGitRemoteUrl
(url: string)
src/utils/git.ts:283
↓ 1 callers
Function
normalizeImageBlocks
( blocks: Array<ContentBlockParam>, )
src/bridge/inboundMessages.ts:52
↓ 1 callers
Function
normalizePatternToPath
({ patternRoot, pattern, rootPath, }: { patternRoot: string pattern: string rootPath: string })
src/utils/permissions/filesystem.ts:765
↓ 1 callers
Function
normalizeToolInput
( tool: T, input: z.infer<T['inputSchema']>, agentId?: AgentId, )
src/utils/api.ts:566
↓ 1 callers
Function
normalizeToolInputForAPI
( tool: T, input: z.infer<T['inputSchema']>, )
src/utils/api.ts:685
↓ 1 callers
Function
normalizeTypeName
(name: string)
src/tools/PowerShellTool/clmTypes.ts:194
↓ 1 callers
Function
normalizeUrl
(url: string)
src/services/mcp/officialRegistry.ts:19
↓ 1 callers
Function
normalizedUpperBound
(m: Message)
src/utils/exportRenderer.tsx:37
↓ 1 callers
Function
notifyPermissionModeChanged
(mode: PermissionMode)
src/utils/sessionState.ts:148
↓ 1 callers
Function
notifyVscodeSnapshotFilesUpdated
* Notifies VSCode about files that have changed between snapshots. * Compares the previous snapshot with the new snapshot and sends file_updated * n
src/utils/fileHistory.ts:1054
↓ 1 callers
Function
numberDiffLines
(diff: LineObject[], startLine: number)
src/components/StructuredDiff/Fallback.tsx:423
↓ 1 callers
Function
numberToLetter
(n: number)
src/utils/markdown.ts:310
↓ 1 callers
Function
numberToRoman
(n: number)
src/utils/markdown.ts:336
↓ 1 callers
Function
oauthHeaders
(accessToken: string)
src/bridge/remoteBridgeCore.ts:81
↓ 1 callers
Function
objectGroupBy
( items: Iterable<T>, keySelector: (item: T, index: number) => K, )
src/utils/objectGroupBy.ts:4
↓ 1 callers
Method
offsetAtDisplayWidth
* Find the string offset that corresponds to a target display width.
src/utils/Cursor.ts:1270
↓ 1 callers
Function
onAbort
()
src/services/mcp/elicitationHandler.ts:115
↓ 1 callers
Function
onAbort
()
src/services/mcp/client.ts:2957
↓ 1 callers
Function
onChangeMainModelConfig
(value: string | null)
src/components/Settings/Config.tsx:203
↓ 1 callers
Function
onCwdChangedForHooks
( oldCwd: string, newCwd: string, )
src/utils/hooks/fileChangedWatcher.ts:133
↓ 1 callers
Function
onDivergence
()
src/tools/BashTool/bashPermissions.ts:2352
↓ 1 callers
Function
onDoneWithSettingsCheck
()
src/commands/privacy-settings/privacy-settings.tsx:30
← previous
next →
6,801–6,900 of 11,548, ranked by callers