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
↓ 2 callers
Function
writeDiffToTerminal
( terminal: Terminal, diff: Diff, skipSyncMarkers = false, )
src/ink/terminal.ts:190
↓ 2 callers
Function
writeFileAndFlush
( filePath: string, content: string, flag: 'w' | 'wx' = 'w', )
src/components/agents/agentFileUtils.ts:260
↓ 2 callers
Function
writeFileLines
( filePath: string, lines: string[], )
src/utils/shellConfig.ts:96
↓ 2 callers
Function
writeHighWaterMark
( taskListId: string, value: number, )
src/utils/tasks.ts:125
↓ 2 callers
Function
writeIfMissing
* 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 callers
Function
writeMcpjsonFile
* 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 callers
Function
writeOut
(stream: NodeJS.WriteStream, data: string)
src/utils/process.ts:17
↓ 2 callers
Function
writePerfettoTrace
* 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 callers
Function
writeRules
(rules: AutoModeRules)
src/cli/handlers/autoMode.ts:20
↓ 2 callers
Function
writeToFile
(text: string, filename: string)
src/commands/copy/copy.tsx:73
↓ 2 callers
Function
yankPop
()
src/utils/Cursor.ts:91
↓ 1 callers
Method
#createResultPromise
()
src/utils/ShellCommand.ts:263
↓ 1 callers
Method
#drain
()
src/utils/task/diskOutput.ts:207
↓ 1 callers
Method
#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 callers
Method
#readStdoutFromFile
()
src/utils/task/TaskOutput.ts:297
↓ 1 callers
Method
#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 callers
Method
#startSizeWatchdog
()
src/utils/ShellCommand.ts:239
↓ 1 callers
Method
#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 callers
Method
#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 callers
Method
#writeAllChunks
()
src/utils/task/diskOutput.ts:178
↓ 1 callers
Function
AUTO_REJECT_MESSAGE
(toolName: string)
src/utils/messages.ts:234
↓ 1 callers
Function
DANGEROUS_uncachedSystemPromptSection
( name: string, compute: ComputeFn, _reason: string, )
src/constants/systemPromptSections.ts:32
↓ 1 callers
Function
DONT_ASK_REJECT_MESSAGE
(toolName: string)
src/utils/messages.ts:237
↓ 1 callers
Function
LOCAL_REVIEW_PROMPT
(args: string)
src/commands/review.ts:9
↓ 1 callers
Function
_bundleWithFallback
( gitRoot: string, bundlePath: string, maxBytes: number, hasStash: boolean, signal: AbortSignal | un
src/utils/teleport/gitBundle.ts:50
↓ 1 callers
Method
_doRefresh
( refreshToken: string, )
src/services/mcp/auth.ts:2177
↓ 1 callers
Function
_executeApiKeyHelper
( isNonInteractiveSession: boolean, )
src/utils/auth.ts:539
↓ 1 callers
Method
_isImmediatePropagationStopped
@internal
src/ink/events/terminal-event.ts:93
↓ 1 callers
Method
_isPropagationStopped
@internal
src/ink/events/terminal-event.ts:88
↓ 1 callers
Method
_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 callers
Method
_resetFlushState
@internal Reset flush/queue state for testing.
src/utils/sessionStorage.ts:573
↓ 1 callers
Method
_setTarget
@internal
src/ink/events/terminal-event.ts:73
↓ 1 callers
Function
abortPromptSuggestion
()
src/services/PromptSuggestion/promptSuggestion.ts:96
↓ 1 callers
Function
acceptSpeculation
( state: SpeculationState, setAppState: (f: (prev: AppState) => AppState) => void, cleanMessageCount: nu
src/services/PromptSuggestion/speculation.ts:717
↓ 1 callers
Function
accumulateStreamEvents
( buffer: SDKPartialAssistantMessage[], state: StreamAccumulatorState, )
src/cli/transports/ccrClient.ts:141
↓ 1 callers
Function
accumulateToolUses
* Count tool uses in an assistant message and add to existing counts.
src/utils/streamlinedTransform.ts:109
↓ 1 callers
Function
acquireLock
* 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 callers
Function
acquirePaneCreationLock
* 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 callers
Function
acquirePaneCreationLock
* 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 callers
Function
acquireProcessLifetimeLock
( versionPath: string, lockFilePath: string, )
src/utils/nativeInstaller/pidLock.ts:299
↓ 1 callers
Method
addAll
* Add multiple items to the buffer at once.
src/utils/CircularBuffer.ts:29
↓ 1 callers
Function
addApiRequestToCache
(requestData: unknown)
src/services/api/dumpPrompts.ts:48
↓ 1 callers
Function
addCacheBreakpoints
( messages: (UserMessage | AssistantMessage)[], enablePromptCaching: boolean, querySource?: QuerySource,
src/services/api/claude.ts:3063
↓ 1 callers
Function
addCleanupResults
( a: CleanupResult, b: CleanupResult, )
src/utils/cleanup.ts:38
↓ 1 callers
Function
addCronTask
( cron: string, prompt: string, recurring: boolean, durable: boolean, agentId?: string, )
src/utils/cronTasks.ts:194
↓ 1 callers
Function
addDreamTurn
( taskId: string, turn: DreamTurn, touchedPaths: string[], setAppState: SetAppState, )
src/tasks/DreamTask/DreamTask.ts:76
↓ 1 callers
Function
addFileGlobRuleToGitignore
( filename: string, cwd: string = getCwd(), )
src/utils/git/gitignore.ts:53
↓ 1 callers
Function
addFlaggedPlugin
(pluginId: string)
src/utils/plugins/pluginFlagging.ts:151
↓ 1 callers
Function
addItemToJSONCArray
(content: string, newItem: unknown)
src/utils/json.ts:228
↓ 1 callers
Function
addMarker
(h: Highlight, theme: Theme)
src/native-ts/color-diff/index.ts:747
↓ 1 callers
Function
addPendingClear
( parent: DOMElement, rect: Rectangle, isAbsolute: boolean, )
src/ink/node-cache.ts:34
↓ 1 callers
Function
addPermissionRulesToSettings
( { ruleValues, ruleBehavior, }: { ruleValues: PermissionRuleValue[] ruleBehavior: Permiss
src/utils/permissions/permissionsLoader.ts:229
↓ 1 callers
Function
addSessionCronTask
(task: SessionCronTask)
src/bootstrap/state.ts:1298
↓ 1 callers
Function
addSlowOperation
(operation: string, durationMs: number)
src/bootstrap/state.ts:1569
↓ 1 callers
Function
addToExcludedCommands
( command: string, permissionUpdates?: Array<{ type: string rules: Array<{ toolName: string; ruleC
src/utils/sandbox/sandbox-adapter.ts:828
↓ 1 callers
Function
addToInMemoryErrorLog
(errorInfo: { error: string timestamp: string })
src/utils/log.ts:69
↓ 1 callers
Function
addToNeverSuggest
(pluginId: string)
src/utils/plugins/lspRecommendation.ts:316
↓ 1 callers
Function
addToPromptHistory
( command: HistoryEntry | string, )
src/history.ts:355
↓ 1 callers
Function
addToTotalCostState
( cost: number, modelUsage: ModelUsage, model: string, )
src/bootstrap/state.ts:557
↓ 1 callers
Function
addToTotalDurationState
( duration: number, durationWithoutRetries: number, )
src/bootstrap/state.ts:543
↓ 1 callers
Function
addToTotalLinesChanged
(added: number, removed: number)
src/bootstrap/state.ts:691
↓ 1 callers
Function
addToTotalModelUsage
( cost: number, usage: Usage, model: string, )
src/cost-tracker.ts:250
↓ 1 callers
Function
addToTurnClassifierDuration
(duration: number)
src/bootstrap/state.ts:627
↓ 1 callers
Method
addTool
* Add a tool to the execution queue. Will start executing immediately if conditions allow.
src/services/tools/StreamingToolExecutor.ts:76
↓ 1 callers
Function
addToolContentEvent
( _eventName: string, _attributes: SpanMetadata, )
src/utils/telemetry/sessionTracing.ts:113
↓ 1 callers
Function
adjustParamsForNonStreaming
(params: T, maxTokensCap: number)
src/services/api/claude.ts:3364
↓ 1 callers
Function
advanceScan
(target: number)
src/utils/bash/heredoc.ts:231
↓ 1 callers
Function
agentsHandler
()
src/cli/handlers/agents.ts:32
↓ 1 callers
Function
aggregateClaudeCodeStats
()
src/utils/stats.ts:640
↓ 1 callers
Function
aggregateData
( sessions: SessionMeta[], facets: Map<string, SessionFacets>, )
src/commands/insights.ts:1145
↓ 1 callers
Function
aliasesOf
(targets: ReadonlySet<string>)
src/utils/powershell/dangerousCmdlets.ts:72
↓ 1 callers
Function
allToolsResolved
(msg: RenderableMessage, resolvedToolUseIDs: Set<string>)
src/components/MessageRow.tsx:315
↓ 1 callers
Function
analyzeCommand
( rootNode: unknown, command: string, )
src/utils/bash/treeSitterAnalysis.ts:496
↓ 1 callers
Function
analyzeContext
(messages: Message[])
src/utils/contextAnalysis.ts:27
↓ 1 callers
Function
analyzeSectionSizes
* Parse the session memory file and analyze section sizes
src/services/SessionMemory/prompts.ts:134
↓ 1 callers
Function
animatedMove
* 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 callers
Method
annotateStderrWithSandboxFailures
(command: string, stderr: string)
src/utils/sandbox/sandbox-adapter.ts:918
↓ 1 callers
Function
ansi256FromRgb
(r: number, g: number, b: number)
src/native-ts/color-diff/index.ts:105
↓ 1 callers
Function
ansiToPng
( ansiText: string, options: AnsiToPngOptions = {}, )
src/utils/ansiToPng.ts:91
↓ 1 callers
Method
appendEventsToFile
( filePath: string, events: FirstPartyEventLoggingEvent[], )
src/services/analytics/firstPartyEventLoggingExporter.ts:194
↓ 1 callers
Function
appendMessageTagToUserMessage
* 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 callers
Function
appendMessageToLocalAgent
(taskId: string, message: Message, setAppState: (f: (prev: AppState) => AppState) => void)
src/tasks/LocalAgentTask/LocalAgentTask.tsx:175
↓ 1 callers
Function
appendSessionLogImpl
* 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 callers
Function
appendSystemContext
( systemPrompt: SystemPrompt, context: { [k: string]: string }, )
src/utils/api.ts:437
↓ 1 callers
Function
appendTaskOutput
(taskId: string, content: string)
src/utils/task/diskOutput.ts:268
↓ 1 callers
Function
appendToFile
(filePath: string, entries: string[])
src/services/api/dumpPrompts.ts:67
↓ 1 callers
Function
appendToLog
(path: string, message: object)
src/utils/errorLogSink.ts:111
↓ 1 callers
Function
applyBackground
(h: Highlight, theme: Theme, ranges: Range[])
src/native-ts/color-diff/index.ts:768
↓ 1 callers
Function
applyBedrockRegionPrefix
( modelId: string, prefix: BedrockRegionPrefix, )
src/utils/model/bedrock.ts:248
↓ 1 callers
Function
applyBorderStyles
( node: LayoutNode, style: Styles, resolvedStyle?: Styles, )
src/ink/styles.ts:692
↓ 1 callers
Method
applyChanges
(input: TInput, modifiedEdits: FileEdit[])
src/components/permissions/FilePermissionDialog/ideDiffConfig.ts:22
↓ 1 callers
Function
applyCurlyDoubleQuotes
(str: string)
src/tools/FileEditTool/utils.ts:156
↓ 1 callers
Function
applyCurlySingleQuotes
(str: string)
src/tools/FileEditTool/utils.ts:173
↓ 1 callers
Function
applyDimensionStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:630
↓ 1 callers
Function
applyDisplayStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:684
↓ 1 callers
Function
applyExtraCACertsFromConfig
()
src/utils/caCertsConfig.ts:34
↓ 1 callers
Function
applyFlexStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:514
↓ 1 callers
Function
applyFormatOptimizations
( image: SharpInstance, format: string, )
src/utils/imageResizer.ts:682
↓ 1 callers
Function
applyGapStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:741
↓ 1 callers
Function
applyGrouping
( messages: MessageWithoutProgress[], tools: Tools, verbose: boolean = false, )
src/utils/groupToolUses.ts:54
← previous
next →
4,201–4,300 of 11,548, ranked by callers