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
↓ 1 callers
Function
parseSpawnValue
(raw: string | undefined)
src/bridge/bridgeMain.ts:1722
↓ 1 callers
Function
parseSplitOutput
* Parses the session ID from `it2 session split` output. * Format: "Created new pane: <session-id>" * * NOTE: This UUID is only valid when splittin
src/utils/swarm/backends/ITermBackend.ts:50
↓ 1 callers
Function
parseSubscriptIndex
Legacy byte-range subscript index parser — kept for callers that pre-scan.
src/utils/bash/bashParser.ts:1562
↓ 1 callers
Function
parseSubscriptIndexInline
* Parse subscript index content. Parsed arithmetically per tree-sitter grammar: * `${a[1+2]}` → binary_expression; `${a[++i]}` → unary_expression(wor
src/utils/bash/bashParser.ts:1527
↓ 1 callers
Function
parseTabStatus
* Parse OSC 21337 payload: `key=value;key=value;...` with `\;` and `\\` * escapes inside values. Bare key or `key=` clears that field; unknown * key
src/ink/termio/osc.ts:349
↓ 1 callers
Function
parseTeammateMessages
* Parse all teammate messages from XML format: * <teammate-message teammate_id="alice" color="red" summary="Brief update">message content</teammate-m
src/components/messages/UserTeammateMessage.tsx:32
↓ 1 callers
Function
parseTerminalResponse
* Try to recognize a sequence token as a terminal response. * Returns null if the sequence is not a known response pattern * (i.e. it should be trea
src/ink/parse-keypress.ts:122
↓ 1 callers
Function
parseTestBinary
(P: ParseState, closer: string)
src/utils/bash/bashParser.ts:3821
↓ 1 callers
Function
parseTestExtglobRhs
(P: ParseState)
src/utils/bash/bashParser.ts:3982
↓ 1 callers
Function
parseTestNegatablePrimary
* Parse `!`-negated or test-operator (`-f`) or parenthesized primary — but NOT * a binary comparison. Used as LHS of binary_expression so `! x =~ y`
src/utils/bash/bashParser.ts:3791
↓ 1 callers
Function
parseToSpans
* Parse an ANSI string into spans using the termio parser.
src/ink/Ansi.tsx:118
↓ 1 callers
Function
parseTokenBudget
(text: string)
src/utils/tokenBudget.ts:21
↓ 1 callers
Function
parseToolPreset
(preset: string)
src/tools.ts:165
↓ 1 callers
Function
parseUnset
(P: ParseState, kwTok: Token)
src/utils/bash/bashParser.ts:3650
↓ 1 callers
Function
parseUpdates
(text: string)
src/components/messages/UserResourceUpdateMessage.tsx:19
↓ 1 callers
Function
parseValue
* Parse a config value starting at position i. * Handles quoted strings, escape sequences, and inline comments.
src/utils/git/gitConfigParser.ts:114
↓ 1 callers
Function
parseWhile
(P: ParseState, kwTok: Token)
src/utils/bash/bashParser.ts:3189
↓ 1 callers
Function
parseXmlThinking
* Parse XML thinking content: <thinking>...</thinking>
src/utils/permissions/yoloClassifier.ts:601
↓ 1 callers
Function
partialCompactConversation
( allMessages: Message[], pivotIndex: number, context: ToolUseContext, cacheSafeParams: CacheSafeParam
src/services/compact/compact.ts:772
↓ 1 callers
Function
partitionBetasByAllowlist
* Filter betas to only include those in the allowlist. * Returns allowed and disallowed betas separately.
src/utils/betas.ts:43
↓ 1 callers
Function
partitionByPriorDecision
* Partition candidates by their prior decision state: * - mustReapply: previously replaced → re-apply the cached replacement for * prefix stabil
src/utils/toolResultStorage.ts:649
↓ 1 callers
Function
partitionToolCalls
* Partition tool calls into batches where each batch is either: * 1. A single non-read-only tool, or * 2. Multiple consecutive read-only tools
src/services/tools/toolOrchestration.ts:91
↓ 1 callers
Method
patchConsole
()
src/ink/ink.tsx:1571
↓ 1 callers
Method
patchStderr
* Intercept process.stderr.write so stray writes (config.ts, hooks.ts, * third-party deps) don't corrupt the alt-screen buffer. patchConsole only
src/ink/ink.tsx:1604
↓ 1 callers
Function
pathFromToolUse
(toolUseConfirm: ToolUseConfirm)
src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx:8
↓ 1 callers
Function
pathsEqual
(path1: string, path2: string)
src/utils/file.ts:582
↓ 1 callers
Function
pathsOverlap
* One path is a prefix of the other. Special-cases root (normalize('/') + sep * = '//'). Case-insensitive on win32 since normalize() doesn't lowercas
src/utils/plugins/orphanedPluginFilter.ts:99
↓ 1 callers
Function
patternWithRoot
( pattern: string, source: PermissionRuleSource, )
src/utils/permissions/filesystem.ts:853
↓ 1 callers
Function
peekForStdinData
( stream: NodeJS.EventEmitter, ms: number, )
src/utils/process.ts:50
↓ 1 callers
Function
peekSpeculativeClassifierCheck
( command: string, )
src/tools/BashTool/bashPermissions.ts:1491
↓ 1 callers
Function
performBackgroundPluginInstallations
( setAppState: SetAppState, )
src/services/plugins/PluginInstallationManager.ts:60
↓ 1 callers
Function
performHandoff
()
src/components/DesktopHandoff.tsx:71
↓ 1 callers
Function
performHeapDump
( trigger: 'manual' | 'auto-1.5GB' = 'manual', dumpNumber = 0, )
src/utils/heapDumpService.ts:221
↓ 1 callers
Function
performMCPXaaAuth
* XAA (Cross-App Access) auth. * * One IdP browser login is reused across all XAA-configured MCP servers: * 1. Acquire an id_token from the IdP (ca
src/services/mcp/auth.ts:664
↓ 1 callers
Function
performPluginUpdate
* Perform the actual plugin update: fetch source, calculate version, copy to cache, update disk. * This is the core update execution extracted from u
src/services/plugins/pluginOperations.ts:896
↓ 1 callers
Function
performStartupChecks
(setAppState: SetAppState)
src/utils/plugins/performStartupChecks.tsx:24
↓ 1 callers
Function
permissionComponentForTool
(tool: Tool)
src/components/permissions/PermissionRequest.tsx:47
↓ 1 callers
Function
permissionResultToLog
(permissionResult: PermissionResult)
src/components/permissions/hooks.ts:31
↓ 1 callers
Function
permissionRuleExtractPrefix
( permissionRule: string, )
src/utils/permissions/shellRuleMatching.ts:43
↓ 1 callers
Function
persistRemoteAgentMetadata
* Persist a remote-agent metadata entry to the session sidecar. * Fire-and-forget — persistence failures must not block task registration.
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:92
↓ 1 callers
Method
persistToRemote
(sessionId: UUID, entry: TranscriptMessage)
src/utils/sessionStorage.ts:1302
↓ 1 callers
Function
pickDepthOneUuidCandidate
* Disambiguate multiple `"uuid":"<36>","timestamp":"` matches in one line by * finding the one at JSON nesting depth 1. String-aware brace counter:
src/utils/sessionStorage.ts:3275
↓ 1 callers
Function
pickDiverseCoreFiles
( sortedPaths: string[], want: number, )
src/utils/exampleCommands.ts:56
↓ 1 callers
Function
pickLineFormatInstruction
()
src/tools/FileReadTool/FileReadTool.ts:720
↓ 1 callers
Function
pillNeedsCta
(tasks: BackgroundTaskState[])
src/tasks/pillLabel.ts:74
↓ 1 callers
Function
pinCacheEdits
( userMessageIndex: number, block: import('./cachedMicrocompact.js').CacheEditsBlock, )
src/services/compact/microCompact.ts:111
↓ 1 callers
Function
pluginDisableHandler
( plugin: string | undefined, options: { scope?: string; cowork?: boolean; all?: boolean }, )
src/cli/handlers/plugins.ts:782
↓ 1 callers
Function
pluginEnableHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:740
↓ 1 callers
Function
pluginInstallHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:668
↓ 1 callers
Function
pluginListHandler
(options: { json?: boolean available?: boolean cowork?: boolean })
src/cli/handlers/plugins.ts:157
↓ 1 callers
Function
pluginUninstallHandler
( plugin: string, options: { scope?: string; cowork?: boolean; keepData?: boolean }, )
src/cli/handlers/plugins.ts:704
↓ 1 callers
Function
pluginUpdateHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:846
↓ 1 callers
Function
pluginValidateHandler
( manifestPath: string, options: { cowork?: boolean }, )
src/cli/handlers/plugins.ts:101
↓ 1 callers
Function
poll
()
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:552
↓ 1 callers
Method
poll
(fn: (msg: Message) => boolean = () => true)
src/utils/mailbox.ts:48
↓ 1 callers
Function
pollForApprovedExitPlanMode
( sessionId: string, timeoutMs: number, onPhaseChange?: (phase: UltraplanPhase) => void, shouldStop?:
src/utils/ultraplan/ccrSession.ts:198
↓ 1 callers
Function
pollForResponse
( requestId: string, _agentName?: string, teamName?: string, )
src/utils/swarm/permissionSync.ts:544
↓ 1 callers
Function
pollPolicyLimits
* Background polling callback
src/services/policyLimits/index.ts:613
↓ 1 callers
Function
pollRemoteSettings
* Background polling callback - fetches settings and triggers hot-reload if changed
src/services/remoteManagedSettings/index.ts:584
↓ 1 callers
Function
populateOAuthAccountInfoIfNeeded
()
src/services/oauth/client.ts:479
↓ 1 callers
Method
postOnce
* Single-attempt POST. Throws on retryable failures (429, 5xx, network) * so SerialBatchEventUploader re-queues and retries. Returns on success
src/cli/transports/HybridTransport.ts:202
↓ 1 callers
Function
powershellCommandIsSafe
( _command: string, parsed: ParsedPowerShellCommand, )
src/tools/PowerShellTool/powershellSecurity.ts:1042
↓ 1 callers
Function
powershellPermissionRule
( permissionRule: string, )
src/tools/PowerShellTool/powershellPermissions.ts:132
↓ 1 callers
Function
powershellToolCheckPermission
( input: PowerShellInput, toolPermissionContext: ToolPermissionContext, )
src/tools/PowerShellTool/powershellPermissions.ts:435
↓ 1 callers
Function
powershellToolHasPermission
( input: PowerShellInput, context: ToolUseContext, )
src/tools/PowerShellTool/powershellPermissions.ts:639
↓ 1 callers
Function
powershellToolUseOptions
({ suggestions = [], onRejectFeedbackChange, onAcceptFeedbackChange, yesInputMode = false, noInputMo
src/components/permissions/PowerShellPermissionRequest/powershellToolUseOptions.tsx:7
↓ 1 callers
Function
preconnectAnthropicApi
()
src/utils/apiPreconnect.ts:31
↓ 1 callers
Function
prefetchApiKeyFromApiKeyHelperIfSafe
( isNonInteractiveSession: boolean, )
src/utils/auth.ts:592
↓ 1 callers
Function
prefetchAwsCredentialsAndBedRockInfoIfSafe
()
src/utils/auth.ts:1024
↓ 1 callers
Function
prefetchGcpCredentialsIfSafe
()
src/utils/auth.ts:995
↓ 1 callers
Function
prefetchOfficialMcpUrls
()
src/services/mcp/officialRegistry.ts:33
↓ 1 callers
Function
prefetchPassesEligibility
()
src/services/api/referral.ts:274
↓ 1 callers
Function
prefetchSystemContextIfSafe
* Prefetch system context (including git status) only when it's safe to do so. * Git commands can execute arbitrary code via hooks and config (e.g.,
src/main.tsx:360
↓ 1 callers
Function
prepareIfConditionMatcher
* Prepare a matcher for hook `if` conditions. Expensive work (tool lookup, * Zod validation, tree-sitter parsing for Bash) happens once here; the *
src/utils/hooks.ts:1390
↓ 1 callers
Function
prepareMessagesForInjection
(messages: Message[])
src/services/PromptSuggestion/speculation.ts:203
↓ 1 callers
Function
prepareServers
()
src/components/mcp/MCPSettings.tsx:70
↓ 1 callers
Function
prependBaseDir
( blocks: ContentBlockParam[], baseDir: string, )
src/skills/bundledSkills.ts:208
↓ 1 callers
Function
prependModeCharacterToInput
( input: string, mode: PromptInputMode, )
src/components/PromptInput/inputModes.ts:4
↓ 1 callers
Function
prependPathRefs
( content: string | Array<ContentBlockParam>, prefix: string, )
src/bridge/inboundAttachments.ts:142
↓ 1 callers
Function
prependToShellHistoryCache
(command: string)
src/utils/suggestions/shellHistoryCompletion.ts:74
↓ 1 callers
Method
prevVimWord
()
src/utils/Cursor.ts:737
↓ 1 callers
Method
prevWORD
()
src/utils/Cursor.ts:821
↓ 1 callers
Function
prewarmModifiers
()
src/utils/modifiers.ts:35
↓ 1 callers
Function
primeKeychainCacheFromPrefetch
(stdout: string | null)
src/utils/secureStorage/macOsKeychainHelpers.ts:98
↓ 1 callers
Function
printBanner
(config: BridgeConfig, environmentId: string)
src/bridge/bridgeUI.ts:295
↓ 1 callers
Function
printHelp
()
src/bridge/bridgeMain.ts:1889
↓ 1 callers
Function
probeSeedCacheAnyVersion
( pluginId: string, )
src/utils/plugins/pluginLoader.ts:220
↓ 1 callers
Function
probeTmuxControlModeSync
* Sync one-shot probe: asks tmux directly whether this client is in control * mode via `#{client_control_mode}`. Runs on first isTmuxControlMode() ca
src/utils/fullscreen.ts:56
↓ 1 callers
Function
processAdjacentLines
(lineObjects: LineObject[])
src/components/StructuredDiff/Fallback.tsx:153
↓ 1 callers
Function
processAgentMentions
( input: string, agents: AgentDefinition[], )
src/utils/attachments.ts:1966
↓ 1 callers
Function
processAssistantMessage
( msg: AssistantMessage | NormalizedAssistantMessage, breakdown: MessageBreakdown, )
src/utils/analyzeContext.ts:782
↓ 1 callers
Function
processAtMentionedFiles
( input: string, toolUseContext: ToolUseContext, )
src/utils/attachments.ts:1894
↓ 1 callers
Function
processAttachment
( msg: AttachmentMessage, breakdown: MessageBreakdown, )
src/utils/analyzeContext.ts:839
↓ 1 callers
Function
processBashCommand
(inputString: string, precedingInputBlocks: ContentBlockParam[], attachmentMessages: AttachmentMessage[], cont
src/utils/processUserInput/processBashCommand.tsx:17
↓ 1 callers
Function
processBlock
( block: ContentBlockParam | ContentBlock | BetaContentBlock, message: UserMessage | AssistantMessage, s
src/utils/contextAnalysis.ts:99
↓ 1 callers
Function
processChunk
* Process a chunk of input data
src/utils/earlyInput.ts:72
↓ 1 callers
Function
processDispatchQueue
* Execute collected listeners with propagation control. * * Before each handler, calls event._prepareForTarget(node) so event * subclasses can do p
src/ink/events/dispatcher.ts:87
↓ 1 callers
Function
processElements
(elements: MarkdownToken[])
src/utils/claudemd.ts:494
↓ 1 callers
Function
processInitialMessage
(initialMsg: NonNullable<typeof pending>)
src/screens/REPL.tsx:3038
↓ 1 callers
Function
processMCPResult
( result: unknown, tool: string, // Tool name for validation (e.g., "search") name: string, // Server na
src/services/mcp/client.ts:2722
← previous
next →
7,001–7,100 of 11,548, ranked by callers