Skip to content

Commit 734fc6c

Browse files
authored
fix: remove chat command and add CI coverage gate (#81)
The chat command advertised three conflicting default models (kimi-k2.6 in help text, openai/gpt-oss in the option builder, google/gemma-3-27b-it in the service) and was effectively untested (1.21% line coverage). Remove the command entirely per product direction. Removed: - src/commands/chat.ts, src/services/chat-service.ts (+ their tests) - src/utils/markdown-renderer.ts (only used by chat) - marked, marked-terminal runtime deps + @types/* dev deps (orphaned) - CHAT entries from command-structure constants - Chat Command section from README Kept DefaultApiKeyManager: still used by auth/credentials/api-key.ts and the api-keys set-default/get-default subcommands. Add a CI coverage gate to prevent silent coverage regressions: - vitest.config.ts: v8 coverage, include all src, exclude generated types/ schemas/__tests__, thresholds ratcheted just below the post-removal baseline (50/52/48/50 stmt/branch/func/line) - package.json: test:coverage script - test.yml: run npm run test:coverage in CI (replaces plain test:run) - .gitignore: ignore coverage/ (artifacts were previously committed)
1 parent cc2ce25 commit 734fc6c

23 files changed

Lines changed: 24 additions & 2742 deletions

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: Check formatting with Prettier
3838
run: npm run format:check
3939

40-
- name: Run tests
41-
run: npm run test:run
40+
- name: Run tests with coverage
41+
run: npm run test:coverage
4242

4343
- name: Build project
4444
run: npm run build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
dist
3+
coverage
34
env
45
.aider*
56
.env

README.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,6 @@ npx berget api-keys create --name "My CLI Key"
2525
export BERGET_API_KEY=sk_ber_your_api_key_here
2626
```
2727

28-
## Chat Command
29-
30-
### Basic Usage
31-
32-
```bash
33-
# Interactive chat session
34-
npx berget chat run
35-
36-
# Use specific model
37-
npx berget chat run openai/gpt-oss
38-
39-
# Send direct message
40-
npx berget chat run openai/gpt-oss "Explain what Docker is"
41-
42-
# Use pipe for input
43-
echo "What is Kubernetes?" | npx berget chat run openai/gpt-oss
44-
```
45-
4628
## Environment Variables
4729

4830
```bash
@@ -68,14 +50,11 @@ npx berget --help
6850

6951
```bash
7052
# Enable debug mode
71-
npx berget --debug chat run openai/gpt-oss "test"
53+
npx berget --debug auth whoami
7254

7355
# Check authentication
7456
npx berget auth whoami
7557

76-
# List available models
77-
npx berget chat list
78-
7958
# Check API key status
8059
npx berget api-keys list
8160
```

coverage/base.css

Lines changed: 0 additions & 224 deletions
This file was deleted.

coverage/block-navigation.js

Lines changed: 0 additions & 87 deletions
This file was deleted.

coverage/clover.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

coverage/coverage-final.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

coverage/favicon.png

-445 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)