Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Austin1serb/Anthropic-Leaked-Source-Code
/ functions
Functions
11,462 in github.com/Austin1serb/Anthropic-Leaked-Source-Code
⨍
Functions
11,462
◇
Types & classes
340
↓ 6 callers
Function
normalizeFilePath
(filePath: string)
utils/commitAttribution.ts:252
↓ 6 callers
Function
normalizePathForConfigKey
(path: string)
utils/path.ts:149
↓ 6 callers
Method
notifySelectionChange
()
ink/ink.tsx:1248
↓ 6 callers
Function
parseAddress
(to: string)
utils/peerAddress.ts:8
↓ 6 callers
Function
parseAgentToolsFromFrontmatter
( toolsValue: unknown, )
utils/markdownConfigLoader.ts:113
↓ 6 callers
Function
parseCommand
Parse a single command: simple, compound, or control structure.
utils/bash/bashParser.ts:995
↓ 6 callers
Function
parseGitRemote
(input: string)
utils/detectRepository.ts:87
↓ 6 callers
Function
parseRGB
(colorStr: string)
components/Spinner/utils.ts:70
↓ 6 callers
Function
persistDenialState
* Persist denial tracking state. For async subagents with localDenialTracking, * mutate the local state in place (since setAppState is a no-op). Othe
utils/permissions/permissions.ts:963
↓ 6 callers
Function
persistPermissionUpdate
(update: PermissionUpdate)
utils/permissions/PermissionUpdate.ts:222
↓ 6 callers
Function
persistPermissionUpdates
(updates: PermissionUpdate[])
utils/permissions/PermissionUpdate.ts:349
↓ 6 callers
Function
pick
(rng: () => number, arr: readonly T[])
buddy/companion.ts:39
↓ 6 callers
Function
poll
()
hooks/usePrStatus.ts:49
↓ 6 callers
Function
processMdRules
({ rulesDir, type, processedPaths, includeExternal, conditionalRule, visitedDirs = new Set(), }: {
utils/claudemd.ts:697
↓ 6 callers
Function
psExeHasParamAbbreviation
* Wrapper around commandHasArgAbbreviation that also matches alternative * parameter prefixes (`/`, en-dash, em-dash, horizontal-bar). PowerShell's
tools/PowerShellTool/powershellSecurity.ts:83
↓ 6 callers
Function
query
( params: QueryParams, )
query.ts:219
↓ 6 callers
Function
readFileSyncWithMetadata
(filePath: string)
utils/fileRead.ts:75
↓ 6 callers
Function
readLockContent
( lockFilePath: string, )
utils/nativeInstaller/pidLock.ts:137
↓ 6 callers
Function
recordSidechainTranscript
( messages: Message[], agentId?: string, startingParentUuid?: UUID | null, )
utils/sessionStorage.ts:1451
↓ 6 callers
Method
render
()
components/SentryErrorBoundary.ts:21
↓ 6 callers
Function
resetSessionFilePointer
()
utils/sessionStorage.ts:1505
↓ 6 callers
Function
resolveColor
* Resolves a color value that may be a theme key to a raw Color.
components/design-system/ThemedBox.tsx:42
↓ 6 callers
Function
resolveThemeSetting
(setting: ThemeSetting)
utils/systemTheme.ts:42
↓ 6 callers
Method
resume
()
ink/ink.tsx:797
↓ 6 callers
Function
rgb
(r: number, g: number, b: number)
ink/hooks/use-tab-status.ts:13
↓ 6 callers
Function
ripgrepCommand
()
utils/ripgrep.ts:67
↓ 6 callers
Function
roundValue
( v: number, scale: number, forceCeil: boolean, forceFloor: boolean, )
native-ts/yoga-layout/index.ts:2483
↓ 6 callers
Function
row
(l1: string, v1: string, l2: string, v2: string)
components/Stats.tsx:1106
↓ 6 callers
Function
runWithAgentContext
(context: AgentContext, fn: () => T)
utils/agentContext.ts:108
↓ 6 callers
Function
safeEntries
( obj: Record<string, V> | undefined | null, )
commands/insights.ts:3025
↓ 6 callers
Function
saveInstalledPluginsV2
* Save installed plugins in V2 format to installed_plugins.json. * This is the single source of truth after V1/V2 consolidation.
utils/plugins/installedPluginsManager.ts:370
↓ 6 callers
Function
scopeToSettingSource
( scope: PluginScope, )
utils/plugins/pluginIdentifier.ts:104
↓ 6 callers
Function
sendNotification
( notif: NotificationOptions, terminal: TerminalNotification, )
services/notifier.ts:18
↓ 6 callers
Method
setJustifyContent
(justify: LayoutJustify)
ink/layout/yoga.ts:231
↓ 6 callers
Function
shift
(p: Point, vRow: number)
ink/selection.ts:540
↓ 6 callers
Function
shouldBypassProxy
( urlString: string, noProxy: string | undefined = getNoProxy(), )
utils/proxy.ts:88
↓ 6 callers
Method
shutdown
()
utils/telemetry/bigqueryExporter.ts:215
↓ 6 callers
Method
start
Mark flush as in-progress. enqueue() will start queuing items.
bridge/flushGate.ts:29
↓ 6 callers
Method
startOfLine
()
utils/Cursor.ts:426
↓ 6 callers
Function
stopConnecting
Stop the connecting spinner.
bridge/bridgeUI.ts:180
↓ 6 callers
Function
strEquals
(a: string, b: string)
tools/PowerShellTool/powershellPermissions.ts:178
↓ 6 callers
Function
styleBorderLine
( line: string, color: Color | undefined, dim: boolean | undefined, )
ink/render-border.ts:70
↓ 6 callers
Function
substitutePluginVariables
( value: string, plugin: { path: string; source?: string }, )
utils/plugins/pluginOptionsStorage.ts:326
↓ 6 callers
Function
suggestionForExactCommand
(command: string)
tools/BashTool/bashPermissions.ts:266
↓ 6 callers
Function
symbolKindToString
* Maps SymbolKind enum to readable string
tools/LSPTool/formatters.ts:272
↓ 6 callers
Function
toArray
(val: T | T[])
utils/shell/specPrefix.ts:36
↓ 6 callers
Function
toSDKMessages
(messages: Message[])
utils/messages/mappers.ts:115
↓ 6 callers
Method
trackWrite
(fn: () => Promise<T>)
utils/sessionStorage.ts:597
↓ 6 callers
Function
transitionHyperlink
( diff: Diff, current: Hyperlink, target: Hyperlink, )
ink/log-update.ts:470
↓ 6 callers
Method
txn
(fn: (prev: Point) => [patches: Diff, next: Delta])
ink/log-update.ts:765
↓ 6 callers
Function
uninstallPluginOp
( plugin: string, scope: InstallableScope = 'user', deleteDataDir = true, )
services/plugins/pluginOperations.ts:427
↓ 6 callers
Function
unmount
()
ink/root.ts:99
↓ 6 callers
Method
unmount
(error?: Error | number | null)
ink/ink.tsx:1455
↓ 6 callers
Function
updateActiveSpeculationState
( setAppState: SetAppState, updater: (state: ActiveSpeculationState) => Partial<ActiveSpeculationState>, )
services/PromptSuggestion/speculation.ts:310
↓ 6 callers
Function
updateUsage
( usage: Readonly<NonNullableUsage>, partUsage: BetaMessageDeltaUsage | undefined, )
services/api/claude.ts:2924
↓ 6 callers
Function
useElapsedTime
( startTime: number, isRunning: boolean, ms: number = 1000, pausedMs: number = 0, endTime?: number,
hooks/useElapsedTime.ts:17
↓ 6 callers
Function
usePermissionRequestLogging
( toolUseConfirm: ToolUseConfirm, unaryEvent: UnaryEvent, )
components/permissions/hooks.ts:101
↓ 6 callers
Function
useStartupNotification
( compute: () => Result | Promise<Result>, )
hooks/notifs/useStartupNotification.ts:19
↓ 6 callers
Function
validatePath
* Validates a file system path, handling tilde expansion.
tools/PowerShellTool/pathValidation.ts:1013
↓ 6 callers
Function
withOAuth401Retry
( request: () => Promise<T>, opts?: { also403Revoked?: boolean }, )
utils/http.ts:115
↓ 6 callers
Function
writeBridgePointer
( dir: string, pointer: BridgePointer, )
bridge/bridgePointer.ts:62
↓ 6 callers
Function
zodToJsonSchema
(schema: ZodTypeAny)
utils/zodToJsonSchema.ts:17
↓ 5 callers
Method
_notify
()
utils/QueryGuard.ts:118
↓ 5 callers
Function
ackWork
()
bridge/bridgeMain.ts:837
↓ 5 callers
Function
action
(a: { key: K; label: string | ((s: MessageActionsState) => string); types: readonly T[]; applies?: (s:
components/messageActions.tsx:148
↓ 5 callers
Function
addMarketplaceSource
( source: MarketplaceSource, onProgress?: MarketplaceProgressCallback, )
utils/plugins/marketplaceManager.ts:1782
↓ 5 callers
Function
addMcpConfig
( name: string, config: unknown, scope: ConfigScope, )
services/mcp/config.ts:625
↓ 5 callers
Function
addScopeToServers
* Internal utility: Add scope to server configs
services/mcp/config.ts:69
↓ 5 callers
Function
appendCappedMessage
( prev: readonly T[] | undefined, item: T, )
tasks/InProcessTeammateTask/types.ts:108
↓ 5 callers
Function
appendFileSync
(path, data, options)
utils/fsOperations.ts:468
↓ 5 callers
Function
applyOperator
( op: Operator, from: number, to: number, ctx: OperatorContext, linewise: boolean = false, )
vim/operators.ts:493
↓ 5 callers
Function
applyTextStyles
(text: string, styles: TextStyles)
ink/colorize.ts:176
↓ 5 callers
Function
assembleToolPool
( permissionContext: ToolPermissionContext, mcpTools: Tools, )
tools.ts:345
↓ 5 callers
Function
bashToolCheckExactMatchPermission
( input: z.infer<typeof BashTool.inputSchema>, toolPermissionContext: ToolPermissionContext, )
tools/BashTool/bashPermissions.ts:991
↓ 5 callers
Function
buildBridgeConnectUrl
( environmentId: string, ingressUrl?: string, )
bridge/bridgeStatusUtil.ts:39
↓ 5 callers
Function
buildPluginCommandTelemetryFields
( pluginInfo: { pluginManifest: PluginManifest; repository: string }, managedNames: Set<string> | null = n
utils/telemetry/pluginTelemetry.ts:173
↓ 5 callers
Function
buildPostCompactMessages
(result: CompactionResult)
services/compact/compact.ts:330
↓ 5 callers
Function
calculateUSDCost
(resolvedModel: string, usage: Usage)
utils/modelCost.ts:177
↓ 5 callers
Method
captureScrolledRows
* Capture text from rows about to scroll out of the viewport during * drag-to-scroll. Must be called BEFORE the ScrollBox scrolls so the * scree
ink/ink.tsx:1157
↓ 5 callers
Method
checkDependencies
()
utils/sandbox/sandbox-adapter.ts:887
↓ 5 callers
Function
checkPathTraversal
* Check for parent-directory segments ('..') in a path string. * * For plugin.json component paths this is a security concern (escaping the plugin d
utils/plugins/validatePlugin.ts:92
↓ 5 callers
Function
checkStartFailed
()
services/lsp/LSPClient.ts:73
↓ 5 callers
Function
classifyBashCommand
( _command: string, _cwd: string, _descriptions: string[], _behavior: ClassifierBehavior, _signal: A
utils/permissions/bashClassifier.ts:40
↓ 5 callers
Function
clearCommandsCache
()
commands.ts:534
↓ 5 callers
Function
clearOAuthTokenCache
()
utils/auth.ts:1308
↓ 5 callers
Function
computeHash
(data: unknown)
services/api/promptCacheBreakDetection.ts:170
↓ 5 callers
Method
connect
()
server/directConnectManager.ts:50
↓ 5 callers
Function
consumeKeyword
(P: ParseState, name: string, kids: TsNode[])
utils/bash/bashParser.ts:3688
↓ 5 callers
Function
containsPathTraversal
(path: string)
utils/path.ts:133
↓ 5 callers
Function
convertEffortValueToLevel
(value: EffortValue)
utils/effort.ts:202
↓ 5 callers
Function
countTokensWithFallback
( messages: Anthropic.Beta.Messages.BetaMessageParam[], tools: Anthropic.Beta.Messages.BetaToolUnion[], )
utils/analyzeContext.ts:77
↓ 5 callers
Function
createCompressedImageResult
( buffer: Buffer, mediaType: string, originalSize: number, )
utils/imageResizer.ts:632
↓ 5 callers
Function
createHyperlink
( url: string, content?: string, options?: HyperlinkOptions, )
utils/hyperlink.ts:24
↓ 5 callers
Function
createPluginCommand
* Create a Command from a plugin markdown file
utils/plugins/loadPluginCommands.ts:218
↓ 5 callers
Function
createSortedHelpConfig
()
main.tsx:890
↓ 5 callers
Function
createToolResultMessage
( tool: Tool<AnyObject, Output>, toolUseResult: Output, )
utils/messages.ts:4288
↓ 5 callers
Function
createToolUseMessage
( toolName: string, input: { [key: string]: string | number }, )
utils/messages.ts:4325
↓ 5 callers
Function
createUserInterruptionMessage
({ toolUse = false, }: { toolUse?: boolean })
utils/messages.ts:545
↓ 5 callers
Function
dangerousRemovalDeny
(path: string)
tools/PowerShellTool/pathValidation.ts:848
↓ 5 callers
Function
debugBody
(data: unknown)
bridge/debugUtils.ts:46
← previous
next →
901–1,000 of 11,462, ranked by callers