MCPcopy Create free account

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

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

↓ 2 callersFunctionwriteDiffToTerminal
( terminal: Terminal, diff: Diff, skipSyncMarkers = false, )
src/ink/terminal.ts:190
↓ 2 callersFunctionwriteFileAndFlush
( filePath: string, content: string, flag: 'w' | 'wx' = 'w', )
src/components/agents/agentFileUtils.ts:260
↓ 2 callersFunctionwriteFileLines
( filePath: string, lines: string[], )
src/utils/shellConfig.ts:96
↓ 2 callersFunctionwriteHighWaterMark
( taskListId: string, value: number, )
src/utils/tasks.ts:125
↓ 2 callersFunctionwriteIfMissing
* Write `content` to `path` only if the file does not already exist. * Uses O_EXCL ('wx') for atomic create-if-missing.
src/utils/localInstaller.ts:38
↓ 2 callersFunctionwriteMcpjsonFile
* Internal utility: Write MCP config to .mcp.json file. * Preserves file permissions and flushes to disk before rename. * Uses the original path for
src/services/mcp/config.ts:88
↓ 2 callersFunctionwriteOut
(stream: NodeJS.WriteStream, data: string)
src/utils/process.ts:17
↓ 2 callersFunctionwritePerfettoTrace
* Final async write: close open spans and write the complete trace. * Idempotent — sets `traceWritten` on success so subsequent calls are no-ops.
src/utils/telemetry/perfettoTracing.ts:1011
↓ 2 callersFunctionwriteRules
(rules: AutoModeRules)
src/cli/handlers/autoMode.ts:20
↓ 2 callersFunctionwriteToFile
(text: string, filename: string)
src/commands/copy/copy.tsx:73
↓ 2 callersFunctionyankPop
()
src/utils/Cursor.ts:91
↓ 1 callersMethod#createResultPromise
()
src/utils/ShellCommand.ts:263
↓ 1 callersMethod#drain
()
src/utils/task/diskOutput.ts:207
↓ 1 callersMethod#queueToBuffers
Keep this in a separate method so that GC doesn't keep it alive for any longer than it should.
src/utils/task/diskOutput.ts:189
↓ 1 callersMethod#readStdoutFromFile
()
src/utils/task/TaskOutput.ts:297
↓ 1 callersMethod#rewatch
* Point the file watcher at the current tasks directory. Called on start * and whenever #fetch detects the task list ID has changed (e.g. when *
src/hooks/useTasksV2.ts:90
↓ 1 callersMethod#startSizeWatchdog
()
src/utils/ShellCommand.ts:239
↓ 1 callersMethod#stop
* Tear down the watcher, timers, and in-process subscription. Called when * the last subscriber unsubscribes. Preserves #tasks/#hidden cache so a
src/hooks/useTasksV2.ts:186
↓ 1 callersMethod#updateProgress
* Single backward pass: count all newlines (for totalLines) and extract * the last few lines as flat copies (for the CircularBuffer / progress).
src/utils/task/TaskOutput.ts:207
↓ 1 callersMethod#writeAllChunks
()
src/utils/task/diskOutput.ts:178
↓ 1 callersFunctionAUTO_REJECT_MESSAGE
(toolName: string)
src/utils/messages.ts:234
↓ 1 callersFunctionDANGEROUS_uncachedSystemPromptSection
( name: string, compute: ComputeFn, _reason: string, )
src/constants/systemPromptSections.ts:32
↓ 1 callersFunctionDONT_ASK_REJECT_MESSAGE
(toolName: string)
src/utils/messages.ts:237
↓ 1 callersFunctionLOCAL_REVIEW_PROMPT
(args: string)
src/commands/review.ts:9
↓ 1 callersFunction_bundleWithFallback
( gitRoot: string, bundlePath: string, maxBytes: number, hasStash: boolean, signal: AbortSignal | un
src/utils/teleport/gitBundle.ts:50
↓ 1 callersMethod_doRefresh
( refreshToken: string, )
src/services/mcp/auth.ts:2177
↓ 1 callersFunction_executeApiKeyHelper
( isNonInteractiveSession: boolean, )
src/utils/auth.ts:539
↓ 1 callersMethod_isImmediatePropagationStopped
@internal
src/ink/events/terminal-event.ts:93
↓ 1 callersMethod_isPropagationStopped
@internal
src/ink/events/terminal-event.ts:88
↓ 1 callersMethod_prepareForTarget
* Hook for subclasses to do per-node setup before each handler fires. * Default is a no-op.
src/ink/events/terminal-event.ts:101
↓ 1 callersMethod_resetFlushState
@internal Reset flush/queue state for testing.
src/utils/sessionStorage.ts:573
↓ 1 callersMethod_setTarget
@internal
src/ink/events/terminal-event.ts:73
↓ 1 callersFunctionabortPromptSuggestion
()
src/services/PromptSuggestion/promptSuggestion.ts:96
↓ 1 callersFunctionacceptSpeculation
( state: SpeculationState, setAppState: (f: (prev: AppState) => AppState) => void, cleanMessageCount: nu
src/services/PromptSuggestion/speculation.ts:717
↓ 1 callersFunctionaccumulateStreamEvents
( buffer: SDKPartialAssistantMessage[], state: StreamAccumulatorState, )
src/cli/transports/ccrClient.ts:141
↓ 1 callersFunctionaccumulateToolUses
* Count tool uses in an assistant message and add to existing counts.
src/utils/streamlinedTransform.ts:109
↓ 1 callersFunctionacquireLock
* Attempts to acquire a lock for auto-updater * @returns true if lock was acquired, false if another process holds the lock
src/utils/autoUpdater.ts:176
↓ 1 callersFunctionacquirePaneCreationLock
* Acquires a lock for pane creation, ensuring sequential execution. * Returns a release function that must be called when done.
src/utils/swarm/backends/ITermBackend.ts:21
↓ 1 callersFunctionacquirePaneCreationLock
* Acquires a lock for pane creation, ensuring sequential execution. * Returns a release function that must be called when done.
src/utils/swarm/backends/TmuxBackend.ts:43
↓ 1 callersFunctionacquireProcessLifetimeLock
( versionPath: string, lockFilePath: string, )
src/utils/nativeInstaller/pidLock.ts:299
↓ 1 callersMethodaddAll
* Add multiple items to the buffer at once.
src/utils/CircularBuffer.ts:29
↓ 1 callersFunctionaddApiRequestToCache
(requestData: unknown)
src/services/api/dumpPrompts.ts:48
↓ 1 callersFunctionaddCacheBreakpoints
( messages: (UserMessage | AssistantMessage)[], enablePromptCaching: boolean, querySource?: QuerySource,
src/services/api/claude.ts:3063
↓ 1 callersFunctionaddCleanupResults
( a: CleanupResult, b: CleanupResult, )
src/utils/cleanup.ts:38
↓ 1 callersFunctionaddCronTask
( cron: string, prompt: string, recurring: boolean, durable: boolean, agentId?: string, )
src/utils/cronTasks.ts:194
↓ 1 callersFunctionaddDreamTurn
( taskId: string, turn: DreamTurn, touchedPaths: string[], setAppState: SetAppState, )
src/tasks/DreamTask/DreamTask.ts:76
↓ 1 callersFunctionaddFileGlobRuleToGitignore
( filename: string, cwd: string = getCwd(), )
src/utils/git/gitignore.ts:53
↓ 1 callersFunctionaddFlaggedPlugin
(pluginId: string)
src/utils/plugins/pluginFlagging.ts:151
↓ 1 callersFunctionaddItemToJSONCArray
(content: string, newItem: unknown)
src/utils/json.ts:228
↓ 1 callersFunctionaddMarker
(h: Highlight, theme: Theme)
src/native-ts/color-diff/index.ts:747
↓ 1 callersFunctionaddPendingClear
( parent: DOMElement, rect: Rectangle, isAbsolute: boolean, )
src/ink/node-cache.ts:34
↓ 1 callersFunctionaddPermissionRulesToSettings
( { ruleValues, ruleBehavior, }: { ruleValues: PermissionRuleValue[] ruleBehavior: Permiss
src/utils/permissions/permissionsLoader.ts:229
↓ 1 callersFunctionaddSessionCronTask
(task: SessionCronTask)
src/bootstrap/state.ts:1298
↓ 1 callersFunctionaddSlowOperation
(operation: string, durationMs: number)
src/bootstrap/state.ts:1569
↓ 1 callersFunctionaddToExcludedCommands
( command: string, permissionUpdates?: Array<{ type: string rules: Array<{ toolName: string; ruleC
src/utils/sandbox/sandbox-adapter.ts:828
↓ 1 callersFunctionaddToInMemoryErrorLog
(errorInfo: { error: string timestamp: string })
src/utils/log.ts:69
↓ 1 callersFunctionaddToNeverSuggest
(pluginId: string)
src/utils/plugins/lspRecommendation.ts:316
↓ 1 callersFunctionaddToPromptHistory
( command: HistoryEntry | string, )
src/history.ts:355
↓ 1 callersFunctionaddToTotalCostState
( cost: number, modelUsage: ModelUsage, model: string, )
src/bootstrap/state.ts:557
↓ 1 callersFunctionaddToTotalDurationState
( duration: number, durationWithoutRetries: number, )
src/bootstrap/state.ts:543
↓ 1 callersFunctionaddToTotalLinesChanged
(added: number, removed: number)
src/bootstrap/state.ts:691
↓ 1 callersFunctionaddToTotalModelUsage
( cost: number, usage: Usage, model: string, )
src/cost-tracker.ts:250
↓ 1 callersFunctionaddToTurnClassifierDuration
(duration: number)
src/bootstrap/state.ts:627
↓ 1 callersMethodaddTool
* Add a tool to the execution queue. Will start executing immediately if conditions allow.
src/services/tools/StreamingToolExecutor.ts:76
↓ 1 callersFunctionaddToolContentEvent
( _eventName: string, _attributes: SpanMetadata, )
src/utils/telemetry/sessionTracing.ts:113
↓ 1 callersFunctionadjustParamsForNonStreaming
(params: T, maxTokensCap: number)
src/services/api/claude.ts:3364
↓ 1 callersFunctionadvanceScan
(target: number)
src/utils/bash/heredoc.ts:231
↓ 1 callersFunctionagentsHandler
()
src/cli/handlers/agents.ts:32
↓ 1 callersFunctionaggregateClaudeCodeStats
()
src/utils/stats.ts:640
↓ 1 callersFunctionaggregateData
( sessions: SessionMeta[], facets: Map<string, SessionFacets>, )
src/commands/insights.ts:1145
↓ 1 callersFunctionaliasesOf
(targets: ReadonlySet<string>)
src/utils/powershell/dangerousCmdlets.ts:72
↓ 1 callersFunctionallToolsResolved
(msg: RenderableMessage, resolvedToolUseIDs: Set<string>)
src/components/MessageRow.tsx:315
↓ 1 callersFunctionanalyzeCommand
( rootNode: unknown, command: string, )
src/utils/bash/treeSitterAnalysis.ts:496
↓ 1 callersFunctionanalyzeContext
(messages: Message[])
src/utils/contextAnalysis.ts:27
↓ 1 callersFunctionanalyzeSectionSizes
* Parse the session memory file and analyze section sizes
src/services/SessionMemory/prompts.ts:134
↓ 1 callersFunctionanimatedMove
* Port of Cowork's `animateMouseMovement` + `animatedMove`. Ease-out-cubic at * 60fps; distance-proportional duration at 2000 px/sec, capped at 0.5s.
src/utils/computerUse/executor.ts:217
↓ 1 callersMethodannotateStderrWithSandboxFailures
(command: string, stderr: string)
src/utils/sandbox/sandbox-adapter.ts:918
↓ 1 callersFunctionansi256FromRgb
(r: number, g: number, b: number)
src/native-ts/color-diff/index.ts:105
↓ 1 callersFunctionansiToPng
( ansiText: string, options: AnsiToPngOptions = {}, )
src/utils/ansiToPng.ts:91
↓ 1 callersMethodappendEventsToFile
( filePath: string, events: FirstPartyEventLoggingEvent[], )
src/services/analytics/firstPartyEventLoggingExporter.ts:194
↓ 1 callersFunctionappendMessageTagToUserMessage
* Appends a [id:...] message ID tag to the last text block of a user message. * Only mutates the API-bound copy, not the stored message. * This lets
src/utils/messages.ts:1620
↓ 1 callersFunctionappendMessageToLocalAgent
(taskId: string, message: Message, setAppState: (f: (prev: AppState) => AppState) => void)
src/tasks/LocalAgentTask/LocalAgentTask.tsx:175
↓ 1 callersFunctionappendSessionLogImpl
* Internal implementation of appendSessionLog with retry logic * Retries on transient errors (network, 5xx, 429). On 409, adopts the server's * last
src/services/api/sessionIngress.ts:63
↓ 1 callersFunctionappendSystemContext
( systemPrompt: SystemPrompt, context: { [k: string]: string }, )
src/utils/api.ts:437
↓ 1 callersFunctionappendTaskOutput
(taskId: string, content: string)
src/utils/task/diskOutput.ts:268
↓ 1 callersFunctionappendToFile
(filePath: string, entries: string[])
src/services/api/dumpPrompts.ts:67
↓ 1 callersFunctionappendToLog
(path: string, message: object)
src/utils/errorLogSink.ts:111
↓ 1 callersFunctionapplyBackground
(h: Highlight, theme: Theme, ranges: Range[])
src/native-ts/color-diff/index.ts:768
↓ 1 callersFunctionapplyBedrockRegionPrefix
( modelId: string, prefix: BedrockRegionPrefix, )
src/utils/model/bedrock.ts:248
↓ 1 callersFunctionapplyBorderStyles
( node: LayoutNode, style: Styles, resolvedStyle?: Styles, )
src/ink/styles.ts:692
↓ 1 callersMethodapplyChanges
(input: TInput, modifiedEdits: FileEdit[])
src/components/permissions/FilePermissionDialog/ideDiffConfig.ts:22
↓ 1 callersFunctionapplyCurlyDoubleQuotes
(str: string)
src/tools/FileEditTool/utils.ts:156
↓ 1 callersFunctionapplyCurlySingleQuotes
(str: string)
src/tools/FileEditTool/utils.ts:173
↓ 1 callersFunctionapplyDimensionStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:630
↓ 1 callersFunctionapplyDisplayStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:684
↓ 1 callersFunctionapplyExtraCACertsFromConfig
()
src/utils/caCertsConfig.ts:34
↓ 1 callersFunctionapplyFlexStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:514
↓ 1 callersFunctionapplyFormatOptimizations
( image: SharpInstance, format: string, )
src/utils/imageResizer.ts:682
↓ 1 callersFunctionapplyGapStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:741
↓ 1 callersFunctionapplyGrouping
( messages: MessageWithoutProgress[], tools: Tools, verbose: boolean = false, )
src/utils/groupToolUses.ts:54
← previousnext →4,201–4,300 of 11,548, ranked by callers