Merge pull request #45 from Kaelio/luca/klo-654-improve-indents

feat(cli): add box-drawing prefixes to setup messages
This commit is contained in:
Luca Martial 2026-05-12 19:58:55 -04:00 committed by GitHub
commit fcdf5234c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 81 additions and 47 deletions

View file

@ -312,7 +312,7 @@ describe('setup Anthropic model step', () => {
expect(result.status).toBe('ready');
expect(prompts.select).not.toHaveBeenCalledWith(expect.objectContaining({ message: 'Paste Anthropic API key now?' }));
expect(prompts.password).toHaveBeenCalledWith({
message: 'Anthropic API key\nPress Escape to go back.\n',
message: 'Anthropic API key\nPress Escape to go back.\n',
});
});
@ -464,7 +464,7 @@ describe('setup Anthropic model step', () => {
);
expect(prompts.text).toHaveBeenCalledWith(
expect.objectContaining({
message: 'Anthropic model ID\nPress Escape to go back.\n',
message: 'Anthropic model ID\nPress Escape to go back.\n',
placeholder: 'claude-sonnet-4-6',
}),
);
@ -629,7 +629,7 @@ describe('setup Anthropic model step', () => {
expect(result.status).toBe('ready');
expect(prompts.password).toHaveBeenCalledWith({
message: 'Anthropic API key\nPress Escape to go back.\n',
message: 'Anthropic API key\nPress Escape to go back.\n',
});
await expect(readFile(join(tempDir, '.ktx/secrets/anthropic-api-key'), 'utf-8')).rejects.toMatchObject({
code: 'ENOENT',