MCPcopy Create free account

hub / github.com/freecodexyz/free-code / functions

Functions11,548 in github.com/freecodexyz/free-code

↓ 1 callersFunctionparseSpawnValue
(raw: string | undefined)
src/bridge/bridgeMain.ts:1722
↓ 1 callersFunctionparseSplitOutput
* 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 callersFunctionparseSubscriptIndex
Legacy byte-range subscript index parser — kept for callers that pre-scan.
src/utils/bash/bashParser.ts:1562
↓ 1 callersFunctionparseSubscriptIndexInline
* 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 callersFunctionparseTabStatus
* 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 callersFunctionparseTeammateMessages
* 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 callersFunctionparseTerminalResponse
* 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 callersFunctionparseTestBinary
(P: ParseState, closer: string)
src/utils/bash/bashParser.ts:3821
↓ 1 callersFunctionparseTestExtglobRhs
(P: ParseState)
src/utils/bash/bashParser.ts:3982
↓ 1 callersFunctionparseTestNegatablePrimary
* 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 callersFunctionparseToSpans
* Parse an ANSI string into spans using the termio parser.
src/ink/Ansi.tsx:118
↓ 1 callersFunctionparseTokenBudget
(text: string)
src/utils/tokenBudget.ts:21
↓ 1 callersFunctionparseToolPreset
(preset: string)
src/tools.ts:165
↓ 1 callersFunctionparseUnset
(P: ParseState, kwTok: Token)
src/utils/bash/bashParser.ts:3650
↓ 1 callersFunctionparseUpdates
(text: string)
src/components/messages/UserResourceUpdateMessage.tsx:19
↓ 1 callersFunctionparseValue
* Parse a config value starting at position i. * Handles quoted strings, escape sequences, and inline comments.
src/utils/git/gitConfigParser.ts:114
↓ 1 callersFunctionparseWhile
(P: ParseState, kwTok: Token)
src/utils/bash/bashParser.ts:3189
↓ 1 callersFunctionparseXmlThinking
* Parse XML thinking content: <thinking>...</thinking>
src/utils/permissions/yoloClassifier.ts:601
↓ 1 callersFunctionpartialCompactConversation
( allMessages: Message[], pivotIndex: number, context: ToolUseContext, cacheSafeParams: CacheSafeParam
src/services/compact/compact.ts:772
↓ 1 callersFunctionpartitionBetasByAllowlist
* Filter betas to only include those in the allowlist. * Returns allowed and disallowed betas separately.
src/utils/betas.ts:43
↓ 1 callersFunctionpartitionByPriorDecision
* Partition candidates by their prior decision state: * - mustReapply: previously replaced → re-apply the cached replacement for * prefix stabil
src/utils/toolResultStorage.ts:649
↓ 1 callersFunctionpartitionToolCalls
* 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 callersMethodpatchConsole
()
src/ink/ink.tsx:1571
↓ 1 callersMethodpatchStderr
* 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 callersFunctionpathFromToolUse
(toolUseConfirm: ToolUseConfirm)
src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx:8
↓ 1 callersFunctionpathsEqual
(path1: string, path2: string)
src/utils/file.ts:582
↓ 1 callersFunctionpathsOverlap
* 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 callersFunctionpatternWithRoot
( pattern: string, source: PermissionRuleSource, )
src/utils/permissions/filesystem.ts:853
↓ 1 callersFunctionpeekForStdinData
( stream: NodeJS.EventEmitter, ms: number, )
src/utils/process.ts:50
↓ 1 callersFunctionpeekSpeculativeClassifierCheck
( command: string, )
src/tools/BashTool/bashPermissions.ts:1491
↓ 1 callersFunctionperformBackgroundPluginInstallations
( setAppState: SetAppState, )
src/services/plugins/PluginInstallationManager.ts:60
↓ 1 callersFunctionperformHandoff
()
src/components/DesktopHandoff.tsx:71
↓ 1 callersFunctionperformHeapDump
( trigger: 'manual' | 'auto-1.5GB' = 'manual', dumpNumber = 0, )
src/utils/heapDumpService.ts:221
↓ 1 callersFunctionperformMCPXaaAuth
* 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 callersFunctionperformPluginUpdate
* 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 callersFunctionperformStartupChecks
(setAppState: SetAppState)
src/utils/plugins/performStartupChecks.tsx:24
↓ 1 callersFunctionpermissionComponentForTool
(tool: Tool)
src/components/permissions/PermissionRequest.tsx:47
↓ 1 callersFunctionpermissionResultToLog
(permissionResult: PermissionResult)
src/components/permissions/hooks.ts:31
↓ 1 callersFunctionpermissionRuleExtractPrefix
( permissionRule: string, )
src/utils/permissions/shellRuleMatching.ts:43
↓ 1 callersFunctionpersistRemoteAgentMetadata
* 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 callersMethodpersistToRemote
(sessionId: UUID, entry: TranscriptMessage)
src/utils/sessionStorage.ts:1302
↓ 1 callersFunctionpickDepthOneUuidCandidate
* 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 callersFunctionpickDiverseCoreFiles
( sortedPaths: string[], want: number, )
src/utils/exampleCommands.ts:56
↓ 1 callersFunctionpickLineFormatInstruction
()
src/tools/FileReadTool/FileReadTool.ts:720
↓ 1 callersFunctionpillNeedsCta
(tasks: BackgroundTaskState[])
src/tasks/pillLabel.ts:74
↓ 1 callersFunctionpinCacheEdits
( userMessageIndex: number, block: import('./cachedMicrocompact.js').CacheEditsBlock, )
src/services/compact/microCompact.ts:111
↓ 1 callersFunctionpluginDisableHandler
( plugin: string | undefined, options: { scope?: string; cowork?: boolean; all?: boolean }, )
src/cli/handlers/plugins.ts:782
↓ 1 callersFunctionpluginEnableHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:740
↓ 1 callersFunctionpluginInstallHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:668
↓ 1 callersFunctionpluginListHandler
(options: { json?: boolean available?: boolean cowork?: boolean })
src/cli/handlers/plugins.ts:157
↓ 1 callersFunctionpluginUninstallHandler
( plugin: string, options: { scope?: string; cowork?: boolean; keepData?: boolean }, )
src/cli/handlers/plugins.ts:704
↓ 1 callersFunctionpluginUpdateHandler
( plugin: string, options: { scope?: string; cowork?: boolean }, )
src/cli/handlers/plugins.ts:846
↓ 1 callersFunctionpluginValidateHandler
( manifestPath: string, options: { cowork?: boolean }, )
src/cli/handlers/plugins.ts:101
↓ 1 callersFunctionpoll
()
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:552
↓ 1 callersMethodpoll
(fn: (msg: Message) => boolean = () => true)
src/utils/mailbox.ts:48
↓ 1 callersFunctionpollForApprovedExitPlanMode
( sessionId: string, timeoutMs: number, onPhaseChange?: (phase: UltraplanPhase) => void, shouldStop?:
src/utils/ultraplan/ccrSession.ts:198
↓ 1 callersFunctionpollForResponse
( requestId: string, _agentName?: string, teamName?: string, )
src/utils/swarm/permissionSync.ts:544
↓ 1 callersFunctionpollPolicyLimits
* Background polling callback
src/services/policyLimits/index.ts:613
↓ 1 callersFunctionpollRemoteSettings
* Background polling callback - fetches settings and triggers hot-reload if changed
src/services/remoteManagedSettings/index.ts:584
↓ 1 callersFunctionpopulateOAuthAccountInfoIfNeeded
()
src/services/oauth/client.ts:479
↓ 1 callersMethodpostOnce
* 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 callersFunctionpowershellCommandIsSafe
( _command: string, parsed: ParsedPowerShellCommand, )
src/tools/PowerShellTool/powershellSecurity.ts:1042
↓ 1 callersFunctionpowershellPermissionRule
( permissionRule: string, )
src/tools/PowerShellTool/powershellPermissions.ts:132
↓ 1 callersFunctionpowershellToolCheckPermission
( input: PowerShellInput, toolPermissionContext: ToolPermissionContext, )
src/tools/PowerShellTool/powershellPermissions.ts:435
↓ 1 callersFunctionpowershellToolHasPermission
( input: PowerShellInput, context: ToolUseContext, )
src/tools/PowerShellTool/powershellPermissions.ts:639
↓ 1 callersFunctionpowershellToolUseOptions
({ suggestions = [], onRejectFeedbackChange, onAcceptFeedbackChange, yesInputMode = false, noInputMo
src/components/permissions/PowerShellPermissionRequest/powershellToolUseOptions.tsx:7
↓ 1 callersFunctionpreconnectAnthropicApi
()
src/utils/apiPreconnect.ts:31
↓ 1 callersFunctionprefetchApiKeyFromApiKeyHelperIfSafe
( isNonInteractiveSession: boolean, )
src/utils/auth.ts:592
↓ 1 callersFunctionprefetchAwsCredentialsAndBedRockInfoIfSafe
()
src/utils/auth.ts:1024
↓ 1 callersFunctionprefetchGcpCredentialsIfSafe
()
src/utils/auth.ts:995
↓ 1 callersFunctionprefetchOfficialMcpUrls
()
src/services/mcp/officialRegistry.ts:33
↓ 1 callersFunctionprefetchPassesEligibility
()
src/services/api/referral.ts:274
↓ 1 callersFunctionprefetchSystemContextIfSafe
* 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 callersFunctionprepareIfConditionMatcher
* 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 callersFunctionprepareMessagesForInjection
(messages: Message[])
src/services/PromptSuggestion/speculation.ts:203
↓ 1 callersFunctionprepareServers
()
src/components/mcp/MCPSettings.tsx:70
↓ 1 callersFunctionprependBaseDir
( blocks: ContentBlockParam[], baseDir: string, )
src/skills/bundledSkills.ts:208
↓ 1 callersFunctionprependModeCharacterToInput
( input: string, mode: PromptInputMode, )
src/components/PromptInput/inputModes.ts:4
↓ 1 callersFunctionprependPathRefs
( content: string | Array<ContentBlockParam>, prefix: string, )
src/bridge/inboundAttachments.ts:142
↓ 1 callersFunctionprependToShellHistoryCache
(command: string)
src/utils/suggestions/shellHistoryCompletion.ts:74
↓ 1 callersMethodprevVimWord
()
src/utils/Cursor.ts:737
↓ 1 callersMethodprevWORD
()
src/utils/Cursor.ts:821
↓ 1 callersFunctionprewarmModifiers
()
src/utils/modifiers.ts:35
↓ 1 callersFunctionprimeKeychainCacheFromPrefetch
(stdout: string | null)
src/utils/secureStorage/macOsKeychainHelpers.ts:98
↓ 1 callersFunctionprintBanner
(config: BridgeConfig, environmentId: string)
src/bridge/bridgeUI.ts:295
↓ 1 callersFunctionprintHelp
()
src/bridge/bridgeMain.ts:1889
↓ 1 callersFunctionprobeSeedCacheAnyVersion
( pluginId: string, )
src/utils/plugins/pluginLoader.ts:220
↓ 1 callersFunctionprobeTmuxControlModeSync
* 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 callersFunctionprocessAdjacentLines
(lineObjects: LineObject[])
src/components/StructuredDiff/Fallback.tsx:153
↓ 1 callersFunctionprocessAgentMentions
( input: string, agents: AgentDefinition[], )
src/utils/attachments.ts:1966
↓ 1 callersFunctionprocessAssistantMessage
( msg: AssistantMessage | NormalizedAssistantMessage, breakdown: MessageBreakdown, )
src/utils/analyzeContext.ts:782
↓ 1 callersFunctionprocessAtMentionedFiles
( input: string, toolUseContext: ToolUseContext, )
src/utils/attachments.ts:1894
↓ 1 callersFunctionprocessAttachment
( msg: AttachmentMessage, breakdown: MessageBreakdown, )
src/utils/analyzeContext.ts:839
↓ 1 callersFunctionprocessBashCommand
(inputString: string, precedingInputBlocks: ContentBlockParam[], attachmentMessages: AttachmentMessage[], cont
src/utils/processUserInput/processBashCommand.tsx:17
↓ 1 callersFunctionprocessBlock
( block: ContentBlockParam | ContentBlock | BetaContentBlock, message: UserMessage | AssistantMessage, s
src/utils/contextAnalysis.ts:99
↓ 1 callersFunctionprocessChunk
* Process a chunk of input data
src/utils/earlyInput.ts:72
↓ 1 callersFunctionprocessDispatchQueue
* 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 callersFunctionprocessElements
(elements: MarkdownToken[])
src/utils/claudemd.ts:494
↓ 1 callersFunctionprocessInitialMessage
(initialMsg: NonNullable<typeof pending>)
src/screens/REPL.tsx:3038
↓ 1 callersFunctionprocessMCPResult
( result: unknown, tool: string, // Tool name for validation (e.g., "search") name: string, // Server na
src/services/mcp/client.ts:2722
← previousnext →7,001–7,100 of 11,548, ranked by callers