Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Noumena-Network/code
/ functions
Functions
14,563 in github.com/Noumena-Network/code
⨍
Functions
14,563
◇
Types & classes
433
↓ 2 callers
Function
withMockCurrentSession
( session: ResolvedAuthSession, fn: () => T, )
src/utils/user.test.ts:127
↓ 2 callers
Function
withMockCurrentSession
( session: ResolvedAuthSession, fn: () => T, )
src/utils/model/check1mAccess.test.ts:84
↓ 2 callers
Function
withMockCurrentSession
( session: ResolvedAuthSession, fn: () => Promise<T> | T, )
src/services/api/withRetry.test.ts:198
↓ 2 callers
Function
withResolvers
()
src/utils/withResolvers.ts:5
↓ 2 callers
Function
withStreamingVCR
( messages: Message[], f: () => AsyncGenerator< StreamEvent | AssistantMessage | SystemAPIErrorMessage
src/services/vcr.ts:350
↓ 2 callers
Function
withSupportedSyncEnv
(fn: () => T)
src/ink/logUpdateFlickerRegression.test.ts:43
↓ 2 callers
Function
withTheme
(node: ReactNode)
src/ink.ts:14
↓ 2 callers
Function
withTimeout
* Race a promise against a timeout. Cleans up the timer regardless of outcome * to avoid unhandled rejections from orphaned setTimeout callbacks.
src/services/lsp/LSPServerInstance.ts:499
↓ 2 callers
Function
wordBoundsAt
* Find the bounds of the same-class character run at (col, row). Returns * null if the click is out of bounds or lands on a noSelect cell. Used by *
src/ink/selection.ts:162
↓ 2 callers
Function
workerRequest
( host: string, )
src/session/replSandboxPermissionDispatch.test.ts:144
↓ 2 callers
Function
worktreePathFor
(repoRoot: string, slug: string)
src/utils/worktree.ts:237
↓ 2 callers
Function
wrap
(text: string, width: number)
src/buddy/CompanionSprite.tsx:28
↓ 2 callers
Function
wrapCommandText
( raw: string, origin: MessageOrigin | undefined, )
src/utils/messages.ts:5596
↓ 2 callers
Function
wrapFetchWithStepUpDetection
( baseFetch: FetchLike, provider: ClaudeAuthProvider, )
src/services/mcp/auth.ts:1354
↓ 2 callers
Function
wrapSpawn
( childProcess: ChildProcess, abortSignal: AbortSignal, timeout: number, taskOutput: TaskOutput, sho
src/utils/ShellCommand.ts:387
↓ 2 callers
Function
wrapText
(h: Highlight, width: number, theme: Theme)
src/native-ts/color-diff/index.ts:663
↓ 2 callers
Function
wrapWithCwd
(fn: () => T)
src/tools/AgentTool/AgentTool.tsx:642
↓ 2 callers
Method
wrapWithSandbox
( command: string, binShell?: string, customConfig?: Partial<SandboxRuntimeConfig>, abortSigna
src/utils/sandbox/sandbox-adapter.ts:925
↓ 2 callers
Function
wrapWithSoftWrap
* Wrap text and record which output lines are soft-wrap continuations * (i.e. the `\n` before them was inserted by word-wrap, not in the * source).
src/ink/render-node-to-output.ts:338
↓ 2 callers
Function
wrapper
(startPath: string)
src/utils/git.ts:103
↓ 2 callers
Function
write
(obj: object)
src/utils/errorLogSink.ts:53
↓ 2 callers
Function
writeAgentMetadata
( agentId: AgentId, metadata: AgentMetadata, )
src/utils/sessionStorage.ts:311
↓ 2 callers
Method
writeCell
(value: string)
src/ink/terminalReplayOracle.ts:130
↓ 2 callers
Function
writeCellWithStyleStr
* Write a cell with a pre-serialized style transition string (from * StylePool.transition). Inlines the txn logic to avoid closure/tuple/delta * all
src/ink/log-update.ts:1635
↓ 2 callers
Function
writeClipboardViaPbcopy
(text: string)
src/utils/computerUse/executor.ts:80
↓ 2 callers
Function
writeFileAndFlush
( filePath: string, content: string, flag: 'w' | 'wx' = 'w', )
src/components/agents/agentFileUtils.ts:325
↓ 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:126
↓ 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:54
↓ 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:89
↓ 2 callers
Function
writeOauthTokens
(expiresAt: number)
src/services/mcp/claudeai.test.ts:108
↓ 2 callers
Function
writeOauthTokens
(expiresAt: number)
src/services/api/usage.test.ts:101
↓ 2 callers
Function
writeOut
(stream: NodeJS.WriteStream, data: string)
src/utils/process.ts:17
↓ 2 callers
Function
writePayload
(path: string, payload: unknown)
src/commands/repaint/repaint.ts:297
↓ 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:1015
↓ 2 callers
Function
writeRules
(rules: AutoModeRules)
src/cli/handlers/autoMode.ts:20
↓ 2 callers
Function
writeTeamFixture
( teamName = 'team-alpha', memberName = 'agent-beta', )
src/session/replTurnController.test.ts:29
↓ 2 callers
Function
writeToFile
(text: string, filename: string)
src/commands/copy/copy.tsx:73
↓ 2 callers
Function
yankPop
()
src/utils/Cursor.ts:91
↓ 2 callers
Function
zeroStats
()
src/hooks/virtualScrollStats.ts:34
↓ 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:235
↓ 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:238
↓ 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:51
↓ 1 callers
Method
_doRefresh
( refreshToken: string, )
src/services/mcp/auth.ts:2177
↓ 1 callers
Function
_executeApiKeyHelper
( isNonInteractiveSession: boolean, )
src/utils/auth.ts:612
↓ 1 callers
Function
_format_error
(error)
rust/py_repl_host/assets/kernel.py:20
↓ 1 callers
Function
_format_error
(error)
src/tools/REPLTool/kernel.py:20
↓ 1 callers
Function
_handle_exec
(message)
rust/py_repl_host/assets/kernel.py:92
↓ 1 callers
Function
_handle_exec
(message)
src/tools/REPLTool/kernel.py:83
↓ 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
Function
_join_outputs
(stdout_text, stderr_text)
rust/py_repl_host/assets/kernel.py:28
↓ 1 callers
Function
_main
()
rust/py_repl_host/assets/kernel.py:179
↓ 1 callers
Function
_main
()
src/tools/REPLTool/kernel.py:171
↓ 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
Function
_read_stdin
(exec_queue)
rust/py_repl_host/assets/kernel.py:152
↓ 1 callers
Function
_read_stdin
(exec_queue)
src/tools/REPLTool/kernel.py:144
↓ 1 callers
Method
_resetFlushState
@internal Reset flush/queue state for testing.
src/utils/sessionStorage.ts:611
↓ 1 callers
Function
_run_tool
(exec_id, tool_name, args)
rust/py_repl_host/assets/kernel.py:57
↓ 1 callers
Function
_run_tool
(exec_id, tool_name, args)
src/tools/REPLTool/kernel.py:48
↓ 1 callers
Method
_setTarget
@internal
src/ink/events/terminal-event.ts:73
↓ 1 callers
Function
abortPromptSuggestion
()
src/services/PromptSuggestion/promptSuggestion.ts:97
↓ 1 callers
Function
acceptSpeculation
( state: SpeculationState, setAppState: (f: (prev: AppState) => AppState) => void, cleanMessageCount: nu
src/services/PromptSuggestion/speculation.ts:718
↓ 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:186
↓ 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
Function
activateProactive
(_reason?: string)
src/proactive/index.ts:20
↓ 1 callers
Function
activeInstallerClaudePatterns
()
src/constants/repoExposureAudit.ts:110
↓ 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:50
↓ 1 callers
Function
addBetaInteractionAttributes
( span: Span, userPrompt: string, )
src/utils/telemetry/betaSessionTracing.ts:224
↓ 1 callers
Function
addBetaLLMRequestAttributes
( span: Span, newContext?: LLMRequestNewContext, messagesForAPI?: APIMessage[], )
src/utils/telemetry/betaSessionTracing.ts:248
↓ 1 callers
Function
addBetaLLMResponseAttributes
( endAttributes: Record<string, string | number | boolean>, metadata?: { modelOutput?: string thin
src/utils/telemetry/betaSessionTracing.ts:407
↓ 1 callers
Function
addBetaToolInputAttributes
( span: Span, toolName: string, toolInput: string, )
src/utils/telemetry/betaSessionTracing.ts:450
↓ 1 callers
Function
addBetaToolResultAttributes
( endAttributes: Record<string, string | number | boolean>, toolName: string | number | boolean, toolRes
src/utils/telemetry/betaSessionTracing.ts:475
↓ 1 callers
Function
addCacheBreakpoints
( messages: (UserMessage | AssistantMessage)[], enablePromptCaching: boolean, querySource?: QuerySource,
src/services/api/claude.ts:3090
↓ 1 callers
Function
addCleanupResults
( a: CleanupResult, b: CleanupResult, )
src/utils/cleanup.ts:39
↓ 1 callers
Function
addCronTask
( cron: string, prompt: string, recurring: boolean, durable: boolean, agentId?: string, )
src/utils/cronTasks.ts:212
↓ 1 callers
Function
addDreamTurn
( taskId: string, turn: DreamTurn, touchedPaths: string[], setAppState: SetAppState, )
src/tasks/DreamTask/DreamTask.ts:76
↓ 1 callers
Function
addExceededLimit
( type: 'five_hour' | 'seven_day' | 'seven_day_opus' | 'seven_day_sonnet', hoursFromNow: number, )
src/services/mockRateLimits.ts:250
↓ 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
addInvokedSkill
()
src/tools/SkillTool/SkillTool.test.ts:69
↓ 1 callers
Function
addItemToJSONCArray
(content: string, newItem: unknown)
src/utils/json.ts:258
↓ 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
← previous
next →
6,001–6,100 of 14,563, ranked by callers