cost-katana-cli 2.1.1 → 2.2.0
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 +3 -3
- package/dist/commands/models.js +1 -1
- package/dist/constants/models.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ The CLI uses type-safe model constants internally for reliability and autocomple
|
|
|
154
154
|
- DeepSeek models
|
|
155
155
|
- Mistral AI models
|
|
156
156
|
- Cohere models
|
|
157
|
-
-
|
|
157
|
+
- Grok models
|
|
158
158
|
- Meta Llama models
|
|
159
159
|
|
|
160
160
|
For the complete list, run `cost-katana models` or visit [costkatana.com/docs](https://costkatana.com/docs)
|
|
@@ -288,7 +288,7 @@ $ cost-katana ask "Python sort list by date" --output answer.md
|
|
|
288
288
|
cost-katana chat --model gpt-3.5-turbo # 10x cheaper
|
|
289
289
|
|
|
290
290
|
# Enable optimization for long content
|
|
291
|
-
cost-katana chat --cortex #
|
|
291
|
+
cost-katana chat --cortex # 40-75% savings
|
|
292
292
|
|
|
293
293
|
# Cache repeated queries
|
|
294
294
|
cost-katana chat --cache # Free repeated answers
|
|
@@ -386,7 +386,7 @@ cost-katana ask "Hello"
|
|
|
386
386
|
✅ **Simple**: 2-step setup, then just `cost-katana chat`
|
|
387
387
|
✅ **Universal**: Works with all AI providers
|
|
388
388
|
✅ **Cost-Aware**: See costs in real-time
|
|
389
|
-
✅ **Optimized**: Built-in
|
|
389
|
+
✅ **Optimized**: Built-in 40-75% cost reduction
|
|
390
390
|
✅ **Tracked**: Everything logged to dashboard
|
|
391
391
|
✅ **Beautiful**: Clean, colorful terminal UI
|
|
392
392
|
|
package/dist/commands/models.js
CHANGED
|
@@ -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
|
|
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>'));
|
package/dist/constants/models.js
CHANGED
|
@@ -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 '
|
|
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.
|
|
3
|
+
"version": "2.2.0",
|
|
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",
|