MCPcopy Create free account

hub / github.com/freecodexyz/free-code / functions

Functions11,548 in github.com/freecodexyz/free-code

↓ 2 callersFunctioncountToolCalls
( messages: Message[], toolName: string, maxCount?: number, )
src/utils/messages.ts:4691
↓ 2 callersFunctioncountWorktreeChanges
* Returns null when state cannot be reliably determined — callers that use * this as a safety gate must treat null as "unknown, assume unsafe" * (fa
src/tools/ExitWorktreeTool/ExitWorktreeTool.ts:79
↓ 2 callersFunctioncreateAbortedCommand
( backgroundTaskId?: string, opts?: { stderr?: string; code?: number }, )
src/utils/ShellCommand.ts:437
↓ 2 callersFunctioncreateAgentWorktree
(slug: string)
src/utils/worktree.ts:902
↓ 2 callersFunctioncreateAndUploadGitBundle
( config: FilesApiConfig, opts?: { cwd?: string; signal?: AbortSignal }, )
src/utils/teleport/gitBundle.ts:152
↓ 2 callersFunctioncreateAsyncAgentAttachmentsIfNeeded
( context: ToolUseContext, )
src/services/compact/compact.ts:1568
↓ 2 callersFunctioncreateAuthFetch
* Creates a fetch function with a fresh 30-second timeout for each OAuth request. * Used by ClaudeAuthProvider for metadata discovery and token refre
src/services/mcp/auth.ts:198
↓ 2 callersFunctioncreateAutoMemCanUseTool
(memoryDir: string)
src/services/extractMemories/extractMemories.ts:171
↓ 2 callersFunctioncreateBackup
* Creates a backup of the file at filePath. If the file does not exist * (ENOENT), records a null backup (file-did-not-exist marker). All IO is * as
src/utils/fileHistory.ts:748
↓ 2 callersFunctioncreateBedrockClient
()
src/utils/model/bedrock.ts:50
↓ 2 callersFunctioncreateCapacityWake
(outerSignal: AbortSignal)
src/bridge/capacityWake.ts:28
↓ 2 callersFunctioncreateCategorySquares
( category: (typeof categorySquares)[0], )
src/utils/analyzeContext.ts:1206
↓ 2 callersFunctioncreateChromeContext
( env?: Record<string, string>, )
src/utils/claudeInChrome/mcpServer.ts:82
↓ 2 callersFunctioncreateComputerUseMcpServerForCli
()
src/utils/computerUse/mcpServer.ts:60
↓ 2 callersMethodcreateCursorWithColumn
( lineStart: number, lineEnd: number, targetColumn: number, )
src/utils/Cursor.ts:483
↓ 2 callersFunctioncreateDefaultGlobalConfig
* Factory for a fresh default GlobalConfig. Used instead of deep-cloning a * shared constant — the nested containers (arrays, records) are all empty,
src/utils/config.ts:605
↓ 2 callersFunctioncreateDenialTrackingState
()
src/utils/permissions/denialTracking.ts:17
↓ 2 callersFunctioncreateDiagnosticKey
* Creates a unique key for a diagnostic based on its content. * Used for both within-batch and cross-turn deduplication.
src/services/lsp/LSPDiagnosticRegistry.ts:110
↓ 2 callersFunctioncreateDirectConnectSession
({ serverUrl, authToken, cwd, dangerouslySkipPermissions, }: { serverUrl: string authToken?: strin
src/server/createDirectConnectSession.ts:26
↓ 2 callersFunctioncreateEmptyGroup
()
src/utils/collapseReadSearch.ts:625
↓ 2 callersFunctioncreateEmptyToolCounts
()
src/utils/streamlinedTransform.ts:60
↓ 2 callersFunctioncreateFallbackTitle
(description: string)
src/components/Feedback.tsx:475
↓ 2 callersFunctioncreateITermBackend
* Creates an ITermBackend instance. * Throws if ITermBackend hasn't been registered.
src/utils/swarm/backends/registry.ts:119
↓ 2 callersFunctioncreateIdleNotification
( agentId: string, options?: { idleReason?: IdleNotificationMessage['idleReason'] summary?: string
src/utils/teammateMailbox.ts:410
↓ 2 callersFunctioncreateLinkedTransportPair
()
src/services/mcp/InProcessTransport.ts:57
↓ 2 callersFunctioncreateMcpAuthTool
( serverName: string, config: ScopedMcpServerConfig, )
src/tools/McpAuthTool/McpAuthTool.ts:49
↓ 2 callersFunctioncreateMemoryFileCanUseTool
(memoryPath: string)
src/services/SessionMemory/sessionMemory.ts:460
↓ 2 callersFunctioncreateMemorySavedMessage
( writtenPaths: string[], )
src/utils/messages.ts:4460
↓ 2 callersFunctioncreateModeSetRequestMessage
(params: { mode: string from: string })
src/utils/teammateMailbox.ts:1034
↓ 2 callersFunctioncreateMovedToPluginCommand
({ name, description, progressMessage, pluginName, pluginCommand, getPromptWhileMarketplaceIsPriva
src/commands/createMovedToPluginCommand.ts:22
↓ 2 callersFunctioncreateNode
(nodeName: ElementNames)
src/ink/dom.ts:110
↓ 2 callersFunctioncreateNodeWsClient
* Create a ws.WebSocket client with the MCP protocol. * Bun's ws shim types lack the 3-arg constructor (url, protocols, options) * that the real ws
src/services/mcp/client.ts:436
↓ 2 callersFunctioncreateOperatorContext
( cursor: Cursor, isReplay: boolean = false, )
src/hooks/useVimInput.ts:82
↓ 2 callersFunctioncreatePasteKey
(content: string)
src/ink/parse-keypress.ts:67
↓ 2 callersFunctioncreatePathChecker
( command: PathCommand, operationTypeOverride?: FileOperationType, )
src/tools/BashTool/pathValidation.ts:703
↓ 2 callersFunctioncreatePermissionRequest
(params: { toolName: string toolUseId: string input: Record<string, unknown> description: string per
src/utils/swarm/permissionSync.ts:167
↓ 2 callersFunctioncreatePlanModeAttachmentIfNeeded
( context: ToolUseContext, )
src/services/compact/compact.ts:1542
↓ 2 callersFunctioncreatePluginFromPath
( pluginPath: string, source: string, enabled: boolean, fallbackName: string, strict = true, )
src/utils/plugins/pluginLoader.ts:1348
↓ 2 callersFunctioncreatePostCompactFileAttachments
( readFileState: Record<string, { content: string; timestamp: number }>, toolUseContext: ToolUseContext,
src/services/compact/compact.ts:1415
↓ 2 callersFunctioncreateProgressMessage
(message: AssistantMessage | NormalizedUserMessage)
src/utils/processUserInput/processSlashCommand.tsx:194
↓ 2 callersFunctioncreatePromptRuleContent
(description: string)
src/utils/permissions/bashClassifier.ts:20
↓ 2 callersFunctioncreateRemoteSessionConfig
( sessionId: string, getAccessToken: () => string, orgUuid: string, hasInitialPrompt = false, viewer
src/remote/RemoteSessionManager.ts:329
↓ 2 callersFunctioncreateResolveOnce
(resolve: (value: T) => void)
src/hooks/toolPermission/PermissionContext.ts:75
↓ 2 callersFunctioncreateSessionSpawner
(deps: SessionSpawnerDeps)
src/bridge/sessionRunner.ts:248
↓ 2 callersFunctioncreateSingleEditDiffConfig
( filePath: string, oldString: string, newString: string, replaceAll?: boolean, )
src/components/permissions/FilePermissionDialog/ideDiffConfig.ts:25
↓ 2 callersFunctioncreateSkillAttachmentIfNeeded
( agentId?: string, )
src/services/compact/compact.ts:1494
↓ 2 callersFunctioncreateSkillCommand
({ skillName, displayName, description, hasUserSpecifiedDescription, markdownContent, allowedTools
src/skills/loadSkillsDir.ts:270
↓ 2 callersFunctioncreateStatsStore
()
src/context/stats.tsx:28
↓ 2 callersMethodcreateSyntheticErrorMessage
( toolUseId: string, reason: 'sibling_error' | 'user_interrupted' | 'streaming_fallback', assistan
src/services/tools/StreamingToolExecutor.ts:153
↓ 2 callersFunctioncreateSyntheticOutputTool
( jsonSchema: Record<string, unknown>, )
src/tools/SyntheticOutputTool/SyntheticOutputTool.ts:116
↓ 2 callersFunctioncreateSystemAPIErrorMessage
( error: APIError, retryInMs: number, retryAttempt: number, maxRetries: number, )
src/utils/messages.ts:4585
↓ 2 callersMethodcreateTeammatePaneInSwarmView
* Creates a new teammate pane in the swarm view. * Uses a lock to prevent race conditions when multiple teammates are spawned in parallel.
src/utils/swarm/backends/TmuxBackend.ts:129
↓ 2 callersFunctioncreateTokenRefreshScheduler
({ getAccessToken, onRefresh, label, refreshBufferMs = TOKEN_REFRESH_BUFFER_MS, }: { getAccessToken:
src/bridge/jwtUtils.ts:72
↓ 2 callersFunctioncreateToolResultStopMessage
( toolUseID: string, )
src/utils/messages.ts:622
↓ 2 callersFunctioncreateTurnDurationMessage
( durationMs: number, budget?: { tokens: number; limit: number; nudges: number }, messageCount?: number,
src/utils/messages.ts:4428
↓ 2 callersFunctioncreateWorktreeForSession
( sessionId: string, slug: string, tmuxSessionName?: string, options?: { prNumber?: number }, )
src/utils/worktree.ts:702
↓ 2 callersFunctioncreateWrapperScript
* Create a wrapper script in ~/.claude/chrome/ that invokes the given command. This is * necessary because Chrome's native host manifest "path" field
src/utils/claudeInChrome/setup.ts:308
↓ 2 callersFunctioncreateWriteStream
(path: string)
src/utils/fsOperations.ts:574
↓ 2 callersFunctioncursorPosition
(row: number, col: number)
src/ink/termio/csi.ts:157
↓ 2 callersFunctioncursorUp
(n = 1)
src/ink/termio/csi.ts:129
↓ 2 callersFunctiondateToFilename
(date: Date)
src/utils/log.ts:60
↓ 2 callersFunctiondebugTruncate
(s: string)
src/bridge/debugUtils.ts:37
↓ 2 callersFunctiondecisionReasonDisplayString
(decisionReason: PermissionDecisionReason & { type: Exclude<PermissionDecisionReason['type'], 'subcommandRes
src/components/permissions/PermissionDecisionDebugInfo.tsx:21
↓ 2 callersFunctiondecodeJwtExpiry
(token: string)
src/bridge/jwtUtils.ts:38
↓ 2 callersFunctiondecodeModifier
* Decode XTerm-style modifier value to individual flags. * Modifier encoding: 1 + (shift ? 1 : 0) + (alt ? 2 : 0) + (ctrl ? 4 : 0) + (super ? 8 : 0)
src/ink/parse-keypress.ts:465
↓ 2 callersFunctiondecodeWorkSecret
(secret: string)
src/bridge/workSecret.ts:6
↓ 2 callersFunctiondecorationColor
(marker: Marker, theme: Theme)
src/native-ts/color-diff/index.ts:390
↓ 2 callersFunctiondeduplicateEdits
(block: CachedMCEditsBlock)
src/services/api/claude.ts:3116
↓ 2 callersFunctiondeduplicateLogsBySessionId
* Deduplicates logs by sessionId, keeping the entry with the newest * modified time. Returns sorted logs with sequential value indices.
src/utils/sessionStorage.ts:4955
↓ 2 callersFunctiondefaultStyle
()
src/native-ts/yoga-layout/index.ts:167
↓ 2 callersFunctiondeletePluginDataDir
(pluginId: string)
src/utils/plugins/pluginDirectories.ts:168
↓ 2 callersFunctiondeletePluginOptions
(pluginId: string)
src/utils/plugins/pluginOptionsStorage.ts:210
↓ 2 callersFunctiondeleteTask
( taskListId: string, taskId: string, )
src/utils/tasks.ts:393
↓ 2 callersMethoddeleteToLineEnd
()
src/utils/Cursor.ts:896
↓ 2 callersMethoddeleteToLineStart
()
src/utils/Cursor.ts:880
↓ 2 callersMethoddeleteWordAfter
()
src/utils/Cursor.ts:971
↓ 2 callersFunctiondenialsFor
src/components/permissions/rules/PermissionRuleList.tsx:798
↓ 2 callersFunctiondenyAutoMemTool
(tool: Tool, reason: string)
src/services/extractMemories/extractMemories.ts:154
↓ 2 callersFunctionderiveTitle
* Quick placeholder title: strip display tags, take the first sentence, * collapse whitespace, truncate to 50 chars. Returns undefined if the result
src/bridge/initReplBridge.ts:555
↓ 2 callersFunctiondescribeAxiosError
(err: unknown)
src/bridge/debugUtils.ts:60
↓ 2 callersFunctiondescribeTeammateActivity
(t: DeepImmutable<InProcessTeammateTaskState>)
src/components/tasks/taskStatusUtils.tsx:77
↓ 2 callersFunctiondeserializeMessages
(serializedMessages: Message[])
src/utils/conversationRecovery.ts:154
↓ 2 callersFunctiondeserializeMessagesWithInterruptDetection
( serializedMessages: Message[], )
src/utils/conversationRecovery.ts:164
↓ 2 callersFunctiondetectAndUninstallDelistedPlugins
()
src/utils/plugins/pluginBlocklist.ts:64
↓ 2 callersFunctiondetectAsdf
()
src/utils/nativeInstaller/packageManagers.ts:81
↓ 2 callersFunctiondetectColorMode
(theme: string)
src/native-ts/color-diff/index.ts:95
↓ 2 callersFunctiondetectCommandSubstitution
( prev: ParseEntry | undefined, kept: ParseEntry[], index: number, )
src/utils/bash/commands.ts:1143
↓ 2 callersFunctiondetectFileEncoding
(filePath: string)
src/utils/file.ts:100
↓ 2 callersFunctiondetectGateway
({ headers, baseUrl, }: { headers?: globalThis.Headers baseUrl?: string })
src/services/api/logging.ts:107
↓ 2 callersFunctiondetectJetBrainsIDEFromParentProcessAsync
()
src/utils/envDynamic.ts:64
↓ 2 callersFunctiondetectLanguage
( filePath: string, firstLine: string | null, )
src/native-ts/color-diff/index.ts:422
↓ 2 callersFunctiondetectLineEndingsForString
(content: string)
src/utils/fileRead.ts:51
↓ 2 callersFunctiondetectMagicDocHeader
( content: string, )
src/services/MagicDocs/magicDocs.ts:52
↓ 2 callersFunctiondetectMise
()
src/utils/nativeInstaller/packageManagers.ts:62
↓ 2 callersFunctiondetectPackageManager
()
src/services/voice.ts:179
↓ 2 callersFunctiondetectPromptTooLong
* Detect API 400 "prompt is too long: N tokens > M maximum" errors and * parse the token counts. Returns undefined for any other error. * These are
src/utils/permissions/yoloClassifier.ts:1463
↓ 2 callersFunctiondetectRunningIDEs
()
src/utils/ide.ts:1154
↓ 2 callersFunctiondetectShell
()
src/utils/completionCache.ts:24
↓ 2 callersFunctiondetectWinget
()
src/utils/nativeInstaller/packageManagers.ts:133
↓ 2 callersFunctiondiff
(before: AnyObject, after: AnyObject)
src/ink/reconciler.ts:62
← previousnext →2,701–2,800 of 11,548, ranked by callers