Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)

This reverts commit c445f43f8d.
This commit is contained in:
claude-code-best
2026-04-07 15:05:03 +08:00
committed by GitHub
parent ca0c3265e6
commit 88d4c3ba24
645 changed files with 1214 additions and 7255 deletions

View File

@@ -13,9 +13,11 @@ import React, {
import stripAnsi from 'strip-ansi'
import type { CommandResultDisplay } from '../commands.js'
import { useTerminalSize } from '../hooks/useTerminalSize.js'
import { applyColor } from '../ink/colorize.js'
import { stringWidth as getStringWidth } from '../ink/stringWidth.js'
import type { Color } from '../ink/styles.js'
// eslint-disable-next-line custom-rules/prefer-use-keybindings -- raw j/k/arrow stats navigation
import { Ansi, applyColor, Box, Text, useInput, stringWidth as getStringWidth, type Color, Pane, Tabs } from '@anthropic/ink'
import { Tab, useTabHeaderFocus } from './design-system/Tabs.js'
import { Ansi, Box, Text, useInput } from '../ink.js'
import { useKeybinding } from '../keybindings/useKeybinding.js'
import { getGlobalConfig } from '../utils/config.js'
import { formatDuration, formatNumber } from '../utils/format.js'
@@ -30,6 +32,8 @@ import {
} from '../utils/stats.js'
import { resolveThemeSetting } from '../utils/systemTheme.js'
import { getTheme, themeColorToAnsi } from '../utils/theme.js'
import { Pane } from './design-system/Pane.js'
import { Tab, Tabs, useTabHeaderFocus } from './design-system/Tabs.js'
import { Spinner } from './Spinner.js'
function formatPeakDay(dateStr: string): string {