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:
claude-code-best
2026-04-25 08:54:18 +08:00
committed by GitHub
parent e38d45460e
commit c07ad4c738
626 changed files with 260 additions and 4386 deletions

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type CoreUserData = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type QueryChainTracking = any;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type QuerySource = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type Notification = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type addToTotalSessionCost = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type SDKAssistantMessageError = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getFeatureValue_CACHED_MAY_BE_STALE = any;

View File

@@ -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;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isConnectorTextBlock = (block: unknown) => boolean;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type AgentId = any;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getAgentContext = any;

View File

@@ -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;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isAwsCredentialsProviderError = any;

View File

@@ -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;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type CLAUDE_IN_CHROME_MCP_SERVER_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type CHROME_TOOL_SEARCH_INSTRUCTIONS = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getMaxThinkingTokensForModel = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logForDebugging = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logForDiagnosticsNoPII = any;

View File

@@ -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'

View File

@@ -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;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type returnValue = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type gracefulShutdown = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type djb2Hash = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type headlessProfilerCheckpoint = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getUserAgent = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logError = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isMcpInstructionsDeltaEnabled = any;

View File

@@ -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;

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getDefaultMainLoopModelSetting = any;
export type isNonCustomOpusModel = any;
export type getSmallFastModel = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getModelStrings = any;

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getAPIProvider = any;
export type getAPIProviderForStatsig = any;
export type isFirstPartyAnthropicBaseUrl = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type calculateUSDCost = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type PermissionMode = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getClaudeTempDir = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isEssentialTrafficOnly = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type writeToStderr = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getProxyFetchOptions = any;

View File

@@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type endQueryProfile = any;
export type queryCheckpoint = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type jsonStringify = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logOTelEvent = any;

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type endLLMRequestSpan = any;
export type isBetaTracingEnabled = any;
export type Span = any;

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type modelSupportsAdaptiveThinking = any;
export type modelSupportsThinking = any;
export type ThinkingConfig = any;

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type extractDiscoveredToolNames = any;
export type isDeferredToolsDeltaEnabled = any;
export type isToolSearchEnabled = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type markPostCompaction = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type FILE_EDIT_TOOL_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type FILE_READ_TOOL_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type FILE_WRITE_TOOL_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type GLOB_TOOL_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type GREP_TOOL_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type NOTEBOOK_EDIT_TOOL_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type WEB_FETCH_TOOL_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type WEB_SEARCH_TOOL_NAME = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type SHELL_TOOL_NAMES = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getOauthConfig = any;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type AppState = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type AssistantMessage = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type PluginError = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getClaudeAIOAuthTokens = any;

View File

@@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getGlobalConfig = any;
export type saveGlobalConfig = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logForDebugging = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isEnvDefinedFalsy = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getPlatform = any;

View File

@@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getOauthConfig = any;
export type OAUTH_BETA_HEADER = any;

View File

@@ -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;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type OAuthProfileResponse = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getAnthropicApiKey = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getGlobalConfig = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logError = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type addToTotalSessionCost = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logError = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getAPIProvider = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type calculateUSDCost = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logForDebugging = any;

View File

@@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type fileHistoryEnabled = any;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;