feat(cli): prompt completion (#4691)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
官余棚 2025-08-21 16:04:04 +08:00 committed by GitHub
parent ba5309c405
commit 589f5e6823
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 540 additions and 43 deletions

View file

@ -160,6 +160,11 @@ describe('InputPrompt', () => {
setActiveSuggestionIndex: vi.fn(),
setShowSuggestions: vi.fn(),
handleAutocomplete: vi.fn(),
promptCompletion: {
text: '',
accept: vi.fn(),
clear: vi.fn(),
},
};
mockedUseCommandCompletion.mockReturnValue(mockCommandCompletion);