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

@ -84,7 +84,9 @@ const setupMocks = ({
describe('useCommandCompletion', () => {
const mockCommandContext = {} as CommandContext;
const mockConfig = {} as Config;
const mockConfig = {
getEnablePromptCompletion: () => false,
} as Config;
const testDirs: string[] = [];
const testRootDir = '/';
@ -511,7 +513,7 @@ describe('useCommandCompletion', () => {
});
expect(result.current.textBuffer.text).toBe(
'@src/file1.txt is a good file',
'@src/file1.txt is a good file',
);
});
});