cost-katana-cli 2.1.1 β†’ 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,227 +1,198 @@
1
1
  # Cost Katana CLI πŸ₯·
2
2
 
3
- **Chat with AI from your terminal. Track costs automatically.**
3
+ > **AI in your terminal. Costs on your screen.**
4
4
 
5
- ```bash
6
- $ cost-katana chat
7
-
8
- You: Hello!
9
- AI: Hi! How can I help you today?
10
- πŸ’° Cost: $0.0001
5
+ Chat with GPT-4, Claude, Geminiβ€”all from one command. See exactly what you spend, in real-time.
11
6
 
12
- You: Write me a Python function
13
- AI: Here's a Python function...
14
- πŸ’° Session: $0.0023
15
- ```
7
+ ---
16
8
 
17
- Simple. Powerful. Cost-aware.
9
+ ## πŸš€ Get Started in 30 Seconds
18
10
 
19
- ## Installation
11
+ ### Step 1: Install
20
12
 
21
13
  ```bash
22
14
  npm install -g cost-katana-cli
23
15
  ```
24
16
 
25
- ## Quick Start
26
-
27
- ### 1. Setup (One-time)
17
+ ### Step 2: Initialize
28
18
 
29
19
  ```bash
30
20
  cost-katana init
31
21
  ```
32
22
 
33
- Answer 2 questions:
34
- 1. Your API key (from [costkatana.com](https://costkatana.com))
35
- 2. Your default AI model
36
-
37
- Done! βœ…
38
-
39
- ### 2. Start Chatting
23
+ ### Step 3: Chat
40
24
 
41
25
  ```bash
42
26
  cost-katana chat
43
27
  ```
44
28
 
45
- That's it!
46
-
47
- ---
48
-
49
- ## πŸ“š **More Examples**
50
-
51
- **Looking for more comprehensive examples?** Check out our complete examples repository
29
+ ```
30
+ You: Hello!
31
+ AI: Hi! How can I help you today?
32
+ πŸ’° Cost: $0.0001
52
33
 
53
- **πŸ”— [github.com/Hypothesize-Tech/costkatana-examples](https://github.com/Hypothesize-Tech/costkatana-examples)**
34
+ You: Write me a Python function to sort a list
35
+ AI: Here's a Python function...
36
+ πŸ’° Session: $0.0023
37
+ ```
54
38
 
55
- **What's included:**
56
- - βœ… 44 feature sections covering every Cost Katana capability
57
- - βœ… CLI examples and guides in [Section 9](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/9-cli)
58
- - βœ… HTTP REST API examples (`.http` files)
59
- - βœ… TypeScript/Node.js examples
60
- - βœ… Python SDK examples
61
- - βœ… Framework integrations (Express, Next.js, Fastify, NestJS, FastAPI)
62
- - βœ… Real-world use cases with best practices
63
-
64
- **Popular examples:**
65
- - [CLI Examples](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/9-cli) - Complete CLI guides
66
- - [Cost Tracking](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/1-cost-tracking) - Track costs across all providers
67
- - [Webhooks](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/10-webhooks) - Real-time notifications
68
- - [Workflows](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/13-workflows) - Multi-step AI orchestration
69
- - [Semantic Caching](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/14-cache) - 30-40% cost reduction
39
+ **That's it.** You're now chatting with AI and tracking every cent.
70
40
 
71
41
  ---
72
42
 
73
- ## Essential Commands
43
+ ## πŸ“– Tutorial: Master the CLI
74
44
 
75
- ### Chat with AI
45
+ ### Part 1: Interactive Chat
46
+
47
+ Start a conversation that remembers context:
76
48
 
77
49
  ```bash
78
- # Start interactive chat
79
50
  cost-katana chat
51
+ ```
80
52
 
81
- # Use specific model
82
- cost-katana chat --model claude-3-sonnet
53
+ **In-session commands:**
54
+ | Command | Action |
55
+ |---------|--------|
56
+ | `help` | Show all commands |
57
+ | `cost` | Display session cost |
58
+ | `models` | Switch AI model |
59
+ | `clear` | Clear chat history |
60
+ | `save` | Export conversation |
61
+ | `quit` | Exit chat |
83
62
 
84
- # With system prompt
85
- cost-katana chat --system "You are a coding expert"
86
- ```
63
+ ### Part 2: Quick Questions
87
64
 
88
- ### Quick Question (No chat mode)
65
+ Skip chat mode for one-off questions:
89
66
 
90
67
  ```bash
91
- # Ask a single question
68
+ # Get an instant answer
92
69
  cost-katana ask "What is the capital of France?"
93
70
 
94
- # Save answer to file
95
- cost-katana ask "Explain Python" --output answer.txt
71
+ # Save output to file
72
+ cost-katana ask "Explain recursion" --output answer.md
96
73
 
97
- # Use different model
98
- cost-katana ask "Write a poem" --model gpt-4
74
+ # Use a specific model
75
+ cost-katana ask "Write a haiku" --model gpt-4
99
76
  ```
100
77
 
101
- ### Analyze Costs
78
+ ### Part 3: Choose Your Model
102
79
 
103
80
  ```bash
104
- # See your spending
105
- cost-katana analyze
81
+ # Use Claude for creative writing
82
+ cost-katana chat --model claude-3-sonnet
106
83
 
107
- # Last 7 days
108
- cost-katana analyze --days 7
84
+ # Use GPT-4 for complex reasoning
85
+ cost-katana chat --model gpt-4
109
86
 
110
- # Export to CSV
111
- cost-katana analyze --export costs.csv
87
+ # Use GPT-3.5 for simple tasks (10x cheaper)
88
+ cost-katana chat --model gpt-3.5-turbo
112
89
  ```
113
90
 
114
- ### List Models
91
+ ### Part 4: Add a System Prompt
92
+
93
+ Shape the AI's personality:
115
94
 
116
95
  ```bash
117
- # See available models
118
- cost-katana models
96
+ # Code reviewer
97
+ cost-katana chat --system "You are a senior developer. Be concise and critical."
119
98
 
120
- # Filter by provider
121
- cost-katana models --provider openai
99
+ # Writing assistant
100
+ cost-katana chat --system "You are a professional copywriter. Focus on clarity."
122
101
 
123
- # Show with prices
124
- cost-katana models --prices
102
+ # Tutor
103
+ cost-katana chat --system "You are a patient teacher. Explain concepts step by step."
125
104
  ```
126
105
 
127
- ### Supported Models
128
-
129
- The CLI uses type-safe model constants internally for reliability and autocomplete support. All models from the following providers are supported:
130
-
131
- **OpenAI**
132
- - GPT-5, GPT-5 Mini, GPT-5 Nano, GPT-5 Pro
133
- - GPT-4, GPT-4 Turbo, GPT-4o, GPT-4o Mini
134
- - GPT-3.5 Turbo
135
- - O1, O1 Mini, O1 Preview
136
- - DALL-E, Whisper, TTS
106
+ ### Part 5: Enable Cost Optimization
137
107
 
138
- **Anthropic**
139
- - Claude Sonnet 4.5
140
- - Claude 3.5 Sonnet, Claude 3.5 Haiku
141
- - Claude 3 Opus, Claude 3 Sonnet, Claude 3 Haiku
108
+ ```bash
109
+ # Cortex: 40-75% savings on long content
110
+ cost-katana chat --cortex
142
111
 
143
- **Google**
144
- - Gemini 2.5 Pro, Gemini 2.5 Flash
145
- - Gemini 1.5 Pro, Gemini 1.5 Flash
112
+ # Caching: 100% savings on repeated questions
113
+ cost-katana chat --cache
146
114
 
147
- **AWS Bedrock**
148
- - Claude models via Bedrock
149
- - Titan models
150
- - Mistral models
115
+ # Both together
116
+ cost-katana chat --cortex --cache
117
+ ```
151
118
 
152
- **Others**
153
- - xAI Grok models
154
- - DeepSeek models
155
- - Mistral AI models
156
- - Cohere models
157
- - Groq models
158
- - Meta Llama models
119
+ ---
159
120
 
160
- For the complete list, run `cost-katana models` or visit [costkatana.com/docs](https://costkatana.com/docs)
121
+ ## 🎯 Essential Commands
161
122
 
162
- ## Chat Session Commands
123
+ ### Chat
163
124
 
164
- While in a chat session, you can use:
125
+ ```bash
126
+ cost-katana chat # Start interactive chat
127
+ cost-katana chat --model claude-3-sonnet # Use specific model
128
+ cost-katana chat --system "Be concise" # Add system prompt
129
+ cost-katana chat --cortex # Enable optimization
130
+ ```
165
131
 
166
- - `help` - Show commands
167
- - `cost` - Show session cost
168
- - `models` - Switch model
169
- - `clear` - Clear history
170
- - `save` - Save conversation
171
- - `quit` - Exit
132
+ ### Ask
172
133
 
173
- ## Advanced Features
134
+ ```bash
135
+ cost-katana ask "Your question" # Quick answer
136
+ cost-katana ask "Question" --output file.md # Save to file
137
+ cost-katana ask "Question" --model gpt-4 # Use specific model
138
+ ```
174
139
 
175
- ### Cost Optimization
140
+ ### Analyze
176
141
 
177
142
  ```bash
178
- # Enable Cortex (40-75% savings)
179
- cost-katana chat --cortex
180
-
181
- # Enable caching
182
- cost-katana chat --cache
143
+ cost-katana analyze # View spending summary
144
+ cost-katana analyze --days 7 # Last 7 days
145
+ cost-katana analyze --export costs.csv # Export to CSV
183
146
  ```
184
147
 
185
- ### Compare Models
148
+ ### Models
186
149
 
187
150
  ```bash
188
- # Compare costs across models
189
- cost-katana compare "Explain AI" --models gpt-4,claude-3-sonnet,gemini-pro
151
+ cost-katana models # List all models
152
+ cost-katana models --provider openai # Filter by provider
153
+ cost-katana models --prices # Show pricing
190
154
  ```
191
155
 
192
- ### Budget Tracking
156
+ ### Compare
193
157
 
194
158
  ```bash
195
- # Set daily budget
196
- cost-katana budget set --daily 10
159
+ cost-katana compare "Your prompt" --models gpt-4,claude-3-sonnet,gemini-pro
160
+ ```
197
161
 
198
- # Check budget status
199
- cost-katana budget status
162
+ ### Budget
200
163
 
201
- # Get alerts
202
- cost-katana budget alerts
164
+ ```bash
165
+ cost-katana budget set --daily 10 # Set $10/day limit
166
+ cost-katana budget status # Check remaining budget
167
+ cost-katana budget alerts # View alerts
203
168
  ```
204
169
 
205
- ## Configuration
206
-
207
- ### View Config
170
+ ### Config
208
171
 
209
172
  ```bash
210
- cost-katana config
173
+ cost-katana config # View current config
174
+ cost-katana config set model gpt-4 # Change default model
175
+ cost-katana config set temperature 0.7 # Set creativity level
176
+ cost-katana config set daily-limit 5 # Set spending limit
211
177
  ```
212
178
 
213
- ### Update Settings
179
+ ---
214
180
 
215
- ```bash
216
- # Change default model
217
- cost-katana config set model gpt-4
181
+ ## πŸ€– Supported Models
218
182
 
219
- # Set temperature
220
- cost-katana config set temperature 0.7
183
+ | Provider | Models |
184
+ |----------|--------|
185
+ | **OpenAI** | GPT-5, GPT-4, GPT-4 Turbo, GPT-4o, GPT-3.5 Turbo, O1, O3 |
186
+ | **Anthropic** | Claude Sonnet 4.5, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus |
187
+ | **Google** | Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 1.5 Pro, Gemini 1.5 Flash |
188
+ | **AWS Bedrock** | Claude, Titan, Mistral, Nova models |
189
+ | **Others** | xAI Grok, DeepSeek, Mistral AI, Cohere, Meta Llama |
221
190
 
222
- # Set daily limit
223
- cost-katana config set daily-limit 5
224
- ```
191
+ Run `cost-katana models` for the complete list with pricing.
192
+
193
+ ---
194
+
195
+ ## βš™οΈ Configuration
225
196
 
226
197
  ### Environment Variables
227
198
 
@@ -230,184 +201,189 @@ cost-katana config set daily-limit 5
230
201
  export COST_KATANA_API_KEY="dak_your_key"
231
202
  export COST_KATANA_MODEL="gpt-4"
232
203
 
233
- # Option 2: Direct Provider Keys (for self-hosted)
234
- # ⚠️ USER PROVIDED - CostKATANA does not include these keys
235
- export OPENAI_API_KEY="sk-..." # Required for OpenAI models (GPT-4, GPT-3.5)
236
- export GEMINI_API_KEY="..." # Required for Gemini models (Gemini 2.5, etc.)
237
- export AWS_ACCESS_KEY_ID="..." # For AWS Bedrock (Claude, Nova)
204
+ # Option 2: Direct Provider Keys (self-hosted)
205
+ export OPENAI_API_KEY="sk-..." # Required for GPT models
206
+ export GEMINI_API_KEY="..." # Required for Gemini models
207
+ export AWS_ACCESS_KEY_ID="..." # For AWS Bedrock
238
208
  export AWS_SECRET_ACCESS_KEY="..."
239
209
  ```
240
210
 
241
- > **⚠️ Important**: When using self-hosted mode, you must provide your own OpenAI and Gemini API keys.
211
+ > ⚠️ **Self-hosted users**: You must provide your own OpenAI/Gemini API keys.
212
+
213
+ ---
242
214
 
243
- ## Real-World Examples
215
+ ## πŸ’‘ Real-World Examples
244
216
 
245
- ### Code Assistant
217
+ ### Code Review Assistant
246
218
 
247
219
  ```bash
248
220
  $ cost-katana chat --system "You are a senior developer. Be concise."
249
221
 
250
222
  You: Review this code: [paste code]
251
- AI: Here are the issues...
223
+ AI: Issues found:
224
+ 1. Missing error handling on line 15
225
+ 2. Inefficient loopβ€”use map() instead
226
+ 3. Variable 'x' should be descriptive
252
227
  πŸ’° Cost: $0.0045
253
228
 
254
229
  You: How do I fix issue #2?
255
- AI: Here's how to fix it...
230
+ AI: Replace the for loop with: const results = items.map(item => transform(item));
256
231
  πŸ’° Session: $0.0067
257
232
  ```
258
233
 
259
- ### Content Writer
234
+ ### Content Writer with Optimization
260
235
 
261
236
  ```bash
262
237
  $ cost-katana chat --model gpt-4 --cortex
263
238
 
264
- You: Write a blog post about AI
265
- AI: [Generates comprehensive post with 70% cost savings]
239
+ You: Write a blog post about machine learning trends in 2024
240
+ AI: [Generates comprehensive 1500-word post]
266
241
  πŸ’° Cost: $0.0123 (saved $0.041 with Cortex!)
267
242
  ```
268
243
 
269
- ### Quick Answers
244
+ ### Quick Research
270
245
 
271
246
  ```bash
272
- # Get quick answers without entering chat mode
273
- $ cost-katana ask "What's the weather API for Node.js?"
274
- > Use the 'axios' library to call weather APIs like OpenWeatherMap...
247
+ $ cost-katana ask "Best Node.js weather API libraries"
248
+ > Popular options: axios + OpenWeatherMap, node-fetch + WeatherAPI...
275
249
  πŸ’° Cost: $0.0002
276
250
 
277
- $ cost-katana ask "Python sort list by date" --output answer.md
278
- βœ… Saved to answer.md
251
+ $ cost-katana ask "Python datetime format examples" --output cheatsheet.md
252
+ βœ… Saved to cheatsheet.md
279
253
  πŸ’° Cost: $0.0003
280
254
  ```
281
255
 
282
- ## Tips
283
-
284
- ### Save Money
256
+ ### Model Cost Comparison
285
257
 
286
258
  ```bash
287
- # Use cheaper models for simple tasks
288
- cost-katana chat --model gpt-3.5-turbo # 10x cheaper
289
-
290
- # Enable optimization for long content
291
- cost-katana chat --cortex # 70-95% savings
292
-
293
- # Cache repeated queries
294
- cost-katana chat --cache # Free repeated answers
295
- ```
296
-
297
- ### Productivity
259
+ $ cost-katana compare "Explain quantum computing" --models gpt-4,gpt-3.5-turbo,gemini-pro
298
260
 
299
- ```bash
300
- # Save conversations
301
- cost-katana chat --output session.json
261
+ πŸ“Š Cost Comparison
302
262
 
303
- # Load previous conversation
304
- cost-katana chat --file session.json
263
+ Model Cost Tokens Latency
264
+ ─────────────────────────────────────────────────
265
+ gpt-4 $0.0120 450 2.3s
266
+ gpt-3.5-turbo $0.0012 420 0.8s
267
+ gemini-pro $0.0003 435 1.1s
305
268
 
306
- # Pipe output
307
- cost-katana ask "List of AI models" | grep gpt
269
+ πŸ’‘ Recommendation: gemini-pro (40x cheaper than gpt-4)
308
270
  ```
309
271
 
310
- ## Comparison
311
-
312
- ### Traditional AI CLIs
313
-
314
- ```bash
315
- # Complex setup
316
- export OPENAI_API_KEY="sk-..."
317
- export ANTHROPIC_API_KEY="sk-ant-..."
272
+ ---
318
273
 
319
- # Different commands for each provider
320
- openai chat
321
- anthropic messages create
322
- ```
274
+ ## πŸ’° Cost Optimization Tips
323
275
 
324
- ### Cost Katana CLI
276
+ | Strategy | Savings | Command |
277
+ |----------|---------|---------|
278
+ | Use GPT-3.5 for simple tasks | 90% | `--model gpt-3.5-turbo` |
279
+ | Enable Cortex for long content | 40-75% | `--cortex` |
280
+ | Cache repeated queries | 100% | `--cache` |
281
+ | Use Gemini for high-volume | 95% | `--model gemini-pro` |
325
282
 
326
283
  ```bash
327
- # Simple setup
328
- cost-katana init
284
+ # ❌ Expensive
285
+ cost-katana chat --model gpt-4
329
286
 
330
- # One command for all providers
331
- cost-katana chat
287
+ # βœ… Smart: Match model to task
288
+ cost-katana chat --model gpt-3.5-turbo
332
289
 
333
- # Automatic cost tracking!
290
+ # βœ… Smarter: Add optimization
291
+ cost-katana chat --model gpt-3.5-turbo --cortex --cache
334
292
  ```
335
293
 
336
- ## Troubleshooting
294
+ ---
295
+
296
+ ## πŸ”§ Troubleshooting
337
297
 
338
298
  ### "API key not found"
339
299
 
340
300
  ```bash
341
- # Run init again
342
301
  cost-katana init
343
-
344
- # Or set environment variable
302
+ # or
345
303
  export COST_KATANA_API_KEY="dak_your_key"
346
304
  ```
347
305
 
348
306
  ### "Model not available"
349
307
 
350
308
  ```bash
351
- # See available models
352
- cost-katana models
353
-
354
- # Try a different model
355
- cost-katana chat --model gpt-3.5-turbo
309
+ cost-katana models # See available models
310
+ cost-katana chat --model gpt-3.5-turbo # Try alternative
356
311
  ```
357
312
 
358
313
  ### "Rate limit exceeded"
359
314
 
360
315
  ```bash
361
- # CLI automatically retries
362
- # If persistent, try different model:
363
- cost-katana chat --model claude-3-haiku
316
+ # CLI auto-retries. If persistent:
317
+ cost-katana chat --model claude-3-haiku # Switch provider
364
318
  ```
365
319
 
366
- ## Dashboard Integration
320
+ ---
321
+
322
+ ## πŸ“Š Dashboard Integration
367
323
 
368
- All your CLI usage is tracked at [costkatana.com/dashboard](https://costkatana.com/dashboard):
324
+ All CLI usage syncs to [costkatana.com/dashboard](https://costkatana.com/dashboard):
369
325
 
370
326
  - Real-time cost tracking
371
- - Usage by model
327
+ - Usage breakdown by model
372
328
  - Daily/weekly/monthly stats
373
329
  - Budget alerts
374
- - Optimization tips
330
+ - Optimization recommendations
375
331
 
376
- ```bash
377
- # Every command is tracked
378
- cost-katana chat
379
- cost-katana ask "Hello"
332
+ ---
380
333
 
381
- # View at: https://costkatana.com/dashboard
382
- ```
334
+ ## πŸ“š More Examples
383
335
 
384
- ## Why Cost Katana CLI?
336
+ Explore 45+ complete examples:
385
337
 
386
- βœ… **Simple**: 2-step setup, then just `cost-katana chat`
387
- βœ… **Universal**: Works with all AI providers
388
- βœ… **Cost-Aware**: See costs in real-time
389
- βœ… **Optimized**: Built-in 70-95% cost reduction
390
- βœ… **Tracked**: Everything logged to dashboard
391
- βœ… **Beautiful**: Clean, colorful terminal UI
338
+ **πŸ”— [github.com/Hypothesize-Tech/costkatana-examples](https://github.com/Hypothesize-Tech/costkatana-examples)**
392
339
 
393
- ## Support
340
+ | Section | Description |
341
+ |---------|-------------|
342
+ | [CLI Examples](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/9-cli) | Complete CLI guides |
343
+ | [Cost Tracking](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/1-cost-tracking) | Track costs across providers |
344
+ | [Semantic Caching](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/14-cache) | 30-40% cost reduction |
345
+ | [Workflows](https://github.com/Hypothesize-Tech/costkatana-examples/tree/master/13-workflows) | Multi-step AI orchestration |
394
346
 
395
- - **Documentation**: https://docs.costkatana.com/cli
396
- - **Dashboard**: https://costkatana.com
397
- - **GitHub**: https://github.com/Hypothesize-Tech/costkatana-cli
398
- - **Discord**: https://discord.gg/D8nDArmKbY
399
- - **Email**: support@costkatana.com
347
+ ---
400
348
 
401
- ## License
349
+ ## πŸ†š Why Cost Katana CLI?
350
+
351
+ | Feature | Traditional CLIs | Cost Katana CLI |
352
+ |---------|------------------|-----------------|
353
+ | Setup | Multiple API keys | One command: `cost-katana init` |
354
+ | Providers | One per tool | All providers, one command |
355
+ | Cost tracking | ❌ | βœ… Real-time |
356
+ | Optimization | ❌ | βœ… 40-75% savings |
357
+ | Dashboard | ❌ | βœ… Full analytics |
358
+
359
+ ---
360
+
361
+ ## πŸ“ž Support
362
+
363
+ | Channel | Link |
364
+ |---------|------|
365
+ | **Documentation** | [docs.costkatana.com/cli](https://docs.costkatana.com/cli) |
366
+ | **Dashboard** | [costkatana.com](https://costkatana.com) |
367
+ | **GitHub** | [github.com/Hypothesize-Tech/costkatana-cli](https://github.com/Hypothesize-Tech/costkatana-cli) |
368
+ | **Discord** | [discord.gg/D8nDArmKbY](https://discord.gg/D8nDArmKbY) |
369
+ | **Email** | support@costkatana.com |
370
+
371
+ ---
372
+
373
+ ## πŸ“„ License
402
374
 
403
375
  MIT Β© Cost Katana
404
376
 
405
377
  ---
406
378
 
407
- **Start chatting with AI in your terminal!**
379
+ <div align="center">
380
+
381
+ **Start chatting with AI in your terminal** πŸ₯·
408
382
 
409
383
  ```bash
410
384
  npm install -g cost-katana-cli
411
385
  cost-katana init
412
386
  cost-katana chat
413
- ```
387
+ ```
388
+
389
+ </div>
@@ -174,7 +174,7 @@ async function handleModels(options) {
174
174
  console.log(chalk_1.default.white(' β€’ Use GPT-3.5-Turbo for simple tasks (10x cheaper than GPT-4)'));
175
175
  console.log(chalk_1.default.white(' β€’ Use Claude-3-Haiku for fast, affordable responses'));
176
176
  console.log(chalk_1.default.white(' β€’ Use Gemini-Flash for ultra-low cost'));
177
- console.log(chalk_1.default.white(' β€’ Enable --cortex for 70-95% additional savings on any model'));
177
+ console.log(chalk_1.default.white(' β€’ Enable --cortex for 40-75% additional savings on any model'));
178
178
  console.log(chalk_1.default.gray('\nTo use a model:'));
179
179
  console.log(chalk_1.default.white(' cost-katana chat --model <model-name>'));
180
180
  console.log(chalk_1.default.white(' cost-katana ask "question" --model <model-name>'));
@@ -368,7 +368,7 @@ function getProviderFromModel(modelId) {
368
368
  if (cohereModels.includes(modelId))
369
369
  return 'Cohere';
370
370
  if (groqModels.includes(modelId))
371
- return 'Groq';
371
+ return 'Grok';
372
372
  if (metaModels.includes(modelId))
373
373
  return 'Meta';
374
374
  return 'unknown';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cost-katana-cli",
3
- "version": "2.1.1",
3
+ "version": "2.2.1",
4
4
  "description": "The simplest AI CLI. Chat with any AI model and track costs automatically.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,9 +27,9 @@
27
27
  "ci:build": "npm run build",
28
28
  "ci:check": "npm pack --dry-run",
29
29
  "ci:security": "npm audit --audit-level=moderate",
30
- "release:patch": "npm version patch && git push origin master --follow-tags",
31
- "release:minor": "npm version minor && git push origin master --follow-tags",
32
- "release:major": "npm version major && git push origin master --follow-tags"
30
+ "release:patch": "git diff --cached --quiet || git commit -m 'chore: prepare for release' || true; git diff --quiet || (echo 'Error: Unstaged changes detected. Please commit or stash changes first.' && exit 1); npm version patch && git push origin master --follow-tags",
31
+ "release:minor": "git diff --cached --quiet || git commit -m 'chore: prepare for release' || true; git diff --quiet || (echo 'Error: Unstaged changes detected. Please commit or stash changes first.' && exit 1); npm version minor && git push origin master --follow-tags",
32
+ "release:major": "git diff --cached --quiet || git commit -m 'chore: prepare for release' || true; git diff --quiet || (echo 'Error: Unstaged changes detected. Please commit or stash changes first.' && exit 1); npm version major && git push origin master --follow-tags"
33
33
  },
34
34
  "keywords": [
35
35
  "ai",