mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
chore: 清理 src 下 33 项死代码和类型断言
删除未使用的文件/目录(mcp/adapter、cli/update.ts 等)、 未使用的重导出文件(design-system/color.ts 等 12 个)、 7 个零引用的导出函数、修复 5 处 as any 为精确类型。 净减少 ~1194 行代码,precheck 4077 测试全部通过。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -185,8 +185,8 @@ export async function getOutputStyleConfig(): Promise<OutputStyleConfig | null>
|
||||
const forcedStyles = Object.values(allStyles).filter(
|
||||
(style): style is OutputStyleConfig =>
|
||||
style !== null &&
|
||||
(style as any).source === 'plugin' &&
|
||||
(style as any).forceForPlugin === true,
|
||||
style.source === 'plugin' &&
|
||||
style.forceForPlugin === true,
|
||||
)
|
||||
|
||||
const firstForcedStyle = forcedStyles[0]
|
||||
@@ -209,8 +209,3 @@ export async function getOutputStyleConfig(): Promise<OutputStyleConfig | null>
|
||||
|
||||
return allStyles[outputStyle] ?? null
|
||||
}
|
||||
|
||||
export function hasCustomOutputStyle(): boolean {
|
||||
const style = getSettings_DEPRECATED()?.outputStyle
|
||||
return style !== undefined && style !== DEFAULT_OUTPUT_STYLE_NAME
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user