mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-28 15:26:53 +05:00
- Implement useAutocomplete hook with fuzzy matching and Redis integration - Add visual feedback showing up to 5 suggestions below input - Support Tab key for completion with common prefix algorithm - Real-time suggestion updates as user types - Path normalization (handles ./, trailing slashes) - Case-insensitive matching with scoring algorithm - Add 21 unit tests with jsdom environment - Update Input component with storage and projectRoot props - Refactor key handlers to reduce complexity - Install @testing-library/react, jsdom, @types/jsdom - Update react-dom to 18.3.1 for compatibility - Configure jsdom environment for TUI tests in vitest config - Adjust coverage threshold for branches to 91.5% - Fix deprecated ErrorChoice usage (use ErrorOption) Version: 0.21.0 Tests: 1484 passed (+21) Coverage: 97.60% lines, 91.58% branches
27 lines
618 B
TypeScript
27 lines
618 B
TypeScript
/**
|
|
* TUI hooks.
|
|
*/
|
|
|
|
export {
|
|
useSession,
|
|
type UseSessionDependencies,
|
|
type UseSessionOptions,
|
|
type UseSessionReturn,
|
|
} from "./useSession.js"
|
|
export { useHotkeys, type HotkeyHandlers, type UseHotkeysOptions } from "./useHotkeys.js"
|
|
export {
|
|
useCommands,
|
|
parseCommand,
|
|
type UseCommandsDependencies,
|
|
type UseCommandsActions,
|
|
type UseCommandsOptions,
|
|
type UseCommandsReturn,
|
|
type CommandResult,
|
|
type CommandDefinition,
|
|
} from "./useCommands.js"
|
|
export {
|
|
useAutocomplete,
|
|
type UseAutocompleteOptions,
|
|
type UseAutocompleteReturn,
|
|
} from "./useAutocomplete.js"
|