@hynaweb/kavlr 1.0.4 → 1.0.5
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/cli.js +11 -25
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -28,31 +28,17 @@ function saveKey(key) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function printLogo() {
|
|
31
|
-
|
|
32
|
-
██╗ ██╗ █████╗ ██╗ ██╗██╗ ██████╗
|
|
33
|
-
██║ ██╔╝██╔══██╗██║ ██║██║ ██╔══██╗
|
|
34
|
-
█████╔╝ ███████║██║ ██║██║ ██████╔╝
|
|
35
|
-
██╔═██╗ ██╔══██║╚██╗ ██╔╝██║ ██╔══██╗
|
|
36
|
-
██║ ██╗██║ ██║ ╚████╔╝ ███████╗██║ ██║
|
|
37
|
-
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
async function cmdSetup() {
|
|
43
|
-
printLogo();
|
|
44
|
-
const readline = require('readline').createInterface({
|
|
45
|
-
input: process.stdin,
|
|
46
|
-
output: process.stdout
|
|
47
|
-
});
|
|
48
|
-
readline.question(chalk.cyan('Enter your KAVLR API Key (kavlr_...): '), (key) => {
|
|
49
|
-
if (key.startsWith('kavlr_')) {
|
|
50
|
-
saveKey(key.trim());
|
|
51
|
-
} else {
|
|
52
|
-
console.log(chalk.red('Invalid key format. It must start with "kavlr_"'));
|
|
53
|
-
}
|
|
54
|
-
readline.close();
|
|
55
|
-
});
|
|
31
|
+
const art = [
|
|
32
|
+
' ██╗ ██╗ █████╗ ██╗ ██╗██╗ ██████╗ ',
|
|
33
|
+
' ██║ ██╔╝██╔══██╗██║ ██║██║ ██╔══██╗',
|
|
34
|
+
' █████╔╝ ███████║██║ ██║██║ ██████╔╝',
|
|
35
|
+
' ██╔═██╗ ██╔══██║╚██╗ ██╔╝██║ ██╔══██╗',
|
|
36
|
+
' ██║ ██╗██║ ██║ ╚████╔╝ ███████╗██║ ██║',
|
|
37
|
+
' ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝',
|
|
38
|
+
].join("
|
|
39
|
+
");
|
|
40
|
+
console.log(chalk.cyan.bold(art) + chalk.gray(" The AI Agent Action Gate v1.0.5
|
|
41
|
+
"));
|
|
56
42
|
}
|
|
57
43
|
|
|
58
44
|
async function cmdStatus() {
|