mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
feat: 第一个可以用的 ink 组件抽象 (#158)
This commit is contained in:
@@ -6,7 +6,7 @@ const coordinatorModule = feature('COORDINATOR_MODE')
|
||||
? (require('../../coordinator/coordinatorMode.js') as typeof import('../../coordinator/coordinatorMode.js'))
|
||||
: undefined
|
||||
/* eslint-enable @typescript-eslint/no-require-imports */
|
||||
import { Box, Text, Link } from '../../ink.js'
|
||||
import { Box, Text, Link } from '@anthropic/ink'
|
||||
import * as React from 'react'
|
||||
import figures from 'figures'
|
||||
import {
|
||||
@@ -39,8 +39,7 @@ import { useAppState, useAppStateStore } from 'src/state/AppState.js'
|
||||
import { getIsRemoteMode } from '../../bootstrap/state.js'
|
||||
import HistorySearchInput from './HistorySearchInput.js'
|
||||
import { usePrStatus } from '../../hooks/usePrStatus.js'
|
||||
import { KeyboardShortcutHint } from '../design-system/KeyboardShortcutHint.js'
|
||||
import { Byline } from '../design-system/Byline.js'
|
||||
import { Byline, KeyboardShortcutHint } from '@anthropic/ink'
|
||||
import { useTerminalSize } from '../../hooks/useTerminalSize.js'
|
||||
import { useTasksV2 } from '../../hooks/useTasksV2.js'
|
||||
import { formatDuration } from '../../utils/format.js'
|
||||
@@ -48,8 +47,7 @@ import { VoiceWarmupHint } from './VoiceIndicator.js'
|
||||
import { useVoiceEnabled } from '../../hooks/useVoiceEnabled.js'
|
||||
import { useVoiceState } from '../../context/voice.js'
|
||||
import { isFullscreenEnvEnabled } from '../../utils/fullscreen.js'
|
||||
import { isXtermJs } from '../../ink/terminal.js'
|
||||
import { useHasSelection, useSelection } from '../../ink/hooks/use-selection.js'
|
||||
import { isXtermJs, useHasSelection, useSelection } from '@anthropic/ink'
|
||||
import { getGlobalConfig, saveGlobalConfig } from '../../utils/config.js'
|
||||
import { getPlatform } from '../../utils/platform.js'
|
||||
import { PrBadge } from '../PrBadge.js'
|
||||
|
||||
Reference in New Issue
Block a user