viho 0.0.8 → 0.0.9

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/viho-model.js CHANGED
@@ -12,7 +12,7 @@ const actions = ['add', 'list', 'remove', 'default'];
12
12
  // model
13
13
  cli.cmd
14
14
  .command('model <action>')
15
- .description('Manage AI models')
15
+ .description('Manage AI model configurations (add, list, remove, default)')
16
16
  .action((action) => {
17
17
  if (!actions.includes(action)) {
18
18
  console.log(cli.colors.red('Invalid action. Use: add, list, remove, default'));
@@ -2,4 +2,7 @@
2
2
  const cli = require('qiao-cli');
3
3
 
4
4
  // cmd
5
- cli.cmd.version(require('../package.json').version, '-v, --version').description('viho').usage('<command>');
5
+ cli.cmd
6
+ .version(require('../package.json').version, '-v, --version')
7
+ .description('A lightweight CLI tool for managing and interacting with AI models')
8
+ .usage('<command>');
package/bin/viho.js CHANGED
@@ -3,11 +3,19 @@
3
3
  // qiao
4
4
  const cli = require('qiao-cli');
5
5
 
6
+ // util
7
+ const { printLogo } = require('../src/util.js');
8
+
6
9
  // cmds
7
10
  require('./viho-model.js');
8
11
  require('./viho-ask.js');
9
12
  require('./viho-chat.js');
10
13
  require('./viho-version.js');
11
14
 
15
+ // print logo if no args or help
16
+ if (process.argv.length === 2 || process.argv.includes('-h') || process.argv.includes('--help')) {
17
+ printLogo();
18
+ }
19
+
12
20
  // parse
13
21
  cli.cmd.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viho",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "A lightweight CLI tool for managing and interacting with AI models",
5
5
  "keywords": [
6
6
  "ai",
@@ -43,5 +43,5 @@
43
43
  "qiao-config": "^5.0.1",
44
44
  "qiao-llm": "^0.2.5"
45
45
  },
46
- "gitHead": "6e3c00750d92bc6da1e84096ca4afe2f7f51624e"
46
+ "gitHead": "23db2534c938db00241234e31de6e3b926168685"
47
47
  }