chore: 清理 src 下 113 项未使用导入和死代码

删除未使用的文件(BuiltinStatusLine.tsx、4 个重复的 .ts stub)、
移除约 55 个文件中未使用的 React 导入、
清理约 50 处未使用的导入/变量/参数。
净减少 ~296 行代码,precheck 4077 测试全部通过。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-05-05 20:05:15 +08:00
parent 87b96199f9
commit fcbc882232
113 changed files with 63 additions and 359 deletions

View File

@@ -175,9 +175,6 @@ export const hookJSONOutputSchema = lazySchema(() => {
return z.union([asyncHookResponseSchema, syncHookResponseSchema()])
})
// Infer the TypeScript type from the schema
type SchemaHookJSONOutput = z.infer<ReturnType<typeof hookJSONOutputSchema>>
// Type guard function to check if response is sync
export function isSyncHookJSONOutput(
json: HookJSONOutput,

View File

@@ -53,8 +53,6 @@ import type {
import type {
AssistantMessage,
CollapsibleMessage,
NormalizedAssistantMessage,
NormalizedUserMessage,
UserMessage,
} from '@ant/model-provider'
import type { UUID } from 'crypto'

View File

@@ -6,7 +6,6 @@
* to avoid circular dependencies.
*/
import { feature } from 'bun:bundle'
import type { ContentBlockParam } from '@anthropic-ai/sdk/resources/messages.mjs'
// ============================================================================