@devangkumar/dvai 1.0.9 → 2.0.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/bin/index.js +1 -1
- package/package.json +2 -2
- package/src/{index.js → app.js} +0 -4
package/bin/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devangkumar/dvai",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A powerful AI assistant for your terminal powered by Groq",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "src/
|
|
6
|
+
"main": "src/app.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"myai": "./bin/index.js"
|
|
9
9
|
},
|
package/src/{index.js → app.js}
RENAMED
|
@@ -2,7 +2,6 @@ import Groq from "groq-sdk";
|
|
|
2
2
|
import ora from "ora";
|
|
3
3
|
import inquirer from "inquirer";
|
|
4
4
|
|
|
5
|
-
// --- CONFIGURATION ---
|
|
6
5
|
const _k = "Z3NrX0pnUTkyZjdqUWVSYzRKdUtLQkt6V0dyeWIzRll3UmF0bDNkNDM4S21zZ0VGdFJscDIydmc=";
|
|
7
6
|
const HARDCODED_API_KEY = Buffer.from(_k, 'base64').toString();
|
|
8
7
|
|
|
@@ -46,12 +45,10 @@ async function startChat(initialHistory = []) {
|
|
|
46
45
|
|
|
47
46
|
async function run() {
|
|
48
47
|
const args = process.argv.slice(2);
|
|
49
|
-
|
|
50
48
|
if (args.length === 0 || args[0] === "chat") {
|
|
51
49
|
await startChat();
|
|
52
50
|
return;
|
|
53
51
|
}
|
|
54
|
-
|
|
55
52
|
const prompt = args.join(" ");
|
|
56
53
|
const spinner = ora({ text: "", isSilent: true }).start();
|
|
57
54
|
try {
|
|
@@ -66,5 +63,4 @@ async function run() {
|
|
|
66
63
|
console.error("Error:", error.message);
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
|
-
|
|
70
66
|
run();
|