refactor: 大规模迁移原有组件到 ink 包内

This commit is contained in:
claude-code-best
2026-04-07 22:26:45 +08:00
parent 52a9cc0414
commit 91b9366f64
44 changed files with 563 additions and 2480 deletions

View File

@@ -1,12 +1,2 @@
import { useContext } from 'react'
import { type TerminalSize, TerminalSizeContext } from '@anthropic/ink'
export function useTerminalSize(): TerminalSize {
const size = useContext(TerminalSizeContext)
if (!size) {
throw new Error('useTerminalSize must be used within an Ink App component')
}
return size
}
// Re-export from @anthropic/ink hooks module
export { useTerminalSize } from '@anthropic/ink'