mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
chore: 清理仓库审计问题——修正 CLAUDE.md、删除冗余 yoga-layout、清除 621 个未使用的类型 stub (#354)
- 修正 CLAUDE.md/AGENTS.md 六处过时陈述:modifiers-napi、url-handler-napi 已非 stub, Magic Docs/LSP Server/Plugins/Marketplace 已恢复 - 删除未使用的 src/native-ts/yoga-layout/ 冗余副本(2715 行),权威版本保留在 packages/@ant/ink - 删除 src/ 下 621 个 Auto-generated type stub 文件(全部 export type X = any,无活跃引用) Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type CoreUserData = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type QueryChainTracking = any;
|
||||
@@ -1,20 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getSessionId = any;
|
||||
export type getAfkModeHeaderLatched = any;
|
||||
export type getCacheEditingHeaderLatched = any;
|
||||
export type getFastModeHeaderLatched = any;
|
||||
export type getLastApiCompletionTimestamp = any;
|
||||
export type getPromptCache1hAllowlist = any;
|
||||
export type getPromptCache1hEligible = any;
|
||||
export type setAfkModeHeaderLatched = any;
|
||||
export type setCacheEditingHeaderLatched = any;
|
||||
export type setFastModeHeaderLatched = any;
|
||||
export type setLastMainRequestId = any;
|
||||
export type setPromptCache1hAllowlist = any;
|
||||
export type setPromptCache1hEligible = any;
|
||||
export type addToTotalDurationState = any;
|
||||
export type consumePostCompaction = any;
|
||||
export type getIsNonInteractiveSession = any;
|
||||
export type getTeleportedSessionInfo = any;
|
||||
export type markFirstTeleportMessageLogged = any;
|
||||
export type setLastApiCompletionTimestamp = any;
|
||||
@@ -1,10 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type AFK_MODE_BETA_HEADER = any;
|
||||
export type CONTEXT_1M_BETA_HEADER = any;
|
||||
export type CONTEXT_MANAGEMENT_BETA_HEADER = any;
|
||||
export type EFFORT_BETA_HEADER = any;
|
||||
export type FAST_MODE_BETA_HEADER = any;
|
||||
export type PROMPT_CACHING_SCOPE_BETA_HEADER = any;
|
||||
export type REDACT_THINKING_BETA_HEADER = any;
|
||||
export type STRUCTURED_OUTPUTS_BETA_HEADER = any;
|
||||
export type TASK_BUDGETS_BETA_HEADER = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type QuerySource = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type Notification = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type addToTotalSessionCost = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type SDKAssistantMessageError = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getFeatureValue_CACHED_MAY_BE_STALE = any;
|
||||
@@ -1,3 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any;
|
||||
export type logEvent = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type isConnectorTextBlock = (block: unknown) => boolean;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type AgentId = any;
|
||||
@@ -1,5 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type Message = any;
|
||||
export type AssistantMessage = any;
|
||||
export type UserMessage = any;
|
||||
export type SystemAPIErrorMessage = any;
|
||||
@@ -1,6 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type ADVISOR_TOOL_INSTRUCTIONS = any;
|
||||
export type getExperimentAdvisorModels = any;
|
||||
export type isAdvisorEnabled = any;
|
||||
export type isValidAdvisorModel = any;
|
||||
export type modelSupportsAdvisor = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getAgentContext = any;
|
||||
@@ -1,12 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getAnthropicApiKeyWithSource = any;
|
||||
export type getClaudeAIOAuthTokens = any;
|
||||
export type getOauthAccountInfo = any;
|
||||
export type isClaudeAISubscriber = any;
|
||||
export type checkAndRefreshOAuthTokenIfNeeded = any;
|
||||
export type getAnthropicApiKey = any;
|
||||
export type getApiKeyFromApiKeyHelper = any;
|
||||
export type refreshAndGetAwsCredentials = any;
|
||||
export type refreshGcpCredentialsIfNeeded = any;
|
||||
export type isConsumerSubscriber = any;
|
||||
export type hasProfileScope = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type isAwsCredentialsProviderError = any;
|
||||
@@ -1,5 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getToolSearchBetaHeader = any;
|
||||
export type modelSupportsStructuredOutputs = any;
|
||||
export type shouldIncludeFirstPartyOnlyBetas = any;
|
||||
export type shouldUseGlobalCacheScope = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type CLAUDE_IN_CHROME_MCP_SERVER_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type CHROME_TOOL_SEARCH_INSTRUCTIONS = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getMaxThinkingTokensForModel = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logForDebugging = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logForDiagnosticsNoPII = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type EffortValue = 'low' | 'medium' | 'high' | 'xhigh' | 'max' | number
|
||||
export type modelSupportsEffort = (model: string) => boolean
|
||||
export type EffortLevel = 'low' | 'medium' | 'high' | 'xhigh' | 'max'
|
||||
@@ -1,5 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type isFastModeAvailable = any;
|
||||
export type isFastModeCooldown = any;
|
||||
export type isFastModeEnabled = any;
|
||||
export type isFastModeSupportedByModel = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type returnValue = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type gracefulShutdown = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type djb2Hash = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type headlessProfilerCheckpoint = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getUserAgent = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logError = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type isMcpInstructionsDeltaEnabled = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type createAssistantAPIErrorMessage = any;
|
||||
export type NO_RESPONSE_REQUESTED = any;
|
||||
export type createSystemAPIErrorMessage = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getDefaultMainLoopModelSetting = any;
|
||||
export type isNonCustomOpusModel = any;
|
||||
export type getSmallFastModel = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getModelStrings = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getAPIProvider = any;
|
||||
export type getAPIProviderForStatsig = any;
|
||||
export type isFirstPartyAnthropicBaseUrl = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type calculateUSDCost = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type PermissionMode = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getClaudeTempDir = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type isEssentialTrafficOnly = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type writeToStderr = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getProxyFetchOptions = any;
|
||||
@@ -1,3 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type endQueryProfile = any;
|
||||
export type queryCheckpoint = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type jsonStringify = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logOTelEvent = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type endLLMRequestSpan = any;
|
||||
export type isBetaTracingEnabled = any;
|
||||
export type Span = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type modelSupportsAdaptiveThinking = any;
|
||||
export type modelSupportsThinking = any;
|
||||
export type ThinkingConfig = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type extractDiscoveredToolNames = any;
|
||||
export type isDeferredToolsDeltaEnabled = any;
|
||||
export type isToolSearchEnabled = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type markPostCompaction = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type FILE_EDIT_TOOL_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type FILE_READ_TOOL_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type FILE_WRITE_TOOL_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type GLOB_TOOL_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type GREP_TOOL_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type NOTEBOOK_EDIT_TOOL_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type WEB_FETCH_TOOL_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type WEB_SEARCH_TOOL_NAME = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type SHELL_TOOL_NAMES = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getOauthConfig = any;
|
||||
@@ -1,3 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any;
|
||||
export type logEvent = any;
|
||||
@@ -1,7 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type dedupClaudeAiMcpServers = any;
|
||||
export type doesEnterpriseMcpConfigExist = any;
|
||||
export type filterMcpServersByPolicy = any;
|
||||
export type getClaudeCodeMcpConfigs = any;
|
||||
export type isMcpServerDisabled = any;
|
||||
export type setMcpServerEnabled = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type AppState = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type AssistantMessage = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type PluginError = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getClaudeAIOAuthTokens = any;
|
||||
@@ -1,3 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getGlobalConfig = any;
|
||||
export type saveGlobalConfig = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logForDebugging = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type isEnvDefinedFalsy = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getPlatform = any;
|
||||
@@ -1,3 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getOauthConfig = any;
|
||||
export type OAUTH_BETA_HEADER = any;
|
||||
@@ -1,3 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logEvent = any;
|
||||
export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type OAuthProfileResponse = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getAnthropicApiKey = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getGlobalConfig = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logError = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type addToTotalSessionCost = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logError = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getAPIProvider = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type calculateUSDCost = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type logForDebugging = any;
|
||||
@@ -1,2 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type fileHistoryEnabled = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type getInitialSettings = any;
|
||||
export type getSettings_DEPRECATED = any;
|
||||
export type getSettingsForSource = any;
|
||||
@@ -1,3 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any;
|
||||
export type logEvent = any;
|
||||
@@ -1,9 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type sanitizeToolNameForAnalytics = any;
|
||||
export type extractMcpToolDetails = any;
|
||||
export type extractSkillName = any;
|
||||
export type extractToolInputForTelemetry = any;
|
||||
export type getFileExtensionForAnalytics = any;
|
||||
export type getFileExtensionsFromBashCommand = any;
|
||||
export type isToolDetailsLoggingEnabled = any;
|
||||
export type mcpToolDetailsForAnalytics = any;
|
||||
@@ -1,4 +0,0 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type createUserMessage = any;
|
||||
export type REJECT_MESSAGE = any;
|
||||
export type withMemoryCorrectionHint = any;
|
||||
Reference in New Issue
Block a user