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

@@ -5,7 +5,7 @@ import React, {
useLayoutEffect,
useMemo,
} from 'react'
import type { Key } from '@anthropic/ink'
import type { Key } from '../ink.js'
import {
type ChordResolveResult,
getBindingDisplayText,

View File

@@ -8,11 +8,11 @@
*/
import React, { useCallback, useEffect, useRef, useState } from 'react'
import { useNotifications } from '../context/notifications.js'
import type { InputEvent } from '@anthropic/ink'
import type { InputEvent } from '../ink/events/input-event.js'
// ChordInterceptor intentionally uses useInput to intercept all keystrokes before
// other handlers process them - this is required for chord sequence support
// eslint-disable-next-line custom-rules/prefer-use-keybindings
import { type Key, useInput } from '@anthropic/ink'
import { type Key, useInput } from '../ink.js'
import { count } from '../utils/array.js'
import { logForDebugging } from '../utils/debug.js'
import { plural } from '../utils/stringUtils.js'

View File

@@ -1,4 +1,4 @@
import type { Key } from '@anthropic/ink'
import type { Key } from '../ink.js'
import type { ParsedBinding, ParsedKeystroke } from './types.js'
/**

View File

@@ -1,4 +1,4 @@
import type { Key } from '@anthropic/ink'
import type { Key } from '../ink.js'
import { getKeyName, matchesBinding } from './match.js'
import { chordToString } from './parser.js'
import type {

View File

@@ -1,6 +1,6 @@
import { useCallback, useEffect } from 'react'
import type { InputEvent } from '@anthropic/ink'
import { type Key, useInput } from '@anthropic/ink'
import type { InputEvent } from '../ink/events/input-event.js'
import { type Key, useInput } from '../ink.js'
import { useOptionalKeybindingContext } from './KeybindingContext.js'
import type { KeybindingContextName } from './types.js'