Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AnukarOP/claude-code-leaked
/ functions
Functions
11,462 in github.com/AnukarOP/claude-code-leaked
⨍
Functions
11,462
◇
Types & classes
340
↓ 2 callers
Method
withInverse
(baseId: number)
source code/ink/screen.ts:172
↓ 2 callers
Function
withResolvers
()
source code/utils/withResolvers.ts:7
↓ 2 callers
Function
withStreamingVCR
( messages: Message[], f: () => AsyncGenerator< StreamEvent | AssistantMessage | SystemAPIErrorMessage
source code/services/vcr.ts:351
↓ 2 callers
Function
withTheme
(node: ReactNode)
source code/ink.ts:16
↓ 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 *
source code/ink/selection.ts:164
↓ 2 callers
Function
worktreePathFor
(repoRoot: string, slug: string)
source code/utils/worktree.ts:227
↓ 2 callers
Function
wrapCommandText
( raw: string, origin: MessageOrigin | undefined, )
source code/utils/messages.ts:5498
↓ 2 callers
Function
wrapFetchWithStepUpDetection
( baseFetch: FetchLike, provider: ClaudeAuthProvider, )
source code/services/mcp/auth.ts:1356
↓ 2 callers
Function
wrapSpawn
( childProcess: ChildProcess, abortSignal: AbortSignal, timeout: number, taskOutput: TaskOutput, sho
source code/utils/ShellCommand.ts:389
↓ 2 callers
Function
wrapText
(h: Highlight, width: number, theme: Theme)
source code/native-ts/color-diff/index.ts:665
↓ 2 callers
Function
wrapWithCwd
(fn: () => T)
source code/tools/AgentTool/AgentTool.tsx:643
↓ 2 callers
Method
wrapWithSandbox
( command: string, binShell?: string, customConfig?: Partial<SandboxRuntimeConfig>, abortSigna
source code/utils/sandbox/sandbox-adapter.ts:912
↓ 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).
source code/ink/render-node-to-output.ts:337
↓ 2 callers
Function
writeAgentMetadata
( agentId: AgentId, metadata: AgentMetadata, )
source code/utils/sessionStorage.ts:285
↓ 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
source code/ink/log-update.ts:640
↓ 2 callers
Function
writeClipboardViaPbcopy
(text: string)
source code/utils/computerUse/executor.ts:82
↓ 2 callers
Function
writeDiffToTerminal
( terminal: Terminal, diff: Diff, skipSyncMarkers = false, )
source code/ink/terminal.ts:192
↓ 2 callers
Function
writeFileAndFlush
( filePath: string, content: string, flag: 'w' | 'wx' = 'w', )
source code/components/agents/agentFileUtils.ts:262
↓ 2 callers
Function
writeFileLines
( filePath: string, lines: string[], )
source code/utils/shellConfig.ts:98
↓ 2 callers
Function
writeHighWaterMark
( taskListId: string, value: number, )
source code/utils/tasks.ts:127
↓ 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.
source code/utils/localInstaller.ts:40
↓ 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
source code/services/mcp/config.ts:90
↓ 2 callers
Function
writeOut
(stream: NodeJS.WriteStream, data: string)
source code/utils/process.ts:19
↓ 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.
source code/utils/telemetry/perfettoTracing.ts:1013
↓ 2 callers
Function
writeRules
(rules: AutoModeRules)
source code/cli/handlers/autoMode.ts:22
↓ 2 callers
Function
writeToFile
(text: string, filename: string)
source code/commands/copy/copy.tsx:75
↓ 2 callers
Function
yankPop
()
source code/utils/Cursor.ts:93
↓ 1 callers
Method
#createResultPromise
()
source code/utils/ShellCommand.ts:265
↓ 1 callers
Method
#drain
()
source code/utils/task/diskOutput.ts:209
↓ 1 callers
Method
#queueToBuffers
Keep this in a separate method so that GC doesn't keep it alive for any longer than it should.
source code/utils/task/diskOutput.ts:191
↓ 1 callers
Method
#readStdoutFromFile
()
source code/utils/task/TaskOutput.ts:299
↓ 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 *
source code/hooks/useTasksV2.ts:92
↓ 1 callers
Method
#startSizeWatchdog
()
source code/utils/ShellCommand.ts:241
↓ 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
source code/hooks/useTasksV2.ts:188
↓ 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).
source code/utils/task/TaskOutput.ts:209
↓ 1 callers
Method
#writeAllChunks
()
source code/utils/task/diskOutput.ts:180
↓ 1 callers
Function
AUTO_REJECT_MESSAGE
(toolName: string)
source code/utils/messages.ts:236
↓ 1 callers
Function
DANGEROUS_uncachedSystemPromptSection
( name: string, compute: ComputeFn, _reason: string, )
source code/constants/systemPromptSections.ts:34
↓ 1 callers
Function
DONT_ASK_REJECT_MESSAGE
(toolName: string)
source code/utils/messages.ts:239
↓ 1 callers
Function
LOCAL_REVIEW_PROMPT
(args: string)
source code/commands/review.ts:11
↓ 1 callers
Function
_bundleWithFallback
( gitRoot: string, bundlePath: string, maxBytes: number, hasStash: boolean, signal: AbortSignal | un
source code/utils/teleport/gitBundle.ts:52
↓ 1 callers
Method
_doRefresh
( refreshToken: string, )
source code/services/mcp/auth.ts:2179
↓ 1 callers
Function
_executeApiKeyHelper
( isNonInteractiveSession: boolean, )
source code/utils/auth.ts:540
↓ 1 callers
Method
_isImmediatePropagationStopped
@internal
source code/ink/events/terminal-event.ts:95
↓ 1 callers
Method
_isPropagationStopped
@internal
source code/ink/events/terminal-event.ts:90
↓ 1 callers
Method
_prepareForTarget
* Hook for subclasses to do per-node setup before each handler fires. * Default is a no-op.
source code/ink/events/terminal-event.ts:103
↓ 1 callers
Method
_resetFlushState
@internal Reset flush/queue state for testing.
source code/utils/sessionStorage.ts:575
↓ 1 callers
Method
_setTarget
@internal
source code/ink/events/terminal-event.ts:75
↓ 1 callers
Function
abortPromptSuggestion
()
source code/services/PromptSuggestion/promptSuggestion.ts:98
↓ 1 callers
Function
acceptSpeculation
( state: SpeculationState, setAppState: (f: (prev: AppState) => AppState) => void, cleanMessageCount: nu
source code/services/PromptSuggestion/speculation.ts:719
↓ 1 callers
Function
accumulateStreamEvents
( buffer: SDKPartialAssistantMessage[], state: StreamAccumulatorState, )
source code/cli/transports/ccrClient.ts:143
↓ 1 callers
Function
accumulateToolUses
* Count tool uses in an assistant message and add to existing counts.
source code/utils/streamlinedTransform.ts:111
↓ 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
source code/utils/autoUpdater.ts:178
↓ 1 callers
Function
acquirePaneCreationLock
* Acquires a lock for pane creation, ensuring sequential execution. * Returns a release function that must be called when done.
source code/utils/swarm/backends/ITermBackend.ts:23
↓ 1 callers
Function
acquirePaneCreationLock
* Acquires a lock for pane creation, ensuring sequential execution. * Returns a release function that must be called when done.
source code/utils/swarm/backends/TmuxBackend.ts:45
↓ 1 callers
Function
acquireProcessLifetimeLock
( versionPath: string, lockFilePath: string, )
source code/utils/nativeInstaller/pidLock.ts:301
↓ 1 callers
Method
addAll
* Add multiple items to the buffer at once.
source code/utils/CircularBuffer.ts:31
↓ 1 callers
Function
addApiRequestToCache
(requestData: unknown)
source code/services/api/dumpPrompts.ts:50
↓ 1 callers
Function
addBetaInteractionAttributes
( span: Span, userPrompt: string, )
source code/utils/telemetry/betaSessionTracing.ts:225
↓ 1 callers
Function
addBetaLLMRequestAttributes
( span: Span, newContext?: LLMRequestNewContext, messagesForAPI?: APIMessage[], )
source code/utils/telemetry/betaSessionTracing.ts:249
↓ 1 callers
Function
addBetaLLMResponseAttributes
( endAttributes: Record<string, string | number | boolean>, metadata?: { modelOutput?: string thin
source code/utils/telemetry/betaSessionTracing.ts:408
↓ 1 callers
Function
addBetaToolInputAttributes
( span: Span, toolName: string, toolInput: string, )
source code/utils/telemetry/betaSessionTracing.ts:451
↓ 1 callers
Function
addBetaToolResultAttributes
( endAttributes: Record<string, string | number | boolean>, toolName: string | number | boolean, toolRes
source code/utils/telemetry/betaSessionTracing.ts:476
↓ 1 callers
Function
addCacheBreakpoints
( messages: (UserMessage | AssistantMessage)[], enablePromptCaching: boolean, querySource?: QuerySource,
source code/services/api/claude.ts:3065
↓ 1 callers
Function
addCleanupResults
( a: CleanupResult, b: CleanupResult, )
source code/utils/cleanup.ts:40
↓ 1 callers
Function
addCronTask
( cron: string, prompt: string, recurring: boolean, durable: boolean, agentId?: string, )
source code/utils/cronTasks.ts:196
↓ 1 callers
Function
addDreamTurn
( taskId: string, turn: DreamTurn, touchedPaths: string[], setAppState: SetAppState, )
source code/tasks/DreamTask/DreamTask.ts:78
↓ 1 callers
Function
addFileGlobRuleToGitignore
( filename: string, cwd: string = getCwd(), )
source code/utils/git/gitignore.ts:55
↓ 1 callers
Function
addFlaggedPlugin
(pluginId: string)
source code/utils/plugins/pluginFlagging.ts:153
↓ 1 callers
Function
addItemToJSONCArray
(content: string, newItem: unknown)
source code/utils/json.ts:230
↓ 1 callers
Function
addMarker
(h: Highlight, theme: Theme)
source code/native-ts/color-diff/index.ts:749
↓ 1 callers
Function
addPendingClear
( parent: DOMElement, rect: Rectangle, isAbsolute: boolean, )
source code/ink/node-cache.ts:36
↓ 1 callers
Function
addPermissionRulesToSettings
( { ruleValues, ruleBehavior, }: { ruleValues: PermissionRuleValue[] ruleBehavior: Permiss
source code/utils/permissions/permissionsLoader.ts:231
↓ 1 callers
Function
addSessionCronTask
(task: SessionCronTask)
source code/bootstrap/state.ts:1300
↓ 1 callers
Function
addSlowOperation
(operation: string, durationMs: number)
source code/bootstrap/state.ts:1571
↓ 1 callers
Function
addToExcludedCommands
( command: string, permissionUpdates?: Array<{ type: string rules: Array<{ toolName: string; ruleC
source code/utils/sandbox/sandbox-adapter.ts:830
↓ 1 callers
Function
addToInMemoryErrorLog
(errorInfo: { error: string timestamp: string })
source code/utils/log.ts:71
↓ 1 callers
Function
addToNeverSuggest
(pluginId: string)
source code/utils/plugins/lspRecommendation.ts:318
↓ 1 callers
Function
addToPromptHistory
( command: HistoryEntry | string, )
source code/history.ts:357
↓ 1 callers
Function
addToTotalCostState
( cost: number, modelUsage: ModelUsage, model: string, )
source code/bootstrap/state.ts:559
↓ 1 callers
Function
addToTotalDurationState
( duration: number, durationWithoutRetries: number, )
source code/bootstrap/state.ts:545
↓ 1 callers
Function
addToTotalLinesChanged
(added: number, removed: number)
source code/bootstrap/state.ts:693
↓ 1 callers
Function
addToTotalModelUsage
( cost: number, usage: Usage, model: string, )
source code/cost-tracker.ts:252
↓ 1 callers
Function
addToTurnClassifierDuration
(duration: number)
source code/bootstrap/state.ts:629
↓ 1 callers
Method
addTool
* Add a tool to the execution queue. Will start executing immediately if conditions allow.
source code/services/tools/StreamingToolExecutor.ts:78
↓ 1 callers
Function
addToolContentEvent
( eventName: string, attributes: Record<string, string | number | boolean>, )
source code/utils/telemetry/sessionTracing.ts:749
↓ 1 callers
Function
adjustParamsForNonStreaming
(params: T, maxTokensCap: number)
source code/services/api/claude.ts:3366
↓ 1 callers
Function
advanceScan
(target: number)
source code/utils/bash/heredoc.ts:233
↓ 1 callers
Function
agentsHandler
()
source code/cli/handlers/agents.ts:34
↓ 1 callers
Function
aggregateClaudeCodeStats
()
source code/utils/stats.ts:642
↓ 1 callers
Function
aggregateData
( sessions: SessionMeta[], facets: Map<string, SessionFacets>, )
source code/commands/insights.ts:1147
↓ 1 callers
Function
aliasesOf
(targets: ReadonlySet<string>)
source code/utils/powershell/dangerousCmdlets.ts:74
↓ 1 callers
Function
allToolsResolved
(msg: RenderableMessage, resolvedToolUseIDs: Set<string>)
source code/components/MessageRow.tsx:317
↓ 1 callers
Function
analyzeCommand
( rootNode: unknown, command: string, )
source code/utils/bash/treeSitterAnalysis.ts:498
↓ 1 callers
Function
analyzeContext
(messages: Message[])
source code/utils/contextAnalysis.ts:29
↓ 1 callers
Function
analyzeSectionSizes
* Parse the session memory file and analyze section sizes
source code/services/SessionMemory/prompts.ts:136
↓ 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.
source code/utils/computerUse/executor.ts:219
↓ 1 callers
Method
annotateStderrWithSandboxFailures
(command: string, stderr: string)
source code/utils/sandbox/sandbox-adapter.ts:920
↓ 1 callers
Function
ansi256FromRgb
(r: number, g: number, b: number)
source code/native-ts/color-diff/index.ts:107
↓ 1 callers
Function
ansiToPng
( ansiText: string, options: AnsiToPngOptions = {}, )
source code/utils/ansiToPng.ts:93
← previous
next →
4,201–4,300 of 11,462, ranked by callers