Skip to content

Latest commit

 

History

History
352 lines (347 loc) · 101 KB

File metadata and controls

352 lines (347 loc) · 101 KB

目录说明:src/utils

目录定位

通用基础设施目录,涵盖权限、设置、shell、插件、telemetry、文件系统、模型和运行时辅助。

目录快照

  • 相对路径:src/utils
  • 直接文件数:298
  • 直接子目录数:31
  • 递归文件数:564
  • 主要文件类型:.ts x 290、.tsx x 8

依赖关系观察

  • 该目录最常引用的仓库内目录:src/types (64)、src/bootstrap (55)、src (45)、src/services/analytics (43)、src/constants (37)、src/utils/settings (36)、services/analytics (33)
  • 最常引用该目录的仓库内目录:src/components (230)、src (158)、src/hooks (142)、src/utils/plugins (138)、src/services/api (87)、src/bridge (83)、src/tools/AgentTool (80)

直接文件说明

文件 行数 导出/关键符号 说明
CircularBuffer.ts 84 CircularBuffer 基础辅助逻辑;导出符号以 CircularBuffer 为主,顶部注释说明:A fixed-size circular buffer that automatically evicts the oldest items when the buffer is full. Useful for maintaini...
Cursor.ts 1530 pushToKillRing, getLastKill, getKillRingItem, getKillRingSize, clearKillRing, resetKillAccumulation 基础辅助逻辑;导出符号以 pushToKillRing, getLastKill, getKillRingItem, getKillRingSize 为主,顶部注释说明:Kill ring for storing killed (cut) text that can be yanked (pasted) with Ctrl+Y. This is global state that shares one...
QueryGuard.ts 121 QueryGuard 基础辅助逻辑;导出符号以 QueryGuard 为主,顶部注释说明:Synchronous state machine for the query lifecycle, compatible with React's useSyncExternalStore. Three states: idle...
Shell.ts 474 ShellConfig, findSuitableShell, getShellConfig, getPsProvider, ExecOptions, exec 基础辅助逻辑;导出符号以 ShellConfig, findSuitableShell, getShellConfig, getPsProvider 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
ShellCommand.ts 465 ExecResult, ShellCommand, wrapSpawn, createAbortedCommand, createFailedCommand 命令实现或命令适配层;导出符号以 ExecResult, ShellCommand, wrapSpawn, createAbortedCommand 为主,顶部注释说明:Set when assistant-mode auto-backgrounded a long-running blocking command.
abortController.ts 99 createAbortController, createChildAbortController 基础辅助逻辑;导出符号以 createAbortController, createChildAbortController 为主,顶部注释说明:Default max listeners for standard operations
activityManager.ts 164 ActivityManager, activityManager 资源或生命周期管理器;导出符号以 ActivityManager, activityManager 为主,顶部注释说明:ActivityManager handles generic activity tracking for both user and CLI operations. It automatically deduplicates ove...
advisor.ts 145 AdvisorServerToolUseBlock, AdvisorToolResultBlock, AdvisorBlock, isAdvisorBlock, isAdvisorEnabled, canUserConfigureAdvisor 基础辅助逻辑;导出符号以 AdvisorServerToolUseBlock, AdvisorToolResultBlock, AdvisorBlock, isAdvisorBlock 为主,顶部注释说明:The SDK does not yet have types for advisor blocks.
agentContext.ts 178 SubagentContext, TeammateAgentContext, AgentContext, getAgentContext, runWithAgentContext, isSubagentContext 上下文状态定义;导出符号以 SubagentContext, TeammateAgentContext, AgentContext, getAgentContext 为主,顶部注释说明:Agent context for analytics attribution using AsyncLocalStorage. This module provides a way to track agent identity a...
agentId.ts 99 formatAgentId, parseAgentId, generateRequestId, parseRequestId 基础辅助逻辑;导出符号以 formatAgentId, parseAgentId, generateRequestId, parseRequestId 为主,顶部注释说明:Deterministic Agent ID System This module provides helper functions for formatting and parsing deterministic agent ID...
agentSwarmsEnabled.ts 44 isAgentSwarmsEnabled 基础辅助逻辑;导出符号以 isAgentSwarmsEnabled 为主,顶部注释说明:Check if --agent-teams flag is provided via CLI. Checks process.argv directly to avoid import cycles with bootstrap/s...
agenticSessionSearch.ts 307 agenticSessionSearch 基础辅助逻辑;导出符号以 agenticSessionSearch 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
analyzeContext.ts 1382 TOOL_TOKEN_COUNT_OVERHEAD, DeferredBuiltinTool, SystemToolDetail, SystemPromptSectionDetail, ContextData, countToolDefinitionTokens 上下文状态定义;导出符号以 TOOL_TOKEN_COUNT_OVERHEAD, DeferredBuiltinTool, SystemToolDetail, SystemPromptSectionDetail 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
ansiToPng.ts 334 AnsiToPngOptions, ansiToPng 基础辅助逻辑;导出符号以 AnsiToPngOptions, ansiToPng 为主,顶部注释说明:Render ANSI-escaped terminal text directly to a PNG image. Replaces the previous ansiToSvg → @resvg/resvg-wasm pipeli...
ansiToSvg.ts 272 AnsiColor, DEFAULT_FG, DEFAULT_BG, TextSpan, ParsedLine, parseAnsi 基础辅助逻辑;导出符号以 AnsiColor, DEFAULT_FG, DEFAULT_BG, TextSpan 为主,顶部注释说明:Converts ANSI-escaped terminal text to SVG format Supports basic ANSI color codes (foreground colors)
api.ts 718 CacheScope, SystemPromptBlock, toolToAPISchema, logAPIPrefix, splitSysPromptPrefix, appendSystemContext 远程 API 调用封装;导出符号以 CacheScope, SystemPromptBlock, toolToAPISchema, logAPIPrefix 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
apiPreconnect.ts 71 preconnectAnthropicApi 远程 API 调用封装;导出符号以 preconnectAnthropicApi 为主,顶部注释说明:Preconnect to the Anthropic API to overlap TCP+TLS handshake with startup. The TCP+TLS handshake is ~100-200ms that n...
appleTerminalBackup.ts 124 markTerminalSetupInProgress, markTerminalSetupComplete, getTerminalPlistPath, backupTerminalPreferences, checkAndRestoreTerminalBackup 基础辅助逻辑;导出符号以 markTerminalSetupInProgress, markTerminalSetupComplete, getTerminalPlistPath, backupTerminalPreferences 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
argumentSubstitution.ts 145 parseArguments, parseArgumentNames, generateProgressiveArgumentHint, substituteArguments 基础辅助逻辑;导出符号以 parseArguments, parseArgumentNames, generateProgressiveArgumentHint, substituteArguments 为主,顶部注释说明:Utility for substituting $ARGUMENTS placeholders in skill/command prompts. Supports: - $ARGUMENTS - replaced with the...
array.ts 13 intersperse, count, uniq 基础辅助逻辑;导出符号以 intersperse, count, uniq 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
asciicast.ts 239 getRecordFilePath, _resetRecordingStateForTesting, getSessionRecordingPaths, renameRecordingForSession, flushAsciicastRecorder, installAsciicastRecorder 基础辅助逻辑;导出符号以 getRecordFilePath, _resetRecordingStateForTesting, getSessionRecordingPaths, renameRecordingForSession 为主,顶部注释说明:Get the asciicast recording file path. For ants with CLAUDE_CODE_TERMINAL_RECORDING=1: returns a path. Otherwise: ret...
attachments.ts 3997 TODO_REMINDER_CONFIG, PLAN_MODE_ATTACHMENT_CONFIG, AUTO_MODE_ATTACHMENT_CONFIG, RELEVANT_MEMORIES_CONFIG, VERIFY_PLAN_REMINDER_CONFIG, FileAttachment 基础辅助逻辑;导出符号以 TODO_REMINDER_CONFIG, PLAN_MODE_ATTACHMENT_CONFIG, AUTO_MODE_ATTACHMENT_CONFIG, RELEVANT_MEMORIES_CONFIG 为主,顶部注释说明:biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
attribution.ts 393 AttributionTexts, getAttributionTexts, countUserPromptsInMessages, getEnhancedPRAttribution 基础辅助逻辑;导出符号以 AttributionTexts, getAttributionTexts, countUserPromptsInMessages, getEnhancedPRAttribution 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
auth.ts 2002 isAnthropicAuthEnabled, getAuthTokenSource, ApiKeySource, getAnthropicApiKey, hasAnthropicApiKeyAuth, getAnthropicApiKeyWithSource 基础辅助逻辑;导出符号以 isAnthropicAuthEnabled, getAuthTokenSource, ApiKeySource, getAnthropicApiKey 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
authFileDescriptor.ts 196 CCR_OAUTH_TOKEN_PATH, CCR_API_KEY_PATH, CCR_SESSION_INGRESS_TOKEN_PATH, maybePersistTokenForSubprocesses, readTokenFromWellKnownFile, getOAuthTokenFromFileDescriptor 基础辅助逻辑;导出符号以 CCR_OAUTH_TOKEN_PATH, CCR_API_KEY_PATH, CCR_SESSION_INGRESS_TOKEN_PATH, maybePersistTokenForSubprocesses 为主,顶部注释说明:Well-known token file locations in CCR. The Go environment-manager creates /home/claude/.claude/remote/ and will (eve...
authPortable.ts 19 maybeRemoveApiKeyFromMacOSKeychainThrows, normalizeApiKeyForConfig 基础辅助逻辑;导出符号以 maybeRemoveApiKeyFromMacOSKeychainThrows, normalizeApiKeyForConfig 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
autoModeDenials.ts 26 AutoModeDenial, recordAutoModeDenial, getAutoModeDenials 基础辅助逻辑;导出符号以 AutoModeDenial, recordAutoModeDenial, getAutoModeDenials 为主,顶部注释说明:Tracks commands recently denied by the auto mode classifier. Populated from useCanUseTool.ts, read from RecentDenials...
autoRunIssue.tsx 122 AutoRunIssueNotification, AutoRunIssueReason, shouldAutoRunIssue, getAutoRunCommand, getAutoRunIssueReasonText 界面组件或交互视图;导出符号以 AutoRunIssueNotification, AutoRunIssueReason, shouldAutoRunIssue, getAutoRunCommand 为主,顶部注释说明:Component that shows a notification about running /issue command with the ability to cancel via ESC key
autoUpdater.ts 561 InstallStatus, AutoUpdaterResult, MaxVersionConfig, assertMinVersion, getMaxVersion, getMaxVersionMessage 基础辅助逻辑;导出符号以 InstallStatus, AutoUpdaterResult, MaxVersionConfig, assertMinVersion 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
aws.ts 74 AwsCredentials, AwsStsOutput, isAwsCredentialsProviderError, isValidAwsStsOutput, checkStsCallerIdentity, clearAwsIniCache 基础辅助逻辑;导出符号以 AwsCredentials, AwsStsOutput, isAwsCredentialsProviderError, isValidAwsStsOutput 为主,顶部注释说明:AWS short-term credentials format.
awsAuthStatusManager.ts 81 AwsAuthStatus, AwsAuthStatusManager 资源或生命周期管理器;导出符号以 AwsAuthStatus, AwsAuthStatusManager 为主,顶部注释说明:Singleton manager for cloud-provider authentication status (AWS Bedrock, GCP Vertex). Communicates auth refresh state...
backgroundHousekeeping.ts 94 startBackgroundHousekeeping 基础辅助逻辑;导出符号以 startBackgroundHousekeeping 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
betas.ts 434 filterAllowedSdkBetas, modelSupportsISP, modelSupportsContextManagement, modelSupportsStructuredOutputs, modelSupportsAutoMode, getToolSearchBetaHeader 基础辅助逻辑;导出符号以 filterAllowedSdkBetas, modelSupportsISP, modelSupportsContextManagement, modelSupportsStructuredOutputs 为主,顶部注释说明:SDK-provided betas that are allowed for API key users. Only betas in this list can be passed via SDK options.
billing.ts 78 hasConsoleBillingAccess, setMockBillingAccessOverride, hasClaudeAiBillingAccess 基础辅助逻辑;导出符号以 hasConsoleBillingAccess, setMockBillingAccessOverride, hasClaudeAiBillingAccess 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
binaryCheck.ts 53 isBinaryInstalled, clearBinaryCache 基础辅助逻辑;导出符号以 isBinaryInstalled, clearBinaryCache 为主,顶部注释说明:Session cache to avoid repeated checks
browser.ts 68 openPath, openBrowser 基础辅助逻辑;导出符号以 openPath, openBrowser 为主,顶部注释说明:Open a file or folder path using the system's default handler. Uses open on macOS, explorer on Windows, `xdg-open...
bufferedWriter.ts 100 BufferedWriter, createBufferedWriter 基础辅助逻辑;导出符号以 BufferedWriter, createBufferedWriter 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
bundledMode.ts 22 isRunningWithBun, isInBundledMode 基础辅助逻辑;导出符号以 isRunningWithBun, isInBundledMode 为主,顶部注释说明:https://bun.com/guides/util/detect-bun
caCerts.ts 115 getCACertificates, clearCACertsCache 基础辅助逻辑;导出符号以 getCACertificates, clearCACertsCache 为主,顶部注释说明:Load CA certificates for TLS connections. Since setting ca on an HTTPS agent replaces the default certificate store...
caCertsConfig.ts 88 applyExtraCACertsFromConfig 配置读取或配置定义;导出符号以 applyExtraCACertsFromConfig 为主,顶部注释说明:Config/settings-backed NODE_EXTRA_CA_CERTS population for caCerts.ts. Split from caCerts.ts because config.ts →...
cachePaths.ts 38 CACHE_PATHS 基础辅助逻辑;导出符号以 CACHE_PATHS 为主,顶部注释说明:Local sanitizePath using djb2Hash — NOT the shared version from
classifierApprovals.ts 88 setClassifierApproval, getClassifierApproval, setYoloClassifierApproval, getYoloClassifierApproval, setClassifierChecking, clearClassifierChecking 基础辅助逻辑;导出符号以 setClassifierApproval, getClassifierApproval, setYoloClassifierApproval, getYoloClassifierApproval 为主,顶部注释说明:Tracks which tool uses were auto-approved by classifiers. Populated from useCanUseTool.ts and permissions.ts, read fr...
classifierApprovalsHook.ts 17 useIsClassifierChecking hook 或 hook 执行逻辑;导出符号以 useIsClassifierChecking 为主,顶部注释说明:React hook for classifierApprovals store. Split from classifierApprovals.ts so pure-state importers (permissions.ts, ...
claudeCodeHints.ts 193 ClaudeCodeHintType, ClaudeCodeHint, extractClaudeCodeHints, setPendingHint, clearPendingHint, markShownThisSession 基础辅助逻辑;导出符号以 ClaudeCodeHintType, ClaudeCodeHint, extractClaudeCodeHints, setPendingHint 为主,顶部注释说明:Claude Code hints protocol. CLIs and SDKs running under Claude Code can emit a self-closing <claude-code-hint /> ta...
claudeDesktop.ts 152 getClaudeDesktopConfigPath, readClaudeDesktopMcpServers 基础辅助逻辑;导出符号以 getClaudeDesktopConfigPath, readClaudeDesktopMcpServers 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
claudemd.ts 1479 MAX_MEMORY_CHARACTER_COUNT, MemoryFileInfo, stripHtmlComments, processMemoryFile, processMdRules, getMemoryFiles 基础辅助逻辑;导出符号以 MAX_MEMORY_CHARACTER_COUNT, MemoryFileInfo, stripHtmlComments, processMemoryFile 为主,顶部注释说明:Files are loaded in the following order: 1. Managed memory (eg. /etc/claude-code/CLAUDE.md) - Global instructions for...
cleanup.ts 602 CleanupResult, addCleanupResults, convertFileNameToDate, cleanupOldMessageFiles, cleanupOldSessionFiles, cleanupOldPlanFiles 基础辅助逻辑;导出符号以 CleanupResult, addCleanupResults, convertFileNameToDate, cleanupOldMessageFiles 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
cleanupRegistry.ts 25 registerCleanup, runCleanupFunctions 基础辅助逻辑;导出符号以 registerCleanup, runCleanupFunctions 为主,顶部注释说明:Global registry for cleanup functions
cliArgs.ts 60 eagerParseCliFlag, extractArgsAfterDoubleDash 基础辅助逻辑;导出符号以 eagerParseCliFlag, extractArgsAfterDoubleDash 为主,顶部注释说明:Parse a CLI flag value early, before Commander.js processes arguments. Supports both space-separated (--flag value) a...
cliHighlight.ts 54 CliHighlight, getCliHighlightPromise, getLanguageName 基础辅助逻辑;导出符号以 CliHighlight, getCliHighlightPromise, getLanguageName 为主,顶部注释说明:highlight.js's type defs carry /// <reference lib="dom" />. SSETransport,
codeIndexing.ts 206 CodeIndexingTool, detectCodeIndexingFromCommand, detectCodeIndexingFromMcpTool, detectCodeIndexingFromMcpServerName 目录导出或注册入口;导出符号以 CodeIndexingTool, detectCodeIndexingFromCommand, detectCodeIndexingFromMcpTool, detectCodeIndexingFromMcpServerName 为主,顶部注释说明:Utility functions for detecting code indexing tool usage. Tracks usage of common code indexing solutions like Sourceg...
collapseBackgroundBashNotifications.ts 84 collapseBackgroundBashNotifications 基础辅助逻辑;导出符号以 collapseBackgroundBashNotifications 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
collapseHookSummaries.ts 59 collapseHookSummaries hook 或 hook 执行逻辑;导出符号以 collapseHookSummaries 为主,顶部注释说明:Collapses consecutive hook summary messages with the same hookLabel (e.g. PostToolUse) into a single summary. This ha...
collapseReadSearch.ts 1109 SearchOrReadResult, getToolSearchOrReadInfo, getSearchOrReadFromContent, getToolUseIdsFromCollapsedGroup, hasAnyToolInProgress, getDisplayMessageFromCollapsed 基础辅助逻辑;导出符号以 SearchOrReadResult, getToolSearchOrReadInfo, getSearchOrReadFromContent, getToolUseIdsFromCollapsedGroup 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
collapseTeammateShutdowns.ts 55 collapseTeammateShutdowns 基础辅助逻辑;导出符号以 collapseTeammateShutdowns 为主,顶部注释说明:Collapses consecutive in-process teammate shutdown task_status attachments into a single teammate_shutdown_batch at...
combinedAbortSignal.ts 47 createCombinedAbortSignal 基础辅助逻辑;导出符号以 createCombinedAbortSignal 为主,顶部注释说明:Creates a combined AbortSignal that aborts when the input signal aborts, an optional second signal aborts, or an opti...
commandLifecycle.ts 21 setCommandLifecycleListener, notifyCommandLifecycle 命令实现或命令适配层;导出符号以 setCommandLifecycleListener, notifyCommandLifecycle 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
commitAttribution.ts 961 getAttributionRepoRoot, getRepoClassCached, isInternalModelRepoCached, isInternalModelRepo, sanitizeSurfaceKey, sanitizeModelName 基础辅助逻辑;导出符号以 getAttributionRepoRoot, getRepoClassCached, isInternalModelRepoCached, isInternalModelRepo 为主,顶部注释说明:List of repos where internal model names are allowed in trailers. Includes both SSH and HTTPS URL formats. NOTE: This...
completionCache.ts 166 setupShellCompletion, regenerateCompletionCache 基础辅助逻辑;导出符号以 setupShellCompletion, regenerateCompletionCache 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
concurrentSessions.ts 204 SessionKind, SessionStatus, isBgSession, registerSession, updateSessionName, updateSessionBridgeId 基础辅助逻辑;导出符号以 SessionKind, SessionStatus, isBgSession, registerSession 为主,顶部注释说明:Kind override from env. Set by the spawner (claude --bg, daemon supervisor) so the child can register without the p...
config.ts 1817 PastedContent, SerializedStructuredHistoryEntry, HistoryEntry, ReleaseChannel, ProjectConfig, InstallMethod 配置读取或配置定义;导出符号以 PastedContent, SerializedStructuredHistoryEntry, HistoryEntry, ReleaseChannel 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
configConstants.ts 21 NOTIFICATION_CHANNELS, EDITOR_MODES, TEAMMATE_MODES 常量定义;导出符号以 NOTIFICATION_CHANNELS, EDITOR_MODES, TEAMMATE_MODES 为主,顶部注释说明:These constants are in a separate file to avoid circular dependency issues.
contentArray.ts 51 insertBlockAfterToolResults 基础辅助逻辑;导出符号以 insertBlockAfterToolResults 为主,顶部注释说明:Utility for inserting a block into a content array relative to tool_result blocks. Used by the API layer to position ...
context.ts 221 MODEL_CONTEXT_WINDOW_DEFAULT, COMPACT_MAX_OUTPUT_TOKENS, CAPPED_DEFAULT_MAX_TOKENS, ESCALATED_MAX_TOKENS, is1mContextDisabled, has1mContext 上下文状态定义;导出符号以 MODEL_CONTEXT_WINDOW_DEFAULT, COMPACT_MAX_OUTPUT_TOKENS, CAPPED_DEFAULT_MAX_TOKENS, ESCALATED_MAX_TOKENS 为主,顶部注释说明:biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
contextAnalysis.ts 272 analyzeContext, tokenStatsToStatsigMetrics 上下文状态定义;导出符号以 analyzeContext, tokenStatsToStatsigMetrics 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
contextSuggestions.ts 235 SuggestionSeverity, ContextSuggestion, generateContextSuggestions 上下文状态定义;导出符号以 SuggestionSeverity, ContextSuggestion, generateContextSuggestions 为主,顶部注释说明:Estimated tokens that could be saved
controlMessageCompat.ts 32 normalizeControlMessageKeys 基础辅助逻辑;导出符号以 normalizeControlMessageKeys 为主,顶部注释说明:Normalize camelCase requestId → snake_case request_id on incoming control messages (control_request, control_resp...
conversationRecovery.ts 597 TeleportRemoteResponse, TurnInterruptionState, DeserializeResult, deserializeMessages, deserializeMessagesWithInterruptDetection, restoreSkillStateFromMessages 基础辅助逻辑;导出符号以 TeleportRemoteResponse, TurnInterruptionState, DeserializeResult, deserializeMessages 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
cron.ts 308 CronFields, parseCronExpression, computeNextCronRun, cronToHuman 基础辅助逻辑;导出符号以 CronFields, parseCronExpression, computeNextCronRun, cronToHuman 为主,顶部注释说明:Minimal cron expression parsing and next-run calculation.
cronJitterConfig.ts 75 getCronJitterConfig 配置读取或配置定义;导出符号以 getCronJitterConfig 为主,顶部注释说明:GrowthBook-backed cron jitter configuration.
cronScheduler.ts 565 isRecurringTaskAged, CronScheduler, createCronScheduler, buildMissedTaskNotification 基础辅助逻辑;导出符号以 isRecurringTaskAged, CronScheduler, createCronScheduler, buildMissedTaskNotification 为主,顶部注释说明:Non-React scheduler core for .claude/scheduled_tasks.json.
cronTasks.ts 458 CronTask, getCronFilePath, readCronTasks, hasCronTasksSync, writeCronTasks, addCronTask 基础辅助逻辑;导出符号以 CronTask, getCronFilePath, readCronTasks, hasCronTasksSync 为主,顶部注释说明:Scheduled prompts, stored in /.claude/scheduled_tasks.json.
cronTasksLock.ts 195 SchedulerLockOptions, tryAcquireSchedulerLock, releaseSchedulerLock 基础辅助逻辑;导出符号以 SchedulerLockOptions, tryAcquireSchedulerLock, releaseSchedulerLock 为主,顶部注释说明:Scheduler lease lock for .claude/scheduled_tasks.json.
crossProjectResume.ts 75 CrossProjectResumeResult, checkCrossProjectResume 基础辅助逻辑;导出符号以 CrossProjectResumeResult, checkCrossProjectResume 为主,顶部注释说明:Check if a log is from a different project directory and determine whether it's a related worktree or a completely di...
crypto.ts 13 randomUUID 基础辅助逻辑;导出符号以 randomUUID 为主,顶部注释说明:Indirection point for the package.json "browser" field. When bun builds
cwd.ts 32 runWithCwdOverride, pwd, getCwd 基础辅助逻辑;导出符号以 runWithCwdOverride, pwd, getCwd 为主,顶部注释说明:Run a function with an overridden working directory for the current async context. All calls to pwd()/getCwd() within...
debug.ts 268 DebugLogLevel, getMinDebugLogLevel, isDebugMode, enableDebugLogging, getDebugFilter, isDebugToStdErr 基础辅助逻辑;导出符号以 DebugLogLevel, getMinDebugLogLevel, isDebugMode, enableDebugLogging 为主,顶部注释说明:Minimum log level to include in debug output. Defaults to 'debug', which filters out 'verbose' messages. Set CLAUDE_C...
debugFilter.ts 157 DebugFilter, parseDebugFilter, extractDebugCategories, shouldShowDebugCategories, shouldShowDebugMessage 基础辅助逻辑;导出符号以 DebugFilter, parseDebugFilter, extractDebugCategories, shouldShowDebugCategories 为主,顶部注释说明:Parse debug filter string into a filter configuration Examples: - "api,hooks" -> include only api and hooks categorie...
desktopDeepLink.ts 236 DesktopInstallStatus, getDesktopInstallStatus, openCurrentSessionInDesktop 基础辅助逻辑;导出符号以 DesktopInstallStatus, getDesktopInstallStatus, openCurrentSessionInDesktop 为主,顶部注释说明:Builds a deep link URL for Claude Desktop to resume a CLI session. Format: claude://resume?session={sessionId}&cwd={c...
detectRepository.ts 178 ParsedRepository, clearRepositoryCaches, detectCurrentRepository, detectCurrentRepositoryWithHost, getCachedRepository, parseGitRemote 基础辅助逻辑;导出符号以 ParsedRepository, clearRepositoryCaches, detectCurrentRepository, detectCurrentRepositoryWithHost 为主,顶部注释说明:Like detectCurrentRepository, but also returns the host (e.g. "github.com" or a GHE hostname). Callers that need to c...
diagLogs.ts 94 logForDiagnosticsNoPII, withDiagnosticsTiming 基础辅助逻辑;导出符号以 logForDiagnosticsNoPII, withDiagnosticsTiming 为主,顶部注释说明:Logs diagnostic information to a logfile. This information is sent via the environment manager to session-ingress to ...
diff.ts 177 CONTEXT_LINES, DIFF_TIMEOUT_MS, adjustHunkLineNumbers, countLinesChanged, getPatchFromContents, getPatchForDisplay 基础辅助逻辑;导出符号以 CONTEXT_LINES, DIFF_TIMEOUT_MS, adjustHunkLineNumbers, countLinesChanged 为主,顶部注释说明:Shifts hunk line numbers by offset. Use when getPatchForDisplay received a slice of the file (e.g. readEditContext) r...
directMemberMessage.ts 69 parseDirectMemberMessage, DirectMessageResult, sendDirectMemberMessage 基础辅助逻辑;导出符号以 parseDirectMemberMessage, DirectMessageResult, sendDirectMemberMessage 为主,顶部注释说明:Parse @agent-name message syntax for direct team member messaging.
displayTags.ts 51 stripDisplayTags, stripDisplayTagsAllowEmpty, stripIdeContextTags 基础辅助逻辑;导出符号以 stripDisplayTags, stripDisplayTagsAllowEmpty, stripIdeContextTags 为主,顶部注释说明:Matches any XML-like <tag>…</tag> block (lowercase tag names, optional attributes, multi-line content). Used to str...
doctorContextWarnings.ts 265 ContextWarning, ContextWarnings, checkContextWarnings 上下文状态定义;导出符号以 ContextWarning, ContextWarnings, checkContextWarnings 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
doctorDiagnostic.ts 625 InstallationType, DiagnosticInfo, getCurrentInstallationType, getInvokedBinary, detectLinuxGlobPatternWarnings, getDoctorDiagnostic 基础辅助逻辑;导出符号以 InstallationType, DiagnosticInfo, getCurrentInstallationType, getInvokedBinary 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
earlyInput.ts 191 startCapturingEarlyInput, stopCapturingEarlyInput, consumeEarlyInput, hasEarlyInput, seedEarlyInput, isCapturingEarlyInput 基础辅助逻辑;导出符号以 startCapturingEarlyInput, stopCapturingEarlyInput, consumeEarlyInput, hasEarlyInput 为主,顶部注释说明:Early Input Capture This module captures terminal input that is typed before the REPL is fully initialized. Users oft...
editor.ts 183 classifyGuiEditor, openFileInExternalEditor, getExternalEditor 基础辅助逻辑;导出符号以 classifyGuiEditor, openFileInExternalEditor, getExternalEditor 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
effort.ts 329 EFFORT_LEVELS, EffortValue, modelSupportsEffort, modelSupportsMaxEffort, isEffortLevel, parseEffortValue 基础辅助逻辑;导出符号以 EFFORT_LEVELS, EffortValue, modelSupportsEffort, modelSupportsMaxEffort 为主,顶部注释说明:biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
embeddedTools.ts 29 hasEmbeddedSearchTools, embeddedSearchToolsBinaryPath 工具实现或工具适配层;导出符号以 hasEmbeddedSearchTools, embeddedSearchToolsBinaryPath 为主,顶部注释说明:Whether this build has bfs/ugrep embedded in the bun binary (ant-native only). When true: - find and grep in Clau...
env.ts 347 getGlobalClaudeFile, JETBRAINS_IDES, detectDeploymentEnvironment, env, getHostPlatformForAnalytics 基础辅助逻辑;导出符号以 getGlobalClaudeFile, JETBRAINS_IDES, detectDeploymentEnvironment, env 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
envDynamic.ts 151 getTerminalWithJetBrainsDetectionAsync, getTerminalWithJetBrainsDetection, initJetBrainsDetection, envDynamic 基础辅助逻辑;导出符号以 getTerminalWithJetBrainsDetectionAsync, getTerminalWithJetBrainsDetection, initJetBrainsDetection, envDynamic 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
envUtils.ts 183 getClaudeConfigHomeDir, getTeamsDir, hasNodeOption, isEnvTruthy, isEnvDefinedFalsy, isBareMode 通用辅助逻辑;导出符号以 getClaudeConfigHomeDir, getTeamsDir, hasNodeOption, isEnvTruthy 为主,顶部注释说明:Memoized: 150+ callers, many on hot paths. Keyed off CLAUDE_CONFIG_DIR so
envValidation.ts 38 EnvVarValidationResult, validateBoundedIntEnvVar 校验逻辑;导出符号以 EnvVarValidationResult, validateBoundedIntEnvVar 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
errorLogSink.ts 235 getErrorsPath, getMCPLogsPath, _flushLogWritersForTesting, _clearLogWritersForTesting, initializeErrorLogSink 基础辅助逻辑;导出符号以 getErrorsPath, getMCPLogsPath, _flushLogWritersForTesting, _clearLogWritersForTesting 为主,顶部注释说明:Error log sink implementation This module contains the heavy implementation for error logging and should be initializ...
errors.ts 238 ClaudeError, MalformedCommandError, AbortError, isAbortError, ConfigParseError, ShellError 基础辅助逻辑;导出符号以 ClaudeError, MalformedCommandError, AbortError, isAbortError 为主,顶部注释说明:True iff e is any of the abort-shaped errors the codebase encounters: our AbortError class, a DOMException from Abo...
exampleCommands.ts 184 countAndSortItems, pickDiverseCoreFiles, getExampleCommandFromCache, refreshExampleCommands 命令实现或命令适配层;导出符号以 countAndSortItems, pickDiverseCoreFiles, getExampleCommandFromCache, refreshExampleCommands 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
execFileNoThrow.ts 150 execFileNoThrow, execFileNoThrowWithCwd, execSyncWithDefaults_DEPRECATED 基础辅助逻辑;导出符号以 execFileNoThrow, execFileNoThrowWithCwd, execSyncWithDefaults_DEPRECATED 为主,顶部注释说明:This file represents useful wrappers over node:child_process
execFileNoThrowPortable.ts 89 execSyncWithDefaults_DEPRECATED 基础辅助逻辑;导出符号以 execSyncWithDefaults_DEPRECATED 为主,顶部注释说明:@deprecated Use execa directly with { shell: true, reject: false } for non-blocking execution. Sync exec calls bl...
execSyncWrapper.ts 38 execSync_DEPRECATED 基础辅助逻辑;导出符号以 execSync_DEPRECATED 为主,顶部注释说明:@deprecated Use async alternatives when possible. Sync exec calls block the event loop. Wrapped execSync with slow op...
exportRenderer.tsx 98 streamRenderedMessages, renderMessagesToPlainText 界面组件或交互视图;导出符号以 streamRenderedMessages, renderMessagesToPlainText 为主,顶部注释说明:Minimal keybinding provider for static/headless renders. Provides keybinding context without the ChordInterceptor (wh...
extraUsage.ts 23 isBilledAsExtraUsage 基础辅助逻辑;导出符号以 isBilledAsExtraUsage 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
fastMode.ts 532 isFastModeEnabled, isFastModeAvailable, getFastModeUnavailableReason, FAST_MODE_MODEL_DISPLAY, getFastModeModel, getInitialFastModeSetting 基础辅助逻辑;导出符号以 isFastModeEnabled, isFastModeAvailable, getFastModeUnavailableReason, FAST_MODE_MODEL_DISPLAY 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
file.ts 584 File, pathExists, MAX_OUTPUT_SIZE, readFileSafe, getFileModificationTime, getFileModificationTimeAsync 基础辅助逻辑;导出符号以 File, pathExists, MAX_OUTPUT_SIZE, readFileSafe 为主,顶部注释说明:Check if a path exists asynchronously.
fileHistory.ts 1115 FileHistoryBackup, FileHistorySnapshot, FileHistoryState, DiffStats, fileHistoryEnabled, fileHistoryTrackEdit 基础辅助逻辑;导出符号以 FileHistoryBackup, FileHistorySnapshot, FileHistoryState, DiffStats 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
fileOperationAnalytics.ts 71 logFileOperation 基础辅助逻辑;导出符号以 logFileOperation 为主,顶部注释说明:Creates a truncated SHA256 hash (16 chars) for file paths Used for privacy-preserving analytics on file operations
fileRead.ts 102 LineEndingType, detectEncodingForResolvedPath, detectLineEndingsForString, readFileSyncWithMetadata, readFileSync 基础辅助逻辑;导出符号以 LineEndingType, detectEncodingForResolvedPath, detectLineEndingsForString, readFileSyncWithMetadata 为主,顶部注释说明:Sync file-read path, extracted from file.ts. file.ts sits in the settings SCC via log.ts → types/logs.ts → types/mess...
fileReadCache.ts 96 fileReadCache 基础辅助逻辑;导出符号以 fileReadCache 为主,顶部注释说明:A simple in-memory cache for file contents with automatic invalidation based on modification time. This eliminates re...
fileStateCache.ts 142 FileState, READ_FILE_STATE_CACHE_SIZE, FileStateCache, createFileStateCacheWithSizeLimit, cacheToObject, cacheKeys 状态存取与派生逻辑;导出符号以 FileState, READ_FILE_STATE_CACHE_SIZE, FileStateCache, createFileStateCacheWithSizeLimit 为主,顶部注释说明:A file state cache that normalizes all path keys before access. This ensures consistent cache hits regardless of whet...
findExecutable.ts 17 findExecutable 目录导出或注册入口;导出符号以 findExecutable 为主,顶部注释说明:Find an executable by searching PATH, similar to which. Replaces spawn-rx's findActualExecutable to avoid pulling i...
fingerprint.ts 76 FINGERPRINT_SALT, extractFirstMessageText, computeFingerprint, computeFingerprintFromMessages 基础辅助逻辑;导出符号以 FINGERPRINT_SALT, extractFirstMessageText, computeFingerprint, computeFingerprintFromMessages 为主,顶部注释说明:Hardcoded salt from backend validation. Must match exactly for fingerprint validation to pass.
forkedAgent.ts 689 CacheSafeParams, saveCacheSafeParams, getLastCacheSafeParams, ForkedAgentParams, ForkedAgentResult, createCacheSafeParams 基础辅助逻辑;导出符号以 CacheSafeParams, saveCacheSafeParams, getLastCacheSafeParams, ForkedAgentParams 为主,顶部注释说明:Helper for running forked agent query loops with usage tracking. This utility ensures forked agents: 1. Share identic...
format.ts 308 formatFileSize, formatSecondsShort, formatDuration, formatNumber, formatTokens, formatRelativeTime 基础辅助逻辑;导出符号以 formatFileSize, formatSecondsShort, formatDuration, formatNumber 为主,顶部注释说明:Pure display formatters — leaf-safe (no Ink). Width-aware truncation lives in ./truncate.ts.
formatBriefTimestamp.ts 81 formatBriefTimestamp 基础辅助逻辑;导出符号以 formatBriefTimestamp 为主,顶部注释说明:Format an ISO timestamp for the brief/chat message label line. Display scales with age (like a messaging app): - same...
fpsTracker.ts 47 FpsMetrics, FpsTracker 基础辅助逻辑;导出符号以 FpsMetrics, FpsTracker 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
frontmatterParser.ts 370 FrontmatterData, ParsedMarkdown, FRONTMATTER_REGEX, parseFrontmatter, splitPathInFrontmatter, parsePositiveIntFromFrontmatter 解析逻辑;导出符号以 FrontmatterData, ParsedMarkdown, FRONTMATTER_REGEX, parseFrontmatter 为主,顶部注释说明:Frontmatter parser for markdown files Extracts and parses YAML frontmatter between --- delimiters
fsOperations.ts 770 FsOperations, safeResolvePath, isDuplicatePath, resolveDeepestExistingAncestorSync, getPathsForPermissionCheck, NodeFsOperations 基础辅助逻辑;导出符号以 FsOperations, safeResolvePath, isDuplicatePath, resolveDeepestExistingAncestorSync 为主,顶部注释说明:Simplified filesystem operations interface based on Node.js fs module. Provides a subset of commonly used sync operat...
fullscreen.ts 202 isTmuxControlMode, _resetTmuxControlModeProbeForTesting, isFullscreenEnvEnabled, isMouseTrackingEnabled, isMouseClicksDisabled, isFullscreenActive 基础辅助逻辑;导出符号以 isTmuxControlMode, _resetTmuxControlModeProbeForTesting, isFullscreenEnvEnabled, isMouseTrackingEnabled 为主,顶部注释说明:Cached result from tmux display-message -p '#{client_control_mode}'. undefined = not yet queried (or probe failed) ...
generatedFiles.ts 136 isGeneratedFile, filterGeneratedFiles 基础辅助逻辑;导出符号以 isGeneratedFile, filterGeneratedFiles 为主,顶部注释说明:Exact file name matches (case-insensitive)
generators.ts 88 lastX, returnValue, toArray 基础辅助逻辑;导出符号以 lastX, returnValue, toArray 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
genericProcessUtils.ts 184 isProcessRunning, getAncestorPidsAsync, getProcessCommand, getAncestorCommandsAsync, getChildPids 通用辅助逻辑;导出符号以 isProcessRunning, getAncestorPidsAsync, getProcessCommand, getAncestorCommandsAsync 为主,顶部注释说明:This file contains platform-agnostic implementations of common ps type commands.
getWorktreePaths.ts 70 getWorktreePaths 基础辅助逻辑;导出符号以 getWorktreePaths 为主,顶部注释说明:Returns the paths of all worktrees for the current git repository. If git is not available, not in a git repo, or onl...
getWorktreePathsPortable.ts 27 getWorktreePathsPortable 基础辅助逻辑;导出符号以 getWorktreePathsPortable 为主,顶部注释说明:Portable worktree detection using only child_process — no analytics, no bootstrap deps, no execa. Used by listSession...
ghPrStatus.ts 106 PrReviewState, PrStatus, deriveReviewState, fetchPrStatus 基础辅助逻辑;导出符号以 PrReviewState, PrStatus, deriveReviewState, fetchPrStatus 为主,顶部注释说明:Derive review state from GitHub API values. Draft PRs always show as 'draft' regardless of reviewDecision. reviewDeci...
git.ts 926 findGitRoot, findCanonicalGitRoot, gitExe, getIsGit, getGitDir, isAtGitRoot 基础辅助逻辑;导出符号以 findGitRoot, findCanonicalGitRoot, gitExe, getIsGit 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
gitDiff.ts 532 GitDiffStats, PerFileStats, GitDiffResult, fetchGitDiff, fetchGitDiffHunks, NumstatResult 基础辅助逻辑;导出符号以 GitDiffStats, PerFileStats, GitDiffResult, fetchGitDiff 为主,顶部注释说明:Fetch git diff stats and hunks comparing working tree to HEAD. Returns null if not in a git repo or if git commands f...
gitSettings.ts 18 shouldIncludeGitInstructions 基础辅助逻辑;导出符号以 shouldIncludeGitInstructions 为主,顶部注释说明:Git-related behaviors that depend on user settings.
githubRepoPathMapping.ts 162 updateGithubRepoPathMapping, getKnownPathsForRepo, filterExistingPaths, validateRepoAtPath, removePathFromRepo 基础辅助逻辑;导出符号以 updateGithubRepoPathMapping, getKnownPathsForRepo, filterExistingPaths, validateRepoAtPath 为主,顶部注释说明:Updates the GitHub repository path mapping in global config. Called at startup (fire-and-forget) to track known local...
glob.ts 130 extractGlobBaseDirectory, glob 基础辅助逻辑;导出符号以 extractGlobBaseDirectory, glob 为主,顶部注释说明:Extracts the static base directory from a glob pattern. The base directory is everything before the first glob specia...
gracefulShutdown.ts 529 setupGracefulShutdown, gracefulShutdownSync, isShuttingDown, resetShutdownState, getPendingShutdownForTesting, gracefulShutdown 基础辅助逻辑;导出符号以 setupGracefulShutdown, gracefulShutdownSync, isShuttingDown, resetShutdownState 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
groupToolUses.ts 182 MessageWithoutProgress, GroupingResult, applyGrouping 工具实现或工具适配层;导出符号以 MessageWithoutProgress, GroupingResult, applyGrouping 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
handlePromptSubmit.ts 610 PromptInputHelpers, HandlePromptSubmitParams, handlePromptSubmit 提示词/提示模板定义;导出符号以 PromptInputHelpers, HandlePromptSubmitParams, handlePromptSubmit 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
hash.ts 46 djb2Hash, hashContent, hashPair 基础辅助逻辑;导出符号以 djb2Hash, hashContent, hashPair 为主,顶部注释说明:djb2 string hash — fast non-cryptographic hash returning a signed 32-bit int. Deterministic across runtimes (unlike B...
headlessProfiler.ts 178 headlessProfilerStartTurn, headlessProfilerCheckpoint, logHeadlessProfilerTurn 基础辅助逻辑;导出符号以 headlessProfilerStartTurn, headlessProfilerCheckpoint, logHeadlessProfilerTurn 为主,顶部注释说明:Headless mode profiling utility for measuring per-turn latency in -p (print) mode. Tracks key timing phases per turn:...
heapDumpService.ts 303 HeapDumpResult, MemoryDiagnostics, captureMemoryDiagnostics, performHeapDump 服务逻辑;导出符号以 HeapDumpResult, MemoryDiagnostics, captureMemoryDiagnostics, performHeapDump 为主,顶部注释说明:Service for heap dump capture. Used by the /heapdump command.
heatmap.ts 198 HeatmapOptions, generateHeatmap 基础辅助逻辑;导出符号以 HeatmapOptions, generateHeatmap 为主,顶部注释说明:Pre-calculates percentiles from activity data for use in intensity calculations
highlightMatch.tsx 28 highlightMatch 界面组件或交互视图;导出符号以 highlightMatch 为主,顶部注释说明:Inverse-highlight every occurrence of query in text (case-insensitive). Used by search dialogs to show where the ...
hooks.ts 5022 getSessionEndHookTimeoutMs, shouldSkipHookDueToTrust, createBaseHookInput, HookBlockingError, ElicitationResponse, HookResult hook 或 hook 执行逻辑;导出符号以 getSessionEndHookTimeoutMs, shouldSkipHookDueToTrust, createBaseHookInput, HookBlockingError 为主,顶部注释说明:biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
horizontalScroll.ts 137 HorizontalScrollWindow, calculateHorizontalScrollWindow 基础辅助逻辑;导出符号以 HorizontalScrollWindow, calculateHorizontalScrollWindow 为主,顶部注释说明:Calculate the visible window of items that fit within available width, ensuring the selected item is always visible. ...
http.ts 136 getUserAgent, getMCPUserAgent, getWebFetchUserAgent, AuthHeaders, getAuthHeaders, withOAuth401Retry 基础辅助逻辑;导出符号以 getUserAgent, getMCPUserAgent, getWebFetchUserAgent, AuthHeaders 为主,顶部注释说明:HTTP utility constants and helpers
hyperlink.ts 39 OSC8_START, OSC8_END, createHyperlink 基础辅助逻辑;导出符号以 OSC8_START, OSC8_END, createHyperlink 为主,顶部注释说明:OSC 8 hyperlink escape sequences
iTermBackup.ts 73 markITerm2SetupComplete, checkAndRestoreITerm2Backup 基础辅助逻辑;导出符号以 markITerm2SetupComplete, checkAndRestoreITerm2Backup 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
ide.ts 1494 DetectedIDEInfo, IdeType, isVSCodeIde, isJetBrainsIde, isSupportedVSCodeTerminal, isSupportedJetBrainsTerminal 基础辅助逻辑;导出符号以 DetectedIDEInfo, IdeType, isVSCodeIde, isJetBrainsIde 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
idePathConversion.ts 90 IDEPathConverter, WindowsToWSLConverter, checkWSLDistroMatch 基础辅助逻辑;导出符号以 IDEPathConverter, WindowsToWSLConverter, checkWSLDistroMatch 为主,顶部注释说明:Path conversion utilities for IDE communication Handles conversions between Claude's environment and the IDE's enviro...
idleTimeout.ts 53 createIdleTimeoutManager 基础辅助逻辑;导出符号以 createIdleTimeoutManager 为主,顶部注释说明:Creates an idle timeout manager for SDK mode. Automatically exits the process after the specified idle duration. @par...
imagePaste.ts 416 PASTE_THRESHOLD, ImageWithDimensions, hasImageInClipboard, getImageFromClipboard, getImagePathFromClipboard, IMAGE_EXTENSION_REGEX 基础辅助逻辑;导出符号以 PASTE_THRESHOLD, ImageWithDimensions, hasImageInClipboard, getImageFromClipboard 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
imageResizer.ts 880 ImageResizeError, ImageDimensions, ResizeResult, maybeResizeAndDownsampleImageBuffer, ImageBlockWithDimensions, maybeResizeAndDownsampleImageBlock 基础辅助逻辑;导出符号以 ImageResizeError, ImageDimensions, ResizeResult, maybeResizeAndDownsampleImageBuffer 为主,顶部注释说明:Error thrown when image resizing fails and the image exceeds the API limit.
imageStore.ts 167 cacheImagePath, storeImage, storeImages, getStoredImagePath, clearStoredImagePaths, cleanupOldImageCaches 基础辅助逻辑;导出符号以 cacheImagePath, storeImage, storeImages, getStoredImagePath 为主,顶部注释说明:Get the image store directory for the current session.
imageValidation.ts 104 OversizedImage, ImageSizeError, validateImagesForAPI 校验逻辑;导出符号以 OversizedImage, ImageSizeError, validateImagesForAPI 为主,顶部注释说明:Information about an oversized image.
immediateCommand.ts 15 shouldInferenceConfigCommandBeImmediate 命令实现或命令适配层;导出符号以 shouldInferenceConfigCommandBeImmediate 为主,顶部注释说明:Whether inference-config commands (/model, /fast, /effort) should execute immediately (during a running query) rather...
inProcessTeammateHelpers.ts 102 findInProcessTeammateTaskId, setAwaitingPlanApproval, handlePlanApprovalResponse, isPermissionRelatedResponse 辅助函数集合;导出符号以 findInProcessTeammateTaskId, setAwaitingPlanApproval, handlePlanApprovalResponse, isPermissionRelatedResponse 为主,顶部注释说明:In-Process Teammate Helpers Helper functions for in-process teammate integration. Provides utilities to: - Find task ...
ink.ts 26 toInkColor 基础辅助逻辑;导出符号以 toInkColor 为主,顶部注释说明:Convert a color string to Ink's TextProps['color'] format. Colors are typically AgentColorName values like 'blue', 'g...
intl.ts 94 getGraphemeSegmenter, firstGrapheme, lastGrapheme, getWordSegmenter, getRelativeTimeFormat, getTimeZone 基础辅助逻辑;导出符号以 getGraphemeSegmenter, firstGrapheme, lastGrapheme, getWordSegmenter 为主,顶部注释说明:Shared Intl object instances with lazy initialization. Intl constructors are expensive (~0.05-0.1ms each), so we cach...
jetbrains.ts 191 isJetBrainsPluginInstalled, isJetBrainsPluginInstalledCached, isJetBrainsPluginInstalledCachedSync 基础辅助逻辑;导出符号以 isJetBrainsPluginInstalled, isJetBrainsPluginInstalledCached, isJetBrainsPluginInstalledCachedSync 为主,顶部注释说明:Map of IDE names to their directory patterns
json.ts 277 safeParseJSON, safeParseJSONC, parseJSONL, readJSONLFile, addItemToJSONCArray 基础辅助逻辑;导出符号以 safeParseJSON, safeParseJSONC, parseJSONL, readJSONLFile 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
jsonRead.ts 16 stripBOM 基础辅助逻辑;导出符号以 stripBOM 为主,顶部注释说明:Leaf stripBOM — extracted from json.ts to break settings → json → log → types/logs → … → settings. json.ts imports th...
keyboardShortcuts.ts 14 MACOS_OPTION_SPECIAL_CHARS, isMacosOptionChar 基础辅助逻辑;导出符号以 MACOS_OPTION_SPECIAL_CHARS, isMacosOptionChar 为主,顶部注释说明:Special characters that macOS Option+key produces, mapped to their
lazySchema.ts 8 lazySchema schema 或约束定义;导出符号以 lazySchema 为主,顶部注释说明:Returns a memoized factory function that constructs the value on first call. Used to defer Zod schema construction fr...
listSessionsImpl.ts 454 SessionInfo, ListSessionsOptions, parseSessionInfoFromLite, listCandidates, listSessionsImpl 基础辅助逻辑;导出符号以 SessionInfo, ListSessionsOptions, parseSessionInfoFromLite, listCandidates 为主,顶部注释说明:Standalone implementation of listSessions for the Agent SDK. Dependencies are kept minimal and portable — no bootstra...
localInstaller.ts 162 getLocalClaudePath, isRunningFromLocalInstallation, ensureLocalPackageEnvironment, installOrUpdateClaudePackage, localInstallationExists, getShellType 基础辅助逻辑;导出符号以 getLocalClaudePath, isRunningFromLocalInstallation, ensureLocalPackageEnvironment, installOrUpdateClaudePackage 为主,顶部注释说明:Utilities for handling local installation
lockfile.ts 43 lock, lockSync, unlock, check 基础辅助逻辑;导出符号以 lock, lockSync, unlock, check 为主,顶部注释说明:Lazy accessor for proper-lockfile. proper-lockfile depends on graceful-fs, which monkey-patches every fs method on fi...
log.ts 362 getLogDisplayTitle, dateToFilename, ErrorLogSink, attachErrorLogSink, logError, getInMemoryErrors 基础辅助逻辑;导出符号以 getLogDisplayTitle, dateToFilename, ErrorLogSink, attachErrorLogSink 为主,顶部注释说明:Gets the display title for a log/session with fallback logic. Skips firstPrompt if it starts with a tick/goal tag (au...
logoV2Utils.ts 350 LayoutMode, LayoutDimensions, getLayoutMode, calculateLayoutDimensions, calculateOptimalLeftWidth, formatWelcomeMessage 通用辅助逻辑;导出符号以 LayoutMode, LayoutDimensions, getLayoutMode, calculateLayoutDimensions 为主,顶部注释说明:Determines the layout mode based on terminal width
mailbox.ts 73 MessageSource, Message, Mailbox 基础辅助逻辑;导出符号以 MessageSource, Message, Mailbox 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
managedEnv.ts 199 applySafeConfigEnvironmentVariables, applyConfigEnvironmentVariables 基础辅助逻辑;导出符号以 applySafeConfigEnvironmentVariables, applyConfigEnvironmentVariables 为主,顶部注释说明:claude ssh remote: ANTHROPIC_UNIX_SOCKET routes auth through a -R forwarded socket to a local proxy, and the launch...
managedEnvConstants.ts 191 isProviderManagedEnvVar, DANGEROUS_SHELL_SETTINGS, SAFE_ENV_VARS 常量定义;导出符号以 isProviderManagedEnvVar, DANGEROUS_SHELL_SETTINGS, SAFE_ENV_VARS 为主,顶部注释说明:Environment variables that control inference routing: which provider to use, which endpoint to hit, and which model I...
markdown.ts 381 configureMarked, applyMarkdown, formatToken, padAligned 基础辅助逻辑;导出符号以 configureMarked, applyMarkdown, formatToken, padAligned 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
markdownConfigLoader.ts 600 CLAUDE_CONFIG_DIRECTORIES, ClaudeConfigDirectory, MarkdownFile, extractDescriptionFromMarkdown, parseAgentToolsFromFrontmatter, parseSlashCommandToolsFromFrontmatter 配置读取或配置定义;导出符号以 CLAUDE_CONFIG_DIRECTORIES, ClaudeConfigDirectory, MarkdownFile, extractDescriptionFromMarkdown 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
mcpInstructionsDelta.ts 130 McpInstructionsDelta, ClientSideInstruction, isMcpInstructionsDeltaEnabled, getMcpInstructionsDelta 基础辅助逻辑;导出符号以 McpInstructionsDelta, ClientSideInstruction, isMcpInstructionsDeltaEnabled, getMcpInstructionsDelta 为主,顶部注释说明:Server names — for stateless-scan reconstruction.
mcpOutputStorage.ts 189 getFormatDescription, getLargeOutputInstructions, extensionForMimeType, isBinaryContentType, PersistBinaryResult, persistBinaryContent 存储读写逻辑;导出符号以 getFormatDescription, getLargeOutputInstructions, extensionForMimeType, isBinaryContentType 为主,顶部注释说明:Generates a format description string based on the MCP result type and schema.
mcpValidation.ts 208 MCP_TOKEN_COUNT_THRESHOLD_FACTOR, IMAGE_TOKEN_ESTIMATE, getMaxMcpOutputTokens, MCPToolResult, getContentSizeEstimate, mcpContentNeedsTruncation 校验逻辑;导出符号以 MCP_TOKEN_COUNT_THRESHOLD_FACTOR, IMAGE_TOKEN_ESTIMATE, getMaxMcpOutputTokens, MCPToolResult 为主,顶部注释说明:Resolve the MCP output token cap. Precedence: 1. MAX_MCP_OUTPUT_TOKENS env var (explicit user override) 2. tengu_sati...
mcpWebSocketTransport.ts 200 WebSocketTransport 基础辅助逻辑;导出符号以 WebSocketTransport 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
memoize.ts 269 memoizeWithTTL, memoizeWithTTLAsync, memoizeWithLRU 基础辅助逻辑;导出符号以 memoizeWithTTL, memoizeWithTTLAsync, memoizeWithLRU 为主,顶部注释说明:Creates a memoized function that returns cached values while refreshing in parallel. This implements a write-through ...
memoryFileDetection.ts 289 detectSessionFileType, detectSessionPatternType, isAutoMemFile, MemoryScope, memoryScopeForPath, isAutoManagedMemoryFile 基础辅助逻辑;导出符号以 detectSessionFileType, detectSessionPatternType, isAutoMemFile, MemoryScope 为主,顶部注释说明:Detects if a file path is a session-related file under ~/.claude. Returns the type of session file or null if not a s...
messagePredicates.ts 8 isHumanTurn 基础辅助逻辑;导出符号以 isHumanTurn 为主,顶部注释说明:tool_result messages share type:'user' with human turns; the discriminant
messageQueueManager.ts 547 SetAppState, subscribeToCommandQueue, getCommandQueueSnapshot, getCommandQueue, getCommandQueueLength, hasCommandsInQueue 资源或生命周期管理器;导出符号以 SetAppState, subscribeToCommandQueue, getCommandQueueSnapshot, getCommandQueue 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
messages.ts 5512 withMemoryCorrectionHint, deriveShortMessageId, INTERRUPT_MESSAGE, INTERRUPT_MESSAGE_FOR_TOOL_USE, CANCEL_MESSAGE, REJECT_MESSAGE 基础辅助逻辑;导出符号以 withMemoryCorrectionHint, deriveShortMessageId, INTERRUPT_MESSAGE, INTERRUPT_MESSAGE_FOR_TOOL_USE 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
modelCost.ts 231 ModelCosts, COST_TIER_3_15, COST_TIER_15_75, COST_TIER_5_25, COST_TIER_30_150, COST_HAIKU_35 模型选择、模型能力或模型映射逻辑;导出符号以 ModelCosts, COST_TIER_3_15, COST_TIER_15_75, COST_TIER_5_25 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
modifiers.ts 36 ModifierKey, prewarmModifiers, isModifierPressed 基础辅助逻辑;导出符号以 ModifierKey, prewarmModifiers, isModifierPressed 为主,顶部注释说明:Pre-warm the native module by loading it in advance. Call this early to avoid delay on first use.
mtls.ts 179 MTLSConfig, TLSConfig, getMTLSConfig, getMTLSAgent, getWebSocketTLSOptions, getTLSFetchOptions 基础辅助逻辑;导出符号以 MTLSConfig, TLSConfig, getMTLSConfig, getMTLSAgent 为主,顶部注释说明:Get mTLS configuration from environment variables
notebook.ts 224 readNotebook, mapNotebookCellsToToolResult, parseCellId 基础辅助逻辑;导出符号以 readNotebook, mapNotebookCellsToToolResult, parseCellId 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
objectGroupBy.ts 18 objectGroupBy 基础辅助逻辑;导出符号以 objectGroupBy 为主,顶部注释说明:https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.groupby
pasteStore.ts 104 hashPastedText, storePastedText, retrievePastedText, cleanupOldPastes 基础辅助逻辑;导出符号以 hashPastedText, storePastedText, retrievePastedText, cleanupOldPastes 为主,顶部注释说明:Get the paste store directory (persistent across sessions).
path.ts 155 expandPath, toRelativePath, getDirectoryForPath, containsPathTraversal, normalizePathForConfigKey, sanitizePath 基础辅助逻辑;导出符号以 expandPath, toRelativePath, getDirectoryForPath, containsPathTraversal 为主,顶部注释说明:Expands a path that may contain tilde notation (~) to an absolute path. On Windows, POSIX-style paths (e.g., `/c/User...
pdf.ts 300 PDFError, PDFResult, readPDF, getPDFPageCount, PDFExtractPagesResult, resetPdftoppmCache 基础辅助逻辑;导出符号以 PDFError, PDFResult, readPDF, getPDFPageCount 为主,顶部注释说明:Read a PDF file and return it as base64-encoded data. @param filePath Path to the PDF file @returns Result containing...
pdfUtils.ts 70 DOCUMENT_EXTENSIONS, parsePDFPageRange, isPDFSupported, isPDFExtension 通用辅助逻辑;导出符号以 DOCUMENT_EXTENSIONS, parsePDFPageRange, isPDFSupported, isPDFExtension 为主,顶部注释说明:Document extensions that are handled specially
peerAddress.ts 21 parseAddress 基础辅助逻辑;导出符号以 parseAddress 为主,顶部注释说明:Peer address parsing — kept separate from peerRegistry.ts so that SendMessageTool can import parseAddress without tra...
planModeV2.ts 95 getPlanModeV2AgentCount, getPlanModeV2ExploreAgentCount, isPlanModeInterviewPhaseEnabled, PewterLedgerVariant, getPewterLedgerVariant 基础辅助逻辑;导出符号以 getPlanModeV2AgentCount, getPlanModeV2ExploreAgentCount, isPlanModeInterviewPhaseEnabled, PewterLedgerVariant 为主,顶部注释说明:Environment variable override takes precedence
plans.ts 397 getPlanSlug, setPlanSlug, clearPlanSlug, clearAllPlanSlugs, getPlansDirectory, getPlanFilePath 基础辅助逻辑;导出符号以 getPlanSlug, setPlanSlug, clearPlanSlug, clearAllPlanSlugs 为主,顶部注释说明:Get or generate a word slug for the current session's plan. The slug is generated lazily on first access and cached f...
platform.ts 150 Platform, SUPPORTED_PLATFORMS, getPlatform, getWslVersion, LinuxDistroInfo, getLinuxDistroInfo 基础辅助逻辑;导出符号以 Platform, SUPPORTED_PLATFORMS, getPlatform, getWslVersion 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
preflightChecks.tsx 151 PreflightCheckResult, PreflightStep 界面组件或交互视图;导出符号以 PreflightCheckResult, PreflightStep 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
privacyLevel.ts 55 getPrivacyLevel, isEssentialTrafficOnly, isTelemetryDisabled, getEssentialTrafficOnlyReason 基础辅助逻辑;导出符号以 getPrivacyLevel, isEssentialTrafficOnly, isTelemetryDisabled, getEssentialTrafficOnlyReason 为主,顶部注释说明:Privacy level controls how much nonessential network traffic and telemetry Claude Code generates. Levels are ordered ...
process.ts 68 registerProcessOutputErrorHandlers, writeToStdout, writeToStderr, exitWithError, peekForStdinData 基础辅助逻辑;导出符号以 registerProcessOutputErrorHandlers, writeToStdout, writeToStderr, exitWithError 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
profilerBase.ts 46 getPerformance, formatMs, formatTimelineLine 基础辅助逻辑;导出符号以 getPerformance, formatMs, formatTimelineLine 为主,顶部注释说明:Shared infrastructure for profiler modules (startupProfiler, queryProfiler, headlessProfiler). All three use the same...
promptCategory.ts 49 getQuerySourceForAgent, getQuerySourceForREPL 提示词/提示模板定义;导出符号以 getQuerySourceForAgent, getQuerySourceForREPL 为主,顶部注释说明:Determines the prompt category for agent usage. Used for analytics to track different agent patterns. @param agentTyp...
promptEditor.ts 188 EditorResult, editFileInEditor, editPromptInEditor 提示词/提示模板定义;导出符号以 EditorResult, editFileInEditor, editPromptInEditor 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
promptShellExecution.ts 183 executeShellCommandsInPrompt 提示词/提示模板定义;导出符号以 executeShellCommandsInPrompt 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
proxy.ts 426 disableKeepAlive, _resetKeepAliveForTesting, getAddressFamily, getProxyUrl, getNoProxy, shouldBypassProxy 基础辅助逻辑;导出符号以 disableKeepAlive, _resetKeepAliveForTesting, getAddressFamily, getProxyUrl 为主,顶部注释说明:@aws-sdk/credential-provider-node and @smithy/node-http-handler are imported
queryContext.ts 179 fetchSystemPromptParts, buildSideQuestionFallbackParams 上下文状态定义;导出符号以 fetchSystemPromptParts, buildSideQuestionFallbackParams 为主,顶部注释说明:Shared helpers for building the API cache-key prefix (systemPrompt, userContext, systemContext) for query() calls. Li...
queryHelpers.ts 552 PermissionPromptTool, isResultSuccessful, extractReadFilesFromMessages, extractBashToolsFromMessages 辅助函数集合;导出符号以 PermissionPromptTool, isResultSuccessful, extractReadFilesFromMessages, extractBashToolsFromMessages 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
queryProfiler.ts 301 startQueryProfile, queryCheckpoint, endQueryProfile, logQueryProfileReport 基础辅助逻辑;导出符号以 startQueryProfile, queryCheckpoint, endQueryProfile, logQueryProfileReport 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
queueProcessor.ts 95 processQueueIfReady, hasQueuedCommands 基础辅助逻辑;导出符号以 processQueueIfReady, hasQueuedCommands 为主,顶部注释说明:Check if a queued command is a slash command (value starts with '/').
readEditContext.ts 227 CHUNK_SIZE, MAX_SCAN_BYTES, EditContext, readEditContext, openForScan, scanForContext 上下文状态定义;导出符号以 CHUNK_SIZE, MAX_SCAN_BYTES, EditContext, readEditContext 为主,顶部注释说明:Slice of the file: contextLines before/after the match, on line boundaries.
readFileInRange.ts 383 ReadFileRangeResult, FileTooLargeError, readFileInRange 基础辅助逻辑;导出符号以 ReadFileRangeResult, FileTooLargeError, readFileInRange 为主,顶部注释说明:---------------------------------------------------------------------------
releaseNotes.ts 360 CHANGELOG_URL, _resetChangelogCacheForTesting, migrateChangelogFromConfig, fetchAndStoreChangelog, getStoredChangelog, getStoredChangelogFromMemory 基础辅助逻辑;导出符号以 CHANGELOG_URL, _resetChangelogCacheForTesting, migrateChangelogFromConfig, fetchAndStoreChangelog 为主,顶部注释说明:We fetch the changelog from GitHub instead of bundling it with the build. This is necessary because Ink's static rend...
renderOptions.ts 77 getBaseRenderOptions 基础辅助逻辑;导出符号以 getBaseRenderOptions 为主,顶部注释说明:Cached stdin override - computed once per process
ripgrep.ts 679 ripgrepCommand, RipgrepTimeoutError, ripGrepStream, ripGrep, countFilesRoundedRg, getRipgrepStatus 基础辅助逻辑;导出符号以 ripgrepCommand, RipgrepTimeoutError, ripGrepStream, ripGrep 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
sanitization.ts 91 partiallySanitizeUnicode, recursivelySanitizeUnicode 基础辅助逻辑;导出符号以 partiallySanitizeUnicode, recursivelySanitizeUnicode 为主,顶部注释说明:Unicode Sanitization for Hidden Character Attack Mitigation This module implements security measures against Unicode-...
screenshotClipboard.ts 121 copyAnsiToClipboard 基础辅助逻辑;导出符号以 copyAnsiToClipboard 为主,顶部注释说明:Copies an image (from ANSI text) to the system clipboard. Supports macOS, Linux (with xclip/xsel), and Windows. Pure-...
sdkEventQueue.ts 134 SdkEvent, enqueueSdkEvent, drainSdkEvents, emitTaskTerminatedSdk 基础辅助逻辑;导出符号以 SdkEvent, enqueueSdkEvent, drainSdkEvents, emitTaskTerminatedSdk 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
semanticBoolean.ts 29 semanticBoolean 基础辅助逻辑;导出符号以 semanticBoolean 为主,顶部注释说明:Boolean that also accepts the string literals "true"/"false". Tool inputs arrive as model-generated JSON. The model o...
semanticNumber.ts 36 semanticNumber 基础辅助逻辑;导出符号以 semanticNumber 为主,顶部注释说明:Number that also accepts numeric string literals like "30", "-5", "3.14". Tool inputs arrive as model-generated JSON....
semver.ts 59 gt, gte, lt, lte, satisfies, order 基础辅助逻辑;导出符号以 gt, gte, lt, lte 为主,顶部注释说明:Semver comparison utilities that use Bun.semver when available and fall back to the npm semver package in Node.js e...
sequential.ts 56 sequential 基础辅助逻辑;导出符号以 sequential 为主,顶部注释说明:Creates a sequential execution wrapper for async functions to prevent race conditions. Ensures that concurrent calls ...
sessionActivity.ts 133 SessionActivityReason, registerSessionActivityCallback, unregisterSessionActivityCallback, sendSessionActivitySignal, isSessionActivityTrackingActive, startSessionActivity 基础辅助逻辑;导出符号以 SessionActivityReason, registerSessionActivityCallback, unregisterSessionActivityCallback, sendSessionActivitySignal 为主,顶部注释说明:Session activity tracking with refcount-based heartbeat timer. The transport registers its keep-alive sender via regi...
sessionEnvVars.ts 22 getSessionEnvVars, setSessionEnvVar, deleteSessionEnvVar, clearSessionEnvVars 基础辅助逻辑;导出符号以 getSessionEnvVars, setSessionEnvVar, deleteSessionEnvVar, clearSessionEnvVars 为主,顶部注释说明:Session-scoped environment variables set via /env. Applied only to spawned child processes (via bash provider env ove...
sessionEnvironment.ts 166 getSessionEnvDirPath, getHookEnvFilePath, clearCwdEnvFiles, invalidateSessionEnvCache, getSessionEnvironmentScript 基础辅助逻辑;导出符号以 getSessionEnvDirPath, getHookEnvFilePath, clearCwdEnvFiles, invalidateSessionEnvCache 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
sessionFileAccessHooks.ts 250 isMemoryFileAccess, registerSessionFileAccessHooks hook 或 hook 执行逻辑;导出符号以 isMemoryFileAccess, registerSessionFileAccessHooks 为主,顶部注释说明:Session file access analytics hooks. Tracks access to session memory and transcript files via Read, Grep, Glob tools....
sessionIngressAuth.ts 140 getSessionIngressAuthToken, getSessionIngressAuthHeaders, updateSessionIngressAuthToken 基础辅助逻辑;导出符号以 getSessionIngressAuthToken, getSessionIngressAuthHeaders, updateSessionIngressAuthToken 为主,顶部注释说明:Read token via file descriptor, falling back to well-known file. Uses global state to cache the result since file des...
sessionRestore.ts 551 restoreSessionStateFromLog, computeRestoredAttributionState, computeStandaloneAgentContext, restoreAgentFromSession, refreshAgentDefinitionsForModeSwitch, ProcessedResume 基础辅助逻辑;导出符号以 restoreSessionStateFromLog, computeRestoredAttributionState, computeStandaloneAgentContext, restoreAgentFromSession 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
sessionStart.ts 232 takeInitialUserMessage, processSessionStartHooks, processSetupHooks 基础辅助逻辑;导出符号以 takeInitialUserMessage, processSessionStartHooks, processSetupHooks 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
sessionState.ts 150 SessionState, RequiresActionDetails, SessionExternalMetadata, setSessionStateChangedListener, setSessionMetadataChangedListener, setPermissionModeChangedListener 状态存取与派生逻辑;导出符号以 SessionState, RequiresActionDetails, SessionExternalMetadata, setSessionStateChangedListener 为主,顶部注释说明:Context carried with requires_action transitions so downstream surfaces (CCR sidebar, push notifications) can show wh...
sessionStorage.ts 5105 isTranscriptMessage, isChainParticipant, isEphemeralToolProgress, getProjectsDir, getTranscriptPath, getTranscriptPathForSession 存储读写逻辑;导出符号以 isTranscriptMessage, isChainParticipant, isEphemeralToolProgress, getProjectsDir 为主,顶部注释说明:Sync fs primitives for readFileTailSync — separate from fs/promises
sessionStoragePortable.ts 793 LITE_READ_BUF_SIZE, validateUuid, unescapeJsonString, extractJsonStringField, extractLastJsonStringField, extractFirstPromptFromHead 存储读写逻辑;导出符号以 LITE_READ_BUF_SIZE, validateUuid, unescapeJsonString, extractJsonStringField 为主,顶部注释说明:Portable session storage utilities. Pure Node.js — no internal dependencies on logging, experiments, or feature flags...
sessionTitle.ts 129 extractConversationText, generateSessionTitle 基础辅助逻辑;导出符号以 extractConversationText, generateSessionTitle 为主,顶部注释说明:Session title generation via Haiku. Standalone module with minimal dependencies so it can be imported from print.ts (...
sessionUrl.ts 64 ParsedSessionUrl, parseSessionIdentifier 基础辅助逻辑;导出符号以 ParsedSessionUrl, parseSessionIdentifier 为主,顶部注释说明:Parses a session resume identifier which can be either: - A URL containing session ID (e.g., https://api.example.com/...
set.ts 53 difference, intersects, every, union 基础辅助逻辑;导出符号以 difference, intersects, every, union 为主,顶部注释说明:Note: this code is hot, so is optimized for speed.
shellConfig.ts 167 CLAUDE_ALIAS_REGEX, getShellConfigPaths, filterClaudeAliases, readFileLines, writeFileLines, findClaudeAlias 配置读取或配置定义;导出符号以 CLAUDE_ALIAS_REGEX, getShellConfigPaths, filterClaudeAliases, readFileLines 为主,顶部注释说明:Utilities for managing shell configuration files (like .bashrc, .zshrc) Used for managing claude aliases and PATH ent...
sideQuery.ts 222 SideQueryOptions, sideQuery 基础辅助逻辑;导出符号以 SideQueryOptions, sideQuery 为主,顶部注释说明:Model to use for the query
sideQuestion.ts 155 findBtwTriggerPositions, SideQuestionResult, runSideQuestion 基础辅助逻辑;导出符号以 findBtwTriggerPositions, SideQuestionResult, runSideQuestion 为主,顶部注释说明:Side Question ("/btw") feature - allows asking quick questions without interrupting the main agent context. Uses runF...
signal.ts 43 subscribe, Signal, createSignal 基础辅助逻辑;导出符号以 subscribe, Signal, createSignal 为主,顶部注释说明:Tiny listener-set primitive for pure event signals (no stored state). Collapses the ~8-line `const listeners = new Se...
sinks.ts 16 initSinks 基础辅助逻辑;导出符号以 initSinks 为主,顶部注释说明:Attach error log and analytics sinks, draining any events queued before attachment. Both inits are idempotent. Called...
slashCommandParsing.ts 60 ParsedSlashCommand, parseSlashCommand 命令实现或命令适配层;导出符号以 ParsedSlashCommand, parseSlashCommand 为主,顶部注释说明:Centralized utilities for parsing slash commands
sleep.ts 84 sleep, withTimeout 基础辅助逻辑;导出符号以 sleep, withTimeout 为主,顶部注释说明:Abort-responsive sleep. Resolves after ms milliseconds, or immediately when signal aborts (so backoff loops don't...
sliceAnsi.ts 91 未显式导出或以默认导出为主 基础辅助逻辑;文件名指向 slice / Ansi 这一职责,顶部注释说明:Slice a string containing ANSI escape codes. Unlike the slice-ansi package, this properly handles OSC 8 hyperlink seq...
slowOperations.ts 286 callerFrame, slowLogging, jsonStringify, jsonParse, clone, cloneDeep 基础辅助逻辑;导出符号以 callerFrame, slowLogging, jsonStringify, jsonParse 为主,顶部注释说明:Threshold in milliseconds for logging slow JSON/clone operations. Operations taking longer than this will be logged f...
standaloneAgent.ts 23 getStandaloneAgentName 基础辅助逻辑;导出符号以 getStandaloneAgentName 为主,顶部注释说明:Standalone agent utilities for sessions with custom names/colors These helpers provide access to standalone agent con...
startupProfiler.ts 194 profileCheckpoint, profileReport, isDetailedProfilingEnabled, getStartupPerfLogPath, logStartupPerf 基础辅助逻辑;导出符号以 profileCheckpoint, profileReport, isDetailedProfilingEnabled, getStartupPerfLogPath 为主,顶部注释说明:Startup profiling utility for measuring and reporting time spent in various initialization phases. Two modes: 1. Samp...
staticRender.tsx 116 renderToAnsiString, renderToString 界面组件或交互视图;导出符号以 renderToAnsiString, renderToString 为主,顶部注释说明:This is a workaround for the fact that Ink doesn't support multiple
stats.ts 1061 DailyActivity, DailyModelTokens, StreakInfo, SessionStats, ClaudeCodeStats, aggregateClaudeCodeStats 基础辅助逻辑;导出符号以 DailyActivity, DailyModelTokens, StreakInfo, SessionStats 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
statsCache.ts 434 STATS_CACHE_VERSION, withStatsCacheLock, PersistedStatsCache, getStatsCachePath, loadStatsCache, saveStatsCache 基础辅助逻辑;导出符号以 STATS_CACHE_VERSION, withStatsCacheLock, PersistedStatsCache, getStatsCachePath 为主,顶部注释说明:Simple in-memory lock to prevent concurrent cache operations.
status.tsx 362 Property, Diagnostic, buildSandboxProperties, buildIDEProperties, buildMcpProperties, buildMemoryDiagnostics 界面组件或交互视图;导出符号以 Property, Diagnostic, buildSandboxProperties, buildIDEProperties 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
statusNoticeDefinitions.tsx 198 StatusNoticeType, StatusNoticeContext, StatusNoticeDefinition, statusNoticeDefinitions, getActiveNotices 界面组件或交互视图;导出符号以 StatusNoticeType, StatusNoticeContext, StatusNoticeDefinition, statusNoticeDefinitions 为主,顶部注释说明:biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
statusNoticeHelpers.ts 20 AGENT_DESCRIPTIONS_THRESHOLD, getAgentDescriptionsTotalTokens 辅助函数集合;导出符号以 AGENT_DESCRIPTIONS_THRESHOLD, getAgentDescriptionsTotalTokens 为主,顶部注释说明:Calculate cumulative token estimate for agent descriptions
stream.ts 76 Stream 基础辅助逻辑;导出符号以 Stream 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
streamJsonStdoutGuard.ts 123 STDOUT_GUARD_MARKER, installStreamJsonStdoutGuard, _resetStreamJsonStdoutGuardForTesting 基础辅助逻辑;导出符号以 STDOUT_GUARD_MARKER, installStreamJsonStdoutGuard, _resetStreamJsonStdoutGuardForTesting 为主,顶部注释说明:Sentinel written to stderr ahead of any diverted non-JSON line, so that log scrapers and tests can grep for guard act...
streamlinedTransform.ts 201 createStreamlinedTransformer, shouldIncludeInStreamlined 基础辅助逻辑;导出符号以 createStreamlinedTransformer, shouldIncludeInStreamlined 为主,顶部注释说明:Transforms SDK messages for streamlined output mode. Streamlined mode is a "distillation-resistant" output format tha...
stringUtils.ts 235 escapeRegExp, capitalize, plural, firstLineOf, countCharInString, normalizeFullWidthDigits 通用辅助逻辑;导出符号以 escapeRegExp, capitalize, plural, firstLineOf 为主,顶部注释说明:General string utility functions and classes for safe string accumulation
subprocessEnv.ts 99 registerUpstreamProxyEnvFn, subprocessEnv 基础辅助逻辑;导出符号以 registerUpstreamProxyEnvFn, subprocessEnv 为主,顶部注释说明:Env vars to strip from subprocess environments when running inside GitHub Actions. This prevents prompt-injection att...
systemDirectories.ts 74 SystemDirectories, getSystemDirectories 基础辅助逻辑;导出符号以 SystemDirectories, getSystemDirectories 为主,顶部注释说明:Get cross-platform system directories Handles differences between Windows, macOS, Linux, and WSL @param options Optio...
systemPrompt.ts 123 buildEffectiveSystemPrompt, asSystemPrompt, type SystemPrompt 提示词/提示模板定义;导出符号以 buildEffectiveSystemPrompt, asSystemPrompt, type SystemPrompt 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
systemPromptType.ts 14 SystemPrompt, asSystemPrompt 提示词/提示模板定义;导出符号以 SystemPrompt, asSystemPrompt 为主,顶部注释说明:Branded type for system prompt arrays. This module is intentionally dependency-free so it can be imported from anywhe...
systemTheme.ts 119 SystemTheme, getSystemThemeName, setCachedSystemTheme, resolveThemeSetting, themeFromOscColor 主题或样式相关逻辑;导出符号以 SystemTheme, getSystemThemeName, setCachedSystemTheme, resolveThemeSetting 为主,顶部注释说明:Terminal dark/light mode detection for the 'auto' theme setting. Detection is based on the terminal's actual backgrou...
taggedId.ts 54 toTaggedId 基础辅助逻辑;导出符号以 toTaggedId 为主,顶部注释说明:Tagged ID encoding compatible with the API's tagged_id.py format. Produces IDs like "user_01PaGUP2rbg1XDh7Z9W1CEpd" f...
tasks.ts 862 setLeaderTeamName, clearLeaderTeamName, onTasksUpdated, notifyTasksUpdated, TASK_STATUSES, TaskStatusSchema 基础辅助逻辑;导出符号以 setLeaderTeamName, clearLeaderTeamName, onTasksUpdated, notifyTasksUpdated 为主,顶部注释说明:Team name set by the leader when creating a team. Used by getTaskListId() so the leader's tasks are stored under the ...
teamDiscovery.ts 81 TeamSummary, TeammateStatus, getTeammateStatuses 基础辅助逻辑;导出符号以 TeamSummary, TeammateStatus, getTeammateStatuses 为主,顶部注释说明:Team Discovery - Utilities for discovering teams and teammate status Scans ~/.claude/teams/ to find teams where the c...
teamMemoryOps.ts 88 isTeamMemorySearch, isTeamMemoryWriteOrEdit, appendTeamMemorySummaryParts, isTeamMemFile 基础辅助逻辑;导出符号以 isTeamMemorySearch, isTeamMemoryWriteOrEdit, appendTeamMemorySummaryParts, isTeamMemFile 为主,顶部注释说明:Check if a search tool use targets team memory files by examining its path.
teammate.ts 292 getParentSessionId, setDynamicTeamContext, clearDynamicTeamContext, getDynamicTeamContext, getAgentId, getAgentName 基础辅助逻辑;导出符号以 getParentSessionId, setDynamicTeamContext, clearDynamicTeamContext, getDynamicTeamContext 为主,顶部注释说明:Teammate utilities for agent swarm coordination These helpers identify whether this Claude Code instance is running a...
teammateContext.ts 96 TeammateContext, getTeammateContext, runWithTeammateContext, isInProcessTeammate, createTeammateContext 上下文状态定义;导出符号以 TeammateContext, getTeammateContext, runWithTeammateContext, isInProcessTeammate 为主,顶部注释说明:TeammateContext - Runtime context for in-process teammates This module provides AsyncLocalStorage-based context for i...
teammateMailbox.ts 1183 TeammateMessage, getInboxPath, readMailbox, readUnreadMessages, writeToMailbox, markMessageAsReadByIndex 基础辅助逻辑;导出符号以 TeammateMessage, getInboxPath, readMailbox, readUnreadMessages 为主,顶部注释说明:Teammate Mailbox - File-based messaging system for agent swarms Each teammate has an inbox file at .claude/teams/{tea...
telemetryAttributes.ts 71 getTelemetryAttributes 基础辅助逻辑;导出符号以 getTelemetryAttributes 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
teleport.tsx 1226 TeleportResult, TeleportProgressStep, TeleportProgressCallback, validateGitState, processMessagesForTeleportResume, checkOutTeleportedSessionBranch 界面组件或交互视图;导出符号以 TeleportResult, TeleportProgressStep, TeleportProgressCallback, validateGitState 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
tempfile.ts 31 generateTempFilePath 基础辅助逻辑;导出符号以 generateTempFilePath 为主,顶部注释说明:Generate a temporary file path. @param prefix Optional prefix for the temp file name @param extension Optional file e...
terminal.ts 131 renderTruncatedContent, isOutputLineTruncated 基础辅助逻辑;导出符号以 renderTruncatedContent, isOutputLineTruncated 为主,顶部注释说明:Text rendering utilities for terminal display
terminalPanel.ts 191 getTerminalPanelSocket, getTerminalPanel 基础辅助逻辑;导出符号以 getTerminalPanelSocket, getTerminalPanel 为主,顶部注释说明:Built-in terminal panel toggled with Meta+J. Uses tmux for shell persistence: a separate tmux server with a per-insta...
textHighlighting.ts 166 TextHighlight, TextSegment, segmentTextByHighlights 基础辅助逻辑;导出符号以 TextHighlight, TextSegment, segmentTextByHighlights 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
theme.ts 639 Theme, THEME_NAMES, ThemeName, THEME_SETTINGS, ThemeSetting, getTheme 主题或样式相关逻辑;导出符号以 Theme, THEME_NAMES, ThemeName, THEME_SETTINGS 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
thinking.ts 162 ThinkingConfig, isUltrathinkEnabled, hasUltrathinkKeyword, findThinkingTriggerPositions, getRainbowColor, modelSupportsThinking 基础辅助逻辑;导出符号以 ThinkingConfig, isUltrathinkEnabled, hasUltrathinkKeyword, findThinkingTriggerPositions 为主,顶部注释说明:biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
timeouts.ts 39 getDefaultBashTimeoutMs, getMaxBashTimeoutMs 基础辅助逻辑;导出符号以 getDefaultBashTimeoutMs, getMaxBashTimeoutMs 为主,顶部注释说明:Constants for timeout values
tmuxSocket.ts 427 getClaudeSocketName, getClaudeSocketPath, setClaudeSocketInfo, isSocketInitialized, getClaudeTmuxEnv, checkTmuxAvailable 基础辅助逻辑;导出符号以 getClaudeSocketName, getClaudeSocketPath, setClaudeSocketInfo, isSocketInitialized 为主,顶部注释说明:TMUX SOCKET ISOLATION ===================== This module manages an isolated tmux socket for Claude's operations. WHY ...
tokenBudget.ts 73 parseTokenBudget, findTokenBudgetPositions, getBudgetContinuationMessage 基础辅助逻辑;导出符号以 parseTokenBudget, findTokenBudgetPositions, getBudgetContinuationMessage 为主,顶部注释说明:Shorthand (+500k) anchored to start/end to avoid false positives in natural language.
tokens.ts 261 getTokenUsage, getTokenCountFromUsage, tokenCountFromLastAPIResponse, finalContextTokensFromLastResponse, messageTokenCountFromLastAPIResponse, getCurrentUsage 基础辅助逻辑;导出符号以 getTokenUsage, getTokenCountFromUsage, tokenCountFromLastAPIResponse, finalContextTokensFromLastResponse 为主,顶部注释说明:Get the API response id for an assistant message with real (non-synthetic) usage. Used to identify split assistant re...
toolErrors.ts 132 formatError, getErrorParts, formatZodValidationError 工具实现或工具适配层;导出符号以 formatError, getErrorParts, formatZodValidationError 为主,顶部注释说明:Formats a Zod validation path into a readable string e.g., ['todos', 0, 'activeForm'] => 'todos[0].activeForm'
toolPool.ts 79 isPrActivitySubscriptionTool, applyCoordinatorToolFilter, mergeAndFilterTools 工具实现或工具适配层;导出符号以 isPrActivitySubscriptionTool, applyCoordinatorToolFilter, mergeAndFilterTools 为主,顶部注释说明:MCP tool name suffixes for PR activity subscription. These are lightweight
toolResultStorage.ts 1040 TOOL_RESULTS_SUBDIR, PERSISTED_OUTPUT_TAG, PERSISTED_OUTPUT_CLOSING_TAG, TOOL_RESULT_CLEARED_MESSAGE, getPersistenceThreshold, PersistedToolResult 工具实现或工具适配层;导出符号以 TOOL_RESULTS_SUBDIR, PERSISTED_OUTPUT_TAG, PERSISTED_OUTPUT_CLOSING_TAG, TOOL_RESULT_CLEARED_MESSAGE 为主,顶部注释说明:Utility for persisting large tool results to disk instead of truncating them.
toolSchemaCache.ts 26 getToolSchemaCache, clearToolSchemaCache schema 或约束定义;导出符号以 getToolSchemaCache, clearToolSchemaCache 为主,顶部注释说明:Session-scoped cache of rendered tool schemas. Tool schemas render at server
toolSearch.ts 756 getAutoToolSearchCharThreshold, ToolSearchMode, getToolSearchMode, modelSupportsToolReference, isToolSearchEnabledOptimistic, isToolSearchToolAvailable 工具实现或工具适配层;导出符号以 getAutoToolSearchCharThreshold, ToolSearchMode, getToolSearchMode, modelSupportsToolReference 为主,顶部注释说明:Tool Search utilities for dynamically discovering deferred tools. When enabled, deferred tools (MCP and shouldDefer t...
transcriptSearch.ts 202 renderableSearchText, toolUseSearchText, toolResultSearchText 基础辅助逻辑;导出符号以 renderableSearchText, toolUseSearchText, toolResultSearchText 为主,顶部注释说明:Flatten a RenderableMessage to lowercased searchable text. WeakMap- cached — messages are append-only and immutable s...
treeify.ts 170 TreeNode, TreeifyOptions, treeify 基础辅助逻辑;导出符号以 TreeNode, TreeifyOptions, treeify 为主,顶部注释说明:Custom treeify implementation with Ink theme color support Based on https://github.com/notatestuser/treeify
truncate.ts 179 truncatePathMiddle, truncateToWidth, truncateStartToWidth, truncateToWidthNoEllipsis, truncate, wrapText 基础辅助逻辑;导出符号以 truncatePathMiddle, truncateToWidth, truncateStartToWidth, truncateToWidthNoEllipsis 为主,顶部注释说明:Width-aware truncation/wrapping — needs ink/stringWidth (not leaf-safe).
unaryLogging.ts 39 CompletionType, logUnaryEvent 基础辅助逻辑;导出符号以 CompletionType, logUnaryEvent 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
undercover.ts 89 isUndercover, getUndercoverInstructions, shouldShowUndercoverAutoNotice 基础辅助逻辑;导出符号以 isUndercover, getUndercoverInstructions, shouldShowUndercoverAutoNotice 为主,顶部注释说明:Undercover mode — safety utilities for contributing to public/open-source repos. When active, Claude Code adds safety...
user.ts 194 GitHubActionsMetadata, CoreUserData, initUser, resetUserCache, getCoreUserData, getUserForGrowthBook 基础辅助逻辑;导出符号以 GitHubActionsMetadata, CoreUserData, initUser, resetUserCache 为主,顶部注释说明:GitHub Actions metadata when running in CI
userAgent.ts 10 getClaudeCodeUserAgent 基础辅助逻辑;导出符号以 getClaudeCodeUserAgent 为主,顶部注释说明:User-Agent string helpers. Kept dependency-free so SDK-bundled code (bridge, cli/transports) can import without pulli...
userPromptKeywords.ts 27 matchesNegativeKeyword, matchesKeepGoingKeyword 提示词/提示模板定义;导出符号以 matchesNegativeKeyword, matchesKeepGoingKeyword 为主,顶部注释说明:Checks if input matches negative keyword patterns
uuid.ts 27 validateUuid, createAgentId 基础辅助逻辑;导出符号以 validateUuid, createAgentId 为主,顶部注释说明:Validate uuid @param maybeUUID The value to be checked if it is a uuid @returns string as UUID or null if it is not v...
warningHandler.ts 121 MAX_WARNING_KEYS, resetWarningHandler, initializeWarningHandler 基础辅助逻辑;导出符号以 MAX_WARNING_KEYS, resetWarningHandler, initializeWarningHandler 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
which.ts 82 which, whichSync 基础辅助逻辑;导出符号以 which, whichSync 为主,顶部注释说明:On Windows, use where.exe and return the first result
windowsPaths.ts 173 setShellIfWindows, findGitBashPath, windowsPathToPosixPath, posixPathToWindowsPath 基础辅助逻辑;导出符号以 setShellIfWindows, findGitBashPath, windowsPathToPosixPath, posixPathToWindowsPath 为主,顶部注释说明:Check if a file or directory exists on Windows using the dir command @param path - The path to check @returns true if...
withResolvers.ts 13 withResolvers 解析/决策分发逻辑;导出符号以 withResolvers 为主,顶部注释说明:Polyfill for Promise.withResolvers() (ES2024, Node 22+). package.json declares "engines": { "node": ">=18.0.0" } so w...
words.ts 800 generateWordSlug, generateShortWordSlug 基础辅助逻辑;导出符号以 generateWordSlug, generateShortWordSlug 为主,顶部注释说明:Adjectives for slug generation - whimsical and delightful
workloadContext.ts 57 Workload, WORKLOAD_CRON, getWorkload, runWithWorkload 上下文状态定义;导出符号以 Workload, WORKLOAD_CRON, getWorkload, runWithWorkload 为主,顶部注释说明:Turn-scoped workload tag via AsyncLocalStorage. WHY a separate module from bootstrap/state.ts: bootstrap is transitiv...
worktree.ts 1519 validateWorktreeSlug, WorktreeSession, getCurrentWorktreeSession, restoreWorktreeSession, generateTmuxSessionName, worktreeBranchName 基础辅助逻辑;导出符号以 validateWorktreeSlug, WorktreeSession, getCurrentWorktreeSession, restoreWorktreeSession 为主,结合所在目录可判断其服务于 src/utils 这条功能线。
worktreeModeEnabled.ts 11 isWorktreeModeEnabled 基础辅助逻辑;导出符号以 isWorktreeModeEnabled 为主,顶部注释说明:Worktree mode is now unconditionally enabled for all users. Previously gated by GrowthBook flag 'tengu_worktree_mode'...
xdg.ts 65 getXDGStateHome, getXDGCacheHome, getXDGDataHome, getUserBinDir 基础辅助逻辑;导出符号以 getXDGStateHome, getXDGCacheHome, getXDGDataHome, getUserBinDir 为主,顶部注释说明:XDG Base Directory utilities for Claude CLI Native Installer Implements the XDG Base Directory specification for orga...
xml.ts 16 escapeXml, escapeXmlAttr 基础辅助逻辑;导出符号以 escapeXml, escapeXmlAttr 为主,顶部注释说明:Escape XML/HTML special characters for safe interpolation into element text content (between tags). Use when untruste...
yaml.ts 15 parseYaml 基础辅助逻辑;导出符号以 parseYaml 为主,顶部注释说明:YAML parsing wrapper. Uses Bun.YAML (built-in, zero-cost) when running under Bun, otherwise falls back to the yaml ...
zodToJsonSchema.ts 23 JsonSchema7Type, zodToJsonSchema schema 或约束定义;导出符号以 JsonSchema7Type, zodToJsonSchema 为主,顶部注释说明:Converts Zod v4 schemas to JSON Schema using native toJSONSchema.

直接子目录说明

子目录 直接文件数 直接子目录数 说明
src/utils/background 0 1 该目录是 src/utils 下的子模块,围绕 background 这一主题组织实现文件。
src/utils/bash 15 1 该目录是 src/utils 下的子模块,围绕 bash 这一主题组织实现文件。
src/utils/claudeInChrome 7 0 该目录是 src/utils 下的子模块,围绕 claudeInChrome 这一主题组织实现文件。
src/utils/computerUse 15 0 该目录是 src/utils 下的子模块,围绕 computerUse 这一主题组织实现文件。
src/utils/deepLink 6 0 该目录是 src/utils 下的子模块,围绕 deepLink 这一主题组织实现文件。
src/utils/dxt 2 0 该目录是 src/utils 下的子模块,围绕 dxt 这一主题组织实现文件。
src/utils/filePersistence 2 0 该目录是 src/utils 下的子模块,围绕 filePersistence 这一主题组织实现文件。
src/utils/git 3 0 该目录是 src/utils 下的子模块,围绕 git 这一主题组织实现文件。
src/utils/github 1 0 该目录是 src/utils 下的子模块,围绕 github 这一主题组织实现文件。
src/utils/hooks 17 0 该目录主要放置 hooks,用于封装状态派生、副作用和复用交互逻辑。
src/utils/mcp 2 0 该目录是 src/utils 下的子模块,围绕 mcp 这一主题组织实现文件。
src/utils/memory 2 0 该目录是 src/utils 下的子模块,围绕 memory 这一主题组织实现文件。
src/utils/messages 2 0 该目录是 src/utils 下的子模块,围绕 messages 这一主题组织实现文件。
src/utils/model 16 0 该目录是 src/utils 下的子模块,围绕 model 这一主题组织实现文件。
src/utils/nativeInstaller 5 0 该目录是 src/utils 下的子模块,围绕 nativeInstaller 这一主题组织实现文件。
src/utils/permissions 24 0 权限基础设施目录,负责模式、规则、分类器、自动模式与路径权限。
src/utils/plugins 44 0 插件基础设施目录,负责 marketplace、安装、缓存、策略、校验、热更新与插件能力接入。
src/utils/powershell 3 0 该目录是 src/utils 下的子模块,围绕 powershell 这一主题组织实现文件。
src/utils/processUserInput 4 0 该目录是 src/utils 下的子模块,围绕 processUserInput 这一主题组织实现文件。
src/utils/sandbox 2 0 该目录是 src/utils 下的子模块,围绕 sandbox 这一主题组织实现文件。
src/utils/secureStorage 6 0 该目录是 src/utils 下的子模块,围绕 secureStorage 这一主题组织实现文件。
src/utils/settings 16 1 设置系统目录,负责 schema、缓存、校验、变更检测、托管设置与来源合并。
src/utils/shell 10 0 该目录是 src/utils 下的子模块,围绕 shell 这一主题组织实现文件。
src/utils/skills 1 0 该目录是 src/utils 下的子模块,围绕 skills 这一主题组织实现文件。
src/utils/suggestions 5 0 该目录是 src/utils 下的子模块,围绕 suggestions 这一主题组织实现文件。
src/utils/swarm 13 1 该目录是 src/utils 下的子模块,围绕 swarm 这一主题组织实现文件。
src/utils/task 5 0 该目录是 src/utils 下的子模块,围绕 task 这一主题组织实现文件。
src/utils/telemetry 9 0 该目录是 src/utils 下的子模块,围绕 telemetry 这一主题组织实现文件。
src/utils/teleport 4 0 该目录是 src/utils 下的子模块,围绕 teleport 这一主题组织实现文件。
src/utils/todo 1 0 该目录是 src/utils 下的子模块,围绕 todo 这一主题组织实现文件。
src/utils/ultraplan 2 0 该目录是 src/utils 下的子模块,围绕 ultraplan 这一主题组织实现文件。