@hynaweb/kavlr 1.0.3 → 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.
Files changed (2) hide show
  1. package/bin/cli.js +13 -27
  2. package/package.json +2 -2
package/bin/cli.js CHANGED
@@ -28,31 +28,17 @@ function saveKey(key) {
28
28
  }
29
29
 
30
30
  function printLogo() {
31
- console.log(chalk.cyan.bold(`
32
- ██╗ ██╗ █████╗ ██╗ ██╗██╗ ██████╗
33
- ██║ ██╔╝██╔══██╗██║ ██║██║ ██╔══██╗
34
- █████╔╝ ███████║██║ ██║██║ ██████╔╝
35
- ██╔═██╗ ██╔══██║╚██╗ ██╔╝██║ ██╔══██╗
36
- ██║ ██╗██║ ██║ ╚████╔╝ ███████╗██║ ██║
37
- ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝
38
- `) + chalk.gray(` The AI Agent Action Gate v1.0.3
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() {
@@ -178,7 +164,7 @@ program
178
164
  if (args.length === 0) {
179
165
  printLogo();
180
166
  console.log(`Usage:
181
- kavlr setup
167
+ kavlr setup / kavlr init
182
168
  kavlr status
183
169
  kavlr logs
184
170
  kavlr dashboard
@@ -187,7 +173,7 @@ program
187
173
  }
188
174
 
189
175
  const cmd = args[0];
190
- if (cmd === 'setup') return cmdSetup();
176
+ if (cmd === 'setup' || cmd === 'init') return cmdSetup();
191
177
  if (cmd === 'status') return cmdStatus();
192
178
  if (cmd === 'logs') return cmdLogs();
193
179
  if (cmd === 'dashboard') return cmdDashboard();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hynaweb/kavlr",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "The AI Agent Action Gate.",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {
@@ -10,4 +10,4 @@
10
10
  "chalk": "^4.1.2",
11
11
  "commander": "^11.1.0"
12
12
  }
13
- }
13
+ }