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,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type HookEvent = any;
export type ModelUsage = any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,14 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type SDKStatus = any;
export type ModelInfo = any;
export type SDKMessage = any;
export type SDKUserMessage = any;
export type SDKUserMessageReplay = any;
export type PermissionResult = any;
export type McpServerConfigForProcessTransport = any;
export type McpServerStatus = any;
export type RewindFilesResult = any;
export type HookEvent = any;
export type HookInput = any;
export type HookJSONOutput = any;
export type PermissionUpdate = any;

View File

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

View File

@@ -1,9 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type StdoutMessage = any;
export type SDKControlInitializeRequest = any;
export type SDKControlInitializeResponse = any;
export type SDKControlRequest = any;
export type SDKControlResponse = any;
export type SDKControlMcpSetServersResponse = any;
export type SDKControlReloadPluginsResponse = any;
export type StdinMessage = any;

View File

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

View File

@@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type tryGenerateSuggestion = any;
export type logSuggestionOutcome = any;
export type logSuggestionSuppressed = any;
export type PromptVariant = 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 logEvent = any;
export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type ChannelMessageNotificationSchema = any;
export type gateChannelServer = any;
export type wrapChannelMessage = any;
export type findChannelEntry = any;

View File

@@ -1,7 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type setupSdkMcpClients = any;
export type connectToServer = any;
export type clearServerCache = any;
export type fetchToolsForClient = any;
export type areMcpConfigsEqual = any;
export type reconnectMcpServerImpl = any;

View File

@@ -1,6 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type filterMcpServersByPolicy = any;
export type getMcpConfigByName = any;
export type isMcpServerDisabled = any;
export type setMcpServerEnabled = any;
export type getAllMcpConfigs = any;

View File

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

View File

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

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type MCPServerConnection = any;
export type McpSdkServerConfig = any;
export type ScopedMcpServerConfig = any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type downloadUserSettings = any;
export type redownloadUserSettings = 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 externalMetadataToAppState = any;

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getLatestVersion = any;
export type InstallStatus = any;
export type installGlobalPackage = any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type modelSupportsEffort = any;
export type modelSupportsMaxEffort = any;
export type EFFORT_LEVELS = any;
export type resolveAppliedEffort = any;

View File

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

View File

@@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isFastModeAvailable = any;
export type isFastModeEnabled = any;
export type isFastModeSupportedByModel = any;
export type getFastModeState = any;

View File

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

View File

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

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type createFileStateCacheWithSizeLimit = any;
export type mergeFileStateCaches = any;
export type READ_FILE_STATE_CACHE_SIZE = any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,8 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type dequeue = any;
export type dequeueAllMatching = any;
export type enqueue = any;
export type hasCommandsInQueue = any;
export type peek = any;
export type subscribeToCommandQueue = any;
export type getCommandsByMaxPriority = any;

View File

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

View File

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

View File

@@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getDefaultMainLoopModel = any;
export type getMainLoopModel = any;
export type modelDisplayString = any;
export type parseUserSpecifiedModel = any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type outputSchema = any;
export type permissionPromptToolResultToPermissionDecision = any;
export type Output = any;

View File

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

View File

@@ -1,6 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isAutoModeGateEnabled = any;
export type getAutoModeUnavailableNotification = any;
export type getAutoModeUnavailableReason = any;
export type isBypassPermissionsModeDisabled = any;
export type transitionPermissionMode = any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More